feat: update webui extensions, models, and agent config
This commit is contained in:
@@ -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:
|
||||
|
||||
6
packages/coding-agent/npm-shrinkwrap.json
generated
6
packages/coding-agent/npm-shrinkwrap.json
generated
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user