@pentoshi/clai 3.11.26 → 3.11.28
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/agent/runner.js +5 -10
- package/dist/agent/runner.js.map +1 -1
- package/dist/app/controllers/session-context-limits.d.ts +3 -3
- package/dist/app/controllers/session-context-limits.js +5 -16
- package/dist/app/controllers/session-context-limits.js.map +1 -1
- package/dist/tui-v2/app/App.js +6 -3
- package/dist/tui-v2/app/App.js.map +1 -1
- package/dist/tui-v2/components/status/status-line.js +17 -25
- package/dist/tui-v2/components/status/status-line.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-scrollbar.d.ts +15 -0
- package/dist/tui-v2/components/transcript/transcript-scrollbar.js +155 -0
- package/dist/tui-v2/components/transcript/transcript-scrollbar.js.map +1 -0
- package/dist/tui-v2/components/transcript/transcript-view.d.ts +4 -4
- package/dist/tui-v2/components/transcript/transcript-view.js +30 -39
- package/dist/tui-v2/components/transcript/transcript-view.js.map +1 -1
- package/dist/version.generated.d.ts +2 -2
- package/dist/version.generated.js +2 -2
- package/package.json +1 -1
package/dist/agent/runner.js
CHANGED
|
@@ -3128,20 +3128,15 @@ export async function runAgentTurn(prompt, options = {}) {
|
|
|
3128
3128
|
const callIds = [];
|
|
3129
3129
|
let streamedCallsCount = 0;
|
|
3130
3130
|
// A model can think silently for minutes. Without a heartbeat the UI
|
|
3131
|
-
// shows a frozen label and the turn looks hung, so surface
|
|
3132
|
-
//
|
|
3133
|
-
const streamStartedAt = Date.now();
|
|
3131
|
+
// shows a frozen label and the turn looks hung, so surface the current
|
|
3132
|
+
// phase on a timer rather than only on token arrival.
|
|
3134
3133
|
const streamPhase = () => {
|
|
3135
|
-
const seconds = Math.round((Date.now() - streamStartedAt) / 1000);
|
|
3136
|
-
const elapsed = seconds < 60
|
|
3137
|
-
? `${seconds}s`
|
|
3138
|
-
: `${Math.floor(seconds / 60)}m${String(seconds % 60).padStart(2, "0")}s`;
|
|
3139
3134
|
if (generatedTokens > 0 && !inThinking) {
|
|
3140
|
-
return
|
|
3135
|
+
return "generating response";
|
|
3141
3136
|
}
|
|
3142
3137
|
if (sawReasoning)
|
|
3143
|
-
return
|
|
3144
|
-
return
|
|
3138
|
+
return "thinking";
|
|
3139
|
+
return "waiting for model";
|
|
3145
3140
|
};
|
|
3146
3141
|
const heartbeat = setInterval(() => {
|
|
3147
3142
|
const text = streamPhase();
|