replicas-engine 0.1.772 → 0.1.775
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.
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getCodexAspHost,
|
|
6
6
|
restartCodexAspHost,
|
|
7
7
|
restartCodexAspHostIfRunning
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GGT6UJ6C.js";
|
|
9
9
|
import "./chunk-Z57YNVDC.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-OKJ44POW.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
12
|
import "./chunk-TFTQG4KD.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
buildCodexAgentEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OKJ44POW.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_AUTH_ENV_KEYS,
|
|
15
15
|
CODEX_AUTH_ENV_KEYS_BY_METHOD,
|
|
@@ -232,7 +232,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
232
232
|
const data = await response.json();
|
|
233
233
|
await this.applyCredentialsResponse(data);
|
|
234
234
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
235
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
235
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-U2OGXHF3.js");
|
|
236
236
|
await restartCodexAspHostIfRunning2();
|
|
237
237
|
}
|
|
238
238
|
if (data.scope) {
|
|
@@ -241,7 +241,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
241
241
|
var MIN_CODEX_CLI_VERSION = "0.153.3";
|
|
242
242
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
243
243
|
var codexCliVersionEnsured = null;
|
|
244
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
244
|
+
var ENGINE_PACKAGE_VERSION = "0.1.775";
|
|
245
245
|
var INITIALIZE_METHOD = "initialize";
|
|
246
246
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
247
247
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
package/dist/src/index.js
CHANGED
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
recordCredentialFallback,
|
|
125
125
|
recordExhaustedCredential,
|
|
126
126
|
restartCodexAspHost
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-GGT6UJ6C.js";
|
|
128
128
|
import {
|
|
129
129
|
ENGINE_ENV,
|
|
130
130
|
IS_WARMING_MODE,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
SUBPROCESS_MAX_BUFFER,
|
|
138
138
|
execAsync,
|
|
139
139
|
execFileAsync
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-OKJ44POW.js";
|
|
141
141
|
import {
|
|
142
142
|
isRecord as isRecord2
|
|
143
143
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -11747,13 +11747,19 @@ var CodingAgentManager = class {
|
|
|
11747
11747
|
await history.appendDurably(event);
|
|
11748
11748
|
}
|
|
11749
11749
|
async interrupt() {
|
|
11750
|
+
const queuedMessages = this.messageQueue.getQueue();
|
|
11750
11751
|
const queue = this.messageQueue.drainQueue({
|
|
11751
11752
|
maxItems: MAX_INTERRUPT_QUEUE_ITEMS,
|
|
11752
11753
|
maxChars: MAX_INTERRUPT_QUEUE_CHARS
|
|
11753
11754
|
});
|
|
11754
11755
|
const isProcessing = this.isProcessing();
|
|
11755
11756
|
if (isProcessing) {
|
|
11756
|
-
|
|
11757
|
+
try {
|
|
11758
|
+
await this.interruptActiveTurn();
|
|
11759
|
+
} catch (error) {
|
|
11760
|
+
this.restoreQueuedMessages(queuedMessages.slice(0, queue.length).map((message) => ({ message, index: 0 })));
|
|
11761
|
+
throw error;
|
|
11762
|
+
}
|
|
11757
11763
|
const event = {
|
|
11758
11764
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
11759
11765
|
type: CHAT_INTERRUPTED_EVENT_TYPE,
|