replicas-engine 0.1.1042 → 0.1.1043
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-UAEBYHX2.js → asp-host-3PMUOIHX.js} +5 -5
- package/dist/src/{chunk-TR7NUUT3.js → chunk-74PWNTPC.js} +2 -2
- package/dist/src/{chunk-CMXKQPDV.js → chunk-HJSDRDGQ.js} +1 -1
- package/dist/src/{chunk-4VDF2C2U.js → chunk-OC3ORVZM.js} +6 -6
- package/dist/src/{chunk-QDIKROO7.js → chunk-S5UZOWCH.js} +3 -3
- package/dist/src/{chunk-SMBKCCEE.js → chunk-WGZFINQP.js} +2 -2
- package/dist/src/{chunk-XS3QUSHQ.js → chunk-YKJ47TTY.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 +7 -7
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
- package/dist/src/{chunk-KXBTOL3R.js → chunk-6D6XBIE7.js} +27 -27
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listRunningCodexModels,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OC3ORVZM.js";
|
|
12
|
+
import "./chunk-74PWNTPC.js";
|
|
13
|
+
import "./chunk-S5UZOWCH.js";
|
|
14
|
+
import "./chunk-YKJ47TTY.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6D6XBIE7.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
SUBPROCESS_MAX_BUFFER,
|
|
6
6
|
execFileAsync
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YKJ47TTY.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isValidAgentProvider,
|
|
19
19
|
parsePosixEnvFile,
|
|
20
20
|
readReplicasRuntimeEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6D6XBIE7.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-env-loader.ts
|
|
24
24
|
import { readFileSync } from "fs";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
resolveDiffBase,
|
|
11
11
|
runGitCommand,
|
|
12
12
|
setAgentCredentialSnapshot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-74PWNTPC.js";
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-S5UZOWCH.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YKJ47TTY.js";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
24
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
readOllamaAuthEnv,
|
|
54
54
|
resolveOpenAICompatibleModelsUrl,
|
|
55
55
|
withTimeout
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-6D6XBIE7.js";
|
|
57
57
|
|
|
58
58
|
// src/managers/codex-token-manager.ts
|
|
59
59
|
import { promises as fs } from "fs";
|
|
@@ -289,7 +289,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
289
289
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
290
290
|
await this.applyCredentialsResponse(data);
|
|
291
291
|
setAgentCredentialSnapshot("codex", data);
|
|
292
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
292
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-3PMUOIHX.js");
|
|
293
293
|
await restartCodexAspHostIfRunning2();
|
|
294
294
|
});
|
|
295
295
|
await this.start(true);
|
|
@@ -310,7 +310,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
310
310
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
311
311
|
await this.applyCredentialsResponse(data);
|
|
312
312
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
313
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
313
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-3PMUOIHX.js");
|
|
314
314
|
await restartCodexAspHostIfRunning2();
|
|
315
315
|
}
|
|
316
316
|
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-YKJ47TTY.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6D6XBIE7.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.1043";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getOriginDefaultBranch,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-74PWNTPC.js";
|
|
9
9
|
import {
|
|
10
10
|
extractCommandProtectionCommandText,
|
|
11
11
|
findCommandProtectionGitLookups,
|
|
12
12
|
findGitCommitSignals,
|
|
13
13
|
findPrMergeSignals,
|
|
14
14
|
parseCommandProtectionRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6D6XBIE7.js";
|
|
16
16
|
|
|
17
17
|
// src/services/command-protection-service.ts
|
|
18
18
|
import { readFile, stat } from "fs/promises";
|
|
@@ -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-6D6XBIE7.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -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-WGZFINQP.js";
|
|
7
|
+
import "./chunk-74PWNTPC.js";
|
|
8
|
+
import "./chunk-YKJ47TTY.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6D6XBIE7.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
AppServerProcess,
|
|
9
9
|
buildCodexAgentEnv
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-S5UZOWCH.js";
|
|
11
|
+
import "./chunk-YKJ47TTY.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
headlessAgentRequestSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6D6XBIE7.js";
|
|
16
16
|
import "./chunk-VEQXQN22.js";
|
|
17
17
|
|
|
18
18
|
// 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-WGZFINQP.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-P73LGPQO.js";
|
|
53
53
|
import {
|
|
54
54
|
publishedPullRequestUrls
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-HJSDRDGQ.js";
|
|
56
56
|
import {
|
|
57
57
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
58
58
|
AsyncLock,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
timestampFromSeconds,
|
|
115
115
|
upsertCredentialFileLines,
|
|
116
116
|
writeSecureCredentialFile
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-OC3ORVZM.js";
|
|
118
118
|
import {
|
|
119
119
|
ENGINE_ENV,
|
|
120
120
|
monolithRequest,
|
|
@@ -123,16 +123,16 @@ import {
|
|
|
123
123
|
reloadEngineEnv,
|
|
124
124
|
resolveDiffBase,
|
|
125
125
|
setAgentCredentialSnapshot
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-74PWNTPC.js";
|
|
127
127
|
import {
|
|
128
128
|
AspClient,
|
|
129
129
|
getCodexModelProvider
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-S5UZOWCH.js";
|
|
131
131
|
import {
|
|
132
132
|
SUBPROCESS_MAX_BUFFER,
|
|
133
133
|
execAsync,
|
|
134
134
|
execFileAsync
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-YKJ47TTY.js";
|
|
136
136
|
import {
|
|
137
137
|
isRecord as isRecord2
|
|
138
138
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -357,7 +357,7 @@ import {
|
|
|
357
357
|
workspaceTokenRequestSchema,
|
|
358
358
|
workspaceTokenResponseSchema,
|
|
359
359
|
wrapInTag
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-6D6XBIE7.js";
|
|
361
361
|
import {
|
|
362
362
|
cloneMcpConfig,
|
|
363
363
|
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-HJSDRDGQ.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-6D6XBIE7.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/subagent-mcp.js
CHANGED
package/package.json
CHANGED
|
@@ -941,6 +941,32 @@ function getCredentialMethodLabel(agent, method) {
|
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
+
// ../shared/src/sandbox.ts
|
|
945
|
+
var SANDBOX_LIFECYCLE = {
|
|
946
|
+
AUTO_STOP_MINUTES: 60,
|
|
947
|
+
AUTO_ARCHIVE_MINUTES: 60 * 24 * 7,
|
|
948
|
+
AUTO_DELETE_MINUTES: -1,
|
|
949
|
+
SSH_TOKEN_EXPIRATION_MINUTES: 3 * 60
|
|
950
|
+
};
|
|
951
|
+
var SANDBOX_SKILL_DIRS = [
|
|
952
|
+
".agents/skills",
|
|
953
|
+
".claude/skills",
|
|
954
|
+
".codex/skills",
|
|
955
|
+
".cursor/skills",
|
|
956
|
+
".config/opencode/skills",
|
|
957
|
+
".pi/agent/skills",
|
|
958
|
+
".replicas/skill-registries"
|
|
959
|
+
];
|
|
960
|
+
var SANDBOX_PATHS = {
|
|
961
|
+
HOME_DIR: "/home/user",
|
|
962
|
+
WORKSPACES_DIR: "/home/user/workspaces",
|
|
963
|
+
REPLICAS_DIR: "/home/user/.replicas",
|
|
964
|
+
REPLICAS_CANVAS_DIR: "/home/user/.replicas/canvas",
|
|
965
|
+
REPLICAS_RUNTIME_ENV_FILE: "/home/user/.replicas/runtime-env.sh"
|
|
966
|
+
};
|
|
967
|
+
var WORKSPACE_SIZES = ["small", "large", "ultra"];
|
|
968
|
+
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
969
|
+
|
|
944
970
|
// ../shared/src/pricing.ts
|
|
945
971
|
var WORKSPACE_SOURCES = ["api", "dashboard", "slack", "linear", "github", "gitlab", "automation", "mothership"];
|
|
946
972
|
var CLIENT_MESSAGE_SOURCES = ["web", "desktop", "mobile", "tui"];
|
|
@@ -2852,32 +2878,6 @@ function parseFrontmatter(content) {
|
|
|
2852
2878
|
}
|
|
2853
2879
|
}
|
|
2854
2880
|
|
|
2855
|
-
// ../shared/src/sandbox.ts
|
|
2856
|
-
var SANDBOX_LIFECYCLE = {
|
|
2857
|
-
AUTO_STOP_MINUTES: 60,
|
|
2858
|
-
AUTO_ARCHIVE_MINUTES: 60 * 24 * 7,
|
|
2859
|
-
AUTO_DELETE_MINUTES: -1,
|
|
2860
|
-
SSH_TOKEN_EXPIRATION_MINUTES: 3 * 60
|
|
2861
|
-
};
|
|
2862
|
-
var SANDBOX_SKILL_DIRS = [
|
|
2863
|
-
".agents/skills",
|
|
2864
|
-
".claude/skills",
|
|
2865
|
-
".codex/skills",
|
|
2866
|
-
".cursor/skills",
|
|
2867
|
-
".config/opencode/skills",
|
|
2868
|
-
".pi/agent/skills",
|
|
2869
|
-
".replicas/skill-registries"
|
|
2870
|
-
];
|
|
2871
|
-
var SANDBOX_PATHS = {
|
|
2872
|
-
HOME_DIR: "/home/user",
|
|
2873
|
-
WORKSPACES_DIR: "/home/user/workspaces",
|
|
2874
|
-
REPLICAS_DIR: "/home/user/.replicas",
|
|
2875
|
-
REPLICAS_CANVAS_DIR: "/home/user/.replicas/canvas",
|
|
2876
|
-
REPLICAS_RUNTIME_ENV_FILE: "/home/user/.replicas/runtime-env.sh"
|
|
2877
|
-
};
|
|
2878
|
-
var WORKSPACE_SIZES = ["small", "large", "ultra"];
|
|
2879
|
-
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
2880
|
-
|
|
2881
2881
|
// ../shared/src/learned-skills.ts
|
|
2882
2882
|
var LEARNED_SKILLS_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/learned-skills`;
|
|
2883
2883
|
var LEARNED_SKILLS_MANIFEST_PATH = `${LEARNED_SKILLS_ROOT}/manifest.json`;
|
|
@@ -9747,6 +9747,7 @@ export {
|
|
|
9747
9747
|
detectEnvironmentAuthMethod,
|
|
9748
9748
|
AGENT_CREDENTIAL_METHODS_IN_ORDER,
|
|
9749
9749
|
describeCredential,
|
|
9750
|
+
SANDBOX_SKILL_DIRS,
|
|
9750
9751
|
isClientMessageSource,
|
|
9751
9752
|
agentCredentialSnapshotSchema,
|
|
9752
9753
|
isSameCredential,
|
|
@@ -9853,7 +9854,6 @@ export {
|
|
|
9853
9854
|
SUBAGENT_MCP_TOOL_NAMES,
|
|
9854
9855
|
parseMcpToolName,
|
|
9855
9856
|
parseFrontmatter,
|
|
9856
|
-
SANDBOX_SKILL_DIRS,
|
|
9857
9857
|
LEARNED_SKILLS_MANIFEST_PATH,
|
|
9858
9858
|
LEARNED_SKILL_DIR_PREFIX,
|
|
9859
9859
|
learnedSkillsManifestSchema,
|