@indigoai-us/hq-cli 5.345.237 → 5.345.241
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 +33 -0
- package/assets/scaffold/core/scripts/hq-delegate-repo.sh +7 -1
- package/assets/scaffold/core/scripts/hq-delegate-secrets.sh +95 -20
- package/assets/scaffold/core/scripts/hq-delegate-transfer.sh +57 -9
- package/dist/command-catalog.generated.d.ts +185 -3
- package/dist/command-catalog.generated.js +228 -3
- package/dist/command-registration-plan.d.ts +6 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/bot.d.ts +2 -0
- package/dist/commands/bot.js +23 -0
- package/dist/commands/cloud-off-gate.d.ts +2 -1
- package/dist/commands/cloud-off-gate.js +17 -4
- package/dist/commands/cloud.d.ts +17 -2
- package/dist/commands/cloud.js +126 -24
- package/dist/commands/core-delegate-w1b.js +35 -10
- package/dist/commands/core-delegate.d.ts +2 -1
- package/dist/commands/core-delegate.js +207 -48
- package/dist/commands/deploy-comments.js +8 -2
- package/dist/commands/deploy-events.d.ts +40 -0
- package/dist/commands/deploy-events.js +300 -0
- package/dist/commands/doctor.d.ts +4 -4
- package/dist/commands/doctor.js +2 -2
- package/dist/commands/feedback.js +2 -3
- package/dist/commands/keyed-sync-pull.d.ts +12 -0
- package/dist/commands/keyed-sync-pull.js +151 -0
- package/dist/commands/library-add.d.ts +5 -2
- package/dist/commands/library-add.js +22 -9
- package/dist/commands/mcp-registration.d.ts +4 -18
- package/dist/commands/mcp-registration.js +9 -29
- package/dist/commands/mesh.d.ts +4 -0
- package/dist/commands/mesh.js +25 -5
- package/dist/commands/pack-install.d.ts +2 -3
- package/dist/commands/pack-install.js +6 -8
- package/dist/commands/secrets.d.ts +3 -4
- package/dist/commands/secrets.js +3 -20
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +307 -232
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/agent-kit/inbox-state.d.ts +2 -1
- package/dist/lib/agent-kit/inbox-state.js +27 -3
- package/dist/lib/bot/api.d.ts +2 -1
- package/dist/lib/bot/api.js +2 -15
- package/dist/lib/bot/promote.d.ts +23 -0
- package/dist/lib/bot/promote.js +73 -0
- package/dist/lib/bot/promotion-hold-reconcile.d.ts +56 -0
- package/dist/lib/bot/promotion-hold-reconcile.js +155 -0
- package/dist/lib/capacity/collectors/claude-oauth.d.ts +0 -2
- package/dist/lib/capacity/collectors/claude-oauth.js +0 -5
- package/dist/lib/core-utils/delegate-helper-paths.d.ts +26 -0
- package/dist/lib/core-utils/delegate-helper-paths.js +33 -0
- package/dist/lib/daemon/jq-provision.d.ts +63 -0
- package/dist/lib/daemon/jq-provision.js +155 -0
- package/dist/lib/daemon/lanes-reconcile-guard.d.ts +4 -3
- package/dist/lib/daemon/lanes-reconcile-guard.js +4 -4
- package/dist/lib/daemon/mesh-owner.d.ts +4 -0
- package/dist/lib/daemon/mesh-owner.js +20 -0
- package/dist/lib/daemon/ops/policy.d.ts +3 -0
- package/dist/lib/daemon/ops/policy.js +32 -4
- package/dist/lib/daemon/run.d.ts +17 -1
- package/dist/lib/daemon/run.js +24 -3
- package/dist/lib/daemon/server.d.ts +6 -0
- package/dist/lib/daemon/server.js +5 -0
- package/dist/lib/daemon/verified-jq.d.ts +96 -0
- package/dist/lib/daemon/verified-jq.js +337 -0
- package/dist/lib/doctor/checks/jq.js +16 -0
- package/dist/lib/doctor/deep/executor.d.ts +7 -0
- package/dist/lib/doctor/deep/executor.js +1 -1
- package/dist/lib/doctor/deep/parity.js +1 -27
- package/dist/lib/doctor/deep/sandbox.d.ts +2 -2
- package/dist/lib/doctor/deep/sandbox.js +3 -19
- package/dist/lib/doctor/fix/refresh-sync-handoff.js +52 -21
- package/dist/lib/doctor/fixtures/discover.d.ts +2 -0
- package/dist/lib/doctor/fixtures/discover.js +1 -1
- package/dist/lib/doctor/json-output.d.ts +1 -1
- package/dist/lib/doctor/registry.d.ts +6 -7
- package/dist/lib/doctor/registry.js +6 -7
- package/dist/lib/doctor/report.d.ts +9 -10
- package/dist/lib/doctor/report.js +4 -4
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/jq/install.d.ts +27 -0
- package/dist/lib/jq/install.js +156 -0
- package/dist/lib/lanes/outpost-dispatch.d.ts +1 -1
- package/dist/lib/lanes/outpost-dispatch.js +13 -13
- package/dist/lib/lanes/outpost-pruner-install.js +1 -1
- package/dist/lib/mesh/live/daemon/doctor.js +7 -1
- package/dist/lib/mesh/live/daemon/install.d.ts +4 -0
- package/dist/lib/mesh/live/daemon/install.js +10 -0
- package/dist/lib/mesh/live/daemon/run.js +17 -0
- package/dist/lib/mesh/live/emit-retry.d.ts +20 -2
- package/dist/lib/mesh/live/emit-retry.js +57 -4
- package/dist/lib/mesh/live/emit.js +25 -4
- package/dist/lib/mesh/live/flush.d.ts +2 -0
- package/dist/lib/mesh/live/flush.js +21 -8
- package/dist/lib/mesh/live/spool.d.ts +9 -1
- package/dist/lib/mesh/live/spool.js +41 -29
- package/dist/lib/sync-core/rollout-state.d.ts +9 -1
- package/dist/lib/sync-core/rollout-state.js +34 -4
- package/dist/lib/windows/jq.d.ts +4 -0
- package/dist/lib/windows/jq.js +10 -39
- package/dist/lib/workers-registry/index.js +7 -11
- package/dist/utils/callback-port-busy.d.ts +2 -2
- package/dist/utils/callback-port-busy.js +2 -2
- package/dist/utils/cli-network-lifecycle.js +1 -0
- package/dist/utils/client-health-contract.d.ts +2 -0
- package/dist/utils/client-health-contract.js +1 -1
- package/dist/utils/client-health.js +1 -9
- package/dist/utils/cognito-config.js +5 -0
- package/dist/utils/cognito-session.d.ts +4 -6
- package/dist/utils/cognito-session.js +4 -24
- package/dist/utils/incomplete-install-error.js +1 -11
- package/dist/utils/install-tree-torn.d.ts +11 -0
- package/dist/utils/install-tree-torn.js +1 -1
- package/dist/utils/resident-package-preload.js +2 -1
- package/docs/anywhere-runtime.md +8 -0
- package/package.json +9 -9
|
@@ -50615,12 +50615,12 @@ var require_dist_cjs20 = __commonJS({
|
|
|
50615
50615
|
}
|
|
50616
50616
|
});
|
|
50617
50617
|
|
|
50618
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
50618
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
50619
50619
|
import * as crypto2 from "crypto";
|
|
50620
50620
|
import * as fs2 from "fs";
|
|
50621
50621
|
import * as path from "path";
|
|
50622
50622
|
|
|
50623
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
50623
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/fsync-compat.js
|
|
50624
50624
|
import * as fs from "node:fs";
|
|
50625
50625
|
var UNSUPPORTED_DIRECTORY_FSYNC_CODES = /* @__PURE__ */ new Set(["EINVAL", "ENOTSUP", "EOPNOTSUPP", "EPERM"]);
|
|
50626
50626
|
var loggedSkips = /* @__PURE__ */ new Set();
|
|
@@ -50644,7 +50644,7 @@ function fsyncWithCompatibility(fd, options) {
|
|
|
50644
50644
|
}
|
|
50645
50645
|
}
|
|
50646
50646
|
|
|
50647
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
50647
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
50648
50648
|
var RECORD_FORMAT = "hq-push-identity@2";
|
|
50649
50649
|
var MACHINE_FORMAT = "hq-push-identity-machine@1";
|
|
50650
50650
|
var PERSON_FORMAT = "hq-push-identity-person@1";
|
|
@@ -51440,7 +51440,7 @@ function writeJsonAtomic(filePath, value) {
|
|
|
51440
51440
|
}
|
|
51441
51441
|
}
|
|
51442
51442
|
|
|
51443
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
51443
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest-folder-alias.js
|
|
51444
51444
|
import * as fs3 from "node:fs";
|
|
51445
51445
|
import * as path2 from "node:path";
|
|
51446
51446
|
function readManifestCloudCompanies(hqRoot) {
|
|
@@ -51515,14 +51515,14 @@ function manifestFolderAlias(byUid, companyUid, cloudSlug, onDuplicate) {
|
|
|
51515
51515
|
return entry.slug;
|
|
51516
51516
|
}
|
|
51517
51517
|
|
|
51518
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
51518
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
51519
51519
|
import * as fs30 from "node:fs";
|
|
51520
51520
|
import * as os6 from "node:os";
|
|
51521
51521
|
import * as path25 from "node:path";
|
|
51522
51522
|
import { Session } from "node:inspector";
|
|
51523
51523
|
import { fileURLToPath as fileURLToPath3, pathToFileURL } from "node:url";
|
|
51524
51524
|
|
|
51525
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
51525
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
51526
51526
|
import * as fs29 from "fs";
|
|
51527
51527
|
import { createHash as createHash17 } from "node:crypto";
|
|
51528
51528
|
import { readFile as readFile3, stat as stat4 } from "node:fs/promises";
|
|
@@ -53218,7 +53218,7 @@ function watch(paths, options = {}) {
|
|
|
53218
53218
|
return watcher;
|
|
53219
53219
|
}
|
|
53220
53220
|
|
|
53221
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53221
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cloud-placeholder.js
|
|
53222
53222
|
import * as fs4 from "fs";
|
|
53223
53223
|
import * as path3 from "path";
|
|
53224
53224
|
var CLOUD_PLACEHOLDER_SUFFIX = ".hqcloud";
|
|
@@ -53656,18 +53656,18 @@ function writeCloudPlaceholder(placeholderPath, placeholder) {
|
|
|
53656
53656
|
}
|
|
53657
53657
|
}
|
|
53658
53658
|
|
|
53659
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53659
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
53660
53660
|
var import_ignore = __toESM(require_ignore(), 1);
|
|
53661
53661
|
import * as fs5 from "fs";
|
|
53662
53662
|
import * as path4 from "path";
|
|
53663
53663
|
|
|
53664
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53664
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/restore-staging.js
|
|
53665
53665
|
var RESTORE_STAGING_SUFFIX = /\.hq-restore-(?:\d+(?:-\d+)?|probe-\d+-[0-9a-z]+)$/i;
|
|
53666
53666
|
function isRestoreStagingPath(relativePath) {
|
|
53667
53667
|
return relativePath.split(/[\\/]/).some((segment) => RESTORE_STAGING_SUFFIX.test(segment));
|
|
53668
53668
|
}
|
|
53669
53669
|
|
|
53670
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53670
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/best-effort-error.js
|
|
53671
53671
|
var EXPECTED_ABSENCE_CODES = /* @__PURE__ */ new Set([
|
|
53672
53672
|
"ENOENT",
|
|
53673
53673
|
"NoSuchKey",
|
|
@@ -53709,7 +53709,7 @@ function noteSwallowedError(log, event, error62, options = {}) {
|
|
|
53709
53709
|
`);
|
|
53710
53710
|
}
|
|
53711
53711
|
|
|
53712
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53712
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/cloud-authoritative.js
|
|
53713
53713
|
var CLOUD_AUTHORITATIVE_PATTERNS = [
|
|
53714
53714
|
/^company-brief\.md$/,
|
|
53715
53715
|
/^board\.json$/,
|
|
@@ -53757,7 +53757,7 @@ function isPullReconciledServerOwned(relPath) {
|
|
|
53757
53757
|
return isCloudAuthoritative(vaultRel);
|
|
53758
53758
|
}
|
|
53759
53759
|
|
|
53760
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
53760
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
53761
53761
|
function logSwallowed(line) {
|
|
53762
53762
|
process.stderr.write(line);
|
|
53763
53763
|
}
|
|
@@ -54501,7 +54501,7 @@ function isWithinSizeLimit(filePath, maxBytes = SYNC_MAX_FILE_BYTES) {
|
|
|
54501
54501
|
}
|
|
54502
54502
|
}
|
|
54503
54503
|
|
|
54504
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54504
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/watch-roots.js
|
|
54505
54505
|
import * as fs6 from "fs";
|
|
54506
54506
|
import * as path5 from "path";
|
|
54507
54507
|
function defaultListChildDirs(dir, onSymlinkEntry) {
|
|
@@ -54575,7 +54575,7 @@ function isCoveredByRecursiveRoot(absolutePath, recursiveRoots) {
|
|
|
54575
54575
|
}
|
|
54576
54576
|
}
|
|
54577
54577
|
|
|
54578
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54578
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/watch-coverage.js
|
|
54579
54579
|
import * as fs7 from "fs";
|
|
54580
54580
|
function directoryIdentityAt(absolutePath) {
|
|
54581
54581
|
try {
|
|
@@ -54612,7 +54612,7 @@ function probeScopedWatchCoverage(input2) {
|
|
|
54612
54612
|
return { ok: true };
|
|
54613
54613
|
}
|
|
54614
54614
|
|
|
54615
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54615
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/local-path-codec.js
|
|
54616
54616
|
import * as path6 from "path";
|
|
54617
54617
|
var WIN32_RESERVED_CHARS = /[<>:"/\\|?*]/;
|
|
54618
54618
|
var WIN32_DEVICE_NAME = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i;
|
|
@@ -54670,7 +54670,7 @@ function canonicalVaultKeySpelling(key) {
|
|
|
54670
54670
|
return segments.join("/");
|
|
54671
54671
|
}
|
|
54672
54672
|
|
|
54673
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54673
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/personal-vault-exclusions.js
|
|
54674
54674
|
import * as path7 from "path";
|
|
54675
54675
|
import * as fs8 from "fs";
|
|
54676
54676
|
function hasSegment(relPath, segment) {
|
|
@@ -54967,7 +54967,7 @@ function wrapFilterWithPersonalVaultDefaults(underlying, syncRoot, onExcluded, o
|
|
|
54967
54967
|
};
|
|
54968
54968
|
}
|
|
54969
54969
|
|
|
54970
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
54970
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/state-store.js
|
|
54971
54971
|
import * as crypto3 from "node:crypto";
|
|
54972
54972
|
import * as fs9 from "node:fs";
|
|
54973
54973
|
import * as path8 from "node:path";
|
|
@@ -58023,11 +58023,11 @@ function crc32c(bytes) {
|
|
|
58023
58023
|
return (crc ^ 4294967295) >>> 0;
|
|
58024
58024
|
}
|
|
58025
58025
|
|
|
58026
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58026
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
58027
58027
|
import * as fs15 from "fs";
|
|
58028
58028
|
import * as path13 from "path";
|
|
58029
58029
|
|
|
58030
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58030
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
58031
58031
|
import * as fs14 from "fs";
|
|
58032
58032
|
import * as os2 from "os";
|
|
58033
58033
|
import * as path12 from "path";
|
|
@@ -58035,7 +58035,7 @@ import * as crypto8 from "crypto";
|
|
|
58035
58035
|
import { spawn } from "node:child_process";
|
|
58036
58036
|
import { fileURLToPath } from "node:url";
|
|
58037
58037
|
|
|
58038
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58038
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
|
|
58039
58039
|
var JOURNAL_DECODE_WINDOW = 1e4;
|
|
58040
58040
|
var rowsInFlight = 0;
|
|
58041
58041
|
var peakRowsInFlight = 0;
|
|
@@ -58094,7 +58094,7 @@ function journalFingerprintMatchesStat(fingerprint, lstat3) {
|
|
|
58094
58094
|
return lstat3.size === fingerprint.size && lstat3.mtimeMs === fingerprint.mtimeMs && lstat3.ctimeMs === fingerprint.ctimeMs;
|
|
58095
58095
|
}
|
|
58096
58096
|
|
|
58097
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58097
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
|
|
58098
58098
|
var HASH_BYTES = 32;
|
|
58099
58099
|
var ETAG_BYTES = 16;
|
|
58100
58100
|
var INITIAL_ROW_CAPACITY = 16;
|
|
@@ -59624,7 +59624,7 @@ function readOptionalBoolean(entry, key, flags, presentBit, valueBit) {
|
|
|
59624
59624
|
entry[key] = Boolean(flags & valueBit);
|
|
59625
59625
|
}
|
|
59626
59626
|
|
|
59627
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59627
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
|
|
59628
59628
|
var rowsByRecordProxy = /* @__PURE__ */ new WeakMap();
|
|
59629
59629
|
function journalRecordRows(files) {
|
|
59630
59630
|
return rowsByRecordProxy.get(files);
|
|
@@ -59690,13 +59690,13 @@ function createJournalRecordProxy(store) {
|
|
|
59690
59690
|
return proxy;
|
|
59691
59691
|
}
|
|
59692
59692
|
|
|
59693
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59693
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
59694
59694
|
import { StringDecoder } from "node:string_decoder";
|
|
59695
59695
|
|
|
59696
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59696
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
59697
59697
|
import * as crypto4 from "node:crypto";
|
|
59698
59698
|
|
|
59699
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59699
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
|
|
59700
59700
|
var packedJournalRows = /* @__PURE__ */ new WeakMap();
|
|
59701
59701
|
var sharedAreaJournalRowStores = /* @__PURE__ */ new Map();
|
|
59702
59702
|
function areaJournalRowsCacheKey(rootDir, slug) {
|
|
@@ -59719,7 +59719,7 @@ function forgetSharedAreaJournalRows(cacheKey) {
|
|
|
59719
59719
|
sharedAreaJournalRowStores.delete(cacheKey);
|
|
59720
59720
|
}
|
|
59721
59721
|
|
|
59722
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59722
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
59723
59723
|
var JOURNAL_SNAPSHOT_V4_MAGIC = SNAPSHOT_V4_MAGIC;
|
|
59724
59724
|
var SNAPSHOT_FIXED_HEADER_BYTES2 = 52;
|
|
59725
59725
|
var SECTION_ALIGNMENT_BYTES = 8;
|
|
@@ -60255,7 +60255,7 @@ function assertLittleEndian() {
|
|
|
60255
60255
|
throw new Error("HQSNAP4 requires a little-endian host");
|
|
60256
60256
|
}
|
|
60257
60257
|
|
|
60258
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60258
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
60259
60259
|
function decodeJournalSnapshot(chunks, magic) {
|
|
60260
60260
|
if (magic.equals(SNAPSHOT_V3_MAGIC))
|
|
60261
60261
|
return decodeV3JournalSnapshot(chunks);
|
|
@@ -60609,12 +60609,12 @@ function isPunctuation(value) {
|
|
|
60609
60609
|
return value === "{" || value === "}" || value === "[" || value === "]" || value === ":" || value === ",";
|
|
60610
60610
|
}
|
|
60611
60611
|
|
|
60612
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60612
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
|
|
60613
60613
|
function toPosixKey(key) {
|
|
60614
60614
|
return key.split("\\").join("/");
|
|
60615
60615
|
}
|
|
60616
60616
|
|
|
60617
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60617
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
|
|
60618
60618
|
function isUnderAnyRoot(key, roots) {
|
|
60619
60619
|
if (roots.has(key))
|
|
60620
60620
|
return true;
|
|
@@ -60627,7 +60627,7 @@ function isUnderAnyRoot(key, roots) {
|
|
|
60627
60627
|
return false;
|
|
60628
60628
|
}
|
|
60629
60629
|
|
|
60630
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60630
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
|
|
60631
60631
|
import * as fs10 from "node:fs";
|
|
60632
60632
|
import { StringDecoder as StringDecoder2 } from "node:string_decoder";
|
|
60633
60633
|
var CHUNK_BYTES = 1 << 18;
|
|
@@ -60741,12 +60741,12 @@ function streamJournalLedgerRows(filePath, onRow) {
|
|
|
60741
60741
|
}
|
|
60742
60742
|
}
|
|
60743
60743
|
|
|
60744
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60744
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
60745
60745
|
import * as crypto7 from "node:crypto";
|
|
60746
60746
|
import * as fs13 from "node:fs";
|
|
60747
60747
|
import * as path11 from "node:path";
|
|
60748
60748
|
|
|
60749
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60749
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
|
|
60750
60750
|
import * as crypto5 from "crypto";
|
|
60751
60751
|
import * as fs11 from "fs";
|
|
60752
60752
|
import * as os from "os";
|
|
@@ -61435,7 +61435,7 @@ function withOperationLockSync(hqRoot, command5, fn, opts = {}) {
|
|
|
61435
61435
|
}
|
|
61436
61436
|
}
|
|
61437
61437
|
|
|
61438
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
61438
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
|
|
61439
61439
|
import * as crypto6 from "node:crypto";
|
|
61440
61440
|
var DIRECT_DELTA = 1;
|
|
61441
61441
|
var PREPARED_TRANSACTION = 2;
|
|
@@ -62864,7 +62864,7 @@ function cloneMetadata(metadata) {
|
|
|
62864
62864
|
return result;
|
|
62865
62865
|
}
|
|
62866
62866
|
|
|
62867
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
62867
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
|
|
62868
62868
|
import * as fs12 from "fs";
|
|
62869
62869
|
import * as path10 from "path";
|
|
62870
62870
|
var AREA_LAYOUT_FORMAT = 1;
|
|
@@ -63175,7 +63175,7 @@ function compareText(left, right) {
|
|
|
63175
63175
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
63176
63176
|
}
|
|
63177
63177
|
|
|
63178
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
63178
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
63179
63179
|
function logSwallowed2(line) {
|
|
63180
63180
|
process.stderr.write(line);
|
|
63181
63181
|
}
|
|
@@ -63954,7 +63954,7 @@ function canonicalJsonOrUndefined(value) {
|
|
|
63954
63954
|
return value === void 0 ? void 0 : canonicalJson2(value);
|
|
63955
63955
|
}
|
|
63956
63956
|
|
|
63957
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
63957
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
|
|
63958
63958
|
var AREA_MAINTENANCE_CURSOR_FORMAT = 1;
|
|
63959
63959
|
var CURSOR_SET = 1;
|
|
63960
63960
|
var AreaMaintenanceCursorStore = class _AreaMaintenanceCursorStore {
|
|
@@ -64056,7 +64056,7 @@ function sameAreas(left, right) {
|
|
|
64056
64056
|
return left.length === right.length && left.every((areaId, index) => areaId === right[index]);
|
|
64057
64057
|
}
|
|
64058
64058
|
|
|
64059
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
64059
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
64060
64060
|
var TOMBSTONE_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
64061
64061
|
var JOURNAL_VERSION_CURRENT = "2";
|
|
64062
64062
|
var MAX_PULLS_PER_COMPANY = 50;
|
|
@@ -66273,7 +66273,7 @@ function gcTombstones(journal, now = Date.now()) {
|
|
|
66273
66273
|
return removed;
|
|
66274
66274
|
}
|
|
66275
66275
|
|
|
66276
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66276
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
66277
66277
|
function logSwallowed3(line) {
|
|
66278
66278
|
process.stderr.write(line);
|
|
66279
66279
|
}
|
|
@@ -66651,7 +66651,7 @@ function purgeExcludedPersonalVaultJournalEntries(journal, hqRoot, syncRoot, sho
|
|
|
66651
66651
|
return { removed, byReason };
|
|
66652
66652
|
}
|
|
66653
66653
|
|
|
66654
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66654
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/local-link-warning.js
|
|
66655
66655
|
import fs16 from "node:fs";
|
|
66656
66656
|
import path14 from "node:path";
|
|
66657
66657
|
var LOCAL_LINK_REMEDY = "Repair or remove the link, then sync again. For release-shipped links, run hq rescue. On Windows, enable Developer Mode before repairing symlinks.";
|
|
@@ -66768,7 +66768,7 @@ function linkWarningMessage(warning4) {
|
|
|
66768
66768
|
return `Skipped symbolic link (${warning4.reason}). ${warning4.remedy}`;
|
|
66769
66769
|
}
|
|
66770
66770
|
|
|
66771
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66771
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/parent-link-alias.js
|
|
66772
66772
|
import fs17 from "node:fs";
|
|
66773
66773
|
import path15 from "node:path";
|
|
66774
66774
|
function linkedParentBelowRoot(root5, dir, realRoot, realDir) {
|
|
@@ -66819,12 +66819,12 @@ function inRootAliasPath(root5, absolutePath) {
|
|
|
66819
66819
|
return path15.join(rel, path15.basename(absolutePath)).split(path15.sep).join("/");
|
|
66820
66820
|
}
|
|
66821
66821
|
|
|
66822
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66822
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
66823
66823
|
import * as fs26 from "fs";
|
|
66824
66824
|
import * as path21 from "path";
|
|
66825
66825
|
import * as crypto11 from "crypto";
|
|
66826
66826
|
|
|
66827
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66827
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
|
|
66828
66828
|
import * as crypto9 from "crypto";
|
|
66829
66829
|
import * as fs18 from "fs";
|
|
66830
66830
|
import * as os3 from "os";
|
|
@@ -66880,11 +66880,11 @@ function shouldRecordLocalDeleteIntent(localPath, absent) {
|
|
|
66880
66880
|
return absent && !isLocalPathBeingReplaced(localPath);
|
|
66881
66881
|
}
|
|
66882
66882
|
|
|
66883
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66883
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
66884
66884
|
import { Readable as Readable10, Transform as Transform3 } from "stream";
|
|
66885
66885
|
import { pipeline } from "stream/promises";
|
|
66886
66886
|
|
|
66887
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66887
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
|
|
66888
66888
|
var TRANSIENT_NETWORK_EXIT = 75;
|
|
66889
66889
|
var TRANSIENT_CODES = /* @__PURE__ */ new Set([
|
|
66890
66890
|
"ECONNREFUSED",
|
|
@@ -66994,7 +66994,7 @@ function hasDeniedConnect(err, depth) {
|
|
|
66994
66994
|
return false;
|
|
66995
66995
|
}
|
|
66996
66996
|
|
|
66997
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66997
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
|
|
66998
66998
|
var ONTOLOGY_ENTITY_KEY = /^ontology\/entities\/[a-z][a-z0-9-]*\/[^/]+\.md$/;
|
|
66999
66999
|
var ENTITY_LAST_UPDATED_META_KEY = "hq-entity-last-updated";
|
|
67000
67000
|
function ontologyVaultKey(relPath) {
|
|
@@ -67026,13 +67026,13 @@ function buildEntityMetadata(key, body) {
|
|
|
67026
67026
|
return stamp === null ? {} : { [ENTITY_LAST_UPDATED_META_KEY]: stamp };
|
|
67027
67027
|
}
|
|
67028
67028
|
|
|
67029
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67029
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
67030
67030
|
var import_client_s3 = __toESM(require_dist_cjs16(), 1);
|
|
67031
67031
|
import * as http3 from "node:http";
|
|
67032
67032
|
import * as https2 from "node:https";
|
|
67033
67033
|
import { Transform as Transform2 } from "node:stream";
|
|
67034
67034
|
|
|
67035
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67035
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
|
|
67036
67036
|
import { createHash as createHash14 } from "node:crypto";
|
|
67037
67037
|
var CHECKSUM_HEADER_NAMES = [
|
|
67038
67038
|
"content-md5",
|
|
@@ -67103,7 +67103,7 @@ function headersForObjectLockPut(url2, headers, body) {
|
|
|
67103
67103
|
return out;
|
|
67104
67104
|
}
|
|
67105
67105
|
|
|
67106
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67106
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
|
|
67107
67107
|
import { Transform } from "node:stream";
|
|
67108
67108
|
var MAX_BYTES_PER_SEC_ENV = "HQ_SYNC_MAX_BYTES_PER_SEC";
|
|
67109
67109
|
var MAX_CONCURRENCY_ENV = "HQ_SYNC_MAX_CONCURRENCY";
|
|
@@ -67504,7 +67504,7 @@ function getBandwidthGovernor() {
|
|
|
67504
67504
|
return singleton;
|
|
67505
67505
|
}
|
|
67506
67506
|
|
|
67507
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67507
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
|
|
67508
67508
|
var HEADER_CLIENT_NAME = "x-hq-client-name";
|
|
67509
67509
|
var HEADER_CLIENT_VERSION = "x-hq-client-version";
|
|
67510
67510
|
var HEADER_HQ_CORE_VERSION = "x-hq-core-version";
|
|
@@ -67527,7 +67527,7 @@ function buildClientHeaders(info) {
|
|
|
67527
67527
|
return headers;
|
|
67528
67528
|
}
|
|
67529
67529
|
|
|
67530
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67530
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
|
|
67531
67531
|
var MAX_EVENTS_PER_BATCH = 50;
|
|
67532
67532
|
var DEFAULT_TIMEOUT_MS = 1500;
|
|
67533
67533
|
var MAX_PROPERTIES = 40;
|
|
@@ -67671,12 +67671,12 @@ function describeError(err) {
|
|
|
67671
67671
|
return err instanceof Error ? err.name : typeof err;
|
|
67672
67672
|
}
|
|
67673
67673
|
|
|
67674
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
67675
67675
|
import * as http from "node:http";
|
|
67676
67676
|
import * as https from "node:https";
|
|
67677
67677
|
import { Readable as Readable9 } from "node:stream";
|
|
67678
67678
|
|
|
67679
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67679
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
|
|
67680
67680
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
67681
67681
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
67682
67682
|
var REALTIME_TELEMETRY_EVENT = "sync.realtime.timing";
|
|
@@ -67866,7 +67866,7 @@ function writeRealtimeTelemetryToStderr(record2) {
|
|
|
67866
67866
|
`);
|
|
67867
67867
|
}
|
|
67868
67868
|
|
|
67869
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67869
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
67870
67870
|
var HTTP_AGENT = new http.Agent({ keepAlive: true, maxSockets: 8 });
|
|
67871
67871
|
var HTTPS_AGENT = new https.Agent({ keepAlive: true, maxSockets: 8 });
|
|
67872
67872
|
function getKeepAliveAgent(secure) {
|
|
@@ -67926,7 +67926,7 @@ function requestWithKeepAlive(url2, init) {
|
|
|
67926
67926
|
});
|
|
67927
67927
|
}
|
|
67928
67928
|
|
|
67929
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67929
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-request-counter.js
|
|
67930
67930
|
var counts = { vault: 0, list: 0, object: 0 };
|
|
67931
67931
|
var UNCOUNTED_VAULT_PATH_PREFIX = "/v1/telemetry/";
|
|
67932
67932
|
function syncRequestKindForVaultPath(path82) {
|
|
@@ -86817,7 +86817,7 @@ function date5(params) {
|
|
|
86817
86817
|
return _coercedDate(ZodDate, params);
|
|
86818
86818
|
}
|
|
86819
86819
|
|
|
86820
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86820
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
86821
86821
|
import { spawnSync } from "child_process";
|
|
86822
86822
|
import * as crypto10 from "crypto";
|
|
86823
86823
|
import * as fs24 from "fs";
|
|
@@ -87339,7 +87339,7 @@ defineLazyProperty(apps, "browser", () => "browser");
|
|
|
87339
87339
|
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
87340
87340
|
var open_default = open4;
|
|
87341
87341
|
|
|
87342
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87342
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
87343
87343
|
var CognitoAuthError = class extends Error {
|
|
87344
87344
|
constructor(message) {
|
|
87345
87345
|
super(message);
|
|
@@ -88899,7 +88899,7 @@ function pickNewerSession(fromKeychain, other) {
|
|
|
88899
88899
|
return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
|
|
88900
88900
|
}
|
|
88901
88901
|
|
|
88902
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88902
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
|
|
88903
88903
|
var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
|
|
88904
88904
|
var VaultCredentialScopeError = class extends Error {
|
|
88905
88905
|
droppedWriteGrantPrefixes;
|
|
@@ -88941,7 +88941,7 @@ function assertCredentialScopeUsable(diagnostic) {
|
|
|
88941
88941
|
}
|
|
88942
88942
|
}
|
|
88943
88943
|
|
|
88944
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88944
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
|
|
88945
88945
|
var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
|
|
88946
88946
|
var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
88947
88947
|
"PLAN_LIMIT_EXCEEDED",
|
|
@@ -89084,7 +89084,7 @@ function formatPlanLimitNotice(event) {
|
|
|
89084
89084
|
return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
|
|
89085
89085
|
}
|
|
89086
89086
|
|
|
89087
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89087
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
|
|
89088
89088
|
var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
|
|
89089
89089
|
var VaultClientError = class extends Error {
|
|
89090
89090
|
statusCode;
|
|
@@ -90083,7 +90083,7 @@ function parseVaultErrorBody(body) {
|
|
|
90083
90083
|
}
|
|
90084
90084
|
}
|
|
90085
90085
|
|
|
90086
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90086
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/vault-key-grammar.js
|
|
90087
90087
|
var KEY_CONTROL_CHARS = /[\x00-\x1F\x7F]/;
|
|
90088
90088
|
var MAX_URI_DECODE_DEPTH = 4;
|
|
90089
90089
|
function classifyVaultKey(key, _scope) {
|
|
@@ -90190,7 +90190,7 @@ function isPresignKeyGrammarCode(code) {
|
|
|
90190
90190
|
return typeof code === "string" && (code === "INVALID_KEY" || code.startsWith("INVALID_KEY_") || code.startsWith("PRESIGN_KEY_"));
|
|
90191
90191
|
}
|
|
90192
90192
|
|
|
90193
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90193
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
90194
90194
|
var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
|
|
90195
90195
|
var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
|
|
90196
90196
|
var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
|
|
@@ -91671,7 +91671,7 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor, options
|
|
|
91671
91671
|
};
|
|
91672
91672
|
}
|
|
91673
91673
|
|
|
91674
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
|
|
91675
91675
|
var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
|
|
91676
91676
|
function portableModeStamp(mode, platform3 = process.platform) {
|
|
91677
91677
|
if (platform3 === "win32")
|
|
@@ -91682,7 +91682,7 @@ function isPortableModeSignal(mode) {
|
|
|
91682
91682
|
return !WIN32_SYNTHETIC_MODES.has(mode & 511);
|
|
91683
91683
|
}
|
|
91684
91684
|
|
|
91685
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91685
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
|
|
91686
91686
|
import * as path19 from "path";
|
|
91687
91687
|
var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
|
|
91688
91688
|
var SHEBANG = Buffer.from("#!");
|
|
@@ -91738,7 +91738,7 @@ function normalizeScriptLineEndings(body) {
|
|
|
91738
91738
|
return changed ? out.subarray(0, n3) : null;
|
|
91739
91739
|
}
|
|
91740
91740
|
|
|
91741
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91741
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
|
|
91742
91742
|
import path20 from "node:path";
|
|
91743
91743
|
import fs25 from "node:fs";
|
|
91744
91744
|
function personalSymlinkTargetLinkPath(relativePath) {
|
|
@@ -91961,7 +91961,7 @@ function redactShape(target, classification) {
|
|
|
91961
91961
|
return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
|
|
91962
91962
|
}
|
|
91963
91963
|
|
|
91964
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91964
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
91965
91965
|
var DOWNLOAD_STREAM_MAX_RETRIES = 3;
|
|
91966
91966
|
var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
|
|
91967
91967
|
function sleepMs(ms) {
|
|
@@ -93499,7 +93499,7 @@ function getMimeType(filePath) {
|
|
|
93499
93499
|
return mimeTypes[ext] || "application/octet-stream";
|
|
93500
93500
|
}
|
|
93501
93501
|
|
|
93502
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93502
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/windows-extended-path.js
|
|
93503
93503
|
import fs27 from "node:fs";
|
|
93504
93504
|
var EXTENDED_UNC = /^[\\/]{2}\?[\\/]UNC[\\/]/i;
|
|
93505
93505
|
var EXTENDED_DRIVE = /^[\\/]{2}\?[\\/](?=[A-Za-z]:(?:[\\/]|$))/;
|
|
@@ -93521,7 +93521,7 @@ function realpathRootSync(p3, impl = DEFAULT_IMPL) {
|
|
|
93521
93521
|
}
|
|
93522
93522
|
}
|
|
93523
93523
|
|
|
93524
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93524
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
|
|
93525
93525
|
var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
93526
93526
|
var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
93527
93527
|
function nativeSeparatorsToPosix(relativePath, sep23) {
|
|
@@ -93616,7 +93616,7 @@ function decodePushEvent(input2) {
|
|
|
93616
93616
|
return parsed.data;
|
|
93617
93617
|
}
|
|
93618
93618
|
|
|
93619
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93619
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
|
|
93620
93620
|
import * as path22 from "path";
|
|
93621
93621
|
function routeChangeToTarget(relPath, kind) {
|
|
93622
93622
|
const norm = relPath.split(path22.sep).join("/").replace(/^\.\//, "");
|
|
@@ -93785,7 +93785,7 @@ function carriedFlags(baseArgv) {
|
|
|
93785
93785
|
return carried;
|
|
93786
93786
|
}
|
|
93787
93787
|
|
|
93788
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93788
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
|
|
93789
93789
|
var moduleLoadFetch = globalThis.fetch;
|
|
93790
93790
|
var moduleLoadAbortController = globalThis.AbortController;
|
|
93791
93791
|
var successOutcomes = /* @__PURE__ */ new WeakMap();
|
|
@@ -94007,7 +94007,7 @@ var HttpPushTransport = class {
|
|
|
94007
94007
|
}
|
|
94008
94008
|
};
|
|
94009
94009
|
|
|
94010
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94010
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
|
|
94011
94011
|
import * as fs28 from "fs";
|
|
94012
94012
|
import * as path23 from "path";
|
|
94013
94013
|
function foldVaultKey(key) {
|
|
@@ -94155,7 +94155,7 @@ function directoryFoldsCase(dir) {
|
|
|
94155
94155
|
return false;
|
|
94156
94156
|
}
|
|
94157
94157
|
|
|
94158
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94158
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
94159
94159
|
var DEBOUNCE_MS = 2e3;
|
|
94160
94160
|
var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
|
|
94161
94161
|
var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
|
|
@@ -94201,25 +94201,52 @@ var systemWatcherBudgetRuntime = {
|
|
|
94201
94201
|
function resolveMaxWatchedPaths(override, runtime = systemWatcherBudgetRuntime) {
|
|
94202
94202
|
const configured = override ?? Number(runtime.env[TREE_WATCHER_MAX_WATCHED_PATHS_ENV]);
|
|
94203
94203
|
if (override !== void 0 || runtime.env[TREE_WATCHER_MAX_WATCHED_PATHS_ENV] !== void 0) {
|
|
94204
|
-
if (
|
|
94204
|
+
if (isUsableWatchedPathsBudget(configured))
|
|
94205
94205
|
return Math.trunc(configured);
|
|
94206
94206
|
console.warn(`TreeWatcher ignoring invalid ${TREE_WATCHER_MAX_WATCHED_PATHS_ENV}; using ${DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS}`);
|
|
94207
94207
|
return DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS;
|
|
94208
94208
|
}
|
|
94209
|
-
|
|
94209
|
+
const kernelMaximum = readLinuxMaxUserWatches(runtime);
|
|
94210
|
+
if (kernelMaximum === null)
|
|
94210
94211
|
return DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS;
|
|
94212
|
+
const reservedBudget = Math.floor(kernelMaximum * LINUX_WATCHER_BUDGET_FRACTION);
|
|
94213
|
+
const budget = kernelMaximum >= DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS / LINUX_WATCHER_BUDGET_FRACTION ? Math.max(DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS, reservedBudget) : reservedBudget;
|
|
94214
|
+
return Math.min(MAX_TREE_WATCHER_MAX_WATCHED_PATHS, budget);
|
|
94215
|
+
}
|
|
94216
|
+
function isUsableWatchedPathsBudget(value) {
|
|
94217
|
+
return Number.isFinite(value) && value > 0;
|
|
94218
|
+
}
|
|
94219
|
+
function readLinuxMaxUserWatches(runtime = systemWatcherBudgetRuntime) {
|
|
94220
|
+
if (runtime.platform !== "linux")
|
|
94221
|
+
return null;
|
|
94211
94222
|
try {
|
|
94212
94223
|
const kernelMaximum = Number.parseInt(runtime.readFileSync("/proc/sys/fs/inotify/max_user_watches", "utf8").trim(), 10);
|
|
94213
|
-
|
|
94214
|
-
return DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS;
|
|
94215
|
-
}
|
|
94216
|
-
const reservedBudget = Math.floor(kernelMaximum * LINUX_WATCHER_BUDGET_FRACTION);
|
|
94217
|
-
const budget = kernelMaximum >= DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS / LINUX_WATCHER_BUDGET_FRACTION ? Math.max(DEFAULT_TREE_WATCHER_MAX_WATCHED_PATHS, reservedBudget) : reservedBudget;
|
|
94218
|
-
return Math.min(MAX_TREE_WATCHER_MAX_WATCHED_PATHS, budget);
|
|
94224
|
+
return Number.isSafeInteger(kernelMaximum) && kernelMaximum > 0 ? kernelMaximum : null;
|
|
94219
94225
|
} catch {
|
|
94220
|
-
return
|
|
94226
|
+
return null;
|
|
94221
94227
|
}
|
|
94222
94228
|
}
|
|
94229
|
+
var RECOMMENDED_LINUX_MAX_USER_WATCHES = 524288;
|
|
94230
|
+
function describeWatchBudgetExhaustion(info, opts, runtime = systemWatcherBudgetRuntime) {
|
|
94231
|
+
const kernelMaxUserWatches = readLinuxMaxUserWatches(runtime);
|
|
94232
|
+
const envValue = runtime.env[TREE_WATCHER_MAX_WATCHED_PATHS_ENV];
|
|
94233
|
+
const budgetSource = envValue !== void 0 ? isUsableWatchedPathsBudget(Number(envValue)) ? "env" : "default" : kernelMaxUserWatches === null ? "default" : info.maxWatchedPaths >= MAX_TREE_WATCHER_MAX_WATCHED_PATHS ? "ceiling" : "kernel";
|
|
94234
|
+
const kernelBelowRecommended = kernelMaxUserWatches !== null && kernelMaxUserWatches < RECOMMENDED_LINUX_MAX_USER_WATCHES;
|
|
94235
|
+
const raiseKernel = `set fs.inotify.max_user_watches=${RECOMMENDED_LINUX_MAX_USER_WATCHES} in a /etc/sysctl.d drop-in and apply it with sysctl --system; the runner reads the new limit on its next watcher rediscovery`;
|
|
94236
|
+
const remedy = budgetSource === "env" ? `raise ${TREE_WATCHER_MAX_WATCHED_PATHS_ENV} above ${info.maxWatchedPaths}` + (kernelBelowRecommended ? ` and ${raiseKernel}` : "") : budgetSource === "kernel" ? kernelBelowRecommended ? raiseKernel : `narrow the synced scope, or raise ${TREE_WATCHER_MAX_WATCHED_PATHS_ENV} above ${info.maxWatchedPaths}` : budgetSource === "ceiling" ? `the tree exceeds the ${MAX_TREE_WATCHER_MAX_WATCHED_PATHS}-directory watcher ceiling; narrow the synced scope` : `set ${TREE_WATCHER_MAX_WATCHED_PATHS_ENV} above ${info.maxWatchedPaths}`;
|
|
94237
|
+
return {
|
|
94238
|
+
type: "watcher-budget-exhausted",
|
|
94239
|
+
level: "error",
|
|
94240
|
+
reason: info.reason,
|
|
94241
|
+
watchedPaths: info.watchedPaths,
|
|
94242
|
+
maxWatchedPaths: info.maxWatchedPaths,
|
|
94243
|
+
budgetSource,
|
|
94244
|
+
kernelMaxUserWatches,
|
|
94245
|
+
localChangeCoverage: "full-reconcile-only",
|
|
94246
|
+
fullReconcileIntervalMs: opts.fullReconcileIntervalMs ?? null,
|
|
94247
|
+
remedy
|
|
94248
|
+
};
|
|
94249
|
+
}
|
|
94223
94250
|
var systemClock = {
|
|
94224
94251
|
setTimeout: (fn, ms) => setTimeout(fn, ms),
|
|
94225
94252
|
clearTimeout: (handle) => clearTimeout(handle),
|
|
@@ -97318,7 +97345,7 @@ var PushEventEmitter = class _PushEventEmitter {
|
|
|
97318
97345
|
}
|
|
97319
97346
|
};
|
|
97320
97347
|
|
|
97321
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97348
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
97322
97349
|
var SELF_PROFILE_ENV = "HQ_SYNC_SELF_PROFILE";
|
|
97323
97350
|
var SELF_PROFILE_CPU_CORES_ENV = "HQ_SYNC_SELF_PROFILE_CPU_CORES";
|
|
97324
97351
|
var SELF_PROFILE_RSS_MB_ENV = "HQ_SYNC_SELF_PROFILE_RSS_MB";
|
|
@@ -97933,7 +97960,7 @@ function readRunnerVersion() {
|
|
|
97933
97960
|
}
|
|
97934
97961
|
}
|
|
97935
97962
|
|
|
97936
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97963
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
97937
97964
|
import * as os26 from "os";
|
|
97938
97965
|
import * as path81 from "path";
|
|
97939
97966
|
import * as fs87 from "fs";
|
|
@@ -97941,7 +97968,7 @@ import { randomUUID as randomUUID14 } from "node:crypto";
|
|
|
97941
97968
|
import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
|
|
97942
97969
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
97943
97970
|
|
|
97944
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97971
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/context.js
|
|
97945
97972
|
import { createHash as createHash18 } from "node:crypto";
|
|
97946
97973
|
var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
97947
97974
|
var DEFAULT_SESSION_DURATION_SECONDS = 900;
|
|
@@ -98172,13 +98199,13 @@ async function vendSelfCredentials(personUid, config2) {
|
|
|
98172
98199
|
return postVend(route, { personUid }, config2);
|
|
98173
98200
|
}
|
|
98174
98201
|
|
|
98175
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98202
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
|
|
98176
98203
|
var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
|
|
98177
98204
|
|
|
98178
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98205
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
|
|
98179
98206
|
var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
|
|
98180
98207
|
|
|
98181
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
|
|
98182
98209
|
var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
|
|
98183
98210
|
var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
|
|
98184
98211
|
var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
|
|
@@ -98228,7 +98255,7 @@ var MultipartByteBudget = class {
|
|
|
98228
98255
|
};
|
|
98229
98256
|
var processByteBudget = new MultipartByteBudget();
|
|
98230
98257
|
|
|
98231
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98258
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/server-owned-skips.js
|
|
98232
98259
|
var SERVER_OWNED_FOLDERS = [
|
|
98233
98260
|
{
|
|
98234
98261
|
folder: "sources/slack-dm/",
|
|
@@ -98291,13 +98318,13 @@ function groupServerOwnedSkips(paths, options = {}) {
|
|
|
98291
98318
|
return groups;
|
|
98292
98319
|
}
|
|
98293
98320
|
|
|
98294
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98321
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98295
98322
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
98296
98323
|
import * as fs32 from "fs";
|
|
98297
98324
|
import * as os8 from "os";
|
|
98298
98325
|
import * as path27 from "path";
|
|
98299
98326
|
|
|
98300
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98327
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
|
|
98301
98328
|
import { createHash as createHash19 } from "node:crypto";
|
|
98302
98329
|
import * as fs31 from "node:fs";
|
|
98303
98330
|
import * as os7 from "node:os";
|
|
@@ -98446,7 +98473,7 @@ function readPendingConflictNotices() {
|
|
|
98446
98473
|
return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
|
|
98447
98474
|
}
|
|
98448
98475
|
|
|
98449
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98476
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98450
98477
|
function logSwallowed5(line) {
|
|
98451
98478
|
process.stderr.write(line);
|
|
98452
98479
|
}
|
|
@@ -98733,7 +98760,7 @@ function createPassSummaryRecorder() {
|
|
|
98733
98760
|
};
|
|
98734
98761
|
}
|
|
98735
98762
|
|
|
98736
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98763
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
|
|
98737
98764
|
var SCOPE_PREFIX_MARKER = "\0hq-scope:";
|
|
98738
98765
|
var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
|
|
98739
98766
|
var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
|
|
@@ -98933,7 +98960,7 @@ function grantPathToScopePrefix(grantPath, slug) {
|
|
|
98933
98960
|
return pathToScopePrefix(p3);
|
|
98934
98961
|
}
|
|
98935
98962
|
|
|
98936
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98963
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
|
|
98937
98964
|
import * as fs33 from "fs";
|
|
98938
98965
|
import * as path28 from "path";
|
|
98939
98966
|
function buildScopeShrinkPlan(input2) {
|
|
@@ -99229,18 +99256,18 @@ function applyScopeShrink(input2) {
|
|
|
99229
99256
|
};
|
|
99230
99257
|
}
|
|
99231
99258
|
|
|
99232
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99259
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99233
99260
|
init_dist();
|
|
99234
99261
|
import * as fs34 from "fs";
|
|
99235
99262
|
import * as path29 from "path";
|
|
99236
99263
|
|
|
99237
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99264
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
|
|
99238
99265
|
var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
|
|
99239
99266
|
function flagCompanyUid(uid) {
|
|
99240
99267
|
return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
|
|
99241
99268
|
}
|
|
99242
99269
|
|
|
99243
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99270
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99244
99271
|
var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
|
|
99245
99272
|
var WAL_REJECTED_DELTA_RECOVERY_FLAG = "sync.wal-rejected-delta-recovery";
|
|
99246
99273
|
var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
|
|
@@ -99390,7 +99417,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
|
|
|
99390
99417
|
return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
|
|
99391
99418
|
}
|
|
99392
99419
|
|
|
99393
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99420
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
|
|
99394
99421
|
var VEND_PATH_CAP = 10;
|
|
99395
99422
|
var POST_FILTER_THRESHOLD = 50;
|
|
99396
99423
|
var VEND_FANOUT_CONCURRENCY = 5;
|
|
@@ -99477,19 +99504,52 @@ function dedupByKey(files) {
|
|
|
99477
99504
|
return out;
|
|
99478
99505
|
}
|
|
99479
99506
|
|
|
99480
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99507
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
|
|
99481
99508
|
var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
|
|
99482
99509
|
var MIB = 1024 * 1024;
|
|
99483
99510
|
|
|
99484
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99511
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99485
99512
|
import * as fs35 from "fs";
|
|
99486
99513
|
import * as path30 from "path";
|
|
99514
|
+
|
|
99515
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/push-only-prefixes.js
|
|
99487
99516
|
var SESSIONS_SCOPE_PREFIX = "sessions/";
|
|
99488
99517
|
var SESSION_LOGS_PUSH_ONLY_PREFIX = "workspace/.session-logs/";
|
|
99489
99518
|
var HQ_OFFLOAD_PREFIX = ".hq-offload/";
|
|
99519
|
+
|
|
99520
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99490
99521
|
function sessionsPushOnlyScope(scope) {
|
|
99491
99522
|
return { ...scope, excludePrefixes: [SESSIONS_SCOPE_PREFIX] };
|
|
99492
99523
|
}
|
|
99524
|
+
function boundedErrorClass(errorClass) {
|
|
99525
|
+
return /^[A-Za-z][A-Za-z0-9]{0,63}$/.test(errorClass) ? errorClass : "UnknownError";
|
|
99526
|
+
}
|
|
99527
|
+
function scopeLookupSkipMessage(company, errorClass) {
|
|
99528
|
+
const clean = company.replace(/[^A-Za-z0-9._#-]/g, "?");
|
|
99529
|
+
const label = clean.length > 64 ? `${clean.slice(0, 63)}\u2026` : clean;
|
|
99530
|
+
return `Skipped ${label}: could not look up its sync scope (${boundedErrorClass(errorClass)}). Nothing was synced for this company, so it was not synced unscoped. Re-run to retry.`;
|
|
99531
|
+
}
|
|
99532
|
+
var SyncScopeLookupError = class extends Error {
|
|
99533
|
+
company;
|
|
99534
|
+
errorClass;
|
|
99535
|
+
retryable;
|
|
99536
|
+
constructor(company, errorClass, retryable) {
|
|
99537
|
+
super(scopeLookupSkipMessage(company, errorClass));
|
|
99538
|
+
this.name = "SyncScopeLookupError";
|
|
99539
|
+
this.company = company;
|
|
99540
|
+
this.errorClass = boundedErrorClass(errorClass);
|
|
99541
|
+
this.retryable = retryable;
|
|
99542
|
+
}
|
|
99543
|
+
};
|
|
99544
|
+
function scopeLookupFailure(company, err) {
|
|
99545
|
+
if (err instanceof VaultAuthError || isTerminalIdentityRefusal(err))
|
|
99546
|
+
return err;
|
|
99547
|
+
if (err instanceof SyncScopeLookupError)
|
|
99548
|
+
return err;
|
|
99549
|
+
const retryable = isTransientNetworkError(err) || isRetryableIdentityRefusal(err) || isTransientHttpStatusError(err);
|
|
99550
|
+
const errorClass = err instanceof Error ? err.name : "UnknownError";
|
|
99551
|
+
return new SyncScopeLookupError(company, errorClass, retryable);
|
|
99552
|
+
}
|
|
99493
99553
|
async function resolvePullScope(client, companyUid, slug, hqRoot, cloudSlug) {
|
|
99494
99554
|
const grantSlug = cloudSlug ?? slug;
|
|
99495
99555
|
if (!client.getMembershipSyncConfig)
|
|
@@ -99498,7 +99558,7 @@ async function resolvePullScope(client, companyUid, slug, hqRoot, cloudSlug) {
|
|
|
99498
99558
|
const memberships = await client.listMyMemberships();
|
|
99499
99559
|
const m3 = memberships.find((x) => x.companyUid === companyUid);
|
|
99500
99560
|
if (!m3)
|
|
99501
|
-
|
|
99561
|
+
throw new SyncScopeLookupError(slug, "MembershipNotFound", false);
|
|
99502
99562
|
if (m3.role === "owner")
|
|
99503
99563
|
return sessionsPushOnlyScope({ syncMode: "all" });
|
|
99504
99564
|
if (m3.membershipKey?.startsWith("agt_"))
|
|
@@ -99536,8 +99596,8 @@ async function resolvePullScope(client, companyUid, slug, hqRoot, cloudSlug) {
|
|
|
99536
99596
|
...pinPrefixes.map(pathToScopePrefix)
|
|
99537
99597
|
])
|
|
99538
99598
|
});
|
|
99539
|
-
} catch {
|
|
99540
|
-
|
|
99599
|
+
} catch (err) {
|
|
99600
|
+
throw scopeLookupFailure(slug, err);
|
|
99541
99601
|
}
|
|
99542
99602
|
}
|
|
99543
99603
|
function readPinnedPrefixes(hqRoot, slug) {
|
|
@@ -99553,7 +99613,7 @@ function readPinnedPrefixes(hqRoot, slug) {
|
|
|
99553
99613
|
return [];
|
|
99554
99614
|
}
|
|
99555
99615
|
|
|
99556
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99616
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
|
|
99557
99617
|
import * as fs36 from "fs";
|
|
99558
99618
|
import * as path31 from "path";
|
|
99559
99619
|
var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
|
|
@@ -99770,13 +99830,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
|
|
|
99770
99830
|
}
|
|
99771
99831
|
};
|
|
99772
99832
|
|
|
99773
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99833
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
99774
99834
|
import { createHash as createHash20 } from "node:crypto";
|
|
99775
99835
|
import { promises as fs41 } from "node:fs";
|
|
99776
99836
|
import * as os9 from "node:os";
|
|
99777
99837
|
import * as path35 from "node:path";
|
|
99778
99838
|
|
|
99779
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99839
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry-scan-cap.js
|
|
99780
99840
|
import { promises as fs37 } from "node:fs";
|
|
99781
99841
|
async function hasUnreadBytes(filePath, stored) {
|
|
99782
99842
|
let stat5;
|
|
@@ -99794,7 +99854,7 @@ async function hasUnreadBytes(filePath, stored) {
|
|
|
99794
99854
|
return stat5.size > offset;
|
|
99795
99855
|
}
|
|
99796
99856
|
|
|
99797
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99857
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
99798
99858
|
import { promises as fs38 } from "node:fs";
|
|
99799
99859
|
import * as path32 from "node:path";
|
|
99800
99860
|
|
|
@@ -102864,7 +102924,7 @@ var {
|
|
|
102864
102924
|
safeDump
|
|
102865
102925
|
} = yaml;
|
|
102866
102926
|
|
|
102867
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
102927
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
102868
102928
|
function logSwallowed6(line) {
|
|
102869
102929
|
process.stderr.write(line);
|
|
102870
102930
|
}
|
|
@@ -103075,7 +103135,7 @@ function resolveCompanyForCwd(cwd, map5) {
|
|
|
103075
103135
|
return collapsed !== c5 ? match(collapsed) : void 0;
|
|
103076
103136
|
}
|
|
103077
103137
|
|
|
103078
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103138
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
|
|
103079
103139
|
import { promises as fs39 } from "node:fs";
|
|
103080
103140
|
import * as path33 from "node:path";
|
|
103081
103141
|
var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
|
|
@@ -103522,7 +103582,7 @@ function createUsageCompanyFallback(options) {
|
|
|
103522
103582
|
};
|
|
103523
103583
|
}
|
|
103524
103584
|
|
|
103525
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103585
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry/consent-source.js
|
|
103526
103586
|
var KNOWN_SOURCES = /* @__PURE__ */ new Set([
|
|
103527
103587
|
"plan-required",
|
|
103528
103588
|
"notice-pending",
|
|
@@ -103602,7 +103662,7 @@ function decideCollection(resp, local) {
|
|
|
103602
103662
|
}
|
|
103603
103663
|
}
|
|
103604
103664
|
|
|
103605
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103665
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry/pre-consent-buffer.js
|
|
103606
103666
|
import { randomBytes as randomBytes8 } from "node:crypto";
|
|
103607
103667
|
import { promises as fs40 } from "node:fs";
|
|
103608
103668
|
import * as path34 from "node:path";
|
|
@@ -103834,7 +103894,7 @@ async function discardPreConsentBuffer(file2, opts = {}) {
|
|
|
103834
103894
|
});
|
|
103835
103895
|
}
|
|
103836
103896
|
|
|
103837
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103897
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
103838
103898
|
function emptyCursor() {
|
|
103839
103899
|
return { version: "1", files: {} };
|
|
103840
103900
|
}
|
|
@@ -104793,7 +104853,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104793
104853
|
};
|
|
104794
104854
|
}
|
|
104795
104855
|
|
|
104796
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
104856
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
|
|
104797
104857
|
import { createHash as createHash21 } from "node:crypto";
|
|
104798
104858
|
import { promises as fs42 } from "node:fs";
|
|
104799
104859
|
import * as os10 from "node:os";
|
|
@@ -105664,12 +105724,12 @@ async function collectAndSendSkillTelemetry(opts) {
|
|
|
105664
105724
|
};
|
|
105665
105725
|
}
|
|
105666
105726
|
|
|
105667
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105727
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
105668
105728
|
import * as fs58 from "fs";
|
|
105669
105729
|
import * as os17 from "os";
|
|
105670
105730
|
import * as path51 from "path";
|
|
105671
105731
|
|
|
105672
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105732
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-pass-event.js
|
|
105673
105733
|
import { createHash as createHash22 } from "node:crypto";
|
|
105674
105734
|
import * as os11 from "node:os";
|
|
105675
105735
|
var SYNC_PASS_EVENT_NAME = "sync_pass";
|
|
@@ -105762,7 +105822,7 @@ function startSyncPassObservation(context, deps = {}) {
|
|
|
105762
105822
|
};
|
|
105763
105823
|
}
|
|
105764
105824
|
|
|
105765
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105825
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-object-events.js
|
|
105766
105826
|
import { createHash as createHash23 } from "node:crypto";
|
|
105767
105827
|
var SYNC_CONFLICT_EVENT_NAME = "sync_conflict";
|
|
105768
105828
|
var SYNC_OVERWRITE_EVENT_NAME = "sync_overwrite";
|
|
@@ -105899,7 +105959,7 @@ function createSyncObjectEventSink(deps) {
|
|
|
105899
105959
|
};
|
|
105900
105960
|
}
|
|
105901
105961
|
|
|
105902
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105962
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
|
|
105903
105963
|
init_dist();
|
|
105904
105964
|
var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
|
|
105905
105965
|
var FLAG_READ_TIMEOUT_MS = 2e3;
|
|
@@ -105948,7 +106008,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
|
|
|
105948
106008
|
}
|
|
105949
106009
|
}
|
|
105950
106010
|
|
|
105951
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106011
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
|
|
105952
106012
|
function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
105953
106013
|
if (typeof client.presign === "function" && typeof client.listFiles === "function") {
|
|
105954
106014
|
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
@@ -105966,7 +106026,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
|
105966
106026
|
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
105967
106027
|
}
|
|
105968
106028
|
|
|
105969
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106029
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
|
|
105970
106030
|
import * as fs43 from "node:fs";
|
|
105971
106031
|
import * as path37 from "node:path";
|
|
105972
106032
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -106011,7 +106071,7 @@ function appendSyncDecision(input2, options = {}) {
|
|
|
106011
106071
|
}
|
|
106012
106072
|
}
|
|
106013
106073
|
|
|
106014
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106074
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/scattered-delete-burst.js
|
|
106015
106075
|
import * as fs44 from "fs";
|
|
106016
106076
|
import * as path38 from "path";
|
|
106017
106077
|
var SCATTERED_DELETE_MIN_ABS = 20;
|
|
@@ -106077,7 +106137,7 @@ function detectScatteredDeleteBurst(candidateKeys, journal, syncRoot, uploadedHa
|
|
|
106077
106137
|
return { keys, areas: areas.size, samplePaths: keys.slice(0, SCATTERED_DELETE_SAMPLE_CAP) };
|
|
106078
106138
|
}
|
|
106079
106139
|
|
|
106080
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106140
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/unattended-delete-hold.js
|
|
106081
106141
|
var UNATTENDED_SYNC_ENV = "HQ_SYNC_UNATTENDED";
|
|
106082
106142
|
var MACHINE_ENTITY_TYPES = /* @__PURE__ */ new Set(["agent", "outpost", "company-outpost"]);
|
|
106083
106143
|
var unattendedForProcess = false;
|
|
@@ -106165,10 +106225,10 @@ function unattendedPullDeleteDecision(hold, entry) {
|
|
|
106165
106225
|
return entry.direction === "up" ? "defer" : "restore";
|
|
106166
106226
|
}
|
|
106167
106227
|
|
|
106168
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106228
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
106169
106229
|
import * as crypto16 from "crypto";
|
|
106170
106230
|
|
|
106171
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106231
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
|
|
106172
106232
|
import * as fs45 from "fs";
|
|
106173
106233
|
import * as path39 from "path";
|
|
106174
106234
|
var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
|
|
@@ -106251,7 +106311,7 @@ async function primePrivateFolderUpload(input2) {
|
|
|
106251
106311
|
}]);
|
|
106252
106312
|
}
|
|
106253
106313
|
|
|
106254
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106314
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
|
|
106255
106315
|
import * as crypto12 from "node:crypto";
|
|
106256
106316
|
import * as fs46 from "node:fs";
|
|
106257
106317
|
import * as os12 from "node:os";
|
|
@@ -106577,7 +106637,7 @@ function pruneSyncedSessionLogs(root5) {
|
|
|
106577
106637
|
}
|
|
106578
106638
|
}
|
|
106579
106639
|
|
|
106580
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106640
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
|
|
106581
106641
|
var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
|
|
106582
106642
|
var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
|
|
106583
106643
|
var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
|
|
@@ -107154,7 +107214,7 @@ var FullPassCapController = class {
|
|
|
107154
107214
|
}
|
|
107155
107215
|
};
|
|
107156
107216
|
|
|
107157
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107217
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
|
|
107158
107218
|
import * as fs47 from "fs";
|
|
107159
107219
|
import * as readline from "readline";
|
|
107160
107220
|
function conflictPromptHeadline(conflict) {
|
|
@@ -107358,7 +107418,7 @@ async function promptConflict(conflict) {
|
|
|
107358
107418
|
}
|
|
107359
107419
|
}
|
|
107360
107420
|
|
|
107361
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107421
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/reconcile-skip-reason.js
|
|
107362
107422
|
var HUMAN_UP_TO_DATE_LINE_CAP = 20;
|
|
107363
107423
|
var HUMAN_SIZE_LIMIT_LINE_CAP = 5;
|
|
107364
107424
|
function isUpToDateSkipReason(reason) {
|
|
@@ -107435,7 +107495,7 @@ function createHumanSkipLineLog() {
|
|
|
107435
107495
|
};
|
|
107436
107496
|
}
|
|
107437
107497
|
|
|
107438
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107498
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
|
|
107439
107499
|
import * as crypto13 from "node:crypto";
|
|
107440
107500
|
import * as fs48 from "node:fs";
|
|
107441
107501
|
import * as os13 from "node:os";
|
|
@@ -107829,7 +107889,7 @@ async function fetchTombstonePage(url2, token) {
|
|
|
107829
107889
|
throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
|
|
107830
107890
|
}
|
|
107831
107891
|
|
|
107832
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107892
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
|
|
107833
107893
|
import { execSync } from "child_process";
|
|
107834
107894
|
import * as fs49 from "fs";
|
|
107835
107895
|
import * as os14 from "os";
|
|
@@ -107979,11 +108039,11 @@ function hasRemoteChanged(remote, entry) {
|
|
|
107979
108039
|
return remote.lastModified.getTime() > syncedAt;
|
|
107980
108040
|
}
|
|
107981
108041
|
|
|
107982
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108042
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
107983
108043
|
import * as crypto14 from "crypto";
|
|
107984
108044
|
import * as path44 from "path";
|
|
107985
108045
|
|
|
107986
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108046
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
|
|
107987
108047
|
import { createHash as createHash26, randomUUID as randomUUID6 } from "node:crypto";
|
|
107988
108048
|
import * as fs50 from "node:fs";
|
|
107989
108049
|
import * as os15 from "node:os";
|
|
@@ -108103,7 +108163,7 @@ function readShortMachineId(hqRoot) {
|
|
|
108103
108163
|
return createHash26("sha1").update(full).digest("hex").slice(0, 6);
|
|
108104
108164
|
}
|
|
108105
108165
|
|
|
108106
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108166
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
108107
108167
|
var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
|
|
108108
108168
|
var CONFLICT_PROBE_DIR = ".hq/tmp";
|
|
108109
108169
|
function safeTimestamp(detectedAt) {
|
|
@@ -108121,7 +108181,7 @@ function buildConflictId(originalRelative, detectedAt) {
|
|
|
108121
108181
|
return `${safePath}-${safeTimestamp(detectedAt)}`;
|
|
108122
108182
|
}
|
|
108123
108183
|
|
|
108124
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108184
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
|
|
108125
108185
|
import * as crypto15 from "crypto";
|
|
108126
108186
|
import * as fs51 from "fs";
|
|
108127
108187
|
import * as path45 from "path";
|
|
@@ -108275,7 +108335,7 @@ function pruneConflictIndex(hqRoot) {
|
|
|
108275
108335
|
return result;
|
|
108276
108336
|
}
|
|
108277
108337
|
|
|
108278
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108338
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
|
|
108279
108339
|
import * as fs52 from "node:fs";
|
|
108280
108340
|
function isAppendOnlyPath(relativePath) {
|
|
108281
108341
|
const base = relativePath.split(/[\\/]/).pop() ?? "";
|
|
@@ -108347,7 +108407,7 @@ function appendIfUnchanged(file2, expected, merged) {
|
|
|
108347
108407
|
return "appended";
|
|
108348
108408
|
}
|
|
108349
108409
|
|
|
108350
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108410
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/append-log-merge.js
|
|
108351
108411
|
import { createHash as createHash27 } from "node:crypto";
|
|
108352
108412
|
import * as fs53 from "node:fs";
|
|
108353
108413
|
import * as path46 from "node:path";
|
|
@@ -108615,7 +108675,7 @@ function replaceKeepingMode(file2, expected, merged) {
|
|
|
108615
108675
|
return "appended";
|
|
108616
108676
|
}
|
|
108617
108677
|
|
|
108618
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108678
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
|
|
108619
108679
|
import * as fs54 from "node:fs";
|
|
108620
108680
|
import * as path47 from "node:path";
|
|
108621
108681
|
function isBoardJsonPath(relativePath) {
|
|
@@ -108761,7 +108821,7 @@ function replaceIfUnchanged(file2, expected, merged) {
|
|
|
108761
108821
|
return "appended";
|
|
108762
108822
|
}
|
|
108763
108823
|
|
|
108764
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108824
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
|
|
108765
108825
|
import { createHash as createHash28, randomBytes as randomBytes11 } from "node:crypto";
|
|
108766
108826
|
import * as fs55 from "node:fs";
|
|
108767
108827
|
import * as os16 from "node:os";
|
|
@@ -109085,7 +109145,7 @@ function findUploadIntent(scope, relativePath, hash3, notBeforeMs, remoteLastMod
|
|
|
109085
109145
|
return best;
|
|
109086
109146
|
}
|
|
109087
109147
|
|
|
109088
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109148
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
|
|
109089
109149
|
init_dist();
|
|
109090
109150
|
import { createHash as createHash29 } from "node:crypto";
|
|
109091
109151
|
var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
|
|
@@ -109179,7 +109239,7 @@ ${caller}`;
|
|
|
109179
109239
|
return failed ? false : value;
|
|
109180
109240
|
}
|
|
109181
109241
|
|
|
109182
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109242
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
|
|
109183
109243
|
import fs56 from "node:fs";
|
|
109184
109244
|
import path49 from "node:path";
|
|
109185
109245
|
var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
|
|
@@ -109245,7 +109305,7 @@ function entityIsFreshForCreate(body, nowMs) {
|
|
|
109245
109305
|
return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
|
|
109246
109306
|
}
|
|
109247
109307
|
|
|
109248
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109308
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
|
|
109249
109309
|
init_dist();
|
|
109250
109310
|
import { createHash as createHash30 } from "node:crypto";
|
|
109251
109311
|
var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
|
|
@@ -109319,7 +109379,7 @@ ${caller}`;
|
|
|
109319
109379
|
return failed ? false : value;
|
|
109320
109380
|
}
|
|
109321
109381
|
|
|
109322
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109382
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
|
|
109323
109383
|
init_dist();
|
|
109324
109384
|
import { createHash as createHash31 } from "node:crypto";
|
|
109325
109385
|
var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
|
|
@@ -109382,7 +109442,7 @@ ${caller}`;
|
|
|
109382
109442
|
return failed ? false : value;
|
|
109383
109443
|
}
|
|
109384
109444
|
|
|
109385
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109445
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
|
|
109386
109446
|
import * as path50 from "node:path";
|
|
109387
109447
|
var MAX_DIAGNOSTIC_LENGTH = 1024;
|
|
109388
109448
|
function sanitizeDiagnostic(value) {
|
|
@@ -109515,7 +109575,7 @@ function pushFailureTelemetryLabel(value) {
|
|
|
109515
109575
|
return safe.slice(0, 128) || "unknown";
|
|
109516
109576
|
}
|
|
109517
109577
|
|
|
109518
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109578
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
|
|
109519
109579
|
import * as fs57 from "fs";
|
|
109520
109580
|
function toPortableSymlinkTarget(target, platform3 = process.platform) {
|
|
109521
109581
|
return platform3 === "win32" ? target.replaceAll("\\", "/") : target;
|
|
@@ -109534,14 +109594,14 @@ function readlinkOrNull(linkPath, readlink = (path82) => fs57.readlinkSync(path8
|
|
|
109534
109594
|
}
|
|
109535
109595
|
}
|
|
109536
109596
|
|
|
109537
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109597
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
|
|
109538
109598
|
function checkpointReconcileApply(checkpoint, paths) {
|
|
109539
109599
|
if (!checkpoint)
|
|
109540
109600
|
return;
|
|
109541
109601
|
checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path82) => ({ path: path82, durable: true })));
|
|
109542
109602
|
}
|
|
109543
109603
|
|
|
109544
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109604
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
|
|
109545
109605
|
init_dist();
|
|
109546
109606
|
import { createHash as createHash32 } from "node:crypto";
|
|
109547
109607
|
var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
|
|
@@ -109686,7 +109746,7 @@ function warnFlagReadFailure(write) {
|
|
|
109686
109746
|
`)))(line);
|
|
109687
109747
|
}
|
|
109688
109748
|
|
|
109689
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109749
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
109690
109750
|
async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
|
|
109691
109751
|
const probeKey = crypto16.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
|
|
109692
109752
|
const probePath = path51.join(os17.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
|
|
@@ -114707,7 +114767,8 @@ async function computeDeletePlan(journal, syncRoot, scopeRoots, shouldSync, poli
|
|
|
114707
114767
|
samplePaths: scattered ? scattered.samplePaths : samplePaths,
|
|
114708
114768
|
...scattered ? { trigger: "scattered-deletes", folders: scattered.areas } : {}
|
|
114709
114769
|
};
|
|
114710
|
-
|
|
114770
|
+
for (const key of litterToDelete)
|
|
114771
|
+
plan.toDelete.push({ key, intentVersion: null });
|
|
114711
114772
|
return plan;
|
|
114712
114773
|
}
|
|
114713
114774
|
const unheadedDeletes = unattendedDeleteHold ? plan.toDelete : [];
|
|
@@ -114864,12 +114925,12 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
|
|
|
114864
114925
|
return out;
|
|
114865
114926
|
}
|
|
114866
114927
|
|
|
114867
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114928
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
114868
114929
|
import * as fs65 from "fs";
|
|
114869
114930
|
import * as path58 from "path";
|
|
114870
114931
|
import { isDeepStrictEqual } from "node:util";
|
|
114871
114932
|
|
|
114872
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114933
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
|
|
114873
114934
|
import * as fs59 from "node:fs";
|
|
114874
114935
|
import * as os18 from "node:os";
|
|
114875
114936
|
import * as path52 from "node:path";
|
|
@@ -114948,7 +115009,7 @@ function* readRows(filename) {
|
|
|
114948
115009
|
}
|
|
114949
115010
|
}
|
|
114950
115011
|
|
|
114951
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115012
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
114952
115013
|
import { execFile as execFile6 } from "child_process";
|
|
114953
115014
|
import { randomBytes as randomBytes13 } from "crypto";
|
|
114954
115015
|
import * as fs61 from "fs";
|
|
@@ -114956,7 +115017,7 @@ import * as os19 from "os";
|
|
|
114956
115017
|
import * as path54 from "path";
|
|
114957
115018
|
import { promisify as promisify6 } from "util";
|
|
114958
115019
|
|
|
114959
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115020
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
|
|
114960
115021
|
import * as crypto17 from "crypto";
|
|
114961
115022
|
import * as fs60 from "fs";
|
|
114962
115023
|
import * as path53 from "path";
|
|
@@ -115142,7 +115203,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
|
|
|
115142
115203
|
return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
|
|
115143
115204
|
}
|
|
115144
115205
|
|
|
115145
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115206
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
115146
115207
|
var execFileAsync5 = promisify6(execFile6);
|
|
115147
115208
|
var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
|
|
115148
115209
|
function gitSidecarDir(hqRoot, homeDir = os19.homedir()) {
|
|
@@ -115515,10 +115576,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
|
|
|
115515
115576
|
};
|
|
115516
115577
|
}
|
|
115517
115578
|
|
|
115518
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115579
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
|
|
115519
115580
|
var SKILLS_KEY_PREFIX = ".claude/skills/";
|
|
115520
115581
|
|
|
115521
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115582
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
|
|
115522
115583
|
var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
|
|
115523
115584
|
function rawSha256FromContentHash(contentHash) {
|
|
115524
115585
|
if (contentHash === void 0)
|
|
@@ -115529,7 +115590,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
|
|
|
115529
115590
|
return rawSha256FromContentHash(contentHash) === rawHash;
|
|
115530
115591
|
}
|
|
115531
115592
|
|
|
115532
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115593
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
|
|
115533
115594
|
import { createHash as createHash35 } from "node:crypto";
|
|
115534
115595
|
var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
|
|
115535
115596
|
var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
|
|
@@ -115554,7 +115615,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
|
|
|
115554
115615
|
return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
|
|
115555
115616
|
}
|
|
115556
115617
|
|
|
115557
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115618
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
|
|
115558
115619
|
init_dist();
|
|
115559
115620
|
import { createHash as createHash36 } from "node:crypto";
|
|
115560
115621
|
function logSwallowed9(line) {
|
|
@@ -115671,7 +115732,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
|
|
|
115671
115732
|
return defaultTargetedUpsertExactListGate(config2, companyUid);
|
|
115672
115733
|
}
|
|
115673
115734
|
|
|
115674
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115735
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
|
|
115675
115736
|
var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
|
|
115676
115737
|
function coalesceDenseTargetedPullPaths(paths) {
|
|
115677
115738
|
const normalized = paths.map((path82) => path82.replace(/\\/g, "/"));
|
|
@@ -115709,15 +115770,15 @@ function coalesceDenseTargetedPullPaths(paths) {
|
|
|
115709
115770
|
return result;
|
|
115710
115771
|
}
|
|
115711
115772
|
|
|
115712
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115773
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
115713
115774
|
import { createHash as createHash38 } from "node:crypto";
|
|
115714
115775
|
|
|
115715
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115776
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
115716
115777
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
115717
115778
|
import * as fs64 from "fs";
|
|
115718
115779
|
import * as path57 from "path";
|
|
115719
115780
|
|
|
115720
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115781
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
|
|
115721
115782
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
115722
115783
|
import * as fs62 from "fs";
|
|
115723
115784
|
import * as path55 from "path";
|
|
@@ -115980,7 +116041,7 @@ function materializeLegacyKnowledgeRepos(root5) {
|
|
|
115980
116041
|
}
|
|
115981
116042
|
}
|
|
115982
116043
|
|
|
115983
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116044
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
|
|
115984
116045
|
import * as crypto18 from "node:crypto";
|
|
115985
116046
|
import * as fs63 from "node:fs";
|
|
115986
116047
|
import * as os20 from "node:os";
|
|
@@ -116924,7 +116985,7 @@ function captureSessionLogs(root5, options = {}) {
|
|
|
116924
116985
|
}
|
|
116925
116986
|
}
|
|
116926
116987
|
|
|
116927
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116988
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
116928
116989
|
function isDir2(p3) {
|
|
116929
116990
|
try {
|
|
116930
116991
|
return fs64.statSync(p3).isDirectory();
|
|
@@ -117601,7 +117662,7 @@ function emitReindexTelemetry(opts, result, lockResult) {
|
|
|
117601
117662
|
}, { claims: opts.telemetryClaims });
|
|
117602
117663
|
}
|
|
117603
117664
|
|
|
117604
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117665
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
117605
117666
|
async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
|
|
117606
117667
|
work.rowsSinceYield += 1;
|
|
117607
117668
|
if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
|
|
@@ -121765,10 +121826,10 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
121765
121826
|
}
|
|
121766
121827
|
}
|
|
121767
121828
|
|
|
121768
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121829
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
121769
121830
|
import { createRequire } from "node:module";
|
|
121770
121831
|
|
|
121771
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121832
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-native-copy.js
|
|
121772
121833
|
var POSIX_CHARACTER_CLASSES = {
|
|
121773
121834
|
alnum: "A-Za-z0-9",
|
|
121774
121835
|
alpha: "A-Za-z",
|
|
@@ -121902,7 +121963,7 @@ function compileRsyncPattern(rawPattern) {
|
|
|
121902
121963
|
};
|
|
121903
121964
|
}
|
|
121904
121965
|
|
|
121905
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121966
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
121906
121967
|
var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
|
|
121907
121968
|
var require2 = createRequire(import.meta.url);
|
|
121908
121969
|
var GIT_BATCH_MAX_BUFFER = 256 * 1024 * 1024;
|
|
@@ -121950,7 +122011,7 @@ var INSTALL_EXCLUDED_MATCHERS = INSTALL_EXCLUDED_PATTERNS.map(compileRsyncPatter
|
|
|
121950
122011
|
var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
|
|
121951
122012
|
var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
|
|
121952
122013
|
|
|
121953
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122014
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
|
|
121954
122015
|
var SOURCE_CHANNELS = Object.freeze([
|
|
121955
122016
|
"meeting",
|
|
121956
122017
|
"email",
|
|
@@ -121959,7 +122020,7 @@ var SOURCE_CHANNELS = Object.freeze([
|
|
|
121959
122020
|
"notion"
|
|
121960
122021
|
]);
|
|
121961
122022
|
|
|
121962
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122023
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
|
|
121963
122024
|
var SIGNAL_TYPES = Object.freeze([
|
|
121964
122025
|
"action_item",
|
|
121965
122026
|
"commitment",
|
|
@@ -121969,7 +122030,7 @@ var SIGNAL_TYPES = Object.freeze([
|
|
|
121969
122030
|
"summary"
|
|
121970
122031
|
]);
|
|
121971
122032
|
|
|
121972
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122033
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
|
|
121973
122034
|
var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
|
|
121974
122035
|
var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
|
|
121975
122036
|
function parseFeatureSwitch(value) {
|
|
@@ -122038,7 +122099,7 @@ function isEventSyncLocallyDisabled(value) {
|
|
|
122038
122099
|
}
|
|
122039
122100
|
}
|
|
122040
122101
|
|
|
122041
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122102
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
|
|
122042
122103
|
var import_client_cloudwatch = __toESM(require_dist_cjs18(), 1);
|
|
122043
122104
|
var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
|
|
122044
122105
|
var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
|
|
@@ -122106,7 +122167,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
|
|
|
122106
122167
|
}
|
|
122107
122168
|
}
|
|
122108
122169
|
|
|
122109
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122170
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
|
|
122110
122171
|
var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
|
|
122111
122172
|
var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
|
|
122112
122173
|
var DEFAULT_WAIT_TIME_SECONDS = 20;
|
|
@@ -123639,10 +123700,10 @@ function defaultSleep(ms, signal) {
|
|
|
123639
123700
|
});
|
|
123640
123701
|
}
|
|
123641
123702
|
|
|
123642
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123703
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
|
|
123643
123704
|
var import_pino = __toESM(require_pino(), 1);
|
|
123644
123705
|
|
|
123645
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123706
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
|
|
123646
123707
|
function assertCanonicalPath(path82) {
|
|
123647
123708
|
if (path82.length === 0 || path82.startsWith("/") || path82.endsWith("/") || path82.includes("\\") || path82.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
|
|
123648
123709
|
throw new Error(`path lease requires a canonical relative path: ${path82}`);
|
|
@@ -123705,7 +123766,7 @@ var PathLease = class {
|
|
|
123705
123766
|
}
|
|
123706
123767
|
};
|
|
123707
123768
|
|
|
123708
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
123769
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
|
|
123709
123770
|
var MAX_REALTIME_PULL_YIELDS = 3;
|
|
123710
123771
|
var MAX_REALTIME_PULL_YIELD_MS = 6e4;
|
|
123711
123772
|
var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
|
|
@@ -123880,11 +123941,13 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
123880
123941
|
return [...unique.values()];
|
|
123881
123942
|
}
|
|
123882
123943
|
registerEpochs(submission) {
|
|
123883
|
-
|
|
123884
|
-
|
|
123885
|
-
|
|
123886
|
-
|
|
123887
|
-
|
|
123944
|
+
for (const path82 of submission.paths) {
|
|
123945
|
+
this.epochs.push({
|
|
123946
|
+
...path82,
|
|
123947
|
+
class: submission.work.class,
|
|
123948
|
+
...submission.work.class === "realtime" ? { direction: submission.work.direction } : {}
|
|
123949
|
+
});
|
|
123950
|
+
}
|
|
123888
123951
|
}
|
|
123889
123952
|
hasInternallyConflictingPaths(paths) {
|
|
123890
123953
|
return paths.some((path82, index) => paths.slice(index + 1).some((other) => overlaps(path82, other)));
|
|
@@ -124212,7 +124275,7 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
124212
124275
|
}
|
|
124213
124276
|
};
|
|
124214
124277
|
|
|
124215
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124278
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
|
|
124216
124279
|
var InlineSyncWorkerAdapter = class {
|
|
124217
124280
|
handler;
|
|
124218
124281
|
constructor(handler) {
|
|
@@ -124223,11 +124286,11 @@ var InlineSyncWorkerAdapter = class {
|
|
|
124223
124286
|
}
|
|
124224
124287
|
};
|
|
124225
124288
|
|
|
124226
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124289
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124227
124290
|
import * as fs67 from "node:fs";
|
|
124228
124291
|
import * as path61 from "node:path";
|
|
124229
124292
|
|
|
124230
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124293
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
|
|
124231
124294
|
import * as path59 from "node:path";
|
|
124232
124295
|
var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
124233
124296
|
function isSafeCompanySlug(companiesDir, slug) {
|
|
@@ -124244,7 +124307,7 @@ function isSafeCompanySlug(companiesDir, slug) {
|
|
|
124244
124307
|
return path59.dirname(companyDir) === resolvedCompaniesDir;
|
|
124245
124308
|
}
|
|
124246
124309
|
|
|
124247
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124310
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
|
|
124248
124311
|
var SYNC_MANIFEST_CONTRACT_VERSION = 1;
|
|
124249
124312
|
var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
|
|
124250
124313
|
var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
|
|
@@ -124413,7 +124476,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
|
|
|
124413
124476
|
}
|
|
124414
124477
|
};
|
|
124415
124478
|
|
|
124416
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124479
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
|
|
124417
124480
|
import * as crypto19 from "node:crypto";
|
|
124418
124481
|
import * as fs66 from "node:fs";
|
|
124419
124482
|
import * as path60 from "node:path";
|
|
@@ -124588,7 +124651,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
|
|
|
124588
124651
|
}
|
|
124589
124652
|
var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
|
|
124590
124653
|
|
|
124591
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124654
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124592
124655
|
function logSwallowed11(line) {
|
|
124593
124656
|
process.stderr.write(line);
|
|
124594
124657
|
}
|
|
@@ -125197,10 +125260,10 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
|
|
|
125197
125260
|
return upload;
|
|
125198
125261
|
}
|
|
125199
125262
|
|
|
125200
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125263
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125201
125264
|
import * as fs69 from "node:fs";
|
|
125202
125265
|
|
|
125203
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125266
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/leg-skip-store.js
|
|
125204
125267
|
import * as fs68 from "node:fs";
|
|
125205
125268
|
import * as path62 from "node:path";
|
|
125206
125269
|
function logSwallowed12(line) {
|
|
@@ -125256,7 +125319,7 @@ function clearManifestLegSkip(stateDir5, scopeKey) {
|
|
|
125256
125319
|
}
|
|
125257
125320
|
}
|
|
125258
125321
|
|
|
125259
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125322
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125260
125323
|
var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
|
|
125261
125324
|
var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
125262
125325
|
var DEFAULT_MANIFEST_UPLOAD_WALL_MS = 6e4;
|
|
@@ -125825,7 +125888,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
125825
125888
|
};
|
|
125826
125889
|
}
|
|
125827
125890
|
|
|
125828
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125891
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
|
|
125829
125892
|
import * as fs70 from "node:fs";
|
|
125830
125893
|
import * as path63 from "node:path";
|
|
125831
125894
|
import { createHash as createHash40, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -126073,7 +126136,7 @@ function validUnresolvedCompanyRecord(value) {
|
|
|
126073
126136
|
return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
|
|
126074
126137
|
}
|
|
126075
126138
|
|
|
126076
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126139
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/version.js
|
|
126077
126140
|
import { readFileSync as readFileSync41 } from "node:fs";
|
|
126078
126141
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
126079
126142
|
import path64 from "node:path";
|
|
@@ -126081,7 +126144,7 @@ var here = path64.dirname(fileURLToPath4(import.meta.url));
|
|
|
126081
126144
|
var pkg = JSON.parse(readFileSync41(path64.resolve(here, "..", "package.json"), "utf-8"));
|
|
126082
126145
|
var HQ_CLOUD_VERSION = pkg.version;
|
|
126083
126146
|
|
|
126084
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126147
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
|
|
126085
126148
|
import { promises as fs71 } from "node:fs";
|
|
126086
126149
|
import * as os21 from "node:os";
|
|
126087
126150
|
import * as path65 from "node:path";
|
|
@@ -126455,7 +126518,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
|
|
|
126455
126518
|
return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
|
|
126456
126519
|
}
|
|
126457
126520
|
|
|
126458
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126521
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
|
|
126459
126522
|
import * as fs72 from "fs";
|
|
126460
126523
|
import * as path66 from "path";
|
|
126461
126524
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -127105,7 +127168,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
|
|
|
127105
127168
|
return false;
|
|
127106
127169
|
}
|
|
127107
127170
|
|
|
127108
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127171
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
|
|
127109
127172
|
import fs73 from "node:fs";
|
|
127110
127173
|
import path67 from "node:path";
|
|
127111
127174
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
@@ -127209,7 +127272,7 @@ nonce=${nonce}
|
|
|
127209
127272
|
};
|
|
127210
127273
|
}
|
|
127211
127274
|
|
|
127212
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127275
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/telemetry-admission.js
|
|
127213
127276
|
var DEFAULT_INTERVAL_MS = 10 * 60 * 1e3;
|
|
127214
127277
|
var MAX_INTERVAL_SEC = 24 * 60 * 60;
|
|
127215
127278
|
var STALE_IN_FLIGHT_TIMEOUT_MULTIPLE = 5;
|
|
@@ -127286,7 +127349,7 @@ function recordTelemetryRunStarted(store, nowMs, run) {
|
|
|
127286
127349
|
store.inFlight = tracked;
|
|
127287
127350
|
}
|
|
127288
127351
|
|
|
127289
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127352
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
|
|
127290
127353
|
import { Worker } from "node:worker_threads";
|
|
127291
127354
|
function reindexAsync(options) {
|
|
127292
127355
|
if (import.meta.url.endsWith(".ts"))
|
|
@@ -127345,7 +127408,7 @@ function reindexAsync(options) {
|
|
|
127345
127408
|
});
|
|
127346
127409
|
}
|
|
127347
127410
|
|
|
127348
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127411
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
|
|
127349
127412
|
import * as crypto20 from "crypto";
|
|
127350
127413
|
import * as fs74 from "fs";
|
|
127351
127414
|
import * as os22 from "os";
|
|
@@ -127505,7 +127568,7 @@ function materializeCodexAgents(opts) {
|
|
|
127505
127568
|
}
|
|
127506
127569
|
}
|
|
127507
127570
|
|
|
127508
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127571
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
|
|
127509
127572
|
var POST_SYNC_FLAG_KEYS = {
|
|
127510
127573
|
qmdReindex: "sync.qmd-reindex",
|
|
127511
127574
|
conflictPrune: "sync.conflict-prune",
|
|
@@ -127525,12 +127588,12 @@ function createPostSyncFlagEvaluator(options = {}) {
|
|
|
127525
127588
|
};
|
|
127526
127589
|
}
|
|
127527
127590
|
|
|
127528
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127591
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127529
127592
|
import { createHash as createHash41, randomUUID as randomUUID9 } from "node:crypto";
|
|
127530
127593
|
import * as fs76 from "node:fs/promises";
|
|
127531
127594
|
import * as path70 from "node:path";
|
|
127532
127595
|
|
|
127533
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127596
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
|
|
127534
127597
|
import * as fs75 from "node:fs";
|
|
127535
127598
|
import * as os23 from "node:os";
|
|
127536
127599
|
import * as path69 from "node:path";
|
|
@@ -127580,7 +127643,7 @@ function readDesktopInstallationId(options) {
|
|
|
127580
127643
|
return void 0;
|
|
127581
127644
|
}
|
|
127582
127645
|
|
|
127583
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127646
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127584
127647
|
var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
|
|
127585
127648
|
var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
|
|
127586
127649
|
var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
|
|
@@ -128273,14 +128336,14 @@ function manifestLegFailureKinds(input2) {
|
|
|
128273
128336
|
return kinds;
|
|
128274
128337
|
}
|
|
128275
128338
|
|
|
128276
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128339
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
|
|
128277
128340
|
var PARTIAL_SYNC_EXIT = 2;
|
|
128278
128341
|
var UNRESOLVED_COMPANY_EXIT = 19;
|
|
128279
128342
|
var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
|
|
128280
128343
|
var WATCH_OWNER_LEASE_LOST_EXIT = 21;
|
|
128281
128344
|
var PREFLIGHT_HALT_EXIT = 22;
|
|
128282
128345
|
|
|
128283
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128346
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
|
|
128284
128347
|
import * as crypto21 from "node:crypto";
|
|
128285
128348
|
import * as fs77 from "node:fs";
|
|
128286
128349
|
import * as path71 from "node:path";
|
|
@@ -128329,7 +128392,7 @@ function hashNormalizedKey(key) {
|
|
|
128329
128392
|
return crypto21.createHash("sha256").update(normalized, "utf8").digest("hex");
|
|
128330
128393
|
}
|
|
128331
128394
|
|
|
128332
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128395
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
|
|
128333
128396
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
128334
128397
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
128335
128398
|
import * as fs78 from "node:fs";
|
|
@@ -128700,7 +128763,7 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
|
|
|
128700
128763
|
};
|
|
128701
128764
|
}
|
|
128702
128765
|
|
|
128703
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128766
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
|
|
128704
128767
|
var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
|
|
128705
128768
|
function processExists(pid) {
|
|
128706
128769
|
try {
|
|
@@ -128751,7 +128814,7 @@ function startWatchParentExitMonitor(options) {
|
|
|
128751
128814
|
};
|
|
128752
128815
|
}
|
|
128753
128816
|
|
|
128754
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128817
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
|
|
128755
128818
|
var ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
128756
128819
|
"error",
|
|
128757
128820
|
"auth-error"
|
|
@@ -128797,7 +128860,7 @@ function emitUncaughtRunnerError(err, streams) {
|
|
|
128797
128860
|
}
|
|
128798
128861
|
}
|
|
128799
128862
|
|
|
128800
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128863
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/runner-output-guard.js
|
|
128801
128864
|
var BROKEN_OUTPUT_CODES = /* @__PURE__ */ new Set([
|
|
128802
128865
|
"EPIPE",
|
|
128803
128866
|
"ECONNRESET",
|
|
@@ -128861,7 +128924,7 @@ function installRunnerOutputGuard(streams = [process.stdout, process.stderr], re
|
|
|
128861
128924
|
};
|
|
128862
128925
|
}
|
|
128863
128926
|
|
|
128864
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128927
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
|
|
128865
128928
|
import { format as format2 } from "node:util";
|
|
128866
128929
|
function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
|
|
128867
128930
|
const writeDiagnostic = (...args) => {
|
|
@@ -128877,7 +128940,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
|
|
|
128877
128940
|
return startRunner();
|
|
128878
128941
|
}
|
|
128879
128942
|
|
|
128880
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128943
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
|
|
128881
128944
|
function verifiedMemberCompanyUids(options) {
|
|
128882
128945
|
if (!options.companies)
|
|
128883
128946
|
return void 0;
|
|
@@ -129143,7 +129206,7 @@ function emitFanoutPlan(emit, plan) {
|
|
|
129143
129206
|
emit({ type: "fanout-plan", companies: plan });
|
|
129144
129207
|
}
|
|
129145
129208
|
|
|
129146
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129209
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
|
|
129147
129210
|
import * as fs79 from "node:fs";
|
|
129148
129211
|
import * as path73 from "node:path";
|
|
129149
129212
|
function buildPassRequestArgv(passArgv, company) {
|
|
@@ -129394,7 +129457,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
|
|
|
129394
129457
|
}
|
|
129395
129458
|
};
|
|
129396
129459
|
|
|
129397
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129460
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
|
|
129398
129461
|
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
129399
129462
|
import * as fs80 from "node:fs";
|
|
129400
129463
|
import * as path74 from "node:path";
|
|
@@ -129486,7 +129549,7 @@ function seedActiveCompany(options) {
|
|
|
129486
129549
|
return { written: true, activeCompany };
|
|
129487
129550
|
}
|
|
129488
129551
|
|
|
129489
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129552
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
|
|
129490
129553
|
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
129491
129554
|
import * as fs81 from "node:fs";
|
|
129492
129555
|
import * as path75 from "node:path";
|
|
@@ -129717,17 +129780,17 @@ async function reconcileCompanyManifest(options) {
|
|
|
129717
129780
|
return reconcileManifest(options.hqRoot, resolvedTargets);
|
|
129718
129781
|
}
|
|
129719
129782
|
|
|
129720
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129783
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
129721
129784
|
import * as fs82 from "fs";
|
|
129722
129785
|
import * as path76 from "path";
|
|
129723
129786
|
import { createHash as createHash43, randomUUID as randomUUID13 } from "node:crypto";
|
|
129724
129787
|
|
|
129725
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129788
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
|
|
129726
129789
|
function allowsLegacyNetwork(decision) {
|
|
129727
129790
|
return decision.network === "allow-legacy";
|
|
129728
129791
|
}
|
|
129729
129792
|
|
|
129730
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129793
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/lib/sync-leg-error-summary.js
|
|
129731
129794
|
import os24 from "node:os";
|
|
129732
129795
|
var ERRNO_NAMES = new Set(Object.keys(os24.constants.errno));
|
|
129733
129796
|
var EXTRA_CODES = /* @__PURE__ */ new Set([
|
|
@@ -129932,7 +129995,7 @@ function buildSyncLegErrorSummary(input2) {
|
|
|
129932
129995
|
return segments.join(":").slice(0, 128);
|
|
129933
129996
|
}
|
|
129934
129997
|
|
|
129935
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129998
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
|
|
129936
129999
|
function createCompanyState(company) {
|
|
129937
130000
|
return {
|
|
129938
130001
|
company,
|
|
@@ -129994,7 +130057,7 @@ function rollupAllComplete(plan, stateByCompany) {
|
|
|
129994
130057
|
};
|
|
129995
130058
|
}
|
|
129996
130059
|
|
|
129997
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130060
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
129998
130061
|
var PRUNED_SAMPLE_PATHS = 5;
|
|
129999
130062
|
var SIZE_LIMIT_SKIP_EVENT_INTERVAL_MS = PLAN_LIMIT_PAUSE_RETRY_MS;
|
|
130000
130063
|
var SIZE_LIMIT_SKIP_MEMORY_MAX = 1e4;
|
|
@@ -130867,9 +130930,11 @@ async function executeCompanyFanout(options) {
|
|
|
130867
130930
|
relativePath: target.personalMode === true ? applied.path : `companies/${target.slug}/${applied.path}`,
|
|
130868
130931
|
contentHash: `sha256:${applied.hash}`
|
|
130869
130932
|
}));
|
|
130870
|
-
|
|
130933
|
+
for (const applied of legAppliedUpserts)
|
|
130934
|
+
appliedUpserts.push(applied);
|
|
130871
130935
|
const legAppliedDeletes = (pullResult.appliedDeletes ?? []).map((relativePath) => target.personalMode === true ? relativePath : ["companies", target.slug, relativePath].join("/"));
|
|
130872
|
-
|
|
130936
|
+
for (const relativePath of legAppliedDeletes)
|
|
130937
|
+
appliedDeletes.push(relativePath);
|
|
130873
130938
|
if (legAppliedUpserts.length > 0) {
|
|
130874
130939
|
options.onAppliedUpserts?.(legAppliedUpserts);
|
|
130875
130940
|
}
|
|
@@ -130973,12 +131038,13 @@ async function executeCompanyFanout(options) {
|
|
|
130973
131038
|
throw err;
|
|
130974
131039
|
}
|
|
130975
131040
|
const errorClass = journalErrorClass(err);
|
|
130976
|
-
const
|
|
131041
|
+
const scopeLookupSkip = err instanceof SyncScopeLookupError ? err : void 0;
|
|
131042
|
+
const message = scopeLookupSkip !== void 0 ? scopeLookupSkip.message : errorClass === void 0 ? describeError2(err) : "journal write or recovery failed";
|
|
130977
131043
|
const errorRecord = typeof err === "object" && err !== null ? err : void 0;
|
|
130978
131044
|
const statusValue = errorRecord?.httpStatus ?? errorRecord?.status ?? errorRecord?.statusCode ?? errorRecord?.$metadata?.httpStatusCode;
|
|
130979
131045
|
const httpStatus = typeof statusValue === "number" && Number.isInteger(statusValue) && statusValue >= 400 && statusValue < 600 ? statusValue : void 0;
|
|
130980
131046
|
const failure = { company: companyLabel, message, ...httpStatus === void 0 ? {} : { httpStatus } };
|
|
130981
|
-
const transientNetwork = isTransientNetworkError(err) || isRetryableIdentityRefusal(err) || isTransientHttpStatusError(err);
|
|
131047
|
+
const transientNetwork = scopeLookupSkip?.retryable === true || isTransientNetworkError(err) || isRetryableIdentityRefusal(err) || isTransientHttpStatusError(err);
|
|
130982
131048
|
const transientOnly = transientNetwork && !companyHadTransferError;
|
|
130983
131049
|
if (transientNetwork) {
|
|
130984
131050
|
transientCompanies.push(failure);
|
|
@@ -131203,7 +131269,7 @@ function normalizePullChangedPaths(target, changedPaths) {
|
|
|
131203
131269
|
});
|
|
131204
131270
|
}
|
|
131205
131271
|
|
|
131206
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131272
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
|
|
131207
131273
|
async function emitTelemetry(options) {
|
|
131208
131274
|
const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
|
|
131209
131275
|
return telemetryFn().catch((err) => {
|
|
@@ -131215,7 +131281,7 @@ async function emitTelemetry(options) {
|
|
|
131215
131281
|
});
|
|
131216
131282
|
}
|
|
131217
131283
|
|
|
131218
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131284
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
131219
131285
|
import * as os25 from "os";
|
|
131220
131286
|
import * as path80 from "path";
|
|
131221
131287
|
import * as fs86 from "fs";
|
|
@@ -131223,7 +131289,7 @@ import { createHash as createHash44 } from "node:crypto";
|
|
|
131223
131289
|
import * as v8 from "node:v8";
|
|
131224
131290
|
import { performance as performance3 } from "node:perf_hooks";
|
|
131225
131291
|
|
|
131226
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131292
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
|
|
131227
131293
|
var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
|
|
131228
131294
|
var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
|
|
131229
131295
|
var RoutePushFailureBackoff = class {
|
|
@@ -131250,12 +131316,12 @@ var systemPushRetryScheduler = {
|
|
|
131250
131316
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
131251
131317
|
};
|
|
131252
131318
|
|
|
131253
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131319
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131254
131320
|
var import_client_sqs = __toESM(require_dist_cjs20(), 1);
|
|
131255
131321
|
import { readFileSync as readFileSync48 } from "node:fs";
|
|
131256
131322
|
import { join as join66 } from "node:path";
|
|
131257
131323
|
|
|
131258
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131324
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
|
|
131259
131325
|
import * as fs83 from "node:fs";
|
|
131260
131326
|
import * as path77 from "node:path";
|
|
131261
131327
|
function logSwallowed14(line) {
|
|
@@ -131321,7 +131387,7 @@ function isInboundEventPlaceable(hqRoot, event) {
|
|
|
131321
131387
|
}
|
|
131322
131388
|
}
|
|
131323
131389
|
|
|
131324
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131390
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
|
|
131325
131391
|
import fs84 from "node:fs";
|
|
131326
131392
|
import path78 from "node:path";
|
|
131327
131393
|
function journalCoordinatesForPushEvent(relativePath) {
|
|
@@ -131363,7 +131429,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
|
|
|
131363
131429
|
return unchanged;
|
|
131364
131430
|
}
|
|
131365
131431
|
|
|
131366
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131432
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131367
131433
|
function resolveEventSync(override) {
|
|
131368
131434
|
return !isEventSyncLocallyDisabled(override);
|
|
131369
131435
|
}
|
|
@@ -132075,7 +132141,7 @@ async function startEventSync(opts) {
|
|
|
132075
132141
|
};
|
|
132076
132142
|
}
|
|
132077
132143
|
|
|
132078
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132144
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
|
|
132079
132145
|
var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
|
|
132080
132146
|
var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
|
|
132081
132147
|
var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
|
|
@@ -132228,7 +132294,7 @@ function describe3(error62) {
|
|
|
132228
132294
|
return error62 instanceof Error ? error62.message : String(error62);
|
|
132229
132295
|
}
|
|
132230
132296
|
|
|
132231
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132297
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
|
|
132232
132298
|
import * as perfHooks from "node:perf_hooks";
|
|
132233
132299
|
var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
|
|
132234
132300
|
var HeapCensus = class {
|
|
@@ -133215,7 +133281,7 @@ function nodeHeapReaders(v82) {
|
|
|
133215
133281
|
};
|
|
133216
133282
|
}
|
|
133217
133283
|
|
|
133218
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133284
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
|
|
133219
133285
|
var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
|
|
133220
133286
|
var MAX_CLOCK_DRIFT_MS = 5e3;
|
|
133221
133287
|
var MAX_SCHEDULED_FULL_SKIP_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -133273,7 +133339,7 @@ function canSkipScheduledFullReconcile(proof) {
|
|
|
133273
133339
|
return true;
|
|
133274
133340
|
}
|
|
133275
133341
|
|
|
133276
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133342
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/legacy-sync-wake.js
|
|
133277
133343
|
import * as fs85 from "node:fs";
|
|
133278
133344
|
import * as path79 from "node:path";
|
|
133279
133345
|
var MAX_WAKE_BYTES = 1024 * 1024;
|
|
@@ -133435,7 +133501,7 @@ var LegacySyncWakeBridge = class {
|
|
|
133435
133501
|
}
|
|
133436
133502
|
};
|
|
133437
133503
|
|
|
133438
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133504
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
133439
133505
|
var FULL_RECONCILE_EVERY_TICKS = 10;
|
|
133440
133506
|
var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
|
|
133441
133507
|
var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
|
|
@@ -137752,6 +137818,15 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
137752
137818
|
const action = info.action === "stopped" ? "stopped; continuing cadence-only" : "switching to polling fallback";
|
|
137753
137819
|
process.stderr.write(`hq-sync-runner: WARN event-push watcher degraded; ${action}: ${info.reason} (watched-paths=${info.watchedPaths}/${info.maxWatchedPaths})
|
|
137754
137820
|
`);
|
|
137821
|
+
if (info.reason === "watch_budget_exhausted") {
|
|
137822
|
+
const report = describeWatchBudgetExhaustion(info, {
|
|
137823
|
+
fullReconcileIntervalMs
|
|
137824
|
+
});
|
|
137825
|
+
process.stderr.write(`hq-sync-runner: ERROR event-push watcher cannot cover this tree; local changes sync only on the next full reconcile: ${report.remedy}
|
|
137826
|
+
`);
|
|
137827
|
+
process.stderr.write(`${JSON.stringify(report)}
|
|
137828
|
+
`);
|
|
137829
|
+
}
|
|
137755
137830
|
if (info.action === "stopped") {
|
|
137756
137831
|
scheduleWatcherRediscovery(info.reason);
|
|
137757
137832
|
}
|
|
@@ -138929,7 +139004,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
138929
139004
|
}
|
|
138930
139005
|
}
|
|
138931
139006
|
|
|
138932
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139007
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
|
|
138933
139008
|
var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
|
|
138934
139009
|
var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
|
|
138935
139010
|
var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
|
|
@@ -139002,7 +139077,7 @@ async function waitForValidAuth(opts) {
|
|
|
139002
139077
|
return "stopped";
|
|
139003
139078
|
}
|
|
139004
139079
|
|
|
139005
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139080
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.117/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
139006
139081
|
var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
|
|
139007
139082
|
var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
|
|
139008
139083
|
var DEFAULT_COGNITO = {
|