@oxecli/oxe 1.0.48 → 1.0.50
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.js +2 -2
- package/dist/ui.js +3 -2
- package/package.json +1 -1
package/dist/engine.js
CHANGED
|
@@ -177,7 +177,7 @@ export class InferenceEngine {
|
|
|
177
177
|
let thinkingStart = null;
|
|
178
178
|
const workStatus = new Spinner();
|
|
179
179
|
const workingStarted = Date.now();
|
|
180
|
-
workStatus.start(
|
|
180
|
+
workStatus.start(`Working for ${tickDuration(0)}`);
|
|
181
181
|
const workTimer = setInterval(() => {
|
|
182
182
|
workStatus.update(`Working for ${tickDuration((Date.now() - workingStarted) / 1000)}`);
|
|
183
183
|
}, 500);
|
|
@@ -458,7 +458,7 @@ export class InferenceEngine {
|
|
|
458
458
|
const retryPrompts = [];
|
|
459
459
|
const stats = { thinking: 0, tokens: 0, reasoning: 0, input: 0 };
|
|
460
460
|
const queryStart = Date.now();
|
|
461
|
-
const footerText = () =>
|
|
461
|
+
const footerText = () => `\x1b[2m(Thought for ${tickDuration(stats["thinking"])} · Worked for ${tickDuration((Date.now() - queryStart) / 1000)} · Used \x1b[22;37m${stats["tokens"].toLocaleString()}\x1b[2m tokens)\x1b[0m`;
|
|
462
462
|
const summary = () => aiMarkdown(footerText());
|
|
463
463
|
const attachFooter = (items) => {
|
|
464
464
|
const footer = footerText();
|
package/dist/ui.js
CHANGED
|
@@ -326,8 +326,9 @@ export function formatDuration(seconds) {
|
|
|
326
326
|
}
|
|
327
327
|
export function tickDuration(seconds) {
|
|
328
328
|
// Durations are status values, not code. Keep the surrounding text muted
|
|
329
|
-
// while making values such as `0s` readable in white.
|
|
330
|
-
|
|
329
|
+
// while making values such as `0s` readable in normal white intensity.
|
|
330
|
+
// Restore dim afterward so the following labels keep their muted styling.
|
|
331
|
+
return `\x1b[22;37m${formatDuration(seconds)}\x1b[2m`;
|
|
331
332
|
}
|
|
332
333
|
// ---------------------------------------------------------------------------
|
|
333
334
|
// Text helpers
|