@demicodes/agent 0.25.10 → 0.25.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1087,6 +1087,7 @@ var ProviderTurnLoop = class {
|
|
|
1087
1087
|
...event,
|
|
1088
1088
|
diagnostics
|
|
1089
1089
|
};
|
|
1090
|
+
if (this.host.transcript.removeDanglingToolCalls().length > 0) await this.host.commitTranscript();
|
|
1090
1091
|
if (findResumePoint(this.host.transcript.blocks).cut <= attemptStart && attempt < policy.maxAttempts && isRetryableCode(policy, errorEvent.code)) {
|
|
1091
1092
|
if (this.host.transcript.truncateFrom(attemptStart)) await this.host.commitTranscript();
|
|
1092
1093
|
return {
|
|
@@ -2327,7 +2328,7 @@ function createStandardAgentTools(options) {
|
|
|
2327
2328
|
return [
|
|
2328
2329
|
{
|
|
2329
2330
|
name: "shell_exec",
|
|
2330
|
-
description: "Start a shell script and observe it for up to timeoutMs. timeoutMs is an observation window, not a kill deadline: at timeoutMs the command keeps running and a command handle (commandId) is returned. Completed short output is returned directly. shell_exec never ends the turn or schedules a wakeup on its own.",
|
|
2331
|
+
description: "Start a shell script and observe it for up to timeoutMs. timeoutMs is an observation window, not a kill deadline: at timeoutMs the command keeps running and a command handle (commandId) is returned. Completed short output is returned directly. shell_exec never ends the turn or schedules a wakeup on its own. Set timeoutMs to how long the command is expected to take, such as 30000 to 120000 for queries, log or API lookups, tests and builds, so its result returns in this call; a timeoutMs shorter than the command only adds shell_status round trips. Use a short timeoutMs only for a server, watcher or long job you intend to leave running. Commands that do not depend on each other go in one response as several shell_exec calls.",
|
|
2331
2332
|
inputSchema: {
|
|
2332
2333
|
type: "object",
|
|
2333
2334
|
additionalProperties: false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demicodes/agent",
|
|
3
3
|
"description": "Session runtime and transport-neutral client and server protocol for Demi.",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@demicodes/core": "^0.25.
|
|
23
|
-
"@demicodes/provider": "^0.25.
|
|
24
|
-
"@demicodes/shell": "^0.25.
|
|
25
|
-
"@demicodes/utils": "^0.25.
|
|
22
|
+
"@demicodes/core": "^0.25.12",
|
|
23
|
+
"@demicodes/provider": "^0.25.12",
|
|
24
|
+
"@demicodes/shell": "^0.25.12",
|
|
25
|
+
"@demicodes/utils": "^0.25.12",
|
|
26
26
|
"zod": "^4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|