@oxecli/oxe 1.0.81 → 1.0.82
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 -0
- package/dist/ui.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -445,7 +445,7 @@ export class CLI {
|
|
|
445
445
|
}
|
|
446
446
|
if (err?.message === "interrupt") {
|
|
447
447
|
const wasActive = queryStarted || engine.inQuery;
|
|
448
|
-
if (wasActive && !engine.queryHasOutput) {
|
|
448
|
+
if (wasActive && !engine.queryHasOutput && !engine.queryCalledTool) {
|
|
449
449
|
process.stdout.write(aiMarkdown("What else can I help you with?") + "\n");
|
|
450
450
|
}
|
|
451
451
|
engine.inQuery = false;
|
package/dist/engine.js
CHANGED
|
@@ -49,6 +49,7 @@ export class InferenceEngine {
|
|
|
49
49
|
activeAbort = null;
|
|
50
50
|
interrupted = false;
|
|
51
51
|
queryHasOutput = false;
|
|
52
|
+
queryCalledTool = false;
|
|
52
53
|
temperature;
|
|
53
54
|
storedResponseIds = [];
|
|
54
55
|
constructor(config) {
|
|
@@ -425,6 +426,7 @@ export class InferenceEngine {
|
|
|
425
426
|
this.workRows = 0;
|
|
426
427
|
this.interrupted = false;
|
|
427
428
|
this.queryHasOutput = false;
|
|
429
|
+
this.queryCalledTool = false;
|
|
428
430
|
this.activeAbort = new AbortController();
|
|
429
431
|
hideCursor();
|
|
430
432
|
inputItems.push({
|
|
@@ -576,6 +578,7 @@ export class InferenceEngine {
|
|
|
576
578
|
}
|
|
577
579
|
for (const c of calls) {
|
|
578
580
|
this.workActive = false;
|
|
581
|
+
this.queryCalledTool = true;
|
|
579
582
|
const started = toolCallLabel(c.name, c.arguments);
|
|
580
583
|
// Print the tool label the instant the command starts, then show a
|
|
581
584
|
// "⎿ Working..." dots line that swaps to the real result in place.
|
package/dist/ui.js
CHANGED
|
@@ -571,7 +571,7 @@ export class Spinner {
|
|
|
571
571
|
}, 300);
|
|
572
572
|
}
|
|
573
573
|
writeDots(initial) {
|
|
574
|
-
const dots =
|
|
574
|
+
const dots = DOT_FRAMES[this.dotsFrame];
|
|
575
575
|
if (initial) {
|
|
576
576
|
process.stdout.write("\r" + this.dotsText + dots + "\r");
|
|
577
577
|
}
|