replicas-engine 0.1.931 → 0.1.932
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-PTWY4MDP.js";
|
|
9
9
|
import "./chunk-KTWH5E6W.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-SRGTHBJU.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
12
|
import "./chunk-QZYXFGI7.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SUBPROCESS_MAX_BUFFER,
|
|
12
12
|
buildCodexAgentEnv,
|
|
13
13
|
execFileAsync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SRGTHBJU.js";
|
|
15
15
|
import {
|
|
16
16
|
isRecord
|
|
17
17
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -258,7 +258,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
258
258
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
259
259
|
await this.applyCredentialsResponse(data);
|
|
260
260
|
setAgentCredentialSnapshot("codex", data);
|
|
261
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
261
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XZDD3MM3.js");
|
|
262
262
|
await restartCodexAspHostIfRunning2();
|
|
263
263
|
});
|
|
264
264
|
await this.start(true);
|
|
@@ -278,7 +278,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
278
278
|
await this.applyCredentialUpdate(generation, async () => {
|
|
279
279
|
await this.applyCredentialsResponse(data);
|
|
280
280
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
281
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
281
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XZDD3MM3.js");
|
|
282
282
|
await restartCodexAspHostIfRunning2();
|
|
283
283
|
}
|
|
284
284
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -245,7 +245,7 @@ function getCodexModelProvider(method) {
|
|
|
245
245
|
if (method === "foundry") return "azure";
|
|
246
246
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
247
247
|
}
|
|
248
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
248
|
+
var ENGINE_PACKAGE_VERSION = "0.1.932";
|
|
249
249
|
var INITIALIZE_METHOD = "initialize";
|
|
250
250
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
251
251
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
package/dist/src/index.js
CHANGED
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
refreshDelayMs,
|
|
75
75
|
restartCodexAspHost,
|
|
76
76
|
routineRefreshExclusions
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-PTWY4MDP.js";
|
|
78
78
|
import {
|
|
79
79
|
ENGINE_ENV,
|
|
80
80
|
monolithRequest,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
execAsync,
|
|
90
90
|
execFileAsync,
|
|
91
91
|
getCodexModelProvider
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-SRGTHBJU.js";
|
|
93
93
|
import {
|
|
94
94
|
isRecord as isRecord2
|
|
95
95
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -61790,7 +61790,7 @@ var ChatService = class {
|
|
|
61790
61790
|
}
|
|
61791
61791
|
const stillProcessing = processing || forked;
|
|
61792
61792
|
this.publishTurnCompleted(chat, completedAt, stillProcessing);
|
|
61793
|
-
await this.publishAgentTurnCompleteWebhook(chat, completedAt, stillProcessing);
|
|
61793
|
+
await this.publishAgentTurnCompleteWebhook(chat, completedAt, stillProcessing, forked ? null : exhaustion);
|
|
61794
61794
|
this.notifyWorkspaceAgentIdle();
|
|
61795
61795
|
}
|
|
61796
61796
|
publishTurnCompleted(chat, completedAt, processing) {
|
|
@@ -61903,7 +61903,7 @@ var ChatService = class {
|
|
|
61903
61903
|
} catch {
|
|
61904
61904
|
}
|
|
61905
61905
|
}
|
|
61906
|
-
async publishAgentTurnCompleteWebhook(chat, completedAt, processing = false) {
|
|
61906
|
+
async publishAgentTurnCompleteWebhook(chat, completedAt, processing = false, quotaExhaustion = null) {
|
|
61907
61907
|
const linearSessionId = ENGINE_ENV.REPLICAS_LINEAR_SESSION_ID;
|
|
61908
61908
|
const errors = chat.persisted.parentChatId === null ? chat.lastTurnErrors : null;
|
|
61909
61909
|
chat.lastTurnErrors = null;
|
|
@@ -61918,7 +61918,8 @@ var ChatService = class {
|
|
|
61918
61918
|
processing,
|
|
61919
61919
|
repoStatuses,
|
|
61920
61920
|
...errors?.length ? { errors } : {},
|
|
61921
|
-
...errors?.length && errorNotificationTargets.length > 0 ? { errorNotificationTargets } : {}
|
|
61921
|
+
...(errors?.length || quotaExhaustion) && errorNotificationTargets.length > 0 ? { errorNotificationTargets } : {},
|
|
61922
|
+
...quotaExhaustion ? { quotaExhaustion } : {}
|
|
61922
61923
|
};
|
|
61923
61924
|
await monolithService.sendEvent({ type: "agent_turn_complete", payload });
|
|
61924
61925
|
} catch (error) {
|