@demicodes/agent 0.24.1 → 0.25.0
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 +8 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -2262,11 +2262,17 @@ function createStandardAgentTools(options) {
|
|
|
2262
2262
|
inputSchema: {
|
|
2263
2263
|
type: "object",
|
|
2264
2264
|
additionalProperties: false,
|
|
2265
|
-
required: [
|
|
2265
|
+
required: [
|
|
2266
|
+
"script",
|
|
2267
|
+
"description",
|
|
2268
|
+
"timeoutMs"
|
|
2269
|
+
],
|
|
2266
2270
|
properties: {
|
|
2267
2271
|
script: { type: "string" },
|
|
2268
2272
|
description: {
|
|
2269
2273
|
type: "string",
|
|
2274
|
+
minLength: 1,
|
|
2275
|
+
pattern: "\\S",
|
|
2270
2276
|
description: TOOL_DESCRIPTION_FIELD
|
|
2271
2277
|
},
|
|
2272
2278
|
shellId: { type: "string" },
|
|
@@ -2524,6 +2530,7 @@ function binaryStreamVerdict(binary, binPath, model, maxMediaBytes) {
|
|
|
2524
2530
|
function parseShellExecInput(input) {
|
|
2525
2531
|
const record = asRecord(input, "agent tool input must be an object");
|
|
2526
2532
|
if (typeof record.script !== "string") throw new Error("shell_exec requires string field \"script\"");
|
|
2533
|
+
if (typeof record.description !== "string" || record.description.trim().length === 0) throw new Error("shell_exec requires non-empty string field \"description\"");
|
|
2527
2534
|
return {
|
|
2528
2535
|
script: record.script,
|
|
2529
2536
|
shellId: asString(record.shellId),
|
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.
|
|
4
|
+
"version": "0.25.0",
|
|
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.
|
|
23
|
-
"@demicodes/provider": "^0.
|
|
24
|
-
"@demicodes/shell": "^0.
|
|
25
|
-
"@demicodes/utils": "^0.
|
|
22
|
+
"@demicodes/core": "^0.25.0",
|
|
23
|
+
"@demicodes/provider": "^0.25.0",
|
|
24
|
+
"@demicodes/shell": "^0.25.0",
|
|
25
|
+
"@demicodes/utils": "^0.25.0",
|
|
26
26
|
"zod": "^4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|