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