replicas-engine 0.1.964 → 0.1.967
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-XRCTTTVU.js → asp-host-JUJJHJWJ.js} +5 -5
- package/dist/src/{chunk-MEN62XEB.js → chunk-4KMPRAV6.js} +69 -42
- package/dist/src/{chunk-TDVZOQMQ.js → chunk-DMGFNUGG.js} +3 -3
- package/dist/src/{chunk-33CDUZ6W.js → chunk-EUMRQH4J.js} +1 -1
- package/dist/src/{chunk-3ZBHY2YI.js → chunk-JH2UMGOT.js} +1 -1
- package/dist/src/{chunk-N6JCCYO3.js → chunk-MHGSYSA2.js} +1 -1
- package/dist/src/{chunk-5M2ZF4NX.js → chunk-YIKQKQQI.js} +6 -6
- package/dist/src/{chunk-3NDASIOV.js → chunk-ZRCBGXER.js} +3 -3
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +3 -3
- package/dist/src/index.js +312 -221
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +2 -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-YIKQKQQI.js";
|
|
9
|
+
import "./chunk-JH2UMGOT.js";
|
|
10
|
+
import "./chunk-DMGFNUGG.js";
|
|
11
|
+
import "./chunk-EUMRQH4J.js";
|
|
12
12
|
import "./chunk-UZSNFLDQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4KMPRAV6.js";
|
|
14
14
|
import "./chunk-VEQXQN22.js";
|
|
15
15
|
export {
|
|
16
16
|
getCodexAspHost,
|
|
@@ -265,6 +265,31 @@ function normalizeClaudeModel(model) {
|
|
|
265
265
|
}
|
|
266
266
|
return model;
|
|
267
267
|
}
|
|
268
|
+
function toClaudeCodeModel(model, bedrock) {
|
|
269
|
+
if (!bedrock) {
|
|
270
|
+
return model;
|
|
271
|
+
}
|
|
272
|
+
switch (normalizeClaudeModel(model)) {
|
|
273
|
+
case CLAUDE_FABLE_5_1_MODEL:
|
|
274
|
+
return CLAUDE_FABLE_5_1_BEDROCK_MODEL;
|
|
275
|
+
case CLAUDE_FABLE_5_MODEL:
|
|
276
|
+
return CLAUDE_FABLE_5_BEDROCK_MODEL;
|
|
277
|
+
case CLAUDE_OPUS_5_5_MODEL:
|
|
278
|
+
return CLAUDE_OPUS_5_5_BEDROCK_MODEL;
|
|
279
|
+
case CLAUDE_OPUS_5_MODEL:
|
|
280
|
+
return CLAUDE_OPUS_5_BEDROCK_MODEL;
|
|
281
|
+
case CLAUDE_OPUS_4_8_MODEL:
|
|
282
|
+
return "opus";
|
|
283
|
+
case CLAUDE_SONNET_5_5_MODEL:
|
|
284
|
+
return CLAUDE_SONNET_5_5_BEDROCK_MODEL;
|
|
285
|
+
case CLAUDE_SONNET_5_MODEL:
|
|
286
|
+
return "sonnet";
|
|
287
|
+
case CLAUDE_HAIKU_4_5_MODEL:
|
|
288
|
+
return "haiku";
|
|
289
|
+
default:
|
|
290
|
+
return model;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
268
293
|
var CLAUDE_MODEL_CONTEXT_WINDOWS = {
|
|
269
294
|
[CLAUDE_FABLE_5_1_MODEL]: 1e6,
|
|
270
295
|
[CLAUDE_FABLE_5_MODEL]: 1e6,
|
|
@@ -8410,6 +8435,7 @@ var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
|
|
|
8410
8435
|
var MAX_CLIENT_STATE_BYTES_PER_USER = 10 * 1024 * 1024;
|
|
8411
8436
|
|
|
8412
8437
|
// ../shared/src/routes/workspaces.ts
|
|
8438
|
+
import { z as z13 } from "zod";
|
|
8413
8439
|
var WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"];
|
|
8414
8440
|
var WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
|
|
8415
8441
|
var WORKSPACE_SORT_CHOICES = [
|
|
@@ -8433,48 +8459,56 @@ var DEFAULT_WORKSPACE_FILTERS = {
|
|
|
8433
8459
|
activity: "any"
|
|
8434
8460
|
};
|
|
8435
8461
|
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
8462
|
+
var terminalRtcCandidateSchema = z13.object({ type: z13.literal("rtc-candidate"), candidate: z13.string(), mid: z13.string() });
|
|
8463
|
+
var terminalSocketServerMessageSchema = z13.discriminatedUnion("type", [
|
|
8464
|
+
z13.object({ type: z13.literal("output"), data: z13.string() }),
|
|
8465
|
+
z13.object({ type: z13.literal("rtc-answer"), sdp: z13.string() }),
|
|
8466
|
+
terminalRtcCandidateSchema,
|
|
8467
|
+
z13.object({ type: z13.literal("rtc-switch") })
|
|
8468
|
+
]);
|
|
8469
|
+
var TERMINAL_RTC_ICE_SERVER = "stun:stun.l.google.com:19302";
|
|
8436
8470
|
|
|
8437
8471
|
// ../shared/src/routes/workspace-events.ts
|
|
8438
|
-
import { z as
|
|
8439
|
-
var workspaceChangedEventSchema =
|
|
8440
|
-
|
|
8441
|
-
type:
|
|
8442
|
-
workspaceId:
|
|
8443
|
-
completion:
|
|
8444
|
-
workspaceName:
|
|
8445
|
-
completedAt:
|
|
8446
|
-
processing:
|
|
8472
|
+
import { z as z14 } from "zod";
|
|
8473
|
+
var workspaceChangedEventSchema = z14.discriminatedUnion("type", [
|
|
8474
|
+
z14.object({
|
|
8475
|
+
type: z14.literal("workspace.changed"),
|
|
8476
|
+
workspaceId: z14.string(),
|
|
8477
|
+
completion: z14.object({
|
|
8478
|
+
workspaceName: z14.string(),
|
|
8479
|
+
completedAt: z14.string(),
|
|
8480
|
+
processing: z14.boolean().optional()
|
|
8447
8481
|
}).optional(),
|
|
8448
|
-
ts:
|
|
8482
|
+
ts: z14.string()
|
|
8449
8483
|
}),
|
|
8450
|
-
|
|
8451
|
-
type:
|
|
8452
|
-
workspaceId:
|
|
8453
|
-
chatId:
|
|
8454
|
-
ts:
|
|
8484
|
+
z14.object({
|
|
8485
|
+
type: z14.literal("workspace.chat.changed"),
|
|
8486
|
+
workspaceId: z14.string(),
|
|
8487
|
+
chatId: z14.string(),
|
|
8488
|
+
ts: z14.string()
|
|
8455
8489
|
}),
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
type:
|
|
8459
|
-
workspaceId:
|
|
8460
|
-
ts:
|
|
8490
|
+
z14.object({ type: z14.literal("presence.changed"), ts: z14.string() }),
|
|
8491
|
+
z14.object({
|
|
8492
|
+
type: z14.literal("mobile-testing.changed"),
|
|
8493
|
+
workspaceId: z14.string(),
|
|
8494
|
+
ts: z14.string()
|
|
8461
8495
|
})
|
|
8462
8496
|
]);
|
|
8463
8497
|
|
|
8464
8498
|
// ../shared/src/routes/presence.ts
|
|
8465
|
-
import { z as
|
|
8466
|
-
var presenceStatusSchema =
|
|
8467
|
-
var presenceLocationSchema =
|
|
8468
|
-
environmentId:
|
|
8469
|
-
workspaceId:
|
|
8499
|
+
import { z as z15 } from "zod";
|
|
8500
|
+
var presenceStatusSchema = z15.enum(["online", "typing"]);
|
|
8501
|
+
var presenceLocationSchema = z15.object({
|
|
8502
|
+
environmentId: z15.string().optional(),
|
|
8503
|
+
workspaceId: z15.string().optional()
|
|
8470
8504
|
});
|
|
8471
|
-
var presenceEntrySchema =
|
|
8472
|
-
userId:
|
|
8505
|
+
var presenceEntrySchema = z15.object({
|
|
8506
|
+
userId: z15.string(),
|
|
8473
8507
|
status: presenceStatusSchema,
|
|
8474
8508
|
location: presenceLocationSchema,
|
|
8475
|
-
ts:
|
|
8509
|
+
ts: z15.string()
|
|
8476
8510
|
});
|
|
8477
|
-
var updatePresenceRequestSchema =
|
|
8511
|
+
var updatePresenceRequestSchema = z15.object({
|
|
8478
8512
|
status: presenceStatusSchema,
|
|
8479
8513
|
location: presenceLocationSchema.optional()
|
|
8480
8514
|
});
|
|
@@ -8733,6 +8767,8 @@ function normalizeChatTranscriptMetadata(value) {
|
|
|
8733
8767
|
provider,
|
|
8734
8768
|
relayBaseProvider,
|
|
8735
8769
|
credential,
|
|
8770
|
+
credentialSource,
|
|
8771
|
+
model,
|
|
8736
8772
|
title,
|
|
8737
8773
|
displayName,
|
|
8738
8774
|
createdAt,
|
|
@@ -8751,6 +8787,8 @@ function normalizeChatTranscriptMetadata(value) {
|
|
|
8751
8787
|
if (normalizedProvider) metadata.provider = normalizedProvider;
|
|
8752
8788
|
const parsedCredential = agentCredentialSnapshotSchema.safeParse(credential);
|
|
8753
8789
|
if (parsedCredential.success) metadata.credential = parsedCredential.data;
|
|
8790
|
+
if (credentialSource === "stored" || credentialSource === "environment") metadata.credentialSource = credentialSource;
|
|
8791
|
+
if (typeof model === "string") metadata.model = model;
|
|
8754
8792
|
if (typeof title === "string") metadata.title = title;
|
|
8755
8793
|
if (typeof displayName === "string") metadata.displayName = displayName;
|
|
8756
8794
|
if (typeof createdAt === "string") metadata.createdAt = createdAt;
|
|
@@ -8861,20 +8899,7 @@ export {
|
|
|
8861
8899
|
fetchOpenCodeGoCatalog,
|
|
8862
8900
|
DEFAULT_CHAT_TITLES,
|
|
8863
8901
|
isDefaultChat,
|
|
8864
|
-
CLAUDE_FABLE_5_1_MODEL,
|
|
8865
|
-
CLAUDE_FABLE_5_MODEL,
|
|
8866
|
-
CLAUDE_OPUS_5_5_MODEL,
|
|
8867
|
-
CLAUDE_OPUS_5_MODEL,
|
|
8868
|
-
CLAUDE_OPUS_4_8_MODEL,
|
|
8869
|
-
CLAUDE_SONNET_5_5_MODEL,
|
|
8870
|
-
CLAUDE_SONNET_5_MODEL,
|
|
8871
|
-
CLAUDE_HAIKU_4_5_MODEL,
|
|
8872
|
-
CLAUDE_FABLE_5_1_BEDROCK_MODEL,
|
|
8873
|
-
CLAUDE_FABLE_5_BEDROCK_MODEL,
|
|
8874
|
-
CLAUDE_OPUS_5_5_BEDROCK_MODEL,
|
|
8875
|
-
CLAUDE_OPUS_5_BEDROCK_MODEL,
|
|
8876
8902
|
CLAUDE_OPUS_4_8_BEDROCK_MODEL,
|
|
8877
|
-
CLAUDE_SONNET_5_5_BEDROCK_MODEL,
|
|
8878
8903
|
CLAUDE_SONNET_5_BEDROCK_MODEL,
|
|
8879
8904
|
CLAUDE_HAIKU_4_5_BEDROCK_MODEL,
|
|
8880
8905
|
DEFAULT_CLAUDE_MODEL,
|
|
@@ -8885,6 +8910,7 @@ export {
|
|
|
8885
8910
|
DEFAULT_PI_MODEL,
|
|
8886
8911
|
getDefaultAgentModel,
|
|
8887
8912
|
normalizeClaudeModel,
|
|
8913
|
+
toClaudeCodeModel,
|
|
8888
8914
|
getClaudeModelContextWindow,
|
|
8889
8915
|
canUseClaudeFastMode,
|
|
8890
8916
|
AGENT_MODELS,
|
|
@@ -9038,6 +9064,7 @@ export {
|
|
|
9038
9064
|
findGitCommitSignals,
|
|
9039
9065
|
findCommandProtectionGitLookups,
|
|
9040
9066
|
shouldRefreshPullRequests,
|
|
9067
|
+
TERMINAL_RTC_ICE_SERVER,
|
|
9041
9068
|
MAX_REPO_FILE_CONTENT_BYTES,
|
|
9042
9069
|
searchRepoFileIndex,
|
|
9043
9070
|
isExcludedRepoFilePath,
|
|
@@ -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-EUMRQH4J.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4KMPRAV6.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.967";
|
|
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-4KMPRAV6.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JH2UMGOT.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
buildCodexAgentEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DMGFNUGG.js";
|
|
13
13
|
import {
|
|
14
14
|
SUBPROCESS_MAX_BUFFER,
|
|
15
15
|
execFileAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EUMRQH4J.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-4KMPRAV6.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-JUJJHJWJ.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-JUJJHJWJ.js");
|
|
284
284
|
await restartCodexAspHostIfRunning2();
|
|
285
285
|
}
|
|
286
286
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -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-JH2UMGOT.js";
|
|
7
7
|
import {
|
|
8
8
|
SUBPROCESS_MAX_BUFFER,
|
|
9
9
|
execFileAsync
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EUMRQH4J.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-4KMPRAV6.js";
|
|
18
18
|
|
|
19
19
|
// src/services/command-protection-service.ts
|
|
20
20
|
import { readFile, stat } from "fs/promises";
|
|
@@ -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-ZRCBGXER.js";
|
|
7
|
+
import "./chunk-JH2UMGOT.js";
|
|
8
|
+
import "./chunk-EUMRQH4J.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4KMPRAV6.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-DMGFNUGG.js";
|
|
11
|
+
import "./chunk-EUMRQH4J.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
headlessAgentRequestSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4KMPRAV6.js";
|
|
16
16
|
import "./chunk-VEQXQN22.js";
|
|
17
17
|
|
|
18
18
|
// src/headless-agent.ts
|