koneck 2.25.53 → 2.25.55
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/engine.d.ts +14 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +107 -9
- package/dist/engine.js.map +1 -1
- package/dist/ink-chat.d.ts.map +1 -1
- package/dist/ink-chat.js +9 -0
- package/dist/ink-chat.js.map +1 -1
- package/dist/trajectory.d.ts +99 -0
- package/dist/trajectory.d.ts.map +1 -0
- package/dist/trajectory.js +125 -0
- package/dist/trajectory.js.map +1 -0
- package/package.json +1 -1
package/dist/ink-chat.js
CHANGED
|
@@ -36,6 +36,7 @@ import { AskQueue } from './ask-queue.js';
|
|
|
36
36
|
import { planSummary } from './plan.js';
|
|
37
37
|
import { logoFor } from './logo.js';
|
|
38
38
|
import { describeActivity } from './activity.js';
|
|
39
|
+
import { renderTrajectory } from './trajectory.js';
|
|
39
40
|
import { describeSandbox, resolveSandbox } from './sandbox.js';
|
|
40
41
|
const CYAN = '#54D7E7';
|
|
41
42
|
const GREEN = '#9BCB8F';
|
|
@@ -446,6 +447,7 @@ const COMMANDS = [
|
|
|
446
447
|
{ cmd: '/altscreen', desc: 'Pin the prompt to the last row (own screen, own scrollback)' },
|
|
447
448
|
{ cmd: '/thinking', desc: 'Show or hide the model\'s reasoning as it arrives' },
|
|
448
449
|
{ cmd: '/activity', desc: 'What the model has done this session, and what it is on now' },
|
|
450
|
+
{ cmd: '/trajectory', desc: 'Where the time went: per-request timings, tool durations, waits' },
|
|
449
451
|
{ cmd: '/name', desc: 'Name this session, so /resume can find it by name' },
|
|
450
452
|
{ cmd: '/fork', desc: 'Copy this session and continue on the copy' },
|
|
451
453
|
{ cmd: '/archive', desc: 'Keep a session but hide it from /resume' },
|
|
@@ -1780,6 +1782,13 @@ function App({ config: initialConfig }) {
|
|
|
1780
1782
|
: 'Hiding the reasoning. The token count stays on the working line.');
|
|
1781
1783
|
return;
|
|
1782
1784
|
}
|
|
1785
|
+
case '/trajectory': {
|
|
1786
|
+
// The timings the transcript cannot answer for: where the time went, which tool was slow,
|
|
1787
|
+
// how much of a long turn was spent waiting for a first token rather than generating.
|
|
1788
|
+
const s = await activeSession.p.catch(() => null);
|
|
1789
|
+
addSystem(renderTrajectory(s?.trajectory ?? []));
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1783
1792
|
case '/activity': {
|
|
1784
1793
|
// Built from the transcript that is already held rather than a second log kept in
|
|
1785
1794
|
// parallel: two records of the same events drift, and the one shown would be the wrong one.
|