@indigoai-us/hq-cloud 6.18.44-alpha.8 → 6.18.44
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/dist/bin/sync-runner-planning.d.ts +12 -0
- package/dist/bin/sync-runner-planning.d.ts.map +1 -1
- package/dist/bin/sync-runner-planning.js +18 -0
- package/dist/bin/sync-runner-planning.js.map +1 -1
- package/dist/bin/sync-runner-watch-loop.d.ts +18 -0
- package/dist/bin/sync-runner-watch-loop.d.ts.map +1 -1
- package/dist/bin/sync-runner-watch-loop.js +75 -6
- package/dist/bin/sync-runner-watch-loop.js.map +1 -1
- package/dist/bin/sync-runner.d.ts +22 -1
- package/dist/bin/sync-runner.d.ts.map +1 -1
- package/dist/bin/sync-runner.js +33 -4
- package/dist/bin/sync-runner.js.map +1 -1
- package/dist/cli/conflict.d.ts.map +1 -1
- package/dist/cli/conflict.js +2 -1
- package/dist/cli/conflict.js.map +1 -1
- package/dist/cli/rescue-core.d.ts +6 -0
- package/dist/cli/rescue-core.d.ts.map +1 -1
- package/dist/cli/rescue-core.js +10 -1
- package/dist/cli/rescue-core.js.map +1 -1
- package/dist/cli/rescue-windows-test-harness.d.ts +19 -0
- package/dist/cli/rescue-windows-test-harness.d.ts.map +1 -0
- package/dist/cli/rescue-windows-test-harness.js +443 -0
- package/dist/cli/rescue-windows-test-harness.js.map +1 -0
- package/dist/company-resolver.d.ts +22 -0
- package/dist/company-resolver.d.ts.map +1 -1
- package/dist/company-resolver.js +1 -1
- package/dist/company-resolver.js.map +1 -1
- package/dist/ignore.d.ts +4 -1
- package/dist/ignore.d.ts.map +1 -1
- package/dist/ignore.js +10 -12
- package/dist/ignore.js.map +1 -1
- package/dist/journal-snapshot-decoder.js +15 -2
- package/dist/journal-snapshot-decoder.js.map +1 -1
- package/dist/sync/durable-apply.d.ts +2 -0
- package/dist/sync/durable-apply.d.ts.map +1 -1
- package/dist/sync/durable-apply.js +9 -12
- package/dist/sync/durable-apply.js.map +1 -1
- package/dist/sync/fsync-compat.d.ts +13 -0
- package/dist/sync/fsync-compat.d.ts.map +1 -0
- package/dist/sync/fsync-compat.js +33 -0
- package/dist/sync/fsync-compat.js.map +1 -0
- package/dist/sync/multipart-uploader.d.ts.map +1 -1
- package/dist/sync/multipart-uploader.js +2 -1
- package/dist/sync/multipart-uploader.js.map +1 -1
- package/dist/sync/scope-inventory-client.d.ts.map +1 -1
- package/dist/sync/scope-inventory-client.js +7 -2
- package/dist/sync/scope-inventory-client.js.map +1 -1
- package/dist/telemetry.d.ts +31 -0
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +177 -17
- package/dist/telemetry.js.map +1 -1
- package/dist/usage-company-fallback.d.ts +104 -0
- package/dist/usage-company-fallback.d.ts.map +1 -0
- package/dist/usage-company-fallback.js +599 -0
- package/dist/usage-company-fallback.js.map +1 -0
- package/dist/watch-owner-lease.d.ts +3 -0
- package/dist/watch-owner-lease.d.ts.map +1 -1
- package/dist/watch-owner-lease.js +14 -3
- package/dist/watch-owner-lease.js.map +1 -1
- package/package.json +2 -2
- package/dist/active-company.test.d.ts +0 -2
- package/dist/active-company.test.d.ts.map +0 -1
- package/dist/active-company.test.js +0 -149
- package/dist/active-company.test.js.map +0 -1
- package/dist/agent-codex-instructions.test.d.ts +0 -2
- package/dist/agent-codex-instructions.test.d.ts.map +0 -1
- package/dist/agent-codex-instructions.test.js +0 -271
- package/dist/agent-codex-instructions.test.js.map +0 -1
- package/dist/backup-prune.test.d.ts +0 -2
- package/dist/backup-prune.test.d.ts.map +0 -1
- package/dist/backup-prune.test.js +0 -154
- package/dist/backup-prune.test.js.map +0 -1
- package/dist/bandwidth.test.d.ts +0 -2
- package/dist/bandwidth.test.d.ts.map +0 -1
- package/dist/bandwidth.test.js +0 -342
- package/dist/bandwidth.test.js.map +0 -1
- package/dist/best-effort-error.test.d.ts +0 -2
- package/dist/best-effort-error.test.d.ts.map +0 -1
- package/dist/best-effort-error.test.js +0 -54
- package/dist/best-effort-error.test.js.map +0 -1
- package/dist/bin/area-ledger-migration.test.d.ts +0 -2
- package/dist/bin/area-ledger-migration.test.d.ts.map +0 -1
- package/dist/bin/area-ledger-migration.test.js +0 -410
- package/dist/bin/area-ledger-migration.test.js.map +0 -1
- package/dist/bin/backup-prune-runner.test.d.ts +0 -2
- package/dist/bin/backup-prune-runner.test.d.ts.map +0 -1
- package/dist/bin/backup-prune-runner.test.js +0 -22
- package/dist/bin/backup-prune-runner.test.js.map +0 -1
- package/dist/bin/journal-repair.test.d.ts +0 -2
- package/dist/bin/journal-repair.test.d.ts.map +0 -1
- package/dist/bin/journal-repair.test.js +0 -53
- package/dist/bin/journal-repair.test.js.map +0 -1
- package/dist/bin/layout-compatibility.test.d.ts +0 -2
- package/dist/bin/layout-compatibility.test.d.ts.map +0 -1
- package/dist/bin/layout-compatibility.test.js +0 -87
- package/dist/bin/layout-compatibility.test.js.map +0 -1
- package/dist/bin/outpost-heartbeat.test.d.ts +0 -7
- package/dist/bin/outpost-heartbeat.test.d.ts.map +0 -1
- package/dist/bin/outpost-heartbeat.test.js +0 -84
- package/dist/bin/outpost-heartbeat.test.js.map +0 -1
- package/dist/bin/outpost-session-host.test.d.ts +0 -7
- package/dist/bin/outpost-session-host.test.d.ts.map +0 -1
- package/dist/bin/outpost-session-host.test.js +0 -52
- package/dist/bin/outpost-session-host.test.js.map +0 -1
- package/dist/bin/sync-mutation.test.d.ts +0 -2
- package/dist/bin/sync-mutation.test.d.ts.map +0 -1
- package/dist/bin/sync-mutation.test.js +0 -64
- package/dist/bin/sync-mutation.test.js.map +0 -1
- package/dist/bin/sync-runner-args.test.d.ts +0 -2
- package/dist/bin/sync-runner-args.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-args.test.js +0 -82
- package/dist/bin/sync-runner-args.test.js.map +0 -1
- package/dist/bin/sync-runner-auth-wait.test.d.ts +0 -2
- package/dist/bin/sync-runner-auth-wait.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-auth-wait.test.js +0 -406
- package/dist/bin/sync-runner-auth-wait.test.js.map +0 -1
- package/dist/bin/sync-runner-backoff.regression.test.d.ts +0 -29
- package/dist/bin/sync-runner-backoff.regression.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-backoff.regression.test.js +0 -224
- package/dist/bin/sync-runner-backoff.regression.test.js.map +0 -1
- package/dist/bin/sync-runner-company.test.d.ts +0 -2
- package/dist/bin/sync-runner-company.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-company.test.js +0 -2439
- package/dist/bin/sync-runner-company.test.js.map +0 -1
- package/dist/bin/sync-runner-delete-snapshot-mixed.bench.test.d.ts +0 -2
- package/dist/bin/sync-runner-delete-snapshot-mixed.bench.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-delete-snapshot-mixed.bench.test.js +0 -648
- package/dist/bin/sync-runner-delete-snapshot-mixed.bench.test.js.map +0 -1
- package/dist/bin/sync-runner-delete-snapshot.bench.test.d.ts +0 -2
- package/dist/bin/sync-runner-delete-snapshot.bench.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-delete-snapshot.bench.test.js +0 -329
- package/dist/bin/sync-runner-delete-snapshot.bench.test.js.map +0 -1
- package/dist/bin/sync-runner-events.test.d.ts +0 -2
- package/dist/bin/sync-runner-events.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-events.test.js +0 -364
- package/dist/bin/sync-runner-events.test.js.map +0 -1
- package/dist/bin/sync-runner-heap-telemetry.test.d.ts +0 -2
- package/dist/bin/sync-runner-heap-telemetry.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-heap-telemetry.test.js +0 -1966
- package/dist/bin/sync-runner-heap-telemetry.test.js.map +0 -1
- package/dist/bin/sync-runner-manifest.test.d.ts +0 -12
- package/dist/bin/sync-runner-manifest.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-manifest.test.js +0 -921
- package/dist/bin/sync-runner-manifest.test.js.map +0 -1
- package/dist/bin/sync-runner-planning.test.d.ts +0 -2
- package/dist/bin/sync-runner-planning.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-planning.test.js +0 -448
- package/dist/bin/sync-runner-planning.test.js.map +0 -1
- package/dist/bin/sync-runner-post-sync-flags.test.d.ts +0 -2
- package/dist/bin/sync-runner-post-sync-flags.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-post-sync-flags.test.js +0 -64
- package/dist/bin/sync-runner-post-sync-flags.test.js.map +0 -1
- package/dist/bin/sync-runner-publish-expansion.test.d.ts +0 -2
- package/dist/bin/sync-runner-publish-expansion.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-publish-expansion.test.js +0 -54
- package/dist/bin/sync-runner-publish-expansion.test.js.map +0 -1
- package/dist/bin/sync-runner-receiver-unresolved-company.test.d.ts +0 -2
- package/dist/bin/sync-runner-receiver-unresolved-company.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-receiver-unresolved-company.test.js +0 -379
- package/dist/bin/sync-runner-receiver-unresolved-company.test.js.map +0 -1
- package/dist/bin/sync-runner-rollup.test.d.ts +0 -2
- package/dist/bin/sync-runner-rollup.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-rollup.test.js +0 -24
- package/dist/bin/sync-runner-rollup.test.js.map +0 -1
- package/dist/bin/sync-runner-watch-loop.test.d.ts +0 -2
- package/dist/bin/sync-runner-watch-loop.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-watch-loop.test.js +0 -734
- package/dist/bin/sync-runner-watch-loop.test.js.map +0 -1
- package/dist/bin/sync-runner-watch-routes.test.d.ts +0 -2
- package/dist/bin/sync-runner-watch-routes.test.d.ts.map +0 -1
- package/dist/bin/sync-runner-watch-routes.test.js +0 -181
- package/dist/bin/sync-runner-watch-routes.test.js.map +0 -1
- package/dist/bin/sync-runner.test.d.ts +0 -10
- package/dist/bin/sync-runner.test.d.ts.map +0 -1
- package/dist/bin/sync-runner.test.js +0 -18984
- package/dist/bin/sync-runner.test.js.map +0 -1
- package/dist/cli/case-alias.test.d.ts +0 -2
- package/dist/cli/case-alias.test.d.ts.map +0 -1
- package/dist/cli/case-alias.test.js +0 -96
- package/dist/cli/case-alias.test.js.map +0 -1
- package/dist/cli/conflict-recovery.test.d.ts +0 -2
- package/dist/cli/conflict-recovery.test.d.ts.map +0 -1
- package/dist/cli/conflict-recovery.test.js +0 -201
- package/dist/cli/conflict-recovery.test.js.map +0 -1
- package/dist/cli/conflict-winner.test.d.ts +0 -7
- package/dist/cli/conflict-winner.test.d.ts.map +0 -1
- package/dist/cli/conflict-winner.test.js +0 -98
- package/dist/cli/conflict-winner.test.js.map +0 -1
- package/dist/cli/doctor.test.d.ts +0 -13
- package/dist/cli/doctor.test.d.ts.map +0 -1
- package/dist/cli/doctor.test.js +0 -607
- package/dist/cli/doctor.test.js.map +0 -1
- package/dist/cli/invite.test.d.ts +0 -5
- package/dist/cli/invite.test.d.ts.map +0 -1
- package/dist/cli/invite.test.js +0 -178
- package/dist/cli/invite.test.js.map +0 -1
- package/dist/cli/onepass-pull-planner-regressions.test.d.ts +0 -2
- package/dist/cli/onepass-pull-planner-regressions.test.d.ts.map +0 -1
- package/dist/cli/onepass-pull-planner-regressions.test.js +0 -300
- package/dist/cli/onepass-pull-planner-regressions.test.js.map +0 -1
- package/dist/cli/onepass-pull-planner.test.d.ts +0 -2
- package/dist/cli/onepass-pull-planner.test.d.ts.map +0 -1
- package/dist/cli/onepass-pull-planner.test.js +0 -266
- package/dist/cli/onepass-pull-planner.test.js.map +0 -1
- package/dist/cli/push-scan-exclusions.test.d.ts +0 -2
- package/dist/cli/push-scan-exclusions.test.d.ts.map +0 -1
- package/dist/cli/push-scan-exclusions.test.js +0 -99
- package/dist/cli/push-scan-exclusions.test.js.map +0 -1
- package/dist/cli/reindex-knowledge.test.d.ts +0 -12
- package/dist/cli/reindex-knowledge.test.d.ts.map +0 -1
- package/dist/cli/reindex-knowledge.test.js +0 -260
- package/dist/cli/reindex-knowledge.test.js.map +0 -1
- package/dist/cli/reindex.test.d.ts +0 -11
- package/dist/cli/reindex.test.d.ts.map +0 -1
- package/dist/cli/reindex.test.js +0 -811
- package/dist/cli/reindex.test.js.map +0 -1
- package/dist/cli/rescue-breaker.test.d.ts +0 -2
- package/dist/cli/rescue-breaker.test.d.ts.map +0 -1
- package/dist/cli/rescue-breaker.test.js +0 -812
- package/dist/cli/rescue-breaker.test.js.map +0 -1
- package/dist/cli/rescue-classify-ordering.test.d.ts +0 -2
- package/dist/cli/rescue-classify-ordering.test.d.ts.map +0 -1
- package/dist/cli/rescue-classify-ordering.test.js +0 -500
- package/dist/cli/rescue-classify-ordering.test.js.map +0 -1
- package/dist/cli/rescue-clone-diagnostics.test.d.ts +0 -2
- package/dist/cli/rescue-clone-diagnostics.test.d.ts.map +0 -1
- package/dist/cli/rescue-clone-diagnostics.test.js +0 -101
- package/dist/cli/rescue-clone-diagnostics.test.js.map +0 -1
- package/dist/cli/rescue-clone-network-retry.test.d.ts +0 -2
- package/dist/cli/rescue-clone-network-retry.test.d.ts.map +0 -1
- package/dist/cli/rescue-clone-network-retry.test.js +0 -415
- package/dist/cli/rescue-clone-network-retry.test.js.map +0 -1
- package/dist/cli/rescue-core-stamp.test.d.ts +0 -2
- package/dist/cli/rescue-core-stamp.test.d.ts.map +0 -1
- package/dist/cli/rescue-core-stamp.test.js +0 -364
- package/dist/cli/rescue-core-stamp.test.js.map +0 -1
- package/dist/cli/rescue-drift-reconcile.test.d.ts +0 -2
- package/dist/cli/rescue-drift-reconcile.test.d.ts.map +0 -1
- package/dist/cli/rescue-drift-reconcile.test.js +0 -162
- package/dist/cli/rescue-drift-reconcile.test.js.map +0 -1
- package/dist/cli/rescue-drop-dir-symlink.test.d.ts +0 -2
- package/dist/cli/rescue-drop-dir-symlink.test.d.ts.map +0 -1
- package/dist/cli/rescue-drop-dir-symlink.test.js +0 -255
- package/dist/cli/rescue-drop-dir-symlink.test.js.map +0 -1
- package/dist/cli/rescue-exec-bit-preserve.test.d.ts +0 -2
- package/dist/cli/rescue-exec-bit-preserve.test.d.ts.map +0 -1
- package/dist/cli/rescue-exec-bit-preserve.test.js +0 -177
- package/dist/cli/rescue-exec-bit-preserve.test.js.map +0 -1
- package/dist/cli/rescue-hq-root-guard.test.d.ts +0 -2
- package/dist/cli/rescue-hq-root-guard.test.d.ts.map +0 -1
- package/dist/cli/rescue-hq-root-guard.test.js +0 -210
- package/dist/cli/rescue-hq-root-guard.test.js.map +0 -1
- package/dist/cli/rescue-journal-reconcile.test.d.ts +0 -2
- package/dist/cli/rescue-journal-reconcile.test.d.ts.map +0 -1
- package/dist/cli/rescue-journal-reconcile.test.js +0 -186
- package/dist/cli/rescue-journal-reconcile.test.js.map +0 -1
- package/dist/cli/rescue-keep-local-ignore.test.d.ts +0 -2
- package/dist/cli/rescue-keep-local-ignore.test.d.ts.map +0 -1
- package/dist/cli/rescue-keep-local-ignore.test.js +0 -315
- package/dist/cli/rescue-keep-local-ignore.test.js.map +0 -1
- package/dist/cli/rescue-move.test.d.ts +0 -2
- package/dist/cli/rescue-move.test.d.ts.map +0 -1
- package/dist/cli/rescue-move.test.js +0 -166
- package/dist/cli/rescue-move.test.js.map +0 -1
- package/dist/cli/rescue-mtime-preserve.test.d.ts +0 -2
- package/dist/cli/rescue-mtime-preserve.test.d.ts.map +0 -1
- package/dist/cli/rescue-mtime-preserve.test.js +0 -186
- package/dist/cli/rescue-mtime-preserve.test.js.map +0 -1
- package/dist/cli/rescue-preserve-copy-symlink.test.d.ts +0 -2
- package/dist/cli/rescue-preserve-copy-symlink.test.d.ts.map +0 -1
- package/dist/cli/rescue-preserve-copy-symlink.test.js +0 -483
- package/dist/cli/rescue-preserve-copy-symlink.test.js.map +0 -1
- package/dist/cli/rescue-realpath.test.d.ts +0 -2
- package/dist/cli/rescue-realpath.test.d.ts.map +0 -1
- package/dist/cli/rescue-realpath.test.js +0 -109
- package/dist/cli/rescue-realpath.test.js.map +0 -1
- package/dist/cli/rescue-restore-flag.test.d.ts +0 -2
- package/dist/cli/rescue-restore-flag.test.d.ts.map +0 -1
- package/dist/cli/rescue-restore-flag.test.js +0 -82
- package/dist/cli/rescue-restore-flag.test.js.map +0 -1
- package/dist/cli/rescue-rsync-preflight.test.d.ts +0 -2
- package/dist/cli/rescue-rsync-preflight.test.d.ts.map +0 -1
- package/dist/cli/rescue-rsync-preflight.test.js +0 -579
- package/dist/cli/rescue-rsync-preflight.test.js.map +0 -1
- package/dist/cli/rescue-rsync-status.test.d.ts +0 -2
- package/dist/cli/rescue-rsync-status.test.d.ts.map +0 -1
- package/dist/cli/rescue-rsync-status.test.js +0 -406
- package/dist/cli/rescue-rsync-status.test.js.map +0 -1
- package/dist/cli/rescue-settings-reconcile.test.d.ts +0 -2
- package/dist/cli/rescue-settings-reconcile.test.d.ts.map +0 -1
- package/dist/cli/rescue-settings-reconcile.test.js +0 -610
- package/dist/cli/rescue-settings-reconcile.test.js.map +0 -1
- package/dist/cli/rescue-snapshot-copy.test.d.ts +0 -2
- package/dist/cli/rescue-snapshot-copy.test.d.ts.map +0 -1
- package/dist/cli/rescue-snapshot-copy.test.js +0 -790
- package/dist/cli/rescue-snapshot-copy.test.js.map +0 -1
- package/dist/cli/rescue-snapshot-recovery.test.d.ts +0 -2
- package/dist/cli/rescue-snapshot-recovery.test.d.ts.map +0 -1
- package/dist/cli/rescue-snapshot-recovery.test.js +0 -265
- package/dist/cli/rescue-snapshot-recovery.test.js.map +0 -1
- package/dist/cli/rescue-snapshot.test.d.ts +0 -2
- package/dist/cli/rescue-snapshot.test.d.ts.map +0 -1
- package/dist/cli/rescue-snapshot.test.js +0 -46
- package/dist/cli/rescue-snapshot.test.js.map +0 -1
- package/dist/cli/rescue-source-switch-floor.test.d.ts +0 -2
- package/dist/cli/rescue-source-switch-floor.test.d.ts.map +0 -1
- package/dist/cli/rescue-source-switch-floor.test.js +0 -247
- package/dist/cli/rescue-source-switch-floor.test.js.map +0 -1
- package/dist/cli/rescue-unchanged-delete.test.d.ts +0 -2
- package/dist/cli/rescue-unchanged-delete.test.d.ts.map +0 -1
- package/dist/cli/rescue-unchanged-delete.test.js +0 -305
- package/dist/cli/rescue-unchanged-delete.test.js.map +0 -1
- package/dist/cli/rescue.reindex.test.d.ts +0 -2
- package/dist/cli/rescue.reindex.test.d.ts.map +0 -1
- package/dist/cli/rescue.reindex.test.js +0 -72
- package/dist/cli/rescue.reindex.test.js.map +0 -1
- package/dist/cli/rescue.test.d.ts +0 -2
- package/dist/cli/rescue.test.d.ts.map +0 -1
- package/dist/cli/rescue.test.js +0 -127
- package/dist/cli/rescue.test.js.map +0 -1
- package/dist/cli/share-plan-limit-presign.test.d.ts +0 -2
- package/dist/cli/share-plan-limit-presign.test.d.ts.map +0 -1
- package/dist/cli/share-plan-limit-presign.test.js +0 -271
- package/dist/cli/share-plan-limit-presign.test.js.map +0 -1
- package/dist/cli/share-presign-transport.test.d.ts +0 -22
- package/dist/cli/share-presign-transport.test.d.ts.map +0 -1
- package/dist/cli/share-presign-transport.test.js +0 -388
- package/dist/cli/share-presign-transport.test.js.map +0 -1
- package/dist/cli/share.test.d.ts +0 -5
- package/dist/cli/share.test.d.ts.map +0 -1
- package/dist/cli/share.test.js +0 -12335
- package/dist/cli/share.test.js.map +0 -1
- package/dist/cli/streaming-pull-planner.bench.test.d.ts +0 -15
- package/dist/cli/streaming-pull-planner.bench.test.d.ts.map +0 -1
- package/dist/cli/streaming-pull-planner.bench.test.js +0 -273
- package/dist/cli/streaming-pull-planner.bench.test.js.map +0 -1
- package/dist/cli/sync-scope.test.d.ts +0 -22
- package/dist/cli/sync-scope.test.d.ts.map +0 -1
- package/dist/cli/sync-scope.test.js +0 -903
- package/dist/cli/sync-scope.test.js.map +0 -1
- package/dist/cli/sync.test.d.ts +0 -5
- package/dist/cli/sync.test.d.ts.map +0 -1
- package/dist/cli/sync.test.js +0 -9028
- package/dist/cli/sync.test.js.map +0 -1
- package/dist/cli/tombstones.test.d.ts +0 -2
- package/dist/cli/tombstones.test.d.ts.map +0 -1
- package/dist/cli/tombstones.test.js +0 -120
- package/dist/cli/tombstones.test.js.map +0 -1
- package/dist/cli/watch-event-push-conflict.test.d.ts +0 -25
- package/dist/cli/watch-event-push-conflict.test.d.ts.map +0 -1
- package/dist/cli/watch-event-push-conflict.test.js +0 -230
- package/dist/cli/watch-event-push-conflict.test.js.map +0 -1
- package/dist/client-info.test.d.ts +0 -11
- package/dist/client-info.test.d.ts.map +0 -1
- package/dist/client-info.test.js +0 -168
- package/dist/client-info.test.js.map +0 -1
- package/dist/cognito-auth-lock-no-hard-links.test.d.ts +0 -11
- package/dist/cognito-auth-lock-no-hard-links.test.d.ts.map +0 -1
- package/dist/cognito-auth-lock-no-hard-links.test.js +0 -76
- package/dist/cognito-auth-lock-no-hard-links.test.js.map +0 -1
- package/dist/cognito-auth.test.d.ts +0 -9
- package/dist/cognito-auth.test.d.ts.map +0 -1
- package/dist/cognito-auth.test.js +0 -745
- package/dist/cognito-auth.test.js.map +0 -1
- package/dist/company-resolver.test.d.ts +0 -7
- package/dist/company-resolver.test.d.ts.map +0 -1
- package/dist/company-resolver.test.js +0 -533
- package/dist/company-resolver.test.js.map +0 -1
- package/dist/company-slug.test.d.ts +0 -7
- package/dist/company-slug.test.d.ts.map +0 -1
- package/dist/company-slug.test.js +0 -43
- package/dist/company-slug.test.js.map +0 -1
- package/dist/company-vault-transport.test.d.ts +0 -12
- package/dist/company-vault-transport.test.d.ts.map +0 -1
- package/dist/company-vault-transport.test.js +0 -97
- package/dist/company-vault-transport.test.js.map +0 -1
- package/dist/context.test.d.ts +0 -7
- package/dist/context.test.d.ts.map +0 -1
- package/dist/context.test.js +0 -646
- package/dist/context.test.js.map +0 -1
- package/dist/entity-resolver.test.d.ts +0 -10
- package/dist/entity-resolver.test.d.ts.map +0 -1
- package/dist/entity-resolver.test.js +0 -244
- package/dist/entity-resolver.test.js.map +0 -1
- package/dist/getindigo-dead-refs-contract.test.d.ts +0 -2
- package/dist/getindigo-dead-refs-contract.test.d.ts.map +0 -1
- package/dist/getindigo-dead-refs-contract.test.js +0 -58
- package/dist/getindigo-dead-refs-contract.test.js.map +0 -1
- package/dist/hermetic-test-env.test.d.ts +0 -2
- package/dist/hermetic-test-env.test.d.ts.map +0 -1
- package/dist/hermetic-test-env.test.js +0 -61
- package/dist/hermetic-test-env.test.js.map +0 -1
- package/dist/hq-root-recovery.test.d.ts +0 -2
- package/dist/hq-root-recovery.test.d.ts.map +0 -1
- package/dist/hq-root-recovery.test.js +0 -65
- package/dist/hq-root-recovery.test.js.map +0 -1
- package/dist/ignore.test.d.ts +0 -10
- package/dist/ignore.test.d.ts.map +0 -1
- package/dist/ignore.test.js +0 -926
- package/dist/ignore.test.js.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -26
- package/dist/index.test.js.map +0 -1
- package/dist/journal-area-ledger-read-boundary.test.d.ts +0 -2
- package/dist/journal-area-ledger-read-boundary.test.d.ts.map +0 -1
- package/dist/journal-area-ledger-read-boundary.test.js +0 -420
- package/dist/journal-area-ledger-read-boundary.test.js.map +0 -1
- package/dist/journal-baseline.test.d.ts +0 -2
- package/dist/journal-baseline.test.d.ts.map +0 -1
- package/dist/journal-baseline.test.js +0 -218
- package/dist/journal-baseline.test.js.map +0 -1
- package/dist/journal-decode-window.test.d.ts +0 -2
- package/dist/journal-decode-window.test.d.ts.map +0 -1
- package/dist/journal-decode-window.test.js +0 -99
- package/dist/journal-decode-window.test.js.map +0 -1
- package/dist/journal-delta-writes.test.d.ts +0 -2
- package/dist/journal-delta-writes.test.d.ts.map +0 -1
- package/dist/journal-delta-writes.test.js +0 -159
- package/dist/journal-delta-writes.test.js.map +0 -1
- package/dist/journal-ledger-index.test.d.ts +0 -15
- package/dist/journal-ledger-index.test.d.ts.map +0 -1
- package/dist/journal-ledger-index.test.js +0 -269
- package/dist/journal-ledger-index.test.js.map +0 -1
- package/dist/journal-public-boundary.test.d.ts +0 -2
- package/dist/journal-public-boundary.test.d.ts.map +0 -1
- package/dist/journal-public-boundary.test.js +0 -216
- package/dist/journal-public-boundary.test.js.map +0 -1
- package/dist/journal-row-store.test.d.ts +0 -2
- package/dist/journal-row-store.test.d.ts.map +0 -1
- package/dist/journal-row-store.test.js +0 -729
- package/dist/journal-row-store.test.js.map +0 -1
- package/dist/journal-snapshot-memory-helpers.d.ts +0 -33
- package/dist/journal-snapshot-memory-helpers.d.ts.map +0 -1
- package/dist/journal-snapshot-memory-helpers.js +0 -212
- package/dist/journal-snapshot-memory-helpers.js.map +0 -1
- package/dist/journal-snapshot-memory.test.d.ts +0 -2
- package/dist/journal-snapshot-memory.test.d.ts.map +0 -1
- package/dist/journal-snapshot-memory.test.js +0 -47
- package/dist/journal-snapshot-memory.test.js.map +0 -1
- package/dist/journal-snapshot-v4-memory.test.d.ts +0 -2
- package/dist/journal-snapshot-v4-memory.test.d.ts.map +0 -1
- package/dist/journal-snapshot-v4-memory.test.js +0 -24
- package/dist/journal-snapshot-v4-memory.test.js.map +0 -1
- package/dist/journal-snapshot-v4-writer-memory.test.d.ts +0 -2
- package/dist/journal-snapshot-v4-writer-memory.test.d.ts.map +0 -1
- package/dist/journal-snapshot-v4-writer-memory.test.js +0 -76
- package/dist/journal-snapshot-v4-writer-memory.test.js.map +0 -1
- package/dist/journal-snapshot-v4-writer.test.d.ts +0 -2
- package/dist/journal-snapshot-v4-writer.test.d.ts.map +0 -1
- package/dist/journal-snapshot-v4-writer.test.js +0 -282
- package/dist/journal-snapshot-v4-writer.test.js.map +0 -1
- package/dist/journal-snapshot-v4.test.d.ts +0 -2
- package/dist/journal-snapshot-v4.test.d.ts.map +0 -1
- package/dist/journal-snapshot-v4.test.js +0 -281
- package/dist/journal-snapshot-v4.test.js.map +0 -1
- package/dist/journal-store.test.d.ts +0 -2
- package/dist/journal-store.test.d.ts.map +0 -1
- package/dist/journal-store.test.js +0 -1227
- package/dist/journal-store.test.js.map +0 -1
- package/dist/journal-streaming.heap.test.d.ts +0 -2
- package/dist/journal-streaming.heap.test.d.ts.map +0 -1
- package/dist/journal-streaming.heap.test.js +0 -190
- package/dist/journal-streaming.heap.test.js.map +0 -1
- package/dist/journal.test.d.ts +0 -9
- package/dist/journal.test.d.ts.map +0 -1
- package/dist/journal.test.js +0 -1074
- package/dist/journal.test.js.map +0 -1
- package/dist/kms10-etag-safe-pull.test.d.ts +0 -2
- package/dist/kms10-etag-safe-pull.test.d.ts.map +0 -1
- package/dist/kms10-etag-safe-pull.test.js +0 -53
- package/dist/kms10-etag-safe-pull.test.js.map +0 -1
- package/dist/lib/cloud-authoritative.test.d.ts +0 -2
- package/dist/lib/cloud-authoritative.test.d.ts.map +0 -1
- package/dist/lib/cloud-authoritative.test.js +0 -42
- package/dist/lib/cloud-authoritative.test.js.map +0 -1
- package/dist/lib/conflict-reconcile.test.d.ts +0 -7
- package/dist/lib/conflict-reconcile.test.d.ts.map +0 -1
- package/dist/lib/conflict-reconcile.test.js +0 -246
- package/dist/lib/conflict-reconcile.test.js.map +0 -1
- package/dist/lib/conflict.test.d.ts +0 -9
- package/dist/lib/conflict.test.d.ts.map +0 -1
- package/dist/lib/conflict.test.js +0 -340
- package/dist/lib/conflict.test.js.map +0 -1
- package/dist/lib/describe-error.test.d.ts +0 -2
- package/dist/lib/describe-error.test.d.ts.map +0 -1
- package/dist/lib/describe-error.test.js +0 -148
- package/dist/lib/describe-error.test.js.map +0 -1
- package/dist/lib/machine-id.test.d.ts +0 -8
- package/dist/lib/machine-id.test.d.ts.map +0 -1
- package/dist/lib/machine-id.test.js +0 -228
- package/dist/lib/machine-id.test.js.map +0 -1
- package/dist/lib/net-errors.test.d.ts +0 -2
- package/dist/lib/net-errors.test.d.ts.map +0 -1
- package/dist/lib/net-errors.test.js +0 -111
- package/dist/lib/net-errors.test.js.map +0 -1
- package/dist/lib/ontology-entity-meta.test.d.ts +0 -2
- package/dist/lib/ontology-entity-meta.test.d.ts.map +0 -1
- package/dist/lib/ontology-entity-meta.test.js +0 -79
- package/dist/lib/ontology-entity-meta.test.js.map +0 -1
- package/dist/lib/ontology-entity-push.test.d.ts +0 -2
- package/dist/lib/ontology-entity-push.test.d.ts.map +0 -1
- package/dist/lib/ontology-entity-push.test.js +0 -156
- package/dist/lib/ontology-entity-push.test.js.map +0 -1
- package/dist/lib/personal-connector-settings-sync.test.d.ts +0 -2
- package/dist/lib/personal-connector-settings-sync.test.d.ts.map +0 -1
- package/dist/lib/personal-connector-settings-sync.test.js +0 -34
- package/dist/lib/personal-connector-settings-sync.test.js.map +0 -1
- package/dist/lib/readlink-safe.test.d.ts +0 -2
- package/dist/lib/readlink-safe.test.d.ts.map +0 -1
- package/dist/lib/readlink-safe.test.js +0 -34
- package/dist/lib/readlink-safe.test.js.map +0 -1
- package/dist/lib/s3-content-checksum.test.d.ts +0 -2
- package/dist/lib/s3-content-checksum.test.d.ts.map +0 -1
- package/dist/lib/s3-content-checksum.test.js +0 -26
- package/dist/lib/s3-content-checksum.test.js.map +0 -1
- package/dist/lib/skill-register-landed-bytes.test.d.ts +0 -2
- package/dist/lib/skill-register-landed-bytes.test.d.ts.map +0 -1
- package/dist/lib/skill-register-landed-bytes.test.js +0 -83
- package/dist/lib/skill-register-landed-bytes.test.js.map +0 -1
- package/dist/local-path-codec.test.d.ts +0 -14
- package/dist/local-path-codec.test.d.ts.map +0 -1
- package/dist/local-path-codec.test.js +0 -122
- package/dist/local-path-codec.test.js.map +0 -1
- package/dist/machine-auth.test.d.ts +0 -14
- package/dist/machine-auth.test.d.ts.map +0 -1
- package/dist/machine-auth.test.js +0 -1482
- package/dist/machine-auth.test.js.map +0 -1
- package/dist/machine-token-cache-isolation.test.d.ts +0 -24
- package/dist/machine-token-cache-isolation.test.d.ts.map +0 -1
- package/dist/machine-token-cache-isolation.test.js +0 -284
- package/dist/machine-token-cache-isolation.test.js.map +0 -1
- package/dist/manifest/US-002.acceptance.test.d.ts +0 -11
- package/dist/manifest/US-002.acceptance.test.d.ts.map +0 -1
- package/dist/manifest/US-002.acceptance.test.js +0 -160
- package/dist/manifest/US-002.acceptance.test.js.map +0 -1
- package/dist/manifest/US-004.acceptance.test.d.ts +0 -12
- package/dist/manifest/US-004.acceptance.test.d.ts.map +0 -1
- package/dist/manifest/US-004.acceptance.test.js +0 -173
- package/dist/manifest/US-004.acceptance.test.js.map +0 -1
- package/dist/manifest/build-manifest-resident-parity.test.d.ts +0 -2
- package/dist/manifest/build-manifest-resident-parity.test.d.ts.map +0 -1
- package/dist/manifest/build-manifest-resident-parity.test.js +0 -69
- package/dist/manifest/build-manifest-resident-parity.test.js.map +0 -1
- package/dist/manifest/build-manifest.bench.test.d.ts +0 -22
- package/dist/manifest/build-manifest.bench.test.d.ts.map +0 -1
- package/dist/manifest/build-manifest.bench.test.js +0 -930
- package/dist/manifest/build-manifest.bench.test.js.map +0 -1
- package/dist/manifest/build-manifest.test.d.ts +0 -10
- package/dist/manifest/build-manifest.test.d.ts.map +0 -1
- package/dist/manifest/build-manifest.test.js +0 -1217
- package/dist/manifest/build-manifest.test.js.map +0 -1
- package/dist/manifest/contract.test.d.ts +0 -17
- package/dist/manifest/contract.test.d.ts.map +0 -1
- package/dist/manifest/contract.test.js +0 -346
- package/dist/manifest/contract.test.js.map +0 -1
- package/dist/manifest/import-graph.test.d.ts +0 -25
- package/dist/manifest/import-graph.test.d.ts.map +0 -1
- package/dist/manifest/import-graph.test.js +0 -120
- package/dist/manifest/import-graph.test.js.map +0 -1
- package/dist/manifest/ledger-shard-isolation.test.d.ts +0 -18
- package/dist/manifest/ledger-shard-isolation.test.d.ts.map +0 -1
- package/dist/manifest/ledger-shard-isolation.test.js +0 -153
- package/dist/manifest/ledger-shard-isolation.test.js.map +0 -1
- package/dist/manifest/snapshot-store.test.d.ts +0 -11
- package/dist/manifest/snapshot-store.test.d.ts.map +0 -1
- package/dist/manifest/snapshot-store.test.js +0 -206
- package/dist/manifest/snapshot-store.test.js.map +0 -1
- package/dist/manifest/upload-manifest.test.d.ts +0 -10
- package/dist/manifest/upload-manifest.test.d.ts.map +0 -1
- package/dist/manifest/upload-manifest.test.js +0 -1335
- package/dist/manifest/upload-manifest.test.js.map +0 -1
- package/dist/manifest-reconcile.test.d.ts +0 -2
- package/dist/manifest-reconcile.test.d.ts.map +0 -1
- package/dist/manifest-reconcile.test.js +0 -1029
- package/dist/manifest-reconcile.test.js.map +0 -1
- package/dist/object-io.test.d.ts +0 -11
- package/dist/object-io.test.d.ts.map +0 -1
- package/dist/object-io.test.js +0 -2376
- package/dist/object-io.test.js.map +0 -1
- package/dist/operation-lock.test.d.ts +0 -5
- package/dist/operation-lock.test.d.ts.map +0 -1
- package/dist/operation-lock.test.js +0 -796
- package/dist/operation-lock.test.js.map +0 -1
- package/dist/outcome-telemetry.test.d.ts +0 -9
- package/dist/outcome-telemetry.test.d.ts.map +0 -1
- package/dist/outcome-telemetry.test.js +0 -663
- package/dist/outcome-telemetry.test.js.map +0 -1
- package/dist/outposts/client.test.d.ts +0 -9
- package/dist/outposts/client.test.d.ts.map +0 -1
- package/dist/outposts/client.test.js +0 -415
- package/dist/outposts/client.test.js.map +0 -1
- package/dist/outposts/command.test.d.ts +0 -18
- package/dist/outposts/command.test.d.ts.map +0 -1
- package/dist/outposts/command.test.js +0 -1230
- package/dist/outposts/command.test.js.map +0 -1
- package/dist/outposts/replica-sync.test.d.ts +0 -2
- package/dist/outposts/replica-sync.test.d.ts.map +0 -1
- package/dist/outposts/replica-sync.test.js +0 -224
- package/dist/outposts/replica-sync.test.js.map +0 -1
- package/dist/outposts/self-deploy.test.d.ts +0 -2
- package/dist/outposts/self-deploy.test.d.ts.map +0 -1
- package/dist/outposts/self-deploy.test.js +0 -218
- package/dist/outposts/self-deploy.test.js.map +0 -1
- package/dist/outposts/session-heartbeat-bounds.test.d.ts +0 -25
- package/dist/outposts/session-heartbeat-bounds.test.d.ts.map +0 -1
- package/dist/outposts/session-heartbeat-bounds.test.js +0 -156
- package/dist/outposts/session-heartbeat-bounds.test.js.map +0 -1
- package/dist/outposts/session-heartbeat-guard.test.d.ts +0 -16
- package/dist/outposts/session-heartbeat-guard.test.d.ts.map +0 -1
- package/dist/outposts/session-heartbeat-guard.test.js +0 -88
- package/dist/outposts/session-heartbeat-guard.test.js.map +0 -1
- package/dist/outposts/session-heartbeat-publisher.test.d.ts +0 -10
- package/dist/outposts/session-heartbeat-publisher.test.d.ts.map +0 -1
- package/dist/outposts/session-heartbeat-publisher.test.js +0 -153
- package/dist/outposts/session-heartbeat-publisher.test.js.map +0 -1
- package/dist/outposts/session-heartbeat-retain-guard.test.d.ts +0 -18
- package/dist/outposts/session-heartbeat-retain-guard.test.d.ts.map +0 -1
- package/dist/outposts/session-heartbeat-retain-guard.test.js +0 -106
- package/dist/outposts/session-heartbeat-retain-guard.test.js.map +0 -1
- package/dist/outposts/session-heartbeat-scan.test.d.ts +0 -20
- package/dist/outposts/session-heartbeat-scan.test.d.ts.map +0 -1
- package/dist/outposts/session-heartbeat-scan.test.js +0 -241
- package/dist/outposts/session-heartbeat-scan.test.js.map +0 -1
- package/dist/outposts/session-heartbeat.test.d.ts +0 -11
- package/dist/outposts/session-heartbeat.test.d.ts.map +0 -1
- package/dist/outposts/session-heartbeat.test.js +0 -370
- package/dist/outposts/session-heartbeat.test.js.map +0 -1
- package/dist/outposts/session-host-auth.test.d.ts +0 -16
- package/dist/outposts/session-host-auth.test.d.ts.map +0 -1
- package/dist/outposts/session-host-auth.test.js +0 -284
- package/dist/outposts/session-host-auth.test.js.map +0 -1
- package/dist/outposts/session-host-command.test.d.ts +0 -10
- package/dist/outposts/session-host-command.test.d.ts.map +0 -1
- package/dist/outposts/session-host-command.test.js +0 -180
- package/dist/outposts/session-host-command.test.js.map +0 -1
- package/dist/outposts/session-host-connection.test.d.ts +0 -18
- package/dist/outposts/session-host-connection.test.d.ts.map +0 -1
- package/dist/outposts/session-host-connection.test.js +0 -392
- package/dist/outposts/session-host-connection.test.js.map +0 -1
- package/dist/outposts/session-host-fakes.d.ts +0 -61
- package/dist/outposts/session-host-fakes.d.ts.map +0 -1
- package/dist/outposts/session-host-fakes.js +0 -115
- package/dist/outposts/session-host-fakes.js.map +0 -1
- package/dist/outposts/session-host-ndjson.test.d.ts +0 -11
- package/dist/outposts/session-host-ndjson.test.d.ts.map +0 -1
- package/dist/outposts/session-host-ndjson.test.js +0 -73
- package/dist/outposts/session-host-ndjson.test.js.map +0 -1
- package/dist/outposts/session-host-protocol.test.d.ts +0 -15
- package/dist/outposts/session-host-protocol.test.d.ts.map +0 -1
- package/dist/outposts/session-host-protocol.test.js +0 -0
- package/dist/outposts/session-host-protocol.test.js.map +0 -1
- package/dist/outposts/session-host-server.test.d.ts +0 -10
- package/dist/outposts/session-host-server.test.d.ts.map +0 -1
- package/dist/outposts/session-host-server.test.js +0 -118
- package/dist/outposts/session-host-server.test.js.map +0 -1
- package/dist/outposts/session-host-sessions.test.d.ts +0 -18
- package/dist/outposts/session-host-sessions.test.d.ts.map +0 -1
- package/dist/outposts/session-host-sessions.test.js +0 -439
- package/dist/outposts/session-host-sessions.test.js.map +0 -1
- package/dist/outposts/terminal.test.d.ts +0 -2
- package/dist/outposts/terminal.test.d.ts.map +0 -1
- package/dist/outposts/terminal.test.js +0 -146
- package/dist/outposts/terminal.test.js.map +0 -1
- package/dist/outposts/transport.test.d.ts +0 -10
- package/dist/outposts/transport.test.d.ts.map +0 -1
- package/dist/outposts/transport.test.js +0 -205
- package/dist/outposts/transport.test.js.map +0 -1
- package/dist/packed-journal-phase2.test.d.ts +0 -2
- package/dist/packed-journal-phase2.test.d.ts.map +0 -1
- package/dist/packed-journal-phase2.test.js +0 -273
- package/dist/packed-journal-phase2.test.js.map +0 -1
- package/dist/path-ancestors.test.d.ts +0 -2
- package/dist/path-ancestors.test.d.ts.map +0 -1
- package/dist/path-ancestors.test.js +0 -21
- package/dist/path-ancestors.test.js.map +0 -1
- package/dist/personal-vault-exclusions.test.d.ts +0 -22
- package/dist/personal-vault-exclusions.test.d.ts.map +0 -1
- package/dist/personal-vault-exclusions.test.js +0 -294
- package/dist/personal-vault-exclusions.test.js.map +0 -1
- package/dist/personal-vault.test.d.ts +0 -18
- package/dist/personal-vault.test.d.ts.map +0 -1
- package/dist/personal-vault.test.js +0 -1099
- package/dist/personal-vault.test.js.map +0 -1
- package/dist/plan-limit-pause.test.d.ts +0 -2
- package/dist/plan-limit-pause.test.d.ts.map +0 -1
- package/dist/plan-limit-pause.test.js +0 -150
- package/dist/plan-limit-pause.test.js.map +0 -1
- package/dist/plan-limit.fixtures.d.ts +0 -34
- package/dist/plan-limit.fixtures.d.ts.map +0 -1
- package/dist/plan-limit.fixtures.js +0 -96
- package/dist/plan-limit.fixtures.js.map +0 -1
- package/dist/plan-limit.test.d.ts +0 -2
- package/dist/plan-limit.test.d.ts.map +0 -1
- package/dist/plan-limit.test.js +0 -132
- package/dist/plan-limit.test.js.map +0 -1
- package/dist/prefix-coalesce.test.d.ts +0 -2
- package/dist/prefix-coalesce.test.d.ts.map +0 -1
- package/dist/prefix-coalesce.test.js +0 -260
- package/dist/prefix-coalesce.test.js.map +0 -1
- package/dist/private-folder-transport.test.d.ts +0 -2
- package/dist/private-folder-transport.test.d.ts.map +0 -1
- package/dist/private-folder-transport.test.js +0 -33
- package/dist/private-folder-transport.test.js.map +0 -1
- package/dist/public-surface.test.d.ts +0 -15
- package/dist/public-surface.test.d.ts.map +0 -1
- package/dist/public-surface.test.js +0 -110
- package/dist/public-surface.test.js.map +0 -1
- package/dist/qmd-reindex.test.d.ts +0 -14
- package/dist/qmd-reindex.test.d.ts.map +0 -1
- package/dist/qmd-reindex.test.js +0 -899
- package/dist/qmd-reindex.test.js.map +0 -1
- package/dist/read-only-state-dir.test.d.ts +0 -27
- package/dist/read-only-state-dir.test.d.ts.map +0 -1
- package/dist/read-only-state-dir.test.js +0 -167
- package/dist/read-only-state-dir.test.js.map +0 -1
- package/dist/remote-pull.test.d.ts +0 -2
- package/dist/remote-pull.test.d.ts.map +0 -1
- package/dist/remote-pull.test.js +0 -1147
- package/dist/remote-pull.test.js.map +0 -1
- package/dist/s3-download-stream-hash.test.d.ts +0 -2
- package/dist/s3-download-stream-hash.test.d.ts.map +0 -1
- package/dist/s3-download-stream-hash.test.js +0 -70
- package/dist/s3-download-stream-hash.test.js.map +0 -1
- package/dist/s3.list-cost.test.d.ts +0 -2
- package/dist/s3.list-cost.test.d.ts.map +0 -1
- package/dist/s3.list-cost.test.js +0 -51
- package/dist/s3.list-cost.test.js.map +0 -1
- package/dist/s3.rename-retry.test.d.ts +0 -2
- package/dist/s3.rename-retry.test.d.ts.map +0 -1
- package/dist/s3.rename-retry.test.js +0 -217
- package/dist/s3.rename-retry.test.js.map +0 -1
- package/dist/s3.symlink-materialize.test.d.ts +0 -18
- package/dist/s3.symlink-materialize.test.d.ts.map +0 -1
- package/dist/s3.symlink-materialize.test.js +0 -579
- package/dist/s3.symlink-materialize.test.js.map +0 -1
- package/dist/s3.test.d.ts +0 -9
- package/dist/s3.test.d.ts.map +0 -1
- package/dist/s3.test.js +0 -2047
- package/dist/s3.test.js.map +0 -1
- package/dist/s3.windows-portability.test.d.ts +0 -12
- package/dist/s3.windows-portability.test.d.ts.map +0 -1
- package/dist/s3.windows-portability.test.js +0 -223
- package/dist/s3.windows-portability.test.js.map +0 -1
- package/dist/schemas/signal-types.test.d.ts +0 -2
- package/dist/schemas/signal-types.test.d.ts.map +0 -1
- package/dist/schemas/signal-types.test.js +0 -65
- package/dist/schemas/signal-types.test.js.map +0 -1
- package/dist/schemas/source-channels.test.d.ts +0 -2
- package/dist/schemas/source-channels.test.d.ts.map +0 -1
- package/dist/schemas/source-channels.test.js +0 -65
- package/dist/schemas/source-channels.test.js.map +0 -1
- package/dist/scope-shrink.test.d.ts +0 -13
- package/dist/scope-shrink.test.d.ts.map +0 -1
- package/dist/scope-shrink.test.js +0 -558
- package/dist/scope-shrink.test.js.map +0 -1
- package/dist/session-log-capture.test.d.ts +0 -2
- package/dist/session-log-capture.test.d.ts.map +0 -1
- package/dist/session-log-capture.test.js +0 -533
- package/dist/session-log-capture.test.js.map +0 -1
- package/dist/session-log-retention.test.d.ts +0 -2
- package/dist/session-log-retention.test.d.ts.map +0 -1
- package/dist/session-log-retention.test.js +0 -383
- package/dist/session-log-retention.test.js.map +0 -1
- package/dist/signals/get.test.d.ts +0 -5
- package/dist/signals/get.test.d.ts.map +0 -1
- package/dist/signals/get.test.js +0 -254
- package/dist/signals/get.test.js.map +0 -1
- package/dist/signals/list.test.d.ts +0 -9
- package/dist/signals/list.test.d.ts.map +0 -1
- package/dist/signals/list.test.js +0 -330
- package/dist/signals/list.test.js.map +0 -1
- package/dist/skill-telemetry.test.d.ts +0 -2
- package/dist/skill-telemetry.test.d.ts.map +0 -1
- package/dist/skill-telemetry.test.js +0 -1484
- package/dist/skill-telemetry.test.js.map +0 -1
- package/dist/sources/get.test.d.ts +0 -5
- package/dist/sources/get.test.d.ts.map +0 -1
- package/dist/sources/get.test.js +0 -236
- package/dist/sources/get.test.js.map +0 -1
- package/dist/sources/list.test.d.ts +0 -8
- package/dist/sources/list.test.d.ts.map +0 -1
- package/dist/sources/list.test.js +0 -318
- package/dist/sources/list.test.js.map +0 -1
- package/dist/sts-credential-refresh.test.d.ts +0 -2
- package/dist/sts-credential-refresh.test.d.ts.map +0 -1
- package/dist/sts-credential-refresh.test.js +0 -181
- package/dist/sts-credential-refresh.test.js.map +0 -1
- package/dist/swallowed-error-sites.test.d.ts +0 -2
- package/dist/swallowed-error-sites.test.d.ts.map +0 -1
- package/dist/swallowed-error-sites.test.js +0 -199
- package/dist/swallowed-error-sites.test.js.map +0 -1
- package/dist/swallowed-error-w32.test.d.ts +0 -2
- package/dist/swallowed-error-w32.test.d.ts.map +0 -1
- package/dist/swallowed-error-w32.test.js +0 -171
- package/dist/swallowed-error-w32.test.js.map +0 -1
- package/dist/swallowed-error-w33.test.d.ts +0 -2
- package/dist/swallowed-error-w33.test.d.ts.map +0 -1
- package/dist/swallowed-error-w33.test.js +0 -125
- package/dist/swallowed-error-w33.test.js.map +0 -1
- package/dist/swallowed-error-w34.test.d.ts +0 -2
- package/dist/swallowed-error-w34.test.d.ts.map +0 -1
- package/dist/swallowed-error-w34.test.js +0 -110
- package/dist/swallowed-error-w34.test.js.map +0 -1
- package/dist/swallowed-error-w35.test.d.ts +0 -2
- package/dist/swallowed-error-w35.test.d.ts.map +0 -1
- package/dist/swallowed-error-w35.test.js +0 -223
- package/dist/swallowed-error-w35.test.js.map +0 -1
- package/dist/sync/area-ledger-auto-migration.test.d.ts +0 -2
- package/dist/sync/area-ledger-auto-migration.test.d.ts.map +0 -1
- package/dist/sync/area-ledger-auto-migration.test.js +0 -291
- package/dist/sync/area-ledger-auto-migration.test.js.map +0 -1
- package/dist/sync/area-ledger-migration.test.d.ts +0 -2
- package/dist/sync/area-ledger-migration.test.d.ts.map +0 -1
- package/dist/sync/area-ledger-migration.test.js +0 -554
- package/dist/sync/area-ledger-migration.test.js.map +0 -1
- package/dist/sync/area-ledger-recovery.bench.test.d.ts +0 -2
- package/dist/sync/area-ledger-recovery.bench.test.d.ts.map +0 -1
- package/dist/sync/area-ledger-recovery.bench.test.js +0 -60
- package/dist/sync/area-ledger-recovery.bench.test.js.map +0 -1
- package/dist/sync/area-ledger-writer-lock.bench.test.d.ts +0 -2
- package/dist/sync/area-ledger-writer-lock.bench.test.d.ts.map +0 -1
- package/dist/sync/area-ledger-writer-lock.bench.test.js +0 -57
- package/dist/sync/area-ledger-writer-lock.bench.test.js.map +0 -1
- package/dist/sync/area-ledger.test.d.ts +0 -2
- package/dist/sync/area-ledger.test.d.ts.map +0 -1
- package/dist/sync/area-ledger.test.js +0 -1401
- package/dist/sync/area-ledger.test.js.map +0 -1
- package/dist/sync/area-resolver.test.d.ts +0 -2
- package/dist/sync/area-resolver.test.d.ts.map +0 -1
- package/dist/sync/area-resolver.test.js +0 -234
- package/dist/sync/area-resolver.test.js.map +0 -1
- package/dist/sync/base-version-resolver.test.d.ts +0 -2
- package/dist/sync/base-version-resolver.test.d.ts.map +0 -1
- package/dist/sync/base-version-resolver.test.js +0 -24
- package/dist/sync/base-version-resolver.test.js.map +0 -1
- package/dist/sync/candidate-uploader.test.d.ts +0 -2
- package/dist/sync/candidate-uploader.test.d.ts.map +0 -1
- package/dist/sync/candidate-uploader.test.js +0 -132
- package/dist/sync/candidate-uploader.test.js.map +0 -1
- package/dist/sync/child-process-sync-worker-env.test.d.ts +0 -2
- package/dist/sync/child-process-sync-worker-env.test.d.ts.map +0 -1
- package/dist/sync/child-process-sync-worker-env.test.js +0 -38
- package/dist/sync/child-process-sync-worker-env.test.js.map +0 -1
- package/dist/sync/child-process-sync-worker-errors.test.d.ts +0 -2
- package/dist/sync/child-process-sync-worker-errors.test.d.ts.map +0 -1
- package/dist/sync/child-process-sync-worker-errors.test.js +0 -121
- package/dist/sync/child-process-sync-worker-errors.test.js.map +0 -1
- package/dist/sync/child-process-sync-worker.test.d.ts +0 -2
- package/dist/sync/child-process-sync-worker.test.d.ts.map +0 -1
- package/dist/sync/child-process-sync-worker.test.js +0 -262
- package/dist/sync/child-process-sync-worker.test.js.map +0 -1
- package/dist/sync/content-hash.test.d.ts +0 -2
- package/dist/sync/content-hash.test.d.ts.map +0 -1
- package/dist/sync/content-hash.test.js +0 -16
- package/dist/sync/content-hash.test.js.map +0 -1
- package/dist/sync/delta-client.test.d.ts +0 -2
- package/dist/sync/delta-client.test.d.ts.map +0 -1
- package/dist/sync/delta-client.test.js +0 -97
- package/dist/sync/delta-client.test.js.map +0 -1
- package/dist/sync/durable-apply.test.d.ts +0 -2
- package/dist/sync/durable-apply.test.d.ts.map +0 -1
- package/dist/sync/durable-apply.test.js +0 -180
- package/dist/sync/durable-apply.test.js.map +0 -1
- package/dist/sync/event-sync.test.d.ts +0 -14
- package/dist/sync/event-sync.test.d.ts.map +0 -1
- package/dist/sync/event-sync.test.js +0 -1714
- package/dist/sync/event-sync.test.js.map +0 -1
- package/dist/sync/feature-flags.test.d.ts +0 -24
- package/dist/sync/feature-flags.test.d.ts.map +0 -1
- package/dist/sync/feature-flags.test.js +0 -594
- package/dist/sync/feature-flags.test.js.map +0 -1
- package/dist/sync/full-pass-cap-governor.bench.test.d.ts +0 -2
- package/dist/sync/full-pass-cap-governor.bench.test.d.ts.map +0 -1
- package/dist/sync/full-pass-cap-governor.bench.test.js +0 -179
- package/dist/sync/full-pass-cap-governor.bench.test.js.map +0 -1
- package/dist/sync/full-pass-caps.test.d.ts +0 -2
- package/dist/sync/full-pass-caps.test.d.ts.map +0 -1
- package/dist/sync/full-pass-caps.test.js +0 -550
- package/dist/sync/full-pass-caps.test.js.map +0 -1
- package/dist/sync/idle-full-reconcile.test.d.ts +0 -2
- package/dist/sync/idle-full-reconcile.test.d.ts.map +0 -1
- package/dist/sync/idle-full-reconcile.test.js +0 -62
- package/dist/sync/idle-full-reconcile.test.js.map +0 -1
- package/dist/sync/inbound-event-admission.test.d.ts +0 -2
- package/dist/sync/inbound-event-admission.test.d.ts.map +0 -1
- package/dist/sync/inbound-event-admission.test.js +0 -125
- package/dist/sync/inbound-event-admission.test.js.map +0 -1
- package/dist/sync/journal-ledger-stream.test.d.ts +0 -12
- package/dist/sync/journal-ledger-stream.test.d.ts.map +0 -1
- package/dist/sync/journal-ledger-stream.test.js +0 -134
- package/dist/sync/journal-ledger-stream.test.js.map +0 -1
- package/dist/sync/lease-client.test.d.ts +0 -2
- package/dist/sync/lease-client.test.d.ts.map +0 -1
- package/dist/sync/lease-client.test.js +0 -119
- package/dist/sync/lease-client.test.js.map +0 -1
- package/dist/sync/logger.test.d.ts +0 -19
- package/dist/sync/logger.test.d.ts.map +0 -1
- package/dist/sync/logger.test.js +0 -204
- package/dist/sync/logger.test.js.map +0 -1
- package/dist/sync/metrics.test.d.ts +0 -19
- package/dist/sync/metrics.test.d.ts.map +0 -1
- package/dist/sync/metrics.test.js +0 -357
- package/dist/sync/metrics.test.js.map +0 -1
- package/dist/sync/multipart-uploader.test.d.ts +0 -2
- package/dist/sync/multipart-uploader.test.d.ts.map +0 -1
- package/dist/sync/multipart-uploader.test.js +0 -135
- package/dist/sync/multipart-uploader.test.js.map +0 -1
- package/dist/sync/mutation-client.test.d.ts +0 -2
- package/dist/sync/mutation-client.test.d.ts.map +0 -1
- package/dist/sync/mutation-client.test.js +0 -100
- package/dist/sync/mutation-client.test.js.map +0 -1
- package/dist/sync/mutation-session.test.d.ts +0 -2
- package/dist/sync/mutation-session.test.d.ts.map +0 -1
- package/dist/sync/mutation-session.test.js +0 -190
- package/dist/sync/mutation-session.test.js.map +0 -1
- package/dist/sync/parallel-sync-coordinator.test.d.ts +0 -2
- package/dist/sync/parallel-sync-coordinator.test.d.ts.map +0 -1
- package/dist/sync/parallel-sync-coordinator.test.js +0 -564
- package/dist/sync/parallel-sync-coordinator.test.js.map +0 -1
- package/dist/sync/path-leases.test.d.ts +0 -2
- package/dist/sync/path-leases.test.d.ts.map +0 -1
- package/dist/sync/path-leases.test.js +0 -51
- package/dist/sync/path-leases.test.js.map +0 -1
- package/dist/sync/per-area-maintenance.test.d.ts +0 -2
- package/dist/sync/per-area-maintenance.test.d.ts.map +0 -1
- package/dist/sync/per-area-maintenance.test.js +0 -100
- package/dist/sync/per-area-maintenance.test.js.map +0 -1
- package/dist/sync/push-event.test.d.ts +0 -15
- package/dist/sync/push-event.test.d.ts.map +0 -1
- package/dist/sync/push-event.test.js +0 -282
- package/dist/sync/push-event.test.js.map +0 -1
- package/dist/sync/push-receiver.test.d.ts +0 -25
- package/dist/sync/push-receiver.test.d.ts.map +0 -1
- package/dist/sync/push-receiver.test.js +0 -2851
- package/dist/sync/push-receiver.test.js.map +0 -1
- package/dist/sync/push-transport.test.d.ts +0 -2
- package/dist/sync/push-transport.test.d.ts.map +0 -1
- package/dist/sync/push-transport.test.js +0 -70
- package/dist/sync/push-transport.test.js.map +0 -1
- package/dist/sync/push-walk-matchers.bench.test.d.ts +0 -2
- package/dist/sync/push-walk-matchers.bench.test.d.ts.map +0 -1
- package/dist/sync/push-walk-matchers.bench.test.js +0 -230
- package/dist/sync/push-walk-matchers.bench.test.js.map +0 -1
- package/dist/sync/realtime-network-integration.test.d.ts +0 -2
- package/dist/sync/realtime-network-integration.test.d.ts.map +0 -1
- package/dist/sync/realtime-network-integration.test.js +0 -83
- package/dist/sync/realtime-network-integration.test.js.map +0 -1
- package/dist/sync/realtime-rollout.test.d.ts +0 -2
- package/dist/sync/realtime-rollout.test.d.ts.map +0 -1
- package/dist/sync/realtime-rollout.test.js +0 -94
- package/dist/sync/realtime-rollout.test.js.map +0 -1
- package/dist/sync/realtime-telemetry.test.d.ts +0 -2
- package/dist/sync/realtime-telemetry.test.d.ts.map +0 -1
- package/dist/sync/realtime-telemetry.test.js +0 -300
- package/dist/sync/realtime-telemetry.test.js.map +0 -1
- package/dist/sync/receiver-origin-config.test.d.ts +0 -2
- package/dist/sync/receiver-origin-config.test.d.ts.map +0 -1
- package/dist/sync/receiver-origin-config.test.js +0 -39
- package/dist/sync/receiver-origin-config.test.js.map +0 -1
- package/dist/sync/reconcile-cursor.test.d.ts +0 -2
- package/dist/sync/reconcile-cursor.test.d.ts.map +0 -1
- package/dist/sync/reconcile-cursor.test.js +0 -139
- package/dist/sync/reconcile-cursor.test.js.map +0 -1
- package/dist/sync/remote-file-spool.test.d.ts +0 -2
- package/dist/sync/remote-file-spool.test.d.ts.map +0 -1
- package/dist/sync/remote-file-spool.test.js +0 -77
- package/dist/sync/remote-file-spool.test.js.map +0 -1
- package/dist/sync/scope-inventory-client.test.d.ts +0 -2
- package/dist/sync/scope-inventory-client.test.d.ts.map +0 -1
- package/dist/sync/scope-inventory-client.test.js +0 -103
- package/dist/sync/scope-inventory-client.test.js.map +0 -1
- package/dist/sync/secret-path-policy.test.d.ts +0 -2
- package/dist/sync/secret-path-policy.test.d.ts.map +0 -1
- package/dist/sync/secret-path-policy.test.js +0 -183
- package/dist/sync/secret-path-policy.test.js.map +0 -1
- package/dist/sync/snapshot-client.test.d.ts +0 -2
- package/dist/sync/snapshot-client.test.d.ts.map +0 -1
- package/dist/sync/snapshot-client.test.js +0 -169
- package/dist/sync/snapshot-client.test.js.map +0 -1
- package/dist/sync/state-store.test.d.ts +0 -2
- package/dist/sync/state-store.test.d.ts.map +0 -1
- package/dist/sync/state-store.test.js +0 -1556
- package/dist/sync/state-store.test.js.map +0 -1
- package/dist/sync/sync-contract.test.d.ts +0 -2
- package/dist/sync/sync-contract.test.d.ts.map +0 -1
- package/dist/sync/sync-contract.test.js +0 -141
- package/dist/sync/sync-contract.test.js.map +0 -1
- package/dist/sync/targeted-pull-prefixes.test.d.ts +0 -2
- package/dist/sync/targeted-pull-prefixes.test.d.ts.map +0 -1
- package/dist/sync/targeted-pull-prefixes.test.js +0 -33
- package/dist/sync/targeted-pull-prefixes.test.js.map +0 -1
- package/dist/sync/targeted-upsert-exact-list.test.d.ts +0 -2
- package/dist/sync/targeted-upsert-exact-list.test.d.ts.map +0 -1
- package/dist/sync/targeted-upsert-exact-list.test.js +0 -247
- package/dist/sync/targeted-upsert-exact-list.test.js.map +0 -1
- package/dist/sync/unchanged-push-events.test.d.ts +0 -2
- package/dist/sync/unchanged-push-events.test.d.ts.map +0 -1
- package/dist/sync/unchanged-push-events.test.js +0 -76
- package/dist/sync/unchanged-push-events.test.js.map +0 -1
- package/dist/sync/uploader-finalization.test.d.ts +0 -2
- package/dist/sync/uploader-finalization.test.d.ts.map +0 -1
- package/dist/sync/uploader-finalization.test.js +0 -107
- package/dist/sync/uploader-finalization.test.js.map +0 -1
- package/dist/sync-core.test.d.ts +0 -2
- package/dist/sync-core.test.d.ts.map +0 -1
- package/dist/sync-core.test.js +0 -189
- package/dist/sync-core.test.js.map +0 -1
- package/dist/sync-progress.test.d.ts +0 -2
- package/dist/sync-progress.test.d.ts.map +0 -1
- package/dist/sync-progress.test.js +0 -277
- package/dist/sync-progress.test.js.map +0 -1
- package/dist/telemetry-events.test.d.ts +0 -2
- package/dist/telemetry-events.test.d.ts.map +0 -1
- package/dist/telemetry-events.test.js +0 -113
- package/dist/telemetry-events.test.js.map +0 -1
- package/dist/telemetry.test.d.ts +0 -11
- package/dist/telemetry.test.d.ts.map +0 -1
- package/dist/telemetry.test.js +0 -1603
- package/dist/telemetry.test.js.map +0 -1
- package/dist/vault-client.test.d.ts +0 -7
- package/dist/vault-client.test.d.ts.map +0 -1
- package/dist/vault-client.test.js +0 -1334
- package/dist/vault-client.test.js.map +0 -1
- package/dist/watch-coverage.test.d.ts +0 -2
- package/dist/watch-coverage.test.d.ts.map +0 -1
- package/dist/watch-coverage.test.js +0 -56
- package/dist/watch-coverage.test.js.map +0 -1
- package/dist/watch-owner-lease.test.d.ts +0 -2
- package/dist/watch-owner-lease.test.d.ts.map +0 -1
- package/dist/watch-owner-lease.test.js +0 -353
- package/dist/watch-owner-lease.test.js.map +0 -1
- package/dist/watch-parent.test.d.ts +0 -2
- package/dist/watch-parent.test.d.ts.map +0 -1
- package/dist/watch-parent.test.js +0 -131
- package/dist/watch-parent.test.js.map +0 -1
- package/dist/watch-roots.test.d.ts +0 -18
- package/dist/watch-roots.test.d.ts.map +0 -1
- package/dist/watch-roots.test.js +0 -395
- package/dist/watch-roots.test.js.map +0 -1
- package/dist/watcher-continuity-hot-path.test.d.ts +0 -2
- package/dist/watcher-continuity-hot-path.test.d.ts.map +0 -1
- package/dist/watcher-continuity-hot-path.test.js +0 -40
- package/dist/watcher-continuity-hot-path.test.js.map +0 -1
- package/dist/watcher-event-gate.test.d.ts +0 -16
- package/dist/watcher-event-gate.test.d.ts.map +0 -1
- package/dist/watcher-event-gate.test.js +0 -191
- package/dist/watcher-event-gate.test.js.map +0 -1
- package/dist/watcher-replan-sweep.test.d.ts +0 -2
- package/dist/watcher-replan-sweep.test.d.ts.map +0 -1
- package/dist/watcher-replan-sweep.test.js +0 -245
- package/dist/watcher-replan-sweep.test.js.map +0 -1
- package/dist/watcher-stdout.test.d.ts +0 -2
- package/dist/watcher-stdout.test.d.ts.map +0 -1
- package/dist/watcher-stdout.test.js +0 -86
- package/dist/watcher-stdout.test.js.map +0 -1
- package/dist/watcher.test.d.ts +0 -2
- package/dist/watcher.test.d.ts.map +0 -1
- package/dist/watcher.test.js +0 -4301
- package/dist/watcher.test.js.map +0 -1
- package/dist/watcher.warmup-cancel.test.d.ts +0 -2
- package/dist/watcher.warmup-cancel.test.d.ts.map +0 -1
- package/dist/watcher.warmup-cancel.test.js +0 -59
- package/dist/watcher.warmup-cancel.test.js.map +0 -1
- package/dist/watcher.warmup-responsive.test.d.ts +0 -2
- package/dist/watcher.warmup-responsive.test.d.ts.map +0 -1
- package/dist/watcher.warmup-responsive.test.js +0 -62
- package/dist/watcher.warmup-responsive.test.js.map +0 -1
|
@@ -1,734 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, vi } from "vitest";
|
|
2
|
-
import * as fs from "fs";
|
|
3
|
-
import * as os from "os";
|
|
4
|
-
import * as path from "path";
|
|
5
|
-
import { createHash } from "node:crypto";
|
|
6
|
-
import { buildHeapCensus, coordinatorPathOutcome, publishedContentHashFromJournalEntry, realtimeTelemetryReason, stripTransientWatchScopeArgs, RUNNER_HEAP_RECYCLE_EXIT, takeEnumeratedBatchChunk, } from "./sync-runner-watch-loop.js";
|
|
7
|
-
import { TRANSIENT_NETWORK_EXIT } from "../lib/net-errors.js";
|
|
8
|
-
import { parseArgs } from "./sync-runner.js";
|
|
9
|
-
import { PARTIAL_SYNC_EXIT, UNRESOLVED_COMPANY_EXIT, } from "../lib/exit-codes.js";
|
|
10
|
-
import { AUTH_REQUIRED_PASS_EXIT, runRunnerWithLoop, } from "./sync-runner.js";
|
|
11
|
-
import { reindexAfterSync } from "../qmd-reindex.js";
|
|
12
|
-
import { HEAP_FOOTPRINT_RECYCLE_ENABLED_ENV, HEAP_FOOTPRINT_RECYCLE_MB_ENV, HEAP_FOOTPRINT_HARD_EXIT_MB_ENV, resolveHeapFootprintRecycleEnabled, resolveHeapFootprintRecycleBytes, resolveHeapFootprintHardExitBytes, DEFAULT_HEAP_FOOTPRINT_RECYCLE_BYTES, DEFAULT_HEAP_FOOTPRINT_HARD_EXIT_BYTES, } from "./sync-runner-heap-telemetry.js";
|
|
13
|
-
import { PushEventEmitter } from "../watcher.js";
|
|
14
|
-
import { updateEntry } from "../journal.js";
|
|
15
|
-
function snapshotOf(census) {
|
|
16
|
-
return Object.fromEntries(census.snapshot().map((site) => [site.site, site.count]));
|
|
17
|
-
}
|
|
18
|
-
describe("stripTransientWatchScopeArgs", () => {
|
|
19
|
-
it("removes all transient scopes before a scheduled reconcile", () => {
|
|
20
|
-
expect(stripTransientWatchScopeArgs([
|
|
21
|
-
"--companies",
|
|
22
|
-
"--watch",
|
|
23
|
-
"--exit-with-parent",
|
|
24
|
-
"--poll-remote-ms",
|
|
25
|
-
"60000",
|
|
26
|
-
"--event-push",
|
|
27
|
-
"--owner",
|
|
28
|
-
"hq-daemon",
|
|
29
|
-
"--scope-path",
|
|
30
|
-
"docs/legacy.md",
|
|
31
|
-
"--scope-upsert-path",
|
|
32
|
-
"docs/new.md",
|
|
33
|
-
"--delete-scope-path",
|
|
34
|
-
"docs/removed.md",
|
|
35
|
-
"--direction",
|
|
36
|
-
"pull",
|
|
37
|
-
])).toEqual(["--companies", "--direction", "pull"]);
|
|
38
|
-
});
|
|
39
|
-
// Regression (2026-10-02, Mac app-hosted runner 6.18.32): a launcher that
|
|
40
|
-
// passes --watch-parent-pid got "--watch-parent-pid requires --watch" from
|
|
41
|
-
// every scheduled full reconcile, because the chore argv kept the flag.
|
|
42
|
-
it("removes --watch-parent-pid and its value", () => {
|
|
43
|
-
expect(stripTransientWatchScopeArgs([
|
|
44
|
-
"--companies",
|
|
45
|
-
"--watch",
|
|
46
|
-
"--exit-with-parent",
|
|
47
|
-
"--watch-parent-pid",
|
|
48
|
-
"4242",
|
|
49
|
-
"--direction",
|
|
50
|
-
"both",
|
|
51
|
-
])).toEqual(["--companies", "--direction", "both"]);
|
|
52
|
-
});
|
|
53
|
-
it("produces a reconcile argv the runner parser accepts for a desktop launcher argv", () => {
|
|
54
|
-
const launcherArgv = [
|
|
55
|
-
"--companies",
|
|
56
|
-
"--direction",
|
|
57
|
-
"both",
|
|
58
|
-
"--on-conflict",
|
|
59
|
-
"keep",
|
|
60
|
-
"--hq-root",
|
|
61
|
-
"/tmp/hq-root",
|
|
62
|
-
"--watch",
|
|
63
|
-
"--lock-timeout",
|
|
64
|
-
"600",
|
|
65
|
-
"--event-push",
|
|
66
|
-
"--owner",
|
|
67
|
-
"hq-desktop",
|
|
68
|
-
"--exit-with-parent",
|
|
69
|
-
"--watch-parent-pid",
|
|
70
|
-
"4242",
|
|
71
|
-
];
|
|
72
|
-
expect(parseArgs(launcherArgv)).not.toHaveProperty("error");
|
|
73
|
-
expect(parseArgs(stripTransientWatchScopeArgs(launcherArgv))).not.toHaveProperty("error");
|
|
74
|
-
});
|
|
75
|
-
it("strips every flag the parser declares watch-only", () => {
|
|
76
|
-
const source = fs.readFileSync(path.join(path.dirname(new URL(import.meta.url).pathname), "sync-runner.ts"), "utf8");
|
|
77
|
-
const watchOnly = [...source.matchAll(/"(--[a-z-]+) requires --watch"/g)].map((m) => m[1]);
|
|
78
|
-
expect(watchOnly).toContain("--watch-parent-pid");
|
|
79
|
-
for (const flag of watchOnly) {
|
|
80
|
-
const stripped = stripTransientWatchScopeArgs(["--companies", "--watch", flag, "4242", "--direction", "pull"]);
|
|
81
|
-
expect(stripped, flag).not.toContain(flag);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
describe("buildHeapCensus", () => {
|
|
86
|
-
// The emitter/watcher SIZE lookups still key off the producers' own field
|
|
87
|
-
// names (`...ContentHashes`, etc.), but the census emits a DECOUPLED deny-safe
|
|
88
|
-
// TOKEN (`...Digests`), so the flattened property survives hq-pro ingest — the
|
|
89
|
-
// pre-fix `content`-bearing keys were silently dropped, losing the attribution.
|
|
90
|
-
it("registers watch-loop, emitter, and watcher sites under fixed deny-safe tokens", () => {
|
|
91
|
-
const census = buildHeapCensus({
|
|
92
|
-
ownMaps: {
|
|
93
|
-
pendingAppliedUpserts: () => 3,
|
|
94
|
-
pendingWatcherEntries: () => 4,
|
|
95
|
-
pendingSlowPasses: () => 2,
|
|
96
|
-
},
|
|
97
|
-
eventSyncSizes: () => ({
|
|
98
|
-
lastPublishedContentHashes: 10,
|
|
99
|
-
publishedContentHashGenerations: 20,
|
|
100
|
-
deferredPublishes: 1,
|
|
101
|
-
durablePublishedHashRetries: 2,
|
|
102
|
-
initialPublishedContentHashes: 0,
|
|
103
|
-
}),
|
|
104
|
-
watcherSizes: () => ({ knownKinds: 100, deleteSnapshotEpochs: 5, ignoreFilterMemo: 50 }),
|
|
105
|
-
});
|
|
106
|
-
const snap = snapshotOf(census);
|
|
107
|
-
expect(snap.pendingAppliedUpserts).toBe(3);
|
|
108
|
-
expect(snap.pendingWatcherEntries).toBe(4);
|
|
109
|
-
expect(snap.pendingSlowPasses).toBe(2);
|
|
110
|
-
// Emitter fields land under their decoupled deny-safe tokens.
|
|
111
|
-
expect(snap.lastPublishedDigests).toBe(10);
|
|
112
|
-
expect(snap.publishedDigestGenerations).toBe(20);
|
|
113
|
-
expect(snap.deferredPublishes).toBe(1);
|
|
114
|
-
expect(snap.durablePublishedHashRetries).toBe(2);
|
|
115
|
-
expect(snap.initialPublishedDigests).toBe(0);
|
|
116
|
-
expect(snap.knownKinds).toBe(100);
|
|
117
|
-
expect(snap.deleteSnapshotEpochs).toBe(5);
|
|
118
|
-
expect(snap.ignoreFilterMemo).toBe(50);
|
|
119
|
-
// The pre-fix `content`-bearing tokens are never registered.
|
|
120
|
-
expect(snap.publishedContentHashGenerations).toBeUndefined();
|
|
121
|
-
expect(snap.lastPublishedContentHashes).toBeUndefined();
|
|
122
|
-
});
|
|
123
|
-
it("every registered census token is deny-safe for hq-pro ingest", () => {
|
|
124
|
-
// Any token containing a denied ingest substring would make its flattened
|
|
125
|
-
// `census_<token>_count` key dropped at ingest — the exact defect being fixed.
|
|
126
|
-
const DENY_PARTS = [
|
|
127
|
-
"authorization", "body", "content", "cookie", "email", "file", "message",
|
|
128
|
-
"password", "path", "prompt", "query", "secret", "text", "token", "transcript",
|
|
129
|
-
];
|
|
130
|
-
const census = buildHeapCensus({
|
|
131
|
-
ownMaps: {
|
|
132
|
-
pendingAppliedUpserts: () => 0,
|
|
133
|
-
pendingWatcherEntries: () => 0,
|
|
134
|
-
pendingWatcherChanges: () => 0,
|
|
135
|
-
pendingWatcherDroppedRouteHints: () => 0,
|
|
136
|
-
},
|
|
137
|
-
eventSyncSizes: () => ({
|
|
138
|
-
lastPublishedContentHashes: 0,
|
|
139
|
-
publishedContentHashGenerations: 0,
|
|
140
|
-
deferredPublishes: 0,
|
|
141
|
-
durablePublishedHashRetries: 0,
|
|
142
|
-
initialPublishedContentHashes: 0,
|
|
143
|
-
}),
|
|
144
|
-
watcherSizes: () => ({ knownKinds: 0, deleteSnapshotEpochs: 0, ignoreFilterMemo: 0 }),
|
|
145
|
-
});
|
|
146
|
-
for (const { site } of census.snapshot()) {
|
|
147
|
-
const lower = site.toLowerCase();
|
|
148
|
-
for (const part of DENY_PARTS) {
|
|
149
|
-
expect(lower.includes(part), `deny part "${part}" in census token ${site}`).toBe(false);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
it("reports 0 for emitter/watcher sites when no handle is live yet", () => {
|
|
154
|
-
const census = buildHeapCensus({
|
|
155
|
-
ownMaps: { pendingAppliedUpserts: () => 7 },
|
|
156
|
-
eventSyncSizes: () => undefined, // no live emitter
|
|
157
|
-
watcherSizes: () => undefined, // no attached watcher
|
|
158
|
-
});
|
|
159
|
-
const snap = snapshotOf(census);
|
|
160
|
-
expect(snap.pendingAppliedUpserts).toBe(7);
|
|
161
|
-
expect(snap.publishedDigestGenerations).toBe(0);
|
|
162
|
-
expect(snap.knownKinds).toBe(0);
|
|
163
|
-
expect(snap.deleteSnapshotEpochs).toBe(0);
|
|
164
|
-
expect(snap.ignoreFilterMemo).toBe(0);
|
|
165
|
-
});
|
|
166
|
-
it("reflects the CURRENT handle on each snapshot, so a late/replaced handle is picked up", () => {
|
|
167
|
-
const handle = { sizes: undefined };
|
|
168
|
-
const census = buildHeapCensus({
|
|
169
|
-
ownMaps: {},
|
|
170
|
-
eventSyncSizes: () => handle.sizes,
|
|
171
|
-
watcherSizes: () => undefined,
|
|
172
|
-
});
|
|
173
|
-
expect(snapshotOf(census).publishedDigestGenerations).toBe(0);
|
|
174
|
-
handle.sizes = {
|
|
175
|
-
lastPublishedContentHashes: 0,
|
|
176
|
-
publishedContentHashGenerations: 42,
|
|
177
|
-
deferredPublishes: 0,
|
|
178
|
-
durablePublishedHashRetries: 0,
|
|
179
|
-
};
|
|
180
|
-
expect(snapshotOf(census).publishedDigestGenerations).toBe(42);
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
describe("publishedContentHashFromJournalEntryBeforeSession", () => {
|
|
184
|
-
function makeEmitter(published, lookup) {
|
|
185
|
-
return new PushEventEmitter({
|
|
186
|
-
originTenantId: "tenant-indigo",
|
|
187
|
-
originDeviceId: "device-a",
|
|
188
|
-
transport: {
|
|
189
|
-
start: async () => { },
|
|
190
|
-
dispose: async () => { },
|
|
191
|
-
connected: true,
|
|
192
|
-
publish: async (event) => { published.push(event); },
|
|
193
|
-
},
|
|
194
|
-
flagProvider: { isEnabled: () => true },
|
|
195
|
-
now: () => new Date("2026-08-31T12:00:00.000Z"),
|
|
196
|
-
publishMinIntervalMs: 0,
|
|
197
|
-
publishedContentHashLookup: lookup,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
function journalEntry(hash, syncedAt) {
|
|
201
|
-
return { hash, size: 23, syncedAt, direction: "up" };
|
|
202
|
-
}
|
|
203
|
-
it("does not re-announce an unchanged file after a runner restart and no-op upload reconciliation", async () => {
|
|
204
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-runner-published-hash-"));
|
|
205
|
-
try {
|
|
206
|
-
const relativePath = "companies/indigo/reuploaded-unchanged.md";
|
|
207
|
-
const filePath = path.join(dir, relativePath);
|
|
208
|
-
const content = "already published content\n";
|
|
209
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
210
|
-
fs.writeFileSync(filePath, content);
|
|
211
|
-
const hash = createHash("sha256").update(content).digest("hex");
|
|
212
|
-
const sessionStartedAt = Date.now();
|
|
213
|
-
const journal = {
|
|
214
|
-
version: "1",
|
|
215
|
-
lastSync: "",
|
|
216
|
-
files: {
|
|
217
|
-
[relativePath]: journalEntry(hash, new Date(sessionStartedAt - 1_000).toISOString()),
|
|
218
|
-
},
|
|
219
|
-
};
|
|
220
|
-
// The upload reconciler sees the remote digest already matches local
|
|
221
|
-
// content, so it updates the journal without sending another PUT.
|
|
222
|
-
updateEntry(journal, relativePath, hash, Buffer.byteLength(content), "up", filePath, {
|
|
223
|
-
preserveSyncedAt: true,
|
|
224
|
-
});
|
|
225
|
-
const published = [];
|
|
226
|
-
const emitter = makeEmitter(published, (candidate) => candidate === relativePath
|
|
227
|
-
? publishedContentHashFromJournalEntry(journal.files[relativePath], sessionStartedAt)
|
|
228
|
-
: undefined);
|
|
229
|
-
// A restarted runner starts with a cold emitter. The journal fallback
|
|
230
|
-
// must still identify these bytes as already published.
|
|
231
|
-
await emitter.emitForBatch({ paths: new Map([[filePath, relativePath]]) });
|
|
232
|
-
expect(published).toEqual([]);
|
|
233
|
-
}
|
|
234
|
-
finally {
|
|
235
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
it("still publishes changed content first uploaded in the current runner session", async () => {
|
|
239
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-runner-published-hash-"));
|
|
240
|
-
try {
|
|
241
|
-
const relativePath = "companies/indigo/changed-after-restart.md";
|
|
242
|
-
const filePath = path.join(dir, relativePath);
|
|
243
|
-
const content = "new content\n";
|
|
244
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
245
|
-
fs.writeFileSync(filePath, content);
|
|
246
|
-
const oldHash = createHash("sha256").update("old content\n").digest("hex");
|
|
247
|
-
const hash = createHash("sha256").update(content).digest("hex");
|
|
248
|
-
const sessionStartedAt = Date.now();
|
|
249
|
-
const journal = {
|
|
250
|
-
version: "1",
|
|
251
|
-
lastSync: "",
|
|
252
|
-
files: {
|
|
253
|
-
[relativePath]: journalEntry(oldHash, new Date(sessionStartedAt - 1_000).toISOString()),
|
|
254
|
-
},
|
|
255
|
-
};
|
|
256
|
-
updateEntry(journal, relativePath, hash, Buffer.byteLength(content), "up", filePath);
|
|
257
|
-
const published = [];
|
|
258
|
-
const emitter = makeEmitter(published, (candidate) => candidate === relativePath
|
|
259
|
-
? publishedContentHashFromJournalEntry(journal.files[relativePath], sessionStartedAt)
|
|
260
|
-
: undefined);
|
|
261
|
-
await emitter.emitForBatch({ paths: new Map([[filePath, relativePath]]) });
|
|
262
|
-
expect(published).toHaveLength(1);
|
|
263
|
-
expect(published[0]).toMatchObject({
|
|
264
|
-
kind: "upsert",
|
|
265
|
-
relativePath,
|
|
266
|
-
contentHash: `sha256:${hash}`,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
finally {
|
|
270
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
it("publishes a local upsert when this runner session has just persisted its hash", async () => {
|
|
274
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-runner-published-hash-"));
|
|
275
|
-
try {
|
|
276
|
-
const relativePath = "companies/indigo/newly-pushed.md";
|
|
277
|
-
const filePath = path.join(dir, relativePath);
|
|
278
|
-
const content = "newly pushed by this runner\n";
|
|
279
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
280
|
-
fs.writeFileSync(filePath, content);
|
|
281
|
-
const hash = createHash("sha256").update(content).digest("hex");
|
|
282
|
-
const sessionStartedAt = Date.parse("2026-08-31T12:00:00.000Z");
|
|
283
|
-
const persistedByThisSession = journalEntry(hash, "2026-08-31T12:00:00.001Z");
|
|
284
|
-
expect(publishedContentHashFromJournalEntry(persistedByThisSession, sessionStartedAt)).toBeUndefined();
|
|
285
|
-
const published = [];
|
|
286
|
-
const emitter = makeEmitter(published, (path) => path === relativePath
|
|
287
|
-
? publishedContentHashFromJournalEntry(persistedByThisSession, sessionStartedAt)
|
|
288
|
-
: undefined);
|
|
289
|
-
await emitter.emitForBatch({ paths: new Map([[filePath, relativePath]]) });
|
|
290
|
-
expect(published).toHaveLength(1);
|
|
291
|
-
expect(published[0]).toMatchObject({
|
|
292
|
-
kind: "upsert",
|
|
293
|
-
relativePath,
|
|
294
|
-
contentHash: `sha256:${hash}`,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
finally {
|
|
298
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
it("suppresses a hash that was genuinely published before the runner session", async () => {
|
|
302
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-runner-published-hash-"));
|
|
303
|
-
try {
|
|
304
|
-
const relativePath = "companies/indigo/published-before-start.md";
|
|
305
|
-
const filePath = path.join(dir, relativePath);
|
|
306
|
-
const content = "already published before this runner\n";
|
|
307
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
308
|
-
fs.writeFileSync(filePath, content);
|
|
309
|
-
const hash = createHash("sha256").update(content).digest("hex");
|
|
310
|
-
const sessionStartedAt = Date.parse("2026-08-31T12:00:00.000Z");
|
|
311
|
-
const publishedBeforeSession = journalEntry(hash, "2026-08-31T11:59:59.999Z");
|
|
312
|
-
expect(publishedContentHashFromJournalEntry(publishedBeforeSession, sessionStartedAt)).toBe(`sha256:${hash}`);
|
|
313
|
-
const published = [];
|
|
314
|
-
const emitter = makeEmitter(published, (path) => path === relativePath
|
|
315
|
-
? publishedContentHashFromJournalEntry(publishedBeforeSession, sessionStartedAt)
|
|
316
|
-
: undefined);
|
|
317
|
-
await emitter.emitForBatch({ paths: new Map([[filePath, relativePath]]) });
|
|
318
|
-
expect(published).toEqual([]);
|
|
319
|
-
}
|
|
320
|
-
finally {
|
|
321
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
it("suppresses a hash this session downloaded", async () => {
|
|
325
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-runner-published-hash-"));
|
|
326
|
-
try {
|
|
327
|
-
const relativePath = "companies/indigo/downloaded-this-session.md";
|
|
328
|
-
const filePath = path.join(dir, relativePath);
|
|
329
|
-
const content = "downloaded from the cloud this session\n";
|
|
330
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
331
|
-
fs.writeFileSync(filePath, content);
|
|
332
|
-
const hash = createHash("sha256").update(content).digest("hex");
|
|
333
|
-
const sessionStartedAt = Date.parse("2026-08-31T12:00:00.000Z");
|
|
334
|
-
const downloadedThisSession = {
|
|
335
|
-
...journalEntry(hash, "2026-08-31T12:00:00.001Z"),
|
|
336
|
-
direction: "down",
|
|
337
|
-
};
|
|
338
|
-
expect(publishedContentHashFromJournalEntry(downloadedThisSession, sessionStartedAt)).toBe(`sha256:${hash}`);
|
|
339
|
-
const published = [];
|
|
340
|
-
const emitter = makeEmitter(published, (path) => path === relativePath
|
|
341
|
-
? publishedContentHashFromJournalEntry(downloadedThisSession, sessionStartedAt)
|
|
342
|
-
: undefined);
|
|
343
|
-
await emitter.emitForBatch({ paths: new Map([[filePath, relativePath]]) });
|
|
344
|
-
expect(published).toEqual([]);
|
|
345
|
-
}
|
|
346
|
-
finally {
|
|
347
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
it("publishes a local edit made after this session downloaded the file", async () => {
|
|
351
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-runner-published-hash-"));
|
|
352
|
-
try {
|
|
353
|
-
const relativePath = "companies/indigo/edited-after-download.md";
|
|
354
|
-
const filePath = path.join(dir, relativePath);
|
|
355
|
-
const content = "edited locally after the download\n";
|
|
356
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
357
|
-
fs.writeFileSync(filePath, content);
|
|
358
|
-
const downloadedHash = createHash("sha256").update("downloaded cloud content\n").digest("hex");
|
|
359
|
-
const localHash = createHash("sha256").update(content).digest("hex");
|
|
360
|
-
const sessionStartedAt = Date.parse("2026-08-31T12:00:00.000Z");
|
|
361
|
-
const downloadedThisSession = {
|
|
362
|
-
...journalEntry(downloadedHash, "2026-08-31T12:00:00.001Z"),
|
|
363
|
-
direction: "down",
|
|
364
|
-
};
|
|
365
|
-
expect(publishedContentHashFromJournalEntry(downloadedThisSession, sessionStartedAt)).toBe(`sha256:${downloadedHash}`);
|
|
366
|
-
const published = [];
|
|
367
|
-
const emitter = makeEmitter(published, (path) => path === relativePath
|
|
368
|
-
? publishedContentHashFromJournalEntry(downloadedThisSession, sessionStartedAt)
|
|
369
|
-
: undefined);
|
|
370
|
-
await emitter.emitForBatch({ paths: new Map([[filePath, relativePath]]) });
|
|
371
|
-
expect(published).toHaveLength(1);
|
|
372
|
-
expect(published[0]).toMatchObject({
|
|
373
|
-
kind: "upsert",
|
|
374
|
-
relativePath,
|
|
375
|
-
contentHash: `sha256:${localHash}`,
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
finally {
|
|
379
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
});
|
|
383
|
-
describe("runner deliberate-exit code (cooperative recycle / hard exit)", () => {
|
|
384
|
-
it("RUNNER_HEAP_RECYCLE_EXIT is 1, distinct from success (0) and the auth-required exit (18)", () => {
|
|
385
|
-
// Every deliberate governor exit — cooperative, latch_timeout, hard_fraction —
|
|
386
|
-
// uses this one code, which the desktop classifies LocalLogOnly. It must never
|
|
387
|
-
// collide with success (0) or the auth-required pass exit (18).
|
|
388
|
-
expect(RUNNER_HEAP_RECYCLE_EXIT).toBe(1);
|
|
389
|
-
expect(RUNNER_HEAP_RECYCLE_EXIT).not.toBe(0);
|
|
390
|
-
expect(RUNNER_HEAP_RECYCLE_EXIT).not.toBe(AUTH_REQUIRED_PASS_EXIT);
|
|
391
|
-
expect(AUTH_REQUIRED_PASS_EXIT).toBe(18);
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
describe("coordinatorWorker unresolved-company exit", () => {
|
|
395
|
-
it("maps UNRESOLVED_COMPANY_EXIT (19) to durable and keeps 75 and 2 retryable", () => {
|
|
396
|
-
expect(coordinatorPathOutcome(0)).toEqual({ status: "durable" });
|
|
397
|
-
expect(coordinatorPathOutcome(UNRESOLVED_COMPANY_EXIT)).toEqual({
|
|
398
|
-
status: "durable",
|
|
399
|
-
reason: "unresolved company",
|
|
400
|
-
});
|
|
401
|
-
expect(coordinatorPathOutcome(PARTIAL_SYNC_EXIT)).toEqual({
|
|
402
|
-
status: "retryable",
|
|
403
|
-
reason: `sync pass exited ${PARTIAL_SYNC_EXIT}`,
|
|
404
|
-
});
|
|
405
|
-
expect(coordinatorPathOutcome(TRANSIENT_NETWORK_EXIT)).toEqual({
|
|
406
|
-
status: "retryable",
|
|
407
|
-
reason: `sync pass exited ${TRANSIENT_NETWORK_EXIT}`,
|
|
408
|
-
});
|
|
409
|
-
expect(coordinatorPathOutcome(1)).toEqual({
|
|
410
|
-
status: "retryable",
|
|
411
|
-
reason: "sync pass exited 1",
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
it("maps unresolved company to telemetry reason unresolved-company, not pass-exit", () => {
|
|
415
|
-
expect(realtimeTelemetryReason([
|
|
416
|
-
{
|
|
417
|
-
path: "companies/acme/note.md",
|
|
418
|
-
epoch: 1,
|
|
419
|
-
status: "durable",
|
|
420
|
-
reason: "unresolved company",
|
|
421
|
-
},
|
|
422
|
-
])).toBe("unresolved-company");
|
|
423
|
-
expect(realtimeTelemetryReason([
|
|
424
|
-
{
|
|
425
|
-
path: "companies/acme/note.md",
|
|
426
|
-
epoch: 1,
|
|
427
|
-
status: "retryable",
|
|
428
|
-
reason: `sync pass exited ${UNRESOLVED_COMPANY_EXIT}`,
|
|
429
|
-
},
|
|
430
|
-
])).toBe("unresolved-company");
|
|
431
|
-
expect(realtimeTelemetryReason([
|
|
432
|
-
{
|
|
433
|
-
path: "companies/indigo/note.md",
|
|
434
|
-
epoch: 1,
|
|
435
|
-
status: "retryable",
|
|
436
|
-
reason: `sync pass exited ${PARTIAL_SYNC_EXIT}`,
|
|
437
|
-
},
|
|
438
|
-
])).toBe("pass-exit");
|
|
439
|
-
expect(realtimeTelemetryReason([
|
|
440
|
-
{
|
|
441
|
-
path: "companies/indigo/note.md",
|
|
442
|
-
epoch: 1,
|
|
443
|
-
status: "retryable",
|
|
444
|
-
reason: `sync pass exited ${TRANSIENT_NETWORK_EXIT}`,
|
|
445
|
-
},
|
|
446
|
-
])).toBe("pass-exit");
|
|
447
|
-
});
|
|
448
|
-
});
|
|
449
|
-
describe("takeEnumeratedBatchChunk", () => {
|
|
450
|
-
it("returns the original batch when it already fits the limit", () => {
|
|
451
|
-
const batch = {
|
|
452
|
-
paths: new Map([
|
|
453
|
-
["/a", "a"],
|
|
454
|
-
["/b", "b"],
|
|
455
|
-
]),
|
|
456
|
-
};
|
|
457
|
-
const split = takeEnumeratedBatchChunk(batch, 2);
|
|
458
|
-
expect(split.chunk).toBe(batch);
|
|
459
|
-
expect(split.remainder).toBeNull();
|
|
460
|
-
});
|
|
461
|
-
it("keeps insertion order, change records, and the remainder queued", () => {
|
|
462
|
-
const addA = { kind: "add" };
|
|
463
|
-
const addB = { kind: "add" };
|
|
464
|
-
const addC = { kind: "add" };
|
|
465
|
-
const batch = {
|
|
466
|
-
paths: new Map([
|
|
467
|
-
["/a", "a"],
|
|
468
|
-
["/b", "b"],
|
|
469
|
-
["/c", "c"],
|
|
470
|
-
]),
|
|
471
|
-
changes: new Map([
|
|
472
|
-
["/a", addA],
|
|
473
|
-
["/b", addB],
|
|
474
|
-
["/c", addC],
|
|
475
|
-
]),
|
|
476
|
-
};
|
|
477
|
-
const split = takeEnumeratedBatchChunk(batch, 2);
|
|
478
|
-
expect([...split.chunk.paths.values()]).toEqual(["a", "b"]);
|
|
479
|
-
expect(split.chunk.changes?.get("/a")).toBe(addA);
|
|
480
|
-
expect(split.chunk.changes?.get("/b")).toBe(addB);
|
|
481
|
-
expect(split.remainder).not.toBeNull();
|
|
482
|
-
expect([...(split.remainder?.paths.values() ?? [])]).toEqual(["c"]);
|
|
483
|
-
expect(split.remainder?.changes?.get("/c")).toBe(addC);
|
|
484
|
-
expect(split.chunk).not.toHaveProperty("overflowed");
|
|
485
|
-
expect(split.remainder).not.toHaveProperty("overflowed");
|
|
486
|
-
});
|
|
487
|
-
});
|
|
488
|
-
describe("resident-footprint env knobs (startRunnerHeapSampling seam)", () => {
|
|
489
|
-
// The watch loop maps these env knobs onto the footprint options it passes to
|
|
490
|
-
// startRunnerHeapSampling. Pin the exact knob names so a rename that would make
|
|
491
|
-
// the desktop's env override silently ineffective fails here, and pin the
|
|
492
|
-
// fail-soft parsing so a malformed value can never disable the tier or the
|
|
493
|
-
// heap tiers beside it.
|
|
494
|
-
it("uses the exact HQ_SYNC_RUNNER_FOOTPRINT_* knob names the desktop can set", () => {
|
|
495
|
-
expect(HEAP_FOOTPRINT_RECYCLE_ENABLED_ENV).toBe("HQ_SYNC_RUNNER_FOOTPRINT_RECYCLE_ENABLED");
|
|
496
|
-
expect(HEAP_FOOTPRINT_RECYCLE_MB_ENV).toBe("HQ_SYNC_RUNNER_FOOTPRINT_RECYCLE_MB");
|
|
497
|
-
expect(HEAP_FOOTPRINT_HARD_EXIT_MB_ENV).toBe("HQ_SYNC_RUNNER_FOOTPRINT_HARD_EXIT_MB");
|
|
498
|
-
});
|
|
499
|
-
it("resolves malformed footprint values to fail-soft defaults and never silently disables the tier", () => {
|
|
500
|
-
expect(resolveHeapFootprintRecycleBytes("garbage")).toBe(DEFAULT_HEAP_FOOTPRINT_RECYCLE_BYTES);
|
|
501
|
-
expect(resolveHeapFootprintRecycleBytes(undefined)).toBe(DEFAULT_HEAP_FOOTPRINT_RECYCLE_BYTES);
|
|
502
|
-
expect(resolveHeapFootprintHardExitBytes("4gb")).toBe(DEFAULT_HEAP_FOOTPRINT_HARD_EXIT_BYTES);
|
|
503
|
-
// A typo in the enable knob keeps the tier ARMED; only an explicit off disables it.
|
|
504
|
-
expect(resolveHeapFootprintRecycleEnabled("nope")).toBe(true);
|
|
505
|
-
expect(resolveHeapFootprintRecycleEnabled("0")).toBe(false);
|
|
506
|
-
});
|
|
507
|
-
});
|
|
508
|
-
describe("watch-loop qmd heartbeat and shutdown", () => {
|
|
509
|
-
const acquireLease = () => ({
|
|
510
|
-
status: "acquired",
|
|
511
|
-
lease: {
|
|
512
|
-
statusPath: "test://qmd-watch-owner",
|
|
513
|
-
lost: new Promise(() => { }),
|
|
514
|
-
release: async () => { },
|
|
515
|
-
},
|
|
516
|
-
});
|
|
517
|
-
it("emits stopping and final shutdown protocol statuses", async () => {
|
|
518
|
-
const stdout = [];
|
|
519
|
-
let triggerShutdown = (_signal) => { };
|
|
520
|
-
const loop = runRunnerWithLoop(["--companies", "--watch", "--hq-root", "/tmp/hq"], {
|
|
521
|
-
acquireWatchOwnerLease: acquireLease,
|
|
522
|
-
idleHeartbeatIntervalMs: 10,
|
|
523
|
-
stdout: { write: (chunk) => { stdout.push(chunk); return true; } },
|
|
524
|
-
sleep: () => new Promise(() => { }),
|
|
525
|
-
onShutdownSignal: (handler) => {
|
|
526
|
-
triggerShutdown = handler;
|
|
527
|
-
return () => { };
|
|
528
|
-
},
|
|
529
|
-
runPass: async () => {
|
|
530
|
-
triggerShutdown("SIGTERM");
|
|
531
|
-
return 0;
|
|
532
|
-
},
|
|
533
|
-
});
|
|
534
|
-
await expect(loop).resolves.toBe(0);
|
|
535
|
-
const statuses = stdout
|
|
536
|
-
.flatMap((chunk) => chunk.split("\n"))
|
|
537
|
-
.filter(Boolean)
|
|
538
|
-
.map((line) => JSON.parse(line))
|
|
539
|
-
.filter((line) => line.type === "status");
|
|
540
|
-
expect(statuses).toContainEqual(expect.objectContaining({ state: "stopping", signal: "SIGTERM" }));
|
|
541
|
-
expect(statuses.at(-1)).toEqual(expect.objectContaining({
|
|
542
|
-
state: "stopped",
|
|
543
|
-
exitReason: "clean",
|
|
544
|
-
eventLoopDelay: expect.objectContaining({ maxMs: expect.any(Number), p99Ms: expect.any(Number) }),
|
|
545
|
-
}));
|
|
546
|
-
});
|
|
547
|
-
it("writes protocol heartbeats while the post-sync qmd command is pending", async () => {
|
|
548
|
-
vi.useFakeTimers();
|
|
549
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-qmd-heartbeat-"));
|
|
550
|
-
const stdout = [];
|
|
551
|
-
let triggerShutdown = (_signal) => { };
|
|
552
|
-
let shutdownTriggered = false;
|
|
553
|
-
const shutdown = () => {
|
|
554
|
-
if (shutdownTriggered)
|
|
555
|
-
return;
|
|
556
|
-
shutdownTriggered = true;
|
|
557
|
-
triggerShutdown("SIGTERM");
|
|
558
|
-
};
|
|
559
|
-
let heartbeatDuringQmd = false;
|
|
560
|
-
let qmdUpdated = false;
|
|
561
|
-
const countHeartbeats = () => stdout
|
|
562
|
-
.flatMap((chunk) => chunk.split("\n"))
|
|
563
|
-
.filter(Boolean)
|
|
564
|
-
.map((line) => JSON.parse(line))
|
|
565
|
-
.filter((event) => event.type === "maintenance-progress").length;
|
|
566
|
-
try {
|
|
567
|
-
const code = await runRunnerWithLoop(["--companies", "--watch", "--hq-root", "/tmp/hq"], {
|
|
568
|
-
acquireWatchOwnerLease: acquireLease,
|
|
569
|
-
idleHeartbeatIntervalMs: 10,
|
|
570
|
-
stdout: { write: (chunk) => { stdout.push(chunk); return true; } },
|
|
571
|
-
sleep: () => new Promise(() => { }),
|
|
572
|
-
onShutdownSignal: (handler) => {
|
|
573
|
-
triggerShutdown = handler;
|
|
574
|
-
return () => { };
|
|
575
|
-
},
|
|
576
|
-
runPassSupportsQmdLifecycle: true,
|
|
577
|
-
runPass: async (_argv, _checkpoint, _onJournals, _onUpserts, _priority, qmdSignal, qmdHeartbeat, qmdHeartbeatIntervalMs) => {
|
|
578
|
-
const result = await reindexAfterSync("/tmp/hq", {
|
|
579
|
-
signal: qmdSignal,
|
|
580
|
-
onHeartbeat: qmdHeartbeat,
|
|
581
|
-
heartbeatIntervalMs: qmdHeartbeatIntervalMs,
|
|
582
|
-
statePath: path.join(dir, "qmd-state.json"),
|
|
583
|
-
changedPaths: ["companies/acme/knowledge/note.md"],
|
|
584
|
-
debounceMs: 0,
|
|
585
|
-
existsSync: (candidate) => candidate === path.join("/tmp/hq", "core", "core.yaml"),
|
|
586
|
-
readCompanies: () => [],
|
|
587
|
-
acquireReindexLock: () => ({ release() { } }),
|
|
588
|
-
exec: async (args) => {
|
|
589
|
-
if (args[0] === "update") {
|
|
590
|
-
const before = countHeartbeats();
|
|
591
|
-
await vi.advanceTimersByTimeAsync(35);
|
|
592
|
-
heartbeatDuringQmd = countHeartbeats() > before;
|
|
593
|
-
}
|
|
594
|
-
return { status: 0, stdout: "" };
|
|
595
|
-
},
|
|
596
|
-
});
|
|
597
|
-
qmdUpdated = result.updated;
|
|
598
|
-
shutdown();
|
|
599
|
-
return 0;
|
|
600
|
-
},
|
|
601
|
-
});
|
|
602
|
-
expect(code).toBe(0);
|
|
603
|
-
expect(qmdUpdated).toBe(true);
|
|
604
|
-
expect(heartbeatDuringQmd).toBe(true);
|
|
605
|
-
}
|
|
606
|
-
finally {
|
|
607
|
-
shutdown();
|
|
608
|
-
vi.clearAllTimers();
|
|
609
|
-
vi.useRealTimers();
|
|
610
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
it("does not heartbeat during a pass that remains pending without qmd", async () => {
|
|
614
|
-
vi.useFakeTimers();
|
|
615
|
-
const stdout = [];
|
|
616
|
-
let triggerShutdown = (_signal) => { };
|
|
617
|
-
let shutdownTriggered = false;
|
|
618
|
-
const shutdown = () => {
|
|
619
|
-
if (shutdownTriggered)
|
|
620
|
-
return;
|
|
621
|
-
shutdownTriggered = true;
|
|
622
|
-
triggerShutdown("SIGTERM");
|
|
623
|
-
};
|
|
624
|
-
let releasePass = () => { };
|
|
625
|
-
let loop = null;
|
|
626
|
-
let runPassStarted = () => { };
|
|
627
|
-
const passStarted = new Promise((resolve) => {
|
|
628
|
-
runPassStarted = resolve;
|
|
629
|
-
});
|
|
630
|
-
const countHeartbeats = () => stdout
|
|
631
|
-
.flatMap((chunk) => chunk.split("\n"))
|
|
632
|
-
.filter(Boolean)
|
|
633
|
-
.map((line) => JSON.parse(line))
|
|
634
|
-
.filter((event) => event.type === "maintenance-progress").length;
|
|
635
|
-
try {
|
|
636
|
-
loop = runRunnerWithLoop(["--companies", "--watch", "--hq-root", "/tmp/hq"], {
|
|
637
|
-
acquireWatchOwnerLease: acquireLease,
|
|
638
|
-
idleHeartbeatIntervalMs: 10,
|
|
639
|
-
stdout: { write: (chunk) => { stdout.push(chunk); return true; } },
|
|
640
|
-
sleep: () => new Promise(() => { }),
|
|
641
|
-
onShutdownSignal: (handler) => {
|
|
642
|
-
triggerShutdown = handler;
|
|
643
|
-
return () => { };
|
|
644
|
-
},
|
|
645
|
-
runPass: async () => {
|
|
646
|
-
runPassStarted();
|
|
647
|
-
await new Promise((resolve) => { releasePass = resolve; });
|
|
648
|
-
return 0;
|
|
649
|
-
},
|
|
650
|
-
});
|
|
651
|
-
await passStarted;
|
|
652
|
-
await vi.advanceTimersByTimeAsync(50);
|
|
653
|
-
expect(countHeartbeats()).toBe(0);
|
|
654
|
-
shutdown();
|
|
655
|
-
releasePass();
|
|
656
|
-
await expect(loop).resolves.toBe(0);
|
|
657
|
-
}
|
|
658
|
-
finally {
|
|
659
|
-
shutdown();
|
|
660
|
-
releasePass();
|
|
661
|
-
if (loop)
|
|
662
|
-
await loop.catch(() => undefined);
|
|
663
|
-
vi.clearAllTimers();
|
|
664
|
-
vi.useRealTimers();
|
|
665
|
-
}
|
|
666
|
-
});
|
|
667
|
-
it("aborts an in-flight qmd command on SIGTERM and preserves pending-dirty state", async () => {
|
|
668
|
-
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "hq-qmd-shutdown-"));
|
|
669
|
-
const stdout = [];
|
|
670
|
-
let triggerShutdown = (_signal) => { };
|
|
671
|
-
let shutdownTriggered = false;
|
|
672
|
-
const shutdown = () => {
|
|
673
|
-
if (shutdownTriggered)
|
|
674
|
-
return;
|
|
675
|
-
shutdownTriggered = true;
|
|
676
|
-
triggerShutdown("SIGTERM");
|
|
677
|
-
};
|
|
678
|
-
let signalDelivered = false;
|
|
679
|
-
let observedAbort = () => { };
|
|
680
|
-
const updateStarted = new Promise((resolve) => {
|
|
681
|
-
observedAbort = resolve;
|
|
682
|
-
});
|
|
683
|
-
const statePath = path.join(dir, "qmd-state.json");
|
|
684
|
-
try {
|
|
685
|
-
const loop = runRunnerWithLoop(["--companies", "--watch", "--hq-root", "/tmp/hq"], {
|
|
686
|
-
acquireWatchOwnerLease: acquireLease,
|
|
687
|
-
idleHeartbeatIntervalMs: 10,
|
|
688
|
-
stdout: { write: (chunk) => { stdout.push(chunk); return true; } },
|
|
689
|
-
sleep: () => new Promise(() => { }),
|
|
690
|
-
onShutdownSignal: (handler) => {
|
|
691
|
-
triggerShutdown = handler;
|
|
692
|
-
return () => { };
|
|
693
|
-
},
|
|
694
|
-
runPassSupportsQmdLifecycle: true,
|
|
695
|
-
runPass: async (_argv, _checkpoint, _onJournals, _onUpserts, _priority, qmdSignal) => {
|
|
696
|
-
await reindexAfterSync("/tmp/hq", {
|
|
697
|
-
signal: qmdSignal,
|
|
698
|
-
statePath,
|
|
699
|
-
changedPaths: ["companies/acme/knowledge/note.md"],
|
|
700
|
-
debounceMs: 0,
|
|
701
|
-
existsSync: (candidate) => candidate === path.join("/tmp/hq", "core", "core.yaml"),
|
|
702
|
-
readCompanies: () => [],
|
|
703
|
-
acquireReindexLock: () => ({ release() { } }),
|
|
704
|
-
exec: async (args, options) => {
|
|
705
|
-
if (args[0] === "update") {
|
|
706
|
-
observedAbort();
|
|
707
|
-
await new Promise((resolve) => {
|
|
708
|
-
options?.signal?.addEventListener("abort", () => {
|
|
709
|
-
signalDelivered = true;
|
|
710
|
-
resolve({ status: null, stdout: "", stderr: "" });
|
|
711
|
-
}, { once: true });
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
return { status: 0, stdout: "" };
|
|
715
|
-
},
|
|
716
|
-
});
|
|
717
|
-
return 0;
|
|
718
|
-
},
|
|
719
|
-
});
|
|
720
|
-
await updateStarted;
|
|
721
|
-
shutdown();
|
|
722
|
-
await expect(loop).resolves.toBe(0);
|
|
723
|
-
expect(signalDelivered).toBe(true);
|
|
724
|
-
expect(JSON.parse(fs.readFileSync(statePath, "utf8"))).toMatchObject({
|
|
725
|
-
pendingDirty: true,
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
finally {
|
|
729
|
-
shutdown();
|
|
730
|
-
fs.rmSync(dir, { recursive: true, force: true });
|
|
731
|
-
}
|
|
732
|
-
});
|
|
733
|
-
});
|
|
734
|
-
//# sourceMappingURL=sync-runner-watch-loop.test.js.map
|