@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/auth/credentials.d.ts +39 -0
- package/dist/auth/credentials.js +170 -0
- package/dist/auth/oauth/chatgpt.d.ts +40 -0
- package/dist/auth/oauth/chatgpt.js +197 -0
- package/dist/auth/oauth/index.d.ts +32 -0
- package/dist/auth/oauth/index.js +1 -0
- package/dist/auth/oauth/pkce.d.ts +5 -0
- package/dist/auth/oauth/pkce.js +12 -0
- package/dist/auth/refresh.d.ts +12 -0
- package/dist/auth/refresh.js +40 -0
- package/dist/auth/token.d.ts +17 -0
- package/dist/auth/token.js +26 -0
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +12 -6
- package/dist/config.d.ts +47 -6
- package/dist/config.js +83 -12
- package/dist/dispatch.js +45 -8
- package/dist/index.js +130 -4
- package/dist/mode.d.ts +2 -2
- package/dist/mode.js +2 -2
- package/dist/state.d.ts +7 -2
- package/dist/state.js +5 -1
- package/dist/trust-ui.d.ts +13 -0
- package/dist/trust-ui.js +17 -2
- package/package.json +15 -14
package/dist/trust-ui.js
CHANGED
|
@@ -104,12 +104,27 @@ opts) {
|
|
|
104
104
|
}
|
|
105
105
|
settled = true;
|
|
106
106
|
pendingAsk = null;
|
|
107
|
-
|
|
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.
|
|
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.
|
|
22
|
-
"@vincemakes/kiso-core": "0.
|
|
23
|
-
"@vincemakes/kiso-evals": "0.
|
|
24
|
-
"@vincemakes/kiso-mcp-ext": "0.
|
|
25
|
-
"@vincemakes/kiso-provider-anthropic": "0.
|
|
26
|
-
"@vincemakes/kiso-provider-openai": "0.
|
|
27
|
-
"@vincemakes/kiso-
|
|
28
|
-
"@vincemakes/kiso-
|
|
29
|
-
"@vincemakes/kiso-
|
|
30
|
-
"@vincemakes/kiso-
|
|
31
|
-
"@vincemakes/kiso-
|
|
32
|
-
"@vincemakes/kiso-
|
|
33
|
-
"@vincemakes/kiso-tui
|
|
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",
|