replicas-engine 0.1.852 → 0.1.853
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-BTHMIOWF.js → asp-host-YGGXWXFL.js} +4 -4
- package/dist/src/{chunk-XZ56DHQ7.js → chunk-3KOIRE7F.js} +1 -1
- package/dist/src/{chunk-ICQTYE55.js → chunk-AQ2GIHVZ.js} +65 -29
- package/dist/src/{chunk-HPMBSWPV.js → chunk-HR5EZRDO.js} +5 -5
- package/dist/src/{chunk-KCTWAJQL.js → chunk-TEPS7E4F.js} +1 -1
- package/dist/src/{chunk-WABXMCX5.js → chunk-YUJLKOSC.js} +2 -2
- package/dist/src/{chunk-FCGE52IS.js → chunk-ZK7QXKBP.js} +2 -2
- 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 +5 -5
- 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-HR5EZRDO.js";
|
|
9
|
+
import "./chunk-TEPS7E4F.js";
|
|
10
|
+
import "./chunk-YUJLKOSC.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-AQ2GIHVZ.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
export {
|
|
15
15
|
getCodexAspHost,
|
|
@@ -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-AQ2GIHVZ.js";
|
|
7
7
|
|
|
8
8
|
// src/services/post-tool-pr-notifier.ts
|
|
9
9
|
async function notifyPostToolUse(toolName, toolInput) {
|
|
@@ -7179,6 +7179,42 @@ function shouldRefreshPullRequests(toolName, toolInput) {
|
|
|
7179
7179
|
].some((pattern) => pattern.test(command)) || /\b(?:gh\s+api|glab\s+api|curl)\b/.test(command) && /(?:-x|--method|--request)[\s=]+['"]?post\b/.test(command) && /\/(?:pulls|merge_requests)\b/.test(command);
|
|
7180
7180
|
}
|
|
7181
7181
|
|
|
7182
|
+
// ../shared/src/routes/linear.ts
|
|
7183
|
+
import { z as z9 } from "zod";
|
|
7184
|
+
var linearSessionMetadataSchema = z9.object({
|
|
7185
|
+
via_mothership: z9.boolean().optional(),
|
|
7186
|
+
issue_id: z9.string(),
|
|
7187
|
+
issue_identifier: z9.string(),
|
|
7188
|
+
issue_title: z9.string(),
|
|
7189
|
+
issue_description: z9.string(),
|
|
7190
|
+
issue_url: z9.string(),
|
|
7191
|
+
comment_id: z9.string(),
|
|
7192
|
+
comment_body: z9.string(),
|
|
7193
|
+
triggered_by_id: z9.string().optional(),
|
|
7194
|
+
triggered_by_name: z9.string().optional(),
|
|
7195
|
+
triggered_by_email: z9.string().optional(),
|
|
7196
|
+
linear_workspace_id: z9.string().optional(),
|
|
7197
|
+
creator_id: z9.string().optional(),
|
|
7198
|
+
creator_name: z9.string().optional(),
|
|
7199
|
+
creator_email: z9.string().optional(),
|
|
7200
|
+
assignee_id: z9.string().optional(),
|
|
7201
|
+
assignee_name: z9.string().optional(),
|
|
7202
|
+
assignee_email: z9.string().optional(),
|
|
7203
|
+
issue_state: z9.string().optional(),
|
|
7204
|
+
parent_issue: z9.object({
|
|
7205
|
+
id: z9.string(),
|
|
7206
|
+
identifier: z9.string(),
|
|
7207
|
+
title: z9.string(),
|
|
7208
|
+
description: z9.string().nullable()
|
|
7209
|
+
}).optional(),
|
|
7210
|
+
workspace: z9.object({
|
|
7211
|
+
id: z9.string(),
|
|
7212
|
+
coding_agent: z9.custom((value) => typeof value === "string" && isValidAgentProvider(value)),
|
|
7213
|
+
task_description: z9.string(),
|
|
7214
|
+
created_at: z9.string()
|
|
7215
|
+
}).optional()
|
|
7216
|
+
});
|
|
7217
|
+
|
|
7182
7218
|
// ../shared/src/routes/plugin-catalog.ts
|
|
7183
7219
|
var EXPLICIT_PLUGIN_CATALOG = [
|
|
7184
7220
|
{
|
|
@@ -7500,46 +7536,46 @@ var DEFAULT_WORKSPACE_FILTERS = {
|
|
|
7500
7536
|
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
7501
7537
|
|
|
7502
7538
|
// ../shared/src/routes/workspace-events.ts
|
|
7503
|
-
import { z as
|
|
7504
|
-
var workspaceChangedEventSchema =
|
|
7505
|
-
|
|
7506
|
-
type:
|
|
7507
|
-
workspaceId:
|
|
7508
|
-
completion:
|
|
7509
|
-
workspaceName:
|
|
7510
|
-
completedAt:
|
|
7511
|
-
processing:
|
|
7539
|
+
import { z as z10 } from "zod";
|
|
7540
|
+
var workspaceChangedEventSchema = z10.discriminatedUnion("type", [
|
|
7541
|
+
z10.object({
|
|
7542
|
+
type: z10.literal("workspace.changed"),
|
|
7543
|
+
workspaceId: z10.string(),
|
|
7544
|
+
completion: z10.object({
|
|
7545
|
+
workspaceName: z10.string(),
|
|
7546
|
+
completedAt: z10.string(),
|
|
7547
|
+
processing: z10.boolean().optional()
|
|
7512
7548
|
}).optional(),
|
|
7513
|
-
ts:
|
|
7549
|
+
ts: z10.string()
|
|
7514
7550
|
}),
|
|
7515
|
-
|
|
7516
|
-
type:
|
|
7517
|
-
workspaceId:
|
|
7518
|
-
chatId:
|
|
7519
|
-
ts:
|
|
7551
|
+
z10.object({
|
|
7552
|
+
type: z10.literal("workspace.chat.changed"),
|
|
7553
|
+
workspaceId: z10.string(),
|
|
7554
|
+
chatId: z10.string(),
|
|
7555
|
+
ts: z10.string()
|
|
7520
7556
|
}),
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
type:
|
|
7524
|
-
workspaceId:
|
|
7525
|
-
ts:
|
|
7557
|
+
z10.object({ type: z10.literal("presence.changed"), ts: z10.string() }),
|
|
7558
|
+
z10.object({
|
|
7559
|
+
type: z10.literal("mobile-testing.changed"),
|
|
7560
|
+
workspaceId: z10.string(),
|
|
7561
|
+
ts: z10.string()
|
|
7526
7562
|
})
|
|
7527
7563
|
]);
|
|
7528
7564
|
|
|
7529
7565
|
// ../shared/src/routes/presence.ts
|
|
7530
|
-
import { z as
|
|
7531
|
-
var presenceStatusSchema =
|
|
7532
|
-
var presenceLocationSchema =
|
|
7533
|
-
environmentId:
|
|
7534
|
-
workspaceId:
|
|
7566
|
+
import { z as z11 } from "zod";
|
|
7567
|
+
var presenceStatusSchema = z11.enum(["online", "typing"]);
|
|
7568
|
+
var presenceLocationSchema = z11.object({
|
|
7569
|
+
environmentId: z11.string().optional(),
|
|
7570
|
+
workspaceId: z11.string().optional()
|
|
7535
7571
|
});
|
|
7536
|
-
var presenceEntrySchema =
|
|
7537
|
-
userId:
|
|
7572
|
+
var presenceEntrySchema = z11.object({
|
|
7573
|
+
userId: z11.string(),
|
|
7538
7574
|
status: presenceStatusSchema,
|
|
7539
7575
|
location: presenceLocationSchema,
|
|
7540
|
-
ts:
|
|
7576
|
+
ts: z11.string()
|
|
7541
7577
|
});
|
|
7542
|
-
var updatePresenceRequestSchema =
|
|
7578
|
+
var updatePresenceRequestSchema = z11.object({
|
|
7543
7579
|
status: presenceStatusSchema,
|
|
7544
7580
|
location: presenceLocationSchema.optional()
|
|
7545
7581
|
});
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TEPS7E4F.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
SUBPROCESS_MAX_BUFFER,
|
|
12
12
|
buildCodexAgentEnv,
|
|
13
13
|
execFileAsync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YUJLKOSC.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-AQ2GIHVZ.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-YGGXWXFL.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-YGGXWXFL.js");
|
|
268
268
|
await restartCodexAspHostIfRunning2();
|
|
269
269
|
}
|
|
270
270
|
if (data.scope) {
|
|
@@ -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-AQ2GIHVZ.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.853";
|
|
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-TEPS7E4F.js";
|
|
7
7
|
import {
|
|
8
8
|
extractCommandProtectionCommandText,
|
|
9
9
|
findGitCommitSignals,
|
|
10
10
|
findPrMergeSignals
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AQ2GIHVZ.js";
|
|
12
12
|
|
|
13
13
|
// src/services/command-protection-service.ts
|
|
14
14
|
var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
|
|
@@ -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-ZK7QXKBP.js";
|
|
7
|
+
import "./chunk-TEPS7E4F.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-AQ2GIHVZ.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-ZK7QXKBP.js";
|
|
7
7
|
import {
|
|
8
8
|
notifyPostToolUse
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-3KOIRE7F.js";
|
|
10
|
+
import "./chunk-TEPS7E4F.js";
|
|
11
11
|
import "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-AQ2GIHVZ.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-YUJLKOSC.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
getMemoryOutputSafetyViolation,
|
|
15
15
|
headlessAgentRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AQ2GIHVZ.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-ZK7QXKBP.js";
|
|
95
95
|
import {
|
|
96
96
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
97
97
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -132,20 +132,20 @@ import {
|
|
|
132
132
|
recordCredentialFallback,
|
|
133
133
|
recordExhaustedCredential,
|
|
134
134
|
restartCodexAspHost
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-HR5EZRDO.js";
|
|
136
136
|
import {
|
|
137
137
|
ENGINE_ENV,
|
|
138
138
|
IS_WARMING_MODE,
|
|
139
139
|
monolithRequest,
|
|
140
140
|
monolithService,
|
|
141
141
|
setAgentCredentialSnapshot
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-TEPS7E4F.js";
|
|
143
143
|
import {
|
|
144
144
|
AspClient,
|
|
145
145
|
SUBPROCESS_MAX_BUFFER,
|
|
146
146
|
execAsync,
|
|
147
147
|
execFileAsync
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-YUJLKOSC.js";
|
|
149
149
|
import {
|
|
150
150
|
isRecord as isRecord2
|
|
151
151
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -359,7 +359,7 @@ import {
|
|
|
359
359
|
waitRelaySubagentRequestSchema,
|
|
360
360
|
withTimeout,
|
|
361
361
|
workspaceCredentialProviderSchema
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-AQ2GIHVZ.js";
|
|
363
363
|
import {
|
|
364
364
|
__commonJS,
|
|
365
365
|
__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-3KOIRE7F.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-AQ2GIHVZ.js";
|
|
11
11
|
import "./chunk-VEQXQN22.js";
|
|
12
12
|
|
|
13
13
|
// src/post-tool-pr-hook.ts
|
package/dist/src/relay-mcp.js
CHANGED