@indigoai-us/hq-cli 5.345.243 → 5.345.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/command-catalog.generated.d.ts +3 -3
- package/dist/command-catalog.generated.js +3 -3
- package/dist/commands/bot.d.ts +12 -0
- package/dist/commands/bot.js +126 -44
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +285 -225
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/bot/config.d.ts +10 -0
- package/dist/lib/bot/config.js +15 -0
- package/dist/lib/bot/continuity.js +2 -2
- package/dist/lib/bot/promote-sign-in.d.ts +78 -0
- package/dist/lib/bot/promote-sign-in.js +152 -0
- package/dist/lib/bot/promote.d.ts +19 -1
- package/dist/lib/bot/promote.js +25 -5
- package/dist/lib/bot/scaffold.d.ts +20 -3
- package/dist/lib/bot/scaffold.js +18 -8
- package/dist/lib/daemon/hook-requests-fleet-session-start.d.ts +10 -0
- package/dist/lib/daemon/hook-requests-fleet-session-start.js +86 -42
- package/dist/lib/daemon/hook-requests.d.ts +2 -2
- package/dist/lib/daemon/hook-requests.js +13 -3
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/lanes/liveness.js +46 -16
- package/package.json +8 -8
|
@@ -50615,12 +50615,12 @@ var require_dist_cjs20 = __commonJS({
|
|
|
50615
50615
|
}
|
|
50616
50616
|
});
|
|
50617
50617
|
|
|
50618
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
50618
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
50619
50619
|
import * as crypto2 from "crypto";
|
|
50620
50620
|
import * as fs2 from "fs";
|
|
50621
50621
|
import * as path from "path";
|
|
50622
50622
|
|
|
50623
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
50623
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/fsync-compat.js
|
|
50624
50624
|
import * as fs from "node:fs";
|
|
50625
50625
|
var UNSUPPORTED_DIRECTORY_FSYNC_CODES = /* @__PURE__ */ new Set(["EINVAL", "ENOTSUP", "EOPNOTSUPP", "EPERM"]);
|
|
50626
50626
|
var loggedSkips = /* @__PURE__ */ new Set();
|
|
@@ -50644,7 +50644,7 @@ function fsyncWithCompatibility(fd, options) {
|
|
|
50644
50644
|
}
|
|
50645
50645
|
}
|
|
50646
50646
|
|
|
50647
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
50647
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
50648
50648
|
var RECORD_FORMAT = "hq-push-identity@2";
|
|
50649
50649
|
var MACHINE_FORMAT = "hq-push-identity-machine@1";
|
|
50650
50650
|
var PERSON_FORMAT = "hq-push-identity-person@1";
|
|
@@ -51440,7 +51440,7 @@ function writeJsonAtomic(filePath, value) {
|
|
|
51440
51440
|
}
|
|
51441
51441
|
}
|
|
51442
51442
|
|
|
51443
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
51443
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest-folder-alias.js
|
|
51444
51444
|
import * as fs3 from "node:fs";
|
|
51445
51445
|
import * as path2 from "node:path";
|
|
51446
51446
|
function readManifestCloudCompanies(hqRoot) {
|
|
@@ -51515,14 +51515,14 @@ function manifestFolderAlias(byUid, companyUid, cloudSlug, onDuplicate) {
|
|
|
51515
51515
|
return entry.slug;
|
|
51516
51516
|
}
|
|
51517
51517
|
|
|
51518
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
51518
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
51519
51519
|
import * as fs30 from "node:fs";
|
|
51520
51520
|
import * as os6 from "node:os";
|
|
51521
51521
|
import * as path25 from "node:path";
|
|
51522
51522
|
import { Session } from "node:inspector";
|
|
51523
51523
|
import { fileURLToPath as fileURLToPath3, pathToFileURL } from "node:url";
|
|
51524
51524
|
|
|
51525
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
51525
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
51526
51526
|
import * as fs29 from "fs";
|
|
51527
51527
|
import { createHash as createHash17 } from "node:crypto";
|
|
51528
51528
|
import { readFile as readFile3, stat as stat4 } from "node:fs/promises";
|
|
@@ -53218,7 +53218,7 @@ function watch(paths, options = {}) {
|
|
|
53218
53218
|
return watcher;
|
|
53219
53219
|
}
|
|
53220
53220
|
|
|
53221
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53221
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cloud-placeholder.js
|
|
53222
53222
|
import * as fs4 from "fs";
|
|
53223
53223
|
import * as path3 from "path";
|
|
53224
53224
|
var CLOUD_PLACEHOLDER_SUFFIX = ".hqcloud";
|
|
@@ -53656,18 +53656,18 @@ function writeCloudPlaceholder(placeholderPath, placeholder) {
|
|
|
53656
53656
|
}
|
|
53657
53657
|
}
|
|
53658
53658
|
|
|
53659
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53659
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
53660
53660
|
var import_ignore = __toESM(require_ignore(), 1);
|
|
53661
53661
|
import * as fs5 from "fs";
|
|
53662
53662
|
import * as path4 from "path";
|
|
53663
53663
|
|
|
53664
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53664
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/restore-staging.js
|
|
53665
53665
|
var RESTORE_STAGING_SUFFIX = /\.hq-restore-(?:\d+(?:-\d+)?|probe-\d+-[0-9a-z]+)$/i;
|
|
53666
53666
|
function isRestoreStagingPath(relativePath) {
|
|
53667
53667
|
return relativePath.split(/[\\/]/).some((segment) => RESTORE_STAGING_SUFFIX.test(segment));
|
|
53668
53668
|
}
|
|
53669
53669
|
|
|
53670
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53670
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/best-effort-error.js
|
|
53671
53671
|
var EXPECTED_ABSENCE_CODES = /* @__PURE__ */ new Set([
|
|
53672
53672
|
"ENOENT",
|
|
53673
53673
|
"NoSuchKey",
|
|
@@ -53709,7 +53709,7 @@ function noteSwallowedError(log, event, error62, options = {}) {
|
|
|
53709
53709
|
`);
|
|
53710
53710
|
}
|
|
53711
53711
|
|
|
53712
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53712
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/cloud-authoritative.js
|
|
53713
53713
|
var CLOUD_AUTHORITATIVE_PATTERNS = [
|
|
53714
53714
|
/^company-brief\.md$/,
|
|
53715
53715
|
/^board\.json$/,
|
|
@@ -53757,7 +53757,7 @@ function isPullReconciledServerOwned(relPath) {
|
|
|
53757
53757
|
return isCloudAuthoritative(vaultRel);
|
|
53758
53758
|
}
|
|
53759
53759
|
|
|
53760
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53760
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
53761
53761
|
function logSwallowed(line) {
|
|
53762
53762
|
process.stderr.write(line);
|
|
53763
53763
|
}
|
|
@@ -54501,7 +54501,7 @@ function isWithinSizeLimit(filePath, maxBytes = SYNC_MAX_FILE_BYTES) {
|
|
|
54501
54501
|
}
|
|
54502
54502
|
}
|
|
54503
54503
|
|
|
54504
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54504
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/watch-roots.js
|
|
54505
54505
|
import * as fs6 from "fs";
|
|
54506
54506
|
import * as path5 from "path";
|
|
54507
54507
|
function defaultListChildDirs(dir, onSymlinkEntry) {
|
|
@@ -54575,7 +54575,7 @@ function isCoveredByRecursiveRoot(absolutePath, recursiveRoots) {
|
|
|
54575
54575
|
}
|
|
54576
54576
|
}
|
|
54577
54577
|
|
|
54578
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54578
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/watch-coverage.js
|
|
54579
54579
|
import * as fs7 from "fs";
|
|
54580
54580
|
function directoryIdentityAt(absolutePath) {
|
|
54581
54581
|
try {
|
|
@@ -54612,7 +54612,7 @@ function probeScopedWatchCoverage(input2) {
|
|
|
54612
54612
|
return { ok: true };
|
|
54613
54613
|
}
|
|
54614
54614
|
|
|
54615
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54615
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/local-path-codec.js
|
|
54616
54616
|
import * as path6 from "path";
|
|
54617
54617
|
var WIN32_RESERVED_CHARS = /[<>:"/\\|?*]/;
|
|
54618
54618
|
var WIN32_DEVICE_NAME = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i;
|
|
@@ -54670,7 +54670,7 @@ function canonicalVaultKeySpelling(key) {
|
|
|
54670
54670
|
return segments.join("/");
|
|
54671
54671
|
}
|
|
54672
54672
|
|
|
54673
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54673
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/personal-vault-exclusions.js
|
|
54674
54674
|
import * as path7 from "path";
|
|
54675
54675
|
import * as fs8 from "fs";
|
|
54676
54676
|
function hasSegment(relPath, segment) {
|
|
@@ -54967,7 +54967,7 @@ function wrapFilterWithPersonalVaultDefaults(underlying, syncRoot, onExcluded, o
|
|
|
54967
54967
|
};
|
|
54968
54968
|
}
|
|
54969
54969
|
|
|
54970
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54970
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/state-store.js
|
|
54971
54971
|
import * as crypto3 from "node:crypto";
|
|
54972
54972
|
import * as fs9 from "node:fs";
|
|
54973
54973
|
import * as path8 from "node:path";
|
|
@@ -58023,11 +58023,11 @@ function crc32c(bytes) {
|
|
|
58023
58023
|
return (crc ^ 4294967295) >>> 0;
|
|
58024
58024
|
}
|
|
58025
58025
|
|
|
58026
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58026
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
58027
58027
|
import * as fs15 from "fs";
|
|
58028
58028
|
import * as path13 from "path";
|
|
58029
58029
|
|
|
58030
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58030
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
58031
58031
|
import * as fs14 from "fs";
|
|
58032
58032
|
import * as os2 from "os";
|
|
58033
58033
|
import * as path12 from "path";
|
|
@@ -58035,7 +58035,7 @@ import * as crypto8 from "crypto";
|
|
|
58035
58035
|
import { spawn } from "node:child_process";
|
|
58036
58036
|
import { fileURLToPath } from "node:url";
|
|
58037
58037
|
|
|
58038
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58038
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
|
|
58039
58039
|
var JOURNAL_DECODE_WINDOW = 1e4;
|
|
58040
58040
|
var rowsInFlight = 0;
|
|
58041
58041
|
var peakRowsInFlight = 0;
|
|
@@ -58094,7 +58094,7 @@ function journalFingerprintMatchesStat(fingerprint, lstat3) {
|
|
|
58094
58094
|
return lstat3.size === fingerprint.size && lstat3.mtimeMs === fingerprint.mtimeMs && lstat3.ctimeMs === fingerprint.ctimeMs;
|
|
58095
58095
|
}
|
|
58096
58096
|
|
|
58097
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58097
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
|
|
58098
58098
|
var HASH_BYTES = 32;
|
|
58099
58099
|
var ETAG_BYTES = 16;
|
|
58100
58100
|
var INITIAL_ROW_CAPACITY = 16;
|
|
@@ -59624,7 +59624,7 @@ function readOptionalBoolean(entry, key, flags, presentBit, valueBit) {
|
|
|
59624
59624
|
entry[key] = Boolean(flags & valueBit);
|
|
59625
59625
|
}
|
|
59626
59626
|
|
|
59627
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59627
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
|
|
59628
59628
|
var rowsByRecordProxy = /* @__PURE__ */ new WeakMap();
|
|
59629
59629
|
function journalRecordRows(files) {
|
|
59630
59630
|
return rowsByRecordProxy.get(files);
|
|
@@ -59690,13 +59690,13 @@ function createJournalRecordProxy(store) {
|
|
|
59690
59690
|
return proxy;
|
|
59691
59691
|
}
|
|
59692
59692
|
|
|
59693
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59693
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
59694
59694
|
import { StringDecoder } from "node:string_decoder";
|
|
59695
59695
|
|
|
59696
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59696
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
59697
59697
|
import * as crypto4 from "node:crypto";
|
|
59698
59698
|
|
|
59699
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59699
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
|
|
59700
59700
|
var packedJournalRows = /* @__PURE__ */ new WeakMap();
|
|
59701
59701
|
var sharedAreaJournalRowStores = /* @__PURE__ */ new Map();
|
|
59702
59702
|
function areaJournalRowsCacheKey(rootDir, slug) {
|
|
@@ -59719,7 +59719,7 @@ function forgetSharedAreaJournalRows(cacheKey) {
|
|
|
59719
59719
|
sharedAreaJournalRowStores.delete(cacheKey);
|
|
59720
59720
|
}
|
|
59721
59721
|
|
|
59722
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59722
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
59723
59723
|
var JOURNAL_SNAPSHOT_V4_MAGIC = SNAPSHOT_V4_MAGIC;
|
|
59724
59724
|
var SNAPSHOT_FIXED_HEADER_BYTES2 = 52;
|
|
59725
59725
|
var SECTION_ALIGNMENT_BYTES = 8;
|
|
@@ -60255,7 +60255,7 @@ function assertLittleEndian() {
|
|
|
60255
60255
|
throw new Error("HQSNAP4 requires a little-endian host");
|
|
60256
60256
|
}
|
|
60257
60257
|
|
|
60258
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60258
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
60259
60259
|
function decodeJournalSnapshot(chunks, magic) {
|
|
60260
60260
|
if (magic.equals(SNAPSHOT_V3_MAGIC))
|
|
60261
60261
|
return decodeV3JournalSnapshot(chunks);
|
|
@@ -60609,12 +60609,12 @@ function isPunctuation(value) {
|
|
|
60609
60609
|
return value === "{" || value === "}" || value === "[" || value === "]" || value === ":" || value === ",";
|
|
60610
60610
|
}
|
|
60611
60611
|
|
|
60612
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60612
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
|
|
60613
60613
|
function toPosixKey(key) {
|
|
60614
60614
|
return key.split("\\").join("/");
|
|
60615
60615
|
}
|
|
60616
60616
|
|
|
60617
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60617
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
|
|
60618
60618
|
function isUnderAnyRoot(key, roots) {
|
|
60619
60619
|
if (roots.has(key))
|
|
60620
60620
|
return true;
|
|
@@ -60627,7 +60627,7 @@ function isUnderAnyRoot(key, roots) {
|
|
|
60627
60627
|
return false;
|
|
60628
60628
|
}
|
|
60629
60629
|
|
|
60630
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60630
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
|
|
60631
60631
|
import * as fs10 from "node:fs";
|
|
60632
60632
|
import { StringDecoder as StringDecoder2 } from "node:string_decoder";
|
|
60633
60633
|
var CHUNK_BYTES = 1 << 18;
|
|
@@ -60741,12 +60741,12 @@ function streamJournalLedgerRows(filePath, onRow) {
|
|
|
60741
60741
|
}
|
|
60742
60742
|
}
|
|
60743
60743
|
|
|
60744
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60744
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
60745
60745
|
import * as crypto7 from "node:crypto";
|
|
60746
60746
|
import * as fs13 from "node:fs";
|
|
60747
60747
|
import * as path11 from "node:path";
|
|
60748
60748
|
|
|
60749
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60749
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
|
|
60750
60750
|
import * as crypto5 from "crypto";
|
|
60751
60751
|
import * as fs11 from "fs";
|
|
60752
60752
|
import * as os from "os";
|
|
@@ -61435,7 +61435,7 @@ function withOperationLockSync(hqRoot, command5, fn, opts = {}) {
|
|
|
61435
61435
|
}
|
|
61436
61436
|
}
|
|
61437
61437
|
|
|
61438
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
61438
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
|
|
61439
61439
|
import * as crypto6 from "node:crypto";
|
|
61440
61440
|
var DIRECT_DELTA = 1;
|
|
61441
61441
|
var PREPARED_TRANSACTION = 2;
|
|
@@ -62864,7 +62864,7 @@ function cloneMetadata(metadata) {
|
|
|
62864
62864
|
return result;
|
|
62865
62865
|
}
|
|
62866
62866
|
|
|
62867
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
62867
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
|
|
62868
62868
|
import * as fs12 from "fs";
|
|
62869
62869
|
import * as path10 from "path";
|
|
62870
62870
|
var AREA_LAYOUT_FORMAT = 1;
|
|
@@ -63175,7 +63175,7 @@ function compareText(left, right) {
|
|
|
63175
63175
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
63176
63176
|
}
|
|
63177
63177
|
|
|
63178
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
63178
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
63179
63179
|
function logSwallowed2(line) {
|
|
63180
63180
|
process.stderr.write(line);
|
|
63181
63181
|
}
|
|
@@ -63954,7 +63954,7 @@ function canonicalJsonOrUndefined(value) {
|
|
|
63954
63954
|
return value === void 0 ? void 0 : canonicalJson2(value);
|
|
63955
63955
|
}
|
|
63956
63956
|
|
|
63957
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
63957
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
|
|
63958
63958
|
var AREA_MAINTENANCE_CURSOR_FORMAT = 1;
|
|
63959
63959
|
var CURSOR_SET = 1;
|
|
63960
63960
|
var AreaMaintenanceCursorStore = class _AreaMaintenanceCursorStore {
|
|
@@ -64056,7 +64056,7 @@ function sameAreas(left, right) {
|
|
|
64056
64056
|
return left.length === right.length && left.every((areaId, index) => areaId === right[index]);
|
|
64057
64057
|
}
|
|
64058
64058
|
|
|
64059
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
64059
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
64060
64060
|
var TOMBSTONE_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
64061
64061
|
var JOURNAL_VERSION_CURRENT = "2";
|
|
64062
64062
|
var MAX_PULLS_PER_COMPANY = 50;
|
|
@@ -66273,7 +66273,7 @@ function gcTombstones(journal, now = Date.now()) {
|
|
|
66273
66273
|
return removed;
|
|
66274
66274
|
}
|
|
66275
66275
|
|
|
66276
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66276
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
66277
66277
|
function logSwallowed3(line) {
|
|
66278
66278
|
process.stderr.write(line);
|
|
66279
66279
|
}
|
|
@@ -66651,7 +66651,7 @@ function purgeExcludedPersonalVaultJournalEntries(journal, hqRoot, syncRoot, sho
|
|
|
66651
66651
|
return { removed, byReason };
|
|
66652
66652
|
}
|
|
66653
66653
|
|
|
66654
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66654
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/local-link-warning.js
|
|
66655
66655
|
import fs16 from "node:fs";
|
|
66656
66656
|
import path14 from "node:path";
|
|
66657
66657
|
var LOCAL_LINK_REMEDY = "Repair or remove the link, then sync again. For release-shipped links, run hq rescue. On Windows, enable Developer Mode before repairing symlinks.";
|
|
@@ -66768,7 +66768,7 @@ function linkWarningMessage(warning4) {
|
|
|
66768
66768
|
return `Skipped symbolic link (${warning4.reason}). ${warning4.remedy}`;
|
|
66769
66769
|
}
|
|
66770
66770
|
|
|
66771
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66771
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/parent-link-alias.js
|
|
66772
66772
|
import fs17 from "node:fs";
|
|
66773
66773
|
import path15 from "node:path";
|
|
66774
66774
|
function linkedParentBelowRoot(root5, dir, realRoot, realDir) {
|
|
@@ -66819,12 +66819,12 @@ function inRootAliasPath(root5, absolutePath) {
|
|
|
66819
66819
|
return path15.join(rel, path15.basename(absolutePath)).split(path15.sep).join("/");
|
|
66820
66820
|
}
|
|
66821
66821
|
|
|
66822
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66822
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
66823
66823
|
import * as fs26 from "fs";
|
|
66824
66824
|
import * as path21 from "path";
|
|
66825
66825
|
import * as crypto11 from "crypto";
|
|
66826
66826
|
|
|
66827
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66827
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
|
|
66828
66828
|
import * as crypto9 from "crypto";
|
|
66829
66829
|
import * as fs18 from "fs";
|
|
66830
66830
|
import * as os3 from "os";
|
|
@@ -66880,11 +66880,11 @@ function shouldRecordLocalDeleteIntent(localPath, absent) {
|
|
|
66880
66880
|
return absent && !isLocalPathBeingReplaced(localPath);
|
|
66881
66881
|
}
|
|
66882
66882
|
|
|
66883
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66883
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
66884
66884
|
import { Readable as Readable10, Transform as Transform3 } from "stream";
|
|
66885
66885
|
import { pipeline } from "stream/promises";
|
|
66886
66886
|
|
|
66887
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66887
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
|
|
66888
66888
|
var TRANSIENT_NETWORK_EXIT = 75;
|
|
66889
66889
|
var TRANSIENT_CODES = /* @__PURE__ */ new Set([
|
|
66890
66890
|
"ECONNREFUSED",
|
|
@@ -66994,7 +66994,7 @@ function hasDeniedConnect(err, depth) {
|
|
|
66994
66994
|
return false;
|
|
66995
66995
|
}
|
|
66996
66996
|
|
|
66997
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66997
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
|
|
66998
66998
|
var ONTOLOGY_ENTITY_KEY = /^ontology\/entities\/[a-z][a-z0-9-]*\/[^/]+\.md$/;
|
|
66999
66999
|
var ENTITY_LAST_UPDATED_META_KEY = "hq-entity-last-updated";
|
|
67000
67000
|
function ontologyVaultKey(relPath) {
|
|
@@ -67026,13 +67026,13 @@ function buildEntityMetadata(key, body) {
|
|
|
67026
67026
|
return stamp === null ? {} : { [ENTITY_LAST_UPDATED_META_KEY]: stamp };
|
|
67027
67027
|
}
|
|
67028
67028
|
|
|
67029
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67029
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
67030
67030
|
var import_client_s3 = __toESM(require_dist_cjs16(), 1);
|
|
67031
67031
|
import * as http3 from "node:http";
|
|
67032
67032
|
import * as https2 from "node:https";
|
|
67033
67033
|
import { Transform as Transform2 } from "node:stream";
|
|
67034
67034
|
|
|
67035
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67035
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
|
|
67036
67036
|
import { createHash as createHash14 } from "node:crypto";
|
|
67037
67037
|
var CHECKSUM_HEADER_NAMES = [
|
|
67038
67038
|
"content-md5",
|
|
@@ -67103,7 +67103,7 @@ function headersForObjectLockPut(url2, headers, body) {
|
|
|
67103
67103
|
return out;
|
|
67104
67104
|
}
|
|
67105
67105
|
|
|
67106
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67106
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
|
|
67107
67107
|
import { Transform } from "node:stream";
|
|
67108
67108
|
var MAX_BYTES_PER_SEC_ENV = "HQ_SYNC_MAX_BYTES_PER_SEC";
|
|
67109
67109
|
var MAX_CONCURRENCY_ENV = "HQ_SYNC_MAX_CONCURRENCY";
|
|
@@ -67504,7 +67504,7 @@ function getBandwidthGovernor() {
|
|
|
67504
67504
|
return singleton;
|
|
67505
67505
|
}
|
|
67506
67506
|
|
|
67507
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67507
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
|
|
67508
67508
|
var HEADER_CLIENT_NAME = "x-hq-client-name";
|
|
67509
67509
|
var HEADER_CLIENT_VERSION = "x-hq-client-version";
|
|
67510
67510
|
var HEADER_HQ_CORE_VERSION = "x-hq-core-version";
|
|
@@ -67527,7 +67527,7 @@ function buildClientHeaders(info) {
|
|
|
67527
67527
|
return headers;
|
|
67528
67528
|
}
|
|
67529
67529
|
|
|
67530
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67530
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
|
|
67531
67531
|
var MAX_EVENTS_PER_BATCH = 50;
|
|
67532
67532
|
var DEFAULT_TIMEOUT_MS = 1500;
|
|
67533
67533
|
var MAX_PROPERTIES = 40;
|
|
@@ -67671,12 +67671,12 @@ function describeError(err) {
|
|
|
67671
67671
|
return err instanceof Error ? err.name : typeof err;
|
|
67672
67672
|
}
|
|
67673
67673
|
|
|
67674
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
67675
67675
|
import * as http from "node:http";
|
|
67676
67676
|
import * as https from "node:https";
|
|
67677
67677
|
import { Readable as Readable9 } from "node:stream";
|
|
67678
67678
|
|
|
67679
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67679
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
|
|
67680
67680
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
67681
67681
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
67682
67682
|
var REALTIME_TELEMETRY_EVENT = "sync.realtime.timing";
|
|
@@ -67866,7 +67866,7 @@ function writeRealtimeTelemetryToStderr(record2) {
|
|
|
67866
67866
|
`);
|
|
67867
67867
|
}
|
|
67868
67868
|
|
|
67869
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67869
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
67870
67870
|
var HTTP_AGENT = new http.Agent({ keepAlive: true, maxSockets: 8 });
|
|
67871
67871
|
var HTTPS_AGENT = new https.Agent({ keepAlive: true, maxSockets: 8 });
|
|
67872
67872
|
function getKeepAliveAgent(secure) {
|
|
@@ -67926,7 +67926,7 @@ function requestWithKeepAlive(url2, init) {
|
|
|
67926
67926
|
});
|
|
67927
67927
|
}
|
|
67928
67928
|
|
|
67929
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67929
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-request-counter.js
|
|
67930
67930
|
var counts = { vault: 0, list: 0, object: 0 };
|
|
67931
67931
|
var UNCOUNTED_VAULT_PATH_PREFIX = "/v1/telemetry/";
|
|
67932
67932
|
function syncRequestKindForVaultPath(path84) {
|
|
@@ -86817,7 +86817,7 @@ function date5(params) {
|
|
|
86817
86817
|
return _coercedDate(ZodDate, params);
|
|
86818
86818
|
}
|
|
86819
86819
|
|
|
86820
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86820
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
86821
86821
|
import { spawnSync } from "child_process";
|
|
86822
86822
|
import * as crypto10 from "crypto";
|
|
86823
86823
|
import * as fs24 from "fs";
|
|
@@ -87339,7 +87339,7 @@ defineLazyProperty(apps, "browser", () => "browser");
|
|
|
87339
87339
|
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
87340
87340
|
var open_default = open4;
|
|
87341
87341
|
|
|
87342
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87342
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
87343
87343
|
var CognitoAuthError = class extends Error {
|
|
87344
87344
|
constructor(message) {
|
|
87345
87345
|
super(message);
|
|
@@ -88899,7 +88899,7 @@ function pickNewerSession(fromKeychain, other) {
|
|
|
88899
88899
|
return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
|
|
88900
88900
|
}
|
|
88901
88901
|
|
|
88902
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88902
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
|
|
88903
88903
|
var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
|
|
88904
88904
|
var VaultCredentialScopeError = class extends Error {
|
|
88905
88905
|
droppedWriteGrantPrefixes;
|
|
@@ -88941,7 +88941,7 @@ function assertCredentialScopeUsable(diagnostic) {
|
|
|
88941
88941
|
}
|
|
88942
88942
|
}
|
|
88943
88943
|
|
|
88944
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88944
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
|
|
88945
88945
|
var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
|
|
88946
88946
|
var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
88947
88947
|
"PLAN_LIMIT_EXCEEDED",
|
|
@@ -89084,7 +89084,7 @@ function formatPlanLimitNotice(event) {
|
|
|
89084
89084
|
return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
|
|
89085
89085
|
}
|
|
89086
89086
|
|
|
89087
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89087
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
|
|
89088
89088
|
var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
|
|
89089
89089
|
var VaultClientError = class extends Error {
|
|
89090
89090
|
statusCode;
|
|
@@ -90083,7 +90083,7 @@ function parseVaultErrorBody(body) {
|
|
|
90083
90083
|
}
|
|
90084
90084
|
}
|
|
90085
90085
|
|
|
90086
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90086
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/vault-key-grammar.js
|
|
90087
90087
|
var KEY_CONTROL_CHARS = /[\x00-\x1F\x7F]/;
|
|
90088
90088
|
var MAX_URI_DECODE_DEPTH = 4;
|
|
90089
90089
|
function classifyVaultKey(key, _scope) {
|
|
@@ -90190,7 +90190,7 @@ function isPresignKeyGrammarCode(code) {
|
|
|
90190
90190
|
return typeof code === "string" && (code === "INVALID_KEY" || code.startsWith("INVALID_KEY_") || code.startsWith("PRESIGN_KEY_"));
|
|
90191
90191
|
}
|
|
90192
90192
|
|
|
90193
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90193
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
90194
90194
|
var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
|
|
90195
90195
|
var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
|
|
90196
90196
|
var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
|
|
@@ -91671,7 +91671,7 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor, options
|
|
|
91671
91671
|
};
|
|
91672
91672
|
}
|
|
91673
91673
|
|
|
91674
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
|
|
91675
91675
|
var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
|
|
91676
91676
|
function portableModeStamp(mode, platform3 = process.platform) {
|
|
91677
91677
|
if (platform3 === "win32")
|
|
@@ -91682,7 +91682,7 @@ function isPortableModeSignal(mode) {
|
|
|
91682
91682
|
return !WIN32_SYNTHETIC_MODES.has(mode & 511);
|
|
91683
91683
|
}
|
|
91684
91684
|
|
|
91685
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91685
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
|
|
91686
91686
|
import * as path19 from "path";
|
|
91687
91687
|
var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
|
|
91688
91688
|
var SHEBANG = Buffer.from("#!");
|
|
@@ -91738,7 +91738,7 @@ function normalizeScriptLineEndings(body) {
|
|
|
91738
91738
|
return changed ? out.subarray(0, n3) : null;
|
|
91739
91739
|
}
|
|
91740
91740
|
|
|
91741
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91741
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
|
|
91742
91742
|
import path20 from "node:path";
|
|
91743
91743
|
import fs25 from "node:fs";
|
|
91744
91744
|
function personalSymlinkTargetLinkPath(relativePath) {
|
|
@@ -91961,7 +91961,7 @@ function redactShape(target, classification) {
|
|
|
91961
91961
|
return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
|
|
91962
91962
|
}
|
|
91963
91963
|
|
|
91964
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91964
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
91965
91965
|
var DOWNLOAD_STREAM_MAX_RETRIES = 3;
|
|
91966
91966
|
var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
|
|
91967
91967
|
function sleepMs(ms) {
|
|
@@ -93499,7 +93499,7 @@ function getMimeType(filePath) {
|
|
|
93499
93499
|
return mimeTypes[ext] || "application/octet-stream";
|
|
93500
93500
|
}
|
|
93501
93501
|
|
|
93502
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93502
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/windows-extended-path.js
|
|
93503
93503
|
import fs27 from "node:fs";
|
|
93504
93504
|
var EXTENDED_UNC = /^[\\/]{2}\?[\\/]UNC[\\/]/i;
|
|
93505
93505
|
var EXTENDED_DRIVE = /^[\\/]{2}\?[\\/](?=[A-Za-z]:(?:[\\/]|$))/;
|
|
@@ -93521,7 +93521,7 @@ function realpathRootSync(p3, impl = DEFAULT_IMPL) {
|
|
|
93521
93521
|
}
|
|
93522
93522
|
}
|
|
93523
93523
|
|
|
93524
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93524
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
|
|
93525
93525
|
var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
93526
93526
|
var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
93527
93527
|
function nativeSeparatorsToPosix(relativePath, sep23) {
|
|
@@ -93616,7 +93616,7 @@ function decodePushEvent(input2) {
|
|
|
93616
93616
|
return parsed.data;
|
|
93617
93617
|
}
|
|
93618
93618
|
|
|
93619
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93619
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
|
|
93620
93620
|
import * as path22 from "path";
|
|
93621
93621
|
function routeChangeToTarget(relPath, kind) {
|
|
93622
93622
|
const norm = relPath.split(path22.sep).join("/").replace(/^\.\//, "");
|
|
@@ -93785,7 +93785,7 @@ function carriedFlags(baseArgv) {
|
|
|
93785
93785
|
return carried;
|
|
93786
93786
|
}
|
|
93787
93787
|
|
|
93788
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93788
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
|
|
93789
93789
|
var moduleLoadFetch = globalThis.fetch;
|
|
93790
93790
|
var moduleLoadAbortController = globalThis.AbortController;
|
|
93791
93791
|
var successOutcomes = /* @__PURE__ */ new WeakMap();
|
|
@@ -94007,7 +94007,7 @@ var HttpPushTransport = class {
|
|
|
94007
94007
|
}
|
|
94008
94008
|
};
|
|
94009
94009
|
|
|
94010
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94010
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
|
|
94011
94011
|
import * as fs28 from "fs";
|
|
94012
94012
|
import * as path23 from "path";
|
|
94013
94013
|
function foldVaultKey(key) {
|
|
@@ -94155,7 +94155,7 @@ function directoryFoldsCase(dir) {
|
|
|
94155
94155
|
return false;
|
|
94156
94156
|
}
|
|
94157
94157
|
|
|
94158
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94158
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
94159
94159
|
var DEBOUNCE_MS = 2e3;
|
|
94160
94160
|
var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
|
|
94161
94161
|
var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
|
|
@@ -97345,7 +97345,7 @@ var PushEventEmitter = class _PushEventEmitter {
|
|
|
97345
97345
|
}
|
|
97346
97346
|
};
|
|
97347
97347
|
|
|
97348
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97348
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
97349
97349
|
var SELF_PROFILE_ENV = "HQ_SYNC_SELF_PROFILE";
|
|
97350
97350
|
var SELF_PROFILE_CPU_CORES_ENV = "HQ_SYNC_SELF_PROFILE_CPU_CORES";
|
|
97351
97351
|
var SELF_PROFILE_RSS_MB_ENV = "HQ_SYNC_SELF_PROFILE_RSS_MB";
|
|
@@ -97960,7 +97960,7 @@ function readRunnerVersion() {
|
|
|
97960
97960
|
}
|
|
97961
97961
|
}
|
|
97962
97962
|
|
|
97963
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97963
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
97964
97964
|
import * as os27 from "os";
|
|
97965
97965
|
import * as path83 from "path";
|
|
97966
97966
|
import * as fs89 from "fs";
|
|
@@ -97968,7 +97968,7 @@ import { randomUUID as randomUUID14 } from "node:crypto";
|
|
|
97968
97968
|
import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
|
|
97969
97969
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
97970
97970
|
|
|
97971
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97971
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/context.js
|
|
97972
97972
|
import { createHash as createHash18 } from "node:crypto";
|
|
97973
97973
|
var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
97974
97974
|
var DEFAULT_SESSION_DURATION_SECONDS = 900;
|
|
@@ -98199,13 +98199,13 @@ async function vendSelfCredentials(personUid, config2) {
|
|
|
98199
98199
|
return postVend(route, { personUid }, config2);
|
|
98200
98200
|
}
|
|
98201
98201
|
|
|
98202
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98202
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
|
|
98203
98203
|
var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
|
|
98204
98204
|
|
|
98205
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98205
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
|
|
98206
98206
|
var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
|
|
98207
98207
|
|
|
98208
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
|
|
98209
98209
|
var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
|
|
98210
98210
|
var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
|
|
98211
98211
|
var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
|
|
@@ -98255,7 +98255,7 @@ var MultipartByteBudget = class {
|
|
|
98255
98255
|
};
|
|
98256
98256
|
var processByteBudget = new MultipartByteBudget();
|
|
98257
98257
|
|
|
98258
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98258
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/server-owned-skips.js
|
|
98259
98259
|
var SERVER_OWNED_FOLDERS = [
|
|
98260
98260
|
{
|
|
98261
98261
|
folder: "sources/slack-dm/",
|
|
@@ -98318,13 +98318,13 @@ function groupServerOwnedSkips(paths, options = {}) {
|
|
|
98318
98318
|
return groups;
|
|
98319
98319
|
}
|
|
98320
98320
|
|
|
98321
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98321
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98322
98322
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
98323
98323
|
import * as fs32 from "fs";
|
|
98324
98324
|
import * as os8 from "os";
|
|
98325
98325
|
import * as path27 from "path";
|
|
98326
98326
|
|
|
98327
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98327
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
|
|
98328
98328
|
import { createHash as createHash19 } from "node:crypto";
|
|
98329
98329
|
import * as fs31 from "node:fs";
|
|
98330
98330
|
import * as os7 from "node:os";
|
|
@@ -98473,7 +98473,7 @@ function readPendingConflictNotices() {
|
|
|
98473
98473
|
return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
|
|
98474
98474
|
}
|
|
98475
98475
|
|
|
98476
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98476
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98477
98477
|
function logSwallowed5(line) {
|
|
98478
98478
|
process.stderr.write(line);
|
|
98479
98479
|
}
|
|
@@ -98760,7 +98760,7 @@ function createPassSummaryRecorder() {
|
|
|
98760
98760
|
};
|
|
98761
98761
|
}
|
|
98762
98762
|
|
|
98763
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98763
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
|
|
98764
98764
|
var SCOPE_PREFIX_MARKER = "\0hq-scope:";
|
|
98765
98765
|
var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
|
|
98766
98766
|
var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
|
|
@@ -98960,7 +98960,7 @@ function grantPathToScopePrefix(grantPath, slug) {
|
|
|
98960
98960
|
return pathToScopePrefix(p3);
|
|
98961
98961
|
}
|
|
98962
98962
|
|
|
98963
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98963
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
|
|
98964
98964
|
import * as fs33 from "fs";
|
|
98965
98965
|
import * as path28 from "path";
|
|
98966
98966
|
function buildScopeShrinkPlan(input2) {
|
|
@@ -99256,18 +99256,18 @@ function applyScopeShrink(input2) {
|
|
|
99256
99256
|
};
|
|
99257
99257
|
}
|
|
99258
99258
|
|
|
99259
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99259
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99260
99260
|
init_dist();
|
|
99261
99261
|
import * as fs34 from "fs";
|
|
99262
99262
|
import * as path29 from "path";
|
|
99263
99263
|
|
|
99264
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99264
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
|
|
99265
99265
|
var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
|
|
99266
99266
|
function flagCompanyUid(uid) {
|
|
99267
99267
|
return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
|
|
99268
99268
|
}
|
|
99269
99269
|
|
|
99270
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99270
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99271
99271
|
var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
|
|
99272
99272
|
var WAL_REJECTED_DELTA_RECOVERY_FLAG = "sync.wal-rejected-delta-recovery";
|
|
99273
99273
|
var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
|
|
@@ -99417,7 +99417,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
|
|
|
99417
99417
|
return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
|
|
99418
99418
|
}
|
|
99419
99419
|
|
|
99420
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99420
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
|
|
99421
99421
|
var VEND_PATH_CAP = 10;
|
|
99422
99422
|
var POST_FILTER_THRESHOLD = 50;
|
|
99423
99423
|
var VEND_FANOUT_CONCURRENCY = 5;
|
|
@@ -99504,20 +99504,20 @@ function dedupByKey(files) {
|
|
|
99504
99504
|
return out;
|
|
99505
99505
|
}
|
|
99506
99506
|
|
|
99507
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99507
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
|
|
99508
99508
|
var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
|
|
99509
99509
|
var MIB = 1024 * 1024;
|
|
99510
99510
|
|
|
99511
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99511
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99512
99512
|
import * as fs35 from "fs";
|
|
99513
99513
|
import * as path30 from "path";
|
|
99514
99514
|
|
|
99515
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99515
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/push-only-prefixes.js
|
|
99516
99516
|
var SESSIONS_SCOPE_PREFIX = "sessions/";
|
|
99517
99517
|
var SESSION_LOGS_PUSH_ONLY_PREFIX = "workspace/.session-logs/";
|
|
99518
99518
|
var HQ_OFFLOAD_PREFIX = ".hq-offload/";
|
|
99519
99519
|
|
|
99520
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99520
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99521
99521
|
function sessionsPushOnlyScope(scope) {
|
|
99522
99522
|
return { ...scope, excludePrefixes: [SESSIONS_SCOPE_PREFIX] };
|
|
99523
99523
|
}
|
|
@@ -99613,7 +99613,7 @@ function readPinnedPrefixes(hqRoot, slug) {
|
|
|
99613
99613
|
return [];
|
|
99614
99614
|
}
|
|
99615
99615
|
|
|
99616
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99616
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
|
|
99617
99617
|
import * as fs36 from "fs";
|
|
99618
99618
|
import * as path31 from "path";
|
|
99619
99619
|
var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
|
|
@@ -99830,13 +99830,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
|
|
|
99830
99830
|
}
|
|
99831
99831
|
};
|
|
99832
99832
|
|
|
99833
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99833
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
99834
99834
|
import { createHash as createHash20 } from "node:crypto";
|
|
99835
99835
|
import { promises as fs41 } from "node:fs";
|
|
99836
99836
|
import * as os9 from "node:os";
|
|
99837
99837
|
import * as path35 from "node:path";
|
|
99838
99838
|
|
|
99839
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99839
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry-scan-cap.js
|
|
99840
99840
|
import { promises as fs37 } from "node:fs";
|
|
99841
99841
|
async function hasUnreadBytes(filePath, stored) {
|
|
99842
99842
|
let stat5;
|
|
@@ -99854,7 +99854,7 @@ async function hasUnreadBytes(filePath, stored) {
|
|
|
99854
99854
|
return stat5.size > offset;
|
|
99855
99855
|
}
|
|
99856
99856
|
|
|
99857
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99857
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
99858
99858
|
import { promises as fs38 } from "node:fs";
|
|
99859
99859
|
import * as path32 from "node:path";
|
|
99860
99860
|
|
|
@@ -102924,7 +102924,7 @@ var {
|
|
|
102924
102924
|
safeDump
|
|
102925
102925
|
} = yaml;
|
|
102926
102926
|
|
|
102927
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
102927
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
102928
102928
|
function logSwallowed6(line) {
|
|
102929
102929
|
process.stderr.write(line);
|
|
102930
102930
|
}
|
|
@@ -103135,7 +103135,7 @@ function resolveCompanyForCwd(cwd, map5) {
|
|
|
103135
103135
|
return collapsed !== c5 ? match(collapsed) : void 0;
|
|
103136
103136
|
}
|
|
103137
103137
|
|
|
103138
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103138
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
|
|
103139
103139
|
import { promises as fs39 } from "node:fs";
|
|
103140
103140
|
import * as path33 from "node:path";
|
|
103141
103141
|
var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
|
|
@@ -103582,7 +103582,7 @@ function createUsageCompanyFallback(options) {
|
|
|
103582
103582
|
};
|
|
103583
103583
|
}
|
|
103584
103584
|
|
|
103585
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103585
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry/consent-source.js
|
|
103586
103586
|
var KNOWN_SOURCES = /* @__PURE__ */ new Set([
|
|
103587
103587
|
"plan-required",
|
|
103588
103588
|
"notice-pending",
|
|
@@ -103662,7 +103662,7 @@ function decideCollection(resp, local) {
|
|
|
103662
103662
|
}
|
|
103663
103663
|
}
|
|
103664
103664
|
|
|
103665
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103665
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry/pre-consent-buffer.js
|
|
103666
103666
|
import { randomBytes as randomBytes8 } from "node:crypto";
|
|
103667
103667
|
import { promises as fs40 } from "node:fs";
|
|
103668
103668
|
import * as path34 from "node:path";
|
|
@@ -103894,7 +103894,7 @@ async function discardPreConsentBuffer(file2, opts = {}) {
|
|
|
103894
103894
|
});
|
|
103895
103895
|
}
|
|
103896
103896
|
|
|
103897
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103897
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
103898
103898
|
function emptyCursor() {
|
|
103899
103899
|
return { version: "1", files: {} };
|
|
103900
103900
|
}
|
|
@@ -104511,6 +104511,9 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104511
104511
|
let batchesSent = 0;
|
|
104512
104512
|
let uploadFailed = false;
|
|
104513
104513
|
let batchLimitReached = false;
|
|
104514
|
+
const batchesSentByKind = { claude: 0, codex: 0, grok: 0 };
|
|
104515
|
+
let batchKind;
|
|
104516
|
+
let cappedKind;
|
|
104514
104517
|
let scanBudgetLeftUnread = false;
|
|
104515
104518
|
const scannedBytes = { claude: 0, codex: 0, grok: 0 };
|
|
104516
104519
|
const heldPersonal = [];
|
|
@@ -104543,6 +104546,8 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104543
104546
|
companyFallback?.markSentWithoutCompany(rows.flatMap((row) => typeof row.uuid === "string" ? [row.uuid] : []));
|
|
104544
104547
|
};
|
|
104545
104548
|
const flush2 = async () => {
|
|
104549
|
+
const kindOfBatch = batchKind;
|
|
104550
|
+
batchKind = void 0;
|
|
104546
104551
|
let events = batchEvents;
|
|
104547
104552
|
const viaFallback = batchViaFallback;
|
|
104548
104553
|
const sources = batchSources;
|
|
@@ -104582,6 +104587,8 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104582
104587
|
}
|
|
104583
104588
|
}
|
|
104584
104589
|
batchesSent++;
|
|
104590
|
+
if (kindOfBatch !== void 0)
|
|
104591
|
+
batchesSentByKind[kindOfBatch]++;
|
|
104585
104592
|
eventsSent += events.length;
|
|
104586
104593
|
if (!fallbackAlreadyRemoved) {
|
|
104587
104594
|
const resend = [];
|
|
@@ -104607,8 +104614,14 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104607
104614
|
return true;
|
|
104608
104615
|
};
|
|
104609
104616
|
filesLoop: for (const { filePath, kind } of files) {
|
|
104610
|
-
if (uploadFailed
|
|
104617
|
+
if (uploadFailed)
|
|
104611
104618
|
break;
|
|
104619
|
+
if (kind === cappedKind)
|
|
104620
|
+
continue;
|
|
104621
|
+
if (batchKind !== void 0 && batchKind !== kind && !await flush2()) {
|
|
104622
|
+
uploadFailed = true;
|
|
104623
|
+
break;
|
|
104624
|
+
}
|
|
104612
104625
|
const sourceBudgetRemaining = maxScanBytesPerSource - scannedBytes[kind];
|
|
104613
104626
|
if (sourceBudgetRemaining <= 0) {
|
|
104614
104627
|
if (!scanBudgetLeftUnread && await hasUnreadBytes(filePath, cursor2.files[filePath])) {
|
|
@@ -104785,9 +104798,10 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104785
104798
|
uploadFailed = true;
|
|
104786
104799
|
break filesLoop;
|
|
104787
104800
|
}
|
|
104788
|
-
if (
|
|
104801
|
+
if (batchesSentByKind[kind] >= maxBatchesPerRun) {
|
|
104789
104802
|
batchLimitReached = true;
|
|
104790
|
-
|
|
104803
|
+
cappedKind = kind;
|
|
104804
|
+
continue filesLoop;
|
|
104791
104805
|
}
|
|
104792
104806
|
if (viaFallback && fallbackUid !== void 0 && companyFallback?.isRejected(fallbackUid)) {
|
|
104793
104807
|
const { companyUid: _refused, ...rest } = bounded;
|
|
@@ -104800,6 +104814,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104800
104814
|
batchBytes += addCost;
|
|
104801
104815
|
}
|
|
104802
104816
|
batchEvents.push(bounded);
|
|
104817
|
+
batchKind = kind;
|
|
104803
104818
|
batchViaFallback.push(viaFallback);
|
|
104804
104819
|
batchSources.push(source());
|
|
104805
104820
|
emittedFromLine++;
|
|
@@ -104809,7 +104824,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104809
104824
|
}
|
|
104810
104825
|
}
|
|
104811
104826
|
}
|
|
104812
|
-
if (!uploadFailed
|
|
104827
|
+
if (!uploadFailed) {
|
|
104813
104828
|
uploadFailed = !await flush2();
|
|
104814
104829
|
}
|
|
104815
104830
|
await companyFallback?.persist();
|
|
@@ -104853,7 +104868,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104853
104868
|
};
|
|
104854
104869
|
}
|
|
104855
104870
|
|
|
104856
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
104871
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
|
|
104857
104872
|
import { createHash as createHash21 } from "node:crypto";
|
|
104858
104873
|
import { promises as fs42 } from "node:fs";
|
|
104859
104874
|
import * as os10 from "node:os";
|
|
@@ -105724,12 +105739,12 @@ async function collectAndSendSkillTelemetry(opts) {
|
|
|
105724
105739
|
};
|
|
105725
105740
|
}
|
|
105726
105741
|
|
|
105727
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105742
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
105728
105743
|
import * as fs58 from "fs";
|
|
105729
105744
|
import * as os17 from "os";
|
|
105730
105745
|
import * as path51 from "path";
|
|
105731
105746
|
|
|
105732
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105747
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-pass-event.js
|
|
105733
105748
|
import { createHash as createHash22 } from "node:crypto";
|
|
105734
105749
|
import * as os11 from "node:os";
|
|
105735
105750
|
var SYNC_PASS_EVENT_NAME = "sync_pass";
|
|
@@ -105822,7 +105837,7 @@ function startSyncPassObservation(context, deps = {}) {
|
|
|
105822
105837
|
};
|
|
105823
105838
|
}
|
|
105824
105839
|
|
|
105825
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105840
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-object-events.js
|
|
105826
105841
|
import { createHash as createHash23 } from "node:crypto";
|
|
105827
105842
|
var SYNC_CONFLICT_EVENT_NAME = "sync_conflict";
|
|
105828
105843
|
var SYNC_OVERWRITE_EVENT_NAME = "sync_overwrite";
|
|
@@ -105959,7 +105974,7 @@ function createSyncObjectEventSink(deps) {
|
|
|
105959
105974
|
};
|
|
105960
105975
|
}
|
|
105961
105976
|
|
|
105962
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105977
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
|
|
105963
105978
|
init_dist();
|
|
105964
105979
|
var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
|
|
105965
105980
|
var FLAG_READ_TIMEOUT_MS = 2e3;
|
|
@@ -106008,7 +106023,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
|
|
|
106008
106023
|
}
|
|
106009
106024
|
}
|
|
106010
106025
|
|
|
106011
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106026
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
|
|
106012
106027
|
function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
106013
106028
|
if (typeof client.presign === "function" && typeof client.listFiles === "function") {
|
|
106014
106029
|
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
@@ -106026,7 +106041,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
|
106026
106041
|
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
106027
106042
|
}
|
|
106028
106043
|
|
|
106029
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106044
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
|
|
106030
106045
|
import * as fs43 from "node:fs";
|
|
106031
106046
|
import * as path37 from "node:path";
|
|
106032
106047
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -106071,7 +106086,7 @@ function appendSyncDecision(input2, options = {}) {
|
|
|
106071
106086
|
}
|
|
106072
106087
|
}
|
|
106073
106088
|
|
|
106074
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106089
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/scattered-delete-burst.js
|
|
106075
106090
|
import * as fs44 from "fs";
|
|
106076
106091
|
import * as path38 from "path";
|
|
106077
106092
|
var SCATTERED_DELETE_MIN_ABS = 20;
|
|
@@ -106137,7 +106152,7 @@ function detectScatteredDeleteBurst(candidateKeys, journal, syncRoot, uploadedHa
|
|
|
106137
106152
|
return { keys, areas: areas.size, samplePaths: keys.slice(0, SCATTERED_DELETE_SAMPLE_CAP) };
|
|
106138
106153
|
}
|
|
106139
106154
|
|
|
106140
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106155
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/unattended-delete-hold.js
|
|
106141
106156
|
var UNATTENDED_SYNC_ENV = "HQ_SYNC_UNATTENDED";
|
|
106142
106157
|
var MACHINE_ENTITY_TYPES = /* @__PURE__ */ new Set(["agent", "outpost", "company-outpost"]);
|
|
106143
106158
|
var unattendedForProcess = false;
|
|
@@ -106154,6 +106169,10 @@ function isMachinePrincipalClaims(claims) {
|
|
|
106154
106169
|
const type2 = claims?.["custom:entityType"];
|
|
106155
106170
|
return typeof type2 === "string" && MACHINE_ENTITY_TYPES.has(type2);
|
|
106156
106171
|
}
|
|
106172
|
+
function machinePrincipalClaimsFromToken(token) {
|
|
106173
|
+
const claims = decodeJwtClaims2(token);
|
|
106174
|
+
return claims && isMachinePrincipalClaims(claims) && typeof claims["custom:entityUid"] === "string" ? claims : null;
|
|
106175
|
+
}
|
|
106157
106176
|
function decodeJwtClaims2(token) {
|
|
106158
106177
|
try {
|
|
106159
106178
|
const part = token.split(".")[1];
|
|
@@ -106225,10 +106244,10 @@ function unattendedPullDeleteDecision(hold, entry) {
|
|
|
106225
106244
|
return entry.direction === "up" ? "defer" : "restore";
|
|
106226
106245
|
}
|
|
106227
106246
|
|
|
106228
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106247
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
106229
106248
|
import * as crypto16 from "crypto";
|
|
106230
106249
|
|
|
106231
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106250
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
|
|
106232
106251
|
import * as fs45 from "fs";
|
|
106233
106252
|
import * as path39 from "path";
|
|
106234
106253
|
var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
|
|
@@ -106311,7 +106330,7 @@ async function primePrivateFolderUpload(input2) {
|
|
|
106311
106330
|
}]);
|
|
106312
106331
|
}
|
|
106313
106332
|
|
|
106314
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106333
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
|
|
106315
106334
|
import * as crypto12 from "node:crypto";
|
|
106316
106335
|
import * as fs46 from "node:fs";
|
|
106317
106336
|
import * as os12 from "node:os";
|
|
@@ -106637,7 +106656,7 @@ function pruneSyncedSessionLogs(root5) {
|
|
|
106637
106656
|
}
|
|
106638
106657
|
}
|
|
106639
106658
|
|
|
106640
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106659
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
|
|
106641
106660
|
var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
|
|
106642
106661
|
var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
|
|
106643
106662
|
var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
|
|
@@ -107214,7 +107233,7 @@ var FullPassCapController = class {
|
|
|
107214
107233
|
}
|
|
107215
107234
|
};
|
|
107216
107235
|
|
|
107217
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107236
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
|
|
107218
107237
|
import * as fs47 from "fs";
|
|
107219
107238
|
import * as readline from "readline";
|
|
107220
107239
|
function conflictPromptHeadline(conflict) {
|
|
@@ -107418,7 +107437,7 @@ async function promptConflict(conflict) {
|
|
|
107418
107437
|
}
|
|
107419
107438
|
}
|
|
107420
107439
|
|
|
107421
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107440
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/reconcile-skip-reason.js
|
|
107422
107441
|
var HUMAN_UP_TO_DATE_LINE_CAP = 20;
|
|
107423
107442
|
var HUMAN_SIZE_LIMIT_LINE_CAP = 5;
|
|
107424
107443
|
function isUpToDateSkipReason(reason) {
|
|
@@ -107495,7 +107514,7 @@ function createHumanSkipLineLog() {
|
|
|
107495
107514
|
};
|
|
107496
107515
|
}
|
|
107497
107516
|
|
|
107498
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107517
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
|
|
107499
107518
|
import * as crypto13 from "node:crypto";
|
|
107500
107519
|
import * as fs48 from "node:fs";
|
|
107501
107520
|
import * as os13 from "node:os";
|
|
@@ -107889,7 +107908,7 @@ async function fetchTombstonePage(url2, token) {
|
|
|
107889
107908
|
throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
|
|
107890
107909
|
}
|
|
107891
107910
|
|
|
107892
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107911
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
|
|
107893
107912
|
import { execSync } from "child_process";
|
|
107894
107913
|
import * as fs49 from "fs";
|
|
107895
107914
|
import * as os14 from "os";
|
|
@@ -108039,11 +108058,11 @@ function hasRemoteChanged(remote, entry) {
|
|
|
108039
108058
|
return remote.lastModified.getTime() > syncedAt;
|
|
108040
108059
|
}
|
|
108041
108060
|
|
|
108042
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108061
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
108043
108062
|
import * as crypto14 from "crypto";
|
|
108044
108063
|
import * as path44 from "path";
|
|
108045
108064
|
|
|
108046
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108065
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
|
|
108047
108066
|
import { createHash as createHash26, randomUUID as randomUUID6 } from "node:crypto";
|
|
108048
108067
|
import * as fs50 from "node:fs";
|
|
108049
108068
|
import * as os15 from "node:os";
|
|
@@ -108163,7 +108182,7 @@ function readShortMachineId(hqRoot) {
|
|
|
108163
108182
|
return createHash26("sha1").update(full).digest("hex").slice(0, 6);
|
|
108164
108183
|
}
|
|
108165
108184
|
|
|
108166
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108185
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
108167
108186
|
var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
|
|
108168
108187
|
var CONFLICT_PROBE_DIR = ".hq/tmp";
|
|
108169
108188
|
function safeTimestamp(detectedAt) {
|
|
@@ -108181,7 +108200,7 @@ function buildConflictId(originalRelative, detectedAt) {
|
|
|
108181
108200
|
return `${safePath}-${safeTimestamp(detectedAt)}`;
|
|
108182
108201
|
}
|
|
108183
108202
|
|
|
108184
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108203
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
|
|
108185
108204
|
import * as crypto15 from "crypto";
|
|
108186
108205
|
import * as fs51 from "fs";
|
|
108187
108206
|
import * as path45 from "path";
|
|
@@ -108335,7 +108354,7 @@ function pruneConflictIndex(hqRoot) {
|
|
|
108335
108354
|
return result;
|
|
108336
108355
|
}
|
|
108337
108356
|
|
|
108338
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108357
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
|
|
108339
108358
|
import * as fs52 from "node:fs";
|
|
108340
108359
|
function isAppendOnlyPath(relativePath) {
|
|
108341
108360
|
const base = relativePath.split(/[\\/]/).pop() ?? "";
|
|
@@ -108407,7 +108426,7 @@ function appendIfUnchanged(file2, expected, merged) {
|
|
|
108407
108426
|
return "appended";
|
|
108408
108427
|
}
|
|
108409
108428
|
|
|
108410
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108429
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/append-log-merge.js
|
|
108411
108430
|
import { createHash as createHash27 } from "node:crypto";
|
|
108412
108431
|
import * as fs53 from "node:fs";
|
|
108413
108432
|
import * as path46 from "node:path";
|
|
@@ -108417,6 +108436,17 @@ function isAppendLogPath(relativePath) {
|
|
|
108417
108436
|
const base = (relativePath.split(/[\\/]/).pop() ?? "").toLowerCase();
|
|
108418
108437
|
return APPEND_LOG_EXTENSIONS.some((ext) => base.length > ext.length && base.endsWith(ext));
|
|
108419
108438
|
}
|
|
108439
|
+
var LOG_WORD_RE = /(^|[-_.])logs?([-_.]|$)/i;
|
|
108440
|
+
function isLogShapedAppendLogPath(relativePath) {
|
|
108441
|
+
if (!isAppendLogPath(relativePath))
|
|
108442
|
+
return false;
|
|
108443
|
+
const segments = relativePath.split(/[\\/]/).filter((segment) => segment.length > 0);
|
|
108444
|
+
const base = segments.pop() ?? "";
|
|
108445
|
+
if (base.toLowerCase().endsWith(".log"))
|
|
108446
|
+
return true;
|
|
108447
|
+
const stem = base.slice(0, base.lastIndexOf("."));
|
|
108448
|
+
return LOG_WORD_RE.test(stem) || segments.some((segment) => LOG_WORD_RE.test(segment));
|
|
108449
|
+
}
|
|
108420
108450
|
function decodeText2(body) {
|
|
108421
108451
|
if (body.length > APPEND_LOG_MERGE_MAX_BYTES || body.includes(0))
|
|
108422
108452
|
return null;
|
|
@@ -108675,7 +108705,7 @@ function replaceKeepingMode(file2, expected, merged) {
|
|
|
108675
108705
|
return "appended";
|
|
108676
108706
|
}
|
|
108677
108707
|
|
|
108678
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108708
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
|
|
108679
108709
|
import * as fs54 from "node:fs";
|
|
108680
108710
|
import * as path47 from "node:path";
|
|
108681
108711
|
function isBoardJsonPath(relativePath) {
|
|
@@ -108821,7 +108851,7 @@ function replaceIfUnchanged(file2, expected, merged) {
|
|
|
108821
108851
|
return "appended";
|
|
108822
108852
|
}
|
|
108823
108853
|
|
|
108824
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108854
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
|
|
108825
108855
|
import { createHash as createHash28, randomBytes as randomBytes11 } from "node:crypto";
|
|
108826
108856
|
import * as fs55 from "node:fs";
|
|
108827
108857
|
import * as os16 from "node:os";
|
|
@@ -109145,7 +109175,7 @@ function findUploadIntent(scope, relativePath, hash3, notBeforeMs, remoteLastMod
|
|
|
109145
109175
|
return best;
|
|
109146
109176
|
}
|
|
109147
109177
|
|
|
109148
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109178
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
|
|
109149
109179
|
init_dist();
|
|
109150
109180
|
import { createHash as createHash29 } from "node:crypto";
|
|
109151
109181
|
var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
|
|
@@ -109239,7 +109269,7 @@ ${caller}`;
|
|
|
109239
109269
|
return failed ? false : value;
|
|
109240
109270
|
}
|
|
109241
109271
|
|
|
109242
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109272
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
|
|
109243
109273
|
import fs56 from "node:fs";
|
|
109244
109274
|
import path49 from "node:path";
|
|
109245
109275
|
var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
|
|
@@ -109305,7 +109335,7 @@ function entityIsFreshForCreate(body, nowMs) {
|
|
|
109305
109335
|
return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
|
|
109306
109336
|
}
|
|
109307
109337
|
|
|
109308
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109338
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
|
|
109309
109339
|
init_dist();
|
|
109310
109340
|
import { createHash as createHash30 } from "node:crypto";
|
|
109311
109341
|
var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
|
|
@@ -109379,7 +109409,7 @@ ${caller}`;
|
|
|
109379
109409
|
return failed ? false : value;
|
|
109380
109410
|
}
|
|
109381
109411
|
|
|
109382
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109412
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
|
|
109383
109413
|
init_dist();
|
|
109384
109414
|
import { createHash as createHash31 } from "node:crypto";
|
|
109385
109415
|
var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
|
|
@@ -109442,7 +109472,7 @@ ${caller}`;
|
|
|
109442
109472
|
return failed ? false : value;
|
|
109443
109473
|
}
|
|
109444
109474
|
|
|
109445
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109475
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
|
|
109446
109476
|
import * as path50 from "node:path";
|
|
109447
109477
|
var MAX_DIAGNOSTIC_LENGTH = 1024;
|
|
109448
109478
|
function sanitizeDiagnostic(value) {
|
|
@@ -109575,7 +109605,7 @@ function pushFailureTelemetryLabel(value) {
|
|
|
109575
109605
|
return safe.slice(0, 128) || "unknown";
|
|
109576
109606
|
}
|
|
109577
109607
|
|
|
109578
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109608
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
|
|
109579
109609
|
import * as fs57 from "fs";
|
|
109580
109610
|
function toPortableSymlinkTarget(target, platform3 = process.platform) {
|
|
109581
109611
|
return platform3 === "win32" ? target.replaceAll("\\", "/") : target;
|
|
@@ -109594,14 +109624,14 @@ function readlinkOrNull(linkPath, readlink = (path84) => fs57.readlinkSync(path8
|
|
|
109594
109624
|
}
|
|
109595
109625
|
}
|
|
109596
109626
|
|
|
109597
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109627
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
|
|
109598
109628
|
function checkpointReconcileApply(checkpoint, paths) {
|
|
109599
109629
|
if (!checkpoint)
|
|
109600
109630
|
return;
|
|
109601
109631
|
checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path84) => ({ path: path84, durable: true })));
|
|
109602
109632
|
}
|
|
109603
109633
|
|
|
109604
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109634
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
|
|
109605
109635
|
init_dist();
|
|
109606
109636
|
import { createHash as createHash32 } from "node:crypto";
|
|
109607
109637
|
var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
|
|
@@ -109746,7 +109776,7 @@ function warnFlagReadFailure(write) {
|
|
|
109746
109776
|
`)))(line);
|
|
109747
109777
|
}
|
|
109748
109778
|
|
|
109749
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109779
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
109750
109780
|
async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
|
|
109751
109781
|
const probeKey = crypto16.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
|
|
109752
109782
|
const probePath = path51.join(os17.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
|
|
@@ -112075,6 +112105,7 @@ async function executeUploads(run, pushPlan, counters, conflictPaths) {
|
|
|
112075
112105
|
return;
|
|
112076
112106
|
}
|
|
112077
112107
|
const versionAware = usesVersionAwareWinner(run.onConflict);
|
|
112108
|
+
const appendMergeUnderAbort = appendLogMergesUnderAbort(run, item);
|
|
112078
112109
|
let winnerProbe;
|
|
112079
112110
|
let resolution;
|
|
112080
112111
|
if (versionAware) {
|
|
@@ -112082,6 +112113,9 @@ async function executeUploads(run, pushPlan, counters, conflictPaths) {
|
|
|
112082
112113
|
resolution = "keep";
|
|
112083
112114
|
} else {
|
|
112084
112115
|
manifestGateProbe?.discard();
|
|
112116
|
+
if (appendMergeUnderAbort) {
|
|
112117
|
+
winnerProbe = await probeRemoteForWinner(run, item, remoteMeta.lastModified, remoteChangedSinceJournal, remoteMeta.etag, !journalEntry);
|
|
112118
|
+
}
|
|
112085
112119
|
resolution = await resolveConflictSerialized({
|
|
112086
112120
|
path: relativePath,
|
|
112087
112121
|
localHash,
|
|
@@ -112091,7 +112125,7 @@ async function executeUploads(run, pushPlan, counters, conflictPaths) {
|
|
|
112091
112125
|
}
|
|
112092
112126
|
const decision = winnerProbe?.decision;
|
|
112093
112127
|
let appendOnlyPublish = false;
|
|
112094
|
-
if (versionAware && decision && winnerProbe && item.kind === "file" && (isAppendOnlyPath(relativePath) || isBoardJsonPath(relativePath) || isAppendLogPath(relativePath))) {
|
|
112128
|
+
if ((versionAware || appendMergeUnderAbort) && decision && winnerProbe && item.kind === "file" && (isAppendOnlyPath(relativePath) || isBoardJsonPath(relativePath) || isAppendLogPath(relativePath))) {
|
|
112095
112129
|
const outcome = isBoardJsonPath(relativePath) ? mergeAppendOnlyPushConflict(run, item, winnerProbe, normalizeEtag(remoteMeta.etag), mergeBoardJson, replaceIfUnchanged) : isAppendOnlyPath(relativePath) ? mergeAppendOnlyPushConflict(run, item, winnerProbe, normalizeEtag(remoteMeta.etag)) : mergeAppendLogPushConflict(run, item, winnerProbe, normalizeEtag(remoteMeta.etag));
|
|
112096
112130
|
recordPushMerge(run, item, outcome, {
|
|
112097
112131
|
remoteEtag: normalizeEtag(remoteMeta.etag),
|
|
@@ -112123,7 +112157,7 @@ async function executeUploads(run, pushPlan, counters, conflictPaths) {
|
|
|
112123
112157
|
...decision ? { decision } : {}
|
|
112124
112158
|
});
|
|
112125
112159
|
}
|
|
112126
|
-
if (resolution === "abort") {
|
|
112160
|
+
if (resolution === "abort" && !appendOnlyPublish) {
|
|
112127
112161
|
winnerProbe?.discard();
|
|
112128
112162
|
aborted2 = true;
|
|
112129
112163
|
abortFlightConflictPaths = [...conflictPaths];
|
|
@@ -112450,6 +112484,28 @@ async function executeUploads(run, pushPlan, counters, conflictPaths) {
|
|
|
112450
112484
|
counters.filesSkippedConflict++;
|
|
112451
112485
|
return;
|
|
112452
112486
|
}
|
|
112487
|
+
if (appendLogMergesUnderAbort(run, item)) {
|
|
112488
|
+
const latest = await headRemoteFile(run.ctx, relativePath);
|
|
112489
|
+
if (latest?.etag) {
|
|
112490
|
+
const probe = await probeRemoteForWinner(run, item, latest.lastModified ?? null, true, latest.etag);
|
|
112491
|
+
const outcome = probe.decision ? mergeAppendLogPushConflict(run, item, probe, normalizeEtag(latest.etag)) : "not-mergeable";
|
|
112492
|
+
if (outcome !== "not-mergeable") {
|
|
112493
|
+
const conflictIndex = conflictPaths.lastIndexOf(relativePath);
|
|
112494
|
+
if (conflictIndex >= 0)
|
|
112495
|
+
conflictPaths.splice(conflictIndex, 1);
|
|
112496
|
+
if (outcome === "write-failed") {
|
|
112497
|
+
hadUploadFailure = true;
|
|
112498
|
+
run.uploadFailedSet.add(relativePath);
|
|
112499
|
+
} else if (outcome === "publish-local") {
|
|
112500
|
+
counters.filesSkippedConflict++;
|
|
112501
|
+
emitPushSkip(run, relativePath, "held_for_next_pass");
|
|
112502
|
+
}
|
|
112503
|
+
counters.filesSkipped++;
|
|
112504
|
+
return;
|
|
112505
|
+
}
|
|
112506
|
+
probe.discard();
|
|
112507
|
+
}
|
|
112508
|
+
}
|
|
112453
112509
|
if (usesVersionAwareWinner(run.onConflict)) {
|
|
112454
112510
|
const latest = await headRemoteFile(run.ctx, relativePath);
|
|
112455
112511
|
const probe = await probeRemoteForWinner(run, item, latest?.lastModified ?? null, true, latest?.etag ?? remoteMeta?.etag);
|
|
@@ -113224,6 +113280,9 @@ function mergeAppendLogPushConflict(run, item, probe, remoteEtag) {
|
|
|
113224
113280
|
const baseHash = journalRows(run.journal).get(item.relativePath)?.hash ?? null;
|
|
113225
113281
|
return mergeAppendOnlyPushConflict(run, item, probe, remoteEtag, (localBody, remoteBody) => mergeAppendLog(localBody, remoteBody, baseHash, item.relativePath), writeAppendLogMerge);
|
|
113226
113282
|
}
|
|
113283
|
+
function appendLogMergesUnderAbort(run, item) {
|
|
113284
|
+
return run.onConflict === "abort" && item.kind === "file" && !isAppendOnlyPath(item.relativePath) && isLogShapedAppendLogPath(item.relativePath);
|
|
113285
|
+
}
|
|
113227
113286
|
async function adoptRemoteOnPush(run, item, remoteHash, decision, probe) {
|
|
113228
113287
|
let localMovedAside = false;
|
|
113229
113288
|
let remoteAdopted = false;
|
|
@@ -114938,12 +114997,12 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
|
|
|
114938
114997
|
return out;
|
|
114939
114998
|
}
|
|
114940
114999
|
|
|
114941
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115000
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
114942
115001
|
import * as fs65 from "fs";
|
|
114943
115002
|
import * as path58 from "path";
|
|
114944
115003
|
import { isDeepStrictEqual } from "node:util";
|
|
114945
115004
|
|
|
114946
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115005
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
|
|
114947
115006
|
import * as fs59 from "node:fs";
|
|
114948
115007
|
import * as os18 from "node:os";
|
|
114949
115008
|
import * as path52 from "node:path";
|
|
@@ -115022,7 +115081,7 @@ function* readRows(filename) {
|
|
|
115022
115081
|
}
|
|
115023
115082
|
}
|
|
115024
115083
|
|
|
115025
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115084
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
115026
115085
|
import { execFile as execFile6 } from "child_process";
|
|
115027
115086
|
import { randomBytes as randomBytes13 } from "crypto";
|
|
115028
115087
|
import * as fs61 from "fs";
|
|
@@ -115030,7 +115089,7 @@ import * as os19 from "os";
|
|
|
115030
115089
|
import * as path54 from "path";
|
|
115031
115090
|
import { promisify as promisify6 } from "util";
|
|
115032
115091
|
|
|
115033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115092
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
|
|
115034
115093
|
import * as crypto17 from "crypto";
|
|
115035
115094
|
import * as fs60 from "fs";
|
|
115036
115095
|
import * as path53 from "path";
|
|
@@ -115216,7 +115275,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
|
|
|
115216
115275
|
return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
|
|
115217
115276
|
}
|
|
115218
115277
|
|
|
115219
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115278
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
115220
115279
|
var execFileAsync5 = promisify6(execFile6);
|
|
115221
115280
|
var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
|
|
115222
115281
|
function gitSidecarDir(hqRoot, homeDir = os19.homedir()) {
|
|
@@ -115589,10 +115648,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
|
|
|
115589
115648
|
};
|
|
115590
115649
|
}
|
|
115591
115650
|
|
|
115592
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115651
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
|
|
115593
115652
|
var SKILLS_KEY_PREFIX = ".claude/skills/";
|
|
115594
115653
|
|
|
115595
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115654
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
|
|
115596
115655
|
var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
|
|
115597
115656
|
function rawSha256FromContentHash(contentHash) {
|
|
115598
115657
|
if (contentHash === void 0)
|
|
@@ -115603,7 +115662,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
|
|
|
115603
115662
|
return rawSha256FromContentHash(contentHash) === rawHash;
|
|
115604
115663
|
}
|
|
115605
115664
|
|
|
115606
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115665
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
|
|
115607
115666
|
import { createHash as createHash35 } from "node:crypto";
|
|
115608
115667
|
var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
|
|
115609
115668
|
var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
|
|
@@ -115628,7 +115687,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
|
|
|
115628
115687
|
return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
|
|
115629
115688
|
}
|
|
115630
115689
|
|
|
115631
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115690
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
|
|
115632
115691
|
init_dist();
|
|
115633
115692
|
import { createHash as createHash36 } from "node:crypto";
|
|
115634
115693
|
function logSwallowed9(line) {
|
|
@@ -115745,7 +115804,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
|
|
|
115745
115804
|
return defaultTargetedUpsertExactListGate(config2, companyUid);
|
|
115746
115805
|
}
|
|
115747
115806
|
|
|
115748
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115807
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
|
|
115749
115808
|
var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
|
|
115750
115809
|
function coalesceDenseTargetedPullPaths(paths) {
|
|
115751
115810
|
const normalized = paths.map((path84) => path84.replace(/\\/g, "/"));
|
|
@@ -115783,15 +115842,15 @@ function coalesceDenseTargetedPullPaths(paths) {
|
|
|
115783
115842
|
return result;
|
|
115784
115843
|
}
|
|
115785
115844
|
|
|
115786
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115845
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
115787
115846
|
import { createHash as createHash38 } from "node:crypto";
|
|
115788
115847
|
|
|
115789
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115848
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
115790
115849
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
115791
115850
|
import * as fs64 from "fs";
|
|
115792
115851
|
import * as path57 from "path";
|
|
115793
115852
|
|
|
115794
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115853
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
|
|
115795
115854
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
115796
115855
|
import * as fs62 from "fs";
|
|
115797
115856
|
import * as path55 from "path";
|
|
@@ -116054,7 +116113,7 @@ function materializeLegacyKnowledgeRepos(root5) {
|
|
|
116054
116113
|
}
|
|
116055
116114
|
}
|
|
116056
116115
|
|
|
116057
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116116
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
|
|
116058
116117
|
import * as crypto18 from "node:crypto";
|
|
116059
116118
|
import * as fs63 from "node:fs";
|
|
116060
116119
|
import * as os20 from "node:os";
|
|
@@ -116998,7 +117057,7 @@ function captureSessionLogs(root5, options = {}) {
|
|
|
116998
117057
|
}
|
|
116999
117058
|
}
|
|
117000
117059
|
|
|
117001
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117060
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
117002
117061
|
function isDir2(p3) {
|
|
117003
117062
|
try {
|
|
117004
117063
|
return fs64.statSync(p3).isDirectory();
|
|
@@ -117675,7 +117734,7 @@ function emitReindexTelemetry(opts, result, lockResult) {
|
|
|
117675
117734
|
}, { claims: opts.telemetryClaims });
|
|
117676
117735
|
}
|
|
117677
117736
|
|
|
117678
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117737
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
117679
117738
|
async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
|
|
117680
117739
|
work.rowsSinceYield += 1;
|
|
117681
117740
|
if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
|
|
@@ -119539,7 +119598,9 @@ async function executeConflictItem(run, plan, scopeRun, counters, downloadItems,
|
|
|
119539
119598
|
}
|
|
119540
119599
|
}
|
|
119541
119600
|
const appendLogMerge = !boardMerge && !isAppendOnlyPath(remoteFile.key) && isAppendLogPath(remoteFile.key);
|
|
119542
|
-
|
|
119601
|
+
const versionAwarePull = usesVersionAwareWinner(run.options.onConflict);
|
|
119602
|
+
const appendLogMergeUnderAbort = run.options.onConflict === "abort" && appendLogMerge && isLogShapedAppendLogPath(remoteFile.key);
|
|
119603
|
+
if ((versionAwarePull || appendLogMergeUnderAbort) && remoteFetched && executionLocal?.kind === "file" && !probeIsSymlink && (isAppendOnlyPath(remoteFile.key) || boardMerge || appendLogMerge)) {
|
|
119543
119604
|
let localBody = null;
|
|
119544
119605
|
let remoteBody = null;
|
|
119545
119606
|
try {
|
|
@@ -121888,10 +121949,10 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
121888
121949
|
}
|
|
121889
121950
|
}
|
|
121890
121951
|
|
|
121891
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121952
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
121892
121953
|
import { createRequire } from "node:module";
|
|
121893
121954
|
|
|
121894
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121955
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-native-copy.js
|
|
121895
121956
|
var POSIX_CHARACTER_CLASSES = {
|
|
121896
121957
|
alnum: "A-Za-z0-9",
|
|
121897
121958
|
alpha: "A-Za-z",
|
|
@@ -122025,7 +122086,7 @@ function compileRsyncPattern(rawPattern) {
|
|
|
122025
122086
|
};
|
|
122026
122087
|
}
|
|
122027
122088
|
|
|
122028
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122089
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
122029
122090
|
var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
|
|
122030
122091
|
var require2 = createRequire(import.meta.url);
|
|
122031
122092
|
var GIT_BATCH_MAX_BUFFER = 256 * 1024 * 1024;
|
|
@@ -122073,7 +122134,7 @@ var INSTALL_EXCLUDED_MATCHERS = INSTALL_EXCLUDED_PATTERNS.map(compileRsyncPatter
|
|
|
122073
122134
|
var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
|
|
122074
122135
|
var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
|
|
122075
122136
|
|
|
122076
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122137
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
|
|
122077
122138
|
var SOURCE_CHANNELS = Object.freeze([
|
|
122078
122139
|
"meeting",
|
|
122079
122140
|
"email",
|
|
@@ -122082,7 +122143,7 @@ var SOURCE_CHANNELS = Object.freeze([
|
|
|
122082
122143
|
"notion"
|
|
122083
122144
|
]);
|
|
122084
122145
|
|
|
122085
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122146
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
|
|
122086
122147
|
var SIGNAL_TYPES = Object.freeze([
|
|
122087
122148
|
"action_item",
|
|
122088
122149
|
"commitment",
|
|
@@ -122092,7 +122153,7 @@ var SIGNAL_TYPES = Object.freeze([
|
|
|
122092
122153
|
"summary"
|
|
122093
122154
|
]);
|
|
122094
122155
|
|
|
122095
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122156
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
|
|
122096
122157
|
var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
|
|
122097
122158
|
var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
|
|
122098
122159
|
function parseFeatureSwitch(value) {
|
|
@@ -122161,7 +122222,7 @@ function isEventSyncLocallyDisabled(value) {
|
|
|
122161
122222
|
}
|
|
122162
122223
|
}
|
|
122163
122224
|
|
|
122164
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122225
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
|
|
122165
122226
|
var import_client_cloudwatch = __toESM(require_dist_cjs18(), 1);
|
|
122166
122227
|
var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
|
|
122167
122228
|
var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
|
|
@@ -122229,7 +122290,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
|
|
|
122229
122290
|
}
|
|
122230
122291
|
}
|
|
122231
122292
|
|
|
122232
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122293
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
|
|
122233
122294
|
var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
|
|
122234
122295
|
var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
|
|
122235
122296
|
var DEFAULT_WAIT_TIME_SECONDS = 20;
|
|
@@ -123762,10 +123823,10 @@ function defaultSleep(ms, signal) {
|
|
|
123762
123823
|
});
|
|
123763
123824
|
}
|
|
123764
123825
|
|
|
123765
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123826
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
|
|
123766
123827
|
var import_pino = __toESM(require_pino(), 1);
|
|
123767
123828
|
|
|
123768
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123829
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
|
|
123769
123830
|
function assertCanonicalPath(path84) {
|
|
123770
123831
|
if (path84.length === 0 || path84.startsWith("/") || path84.endsWith("/") || path84.includes("\\") || path84.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
|
|
123771
123832
|
throw new Error(`path lease requires a canonical relative path: ${path84}`);
|
|
@@ -123828,7 +123889,7 @@ var PathLease = class {
|
|
|
123828
123889
|
}
|
|
123829
123890
|
};
|
|
123830
123891
|
|
|
123831
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123892
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
|
|
123832
123893
|
var MAX_REALTIME_PULL_YIELDS = 3;
|
|
123833
123894
|
var MAX_REALTIME_PULL_YIELD_MS = 6e4;
|
|
123834
123895
|
var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
|
|
@@ -124337,7 +124398,7 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
124337
124398
|
}
|
|
124338
124399
|
};
|
|
124339
124400
|
|
|
124340
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124401
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
|
|
124341
124402
|
var InlineSyncWorkerAdapter = class {
|
|
124342
124403
|
handler;
|
|
124343
124404
|
constructor(handler) {
|
|
@@ -124348,11 +124409,11 @@ var InlineSyncWorkerAdapter = class {
|
|
|
124348
124409
|
}
|
|
124349
124410
|
};
|
|
124350
124411
|
|
|
124351
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124412
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124352
124413
|
import * as fs67 from "node:fs";
|
|
124353
124414
|
import * as path61 from "node:path";
|
|
124354
124415
|
|
|
124355
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124416
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
|
|
124356
124417
|
import * as path59 from "node:path";
|
|
124357
124418
|
var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
124358
124419
|
function isSafeCompanySlug(companiesDir, slug) {
|
|
@@ -124369,7 +124430,7 @@ function isSafeCompanySlug(companiesDir, slug) {
|
|
|
124369
124430
|
return path59.dirname(companyDir) === resolvedCompaniesDir;
|
|
124370
124431
|
}
|
|
124371
124432
|
|
|
124372
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124433
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
|
|
124373
124434
|
var SYNC_MANIFEST_CONTRACT_VERSION = 1;
|
|
124374
124435
|
var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
|
|
124375
124436
|
var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
|
|
@@ -124538,7 +124599,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
|
|
|
124538
124599
|
}
|
|
124539
124600
|
};
|
|
124540
124601
|
|
|
124541
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124602
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
|
|
124542
124603
|
import * as crypto19 from "node:crypto";
|
|
124543
124604
|
import * as fs66 from "node:fs";
|
|
124544
124605
|
import * as path60 from "node:path";
|
|
@@ -124713,7 +124774,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
|
|
|
124713
124774
|
}
|
|
124714
124775
|
var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
|
|
124715
124776
|
|
|
124716
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124777
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124717
124778
|
function logSwallowed11(line) {
|
|
124718
124779
|
process.stderr.write(line);
|
|
124719
124780
|
}
|
|
@@ -125322,10 +125383,10 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
|
|
|
125322
125383
|
return upload;
|
|
125323
125384
|
}
|
|
125324
125385
|
|
|
125325
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125386
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125326
125387
|
import * as fs69 from "node:fs";
|
|
125327
125388
|
|
|
125328
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125389
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/leg-skip-store.js
|
|
125329
125390
|
import * as fs68 from "node:fs";
|
|
125330
125391
|
import * as path62 from "node:path";
|
|
125331
125392
|
function logSwallowed12(line) {
|
|
@@ -125381,7 +125442,7 @@ function clearManifestLegSkip(stateDir5, scopeKey) {
|
|
|
125381
125442
|
}
|
|
125382
125443
|
}
|
|
125383
125444
|
|
|
125384
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125445
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125385
125446
|
var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
|
|
125386
125447
|
var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
125387
125448
|
var DEFAULT_MANIFEST_UPLOAD_WALL_MS = 6e4;
|
|
@@ -125950,7 +126011,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
125950
126011
|
};
|
|
125951
126012
|
}
|
|
125952
126013
|
|
|
125953
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126014
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
|
|
125954
126015
|
import * as fs70 from "node:fs";
|
|
125955
126016
|
import * as path63 from "node:path";
|
|
125956
126017
|
import { createHash as createHash40, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -126198,7 +126259,7 @@ function validUnresolvedCompanyRecord(value) {
|
|
|
126198
126259
|
return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
|
|
126199
126260
|
}
|
|
126200
126261
|
|
|
126201
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126262
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/version.js
|
|
126202
126263
|
import { readFileSync as readFileSync41 } from "node:fs";
|
|
126203
126264
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
126204
126265
|
import path64 from "node:path";
|
|
@@ -126206,7 +126267,7 @@ var here = path64.dirname(fileURLToPath4(import.meta.url));
|
|
|
126206
126267
|
var pkg = JSON.parse(readFileSync41(path64.resolve(here, "..", "package.json"), "utf-8"));
|
|
126207
126268
|
var HQ_CLOUD_VERSION = pkg.version;
|
|
126208
126269
|
|
|
126209
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126270
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
|
|
126210
126271
|
import { promises as fs71 } from "node:fs";
|
|
126211
126272
|
import * as os21 from "node:os";
|
|
126212
126273
|
import * as path65 from "node:path";
|
|
@@ -126580,7 +126641,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
|
|
|
126580
126641
|
return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
|
|
126581
126642
|
}
|
|
126582
126643
|
|
|
126583
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126644
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
|
|
126584
126645
|
import * as fs72 from "fs";
|
|
126585
126646
|
import * as path66 from "path";
|
|
126586
126647
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -127230,7 +127291,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
|
|
|
127230
127291
|
return false;
|
|
127231
127292
|
}
|
|
127232
127293
|
|
|
127233
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127294
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
|
|
127234
127295
|
import fs73 from "node:fs";
|
|
127235
127296
|
import path67 from "node:path";
|
|
127236
127297
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
@@ -127334,7 +127395,7 @@ nonce=${nonce}
|
|
|
127334
127395
|
};
|
|
127335
127396
|
}
|
|
127336
127397
|
|
|
127337
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127398
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/telemetry-admission.js
|
|
127338
127399
|
var DEFAULT_INTERVAL_MS = 10 * 60 * 1e3;
|
|
127339
127400
|
var MAX_INTERVAL_SEC = 24 * 60 * 60;
|
|
127340
127401
|
var STALE_IN_FLIGHT_TIMEOUT_MULTIPLE = 5;
|
|
@@ -127411,7 +127472,7 @@ function recordTelemetryRunStarted(store, nowMs, run) {
|
|
|
127411
127472
|
store.inFlight = tracked;
|
|
127412
127473
|
}
|
|
127413
127474
|
|
|
127414
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127475
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
|
|
127415
127476
|
import { Worker } from "node:worker_threads";
|
|
127416
127477
|
function reindexAsync(options) {
|
|
127417
127478
|
if (import.meta.url.endsWith(".ts"))
|
|
@@ -127470,7 +127531,7 @@ function reindexAsync(options) {
|
|
|
127470
127531
|
});
|
|
127471
127532
|
}
|
|
127472
127533
|
|
|
127473
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127534
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
|
|
127474
127535
|
import * as crypto20 from "crypto";
|
|
127475
127536
|
import * as fs74 from "fs";
|
|
127476
127537
|
import * as os22 from "os";
|
|
@@ -127630,7 +127691,7 @@ function materializeCodexAgents(opts) {
|
|
|
127630
127691
|
}
|
|
127631
127692
|
}
|
|
127632
127693
|
|
|
127633
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127694
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
|
|
127634
127695
|
var POST_SYNC_FLAG_KEYS = {
|
|
127635
127696
|
qmdReindex: "sync.qmd-reindex",
|
|
127636
127697
|
conflictPrune: "sync.conflict-prune",
|
|
@@ -127650,12 +127711,12 @@ function createPostSyncFlagEvaluator(options = {}) {
|
|
|
127650
127711
|
};
|
|
127651
127712
|
}
|
|
127652
127713
|
|
|
127653
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127714
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127654
127715
|
import { createHash as createHash41, randomUUID as randomUUID9 } from "node:crypto";
|
|
127655
127716
|
import * as fs76 from "node:fs/promises";
|
|
127656
127717
|
import * as path70 from "node:path";
|
|
127657
127718
|
|
|
127658
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127719
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
|
|
127659
127720
|
import * as fs75 from "node:fs";
|
|
127660
127721
|
import * as os23 from "node:os";
|
|
127661
127722
|
import * as path69 from "node:path";
|
|
@@ -127705,7 +127766,7 @@ function readDesktopInstallationId(options) {
|
|
|
127705
127766
|
return void 0;
|
|
127706
127767
|
}
|
|
127707
127768
|
|
|
127708
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127769
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127709
127770
|
var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
|
|
127710
127771
|
var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
|
|
127711
127772
|
var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
|
|
@@ -128398,14 +128459,14 @@ function manifestLegFailureKinds(input2) {
|
|
|
128398
128459
|
return kinds;
|
|
128399
128460
|
}
|
|
128400
128461
|
|
|
128401
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128462
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
|
|
128402
128463
|
var PARTIAL_SYNC_EXIT = 2;
|
|
128403
128464
|
var UNRESOLVED_COMPANY_EXIT = 19;
|
|
128404
128465
|
var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
|
|
128405
128466
|
var WATCH_OWNER_LEASE_LOST_EXIT = 21;
|
|
128406
128467
|
var PREFLIGHT_HALT_EXIT = 22;
|
|
128407
128468
|
|
|
128408
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128469
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
|
|
128409
128470
|
import * as crypto21 from "node:crypto";
|
|
128410
128471
|
import * as fs77 from "node:fs";
|
|
128411
128472
|
import * as path71 from "node:path";
|
|
@@ -128454,7 +128515,7 @@ function hashNormalizedKey(key) {
|
|
|
128454
128515
|
return crypto21.createHash("sha256").update(normalized, "utf8").digest("hex");
|
|
128455
128516
|
}
|
|
128456
128517
|
|
|
128457
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128518
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
|
|
128458
128519
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
128459
128520
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
128460
128521
|
import * as fs78 from "node:fs";
|
|
@@ -128825,11 +128886,11 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
|
|
|
128825
128886
|
};
|
|
128826
128887
|
}
|
|
128827
128888
|
|
|
128828
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128889
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-engine-owned.js
|
|
128829
128890
|
import * as fs80 from "fs";
|
|
128830
128891
|
import * as path74 from "path";
|
|
128831
128892
|
|
|
128832
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128893
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
|
|
128833
128894
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
128834
128895
|
import * as fs79 from "node:fs";
|
|
128835
128896
|
import * as os24 from "node:os";
|
|
@@ -129185,7 +129246,7 @@ function emitFanoutPlan(emit, plan) {
|
|
|
129185
129246
|
emit({ type: "fanout-plan", companies: plan });
|
|
129186
129247
|
}
|
|
129187
129248
|
|
|
129188
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129249
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-engine-owned.js
|
|
129189
129250
|
function readJsonObject(file2) {
|
|
129190
129251
|
try {
|
|
129191
129252
|
const parsed = JSON.parse(fs80.readFileSync(file2, "utf8"));
|
|
@@ -129279,7 +129340,7 @@ function applyLivePersonalSkip(spawnSkip) {
|
|
|
129279
129340
|
return owned.personal || spawnSkip && !restored.personal;
|
|
129280
129341
|
}
|
|
129281
129342
|
|
|
129282
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129343
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
|
|
129283
129344
|
var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
|
|
129284
129345
|
function processExists(pid) {
|
|
129285
129346
|
try {
|
|
@@ -129330,7 +129391,7 @@ function startWatchParentExitMonitor(options) {
|
|
|
129330
129391
|
};
|
|
129331
129392
|
}
|
|
129332
129393
|
|
|
129333
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129394
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
|
|
129334
129395
|
var ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
129335
129396
|
"error",
|
|
129336
129397
|
"auth-error"
|
|
@@ -129376,7 +129437,7 @@ function emitUncaughtRunnerError(err, streams) {
|
|
|
129376
129437
|
}
|
|
129377
129438
|
}
|
|
129378
129439
|
|
|
129379
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129440
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/runner-output-guard.js
|
|
129380
129441
|
var BROKEN_OUTPUT_CODES = /* @__PURE__ */ new Set([
|
|
129381
129442
|
"EPIPE",
|
|
129382
129443
|
"ECONNRESET",
|
|
@@ -129440,7 +129501,7 @@ function installRunnerOutputGuard(streams = [process.stdout, process.stderr], re
|
|
|
129440
129501
|
};
|
|
129441
129502
|
}
|
|
129442
129503
|
|
|
129443
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129504
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
|
|
129444
129505
|
import { format as format2 } from "node:util";
|
|
129445
129506
|
function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
|
|
129446
129507
|
const writeDiagnostic = (...args) => {
|
|
@@ -129456,7 +129517,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
|
|
|
129456
129517
|
return startRunner();
|
|
129457
129518
|
}
|
|
129458
129519
|
|
|
129459
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129520
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
|
|
129460
129521
|
import * as fs81 from "node:fs";
|
|
129461
129522
|
import * as path75 from "node:path";
|
|
129462
129523
|
function buildPassRequestArgv(passArgv, company) {
|
|
@@ -129707,7 +129768,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
|
|
|
129707
129768
|
}
|
|
129708
129769
|
};
|
|
129709
129770
|
|
|
129710
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129771
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
|
|
129711
129772
|
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
129712
129773
|
import * as fs82 from "node:fs";
|
|
129713
129774
|
import * as path76 from "node:path";
|
|
@@ -129799,7 +129860,7 @@ function seedActiveCompany(options) {
|
|
|
129799
129860
|
return { written: true, activeCompany };
|
|
129800
129861
|
}
|
|
129801
129862
|
|
|
129802
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129863
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
|
|
129803
129864
|
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
129804
129865
|
import * as fs83 from "node:fs";
|
|
129805
129866
|
import * as path77 from "node:path";
|
|
@@ -130030,17 +130091,17 @@ async function reconcileCompanyManifest(options) {
|
|
|
130030
130091
|
return reconcileManifest(options.hqRoot, resolvedTargets);
|
|
130031
130092
|
}
|
|
130032
130093
|
|
|
130033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130094
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
130034
130095
|
import * as fs84 from "fs";
|
|
130035
130096
|
import * as path78 from "path";
|
|
130036
130097
|
import { createHash as createHash43, randomUUID as randomUUID13 } from "node:crypto";
|
|
130037
130098
|
|
|
130038
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130099
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
|
|
130039
130100
|
function allowsLegacyNetwork(decision) {
|
|
130040
130101
|
return decision.network === "allow-legacy";
|
|
130041
130102
|
}
|
|
130042
130103
|
|
|
130043
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130104
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/lib/sync-leg-error-summary.js
|
|
130044
130105
|
import os25 from "node:os";
|
|
130045
130106
|
var ERRNO_NAMES = new Set(Object.keys(os25.constants.errno));
|
|
130046
130107
|
var EXTRA_CODES = /* @__PURE__ */ new Set([
|
|
@@ -130245,7 +130306,7 @@ function buildSyncLegErrorSummary(input2) {
|
|
|
130245
130306
|
return segments.join(":").slice(0, 128);
|
|
130246
130307
|
}
|
|
130247
130308
|
|
|
130248
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130309
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
|
|
130249
130310
|
function createCompanyState(company) {
|
|
130250
130311
|
return {
|
|
130251
130312
|
company,
|
|
@@ -130307,7 +130368,7 @@ function rollupAllComplete(plan, stateByCompany) {
|
|
|
130307
130368
|
};
|
|
130308
130369
|
}
|
|
130309
130370
|
|
|
130310
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130371
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
130311
130372
|
var PRUNED_SAMPLE_PATHS = 5;
|
|
130312
130373
|
var SIZE_LIMIT_SKIP_EVENT_INTERVAL_MS = PLAN_LIMIT_PAUSE_RETRY_MS;
|
|
130313
130374
|
var SIZE_LIMIT_SKIP_MEMORY_MAX = 1e4;
|
|
@@ -131536,7 +131597,7 @@ function normalizePullChangedPaths(target, changedPaths) {
|
|
|
131536
131597
|
});
|
|
131537
131598
|
}
|
|
131538
131599
|
|
|
131539
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131600
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
|
|
131540
131601
|
async function emitTelemetry(options) {
|
|
131541
131602
|
const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
|
|
131542
131603
|
return telemetryFn().catch((err) => {
|
|
@@ -131548,7 +131609,7 @@ async function emitTelemetry(options) {
|
|
|
131548
131609
|
});
|
|
131549
131610
|
}
|
|
131550
131611
|
|
|
131551
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131612
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
131552
131613
|
import * as os26 from "os";
|
|
131553
131614
|
import * as path82 from "path";
|
|
131554
131615
|
import * as fs88 from "fs";
|
|
@@ -131556,7 +131617,7 @@ import { createHash as createHash44 } from "node:crypto";
|
|
|
131556
131617
|
import * as v8 from "node:v8";
|
|
131557
131618
|
import { performance as performance3 } from "node:perf_hooks";
|
|
131558
131619
|
|
|
131559
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131620
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
|
|
131560
131621
|
var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
|
|
131561
131622
|
var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
|
|
131562
131623
|
var RoutePushFailureBackoff = class {
|
|
@@ -131583,12 +131644,12 @@ var systemPushRetryScheduler = {
|
|
|
131583
131644
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
131584
131645
|
};
|
|
131585
131646
|
|
|
131586
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131647
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131587
131648
|
var import_client_sqs = __toESM(require_dist_cjs20(), 1);
|
|
131588
131649
|
import { readFileSync as readFileSync50 } from "node:fs";
|
|
131589
131650
|
import { join as join68 } from "node:path";
|
|
131590
131651
|
|
|
131591
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131652
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
|
|
131592
131653
|
import * as fs85 from "node:fs";
|
|
131593
131654
|
import * as path79 from "node:path";
|
|
131594
131655
|
function logSwallowed14(line) {
|
|
@@ -131654,7 +131715,7 @@ function isInboundEventPlaceable(hqRoot, event) {
|
|
|
131654
131715
|
}
|
|
131655
131716
|
}
|
|
131656
131717
|
|
|
131657
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131718
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
|
|
131658
131719
|
import fs86 from "node:fs";
|
|
131659
131720
|
import path80 from "node:path";
|
|
131660
131721
|
function journalCoordinatesForPushEvent(relativePath) {
|
|
@@ -131696,7 +131757,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
|
|
|
131696
131757
|
return unchanged;
|
|
131697
131758
|
}
|
|
131698
131759
|
|
|
131699
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131760
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131700
131761
|
function resolveEventSync(override) {
|
|
131701
131762
|
return !isEventSyncLocallyDisabled(override);
|
|
131702
131763
|
}
|
|
@@ -132408,7 +132469,7 @@ async function startEventSync(opts) {
|
|
|
132408
132469
|
};
|
|
132409
132470
|
}
|
|
132410
132471
|
|
|
132411
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132472
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
|
|
132412
132473
|
var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
|
|
132413
132474
|
var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
|
|
132414
132475
|
var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
|
|
@@ -132561,7 +132622,7 @@ function describe3(error62) {
|
|
|
132561
132622
|
return error62 instanceof Error ? error62.message : String(error62);
|
|
132562
132623
|
}
|
|
132563
132624
|
|
|
132564
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132625
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
|
|
132565
132626
|
import * as perfHooks from "node:perf_hooks";
|
|
132566
132627
|
var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
|
|
132567
132628
|
var HeapCensus = class {
|
|
@@ -133548,7 +133609,7 @@ function nodeHeapReaders(v82) {
|
|
|
133548
133609
|
};
|
|
133549
133610
|
}
|
|
133550
133611
|
|
|
133551
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133612
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
|
|
133552
133613
|
var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
|
|
133553
133614
|
var MAX_CLOCK_DRIFT_MS = 5e3;
|
|
133554
133615
|
var MAX_SCHEDULED_FULL_SKIP_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -133606,7 +133667,7 @@ function canSkipScheduledFullReconcile(proof) {
|
|
|
133606
133667
|
return true;
|
|
133607
133668
|
}
|
|
133608
133669
|
|
|
133609
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133670
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/legacy-sync-wake.js
|
|
133610
133671
|
import * as fs87 from "node:fs";
|
|
133611
133672
|
import * as path81 from "node:path";
|
|
133612
133673
|
var MAX_WAKE_BYTES = 1024 * 1024;
|
|
@@ -133768,7 +133829,7 @@ var LegacySyncWakeBridge = class {
|
|
|
133768
133829
|
}
|
|
133769
133830
|
};
|
|
133770
133831
|
|
|
133771
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133832
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
133772
133833
|
var FULL_RECONCILE_EVERY_TICKS = 10;
|
|
133773
133834
|
var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
|
|
133774
133835
|
var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
|
|
@@ -136166,9 +136227,9 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
136166
136227
|
const claims = normalizedWakeClaims(raw);
|
|
136167
136228
|
return claims ? JSON.stringify([claims.sub, claims["custom:entityUid"] ?? null]) : null;
|
|
136168
136229
|
};
|
|
136230
|
+
const currentWakeClaims = async () => machinePrincipalClaimsFromToken(await wakeToken()) ?? wakeClaims();
|
|
136169
136231
|
const resolveLegacyWakeTarget = deps.resolveLegacyWakeTarget ?? (async (expected) => {
|
|
136170
|
-
await
|
|
136171
|
-
const claims = normalizedWakeClaims(wakeClaims());
|
|
136232
|
+
const claims = normalizedWakeClaims(await currentWakeClaims());
|
|
136172
136233
|
const identity = identityOf(claims);
|
|
136173
136234
|
if (!identity)
|
|
136174
136235
|
return null;
|
|
@@ -136186,8 +136247,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
136186
136247
|
resolveSkipPersonal: (flag) => flag || watchRouteSelection.skipPersonal,
|
|
136187
136248
|
skipCompanies: resolveSkipCompanies()
|
|
136188
136249
|
});
|
|
136189
|
-
await
|
|
136190
|
-
if (identityOf(wakeClaims()) !== identity || result.status !== "plan")
|
|
136250
|
+
if (identityOf(await currentWakeClaims()) !== identity || result.status !== "plan")
|
|
136191
136251
|
return null;
|
|
136192
136252
|
return result.plan.find((target) => target.uid === expected.uid && target.slug === expected.slug && target.personalMode === true === (expected.personalMode === true)) ?? null;
|
|
136193
136253
|
});
|
|
@@ -139289,7 +139349,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
139289
139349
|
}
|
|
139290
139350
|
}
|
|
139291
139351
|
|
|
139292
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139352
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
|
|
139293
139353
|
var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
|
|
139294
139354
|
var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
|
|
139295
139355
|
var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
|
|
@@ -139362,7 +139422,7 @@ async function waitForValidAuth(opts) {
|
|
|
139362
139422
|
return "stopped";
|
|
139363
139423
|
}
|
|
139364
139424
|
|
|
139365
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139425
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.119/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
139366
139426
|
var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
|
|
139367
139427
|
var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
|
|
139368
139428
|
var DEFAULT_COGNITO = {
|