replicas-engine 0.1.895 → 0.1.897
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-36KWTRX7.js → asp-host-ZTKJ55VS.js} +4 -4
- package/dist/src/{chunk-6AKLNJZN.js → chunk-2OAEXQII.js} +2 -2
- package/dist/src/{chunk-JMXHZWDO.js → chunk-AAGTCVUR.js} +1 -1
- package/dist/src/{chunk-WZ7XL4S2.js → chunk-BB62GNVH.js} +5 -5
- package/dist/src/{chunk-LTNFTQDK.js → chunk-IVBKWUL3.js} +2 -2
- package/dist/src/{chunk-JFAPHJIB.js → chunk-LNW62HPO.js} +7 -4
- package/dist/src/{chunk-TQ7ZBKY7.js → chunk-O7VJSBSX.js} +2 -2
- package/dist/src/{chunk-BMVR42SJ.js → chunk-P34LDLQX.js} +1 -1
- package/dist/src/command-protection-hook.js +3 -3
- package/dist/src/deepseek-command-protection-plugin.js +5 -5
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +6 -6
- package/dist/src/post-tool-pr-hook.js +3 -3
- 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-BB62GNVH.js";
|
|
9
|
+
import "./chunk-P34LDLQX.js";
|
|
10
|
+
import "./chunk-IVBKWUL3.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-LNW62HPO.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
export {
|
|
15
15
|
getCodexAspHost,
|
|
@@ -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-P34LDLQX.js";
|
|
7
7
|
import {
|
|
8
8
|
extractCommandProtectionCommandText,
|
|
9
9
|
findGitCommitSignals,
|
|
10
10
|
findPrMergeSignals
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LNW62HPO.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-P34LDLQX.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
SUBPROCESS_MAX_BUFFER,
|
|
12
12
|
buildCodexAgentEnv,
|
|
13
13
|
execFileAsync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IVBKWUL3.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-LNW62HPO.js";
|
|
29
29
|
|
|
30
30
|
// src/managers/codex-token-manager.ts
|
|
31
31
|
import { promises as fs } from "fs";
|
|
@@ -255,7 +255,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
255
255
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
256
256
|
await this.applyCredentialsResponse(data);
|
|
257
257
|
if (data.scope) setAgentCredentialSnapshot("codex", { method: data.type, scope: data.scope, revision: data.revision });
|
|
258
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
258
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-ZTKJ55VS.js");
|
|
259
259
|
await restartCodexAspHostIfRunning2();
|
|
260
260
|
});
|
|
261
261
|
await this.start(true);
|
|
@@ -275,7 +275,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
275
275
|
await this.applyCredentialUpdate(generation, async () => {
|
|
276
276
|
await this.applyCredentialsResponse(data);
|
|
277
277
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
278
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
278
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-ZTKJ55VS.js");
|
|
279
279
|
await restartCodexAspHostIfRunning2();
|
|
280
280
|
}
|
|
281
281
|
if (data.scope) {
|
|
@@ -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-LNW62HPO.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.897";
|
|
249
249
|
var INITIALIZE_METHOD = "initialize";
|
|
250
250
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
251
251
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -385,20 +385,23 @@ var AGENT_MODELS = {
|
|
|
385
385
|
relay: [CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
|
|
386
386
|
};
|
|
387
387
|
var DEFAULT_STATIC_AGENT_MODELS = {
|
|
388
|
-
claude: AGENT_MODELS.claude,
|
|
389
|
-
codex: AGENT_MODELS.codex
|
|
388
|
+
claude: AGENT_MODELS.claude.filter((model) => model !== CLAUDE_FABLE_5_MODEL && model !== CLAUDE_OPUS_4_8_MODEL),
|
|
389
|
+
codex: AGENT_MODELS.codex.filter((model) => !["gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.2"].includes(model))
|
|
390
390
|
};
|
|
391
391
|
var DEFAULT_CURSOR_MODELS = AGENT_MODELS.cursor;
|
|
392
392
|
function getAgentModelOptions(provider, overrides) {
|
|
393
393
|
const override = overrides?.[provider];
|
|
394
|
-
|
|
394
|
+
if (override?.length) return override;
|
|
395
|
+
return provider === "claude" || provider === "codex" ? DEFAULT_STATIC_AGENT_MODELS[provider] : AGENT_MODELS[provider];
|
|
395
396
|
}
|
|
396
397
|
var CLAUDE_MODEL_MIN_SANDBOX_IMAGE = {
|
|
397
398
|
[CLAUDE_FABLE_5_1_MODEL]: "replicas-sandbox-2026-09-01-v6",
|
|
398
399
|
[CLAUDE_OPUS_5_5_MODEL]: "replicas-sandbox-2026-09-22-v4"
|
|
399
400
|
};
|
|
400
401
|
var CODEX_MODEL_MIN_SANDBOX_IMAGE = {
|
|
401
|
-
[GPT_6_ASTRA_MODEL]: "replicas-sandbox-2026-09-04-v7"
|
|
402
|
+
[GPT_6_ASTRA_MODEL]: "replicas-sandbox-2026-09-04-v7",
|
|
403
|
+
[GPT_6_SOL_MODEL]: "replicas-sandbox-2026-09-22-v5",
|
|
404
|
+
[GPT_6_LUNA_MODEL]: "replicas-sandbox-2026-09-22-v5"
|
|
402
405
|
};
|
|
403
406
|
var MODEL_LABELS = {
|
|
404
407
|
fable: "Fable 5.1",
|
|
@@ -3,10 +3,10 @@ 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-AAGTCVUR.js";
|
|
7
7
|
import {
|
|
8
8
|
shouldRefreshPullRequests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LNW62HPO.js";
|
|
10
10
|
|
|
11
11
|
// src/services/post-tool-pr-notifier.ts
|
|
12
12
|
async function notifyPostToolUse(toolName, toolInput, result) {
|
|
@@ -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-2OAEXQII.js";
|
|
7
|
+
import "./chunk-P34LDLQX.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-LNW62HPO.js";
|
|
12
12
|
import "./chunk-VEQXQN22.js";
|
|
13
13
|
|
|
14
14
|
// src/command-protection-hook.ts
|
|
@@ -3,14 +3,14 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2OAEXQII.js";
|
|
7
7
|
import {
|
|
8
8
|
notifyPostToolUse
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-O7VJSBSX.js";
|
|
10
|
+
import "./chunk-AAGTCVUR.js";
|
|
11
|
+
import "./chunk-P34LDLQX.js";
|
|
12
12
|
import "./chunk-UZSNFLDQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-LNW62HPO.js";
|
|
14
14
|
import "./chunk-VEQXQN22.js";
|
|
15
15
|
|
|
16
16
|
// src/deepseek-command-protection-plugin.ts
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AppServerProcess,
|
|
10
10
|
buildCodexAgentEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IVBKWUL3.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
getMemoryOutputSafetyViolation,
|
|
15
15
|
headlessAgentRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LNW62HPO.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
|
|
19
19
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
evaluateCommandProtection,
|
|
92
92
|
extractToolCommand,
|
|
93
93
|
reportCommandProtectionBlock
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-2OAEXQII.js";
|
|
95
95
|
import {
|
|
96
96
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
97
97
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
} from "./chunk-FLDA7BX3.js";
|
|
117
117
|
import {
|
|
118
118
|
publishedPullRequestUrls
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-AAGTCVUR.js";
|
|
120
120
|
import {
|
|
121
121
|
RELAY_MCP_TOOLS,
|
|
122
122
|
RELAY_MCP_TOOL_NAMES,
|
|
@@ -137,21 +137,21 @@ import {
|
|
|
137
137
|
refreshDelayMs,
|
|
138
138
|
restartCodexAspHost,
|
|
139
139
|
routineRefreshExclusions
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-BB62GNVH.js";
|
|
141
141
|
import {
|
|
142
142
|
ENGINE_ENV,
|
|
143
143
|
IS_WARMING_MODE,
|
|
144
144
|
monolithRequest,
|
|
145
145
|
monolithService,
|
|
146
146
|
setAgentCredentialSnapshot
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-P34LDLQX.js";
|
|
148
148
|
import {
|
|
149
149
|
AspClient,
|
|
150
150
|
SUBPROCESS_MAX_BUFFER,
|
|
151
151
|
execAsync,
|
|
152
152
|
execFileAsync,
|
|
153
153
|
getCodexModelProvider
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-IVBKWUL3.js";
|
|
155
155
|
import {
|
|
156
156
|
isRecord as isRecord2
|
|
157
157
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -378,7 +378,7 @@ import {
|
|
|
378
378
|
workspaceCredentialProviderSchema,
|
|
379
379
|
workspaceTokenRequestSchema,
|
|
380
380
|
workspaceTokenResponseSchema
|
|
381
|
-
} from "./chunk-
|
|
381
|
+
} from "./chunk-LNW62HPO.js";
|
|
382
382
|
import {
|
|
383
383
|
__commonJS,
|
|
384
384
|
__export,
|
|
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
notifyPostToolUse
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-O7VJSBSX.js";
|
|
7
|
+
import "./chunk-AAGTCVUR.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-LNW62HPO.js";
|
|
12
12
|
import "./chunk-VEQXQN22.js";
|
|
13
13
|
|
|
14
14
|
// src/post-tool-pr-hook.ts
|
package/dist/src/relay-mcp.js
CHANGED