@usabledev/usable-chat 1.215.7 → 1.215.9
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/cli.js +46 -4
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -91907,6 +91907,29 @@ var init_interactive_capabilities_prompt = __esm({
|
|
|
91907
91907
|
}
|
|
91908
91908
|
});
|
|
91909
91909
|
|
|
91910
|
+
// src/core/orchestrator/persist-injected-pause.ts
|
|
91911
|
+
async function persistInjectedPause(writer, state4, emitter, multiplexer, resolveStreamComplete) {
|
|
91912
|
+
try {
|
|
91913
|
+
await writer(state4);
|
|
91914
|
+
return true;
|
|
91915
|
+
} catch {
|
|
91916
|
+
multiplexer.error(
|
|
91917
|
+
emitter.emit("error", {
|
|
91918
|
+
code: "PAUSE_PERSISTENCE_FAILED",
|
|
91919
|
+
message: "Failed to pause for user input",
|
|
91920
|
+
recoverable: false
|
|
91921
|
+
})
|
|
91922
|
+
);
|
|
91923
|
+
resolveStreamComplete();
|
|
91924
|
+
return false;
|
|
91925
|
+
}
|
|
91926
|
+
}
|
|
91927
|
+
var init_persist_injected_pause = __esm({
|
|
91928
|
+
"src/core/orchestrator/persist-injected-pause.ts"() {
|
|
91929
|
+
"use strict";
|
|
91930
|
+
}
|
|
91931
|
+
});
|
|
91932
|
+
|
|
91910
91933
|
// src/components/chat/language-prompt.ts
|
|
91911
91934
|
var LANGUAGE_PROMPT;
|
|
91912
91935
|
var init_language_prompt = __esm({
|
|
@@ -365043,7 +365066,14 @@ async function drainPendingPause({
|
|
|
365043
365066
|
expiresAt: expiresAt.toISOString()
|
|
365044
365067
|
};
|
|
365045
365068
|
if (context3.persistPauseState) {
|
|
365046
|
-
await
|
|
365069
|
+
if (!await persistInjectedPause(
|
|
365070
|
+
context3.persistPauseState,
|
|
365071
|
+
pauseState,
|
|
365072
|
+
emitter,
|
|
365073
|
+
multiplexer,
|
|
365074
|
+
resolveStreamComplete
|
|
365075
|
+
))
|
|
365076
|
+
return;
|
|
365047
365077
|
} else {
|
|
365048
365078
|
try {
|
|
365049
365079
|
if (durable && conversationId && pausedToolUseId) {
|
|
@@ -365082,6 +365112,7 @@ async function drainPendingPause({
|
|
|
365082
365112
|
});
|
|
365083
365113
|
const errorEvent = emitter.emit("error", {
|
|
365084
365114
|
message: "Failed to pause for user input",
|
|
365115
|
+
code: "PAUSE_PERSISTENCE_FAILED",
|
|
365085
365116
|
recoverable: false
|
|
365086
365117
|
});
|
|
365087
365118
|
multiplexer.error(errorEvent);
|
|
@@ -365099,6 +365130,7 @@ async function drainPendingPause({
|
|
|
365099
365130
|
});
|
|
365100
365131
|
const errorEvent = emitter.emit("error", {
|
|
365101
365132
|
message: "Failed to pause for user input",
|
|
365133
|
+
code: "PAUSE_PERSISTENCE_FAILED",
|
|
365102
365134
|
recoverable: false
|
|
365103
365135
|
});
|
|
365104
365136
|
multiplexer.error(errorEvent);
|
|
@@ -365184,8 +365216,16 @@ async function drainBrowserHandoffPause({
|
|
|
365184
365216
|
pausedAt: now2.toISOString(),
|
|
365185
365217
|
expiresAt: new Date(now2.getTime() + 60 * 60 * 1e3).toISOString()
|
|
365186
365218
|
};
|
|
365187
|
-
if (context3.persistPauseState)
|
|
365188
|
-
|
|
365219
|
+
if (context3.persistPauseState) {
|
|
365220
|
+
if (!await persistInjectedPause(
|
|
365221
|
+
context3.persistPauseState,
|
|
365222
|
+
state4,
|
|
365223
|
+
emitter,
|
|
365224
|
+
multiplexer,
|
|
365225
|
+
resolveStreamComplete
|
|
365226
|
+
))
|
|
365227
|
+
return;
|
|
365228
|
+
} else await storePauseState2(state4);
|
|
365189
365229
|
} catch (error41) {
|
|
365190
365230
|
if (context3.persistPauseState || data2.kind === "secret-request") throw error41;
|
|
365191
365231
|
orchestrationLogger.warn("Browser handoff pause cache unavailable; hand back still works", {
|
|
@@ -369145,6 +369185,7 @@ Re-read them (working_memory on web, bash on the CLI \u2014 grep/sed projection,
|
|
|
369145
369185
|
});
|
|
369146
369186
|
const errorEvent = emitter.emit("error", {
|
|
369147
369187
|
message: "This conversation is too long for the model even after automatic compaction. Please start a new chat or remove large attached items, then try again.",
|
|
369188
|
+
code: "CONTEXT_TOO_LARGE",
|
|
369148
369189
|
recoverable: false
|
|
369149
369190
|
});
|
|
369150
369191
|
multiplexer.error(errorEvent);
|
|
@@ -369951,6 +369992,7 @@ var init_orchestrator = __esm({
|
|
|
369951
369992
|
"src/core/orchestrator/index.ts"() {
|
|
369952
369993
|
"use strict";
|
|
369953
369994
|
init_interactive_capabilities_prompt();
|
|
369995
|
+
init_persist_injected_pause();
|
|
369954
369996
|
init_language_prompt();
|
|
369955
369997
|
init_visualization_prompt();
|
|
369956
369998
|
init_data_staging_prompt();
|
|
@@ -393276,7 +393318,7 @@ init_tui_select();
|
|
|
393276
393318
|
init_model_registry();
|
|
393277
393319
|
|
|
393278
393320
|
// package.json
|
|
393279
|
-
var version2 = "1.215.
|
|
393321
|
+
var version2 = "1.215.9";
|
|
393280
393322
|
|
|
393281
393323
|
// src/adapters/cli/model-catalog.ts
|
|
393282
393324
|
init_codex_auth();
|