@vincemakes/kiso-code 0.29.0 → 0.31.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/trust-ui.js CHANGED
@@ -104,12 +104,27 @@ opts) {
104
104
  }
105
105
  settled = true;
106
106
  pendingAsk = null;
107
- const yes = answer.trim().toLowerCase().startsWith("y");
108
- resolve(yes ? { action: "allow", reason: "" } : { action: "deny", reason: "" });
107
+ resolve(parseFallbackAnswer(answer));
109
108
  });
110
109
  }
111
110
  });
112
111
  }
112
+ /**
113
+ * The dock-less fallback line → a verdict. `y…` allows. `n <reason>` / `no
114
+ * <reason>` DENIES WITH THE REASON — the words become the tool result and
115
+ * the run continues with the model seeing them, the same verdict the panel's
116
+ * "No + words" produces (chat.ts, the deny case). A bare `n`/`no`, or any
117
+ * other line, is the bare denial that aborts the run — unchanged. (LH-1 ruling
118
+ * 2026-09-08: the default refusal across arms is refuse-with-a-reason-and-
119
+ * continue, and the surface a piped or 0-row leg drives is this one.)
120
+ */
121
+ export function parseFallbackAnswer(answer) {
122
+ const line = answer.trim();
123
+ if (line.toLowerCase().startsWith("y"))
124
+ return { action: "allow", reason: "" };
125
+ const m = /^(?:n|no)\b[\s:,-]*(.*)$/is.exec(line);
126
+ return { action: "deny", reason: (m?.[1] ?? "").trim() };
127
+ }
113
128
  /**
114
129
  * KC3.5 — the AskUI bridge: the panel the ask extension asks through.
115
130
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-code",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "kiso CLI — the durable coding agent that survives kill -9: kiso chat / kiso resume / kiso sessions.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -18,19 +18,20 @@
18
18
  "test": "vitest run"
19
19
  },
20
20
  "dependencies": {
21
- "@vincemakes/kiso-ask-ext": "0.29.0",
22
- "@vincemakes/kiso-core": "0.29.0",
23
- "@vincemakes/kiso-evals": "0.29.0",
24
- "@vincemakes/kiso-mcp-ext": "0.29.0",
25
- "@vincemakes/kiso-provider-anthropic": "0.29.0",
26
- "@vincemakes/kiso-provider-openai": "0.29.0",
27
- "@vincemakes/kiso-runtime": "0.29.0",
28
- "@vincemakes/kiso-skills-ext": "0.29.0",
29
- "@vincemakes/kiso-subagent-ext": "0.29.0",
30
- "@vincemakes/kiso-task-ext": "0.29.0",
31
- "@vincemakes/kiso-tools-node": "0.29.0",
32
- "@vincemakes/kiso-tui": "0.29.0",
33
- "@vincemakes/kiso-tui-cells": "0.29.0"
21
+ "@vincemakes/kiso-ask-ext": "0.31.0",
22
+ "@vincemakes/kiso-core": "0.31.0",
23
+ "@vincemakes/kiso-evals": "0.31.0",
24
+ "@vincemakes/kiso-mcp-ext": "0.31.0",
25
+ "@vincemakes/kiso-provider-anthropic": "0.31.0",
26
+ "@vincemakes/kiso-provider-openai": "0.31.0",
27
+ "@vincemakes/kiso-provider-openai-responses": "0.31.0",
28
+ "@vincemakes/kiso-runtime": "0.31.0",
29
+ "@vincemakes/kiso-skills-ext": "0.31.0",
30
+ "@vincemakes/kiso-subagent-ext": "0.31.0",
31
+ "@vincemakes/kiso-task-ext": "0.31.0",
32
+ "@vincemakes/kiso-tools-node": "0.31.0",
33
+ "@vincemakes/kiso-tui": "0.31.0",
34
+ "@vincemakes/kiso-tui-cells": "0.31.0"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/node": "^26.1.2",