@indigoai-us/hq-cli 5.345.171 → 5.345.173
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 +34 -0
- package/dist/command-catalog.generated.d.ts +74 -2
- package/dist/command-catalog.generated.js +88 -2
- package/dist/command-registration-plan.d.ts +7 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/bot.js +46 -8
- package/dist/commands/cloud.js +9 -5
- package/dist/commands/daemon.js +16 -1
- package/dist/commands/files.d.ts +1 -0
- package/dist/commands/files.js +22 -4
- package/dist/commands/sync-core.d.ts +22 -0
- package/dist/commands/sync-core.js +126 -0
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +278 -224
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/bot/fleet-local.d.ts +16 -1
- package/dist/lib/bot/fleet-local.js +99 -48
- package/dist/lib/bot/fleet-python.d.ts +47 -0
- package/dist/lib/bot/fleet-python.js +218 -0
- package/dist/lib/bot/index.d.ts +1 -0
- package/dist/lib/bot/index.js +1 -0
- package/dist/lib/bot/prompt.d.ts +6 -1
- package/dist/lib/bot/prompt.js +8 -3
- package/dist/lib/daemon/catalog.d.ts +12 -4
- package/dist/lib/daemon/catalog.js +70 -27
- package/dist/lib/daemon/config.d.ts +0 -7
- package/dist/lib/daemon/config.js +0 -32
- package/dist/lib/daemon/run.d.ts +5 -1
- package/dist/lib/daemon/run.js +48 -11
- package/dist/lib/daemon/supervisor.js +3 -1
- package/dist/lib/sync-core/engine-home.d.ts +45 -0
- package/dist/lib/sync-core/engine-home.js +194 -0
- package/dist/lib/sync-core/flag.d.ts +17 -0
- package/dist/lib/sync-core/flag.js +47 -0
- package/dist/lib/sync-core/reconcile.d.ts +31 -0
- package/dist/lib/sync-core/reconcile.js +217 -0
- package/dist/lib/sync-core/release.d.ts +32 -0
- package/dist/lib/sync-core/release.js +142 -0
- package/dist/lib/sync-core/rollout-state.d.ts +28 -0
- package/dist/lib/sync-core/rollout-state.js +115 -0
- package/dist/lib/sync-core/skip.d.ts +7 -0
- package/dist/lib/sync-core/skip.js +30 -0
- package/dist/lib/vault-sync-switches.d.ts +5 -0
- package/dist/lib/vault-sync-switches.js +43 -0
- package/dist/utils/remote-list-not-converging.d.ts +21 -0
- package/dist/utils/remote-list-not-converging.js +40 -0
- package/package.json +8 -8
- package/dist/lib/daemon/sync-core-canary.d.ts +0 -12
- package/dist/lib/daemon/sync-core-canary.js +0 -61
|
@@ -79366,12 +79366,12 @@ var require_dist_cjs42 = __commonJS({
|
|
|
79366
79366
|
}
|
|
79367
79367
|
});
|
|
79368
79368
|
|
|
79369
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79369
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
79370
79370
|
import * as crypto2 from "crypto";
|
|
79371
79371
|
import * as fs2 from "fs";
|
|
79372
79372
|
import * as path from "path";
|
|
79373
79373
|
|
|
79374
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79374
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/fsync-compat.js
|
|
79375
79375
|
import * as fs from "node:fs";
|
|
79376
79376
|
var UNSUPPORTED_DIRECTORY_FSYNC_CODES = /* @__PURE__ */ new Set(["EINVAL", "ENOTSUP", "EOPNOTSUPP", "EPERM"]);
|
|
79377
79377
|
var loggedSkips = /* @__PURE__ */ new Set();
|
|
@@ -79395,7 +79395,7 @@ function fsyncWithCompatibility(fd, options) {
|
|
|
79395
79395
|
}
|
|
79396
79396
|
}
|
|
79397
79397
|
|
|
79398
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79398
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
79399
79399
|
var RECORD_FORMAT = "hq-push-identity@2";
|
|
79400
79400
|
var MACHINE_FORMAT = "hq-push-identity-machine@1";
|
|
79401
79401
|
var PERSON_FORMAT = "hq-push-identity-person@1";
|
|
@@ -79601,14 +79601,14 @@ function writeJsonAtomic(filePath, value) {
|
|
|
79601
79601
|
}
|
|
79602
79602
|
}
|
|
79603
79603
|
|
|
79604
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79604
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
79605
79605
|
import * as fs28 from "node:fs";
|
|
79606
79606
|
import * as os6 from "node:os";
|
|
79607
79607
|
import * as path24 from "node:path";
|
|
79608
79608
|
import { Session } from "node:inspector";
|
|
79609
79609
|
import { fileURLToPath as fileURLToPath3, pathToFileURL } from "node:url";
|
|
79610
79610
|
|
|
79611
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79611
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
79612
79612
|
import * as fs27 from "fs";
|
|
79613
79613
|
import { createHash as createHash19 } from "node:crypto";
|
|
79614
79614
|
import { readFile as readFile8, stat as stat4 } from "node:fs/promises";
|
|
@@ -81304,7 +81304,7 @@ function watch(paths, options = {}) {
|
|
|
81304
81304
|
return watcher;
|
|
81305
81305
|
}
|
|
81306
81306
|
|
|
81307
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81307
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cloud-placeholder.js
|
|
81308
81308
|
import * as fs3 from "fs";
|
|
81309
81309
|
import * as path2 from "path";
|
|
81310
81310
|
var CLOUD_PLACEHOLDER_SUFFIX = ".hqcloud";
|
|
@@ -81742,18 +81742,18 @@ function writeCloudPlaceholder(placeholderPath, placeholder) {
|
|
|
81742
81742
|
}
|
|
81743
81743
|
}
|
|
81744
81744
|
|
|
81745
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81745
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
81746
81746
|
var import_ignore = __toESM(require_ignore(), 1);
|
|
81747
81747
|
import * as fs4 from "fs";
|
|
81748
81748
|
import * as path3 from "path";
|
|
81749
81749
|
|
|
81750
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81750
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/restore-staging.js
|
|
81751
81751
|
var RESTORE_STAGING_SUFFIX = /\.hq-restore-(?:\d+(?:-\d+)?|probe-\d+-[0-9a-z]+)$/i;
|
|
81752
81752
|
function isRestoreStagingPath(relativePath) {
|
|
81753
81753
|
return relativePath.split(/[\\/]/).some((segment) => RESTORE_STAGING_SUFFIX.test(segment));
|
|
81754
81754
|
}
|
|
81755
81755
|
|
|
81756
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81756
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/best-effort-error.js
|
|
81757
81757
|
var EXPECTED_ABSENCE_CODES = /* @__PURE__ */ new Set([
|
|
81758
81758
|
"ENOENT",
|
|
81759
81759
|
"NoSuchKey",
|
|
@@ -81795,7 +81795,7 @@ function noteSwallowedError(log, event, error64, options = {}) {
|
|
|
81795
81795
|
`);
|
|
81796
81796
|
}
|
|
81797
81797
|
|
|
81798
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81798
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
81799
81799
|
function logSwallowed(line) {
|
|
81800
81800
|
process.stderr.write(line);
|
|
81801
81801
|
}
|
|
@@ -82508,7 +82508,7 @@ function isWithinSizeLimit(filePath, maxBytes = SYNC_MAX_FILE_BYTES) {
|
|
|
82508
82508
|
}
|
|
82509
82509
|
}
|
|
82510
82510
|
|
|
82511
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82511
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/watch-roots.js
|
|
82512
82512
|
import * as fs5 from "fs";
|
|
82513
82513
|
import * as path4 from "path";
|
|
82514
82514
|
function defaultListChildDirs(dir, onSymlinkEntry) {
|
|
@@ -82582,7 +82582,7 @@ function isCoveredByRecursiveRoot(absolutePath, recursiveRoots) {
|
|
|
82582
82582
|
}
|
|
82583
82583
|
}
|
|
82584
82584
|
|
|
82585
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82585
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/watch-coverage.js
|
|
82586
82586
|
import * as fs6 from "fs";
|
|
82587
82587
|
function directoryIdentityAt(absolutePath) {
|
|
82588
82588
|
try {
|
|
@@ -82619,7 +82619,7 @@ function probeScopedWatchCoverage(input2) {
|
|
|
82619
82619
|
return { ok: true };
|
|
82620
82620
|
}
|
|
82621
82621
|
|
|
82622
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82622
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/local-path-codec.js
|
|
82623
82623
|
import * as path5 from "path";
|
|
82624
82624
|
var WIN32_RESERVED_CHARS = /[<>:"/\\|?*]/;
|
|
82625
82625
|
var WIN32_DEVICE_NAME = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i;
|
|
@@ -82677,7 +82677,7 @@ function canonicalVaultKeySpelling(key) {
|
|
|
82677
82677
|
return segments.join("/");
|
|
82678
82678
|
}
|
|
82679
82679
|
|
|
82680
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82680
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/personal-vault-exclusions.js
|
|
82681
82681
|
import * as path6 from "path";
|
|
82682
82682
|
import * as fs7 from "fs";
|
|
82683
82683
|
function hasSegment(relPath, segment) {
|
|
@@ -82974,7 +82974,7 @@ function wrapFilterWithPersonalVaultDefaults(underlying, syncRoot, onExcluded, o
|
|
|
82974
82974
|
};
|
|
82975
82975
|
}
|
|
82976
82976
|
|
|
82977
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82977
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/state-store.js
|
|
82978
82978
|
import * as crypto3 from "node:crypto";
|
|
82979
82979
|
import * as fs8 from "node:fs";
|
|
82980
82980
|
import * as path7 from "node:path";
|
|
@@ -86030,11 +86030,11 @@ function crc32c(bytes) {
|
|
|
86030
86030
|
return (crc ^ 4294967295) >>> 0;
|
|
86031
86031
|
}
|
|
86032
86032
|
|
|
86033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86033
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
86034
86034
|
import * as fs14 from "fs";
|
|
86035
86035
|
import * as path12 from "path";
|
|
86036
86036
|
|
|
86037
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86037
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
86038
86038
|
import * as fs13 from "fs";
|
|
86039
86039
|
import * as os2 from "os";
|
|
86040
86040
|
import * as path11 from "path";
|
|
@@ -86042,7 +86042,7 @@ import * as crypto8 from "crypto";
|
|
|
86042
86042
|
import { spawn } from "node:child_process";
|
|
86043
86043
|
import { fileURLToPath } from "node:url";
|
|
86044
86044
|
|
|
86045
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86045
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
|
|
86046
86046
|
var JOURNAL_DECODE_WINDOW = 1e4;
|
|
86047
86047
|
var rowsInFlight = 0;
|
|
86048
86048
|
var peakRowsInFlight = 0;
|
|
@@ -86101,7 +86101,7 @@ function journalFingerprintMatchesStat(fingerprint, lstat3) {
|
|
|
86101
86101
|
return lstat3.size === fingerprint.size && lstat3.mtimeMs === fingerprint.mtimeMs && lstat3.ctimeMs === fingerprint.ctimeMs;
|
|
86102
86102
|
}
|
|
86103
86103
|
|
|
86104
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86104
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
|
|
86105
86105
|
var HASH_BYTES = 32;
|
|
86106
86106
|
var ETAG_BYTES = 16;
|
|
86107
86107
|
var INITIAL_ROW_CAPACITY = 16;
|
|
@@ -87611,7 +87611,7 @@ function readOptionalBoolean(entry, key, flags, presentBit, valueBit) {
|
|
|
87611
87611
|
entry[key] = Boolean(flags & valueBit);
|
|
87612
87612
|
}
|
|
87613
87613
|
|
|
87614
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87614
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
|
|
87615
87615
|
var rowsByRecordProxy = /* @__PURE__ */ new WeakMap();
|
|
87616
87616
|
function journalRecordRows(files) {
|
|
87617
87617
|
return rowsByRecordProxy.get(files);
|
|
@@ -87677,13 +87677,13 @@ function createJournalRecordProxy(store) {
|
|
|
87677
87677
|
return proxy;
|
|
87678
87678
|
}
|
|
87679
87679
|
|
|
87680
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87680
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
87681
87681
|
import { StringDecoder } from "node:string_decoder";
|
|
87682
87682
|
|
|
87683
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87683
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
87684
87684
|
import * as crypto4 from "node:crypto";
|
|
87685
87685
|
|
|
87686
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87686
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
|
|
87687
87687
|
var packedJournalRows = /* @__PURE__ */ new WeakMap();
|
|
87688
87688
|
var sharedAreaJournalRowStores = /* @__PURE__ */ new Map();
|
|
87689
87689
|
function areaJournalRowsCacheKey(rootDir, slug) {
|
|
@@ -87706,7 +87706,7 @@ function forgetSharedAreaJournalRows(cacheKey) {
|
|
|
87706
87706
|
sharedAreaJournalRowStores.delete(cacheKey);
|
|
87707
87707
|
}
|
|
87708
87708
|
|
|
87709
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87709
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
87710
87710
|
var JOURNAL_SNAPSHOT_V4_MAGIC = SNAPSHOT_V4_MAGIC;
|
|
87711
87711
|
var SNAPSHOT_FIXED_HEADER_BYTES2 = 52;
|
|
87712
87712
|
var SECTION_ALIGNMENT_BYTES = 8;
|
|
@@ -88238,7 +88238,7 @@ function assertLittleEndian() {
|
|
|
88238
88238
|
throw new Error("HQSNAP4 requires a little-endian host");
|
|
88239
88239
|
}
|
|
88240
88240
|
|
|
88241
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88241
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
88242
88242
|
function decodeJournalSnapshot(chunks, magic) {
|
|
88243
88243
|
if (magic.equals(SNAPSHOT_V3_MAGIC))
|
|
88244
88244
|
return decodeV3JournalSnapshot(chunks);
|
|
@@ -88590,12 +88590,12 @@ function isPunctuation(value) {
|
|
|
88590
88590
|
return value === "{" || value === "}" || value === "[" || value === "]" || value === ":" || value === ",";
|
|
88591
88591
|
}
|
|
88592
88592
|
|
|
88593
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88593
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
|
|
88594
88594
|
function toPosixKey(key) {
|
|
88595
88595
|
return key.split("\\").join("/");
|
|
88596
88596
|
}
|
|
88597
88597
|
|
|
88598
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88598
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
|
|
88599
88599
|
function isUnderAnyRoot(key, roots) {
|
|
88600
88600
|
if (roots.has(key))
|
|
88601
88601
|
return true;
|
|
@@ -88608,7 +88608,7 @@ function isUnderAnyRoot(key, roots) {
|
|
|
88608
88608
|
return false;
|
|
88609
88609
|
}
|
|
88610
88610
|
|
|
88611
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88611
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
|
|
88612
88612
|
import * as fs9 from "node:fs";
|
|
88613
88613
|
import { StringDecoder as StringDecoder2 } from "node:string_decoder";
|
|
88614
88614
|
var CHUNK_BYTES = 1 << 18;
|
|
@@ -88722,7 +88722,7 @@ function streamJournalLedgerRows(filePath, onRow) {
|
|
|
88722
88722
|
}
|
|
88723
88723
|
}
|
|
88724
88724
|
|
|
88725
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88725
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
|
|
88726
88726
|
import * as fs10 from "fs";
|
|
88727
88727
|
import * as path8 from "path";
|
|
88728
88728
|
var AREA_LAYOUT_FORMAT = 1;
|
|
@@ -89033,12 +89033,12 @@ function compareText(left, right) {
|
|
|
89033
89033
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
89034
89034
|
}
|
|
89035
89035
|
|
|
89036
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89036
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
89037
89037
|
import * as crypto7 from "node:crypto";
|
|
89038
89038
|
import * as fs12 from "node:fs";
|
|
89039
89039
|
import * as path10 from "node:path";
|
|
89040
89040
|
|
|
89041
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89041
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
|
|
89042
89042
|
import * as crypto5 from "crypto";
|
|
89043
89043
|
import * as fs11 from "fs";
|
|
89044
89044
|
import * as os from "os";
|
|
@@ -89668,7 +89668,7 @@ function withOperationLockSync(hqRoot, command5, fn, opts = {}) {
|
|
|
89668
89668
|
}
|
|
89669
89669
|
}
|
|
89670
89670
|
|
|
89671
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89671
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
|
|
89672
89672
|
import * as crypto6 from "node:crypto";
|
|
89673
89673
|
var DIRECT_DELTA = 1;
|
|
89674
89674
|
var PREPARED_TRANSACTION = 2;
|
|
@@ -91097,7 +91097,7 @@ function cloneMetadata(metadata) {
|
|
|
91097
91097
|
return result;
|
|
91098
91098
|
}
|
|
91099
91099
|
|
|
91100
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91100
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
91101
91101
|
function logSwallowed2(line) {
|
|
91102
91102
|
process.stderr.write(line);
|
|
91103
91103
|
}
|
|
@@ -91857,7 +91857,7 @@ function canonicalJsonOrUndefined(value) {
|
|
|
91857
91857
|
return value === void 0 ? void 0 : canonicalJson2(value);
|
|
91858
91858
|
}
|
|
91859
91859
|
|
|
91860
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91860
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
|
|
91861
91861
|
var AREA_MAINTENANCE_CURSOR_FORMAT = 1;
|
|
91862
91862
|
var CURSOR_SET = 1;
|
|
91863
91863
|
var AreaMaintenanceCursorStore = class _AreaMaintenanceCursorStore {
|
|
@@ -91959,7 +91959,7 @@ function sameAreas(left, right) {
|
|
|
91959
91959
|
return left.length === right.length && left.every((areaId, index) => areaId === right[index]);
|
|
91960
91960
|
}
|
|
91961
91961
|
|
|
91962
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91962
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
91963
91963
|
var TOMBSTONE_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
91964
91964
|
var JOURNAL_VERSION_CURRENT = "2";
|
|
91965
91965
|
var MAX_PULLS_PER_COMPANY = 50;
|
|
@@ -94174,7 +94174,7 @@ function gcTombstones(journal, now = Date.now()) {
|
|
|
94174
94174
|
return removed;
|
|
94175
94175
|
}
|
|
94176
94176
|
|
|
94177
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94177
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
94178
94178
|
function logSwallowed3(line) {
|
|
94179
94179
|
process.stderr.write(line);
|
|
94180
94180
|
}
|
|
@@ -94552,7 +94552,7 @@ function purgeExcludedPersonalVaultJournalEntries(journal, hqRoot, syncRoot, sho
|
|
|
94552
94552
|
return { removed, byReason };
|
|
94553
94553
|
}
|
|
94554
94554
|
|
|
94555
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94555
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/local-link-warning.js
|
|
94556
94556
|
import fs15 from "node:fs";
|
|
94557
94557
|
import path13 from "node:path";
|
|
94558
94558
|
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.";
|
|
@@ -94669,7 +94669,7 @@ function linkWarningMessage(warning6) {
|
|
|
94669
94669
|
return `Skipped symbolic link (${warning6.reason}). ${warning6.remedy}`;
|
|
94670
94670
|
}
|
|
94671
94671
|
|
|
94672
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94672
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/parent-link-alias.js
|
|
94673
94673
|
import fs16 from "node:fs";
|
|
94674
94674
|
import path14 from "node:path";
|
|
94675
94675
|
function linkedParentBelowRoot(root5, dir, realRoot, realDir) {
|
|
@@ -94720,12 +94720,12 @@ function inRootAliasPath(root5, absolutePath) {
|
|
|
94720
94720
|
return path14.join(rel, path14.basename(absolutePath)).split(path14.sep).join("/");
|
|
94721
94721
|
}
|
|
94722
94722
|
|
|
94723
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94723
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
94724
94724
|
import * as fs25 from "fs";
|
|
94725
94725
|
import * as path20 from "path";
|
|
94726
94726
|
import * as crypto11 from "crypto";
|
|
94727
94727
|
|
|
94728
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94728
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
|
|
94729
94729
|
import * as crypto9 from "crypto";
|
|
94730
94730
|
import * as fs17 from "fs";
|
|
94731
94731
|
import * as os3 from "os";
|
|
@@ -94781,11 +94781,11 @@ function shouldRecordLocalDeleteIntent(localPath, absent) {
|
|
|
94781
94781
|
return absent && !isLocalPathBeingReplaced(localPath);
|
|
94782
94782
|
}
|
|
94783
94783
|
|
|
94784
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94784
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
94785
94785
|
import { Readable as Readable20, Transform as Transform3 } from "stream";
|
|
94786
94786
|
import { pipeline } from "stream/promises";
|
|
94787
94787
|
|
|
94788
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94788
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
|
|
94789
94789
|
var TRANSIENT_NETWORK_EXIT = 75;
|
|
94790
94790
|
var TRANSIENT_CODES = /* @__PURE__ */ new Set([
|
|
94791
94791
|
"ECONNREFUSED",
|
|
@@ -94895,7 +94895,7 @@ function hasDeniedConnect(err, depth) {
|
|
|
94895
94895
|
return false;
|
|
94896
94896
|
}
|
|
94897
94897
|
|
|
94898
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94898
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
|
|
94899
94899
|
var ONTOLOGY_ENTITY_KEY = /^ontology\/entities\/[a-z][a-z0-9-]*\/[^/]+\.md$/;
|
|
94900
94900
|
var ENTITY_LAST_UPDATED_META_KEY = "hq-entity-last-updated";
|
|
94901
94901
|
function ontologyVaultKey(relPath) {
|
|
@@ -94927,13 +94927,13 @@ function buildEntityMetadata(key, body) {
|
|
|
94927
94927
|
return stamp === null ? {} : { [ENTITY_LAST_UPDATED_META_KEY]: stamp };
|
|
94928
94928
|
}
|
|
94929
94929
|
|
|
94930
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94930
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
94931
94931
|
var import_client_s3 = __toESM(require_dist_cjs36(), 1);
|
|
94932
94932
|
import * as http3 from "node:http";
|
|
94933
94933
|
import * as https2 from "node:https";
|
|
94934
94934
|
import { Transform as Transform2 } from "node:stream";
|
|
94935
94935
|
|
|
94936
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94936
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
|
|
94937
94937
|
import { createHash as createHash16 } from "node:crypto";
|
|
94938
94938
|
var CHECKSUM_HEADER_NAMES = [
|
|
94939
94939
|
"content-md5",
|
|
@@ -95004,7 +95004,7 @@ function headersForObjectLockPut(url2, headers, body) {
|
|
|
95004
95004
|
return out;
|
|
95005
95005
|
}
|
|
95006
95006
|
|
|
95007
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95007
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
|
|
95008
95008
|
import { Transform } from "node:stream";
|
|
95009
95009
|
var MAX_BYTES_PER_SEC_ENV = "HQ_SYNC_MAX_BYTES_PER_SEC";
|
|
95010
95010
|
var MAX_CONCURRENCY_ENV = "HQ_SYNC_MAX_CONCURRENCY";
|
|
@@ -95405,7 +95405,7 @@ function getBandwidthGovernor() {
|
|
|
95405
95405
|
return singleton;
|
|
95406
95406
|
}
|
|
95407
95407
|
|
|
95408
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95408
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
|
|
95409
95409
|
var HEADER_CLIENT_NAME = "x-hq-client-name";
|
|
95410
95410
|
var HEADER_CLIENT_VERSION = "x-hq-client-version";
|
|
95411
95411
|
var HEADER_HQ_CORE_VERSION = "x-hq-core-version";
|
|
@@ -95428,7 +95428,7 @@ function buildClientHeaders(info) {
|
|
|
95428
95428
|
return headers;
|
|
95429
95429
|
}
|
|
95430
95430
|
|
|
95431
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95431
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
|
|
95432
95432
|
var MAX_EVENTS_PER_BATCH = 50;
|
|
95433
95433
|
var DEFAULT_TIMEOUT_MS = 1500;
|
|
95434
95434
|
var MAX_PROPERTIES = 40;
|
|
@@ -95572,12 +95572,12 @@ function describeError(err) {
|
|
|
95572
95572
|
return err instanceof Error ? err.name : typeof err;
|
|
95573
95573
|
}
|
|
95574
95574
|
|
|
95575
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95575
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
95576
95576
|
import * as http from "node:http";
|
|
95577
95577
|
import * as https from "node:https";
|
|
95578
95578
|
import { Readable as Readable19 } from "node:stream";
|
|
95579
95579
|
|
|
95580
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95580
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
|
|
95581
95581
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
95582
95582
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
95583
95583
|
var REALTIME_TELEMETRY_EVENT = "sync.realtime.timing";
|
|
@@ -95767,7 +95767,7 @@ function writeRealtimeTelemetryToStderr(record2) {
|
|
|
95767
95767
|
`);
|
|
95768
95768
|
}
|
|
95769
95769
|
|
|
95770
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95770
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
95771
95771
|
var HTTP_AGENT = new http.Agent({ keepAlive: true, maxSockets: 8 });
|
|
95772
95772
|
var HTTPS_AGENT = new https.Agent({ keepAlive: true, maxSockets: 8 });
|
|
95773
95773
|
function getKeepAliveAgent(secure) {
|
|
@@ -95827,7 +95827,7 @@ function requestWithKeepAlive(url2, init) {
|
|
|
95827
95827
|
});
|
|
95828
95828
|
}
|
|
95829
95829
|
|
|
95830
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95830
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-request-counter.js
|
|
95831
95831
|
var counts = { vault: 0, list: 0, object: 0 };
|
|
95832
95832
|
var UNCOUNTED_VAULT_PATH_PREFIX = "/v1/telemetry/";
|
|
95833
95833
|
function syncRequestKindForVaultPath(path76) {
|
|
@@ -114718,7 +114718,7 @@ function date7(params) {
|
|
|
114718
114718
|
return _coercedDate(ZodDate, params);
|
|
114719
114719
|
}
|
|
114720
114720
|
|
|
114721
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114721
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
114722
114722
|
import { spawnSync } from "child_process";
|
|
114723
114723
|
import * as crypto10 from "crypto";
|
|
114724
114724
|
import * as fs23 from "fs";
|
|
@@ -115240,7 +115240,7 @@ defineLazyProperty(apps, "browser", () => "browser");
|
|
|
115240
115240
|
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
115241
115241
|
var open_default = open4;
|
|
115242
115242
|
|
|
115243
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115243
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
115244
115244
|
var CognitoAuthError = class extends Error {
|
|
115245
115245
|
constructor(message) {
|
|
115246
115246
|
super(message);
|
|
@@ -115830,12 +115830,53 @@ function isCognitoThrottle(status, type2) {
|
|
|
115830
115830
|
function sleep4(ms) {
|
|
115831
115831
|
return new Promise((resolve35) => setTimeout(resolve35, ms));
|
|
115832
115832
|
}
|
|
115833
|
+
var MACHINE_MINT_REQUEST_TIMEOUT_MS = 3e4;
|
|
115834
|
+
var MachineMintTimeoutError = class extends CognitoRefreshError {
|
|
115835
|
+
constructor(what) {
|
|
115836
|
+
super(`${what} timed out after ${MACHINE_MINT_REQUEST_TIMEOUT_MS}ms`, false);
|
|
115837
|
+
this.name = "MachineMintTimeoutError";
|
|
115838
|
+
}
|
|
115839
|
+
};
|
|
115840
|
+
function abortReason(signal) {
|
|
115841
|
+
return signal.reason ?? new CognitoRefreshError("Machine token mint was aborted", false);
|
|
115842
|
+
}
|
|
115843
|
+
function throwIfMintAborted(signal) {
|
|
115844
|
+
if (signal?.aborted)
|
|
115845
|
+
throw abortReason(signal);
|
|
115846
|
+
}
|
|
115847
|
+
async function machineMintRequest(what, url2, init, callerSignal) {
|
|
115848
|
+
throwIfMintAborted(callerSignal);
|
|
115849
|
+
const controller = new AbortController();
|
|
115850
|
+
const timer = setTimeout(() => controller.abort(new MachineMintTimeoutError(what)), MACHINE_MINT_REQUEST_TIMEOUT_MS);
|
|
115851
|
+
const onCallerAbort = () => controller.abort(abortReason(callerSignal));
|
|
115852
|
+
callerSignal?.addEventListener("abort", onCallerAbort, { once: true });
|
|
115853
|
+
let onAbort;
|
|
115854
|
+
const aborted2 = new Promise((_, reject) => {
|
|
115855
|
+
onAbort = () => reject(controller.signal.reason);
|
|
115856
|
+
controller.signal.addEventListener("abort", onAbort, { once: true });
|
|
115857
|
+
});
|
|
115858
|
+
try {
|
|
115859
|
+
return await Promise.race([
|
|
115860
|
+
(async () => {
|
|
115861
|
+
const res = await fetch(url2, { ...init, signal: controller.signal });
|
|
115862
|
+
const body = await res.json().catch(() => ({}));
|
|
115863
|
+
return { res, body };
|
|
115864
|
+
})(),
|
|
115865
|
+
aborted2
|
|
115866
|
+
]);
|
|
115867
|
+
} finally {
|
|
115868
|
+
clearTimeout(timer);
|
|
115869
|
+
callerSignal?.removeEventListener("abort", onCallerAbort);
|
|
115870
|
+
if (onAbort)
|
|
115871
|
+
controller.signal.removeEventListener("abort", onAbort);
|
|
115872
|
+
}
|
|
115873
|
+
}
|
|
115833
115874
|
function backoffDelayMs(attempt, opts) {
|
|
115834
115875
|
const ceiling = Math.min(opts.maxDelayMs, opts.baseDelayMs * 2 ** attempt);
|
|
115835
115876
|
return Math.floor(Math.random() * (ceiling + 1));
|
|
115836
115877
|
}
|
|
115837
115878
|
async function mintMachineTokensUnlocked(config2, creds, retry, assertCurrent = () => {
|
|
115838
|
-
}) {
|
|
115879
|
+
}, signal) {
|
|
115839
115880
|
assertCurrent();
|
|
115840
115881
|
const machineCreds = creds ?? loadMachineCreds();
|
|
115841
115882
|
if (!machineCreds) {
|
|
@@ -115851,7 +115892,7 @@ async function mintMachineTokensUnlocked(config2, creds, retry, assertCurrent =
|
|
|
115851
115892
|
const clientId = machineCreds.clientId ?? config2.clientId;
|
|
115852
115893
|
const retryOpts = { ...DEFAULT_MINT_RETRY, ...retry };
|
|
115853
115894
|
if (isExternalMachineCreds(machineCreds)) {
|
|
115854
|
-
const tokens = await mintExternalMachineTokens(machineCreds, clientId, retryOpts);
|
|
115895
|
+
const tokens = await mintExternalMachineTokens(machineCreds, clientId, retryOpts, signal);
|
|
115855
115896
|
assertCurrent();
|
|
115856
115897
|
tokens.machineCredentialKey = machineIdentityKey(config2, machineCreds);
|
|
115857
115898
|
saveCachedTokens(tokens);
|
|
@@ -115859,7 +115900,7 @@ async function mintMachineTokensUnlocked(config2, creds, retry, assertCurrent =
|
|
|
115859
115900
|
}
|
|
115860
115901
|
let lastError = null;
|
|
115861
115902
|
for (let attempt = 0; attempt <= retryOpts.maxRetries; attempt++) {
|
|
115862
|
-
const res = await
|
|
115903
|
+
const { res, body: data } = await machineMintRequest("Machine token mint", `https://cognito-idp.${region}.amazonaws.com/`, {
|
|
115863
115904
|
method: "POST",
|
|
115864
115905
|
headers: {
|
|
115865
115906
|
"Content-Type": "application/x-amz-json-1.1",
|
|
@@ -115873,13 +115914,13 @@ async function mintMachineTokensUnlocked(config2, creds, retry, assertCurrent =
|
|
|
115873
115914
|
PASSWORD: machineCreds.secret
|
|
115874
115915
|
}
|
|
115875
115916
|
})
|
|
115876
|
-
});
|
|
115877
|
-
const data = await res.json().catch(() => ({}));
|
|
115917
|
+
}, signal);
|
|
115878
115918
|
if (!res.ok) {
|
|
115879
115919
|
const err = new CognitoAuthError(`Machine token mint failed (${res.status}): ${data.__type ?? ""} ${data.message ?? ""}`.trim());
|
|
115880
115920
|
if (isCognitoThrottle(res.status, data.__type) && attempt < retryOpts.maxRetries) {
|
|
115881
115921
|
lastError = err;
|
|
115882
115922
|
await sleep4(backoffDelayMs(attempt, retryOpts));
|
|
115923
|
+
throwIfMintAborted(signal);
|
|
115883
115924
|
continue;
|
|
115884
115925
|
}
|
|
115885
115926
|
throw err;
|
|
@@ -115912,10 +115953,7 @@ function externalMintErrorDetail(status, body) {
|
|
|
115912
115953
|
const error64 = typeof body.error === "string" ? body.error : "";
|
|
115913
115954
|
return `(${status})${code ? ` ${code}` : ""}${error64 ? ` ${error64}` : ""}`;
|
|
115914
115955
|
}
|
|
115915
|
-
async function
|
|
115916
|
-
return await res.json().catch(() => ({}));
|
|
115917
|
-
}
|
|
115918
|
-
async function mintExternalMachineTokens(creds, clientId, retryOpts) {
|
|
115956
|
+
async function mintExternalMachineTokens(creds, clientId, retryOpts, signal) {
|
|
115919
115957
|
const agentUid = creds.entityUid;
|
|
115920
115958
|
if (!agentUid || !agentUid.startsWith("agt_")) {
|
|
115921
115959
|
throw new CognitoAuthError("External machine credentials must carry an agt_* entityUid");
|
|
@@ -115934,13 +115972,13 @@ async function mintExternalMachineTokens(creds, clientId, retryOpts) {
|
|
|
115934
115972
|
const headers = { "Content-Type": "application/json" };
|
|
115935
115973
|
let lastError = null;
|
|
115936
115974
|
for (let attempt = 0; attempt <= retryOpts.maxRetries; attempt++) {
|
|
115937
|
-
const challengeRes = await
|
|
115938
|
-
const challenge = await readJsonBody(challengeRes);
|
|
115975
|
+
const { res: challengeRes, body: challenge } = await machineMintRequest("External mint challenge", `${base}/v1/agents/${uidPath}/mint-challenge`, { method: "POST", headers, body: "{}" }, signal);
|
|
115939
115976
|
if (!challengeRes.ok) {
|
|
115940
115977
|
const err = new CognitoAuthError(`External mint challenge failed ${externalMintErrorDetail(challengeRes.status, challenge)}`.trim());
|
|
115941
115978
|
if (challengeRes.status === 429 && attempt < retryOpts.maxRetries) {
|
|
115942
115979
|
lastError = err;
|
|
115943
115980
|
await sleep4(backoffDelayMs(attempt, retryOpts));
|
|
115981
|
+
throwIfMintAborted(signal);
|
|
115944
115982
|
continue;
|
|
115945
115983
|
}
|
|
115946
115984
|
throw err;
|
|
@@ -115949,7 +115987,7 @@ async function mintExternalMachineTokens(creds, clientId, retryOpts) {
|
|
|
115949
115987
|
throw new CognitoAuthError("External mint challenge returned no nonce");
|
|
115950
115988
|
}
|
|
115951
115989
|
const signature = signExternalMintChallenge(privateKeyPem, agentUid, challenge.nonce);
|
|
115952
|
-
const mintRes = await
|
|
115990
|
+
const { res: mintRes, body: minted } = await machineMintRequest("External machine token mint", `${base}/v1/agents/${uidPath}/mint`, {
|
|
115953
115991
|
method: "POST",
|
|
115954
115992
|
headers,
|
|
115955
115993
|
body: JSON.stringify({
|
|
@@ -115957,13 +115995,13 @@ async function mintExternalMachineTokens(creds, clientId, retryOpts) {
|
|
|
115957
115995
|
signature,
|
|
115958
115996
|
secret: creds.secret
|
|
115959
115997
|
})
|
|
115960
|
-
});
|
|
115961
|
-
const minted = await readJsonBody(mintRes);
|
|
115998
|
+
}, signal);
|
|
115962
115999
|
if (!mintRes.ok) {
|
|
115963
116000
|
const err = new CognitoAuthError(`External machine token mint failed ${externalMintErrorDetail(mintRes.status, minted)}`.trim());
|
|
115964
116001
|
if (mintRes.status === 429 && attempt < retryOpts.maxRetries) {
|
|
115965
116002
|
lastError = err;
|
|
115966
116003
|
await sleep4(backoffDelayMs(attempt, retryOpts));
|
|
116004
|
+
throwIfMintAborted(signal);
|
|
115967
116005
|
continue;
|
|
115968
116006
|
}
|
|
115969
116007
|
throw err;
|
|
@@ -116008,6 +116046,8 @@ function machineIdentityKey(config2, creds) {
|
|
|
116008
116046
|
})).digest("hex");
|
|
116009
116047
|
}
|
|
116010
116048
|
async function getValidMachineTokens(config2, options = {}) {
|
|
116049
|
+
const signal = options.signal;
|
|
116050
|
+
throwIfMintAborted(signal);
|
|
116011
116051
|
const minValiditySeconds = options.minValiditySeconds ?? DEFAULT_MACHINE_TOKEN_MIN_VALIDITY_SECONDS;
|
|
116012
116052
|
if (!Number.isFinite(minValiditySeconds) || minValiditySeconds < 0) {
|
|
116013
116053
|
throw new RangeError("minValiditySeconds must be a non-negative number");
|
|
@@ -116031,11 +116071,11 @@ async function getValidMachineTokens(config2, options = {}) {
|
|
|
116031
116071
|
}
|
|
116032
116072
|
};
|
|
116033
116073
|
const requiresKeyEquality = machineCreds.entityType === "company-outpost" || companyMachineRequired();
|
|
116034
|
-
const cacheMatches = (
|
|
116035
|
-
if (requiresKeyEquality &&
|
|
116074
|
+
const cacheMatches = (tokens2) => {
|
|
116075
|
+
if (requiresKeyEquality && tokens2.machineCredentialKey !== identityKey2) {
|
|
116036
116076
|
return false;
|
|
116037
116077
|
}
|
|
116038
|
-
return machineTokenPairMatchesIdentity(
|
|
116078
|
+
return machineTokenPairMatchesIdentity(tokens2, machineCreds, expectedClientId);
|
|
116039
116079
|
};
|
|
116040
116080
|
const resolutionKey = `${identityKey2}\0${minValiditySeconds}`;
|
|
116041
116081
|
if (inProcessMachineTokens?.identityKey === identityKey2 && !tokenIsInvalidated(inProcessMachineTokens.tokens.accessToken, "machine") && !isExpiring(inProcessMachineTokens.tokens, minValiditySeconds) && machineTokenPairMatchesIdentity(inProcessMachineTokens.tokens, machineCreds, expectedClientId)) {
|
|
@@ -116043,9 +116083,9 @@ async function getValidMachineTokens(config2, options = {}) {
|
|
|
116043
116083
|
}
|
|
116044
116084
|
const existingResolution = inFlightMachineMints.get(resolutionKey);
|
|
116045
116085
|
if (existingResolution) {
|
|
116046
|
-
const
|
|
116086
|
+
const tokens2 = await raceMintAbort(existingResolution, signal);
|
|
116047
116087
|
assertCurrent();
|
|
116048
|
-
return
|
|
116088
|
+
return tokens2;
|
|
116049
116089
|
}
|
|
116050
116090
|
const resolution = (async () => {
|
|
116051
116091
|
const resolveUnderLock = async () => {
|
|
@@ -116078,16 +116118,30 @@ async function getValidMachineTokens(config2, options = {}) {
|
|
|
116078
116118
|
}
|
|
116079
116119
|
})();
|
|
116080
116120
|
inFlightMachineMints.set(resolutionKey, resolution);
|
|
116081
|
-
|
|
116082
|
-
const tokens = await resolution;
|
|
116083
|
-
assertCurrent();
|
|
116084
|
-
inProcessMachineTokens = { identityKey: identityKey2, tokens };
|
|
116085
|
-
return tokens;
|
|
116086
|
-
} finally {
|
|
116121
|
+
const clearEntry = () => {
|
|
116087
116122
|
if (inFlightMachineMints.get(resolutionKey) === resolution) {
|
|
116088
116123
|
inFlightMachineMints.delete(resolutionKey);
|
|
116089
116124
|
}
|
|
116090
|
-
}
|
|
116125
|
+
};
|
|
116126
|
+
resolution.then(clearEntry, clearEntry);
|
|
116127
|
+
const tokens = await raceMintAbort(resolution, signal);
|
|
116128
|
+
assertCurrent();
|
|
116129
|
+
inProcessMachineTokens = { identityKey: identityKey2, tokens };
|
|
116130
|
+
return tokens;
|
|
116131
|
+
}
|
|
116132
|
+
function raceMintAbort(work, signal) {
|
|
116133
|
+
if (!signal)
|
|
116134
|
+
return work;
|
|
116135
|
+
throwIfMintAborted(signal);
|
|
116136
|
+
let onAbort;
|
|
116137
|
+
const aborted2 = new Promise((_, reject) => {
|
|
116138
|
+
onAbort = () => reject(abortReason(signal));
|
|
116139
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
116140
|
+
});
|
|
116141
|
+
return Promise.race([work, aborted2]).finally(() => {
|
|
116142
|
+
if (onAbort)
|
|
116143
|
+
signal.removeEventListener("abort", onAbort);
|
|
116144
|
+
});
|
|
116091
116145
|
}
|
|
116092
116146
|
function base64UrlEncode(buf2) {
|
|
116093
116147
|
return buf2.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
@@ -116498,7 +116552,7 @@ function pickNewerSession(fromKeychain, other) {
|
|
|
116498
116552
|
return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
|
|
116499
116553
|
}
|
|
116500
116554
|
|
|
116501
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116555
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
|
|
116502
116556
|
var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
|
|
116503
116557
|
var VaultCredentialScopeError = class extends Error {
|
|
116504
116558
|
droppedWriteGrantPrefixes;
|
|
@@ -116540,7 +116594,7 @@ function assertCredentialScopeUsable(diagnostic) {
|
|
|
116540
116594
|
}
|
|
116541
116595
|
}
|
|
116542
116596
|
|
|
116543
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116597
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
|
|
116544
116598
|
var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
|
|
116545
116599
|
var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
116546
116600
|
"PLAN_LIMIT_EXCEEDED",
|
|
@@ -116683,7 +116737,7 @@ function formatPlanLimitNotice(event) {
|
|
|
116683
116737
|
return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
|
|
116684
116738
|
}
|
|
116685
116739
|
|
|
116686
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116740
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
|
|
116687
116741
|
var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
|
|
116688
116742
|
var VaultClientError = class extends Error {
|
|
116689
116743
|
statusCode;
|
|
@@ -117645,7 +117699,7 @@ function parseVaultErrorBody(body) {
|
|
|
117645
117699
|
}
|
|
117646
117700
|
}
|
|
117647
117701
|
|
|
117648
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117702
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
117649
117703
|
var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
|
|
117650
117704
|
var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
|
|
117651
117705
|
var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
|
|
@@ -119058,7 +119112,7 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor, options
|
|
|
119058
119112
|
};
|
|
119059
119113
|
}
|
|
119060
119114
|
|
|
119061
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119115
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
|
|
119062
119116
|
var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
|
|
119063
119117
|
function portableModeStamp(mode, platform5 = process.platform) {
|
|
119064
119118
|
if (platform5 === "win32")
|
|
@@ -119069,7 +119123,7 @@ function isPortableModeSignal(mode) {
|
|
|
119069
119123
|
return !WIN32_SYNTHETIC_MODES.has(mode & 511);
|
|
119070
119124
|
}
|
|
119071
119125
|
|
|
119072
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119126
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
|
|
119073
119127
|
import * as path18 from "path";
|
|
119074
119128
|
var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
|
|
119075
119129
|
var SHEBANG = Buffer.from("#!");
|
|
@@ -119125,7 +119179,7 @@ function normalizeScriptLineEndings(body) {
|
|
|
119125
119179
|
return changed ? out.subarray(0, n3) : null;
|
|
119126
119180
|
}
|
|
119127
119181
|
|
|
119128
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119182
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
|
|
119129
119183
|
import path19 from "node:path";
|
|
119130
119184
|
import fs24 from "node:fs";
|
|
119131
119185
|
function personalSymlinkTargetLinkPath(relativePath) {
|
|
@@ -119348,7 +119402,7 @@ function redactShape(target, classification) {
|
|
|
119348
119402
|
return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
|
|
119349
119403
|
}
|
|
119350
119404
|
|
|
119351
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119405
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
119352
119406
|
var DOWNLOAD_STREAM_MAX_RETRIES = 3;
|
|
119353
119407
|
var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
|
|
119354
119408
|
function sleepMs(ms) {
|
|
@@ -120627,7 +120681,7 @@ function getMimeType(filePath) {
|
|
|
120627
120681
|
return mimeTypes[ext] || "application/octet-stream";
|
|
120628
120682
|
}
|
|
120629
120683
|
|
|
120630
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
120684
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
|
|
120631
120685
|
var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
120632
120686
|
var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
120633
120687
|
function nativeSeparatorsToPosix(relativePath, sep26) {
|
|
@@ -120722,7 +120776,7 @@ function decodePushEvent(input2) {
|
|
|
120722
120776
|
return parsed.data;
|
|
120723
120777
|
}
|
|
120724
120778
|
|
|
120725
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
120779
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
|
|
120726
120780
|
import * as path21 from "path";
|
|
120727
120781
|
function routeChangeToTarget(relPath, kind) {
|
|
120728
120782
|
const norm = relPath.split(path21.sep).join("/").replace(/^\.\//, "");
|
|
@@ -120891,7 +120945,7 @@ function carriedFlags(baseArgv) {
|
|
|
120891
120945
|
return carried;
|
|
120892
120946
|
}
|
|
120893
120947
|
|
|
120894
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
120948
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
|
|
120895
120949
|
var moduleLoadFetch = globalThis.fetch;
|
|
120896
120950
|
var moduleLoadAbortController = globalThis.AbortController;
|
|
120897
120951
|
var successOutcomes = /* @__PURE__ */ new WeakMap();
|
|
@@ -121113,7 +121167,7 @@ var HttpPushTransport = class {
|
|
|
121113
121167
|
}
|
|
121114
121168
|
};
|
|
121115
121169
|
|
|
121116
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121170
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
|
|
121117
121171
|
import * as fs26 from "fs";
|
|
121118
121172
|
import * as path22 from "path";
|
|
121119
121173
|
function foldVaultKey(key) {
|
|
@@ -121261,7 +121315,7 @@ function directoryFoldsCase(dir) {
|
|
|
121261
121315
|
return false;
|
|
121262
121316
|
}
|
|
121263
121317
|
|
|
121264
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121318
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
121265
121319
|
var DEBOUNCE_MS = 2e3;
|
|
121266
121320
|
var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
|
|
121267
121321
|
var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
|
|
@@ -124424,7 +124478,7 @@ var PushEventEmitter = class _PushEventEmitter {
|
|
|
124424
124478
|
}
|
|
124425
124479
|
};
|
|
124426
124480
|
|
|
124427
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124481
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
124428
124482
|
var SELF_PROFILE_ENV = "HQ_SYNC_SELF_PROFILE";
|
|
124429
124483
|
var SELF_PROFILE_CPU_CORES_ENV = "HQ_SYNC_SELF_PROFILE_CPU_CORES";
|
|
124430
124484
|
var SELF_PROFILE_RSS_MB_ENV = "HQ_SYNC_SELF_PROFILE_RSS_MB";
|
|
@@ -125039,7 +125093,7 @@ function readRunnerVersion() {
|
|
|
125039
125093
|
}
|
|
125040
125094
|
}
|
|
125041
125095
|
|
|
125042
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125096
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
125043
125097
|
import * as os25 from "os";
|
|
125044
125098
|
import * as path75 from "path";
|
|
125045
125099
|
import * as fs79 from "fs";
|
|
@@ -125047,7 +125101,7 @@ import { randomUUID as randomUUID14 } from "node:crypto";
|
|
|
125047
125101
|
import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
|
|
125048
125102
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
125049
125103
|
|
|
125050
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125104
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/context.js
|
|
125051
125105
|
import { createHash as createHash20 } from "node:crypto";
|
|
125052
125106
|
var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
125053
125107
|
var DEFAULT_SESSION_DURATION_SECONDS = 900;
|
|
@@ -125278,13 +125332,13 @@ async function vendSelfCredentials(personUid, config2) {
|
|
|
125278
125332
|
return postVend(route, { personUid }, config2);
|
|
125279
125333
|
}
|
|
125280
125334
|
|
|
125281
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125335
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
|
|
125282
125336
|
var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
|
|
125283
125337
|
|
|
125284
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125338
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
|
|
125285
125339
|
var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
|
|
125286
125340
|
|
|
125287
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125341
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
|
|
125288
125342
|
var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
|
|
125289
125343
|
var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
|
|
125290
125344
|
var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
|
|
@@ -125334,7 +125388,7 @@ var MultipartByteBudget = class {
|
|
|
125334
125388
|
};
|
|
125335
125389
|
var processByteBudget = new MultipartByteBudget();
|
|
125336
125390
|
|
|
125337
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125391
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/cloud-authoritative.js
|
|
125338
125392
|
var CLOUD_AUTHORITATIVE_PATTERNS = [
|
|
125339
125393
|
/^company-brief\.md$/,
|
|
125340
125394
|
/^board\.json$/,
|
|
@@ -125382,7 +125436,7 @@ function isPullReconciledServerOwned(relPath) {
|
|
|
125382
125436
|
return isCloudAuthoritative(vaultRel);
|
|
125383
125437
|
}
|
|
125384
125438
|
|
|
125385
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125439
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/server-owned-skips.js
|
|
125386
125440
|
var SERVER_OWNED_FOLDERS = [
|
|
125387
125441
|
{
|
|
125388
125442
|
folder: "sources/slack-dm/",
|
|
@@ -125445,13 +125499,13 @@ function groupServerOwnedSkips(paths, options = {}) {
|
|
|
125445
125499
|
return groups;
|
|
125446
125500
|
}
|
|
125447
125501
|
|
|
125448
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125502
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
125449
125503
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
125450
125504
|
import * as fs30 from "fs";
|
|
125451
125505
|
import * as os8 from "os";
|
|
125452
125506
|
import * as path26 from "path";
|
|
125453
125507
|
|
|
125454
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125508
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
|
|
125455
125509
|
import { createHash as createHash21 } from "node:crypto";
|
|
125456
125510
|
import * as fs29 from "node:fs";
|
|
125457
125511
|
import * as os7 from "node:os";
|
|
@@ -125600,7 +125654,7 @@ function readPendingConflictNotices() {
|
|
|
125600
125654
|
return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
|
|
125601
125655
|
}
|
|
125602
125656
|
|
|
125603
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125657
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
125604
125658
|
function logSwallowed5(line) {
|
|
125605
125659
|
process.stderr.write(line);
|
|
125606
125660
|
}
|
|
@@ -125887,7 +125941,7 @@ function createPassSummaryRecorder() {
|
|
|
125887
125941
|
};
|
|
125888
125942
|
}
|
|
125889
125943
|
|
|
125890
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125944
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
|
|
125891
125945
|
var SCOPE_PREFIX_MARKER = "\0hq-scope:";
|
|
125892
125946
|
var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
|
|
125893
125947
|
var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
|
|
@@ -126087,7 +126141,7 @@ function grantPathToScopePrefix(grantPath, slug) {
|
|
|
126087
126141
|
return pathToScopePrefix(p3);
|
|
126088
126142
|
}
|
|
126089
126143
|
|
|
126090
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126144
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
|
|
126091
126145
|
import * as fs31 from "fs";
|
|
126092
126146
|
import * as path27 from "path";
|
|
126093
126147
|
function buildScopeShrinkPlan(input2) {
|
|
@@ -126383,18 +126437,18 @@ function applyScopeShrink(input2) {
|
|
|
126383
126437
|
};
|
|
126384
126438
|
}
|
|
126385
126439
|
|
|
126386
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126440
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
126387
126441
|
init_dist();
|
|
126388
126442
|
import * as fs32 from "fs";
|
|
126389
126443
|
import * as path28 from "path";
|
|
126390
126444
|
|
|
126391
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126445
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
|
|
126392
126446
|
var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
|
|
126393
126447
|
function flagCompanyUid(uid) {
|
|
126394
126448
|
return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
|
|
126395
126449
|
}
|
|
126396
126450
|
|
|
126397
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126451
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
126398
126452
|
var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
|
|
126399
126453
|
var WAL_REJECTED_DELTA_RECOVERY_FLAG = "sync.wal-rejected-delta-recovery";
|
|
126400
126454
|
var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
|
|
@@ -126544,7 +126598,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
|
|
|
126544
126598
|
return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
|
|
126545
126599
|
}
|
|
126546
126600
|
|
|
126547
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126601
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
|
|
126548
126602
|
var VEND_PATH_CAP = 10;
|
|
126549
126603
|
var POST_FILTER_THRESHOLD = 50;
|
|
126550
126604
|
var VEND_FANOUT_CONCURRENCY = 5;
|
|
@@ -126631,11 +126685,11 @@ function dedupByKey(files) {
|
|
|
126631
126685
|
return out;
|
|
126632
126686
|
}
|
|
126633
126687
|
|
|
126634
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126688
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
|
|
126635
126689
|
var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
|
|
126636
126690
|
var MIB = 1024 * 1024;
|
|
126637
126691
|
|
|
126638
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126692
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
126639
126693
|
import * as fs33 from "fs";
|
|
126640
126694
|
import * as path29 from "path";
|
|
126641
126695
|
var SESSIONS_SCOPE_PREFIX = "sessions/";
|
|
@@ -126706,7 +126760,7 @@ function readPinnedPrefixes(hqRoot, slug) {
|
|
|
126706
126760
|
return [];
|
|
126707
126761
|
}
|
|
126708
126762
|
|
|
126709
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126763
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
|
|
126710
126764
|
import * as fs34 from "fs";
|
|
126711
126765
|
import * as path30 from "path";
|
|
126712
126766
|
var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
|
|
@@ -126923,13 +126977,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
|
|
|
126923
126977
|
}
|
|
126924
126978
|
};
|
|
126925
126979
|
|
|
126926
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126980
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
126927
126981
|
import { createHash as createHash22 } from "node:crypto";
|
|
126928
126982
|
import { promises as fs39 } from "node:fs";
|
|
126929
126983
|
import * as os9 from "node:os";
|
|
126930
126984
|
import * as path34 from "node:path";
|
|
126931
126985
|
|
|
126932
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126986
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry-scan-cap.js
|
|
126933
126987
|
import { promises as fs35 } from "node:fs";
|
|
126934
126988
|
async function hasUnreadBytes(filePath, stored) {
|
|
126935
126989
|
let stat5;
|
|
@@ -126947,7 +127001,7 @@ async function hasUnreadBytes(filePath, stored) {
|
|
|
126947
127001
|
return stat5.size > offset;
|
|
126948
127002
|
}
|
|
126949
127003
|
|
|
126950
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127004
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
126951
127005
|
import { promises as fs36 } from "node:fs";
|
|
126952
127006
|
import * as path31 from "node:path";
|
|
126953
127007
|
|
|
@@ -129575,7 +129629,7 @@ var jsYaml = {
|
|
|
129575
129629
|
safeDump
|
|
129576
129630
|
};
|
|
129577
129631
|
|
|
129578
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129632
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
129579
129633
|
function logSwallowed6(line) {
|
|
129580
129634
|
process.stderr.write(line);
|
|
129581
129635
|
}
|
|
@@ -129786,7 +129840,7 @@ function resolveCompanyForCwd(cwd, map9) {
|
|
|
129786
129840
|
return collapsed !== c5 ? match(collapsed) : void 0;
|
|
129787
129841
|
}
|
|
129788
129842
|
|
|
129789
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129843
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
|
|
129790
129844
|
import { promises as fs37 } from "node:fs";
|
|
129791
129845
|
import * as path32 from "node:path";
|
|
129792
129846
|
var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
|
|
@@ -130233,7 +130287,7 @@ function createUsageCompanyFallback(options) {
|
|
|
130233
130287
|
};
|
|
130234
130288
|
}
|
|
130235
130289
|
|
|
130236
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130290
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry/consent-source.js
|
|
130237
130291
|
var KNOWN_SOURCES = /* @__PURE__ */ new Set([
|
|
130238
130292
|
"plan-required",
|
|
130239
130293
|
"notice-pending",
|
|
@@ -130313,7 +130367,7 @@ function decideCollection(resp, local) {
|
|
|
130313
130367
|
}
|
|
130314
130368
|
}
|
|
130315
130369
|
|
|
130316
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130370
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry/pre-consent-buffer.js
|
|
130317
130371
|
import { randomBytes as randomBytes8 } from "node:crypto";
|
|
130318
130372
|
import { promises as fs38 } from "node:fs";
|
|
130319
130373
|
import * as path33 from "node:path";
|
|
@@ -130545,7 +130599,7 @@ async function discardPreConsentBuffer(file2, opts = {}) {
|
|
|
130545
130599
|
});
|
|
130546
130600
|
}
|
|
130547
130601
|
|
|
130548
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130602
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
130549
130603
|
function emptyCursor() {
|
|
130550
130604
|
return { version: "1", files: {} };
|
|
130551
130605
|
}
|
|
@@ -131504,7 +131558,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
131504
131558
|
};
|
|
131505
131559
|
}
|
|
131506
131560
|
|
|
131507
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131561
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
|
|
131508
131562
|
import { createHash as createHash23 } from "node:crypto";
|
|
131509
131563
|
import { promises as fs40 } from "node:fs";
|
|
131510
131564
|
import * as os10 from "node:os";
|
|
@@ -132375,12 +132429,12 @@ async function collectAndSendSkillTelemetry(opts) {
|
|
|
132375
132429
|
};
|
|
132376
132430
|
}
|
|
132377
132431
|
|
|
132378
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132432
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
132379
132433
|
import * as fs51 from "fs";
|
|
132380
132434
|
import * as os15 from "os";
|
|
132381
132435
|
import * as path46 from "path";
|
|
132382
132436
|
|
|
132383
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132437
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-pass-event.js
|
|
132384
132438
|
import { createHash as createHash24 } from "node:crypto";
|
|
132385
132439
|
import * as os11 from "node:os";
|
|
132386
132440
|
var SYNC_PASS_EVENT_NAME = "sync_pass";
|
|
@@ -132473,7 +132527,7 @@ function startSyncPassObservation(context, deps = {}) {
|
|
|
132473
132527
|
};
|
|
132474
132528
|
}
|
|
132475
132529
|
|
|
132476
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132530
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-object-events.js
|
|
132477
132531
|
import { createHash as createHash25 } from "node:crypto";
|
|
132478
132532
|
var SYNC_CONFLICT_EVENT_NAME = "sync_conflict";
|
|
132479
132533
|
var SYNC_OVERWRITE_EVENT_NAME = "sync_overwrite";
|
|
@@ -132610,7 +132664,7 @@ function createSyncObjectEventSink(deps) {
|
|
|
132610
132664
|
};
|
|
132611
132665
|
}
|
|
132612
132666
|
|
|
132613
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132667
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
|
|
132614
132668
|
init_dist();
|
|
132615
132669
|
var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
|
|
132616
132670
|
var FLAG_READ_TIMEOUT_MS = 2e3;
|
|
@@ -132659,7 +132713,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
|
|
|
132659
132713
|
}
|
|
132660
132714
|
}
|
|
132661
132715
|
|
|
132662
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132716
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
|
|
132663
132717
|
function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
132664
132718
|
if (typeof client.presign === "function" && typeof client.listFiles === "function") {
|
|
132665
132719
|
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
@@ -132677,7 +132731,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
|
132677
132731
|
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
132678
132732
|
}
|
|
132679
132733
|
|
|
132680
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132734
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
|
|
132681
132735
|
import * as fs41 from "node:fs";
|
|
132682
132736
|
import * as path36 from "node:path";
|
|
132683
132737
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -132722,10 +132776,10 @@ function appendSyncDecision(input2, options = {}) {
|
|
|
132722
132776
|
}
|
|
132723
132777
|
}
|
|
132724
132778
|
|
|
132725
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132779
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
132726
132780
|
import * as crypto15 from "crypto";
|
|
132727
132781
|
|
|
132728
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132782
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
|
|
132729
132783
|
import * as fs42 from "fs";
|
|
132730
132784
|
import * as path37 from "path";
|
|
132731
132785
|
var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
|
|
@@ -132817,7 +132871,7 @@ async function primePrivateFolderUpload(input2) {
|
|
|
132817
132871
|
}]);
|
|
132818
132872
|
}
|
|
132819
132873
|
|
|
132820
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132874
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
|
|
132821
132875
|
var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
|
|
132822
132876
|
var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
|
|
132823
132877
|
var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
|
|
@@ -133394,7 +133448,7 @@ var FullPassCapController = class {
|
|
|
133394
133448
|
}
|
|
133395
133449
|
};
|
|
133396
133450
|
|
|
133397
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133451
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
|
|
133398
133452
|
import * as readline from "readline";
|
|
133399
133453
|
function parseFrontmatterVersion(body) {
|
|
133400
133454
|
if (!body || body.length === 0)
|
|
@@ -133546,7 +133600,7 @@ async function promptConflict(conflict) {
|
|
|
133546
133600
|
}
|
|
133547
133601
|
}
|
|
133548
133602
|
|
|
133549
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133603
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/reconcile-skip-reason.js
|
|
133550
133604
|
var HUMAN_UP_TO_DATE_LINE_CAP = 20;
|
|
133551
133605
|
function isUpToDateSkipReason(reason) {
|
|
133552
133606
|
return reason === "already_up_to_date" || reason === "already_landed";
|
|
@@ -133606,7 +133660,7 @@ function createHumanSkipLineLog() {
|
|
|
133606
133660
|
};
|
|
133607
133661
|
}
|
|
133608
133662
|
|
|
133609
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133663
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
|
|
133610
133664
|
import * as crypto12 from "node:crypto";
|
|
133611
133665
|
import * as fs43 from "node:fs";
|
|
133612
133666
|
import * as os12 from "node:os";
|
|
@@ -134000,7 +134054,7 @@ async function fetchTombstonePage(url2, token) {
|
|
|
134000
134054
|
throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
|
|
134001
134055
|
}
|
|
134002
134056
|
|
|
134003
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134057
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
|
|
134004
134058
|
import { execSync } from "child_process";
|
|
134005
134059
|
import * as fs44 from "fs";
|
|
134006
134060
|
import * as os13 from "os";
|
|
@@ -134147,11 +134201,11 @@ function hasRemoteChanged(remote, entry) {
|
|
|
134147
134201
|
return remote.lastModified.getTime() > syncedAt;
|
|
134148
134202
|
}
|
|
134149
134203
|
|
|
134150
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134204
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
134151
134205
|
import * as crypto13 from "crypto";
|
|
134152
134206
|
import * as path41 from "path";
|
|
134153
134207
|
|
|
134154
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
|
|
134155
134209
|
import { createHash as createHash27, randomUUID as randomUUID6 } from "node:crypto";
|
|
134156
134210
|
import * as fs45 from "node:fs";
|
|
134157
134211
|
import * as os14 from "node:os";
|
|
@@ -134271,7 +134325,7 @@ function readShortMachineId(hqRoot) {
|
|
|
134271
134325
|
return createHash27("sha1").update(full).digest("hex").slice(0, 6);
|
|
134272
134326
|
}
|
|
134273
134327
|
|
|
134274
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134328
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
134275
134329
|
var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
|
|
134276
134330
|
var CONFLICT_PROBE_DIR = ".hq/tmp";
|
|
134277
134331
|
function safeTimestamp(detectedAt) {
|
|
@@ -134289,7 +134343,7 @@ function buildConflictId(originalRelative, detectedAt) {
|
|
|
134289
134343
|
return `${safePath}-${safeTimestamp(detectedAt)}`;
|
|
134290
134344
|
}
|
|
134291
134345
|
|
|
134292
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134346
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
|
|
134293
134347
|
import * as crypto14 from "crypto";
|
|
134294
134348
|
import * as fs46 from "fs";
|
|
134295
134349
|
import * as path42 from "path";
|
|
@@ -134443,7 +134497,7 @@ function pruneConflictIndex(hqRoot) {
|
|
|
134443
134497
|
return result;
|
|
134444
134498
|
}
|
|
134445
134499
|
|
|
134446
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134500
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
|
|
134447
134501
|
import * as fs47 from "node:fs";
|
|
134448
134502
|
function isAppendOnlyPath(relativePath) {
|
|
134449
134503
|
const base = relativePath.split(/[\\/]/).pop() ?? "";
|
|
@@ -134515,7 +134569,7 @@ function appendIfUnchanged(file2, expected, merged) {
|
|
|
134515
134569
|
return "appended";
|
|
134516
134570
|
}
|
|
134517
134571
|
|
|
134518
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134572
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
|
|
134519
134573
|
import * as fs48 from "node:fs";
|
|
134520
134574
|
import * as path43 from "node:path";
|
|
134521
134575
|
function isBoardJsonPath(relativePath) {
|
|
@@ -134661,7 +134715,7 @@ function replaceIfUnchanged(file2, expected, merged) {
|
|
|
134661
134715
|
return "appended";
|
|
134662
134716
|
}
|
|
134663
134717
|
|
|
134664
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134718
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
|
|
134665
134719
|
var SAME_PATH_UPLOAD_WAIT_MS = 6e4;
|
|
134666
134720
|
var SAME_PATH_LANDED_KEY_CAP = 4096;
|
|
134667
134721
|
var SAME_PATH_LANDED_PER_KEY_CAP = 8;
|
|
@@ -134851,7 +134905,7 @@ var SamePathUploadSupersededError = class extends Error {
|
|
|
134851
134905
|
}
|
|
134852
134906
|
};
|
|
134853
134907
|
|
|
134854
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134908
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
|
|
134855
134909
|
init_dist();
|
|
134856
134910
|
import { createHash as createHash28 } from "node:crypto";
|
|
134857
134911
|
var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
|
|
@@ -134945,7 +134999,7 @@ ${caller}`;
|
|
|
134945
134999
|
return failed ? false : value;
|
|
134946
135000
|
}
|
|
134947
135001
|
|
|
134948
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135002
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
|
|
134949
135003
|
import fs49 from "node:fs";
|
|
134950
135004
|
import path44 from "node:path";
|
|
134951
135005
|
var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
|
|
@@ -135011,7 +135065,7 @@ function entityIsFreshForCreate(body, nowMs) {
|
|
|
135011
135065
|
return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
|
|
135012
135066
|
}
|
|
135013
135067
|
|
|
135014
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135068
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
|
|
135015
135069
|
init_dist();
|
|
135016
135070
|
import { createHash as createHash29 } from "node:crypto";
|
|
135017
135071
|
var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
|
|
@@ -135085,7 +135139,7 @@ ${caller}`;
|
|
|
135085
135139
|
return failed ? false : value;
|
|
135086
135140
|
}
|
|
135087
135141
|
|
|
135088
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135142
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
|
|
135089
135143
|
init_dist();
|
|
135090
135144
|
import { createHash as createHash30 } from "node:crypto";
|
|
135091
135145
|
var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
|
|
@@ -135148,7 +135202,7 @@ ${caller}`;
|
|
|
135148
135202
|
return failed ? false : value;
|
|
135149
135203
|
}
|
|
135150
135204
|
|
|
135151
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135205
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
|
|
135152
135206
|
import * as path45 from "node:path";
|
|
135153
135207
|
var MAX_DIAGNOSTIC_LENGTH = 1024;
|
|
135154
135208
|
function sanitizeDiagnostic(value) {
|
|
@@ -135281,7 +135335,7 @@ function pushFailureTelemetryLabel(value) {
|
|
|
135281
135335
|
return safe.slice(0, 128) || "unknown";
|
|
135282
135336
|
}
|
|
135283
135337
|
|
|
135284
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135338
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
|
|
135285
135339
|
import * as fs50 from "fs";
|
|
135286
135340
|
function toPortableSymlinkTarget(target, platform5 = process.platform) {
|
|
135287
135341
|
return platform5 === "win32" ? target.replaceAll("\\", "/") : target;
|
|
@@ -135300,14 +135354,14 @@ function readlinkOrNull(linkPath, readlink = (path76) => fs50.readlinkSync(path7
|
|
|
135300
135354
|
}
|
|
135301
135355
|
}
|
|
135302
135356
|
|
|
135303
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135357
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
|
|
135304
135358
|
function checkpointReconcileApply(checkpoint, paths) {
|
|
135305
135359
|
if (!checkpoint)
|
|
135306
135360
|
return;
|
|
135307
135361
|
checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path76) => ({ path: path76, durable: true })));
|
|
135308
135362
|
}
|
|
135309
135363
|
|
|
135310
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135364
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
|
|
135311
135365
|
init_dist();
|
|
135312
135366
|
import { createHash as createHash31 } from "node:crypto";
|
|
135313
135367
|
var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
|
|
@@ -135452,7 +135506,7 @@ function warnFlagReadFailure(write) {
|
|
|
135452
135506
|
`)))(line);
|
|
135453
135507
|
}
|
|
135454
135508
|
|
|
135455
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135509
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
135456
135510
|
async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
|
|
135457
135511
|
const probeKey = crypto15.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
|
|
135458
135512
|
const probePath = path46.join(os15.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
|
|
@@ -140214,11 +140268,11 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
|
|
|
140214
140268
|
return out;
|
|
140215
140269
|
}
|
|
140216
140270
|
|
|
140217
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140271
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
140218
140272
|
import * as fs59 from "fs";
|
|
140219
140273
|
import * as path54 from "path";
|
|
140220
140274
|
|
|
140221
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140275
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
|
|
140222
140276
|
import * as fs52 from "node:fs";
|
|
140223
140277
|
import * as os16 from "node:os";
|
|
140224
140278
|
import * as path47 from "node:path";
|
|
@@ -140297,7 +140351,7 @@ function* readRows(filename) {
|
|
|
140297
140351
|
}
|
|
140298
140352
|
}
|
|
140299
140353
|
|
|
140300
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140354
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
140301
140355
|
import { execFile as execFile6 } from "child_process";
|
|
140302
140356
|
import { randomBytes as randomBytes12 } from "crypto";
|
|
140303
140357
|
import * as fs54 from "fs";
|
|
@@ -140305,7 +140359,7 @@ import * as os17 from "os";
|
|
|
140305
140359
|
import * as path49 from "path";
|
|
140306
140360
|
import { promisify as promisify6 } from "util";
|
|
140307
140361
|
|
|
140308
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140362
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
|
|
140309
140363
|
import * as crypto16 from "crypto";
|
|
140310
140364
|
import * as fs53 from "fs";
|
|
140311
140365
|
import * as path48 from "path";
|
|
@@ -140491,7 +140545,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
|
|
|
140491
140545
|
return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
|
|
140492
140546
|
}
|
|
140493
140547
|
|
|
140494
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140548
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
140495
140549
|
var execFileAsync5 = promisify6(execFile6);
|
|
140496
140550
|
var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
|
|
140497
140551
|
function gitSidecarDir(hqRoot, homeDir = os17.homedir()) {
|
|
@@ -140864,10 +140918,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
|
|
|
140864
140918
|
};
|
|
140865
140919
|
}
|
|
140866
140920
|
|
|
140867
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140921
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
|
|
140868
140922
|
var SKILLS_KEY_PREFIX = ".claude/skills/";
|
|
140869
140923
|
|
|
140870
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140924
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
|
|
140871
140925
|
var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
|
|
140872
140926
|
function rawSha256FromContentHash(contentHash) {
|
|
140873
140927
|
if (contentHash === void 0)
|
|
@@ -140878,7 +140932,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
|
|
|
140878
140932
|
return rawSha256FromContentHash(contentHash) === rawHash;
|
|
140879
140933
|
}
|
|
140880
140934
|
|
|
140881
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140935
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
|
|
140882
140936
|
import { createHash as createHash34 } from "node:crypto";
|
|
140883
140937
|
var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
|
|
140884
140938
|
var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
|
|
@@ -140903,7 +140957,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
|
|
|
140903
140957
|
return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
|
|
140904
140958
|
}
|
|
140905
140959
|
|
|
140906
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140960
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
|
|
140907
140961
|
init_dist();
|
|
140908
140962
|
import { createHash as createHash35 } from "node:crypto";
|
|
140909
140963
|
function logSwallowed8(line) {
|
|
@@ -141020,7 +141074,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
|
|
|
141020
141074
|
return defaultTargetedUpsertExactListGate(config2, companyUid);
|
|
141021
141075
|
}
|
|
141022
141076
|
|
|
141023
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141077
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
|
|
141024
141078
|
var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
|
|
141025
141079
|
function coalesceDenseTargetedPullPaths(paths) {
|
|
141026
141080
|
const normalized = paths.map((path76) => path76.replace(/\\/g, "/"));
|
|
@@ -141058,15 +141112,15 @@ function coalesceDenseTargetedPullPaths(paths) {
|
|
|
141058
141112
|
return result;
|
|
141059
141113
|
}
|
|
141060
141114
|
|
|
141061
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141115
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
141062
141116
|
import { createHash as createHash38 } from "node:crypto";
|
|
141063
141117
|
|
|
141064
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141118
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
141065
141119
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
141066
141120
|
import * as fs58 from "fs";
|
|
141067
141121
|
import * as path53 from "path";
|
|
141068
141122
|
|
|
141069
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141123
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
|
|
141070
141124
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
141071
141125
|
import * as fs55 from "fs";
|
|
141072
141126
|
import * as path50 from "path";
|
|
@@ -141329,7 +141383,7 @@ function materializeLegacyKnowledgeRepos(root5) {
|
|
|
141329
141383
|
}
|
|
141330
141384
|
}
|
|
141331
141385
|
|
|
141332
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141386
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
|
|
141333
141387
|
import * as crypto17 from "node:crypto";
|
|
141334
141388
|
import * as fs56 from "node:fs";
|
|
141335
141389
|
import * as os18 from "node:os";
|
|
@@ -142273,7 +142327,7 @@ function captureSessionLogs(root5, options = {}) {
|
|
|
142273
142327
|
}
|
|
142274
142328
|
}
|
|
142275
142329
|
|
|
142276
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
142330
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
|
|
142277
142331
|
import * as crypto18 from "node:crypto";
|
|
142278
142332
|
import * as fs57 from "node:fs";
|
|
142279
142333
|
import * as os19 from "node:os";
|
|
@@ -142534,7 +142588,7 @@ function pruneSyncedSessionLogs(root5) {
|
|
|
142534
142588
|
}
|
|
142535
142589
|
}
|
|
142536
142590
|
|
|
142537
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
142591
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
142538
142592
|
function isDir2(p3) {
|
|
142539
142593
|
try {
|
|
142540
142594
|
return fs58.statSync(p3).isDirectory();
|
|
@@ -143088,7 +143142,7 @@ function emitReindexTelemetry(opts, result, lockResult) {
|
|
|
143088
143142
|
}, { claims: opts.telemetryClaims });
|
|
143089
143143
|
}
|
|
143090
143144
|
|
|
143091
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
143145
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
143092
143146
|
async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
|
|
143093
143147
|
work.rowsSinceYield += 1;
|
|
143094
143148
|
if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
|
|
@@ -146847,7 +146901,7 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
146847
146901
|
}
|
|
146848
146902
|
}
|
|
146849
146903
|
|
|
146850
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
146904
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
146851
146905
|
import { createRequire } from "node:module";
|
|
146852
146906
|
var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
|
|
146853
146907
|
var require2 = createRequire(import.meta.url);
|
|
@@ -146857,7 +146911,7 @@ var PRECLONE_FREE_SPACE_FLOOR_BYTES = 1024 ** 3;
|
|
|
146857
146911
|
var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
|
|
146858
146912
|
var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
|
|
146859
146913
|
|
|
146860
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
146914
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
|
|
146861
146915
|
var SOURCE_CHANNELS = Object.freeze([
|
|
146862
146916
|
"meeting",
|
|
146863
146917
|
"email",
|
|
@@ -146866,7 +146920,7 @@ var SOURCE_CHANNELS = Object.freeze([
|
|
|
146866
146920
|
"notion"
|
|
146867
146921
|
]);
|
|
146868
146922
|
|
|
146869
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
146923
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
|
|
146870
146924
|
var SIGNAL_TYPES = Object.freeze([
|
|
146871
146925
|
"action_item",
|
|
146872
146926
|
"commitment",
|
|
@@ -146876,7 +146930,7 @@ var SIGNAL_TYPES = Object.freeze([
|
|
|
146876
146930
|
"summary"
|
|
146877
146931
|
]);
|
|
146878
146932
|
|
|
146879
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
146933
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
|
|
146880
146934
|
var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
|
|
146881
146935
|
var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
|
|
146882
146936
|
function parseFeatureSwitch(value) {
|
|
@@ -146945,7 +146999,7 @@ function isEventSyncLocallyDisabled(value) {
|
|
|
146945
146999
|
}
|
|
146946
147000
|
}
|
|
146947
147001
|
|
|
146948
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147002
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
|
|
146949
147003
|
var import_client_cloudwatch = __toESM(require_dist_cjs40(), 1);
|
|
146950
147004
|
var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
|
|
146951
147005
|
var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
|
|
@@ -147013,7 +147067,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
|
|
|
147013
147067
|
}
|
|
147014
147068
|
}
|
|
147015
147069
|
|
|
147016
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147070
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
|
|
147017
147071
|
var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
|
|
147018
147072
|
var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
|
|
147019
147073
|
var DEFAULT_WAIT_TIME_SECONDS = 20;
|
|
@@ -148546,10 +148600,10 @@ function defaultSleep(ms, signal) {
|
|
|
148546
148600
|
});
|
|
148547
148601
|
}
|
|
148548
148602
|
|
|
148549
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
148603
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
|
|
148550
148604
|
var import_pino = __toESM(require_pino(), 1);
|
|
148551
148605
|
|
|
148552
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
148606
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
|
|
148553
148607
|
function assertCanonicalPath(path76) {
|
|
148554
148608
|
if (path76.length === 0 || path76.startsWith("/") || path76.endsWith("/") || path76.includes("\\") || path76.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
|
|
148555
148609
|
throw new Error(`path lease requires a canonical relative path: ${path76}`);
|
|
@@ -148612,7 +148666,7 @@ var PathLease = class {
|
|
|
148612
148666
|
}
|
|
148613
148667
|
};
|
|
148614
148668
|
|
|
148615
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
148669
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
|
|
148616
148670
|
var MAX_REALTIME_PULL_YIELDS = 3;
|
|
148617
148671
|
var MAX_REALTIME_PULL_YIELD_MS = 6e4;
|
|
148618
148672
|
var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
|
|
@@ -149119,7 +149173,7 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
149119
149173
|
}
|
|
149120
149174
|
};
|
|
149121
149175
|
|
|
149122
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149176
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
|
|
149123
149177
|
var InlineSyncWorkerAdapter = class {
|
|
149124
149178
|
handler;
|
|
149125
149179
|
constructor(handler) {
|
|
@@ -149130,11 +149184,11 @@ var InlineSyncWorkerAdapter = class {
|
|
|
149130
149184
|
}
|
|
149131
149185
|
};
|
|
149132
149186
|
|
|
149133
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149187
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
149134
149188
|
import * as fs61 from "node:fs";
|
|
149135
149189
|
import * as path57 from "node:path";
|
|
149136
149190
|
|
|
149137
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149191
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
|
|
149138
149192
|
import * as path55 from "node:path";
|
|
149139
149193
|
var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
149140
149194
|
function isSafeCompanySlug(companiesDir, slug) {
|
|
@@ -149151,7 +149205,7 @@ function isSafeCompanySlug(companiesDir, slug) {
|
|
|
149151
149205
|
return path55.dirname(companyDir) === resolvedCompaniesDir;
|
|
149152
149206
|
}
|
|
149153
149207
|
|
|
149154
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
|
|
149155
149209
|
var SYNC_MANIFEST_CONTRACT_VERSION = 1;
|
|
149156
149210
|
var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
|
|
149157
149211
|
var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
|
|
@@ -149320,7 +149374,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
|
|
|
149320
149374
|
}
|
|
149321
149375
|
};
|
|
149322
149376
|
|
|
149323
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149377
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
|
|
149324
149378
|
import * as crypto19 from "node:crypto";
|
|
149325
149379
|
import * as fs60 from "node:fs";
|
|
149326
149380
|
import * as path56 from "node:path";
|
|
@@ -149495,7 +149549,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
|
|
|
149495
149549
|
}
|
|
149496
149550
|
var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
|
|
149497
149551
|
|
|
149498
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149552
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
149499
149553
|
function logSwallowed11(line) {
|
|
149500
149554
|
process.stderr.write(line);
|
|
149501
149555
|
}
|
|
@@ -150104,7 +150158,7 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
|
|
|
150104
150158
|
return upload;
|
|
150105
150159
|
}
|
|
150106
150160
|
|
|
150107
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
150161
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
150108
150162
|
import * as fs62 from "node:fs";
|
|
150109
150163
|
var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
|
|
150110
150164
|
var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -150673,7 +150727,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
150673
150727
|
};
|
|
150674
150728
|
}
|
|
150675
150729
|
|
|
150676
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
150730
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
|
|
150677
150731
|
import * as fs63 from "node:fs";
|
|
150678
150732
|
import * as path58 from "node:path";
|
|
150679
150733
|
import { createHash as createHash40, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -150921,7 +150975,7 @@ function validUnresolvedCompanyRecord(value) {
|
|
|
150921
150975
|
return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
|
|
150922
150976
|
}
|
|
150923
150977
|
|
|
150924
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
150978
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/version.js
|
|
150925
150979
|
import { readFileSync as readFileSync36 } from "node:fs";
|
|
150926
150980
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
150927
150981
|
import path59 from "node:path";
|
|
@@ -150929,7 +150983,7 @@ var here = path59.dirname(fileURLToPath4(import.meta.url));
|
|
|
150929
150983
|
var pkg = JSON.parse(readFileSync36(path59.resolve(here, "..", "package.json"), "utf-8"));
|
|
150930
150984
|
var HQ_CLOUD_VERSION = pkg.version;
|
|
150931
150985
|
|
|
150932
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
150986
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
|
|
150933
150987
|
import { promises as fs64 } from "node:fs";
|
|
150934
150988
|
import * as os20 from "node:os";
|
|
150935
150989
|
import * as path60 from "node:path";
|
|
@@ -151303,7 +151357,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
|
|
|
151303
151357
|
return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
|
|
151304
151358
|
}
|
|
151305
151359
|
|
|
151306
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
151360
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
|
|
151307
151361
|
import * as fs65 from "fs";
|
|
151308
151362
|
import * as path61 from "path";
|
|
151309
151363
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -151953,7 +152007,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
|
|
|
151953
152007
|
return false;
|
|
151954
152008
|
}
|
|
151955
152009
|
|
|
151956
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152010
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
|
|
151957
152011
|
import fs66 from "node:fs";
|
|
151958
152012
|
import path62 from "node:path";
|
|
151959
152013
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
@@ -152057,7 +152111,7 @@ nonce=${nonce}
|
|
|
152057
152111
|
};
|
|
152058
152112
|
}
|
|
152059
152113
|
|
|
152060
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152114
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/telemetry-admission.js
|
|
152061
152115
|
var DEFAULT_INTERVAL_MS = 10 * 60 * 1e3;
|
|
152062
152116
|
var MAX_INTERVAL_SEC = 24 * 60 * 60;
|
|
152063
152117
|
var STALE_IN_FLIGHT_TIMEOUT_MULTIPLE = 5;
|
|
@@ -152134,7 +152188,7 @@ function recordTelemetryRunStarted(store, nowMs, run) {
|
|
|
152134
152188
|
store.inFlight = tracked;
|
|
152135
152189
|
}
|
|
152136
152190
|
|
|
152137
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152191
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
|
|
152138
152192
|
import { Worker } from "node:worker_threads";
|
|
152139
152193
|
function reindexAsync(options) {
|
|
152140
152194
|
if (import.meta.url.endsWith(".ts"))
|
|
@@ -152193,7 +152247,7 @@ function reindexAsync(options) {
|
|
|
152193
152247
|
});
|
|
152194
152248
|
}
|
|
152195
152249
|
|
|
152196
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152250
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
|
|
152197
152251
|
import * as crypto20 from "crypto";
|
|
152198
152252
|
import * as fs67 from "fs";
|
|
152199
152253
|
import * as os21 from "os";
|
|
@@ -152353,7 +152407,7 @@ function materializeCodexAgents(opts) {
|
|
|
152353
152407
|
}
|
|
152354
152408
|
}
|
|
152355
152409
|
|
|
152356
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152410
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
|
|
152357
152411
|
var POST_SYNC_FLAG_KEYS = {
|
|
152358
152412
|
qmdReindex: "sync.qmd-reindex",
|
|
152359
152413
|
conflictPrune: "sync.conflict-prune",
|
|
@@ -152373,12 +152427,12 @@ function createPostSyncFlagEvaluator(options = {}) {
|
|
|
152373
152427
|
};
|
|
152374
152428
|
}
|
|
152375
152429
|
|
|
152376
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152430
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
152377
152431
|
import { createHash as createHash41, randomUUID as randomUUID9 } from "node:crypto";
|
|
152378
152432
|
import * as fs69 from "node:fs/promises";
|
|
152379
152433
|
import * as path65 from "node:path";
|
|
152380
152434
|
|
|
152381
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152435
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
|
|
152382
152436
|
import * as fs68 from "node:fs";
|
|
152383
152437
|
import * as os22 from "node:os";
|
|
152384
152438
|
import * as path64 from "node:path";
|
|
@@ -152428,7 +152482,7 @@ function readDesktopInstallationId(options) {
|
|
|
152428
152482
|
return void 0;
|
|
152429
152483
|
}
|
|
152430
152484
|
|
|
152431
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152485
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
152432
152486
|
var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
|
|
152433
152487
|
var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
|
|
152434
152488
|
var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
|
|
@@ -153050,14 +153104,14 @@ async function runPostSyncManifestUploads(options) {
|
|
|
153050
153104
|
return emitted;
|
|
153051
153105
|
}
|
|
153052
153106
|
|
|
153053
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153107
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
|
|
153054
153108
|
var PARTIAL_SYNC_EXIT = 2;
|
|
153055
153109
|
var UNRESOLVED_COMPANY_EXIT = 19;
|
|
153056
153110
|
var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
|
|
153057
153111
|
var WATCH_OWNER_LEASE_LOST_EXIT = 21;
|
|
153058
153112
|
var PREFLIGHT_HALT_EXIT = 22;
|
|
153059
153113
|
|
|
153060
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153114
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
|
|
153061
153115
|
import * as crypto21 from "node:crypto";
|
|
153062
153116
|
import * as fs70 from "node:fs";
|
|
153063
153117
|
import * as path66 from "node:path";
|
|
@@ -153106,7 +153160,7 @@ function hashNormalizedKey(key) {
|
|
|
153106
153160
|
return crypto21.createHash("sha256").update(normalized, "utf8").digest("hex");
|
|
153107
153161
|
}
|
|
153108
153162
|
|
|
153109
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153163
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
|
|
153110
153164
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
153111
153165
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
153112
153166
|
import * as fs71 from "node:fs";
|
|
@@ -153477,7 +153531,7 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
|
|
|
153477
153531
|
};
|
|
153478
153532
|
}
|
|
153479
153533
|
|
|
153480
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153534
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
|
|
153481
153535
|
var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
|
|
153482
153536
|
function processExists(pid) {
|
|
153483
153537
|
try {
|
|
@@ -153528,7 +153582,7 @@ function startWatchParentExitMonitor(options) {
|
|
|
153528
153582
|
};
|
|
153529
153583
|
}
|
|
153530
153584
|
|
|
153531
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153585
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
|
|
153532
153586
|
var ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
153533
153587
|
"error",
|
|
153534
153588
|
"auth-error"
|
|
@@ -153574,7 +153628,7 @@ function emitUncaughtRunnerError(err, streams) {
|
|
|
153574
153628
|
}
|
|
153575
153629
|
}
|
|
153576
153630
|
|
|
153577
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153631
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
|
|
153578
153632
|
import { format as format4 } from "node:util";
|
|
153579
153633
|
function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
|
|
153580
153634
|
const writeDiagnostic = (...args) => {
|
|
@@ -153590,7 +153644,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
|
|
|
153590
153644
|
return startRunner();
|
|
153591
153645
|
}
|
|
153592
153646
|
|
|
153593
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153647
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
|
|
153594
153648
|
function verifiedMemberCompanyUids(options) {
|
|
153595
153649
|
if (!options.companies)
|
|
153596
153650
|
return void 0;
|
|
@@ -153755,7 +153809,7 @@ function emitFanoutPlan(emit, plan) {
|
|
|
153755
153809
|
emit({ type: "fanout-plan", companies: plan });
|
|
153756
153810
|
}
|
|
153757
153811
|
|
|
153758
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153812
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
|
|
153759
153813
|
import * as fs72 from "node:fs";
|
|
153760
153814
|
import * as path68 from "node:path";
|
|
153761
153815
|
function buildPassRequestArgv(passArgv, company) {
|
|
@@ -154006,7 +154060,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
|
|
|
154006
154060
|
}
|
|
154007
154061
|
};
|
|
154008
154062
|
|
|
154009
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154063
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
|
|
154010
154064
|
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
154011
154065
|
import * as fs73 from "node:fs";
|
|
154012
154066
|
import * as path69 from "node:path";
|
|
@@ -154098,7 +154152,7 @@ function seedActiveCompany(options) {
|
|
|
154098
154152
|
return { written: true, activeCompany };
|
|
154099
154153
|
}
|
|
154100
154154
|
|
|
154101
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154155
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
|
|
154102
154156
|
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
154103
154157
|
import * as fs74 from "node:fs";
|
|
154104
154158
|
import * as path70 from "node:path";
|
|
@@ -154320,17 +154374,17 @@ async function reconcileCompanyManifest(options) {
|
|
|
154320
154374
|
return reconcileManifest(options.hqRoot, resolvedTargets);
|
|
154321
154375
|
}
|
|
154322
154376
|
|
|
154323
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154377
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
154324
154378
|
import * as fs75 from "fs";
|
|
154325
154379
|
import * as path71 from "path";
|
|
154326
154380
|
import { createHash as createHash43, randomUUID as randomUUID13 } from "node:crypto";
|
|
154327
154381
|
|
|
154328
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154382
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
|
|
154329
154383
|
function allowsLegacyNetwork(decision) {
|
|
154330
154384
|
return decision.network === "allow-legacy";
|
|
154331
154385
|
}
|
|
154332
154386
|
|
|
154333
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154387
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/lib/sync-leg-error-summary.js
|
|
154334
154388
|
import os23 from "node:os";
|
|
154335
154389
|
var ERRNO_NAMES = new Set(Object.keys(os23.constants.errno));
|
|
154336
154390
|
var EXTRA_CODES = /* @__PURE__ */ new Set([
|
|
@@ -154535,7 +154589,7 @@ function buildSyncLegErrorSummary(input2) {
|
|
|
154535
154589
|
return segments.join(":").slice(0, 128);
|
|
154536
154590
|
}
|
|
154537
154591
|
|
|
154538
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154592
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
|
|
154539
154593
|
function createCompanyState(company) {
|
|
154540
154594
|
return {
|
|
154541
154595
|
company,
|
|
@@ -154597,7 +154651,7 @@ function rollupAllComplete(plan, stateByCompany) {
|
|
|
154597
154651
|
};
|
|
154598
154652
|
}
|
|
154599
154653
|
|
|
154600
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154654
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
154601
154655
|
var PRUNED_SAMPLE_PATHS = 5;
|
|
154602
154656
|
function journalErrorClass(error64) {
|
|
154603
154657
|
if (error64 instanceof JournalIncompleteUpsertError)
|
|
@@ -155705,7 +155759,7 @@ function normalizePullChangedPaths(target, changedPaths) {
|
|
|
155705
155759
|
});
|
|
155706
155760
|
}
|
|
155707
155761
|
|
|
155708
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155762
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
|
|
155709
155763
|
async function emitTelemetry(options) {
|
|
155710
155764
|
const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
|
|
155711
155765
|
return telemetryFn().catch((err) => {
|
|
@@ -155717,7 +155771,7 @@ async function emitTelemetry(options) {
|
|
|
155717
155771
|
});
|
|
155718
155772
|
}
|
|
155719
155773
|
|
|
155720
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155774
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
155721
155775
|
import * as os24 from "os";
|
|
155722
155776
|
import * as path74 from "path";
|
|
155723
155777
|
import * as fs78 from "fs";
|
|
@@ -155725,7 +155779,7 @@ import { createHash as createHash44 } from "node:crypto";
|
|
|
155725
155779
|
import * as v8 from "node:v8";
|
|
155726
155780
|
import { performance as performance3 } from "node:perf_hooks";
|
|
155727
155781
|
|
|
155728
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155782
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
|
|
155729
155783
|
var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
|
|
155730
155784
|
var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
|
|
155731
155785
|
var RoutePushFailureBackoff = class {
|
|
@@ -155752,12 +155806,12 @@ var systemPushRetryScheduler = {
|
|
|
155752
155806
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
155753
155807
|
};
|
|
155754
155808
|
|
|
155755
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155809
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
155756
155810
|
var import_client_sqs = __toESM(require_dist_cjs42(), 1);
|
|
155757
155811
|
import { readFileSync as readFileSync43 } from "node:fs";
|
|
155758
155812
|
import { join as join71 } from "node:path";
|
|
155759
155813
|
|
|
155760
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155814
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
|
|
155761
155815
|
import * as fs76 from "node:fs";
|
|
155762
155816
|
import * as path72 from "node:path";
|
|
155763
155817
|
function logSwallowed13(line) {
|
|
@@ -155823,7 +155877,7 @@ function isInboundEventPlaceable(hqRoot, event) {
|
|
|
155823
155877
|
}
|
|
155824
155878
|
}
|
|
155825
155879
|
|
|
155826
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155880
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
|
|
155827
155881
|
import fs77 from "node:fs";
|
|
155828
155882
|
import path73 from "node:path";
|
|
155829
155883
|
function journalCoordinatesForPushEvent(relativePath) {
|
|
@@ -155865,7 +155919,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
|
|
|
155865
155919
|
return unchanged;
|
|
155866
155920
|
}
|
|
155867
155921
|
|
|
155868
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155922
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
155869
155923
|
function resolveEventSync(override) {
|
|
155870
155924
|
return !isEventSyncLocallyDisabled(override);
|
|
155871
155925
|
}
|
|
@@ -156577,7 +156631,7 @@ async function startEventSync(opts) {
|
|
|
156577
156631
|
};
|
|
156578
156632
|
}
|
|
156579
156633
|
|
|
156580
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156634
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
|
|
156581
156635
|
var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
|
|
156582
156636
|
var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
|
|
156583
156637
|
var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
|
|
@@ -156730,7 +156784,7 @@ function describe3(error64) {
|
|
|
156730
156784
|
return error64 instanceof Error ? error64.message : String(error64);
|
|
156731
156785
|
}
|
|
156732
156786
|
|
|
156733
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156787
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
|
|
156734
156788
|
import * as perfHooks from "node:perf_hooks";
|
|
156735
156789
|
var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
|
|
156736
156790
|
var HeapCensus = class {
|
|
@@ -157717,7 +157771,7 @@ function nodeHeapReaders(v82) {
|
|
|
157717
157771
|
};
|
|
157718
157772
|
}
|
|
157719
157773
|
|
|
157720
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
157774
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
|
|
157721
157775
|
var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
|
|
157722
157776
|
var MAX_CLOCK_DRIFT_MS = 5e3;
|
|
157723
157777
|
var FullPassContinuity = class {
|
|
@@ -157772,7 +157826,7 @@ function canSkipScheduledFullReconcile(proof) {
|
|
|
157772
157826
|
return true;
|
|
157773
157827
|
}
|
|
157774
157828
|
|
|
157775
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
157829
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
157776
157830
|
var FULL_RECONCILE_EVERY_TICKS = 10;
|
|
157777
157831
|
var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
|
|
157778
157832
|
var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
|
|
@@ -163154,7 +163208,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
163154
163208
|
}
|
|
163155
163209
|
}
|
|
163156
163210
|
|
|
163157
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
163211
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
|
|
163158
163212
|
var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
|
|
163159
163213
|
var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
|
|
163160
163214
|
var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
|
|
@@ -163227,7 +163281,7 @@ async function waitForValidAuth(opts) {
|
|
|
163227
163281
|
return "stopped";
|
|
163228
163282
|
}
|
|
163229
163283
|
|
|
163230
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
163284
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.103/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
163231
163285
|
var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
|
|
163232
163286
|
var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
|
|
163233
163287
|
var DEFAULT_COGNITO = {
|