lody 0.98.0 → 0.100.0
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/chunks/{index-DGod--yP.js → index-D_E51idL.js} +11 -11
- package/dist/chunks/{package-BdifTDFO.js → package-OaAJHtMV.js} +1 -1
- package/dist/chunks/{review-viewer-wpzL1tfQ.js → review-viewer-CxrR3OFP.js} +3 -3
- package/dist/chunks/{runtime-manifest-DZsDOOW3.js → runtime-manifest-B4aLP8l_.js} +1 -1
- package/dist/claude-acp.js +20579 -19790
- package/dist/codex-acp.js +1 -1
- package/dist/grok-acp.js +1 -1
- package/dist/index.js +591 -495
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15,25 +15,25 @@ import * as path from "node:path";
|
|
|
15
15
|
import path__default, { posix as posix$1, basename, win32, join as join$2, resolve as resolve$1, relative as relative$1, dirname as dirname$1, isAbsolute as isAbsolute$2, sep as sep$1, delimiter, normalize } from "node:path";
|
|
16
16
|
import { _ as _coercedNumber, Z as ZodNumber$1, o as object$1, s as string$1, l as literal$1, b as boolean, a as _enum$1, n as number$4, d as discriminatedUnion, c as array$2, r as record$3, u as unknown, e as union$7, f as ZodObject$1, g as ZodLiteral$1, j as json$1, p as preprocess, h as ZodError$1, i as safeParse$1, k as ZodOptional$1, m as ZodNullable$1, q as ZodPipe, t as ZodUnion$1, v as ZodArray$1, w as ZodNever$1, x as ZodDiscriminatedUnion, y as _instanceof, z as _null, A as normalizeParams, $ as $constructor, B as $ZodObject, C as defineLazy, D as $ZodType, E as parse$5, F as safeParse$2, G as parseAsync, H as safeParseAsync$1, I as clone$2, J as looseObject, K as intersection, L as optional$1, M as datetime, N as custom$1, O as toJSONSchema, P as never$1, Q as xor } from "./chunks/schemas-C-NzK2uQ.js";
|
|
17
17
|
import require$$0$4, { EventEmitter as EventEmitter$1, once as once$1 } from "node:events";
|
|
18
|
-
import
|
|
18
|
+
import yA__default, { execFile, spawn as spawn$1, execFileSync } from "node:child_process";
|
|
19
19
|
import process$2 from "node:process";
|
|
20
20
|
import tty from "node:tty";
|
|
21
21
|
import * as os from "os";
|
|
22
22
|
import os__default$1 from "os";
|
|
23
23
|
import crypto__default$1, { randomFillSync, randomUUID, createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
24
24
|
import require$$0$5, { promisify as promisify$1 } from "util";
|
|
25
|
-
import
|
|
25
|
+
import Fo, { Transform as Transform$1, Readable as Readable$1 } from "stream";
|
|
26
26
|
import require$$0$6, { Buffer as Buffer$1 } from "buffer";
|
|
27
27
|
import require$$0$7, { EventEmitter as EventEmitter$2 } from "events";
|
|
28
|
-
import * as
|
|
29
|
-
import
|
|
28
|
+
import * as Qi from "zlib";
|
|
29
|
+
import Qi__default from "zlib";
|
|
30
30
|
import require$$0$8 from "tty";
|
|
31
31
|
import require$$1$2 from "string_decoder";
|
|
32
32
|
import http from "http";
|
|
33
33
|
import require$$1__default from "https";
|
|
34
34
|
import require$$0$9, { promisify, inspect as inspect$1, stripVTControlCharacters, isDeepStrictEqual } from "node:util";
|
|
35
|
-
import * as
|
|
36
|
-
import
|
|
35
|
+
import * as fn from "node:fs/promises";
|
|
36
|
+
import fn__default, { readFile, readdir, rm, mkdir as mkdir$1, mkdtemp, chmod, writeFile, rename, stat, lstat, symlink, realpath, unlink, open, opendir, link } from "node:fs/promises";
|
|
37
37
|
import zlib__default, { gzip, gunzip as gunzip$1, gunzipSync, brotliDecompressSync } from "node:zlib";
|
|
38
38
|
import require$$1$7, { exec, execFile as execFile$1, spawn as spawn$2 } from "child_process";
|
|
39
39
|
import { c as createPlanModeConfigOption, L as LODY_PLAN_MODE_CONFIG_ID } from "./chunks/plan-mode-BLOER-fv.js";
|
|
@@ -64,8 +64,8 @@ import require$$1$6 from "node:dns";
|
|
|
64
64
|
import { C as CodeCollabV2FileIndexRequestSchema, a as CodeCollabV2OpenTextRequestSchema, b as CodeCollabV2RefreshTextRequestSchema, c as CodeCollabV2SaveTextRequestSchema, d as CodeCollabV2OpenCurrentDiffRequestSchema, e as CodeCollabV2OpenAllChangesDiffRequestSchema, f as CodeCollabV2OpenTurnDiffRequestSchema, g as CodeCollabV2InitDirectoryRequestSchema, h as CodeCollabV2FileIndexSnapshotSchema, i as CodeCollabV2OpenTextOkSchema, j as CodeCollabV2RefreshTextResponseSchema, k as CodeCollabV2SaveTextResponseSchema, l as CodeCollabV2OpenCurrentDiffResponseSchema, m as CodeCollabV2OpenAllChangesDiffResponseSchema, n as CodeCollabV2OpenTurnDiffResponseSchema, o as CodeCollabV2InitDirectoryOkSchema, p as CodeCollabV2LspUnsupportedSchema, q as CodeCollabV2ErrorSchema, r as CodeCollabV2RpcContentEnvelopeSchema, s as deriveCodeCollabV2ContentKeyId, t as CodeCollabV2ErrorCodeSchema, u as CodeCollabV2RpcResponseSchema, v as deriveCodeCollabV2ContentKeyBytes, w as readCodeCollabFileIndexSignalFromFlock, x as writeCodeCollabFileIndexSignalToFlock, y as writeCodeCollabFileIndexToFlock, z as buildCodeCollabFileIndexState, A as CODE_COLLAB_V2_TEXT_LIMITS, B as CODE_COLLAB_V2_ALL_CHANGES_DIFF_LIMITS, D as computeAllChanges, E as codeCollabFileIndexStatesEqual, F as scanGitDirectoryEntries, G as closeDirectoryQuietly } from "./chunks/directory-handle-35P9qcGk.js";
|
|
65
65
|
import { finished, pipeline } from "node:stream/promises";
|
|
66
66
|
import { StringDecoder } from "node:string_decoder";
|
|
67
|
-
import { p as packageJson } from "./chunks/package-
|
|
68
|
-
import { r as runtimeManifest } from "./chunks/runtime-manifest-
|
|
67
|
+
import { p as packageJson } from "./chunks/package-OaAJHtMV.js";
|
|
68
|
+
import { r as runtimeManifest } from "./chunks/runtime-manifest-B4aLP8l_.js";
|
|
69
69
|
import { L as LODY_EXTENSION_METHODS, n as normalizeLodyExtensionMethod } from "./chunks/methods-CvEDMahD.js";
|
|
70
70
|
import { AsyncLocalStorage as AsyncLocalStorage$1 } from "async_hooks";
|
|
71
71
|
import { createRequire } from "module";
|
|
@@ -737,7 +737,7 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
737
737
|
};
|
|
738
738
|
return logger2;
|
|
739
739
|
};
|
|
740
|
-
const passThrough = (
|
|
740
|
+
const passThrough = (fn2) => fn2();
|
|
741
741
|
function createLogger$3(prefix, maybeCall = passThrough) {
|
|
742
742
|
return _createLogger(prefix, maybeCall, createConsole());
|
|
743
743
|
}
|
|
@@ -752,12 +752,12 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
752
752
|
function removeTrailingSlash(url) {
|
|
753
753
|
return url?.replace(/\/+$/, "");
|
|
754
754
|
}
|
|
755
|
-
async function retriable(
|
|
755
|
+
async function retriable(fn2, props) {
|
|
756
756
|
let lastError = null;
|
|
757
757
|
for (let i2 = 0; i2 < props.retryCount + 1; i2++) {
|
|
758
758
|
if (i2 > 0) await new Promise((r) => setTimeout(r, props.retryDelay));
|
|
759
759
|
try {
|
|
760
|
-
const res = await
|
|
760
|
+
const res = await fn2();
|
|
761
761
|
return res;
|
|
762
762
|
} catch (e) {
|
|
763
763
|
lastError = e;
|
|
@@ -769,8 +769,8 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
769
769
|
function currentISOTime() {
|
|
770
770
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
771
771
|
}
|
|
772
|
-
function safeSetTimeout(
|
|
773
|
-
const t = setTimeout(
|
|
772
|
+
function safeSetTimeout(fn2, timeout2) {
|
|
773
|
+
const t = setTimeout(fn2, timeout2);
|
|
774
774
|
t?.unref && t?.unref();
|
|
775
775
|
return t;
|
|
776
776
|
}
|
|
@@ -1394,13 +1394,13 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
1394
1394
|
if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
|
|
1395
1395
|
this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
|
|
1396
1396
|
}
|
|
1397
|
-
logMsgIfDebug(
|
|
1398
|
-
if (this.isDebug)
|
|
1397
|
+
logMsgIfDebug(fn2) {
|
|
1398
|
+
if (this.isDebug) fn2();
|
|
1399
1399
|
}
|
|
1400
|
-
wrap(
|
|
1400
|
+
wrap(fn2) {
|
|
1401
1401
|
if (this.disabled) return void this._logger.warn("The client is disabled");
|
|
1402
|
-
if (this._isInitialized) return
|
|
1403
|
-
this._initPromise.then(() =>
|
|
1402
|
+
if (this._isInitialized) return fn2();
|
|
1403
|
+
this._initPromise.then(() => fn2());
|
|
1404
1404
|
}
|
|
1405
1405
|
getCommonEventProperties() {
|
|
1406
1406
|
return {
|
|
@@ -2485,8 +2485,8 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
2485
2485
|
debug(enabled2 = true) {
|
|
2486
2486
|
this.debugMode = enabled2;
|
|
2487
2487
|
}
|
|
2488
|
-
logMsgIfDebug(
|
|
2489
|
-
if (this.debugMode)
|
|
2488
|
+
logMsgIfDebug(fn2) {
|
|
2489
|
+
if (this.debugMode) fn2();
|
|
2490
2490
|
}
|
|
2491
2491
|
createEvaluationContext(distinctId2, groups = {}, personProperties = {}, groupProperties = {}, evaluationCache = {}) {
|
|
2492
2492
|
return {
|
|
@@ -4035,9 +4035,9 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
4035
4035
|
}
|
|
4036
4036
|
return false;
|
|
4037
4037
|
}
|
|
4038
|
-
withContext(data,
|
|
4039
|
-
if (!this.context) return
|
|
4040
|
-
return this.context.run(data,
|
|
4038
|
+
withContext(data, fn2, options) {
|
|
4039
|
+
if (!this.context) return fn2();
|
|
4040
|
+
return this.context.run(data, fn2, options);
|
|
4041
4041
|
}
|
|
4042
4042
|
getContext() {
|
|
4043
4043
|
return this.context?.get();
|
|
@@ -4253,8 +4253,8 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
4253
4253
|
beforeSend
|
|
4254
4254
|
];
|
|
4255
4255
|
let result = eventMessage;
|
|
4256
|
-
for (const
|
|
4257
|
-
result =
|
|
4256
|
+
for (const fn2 of fns) {
|
|
4257
|
+
result = fn2(result);
|
|
4258
4258
|
if (!result) {
|
|
4259
4259
|
this._logger.info(`Event '${eventMessage.event}' was rejected in beforeSend function`);
|
|
4260
4260
|
return null;
|
|
@@ -4274,8 +4274,8 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
4274
4274
|
get() {
|
|
4275
4275
|
return this.storage.getStore();
|
|
4276
4276
|
}
|
|
4277
|
-
run(context2,
|
|
4278
|
-
return this.storage.run(this.resolve(context2, options),
|
|
4277
|
+
run(context2, fn2, options) {
|
|
4278
|
+
return this.storage.run(this.resolve(context2, options), fn2);
|
|
4279
4279
|
}
|
|
4280
4280
|
enter(context2, options) {
|
|
4281
4281
|
this.storage.enterWith(this.resolve(context2, options));
|
|
@@ -4325,7 +4325,7 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
4325
4325
|
}
|
|
4326
4326
|
const name$2 = "lody";
|
|
4327
4327
|
const name$1 = "@lody/cli-cloud";
|
|
4328
|
-
const version$a = "0.
|
|
4328
|
+
const version$a = "0.100.0";
|
|
4329
4329
|
const type$2 = "module";
|
|
4330
4330
|
const scripts = {
|
|
4331
4331
|
"dev": "node dev.mjs",
|
|
@@ -4955,10 +4955,10 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
4955
4955
|
}
|
|
4956
4956
|
};
|
|
4957
4957
|
var arrayTraps = {};
|
|
4958
|
-
each(objectTraps, (key2,
|
|
4958
|
+
each(objectTraps, (key2, fn2) => {
|
|
4959
4959
|
arrayTraps[key2] = function() {
|
|
4960
4960
|
arguments[0] = arguments[0][0];
|
|
4961
|
-
return
|
|
4961
|
+
return fn2.apply(this, arguments);
|
|
4962
4962
|
};
|
|
4963
4963
|
});
|
|
4964
4964
|
arrayTraps.deleteProperty = function(state2, prop) {
|
|
@@ -10100,6 +10100,10 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
10100
10100
|
{
|
|
10101
10101
|
agentType: "bub",
|
|
10102
10102
|
displayName: "Bub"
|
|
10103
|
+
},
|
|
10104
|
+
{
|
|
10105
|
+
agentType: "dimcode",
|
|
10106
|
+
displayName: "Dimcode"
|
|
10103
10107
|
}
|
|
10104
10108
|
];
|
|
10105
10109
|
const BUILTIN_ACP_TITLE_OWNERSHIP = {
|
|
@@ -10109,7 +10113,8 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
10109
10113
|
grok: "untagged",
|
|
10110
10114
|
kimi: "none",
|
|
10111
10115
|
deepseek: "none",
|
|
10112
|
-
bub: "none"
|
|
10116
|
+
bub: "none",
|
|
10117
|
+
dimcode: "none"
|
|
10113
10118
|
};
|
|
10114
10119
|
const builtinAcpTitleOwnership = (cliType, agentType) => cliType === "builtin" && agentType && isBuiltinAgentType(agentType) ? BUILTIN_ACP_TITLE_OWNERSHIP[agentType] : "none";
|
|
10115
10120
|
const acpOwnsSessionTitleGeneration = (cliType, agentType, runtimeOverrides) => !hasBuiltinRuntimeOverrideValues(runtimeOverrides) && builtinAcpTitleOwnership(cliType, agentType) !== "none";
|
|
@@ -10149,7 +10154,7 @@ Upgrade Node, then re-run: npx lody@latest`;
|
|
|
10149
10154
|
const getAcpCapabilityCacheKey = (configId) => configId;
|
|
10150
10155
|
const isBuiltinAgentType = (agentType) => BUILTIN_AGENTS.some((agent2) => agent2.agentType === agentType);
|
|
10151
10156
|
const isManagedBuiltinAgentType = (agentType) => MANAGED_BUILTIN_RUNTIMES.some((runtime) => runtime.agentType === agentType);
|
|
10152
|
-
const supportsBuiltinProviderSetup = (agentType) => isManagedBuiltinAgentType(agentType) || agentType === "bub";
|
|
10157
|
+
const supportsBuiltinProviderSetup = (agentType) => isManagedBuiltinAgentType(agentType) || agentType === "bub" || agentType === "dimcode";
|
|
10153
10158
|
const getManagedBuiltinRuntimeByAgentType = (agentType) => MANAGED_BUILTIN_RUNTIMES.find((runtime) => runtime.agentType === agentType);
|
|
10154
10159
|
const getManagedBuiltinRuntimeByRuntimeName = (runtimeName) => MANAGED_BUILTIN_RUNTIMES.find((runtime) => runtime.runtimeName === runtimeName);
|
|
10155
10160
|
const CODEX_AUTO_REVIEW_MODE_ID = "agent-auto-review";
|
|
@@ -20368,6 +20373,11 @@ ${outputTail}` : blockTail.output;
|
|
|
20368
20373
|
], [
|
|
20369
20374
|
DEFAULT_AGENTS_GLOBAL_SKILL_DIR
|
|
20370
20375
|
]),
|
|
20376
|
+
dimcode: skillDirs([
|
|
20377
|
+
DEFAULT_PROJECT_SKILL_DIR
|
|
20378
|
+
], [
|
|
20379
|
+
DEFAULT_AGENTS_GLOBAL_SKILL_DIR
|
|
20380
|
+
]),
|
|
20371
20381
|
claude: skillDirs([
|
|
20372
20382
|
CLAUDE_PROJECT_SKILL_DIR
|
|
20373
20383
|
], [
|
|
@@ -27642,8 +27652,8 @@ ${context2.authorReply.trim()}
|
|
|
27642
27652
|
this.defaultValueDescription = description2;
|
|
27643
27653
|
return this;
|
|
27644
27654
|
}
|
|
27645
|
-
argParser(
|
|
27646
|
-
this.parseArg =
|
|
27655
|
+
argParser(fn2) {
|
|
27656
|
+
this.parseArg = fn2;
|
|
27647
27657
|
return this;
|
|
27648
27658
|
}
|
|
27649
27659
|
choices(values) {
|
|
@@ -27991,8 +28001,8 @@ ${context2.authorReply.trim()}
|
|
|
27991
28001
|
this.envVar = name2;
|
|
27992
28002
|
return this;
|
|
27993
28003
|
}
|
|
27994
|
-
argParser(
|
|
27995
|
-
this.parseArg =
|
|
28004
|
+
argParser(fn2) {
|
|
28005
|
+
this.parseArg = fn2;
|
|
27996
28006
|
return this;
|
|
27997
28007
|
}
|
|
27998
28008
|
makeOptionMandatory(mandatory = true) {
|
|
@@ -28172,7 +28182,7 @@ ${context2.authorReply.trim()}
|
|
|
28172
28182
|
if (hasRequiredCommand$1) return command$1;
|
|
28173
28183
|
hasRequiredCommand$1 = 1;
|
|
28174
28184
|
const EventEmitter2 = require$$0$4.EventEmitter;
|
|
28175
|
-
const childProcess =
|
|
28185
|
+
const childProcess = yA__default;
|
|
28176
28186
|
const path2 = path__default;
|
|
28177
28187
|
const fs2 = fs__default;
|
|
28178
28188
|
const process2 = process$2;
|
|
@@ -28314,12 +28324,12 @@ ${context2.authorReply.trim()}
|
|
|
28314
28324
|
createArgument(name2, description2) {
|
|
28315
28325
|
return new Argument2(name2, description2);
|
|
28316
28326
|
}
|
|
28317
|
-
argument(name2, description2,
|
|
28327
|
+
argument(name2, description2, fn2, defaultValue) {
|
|
28318
28328
|
const argument2 = this.createArgument(name2, description2);
|
|
28319
|
-
if (typeof
|
|
28320
|
-
argument2.default(defaultValue).argParser(
|
|
28329
|
+
if (typeof fn2 === "function") {
|
|
28330
|
+
argument2.default(defaultValue).argParser(fn2);
|
|
28321
28331
|
} else {
|
|
28322
|
-
argument2.default(
|
|
28332
|
+
argument2.default(fn2);
|
|
28323
28333
|
}
|
|
28324
28334
|
this.addArgument(argument2);
|
|
28325
28335
|
return this;
|
|
@@ -28395,9 +28405,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
28395
28405
|
}
|
|
28396
28406
|
return this;
|
|
28397
28407
|
}
|
|
28398
|
-
exitOverride(
|
|
28399
|
-
if (
|
|
28400
|
-
this._exitCallback =
|
|
28408
|
+
exitOverride(fn2) {
|
|
28409
|
+
if (fn2) {
|
|
28410
|
+
this._exitCallback = fn2;
|
|
28401
28411
|
} else {
|
|
28402
28412
|
this._exitCallback = (err2) => {
|
|
28403
28413
|
if (err2.code !== "commander.executeSubCommandAsync") {
|
|
@@ -28413,7 +28423,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
28413
28423
|
}
|
|
28414
28424
|
process2.exit(exitCode);
|
|
28415
28425
|
}
|
|
28416
|
-
action(
|
|
28426
|
+
action(fn2) {
|
|
28417
28427
|
const listener = (args2) => {
|
|
28418
28428
|
const expectedArgsCount = this.registeredArguments.length;
|
|
28419
28429
|
const actionArgs = args2.slice(0, expectedArgsCount);
|
|
@@ -28423,7 +28433,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
28423
28433
|
actionArgs[expectedArgsCount] = this.opts();
|
|
28424
28434
|
}
|
|
28425
28435
|
actionArgs.push(this);
|
|
28426
|
-
return
|
|
28436
|
+
return fn2.apply(this, actionArgs);
|
|
28427
28437
|
};
|
|
28428
28438
|
this._actionHandler = listener;
|
|
28429
28439
|
return this;
|
|
@@ -28513,23 +28523,23 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
28513
28523
|
}
|
|
28514
28524
|
return this;
|
|
28515
28525
|
}
|
|
28516
|
-
_optionEx(config2, flags, description2,
|
|
28526
|
+
_optionEx(config2, flags, description2, fn2, defaultValue) {
|
|
28517
28527
|
if (typeof flags === "object" && flags instanceof Option2) {
|
|
28518
28528
|
throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");
|
|
28519
28529
|
}
|
|
28520
28530
|
const option2 = this.createOption(flags, description2);
|
|
28521
28531
|
option2.makeOptionMandatory(!!config2.mandatory);
|
|
28522
|
-
if (typeof
|
|
28523
|
-
option2.default(defaultValue).argParser(
|
|
28524
|
-
} else if (
|
|
28525
|
-
const regex2 =
|
|
28526
|
-
|
|
28532
|
+
if (typeof fn2 === "function") {
|
|
28533
|
+
option2.default(defaultValue).argParser(fn2);
|
|
28534
|
+
} else if (fn2 instanceof RegExp) {
|
|
28535
|
+
const regex2 = fn2;
|
|
28536
|
+
fn2 = (val, def) => {
|
|
28527
28537
|
const m = regex2.exec(val);
|
|
28528
28538
|
return m ? m[0] : def;
|
|
28529
28539
|
};
|
|
28530
|
-
option2.default(defaultValue).argParser(
|
|
28540
|
+
option2.default(defaultValue).argParser(fn2);
|
|
28531
28541
|
} else {
|
|
28532
|
-
option2.default(
|
|
28542
|
+
option2.default(fn2);
|
|
28533
28543
|
}
|
|
28534
28544
|
return this.addOption(option2);
|
|
28535
28545
|
}
|
|
@@ -28846,11 +28856,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
28846
28856
|
});
|
|
28847
28857
|
this.processedArgs = processedArgs;
|
|
28848
28858
|
}
|
|
28849
|
-
_chainOrCall(promise2,
|
|
28859
|
+
_chainOrCall(promise2, fn2) {
|
|
28850
28860
|
if (promise2 && promise2.then && typeof promise2.then === "function") {
|
|
28851
|
-
return promise2.then(() =>
|
|
28861
|
+
return promise2.then(() => fn2());
|
|
28852
28862
|
}
|
|
28853
|
-
return
|
|
28863
|
+
return fn2();
|
|
28854
28864
|
}
|
|
28855
28865
|
_chainOrCallHooks(promise2, event) {
|
|
28856
28866
|
let result = promise2;
|
|
@@ -33114,7 +33124,7 @@ ${originalIndentation}`;
|
|
|
33114
33124
|
function requireStream$3() {
|
|
33115
33125
|
if (hasRequiredStream$3) return stream$3;
|
|
33116
33126
|
hasRequiredStream$3 = 1;
|
|
33117
|
-
stream$3 =
|
|
33127
|
+
stream$3 = Fo;
|
|
33118
33128
|
return stream$3;
|
|
33119
33129
|
}
|
|
33120
33130
|
var destroy_1;
|
|
@@ -34231,11 +34241,11 @@ ${originalIndentation}`;
|
|
|
34231
34241
|
Promise.resolve(value).then(_next, _throw);
|
|
34232
34242
|
}
|
|
34233
34243
|
}
|
|
34234
|
-
function _asyncToGenerator(
|
|
34244
|
+
function _asyncToGenerator(fn2) {
|
|
34235
34245
|
return function() {
|
|
34236
34246
|
var self2 = this, args2 = arguments;
|
|
34237
34247
|
return new Promise(function(resolve2, reject2) {
|
|
34238
|
-
var gen2 =
|
|
34248
|
+
var gen2 = fn2.apply(self2, args2);
|
|
34239
34249
|
function _next(value) {
|
|
34240
34250
|
asyncGeneratorStep(gen2, resolve2, reject2, _next, _throw, "next", value);
|
|
34241
34251
|
}
|
|
@@ -34386,12 +34396,12 @@ ${originalIndentation}`;
|
|
|
34386
34396
|
"pause",
|
|
34387
34397
|
"resume"
|
|
34388
34398
|
];
|
|
34389
|
-
function prependListener(emitter, event,
|
|
34390
|
-
if (typeof emitter.prependListener === "function") return emitter.prependListener(event,
|
|
34391
|
-
if (!emitter._events || !emitter._events[event]) emitter.on(event,
|
|
34392
|
-
else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(
|
|
34399
|
+
function prependListener(emitter, event, fn2) {
|
|
34400
|
+
if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn2);
|
|
34401
|
+
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn2);
|
|
34402
|
+
else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn2);
|
|
34393
34403
|
else emitter._events[event] = [
|
|
34394
|
-
|
|
34404
|
+
fn2,
|
|
34395
34405
|
emitter._events[event]
|
|
34396
34406
|
];
|
|
34397
34407
|
}
|
|
@@ -34844,8 +34854,8 @@ ${originalIndentation}`;
|
|
|
34844
34854
|
dest.emit("unpipe", this, unpipeInfo);
|
|
34845
34855
|
return this;
|
|
34846
34856
|
};
|
|
34847
|
-
Readable2.prototype.on = function(ev,
|
|
34848
|
-
var res = Stream.prototype.on.call(this, ev,
|
|
34857
|
+
Readable2.prototype.on = function(ev, fn2) {
|
|
34858
|
+
var res = Stream.prototype.on.call(this, ev, fn2);
|
|
34849
34859
|
var state2 = this._readableState;
|
|
34850
34860
|
if (ev === "data") {
|
|
34851
34861
|
state2.readableListening = this.listenerCount("readable") > 0;
|
|
@@ -34866,8 +34876,8 @@ ${originalIndentation}`;
|
|
|
34866
34876
|
return res;
|
|
34867
34877
|
};
|
|
34868
34878
|
Readable2.prototype.addListener = Readable2.prototype.on;
|
|
34869
|
-
Readable2.prototype.removeListener = function(ev,
|
|
34870
|
-
var res = Stream.prototype.removeListener.call(this, ev,
|
|
34879
|
+
Readable2.prototype.removeListener = function(ev, fn2) {
|
|
34880
|
+
var res = Stream.prototype.removeListener.call(this, ev, fn2);
|
|
34871
34881
|
if (ev === "readable") {
|
|
34872
34882
|
process.nextTick(updateReadableListening, this);
|
|
34873
34883
|
}
|
|
@@ -35903,10 +35913,10 @@ ${originalIndentation}`;
|
|
|
35903
35913
|
Object.defineProperty(exports$1, "__esModule", {
|
|
35904
35914
|
value: true
|
|
35905
35915
|
});
|
|
35906
|
-
exports$1.default = function(
|
|
35916
|
+
exports$1.default = function(fn2) {
|
|
35907
35917
|
return function(...args2) {
|
|
35908
35918
|
var callback = args2.pop();
|
|
35909
|
-
return
|
|
35919
|
+
return fn2.call(this, args2, callback);
|
|
35910
35920
|
};
|
|
35911
35921
|
};
|
|
35912
35922
|
module2.exports = exports$1.default;
|
|
@@ -35926,11 +35936,11 @@ ${originalIndentation}`;
|
|
|
35926
35936
|
var hasQueueMicrotask = setImmediate$2.hasQueueMicrotask = typeof queueMicrotask === "function" && queueMicrotask;
|
|
35927
35937
|
var hasSetImmediate = setImmediate$2.hasSetImmediate = typeof setImmediate === "function" && setImmediate;
|
|
35928
35938
|
var hasNextTick = setImmediate$2.hasNextTick = typeof process === "object" && typeof process.nextTick === "function";
|
|
35929
|
-
function fallback2(
|
|
35930
|
-
setTimeout(
|
|
35939
|
+
function fallback2(fn2) {
|
|
35940
|
+
setTimeout(fn2, 0);
|
|
35931
35941
|
}
|
|
35932
35942
|
function wrap(defer2) {
|
|
35933
|
-
return (
|
|
35943
|
+
return (fn2, ...args2) => defer2(() => fn2(...args2));
|
|
35934
35944
|
}
|
|
35935
35945
|
var _defer;
|
|
35936
35946
|
if (hasQueueMicrotask) {
|
|
@@ -36021,11 +36031,11 @@ ${originalIndentation}`;
|
|
|
36021
36031
|
default: obj
|
|
36022
36032
|
};
|
|
36023
36033
|
}
|
|
36024
|
-
function isAsync2(
|
|
36025
|
-
return
|
|
36034
|
+
function isAsync2(fn2) {
|
|
36035
|
+
return fn2[Symbol.toStringTag] === "AsyncFunction";
|
|
36026
36036
|
}
|
|
36027
|
-
function isAsyncGenerator(
|
|
36028
|
-
return
|
|
36037
|
+
function isAsyncGenerator(fn2) {
|
|
36038
|
+
return fn2[Symbol.toStringTag] === "AsyncGenerator";
|
|
36029
36039
|
}
|
|
36030
36040
|
function isAsyncIterable2(obj) {
|
|
36031
36041
|
return typeof obj[Symbol.asyncIterator] === "function";
|
|
@@ -36129,14 +36139,14 @@ ${originalIndentation}`;
|
|
|
36129
36139
|
value: true
|
|
36130
36140
|
});
|
|
36131
36141
|
exports$1.default = once2;
|
|
36132
|
-
function once2(
|
|
36142
|
+
function once2(fn2) {
|
|
36133
36143
|
function wrapper(...args2) {
|
|
36134
|
-
if (
|
|
36135
|
-
var callFn =
|
|
36136
|
-
|
|
36144
|
+
if (fn2 === null) return;
|
|
36145
|
+
var callFn = fn2;
|
|
36146
|
+
fn2 = null;
|
|
36137
36147
|
callFn.apply(this, args2);
|
|
36138
36148
|
}
|
|
36139
|
-
Object.assign(wrapper,
|
|
36149
|
+
Object.assign(wrapper, fn2);
|
|
36140
36150
|
return wrapper;
|
|
36141
36151
|
}
|
|
36142
36152
|
module2.exports = exports$1.default;
|
|
@@ -36242,11 +36252,11 @@ ${originalIndentation}`;
|
|
|
36242
36252
|
value: true
|
|
36243
36253
|
});
|
|
36244
36254
|
exports$1.default = onlyOnce2;
|
|
36245
|
-
function onlyOnce2(
|
|
36255
|
+
function onlyOnce2(fn2) {
|
|
36246
36256
|
return function(...args2) {
|
|
36247
|
-
if (
|
|
36248
|
-
var callFn =
|
|
36249
|
-
|
|
36257
|
+
if (fn2 === null) throw new Error("Callback was already called.");
|
|
36258
|
+
var callFn = fn2;
|
|
36259
|
+
fn2 = null;
|
|
36250
36260
|
callFn.apply(this, args2);
|
|
36251
36261
|
};
|
|
36252
36262
|
}
|
|
@@ -36663,8 +36673,8 @@ ${originalIndentation}`;
|
|
|
36663
36673
|
callback(err2 || new ERR_STREAM_DESTROYED("pipe"));
|
|
36664
36674
|
};
|
|
36665
36675
|
}
|
|
36666
|
-
function call(
|
|
36667
|
-
|
|
36676
|
+
function call(fn2) {
|
|
36677
|
+
fn2();
|
|
36668
36678
|
}
|
|
36669
36679
|
function pipe2(from2, to2) {
|
|
36670
36680
|
return from2.pipe(to2);
|
|
@@ -36705,7 +36715,7 @@ ${originalIndentation}`;
|
|
|
36705
36715
|
if (hasRequiredReadable$1) return readable$1.exports;
|
|
36706
36716
|
hasRequiredReadable$1 = 1;
|
|
36707
36717
|
(function(module2, exports$1) {
|
|
36708
|
-
var Stream =
|
|
36718
|
+
var Stream = Fo;
|
|
36709
36719
|
if (process.env.READABLE_STREAM === "disable" && Stream) {
|
|
36710
36720
|
module2.exports = Stream.Readable;
|
|
36711
36721
|
Object.assign(module2.exports, Stream);
|
|
@@ -36755,16 +36765,16 @@ ${originalIndentation}`;
|
|
|
36755
36765
|
}
|
|
36756
36766
|
if (!async2.length) return false;
|
|
36757
36767
|
return new Promise(function pinky(resolve2) {
|
|
36758
|
-
Promise.all(async2.map(function prebind(
|
|
36759
|
-
return
|
|
36768
|
+
Promise.all(async2.map(function prebind(fn2) {
|
|
36769
|
+
return fn2(namespace);
|
|
36760
36770
|
})).then(function resolved(values) {
|
|
36761
36771
|
resolve2(values.some(Boolean));
|
|
36762
36772
|
});
|
|
36763
36773
|
});
|
|
36764
36774
|
}
|
|
36765
|
-
function modify(
|
|
36766
|
-
if (~modifiers.indexOf(
|
|
36767
|
-
modifiers.push(
|
|
36775
|
+
function modify(fn2) {
|
|
36776
|
+
if (~modifiers.indexOf(fn2)) return false;
|
|
36777
|
+
modifiers.push(fn2);
|
|
36768
36778
|
return true;
|
|
36769
36779
|
}
|
|
36770
36780
|
function write() {
|
|
@@ -36776,14 +36786,14 @@ ${originalIndentation}`;
|
|
|
36776
36786
|
}
|
|
36777
36787
|
return message;
|
|
36778
36788
|
}
|
|
36779
|
-
function introduce(
|
|
36789
|
+
function introduce(fn2, options) {
|
|
36780
36790
|
var has2 = Object.prototype.hasOwnProperty;
|
|
36781
36791
|
for (var key2 in options) {
|
|
36782
36792
|
if (has2.call(options, key2)) {
|
|
36783
|
-
|
|
36793
|
+
fn2[key2] = options[key2];
|
|
36784
36794
|
}
|
|
36785
36795
|
}
|
|
36786
|
-
return
|
|
36796
|
+
return fn2;
|
|
36787
36797
|
}
|
|
36788
36798
|
function nope(options) {
|
|
36789
36799
|
options.enabled = false;
|
|
@@ -38838,15 +38848,15 @@ ${originalIndentation}`;
|
|
|
38838
38848
|
graph[toModel].parent,
|
|
38839
38849
|
toModel
|
|
38840
38850
|
];
|
|
38841
|
-
let
|
|
38851
|
+
let fn2 = convert$1[graph[toModel].parent][toModel];
|
|
38842
38852
|
let cur = graph[toModel].parent;
|
|
38843
38853
|
while (graph[cur].parent) {
|
|
38844
38854
|
path2.unshift(graph[cur].parent);
|
|
38845
|
-
|
|
38855
|
+
fn2 = link2(convert$1[graph[cur].parent][cur], fn2);
|
|
38846
38856
|
cur = graph[cur].parent;
|
|
38847
38857
|
}
|
|
38848
|
-
|
|
38849
|
-
return
|
|
38858
|
+
fn2.conversion = path2;
|
|
38859
|
+
return fn2;
|
|
38850
38860
|
}
|
|
38851
38861
|
function route2(fromModel) {
|
|
38852
38862
|
const graph = deriveBFS(fromModel);
|
|
@@ -38864,7 +38874,7 @@ ${originalIndentation}`;
|
|
|
38864
38874
|
}
|
|
38865
38875
|
const convert = {};
|
|
38866
38876
|
const models = Object.keys(convert$1);
|
|
38867
|
-
function wrapRaw(
|
|
38877
|
+
function wrapRaw(fn2) {
|
|
38868
38878
|
const wrappedFn = function(...args2) {
|
|
38869
38879
|
const arg0 = args2[0];
|
|
38870
38880
|
if (arg0 === void 0 || arg0 === null) {
|
|
@@ -38873,14 +38883,14 @@ ${originalIndentation}`;
|
|
|
38873
38883
|
if (arg0.length > 1) {
|
|
38874
38884
|
args2 = arg0;
|
|
38875
38885
|
}
|
|
38876
|
-
return
|
|
38886
|
+
return fn2(args2);
|
|
38877
38887
|
};
|
|
38878
|
-
if ("conversion" in
|
|
38879
|
-
wrappedFn.conversion =
|
|
38888
|
+
if ("conversion" in fn2) {
|
|
38889
|
+
wrappedFn.conversion = fn2.conversion;
|
|
38880
38890
|
}
|
|
38881
38891
|
return wrappedFn;
|
|
38882
38892
|
}
|
|
38883
|
-
function wrapRounded(
|
|
38893
|
+
function wrapRounded(fn2) {
|
|
38884
38894
|
const wrappedFn = function(...args2) {
|
|
38885
38895
|
const arg0 = args2[0];
|
|
38886
38896
|
if (arg0 === void 0 || arg0 === null) {
|
|
@@ -38889,7 +38899,7 @@ ${originalIndentation}`;
|
|
|
38889
38899
|
if (arg0.length > 1) {
|
|
38890
38900
|
args2 = arg0;
|
|
38891
38901
|
}
|
|
38892
|
-
const result =
|
|
38902
|
+
const result = fn2(args2);
|
|
38893
38903
|
if (typeof result === "object") {
|
|
38894
38904
|
for (let { length: length2 } = result, i2 = 0; i2 < length2; i2++) {
|
|
38895
38905
|
result[i2] = Math.round(result[i2]);
|
|
@@ -38897,8 +38907,8 @@ ${originalIndentation}`;
|
|
|
38897
38907
|
}
|
|
38898
38908
|
return result;
|
|
38899
38909
|
};
|
|
38900
|
-
if ("conversion" in
|
|
38901
|
-
wrappedFn.conversion =
|
|
38910
|
+
if ("conversion" in fn2) {
|
|
38911
|
+
wrappedFn.conversion = fn2.conversion;
|
|
38902
38912
|
}
|
|
38903
38913
|
return wrappedFn;
|
|
38904
38914
|
}
|
|
@@ -38913,9 +38923,9 @@ ${originalIndentation}`;
|
|
|
38913
38923
|
const routes = route2(fromModel);
|
|
38914
38924
|
const routeModels = Object.keys(routes);
|
|
38915
38925
|
for (const toModel of routeModels) {
|
|
38916
|
-
const
|
|
38917
|
-
convert[fromModel][toModel] = wrapRounded(
|
|
38918
|
-
convert[fromModel][toModel].raw = wrapRaw(
|
|
38926
|
+
const fn2 = routes[toModel];
|
|
38927
|
+
convert[fromModel][toModel] = wrapRounded(fn2);
|
|
38928
|
+
convert[fromModel][toModel].raw = wrapRaw(fn2);
|
|
38919
38929
|
}
|
|
38920
38930
|
}
|
|
38921
38931
|
const skippedModels = [
|
|
@@ -39438,10 +39448,10 @@ ${originalIndentation}`;
|
|
|
39438
39448
|
if (hasRequiredAdapters) return adapters;
|
|
39439
39449
|
hasRequiredAdapters = 1;
|
|
39440
39450
|
var enabled2 = requireEnabled();
|
|
39441
|
-
adapters = function create(
|
|
39451
|
+
adapters = function create(fn2) {
|
|
39442
39452
|
return function adapter(namespace) {
|
|
39443
39453
|
try {
|
|
39444
|
-
return enabled2(namespace,
|
|
39454
|
+
return enabled2(namespace, fn2());
|
|
39445
39455
|
} catch (e) {
|
|
39446
39456
|
}
|
|
39447
39457
|
return false;
|
|
@@ -39611,7 +39621,7 @@ ${originalIndentation}`;
|
|
|
39611
39621
|
const fs2 = fs__default$1;
|
|
39612
39622
|
const path2 = path__default$1;
|
|
39613
39623
|
const asyncSeries = requireSeries();
|
|
39614
|
-
const zlib =
|
|
39624
|
+
const zlib = Qi__default;
|
|
39615
39625
|
const { MESSAGE } = requireTripleBeam();
|
|
39616
39626
|
const { Stream, PassThrough: PassThrough2 } = requireReadable$1();
|
|
39617
39627
|
const TransportStream = requireWinstonTransport();
|
|
@@ -40480,14 +40490,14 @@ ${originalIndentation}`;
|
|
|
40480
40490
|
if (hasRequiredFn_name) return fn_name;
|
|
40481
40491
|
hasRequiredFn_name = 1;
|
|
40482
40492
|
var toString2 = Object.prototype.toString;
|
|
40483
|
-
fn_name = function name2(
|
|
40484
|
-
if ("string" === typeof
|
|
40485
|
-
return
|
|
40486
|
-
} else if ("string" === typeof
|
|
40487
|
-
return
|
|
40488
|
-
}
|
|
40489
|
-
if ("object" === typeof
|
|
40490
|
-
var named =
|
|
40493
|
+
fn_name = function name2(fn2) {
|
|
40494
|
+
if ("string" === typeof fn2.displayName && fn2.constructor.name) {
|
|
40495
|
+
return fn2.displayName;
|
|
40496
|
+
} else if ("string" === typeof fn2.name && fn2.name) {
|
|
40497
|
+
return fn2.name;
|
|
40498
|
+
}
|
|
40499
|
+
if ("object" === typeof fn2 && fn2.constructor && "string" === typeof fn2.constructor.name) return fn2.constructor.name;
|
|
40500
|
+
var named = fn2.toString(), type2 = toString2.call(fn2).slice(8, -1);
|
|
40491
40501
|
if ("Function" === type2) {
|
|
40492
40502
|
named = named.substring(named.indexOf("(") + 1, named.indexOf(")"));
|
|
40493
40503
|
} else {
|
|
@@ -40503,16 +40513,16 @@ ${originalIndentation}`;
|
|
|
40503
40513
|
if (hasRequiredOneTime) return oneTime;
|
|
40504
40514
|
hasRequiredOneTime = 1;
|
|
40505
40515
|
var name2 = requireFn_name();
|
|
40506
|
-
oneTime = function one(
|
|
40516
|
+
oneTime = function one(fn2) {
|
|
40507
40517
|
var called = 0, value;
|
|
40508
40518
|
function onetime2() {
|
|
40509
40519
|
if (called) return value;
|
|
40510
40520
|
called = 1;
|
|
40511
|
-
value =
|
|
40512
|
-
|
|
40521
|
+
value = fn2.apply(this, arguments);
|
|
40522
|
+
fn2 = null;
|
|
40513
40523
|
return value;
|
|
40514
40524
|
}
|
|
40515
|
-
onetime2.displayName = name2(
|
|
40525
|
+
onetime2.displayName = name2(fn2);
|
|
40516
40526
|
return onetime2;
|
|
40517
40527
|
};
|
|
40518
40528
|
return oneTime;
|
|
@@ -41822,18 +41832,18 @@ ${originalIndentation}`;
|
|
|
41822
41832
|
write("string:" + string2.length + ":");
|
|
41823
41833
|
write(string2.toString());
|
|
41824
41834
|
},
|
|
41825
|
-
_function: function(
|
|
41835
|
+
_function: function(fn2) {
|
|
41826
41836
|
write("fn:");
|
|
41827
|
-
if (isNativeFunction(
|
|
41837
|
+
if (isNativeFunction(fn2)) {
|
|
41828
41838
|
this.dispatch("[native]");
|
|
41829
41839
|
} else {
|
|
41830
|
-
this.dispatch(
|
|
41840
|
+
this.dispatch(fn2.toString());
|
|
41831
41841
|
}
|
|
41832
41842
|
if (options.respectFunctionNames !== false) {
|
|
41833
|
-
this.dispatch("function-name:" + String(
|
|
41843
|
+
this.dispatch("function-name:" + String(fn2.name));
|
|
41834
41844
|
}
|
|
41835
41845
|
if (options.respectFunctionProperties) {
|
|
41836
|
-
this._object(
|
|
41846
|
+
this._object(fn2);
|
|
41837
41847
|
}
|
|
41838
41848
|
},
|
|
41839
41849
|
_number: function(number2) {
|
|
@@ -42033,10 +42043,10 @@ ${originalIndentation}`;
|
|
|
42033
42043
|
function isDate$2(input2) {
|
|
42034
42044
|
return input2 instanceof Date || Object.prototype.toString.call(input2) === "[object Date]";
|
|
42035
42045
|
}
|
|
42036
|
-
function map$a(arr2,
|
|
42046
|
+
function map$a(arr2, fn2) {
|
|
42037
42047
|
var res = [], i2, arrLen = arr2.length;
|
|
42038
42048
|
for (i2 = 0; i2 < arrLen; ++i2) {
|
|
42039
|
-
res.push(
|
|
42049
|
+
res.push(fn2(arr2[i2], i2));
|
|
42040
42050
|
}
|
|
42041
42051
|
return res;
|
|
42042
42052
|
}
|
|
@@ -42189,7 +42199,7 @@ ${originalIndentation}`;
|
|
|
42189
42199
|
console.warn("Deprecation warning: " + msg);
|
|
42190
42200
|
}
|
|
42191
42201
|
}
|
|
42192
|
-
function deprecate(msg,
|
|
42202
|
+
function deprecate(msg, fn2) {
|
|
42193
42203
|
var firstTime2 = true;
|
|
42194
42204
|
return extend$1(function() {
|
|
42195
42205
|
if (hooks.deprecationHandler != null) {
|
|
@@ -42215,8 +42225,8 @@ ${originalIndentation}`;
|
|
|
42215
42225
|
warn(msg + "\nArguments: " + Array.prototype.slice.call(args2).join("") + "\n" + new Error().stack);
|
|
42216
42226
|
firstTime2 = false;
|
|
42217
42227
|
}
|
|
42218
|
-
return
|
|
42219
|
-
},
|
|
42228
|
+
return fn2.apply(this, arguments);
|
|
42229
|
+
}, fn2);
|
|
42220
42230
|
}
|
|
42221
42231
|
var deprecations = {};
|
|
42222
42232
|
function deprecateSimple(name2, msg) {
|
|
@@ -44249,7 +44259,7 @@ ${originalIndentation}`;
|
|
|
44249
44259
|
return createInvalid();
|
|
44250
44260
|
}
|
|
44251
44261
|
});
|
|
44252
|
-
function pickBy(
|
|
44262
|
+
function pickBy(fn2, moments) {
|
|
44253
44263
|
var res, i2;
|
|
44254
44264
|
if (moments.length === 1 && isArray$1(moments[0])) {
|
|
44255
44265
|
moments = moments[0];
|
|
@@ -44259,7 +44269,7 @@ ${originalIndentation}`;
|
|
|
44259
44269
|
}
|
|
44260
44270
|
res = moments[0];
|
|
44261
44271
|
for (i2 = 1; i2 < moments.length; ++i2) {
|
|
44262
|
-
if (!moments[i2].isValid() || moments[i2][
|
|
44272
|
+
if (!moments[i2].isValid() || moments[i2][fn2](res)) {
|
|
44263
44273
|
res = moments[i2];
|
|
44264
44274
|
}
|
|
44265
44275
|
}
|
|
@@ -46548,10 +46558,10 @@ ${originalIndentation}`;
|
|
|
46548
46558
|
const os2 = os__default$1;
|
|
46549
46559
|
const path2 = path__default$1;
|
|
46550
46560
|
const util2 = require$$0$5;
|
|
46551
|
-
const zlib =
|
|
46561
|
+
const zlib = Qi__default;
|
|
46552
46562
|
const hash2 = requireObjectHash();
|
|
46553
46563
|
const MESSAGE = requireTripleBeam().MESSAGE;
|
|
46554
|
-
const PassThrough2 =
|
|
46564
|
+
const PassThrough2 = Fo.PassThrough;
|
|
46555
46565
|
const Transport = requireWinstonTransport();
|
|
46556
46566
|
const loggerDefaults = {
|
|
46557
46567
|
json: false,
|
|
@@ -47003,7 +47013,7 @@ ${value.slice(value.length - safeTailChars)}`;
|
|
|
47003
47013
|
return files;
|
|
47004
47014
|
}
|
|
47005
47015
|
async function readDailyLogFile(file2) {
|
|
47006
|
-
const raw2 = await
|
|
47016
|
+
const raw2 = await fn__default.readFile(file2.path);
|
|
47007
47017
|
if (!file2.compressed) return raw2.toString("utf8");
|
|
47008
47018
|
return (await gunzip(raw2)).toString("utf8");
|
|
47009
47019
|
}
|
|
@@ -47287,8 +47297,8 @@ ${info.stack}`;
|
|
|
47287
47297
|
const CLEANUP_TIMEOUT_MS = 5e3;
|
|
47288
47298
|
let handlersRegistered = false;
|
|
47289
47299
|
let processCleanupFn = null;
|
|
47290
|
-
function registerProcessCleanup(
|
|
47291
|
-
processCleanupFn =
|
|
47300
|
+
function registerProcessCleanup(fn2) {
|
|
47301
|
+
processCleanupFn = fn2;
|
|
47292
47302
|
}
|
|
47293
47303
|
function unregisterProcessCleanup() {
|
|
47294
47304
|
processCleanupFn = null;
|
|
@@ -47498,12 +47508,12 @@ ${fromBody}`;
|
|
|
47498
47508
|
configurable: false
|
|
47499
47509
|
});
|
|
47500
47510
|
}
|
|
47501
|
-
on(ev,
|
|
47502
|
-
this.listeners[ev].push(
|
|
47511
|
+
on(ev, fn2) {
|
|
47512
|
+
this.listeners[ev].push(fn2);
|
|
47503
47513
|
}
|
|
47504
|
-
removeListener(ev,
|
|
47514
|
+
removeListener(ev, fn2) {
|
|
47505
47515
|
const list2 = this.listeners[ev];
|
|
47506
|
-
const i2 = list2.indexOf(
|
|
47516
|
+
const i2 = list2.indexOf(fn2);
|
|
47507
47517
|
if (i2 === -1) {
|
|
47508
47518
|
return;
|
|
47509
47519
|
}
|
|
@@ -47519,8 +47529,8 @@ ${fromBody}`;
|
|
|
47519
47529
|
}
|
|
47520
47530
|
this.emitted[ev] = true;
|
|
47521
47531
|
let ret = false;
|
|
47522
|
-
for (const
|
|
47523
|
-
ret =
|
|
47532
|
+
for (const fn2 of this.listeners[ev]) {
|
|
47533
|
+
ret = fn2(code2, signal) === true || ret;
|
|
47524
47534
|
}
|
|
47525
47535
|
if (ev === "exit") {
|
|
47526
47536
|
ret = this.emit("afterExit", code2, signal) || ret;
|
|
@@ -47609,8 +47619,8 @@ ${fromBody}`;
|
|
|
47609
47619
|
this.#emitter.count += 1;
|
|
47610
47620
|
for (const sig of signals$2) {
|
|
47611
47621
|
try {
|
|
47612
|
-
const
|
|
47613
|
-
if (
|
|
47622
|
+
const fn2 = this.#sigListeners[sig];
|
|
47623
|
+
if (fn2) this.#process.on(sig, fn2);
|
|
47614
47624
|
} catch (_2) {
|
|
47615
47625
|
}
|
|
47616
47626
|
}
|
|
@@ -50229,9 +50239,9 @@ ${fromBody}`;
|
|
|
50229
50239
|
error: null,
|
|
50230
50240
|
isPending: true,
|
|
50231
50241
|
isRefetching: false,
|
|
50232
|
-
refetch: (queryParams) =>
|
|
50242
|
+
refetch: (queryParams) => fn2(queryParams)
|
|
50233
50243
|
});
|
|
50234
|
-
const
|
|
50244
|
+
const fn2 = async (queryParams) => {
|
|
50235
50245
|
return new Promise((resolve2) => {
|
|
50236
50246
|
const opts = typeof options === "function" ? options({
|
|
50237
50247
|
data: value.get().data,
|
|
@@ -50299,11 +50309,11 @@ ${fromBody}`;
|
|
|
50299
50309
|
let isMounted = false;
|
|
50300
50310
|
for (const initAtom of initializedAtom) initAtom.subscribe(async () => {
|
|
50301
50311
|
if (isServer()) return;
|
|
50302
|
-
if (isMounted) await
|
|
50312
|
+
if (isMounted) await fn2();
|
|
50303
50313
|
else onMount(value, () => {
|
|
50304
50314
|
const timeoutId = setTimeout(async () => {
|
|
50305
50315
|
if (!isMounted) {
|
|
50306
|
-
await
|
|
50316
|
+
await fn2();
|
|
50307
50317
|
isMounted = true;
|
|
50308
50318
|
}
|
|
50309
50319
|
}, 0);
|
|
@@ -62613,8 +62623,8 @@ ${this.stack.split("\n").slice(1).join("\n")}` : this.toString();
|
|
|
62613
62623
|
const forEachParUnbounded = (self2, f, batching) => suspend$1(() => {
|
|
62614
62624
|
const as2 = fromIterable$6(self2);
|
|
62615
62625
|
const array2 = new Array(as2.length);
|
|
62616
|
-
const
|
|
62617
|
-
return zipRight(forEachConcurrentDiscard(as2,
|
|
62626
|
+
const fn2 = (a, i2) => flatMap$4(f(a, i2), (b) => sync$1(() => array2[i2] = b));
|
|
62627
|
+
return zipRight(forEachConcurrentDiscard(as2, fn2, batching, false), succeed$2(array2));
|
|
62618
62628
|
});
|
|
62619
62629
|
const forEachConcurrentDiscard = (self2, f, batching, processAll, n) => uninterruptibleMask$1((restore) => transplant((graft) => withFiberRuntime((parent) => {
|
|
62620
62630
|
let todos = Array.from(self2).reverse();
|
|
@@ -62771,8 +62781,8 @@ ${this.stack.split("\n").slice(1).join("\n")}` : this.toString();
|
|
|
62771
62781
|
const forEachParN = (self2, n, f, batching) => suspend$1(() => {
|
|
62772
62782
|
const as2 = fromIterable$6(self2);
|
|
62773
62783
|
const array2 = new Array(as2.length);
|
|
62774
|
-
const
|
|
62775
|
-
return zipRight(forEachConcurrentDiscard(as2,
|
|
62784
|
+
const fn2 = (a, i2) => map$4(f(a, i2), (b) => array2[i2] = b);
|
|
62785
|
+
return zipRight(forEachConcurrentDiscard(as2, fn2, batching, false, n), succeed$2(array2));
|
|
62776
62786
|
});
|
|
62777
62787
|
const forkDaemon = (self2) => forkWithScopeOverride(self2, globalScope);
|
|
62778
62788
|
const unsafeFork$1 = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
|
|
@@ -68474,7 +68484,7 @@ ${peerId}`;
|
|
|
68474
68484
|
function requirePermessageDeflate$1() {
|
|
68475
68485
|
if (hasRequiredPermessageDeflate$1) return permessageDeflate$1;
|
|
68476
68486
|
hasRequiredPermessageDeflate$1 = 1;
|
|
68477
|
-
const zlib =
|
|
68487
|
+
const zlib = Qi__default;
|
|
68478
68488
|
const bufferUtil2 = requireBufferUtil();
|
|
68479
68489
|
const Limiter = requireLimiter();
|
|
68480
68490
|
const { kStatusCode } = requireConstants$5();
|
|
@@ -68929,7 +68939,7 @@ ${peerId}`;
|
|
|
68929
68939
|
function requireReceiver$1() {
|
|
68930
68940
|
if (hasRequiredReceiver$1) return receiver$1;
|
|
68931
68941
|
hasRequiredReceiver$1 = 1;
|
|
68932
|
-
const { Writable } =
|
|
68942
|
+
const { Writable } = Fo;
|
|
68933
68943
|
const PerMessageDeflate = requirePermessageDeflate$1();
|
|
68934
68944
|
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = requireConstants$5();
|
|
68935
68945
|
const { concat: concat2, toArrayBuffer: toArrayBuffer2, unmask } = requireBufferUtil();
|
|
@@ -69296,7 +69306,7 @@ ${peerId}`;
|
|
|
69296
69306
|
function requireSender$1() {
|
|
69297
69307
|
if (hasRequiredSender$1) return sender$1;
|
|
69298
69308
|
hasRequiredSender$1 = 1;
|
|
69299
|
-
const { Duplex } =
|
|
69309
|
+
const { Duplex } = Fo;
|
|
69300
69310
|
const { randomFillSync: randomFillSync2 } = crypto__default;
|
|
69301
69311
|
const PerMessageDeflate = requirePermessageDeflate$1();
|
|
69302
69312
|
const { EMPTY_BUFFER, kWebSocket, NOOP } = requireConstants$5();
|
|
@@ -70033,7 +70043,7 @@ ${peerId}`;
|
|
|
70033
70043
|
const net2 = require$$0$a;
|
|
70034
70044
|
const tls = require$$4$2;
|
|
70035
70045
|
const { randomBytes: randomBytes2, createHash: createHash2 } = crypto__default;
|
|
70036
|
-
const { Duplex, Readable: Readable2 } =
|
|
70046
|
+
const { Duplex, Readable: Readable2 } = Fo;
|
|
70037
70047
|
const { URL: URL2 } = require$$7$2;
|
|
70038
70048
|
const PerMessageDeflate = requirePermessageDeflate$1();
|
|
70039
70049
|
const Receiver = requireReceiver$1();
|
|
@@ -70771,7 +70781,7 @@ ${peerId}`;
|
|
|
70771
70781
|
if (hasRequiredStream$1) return stream$1;
|
|
70772
70782
|
hasRequiredStream$1 = 1;
|
|
70773
70783
|
requireWebsocket$1();
|
|
70774
|
-
const { Duplex } =
|
|
70784
|
+
const { Duplex } = Fo;
|
|
70775
70785
|
function emitClose(stream2) {
|
|
70776
70786
|
stream2.emit("close");
|
|
70777
70787
|
}
|
|
@@ -70922,7 +70932,7 @@ ${peerId}`;
|
|
|
70922
70932
|
hasRequiredWebsocketServer = 1;
|
|
70923
70933
|
const EventEmitter2 = require$$0$7;
|
|
70924
70934
|
const http$12 = http;
|
|
70925
|
-
const { Duplex } =
|
|
70935
|
+
const { Duplex } = Fo;
|
|
70926
70936
|
const { createHash: createHash2 } = crypto__default;
|
|
70927
70937
|
const extension2 = requireExtension();
|
|
70928
70938
|
const PerMessageDeflate = requirePermessageDeflate$1();
|
|
@@ -73616,7 +73626,7 @@ ${val.stack}`;
|
|
|
73616
73626
|
}
|
|
73617
73627
|
const defaultEventBatcherRuntime = {
|
|
73618
73628
|
now: () => Date.now(),
|
|
73619
|
-
setTimeout: (
|
|
73629
|
+
setTimeout: (fn2, ms2) => setTimeout(fn2, ms2),
|
|
73620
73630
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
73621
73631
|
};
|
|
73622
73632
|
function nowForIncrementalExport() {
|
|
@@ -101372,14 +101382,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
101372
101382
|
webidl.brandCheck(this, FileReader);
|
|
101373
101383
|
return this[kEvents].loadend;
|
|
101374
101384
|
}
|
|
101375
|
-
set onloadend(
|
|
101385
|
+
set onloadend(fn2) {
|
|
101376
101386
|
webidl.brandCheck(this, FileReader);
|
|
101377
101387
|
if (this[kEvents].loadend) {
|
|
101378
101388
|
this.removeEventListener("loadend", this[kEvents].loadend);
|
|
101379
101389
|
}
|
|
101380
|
-
if (typeof
|
|
101381
|
-
this[kEvents].loadend =
|
|
101382
|
-
this.addEventListener("loadend",
|
|
101390
|
+
if (typeof fn2 === "function") {
|
|
101391
|
+
this[kEvents].loadend = fn2;
|
|
101392
|
+
this.addEventListener("loadend", fn2);
|
|
101383
101393
|
} else {
|
|
101384
101394
|
this[kEvents].loadend = null;
|
|
101385
101395
|
}
|
|
@@ -101388,14 +101398,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
101388
101398
|
webidl.brandCheck(this, FileReader);
|
|
101389
101399
|
return this[kEvents].error;
|
|
101390
101400
|
}
|
|
101391
|
-
set onerror(
|
|
101401
|
+
set onerror(fn2) {
|
|
101392
101402
|
webidl.brandCheck(this, FileReader);
|
|
101393
101403
|
if (this[kEvents].error) {
|
|
101394
101404
|
this.removeEventListener("error", this[kEvents].error);
|
|
101395
101405
|
}
|
|
101396
|
-
if (typeof
|
|
101397
|
-
this[kEvents].error =
|
|
101398
|
-
this.addEventListener("error",
|
|
101406
|
+
if (typeof fn2 === "function") {
|
|
101407
|
+
this[kEvents].error = fn2;
|
|
101408
|
+
this.addEventListener("error", fn2);
|
|
101399
101409
|
} else {
|
|
101400
101410
|
this[kEvents].error = null;
|
|
101401
101411
|
}
|
|
@@ -101404,14 +101414,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
101404
101414
|
webidl.brandCheck(this, FileReader);
|
|
101405
101415
|
return this[kEvents].loadstart;
|
|
101406
101416
|
}
|
|
101407
|
-
set onloadstart(
|
|
101417
|
+
set onloadstart(fn2) {
|
|
101408
101418
|
webidl.brandCheck(this, FileReader);
|
|
101409
101419
|
if (this[kEvents].loadstart) {
|
|
101410
101420
|
this.removeEventListener("loadstart", this[kEvents].loadstart);
|
|
101411
101421
|
}
|
|
101412
|
-
if (typeof
|
|
101413
|
-
this[kEvents].loadstart =
|
|
101414
|
-
this.addEventListener("loadstart",
|
|
101422
|
+
if (typeof fn2 === "function") {
|
|
101423
|
+
this[kEvents].loadstart = fn2;
|
|
101424
|
+
this.addEventListener("loadstart", fn2);
|
|
101415
101425
|
} else {
|
|
101416
101426
|
this[kEvents].loadstart = null;
|
|
101417
101427
|
}
|
|
@@ -101420,14 +101430,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
101420
101430
|
webidl.brandCheck(this, FileReader);
|
|
101421
101431
|
return this[kEvents].progress;
|
|
101422
101432
|
}
|
|
101423
|
-
set onprogress(
|
|
101433
|
+
set onprogress(fn2) {
|
|
101424
101434
|
webidl.brandCheck(this, FileReader);
|
|
101425
101435
|
if (this[kEvents].progress) {
|
|
101426
101436
|
this.removeEventListener("progress", this[kEvents].progress);
|
|
101427
101437
|
}
|
|
101428
|
-
if (typeof
|
|
101429
|
-
this[kEvents].progress =
|
|
101430
|
-
this.addEventListener("progress",
|
|
101438
|
+
if (typeof fn2 === "function") {
|
|
101439
|
+
this[kEvents].progress = fn2;
|
|
101440
|
+
this.addEventListener("progress", fn2);
|
|
101431
101441
|
} else {
|
|
101432
101442
|
this[kEvents].progress = null;
|
|
101433
101443
|
}
|
|
@@ -101436,14 +101446,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
101436
101446
|
webidl.brandCheck(this, FileReader);
|
|
101437
101447
|
return this[kEvents].load;
|
|
101438
101448
|
}
|
|
101439
|
-
set onload(
|
|
101449
|
+
set onload(fn2) {
|
|
101440
101450
|
webidl.brandCheck(this, FileReader);
|
|
101441
101451
|
if (this[kEvents].load) {
|
|
101442
101452
|
this.removeEventListener("load", this[kEvents].load);
|
|
101443
101453
|
}
|
|
101444
|
-
if (typeof
|
|
101445
|
-
this[kEvents].load =
|
|
101446
|
-
this.addEventListener("load",
|
|
101454
|
+
if (typeof fn2 === "function") {
|
|
101455
|
+
this[kEvents].load = fn2;
|
|
101456
|
+
this.addEventListener("load", fn2);
|
|
101447
101457
|
} else {
|
|
101448
101458
|
this[kEvents].load = null;
|
|
101449
101459
|
}
|
|
@@ -101452,14 +101462,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
101452
101462
|
webidl.brandCheck(this, FileReader);
|
|
101453
101463
|
return this[kEvents].abort;
|
|
101454
101464
|
}
|
|
101455
|
-
set onabort(
|
|
101465
|
+
set onabort(fn2) {
|
|
101456
101466
|
webidl.brandCheck(this, FileReader);
|
|
101457
101467
|
if (this[kEvents].abort) {
|
|
101458
101468
|
this.removeEventListener("abort", this[kEvents].abort);
|
|
101459
101469
|
}
|
|
101460
|
-
if (typeof
|
|
101461
|
-
this[kEvents].abort =
|
|
101462
|
-
this.addEventListener("abort",
|
|
101470
|
+
if (typeof fn2 === "function") {
|
|
101471
|
+
this[kEvents].abort = fn2;
|
|
101472
|
+
this.addEventListener("abort", fn2);
|
|
101463
101473
|
} else {
|
|
101464
101474
|
this[kEvents].abort = null;
|
|
101465
101475
|
}
|
|
@@ -103978,14 +103988,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
103978
103988
|
webidl.brandCheck(this, WebSocket2);
|
|
103979
103989
|
return this.#events.open;
|
|
103980
103990
|
}
|
|
103981
|
-
set onopen(
|
|
103991
|
+
set onopen(fn2) {
|
|
103982
103992
|
webidl.brandCheck(this, WebSocket2);
|
|
103983
103993
|
if (this.#events.open) {
|
|
103984
103994
|
this.removeEventListener("open", this.#events.open);
|
|
103985
103995
|
}
|
|
103986
|
-
if (typeof
|
|
103987
|
-
this.#events.open =
|
|
103988
|
-
this.addEventListener("open",
|
|
103996
|
+
if (typeof fn2 === "function") {
|
|
103997
|
+
this.#events.open = fn2;
|
|
103998
|
+
this.addEventListener("open", fn2);
|
|
103989
103999
|
} else {
|
|
103990
104000
|
this.#events.open = null;
|
|
103991
104001
|
}
|
|
@@ -103994,14 +104004,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
103994
104004
|
webidl.brandCheck(this, WebSocket2);
|
|
103995
104005
|
return this.#events.error;
|
|
103996
104006
|
}
|
|
103997
|
-
set onerror(
|
|
104007
|
+
set onerror(fn2) {
|
|
103998
104008
|
webidl.brandCheck(this, WebSocket2);
|
|
103999
104009
|
if (this.#events.error) {
|
|
104000
104010
|
this.removeEventListener("error", this.#events.error);
|
|
104001
104011
|
}
|
|
104002
|
-
if (typeof
|
|
104003
|
-
this.#events.error =
|
|
104004
|
-
this.addEventListener("error",
|
|
104012
|
+
if (typeof fn2 === "function") {
|
|
104013
|
+
this.#events.error = fn2;
|
|
104014
|
+
this.addEventListener("error", fn2);
|
|
104005
104015
|
} else {
|
|
104006
104016
|
this.#events.error = null;
|
|
104007
104017
|
}
|
|
@@ -104010,14 +104020,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
104010
104020
|
webidl.brandCheck(this, WebSocket2);
|
|
104011
104021
|
return this.#events.close;
|
|
104012
104022
|
}
|
|
104013
|
-
set onclose(
|
|
104023
|
+
set onclose(fn2) {
|
|
104014
104024
|
webidl.brandCheck(this, WebSocket2);
|
|
104015
104025
|
if (this.#events.close) {
|
|
104016
104026
|
this.removeEventListener("close", this.#events.close);
|
|
104017
104027
|
}
|
|
104018
|
-
if (typeof
|
|
104019
|
-
this.#events.close =
|
|
104020
|
-
this.addEventListener("close",
|
|
104028
|
+
if (typeof fn2 === "function") {
|
|
104029
|
+
this.#events.close = fn2;
|
|
104030
|
+
this.addEventListener("close", fn2);
|
|
104021
104031
|
} else {
|
|
104022
104032
|
this.#events.close = null;
|
|
104023
104033
|
}
|
|
@@ -104026,14 +104036,14 @@ ${pendingInterceptorsFormatter2.format(pending2)}
|
|
|
104026
104036
|
webidl.brandCheck(this, WebSocket2);
|
|
104027
104037
|
return this.#events.message;
|
|
104028
104038
|
}
|
|
104029
|
-
set onmessage(
|
|
104039
|
+
set onmessage(fn2) {
|
|
104030
104040
|
webidl.brandCheck(this, WebSocket2);
|
|
104031
104041
|
if (this.#events.message) {
|
|
104032
104042
|
this.removeEventListener("message", this.#events.message);
|
|
104033
104043
|
}
|
|
104034
|
-
if (typeof
|
|
104035
|
-
this.#events.message =
|
|
104036
|
-
this.addEventListener("message",
|
|
104044
|
+
if (typeof fn2 === "function") {
|
|
104045
|
+
this.#events.message = fn2;
|
|
104046
|
+
this.addEventListener("message", fn2);
|
|
104037
104047
|
} else {
|
|
104038
104048
|
this.#events.message = null;
|
|
104039
104049
|
}
|
|
@@ -104579,13 +104589,13 @@ ${value}`;
|
|
|
104579
104589
|
get onopen() {
|
|
104580
104590
|
return this.#events.open;
|
|
104581
104591
|
}
|
|
104582
|
-
set onopen(
|
|
104592
|
+
set onopen(fn2) {
|
|
104583
104593
|
if (this.#events.open) {
|
|
104584
104594
|
this.removeEventListener("open", this.#events.open);
|
|
104585
104595
|
}
|
|
104586
|
-
if (typeof
|
|
104587
|
-
this.#events.open =
|
|
104588
|
-
this.addEventListener("open",
|
|
104596
|
+
if (typeof fn2 === "function") {
|
|
104597
|
+
this.#events.open = fn2;
|
|
104598
|
+
this.addEventListener("open", fn2);
|
|
104589
104599
|
} else {
|
|
104590
104600
|
this.#events.open = null;
|
|
104591
104601
|
}
|
|
@@ -104593,13 +104603,13 @@ ${value}`;
|
|
|
104593
104603
|
get onmessage() {
|
|
104594
104604
|
return this.#events.message;
|
|
104595
104605
|
}
|
|
104596
|
-
set onmessage(
|
|
104606
|
+
set onmessage(fn2) {
|
|
104597
104607
|
if (this.#events.message) {
|
|
104598
104608
|
this.removeEventListener("message", this.#events.message);
|
|
104599
104609
|
}
|
|
104600
|
-
if (typeof
|
|
104601
|
-
this.#events.message =
|
|
104602
|
-
this.addEventListener("message",
|
|
104610
|
+
if (typeof fn2 === "function") {
|
|
104611
|
+
this.#events.message = fn2;
|
|
104612
|
+
this.addEventListener("message", fn2);
|
|
104603
104613
|
} else {
|
|
104604
104614
|
this.#events.message = null;
|
|
104605
104615
|
}
|
|
@@ -104607,13 +104617,13 @@ ${value}`;
|
|
|
104607
104617
|
get onerror() {
|
|
104608
104618
|
return this.#events.error;
|
|
104609
104619
|
}
|
|
104610
|
-
set onerror(
|
|
104620
|
+
set onerror(fn2) {
|
|
104611
104621
|
if (this.#events.error) {
|
|
104612
104622
|
this.removeEventListener("error", this.#events.error);
|
|
104613
104623
|
}
|
|
104614
|
-
if (typeof
|
|
104615
|
-
this.#events.error =
|
|
104616
|
-
this.addEventListener("error",
|
|
104624
|
+
if (typeof fn2 === "function") {
|
|
104625
|
+
this.#events.error = fn2;
|
|
104626
|
+
this.addEventListener("error", fn2);
|
|
104617
104627
|
} else {
|
|
104618
104628
|
this.#events.error = null;
|
|
104619
104629
|
}
|
|
@@ -104721,7 +104731,7 @@ ${value}`;
|
|
|
104721
104731
|
parseHeaders: util2.parseHeaders,
|
|
104722
104732
|
headerNameToString: util2.headerNameToString
|
|
104723
104733
|
};
|
|
104724
|
-
function makeDispatcher(
|
|
104734
|
+
function makeDispatcher(fn2) {
|
|
104725
104735
|
return (url, opts, handler) => {
|
|
104726
104736
|
if (typeof opts === "function") {
|
|
104727
104737
|
handler = opts;
|
|
@@ -104752,7 +104762,7 @@ ${value}`;
|
|
|
104752
104762
|
if (agent2) {
|
|
104753
104763
|
throw new InvalidArgumentError2("unsupported opts.agent. Did you mean opts.client?");
|
|
104754
104764
|
}
|
|
104755
|
-
return
|
|
104765
|
+
return fn2.call(dispatcher2, {
|
|
104756
104766
|
...opts,
|
|
104757
104767
|
origin: url.origin,
|
|
104758
104768
|
path: url.search ? `${url.pathname}${url.search}` : url.pathname,
|
|
@@ -107350,8 +107360,8 @@ ${value}`;
|
|
|
107350
107360
|
setTransportStatus(status) {
|
|
107351
107361
|
this.connectionRecovery.setTransportStatus(status);
|
|
107352
107362
|
}
|
|
107353
|
-
runRemoteTransportOp(
|
|
107354
|
-
const run2 = this.remoteTransportOpQueue.then(
|
|
107363
|
+
runRemoteTransportOp(fn2) {
|
|
107364
|
+
const run2 = this.remoteTransportOpQueue.then(fn2, fn2);
|
|
107355
107365
|
this.remoteTransportOpQueue = run2.then(() => void 0, () => void 0);
|
|
107356
107366
|
return run2;
|
|
107357
107367
|
}
|
|
@@ -112759,8 +112769,8 @@ ${value}`;
|
|
|
112759
112769
|
const SIGNAL = Symbol("signal");
|
|
112760
112770
|
const DATALISTENERS = Symbol("dataListeners");
|
|
112761
112771
|
const DISCARDED = Symbol("discarded");
|
|
112762
|
-
const defer$1 = (
|
|
112763
|
-
const nodefer = (
|
|
112772
|
+
const defer$1 = (fn2) => Promise.resolve().then(fn2);
|
|
112773
|
+
const nodefer = (fn2) => fn2();
|
|
112764
112774
|
const isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
|
|
112765
112775
|
const isArrayBufferLike = (b) => b instanceof ArrayBuffer || !!b && typeof b === "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0;
|
|
112766
112776
|
const isArrayBufferView = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b);
|
|
@@ -112907,7 +112917,7 @@ ${value}`;
|
|
|
112907
112917
|
encoding2 = "utf8";
|
|
112908
112918
|
}
|
|
112909
112919
|
if (!encoding2) encoding2 = "utf8";
|
|
112910
|
-
const
|
|
112920
|
+
const fn2 = this[ASYNC] ? defer$1 : nodefer;
|
|
112911
112921
|
if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
|
|
112912
112922
|
if (isArrayBufferView(chunk)) {
|
|
112913
112923
|
chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
@@ -112922,12 +112932,12 @@ ${value}`;
|
|
|
112922
112932
|
if (this[FLOWING]) this.emit("data", chunk);
|
|
112923
112933
|
else this[BUFFERPUSH](chunk);
|
|
112924
112934
|
if (this[BUFFERLENGTH] !== 0) this.emit("readable");
|
|
112925
|
-
if (cb)
|
|
112935
|
+
if (cb) fn2(cb);
|
|
112926
112936
|
return this[FLOWING];
|
|
112927
112937
|
}
|
|
112928
112938
|
if (!chunk.length) {
|
|
112929
112939
|
if (this[BUFFERLENGTH] !== 0) this.emit("readable");
|
|
112930
|
-
if (cb)
|
|
112940
|
+
if (cb) fn2(cb);
|
|
112931
112941
|
return this[FLOWING];
|
|
112932
112942
|
}
|
|
112933
112943
|
if (typeof chunk === "string" && !(encoding2 === this[ENCODING] && !this[DECODER]?.lastNeed)) {
|
|
@@ -112940,7 +112950,7 @@ ${value}`;
|
|
|
112940
112950
|
if (this[FLOWING]) this.emit("data", chunk);
|
|
112941
112951
|
else this[BUFFERPUSH](chunk);
|
|
112942
112952
|
if (this[BUFFERLENGTH] !== 0) this.emit("readable");
|
|
112943
|
-
if (cb)
|
|
112953
|
+
if (cb) fn2(cb);
|
|
112944
112954
|
return this[FLOWING];
|
|
112945
112955
|
}
|
|
112946
112956
|
read(n) {
|
|
@@ -113871,7 +113881,7 @@ ${value}`;
|
|
|
113871
113881
|
validate: validate2
|
|
113872
113882
|
});
|
|
113873
113883
|
};
|
|
113874
|
-
const realZlibConstants =
|
|
113884
|
+
const realZlibConstants = Qi__default.constants || {
|
|
113875
113885
|
ZLIB_VERNUM: 4736
|
|
113876
113886
|
};
|
|
113877
113887
|
const constants = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
@@ -114031,11 +114041,11 @@ ${value}`;
|
|
|
114031
114041
|
this.#flushFlag = opts.flush ?? 0;
|
|
114032
114042
|
this.#finishFlushFlag = opts.finishFlush ?? 0;
|
|
114033
114043
|
this.#fullFlushFlag = opts.fullFlushFlag ?? 0;
|
|
114034
|
-
if (typeof
|
|
114044
|
+
if (typeof Qi[mode2] !== "function") {
|
|
114035
114045
|
throw new TypeError("Compression method not supported: " + mode2);
|
|
114036
114046
|
}
|
|
114037
114047
|
try {
|
|
114038
|
-
this.#handle = new
|
|
114048
|
+
this.#handle = new Qi[mode2](opts);
|
|
114039
114049
|
} catch (er) {
|
|
114040
114050
|
throw new ZlibError(er, this.constructor);
|
|
114041
114051
|
}
|
|
@@ -116198,17 +116208,17 @@ ${value}`;
|
|
|
116198
116208
|
this.length--;
|
|
116199
116209
|
return res;
|
|
116200
116210
|
}
|
|
116201
|
-
forEach(
|
|
116211
|
+
forEach(fn2, thisp) {
|
|
116202
116212
|
thisp = thisp || this;
|
|
116203
116213
|
for (let walker = this.head, i2 = 0; !!walker; i2++) {
|
|
116204
|
-
|
|
116214
|
+
fn2.call(thisp, walker.value, i2, this);
|
|
116205
116215
|
walker = walker.next;
|
|
116206
116216
|
}
|
|
116207
116217
|
}
|
|
116208
|
-
forEachReverse(
|
|
116218
|
+
forEachReverse(fn2, thisp) {
|
|
116209
116219
|
thisp = thisp || this;
|
|
116210
116220
|
for (let walker = this.tail, i2 = this.length - 1; !!walker; i2--) {
|
|
116211
|
-
|
|
116221
|
+
fn2.call(thisp, walker.value, i2, this);
|
|
116212
116222
|
walker = walker.prev;
|
|
116213
116223
|
}
|
|
116214
116224
|
}
|
|
@@ -116232,25 +116242,25 @@ ${value}`;
|
|
|
116232
116242
|
return walker.value;
|
|
116233
116243
|
}
|
|
116234
116244
|
}
|
|
116235
|
-
map(
|
|
116245
|
+
map(fn2, thisp) {
|
|
116236
116246
|
thisp = thisp || this;
|
|
116237
116247
|
const res = new Yallist();
|
|
116238
116248
|
for (let walker = this.head; !!walker; ) {
|
|
116239
|
-
res.push(
|
|
116249
|
+
res.push(fn2.call(thisp, walker.value, this));
|
|
116240
116250
|
walker = walker.next;
|
|
116241
116251
|
}
|
|
116242
116252
|
return res;
|
|
116243
116253
|
}
|
|
116244
|
-
mapReverse(
|
|
116254
|
+
mapReverse(fn2, thisp) {
|
|
116245
116255
|
thisp = thisp || this;
|
|
116246
116256
|
var res = new Yallist();
|
|
116247
116257
|
for (let walker = this.tail; !!walker; ) {
|
|
116248
|
-
res.push(
|
|
116258
|
+
res.push(fn2.call(thisp, walker.value, this));
|
|
116249
116259
|
walker = walker.prev;
|
|
116250
116260
|
}
|
|
116251
116261
|
return res;
|
|
116252
116262
|
}
|
|
116253
|
-
reduce(
|
|
116263
|
+
reduce(fn2, initial) {
|
|
116254
116264
|
let acc;
|
|
116255
116265
|
let walker = this.head;
|
|
116256
116266
|
if (arguments.length > 1) {
|
|
@@ -116262,12 +116272,12 @@ ${value}`;
|
|
|
116262
116272
|
throw new TypeError("Reduce of empty list with no initial value");
|
|
116263
116273
|
}
|
|
116264
116274
|
for (var i2 = 0; !!walker; i2++) {
|
|
116265
|
-
acc =
|
|
116275
|
+
acc = fn2(acc, walker.value, i2);
|
|
116266
116276
|
walker = walker.next;
|
|
116267
116277
|
}
|
|
116268
116278
|
return acc;
|
|
116269
116279
|
}
|
|
116270
|
-
reduceReverse(
|
|
116280
|
+
reduceReverse(fn2, initial) {
|
|
116271
116281
|
let acc;
|
|
116272
116282
|
let walker = this.tail;
|
|
116273
116283
|
if (arguments.length > 1) {
|
|
@@ -116279,7 +116289,7 @@ ${value}`;
|
|
|
116279
116289
|
throw new TypeError("Reduce of empty list with no initial value");
|
|
116280
116290
|
}
|
|
116281
116291
|
for (let i2 = this.length - 1; !!walker; i2--) {
|
|
116282
|
-
acc =
|
|
116292
|
+
acc = fn2(acc, walker.value, i2);
|
|
116283
116293
|
walker = walker.prev;
|
|
116284
116294
|
}
|
|
116285
116295
|
return acc;
|
|
@@ -117050,7 +117060,7 @@ ${value}`;
|
|
|
117050
117060
|
return checkCwd(dir, done2);
|
|
117051
117061
|
}
|
|
117052
117062
|
if (preserve) {
|
|
117053
|
-
return
|
|
117063
|
+
return fn__default.mkdir(dir, {
|
|
117054
117064
|
mode: mode2,
|
|
117055
117065
|
recursive: true
|
|
117056
117066
|
}).then((made) => done2(null, made ?? void 0), done2);
|
|
@@ -117197,14 +117207,14 @@ ${value}`;
|
|
|
117197
117207
|
#queues = /* @__PURE__ */ new Map();
|
|
117198
117208
|
#reservations = /* @__PURE__ */ new Map();
|
|
117199
117209
|
#running = /* @__PURE__ */ new Set();
|
|
117200
|
-
reserve(paths,
|
|
117210
|
+
reserve(paths, fn2) {
|
|
117201
117211
|
paths = isWindows$1 ? [
|
|
117202
117212
|
"win32 parallelization disabled"
|
|
117203
117213
|
] : paths.map((p) => {
|
|
117204
117214
|
return stripTrailingSlashes(join$2(normalizeUnicode(p)));
|
|
117205
117215
|
});
|
|
117206
117216
|
const dirs = new Set(paths.map((path2) => getDirs(path2)).reduce((a, b) => a.concat(b)));
|
|
117207
|
-
this.#reservations.set(
|
|
117217
|
+
this.#reservations.set(fn2, {
|
|
117208
117218
|
dirs,
|
|
117209
117219
|
paths
|
|
117210
117220
|
});
|
|
@@ -117212,10 +117222,10 @@ ${value}`;
|
|
|
117212
117222
|
const q = this.#queues.get(p);
|
|
117213
117223
|
if (!q) {
|
|
117214
117224
|
this.#queues.set(p, [
|
|
117215
|
-
|
|
117225
|
+
fn2
|
|
117216
117226
|
]);
|
|
117217
117227
|
} else {
|
|
117218
|
-
q.push(
|
|
117228
|
+
q.push(fn2);
|
|
117219
117229
|
}
|
|
117220
117230
|
}
|
|
117221
117231
|
for (const dir of dirs) {
|
|
@@ -117223,24 +117233,24 @@ ${value}`;
|
|
|
117223
117233
|
if (!q) {
|
|
117224
117234
|
this.#queues.set(dir, [
|
|
117225
117235
|
/* @__PURE__ */ new Set([
|
|
117226
|
-
|
|
117236
|
+
fn2
|
|
117227
117237
|
])
|
|
117228
117238
|
]);
|
|
117229
117239
|
} else {
|
|
117230
117240
|
const l = q[q.length - 1];
|
|
117231
117241
|
if (l instanceof Set) {
|
|
117232
|
-
l.add(
|
|
117242
|
+
l.add(fn2);
|
|
117233
117243
|
} else {
|
|
117234
117244
|
q.push(/* @__PURE__ */ new Set([
|
|
117235
|
-
|
|
117245
|
+
fn2
|
|
117236
117246
|
]));
|
|
117237
117247
|
}
|
|
117238
117248
|
}
|
|
117239
117249
|
}
|
|
117240
|
-
return this.#run(
|
|
117250
|
+
return this.#run(fn2);
|
|
117241
117251
|
}
|
|
117242
|
-
#getQueues(
|
|
117243
|
-
const res = this.#reservations.get(
|
|
117252
|
+
#getQueues(fn2) {
|
|
117253
|
+
const res = this.#reservations.get(fn2);
|
|
117244
117254
|
if (!res) {
|
|
117245
117255
|
throw new Error("function does not have any path reservations");
|
|
117246
117256
|
}
|
|
@@ -117251,23 +117261,23 @@ ${value}`;
|
|
|
117251
117261
|
].map((path2) => this.#queues.get(path2))
|
|
117252
117262
|
};
|
|
117253
117263
|
}
|
|
117254
|
-
check(
|
|
117255
|
-
const { paths, dirs } = this.#getQueues(
|
|
117256
|
-
return paths.every((q) => q && q[0] ===
|
|
117264
|
+
check(fn2) {
|
|
117265
|
+
const { paths, dirs } = this.#getQueues(fn2);
|
|
117266
|
+
return paths.every((q) => q && q[0] === fn2) && dirs.every((q) => q && q[0] instanceof Set && q[0].has(fn2));
|
|
117257
117267
|
}
|
|
117258
|
-
#run(
|
|
117259
|
-
if (this.#running.has(
|
|
117268
|
+
#run(fn2) {
|
|
117269
|
+
if (this.#running.has(fn2) || !this.check(fn2)) {
|
|
117260
117270
|
return false;
|
|
117261
117271
|
}
|
|
117262
|
-
this.#running.add(
|
|
117263
|
-
|
|
117272
|
+
this.#running.add(fn2);
|
|
117273
|
+
fn2(() => this.#clear(fn2));
|
|
117264
117274
|
return true;
|
|
117265
117275
|
}
|
|
117266
|
-
#clear(
|
|
117267
|
-
if (!this.#running.has(
|
|
117276
|
+
#clear(fn2) {
|
|
117277
|
+
if (!this.#running.has(fn2)) {
|
|
117268
117278
|
return false;
|
|
117269
117279
|
}
|
|
117270
|
-
const res = this.#reservations.get(
|
|
117280
|
+
const res = this.#reservations.get(fn2);
|
|
117271
117281
|
if (!res) {
|
|
117272
117282
|
throw new Error("invalid reservation");
|
|
117273
117283
|
}
|
|
@@ -117275,7 +117285,7 @@ ${value}`;
|
|
|
117275
117285
|
const next2 = /* @__PURE__ */ new Set();
|
|
117276
117286
|
for (const path2 of paths) {
|
|
117277
117287
|
const q = this.#queues.get(path2);
|
|
117278
|
-
if (!q || q?.[0] !==
|
|
117288
|
+
if (!q || q?.[0] !== fn2) {
|
|
117279
117289
|
continue;
|
|
117280
117290
|
}
|
|
117281
117291
|
const q0 = q[1];
|
|
@@ -117306,11 +117316,11 @@ ${value}`;
|
|
|
117306
117316
|
next2.add(n);
|
|
117307
117317
|
}
|
|
117308
117318
|
} else {
|
|
117309
|
-
q0.delete(
|
|
117319
|
+
q0.delete(fn2);
|
|
117310
117320
|
}
|
|
117311
117321
|
}
|
|
117312
|
-
this.#running.delete(
|
|
117313
|
-
next2.forEach((
|
|
117322
|
+
this.#running.delete(fn2);
|
|
117323
|
+
next2.forEach((fn3) => this.#run(fn3));
|
|
117314
117324
|
return true;
|
|
117315
117325
|
}
|
|
117316
117326
|
}
|
|
@@ -117829,11 +117839,11 @@ ${value}`;
|
|
|
117829
117839
|
});
|
|
117830
117840
|
}
|
|
117831
117841
|
}
|
|
117832
|
-
const callSync = (
|
|
117842
|
+
const callSync = (fn2) => {
|
|
117833
117843
|
try {
|
|
117834
117844
|
return [
|
|
117835
117845
|
null,
|
|
117836
|
-
|
|
117846
|
+
fn2()
|
|
117837
117847
|
];
|
|
117838
117848
|
} catch (er) {
|
|
117839
117849
|
return [
|
|
@@ -118510,7 +118520,7 @@ ${value}`;
|
|
|
118510
118520
|
}
|
|
118511
118521
|
const version$8 = "1.12.0";
|
|
118512
118522
|
const dependencies$1 = {
|
|
118513
|
-
"@openai/codex": "^0.
|
|
118523
|
+
"@openai/codex": "^0.156.0"
|
|
118514
118524
|
};
|
|
118515
118525
|
const codexPackageJson = {
|
|
118516
118526
|
version: version$8,
|
|
@@ -118520,99 +118530,99 @@ ${value}`;
|
|
|
118520
118530
|
const grokPackageJson = {
|
|
118521
118531
|
version: version$7
|
|
118522
118532
|
};
|
|
118523
|
-
const version$6 = "2.1.
|
|
118533
|
+
const version$6 = "2.1.280";
|
|
118524
118534
|
const platforms = {
|
|
118525
118535
|
"darwin-arm64": {
|
|
118526
118536
|
"binary": "claude",
|
|
118527
|
-
"checksum": "
|
|
118528
|
-
"size":
|
|
118537
|
+
"checksum": "387a5c5dcdbb815085edf0baf79591f9d8894efe922bceaf3d75b1b08055229d",
|
|
118538
|
+
"size": 217254576
|
|
118529
118539
|
},
|
|
118530
118540
|
"darwin-x64": {
|
|
118531
118541
|
"binary": "claude",
|
|
118532
|
-
"checksum": "
|
|
118533
|
-
"size":
|
|
118542
|
+
"checksum": "c1d32d87630482250633208ab77855429b24010ae3086a7ff7539b57b93168d4",
|
|
118543
|
+
"size": 225565024
|
|
118534
118544
|
},
|
|
118535
118545
|
"linux-arm64": {
|
|
118536
118546
|
"binary": "claude",
|
|
118537
|
-
"checksum": "
|
|
118538
|
-
"size":
|
|
118547
|
+
"checksum": "92f2b4fd05d0bdcf7b9a0d4e0ecef4a1e4b368b290cd8fd07cff9a50013f45a2",
|
|
118548
|
+
"size": 233103352
|
|
118539
118549
|
},
|
|
118540
118550
|
"linux-x64": {
|
|
118541
118551
|
"binary": "claude",
|
|
118542
|
-
"checksum": "
|
|
118543
|
-
"size":
|
|
118552
|
+
"checksum": "1e08503dbdf3c2cb0d706d32f3408277388d1c76ef108673e8fe42c1b322925b",
|
|
118553
|
+
"size": 233709640
|
|
118544
118554
|
},
|
|
118545
118555
|
"linux-arm64-musl": {
|
|
118546
118556
|
"binary": "claude",
|
|
118547
|
-
"checksum": "
|
|
118548
|
-
"size":
|
|
118557
|
+
"checksum": "6a9f349dccd1c74ab854f1877c5ebdf074998571d0177e26c1f7f46f29e0f971",
|
|
118558
|
+
"size": 225457992
|
|
118549
118559
|
},
|
|
118550
118560
|
"linux-x64-musl": {
|
|
118551
118561
|
"binary": "claude",
|
|
118552
|
-
"checksum": "
|
|
118553
|
-
"size":
|
|
118562
|
+
"checksum": "8d25ffbf600882d7b985706cc10ea45995060637ed009b5700b65e162bb00b96",
|
|
118563
|
+
"size": 227467360
|
|
118554
118564
|
},
|
|
118555
118565
|
"win32-x64": {
|
|
118556
118566
|
"binary": "claude.exe",
|
|
118557
|
-
"checksum": "
|
|
118558
|
-
"size":
|
|
118567
|
+
"checksum": "0e4195524b73eb77efbdf3e2b36de5322a29f0ca575dfd2d9b4f946b1d425469",
|
|
118568
|
+
"size": 237100192
|
|
118559
118569
|
},
|
|
118560
118570
|
"win32-arm64": {
|
|
118561
118571
|
"binary": "claude.exe",
|
|
118562
|
-
"checksum": "
|
|
118563
|
-
"size":
|
|
118572
|
+
"checksum": "f49980314f4c0418079979723ffd6c0d00d57e60b26fd95c53e53155ed913bdf",
|
|
118573
|
+
"size": 225107104
|
|
118564
118574
|
}
|
|
118565
118575
|
};
|
|
118566
118576
|
const claudeSdkManifestJson = {
|
|
118567
118577
|
version: version$6,
|
|
118568
118578
|
platforms
|
|
118569
118579
|
};
|
|
118570
|
-
const version$5 = "0.3.
|
|
118580
|
+
const version$5 = "0.3.280";
|
|
118571
118581
|
const claudeSdkPackageJson = {
|
|
118572
118582
|
version: version$5
|
|
118573
118583
|
};
|
|
118574
|
-
const sdkVersion = "0.3.
|
|
118575
|
-
const version$4 = "2.1.
|
|
118584
|
+
const sdkVersion = "0.3.280";
|
|
118585
|
+
const version$4 = "2.1.280";
|
|
118576
118586
|
const artifacts$1 = {
|
|
118577
118587
|
"darwin-arm64": {
|
|
118578
|
-
"fileName": "anthropic-ai-claude-agent-sdk-darwin-arm64-0.3.
|
|
118579
|
-
"sha256": "
|
|
118580
|
-
"size":
|
|
118588
|
+
"fileName": "anthropic-ai-claude-agent-sdk-darwin-arm64-0.3.280.tar.zst",
|
|
118589
|
+
"sha256": "a2ed8b79ca1d1280c0cb5af8deb426b65e43cbd188a256569beb02fbada27e72",
|
|
118590
|
+
"size": 80991764
|
|
118581
118591
|
},
|
|
118582
118592
|
"darwin-x64": {
|
|
118583
|
-
"fileName": "anthropic-ai-claude-agent-sdk-darwin-x64-0.3.
|
|
118584
|
-
"sha256": "
|
|
118585
|
-
"size":
|
|
118593
|
+
"fileName": "anthropic-ai-claude-agent-sdk-darwin-x64-0.3.280.tar.zst",
|
|
118594
|
+
"sha256": "6182a22a324571084e546832a276f84591176e6f4e9ae955b58f3cc425df1a99",
|
|
118595
|
+
"size": 84857570
|
|
118586
118596
|
},
|
|
118587
118597
|
"linux-arm64": {
|
|
118588
|
-
"fileName": "anthropic-ai-claude-agent-sdk-linux-arm64-0.3.
|
|
118589
|
-
"sha256": "
|
|
118590
|
-
"size":
|
|
118598
|
+
"fileName": "anthropic-ai-claude-agent-sdk-linux-arm64-0.3.280.tar.zst",
|
|
118599
|
+
"sha256": "cfdc8c2da8ca69c297cdb6ad77f6087f3ead81e508d67da2e148b03689dc2c38",
|
|
118600
|
+
"size": 90776198
|
|
118591
118601
|
},
|
|
118592
118602
|
"linux-x64": {
|
|
118593
|
-
"fileName": "anthropic-ai-claude-agent-sdk-linux-x64-0.3.
|
|
118594
|
-
"sha256": "
|
|
118595
|
-
"size":
|
|
118603
|
+
"fileName": "anthropic-ai-claude-agent-sdk-linux-x64-0.3.280.tar.zst",
|
|
118604
|
+
"sha256": "f8756699fb81cf1c06549a877fce3b91dc91c0a51112325e0f47f1b730fe622e",
|
|
118605
|
+
"size": 90945187
|
|
118596
118606
|
},
|
|
118597
118607
|
"linux-arm64-musl": {
|
|
118598
|
-
"fileName": "anthropic-ai-claude-agent-sdk-linux-arm64-musl-0.3.
|
|
118599
|
-
"sha256": "
|
|
118600
|
-
"size":
|
|
118608
|
+
"fileName": "anthropic-ai-claude-agent-sdk-linux-arm64-musl-0.3.280.tar.zst",
|
|
118609
|
+
"sha256": "bcae045fe4f0bf4f38e84dd94409827b1ded50da4f49daeb7bdcbad313af02f8",
|
|
118610
|
+
"size": 88919816
|
|
118601
118611
|
},
|
|
118602
118612
|
"linux-x64-musl": {
|
|
118603
|
-
"fileName": "anthropic-ai-claude-agent-sdk-linux-x64-musl-0.3.
|
|
118604
|
-
"sha256": "
|
|
118605
|
-
"size":
|
|
118613
|
+
"fileName": "anthropic-ai-claude-agent-sdk-linux-x64-musl-0.3.280.tar.zst",
|
|
118614
|
+
"sha256": "d6e6e896509cb8e59403044f9263bf0bb0e2b53f02c12f03c0cc562110fb8c53",
|
|
118615
|
+
"size": 89194591
|
|
118606
118616
|
},
|
|
118607
118617
|
"win32-arm64": {
|
|
118608
|
-
"fileName": "anthropic-ai-claude-agent-sdk-win32-arm64-0.3.
|
|
118609
|
-
"sha256": "
|
|
118610
|
-
"size":
|
|
118618
|
+
"fileName": "anthropic-ai-claude-agent-sdk-win32-arm64-0.3.280.tar.zst",
|
|
118619
|
+
"sha256": "71a6d8165a253e3bd22c26451e2b264c9f262a594193933d861b868c893e945b",
|
|
118620
|
+
"size": 90339333
|
|
118611
118621
|
},
|
|
118612
118622
|
"win32-x64": {
|
|
118613
|
-
"fileName": "anthropic-ai-claude-agent-sdk-win32-x64-0.3.
|
|
118614
|
-
"sha256": "
|
|
118615
|
-
"size":
|
|
118623
|
+
"fileName": "anthropic-ai-claude-agent-sdk-win32-x64-0.3.280.tar.zst",
|
|
118624
|
+
"sha256": "92fe12ca4402847d4debffa105f35f293592547fce348beacd60138c5f15add3",
|
|
118625
|
+
"size": 93764293
|
|
118616
118626
|
}
|
|
118617
118627
|
};
|
|
118618
118628
|
const claudeRuntimeManifestJson = {
|
|
@@ -118620,49 +118630,49 @@ ${value}`;
|
|
|
118620
118630
|
version: version$4,
|
|
118621
118631
|
artifacts: artifacts$1
|
|
118622
118632
|
};
|
|
118623
|
-
const version$3 = "0.
|
|
118633
|
+
const version$3 = "0.156.0";
|
|
118624
118634
|
const artifacts = {
|
|
118625
118635
|
"darwin-arm64": {
|
|
118626
118636
|
"fileName": "codex-package-aarch64-apple-darwin.tar.zst",
|
|
118627
|
-
"sha256": "
|
|
118628
|
-
"size":
|
|
118637
|
+
"sha256": "27a4c6ad8d63ab0988eb2a6699fb092d999b78845c75edad1eef674064a026de",
|
|
118638
|
+
"size": 91943742
|
|
118629
118639
|
},
|
|
118630
118640
|
"darwin-x64": {
|
|
118631
118641
|
"fileName": "codex-package-x86_64-apple-darwin.tar.zst",
|
|
118632
|
-
"sha256": "
|
|
118633
|
-
"size":
|
|
118642
|
+
"sha256": "545de467983f6d1fa1ee67266b0df4fcdd864bf1e8681254ee3691a48ea296fd",
|
|
118643
|
+
"size": 101404952
|
|
118634
118644
|
},
|
|
118635
118645
|
"linux-arm64": {
|
|
118636
118646
|
"fileName": "codex-package-aarch64-unknown-linux-musl.tar.zst",
|
|
118637
|
-
"sha256": "
|
|
118638
|
-
"size":
|
|
118647
|
+
"sha256": "cb2573ebaa76503f763cf2ac858219114c69a2000961ca14330e5a4a9ebd734f",
|
|
118648
|
+
"size": 100178344
|
|
118639
118649
|
},
|
|
118640
118650
|
"linux-x64": {
|
|
118641
118651
|
"fileName": "codex-package-x86_64-unknown-linux-musl.tar.zst",
|
|
118642
|
-
"sha256": "
|
|
118643
|
-
"size":
|
|
118652
|
+
"sha256": "30933220521da2a9eef5ca7be5cbb215edcb088835d0a55ba7488168da5b341f",
|
|
118653
|
+
"size": 106005443
|
|
118644
118654
|
},
|
|
118645
118655
|
"win32-arm64": {
|
|
118646
118656
|
"fileName": "codex-package-aarch64-pc-windows-msvc.tar.zst",
|
|
118647
|
-
"sha256": "
|
|
118648
|
-
"size":
|
|
118657
|
+
"sha256": "3041dfb02eff1f8e68bbbcc7603534b02ee0bb55b7b93bdd522b12dc3e12162f",
|
|
118658
|
+
"size": 106301619
|
|
118649
118659
|
},
|
|
118650
118660
|
"win32-x64": {
|
|
118651
118661
|
"fileName": "codex-package-x86_64-pc-windows-msvc.tar.zst",
|
|
118652
|
-
"sha256": "
|
|
118653
|
-
"size":
|
|
118662
|
+
"sha256": "887cc9593dbb59b3122afe4c8520c32e633ab644d685c95bcba23e115e56fcaf",
|
|
118663
|
+
"size": 115013735
|
|
118654
118664
|
}
|
|
118655
118665
|
};
|
|
118656
118666
|
const codexRuntimeManifestJson = {
|
|
118657
118667
|
version: version$3,
|
|
118658
118668
|
artifacts
|
|
118659
118669
|
};
|
|
118660
|
-
const version$2 = "2.0.
|
|
118670
|
+
const version$2 = "2.0.2-lody.d4caf044fe0c";
|
|
118661
118671
|
const minNodeVersion$1 = "22.19.0";
|
|
118662
118672
|
const artifact$1 = {
|
|
118663
|
-
"fileName": "lody-kimi-code-2.0.
|
|
118664
|
-
"sha256": "
|
|
118665
|
-
"size":
|
|
118673
|
+
"fileName": "lody-kimi-code-2.0.2-lody.d4caf044fe0c-9815b2b309f842e7.tar.zst",
|
|
118674
|
+
"sha256": "9815b2b309f842e7880385555c46bc80f77a802190c9e733398d3143272f686a",
|
|
118675
|
+
"size": 3251372,
|
|
118666
118676
|
"compression": "zstd",
|
|
118667
118677
|
"cmd": "package/dist/main.mjs"
|
|
118668
118678
|
};
|
|
@@ -118671,12 +118681,12 @@ ${value}`;
|
|
|
118671
118681
|
minNodeVersion: minNodeVersion$1,
|
|
118672
118682
|
artifact: artifact$1
|
|
118673
118683
|
};
|
|
118674
|
-
const version$1 = "0.
|
|
118684
|
+
const version$1 = "0.2.0-lody.e6debc2f6aac";
|
|
118675
118685
|
const minNodeVersion = "22.19.0";
|
|
118676
118686
|
const artifact = {
|
|
118677
|
-
"fileName": "lody-pi-0.
|
|
118678
|
-
"sha256": "
|
|
118679
|
-
"size":
|
|
118687
|
+
"fileName": "lody-pi-0.2.0-lody.e6debc2f6aac-0942748a1ca3b6d6.tar.zst",
|
|
118688
|
+
"sha256": "0942748a1ca3b6d6eb083ef4ed6717f07838b2479f8dfb7e913f47efe58ce4f2",
|
|
118689
|
+
"size": 37201691,
|
|
118680
118690
|
"compression": "zstd",
|
|
118681
118691
|
"cmd": "package/dist/index.js"
|
|
118682
118692
|
};
|
|
@@ -118911,57 +118921,57 @@ ${value}`;
|
|
|
118911
118921
|
platforms: {
|
|
118912
118922
|
"darwin-arm64": {
|
|
118913
118923
|
fileName: `xai-official-grok-darwin-arm64-${GROK_BUILD_RUNTIME_VERSION}.tar.zst`,
|
|
118914
|
-
sha256: "
|
|
118915
|
-
size:
|
|
118924
|
+
sha256: "15c99e54532904f452a58717f1cf19de94030c56b904976b351356bd709068f2",
|
|
118925
|
+
size: 51521118,
|
|
118916
118926
|
compression: "zstd",
|
|
118917
118927
|
cmd: "grok",
|
|
118918
|
-
executableSha256: "
|
|
118919
|
-
executableSize:
|
|
118928
|
+
executableSha256: "3f2aef9618191a2c60d18a5044fa462c9c77bdc4187b02ed716b0394e8d4fef2",
|
|
118929
|
+
executableSize: 145308720
|
|
118920
118930
|
},
|
|
118921
118931
|
"darwin-x64": {
|
|
118922
118932
|
fileName: `xai-official-grok-darwin-x64-${GROK_BUILD_RUNTIME_VERSION}.tar.zst`,
|
|
118923
|
-
sha256: "
|
|
118924
|
-
size:
|
|
118933
|
+
sha256: "dacf51b674037e273faf1b75b7be54667cf47a84a827958bf813c9fb25fa3f4e",
|
|
118934
|
+
size: 56521318,
|
|
118925
118935
|
compression: "zstd",
|
|
118926
118936
|
cmd: "grok",
|
|
118927
|
-
executableSha256: "
|
|
118928
|
-
executableSize:
|
|
118937
|
+
executableSha256: "ccac66f3a6778a39f3a19e95c82254b2482349a6ded68ed8d2f8df5c26e2d939",
|
|
118938
|
+
executableSize: 162677920
|
|
118929
118939
|
},
|
|
118930
118940
|
"linux-arm64": {
|
|
118931
118941
|
fileName: `xai-official-grok-linux-arm64-${GROK_BUILD_RUNTIME_VERSION}.tar.zst`,
|
|
118932
|
-
sha256: "
|
|
118933
|
-
size:
|
|
118942
|
+
sha256: "d544e3452ec8a3d0dd3ff9d852350828aa4935dd101ffd8f2481521a9acbb55b",
|
|
118943
|
+
size: 53769611,
|
|
118934
118944
|
compression: "zstd",
|
|
118935
118945
|
cmd: "grok",
|
|
118936
|
-
executableSha256: "
|
|
118937
|
-
executableSize:
|
|
118946
|
+
executableSha256: "a16d26cf06892ebb3eca9a702c65e031a053431ed4dde3b23bebc58a92b6117f",
|
|
118947
|
+
executableSize: 138263464
|
|
118938
118948
|
},
|
|
118939
118949
|
"linux-x64": {
|
|
118940
118950
|
fileName: `xai-official-grok-linux-x64-${GROK_BUILD_RUNTIME_VERSION}.tar.zst`,
|
|
118941
|
-
sha256: "
|
|
118942
|
-
size:
|
|
118951
|
+
sha256: "129b5ca9646ae014fd572f7ee4ebe812d9881549a4fb0a705c8aad59b2f1cb45",
|
|
118952
|
+
size: 56793870,
|
|
118943
118953
|
compression: "zstd",
|
|
118944
118954
|
cmd: "grok",
|
|
118945
|
-
executableSha256: "
|
|
118946
|
-
executableSize:
|
|
118955
|
+
executableSha256: "92c997dfd109c0672d40d5ae6fbd15835d53ffaf12cf9ea124d22aaef3ff23fc",
|
|
118956
|
+
executableSize: 165587968
|
|
118947
118957
|
},
|
|
118948
118958
|
"win32-arm64": {
|
|
118949
118959
|
fileName: `xai-official-grok-win32-arm64-${GROK_BUILD_RUNTIME_VERSION}.tar.zst`,
|
|
118950
|
-
sha256: "
|
|
118951
|
-
size:
|
|
118960
|
+
sha256: "5742bad3f4f52b7011180f5b7b7137e1f6887336486f6ecc3cc9cf96dcf1488c",
|
|
118961
|
+
size: 50197344,
|
|
118952
118962
|
compression: "zstd",
|
|
118953
118963
|
cmd: "grok.exe",
|
|
118954
|
-
executableSha256: "
|
|
118955
|
-
executableSize:
|
|
118964
|
+
executableSha256: "86cb5aac59cfd21f26b77e1caa6b804b9058a8ce1ea9d072631df5d06f62ae15",
|
|
118965
|
+
executableSize: 132932096
|
|
118956
118966
|
},
|
|
118957
118967
|
"win32-x64": {
|
|
118958
118968
|
fileName: `xai-official-grok-win32-x64-${GROK_BUILD_RUNTIME_VERSION}.tar.zst`,
|
|
118959
|
-
sha256: "
|
|
118960
|
-
size:
|
|
118969
|
+
sha256: "f7a2a162c64dbf4a1aa1d505bb12967e6c97c9974a0a9eecbd4eee318f468772",
|
|
118970
|
+
size: 53535773,
|
|
118961
118971
|
compression: "zstd",
|
|
118962
118972
|
cmd: "grok.exe",
|
|
118963
|
-
executableSha256: "
|
|
118964
|
-
executableSize:
|
|
118973
|
+
executableSha256: "be64017f7f5f5b85cd10b59eebcb596af8d3dcde077aad08aa8eae8defdc5e2a",
|
|
118974
|
+
executableSize: 153720832
|
|
118965
118975
|
}
|
|
118966
118976
|
}
|
|
118967
118977
|
}
|
|
@@ -119183,7 +119193,7 @@ ${value}`;
|
|
|
119183
119193
|
const installation = await this.readInstallation(name2, definition.version, platformArch);
|
|
119184
119194
|
if (!installation) return null;
|
|
119185
119195
|
if (installation.metadata.command !== archive.cmd || installation.metadata.archiveSha256 !== archive.sha256 || installation.metadata.archiveSize !== archive.size || installation.metadata.minNodeVersion !== definition.minNodeVersion) {
|
|
119186
|
-
|
|
119196
|
+
return null;
|
|
119187
119197
|
}
|
|
119188
119198
|
return installation;
|
|
119189
119199
|
}
|
|
@@ -119275,9 +119285,13 @@ ${value}`;
|
|
|
119275
119285
|
async listAvailableUpdates() {
|
|
119276
119286
|
const updates = [];
|
|
119277
119287
|
for (const name2 of MANAGED_RUNTIME_NAMES) {
|
|
119278
|
-
|
|
119279
|
-
|
|
119280
|
-
|
|
119288
|
+
try {
|
|
119289
|
+
const status = await this.getRuntimeStatus(name2);
|
|
119290
|
+
if (status.kind === "installed" && status.updateAvailable) {
|
|
119291
|
+
updates.push(name2);
|
|
119292
|
+
}
|
|
119293
|
+
} catch (error2) {
|
|
119294
|
+
this.warnCacheMaintenanceFailure(name2, "update scan", error2);
|
|
119281
119295
|
}
|
|
119282
119296
|
}
|
|
119283
119297
|
return updates;
|
|
@@ -119307,7 +119321,17 @@ ${value}`;
|
|
|
119307
119321
|
}
|
|
119308
119322
|
async prepareCache() {
|
|
119309
119323
|
for (const name2 of MANAGED_RUNTIME_NAMES) {
|
|
119310
|
-
|
|
119324
|
+
try {
|
|
119325
|
+
await this.pruneSupersededVersions(name2);
|
|
119326
|
+
} catch (error2) {
|
|
119327
|
+
this.warnCacheMaintenanceFailure(name2, "startup cache cleanup", error2);
|
|
119328
|
+
}
|
|
119329
|
+
}
|
|
119330
|
+
}
|
|
119331
|
+
warnCacheMaintenanceFailure(name2, operation, error2) {
|
|
119332
|
+
try {
|
|
119333
|
+
getLogger("managed-runtime").warn(`Skipping failed ${operation} for ${name2}: ${formatErrorWithCauses(error2)}`);
|
|
119334
|
+
} catch {
|
|
119311
119335
|
}
|
|
119312
119336
|
}
|
|
119313
119337
|
async ensureCurrentRuntime(name2, options = {}) {
|
|
@@ -120922,20 +120946,20 @@ ${value}`;
|
|
|
120922
120946
|
};
|
|
120923
120947
|
const parsed = DaemonUpgradeIntentSchema.parse(value);
|
|
120924
120948
|
const dir = path.dirname(DAEMON_UPGRADE_INTENT_FILE);
|
|
120925
|
-
await
|
|
120949
|
+
await fn.mkdir(dir, {
|
|
120926
120950
|
recursive: true
|
|
120927
120951
|
});
|
|
120928
120952
|
const tmpPath = path.join(dir, `.${path.basename(DAEMON_UPGRADE_INTENT_FILE)}.${process.pid}.tmp`);
|
|
120929
|
-
await
|
|
120953
|
+
await fn.writeFile(tmpPath, `${JSON.stringify(parsed, null, 2)}
|
|
120930
120954
|
`, {
|
|
120931
120955
|
encoding: "utf8",
|
|
120932
120956
|
mode: 384
|
|
120933
120957
|
});
|
|
120934
|
-
await
|
|
120958
|
+
await fn.rename(tmpPath, DAEMON_UPGRADE_INTENT_FILE);
|
|
120935
120959
|
};
|
|
120936
120960
|
const readDaemonUpgradeIntent = async () => {
|
|
120937
120961
|
try {
|
|
120938
|
-
const raw2 = await
|
|
120962
|
+
const raw2 = await fn.readFile(DAEMON_UPGRADE_INTENT_FILE, "utf8");
|
|
120939
120963
|
const parsed = DaemonUpgradeIntentSchema.safeParse(JSON.parse(raw2));
|
|
120940
120964
|
return parsed.success ? parsed.data : null;
|
|
120941
120965
|
} catch {
|
|
@@ -120944,7 +120968,7 @@ ${value}`;
|
|
|
120944
120968
|
};
|
|
120945
120969
|
const clearDaemonUpgradeIntent = async () => {
|
|
120946
120970
|
try {
|
|
120947
|
-
await
|
|
120971
|
+
await fn.unlink(DAEMON_UPGRADE_INTENT_FILE);
|
|
120948
120972
|
} catch {
|
|
120949
120973
|
}
|
|
120950
120974
|
};
|
|
@@ -124025,13 +124049,13 @@ ${incoming}`).output;
|
|
|
124025
124049
|
return await new Promise((resolve2, rejectPromise) => {
|
|
124026
124050
|
let buffer2 = "";
|
|
124027
124051
|
let settled = false;
|
|
124028
|
-
const settle = (
|
|
124052
|
+
const settle = (fn2) => {
|
|
124029
124053
|
if (settled) return;
|
|
124030
124054
|
settled = true;
|
|
124031
124055
|
clearTimeout(timer2);
|
|
124032
124056
|
handshakePipe.removeListener("data", onData);
|
|
124033
124057
|
child.removeListener("exit", onExit2);
|
|
124034
|
-
|
|
124058
|
+
fn2();
|
|
124035
124059
|
};
|
|
124036
124060
|
const timer2 = setTimeout(() => {
|
|
124037
124061
|
child.kill("SIGKILL");
|
|
@@ -132498,7 +132522,7 @@ ${error2.message}` : execaMessage;
|
|
|
132498
132522
|
function requireBufferStream() {
|
|
132499
132523
|
if (hasRequiredBufferStream) return bufferStream;
|
|
132500
132524
|
hasRequiredBufferStream = 1;
|
|
132501
|
-
const { PassThrough: PassThroughStream } =
|
|
132525
|
+
const { PassThrough: PassThroughStream } = Fo;
|
|
132502
132526
|
bufferStream = (options) => {
|
|
132503
132527
|
options = {
|
|
132504
132528
|
...options
|
|
@@ -132547,7 +132571,7 @@ ${error2.message}` : execaMessage;
|
|
|
132547
132571
|
if (hasRequiredGetStream) return getStream.exports;
|
|
132548
132572
|
hasRequiredGetStream = 1;
|
|
132549
132573
|
const { constants: BufferConstants } = require$$0$6;
|
|
132550
|
-
const stream2 =
|
|
132574
|
+
const stream2 = Fo;
|
|
132551
132575
|
const { promisify: promisify2 } = require$$0$5;
|
|
132552
132576
|
const bufferStream2 = requireBufferStream();
|
|
132553
132577
|
const streamPipelinePromisified = promisify2(stream2.pipeline);
|
|
@@ -132607,7 +132631,7 @@ ${error2.message}` : execaMessage;
|
|
|
132607
132631
|
function requireMergeStream() {
|
|
132608
132632
|
if (hasRequiredMergeStream) return mergeStream;
|
|
132609
132633
|
hasRequiredMergeStream = 1;
|
|
132610
|
-
const { PassThrough: PassThrough2 } =
|
|
132634
|
+
const { PassThrough: PassThrough2 } = Fo;
|
|
132611
132635
|
mergeStream = function() {
|
|
132612
132636
|
var sources = [];
|
|
132613
132637
|
var output = new PassThrough2({
|
|
@@ -133203,11 +133227,11 @@ ${error2.message}` : execaMessage;
|
|
|
133203
133227
|
this.waiting = [];
|
|
133204
133228
|
this.error = null;
|
|
133205
133229
|
}
|
|
133206
|
-
Pend.prototype.go = function(
|
|
133230
|
+
Pend.prototype.go = function(fn2) {
|
|
133207
133231
|
if (this.pending < this.max) {
|
|
133208
|
-
pendGo(this,
|
|
133232
|
+
pendGo(this, fn2);
|
|
133209
133233
|
} else {
|
|
133210
|
-
this.waiting.push(
|
|
133234
|
+
this.waiting.push(fn2);
|
|
133211
133235
|
}
|
|
133212
133236
|
};
|
|
133213
133237
|
Pend.prototype.wait = function(cb) {
|
|
@@ -133241,8 +133265,8 @@ ${error2.message}` : execaMessage;
|
|
|
133241
133265
|
listener(self2.error);
|
|
133242
133266
|
}
|
|
133243
133267
|
}
|
|
133244
|
-
function pendGo(self2,
|
|
133245
|
-
|
|
133268
|
+
function pendGo(self2, fn2) {
|
|
133269
|
+
fn2(pendHold(self2));
|
|
133246
133270
|
}
|
|
133247
133271
|
return pend;
|
|
133248
133272
|
}
|
|
@@ -133252,7 +133276,7 @@ ${error2.message}` : execaMessage;
|
|
|
133252
133276
|
hasRequiredFdSlicer = 1;
|
|
133253
133277
|
var fs2 = fs__default$1;
|
|
133254
133278
|
var util2 = require$$0$5;
|
|
133255
|
-
var stream2 =
|
|
133279
|
+
var stream2 = Fo;
|
|
133256
133280
|
var Readable2 = stream2.Readable;
|
|
133257
133281
|
var Writable = stream2.Writable;
|
|
133258
133282
|
var PassThrough2 = stream2.PassThrough;
|
|
@@ -133818,14 +133842,14 @@ ${error2.message}` : execaMessage;
|
|
|
133818
133842
|
if (hasRequiredYauzl) return yauzl;
|
|
133819
133843
|
hasRequiredYauzl = 1;
|
|
133820
133844
|
var fs2 = fs__default$1;
|
|
133821
|
-
var zlib =
|
|
133845
|
+
var zlib = Qi__default;
|
|
133822
133846
|
var fd_slicer = requireFdSlicer();
|
|
133823
133847
|
var crc322 = requireBufferCrc32();
|
|
133824
133848
|
var util2 = require$$0$5;
|
|
133825
133849
|
var EventEmitter2 = require$$0$7.EventEmitter;
|
|
133826
|
-
var Transform2 =
|
|
133827
|
-
var PassThrough2 =
|
|
133828
|
-
var Writable =
|
|
133850
|
+
var Transform2 = Fo.Transform;
|
|
133851
|
+
var PassThrough2 = Fo.PassThrough;
|
|
133852
|
+
var Writable = Fo.Writable;
|
|
133829
133853
|
yauzl.open = open2;
|
|
133830
133854
|
yauzl.fromFd = fromFd;
|
|
133831
133855
|
yauzl.fromBuffer = fromBuffer;
|
|
@@ -135090,6 +135114,15 @@ ${error2.message}` : execaMessage;
|
|
|
135090
135114
|
const ZSTD_SESSION_ARTIFACT = "session.jsonl.zstd";
|
|
135091
135115
|
const DSH_NODE_EXECUTABLE_ENV = "LODY_DSH_NODE_EXECUTABLE";
|
|
135092
135116
|
const DSH_NODE_ARGS_ENV = "LODY_DSH_NODE_ARGS";
|
|
135117
|
+
const HIDE_WINDOWS_CHILD_CONSOLES = `
|
|
135118
|
+
import { ChildProcess } from 'node:child_process';
|
|
135119
|
+
if (process.platform === 'win32') {
|
|
135120
|
+
const spawn = ChildProcess.prototype.spawn;
|
|
135121
|
+
ChildProcess.prototype.spawn = function (options) {
|
|
135122
|
+
return spawn.call(this, { ...options, windowsHide: true });
|
|
135123
|
+
};
|
|
135124
|
+
}
|
|
135125
|
+
`.trim();
|
|
135093
135126
|
function resolveDeepSeekHarnessSpawn(options) {
|
|
135094
135127
|
const { command: command2, args: args2, env: env2, workdir } = options;
|
|
135095
135128
|
if ((options.platform ?? process.platform) !== "win32" || command2 !== "npx" || !env2[DSH_NODE_EXECUTABLE_ENV]) {
|
|
@@ -135123,6 +135156,8 @@ ${error2.message}` : execaMessage;
|
|
|
135123
135156
|
return {
|
|
135124
135157
|
command: process.execPath,
|
|
135125
135158
|
args: [
|
|
135159
|
+
"--import",
|
|
135160
|
+
`data:text/javascript;base64,${encodeBase64$1(HIDE_WINDOWS_CHILD_CONSOLES)}`,
|
|
135126
135161
|
entry,
|
|
135127
135162
|
...args2
|
|
135128
135163
|
]
|
|
@@ -135141,7 +135176,7 @@ const executable = process.env.${DSH_NODE_EXECUTABLE_ENV};
|
|
|
135141
135176
|
const encodedArgs = process.env.${DSH_NODE_ARGS_ENV};
|
|
135142
135177
|
if (!executable || !encodedArgs) throw new Error('Missing Lody DSH runtime launch environment');
|
|
135143
135178
|
const args = JSON.parse(Buffer.from(encodedArgs, 'base64').toString('utf8'));
|
|
135144
|
-
const child = spawn(executable, args, { env: process.env, stdio: 'inherit' });
|
|
135179
|
+
const child = spawn(executable, args, { env: process.env, stdio: 'inherit', windowsHide: true });
|
|
135145
135180
|
for (const signal of ['SIGINT', 'SIGTERM']) {
|
|
135146
135181
|
process.on(signal, () => child.kill(signal));
|
|
135147
135182
|
}
|
|
@@ -135157,7 +135192,8 @@ child.on('exit', (code) => {
|
|
|
135157
135192
|
}
|
|
135158
135193
|
function createDeepSeekHarnessBootstrapSource() {
|
|
135159
135194
|
return `
|
|
135160
|
-
|
|
135195
|
+
${HIDE_WINDOWS_CHILD_CONSOLES}
|
|
135196
|
+
import { readFile, realpath } from 'node:fs/promises';
|
|
135161
135197
|
import { delimiter, dirname, join } from 'node:path';
|
|
135162
135198
|
import { pathToFileURL } from 'node:url';
|
|
135163
135199
|
|
|
@@ -135182,6 +135218,34 @@ if (!entryPath) {
|
|
|
135182
135218
|
);
|
|
135183
135219
|
}
|
|
135184
135220
|
|
|
135221
|
+
if (process.platform === 'win32') {
|
|
135222
|
+
// The pinned Job runner calls CreateProcessW directly, bypassing Node's
|
|
135223
|
+
// windowsHide. Preserve its suspended launch, Unicode env, Job and IPC;
|
|
135224
|
+
// only add CREATE_NO_WINDOW at the shared native process boundary.
|
|
135225
|
+
const familyRoot = dirname(dirname(dirname(await realpath(entryPath))));
|
|
135226
|
+
const nativeEntry = pathToFileURL(join(familyRoot, 'dsh-win32-process', 'lib', 'index.js')).href;
|
|
135227
|
+
const nativePolicy = [
|
|
135228
|
+
'const { loadWin32ProcessBindings } = await import(' + JSON.stringify(nativeEntry) + ');',
|
|
135229
|
+
'const api = loadWin32ProcessBindings();',
|
|
135230
|
+
'for (const [name, flagsIndex] of [["createProcessW", 5], ["createProcessAsUserW", 6]]) {',
|
|
135231
|
+
' const create = api[name];',
|
|
135232
|
+
' api[name] = (...args) => { args[flagsIndex] |= 0x08000000; return create(...args); };',
|
|
135233
|
+
'}',
|
|
135234
|
+
].join('\\n');
|
|
135235
|
+
const preload = 'data:text/javascript;base64,' + Buffer.from(nativePolicy).toString('base64');
|
|
135236
|
+
await import(preload);
|
|
135237
|
+
const runnerEntry = join(familyRoot, 'dsh-subprocess-local', 'lib', 'runner.js');
|
|
135238
|
+
const spawn = ChildProcess.prototype.spawn;
|
|
135239
|
+
ChildProcess.prototype.spawn = function (options) {
|
|
135240
|
+
// Only the pinned native Job runner needs this preload. Do not export a
|
|
135241
|
+
// NODE_OPTIONS hook to agent commands or MCP servers.
|
|
135242
|
+
if (options.file === process.execPath && options.args[1] === runnerEntry) {
|
|
135243
|
+
options = { ...options, args: [options.args[0], '--import', preload, ...options.args.slice(1)] };
|
|
135244
|
+
}
|
|
135245
|
+
return spawn.call(this, options);
|
|
135246
|
+
};
|
|
135247
|
+
}
|
|
135248
|
+
|
|
135185
135249
|
const dshArgs = process.argv.slice(1);
|
|
135186
135250
|
process.argv = [process.execPath, entryPath, ...dshArgs];
|
|
135187
135251
|
const dsh = await import(pathToFileURL(entryPath).href);
|
|
@@ -135333,6 +135397,7 @@ await dsh.runCli();
|
|
|
135333
135397
|
}
|
|
135334
135398
|
};
|
|
135335
135399
|
const BUILTIN_BUB_CAPABILITY_SOURCE_VERSION = "builtin-bub:acp";
|
|
135400
|
+
const DIMCODE_VERSION = "0.5.10";
|
|
135336
135401
|
const NPX_CACHE_MODE_ARG = "--prefer-offline";
|
|
135337
135402
|
function resolveRegistryNpxPackage(distribution, platform2 = process.platform, arch = process.arch) {
|
|
135338
135403
|
return distribution.platformPackages?.[platform2]?.[arch] ?? distribution.package;
|
|
@@ -135390,6 +135455,9 @@ await dsh.runCli();
|
|
|
135390
135455
|
const baseUrl = input2.env?.[DEEPSEEK_HARNESS_BASE_URL_ENV];
|
|
135391
135456
|
return baseUrl?.trim() ? `${DEEPSEEK_HARNESS_CAPABILITY_SOURCE_VERSION}+endpoint:${createHash("sha256").update(baseUrl).digest("hex").slice(0, 12)}` : DEEPSEEK_HARNESS_CAPABILITY_SOURCE_VERSION;
|
|
135392
135457
|
}
|
|
135458
|
+
if (input2.agentType === "dimcode") {
|
|
135459
|
+
return `builtin-dimcode:${DIMCODE_VERSION}`;
|
|
135460
|
+
}
|
|
135393
135461
|
if (input2.agentType === "bub") {
|
|
135394
135462
|
return BUILTIN_BUB_CAPABILITY_SOURCE_VERSION;
|
|
135395
135463
|
}
|
|
@@ -135560,6 +135628,19 @@ await dsh.runCli();
|
|
|
135560
135628
|
capabilitySourceVersion: getAcpCapabilitySourceVersion(input2)
|
|
135561
135629
|
};
|
|
135562
135630
|
}
|
|
135631
|
+
if (input2.agentType === "dimcode") {
|
|
135632
|
+
return {
|
|
135633
|
+
command: "npx",
|
|
135634
|
+
args: [
|
|
135635
|
+
NPX_CACHE_MODE_ARG,
|
|
135636
|
+
"-y",
|
|
135637
|
+
`dimcode@${DIMCODE_VERSION}`,
|
|
135638
|
+
"acp",
|
|
135639
|
+
...input2.extraArgs ?? []
|
|
135640
|
+
],
|
|
135641
|
+
capabilitySourceVersion: getAcpCapabilitySourceVersion(input2)
|
|
135642
|
+
};
|
|
135643
|
+
}
|
|
135563
135644
|
if (input2.agentType === "bub") {
|
|
135564
135645
|
return {
|
|
135565
135646
|
command: "bub",
|
|
@@ -136738,10 +136819,10 @@ ${fallbackStderrTail}` : errorMessage2;
|
|
|
136738
136819
|
get queued() {
|
|
136739
136820
|
return this.waiters.length;
|
|
136740
136821
|
}
|
|
136741
|
-
async run(options,
|
|
136822
|
+
async run(options, fn2) {
|
|
136742
136823
|
await this.acquire(options);
|
|
136743
136824
|
try {
|
|
136744
|
-
return await
|
|
136825
|
+
return await fn2();
|
|
136745
136826
|
} finally {
|
|
136746
136827
|
this.release();
|
|
136747
136828
|
}
|
|
@@ -136811,7 +136892,7 @@ ${fallbackStderrTail}` : errorMessage2;
|
|
|
136811
136892
|
defaultGate ??= new AcpSessionStartGate();
|
|
136812
136893
|
return defaultGate;
|
|
136813
136894
|
};
|
|
136814
|
-
const withAcpSessionStartSlot = (options,
|
|
136895
|
+
const withAcpSessionStartSlot = (options, fn2) => getAcpSessionStartGate().run(options, fn2);
|
|
136815
136896
|
const createAcpClient = async (options) => {
|
|
136816
136897
|
const sessionId = options.sessionId ?? v4();
|
|
136817
136898
|
options.logger.debug(`[${sessionId}] createAcpClient: creating AgentClient`);
|
|
@@ -138885,7 +138966,7 @@ ${fallbackStderrTail}` : errorMessage2;
|
|
|
138885
138966
|
}
|
|
138886
138967
|
}
|
|
138887
138968
|
const inProcessTails = /* @__PURE__ */ new Map();
|
|
138888
|
-
async function withInProcessQueue(key2,
|
|
138969
|
+
async function withInProcessQueue(key2, fn2) {
|
|
138889
138970
|
const prev = inProcessTails.get(key2) ?? Promise.resolve();
|
|
138890
138971
|
let release2;
|
|
138891
138972
|
const mine = new Promise((resolve2) => {
|
|
@@ -138895,7 +138976,7 @@ ${fallbackStderrTail}` : errorMessage2;
|
|
|
138895
138976
|
inProcessTails.set(key2, tail2);
|
|
138896
138977
|
await prev;
|
|
138897
138978
|
try {
|
|
138898
|
-
return await
|
|
138979
|
+
return await fn2();
|
|
138899
138980
|
} finally {
|
|
138900
138981
|
release2();
|
|
138901
138982
|
if (inProcessTails.get(key2) === tail2) {
|
|
@@ -138904,7 +138985,7 @@ ${fallbackStderrTail}` : errorMessage2;
|
|
|
138904
138985
|
}
|
|
138905
138986
|
}
|
|
138906
138987
|
const heldLockPaths = new AsyncLocalStorage$1();
|
|
138907
|
-
async function withFileLock(lockName,
|
|
138988
|
+
async function withFileLock(lockName, fn2, options = {}) {
|
|
138908
138989
|
const { timeout: timeout2 = 3e4, retryDelay = 100, maxRetryDelay = 2e3, locksDir: locksDirOverride } = options;
|
|
138909
138990
|
const locksDir = resolveLocksDir(locksDirOverride);
|
|
138910
138991
|
ensureLocksDir(locksDir);
|
|
@@ -138929,7 +139010,7 @@ ${fallbackStderrTail}` : errorMessage2;
|
|
|
138929
139010
|
currentDelay = Math.min(currentDelay * 1.5, maxRetryDelay);
|
|
138930
139011
|
}
|
|
138931
139012
|
try {
|
|
138932
|
-
return await
|
|
139013
|
+
return await fn2();
|
|
138933
139014
|
} finally {
|
|
138934
139015
|
releaseLock(lockPath);
|
|
138935
139016
|
}
|
|
@@ -139385,8 +139466,8 @@ main().catch(() => {});
|
|
|
139385
139466
|
const DEFAULT_ARCHIVE_BACKUP_AUTHOR_NAME = "Lody Archive";
|
|
139386
139467
|
const DEFAULT_ARCHIVE_BACKUP_AUTHOR_EMAIL = "archive@lody.ai";
|
|
139387
139468
|
const GIT_OPERATION_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
139388
|
-
async function withRepoLock(repoId,
|
|
139389
|
-
return withFileLock(`worktree-${repoId}`,
|
|
139469
|
+
async function withRepoLock(repoId, fn2) {
|
|
139470
|
+
return withFileLock(`worktree-${repoId}`, fn2, {
|
|
139390
139471
|
timeout: 12e4
|
|
139391
139472
|
});
|
|
139392
139473
|
}
|
|
@@ -148797,9 +148878,9 @@ ${withCauses}`;
|
|
|
148797
148878
|
};
|
|
148798
148879
|
}
|
|
148799
148880
|
const forkOperationLocks = /* @__PURE__ */ new Map();
|
|
148800
|
-
async function withForkOperationLock(targetSessionId,
|
|
148881
|
+
async function withForkOperationLock(targetSessionId, fn2) {
|
|
148801
148882
|
const previous = forkOperationLocks.get(targetSessionId) ?? Promise.resolve();
|
|
148802
|
-
const run2 = previous.then(
|
|
148883
|
+
const run2 = previous.then(fn2);
|
|
148803
148884
|
const tail2 = run2.then(() => void 0, () => void 0);
|
|
148804
148885
|
forkOperationLocks.set(targetSessionId, tail2);
|
|
148805
148886
|
try {
|
|
@@ -151141,11 +151222,11 @@ ${withCauses}`;
|
|
|
151141
151222
|
...this.deliveryChains.values()
|
|
151142
151223
|
]);
|
|
151143
151224
|
}
|
|
151144
|
-
withStore(
|
|
151145
|
-
if (this.store) return
|
|
151225
|
+
withStore(fn2) {
|
|
151226
|
+
if (this.store) return fn2(this.store);
|
|
151146
151227
|
const store = this.storeFactory();
|
|
151147
151228
|
try {
|
|
151148
|
-
return
|
|
151229
|
+
return fn2(store);
|
|
151149
151230
|
} finally {
|
|
151150
151231
|
store.close();
|
|
151151
151232
|
}
|
|
@@ -154661,13 +154742,13 @@ ${withCauses}`;
|
|
|
154661
154742
|
});
|
|
154662
154743
|
}
|
|
154663
154744
|
handleTransition(transition) {
|
|
154664
|
-
for (const
|
|
154665
|
-
|
|
154745
|
+
for (const fn2 of this._onTransitionFns.values()) {
|
|
154746
|
+
fn2(transition);
|
|
154666
154747
|
}
|
|
154667
154748
|
}
|
|
154668
|
-
addOnTransitionHandler(
|
|
154749
|
+
addOnTransitionHandler(fn2) {
|
|
154669
154750
|
const id2 = this._transitionHandlerCounter++;
|
|
154670
|
-
this._onTransitionFns.set(id2,
|
|
154751
|
+
this._onTransitionFns.set(id2, fn2);
|
|
154671
154752
|
return () => this._onTransitionFns.delete(id2);
|
|
154672
154753
|
}
|
|
154673
154754
|
getCurrentAuthClaims() {
|
|
@@ -159114,6 +159195,16 @@ ${withCauses}`;
|
|
|
159114
159195
|
cacheReadInputTokenCost: 1e-6,
|
|
159115
159196
|
outputCostPerToken: 5e-5
|
|
159116
159197
|
},
|
|
159198
|
+
"gpt-6-sol": {
|
|
159199
|
+
inputCostPerToken: 2e-6,
|
|
159200
|
+
cacheReadInputTokenCost: 2e-7,
|
|
159201
|
+
outputCostPerToken: 1e-5
|
|
159202
|
+
},
|
|
159203
|
+
"gpt-6-luna": {
|
|
159204
|
+
inputCostPerToken: 1e-7,
|
|
159205
|
+
cacheReadInputTokenCost: 1e-8,
|
|
159206
|
+
outputCostPerToken: 5e-7
|
|
159207
|
+
},
|
|
159117
159208
|
"gpt-5.6": {
|
|
159118
159209
|
inputCostPerToken: 5e-6,
|
|
159119
159210
|
cacheReadInputTokenCost: 5e-7,
|
|
@@ -160193,7 +160284,7 @@ ${part.truncated ? TRUNCATION_MARKER : ""}${part.content}`).join("\n\n");
|
|
|
160193
160284
|
const effectiveSelector = normalizeCliValue(selector) ?? normalizeCliValue(process.env.LODY_WORKSPACE_ID);
|
|
160194
160285
|
return selectWorkspaceSummary(workspaces, effectiveSelector);
|
|
160195
160286
|
}
|
|
160196
|
-
async function withWorkspaceManager$1(auth, workspace, loggerName,
|
|
160287
|
+
async function withWorkspaceManager$1(auth, workspace, loggerName, fn2) {
|
|
160197
160288
|
if (!LODY_AUTH_URL) {
|
|
160198
160289
|
throw new Error("Cloud workspace commands require LODY_AUTH_URL");
|
|
160199
160290
|
}
|
|
@@ -160211,7 +160302,7 @@ ${part.truncated ? TRUNCATION_MARKER : ""}${part.content}`).join("\n\n");
|
|
|
160211
160302
|
})
|
|
160212
160303
|
});
|
|
160213
160304
|
try {
|
|
160214
|
-
return await
|
|
160305
|
+
return await fn2(manager);
|
|
160215
160306
|
} finally {
|
|
160216
160307
|
await manager.cleanUp({
|
|
160217
160308
|
fast: true,
|
|
@@ -162593,7 +162684,8 @@ ${part.truncated ? TRUNCATION_MARKER : ""}${part.content}`).join("\n\n");
|
|
|
162593
162684
|
"claude",
|
|
162594
162685
|
"codex",
|
|
162595
162686
|
"grok",
|
|
162596
|
-
"bub"
|
|
162687
|
+
"bub",
|
|
162688
|
+
"dimcode"
|
|
162597
162689
|
]);
|
|
162598
162690
|
function inferAgentConfigCliType(agentType) {
|
|
162599
162691
|
const normalized = normalizeCliValue(agentType)?.toLowerCase();
|
|
@@ -163669,7 +163761,7 @@ ${entry.text}`).join("\n\n");
|
|
|
163669
163761
|
machineName: authInfo.machine.machineName
|
|
163670
163762
|
};
|
|
163671
163763
|
}
|
|
163672
|
-
async function withWorkspaceManager(auth, workspace,
|
|
163764
|
+
async function withWorkspaceManager(auth, workspace, fn2) {
|
|
163673
163765
|
if (!LODY_AUTH_URL) {
|
|
163674
163766
|
throw new Error("Cloud session commands require LODY_AUTH_URL");
|
|
163675
163767
|
}
|
|
@@ -163687,7 +163779,7 @@ ${entry.text}`).join("\n\n");
|
|
|
163687
163779
|
})
|
|
163688
163780
|
});
|
|
163689
163781
|
try {
|
|
163690
|
-
return await
|
|
163782
|
+
return await fn2(manager);
|
|
163691
163783
|
} finally {
|
|
163692
163784
|
await manager.cleanUp({
|
|
163693
163785
|
fast: true,
|
|
@@ -164458,10 +164550,10 @@ ${entry.text}`).join("\n\n");
|
|
|
164458
164550
|
await client2.start();
|
|
164459
164551
|
return client2;
|
|
164460
164552
|
}
|
|
164461
|
-
async function withMachineRpcClient(args2,
|
|
164553
|
+
async function withMachineRpcClient(args2, fn2) {
|
|
164462
164554
|
const client2 = await createMachineRpcClient(args2);
|
|
164463
164555
|
try {
|
|
164464
|
-
return await
|
|
164556
|
+
return await fn2(client2);
|
|
164465
164557
|
} finally {
|
|
164466
164558
|
client2.stop();
|
|
164467
164559
|
}
|
|
@@ -166399,11 +166491,11 @@ ${entry.text}`).join("\n\n");
|
|
|
166399
166491
|
return null;
|
|
166400
166492
|
}
|
|
166401
166493
|
try {
|
|
166402
|
-
const stat2 = await
|
|
166494
|
+
const stat2 = await fn.stat(absolutePath);
|
|
166403
166495
|
if (!stat2.isFile() || stat2.size > (options?.maxBytes ?? defaultMaxTextFileBytes)) {
|
|
166404
166496
|
return null;
|
|
166405
166497
|
}
|
|
166406
|
-
const content = await
|
|
166498
|
+
const content = await fn.readFile(absolutePath);
|
|
166407
166499
|
if (content.includes(0)) {
|
|
166408
166500
|
return null;
|
|
166409
166501
|
}
|
|
@@ -167383,9 +167475,9 @@ ${entry.text}`).join("\n\n");
|
|
|
167383
167475
|
};
|
|
167384
167476
|
});
|
|
167385
167477
|
}
|
|
167386
|
-
async serializeByAbsolutePath(absolutePath,
|
|
167478
|
+
async serializeByAbsolutePath(absolutePath, fn2) {
|
|
167387
167479
|
const prior = this.writeChainByAbsolutePath.get(absolutePath) ?? Promise.resolve();
|
|
167388
|
-
const run2 = prior.then(
|
|
167480
|
+
const run2 = prior.then(fn2, fn2);
|
|
167389
167481
|
const tail2 = run2.then(() => void 0, () => void 0);
|
|
167390
167482
|
this.writeChainByAbsolutePath.set(absolutePath, tail2);
|
|
167391
167483
|
try {
|
|
@@ -168815,10 +168907,14 @@ ${entry.text}`).join("\n\n");
|
|
|
168815
168907
|
}
|
|
168816
168908
|
async function writeFileAtomically(absolutePath, bytes2, workspacePath) {
|
|
168817
168909
|
const temporaryPath = `${absolutePath}.lody-save-${process.pid}-${randomUUID()}.tmp`;
|
|
168910
|
+
const preserveMode = process.platform === "win32" ? void 0 : await lstat(absolutePath).then((existing) => existing.isFile() ? existing.mode & 511 : void 0).catch(() => void 0);
|
|
168818
168911
|
try {
|
|
168819
168912
|
await writeFile(temporaryPath, bytes2, {
|
|
168820
168913
|
mode: 438
|
|
168821
168914
|
});
|
|
168915
|
+
if (preserveMode !== void 0) {
|
|
168916
|
+
await chmod(temporaryPath, preserveMode);
|
|
168917
|
+
}
|
|
168822
168918
|
await rename(temporaryPath, absolutePath);
|
|
168823
168919
|
} catch (error2) {
|
|
168824
168920
|
await unlink(temporaryPath).catch(() => void 0);
|
|
@@ -170798,7 +170894,7 @@ ${entry.text}`).join("\n\n");
|
|
|
170798
170894
|
}
|
|
170799
170895
|
return bytes2;
|
|
170800
170896
|
};
|
|
170801
|
-
const withTemporaryACPFile = async (logger2, fileName, bytes2,
|
|
170897
|
+
const withTemporaryACPFile = async (logger2, fileName, bytes2, fn2) => {
|
|
170802
170898
|
const dir = await fs__default$1.promises.mkdtemp(path__default$1.join(os__default$1.tmpdir(), "lody-acp-output-"));
|
|
170803
170899
|
const safeFileName = sanitizeAttachmentFileName(fileName);
|
|
170804
170900
|
const absolutePath = path__default$1.join(dir, safeFileName);
|
|
@@ -170806,7 +170902,7 @@ ${entry.text}`).join("\n\n");
|
|
|
170806
170902
|
await fs__default$1.promises.writeFile(absolutePath, bytes2, {
|
|
170807
170903
|
mode: 384
|
|
170808
170904
|
});
|
|
170809
|
-
return await
|
|
170905
|
+
return await fn2(absolutePath, safeFileName);
|
|
170810
170906
|
} finally {
|
|
170811
170907
|
await fs__default$1.promises.rm(dir, {
|
|
170812
170908
|
recursive: true,
|
|
@@ -172413,11 +172509,11 @@ ${entry.text}`).join("\n\n");
|
|
|
172413
172509
|
}
|
|
172414
172510
|
return succeed(cached2.snapshot);
|
|
172415
172511
|
});
|
|
172416
|
-
const mutate2 = (
|
|
172512
|
+
const mutate2 = (fn2) => tryPromise({
|
|
172417
172513
|
try: async () => {
|
|
172418
172514
|
const run2 = async () => await withFileLock(lockName, async () => {
|
|
172419
172515
|
const snapshot = await runPromise(readRecoveringFromDisk());
|
|
172420
|
-
const updated = await
|
|
172516
|
+
const updated = await fn2(snapshot);
|
|
172421
172517
|
await writeCatalogFile(filePath, updated);
|
|
172422
172518
|
cacheRevision += 1;
|
|
172423
172519
|
cachedRead = {
|
|
@@ -175512,14 +175608,14 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
|
|
|
175512
175608
|
}
|
|
175513
175609
|
const syncLeases = /* @__PURE__ */ new Set();
|
|
175514
175610
|
const machineCatalogWriteChains = /* @__PURE__ */ new Map();
|
|
175515
|
-
async function withMachineCatalogWriteLock(machineRoomId,
|
|
175611
|
+
async function withMachineCatalogWriteLock(machineRoomId, fn2) {
|
|
175516
175612
|
const prev = machineCatalogWriteChains.get(machineRoomId);
|
|
175517
175613
|
const current2 = (async () => {
|
|
175518
175614
|
if (prev) {
|
|
175519
175615
|
await prev.catch(() => {
|
|
175520
175616
|
});
|
|
175521
175617
|
}
|
|
175522
|
-
return
|
|
175618
|
+
return fn2();
|
|
175523
175619
|
})();
|
|
175524
175620
|
machineCatalogWriteChains.set(machineRoomId, current2);
|
|
175525
175621
|
try {
|
|
@@ -183237,8 +183333,8 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
|
|
|
183237
183333
|
const state2 = this.store.get(sessionId);
|
|
183238
183334
|
return state2.turn.phase !== "idle" || this.hasSessionActivePresence(sessionId);
|
|
183239
183335
|
}
|
|
183240
|
-
setEvictForMemoryPressure(
|
|
183241
|
-
this.evictForMemoryPressureFn =
|
|
183336
|
+
setEvictForMemoryPressure(fn2) {
|
|
183337
|
+
this.evictForMemoryPressureFn = fn2;
|
|
183242
183338
|
}
|
|
183243
183339
|
getActiveTurnCount() {
|
|
183244
183340
|
return this.sessionActivePresence.activeSessionCount();
|
|
@@ -183273,16 +183369,16 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
|
|
|
183273
183369
|
Events.prototype = /* @__PURE__ */ Object.create(null);
|
|
183274
183370
|
if (!new Events().__proto__) prefix = false;
|
|
183275
183371
|
}
|
|
183276
|
-
function EE(
|
|
183277
|
-
this.fn =
|
|
183372
|
+
function EE(fn2, context2, once2) {
|
|
183373
|
+
this.fn = fn2;
|
|
183278
183374
|
this.context = context2;
|
|
183279
183375
|
this.once = once2 || false;
|
|
183280
183376
|
}
|
|
183281
|
-
function addListener(emitter, event,
|
|
183282
|
-
if (typeof
|
|
183377
|
+
function addListener(emitter, event, fn2, context2, once2) {
|
|
183378
|
+
if (typeof fn2 !== "function") {
|
|
183283
183379
|
throw new TypeError("The listener must be a function");
|
|
183284
183380
|
}
|
|
183285
|
-
var listener = new EE(
|
|
183381
|
+
var listener = new EE(fn2, context2 || emitter, once2), evt = prefix ? prefix + event : event;
|
|
183286
183382
|
if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
|
|
183287
183383
|
else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
|
|
183288
183384
|
else emitter._events[evt] = [
|
|
@@ -183378,27 +183474,27 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
|
|
|
183378
183474
|
}
|
|
183379
183475
|
return true;
|
|
183380
183476
|
};
|
|
183381
|
-
EventEmitter2.prototype.on = function on2(event,
|
|
183382
|
-
return addListener(this, event,
|
|
183477
|
+
EventEmitter2.prototype.on = function on2(event, fn2, context2) {
|
|
183478
|
+
return addListener(this, event, fn2, context2, false);
|
|
183383
183479
|
};
|
|
183384
|
-
EventEmitter2.prototype.once = function once2(event,
|
|
183385
|
-
return addListener(this, event,
|
|
183480
|
+
EventEmitter2.prototype.once = function once2(event, fn2, context2) {
|
|
183481
|
+
return addListener(this, event, fn2, context2, true);
|
|
183386
183482
|
};
|
|
183387
|
-
EventEmitter2.prototype.removeListener = function removeListener(event,
|
|
183483
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn2, context2, once2) {
|
|
183388
183484
|
var evt = prefix ? prefix + event : event;
|
|
183389
183485
|
if (!this._events[evt]) return this;
|
|
183390
|
-
if (!
|
|
183486
|
+
if (!fn2) {
|
|
183391
183487
|
clearEvent(this, evt);
|
|
183392
183488
|
return this;
|
|
183393
183489
|
}
|
|
183394
183490
|
var listeners = this._events[evt];
|
|
183395
183491
|
if (listeners.fn) {
|
|
183396
|
-
if (listeners.fn ===
|
|
183492
|
+
if (listeners.fn === fn2 && (!once2 || listeners.once) && (!context2 || listeners.context === context2)) {
|
|
183397
183493
|
clearEvent(this, evt);
|
|
183398
183494
|
}
|
|
183399
183495
|
} else {
|
|
183400
183496
|
for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
|
|
183401
|
-
if (listeners[i2].fn !==
|
|
183497
|
+
if (listeners[i2].fn !== fn2 || once2 && !listeners[i2].once || context2 && listeners[i2].context !== context2) {
|
|
183402
183498
|
events2.push(listeners[i2]);
|
|
183403
183499
|
}
|
|
183404
183500
|
}
|
|
@@ -185005,8 +185101,8 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
|
|
|
185005
185101
|
isRemoteBridgeAttached() {
|
|
185006
185102
|
return this.remoteBridgeAttached;
|
|
185007
185103
|
}
|
|
185008
|
-
runBridgeTransition(
|
|
185009
|
-
const run2 = this.bridgeTransitionQueue.then(
|
|
185104
|
+
runBridgeTransition(fn2) {
|
|
185105
|
+
const run2 = this.bridgeTransitionQueue.then(fn2, fn2);
|
|
185010
185106
|
this.bridgeTransitionQueue = run2.then(() => void 0, () => void 0);
|
|
185011
185107
|
return run2;
|
|
185012
185108
|
}
|
|
@@ -188175,9 +188271,9 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
188175
188271
|
});
|
|
188176
188272
|
}
|
|
188177
188273
|
const sessionMarkerLocks = /* @__PURE__ */ new Map();
|
|
188178
|
-
async function withSessionMarkerLock(sessionId,
|
|
188274
|
+
async function withSessionMarkerLock(sessionId, fn2) {
|
|
188179
188275
|
const previous = sessionMarkerLocks.get(sessionId) ?? Promise.resolve();
|
|
188180
|
-
const run2 = previous.then(
|
|
188276
|
+
const run2 = previous.then(fn2);
|
|
188181
188277
|
const tail2 = run2.then(() => void 0, () => void 0);
|
|
188182
188278
|
sessionMarkerLocks.set(sessionId, tail2);
|
|
188183
188279
|
try {
|
|
@@ -190621,11 +190717,11 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
190621
190717
|
}
|
|
190622
190718
|
}
|
|
190623
190719
|
}
|
|
190624
|
-
async function withStartupLock(lockFilePath,
|
|
190720
|
+
async function withStartupLock(lockFilePath, fn2) {
|
|
190625
190721
|
ensureLocalDaemonRunDir(path__default.dirname(lockFilePath));
|
|
190626
190722
|
const fd = acquireStartupLock(lockFilePath);
|
|
190627
190723
|
try {
|
|
190628
|
-
return await
|
|
190724
|
+
return await fn2();
|
|
190629
190725
|
} finally {
|
|
190630
190726
|
fs__default.closeSync(fd);
|
|
190631
190727
|
unlinkIfExists(lockFilePath);
|
|
@@ -193230,8 +193326,8 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
193230
193326
|
lastAttemptAtMs: this.lastAttemptAtMs.get(key2) ?? null
|
|
193231
193327
|
};
|
|
193232
193328
|
}
|
|
193233
|
-
enqueue(
|
|
193234
|
-
this.chain = this.chain.then(
|
|
193329
|
+
enqueue(fn2) {
|
|
193330
|
+
this.chain = this.chain.then(fn2).catch((error2) => {
|
|
193235
193331
|
this.deps.logger.debug(`[pr-poller] Poll chain error: ${formatErrorMessage(error2)}`);
|
|
193236
193332
|
});
|
|
193237
193333
|
}
|
|
@@ -198442,18 +198538,18 @@ Shutting down gracefully${reason}...`);
|
|
|
198442
198538
|
requestedAtMs: options.nowMs ?? Date.now()
|
|
198443
198539
|
};
|
|
198444
198540
|
const temporaryPath = `${filePath}.${process.pid}.tmp`;
|
|
198445
|
-
await
|
|
198541
|
+
await fn__default.mkdir(path__default.dirname(filePath), {
|
|
198446
198542
|
recursive: true,
|
|
198447
198543
|
mode: 448
|
|
198448
198544
|
});
|
|
198449
|
-
await
|
|
198545
|
+
await fn__default.writeFile(temporaryPath, `${JSON.stringify(request2, null, 2)}
|
|
198450
198546
|
`, {
|
|
198451
198547
|
mode: 384
|
|
198452
198548
|
});
|
|
198453
198549
|
try {
|
|
198454
|
-
await
|
|
198550
|
+
await fn__default.rename(temporaryPath, filePath);
|
|
198455
198551
|
} catch (error2) {
|
|
198456
|
-
await
|
|
198552
|
+
await fn__default.rm(temporaryPath, {
|
|
198457
198553
|
force: true
|
|
198458
198554
|
});
|
|
198459
198555
|
throw error2;
|
|
@@ -198462,7 +198558,7 @@ Shutting down gracefully${reason}...`);
|
|
|
198462
198558
|
}
|
|
198463
198559
|
async function clearDesktopLocalResetRequest(target = {}) {
|
|
198464
198560
|
try {
|
|
198465
|
-
await
|
|
198561
|
+
await fn__default.unlink(resolveRequestPath(target));
|
|
198466
198562
|
return true;
|
|
198467
198563
|
} catch (error2) {
|
|
198468
198564
|
if (error2.code === "ENOENT") return false;
|
|
@@ -198595,7 +198691,7 @@ Shutting down gracefully${reason}...`);
|
|
|
198595
198691
|
function readline() {
|
|
198596
198692
|
return getStore().rl;
|
|
198597
198693
|
}
|
|
198598
|
-
function withUpdates(
|
|
198694
|
+
function withUpdates(fn2) {
|
|
198599
198695
|
const wrapped = (...args2) => {
|
|
198600
198696
|
const store = getStore();
|
|
198601
198697
|
let shouldUpdate = false;
|
|
@@ -198603,7 +198699,7 @@ Shutting down gracefully${reason}...`);
|
|
|
198603
198699
|
store.handleChange = () => {
|
|
198604
198700
|
shouldUpdate = true;
|
|
198605
198701
|
};
|
|
198606
|
-
const returnValue =
|
|
198702
|
+
const returnValue = fn2(...args2);
|
|
198607
198703
|
if (shouldUpdate) {
|
|
198608
198704
|
oldHandleChange();
|
|
198609
198705
|
}
|
|
@@ -199143,11 +199239,11 @@ Shutting down gracefully${reason}...`);
|
|
|
199143
199239
|
const iconName = status === "loading" ? "idle" : status;
|
|
199144
199240
|
return typeof prefix === "string" ? prefix : prefix[iconName];
|
|
199145
199241
|
}
|
|
199146
|
-
function useMemo(
|
|
199242
|
+
function useMemo(fn2, dependencies2) {
|
|
199147
199243
|
return withPointer((pointer) => {
|
|
199148
199244
|
const prev = pointer.get();
|
|
199149
199245
|
if (!prev || prev.dependencies.length !== dependencies2.length || prev.dependencies.some((dep, i2) => dep !== dependencies2[i2])) {
|
|
199150
|
-
const value =
|
|
199246
|
+
const value = fn2();
|
|
199151
199247
|
pointer.set({
|
|
199152
199248
|
value,
|
|
199153
199249
|
dependencies: dependencies2
|
|
@@ -200942,15 +201038,15 @@ Shutting down gracefully${reason}...`);
|
|
|
200942
201038
|
graph[toModel].parent,
|
|
200943
201039
|
toModel
|
|
200944
201040
|
];
|
|
200945
|
-
let
|
|
201041
|
+
let fn2 = conversions2[graph[toModel].parent][toModel];
|
|
200946
201042
|
let cur = graph[toModel].parent;
|
|
200947
201043
|
while (graph[cur].parent) {
|
|
200948
201044
|
path2.unshift(graph[cur].parent);
|
|
200949
|
-
|
|
201045
|
+
fn2 = link2(conversions2[graph[cur].parent][cur], fn2);
|
|
200950
201046
|
cur = graph[cur].parent;
|
|
200951
201047
|
}
|
|
200952
|
-
|
|
200953
|
-
return
|
|
201048
|
+
fn2.conversion = path2;
|
|
201049
|
+
return fn2;
|
|
200954
201050
|
}
|
|
200955
201051
|
route = function(fromModel) {
|
|
200956
201052
|
const graph = deriveBFS(fromModel);
|
|
@@ -200977,7 +201073,7 @@ Shutting down gracefully${reason}...`);
|
|
|
200977
201073
|
const route2 = requireRoute();
|
|
200978
201074
|
const convert = {};
|
|
200979
201075
|
const models = Object.keys(conversions2);
|
|
200980
|
-
function wrapRaw(
|
|
201076
|
+
function wrapRaw(fn2) {
|
|
200981
201077
|
const wrappedFn = function(...args2) {
|
|
200982
201078
|
const arg0 = args2[0];
|
|
200983
201079
|
if (arg0 === void 0 || arg0 === null) {
|
|
@@ -200986,14 +201082,14 @@ Shutting down gracefully${reason}...`);
|
|
|
200986
201082
|
if (arg0.length > 1) {
|
|
200987
201083
|
args2 = arg0;
|
|
200988
201084
|
}
|
|
200989
|
-
return
|
|
201085
|
+
return fn2(args2);
|
|
200990
201086
|
};
|
|
200991
|
-
if ("conversion" in
|
|
200992
|
-
wrappedFn.conversion =
|
|
201087
|
+
if ("conversion" in fn2) {
|
|
201088
|
+
wrappedFn.conversion = fn2.conversion;
|
|
200993
201089
|
}
|
|
200994
201090
|
return wrappedFn;
|
|
200995
201091
|
}
|
|
200996
|
-
function wrapRounded(
|
|
201092
|
+
function wrapRounded(fn2) {
|
|
200997
201093
|
const wrappedFn = function(...args2) {
|
|
200998
201094
|
const arg0 = args2[0];
|
|
200999
201095
|
if (arg0 === void 0 || arg0 === null) {
|
|
@@ -201002,7 +201098,7 @@ Shutting down gracefully${reason}...`);
|
|
|
201002
201098
|
if (arg0.length > 1) {
|
|
201003
201099
|
args2 = arg0;
|
|
201004
201100
|
}
|
|
201005
|
-
const result =
|
|
201101
|
+
const result = fn2(args2);
|
|
201006
201102
|
if (typeof result === "object") {
|
|
201007
201103
|
for (let len2 = result.length, i2 = 0; i2 < len2; i2++) {
|
|
201008
201104
|
result[i2] = Math.round(result[i2]);
|
|
@@ -201010,8 +201106,8 @@ Shutting down gracefully${reason}...`);
|
|
|
201010
201106
|
}
|
|
201011
201107
|
return result;
|
|
201012
201108
|
};
|
|
201013
|
-
if ("conversion" in
|
|
201014
|
-
wrappedFn.conversion =
|
|
201109
|
+
if ("conversion" in fn2) {
|
|
201110
|
+
wrappedFn.conversion = fn2.conversion;
|
|
201015
201111
|
}
|
|
201016
201112
|
return wrappedFn;
|
|
201017
201113
|
}
|
|
@@ -201026,9 +201122,9 @@ Shutting down gracefully${reason}...`);
|
|
|
201026
201122
|
const routes = route2(fromModel);
|
|
201027
201123
|
const routeModels = Object.keys(routes);
|
|
201028
201124
|
routeModels.forEach((toModel) => {
|
|
201029
|
-
const
|
|
201030
|
-
convert[fromModel][toModel] = wrapRounded(
|
|
201031
|
-
convert[fromModel][toModel].raw = wrapRaw(
|
|
201125
|
+
const fn2 = routes[toModel];
|
|
201126
|
+
convert[fromModel][toModel] = wrapRounded(fn2);
|
|
201127
|
+
convert[fromModel][toModel].raw = wrapRaw(fn2);
|
|
201032
201128
|
});
|
|
201033
201129
|
});
|
|
201034
201130
|
colorConvert = convert;
|
|
@@ -201040,16 +201136,16 @@ Shutting down gracefully${reason}...`);
|
|
|
201040
201136
|
if (hasRequiredAnsiStyles) return ansiStyles.exports;
|
|
201041
201137
|
hasRequiredAnsiStyles = 1;
|
|
201042
201138
|
(function(module2) {
|
|
201043
|
-
const wrapAnsi162 = (
|
|
201044
|
-
const code2 =
|
|
201139
|
+
const wrapAnsi162 = (fn2, offset2) => (...args2) => {
|
|
201140
|
+
const code2 = fn2(...args2);
|
|
201045
201141
|
return `\x1B[${code2 + offset2}m`;
|
|
201046
201142
|
};
|
|
201047
|
-
const wrapAnsi2562 = (
|
|
201048
|
-
const code2 =
|
|
201143
|
+
const wrapAnsi2562 = (fn2, offset2) => (...args2) => {
|
|
201144
|
+
const code2 = fn2(...args2);
|
|
201049
201145
|
return `\x1B[${38 + offset2};5;${code2}m`;
|
|
201050
201146
|
};
|
|
201051
|
-
const wrapAnsi16m2 = (
|
|
201052
|
-
const rgb =
|
|
201147
|
+
const wrapAnsi16m2 = (fn2, offset2) => (...args2) => {
|
|
201148
|
+
const rgb = fn2(...args2);
|
|
201053
201149
|
return `\x1B[${38 + offset2};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
201054
201150
|
};
|
|
201055
201151
|
const ansi2ansi = (n) => n;
|
|
@@ -201542,7 +201638,7 @@ Shutting down gracefully${reason}...`);
|
|
|
201542
201638
|
function requireLib$1() {
|
|
201543
201639
|
if (hasRequiredLib$1) return lib$1;
|
|
201544
201640
|
hasRequiredLib$1 = 1;
|
|
201545
|
-
const Stream =
|
|
201641
|
+
const Stream = Fo;
|
|
201546
201642
|
class MuteStream2 extends Stream {
|
|
201547
201643
|
#isTTY = null;
|
|
201548
201644
|
constructor(opts = {}) {
|
|
@@ -211020,7 +211116,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${ansiEscapes.cursorHide}`;
|
|
|
211020
211116
|
function requireStreams() {
|
|
211021
211117
|
if (hasRequiredStreams) return streams;
|
|
211022
211118
|
hasRequiredStreams = 1;
|
|
211023
|
-
var Buffer2 = require$$0$6.Buffer, Transform2 =
|
|
211119
|
+
var Buffer2 = require$$0$6.Buffer, Transform2 = Fo.Transform;
|
|
211024
211120
|
streams = function(iconv2) {
|
|
211025
211121
|
iconv2.encodeStream = function encodeStream(encoding2, options) {
|
|
211026
211122
|
return new IconvLiteEncoderStream(iconv2.getEncoder(encoding2, options), options);
|
|
@@ -211240,7 +211336,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${ansiEscapes.cursorHide}`;
|
|
|
211240
211336
|
return length2;
|
|
211241
211337
|
};
|
|
211242
211338
|
if (iconv2.supportsStreams) {
|
|
211243
|
-
var Readable2 =
|
|
211339
|
+
var Readable2 = Fo.Readable;
|
|
211244
211340
|
original.ReadableSetEncoding = Readable2.prototype.setEncoding;
|
|
211245
211341
|
Readable2.prototype.setEncoding = function setEncoding(enc, options) {
|
|
211246
211342
|
this._readableState.decoder = iconv2.getDecoder(enc, options);
|
|
@@ -211261,7 +211357,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${ansiEscapes.cursorHide}`;
|
|
|
211261
211357
|
Buffer2.prototype.toString = original.BufferToString;
|
|
211262
211358
|
Buffer2.prototype.write = original.BufferWrite;
|
|
211263
211359
|
if (iconv2.supportsStreams) {
|
|
211264
|
-
var Readable2 =
|
|
211360
|
+
var Readable2 = Fo.Readable;
|
|
211265
211361
|
Readable2.prototype.setEncoding = original.ReadableSetEncoding;
|
|
211266
211362
|
delete Readable2.prototype.collect;
|
|
211267
211363
|
}
|
|
@@ -213447,8 +213543,8 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
213447
213543
|
})(Subscription_1.Subscription);
|
|
213448
213544
|
exports$1.Subscriber = Subscriber$1;
|
|
213449
213545
|
var _bind = Function.prototype.bind;
|
|
213450
|
-
function bind(
|
|
213451
|
-
return _bind.call(
|
|
213546
|
+
function bind(fn2, thisArg) {
|
|
213547
|
+
return _bind.call(fn2, thisArg);
|
|
213452
213548
|
}
|
|
213453
213549
|
var ConsumerObserver = (function() {
|
|
213454
213550
|
function ConsumerObserver2(partialObserver) {
|
|
@@ -213601,8 +213697,8 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
213601
213697
|
return fns[0];
|
|
213602
213698
|
}
|
|
213603
213699
|
return function piped(input2) {
|
|
213604
|
-
return fns.reduce(function(prev,
|
|
213605
|
-
return
|
|
213700
|
+
return fns.reduce(function(prev, fn2) {
|
|
213701
|
+
return fn2(prev);
|
|
213606
213702
|
}, input2);
|
|
213607
213703
|
};
|
|
213608
213704
|
}
|
|
@@ -217089,12 +217185,12 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
217089
217185
|
mapOneOrManyArgs.mapOneOrManyArgs = void 0;
|
|
217090
217186
|
var map_1 = requireMap();
|
|
217091
217187
|
var isArray2 = Array.isArray;
|
|
217092
|
-
function callOrApply(
|
|
217093
|
-
return isArray2(args2) ?
|
|
217188
|
+
function callOrApply(fn2, args2) {
|
|
217189
|
+
return isArray2(args2) ? fn2.apply(void 0, __spreadArray([], __read(args2))) : fn2(args2);
|
|
217094
217190
|
}
|
|
217095
|
-
function mapOneOrManyArgs$1(
|
|
217191
|
+
function mapOneOrManyArgs$1(fn2) {
|
|
217096
217192
|
return map_1.map(function(args2) {
|
|
217097
|
-
return callOrApply(
|
|
217193
|
+
return callOrApply(fn2, args2);
|
|
217098
217194
|
});
|
|
217099
217195
|
}
|
|
217100
217196
|
mapOneOrManyArgs.mapOneOrManyArgs = mapOneOrManyArgs$1;
|
|
@@ -225849,7 +225945,7 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
225849
225945
|
data = createReviewBundleSnapshot(bundle);
|
|
225850
225946
|
}
|
|
225851
225947
|
const { injectReviewSnapshot } = await import("./chunks/index-VoI6Ds2-.js");
|
|
225852
|
-
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-
|
|
225948
|
+
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-CxrR3OFP.js").then(async (m) => {
|
|
225853
225949
|
await m.__tla;
|
|
225854
225950
|
return m;
|
|
225855
225951
|
});
|
|
@@ -231918,7 +232014,7 @@ ${result.stdout ?? ""}`;
|
|
|
231918
232014
|
reg.add(inst, meta);
|
|
231919
232015
|
return inst;
|
|
231920
232016
|
});
|
|
231921
|
-
inst.apply = (
|
|
232017
|
+
inst.apply = (fn2) => fn2(inst);
|
|
231922
232018
|
});
|
|
231923
232019
|
const ZodMiniObject = $constructor("ZodMiniObject", (inst, def) => {
|
|
231924
232020
|
$ZodObject.init(inst, def);
|
|
@@ -239258,7 +239354,7 @@ ${result.stdout ?? ""}`;
|
|
|
239258
239354
|
};
|
|
239259
239355
|
const MAX_EXPRESSION = 200;
|
|
239260
239356
|
function requiredOptions(o) {
|
|
239261
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m,
|
|
239357
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
239262
239358
|
const s = o.strict;
|
|
239263
239359
|
const _optz = (_a2 = o.code) === null || _a2 === void 0 ? void 0 : _a2.optimize;
|
|
239264
239360
|
const optimize2 = _optz === true || _optz === void 0 ? 1 : _optz || 0;
|
|
@@ -239269,7 +239365,7 @@ ${result.stdout ?? ""}`;
|
|
|
239269
239365
|
strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true,
|
|
239270
239366
|
strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : "log",
|
|
239271
239367
|
strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : "log",
|
|
239272
|
-
strictRequired: (_p = (
|
|
239368
|
+
strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,
|
|
239273
239369
|
code: o.code ? {
|
|
239274
239370
|
...o.code,
|
|
239275
239371
|
optimize: optimize2,
|
|
@@ -244798,7 +244894,7 @@ ${result.stdout ?? ""}`;
|
|
|
244798
244894
|
return value;
|
|
244799
244895
|
};
|
|
244800
244896
|
const mcpSessionContextStorage = new AsyncLocalStorage();
|
|
244801
|
-
const runWithMcpSessionContext = (context2,
|
|
244897
|
+
const runWithMcpSessionContext = (context2, fn2) => mcpSessionContextStorage.run(context2, fn2);
|
|
244802
244898
|
const getSessionContext = () => mcpSessionContextStorage.getStore() ?? {
|
|
244803
244899
|
machineId: readRequiredEnv("LODY_MCP_MACHINE_ID", "LODY_PREVIEW_MCP_MACHINE_ID"),
|
|
244804
244900
|
workspaceId: readRequiredEnv("LODY_MCP_WORKSPACE_ID", "LODY_PREVIEW_MCP_WORKSPACE_ID"),
|
|
@@ -244819,7 +244915,7 @@ ${result.stdout ?? ""}`;
|
|
|
244819
244915
|
}
|
|
244820
244916
|
return store;
|
|
244821
244917
|
};
|
|
244822
|
-
const withOperationStore = (
|
|
244918
|
+
const withOperationStore = (fn2) => runWithOperationStoreBusyRetry(() => fn2(getSharedOperationStore()));
|
|
244823
244919
|
const assertBatchSize = (length2, maximum) => {
|
|
244824
244920
|
if (length2 < 1 || length2 > maximum) {
|
|
244825
244921
|
throw new LodyOperationStoreError("BATCH_TOO_LARGE", `Batch item count must be between 1 and ${maximum}; received ${length2}.`, false);
|