replicas-engine 0.1.850 → 0.1.851
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-DP3MWORN.js → asp-host-JLTBSIYU.js} +4 -4
- package/dist/src/{chunk-Q42GPHHD.js → chunk-FEV3BCGC.js} +4 -0
- package/dist/src/{chunk-RLNQ34YJ.js → chunk-IVALOOVU.js} +2 -2
- package/dist/src/{chunk-EDKHMP3M.js → chunk-MKFFAP4D.js} +2 -2
- package/dist/src/{chunk-CGN7NMUB.js → chunk-MTSI4DXY.js} +1 -1
- package/dist/src/{chunk-2QWUV5HZ.js → chunk-Q5TVOQAA.js} +1 -1
- package/dist/src/{chunk-JA23HN6S.js → chunk-UOCB4U67.js} +0 -2
- package/dist/src/{chunk-3F6JSA2B.js → chunk-ZMZB2VED.js} +5 -5
- package/dist/src/command-protection-hook.js +3 -3
- package/dist/src/deepseek-command-protection-plugin.js +4 -4
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +7 -7
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/relay-mcp.js +3 -4
- 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-ZMZB2VED.js";
|
|
9
|
+
import "./chunk-Q5TVOQAA.js";
|
|
10
|
+
import "./chunk-MKFFAP4D.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FEV3BCGC.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
export {
|
|
15
15
|
getCodexAspHost,
|
|
@@ -1506,6 +1506,9 @@ function gitIdentityConfigCommands(identity, scope = "global") {
|
|
|
1506
1506
|
];
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
+
// ../shared/src/relay.ts
|
|
1510
|
+
var RELAY_MCP_SERVER_NAME = "subagent_relay";
|
|
1511
|
+
|
|
1509
1512
|
// ../shared/src/headless-agent.ts
|
|
1510
1513
|
import { z as z4 } from "zod";
|
|
1511
1514
|
var headlessAgentRequestBaseSchema = z4.object({
|
|
@@ -8019,6 +8022,7 @@ export {
|
|
|
8019
8022
|
REPLICAS_CONFIG_FILENAMES,
|
|
8020
8023
|
parseReplicasConfigString,
|
|
8021
8024
|
createUuidFromHex,
|
|
8025
|
+
RELAY_MCP_SERVER_NAME,
|
|
8022
8026
|
headlessAgentRequestSchema,
|
|
8023
8027
|
isAuthenticationErrorText,
|
|
8024
8028
|
isClaudeAuthErrorText,
|
|
@@ -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-Q5TVOQAA.js";
|
|
7
7
|
import {
|
|
8
8
|
extractCommandProtectionCommandText,
|
|
9
9
|
findGitCommitSignals,
|
|
10
10
|
findPrMergeSignals
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FEV3BCGC.js";
|
|
12
12
|
|
|
13
13
|
// src/services/command-protection-service.ts
|
|
14
14
|
var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
|
|
@@ -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-FEV3BCGC.js";
|
|
8
8
|
|
|
9
9
|
// src/utils/codex-agent-env.ts
|
|
10
10
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -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.851";
|
|
245
245
|
var INITIALIZE_METHOD = "initialize";
|
|
246
246
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
247
247
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
shouldRefreshPullRequests
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FEV3BCGC.js";
|
|
7
7
|
|
|
8
8
|
// src/services/post-tool-pr-notifier.ts
|
|
9
9
|
async function notifyPostToolUse(toolName, toolInput) {
|
|
@@ -7,7 +7,6 @@ import { existsSync } from "fs";
|
|
|
7
7
|
import { dirname, join } from "path";
|
|
8
8
|
import { fileURLToPath } from "url";
|
|
9
9
|
import { createRequire } from "module";
|
|
10
|
-
var RELAY_MCP_SERVER_NAME = "subagent_relay";
|
|
11
10
|
var RELAY_MCP_TOOL_NAMES = ["get_providers", "spawn_agent", "message_agent", "delete_agent"];
|
|
12
11
|
var RELAY_MCP_TOOL_TIMEOUT_MS = 24 * 60 * 60 * 1e3 + 6e4;
|
|
13
12
|
function relayMcpProcessConfig(parentChatId) {
|
|
@@ -38,7 +37,6 @@ function relayCodexMcpConfig(parentChatId) {
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
export {
|
|
41
|
-
RELAY_MCP_SERVER_NAME,
|
|
42
40
|
RELAY_MCP_TOOL_NAMES,
|
|
43
41
|
RELAY_MCP_TOOL_TIMEOUT_MS,
|
|
44
42
|
relayMcpProcessConfig,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q5TVOQAA.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
SUBPROCESS_MAX_BUFFER,
|
|
12
12
|
buildCodexAgentEnv,
|
|
13
13
|
execFileAsync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MKFFAP4D.js";
|
|
15
15
|
import {
|
|
16
16
|
isRecord
|
|
17
17
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
createSuccessResult,
|
|
24
24
|
listOpenAICompatibleModels,
|
|
25
25
|
resolveOpenAICompatibleModelsUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FEV3BCGC.js";
|
|
27
27
|
|
|
28
28
|
// src/managers/codex-token-manager.ts
|
|
29
29
|
import { promises as fs } from "fs";
|
|
@@ -244,7 +244,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
244
244
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
245
245
|
await this.applyCredentialsResponse(data);
|
|
246
246
|
if (data.scope) setAgentCredentialSnapshot("codex", { method: data.type, scope: data.scope, revision: data.revision });
|
|
247
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
247
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-JLTBSIYU.js");
|
|
248
248
|
await restartCodexAspHostIfRunning2();
|
|
249
249
|
});
|
|
250
250
|
await this.start(true);
|
|
@@ -264,7 +264,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
264
264
|
await this.applyCredentialUpdate(generation, async () => {
|
|
265
265
|
await this.applyCredentialsResponse(data);
|
|
266
266
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
267
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
267
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-JLTBSIYU.js");
|
|
268
268
|
await restartCodexAspHostIfRunning2();
|
|
269
269
|
}
|
|
270
270
|
if (data.scope) {
|
|
@@ -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-IVALOOVU.js";
|
|
7
|
+
import "./chunk-Q5TVOQAA.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-FEV3BCGC.js";
|
|
12
12
|
import "./chunk-VEQXQN22.js";
|
|
13
13
|
|
|
14
14
|
// src/command-protection-hook.ts
|
|
@@ -3,13 +3,13 @@ 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-IVALOOVU.js";
|
|
7
7
|
import {
|
|
8
8
|
notifyPostToolUse
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-MTSI4DXY.js";
|
|
10
|
+
import "./chunk-Q5TVOQAA.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FEV3BCGC.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// 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-MKFFAP4D.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
getMemoryOutputSafetyViolation,
|
|
15
15
|
headlessAgentRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FEV3BCGC.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-IVALOOVU.js";
|
|
95
95
|
import {
|
|
96
96
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
97
97
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -115,12 +115,11 @@ import {
|
|
|
115
115
|
recoverCompletedTurn
|
|
116
116
|
} from "./chunk-FLDA7BX3.js";
|
|
117
117
|
import {
|
|
118
|
-
RELAY_MCP_SERVER_NAME,
|
|
119
118
|
RELAY_MCP_TOOL_NAMES,
|
|
120
119
|
RELAY_MCP_TOOL_TIMEOUT_MS,
|
|
121
120
|
relayCodexMcpConfig,
|
|
122
121
|
relayMcpProcessConfig
|
|
123
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-UOCB4U67.js";
|
|
124
123
|
import {
|
|
125
124
|
BaseRefreshManager,
|
|
126
125
|
CodexAspAuthMethodChangedError,
|
|
@@ -132,20 +131,20 @@ import {
|
|
|
132
131
|
recordCredentialFallback,
|
|
133
132
|
recordExhaustedCredential,
|
|
134
133
|
restartCodexAspHost
|
|
135
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-ZMZB2VED.js";
|
|
136
135
|
import {
|
|
137
136
|
ENGINE_ENV,
|
|
138
137
|
IS_WARMING_MODE,
|
|
139
138
|
monolithRequest,
|
|
140
139
|
monolithService,
|
|
141
140
|
setAgentCredentialSnapshot
|
|
142
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-Q5TVOQAA.js";
|
|
143
142
|
import {
|
|
144
143
|
AspClient,
|
|
145
144
|
SUBPROCESS_MAX_BUFFER,
|
|
146
145
|
execAsync,
|
|
147
146
|
execFileAsync
|
|
148
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-MKFFAP4D.js";
|
|
149
148
|
import {
|
|
150
149
|
isRecord as isRecord2
|
|
151
150
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -223,6 +222,7 @@ import {
|
|
|
223
222
|
OPENCODE_GO_BASE_URL,
|
|
224
223
|
OPENCODE_GO_PROVIDER,
|
|
225
224
|
QUEUED_MESSAGE_REMOVED_EVENT_TYPE,
|
|
225
|
+
RELAY_MCP_SERVER_NAME,
|
|
226
226
|
REMOVED_MESSAGE_IDS_PAYLOAD_KEY,
|
|
227
227
|
REPLICAS_CONFIG_FILENAMES,
|
|
228
228
|
SANDBOX_PATHS,
|
|
@@ -357,7 +357,7 @@ import {
|
|
|
357
357
|
stripAgentDiagnosticErrors,
|
|
358
358
|
withTimeout,
|
|
359
359
|
workspaceCredentialProviderSchema
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-FEV3BCGC.js";
|
|
361
361
|
import {
|
|
362
362
|
__commonJS,
|
|
363
363
|
__export,
|
|
@@ -3,11 +3,11 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
notifyPostToolUse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MTSI4DXY.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-FEV3BCGC.js";
|
|
11
11
|
import "./chunk-VEQXQN22.js";
|
|
12
12
|
|
|
13
13
|
// src/post-tool-pr-hook.ts
|
package/dist/src/relay-mcp.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module';
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
|
+
import "./chunk-UOCB4U67.js";
|
|
4
5
|
import {
|
|
5
|
-
RELAY_MCP_SERVER_NAME
|
|
6
|
-
} from "./chunk-JA23HN6S.js";
|
|
7
|
-
import {
|
|
6
|
+
RELAY_MCP_SERVER_NAME,
|
|
8
7
|
messageRelaySubagentRequestSchema,
|
|
9
8
|
spawnRelaySubagentRequestSchema
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FEV3BCGC.js";
|
|
11
10
|
import "./chunk-VEQXQN22.js";
|
|
12
11
|
|
|
13
12
|
// src/relay-mcp.ts
|