@vincemakes/kiso-code 0.16.8 → 0.18.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/dispatch.js +24 -0
- package/package.json +14 -14
package/dist/dispatch.js
CHANGED
|
@@ -107,6 +107,30 @@ export function dispatch(line, ctx) {
|
|
|
107
107
|
ctx.chainRef.current = ctx.chainRef.current.then(land);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
+
if (trimmed === "/rewrap") {
|
|
111
|
+
// R4 (C4d): re-print the recent PROSE at the CURRENT width, at the
|
|
112
|
+
// bottom. kiso hard-folds every row before committing it (invariant
|
|
113
|
+
// ①), which is what makes the transcript the terminal's own — and
|
|
114
|
+
// is also why the terminal cannot re-wrap it on a resize: there is
|
|
115
|
+
// no soft-wrap flag to reflow. Appending is the one move ADR-0046
|
|
116
|
+
// allows, so this is the whole of what can be offered, and it says
|
|
117
|
+
// so rather than pretending the history changed.
|
|
118
|
+
ctx.chainRef.current = ctx.chainRef.current.then(async () => {
|
|
119
|
+
const r = body.rewrap();
|
|
120
|
+
if (r.lines.length === 0) {
|
|
121
|
+
bodyLog("[/rewrap] no prose to re-wrap yet");
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
bodyLog(`--- re-wrapped ${r.blocks} block${r.blocks === 1 ? "" : "s"} at the current width (appended — the history above is unchanged) ---`);
|
|
125
|
+
for (const line of r.lines)
|
|
126
|
+
bodyLog(line);
|
|
127
|
+
if (r.skipped > 0)
|
|
128
|
+
bodyLog(`--- ${r.skipped} earlier block${r.skipped === 1 ? "" : "s"} not re-wrapped (bounded at two screens) ---`);
|
|
129
|
+
}
|
|
130
|
+
ctx.input.prompt();
|
|
131
|
+
});
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
110
134
|
if (trimmed === "/context") {
|
|
111
135
|
// TUI2-R1 (E): the rent-ledger attribution — where the context went,
|
|
112
136
|
// read from the session's TRACE SIDECAR (the observation file E1/E3
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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,19 @@
|
|
|
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-runtime": "0.
|
|
28
|
-
"@vincemakes/kiso-skills-ext": "0.
|
|
29
|
-
"@vincemakes/kiso-subagent-ext": "0.
|
|
30
|
-
"@vincemakes/kiso-task-ext": "0.
|
|
31
|
-
"@vincemakes/kiso-tools-node": "0.
|
|
32
|
-
"@vincemakes/kiso-tui": "0.
|
|
33
|
-
"@vincemakes/kiso-tui-cells": "0.
|
|
21
|
+
"@vincemakes/kiso-ask-ext": "0.18.0",
|
|
22
|
+
"@vincemakes/kiso-core": "0.18.0",
|
|
23
|
+
"@vincemakes/kiso-evals": "0.18.0",
|
|
24
|
+
"@vincemakes/kiso-mcp-ext": "0.18.0",
|
|
25
|
+
"@vincemakes/kiso-provider-anthropic": "0.18.0",
|
|
26
|
+
"@vincemakes/kiso-provider-openai": "0.18.0",
|
|
27
|
+
"@vincemakes/kiso-runtime": "0.18.0",
|
|
28
|
+
"@vincemakes/kiso-skills-ext": "0.18.0",
|
|
29
|
+
"@vincemakes/kiso-subagent-ext": "0.18.0",
|
|
30
|
+
"@vincemakes/kiso-task-ext": "0.18.0",
|
|
31
|
+
"@vincemakes/kiso-tools-node": "0.18.0",
|
|
32
|
+
"@vincemakes/kiso-tui": "0.18.0",
|
|
33
|
+
"@vincemakes/kiso-tui-cells": "0.18.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.2",
|