@oxecli/oxe 1.0.40 → 1.0.41
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 +3 -0
- package/dist/engine.js +0 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -419,6 +419,9 @@ export class CLI {
|
|
|
419
419
|
}
|
|
420
420
|
if (err?.message === "interrupt") {
|
|
421
421
|
const wasActive = queryStarted || engine.inQuery;
|
|
422
|
+
if (wasActive && !engine.queryHasOutput) {
|
|
423
|
+
process.stdout.write(aiMarkdown("What else can I help with?") + "\n\n");
|
|
424
|
+
}
|
|
422
425
|
engine.inQuery = false;
|
|
423
426
|
// Drop the pending user message/story entry that was never run.
|
|
424
427
|
if (this.inputItems.length && this.inputItems[this.inputItems.length - 1]["role"] === "user") {
|
package/dist/engine.js
CHANGED
|
@@ -614,11 +614,6 @@ export class InferenceEngine {
|
|
|
614
614
|
if (this.interrupted) {
|
|
615
615
|
this.workActive = false;
|
|
616
616
|
this.workRows = 0;
|
|
617
|
-
if (!this.queryHasOutput) {
|
|
618
|
-
const fallback = "What else can I help with?";
|
|
619
|
-
process.stdout.write(aiMarkdown(fallback) + "\n\n");
|
|
620
|
-
story.push({ type: "assistant", text: fallback });
|
|
621
|
-
}
|
|
622
617
|
}
|
|
623
618
|
if (this.interrupted)
|
|
624
619
|
throw new Error("interrupt");
|