replicas-engine 0.1.802 → 0.1.803
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-7C5B7ONZ.js → asp-host-XJZVAUPU.js} +4 -4
- package/dist/src/{chunk-PR4NRTOX.js → chunk-2LUYBPAX.js} +2 -2
- package/dist/src/{chunk-RHLF254M.js → chunk-CN7WBEPB.js} +2 -2
- package/dist/src/{chunk-HQK6QIXG.js → chunk-QBLEGBFV.js} +1 -1
- package/dist/src/{chunk-CWWSZUNA.js → chunk-QU3TVTVW.js} +1 -0
- package/dist/src/{chunk-FFQGE3P5.js → chunk-T5ENS6BG.js} +1 -1
- package/dist/src/{chunk-6YBIECLA.js → chunk-W6XLA2JR.js} +4 -4
- 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 +26 -19
- package/dist/src/post-tool-pr-hook.js +2 -2
- 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-W6XLA2JR.js";
|
|
9
|
+
import "./chunk-QBLEGBFV.js";
|
|
10
|
+
import "./chunk-2LUYBPAX.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QU3TVTVW.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
export {
|
|
15
15
|
getCodexAspHost,
|
|
@@ -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-QU3TVTVW.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.803";
|
|
245
245
|
var INITIALIZE_METHOD = "initialize";
|
|
246
246
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
247
247
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -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-QBLEGBFV.js";
|
|
7
7
|
import {
|
|
8
8
|
extractCommandProtectionCommandText,
|
|
9
9
|
findGitCommitSignals,
|
|
10
10
|
findPrMergeSignals
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QU3TVTVW.js";
|
|
12
12
|
|
|
13
13
|
// src/services/command-protection-service.ts
|
|
14
14
|
var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
|
|
@@ -6272,6 +6272,7 @@ var modelsDevCatalogSchema = z6.record(z6.string(), z6.object({
|
|
|
6272
6272
|
name: z6.string(),
|
|
6273
6273
|
description: z6.string().optional(),
|
|
6274
6274
|
status: z6.enum(["alpha", "beta", "deprecated"]).optional(),
|
|
6275
|
+
provider: z6.object({ npm: z6.string().optional() }).optional(),
|
|
6275
6276
|
cost: z6.object({
|
|
6276
6277
|
input: z6.number().finite().nonnegative().optional(),
|
|
6277
6278
|
output: z6.number().finite().nonnegative().optional(),
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
findCodeHostPullRequestUrls,
|
|
6
6
|
mayCreatePullRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QU3TVTVW.js";
|
|
8
8
|
|
|
9
9
|
// src/services/post-tool-pr-notifier.ts
|
|
10
10
|
async function notifyPostToolUse(toolName, toolInput, toolResult) {
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QBLEGBFV.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
buildCodexAgentEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2LUYBPAX.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_AUTH_ENV_KEYS,
|
|
15
15
|
CODEX_AUTH_ENV_KEYS_BY_METHOD,
|
|
16
16
|
codexAuthEnvFromResponse,
|
|
17
17
|
createErrorResult,
|
|
18
18
|
createSuccessResult
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QU3TVTVW.js";
|
|
20
20
|
|
|
21
21
|
// src/managers/codex-token-manager.ts
|
|
22
22
|
import { promises as fs } from "fs";
|
|
@@ -232,7 +232,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
232
232
|
const data = await response.json();
|
|
233
233
|
await this.applyCredentialsResponse(data);
|
|
234
234
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
235
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
235
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XJZVAUPU.js");
|
|
236
236
|
await restartCodexAspHostIfRunning2();
|
|
237
237
|
}
|
|
238
238
|
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-CN7WBEPB.js";
|
|
7
|
+
import "./chunk-QBLEGBFV.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QU3TVTVW.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-CN7WBEPB.js";
|
|
7
7
|
import {
|
|
8
8
|
notifyPostToolUse
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-T5ENS6BG.js";
|
|
10
|
+
import "./chunk-QBLEGBFV.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QU3TVTVW.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-2LUYBPAX.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
getMemoryOutputSafetyViolation,
|
|
15
15
|
headlessAgentRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QU3TVTVW.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-CN7WBEPB.js";
|
|
95
95
|
import {
|
|
96
96
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
97
97
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -124,20 +124,20 @@ import {
|
|
|
124
124
|
recordCredentialFallback,
|
|
125
125
|
recordExhaustedCredential,
|
|
126
126
|
restartCodexAspHost
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-W6XLA2JR.js";
|
|
128
128
|
import {
|
|
129
129
|
ENGINE_ENV,
|
|
130
130
|
IS_WARMING_MODE,
|
|
131
131
|
monolithRequest,
|
|
132
132
|
monolithService,
|
|
133
133
|
setAgentCredentialSnapshot
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-QBLEGBFV.js";
|
|
135
135
|
import {
|
|
136
136
|
AspClient,
|
|
137
137
|
SUBPROCESS_MAX_BUFFER,
|
|
138
138
|
execAsync,
|
|
139
139
|
execFileAsync
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-2LUYBPAX.js";
|
|
141
141
|
import {
|
|
142
142
|
isRecord as isRecord2
|
|
143
143
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -338,7 +338,7 @@ import {
|
|
|
338
338
|
spawnRelaySubagentRequestSchema,
|
|
339
339
|
stripAgentDiagnosticErrors,
|
|
340
340
|
withTimeout
|
|
341
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-QU3TVTVW.js";
|
|
342
342
|
import {
|
|
343
343
|
__commonJS,
|
|
344
344
|
__export,
|
|
@@ -18348,6 +18348,7 @@ async function fetchOpenCodeGoCatalog(fallbackModelIds = [DEFAULT_OPENCODE_GO_MO
|
|
|
18348
18348
|
Object.entries(provider.models).filter(([, definition]) => definition.status !== "deprecated" && definition.status !== "alpha").map(([id, definition]) => [id, {
|
|
18349
18349
|
id: definition.id ?? id,
|
|
18350
18350
|
name: definition.name,
|
|
18351
|
+
api: definition.provider?.npm === "@ai-sdk/anthropic" ? "anthropic-messages" : definition.provider?.npm === "@ai-sdk/openai" ? "openai-responses" : void 0,
|
|
18351
18352
|
...definition.description ? { description: definition.description } : {},
|
|
18352
18353
|
...definition.status ? { status: definition.status } : {}
|
|
18353
18354
|
}])
|
|
@@ -59540,7 +59541,7 @@ function registerOpenRouterModels(modelRegistry, apiKey, modelIds) {
|
|
|
59540
59541
|
]
|
|
59541
59542
|
});
|
|
59542
59543
|
}
|
|
59543
|
-
function
|
|
59544
|
+
function registerPiProvider(modelRegistry, {
|
|
59544
59545
|
providerId,
|
|
59545
59546
|
name,
|
|
59546
59547
|
apiKey,
|
|
@@ -59553,16 +59554,22 @@ function registerOpenAiCompatibleProvider(modelRegistry, {
|
|
|
59553
59554
|
apiKey,
|
|
59554
59555
|
baseUrl,
|
|
59555
59556
|
authHeader: true,
|
|
59556
|
-
models: models.map((model) =>
|
|
59557
|
-
|
|
59558
|
-
|
|
59559
|
-
|
|
59560
|
-
|
|
59561
|
-
|
|
59562
|
-
|
|
59563
|
-
|
|
59564
|
-
|
|
59565
|
-
|
|
59557
|
+
models: models.map((model) => {
|
|
59558
|
+
const builtin = modelRegistry.find(providerId, model.id);
|
|
59559
|
+
const api = model.api ?? builtin?.api ?? "openai-completions";
|
|
59560
|
+
return {
|
|
59561
|
+
reasoning: true,
|
|
59562
|
+
input: ["text"],
|
|
59563
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
59564
|
+
contextWindow: 131072,
|
|
59565
|
+
maxTokens: 65536,
|
|
59566
|
+
...builtin,
|
|
59567
|
+
...model,
|
|
59568
|
+
api,
|
|
59569
|
+
baseUrl: api === "anthropic-messages" ? baseUrl.replace(/\/v1\/?$/, "") : baseUrl,
|
|
59570
|
+
compat: builtin?.api === api ? builtin.compat : void 0
|
|
59571
|
+
};
|
|
59572
|
+
})
|
|
59566
59573
|
});
|
|
59567
59574
|
}
|
|
59568
59575
|
function eventPayload(event) {
|
|
@@ -59703,15 +59710,15 @@ var PiManager = class extends CodingAgentManager {
|
|
|
59703
59710
|
const catalog = await fetchOpenCodeGoCatalog([request.model ?? DEFAULT_OPENCODE_GO_MODEL]);
|
|
59704
59711
|
const models = Object.entries(catalog.models);
|
|
59705
59712
|
defaultModel = catalog.models[DEFAULT_OPENCODE_GO_MODEL] ? DEFAULT_OPENCODE_GO_MODEL : models[0]?.[0] ?? DEFAULT_OPENCODE_GO_MODEL;
|
|
59706
|
-
|
|
59713
|
+
registerPiProvider(modelRegistry, {
|
|
59707
59714
|
providerId: OPENCODE_GO_PROVIDER,
|
|
59708
59715
|
name: "OpenCode Go",
|
|
59709
59716
|
apiKey: credentials.apiKey,
|
|
59710
59717
|
baseUrl: OPENCODE_GO_BASE_URL,
|
|
59711
|
-
models: models.map(([id, model2]) => ({ id, name: model2.name }))
|
|
59718
|
+
models: models.map(([id, model2]) => ({ id, name: model2.name, api: model2.api }))
|
|
59712
59719
|
});
|
|
59713
59720
|
} else if (this.providerId === ASTER_PROVIDER) {
|
|
59714
|
-
|
|
59721
|
+
registerPiProvider(modelRegistry, {
|
|
59715
59722
|
providerId: ASTER_PROVIDER,
|
|
59716
59723
|
name: "Aster",
|
|
59717
59724
|
apiKey: credentials.apiKey,
|
|
@@ -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-T5ENS6BG.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QU3TVTVW.js";
|
|
11
11
|
import "./chunk-VEQXQN22.js";
|
|
12
12
|
|
|
13
13
|
// src/post-tool-pr-hook.ts
|
package/dist/src/relay-mcp.js
CHANGED