replicas-engine 0.1.939 → 0.1.941
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-EY5IMWWT.js → asp-host-HEE4G4VF.js} +5 -5
- package/dist/src/{chunk-DEJOAJS7.js → chunk-DFSIJZRP.js} +6 -6
- package/dist/src/{chunk-E6HGZSLW.js → chunk-P7EUB7A7.js} +3 -3
- package/dist/src/{chunk-MSMQQGNQ.js → chunk-PYS6OODD.js} +1 -1
- package/dist/src/{chunk-UHB43MET.js → chunk-UOTSKL34.js} +11 -0
- package/dist/src/{chunk-7DTDDNFJ.js → chunk-VXCEH64K.js} +1 -1
- package/dist/src/{chunk-73MPE74B.js → chunk-WD7GUVFF.js} +3 -3
- package/dist/src/{chunk-JQDFBEAW.js → chunk-YJ7ESUFG.js} +3 -11
- package/dist/src/{chunk-H3GQEPSC.js → chunk-ZGP5X4RU.js} +1 -1
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +3 -3
- package/dist/src/index.js +10 -10
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/relay-mcp.js +3 -4
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
getCodexAspHost,
|
|
6
6
|
restartCodexAspHost,
|
|
7
7
|
restartCodexAspHostIfRunning
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-DFSIJZRP.js";
|
|
9
|
+
import "./chunk-VXCEH64K.js";
|
|
10
|
+
import "./chunk-P7EUB7A7.js";
|
|
11
|
+
import "./chunk-PYS6OODD.js";
|
|
12
12
|
import "./chunk-UZSNFLDQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-UOTSKL34.js";
|
|
14
14
|
import "./chunk-VEQXQN22.js";
|
|
15
15
|
export {
|
|
16
16
|
getCodexAspHost,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VXCEH64K.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
buildCodexAgentEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P7EUB7A7.js";
|
|
13
13
|
import {
|
|
14
14
|
SUBPROCESS_MAX_BUFFER,
|
|
15
15
|
execFileAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PYS6OODD.js";
|
|
17
17
|
import {
|
|
18
18
|
isRecord
|
|
19
19
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
listOpenAICompatibleModels,
|
|
28
28
|
readOllamaAuthEnv,
|
|
29
29
|
resolveOpenAICompatibleModelsUrl
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UOTSKL34.js";
|
|
31
31
|
|
|
32
32
|
// src/managers/codex-token-manager.ts
|
|
33
33
|
import { promises as fs } from "fs";
|
|
@@ -260,7 +260,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
260
260
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
261
261
|
await this.applyCredentialsResponse(data);
|
|
262
262
|
setAgentCredentialSnapshot("codex", data);
|
|
263
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
263
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-HEE4G4VF.js");
|
|
264
264
|
await restartCodexAspHostIfRunning2();
|
|
265
265
|
});
|
|
266
266
|
await this.start(true);
|
|
@@ -280,7 +280,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
280
280
|
await this.applyCredentialUpdate(generation, async () => {
|
|
281
281
|
await this.applyCredentialsResponse(data);
|
|
282
282
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
283
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
283
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-HEE4G4VF.js");
|
|
284
284
|
await restartCodexAspHostIfRunning2();
|
|
285
285
|
}
|
|
286
286
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
execFileAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PYS6OODD.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UOTSKL34.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -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.941";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
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
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UOTSKL34.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -1720,6 +1720,15 @@ function gitIdentityConfigCommands(identity, scope = "global") {
|
|
|
1720
1720
|
|
|
1721
1721
|
// ../shared/src/relay.ts
|
|
1722
1722
|
var RELAY_MCP_SERVER_NAME = "subagent_relay";
|
|
1723
|
+
var RELAY_MCP_TOOLS = {
|
|
1724
|
+
getProviders: "get_providers",
|
|
1725
|
+
spawnAgent: "spawn_agent",
|
|
1726
|
+
getAgent: "get_agent",
|
|
1727
|
+
waitAgent: "wait_agent",
|
|
1728
|
+
messageAgent: "message_agent",
|
|
1729
|
+
deleteAgent: "delete_agent"
|
|
1730
|
+
};
|
|
1731
|
+
var RELAY_MCP_TOOL_NAMES = Object.values(RELAY_MCP_TOOLS);
|
|
1723
1732
|
|
|
1724
1733
|
// ../shared/src/headless-agent.ts
|
|
1725
1734
|
import { z as z4 } from "zod";
|
|
@@ -8804,6 +8813,8 @@ export {
|
|
|
8804
8813
|
parseReplicasConfigString,
|
|
8805
8814
|
createUuidFromHex,
|
|
8806
8815
|
RELAY_MCP_SERVER_NAME,
|
|
8816
|
+
RELAY_MCP_TOOLS,
|
|
8817
|
+
RELAY_MCP_TOOL_NAMES,
|
|
8807
8818
|
headlessAgentRequestSchema,
|
|
8808
8819
|
isAuthenticationErrorText,
|
|
8809
8820
|
isClaudeAuthErrorText,
|
|
@@ -3,18 +3,18 @@ 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-VXCEH64K.js";
|
|
7
7
|
import {
|
|
8
8
|
SUBPROCESS_MAX_BUFFER,
|
|
9
9
|
execFileAsync
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PYS6OODD.js";
|
|
11
11
|
import {
|
|
12
12
|
extractCommandProtectionCommandText,
|
|
13
13
|
findCommandProtectionGitLookups,
|
|
14
14
|
findGitCommitSignals,
|
|
15
15
|
findPrMergeSignals,
|
|
16
16
|
parseCommandProtectionRequest
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UOTSKL34.js";
|
|
18
18
|
|
|
19
19
|
// src/services/command-protection-service.ts
|
|
20
20
|
import { readFile, stat } from "fs/promises";
|
|
@@ -1,21 +1,15 @@
|
|
|
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 {
|
|
5
|
+
RELAY_MCP_TOOL_NAMES
|
|
6
|
+
} from "./chunk-UOTSKL34.js";
|
|
4
7
|
|
|
5
8
|
// src/managers/relay-mcp-config.ts
|
|
6
9
|
import { existsSync } from "fs";
|
|
7
10
|
import { dirname, join } from "path";
|
|
8
11
|
import { fileURLToPath } from "url";
|
|
9
12
|
import { createRequire } from "module";
|
|
10
|
-
var RELAY_MCP_TOOLS = {
|
|
11
|
-
getProviders: "get_providers",
|
|
12
|
-
spawnAgent: "spawn_agent",
|
|
13
|
-
getAgent: "get_agent",
|
|
14
|
-
waitAgent: "wait_agent",
|
|
15
|
-
messageAgent: "message_agent",
|
|
16
|
-
deleteAgent: "delete_agent"
|
|
17
|
-
};
|
|
18
|
-
var RELAY_MCP_TOOL_NAMES = Object.values(RELAY_MCP_TOOLS);
|
|
19
13
|
var RELAY_MCP_TOOL_TIMEOUT_MS = 24 * 60 * 60 * 1e3 + 6e4;
|
|
20
14
|
function relayMcpProcessConfig(parentChatId) {
|
|
21
15
|
const directory = dirname(fileURLToPath(import.meta.url));
|
|
@@ -45,8 +39,6 @@ function relayCodexMcpConfig(parentChatId) {
|
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
export {
|
|
48
|
-
RELAY_MCP_TOOLS,
|
|
49
|
-
RELAY_MCP_TOOL_NAMES,
|
|
50
42
|
RELAY_MCP_TOOL_TIMEOUT_MS,
|
|
51
43
|
relayMcpProcessConfig,
|
|
52
44
|
relayCodexMcpConfig
|
|
@@ -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-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-WD7GUVFF.js";
|
|
7
|
+
import "./chunk-VXCEH64K.js";
|
|
8
|
+
import "./chunk-PYS6OODD.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-UOTSKL34.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AppServerProcess,
|
|
10
10
|
buildCodexAgentEnv
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-P7EUB7A7.js";
|
|
12
|
+
import "./chunk-PYS6OODD.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT,
|
|
15
15
|
getMemoryOutputSafetyViolation,
|
|
16
16
|
headlessAgentRequestSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UOTSKL34.js";
|
|
18
18
|
import "./chunk-VEQXQN22.js";
|
|
19
19
|
|
|
20
20
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
reportCommandProtectionBlock,
|
|
33
33
|
resolveDiffBase,
|
|
34
34
|
runGitCommand
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WD7GUVFF.js";
|
|
36
36
|
import {
|
|
37
37
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
38
38
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -57,14 +57,12 @@ import {
|
|
|
57
57
|
} from "./chunk-FLDA7BX3.js";
|
|
58
58
|
import {
|
|
59
59
|
publishedPullRequestUrls
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ZGP5X4RU.js";
|
|
61
61
|
import {
|
|
62
|
-
RELAY_MCP_TOOLS,
|
|
63
|
-
RELAY_MCP_TOOL_NAMES,
|
|
64
62
|
RELAY_MCP_TOOL_TIMEOUT_MS,
|
|
65
63
|
relayCodexMcpConfig,
|
|
66
64
|
relayMcpProcessConfig
|
|
67
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YJ7ESUFG.js";
|
|
68
66
|
import {
|
|
69
67
|
BaseRefreshManager,
|
|
70
68
|
CodexAspAuthMethodChangedError,
|
|
@@ -79,7 +77,7 @@ import {
|
|
|
79
77
|
refreshDelayMs,
|
|
80
78
|
restartCodexAspHost,
|
|
81
79
|
routineRefreshExclusions
|
|
82
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-DFSIJZRP.js";
|
|
83
81
|
import {
|
|
84
82
|
ENGINE_ENV,
|
|
85
83
|
monolithRequest,
|
|
@@ -87,16 +85,16 @@ import {
|
|
|
87
85
|
readRuntimeEnvFile,
|
|
88
86
|
reloadEngineEnv,
|
|
89
87
|
setAgentCredentialSnapshot
|
|
90
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-VXCEH64K.js";
|
|
91
89
|
import {
|
|
92
90
|
AspClient,
|
|
93
91
|
getCodexModelProvider
|
|
94
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-P7EUB7A7.js";
|
|
95
93
|
import {
|
|
96
94
|
SUBPROCESS_MAX_BUFFER,
|
|
97
95
|
execAsync,
|
|
98
96
|
execFileAsync
|
|
99
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-PYS6OODD.js";
|
|
100
98
|
import {
|
|
101
99
|
isRecord as isRecord2
|
|
102
100
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -182,6 +180,8 @@ import {
|
|
|
182
180
|
OPENCODE_GO_PROVIDER,
|
|
183
181
|
QUEUED_MESSAGE_REMOVED_EVENT_TYPE,
|
|
184
182
|
RELAY_MCP_SERVER_NAME,
|
|
183
|
+
RELAY_MCP_TOOLS,
|
|
184
|
+
RELAY_MCP_TOOL_NAMES,
|
|
185
185
|
REMOVED_MESSAGE_IDS_PAYLOAD_KEY,
|
|
186
186
|
REPLICAS_CONFIG_FILENAMES,
|
|
187
187
|
REPLICAS_RUNTIME_ENV_ALIASES,
|
|
@@ -326,7 +326,7 @@ import {
|
|
|
326
326
|
workspaceCredentialProviderSchema,
|
|
327
327
|
workspaceTokenRequestSchema,
|
|
328
328
|
workspaceTokenResponseSchema
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-UOTSKL34.js";
|
|
330
330
|
import {
|
|
331
331
|
cloneMcpConfig,
|
|
332
332
|
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-ZGP5X4RU.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-UOTSKL34.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
|
@@ -1,17 +1,16 @@
|
|
|
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
|
|
5
|
-
RELAY_MCP_TOOLS
|
|
6
|
-
} from "./chunk-JQDFBEAW.js";
|
|
4
|
+
import "./chunk-YJ7ESUFG.js";
|
|
7
5
|
import {
|
|
8
6
|
RELAY_MCP_SERVER_NAME,
|
|
7
|
+
RELAY_MCP_TOOLS,
|
|
9
8
|
messageRelaySubagentRequestSchema,
|
|
10
9
|
readSseStream,
|
|
11
10
|
relaySubagentResponseSchema,
|
|
12
11
|
spawnRelaySubagentRequestSchema,
|
|
13
12
|
waitRelaySubagentRequestSchema
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UOTSKL34.js";
|
|
15
14
|
import "./chunk-VEQXQN22.js";
|
|
16
15
|
|
|
17
16
|
// src/relay-mcp.ts
|