replicas-engine 0.1.930 → 0.1.931
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-BHQM7GQG.js → asp-host-26FIANOX.js} +4 -4
- package/dist/src/{chunk-DKDHDLCR.js → chunk-ASZVT3MJ.js} +2 -2
- package/dist/src/{chunk-SQ24WMMC.js → chunk-HSG6K3WN.js} +2 -2
- package/dist/src/{chunk-TD44XVMK.js → chunk-KTWH5E6W.js} +1 -1
- package/dist/src/{chunk-GHJBMCNR.js → chunk-LPVZD5CN.js} +1 -1
- package/dist/src/{chunk-HA2ZYCG3.js → chunk-OBW7XFNZ.js} +5 -5
- package/dist/src/{chunk-NJPKCNNS.js → chunk-QZYXFGI7.js} +7 -5
- package/dist/src/command-protection-hook.js +3 -3
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +6 -6
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/relay-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
getCodexAspHost,
|
|
6
6
|
restartCodexAspHost,
|
|
7
7
|
restartCodexAspHostIfRunning
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-OBW7XFNZ.js";
|
|
9
|
+
import "./chunk-KTWH5E6W.js";
|
|
10
|
+
import "./chunk-ASZVT3MJ.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QZYXFGI7.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
export {
|
|
15
15
|
getCodexAspHost,
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
HOOK_EXEC_MAX_BUFFER_BYTES,
|
|
6
6
|
isVersionBelow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QZYXFGI7.js";
|
|
8
8
|
|
|
9
9
|
// src/utils/codex-agent-env.ts
|
|
10
10
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -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.931";
|
|
249
249
|
var INITIALIZE_METHOD = "initialize";
|
|
250
250
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
251
251
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
monolithRequest
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KTWH5E6W.js";
|
|
7
7
|
import {
|
|
8
8
|
extractCommandProtectionCommandText,
|
|
9
9
|
findGitCommitSignals,
|
|
10
10
|
findPrMergeSignals
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QZYXFGI7.js";
|
|
12
12
|
|
|
13
13
|
// src/services/command-protection-service.ts
|
|
14
14
|
var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KTWH5E6W.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
SUBPROCESS_MAX_BUFFER,
|
|
12
12
|
buildCodexAgentEnv,
|
|
13
13
|
execFileAsync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ASZVT3MJ.js";
|
|
15
15
|
import {
|
|
16
16
|
isRecord
|
|
17
17
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
listOpenAICompatibleModels,
|
|
26
26
|
readOllamaAuthEnv,
|
|
27
27
|
resolveOpenAICompatibleModelsUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QZYXFGI7.js";
|
|
29
29
|
|
|
30
30
|
// src/managers/codex-token-manager.ts
|
|
31
31
|
import { promises as fs } from "fs";
|
|
@@ -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-26FIANOX.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-26FIANOX.js");
|
|
282
282
|
await restartCodexAspHostIfRunning2();
|
|
283
283
|
}
|
|
284
284
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -6023,13 +6023,14 @@ function filterDisplayMessages(messages, provider) {
|
|
|
6023
6023
|
result = result.slice(userMessages[1].index);
|
|
6024
6024
|
}
|
|
6025
6025
|
}
|
|
6026
|
-
result = result.
|
|
6027
|
-
if (msg.type !== "user") return msg;
|
|
6026
|
+
result = result.flatMap((msg) => {
|
|
6027
|
+
if (msg.type !== "user") return [msg];
|
|
6028
6028
|
const cleaned = removeReplicasInstructions(msg.content).trim();
|
|
6029
6029
|
if (INTERRUPTED_MESSAGE_REGEX.test(cleaned)) {
|
|
6030
|
-
return { id: msg.id, type: "interruption", timestamp: msg.timestamp };
|
|
6030
|
+
return [{ id: msg.id, type: "interruption", timestamp: msg.timestamp }];
|
|
6031
6031
|
}
|
|
6032
|
-
|
|
6032
|
+
if (cleaned.length === 0 && !msg.images?.length) return [];
|
|
6033
|
+
return [cleaned !== msg.content ? { ...msg, content: cleaned } : msg];
|
|
6033
6034
|
});
|
|
6034
6035
|
return result;
|
|
6035
6036
|
}
|
|
@@ -7903,7 +7904,8 @@ var ENVIRONMENT_SETUP_LIMITS = {
|
|
|
7903
7904
|
automationNoteChars: 300,
|
|
7904
7905
|
verificationItems: 8,
|
|
7905
7906
|
verificationDetailChars: 300,
|
|
7906
|
-
mediaItems: 8
|
|
7907
|
+
mediaItems: 8,
|
|
7908
|
+
repositories: 20
|
|
7907
7909
|
};
|
|
7908
7910
|
var ENVIRONMENT_SETUP_VARIABLE_WAIT = { defaultMs: 5 * 6e4, maxMs: 15 * 6e4, pollMs: 5e3 };
|
|
7909
7911
|
var VARIABLE_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HSG6K3WN.js";
|
|
7
|
+
import "./chunk-KTWH5E6W.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QZYXFGI7.js";
|
|
12
12
|
import "./chunk-VEQXQN22.js";
|
|
13
13
|
|
|
14
14
|
// src/command-protection-hook.ts
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AppServerProcess,
|
|
10
10
|
buildCodexAgentEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ASZVT3MJ.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
getMemoryOutputSafetyViolation,
|
|
15
15
|
headlessAgentRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QZYXFGI7.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
|
|
19
19
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
evaluateCommandProtection,
|
|
28
28
|
extractToolCommand,
|
|
29
29
|
reportCommandProtectionBlock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HSG6K3WN.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from "./chunk-FLDA7BX3.js";
|
|
53
53
|
import {
|
|
54
54
|
publishedPullRequestUrls
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-LPVZD5CN.js";
|
|
56
56
|
import {
|
|
57
57
|
RELAY_MCP_TOOLS,
|
|
58
58
|
RELAY_MCP_TOOL_NAMES,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
refreshDelayMs,
|
|
75
75
|
restartCodexAspHost,
|
|
76
76
|
routineRefreshExclusions
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-OBW7XFNZ.js";
|
|
78
78
|
import {
|
|
79
79
|
ENGINE_ENV,
|
|
80
80
|
monolithRequest,
|
|
@@ -82,14 +82,14 @@ import {
|
|
|
82
82
|
readRuntimeEnvFile,
|
|
83
83
|
reloadEngineEnv,
|
|
84
84
|
setAgentCredentialSnapshot
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-KTWH5E6W.js";
|
|
86
86
|
import {
|
|
87
87
|
AspClient,
|
|
88
88
|
SUBPROCESS_MAX_BUFFER,
|
|
89
89
|
execAsync,
|
|
90
90
|
execFileAsync,
|
|
91
91
|
getCodexModelProvider
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-ASZVT3MJ.js";
|
|
93
93
|
import {
|
|
94
94
|
isRecord as isRecord2
|
|
95
95
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -317,7 +317,7 @@ import {
|
|
|
317
317
|
workspaceCredentialProviderSchema,
|
|
318
318
|
workspaceTokenRequestSchema,
|
|
319
319
|
workspaceTokenResponseSchema
|
|
320
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-QZYXFGI7.js";
|
|
321
321
|
import {
|
|
322
322
|
cloneMcpConfig,
|
|
323
323
|
ensureCompatibilityImports,
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LPVZD5CN.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QZYXFGI7.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/relay-mcp.js
CHANGED