@indigoai-us/hq-cli 5.345.247 → 5.345.250
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 +95 -0
- package/assets/lanes-hooks/hq-lanes-drain.sh +1 -1
- package/contracts/host-canary-release.json +14 -0
- package/dist/command-catalog.generated.d.ts +1198 -0
- package/dist/command-catalog.generated.js +1476 -0
- package/dist/command-registration-plan.d.ts +6 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/core-job-run-native.js +4 -0
- package/dist/commands/core-knowledge-prefs.d.ts +1 -1
- package/dist/commands/core-knowledge-prefs.js +1 -16
- package/dist/commands/core.js +0 -2
- package/dist/commands/daemon.js +21 -0
- package/dist/commands/lanes-hold.js +7 -7
- package/dist/commands/lanes-resume.js +2 -2
- package/dist/commands/lanes-review.js +1 -1
- package/dist/commands/lanes-session-start.d.ts +1 -1
- package/dist/commands/lanes-session-start.js +3 -3
- package/dist/commands/lanes-shared.d.ts +1 -1
- package/dist/commands/lanes.d.ts +2 -2
- package/dist/commands/lanes.js +50 -50
- package/dist/commands/mesh.d.ts +25 -0
- package/dist/commands/mesh.js +48 -8
- package/dist/commands/ontology-graph.d.ts +63 -0
- package/dist/commands/ontology-graph.js +470 -0
- package/dist/commands/sync-core.js +6 -0
- package/dist/fast-scaffold.js +1 -3
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +281 -256
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +48 -1
- package/dist/lanes-monitor-check-argv.d.ts +1 -1
- package/dist/lanes-monitor-check-argv.js +1 -1
- package/dist/lanes-monitor-check-fast.d.ts +1 -1
- package/dist/lanes-monitor-check-fast.js +1 -1
- package/dist/lanes-session-start-argv.d.ts +1 -1
- package/dist/lanes-session-start-argv.js +1 -1
- package/dist/lib/capacity/sign-in.d.ts +1 -1
- package/dist/lib/capacity/sign-in.js +1 -1
- package/dist/lib/daemon/hook-requests-conduct-link.js +2 -2
- package/dist/lib/daemon/installed-cli-restart.d.ts +57 -0
- package/dist/lib/daemon/installed-cli-restart.js +114 -0
- package/dist/lib/daemon/lanes-monitor-state.d.ts +2 -2
- package/dist/lib/daemon/lanes-monitor-state.js +2 -2
- package/dist/lib/daemon/legacy-journal-gate.d.ts +32 -0
- package/dist/lib/daemon/legacy-journal-gate.js +102 -0
- package/dist/lib/daemon/machine-checks.d.ts +7 -0
- package/dist/lib/daemon/machine-checks.js +10 -0
- package/dist/lib/daemon/merge-sections.d.ts +3 -3
- package/dist/lib/daemon/merge-sections.js +7 -7
- package/dist/lib/daemon/remote-control-pools.js +1 -1
- package/dist/lib/daemon/run.d.ts +3 -1
- package/dist/lib/daemon/run.js +49 -6
- package/dist/lib/daemon/state-file.d.ts +1 -1
- package/dist/lib/daemon/state-file.js +1 -1
- 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/flag-snapshot-file.d.ts +2 -0
- package/dist/lib/flag-snapshot-file.js +118 -48
- package/dist/lib/hook-engine/canary-gate.d.ts +57 -3
- package/dist/lib/hook-engine/canary-gate.js +138 -6
- package/dist/lib/hook-engine/coverage.d.ts +82 -13
- package/dist/lib/hook-engine/coverage.js +214 -18
- package/dist/lib/hook-engine/registration-identity.d.ts +5 -0
- package/dist/lib/hook-engine/registration-identity.js +1 -1
- package/dist/lib/hook-engine/resolve.d.ts +23 -0
- package/dist/lib/hook-engine/resolve.js +48 -1
- package/dist/lib/hook-engine/stable-heal.d.ts +87 -0
- package/dist/lib/hook-engine/stable-heal.js +214 -0
- package/dist/lib/hot-channels/graph-context.d.ts +105 -0
- package/dist/lib/hot-channels/graph-context.js +380 -0
- package/dist/lib/hot-channels/signals-pass.js +27 -1
- package/dist/lib/lanes/claude-credential.d.ts +1 -1
- package/dist/lib/lanes/claude-credential.js +1 -1
- package/dist/lib/lanes/delivery-core.d.ts +1 -1
- package/dist/lib/lanes/delivery-core.js +1 -1
- package/dist/lib/lanes/delivery.d.ts +10 -10
- package/dist/lib/lanes/delivery.js +8 -8
- package/dist/lib/lanes/dropbox.d.ts +1 -1
- package/dist/lib/lanes/dropbox.js +1 -1
- package/dist/lib/lanes/hooks-install.js +2 -2
- package/dist/lib/lanes/index.d.ts +1 -1
- package/dist/lib/lanes/index.js +1 -1
- package/dist/lib/lanes/monitor.js +1 -1
- package/dist/lib/lanes/quota-notice.js +1 -1
- package/dist/lib/lanes/quota.d.ts +1 -1
- package/dist/lib/lanes/quota.js +1 -1
- package/dist/lib/lanes/repo-merge-hold.d.ts +2 -2
- package/dist/lib/lanes/repo-merge-hold.js +2 -2
- package/dist/lib/lanes/spawn.d.ts +4 -4
- package/dist/lib/lanes/spawn.js +5 -5
- package/dist/lib/mesh/live/company-flag-refresh.d.ts +61 -0
- package/dist/lib/mesh/live/company-flag-refresh.js +159 -0
- package/dist/lib/mesh/live/company-reporting-gaps.d.ts +61 -0
- package/dist/lib/mesh/live/company-reporting-gaps.js +238 -0
- package/dist/lib/mesh/live/daemon/duplicate-unit.d.ts +156 -0
- package/dist/lib/mesh/live/daemon/duplicate-unit.js +616 -0
- package/dist/lib/mesh/live/daemon/run.d.ts +13 -0
- package/dist/lib/mesh/live/daemon/run.js +35 -2
- package/dist/lib/mesh/live/direct-drain.js +1 -1
- package/dist/lib/mesh/live/emit.d.ts +3 -0
- package/dist/lib/mesh/live/emit.js +32 -9
- package/dist/lib/mesh/live/flush.d.ts +3 -0
- package/dist/lib/mesh/live/flush.js +115 -32
- package/dist/lib/mesh/live/liveness-carry.d.ts +1 -1
- package/dist/lib/mesh/live/liveness-carry.js +1 -1
- package/dist/lib/mesh/live/reporting-privacy.d.ts +119 -3
- package/dist/lib/mesh/live/reporting-privacy.js +235 -11
- package/dist/lib/mesh/live/spool.d.ts +17 -2
- package/dist/lib/mesh/live/spool.js +22 -6
- package/dist/lib/ontology-graph/legacy/coverage.d.ts +67 -0
- package/dist/lib/ontology-graph/legacy/coverage.js +192 -0
- package/dist/lib/ontology-graph/legacy/index.d.ts +199 -0
- package/dist/lib/ontology-graph/legacy/index.js +1150 -0
- package/dist/lib/ontology-graph/legacy/parse.d.ts +49 -0
- package/dist/lib/ontology-graph/legacy/parse.js +126 -0
- package/dist/lib/ontology-graph/legacy/report.d.ts +14 -0
- package/dist/lib/ontology-graph/legacy/report.js +254 -0
- package/dist/lib/ontology-graph/legacy/verb-map.d.ts +35 -0
- package/dist/lib/ontology-graph/legacy/verb-map.js +84 -0
- package/dist/lib/ontology-graph/lint/checks.d.ts +140 -0
- package/dist/lib/ontology-graph/lint/checks.js +717 -0
- package/dist/lib/ontology-graph/lint/coverage.d.ts +106 -0
- package/dist/lib/ontology-graph/lint/coverage.js +241 -0
- package/dist/lib/ontology-graph/lint/daily-job.d.ts +259 -0
- package/dist/lib/ontology-graph/lint/daily-job.js +595 -0
- package/dist/lib/ontology-graph/lint/index.d.ts +65 -0
- package/dist/lib/ontology-graph/lint/index.js +176 -0
- package/dist/lib/ontology-graph/model/files.d.ts +20 -0
- package/dist/lib/ontology-graph/model/files.js +89 -0
- package/dist/lib/ontology-graph/model/index.d.ts +65 -0
- package/dist/lib/ontology-graph/model/index.js +100 -0
- package/dist/lib/ontology-graph/model/pass-tasks.d.ts +156 -0
- package/dist/lib/ontology-graph/model/pass-tasks.js +345 -0
- package/dist/lib/ontology-graph/model/pass.d.ts +109 -0
- package/dist/lib/ontology-graph/model/pass.js +958 -0
- package/dist/lib/ontology-graph/model/runner.d.ts +50 -0
- package/dist/lib/ontology-graph/model/runner.js +160 -0
- package/dist/lib/ontology-graph/model/step.d.ts +197 -0
- package/dist/lib/ontology-graph/model/step.js +526 -0
- package/dist/lib/ontology-graph/model/tasks.d.ts +183 -0
- package/dist/lib/ontology-graph/model/tasks.js +349 -0
- package/dist/lib/ontology-graph/not-implemented.d.ts +5 -0
- package/dist/lib/ontology-graph/not-implemented.js +8 -0
- package/dist/lib/ontology-graph/org/compare.d.ts +28 -0
- package/dist/lib/ontology-graph/org/compare.js +239 -0
- package/dist/lib/ontology-graph/org/derive.d.ts +67 -0
- package/dist/lib/ontology-graph/org/derive.js +359 -0
- package/dist/lib/ontology-graph/org/index.d.ts +102 -0
- package/dist/lib/ontology-graph/org/index.js +630 -0
- package/dist/lib/ontology-graph/org/load.d.ts +31 -0
- package/dist/lib/ontology-graph/org/load.js +476 -0
- package/dist/lib/ontology-graph/org/role.d.ts +38 -0
- package/dist/lib/ontology-graph/org/role.js +268 -0
- package/dist/lib/ontology-graph/org/structure.d.ts +63 -0
- package/dist/lib/ontology-graph/org/structure.js +437 -0
- package/dist/lib/ontology-graph/org/text.d.ts +97 -0
- package/dist/lib/ontology-graph/org/text.js +321 -0
- package/dist/lib/ontology-graph/org/types.d.ts +457 -0
- package/dist/lib/ontology-graph/org/types.js +80 -0
- package/dist/lib/ontology-graph/pages/index.d.ts +64 -0
- package/dist/lib/ontology-graph/pages/index.js +193 -0
- package/dist/lib/ontology-graph/pages/render.d.ts +144 -0
- package/dist/lib/ontology-graph/pages/render.js +688 -0
- package/dist/lib/ontology-graph/proposals/apply.d.ts +109 -0
- package/dist/lib/ontology-graph/proposals/apply.js +468 -0
- package/dist/lib/ontology-graph/proposals/group.d.ts +63 -0
- package/dist/lib/ontology-graph/proposals/group.js +232 -0
- package/dist/lib/ontology-graph/proposals/index.d.ts +173 -0
- package/dist/lib/ontology-graph/proposals/index.js +474 -0
- package/dist/lib/ontology-graph/proposals/model.d.ts +162 -0
- package/dist/lib/ontology-graph/proposals/model.js +196 -0
- package/dist/lib/ontology-graph/proposals/org-chart.d.ts +82 -0
- package/dist/lib/ontology-graph/proposals/org-chart.js +340 -0
- package/dist/lib/ontology-graph/read/brief.d.ts +26 -0
- package/dist/lib/ontology-graph/read/brief.js +254 -0
- package/dist/lib/ontology-graph/read/graph-index.d.ts +76 -0
- package/dist/lib/ontology-graph/read/graph-index.js +198 -0
- package/dist/lib/ontology-graph/read/index.d.ts +59 -0
- package/dist/lib/ontology-graph/read/index.js +803 -0
- package/dist/lib/ontology-graph/read/member.d.ts +7 -0
- package/dist/lib/ontology-graph/read/member.js +34 -0
- package/dist/lib/ontology-graph/read/names.d.ts +49 -0
- package/dist/lib/ontology-graph/read/names.js +297 -0
- package/dist/lib/ontology-graph/read/reader-setting.d.ts +19 -0
- package/dist/lib/ontology-graph/read/reader-setting.js +62 -0
- package/dist/lib/ontology-graph/read/test-graph.d.ts +37 -0
- package/dist/lib/ontology-graph/read/test-graph.js +150 -0
- package/dist/lib/ontology-graph/replay/buffered-store.d.ts +33 -0
- package/dist/lib/ontology-graph/replay/buffered-store.js +50 -0
- package/dist/lib/ontology-graph/replay/config.d.ts +41 -0
- package/dist/lib/ontology-graph/replay/config.js +105 -0
- package/dist/lib/ontology-graph/replay/engine.d.ts +146 -0
- package/dist/lib/ontology-graph/replay/engine.js +1240 -0
- package/dist/lib/ontology-graph/replay/extractors.d.ts +59 -0
- package/dist/lib/ontology-graph/replay/extractors.js +1555 -0
- package/dist/lib/ontology-graph/replay/index.d.ts +91 -0
- package/dist/lib/ontology-graph/replay/index.js +220 -0
- package/dist/lib/ontology-graph/replay/listing-manifest.d.ts +66 -0
- package/dist/lib/ontology-graph/replay/listing-manifest.js +242 -0
- package/dist/lib/ontology-graph/replay/member.d.ts +19 -0
- package/dist/lib/ontology-graph/replay/member.js +65 -0
- package/dist/lib/ontology-graph/replay/mentions.d.ts +58 -0
- package/dist/lib/ontology-graph/replay/mentions.js +239 -0
- package/dist/lib/ontology-graph/replay/readers.d.ts +98 -0
- package/dist/lib/ontology-graph/replay/readers.js +1251 -0
- package/dist/lib/ontology-graph/replay/rules.d.ts +127 -0
- package/dist/lib/ontology-graph/replay/rules.js +374 -0
- package/dist/lib/ontology-graph/replay/scope.d.ts +35 -0
- package/dist/lib/ontology-graph/replay/scope.js +115 -0
- package/dist/lib/ontology-graph/replay/transcripts.d.ts +39 -0
- package/dist/lib/ontology-graph/replay/transcripts.js +224 -0
- package/dist/lib/ontology-graph/replay/util.d.ts +55 -0
- package/dist/lib/ontology-graph/replay/util.js +256 -0
- package/dist/lib/ontology-graph/resolve/entity-index.d.ts +159 -0
- package/dist/lib/ontology-graph/resolve/entity-index.js +652 -0
- package/dist/lib/ontology-graph/resolve/index.d.ts +113 -0
- package/dist/lib/ontology-graph/resolve/index.js +214 -0
- package/dist/lib/ontology-graph/resolve/machine.d.ts +34 -0
- package/dist/lib/ontology-graph/resolve/machine.js +95 -0
- package/dist/lib/ontology-graph/resolve/normalize.d.ts +35 -0
- package/dist/lib/ontology-graph/resolve/normalize.js +124 -0
- package/dist/lib/ontology-graph/resolve/org-chart.d.ts +107 -0
- package/dist/lib/ontology-graph/resolve/org-chart.js +578 -0
- package/dist/lib/ontology-graph/resolve/org-layer.d.ts +78 -0
- package/dist/lib/ontology-graph/resolve/org-layer.js +159 -0
- package/dist/lib/ontology-graph/resolve/org-seed.d.ts +141 -0
- package/dist/lib/ontology-graph/resolve/org-seed.js +631 -0
- package/dist/lib/ontology-graph/resolve/org-sources.d.ts +165 -0
- package/dist/lib/ontology-graph/resolve/org-sources.js +634 -0
- package/dist/lib/ontology-graph/resolve/roster.d.ts +76 -0
- package/dist/lib/ontology-graph/resolve/roster.js +226 -0
- package/dist/lib/ontology-graph/resolve/seed.d.ts +267 -0
- package/dist/lib/ontology-graph/resolve/seed.js +1198 -0
- package/dist/lib/ontology-graph/resolve/upsert.d.ts +58 -0
- package/dist/lib/ontology-graph/resolve/upsert.js +139 -0
- package/dist/lib/ontology-graph/resolve/writer.d.ts +128 -0
- package/dist/lib/ontology-graph/resolve/writer.js +351 -0
- package/dist/lib/ontology-graph/schema/authority.d.ts +107 -0
- package/dist/lib/ontology-graph/schema/authority.js +186 -0
- package/dist/lib/ontology-graph/schema/default-schema.d.ts +10 -0
- package/dist/lib/ontology-graph/schema/default-schema.js +242 -0
- package/dist/lib/ontology-graph/schema/grammar.d.ts +57 -0
- package/dist/lib/ontology-graph/schema/grammar.js +409 -0
- package/dist/lib/ontology-graph/schema/index.d.ts +12 -0
- package/dist/lib/ontology-graph/schema/index.js +10 -0
- package/dist/lib/ontology-graph/schema/validate.d.ts +13 -0
- package/dist/lib/ontology-graph/schema/validate.js +132 -0
- package/dist/lib/ontology-graph/store/files.d.ts +34 -0
- package/dist/lib/ontology-graph/store/files.js +207 -0
- package/dist/lib/ontology-graph/store/fs.d.ts +30 -0
- package/dist/lib/ontology-graph/store/fs.js +101 -0
- package/dist/lib/ontology-graph/store/graph-store.d.ts +14 -0
- package/dist/lib/ontology-graph/store/graph-store.js +520 -0
- package/dist/lib/ontology-graph/store/index.d.ts +18 -0
- package/dist/lib/ontology-graph/store/index.js +15 -0
- package/dist/lib/ontology-graph/store/ingest.d.ts +37 -0
- package/dist/lib/ontology-graph/store/ingest.js +323 -0
- package/dist/lib/ontology-graph/store/paths.d.ts +114 -0
- package/dist/lib/ontology-graph/store/paths.js +232 -0
- package/dist/lib/ontology-graph/types.d.ts +1190 -0
- package/dist/lib/ontology-graph/types.js +131 -0
- package/dist/lib/secret-scan/gitleaks-rules.generated.js +1 -1
- package/dist/lib/sync-core/engine-holds.d.ts +1 -1
- package/dist/lib/sync-core/engine-holds.js +12 -2
- package/dist/lib/sync-core/hand-back.d.ts +2 -1
- package/dist/lib/sync-core/hand-back.js +16 -2
- package/dist/lib/sync-core/legacy-journal-export-child.d.ts +2 -0
- package/dist/lib/sync-core/legacy-journal-export-child.js +24 -0
- package/dist/lib/sync-core/legacy-journal-export.d.ts +39 -0
- package/dist/lib/sync-core/legacy-journal-export.js +241 -0
- package/dist/lib/sync-core/legacy-journal-reader.d.ts +15 -0
- package/dist/lib/sync-core/legacy-journal-reader.js +56 -0
- package/dist/lib/sync-core/reconcile.d.ts +3 -0
- package/dist/lib/sync-core/reconcile.js +43 -3
- package/dist/utils/cli-telemetry.d.ts +1 -0
- package/dist/utils/cli-telemetry.js +6 -3
- package/dist/utils/frontmatter.d.ts +14 -0
- package/dist/utils/frontmatter.js +18 -0
- package/dist/utils/hook-engine-rollup.d.ts +96 -0
- package/dist/utils/hook-engine-rollup.js +725 -0
- package/dist/utils/interactive-caller.js +1 -1
- package/package.json +9 -9
- package/scripts/install-hook-engine.mjs +4 -0
- package/assets/scaffold/core/scripts/knowledge-prefs.sh +0 -55
|
@@ -4010,7 +4010,7 @@ var init_hex_encoding = __esm({
|
|
|
4010
4010
|
});
|
|
4011
4011
|
|
|
4012
4012
|
// node_modules/.pnpm/@smithy+core@3.37.0/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.js
|
|
4013
|
-
import { ReadStream, fstatSync as fstatSync3, lstatSync as
|
|
4013
|
+
import { ReadStream, fstatSync as fstatSync3, lstatSync as lstatSync8 } from "node:fs";
|
|
4014
4014
|
var calculateBodyLength;
|
|
4015
4015
|
var init_calculateBodyLength = __esm({
|
|
4016
4016
|
"node_modules/.pnpm/@smithy+core@3.37.0/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.js"() {
|
|
@@ -4028,7 +4028,7 @@ var init_calculateBodyLength = __esm({
|
|
|
4028
4028
|
return body.end + 1 - body.start;
|
|
4029
4029
|
} else if (body instanceof ReadStream) {
|
|
4030
4030
|
if (body.path != null) {
|
|
4031
|
-
return
|
|
4031
|
+
return lstatSync8(body.path).size;
|
|
4032
4032
|
} else if (typeof body.fd === "number") {
|
|
4033
4033
|
return fstatSync3(body.fd).size;
|
|
4034
4034
|
}
|
|
@@ -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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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.122/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";
|
|
@@ -56234,11 +56234,20 @@ function readNewestGeneration(dir, scopeDigest, reduce, snapshotDecoder, snapsho
|
|
|
56234
56234
|
return void 0;
|
|
56235
56235
|
}
|
|
56236
56236
|
function readGeneration(dir, scopeDigest, generation, reduce, snapshotDecoder, snapshotMagics, onProgress, repairTornTail = true) {
|
|
56237
|
+
const tornTail = {};
|
|
56238
|
+
try {
|
|
56239
|
+
return replayGeneration(dir, scopeDigest, generation, reduce, snapshotDecoder, snapshotMagics, onProgress, tornTail);
|
|
56240
|
+
} finally {
|
|
56241
|
+
if (repairTornTail && tornTail.boundary !== void 0)
|
|
56242
|
+
truncateWal(walPath(dir, generation), tornTail.boundary);
|
|
56243
|
+
}
|
|
56244
|
+
}
|
|
56245
|
+
function replayGeneration(dir, scopeDigest, generation, reduce, snapshotDecoder, snapshotMagics, onProgress, tornTail = {}) {
|
|
56237
56246
|
const snapshotBytes = generationFileSize(snapshotPath(dir, generation), "snapshot", generation);
|
|
56238
56247
|
const totalBytes = snapshotBytes + generationFileSize(walPath(dir, generation), "WAL", generation);
|
|
56239
56248
|
const snapshot = readSnapshot(snapshotPath(dir, generation), scopeDigest, generation, snapshotDecoder, snapshotMagics);
|
|
56240
56249
|
onProgress?.({ bytesRead: snapshotBytes, totalBytes });
|
|
56241
|
-
const parsed =
|
|
56250
|
+
const parsed = replayWal(walPath(dir, generation), scopeDigest, generation, snapshot.payload.lastRecordSequence, snapshot.payload.state, reduce, snapshotBytes, totalBytes, onProgress, false, tornTail);
|
|
56242
56251
|
return {
|
|
56243
56252
|
generation,
|
|
56244
56253
|
state: parsed.state,
|
|
@@ -56690,6 +56699,15 @@ function readSnapshot(filePath, scopeDigest, generation, snapshotDecoder, snapsh
|
|
|
56690
56699
|
}
|
|
56691
56700
|
}
|
|
56692
56701
|
function readWal(filePath, scopeDigest, generation, snapshotSequence, initialState, reduce, recoveryBytesBeforeWal = 0, recoveryTotalBytes, onProgress, repairTornTail = true, stopOnReducerRejection = false) {
|
|
56702
|
+
const tornTail = {};
|
|
56703
|
+
try {
|
|
56704
|
+
return replayWal(filePath, scopeDigest, generation, snapshotSequence, initialState, reduce, recoveryBytesBeforeWal, recoveryTotalBytes, onProgress, stopOnReducerRejection, tornTail);
|
|
56705
|
+
} finally {
|
|
56706
|
+
if (repairTornTail && tornTail.boundary !== void 0)
|
|
56707
|
+
truncateWal(filePath, tornTail.boundary);
|
|
56708
|
+
}
|
|
56709
|
+
}
|
|
56710
|
+
function replayWal(filePath, scopeDigest, generation, snapshotSequence, initialState, reduce, recoveryBytesBeforeWal, recoveryTotalBytes, onProgress, stopOnReducerRejection, tornTail) {
|
|
56693
56711
|
let fd;
|
|
56694
56712
|
try {
|
|
56695
56713
|
fd = fs9.openSync(filePath, "r");
|
|
@@ -56699,7 +56717,6 @@ function readWal(filePath, scopeDigest, generation, snapshotSequence, initialSta
|
|
|
56699
56717
|
}
|
|
56700
56718
|
throw new Error(`state-store: cannot read WAL generation ${generation}`, { cause: error62 });
|
|
56701
56719
|
}
|
|
56702
|
-
let truncateBoundary;
|
|
56703
56720
|
let rejectedSuffixOffset;
|
|
56704
56721
|
try {
|
|
56705
56722
|
const walBytes = fs9.fstatSync(fd).size;
|
|
@@ -56718,7 +56735,7 @@ function readWal(filePath, scopeDigest, generation, snapshotSequence, initialSta
|
|
|
56718
56735
|
while (offset < walBytes) {
|
|
56719
56736
|
const prefix = Buffer.alloc(FRAME_PREFIX_BYTES);
|
|
56720
56737
|
if (readIntoSync(fd, prefix, offset) < FRAME_PREFIX_BYTES) {
|
|
56721
|
-
|
|
56738
|
+
tornTail.boundary = offset;
|
|
56722
56739
|
break;
|
|
56723
56740
|
}
|
|
56724
56741
|
if (prefix.readUInt32BE(0) !== FRAME_MAGIC) {
|
|
@@ -56739,19 +56756,19 @@ function readWal(filePath, scopeDigest, generation, snapshotSequence, initialSta
|
|
|
56739
56756
|
throw new StateStoreCorruptionError("WAL frame length prefix is corrupt");
|
|
56740
56757
|
}
|
|
56741
56758
|
}
|
|
56742
|
-
|
|
56759
|
+
tornTail.boundary = offset;
|
|
56743
56760
|
break;
|
|
56744
56761
|
}
|
|
56745
56762
|
const frame = Buffer.allocUnsafe(FRAME_PREFIX_BYTES + frameLength);
|
|
56746
56763
|
prefix.copy(frame);
|
|
56747
56764
|
if (readIntoSync(fd, frame.subarray(FRAME_PREFIX_BYTES), offset + FRAME_PREFIX_BYTES) !== frameLength) {
|
|
56748
|
-
|
|
56765
|
+
tornTail.boundary = offset;
|
|
56749
56766
|
break;
|
|
56750
56767
|
}
|
|
56751
56768
|
maxReadBytes = Math.max(maxReadBytes, frame.length);
|
|
56752
56769
|
const parsed = decodeFrame(frame, 0);
|
|
56753
56770
|
if (parsed.kind === "torn") {
|
|
56754
|
-
|
|
56771
|
+
tornTail.boundary = offset;
|
|
56755
56772
|
break;
|
|
56756
56773
|
}
|
|
56757
56774
|
if (parsed.record.sequence !== sequence + 1) {
|
|
@@ -56775,16 +56792,16 @@ function readWal(filePath, scopeDigest, generation, snapshotSequence, initialSta
|
|
|
56775
56792
|
});
|
|
56776
56793
|
}
|
|
56777
56794
|
onProgress?.({
|
|
56778
|
-
bytesRead: recoveryBytesBeforeWal + (
|
|
56795
|
+
bytesRead: recoveryBytesBeforeWal + (tornTail.boundary ?? walBytes),
|
|
56779
56796
|
totalBytes: recoveryTotalBytes ?? recoveryBytesBeforeWal + walBytes
|
|
56780
56797
|
});
|
|
56781
56798
|
return {
|
|
56782
56799
|
state: state2,
|
|
56783
56800
|
lastRecordSequence: sequence,
|
|
56784
56801
|
recordCount,
|
|
56785
|
-
walBytes:
|
|
56802
|
+
walBytes: tornTail.boundary ?? walBytes,
|
|
56786
56803
|
observedWalBytes: walBytes,
|
|
56787
|
-
tornWalTailBoundary:
|
|
56804
|
+
tornWalTailBoundary: tornTail.boundary,
|
|
56788
56805
|
rejectedSuffixOffset,
|
|
56789
56806
|
maxReadBytes
|
|
56790
56807
|
};
|
|
@@ -56794,8 +56811,6 @@ function readWal(filePath, scopeDigest, generation, snapshotSequence, initialSta
|
|
|
56794
56811
|
throw new Error(`state-store: cannot read WAL generation ${generation}`, { cause: error62 });
|
|
56795
56812
|
} finally {
|
|
56796
56813
|
fs9.closeSync(fd);
|
|
56797
|
-
if (repairTornTail && truncateBoundary !== void 0)
|
|
56798
|
-
truncateWal(filePath, truncateBoundary);
|
|
56799
56814
|
}
|
|
56800
56815
|
}
|
|
56801
56816
|
function readWalTail(filePath, scopeDigest, generation, startOffset, startSequence, initialState, reduce) {
|
|
@@ -58021,11 +58036,11 @@ function crc32c(bytes) {
|
|
|
58021
58036
|
return (crc ^ 4294967295) >>> 0;
|
|
58022
58037
|
}
|
|
58023
58038
|
|
|
58024
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58039
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
58025
58040
|
import * as fs15 from "fs";
|
|
58026
58041
|
import * as path13 from "path";
|
|
58027
58042
|
|
|
58028
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58043
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
58029
58044
|
import * as fs14 from "fs";
|
|
58030
58045
|
import * as os2 from "os";
|
|
58031
58046
|
import * as path12 from "path";
|
|
@@ -58033,7 +58048,7 @@ import * as crypto8 from "crypto";
|
|
|
58033
58048
|
import { spawn } from "node:child_process";
|
|
58034
58049
|
import { fileURLToPath } from "node:url";
|
|
58035
58050
|
|
|
58036
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58051
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
|
|
58037
58052
|
var JOURNAL_DECODE_WINDOW = 1e4;
|
|
58038
58053
|
var rowsInFlight = 0;
|
|
58039
58054
|
var peakRowsInFlight = 0;
|
|
@@ -58092,7 +58107,7 @@ function journalFingerprintMatchesStat(fingerprint, lstat3) {
|
|
|
58092
58107
|
return lstat3.size === fingerprint.size && lstat3.mtimeMs === fingerprint.mtimeMs && lstat3.ctimeMs === fingerprint.ctimeMs;
|
|
58093
58108
|
}
|
|
58094
58109
|
|
|
58095
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
58110
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
|
|
58096
58111
|
var HASH_BYTES = 32;
|
|
58097
58112
|
var ETAG_BYTES = 16;
|
|
58098
58113
|
var INITIAL_ROW_CAPACITY = 16;
|
|
@@ -59622,7 +59637,7 @@ function readOptionalBoolean(entry, key, flags, presentBit, valueBit) {
|
|
|
59622
59637
|
entry[key] = Boolean(flags & valueBit);
|
|
59623
59638
|
}
|
|
59624
59639
|
|
|
59625
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59640
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
|
|
59626
59641
|
var rowsByRecordProxy = /* @__PURE__ */ new WeakMap();
|
|
59627
59642
|
function journalRecordRows(files) {
|
|
59628
59643
|
return rowsByRecordProxy.get(files);
|
|
@@ -59688,13 +59703,13 @@ function createJournalRecordProxy(store) {
|
|
|
59688
59703
|
return proxy;
|
|
59689
59704
|
}
|
|
59690
59705
|
|
|
59691
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59706
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
59692
59707
|
import { StringDecoder } from "node:string_decoder";
|
|
59693
59708
|
|
|
59694
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59709
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
59695
59710
|
import * as crypto4 from "node:crypto";
|
|
59696
59711
|
|
|
59697
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59712
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
|
|
59698
59713
|
var packedJournalRows = /* @__PURE__ */ new WeakMap();
|
|
59699
59714
|
var sharedAreaJournalRowStores = /* @__PURE__ */ new Map();
|
|
59700
59715
|
function areaJournalRowsCacheKey(rootDir, slug) {
|
|
@@ -59717,7 +59732,7 @@ function forgetSharedAreaJournalRows(cacheKey) {
|
|
|
59717
59732
|
sharedAreaJournalRowStores.delete(cacheKey);
|
|
59718
59733
|
}
|
|
59719
59734
|
|
|
59720
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
59735
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
59721
59736
|
var JOURNAL_SNAPSHOT_V4_MAGIC = SNAPSHOT_V4_MAGIC;
|
|
59722
59737
|
var SNAPSHOT_FIXED_HEADER_BYTES2 = 52;
|
|
59723
59738
|
var SECTION_ALIGNMENT_BYTES = 8;
|
|
@@ -60253,7 +60268,7 @@ function assertLittleEndian() {
|
|
|
60253
60268
|
throw new Error("HQSNAP4 requires a little-endian host");
|
|
60254
60269
|
}
|
|
60255
60270
|
|
|
60256
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60271
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
60257
60272
|
function decodeJournalSnapshot(chunks, magic) {
|
|
60258
60273
|
if (magic.equals(SNAPSHOT_V3_MAGIC))
|
|
60259
60274
|
return decodeV3JournalSnapshot(chunks);
|
|
@@ -60607,12 +60622,12 @@ function isPunctuation(value) {
|
|
|
60607
60622
|
return value === "{" || value === "}" || value === "[" || value === "]" || value === ":" || value === ",";
|
|
60608
60623
|
}
|
|
60609
60624
|
|
|
60610
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60625
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
|
|
60611
60626
|
function toPosixKey(key) {
|
|
60612
60627
|
return key.split("\\").join("/");
|
|
60613
60628
|
}
|
|
60614
60629
|
|
|
60615
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60630
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
|
|
60616
60631
|
function isUnderAnyRoot(key, roots) {
|
|
60617
60632
|
if (roots.has(key))
|
|
60618
60633
|
return true;
|
|
@@ -60625,7 +60640,7 @@ function isUnderAnyRoot(key, roots) {
|
|
|
60625
60640
|
return false;
|
|
60626
60641
|
}
|
|
60627
60642
|
|
|
60628
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60643
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
|
|
60629
60644
|
import * as fs10 from "node:fs";
|
|
60630
60645
|
import { StringDecoder as StringDecoder2 } from "node:string_decoder";
|
|
60631
60646
|
var CHUNK_BYTES = 1 << 18;
|
|
@@ -60739,12 +60754,12 @@ function streamJournalLedgerRows(filePath, onRow) {
|
|
|
60739
60754
|
}
|
|
60740
60755
|
}
|
|
60741
60756
|
|
|
60742
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60757
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
60743
60758
|
import * as crypto7 from "node:crypto";
|
|
60744
60759
|
import * as fs13 from "node:fs";
|
|
60745
60760
|
import * as path11 from "node:path";
|
|
60746
60761
|
|
|
60747
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
60762
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
|
|
60748
60763
|
import * as crypto5 from "crypto";
|
|
60749
60764
|
import * as fs11 from "fs";
|
|
60750
60765
|
import * as os from "os";
|
|
@@ -61433,7 +61448,7 @@ function withOperationLockSync(hqRoot, command5, fn, opts = {}) {
|
|
|
61433
61448
|
}
|
|
61434
61449
|
}
|
|
61435
61450
|
|
|
61436
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
61451
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
|
|
61437
61452
|
import * as crypto6 from "node:crypto";
|
|
61438
61453
|
var DIRECT_DELTA = 1;
|
|
61439
61454
|
var PREPARED_TRANSACTION = 2;
|
|
@@ -62862,7 +62877,7 @@ function cloneMetadata(metadata) {
|
|
|
62862
62877
|
return result;
|
|
62863
62878
|
}
|
|
62864
62879
|
|
|
62865
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
62880
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
|
|
62866
62881
|
import * as fs12 from "fs";
|
|
62867
62882
|
import * as path10 from "path";
|
|
62868
62883
|
var AREA_LAYOUT_FORMAT = 1;
|
|
@@ -63173,7 +63188,7 @@ function compareText(left, right) {
|
|
|
63173
63188
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
63174
63189
|
}
|
|
63175
63190
|
|
|
63176
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
63191
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
63177
63192
|
function logSwallowed2(line) {
|
|
63178
63193
|
process.stderr.write(line);
|
|
63179
63194
|
}
|
|
@@ -63952,7 +63967,7 @@ function canonicalJsonOrUndefined(value) {
|
|
|
63952
63967
|
return value === void 0 ? void 0 : canonicalJson2(value);
|
|
63953
63968
|
}
|
|
63954
63969
|
|
|
63955
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
63970
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
|
|
63956
63971
|
var AREA_MAINTENANCE_CURSOR_FORMAT = 1;
|
|
63957
63972
|
var CURSOR_SET = 1;
|
|
63958
63973
|
var AreaMaintenanceCursorStore = class _AreaMaintenanceCursorStore {
|
|
@@ -64054,7 +64069,7 @@ function sameAreas(left, right) {
|
|
|
64054
64069
|
return left.length === right.length && left.every((areaId, index) => areaId === right[index]);
|
|
64055
64070
|
}
|
|
64056
64071
|
|
|
64057
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
64072
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
64058
64073
|
var TOMBSTONE_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
64059
64074
|
var JOURNAL_VERSION_CURRENT = "2";
|
|
64060
64075
|
var MAX_PULLS_PER_COMPANY = 50;
|
|
@@ -64842,39 +64857,43 @@ function journalStoreOptions(slug, initialJournal, companyUid) {
|
|
|
64842
64857
|
rootDir: getStateDir(),
|
|
64843
64858
|
scopeId: journalScopeId(slug),
|
|
64844
64859
|
initialState: { journal: initialJournal },
|
|
64845
|
-
snapshotDecoder:
|
|
64860
|
+
snapshotDecoder: journalSnapshotDecoder(),
|
|
64846
64861
|
snapshotEncoder: journalSnapshotEncoderForTest === void 0 ? (generation, scopeDigest, payload2) => encodeV4JournalSnapshotChunks(generation, scopeDigest, payload2, (diagnostic) => journalSnapshotQuarantineListeners.get(slug)?.(diagnostic)) : journalSnapshotEncoderForTest ?? void 0,
|
|
64847
64862
|
snapshotEncoderAsync: asyncJournalCompactionEnabled && journalSnapshotEncoderForTest === void 0 ? (generation, scopeDigest, payload2) => encodeV4JournalSnapshotChunksAsync(generation, scopeDigest, payload2, (diagnostic) => journalSnapshotQuarantineListeners.get(slug)?.(diagnostic)) : void 0,
|
|
64848
64863
|
snapshotMagics: [SNAPSHOT_V4_MAGIC],
|
|
64849
64864
|
recoverRejectedDelta: rejectedDeltaRecoveryEnabled,
|
|
64850
64865
|
validateRecord: validateJournalRecord,
|
|
64851
|
-
reduce: (state2, record2) =>
|
|
64852
|
-
if (record2.type === JOURNAL_WAL_RECORD_TYPE) {
|
|
64853
|
-
const payload2 = record2.payload;
|
|
64854
|
-
state2.journal = payload2.journal;
|
|
64855
|
-
return state2;
|
|
64856
|
-
}
|
|
64857
|
-
if (record2.type === JOURNAL_DELTA_RECORD_TYPE) {
|
|
64858
|
-
const delta = record2.payload;
|
|
64859
|
-
const replayDelta = quarantineIncompleteJournalUpserts(slug, companyUid, record2, delta);
|
|
64860
|
-
const existingRows = journalRecordRows(state2.journal.files) ?? decodedJournalRows(state2.journal);
|
|
64861
|
-
if (existingRows) {
|
|
64862
|
-
const rows = existingRows instanceof JournalRowOverlay ? existingRows.withCommittedDelta(replayDelta.upserts, replayDelta.deletes) : new JournalRowOverlay(existingRows).withCommittedDelta(replayDelta.upserts, replayDelta.deletes);
|
|
64863
|
-
state2.journal.files = createJournalRecordProxy(rows);
|
|
64864
|
-
} else {
|
|
64865
|
-
for (const key of replayDelta.deletes)
|
|
64866
|
-
delete state2.journal.files[key];
|
|
64867
|
-
Object.assign(state2.journal.files, replayDelta.upserts);
|
|
64868
|
-
}
|
|
64869
|
-
state2.journal.version = delta.version;
|
|
64870
|
-
state2.journal.lastSync = delta.lastSync ?? state2.journal.lastSync;
|
|
64871
|
-
state2.journal.pulls = delta.pulls ?? state2.journal.pulls;
|
|
64872
|
-
return state2;
|
|
64873
|
-
}
|
|
64874
|
-
throw new StateStoreUnsupportedRecordTypeError(record2.type, "journal");
|
|
64875
|
-
}
|
|
64866
|
+
reduce: (state2, record2) => reduceJournalRecord(state2, record2, (replayed, delta) => quarantineIncompleteJournalUpserts(slug, companyUid, replayed, delta))
|
|
64876
64867
|
};
|
|
64877
64868
|
}
|
|
64869
|
+
function journalSnapshotDecoder() {
|
|
64870
|
+
return journalSnapshotDecoderForTest === void 0 ? decodeJournalSnapshot : journalSnapshotDecoderForTest ?? void 0;
|
|
64871
|
+
}
|
|
64872
|
+
function reduceJournalRecord(state2, record2, replayDeltaFor) {
|
|
64873
|
+
if (record2.type === JOURNAL_WAL_RECORD_TYPE) {
|
|
64874
|
+
const payload2 = record2.payload;
|
|
64875
|
+
state2.journal = payload2.journal;
|
|
64876
|
+
return state2;
|
|
64877
|
+
}
|
|
64878
|
+
if (record2.type === JOURNAL_DELTA_RECORD_TYPE) {
|
|
64879
|
+
const delta = record2.payload;
|
|
64880
|
+
const replayDelta = replayDeltaFor(record2, delta);
|
|
64881
|
+
const existingRows = journalRecordRows(state2.journal.files) ?? decodedJournalRows(state2.journal);
|
|
64882
|
+
if (existingRows) {
|
|
64883
|
+
const rows = existingRows instanceof JournalRowOverlay ? existingRows.withCommittedDelta(replayDelta.upserts, replayDelta.deletes) : new JournalRowOverlay(existingRows).withCommittedDelta(replayDelta.upserts, replayDelta.deletes);
|
|
64884
|
+
state2.journal.files = createJournalRecordProxy(rows);
|
|
64885
|
+
} else {
|
|
64886
|
+
for (const key of replayDelta.deletes)
|
|
64887
|
+
delete state2.journal.files[key];
|
|
64888
|
+
Object.assign(state2.journal.files, replayDelta.upserts);
|
|
64889
|
+
}
|
|
64890
|
+
state2.journal.version = delta.version;
|
|
64891
|
+
state2.journal.lastSync = delta.lastSync ?? state2.journal.lastSync;
|
|
64892
|
+
state2.journal.pulls = delta.pulls ?? state2.journal.pulls;
|
|
64893
|
+
return state2;
|
|
64894
|
+
}
|
|
64895
|
+
throw new StateStoreUnsupportedRecordTypeError(record2.type, "journal");
|
|
64896
|
+
}
|
|
64878
64897
|
function validateJournalRecord(record2) {
|
|
64879
64898
|
if (record2.type === JOURNAL_WAL_RECORD_TYPE) {
|
|
64880
64899
|
const payload2 = record2.payload;
|
|
@@ -65560,7 +65579,7 @@ function assertCompleteJournalUpserts(delta) {
|
|
|
65560
65579
|
}
|
|
65561
65580
|
var loggedQuarantinedJournalRecords = /* @__PURE__ */ new Set();
|
|
65562
65581
|
function quarantineIncompleteJournalUpserts(slug, companyUid, record2, delta, freshCompare = false) {
|
|
65563
|
-
const invalid =
|
|
65582
|
+
const invalid = incompleteJournalUpserts(delta);
|
|
65564
65583
|
if (invalid.length === 0)
|
|
65565
65584
|
return delta;
|
|
65566
65585
|
const content = JSON.stringify({
|
|
@@ -65640,6 +65659,12 @@ function quarantineIncompleteJournalUpserts(slug, companyUid, record2, delta, fr
|
|
|
65640
65659
|
loggedQuarantinedJournalRecords.add(eventKey);
|
|
65641
65660
|
writeJournalRecoveryEvent("journal_record_quarantined", "JournalIncompleteUpsertError", companyUid);
|
|
65642
65661
|
}
|
|
65662
|
+
return withoutIncompleteJournalUpserts(delta, invalid);
|
|
65663
|
+
}
|
|
65664
|
+
function incompleteJournalUpserts(delta) {
|
|
65665
|
+
return Object.entries(delta.upserts).map(([key, value]) => ({ key, value, missingFields: incompleteJournalEntryFields(value) })).filter((entry) => entry.missingFields.length > 0);
|
|
65666
|
+
}
|
|
65667
|
+
function withoutIncompleteJournalUpserts(delta, invalid) {
|
|
65643
65668
|
const invalidPaths = new Set(invalid.map((entry) => entry.key));
|
|
65644
65669
|
const upserts = Object.fromEntries(Object.entries(delta.upserts).filter(([key]) => !invalidPaths.has(key)));
|
|
65645
65670
|
const deletes = delta.deletes.filter((key) => !invalidPaths.has(key));
|
|
@@ -66271,7 +66296,7 @@ function gcTombstones(journal, now = Date.now()) {
|
|
|
66271
66296
|
return removed;
|
|
66272
66297
|
}
|
|
66273
66298
|
|
|
66274
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66299
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
66275
66300
|
function logSwallowed3(line) {
|
|
66276
66301
|
process.stderr.write(line);
|
|
66277
66302
|
}
|
|
@@ -66649,7 +66674,7 @@ function purgeExcludedPersonalVaultJournalEntries(journal, hqRoot, syncRoot, sho
|
|
|
66649
66674
|
return { removed, byReason };
|
|
66650
66675
|
}
|
|
66651
66676
|
|
|
66652
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66677
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/local-link-warning.js
|
|
66653
66678
|
import fs16 from "node:fs";
|
|
66654
66679
|
import path14 from "node:path";
|
|
66655
66680
|
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.";
|
|
@@ -66766,7 +66791,7 @@ function linkWarningMessage(warning4) {
|
|
|
66766
66791
|
return `Skipped symbolic link (${warning4.reason}). ${warning4.remedy}`;
|
|
66767
66792
|
}
|
|
66768
66793
|
|
|
66769
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66794
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/parent-link-alias.js
|
|
66770
66795
|
import fs17 from "node:fs";
|
|
66771
66796
|
import path15 from "node:path";
|
|
66772
66797
|
function linkedParentBelowRoot(root5, dir, realRoot, realDir) {
|
|
@@ -66817,12 +66842,12 @@ function inRootAliasPath(root5, absolutePath) {
|
|
|
66817
66842
|
return path15.join(rel, path15.basename(absolutePath)).split(path15.sep).join("/");
|
|
66818
66843
|
}
|
|
66819
66844
|
|
|
66820
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66845
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
66821
66846
|
import * as fs26 from "fs";
|
|
66822
66847
|
import * as path21 from "path";
|
|
66823
66848
|
import * as crypto11 from "crypto";
|
|
66824
66849
|
|
|
66825
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66850
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
|
|
66826
66851
|
import * as crypto9 from "crypto";
|
|
66827
66852
|
import * as fs18 from "fs";
|
|
66828
66853
|
import * as os3 from "os";
|
|
@@ -66878,11 +66903,11 @@ function shouldRecordLocalDeleteIntent(localPath, absent) {
|
|
|
66878
66903
|
return absent && !isLocalPathBeingReplaced(localPath);
|
|
66879
66904
|
}
|
|
66880
66905
|
|
|
66881
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66906
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
66882
66907
|
import { Readable as Readable10, Transform as Transform3 } from "stream";
|
|
66883
66908
|
import { pipeline } from "stream/promises";
|
|
66884
66909
|
|
|
66885
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
66910
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
|
|
66886
66911
|
var TRANSIENT_NETWORK_EXIT = 75;
|
|
66887
66912
|
var TRANSIENT_CODES = /* @__PURE__ */ new Set([
|
|
66888
66913
|
"ECONNREFUSED",
|
|
@@ -66992,7 +67017,7 @@ function hasDeniedConnect(err, depth) {
|
|
|
66992
67017
|
return false;
|
|
66993
67018
|
}
|
|
66994
67019
|
|
|
66995
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67020
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
|
|
66996
67021
|
var ONTOLOGY_ENTITY_KEY = /^ontology\/entities\/[a-z][a-z0-9-]*\/[^/]+\.md$/;
|
|
66997
67022
|
var ENTITY_LAST_UPDATED_META_KEY = "hq-entity-last-updated";
|
|
66998
67023
|
function ontologyVaultKey(relPath) {
|
|
@@ -67024,13 +67049,13 @@ function buildEntityMetadata(key, body) {
|
|
|
67024
67049
|
return stamp === null ? {} : { [ENTITY_LAST_UPDATED_META_KEY]: stamp };
|
|
67025
67050
|
}
|
|
67026
67051
|
|
|
67027
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67052
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
67028
67053
|
var import_client_s3 = __toESM(require_dist_cjs16(), 1);
|
|
67029
67054
|
import * as http3 from "node:http";
|
|
67030
67055
|
import * as https2 from "node:https";
|
|
67031
67056
|
import { Transform as Transform2 } from "node:stream";
|
|
67032
67057
|
|
|
67033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67058
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
|
|
67034
67059
|
import { createHash as createHash14 } from "node:crypto";
|
|
67035
67060
|
var CHECKSUM_HEADER_NAMES = [
|
|
67036
67061
|
"content-md5",
|
|
@@ -67101,7 +67126,7 @@ function headersForObjectLockPut(url2, headers, body) {
|
|
|
67101
67126
|
return out;
|
|
67102
67127
|
}
|
|
67103
67128
|
|
|
67104
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67129
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
|
|
67105
67130
|
import { Transform } from "node:stream";
|
|
67106
67131
|
var MAX_BYTES_PER_SEC_ENV = "HQ_SYNC_MAX_BYTES_PER_SEC";
|
|
67107
67132
|
var MAX_CONCURRENCY_ENV = "HQ_SYNC_MAX_CONCURRENCY";
|
|
@@ -67502,7 +67527,7 @@ function getBandwidthGovernor() {
|
|
|
67502
67527
|
return singleton;
|
|
67503
67528
|
}
|
|
67504
67529
|
|
|
67505
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67530
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
|
|
67506
67531
|
var HEADER_CLIENT_NAME = "x-hq-client-name";
|
|
67507
67532
|
var HEADER_CLIENT_VERSION = "x-hq-client-version";
|
|
67508
67533
|
var HEADER_HQ_CORE_VERSION = "x-hq-core-version";
|
|
@@ -67525,7 +67550,7 @@ function buildClientHeaders(info) {
|
|
|
67525
67550
|
return headers;
|
|
67526
67551
|
}
|
|
67527
67552
|
|
|
67528
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67553
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
|
|
67529
67554
|
var MAX_EVENTS_PER_BATCH = 50;
|
|
67530
67555
|
var DEFAULT_TIMEOUT_MS = 1500;
|
|
67531
67556
|
var MAX_PROPERTIES = 40;
|
|
@@ -67669,12 +67694,12 @@ function describeError(err) {
|
|
|
67669
67694
|
return err instanceof Error ? err.name : typeof err;
|
|
67670
67695
|
}
|
|
67671
67696
|
|
|
67672
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67697
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
67673
67698
|
import * as http from "node:http";
|
|
67674
67699
|
import * as https from "node:https";
|
|
67675
67700
|
import { Readable as Readable9 } from "node:stream";
|
|
67676
67701
|
|
|
67677
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67702
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
|
|
67678
67703
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
67679
67704
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
67680
67705
|
var REALTIME_TELEMETRY_EVENT = "sync.realtime.timing";
|
|
@@ -67864,7 +67889,7 @@ function writeRealtimeTelemetryToStderr(record2) {
|
|
|
67864
67889
|
`);
|
|
67865
67890
|
}
|
|
67866
67891
|
|
|
67867
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67892
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
67868
67893
|
var HTTP_AGENT = new http.Agent({ keepAlive: true, maxSockets: 8 });
|
|
67869
67894
|
var HTTPS_AGENT = new https.Agent({ keepAlive: true, maxSockets: 8 });
|
|
67870
67895
|
function getKeepAliveAgent(secure) {
|
|
@@ -67924,7 +67949,7 @@ function requestWithKeepAlive(url2, init) {
|
|
|
67924
67949
|
});
|
|
67925
67950
|
}
|
|
67926
67951
|
|
|
67927
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
67952
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-request-counter.js
|
|
67928
67953
|
var counts = { vault: 0, list: 0, object: 0 };
|
|
67929
67954
|
var UNCOUNTED_VAULT_PATH_PREFIX = "/v1/telemetry/";
|
|
67930
67955
|
function syncRequestKindForVaultPath(path85) {
|
|
@@ -86815,7 +86840,7 @@ function date5(params) {
|
|
|
86815
86840
|
return _coercedDate(ZodDate, params);
|
|
86816
86841
|
}
|
|
86817
86842
|
|
|
86818
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86843
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
86819
86844
|
import { spawnSync } from "child_process";
|
|
86820
86845
|
import * as crypto10 from "crypto";
|
|
86821
86846
|
import * as fs24 from "fs";
|
|
@@ -87337,7 +87362,7 @@ defineLazyProperty(apps, "browser", () => "browser");
|
|
|
87337
87362
|
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
87338
87363
|
var open_default = open4;
|
|
87339
87364
|
|
|
87340
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87365
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
87341
87366
|
var CognitoAuthError = class extends Error {
|
|
87342
87367
|
constructor(message) {
|
|
87343
87368
|
super(message);
|
|
@@ -88897,7 +88922,7 @@ function pickNewerSession(fromKeychain, other) {
|
|
|
88897
88922
|
return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
|
|
88898
88923
|
}
|
|
88899
88924
|
|
|
88900
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88925
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
|
|
88901
88926
|
var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
|
|
88902
88927
|
var VaultCredentialScopeError = class extends Error {
|
|
88903
88928
|
droppedWriteGrantPrefixes;
|
|
@@ -88939,7 +88964,7 @@ function assertCredentialScopeUsable(diagnostic) {
|
|
|
88939
88964
|
}
|
|
88940
88965
|
}
|
|
88941
88966
|
|
|
88942
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88967
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
|
|
88943
88968
|
var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
|
|
88944
88969
|
var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
88945
88970
|
"PLAN_LIMIT_EXCEEDED",
|
|
@@ -89082,7 +89107,7 @@ function formatPlanLimitNotice(event) {
|
|
|
89082
89107
|
return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
|
|
89083
89108
|
}
|
|
89084
89109
|
|
|
89085
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89110
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
|
|
89086
89111
|
var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
|
|
89087
89112
|
var VaultClientError = class extends Error {
|
|
89088
89113
|
statusCode;
|
|
@@ -90081,7 +90106,7 @@ function parseVaultErrorBody(body) {
|
|
|
90081
90106
|
}
|
|
90082
90107
|
}
|
|
90083
90108
|
|
|
90084
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90109
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/vault-key-grammar.js
|
|
90085
90110
|
var KEY_CONTROL_CHARS = /[\x00-\x1F\x7F]/;
|
|
90086
90111
|
var MAX_URI_DECODE_DEPTH = 4;
|
|
90087
90112
|
function classifyVaultKey(key, _scope) {
|
|
@@ -90188,7 +90213,7 @@ function isPresignKeyGrammarCode(code) {
|
|
|
90188
90213
|
return typeof code === "string" && (code === "INVALID_KEY" || code.startsWith("INVALID_KEY_") || code.startsWith("PRESIGN_KEY_"));
|
|
90189
90214
|
}
|
|
90190
90215
|
|
|
90191
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
90216
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
90192
90217
|
var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
|
|
90193
90218
|
var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
|
|
90194
90219
|
var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
|
|
@@ -91669,7 +91694,7 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor, options
|
|
|
91669
91694
|
};
|
|
91670
91695
|
}
|
|
91671
91696
|
|
|
91672
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91697
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
|
|
91673
91698
|
var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
|
|
91674
91699
|
function portableModeStamp(mode, platform3 = process.platform) {
|
|
91675
91700
|
if (platform3 === "win32")
|
|
@@ -91680,7 +91705,7 @@ function isPortableModeSignal(mode) {
|
|
|
91680
91705
|
return !WIN32_SYNTHETIC_MODES.has(mode & 511);
|
|
91681
91706
|
}
|
|
91682
91707
|
|
|
91683
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91708
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
|
|
91684
91709
|
import * as path19 from "path";
|
|
91685
91710
|
var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
|
|
91686
91711
|
var SHEBANG = Buffer.from("#!");
|
|
@@ -91736,7 +91761,7 @@ function normalizeScriptLineEndings(body) {
|
|
|
91736
91761
|
return changed ? out.subarray(0, n3) : null;
|
|
91737
91762
|
}
|
|
91738
91763
|
|
|
91739
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91764
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
|
|
91740
91765
|
import path20 from "node:path";
|
|
91741
91766
|
import fs25 from "node:fs";
|
|
91742
91767
|
function personalSymlinkTargetLinkPath(relativePath) {
|
|
@@ -91959,7 +91984,7 @@ function redactShape(target, classification) {
|
|
|
91959
91984
|
return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
|
|
91960
91985
|
}
|
|
91961
91986
|
|
|
91962
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91987
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
91963
91988
|
var DOWNLOAD_STREAM_MAX_RETRIES = 3;
|
|
91964
91989
|
var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
|
|
91965
91990
|
function sleepMs(ms) {
|
|
@@ -93497,7 +93522,7 @@ function getMimeType(filePath) {
|
|
|
93497
93522
|
return mimeTypes[ext] || "application/octet-stream";
|
|
93498
93523
|
}
|
|
93499
93524
|
|
|
93500
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93525
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/windows-extended-path.js
|
|
93501
93526
|
import fs27 from "node:fs";
|
|
93502
93527
|
var EXTENDED_UNC = /^[\\/]{2}\?[\\/]UNC[\\/]/i;
|
|
93503
93528
|
var EXTENDED_DRIVE = /^[\\/]{2}\?[\\/](?=[A-Za-z]:(?:[\\/]|$))/;
|
|
@@ -93519,7 +93544,7 @@ function realpathRootSync(p3, impl = DEFAULT_IMPL) {
|
|
|
93519
93544
|
}
|
|
93520
93545
|
}
|
|
93521
93546
|
|
|
93522
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93547
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
|
|
93523
93548
|
var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
93524
93549
|
var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
93525
93550
|
function nativeSeparatorsToPosix(relativePath, sep23) {
|
|
@@ -93614,7 +93639,7 @@ function decodePushEvent(input2) {
|
|
|
93614
93639
|
return parsed.data;
|
|
93615
93640
|
}
|
|
93616
93641
|
|
|
93617
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93642
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
|
|
93618
93643
|
import * as path22 from "path";
|
|
93619
93644
|
function routeChangeToTarget(relPath, kind) {
|
|
93620
93645
|
const norm = relPath.split(path22.sep).join("/").replace(/^\.\//, "");
|
|
@@ -93783,7 +93808,7 @@ function carriedFlags(baseArgv) {
|
|
|
93783
93808
|
return carried;
|
|
93784
93809
|
}
|
|
93785
93810
|
|
|
93786
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
93811
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
|
|
93787
93812
|
var moduleLoadFetch = globalThis.fetch;
|
|
93788
93813
|
var moduleLoadAbortController = globalThis.AbortController;
|
|
93789
93814
|
var successOutcomes = /* @__PURE__ */ new WeakMap();
|
|
@@ -94005,7 +94030,7 @@ var HttpPushTransport = class {
|
|
|
94005
94030
|
}
|
|
94006
94031
|
};
|
|
94007
94032
|
|
|
94008
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94033
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
|
|
94009
94034
|
import * as fs28 from "fs";
|
|
94010
94035
|
import * as path23 from "path";
|
|
94011
94036
|
function foldVaultKey(key) {
|
|
@@ -94153,7 +94178,7 @@ function directoryFoldsCase(dir) {
|
|
|
94153
94178
|
return false;
|
|
94154
94179
|
}
|
|
94155
94180
|
|
|
94156
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94181
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
94157
94182
|
var DEBOUNCE_MS = 2e3;
|
|
94158
94183
|
var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
|
|
94159
94184
|
var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
|
|
@@ -97343,7 +97368,7 @@ var PushEventEmitter = class _PushEventEmitter {
|
|
|
97343
97368
|
}
|
|
97344
97369
|
};
|
|
97345
97370
|
|
|
97346
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97371
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
97347
97372
|
var SELF_PROFILE_ENV = "HQ_SYNC_SELF_PROFILE";
|
|
97348
97373
|
var SELF_PROFILE_CPU_CORES_ENV = "HQ_SYNC_SELF_PROFILE_CPU_CORES";
|
|
97349
97374
|
var SELF_PROFILE_RSS_MB_ENV = "HQ_SYNC_SELF_PROFILE_RSS_MB";
|
|
@@ -97958,7 +97983,7 @@ function readRunnerVersion() {
|
|
|
97958
97983
|
}
|
|
97959
97984
|
}
|
|
97960
97985
|
|
|
97961
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97986
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
97962
97987
|
import * as os28 from "os";
|
|
97963
97988
|
import * as path84 from "path";
|
|
97964
97989
|
import * as fs90 from "fs";
|
|
@@ -97966,7 +97991,7 @@ import { randomUUID as randomUUID14 } from "node:crypto";
|
|
|
97966
97991
|
import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
|
|
97967
97992
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
97968
97993
|
|
|
97969
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
97994
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/context.js
|
|
97970
97995
|
import { createHash as createHash18 } from "node:crypto";
|
|
97971
97996
|
var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
97972
97997
|
var DEFAULT_SESSION_DURATION_SECONDS = 900;
|
|
@@ -98197,13 +98222,13 @@ async function vendSelfCredentials(personUid, config2) {
|
|
|
98197
98222
|
return postVend(route, { personUid }, config2);
|
|
98198
98223
|
}
|
|
98199
98224
|
|
|
98200
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98225
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
|
|
98201
98226
|
var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
|
|
98202
98227
|
|
|
98203
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98228
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
|
|
98204
98229
|
var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
|
|
98205
98230
|
|
|
98206
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98231
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
|
|
98207
98232
|
var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
|
|
98208
98233
|
var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
|
|
98209
98234
|
var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
|
|
@@ -98253,7 +98278,7 @@ var MultipartByteBudget = class {
|
|
|
98253
98278
|
};
|
|
98254
98279
|
var processByteBudget = new MultipartByteBudget();
|
|
98255
98280
|
|
|
98256
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98281
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/server-owned-skips.js
|
|
98257
98282
|
var SERVER_OWNED_FOLDERS = [
|
|
98258
98283
|
{
|
|
98259
98284
|
folder: "sources/slack-dm/",
|
|
@@ -98316,13 +98341,13 @@ function groupServerOwnedSkips(paths, options = {}) {
|
|
|
98316
98341
|
return groups;
|
|
98317
98342
|
}
|
|
98318
98343
|
|
|
98319
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98344
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98320
98345
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
98321
98346
|
import * as fs32 from "fs";
|
|
98322
98347
|
import * as os8 from "os";
|
|
98323
98348
|
import * as path27 from "path";
|
|
98324
98349
|
|
|
98325
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98350
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
|
|
98326
98351
|
import { createHash as createHash19 } from "node:crypto";
|
|
98327
98352
|
import * as fs31 from "node:fs";
|
|
98328
98353
|
import * as os7 from "node:os";
|
|
@@ -98471,7 +98496,7 @@ function readPendingConflictNotices() {
|
|
|
98471
98496
|
return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
|
|
98472
98497
|
}
|
|
98473
98498
|
|
|
98474
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98499
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
98475
98500
|
function logSwallowed5(line) {
|
|
98476
98501
|
process.stderr.write(line);
|
|
98477
98502
|
}
|
|
@@ -98758,7 +98783,7 @@ function createPassSummaryRecorder() {
|
|
|
98758
98783
|
};
|
|
98759
98784
|
}
|
|
98760
98785
|
|
|
98761
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98786
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
|
|
98762
98787
|
var SCOPE_PREFIX_MARKER = "\0hq-scope:";
|
|
98763
98788
|
var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
|
|
98764
98789
|
var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
|
|
@@ -98958,7 +98983,7 @@ function grantPathToScopePrefix(grantPath, slug) {
|
|
|
98958
98983
|
return pathToScopePrefix(p3);
|
|
98959
98984
|
}
|
|
98960
98985
|
|
|
98961
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
98986
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
|
|
98962
98987
|
import * as fs33 from "fs";
|
|
98963
98988
|
import * as path28 from "path";
|
|
98964
98989
|
function buildScopeShrinkPlan(input2) {
|
|
@@ -99254,18 +99279,18 @@ function applyScopeShrink(input2) {
|
|
|
99254
99279
|
};
|
|
99255
99280
|
}
|
|
99256
99281
|
|
|
99257
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99282
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99258
99283
|
init_dist();
|
|
99259
99284
|
import * as fs34 from "fs";
|
|
99260
99285
|
import * as path29 from "path";
|
|
99261
99286
|
|
|
99262
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99287
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
|
|
99263
99288
|
var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
|
|
99264
99289
|
function flagCompanyUid(uid) {
|
|
99265
99290
|
return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
|
|
99266
99291
|
}
|
|
99267
99292
|
|
|
99268
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99293
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
99269
99294
|
var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
|
|
99270
99295
|
var WAL_REJECTED_DELTA_RECOVERY_FLAG = "sync.wal-rejected-delta-recovery";
|
|
99271
99296
|
var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
|
|
@@ -99415,7 +99440,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
|
|
|
99415
99440
|
return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
|
|
99416
99441
|
}
|
|
99417
99442
|
|
|
99418
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99443
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
|
|
99419
99444
|
var VEND_PATH_CAP = 10;
|
|
99420
99445
|
var POST_FILTER_THRESHOLD = 50;
|
|
99421
99446
|
var VEND_FANOUT_CONCURRENCY = 5;
|
|
@@ -99502,20 +99527,20 @@ function dedupByKey(files) {
|
|
|
99502
99527
|
return out;
|
|
99503
99528
|
}
|
|
99504
99529
|
|
|
99505
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99530
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
|
|
99506
99531
|
var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
|
|
99507
99532
|
var MIB = 1024 * 1024;
|
|
99508
99533
|
|
|
99509
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99534
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99510
99535
|
import * as fs35 from "fs";
|
|
99511
99536
|
import * as path30 from "path";
|
|
99512
99537
|
|
|
99513
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99538
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/push-only-prefixes.js
|
|
99514
99539
|
var SESSIONS_SCOPE_PREFIX = "sessions/";
|
|
99515
99540
|
var SESSION_LOGS_PUSH_ONLY_PREFIX = "workspace/.session-logs/";
|
|
99516
99541
|
var HQ_OFFLOAD_PREFIX = ".hq-offload/";
|
|
99517
99542
|
|
|
99518
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99543
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
99519
99544
|
function sessionsPushOnlyScope(scope) {
|
|
99520
99545
|
return { ...scope, excludePrefixes: [SESSIONS_SCOPE_PREFIX] };
|
|
99521
99546
|
}
|
|
@@ -99611,7 +99636,7 @@ function readPinnedPrefixes(hqRoot, slug) {
|
|
|
99611
99636
|
return [];
|
|
99612
99637
|
}
|
|
99613
99638
|
|
|
99614
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99639
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
|
|
99615
99640
|
import * as fs36 from "fs";
|
|
99616
99641
|
import * as path31 from "path";
|
|
99617
99642
|
var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
|
|
@@ -99828,13 +99853,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
|
|
|
99828
99853
|
}
|
|
99829
99854
|
};
|
|
99830
99855
|
|
|
99831
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99856
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
99832
99857
|
import { createHash as createHash20 } from "node:crypto";
|
|
99833
99858
|
import { promises as fs41 } from "node:fs";
|
|
99834
99859
|
import * as os9 from "node:os";
|
|
99835
99860
|
import * as path35 from "node:path";
|
|
99836
99861
|
|
|
99837
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99862
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry-scan-cap.js
|
|
99838
99863
|
import { promises as fs37 } from "node:fs";
|
|
99839
99864
|
async function hasUnreadBytes(filePath, stored) {
|
|
99840
99865
|
let stat5;
|
|
@@ -99852,7 +99877,7 @@ async function hasUnreadBytes(filePath, stored) {
|
|
|
99852
99877
|
return stat5.size > offset;
|
|
99853
99878
|
}
|
|
99854
99879
|
|
|
99855
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
99880
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
99856
99881
|
import { promises as fs38 } from "node:fs";
|
|
99857
99882
|
import * as path32 from "node:path";
|
|
99858
99883
|
|
|
@@ -102922,7 +102947,7 @@ var {
|
|
|
102922
102947
|
safeDump
|
|
102923
102948
|
} = yaml;
|
|
102924
102949
|
|
|
102925
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
102950
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
102926
102951
|
function logSwallowed6(line) {
|
|
102927
102952
|
process.stderr.write(line);
|
|
102928
102953
|
}
|
|
@@ -103133,7 +103158,7 @@ function resolveCompanyForCwd(cwd, map5) {
|
|
|
103133
103158
|
return collapsed !== c5 ? match(collapsed) : void 0;
|
|
103134
103159
|
}
|
|
103135
103160
|
|
|
103136
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103161
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
|
|
103137
103162
|
import { promises as fs39 } from "node:fs";
|
|
103138
103163
|
import * as path33 from "node:path";
|
|
103139
103164
|
var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
|
|
@@ -103580,7 +103605,7 @@ function createUsageCompanyFallback(options) {
|
|
|
103580
103605
|
};
|
|
103581
103606
|
}
|
|
103582
103607
|
|
|
103583
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103608
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry/consent-source.js
|
|
103584
103609
|
var KNOWN_SOURCES = /* @__PURE__ */ new Set([
|
|
103585
103610
|
"plan-required",
|
|
103586
103611
|
"notice-pending",
|
|
@@ -103660,7 +103685,7 @@ function decideCollection(resp, local) {
|
|
|
103660
103685
|
}
|
|
103661
103686
|
}
|
|
103662
103687
|
|
|
103663
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103688
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry/pre-consent-buffer.js
|
|
103664
103689
|
import { randomBytes as randomBytes8 } from "node:crypto";
|
|
103665
103690
|
import { promises as fs40 } from "node:fs";
|
|
103666
103691
|
import * as path34 from "node:path";
|
|
@@ -103892,7 +103917,7 @@ async function discardPreConsentBuffer(file2, opts = {}) {
|
|
|
103892
103917
|
});
|
|
103893
103918
|
}
|
|
103894
103919
|
|
|
103895
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
103920
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
103896
103921
|
function emptyCursor() {
|
|
103897
103922
|
return { version: "1", files: {} };
|
|
103898
103923
|
}
|
|
@@ -104866,7 +104891,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
104866
104891
|
};
|
|
104867
104892
|
}
|
|
104868
104893
|
|
|
104869
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
104894
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
|
|
104870
104895
|
import { createHash as createHash21 } from "node:crypto";
|
|
104871
104896
|
import { promises as fs42 } from "node:fs";
|
|
104872
104897
|
import * as os10 from "node:os";
|
|
@@ -105737,12 +105762,12 @@ async function collectAndSendSkillTelemetry(opts) {
|
|
|
105737
105762
|
};
|
|
105738
105763
|
}
|
|
105739
105764
|
|
|
105740
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105765
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
105741
105766
|
import * as fs59 from "fs";
|
|
105742
105767
|
import * as os18 from "os";
|
|
105743
105768
|
import * as path52 from "path";
|
|
105744
105769
|
|
|
105745
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105770
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-pass-event.js
|
|
105746
105771
|
import { createHash as createHash22 } from "node:crypto";
|
|
105747
105772
|
import * as os11 from "node:os";
|
|
105748
105773
|
var SYNC_PASS_EVENT_NAME = "sync_pass";
|
|
@@ -105835,7 +105860,7 @@ function startSyncPassObservation(context, deps = {}) {
|
|
|
105835
105860
|
};
|
|
105836
105861
|
}
|
|
105837
105862
|
|
|
105838
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
105863
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-object-events.js
|
|
105839
105864
|
import { createHash as createHash23 } from "node:crypto";
|
|
105840
105865
|
var SYNC_CONFLICT_EVENT_NAME = "sync_conflict";
|
|
105841
105866
|
var SYNC_OVERWRITE_EVENT_NAME = "sync_overwrite";
|
|
@@ -105972,7 +105997,7 @@ function createSyncObjectEventSink(deps) {
|
|
|
105972
105997
|
};
|
|
105973
105998
|
}
|
|
105974
105999
|
|
|
105975
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106000
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
|
|
105976
106001
|
init_dist();
|
|
105977
106002
|
var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
|
|
105978
106003
|
var FLAG_READ_TIMEOUT_MS = 2e3;
|
|
@@ -106021,7 +106046,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
|
|
|
106021
106046
|
}
|
|
106022
106047
|
}
|
|
106023
106048
|
|
|
106024
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106049
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
|
|
106025
106050
|
function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
106026
106051
|
if (typeof client.presign === "function" && typeof client.listFiles === "function") {
|
|
106027
106052
|
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
@@ -106039,7 +106064,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
|
106039
106064
|
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
106040
106065
|
}
|
|
106041
106066
|
|
|
106042
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106067
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
|
|
106043
106068
|
import * as fs43 from "node:fs";
|
|
106044
106069
|
import * as path37 from "node:path";
|
|
106045
106070
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -106084,7 +106109,7 @@ function appendSyncDecision(input2, options = {}) {
|
|
|
106084
106109
|
}
|
|
106085
106110
|
}
|
|
106086
106111
|
|
|
106087
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106112
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/scattered-delete-burst.js
|
|
106088
106113
|
import * as fs44 from "fs";
|
|
106089
106114
|
import * as path38 from "path";
|
|
106090
106115
|
var SCATTERED_DELETE_MIN_ABS = 20;
|
|
@@ -106150,7 +106175,7 @@ function detectScatteredDeleteBurst(candidateKeys, journal, syncRoot, uploadedHa
|
|
|
106150
106175
|
return { keys, areas: areas.size, samplePaths: keys.slice(0, SCATTERED_DELETE_SAMPLE_CAP) };
|
|
106151
106176
|
}
|
|
106152
106177
|
|
|
106153
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106178
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/unattended-delete-hold.js
|
|
106154
106179
|
var UNATTENDED_SYNC_ENV = "HQ_SYNC_UNATTENDED";
|
|
106155
106180
|
var MACHINE_ENTITY_TYPES = /* @__PURE__ */ new Set(["agent", "outpost", "company-outpost"]);
|
|
106156
106181
|
var unattendedForProcess = false;
|
|
@@ -106242,10 +106267,10 @@ function unattendedPullDeleteDecision(hold, entry) {
|
|
|
106242
106267
|
return entry.direction === "up" ? "defer" : "restore";
|
|
106243
106268
|
}
|
|
106244
106269
|
|
|
106245
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106270
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
106246
106271
|
import * as crypto16 from "crypto";
|
|
106247
106272
|
|
|
106248
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106273
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
|
|
106249
106274
|
import * as fs45 from "fs";
|
|
106250
106275
|
import * as path39 from "path";
|
|
106251
106276
|
var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
|
|
@@ -106328,7 +106353,7 @@ async function primePrivateFolderUpload(input2) {
|
|
|
106328
106353
|
}]);
|
|
106329
106354
|
}
|
|
106330
106355
|
|
|
106331
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106356
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
|
|
106332
106357
|
import * as crypto12 from "node:crypto";
|
|
106333
106358
|
import * as fs46 from "node:fs";
|
|
106334
106359
|
import * as os12 from "node:os";
|
|
@@ -106654,7 +106679,7 @@ function pruneSyncedSessionLogs(root5) {
|
|
|
106654
106679
|
}
|
|
106655
106680
|
}
|
|
106656
106681
|
|
|
106657
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
106682
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
|
|
106658
106683
|
var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
|
|
106659
106684
|
var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
|
|
106660
106685
|
var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
|
|
@@ -107231,7 +107256,7 @@ var FullPassCapController = class {
|
|
|
107231
107256
|
}
|
|
107232
107257
|
};
|
|
107233
107258
|
|
|
107234
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107259
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
|
|
107235
107260
|
import * as fs47 from "fs";
|
|
107236
107261
|
import * as readline from "readline";
|
|
107237
107262
|
function conflictPromptHeadline(conflict) {
|
|
@@ -107435,7 +107460,7 @@ async function promptConflict(conflict) {
|
|
|
107435
107460
|
}
|
|
107436
107461
|
}
|
|
107437
107462
|
|
|
107438
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107463
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/reconcile-skip-reason.js
|
|
107439
107464
|
var HUMAN_UP_TO_DATE_LINE_CAP = 20;
|
|
107440
107465
|
var HUMAN_SIZE_LIMIT_LINE_CAP = 5;
|
|
107441
107466
|
function isUpToDateSkipReason(reason) {
|
|
@@ -107512,7 +107537,7 @@ function createHumanSkipLineLog() {
|
|
|
107512
107537
|
};
|
|
107513
107538
|
}
|
|
107514
107539
|
|
|
107515
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107540
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
|
|
107516
107541
|
import * as crypto13 from "node:crypto";
|
|
107517
107542
|
import * as fs48 from "node:fs";
|
|
107518
107543
|
import * as os13 from "node:os";
|
|
@@ -107906,7 +107931,7 @@ async function fetchTombstonePage(url2, token) {
|
|
|
107906
107931
|
throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
|
|
107907
107932
|
}
|
|
107908
107933
|
|
|
107909
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
107934
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
|
|
107910
107935
|
import { execSync } from "child_process";
|
|
107911
107936
|
import * as fs49 from "fs";
|
|
107912
107937
|
import * as os14 from "os";
|
|
@@ -108056,11 +108081,11 @@ function hasRemoteChanged(remote, entry) {
|
|
|
108056
108081
|
return remote.lastModified.getTime() > syncedAt;
|
|
108057
108082
|
}
|
|
108058
108083
|
|
|
108059
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108084
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
108060
108085
|
import * as crypto14 from "crypto";
|
|
108061
108086
|
import * as path44 from "path";
|
|
108062
108087
|
|
|
108063
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108088
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
|
|
108064
108089
|
import { createHash as createHash26, randomUUID as randomUUID6 } from "node:crypto";
|
|
108065
108090
|
import * as fs50 from "node:fs";
|
|
108066
108091
|
import * as os15 from "node:os";
|
|
@@ -108180,7 +108205,7 @@ function readShortMachineId(hqRoot) {
|
|
|
108180
108205
|
return createHash26("sha1").update(full).digest("hex").slice(0, 6);
|
|
108181
108206
|
}
|
|
108182
108207
|
|
|
108183
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
108184
108209
|
var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
|
|
108185
108210
|
var CONFLICT_PROBE_DIR = ".hq/tmp";
|
|
108186
108211
|
function safeTimestamp(detectedAt) {
|
|
@@ -108198,7 +108223,7 @@ function buildConflictId(originalRelative, detectedAt) {
|
|
|
108198
108223
|
return `${safePath}-${safeTimestamp(detectedAt)}`;
|
|
108199
108224
|
}
|
|
108200
108225
|
|
|
108201
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108226
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
|
|
108202
108227
|
import * as crypto15 from "crypto";
|
|
108203
108228
|
import * as fs51 from "fs";
|
|
108204
108229
|
import * as path45 from "path";
|
|
@@ -108352,7 +108377,7 @@ function pruneConflictIndex(hqRoot) {
|
|
|
108352
108377
|
return result;
|
|
108353
108378
|
}
|
|
108354
108379
|
|
|
108355
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108380
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
|
|
108356
108381
|
import * as fs52 from "node:fs";
|
|
108357
108382
|
function isAppendOnlyPath(relativePath) {
|
|
108358
108383
|
const base = relativePath.split(/[\\/]/).pop() ?? "";
|
|
@@ -108424,7 +108449,7 @@ function appendIfUnchanged(file2, expected, merged) {
|
|
|
108424
108449
|
return "appended";
|
|
108425
108450
|
}
|
|
108426
108451
|
|
|
108427
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108452
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/append-log-merge.js
|
|
108428
108453
|
import { createHash as createHash27 } from "node:crypto";
|
|
108429
108454
|
import * as fs53 from "node:fs";
|
|
108430
108455
|
import * as path46 from "node:path";
|
|
@@ -108703,7 +108728,7 @@ function replaceKeepingMode(file2, expected, merged) {
|
|
|
108703
108728
|
return "appended";
|
|
108704
108729
|
}
|
|
108705
108730
|
|
|
108706
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108731
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
|
|
108707
108732
|
import * as fs54 from "node:fs";
|
|
108708
108733
|
import * as path47 from "node:path";
|
|
108709
108734
|
function isBoardJsonPath(relativePath) {
|
|
@@ -108849,7 +108874,7 @@ function replaceIfUnchanged(file2, expected, merged) {
|
|
|
108849
108874
|
return "appended";
|
|
108850
108875
|
}
|
|
108851
108876
|
|
|
108852
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
108877
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
|
|
108853
108878
|
import { createHash as createHash28, randomBytes as randomBytes11 } from "node:crypto";
|
|
108854
108879
|
import * as fs55 from "node:fs";
|
|
108855
108880
|
import * as os16 from "node:os";
|
|
@@ -109173,7 +109198,7 @@ function findUploadIntent(scope, relativePath, hash3, notBeforeMs, remoteLastMod
|
|
|
109173
109198
|
return best;
|
|
109174
109199
|
}
|
|
109175
109200
|
|
|
109176
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109201
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
|
|
109177
109202
|
init_dist();
|
|
109178
109203
|
import { createHash as createHash29 } from "node:crypto";
|
|
109179
109204
|
var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
|
|
@@ -109267,7 +109292,7 @@ ${caller}`;
|
|
|
109267
109292
|
return failed ? false : value;
|
|
109268
109293
|
}
|
|
109269
109294
|
|
|
109270
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109295
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
|
|
109271
109296
|
import fs56 from "node:fs";
|
|
109272
109297
|
import path49 from "node:path";
|
|
109273
109298
|
var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
|
|
@@ -109333,7 +109358,7 @@ function entityIsFreshForCreate(body, nowMs) {
|
|
|
109333
109358
|
return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
|
|
109334
109359
|
}
|
|
109335
109360
|
|
|
109336
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109361
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
|
|
109337
109362
|
init_dist();
|
|
109338
109363
|
import { createHash as createHash30 } from "node:crypto";
|
|
109339
109364
|
var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
|
|
@@ -109407,7 +109432,7 @@ ${caller}`;
|
|
|
109407
109432
|
return failed ? false : value;
|
|
109408
109433
|
}
|
|
109409
109434
|
|
|
109410
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109435
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
|
|
109411
109436
|
init_dist();
|
|
109412
109437
|
import { createHash as createHash31 } from "node:crypto";
|
|
109413
109438
|
var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
|
|
@@ -109470,7 +109495,7 @@ ${caller}`;
|
|
|
109470
109495
|
return failed ? false : value;
|
|
109471
109496
|
}
|
|
109472
109497
|
|
|
109473
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109498
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
|
|
109474
109499
|
import * as path50 from "node:path";
|
|
109475
109500
|
var MAX_DIAGNOSTIC_LENGTH = 1024;
|
|
109476
109501
|
function sanitizeDiagnostic(value) {
|
|
@@ -109603,7 +109628,7 @@ function pushFailureTelemetryLabel(value) {
|
|
|
109603
109628
|
return safe.slice(0, 128) || "unknown";
|
|
109604
109629
|
}
|
|
109605
109630
|
|
|
109606
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109631
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
|
|
109607
109632
|
import * as fs57 from "fs";
|
|
109608
109633
|
function toPortableSymlinkTarget(target, platform3 = process.platform) {
|
|
109609
109634
|
return platform3 === "win32" ? target.replaceAll("\\", "/") : target;
|
|
@@ -109622,14 +109647,14 @@ function readlinkOrNull(linkPath, readlink = (path85) => fs57.readlinkSync(path8
|
|
|
109622
109647
|
}
|
|
109623
109648
|
}
|
|
109624
109649
|
|
|
109625
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109650
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
|
|
109626
109651
|
function checkpointReconcileApply(checkpoint, paths) {
|
|
109627
109652
|
if (!checkpoint)
|
|
109628
109653
|
return;
|
|
109629
109654
|
checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path85) => ({ path: path85, durable: true })));
|
|
109630
109655
|
}
|
|
109631
109656
|
|
|
109632
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109657
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/handback-keep.js
|
|
109633
109658
|
import * as fs58 from "fs";
|
|
109634
109659
|
import * as os17 from "os";
|
|
109635
109660
|
import * as path51 from "path";
|
|
@@ -109780,7 +109805,7 @@ function updateVault(file2, uid, drop, seen) {
|
|
|
109780
109805
|
return false;
|
|
109781
109806
|
}
|
|
109782
109807
|
|
|
109783
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109808
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
|
|
109784
109809
|
init_dist();
|
|
109785
109810
|
import { createHash as createHash32 } from "node:crypto";
|
|
109786
109811
|
var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
|
|
@@ -109925,7 +109950,7 @@ function warnFlagReadFailure(write) {
|
|
|
109925
109950
|
`)))(line);
|
|
109926
109951
|
}
|
|
109927
109952
|
|
|
109928
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
109953
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
109929
109954
|
async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
|
|
109930
109955
|
const probeKey = crypto16.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
|
|
109931
109956
|
const probePath = path52.join(os18.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
|
|
@@ -115151,12 +115176,12 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
|
|
|
115151
115176
|
return out;
|
|
115152
115177
|
}
|
|
115153
115178
|
|
|
115154
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115179
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
115155
115180
|
import * as fs66 from "fs";
|
|
115156
115181
|
import * as path59 from "path";
|
|
115157
115182
|
import { isDeepStrictEqual } from "node:util";
|
|
115158
115183
|
|
|
115159
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115184
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
|
|
115160
115185
|
import * as fs60 from "node:fs";
|
|
115161
115186
|
import * as os19 from "node:os";
|
|
115162
115187
|
import * as path53 from "node:path";
|
|
@@ -115235,7 +115260,7 @@ function* readRows(filename) {
|
|
|
115235
115260
|
}
|
|
115236
115261
|
}
|
|
115237
115262
|
|
|
115238
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115263
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
115239
115264
|
import { execFile as execFile6 } from "child_process";
|
|
115240
115265
|
import { randomBytes as randomBytes13 } from "crypto";
|
|
115241
115266
|
import * as fs62 from "fs";
|
|
@@ -115243,7 +115268,7 @@ import * as os20 from "os";
|
|
|
115243
115268
|
import * as path55 from "path";
|
|
115244
115269
|
import { promisify as promisify6 } from "util";
|
|
115245
115270
|
|
|
115246
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115271
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
|
|
115247
115272
|
import * as crypto17 from "crypto";
|
|
115248
115273
|
import * as fs61 from "fs";
|
|
115249
115274
|
import * as path54 from "path";
|
|
@@ -115429,7 +115454,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
|
|
|
115429
115454
|
return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
|
|
115430
115455
|
}
|
|
115431
115456
|
|
|
115432
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115457
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
115433
115458
|
var execFileAsync5 = promisify6(execFile6);
|
|
115434
115459
|
var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
|
|
115435
115460
|
function gitSidecarDir(hqRoot, homeDir = os20.homedir()) {
|
|
@@ -115802,10 +115827,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
|
|
|
115802
115827
|
};
|
|
115803
115828
|
}
|
|
115804
115829
|
|
|
115805
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115830
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
|
|
115806
115831
|
var SKILLS_KEY_PREFIX = ".claude/skills/";
|
|
115807
115832
|
|
|
115808
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115833
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
|
|
115809
115834
|
var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
|
|
115810
115835
|
function rawSha256FromContentHash(contentHash) {
|
|
115811
115836
|
if (contentHash === void 0)
|
|
@@ -115816,7 +115841,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
|
|
|
115816
115841
|
return rawSha256FromContentHash(contentHash) === rawHash;
|
|
115817
115842
|
}
|
|
115818
115843
|
|
|
115819
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115844
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
|
|
115820
115845
|
import { createHash as createHash35 } from "node:crypto";
|
|
115821
115846
|
var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
|
|
115822
115847
|
var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
|
|
@@ -115841,7 +115866,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
|
|
|
115841
115866
|
return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
|
|
115842
115867
|
}
|
|
115843
115868
|
|
|
115844
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115869
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
|
|
115845
115870
|
init_dist();
|
|
115846
115871
|
import { createHash as createHash36 } from "node:crypto";
|
|
115847
115872
|
function logSwallowed9(line) {
|
|
@@ -115958,7 +115983,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
|
|
|
115958
115983
|
return defaultTargetedUpsertExactListGate(config2, companyUid);
|
|
115959
115984
|
}
|
|
115960
115985
|
|
|
115961
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115986
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
|
|
115962
115987
|
var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
|
|
115963
115988
|
function coalesceDenseTargetedPullPaths(paths) {
|
|
115964
115989
|
const normalized = paths.map((path85) => path85.replace(/\\/g, "/"));
|
|
@@ -115996,15 +116021,15 @@ function coalesceDenseTargetedPullPaths(paths) {
|
|
|
115996
116021
|
return result;
|
|
115997
116022
|
}
|
|
115998
116023
|
|
|
115999
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116024
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
116000
116025
|
import { createHash as createHash38 } from "node:crypto";
|
|
116001
116026
|
|
|
116002
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116027
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
116003
116028
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
116004
116029
|
import * as fs65 from "fs";
|
|
116005
116030
|
import * as path58 from "path";
|
|
116006
116031
|
|
|
116007
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116032
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
|
|
116008
116033
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
116009
116034
|
import * as fs63 from "fs";
|
|
116010
116035
|
import * as path56 from "path";
|
|
@@ -116267,7 +116292,7 @@ function materializeLegacyKnowledgeRepos(root5) {
|
|
|
116267
116292
|
}
|
|
116268
116293
|
}
|
|
116269
116294
|
|
|
116270
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116295
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
|
|
116271
116296
|
import * as crypto18 from "node:crypto";
|
|
116272
116297
|
import * as fs64 from "node:fs";
|
|
116273
116298
|
import * as os21 from "node:os";
|
|
@@ -117211,7 +117236,7 @@ function captureSessionLogs(root5, options = {}) {
|
|
|
117211
117236
|
}
|
|
117212
117237
|
}
|
|
117213
117238
|
|
|
117214
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117239
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
117215
117240
|
function isDir2(p3) {
|
|
117216
117241
|
try {
|
|
117217
117242
|
return fs65.statSync(p3).isDirectory();
|
|
@@ -117888,7 +117913,7 @@ function emitReindexTelemetry(opts, result, lockResult) {
|
|
|
117888
117913
|
}, { claims: opts.telemetryClaims });
|
|
117889
117914
|
}
|
|
117890
117915
|
|
|
117891
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117916
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
117892
117917
|
async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
|
|
117893
117918
|
work.rowsSinceYield += 1;
|
|
117894
117919
|
if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
|
|
@@ -122144,10 +122169,10 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
122144
122169
|
}
|
|
122145
122170
|
}
|
|
122146
122171
|
|
|
122147
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122172
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
122148
122173
|
import { createRequire } from "node:module";
|
|
122149
122174
|
|
|
122150
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122175
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/hq-core-source.js
|
|
122151
122176
|
var HQ_CORE_SOURCE_DEFAULTS = Object.freeze({
|
|
122152
122177
|
repo: "indigoai-us/hq-core",
|
|
122153
122178
|
stagingRepo: "indigoai-us/hq-core-staging",
|
|
@@ -122156,7 +122181,7 @@ var HQ_CORE_SOURCE_DEFAULTS = Object.freeze({
|
|
|
122156
122181
|
webBase: "https://github.com"
|
|
122157
122182
|
});
|
|
122158
122183
|
|
|
122159
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122184
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-native-copy.js
|
|
122160
122185
|
var POSIX_CHARACTER_CLASSES = {
|
|
122161
122186
|
alnum: "A-Za-z0-9",
|
|
122162
122187
|
alpha: "A-Za-z",
|
|
@@ -122290,7 +122315,7 @@ function compileRsyncPattern(rawPattern) {
|
|
|
122290
122315
|
};
|
|
122291
122316
|
}
|
|
122292
122317
|
|
|
122293
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122318
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
122294
122319
|
var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
|
|
122295
122320
|
var require2 = createRequire(import.meta.url);
|
|
122296
122321
|
var GIT_BATCH_MAX_BUFFER = 256 * 1024 * 1024;
|
|
@@ -122338,7 +122363,7 @@ var INSTALL_EXCLUDED_MATCHERS = INSTALL_EXCLUDED_PATTERNS.map(compileRsyncPatter
|
|
|
122338
122363
|
var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
|
|
122339
122364
|
var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
|
|
122340
122365
|
|
|
122341
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122366
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
|
|
122342
122367
|
var SOURCE_CHANNELS = Object.freeze([
|
|
122343
122368
|
"meeting",
|
|
122344
122369
|
"email",
|
|
@@ -122347,7 +122372,7 @@ var SOURCE_CHANNELS = Object.freeze([
|
|
|
122347
122372
|
"notion"
|
|
122348
122373
|
]);
|
|
122349
122374
|
|
|
122350
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122375
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
|
|
122351
122376
|
var SIGNAL_TYPES = Object.freeze([
|
|
122352
122377
|
"action_item",
|
|
122353
122378
|
"commitment",
|
|
@@ -122357,7 +122382,7 @@ var SIGNAL_TYPES = Object.freeze([
|
|
|
122357
122382
|
"summary"
|
|
122358
122383
|
]);
|
|
122359
122384
|
|
|
122360
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122385
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
|
|
122361
122386
|
var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
|
|
122362
122387
|
var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
|
|
122363
122388
|
function parseFeatureSwitch(value) {
|
|
@@ -122426,7 +122451,7 @@ function isEventSyncLocallyDisabled(value) {
|
|
|
122426
122451
|
}
|
|
122427
122452
|
}
|
|
122428
122453
|
|
|
122429
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122454
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
|
|
122430
122455
|
var import_client_cloudwatch = __toESM(require_dist_cjs18(), 1);
|
|
122431
122456
|
var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
|
|
122432
122457
|
var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
|
|
@@ -122494,7 +122519,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
|
|
|
122494
122519
|
}
|
|
122495
122520
|
}
|
|
122496
122521
|
|
|
122497
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
122522
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
|
|
122498
122523
|
var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
|
|
122499
122524
|
var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
|
|
122500
122525
|
var DEFAULT_WAIT_TIME_SECONDS = 20;
|
|
@@ -124027,10 +124052,10 @@ function defaultSleep(ms, signal) {
|
|
|
124027
124052
|
});
|
|
124028
124053
|
}
|
|
124029
124054
|
|
|
124030
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124055
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
|
|
124031
124056
|
var import_pino = __toESM(require_pino(), 1);
|
|
124032
124057
|
|
|
124033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124058
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
|
|
124034
124059
|
function assertCanonicalPath(path85) {
|
|
124035
124060
|
if (path85.length === 0 || path85.startsWith("/") || path85.endsWith("/") || path85.includes("\\") || path85.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
|
|
124036
124061
|
throw new Error(`path lease requires a canonical relative path: ${path85}`);
|
|
@@ -124093,7 +124118,7 @@ var PathLease = class {
|
|
|
124093
124118
|
}
|
|
124094
124119
|
};
|
|
124095
124120
|
|
|
124096
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124121
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
|
|
124097
124122
|
var MAX_REALTIME_PULL_YIELDS = 3;
|
|
124098
124123
|
var MAX_REALTIME_PULL_YIELD_MS = 6e4;
|
|
124099
124124
|
var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
|
|
@@ -124602,7 +124627,7 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
124602
124627
|
}
|
|
124603
124628
|
};
|
|
124604
124629
|
|
|
124605
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124630
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
|
|
124606
124631
|
var InlineSyncWorkerAdapter = class {
|
|
124607
124632
|
handler;
|
|
124608
124633
|
constructor(handler) {
|
|
@@ -124613,11 +124638,11 @@ var InlineSyncWorkerAdapter = class {
|
|
|
124613
124638
|
}
|
|
124614
124639
|
};
|
|
124615
124640
|
|
|
124616
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124641
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124617
124642
|
import * as fs68 from "node:fs";
|
|
124618
124643
|
import * as path62 from "node:path";
|
|
124619
124644
|
|
|
124620
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124645
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
|
|
124621
124646
|
import * as path60 from "node:path";
|
|
124622
124647
|
var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
124623
124648
|
function isSafeCompanySlug(companiesDir, slug) {
|
|
@@ -124634,7 +124659,7 @@ function isSafeCompanySlug(companiesDir, slug) {
|
|
|
124634
124659
|
return path60.dirname(companyDir) === resolvedCompaniesDir;
|
|
124635
124660
|
}
|
|
124636
124661
|
|
|
124637
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124662
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
|
|
124638
124663
|
var SYNC_MANIFEST_CONTRACT_VERSION = 1;
|
|
124639
124664
|
var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
|
|
124640
124665
|
var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
|
|
@@ -124803,7 +124828,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
|
|
|
124803
124828
|
}
|
|
124804
124829
|
};
|
|
124805
124830
|
|
|
124806
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124831
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
|
|
124807
124832
|
import * as crypto19 from "node:crypto";
|
|
124808
124833
|
import * as fs67 from "node:fs";
|
|
124809
124834
|
import * as path61 from "node:path";
|
|
@@ -124978,7 +125003,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
|
|
|
124978
125003
|
}
|
|
124979
125004
|
var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
|
|
124980
125005
|
|
|
124981
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125006
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
124982
125007
|
function logSwallowed11(line) {
|
|
124983
125008
|
process.stderr.write(line);
|
|
124984
125009
|
}
|
|
@@ -125587,10 +125612,10 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
|
|
|
125587
125612
|
return upload;
|
|
125588
125613
|
}
|
|
125589
125614
|
|
|
125590
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125615
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125591
125616
|
import * as fs70 from "node:fs";
|
|
125592
125617
|
|
|
125593
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125618
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/leg-skip-store.js
|
|
125594
125619
|
import * as fs69 from "node:fs";
|
|
125595
125620
|
import * as path63 from "node:path";
|
|
125596
125621
|
function logSwallowed12(line) {
|
|
@@ -125646,7 +125671,7 @@ function clearManifestLegSkip(stateDir5, scopeKey) {
|
|
|
125646
125671
|
}
|
|
125647
125672
|
}
|
|
125648
125673
|
|
|
125649
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125674
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
125650
125675
|
var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
|
|
125651
125676
|
var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
125652
125677
|
var DEFAULT_MANIFEST_UPLOAD_WALL_MS = 6e4;
|
|
@@ -126215,7 +126240,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
126215
126240
|
};
|
|
126216
126241
|
}
|
|
126217
126242
|
|
|
126218
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126243
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
|
|
126219
126244
|
import * as fs71 from "node:fs";
|
|
126220
126245
|
import * as path64 from "node:path";
|
|
126221
126246
|
import { createHash as createHash40, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -126463,7 +126488,7 @@ function validUnresolvedCompanyRecord(value) {
|
|
|
126463
126488
|
return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
|
|
126464
126489
|
}
|
|
126465
126490
|
|
|
126466
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126491
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/version.js
|
|
126467
126492
|
import { readFileSync as readFileSync42 } from "node:fs";
|
|
126468
126493
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
126469
126494
|
import path65 from "node:path";
|
|
@@ -126471,7 +126496,7 @@ var here = path65.dirname(fileURLToPath4(import.meta.url));
|
|
|
126471
126496
|
var pkg = JSON.parse(readFileSync42(path65.resolve(here, "..", "package.json"), "utf-8"));
|
|
126472
126497
|
var HQ_CLOUD_VERSION = pkg.version;
|
|
126473
126498
|
|
|
126474
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126499
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
|
|
126475
126500
|
import { promises as fs72 } from "node:fs";
|
|
126476
126501
|
import * as os22 from "node:os";
|
|
126477
126502
|
import * as path66 from "node:path";
|
|
@@ -126845,7 +126870,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
|
|
|
126845
126870
|
return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
|
|
126846
126871
|
}
|
|
126847
126872
|
|
|
126848
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126873
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
|
|
126849
126874
|
import * as fs73 from "fs";
|
|
126850
126875
|
import * as path67 from "path";
|
|
126851
126876
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -127495,7 +127520,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
|
|
|
127495
127520
|
return false;
|
|
127496
127521
|
}
|
|
127497
127522
|
|
|
127498
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127523
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
|
|
127499
127524
|
import fs74 from "node:fs";
|
|
127500
127525
|
import path68 from "node:path";
|
|
127501
127526
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
@@ -127599,7 +127624,7 @@ nonce=${nonce}
|
|
|
127599
127624
|
};
|
|
127600
127625
|
}
|
|
127601
127626
|
|
|
127602
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127627
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/telemetry-admission.js
|
|
127603
127628
|
var DEFAULT_INTERVAL_MS = 10 * 60 * 1e3;
|
|
127604
127629
|
var MAX_INTERVAL_SEC = 24 * 60 * 60;
|
|
127605
127630
|
var STALE_IN_FLIGHT_TIMEOUT_MULTIPLE = 5;
|
|
@@ -127676,7 +127701,7 @@ function recordTelemetryRunStarted(store, nowMs, run) {
|
|
|
127676
127701
|
store.inFlight = tracked;
|
|
127677
127702
|
}
|
|
127678
127703
|
|
|
127679
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127704
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
|
|
127680
127705
|
import { Worker } from "node:worker_threads";
|
|
127681
127706
|
function reindexAsync(options) {
|
|
127682
127707
|
if (import.meta.url.endsWith(".ts"))
|
|
@@ -127735,7 +127760,7 @@ function reindexAsync(options) {
|
|
|
127735
127760
|
});
|
|
127736
127761
|
}
|
|
127737
127762
|
|
|
127738
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127763
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
|
|
127739
127764
|
import * as crypto20 from "crypto";
|
|
127740
127765
|
import * as fs75 from "fs";
|
|
127741
127766
|
import * as os23 from "os";
|
|
@@ -127895,7 +127920,7 @@ function materializeCodexAgents(opts) {
|
|
|
127895
127920
|
}
|
|
127896
127921
|
}
|
|
127897
127922
|
|
|
127898
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127923
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
|
|
127899
127924
|
var POST_SYNC_FLAG_KEYS = {
|
|
127900
127925
|
qmdReindex: "sync.qmd-reindex",
|
|
127901
127926
|
conflictPrune: "sync.conflict-prune",
|
|
@@ -127915,12 +127940,12 @@ function createPostSyncFlagEvaluator(options = {}) {
|
|
|
127915
127940
|
};
|
|
127916
127941
|
}
|
|
127917
127942
|
|
|
127918
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127943
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127919
127944
|
import { createHash as createHash41, randomUUID as randomUUID9 } from "node:crypto";
|
|
127920
127945
|
import * as fs77 from "node:fs/promises";
|
|
127921
127946
|
import * as path71 from "node:path";
|
|
127922
127947
|
|
|
127923
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127948
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
|
|
127924
127949
|
import * as fs76 from "node:fs";
|
|
127925
127950
|
import * as os24 from "node:os";
|
|
127926
127951
|
import * as path70 from "node:path";
|
|
@@ -127970,7 +127995,7 @@ function readDesktopInstallationId(options) {
|
|
|
127970
127995
|
return void 0;
|
|
127971
127996
|
}
|
|
127972
127997
|
|
|
127973
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127998
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
127974
127999
|
var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
|
|
127975
128000
|
var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
|
|
127976
128001
|
var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
|
|
@@ -128663,14 +128688,14 @@ function manifestLegFailureKinds(input2) {
|
|
|
128663
128688
|
return kinds;
|
|
128664
128689
|
}
|
|
128665
128690
|
|
|
128666
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128691
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
|
|
128667
128692
|
var PARTIAL_SYNC_EXIT = 2;
|
|
128668
128693
|
var UNRESOLVED_COMPANY_EXIT = 19;
|
|
128669
128694
|
var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
|
|
128670
128695
|
var WATCH_OWNER_LEASE_LOST_EXIT = 21;
|
|
128671
128696
|
var PREFLIGHT_HALT_EXIT = 22;
|
|
128672
128697
|
|
|
128673
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128698
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
|
|
128674
128699
|
import * as crypto21 from "node:crypto";
|
|
128675
128700
|
import * as fs78 from "node:fs";
|
|
128676
128701
|
import * as path72 from "node:path";
|
|
@@ -128719,7 +128744,7 @@ function hashNormalizedKey(key) {
|
|
|
128719
128744
|
return crypto21.createHash("sha256").update(normalized, "utf8").digest("hex");
|
|
128720
128745
|
}
|
|
128721
128746
|
|
|
128722
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
128747
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
|
|
128723
128748
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
128724
128749
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
128725
128750
|
import * as fs79 from "node:fs";
|
|
@@ -129090,11 +129115,11 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
|
|
|
129090
129115
|
};
|
|
129091
129116
|
}
|
|
129092
129117
|
|
|
129093
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129118
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-engine-owned.js
|
|
129094
129119
|
import * as fs81 from "fs";
|
|
129095
129120
|
import * as path75 from "path";
|
|
129096
129121
|
|
|
129097
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129122
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
|
|
129098
129123
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
129099
129124
|
import * as fs80 from "node:fs";
|
|
129100
129125
|
import * as os25 from "node:os";
|
|
@@ -129450,7 +129475,7 @@ function emitFanoutPlan(emit, plan) {
|
|
|
129450
129475
|
emit({ type: "fanout-plan", companies: plan });
|
|
129451
129476
|
}
|
|
129452
129477
|
|
|
129453
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129478
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-engine-owned.js
|
|
129454
129479
|
function readJsonObject(file2) {
|
|
129455
129480
|
try {
|
|
129456
129481
|
const parsed = JSON.parse(fs81.readFileSync(file2, "utf8"));
|
|
@@ -129544,7 +129569,7 @@ function applyLivePersonalSkip(spawnSkip) {
|
|
|
129544
129569
|
return owned.personal || spawnSkip && !restored.personal;
|
|
129545
129570
|
}
|
|
129546
129571
|
|
|
129547
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129572
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
|
|
129548
129573
|
var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
|
|
129549
129574
|
function processExists(pid) {
|
|
129550
129575
|
try {
|
|
@@ -129595,7 +129620,7 @@ function startWatchParentExitMonitor(options) {
|
|
|
129595
129620
|
};
|
|
129596
129621
|
}
|
|
129597
129622
|
|
|
129598
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129623
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
|
|
129599
129624
|
var ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
129600
129625
|
"error",
|
|
129601
129626
|
"auth-error"
|
|
@@ -129641,7 +129666,7 @@ function emitUncaughtRunnerError(err, streams) {
|
|
|
129641
129666
|
}
|
|
129642
129667
|
}
|
|
129643
129668
|
|
|
129644
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129669
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/runner-output-guard.js
|
|
129645
129670
|
var BROKEN_OUTPUT_CODES = /* @__PURE__ */ new Set([
|
|
129646
129671
|
"EPIPE",
|
|
129647
129672
|
"ECONNRESET",
|
|
@@ -129705,7 +129730,7 @@ function installRunnerOutputGuard(streams = [process.stdout, process.stderr], re
|
|
|
129705
129730
|
};
|
|
129706
129731
|
}
|
|
129707
129732
|
|
|
129708
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129733
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
|
|
129709
129734
|
import { format as format2 } from "node:util";
|
|
129710
129735
|
function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
|
|
129711
129736
|
const writeDiagnostic = (...args) => {
|
|
@@ -129721,7 +129746,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
|
|
|
129721
129746
|
return startRunner();
|
|
129722
129747
|
}
|
|
129723
129748
|
|
|
129724
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129749
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
|
|
129725
129750
|
import * as fs82 from "node:fs";
|
|
129726
129751
|
import * as path76 from "node:path";
|
|
129727
129752
|
function buildPassRequestArgv(passArgv, company) {
|
|
@@ -129972,7 +129997,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
|
|
|
129972
129997
|
}
|
|
129973
129998
|
};
|
|
129974
129999
|
|
|
129975
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130000
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
|
|
129976
130001
|
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
129977
130002
|
import * as fs83 from "node:fs";
|
|
129978
130003
|
import * as path77 from "node:path";
|
|
@@ -130064,7 +130089,7 @@ function seedActiveCompany(options) {
|
|
|
130064
130089
|
return { written: true, activeCompany };
|
|
130065
130090
|
}
|
|
130066
130091
|
|
|
130067
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130092
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
|
|
130068
130093
|
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
130069
130094
|
import * as fs84 from "node:fs";
|
|
130070
130095
|
import * as path78 from "node:path";
|
|
@@ -130295,17 +130320,17 @@ async function reconcileCompanyManifest(options) {
|
|
|
130295
130320
|
return reconcileManifest(options.hqRoot, resolvedTargets);
|
|
130296
130321
|
}
|
|
130297
130322
|
|
|
130298
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130323
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
130299
130324
|
import * as fs85 from "fs";
|
|
130300
130325
|
import * as path79 from "path";
|
|
130301
130326
|
import { createHash as createHash43, randomUUID as randomUUID13 } from "node:crypto";
|
|
130302
130327
|
|
|
130303
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130328
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
|
|
130304
130329
|
function allowsLegacyNetwork(decision) {
|
|
130305
130330
|
return decision.network === "allow-legacy";
|
|
130306
130331
|
}
|
|
130307
130332
|
|
|
130308
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130333
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/lib/sync-leg-error-summary.js
|
|
130309
130334
|
import os26 from "node:os";
|
|
130310
130335
|
var ERRNO_NAMES = new Set(Object.keys(os26.constants.errno));
|
|
130311
130336
|
var EXTRA_CODES = /* @__PURE__ */ new Set([
|
|
@@ -130510,7 +130535,7 @@ function buildSyncLegErrorSummary(input2) {
|
|
|
130510
130535
|
return segments.join(":").slice(0, 128);
|
|
130511
130536
|
}
|
|
130512
130537
|
|
|
130513
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130538
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
|
|
130514
130539
|
function createCompanyState(company) {
|
|
130515
130540
|
return {
|
|
130516
130541
|
company,
|
|
@@ -130572,7 +130597,7 @@ function rollupAllComplete(plan, stateByCompany) {
|
|
|
130572
130597
|
};
|
|
130573
130598
|
}
|
|
130574
130599
|
|
|
130575
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130600
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
130576
130601
|
var PRUNED_SAMPLE_PATHS = 5;
|
|
130577
130602
|
var SIZE_LIMIT_SKIP_EVENT_INTERVAL_MS = PLAN_LIMIT_PAUSE_RETRY_MS;
|
|
130578
130603
|
var SIZE_LIMIT_SKIP_MEMORY_MAX = 1e4;
|
|
@@ -131801,7 +131826,7 @@ function normalizePullChangedPaths(target, changedPaths) {
|
|
|
131801
131826
|
});
|
|
131802
131827
|
}
|
|
131803
131828
|
|
|
131804
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131829
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
|
|
131805
131830
|
async function emitTelemetry(options) {
|
|
131806
131831
|
const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
|
|
131807
131832
|
return telemetryFn().catch((err) => {
|
|
@@ -131813,7 +131838,7 @@ async function emitTelemetry(options) {
|
|
|
131813
131838
|
});
|
|
131814
131839
|
}
|
|
131815
131840
|
|
|
131816
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131841
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
131817
131842
|
import * as os27 from "os";
|
|
131818
131843
|
import * as path83 from "path";
|
|
131819
131844
|
import * as fs89 from "fs";
|
|
@@ -131821,7 +131846,7 @@ import { createHash as createHash44 } from "node:crypto";
|
|
|
131821
131846
|
import * as v8 from "node:v8";
|
|
131822
131847
|
import { performance as performance3 } from "node:perf_hooks";
|
|
131823
131848
|
|
|
131824
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131849
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
|
|
131825
131850
|
var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
|
|
131826
131851
|
var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
|
|
131827
131852
|
var RoutePushFailureBackoff = class {
|
|
@@ -131848,12 +131873,12 @@ var systemPushRetryScheduler = {
|
|
|
131848
131873
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
131849
131874
|
};
|
|
131850
131875
|
|
|
131851
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131876
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131852
131877
|
var import_client_sqs = __toESM(require_dist_cjs20(), 1);
|
|
131853
131878
|
import { readFileSync as readFileSync51 } from "node:fs";
|
|
131854
131879
|
import { join as join69 } from "node:path";
|
|
131855
131880
|
|
|
131856
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131881
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
|
|
131857
131882
|
import * as fs86 from "node:fs";
|
|
131858
131883
|
import * as path80 from "node:path";
|
|
131859
131884
|
function logSwallowed14(line) {
|
|
@@ -131919,7 +131944,7 @@ function isInboundEventPlaceable(hqRoot, event) {
|
|
|
131919
131944
|
}
|
|
131920
131945
|
}
|
|
131921
131946
|
|
|
131922
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131947
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
|
|
131923
131948
|
import fs87 from "node:fs";
|
|
131924
131949
|
import path81 from "node:path";
|
|
131925
131950
|
function journalCoordinatesForPushEvent(relativePath) {
|
|
@@ -131961,7 +131986,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
|
|
|
131961
131986
|
return unchanged;
|
|
131962
131987
|
}
|
|
131963
131988
|
|
|
131964
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131989
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
131965
131990
|
function resolveEventSync(override) {
|
|
131966
131991
|
return !isEventSyncLocallyDisabled(override);
|
|
131967
131992
|
}
|
|
@@ -132673,7 +132698,7 @@ async function startEventSync(opts) {
|
|
|
132673
132698
|
};
|
|
132674
132699
|
}
|
|
132675
132700
|
|
|
132676
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132701
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
|
|
132677
132702
|
var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
|
|
132678
132703
|
var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
|
|
132679
132704
|
var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
|
|
@@ -132826,7 +132851,7 @@ function describe3(error62) {
|
|
|
132826
132851
|
return error62 instanceof Error ? error62.message : String(error62);
|
|
132827
132852
|
}
|
|
132828
132853
|
|
|
132829
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132854
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
|
|
132830
132855
|
import * as perfHooks from "node:perf_hooks";
|
|
132831
132856
|
var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
|
|
132832
132857
|
var HeapCensus = class {
|
|
@@ -133813,7 +133838,7 @@ function nodeHeapReaders(v82) {
|
|
|
133813
133838
|
};
|
|
133814
133839
|
}
|
|
133815
133840
|
|
|
133816
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133841
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
|
|
133817
133842
|
var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
|
|
133818
133843
|
var MAX_CLOCK_DRIFT_MS = 5e3;
|
|
133819
133844
|
var MAX_SCHEDULED_FULL_SKIP_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -133871,7 +133896,7 @@ function canSkipScheduledFullReconcile(proof) {
|
|
|
133871
133896
|
return true;
|
|
133872
133897
|
}
|
|
133873
133898
|
|
|
133874
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133899
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/legacy-sync-wake.js
|
|
133875
133900
|
import * as fs88 from "node:fs";
|
|
133876
133901
|
import * as path82 from "node:path";
|
|
133877
133902
|
var MAX_WAKE_BYTES = 1024 * 1024;
|
|
@@ -134033,7 +134058,7 @@ var LegacySyncWakeBridge = class {
|
|
|
134033
134058
|
}
|
|
134034
134059
|
};
|
|
134035
134060
|
|
|
134036
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134061
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
134037
134062
|
var FULL_RECONCILE_EVERY_TICKS = 10;
|
|
134038
134063
|
var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
|
|
134039
134064
|
var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
|
|
@@ -139553,7 +139578,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
139553
139578
|
}
|
|
139554
139579
|
}
|
|
139555
139580
|
|
|
139556
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139581
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
|
|
139557
139582
|
var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
|
|
139558
139583
|
var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
|
|
139559
139584
|
var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
|
|
@@ -139626,7 +139651,7 @@ async function waitForValidAuth(opts) {
|
|
|
139626
139651
|
return "stopped";
|
|
139627
139652
|
}
|
|
139628
139653
|
|
|
139629
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
139654
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.122/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
139630
139655
|
var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
|
|
139631
139656
|
var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
|
|
139632
139657
|
var DEFAULT_COGNITO = {
|