replicas-engine 0.1.1743 → 0.1.1744
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-P7H7LYAS.js → asp-host-YMID4CPS.js} +6 -6
- package/dist/src/{chunk-XIME23ZL.js → chunk-4IIVBU3A.js} +1 -1
- package/dist/src/{chunk-JL77HHDN.js → chunk-5J2NZBID.js} +1 -1
- package/dist/src/{chunk-KTEORSPZ.js → chunk-64AZXIEN.js} +8 -8
- package/dist/src/{chunk-VOHLLARO.js → chunk-F2JXDGU6.js} +2 -2
- package/dist/src/{chunk-A2KZ52UX.js → chunk-K7GTJLEX.js} +2 -2
- package/dist/src/{chunk-V7O6ISSM.js → chunk-L5KKUDS5.js} +2 -2
- package/dist/src/{chunk-DSEZKTMG.js → chunk-RHJMSXJA.js} +3 -3
- package/dist/src/{chunk-E3G7GOQ5.js → chunk-SU257V4T.js} +1 -1
- package/dist/src/{chunk-F6BKAWQU.js → chunk-Y6WKTOWP.js} +1 -1
- package/dist/src/{chunk-X5Q6EVKE.js → chunk-YQ6SVGXG.js} +29 -15
- package/dist/src/codemode-mcp.js +3 -3
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +13 -12
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
listCodexModelsForDetails,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-64AZXIEN.js";
|
|
12
|
+
import "./chunk-Y6WKTOWP.js";
|
|
13
|
+
import "./chunk-F2JXDGU6.js";
|
|
14
|
+
import "./chunk-RHJMSXJA.js";
|
|
15
|
+
import "./chunk-4IIVBU3A.js";
|
|
16
16
|
import "./chunk-UZSNFLDQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YQ6SVGXG.js";
|
|
18
18
|
import "./chunk-VEQXQN22.js";
|
|
19
19
|
export {
|
|
20
20
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -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-YQ6SVGXG.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
subagentCodexMcpConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y6WKTOWP.js";
|
|
7
7
|
import {
|
|
8
8
|
ENGINE_ENV,
|
|
9
9
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
resolveDiffBase,
|
|
16
16
|
runGitCommand,
|
|
17
17
|
setAgentCredentialSnapshot
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F2JXDGU6.js";
|
|
19
19
|
import {
|
|
20
20
|
AppServerProcess,
|
|
21
21
|
buildCodexAgentEnv
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RHJMSXJA.js";
|
|
23
23
|
import {
|
|
24
24
|
SUBPROCESS_MAX_BUFFER,
|
|
25
25
|
execFileAsync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4IIVBU3A.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
shrunkImageSize,
|
|
69
69
|
splitManagerInstructions,
|
|
70
70
|
withTimeout
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
72
72
|
|
|
73
73
|
// src/managers/codex-token-manager.ts
|
|
74
74
|
import { promises as fs } from "fs";
|
|
@@ -340,7 +340,7 @@ async function withdrawAgentLogin(provider, { envKeys, files }) {
|
|
|
340
340
|
{ ...persisted.values, REPLICAS_AGENT_CREDENTIALS: JSON.stringify(remaining) },
|
|
341
341
|
/* @__PURE__ */ new Set([...persisted.unsetKeys, ...envKeys])
|
|
342
342
|
));
|
|
343
|
-
if (provider === "codex") await (await import("./asp-host-
|
|
343
|
+
if (provider === "codex") await (await import("./asp-host-YMID4CPS.js")).restartCodexAspHostIfRunning();
|
|
344
344
|
return true;
|
|
345
345
|
}
|
|
346
346
|
|
|
@@ -498,7 +498,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
498
498
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
499
499
|
await this.applyCredentialsResponse(data);
|
|
500
500
|
setAgentCredentialSnapshot("codex", data);
|
|
501
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
501
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-YMID4CPS.js");
|
|
502
502
|
await restartCodexAspHostIfRunning2();
|
|
503
503
|
});
|
|
504
504
|
await this.start(true);
|
|
@@ -524,7 +524,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
524
524
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
525
525
|
await this.applyCredentialsResponse(data);
|
|
526
526
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
527
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
527
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-YMID4CPS.js");
|
|
528
528
|
await restartCodexAspHostIfRunning2();
|
|
529
529
|
}
|
|
530
530
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -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-4IIVBU3A.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
provisionedDeviceSchema,
|
|
22
22
|
readReplicasRuntimeEnv,
|
|
23
23
|
serializePosixEnvFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F2JXDGU6.js";
|
|
9
9
|
import {
|
|
10
10
|
COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES,
|
|
11
11
|
COMMAND_PROTECTION_REPO_GIT_ARGS,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parseCommandProtectionRequest,
|
|
19
19
|
toCommandProtectionRepoState,
|
|
20
20
|
withRetry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
22
22
|
|
|
23
23
|
// src/services/command-protection-service.ts
|
|
24
24
|
import { readFile, stat } from "fs/promises";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-XCFPXSY4.js";
|
|
7
7
|
import {
|
|
8
8
|
AspClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RHJMSXJA.js";
|
|
10
10
|
import {
|
|
11
11
|
ASTER_BASE_URL,
|
|
12
12
|
ASTER_PROVIDER,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isRecord,
|
|
19
19
|
readOllamaAuthEnv,
|
|
20
20
|
readOpenAICompatibleAuthEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
22
22
|
|
|
23
23
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
24
24
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -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-4IIVBU3A.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -244,7 +244,7 @@ function getCodexModelProvider(method) {
|
|
|
244
244
|
if (method === "foundry") return "azure";
|
|
245
245
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
246
246
|
}
|
|
247
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
247
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1744";
|
|
248
248
|
var INITIALIZE_METHOD = "initialize";
|
|
249
249
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
250
250
|
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
|
SUBAGENT_MCP_TOOL_NAMES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
7
7
|
|
|
8
8
|
// src/managers/subagent-mcp-config.ts
|
|
9
9
|
import { existsSync } from "fs";
|
|
@@ -11552,7 +11552,7 @@ var respondToolInputRequestSchema = z9.object({
|
|
|
11552
11552
|
source: z9.enum(CLIENT_MESSAGE_SOURCES).optional()
|
|
11553
11553
|
});
|
|
11554
11554
|
function isLatestChatHistoryPage(params) {
|
|
11555
|
-
return params.beforeCursor === void 0 && params.beforeEvent === void 0 && params.beforeTurn === void 0;
|
|
11555
|
+
return params.beforeCursor === void 0 && params.beforeEvent === void 0 && params.beforeTurn === void 0 && params.subagentsCursor === void 0;
|
|
11556
11556
|
}
|
|
11557
11557
|
function getChatHistoryPageSenders(senders, params) {
|
|
11558
11558
|
return isLatestChatHistoryPage(params) ? senders : senders?.filter((sender) => sender.messageId);
|
|
@@ -11587,7 +11587,8 @@ function chatHistoryPageParamsFromQuery(rawQuery) {
|
|
|
11587
11587
|
afterCursor: query.afterCursor || void 0,
|
|
11588
11588
|
userTurns: parse(query.userTurns) || void 0,
|
|
11589
11589
|
compact: query.compact === "1" || void 0,
|
|
11590
|
-
subagents: query.subagents === "1" || void 0
|
|
11590
|
+
subagents: query.subagents === "1" || void 0,
|
|
11591
|
+
subagentsCursor: query.subagentsCursor || void 0
|
|
11591
11592
|
};
|
|
11592
11593
|
}
|
|
11593
11594
|
function getChatHistoryPageWindow(totalItems, limit, before) {
|
|
@@ -21509,24 +21510,29 @@ async function readJsonlAppended(args) {
|
|
|
21509
21510
|
});
|
|
21510
21511
|
return { items, after: String(from + end) };
|
|
21511
21512
|
}
|
|
21512
|
-
var FORWARD_RANGE_BYTES =
|
|
21513
|
+
var FORWARD_RANGE_BYTES = 4 * 1024 * 1024;
|
|
21513
21514
|
async function readJsonlForward(args) {
|
|
21515
|
+
if (!Number.isSafeInteger(args.from) || args.from < 0 || args.from > args.size) return null;
|
|
21514
21516
|
const items = [];
|
|
21517
|
+
let offset = Math.max(0, args.from - 1);
|
|
21518
|
+
let lineStart = args.from - offset;
|
|
21515
21519
|
let carry = new Uint8Array();
|
|
21516
|
-
let
|
|
21517
|
-
for (let start = 0; start < args.size; start += FORWARD_RANGE_BYTES) {
|
|
21520
|
+
for (let start = offset; start < args.size; start += FORWARD_RANGE_BYTES) {
|
|
21518
21521
|
const chunk = await readExactRange(args.readRange, start, Math.min(args.size, start + FORWARD_RANGE_BYTES), "Incomplete JSONL read");
|
|
21519
21522
|
const bytes = new Uint8Array(carry.length + chunk.length);
|
|
21520
21523
|
bytes.set(carry);
|
|
21521
21524
|
bytes.set(chunk, carry.length);
|
|
21522
|
-
|
|
21525
|
+
if (lineStart === 1 && bytes[0] !== 10) return null;
|
|
21526
|
+
const end = forEachJsonlRecord(bytes, lineStart, offset, (value, record) => {
|
|
21523
21527
|
const item = args.parse(value, record);
|
|
21524
21528
|
if (item !== void 0) items.push(item);
|
|
21525
21529
|
});
|
|
21530
|
+
if (end > lineStart && start + FORWARD_RANGE_BYTES < args.size) return { items, after: offset + end };
|
|
21526
21531
|
carry = bytes.subarray(end);
|
|
21527
|
-
|
|
21532
|
+
offset += end;
|
|
21533
|
+
lineStart = 0;
|
|
21528
21534
|
}
|
|
21529
|
-
return items;
|
|
21535
|
+
return { items, after: null };
|
|
21530
21536
|
}
|
|
21531
21537
|
var MAX_RECORD_BYTES = 64 * 1024 * 1024;
|
|
21532
21538
|
async function readJsonlRecord(args) {
|
|
@@ -21702,8 +21708,7 @@ function parseCodexHistoryEvents(content, options) {
|
|
|
21702
21708
|
for (const event of parseAgentEventJsonl(content, options)) folder.push(event);
|
|
21703
21709
|
return folder.finish();
|
|
21704
21710
|
}
|
|
21705
|
-
function createSubagentHistoryFilter() {
|
|
21706
|
-
const spawnIds = /* @__PURE__ */ new Set();
|
|
21711
|
+
function createSubagentHistoryFilter(spawnIds) {
|
|
21707
21712
|
return (event) => {
|
|
21708
21713
|
const { type, payload } = event;
|
|
21709
21714
|
if (typeof payload.parent_tool_use_id === "string" || getUserMessageId(event) !== null || getReplacedMessageId(event) !== null) return true;
|
|
@@ -21715,13 +21720,20 @@ function createSubagentHistoryFilter() {
|
|
|
21715
21720
|
for (const block of spawns) if (block.id) spawnIds.add(block.id);
|
|
21716
21721
|
return spawns.length > 0;
|
|
21717
21722
|
}
|
|
21718
|
-
|
|
21723
|
+
if (type !== "claude-user") return false;
|
|
21724
|
+
const results = blocks.filter((block) => block.type === "tool_result" && spawnIds.has(block.tool_use_id ?? ""));
|
|
21725
|
+
for (const block of results) if (block.tool_use_id) spawnIds.delete(block.tool_use_id);
|
|
21726
|
+
return results.length > 0;
|
|
21719
21727
|
};
|
|
21720
21728
|
}
|
|
21721
|
-
function readChatSubagentHistory({ size, compact, readRange }) {
|
|
21722
|
-
const
|
|
21723
|
-
return
|
|
21729
|
+
async function readChatSubagentHistory({ size, compact, cursor, readRange }) {
|
|
21730
|
+
const parsed = cursor === void 0 ? { offset: 0, spawns: [] } : safeJsonParse(cursor, null);
|
|
21731
|
+
if (!isRecord(parsed) || typeof parsed.offset !== "number" || !Array.isArray(parsed.spawns) || !parsed.spawns.every((id) => typeof id === "string")) return null;
|
|
21732
|
+
const spawnIds = new Set(parsed.spawns);
|
|
21733
|
+
const keep = createSubagentHistoryFilter(spawnIds);
|
|
21734
|
+
const page = await readJsonlForward({
|
|
21724
21735
|
size,
|
|
21736
|
+
from: parsed.offset,
|
|
21725
21737
|
readRange,
|
|
21726
21738
|
parse: (value, record) => {
|
|
21727
21739
|
const event = toChatHistoryPageEvent(value);
|
|
@@ -21729,6 +21741,8 @@ function readChatSubagentHistory({ size, compact, readRange }) {
|
|
|
21729
21741
|
return compact ? compactChatHistoryEvent(event, record) : event;
|
|
21730
21742
|
}
|
|
21731
21743
|
});
|
|
21744
|
+
if (!page) return null;
|
|
21745
|
+
return { events: page.items, cursor: page.after === null ? null : JSON.stringify({ offset: page.after, spawns: [...spawnIds] }) };
|
|
21732
21746
|
}
|
|
21733
21747
|
|
|
21734
21748
|
// ../shared/src/memory-safety.ts
|
|
@@ -22004,7 +22018,7 @@ async function withRetry(label, fn, options) {
|
|
|
22004
22018
|
}
|
|
22005
22019
|
|
|
22006
22020
|
// ../shared/src/tensorlake.ts
|
|
22007
|
-
var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-
|
|
22021
|
+
var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-22-v8573";
|
|
22008
22022
|
var TENSORLAKE_DISK_MB = 100 * 1024;
|
|
22009
22023
|
|
|
22010
22024
|
// ../shared/src/egress.ts
|
package/dist/src/codemode-mcp.js
CHANGED
|
@@ -4,15 +4,15 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
getManagedPiMcpServers,
|
|
6
6
|
managedMcpServerProcess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5J2NZBID.js";
|
|
8
8
|
import "./chunk-XCFPXSY4.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-Y6WKTOWP.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord
|
|
12
12
|
} from "./chunk-UZSNFLDQ.js";
|
|
13
13
|
import {
|
|
14
14
|
rankToolsByQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
16
16
|
import "./chunk-VEQXQN22.js";
|
|
17
17
|
|
|
18
18
|
// src/codemode-mcp.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-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-K7GTJLEX.js";
|
|
7
|
+
import "./chunk-F2JXDGU6.js";
|
|
8
|
+
import "./chunk-4IIVBU3A.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-YQ6SVGXG.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
spawnMuseMsp,
|
|
19
19
|
startGeminiSession,
|
|
20
20
|
startMuseSession
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L5KKUDS5.js";
|
|
22
22
|
import "./chunk-XCFPXSY4.js";
|
|
23
23
|
import {
|
|
24
24
|
AppServerProcess,
|
|
25
25
|
buildCodexAgentEnv
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-RHJMSXJA.js";
|
|
27
|
+
import "./chunk-4IIVBU3A.js";
|
|
28
28
|
import {
|
|
29
29
|
AGENT,
|
|
30
30
|
OPENCODE_GO_PROVIDER,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
headlessAgentUsagePath,
|
|
35
35
|
isRecord,
|
|
36
36
|
withTimeout
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
38
38
|
import "./chunk-VEQXQN22.js";
|
|
39
39
|
|
|
40
40
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -90,12 +90,12 @@ import {
|
|
|
90
90
|
import {
|
|
91
91
|
getManagedPiMcpServers,
|
|
92
92
|
managedMcpServerProcess
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-5J2NZBID.js";
|
|
94
94
|
import {
|
|
95
95
|
evaluateCommandProtection,
|
|
96
96
|
extractToolCommand,
|
|
97
97
|
reportCommandProtectionBlock
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-K7GTJLEX.js";
|
|
99
99
|
import {
|
|
100
100
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
101
101
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
startMuseSession,
|
|
136
136
|
thinkingVariant,
|
|
137
137
|
uuidV7
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-L5KKUDS5.js";
|
|
139
139
|
import {
|
|
140
140
|
GEMINI_AUTH_PATH,
|
|
141
141
|
GEMINI_CLI_PATH,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
} from "./chunk-XCFPXSY4.js";
|
|
146
146
|
import {
|
|
147
147
|
publishedPullRequestUrls
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-SU257V4T.js";
|
|
149
149
|
import {
|
|
150
150
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
151
151
|
AsyncLock,
|
|
@@ -225,12 +225,12 @@ import {
|
|
|
225
225
|
upsertCredentialFileLines,
|
|
226
226
|
withdrawAgentLogin,
|
|
227
227
|
writeSecureCredentialFile
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-64AZXIEN.js";
|
|
229
229
|
import {
|
|
230
230
|
SUBAGENT_MCP_TOOL_TIMEOUT_MS,
|
|
231
231
|
engineScriptProcess,
|
|
232
232
|
subagentMcpProcessConfig
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-Y6WKTOWP.js";
|
|
234
234
|
import {
|
|
235
235
|
ENGINE_ENV,
|
|
236
236
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -241,18 +241,18 @@ import {
|
|
|
241
241
|
resolveDiffBase,
|
|
242
242
|
setAgentCredentialSnapshot,
|
|
243
243
|
setLinearSessionId
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-F2JXDGU6.js";
|
|
245
245
|
import {
|
|
246
246
|
AspRequestTimeoutError,
|
|
247
247
|
AspResponseError,
|
|
248
248
|
buildCodexAgentEnv,
|
|
249
249
|
getCodexModelProvider
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-RHJMSXJA.js";
|
|
251
251
|
import {
|
|
252
252
|
SUBPROCESS_MAX_BUFFER,
|
|
253
253
|
execAsync,
|
|
254
254
|
execFileAsync
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-4IIVBU3A.js";
|
|
256
256
|
import {
|
|
257
257
|
isRecord
|
|
258
258
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -556,7 +556,7 @@ import {
|
|
|
556
556
|
workspaceTokenRequestSchema,
|
|
557
557
|
workspaceTokenResponseSchema,
|
|
558
558
|
wrapInTag
|
|
559
|
-
} from "./chunk-
|
|
559
|
+
} from "./chunk-YQ6SVGXG.js";
|
|
560
560
|
import {
|
|
561
561
|
__commonJS,
|
|
562
562
|
__export,
|
|
@@ -17003,8 +17003,9 @@ var CodexHistoryFile = class {
|
|
|
17003
17003
|
async loadEventsPage(page2) {
|
|
17004
17004
|
if (this.writtenEnd > this.flushedEnd) await this.flush();
|
|
17005
17005
|
if (page2.subagents) {
|
|
17006
|
-
const
|
|
17007
|
-
|
|
17006
|
+
const read = await this.read((size, readRange) => readChatSubagentHistory({ size, compact: page2.compact, cursor: page2.subagentsCursor, readRange }));
|
|
17007
|
+
if (read === null && page2.subagentsCursor !== void 0) throw new RangeError("Invalid chat history cursor");
|
|
17008
|
+
return { events: read?.events ?? [], beforeCursor: null, ...read?.cursor ? { subagentsCursor: read.cursor } : {} };
|
|
17008
17009
|
}
|
|
17009
17010
|
if (page2.limit === void 0) return { events: await this.loadAll() };
|
|
17010
17011
|
const cursor = parseChatHistoryCursor(page2.beforeCursor);
|
|
@@ -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-SU257V4T.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-YQ6SVGXG.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