@indigoai-us/hq-cli 5.345.232 → 5.345.234
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 +24 -0
- package/dist/command-catalog.generated.d.ts +4 -0
- package/dist/command-catalog.generated.js +5 -0
- package/dist/commands/core-handoff.d.ts +1 -0
- package/dist/commands/core-handoff.js +2 -28
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/doctor.js +24 -0
- package/dist/commands/install-global.js +10 -0
- package/dist/commands/mcp-serve-gate.d.ts +22 -0
- package/dist/commands/mcp-serve-gate.js +37 -0
- package/dist/commands/mcp-serve.js +2 -8
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +257 -214
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/index.js +6 -1
- package/dist/lib/daemon/flag.d.ts +2 -0
- package/dist/lib/daemon/flag.js +6 -4
- package/dist/lib/daemon/shared-flag-reads.d.ts +70 -0
- package/dist/lib/daemon/shared-flag-reads.js +173 -0
- 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/hook-engine/coverage.js +50 -0
- package/dist/lib/windows/jq.d.ts +17 -0
- package/dist/lib/windows/jq.js +72 -0
- package/dist/utils/cognito-session.d.ts +2 -56
- package/dist/utils/cognito-session.js +6 -164
- package/package.json +8 -8
- package/scripts/install-hook-engine.mjs +8 -15
|
@@ -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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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.114/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(path82) {
|
|
@@ -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.114/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.114/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);
|
|
@@ -87793,9 +87793,47 @@ function hasCompanyMarkers(claims) {
|
|
|
87793
87793
|
function validCompanyCredentials(raw) {
|
|
87794
87794
|
return typeof raw.entityUid === "string" && /^out_[0-9A-HJKMNP-TV-Z]{26}$/.test(raw.entityUid) && typeof raw.username === "string" && raw.username.trim().length > 0 && typeof raw.secret === "string" && raw.secret.trim().length > 0 && typeof raw.clientId === "string" && raw.clientId.trim().length > 0 && typeof raw.region === "string" && /^[a-z]{2}-[a-z]+-[0-9]+$/.test(raw.region) && (raw.runtime === void 0 || raw.runtime === "hosted") && !owns(raw, "delegatedSub") && !owns(raw, "delegatedEmail") && !owns(raw, "custom:delegatedSub") && !owns(raw, "custom:delegatedEmail");
|
|
87795
87795
|
}
|
|
87796
|
+
var COMPANY_OUTPOST_BOX_CONFIG_FILE = "/etc/company-outpost.env";
|
|
87797
|
+
var COMPANY_OUTPOST_BOX_KEYS = ["HQ_COMPANY_UID", "HQ_COMPANY_OUTPOST_ID", "HQ_COMPANY_OUTPOST_ATTEMPT"];
|
|
87798
|
+
function readCompanyOutpostBoxConfig() {
|
|
87799
|
+
const file2 = process.env.HQ_COMPANY_OUTPOST_CONFIG_FILE || COMPANY_OUTPOST_BOX_CONFIG_FILE;
|
|
87800
|
+
let text;
|
|
87801
|
+
try {
|
|
87802
|
+
const stat5 = fs24.lstatSync(file2);
|
|
87803
|
+
const uid = typeof process.getuid === "function" ? process.getuid() : void 0;
|
|
87804
|
+
if (!stat5.isFile() || (stat5.mode & 18) !== 0 || stat5.uid !== 0 && stat5.uid !== uid)
|
|
87805
|
+
return {};
|
|
87806
|
+
text = fs24.readFileSync(file2, "utf-8");
|
|
87807
|
+
} catch {
|
|
87808
|
+
return {};
|
|
87809
|
+
}
|
|
87810
|
+
const values = {};
|
|
87811
|
+
for (const line of text.split("\n")) {
|
|
87812
|
+
const match = /^([A-Z_]+)=([A-Za-z0-9_:/.-]+)$/.exec(line.trim());
|
|
87813
|
+
const key = match?.[1];
|
|
87814
|
+
if (match && key && COMPANY_OUTPOST_BOX_KEYS.includes(key) && values[key] === void 0)
|
|
87815
|
+
values[key] = match[2];
|
|
87816
|
+
}
|
|
87817
|
+
return values;
|
|
87818
|
+
}
|
|
87819
|
+
function companyOutpostBinding() {
|
|
87820
|
+
const fromEnv2 = Object.fromEntries(COMPANY_OUTPOST_BOX_KEYS.flatMap((key) => process.env[key] ? [[key, process.env[key]]] : []));
|
|
87821
|
+
if (COMPANY_OUTPOST_BOX_KEYS.every((key) => fromEnv2[key]))
|
|
87822
|
+
return fromEnv2;
|
|
87823
|
+
return { ...readCompanyOutpostBoxConfig(), ...fromEnv2 };
|
|
87824
|
+
}
|
|
87825
|
+
function expectedCompanyOutpostId(company, binding = companyOutpostBinding()) {
|
|
87826
|
+
const configured = binding.HQ_COMPANY_OUTPOST_ID;
|
|
87827
|
+
if (!configured)
|
|
87828
|
+
return `outpost_${company}`;
|
|
87829
|
+
if (configured === `outpost_${company}` || /^opc_[0-9A-HJKMNP-TV-Z]{26}$/.test(configured))
|
|
87830
|
+
return configured;
|
|
87831
|
+
return null;
|
|
87832
|
+
}
|
|
87796
87833
|
function companyClaimsMatch(claims, creds, clientId) {
|
|
87797
87834
|
const company = claims["custom:ownerCompanyUid"];
|
|
87798
|
-
|
|
87835
|
+
const binding = companyOutpostBinding();
|
|
87836
|
+
return claims["custom:entityType"] === "company-outpost" && claims["custom:entityUid"] === creds.entityUid && claims["custom:authClientId"] === clientId && typeof company === "string" && /^cmp_[A-Za-z0-9]+$/.test(company) && (!binding.HQ_COMPANY_UID || company === binding.HQ_COMPANY_UID) && expectedCompanyOutpostId(company, binding) !== null && claims["custom:companyOutpostId"] === expectedCompanyOutpostId(company, binding) && !owns(claims, "custom:delegatedSub") && !owns(claims, "custom:delegatedEmail") && typeof claims.sub === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(claims.sub) && typeof claims.exp === "number" && claims.exp * 1e3 > Date.now();
|
|
87799
87837
|
}
|
|
87800
87838
|
function machineTokenPairMatchesIdentity(tokens, creds, expectedClientId) {
|
|
87801
87839
|
const accessClaims = decodeJwtClaims(tokens.accessToken);
|
|
@@ -88332,10 +88370,15 @@ var inFlightMachineMints = /* @__PURE__ */ new Map();
|
|
|
88332
88370
|
var DEFAULT_MACHINE_TOKEN_MIN_VALIDITY_SECONDS = 360;
|
|
88333
88371
|
var MAX_MACHINE_TOKEN_MIN_VALIDITY_SECONDS = 1800;
|
|
88334
88372
|
function machineIdentityKey(config2, creds) {
|
|
88373
|
+
const binding = creds.entityType === "company-outpost" ? companyOutpostBinding() : {
|
|
88374
|
+
HQ_COMPANY_UID: process.env.HQ_COMPANY_UID,
|
|
88375
|
+
HQ_COMPANY_OUTPOST_ID: process.env.HQ_COMPANY_OUTPOST_ID,
|
|
88376
|
+
HQ_COMPANY_OUTPOST_ATTEMPT: process.env.HQ_COMPANY_OUTPOST_ATTEMPT
|
|
88377
|
+
};
|
|
88335
88378
|
return crypto10.createHash("sha256").update(JSON.stringify({
|
|
88336
|
-
companyUid:
|
|
88337
|
-
outpostId:
|
|
88338
|
-
attempt:
|
|
88379
|
+
companyUid: binding.HQ_COMPANY_UID ?? null,
|
|
88380
|
+
outpostId: binding.HQ_COMPANY_OUTPOST_ID ?? null,
|
|
88381
|
+
attempt: binding.HQ_COMPANY_OUTPOST_ATTEMPT ?? null,
|
|
88339
88382
|
username: creds.username,
|
|
88340
88383
|
secret: creds.secret,
|
|
88341
88384
|
clientId: creds.clientId ?? config2.clientId,
|
|
@@ -88856,7 +88899,7 @@ function pickNewerSession(fromKeychain, other) {
|
|
|
88856
88899
|
return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
|
|
88857
88900
|
}
|
|
88858
88901
|
|
|
88859
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88902
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
|
|
88860
88903
|
var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
|
|
88861
88904
|
var VaultCredentialScopeError = class extends Error {
|
|
88862
88905
|
droppedWriteGrantPrefixes;
|
|
@@ -88898,7 +88941,7 @@ function assertCredentialScopeUsable(diagnostic) {
|
|
|
88898
88941
|
}
|
|
88899
88942
|
}
|
|
88900
88943
|
|
|
88901
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88944
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
|
|
88902
88945
|
var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
|
|
88903
88946
|
var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
88904
88947
|
"PLAN_LIMIT_EXCEEDED",
|
|
@@ -89041,7 +89084,7 @@ function formatPlanLimitNotice(event) {
|
|
|
89041
89084
|
return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
|
|
89042
89085
|
}
|
|
89043
89086
|
|
|
89044
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89087
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
|
|
89045
89088
|
var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
|
|
89046
89089
|
var VaultClientError = class extends Error {
|
|
89047
89090
|
statusCode;
|
|
@@ -90040,7 +90083,7 @@ function parseVaultErrorBody(body) {
|
|
|
90040
90083
|
}
|
|
90041
90084
|
}
|
|
90042
90085
|
|
|
90043
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90086
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/vault-key-grammar.js
|
|
90044
90087
|
var KEY_CONTROL_CHARS = /[\x00-\x1F\x7F]/;
|
|
90045
90088
|
var MAX_URI_DECODE_DEPTH = 4;
|
|
90046
90089
|
function classifyVaultKey(key, _scope) {
|
|
@@ -90147,7 +90190,7 @@ function isPresignKeyGrammarCode(code) {
|
|
|
90147
90190
|
return typeof code === "string" && (code === "INVALID_KEY" || code.startsWith("INVALID_KEY_") || code.startsWith("PRESIGN_KEY_"));
|
|
90148
90191
|
}
|
|
90149
90192
|
|
|
90150
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90193
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
90151
90194
|
var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
|
|
90152
90195
|
var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
|
|
90153
90196
|
var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
|
|
@@ -91628,7 +91671,7 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor, options
|
|
|
91628
91671
|
};
|
|
91629
91672
|
}
|
|
91630
91673
|
|
|
91631
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
|
|
91632
91675
|
var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
|
|
91633
91676
|
function portableModeStamp(mode, platform3 = process.platform) {
|
|
91634
91677
|
if (platform3 === "win32")
|
|
@@ -91639,7 +91682,7 @@ function isPortableModeSignal(mode) {
|
|
|
91639
91682
|
return !WIN32_SYNTHETIC_MODES.has(mode & 511);
|
|
91640
91683
|
}
|
|
91641
91684
|
|
|
91642
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91685
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
|
|
91643
91686
|
import * as path19 from "path";
|
|
91644
91687
|
var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
|
|
91645
91688
|
var SHEBANG = Buffer.from("#!");
|
|
@@ -91695,7 +91738,7 @@ function normalizeScriptLineEndings(body) {
|
|
|
91695
91738
|
return changed ? out.subarray(0, n3) : null;
|
|
91696
91739
|
}
|
|
91697
91740
|
|
|
91698
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91741
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
|
|
91699
91742
|
import path20 from "node:path";
|
|
91700
91743
|
import fs25 from "node:fs";
|
|
91701
91744
|
function personalSymlinkTargetLinkPath(relativePath) {
|
|
@@ -91918,7 +91961,7 @@ function redactShape(target, classification) {
|
|
|
91918
91961
|
return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
|
|
91919
91962
|
}
|
|
91920
91963
|
|
|
91921
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91964
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
91922
91965
|
var DOWNLOAD_STREAM_MAX_RETRIES = 3;
|
|
91923
91966
|
var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
|
|
91924
91967
|
function sleepMs(ms) {
|
|
@@ -93456,7 +93499,7 @@ function getMimeType(filePath) {
|
|
|
93456
93499
|
return mimeTypes[ext] || "application/octet-stream";
|
|
93457
93500
|
}
|
|
93458
93501
|
|
|
93459
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93502
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/windows-extended-path.js
|
|
93460
93503
|
import fs27 from "node:fs";
|
|
93461
93504
|
var EXTENDED_UNC = /^[\\/]{2}\?[\\/]UNC[\\/]/i;
|
|
93462
93505
|
var EXTENDED_DRIVE = /^[\\/]{2}\?[\\/](?=[A-Za-z]:(?:[\\/]|$))/;
|
|
@@ -93478,7 +93521,7 @@ function realpathRootSync(p3, impl = DEFAULT_IMPL) {
|
|
|
93478
93521
|
}
|
|
93479
93522
|
}
|
|
93480
93523
|
|
|
93481
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93524
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
|
|
93482
93525
|
var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
93483
93526
|
var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
93484
93527
|
function nativeSeparatorsToPosix(relativePath, sep23) {
|
|
@@ -93573,7 +93616,7 @@ function decodePushEvent(input2) {
|
|
|
93573
93616
|
return parsed.data;
|
|
93574
93617
|
}
|
|
93575
93618
|
|
|
93576
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93619
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
|
|
93577
93620
|
import * as path22 from "path";
|
|
93578
93621
|
function routeChangeToTarget(relPath, kind) {
|
|
93579
93622
|
const norm = relPath.split(path22.sep).join("/").replace(/^\.\//, "");
|
|
@@ -93742,7 +93785,7 @@ function carriedFlags(baseArgv) {
|
|
|
93742
93785
|
return carried;
|
|
93743
93786
|
}
|
|
93744
93787
|
|
|
93745
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93788
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
|
|
93746
93789
|
var moduleLoadFetch = globalThis.fetch;
|
|
93747
93790
|
var moduleLoadAbortController = globalThis.AbortController;
|
|
93748
93791
|
var successOutcomes = /* @__PURE__ */ new WeakMap();
|
|
@@ -93964,7 +94007,7 @@ var HttpPushTransport = class {
|
|
|
93964
94007
|
}
|
|
93965
94008
|
};
|
|
93966
94009
|
|
|
93967
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94010
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
|
|
93968
94011
|
import * as fs28 from "fs";
|
|
93969
94012
|
import * as path23 from "path";
|
|
93970
94013
|
function foldVaultKey(key) {
|
|
@@ -94112,7 +94155,7 @@ function directoryFoldsCase(dir) {
|
|
|
94112
94155
|
return false;
|
|
94113
94156
|
}
|
|
94114
94157
|
|
|
94115
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94158
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
94116
94159
|
var DEBOUNCE_MS = 2e3;
|
|
94117
94160
|
var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
|
|
94118
94161
|
var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
|
|
@@ -97275,7 +97318,7 @@ var PushEventEmitter = class _PushEventEmitter {
|
|
|
97275
97318
|
}
|
|
97276
97319
|
};
|
|
97277
97320
|
|
|
97278
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97321
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
97279
97322
|
var SELF_PROFILE_ENV = "HQ_SYNC_SELF_PROFILE";
|
|
97280
97323
|
var SELF_PROFILE_CPU_CORES_ENV = "HQ_SYNC_SELF_PROFILE_CPU_CORES";
|
|
97281
97324
|
var SELF_PROFILE_RSS_MB_ENV = "HQ_SYNC_SELF_PROFILE_RSS_MB";
|
|
@@ -97890,7 +97933,7 @@ function readRunnerVersion() {
|
|
|
97890
97933
|
}
|
|
97891
97934
|
}
|
|
97892
97935
|
|
|
97893
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97936
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
97894
97937
|
import * as os26 from "os";
|
|
97895
97938
|
import * as path81 from "path";
|
|
97896
97939
|
import * as fs87 from "fs";
|
|
@@ -97898,7 +97941,7 @@ import { randomUUID as randomUUID14 } from "node:crypto";
|
|
|
97898
97941
|
import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
|
|
97899
97942
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
97900
97943
|
|
|
97901
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97944
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/context.js
|
|
97902
97945
|
import { createHash as createHash18 } from "node:crypto";
|
|
97903
97946
|
var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
97904
97947
|
var DEFAULT_SESSION_DURATION_SECONDS = 900;
|
|
@@ -98129,13 +98172,13 @@ async function vendSelfCredentials(personUid, config2) {
|
|
|
98129
98172
|
return postVend(route, { personUid }, config2);
|
|
98130
98173
|
}
|
|
98131
98174
|
|
|
98132
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98175
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
|
|
98133
98176
|
var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
|
|
98134
98177
|
|
|
98135
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98178
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
|
|
98136
98179
|
var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
|
|
98137
98180
|
|
|
98138
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98181
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
|
|
98139
98182
|
var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
|
|
98140
98183
|
var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
|
|
98141
98184
|
var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
|
|
@@ -98185,7 +98228,7 @@ var MultipartByteBudget = class {
|
|
|
98185
98228
|
};
|
|
98186
98229
|
var processByteBudget = new MultipartByteBudget();
|
|
98187
98230
|
|
|
98188
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98231
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/server-owned-skips.js
|
|
98189
98232
|
var SERVER_OWNED_FOLDERS = [
|
|
98190
98233
|
{
|
|
98191
98234
|
folder: "sources/slack-dm/",
|
|
@@ -98248,13 +98291,13 @@ function groupServerOwnedSkips(paths, options = {}) {
|
|
|
98248
98291
|
return groups;
|
|
98249
98292
|
}
|
|
98250
98293
|
|
|
98251
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98294
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98252
98295
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
98253
98296
|
import * as fs32 from "fs";
|
|
98254
98297
|
import * as os8 from "os";
|
|
98255
98298
|
import * as path27 from "path";
|
|
98256
98299
|
|
|
98257
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98300
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
|
|
98258
98301
|
import { createHash as createHash19 } from "node:crypto";
|
|
98259
98302
|
import * as fs31 from "node:fs";
|
|
98260
98303
|
import * as os7 from "node:os";
|
|
@@ -98403,7 +98446,7 @@ function readPendingConflictNotices() {
|
|
|
98403
98446
|
return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
|
|
98404
98447
|
}
|
|
98405
98448
|
|
|
98406
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98449
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98407
98450
|
function logSwallowed5(line) {
|
|
98408
98451
|
process.stderr.write(line);
|
|
98409
98452
|
}
|
|
@@ -98690,7 +98733,7 @@ function createPassSummaryRecorder() {
|
|
|
98690
98733
|
};
|
|
98691
98734
|
}
|
|
98692
98735
|
|
|
98693
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98736
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
|
|
98694
98737
|
var SCOPE_PREFIX_MARKER = "\0hq-scope:";
|
|
98695
98738
|
var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
|
|
98696
98739
|
var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
|
|
@@ -98890,7 +98933,7 @@ function grantPathToScopePrefix(grantPath, slug) {
|
|
|
98890
98933
|
return pathToScopePrefix(p3);
|
|
98891
98934
|
}
|
|
98892
98935
|
|
|
98893
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98936
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
|
|
98894
98937
|
import * as fs33 from "fs";
|
|
98895
98938
|
import * as path28 from "path";
|
|
98896
98939
|
function buildScopeShrinkPlan(input2) {
|
|
@@ -99186,18 +99229,18 @@ function applyScopeShrink(input2) {
|
|
|
99186
99229
|
};
|
|
99187
99230
|
}
|
|
99188
99231
|
|
|
99189
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99232
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99190
99233
|
init_dist();
|
|
99191
99234
|
import * as fs34 from "fs";
|
|
99192
99235
|
import * as path29 from "path";
|
|
99193
99236
|
|
|
99194
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99237
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
|
|
99195
99238
|
var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
|
|
99196
99239
|
function flagCompanyUid(uid) {
|
|
99197
99240
|
return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
|
|
99198
99241
|
}
|
|
99199
99242
|
|
|
99200
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99243
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99201
99244
|
var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
|
|
99202
99245
|
var WAL_REJECTED_DELTA_RECOVERY_FLAG = "sync.wal-rejected-delta-recovery";
|
|
99203
99246
|
var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
|
|
@@ -99347,7 +99390,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
|
|
|
99347
99390
|
return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
|
|
99348
99391
|
}
|
|
99349
99392
|
|
|
99350
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99393
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
|
|
99351
99394
|
var VEND_PATH_CAP = 10;
|
|
99352
99395
|
var POST_FILTER_THRESHOLD = 50;
|
|
99353
99396
|
var VEND_FANOUT_CONCURRENCY = 5;
|
|
@@ -99434,11 +99477,11 @@ function dedupByKey(files) {
|
|
|
99434
99477
|
return out;
|
|
99435
99478
|
}
|
|
99436
99479
|
|
|
99437
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99480
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
|
|
99438
99481
|
var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
|
|
99439
99482
|
var MIB = 1024 * 1024;
|
|
99440
99483
|
|
|
99441
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99484
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99442
99485
|
import * as fs35 from "fs";
|
|
99443
99486
|
import * as path30 from "path";
|
|
99444
99487
|
var SESSIONS_SCOPE_PREFIX = "sessions/";
|
|
@@ -99510,7 +99553,7 @@ function readPinnedPrefixes(hqRoot, slug) {
|
|
|
99510
99553
|
return [];
|
|
99511
99554
|
}
|
|
99512
99555
|
|
|
99513
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99556
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
|
|
99514
99557
|
import * as fs36 from "fs";
|
|
99515
99558
|
import * as path31 from "path";
|
|
99516
99559
|
var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
|
|
@@ -99727,13 +99770,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
|
|
|
99727
99770
|
}
|
|
99728
99771
|
};
|
|
99729
99772
|
|
|
99730
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99773
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
99731
99774
|
import { createHash as createHash20 } from "node:crypto";
|
|
99732
99775
|
import { promises as fs41 } from "node:fs";
|
|
99733
99776
|
import * as os9 from "node:os";
|
|
99734
99777
|
import * as path35 from "node:path";
|
|
99735
99778
|
|
|
99736
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99779
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/telemetry-scan-cap.js
|
|
99737
99780
|
import { promises as fs37 } from "node:fs";
|
|
99738
99781
|
async function hasUnreadBytes(filePath, stored) {
|
|
99739
99782
|
let stat5;
|
|
@@ -99751,7 +99794,7 @@ async function hasUnreadBytes(filePath, stored) {
|
|
|
99751
99794
|
return stat5.size > offset;
|
|
99752
99795
|
}
|
|
99753
99796
|
|
|
99754
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99797
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
99755
99798
|
import { promises as fs38 } from "node:fs";
|
|
99756
99799
|
import * as path32 from "node:path";
|
|
99757
99800
|
|
|
@@ -102821,7 +102864,7 @@ var {
|
|
|
102821
102864
|
safeDump
|
|
102822
102865
|
} = yaml;
|
|
102823
102866
|
|
|
102824
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
102867
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
102825
102868
|
function logSwallowed6(line) {
|
|
102826
102869
|
process.stderr.write(line);
|
|
102827
102870
|
}
|
|
@@ -103032,7 +103075,7 @@ function resolveCompanyForCwd(cwd, map5) {
|
|
|
103032
103075
|
return collapsed !== c5 ? match(collapsed) : void 0;
|
|
103033
103076
|
}
|
|
103034
103077
|
|
|
103035
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103078
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
|
|
103036
103079
|
import { promises as fs39 } from "node:fs";
|
|
103037
103080
|
import * as path33 from "node:path";
|
|
103038
103081
|
var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
|
|
@@ -103479,7 +103522,7 @@ function createUsageCompanyFallback(options) {
|
|
|
103479
103522
|
};
|
|
103480
103523
|
}
|
|
103481
103524
|
|
|
103482
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103525
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/telemetry/consent-source.js
|
|
103483
103526
|
var KNOWN_SOURCES = /* @__PURE__ */ new Set([
|
|
103484
103527
|
"plan-required",
|
|
103485
103528
|
"notice-pending",
|
|
@@ -103559,7 +103602,7 @@ function decideCollection(resp, local) {
|
|
|
103559
103602
|
}
|
|
103560
103603
|
}
|
|
103561
103604
|
|
|
103562
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103605
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/telemetry/pre-consent-buffer.js
|
|
103563
103606
|
import { randomBytes as randomBytes8 } from "node:crypto";
|
|
103564
103607
|
import { promises as fs40 } from "node:fs";
|
|
103565
103608
|
import * as path34 from "node:path";
|
|
@@ -103791,7 +103834,7 @@ async function discardPreConsentBuffer(file2, opts = {}) {
|
|
|
103791
103834
|
});
|
|
103792
103835
|
}
|
|
103793
103836
|
|
|
103794
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103837
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
103795
103838
|
function emptyCursor() {
|
|
103796
103839
|
return { version: "1", files: {} };
|
|
103797
103840
|
}
|
|
@@ -104750,7 +104793,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104750
104793
|
};
|
|
104751
104794
|
}
|
|
104752
104795
|
|
|
104753
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
104796
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
|
|
104754
104797
|
import { createHash as createHash21 } from "node:crypto";
|
|
104755
104798
|
import { promises as fs42 } from "node:fs";
|
|
104756
104799
|
import * as os10 from "node:os";
|
|
@@ -105621,12 +105664,12 @@ async function collectAndSendSkillTelemetry(opts) {
|
|
|
105621
105664
|
};
|
|
105622
105665
|
}
|
|
105623
105666
|
|
|
105624
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105667
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
105625
105668
|
import * as fs58 from "fs";
|
|
105626
105669
|
import * as os17 from "os";
|
|
105627
105670
|
import * as path51 from "path";
|
|
105628
105671
|
|
|
105629
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105672
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync-pass-event.js
|
|
105630
105673
|
import { createHash as createHash22 } from "node:crypto";
|
|
105631
105674
|
import * as os11 from "node:os";
|
|
105632
105675
|
var SYNC_PASS_EVENT_NAME = "sync_pass";
|
|
@@ -105719,7 +105762,7 @@ function startSyncPassObservation(context, deps = {}) {
|
|
|
105719
105762
|
};
|
|
105720
105763
|
}
|
|
105721
105764
|
|
|
105722
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105765
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync-object-events.js
|
|
105723
105766
|
import { createHash as createHash23 } from "node:crypto";
|
|
105724
105767
|
var SYNC_CONFLICT_EVENT_NAME = "sync_conflict";
|
|
105725
105768
|
var SYNC_OVERWRITE_EVENT_NAME = "sync_overwrite";
|
|
@@ -105856,7 +105899,7 @@ function createSyncObjectEventSink(deps) {
|
|
|
105856
105899
|
};
|
|
105857
105900
|
}
|
|
105858
105901
|
|
|
105859
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105902
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
|
|
105860
105903
|
init_dist();
|
|
105861
105904
|
var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
|
|
105862
105905
|
var FLAG_READ_TIMEOUT_MS = 2e3;
|
|
@@ -105905,7 +105948,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
|
|
|
105905
105948
|
}
|
|
105906
105949
|
}
|
|
105907
105950
|
|
|
105908
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105951
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
|
|
105909
105952
|
function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
105910
105953
|
if (typeof client.presign === "function" && typeof client.listFiles === "function") {
|
|
105911
105954
|
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
@@ -105923,7 +105966,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
|
105923
105966
|
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
105924
105967
|
}
|
|
105925
105968
|
|
|
105926
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105969
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
|
|
105927
105970
|
import * as fs43 from "node:fs";
|
|
105928
105971
|
import * as path37 from "node:path";
|
|
105929
105972
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -105968,7 +106011,7 @@ function appendSyncDecision(input2, options = {}) {
|
|
|
105968
106011
|
}
|
|
105969
106012
|
}
|
|
105970
106013
|
|
|
105971
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106014
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/scattered-delete-burst.js
|
|
105972
106015
|
import * as fs44 from "fs";
|
|
105973
106016
|
import * as path38 from "path";
|
|
105974
106017
|
var SCATTERED_DELETE_MIN_ABS = 20;
|
|
@@ -106034,7 +106077,7 @@ function detectScatteredDeleteBurst(candidateKeys, journal, syncRoot, uploadedHa
|
|
|
106034
106077
|
return { keys, areas: areas.size, samplePaths: keys.slice(0, SCATTERED_DELETE_SAMPLE_CAP) };
|
|
106035
106078
|
}
|
|
106036
106079
|
|
|
106037
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106080
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/unattended-delete-hold.js
|
|
106038
106081
|
var UNATTENDED_SYNC_ENV = "HQ_SYNC_UNATTENDED";
|
|
106039
106082
|
var MACHINE_ENTITY_TYPES = /* @__PURE__ */ new Set(["agent", "outpost", "company-outpost"]);
|
|
106040
106083
|
var unattendedForProcess = false;
|
|
@@ -106122,10 +106165,10 @@ function unattendedPullDeleteDecision(hold, entry) {
|
|
|
106122
106165
|
return entry.direction === "up" ? "defer" : "restore";
|
|
106123
106166
|
}
|
|
106124
106167
|
|
|
106125
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106168
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
106126
106169
|
import * as crypto16 from "crypto";
|
|
106127
106170
|
|
|
106128
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106171
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
|
|
106129
106172
|
import * as fs45 from "fs";
|
|
106130
106173
|
import * as path39 from "path";
|
|
106131
106174
|
var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
|
|
@@ -106208,7 +106251,7 @@ async function primePrivateFolderUpload(input2) {
|
|
|
106208
106251
|
}]);
|
|
106209
106252
|
}
|
|
106210
106253
|
|
|
106211
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106254
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
|
|
106212
106255
|
import * as crypto12 from "node:crypto";
|
|
106213
106256
|
import * as fs46 from "node:fs";
|
|
106214
106257
|
import * as os12 from "node:os";
|
|
@@ -106534,7 +106577,7 @@ function pruneSyncedSessionLogs(root5) {
|
|
|
106534
106577
|
}
|
|
106535
106578
|
}
|
|
106536
106579
|
|
|
106537
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106580
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
|
|
106538
106581
|
var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
|
|
106539
106582
|
var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
|
|
106540
106583
|
var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
|
|
@@ -107111,7 +107154,7 @@ var FullPassCapController = class {
|
|
|
107111
107154
|
}
|
|
107112
107155
|
};
|
|
107113
107156
|
|
|
107114
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107157
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
|
|
107115
107158
|
import * as fs47 from "fs";
|
|
107116
107159
|
import * as readline from "readline";
|
|
107117
107160
|
function conflictPromptHeadline(conflict) {
|
|
@@ -107315,7 +107358,7 @@ async function promptConflict(conflict) {
|
|
|
107315
107358
|
}
|
|
107316
107359
|
}
|
|
107317
107360
|
|
|
107318
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107361
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/reconcile-skip-reason.js
|
|
107319
107362
|
var HUMAN_UP_TO_DATE_LINE_CAP = 20;
|
|
107320
107363
|
var HUMAN_SIZE_LIMIT_LINE_CAP = 5;
|
|
107321
107364
|
function isUpToDateSkipReason(reason) {
|
|
@@ -107392,7 +107435,7 @@ function createHumanSkipLineLog() {
|
|
|
107392
107435
|
};
|
|
107393
107436
|
}
|
|
107394
107437
|
|
|
107395
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107438
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
|
|
107396
107439
|
import * as crypto13 from "node:crypto";
|
|
107397
107440
|
import * as fs48 from "node:fs";
|
|
107398
107441
|
import * as os13 from "node:os";
|
|
@@ -107786,7 +107829,7 @@ async function fetchTombstonePage(url2, token) {
|
|
|
107786
107829
|
throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
|
|
107787
107830
|
}
|
|
107788
107831
|
|
|
107789
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107832
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
|
|
107790
107833
|
import { execSync } from "child_process";
|
|
107791
107834
|
import * as fs49 from "fs";
|
|
107792
107835
|
import * as os14 from "os";
|
|
@@ -107936,11 +107979,11 @@ function hasRemoteChanged(remote, entry) {
|
|
|
107936
107979
|
return remote.lastModified.getTime() > syncedAt;
|
|
107937
107980
|
}
|
|
107938
107981
|
|
|
107939
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107982
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
107940
107983
|
import * as crypto14 from "crypto";
|
|
107941
107984
|
import * as path44 from "path";
|
|
107942
107985
|
|
|
107943
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107986
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
|
|
107944
107987
|
import { createHash as createHash26, randomUUID as randomUUID6 } from "node:crypto";
|
|
107945
107988
|
import * as fs50 from "node:fs";
|
|
107946
107989
|
import * as os15 from "node:os";
|
|
@@ -108060,7 +108103,7 @@ function readShortMachineId(hqRoot) {
|
|
|
108060
108103
|
return createHash26("sha1").update(full).digest("hex").slice(0, 6);
|
|
108061
108104
|
}
|
|
108062
108105
|
|
|
108063
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108106
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
108064
108107
|
var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
|
|
108065
108108
|
var CONFLICT_PROBE_DIR = ".hq/tmp";
|
|
108066
108109
|
function safeTimestamp(detectedAt) {
|
|
@@ -108078,7 +108121,7 @@ function buildConflictId(originalRelative, detectedAt) {
|
|
|
108078
108121
|
return `${safePath}-${safeTimestamp(detectedAt)}`;
|
|
108079
108122
|
}
|
|
108080
108123
|
|
|
108081
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108124
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
|
|
108082
108125
|
import * as crypto15 from "crypto";
|
|
108083
108126
|
import * as fs51 from "fs";
|
|
108084
108127
|
import * as path45 from "path";
|
|
@@ -108232,7 +108275,7 @@ function pruneConflictIndex(hqRoot) {
|
|
|
108232
108275
|
return result;
|
|
108233
108276
|
}
|
|
108234
108277
|
|
|
108235
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108278
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
|
|
108236
108279
|
import * as fs52 from "node:fs";
|
|
108237
108280
|
function isAppendOnlyPath(relativePath) {
|
|
108238
108281
|
const base = relativePath.split(/[\\/]/).pop() ?? "";
|
|
@@ -108304,7 +108347,7 @@ function appendIfUnchanged(file2, expected, merged) {
|
|
|
108304
108347
|
return "appended";
|
|
108305
108348
|
}
|
|
108306
108349
|
|
|
108307
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108350
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/append-log-merge.js
|
|
108308
108351
|
import { createHash as createHash27 } from "node:crypto";
|
|
108309
108352
|
import * as fs53 from "node:fs";
|
|
108310
108353
|
import * as path46 from "node:path";
|
|
@@ -108572,7 +108615,7 @@ function replaceKeepingMode(file2, expected, merged) {
|
|
|
108572
108615
|
return "appended";
|
|
108573
108616
|
}
|
|
108574
108617
|
|
|
108575
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108618
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
|
|
108576
108619
|
import * as fs54 from "node:fs";
|
|
108577
108620
|
import * as path47 from "node:path";
|
|
108578
108621
|
function isBoardJsonPath(relativePath) {
|
|
@@ -108718,7 +108761,7 @@ function replaceIfUnchanged(file2, expected, merged) {
|
|
|
108718
108761
|
return "appended";
|
|
108719
108762
|
}
|
|
108720
108763
|
|
|
108721
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108764
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
|
|
108722
108765
|
import { createHash as createHash28, randomBytes as randomBytes11 } from "node:crypto";
|
|
108723
108766
|
import * as fs55 from "node:fs";
|
|
108724
108767
|
import * as os16 from "node:os";
|
|
@@ -109042,7 +109085,7 @@ function findUploadIntent(scope, relativePath, hash3, notBeforeMs, remoteLastMod
|
|
|
109042
109085
|
return best;
|
|
109043
109086
|
}
|
|
109044
109087
|
|
|
109045
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109088
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
|
|
109046
109089
|
init_dist();
|
|
109047
109090
|
import { createHash as createHash29 } from "node:crypto";
|
|
109048
109091
|
var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
|
|
@@ -109136,7 +109179,7 @@ ${caller}`;
|
|
|
109136
109179
|
return failed ? false : value;
|
|
109137
109180
|
}
|
|
109138
109181
|
|
|
109139
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109182
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
|
|
109140
109183
|
import fs56 from "node:fs";
|
|
109141
109184
|
import path49 from "node:path";
|
|
109142
109185
|
var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
|
|
@@ -109202,7 +109245,7 @@ function entityIsFreshForCreate(body, nowMs) {
|
|
|
109202
109245
|
return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
|
|
109203
109246
|
}
|
|
109204
109247
|
|
|
109205
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109248
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
|
|
109206
109249
|
init_dist();
|
|
109207
109250
|
import { createHash as createHash30 } from "node:crypto";
|
|
109208
109251
|
var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
|
|
@@ -109276,7 +109319,7 @@ ${caller}`;
|
|
|
109276
109319
|
return failed ? false : value;
|
|
109277
109320
|
}
|
|
109278
109321
|
|
|
109279
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109322
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
|
|
109280
109323
|
init_dist();
|
|
109281
109324
|
import { createHash as createHash31 } from "node:crypto";
|
|
109282
109325
|
var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
|
|
@@ -109339,7 +109382,7 @@ ${caller}`;
|
|
|
109339
109382
|
return failed ? false : value;
|
|
109340
109383
|
}
|
|
109341
109384
|
|
|
109342
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109385
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
|
|
109343
109386
|
import * as path50 from "node:path";
|
|
109344
109387
|
var MAX_DIAGNOSTIC_LENGTH = 1024;
|
|
109345
109388
|
function sanitizeDiagnostic(value) {
|
|
@@ -109472,7 +109515,7 @@ function pushFailureTelemetryLabel(value) {
|
|
|
109472
109515
|
return safe.slice(0, 128) || "unknown";
|
|
109473
109516
|
}
|
|
109474
109517
|
|
|
109475
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109518
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
|
|
109476
109519
|
import * as fs57 from "fs";
|
|
109477
109520
|
function toPortableSymlinkTarget(target, platform3 = process.platform) {
|
|
109478
109521
|
return platform3 === "win32" ? target.replaceAll("\\", "/") : target;
|
|
@@ -109491,14 +109534,14 @@ function readlinkOrNull(linkPath, readlink = (path82) => fs57.readlinkSync(path8
|
|
|
109491
109534
|
}
|
|
109492
109535
|
}
|
|
109493
109536
|
|
|
109494
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109537
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
|
|
109495
109538
|
function checkpointReconcileApply(checkpoint, paths) {
|
|
109496
109539
|
if (!checkpoint)
|
|
109497
109540
|
return;
|
|
109498
109541
|
checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path82) => ({ path: path82, durable: true })));
|
|
109499
109542
|
}
|
|
109500
109543
|
|
|
109501
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109544
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
|
|
109502
109545
|
init_dist();
|
|
109503
109546
|
import { createHash as createHash32 } from "node:crypto";
|
|
109504
109547
|
var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
|
|
@@ -109643,7 +109686,7 @@ function warnFlagReadFailure(write) {
|
|
|
109643
109686
|
`)))(line);
|
|
109644
109687
|
}
|
|
109645
109688
|
|
|
109646
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109689
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
109647
109690
|
async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
|
|
109648
109691
|
const probeKey = crypto16.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
|
|
109649
109692
|
const probePath = path51.join(os17.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
|
|
@@ -114821,12 +114864,12 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
|
|
|
114821
114864
|
return out;
|
|
114822
114865
|
}
|
|
114823
114866
|
|
|
114824
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114867
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
114825
114868
|
import * as fs65 from "fs";
|
|
114826
114869
|
import * as path58 from "path";
|
|
114827
114870
|
import { isDeepStrictEqual } from "node:util";
|
|
114828
114871
|
|
|
114829
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114872
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
|
|
114830
114873
|
import * as fs59 from "node:fs";
|
|
114831
114874
|
import * as os18 from "node:os";
|
|
114832
114875
|
import * as path52 from "node:path";
|
|
@@ -114905,7 +114948,7 @@ function* readRows(filename) {
|
|
|
114905
114948
|
}
|
|
114906
114949
|
}
|
|
114907
114950
|
|
|
114908
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114951
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
114909
114952
|
import { execFile as execFile6 } from "child_process";
|
|
114910
114953
|
import { randomBytes as randomBytes13 } from "crypto";
|
|
114911
114954
|
import * as fs61 from "fs";
|
|
@@ -114913,7 +114956,7 @@ import * as os19 from "os";
|
|
|
114913
114956
|
import * as path54 from "path";
|
|
114914
114957
|
import { promisify as promisify6 } from "util";
|
|
114915
114958
|
|
|
114916
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114959
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
|
|
114917
114960
|
import * as crypto17 from "crypto";
|
|
114918
114961
|
import * as fs60 from "fs";
|
|
114919
114962
|
import * as path53 from "path";
|
|
@@ -115099,7 +115142,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
|
|
|
115099
115142
|
return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
|
|
115100
115143
|
}
|
|
115101
115144
|
|
|
115102
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115145
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
115103
115146
|
var execFileAsync5 = promisify6(execFile6);
|
|
115104
115147
|
var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
|
|
115105
115148
|
function gitSidecarDir(hqRoot, homeDir = os19.homedir()) {
|
|
@@ -115472,10 +115515,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
|
|
|
115472
115515
|
};
|
|
115473
115516
|
}
|
|
115474
115517
|
|
|
115475
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115518
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
|
|
115476
115519
|
var SKILLS_KEY_PREFIX = ".claude/skills/";
|
|
115477
115520
|
|
|
115478
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115521
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
|
|
115479
115522
|
var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
|
|
115480
115523
|
function rawSha256FromContentHash(contentHash) {
|
|
115481
115524
|
if (contentHash === void 0)
|
|
@@ -115486,7 +115529,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
|
|
|
115486
115529
|
return rawSha256FromContentHash(contentHash) === rawHash;
|
|
115487
115530
|
}
|
|
115488
115531
|
|
|
115489
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115532
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
|
|
115490
115533
|
import { createHash as createHash35 } from "node:crypto";
|
|
115491
115534
|
var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
|
|
115492
115535
|
var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
|
|
@@ -115511,7 +115554,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
|
|
|
115511
115554
|
return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
|
|
115512
115555
|
}
|
|
115513
115556
|
|
|
115514
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115557
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
|
|
115515
115558
|
init_dist();
|
|
115516
115559
|
import { createHash as createHash36 } from "node:crypto";
|
|
115517
115560
|
function logSwallowed9(line) {
|
|
@@ -115628,7 +115671,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
|
|
|
115628
115671
|
return defaultTargetedUpsertExactListGate(config2, companyUid);
|
|
115629
115672
|
}
|
|
115630
115673
|
|
|
115631
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
|
|
115632
115675
|
var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
|
|
115633
115676
|
function coalesceDenseTargetedPullPaths(paths) {
|
|
115634
115677
|
const normalized = paths.map((path82) => path82.replace(/\\/g, "/"));
|
|
@@ -115666,15 +115709,15 @@ function coalesceDenseTargetedPullPaths(paths) {
|
|
|
115666
115709
|
return result;
|
|
115667
115710
|
}
|
|
115668
115711
|
|
|
115669
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115712
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
115670
115713
|
import { createHash as createHash38 } from "node:crypto";
|
|
115671
115714
|
|
|
115672
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115715
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
115673
115716
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
115674
115717
|
import * as fs64 from "fs";
|
|
115675
115718
|
import * as path57 from "path";
|
|
115676
115719
|
|
|
115677
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115720
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
|
|
115678
115721
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
115679
115722
|
import * as fs62 from "fs";
|
|
115680
115723
|
import * as path55 from "path";
|
|
@@ -115937,7 +115980,7 @@ function materializeLegacyKnowledgeRepos(root5) {
|
|
|
115937
115980
|
}
|
|
115938
115981
|
}
|
|
115939
115982
|
|
|
115940
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115983
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
|
|
115941
115984
|
import * as crypto18 from "node:crypto";
|
|
115942
115985
|
import * as fs63 from "node:fs";
|
|
115943
115986
|
import * as os20 from "node:os";
|
|
@@ -116881,7 +116924,7 @@ function captureSessionLogs(root5, options = {}) {
|
|
|
116881
116924
|
}
|
|
116882
116925
|
}
|
|
116883
116926
|
|
|
116884
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116927
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
116885
116928
|
function isDir2(p3) {
|
|
116886
116929
|
try {
|
|
116887
116930
|
return fs64.statSync(p3).isDirectory();
|
|
@@ -117558,7 +117601,7 @@ function emitReindexTelemetry(opts, result, lockResult) {
|
|
|
117558
117601
|
}, { claims: opts.telemetryClaims });
|
|
117559
117602
|
}
|
|
117560
117603
|
|
|
117561
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117604
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
117562
117605
|
async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
|
|
117563
117606
|
work.rowsSinceYield += 1;
|
|
117564
117607
|
if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
|
|
@@ -121722,10 +121765,10 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
121722
121765
|
}
|
|
121723
121766
|
}
|
|
121724
121767
|
|
|
121725
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121768
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
121726
121769
|
import { createRequire } from "node:module";
|
|
121727
121770
|
|
|
121728
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121771
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-native-copy.js
|
|
121729
121772
|
var POSIX_CHARACTER_CLASSES = {
|
|
121730
121773
|
alnum: "A-Za-z0-9",
|
|
121731
121774
|
alpha: "A-Za-z",
|
|
@@ -121859,7 +121902,7 @@ function compileRsyncPattern(rawPattern) {
|
|
|
121859
121902
|
};
|
|
121860
121903
|
}
|
|
121861
121904
|
|
|
121862
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121905
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
121863
121906
|
var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
|
|
121864
121907
|
var require2 = createRequire(import.meta.url);
|
|
121865
121908
|
var GIT_BATCH_MAX_BUFFER = 256 * 1024 * 1024;
|
|
@@ -121907,7 +121950,7 @@ var INSTALL_EXCLUDED_MATCHERS = INSTALL_EXCLUDED_PATTERNS.map(compileRsyncPatter
|
|
|
121907
121950
|
var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
|
|
121908
121951
|
var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
|
|
121909
121952
|
|
|
121910
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121953
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
|
|
121911
121954
|
var SOURCE_CHANNELS = Object.freeze([
|
|
121912
121955
|
"meeting",
|
|
121913
121956
|
"email",
|
|
@@ -121916,7 +121959,7 @@ var SOURCE_CHANNELS = Object.freeze([
|
|
|
121916
121959
|
"notion"
|
|
121917
121960
|
]);
|
|
121918
121961
|
|
|
121919
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121962
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
|
|
121920
121963
|
var SIGNAL_TYPES = Object.freeze([
|
|
121921
121964
|
"action_item",
|
|
121922
121965
|
"commitment",
|
|
@@ -121926,7 +121969,7 @@ var SIGNAL_TYPES = Object.freeze([
|
|
|
121926
121969
|
"summary"
|
|
121927
121970
|
]);
|
|
121928
121971
|
|
|
121929
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121972
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
|
|
121930
121973
|
var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
|
|
121931
121974
|
var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
|
|
121932
121975
|
function parseFeatureSwitch(value) {
|
|
@@ -121995,7 +122038,7 @@ function isEventSyncLocallyDisabled(value) {
|
|
|
121995
122038
|
}
|
|
121996
122039
|
}
|
|
121997
122040
|
|
|
121998
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122041
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
|
|
121999
122042
|
var import_client_cloudwatch = __toESM(require_dist_cjs18(), 1);
|
|
122000
122043
|
var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
|
|
122001
122044
|
var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
|
|
@@ -122063,7 +122106,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
|
|
|
122063
122106
|
}
|
|
122064
122107
|
}
|
|
122065
122108
|
|
|
122066
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122109
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
|
|
122067
122110
|
var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
|
|
122068
122111
|
var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
|
|
122069
122112
|
var DEFAULT_WAIT_TIME_SECONDS = 20;
|
|
@@ -123596,10 +123639,10 @@ function defaultSleep(ms, signal) {
|
|
|
123596
123639
|
});
|
|
123597
123640
|
}
|
|
123598
123641
|
|
|
123599
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123642
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
|
|
123600
123643
|
var import_pino = __toESM(require_pino(), 1);
|
|
123601
123644
|
|
|
123602
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123645
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
|
|
123603
123646
|
function assertCanonicalPath(path82) {
|
|
123604
123647
|
if (path82.length === 0 || path82.startsWith("/") || path82.endsWith("/") || path82.includes("\\") || path82.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
|
|
123605
123648
|
throw new Error(`path lease requires a canonical relative path: ${path82}`);
|
|
@@ -123662,7 +123705,7 @@ var PathLease = class {
|
|
|
123662
123705
|
}
|
|
123663
123706
|
};
|
|
123664
123707
|
|
|
123665
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123708
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
|
|
123666
123709
|
var MAX_REALTIME_PULL_YIELDS = 3;
|
|
123667
123710
|
var MAX_REALTIME_PULL_YIELD_MS = 6e4;
|
|
123668
123711
|
var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
|
|
@@ -124169,7 +124212,7 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
124169
124212
|
}
|
|
124170
124213
|
};
|
|
124171
124214
|
|
|
124172
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124215
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
|
|
124173
124216
|
var InlineSyncWorkerAdapter = class {
|
|
124174
124217
|
handler;
|
|
124175
124218
|
constructor(handler) {
|
|
@@ -124180,11 +124223,11 @@ var InlineSyncWorkerAdapter = class {
|
|
|
124180
124223
|
}
|
|
124181
124224
|
};
|
|
124182
124225
|
|
|
124183
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124226
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124184
124227
|
import * as fs67 from "node:fs";
|
|
124185
124228
|
import * as path61 from "node:path";
|
|
124186
124229
|
|
|
124187
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124230
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
|
|
124188
124231
|
import * as path59 from "node:path";
|
|
124189
124232
|
var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
124190
124233
|
function isSafeCompanySlug(companiesDir, slug) {
|
|
@@ -124201,7 +124244,7 @@ function isSafeCompanySlug(companiesDir, slug) {
|
|
|
124201
124244
|
return path59.dirname(companyDir) === resolvedCompaniesDir;
|
|
124202
124245
|
}
|
|
124203
124246
|
|
|
124204
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124247
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
|
|
124205
124248
|
var SYNC_MANIFEST_CONTRACT_VERSION = 1;
|
|
124206
124249
|
var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
|
|
124207
124250
|
var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
|
|
@@ -124370,7 +124413,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
|
|
|
124370
124413
|
}
|
|
124371
124414
|
};
|
|
124372
124415
|
|
|
124373
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124416
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
|
|
124374
124417
|
import * as crypto19 from "node:crypto";
|
|
124375
124418
|
import * as fs66 from "node:fs";
|
|
124376
124419
|
import * as path60 from "node:path";
|
|
@@ -124545,7 +124588,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
|
|
|
124545
124588
|
}
|
|
124546
124589
|
var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
|
|
124547
124590
|
|
|
124548
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124591
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124549
124592
|
function logSwallowed11(line) {
|
|
124550
124593
|
process.stderr.write(line);
|
|
124551
124594
|
}
|
|
@@ -125154,10 +125197,10 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
|
|
|
125154
125197
|
return upload;
|
|
125155
125198
|
}
|
|
125156
125199
|
|
|
125157
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125200
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125158
125201
|
import * as fs69 from "node:fs";
|
|
125159
125202
|
|
|
125160
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125203
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/leg-skip-store.js
|
|
125161
125204
|
import * as fs68 from "node:fs";
|
|
125162
125205
|
import * as path62 from "node:path";
|
|
125163
125206
|
function logSwallowed12(line) {
|
|
@@ -125213,7 +125256,7 @@ function clearManifestLegSkip(stateDir5, scopeKey) {
|
|
|
125213
125256
|
}
|
|
125214
125257
|
}
|
|
125215
125258
|
|
|
125216
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125259
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125217
125260
|
var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
|
|
125218
125261
|
var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
125219
125262
|
var DEFAULT_MANIFEST_UPLOAD_WALL_MS = 6e4;
|
|
@@ -125782,7 +125825,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
125782
125825
|
};
|
|
125783
125826
|
}
|
|
125784
125827
|
|
|
125785
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125828
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
|
|
125786
125829
|
import * as fs70 from "node:fs";
|
|
125787
125830
|
import * as path63 from "node:path";
|
|
125788
125831
|
import { createHash as createHash40, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -126030,7 +126073,7 @@ function validUnresolvedCompanyRecord(value) {
|
|
|
126030
126073
|
return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
|
|
126031
126074
|
}
|
|
126032
126075
|
|
|
126033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126076
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/version.js
|
|
126034
126077
|
import { readFileSync as readFileSync41 } from "node:fs";
|
|
126035
126078
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
126036
126079
|
import path64 from "node:path";
|
|
@@ -126038,7 +126081,7 @@ var here = path64.dirname(fileURLToPath4(import.meta.url));
|
|
|
126038
126081
|
var pkg = JSON.parse(readFileSync41(path64.resolve(here, "..", "package.json"), "utf-8"));
|
|
126039
126082
|
var HQ_CLOUD_VERSION = pkg.version;
|
|
126040
126083
|
|
|
126041
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126084
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
|
|
126042
126085
|
import { promises as fs71 } from "node:fs";
|
|
126043
126086
|
import * as os21 from "node:os";
|
|
126044
126087
|
import * as path65 from "node:path";
|
|
@@ -126412,7 +126455,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
|
|
|
126412
126455
|
return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
|
|
126413
126456
|
}
|
|
126414
126457
|
|
|
126415
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126458
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
|
|
126416
126459
|
import * as fs72 from "fs";
|
|
126417
126460
|
import * as path66 from "path";
|
|
126418
126461
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -127062,7 +127105,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
|
|
|
127062
127105
|
return false;
|
|
127063
127106
|
}
|
|
127064
127107
|
|
|
127065
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127108
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
|
|
127066
127109
|
import fs73 from "node:fs";
|
|
127067
127110
|
import path67 from "node:path";
|
|
127068
127111
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
@@ -127166,7 +127209,7 @@ nonce=${nonce}
|
|
|
127166
127209
|
};
|
|
127167
127210
|
}
|
|
127168
127211
|
|
|
127169
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127212
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/telemetry-admission.js
|
|
127170
127213
|
var DEFAULT_INTERVAL_MS = 10 * 60 * 1e3;
|
|
127171
127214
|
var MAX_INTERVAL_SEC = 24 * 60 * 60;
|
|
127172
127215
|
var STALE_IN_FLIGHT_TIMEOUT_MULTIPLE = 5;
|
|
@@ -127243,7 +127286,7 @@ function recordTelemetryRunStarted(store, nowMs, run) {
|
|
|
127243
127286
|
store.inFlight = tracked;
|
|
127244
127287
|
}
|
|
127245
127288
|
|
|
127246
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127289
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
|
|
127247
127290
|
import { Worker } from "node:worker_threads";
|
|
127248
127291
|
function reindexAsync(options) {
|
|
127249
127292
|
if (import.meta.url.endsWith(".ts"))
|
|
@@ -127302,7 +127345,7 @@ function reindexAsync(options) {
|
|
|
127302
127345
|
});
|
|
127303
127346
|
}
|
|
127304
127347
|
|
|
127305
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127348
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
|
|
127306
127349
|
import * as crypto20 from "crypto";
|
|
127307
127350
|
import * as fs74 from "fs";
|
|
127308
127351
|
import * as os22 from "os";
|
|
@@ -127462,7 +127505,7 @@ function materializeCodexAgents(opts) {
|
|
|
127462
127505
|
}
|
|
127463
127506
|
}
|
|
127464
127507
|
|
|
127465
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127508
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
|
|
127466
127509
|
var POST_SYNC_FLAG_KEYS = {
|
|
127467
127510
|
qmdReindex: "sync.qmd-reindex",
|
|
127468
127511
|
conflictPrune: "sync.conflict-prune",
|
|
@@ -127482,12 +127525,12 @@ function createPostSyncFlagEvaluator(options = {}) {
|
|
|
127482
127525
|
};
|
|
127483
127526
|
}
|
|
127484
127527
|
|
|
127485
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127528
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127486
127529
|
import { createHash as createHash41, randomUUID as randomUUID9 } from "node:crypto";
|
|
127487
127530
|
import * as fs76 from "node:fs/promises";
|
|
127488
127531
|
import * as path70 from "node:path";
|
|
127489
127532
|
|
|
127490
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127533
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
|
|
127491
127534
|
import * as fs75 from "node:fs";
|
|
127492
127535
|
import * as os23 from "node:os";
|
|
127493
127536
|
import * as path69 from "node:path";
|
|
@@ -127537,7 +127580,7 @@ function readDesktopInstallationId(options) {
|
|
|
127537
127580
|
return void 0;
|
|
127538
127581
|
}
|
|
127539
127582
|
|
|
127540
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127583
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127541
127584
|
var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
|
|
127542
127585
|
var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
|
|
127543
127586
|
var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
|
|
@@ -128230,14 +128273,14 @@ function manifestLegFailureKinds(input2) {
|
|
|
128230
128273
|
return kinds;
|
|
128231
128274
|
}
|
|
128232
128275
|
|
|
128233
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128276
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
|
|
128234
128277
|
var PARTIAL_SYNC_EXIT = 2;
|
|
128235
128278
|
var UNRESOLVED_COMPANY_EXIT = 19;
|
|
128236
128279
|
var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
|
|
128237
128280
|
var WATCH_OWNER_LEASE_LOST_EXIT = 21;
|
|
128238
128281
|
var PREFLIGHT_HALT_EXIT = 22;
|
|
128239
128282
|
|
|
128240
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128283
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
|
|
128241
128284
|
import * as crypto21 from "node:crypto";
|
|
128242
128285
|
import * as fs77 from "node:fs";
|
|
128243
128286
|
import * as path71 from "node:path";
|
|
@@ -128286,7 +128329,7 @@ function hashNormalizedKey(key) {
|
|
|
128286
128329
|
return crypto21.createHash("sha256").update(normalized, "utf8").digest("hex");
|
|
128287
128330
|
}
|
|
128288
128331
|
|
|
128289
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128332
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
|
|
128290
128333
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
128291
128334
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
128292
128335
|
import * as fs78 from "node:fs";
|
|
@@ -128657,7 +128700,7 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
|
|
|
128657
128700
|
};
|
|
128658
128701
|
}
|
|
128659
128702
|
|
|
128660
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128703
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
|
|
128661
128704
|
var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
|
|
128662
128705
|
function processExists(pid) {
|
|
128663
128706
|
try {
|
|
@@ -128708,7 +128751,7 @@ function startWatchParentExitMonitor(options) {
|
|
|
128708
128751
|
};
|
|
128709
128752
|
}
|
|
128710
128753
|
|
|
128711
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128754
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
|
|
128712
128755
|
var ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
128713
128756
|
"error",
|
|
128714
128757
|
"auth-error"
|
|
@@ -128754,7 +128797,7 @@ function emitUncaughtRunnerError(err, streams) {
|
|
|
128754
128797
|
}
|
|
128755
128798
|
}
|
|
128756
128799
|
|
|
128757
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128800
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/runner-output-guard.js
|
|
128758
128801
|
var BROKEN_OUTPUT_CODES = /* @__PURE__ */ new Set([
|
|
128759
128802
|
"EPIPE",
|
|
128760
128803
|
"ECONNRESET",
|
|
@@ -128818,7 +128861,7 @@ function installRunnerOutputGuard(streams = [process.stdout, process.stderr], re
|
|
|
128818
128861
|
};
|
|
128819
128862
|
}
|
|
128820
128863
|
|
|
128821
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128864
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
|
|
128822
128865
|
import { format as format2 } from "node:util";
|
|
128823
128866
|
function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
|
|
128824
128867
|
const writeDiagnostic = (...args) => {
|
|
@@ -128834,7 +128877,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
|
|
|
128834
128877
|
return startRunner();
|
|
128835
128878
|
}
|
|
128836
128879
|
|
|
128837
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128880
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
|
|
128838
128881
|
function verifiedMemberCompanyUids(options) {
|
|
128839
128882
|
if (!options.companies)
|
|
128840
128883
|
return void 0;
|
|
@@ -129100,7 +129143,7 @@ function emitFanoutPlan(emit, plan) {
|
|
|
129100
129143
|
emit({ type: "fanout-plan", companies: plan });
|
|
129101
129144
|
}
|
|
129102
129145
|
|
|
129103
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129146
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
|
|
129104
129147
|
import * as fs79 from "node:fs";
|
|
129105
129148
|
import * as path73 from "node:path";
|
|
129106
129149
|
function buildPassRequestArgv(passArgv, company) {
|
|
@@ -129351,7 +129394,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
|
|
|
129351
129394
|
}
|
|
129352
129395
|
};
|
|
129353
129396
|
|
|
129354
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129397
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
|
|
129355
129398
|
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
129356
129399
|
import * as fs80 from "node:fs";
|
|
129357
129400
|
import * as path74 from "node:path";
|
|
@@ -129443,7 +129486,7 @@ function seedActiveCompany(options) {
|
|
|
129443
129486
|
return { written: true, activeCompany };
|
|
129444
129487
|
}
|
|
129445
129488
|
|
|
129446
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129489
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
|
|
129447
129490
|
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
129448
129491
|
import * as fs81 from "node:fs";
|
|
129449
129492
|
import * as path75 from "node:path";
|
|
@@ -129674,17 +129717,17 @@ async function reconcileCompanyManifest(options) {
|
|
|
129674
129717
|
return reconcileManifest(options.hqRoot, resolvedTargets);
|
|
129675
129718
|
}
|
|
129676
129719
|
|
|
129677
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129720
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
129678
129721
|
import * as fs82 from "fs";
|
|
129679
129722
|
import * as path76 from "path";
|
|
129680
129723
|
import { createHash as createHash43, randomUUID as randomUUID13 } from "node:crypto";
|
|
129681
129724
|
|
|
129682
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129725
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
|
|
129683
129726
|
function allowsLegacyNetwork(decision) {
|
|
129684
129727
|
return decision.network === "allow-legacy";
|
|
129685
129728
|
}
|
|
129686
129729
|
|
|
129687
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129730
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/lib/sync-leg-error-summary.js
|
|
129688
129731
|
import os24 from "node:os";
|
|
129689
129732
|
var ERRNO_NAMES = new Set(Object.keys(os24.constants.errno));
|
|
129690
129733
|
var EXTRA_CODES = /* @__PURE__ */ new Set([
|
|
@@ -129889,7 +129932,7 @@ function buildSyncLegErrorSummary(input2) {
|
|
|
129889
129932
|
return segments.join(":").slice(0, 128);
|
|
129890
129933
|
}
|
|
129891
129934
|
|
|
129892
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129935
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
|
|
129893
129936
|
function createCompanyState(company) {
|
|
129894
129937
|
return {
|
|
129895
129938
|
company,
|
|
@@ -129951,7 +129994,7 @@ function rollupAllComplete(plan, stateByCompany) {
|
|
|
129951
129994
|
};
|
|
129952
129995
|
}
|
|
129953
129996
|
|
|
129954
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129997
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
129955
129998
|
var PRUNED_SAMPLE_PATHS = 5;
|
|
129956
129999
|
var SIZE_LIMIT_SKIP_EVENT_INTERVAL_MS = PLAN_LIMIT_PAUSE_RETRY_MS;
|
|
129957
130000
|
var SIZE_LIMIT_SKIP_MEMORY_MAX = 1e4;
|
|
@@ -131160,7 +131203,7 @@ function normalizePullChangedPaths(target, changedPaths) {
|
|
|
131160
131203
|
});
|
|
131161
131204
|
}
|
|
131162
131205
|
|
|
131163
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131206
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
|
|
131164
131207
|
async function emitTelemetry(options) {
|
|
131165
131208
|
const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
|
|
131166
131209
|
return telemetryFn().catch((err) => {
|
|
@@ -131172,7 +131215,7 @@ async function emitTelemetry(options) {
|
|
|
131172
131215
|
});
|
|
131173
131216
|
}
|
|
131174
131217
|
|
|
131175
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131218
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
131176
131219
|
import * as os25 from "os";
|
|
131177
131220
|
import * as path80 from "path";
|
|
131178
131221
|
import * as fs86 from "fs";
|
|
@@ -131180,7 +131223,7 @@ import { createHash as createHash44 } from "node:crypto";
|
|
|
131180
131223
|
import * as v8 from "node:v8";
|
|
131181
131224
|
import { performance as performance3 } from "node:perf_hooks";
|
|
131182
131225
|
|
|
131183
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131226
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
|
|
131184
131227
|
var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
|
|
131185
131228
|
var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
|
|
131186
131229
|
var RoutePushFailureBackoff = class {
|
|
@@ -131207,12 +131250,12 @@ var systemPushRetryScheduler = {
|
|
|
131207
131250
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
131208
131251
|
};
|
|
131209
131252
|
|
|
131210
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131253
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131211
131254
|
var import_client_sqs = __toESM(require_dist_cjs20(), 1);
|
|
131212
131255
|
import { readFileSync as readFileSync48 } from "node:fs";
|
|
131213
131256
|
import { join as join66 } from "node:path";
|
|
131214
131257
|
|
|
131215
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131258
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
|
|
131216
131259
|
import * as fs83 from "node:fs";
|
|
131217
131260
|
import * as path77 from "node:path";
|
|
131218
131261
|
function logSwallowed14(line) {
|
|
@@ -131278,7 +131321,7 @@ function isInboundEventPlaceable(hqRoot, event) {
|
|
|
131278
131321
|
}
|
|
131279
131322
|
}
|
|
131280
131323
|
|
|
131281
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131324
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
|
|
131282
131325
|
import fs84 from "node:fs";
|
|
131283
131326
|
import path78 from "node:path";
|
|
131284
131327
|
function journalCoordinatesForPushEvent(relativePath) {
|
|
@@ -131320,7 +131363,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
|
|
|
131320
131363
|
return unchanged;
|
|
131321
131364
|
}
|
|
131322
131365
|
|
|
131323
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131366
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131324
131367
|
function resolveEventSync(override) {
|
|
131325
131368
|
return !isEventSyncLocallyDisabled(override);
|
|
131326
131369
|
}
|
|
@@ -132032,7 +132075,7 @@ async function startEventSync(opts) {
|
|
|
132032
132075
|
};
|
|
132033
132076
|
}
|
|
132034
132077
|
|
|
132035
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132078
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
|
|
132036
132079
|
var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
|
|
132037
132080
|
var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
|
|
132038
132081
|
var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
|
|
@@ -132185,7 +132228,7 @@ function describe3(error62) {
|
|
|
132185
132228
|
return error62 instanceof Error ? error62.message : String(error62);
|
|
132186
132229
|
}
|
|
132187
132230
|
|
|
132188
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132231
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
|
|
132189
132232
|
import * as perfHooks from "node:perf_hooks";
|
|
132190
132233
|
var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
|
|
132191
132234
|
var HeapCensus = class {
|
|
@@ -133172,7 +133215,7 @@ function nodeHeapReaders(v82) {
|
|
|
133172
133215
|
};
|
|
133173
133216
|
}
|
|
133174
133217
|
|
|
133175
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133218
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
|
|
133176
133219
|
var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
|
|
133177
133220
|
var MAX_CLOCK_DRIFT_MS = 5e3;
|
|
133178
133221
|
var MAX_SCHEDULED_FULL_SKIP_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -133230,7 +133273,7 @@ function canSkipScheduledFullReconcile(proof) {
|
|
|
133230
133273
|
return true;
|
|
133231
133274
|
}
|
|
133232
133275
|
|
|
133233
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133276
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/legacy-sync-wake.js
|
|
133234
133277
|
import * as fs85 from "node:fs";
|
|
133235
133278
|
import * as path79 from "node:path";
|
|
133236
133279
|
var MAX_WAKE_BYTES = 1024 * 1024;
|
|
@@ -133392,7 +133435,7 @@ var LegacySyncWakeBridge = class {
|
|
|
133392
133435
|
}
|
|
133393
133436
|
};
|
|
133394
133437
|
|
|
133395
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133438
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
133396
133439
|
var FULL_RECONCILE_EVERY_TICKS = 10;
|
|
133397
133440
|
var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
|
|
133398
133441
|
var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
|
|
@@ -138886,7 +138929,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
138886
138929
|
}
|
|
138887
138930
|
}
|
|
138888
138931
|
|
|
138889
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
138932
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
|
|
138890
138933
|
var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
|
|
138891
138934
|
var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
|
|
138892
138935
|
var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
|
|
@@ -138959,7 +139002,7 @@ async function waitForValidAuth(opts) {
|
|
|
138959
139002
|
return "stopped";
|
|
138960
139003
|
}
|
|
138961
139004
|
|
|
138962
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139005
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.114/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
138963
139006
|
var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
|
|
138964
139007
|
var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
|
|
138965
139008
|
var DEFAULT_COGNITO = {
|