lody 0.99.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/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 ew__default, { execFile, spawn as spawn$1, execFileSync } from "node:child_process";
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 _o, { Transform as Transform$1, Readable as Readable$1 } from "stream";
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 Ci from "zlib";
29
- import Ci__default from "zlib";
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 Qt from "node:fs/promises";
36
- import Qt__default, { readFile, readdir, rm, mkdir as mkdir$1, mkdtemp, chmod, writeFile, rename, stat, lstat, symlink, realpath, unlink, open, opendir, link } from "node:fs/promises";
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-BdifTDFO.js";
68
- import { r as runtimeManifest } from "./chunks/runtime-manifest-DZsDOOW3.js";
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 = (fn) => fn();
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(fn, props) {
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 fn();
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(fn, timeout2) {
773
- const t = setTimeout(fn, timeout2);
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(fn) {
1398
- if (this.isDebug) fn();
1397
+ logMsgIfDebug(fn2) {
1398
+ if (this.isDebug) fn2();
1399
1399
  }
1400
- wrap(fn) {
1400
+ wrap(fn2) {
1401
1401
  if (this.disabled) return void this._logger.warn("The client is disabled");
1402
- if (this._isInitialized) return fn();
1403
- this._initPromise.then(() => fn());
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(fn) {
2489
- if (this.debugMode) fn();
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, fn, options) {
4039
- if (!this.context) return fn();
4040
- return this.context.run(data, fn, options);
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 fn of fns) {
4257
- result = fn(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, fn, options) {
4278
- return this.storage.run(this.resolve(context2, options), fn);
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.99.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, fn) => {
4958
+ each(objectTraps, (key2, fn2) => {
4959
4959
  arrayTraps[key2] = function() {
4960
4960
  arguments[0] = arguments[0][0];
4961
- return fn.apply(this, arguments);
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(fn) {
27646
- this.parseArg = fn;
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(fn) {
27995
- this.parseArg = fn;
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 = ew__default;
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, fn, defaultValue) {
28327
+ argument(name2, description2, fn2, defaultValue) {
28318
28328
  const argument2 = this.createArgument(name2, description2);
28319
- if (typeof fn === "function") {
28320
- argument2.default(defaultValue).argParser(fn);
28329
+ if (typeof fn2 === "function") {
28330
+ argument2.default(defaultValue).argParser(fn2);
28321
28331
  } else {
28322
- argument2.default(fn);
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(fn) {
28399
- if (fn) {
28400
- this._exitCallback = fn;
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(fn) {
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 fn.apply(this, actionArgs);
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, fn, defaultValue) {
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 fn === "function") {
28523
- option2.default(defaultValue).argParser(fn);
28524
- } else if (fn instanceof RegExp) {
28525
- const regex2 = fn;
28526
- fn = (val, def) => {
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(fn);
28540
+ option2.default(defaultValue).argParser(fn2);
28531
28541
  } else {
28532
- option2.default(fn);
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, fn) {
28859
+ _chainOrCall(promise2, fn2) {
28850
28860
  if (promise2 && promise2.then && typeof promise2.then === "function") {
28851
- return promise2.then(() => fn());
28861
+ return promise2.then(() => fn2());
28852
28862
  }
28853
- return fn();
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 = _o;
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(fn) {
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 = fn.apply(self2, args2);
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, fn) {
34390
- if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
34391
- if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
34392
- else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);
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
- fn,
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, fn) {
34848
- var res = Stream.prototype.on.call(this, ev, fn);
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, fn) {
34870
- var res = Stream.prototype.removeListener.call(this, ev, fn);
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(fn) {
35916
+ exports$1.default = function(fn2) {
35907
35917
  return function(...args2) {
35908
35918
  var callback = args2.pop();
35909
- return fn.call(this, args2, callback);
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(fn) {
35930
- setTimeout(fn, 0);
35939
+ function fallback2(fn2) {
35940
+ setTimeout(fn2, 0);
35931
35941
  }
35932
35942
  function wrap(defer2) {
35933
- return (fn, ...args2) => defer2(() => fn(...args2));
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(fn) {
36025
- return fn[Symbol.toStringTag] === "AsyncFunction";
36034
+ function isAsync2(fn2) {
36035
+ return fn2[Symbol.toStringTag] === "AsyncFunction";
36026
36036
  }
36027
- function isAsyncGenerator(fn) {
36028
- return fn[Symbol.toStringTag] === "AsyncGenerator";
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(fn) {
36142
+ function once2(fn2) {
36133
36143
  function wrapper(...args2) {
36134
- if (fn === null) return;
36135
- var callFn = fn;
36136
- fn = null;
36144
+ if (fn2 === null) return;
36145
+ var callFn = fn2;
36146
+ fn2 = null;
36137
36147
  callFn.apply(this, args2);
36138
36148
  }
36139
- Object.assign(wrapper, fn);
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(fn) {
36255
+ function onlyOnce2(fn2) {
36246
36256
  return function(...args2) {
36247
- if (fn === null) throw new Error("Callback was already called.");
36248
- var callFn = fn;
36249
- fn = null;
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(fn) {
36667
- fn();
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 = _o;
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(fn) {
36759
- return fn(namespace);
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(fn) {
36766
- if (~modifiers.indexOf(fn)) return false;
36767
- modifiers.push(fn);
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(fn, options) {
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
- fn[key2] = options[key2];
36793
+ fn2[key2] = options[key2];
36784
36794
  }
36785
36795
  }
36786
- return fn;
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 fn = convert$1[graph[toModel].parent][toModel];
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
- fn = link2(convert$1[graph[cur].parent][cur], fn);
38855
+ fn2 = link2(convert$1[graph[cur].parent][cur], fn2);
38846
38856
  cur = graph[cur].parent;
38847
38857
  }
38848
- fn.conversion = path2;
38849
- return fn;
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(fn) {
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 fn(args2);
38886
+ return fn2(args2);
38877
38887
  };
38878
- if ("conversion" in fn) {
38879
- wrappedFn.conversion = fn.conversion;
38888
+ if ("conversion" in fn2) {
38889
+ wrappedFn.conversion = fn2.conversion;
38880
38890
  }
38881
38891
  return wrappedFn;
38882
38892
  }
38883
- function wrapRounded(fn) {
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 = fn(args2);
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 fn) {
38901
- wrappedFn.conversion = fn.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 fn = routes[toModel];
38917
- convert[fromModel][toModel] = wrapRounded(fn);
38918
- convert[fromModel][toModel].raw = wrapRaw(fn);
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(fn) {
39451
+ adapters = function create(fn2) {
39442
39452
  return function adapter(namespace) {
39443
39453
  try {
39444
- return enabled2(namespace, fn());
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 = Ci__default;
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(fn) {
40484
- if ("string" === typeof fn.displayName && fn.constructor.name) {
40485
- return fn.displayName;
40486
- } else if ("string" === typeof fn.name && fn.name) {
40487
- return fn.name;
40488
- }
40489
- if ("object" === typeof fn && fn.constructor && "string" === typeof fn.constructor.name) return fn.constructor.name;
40490
- var named = fn.toString(), type2 = toString2.call(fn).slice(8, -1);
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(fn) {
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 = fn.apply(this, arguments);
40512
- fn = null;
40521
+ value = fn2.apply(this, arguments);
40522
+ fn2 = null;
40513
40523
  return value;
40514
40524
  }
40515
- onetime2.displayName = name2(fn);
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(fn) {
41835
+ _function: function(fn2) {
41826
41836
  write("fn:");
41827
- if (isNativeFunction(fn)) {
41837
+ if (isNativeFunction(fn2)) {
41828
41838
  this.dispatch("[native]");
41829
41839
  } else {
41830
- this.dispatch(fn.toString());
41840
+ this.dispatch(fn2.toString());
41831
41841
  }
41832
41842
  if (options.respectFunctionNames !== false) {
41833
- this.dispatch("function-name:" + String(fn.name));
41843
+ this.dispatch("function-name:" + String(fn2.name));
41834
41844
  }
41835
41845
  if (options.respectFunctionProperties) {
41836
- this._object(fn);
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, fn) {
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(fn(arr2[i2], i2));
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, fn) {
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 fn.apply(this, arguments);
42219
- }, fn);
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(fn, moments) {
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][fn](res)) {
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 = Ci__default;
46561
+ const zlib = Qi__default;
46552
46562
  const hash2 = requireObjectHash();
46553
46563
  const MESSAGE = requireTripleBeam().MESSAGE;
46554
- const PassThrough2 = _o.PassThrough;
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 Qt__default.readFile(file2.path);
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(fn) {
47291
- processCleanupFn = fn;
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, fn) {
47502
- this.listeners[ev].push(fn);
47511
+ on(ev, fn2) {
47512
+ this.listeners[ev].push(fn2);
47503
47513
  }
47504
- removeListener(ev, fn) {
47514
+ removeListener(ev, fn2) {
47505
47515
  const list2 = this.listeners[ev];
47506
- const i2 = list2.indexOf(fn);
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 fn of this.listeners[ev]) {
47523
- ret = fn(code2, signal) === true || 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 fn = this.#sigListeners[sig];
47613
- if (fn) this.#process.on(sig, fn);
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) => fn(queryParams)
50242
+ refetch: (queryParams) => fn2(queryParams)
50233
50243
  });
50234
- const fn = async (queryParams) => {
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 fn();
50312
+ if (isMounted) await fn2();
50303
50313
  else onMount(value, () => {
50304
50314
  const timeoutId = setTimeout(async () => {
50305
50315
  if (!isMounted) {
50306
- await fn();
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 fn = (a, i2) => flatMap$4(f(a, i2), (b) => sync$1(() => array2[i2] = b));
62617
- return zipRight(forEachConcurrentDiscard(as2, fn, batching, false), succeed$2(array2));
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 fn = (a, i2) => map$4(f(a, i2), (b) => array2[i2] = b);
62775
- return zipRight(forEachConcurrentDiscard(as2, fn, batching, false, n), succeed$2(array2));
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 = Ci__default;
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 } = _o;
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 } = _o;
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 } = _o;
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 } = _o;
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 } = _o;
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: (fn, ms2) => setTimeout(fn, ms2),
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(fn) {
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 fn === "function") {
101381
- this[kEvents].loadend = fn;
101382
- this.addEventListener("loadend", fn);
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(fn) {
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 fn === "function") {
101397
- this[kEvents].error = fn;
101398
- this.addEventListener("error", fn);
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(fn) {
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 fn === "function") {
101413
- this[kEvents].loadstart = fn;
101414
- this.addEventListener("loadstart", fn);
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(fn) {
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 fn === "function") {
101429
- this[kEvents].progress = fn;
101430
- this.addEventListener("progress", fn);
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(fn) {
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 fn === "function") {
101445
- this[kEvents].load = fn;
101446
- this.addEventListener("load", fn);
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(fn) {
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 fn === "function") {
101461
- this[kEvents].abort = fn;
101462
- this.addEventListener("abort", fn);
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(fn) {
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 fn === "function") {
103987
- this.#events.open = fn;
103988
- this.addEventListener("open", fn);
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(fn) {
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 fn === "function") {
104003
- this.#events.error = fn;
104004
- this.addEventListener("error", fn);
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(fn) {
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 fn === "function") {
104019
- this.#events.close = fn;
104020
- this.addEventListener("close", fn);
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(fn) {
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 fn === "function") {
104035
- this.#events.message = fn;
104036
- this.addEventListener("message", fn);
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(fn) {
104592
+ set onopen(fn2) {
104583
104593
  if (this.#events.open) {
104584
104594
  this.removeEventListener("open", this.#events.open);
104585
104595
  }
104586
- if (typeof fn === "function") {
104587
- this.#events.open = fn;
104588
- this.addEventListener("open", fn);
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(fn) {
104606
+ set onmessage(fn2) {
104597
104607
  if (this.#events.message) {
104598
104608
  this.removeEventListener("message", this.#events.message);
104599
104609
  }
104600
- if (typeof fn === "function") {
104601
- this.#events.message = fn;
104602
- this.addEventListener("message", fn);
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(fn) {
104620
+ set onerror(fn2) {
104611
104621
  if (this.#events.error) {
104612
104622
  this.removeEventListener("error", this.#events.error);
104613
104623
  }
104614
- if (typeof fn === "function") {
104615
- this.#events.error = fn;
104616
- this.addEventListener("error", fn);
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(fn) {
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 fn.call(dispatcher2, {
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(fn) {
107354
- const run2 = this.remoteTransportOpQueue.then(fn, fn);
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 = (fn) => Promise.resolve().then(fn);
112763
- const nodefer = (fn) => fn();
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 fn = this[ASYNC] ? defer$1 : nodefer;
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) fn(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) fn(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) fn(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 = Ci__default.constants || {
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 Ci[mode2] !== "function") {
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 Ci[mode2](opts);
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(fn, thisp) {
116211
+ forEach(fn2, thisp) {
116202
116212
  thisp = thisp || this;
116203
116213
  for (let walker = this.head, i2 = 0; !!walker; i2++) {
116204
- fn.call(thisp, walker.value, i2, this);
116214
+ fn2.call(thisp, walker.value, i2, this);
116205
116215
  walker = walker.next;
116206
116216
  }
116207
116217
  }
116208
- forEachReverse(fn, thisp) {
116218
+ forEachReverse(fn2, thisp) {
116209
116219
  thisp = thisp || this;
116210
116220
  for (let walker = this.tail, i2 = this.length - 1; !!walker; i2--) {
116211
- fn.call(thisp, walker.value, i2, this);
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(fn, thisp) {
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(fn.call(thisp, walker.value, this));
116249
+ res.push(fn2.call(thisp, walker.value, this));
116240
116250
  walker = walker.next;
116241
116251
  }
116242
116252
  return res;
116243
116253
  }
116244
- mapReverse(fn, thisp) {
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(fn.call(thisp, walker.value, this));
116258
+ res.push(fn2.call(thisp, walker.value, this));
116249
116259
  walker = walker.prev;
116250
116260
  }
116251
116261
  return res;
116252
116262
  }
116253
- reduce(fn, initial) {
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 = fn(acc, walker.value, i2);
116275
+ acc = fn2(acc, walker.value, i2);
116266
116276
  walker = walker.next;
116267
116277
  }
116268
116278
  return acc;
116269
116279
  }
116270
- reduceReverse(fn, initial) {
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 = fn(acc, walker.value, i2);
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 Qt__default.mkdir(dir, {
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, fn) {
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(fn, {
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
- fn
117225
+ fn2
117216
117226
  ]);
117217
117227
  } else {
117218
- q.push(fn);
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
- fn
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(fn);
117242
+ l.add(fn2);
117233
117243
  } else {
117234
117244
  q.push(/* @__PURE__ */ new Set([
117235
- fn
117245
+ fn2
117236
117246
  ]));
117237
117247
  }
117238
117248
  }
117239
117249
  }
117240
- return this.#run(fn);
117250
+ return this.#run(fn2);
117241
117251
  }
117242
- #getQueues(fn) {
117243
- const res = this.#reservations.get(fn);
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(fn) {
117255
- const { paths, dirs } = this.#getQueues(fn);
117256
- return paths.every((q) => q && q[0] === fn) && dirs.every((q) => q && q[0] instanceof Set && q[0].has(fn));
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(fn) {
117259
- if (this.#running.has(fn) || !this.check(fn)) {
117268
+ #run(fn2) {
117269
+ if (this.#running.has(fn2) || !this.check(fn2)) {
117260
117270
  return false;
117261
117271
  }
117262
- this.#running.add(fn);
117263
- fn(() => this.#clear(fn));
117272
+ this.#running.add(fn2);
117273
+ fn2(() => this.#clear(fn2));
117264
117274
  return true;
117265
117275
  }
117266
- #clear(fn) {
117267
- if (!this.#running.has(fn)) {
117276
+ #clear(fn2) {
117277
+ if (!this.#running.has(fn2)) {
117268
117278
  return false;
117269
117279
  }
117270
- const res = this.#reservations.get(fn);
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] !== fn) {
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(fn);
117319
+ q0.delete(fn2);
117310
117320
  }
117311
117321
  }
117312
- this.#running.delete(fn);
117313
- next2.forEach((fn2) => this.#run(fn2));
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 = (fn) => {
117842
+ const callSync = (fn2) => {
117833
117843
  try {
117834
117844
  return [
117835
117845
  null,
117836
- fn()
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.154.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.274";
118533
+ const version$6 = "2.1.280";
118524
118534
  const platforms = {
118525
118535
  "darwin-arm64": {
118526
118536
  "binary": "claude",
118527
- "checksum": "3509913f9d1576316c8845b88837f8fd3bbbcf26625833ac82cfb6b8985da94a",
118528
- "size": 214149552
118537
+ "checksum": "387a5c5dcdbb815085edf0baf79591f9d8894efe922bceaf3d75b1b08055229d",
118538
+ "size": 217254576
118529
118539
  },
118530
118540
  "darwin-x64": {
118531
118541
  "binary": "claude",
118532
- "checksum": "b18e8c9d7666d8987a174ac65e0019f4ba6befa73d2f75c05cbe92e5093431eb",
118533
- "size": 222955360
118542
+ "checksum": "c1d32d87630482250633208ab77855429b24010ae3086a7ff7539b57b93168d4",
118543
+ "size": 225565024
118534
118544
  },
118535
118545
  "linux-arm64": {
118536
118546
  "binary": "claude",
118537
- "checksum": "2db904daea17addff9de557ba26a725916888aa7b546e2c5dd989c20d9d49ab3",
118538
- "size": 230482160
118547
+ "checksum": "92f2b4fd05d0bdcf7b9a0d4e0ecef4a1e4b368b290cd8fd07cff9a50013f45a2",
118548
+ "size": 233103352
118539
118549
  },
118540
118550
  "linux-x64": {
118541
118551
  "binary": "claude",
118542
- "checksum": "15e2d05148f801b5774032faad87e624ecd172e9903288bda448b892eb58fa07",
118543
- "size": 230580536
118552
+ "checksum": "1e08503dbdf3c2cb0d706d32f3408277388d1c76ef108673e8fe42c1b322925b",
118553
+ "size": 233709640
118544
118554
  },
118545
118555
  "linux-arm64-musl": {
118546
118556
  "binary": "claude",
118547
- "checksum": "5d50bd99667904879d95142dbd604b24d0273c13fb79f3abc2346cb00048049f",
118548
- "size": 223098528
118557
+ "checksum": "6a9f349dccd1c74ab854f1877c5ebdf074998571d0177e26c1f7f46f29e0f971",
118558
+ "size": 225457992
118549
118559
  },
118550
118560
  "linux-x64-musl": {
118551
118561
  "binary": "claude",
118552
- "checksum": "9f64fb9e79752c676234087573f05a794e2a8fbd49c91482c6567be258752e15",
118553
- "size": 224501720
118562
+ "checksum": "8d25ffbf600882d7b985706cc10ea45995060637ed009b5700b65e162bb00b96",
118563
+ "size": 227467360
118554
118564
  },
118555
118565
  "win32-x64": {
118556
118566
  "binary": "claude.exe",
118557
- "checksum": "4e4c1746aff835bb05e5ed14cda72d21ee6fbda4147aa99b3135718614da117e",
118558
- "size": 233691808
118567
+ "checksum": "0e4195524b73eb77efbdf3e2b36de5322a29f0ca575dfd2d9b4f946b1d425469",
118568
+ "size": 237100192
118559
118569
  },
118560
118570
  "win32-arm64": {
118561
118571
  "binary": "claude.exe",
118562
- "checksum": "da93e462c34ec86efee80c70ac791d3232ed98bd44c6abbafb1b5ffa2a9185c4",
118563
- "size": 224916128
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.274";
118580
+ const version$5 = "0.3.280";
118571
118581
  const claudeSdkPackageJson = {
118572
118582
  version: version$5
118573
118583
  };
118574
- const sdkVersion = "0.3.274";
118575
- const version$4 = "2.1.274";
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.274.tar.zst",
118579
- "sha256": "81f779d99da5acc67256cb76b95623b819da38780075fce2d074b154cc98d432",
118580
- "size": 78586296
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.274.tar.zst",
118584
- "sha256": "e8d9d7ed00c5011f2608007908a666d259955d3ab9e643e1521528e47e8a9743",
118585
- "size": 82534099
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.274.tar.zst",
118589
- "sha256": "58fe3450c7e8fea17b4d0b8913986d09e61d88c15f3269dee9728c0f8e50995a",
118590
- "size": 88429849
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.274.tar.zst",
118594
- "sha256": "fcb13948a2ad11ec473f5b2a041dd23a918c2aa855593d850b7714017d6da35a",
118595
- "size": 88486336
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.274.tar.zst",
118599
- "sha256": "c98eaaa7621354b4fcfae711e8fe8dbf308f103fe217157744c6c557140da751",
118600
- "size": 86620353
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.274.tar.zst",
118604
- "sha256": "bad9a39c6d4e408da22b8fd33b1153610aef7f8bfe01c02f03b75a72ca2bc208",
118605
- "size": 86783220
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.274.tar.zst",
118609
- "sha256": "db4ee68f49eb522fb82b66353551e0e263528962a323cfcbcddb70ed71bb59da",
118610
- "size": 88332921
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.274.tar.zst",
118614
- "sha256": "bde43b6ba0925a83dcfd1bb39a8f44409ef5d739cb8579df072e2023ed707cc9",
118615
- "size": 91391135
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.154.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": "03c35174e6562645dfed978bf72556f8e5cb99e10b08da19e99279bad5f28b46",
118628
- "size": 81072808
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": "5d312224e73091a68b95dff962e527bbc6e46dcf60a62e5d362ff4bfae3a5c34",
118633
- "size": 89126142
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": "2538433493c16e13a00820a4130d75da317098c0d0c293c464210808b20ce0f9",
118638
- "size": 86224482
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": "68841a983ff470ae5b84922490b254a53723415e31dd8b8ea7b0811addb0086d",
118643
- "size": 92155632
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": "c5f4b5d6c159b0cdd2e2c854f9c0622927caa99c6b796854fda94d10ec3f4cbd",
118648
- "size": 94862813
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": "83e1289a2615836a7f3ef72513211df48293c0d104c95abd233dc95e7d516604",
118653
- "size": 102338279
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.0-lody.604d581e5552";
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.0-lody.604d581e5552-89c4a571d63be816.tar.zst",
118664
- "sha256": "89c4a571d63be816cacbd42f63e0930b55081f8d955032c87d187fe5be72affe",
118665
- "size": 3276949,
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.1.0-lody.d91f9db0c6dc";
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.1.0-lody.d91f9db0c6dc-a77777e554326765.tar.zst",
118678
- "sha256": "a77777e554326765defdaee121971979814a59c6e936be325468e4eff7f3437e",
118679
- "size": 39451191,
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: "70aababd9c901d91f3565e19f7f389a8670c05ad819e41c2946d775f8ecee8e6",
118915
- size: 50707087,
118924
+ sha256: "15c99e54532904f452a58717f1cf19de94030c56b904976b351356bd709068f2",
118925
+ size: 51521118,
118916
118926
  compression: "zstd",
118917
118927
  cmd: "grok",
118918
- executableSha256: "9cd26b579840f0f5c9148a8059ad651904c08b41b7f2ef0b4ec04b9ba898844e",
118919
- executableSize: 143016096
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: "cfd7f9165f06808e766088571c7e29ee3afcb4a33af6eb5e1bec704712a2b1b1",
118924
- size: 55658803,
118933
+ sha256: "dacf51b674037e273faf1b75b7be54667cf47a84a827958bf813c9fb25fa3f4e",
118934
+ size: 56521318,
118925
118935
  compression: "zstd",
118926
118936
  cmd: "grok",
118927
- executableSha256: "4125f6a9a7524396430f8904a0855100d12a921fcfca4f4380853a39f4ff1d03",
118928
- executableSize: 160175824
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: "c1af4513ad7bc0e9d7d4f59540e0a76f7f57f38f1940bc17c9886824532e485a",
118933
- size: 52918676,
118942
+ sha256: "d544e3452ec8a3d0dd3ff9d852350828aa4935dd101ffd8f2481521a9acbb55b",
118943
+ size: 53769611,
118934
118944
  compression: "zstd",
118935
118945
  cmd: "grok",
118936
- executableSha256: "39ab87666877d64ef3a40aa60fbe0c3b6a6acd7001b78fe60e2c76bb6cfc4a94",
118937
- executableSize: 136090504
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: "565d2463ca2411bdcfe84a6a0dc5e388ed1347004e5e9e6cbb800339a4d5ca5b",
118942
- size: 55948155,
118951
+ sha256: "129b5ca9646ae014fd572f7ee4ebe812d9881549a4fb0a705c8aad59b2f1cb45",
118952
+ size: 56793870,
118943
118953
  compression: "zstd",
118944
118954
  cmd: "grok",
118945
- executableSha256: "be5905e107d2b8b5f3c142d21ecfe4c8fd32a913d2fd551b788707930c4dc80d",
118946
- executableSize: 163035648
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: "d8b9ef499ce54510c49c1104d0f42ec6573828f4a10f019d8ba4518831eaa7c5",
118951
- size: 49392602,
118960
+ sha256: "5742bad3f4f52b7011180f5b7b7137e1f6887336486f6ecc3cc9cf96dcf1488c",
118961
+ size: 50197344,
118952
118962
  compression: "zstd",
118953
118963
  cmd: "grok.exe",
118954
- executableSha256: "2a633b50420838ba0b31bdbaf9137f4ee8726f1ce4d8e9af21b11af1579909b7",
118955
- executableSize: 130797568
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: "353d0f9a88cb88f341983da031026a13b9a80ffb2cc43596945b80e1aa5121aa",
118960
- size: 52683977,
118969
+ sha256: "f7a2a162c64dbf4a1aa1d505bb12967e6c97c9974a0a9eecbd4eee318f468772",
118970
+ size: 53535773,
118961
118971
  compression: "zstd",
118962
118972
  cmd: "grok.exe",
118963
- executableSha256: "c5035f11c15e939cd02e61134b6622c92c09ae522932ace725e3cee0ff2b434c",
118964
- executableSize: 151283712
118973
+ executableSha256: "be64017f7f5f5b85cd10b59eebcb596af8d3dcde077aad08aa8eae8defdc5e2a",
118974
+ executableSize: 153720832
118965
118975
  }
118966
118976
  }
118967
118977
  }
@@ -120936,20 +120946,20 @@ ${value}`;
120936
120946
  };
120937
120947
  const parsed = DaemonUpgradeIntentSchema.parse(value);
120938
120948
  const dir = path.dirname(DAEMON_UPGRADE_INTENT_FILE);
120939
- await Qt.mkdir(dir, {
120949
+ await fn.mkdir(dir, {
120940
120950
  recursive: true
120941
120951
  });
120942
120952
  const tmpPath = path.join(dir, `.${path.basename(DAEMON_UPGRADE_INTENT_FILE)}.${process.pid}.tmp`);
120943
- await Qt.writeFile(tmpPath, `${JSON.stringify(parsed, null, 2)}
120953
+ await fn.writeFile(tmpPath, `${JSON.stringify(parsed, null, 2)}
120944
120954
  `, {
120945
120955
  encoding: "utf8",
120946
120956
  mode: 384
120947
120957
  });
120948
- await Qt.rename(tmpPath, DAEMON_UPGRADE_INTENT_FILE);
120958
+ await fn.rename(tmpPath, DAEMON_UPGRADE_INTENT_FILE);
120949
120959
  };
120950
120960
  const readDaemonUpgradeIntent = async () => {
120951
120961
  try {
120952
- const raw2 = await Qt.readFile(DAEMON_UPGRADE_INTENT_FILE, "utf8");
120962
+ const raw2 = await fn.readFile(DAEMON_UPGRADE_INTENT_FILE, "utf8");
120953
120963
  const parsed = DaemonUpgradeIntentSchema.safeParse(JSON.parse(raw2));
120954
120964
  return parsed.success ? parsed.data : null;
120955
120965
  } catch {
@@ -120958,7 +120968,7 @@ ${value}`;
120958
120968
  };
120959
120969
  const clearDaemonUpgradeIntent = async () => {
120960
120970
  try {
120961
- await Qt.unlink(DAEMON_UPGRADE_INTENT_FILE);
120971
+ await fn.unlink(DAEMON_UPGRADE_INTENT_FILE);
120962
120972
  } catch {
120963
120973
  }
120964
120974
  };
@@ -124039,13 +124049,13 @@ ${incoming}`).output;
124039
124049
  return await new Promise((resolve2, rejectPromise) => {
124040
124050
  let buffer2 = "";
124041
124051
  let settled = false;
124042
- const settle = (fn) => {
124052
+ const settle = (fn2) => {
124043
124053
  if (settled) return;
124044
124054
  settled = true;
124045
124055
  clearTimeout(timer2);
124046
124056
  handshakePipe.removeListener("data", onData);
124047
124057
  child.removeListener("exit", onExit2);
124048
- fn();
124058
+ fn2();
124049
124059
  };
124050
124060
  const timer2 = setTimeout(() => {
124051
124061
  child.kill("SIGKILL");
@@ -132512,7 +132522,7 @@ ${error2.message}` : execaMessage;
132512
132522
  function requireBufferStream() {
132513
132523
  if (hasRequiredBufferStream) return bufferStream;
132514
132524
  hasRequiredBufferStream = 1;
132515
- const { PassThrough: PassThroughStream } = _o;
132525
+ const { PassThrough: PassThroughStream } = Fo;
132516
132526
  bufferStream = (options) => {
132517
132527
  options = {
132518
132528
  ...options
@@ -132561,7 +132571,7 @@ ${error2.message}` : execaMessage;
132561
132571
  if (hasRequiredGetStream) return getStream.exports;
132562
132572
  hasRequiredGetStream = 1;
132563
132573
  const { constants: BufferConstants } = require$$0$6;
132564
- const stream2 = _o;
132574
+ const stream2 = Fo;
132565
132575
  const { promisify: promisify2 } = require$$0$5;
132566
132576
  const bufferStream2 = requireBufferStream();
132567
132577
  const streamPipelinePromisified = promisify2(stream2.pipeline);
@@ -132621,7 +132631,7 @@ ${error2.message}` : execaMessage;
132621
132631
  function requireMergeStream() {
132622
132632
  if (hasRequiredMergeStream) return mergeStream;
132623
132633
  hasRequiredMergeStream = 1;
132624
- const { PassThrough: PassThrough2 } = _o;
132634
+ const { PassThrough: PassThrough2 } = Fo;
132625
132635
  mergeStream = function() {
132626
132636
  var sources = [];
132627
132637
  var output = new PassThrough2({
@@ -133217,11 +133227,11 @@ ${error2.message}` : execaMessage;
133217
133227
  this.waiting = [];
133218
133228
  this.error = null;
133219
133229
  }
133220
- Pend.prototype.go = function(fn) {
133230
+ Pend.prototype.go = function(fn2) {
133221
133231
  if (this.pending < this.max) {
133222
- pendGo(this, fn);
133232
+ pendGo(this, fn2);
133223
133233
  } else {
133224
- this.waiting.push(fn);
133234
+ this.waiting.push(fn2);
133225
133235
  }
133226
133236
  };
133227
133237
  Pend.prototype.wait = function(cb) {
@@ -133255,8 +133265,8 @@ ${error2.message}` : execaMessage;
133255
133265
  listener(self2.error);
133256
133266
  }
133257
133267
  }
133258
- function pendGo(self2, fn) {
133259
- fn(pendHold(self2));
133268
+ function pendGo(self2, fn2) {
133269
+ fn2(pendHold(self2));
133260
133270
  }
133261
133271
  return pend;
133262
133272
  }
@@ -133266,7 +133276,7 @@ ${error2.message}` : execaMessage;
133266
133276
  hasRequiredFdSlicer = 1;
133267
133277
  var fs2 = fs__default$1;
133268
133278
  var util2 = require$$0$5;
133269
- var stream2 = _o;
133279
+ var stream2 = Fo;
133270
133280
  var Readable2 = stream2.Readable;
133271
133281
  var Writable = stream2.Writable;
133272
133282
  var PassThrough2 = stream2.PassThrough;
@@ -133832,14 +133842,14 @@ ${error2.message}` : execaMessage;
133832
133842
  if (hasRequiredYauzl) return yauzl;
133833
133843
  hasRequiredYauzl = 1;
133834
133844
  var fs2 = fs__default$1;
133835
- var zlib = Ci__default;
133845
+ var zlib = Qi__default;
133836
133846
  var fd_slicer = requireFdSlicer();
133837
133847
  var crc322 = requireBufferCrc32();
133838
133848
  var util2 = require$$0$5;
133839
133849
  var EventEmitter2 = require$$0$7.EventEmitter;
133840
- var Transform2 = _o.Transform;
133841
- var PassThrough2 = _o.PassThrough;
133842
- var Writable = _o.Writable;
133850
+ var Transform2 = Fo.Transform;
133851
+ var PassThrough2 = Fo.PassThrough;
133852
+ var Writable = Fo.Writable;
133843
133853
  yauzl.open = open2;
133844
133854
  yauzl.fromFd = fromFd;
133845
133855
  yauzl.fromBuffer = fromBuffer;
@@ -135104,6 +135114,15 @@ ${error2.message}` : execaMessage;
135104
135114
  const ZSTD_SESSION_ARTIFACT = "session.jsonl.zstd";
135105
135115
  const DSH_NODE_EXECUTABLE_ENV = "LODY_DSH_NODE_EXECUTABLE";
135106
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();
135107
135126
  function resolveDeepSeekHarnessSpawn(options) {
135108
135127
  const { command: command2, args: args2, env: env2, workdir } = options;
135109
135128
  if ((options.platform ?? process.platform) !== "win32" || command2 !== "npx" || !env2[DSH_NODE_EXECUTABLE_ENV]) {
@@ -135137,6 +135156,8 @@ ${error2.message}` : execaMessage;
135137
135156
  return {
135138
135157
  command: process.execPath,
135139
135158
  args: [
135159
+ "--import",
135160
+ `data:text/javascript;base64,${encodeBase64$1(HIDE_WINDOWS_CHILD_CONSOLES)}`,
135140
135161
  entry,
135141
135162
  ...args2
135142
135163
  ]
@@ -135155,7 +135176,7 @@ const executable = process.env.${DSH_NODE_EXECUTABLE_ENV};
135155
135176
  const encodedArgs = process.env.${DSH_NODE_ARGS_ENV};
135156
135177
  if (!executable || !encodedArgs) throw new Error('Missing Lody DSH runtime launch environment');
135157
135178
  const args = JSON.parse(Buffer.from(encodedArgs, 'base64').toString('utf8'));
135158
- const child = spawn(executable, args, { env: process.env, stdio: 'inherit' });
135179
+ const child = spawn(executable, args, { env: process.env, stdio: 'inherit', windowsHide: true });
135159
135180
  for (const signal of ['SIGINT', 'SIGTERM']) {
135160
135181
  process.on(signal, () => child.kill(signal));
135161
135182
  }
@@ -135171,7 +135192,8 @@ child.on('exit', (code) => {
135171
135192
  }
135172
135193
  function createDeepSeekHarnessBootstrapSource() {
135173
135194
  return `
135174
- import { readFile } from 'node:fs/promises';
135195
+ ${HIDE_WINDOWS_CHILD_CONSOLES}
135196
+ import { readFile, realpath } from 'node:fs/promises';
135175
135197
  import { delimiter, dirname, join } from 'node:path';
135176
135198
  import { pathToFileURL } from 'node:url';
135177
135199
 
@@ -135196,6 +135218,34 @@ if (!entryPath) {
135196
135218
  );
135197
135219
  }
135198
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
+
135199
135249
  const dshArgs = process.argv.slice(1);
135200
135250
  process.argv = [process.execPath, entryPath, ...dshArgs];
135201
135251
  const dsh = await import(pathToFileURL(entryPath).href);
@@ -135347,6 +135397,7 @@ await dsh.runCli();
135347
135397
  }
135348
135398
  };
135349
135399
  const BUILTIN_BUB_CAPABILITY_SOURCE_VERSION = "builtin-bub:acp";
135400
+ const DIMCODE_VERSION = "0.5.10";
135350
135401
  const NPX_CACHE_MODE_ARG = "--prefer-offline";
135351
135402
  function resolveRegistryNpxPackage(distribution, platform2 = process.platform, arch = process.arch) {
135352
135403
  return distribution.platformPackages?.[platform2]?.[arch] ?? distribution.package;
@@ -135404,6 +135455,9 @@ await dsh.runCli();
135404
135455
  const baseUrl = input2.env?.[DEEPSEEK_HARNESS_BASE_URL_ENV];
135405
135456
  return baseUrl?.trim() ? `${DEEPSEEK_HARNESS_CAPABILITY_SOURCE_VERSION}+endpoint:${createHash("sha256").update(baseUrl).digest("hex").slice(0, 12)}` : DEEPSEEK_HARNESS_CAPABILITY_SOURCE_VERSION;
135406
135457
  }
135458
+ if (input2.agentType === "dimcode") {
135459
+ return `builtin-dimcode:${DIMCODE_VERSION}`;
135460
+ }
135407
135461
  if (input2.agentType === "bub") {
135408
135462
  return BUILTIN_BUB_CAPABILITY_SOURCE_VERSION;
135409
135463
  }
@@ -135574,6 +135628,19 @@ await dsh.runCli();
135574
135628
  capabilitySourceVersion: getAcpCapabilitySourceVersion(input2)
135575
135629
  };
135576
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
+ }
135577
135644
  if (input2.agentType === "bub") {
135578
135645
  return {
135579
135646
  command: "bub",
@@ -136752,10 +136819,10 @@ ${fallbackStderrTail}` : errorMessage2;
136752
136819
  get queued() {
136753
136820
  return this.waiters.length;
136754
136821
  }
136755
- async run(options, fn) {
136822
+ async run(options, fn2) {
136756
136823
  await this.acquire(options);
136757
136824
  try {
136758
- return await fn();
136825
+ return await fn2();
136759
136826
  } finally {
136760
136827
  this.release();
136761
136828
  }
@@ -136825,7 +136892,7 @@ ${fallbackStderrTail}` : errorMessage2;
136825
136892
  defaultGate ??= new AcpSessionStartGate();
136826
136893
  return defaultGate;
136827
136894
  };
136828
- const withAcpSessionStartSlot = (options, fn) => getAcpSessionStartGate().run(options, fn);
136895
+ const withAcpSessionStartSlot = (options, fn2) => getAcpSessionStartGate().run(options, fn2);
136829
136896
  const createAcpClient = async (options) => {
136830
136897
  const sessionId = options.sessionId ?? v4();
136831
136898
  options.logger.debug(`[${sessionId}] createAcpClient: creating AgentClient`);
@@ -138899,7 +138966,7 @@ ${fallbackStderrTail}` : errorMessage2;
138899
138966
  }
138900
138967
  }
138901
138968
  const inProcessTails = /* @__PURE__ */ new Map();
138902
- async function withInProcessQueue(key2, fn) {
138969
+ async function withInProcessQueue(key2, fn2) {
138903
138970
  const prev = inProcessTails.get(key2) ?? Promise.resolve();
138904
138971
  let release2;
138905
138972
  const mine = new Promise((resolve2) => {
@@ -138909,7 +138976,7 @@ ${fallbackStderrTail}` : errorMessage2;
138909
138976
  inProcessTails.set(key2, tail2);
138910
138977
  await prev;
138911
138978
  try {
138912
- return await fn();
138979
+ return await fn2();
138913
138980
  } finally {
138914
138981
  release2();
138915
138982
  if (inProcessTails.get(key2) === tail2) {
@@ -138918,7 +138985,7 @@ ${fallbackStderrTail}` : errorMessage2;
138918
138985
  }
138919
138986
  }
138920
138987
  const heldLockPaths = new AsyncLocalStorage$1();
138921
- async function withFileLock(lockName, fn, options = {}) {
138988
+ async function withFileLock(lockName, fn2, options = {}) {
138922
138989
  const { timeout: timeout2 = 3e4, retryDelay = 100, maxRetryDelay = 2e3, locksDir: locksDirOverride } = options;
138923
138990
  const locksDir = resolveLocksDir(locksDirOverride);
138924
138991
  ensureLocksDir(locksDir);
@@ -138943,7 +139010,7 @@ ${fallbackStderrTail}` : errorMessage2;
138943
139010
  currentDelay = Math.min(currentDelay * 1.5, maxRetryDelay);
138944
139011
  }
138945
139012
  try {
138946
- return await fn();
139013
+ return await fn2();
138947
139014
  } finally {
138948
139015
  releaseLock(lockPath);
138949
139016
  }
@@ -139399,8 +139466,8 @@ main().catch(() => {});
139399
139466
  const DEFAULT_ARCHIVE_BACKUP_AUTHOR_NAME = "Lody Archive";
139400
139467
  const DEFAULT_ARCHIVE_BACKUP_AUTHOR_EMAIL = "archive@lody.ai";
139401
139468
  const GIT_OPERATION_TIMEOUT_MS = 10 * 60 * 1e3;
139402
- async function withRepoLock(repoId, fn) {
139403
- return withFileLock(`worktree-${repoId}`, fn, {
139469
+ async function withRepoLock(repoId, fn2) {
139470
+ return withFileLock(`worktree-${repoId}`, fn2, {
139404
139471
  timeout: 12e4
139405
139472
  });
139406
139473
  }
@@ -148811,9 +148878,9 @@ ${withCauses}`;
148811
148878
  };
148812
148879
  }
148813
148880
  const forkOperationLocks = /* @__PURE__ */ new Map();
148814
- async function withForkOperationLock(targetSessionId, fn) {
148881
+ async function withForkOperationLock(targetSessionId, fn2) {
148815
148882
  const previous = forkOperationLocks.get(targetSessionId) ?? Promise.resolve();
148816
- const run2 = previous.then(fn);
148883
+ const run2 = previous.then(fn2);
148817
148884
  const tail2 = run2.then(() => void 0, () => void 0);
148818
148885
  forkOperationLocks.set(targetSessionId, tail2);
148819
148886
  try {
@@ -151155,11 +151222,11 @@ ${withCauses}`;
151155
151222
  ...this.deliveryChains.values()
151156
151223
  ]);
151157
151224
  }
151158
- withStore(fn) {
151159
- if (this.store) return fn(this.store);
151225
+ withStore(fn2) {
151226
+ if (this.store) return fn2(this.store);
151160
151227
  const store = this.storeFactory();
151161
151228
  try {
151162
- return fn(store);
151229
+ return fn2(store);
151163
151230
  } finally {
151164
151231
  store.close();
151165
151232
  }
@@ -154675,13 +154742,13 @@ ${withCauses}`;
154675
154742
  });
154676
154743
  }
154677
154744
  handleTransition(transition) {
154678
- for (const fn of this._onTransitionFns.values()) {
154679
- fn(transition);
154745
+ for (const fn2 of this._onTransitionFns.values()) {
154746
+ fn2(transition);
154680
154747
  }
154681
154748
  }
154682
- addOnTransitionHandler(fn) {
154749
+ addOnTransitionHandler(fn2) {
154683
154750
  const id2 = this._transitionHandlerCounter++;
154684
- this._onTransitionFns.set(id2, fn);
154751
+ this._onTransitionFns.set(id2, fn2);
154685
154752
  return () => this._onTransitionFns.delete(id2);
154686
154753
  }
154687
154754
  getCurrentAuthClaims() {
@@ -159128,6 +159195,16 @@ ${withCauses}`;
159128
159195
  cacheReadInputTokenCost: 1e-6,
159129
159196
  outputCostPerToken: 5e-5
159130
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
+ },
159131
159208
  "gpt-5.6": {
159132
159209
  inputCostPerToken: 5e-6,
159133
159210
  cacheReadInputTokenCost: 5e-7,
@@ -160207,7 +160284,7 @@ ${part.truncated ? TRUNCATION_MARKER : ""}${part.content}`).join("\n\n");
160207
160284
  const effectiveSelector = normalizeCliValue(selector) ?? normalizeCliValue(process.env.LODY_WORKSPACE_ID);
160208
160285
  return selectWorkspaceSummary(workspaces, effectiveSelector);
160209
160286
  }
160210
- async function withWorkspaceManager$1(auth, workspace, loggerName, fn) {
160287
+ async function withWorkspaceManager$1(auth, workspace, loggerName, fn2) {
160211
160288
  if (!LODY_AUTH_URL) {
160212
160289
  throw new Error("Cloud workspace commands require LODY_AUTH_URL");
160213
160290
  }
@@ -160225,7 +160302,7 @@ ${part.truncated ? TRUNCATION_MARKER : ""}${part.content}`).join("\n\n");
160225
160302
  })
160226
160303
  });
160227
160304
  try {
160228
- return await fn(manager);
160305
+ return await fn2(manager);
160229
160306
  } finally {
160230
160307
  await manager.cleanUp({
160231
160308
  fast: true,
@@ -162607,7 +162684,8 @@ ${part.truncated ? TRUNCATION_MARKER : ""}${part.content}`).join("\n\n");
162607
162684
  "claude",
162608
162685
  "codex",
162609
162686
  "grok",
162610
- "bub"
162687
+ "bub",
162688
+ "dimcode"
162611
162689
  ]);
162612
162690
  function inferAgentConfigCliType(agentType) {
162613
162691
  const normalized = normalizeCliValue(agentType)?.toLowerCase();
@@ -163683,7 +163761,7 @@ ${entry.text}`).join("\n\n");
163683
163761
  machineName: authInfo.machine.machineName
163684
163762
  };
163685
163763
  }
163686
- async function withWorkspaceManager(auth, workspace, fn) {
163764
+ async function withWorkspaceManager(auth, workspace, fn2) {
163687
163765
  if (!LODY_AUTH_URL) {
163688
163766
  throw new Error("Cloud session commands require LODY_AUTH_URL");
163689
163767
  }
@@ -163701,7 +163779,7 @@ ${entry.text}`).join("\n\n");
163701
163779
  })
163702
163780
  });
163703
163781
  try {
163704
- return await fn(manager);
163782
+ return await fn2(manager);
163705
163783
  } finally {
163706
163784
  await manager.cleanUp({
163707
163785
  fast: true,
@@ -164472,10 +164550,10 @@ ${entry.text}`).join("\n\n");
164472
164550
  await client2.start();
164473
164551
  return client2;
164474
164552
  }
164475
- async function withMachineRpcClient(args2, fn) {
164553
+ async function withMachineRpcClient(args2, fn2) {
164476
164554
  const client2 = await createMachineRpcClient(args2);
164477
164555
  try {
164478
- return await fn(client2);
164556
+ return await fn2(client2);
164479
164557
  } finally {
164480
164558
  client2.stop();
164481
164559
  }
@@ -166413,11 +166491,11 @@ ${entry.text}`).join("\n\n");
166413
166491
  return null;
166414
166492
  }
166415
166493
  try {
166416
- const stat2 = await Qt.stat(absolutePath);
166494
+ const stat2 = await fn.stat(absolutePath);
166417
166495
  if (!stat2.isFile() || stat2.size > (options?.maxBytes ?? defaultMaxTextFileBytes)) {
166418
166496
  return null;
166419
166497
  }
166420
- const content = await Qt.readFile(absolutePath);
166498
+ const content = await fn.readFile(absolutePath);
166421
166499
  if (content.includes(0)) {
166422
166500
  return null;
166423
166501
  }
@@ -167397,9 +167475,9 @@ ${entry.text}`).join("\n\n");
167397
167475
  };
167398
167476
  });
167399
167477
  }
167400
- async serializeByAbsolutePath(absolutePath, fn) {
167478
+ async serializeByAbsolutePath(absolutePath, fn2) {
167401
167479
  const prior = this.writeChainByAbsolutePath.get(absolutePath) ?? Promise.resolve();
167402
- const run2 = prior.then(fn, fn);
167480
+ const run2 = prior.then(fn2, fn2);
167403
167481
  const tail2 = run2.then(() => void 0, () => void 0);
167404
167482
  this.writeChainByAbsolutePath.set(absolutePath, tail2);
167405
167483
  try {
@@ -168829,10 +168907,14 @@ ${entry.text}`).join("\n\n");
168829
168907
  }
168830
168908
  async function writeFileAtomically(absolutePath, bytes2, workspacePath) {
168831
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);
168832
168911
  try {
168833
168912
  await writeFile(temporaryPath, bytes2, {
168834
168913
  mode: 438
168835
168914
  });
168915
+ if (preserveMode !== void 0) {
168916
+ await chmod(temporaryPath, preserveMode);
168917
+ }
168836
168918
  await rename(temporaryPath, absolutePath);
168837
168919
  } catch (error2) {
168838
168920
  await unlink(temporaryPath).catch(() => void 0);
@@ -170812,7 +170894,7 @@ ${entry.text}`).join("\n\n");
170812
170894
  }
170813
170895
  return bytes2;
170814
170896
  };
170815
- const withTemporaryACPFile = async (logger2, fileName, bytes2, fn) => {
170897
+ const withTemporaryACPFile = async (logger2, fileName, bytes2, fn2) => {
170816
170898
  const dir = await fs__default$1.promises.mkdtemp(path__default$1.join(os__default$1.tmpdir(), "lody-acp-output-"));
170817
170899
  const safeFileName = sanitizeAttachmentFileName(fileName);
170818
170900
  const absolutePath = path__default$1.join(dir, safeFileName);
@@ -170820,7 +170902,7 @@ ${entry.text}`).join("\n\n");
170820
170902
  await fs__default$1.promises.writeFile(absolutePath, bytes2, {
170821
170903
  mode: 384
170822
170904
  });
170823
- return await fn(absolutePath, safeFileName);
170905
+ return await fn2(absolutePath, safeFileName);
170824
170906
  } finally {
170825
170907
  await fs__default$1.promises.rm(dir, {
170826
170908
  recursive: true,
@@ -172427,11 +172509,11 @@ ${entry.text}`).join("\n\n");
172427
172509
  }
172428
172510
  return succeed(cached2.snapshot);
172429
172511
  });
172430
- const mutate2 = (fn) => tryPromise({
172512
+ const mutate2 = (fn2) => tryPromise({
172431
172513
  try: async () => {
172432
172514
  const run2 = async () => await withFileLock(lockName, async () => {
172433
172515
  const snapshot = await runPromise(readRecoveringFromDisk());
172434
- const updated = await fn(snapshot);
172516
+ const updated = await fn2(snapshot);
172435
172517
  await writeCatalogFile(filePath, updated);
172436
172518
  cacheRevision += 1;
172437
172519
  cachedRead = {
@@ -175526,14 +175608,14 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
175526
175608
  }
175527
175609
  const syncLeases = /* @__PURE__ */ new Set();
175528
175610
  const machineCatalogWriteChains = /* @__PURE__ */ new Map();
175529
- async function withMachineCatalogWriteLock(machineRoomId, fn) {
175611
+ async function withMachineCatalogWriteLock(machineRoomId, fn2) {
175530
175612
  const prev = machineCatalogWriteChains.get(machineRoomId);
175531
175613
  const current2 = (async () => {
175532
175614
  if (prev) {
175533
175615
  await prev.catch(() => {
175534
175616
  });
175535
175617
  }
175536
- return fn();
175618
+ return fn2();
175537
175619
  })();
175538
175620
  machineCatalogWriteChains.set(machineRoomId, current2);
175539
175621
  try {
@@ -183251,8 +183333,8 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
183251
183333
  const state2 = this.store.get(sessionId);
183252
183334
  return state2.turn.phase !== "idle" || this.hasSessionActivePresence(sessionId);
183253
183335
  }
183254
- setEvictForMemoryPressure(fn) {
183255
- this.evictForMemoryPressureFn = fn;
183336
+ setEvictForMemoryPressure(fn2) {
183337
+ this.evictForMemoryPressureFn = fn2;
183256
183338
  }
183257
183339
  getActiveTurnCount() {
183258
183340
  return this.sessionActivePresence.activeSessionCount();
@@ -183287,16 +183369,16 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
183287
183369
  Events.prototype = /* @__PURE__ */ Object.create(null);
183288
183370
  if (!new Events().__proto__) prefix = false;
183289
183371
  }
183290
- function EE(fn, context2, once2) {
183291
- this.fn = fn;
183372
+ function EE(fn2, context2, once2) {
183373
+ this.fn = fn2;
183292
183374
  this.context = context2;
183293
183375
  this.once = once2 || false;
183294
183376
  }
183295
- function addListener(emitter, event, fn, context2, once2) {
183296
- if (typeof fn !== "function") {
183377
+ function addListener(emitter, event, fn2, context2, once2) {
183378
+ if (typeof fn2 !== "function") {
183297
183379
  throw new TypeError("The listener must be a function");
183298
183380
  }
183299
- var listener = new EE(fn, context2 || emitter, once2), evt = prefix ? prefix + event : event;
183381
+ var listener = new EE(fn2, context2 || emitter, once2), evt = prefix ? prefix + event : event;
183300
183382
  if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
183301
183383
  else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
183302
183384
  else emitter._events[evt] = [
@@ -183392,27 +183474,27 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
183392
183474
  }
183393
183475
  return true;
183394
183476
  };
183395
- EventEmitter2.prototype.on = function on2(event, fn, context2) {
183396
- return addListener(this, event, fn, context2, false);
183477
+ EventEmitter2.prototype.on = function on2(event, fn2, context2) {
183478
+ return addListener(this, event, fn2, context2, false);
183397
183479
  };
183398
- EventEmitter2.prototype.once = function once2(event, fn, context2) {
183399
- return addListener(this, event, fn, context2, true);
183480
+ EventEmitter2.prototype.once = function once2(event, fn2, context2) {
183481
+ return addListener(this, event, fn2, context2, true);
183400
183482
  };
183401
- EventEmitter2.prototype.removeListener = function removeListener(event, fn, context2, once2) {
183483
+ EventEmitter2.prototype.removeListener = function removeListener(event, fn2, context2, once2) {
183402
183484
  var evt = prefix ? prefix + event : event;
183403
183485
  if (!this._events[evt]) return this;
183404
- if (!fn) {
183486
+ if (!fn2) {
183405
183487
  clearEvent(this, evt);
183406
183488
  return this;
183407
183489
  }
183408
183490
  var listeners = this._events[evt];
183409
183491
  if (listeners.fn) {
183410
- if (listeners.fn === fn && (!once2 || listeners.once) && (!context2 || listeners.context === context2)) {
183492
+ if (listeners.fn === fn2 && (!once2 || listeners.once) && (!context2 || listeners.context === context2)) {
183411
183493
  clearEvent(this, evt);
183412
183494
  }
183413
183495
  } else {
183414
183496
  for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
183415
- if (listeners[i2].fn !== fn || once2 && !listeners[i2].once || context2 && listeners[i2].context !== context2) {
183497
+ if (listeners[i2].fn !== fn2 || once2 && !listeners[i2].once || context2 && listeners[i2].context !== context2) {
183416
183498
  events2.push(listeners[i2]);
183417
183499
  }
183418
183500
  }
@@ -185019,8 +185101,8 @@ ${escapeHtmlScriptContent(VISUAL_ANNOTATION_INSPECTOR_BROWSER_SCRIPT)}
185019
185101
  isRemoteBridgeAttached() {
185020
185102
  return this.remoteBridgeAttached;
185021
185103
  }
185022
- runBridgeTransition(fn) {
185023
- const run2 = this.bridgeTransitionQueue.then(fn, fn);
185104
+ runBridgeTransition(fn2) {
185105
+ const run2 = this.bridgeTransitionQueue.then(fn2, fn2);
185024
185106
  this.bridgeTransitionQueue = run2.then(() => void 0, () => void 0);
185025
185107
  return run2;
185026
185108
  }
@@ -188189,9 +188271,9 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
188189
188271
  });
188190
188272
  }
188191
188273
  const sessionMarkerLocks = /* @__PURE__ */ new Map();
188192
- async function withSessionMarkerLock(sessionId, fn) {
188274
+ async function withSessionMarkerLock(sessionId, fn2) {
188193
188275
  const previous = sessionMarkerLocks.get(sessionId) ?? Promise.resolve();
188194
- const run2 = previous.then(fn);
188276
+ const run2 = previous.then(fn2);
188195
188277
  const tail2 = run2.then(() => void 0, () => void 0);
188196
188278
  sessionMarkerLocks.set(sessionId, tail2);
188197
188279
  try {
@@ -190635,11 +190717,11 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
190635
190717
  }
190636
190718
  }
190637
190719
  }
190638
- async function withStartupLock(lockFilePath, fn) {
190720
+ async function withStartupLock(lockFilePath, fn2) {
190639
190721
  ensureLocalDaemonRunDir(path__default.dirname(lockFilePath));
190640
190722
  const fd = acquireStartupLock(lockFilePath);
190641
190723
  try {
190642
- return await fn();
190724
+ return await fn2();
190643
190725
  } finally {
190644
190726
  fs__default.closeSync(fd);
190645
190727
  unlinkIfExists(lockFilePath);
@@ -193244,8 +193326,8 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
193244
193326
  lastAttemptAtMs: this.lastAttemptAtMs.get(key2) ?? null
193245
193327
  };
193246
193328
  }
193247
- enqueue(fn) {
193248
- this.chain = this.chain.then(fn).catch((error2) => {
193329
+ enqueue(fn2) {
193330
+ this.chain = this.chain.then(fn2).catch((error2) => {
193249
193331
  this.deps.logger.debug(`[pr-poller] Poll chain error: ${formatErrorMessage(error2)}`);
193250
193332
  });
193251
193333
  }
@@ -198456,18 +198538,18 @@ Shutting down gracefully${reason}...`);
198456
198538
  requestedAtMs: options.nowMs ?? Date.now()
198457
198539
  };
198458
198540
  const temporaryPath = `${filePath}.${process.pid}.tmp`;
198459
- await Qt__default.mkdir(path__default.dirname(filePath), {
198541
+ await fn__default.mkdir(path__default.dirname(filePath), {
198460
198542
  recursive: true,
198461
198543
  mode: 448
198462
198544
  });
198463
- await Qt__default.writeFile(temporaryPath, `${JSON.stringify(request2, null, 2)}
198545
+ await fn__default.writeFile(temporaryPath, `${JSON.stringify(request2, null, 2)}
198464
198546
  `, {
198465
198547
  mode: 384
198466
198548
  });
198467
198549
  try {
198468
- await Qt__default.rename(temporaryPath, filePath);
198550
+ await fn__default.rename(temporaryPath, filePath);
198469
198551
  } catch (error2) {
198470
- await Qt__default.rm(temporaryPath, {
198552
+ await fn__default.rm(temporaryPath, {
198471
198553
  force: true
198472
198554
  });
198473
198555
  throw error2;
@@ -198476,7 +198558,7 @@ Shutting down gracefully${reason}...`);
198476
198558
  }
198477
198559
  async function clearDesktopLocalResetRequest(target = {}) {
198478
198560
  try {
198479
- await Qt__default.unlink(resolveRequestPath(target));
198561
+ await fn__default.unlink(resolveRequestPath(target));
198480
198562
  return true;
198481
198563
  } catch (error2) {
198482
198564
  if (error2.code === "ENOENT") return false;
@@ -198609,7 +198691,7 @@ Shutting down gracefully${reason}...`);
198609
198691
  function readline() {
198610
198692
  return getStore().rl;
198611
198693
  }
198612
- function withUpdates(fn) {
198694
+ function withUpdates(fn2) {
198613
198695
  const wrapped = (...args2) => {
198614
198696
  const store = getStore();
198615
198697
  let shouldUpdate = false;
@@ -198617,7 +198699,7 @@ Shutting down gracefully${reason}...`);
198617
198699
  store.handleChange = () => {
198618
198700
  shouldUpdate = true;
198619
198701
  };
198620
- const returnValue = fn(...args2);
198702
+ const returnValue = fn2(...args2);
198621
198703
  if (shouldUpdate) {
198622
198704
  oldHandleChange();
198623
198705
  }
@@ -199157,11 +199239,11 @@ Shutting down gracefully${reason}...`);
199157
199239
  const iconName = status === "loading" ? "idle" : status;
199158
199240
  return typeof prefix === "string" ? prefix : prefix[iconName];
199159
199241
  }
199160
- function useMemo(fn, dependencies2) {
199242
+ function useMemo(fn2, dependencies2) {
199161
199243
  return withPointer((pointer) => {
199162
199244
  const prev = pointer.get();
199163
199245
  if (!prev || prev.dependencies.length !== dependencies2.length || prev.dependencies.some((dep, i2) => dep !== dependencies2[i2])) {
199164
- const value = fn();
199246
+ const value = fn2();
199165
199247
  pointer.set({
199166
199248
  value,
199167
199249
  dependencies: dependencies2
@@ -200956,15 +201038,15 @@ Shutting down gracefully${reason}...`);
200956
201038
  graph[toModel].parent,
200957
201039
  toModel
200958
201040
  ];
200959
- let fn = conversions2[graph[toModel].parent][toModel];
201041
+ let fn2 = conversions2[graph[toModel].parent][toModel];
200960
201042
  let cur = graph[toModel].parent;
200961
201043
  while (graph[cur].parent) {
200962
201044
  path2.unshift(graph[cur].parent);
200963
- fn = link2(conversions2[graph[cur].parent][cur], fn);
201045
+ fn2 = link2(conversions2[graph[cur].parent][cur], fn2);
200964
201046
  cur = graph[cur].parent;
200965
201047
  }
200966
- fn.conversion = path2;
200967
- return fn;
201048
+ fn2.conversion = path2;
201049
+ return fn2;
200968
201050
  }
200969
201051
  route = function(fromModel) {
200970
201052
  const graph = deriveBFS(fromModel);
@@ -200991,7 +201073,7 @@ Shutting down gracefully${reason}...`);
200991
201073
  const route2 = requireRoute();
200992
201074
  const convert = {};
200993
201075
  const models = Object.keys(conversions2);
200994
- function wrapRaw(fn) {
201076
+ function wrapRaw(fn2) {
200995
201077
  const wrappedFn = function(...args2) {
200996
201078
  const arg0 = args2[0];
200997
201079
  if (arg0 === void 0 || arg0 === null) {
@@ -201000,14 +201082,14 @@ Shutting down gracefully${reason}...`);
201000
201082
  if (arg0.length > 1) {
201001
201083
  args2 = arg0;
201002
201084
  }
201003
- return fn(args2);
201085
+ return fn2(args2);
201004
201086
  };
201005
- if ("conversion" in fn) {
201006
- wrappedFn.conversion = fn.conversion;
201087
+ if ("conversion" in fn2) {
201088
+ wrappedFn.conversion = fn2.conversion;
201007
201089
  }
201008
201090
  return wrappedFn;
201009
201091
  }
201010
- function wrapRounded(fn) {
201092
+ function wrapRounded(fn2) {
201011
201093
  const wrappedFn = function(...args2) {
201012
201094
  const arg0 = args2[0];
201013
201095
  if (arg0 === void 0 || arg0 === null) {
@@ -201016,7 +201098,7 @@ Shutting down gracefully${reason}...`);
201016
201098
  if (arg0.length > 1) {
201017
201099
  args2 = arg0;
201018
201100
  }
201019
- const result = fn(args2);
201101
+ const result = fn2(args2);
201020
201102
  if (typeof result === "object") {
201021
201103
  for (let len2 = result.length, i2 = 0; i2 < len2; i2++) {
201022
201104
  result[i2] = Math.round(result[i2]);
@@ -201024,8 +201106,8 @@ Shutting down gracefully${reason}...`);
201024
201106
  }
201025
201107
  return result;
201026
201108
  };
201027
- if ("conversion" in fn) {
201028
- wrappedFn.conversion = fn.conversion;
201109
+ if ("conversion" in fn2) {
201110
+ wrappedFn.conversion = fn2.conversion;
201029
201111
  }
201030
201112
  return wrappedFn;
201031
201113
  }
@@ -201040,9 +201122,9 @@ Shutting down gracefully${reason}...`);
201040
201122
  const routes = route2(fromModel);
201041
201123
  const routeModels = Object.keys(routes);
201042
201124
  routeModels.forEach((toModel) => {
201043
- const fn = routes[toModel];
201044
- convert[fromModel][toModel] = wrapRounded(fn);
201045
- convert[fromModel][toModel].raw = wrapRaw(fn);
201125
+ const fn2 = routes[toModel];
201126
+ convert[fromModel][toModel] = wrapRounded(fn2);
201127
+ convert[fromModel][toModel].raw = wrapRaw(fn2);
201046
201128
  });
201047
201129
  });
201048
201130
  colorConvert = convert;
@@ -201054,16 +201136,16 @@ Shutting down gracefully${reason}...`);
201054
201136
  if (hasRequiredAnsiStyles) return ansiStyles.exports;
201055
201137
  hasRequiredAnsiStyles = 1;
201056
201138
  (function(module2) {
201057
- const wrapAnsi162 = (fn, offset2) => (...args2) => {
201058
- const code2 = fn(...args2);
201139
+ const wrapAnsi162 = (fn2, offset2) => (...args2) => {
201140
+ const code2 = fn2(...args2);
201059
201141
  return `\x1B[${code2 + offset2}m`;
201060
201142
  };
201061
- const wrapAnsi2562 = (fn, offset2) => (...args2) => {
201062
- const code2 = fn(...args2);
201143
+ const wrapAnsi2562 = (fn2, offset2) => (...args2) => {
201144
+ const code2 = fn2(...args2);
201063
201145
  return `\x1B[${38 + offset2};5;${code2}m`;
201064
201146
  };
201065
- const wrapAnsi16m2 = (fn, offset2) => (...args2) => {
201066
- const rgb = fn(...args2);
201147
+ const wrapAnsi16m2 = (fn2, offset2) => (...args2) => {
201148
+ const rgb = fn2(...args2);
201067
201149
  return `\x1B[${38 + offset2};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
201068
201150
  };
201069
201151
  const ansi2ansi = (n) => n;
@@ -201556,7 +201638,7 @@ Shutting down gracefully${reason}...`);
201556
201638
  function requireLib$1() {
201557
201639
  if (hasRequiredLib$1) return lib$1;
201558
201640
  hasRequiredLib$1 = 1;
201559
- const Stream = _o;
201641
+ const Stream = Fo;
201560
201642
  class MuteStream2 extends Stream {
201561
201643
  #isTTY = null;
201562
201644
  constructor(opts = {}) {
@@ -211034,7 +211116,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${ansiEscapes.cursorHide}`;
211034
211116
  function requireStreams() {
211035
211117
  if (hasRequiredStreams) return streams;
211036
211118
  hasRequiredStreams = 1;
211037
- var Buffer2 = require$$0$6.Buffer, Transform2 = _o.Transform;
211119
+ var Buffer2 = require$$0$6.Buffer, Transform2 = Fo.Transform;
211038
211120
  streams = function(iconv2) {
211039
211121
  iconv2.encodeStream = function encodeStream(encoding2, options) {
211040
211122
  return new IconvLiteEncoderStream(iconv2.getEncoder(encoding2, options), options);
@@ -211254,7 +211336,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${ansiEscapes.cursorHide}`;
211254
211336
  return length2;
211255
211337
  };
211256
211338
  if (iconv2.supportsStreams) {
211257
- var Readable2 = _o.Readable;
211339
+ var Readable2 = Fo.Readable;
211258
211340
  original.ReadableSetEncoding = Readable2.prototype.setEncoding;
211259
211341
  Readable2.prototype.setEncoding = function setEncoding(enc, options) {
211260
211342
  this._readableState.decoder = iconv2.getDecoder(enc, options);
@@ -211275,7 +211357,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${ansiEscapes.cursorHide}`;
211275
211357
  Buffer2.prototype.toString = original.BufferToString;
211276
211358
  Buffer2.prototype.write = original.BufferWrite;
211277
211359
  if (iconv2.supportsStreams) {
211278
- var Readable2 = _o.Readable;
211360
+ var Readable2 = Fo.Readable;
211279
211361
  Readable2.prototype.setEncoding = original.ReadableSetEncoding;
211280
211362
  delete Readable2.prototype.collect;
211281
211363
  }
@@ -213461,8 +213543,8 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
213461
213543
  })(Subscription_1.Subscription);
213462
213544
  exports$1.Subscriber = Subscriber$1;
213463
213545
  var _bind = Function.prototype.bind;
213464
- function bind(fn, thisArg) {
213465
- return _bind.call(fn, thisArg);
213546
+ function bind(fn2, thisArg) {
213547
+ return _bind.call(fn2, thisArg);
213466
213548
  }
213467
213549
  var ConsumerObserver = (function() {
213468
213550
  function ConsumerObserver2(partialObserver) {
@@ -213615,8 +213697,8 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
213615
213697
  return fns[0];
213616
213698
  }
213617
213699
  return function piped(input2) {
213618
- return fns.reduce(function(prev, fn) {
213619
- return fn(prev);
213700
+ return fns.reduce(function(prev, fn2) {
213701
+ return fn2(prev);
213620
213702
  }, input2);
213621
213703
  };
213622
213704
  }
@@ -217103,12 +217185,12 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
217103
217185
  mapOneOrManyArgs.mapOneOrManyArgs = void 0;
217104
217186
  var map_1 = requireMap();
217105
217187
  var isArray2 = Array.isArray;
217106
- function callOrApply(fn, args2) {
217107
- return isArray2(args2) ? fn.apply(void 0, __spreadArray([], __read(args2))) : fn(args2);
217188
+ function callOrApply(fn2, args2) {
217189
+ return isArray2(args2) ? fn2.apply(void 0, __spreadArray([], __read(args2))) : fn2(args2);
217108
217190
  }
217109
- function mapOneOrManyArgs$1(fn) {
217191
+ function mapOneOrManyArgs$1(fn2) {
217110
217192
  return map_1.map(function(args2) {
217111
- return callOrApply(fn, args2);
217193
+ return callOrApply(fn2, args2);
217112
217194
  });
217113
217195
  }
217114
217196
  mapOneOrManyArgs.mapOneOrManyArgs = mapOneOrManyArgs$1;
@@ -225863,7 +225945,7 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
225863
225945
  data = createReviewBundleSnapshot(bundle);
225864
225946
  }
225865
225947
  const { injectReviewSnapshot } = await import("./chunks/index-VoI6Ds2-.js");
225866
- const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-DDjD2VXi.js").then(async (m) => {
225948
+ const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-CxrR3OFP.js").then(async (m) => {
225867
225949
  await m.__tla;
225868
225950
  return m;
225869
225951
  });
@@ -231932,7 +232014,7 @@ ${result.stdout ?? ""}`;
231932
232014
  reg.add(inst, meta);
231933
232015
  return inst;
231934
232016
  });
231935
- inst.apply = (fn) => fn(inst);
232017
+ inst.apply = (fn2) => fn2(inst);
231936
232018
  });
231937
232019
  const ZodMiniObject = $constructor("ZodMiniObject", (inst, def) => {
231938
232020
  $ZodObject.init(inst, def);
@@ -239272,7 +239354,7 @@ ${result.stdout ?? ""}`;
239272
239354
  };
239273
239355
  const MAX_EXPRESSION = 200;
239274
239356
  function requiredOptions(o) {
239275
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o2, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
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;
239276
239358
  const s = o.strict;
239277
239359
  const _optz = (_a2 = o.code) === null || _a2 === void 0 ? void 0 : _a2.optimize;
239278
239360
  const optimize2 = _optz === true || _optz === void 0 ? 1 : _optz || 0;
@@ -239283,7 +239365,7 @@ ${result.stdout ?? ""}`;
239283
239365
  strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true,
239284
239366
  strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : "log",
239285
239367
  strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : "log",
239286
- strictRequired: (_p = (_o2 = o.strictRequired) !== null && _o2 !== void 0 ? _o2 : s) !== null && _p !== void 0 ? _p : false,
239368
+ strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,
239287
239369
  code: o.code ? {
239288
239370
  ...o.code,
239289
239371
  optimize: optimize2,
@@ -244812,7 +244894,7 @@ ${result.stdout ?? ""}`;
244812
244894
  return value;
244813
244895
  };
244814
244896
  const mcpSessionContextStorage = new AsyncLocalStorage();
244815
- const runWithMcpSessionContext = (context2, fn) => mcpSessionContextStorage.run(context2, fn);
244897
+ const runWithMcpSessionContext = (context2, fn2) => mcpSessionContextStorage.run(context2, fn2);
244816
244898
  const getSessionContext = () => mcpSessionContextStorage.getStore() ?? {
244817
244899
  machineId: readRequiredEnv("LODY_MCP_MACHINE_ID", "LODY_PREVIEW_MCP_MACHINE_ID"),
244818
244900
  workspaceId: readRequiredEnv("LODY_MCP_WORKSPACE_ID", "LODY_PREVIEW_MCP_WORKSPACE_ID"),
@@ -244833,7 +244915,7 @@ ${result.stdout ?? ""}`;
244833
244915
  }
244834
244916
  return store;
244835
244917
  };
244836
- const withOperationStore = (fn) => runWithOperationStoreBusyRetry(() => fn(getSharedOperationStore()));
244918
+ const withOperationStore = (fn2) => runWithOperationStoreBusyRetry(() => fn2(getSharedOperationStore()));
244837
244919
  const assertBatchSize = (length2, maximum) => {
244838
244920
  if (length2 < 1 || length2 > maximum) {
244839
244921
  throw new LodyOperationStoreError("BATCH_TOO_LARGE", `Batch item count must be between 1 and ${maximum}; received ${length2}.`, false);