@indigoai-us/hq-cli 5.345.137 → 5.345.139

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.
@@ -772,7 +772,7 @@ var sleep3;
772
772
  var init_sleep = __esm({
773
773
  "node_modules/.pnpm/@smithy+core@3.33.3/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js"() {
774
774
  sleep3 = (seconds) => {
775
- return new Promise((resolve33) => setTimeout(resolve33, seconds * 1e3));
775
+ return new Promise((resolve34) => setTimeout(resolve34, seconds * 1e3));
776
776
  };
777
777
  }
778
778
  });
@@ -937,8 +937,8 @@ var init_createWaiter = __esm({
937
937
  init_waiter();
938
938
  abortTimeout = (abortSignal) => {
939
939
  let onAbort;
940
- const promise2 = new Promise((resolve33) => {
941
- onAbort = () => resolve33({ state: WaiterState.ABORTED });
940
+ const promise2 = new Promise((resolve34) => {
941
+ onAbort = () => resolve34({ state: WaiterState.ABORTED });
942
942
  if (typeof abortSignal.addEventListener === "function") {
943
943
  abortSignal.addEventListener("abort", onAbort);
944
944
  } else {
@@ -4385,7 +4385,7 @@ var init_getInstanceMetadataRegion = __esm({
4385
4385
  };
4386
4386
  imdsRequest = async (options) => {
4387
4387
  const { request: request5 } = await import("node:http");
4388
- return new Promise((resolve33, reject) => {
4388
+ return new Promise((resolve34, reject) => {
4389
4389
  const req = request5({
4390
4390
  hostname: options.hostname,
4391
4391
  port: options.port,
@@ -4413,7 +4413,7 @@ var init_getInstanceMetadataRegion = __esm({
4413
4413
  const chunks = [];
4414
4414
  res.on("data", (chunk) => chunks.push(chunk));
4415
4415
  res.on("end", () => {
4416
- resolve33(Buffer.concat(chunks));
4416
+ resolve34(Buffer.concat(chunks));
4417
4417
  req.destroy();
4418
4418
  });
4419
4419
  });
@@ -6459,7 +6459,7 @@ var init_headStream = __esm({
6459
6459
  if (isReadableStream(stream)) {
6460
6460
  return headStream(stream, bytes);
6461
6461
  }
6462
- return new Promise((resolve33, reject) => {
6462
+ return new Promise((resolve34, reject) => {
6463
6463
  const collector = new Collector();
6464
6464
  collector.limit = bytes;
6465
6465
  stream.pipe(collector);
@@ -6470,7 +6470,7 @@ var init_headStream = __esm({
6470
6470
  collector.on("error", reject);
6471
6471
  collector.on("finish", function() {
6472
6472
  const bytes2 = concatBytes(this.buffers);
6473
- resolve33(bytes2);
6473
+ resolve34(bytes2);
6474
6474
  });
6475
6475
  });
6476
6476
  };
@@ -6622,7 +6622,7 @@ var init_stream_collector = __esm({
6622
6622
  if (isReadableStream(stream)) {
6623
6623
  return collectReadableStream(stream);
6624
6624
  }
6625
- return new Promise((resolve33, reject) => {
6625
+ return new Promise((resolve34, reject) => {
6626
6626
  const collector = new Collector2();
6627
6627
  const nodeStream = stream;
6628
6628
  nodeStream.pipe(collector);
@@ -6633,7 +6633,7 @@ var init_stream_collector = __esm({
6633
6633
  collector.on("error", reject);
6634
6634
  collector.on("finish", function() {
6635
6635
  const bytes = concatBytes(this.bufferedBytes);
6636
- resolve33(bytes);
6636
+ resolve34(bytes);
6637
6637
  });
6638
6638
  });
6639
6639
  };
@@ -7602,7 +7602,7 @@ async function* readableToIterable(readStream) {
7602
7602
  streamEnded = true;
7603
7603
  });
7604
7604
  while (!generationEnded) {
7605
- const value = await new Promise((resolve33) => setTimeout(() => resolve33(records.shift()), 0));
7605
+ const value = await new Promise((resolve34) => setTimeout(() => resolve34(records.shift()), 0));
7606
7606
  if (value) {
7607
7607
  yield value;
7608
7608
  }
@@ -9371,7 +9371,7 @@ var init_retryMiddleware = __esm({
9371
9371
  init_constants5();
9372
9372
  init_parseRetryAfterHeader();
9373
9373
  init_util();
9374
- cooldown = (ms) => new Promise((resolve33) => setTimeout(resolve33, ms));
9374
+ cooldown = (ms) => new Promise((resolve34) => setTimeout(resolve34, ms));
9375
9375
  isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
9376
9376
  getRetryErrorInfo = (error64, logger4) => {
9377
9377
  const errorInfo = {
@@ -12534,7 +12534,7 @@ var sleep4;
12534
12534
  var init_sleep2 = __esm({
12535
12535
  "node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js"() {
12536
12536
  sleep4 = (seconds) => {
12537
- return new Promise((resolve33) => setTimeout(resolve33, seconds * 1e3));
12537
+ return new Promise((resolve34) => setTimeout(resolve34, seconds * 1e3));
12538
12538
  };
12539
12539
  }
12540
12540
  });
@@ -12699,8 +12699,8 @@ var init_createWaiter2 = __esm({
12699
12699
  init_waiter2();
12700
12700
  abortTimeout2 = (abortSignal) => {
12701
12701
  let onAbort;
12702
- const promise2 = new Promise((resolve33) => {
12703
- onAbort = () => resolve33({ state: WaiterState2.ABORTED });
12702
+ const promise2 = new Promise((resolve34) => {
12703
+ onAbort = () => resolve34({ state: WaiterState2.ABORTED });
12704
12704
  if (typeof abortSignal.addEventListener === "function") {
12705
12705
  abortSignal.addEventListener("abort", onAbort);
12706
12706
  } else {
@@ -16195,7 +16195,7 @@ var init_getInstanceMetadataRegion2 = __esm({
16195
16195
  };
16196
16196
  imdsRequest2 = async (options) => {
16197
16197
  const { request: request5 } = await import("node:http");
16198
- return new Promise((resolve33, reject) => {
16198
+ return new Promise((resolve34, reject) => {
16199
16199
  const req = request5({
16200
16200
  hostname: options.hostname,
16201
16201
  port: options.port,
@@ -16223,7 +16223,7 @@ var init_getInstanceMetadataRegion2 = __esm({
16223
16223
  const chunks = [];
16224
16224
  res.on("data", (chunk) => chunks.push(chunk));
16225
16225
  res.on("end", () => {
16226
- resolve33(Buffer.concat(chunks));
16226
+ resolve34(Buffer.concat(chunks));
16227
16227
  req.destroy();
16228
16228
  });
16229
16229
  });
@@ -18455,7 +18455,7 @@ var init_headStream2 = __esm({
18455
18455
  if (isReadableStream2(stream)) {
18456
18456
  return headStream3(stream, bytes);
18457
18457
  }
18458
- return new Promise((resolve33, reject) => {
18458
+ return new Promise((resolve34, reject) => {
18459
18459
  const collector = new Collector3();
18460
18460
  collector.limit = bytes;
18461
18461
  stream.pipe(collector);
@@ -18466,7 +18466,7 @@ var init_headStream2 = __esm({
18466
18466
  collector.on("error", reject);
18467
18467
  collector.on("finish", function() {
18468
18468
  const bytes2 = concatBytes2(this.buffers);
18469
- resolve33(bytes2);
18469
+ resolve34(bytes2);
18470
18470
  });
18471
18471
  });
18472
18472
  };
@@ -18618,7 +18618,7 @@ var init_stream_collector2 = __esm({
18618
18618
  if (isReadableStream2(stream)) {
18619
18619
  return collectReadableStream2(stream);
18620
18620
  }
18621
- return new Promise((resolve33, reject) => {
18621
+ return new Promise((resolve34, reject) => {
18622
18622
  const collector = new Collector4();
18623
18623
  const nodeStream = stream;
18624
18624
  nodeStream.pipe(collector);
@@ -18629,7 +18629,7 @@ var init_stream_collector2 = __esm({
18629
18629
  collector.on("error", reject);
18630
18630
  collector.on("finish", function() {
18631
18631
  const bytes = concatBytes2(this.bufferedBytes);
18632
- resolve33(bytes);
18632
+ resolve34(bytes);
18633
18633
  });
18634
18634
  });
18635
18635
  };
@@ -18956,7 +18956,7 @@ var fileStreamHasher, isReadStream;
18956
18956
  var init_fileStreamHasher = __esm({
18957
18957
  "node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/fileStreamHasher.js"() {
18958
18958
  init_HashCalculator();
18959
- fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve33, reject) => {
18959
+ fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve34, reject) => {
18960
18960
  if (!isReadStream(fileStream)) {
18961
18961
  reject(new Error("Unable to calculate hash for non-file streams."));
18962
18962
  return;
@@ -18974,7 +18974,7 @@ var init_fileStreamHasher = __esm({
18974
18974
  });
18975
18975
  hashCalculator.on("error", reject);
18976
18976
  hashCalculator.on("finish", function() {
18977
- hash3.digest().then(resolve33).catch(reject);
18977
+ hash3.digest().then(resolve34).catch(reject);
18978
18978
  });
18979
18979
  });
18980
18980
  isReadStream = (stream) => typeof stream.path === "string";
@@ -18993,14 +18993,14 @@ var init_readableStreamHasher = __esm({
18993
18993
  const hash3 = new hashCtor();
18994
18994
  const hashCalculator = new HashCalculator(hash3);
18995
18995
  readableStream.pipe(hashCalculator);
18996
- return new Promise((resolve33, reject) => {
18996
+ return new Promise((resolve34, reject) => {
18997
18997
  readableStream.on("error", (err) => {
18998
18998
  hashCalculator.end();
18999
18999
  reject(err);
19000
19000
  });
19001
19001
  hashCalculator.on("error", reject);
19002
19002
  hashCalculator.on("finish", () => {
19003
- hash3.digest().then(resolve33).catch(reject);
19003
+ hash3.digest().then(resolve34).catch(reject);
19004
19004
  });
19005
19005
  });
19006
19006
  };
@@ -20245,7 +20245,7 @@ async function* readableToIterable2(readStream) {
20245
20245
  streamEnded = true;
20246
20246
  });
20247
20247
  while (!generationEnded) {
20248
- const value = await new Promise((resolve33) => setTimeout(() => resolve33(records.shift()), 0));
20248
+ const value = await new Promise((resolve34) => setTimeout(() => resolve34(records.shift()), 0));
20249
20249
  if (value) {
20250
20250
  yield value;
20251
20251
  }
@@ -22071,7 +22071,7 @@ var init_retryMiddleware2 = __esm({
22071
22071
  init_constants11();
22072
22072
  init_parseRetryAfterHeader2();
22073
22073
  init_util2();
22074
- cooldown2 = (ms) => new Promise((resolve33) => setTimeout(resolve33, ms));
22074
+ cooldown2 = (ms) => new Promise((resolve34) => setTimeout(resolve34, ms));
22075
22075
  isRetryStrategyV22 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
22076
22076
  getRetryErrorInfo2 = (error64, logger4) => {
22077
22077
  const errorInfo = {
@@ -22169,7 +22169,7 @@ var init_DefaultRateLimiter = __esm({
22169
22169
  this.refillTokenBucket();
22170
22170
  while (amount > this.availableTokens) {
22171
22171
  const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
22172
- await new Promise((resolve33) => _DefaultRateLimiter.setTimeoutFn(resolve33, delay));
22172
+ await new Promise((resolve34) => _DefaultRateLimiter.setTimeoutFn(resolve34, delay));
22173
22173
  this.refillTokenBucket();
22174
22174
  }
22175
22175
  this.availableTokens = this.availableTokens - amount;
@@ -22607,7 +22607,7 @@ var init_StandardRetryStrategy2 = __esm({
22607
22607
  const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
22608
22608
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
22609
22609
  totalDelay += delay;
22610
- await new Promise((resolve33) => setTimeout(resolve33, delay));
22610
+ await new Promise((resolve34) => setTimeout(resolve34, delay));
22611
22611
  continue;
22612
22612
  }
22613
22613
  if (!err.$metadata) {
@@ -24718,11 +24718,11 @@ function __metadata(metadataKey, metadataValue) {
24718
24718
  }
24719
24719
  function __awaiter(thisArg, _arguments, P, generator) {
24720
24720
  function adopt(value) {
24721
- return value instanceof P ? value : new P(function(resolve33) {
24722
- resolve33(value);
24721
+ return value instanceof P ? value : new P(function(resolve34) {
24722
+ resolve34(value);
24723
24723
  });
24724
24724
  }
24725
- return new (P || (P = Promise))(function(resolve33, reject) {
24725
+ return new (P || (P = Promise))(function(resolve34, reject) {
24726
24726
  function fulfilled(value) {
24727
24727
  try {
24728
24728
  step(generator.next(value));
@@ -24738,7 +24738,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
24738
24738
  }
24739
24739
  }
24740
24740
  function step(result) {
24741
- result.done ? resolve33(result.value) : adopt(result.value).then(fulfilled, rejected);
24741
+ result.done ? resolve34(result.value) : adopt(result.value).then(fulfilled, rejected);
24742
24742
  }
24743
24743
  step((generator = generator.apply(thisArg, _arguments || [])).next());
24744
24744
  });
@@ -24929,14 +24929,14 @@ function __asyncValues(o3) {
24929
24929
  }, i6);
24930
24930
  function verb(n3) {
24931
24931
  i6[n3] = o3[n3] && function(v) {
24932
- return new Promise(function(resolve33, reject) {
24933
- v = o3[n3](v), settle(resolve33, reject, v.done, v.value);
24932
+ return new Promise(function(resolve34, reject) {
24933
+ v = o3[n3](v), settle(resolve34, reject, v.done, v.value);
24934
24934
  });
24935
24935
  };
24936
24936
  }
24937
- function settle(resolve33, reject, d5, v) {
24937
+ function settle(resolve34, reject, d5, v) {
24938
24938
  Promise.resolve(v).then(function(v2) {
24939
- resolve33({ value: v2, done: d5 });
24939
+ resolve34({ value: v2, done: d5 });
24940
24940
  }, reject);
24941
24941
  }
24942
24942
  }
@@ -33270,7 +33270,7 @@ var sleep5;
33270
33270
  var init_sleep3 = __esm({
33271
33271
  "node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js"() {
33272
33272
  sleep5 = (seconds) => {
33273
- return new Promise((resolve33) => setTimeout(resolve33, seconds * 1e3));
33273
+ return new Promise((resolve34) => setTimeout(resolve34, seconds * 1e3));
33274
33274
  };
33275
33275
  }
33276
33276
  });
@@ -33435,8 +33435,8 @@ var init_createWaiter3 = __esm({
33435
33435
  init_waiter3();
33436
33436
  abortTimeout3 = (abortSignal) => {
33437
33437
  let onAbort;
33438
- const promise2 = new Promise((resolve33) => {
33439
- onAbort = () => resolve33({ state: WaiterState3.ABORTED });
33438
+ const promise2 = new Promise((resolve34) => {
33439
+ onAbort = () => resolve34({ state: WaiterState3.ABORTED });
33440
33440
  if (typeof abortSignal.addEventListener === "function") {
33441
33441
  abortSignal.addEventListener("abort", onAbort);
33442
33442
  } else {
@@ -35494,7 +35494,7 @@ var init_resolveDefaultsModeConfig3 = __esm({
35494
35494
  };
35495
35495
  imdsHttpGet = async ({ hostname: hostname3, path: path70 }) => {
35496
35496
  const { request: request5 } = await import("node:http");
35497
- return new Promise((resolve33, reject) => {
35497
+ return new Promise((resolve34, reject) => {
35498
35498
  const req = request5({
35499
35499
  method: "GET",
35500
35500
  hostname: hostname3.replace(/^\[(.+)]$/, "$1"),
@@ -35520,7 +35520,7 @@ var init_resolveDefaultsModeConfig3 = __esm({
35520
35520
  const chunks = [];
35521
35521
  res.on("data", (chunk) => chunks.push(chunk));
35522
35522
  res.on("end", () => {
35523
- resolve33(Buffer.concat(chunks));
35523
+ resolve34(Buffer.concat(chunks));
35524
35524
  req.destroy();
35525
35525
  });
35526
35526
  });
@@ -37536,7 +37536,7 @@ var init_headStream3 = __esm({
37536
37536
  if (isReadableStream3(stream)) {
37537
37537
  return headStream5(stream, bytes);
37538
37538
  }
37539
- return new Promise((resolve33, reject) => {
37539
+ return new Promise((resolve34, reject) => {
37540
37540
  const collector = new Collector5();
37541
37541
  collector.limit = bytes;
37542
37542
  stream.pipe(collector);
@@ -37547,7 +37547,7 @@ var init_headStream3 = __esm({
37547
37547
  collector.on("error", reject);
37548
37548
  collector.on("finish", function() {
37549
37549
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
37550
- resolve33(bytes2);
37550
+ resolve34(bytes2);
37551
37551
  });
37552
37552
  });
37553
37553
  };
@@ -37655,7 +37655,7 @@ async function collectStream(stream) {
37655
37655
  return collected;
37656
37656
  }
37657
37657
  function readToBase64(blob) {
37658
- return new Promise((resolve33, reject) => {
37658
+ return new Promise((resolve34, reject) => {
37659
37659
  const reader = new FileReader();
37660
37660
  reader.onloadend = () => {
37661
37661
  if (reader.readyState !== 2) {
@@ -37664,7 +37664,7 @@ function readToBase64(blob) {
37664
37664
  const result = reader.result ?? "";
37665
37665
  const commaIndex = result.indexOf(",");
37666
37666
  const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
37667
- resolve33(result.substring(dataOffset));
37667
+ resolve34(result.substring(dataOffset));
37668
37668
  };
37669
37669
  reader.onabort = () => reject(new Error("Read aborted"));
37670
37670
  reader.onerror = () => reject(reader.error);
@@ -37789,7 +37789,7 @@ var init_stream_collector3 = __esm({
37789
37789
  if (isReadableStreamInstance(stream)) {
37790
37790
  return collectReadableStream3(stream);
37791
37791
  }
37792
- return new Promise((resolve33, reject) => {
37792
+ return new Promise((resolve34, reject) => {
37793
37793
  const collector = new Collector6();
37794
37794
  stream.pipe(collector);
37795
37795
  stream.on("error", (err) => {
@@ -37799,7 +37799,7 @@ var init_stream_collector3 = __esm({
37799
37799
  collector.on("error", reject);
37800
37800
  collector.on("finish", function() {
37801
37801
  const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
37802
- resolve33(bytes);
37802
+ resolve34(bytes);
37803
37803
  });
37804
37804
  });
37805
37805
  };
@@ -38761,7 +38761,7 @@ async function* readableToIterable3(readStream) {
38761
38761
  streamEnded = true;
38762
38762
  });
38763
38763
  while (!generationEnded) {
38764
- const value = await new Promise((resolve33) => setTimeout(() => resolve33(records.shift()), 0));
38764
+ const value = await new Promise((resolve34) => setTimeout(() => resolve34(records.shift()), 0));
38765
38765
  if (value) {
38766
38766
  yield value;
38767
38767
  }
@@ -42569,7 +42569,7 @@ var init_retryMiddleware3 = __esm({
42569
42569
  init_constants17();
42570
42570
  init_parseRetryAfterHeader3();
42571
42571
  init_util4();
42572
- cooldown3 = (ms) => new Promise((resolve33) => setTimeout(resolve33, ms));
42572
+ cooldown3 = (ms) => new Promise((resolve34) => setTimeout(resolve34, ms));
42573
42573
  isRetryStrategyV23 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
42574
42574
  getRetryErrorInfo3 = (error64, logger4) => {
42575
42575
  const errorInfo = {
@@ -42667,7 +42667,7 @@ var init_DefaultRateLimiter2 = __esm({
42667
42667
  this.refillTokenBucket();
42668
42668
  while (amount > this.availableTokens) {
42669
42669
  const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
42670
- await new Promise((resolve33) => _DefaultRateLimiter.setTimeoutFn(resolve33, delay));
42670
+ await new Promise((resolve34) => _DefaultRateLimiter.setTimeoutFn(resolve34, delay));
42671
42671
  this.refillTokenBucket();
42672
42672
  }
42673
42673
  this.availableTokens = this.availableTokens - amount;
@@ -43099,7 +43099,7 @@ var init_StandardRetryStrategy4 = __esm({
43099
43099
  const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
43100
43100
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
43101
43101
  totalDelay += delay;
43102
- await new Promise((resolve33) => setTimeout(resolve33, delay));
43102
+ await new Promise((resolve34) => setTimeout(resolve34, delay));
43103
43103
  continue;
43104
43104
  }
43105
43105
  if (!err.$metadata) {
@@ -52660,7 +52660,7 @@ var require_dist_cjs14 = __commonJS({
52660
52660
  var DEFAULT_MAX_RETRIES = 0;
52661
52661
  var providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout });
52662
52662
  function httpRequest(options) {
52663
- return new Promise((resolve33, reject) => {
52663
+ return new Promise((resolve34, reject) => {
52664
52664
  const req = node_http.request({
52665
52665
  method: "GET",
52666
52666
  ...options,
@@ -52685,7 +52685,7 @@ var require_dist_cjs14 = __commonJS({
52685
52685
  chunks.push(chunk);
52686
52686
  });
52687
52687
  res.on("end", () => {
52688
- resolve33(Buffer.concat(chunks));
52688
+ resolve34(Buffer.concat(chunks));
52689
52689
  req.destroy();
52690
52690
  });
52691
52691
  });
@@ -53129,21 +53129,21 @@ var require_dist_cjs15 = __commonJS({
53129
53129
  let sendBody = true;
53130
53130
  if (!externalAgent && expect === "100-continue") {
53131
53131
  sendBody = await Promise.race([
53132
- new Promise((resolve33) => {
53133
- timeoutId = Number(timing.setTimeout(() => resolve33(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
53132
+ new Promise((resolve34) => {
53133
+ timeoutId = Number(timing.setTimeout(() => resolve34(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
53134
53134
  }),
53135
- new Promise((resolve33) => {
53135
+ new Promise((resolve34) => {
53136
53136
  httpRequest.on("continue", () => {
53137
53137
  timing.clearTimeout(timeoutId);
53138
- resolve33(true);
53138
+ resolve34(true);
53139
53139
  });
53140
53140
  httpRequest.on("response", () => {
53141
53141
  timing.clearTimeout(timeoutId);
53142
- resolve33(false);
53142
+ resolve34(false);
53143
53143
  });
53144
53144
  httpRequest.on("error", () => {
53145
53145
  timing.clearTimeout(timeoutId);
53146
- resolve33(false);
53146
+ resolve34(false);
53147
53147
  });
53148
53148
  })
53149
53149
  ]);
@@ -53219,13 +53219,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
53219
53219
  return socketWarningTimestamp;
53220
53220
  }
53221
53221
  constructor(options) {
53222
- this.configProvider = new Promise((resolve33, reject) => {
53222
+ this.configProvider = new Promise((resolve34, reject) => {
53223
53223
  if (typeof options === "function") {
53224
53224
  options().then((_options) => {
53225
- resolve33(this.resolveDefaultConfig(_options));
53225
+ resolve34(this.resolveDefaultConfig(_options));
53226
53226
  }).catch(reject);
53227
53227
  } else {
53228
- resolve33(this.resolveDefaultConfig(options));
53228
+ resolve34(this.resolveDefaultConfig(options));
53229
53229
  }
53230
53230
  });
53231
53231
  }
@@ -53257,7 +53257,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
53257
53257
  timing.clearTimeout(socketTimeoutId);
53258
53258
  timing.clearTimeout(keepAliveTimeoutId);
53259
53259
  };
53260
- const resolve33 = async (arg) => {
53260
+ const resolve34 = async (arg) => {
53261
53261
  await writeRequestBodyPromise;
53262
53262
  clearTimeouts();
53263
53263
  _resolve(arg);
@@ -53321,7 +53321,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
53321
53321
  headers: getTransformedHeaders(res.headers),
53322
53322
  body: res
53323
53323
  });
53324
- resolve33({ response: httpResponse });
53324
+ resolve34({ response: httpResponse });
53325
53325
  });
53326
53326
  req.on("error", (err) => {
53327
53327
  if (NODEJS_TIMEOUT_ERROR_CODES4.includes(err.code)) {
@@ -53649,13 +53649,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
53649
53649
  return new _NodeHttp2Handler(instanceOrOptions);
53650
53650
  }
53651
53651
  constructor(options) {
53652
- this.configProvider = new Promise((resolve33, reject) => {
53652
+ this.configProvider = new Promise((resolve34, reject) => {
53653
53653
  if (typeof options === "function") {
53654
53654
  options().then((opts) => {
53655
- resolve33(opts || {});
53655
+ resolve34(opts || {});
53656
53656
  }).catch(reject);
53657
53657
  } else {
53658
- resolve33(options || {});
53658
+ resolve34(options || {});
53659
53659
  }
53660
53660
  });
53661
53661
  }
@@ -53680,7 +53680,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
53680
53680
  return new Promise((_resolve, _reject) => {
53681
53681
  let fulfilled = false;
53682
53682
  let writeRequestBodyPromise = void 0;
53683
- const resolve33 = async (arg) => {
53683
+ const resolve34 = async (arg) => {
53684
53684
  await writeRequestBodyPromise;
53685
53685
  _resolve(arg);
53686
53686
  };
@@ -53765,7 +53765,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
53765
53765
  body: clientHttp2Stream
53766
53766
  });
53767
53767
  fulfilled = true;
53768
- resolve33({ response: httpResponse });
53768
+ resolve34({ response: httpResponse });
53769
53769
  if (useIsolatedSession) {
53770
53770
  session.close();
53771
53771
  clientHttp2Stream.on("end", () => {
@@ -53897,7 +53897,7 @@ var require_dist_cjs16 = __commonJS({
53897
53897
  try {
53898
53898
  return await toRetry();
53899
53899
  } catch (e5) {
53900
- await new Promise((resolve33) => setTimeout(resolve33, delayMs));
53900
+ await new Promise((resolve34) => setTimeout(resolve34, delayMs));
53901
53901
  }
53902
53902
  }
53903
53903
  return await toRetry();
@@ -60104,7 +60104,7 @@ var require_dist_cjs20 = __commonJS({
60104
60104
  try {
60105
60105
  return await toRetry();
60106
60106
  } catch (e5) {
60107
- await new Promise((resolve33) => setTimeout(resolve33, delayMs));
60107
+ await new Promise((resolve34) => setTimeout(resolve34, delayMs));
60108
60108
  }
60109
60109
  }
60110
60110
  return await toRetry();
@@ -64103,7 +64103,7 @@ var fileStreamHasher2, isReadStream2;
64103
64103
  var init_fileStreamHasher2 = __esm({
64104
64104
  "node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/fileStreamHasher.js"() {
64105
64105
  init_HashCalculator2();
64106
- fileStreamHasher2 = (hashCtor, fileStream) => new Promise((resolve33, reject) => {
64106
+ fileStreamHasher2 = (hashCtor, fileStream) => new Promise((resolve34, reject) => {
64107
64107
  if (!isReadStream2(fileStream)) {
64108
64108
  reject(new Error("Unable to calculate hash for non-file streams."));
64109
64109
  return;
@@ -64121,7 +64121,7 @@ var init_fileStreamHasher2 = __esm({
64121
64121
  });
64122
64122
  hashCalculator.on("error", reject);
64123
64123
  hashCalculator.on("finish", function() {
64124
- hash3.digest().then(resolve33).catch(reject);
64124
+ hash3.digest().then(resolve34).catch(reject);
64125
64125
  });
64126
64126
  });
64127
64127
  isReadStream2 = (stream) => typeof stream.path === "string";
@@ -64140,14 +64140,14 @@ var init_readableStreamHasher2 = __esm({
64140
64140
  const hash3 = new hashCtor();
64141
64141
  const hashCalculator = new HashCalculator2(hash3);
64142
64142
  readableStream.pipe(hashCalculator);
64143
- return new Promise((resolve33, reject) => {
64143
+ return new Promise((resolve34, reject) => {
64144
64144
  readableStream.on("error", (err) => {
64145
64145
  hashCalculator.end();
64146
64146
  reject(err);
64147
64147
  });
64148
64148
  hashCalculator.on("error", reject);
64149
64149
  hashCalculator.on("finish", () => {
64150
- hash3.digest().then(resolve33).catch(reject);
64150
+ hash3.digest().then(resolve34).catch(reject);
64151
64151
  });
64152
64152
  });
64153
64153
  };
@@ -64496,21 +64496,21 @@ var require_dist_cjs33 = __commonJS({
64496
64496
  let sendBody = true;
64497
64497
  if (!externalAgent && expect === "100-continue") {
64498
64498
  sendBody = await Promise.race([
64499
- new Promise((resolve33) => {
64500
- timeoutId = Number(timing.setTimeout(() => resolve33(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
64499
+ new Promise((resolve34) => {
64500
+ timeoutId = Number(timing.setTimeout(() => resolve34(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
64501
64501
  }),
64502
- new Promise((resolve33) => {
64502
+ new Promise((resolve34) => {
64503
64503
  httpRequest.on("continue", () => {
64504
64504
  timing.clearTimeout(timeoutId);
64505
- resolve33(true);
64505
+ resolve34(true);
64506
64506
  });
64507
64507
  httpRequest.on("response", () => {
64508
64508
  timing.clearTimeout(timeoutId);
64509
- resolve33(false);
64509
+ resolve34(false);
64510
64510
  });
64511
64511
  httpRequest.on("error", () => {
64512
64512
  timing.clearTimeout(timeoutId);
64513
- resolve33(false);
64513
+ resolve34(false);
64514
64514
  });
64515
64515
  })
64516
64516
  ]);
@@ -64584,13 +64584,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
64584
64584
  return socketWarningTimestamp;
64585
64585
  }
64586
64586
  constructor(options) {
64587
- this.configProvider = new Promise((resolve33, reject) => {
64587
+ this.configProvider = new Promise((resolve34, reject) => {
64588
64588
  if (typeof options === "function") {
64589
64589
  options().then((_options) => {
64590
- resolve33(this.resolveDefaultConfig(_options));
64590
+ resolve34(this.resolveDefaultConfig(_options));
64591
64591
  }).catch(reject);
64592
64592
  } else {
64593
- resolve33(this.resolveDefaultConfig(options));
64593
+ resolve34(this.resolveDefaultConfig(options));
64594
64594
  }
64595
64595
  });
64596
64596
  }
@@ -64621,7 +64621,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
64621
64621
  timing.clearTimeout(socketTimeoutId);
64622
64622
  timing.clearTimeout(keepAliveTimeoutId);
64623
64623
  };
64624
- const resolve33 = async (arg) => {
64624
+ const resolve34 = async (arg) => {
64625
64625
  await writeRequestBodyPromise;
64626
64626
  clearTimeouts();
64627
64627
  _resolve(arg);
@@ -64685,7 +64685,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
64685
64685
  headers: getTransformedHeaders(res.headers),
64686
64686
  body: res
64687
64687
  });
64688
- resolve33({ response: httpResponse });
64688
+ resolve34({ response: httpResponse });
64689
64689
  });
64690
64690
  req.on("error", (err) => {
64691
64691
  if (NODEJS_TIMEOUT_ERROR_CODES4.includes(err.code)) {
@@ -65005,13 +65005,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
65005
65005
  return new _NodeHttp2Handler(instanceOrOptions);
65006
65006
  }
65007
65007
  constructor(options) {
65008
- this.configProvider = new Promise((resolve33, reject) => {
65008
+ this.configProvider = new Promise((resolve34, reject) => {
65009
65009
  if (typeof options === "function") {
65010
65010
  options().then((opts) => {
65011
- resolve33(opts || {});
65011
+ resolve34(opts || {});
65012
65012
  }).catch(reject);
65013
65013
  } else {
65014
- resolve33(options || {});
65014
+ resolve34(options || {});
65015
65015
  }
65016
65016
  });
65017
65017
  }
@@ -65036,7 +65036,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
65036
65036
  return new Promise((_resolve, _reject) => {
65037
65037
  let fulfilled = false;
65038
65038
  let writeRequestBodyPromise = void 0;
65039
- const resolve33 = async (arg) => {
65039
+ const resolve34 = async (arg) => {
65040
65040
  await writeRequestBodyPromise;
65041
65041
  _resolve(arg);
65042
65042
  };
@@ -65121,7 +65121,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
65121
65121
  body: clientHttp2Stream
65122
65122
  });
65123
65123
  fulfilled = true;
65124
- resolve33({ response: httpResponse });
65124
+ resolve34({ response: httpResponse });
65125
65125
  if (useIsolatedSession) {
65126
65126
  session.close();
65127
65127
  }
@@ -65163,7 +65163,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
65163
65163
  if (isReadableStreamInstance2(stream)) {
65164
65164
  return collectReadableStream4(stream);
65165
65165
  }
65166
- return new Promise((resolve33, reject) => {
65166
+ return new Promise((resolve34, reject) => {
65167
65167
  const collector = new Collector7();
65168
65168
  stream.pipe(collector);
65169
65169
  stream.on("error", (err) => {
@@ -65173,7 +65173,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
65173
65173
  collector.on("error", reject);
65174
65174
  collector.on("finish", function() {
65175
65175
  const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
65176
- resolve33(bytes);
65176
+ resolve34(bytes);
65177
65177
  });
65178
65178
  });
65179
65179
  };
@@ -79366,12 +79366,12 @@ var require_dist_cjs42 = __commonJS({
79366
79366
  }
79367
79367
  });
79368
79368
 
79369
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
79369
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
79370
79370
  import * as os22 from "os";
79371
79371
  import * as path69 from "path";
79372
79372
  import * as fs72 from "fs";
79373
79373
 
79374
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/local-path-codec.js
79374
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/local-path-codec.js
79375
79375
  import * as path from "path";
79376
79376
  var WIN32_RESERVED_CHARS = /[<>:"/\\|?*]/;
79377
79377
  var WIN32_DEVICE_NAME = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i;
@@ -79429,12 +79429,12 @@ function canonicalVaultKeySpelling(key) {
79429
79429
  return segments.join("/");
79430
79430
  }
79431
79431
 
79432
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
79432
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
79433
79433
  import { randomUUID as randomUUID14 } from "node:crypto";
79434
79434
  import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
79435
79435
  import { fileURLToPath as fileURLToPath5 } from "url";
79436
79436
 
79437
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cloud-placeholder.js
79437
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cloud-placeholder.js
79438
79438
  import * as fs from "fs";
79439
79439
  import * as path2 from "path";
79440
79440
  var CLOUD_PLACEHOLDER_SUFFIX = ".hqcloud";
@@ -79629,7 +79629,7 @@ function writeCloudPlaceholder(placeholderPath, placeholder) {
79629
79629
  }
79630
79630
  }
79631
79631
 
79632
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/best-effort-error.js
79632
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/best-effort-error.js
79633
79633
  var EXPECTED_ABSENCE_CODES = /* @__PURE__ */ new Set([
79634
79634
  "ENOENT",
79635
79635
  "NoSuchKey",
@@ -79671,7 +79671,7 @@ function noteSwallowedError(log, event, error64, options = {}) {
79671
79671
  `);
79672
79672
  }
79673
79673
 
79674
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
79674
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
79675
79675
  var HEADER_CLIENT_NAME = "x-hq-client-name";
79676
79676
  var HEADER_CLIENT_VERSION = "x-hq-client-version";
79677
79677
  var HEADER_HQ_CORE_VERSION = "x-hq-core-version";
@@ -79694,7 +79694,7 @@ function buildClientHeaders(info) {
79694
79694
  return headers;
79695
79695
  }
79696
79696
 
79697
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
79697
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
79698
79698
  var MAX_EVENTS_PER_BATCH = 50;
79699
79699
  var DEFAULT_TIMEOUT_MS = 1500;
79700
79700
  var MAX_PROPERTIES = 40;
@@ -79833,7 +79833,7 @@ function describeError(err) {
79833
79833
  return err instanceof Error ? err.name : typeof err;
79834
79834
  }
79835
79835
 
79836
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
79836
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
79837
79837
  var TRANSIENT_NETWORK_EXIT = 75;
79838
79838
  var TRANSIENT_CODES = /* @__PURE__ */ new Set([
79839
79839
  "ECONNREFUSED",
@@ -79916,12 +79916,12 @@ function isRemoteObjectGoneError(err) {
79916
79916
  return /\bhttp=404\b/.test(err.message);
79917
79917
  }
79918
79918
 
79919
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
79919
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
79920
79920
  import * as http from "node:http";
79921
79921
  import * as https from "node:https";
79922
79922
  import { Readable } from "node:stream";
79923
79923
 
79924
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
79924
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
79925
79925
  import { AsyncLocalStorage } from "node:async_hooks";
79926
79926
  import { monitorEventLoopDelay } from "node:perf_hooks";
79927
79927
  var REALTIME_TELEMETRY_EVENT = "sync.realtime.timing";
@@ -80111,7 +80111,7 @@ function writeRealtimeTelemetryToStderr(record2) {
80111
80111
  `);
80112
80112
  }
80113
80113
 
80114
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
80114
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
80115
80115
  var HTTP_AGENT = new http.Agent({ keepAlive: true, maxSockets: 8 });
80116
80116
  var HTTPS_AGENT = new https.Agent({ keepAlive: true, maxSockets: 8 });
80117
80117
  function getKeepAliveAgent(secure) {
@@ -80144,7 +80144,7 @@ function requestWithKeepAlive(url2, init) {
80144
80144
  if (body !== void 0 && headers["content-length"] === void 0) {
80145
80145
  headers["content-length"] = String(typeof body === "string" ? Buffer.byteLength(body) : body.byteLength);
80146
80146
  }
80147
- return new Promise((resolve33, reject) => {
80147
+ return new Promise((resolve34, reject) => {
80148
80148
  const request5 = requestFn(target, {
80149
80149
  method: init.method ?? "GET",
80150
80150
  headers,
@@ -80163,7 +80163,7 @@ function requestWithKeepAlive(url2, init) {
80163
80163
  const discardBody = status === 204 || status === 205 || status === 304 || init.method === "HEAD" || (init.method === "PUT" || init.method === "DELETE") && status >= 200 && status < 300;
80164
80164
  if (discardBody)
80165
80165
  response.resume();
80166
- resolve33(new Response(discardBody ? null : Readable.toWeb(response), { status, statusText: response.statusMessage, headers: responseHeaders }));
80166
+ resolve34(new Response(discardBody ? null : Readable.toWeb(response), { status, statusText: response.statusMessage, headers: responseHeaders }));
80167
80167
  });
80168
80168
  measureSocketSetup(request5, secure);
80169
80169
  request5.once("error", reject);
@@ -99037,7 +99037,7 @@ function date4(params) {
99037
99037
  return _coercedDate(ZodDate, params);
99038
99038
  }
99039
99039
 
99040
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
99040
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
99041
99041
  import { spawnSync } from "child_process";
99042
99042
  import * as crypto2 from "crypto";
99043
99043
  import * as fs7 from "fs";
@@ -99478,14 +99478,14 @@ var baseOpen = async (options) => {
99478
99478
  }
99479
99479
  const subprocess = childProcess.spawn(command5, cliArguments, childProcessOptions);
99480
99480
  if (options.wait) {
99481
- return new Promise((resolve33, reject) => {
99481
+ return new Promise((resolve34, reject) => {
99482
99482
  subprocess.once("error", reject);
99483
99483
  subprocess.once("close", (exitCode) => {
99484
99484
  if (!options.allowNonzeroExitCode && exitCode > 0) {
99485
99485
  reject(new Error(`Exited with code ${exitCode}`));
99486
99486
  return;
99487
99487
  }
99488
- resolve33(subprocess);
99488
+ resolve34(subprocess);
99489
99489
  });
99490
99490
  });
99491
99491
  }
@@ -99559,7 +99559,7 @@ defineLazyProperty(apps, "browser", () => "browser");
99559
99559
  defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
99560
99560
  var open_default = open2;
99561
99561
 
99562
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
99562
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
99563
99563
  var CognitoAuthError = class extends Error {
99564
99564
  constructor(message) {
99565
99565
  super(message);
@@ -100147,7 +100147,7 @@ function isCognitoThrottle(status, type2) {
100147
100147
  return status === 429;
100148
100148
  }
100149
100149
  function sleep(ms) {
100150
- return new Promise((resolve33) => setTimeout(resolve33, ms));
100150
+ return new Promise((resolve34) => setTimeout(resolve34, ms));
100151
100151
  }
100152
100152
  function backoffDelayMs(attempt, opts) {
100153
100153
  const ceiling = Math.min(opts.maxDelayMs, opts.baseDelayMs * 2 ** attempt);
@@ -100449,7 +100449,7 @@ async function browserLogin(config2) {
100449
100449
  saveCachedTokens(tokens);
100450
100450
  return tokens;
100451
100451
  function waitForAuthCode(port2, expectedState) {
100452
- return new Promise((resolve33, reject) => {
100452
+ return new Promise((resolve34, reject) => {
100453
100453
  const server = http2.createServer((req, res) => {
100454
100454
  const url2 = new URL(req.url ?? "/", `http://localhost:${port2}`);
100455
100455
  if (url2.pathname !== "/callback") {
@@ -100488,7 +100488,7 @@ async function browserLogin(config2) {
100488
100488
  <script>setTimeout(()=>window.close(),1500)</script>
100489
100489
  </body></html>`);
100490
100490
  cleanup();
100491
- resolve33(code2);
100491
+ resolve34(code2);
100492
100492
  });
100493
100493
  server.on("error", (err) => {
100494
100494
  cleanup();
@@ -100817,7 +100817,7 @@ function pickNewerSession(fromKeychain, other) {
100817
100817
  return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
100818
100818
  }
100819
100819
 
100820
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
100820
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
100821
100821
  var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
100822
100822
  var VaultCredentialScopeError = class extends Error {
100823
100823
  droppedWriteGrantPrefixes;
@@ -100859,7 +100859,7 @@ function assertCredentialScopeUsable(diagnostic) {
100859
100859
  }
100860
100860
  }
100861
100861
 
100862
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
100862
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
100863
100863
  var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
100864
100864
  var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
100865
100865
  "PLAN_LIMIT_EXCEEDED",
@@ -100957,7 +100957,7 @@ function formatPlanLimitNotice(event) {
100957
100957
  return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
100958
100958
  }
100959
100959
 
100960
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
100960
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
100961
100961
  var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
100962
100962
  var VaultClientError = class extends Error {
100963
100963
  statusCode;
@@ -101064,7 +101064,7 @@ function isTransient(status) {
101064
101064
  return status === 429 || status >= 500;
101065
101065
  }
101066
101066
  async function sleep2(ms) {
101067
- return new Promise((resolve33) => setTimeout(resolve33, ms));
101067
+ return new Promise((resolve34) => setTimeout(resolve34, ms));
101068
101068
  }
101069
101069
  var membershipRoleSchema = external_exports.enum(["owner", "admin", "member", "guest"]);
101070
101070
  var membershipStatusSchema = external_exports.enum(["pending", "active", "revoked"]);
@@ -101905,7 +101905,7 @@ function parseVaultErrorBody(body) {
101905
101905
  }
101906
101906
  }
101907
101907
 
101908
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/context.js
101908
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/context.js
101909
101909
  var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
101910
101910
  var DEFAULT_SESSION_DURATION_SECONDS = 900;
101911
101911
  var PRESIGN_NO_VEND_EXPIRES_AT = "9999-12-31T23:59:59.000Z";
@@ -102016,8 +102016,8 @@ async function sleepMs(ms) {
102016
102016
  await entityFetchSleepForTest(ms);
102017
102017
  return;
102018
102018
  }
102019
- await new Promise((resolve33) => {
102020
- setTimeout(resolve33, ms);
102019
+ await new Promise((resolve34) => {
102020
+ setTimeout(resolve34, ms);
102021
102021
  });
102022
102022
  }
102023
102023
  function parseRetryAfterMs(header) {
@@ -102128,12 +102128,12 @@ async function vendSelfCredentials(personUid, config2) {
102128
102128
  return postVend(route, { personUid }, config2);
102129
102129
  }
102130
102130
 
102131
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/s3.js
102131
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/s3.js
102132
102132
  import * as fs10 from "fs";
102133
102133
  import * as path8 from "path";
102134
102134
  import * as crypto4 from "crypto";
102135
102135
 
102136
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
102136
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
102137
102137
  import * as crypto3 from "crypto";
102138
102138
  import * as fs8 from "fs";
102139
102139
  import * as os3 from "os";
@@ -102189,11 +102189,11 @@ function shouldRecordLocalDeleteIntent(localPath, absent) {
102189
102189
  return absent && !isLocalPathBeingReplaced(localPath);
102190
102190
  }
102191
102191
 
102192
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/s3.js
102192
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/s3.js
102193
102193
  import { Readable as Readable19, Transform as Transform3 } from "stream";
102194
102194
  import { pipeline } from "stream/promises";
102195
102195
 
102196
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
102196
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
102197
102197
  var ONTOLOGY_ENTITY_KEY = /^ontology\/entities\/[a-z][a-z0-9-]*\/[^/]+\.md$/;
102198
102198
  var ENTITY_LAST_UPDATED_META_KEY = "hq-entity-last-updated";
102199
102199
  function ontologyVaultKey(relPath) {
@@ -102225,13 +102225,13 @@ function buildEntityMetadata(key, body) {
102225
102225
  return stamp === null ? {} : { [ENTITY_LAST_UPDATED_META_KEY]: stamp };
102226
102226
  }
102227
102227
 
102228
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
102228
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
102229
102229
  var import_client_s3 = __toESM(require_dist_cjs36(), 1);
102230
102230
  import * as http3 from "node:http";
102231
102231
  import * as https2 from "node:https";
102232
102232
  import { Transform as Transform2 } from "node:stream";
102233
102233
 
102234
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
102234
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
102235
102235
  import { createHash as createHash11 } from "node:crypto";
102236
102236
  var CHECKSUM_HEADER_NAMES = [
102237
102237
  "content-md5",
@@ -102302,7 +102302,7 @@ function headersForObjectLockPut(url2, headers, body) {
102302
102302
  return out;
102303
102303
  }
102304
102304
 
102305
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
102305
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
102306
102306
  import { Transform } from "node:stream";
102307
102307
  var MAX_BYTES_PER_SEC_ENV = "HQ_SYNC_MAX_BYTES_PER_SEC";
102308
102308
  var MAX_CONCURRENCY_ENV = "HQ_SYNC_MAX_CONCURRENCY";
@@ -102377,7 +102377,7 @@ var ThroughputEstimator = class {
102377
102377
  return max;
102378
102378
  }
102379
102379
  };
102380
- var realSleep = (ms) => new Promise((resolve33) => setTimeout(resolve33, ms));
102380
+ var realSleep = (ms) => new Promise((resolve34) => setTimeout(resolve34, ms));
102381
102381
  var TokenBucket = class {
102382
102382
  rateBps;
102383
102383
  tokens = 0;
@@ -102579,24 +102579,24 @@ var BandwidthGovernor = class {
102579
102579
  admitWaitingChoreTransfers() {
102580
102580
  const limit = this.choreTransferLimit();
102581
102581
  while (this.activeChoreTransfers < limit && this.choreTransferWaiters.length > 0) {
102582
- const resolve33 = this.choreTransferWaiters.shift();
102583
- if (!resolve33)
102582
+ const resolve34 = this.choreTransferWaiters.shift();
102583
+ if (!resolve34)
102584
102584
  return;
102585
102585
  this.activeChoreTransfers++;
102586
- resolve33(this.makeChoreTransferRelease());
102586
+ resolve34(this.makeChoreTransferRelease());
102587
102587
  }
102588
102588
  }
102589
102589
  acquireChoreTransfer() {
102590
- return new Promise((resolve33) => {
102590
+ return new Promise((resolve34) => {
102591
102591
  if (this.choreTransferWaiters.length === 0 && this.activeChoreTransfers < this.choreTransferLimit()) {
102592
102592
  this.activeChoreTransfers++;
102593
- resolve33(this.makeChoreTransferRelease());
102593
+ resolve34(this.makeChoreTransferRelease());
102594
102594
  return;
102595
102595
  }
102596
102596
  const queuedAt = this.now();
102597
102597
  this.choreTransferWaiters.push((release4) => {
102598
102598
  this.governorWaitMs += Math.max(0, this.now() - queuedAt);
102599
- resolve33(release4);
102599
+ resolve34(release4);
102600
102600
  });
102601
102601
  });
102602
102602
  }
@@ -102703,7 +102703,7 @@ function getBandwidthGovernor() {
102703
102703
  return singleton;
102704
102704
  }
102705
102705
 
102706
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
102706
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
102707
102707
  var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
102708
102708
  var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
102709
102709
  var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
@@ -103125,7 +103125,7 @@ function checkedNodeBody(message, expected) {
103125
103125
  }
103126
103126
  function nodePresignedGet(url2, headers) {
103127
103127
  const target = new URL(url2);
103128
- return new Promise((resolve33, reject) => {
103128
+ return new Promise((resolve34, reject) => {
103129
103129
  const handleResponse = (message) => {
103130
103130
  const responseHeaders = headersFromNode(message.headers);
103131
103131
  let expected;
@@ -103137,7 +103137,7 @@ function nodePresignedGet(url2, headers) {
103137
103137
  return;
103138
103138
  }
103139
103139
  const body = checkedNodeBody(message, expected);
103140
- resolve33({
103140
+ resolve34({
103141
103141
  status: message.statusCode ?? 0,
103142
103142
  headers: responseHeaders,
103143
103143
  body,
@@ -103534,8 +103534,8 @@ var PresignObjectIO = class {
103534
103534
  return { state: "unknown", reason: "rate-limited" };
103535
103535
  const timeoutMs = filesAdmissionTimeoutMsForTest ?? FILES_ADMISSION_TIMEOUT_MS;
103536
103536
  let timer;
103537
- const timedOut = new Promise((resolve33) => {
103538
- timer = setTimeout(() => resolve33({ state: "unknown", reason: "timeout" }), timeoutMs);
103537
+ const timedOut = new Promise((resolve34) => {
103538
+ timer = setTimeout(() => resolve34({ state: "unknown", reason: "timeout" }), timeoutMs);
103539
103539
  timer.unref?.();
103540
103540
  });
103541
103541
  const asked = (async () => {
@@ -103963,7 +103963,7 @@ function isTransientStatus(status) {
103963
103963
  return status === 500 || status === 502 || status === 503 || status === 504;
103964
103964
  }
103965
103965
  function sleep6(ms) {
103966
- return new Promise((resolve33) => setTimeout(resolve33, ms));
103966
+ return new Promise((resolve34) => setTimeout(resolve34, ms));
103967
103967
  }
103968
103968
  function isExpiredPresignDetail(detail) {
103969
103969
  if (!detail)
@@ -104088,9 +104088,9 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor) {
104088
104088
  const existing = byPerson.get(ctx.uid);
104089
104089
  if (existing)
104090
104090
  return existing;
104091
- const resolve33 = refresherFor?.(ctx.uid);
104091
+ const resolve34 = refresherFor?.(ctx.uid);
104092
104092
  const force = forceRefresherFor?.(ctx.uid);
104093
- const io2 = new S3SdkObjectIO(ctx, resolve33 && force ? { resolve: resolve33, force } : resolve33);
104093
+ const io2 = new S3SdkObjectIO(ctx, resolve34 && force ? { resolve: resolve34, force } : resolve34);
104094
104094
  byPerson.set(ctx.uid, io2);
104095
104095
  return io2;
104096
104096
  }
@@ -104103,12 +104103,12 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor) {
104103
104103
  };
104104
104104
  }
104105
104105
 
104106
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
104106
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
104107
104107
  function toPosixKey(key) {
104108
104108
  return key.split("\\").join("/");
104109
104109
  }
104110
104110
 
104111
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
104111
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
104112
104112
  var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
104113
104113
  function portableModeStamp(mode, platform5 = process.platform) {
104114
104114
  if (platform5 === "win32")
@@ -104119,7 +104119,7 @@ function isPortableModeSignal(mode) {
104119
104119
  return !WIN32_SYNTHETIC_MODES.has(mode & 511);
104120
104120
  }
104121
104121
 
104122
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
104122
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
104123
104123
  import * as path6 from "path";
104124
104124
  var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
104125
104125
  var SHEBANG = Buffer.from("#!");
@@ -104150,7 +104150,7 @@ function normalizeScriptLineEndings(body) {
104150
104150
  return changed ? out.subarray(0, n3) : null;
104151
104151
  }
104152
104152
 
104153
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
104153
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
104154
104154
  import path7 from "node:path";
104155
104155
  import fs9 from "node:fs";
104156
104156
  function personalSymlinkTargetLinkPath(relativePath) {
@@ -104373,11 +104373,11 @@ function redactShape(target, classification) {
104373
104373
  return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
104374
104374
  }
104375
104375
 
104376
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/s3.js
104376
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/s3.js
104377
104377
  var DOWNLOAD_STREAM_MAX_RETRIES = 3;
104378
104378
  var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
104379
104379
  function sleepMs2(ms) {
104380
- return new Promise((resolve33) => setTimeout(resolve33, ms));
104380
+ return new Promise((resolve34) => setTimeout(resolve34, ms));
104381
104381
  }
104382
104382
  function isRetryableDownloadStreamError(err) {
104383
104383
  if (isTransientNetworkError(err))
@@ -105195,8 +105195,8 @@ async function downloadFile(ctx, key, localPath, options = {}) {
105195
105195
  const previous = downloadStageLocks.get(stageLock) ?? Promise.resolve();
105196
105196
  let releaseLock = () => {
105197
105197
  };
105198
- const held = new Promise((resolve33) => {
105199
- releaseLock = resolve33;
105198
+ const held = new Promise((resolve34) => {
105199
+ releaseLock = resolve34;
105200
105200
  });
105201
105201
  const chained = previous.then(() => held);
105202
105202
  downloadStageLocks.set(stageLock, chained);
@@ -105559,13 +105559,13 @@ function getMimeType(filePath) {
105559
105559
  return mimeTypes[ext] || "application/octet-stream";
105560
105560
  }
105561
105561
 
105562
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
105562
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
105563
105563
  var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
105564
105564
 
105565
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
105565
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
105566
105566
  var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
105567
105567
 
105568
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/fsync-compat.js
105568
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/fsync-compat.js
105569
105569
  import * as fs11 from "node:fs";
105570
105570
  var UNSUPPORTED_DIRECTORY_FSYNC_CODES = /* @__PURE__ */ new Set(["EINVAL", "ENOTSUP", "EOPNOTSUPP", "EPERM"]);
105571
105571
  var loggedSkips = /* @__PURE__ */ new Set();
@@ -105589,7 +105589,7 @@ function fsyncWithCompatibility(fd, options) {
105589
105589
  }
105590
105590
  }
105591
105591
 
105592
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
105592
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
105593
105593
  var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
105594
105594
  var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
105595
105595
  var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
@@ -105608,7 +105608,7 @@ var MultipartByteBudget = class {
105608
105608
  throw new Error("realtime multipart: invalid byte-budget reservation");
105609
105609
  }
105610
105610
  if (this.usedBytes + bytes > this.maximumBytes) {
105611
- await new Promise((resolve33) => this.waiters.push({ bytes, resolve: resolve33 }));
105611
+ await new Promise((resolve34) => this.waiters.push({ bytes, resolve: resolve34 }));
105612
105612
  } else {
105613
105613
  this.usedBytes += bytes;
105614
105614
  }
@@ -105639,7 +105639,7 @@ var MultipartByteBudget = class {
105639
105639
  };
105640
105640
  var processByteBudget = new MultipartByteBudget();
105641
105641
 
105642
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal.js
105642
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal.js
105643
105643
  import * as fs20 from "fs";
105644
105644
  import * as os5 from "os";
105645
105645
  import * as path16 from "path";
@@ -105647,7 +105647,7 @@ import * as crypto10 from "crypto";
105647
105647
  import { spawn } from "node:child_process";
105648
105648
  import { fileURLToPath as fileURLToPath2 } from "node:url";
105649
105649
 
105650
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
105650
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
105651
105651
  var JOURNAL_DECODE_WINDOW = 1e4;
105652
105652
  var rowsInFlight = 0;
105653
105653
  var peakRowsInFlight = 0;
@@ -105706,7 +105706,7 @@ function journalFingerprintMatchesStat(fingerprint, lstat3) {
105706
105706
  return lstat3.size === fingerprint.size && lstat3.mtimeMs === fingerprint.mtimeMs && lstat3.ctimeMs === fingerprint.ctimeMs;
105707
105707
  }
105708
105708
 
105709
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
105709
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
105710
105710
  var HASH_BYTES = 32;
105711
105711
  var ETAG_BYTES = 16;
105712
105712
  var INITIAL_ROW_CAPACITY = 16;
@@ -107216,7 +107216,7 @@ function readOptionalBoolean(entry, key, flags, presentBit, valueBit) {
107216
107216
  entry[key] = Boolean(flags & valueBit);
107217
107217
  }
107218
107218
 
107219
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
107219
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
107220
107220
  var rowsByRecordProxy = /* @__PURE__ */ new WeakMap();
107221
107221
  function journalRecordRows(files) {
107222
107222
  return rowsByRecordProxy.get(files);
@@ -107282,13 +107282,13 @@ function createJournalRecordProxy(store) {
107282
107282
  return proxy;
107283
107283
  }
107284
107284
 
107285
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
107285
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
107286
107286
  import { StringDecoder } from "node:string_decoder";
107287
107287
 
107288
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
107288
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
107289
107289
  import * as crypto6 from "node:crypto";
107290
107290
 
107291
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
107291
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
107292
107292
  var packedJournalRows = /* @__PURE__ */ new WeakMap();
107293
107293
  var sharedAreaJournalRowStores = /* @__PURE__ */ new Map();
107294
107294
  function areaJournalRowsCacheKey(rootDir, slug) {
@@ -107311,7 +107311,7 @@ function forgetSharedAreaJournalRows(cacheKey) {
107311
107311
  sharedAreaJournalRowStores.delete(cacheKey);
107312
107312
  }
107313
107313
 
107314
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/state-store.js
107314
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/state-store.js
107315
107315
  import * as crypto5 from "node:crypto";
107316
107316
  import * as fs12 from "node:fs";
107317
107317
  import * as path9 from "node:path";
@@ -107387,8 +107387,8 @@ async function sleepAsyncMs(ms) {
107387
107387
  }
107388
107388
  if (ms <= 0)
107389
107389
  return;
107390
- await new Promise((resolve33) => {
107391
- setTimeout(resolve33, ms);
107390
+ await new Promise((resolve34) => {
107391
+ setTimeout(resolve34, ms);
107392
107392
  });
107393
107393
  }
107394
107394
  function compactionRetryPressure(walBytes, maxWalBytes, recordCount, maxRecords) {
@@ -107799,8 +107799,8 @@ var StateStore = class _StateStore {
107799
107799
  while (attempts < ASYNC_COMPACTION_MAX_STALE_ATTEMPTS) {
107800
107800
  let resolveStaged;
107801
107801
  let rejectStaged;
107802
- const stagedReady = new Promise((resolve34, reject2) => {
107803
- resolveStaged = resolve34;
107802
+ const stagedReady = new Promise((resolve35, reject2) => {
107803
+ resolveStaged = resolve35;
107804
107804
  rejectStaged = reject2;
107805
107805
  });
107806
107806
  let publish;
@@ -107840,9 +107840,9 @@ var StateStore = class _StateStore {
107840
107840
  if (plan === null)
107841
107841
  return false;
107842
107842
  const reservedPublish = publish;
107843
- const resolve33 = resolveStaged;
107843
+ const resolve34 = resolveStaged;
107844
107844
  const reject = rejectStaged;
107845
- if (reservedPublish === void 0 || resolve33 === void 0 || reject === void 0)
107845
+ if (reservedPublish === void 0 || resolve34 === void 0 || reject === void 0)
107846
107846
  return false;
107847
107847
  attempts += 1;
107848
107848
  try {
@@ -107853,7 +107853,7 @@ var StateStore = class _StateStore {
107853
107853
  discardStagedGeneration(staged);
107854
107854
  throw error64;
107855
107855
  }
107856
- resolve33(staged);
107856
+ resolve34(staged);
107857
107857
  } catch (error64) {
107858
107858
  reject(error64);
107859
107859
  await reservedPublish.catch(() => void 0);
@@ -108555,7 +108555,7 @@ async function writeDurableTemporaryAsync(dir, label, bytes) {
108555
108555
  bytesWrittenCount += bytesWritten;
108556
108556
  offset += bytesWritten;
108557
108557
  }
108558
- await new Promise((resolve33) => setImmediate(resolve33));
108558
+ await new Promise((resolve34) => setImmediate(resolve34));
108559
108559
  }
108560
108560
  await handle.datasync();
108561
108561
  await handle.close();
@@ -109618,8 +109618,8 @@ async function withInProcessAsyncScopeLock(dir, action, priority = false) {
109618
109618
  queue = { active: false, priority: [], ordinary: [] };
109619
109619
  inProcessAsyncScopeLocks.set(key, queue);
109620
109620
  }
109621
- const result = new Promise((resolve33, reject) => {
109622
- const entry = { action, resolve: resolve33, reject };
109621
+ const result = new Promise((resolve34, reject) => {
109622
+ const entry = { action, resolve: resolve34, reject };
109623
109623
  (priority ? queue.priority : queue.ordinary).push(entry);
109624
109624
  });
109625
109625
  runNextInProcessAsyncScopeLock(key, queue);
@@ -109648,12 +109648,12 @@ function runNextInProcessAsyncScopeLock(key, queue) {
109648
109648
  })();
109649
109649
  }
109650
109650
  function openExclusiveAsync(lockPath) {
109651
- return new Promise((resolve33, reject) => {
109651
+ return new Promise((resolve34, reject) => {
109652
109652
  fs12.open(lockPath, "wx", (error64, fd) => {
109653
109653
  if (error64)
109654
109654
  reject(error64);
109655
109655
  else
109656
- resolve33(fd);
109656
+ resolve34(fd);
109657
109657
  });
109658
109658
  });
109659
109659
  }
@@ -109707,7 +109707,7 @@ async function withScopeLockAsyncUnlocked(dir, action, deadline) {
109707
109707
  if (Date.now() >= deadline) {
109708
109708
  throw new StateStoreLockError(`timed out acquiring ${lockPath}`);
109709
109709
  }
109710
- await new Promise((resolve33) => setTimeout(resolve33, LOCK_RETRY_MS));
109710
+ await new Promise((resolve34) => setTimeout(resolve34, LOCK_RETRY_MS));
109711
109711
  }
109712
109712
  }
109713
109713
  inProcessAsyncScopeLockHolders.add(key);
@@ -110120,7 +110120,7 @@ function crc32c(bytes) {
110120
110120
  return (crc ^ 4294967295) >>> 0;
110121
110121
  }
110122
110122
 
110123
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
110123
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
110124
110124
  var JOURNAL_SNAPSHOT_V4_MAGIC = SNAPSHOT_V4_MAGIC;
110125
110125
  var SNAPSHOT_FIXED_HEADER_BYTES2 = 52;
110126
110126
  var SECTION_ALIGNMENT_BYTES = 8;
@@ -110239,7 +110239,7 @@ async function* sortedJournalPathsAsync(paths) {
110239
110239
  runs.push(paths.slice(start, start + JOURNAL_PATH_SORT_CHUNK_SIZE).sort());
110240
110240
  if (runs.length % JOURNAL_PATH_SORT_YIELD_EVERY === 0 || start + JOURNAL_PATH_SORT_CHUNK_SIZE < paths.length) {
110241
110241
  asyncSnapshotSortYieldHookForTest?.();
110242
- await new Promise((resolve33) => setImmediate(resolve33));
110242
+ await new Promise((resolve34) => setImmediate(resolve34));
110243
110243
  }
110244
110244
  }
110245
110245
  const heap = [];
@@ -110290,7 +110290,7 @@ async function* sortedJournalPathsAsync(paths) {
110290
110290
  emitted += 1;
110291
110291
  if (emitted % JOURNAL_PATH_SORT_YIELD_EVERY === 0) {
110292
110292
  asyncSnapshotSortYieldHookForTest?.();
110293
- await new Promise((resolve33) => setImmediate(resolve33));
110293
+ await new Promise((resolve34) => setImmediate(resolve34));
110294
110294
  }
110295
110295
  }
110296
110296
  }
@@ -110314,7 +110314,7 @@ async function rowsForJournalAsync(journal) {
110314
110314
  processed += 1;
110315
110315
  if (processed % 2048 === 0) {
110316
110316
  asyncSnapshotEncodeYieldHookForTest?.();
110317
- await new Promise((resolve33) => setImmediate(resolve33));
110317
+ await new Promise((resolve34) => setImmediate(resolve34));
110318
110318
  }
110319
110319
  }
110320
110320
  return rows;
@@ -110621,7 +110621,7 @@ async function validateAndQuarantinePayloadAsync(payload2, onQuarantined) {
110621
110621
  index += 1;
110622
110622
  if (index % 2048 === 0) {
110623
110623
  asyncSnapshotEncodeYieldHookForTest?.();
110624
- await new Promise((resolve33) => setImmediate(resolve33));
110624
+ await new Promise((resolve34) => setImmediate(resolve34));
110625
110625
  }
110626
110626
  }
110627
110627
  if (droppedCount > 0) {
@@ -110652,7 +110652,7 @@ function assertLittleEndian() {
110652
110652
  throw new Error("HQSNAP4 requires a little-endian host");
110653
110653
  }
110654
110654
 
110655
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
110655
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
110656
110656
  function decodeJournalSnapshot(chunks, magic) {
110657
110657
  if (magic.equals(SNAPSHOT_V3_MAGIC))
110658
110658
  return decodeV3JournalSnapshot(chunks);
@@ -111004,7 +111004,7 @@ function isPunctuation(value) {
111004
111004
  return value === "{" || value === "}" || value === "[" || value === "]" || value === ":" || value === ",";
111005
111005
  }
111006
111006
 
111007
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
111007
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
111008
111008
  function isUnderAnyRoot(key, roots) {
111009
111009
  if (roots.has(key))
111010
111010
  return true;
@@ -111017,7 +111017,7 @@ function isUnderAnyRoot(key, roots) {
111017
111017
  return false;
111018
111018
  }
111019
111019
 
111020
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
111020
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
111021
111021
  import * as fs13 from "node:fs";
111022
111022
  import { StringDecoder as StringDecoder2 } from "node:string_decoder";
111023
111023
  var CHUNK_BYTES = 1 << 18;
@@ -111131,26 +111131,26 @@ function streamJournalLedgerRows(filePath, onRow) {
111131
111131
  }
111132
111132
  }
111133
111133
 
111134
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
111134
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
111135
111135
  import * as fs17 from "fs";
111136
111136
  import * as path13 from "path";
111137
111137
 
111138
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
111138
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
111139
111139
  import * as fs16 from "fs";
111140
111140
  import * as path12 from "path";
111141
111141
 
111142
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
111142
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
111143
111143
  var import_ignore = __toESM(require_ignore(), 1);
111144
111144
  import * as fs14 from "fs";
111145
111145
  import * as path10 from "path";
111146
111146
 
111147
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/restore-staging.js
111147
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/restore-staging.js
111148
111148
  var RESTORE_STAGING_SUFFIX = /\.hq-restore-(?:\d+(?:-\d+)?|probe-\d+-[0-9a-z]+)$/i;
111149
111149
  function isRestoreStagingPath(relativePath) {
111150
111150
  return relativePath.split(/[\\/]/).some((segment) => RESTORE_STAGING_SUFFIX.test(segment));
111151
111151
  }
111152
111152
 
111153
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
111153
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
111154
111154
  function logSwallowed(line) {
111155
111155
  process.stderr.write(line);
111156
111156
  }
@@ -111666,6 +111666,72 @@ function resolveIncludeVerdict(matchers, relative19, isDir3, probe, countEvaluat
111666
111666
  }
111667
111667
  return false;
111668
111668
  }
111669
+ function evaluateRelativeIgnoreFilter(matchers, relative19, isDir3, stats) {
111670
+ if (isRestoreStagingPath(relative19))
111671
+ return { verdict: false, probe: null };
111672
+ if (relative19 === "person-settings" || relative19.startsWith("person-settings/")) {
111673
+ return { verdict: false, probe: null };
111674
+ }
111675
+ if (isServerOwnedSyncPath(relative19))
111676
+ return { verdict: false, probe: null };
111677
+ if (isMacFinderIconFile(relative19))
111678
+ return { verdict: false, probe: null };
111679
+ const probe = isDir3 ? relative19 + "/" : relative19;
111680
+ if (stats)
111681
+ stats.matcherInvocations += 1;
111682
+ if (matchers.ig.ignores(probe))
111683
+ return { verdict: false, probe };
111684
+ const verdict = resolveIncludeVerdict(matchers, relative19, isDir3, probe, stats ? () => {
111685
+ stats.matcherInvocations += 1;
111686
+ } : void 0);
111687
+ return { verdict, probe };
111688
+ }
111689
+ function suggestIncludeLine(snapshot, options, relative19, isDir3) {
111690
+ const parts = relative19.split("/");
111691
+ const depth = parts[0] === "companies" ? 3 : 2;
111692
+ const candidates = [];
111693
+ if (parts.length > depth || isDir3 && parts.length === depth) {
111694
+ candidates.push(parts.slice(0, depth).join("/") + "/");
111695
+ }
111696
+ candidates.push(isDir3 ? relative19 + "/" : relative19);
111697
+ for (const line of candidates) {
111698
+ const widened = createIgnoreMatchersFromSnapshot({ ...snapshot, hqinclude: `${snapshot.hqinclude ?? ""}
111699
+ ${line}
111700
+ ` }, options);
111701
+ if (evaluateRelativeIgnoreFilter(widened, relative19, isDir3).verdict)
111702
+ return line;
111703
+ }
111704
+ return void 0;
111705
+ }
111706
+ function createIgnoreExplainer(hqRoot, options = {}) {
111707
+ const snapshot = captureIgnoreMatcherSnapshot(hqRoot, options.snapshotReader);
111708
+ const matchers = createIgnoreMatchersFromSnapshot(snapshot, options);
111709
+ const defaultsOnly = createIgnoreMatchersFromSnapshot({ ...snapshot, hqignore: null, hqsyncignore: null, hqinclude: null }, options);
111710
+ const userIgnoreLayer = snapshot.hqignore !== null ? ".hqignore" : ".hqsyncignore";
111711
+ return (filePath, isDir3 = false) => {
111712
+ const relative19 = normalizeRelativePath(path10.relative(hqRoot, path10.resolve(hqRoot, filePath)));
111713
+ if (!relative19 || relative19.startsWith(".."))
111714
+ return { excluded: false, layer: null };
111715
+ const { verdict, probe } = evaluateRelativeIgnoreFilter(matchers, relative19, isDir3);
111716
+ if (verdict) {
111717
+ return isHqGeneratedIndexFile(path10.join(hqRoot, relative19), isDir3) ? { excluded: true, layer: "built-in" } : { excluded: false, layer: null };
111718
+ }
111719
+ if (probe === null)
111720
+ return { excluded: true, layer: "built-in" };
111721
+ if (matchers.ig.ignores(probe)) {
111722
+ return {
111723
+ excluded: true,
111724
+ layer: defaultsOnly.ig.ignores(probe) ? "defaults" : userIgnoreLayer
111725
+ };
111726
+ }
111727
+ const includeLine = suggestIncludeLine(snapshot, options, relative19, isDir3);
111728
+ return {
111729
+ excluded: true,
111730
+ layer: ".hqinclude allowlist",
111731
+ ...includeLine ? { includeLine } : {}
111732
+ };
111733
+ };
111734
+ }
111669
111735
  function createIgnoreFilter(hqRoot, options = {}) {
111670
111736
  const snapshot = captureIgnoreMatcherSnapshot(hqRoot, options.snapshotReader);
111671
111737
  let matchers = createIgnoreMatchersFromSnapshot(snapshot, options);
@@ -111742,7 +111808,8 @@ function createIgnoreFilter(hqRoot, options = {}) {
111742
111808
  filter.censusSize = () => memo2.size;
111743
111809
  return filter;
111744
111810
  }
111745
- function isWithinSizeLimit(filePath, maxBytes = 50 * 1024 * 1024) {
111811
+ var SYNC_MAX_FILE_BYTES = 50 * 1024 * 1024;
111812
+ function isWithinSizeLimit(filePath, maxBytes = SYNC_MAX_FILE_BYTES) {
111746
111813
  try {
111747
111814
  const stat5 = fs14.statSync(filePath);
111748
111815
  return stat5.size <= maxBytes;
@@ -111752,7 +111819,7 @@ function isWithinSizeLimit(filePath, maxBytes = 50 * 1024 * 1024) {
111752
111819
  }
111753
111820
  }
111754
111821
 
111755
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/personal-vault-exclusions.js
111822
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/personal-vault-exclusions.js
111756
111823
  import * as path11 from "path";
111757
111824
  import * as fs15 from "fs";
111758
111825
  function hasSegment(relPath, segment) {
@@ -112049,7 +112116,7 @@ function wrapFilterWithPersonalVaultDefaults(underlying, syncRoot, onExcluded, o
112049
112116
  };
112050
112117
  }
112051
112118
 
112052
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
112119
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
112053
112120
  function logSwallowed2(line) {
112054
112121
  process.stderr.write(line);
112055
112122
  }
@@ -112393,7 +112460,7 @@ function purgeExcludedPersonalVaultJournalEntries(journal, hqRoot, syncRoot, sho
112393
112460
  return { removed, byReason };
112394
112461
  }
112395
112462
 
112396
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
112463
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
112397
112464
  var AREA_LAYOUT_FORMAT = 1;
112398
112465
  var AREA_ROUTER_VERSION = 1;
112399
112466
  function canonicalizeVaultPath(value) {
@@ -112702,12 +112769,12 @@ function compareText(left, right) {
112702
112769
  return left < right ? -1 : left > right ? 1 : 0;
112703
112770
  }
112704
112771
 
112705
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
112772
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
112706
112773
  import * as crypto9 from "node:crypto";
112707
112774
  import * as fs19 from "node:fs";
112708
112775
  import * as path15 from "node:path";
112709
112776
 
112710
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
112777
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
112711
112778
  import * as crypto7 from "crypto";
112712
112779
  import * as fs18 from "fs";
112713
112780
  import * as os4 from "os";
@@ -112765,7 +112832,7 @@ function sleepSync(ms) {
112765
112832
  Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
112766
112833
  }
112767
112834
  function sleepAsync(ms) {
112768
- return new Promise((resolve33) => setTimeout(resolve33, Math.max(0, ms)));
112835
+ return new Promise((resolve34) => setTimeout(resolve34, Math.max(0, ms)));
112769
112836
  }
112770
112837
  function stateDir() {
112771
112838
  return process.env.HQ_STATE_DIR || path14.join(os4.homedir(), ".hq");
@@ -113337,7 +113404,7 @@ function withOperationLockSync(hqRoot, command5, fn, opts = {}) {
113337
113404
  }
113338
113405
  }
113339
113406
 
113340
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
113407
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
113341
113408
  import * as crypto8 from "node:crypto";
113342
113409
  var DIRECT_DELTA = 1;
113343
113410
  var PREPARED_TRANSACTION = 2;
@@ -114766,7 +114833,7 @@ function cloneMetadata(metadata) {
114766
114833
  return result;
114767
114834
  }
114768
114835
 
114769
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
114836
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
114770
114837
  function logSwallowed3(line) {
114771
114838
  process.stderr.write(line);
114772
114839
  }
@@ -115526,7 +115593,7 @@ function canonicalJsonOrUndefined(value) {
115526
115593
  return value === void 0 ? void 0 : canonicalJson2(value);
115527
115594
  }
115528
115595
 
115529
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
115596
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
115530
115597
  var AREA_MAINTENANCE_CURSOR_FORMAT = 1;
115531
115598
  var CURSOR_SET = 1;
115532
115599
  var AreaMaintenanceCursorStore = class _AreaMaintenanceCursorStore {
@@ -115628,7 +115695,7 @@ function sameAreas(left, right) {
115628
115695
  return left.length === right.length && left.every((areaId, index) => areaId === right[index]);
115629
115696
  }
115630
115697
 
115631
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/journal.js
115698
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/journal.js
115632
115699
  var TOMBSTONE_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
115633
115700
  var JOURNAL_VERSION_CURRENT = "2";
115634
115701
  var MAX_PULLS_PER_COMPANY = 50;
@@ -116319,9 +116386,9 @@ async function runAreaJournalMirrorRecoveryChild(slug) {
116319
116386
  child.stderr.setEncoding("utf8").on("data", (chunk) => {
116320
116387
  stderr += chunk;
116321
116388
  });
116322
- const exit = await new Promise((resolve33, reject) => {
116389
+ const exit = await new Promise((resolve34, reject) => {
116323
116390
  child.once("error", reject);
116324
- child.once("close", (code, signal) => resolve33({ code, signal }));
116391
+ child.once("close", (code, signal) => resolve34({ code, signal }));
116325
116392
  });
116326
116393
  if (exit.code !== 0) {
116327
116394
  throw new Error(`journal: area-ledger recovery child failed (${String(exit.code)} / ${String(exit.signal)}): ${stderr.trim()}`);
@@ -116844,7 +116911,7 @@ function openJournalStoreSession(slug) {
116844
116911
  return new JournalStore(slug, openJournalStore(slug, initial));
116845
116912
  }
116846
116913
  async function openJournalStoreSessionAsync(slug) {
116847
- await new Promise((resolve33) => setImmediate(resolve33));
116914
+ await new Promise((resolve34) => setImmediate(resolve34));
116848
116915
  const areaMigration = openAreaMigrationIfAuthoritative(slug);
116849
116916
  if (areaMigration)
116850
116917
  return new JournalStore(slug, void 0, areaMigration);
@@ -117590,13 +117657,13 @@ function gcTombstones(journal, now = Date.now()) {
117590
117657
  return removed;
117591
117658
  }
117592
117659
 
117593
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
117660
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
117594
117661
  import { randomUUID as randomUUID3 } from "node:crypto";
117595
117662
  import * as fs22 from "fs";
117596
117663
  import * as os7 from "os";
117597
117664
  import * as path18 from "path";
117598
117665
 
117599
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
117666
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
117600
117667
  import { createHash as createHash18 } from "node:crypto";
117601
117668
  import * as fs21 from "node:fs";
117602
117669
  import * as os6 from "node:os";
@@ -117745,7 +117812,7 @@ function readPendingConflictNotices() {
117745
117812
  return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
117746
117813
  }
117747
117814
 
117748
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
117815
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
117749
117816
  function logSwallowed5(line) {
117750
117817
  process.stderr.write(line);
117751
117818
  }
@@ -118030,7 +118097,7 @@ function createPassSummaryRecorder() {
118030
118097
  };
118031
118098
  }
118032
118099
 
118033
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
118100
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
118034
118101
  var SCOPE_PREFIX_MARKER = "\0hq-scope:";
118035
118102
  var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
118036
118103
  var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
@@ -118230,7 +118297,7 @@ function grantPathToScopePrefix(grantPath, slug) {
118230
118297
  return pathToScopePrefix(p3);
118231
118298
  }
118232
118299
 
118233
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
118300
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
118234
118301
  import * as fs23 from "fs";
118235
118302
  import * as path19 from "path";
118236
118303
  function buildScopeShrinkPlan(input2) {
@@ -118526,7 +118593,7 @@ function applyScopeShrink(input2) {
118526
118593
  };
118527
118594
  }
118528
118595
 
118529
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
118596
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
118530
118597
  var VEND_PATH_CAP = 10;
118531
118598
  var POST_FILTER_THRESHOLD = 50;
118532
118599
  var VEND_FANOUT_CONCURRENCY = 5;
@@ -118564,7 +118631,7 @@ function createConcurrencyLimiter(concurrency) {
118564
118631
  const waiters = [];
118565
118632
  return async function runLimited(fn) {
118566
118633
  if (active >= limit) {
118567
- await new Promise((resolve33) => waiters.push(resolve33));
118634
+ await new Promise((resolve34) => waiters.push(resolve34));
118568
118635
  }
118569
118636
  active += 1;
118570
118637
  try {
@@ -118613,7 +118680,11 @@ function dedupByKey(files) {
118613
118680
  return out;
118614
118681
  }
118615
118682
 
118616
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
118683
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
118684
+ var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
118685
+ var MIB = 1024 * 1024;
118686
+
118687
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
118617
118688
  import * as fs24 from "fs";
118618
118689
  import * as path20 from "path";
118619
118690
  var SESSIONS_SCOPE_PREFIX = "sessions/";
@@ -118684,7 +118755,7 @@ function readPinnedPrefixes(hqRoot, slug) {
118684
118755
  return [];
118685
118756
  }
118686
118757
 
118687
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
118758
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
118688
118759
  import * as fs25 from "fs";
118689
118760
  import * as path21 from "path";
118690
118761
  var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
@@ -118850,13 +118921,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
118850
118921
  }
118851
118922
  };
118852
118923
 
118853
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
118924
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
118854
118925
  import { createHash as createHash19 } from "node:crypto";
118855
118926
  import { promises as fs28 } from "node:fs";
118856
118927
  import * as os8 from "node:os";
118857
118928
  import * as path24 from "node:path";
118858
118929
 
118859
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
118930
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
118860
118931
  import { promises as fs26 } from "node:fs";
118861
118932
  import * as path22 from "node:path";
118862
118933
 
@@ -121484,7 +121555,7 @@ var jsYaml = {
121484
121555
  safeDump
121485
121556
  };
121486
121557
 
121487
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
121558
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
121488
121559
  function logSwallowed6(line) {
121489
121560
  process.stderr.write(line);
121490
121561
  }
@@ -121695,7 +121766,7 @@ function resolveCompanyForCwd(cwd, map9) {
121695
121766
  return collapsed !== c5 ? match(collapsed) : void 0;
121696
121767
  }
121697
121768
 
121698
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
121769
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
121699
121770
  import { promises as fs27 } from "node:fs";
121700
121771
  import * as path23 from "node:path";
121701
121772
  var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
@@ -122142,7 +122213,7 @@ function createUsageCompanyFallback(options) {
122142
122213
  };
122143
122214
  }
122144
122215
 
122145
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
122216
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
122146
122217
  function emptyCursor() {
122147
122218
  return { version: "1", files: {} };
122148
122219
  }
@@ -123024,7 +123095,7 @@ async function collectAndSendTelemetry(opts) {
123024
123095
  };
123025
123096
  }
123026
123097
 
123027
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
123098
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
123028
123099
  import { createHash as createHash20 } from "node:crypto";
123029
123100
  import { promises as fs29 } from "node:fs";
123030
123101
  import * as os9 from "node:os";
@@ -123817,12 +123888,12 @@ async function collectAndSendSkillTelemetry(opts) {
123817
123888
  };
123818
123889
  }
123819
123890
 
123820
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
123891
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
123821
123892
  import * as fs41 from "fs";
123822
123893
  import * as os13 from "os";
123823
123894
  import * as path37 from "path";
123824
123895
 
123825
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
123896
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
123826
123897
  init_dist();
123827
123898
  var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
123828
123899
  var FLAG_READ_TIMEOUT_MS = 2e3;
@@ -123871,7 +123942,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
123871
123942
  }
123872
123943
  }
123873
123944
 
123874
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
123945
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
123875
123946
  function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
123876
123947
  if (typeof client.presign === "function" && typeof client.listFiles === "function") {
123877
123948
  return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
@@ -123889,7 +123960,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
123889
123960
  vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
123890
123961
  }
123891
123962
 
123892
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
123963
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
123893
123964
  import * as fs30 from "node:fs";
123894
123965
  import * as path26 from "node:path";
123895
123966
  import { randomUUID as randomUUID4 } from "node:crypto";
@@ -123934,10 +124005,10 @@ function appendSyncDecision(input2, options = {}) {
123934
124005
  }
123935
124006
  }
123936
124007
 
123937
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
124008
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
123938
124009
  import * as crypto14 from "crypto";
123939
124010
 
123940
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
124011
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
123941
124012
  import * as fs31 from "fs";
123942
124013
  import * as path27 from "path";
123943
124014
  var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
@@ -124029,16 +124100,16 @@ async function primePrivateFolderUpload(input2) {
124029
124100
  }]);
124030
124101
  }
124031
124102
 
124032
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
124103
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
124033
124104
  init_dist();
124034
124105
 
124035
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
124106
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
124036
124107
  var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
124037
124108
  function flagCompanyUid(uid) {
124038
124109
  return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
124039
124110
  }
124040
124111
 
124041
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
124112
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
124042
124113
  var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
124043
124114
  var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
124044
124115
  var FLAG_REQUEST_TIMEOUT_MS = 2e3;
@@ -124150,7 +124221,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
124150
124221
  return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
124151
124222
  }
124152
124223
 
124153
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
124224
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
124154
124225
  var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
124155
124226
  var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
124156
124227
  var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
@@ -124189,8 +124260,8 @@ function isFullPassDurableProgressEnabled() {
124189
124260
  return activeController?.durableProgressEnabled ?? handoffDurableProgressEnabled;
124190
124261
  }
124191
124262
  function fullPassCapSleep(ms) {
124192
- return new Promise((resolve33) => {
124193
- setTimeout(resolve33, ms);
124263
+ return new Promise((resolve34) => {
124264
+ setTimeout(resolve34, ms);
124194
124265
  });
124195
124266
  }
124196
124267
  function platformCapDefaults(platform5) {
@@ -124727,7 +124798,7 @@ var FullPassCapController = class {
124727
124798
  }
124728
124799
  };
124729
124800
 
124730
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
124801
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
124731
124802
  import * as readline from "readline";
124732
124803
  function parseFrontmatterVersion(body) {
124733
124804
  if (!body || body.length === 0)
@@ -124823,10 +124894,10 @@ async function promptConflict(conflict) {
124823
124894
  console.error(` Remote modified: ${conflict.remoteModified.toISOString()}`);
124824
124895
  }
124825
124896
  const options = conflict.direction === "push" ? "[o]verwrite remote / [k]eep remote / [p]ublish local (fenced) / [d]iff / [a]bort" : "[o]verwrite local / [k]eep local / [d]iff / [s]kip";
124826
- const answer = await new Promise((resolve33) => {
124897
+ const answer = await new Promise((resolve34) => {
124827
124898
  rl.question(` ${options}: `, (ans) => {
124828
124899
  rl.close();
124829
- resolve33(ans.trim().toLowerCase());
124900
+ resolve34(ans.trim().toLowerCase());
124830
124901
  });
124831
124902
  });
124832
124903
  switch (answer) {
@@ -124855,7 +124926,7 @@ async function promptConflict(conflict) {
124855
124926
  }
124856
124927
  }
124857
124928
 
124858
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
124929
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
124859
124930
  import * as crypto11 from "node:crypto";
124860
124931
  import * as fs32 from "node:fs";
124861
124932
  import * as os10 from "node:os";
@@ -125240,14 +125311,14 @@ async function fetchTombstonePage(url2, token) {
125240
125311
  clearTimeout(timer);
125241
125312
  }
125242
125313
  if (waitMs > 0) {
125243
- await new Promise((resolve33) => setTimeout(resolve33, waitMs));
125314
+ await new Promise((resolve34) => setTimeout(resolve34, waitMs));
125244
125315
  waitedMs += waitMs;
125245
125316
  }
125246
125317
  }
125247
125318
  throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
125248
125319
  }
125249
125320
 
125250
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
125321
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
125251
125322
  import { execSync } from "child_process";
125252
125323
  import * as fs33 from "fs";
125253
125324
  import * as os11 from "os";
@@ -125338,12 +125409,12 @@ var TransferSemaphore = class {
125338
125409
  this.available = Math.max(1, Math.trunc(capacity));
125339
125410
  }
125340
125411
  async withPermit(fn) {
125341
- await new Promise((resolve33) => {
125412
+ await new Promise((resolve34) => {
125342
125413
  if (this.available > 0) {
125343
125414
  this.available -= 1;
125344
- resolve33();
125415
+ resolve34();
125345
125416
  } else {
125346
- this.waiters.push(resolve33);
125417
+ this.waiters.push(resolve34);
125347
125418
  }
125348
125419
  });
125349
125420
  try {
@@ -125394,11 +125465,11 @@ function hasRemoteChanged(remote, entry) {
125394
125465
  return remote.lastModified.getTime() > syncedAt;
125395
125466
  }
125396
125467
 
125397
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
125468
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
125398
125469
  import * as crypto12 from "crypto";
125399
125470
  import * as path31 from "path";
125400
125471
 
125401
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
125472
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
125402
125473
  import { createHash as createHash22, randomUUID as randomUUID6 } from "node:crypto";
125403
125474
  import * as fs34 from "node:fs";
125404
125475
  import * as os12 from "node:os";
@@ -125507,7 +125578,7 @@ function readShortMachineId(hqRoot) {
125507
125578
  return createHash22("sha1").update(full).digest("hex").slice(0, 6);
125508
125579
  }
125509
125580
 
125510
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
125581
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
125511
125582
  var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
125512
125583
  var CONFLICT_PROBE_DIR = ".hq/tmp";
125513
125584
  function safeTimestamp(detectedAt) {
@@ -125525,7 +125596,7 @@ function buildConflictId(originalRelative, detectedAt) {
125525
125596
  return `${safePath}-${safeTimestamp(detectedAt)}`;
125526
125597
  }
125527
125598
 
125528
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
125599
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
125529
125600
  import * as crypto13 from "crypto";
125530
125601
  import * as fs35 from "fs";
125531
125602
  import * as path32 from "path";
@@ -125679,7 +125750,7 @@ function pruneConflictIndex(hqRoot) {
125679
125750
  return result;
125680
125751
  }
125681
125752
 
125682
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
125753
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
125683
125754
  import * as fs36 from "node:fs";
125684
125755
  function isAppendOnlyPath(relativePath) {
125685
125756
  const base = relativePath.split(/[\\/]/).pop() ?? "";
@@ -125751,7 +125822,7 @@ function appendIfUnchanged(file2, expected, merged) {
125751
125822
  return "appended";
125752
125823
  }
125753
125824
 
125754
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
125825
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
125755
125826
  import * as fs37 from "node:fs";
125756
125827
  import * as path33 from "node:path";
125757
125828
  function isBoardJsonPath(relativePath) {
@@ -125897,7 +125968,7 @@ function replaceIfUnchanged(file2, expected, merged) {
125897
125968
  return "appended";
125898
125969
  }
125899
125970
 
125900
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
125971
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
125901
125972
  var SAME_PATH_UPLOAD_WAIT_MS = 6e4;
125902
125973
  var SAME_PATH_LANDED_KEY_CAP = 4096;
125903
125974
  var SAME_PATH_LANDED_PER_KEY_CAP = 8;
@@ -126000,16 +126071,16 @@ var SamePathUploadHold = class {
126000
126071
  }
126001
126072
  const waitMs = waitMsForTest ?? SAME_PATH_UPLOAD_WAIT_MS;
126002
126073
  const ownSlot = slot;
126003
- const granted = await new Promise((resolve33) => {
126074
+ const granted = await new Promise((resolve34) => {
126004
126075
  const waiter = (ok) => {
126005
126076
  clearTimeout(timer);
126006
- resolve33(ok);
126077
+ resolve34(ok);
126007
126078
  };
126008
126079
  const timer = setTimeout(() => {
126009
126080
  const index = ownSlot.waiters.indexOf(waiter);
126010
126081
  if (index >= 0)
126011
126082
  ownSlot.waiters.splice(index, 1);
126012
- resolve33(false);
126083
+ resolve34(false);
126013
126084
  }, waitMs);
126014
126085
  timer.unref?.();
126015
126086
  ownSlot.waiters.push(waiter);
@@ -126087,7 +126158,7 @@ var SamePathUploadSupersededError = class extends Error {
126087
126158
  }
126088
126159
  };
126089
126160
 
126090
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/cloud-authoritative.js
126161
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/cloud-authoritative.js
126091
126162
  var CLOUD_AUTHORITATIVE_PATTERNS = [
126092
126163
  /^company-brief\.md$/,
126093
126164
  /^board\.json$/,
@@ -126122,7 +126193,7 @@ function isLocallyIneligibleForPush(relPath, options = {}) {
126122
126193
  return isCloudAuthoritative(relPath);
126123
126194
  }
126124
126195
 
126125
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
126196
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
126126
126197
  init_dist();
126127
126198
  import { createHash as createHash23 } from "node:crypto";
126128
126199
  var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
@@ -126203,7 +126274,7 @@ ${caller}`;
126203
126274
  return failed ? false : value;
126204
126275
  }
126205
126276
 
126206
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
126277
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
126207
126278
  import fs38 from "node:fs";
126208
126279
  import path34 from "node:path";
126209
126280
  var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
@@ -126269,7 +126340,7 @@ function entityIsFreshForCreate(body, nowMs) {
126269
126340
  return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
126270
126341
  }
126271
126342
 
126272
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
126343
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
126273
126344
  init_dist();
126274
126345
  import { createHash as createHash24 } from "node:crypto";
126275
126346
  var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
@@ -126343,7 +126414,7 @@ ${caller}`;
126343
126414
  return failed ? false : value;
126344
126415
  }
126345
126416
 
126346
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
126417
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
126347
126418
  init_dist();
126348
126419
  import { createHash as createHash25 } from "node:crypto";
126349
126420
  var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
@@ -126406,7 +126477,7 @@ ${caller}`;
126406
126477
  return failed ? false : value;
126407
126478
  }
126408
126479
 
126409
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
126480
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
126410
126481
  import * as path35 from "node:path";
126411
126482
  var MAX_DIAGNOSTIC_LENGTH = 1024;
126412
126483
  function sanitizeDiagnostic(value) {
@@ -126539,7 +126610,7 @@ function pushFailureTelemetryLabel(value) {
126539
126610
  return safe.slice(0, 128) || "unknown";
126540
126611
  }
126541
126612
 
126542
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
126613
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
126543
126614
  import * as fs39 from "fs";
126544
126615
  function toPortableSymlinkTarget(target, platform5 = process.platform) {
126545
126616
  return platform5 === "win32" ? target.replaceAll("\\", "/") : target;
@@ -126558,14 +126629,14 @@ function readlinkOrNull(linkPath, readlink = (path70) => fs39.readlinkSync(path7
126558
126629
  }
126559
126630
  }
126560
126631
 
126561
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
126632
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
126562
126633
  function checkpointReconcileApply(checkpoint, paths) {
126563
126634
  if (!checkpoint)
126564
126635
  return;
126565
126636
  checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path70) => ({ path: path70, durable: true })));
126566
126637
  }
126567
126638
 
126568
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
126639
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
126569
126640
  init_dist();
126570
126641
  import { createHash as createHash26 } from "node:crypto";
126571
126642
  var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
@@ -126710,7 +126781,7 @@ function warnFlagReadFailure(write) {
126710
126781
  `)))(line);
126711
126782
  }
126712
126783
 
126713
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
126784
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
126714
126785
  import * as fs40 from "fs";
126715
126786
  import * as path36 from "path";
126716
126787
  function foldVaultKey(key) {
@@ -126858,7 +126929,7 @@ function directoryFoldsCase(dir) {
126858
126929
  return false;
126859
126930
  }
126860
126931
 
126861
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
126932
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
126862
126933
  async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
126863
126934
  const probeKey = crypto14.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
126864
126935
  const probePath = path37.join(os13.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
@@ -126997,7 +127068,7 @@ async function yieldToCooperativeCheckpoint(work, cooperativeCheckpoint, force =
126997
127068
  const completed = resumedAt > 0 ? resumedAt : work.rowsSinceYield;
126998
127069
  work.rowsSinceYield = 0;
126999
127070
  work.lastYieldAt = now;
127000
- await new Promise((resolve33) => setImmediate(resolve33));
127071
+ await new Promise((resolve34) => setImmediate(resolve34));
127001
127072
  if (!cooperativeCheckpoint)
127002
127073
  return;
127003
127074
  if (await cooperativeCheckpoint() === true) {
@@ -127440,6 +127511,12 @@ function formatIgnoreExcludedWarningLines(event) {
127440
127511
  const lines = [
127441
127512
  ` ! ${event.count} path${event.count === 1 ? "" : "s"} were EXCLUDED from sync by an ignore rule and did NOT reach the vault (review in case this is unintended):`
127442
127513
  ];
127514
+ if (event.layerCounts && event.layerCounts.length > 0) {
127515
+ lines.push(` excluded by: ${event.layerCounts.map(({ layer, count }) => `${layer} (${count})`).join(", ")}`);
127516
+ }
127517
+ for (const line of event.includeLines ?? []) {
127518
+ lines.push(` to sync it, add this line to .hqinclude: ${line}`);
127519
+ }
127443
127520
  const prefixes = event.prefixCounts;
127444
127521
  if (prefixes && prefixes.length > 0 && event.count > 1) {
127445
127522
  for (const { prefix, count } of prefixes) {
@@ -127472,7 +127549,7 @@ function wrapFilterWithIgnoreVisibility(underlying, hqRoot, onIgnoreExcluded, on
127472
127549
  if (!isDir3 && isSecretPatternIgnore(rel))
127473
127550
  onSecretExcluded?.(rel);
127474
127551
  else if (!isExpectedIgnore(rel))
127475
- onIgnoreExcluded(rel);
127552
+ onIgnoreExcluded(rel, absPath, isDir3 === true);
127476
127553
  return false;
127477
127554
  };
127478
127555
  }
@@ -127628,9 +127705,24 @@ async function createPushRunContext(options) {
127628
127705
  });
127629
127706
  const ignoreExcludedSet = /* @__PURE__ */ new Set();
127630
127707
  const ignoreExcludedTotal = { value: 0 };
127708
+ const ignoreExcludedLayers = /* @__PURE__ */ new Map();
127709
+ const ignoreIncludeLines = /* @__PURE__ */ new Set();
127631
127710
  const secretExcludedSet = /* @__PURE__ */ new Set();
127632
- const recordedIgnoreFilter = wrapFilterWithIgnoreVisibility(ignoreFilter, hqRoot, (rel) => {
127711
+ let explainIgnored = null;
127712
+ const recordedIgnoreFilter = wrapFilterWithIgnoreVisibility(ignoreFilter, hqRoot, (rel, absPath, isDir3) => {
127713
+ if (ignoreExcludedSet.has(rel))
127714
+ return;
127633
127715
  ignoreExcludedSet.add(rel);
127716
+ explainIgnored ??= createIgnoreExplainer(hqRoot, {
127717
+ allowRootMcpConfig: personalConnectorSettingsSync
127718
+ });
127719
+ const explanation = explainIgnored(absPath, isDir3);
127720
+ if (!explanation.layer)
127721
+ return;
127722
+ ignoreExcludedLayers.set(explanation.layer, (ignoreExcludedLayers.get(explanation.layer) ?? 0) + 1);
127723
+ if (explanation.includeLine && ignoreIncludeLines.size < IGNORE_EXCLUDED_SAMPLE_CAP) {
127724
+ ignoreIncludeLines.add(explanation.includeLine);
127725
+ }
127634
127726
  }, () => {
127635
127727
  ignoreExcludedTotal.value++;
127636
127728
  }, (rel) => {
@@ -127706,6 +127798,8 @@ async function createPushRunContext(options) {
127706
127798
  scopeExcludedSet,
127707
127799
  ignoreExcludedSet,
127708
127800
  ignoreExcludedTotal,
127801
+ ignoreExcludedLayers,
127802
+ ignoreIncludeLines,
127709
127803
  secretExcludedSet,
127710
127804
  unreachablePaths,
127711
127805
  linkedSubtreeSet,
@@ -129471,7 +129565,7 @@ async function executeUploads(run, pushPlan, counters, conflictPaths) {
129471
129565
  const resumedAt = admittedSinceCooperativeCheckpoint + skippedSinceCooperativeCheckpoint;
129472
129566
  admittedSinceCooperativeCheckpoint = 0;
129473
129567
  skippedSinceCooperativeCheckpoint = 0;
129474
- await new Promise((resolve33) => setImmediate(resolve33));
129568
+ await new Promise((resolve34) => setImmediate(resolve34));
129475
129569
  if (await run.options.cooperativeCheckpoint() === true) {
129476
129570
  process.stderr.write(`${JSON.stringify({
129477
129571
  type: "cooperative-handoff",
@@ -130259,7 +130353,11 @@ function finalizeShareJournal(run) {
130259
130353
  totalExcluded: run.ignoreExcludedTotal.value,
130260
130354
  samplePaths: sampled.samplePaths,
130261
130355
  prefixCounts: sampled.prefixCounts,
130262
- prefixCount: sampled.prefixCount
130356
+ prefixCount: sampled.prefixCount,
130357
+ ...run.ignoreExcludedLayers.size > 0 ? {
130358
+ layerCounts: [...run.ignoreExcludedLayers.entries()].sort((a5, b5) => b5[1] - a5[1] || a5[0].localeCompare(b5[0])).map(([layer, count]) => ({ layer, count }))
130359
+ } : {},
130360
+ ...run.ignoreIncludeLines.size > 0 ? { includeLines: [...run.ignoreIncludeLines] } : {}
130263
130361
  });
130264
130362
  }
130265
130363
  if (run.secretExcludedSet.size > 0) {
@@ -131158,11 +131256,11 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
131158
131256
  return out;
131159
131257
  }
131160
131258
 
131161
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
131259
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
131162
131260
  import * as fs49 from "fs";
131163
131261
  import * as path45 from "path";
131164
131262
 
131165
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
131263
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
131166
131264
  import * as fs42 from "node:fs";
131167
131265
  import * as os14 from "node:os";
131168
131266
  import * as path38 from "node:path";
@@ -131241,12 +131339,12 @@ function* readRows(filename) {
131241
131339
  }
131242
131340
  }
131243
131341
 
131244
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
131342
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
131245
131343
  import * as fs44 from "fs";
131246
131344
  import * as os15 from "os";
131247
131345
  import * as path40 from "path";
131248
131346
 
131249
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
131347
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
131250
131348
  import * as crypto15 from "crypto";
131251
131349
  import * as fs43 from "fs";
131252
131350
  import * as path39 from "path";
@@ -131432,7 +131530,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
131432
131530
  return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
131433
131531
  }
131434
131532
 
131435
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
131533
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
131436
131534
  var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
131437
131535
  function gitSidecarDir(hqRoot, homeDir = os15.homedir()) {
131438
131536
  return path40.join(homeDir, ".hq", "hq-root-git", canonicalRootHash(path40.resolve(hqRoot)));
@@ -131619,10 +131717,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
131619
131717
  };
131620
131718
  }
131621
131719
 
131622
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
131720
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
131623
131721
  var SKILLS_KEY_PREFIX = ".claude/skills/";
131624
131722
 
131625
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
131723
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
131626
131724
  var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
131627
131725
  function rawSha256FromContentHash(contentHash) {
131628
131726
  if (contentHash === void 0)
@@ -131633,7 +131731,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
131633
131731
  return rawSha256FromContentHash(contentHash) === rawHash;
131634
131732
  }
131635
131733
 
131636
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
131734
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
131637
131735
  import { createHash as createHash29 } from "node:crypto";
131638
131736
  var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
131639
131737
  var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
@@ -131658,7 +131756,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
131658
131756
  return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
131659
131757
  }
131660
131758
 
131661
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
131759
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
131662
131760
  init_dist();
131663
131761
  import { createHash as createHash30 } from "node:crypto";
131664
131762
  function logSwallowed8(line) {
@@ -131775,7 +131873,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
131775
131873
  return defaultTargetedUpsertExactListGate(config2, companyUid);
131776
131874
  }
131777
131875
 
131778
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
131876
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
131779
131877
  var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
131780
131878
  function coalesceDenseTargetedPullPaths(paths) {
131781
131879
  const normalized = paths.map((path70) => path70.replace(/\\/g, "/"));
@@ -131813,15 +131911,15 @@ function coalesceDenseTargetedPullPaths(paths) {
131813
131911
  return result;
131814
131912
  }
131815
131913
 
131816
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
131914
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
131817
131915
  import { createHash as createHash33 } from "node:crypto";
131818
131916
 
131819
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
131917
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
131820
131918
  import { spawnSync as spawnSync3 } from "child_process";
131821
131919
  import * as fs48 from "fs";
131822
131920
  import * as path44 from "path";
131823
131921
 
131824
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
131922
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
131825
131923
  import { spawnSync as spawnSync2 } from "child_process";
131826
131924
  import * as fs45 from "fs";
131827
131925
  import * as path41 from "path";
@@ -132084,7 +132182,7 @@ function materializeLegacyKnowledgeRepos(root5) {
132084
132182
  }
132085
132183
  }
132086
132184
 
132087
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
132185
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
132088
132186
  import * as crypto16 from "node:crypto";
132089
132187
  import * as fs46 from "node:fs";
132090
132188
  import * as os16 from "node:os";
@@ -133025,7 +133123,7 @@ function captureSessionLogs(root5, options = {}) {
133025
133123
  }
133026
133124
  }
133027
133125
 
133028
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
133126
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
133029
133127
  import * as crypto17 from "node:crypto";
133030
133128
  import * as fs47 from "node:fs";
133031
133129
  import * as os17 from "node:os";
@@ -133286,7 +133384,7 @@ function pruneSyncedSessionLogs(root5) {
133286
133384
  }
133287
133385
  }
133288
133386
 
133289
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
133387
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
133290
133388
  function isDir2(p3) {
133291
133389
  try {
133292
133390
  return fs48.statSync(p3).isDirectory();
@@ -133810,14 +133908,14 @@ function emitReindexTelemetry(opts, result, lockResult) {
133810
133908
  }, { claims: opts.telemetryClaims });
133811
133909
  }
133812
133910
 
133813
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
133911
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
133814
133912
  async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
133815
133913
  work.rowsSinceYield += 1;
133816
133914
  if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
133817
133915
  return false;
133818
133916
  }
133819
133917
  work.rowsSinceYield = 0;
133820
- await new Promise((resolve33) => setImmediate(resolve33));
133918
+ await new Promise((resolve34) => setImmediate(resolve34));
133821
133919
  if (!cooperativeCheckpoint)
133822
133920
  return false;
133823
133921
  const handedOff = await cooperativeCheckpoint() === true;
@@ -134012,8 +134110,8 @@ async function awaitListPageWithCooperativeYield(work, cooperativeCheckpoint, re
134012
134110
  let timer;
134013
134111
  const raced = await Promise.race([
134014
134112
  outcome,
134015
- new Promise((resolve33) => {
134016
- timer = setTimeout(() => resolve33({ kind: "tick" }), yieldMs);
134113
+ new Promise((resolve34) => {
134114
+ timer = setTimeout(() => resolve34({ kind: "tick" }), yieldMs);
134017
134115
  timer.unref?.();
134018
134116
  })
134019
134117
  ]);
@@ -134722,6 +134820,10 @@ async function executeConflictExecutor(run, plan, scopeRun, counters) {
134722
134820
  executeCloudPlaceholderUpdate(run, item, counters);
134723
134821
  continue;
134724
134822
  }
134823
+ if (item.action === "create-cloud-placeholder") {
134824
+ executeCloudPlaceholderCreate(run, item, counters);
134825
+ continue;
134826
+ }
134725
134827
  if (item.action === "orphan-cloud-placeholder") {
134726
134828
  executeCloudPlaceholderOrphan(run, item, counters);
134727
134829
  continue;
@@ -134815,6 +134917,31 @@ function executeCloudPlaceholderUpdate(run, item, counters) {
134815
134917
  });
134816
134918
  }
134817
134919
  }
134920
+ function executeCloudPlaceholderCreate(run, item, counters) {
134921
+ const key = item.remoteFile.key;
134922
+ counters.filesSkipped++;
134923
+ if (fs49.existsSync(item.localPath) || hasCloudPlaceholderSibling(item.localPath))
134924
+ return;
134925
+ try {
134926
+ fs49.mkdirSync(path45.dirname(item.localPath), { recursive: true });
134927
+ writeCloudPlaceholder(cloudPlaceholderPathFor(item.localPath), {
134928
+ path: path45.relative(run.hqRoot, item.localPath).split(path45.sep).join("/"),
134929
+ size: item.remoteFile.size,
134930
+ sha256: null,
134931
+ vault: run.options.personalMode === true ? "personal" : "company",
134932
+ key,
134933
+ remoteEtag: normalizeEtag(item.remoteFile.etag)
134934
+ });
134935
+ } catch (err) {
134936
+ run.emit({
134937
+ type: "error",
134938
+ path: key,
134939
+ message: `cloud placeholder create failed: ${describeError2(err)}`
134940
+ });
134941
+ return;
134942
+ }
134943
+ run.emit({ type: "skip-cloud-only", path: key, bytes: item.remoteFile.size });
134944
+ }
134818
134945
  function executeCloudPlaceholderOrphan(run, item, counters) {
134819
134946
  const key = item.remoteFile.key;
134820
134947
  try {
@@ -136037,7 +136164,7 @@ async function executeJournalTombstoneDeletes(run, plan, counters) {
136037
136164
  let tombstoneRows = 0;
136038
136165
  for (const tombstone of plan.tombstones) {
136039
136166
  if (++tombstoneRows % cooperativeUnitSize() === 0) {
136040
- await new Promise((resolve33) => setImmediate(resolve33));
136167
+ await new Promise((resolve34) => setImmediate(resolve34));
136041
136168
  }
136042
136169
  const { key, localPath, localSnapshot } = tombstone;
136043
136170
  if (tombstone.journalOnly || plan.caseAliasedKeys?.has(toPosixKey(key))) {
@@ -136355,7 +136482,7 @@ async function computePullPlan(remoteFiles, journal, companyRoot, shouldSync, pe
136355
136482
  const retain = items.push.bind(items);
136356
136483
  items.push = (...next) => {
136357
136484
  for (const item of next) {
136358
- if (item.action === "download" || item.action === "conflict" || item.action === "skip-content-match" || item.action === "skip-kms10-copy" || item.action === "tombstone-delete" || item.action === "update-cloud-placeholder" || item.action === "orphan-cloud-placeholder" || item.action === "skip-junk-key-spelling" || item.action === "skip-unreadable-link") {
136485
+ if (item.action === "download" || item.action === "conflict" || item.action === "skip-content-match" || item.action === "skip-kms10-copy" || item.action === "tombstone-delete" || item.action === "update-cloud-placeholder" || item.action === "create-cloud-placeholder" || item.action === "orphan-cloud-placeholder" || item.action === "skip-junk-key-spelling" || item.action === "skip-unreadable-link") {
136359
136486
  retain(item);
136360
136487
  } else if (item.action === "skip-out-of-scope") {
136361
136488
  preplannedFilesOutOfScope++;
@@ -136652,6 +136779,10 @@ async function computePullPlan(remoteFiles, journal, companyRoot, shouldSync, pe
136652
136779
  items.push({ action: "skip-unchanged", remoteFile, localPath });
136653
136780
  continue;
136654
136781
  }
136782
+ if ((journalEntry === void 0 || isTombstone(journalEntry)) && !tombstoneSuppresses && !localTombstoneSuppresses && remoteFile.size > SYNC_MAX_FILE_BYTES) {
136783
+ items.push({ action: "create-cloud-placeholder", remoteFile, localPath });
136784
+ continue;
136785
+ }
136655
136786
  }
136656
136787
  if (localExists) {
136657
136788
  const isLocalSymlink = localLstat.isSymbolicLink();
@@ -136918,7 +137049,7 @@ async function computePullPlan(remoteFiles, journal, companyRoot, shouldSync, pe
136918
137049
  let tombstoneScanRows = 0;
136919
137050
  for (const key of unseenJournalKeys) {
136920
137051
  if (++tombstoneScanRows % cooperativeUnitSize() === 0) {
136921
- await new Promise((resolve33) => setImmediate(resolve33));
137052
+ await new Promise((resolve34) => setImmediate(resolve34));
136922
137053
  }
136923
137054
  const posixKey = toPosixKey(key);
136924
137055
  if (!prefixMatcher.coversPath(posixKey))
@@ -137082,6 +137213,9 @@ function defaultConsoleLogger2(event) {
137082
137213
  } else if (event.type === "personal-vault-journal-purge-skipped") {
137083
137214
  const pct = Math.round(event.attempted / Math.max(1, event.totalRows) * 100);
137084
137215
  console.warn(` ! skipped a mass journal purge \u2014 ${event.attempted}/${event.totalRows} rows (${pct}%) would have been dropped in one pass; journal kept intact (likely a transient scope fault, not a real change)`);
137216
+ } else if (event.type === "skip-cloud-only") {
137217
+ const mb = (event.bytes / (1024 * 1024)).toFixed(1);
137218
+ console.log(` \xB7 ${event.path} left in the cloud (${mb} MB, over the 50 MB sync limit); run hq storage fetch to download it`);
137085
137219
  } else if (event.type === "skip-size-limit") {
137086
137220
  const mb = (event.bytes / (1024 * 1024)).toFixed(1);
137087
137221
  console.warn(` ! ${event.path} skipped \u2014 ${mb} MB exceeds the 50 MB sync size limit`);
@@ -137130,7 +137264,7 @@ function defaultConsoleLogger2(event) {
137130
137264
  }
137131
137265
  }
137132
137266
 
137133
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
137267
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
137134
137268
  import { createRequire } from "node:module";
137135
137269
  var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
137136
137270
  var require2 = createRequire(import.meta.url);
@@ -137140,7 +137274,7 @@ var PRECLONE_FREE_SPACE_FLOOR_BYTES = 1024 ** 3;
137140
137274
  var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
137141
137275
  var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
137142
137276
 
137143
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
137277
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
137144
137278
  var SOURCE_CHANNELS = Object.freeze([
137145
137279
  "meeting",
137146
137280
  "email",
@@ -137149,7 +137283,7 @@ var SOURCE_CHANNELS = Object.freeze([
137149
137283
  "notion"
137150
137284
  ]);
137151
137285
 
137152
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
137286
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
137153
137287
  var SIGNAL_TYPES = Object.freeze([
137154
137288
  "action_item",
137155
137289
  "commitment",
@@ -137159,7 +137293,7 @@ var SIGNAL_TYPES = Object.freeze([
137159
137293
  "summary"
137160
137294
  ]);
137161
137295
 
137162
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
137296
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
137163
137297
  var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
137164
137298
  var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
137165
137299
  function nativeSeparatorsToPosix(relativePath, sep24) {
@@ -137254,7 +137388,7 @@ function decodePushEvent(input2) {
137254
137388
  return parsed.data;
137255
137389
  }
137256
137390
 
137257
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
137391
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
137258
137392
  import * as path46 from "path";
137259
137393
  function routeChangeToTarget(relPath, kind) {
137260
137394
  const norm = relPath.split(path46.sep).join("/").replace(/^\.\//, "");
@@ -137423,7 +137557,7 @@ function carriedFlags(baseArgv) {
137423
137557
  return carried;
137424
137558
  }
137425
137559
 
137426
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
137560
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
137427
137561
  var moduleLoadFetch = globalThis.fetch;
137428
137562
  var moduleLoadAbortController = globalThis.AbortController;
137429
137563
  var successOutcomes = /* @__PURE__ */ new WeakMap();
@@ -137645,7 +137779,7 @@ var HttpPushTransport = class {
137645
137779
  }
137646
137780
  };
137647
137781
 
137648
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
137782
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
137649
137783
  var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
137650
137784
  var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
137651
137785
  function parseFeatureSwitch(value) {
@@ -137714,7 +137848,7 @@ function isEventSyncLocallyDisabled(value) {
137714
137848
  }
137715
137849
  }
137716
137850
 
137717
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
137851
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
137718
137852
  var import_client_cloudwatch = __toESM(require_dist_cjs40(), 1);
137719
137853
  var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
137720
137854
  var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
@@ -137782,7 +137916,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
137782
137916
  }
137783
137917
  }
137784
137918
 
137785
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
137919
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
137786
137920
  var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
137787
137921
  var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
137788
137922
  var DEFAULT_WAIT_TIME_SECONDS = 20;
@@ -138161,8 +138295,8 @@ var SqsPushReceiver = class {
138161
138295
  if (this.inFlightDrains.size > 0) {
138162
138296
  const releaseBudgetMs = Math.min(RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS, this.disposeDrainMs / 2);
138163
138297
  const drainBudgetMs = Math.max(0, this.disposeDrainMs - releaseBudgetMs);
138164
- const drainDeadline = new Promise((resolve33) => {
138165
- const t = setTimeout(resolve33, drainBudgetMs);
138298
+ const drainDeadline = new Promise((resolve34) => {
138299
+ const t = setTimeout(resolve34, drainBudgetMs);
138166
138300
  t.unref?.();
138167
138301
  });
138168
138302
  await Promise.race([
@@ -138327,8 +138461,8 @@ var SqsPushReceiver = class {
138327
138461
  */
138328
138462
  startDrain(initial, signal) {
138329
138463
  let resolveIntake = () => void 0;
138330
- const intakeComplete = new Promise((resolve33) => {
138331
- resolveIntake = resolve33;
138464
+ const intakeComplete = new Promise((resolve34) => {
138465
+ resolveIntake = resolve34;
138332
138466
  });
138333
138467
  const drain = this.handleReceivedMessages(initial, signal, resolveIntake).catch((err) => {
138334
138468
  this.logger.error({
@@ -138347,8 +138481,8 @@ var SqsPushReceiver = class {
138347
138481
  async waitForDrainSlot(signal) {
138348
138482
  while (!signal.aborted && this.inFlightDrains.size >= this.maxInFlightDrains) {
138349
138483
  let onAbort;
138350
- const abortWait = new Promise((resolve33) => {
138351
- onAbort = resolve33;
138484
+ const abortWait = new Promise((resolve34) => {
138485
+ onAbort = resolve34;
138352
138486
  signal.addEventListener("abort", onAbort, { once: true });
138353
138487
  });
138354
138488
  await Promise.race([
@@ -139180,11 +139314,11 @@ var SqsPushReceiver = class {
139180
139314
  let timedOut = false;
139181
139315
  const result = await Promise.race([
139182
139316
  p3.then(() => "settled"),
139183
- new Promise((resolve33) => {
139317
+ new Promise((resolve34) => {
139184
139318
  timeout = setTimeout(() => {
139185
139319
  timedOut = true;
139186
139320
  controller.abort(new Error("receiver drain exceeded its time limit"));
139187
- resolve33("timed-out");
139321
+ resolve34("timed-out");
139188
139322
  }, this.drainTimeoutMs);
139189
139323
  timeout.unref?.();
139190
139324
  })
@@ -139299,26 +139433,26 @@ function realtimeAdmissionHolder(error64) {
139299
139433
  };
139300
139434
  }
139301
139435
  function defaultSleep(ms, signal) {
139302
- return new Promise((resolve33) => {
139436
+ return new Promise((resolve34) => {
139303
139437
  if (signal.aborted)
139304
- return resolve33();
139438
+ return resolve34();
139305
139439
  const t = setTimeout(() => {
139306
139440
  signal.removeEventListener("abort", onAbort);
139307
- resolve33();
139441
+ resolve34();
139308
139442
  }, ms);
139309
139443
  t.unref?.();
139310
139444
  const onAbort = () => {
139311
139445
  clearTimeout(t);
139312
- resolve33();
139446
+ resolve34();
139313
139447
  };
139314
139448
  signal.addEventListener("abort", onAbort, { once: true });
139315
139449
  });
139316
139450
  }
139317
139451
 
139318
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
139452
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
139319
139453
  var import_pino = __toESM(require_pino(), 1);
139320
139454
 
139321
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
139455
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
139322
139456
  function assertCanonicalPath(path70) {
139323
139457
  if (path70.length === 0 || path70.startsWith("/") || path70.endsWith("/") || path70.includes("\\") || path70.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
139324
139458
  throw new Error(`path lease requires a canonical relative path: ${path70}`);
@@ -139381,7 +139515,7 @@ var PathLease = class {
139381
139515
  }
139382
139516
  };
139383
139517
 
139384
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
139518
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
139385
139519
  var MAX_REALTIME_PULL_YIELDS = 3;
139386
139520
  var MAX_REALTIME_PULL_YIELD_MS = 6e4;
139387
139521
  var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
@@ -139433,14 +139567,14 @@ var DefaultParallelSyncCoordinator = class {
139433
139567
  submit(work) {
139434
139568
  if (this.stopping)
139435
139569
  return Promise.resolve(this.retryableOutcome(this.pathsFor(work), "coordinator is shutting down"));
139436
- return new Promise((resolve33) => {
139570
+ return new Promise((resolve34) => {
139437
139571
  let submission;
139438
139572
  try {
139439
- submission = this.createSubmission(work, resolve33);
139573
+ submission = this.createSubmission(work, resolve34);
139440
139574
  } catch (error64) {
139441
139575
  const message = error64 instanceof Error ? error64.message : String(error64);
139442
139576
  const paths = error64 instanceof SubmissionValidationError ? error64.paths : [];
139443
- resolve33({
139577
+ resolve34({
139444
139578
  paths: paths.map((path70) => ({ path: path70, epoch: 0, status: "refused", reason: message })),
139445
139579
  error: message
139446
139580
  });
@@ -139449,11 +139583,11 @@ var DefaultParallelSyncCoordinator = class {
139449
139583
  this.touchPullYieldStates(submission);
139450
139584
  this.expireInactivePullYieldStates();
139451
139585
  if (work.class === "chore" && work.cursor?.phase !== void 0 && work.cursor.phase !== "apply" && submission.paths.length > 0) {
139452
- resolve33(this.refusedOutcome(submission.paths, "non-apply chore cannot dispatch mutation paths"));
139586
+ resolve34(this.refusedOutcome(submission.paths, "non-apply chore cannot dispatch mutation paths"));
139453
139587
  return;
139454
139588
  }
139455
139589
  if (this.hasInternallyConflictingPaths(submission.paths)) {
139456
- resolve33(this.refusedOutcome(submission.paths, "submission contains internally conflicting paths"));
139590
+ resolve34(this.refusedOutcome(submission.paths, "submission contains internally conflicting paths"));
139457
139591
  return;
139458
139592
  }
139459
139593
  this.registerEpochs(submission);
@@ -139519,14 +139653,14 @@ var DefaultParallelSyncCoordinator = class {
139519
139653
  ]).then(() => void 0);
139520
139654
  return this.shutdownPromise;
139521
139655
  }
139522
- createSubmission(work, resolve33) {
139656
+ createSubmission(work, resolve34) {
139523
139657
  const paths = this.pathsFor(work);
139524
139658
  return {
139525
139659
  id: `sync-${this.nextId++}`,
139526
139660
  work,
139527
139661
  paths,
139528
139662
  results: /* @__PURE__ */ new Map(),
139529
- resolve: resolve33,
139663
+ resolve: resolve34,
139530
139664
  controller: new AbortController(),
139531
139665
  supersededPaths: /* @__PURE__ */ new Set(),
139532
139666
  yieldedToPush: false,
@@ -139888,7 +140022,7 @@ var DefaultParallelSyncCoordinator = class {
139888
140022
  }
139889
140023
  };
139890
140024
 
139891
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
140025
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
139892
140026
  var InlineSyncWorkerAdapter = class {
139893
140027
  handler;
139894
140028
  constructor(handler) {
@@ -139899,7 +140033,7 @@ var InlineSyncWorkerAdapter = class {
139899
140033
  }
139900
140034
  };
139901
140035
 
139902
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
140036
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
139903
140037
  import * as fs52 from "fs";
139904
140038
  import { createHash as createHash34 } from "node:crypto";
139905
140039
  import { readFile as readFile8, stat as stat4 } from "node:fs/promises";
@@ -140759,7 +140893,7 @@ var NodeFsHandler = class {
140759
140893
  this._addToNodeFs(path70, initialAdd, wh, depth + 1);
140760
140894
  }
140761
140895
  }).on(EV.ERROR, this._boundHandleError);
140762
- return new Promise((resolve33, reject) => {
140896
+ return new Promise((resolve34, reject) => {
140763
140897
  if (!stream)
140764
140898
  return reject();
140765
140899
  stream.once(STR_END, () => {
@@ -140768,7 +140902,7 @@ var NodeFsHandler = class {
140768
140902
  return;
140769
140903
  }
140770
140904
  const wasThrottled = throttler ? throttler.clear() : false;
140771
- resolve33(void 0);
140905
+ resolve34(void 0);
140772
140906
  previous.getChildren().filter((item) => {
140773
140907
  return item !== directory && !current.has(item);
140774
140908
  }).forEach((item) => {
@@ -141595,7 +141729,7 @@ function watch(paths, options = {}) {
141595
141729
  return watcher;
141596
141730
  }
141597
141731
 
141598
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/watch-roots.js
141732
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/watch-roots.js
141599
141733
  import * as fs50 from "fs";
141600
141734
  import * as path47 from "path";
141601
141735
  function defaultListChildDirs(dir, onSymlinkEntry) {
@@ -141669,7 +141803,7 @@ function isCoveredByRecursiveRoot(absolutePath, recursiveRoots) {
141669
141803
  }
141670
141804
  }
141671
141805
 
141672
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/watch-coverage.js
141806
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/watch-coverage.js
141673
141807
  import * as fs51 from "fs";
141674
141808
  function directoryIdentityAt(absolutePath) {
141675
141809
  try {
@@ -141706,7 +141840,7 @@ function probeScopedWatchCoverage(input2) {
141706
141840
  return { ok: true };
141707
141841
  }
141708
141842
 
141709
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
141843
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
141710
141844
  var DEBOUNCE_MS = 2e3;
141711
141845
  var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
141712
141846
  var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
@@ -142096,7 +142230,7 @@ function startScopedRecursiveWatch(hqRoot, shouldEmit, onEvent, onError, onDirec
142096
142230
  if (workSinceYield < 128)
142097
142231
  return closed;
142098
142232
  workSinceYield = 0;
142099
- await new Promise((resolve33) => setImmediate(resolve33));
142233
+ await new Promise((resolve34) => setImmediate(resolve34));
142100
142234
  return closed;
142101
142235
  };
142102
142236
  while (pending.length > 0 && !closed) {
@@ -143032,11 +143166,11 @@ var TreeWatcher = class {
143032
143166
  return capture;
143033
143167
  }
143034
143168
  enqueueDeleteSnapshotCaptureBatch(absolutePath, capture, schedule = true) {
143035
- const promise2 = new Promise((resolve33, reject) => {
143169
+ const promise2 = new Promise((resolve34, reject) => {
143036
143170
  this.pendingDeleteSnapshotCaptureBatch.push({
143037
143171
  absolutePath,
143038
143172
  capture,
143039
- resolve: resolve33,
143173
+ resolve: resolve34,
143040
143174
  reject
143041
143175
  });
143042
143176
  });
@@ -143394,7 +143528,7 @@ var TreeWatcher = class {
143394
143528
  if (this.pendingDeleteSnapshotCaptureBatch.length > 0) {
143395
143529
  this.scheduleDeleteSnapshotCaptureBatch();
143396
143530
  }
143397
- await new Promise((resolve33) => setImmediate(resolve33));
143531
+ await new Promise((resolve34) => setImmediate(resolve34));
143398
143532
  return !cancelled();
143399
143533
  };
143400
143534
  const record2 = async (absolutePath, kind, relativePath) => {
@@ -143717,17 +143851,17 @@ var DurablePublishedContentHashes = class {
143717
143851
  if (this.closed)
143718
143852
  return Promise.resolve(false);
143719
143853
  this.supersedeBatchRetries(mutation.relativePath);
143720
- let resolve33;
143854
+ let resolve34;
143721
143855
  let reject;
143722
143856
  const result = new Promise((resolveResult, rejectResult) => {
143723
- resolve33 = resolveResult;
143857
+ resolve34 = resolveResult;
143724
143858
  reject = rejectResult;
143725
143859
  });
143726
143860
  this.pending.push({
143727
143861
  mutation,
143728
143862
  sequence: ++this.nextSequence,
143729
143863
  shouldPersist,
143730
- resolve: resolve33,
143864
+ resolve: resolve34,
143731
143865
  reject,
143732
143866
  settled: false
143733
143867
  });
@@ -144661,8 +144795,8 @@ var PushEventEmitter = class _PushEventEmitter {
144661
144795
  }
144662
144796
  async waitForPublishDrain() {
144663
144797
  let timeout;
144664
- const deadline = new Promise((resolve33) => {
144665
- timeout = this.clock.setTimeout(() => resolve33(false), PUSH_EVENT_EMITTER_DISPOSE_DRAIN_MS);
144798
+ const deadline = new Promise((resolve34) => {
144799
+ timeout = this.clock.setTimeout(() => resolve34(false), PUSH_EVENT_EMITTER_DISPOSE_DRAIN_MS);
144666
144800
  });
144667
144801
  const drained = await Promise.race([
144668
144802
  this.publishTail.then(() => true, () => true),
@@ -144711,11 +144845,11 @@ var PushEventEmitter = class _PushEventEmitter {
144711
144845
  }
144712
144846
  };
144713
144847
 
144714
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
144848
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
144715
144849
  import * as fs54 from "node:fs";
144716
144850
  import * as path51 from "node:path";
144717
144851
 
144718
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
144852
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
144719
144853
  import * as path49 from "node:path";
144720
144854
  var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
144721
144855
  function isSafeCompanySlug(companiesDir, slug) {
@@ -144732,7 +144866,7 @@ function isSafeCompanySlug(companiesDir, slug) {
144732
144866
  return path49.dirname(companyDir) === resolvedCompaniesDir;
144733
144867
  }
144734
144868
 
144735
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
144869
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
144736
144870
  var SYNC_MANIFEST_CONTRACT_VERSION = 1;
144737
144871
  var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
144738
144872
  var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
@@ -144901,7 +145035,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
144901
145035
  }
144902
145036
  };
144903
145037
 
144904
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
145038
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
144905
145039
  import * as crypto18 from "node:crypto";
144906
145040
  import * as fs53 from "node:fs";
144907
145041
  import * as path50 from "node:path";
@@ -145076,7 +145210,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
145076
145210
  }
145077
145211
  var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
145078
145212
 
145079
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
145213
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
145080
145214
  function logSwallowed11(line) {
145081
145215
  process.stderr.write(line);
145082
145216
  }
@@ -145158,7 +145292,7 @@ function compileIgnoreRules(hqRoot, scopeKind) {
145158
145292
  return bounded;
145159
145293
  }
145160
145294
  function yieldToEventLoop() {
145161
- return new Promise((resolve33) => setTimeout(resolve33, 0));
145295
+ return new Promise((resolve34) => setTimeout(resolve34, 0));
145162
145296
  }
145163
145297
  function recordWalkedFile(outcome, collidedKeys, absPath, relative19) {
145164
145298
  const manifestPath = toManifestPath(relative19);
@@ -145685,7 +145819,7 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
145685
145819
  return upload;
145686
145820
  }
145687
145821
 
145688
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
145822
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
145689
145823
  import * as fs55 from "node:fs";
145690
145824
  var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
145691
145825
  var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
@@ -145860,14 +145994,14 @@ async function raceTransportCall(call, signal, deadlineMs) {
145860
145994
  try {
145861
145995
  return await Promise.race([
145862
145996
  settled,
145863
- new Promise((resolve33) => {
145864
- timer = setTimeout(() => resolve33({ kind: "deadline" }), remainingMs2);
145997
+ new Promise((resolve34) => {
145998
+ timer = setTimeout(() => resolve34({ kind: "deadline" }), remainingMs2);
145865
145999
  timer.unref?.();
145866
146000
  }),
145867
- new Promise((resolve33) => {
146001
+ new Promise((resolve34) => {
145868
146002
  if (!signal)
145869
146003
  return;
145870
- onAbort = () => resolve33({ kind: "aborted" });
146004
+ onAbort = () => resolve34({ kind: "aborted" });
145871
146005
  signal.addEventListener("abort", onAbort, { once: true });
145872
146006
  })
145873
146007
  ]);
@@ -146254,7 +146388,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
146254
146388
  };
146255
146389
  }
146256
146390
 
146257
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
146391
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
146258
146392
  import * as fs56 from "node:fs";
146259
146393
  import * as path52 from "node:path";
146260
146394
  import { createHash as createHash36, randomUUID as randomUUID7 } from "node:crypto";
@@ -146500,7 +146634,7 @@ function validUnresolvedCompanyRecord(value) {
146500
146634
  return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
146501
146635
  }
146502
146636
 
146503
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/version.js
146637
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/version.js
146504
146638
  import { readFileSync as readFileSync34 } from "node:fs";
146505
146639
  import { fileURLToPath as fileURLToPath3 } from "node:url";
146506
146640
  import path53 from "node:path";
@@ -146508,7 +146642,7 @@ var here = path53.dirname(fileURLToPath3(import.meta.url));
146508
146642
  var pkg = JSON.parse(readFileSync34(path53.resolve(here, "..", "package.json"), "utf-8"));
146509
146643
  var HQ_CLOUD_VERSION = pkg.version;
146510
146644
 
146511
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
146645
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
146512
146646
  import { promises as fs57 } from "node:fs";
146513
146647
  import * as os18 from "node:os";
146514
146648
  import * as path54 from "node:path";
@@ -146651,10 +146785,10 @@ async function resolveStoryDoneStateFlags(scopes, reader, log) {
146651
146785
  settled += 1;
146652
146786
  }
146653
146787
  }));
146654
- const deadline = new Promise((resolve33) => {
146788
+ const deadline = new Promise((resolve34) => {
146655
146789
  timer = setTimeout(() => {
146656
146790
  deadlineReached = true;
146657
- resolve33();
146791
+ resolve34();
146658
146792
  }, STORY_DONE_STATE_FLAG_PHASE_TIMEOUT_MS);
146659
146793
  });
146660
146794
  await Promise.race([reads, deadline]);
@@ -146887,7 +147021,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
146887
147021
  return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
146888
147022
  }
146889
147023
 
146890
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
147024
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
146891
147025
  import * as fs58 from "fs";
146892
147026
  import * as path55 from "path";
146893
147027
  import { spawn as spawn2 } from "child_process";
@@ -146949,9 +147083,9 @@ function resolveQmdLaunch(command5, args, options = {}) {
146949
147083
  function createQmdExec(options = {}) {
146950
147084
  const command5 = options.command ?? "qmd";
146951
147085
  const sigintGraceMs = options.sigintGraceMs ?? DEFAULT_QMD_SIGINT_GRACE_MS;
146952
- return (args, execOptions = {}) => new Promise((resolve33) => {
147086
+ return (args, execOptions = {}) => new Promise((resolve34) => {
146953
147087
  if (execOptions.signal?.aborted) {
146954
- resolve33({ status: null, stdout: "", stderr: "", timedOut: false });
147088
+ resolve34({ status: null, stdout: "", stderr: "", timedOut: false });
146955
147089
  return;
146956
147090
  }
146957
147091
  const launch = options.backgroundQos === void 0 ? resolveQmdLaunch(command5, args) : options.backgroundQos && fs58.existsSync(DARWIN_TASKPOLICY) ? { file: DARWIN_TASKPOLICY, args: ["-b", command5, ...args] } : { file: command5, args };
@@ -146963,7 +147097,7 @@ function createQmdExec(options = {}) {
146963
147097
  windowsHide: true
146964
147098
  });
146965
147099
  } catch (err) {
146966
- resolve33({
147100
+ resolve34({
146967
147101
  status: null,
146968
147102
  stdout: "",
146969
147103
  stderr: err instanceof Error ? err.message : String(err),
@@ -147033,7 +147167,7 @@ function createQmdExec(options = {}) {
147033
147167
  if (escalationTimer !== void 0)
147034
147168
  clearTimeout(escalationTimer);
147035
147169
  signal?.removeEventListener("abort", onAbort);
147036
- resolve33({ status, stdout, stderr, timedOut });
147170
+ resolve34({ status, stdout, stderr, timedOut });
147037
147171
  });
147038
147172
  });
147039
147173
  }
@@ -147537,7 +147671,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
147537
147671
  return false;
147538
147672
  }
147539
147673
 
147540
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
147674
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
147541
147675
  import fs59 from "node:fs";
147542
147676
  import path56 from "node:path";
147543
147677
  import { randomUUID as randomUUID8 } from "node:crypto";
@@ -147641,7 +147775,7 @@ nonce=${nonce}
147641
147775
  };
147642
147776
  }
147643
147777
 
147644
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
147778
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
147645
147779
  import { Worker } from "node:worker_threads";
147646
147780
  function reindexAsync(options) {
147647
147781
  if (import.meta.url.endsWith(".ts"))
@@ -147668,7 +147802,7 @@ function reindexAsync(options) {
147668
147802
  ...options.telemetryCompanyUid ? { telemetryCompanyUid: options.telemetryCompanyUid } : {},
147669
147803
  ...options.changedCount !== void 0 ? { changedCount: options.changedCount } : {}
147670
147804
  };
147671
- return new Promise((resolve33, reject) => {
147805
+ return new Promise((resolve34, reject) => {
147672
147806
  const worker = new Worker(workerSource, {
147673
147807
  eval: true,
147674
147808
  workerData: {
@@ -147692,7 +147826,7 @@ function reindexAsync(options) {
147692
147826
  if (code !== 0) {
147693
147827
  reject(new Error(`reindex worker exited with code ${code}`));
147694
147828
  } else if (result) {
147695
- resolve33(result);
147829
+ resolve34(result);
147696
147830
  } else {
147697
147831
  reject(new Error("reindex worker exited without a result"));
147698
147832
  }
@@ -147700,7 +147834,7 @@ function reindexAsync(options) {
147700
147834
  });
147701
147835
  }
147702
147836
 
147703
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
147837
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
147704
147838
  import * as crypto19 from "crypto";
147705
147839
  import * as fs60 from "fs";
147706
147840
  import * as os19 from "os";
@@ -147860,7 +147994,7 @@ function materializeCodexAgents(opts) {
147860
147994
  }
147861
147995
  }
147862
147996
 
147863
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
147997
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
147864
147998
  var POST_SYNC_FLAG_KEYS = {
147865
147999
  qmdReindex: "sync.qmd-reindex",
147866
148000
  conflictPrune: "sync.conflict-prune",
@@ -147880,12 +148014,12 @@ function createPostSyncFlagEvaluator(options = {}) {
147880
148014
  };
147881
148015
  }
147882
148016
 
147883
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
148017
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
147884
148018
  import { createHash as createHash37, randomUUID as randomUUID9 } from "node:crypto";
147885
148019
  import * as fs62 from "node:fs/promises";
147886
148020
  import * as path59 from "node:path";
147887
148021
 
147888
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
148022
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
147889
148023
  import * as fs61 from "node:fs";
147890
148024
  import * as os20 from "node:os";
147891
148025
  import * as path58 from "node:path";
@@ -147935,7 +148069,7 @@ function readDesktopInstallationId(options) {
147935
148069
  return void 0;
147936
148070
  }
147937
148071
 
147938
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
148072
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
147939
148073
  var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
147940
148074
  var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
147941
148075
  var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
@@ -148213,8 +148347,8 @@ async function withPhaseDeadline(pass4, deadlineMs) {
148213
148347
  try {
148214
148348
  return await Promise.race([
148215
148349
  pass4,
148216
- new Promise((resolve33) => {
148217
- timer = setTimeout(() => resolve33(PHASE_TIMED_OUT), Math.max(0, deadlineMs - Date.now()));
148350
+ new Promise((resolve34) => {
148351
+ timer = setTimeout(() => resolve34(PHASE_TIMED_OUT), Math.max(0, deadlineMs - Date.now()));
148218
148352
  timer.unref?.();
148219
148353
  })
148220
148354
  ]);
@@ -148557,14 +148691,14 @@ async function runPostSyncManifestUploads(options) {
148557
148691
  return emitted;
148558
148692
  }
148559
148693
 
148560
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
148694
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
148561
148695
  var PARTIAL_SYNC_EXIT = 2;
148562
148696
  var UNRESOLVED_COMPANY_EXIT = 19;
148563
148697
  var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
148564
148698
  var WATCH_OWNER_LEASE_LOST_EXIT = 21;
148565
148699
  var PREFLIGHT_HALT_EXIT = 22;
148566
148700
 
148567
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
148701
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
148568
148702
  import * as crypto20 from "node:crypto";
148569
148703
  import * as fs63 from "node:fs";
148570
148704
  import * as path60 from "node:path";
@@ -148613,7 +148747,7 @@ function hashNormalizedKey(key) {
148613
148747
  return crypto20.createHash("sha256").update(normalized, "utf8").digest("hex");
148614
148748
  }
148615
148749
 
148616
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
148750
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
148617
148751
  import { spawnSync as spawnSync4 } from "node:child_process";
148618
148752
  import { randomUUID as randomUUID10 } from "node:crypto";
148619
148753
  import * as fs64 from "node:fs";
@@ -148754,7 +148888,7 @@ async function renameStatusWithRetry(rename2, from, to) {
148754
148888
  const delayMs = STATUS_RENAME_RETRY_DELAYS_MS[attempt];
148755
148889
  if (delayMs === void 0 || !isTransientStatusRenameError(error64))
148756
148890
  throw error64;
148757
- await new Promise((resolve33) => setTimeout(resolve33, delayMs));
148891
+ await new Promise((resolve34) => setTimeout(resolve34, delayMs));
148758
148892
  }
148759
148893
  }
148760
148894
  }
@@ -148924,8 +149058,8 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
148924
149058
  let heartbeatEnabled = true;
148925
149059
  let heartbeatTask = Promise.resolve();
148926
149060
  let resolveLost;
148927
- const lost = new Promise((resolve33) => {
148928
- resolveLost = resolve33;
149061
+ const lost = new Promise((resolve34) => {
149062
+ resolveLost = resolve34;
148929
149063
  });
148930
149064
  const timer = setInterval(() => {
148931
149065
  if (released || !heartbeatEnabled)
@@ -148984,7 +149118,7 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
148984
149118
  };
148985
149119
  }
148986
149120
 
148987
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
149121
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
148988
149122
  var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
148989
149123
  function processExists(pid) {
148990
149124
  try {
@@ -149035,7 +149169,7 @@ function startWatchParentExitMonitor(options) {
149035
149169
  };
149036
149170
  }
149037
149171
 
149038
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
149172
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
149039
149173
  var ERROR_TYPES = /* @__PURE__ */ new Set([
149040
149174
  "error",
149041
149175
  "auth-error"
@@ -149081,7 +149215,7 @@ function emitUncaughtRunnerError(err, streams) {
149081
149215
  }
149082
149216
  }
149083
149217
 
149084
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
149218
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
149085
149219
  import { format as format4 } from "node:util";
149086
149220
  function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
149087
149221
  const writeDiagnostic = (...args) => {
@@ -149097,7 +149231,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
149097
149231
  return startRunner();
149098
149232
  }
149099
149233
 
149100
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
149234
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
149101
149235
  function verifiedMemberCompanyUids(options) {
149102
149236
  if (!options.companies)
149103
149237
  return void 0;
@@ -149262,7 +149396,7 @@ function emitFanoutPlan(emit, plan) {
149262
149396
  emit({ type: "fanout-plan", companies: plan });
149263
149397
  }
149264
149398
 
149265
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
149399
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
149266
149400
  import * as fs65 from "node:fs";
149267
149401
  import * as path62 from "node:path";
149268
149402
  function buildPassRequestArgv(passArgv, company) {
@@ -149513,7 +149647,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
149513
149647
  }
149514
149648
  };
149515
149649
 
149516
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
149650
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
149517
149651
  import { randomUUID as randomUUID11 } from "node:crypto";
149518
149652
  import * as fs66 from "node:fs";
149519
149653
  import * as path63 from "node:path";
@@ -149605,7 +149739,7 @@ function seedActiveCompany(options) {
149605
149739
  return { written: true, activeCompany };
149606
149740
  }
149607
149741
 
149608
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
149742
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
149609
149743
  import { randomUUID as randomUUID12 } from "node:crypto";
149610
149744
  import * as fs67 from "node:fs";
149611
149745
  import * as path64 from "node:path";
@@ -149819,17 +149953,17 @@ async function reconcileCompanyManifest(options) {
149819
149953
  return reconcileManifest(options.hqRoot, resolvedTargets);
149820
149954
  }
149821
149955
 
149822
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
149956
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
149823
149957
  import * as fs68 from "fs";
149824
149958
  import * as path65 from "path";
149825
149959
  import { createHash as createHash39, randomUUID as randomUUID13 } from "node:crypto";
149826
149960
 
149827
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
149961
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
149828
149962
  function allowsLegacyNetwork(decision) {
149829
149963
  return decision.network === "allow-legacy";
149830
149964
  }
149831
149965
 
149832
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
149966
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
149833
149967
  function createCompanyState(company) {
149834
149968
  return {
149835
149969
  company,
@@ -149891,7 +150025,7 @@ function rollupAllComplete(plan, stateByCompany) {
149891
150025
  };
149892
150026
  }
149893
150027
 
149894
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
150028
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
149895
150029
  var PRUNED_SAMPLE_PATHS = 5;
149896
150030
  function journalErrorClass(error64) {
149897
150031
  if (error64 instanceof JournalIncompleteUpsertError)
@@ -150123,7 +150257,9 @@ async function executeCompanyFanout(options) {
150123
150257
  totalExcluded: event.totalExcluded,
150124
150258
  samplePaths: event.samplePaths,
150125
150259
  ...event.prefixCounts ? { prefixCounts: event.prefixCounts } : {},
150126
- ...event.prefixCount !== void 0 ? { prefixCount: event.prefixCount } : {}
150260
+ ...event.prefixCount !== void 0 ? { prefixCount: event.prefixCount } : {},
150261
+ ...event.layerCounts ? { layerCounts: event.layerCounts } : {},
150262
+ ...event.includeLines ? { includeLines: event.includeLines } : {}
150127
150263
  });
150128
150264
  } else if (event.type === "secret-excluded") {
150129
150265
  filesExcludedByIgnoreFromEvents += event.count;
@@ -150850,7 +150986,7 @@ function normalizePullChangedPaths(target, changedPaths) {
150850
150986
  });
150851
150987
  }
150852
150988
 
150853
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
150989
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
150854
150990
  async function emitTelemetry(options) {
150855
150991
  const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
150856
150992
  await telemetryFn().catch((err) => {
@@ -150861,7 +150997,7 @@ async function emitTelemetry(options) {
150861
150997
  });
150862
150998
  }
150863
150999
 
150864
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
151000
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
150865
151001
  import * as os21 from "os";
150866
151002
  import * as path68 from "path";
150867
151003
  import * as fs71 from "fs";
@@ -150869,7 +151005,7 @@ import { createHash as createHash40 } from "node:crypto";
150869
151005
  import * as v8 from "node:v8";
150870
151006
  import { performance as performance3 } from "node:perf_hooks";
150871
151007
 
150872
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
151008
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
150873
151009
  var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
150874
151010
  var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
150875
151011
  var RoutePushFailureBackoff = class {
@@ -150896,12 +151032,12 @@ var systemPushRetryScheduler = {
150896
151032
  clearTimeout: (handle) => clearTimeout(handle)
150897
151033
  };
150898
151034
 
150899
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
151035
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
150900
151036
  var import_client_sqs = __toESM(require_dist_cjs42(), 1);
150901
151037
  import { readFileSync as readFileSync41 } from "node:fs";
150902
151038
  import { join as join67 } from "node:path";
150903
151039
 
150904
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
151040
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
150905
151041
  import * as fs69 from "node:fs";
150906
151042
  import * as path66 from "node:path";
150907
151043
  function logSwallowed13(line) {
@@ -150967,7 +151103,7 @@ function isInboundEventPlaceable(hqRoot, event) {
150967
151103
  }
150968
151104
  }
150969
151105
 
150970
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
151106
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
150971
151107
  import fs70 from "node:fs";
150972
151108
  import path67 from "node:path";
150973
151109
  function journalCoordinatesForPushEvent(relativePath) {
@@ -151009,7 +151145,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
151009
151145
  return unchanged;
151010
151146
  }
151011
151147
 
151012
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
151148
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
151013
151149
  function resolveEventSync(override) {
151014
151150
  return !isEventSyncLocallyDisabled(override);
151015
151151
  }
@@ -151721,7 +151857,7 @@ async function startEventSync(opts) {
151721
151857
  };
151722
151858
  }
151723
151859
 
151724
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
151860
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
151725
151861
  var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
151726
151862
  var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
151727
151863
  var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
@@ -151874,7 +152010,7 @@ function describe3(error64) {
151874
152010
  return error64 instanceof Error ? error64.message : String(error64);
151875
152011
  }
151876
152012
 
151877
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
152013
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
151878
152014
  import * as perfHooks from "node:perf_hooks";
151879
152015
  var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
151880
152016
  var HeapCensus = class {
@@ -152861,7 +152997,7 @@ function nodeHeapReaders(v82) {
152861
152997
  };
152862
152998
  }
152863
152999
 
152864
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
153000
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
152865
153001
  var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
152866
153002
  var MAX_CLOCK_DRIFT_MS = 5e3;
152867
153003
  var FullPassContinuity = class {
@@ -152916,7 +153052,7 @@ function canSkipScheduledFullReconcile(proof) {
152916
153052
  return true;
152917
153053
  }
152918
153054
 
152919
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
153055
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
152920
153056
  var FULL_RECONCILE_EVERY_TICKS = 10;
152921
153057
  var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
152922
153058
  var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
@@ -152969,7 +153105,7 @@ var WATCHER_WARMUP_YIELD_EVERY = 128;
152969
153105
  function shouldYieldWatcherWarmup(examinedPaths) {
152970
153106
  return examinedPaths > 0 && examinedPaths % WATCHER_WARMUP_YIELD_EVERY === 0;
152971
153107
  }
152972
- function yieldWatcherWarmupIfNeeded(examinedPaths, yieldNow = () => new Promise((resolve33) => setImmediate(resolve33))) {
153108
+ function yieldWatcherWarmupIfNeeded(examinedPaths, yieldNow = () => new Promise((resolve34) => setImmediate(resolve34))) {
152973
153109
  return shouldYieldWatcherWarmup(examinedPaths) ? yieldNow() : void 0;
152974
153110
  }
152975
153111
  function shouldSkipPersonalWarmupScopeCheck(pushFiltersApplied, routeKind) {
@@ -153279,11 +153415,11 @@ var CooperativePassScheduler = class {
153279
153415
  return this.startFastRealtime(directEntry);
153280
153416
  }
153281
153417
  if (workClass === "realtime" && this._handoffActive && directEntry.allowConcurrentHandoff && this.handoffBelowStarvationCap() && this.canAdmitRealtimeOccupant(directEntry) && !(directEntry.lane === "fast" && this.consecutiveFastAdmissions > 0 && this.pending.some((pending) => pending.workClass === "realtime" && pending.lane === "slow" && pending.transferDirection === directEntry.transferDirection)) && !this.pullMustYieldForWaitingPush(directEntry)) {
153282
- return new Promise((resolve33, reject) => {
153418
+ return new Promise((resolve34, reject) => {
153283
153419
  const entry = {
153284
153420
  ...directEntry,
153285
153421
  enqueuedAt: this.now(),
153286
- resolve: resolve33,
153422
+ resolve: resolve34,
153287
153423
  reject,
153288
153424
  occupancyArrival: true
153289
153425
  };
@@ -153293,11 +153429,11 @@ var CooperativePassScheduler = class {
153293
153429
  if (!this._handoffActive && this.active === null && this.activeFastRealtime === null && this.pending.length === 0) {
153294
153430
  return this.start(directEntry);
153295
153431
  }
153296
- return new Promise((resolve33, reject) => {
153432
+ return new Promise((resolve34, reject) => {
153297
153433
  const entry = {
153298
153434
  ...directEntry,
153299
153435
  enqueuedAt: this.now(),
153300
- resolve: resolve33,
153436
+ resolve: resolve34,
153301
153437
  reject
153302
153438
  };
153303
153439
  if (workClass === "realtime" && this.choreHoldsSlot) {
@@ -153681,12 +153817,12 @@ var CooperativePassScheduler = class {
153681
153817
  this.networkTransferClosing = false;
153682
153818
  this.networkTransferCount = 1;
153683
153819
  this.networkTransferCompletionCount = 1;
153684
- const applyReleased = new Promise((resolve33) => {
153685
- this.resolveNetworkTransferApplyRelease = resolve33;
153820
+ const applyReleased = new Promise((resolve34) => {
153821
+ this.resolveNetworkTransferApplyRelease = resolve34;
153686
153822
  });
153687
153823
  this.networkTransferApplyRelease = applyReleased;
153688
- const released = new Promise((resolve33) => {
153689
- this.resolveNetworkTransferRelease = resolve33;
153824
+ const released = new Promise((resolve34) => {
153825
+ this.resolveNetworkTransferRelease = resolve34;
153690
153826
  });
153691
153827
  this.networkTransferRelease = released;
153692
153828
  this.handoffDeferredAt = this.now();
@@ -153810,38 +153946,38 @@ var CooperativePassScheduler = class {
153810
153946
  this.networkTransferCompletionCount -= 1;
153811
153947
  if (this.networkTransferCompletionCount > 0)
153812
153948
  return;
153813
- const resolve33 = this.resolveNetworkTransferApplyRelease;
153949
+ const resolve34 = this.resolveNetworkTransferApplyRelease;
153814
153950
  this.resolveNetworkTransferApplyRelease = null;
153815
153951
  this.networkTransferApplyRelease = null;
153816
- resolve33?.();
153952
+ resolve34?.();
153817
153953
  }
153818
153954
  waitNetworkTransferChange(seenEpoch) {
153819
153955
  if (this.networkTransferEpoch !== seenEpoch)
153820
153956
  return Promise.resolve();
153821
- return new Promise((resolve33) => {
153822
- this.networkTransferWaiters.push(resolve33);
153957
+ return new Promise((resolve34) => {
153958
+ this.networkTransferWaiters.push(resolve34);
153823
153959
  });
153824
153960
  }
153825
153961
  notifyNetworkTransferChange() {
153826
153962
  this.networkTransferEpoch += 1;
153827
153963
  const waiters = this.networkTransferWaiters;
153828
153964
  this.networkTransferWaiters = [];
153829
- for (const resolve33 of waiters)
153830
- resolve33();
153965
+ for (const resolve34 of waiters)
153966
+ resolve34();
153831
153967
  }
153832
153968
  waitOccupantChange(seenEpoch) {
153833
153969
  if (this.occupantEpoch !== seenEpoch)
153834
153970
  return Promise.resolve();
153835
- return new Promise((resolve33) => {
153836
- this.occupantWaiters.push(resolve33);
153971
+ return new Promise((resolve34) => {
153972
+ this.occupantWaiters.push(resolve34);
153837
153973
  });
153838
153974
  }
153839
153975
  notifyOccupantChange() {
153840
153976
  this.occupantEpoch += 1;
153841
153977
  const waiters = this.occupantWaiters;
153842
153978
  this.occupantWaiters = [];
153843
- for (const resolve33 of waiters)
153844
- resolve33();
153979
+ for (const resolve34 of waiters)
153980
+ resolve34();
153845
153981
  }
153846
153982
  /** Run one realtime execute without aborting it and without taking the chore slot. */
153847
153983
  startRealtimeOccupant(entry) {
@@ -154479,7 +154615,7 @@ async function runOneShotWithOperationLock(argv, parsed, deps, runtime) {
154479
154615
  }
154480
154616
  }
154481
154617
  async function runWatchLoop(argv, parsed, deps, runtime) {
154482
- const sleep7 = deps.sleep ?? ((ms) => new Promise((resolve33) => setTimeout(resolve33, ms)));
154618
+ const sleep7 = deps.sleep ?? ((ms) => new Promise((resolve34) => setTimeout(resolve34, ms)));
154483
154619
  const stdout = deps.stdout ?? process.stdout;
154484
154620
  const idleHeartbeatIntervalMs = deps.idleHeartbeatIntervalMs ?? WATCH_IDLE_HEARTBEAT_INTERVAL_MS;
154485
154621
  const writeMaintenanceProgress = () => {
@@ -154573,11 +154709,11 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
154573
154709
  return work.then(() => void 0);
154574
154710
  }
154575
154711
  let timeout;
154576
- const deadline = new Promise((resolve33) => {
154712
+ const deadline = new Promise((resolve34) => {
154577
154713
  timeout = setTimeout(() => {
154578
154714
  process.stderr.write(`${abandonMessage}
154579
154715
  `);
154580
- resolve33();
154716
+ resolve34();
154581
154717
  }, Math.max(0, deadlineMs - Date.now()));
154582
154718
  });
154583
154719
  return Promise.race([work.then(() => void 0), deadline]).finally(() => {
@@ -154654,11 +154790,11 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
154654
154790
  actualHash = `sha256:${hashSymlinkTarget(toPortableSymlinkTarget(await fs71.promises.readlink(absolutePath)))}`;
154655
154791
  } else if (stat5.isFile()) {
154656
154792
  const digest3 = createHash40("sha256");
154657
- await new Promise((resolve33, reject) => {
154793
+ await new Promise((resolve34, reject) => {
154658
154794
  const input2 = fs71.createReadStream(absolutePath);
154659
154795
  input2.on("data", (chunk) => digest3.update(chunk));
154660
154796
  input2.once("error", reject);
154661
- input2.once("end", resolve33);
154797
+ input2.once("end", resolve34);
154662
154798
  });
154663
154799
  actualHash = `sha256:${digest3.digest("hex")}`;
154664
154800
  } else {
@@ -154718,15 +154854,15 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
154718
154854
  operationLockUsers -= 1;
154719
154855
  if (operationLockUsers !== 0)
154720
154856
  return;
154721
- const resolve33 = resolveNoOperationLockUsers;
154857
+ const resolve34 = resolveNoOperationLockUsers;
154722
154858
  resolveNoOperationLockUsers = null;
154723
- resolve33?.();
154859
+ resolve34?.();
154724
154860
  };
154725
154861
  const waitForOperationLockUsers = () => {
154726
154862
  if (operationLockUsers === 0)
154727
154863
  return null;
154728
- return new Promise((resolve33) => {
154729
- resolveNoOperationLockUsers = resolve33;
154864
+ return new Promise((resolve34) => {
154865
+ resolveNoOperationLockUsers = resolve34;
154730
154866
  });
154731
154867
  };
154732
154868
  const flagSource = createHqFlagsCapSource({
@@ -155013,8 +155149,8 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
155013
155149
  };
155014
155150
  let stopped = false;
155015
155151
  let resolveStopped = null;
155016
- const stoppedSignal = new Promise((resolve33) => {
155017
- resolveStopped = resolve33;
155152
+ const stoppedSignal = new Promise((resolve34) => {
155153
+ resolveStopped = resolve34;
155018
155154
  });
155019
155155
  let interruptGeneration = 0;
155020
155156
  let observedInterruptGeneration = 0;
@@ -155023,9 +155159,9 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
155023
155159
  if (stopped)
155024
155160
  return;
155025
155161
  interruptGeneration += 1;
155026
- const resolve33 = resolveInterruptWait;
155162
+ const resolve34 = resolveInterruptWait;
155027
155163
  resolveInterruptWait = null;
155028
- resolve33?.();
155164
+ resolve34?.();
155029
155165
  };
155030
155166
  deps.registerPassRequestWake?.(interruptWait);
155031
155167
  let reportWatcherLiveness = () => void 0;
@@ -155042,11 +155178,11 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
155042
155178
  try {
155043
155179
  await Promise.race([
155044
155180
  sleep7(delayMs),
155045
- new Promise((resolve33) => {
155046
- resolveInterruptWait = resolve33;
155181
+ new Promise((resolve34) => {
155182
+ resolveInterruptWait = resolve34;
155047
155183
  if (interruptGeneration !== observedInterruptGeneration) {
155048
155184
  resolveInterruptWait = null;
155049
- resolve33();
155185
+ resolve34();
155050
155186
  }
155051
155187
  }),
155052
155188
  stoppedSignal
@@ -156183,7 +156319,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
156183
156319
  persistedKeys.add(key);
156184
156320
  }
156185
156321
  if (offset + maxDeltaRows < changedEntries.length) {
156186
- await new Promise((resolve33) => setImmediate(resolve33));
156322
+ await new Promise((resolve34) => setImmediate(resolve34));
156187
156323
  }
156188
156324
  }
156189
156325
  for (const [index, values] of snapshots) {
@@ -156236,7 +156372,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
156236
156372
  if (rowsSinceYield < 128)
156237
156373
  return;
156238
156374
  rowsSinceYield = 0;
156239
- await new Promise((resolve33) => setImmediate(resolve33));
156375
+ await new Promise((resolve34) => setImmediate(resolve34));
156240
156376
  };
156241
156377
  for (const slug of journalSlugs) {
156242
156378
  if (slug === "personal" && vaultJournalPresent)
@@ -158086,7 +158222,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
158086
158222
  }
158087
158223
  }
158088
158224
 
158089
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
158225
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
158090
158226
  var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
158091
158227
  var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
158092
158228
  var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
@@ -158159,7 +158295,7 @@ async function waitForValidAuth(opts) {
158159
158295
  return "stopped";
158160
158296
  }
158161
158297
 
158162
- // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.76/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
158298
+ // node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.77/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
158163
158299
  var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
158164
158300
  var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
158165
158301
  var DEFAULT_COGNITO = {
@@ -158185,8 +158321,8 @@ function resolveTelemetryTimeoutMs(override) {
158185
158321
  }
158186
158322
  async function awaitTelemetryWithTimeout(telemetry, timeoutMs, onTimeout) {
158187
158323
  let timeout;
158188
- const timeoutPromise = new Promise((resolve33) => {
158189
- timeout = setTimeout(() => resolve33("timeout"), timeoutMs);
158324
+ const timeoutPromise = new Promise((resolve34) => {
158325
+ timeout = setTimeout(() => resolve34("timeout"), timeoutMs);
158190
158326
  timeout.unref?.();
158191
158327
  });
158192
158328
  const result = await Promise.race([
@@ -158269,7 +158405,7 @@ async function listMembershipsWithRetry(client) {
158269
158405
  for (let attempt = 0; attempt < 3; attempt++) {
158270
158406
  if (attempt > 0) {
158271
158407
  const delayMs = MEMBERSHIPS_RETRY_BACKOFFS_MS[attempt - 1] ?? 100;
158272
- await new Promise((resolve33) => setTimeout(resolve33, delayMs));
158408
+ await new Promise((resolve34) => setTimeout(resolve34, delayMs));
158273
158409
  }
158274
158410
  try {
158275
158411
  return await client.listMyMemberships();
@@ -159846,7 +159982,7 @@ async function runRunnerWithLoop(argv, deps = {}) {
159846
159982
  ...runtime,
159847
159983
  runPassWithOperationLockAlreadyHeld: (passArgv, checkpoint, onJournalsReady, onAppliedUpserts, transferPriority, qmdSignal, qmdHeartbeat, qmdHeartbeatIntervalMs, onAppliedDeletes) => runPassWithOperationLockAlreadyHeld(passArgv, WATCH_FANOUT_HEARTBEAT_INTERVAL_MS, checkpoint, onJournalsReady, onAppliedUpserts, transferPriority, true, qmdSignal, qmdHeartbeat, qmdHeartbeatIntervalMs, onAppliedDeletes)
159848
159984
  };
159849
- const sleep7 = deps.sleep ?? ((ms) => new Promise((resolve33) => setTimeout(resolve33, ms)));
159985
+ const sleep7 = deps.sleep ?? ((ms) => new Promise((resolve34) => setTimeout(resolve34, ms)));
159850
159986
  const getAccessToken = deps.getAccessToken ?? runtime.defaultGetAccessToken;
159851
159987
  const authWaitLog = deps.authWaitLog ?? ((line) => {
159852
159988
  process.stderr.write(`${line}
@@ -159873,8 +160009,8 @@ async function runRunnerWithLoop(argv, deps = {}) {
159873
160009
  let finalStatusWritten = false;
159874
160010
  let innerShutdown = null;
159875
160011
  let resolveStoppedWait = null;
159876
- const stoppedSignal = new Promise((resolve33) => {
159877
- resolveStoppedWait = resolve33;
160012
+ const stoppedSignal = new Promise((resolve34) => {
160013
+ resolveStoppedWait = resolve34;
159878
160014
  });
159879
160015
  const markStopped = () => {
159880
160016
  stopped = true;