feat: update webui extensions, models, and agent config
Some checks failed
CI / build-check-test (push) Has been cancelled
npm audit / audit (push) Has been cancelled

This commit is contained in:
2026-06-10 21:45:53 +08:00
parent cf5edd6394
commit d51a055d78
64 changed files with 3238 additions and 1665 deletions

View File

@@ -426,7 +426,15 @@ Response:
Execute a shell command and add output to conversation context.
```json
{"type": "bash", "command": "ls -la"}
{"type": "bash", "command": "ls -la", "excludeFromContext": false}
```
Optional `excludeFromContext` (default `false`): when `true`, the command output is shown in the UI but excluded from the LLM context on the next prompt (equivalent to `!!cmd` in the TUI).
During execution, `bash_update` events stream partial stdout:
```json
{"type": "bash_update", "command": "ls -la", "partialOutput": "total 48\n"}
```
Response:

View File

@@ -1321,8 +1321,7 @@
"license": "MIT",
"bin": {
"jiti": "lib/jiti-cli.mjs"
},
"peer": true
}
},
"node_modules/json-bigint": {
"version": "1.0.0",
@@ -1775,8 +1774,7 @@
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
},
"peer": true
}
},
"node_modules/zod-to-json-schema": {
"version": "3.25.2",

View File

@@ -546,7 +546,15 @@ export async function runRpcMode(runtimeHost: AgentSessionRuntime): Promise<neve
// =================================================================
case "bash": {
const result = await session.executeBash(command.command);
let partialOutput = "";
const result = await session.executeBash(
command.command,
(chunk) => {
partialOutput += chunk;
output({ type: "bash_update", command: command.command, partialOutput });
},
{ excludeFromContext: command.excludeFromContext },
);
return success(id, "bash", result);
}

View File

@@ -50,7 +50,7 @@ export type RpcCommand =
| { id?: string; type: "abort_retry" }
// Bash
| { id?: string; type: "bash"; command: string }
| { id?: string; type: "bash"; command: string; excludeFromContext?: boolean }
| { id?: string; type: "abort_bash" }
// Session