feat: unify execution and add workspace file imports

Remove Ask/Execute modes and general product tool approvals so requests use the selected runtime, enabled capabilities, and execution account permissions. Migrate retired application metadata while preserving user content.

Retire the Results page while retaining conversation images and stored artifacts. Add local and remote workspace file imports, timestamps and sorting, improve image discovery and saving, and refine workspace navigation and supervision responsiveness. Include the accompanying web-search changes, tests, probes, and product documentation.

Remote imports require an updated Agent. Existing artifacts are not automatically copied into project directories. Validation evidence and outstanding failures remain documented in feature progress files; no full test suite or real-model calls were rerun for this commit.

Release note: Run requests without switching work modes, import files into a selected local or remote workspace folder, sort workspace files by date, and keep using conversation images after removal of the Results page.
This commit is contained in:
mesalogo
2026-10-04 20:02:59 +08:00
parent 0cd5da33f4
commit 56ebd40bd8
374 changed files with 7075 additions and 6224 deletions
+3 -29
View File
@@ -1,39 +1,13 @@
import type { InteractiveWorkMode } from '../../shared/assistant-contracts'
const COMMAND_PATTERN =
/^\/(?<command>ask|execute|exec)(?=$|[\s::])[\s::]*/iu
const CHINESE_PATTERN =
/^(?<command>对话|问答|执行)(?=$|[\s::])[\s::]*/u
export function parseRemoteChannelPrompt(
text: string,
defaultWorkMode: InteractiveWorkMode
text: string
): {
workMode: InteractiveWorkMode
prompt: string
} {
const value = text.trim()
const commandMatch = COMMAND_PATTERN.exec(value)
const chineseMatch = commandMatch ? undefined : CHINESE_PATTERN.exec(value)
const match = commandMatch ?? chineseMatch
const command = (
match?.groups?.command ?? ''
).toLocaleLowerCase()
const workMode =
command === 'execute' ||
command === 'exec' ||
command === '执行'
? 'execute'
: command === 'ask' ||
command === '对话' ||
command === '问答'
? 'ask'
: defaultWorkMode
const prompt = match ? value.slice(match[0].length).trim() : value
const prompt = text.trim()
if (!prompt) {
throw new Error('远程请求内容不能为空')
}
return { workMode, prompt }
return { prompt }
}
export function requestsRemoteResultFile(text: string): boolean {