@vincemakes/kiso-tools-node 0.54.0 → 0.54.2

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.d.ts CHANGED
@@ -325,6 +325,7 @@ interface SettledTask {
325
325
  }
326
326
  type ShellInput = {
327
327
  command: string;
328
+ description?: string;
328
329
  timeoutMs?: number;
329
330
  foregroundMs?: number;
330
331
  background?: boolean;
package/dist/index.js CHANGED
@@ -672,7 +672,11 @@ export function listDirTool(opts) {
672
672
  source: re.source,
673
673
  flags: re.flags,
674
674
  // beyond the workspace the walk is relative to `base`, and its stops are named that way
675
- excluded: reach.base === null ? (opts.excludeRoots ?? []) : [...(opts.excludeRoots ?? []), ...(opts.stopRoots ?? [])].map((ex) => relative(diskPath(reach.base), diskPath(ex)).split(sep).join("/")),
675
+ // the worker compares workspace-relative paths, so the stops are named that way: in the workspace too, where an
676
+ // absolute excludeRoots entry used to be passed as is and never matched (a primary at ~ walked ~/.kiso)
677
+ excluded: reach.base === null
678
+ ? (opts.excludeRoots ?? []).map((ex) => relative(realOrSelf(opts.workspaceRoot), realOrSelf(ex)).split(sep).join("/"))
679
+ : [...(opts.excludeRoots ?? []), ...(opts.stopRoots ?? [])].map((ex) => relative(diskPath(reach.base), diskPath(ex)).split(sep).join("/")),
676
680
  maxEntries: MAX_DIR_ENTRIES,
677
681
  maxVisited: opts.limits?.searchMaxFiles ?? SEARCH_MAX_FILES,
678
682
  deadline,
@@ -1576,6 +1580,8 @@ export function shellTool(opts) {
1576
1580
  type: "object",
1577
1581
  properties: {
1578
1582
  command: { type: "string", description: "The command to run" },
1583
+ // background-task names step 2 (kiso-doc plan rev 3, owner-approved): a name for people, never read by the executor
1584
+ description: { type: "string", description: "Short user-facing description of the intended action, not its status or result." },
1579
1585
  foregroundMs: { type: "number", description: "How long to wait for the result, in ms (default 60000); if you need the result to go on, allow enough time" },
1580
1586
  background: {
1581
1587
  type: "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tools-node",
3
- "version": "0.54.0",
3
+ "version": "0.54.2",
4
4
  "description": "kiso coding tools for Node hosts \u2014 read file, list directory, search text, write/edit file, shell command.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "test": "vitest run"
26
26
  },
27
27
  "dependencies": {
28
- "@vincemakes/kiso-core": "0.54.0",
28
+ "@vincemakes/kiso-core": "0.54.2",
29
29
  "ignore": "^7.0.9"
30
30
  },
31
31
  "devDependencies": {