@moxt-ai/cli 0.15.3 → 0.15.4
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/index.cjs +553 -494
- package/dist/index.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -36367,8 +36367,8 @@ var require_formdata_parser = __commonJS({
|
|
|
36367
36367
|
return false;
|
|
36368
36368
|
}
|
|
36369
36369
|
for (let i3 = 0; i3 < length; ++i3) {
|
|
36370
|
-
const
|
|
36371
|
-
if (!(
|
|
36370
|
+
const cp3 = boundary.charCodeAt(i3);
|
|
36371
|
+
if (!(cp3 >= 48 && cp3 <= 57 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 === 39 || cp3 === 45 || cp3 === 95)) {
|
|
36372
36372
|
return false;
|
|
36373
36373
|
}
|
|
36374
36374
|
}
|
|
@@ -45517,7 +45517,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
45517
45517
|
"node_modules/.pnpm/undici@8.10.2/node_modules/undici/lib/mock/snapshot-recorder.js"(exports2, module2) {
|
|
45518
45518
|
"use strict";
|
|
45519
45519
|
init_cjs_shims();
|
|
45520
|
-
var { writeFile:
|
|
45520
|
+
var { writeFile: writeFile6, readFile: readFile11, mkdir: mkdir10 } = require("node:fs/promises");
|
|
45521
45521
|
var { dirname: dirname16, resolve: resolve27 } = require("node:path");
|
|
45522
45522
|
var { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = require("node:timers");
|
|
45523
45523
|
var { InvalidArgumentError: InvalidArgumentError2, UndiciError } = require_errors();
|
|
@@ -45734,7 +45734,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
45734
45734
|
throw new InvalidArgumentError2("Snapshot path is required");
|
|
45735
45735
|
}
|
|
45736
45736
|
try {
|
|
45737
|
-
const data = await
|
|
45737
|
+
const data = await readFile11(resolve27(path10), "utf8");
|
|
45738
45738
|
const parsed = JSON.parse(data);
|
|
45739
45739
|
if (Array.isArray(parsed)) {
|
|
45740
45740
|
this.#snapshots.clear();
|
|
@@ -45769,7 +45769,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
45769
45769
|
hash: hash3,
|
|
45770
45770
|
snapshot
|
|
45771
45771
|
}));
|
|
45772
|
-
await
|
|
45772
|
+
await writeFile6(resolvedPath, JSON.stringify(data, null, 2), { flush: true });
|
|
45773
45773
|
}
|
|
45774
45774
|
/**
|
|
45775
45775
|
* Clears all recorded snapshots
|
|
@@ -57913,7 +57913,7 @@ ${captureLines}` : capture.stack;
|
|
|
57913
57913
|
}
|
|
57914
57914
|
});
|
|
57915
57915
|
|
|
57916
|
-
// node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
57916
|
+
// node_modules/.pnpm/@moxt-ai+mobius@0.0.234_@anthropic-ai+sdk@0.133.0_zod@4.6.5__@modelcontextprotocol+sdk@1.32.1_zod@4.6.5_/node_modules/@moxt-ai/mobius/dist/index.js
|
|
57917
57917
|
var dist_exports = {};
|
|
57918
57918
|
__export(dist_exports, {
|
|
57919
57919
|
AcpExecutionError: () => AcpExecutionError,
|
|
@@ -68106,6 +68106,17 @@ async function waitForAcpProcessCapacity(completion, signal) {
|
|
|
68106
68106
|
signal.removeEventListener("abort", cancel);
|
|
68107
68107
|
}
|
|
68108
68108
|
}
|
|
68109
|
+
function resolveMaxAcpProcesses(environment) {
|
|
68110
|
+
const configured = environment[MAX_ACP_PROCESSES_ENVIRONMENT_KEY];
|
|
68111
|
+
if (configured === void 0 || configured === "") {
|
|
68112
|
+
return DEFAULT_MAX_ACP_PROCESSES;
|
|
68113
|
+
}
|
|
68114
|
+
const parsed = Number(configured);
|
|
68115
|
+
if (!Number.isInteger(parsed) || parsed < 1) {
|
|
68116
|
+
throw new Error(`${MAX_ACP_PROCESSES_ENVIRONMENT_KEY} must be a positive integer`);
|
|
68117
|
+
}
|
|
68118
|
+
return parsed;
|
|
68119
|
+
}
|
|
68109
68120
|
async function runAcpPrompt(options) {
|
|
68110
68121
|
const agentRuntime = new AgentRuntimeManager();
|
|
68111
68122
|
const commandId = crypto.randomUUID();
|
|
@@ -84268,14 +84279,182 @@ async function unchangedIdentity(agent2, signal) {
|
|
|
84268
84279
|
signal.throwIfAborted();
|
|
84269
84280
|
return agent2.kind !== "acp-adapter-process" || await revalidateExecutable(agent2.adapterIdentity);
|
|
84270
84281
|
}
|
|
84282
|
+
function controlSocketPath(stateDirectory, endpoint = "manager") {
|
|
84283
|
+
const installationHash = (0, import_node_crypto12.createHash)("sha256").update(endpoint === "manager" ? stateDirectory : `${stateDirectory}:worker`).digest("hex").slice(0, 32);
|
|
84284
|
+
return managerPlatform.controlSocketPath(installationHash);
|
|
84285
|
+
}
|
|
84286
|
+
function controlTokenPath(stateDirectory) {
|
|
84287
|
+
return (0, import_node_path33.join)(stateDirectory, "manager.token");
|
|
84288
|
+
}
|
|
84289
|
+
async function readOrCreateControlToken(stateDirectory) {
|
|
84290
|
+
const path72 = controlTokenPath(stateDirectory);
|
|
84291
|
+
try {
|
|
84292
|
+
return (await (0, import_promises30.readFile)(path72, "utf8")).trim();
|
|
84293
|
+
} catch (cause) {
|
|
84294
|
+
if (!isNodeError2(cause, "ENOENT")) {
|
|
84295
|
+
throw cause;
|
|
84296
|
+
}
|
|
84297
|
+
}
|
|
84298
|
+
const token = (0, import_node_crypto12.randomBytes)(32).toString("base64url");
|
|
84299
|
+
try {
|
|
84300
|
+
await (0, import_promises30.writeFile)(path72, `${token}
|
|
84301
|
+
`, { flag: "wx", mode: 384 });
|
|
84302
|
+
return token;
|
|
84303
|
+
} catch (cause) {
|
|
84304
|
+
if (!isNodeError2(cause, "EEXIST")) {
|
|
84305
|
+
throw cause;
|
|
84306
|
+
}
|
|
84307
|
+
return (await (0, import_promises30.readFile)(path72, "utf8")).trim();
|
|
84308
|
+
}
|
|
84309
|
+
}
|
|
84310
|
+
function isNodeError2(error622, code) {
|
|
84311
|
+
return typeof error622 === "object" && error622 !== null && "code" in error622 && error622.code === code;
|
|
84312
|
+
}
|
|
84313
|
+
async function readSocketMessage(socket, signal) {
|
|
84314
|
+
signal.throwIfAborted();
|
|
84315
|
+
return await new Promise((resolve172, reject2) => {
|
|
84316
|
+
let encoded = "";
|
|
84317
|
+
const finish = (error622, value) => {
|
|
84318
|
+
signal.removeEventListener("abort", abort);
|
|
84319
|
+
socket.removeAllListeners("data");
|
|
84320
|
+
socket.removeAllListeners("error");
|
|
84321
|
+
socket.removeAllListeners("end");
|
|
84322
|
+
if (error622 === void 0) {
|
|
84323
|
+
resolve172(value);
|
|
84324
|
+
} else {
|
|
84325
|
+
reject2(error622);
|
|
84326
|
+
}
|
|
84327
|
+
};
|
|
84328
|
+
const abort = () => {
|
|
84329
|
+
socket.destroy();
|
|
84330
|
+
finish(signal.reason);
|
|
84331
|
+
};
|
|
84332
|
+
socket.on("data", (chunk) => {
|
|
84333
|
+
encoded += chunk.toString("utf8");
|
|
84334
|
+
if (encoded.length > MAXIMUM_MESSAGE_BYTES) {
|
|
84335
|
+
finish(new Error("The manager message is too large"));
|
|
84336
|
+
socket.destroy();
|
|
84337
|
+
return;
|
|
84338
|
+
}
|
|
84339
|
+
const newline2 = encoded.indexOf("\n");
|
|
84340
|
+
if (newline2 >= 0) {
|
|
84341
|
+
try {
|
|
84342
|
+
finish(void 0, JSON.parse(encoded.slice(0, newline2)));
|
|
84343
|
+
} catch (cause) {
|
|
84344
|
+
finish(cause);
|
|
84345
|
+
}
|
|
84346
|
+
}
|
|
84347
|
+
});
|
|
84348
|
+
socket.once("error", finish);
|
|
84349
|
+
socket.once("end", () => finish(new Error("The manager connection closed without a response")));
|
|
84350
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
84351
|
+
});
|
|
84352
|
+
}
|
|
84353
|
+
async function sendLocalRequest(stateDirectory, endpoint, command, signal) {
|
|
84354
|
+
const token = await readOrCreateControlToken(stateDirectory);
|
|
84355
|
+
const deadline = AbortSignal.any([signal, AbortSignal.timeout(CONTROL_TIMEOUT_MILLISECONDS)]);
|
|
84356
|
+
deadline.throwIfAborted();
|
|
84357
|
+
const socket = (0, import_node_net2.createConnection)(controlSocketPath(stateDirectory, endpoint));
|
|
84358
|
+
try {
|
|
84359
|
+
await new Promise((resolve172, reject2) => {
|
|
84360
|
+
const abort = () => {
|
|
84361
|
+
socket.destroy();
|
|
84362
|
+
reject2(deadline.reason);
|
|
84363
|
+
};
|
|
84364
|
+
socket.once("connect", () => {
|
|
84365
|
+
deadline.removeEventListener("abort", abort);
|
|
84366
|
+
resolve172();
|
|
84367
|
+
});
|
|
84368
|
+
socket.once("error", reject2);
|
|
84369
|
+
deadline.addEventListener("abort", abort, { once: true });
|
|
84370
|
+
});
|
|
84371
|
+
socket.write(`${JSON.stringify({ ...command, token })}
|
|
84372
|
+
`);
|
|
84373
|
+
return await readSocketMessage(socket, deadline);
|
|
84374
|
+
} finally {
|
|
84375
|
+
socket.destroy();
|
|
84376
|
+
}
|
|
84377
|
+
}
|
|
84378
|
+
async function readSwitchStatus(directory, signal, wait = false) {
|
|
84379
|
+
const response = lifecycleResponse.parse(
|
|
84380
|
+
await sendLocalRequest(directory, "manager", { kind: "switch-status", wait }, signal)
|
|
84381
|
+
);
|
|
84382
|
+
if (response.kind !== "switch-status") {
|
|
84383
|
+
throw new Error("The manager could not return the switch status");
|
|
84384
|
+
}
|
|
84385
|
+
return response.state;
|
|
84386
|
+
}
|
|
84271
84387
|
async function validateLocalPath(path72, directory, privateAccess, signal) {
|
|
84272
84388
|
signal.throwIfAborted();
|
|
84273
|
-
const metadata = await (0,
|
|
84389
|
+
const metadata = await (0, import_promises31.lstat)(path72);
|
|
84274
84390
|
if (metadata.isSymbolicLink() || (directory ? !metadata.isDirectory() : !metadata.isFile())) {
|
|
84275
84391
|
throw new LocalPathError("Unsafe local path");
|
|
84276
84392
|
}
|
|
84277
84393
|
await platformSupportFor(process.platform).validatePathPermissions(path72, directory, privateAccess, signal);
|
|
84278
84394
|
}
|
|
84395
|
+
async function currentDataVersion(root, signal) {
|
|
84396
|
+
const pointer = (0, import_node_path32.join)(root, "current-data.txt");
|
|
84397
|
+
try {
|
|
84398
|
+
await validateLocalPath(pointer, false, true, signal);
|
|
84399
|
+
const value = (await (0, import_promises29.readFile)(pointer, { encoding: "utf8", signal })).trim();
|
|
84400
|
+
if (!value.startsWith("versions/")) {
|
|
84401
|
+
throw new DataInheritanceError("The current data pointer must name a version directory");
|
|
84402
|
+
}
|
|
84403
|
+
return runtimeUpgradeVersionSchema.parse(value.slice("versions/".length));
|
|
84404
|
+
} catch (cause) {
|
|
84405
|
+
if (isNodeError2(cause, "ENOENT")) {
|
|
84406
|
+
return null;
|
|
84407
|
+
}
|
|
84408
|
+
throw cause;
|
|
84409
|
+
}
|
|
84410
|
+
}
|
|
84411
|
+
async function prepareVersionData(version22, signal, environment = process.env, fallbackVersion = null) {
|
|
84412
|
+
signal.throwIfAborted();
|
|
84413
|
+
const root = readStateDirectory(environment);
|
|
84414
|
+
const targetVersion = runtimeUpgradeVersionSchema.parse(version22);
|
|
84415
|
+
const versions = (0, import_node_path32.join)(root, "versions");
|
|
84416
|
+
const target = (0, import_node_path32.join)(versions, targetVersion);
|
|
84417
|
+
try {
|
|
84418
|
+
await validateLocalPath(target, true, true, signal);
|
|
84419
|
+
return;
|
|
84420
|
+
} catch (cause) {
|
|
84421
|
+
if (!isNodeError2(cause, "ENOENT")) {
|
|
84422
|
+
throw cause;
|
|
84423
|
+
}
|
|
84424
|
+
}
|
|
84425
|
+
const previous2 = await currentDataVersion(root, signal) ?? fallbackVersion;
|
|
84426
|
+
if (previous2 === null) {
|
|
84427
|
+
return;
|
|
84428
|
+
}
|
|
84429
|
+
const source = (0, import_node_path32.join)(versions, runtimeUpgradeVersionSchema.parse(previous2));
|
|
84430
|
+
await validateLocalPath(root, true, true, signal);
|
|
84431
|
+
await validateLocalPath(versions, true, true, signal);
|
|
84432
|
+
await validateLocalPath(source, true, true, signal);
|
|
84433
|
+
const staging = await (0, import_promises29.mkdtemp)((0, import_node_path32.join)(versions, `.${targetVersion}-`));
|
|
84434
|
+
try {
|
|
84435
|
+
await (0, import_promises29.cp)(source, staging, {
|
|
84436
|
+
recursive: true,
|
|
84437
|
+
filter: async (path72) => {
|
|
84438
|
+
signal.throwIfAborted();
|
|
84439
|
+
if ((await (0, import_promises29.lstat)(path72)).isSymbolicLink()) {
|
|
84440
|
+
throw new DataInheritanceError("The inherited data contains a symbolic link");
|
|
84441
|
+
}
|
|
84442
|
+
return true;
|
|
84443
|
+
}
|
|
84444
|
+
});
|
|
84445
|
+
signal.throwIfAborted();
|
|
84446
|
+
try {
|
|
84447
|
+
await (0, import_promises29.rename)(staging, target);
|
|
84448
|
+
} catch (cause) {
|
|
84449
|
+
if (!isNodeError2(cause, "EEXIST") && !isNodeError2(cause, "ENOTEMPTY")) {
|
|
84450
|
+
throw cause;
|
|
84451
|
+
}
|
|
84452
|
+
await validateLocalPath(target, true, true, signal);
|
|
84453
|
+
}
|
|
84454
|
+
} finally {
|
|
84455
|
+
await (0, import_promises29.rm)(staging, { recursive: true, force: true });
|
|
84456
|
+
}
|
|
84457
|
+
}
|
|
84279
84458
|
function isRecord9(value) {
|
|
84280
84459
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
84281
84460
|
}
|
|
@@ -84283,7 +84462,7 @@ function hasExactKeys(value, expectedKeys) {
|
|
|
84283
84462
|
const keys = Object.keys(value);
|
|
84284
84463
|
return keys.length === expectedKeys.length && expectedKeys.every((key) => Object.hasOwn(value, key));
|
|
84285
84464
|
}
|
|
84286
|
-
function
|
|
84465
|
+
function isNodeError22(error622, code) {
|
|
84287
84466
|
return typeof error622 === "object" && error622 !== null && "code" in error622 && error622.code === code;
|
|
84288
84467
|
}
|
|
84289
84468
|
function validateApplicationId(value) {
|
|
@@ -84340,13 +84519,13 @@ function parseRelayOrigin(value) {
|
|
|
84340
84519
|
return origin;
|
|
84341
84520
|
}
|
|
84342
84521
|
function connectionId() {
|
|
84343
|
-
return `mcn_${(0,
|
|
84522
|
+
return `mcn_${(0, import_node_crypto13.randomUUID)().replaceAll("-", "")}`;
|
|
84344
84523
|
}
|
|
84345
84524
|
function installationId() {
|
|
84346
|
-
return `min_${(0,
|
|
84525
|
+
return `min_${(0, import_node_crypto13.randomUUID)().replaceAll("-", "")}`;
|
|
84347
84526
|
}
|
|
84348
84527
|
function channelIndexFileName(channelId) {
|
|
84349
|
-
return `mci_${(0,
|
|
84528
|
+
return `mci_${(0, import_node_crypto13.createHash)("sha256").update(channelId).digest("hex")}.json`;
|
|
84350
84529
|
}
|
|
84351
84530
|
function decodeInstallationPointer(value) {
|
|
84352
84531
|
if (!isRecord9(value) || !hasExactKeys(value, INSTALLATION_POINTER_KEYS) || value["version"] !== 1) {
|
|
@@ -84418,9 +84597,9 @@ async function readJsonFile2(path72, signal, missingCode) {
|
|
|
84418
84597
|
signal.throwIfAborted();
|
|
84419
84598
|
let handle;
|
|
84420
84599
|
try {
|
|
84421
|
-
handle = await (0,
|
|
84600
|
+
handle = await (0, import_promises32.open)(path72, "r");
|
|
84422
84601
|
} catch (cause) {
|
|
84423
|
-
if (
|
|
84602
|
+
if (isNodeError22(cause, "ENOENT")) {
|
|
84424
84603
|
throw new RuntimeInstallationStoreError(missingCode, "The saved Runtime connection was not found", {
|
|
84425
84604
|
cause
|
|
84426
84605
|
});
|
|
@@ -84454,17 +84633,17 @@ async function readJsonFile2(path72, signal, missingCode) {
|
|
|
84454
84633
|
}
|
|
84455
84634
|
async function writeJsonAtomically(path72, value, signal) {
|
|
84456
84635
|
signal.throwIfAborted();
|
|
84457
|
-
const directory = (0,
|
|
84458
|
-
const temporaryPath = (0,
|
|
84636
|
+
const directory = (0, import_node_path34.dirname)(path72);
|
|
84637
|
+
const temporaryPath = (0, import_node_path34.join)(directory, `.${(0, import_node_crypto13.randomUUID)()}.tmp`);
|
|
84459
84638
|
try {
|
|
84460
|
-
await (0,
|
|
84639
|
+
await (0, import_promises32.mkdir)(directory, { mode: 448, recursive: true });
|
|
84461
84640
|
signal.throwIfAborted();
|
|
84462
|
-
await (0,
|
|
84641
|
+
await (0, import_promises32.writeFile)(temporaryPath, `${JSON.stringify(value, null, 2)}
|
|
84463
84642
|
`, { flag: "wx", mode: 384 });
|
|
84464
84643
|
signal.throwIfAborted();
|
|
84465
|
-
await (0,
|
|
84644
|
+
await (0, import_promises32.rename)(temporaryPath, path72);
|
|
84466
84645
|
} catch (cause) {
|
|
84467
|
-
await (0,
|
|
84646
|
+
await (0, import_promises32.unlink)(temporaryPath).catch(() => void 0);
|
|
84468
84647
|
signal.throwIfAborted();
|
|
84469
84648
|
throw new RuntimeInstallationStoreError("connection_unavailable", "The local Runtime state cannot be written", {
|
|
84470
84649
|
cause
|
|
@@ -84472,7 +84651,7 @@ async function writeJsonAtomically(path72, value, signal) {
|
|
|
84472
84651
|
}
|
|
84473
84652
|
}
|
|
84474
84653
|
async function readOrCreateInstallationId(applicationDirectory, signal) {
|
|
84475
|
-
const pointerPath = (0,
|
|
84654
|
+
const pointerPath = (0, import_node_path34.join)(applicationDirectory, "current.json");
|
|
84476
84655
|
try {
|
|
84477
84656
|
return decodeInstallationPointer(await readJsonFile2(pointerPath, signal, "installation_not_found")).installationId;
|
|
84478
84657
|
} catch (cause) {
|
|
@@ -84482,14 +84661,14 @@ async function readOrCreateInstallationId(applicationDirectory, signal) {
|
|
|
84482
84661
|
}
|
|
84483
84662
|
const candidate = installationId();
|
|
84484
84663
|
try {
|
|
84485
|
-
await (0,
|
|
84664
|
+
await (0, import_promises32.writeFile)(pointerPath, `${JSON.stringify({ installationId: candidate, version: 1 })}
|
|
84486
84665
|
`, {
|
|
84487
84666
|
flag: "wx",
|
|
84488
84667
|
mode: 384
|
|
84489
84668
|
});
|
|
84490
84669
|
return candidate;
|
|
84491
84670
|
} catch (cause) {
|
|
84492
|
-
if (!
|
|
84671
|
+
if (!isNodeError22(cause, "EEXIST")) {
|
|
84493
84672
|
throw new RuntimeInstallationStoreError(
|
|
84494
84673
|
"installation_unavailable",
|
|
84495
84674
|
"The local installation cannot be initialized",
|
|
@@ -84687,11 +84866,6 @@ async function claimPairing(options, defaultWorkspace, localAgents, signal) {
|
|
|
84687
84866
|
}
|
|
84688
84867
|
return options.pairingId.length > 0 ? decodePairingResponse(value, "runtimeCredential", REDEEM_RESPONSE_KEYS) : decodePairingResponse(value, "daemonToken", CLAIM_RESPONSE_KEYS);
|
|
84689
84868
|
}
|
|
84690
|
-
function assertInventoryUsable(inventory) {
|
|
84691
|
-
if (inventory.available.length === 0) {
|
|
84692
|
-
throw new PairingClientError("no_supported_agent", "No supported Agent is available for local discovery");
|
|
84693
|
-
}
|
|
84694
|
-
}
|
|
84695
84869
|
function buildPairedDaemon(installation, connection, defaultWorkspace, inventory, localContext) {
|
|
84696
84870
|
const relayUrl = mobiusApiUrl(connection.relayOrigin, "/v1/runtimes/connect");
|
|
84697
84871
|
relayUrl.protocol = relayUrl.protocol === "https:" ? "wss:" : "ws:";
|
|
@@ -84730,9 +84904,7 @@ async function pairRuntime(installation, options, signal, environment) {
|
|
|
84730
84904
|
environment: localContext.environment,
|
|
84731
84905
|
signal
|
|
84732
84906
|
});
|
|
84733
|
-
|
|
84734
|
-
const agents = inventory.readyAgents();
|
|
84735
|
-
const claim22 = await claimPairing(options, defaultWorkspace, agents, signal);
|
|
84907
|
+
const claim22 = await claimPairing(options, defaultWorkspace, inventory.readyAgents(), signal);
|
|
84736
84908
|
const connection = await installation.saveConnection(
|
|
84737
84909
|
{
|
|
84738
84910
|
appId: claim22.appId,
|
|
@@ -84784,6 +84956,7 @@ async function openMobiusControlInstallation(signal, environment) {
|
|
|
84784
84956
|
);
|
|
84785
84957
|
}
|
|
84786
84958
|
async function openMobiusCliInstallation(signal, environment) {
|
|
84959
|
+
await prepareVersionData(package_default.version, signal, environment);
|
|
84787
84960
|
return await openRuntimeInstallationStore(
|
|
84788
84961
|
{
|
|
84789
84962
|
applicationId: MOBIUS_CLI_APPLICATION_ID,
|
|
@@ -84838,7 +85011,7 @@ function decodePath(value, prefix) {
|
|
|
84838
85011
|
throw new LocalAuthorizationError("The directory identifier is invalid");
|
|
84839
85012
|
}
|
|
84840
85013
|
const decoded = Buffer.from(encoded, "base64url").toString("utf8");
|
|
84841
|
-
const normalized = process.platform === "win32" && decoded.startsWith("~/") ? (0,
|
|
85014
|
+
const normalized = process.platform === "win32" && decoded.startsWith("~/") ? (0, import_node_path36.normalize)(decoded).replaceAll("\\", "/") : (0, import_node_path36.normalize)(decoded);
|
|
84842
85015
|
if (Buffer.from(decoded, "utf8").toString("base64url") !== encoded || decoded.includes("\0") || normalized !== decoded) {
|
|
84843
85016
|
throw new LocalAuthorizationError("The directory identifier is invalid");
|
|
84844
85017
|
}
|
|
@@ -85659,7 +85832,7 @@ async function download(config22, command, reference, signal) {
|
|
|
85659
85832
|
);
|
|
85660
85833
|
}
|
|
85661
85834
|
const bytes = await responseBytes(response, reference.byteLength, requestSignal2);
|
|
85662
|
-
if ((0,
|
|
85835
|
+
if ((0, import_node_crypto18.createHash)("sha256").update(bytes).digest("hex") !== reference.sha256) {
|
|
85663
85836
|
throw new PromptArtifactError(
|
|
85664
85837
|
"artifact_integrity_failed",
|
|
85665
85838
|
"The prompt artifact failed integrity validation"
|
|
@@ -86062,7 +86235,7 @@ function settingsRevision(agent2, reportedAgentVersion, settings, modelEffort) {
|
|
|
86062
86235
|
unsupportedModelIds: modelEffort.unsupportedModelIds,
|
|
86063
86236
|
valuesByModel: {}
|
|
86064
86237
|
};
|
|
86065
|
-
return (0,
|
|
86238
|
+
return (0, import_node_crypto19.createHash)("sha256").update(
|
|
86066
86239
|
JSON.stringify({
|
|
86067
86240
|
adapterVersion: agent2.kind === "acp-adapter-process" ? agent2.adapterVersion : agent2.agentVersion,
|
|
86068
86241
|
agentId: agent2.id,
|
|
@@ -86201,17 +86374,17 @@ function requestedPath(value) {
|
|
|
86201
86374
|
}
|
|
86202
86375
|
async function resolveFile(value, workingDirectory, signal) {
|
|
86203
86376
|
const path72 = requestedPath(value);
|
|
86204
|
-
if (path72 === null || !(0,
|
|
86377
|
+
if (path72 === null || !(0, import_node_path39.isAbsolute)(path72) && workingDirectory === null) {
|
|
86205
86378
|
return null;
|
|
86206
86379
|
}
|
|
86207
|
-
const requested = workingDirectory === null ? path72 : (0,
|
|
86208
|
-
if (!(0,
|
|
86380
|
+
const requested = workingDirectory === null ? path72 : (0, import_node_path39.resolve)(workingDirectory, path72);
|
|
86381
|
+
if (!(0, import_node_path39.isAbsolute)(requested) || (0, import_node_path39.isAbsolute)(path72) && (0, import_node_path39.normalize)(path72) !== path72) {
|
|
86209
86382
|
return null;
|
|
86210
86383
|
}
|
|
86211
86384
|
try {
|
|
86212
|
-
const target = await (0,
|
|
86385
|
+
const target = await (0, import_promises34.realpath)(requested);
|
|
86213
86386
|
signal.throwIfAborted();
|
|
86214
|
-
return (0,
|
|
86387
|
+
return (0, import_node_path39.isAbsolute)(target) && (0, import_node_path39.normalize)(target) === target ? target : null;
|
|
86215
86388
|
} catch {
|
|
86216
86389
|
signal.throwIfAborted();
|
|
86217
86390
|
return null;
|
|
@@ -86223,7 +86396,7 @@ async function streamLocalFile(command, send2, signal, workingDirectory, externa
|
|
|
86223
86396
|
if (target === null) {
|
|
86224
86397
|
throw new Error("The local file is unavailable");
|
|
86225
86398
|
}
|
|
86226
|
-
const before = await (0,
|
|
86399
|
+
const before = await (0, import_promises34.stat)(target);
|
|
86227
86400
|
signal.throwIfAborted();
|
|
86228
86401
|
if (!before.isFile() || before.size < 1 || before.size > command.maxBytes) {
|
|
86229
86402
|
throw new Error("The local file is too large to read");
|
|
@@ -86232,9 +86405,9 @@ async function streamLocalFile(command, send2, signal, workingDirectory, externa
|
|
|
86232
86405
|
send2({
|
|
86233
86406
|
byteLength: before.size,
|
|
86234
86407
|
kind: FILE_BEGIN_KIND,
|
|
86235
|
-
mediaType: external?.mediaType ?? raster?.mimeType ?? ((0,
|
|
86408
|
+
mediaType: external?.mediaType ?? raster?.mimeType ?? ((0, import_node_path39.extname)(target).toLowerCase() === ".svg" ? "image/svg+xml" : "application/octet-stream"),
|
|
86236
86409
|
modifiedAt: before.mtime.toISOString(),
|
|
86237
|
-
name: external?.name ?? ((0,
|
|
86410
|
+
name: external?.name ?? ((0, import_node_path39.basename)(target) || "file"),
|
|
86238
86411
|
requestId: command.requestId,
|
|
86239
86412
|
sessionId: command.sessionId
|
|
86240
86413
|
});
|
|
@@ -86251,7 +86424,7 @@ async function streamLocalFile(command, send2, signal, workingDirectory, externa
|
|
|
86251
86424
|
});
|
|
86252
86425
|
sequence += 1;
|
|
86253
86426
|
}
|
|
86254
|
-
const after = await (0,
|
|
86427
|
+
const after = await (0, import_promises34.stat)(target);
|
|
86255
86428
|
signal.throwIfAborted();
|
|
86256
86429
|
if (after.size !== before.size || after.mtimeMs !== before.mtimeMs) {
|
|
86257
86430
|
throw new Error("The local file changed during transfer");
|
|
@@ -86276,7 +86449,7 @@ async function resolveSessionDirectories(directories, bindingId, directoryId2, a
|
|
|
86276
86449
|
additionalDirectories.push(directory);
|
|
86277
86450
|
additionalDirectoryEntries.push({
|
|
86278
86451
|
directoryId: additionalDirectoryId,
|
|
86279
|
-
name: (0,
|
|
86452
|
+
name: (0, import_node_path40.basename)(directory)
|
|
86280
86453
|
});
|
|
86281
86454
|
}
|
|
86282
86455
|
return new ResolvedSessionDirectories(cwd, additionalDirectories, additionalDirectoryEntries);
|
|
@@ -86782,7 +86955,7 @@ async function applySessionConfigurationSelection(sessions, options, selection,
|
|
|
86782
86955
|
booleanValue: selection.booleanValue,
|
|
86783
86956
|
configId: selection.configId,
|
|
86784
86957
|
cwd,
|
|
86785
|
-
requestId: `cfg_${(0,
|
|
86958
|
+
requestId: `cfg_${(0, import_node_crypto20.randomUUID)()}`,
|
|
86786
86959
|
sessionId,
|
|
86787
86960
|
signal,
|
|
86788
86961
|
value: selection.value,
|
|
@@ -87352,111 +87525,6 @@ function createDaemonCommandHandler({
|
|
|
87352
87525
|
}
|
|
87353
87526
|
};
|
|
87354
87527
|
}
|
|
87355
|
-
function controlSocketPath(stateDirectory, endpoint = "manager") {
|
|
87356
|
-
const installationHash = (0, import_node_crypto20.createHash)("sha256").update(endpoint === "manager" ? stateDirectory : `${stateDirectory}:worker`).digest("hex").slice(0, 32);
|
|
87357
|
-
return managerPlatform.controlSocketPath(installationHash);
|
|
87358
|
-
}
|
|
87359
|
-
function controlTokenPath(stateDirectory) {
|
|
87360
|
-
return (0, import_node_path39.join)(stateDirectory, "manager.token");
|
|
87361
|
-
}
|
|
87362
|
-
async function readOrCreateControlToken(stateDirectory) {
|
|
87363
|
-
const path72 = controlTokenPath(stateDirectory);
|
|
87364
|
-
try {
|
|
87365
|
-
return (await (0, import_promises33.readFile)(path72, "utf8")).trim();
|
|
87366
|
-
} catch (cause) {
|
|
87367
|
-
if (!isNodeError22(cause, "ENOENT")) {
|
|
87368
|
-
throw cause;
|
|
87369
|
-
}
|
|
87370
|
-
}
|
|
87371
|
-
const token = (0, import_node_crypto20.randomBytes)(32).toString("base64url");
|
|
87372
|
-
try {
|
|
87373
|
-
await (0, import_promises33.writeFile)(path72, `${token}
|
|
87374
|
-
`, { flag: "wx", mode: 384 });
|
|
87375
|
-
return token;
|
|
87376
|
-
} catch (cause) {
|
|
87377
|
-
if (!isNodeError22(cause, "EEXIST")) {
|
|
87378
|
-
throw cause;
|
|
87379
|
-
}
|
|
87380
|
-
return (await (0, import_promises33.readFile)(path72, "utf8")).trim();
|
|
87381
|
-
}
|
|
87382
|
-
}
|
|
87383
|
-
function isNodeError22(error622, code) {
|
|
87384
|
-
return typeof error622 === "object" && error622 !== null && "code" in error622 && error622.code === code;
|
|
87385
|
-
}
|
|
87386
|
-
async function readSocketMessage(socket, signal) {
|
|
87387
|
-
signal.throwIfAborted();
|
|
87388
|
-
return await new Promise((resolve172, reject2) => {
|
|
87389
|
-
let encoded = "";
|
|
87390
|
-
const finish = (error622, value) => {
|
|
87391
|
-
signal.removeEventListener("abort", abort);
|
|
87392
|
-
socket.removeAllListeners("data");
|
|
87393
|
-
socket.removeAllListeners("error");
|
|
87394
|
-
socket.removeAllListeners("end");
|
|
87395
|
-
if (error622 === void 0) {
|
|
87396
|
-
resolve172(value);
|
|
87397
|
-
} else {
|
|
87398
|
-
reject2(error622);
|
|
87399
|
-
}
|
|
87400
|
-
};
|
|
87401
|
-
const abort = () => {
|
|
87402
|
-
socket.destroy();
|
|
87403
|
-
finish(signal.reason);
|
|
87404
|
-
};
|
|
87405
|
-
socket.on("data", (chunk) => {
|
|
87406
|
-
encoded += chunk.toString("utf8");
|
|
87407
|
-
if (encoded.length > MAXIMUM_MESSAGE_BYTES) {
|
|
87408
|
-
finish(new Error("The manager message is too large"));
|
|
87409
|
-
socket.destroy();
|
|
87410
|
-
return;
|
|
87411
|
-
}
|
|
87412
|
-
const newline2 = encoded.indexOf("\n");
|
|
87413
|
-
if (newline2 >= 0) {
|
|
87414
|
-
try {
|
|
87415
|
-
finish(void 0, JSON.parse(encoded.slice(0, newline2)));
|
|
87416
|
-
} catch (cause) {
|
|
87417
|
-
finish(cause);
|
|
87418
|
-
}
|
|
87419
|
-
}
|
|
87420
|
-
});
|
|
87421
|
-
socket.once("error", finish);
|
|
87422
|
-
socket.once("end", () => finish(new Error("The manager connection closed without a response")));
|
|
87423
|
-
signal.addEventListener("abort", abort, { once: true });
|
|
87424
|
-
});
|
|
87425
|
-
}
|
|
87426
|
-
async function sendLocalRequest(stateDirectory, endpoint, command, signal) {
|
|
87427
|
-
const token = await readOrCreateControlToken(stateDirectory);
|
|
87428
|
-
const deadline = AbortSignal.any([signal, AbortSignal.timeout(CONTROL_TIMEOUT_MILLISECONDS)]);
|
|
87429
|
-
deadline.throwIfAborted();
|
|
87430
|
-
const socket = (0, import_node_net2.createConnection)(controlSocketPath(stateDirectory, endpoint));
|
|
87431
|
-
try {
|
|
87432
|
-
await new Promise((resolve172, reject2) => {
|
|
87433
|
-
const abort = () => {
|
|
87434
|
-
socket.destroy();
|
|
87435
|
-
reject2(deadline.reason);
|
|
87436
|
-
};
|
|
87437
|
-
socket.once("connect", () => {
|
|
87438
|
-
deadline.removeEventListener("abort", abort);
|
|
87439
|
-
resolve172();
|
|
87440
|
-
});
|
|
87441
|
-
socket.once("error", reject2);
|
|
87442
|
-
deadline.addEventListener("abort", abort, { once: true });
|
|
87443
|
-
});
|
|
87444
|
-
socket.write(`${JSON.stringify({ ...command, token })}
|
|
87445
|
-
`);
|
|
87446
|
-
return await readSocketMessage(socket, deadline);
|
|
87447
|
-
} finally {
|
|
87448
|
-
socket.destroy();
|
|
87449
|
-
}
|
|
87450
|
-
}
|
|
87451
|
-
async function readSwitchStatus(directory, signal, wait = false) {
|
|
87452
|
-
const response = lifecycleResponse.parse(
|
|
87453
|
-
await sendLocalRequest(directory, "manager", { kind: "switch-status", wait }, signal)
|
|
87454
|
-
);
|
|
87455
|
-
if (response.kind !== "switch-status") {
|
|
87456
|
-
throw new Error("The manager could not return the switch status");
|
|
87457
|
-
}
|
|
87458
|
-
return response.state;
|
|
87459
|
-
}
|
|
87460
87528
|
async function reportDaemonUpgrade(send2, signal) {
|
|
87461
87529
|
if (!process.connected) {
|
|
87462
87530
|
return;
|
|
@@ -87830,12 +87898,12 @@ async function runDaemon(config22, signal, timer = systemDaemonTimer, options =
|
|
|
87830
87898
|
var _stack = [];
|
|
87831
87899
|
try {
|
|
87832
87900
|
const stateDirectory = config22.localContext.stateDirectory;
|
|
87833
|
-
const channelHash = (0,
|
|
87834
|
-
const sessionDatabase = openAcpSessionDatabase((0,
|
|
87901
|
+
const channelHash = (0, import_node_crypto14.createHash)("sha256").update(config22.channelId).digest("hex");
|
|
87902
|
+
const sessionDatabase = openAcpSessionDatabase((0, import_node_path35.join)(stateDirectory, "sessions", `${channelHash}.sqlite`));
|
|
87835
87903
|
let eventsV2;
|
|
87836
87904
|
try {
|
|
87837
87905
|
eventsV2 = new CachedAcpSessionEventStoreV2(
|
|
87838
|
-
openSessionEventCacheV2Database((0,
|
|
87906
|
+
openSessionEventCacheV2Database((0, import_node_path35.join)(stateDirectory, "sessions", `${channelHash}.events.sqlite`)),
|
|
87839
87907
|
new SqliteSessionLiveEventPosition(sessionDatabase)
|
|
87840
87908
|
);
|
|
87841
87909
|
} catch (error622) {
|
|
@@ -87846,18 +87914,14 @@ async function runDaemon(config22, signal, timer = systemDaemonTimer, options =
|
|
|
87846
87914
|
const externalContent = __using(_stack, new LocalExternalContentStore(stateDirectory), true);
|
|
87847
87915
|
const operations = new DaemonOperationState();
|
|
87848
87916
|
const publisher = new DaemonSessionEventPublisher(timer);
|
|
87917
|
+
const activeTurns = new DaemonTurnRegistry(operations);
|
|
87849
87918
|
const eventProjectionV2 = new DaemonSessionEventProjectionV2(
|
|
87850
87919
|
publisher,
|
|
87851
|
-
(sessionId, event2) => agentRuntime.recordLifecycleEventV2(sessionId, event2)
|
|
87920
|
+
(sessionId, event2) => agentRuntime.recordLifecycleEventV2(sessionId, event2),
|
|
87921
|
+
activeTurns.recordSessionEventV2
|
|
87852
87922
|
);
|
|
87853
|
-
const activeTurns = new DaemonTurnRegistry(operations);
|
|
87854
87923
|
const agentRuntime = new AgentRuntimeManager(
|
|
87855
|
-
new DaemonAcpObserver(
|
|
87856
|
-
activeTurns.recordEvent(event2);
|
|
87857
|
-
if (event2.kind === "session.info.updated") {
|
|
87858
|
-
publisher.publishInfo(event2);
|
|
87859
|
-
}
|
|
87860
|
-
}, eventProjectionV2.record),
|
|
87924
|
+
new DaemonAcpObserver(eventProjectionV2.record, activeTurns.recordEvent, publisher.publishInfo),
|
|
87861
87925
|
sessionStore,
|
|
87862
87926
|
{
|
|
87863
87927
|
access: (options2) => options2.agent.id === "codex" ? {
|
|
@@ -87874,7 +87938,8 @@ async function runDaemon(config22, signal, timer = systemDaemonTimer, options =
|
|
|
87874
87938
|
"native",
|
|
87875
87939
|
publisher.publishStatus,
|
|
87876
87940
|
new AcpContentExternalizer(externalContent),
|
|
87877
|
-
timer
|
|
87941
|
+
timer,
|
|
87942
|
+
resolveMaxAcpProcesses(config22.localContext.environment)
|
|
87878
87943
|
);
|
|
87879
87944
|
const directories = new WorkspaceDirectoryService(config22.bindingId, config22.defaultWorkspace);
|
|
87880
87945
|
const diagnostics = new RelayConnectionDiagnostics(
|
|
@@ -88046,11 +88111,11 @@ function loadMobiusRuntimeConnection(environment = process.env) {
|
|
|
88046
88111
|
});
|
|
88047
88112
|
}
|
|
88048
88113
|
async function resolveWorkspace(path72) {
|
|
88049
|
-
const requested = (0,
|
|
88114
|
+
const requested = (0, import_node_path41.resolve)(path72);
|
|
88050
88115
|
try {
|
|
88051
|
-
await (0,
|
|
88052
|
-
const resolved = await (0,
|
|
88053
|
-
const metadata = await (0,
|
|
88116
|
+
await (0, import_promises35.mkdir)(requested, { recursive: true, mode: 448 });
|
|
88117
|
+
const resolved = await (0, import_promises35.realpath)(requested);
|
|
88118
|
+
const metadata = await (0, import_promises35.stat)(resolved);
|
|
88054
88119
|
if (!metadata.isDirectory()) {
|
|
88055
88120
|
throw new MobiusRuntimeConfigurationError("The Runtime workspace is not a directory");
|
|
88056
88121
|
}
|
|
@@ -88093,9 +88158,9 @@ async function createMobiusRuntimeEngine(connection, signal, environment = proce
|
|
|
88093
88158
|
);
|
|
88094
88159
|
return new MobiusRuntimeEngine(config22);
|
|
88095
88160
|
}
|
|
88096
|
-
var import_node_path8, import_node_fs3, import_node_child_process6, import_promises10, import_node_path9, import_node_fs4, import_promises11, import_node_path10, import_node_child_process7, import_node_fs5, import_promises12, import_node_os7, import_node_path11, import_node_path12, import_node_child_process8, import_promises13, import_node_path13, import_node_util, import_node_os8, import_node_path14, import_promises14, import_node_path15, import_node_url, import_node_path16, import_node_child_process9, import_node_crypto6, import_node_crypto7, import_promises15, import_node_path17, import_node_crypto8, import_promises16, import_node_os9, import_node_path18, import_undici, import_node_child_process10, import_node_crypto9, import_node_fs6, fs3, os3, path6, import_node_util2, import_node_module, xr, Dn, import_node_crypto10, Yn, NF, gn, import_node_child_process11, import_node_util3, import_node_stream, import_promises17, Xt, y_, kt, Tw, zF, jF, import_url, import_crypto, import_stream2, import_util9, import_stream3, import_stream4, import_http, import_https, import_http2, import_util10, import_path, import_zlib, import_stream5, import_events, import_crypto2, import_crypto3, import_path2, import_node_fs7, import_node_process, import_fs, import_os, import_path3, Nx, import_child_process, import_crypto4, import_fs2, import_promises18, import_module, import_os2, import_path4, import_url2, import_events2, import_child_process2, import_fs3, import_readline, import_string_decoder, import_os3, import_path5, import_crypto5, import_path6, import_async_hooks, import_fs4, import_promises19, import_crypto6, import_fs5, import_promises20, import_fs6, import_fs7, import_promises21, import_os4, import_path7, _e, import_promises22, an, import_promises23, import_path8, import_promises24, import_os5, import_node_path19, import_node_os10, import_node_process2, import_path9, import_fs8, import_events3, import_fs9, import_promises25, import_path10, import_child_process3, import_util11, import_child_process4, import_fs10, import_path11, import_path12, import_path13, import_promises26, import_path14, import_path15, import_promises27, import_path16, import_promises28, import_os6, import_path17, import_crypto7, import_os7, import_path18, import_path19, import_path20, import_path21, import_os8, import_path22, import_path23, import_path24, import_crypto8, import_path25, import_path26, import_net, import_os9, import_child_process5, import_fs11, import_node_crypto11, import_node_worker_threads, import_node_worker_threads2, import_node_worker_threads3, import_node_os11, import_node_path20, import_node_path21, import_node_path22, fs2, path5, import_node_child_process12, import_node_path23, import_node_url2, import_node_child_process13, import_node_fs8, import_node_path24, import_node_child_process14, readline, import_node_os12, import_node_path25, import_node_os13, import_node_fs9, import_node_path26, import_node_fs10, import_node_path27, import_node_fs11, import_node_path28, import_node_fs12, import_node_path29, import_node_fs13, import_node_path30, import_node_child_process15, import_node_path31, import_undici2, import_undici3, import_node_crypto12, import_promises29, import_node_path32, import_promises30, import_node_crypto13, import_node_path33, import_node_util4, import_promises31, import_node_os14, import_node_path34, import_node_fs14, import_node_path35, import_node_crypto14, import_node_fs15, import_node_path36, import_node_sqlite, import_node_sqlite2, import_node_child_process16, import_node_crypto15, import_node_crypto16, import_undici4, import_undici5, import_undici6, import_undici7, import_node_crypto17, import_undici8, import_node_crypto18, import_node_fs16, import_promises32, import_node_path37, import_node_url3, import_node_path38, import_node_crypto19, import_undici9, import_node_crypto20, import_promises33, import_node_net2, import_node_path39, import_undici10, import_node_crypto21, import_undici11, import_promises34, import_node_path40, import_meta, __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __commonJS2, __export2, __copyProps2, __toESM2, require_constants6, require_debug, require_re, require_parse_options, require_identifiers, require_semver, require_parse2, require_valid, require_clean, require_inc, require_diff, require_major, require_minor, require_patch, require_prerelease, require_compare, require_rcompare, require_compare_loose, require_compare_build, require_sort, require_rsort, require_gt, require_lt, require_eq, require_neq, require_gte, require_lte, require_cmp, require_coerce, require_truncate, require_lrucache, require_range, require_comparator, require_satisfies, require_to_comparators, require_max_satisfying, require_min_satisfying, require_min_version, require_valid2, require_outside, require_gtr, require_ltr, require_intersects, require_simplify, require_subset, require_semver2, createAcpClient, external_exports2, core_exports22, util_exports2, Cached2, EVALUATING2, captureStackTrace2, allowsEval2, getParsedType2, propertyKeyTypes2, primitiveTypes2, NUMBER_FORMAT_RANGES2, BIGINT_FORMAT_RANGES2, highSurrogate2, Class2, installing2, broke2, breaker2, CONSTANT_CATCH2, _a3, NEVER2, _zodDesc2, _E2, $brand2, $ZodAsyncError2, $ZodEncodeError2, globalConfig2, _messageDesc2, _issuesDesc2, _installedToString2, initializer3, $ZodError2, $ZodRealError2, _parse3, parse5, _parseAsync3, parseAsync3, _safeParse2, safeParse3, _safeParseAsync2, safeParseAsync3, COMPILE_INVALID2, COMPILE_FALLBACK2, validate2, validateAsync3, _encode3, encode3, _decode3, decode3, _encodeAsync3, encodeAsync3, _decodeAsync3, decodeAsync3, _safeEncode2, safeEncode3, _safeDecode2, safeDecode3, _safeEncodeAsync2, safeEncodeAsync3, _safeDecodeAsync2, safeDecodeAsync3, regexes_exports2, cuid4, cuid23, ulid3, xid3, ksuid3, nanoid3, duration3, extendedDuration2, guid3, uuid3, uuid42, uuid62, uuid72, email3, html5Email2, rfc5322Email2, unicodeEmail2, idnEmail2, browserEmail2, _emoji3, ipv43, ipv63, mac3, cidrv43, cidrv63, base643, base64url3, hostname4, domain2, httpProtocol2, e1643, creditCard3, currencyCode3, iban3, dateSource2, date5, anyString2, string4, bigint4, integer2, number4, boolean4, _null4, _undefined4, lowercase2, uppercase2, hex3, md5_hex2, md5_base642, md5_base64url2, sha1_hex2, sha1_base642, sha1_base64url2, sha256_hex2, sha256_base642, sha256_base64url2, sha384_hex2, sha384_base642, sha384_base64url2, sha512_hex2, sha512_base642, sha512_base64url2, $ZodCheck2, _whenHasSize2, _whenHasLength2, numericOriginMap2, $ZodCheckLessThan2, $ZodCheckGreaterThan2, $ZodCheckMultipleOf2, $ZodCheckNumberFormat2, $ZodCheckBigIntFormat2, $ZodCheckMaxSize2, $ZodCheckMinSize2, $ZodCheckSizeEquals2, $ZodCheckMaxLength2, $ZodCheckMinLength2, $ZodCheckLengthEquals2, $ZodCheckStringFormat2, $ZodCheckRegex2, $ZodCheckLowerCase2, $ZodCheckUpperCase2, $ZodCheckIncludes2, $ZodCheckStartsWith2, $ZodCheckEndsWith2, $ZodCheckProperty2, $ZodCheckProperties2, $ZodCheckMimeType2, $ZodCheckOverwrite2, Doc2, version2, $ZodType2, toStandardResult2, $ZodString2, $ZodStringFormat2, $ZodGUID2, $ZodUUID2, $ZodEmail2, URL_BAD_FORMAT2, URL_UNPARSEABLE2, asciiTabOrNewline2, $ZodURL2, $ZodEmoji2, $ZodNanoID2, $ZodCUID3, $ZodCUID22, $ZodULID2, $ZodXID2, $ZodKSUID2, $ZodISODateTime2, $ZodISODate2, $ZodISOTime2, $ZodISODuration2, $ZodIPv42, ipv6Alphabet2, $ZodIPv62, $ZodMAC2, $ZodCIDRv42, $ZodCIDRv62, base64Charset2, $ZodBase642, base64urlCharset2, $ZodBase64URL2, $ZodE1642, CC_SANITIZE2, $ZodCreditCard2, $ZodIBAN2, $ZodJWT2, $ZodCustomStringFormat2, $ZodNumber2, $ZodNumberFormat2, $ZodBoolean2, $ZodBigInt2, $ZodBigIntFormat2, $ZodSymbol2, $ZodUndefined2, $ZodNull2, $ZodAny2, $ZodUnknown2, $ZodNever2, $ZodVoid2, $ZodDate2, $ZodArray2, NO_SYMBOL_KEYS2, $ZodObject2, $ZodObjectJIT2, $ZodUnion2, $ZodXor2, $ZodDiscriminatedUnion2, $ZodIntersection2, $ZodTuple2, $ZodRecord2, $ZodMap2, $ZodSet2, $ZodEnum2, $ZodLiteral2, $ZodFile2, $ZodTransform2, $ZodOptional2, $ZodExactOptional2, $ZodNullable2, $ZodDefault2, $ZodPrefault2, $ZodNonOptional2, $ZodSuccess2, $ZodCatch2, $ZodNaN2, $ZodPipe2, $ZodCodec2, $ZodPreprocess2, $ZodReadonly2, $ZodTemplateLiteral2, $ZodFunction2, $ZodPromise2, $ZodLazy2, $ZodCustom2, $ZodCyclicError2, STATE2, NO_ISSUES2, recursive2, NONE2, ASSUMED2, PROVEN2, handoff2, open6, memo2, locales_exports2, error62, error210, error310, error410, error510, error63, error72, error82, error92, error102, error112, error122, error132, error142, error152, error162, error172, error182, error192, error202, error212, error222, error232, error242, error252, error262, error272, error282, error292, error302, error312, error322, capitalizeFirstCharacter2, error332, error342, error352, error362, error372, error382, error392, error402, error412, error422, error432, error442, error452, error462, error472, error482, error492, error502, error512, error522, error532, error542, error552, error562, error572, error582, error592, error602, error612, _a22, $output2, $input2, $ZodRegistry2, globalRegistry2, INVALID2, FALLBACK_FLAG2, ZodCompileAsyncError2, ZodCompileUnsupportedError2, WHEN_DEFAULTED_CHECKS2, PATTERN_IS_COMPLETE2, TimePrecision2, FOLDABLE_KEYS2, UNION_KEYS2, createToJSONSchemaMethod2, createStandardJSONSchemaMethod2, narrowMin2, narrowMax2, narrowBoth2, addDivisor2, addPattern2, intersectMime2, setFormat2, minContributor2, maxContributor2, formatContributor2, contributors2, formatMap2, exactPatterns2, exactPattern2, stringProcessor2, numberProcessor2, booleanProcessor2, bigintProcessor2, symbolProcessor2, nullProcessor2, undefinedProcessor2, voidProcessor2, neverProcessor2, anyProcessor2, unknownProcessor2, dateProcessor2, enumProcessor2, literalProcessor2, nanProcessor2, templateLiteralProcessor2, fileProcessor2, successProcessor2, customProcessor2, functionProcessor2, transformProcessor2, mapProcessor2, setProcessor2, arrayProcessor2, objectProcessor2, unionProcessor2, intersectionProcessor2, tupleProcessor2, pendingRecords2, recordProcessor2, nullableProcessor2, nonoptionalProcessor2, UNREPRESENTABLE_DEFAULT2, defaultProcessor2, prefaultProcessor2, catchProcessor2, pipeProcessor2, readonlyProcessor2, promiseProcessor2, optionalProcessor2, lazyProcessor2, allProcessors2, JSONSchemaGenerator2, json_schema_exports2, schemas_exports22, checks_exports22, _installedErrorProtos2, initializer22, ZodError2, ZodRealError2, parse22, parseAsync22, safeParse22, safeParseAsync22, encode22, decode22, encodeAsync22, decodeAsync22, safeEncode22, safeDecode22, safeEncodeAsync22, safeDecodeAsync22, ZodType2, _ZodString2, ZodString2, ZodStringFormat2, ZodISODateTime2, ZodISODate2, ZodISOTime2, ZodISODuration2, ZodEmail2, ZodGUID2, ZodUUID2, ZodURL2, ZodEmoji2, ZodNanoID2, ZodCUID3, ZodCUID22, ZodULID2, ZodXID2, ZodKSUID2, ZodIPv42, ZodMAC2, ZodIPv62, ZodCIDRv42, ZodCIDRv62, ZodBase642, ZodBase64URL2, ZodE1642, ZodCreditCard2, ZodIBAN2, ZodJWT2, ZodCustomStringFormat2, ZodNumber2, ZodNumberFormat2, ZodBoolean2, ZodBigInt2, ZodBigIntFormat2, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor2, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile2, ZodTransform2, ZodOptional2, ZodExactOptional2, ZodNullable2, ZodDefault2, ZodPrefault2, ZodNonOptional2, ZodSuccess2, ZodCatch2, ZodNaN2, ZodPipe2, ZodCodec2, ZodPreprocess2, ZodReadonly2, ZodTemplateLiteral2, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom2, describe22, meta22, ZodInstanceOf2, stringbool2, ZodIssueCode2, ZodFirstPartyTypeKind2, iso_exports2, z2, RECOGNIZED_KEYS2, SCHEMA_KEYWORDS2, SCHEMA_MAP_KEYWORDS2, fullTime2, RESOLVING2, coerce_exports2, IDENTIFIER_PATTERN, identifierStringSchema, identifierSchema, TOKEN_COUNT, promptUsageSchema, quotaTokenCountSchema, promptMetadataSchema, agentPromptResponseSchema, WORKSPACE_LIST_KIND, WORKSPACE_ENTRIES_KIND, SESSION_PREPARE_KIND, SESSION_READY_KIND, SESSION_LIST_KIND, SESSION_LISTED_KIND, SESSION_QUERY_KIND, SESSION_QUERIED_KIND, SESSION_RESTORE_KIND, SESSION_RESTORED_KIND, SESSION_CLOSE_KIND, SESSION_CLOSED_KIND, SESSION_STATUS_CHANGED_KIND, SESSION_CONFIGURE_KIND, SESSION_CONFIG_UPDATED_KIND, SESSION_USAGE_UPDATED_KIND, SESSION_COMMANDS_UPDATED_KIND, SESSION_INFO_UPDATED_KIND, SESSION_PERMISSION_REQUESTED_KIND, SESSION_PERMISSION_RESPOND_KIND, SESSION_PERMISSION_RESOLVED_KIND, SESSION_ELICITATION_REQUESTED_KIND, SESSION_ELICITATION_RESPOND_KIND, SESSION_ELICITATION_RESOLVED_KIND, SESSION_OPERATION_FAILED_KIND, AGENT_CONTENT_KIND, AGENT_SETTINGS_DISCOVER_KIND, AGENT_SETTINGS_DISCOVERED_KIND, AGENT_SETTINGS_DISCOVERY_FAILED_KIND, FILE_READ_KIND, FILE_BEGIN_KIND, FILE_CHUNK_KIND, FILE_END_KIND, FILE_FAILED_KIND, DIRECTORY_IDENTIFIER_PATTERN, DIRECTORY_IDENTIFIER, SHORT_TEXT, LONG_TEXT, workspaceEntrySchema, sessionStatusSchema, sessionStatusChangedEventSchema, sessionMetadataSchema, sessionListCommandSchema, sessionsListedEventSchema, sessionQueryCommandSchema, sessionsQueriedEventSchema, sessionRestoreCommandSchema, sessionCloseCommandSchema, fileReadCommandSchema, fileBeginEventSchema, fileChunkEventSchema, fileEndEventSchema, fileFailedEventSchema, configValueSchema, sessionConfigOptionSchema, sessionConfigOptionsSchema, agentSettingSchema, agentSettingsSchema, AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE, AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION, AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE, agentModelEffortResolutionSchema, agentModelEffortSchema, agentSettingsDiscoverCommandSchema, agentSettingsDiscoveredEventSchema, agentSettingsDiscoveryFailedEventSchema, sessionConfigurationSelectionSchema, AGENT_DEFAULT_EXECUTION_SETTING, AGENT_PERMISSION_MODE_CONFIG_ID, AGENT_PERMISSION_MODES, agentExecutionConfigurationSchema, DEFAULT_AGENT_EXECUTION_CONFIGURATION, sessionConfigurationSelectionsSchema, sessionCapabilitiesSchema, sessionCommandSchema, permissionOptionSchema, elicitationOptionSchema, elicitationFieldSchema, displayContentSchema, recordedDisplayContentSchema, promptImageSchema, promptResourceSchema, workspaceListCommandSchema, workspaceEntriesEventSchema, sessionIdentityFields, sessionPrepareCommandSchema, runtimeTimingsSchema, sessionReadyEventSchema, sessionRestoredEventSchema, sessionClosedEventSchema, sessionConfigureCommandSchema, sessionConfigUpdatedEventSchema, sessionContextUsageUpdatedEventSchema, sessionPromptUsageUpdatedEventSchema, sessionUsageUpdatedEventSchema, sessionCommandsUpdatedEventSchema, sessionInfoUpdatedEventSchema, sessionPermissionRequestedEventSchema, sessionPermissionRespondCommandSchema, sessionPermissionResolvedEventSchema, sessionElicitationRequestedEventSchema, sessionElicitationRespondCommandSchema, sessionElicitationResolvedEventSchema, sessionOperationFailedEventSchema, agentContentEventSchema, decodePromptImagesValue, decodePromptResourcesValue, decodeSessionConfigurationSelections, encode32, decodeAgentSettingsDiscoverCommand, encodeAgentSettingsDiscoverCommand, decodeAgentSettingsDiscoveredEvent, encodeAgentSettingsDiscoveredEvent, decodeAgentSettingsDiscoveryFailedEvent, encodeAgentSettingsDiscoveryFailedEvent, decodeFileReadCommand, encodeFileReadCommand, decodeFileBeginEvent, encodeFileBeginEvent, decodeFileChunkEvent, encodeFileChunkEvent, decodeFileEndEvent, encodeFileEndEvent, decodeFileFailedEvent, encodeFileFailedEvent, decodeWorkspaceListCommand, encodeWorkspaceListCommand, decodeWorkspaceEntriesEvent, encodeWorkspaceEntriesEvent, decodeSessionListCommand, encodeSessionListCommand, decodeSessionsListedEvent, encodeSessionsListedEvent, decodeSessionQueryCommand, encodeSessionQueryCommand, decodeSessionsQueriedEvent, encodeSessionsQueriedEvent, decodeSessionRestoreCommand, encodeSessionRestoreCommand, decodeSessionRestoredEvent, encodeSessionRestoredEvent, decodeSessionCloseCommand, encodeSessionCloseCommand, decodeSessionClosedEvent, encodeSessionClosedEvent, decodeSessionStatusChangedEvent, encodeSessionStatusChangedEvent, decodeSessionPrepareCommand, encodeSessionPrepareCommand, decodeSessionReadyEvent, encodeSessionReadyEvent, decodeSessionConfigureCommand, encodeSessionConfigureCommand, decodeSessionConfigUpdatedEvent, encodeSessionConfigUpdatedEvent, decodeSessionInfoUpdatedEvent, encodeSessionInfoUpdatedEvent, decodeSessionPermissionRespondCommand, encodeSessionPermissionRespondCommand, decodeSessionElicitationRespondCommand, encodeSessionElicitationRespondCommand, decodeSessionOperationFailedEvent, encodeSessionOperationFailedEvent, SESSION_PROMPT_KIND, SESSION_PROMPT_DISPOSITION_KIND, RUNTIME_WORKSPACE_BINDING_ID, SESSION_CANCEL_KIND, RUNTIME_LIVENESS_READY_KIND, RUNTIME_HEARTBEAT_KIND, RUNTIME_HEARTBEAT_ACK_KIND, RUNTIME_PING_KIND, RUNTIME_PONG_KIND, SESSION_QUEUED_KIND, AGENT_ACTIVITY_DETAIL_LIMIT, AGENT_ACTIVITY_RECORDED_FIELD_LIMIT, AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT, AGENT_ACTIVITY_LOCATION_LIMIT, AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT, SessionPromptDisposition, DIRECTORY_IDENTIFIER_PATTERN2, MAX_PROMPT_LENGTH, MAX_PROMPT_ATTACHMENT_LENGTH, ProtocolMessageError, UnsupportedProtocolMessageKindError, SESSION_HISTORY_CHARACTER_LIMIT, SESSION_HISTORY_MESSAGE_LIMIT, SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT, SESSION_HISTORY_IMAGE_CHARACTER_LIMIT, historyImage, nativeMessageActivitySchema, userHistoryMessage, assistantHistoryMessageSchema, historyMessage, availableSessionHistoryObjectSchema, availableSessionHistorySchema, unavailableSessionHistoryObjectSchema, unavailableSessionHistorySchema, sessionHistorySchema, NATIVE_SESSION_REQUEST_KIND, NATIVE_SESSION_RESULT_KIND, NATIVE_SESSION_CANCEL_KIND, directoryId, envelope, activeTurnActivitySchema, activeTurnUserMessageSchema, activeTurnAssistantMessageSchema, activeTurnMessageSchema, activeTurnSnapshotSchema, identity, nativeSessionRequestSchema, nativeSessionCommandSchema, nativeSessionEntrySchema, resultEnvelope, nativeSessionResultSchema, nativeSessionCancelSchema, decodeNativeSessionCommand, encodeNativeSessionCommand, decodeNativeSessionResult, encodeNativeSessionResult, decodeNativeSessionCancel, encodeNativeSessionCancel, identifier, runtimeDiagnosticsRequestSchema, runtimeDiagnosticsResultSchema, decodeRuntimeDiagnosticsRequest, decodeRuntimeDiagnosticsResult, encodeRuntimeDiagnosticsRequest, encodeRuntimeDiagnosticsResult, runtimeUpgradeVersionSchema, runtimeUpgradeResultSchema, decodeRuntimeUpgradeResult, encodeRuntimeUpgradeResult, MAX_EVENT_COUNT, MAX_COLLECTION_SIZE, MAX_CONTENT_LENGTH, MAX_JSON_DEPTH, MAX_JSON_KEYS, SESSION_EVENT_V2_KIND, SESSION_EVENT_V2_BATCH_MAX_SIZE, boundedString, shortString, externalContentKeySchema, boundedJsonSchema, annotationsSchema, contentFields, textContentSchema, imageContentSchema, audioContentSchema, externalImageContentSchema, externalAudioContentSchema, externalResourceContentSchema, resourceLinkSchema, textResourceSchema, blobResourceSchema, embeddedResourceSchema, contentBlockV2Schema, toolCallContentSchema, toolCallLocationSchema, toolKindSchema, toolStatusSchema, toolPatchFields, planEntrySchema, planContentSchema, commandSchema, configSelectOptionSchema, configSelectGroupSchema, configBaseFields, sessionConfigOptionSchema2, contentChunkFields, acpSessionUpdateV2Schema, lifecycleBase, promptExecutionContextV2Schema, lifecycleMetadataV2Schema, sessionEventPayloadV2Schema, positionSchema, provenanceSchema, sharedSessionEventFieldsV2, sessionLiveEventFieldsV2, sessionEventV2Schema, sessionLiveEventV2Schema, sessionEventBatchV2Schema, sessionLiveEventBatchV2Schema, sessionExportV2Schema, mobiusSessionExportV2Schema, sessionEventEnvelopeV2Schema, sessionEventLogPageV2Schema, sessionEventOmissionV2Schema, nativeEventPageRequestV2Schema, queuedPromptRequestEventLogV2Schema, nativeSessionEventsV2Schema, decodeSessionEventV2, decodeSessionEventEnvelopeV2, encodeSessionEventEnvelopeV2, decodeAcpSessionUpdateV2, SESSION_LIVE_HISTORY_V2_PAGE_LOAD_KIND, SESSION_LIVE_HISTORY_V2_PAGE_LOADED_KIND, SESSION_PREVIEW_HISTORY_PAGE_LOAD_KIND, SESSION_PREVIEW_HISTORY_PAGE_LOADED_KIND, directoryIdentifier, pageRequestFields, sessionLiveHistoryV2PageLoadSchema, sessionPreviewHistoryPageLoadSchema, pageLoadedFields, sessionLiveHistoryV2PageLoadedSchema, sessionPreviewHistoryPageLoadedSchema, decodeSessionLiveHistoryV2PageLoad, decodeSessionLiveHistoryV2PageLoaded, decodeSessionPreviewHistoryPageLoad, decodeSessionPreviewHistoryPageLoaded, encodeSessionLiveHistoryV2PageLoad, encodeSessionLiveHistoryV2PageLoaded, encodeSessionPreviewHistoryPageLoad, encodeSessionPreviewHistoryPageLoaded, serviceToDaemonSignatures, serviceToDaemonRegistry, daemonToServiceSignatures, MOBIUS_API_PREFIX, API_PREFIX_PATTERN, MobiusApiConfigurationError, LocalPathError, PROCESS_TABLE_TIMEOUT_MILLISECONDS, PROCESS_TABLE_OUTPUT_LIMIT_BYTES, posixOperations, linuxPlatform, macosPlatform, ProcessExecutionError, execute, windowsPermissions, windowsPlatform, fallbackPlatform, platforms, hostPlatform, DEFAULT_OUTPUT_LIMIT_BYTES, PROCESS_GRACEFUL_STOP_TIMEOUT_MILLISECONDS, PROCESS_FORCED_STOP_TIMEOUT_MILLISECONDS, PROCESS_EXIT_CHECK_ATTEMPTS, GRACEFUL_STOP_SIGNAL, FORCED_STOP_SIGNAL, ExecutableIdentity, ResolvedExecutable, ProcessResult, platformSpawnOptions, AgentDefinition, LocalAgentDefinition, InProcessAcpAgentDefinition, LocalAgentCatalogSnapshot, LocalAgentCatalogError, LocalAgentCatalog, DaemonLocalContext, DaemonReconnectTarget, OpaqueDaemonReconnectTarget, AcpExecutionError, AcpConfigurationValueUnavailableError, unreachable, ActiveExecutions, MAX_LOCAL_RASTER_BYTES, MAX_INLINE_RASTER_BYTES, PNG_SIGNATURE, JPEG_SIGNATURE, GIF87_SIGNATURE, GIF89_SIGNATURE, RIFF_SIGNATURE, WEBP_SIGNATURE, LocalRasterImage, MAX_INLINE_VIDEO_BYTES, MP4_FILE_TYPE, WEBM_SIGNATURE, LocalVideo, AccumulatingOperationMetrics, unmeasuredOperationMetrics, IMAGE_MARKER, TRUNCATION_MARKER, AgentConnection, AcpActivityNarration, AcpActivity, ActivityIdentity, AcpActivityTracker, SESSION_CONTROL_COMMAND_ID, AcpTurnState, IdleAcpTurn, RunningAcpTurn, path7, title, nativeSessionIdSchema, nativeSessionInfoSchema, nativeSessionPageSchema, MAX_PENDING_UPDATES, MAX_PENDING_BYTES, AgentUpdateStream, RuntimeOperations, MAXIMUM_CONFIG_OPTIONS, SessionConfigProtocolError, StandardSessionConfigProtocol, standardSessionConfigProtocol, storedSessionConfigurationsSchema, decodeStoredSessionConfigurations, AcpSessionConfigurations, acpNativeHistoryReader, NullAcpSessionObserver, AcpPreparedSession, AcpAgentSettingsSnapshot, CATEGORIES, HISTORY_ACTIVITY_FIELD_LIMIT, HISTORY_ACTIVITY_LIMIT, HISTORY_MESSAGE_LIMIT, AcpHistoryReplay, PendingPermission, PendingElicitation, AcpSessionInteractions, entityKind, QueryPromise, OriginalColumn, noop, Column, TableName, TableSchema, TableColumns, ExtraConfigColumns, OriginalName, BaseName, IsAlias, ExtraConfigBuilder, IsDrizzleTable, Table, Subquery, WithSubquery, tracer, ViewBaseConfig, FakePrimitiveParam, StringChunk, SQL, Name, noopDecoder, noopEncoder, noopMapper, Param, Placeholder, IsDrizzleView, View, DrizzleError, DrizzleQueryError, TransactionRollbackError, eq, ne, gt, gte, lt, lte, ColumnTableAliasProxyHandler, ViewSelectionAliasProxyHandler, TableAliasProxyHandler, ColumnAliasProxyHandler, RelationTableAliasProxyHandler, FnConstructor, textDecoder, Relation, One, Many, AggregatedField, Count, operators, orderByOperators, RelationsBuilderTable, RelationsBuilderColumn, RelationsBuilderJunctionColumn, RelationsHelperStatic, ColumnBuilder, ConsoleLogWriter, DefaultLogger, NoopLogger, ForeignKeyBuilder, ForeignKey, SQLiteColumnBuilder, SQLiteColumn, SQLiteBigIntBuilder, SQLiteBigInt, SQLiteBlobJsonBuilder, SQLiteBlobJson, SQLiteBlobBufferBuilder, SQLiteBlobBuffer, SQLiteCustomColumnBuilder, SQLiteCustomColumn, SQLiteBaseIntegerBuilder, SQLiteBaseInteger, SQLiteIntegerBuilder, SQLiteInteger, SQLiteTimestampBuilder, SQLiteTimestamp, SQLiteBooleanBuilder, SQLiteBoolean, SQLiteNumericBuilder, SQLiteNumeric, SQLiteNumericNumberBuilder, SQLiteNumericNumber, SQLiteNumericBigIntBuilder, SQLiteNumericBigInt, SQLiteRealBuilder, SQLiteReal, SQLiteTextBuilder, SQLiteText, SQLiteTextJsonBuilder, SQLiteTextJson, InlineForeignKeys, SQLiteTable, sqliteTable, IndexBuilderOn, IndexBuilder, Index, PrimaryKeyBuilder, PrimaryKey, SQLiteViewBase, SelectionProxyHandler, TypedQueryBuilder, SQLiteSelectBuilder, SQLiteSelectBase, getSQLiteSetOperators, union22, unionAll, intersect, except, SQLiteDialect, QueryBuilder, SQLiteCountBuilder, SQLiteAsyncCountBuilder, SQLiteSyncCountBuilder, RelationalQueryBuilder, SQLiteRelationalQuery, SQLiteAsyncRelationalQuery, SQLiteSyncRelationalQuery, SQLiteDeleteBase, SQLiteAsyncDeleteBase, SQLiteInsertBuilder, SQLiteInsertBase, SQLiteAsyncInsertBase, SQLiteRaw, SQLiteAsyncRaw, SQLiteAsyncSelectBase, SQLiteUpdateBuilder, SQLiteUpdateBase, SQLiteAsyncUpdateBase, SQLiteAsyncDatabase, Cache, NoopCache, strategyFor, SQLitePreparedQuery, SQLiteSession, ExecuteResultSync, SQLiteAsyncPreparedQuery, SQLiteAsyncSession, SQLiteAsyncTransaction, acpSession, sessionLiveEventPositionAllocation, SessionEventHistoryProjectionV2, InMemorySessionEventIdAllocator, sessionEventV2, cachedEventRowSchema, SessionEventCacheV2Database, HOT_EVENT_HIGH_WATER_MARK, HOT_EVENT_RETENTION, ProjectedSessionEventV2, SessionEventsV2, MemoryAcpSessionEventStoreV2, CachedAcpSessionEventStoreV2, AcpStoredSession, AcpStoredSessionLookup, MissingAcpStoredSession, FoundAcpStoredSession, MemoryAcpSessionStore, storedSessionRowSchema, SqliteAcpSessionStore, PROCESS_STOP_TIMEOUT_MILLISECONDS, RetryableAcpInitializationError, AgentSession, RetainedAgentProcesses, AgentQueryProcesses, MAXIMUM_ENCODED_CONTENT_CHARACTERS, embeddedImageSchema, inlineImageUrlSchema, toolImageSchema, AcpContentExternalizer, contentRequest, CONTENT_LIFETIME_MILLISECONDS, metadataSchema, UnretainedExternalContentStore, LocalExternalContentStore, SystemDaemonTimer, systemDaemonTimer, AcpProcessCapacityLease, AcpProcessCapacityWaiter, AcpProcessCapacityLock, MAX_ACP_PROCESSES, AgentProcessPool, SESSION_CONTROL_TIMEOUT_MILLISECONDS, SESSION_CLOSE_TIMEOUT_MILLISECONDS, AgentRuntimeManager, LocalAuthorizationError, package_default, AgentDiscovery, AvailableAgent, UnavailableAgent, MissingAdapter, MissingAgent, AgentProbeFailed, UnsupportedAgentVersion, IntegrationProbeFailed, IncompatibleAdapter, AuthenticationRequiredAgent, AgentDiscoveryResult, LocalAgentInventory, One2, Pne, ZE, Ine, Dne, Nne, Mne, Wn, T, Une, on, O, xe, zne, jne, $t, zt, oN, tx, nx, sN, iN, Zc, qn, cl, ma, j, Lt, mn, bs, Zd, Ig, Yd, Jd, Xd, Qd, ep, tp, np, rp, gt2, zce, GM, wn, Av, VM, sp, io, ao, Ur, JM, Hce, qM, ZM, YM, ip, Dg, eU, kv, Rv, Ov, tU, Pv, Ng, Zo, Iv, nU, oU, iU, aU, sU, Yt, Lv, uU, Nv, fU, mU, Mg, ha, hU, gU, ll, _U, pU, Mv, Zce, rt, ul, Uv, yU, Le, SU, bU, xU, lp, Hg, Bg, Jce, vU, wU, $v, Yo, Jo, jv, Kg, Xce, CU, kU, Hv, Qce, RU, Bv, PU, DU, NU, UU, ii, yr, Sr, Wv, zU, up, An, dp, Wg, HU, KU, fp, ga, Vg, qg, Zg, Yg, lo, Ae, Zv, et, Jv, Xv, pl, GU, ule, dle, Yv, fl, WU, ple, fle, VU, ew, qU, oe, ZU, Xg, _le, YU, k, Ne, JU, yle, M, at, hp, tw, gp, nw, _p, rw, Sp, e_, yp, Xo, Ep, sw, xp, iw, vp, aw, rF, iF, cF, fF, mF, Tp, uw, Cp, dw, ml, pw, kp, mw, hl, o_, Fr, s_, i_, a_, Rp, Op, gl, Ule, Fle, $le, Sa, c_, hw, _l, ui, yl, yF, ve, ba, bF, PF, Pp, m_, Sl, Ea, uo, Nt, l_, hn, u_, Ip, h_, Jt, El, Er, xl, di, bl, Es, Dp, $r, d_, kF, EF, xF, vF, _w, wF, p_, f_, yw, AF, RF, TF, Ble, Kle, Gle, CF, Wle, xa, g_, IF, DF, Lp, Yle, Ew, rue, UF, YF, Cw, __, Ln, Jn, Mp, wa, zr, Aw, FF, HF, cue, Up, lue, uue, due, pue, yue, Sue, JF, $p, S_, Fp, kw, XF, xue, Rw, Aa, Ow, Al, Pw, zp, Iw, jp, Dw, Ta, Lw, Tl, Cl, Nw, Hp, Mw, b_, Uw, zw, jw, Iue, kl, Due, Lue, e$, t$, pi, Hw, Xn, fi, Rl, Bp, x_, Kp, Gp, v_, Wp, Qo, Vp, w_, A_, Ca, T_, C_, qp, Bw, n$, Zp, Kw, Gw, Ww, r$, Vw, Yp, s$, i$, a$, Jp, Ol, ka, Qt, Qn, vr, xs, mi, Xp, c$, Zw, Qp, Yw, l$, Mue, hi, Jw, Pl, Xw, ef, Qw, tf, eA, Il, tA, gi, nA, nf, rA, Dl, oA, rf, sA, Ll, iA, of, aA, Nl, cA, Ht, lA, Ml, uA, fA, jr, _i, Ul, sf, k_, af, cf, R_, lf, es, uf, O_, P_, Ra, I_, D_, df, mA, p$, hA, gA, _A, yA, f$, pf, h$, ff, bA, Oa, g$, Jue, EA, Fl, xA, _$, Mt, vA, wA, L_, y$, S$, b$, Pa, AA, E$, Sw, Wge, V_, q_, nj, Z_, So, Y_, su, ou, rj, qge, tr, oj, Tf, Zge, W_, Yge, Jge, Xge, Qge, e_e, t_e, n_e, r_e, Qz, ej, s_e, i_e, a_e, c_e, l_e, u_e, d_e, Ua, ij, p_e, f_e, m_e, h_e, g_e, __e, y_e, S_e, b_e, E_e, x_e, tj, v_e, aj, w_e, A_e, T_e, C_e, R_e, O_e, P_e, cj, I_e, D_e, A, pt, On, G, Cr, dj, hj, gj, Ej, vj, cT, lT, uT, dT, pT, Ij, fT, Mj, Fj, mT, jj, Bj, Gj, Vj, Zj, Q_, Xj, e1, n1, o1, i1, c1, u1, p1, m1, g1, hT, S1, gT, v1, _T, yT, k1, Fa, ny, ST, D1, N1, U1, B1, q1, Y1, nH, oH, iH, lH, dH, fH, gH, _H, iy, kT, RSe, Ci, Pf, EH, xH, vH, ay, wH, PT, AH, ki, If, TH, CH, IT, kH, RH, LSe, OH, PH, NT, LT, DT, NSe, MSe, USe, IH, Ye, Eo, DH, cy, UT, uu, FT, du, ly, HSe, LH, NH, MH, BSe, VSe, Lf, Pt, os4, UH, FH, kr, ja, dy, py, YSe, zH, HH, BT, GH, VH, YH, eB, tB, rB, cB, Va, Jbe, lB, sC, uB, iC, dB, pB, Qbe, Sy, aC, fB, nEe, Hf, qa, rEe, oEe, sEe, mB, hB, gB, _B, yB, aEe, SB, bB, cEe, vB, lEe, EB, uEe, dEe, xB, wB, AB, TB, CB, kB, Ts, hu, gu, by, $B, FB, OB, _Ee, PB, yEe, SEe, bEe, IB, Ey, DB, LB, EEe, vEe, wEe, AEe, NB, TEe, jB, HB, BB, KB, GB, WB, VB, xy, vy, uC, CEe, qB, ZB, kEe, YB, JB, REe, OEe, PEe, dC, XB, wy, IEe, QB, e2, t2, DEe, LEe, pC, fkt, n2, fC, r2, MEe, Ay, mC, o2, Cy, s2, Bf, i2, Kf, Gr, Gf, a2, gC, c2, l2, u2, SC, d2, p2, qt, Rr, m2, uRt, dRt, pRt, h2, fRt, mRt, hRt, gRt, ky, _Rt, yRt, SRt, bRt, ERt, xRt, vRt, Ry, $Ee, _2, Cs, Wf, T2, Su, bu, AC, CC, Z2, Uy, jy, pK, DC, yK, ave, cve, lve, uve, dve, pve, fve, mve, SK, hve, gve, EK, NC, JRt, AK, TK, Eve, vve, CK, XK, QK, eG, QC, aG, nc, fG, Vy, _G, rc, vG, TG, nk, am, LG, pk, WG, mk, XG, lm, Sk, Yy, Jy, xk, Xy, Ak, Tk, kW, Ck, DW, NW, UW, zW, VW, YW, QW, nV, sV, lV, pV, gV, bV, AV, kV, LV, UV, GV, Qm, wI, Pe, We, Ks, th, xY, II, DI, nh, UY, Xr, WY, YY, zI, QY, rh, ih, Db, ah, Nb, RJ, JI, zJ, WJ, ZJ, r5, s5, d5, f5, h5, _5, b5, x5, w5, T5, k5, O5, Gb, L5, M5, F5, z5, iD, aD, Z5, X5, e8, i8, l8, lD, m8, S8, E8, v8, A8, C8, P8, D8, N8, U8, $8, H8, G8, Z8, X8, Q8, fD, uX, pX, gX, VL, Hne, Dnt, Kne, YL, Ho, Zs, qne, Zne, JL, XL, QL, e0, Ys, t0, n0, r0, o0, ore, qh, sre, ire, Gt, are, sn, s0, cre, lre, Md, i0, dre, pre, a0, mre, hre, c0, mr, jt, yre, Sre, bre, Ere, Mc, vre, Zh, l0, u0, Are, Tre, ps, kre, Rre, Ore, Pre, Ire, Dre, Lre, d0, p0, Vn, Fre, Js, $re, fs4, f0, m0, Hre, Bre, Kre, h0, Wre, Vre, g0, Zre, _0, JE, y0, S0, Xs, b0, E0, x0, v0, aa, ooe, w0, Bo, ioe, A0, T0, C0, k0, R0, doe, poe, Jh, moe, zc, O0, P0, _oe, yoe, Soe, boe, Eoe, xoe, voe, woe, Aoe, Toe, Coe, koe, Roe, I0, XE, D0, jc, Ioe, bt, Xh, L0, Qh, Moe, Uoe, N0, Foe, Hc, M0, Zt, joe, QE, U0, Boe, Koe, Goe, ms, tg, F0, j0, $0, Voe, z0, qoe, Zoe, Ko, Yoe, Joe, Qs, Qoe, Bc, tse, nse, rse, ose, sse, ise, ase, cse, lse, use, dse, pse, fse, mse, hse, gse, _se, yse, Sse, bse, Ese, xse, vse, wse, ht, H0, Kc, rg, B0, Ud, Cse, ex, kse, Go, K0, Rse, Gc, Ose, Pse, og, Dse, Wc, sg, Mse, G0, Use, Fse, W0, ei, Wo, Fd, Bse, Kse, Gse, V0, Vse, ig, qse, ag, Zse, cg, Yse, lg, q0, Jse, Z0, Y0, J0, X0, Xse, Qse, eie, tie, nie, ca, hs, rie, Q0, eN, ug, oie, tN, nN, Vc, qc, aie, nt, dg, cN, rx, dN, uie, sx, ix, die, Yc, ti, pN, mie, pg, fN, gie, _ie, mN, fg, hN, mg, gN, vie, Jc, Aie, Tie, Xc, kie, zd, Rie, _N, Pie, Iie, Die, yN, Qc, Nie, SN, bN, xN, vN, Dr, Fie, hr, ni, wN, AN, TN, hg, Gie, Wie, CN, el, kN, RN, ON, ri, jd, PN, tl, cx, lx, ux, dx, px, fx, mx, hx, gx, _x, yx, IN, Sx, bx, DN, Ex, nae, xx, vx, wx, Ax, Tx, Cx, kx, Rx, Ox, Px, aae, cae, lae, UN, uae, Dx, jN, jx, Hx, gae, Kx, xg, Gx, Wx, Vx, qx, XN, Zx, Yx, Jx, Xx, Qx, ev, tv, nv, rv, yae, rM, Rdt, Odt, Pdt, Eae, Ldt, Ndt, xae, Mdt, vae, Udt, _s, Cae, kae, vg, jdt, Oae, Pae, Mae, jae, Hae, Bae, Kae, Gae, aM, hM, Vae, qae, Zae, Yae, Ee, Jae, Og, fa, gv, Ss, yM, SM, bM, EM, xM, vM, _v, yv, dv, uM, rce, oce, ice, wM, pv, Rg, mv, hv, cce, lce, dM, si, _r, wce, Ace, Tce, Wt, Oce, Pce, zM, Dce, wv, Lce, Ipt, HM, BM, KM, Nce, Mce, Uce, Fce, Dpt, Ze, v$, Cn, tde, ade, cde, ude, dde, lEt, fde, _de, PA, T$, Ade, IA, N$, Lde, $A, Nn, Fe, NA, W, ts, H, Nde, er, Mde, vs, M$, hf, Fde, _n, he, Ia, Rn, F_, $_, Si, jl, ae, ho, U$, De, $de, zde, jde, Hde, Bde, Kde, Gde, Wde, Vde, MA, qde, Zde, Yde, Jde, Xde, Qde, $$, epe, po, Ei, xi, Kl, Da, gf, Gl, Wl, La, bi, ns, _f, fo, Rt, Vl, ws, z_, ql, rs, yf, Sf, Na, Bl, Zl, Yl, vi, Jl, Ma, go, mo, As, Xl, Ql, bf, ipe, j_, Ef, eu, ape, B, cpe, K$, G$, lpe, upe, W$, dpe, ppe, fpe, mpe, hpe, gpe, _pe, ype, Spe, FA, bpe, Epe, xpe, vpe, wpe, Ape, Tpe, Cpe, kpe, Rpe, Ope, Ppe, Ipe, Dpe, Lpe, Npe, Mpe, Upe, Fpe, $pe, zpe, jpe, Hpe, Bpe, V$, Gpe, Vpe, qpe, Zpe, Ype, Jpe, d, Xpe, Qpe, efe, tfe, nfe, rfe, ofe, sfe, ife, afe, cfe, lfe, ufe, dfe, pfe, ffe, mfe, hfe, gfe, _fe, yfe, Sfe, bfe, Efe, xfe, vfe, wfe, Afe, Tfe, Cfe, kfe, Rfe, Ofe, Pfe, Ife, Dfe, Lfe, Nfe, Mfe, Ufe, Ffe, $fe, zfe, jfe, Hfe, Bfe, Kfe, Gfe, Wfe, Vfe, qfe, Zfe, Yfe, Jfe, Xfe, Qfe, eme, tme, nme, rme, ome, sme, ime, zA, ame, cme, lme, ume, dme, pme, fme, mme, hme, gme, _me, yme, Sme, bme, Eme, xme, vme, wme, Ame, Tme, Cme, kme, Rme, Ome, Pme, Ime, Dme, Lme, Nme, Mme, Ume, Fme, $me, zme, jme, Hme, Bme, Kme, Gme, Wme, Vme, qme, Zme, Yme, Jme, Xme, Qme, ehe, the, nhe, rhe, ohe, she, ihe, ahe, che, lhe, uhe, dhe, phe, fhe, mhe, hhe, ghe, _he, rxt, yhe, Q$, She, bhe, Ehe, oxt, Y$, xhe, whe, H_, jA, rz, HA, BA, sz, khe, az, iz, KA, vxt, Lhe, dz, pz, Nhe, _o, gz, Mhe, fz, mz, $he, jhe, Hhe, yz, Bhe, Khe, Ghe, Vhe, ZA, Jhe, Qhe, Cz, kz, nge, Zxt, ige, en, lt2, xge, JA, Tge, Lz, Uz, Ige, avt, Dge, cvt, Ai, nT, ru, Lge, Nge, Mge, bvt, $ge, Hz, jz, Wz, jge, qz, Zz, kK, Mve, RK, OK, Kve, Qf, UC, ku, Wve, Vve, qve, Zve, Yve, Jve, Xve, Qve, ewe, twe, nwe, rwe, owe, swe, iwe, awe, cwe, lwe, uwe, dwe, pwe, fwe, mwe, hwe, gwe, _we, ywe, Swe, bwe, Ewe, xwe, vwe, wwe, Awe, Twe, Cwe, kwe, Rwe, Owe, Pwe, Iwe, Dwe, Lwe, Nwe, Mwe, Uwe, Fwe, $we, zwe, jwe, Hwe, Bwe, Kwe, Gwe, Wwe, Vwe, qwe, Zwe, Ywe, Jwe, Xwe, Qwe, eAe, tAe, nAe, rAe, oAe, sAe, iAe, aAe, cAe, lAe, uAe, dAe, pAe, fAe, mAe, hAe, gAe, _Ae, yAe, SAe, bAe, EAe, xAe, vAe, wAe, AAe, TAe, CAe, kAe, RAe, OAe, PAe, IAe, DAe, LAe, NAe, MAe, UAe, FAe, $Ae, zAe, jAe, HAe, BAe, KAe, GAe, WAe, VAe, qAe, ZAe, YAe, JAe, XAe, QAe, eTe, tTe, nTe, rTe, oTe, sTe, iTe, aTe, cTe, lTe, uTe, dTe, pTe, fTe, mTe, hTe, gTe, _Te, yTe, STe, bTe, ETe, xTe, vTe, wTe, ATe, TTe, CTe, kTe, RTe, OTe, PTe, ITe, DTe, LTe, NTe, MTe, UTe, FTe, $Te, zTe, jTe, HTe, BTe, KTe, GTe, WTe, VTe, qTe, ZTe, YTe, JTe, XTe, QTe, eCe, tCe, nCe, rCe, oCe, sCe, iCe, aCe, cCe, lCe, uCe, dCe, pCe, fCe, mCe, hCe, gCe, _Ce, yCe, SCe, bCe, ECe, xCe, vCe, wCe, ACe, TCe, CCe, kCe, RCe, OCe, PCe, ICe, DCe, LCe, NCe, MCe, UCe, FCe, $Ce, zCe, jCe, HCe, BCe, KCe, GCe, WCe, VCe, qCe, ZCe, YCe, JCe, XCe, QCe, eke, tke, nke, rke, oke, ske, ike, ake, cke, lke, uke, dke, pke, fke, mke, hke, gke, _ke, yke, Ske, bke, Eke, xke, vke, wke, FC, Ake, Tke, Cke, kke, Rke, Oke, Pke, Ike, Dke, Lke, Nke, Mke, Uke, Fke, $ke, zke, jke, Hke, Bke, Kke, Gke, Wke, Vke, qke, Zke, Yke, Jke, Xke, Qke, eRe, tRe, nRe, rRe, oRe, sRe, iRe, aRe, cRe, lRe, uRe, dRe, pRe, fRe, mRe, hRe, gRe, _Re, yRe, SRe, bRe, ERe, xRe, vRe, wRe, ARe, TRe, CRe, kRe, RRe, ORe, PRe, IRe, DRe, LRe, NRe, MRe, URe, FRe, $Re, zRe, jRe, HRe, BRe, KRe, GRe, WRe, VRe, qRe, ZRe, YRe, JRe, XRe, QRe, eOe, tOe, nOe, rOe, oOe, sOe, iOe, aOe, cOe, lOe, uOe, dOe, pOe, fOe, mOe, hOe, gOe, _Oe, yOe, SOe, bOe, EOe, xOe, vOe, wOe, AOe, TOe, COe, kOe, ROe, OOe, POe, IOe, DOe, LOe, NOe, MOe, UOe, FOe, $Oe, zOe, jOe, HOe, BOe, KOe, GOe, WOe, VOe, qOe, ZOe, YOe, JOe, XOe, QOe, ePe, tPe, nPe, rPe, oPe, sPe, iPe, aPe, cPe, lPe, uPe, dPe, pPe, fPe, mPe, hPe, gPe, _Pe, yPe, SPe, bPe, EPe, xPe, vPe, wPe, APe, TPe, CPe, kPe, RPe, OPe, PPe, IPe, DPe, LPe, NPe, MPe, UPe, FPe, $Pe, zPe, jPe, HPe, BPe, KPe, GPe, WPe, VPe, qPe, ZPe, YPe, $C, JPe, XPe, QPe, eIe, tIe, nIe, rIe, oIe, sIe, iIe, aIe, cIe, lIe, uIe, dIe, pIe, fIe, mIe, hIe, gIe, _Ie, yIe, SIe, bIe, EIe, xIe, vIe, wIe, AIe, TIe, CIe, kIe, RIe, OIe, PIe, IIe, DIe, LIe, NIe, MIe, UIe, FIe, $Ie, zIe, jIe, HIe, BIe, KIe, GIe, WIe, VIe, qIe, ZIe, YIe, JIe, XIe, QIe, eDe, tDe, nDe, rDe, oDe, sDe, iDe, aDe, cDe, lDe, uDe, dDe, pDe, fDe, mDe, hDe, gDe, _De, yDe, SDe, bDe, EDe, xDe, vDe, wDe, ADe, TDe, CDe, kDe, RDe, ODe, PDe, IDe, DDe, LDe, NDe, MDe, UDe, FDe, $De, zDe, jDe, HDe, BDe, KDe, GDe, WDe, VDe, qDe, ZDe, YDe, JDe, XDe, QDe, eLe, tLe, nLe, rLe, oLe, sLe, iLe, aLe, cLe, lLe, uLe, dLe, pLe, fLe, mLe, hLe, gLe, _Le, yLe, SLe, bLe, ELe, xLe, vLe, wLe, ALe, TLe, CLe, kLe, RLe, OLe, PLe, ILe, DLe, LLe, NLe, MLe, ULe, FLe, $Le, zLe, jLe, HLe, BLe, KLe, GLe, WLe, VLe, qLe, ZLe, YLe, JLe, XLe, QLe, e0e, t0e, n0e, r0e, o0e, s0e, i0e, a0e, c0e, l0e, u0e, d0e, p0e, f0e, m0e, h0e, g0e, _0e, y0e, S0e, b0e, E0e, x0e, v0e, w0e, A0e, T0e, C0e, k0e, R0e, O0e, P0e, I0e, D0e, L0e, N0e, M0e, U0e, F0e, $0e, z0e, j0e, H0e, B0e, K0e, G0e, W0e, V0e, q0e, Z0e, Y0e, J0e, X0e, Q0e, eNe, tNe, nNe, rNe, oNe, sNe, iNe, aNe, cNe, lNe, uNe, dNe, pNe, fNe, mNe, hNe, gNe, _Ne, yNe, SNe, bNe, ENe, xNe, vNe, wNe, ANe, TNe, CNe, kNe, RNe, ONe, PNe, INe, DNe, LNe, NNe, MNe, UNe, FNe, $Ne, zNe, jNe, HNe, BNe, KNe, GNe, WNe, VNe, qNe, ZNe, YNe, JNe, XNe, QNe, eMe, tMe, zC, nMe, rMe, oMe, sMe, iMe, aMe, cMe, lMe, uMe, dMe, pMe, fMe, mMe, hMe, gMe, _Me, yMe, SMe, bMe, EMe, xMe, vMe, wMe, AMe, TMe, CMe, kMe, RMe, OMe, PMe, IMe, DMe, LMe, NMe, MMe, UMe, FMe, $Me, zMe, jC, jMe, HMe, BMe, KMe, GMe, WMe, VMe, qMe, ZMe, YMe, JMe, XMe, QMe, eUe, tUe, nUe, rUe, oUe, sUe, iUe, aUe, cUe, lUe, uUe, dUe, pUe, fUe, mUe, hUe, gUe, _Ue, yUe, SUe, bUe, EUe, xUe, vUe, wUe, AUe, TUe, CUe, kUe, RUe, OUe, HC, DK, PUe, IUe, DUe, LUe, NUe, MUe, UUe, FUe, $Ue, zUe, jUe, HUe, BUe, KUe, GUe, WUe, VUe, qUe, ZUe, YUe, JUe, XUe, QUe, eFe, tFe, nFe, rFe, oFe, sFe, iFe, aFe, cFe, lFe, uFe, dFe, pFe, fFe, mFe, hFe, gFe, _Fe, yFe, SFe, bFe, EFe, xFe, vFe, wFe, AFe, TFe, CFe, kFe, RFe, OFe, PFe, IFe, DFe, LFe, MFe, Mn, UFe, NOt, FFe, MOt, NK, zFe, VFe, GC, HK, qFe, BK, By, ZFe, qC, Ru, r$e, tm, o$e, WK, a$e, JC, rm32, Gy, Wy, Ou, u$e, XC, KE, WV, Nu, _Dt, Wk, yDt, SDt, bDt, EDt, ZV, Lje, Nje, Mje, Hje, Un, Zje, XV, XDt, QDt, Is, s1e, rS, i1e, pm, a1e, bq, u1e, d1e, cS, m1e, tn, vq, RLt, Tq, Cq, kq, Rq, x1e, v1e, Oq, w1e, A1e, Pq, T1e, C1e, Dq, I1e, Lq, L1e, Mq, N1e, M1e, uS, Uq, zq, F1e, jq, z1e, H1e, K1e, G1e, gm, Hq, Kq, Gq, X1e, wq, Q1e, eHe, tHe, oHe, r4, x0t, o4, Us, ym, Hu, Ue, s4, hS, aR, MHe, lR, i4, dR, a4, _4, y4, _S, wm, Am, yS, Tm, SS, Cm, lc, km, uc, S4, b4, E4, x4, v4, w4, A4, T4, C4, k4, R4, O4, P4, I4, D4, L4, gR, N4, GHe, U4, F4, $4, z4, j4, _R, H4, B4, K4, G4, Z4, Y4, J4, bS, X4, Q4, e6, t6, n6, fn, r6, yR, SR, o6, s6, i6, a6, c6, Rm, l6, u6, d6, p6, f6, m6, h6, bR, _6, Xe, Om, ft, xR, vR, wR, AR, TR, CR, kR, RR, OR, PR, IR, T6, C6, k6, R6, DR, LR, NR, MR, UR, FR, $R, zR, vS, jR, HR, BR, KR, GR, WR, VR, qR, ZR, YR, D6, wS, JR, XR, QR, eO, tO, nO, AS, rO, oO, sO, iO, aO, cO, TS, L6, lO, uO, dO, qHe, N6, M6, ko, q6, Im, XHe, nP, rP, oP, sP, iP, aP, cP, lP, uP, dP, pP, fP, mP, hP, gP, _P, yP, SP, bP, EP, xP, vP, wP, AP, TP, OS, CP, Mm, l3, u3, d3, p3, sBe, Pr, m3, h3, g3, _3, y3, S3, b3, E3, x3, v3, w3, A3, T3, ct, P3, NP, xt, HBe, C3, PS, BBe, KBe, GBe, WBe, VBe, qBe, ZBe, YBe, JBe, XBe, QBe, e2e, t2e, n2e, r2e, o2e, IS, s2e, MP, I3, i2e, a2e, c2e, l2e, N3, u2e, FP, M3, d2e, p2e, DP, LP, f2e, m2e, LS, h2e, _2e, y2e, b2e, $3, v2e, z3, A2e, T2e, k2e, j3, qr, B3, MS, K3, U2e, j2e, q2e, Z2e, uKe, PZ, $Ke, LZ, vUt, HKe, BKe, Bi, ZS, rn, $Z, zZ, KUt, GKe, WKe, ZP, Ir, jm, bn, Yr, Jr, En, YS, HZ, BZ, JP, fe, XP, GUt, WUt, JS, VKe, XS, qKe, Bm, Qu, WZ, ZKe, YKe, JKe, XKe, QKe, eGe, QP, tGe, nGe, eI, QS, rGe, oGe, eb, sGe, Km, Gm, iGe, Wm, ed, aGe, Vm, tb, nb, rb, VUt, ob, sb, ib, VZ, qZ, ZZ, tI, YZ, qm, td, JZ, cGe, ab, lGe, cb, uGe, nI, dGe, lb, pGe, fGe, mGe, hGe, gGe, _Ge, yGe, SGe, bGe, EGe, ub, xGe, vGe, db, rI, oI, sI, wGe, AGe, TGe, iI, CGe, kGe, RGe, OGe, PGe, XZ, pb, IGe, fb, qUt, DGe, nd, LGe, ZUt, Zm, NGe, aI, MGe, UGe, FGe, $Ge, zGe, jGe, HGe, qS, BGe, KGe, GGe, Ym, cI, WGe, VGe, qGe, ZGe, YGe, JGe, XGe, QGe, eWe, tWe, nWe, rWe, oWe, sWe, iWe, aWe, cWe, lWe, rd, uWe, dWe, pWe, mb, fWe, mWe, hWe, lI, gWe, YUt, JUt, XUt, QUt, eFt, tFt, SWe, _X, yX, EX, rJe, IX, iJe, FHt, DX, MX, lJe, BX, _Je, yJe, GX, WX, VX, qX, _d, YX, PD, JX, tE, ZX, AJe, Qi, XX, vh, yd, nE, TJe, n7, e7, vc, r7, kJe, wh, Th, oE, a7, o7, IJe, s7, i7, Ch, Sd, sE, iE, c7, UJe, l7, FJe, bd, aE, u7, jJe, HJe, BJe, d7, KJe, GJe, cE, kh, qJe, ZJe, Ed, eo, p7, QJe, e5e, f7, ls, m7, h7, _7, y7, S7, lE, b7, c5e, E7, l5e, u5e, d5e, x7, f5e, uE, v7, w7, A7, _5e, Bn, T7, C7, k7, R7, x5e, v5e, dE, O7, xd, T5e, C5e, P7, I7, O5e, D7, L7, N7, M7, D5e, L5e, N5e, M5e, U5e, F5e, $5e, z5e, j5e, H5e, B5e, K5e, G5e, W5e, V5e, q5e, Z5e, Y5e, J5e, U7, Q5e, F7, $7, t8e, z7, n8e, j7, H7, o8e, B7, s8e, i8e, a8e, K7, c8e, l8e, u8e, d8e, G7, p8e, f8e, m8e, W7, h8e, g8e, _8e, y8e, S8e, b8e, E8e, x8e, v8e, w8e, A8e, T8e, C8e, k8e, R8e, O8e, mt, V7, q7, Z7, Y7, L8e, N8e, J7, X7, Q7, eQ, nQ, rQ, fE, j8e, H8e, B8e, K8e, mE, oQ, hE, sQ, q8e, Rh, Z8e, iQ, aQ, Oh, Ph, Q8e, eXe, gE, vd, _E22, ta, ID, yE, SE, tXe, nXe, DD, fQ, rXe, ND, _Q, yQ, SQ, bQ, EQ, iXe, MD, aXe, lVt, UD, cXe, FD, $D, lXe, uVt, uXe, zD, jD, HD, dVt, xQ, vQ, wQ, dXe, pXe, fXe, mXe, gXe, wd, yXe, TQ, xVt, vVt, CQ, kQ, RQ, OQ, PQ, SXe, IQ, DQ, LQ, NQ, kVt, MVt, UVt, xXe, MQ, zQ, Dh, EE, BD, Cc, kXe, BQ, RXe, VVt, Lh, kc, YVt, JVt, Ad, na, OXe, WQ, PXe, IXe, qQ, ZQ, DXe, LXe, NXe, MXe, UXe, FXe, GD, $Xe, wE, XVt, jXe, HXe, WXe, YD, ZXe, ree, YXe, JXe, oee, XXe, QXe, us, Rc, JQ, XQ, qD, ZD, see, iee, AE, XD, n7e, r7e, yqt, o7e, s7e, i7e, a7e, c7e, l7e, aee, u7e, d7e, p7e, f7e, cee, m7e, QQ, h7e, g7e, lee, _7e, y7e, eee, S7e, b7e, uee, E7e, dee, x7e, v7e, w7e, A7e, C7e, k7e, R7e, O7e, pee, Td, VD, P7e, I7e, L7e, fee, N7e, M7e, U7e, F7e, $7e, j7e, B7e, K7e, G7e, W7e, V7e, J7e, Sqt, tee, hee, bqt, Eqt, gee, X7e, Q7e, eQe, xqt, tQe, nQe, vqt, rQe, wqt, CE, _ee, oQe, eL, kE, Eee, xee, Iqt, Dqt, PE, uQe, sL, Ree, Uh, fQe, h4t, mQe, hQe, cL, lL, uL, dL, LE, NE, gQe, EQe, wQe, AQe, kd, TQe, Pee, Iee, DE, jee, CQe, kQe, RQe, OQe, PQe, ds, pL, iL, IE, Oc, NQe, g4t, UQe, Dee, Lee, FQe, $Qe, Rd, Nee, zQe, XQe, Yee, Jee, net, ete, iet, o6t, s6t, uet, rte, $h, zh, oa, ote, ste, ite, gL, Od, cte, qs, _et, yet, $6t, xet, Aet, Net, hte, Ket, Wet, _te, itt, ltt, Rte, Ote, mtt, htt, gtt, Ett, Lte, wtt, Ctt, zte, Utt, sa, Wte, $tt, jtt, Htt, Ytt, Qte, Jtt, Xtt, Qtt, ent, dnt, hnt, OPTION_META_KEY, CUSTOM_ANSWER_META_KEY, REFUSAL_FALLBACK_DIALOG_KIND, REFUSAL_FALLBACK_CHOICE_KEY, RETRY_FALLBACK_RESULT, KEEP_REFUSAL_RESULT, SESSION_LIST_TIMEOUT_MILLISECONDS, workerSource, SESSION_FORK_TIMEOUT_MILLISECONDS, workerSource2, SESSION_MESSAGES_TIMEOUT_MILLISECONDS, sessionMessagesSchema, workerSource3, DEFAULT_MODEL_ID, DEFAULT_AGENT_ID, EFFORT_CONFIG_ID, ExitPlanCoordinator, GOAL_EXTENSION_VERSION, GOAL_CONTROL_METHOD, GOAL_ACTIONS, IS_ROOT, ALLOW_BYPASS, PERMISSION_MODE_ALIASES, MAX_UPDATES, MAX_RULES_PER_UPDATE, MAX_DIRECTORIES_PER_UPDATE, MAX_TOOL_NAME_LENGTH, MAX_RULE_CONTENT_LENGTH, MAX_DIRECTORY_LENGTH, DESTINATIONS, BEHAVIORS, MODES, PERMISSION_OPTION_ID, COMPUTER_USE_MCP_TOOL_PREFIX, USAGE_OPEN, USAGE_CLOSE, AGENT_ID_LINE, PARTIAL_OUTPUT_NOTE, PARTIAL_OUTPUT_LABEL, toolUseCallbacks, registerHookCallback, createPostToolUseHook, createTaskHook, MAX_TITLE_LENGTH, MAX_TITLE_CONTEXT_LENGTH, MIN_TITLE_CONTEXT_LENGTH, SessionTitles, SettingsManager, Pushable, MODE_CONFIG_ID, AUTO_MODE_FALLBACK, AUTO_MODE_FALLBACK_NOTICE, SessionModeManager, CLAUDE_CONFIG_DIR, execFileAsync, ZERO_USAGE, DEFAULT_CONTEXT_WINDOW, DEFAULT_FORCE_CANCEL_GRACE_MS, MCP_OAUTH_STATUS_POLL_MS, MCP_OAUTH_TIMEOUT_MS, TURN_NO_RESULT_MESSAGE, RESULT_WATCHDOG_TIMEOUT_MS, STEER_METHOD, STEER_PRIORITY_NOW, STEER_PRIORITY_LATER, AUTONOMOUS_RESULT_ORIGINS, SUPPORTED_PROTOCOLS, PROVIDER_ID, DEFAULT_ANTHROPIC_BASE_URL, SUBAGENT_TRANSCRIPT_CAPABILITY, SESSION_ENDED_MESSAGE, LOCAL_ONLY_COMMANDS, LOCAL_COMMAND_MARKERS, ClientConnection, mcpAuthentications, ClaudeAcpAgent, BUILTIN_AGENT_NAMES, MODEL_CONFIG_ID, AGENT_CONFIG_ID, FAST_MODE_CONFIG_ID, FAST_MODE_ON, FAST_MODE_OFF, FAST_MODE_DESCRIPTION, FAST_MODE_UNAVAILABLE_EXPLANATIONS, MODEL_CONTEXT_HINT_PATTERN, CONTEXT_HINT_SUFFIX_PATTERN, MODEL_FAMILY_VERSION_PATTERN, SKILL_CONTAINER_DIRS, contextWindowCache, PROVIDER_ROUTING_ENV_VARS, ClaudeAcpEndpoint, VERSION_PROBE_TIMEOUT_MILLISECONDS, ACP_PROBE_TIMEOUT_MILLISECONDS, LocalAgentSpecification, DirectAcpAgentDefinition, InProcessAcpAgentDefinition2, ClaudeCodeAgentSpecification, boundedText, jsonValue, requestIdSchema, errorResponseSchema, resultResponseSchema, serverRequestSchema, serverNotificationSchema, turnStatusSchema, messagePhaseSchema, commandExecutionStatusSchema, patchApplyStatusSchema, mcpToolCallStatusSchema, dynamicToolCallStatusSchema, collabAgentToolCallStatusSchema, fileUpdateChangeSchema, imageGenerationItemSchema, threadItemSchema, turnSchema, turnSteerResponseSchema, turnNotificationSchema, errorNotificationSchema, commandApprovalParamsSchema, fileChangeApprovalParamsSchema, userInputOptionSchema, userInputQuestionSchema, requestUserInputParamsSchema, reasoningTextDeltaParamsSchema, mcpElicitationParamsSchema, threadStartResponseSchema, threadTurnSchema, threadTurnsSchema, collaborationModeSchema, threadLifecycleResponseSchema, CODEX_HISTORY_TURN_PAGE_LIMIT, threadTurnsPageSchema, threadResumeResponseSchema, threadForkResponseSchema, threadTitleSchema, threadSummarySchema, threadListResponseSchema, reasoningEffortOptionSchema, modelSchema, modelListResponseSchema, threadSettingsUpdatedSchema, INITIALIZE_TIMEOUT_MILLISECONDS, MESSAGE_OUTPUT_LIMIT_BYTES, CodexAppServerError, CodexAppServerClient, TOOL_OUTPUT_CHARACTER_LIMIT, TITLE_CHARACTER_LIMIT, APPROVAL_TIMEOUT_MILLISECONDS, MODEL_SETTING_ID, REASONING_EFFORT_SETTING_ID, MODE_SETTING_ID, FAST_MODE_SETTING_ID, COLLABORATION_MODE_SETTING_ID, MODEL_CATALOG_LIMIT, FAST_TIER, SERVICE_TIER_FAST, WORKSPACE_WRITE_POLICY, READ_ONLY_MODE, AGENT_MODE, FULL_ACCESS_MODE, AGENT_MODES, DEFAULT_MODE, COLLABORATION_MODES, CodexSettings, APPROVAL_REASON_CHARACTER_LIMIT, APPROVAL_TIMEOUT_MILLISECONDS2, CODEX_AGENT_VERSION, SESSION_LIST_TIMEOUT_MILLISECONDS2, APPROVAL_OPTIONS, CodexAcpAgent, CodexAgentSpecification, PiRpcSpawnError, ESC, CSI, ANSI_ESCAPE_REGEX, SESSION_STATS_TIMEOUT_MS, PiRpcProcess, PI_SETUP_METHOD_ID, DEFAULT_TAIL_BYTES, DEFAULT_HEAD_BYTES, SessionStore, CONFIRM_PERMISSION_OPTIONS, EXTENSION_UI_RAW_INPUT_KEYS, CHOICE_OPTION_PREFIX, SessionManager, PiAcpSession, MODEL_CONFIG_ID2, THOUGHT_LEVEL_CONFIG_ID, contentBlockSchema, steerRequestSchema, PI_ACP_NAME, PI_ACP_VERSION, PiAcpAgent, PiAcpEndpoint, AgentProbeError, ACP_PROBE_TIMEOUT_MILLISECONDS2, PiAgentSpecification, ACP_OUTPUT_LIMIT_BYTES, VerifiedAcpReadiness, DiscoveryAcpHandler, configuredHttpProxy, configuredHttpsProxy, environmentProxyDispatcher, CATALOG_UPDATE_TIMEOUT_MILLISECONDS, AgentCatalogPublishError, APPLICATION_ID_PATTERN, CONNECTION_ID_PATTERN, INSTALLATION_ID_PATTERN, RUNTIME_CREDENTIAL_PATTERN, MAX_FILE_LENGTH, INSTALLATION_POINTER_KEYS, CHANNEL_INDEX_KEYS, VERIFIED_CONNECTION_KEYS, RuntimeInstallationStoreError, VerifiedRuntimeConnection, RuntimeInstallationStore, PAIRING_TIMEOUT_MILLISECONDS, PAIRING_CODE_PATTERN, TOKEN_PATTERN, CLAIM_RESPONSE_KEYS, REDEEM_RESPONSE_KEYS, MOBIUS_CLI_APPLICATION_ID, PairingClientError, runtimeRevocationCloseCode, runtimeRevocationCloseReason, RuntimeRelayRevokedError, WorkspaceDirectoryListing, WorkspaceDirectoryService, MAXIMUM_DAEMON_LOG_BYTES, DaemonDiagnosticLog, DaemonAcpObserver, ACTIVE_TURN_TEXT_CHUNK_LIMIT, ActiveDaemonTurn, MAX_SESSIONS_WITH_COMPLETED_RECOVERY, waitForTurnCompletion, DaemonTurnRegistry, acpSessionStoreMigrations, sessionEventCacheMigrations, NodeSQLiteSession, NodeSQLiteTransaction, NodeSQLiteDatabase, LocalSqliteDatabase, openAcpSessionDatabase, openSessionEventCacheV2Database, responseSchema, threadSchema, turnsSchema, itemTypeSchema, userMessageSchema, textSchema, imageSchema, agentMessageSchema, reasoningSchema, commandExecutionSchema, fileChangeSchema, mcpToolCallSchema, dynamicToolCallSchema, planSchema, historyItemSchema, CodexHistoryResponseError, SESSION_HISTORY_MESSAGE_CHARACTER_LIMIT, readCodexFullHistory, MAXIMUM_SESSION_TITLE_LENGTH, forkSuffixPattern, NativeSessionService, MAX_TERMINAL_RECEIPTS, DaemonOperationState, MAX_DIAGNOSTIC_TEXT_LENGTH, RelayConnectionDiagnostics, ARTIFACT_SCHEME, ARTIFACT_DOWNLOAD_TIMEOUT_MILLISECONDS, MAX_AGENT_IMAGE_BASE64_LENGTH, MAX_AGENT_RESOURCE_BYTE_LENGTH, PromptArtifactError, ResolvedPromptArtifacts, PromptArtifactReference, AgentSettingsLaunchSelectionResult, AppliedAgentLaunchSettings, AgentSettingsAdapter, CodexSettingsAdapter, genericAdapter, codexAdapter, CHUNK_BYTES, ResolvedSessionDirectories, workerLaunch, transition, daemonSwitchState, lifecycleCommand, lifecycleResponse, CONTROL_TIMEOUT_MILLISECONDS, MAXIMUM_MESSAGE_BYTES, managerPlatform, import_semver, CONNECTION_TIMEOUT_MILLISECONDS, RelayConnectionError, HEARTBEAT_ACK_TIMEOUT_MILLISECONDS, HEARTBEAT_INTERVAL_MILLISECONDS, RelayLivenessState, UnsupportedRelayLivenessState, AwaitingHeartbeatAckState, WaitingForHeartbeatState, FinishedRelayLivenessState, RelayConnectionLiveness, MAX_BUFFERED_BYTES, SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS, DaemonSessionEventPublisher, DaemonSessionEventProjectionV2, INITIAL_POSITION, allocationRowSchema, SqliteSessionLiveEventPosition, RELAY_RECONNECT_DELAY_MILLISECONDS, RUNTIME_CREDENTIAL_PATTERN2, MobiusRuntimeConfigurationError, MobiusRuntimeState2, IdleMobiusRuntimeState, RunningMobiusRuntimeState, FinishedMobiusRuntimeState, MobiusRuntimeEngine;
|
|
88161
|
+
var import_node_path8, import_node_fs3, import_node_child_process6, import_promises10, import_node_path9, import_node_fs4, import_promises11, import_node_path10, import_node_child_process7, import_node_fs5, import_promises12, import_node_os7, import_node_path11, import_node_path12, import_node_child_process8, import_promises13, import_node_path13, import_node_util, import_node_os8, import_node_path14, import_promises14, import_node_path15, import_node_url, import_node_path16, import_node_child_process9, import_node_crypto6, import_node_crypto7, import_promises15, import_node_path17, import_node_crypto8, import_promises16, import_node_os9, import_node_path18, import_undici, import_node_child_process10, import_node_crypto9, import_node_fs6, fs3, os3, path6, import_node_util2, import_node_module, xr, Dn, import_node_crypto10, Yn, NF, gn, import_node_child_process11, import_node_util3, import_node_stream, import_promises17, Xt, y_, kt, Tw, zF, jF, import_url, import_crypto, import_stream2, import_util9, import_stream3, import_stream4, import_http, import_https, import_http2, import_util10, import_path, import_zlib, import_stream5, import_events, import_crypto2, import_crypto3, import_path2, import_node_fs7, import_node_process, import_fs, import_os, import_path3, Nx, import_child_process, import_crypto4, import_fs2, import_promises18, import_module, import_os2, import_path4, import_url2, import_events2, import_child_process2, import_fs3, import_readline, import_string_decoder, import_os3, import_path5, import_crypto5, import_path6, import_async_hooks, import_fs4, import_promises19, import_crypto6, import_fs5, import_promises20, import_fs6, import_fs7, import_promises21, import_os4, import_path7, _e, import_promises22, an, import_promises23, import_path8, import_promises24, import_os5, import_node_path19, import_node_os10, import_node_process2, import_path9, import_fs8, import_events3, import_fs9, import_promises25, import_path10, import_child_process3, import_util11, import_child_process4, import_fs10, import_path11, import_path12, import_path13, import_promises26, import_path14, import_path15, import_promises27, import_path16, import_promises28, import_os6, import_path17, import_crypto7, import_os7, import_path18, import_path19, import_path20, import_path21, import_os8, import_path22, import_path23, import_path24, import_crypto8, import_path25, import_path26, import_net, import_os9, import_child_process5, import_fs11, import_node_crypto11, import_node_worker_threads, import_node_worker_threads2, import_node_worker_threads3, import_node_os11, import_node_path20, import_node_path21, import_node_path22, fs2, path5, import_node_child_process12, import_node_path23, import_node_url2, import_node_child_process13, import_node_fs8, import_node_path24, import_node_child_process14, readline, import_node_os12, import_node_path25, import_node_os13, import_node_fs9, import_node_path26, import_node_fs10, import_node_path27, import_node_fs11, import_node_path28, import_node_fs12, import_node_path29, import_node_fs13, import_node_path30, import_node_child_process15, import_node_path31, import_undici2, import_undici3, import_promises29, import_node_path32, import_node_crypto12, import_promises30, import_node_net2, import_node_path33, import_promises31, import_node_crypto13, import_promises32, import_node_path34, import_node_crypto14, import_node_path35, import_node_util4, import_promises33, import_node_os14, import_node_path36, import_node_fs14, import_node_path37, import_node_crypto15, import_node_fs15, import_node_path38, import_node_sqlite, import_node_sqlite2, import_node_child_process16, import_node_crypto16, import_node_crypto17, import_undici4, import_undici5, import_undici6, import_undici7, import_node_crypto18, import_undici8, import_node_crypto19, import_node_fs16, import_promises34, import_node_path39, import_node_url3, import_node_path40, import_node_crypto20, import_undici9, import_undici10, import_node_crypto21, import_undici11, import_promises35, import_node_path41, import_meta, __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __commonJS2, __export2, __copyProps2, __toESM2, require_constants6, require_debug, require_re, require_parse_options, require_identifiers, require_semver, require_parse2, require_valid, require_clean, require_inc, require_diff, require_major, require_minor, require_patch, require_prerelease, require_compare, require_rcompare, require_compare_loose, require_compare_build, require_sort, require_rsort, require_gt, require_lt, require_eq, require_neq, require_gte, require_lte, require_cmp, require_coerce, require_truncate, require_lrucache, require_range, require_comparator, require_satisfies, require_to_comparators, require_max_satisfying, require_min_satisfying, require_min_version, require_valid2, require_outside, require_gtr, require_ltr, require_intersects, require_simplify, require_subset, require_semver2, createAcpClient, external_exports2, core_exports22, util_exports2, Cached2, EVALUATING2, captureStackTrace2, allowsEval2, getParsedType2, propertyKeyTypes2, primitiveTypes2, NUMBER_FORMAT_RANGES2, BIGINT_FORMAT_RANGES2, highSurrogate2, Class2, installing2, broke2, breaker2, CONSTANT_CATCH2, _a3, NEVER2, _zodDesc2, _E2, $brand2, $ZodAsyncError2, $ZodEncodeError2, globalConfig2, _messageDesc2, _issuesDesc2, _installedToString2, initializer3, $ZodError2, $ZodRealError2, _parse3, parse5, _parseAsync3, parseAsync3, _safeParse2, safeParse3, _safeParseAsync2, safeParseAsync3, COMPILE_INVALID2, COMPILE_FALLBACK2, validate2, validateAsync3, _encode3, encode3, _decode3, decode3, _encodeAsync3, encodeAsync3, _decodeAsync3, decodeAsync3, _safeEncode2, safeEncode3, _safeDecode2, safeDecode3, _safeEncodeAsync2, safeEncodeAsync3, _safeDecodeAsync2, safeDecodeAsync3, regexes_exports2, cuid4, cuid23, ulid3, xid3, ksuid3, nanoid3, duration3, extendedDuration2, guid3, uuid3, uuid42, uuid62, uuid72, email3, html5Email2, rfc5322Email2, unicodeEmail2, idnEmail2, browserEmail2, _emoji3, ipv43, ipv63, mac3, cidrv43, cidrv63, base643, base64url3, hostname4, domain2, httpProtocol2, e1643, creditCard3, currencyCode3, iban3, dateSource2, date5, anyString2, string4, bigint4, integer2, number4, boolean4, _null4, _undefined4, lowercase2, uppercase2, hex3, md5_hex2, md5_base642, md5_base64url2, sha1_hex2, sha1_base642, sha1_base64url2, sha256_hex2, sha256_base642, sha256_base64url2, sha384_hex2, sha384_base642, sha384_base64url2, sha512_hex2, sha512_base642, sha512_base64url2, $ZodCheck2, _whenHasSize2, _whenHasLength2, numericOriginMap2, $ZodCheckLessThan2, $ZodCheckGreaterThan2, $ZodCheckMultipleOf2, $ZodCheckNumberFormat2, $ZodCheckBigIntFormat2, $ZodCheckMaxSize2, $ZodCheckMinSize2, $ZodCheckSizeEquals2, $ZodCheckMaxLength2, $ZodCheckMinLength2, $ZodCheckLengthEquals2, $ZodCheckStringFormat2, $ZodCheckRegex2, $ZodCheckLowerCase2, $ZodCheckUpperCase2, $ZodCheckIncludes2, $ZodCheckStartsWith2, $ZodCheckEndsWith2, $ZodCheckProperty2, $ZodCheckProperties2, $ZodCheckMimeType2, $ZodCheckOverwrite2, Doc2, version2, $ZodType2, toStandardResult2, $ZodString2, $ZodStringFormat2, $ZodGUID2, $ZodUUID2, $ZodEmail2, URL_BAD_FORMAT2, URL_UNPARSEABLE2, asciiTabOrNewline2, $ZodURL2, $ZodEmoji2, $ZodNanoID2, $ZodCUID3, $ZodCUID22, $ZodULID2, $ZodXID2, $ZodKSUID2, $ZodISODateTime2, $ZodISODate2, $ZodISOTime2, $ZodISODuration2, $ZodIPv42, ipv6Alphabet2, $ZodIPv62, $ZodMAC2, $ZodCIDRv42, $ZodCIDRv62, base64Charset2, $ZodBase642, base64urlCharset2, $ZodBase64URL2, $ZodE1642, CC_SANITIZE2, $ZodCreditCard2, $ZodIBAN2, $ZodJWT2, $ZodCustomStringFormat2, $ZodNumber2, $ZodNumberFormat2, $ZodBoolean2, $ZodBigInt2, $ZodBigIntFormat2, $ZodSymbol2, $ZodUndefined2, $ZodNull2, $ZodAny2, $ZodUnknown2, $ZodNever2, $ZodVoid2, $ZodDate2, $ZodArray2, NO_SYMBOL_KEYS2, $ZodObject2, $ZodObjectJIT2, $ZodUnion2, $ZodXor2, $ZodDiscriminatedUnion2, $ZodIntersection2, $ZodTuple2, $ZodRecord2, $ZodMap2, $ZodSet2, $ZodEnum2, $ZodLiteral2, $ZodFile2, $ZodTransform2, $ZodOptional2, $ZodExactOptional2, $ZodNullable2, $ZodDefault2, $ZodPrefault2, $ZodNonOptional2, $ZodSuccess2, $ZodCatch2, $ZodNaN2, $ZodPipe2, $ZodCodec2, $ZodPreprocess2, $ZodReadonly2, $ZodTemplateLiteral2, $ZodFunction2, $ZodPromise2, $ZodLazy2, $ZodCustom2, $ZodCyclicError2, STATE2, NO_ISSUES2, recursive2, NONE2, ASSUMED2, PROVEN2, handoff2, open6, memo2, locales_exports2, error62, error210, error310, error410, error510, error63, error72, error82, error92, error102, error112, error122, error132, error142, error152, error162, error172, error182, error192, error202, error212, error222, error232, error242, error252, error262, error272, error282, error292, error302, error312, error322, capitalizeFirstCharacter2, error332, error342, error352, error362, error372, error382, error392, error402, error412, error422, error432, error442, error452, error462, error472, error482, error492, error502, error512, error522, error532, error542, error552, error562, error572, error582, error592, error602, error612, _a22, $output2, $input2, $ZodRegistry2, globalRegistry2, INVALID2, FALLBACK_FLAG2, ZodCompileAsyncError2, ZodCompileUnsupportedError2, WHEN_DEFAULTED_CHECKS2, PATTERN_IS_COMPLETE2, TimePrecision2, FOLDABLE_KEYS2, UNION_KEYS2, createToJSONSchemaMethod2, createStandardJSONSchemaMethod2, narrowMin2, narrowMax2, narrowBoth2, addDivisor2, addPattern2, intersectMime2, setFormat2, minContributor2, maxContributor2, formatContributor2, contributors2, formatMap2, exactPatterns2, exactPattern2, stringProcessor2, numberProcessor2, booleanProcessor2, bigintProcessor2, symbolProcessor2, nullProcessor2, undefinedProcessor2, voidProcessor2, neverProcessor2, anyProcessor2, unknownProcessor2, dateProcessor2, enumProcessor2, literalProcessor2, nanProcessor2, templateLiteralProcessor2, fileProcessor2, successProcessor2, customProcessor2, functionProcessor2, transformProcessor2, mapProcessor2, setProcessor2, arrayProcessor2, objectProcessor2, unionProcessor2, intersectionProcessor2, tupleProcessor2, pendingRecords2, recordProcessor2, nullableProcessor2, nonoptionalProcessor2, UNREPRESENTABLE_DEFAULT2, defaultProcessor2, prefaultProcessor2, catchProcessor2, pipeProcessor2, readonlyProcessor2, promiseProcessor2, optionalProcessor2, lazyProcessor2, allProcessors2, JSONSchemaGenerator2, json_schema_exports2, schemas_exports22, checks_exports22, _installedErrorProtos2, initializer22, ZodError2, ZodRealError2, parse22, parseAsync22, safeParse22, safeParseAsync22, encode22, decode22, encodeAsync22, decodeAsync22, safeEncode22, safeDecode22, safeEncodeAsync22, safeDecodeAsync22, ZodType2, _ZodString2, ZodString2, ZodStringFormat2, ZodISODateTime2, ZodISODate2, ZodISOTime2, ZodISODuration2, ZodEmail2, ZodGUID2, ZodUUID2, ZodURL2, ZodEmoji2, ZodNanoID2, ZodCUID3, ZodCUID22, ZodULID2, ZodXID2, ZodKSUID2, ZodIPv42, ZodMAC2, ZodIPv62, ZodCIDRv42, ZodCIDRv62, ZodBase642, ZodBase64URL2, ZodE1642, ZodCreditCard2, ZodIBAN2, ZodJWT2, ZodCustomStringFormat2, ZodNumber2, ZodNumberFormat2, ZodBoolean2, ZodBigInt2, ZodBigIntFormat2, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor2, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile2, ZodTransform2, ZodOptional2, ZodExactOptional2, ZodNullable2, ZodDefault2, ZodPrefault2, ZodNonOptional2, ZodSuccess2, ZodCatch2, ZodNaN2, ZodPipe2, ZodCodec2, ZodPreprocess2, ZodReadonly2, ZodTemplateLiteral2, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom2, describe22, meta22, ZodInstanceOf2, stringbool2, ZodIssueCode2, ZodFirstPartyTypeKind2, iso_exports2, z2, RECOGNIZED_KEYS2, SCHEMA_KEYWORDS2, SCHEMA_MAP_KEYWORDS2, fullTime2, RESOLVING2, coerce_exports2, IDENTIFIER_PATTERN, identifierStringSchema, identifierSchema, TOKEN_COUNT, promptUsageSchema, quotaTokenCountSchema, promptMetadataSchema, agentPromptResponseSchema, WORKSPACE_LIST_KIND, WORKSPACE_ENTRIES_KIND, SESSION_PREPARE_KIND, SESSION_READY_KIND, SESSION_LIST_KIND, SESSION_LISTED_KIND, SESSION_QUERY_KIND, SESSION_QUERIED_KIND, SESSION_RESTORE_KIND, SESSION_RESTORED_KIND, SESSION_CLOSE_KIND, SESSION_CLOSED_KIND, SESSION_STATUS_CHANGED_KIND, SESSION_CONFIGURE_KIND, SESSION_CONFIG_UPDATED_KIND, SESSION_USAGE_UPDATED_KIND, SESSION_COMMANDS_UPDATED_KIND, SESSION_INFO_UPDATED_KIND, SESSION_PERMISSION_REQUESTED_KIND, SESSION_PERMISSION_RESPOND_KIND, SESSION_PERMISSION_RESOLVED_KIND, SESSION_ELICITATION_REQUESTED_KIND, SESSION_ELICITATION_RESPOND_KIND, SESSION_ELICITATION_RESOLVED_KIND, SESSION_OPERATION_FAILED_KIND, AGENT_CONTENT_KIND, AGENT_SETTINGS_DISCOVER_KIND, AGENT_SETTINGS_DISCOVERED_KIND, AGENT_SETTINGS_DISCOVERY_FAILED_KIND, FILE_READ_KIND, FILE_BEGIN_KIND, FILE_CHUNK_KIND, FILE_END_KIND, FILE_FAILED_KIND, DIRECTORY_IDENTIFIER_PATTERN, DIRECTORY_IDENTIFIER, SHORT_TEXT, LONG_TEXT, workspaceEntrySchema, sessionStatusSchema, sessionStatusChangedEventSchema, sessionMetadataSchema, sessionListCommandSchema, sessionsListedEventSchema, sessionQueryCommandSchema, sessionsQueriedEventSchema, sessionRestoreCommandSchema, sessionCloseCommandSchema, fileReadCommandSchema, fileBeginEventSchema, fileChunkEventSchema, fileEndEventSchema, fileFailedEventSchema, configValueSchema, sessionConfigOptionSchema, sessionConfigOptionsSchema, agentSettingSchema, agentSettingsSchema, AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE, AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION, AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE, agentModelEffortResolutionSchema, agentModelEffortSchema, agentSettingsDiscoverCommandSchema, agentSettingsDiscoveredEventSchema, agentSettingsDiscoveryFailedEventSchema, sessionConfigurationSelectionSchema, AGENT_DEFAULT_EXECUTION_SETTING, AGENT_PERMISSION_MODE_CONFIG_ID, AGENT_PERMISSION_MODES, agentExecutionConfigurationSchema, DEFAULT_AGENT_EXECUTION_CONFIGURATION, sessionConfigurationSelectionsSchema, sessionCapabilitiesSchema, sessionCommandSchema, permissionOptionSchema, elicitationOptionSchema, elicitationFieldSchema, displayContentSchema, recordedDisplayContentSchema, promptImageSchema, promptResourceSchema, workspaceListCommandSchema, workspaceEntriesEventSchema, sessionIdentityFields, sessionPrepareCommandSchema, runtimeTimingsSchema, sessionReadyEventSchema, sessionRestoredEventSchema, sessionClosedEventSchema, sessionConfigureCommandSchema, sessionConfigUpdatedEventSchema, sessionContextUsageUpdatedEventSchema, sessionPromptUsageUpdatedEventSchema, sessionUsageUpdatedEventSchema, sessionCommandsUpdatedEventSchema, sessionInfoUpdatedEventSchema, sessionPermissionRequestedEventSchema, sessionPermissionRespondCommandSchema, sessionPermissionResolvedEventSchema, sessionElicitationRequestedEventSchema, sessionElicitationRespondCommandSchema, sessionElicitationResolvedEventSchema, sessionOperationFailedEventSchema, agentContentEventSchema, decodePromptImagesValue, decodePromptResourcesValue, decodeSessionConfigurationSelections, encode32, decodeAgentSettingsDiscoverCommand, encodeAgentSettingsDiscoverCommand, decodeAgentSettingsDiscoveredEvent, encodeAgentSettingsDiscoveredEvent, decodeAgentSettingsDiscoveryFailedEvent, encodeAgentSettingsDiscoveryFailedEvent, decodeFileReadCommand, encodeFileReadCommand, decodeFileBeginEvent, encodeFileBeginEvent, decodeFileChunkEvent, encodeFileChunkEvent, decodeFileEndEvent, encodeFileEndEvent, decodeFileFailedEvent, encodeFileFailedEvent, decodeWorkspaceListCommand, encodeWorkspaceListCommand, decodeWorkspaceEntriesEvent, encodeWorkspaceEntriesEvent, decodeSessionListCommand, encodeSessionListCommand, decodeSessionsListedEvent, encodeSessionsListedEvent, decodeSessionQueryCommand, encodeSessionQueryCommand, decodeSessionsQueriedEvent, encodeSessionsQueriedEvent, decodeSessionRestoreCommand, encodeSessionRestoreCommand, decodeSessionRestoredEvent, encodeSessionRestoredEvent, decodeSessionCloseCommand, encodeSessionCloseCommand, decodeSessionClosedEvent, encodeSessionClosedEvent, decodeSessionStatusChangedEvent, encodeSessionStatusChangedEvent, decodeSessionPrepareCommand, encodeSessionPrepareCommand, decodeSessionReadyEvent, encodeSessionReadyEvent, decodeSessionConfigureCommand, encodeSessionConfigureCommand, decodeSessionConfigUpdatedEvent, encodeSessionConfigUpdatedEvent, decodeSessionInfoUpdatedEvent, encodeSessionInfoUpdatedEvent, decodeSessionPermissionRespondCommand, encodeSessionPermissionRespondCommand, decodeSessionElicitationRespondCommand, encodeSessionElicitationRespondCommand, decodeSessionOperationFailedEvent, encodeSessionOperationFailedEvent, SESSION_PROMPT_KIND, SESSION_PROMPT_DISPOSITION_KIND, RUNTIME_WORKSPACE_BINDING_ID, SESSION_CANCEL_KIND, RUNTIME_LIVENESS_READY_KIND, RUNTIME_HEARTBEAT_KIND, RUNTIME_HEARTBEAT_ACK_KIND, RUNTIME_PING_KIND, RUNTIME_PONG_KIND, SESSION_QUEUED_KIND, AGENT_ACTIVITY_DETAIL_LIMIT, AGENT_ACTIVITY_RECORDED_FIELD_LIMIT, AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT, AGENT_ACTIVITY_LOCATION_LIMIT, AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT, SessionPromptDisposition, DIRECTORY_IDENTIFIER_PATTERN2, MAX_PROMPT_LENGTH, MAX_PROMPT_ATTACHMENT_LENGTH, ProtocolMessageError, UnsupportedProtocolMessageKindError, SESSION_HISTORY_CHARACTER_LIMIT, SESSION_HISTORY_MESSAGE_LIMIT, SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT, SESSION_HISTORY_IMAGE_CHARACTER_LIMIT, historyImage, nativeMessageActivitySchema, userHistoryMessage, assistantHistoryMessageSchema, historyMessage, availableSessionHistoryObjectSchema, availableSessionHistorySchema, unavailableSessionHistoryObjectSchema, unavailableSessionHistorySchema, sessionHistorySchema, NATIVE_SESSION_REQUEST_KIND, NATIVE_SESSION_RESULT_KIND, NATIVE_SESSION_CANCEL_KIND, directoryId, envelope, activeTurnActivitySchema, activeTurnUserMessageSchema, activeTurnAssistantMessageSchema, activeTurnMessageSchema, activeTurnSnapshotSchema, identity, nativeSessionRequestSchema, nativeSessionCommandSchema, nativeSessionEntrySchema, resultEnvelope, nativeSessionResultSchema, nativeSessionCancelSchema, decodeNativeSessionCommand, encodeNativeSessionCommand, decodeNativeSessionResult, encodeNativeSessionResult, decodeNativeSessionCancel, encodeNativeSessionCancel, identifier, runtimeDiagnosticsRequestSchema, runtimeDiagnosticsResultSchema, decodeRuntimeDiagnosticsRequest, decodeRuntimeDiagnosticsResult, encodeRuntimeDiagnosticsRequest, encodeRuntimeDiagnosticsResult, runtimeUpgradeVersionSchema, runtimeUpgradeResultSchema, decodeRuntimeUpgradeResult, encodeRuntimeUpgradeResult, MAX_EVENT_COUNT, MAX_COLLECTION_SIZE, MAX_CONTENT_LENGTH, MAX_JSON_DEPTH, MAX_JSON_KEYS, SESSION_EVENT_V2_KIND, SESSION_EVENT_V2_BATCH_MAX_SIZE, boundedString, shortString, externalContentKeySchema, boundedJsonSchema, annotationsSchema, contentFields, textContentSchema, imageContentSchema, audioContentSchema, externalImageContentSchema, externalAudioContentSchema, externalResourceContentSchema, resourceLinkSchema, textResourceSchema, blobResourceSchema, embeddedResourceSchema, contentBlockV2Schema, toolCallContentSchema, toolCallLocationSchema, toolKindSchema, toolStatusSchema, toolPatchFields, planEntrySchema, planContentSchema, commandSchema, configSelectOptionSchema, configSelectGroupSchema, configBaseFields, sessionConfigOptionSchema2, contentChunkFields, acpSessionUpdateV2Schema, lifecycleBase, promptExecutionContextV2Schema, lifecycleMetadataV2Schema, sessionEventPayloadV2Schema, positionSchema, provenanceSchema, sharedSessionEventFieldsV2, sessionLiveEventFieldsV2, sessionEventV2Schema, sessionLiveEventV2Schema, sessionEventBatchV2Schema, sessionLiveEventBatchV2Schema, sessionExportV2Schema, mobiusSessionExportV2Schema, sessionEventEnvelopeV2Schema, sessionEventLogPageV2Schema, sessionEventOmissionV2Schema, nativeEventPageRequestV2Schema, queuedPromptRequestEventLogV2Schema, nativeSessionEventsV2Schema, decodeSessionEventV2, decodeSessionEventEnvelopeV2, encodeSessionEventEnvelopeV2, decodeAcpSessionUpdateV2, SESSION_LIVE_HISTORY_V2_PAGE_LOAD_KIND, SESSION_LIVE_HISTORY_V2_PAGE_LOADED_KIND, SESSION_PREVIEW_HISTORY_PAGE_LOAD_KIND, SESSION_PREVIEW_HISTORY_PAGE_LOADED_KIND, directoryIdentifier, pageRequestFields, sessionLiveHistoryV2PageLoadSchema, sessionPreviewHistoryPageLoadSchema, pageLoadedFields, sessionLiveHistoryV2PageLoadedSchema, sessionPreviewHistoryPageLoadedSchema, decodeSessionLiveHistoryV2PageLoad, decodeSessionLiveHistoryV2PageLoaded, decodeSessionPreviewHistoryPageLoad, decodeSessionPreviewHistoryPageLoaded, encodeSessionLiveHistoryV2PageLoad, encodeSessionLiveHistoryV2PageLoaded, encodeSessionPreviewHistoryPageLoad, encodeSessionPreviewHistoryPageLoaded, serviceToDaemonSignatures, serviceToDaemonRegistry, daemonToServiceSignatures, MOBIUS_API_PREFIX, API_PREFIX_PATTERN, MobiusApiConfigurationError, LocalPathError, PROCESS_TABLE_TIMEOUT_MILLISECONDS, PROCESS_TABLE_OUTPUT_LIMIT_BYTES, posixOperations, linuxPlatform, macosPlatform, ProcessExecutionError, execute, windowsPermissions, windowsPlatform, fallbackPlatform, platforms, hostPlatform, DEFAULT_OUTPUT_LIMIT_BYTES, PROCESS_GRACEFUL_STOP_TIMEOUT_MILLISECONDS, PROCESS_FORCED_STOP_TIMEOUT_MILLISECONDS, PROCESS_EXIT_CHECK_ATTEMPTS, GRACEFUL_STOP_SIGNAL, FORCED_STOP_SIGNAL, ExecutableIdentity, ResolvedExecutable, ProcessResult, platformSpawnOptions, AgentDefinition, LocalAgentDefinition, InProcessAcpAgentDefinition, LocalAgentCatalogSnapshot, LocalAgentCatalogError, LocalAgentCatalog, DaemonLocalContext, DaemonReconnectTarget, OpaqueDaemonReconnectTarget, AcpExecutionError, AcpConfigurationValueUnavailableError, unreachable, ActiveExecutions, MAX_LOCAL_RASTER_BYTES, MAX_INLINE_RASTER_BYTES, PNG_SIGNATURE, JPEG_SIGNATURE, GIF87_SIGNATURE, GIF89_SIGNATURE, RIFF_SIGNATURE, WEBP_SIGNATURE, LocalRasterImage, MAX_INLINE_VIDEO_BYTES, MP4_FILE_TYPE, WEBM_SIGNATURE, LocalVideo, AccumulatingOperationMetrics, unmeasuredOperationMetrics, IMAGE_MARKER, TRUNCATION_MARKER, AgentConnection, AcpActivityNarration, AcpActivity, ActivityIdentity, AcpActivityTracker, SESSION_CONTROL_COMMAND_ID, AcpTurnState, IdleAcpTurn, RunningAcpTurn, path7, title, nativeSessionIdSchema, nativeSessionInfoSchema, nativeSessionPageSchema, MAX_PENDING_UPDATES, MAX_PENDING_BYTES, AgentUpdateStream, RuntimeOperations, MAXIMUM_CONFIG_OPTIONS, SessionConfigProtocolError, StandardSessionConfigProtocol, standardSessionConfigProtocol, storedSessionConfigurationsSchema, decodeStoredSessionConfigurations, AcpSessionConfigurations, acpNativeHistoryReader, NullAcpSessionObserver, AcpPreparedSession, AcpAgentSettingsSnapshot, CATEGORIES, HISTORY_ACTIVITY_FIELD_LIMIT, HISTORY_ACTIVITY_LIMIT, HISTORY_MESSAGE_LIMIT, AcpHistoryReplay, PendingPermission, PendingElicitation, AcpSessionInteractions, entityKind, QueryPromise, OriginalColumn, noop, Column, TableName, TableSchema, TableColumns, ExtraConfigColumns, OriginalName, BaseName, IsAlias, ExtraConfigBuilder, IsDrizzleTable, Table, Subquery, WithSubquery, tracer, ViewBaseConfig, FakePrimitiveParam, StringChunk, SQL, Name, noopDecoder, noopEncoder, noopMapper, Param, Placeholder, IsDrizzleView, View, DrizzleError, DrizzleQueryError, TransactionRollbackError, eq, ne, gt, gte, lt, lte, ColumnTableAliasProxyHandler, ViewSelectionAliasProxyHandler, TableAliasProxyHandler, ColumnAliasProxyHandler, RelationTableAliasProxyHandler, FnConstructor, textDecoder, Relation, One, Many, AggregatedField, Count, operators, orderByOperators, RelationsBuilderTable, RelationsBuilderColumn, RelationsBuilderJunctionColumn, RelationsHelperStatic, ColumnBuilder, ConsoleLogWriter, DefaultLogger, NoopLogger, ForeignKeyBuilder, ForeignKey, SQLiteColumnBuilder, SQLiteColumn, SQLiteBigIntBuilder, SQLiteBigInt, SQLiteBlobJsonBuilder, SQLiteBlobJson, SQLiteBlobBufferBuilder, SQLiteBlobBuffer, SQLiteCustomColumnBuilder, SQLiteCustomColumn, SQLiteBaseIntegerBuilder, SQLiteBaseInteger, SQLiteIntegerBuilder, SQLiteInteger, SQLiteTimestampBuilder, SQLiteTimestamp, SQLiteBooleanBuilder, SQLiteBoolean, SQLiteNumericBuilder, SQLiteNumeric, SQLiteNumericNumberBuilder, SQLiteNumericNumber, SQLiteNumericBigIntBuilder, SQLiteNumericBigInt, SQLiteRealBuilder, SQLiteReal, SQLiteTextBuilder, SQLiteText, SQLiteTextJsonBuilder, SQLiteTextJson, InlineForeignKeys, SQLiteTable, sqliteTable, IndexBuilderOn, IndexBuilder, Index, PrimaryKeyBuilder, PrimaryKey, SQLiteViewBase, SelectionProxyHandler, TypedQueryBuilder, SQLiteSelectBuilder, SQLiteSelectBase, getSQLiteSetOperators, union22, unionAll, intersect, except, SQLiteDialect, QueryBuilder, SQLiteCountBuilder, SQLiteAsyncCountBuilder, SQLiteSyncCountBuilder, RelationalQueryBuilder, SQLiteRelationalQuery, SQLiteAsyncRelationalQuery, SQLiteSyncRelationalQuery, SQLiteDeleteBase, SQLiteAsyncDeleteBase, SQLiteInsertBuilder, SQLiteInsertBase, SQLiteAsyncInsertBase, SQLiteRaw, SQLiteAsyncRaw, SQLiteAsyncSelectBase, SQLiteUpdateBuilder, SQLiteUpdateBase, SQLiteAsyncUpdateBase, SQLiteAsyncDatabase, Cache, NoopCache, strategyFor, SQLitePreparedQuery, SQLiteSession, ExecuteResultSync, SQLiteAsyncPreparedQuery, SQLiteAsyncSession, SQLiteAsyncTransaction, acpSession, sessionLiveEventPositionAllocation, SessionEventHistoryProjectionV2, InMemorySessionEventIdAllocator, sessionEventV2, cachedEventRowSchema, SessionEventCacheV2Database, HOT_EVENT_HIGH_WATER_MARK, HOT_EVENT_RETENTION, ProjectedSessionEventV2, SessionEventsV2, MemoryAcpSessionEventStoreV2, CachedAcpSessionEventStoreV2, AcpStoredSession, AcpStoredSessionLookup, MissingAcpStoredSession, FoundAcpStoredSession, MemoryAcpSessionStore, storedSessionRowSchema, SqliteAcpSessionStore, PROCESS_STOP_TIMEOUT_MILLISECONDS, RetryableAcpInitializationError, AgentSession, RetainedAgentProcesses, AgentQueryProcesses, MAXIMUM_ENCODED_CONTENT_CHARACTERS, embeddedImageSchema, inlineImageUrlSchema, toolImageSchema, AcpContentExternalizer, contentRequest, CONTENT_LIFETIME_MILLISECONDS, metadataSchema, UnretainedExternalContentStore, LocalExternalContentStore, SystemDaemonTimer, systemDaemonTimer, AcpProcessCapacityLease, AcpProcessCapacityWaiter, AcpProcessCapacityLock, DEFAULT_MAX_ACP_PROCESSES, MAX_ACP_PROCESSES_ENVIRONMENT_KEY, AgentProcessPool, SESSION_CONTROL_TIMEOUT_MILLISECONDS, SESSION_CLOSE_TIMEOUT_MILLISECONDS, AgentRuntimeManager, LocalAuthorizationError, package_default, AgentDiscovery, AvailableAgent, UnavailableAgent, MissingAdapter, MissingAgent, AgentProbeFailed, UnsupportedAgentVersion, IntegrationProbeFailed, IncompatibleAdapter, AuthenticationRequiredAgent, AgentDiscoveryResult, LocalAgentInventory, One2, Pne, ZE, Ine, Dne, Nne, Mne, Wn, T, Une, on, O, xe, zne, jne, $t, zt, oN, tx, nx, sN, iN, Zc, qn, cl, ma, j, Lt, mn, bs, Zd, Ig, Yd, Jd, Xd, Qd, ep, tp, np, rp, gt2, zce, GM, wn, Av, VM, sp, io, ao, Ur, JM, Hce, qM, ZM, YM, ip, Dg, eU, kv, Rv, Ov, tU, Pv, Ng, Zo, Iv, nU, oU, iU, aU, sU, Yt, Lv, uU, Nv, fU, mU, Mg, ha, hU, gU, ll, _U, pU, Mv, Zce, rt, ul, Uv, yU, Le, SU, bU, xU, lp, Hg, Bg, Jce, vU, wU, $v, Yo, Jo, jv, Kg, Xce, CU, kU, Hv, Qce, RU, Bv, PU, DU, NU, UU, ii, yr, Sr, Wv, zU, up, An, dp, Wg, HU, KU, fp, ga, Vg, qg, Zg, Yg, lo, Ae, Zv, et, Jv, Xv, pl, GU, ule, dle, Yv, fl, WU, ple, fle, VU, ew, qU, oe, ZU, Xg, _le, YU, k, Ne, JU, yle, M, at, hp, tw, gp, nw, _p, rw, Sp, e_, yp, Xo, Ep, sw, xp, iw, vp, aw, rF, iF, cF, fF, mF, Tp, uw, Cp, dw, ml, pw, kp, mw, hl, o_, Fr, s_, i_, a_, Rp, Op, gl, Ule, Fle, $le, Sa, c_, hw, _l, ui, yl, yF, ve, ba, bF, PF, Pp, m_, Sl, Ea, uo, Nt, l_, hn, u_, Ip, h_, Jt, El, Er, xl, di, bl, Es, Dp, $r, d_, kF, EF, xF, vF, _w, wF, p_, f_, yw, AF, RF, TF, Ble, Kle, Gle, CF, Wle, xa, g_, IF, DF, Lp, Yle, Ew, rue, UF, YF, Cw, __, Ln, Jn, Mp, wa, zr, Aw, FF, HF, cue, Up, lue, uue, due, pue, yue, Sue, JF, $p, S_, Fp, kw, XF, xue, Rw, Aa, Ow, Al, Pw, zp, Iw, jp, Dw, Ta, Lw, Tl, Cl, Nw, Hp, Mw, b_, Uw, zw, jw, Iue, kl, Due, Lue, e$, t$, pi, Hw, Xn, fi, Rl, Bp, x_, Kp, Gp, v_, Wp, Qo, Vp, w_, A_, Ca, T_, C_, qp, Bw, n$, Zp, Kw, Gw, Ww, r$, Vw, Yp, s$, i$, a$, Jp, Ol, ka, Qt, Qn, vr, xs, mi, Xp, c$, Zw, Qp, Yw, l$, Mue, hi, Jw, Pl, Xw, ef, Qw, tf, eA, Il, tA, gi, nA, nf, rA, Dl, oA, rf, sA, Ll, iA, of, aA, Nl, cA, Ht, lA, Ml, uA, fA, jr, _i, Ul, sf, k_, af, cf, R_, lf, es, uf, O_, P_, Ra, I_, D_, df, mA, p$, hA, gA, _A, yA, f$, pf, h$, ff, bA, Oa, g$, Jue, EA, Fl, xA, _$, Mt, vA, wA, L_, y$, S$, b$, Pa, AA, E$, Sw, Wge, V_, q_, nj, Z_, So, Y_, su, ou, rj, qge, tr, oj, Tf, Zge, W_, Yge, Jge, Xge, Qge, e_e, t_e, n_e, r_e, Qz, ej, s_e, i_e, a_e, c_e, l_e, u_e, d_e, Ua, ij, p_e, f_e, m_e, h_e, g_e, __e, y_e, S_e, b_e, E_e, x_e, tj, v_e, aj, w_e, A_e, T_e, C_e, R_e, O_e, P_e, cj, I_e, D_e, A, pt, On, G, Cr, dj, hj, gj, Ej, vj, cT, lT, uT, dT, pT, Ij, fT, Mj, Fj, mT, jj, Bj, Gj, Vj, Zj, Q_, Xj, e1, n1, o1, i1, c1, u1, p1, m1, g1, hT, S1, gT, v1, _T, yT, k1, Fa, ny, ST, D1, N1, U1, B1, q1, Y1, nH, oH, iH, lH, dH, fH, gH, _H, iy, kT, RSe, Ci, Pf, EH, xH, vH, ay, wH, PT, AH, ki, If, TH, CH, IT, kH, RH, LSe, OH, PH, NT, LT, DT, NSe, MSe, USe, IH, Ye, Eo, DH, cy, UT, uu, FT, du, ly, HSe, LH, NH, MH, BSe, VSe, Lf, Pt, os4, UH, FH, kr, ja, dy, py, YSe, zH, HH, BT, GH, VH, YH, eB, tB, rB, cB, Va, Jbe, lB, sC, uB, iC, dB, pB, Qbe, Sy, aC, fB, nEe, Hf, qa, rEe, oEe, sEe, mB, hB, gB, _B, yB, aEe, SB, bB, cEe, vB, lEe, EB, uEe, dEe, xB, wB, AB, TB, CB, kB, Ts, hu, gu, by, $B, FB, OB, _Ee, PB, yEe, SEe, bEe, IB, Ey, DB, LB, EEe, vEe, wEe, AEe, NB, TEe, jB, HB, BB, KB, GB, WB, VB, xy, vy, uC, CEe, qB, ZB, kEe, YB, JB, REe, OEe, PEe, dC, XB, wy, IEe, QB, e2, t2, DEe, LEe, pC, fkt, n2, fC, r2, MEe, Ay, mC, o2, Cy, s2, Bf, i2, Kf, Gr, Gf, a2, gC, c2, l2, u2, SC, d2, p2, qt, Rr, m2, uRt, dRt, pRt, h2, fRt, mRt, hRt, gRt, ky, _Rt, yRt, SRt, bRt, ERt, xRt, vRt, Ry, $Ee, _2, Cs, Wf, T2, Su, bu, AC, CC, Z2, Uy, jy, pK, DC, yK, ave, cve, lve, uve, dve, pve, fve, mve, SK, hve, gve, EK, NC, JRt, AK, TK, Eve, vve, CK, XK, QK, eG, QC, aG, nc, fG, Vy, _G, rc, vG, TG, nk, am, LG, pk, WG, mk, XG, lm, Sk, Yy, Jy, xk, Xy, Ak, Tk, kW, Ck, DW, NW, UW, zW, VW, YW, QW, nV, sV, lV, pV, gV, bV, AV, kV, LV, UV, GV, Qm, wI, Pe, We, Ks, th, xY, II, DI, nh, UY, Xr, WY, YY, zI, QY, rh, ih, Db, ah, Nb, RJ, JI, zJ, WJ, ZJ, r5, s5, d5, f5, h5, _5, b5, x5, w5, T5, k5, O5, Gb, L5, M5, F5, z5, iD, aD, Z5, X5, e8, i8, l8, lD, m8, S8, E8, v8, A8, C8, P8, D8, N8, U8, $8, H8, G8, Z8, X8, Q8, fD, uX, pX, gX, VL, Hne, Dnt, Kne, YL, Ho, Zs, qne, Zne, JL, XL, QL, e0, Ys, t0, n0, r0, o0, ore, qh, sre, ire, Gt, are, sn, s0, cre, lre, Md, i0, dre, pre, a0, mre, hre, c0, mr, jt, yre, Sre, bre, Ere, Mc, vre, Zh, l0, u0, Are, Tre, ps, kre, Rre, Ore, Pre, Ire, Dre, Lre, d0, p0, Vn, Fre, Js, $re, fs4, f0, m0, Hre, Bre, Kre, h0, Wre, Vre, g0, Zre, _0, JE, y0, S0, Xs, b0, E0, x0, v0, aa, ooe, w0, Bo, ioe, A0, T0, C0, k0, R0, doe, poe, Jh, moe, zc, O0, P0, _oe, yoe, Soe, boe, Eoe, xoe, voe, woe, Aoe, Toe, Coe, koe, Roe, I0, XE, D0, jc, Ioe, bt, Xh, L0, Qh, Moe, Uoe, N0, Foe, Hc, M0, Zt, joe, QE, U0, Boe, Koe, Goe, ms, tg, F0, j0, $0, Voe, z0, qoe, Zoe, Ko, Yoe, Joe, Qs, Qoe, Bc, tse, nse, rse, ose, sse, ise, ase, cse, lse, use, dse, pse, fse, mse, hse, gse, _se, yse, Sse, bse, Ese, xse, vse, wse, ht, H0, Kc, rg, B0, Ud, Cse, ex, kse, Go, K0, Rse, Gc, Ose, Pse, og, Dse, Wc, sg, Mse, G0, Use, Fse, W0, ei, Wo, Fd, Bse, Kse, Gse, V0, Vse, ig, qse, ag, Zse, cg, Yse, lg, q0, Jse, Z0, Y0, J0, X0, Xse, Qse, eie, tie, nie, ca, hs, rie, Q0, eN, ug, oie, tN, nN, Vc, qc, aie, nt, dg, cN, rx, dN, uie, sx, ix, die, Yc, ti, pN, mie, pg, fN, gie, _ie, mN, fg, hN, mg, gN, vie, Jc, Aie, Tie, Xc, kie, zd, Rie, _N, Pie, Iie, Die, yN, Qc, Nie, SN, bN, xN, vN, Dr, Fie, hr, ni, wN, AN, TN, hg, Gie, Wie, CN, el, kN, RN, ON, ri, jd, PN, tl, cx, lx, ux, dx, px, fx, mx, hx, gx, _x, yx, IN, Sx, bx, DN, Ex, nae, xx, vx, wx, Ax, Tx, Cx, kx, Rx, Ox, Px, aae, cae, lae, UN, uae, Dx, jN, jx, Hx, gae, Kx, xg, Gx, Wx, Vx, qx, XN, Zx, Yx, Jx, Xx, Qx, ev, tv, nv, rv, yae, rM, Rdt, Odt, Pdt, Eae, Ldt, Ndt, xae, Mdt, vae, Udt, _s, Cae, kae, vg, jdt, Oae, Pae, Mae, jae, Hae, Bae, Kae, Gae, aM, hM, Vae, qae, Zae, Yae, Ee, Jae, Og, fa, gv, Ss, yM, SM, bM, EM, xM, vM, _v, yv, dv, uM, rce, oce, ice, wM, pv, Rg, mv, hv, cce, lce, dM, si, _r, wce, Ace, Tce, Wt, Oce, Pce, zM, Dce, wv, Lce, Ipt, HM, BM, KM, Nce, Mce, Uce, Fce, Dpt, Ze, v$, Cn, tde, ade, cde, ude, dde, lEt, fde, _de, PA, T$, Ade, IA, N$, Lde, $A, Nn, Fe, NA, W, ts, H, Nde, er, Mde, vs, M$, hf, Fde, _n, he, Ia, Rn, F_, $_, Si, jl, ae, ho, U$, De, $de, zde, jde, Hde, Bde, Kde, Gde, Wde, Vde, MA, qde, Zde, Yde, Jde, Xde, Qde, $$, epe, po, Ei, xi, Kl, Da, gf, Gl, Wl, La, bi, ns, _f, fo, Rt, Vl, ws, z_, ql, rs, yf, Sf, Na, Bl, Zl, Yl, vi, Jl, Ma, go, mo, As, Xl, Ql, bf, ipe, j_, Ef, eu, ape, B, cpe, K$, G$, lpe, upe, W$, dpe, ppe, fpe, mpe, hpe, gpe, _pe, ype, Spe, FA, bpe, Epe, xpe, vpe, wpe, Ape, Tpe, Cpe, kpe, Rpe, Ope, Ppe, Ipe, Dpe, Lpe, Npe, Mpe, Upe, Fpe, $pe, zpe, jpe, Hpe, Bpe, V$, Gpe, Vpe, qpe, Zpe, Ype, Jpe, d, Xpe, Qpe, efe, tfe, nfe, rfe, ofe, sfe, ife, afe, cfe, lfe, ufe, dfe, pfe, ffe, mfe, hfe, gfe, _fe, yfe, Sfe, bfe, Efe, xfe, vfe, wfe, Afe, Tfe, Cfe, kfe, Rfe, Ofe, Pfe, Ife, Dfe, Lfe, Nfe, Mfe, Ufe, Ffe, $fe, zfe, jfe, Hfe, Bfe, Kfe, Gfe, Wfe, Vfe, qfe, Zfe, Yfe, Jfe, Xfe, Qfe, eme, tme, nme, rme, ome, sme, ime, zA, ame, cme, lme, ume, dme, pme, fme, mme, hme, gme, _me, yme, Sme, bme, Eme, xme, vme, wme, Ame, Tme, Cme, kme, Rme, Ome, Pme, Ime, Dme, Lme, Nme, Mme, Ume, Fme, $me, zme, jme, Hme, Bme, Kme, Gme, Wme, Vme, qme, Zme, Yme, Jme, Xme, Qme, ehe, the, nhe, rhe, ohe, she, ihe, ahe, che, lhe, uhe, dhe, phe, fhe, mhe, hhe, ghe, _he, rxt, yhe, Q$, She, bhe, Ehe, oxt, Y$, xhe, whe, H_, jA, rz, HA, BA, sz, khe, az, iz, KA, vxt, Lhe, dz, pz, Nhe, _o, gz, Mhe, fz, mz, $he, jhe, Hhe, yz, Bhe, Khe, Ghe, Vhe, ZA, Jhe, Qhe, Cz, kz, nge, Zxt, ige, en, lt2, xge, JA, Tge, Lz, Uz, Ige, avt, Dge, cvt, Ai, nT, ru, Lge, Nge, Mge, bvt, $ge, Hz, jz, Wz, jge, qz, Zz, kK, Mve, RK, OK, Kve, Qf, UC, ku, Wve, Vve, qve, Zve, Yve, Jve, Xve, Qve, ewe, twe, nwe, rwe, owe, swe, iwe, awe, cwe, lwe, uwe, dwe, pwe, fwe, mwe, hwe, gwe, _we, ywe, Swe, bwe, Ewe, xwe, vwe, wwe, Awe, Twe, Cwe, kwe, Rwe, Owe, Pwe, Iwe, Dwe, Lwe, Nwe, Mwe, Uwe, Fwe, $we, zwe, jwe, Hwe, Bwe, Kwe, Gwe, Wwe, Vwe, qwe, Zwe, Ywe, Jwe, Xwe, Qwe, eAe, tAe, nAe, rAe, oAe, sAe, iAe, aAe, cAe, lAe, uAe, dAe, pAe, fAe, mAe, hAe, gAe, _Ae, yAe, SAe, bAe, EAe, xAe, vAe, wAe, AAe, TAe, CAe, kAe, RAe, OAe, PAe, IAe, DAe, LAe, NAe, MAe, UAe, FAe, $Ae, zAe, jAe, HAe, BAe, KAe, GAe, WAe, VAe, qAe, ZAe, YAe, JAe, XAe, QAe, eTe, tTe, nTe, rTe, oTe, sTe, iTe, aTe, cTe, lTe, uTe, dTe, pTe, fTe, mTe, hTe, gTe, _Te, yTe, STe, bTe, ETe, xTe, vTe, wTe, ATe, TTe, CTe, kTe, RTe, OTe, PTe, ITe, DTe, LTe, NTe, MTe, UTe, FTe, $Te, zTe, jTe, HTe, BTe, KTe, GTe, WTe, VTe, qTe, ZTe, YTe, JTe, XTe, QTe, eCe, tCe, nCe, rCe, oCe, sCe, iCe, aCe, cCe, lCe, uCe, dCe, pCe, fCe, mCe, hCe, gCe, _Ce, yCe, SCe, bCe, ECe, xCe, vCe, wCe, ACe, TCe, CCe, kCe, RCe, OCe, PCe, ICe, DCe, LCe, NCe, MCe, UCe, FCe, $Ce, zCe, jCe, HCe, BCe, KCe, GCe, WCe, VCe, qCe, ZCe, YCe, JCe, XCe, QCe, eke, tke, nke, rke, oke, ske, ike, ake, cke, lke, uke, dke, pke, fke, mke, hke, gke, _ke, yke, Ske, bke, Eke, xke, vke, wke, FC, Ake, Tke, Cke, kke, Rke, Oke, Pke, Ike, Dke, Lke, Nke, Mke, Uke, Fke, $ke, zke, jke, Hke, Bke, Kke, Gke, Wke, Vke, qke, Zke, Yke, Jke, Xke, Qke, eRe, tRe, nRe, rRe, oRe, sRe, iRe, aRe, cRe, lRe, uRe, dRe, pRe, fRe, mRe, hRe, gRe, _Re, yRe, SRe, bRe, ERe, xRe, vRe, wRe, ARe, TRe, CRe, kRe, RRe, ORe, PRe, IRe, DRe, LRe, NRe, MRe, URe, FRe, $Re, zRe, jRe, HRe, BRe, KRe, GRe, WRe, VRe, qRe, ZRe, YRe, JRe, XRe, QRe, eOe, tOe, nOe, rOe, oOe, sOe, iOe, aOe, cOe, lOe, uOe, dOe, pOe, fOe, mOe, hOe, gOe, _Oe, yOe, SOe, bOe, EOe, xOe, vOe, wOe, AOe, TOe, COe, kOe, ROe, OOe, POe, IOe, DOe, LOe, NOe, MOe, UOe, FOe, $Oe, zOe, jOe, HOe, BOe, KOe, GOe, WOe, VOe, qOe, ZOe, YOe, JOe, XOe, QOe, ePe, tPe, nPe, rPe, oPe, sPe, iPe, aPe, cPe, lPe, uPe, dPe, pPe, fPe, mPe, hPe, gPe, _Pe, yPe, SPe, bPe, EPe, xPe, vPe, wPe, APe, TPe, CPe, kPe, RPe, OPe, PPe, IPe, DPe, LPe, NPe, MPe, UPe, FPe, $Pe, zPe, jPe, HPe, BPe, KPe, GPe, WPe, VPe, qPe, ZPe, YPe, $C, JPe, XPe, QPe, eIe, tIe, nIe, rIe, oIe, sIe, iIe, aIe, cIe, lIe, uIe, dIe, pIe, fIe, mIe, hIe, gIe, _Ie, yIe, SIe, bIe, EIe, xIe, vIe, wIe, AIe, TIe, CIe, kIe, RIe, OIe, PIe, IIe, DIe, LIe, NIe, MIe, UIe, FIe, $Ie, zIe, jIe, HIe, BIe, KIe, GIe, WIe, VIe, qIe, ZIe, YIe, JIe, XIe, QIe, eDe, tDe, nDe, rDe, oDe, sDe, iDe, aDe, cDe, lDe, uDe, dDe, pDe, fDe, mDe, hDe, gDe, _De, yDe, SDe, bDe, EDe, xDe, vDe, wDe, ADe, TDe, CDe, kDe, RDe, ODe, PDe, IDe, DDe, LDe, NDe, MDe, UDe, FDe, $De, zDe, jDe, HDe, BDe, KDe, GDe, WDe, VDe, qDe, ZDe, YDe, JDe, XDe, QDe, eLe, tLe, nLe, rLe, oLe, sLe, iLe, aLe, cLe, lLe, uLe, dLe, pLe, fLe, mLe, hLe, gLe, _Le, yLe, SLe, bLe, ELe, xLe, vLe, wLe, ALe, TLe, CLe, kLe, RLe, OLe, PLe, ILe, DLe, LLe, NLe, MLe, ULe, FLe, $Le, zLe, jLe, HLe, BLe, KLe, GLe, WLe, VLe, qLe, ZLe, YLe, JLe, XLe, QLe, e0e, t0e, n0e, r0e, o0e, s0e, i0e, a0e, c0e, l0e, u0e, d0e, p0e, f0e, m0e, h0e, g0e, _0e, y0e, S0e, b0e, E0e, x0e, v0e, w0e, A0e, T0e, C0e, k0e, R0e, O0e, P0e, I0e, D0e, L0e, N0e, M0e, U0e, F0e, $0e, z0e, j0e, H0e, B0e, K0e, G0e, W0e, V0e, q0e, Z0e, Y0e, J0e, X0e, Q0e, eNe, tNe, nNe, rNe, oNe, sNe, iNe, aNe, cNe, lNe, uNe, dNe, pNe, fNe, mNe, hNe, gNe, _Ne, yNe, SNe, bNe, ENe, xNe, vNe, wNe, ANe, TNe, CNe, kNe, RNe, ONe, PNe, INe, DNe, LNe, NNe, MNe, UNe, FNe, $Ne, zNe, jNe, HNe, BNe, KNe, GNe, WNe, VNe, qNe, ZNe, YNe, JNe, XNe, QNe, eMe, tMe, zC, nMe, rMe, oMe, sMe, iMe, aMe, cMe, lMe, uMe, dMe, pMe, fMe, mMe, hMe, gMe, _Me, yMe, SMe, bMe, EMe, xMe, vMe, wMe, AMe, TMe, CMe, kMe, RMe, OMe, PMe, IMe, DMe, LMe, NMe, MMe, UMe, FMe, $Me, zMe, jC, jMe, HMe, BMe, KMe, GMe, WMe, VMe, qMe, ZMe, YMe, JMe, XMe, QMe, eUe, tUe, nUe, rUe, oUe, sUe, iUe, aUe, cUe, lUe, uUe, dUe, pUe, fUe, mUe, hUe, gUe, _Ue, yUe, SUe, bUe, EUe, xUe, vUe, wUe, AUe, TUe, CUe, kUe, RUe, OUe, HC, DK, PUe, IUe, DUe, LUe, NUe, MUe, UUe, FUe, $Ue, zUe, jUe, HUe, BUe, KUe, GUe, WUe, VUe, qUe, ZUe, YUe, JUe, XUe, QUe, eFe, tFe, nFe, rFe, oFe, sFe, iFe, aFe, cFe, lFe, uFe, dFe, pFe, fFe, mFe, hFe, gFe, _Fe, yFe, SFe, bFe, EFe, xFe, vFe, wFe, AFe, TFe, CFe, kFe, RFe, OFe, PFe, IFe, DFe, LFe, MFe, Mn, UFe, NOt, FFe, MOt, NK, zFe, VFe, GC, HK, qFe, BK, By, ZFe, qC, Ru, r$e, tm, o$e, WK, a$e, JC, rm32, Gy, Wy, Ou, u$e, XC, KE, WV, Nu, _Dt, Wk, yDt, SDt, bDt, EDt, ZV, Lje, Nje, Mje, Hje, Un, Zje, XV, XDt, QDt, Is, s1e, rS, i1e, pm, a1e, bq, u1e, d1e, cS, m1e, tn, vq, RLt, Tq, Cq, kq, Rq, x1e, v1e, Oq, w1e, A1e, Pq, T1e, C1e, Dq, I1e, Lq, L1e, Mq, N1e, M1e, uS, Uq, zq, F1e, jq, z1e, H1e, K1e, G1e, gm, Hq, Kq, Gq, X1e, wq, Q1e, eHe, tHe, oHe, r4, x0t, o4, Us, ym, Hu, Ue, s4, hS, aR, MHe, lR, i4, dR, a4, _4, y4, _S, wm, Am, yS, Tm, SS, Cm, lc, km, uc, S4, b4, E4, x4, v4, w4, A4, T4, C4, k4, R4, O4, P4, I4, D4, L4, gR, N4, GHe, U4, F4, $4, z4, j4, _R, H4, B4, K4, G4, Z4, Y4, J4, bS, X4, Q4, e6, t6, n6, fn, r6, yR, SR, o6, s6, i6, a6, c6, Rm, l6, u6, d6, p6, f6, m6, h6, bR, _6, Xe, Om, ft, xR, vR, wR, AR, TR, CR, kR, RR, OR, PR, IR, T6, C6, k6, R6, DR, LR, NR, MR, UR, FR, $R, zR, vS, jR, HR, BR, KR, GR, WR, VR, qR, ZR, YR, D6, wS, JR, XR, QR, eO, tO, nO, AS, rO, oO, sO, iO, aO, cO, TS, L6, lO, uO, dO, qHe, N6, M6, ko, q6, Im, XHe, nP, rP, oP, sP, iP, aP, cP, lP, uP, dP, pP, fP, mP, hP, gP, _P, yP, SP, bP, EP, xP, vP, wP, AP, TP, OS, CP, Mm, l3, u3, d3, p3, sBe, Pr, m3, h3, g3, _3, y3, S3, b3, E3, x3, v3, w3, A3, T3, ct, P3, NP, xt, HBe, C3, PS, BBe, KBe, GBe, WBe, VBe, qBe, ZBe, YBe, JBe, XBe, QBe, e2e, t2e, n2e, r2e, o2e, IS, s2e, MP, I3, i2e, a2e, c2e, l2e, N3, u2e, FP, M3, d2e, p2e, DP, LP, f2e, m2e, LS, h2e, _2e, y2e, b2e, $3, v2e, z3, A2e, T2e, k2e, j3, qr, B3, MS, K3, U2e, j2e, q2e, Z2e, uKe, PZ, $Ke, LZ, vUt, HKe, BKe, Bi, ZS, rn, $Z, zZ, KUt, GKe, WKe, ZP, Ir, jm, bn, Yr, Jr, En, YS, HZ, BZ, JP, fe, XP, GUt, WUt, JS, VKe, XS, qKe, Bm, Qu, WZ, ZKe, YKe, JKe, XKe, QKe, eGe, QP, tGe, nGe, eI, QS, rGe, oGe, eb, sGe, Km, Gm, iGe, Wm, ed, aGe, Vm, tb, nb, rb, VUt, ob, sb, ib, VZ, qZ, ZZ, tI, YZ, qm, td, JZ, cGe, ab, lGe, cb, uGe, nI, dGe, lb, pGe, fGe, mGe, hGe, gGe, _Ge, yGe, SGe, bGe, EGe, ub, xGe, vGe, db, rI, oI, sI, wGe, AGe, TGe, iI, CGe, kGe, RGe, OGe, PGe, XZ, pb, IGe, fb, qUt, DGe, nd, LGe, ZUt, Zm, NGe, aI, MGe, UGe, FGe, $Ge, zGe, jGe, HGe, qS, BGe, KGe, GGe, Ym, cI, WGe, VGe, qGe, ZGe, YGe, JGe, XGe, QGe, eWe, tWe, nWe, rWe, oWe, sWe, iWe, aWe, cWe, lWe, rd, uWe, dWe, pWe, mb, fWe, mWe, hWe, lI, gWe, YUt, JUt, XUt, QUt, eFt, tFt, SWe, _X, yX, EX, rJe, IX, iJe, FHt, DX, MX, lJe, BX, _Je, yJe, GX, WX, VX, qX, _d, YX, PD, JX, tE, ZX, AJe, Qi, XX, vh, yd, nE, TJe, n7, e7, vc, r7, kJe, wh, Th, oE, a7, o7, IJe, s7, i7, Ch, Sd, sE, iE, c7, UJe, l7, FJe, bd, aE, u7, jJe, HJe, BJe, d7, KJe, GJe, cE, kh, qJe, ZJe, Ed, eo, p7, QJe, e5e, f7, ls, m7, h7, _7, y7, S7, lE, b7, c5e, E7, l5e, u5e, d5e, x7, f5e, uE, v7, w7, A7, _5e, Bn, T7, C7, k7, R7, x5e, v5e, dE, O7, xd, T5e, C5e, P7, I7, O5e, D7, L7, N7, M7, D5e, L5e, N5e, M5e, U5e, F5e, $5e, z5e, j5e, H5e, B5e, K5e, G5e, W5e, V5e, q5e, Z5e, Y5e, J5e, U7, Q5e, F7, $7, t8e, z7, n8e, j7, H7, o8e, B7, s8e, i8e, a8e, K7, c8e, l8e, u8e, d8e, G7, p8e, f8e, m8e, W7, h8e, g8e, _8e, y8e, S8e, b8e, E8e, x8e, v8e, w8e, A8e, T8e, C8e, k8e, R8e, O8e, mt, V7, q7, Z7, Y7, L8e, N8e, J7, X7, Q7, eQ, nQ, rQ, fE, j8e, H8e, B8e, K8e, mE, oQ, hE, sQ, q8e, Rh, Z8e, iQ, aQ, Oh, Ph, Q8e, eXe, gE, vd, _E22, ta, ID, yE, SE, tXe, nXe, DD, fQ, rXe, ND, _Q, yQ, SQ, bQ, EQ, iXe, MD, aXe, lVt, UD, cXe, FD, $D, lXe, uVt, uXe, zD, jD, HD, dVt, xQ, vQ, wQ, dXe, pXe, fXe, mXe, gXe, wd, yXe, TQ, xVt, vVt, CQ, kQ, RQ, OQ, PQ, SXe, IQ, DQ, LQ, NQ, kVt, MVt, UVt, xXe, MQ, zQ, Dh, EE, BD, Cc, kXe, BQ, RXe, VVt, Lh, kc, YVt, JVt, Ad, na, OXe, WQ, PXe, IXe, qQ, ZQ, DXe, LXe, NXe, MXe, UXe, FXe, GD, $Xe, wE, XVt, jXe, HXe, WXe, YD, ZXe, ree, YXe, JXe, oee, XXe, QXe, us, Rc, JQ, XQ, qD, ZD, see, iee, AE, XD, n7e, r7e, yqt, o7e, s7e, i7e, a7e, c7e, l7e, aee, u7e, d7e, p7e, f7e, cee, m7e, QQ, h7e, g7e, lee, _7e, y7e, eee, S7e, b7e, uee, E7e, dee, x7e, v7e, w7e, A7e, C7e, k7e, R7e, O7e, pee, Td, VD, P7e, I7e, L7e, fee, N7e, M7e, U7e, F7e, $7e, j7e, B7e, K7e, G7e, W7e, V7e, J7e, Sqt, tee, hee, bqt, Eqt, gee, X7e, Q7e, eQe, xqt, tQe, nQe, vqt, rQe, wqt, CE, _ee, oQe, eL, kE, Eee, xee, Iqt, Dqt, PE, uQe, sL, Ree, Uh, fQe, h4t, mQe, hQe, cL, lL, uL, dL, LE, NE, gQe, EQe, wQe, AQe, kd, TQe, Pee, Iee, DE, jee, CQe, kQe, RQe, OQe, PQe, ds, pL, iL, IE, Oc, NQe, g4t, UQe, Dee, Lee, FQe, $Qe, Rd, Nee, zQe, XQe, Yee, Jee, net, ete, iet, o6t, s6t, uet, rte, $h, zh, oa, ote, ste, ite, gL, Od, cte, qs, _et, yet, $6t, xet, Aet, Net, hte, Ket, Wet, _te, itt, ltt, Rte, Ote, mtt, htt, gtt, Ett, Lte, wtt, Ctt, zte, Utt, sa, Wte, $tt, jtt, Htt, Ytt, Qte, Jtt, Xtt, Qtt, ent, dnt, hnt, OPTION_META_KEY, CUSTOM_ANSWER_META_KEY, REFUSAL_FALLBACK_DIALOG_KIND, REFUSAL_FALLBACK_CHOICE_KEY, RETRY_FALLBACK_RESULT, KEEP_REFUSAL_RESULT, SESSION_LIST_TIMEOUT_MILLISECONDS, workerSource, SESSION_FORK_TIMEOUT_MILLISECONDS, workerSource2, SESSION_MESSAGES_TIMEOUT_MILLISECONDS, sessionMessagesSchema, workerSource3, DEFAULT_MODEL_ID, DEFAULT_AGENT_ID, EFFORT_CONFIG_ID, ExitPlanCoordinator, GOAL_EXTENSION_VERSION, GOAL_CONTROL_METHOD, GOAL_ACTIONS, IS_ROOT, ALLOW_BYPASS, PERMISSION_MODE_ALIASES, MAX_UPDATES, MAX_RULES_PER_UPDATE, MAX_DIRECTORIES_PER_UPDATE, MAX_TOOL_NAME_LENGTH, MAX_RULE_CONTENT_LENGTH, MAX_DIRECTORY_LENGTH, DESTINATIONS, BEHAVIORS, MODES, PERMISSION_OPTION_ID, COMPUTER_USE_MCP_TOOL_PREFIX, USAGE_OPEN, USAGE_CLOSE, AGENT_ID_LINE, PARTIAL_OUTPUT_NOTE, PARTIAL_OUTPUT_LABEL, toolUseCallbacks, registerHookCallback, createPostToolUseHook, createTaskHook, MAX_TITLE_LENGTH, MAX_TITLE_CONTEXT_LENGTH, MIN_TITLE_CONTEXT_LENGTH, SessionTitles, SettingsManager, Pushable, MODE_CONFIG_ID, AUTO_MODE_FALLBACK, AUTO_MODE_FALLBACK_NOTICE, SessionModeManager, CLAUDE_CONFIG_DIR, execFileAsync, ZERO_USAGE, DEFAULT_CONTEXT_WINDOW, DEFAULT_FORCE_CANCEL_GRACE_MS, MCP_OAUTH_STATUS_POLL_MS, MCP_OAUTH_TIMEOUT_MS, TURN_NO_RESULT_MESSAGE, RESULT_WATCHDOG_TIMEOUT_MS, STEER_METHOD, STEER_PRIORITY_NOW, STEER_PRIORITY_LATER, AUTONOMOUS_RESULT_ORIGINS, SUPPORTED_PROTOCOLS, PROVIDER_ID, DEFAULT_ANTHROPIC_BASE_URL, SUBAGENT_TRANSCRIPT_CAPABILITY, SESSION_ENDED_MESSAGE, LOCAL_ONLY_COMMANDS, LOCAL_COMMAND_MARKERS, ClientConnection, mcpAuthentications, ClaudeAcpAgent, BUILTIN_AGENT_NAMES, MODEL_CONFIG_ID, AGENT_CONFIG_ID, FAST_MODE_CONFIG_ID, FAST_MODE_ON, FAST_MODE_OFF, FAST_MODE_DESCRIPTION, FAST_MODE_UNAVAILABLE_EXPLANATIONS, MODEL_CONTEXT_HINT_PATTERN, CONTEXT_HINT_SUFFIX_PATTERN, MODEL_FAMILY_VERSION_PATTERN, SKILL_CONTAINER_DIRS, contextWindowCache, PROVIDER_ROUTING_ENV_VARS, ClaudeAcpEndpoint, VERSION_PROBE_TIMEOUT_MILLISECONDS, ACP_PROBE_TIMEOUT_MILLISECONDS, LocalAgentSpecification, DirectAcpAgentDefinition, InProcessAcpAgentDefinition2, ClaudeCodeAgentSpecification, boundedText, jsonValue, requestIdSchema, errorResponseSchema, resultResponseSchema, serverRequestSchema, serverNotificationSchema, turnStatusSchema, messagePhaseSchema, commandExecutionStatusSchema, patchApplyStatusSchema, mcpToolCallStatusSchema, dynamicToolCallStatusSchema, collabAgentToolCallStatusSchema, fileUpdateChangeSchema, imageGenerationItemSchema, threadItemSchema, turnSchema, turnSteerResponseSchema, turnNotificationSchema, errorNotificationSchema, commandApprovalParamsSchema, fileChangeApprovalParamsSchema, userInputOptionSchema, userInputQuestionSchema, requestUserInputParamsSchema, reasoningTextDeltaParamsSchema, mcpElicitationParamsSchema, threadStartResponseSchema, threadTurnSchema, threadTurnsSchema, collaborationModeSchema, threadLifecycleResponseSchema, CODEX_HISTORY_TURN_PAGE_LIMIT, threadTurnsPageSchema, threadResumeResponseSchema, threadForkResponseSchema, threadTitleSchema, threadSummarySchema, threadListResponseSchema, reasoningEffortOptionSchema, modelSchema, modelListResponseSchema, threadSettingsUpdatedSchema, INITIALIZE_TIMEOUT_MILLISECONDS, MESSAGE_OUTPUT_LIMIT_BYTES, CodexAppServerError, CodexAppServerClient, TOOL_OUTPUT_CHARACTER_LIMIT, TITLE_CHARACTER_LIMIT, APPROVAL_TIMEOUT_MILLISECONDS, MODEL_SETTING_ID, REASONING_EFFORT_SETTING_ID, MODE_SETTING_ID, FAST_MODE_SETTING_ID, COLLABORATION_MODE_SETTING_ID, MODEL_CATALOG_LIMIT, FAST_TIER, SERVICE_TIER_FAST, WORKSPACE_WRITE_POLICY, READ_ONLY_MODE, AGENT_MODE, FULL_ACCESS_MODE, AGENT_MODES, DEFAULT_MODE, COLLABORATION_MODES, CodexSettings, APPROVAL_REASON_CHARACTER_LIMIT, APPROVAL_TIMEOUT_MILLISECONDS2, CODEX_AGENT_VERSION, SESSION_LIST_TIMEOUT_MILLISECONDS2, APPROVAL_OPTIONS, CodexAcpAgent, CodexAgentSpecification, PiRpcSpawnError, ESC, CSI, ANSI_ESCAPE_REGEX, SESSION_STATS_TIMEOUT_MS, PiRpcProcess, PI_SETUP_METHOD_ID, DEFAULT_TAIL_BYTES, DEFAULT_HEAD_BYTES, SessionStore, CONFIRM_PERMISSION_OPTIONS, EXTENSION_UI_RAW_INPUT_KEYS, CHOICE_OPTION_PREFIX, SessionManager, PiAcpSession, MODEL_CONFIG_ID2, THOUGHT_LEVEL_CONFIG_ID, contentBlockSchema, steerRequestSchema, PI_ACP_NAME, PI_ACP_VERSION, PiAcpAgent, PiAcpEndpoint, AgentProbeError, ACP_PROBE_TIMEOUT_MILLISECONDS2, PiAgentSpecification, ACP_OUTPUT_LIMIT_BYTES, VerifiedAcpReadiness, DiscoveryAcpHandler, configuredHttpProxy, configuredHttpsProxy, environmentProxyDispatcher, CATALOG_UPDATE_TIMEOUT_MILLISECONDS, AgentCatalogPublishError, CONTROL_TIMEOUT_MILLISECONDS, MAXIMUM_MESSAGE_BYTES, managerPlatform, workerLaunch, transition, daemonSwitchState, lifecycleCommand, lifecycleResponse, DataInheritanceError, APPLICATION_ID_PATTERN, CONNECTION_ID_PATTERN, INSTALLATION_ID_PATTERN, RUNTIME_CREDENTIAL_PATTERN, MAX_FILE_LENGTH, INSTALLATION_POINTER_KEYS, CHANNEL_INDEX_KEYS, VERIFIED_CONNECTION_KEYS, RuntimeInstallationStoreError, VerifiedRuntimeConnection, RuntimeInstallationStore, PAIRING_TIMEOUT_MILLISECONDS, PAIRING_CODE_PATTERN, TOKEN_PATTERN, CLAIM_RESPONSE_KEYS, REDEEM_RESPONSE_KEYS, MOBIUS_CLI_APPLICATION_ID, PairingClientError, runtimeRevocationCloseCode, runtimeRevocationCloseReason, RuntimeRelayRevokedError, WorkspaceDirectoryListing, WorkspaceDirectoryService, MAXIMUM_DAEMON_LOG_BYTES, DaemonDiagnosticLog, DaemonAcpObserver, ACTIVE_TURN_TEXT_CHUNK_LIMIT, ActiveDaemonTurn, MAX_SESSIONS_WITH_COMPLETED_RECOVERY, waitForTurnCompletion, DaemonTurnRegistry, acpSessionStoreMigrations, sessionEventCacheMigrations, NodeSQLiteSession, NodeSQLiteTransaction, NodeSQLiteDatabase, LocalSqliteDatabase, openAcpSessionDatabase, openSessionEventCacheV2Database, responseSchema, threadSchema, turnsSchema, itemTypeSchema, userMessageSchema, textSchema, imageSchema, agentMessageSchema, reasoningSchema, commandExecutionSchema, fileChangeSchema, mcpToolCallSchema, dynamicToolCallSchema, planSchema, historyItemSchema, CodexHistoryResponseError, SESSION_HISTORY_MESSAGE_CHARACTER_LIMIT, readCodexFullHistory, MAXIMUM_SESSION_TITLE_LENGTH, forkSuffixPattern, NativeSessionService, MAX_TERMINAL_RECEIPTS, DaemonOperationState, MAX_DIAGNOSTIC_TEXT_LENGTH, RelayConnectionDiagnostics, ARTIFACT_SCHEME, ARTIFACT_DOWNLOAD_TIMEOUT_MILLISECONDS, MAX_AGENT_IMAGE_BASE64_LENGTH, MAX_AGENT_RESOURCE_BYTE_LENGTH, PromptArtifactError, ResolvedPromptArtifacts, PromptArtifactReference, AgentSettingsLaunchSelectionResult, AppliedAgentLaunchSettings, AgentSettingsAdapter, CodexSettingsAdapter, genericAdapter, codexAdapter, CHUNK_BYTES, ResolvedSessionDirectories, import_semver, CONNECTION_TIMEOUT_MILLISECONDS, RelayConnectionError, HEARTBEAT_ACK_TIMEOUT_MILLISECONDS, HEARTBEAT_INTERVAL_MILLISECONDS, RelayLivenessState, UnsupportedRelayLivenessState, AwaitingHeartbeatAckState, WaitingForHeartbeatState, FinishedRelayLivenessState, RelayConnectionLiveness, MAX_BUFFERED_BYTES, SESSION_EVENT_V2_BATCH_WINDOW_MILLISECONDS, DaemonSessionEventPublisher, DaemonSessionEventProjectionV2, INITIAL_POSITION, allocationRowSchema, SqliteSessionLiveEventPosition, RELAY_RECONNECT_DELAY_MILLISECONDS, RUNTIME_CREDENTIAL_PATTERN2, MobiusRuntimeConfigurationError, MobiusRuntimeState2, IdleMobiusRuntimeState, RunningMobiusRuntimeState, FinishedMobiusRuntimeState, MobiusRuntimeEngine;
|
|
88097
88162
|
var init_dist = __esm({
|
|
88098
|
-
"node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
88163
|
+
"node_modules/.pnpm/@moxt-ai+mobius@0.0.234_@anthropic-ai+sdk@0.133.0_zod@4.6.5__@modelcontextprotocol+sdk@1.32.1_zod@4.6.5_/node_modules/@moxt-ai/mobius/dist/index.js"() {
|
|
88099
88164
|
"use strict";
|
|
88100
88165
|
init_cjs_shims();
|
|
88101
88166
|
init_acp();
|
|
@@ -88306,49 +88371,51 @@ var init_dist = __esm({
|
|
|
88306
88371
|
import_node_path31 = require("node:path");
|
|
88307
88372
|
import_undici2 = __toESM(require_undici(), 1);
|
|
88308
88373
|
import_undici3 = __toESM(require_undici(), 1);
|
|
88309
|
-
import_node_crypto12 = require("node:crypto");
|
|
88310
88374
|
import_promises29 = require("node:fs/promises");
|
|
88311
88375
|
import_node_path32 = require("node:path");
|
|
88376
|
+
import_node_crypto12 = require("node:crypto");
|
|
88312
88377
|
import_promises30 = require("node:fs/promises");
|
|
88313
|
-
|
|
88378
|
+
import_node_net2 = require("node:net");
|
|
88314
88379
|
import_node_path33 = require("node:path");
|
|
88315
|
-
import_node_util4 = require("node:util");
|
|
88316
88380
|
import_promises31 = require("node:fs/promises");
|
|
88317
|
-
|
|
88381
|
+
import_node_crypto13 = require("node:crypto");
|
|
88382
|
+
import_promises32 = require("node:fs/promises");
|
|
88318
88383
|
import_node_path34 = require("node:path");
|
|
88319
|
-
import_node_fs14 = require("node:fs");
|
|
88320
|
-
import_node_path35 = require("node:path");
|
|
88321
88384
|
import_node_crypto14 = require("node:crypto");
|
|
88322
|
-
|
|
88385
|
+
import_node_path35 = require("node:path");
|
|
88386
|
+
import_node_util4 = require("node:util");
|
|
88387
|
+
import_promises33 = require("node:fs/promises");
|
|
88388
|
+
import_node_os14 = require("node:os");
|
|
88323
88389
|
import_node_path36 = require("node:path");
|
|
88390
|
+
import_node_fs14 = require("node:fs");
|
|
88391
|
+
import_node_path37 = require("node:path");
|
|
88392
|
+
import_node_crypto15 = require("node:crypto");
|
|
88393
|
+
import_node_fs15 = require("node:fs");
|
|
88394
|
+
import_node_path38 = require("node:path");
|
|
88324
88395
|
import_node_sqlite = require("node:sqlite");
|
|
88325
88396
|
import_node_sqlite2 = require("node:sqlite");
|
|
88326
88397
|
import_node_child_process16 = require("node:child_process");
|
|
88327
|
-
import_node_crypto15 = require("node:crypto");
|
|
88328
88398
|
import_node_crypto16 = require("node:crypto");
|
|
88399
|
+
import_node_crypto17 = require("node:crypto");
|
|
88329
88400
|
import_undici4 = __toESM(require_undici(), 1);
|
|
88330
88401
|
import_undici5 = __toESM(require_undici(), 1);
|
|
88331
88402
|
import_undici6 = __toESM(require_undici(), 1);
|
|
88332
88403
|
import_undici7 = __toESM(require_undici(), 1);
|
|
88333
|
-
import_node_crypto17 = require("node:crypto");
|
|
88334
|
-
import_undici8 = __toESM(require_undici(), 1);
|
|
88335
88404
|
import_node_crypto18 = require("node:crypto");
|
|
88405
|
+
import_undici8 = __toESM(require_undici(), 1);
|
|
88406
|
+
import_node_crypto19 = require("node:crypto");
|
|
88336
88407
|
import_node_fs16 = require("node:fs");
|
|
88337
|
-
|
|
88338
|
-
|
|
88408
|
+
import_promises34 = require("node:fs/promises");
|
|
88409
|
+
import_node_path39 = require("node:path");
|
|
88339
88410
|
import_node_url3 = require("node:url");
|
|
88340
|
-
|
|
88341
|
-
import_node_crypto19 = require("node:crypto");
|
|
88342
|
-
import_undici9 = __toESM(require_undici(), 1);
|
|
88411
|
+
import_node_path40 = require("node:path");
|
|
88343
88412
|
import_node_crypto20 = require("node:crypto");
|
|
88344
|
-
|
|
88345
|
-
import_node_net2 = require("node:net");
|
|
88346
|
-
import_node_path39 = require("node:path");
|
|
88413
|
+
import_undici9 = __toESM(require_undici(), 1);
|
|
88347
88414
|
import_undici10 = __toESM(require_undici(), 1);
|
|
88348
88415
|
import_node_crypto21 = require("node:crypto");
|
|
88349
88416
|
import_undici11 = __toESM(require_undici(), 1);
|
|
88350
|
-
|
|
88351
|
-
|
|
88417
|
+
import_promises35 = require("node:fs/promises");
|
|
88418
|
+
import_node_path41 = require("node:path");
|
|
88352
88419
|
import_meta = {};
|
|
88353
88420
|
__create2 = Object.create;
|
|
88354
88421
|
__defProp2 = Object.defineProperty;
|
|
@@ -105694,10 +105761,10 @@ if ($env:MOBIUS_PERMISSION_PRIVATE -eq '1') {
|
|
|
105694
105761
|
onSessionEventV2 = (_event) => Promise.resolve();
|
|
105695
105762
|
onCommands = () => Promise.resolve();
|
|
105696
105763
|
onConfig = () => Promise.resolve();
|
|
105697
|
-
onContent = () => Promise.resolve();
|
|
105764
|
+
onContent = (_event) => Promise.resolve();
|
|
105698
105765
|
onElicitation = () => Promise.resolve();
|
|
105699
105766
|
onElicitationResolved = () => Promise.resolve();
|
|
105700
|
-
onInfo = () => Promise.resolve();
|
|
105767
|
+
onInfo = (_event) => Promise.resolve();
|
|
105701
105768
|
onPermission = () => Promise.resolve();
|
|
105702
105769
|
onPermissionResolved = () => Promise.resolve();
|
|
105703
105770
|
onUsage = () => Promise.resolve();
|
|
@@ -106718,7 +106785,7 @@ if ($env:MOBIUS_PERMISSION_PRIVATE -eq '1') {
|
|
|
106718
106785
|
return new SQL([new StringChunk(str)]);
|
|
106719
106786
|
}
|
|
106720
106787
|
_sql.raw = raw;
|
|
106721
|
-
function
|
|
106788
|
+
function join272(chunks, separator) {
|
|
106722
106789
|
const result = [];
|
|
106723
106790
|
for (const [i3, chunk] of chunks.entries()) {
|
|
106724
106791
|
if (i3 > 0 && separator !== void 0) result.push(separator);
|
|
@@ -106726,7 +106793,7 @@ if ($env:MOBIUS_PERMISSION_PRIVATE -eq '1') {
|
|
|
106726
106793
|
}
|
|
106727
106794
|
return new SQL(result);
|
|
106728
106795
|
}
|
|
106729
|
-
_sql.join =
|
|
106796
|
+
_sql.join = join272;
|
|
106730
106797
|
function identifier2(value) {
|
|
106731
106798
|
return new Name(value);
|
|
106732
106799
|
}
|
|
@@ -107966,7 +108033,7 @@ params: ${params}`);
|
|
|
107966
108033
|
const baseTableName = this.tableName;
|
|
107967
108034
|
const tableName = getTableLikeName(table);
|
|
107968
108035
|
for (const item of extractUsedTable(table)) this.usedTables.add(item);
|
|
107969
|
-
if (typeof tableName === "string" && this.config.joins?.some((
|
|
108036
|
+
if (typeof tableName === "string" && this.config.joins?.some((join272) => join272.alias === tableName)) throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
107970
108037
|
if (!this.isPartialSelect) {
|
|
107971
108038
|
if (Object.keys(this.joinsNotNullableMap).length === 1 && typeof baseTableName === "string") this.config.fields = { [baseTableName]: this.config.fields };
|
|
107972
108039
|
if (typeof tableName === "string" && !is(table, SQL)) {
|
|
@@ -108792,7 +108859,7 @@ params: ${params}`);
|
|
|
108792
108859
|
if (!joins2) return;
|
|
108793
108860
|
const withEntries = Object.entries(joins2).filter(([_, v]) => v);
|
|
108794
108861
|
if (!withEntries.length) return;
|
|
108795
|
-
return sql.join(withEntries.map(([k2,
|
|
108862
|
+
return sql.join(withEntries.map(([k2, join272]) => {
|
|
108796
108863
|
const relation = tableConfig.relations[k2];
|
|
108797
108864
|
const isSingle2 = is(relation, One);
|
|
108798
108865
|
const targetTable = aliasedTable(relation.targetTable, `d${currentDepth + 1}`);
|
|
@@ -108803,7 +108870,7 @@ params: ${params}`);
|
|
|
108803
108870
|
table: targetTable,
|
|
108804
108871
|
mode: isSingle2 ? "first" : "many",
|
|
108805
108872
|
schema,
|
|
108806
|
-
queryConfig:
|
|
108873
|
+
queryConfig: join272,
|
|
108807
108874
|
tableConfig: schema[relation.targetTableName],
|
|
108808
108875
|
relationWhere: filter,
|
|
108809
108876
|
isNested: true,
|
|
@@ -108817,7 +108884,7 @@ params: ${params}`);
|
|
|
108817
108884
|
key: k2,
|
|
108818
108885
|
selection: innerQuery.selection,
|
|
108819
108886
|
isArray: !isSingle2,
|
|
108820
|
-
isOptional: (relation.optional ?? false) ||
|
|
108887
|
+
isOptional: (relation.optional ?? false) || join272 !== true && !!join272.where
|
|
108821
108888
|
});
|
|
108822
108889
|
const jsonColumns = sql.join(innerQuery.selection.map((s) => {
|
|
108823
108890
|
return sql`${sql.raw(this.escapeString(s.key))}, ${s.selection ? sql`${jsonb}(${sql.identifier(s.key)})` : sql.identifier(s.key)}`;
|
|
@@ -109407,7 +109474,7 @@ params: ${params}`);
|
|
|
109407
109474
|
createJoin(joinType) {
|
|
109408
109475
|
return ((table, on2) => {
|
|
109409
109476
|
const tableName = getTableLikeName(table);
|
|
109410
|
-
if (typeof tableName === "string" && this.config.joins.some((
|
|
109477
|
+
if (typeof tableName === "string" && this.config.joins.some((join272) => join272.alias === tableName)) throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
109411
109478
|
if (typeof on2 === "function") {
|
|
109412
109479
|
const from = this.config.from ? is(table, SQLiteTable) ? table[Table.Symbol.Columns] : is(table, Subquery) ? table._.selectedFields : is(table, SQLiteViewBase) ? table[ViewBaseConfig].selectedFields : void 0 : void 0;
|
|
109413
109480
|
on2 = on2(new Proxy(this.config.table[Table.Symbol.Columns], new SelectionProxyHandler({
|
|
@@ -112469,11 +112536,16 @@ params: ${params}`);
|
|
|
112469
112536
|
this.#locked = false;
|
|
112470
112537
|
};
|
|
112471
112538
|
};
|
|
112472
|
-
|
|
112539
|
+
DEFAULT_MAX_ACP_PROCESSES = 1e3;
|
|
112540
|
+
MAX_ACP_PROCESSES_ENVIRONMENT_KEY = "MOBIUS_MAX_ACP_PROCESSES";
|
|
112473
112541
|
AgentProcessPool = class {
|
|
112542
|
+
#maxProcesses;
|
|
112474
112543
|
#slots = /* @__PURE__ */ new Map();
|
|
112475
112544
|
#lock = new AcpProcessCapacityLock();
|
|
112476
112545
|
#changed = Promise.withResolvers();
|
|
112546
|
+
constructor(maxProcesses = DEFAULT_MAX_ACP_PROCESSES) {
|
|
112547
|
+
this.#maxProcesses = maxProcesses;
|
|
112548
|
+
}
|
|
112477
112549
|
notifyChanged = () => {
|
|
112478
112550
|
const changed = this.#changed;
|
|
112479
112551
|
this.#changed = Promise.withResolvers();
|
|
@@ -112529,7 +112601,7 @@ params: ${params}`);
|
|
|
112529
112601
|
try {
|
|
112530
112602
|
for (; ; ) {
|
|
112531
112603
|
signal.throwIfAborted();
|
|
112532
|
-
if (this.#slots.size <
|
|
112604
|
+
if (this.#slots.size < this.#maxProcesses) {
|
|
112533
112605
|
const id = /* @__PURE__ */ Symbol("ACP process slot");
|
|
112534
112606
|
this.#slots.set(id, { kind: "starting" });
|
|
112535
112607
|
return id;
|
|
@@ -112577,10 +112649,10 @@ params: ${params}`);
|
|
|
112577
112649
|
SESSION_CLOSE_TIMEOUT_MILLISECONDS = 3e4;
|
|
112578
112650
|
AgentRuntimeManager = class {
|
|
112579
112651
|
#operations = new RuntimeOperations();
|
|
112580
|
-
#processes
|
|
112652
|
+
#processes;
|
|
112581
112653
|
#executionProcesses = new RetainedAgentProcesses({
|
|
112582
|
-
touch: this.#processes.touch,
|
|
112583
|
-
changed: this.#processes.notifyChanged
|
|
112654
|
+
touch: (runtime) => this.#processes.touch(runtime),
|
|
112655
|
+
changed: () => this.#processes.notifyChanged()
|
|
112584
112656
|
});
|
|
112585
112657
|
#queryProcesses;
|
|
112586
112658
|
#executions = new ActiveExecutions();
|
|
@@ -112594,8 +112666,9 @@ params: ${params}`);
|
|
|
112594
112666
|
#contentExternalizer;
|
|
112595
112667
|
#timer;
|
|
112596
112668
|
#observer;
|
|
112597
|
-
constructor(observer = new NullAcpSessionObserver(), store = new MemoryAcpSessionStore(), nativeHistoryReader = acpNativeHistoryReader, sessionIdentity = "assigned", onSessionStatusChanged = () => void 0, contentExternalizer = new AcpContentExternalizer(new UnretainedExternalContentStore()), timer = systemDaemonTimer) {
|
|
112669
|
+
constructor(observer = new NullAcpSessionObserver(), store = new MemoryAcpSessionStore(), nativeHistoryReader = acpNativeHistoryReader, sessionIdentity = "assigned", onSessionStatusChanged = () => void 0, contentExternalizer = new AcpContentExternalizer(new UnretainedExternalContentStore()), timer = systemDaemonTimer, maxProcesses) {
|
|
112598
112670
|
this.#observer = observer;
|
|
112671
|
+
this.#processes = new AgentProcessPool(maxProcesses);
|
|
112599
112672
|
this.#store = store;
|
|
112600
112673
|
this.#nativeHistoryReader = nativeHistoryReader;
|
|
112601
112674
|
this.#sessionIdentity = sessionIdentity;
|
|
@@ -113297,7 +113370,7 @@ params: ${params}`);
|
|
|
113297
113370
|
};
|
|
113298
113371
|
package_default = {
|
|
113299
113372
|
name: "@moxt-ai/mobius",
|
|
113300
|
-
version: "0.0.
|
|
113373
|
+
version: "0.0.234",
|
|
113301
113374
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
113302
113375
|
type: "module",
|
|
113303
113376
|
bin: {
|
|
@@ -145858,6 +145931,59 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
145858
145931
|
this.name = "AgentCatalogPublishError";
|
|
145859
145932
|
}
|
|
145860
145933
|
};
|
|
145934
|
+
CONTROL_TIMEOUT_MILLISECONDS = 13e4;
|
|
145935
|
+
MAXIMUM_MESSAGE_BYTES = 64 * 1024;
|
|
145936
|
+
managerPlatform = platformSupportFor(process.platform);
|
|
145937
|
+
workerLaunch = external_exports2.object({
|
|
145938
|
+
executable: external_exports2.string().min(1),
|
|
145939
|
+
entry: external_exports2.string().min(1),
|
|
145940
|
+
version: external_exports2.string().min(1).max(128)
|
|
145941
|
+
}).readonly();
|
|
145942
|
+
transition = {
|
|
145943
|
+
id: external_exports2.string().min(1).max(256),
|
|
145944
|
+
context: external_exports2.string().max(256),
|
|
145945
|
+
previous: workerLaunch,
|
|
145946
|
+
next: workerLaunch
|
|
145947
|
+
};
|
|
145948
|
+
daemonSwitchState = external_exports2.discriminatedUnion("kind", [
|
|
145949
|
+
external_exports2.object({ ...transition, kind: external_exports2.literal("switching") }),
|
|
145950
|
+
external_exports2.object({ ...transition, kind: external_exports2.literal("switched") }),
|
|
145951
|
+
external_exports2.object({
|
|
145952
|
+
...transition,
|
|
145953
|
+
kind: external_exports2.literal("rolled-back"),
|
|
145954
|
+
code: external_exports2.string(),
|
|
145955
|
+
message: external_exports2.string(),
|
|
145956
|
+
stdout: external_exports2.string().max(4096),
|
|
145957
|
+
stderr: external_exports2.string().max(4096),
|
|
145958
|
+
retryAfter: external_exports2.number().int().nonnegative()
|
|
145959
|
+
})
|
|
145960
|
+
]).readonly();
|
|
145961
|
+
lifecycleCommand = external_exports2.discriminatedUnion("kind", [
|
|
145962
|
+
external_exports2.object({ kind: external_exports2.literal("status") }),
|
|
145963
|
+
external_exports2.object({ kind: external_exports2.literal("ensure"), launch: workerLaunch }),
|
|
145964
|
+
external_exports2.object({ kind: external_exports2.literal("stop") }),
|
|
145965
|
+
external_exports2.object({
|
|
145966
|
+
kind: external_exports2.literal("switch"),
|
|
145967
|
+
id: external_exports2.string().min(1).max(256),
|
|
145968
|
+
context: external_exports2.string().max(256),
|
|
145969
|
+
launch: workerLaunch
|
|
145970
|
+
}),
|
|
145971
|
+
external_exports2.object({ kind: external_exports2.literal("switch-status"), wait: external_exports2.boolean() })
|
|
145972
|
+
]).readonly();
|
|
145973
|
+
lifecycleResponse = external_exports2.discriminatedUnion("kind", [
|
|
145974
|
+
external_exports2.object({
|
|
145975
|
+
kind: external_exports2.literal("status"),
|
|
145976
|
+
protocolVersion: external_exports2.literal(2),
|
|
145977
|
+
worker: external_exports2.object({ pid: external_exports2.number().int().positive(), version: external_exports2.string() }).readonly().nullable()
|
|
145978
|
+
}),
|
|
145979
|
+
external_exports2.object({ kind: external_exports2.literal("switch-status"), state: daemonSwitchState.nullable() }),
|
|
145980
|
+
external_exports2.object({ kind: external_exports2.literal("stopped") }),
|
|
145981
|
+
external_exports2.object({ kind: external_exports2.literal("switching") }),
|
|
145982
|
+
external_exports2.object({ kind: external_exports2.literal("error"), code: external_exports2.string(), message: external_exports2.string() })
|
|
145983
|
+
]).readonly();
|
|
145984
|
+
DataInheritanceError = class extends Error {
|
|
145985
|
+
code = "data_inheritance_failed";
|
|
145986
|
+
};
|
|
145861
145987
|
APPLICATION_ID_PATTERN = /^[a-z][a-z0-9]*(?:[.-][a-z0-9]+){1,31}$/;
|
|
145862
145988
|
CONNECTION_ID_PATTERN = /^mcn_[a-f0-9]{32}$/;
|
|
145863
145989
|
INSTALLATION_ID_PATTERN = /^min_[a-f0-9]{32}$/;
|
|
@@ -145931,18 +146057,18 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
145931
146057
|
this.applicationId = applicationId;
|
|
145932
146058
|
this.installationId = installationId2;
|
|
145933
146059
|
this.stateDirectory = stateDirectory;
|
|
145934
|
-
this.#channelDirectory = (0,
|
|
145935
|
-
this.#connectionDirectory = (0,
|
|
146060
|
+
this.#channelDirectory = (0, import_node_path34.join)(stateDirectory, "channels");
|
|
146061
|
+
this.#connectionDirectory = (0, import_node_path34.join)(stateDirectory, "connections");
|
|
145936
146062
|
}
|
|
145937
146063
|
static open = async (options, signal) => {
|
|
145938
146064
|
signal.throwIfAborted();
|
|
145939
146065
|
const applicationId = validateApplicationId(options.applicationId);
|
|
145940
|
-
const rootDirectory = (0,
|
|
145941
|
-
const applicationDirectory = (0,
|
|
146066
|
+
const rootDirectory = (0, import_node_path34.resolve)(options.stateDirectory);
|
|
146067
|
+
const applicationDirectory = (0, import_node_path34.join)(rootDirectory, "installations", applicationId);
|
|
145942
146068
|
try {
|
|
145943
|
-
await (0,
|
|
146069
|
+
await (0, import_promises32.mkdir)(rootDirectory, { mode: 448, recursive: true });
|
|
145944
146070
|
await validateLocalPath(rootDirectory, true, true, signal);
|
|
145945
|
-
await (0,
|
|
146071
|
+
await (0, import_promises32.mkdir)(applicationDirectory, { mode: 448, recursive: true });
|
|
145946
146072
|
} catch (cause) {
|
|
145947
146073
|
throw new RuntimeInstallationStoreError(
|
|
145948
146074
|
"installation_unavailable",
|
|
@@ -145953,9 +146079,9 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
145953
146079
|
);
|
|
145954
146080
|
}
|
|
145955
146081
|
const storedInstallationId = await readOrCreateInstallationId(applicationDirectory, signal);
|
|
145956
|
-
const stateDirectory = (0,
|
|
146082
|
+
const stateDirectory = (0, import_node_path34.join)(applicationDirectory, storedInstallationId);
|
|
145957
146083
|
try {
|
|
145958
|
-
await (0,
|
|
146084
|
+
await (0, import_promises32.mkdir)(stateDirectory, { mode: 448, recursive: true });
|
|
145959
146085
|
} catch (cause) {
|
|
145960
146086
|
throw new RuntimeInstallationStoreError(
|
|
145961
146087
|
"installation_unavailable",
|
|
@@ -145968,8 +146094,8 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
145968
146094
|
signal.throwIfAborted();
|
|
145969
146095
|
return new _RuntimeInstallationStore(applicationId, storedInstallationId, stateDirectory);
|
|
145970
146096
|
};
|
|
145971
|
-
connectionPath = (connectionId2) => (0,
|
|
145972
|
-
channelIndexPath = (channelId) => (0,
|
|
146097
|
+
connectionPath = (connectionId2) => (0, import_node_path34.join)(this.#connectionDirectory, `${validateConnectionId(connectionId2)}.json`);
|
|
146098
|
+
channelIndexPath = (channelId) => (0, import_node_path34.join)(this.#channelDirectory, channelIndexFileName(validateIdentifier(channelId, "invalid_channel_id")));
|
|
145973
146099
|
readConnection = async (connectionId2, signal) => {
|
|
145974
146100
|
const stored = decodeConnection(
|
|
145975
146101
|
await readJsonFile2(this.connectionPath(connectionId2), signal, "connection_not_found")
|
|
@@ -146042,9 +146168,9 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146042
146168
|
signal.throwIfAborted();
|
|
146043
146169
|
let entries;
|
|
146044
146170
|
try {
|
|
146045
|
-
entries = await (0,
|
|
146171
|
+
entries = await (0, import_promises32.readdir)(this.#connectionDirectory);
|
|
146046
146172
|
} catch (cause) {
|
|
146047
|
-
if (
|
|
146173
|
+
if (isNodeError22(cause, "ENOENT")) {
|
|
146048
146174
|
return [];
|
|
146049
146175
|
}
|
|
146050
146176
|
throw new RuntimeInstallationStoreError(
|
|
@@ -146092,12 +146218,12 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146092
146218
|
const connection = await this.readConnection(connectionId2, signal);
|
|
146093
146219
|
signal.throwIfAborted();
|
|
146094
146220
|
try {
|
|
146095
|
-
await (0,
|
|
146221
|
+
await (0, import_promises32.unlink)(this.connectionPath(connection.connectionId));
|
|
146096
146222
|
signal.throwIfAborted();
|
|
146097
|
-
await (0,
|
|
146223
|
+
await (0, import_promises32.unlink)(this.channelIndexPath(connection.channelId));
|
|
146098
146224
|
} catch (cause) {
|
|
146099
146225
|
signal.throwIfAborted();
|
|
146100
|
-
if (
|
|
146226
|
+
if (isNodeError22(cause, "ENOENT")) {
|
|
146101
146227
|
return;
|
|
146102
146228
|
}
|
|
146103
146229
|
throw new RuntimeInstallationStoreError(
|
|
@@ -146190,7 +146316,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146190
146316
|
}
|
|
146191
146317
|
if (id.startsWith("path-")) {
|
|
146192
146318
|
const path72 = expandCurrentUserHome(decodePath(id, "path-"));
|
|
146193
|
-
if ((0,
|
|
146319
|
+
if ((0, import_node_path36.isAbsolute)(path72)) {
|
|
146194
146320
|
return path72;
|
|
146195
146321
|
}
|
|
146196
146322
|
}
|
|
@@ -146198,15 +146324,15 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146198
146324
|
};
|
|
146199
146325
|
resolvePath = async (requested, signal) => {
|
|
146200
146326
|
signal.throwIfAborted();
|
|
146201
|
-
if (!(0,
|
|
146327
|
+
if (!(0, import_node_path36.isAbsolute)(requested) || requested.includes("\0") || (0, import_node_path36.normalize)(requested) !== requested) {
|
|
146202
146328
|
throw new LocalAuthorizationError("The local directory path is invalid");
|
|
146203
146329
|
}
|
|
146204
146330
|
try {
|
|
146205
|
-
const target = await (0,
|
|
146331
|
+
const target = await (0, import_promises33.realpath)(requested);
|
|
146206
146332
|
signal.throwIfAborted();
|
|
146207
|
-
const metadata = await (0,
|
|
146333
|
+
const metadata = await (0, import_promises33.stat)(target);
|
|
146208
146334
|
signal.throwIfAborted();
|
|
146209
|
-
if (!(0,
|
|
146335
|
+
if (!(0, import_node_path36.isAbsolute)(target) || (0, import_node_path36.normalize)(target) !== target || !metadata.isDirectory()) {
|
|
146210
146336
|
throw new LocalAuthorizationError("The selected location is not a directory");
|
|
146211
146337
|
}
|
|
146212
146338
|
return target;
|
|
@@ -146221,8 +146347,8 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146221
146347
|
}
|
|
146222
146348
|
};
|
|
146223
146349
|
label = (path72) => {
|
|
146224
|
-
const suffix = (0,
|
|
146225
|
-
return suffix === "" ? "~" : !(0,
|
|
146350
|
+
const suffix = (0, import_node_path36.relative)((0, import_node_os14.homedir)(), path72);
|
|
146351
|
+
return suffix === "" ? "~" : !(0, import_node_path36.isAbsolute)(suffix) && suffix !== ".." && !suffix.startsWith(`..${process.platform === "win32" ? "\\" : "/"}`) ? `~/${suffix.replaceAll("\\", "/")}` : path72;
|
|
146226
146352
|
};
|
|
146227
146353
|
identify = async (bindingId, requestedPath2, signal) => {
|
|
146228
146354
|
this.authorizeMachine(bindingId);
|
|
@@ -146230,7 +146356,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146230
146356
|
return {
|
|
146231
146357
|
path: path72,
|
|
146232
146358
|
directoryId: encodePath(path72),
|
|
146233
|
-
name: (0,
|
|
146359
|
+
name: (0, import_node_path36.basename)(path72) || path72,
|
|
146234
146360
|
label: this.label(path72)
|
|
146235
146361
|
};
|
|
146236
146362
|
};
|
|
@@ -146241,7 +146367,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146241
146367
|
list = async (bindingId, id, signal) => {
|
|
146242
146368
|
const target = await this.resolve(bindingId, id, signal);
|
|
146243
146369
|
try {
|
|
146244
|
-
const children = await (0,
|
|
146370
|
+
const children = await (0, import_promises33.readdir)(target, { withFileTypes: true });
|
|
146245
146371
|
signal.throwIfAborted();
|
|
146246
146372
|
const entries = [];
|
|
146247
146373
|
for (const child2 of children) {
|
|
@@ -146252,7 +146378,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146252
146378
|
continue;
|
|
146253
146379
|
}
|
|
146254
146380
|
try {
|
|
146255
|
-
const path72 = await this.resolvePath((0,
|
|
146381
|
+
const path72 = await this.resolvePath((0, import_node_path36.join)(target, child2.name), signal);
|
|
146256
146382
|
entries.push({ directoryId: encodePath(path72), name: child2.name });
|
|
146257
146383
|
} catch (cause) {
|
|
146258
146384
|
signal.throwIfAborted();
|
|
@@ -146262,7 +146388,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146262
146388
|
}
|
|
146263
146389
|
}
|
|
146264
146390
|
entries.sort((a, b2) => a.name.localeCompare(b2.name));
|
|
146265
|
-
const parent = (0,
|
|
146391
|
+
const parent = (0, import_node_path36.dirname)(target);
|
|
146266
146392
|
return new WorkspaceDirectoryListing(
|
|
146267
146393
|
id,
|
|
146268
146394
|
this.label(target),
|
|
@@ -146291,8 +146417,8 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146291
146417
|
#path;
|
|
146292
146418
|
#maximumBytes;
|
|
146293
146419
|
constructor(stateDirectory, maximumBytes = MAXIMUM_DAEMON_LOG_BYTES) {
|
|
146294
|
-
this.#directory = (0,
|
|
146295
|
-
this.#path = (0,
|
|
146420
|
+
this.#directory = (0, import_node_path37.join)(stateDirectory, "logs");
|
|
146421
|
+
this.#path = (0, import_node_path37.join)(this.#directory, "daemon.log");
|
|
146296
146422
|
this.#maximumBytes = maximumBytes;
|
|
146297
146423
|
}
|
|
146298
146424
|
// Export only correlation and failure metadata. Local messages and paths stay local.
|
|
@@ -146397,10 +146523,13 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146397
146523
|
(0, import_node_fs14.renameSync)(temporaryPath, this.#path);
|
|
146398
146524
|
};
|
|
146399
146525
|
};
|
|
146400
|
-
DaemonAcpObserver = class {
|
|
146526
|
+
DaemonAcpObserver = class extends NullAcpSessionObserver {
|
|
146527
|
+
#publishInfo;
|
|
146401
146528
|
#record;
|
|
146402
146529
|
#recordV2;
|
|
146403
|
-
constructor(record22,
|
|
146530
|
+
constructor(recordV2, record22, publishInfo) {
|
|
146531
|
+
super();
|
|
146532
|
+
this.#publishInfo = publishInfo;
|
|
146404
146533
|
this.#record = record22;
|
|
146405
146534
|
this.#recordV2 = recordV2;
|
|
146406
146535
|
}
|
|
@@ -146408,40 +146537,12 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146408
146537
|
this.#recordV2(event2);
|
|
146409
146538
|
return Promise.resolve();
|
|
146410
146539
|
};
|
|
146411
|
-
onCommands = (event2) => {
|
|
146412
|
-
this.#record(event2.sessionId, event2);
|
|
146413
|
-
return Promise.resolve();
|
|
146414
|
-
};
|
|
146415
|
-
onConfig = (event2) => {
|
|
146416
|
-
this.#record(event2.sessionId, event2);
|
|
146417
|
-
return Promise.resolve();
|
|
146418
|
-
};
|
|
146419
146540
|
onContent = (event2) => {
|
|
146420
|
-
this.#record(event2
|
|
146421
|
-
return Promise.resolve();
|
|
146422
|
-
};
|
|
146423
|
-
onElicitation = (event2) => {
|
|
146424
|
-
this.#record(event2.sessionId, event2);
|
|
146425
|
-
return Promise.resolve();
|
|
146426
|
-
};
|
|
146427
|
-
onElicitationResolved = (event2) => {
|
|
146428
|
-
this.#record(event2.sessionId, event2);
|
|
146541
|
+
this.#record(event2);
|
|
146429
146542
|
return Promise.resolve();
|
|
146430
146543
|
};
|
|
146431
146544
|
onInfo = (event2) => {
|
|
146432
|
-
this.#
|
|
146433
|
-
return Promise.resolve();
|
|
146434
|
-
};
|
|
146435
|
-
onPermission = (event2) => {
|
|
146436
|
-
this.#record(event2.sessionId, event2);
|
|
146437
|
-
return Promise.resolve();
|
|
146438
|
-
};
|
|
146439
|
-
onPermissionResolved = (event2) => {
|
|
146440
|
-
this.#record(event2.sessionId, event2);
|
|
146441
|
-
return Promise.resolve();
|
|
146442
|
-
};
|
|
146443
|
-
onUsage = (event2) => {
|
|
146444
|
-
this.#record(event2.sessionId, event2);
|
|
146545
|
+
this.#publishInfo(event2);
|
|
146445
146546
|
return Promise.resolve();
|
|
146446
146547
|
};
|
|
146447
146548
|
};
|
|
@@ -146457,7 +146558,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146457
146558
|
#timeline;
|
|
146458
146559
|
#sequence = 0;
|
|
146459
146560
|
#interaction = null;
|
|
146460
|
-
#epoch = decodeIdentifier((0,
|
|
146561
|
+
#epoch = decodeIdentifier((0, import_node_crypto15.randomUUID)());
|
|
146461
146562
|
constructor(command, attemptId) {
|
|
146462
146563
|
this.attemptId = attemptId;
|
|
146463
146564
|
this.command = command;
|
|
@@ -146506,7 +146607,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146506
146607
|
if (!this.#activities.has(activity2.activityId)) {
|
|
146507
146608
|
this.#timeline = [
|
|
146508
146609
|
...this.#timeline,
|
|
146509
|
-
{ activityId: activity2.activityId, id: decodeIdentifier((0,
|
|
146610
|
+
{ activityId: activity2.activityId, id: decodeIdentifier((0, import_node_crypto15.randomUUID)()), kind: "activity" }
|
|
146510
146611
|
];
|
|
146511
146612
|
}
|
|
146512
146613
|
this.#activities.set(activity2.activityId, {
|
|
@@ -146529,7 +146630,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146529
146630
|
if (previous2 === void 0) {
|
|
146530
146631
|
this.#timeline = [
|
|
146531
146632
|
...this.#timeline,
|
|
146532
|
-
{ activityId: narration.activityId, id: decodeIdentifier((0,
|
|
146633
|
+
{ activityId: narration.activityId, id: decodeIdentifier((0, import_node_crypto15.randomUUID)()), kind: "activity" }
|
|
146533
146634
|
];
|
|
146534
146635
|
}
|
|
146535
146636
|
this.#activities.set(narration.activityId, {
|
|
@@ -146560,7 +146661,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146560
146661
|
...this.#timeline,
|
|
146561
146662
|
{
|
|
146562
146663
|
content: /* @__PURE__ */ new Map([[event2.contentId, event2.content]]),
|
|
146563
|
-
id: decodeIdentifier((0,
|
|
146664
|
+
id: decodeIdentifier((0, import_node_crypto15.randomUUID)()),
|
|
146564
146665
|
kind: "message",
|
|
146565
146666
|
sourceMessageId: event2.messageId,
|
|
146566
146667
|
text: ""
|
|
@@ -146600,7 +146701,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146600
146701
|
...this.#timeline,
|
|
146601
146702
|
{
|
|
146602
146703
|
content: /* @__PURE__ */ new Map(),
|
|
146603
|
-
id: decodeIdentifier((0,
|
|
146704
|
+
id: decodeIdentifier((0, import_node_crypto15.randomUUID)()),
|
|
146604
146705
|
kind: "message",
|
|
146605
146706
|
sourceMessageId: messageId,
|
|
146606
146707
|
text: remaining.slice(0, ACTIVE_TURN_TEXT_CHUNK_LIMIT)
|
|
@@ -146770,6 +146871,11 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146770
146871
|
}
|
|
146771
146872
|
return event2;
|
|
146772
146873
|
};
|
|
146874
|
+
recordSessionEventV2 = (event2) => {
|
|
146875
|
+
if (event2.type === "lifecycle-metadata" && (event2.payload.kind === "session.permission.requested" || event2.payload.kind === "session.permission.resolved" || event2.payload.kind === "session.elicitation.requested" || event2.payload.kind === "session.elicitation.resolved")) {
|
|
146876
|
+
this.recordEvent(event2.payload.event);
|
|
146877
|
+
}
|
|
146878
|
+
};
|
|
146773
146879
|
recordSteeringPrompt = (command) => {
|
|
146774
146880
|
const target = this.#inFlightByCommandId.get(command.targetCommandId);
|
|
146775
146881
|
return target?.recordSteeringPrompt(command) ?? false;
|
|
@@ -146986,7 +147092,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
146986
147092
|
orm;
|
|
146987
147093
|
#sqlite;
|
|
146988
147094
|
constructor(path72, label, migrations, pragmas = []) {
|
|
146989
|
-
(0, import_node_fs15.mkdirSync)((0,
|
|
147095
|
+
(0, import_node_fs15.mkdirSync)((0, import_node_path38.dirname)(path72), { mode: 448, recursive: true });
|
|
146990
147096
|
this.#sqlite = new import_node_sqlite.DatabaseSync(path72);
|
|
146991
147097
|
(0, import_node_fs15.chmodSync)(path72, 384);
|
|
146992
147098
|
try {
|
|
@@ -147194,7 +147300,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147194
147300
|
if (authorized === null) {
|
|
147195
147301
|
return null;
|
|
147196
147302
|
}
|
|
147197
|
-
const entryId = decodeIdentifier((0,
|
|
147303
|
+
const entryId = decodeIdentifier((0, import_node_crypto16.randomUUID)());
|
|
147198
147304
|
if (this.#entries.size >= 5e3) {
|
|
147199
147305
|
this.#entries.clear();
|
|
147200
147306
|
}
|
|
@@ -147250,7 +147356,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147250
147356
|
"invalid_native_session_response"
|
|
147251
147357
|
);
|
|
147252
147358
|
}
|
|
147253
|
-
nextCursor = decodeIdentifier((0,
|
|
147359
|
+
nextCursor = decodeIdentifier((0, import_node_crypto16.randomUUID)());
|
|
147254
147360
|
if (this.#cursors.size >= 500) {
|
|
147255
147361
|
this.#cursors.clear();
|
|
147256
147362
|
}
|
|
@@ -147469,7 +147575,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147469
147575
|
#executions = /* @__PURE__ */ new Map();
|
|
147470
147576
|
#terminalCount = 0;
|
|
147471
147577
|
claimExecution = (commandId, sessionId, commandJson) => {
|
|
147472
|
-
const commandHash = (0,
|
|
147578
|
+
const commandHash = (0, import_node_crypto17.createHash)("sha256").update(commandJson).digest("hex");
|
|
147473
147579
|
const existing = this.#executions.get(commandId);
|
|
147474
147580
|
if (existing !== void 0) {
|
|
147475
147581
|
if (existing.sessionId !== sessionId || existing.commandHash !== commandHash) {
|
|
@@ -147477,7 +147583,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147477
147583
|
}
|
|
147478
147584
|
return { attemptId: existing.attemptId, commandId, kind: "duplicate", state: existing.state };
|
|
147479
147585
|
}
|
|
147480
|
-
const attemptId = (0,
|
|
147586
|
+
const attemptId = (0, import_node_crypto17.randomUUID)();
|
|
147481
147587
|
this.#executions.set(commandId, { attemptId, commandHash, sessionId, state: "dispatching" });
|
|
147482
147588
|
return { attemptId, commandId, kind: "accepted", state: "dispatching" };
|
|
147483
147589
|
};
|
|
@@ -147704,56 +147810,6 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147704
147810
|
this.cwd = cwd;
|
|
147705
147811
|
}
|
|
147706
147812
|
};
|
|
147707
|
-
workerLaunch = external_exports2.object({
|
|
147708
|
-
executable: external_exports2.string().min(1),
|
|
147709
|
-
entry: external_exports2.string().min(1),
|
|
147710
|
-
version: external_exports2.string().min(1).max(128)
|
|
147711
|
-
}).readonly();
|
|
147712
|
-
transition = {
|
|
147713
|
-
id: external_exports2.string().min(1).max(256),
|
|
147714
|
-
context: external_exports2.string().max(256),
|
|
147715
|
-
previous: workerLaunch,
|
|
147716
|
-
next: workerLaunch
|
|
147717
|
-
};
|
|
147718
|
-
daemonSwitchState = external_exports2.discriminatedUnion("kind", [
|
|
147719
|
-
external_exports2.object({ ...transition, kind: external_exports2.literal("switching") }),
|
|
147720
|
-
external_exports2.object({ ...transition, kind: external_exports2.literal("switched") }),
|
|
147721
|
-
external_exports2.object({
|
|
147722
|
-
...transition,
|
|
147723
|
-
kind: external_exports2.literal("rolled-back"),
|
|
147724
|
-
code: external_exports2.string(),
|
|
147725
|
-
message: external_exports2.string(),
|
|
147726
|
-
stdout: external_exports2.string().max(4096),
|
|
147727
|
-
stderr: external_exports2.string().max(4096),
|
|
147728
|
-
retryAfter: external_exports2.number().int().nonnegative()
|
|
147729
|
-
})
|
|
147730
|
-
]).readonly();
|
|
147731
|
-
lifecycleCommand = external_exports2.discriminatedUnion("kind", [
|
|
147732
|
-
external_exports2.object({ kind: external_exports2.literal("status") }),
|
|
147733
|
-
external_exports2.object({ kind: external_exports2.literal("ensure"), launch: workerLaunch }),
|
|
147734
|
-
external_exports2.object({ kind: external_exports2.literal("stop") }),
|
|
147735
|
-
external_exports2.object({
|
|
147736
|
-
kind: external_exports2.literal("switch"),
|
|
147737
|
-
id: external_exports2.string().min(1).max(256),
|
|
147738
|
-
context: external_exports2.string().max(256),
|
|
147739
|
-
launch: workerLaunch
|
|
147740
|
-
}),
|
|
147741
|
-
external_exports2.object({ kind: external_exports2.literal("switch-status"), wait: external_exports2.boolean() })
|
|
147742
|
-
]).readonly();
|
|
147743
|
-
lifecycleResponse = external_exports2.discriminatedUnion("kind", [
|
|
147744
|
-
external_exports2.object({
|
|
147745
|
-
kind: external_exports2.literal("status"),
|
|
147746
|
-
protocolVersion: external_exports2.literal(2),
|
|
147747
|
-
worker: external_exports2.object({ pid: external_exports2.number().int().positive(), version: external_exports2.string() }).readonly().nullable()
|
|
147748
|
-
}),
|
|
147749
|
-
external_exports2.object({ kind: external_exports2.literal("switch-status"), state: daemonSwitchState.nullable() }),
|
|
147750
|
-
external_exports2.object({ kind: external_exports2.literal("stopped") }),
|
|
147751
|
-
external_exports2.object({ kind: external_exports2.literal("switching") }),
|
|
147752
|
-
external_exports2.object({ kind: external_exports2.literal("error"), code: external_exports2.string(), message: external_exports2.string() })
|
|
147753
|
-
]).readonly();
|
|
147754
|
-
CONTROL_TIMEOUT_MILLISECONDS = 13e4;
|
|
147755
|
-
MAXIMUM_MESSAGE_BYTES = 64 * 1024;
|
|
147756
|
-
managerPlatform = platformSupportFor(process.platform);
|
|
147757
147813
|
import_semver = __toESM2(require_semver2(), 1);
|
|
147758
147814
|
CONNECTION_TIMEOUT_MILLISECONDS = 6e4;
|
|
147759
147815
|
RelayConnectionError = class extends Error {
|
|
@@ -147957,9 +148013,11 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147957
148013
|
#terminal = /* @__PURE__ */ new Map();
|
|
147958
148014
|
#publications = /* @__PURE__ */ new Map();
|
|
147959
148015
|
#queued = /* @__PURE__ */ new Map();
|
|
148016
|
+
#recordActiveTurn;
|
|
147960
148017
|
#recordLifecycle;
|
|
147961
|
-
constructor(publisher, recordLifecycle) {
|
|
148018
|
+
constructor(publisher, recordLifecycle, recordActiveTurn) {
|
|
147962
148019
|
this.#recordLifecycle = recordLifecycle;
|
|
148020
|
+
this.#recordActiveTurn = recordActiveTurn;
|
|
147963
148021
|
this.#publisher = publisher;
|
|
147964
148022
|
}
|
|
147965
148023
|
requested = (command) => {
|
|
@@ -147993,6 +148051,7 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
147993
148051
|
throw new Error("The executing prompt was not registered in the V2 queue");
|
|
147994
148052
|
};
|
|
147995
148053
|
record = (recorded) => {
|
|
148054
|
+
this.#recordActiveTurn(recorded);
|
|
147996
148055
|
const sessionId = recorded.sessionId;
|
|
147997
148056
|
if (recorded.type === "lifecycle-metadata" && (recorded.payload.kind === "prompt.completed" || recorded.payload.kind === "prompt.failed" || recorded.payload.kind === "prompt.failed-before-start")) {
|
|
147998
148057
|
this.#terminal.set(recorded.payload.commandId, recorded);
|
|
@@ -148146,17 +148205,17 @@ ${JSON.stringify(stats, null, 2)}`;
|
|
|
148146
148205
|
function readMobiusStateDirectory(environment = process.env) {
|
|
148147
148206
|
const configuredStateDirectory = environment.MOBIUS_STATE_DIRECTORY?.trim();
|
|
148148
148207
|
if (configuredStateDirectory !== void 0 && configuredStateDirectory.length > 0) {
|
|
148149
|
-
return (0,
|
|
148208
|
+
return (0, import_node_path42.resolve)(configuredStateDirectory);
|
|
148150
148209
|
}
|
|
148151
|
-
return (0,
|
|
148210
|
+
return (0, import_node_path42.join)((0, import_node_os15.homedir)(), ".mobius");
|
|
148152
148211
|
}
|
|
148153
|
-
var import_node_os15,
|
|
148212
|
+
var import_node_os15, import_node_path42, mobiusMachineConnectorApplicationId;
|
|
148154
148213
|
var init_installation = __esm({
|
|
148155
148214
|
"src/machine-connector/runtime/mobius-runtime/installation.ts"() {
|
|
148156
148215
|
"use strict";
|
|
148157
148216
|
init_cjs_shims();
|
|
148158
148217
|
import_node_os15 = require("node:os");
|
|
148159
|
-
|
|
148218
|
+
import_node_path42 = require("node:path");
|
|
148160
148219
|
mobiusMachineConnectorApplicationId = "ai.moxt.machine-connector";
|
|
148161
148220
|
}
|
|
148162
148221
|
});
|
|
@@ -148761,19 +148820,19 @@ function unignoreDirectory(rules, rootPath) {
|
|
|
148761
148820
|
}
|
|
148762
148821
|
}
|
|
148763
148822
|
function resolveWithin(root, input3) {
|
|
148764
|
-
if (input3.length === 0 || input3.includes("\0") || (0,
|
|
148823
|
+
if (input3.length === 0 || input3.includes("\0") || (0, import_node_path43.isAbsolute)(input3) || import_node_path43.win32.isAbsolute(input3) || /^[A-Za-z]:/.test(input3) || input3.split(/[\\/]/).includes("..")) {
|
|
148765
148824
|
throw new Error("Local file path escapes its root");
|
|
148766
148825
|
}
|
|
148767
|
-
const resolved = (0,
|
|
148826
|
+
const resolved = (0, import_node_path43.resolve)(root, input3);
|
|
148768
148827
|
assertContained(root, resolved);
|
|
148769
148828
|
return resolved;
|
|
148770
148829
|
}
|
|
148771
148830
|
function assertContained(root, candidate) {
|
|
148772
|
-
const rel = (0,
|
|
148773
|
-
if (rel === ".." || rel.startsWith(`..${
|
|
148831
|
+
const rel = (0, import_node_path43.relative)(root, candidate);
|
|
148832
|
+
if (rel === ".." || rel.startsWith(`..${import_node_path43.sep}`) || (0, import_node_path43.isAbsolute)(rel)) throw new Error("Local file path escapes its root");
|
|
148774
148833
|
}
|
|
148775
148834
|
function portable(path10) {
|
|
148776
|
-
const value = path10.split(
|
|
148835
|
+
const value = path10.split(import_node_path43.sep).join("/");
|
|
148777
148836
|
return value === "" ? "." : value;
|
|
148778
148837
|
}
|
|
148779
148838
|
function isGitPath(path10) {
|
|
@@ -148810,13 +148869,13 @@ function isUtf8(buffer2) {
|
|
|
148810
148869
|
return false;
|
|
148811
148870
|
}
|
|
148812
148871
|
}
|
|
148813
|
-
var
|
|
148872
|
+
var import_promises36, import_node_path43, import_ignore, maximumReadBytes, defaultPageSize, maximumPageSize, searchScanBudget, LocalFileSource, ScopedIgnoreMatcher;
|
|
148814
148873
|
var init_local_file_source = __esm({
|
|
148815
148874
|
"src/machine-connector/runtime/local-codex-runtime/local-file-source.ts"() {
|
|
148816
148875
|
"use strict";
|
|
148817
148876
|
init_cjs_shims();
|
|
148818
|
-
|
|
148819
|
-
|
|
148877
|
+
import_promises36 = require("node:fs/promises");
|
|
148878
|
+
import_node_path43 = require("node:path");
|
|
148820
148879
|
import_ignore = __toESM(require_ignore(), 1);
|
|
148821
148880
|
init_image_viewer();
|
|
148822
148881
|
maximumReadBytes = 5 * 1024 * 1024;
|
|
@@ -148831,11 +148890,11 @@ var init_local_file_source = __esm({
|
|
|
148831
148890
|
pairedRoot;
|
|
148832
148891
|
workingDirectory;
|
|
148833
148892
|
static async create(pairedRoot, relativeWorkingDirectory) {
|
|
148834
|
-
const root = await (0,
|
|
148893
|
+
const root = await (0, import_promises36.realpath)((0, import_node_path43.resolve)(pairedRoot));
|
|
148835
148894
|
const requested = resolveWithin(root, relativeWorkingDirectory);
|
|
148836
|
-
const workingDirectory = await (0,
|
|
148895
|
+
const workingDirectory = await (0, import_promises36.realpath)(requested);
|
|
148837
148896
|
assertContained(root, workingDirectory);
|
|
148838
|
-
const stat13 = await (0,
|
|
148897
|
+
const stat13 = await (0, import_promises36.lstat)(workingDirectory);
|
|
148839
148898
|
if (!stat13.isDirectory()) throw new Error("Local file working directory is not a directory");
|
|
148840
148899
|
return new _LocalFileSource(root, workingDirectory);
|
|
148841
148900
|
}
|
|
@@ -148844,15 +148903,15 @@ var init_local_file_source = __esm({
|
|
|
148844
148903
|
const directory = await this.resolveDirectory(relativeDirectory, "browsable");
|
|
148845
148904
|
const matcher = await this.ignoreMatcher(directory, directory);
|
|
148846
148905
|
const candidates2 = await Promise.all(
|
|
148847
|
-
(await (0,
|
|
148906
|
+
(await (0, import_promises36.readdir)(directory, { withFileTypes: true })).map(async (entry) => {
|
|
148848
148907
|
if (entry.name.includes("\\")) return void 0;
|
|
148849
|
-
const absolute = (0,
|
|
148850
|
-
const path10 = portable((0,
|
|
148851
|
-
const rootPath = portable((0,
|
|
148908
|
+
const absolute = (0, import_node_path43.join)(directory, entry.name);
|
|
148909
|
+
const path10 = portable((0, import_node_path43.relative)(this.workingDirectory, absolute));
|
|
148910
|
+
const rootPath = portable((0, import_node_path43.relative)(this.pairedRoot, absolute));
|
|
148852
148911
|
if (matcher.ignores(rootPath) || isGitPath(rootPath)) return void 0;
|
|
148853
148912
|
if (entry.isDirectory()) return { kind: "directory", name: entry.name, path: path10 };
|
|
148854
148913
|
if (!entry.isFile()) return void 0;
|
|
148855
|
-
const stat13 = await (0,
|
|
148914
|
+
const stat13 = await (0, import_promises36.lstat)(absolute);
|
|
148856
148915
|
return { kind: "file", name: entry.name, path: path10, size: stat13.size };
|
|
148857
148916
|
})
|
|
148858
148917
|
);
|
|
@@ -148869,13 +148928,13 @@ var init_local_file_source = __esm({
|
|
|
148869
148928
|
const directory = pending.shift();
|
|
148870
148929
|
if (directory === void 0) break;
|
|
148871
148930
|
const matcher = await this.ignoreMatcher(directory);
|
|
148872
|
-
for (const entry of await (0,
|
|
148931
|
+
for (const entry of await (0, import_promises36.readdir)(directory, { withFileTypes: true })) {
|
|
148873
148932
|
scanned += 1;
|
|
148874
148933
|
if (scanned > searchScanBudget) break;
|
|
148875
148934
|
if (entry.name.includes("\\")) continue;
|
|
148876
|
-
const absolute = (0,
|
|
148877
|
-
const path10 = portable((0,
|
|
148878
|
-
const rootPath = portable((0,
|
|
148935
|
+
const absolute = (0, import_node_path43.join)(directory, entry.name);
|
|
148936
|
+
const path10 = portable((0, import_node_path43.relative)(this.workingDirectory, absolute));
|
|
148937
|
+
const rootPath = portable((0, import_node_path43.relative)(this.pairedRoot, absolute));
|
|
148879
148938
|
if (matcher.ignores(rootPath) || isGitPath(rootPath)) continue;
|
|
148880
148939
|
if (entry.isDirectory()) {
|
|
148881
148940
|
pending.push(absolute);
|
|
@@ -148883,7 +148942,7 @@ var init_local_file_source = __esm({
|
|
|
148883
148942
|
}
|
|
148884
148943
|
if (!entry.isFile()) continue;
|
|
148885
148944
|
if (normalizedQuery === "" || path10.toLocaleLowerCase().includes(normalizedQuery)) {
|
|
148886
|
-
const stat13 = await (0,
|
|
148945
|
+
const stat13 = await (0, import_promises36.lstat)(absolute);
|
|
148887
148946
|
matches.push({ kind: "file", name: entry.name, path: path10, size: stat13.size });
|
|
148888
148947
|
}
|
|
148889
148948
|
}
|
|
@@ -148894,25 +148953,25 @@ var init_local_file_source = __esm({
|
|
|
148894
148953
|
}
|
|
148895
148954
|
async read(path10) {
|
|
148896
148955
|
const file3 = await this.resolveFile(path10);
|
|
148897
|
-
const stat13 = await (0,
|
|
148956
|
+
const stat13 = await (0, import_promises36.lstat)(file3);
|
|
148898
148957
|
if (stat13.size > maximumReadBytes) throw new Error("Local file exceeds the preview size limit");
|
|
148899
|
-
const buffer2 = await (0,
|
|
148958
|
+
const buffer2 = await (0, import_promises36.readFile)(file3);
|
|
148900
148959
|
const binary = buffer2.includes(0) || !isUtf8(buffer2);
|
|
148901
148960
|
return {
|
|
148902
148961
|
content: binary ? buffer2.toString("base64") : buffer2.toString("utf8"),
|
|
148903
148962
|
encoding: binary ? "base64" : "utf8",
|
|
148904
|
-
name: (0,
|
|
148905
|
-
path: portable((0,
|
|
148963
|
+
name: (0, import_node_path43.basename)(file3),
|
|
148964
|
+
path: portable((0, import_node_path43.relative)(this.workingDirectory, file3)),
|
|
148906
148965
|
size: stat13.size
|
|
148907
148966
|
};
|
|
148908
148967
|
}
|
|
148909
148968
|
async validate(path10, kind = "file") {
|
|
148910
148969
|
const target = kind === "directory" ? await this.resolveDirectory(path10) : await this.resolveFile(path10);
|
|
148911
|
-
const stat13 = await (0,
|
|
148970
|
+
const stat13 = await (0, import_promises36.lstat)(target);
|
|
148912
148971
|
return {
|
|
148913
148972
|
kind,
|
|
148914
|
-
name: (0,
|
|
148915
|
-
path: portable((0,
|
|
148973
|
+
name: (0, import_node_path43.basename)(target),
|
|
148974
|
+
path: portable((0, import_node_path43.relative)(this.workingDirectory, target)),
|
|
148916
148975
|
...kind === "file" ? { size: stat13.size } : {}
|
|
148917
148976
|
};
|
|
148918
148977
|
}
|
|
@@ -148922,62 +148981,62 @@ var init_local_file_source = __esm({
|
|
|
148922
148981
|
throw new Error(`Local image exceeds the ${maximumReadBytes}-byte limit`);
|
|
148923
148982
|
}
|
|
148924
148983
|
const target = await this.resolveFile(path10);
|
|
148925
|
-
detectSupportedImageType(await (0,
|
|
148984
|
+
detectSupportedImageType(await (0, import_promises36.readFile)(target));
|
|
148926
148985
|
return entry;
|
|
148927
148986
|
}
|
|
148928
148987
|
async resolveDirectory(path10, visibility = "visible") {
|
|
148929
148988
|
const absolute = resolveWithin(this.workingDirectory, path10);
|
|
148930
|
-
const directStat = await (0,
|
|
148989
|
+
const directStat = await (0, import_promises36.lstat)(absolute);
|
|
148931
148990
|
if (directStat.isSymbolicLink() || !directStat.isDirectory()) {
|
|
148932
148991
|
throw new Error("Local file path is not a regular directory");
|
|
148933
148992
|
}
|
|
148934
|
-
const canonical = await (0,
|
|
148993
|
+
const canonical = await (0, import_promises36.realpath)(absolute);
|
|
148935
148994
|
assertContained(this.workingDirectory, canonical);
|
|
148936
|
-
if (visibility === "visible" || isGitPath(portable((0,
|
|
148995
|
+
if (visibility === "visible" || isGitPath(portable((0, import_node_path43.relative)(this.pairedRoot, canonical)))) {
|
|
148937
148996
|
await this.assertVisible(canonical, "directory");
|
|
148938
148997
|
}
|
|
148939
148998
|
return canonical;
|
|
148940
148999
|
}
|
|
148941
149000
|
async resolveFile(path10) {
|
|
148942
149001
|
const absolute = resolveWithin(this.workingDirectory, path10);
|
|
148943
|
-
const directStat = await (0,
|
|
149002
|
+
const directStat = await (0, import_promises36.lstat)(absolute);
|
|
148944
149003
|
if (directStat.isSymbolicLink() || !directStat.isFile()) throw new Error("Local file path is not a regular file");
|
|
148945
|
-
const canonical = await (0,
|
|
149004
|
+
const canonical = await (0, import_promises36.realpath)(absolute);
|
|
148946
149005
|
assertContained(this.workingDirectory, canonical);
|
|
148947
149006
|
await this.assertVisible(canonical, "file");
|
|
148948
149007
|
return canonical;
|
|
148949
149008
|
}
|
|
148950
149009
|
async assertVisible(absolute, kind) {
|
|
148951
|
-
const rootPath = portable((0,
|
|
149010
|
+
const rootPath = portable((0, import_node_path43.relative)(this.pairedRoot, absolute));
|
|
148952
149011
|
if (rootPath === ".") return;
|
|
148953
|
-
const explicitDirectory = kind === "directory" ? absolute : (0,
|
|
148954
|
-
if (isGitPath(rootPath) || (await this.ignoreMatcher((0,
|
|
149012
|
+
const explicitDirectory = kind === "directory" ? absolute : (0, import_node_path43.dirname)(absolute);
|
|
149013
|
+
if (isGitPath(rootPath) || (await this.ignoreMatcher((0, import_node_path43.dirname)(absolute), explicitDirectory)).ignores(rootPath)) {
|
|
148955
149014
|
throw new Error("Local file path is ignored");
|
|
148956
149015
|
}
|
|
148957
149016
|
}
|
|
148958
149017
|
async ignoreMatcher(throughDirectory, explicitDirectory) {
|
|
148959
149018
|
const matchers = [{ base: "", matcher: (0, import_ignore.default)().add(".git/").add(".git/**") }];
|
|
148960
|
-
const relativeThrough = (0,
|
|
148961
|
-
const segments = relativeThrough === "" ? [] : relativeThrough.split(
|
|
148962
|
-
const workingDirectoryRootPath = portable((0,
|
|
149019
|
+
const relativeThrough = (0, import_node_path43.relative)(this.pairedRoot, throughDirectory);
|
|
149020
|
+
const segments = relativeThrough === "" ? [] : relativeThrough.split(import_node_path43.sep);
|
|
149021
|
+
const workingDirectoryRootPath = portable((0, import_node_path43.relative)(this.pairedRoot, this.workingDirectory));
|
|
148963
149022
|
let directory = this.pairedRoot;
|
|
148964
149023
|
for (let index3 = 0; index3 <= segments.length; index3 += 1) {
|
|
148965
149024
|
const matcher = (0, import_ignore.default)();
|
|
148966
149025
|
for (const name of [".gitignore", ".ignore"]) {
|
|
148967
149026
|
try {
|
|
148968
|
-
const content3 = await (0,
|
|
149027
|
+
const content3 = await (0, import_promises36.readFile)((0, import_node_path43.join)(directory, name), "utf8");
|
|
148969
149028
|
matcher.add(content3);
|
|
148970
149029
|
} catch (error64) {
|
|
148971
149030
|
if (!isMissing(error64)) throw error64;
|
|
148972
149031
|
}
|
|
148973
149032
|
}
|
|
148974
|
-
matchers.push({ base: portable((0,
|
|
149033
|
+
matchers.push({ base: portable((0, import_node_path43.relative)(this.pairedRoot, directory)), matcher });
|
|
148975
149034
|
const segment = segments[index3];
|
|
148976
|
-
if (segment !== void 0) directory = (0,
|
|
149035
|
+
if (segment !== void 0) directory = (0, import_node_path43.join)(directory, segment);
|
|
148977
149036
|
}
|
|
148978
149037
|
const explicitDirectories = [workingDirectoryRootPath];
|
|
148979
149038
|
if (explicitDirectory !== void 0) {
|
|
148980
|
-
explicitDirectories.push(portable((0,
|
|
149039
|
+
explicitDirectories.push(portable((0, import_node_path43.relative)(this.pairedRoot, explicitDirectory)));
|
|
148981
149040
|
}
|
|
148982
149041
|
for (const candidate of new Set(explicitDirectories)) {
|
|
148983
149042
|
if (candidate === ".") continue;
|
|
@@ -149820,10 +149879,10 @@ function redactPath(value, canonicalRoot) {
|
|
|
149820
149879
|
if (value === canonicalRoot) {
|
|
149821
149880
|
return ".";
|
|
149822
149881
|
}
|
|
149823
|
-
if (value.startsWith(`${canonicalRoot}${
|
|
149824
|
-
return (0,
|
|
149882
|
+
if (value.startsWith(`${canonicalRoot}${import_node_path44.sep}`)) {
|
|
149883
|
+
return (0, import_node_path44.relative)(canonicalRoot, value);
|
|
149825
149884
|
}
|
|
149826
|
-
if ((0,
|
|
149885
|
+
if ((0, import_node_path44.isAbsolute)(value) || /^[A-Za-z]:[\\/]/.test(value)) {
|
|
149827
149886
|
return "[redacted-absolute-path]";
|
|
149828
149887
|
}
|
|
149829
149888
|
return value;
|
|
@@ -149885,12 +149944,12 @@ function recordValue(value) {
|
|
|
149885
149944
|
function isRecord11(value) {
|
|
149886
149945
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
149887
149946
|
}
|
|
149888
|
-
var
|
|
149947
|
+
var import_node_path44;
|
|
149889
149948
|
var init_event_normalizer = __esm({
|
|
149890
149949
|
"src/machine-connector/runtime/local-codex-runtime/event-normalizer.ts"() {
|
|
149891
149950
|
"use strict";
|
|
149892
149951
|
init_cjs_shims();
|
|
149893
|
-
|
|
149952
|
+
import_node_path44 = require("node:path");
|
|
149894
149953
|
init_contracts2();
|
|
149895
149954
|
}
|
|
149896
149955
|
});
|
|
@@ -150488,15 +150547,15 @@ function routineLeaseRenewalDelayMilliseconds(remainingLeaseMilliseconds) {
|
|
|
150488
150547
|
)
|
|
150489
150548
|
);
|
|
150490
150549
|
}
|
|
150491
|
-
var import_node_child_process17,
|
|
150550
|
+
var import_node_child_process17, import_promises37, import_node_os16, import_node_path45, heartbeatIntervalMilliseconds, claimRetryMilliseconds, claimWaitSeconds, maximumDiscoveryDirectories, maximumDiscoveryModels, maximumModelListPages, eventUploadCoalesceMilliseconds, maximumEventUploadCount, preferredEventUploadRequestBytes, leaseRenewIntervalMilliseconds, leaseRenewalIntervalsBeforeDeadline, defaultNetworkRetryMilliseconds2, maximumNetworkRetryMilliseconds2, interactionTimeoutMilliseconds, executableProbeTimeoutMilliseconds, recoveryScanIntervalMilliseconds, initialThreadNameRetryMilliseconds, maximumThreadNameRetryMilliseconds, maximumInitialThreadNameAttempts, maximumThreadTitleCharacters, maximumThreadTitleSourceCharacters, threadTitleGenerationTimeoutMilliseconds, interruptedExecutionCleanupTimeoutMilliseconds, remoteImageDownloadTimeoutMilliseconds, maximumRemoteImageBytes, allowedRemoteImageMimeTypes, allowedRemoteImageHosts, threadTitleGenerationInstructions, threadTitleGenerationOutputSchema, ThreadUnavailableError, LeaseLostError, SpoolPersistenceError, UnknownTurnStartResultError, WorkerStoppedError, LocalCodexRuntimeConnectionWorker;
|
|
150492
150551
|
var init_runtime_worker = __esm({
|
|
150493
150552
|
"src/machine-connector/runtime/local-codex-runtime/runtime-worker.ts"() {
|
|
150494
150553
|
"use strict";
|
|
150495
150554
|
init_cjs_shims();
|
|
150496
150555
|
import_node_child_process17 = require("node:child_process");
|
|
150497
|
-
|
|
150556
|
+
import_promises37 = require("node:fs/promises");
|
|
150498
150557
|
import_node_os16 = require("node:os");
|
|
150499
|
-
|
|
150558
|
+
import_node_path45 = require("node:path");
|
|
150500
150559
|
init_process_executor();
|
|
150501
150560
|
init_relay_client();
|
|
150502
150561
|
init_retry_backoff();
|
|
@@ -151227,7 +151286,7 @@ var init_runtime_worker = __esm({
|
|
|
151227
151286
|
canonicalRoot,
|
|
151228
151287
|
relativeDirectory
|
|
151229
151288
|
);
|
|
151230
|
-
const entries = (await (0,
|
|
151289
|
+
const entries = (await (0, import_promises37.readdir)(canonicalDirectory, {
|
|
151231
151290
|
withFileTypes: true
|
|
151232
151291
|
})).filter((entry) => entry.isDirectory()).filter((entry) => !entry.name.includes("\\")).sort(
|
|
151233
151292
|
(left, right) => left.name.localeCompare(right.name, void 0, {
|
|
@@ -151238,9 +151297,9 @@ var init_runtime_worker = __esm({
|
|
|
151238
151297
|
const eligibleDirectories = entries.map((entry) => ({
|
|
151239
151298
|
name: entry.name,
|
|
151240
151299
|
relativePath: portableRelativeDirectory(
|
|
151241
|
-
(0,
|
|
151300
|
+
(0, import_node_path45.relative)(
|
|
151242
151301
|
canonicalRoot,
|
|
151243
|
-
(0,
|
|
151302
|
+
(0, import_node_path45.join)(canonicalDirectory, entry.name)
|
|
151244
151303
|
)
|
|
151245
151304
|
)
|
|
151246
151305
|
})).filter(
|
|
@@ -151252,7 +151311,7 @@ var init_runtime_worker = __esm({
|
|
|
151252
151311
|
);
|
|
151253
151312
|
return {
|
|
151254
151313
|
currentRelativeDirectory: portableRelativeDirectory(
|
|
151255
|
-
(0,
|
|
151314
|
+
(0, import_node_path45.relative)(canonicalRoot, canonicalDirectory)
|
|
151256
151315
|
),
|
|
151257
151316
|
directories,
|
|
151258
151317
|
truncated: eligibleDirectories.length > maximumDiscoveryDirectories
|
|
@@ -154429,8 +154488,8 @@ async function removeLegacyServiceDefinitions(store, runtime = defaultSupervisor
|
|
|
154429
154488
|
}
|
|
154430
154489
|
function createServiceEnvironment(options) {
|
|
154431
154490
|
const inheritedPath = options.environment.PATH ?? process.env.PATH ?? "";
|
|
154432
|
-
const nodeDirectory = (0,
|
|
154433
|
-
const pathEntries = inheritedPath.split(
|
|
154491
|
+
const nodeDirectory = (0, import_node_path46.dirname)(options.nodePath);
|
|
154492
|
+
const pathEntries = inheritedPath.split(import_node_path46.delimiter).filter(
|
|
154434
154493
|
(entry, index3, entries) => entry.length > 0 && entries.indexOf(entry) === index3
|
|
154435
154494
|
);
|
|
154436
154495
|
if (!pathEntries.includes(nodeDirectory)) {
|
|
@@ -154440,7 +154499,7 @@ function createServiceEnvironment(options) {
|
|
|
154440
154499
|
...serviceNetworkEnvironment(process.env),
|
|
154441
154500
|
...sanitizeEnvironment(options.environment),
|
|
154442
154501
|
HOME: options.environment.HOME ?? process.env.HOME ?? (0, import_node_os18.homedir)(),
|
|
154443
|
-
PATH: pathEntries.join(
|
|
154502
|
+
PATH: pathEntries.join(import_node_path46.delimiter)
|
|
154444
154503
|
};
|
|
154445
154504
|
}
|
|
154446
154505
|
function serviceNetworkEnvironment(source) {
|
|
@@ -154456,9 +154515,9 @@ function serviceNetworkEnvironment(source) {
|
|
|
154456
154515
|
async function assertManagedServiceProvenance(store, candidateEntrypointPath) {
|
|
154457
154516
|
const stored = (await store.readServiceManager()).value;
|
|
154458
154517
|
if (!stored || stored.manager === "none" /* None */) return;
|
|
154459
|
-
const candidate = (0,
|
|
154518
|
+
const candidate = (0, import_node_path46.resolve)(candidateEntrypointPath);
|
|
154460
154519
|
if (stored.managedEntrypointPath) {
|
|
154461
|
-
if ((0,
|
|
154520
|
+
if ((0, import_node_path46.resolve)(stored.managedEntrypointPath) !== candidate) {
|
|
154462
154521
|
throw new Error(
|
|
154463
154522
|
"The managed Connector belongs to a different CLI installation. Run service install from the owning CLI to transfer management."
|
|
154464
154523
|
);
|
|
@@ -154472,15 +154531,15 @@ async function assertManagedServiceProvenance(store, candidateEntrypointPath) {
|
|
|
154472
154531
|
}
|
|
154473
154532
|
}
|
|
154474
154533
|
async function spawnDetachedConnector(store, options) {
|
|
154475
|
-
await (0,
|
|
154476
|
-
const stdout = await (0,
|
|
154477
|
-
const stderr = await (0,
|
|
154534
|
+
await (0, import_promises38.mkdir)(store.baseDirectory, { recursive: true, mode: 448 });
|
|
154535
|
+
const stdout = await (0, import_promises38.open)(store.runtimeLogPath(), "a", 384);
|
|
154536
|
+
const stderr = await (0, import_promises38.open)(store.runtimeErrorLogPath(), "a", 384);
|
|
154478
154537
|
try {
|
|
154479
154538
|
const child2 = (0, import_node_child_process18.spawn)(
|
|
154480
154539
|
options.nodePath,
|
|
154481
|
-
[(0,
|
|
154540
|
+
[(0, import_node_path46.resolve)(options.entrypointPath), ...options.commandArguments],
|
|
154482
154541
|
{
|
|
154483
|
-
cwd: (0,
|
|
154542
|
+
cwd: (0, import_node_path46.dirname)((0, import_node_path46.resolve)(options.entrypointPath)),
|
|
154484
154543
|
detached: true,
|
|
154485
154544
|
env: options.environment,
|
|
154486
154545
|
shell: false,
|
|
@@ -154643,7 +154702,7 @@ function parseStoredServiceManager(value) {
|
|
|
154643
154702
|
async function persistServiceManager(store, state) {
|
|
154644
154703
|
await store.writeServiceManager({
|
|
154645
154704
|
desiredState: state.desiredState,
|
|
154646
|
-
managedEntrypointPath: (0,
|
|
154705
|
+
managedEntrypointPath: (0, import_node_path46.resolve)(state.options.entrypointPath),
|
|
154647
154706
|
manager: state.manager,
|
|
154648
154707
|
...state.options.environment.PATH === void 0 ? {} : { servicePath: state.options.environment.PATH },
|
|
154649
154708
|
...state.supervisorPid === void 0 ? {} : { supervisorPid: state.supervisorPid },
|
|
@@ -154658,15 +154717,15 @@ async function persistServiceDesiredState(store, manager, desiredState) {
|
|
|
154658
154717
|
await store.writeServiceManager({ ...stored, desiredState, manager });
|
|
154659
154718
|
}
|
|
154660
154719
|
async function isInsideSourceCheckout(path10) {
|
|
154661
|
-
let directory = (0,
|
|
154720
|
+
let directory = (0, import_node_path46.dirname)(path10);
|
|
154662
154721
|
while (true) {
|
|
154663
154722
|
try {
|
|
154664
|
-
await (0,
|
|
154723
|
+
await (0, import_promises38.stat)((0, import_node_path46.join)(directory, ".git"));
|
|
154665
154724
|
return true;
|
|
154666
154725
|
} catch (error64) {
|
|
154667
154726
|
if (!isNodeErrorCode3(error64, "ENOENT")) throw error64;
|
|
154668
154727
|
}
|
|
154669
|
-
const parent = (0,
|
|
154728
|
+
const parent = (0, import_node_path46.dirname)(directory);
|
|
154670
154729
|
if (parent === directory) return false;
|
|
154671
154730
|
directory = parent;
|
|
154672
154731
|
}
|
|
@@ -154674,7 +154733,7 @@ async function isInsideSourceCheckout(path10) {
|
|
|
154674
154733
|
async function removeLegacyLaunchAgent(store, runtime) {
|
|
154675
154734
|
if (runtime.operatingSystem !== "darwin") return;
|
|
154676
154735
|
const fileName = legacyLaunchAgentFileName(store);
|
|
154677
|
-
const path10 = (0,
|
|
154736
|
+
const path10 = (0, import_node_path46.join)(
|
|
154678
154737
|
process.env.HOME ?? (0, import_node_os18.homedir)(),
|
|
154679
154738
|
"Library",
|
|
154680
154739
|
"LaunchAgents",
|
|
@@ -154682,7 +154741,7 @@ async function removeLegacyLaunchAgent(store, runtime) {
|
|
|
154682
154741
|
);
|
|
154683
154742
|
await runLegacyCommand(runtime, "/bin/launchctl", [
|
|
154684
154743
|
"bootout",
|
|
154685
|
-
`gui/${String(process.getuid?.() ?? 0)}/${(0,
|
|
154744
|
+
`gui/${String(process.getuid?.() ?? 0)}/${(0, import_node_path46.basename)(fileName, ".plist")}`
|
|
154686
154745
|
]);
|
|
154687
154746
|
await removeIgnoringFailure(path10);
|
|
154688
154747
|
}
|
|
@@ -154704,15 +154763,15 @@ async function runIgnoringFailure(command, argumentsList) {
|
|
|
154704
154763
|
}
|
|
154705
154764
|
async function removeIgnoringFailure(path10) {
|
|
154706
154765
|
try {
|
|
154707
|
-
await (0,
|
|
154766
|
+
await (0, import_promises38.rm)(path10, { force: true });
|
|
154708
154767
|
} catch {
|
|
154709
154768
|
}
|
|
154710
154769
|
}
|
|
154711
154770
|
function legacyLaunchAgentFileName(store) {
|
|
154712
|
-
if ((0,
|
|
154771
|
+
if ((0, import_node_path46.resolve)(store.baseDirectory) === (0, import_node_path46.resolve)(userRuntimeDirectory())) {
|
|
154713
154772
|
return legacyLaunchAgentLabel + ".plist";
|
|
154714
154773
|
}
|
|
154715
|
-
const scope = (0, import_node_crypto25.createHash)("sha256").update((0,
|
|
154774
|
+
const scope = (0, import_node_crypto25.createHash)("sha256").update((0, import_node_path46.resolve)(store.baseDirectory)).digest("hex").slice(0, 12);
|
|
154716
154775
|
return legacyLaunchAgentLabel + "." + scope + ".plist";
|
|
154717
154776
|
}
|
|
154718
154777
|
async function removeLegacySystemdUnit(runtime) {
|
|
@@ -154727,12 +154786,12 @@ async function removeLegacySystemdUnit(runtime) {
|
|
|
154727
154786
|
await removeIgnoringFailure(systemdUnitPath());
|
|
154728
154787
|
}
|
|
154729
154788
|
function systemdUnitPath() {
|
|
154730
|
-
const configHome = process.env.XDG_CONFIG_HOME ?? (0,
|
|
154731
|
-
return (0,
|
|
154789
|
+
const configHome = process.env.XDG_CONFIG_HOME ?? (0, import_node_path46.join)(process.env.HOME ?? (0, import_node_os18.homedir)(), ".config");
|
|
154790
|
+
return (0, import_node_path46.join)(configHome, "systemd", "user", "moxt-machine-connector.service");
|
|
154732
154791
|
}
|
|
154733
154792
|
async function removeLegacySupervisorDirectory(store) {
|
|
154734
154793
|
try {
|
|
154735
|
-
await (0,
|
|
154794
|
+
await (0, import_promises38.rm)((0, import_node_path46.join)(store.baseDirectory, "supervisor"), {
|
|
154736
154795
|
force: true,
|
|
154737
154796
|
recursive: true
|
|
154738
154797
|
});
|
|
@@ -154758,16 +154817,16 @@ async function connectorDelay(runtime, milliseconds) {
|
|
|
154758
154817
|
setTimeout(resolvePromise, milliseconds);
|
|
154759
154818
|
});
|
|
154760
154819
|
}
|
|
154761
|
-
var import_node_child_process18, import_node_crypto25,
|
|
154820
|
+
var import_node_child_process18, import_node_crypto25, import_promises38, import_node_os18, import_node_path46, connectorStartTimeoutMilliseconds, connectorStartPollMilliseconds, connectorStopTimeoutMilliseconds, connectorStopPollMilliseconds, legacyLaunchAgentLabel, serviceNetworkEnvironmentNames, ServiceManagerPreference, UserServiceManager, defaultSupervisorRuntime;
|
|
154762
154821
|
var init_connector_supervisor = __esm({
|
|
154763
154822
|
"src/machine-connector/runtime/connector-supervisor.ts"() {
|
|
154764
154823
|
"use strict";
|
|
154765
154824
|
init_cjs_shims();
|
|
154766
154825
|
import_node_child_process18 = require("node:child_process");
|
|
154767
154826
|
import_node_crypto25 = require("node:crypto");
|
|
154768
|
-
|
|
154827
|
+
import_promises38 = require("node:fs/promises");
|
|
154769
154828
|
import_node_os18 = require("node:os");
|
|
154770
|
-
|
|
154829
|
+
import_node_path46 = require("node:path");
|
|
154771
154830
|
init_local_ipc();
|
|
154772
154831
|
init_runtime_types();
|
|
154773
154832
|
init_shell_environment();
|
|
@@ -154886,9 +154945,9 @@ async function reconcileManagedDaemon(options, store = new MachineRuntimeStore()
|
|
|
154886
154945
|
try {
|
|
154887
154946
|
refresh = await refreshManagedUserService(store, {
|
|
154888
154947
|
commandArguments: [...options.commandArguments],
|
|
154889
|
-
entrypointPath: (0,
|
|
154948
|
+
entrypointPath: (0, import_node_path47.resolve)(options.entrypointPath),
|
|
154890
154949
|
environment: { ...options.environment },
|
|
154891
|
-
nodePath: (0,
|
|
154950
|
+
nodePath: (0, import_node_path47.resolve)(options.nodePath)
|
|
154892
154951
|
});
|
|
154893
154952
|
if (!refresh) {
|
|
154894
154953
|
throw new Error(
|
|
@@ -154941,10 +155000,10 @@ async function validateCliEntrypoint(options, store) {
|
|
|
154941
155000
|
if (options.commandArguments.length !== 2 || options.commandArguments[0] !== "machine" || options.commandArguments[1] !== "daemon") {
|
|
154942
155001
|
throw new Error("The managed daemon command must be `machine daemon`");
|
|
154943
155002
|
}
|
|
154944
|
-
const nodePath = await (0,
|
|
154945
|
-
const entrypointPath = await (0,
|
|
154946
|
-
await (0,
|
|
154947
|
-
await (0,
|
|
155003
|
+
const nodePath = await (0, import_promises39.realpath)((0, import_node_path47.resolve)(options.nodePath));
|
|
155004
|
+
const entrypointPath = await (0, import_promises39.realpath)((0, import_node_path47.resolve)(options.entrypointPath));
|
|
155005
|
+
await (0, import_promises39.access)(nodePath, import_promises39.constants.X_OK);
|
|
155006
|
+
await (0, import_promises39.access)(entrypointPath, import_promises39.constants.R_OK);
|
|
154948
155007
|
const probe = await execFileAsync2(nodePath, [entrypointPath, "--version"], {
|
|
154949
155008
|
encoding: "utf8",
|
|
154950
155009
|
env: {
|
|
@@ -154996,14 +155055,14 @@ function delay4(milliseconds) {
|
|
|
154996
155055
|
function errorMessage5(error64) {
|
|
154997
155056
|
return error64 instanceof Error ? error64.message : String(error64);
|
|
154998
155057
|
}
|
|
154999
|
-
var import_node_child_process19,
|
|
155058
|
+
var import_node_child_process19, import_promises39, import_node_path47, import_node_util5, reconcileTimeoutMilliseconds, execFileAsync2, DaemonReconcileOutcome, DaemonRefreshStage, DaemonRefreshError;
|
|
155000
155059
|
var init_daemon_reconcile = __esm({
|
|
155001
155060
|
"src/machine-connector/runtime/daemon-reconcile.ts"() {
|
|
155002
155061
|
"use strict";
|
|
155003
155062
|
init_cjs_shims();
|
|
155004
155063
|
import_node_child_process19 = require("node:child_process");
|
|
155005
|
-
|
|
155006
|
-
|
|
155064
|
+
import_promises39 = require("node:fs/promises");
|
|
155065
|
+
import_node_path47 = require("node:path");
|
|
155007
155066
|
import_node_util5 = require("node:util");
|
|
155008
155067
|
init_local_ipc();
|
|
155009
155068
|
init_process_lock();
|
|
@@ -155068,7 +155127,7 @@ async function runMachineDoctor(store) {
|
|
|
155068
155127
|
}
|
|
155069
155128
|
for (const connection of connections) {
|
|
155070
155129
|
try {
|
|
155071
|
-
await (0,
|
|
155130
|
+
await (0, import_promises40.access)(connection.rootPath, import_node_fs17.constants.R_OK | import_node_fs17.constants.X_OK);
|
|
155072
155131
|
checks.push({
|
|
155073
155132
|
detail: connection.rootPath,
|
|
155074
155133
|
name: `root:${connection.connectionId}`,
|
|
@@ -155083,7 +155142,7 @@ async function runMachineDoctor(store) {
|
|
|
155083
155142
|
}
|
|
155084
155143
|
const relayUrl = new URL(connection.relayOrigin);
|
|
155085
155144
|
try {
|
|
155086
|
-
const address = await (0,
|
|
155145
|
+
const address = await (0, import_promises41.lookup)(relayUrl.hostname);
|
|
155087
155146
|
checks.push({
|
|
155088
155147
|
detail: `${relayUrl.hostname} resolves to ${address.address}`,
|
|
155089
155148
|
name: `dns:${connection.connectionId}`,
|
|
@@ -155171,15 +155230,15 @@ async function runMachineDoctor(store) {
|
|
|
155171
155230
|
function errorMessage6(error64) {
|
|
155172
155231
|
return error64 instanceof Error ? error64.message : String(error64);
|
|
155173
155232
|
}
|
|
155174
|
-
var import_node_child_process20,
|
|
155233
|
+
var import_node_child_process20, import_promises40, import_node_fs17, import_promises41, import_node_util6, execFileAsync3, DoctorCheckStatus;
|
|
155175
155234
|
var init_doctor = __esm({
|
|
155176
155235
|
"src/machine-connector/runtime/doctor.ts"() {
|
|
155177
155236
|
"use strict";
|
|
155178
155237
|
init_cjs_shims();
|
|
155179
155238
|
import_node_child_process20 = require("node:child_process");
|
|
155180
|
-
|
|
155239
|
+
import_promises40 = require("node:fs/promises");
|
|
155181
155240
|
import_node_fs17 = require("node:fs");
|
|
155182
|
-
|
|
155241
|
+
import_promises41 = require("node:dns/promises");
|
|
155183
155242
|
import_node_util6 = require("node:util");
|
|
155184
155243
|
init_local_ipc();
|
|
155185
155244
|
execFileAsync3 = (0, import_node_util6.promisify)(import_node_child_process20.execFile);
|
|
@@ -155480,7 +155539,7 @@ async function readRecentLogLines(store) {
|
|
|
155480
155539
|
}
|
|
155481
155540
|
async function readOptionalFile(path10) {
|
|
155482
155541
|
try {
|
|
155483
|
-
return await (0,
|
|
155542
|
+
return await (0, import_promises42.readFile)(path10, "utf8");
|
|
155484
155543
|
} catch (error64) {
|
|
155485
155544
|
if (isMissingFile(error64)) {
|
|
155486
155545
|
return "";
|
|
@@ -155539,13 +155598,13 @@ function isMissingFile(error64) {
|
|
|
155539
155598
|
function errorMessage7(error64) {
|
|
155540
155599
|
return error64 instanceof Error ? error64.message : String(error64);
|
|
155541
155600
|
}
|
|
155542
|
-
var
|
|
155601
|
+
var import_promises42, import_promises43, import_node_readline, alternateScreenEnter, alternateScreenExit, clearScreen, cursorHide, cursorShow, styleReset, styleHeader, styleSelected, refreshIntervalMilliseconds, maximumLogLines, MachineManagerView, MachineManagerAction, MachineManagerSnapshotDepth, InteractiveMachineManager;
|
|
155543
155602
|
var init_machine_manager = __esm({
|
|
155544
155603
|
"src/machine-connector/runtime/machine-manager.ts"() {
|
|
155545
155604
|
"use strict";
|
|
155546
155605
|
init_cjs_shims();
|
|
155547
|
-
|
|
155548
|
-
|
|
155606
|
+
import_promises42 = require("node:fs/promises");
|
|
155607
|
+
import_promises43 = require("node:readline/promises");
|
|
155549
155608
|
import_node_readline = require("node:readline");
|
|
155550
155609
|
init_doctor();
|
|
155551
155610
|
init_local_ipc();
|
|
@@ -155800,7 +155859,7 @@ var init_machine_manager = __esm({
|
|
|
155800
155859
|
}
|
|
155801
155860
|
async runCommandAction(action) {
|
|
155802
155861
|
this.suspendTerminal();
|
|
155803
|
-
const reader = (0,
|
|
155862
|
+
const reader = (0, import_promises43.createInterface)({
|
|
155804
155863
|
input: process.stdin,
|
|
155805
155864
|
output: process.stdout
|
|
155806
155865
|
});
|
|
@@ -156096,7 +156155,7 @@ async function pairMachine(store, options) {
|
|
|
156096
156155
|
throw new Error("Local Machine pairing expired");
|
|
156097
156156
|
}
|
|
156098
156157
|
function displayNameForRoot(canonicalRoot) {
|
|
156099
|
-
const name = (0,
|
|
156158
|
+
const name = (0, import_node_path48.basename)(canonicalRoot);
|
|
156100
156159
|
return name.length > 0 ? name : canonicalRoot;
|
|
156101
156160
|
}
|
|
156102
156161
|
function getOperatingSystem() {
|
|
@@ -156118,7 +156177,7 @@ function delay5(milliseconds) {
|
|
|
156118
156177
|
setTimeout(resolvePromise, milliseconds);
|
|
156119
156178
|
});
|
|
156120
156179
|
}
|
|
156121
|
-
var import_node_child_process21, import_node_crypto27, import_node_os19,
|
|
156180
|
+
var import_node_child_process21, import_node_crypto27, import_node_os19, import_node_path48, connectedPairingStatus, rejectedPairingStatus, expiredPairingStatus, pairingPollMilliseconds;
|
|
156122
156181
|
var init_pairing = __esm({
|
|
156123
156182
|
"src/machine-connector/runtime/pairing.ts"() {
|
|
156124
156183
|
"use strict";
|
|
@@ -156126,7 +156185,7 @@ var init_pairing = __esm({
|
|
|
156126
156185
|
import_node_child_process21 = require("node:child_process");
|
|
156127
156186
|
import_node_crypto27 = require("node:crypto");
|
|
156128
156187
|
import_node_os19 = require("node:os");
|
|
156129
|
-
|
|
156188
|
+
import_node_path48 = require("node:path");
|
|
156130
156189
|
init_contracts();
|
|
156131
156190
|
init_version2();
|
|
156132
156191
|
init_enums();
|
|
@@ -156212,7 +156271,7 @@ function isMachineLifecycleMutation(command, commandArguments) {
|
|
|
156212
156271
|
async function connectCommand(store, argumentsList, entrypoint) {
|
|
156213
156272
|
const options = parseOptions(argumentsList);
|
|
156214
156273
|
const connectionCode = requiredOption(options, "code");
|
|
156215
|
-
const rootPath = (0,
|
|
156274
|
+
const rootPath = (0, import_node_path49.resolve)(options.root ?? process.cwd());
|
|
156216
156275
|
const serviceManagerPreference = resolveServiceManagerPreference(void 0);
|
|
156217
156276
|
await assertConnectionRuntimeCanConverge(store, serviceManagerPreference);
|
|
156218
156277
|
writeLine("Internal Full Host Access: enabled");
|
|
@@ -156645,7 +156704,7 @@ async function reachableRuntimeStatus2(store) {
|
|
|
156645
156704
|
}
|
|
156646
156705
|
async function readOptionalFile2(path10) {
|
|
156647
156706
|
try {
|
|
156648
|
-
return await (0,
|
|
156707
|
+
return await (0, import_promises44.readFile)(path10, "utf8");
|
|
156649
156708
|
} catch {
|
|
156650
156709
|
return "";
|
|
156651
156710
|
}
|
|
@@ -156674,13 +156733,13 @@ function delay6(milliseconds) {
|
|
|
156674
156733
|
setTimeout(resolvePromise, milliseconds);
|
|
156675
156734
|
});
|
|
156676
156735
|
}
|
|
156677
|
-
var
|
|
156736
|
+
var import_promises44, import_node_path49, defaultRelayOrigin;
|
|
156678
156737
|
var init_cli = __esm({
|
|
156679
156738
|
"src/machine-connector/cli.ts"() {
|
|
156680
156739
|
"use strict";
|
|
156681
156740
|
init_cjs_shims();
|
|
156682
|
-
|
|
156683
|
-
|
|
156741
|
+
import_promises44 = require("node:fs/promises");
|
|
156742
|
+
import_node_path49 = require("node:path");
|
|
156684
156743
|
init_daemon();
|
|
156685
156744
|
init_daemon_reconcile();
|
|
156686
156745
|
init_doctor();
|
|
@@ -160572,7 +160631,7 @@ var init_file_selector = __esm({
|
|
|
160572
160631
|
|
|
160573
160632
|
// src/utils/http.ts
|
|
160574
160633
|
function getUserAgent() {
|
|
160575
|
-
return `moxt-cli/${"0.15.
|
|
160634
|
+
return `moxt-cli/${"0.15.4"} (${(0, import_os10.platform)()}/${(0, import_os10.arch)()}) node/${process.versions.node}`;
|
|
160576
160635
|
}
|
|
160577
160636
|
async function sendRequest(method, path10, init) {
|
|
160578
160637
|
return await fetch(`${getApiBaseUrl()}${path10}`, {
|
|
@@ -161545,21 +161604,21 @@ var init_core3 = __esm({
|
|
|
161545
161604
|
});
|
|
161546
161605
|
|
|
161547
161606
|
// node_modules/.pnpm/strtok3@10.3.5/node_modules/strtok3/lib/FileTokenizer.js
|
|
161548
|
-
var
|
|
161607
|
+
var import_promises45, FileTokenizer;
|
|
161549
161608
|
var init_FileTokenizer = __esm({
|
|
161550
161609
|
"node_modules/.pnpm/strtok3@10.3.5/node_modules/strtok3/lib/FileTokenizer.js"() {
|
|
161551
161610
|
"use strict";
|
|
161552
161611
|
init_cjs_shims();
|
|
161553
161612
|
init_AbstractTokenizer();
|
|
161554
161613
|
init_stream2();
|
|
161555
|
-
|
|
161614
|
+
import_promises45 = require("node:fs/promises");
|
|
161556
161615
|
FileTokenizer = class _FileTokenizer extends AbstractTokenizer {
|
|
161557
161616
|
/**
|
|
161558
161617
|
* Create tokenizer from provided file path
|
|
161559
161618
|
* @param sourceFilePath File path
|
|
161560
161619
|
*/
|
|
161561
161620
|
static async fromFile(sourceFilePath) {
|
|
161562
|
-
const fileHandle = await (0,
|
|
161621
|
+
const fileHandle = await (0, import_promises45.open)(sourceFilePath, "r");
|
|
161563
161622
|
const stat13 = await fileHandle.stat();
|
|
161564
161623
|
return new _FileTokenizer(fileHandle, { fileInfo: { path: sourceFilePath, size: stat13.size } });
|
|
161565
161624
|
}
|
|
@@ -161751,14 +161810,14 @@ function pushCodeUnit(parts, chunk, codeUnit) {
|
|
|
161751
161810
|
if (chunk.length >= CHUNK)
|
|
161752
161811
|
flushChunk(parts, chunk);
|
|
161753
161812
|
}
|
|
161754
|
-
function pushCodePoint(parts, chunk,
|
|
161755
|
-
if (
|
|
161756
|
-
pushCodeUnit(parts, chunk,
|
|
161813
|
+
function pushCodePoint(parts, chunk, cp3) {
|
|
161814
|
+
if (cp3 <= 65535) {
|
|
161815
|
+
pushCodeUnit(parts, chunk, cp3);
|
|
161757
161816
|
return;
|
|
161758
161817
|
}
|
|
161759
|
-
|
|
161760
|
-
pushCodeUnit(parts, chunk, 55296 + (
|
|
161761
|
-
pushCodeUnit(parts, chunk, 56320 + (
|
|
161818
|
+
cp3 -= 65536;
|
|
161819
|
+
pushCodeUnit(parts, chunk, 55296 + (cp3 >> 10));
|
|
161820
|
+
pushCodeUnit(parts, chunk, 56320 + (cp3 & 1023));
|
|
161762
161821
|
}
|
|
161763
161822
|
function decodeUTF8(bytes) {
|
|
161764
161823
|
const parts = [];
|
|
@@ -161791,8 +161850,8 @@ function decodeUTF8(bytes) {
|
|
|
161791
161850
|
i3++;
|
|
161792
161851
|
continue;
|
|
161793
161852
|
}
|
|
161794
|
-
const
|
|
161795
|
-
pushCodeUnit(parts, chunk,
|
|
161853
|
+
const cp4 = (b1 & 31) << 6 | b22 & 63;
|
|
161854
|
+
pushCodeUnit(parts, chunk, cp4);
|
|
161796
161855
|
i3 += 2;
|
|
161797
161856
|
continue;
|
|
161798
161857
|
}
|
|
@@ -161811,8 +161870,8 @@ function decodeUTF8(bytes) {
|
|
|
161811
161870
|
i3++;
|
|
161812
161871
|
continue;
|
|
161813
161872
|
}
|
|
161814
|
-
const
|
|
161815
|
-
pushCodeUnit(parts, chunk,
|
|
161873
|
+
const cp4 = (b1 & 15) << 12 | (b22 & 63) << 6 | b33 & 63;
|
|
161874
|
+
pushCodeUnit(parts, chunk, cp4);
|
|
161816
161875
|
i3 += 3;
|
|
161817
161876
|
continue;
|
|
161818
161877
|
}
|
|
@@ -161831,8 +161890,8 @@ function decodeUTF8(bytes) {
|
|
|
161831
161890
|
i3++;
|
|
161832
161891
|
continue;
|
|
161833
161892
|
}
|
|
161834
|
-
const
|
|
161835
|
-
pushCodePoint(parts, chunk,
|
|
161893
|
+
const cp3 = (b1 & 7) << 18 | (b2 & 63) << 12 | (b32 & 63) << 6 | b42 & 63;
|
|
161894
|
+
pushCodePoint(parts, chunk, cp3);
|
|
161836
161895
|
i3 += 4;
|
|
161837
161896
|
}
|
|
161838
161897
|
flushChunk(parts, chunk);
|
|
@@ -174334,7 +174393,7 @@ var init_skill = __esm({
|
|
|
174334
174393
|
|
|
174335
174394
|
// src/commands/machine-dump.ts
|
|
174336
174395
|
async function createMachineDump(options) {
|
|
174337
|
-
const outputPath = (0,
|
|
174396
|
+
const outputPath = (0, import_node_path51.resolve)(
|
|
174338
174397
|
options.outputPath ?? defaultDumpFilename(/* @__PURE__ */ new Date())
|
|
174339
174398
|
);
|
|
174340
174399
|
const entries = {};
|
|
@@ -174399,8 +174458,8 @@ async function createMachineDump(options) {
|
|
|
174399
174458
|
`
|
|
174400
174459
|
);
|
|
174401
174460
|
included.unshift("diagnostics.json");
|
|
174402
|
-
await (0,
|
|
174403
|
-
await (0,
|
|
174461
|
+
await (0, import_promises46.mkdir)((0, import_node_path51.dirname)(outputPath), { recursive: true });
|
|
174462
|
+
await (0, import_promises46.writeFile)(outputPath, zipSync(entries, { level: 6 }), {
|
|
174404
174463
|
flag: "wx",
|
|
174405
174464
|
mode: 384
|
|
174406
174465
|
});
|
|
@@ -174414,15 +174473,15 @@ function connectorLogCandidates(sourceName) {
|
|
|
174414
174473
|
}
|
|
174415
174474
|
async function readAllowlistedFile(runtimeRoot, sourceName) {
|
|
174416
174475
|
if (runtimeRoot === void 0) return { status: "missing" };
|
|
174417
|
-
const path10 = (0,
|
|
174476
|
+
const path10 = (0, import_node_path51.resolve)(runtimeRoot, sourceName);
|
|
174418
174477
|
try {
|
|
174419
|
-
const metadata = await (0,
|
|
174478
|
+
const metadata = await (0, import_promises46.lstat)(path10);
|
|
174420
174479
|
if (!metadata.isFile()) return { status: "not a regular file" };
|
|
174421
|
-
const canonicalPath = await (0,
|
|
174480
|
+
const canonicalPath = await (0, import_promises46.realpath)(path10);
|
|
174422
174481
|
if (!pathIsInside(runtimeRoot, canonicalPath)) {
|
|
174423
174482
|
return { status: "outside runtime directory" };
|
|
174424
174483
|
}
|
|
174425
|
-
const handle = await (0,
|
|
174484
|
+
const handle = await (0, import_promises46.open)(
|
|
174426
174485
|
path10,
|
|
174427
174486
|
import_node_fs18.constants.O_RDONLY | (import_node_fs18.constants.O_NOFOLLOW ?? 0)
|
|
174428
174487
|
);
|
|
@@ -174456,11 +174515,11 @@ async function readAllowlistedFile(runtimeRoot, sourceName) {
|
|
|
174456
174515
|
}
|
|
174457
174516
|
async function validateOpenedPath(runtimeRoot, path10, openedMetadata) {
|
|
174458
174517
|
try {
|
|
174459
|
-
const canonicalPath = await (0,
|
|
174518
|
+
const canonicalPath = await (0, import_promises46.realpath)(path10);
|
|
174460
174519
|
if (!pathIsInside(runtimeRoot, canonicalPath)) {
|
|
174461
174520
|
return "outside runtime directory";
|
|
174462
174521
|
}
|
|
174463
|
-
const currentMetadata = await (0,
|
|
174522
|
+
const currentMetadata = await (0, import_promises46.stat)(path10);
|
|
174464
174523
|
if (currentMetadata.dev !== openedMetadata.dev || currentMetadata.ino !== openedMetadata.ino) {
|
|
174465
174524
|
return "path changed while reading";
|
|
174466
174525
|
}
|
|
@@ -174474,8 +174533,8 @@ async function validateOpenedPath(runtimeRoot, path10, openedMetadata) {
|
|
|
174474
174533
|
}
|
|
174475
174534
|
async function canonicalRuntimeRoot(path10) {
|
|
174476
174535
|
try {
|
|
174477
|
-
const canonicalPath = await (0,
|
|
174478
|
-
const metadata = await (0,
|
|
174536
|
+
const canonicalPath = await (0, import_promises46.realpath)(path10);
|
|
174537
|
+
const metadata = await (0, import_promises46.stat)(canonicalPath);
|
|
174479
174538
|
return metadata.isDirectory() ? canonicalPath : void 0;
|
|
174480
174539
|
} catch (error64) {
|
|
174481
174540
|
if (isNodeErrorCode4(error64, "ENOENT") || isNodeErrorCode4(error64, "ENOTDIR") || isNodeErrorCode4(error64, "ELOOP")) {
|
|
@@ -174485,8 +174544,8 @@ async function canonicalRuntimeRoot(path10) {
|
|
|
174485
174544
|
}
|
|
174486
174545
|
}
|
|
174487
174546
|
function pathIsInside(runtimeRoot, path10) {
|
|
174488
|
-
const relativePath = (0,
|
|
174489
|
-
return relativePath === "" || relativePath !== ".." && !relativePath.startsWith(`..${
|
|
174547
|
+
const relativePath = (0, import_node_path51.relative)(runtimeRoot, path10);
|
|
174548
|
+
return relativePath === "" || relativePath !== ".." && !relativePath.startsWith(`..${import_node_path51.sep}`) && !(0, import_node_path51.isAbsolute)(relativePath);
|
|
174490
174549
|
}
|
|
174491
174550
|
function redactSecrets(value) {
|
|
174492
174551
|
const structured = redactStructuredText(value);
|
|
@@ -174558,9 +174617,9 @@ function parseJson3(value) {
|
|
|
174558
174617
|
}
|
|
174559
174618
|
async function pathExistsInsideRuntime(runtimeRoot, sourceName) {
|
|
174560
174619
|
if (runtimeRoot === void 0) return false;
|
|
174561
|
-
const path10 = (0,
|
|
174620
|
+
const path10 = (0, import_node_path51.resolve)(runtimeRoot, sourceName);
|
|
174562
174621
|
try {
|
|
174563
|
-
const canonicalPath = await (0,
|
|
174622
|
+
const canonicalPath = await (0, import_promises46.realpath)(path10);
|
|
174564
174623
|
return pathIsInside(runtimeRoot, canonicalPath);
|
|
174565
174624
|
} catch (error64) {
|
|
174566
174625
|
if (isNodeErrorCode4(error64, "ENOENT") || isNodeErrorCode4(error64, "ENOTDIR") || isNodeErrorCode4(error64, "ELOOP")) {
|
|
@@ -174571,9 +174630,9 @@ async function pathExistsInsideRuntime(runtimeRoot, sourceName) {
|
|
|
174571
174630
|
}
|
|
174572
174631
|
function displayPath(path10) {
|
|
174573
174632
|
const home = process.env.HOME ?? (0, import_node_os20.homedir)();
|
|
174574
|
-
const relativeToHome = (0,
|
|
174575
|
-
if (relativeToHome === "" || !relativeToHome.startsWith(`..${
|
|
174576
|
-
return relativeToHome === "" ? "~" : (0,
|
|
174633
|
+
const relativeToHome = (0, import_node_path51.relative)(home, path10);
|
|
174634
|
+
if (relativeToHome === "" || !relativeToHome.startsWith(`..${import_node_path51.sep}`) && relativeToHome !== "..") {
|
|
174635
|
+
return relativeToHome === "" ? "~" : (0, import_node_path51.join)("~", relativeToHome);
|
|
174577
174636
|
}
|
|
174578
174637
|
return path10;
|
|
174579
174638
|
}
|
|
@@ -174584,15 +174643,15 @@ function defaultDumpFilename(date6) {
|
|
|
174584
174643
|
function isNodeErrorCode4(error64, code) {
|
|
174585
174644
|
return error64 instanceof Error && "code" in error64 && error64.code === code;
|
|
174586
174645
|
}
|
|
174587
|
-
var import_node_fs18,
|
|
174646
|
+
var import_node_fs18, import_promises46, import_node_os20, import_node_path51, redactedValue, candidates;
|
|
174588
174647
|
var init_machine_dump = __esm({
|
|
174589
174648
|
"src/commands/machine-dump.ts"() {
|
|
174590
174649
|
"use strict";
|
|
174591
174650
|
init_cjs_shims();
|
|
174592
174651
|
import_node_fs18 = require("node:fs");
|
|
174593
|
-
|
|
174652
|
+
import_promises46 = require("node:fs/promises");
|
|
174594
174653
|
import_node_os20 = require("node:os");
|
|
174595
|
-
|
|
174654
|
+
import_node_path51 = require("node:path");
|
|
174596
174655
|
init_esm2();
|
|
174597
174656
|
redactedValue = "[REDACTED]";
|
|
174598
174657
|
candidates = [
|
|
@@ -174622,7 +174681,7 @@ async function claimMobiusMachineRegistration(options, signal) {
|
|
|
174622
174681
|
const defaultWorkspacePath = await prepareMobiusMachineWorkspace(
|
|
174623
174682
|
options.rootPath
|
|
174624
174683
|
);
|
|
174625
|
-
const homeDirectoryPath = await (0,
|
|
174684
|
+
const homeDirectoryPath = await (0, import_promises47.realpath)((0, import_node_os21.homedir)());
|
|
174626
174685
|
const response = await fetch(options.registration.registrationUrl, {
|
|
174627
174686
|
body: JSON.stringify({
|
|
174628
174687
|
defaultWorkspacePath,
|
|
@@ -174661,9 +174720,9 @@ async function claimMobiusMachineRegistration(options, signal) {
|
|
|
174661
174720
|
throw new Error("Moxt returned an invalid Machine registration response");
|
|
174662
174721
|
}
|
|
174663
174722
|
async function prepareMobiusMachineWorkspace(rootPath) {
|
|
174664
|
-
const requested = (0,
|
|
174665
|
-
await (0,
|
|
174666
|
-
return await (0,
|
|
174723
|
+
const requested = (0, import_node_path52.resolve)(rootPath);
|
|
174724
|
+
await (0, import_promises47.mkdir)(requested, { mode: 448, recursive: true });
|
|
174725
|
+
return await (0, import_promises47.realpath)(requested);
|
|
174667
174726
|
}
|
|
174668
174727
|
function decodeMobiusMachineRegistrationCode(value) {
|
|
174669
174728
|
let registration;
|
|
@@ -174759,14 +174818,14 @@ function registrationErrorMessage(value) {
|
|
|
174759
174818
|
function isRecord13(value) {
|
|
174760
174819
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
174761
174820
|
}
|
|
174762
|
-
var
|
|
174821
|
+
var import_promises47, import_node_os21, import_node_path52, registrationTimeoutMilliseconds;
|
|
174763
174822
|
var init_mobius_machine_registration = __esm({
|
|
174764
174823
|
"src/commands/mobius-machine-registration.ts"() {
|
|
174765
174824
|
"use strict";
|
|
174766
174825
|
init_cjs_shims();
|
|
174767
|
-
|
|
174826
|
+
import_promises47 = require("node:fs/promises");
|
|
174768
174827
|
import_node_os21 = require("node:os");
|
|
174769
|
-
|
|
174828
|
+
import_node_path52 = require("node:path");
|
|
174770
174829
|
registrationTimeoutMilliseconds = 2e4;
|
|
174771
174830
|
}
|
|
174772
174831
|
});
|
|
@@ -175134,16 +175193,16 @@ function appendOption2(argumentsList, flag, value) {
|
|
|
175134
175193
|
}
|
|
175135
175194
|
}
|
|
175136
175195
|
function defaultMachineWorkspacePath() {
|
|
175137
|
-
return
|
|
175196
|
+
return import_node_path53.default.join((0, import_node_os22.homedir)(), ".moxt", "workspace");
|
|
175138
175197
|
}
|
|
175139
|
-
var import_node_os22,
|
|
175198
|
+
var import_node_os22, import_node_path53;
|
|
175140
175199
|
var init_machine = __esm({
|
|
175141
175200
|
"src/commands/machine.ts"() {
|
|
175142
175201
|
"use strict";
|
|
175143
175202
|
init_cjs_shims();
|
|
175144
175203
|
init_esm();
|
|
175145
175204
|
import_node_os22 = require("node:os");
|
|
175146
|
-
|
|
175205
|
+
import_node_path53 = __toESM(require("node:path"), 1);
|
|
175147
175206
|
init_machine_dump();
|
|
175148
175207
|
init_mobius_machine_registration();
|
|
175149
175208
|
}
|
|
@@ -176089,7 +176148,7 @@ async function resolveLinkedLinkTitles(item, workspaceId) {
|
|
|
176089
176148
|
`/files/read-by-url?url=${encodeURIComponent(link.url)}`
|
|
176090
176149
|
);
|
|
176091
176150
|
if (!response.ok || response.data.type !== "file") return link.url;
|
|
176092
|
-
return
|
|
176151
|
+
return import_node_path54.posix.basename(response.data.path) || link.url;
|
|
176093
176152
|
} catch {
|
|
176094
176153
|
return link.url;
|
|
176095
176154
|
}
|
|
@@ -176755,13 +176814,13 @@ function registerRunCommands(workflow) {
|
|
|
176755
176814
|
stopSpinner(true, `Abort accepted: ${pipelineId}`);
|
|
176756
176815
|
});
|
|
176757
176816
|
}
|
|
176758
|
-
var fs8,
|
|
176817
|
+
var fs8, import_node_path54, import_node_util9, MAX_DESC_LENGTH, MAX_COMMENT_CONTENT_LENGTH, MAX_COMMENT_CONTENT_BYTES, WorkflowOptionsError;
|
|
176759
176818
|
var init_workflow = __esm({
|
|
176760
176819
|
"src/commands/workflow.ts"() {
|
|
176761
176820
|
"use strict";
|
|
176762
176821
|
init_cjs_shims();
|
|
176763
176822
|
fs8 = __toESM(require("node:fs"), 1);
|
|
176764
|
-
|
|
176823
|
+
import_node_path54 = require("node:path");
|
|
176765
176824
|
import_node_util9 = require("node:util");
|
|
176766
176825
|
init_file_selector();
|
|
176767
176826
|
init_http();
|
|
@@ -176833,7 +176892,7 @@ var FLUSH_TIMEOUT_MS = 3e3;
|
|
|
176833
176892
|
var MAX_BATCH_SIZE = 100;
|
|
176834
176893
|
function commonLabels() {
|
|
176835
176894
|
return {
|
|
176836
|
-
cli_version: "0.15.
|
|
176895
|
+
cli_version: "0.15.4",
|
|
176837
176896
|
node_version: process.versions.node,
|
|
176838
176897
|
os: (0, import_node_os.platform)(),
|
|
176839
176898
|
arch: (0, import_node_os.arch)(),
|
|
@@ -176879,7 +176938,7 @@ async function flush() {
|
|
|
176879
176938
|
}
|
|
176880
176939
|
const batch = buffer.splice(0, MAX_BATCH_SIZE);
|
|
176881
176940
|
const payload = {
|
|
176882
|
-
release_id: "0.15.
|
|
176941
|
+
release_id: "0.15.4",
|
|
176883
176942
|
client_type: "cli",
|
|
176884
176943
|
metric_data_list: batch.map((m) => ({
|
|
176885
176944
|
profile: "cli",
|
|
@@ -177189,7 +177248,7 @@ function commandPath2(command) {
|
|
|
177189
177248
|
|
|
177190
177249
|
// src/update/daemon-reconcile-hook.ts
|
|
177191
177250
|
init_cjs_shims();
|
|
177192
|
-
var
|
|
177251
|
+
var import_node_path50 = require("node:path");
|
|
177193
177252
|
function installDaemonReconcileHook(program2, cliVersion) {
|
|
177194
177253
|
program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
177195
177254
|
if (!isEligible2(actionCommand)) return;
|
|
@@ -177211,9 +177270,9 @@ function installDaemonReconcileHook(program2, cliVersion) {
|
|
|
177211
177270
|
await reconcileManagedDaemon2({
|
|
177212
177271
|
cliVersion,
|
|
177213
177272
|
commandArguments: ["machine", "daemon"],
|
|
177214
|
-
entrypointPath: (0,
|
|
177273
|
+
entrypointPath: (0, import_node_path50.resolve)(entrypointPath),
|
|
177215
177274
|
environment: {},
|
|
177216
|
-
nodePath: (0,
|
|
177275
|
+
nodePath: (0, import_node_path50.resolve)(process.execPath),
|
|
177217
177276
|
onActiveJobs: (count) => {
|
|
177218
177277
|
process.stderr.write(
|
|
177219
177278
|
`Warning: restarting the managed Connector will interrupt ${count} active ${count === 1 ? "Job" : "Jobs"}.
|
|
@@ -177278,9 +177337,9 @@ void runCli();
|
|
|
177278
177337
|
async function runCli() {
|
|
177279
177338
|
try {
|
|
177280
177339
|
const { createProgram: createProgram2 } = await Promise.resolve().then(() => (init_program(), program_exports));
|
|
177281
|
-
const program2 = createProgram2("0.15.
|
|
177282
|
-
installDaemonReconcileHook(program2, "0.15.
|
|
177283
|
-
installUpdateHook(program2, "0.15.
|
|
177340
|
+
const program2 = createProgram2("0.15.4");
|
|
177341
|
+
installDaemonReconcileHook(program2, "0.15.4");
|
|
177342
|
+
installUpdateHook(program2, "0.15.4", process.argv[1] ?? "");
|
|
177284
177343
|
instrumentProgram(program2);
|
|
177285
177344
|
installExitHandler();
|
|
177286
177345
|
await program2.parseAsync(process.argv);
|