@vincemakes/kiso-tools-node 0.14.0 → 0.15.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.js +7 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -242,6 +242,7 @@ export function readFileTool(opts) {
|
|
|
242
242
|
limit: { type: "number", description: "Maximum number of lines to read (default: to the end of the file)" },
|
|
243
243
|
},
|
|
244
244
|
required: ["path"],
|
|
245
|
+
additionalProperties: false,
|
|
245
246
|
},
|
|
246
247
|
idempotent: true,
|
|
247
248
|
// EC-1 ②: read_file is read-only, free, and local for EVERY
|
|
@@ -343,6 +344,7 @@ export function listDirTool(opts) {
|
|
|
343
344
|
parameters: {
|
|
344
345
|
type: "object",
|
|
345
346
|
properties: { path: { type: "string", description: "Workspace-relative directory to list" } },
|
|
347
|
+
additionalProperties: false,
|
|
346
348
|
},
|
|
347
349
|
idempotent: true,
|
|
348
350
|
// EC-1 ②: read-only, free, local — see read_file above.
|
|
@@ -383,6 +385,7 @@ export function searchTextTool(opts) {
|
|
|
383
385
|
path: { type: "string", description: "Workspace-relative root directory (default: workspace root)" },
|
|
384
386
|
},
|
|
385
387
|
required: ["pattern"],
|
|
388
|
+
additionalProperties: false,
|
|
386
389
|
},
|
|
387
390
|
idempotent: true,
|
|
388
391
|
// EC-1 ②: read-only, free, local — see read_file above. write_file,
|
|
@@ -475,6 +478,7 @@ export function writeFileTool(opts) {
|
|
|
475
478
|
},
|
|
476
479
|
},
|
|
477
480
|
required: ["path", "content", "expectedRevision"],
|
|
481
|
+
additionalProperties: false,
|
|
478
482
|
},
|
|
479
483
|
promptSnippet: "write_file — create or replace a whole file",
|
|
480
484
|
promptGuidelines: ["write/edit: cite the file's latest revision as expectedRevision; each successful mutation returns the next one; use \"absent\" only to create"],
|
|
@@ -600,6 +604,7 @@ export function editFileTool(opts) {
|
|
|
600
604
|
type: "object",
|
|
601
605
|
properties: { search: { type: "string" }, replace: { type: "string" } },
|
|
602
606
|
required: ["search", "replace"],
|
|
607
|
+
additionalProperties: false,
|
|
603
608
|
},
|
|
604
609
|
minItems: 1,
|
|
605
610
|
maxItems: 32,
|
|
@@ -607,6 +612,7 @@ export function editFileTool(opts) {
|
|
|
607
612
|
expectedRevision: { type: "string", description: "The file's latest revision token" },
|
|
608
613
|
},
|
|
609
614
|
required: ["path", "expectedRevision"],
|
|
615
|
+
additionalProperties: false,
|
|
610
616
|
},
|
|
611
617
|
promptSnippet: "edit_file — replace an exact old_string block (never rewrite whole files)",
|
|
612
618
|
promptGuidelines: ["write/edit: cite the file's latest revision as expectedRevision; each successful mutation returns the next one; use \"absent\" only to create"],
|
|
@@ -763,6 +769,7 @@ export function shellTool(opts) {
|
|
|
763
769
|
timeoutMs: { type: "number", description: "Timeout in ms (default 30000)" },
|
|
764
770
|
},
|
|
765
771
|
required: ["command"],
|
|
772
|
+
additionalProperties: false,
|
|
766
773
|
},
|
|
767
774
|
promptSnippet: "shell — real system commands only (builds, tests, git)",
|
|
768
775
|
promptGuidelines: ["commands run in the workspace root; on failure read the error and adjust — never repeat blindly"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tools-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "kiso coding tools for Node hosts — read file, list directory, search text, write/edit file, shell command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "vitest run"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@vincemakes/kiso-core": "0.
|
|
24
|
+
"@vincemakes/kiso-core": "0.15.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^26.1.2",
|