replicas-engine 0.1.1203 → 0.1.1205
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/src/{asp-host-RW7SM6QY.js → asp-host-OFW4G2ZY.js} +2 -2
- package/dist/src/{chunk-U7C3JHZX.js → chunk-4CC2RD7Z.js} +1 -1
- package/dist/src/{chunk-D4O2DQDM.js → chunk-F6P4HPLK.js} +3 -3
- package/dist/src/{chunk-NNEDIG37.js → chunk-QAFVTJ54.js} +1 -1
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +14 -6
- package/package.json +1 -1
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
listRunningCodexModels,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F6P4HPLK.js";
|
|
12
12
|
import "./chunk-UZTCADJX.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4CC2RD7Z.js";
|
|
14
14
|
import "./chunk-GJWKAJ3W.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
16
|
import "./chunk-AOE7OYWW.js";
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1205";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4CC2RD7Z.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
@@ -291,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
291
291
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
292
292
|
await this.applyCredentialsResponse(data);
|
|
293
293
|
setAgentCredentialSnapshot("codex", data);
|
|
294
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
294
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-OFW4G2ZY.js");
|
|
295
295
|
await restartCodexAspHostIfRunning2();
|
|
296
296
|
});
|
|
297
297
|
await this.start(true);
|
|
@@ -313,7 +313,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
313
313
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
314
314
|
await this.applyCredentialsResponse(data);
|
|
315
315
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
316
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
316
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-OFW4G2ZY.js");
|
|
317
317
|
await restartCodexAspHostIfRunning2();
|
|
318
318
|
}
|
|
319
319
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
recoverCompletedTurn,
|
|
14
14
|
spawnMuseMsp,
|
|
15
15
|
startMuseSession
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QAFVTJ54.js";
|
|
17
17
|
import {
|
|
18
18
|
AppServerProcess,
|
|
19
19
|
buildCodexAgentEnv
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4CC2RD7Z.js";
|
|
21
21
|
import "./chunk-GJWKAJ3W.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT,
|
package/dist/src/index.js
CHANGED
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
spawnMuseMsp,
|
|
65
65
|
startMuseSession,
|
|
66
66
|
uuidV7
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-QAFVTJ54.js";
|
|
68
68
|
import {
|
|
69
69
|
publishedPullRequestUrls
|
|
70
70
|
} from "./chunk-GV2AISTI.js";
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
timestampFromSeconds,
|
|
140
140
|
upsertCredentialFileLines,
|
|
141
141
|
writeSecureCredentialFile
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-F6P4HPLK.js";
|
|
143
143
|
import {
|
|
144
144
|
ENGINE_ENV,
|
|
145
145
|
monolithRequest,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
} from "./chunk-UZTCADJX.js";
|
|
152
152
|
import {
|
|
153
153
|
getCodexModelProvider
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-4CC2RD7Z.js";
|
|
155
155
|
import {
|
|
156
156
|
SUBPROCESS_MAX_BUFFER,
|
|
157
157
|
execAsync,
|
|
@@ -12679,6 +12679,12 @@ var TRANSIENT_RETRY_DELAYS_MS = [1e3, 2500];
|
|
|
12679
12679
|
var CLAUDE_TRANSIENT_HTTP_STATUSES = [408, 500, 502, 503, 504, 529];
|
|
12680
12680
|
var CLAUDE_MIDTURN_CONTINUE_PROMPT = "Your previous turn was interrupted by a transient network error before it could finish. Continue from exactly where you left off. Do not repeat any tool calls, commits, messages, or other actions you have already completed \u2014 first check what is already done, then do only the remaining work.";
|
|
12681
12681
|
var CLAUDE_RETRY_PROMPT = "Your previous attempt to respond to the message above failed before producing a response. Respond to it now.";
|
|
12682
|
+
function appendUserContent(earlier, later) {
|
|
12683
|
+
const last = earlier.at(-1);
|
|
12684
|
+
return last?.type === "text" ? [...earlier.slice(0, -1), { ...last, text: `${last.text}
|
|
12685
|
+
|
|
12686
|
+
` }, ...later] : [...earlier, ...later];
|
|
12687
|
+
}
|
|
12682
12688
|
var TOOL_TARGET = /^\s*\{\s*"(\w+)"\s*:\s*(?:"((?:[^"\\]|\\.)*)(")?)?/;
|
|
12683
12689
|
var JSON_FIRST_LINE = /^(?:[^\\]|\\[^n])*?(?=\\n)/;
|
|
12684
12690
|
function toSlashCommands(command) {
|
|
@@ -12765,7 +12771,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
12765
12771
|
async keepStoppedRequest(request) {
|
|
12766
12772
|
await this.dropRecordedUnreadPrompt();
|
|
12767
12773
|
const { uuid, message } = await this.buildUserMessage(request);
|
|
12768
|
-
this.unreadPrompt = { uuid, content:
|
|
12774
|
+
this.unreadPrompt = { uuid, content: appendUserContent(this.unreadPrompt?.content ?? [], message.content) };
|
|
12769
12775
|
return true;
|
|
12770
12776
|
}
|
|
12771
12777
|
canDeliverSteersNow() {
|
|
@@ -13290,7 +13296,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
13290
13296
|
}
|
|
13291
13297
|
await this.dropRecordedUnreadPrompt();
|
|
13292
13298
|
const prompt = goalCommand ? [{ type: "text", text: `/goal ${goalObjective ?? "clear"}` }] : userMessage.message.content;
|
|
13293
|
-
const content =
|
|
13299
|
+
const content = appendUserContent(this.unreadPrompt?.content ?? [], prompt);
|
|
13294
13300
|
if (this.pendingInterrupt || options.signal?.aborted) {
|
|
13295
13301
|
this.pendingInterrupt = false;
|
|
13296
13302
|
this.unreadPrompt = { uuid: userMessage.uuid, content };
|
|
@@ -14219,7 +14225,9 @@ var CodexAspManager = class extends CodingAgentManager {
|
|
|
14219
14225
|
}
|
|
14220
14226
|
async keepStoppedRequest(request) {
|
|
14221
14227
|
if (isCompactCommand(request.message) || getGoalCommand(request.message, request.goalMode)) return false;
|
|
14222
|
-
this.unreadRequests.push(request
|
|
14228
|
+
this.unreadRequests.push({ ...request, message: `${request.message}
|
|
14229
|
+
|
|
14230
|
+
` });
|
|
14223
14231
|
return true;
|
|
14224
14232
|
}
|
|
14225
14233
|
async interruptActiveTurn() {
|