koneck 2.128.13 → 2.128.15
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/ink-chat.d.ts +3 -1
- package/dist/ink-chat.d.ts.map +1 -1
- package/dist/ink-chat.js +44 -15
- package/dist/ink-chat.js.map +1 -1
- package/package.json +1 -1
package/dist/ink-chat.d.ts
CHANGED
|
@@ -355,10 +355,12 @@ compositesRedraws?: boolean): boolean;
|
|
|
355
355
|
* fill the height available and the rest are counted, since a panel that scrolls past what you
|
|
356
356
|
* wanted is no better than no panel.
|
|
357
357
|
*/
|
|
358
|
-
export declare function DiffPanel({ files, width, height }: {
|
|
358
|
+
export declare function DiffPanel({ files, width, height, activity, activityRows }: {
|
|
359
359
|
files: readonly FileDiff[];
|
|
360
360
|
width: number;
|
|
361
361
|
height: number;
|
|
362
|
+
activity?: React.ReactNode;
|
|
363
|
+
activityRows?: number;
|
|
362
364
|
}): React.JSX.Element;
|
|
363
365
|
/**
|
|
364
366
|
* Exported for one reason: so a test can mount it.
|
package/dist/ink-chat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ink-chat.d.ts","sourceRoot":"","sources":["../src/ink-chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA2B3D,OAAO,EAAyB,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAuCtE,OAAO,KAAK,EAAY,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAiB5D,OAAO,EAA6C,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3F,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAC;AAoD7D,KAAK,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAGhD,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAI9D;AA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I,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAmB,EAC7E,GAAG,GAAE,MAAM,CAAC,UAAwB;AACpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAiB,UAAQ,GACxB,OAAO,CAQT;AA2BD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAgB,EAAE,EAAE;IACpD,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GACA,KAAK,CAAC,GAAG,CAAC,OAAO,CA2GnB;AAED;;;;;;;GAOG;AACH,wBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,kBAA0B,EAAE,EACxE;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7C,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA2rKhE;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAoCvE"}
|
package/dist/ink-chat.js
CHANGED
|
@@ -1239,17 +1239,20 @@ function renderCodeLine(text, kind, width, lang) {
|
|
|
1239
1239
|
* fill the height available and the rest are counted, since a panel that scrolls past what you
|
|
1240
1240
|
* wanted is no better than no panel.
|
|
1241
1241
|
*/
|
|
1242
|
-
export function DiffPanel({ files, width, height }) {
|
|
1242
|
+
export function DiffPanel({ files, width, height, activity, activityRows = 0 }) {
|
|
1243
1243
|
const added = files.reduce((n, d) => n + d.added, 0);
|
|
1244
1244
|
const removed = files.reduce((n, d) => n + d.removed, 0);
|
|
1245
|
-
|
|
1245
|
+
// The persistent panel needs a visible boundary even before an edit arrives. Without one, its
|
|
1246
|
+
// empty state was a single easy-to-miss line and looked as if `/diff` had done nothing.
|
|
1247
|
+
const inner = Math.max(20, width - 4);
|
|
1248
|
+
const bodyHeight = Math.max(1, height - 4 - activityRows);
|
|
1246
1249
|
// Rows are laid out against the height available, newest file first, so the thing just
|
|
1247
1250
|
// written is the thing on screen.
|
|
1248
1251
|
const body = [];
|
|
1249
1252
|
let used = 0;
|
|
1250
1253
|
let shownFiles = 0;
|
|
1251
1254
|
for (const d of [...files].reverse()) {
|
|
1252
|
-
if (used + 2 >
|
|
1255
|
+
if (used + 2 > bodyHeight)
|
|
1253
1256
|
break;
|
|
1254
1257
|
/*
|
|
1255
1258
|
* A rule between files, so the panel reads as sections rather than one column of lines.
|
|
@@ -1259,7 +1262,7 @@ export function DiffPanel({ files, width, height }) {
|
|
|
1259
1262
|
* blank line as the only separation two files' diffs ran together and the filename headers had
|
|
1260
1263
|
* nothing to sit under. Drawn only between files, never above the first.
|
|
1261
1264
|
*/
|
|
1262
|
-
if (shownFiles > 0 && used + 1 <
|
|
1265
|
+
if (shownFiles > 0 && used + 1 < bodyHeight) {
|
|
1263
1266
|
body.push(_jsx(Text, { color: DIM, children: '─'.repeat(inner) }, `r-${d.path}`));
|
|
1264
1267
|
used += 1;
|
|
1265
1268
|
}
|
|
@@ -1277,14 +1280,14 @@ export function DiffPanel({ files, width, height }) {
|
|
|
1277
1280
|
continue;
|
|
1278
1281
|
}
|
|
1279
1282
|
for (const [hi, hunk] of d.hunks.entries()) {
|
|
1280
|
-
if (used >=
|
|
1283
|
+
if (used >= bodyHeight)
|
|
1281
1284
|
break;
|
|
1282
|
-
if (hi > 0 && used <
|
|
1285
|
+
if (hi > 0 && used < bodyHeight) {
|
|
1283
1286
|
body.push(_jsx(Text, { color: DIM, children: `${' '.repeat(gutter)} ⋯` }, `g-${d.path}-${hi}`));
|
|
1284
1287
|
used += 1;
|
|
1285
1288
|
}
|
|
1286
1289
|
for (const [li, l] of hunk.lines.entries()) {
|
|
1287
|
-
if (used >=
|
|
1290
|
+
if (used >= bodyHeight)
|
|
1288
1291
|
break;
|
|
1289
1292
|
const shown = l.kind === 'del' ? l.before : l.after;
|
|
1290
1293
|
const sign = l.kind === 'add' ? '+' : l.kind === 'del' ? '-' : ' ';
|
|
@@ -1293,19 +1296,19 @@ export function DiffPanel({ files, width, height }) {
|
|
|
1293
1296
|
used += 1;
|
|
1294
1297
|
}
|
|
1295
1298
|
}
|
|
1296
|
-
if (d.hiddenLines > 0 && used <
|
|
1299
|
+
if (d.hiddenLines > 0 && used < bodyHeight) {
|
|
1297
1300
|
body.push(_jsx(Text, { color: DIM, children: `${' '.repeat(gutter)} ⋯ ${d.hiddenLines} more` }, `m-${d.path}`));
|
|
1298
1301
|
used += 1;
|
|
1299
1302
|
}
|
|
1300
1303
|
shownFiles++;
|
|
1301
1304
|
used += 1;
|
|
1302
|
-
if (used <
|
|
1305
|
+
if (used < bodyHeight)
|
|
1303
1306
|
body.push(_jsx(Text, { children: " " }, `s-${d.path}`));
|
|
1304
1307
|
}
|
|
1305
1308
|
const summary = files.length === 0
|
|
1306
1309
|
? 'no changes yet'
|
|
1307
1310
|
: `${files.length} file${files.length === 1 ? '' : 's'} changed`;
|
|
1308
|
-
return (_jsxs(Box, { flexDirection: "column", width: width,
|
|
1311
|
+
return (_jsxs(Box, { flexDirection: "column", width: width, height: height, borderStyle: "round", borderColor: CYAN, paddingX: 1, flexShrink: 0, overflowY: "hidden", children: [_jsxs(Box, { justifyContent: "space-between", width: inner, children: [_jsxs(Box, { children: [_jsx(Text, { color: INK, bold: true, children: summary }), added > 0 && _jsxs(Text, { color: DIFF_ADD, children: [" +", added] }), removed > 0 && _jsxs(Text, { color: DIFF_DEL, children: [" -", removed] })] }), _jsx(Text, { color: DIM, children: "/diff" })] }), activity && _jsxs(_Fragment, { children: [_jsx(Text, { color: DIM, children: '─'.repeat(inner) }), _jsx(Box, { flexDirection: "column", height: Math.max(1, activityRows - 1), overflowY: "hidden", children: activity })] }), _jsx(Box, { flexDirection: "column", flexGrow: 1, flexShrink: 1, overflowY: "hidden", children: body }), shownFiles < files.length && (_jsx(Text, { color: DIM, children: `… ${files.length - shownFiles} more file(s) changed` }))] }));
|
|
1309
1312
|
}
|
|
1310
1313
|
/**
|
|
1311
1314
|
* Exported for one reason: so a test can mount it.
|
|
@@ -1337,6 +1340,8 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
1337
1340
|
* visible flashing during a response. The already-throttled live refresh reads this ref.
|
|
1338
1341
|
*/
|
|
1339
1342
|
const providerFramesRef = useRef(0);
|
|
1343
|
+
/** Last time an incoming provider event was allowed to refresh a still screen. */
|
|
1344
|
+
const lastIncomingPaintRef = useRef(0);
|
|
1340
1345
|
/**
|
|
1341
1346
|
* Reasoning characters this turn, and when the last one arrived.
|
|
1342
1347
|
*
|
|
@@ -1443,6 +1448,7 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
1443
1448
|
sayRef.current += text;
|
|
1444
1449
|
streamedRef.current += text;
|
|
1445
1450
|
charsRef.current += text.length;
|
|
1451
|
+
requestIncomingPaint();
|
|
1446
1452
|
const cut = safeCommitPoint(sayRef.current);
|
|
1447
1453
|
if (cut <= 0)
|
|
1448
1454
|
return;
|
|
@@ -1654,7 +1660,10 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
1654
1660
|
if (liveToolRef.current)
|
|
1655
1661
|
liveToolRef.current.output = line;
|
|
1656
1662
|
},
|
|
1657
|
-
onStreamActivity: (frames) => {
|
|
1663
|
+
onStreamActivity: (frames) => {
|
|
1664
|
+
providerFramesRef.current = frames;
|
|
1665
|
+
requestIncomingPaint();
|
|
1666
|
+
},
|
|
1658
1667
|
onIncomplete: (reason) => { incompleteRef.current = reason; },
|
|
1659
1668
|
onToolsUnsupported: (model) => {
|
|
1660
1669
|
// Said once per session, not once per turn — it is a property of the model, not an event.
|
|
@@ -1699,6 +1708,7 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
1699
1708
|
// produce tens of thousands of characters per turn, and what anyone watching wants is what
|
|
1700
1709
|
// it is thinking now.
|
|
1701
1710
|
thinkingTextRef.current = (thinkingTextRef.current + text).slice(-THINKING_TAIL_CHARS);
|
|
1711
|
+
requestIncomingPaint();
|
|
1702
1712
|
},
|
|
1703
1713
|
onAgentProgress: (list) => { agentsRef.current = list; setAgents(list); },
|
|
1704
1714
|
onWindowDetected: (limit, source) => setDetectedContext({ limit, source }),
|
|
@@ -1911,6 +1921,23 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
1911
1921
|
}, [mouse, altScreen, rows.length]);
|
|
1912
1922
|
/** Bumped to make Ink write a frame whose content has not changed. See redrawScreen. */
|
|
1913
1923
|
const [repaint, setRepaint] = useState(0);
|
|
1924
|
+
/**
|
|
1925
|
+
* `animate: false` means no idle animation frames, not "hide real incoming work until the
|
|
1926
|
+
* turn completes". The old ticker was the only thing that painted ref-backed stream text, so
|
|
1927
|
+
* a provider could stream an entire reply while the screen stayed still, then reveal it in one
|
|
1928
|
+
* burst. Refresh only when the provider actually sends progress, and cap it at one small frame
|
|
1929
|
+
* per 1.2 seconds: that makes thinking and output visible without recreating the flicker that
|
|
1930
|
+
* the still-screen setting exists to avoid.
|
|
1931
|
+
*/
|
|
1932
|
+
function requestIncomingPaint() {
|
|
1933
|
+
if (animate || ask)
|
|
1934
|
+
return;
|
|
1935
|
+
const now = Date.now();
|
|
1936
|
+
if (now - lastIncomingPaintRef.current < 1_200)
|
|
1937
|
+
return;
|
|
1938
|
+
lastIncomingPaintRef.current = now;
|
|
1939
|
+
setRepaint(n => n + 1);
|
|
1940
|
+
}
|
|
1914
1941
|
const [ask, setAsk] = useState(null);
|
|
1915
1942
|
/*
|
|
1916
1943
|
* Entering the alternate buffer, and then making sure something is drawn in it.
|
|
@@ -5697,7 +5724,6 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
5697
5724
|
* every spinner tick is what a clipped viewport would otherwise cost. Only enough to fill the
|
|
5698
5725
|
* screen a few times over is kept, which is more than can be shown and far less than all.
|
|
5699
5726
|
*/
|
|
5700
|
-
const VIEWPORT_ROWS = 120;
|
|
5701
5727
|
/**
|
|
5702
5728
|
* The height of the alt-screen frame: one row short of the terminal, deliberately.
|
|
5703
5729
|
*
|
|
@@ -5708,8 +5734,11 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
5708
5734
|
* looks like. One row shorter and the same keystrokes redraw only the line that changed.
|
|
5709
5735
|
*/
|
|
5710
5736
|
const frameRows = Math.max(4, termRows - 1);
|
|
5737
|
+
// Repaint only the rows that can plausibly fit on screen. A fixed 120-row history made every
|
|
5738
|
+
// incoming network update needlessly expensive on smaller computers.
|
|
5739
|
+
const viewportRows = Math.max(12, frameRows - 6);
|
|
5711
5740
|
const visibleRows = altScreen
|
|
5712
|
-
? rows.slice(Math.max(0, rows.length - scrollBack -
|
|
5741
|
+
? rows.slice(Math.max(0, rows.length - scrollBack - viewportRows), rows.length - scrollBack)
|
|
5713
5742
|
: rows;
|
|
5714
5743
|
return (_jsxs(Box, { flexDirection: "column", width: uiWidth, paddingX: 2, ...(altScreen ? { height: frameRows } : {}), children: [_jsxs(Box, { flexDirection: "row", flexGrow: 0, flexShrink: 1, ...(altScreen ? { overflowY: 'hidden' } : {}), children: [_jsxs(Box, { flexDirection: "column", width: contentWidth, flexGrow: 0, flexShrink: 1, ...(altScreen ? { overflowY: 'hidden' } : {}), children: [altScreen && !ask && (
|
|
5715
5744
|
// Grows no further than its content, but shrinks when there is not enough screen.
|
|
@@ -6072,9 +6101,9 @@ export function App({ config: initialConfig, clearFrame, synchronizedFrames = fa
|
|
|
6072
6101
|
: '*type the number, or arrows and enter · esc refuses*',
|
|
6073
6102
|
];
|
|
6074
6103
|
return (_jsx(Box, { marginTop: 1, children: _jsx(Panel, { width: panelWidth(lines, barWidth, 46), color: AMBER, title: `Permission — ${modeSpec(mode).label} mode`, children: lines }) }));
|
|
6075
|
-
})()] }), sidePanelOpen && (
|
|
6104
|
+
})()] }), sidePanelOpen && (_jsx(Box, { flexDirection: "column", width: diffPanelWidth, flexShrink: 0, children: diffPanelOpen && _jsx(DiffPanel, { files: liveDiffs, width: diffPanelWidth, height: Math.max(6, frameRows - 6), activityRows: activityPanelOpen ? 4 : 0, activity: activityPanelOpen ? _jsxs(_Fragment, { children: [_jsxs(Text, { color: CYAN, bold: true, children: ["Activity \u00B7 ", fmtElapsed(busyStart.current ? Date.now() - busyStart.current : 0)] }), _jsx(Text, { color: AMBER, wrap: "truncate", children: ask ? 'Waiting for your approval' : liveToolRef.current
|
|
6076
6105
|
? 'Running ' + liveToolRef.current.name : thinkingRef.current.chars > 0
|
|
6077
|
-
? 'Waiting for model · reasoning received' : 'Waiting for model' }),
|
|
6106
|
+
? 'Waiting for model · reasoning received' : 'Waiting for model' }), _jsx(Text, { color: MUTED, wrap: "truncate", children: liveToolRef.current?.detail || plan?.steps.find(s => s.state !== 'done')?.text || 'esc to interrupt' })] }) : undefined }) }))] }), _jsxs(Box, { marginTop: 1, borderStyle: "round", borderColor: busy ? DIM : CYAN, paddingX: 1, width: uiWidth - 5, flexShrink: 0, children: [_jsxs(Text, { color: CYAN, bold: true, children: [G.caret, " "] }), _jsx(Text, { color: INK, children: draft.slice(0, caret) }), busy
|
|
6078
6107
|
? _jsx(Text, { color: INK, children: draft.slice(caret) })
|
|
6079
6108
|
: caret < draft.length
|
|
6080
6109
|
? _jsxs(_Fragment, { children: [_jsx(Text, { backgroundColor: CYAN, color: "#10222A", children: draft[caret] }), _jsx(Text, { color: INK, children: draft.slice(caret + 1) })] })
|