@vincemakes/kiso-tools-node 0.7.0 → 0.9.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.d.ts CHANGED
@@ -18,6 +18,42 @@
18
18
  * always has a path to the full content.
19
19
  */
20
20
  import { type Tool, type ToolResult } from "@vincemakes/kiso-core";
21
+ /**
22
+ * TUI2-R1 (C) — THE SHELL PROGRESS SIDECAR.
23
+ *
24
+ * The tool contract returns output at completion; there is no
25
+ * incremental channel, and the ① probe pinned that adding one would be
26
+ * a core change this round may not make. So the shell tool ALSO writes
27
+ * what it sees to a temp file, and the terminal — which is a different
28
+ * process concern entirely — tails it. The trace-sidecar precedent
29
+ * governs: an observation file never feeds correctness.
30
+ *
31
+ * Four properties make that claim true rather than hopeful:
32
+ *
33
+ * 1. THE FILE IS NOT DURABLE STATE. It lives in the OS temp dir, never
34
+ * under KISO_HOME. Recovery is computed from the event log; a file
35
+ * the session store has never heard of cannot reach it.
36
+ * 2. IT IS REMOVED AT SETTLE — every settle: success, non-zero exit,
37
+ * timeout, abort. A kill -9 can leave one behind, which is why (3).
38
+ * 3. IT IS TRUNCATED, NEVER APPENDED TO, AT THE START. A leftover from
39
+ * a killed run is cleared before the first chunk, so a ghost can
40
+ * never be read as this run's output.
41
+ * 4. EVERY FILE OPERATION IS BEST-EFFORT. A full disk, a read-only
42
+ * temp dir, a racing remover — none may cost the command its
43
+ * result. A degraded sidecar costs the tail and nothing else.
44
+ *
45
+ * THE KEY IS DERIVED, not the executionId: finding ①c is that the
46
+ * executionId is allocated kernel-side at the drain and is not reachable
47
+ * from inside a tool. Both sides instead hold the two facts the key is
48
+ * built from — the sessionId the contract already carries into execute,
49
+ * and the command itself, which the terminal has verbatim in the running
50
+ * cell's input.
51
+ */
52
+ export declare const SHELL_PROGRESS_DIR: string;
53
+ /** The sidecar path for one shell call — the same path from either side,
54
+ * derived from facts both sides already have. A digest, so a command
55
+ * full of slashes and dots can never become a path. */
56
+ export declare function shellProgressPath(sessionId: string | undefined, command: string): string;
21
57
  /**
22
58
  * A path that the workspace boundary refuses — never attempted, reported as
23
59
  * a precondition (the tool COULD run it, the gate refused it).
package/dist/index.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tools-node",
3
- "version": "0.7.0",
3
+ "version": "0.9.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.7.0"
24
+ "@vincemakes/kiso-core": "0.9.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^26.1.2",