@oxecli/oxe 1.0.53 → 1.0.54
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/cli.js +1 -1
- package/dist/engine.js +3 -4
- package/dist/ui.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -373,7 +373,7 @@ export class CLI {
|
|
|
373
373
|
this.renderHeader(engine.modelName);
|
|
374
374
|
process.stdout.write("\n");
|
|
375
375
|
process.stdout.write(`\x1b[2mResumed:\x1b[0m \x1b[1m${truncateLabel(rec["label"])}\x1b[0m\n`);
|
|
376
|
-
process.stdout.write(`\x1b[2m(${this.inputItems.length} items · ${estimateTokens(this.inputItems).toLocaleString()} tokens
|
|
376
|
+
process.stdout.write(`\x1b[2m(${this.inputItems.length} items · ${estimateTokens(this.inputItems).toLocaleString()} tokens)\x1b[0m\n\n`);
|
|
377
377
|
renderPanel("Conversation history restored", "Restored");
|
|
378
378
|
process.stdout.write("\n");
|
|
379
379
|
if (this.story.length)
|
package/dist/engine.js
CHANGED
|
@@ -169,9 +169,9 @@ export class InferenceEngine {
|
|
|
169
169
|
let thinkingStart = null;
|
|
170
170
|
const workStatus = new Spinner();
|
|
171
171
|
const workingStarted = Date.now();
|
|
172
|
-
workStatus.start(`Working
|
|
172
|
+
workStatus.start(`Working ${tickDuration(0)}`);
|
|
173
173
|
const workTimer = setInterval(() => {
|
|
174
|
-
workStatus.update(`Working
|
|
174
|
+
workStatus.update(`Working ${tickDuration((Date.now() - workingStarted) / 1000)}`);
|
|
175
175
|
}, 500);
|
|
176
176
|
let workingReported = false;
|
|
177
177
|
let response = null;
|
|
@@ -254,7 +254,7 @@ export class InferenceEngine {
|
|
|
254
254
|
if (thinkingStart === null) {
|
|
255
255
|
thinkingStart = Date.now();
|
|
256
256
|
status = new Spinner();
|
|
257
|
-
status.start(
|
|
257
|
+
status.start(`Thinking ${tickDuration(0)}`);
|
|
258
258
|
}
|
|
259
259
|
else {
|
|
260
260
|
status?.update(`Thinking ${tickDuration((Date.now() - thinkingStart) / 1000)}`);
|
|
@@ -458,7 +458,6 @@ export class InferenceEngine {
|
|
|
458
458
|
if (stats["tokens"] > 0) {
|
|
459
459
|
parts.push(`Used \x1b[22;37m${stats["tokens"].toLocaleString()}\x1b[2m tokens`);
|
|
460
460
|
}
|
|
461
|
-
parts.push(`Effort: \x1b[1;36m${this.reasoningEffort}\x1b[0m\x1b[2m`);
|
|
462
461
|
return `\x1b[2m(${parts.join(" · ")})\x1b[0m`;
|
|
463
462
|
};
|
|
464
463
|
const summary = () => mutedMarkdown(footerText());
|
package/dist/ui.js
CHANGED
|
@@ -587,19 +587,19 @@ export function formatToolAction(name, argumentsJson, status = "ok") {
|
|
|
587
587
|
const start = args["start_line"];
|
|
588
588
|
const end = args["end_line"];
|
|
589
589
|
const span = start != null || end != null
|
|
590
|
-
? `
|
|
590
|
+
? ` lines ${start ?? 1}-${end ?? "end"}`
|
|
591
591
|
: "";
|
|
592
592
|
return phrase("Read", "Reading", "Failed to read", `${p}${span}`);
|
|
593
593
|
}
|
|
594
594
|
case "write_file":
|
|
595
|
-
return phrase("Wrote", "Writing", "Failed to write", `${p}
|
|
595
|
+
return phrase("Wrote", "Writing", "Failed to write", `${p} · ${String(args["content"] ?? "").length.toLocaleString()} chars`);
|
|
596
596
|
case "edit_file": {
|
|
597
|
-
const suffix = args["replace_all"] ? "
|
|
597
|
+
const suffix = args["replace_all"] ? " · replace all" : "";
|
|
598
598
|
return phrase("Edited", "Editing", "Failed to edit", `${p}${suffix}`);
|
|
599
599
|
}
|
|
600
600
|
case "bash": {
|
|
601
601
|
const cwd = args["cwd"];
|
|
602
|
-
const location = cwd ? `
|
|
602
|
+
const location = cwd ? ` in ${cwd}` : "";
|
|
603
603
|
const command = truncateEllipsis(String(args["command"] ?? ""), 400, "command");
|
|
604
604
|
if (status === "started")
|
|
605
605
|
return `Running command${location}: ${command}`;
|