@lumenflow/core 4.23.0 → 5.0.0
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/arg-parser.d.ts.map +1 -1
- package/dist/arg-parser.js +16 -0
- package/dist/arg-parser.js.map +1 -1
- package/dist/atomic-merge.d.ts.map +1 -1
- package/dist/atomic-merge.js +25 -18
- package/dist/atomic-merge.js.map +1 -1
- package/dist/client-ids.d.ts +1 -15
- package/dist/client-ids.d.ts.map +1 -1
- package/dist/client-ids.js +4 -13
- package/dist/client-ids.js.map +1 -1
- package/dist/code-path-validator.d.ts.map +1 -1
- package/dist/code-path-validator.js +6 -3
- package/dist/code-path-validator.js.map +1 -1
- package/dist/config-contract.d.ts +1 -30
- package/dist/config-contract.d.ts.map +1 -1
- package/dist/config-contract.js +4 -60
- package/dist/config-contract.js.map +1 -1
- package/dist/constants/backlog-patterns.d.ts +1 -20
- package/dist/constants/backlog-patterns.d.ts.map +1 -1
- package/dist/constants/backlog-patterns.js +2 -23
- package/dist/constants/backlog-patterns.js.map +1 -1
- package/dist/constants/dora-constants.d.ts +19 -2
- package/dist/constants/dora-constants.d.ts.map +1 -1
- package/dist/constants/dora-constants.js +20 -2
- package/dist/constants/dora-constants.js.map +1 -1
- package/dist/constants/duration-constants.d.ts +1 -28
- package/dist/constants/duration-constants.d.ts.map +1 -1
- package/dist/constants/duration-constants.js +4 -28
- package/dist/constants/duration-constants.js.map +1 -1
- package/dist/constants/gate-constants.d.ts +1 -23
- package/dist/constants/gate-constants.d.ts.map +1 -1
- package/dist/constants/gate-constants.js +4 -23
- package/dist/constants/gate-constants.js.map +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/lock-constants.d.ts +1 -28
- package/dist/constants/lock-constants.d.ts.map +1 -1
- package/dist/constants/lock-constants.js +2 -28
- package/dist/constants/lock-constants.js.map +1 -1
- package/dist/core/tool.schemas.d.ts +11 -11
- package/dist/core/worktree-guard.js +2 -2
- package/dist/core/worktree-guard.js.map +1 -1
- package/dist/cycle-detector.d.ts +4 -48
- package/dist/cycle-detector.d.ts.map +1 -1
- package/dist/cycle-detector.js +4 -78
- package/dist/cycle-detector.js.map +1 -1
- package/dist/date-utils.d.ts +1 -65
- package/dist/date-utils.d.ts.map +1 -1
- package/dist/date-utils.js +4 -140
- package/dist/date-utils.js.map +1 -1
- package/dist/delegation-monitor.d.ts +2 -0
- package/dist/delegation-monitor.d.ts.map +1 -1
- package/dist/delegation-monitor.js +29 -2
- package/dist/delegation-monitor.js.map +1 -1
- package/dist/delegation-recovery.d.ts +36 -17
- package/dist/delegation-recovery.d.ts.map +1 -1
- package/dist/delegation-recovery.js +285 -82
- package/dist/delegation-recovery.js.map +1 -1
- package/dist/delegation-registry-schema.d.ts +257 -31
- package/dist/delegation-registry-schema.d.ts.map +1 -1
- package/dist/delegation-registry-schema.js +43 -34
- package/dist/delegation-registry-schema.js.map +1 -1
- package/dist/delegation-registry-store.d.ts +4 -128
- package/dist/delegation-registry-store.d.ts.map +1 -1
- package/dist/delegation-registry-store.js +39 -178
- package/dist/delegation-registry-store.js.map +1 -1
- package/dist/delegation-tree.d.ts +12 -20
- package/dist/delegation-tree.d.ts.map +1 -1
- package/dist/delegation-tree.js +40 -29
- package/dist/delegation-tree.js.map +1 -1
- package/dist/delivery-review-contract.d.ts +1 -1
- package/dist/delivery-review-contract.d.ts.map +1 -1
- package/dist/docs-layout-presets.d.ts +1 -30
- package/dist/docs-layout-presets.d.ts.map +1 -1
- package/dist/docs-layout-presets.js +4 -38
- package/dist/docs-layout-presets.js.map +1 -1
- package/dist/domain/context.schemas.d.ts +3 -3
- package/dist/domain/orchestration.constants.d.ts +1 -110
- package/dist/domain/orchestration.constants.d.ts.map +1 -1
- package/dist/domain/orchestration.constants.js +2 -127
- package/dist/domain/orchestration.constants.js.map +1 -1
- package/dist/domain/orchestration.schemas.d.ts +1 -306
- package/dist/domain/orchestration.schemas.d.ts.map +1 -1
- package/dist/domain/orchestration.schemas.js +2 -211
- package/dist/domain/orchestration.schemas.js.map +1 -1
- package/dist/domain/orchestration.types.d.ts +1 -133
- package/dist/domain/orchestration.types.d.ts.map +1 -1
- package/dist/domain/orchestration.types.js +2 -2
- package/dist/domain/orchestration.types.js.map +1 -1
- package/dist/domain/recovery.schemas.d.ts +3 -3
- package/dist/domain/validation.schemas.d.ts +4 -4
- package/dist/error-handler.d.ts +4 -173
- package/dist/error-handler.d.ts.map +1 -1
- package/dist/error-handler.js +4 -244
- package/dist/error-handler.js.map +1 -1
- package/dist/file-classifiers.d.ts.map +1 -1
- package/dist/file-classifiers.js +26 -0
- package/dist/file-classifiers.js.map +1 -1
- package/dist/git-adapter.d.ts +4 -448
- package/dist/git-adapter.d.ts.map +1 -1
- package/dist/git-adapter.js +4 -772
- package/dist/git-adapter.js.map +1 -1
- package/dist/git-context-extractor.d.ts +4 -98
- package/dist/git-context-extractor.d.ts.map +1 -1
- package/dist/git-context-extractor.js +4 -563
- package/dist/git-context-extractor.js.map +1 -1
- package/dist/git-staged-validator.d.ts +4 -29
- package/dist/git-staged-validator.d.ts.map +1 -1
- package/dist/git-staged-validator.js +4 -46
- package/dist/git-staged-validator.js.map +1 -1
- package/dist/incremental-lint.d.ts.map +1 -1
- package/dist/incremental-lint.js +3 -2
- package/dist/incremental-lint.js.map +1 -1
- package/dist/incremental-test.d.ts +1 -32
- package/dist/incremental-test.d.ts.map +1 -1
- package/dist/incremental-test.js +4 -61
- package/dist/incremental-test.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/integration-target.d.ts +30 -0
- package/dist/integration-target.d.ts.map +1 -0
- package/dist/integration-target.js +51 -0
- package/dist/integration-target.js.map +1 -0
- package/dist/lane-checker.d.ts.map +1 -1
- package/dist/lane-checker.js +8 -0
- package/dist/lane-checker.js.map +1 -1
- package/dist/lumenflow-config-schema.d.ts +73 -29
- package/dist/lumenflow-config-schema.d.ts.map +1 -1
- package/dist/lumenflow-config-schema.js +1 -1
- package/dist/lumenflow-config-schema.js.map +1 -1
- package/dist/lumenflow-config.d.ts +10 -34
- package/dist/lumenflow-config.d.ts.map +1 -1
- package/dist/lumenflow-config.js +32 -142
- package/dist/lumenflow-config.js.map +1 -1
- package/dist/manual-test-validator.d.ts +1 -96
- package/dist/manual-test-validator.d.ts.map +1 -1
- package/dist/manual-test-validator.js +4 -245
- package/dist/manual-test-validator.js.map +1 -1
- package/dist/micro-worktree-shared.d.ts.map +1 -1
- package/dist/micro-worktree-shared.js +10 -9
- package/dist/micro-worktree-shared.js.map +1 -1
- package/dist/micro-worktree.d.ts.map +1 -1
- package/dist/micro-worktree.js +26 -23
- package/dist/micro-worktree.js.map +1 -1
- package/dist/normalize-config-keys.d.ts +1 -10
- package/dist/normalize-config-keys.d.ts.map +1 -1
- package/dist/normalize-config-keys.js +7 -73
- package/dist/normalize-config-keys.js.map +1 -1
- package/dist/object-guards.d.ts +1 -10
- package/dist/object-guards.d.ts.map +1 -1
- package/dist/object-guards.js +7 -20
- package/dist/object-guards.js.map +1 -1
- package/dist/ports/config.ports.d.ts +1 -82
- package/dist/ports/config.ports.d.ts.map +1 -1
- package/dist/ports/config.ports.js +2 -1
- package/dist/ports/config.ports.js.map +1 -1
- package/dist/ports/dashboard-renderer.port.d.ts +1 -112
- package/dist/ports/dashboard-renderer.port.d.ts.map +1 -1
- package/dist/ports/dashboard-renderer.port.js +2 -1
- package/dist/ports/dashboard-renderer.port.js.map +1 -1
- package/dist/ports/git-validator.ports.d.ts +5 -110
- package/dist/ports/git-validator.ports.d.ts.map +1 -1
- package/dist/ports/git-validator.ports.js +8 -1
- package/dist/ports/git-validator.ports.js.map +1 -1
- package/dist/ports/sync-validator.ports.d.ts +1 -51
- package/dist/ports/sync-validator.ports.d.ts.map +1 -1
- package/dist/ports/sync-validator.ports.js +2 -1
- package/dist/ports/sync-validator.ports.js.map +1 -1
- package/dist/ports/wu-helpers.ports.d.ts +1 -156
- package/dist/ports/wu-helpers.ports.d.ts.map +1 -1
- package/dist/ports/wu-helpers.ports.js +2 -1
- package/dist/ports/wu-helpers.ports.js.map +1 -1
- package/dist/ports/wu-state.ports.d.ts +1 -208
- package/dist/ports/wu-state.ports.d.ts.map +1 -1
- package/dist/ports/wu-state.ports.js +2 -1
- package/dist/ports/wu-state.ports.js.map +1 -1
- package/dist/rebase-artifact-cleanup.d.ts.map +1 -1
- package/dist/rebase-artifact-cleanup.js +6 -3
- package/dist/rebase-artifact-cleanup.js.map +1 -1
- package/dist/sandbox-allowlist.d.ts +1 -15
- package/dist/sandbox-allowlist.d.ts.map +1 -1
- package/dist/sandbox-allowlist.js +4 -74
- package/dist/sandbox-allowlist.js.map +1 -1
- package/dist/sandbox-backend-linux.d.ts +1 -5
- package/dist/sandbox-backend-linux.d.ts.map +1 -1
- package/dist/sandbox-backend-linux.js +4 -64
- package/dist/sandbox-backend-linux.js.map +1 -1
- package/dist/sandbox-backend-macos.d.ts +1 -5
- package/dist/sandbox-backend-macos.d.ts.map +1 -1
- package/dist/sandbox-backend-macos.js +4 -109
- package/dist/sandbox-backend-macos.js.map +1 -1
- package/dist/sandbox-backend-windows.d.ts +1 -5
- package/dist/sandbox-backend-windows.d.ts.map +1 -1
- package/dist/sandbox-backend-windows.js +4 -27
- package/dist/sandbox-backend-windows.js.map +1 -1
- package/dist/sandbox-profile.d.ts +1 -57
- package/dist/sandbox-profile.d.ts.map +1 -1
- package/dist/sandbox-profile.js +4 -65
- package/dist/sandbox-profile.js.map +1 -1
- package/dist/schemas/agents-config.d.ts +47 -0
- package/dist/schemas/agents-config.d.ts.map +1 -1
- package/dist/schemas/agents-config.js +59 -0
- package/dist/schemas/agents-config.js.map +1 -1
- package/dist/schemas/command-schemas.d.ts +4 -4
- package/dist/schemas/flow-arg-validators.d.ts +2 -2
- package/dist/schemas/flow-schemas.d.ts +4 -4
- package/dist/schemas/gates-section-config.d.ts +32 -13
- package/dist/schemas/gates-section-config.d.ts.map +1 -1
- package/dist/schemas/gates-section-config.js +16 -1
- package/dist/schemas/gates-section-config.js.map +1 -1
- package/dist/schemas/initiative-arg-validators.d.ts +2 -2
- package/dist/schemas/initiative-schemas.d.ts +12 -12
- package/dist/schemas/lanes-config.d.ts +5 -5
- package/dist/schemas/memory-arg-validators.d.ts +6 -0
- package/dist/schemas/memory-arg-validators.d.ts.map +1 -1
- package/dist/schemas/memory-config.d.ts +4 -4
- package/dist/schemas/memory-schemas.d.ts +12 -0
- package/dist/schemas/memory-schemas.d.ts.map +1 -1
- package/dist/schemas/memory-schemas.js +12 -0
- package/dist/schemas/memory-schemas.js.map +1 -1
- package/dist/schemas/operational-config.d.ts +4 -4
- package/dist/schemas/setup-arg-validators.d.ts +3 -3
- package/dist/schemas/setup-schemas.d.ts +8 -8
- package/dist/schemas/wu-config.d.ts +3 -3
- package/dist/schemas/wu-lifecycle-arg-validators.d.ts +2 -2
- package/dist/schemas/wu-lifecycle-schemas.d.ts +4 -4
- package/dist/section-headings.d.ts +1 -34
- package/dist/section-headings.d.ts.map +1 -1
- package/dist/section-headings.js +2 -51
- package/dist/section-headings.js.map +1 -1
- package/dist/spawn-constraints-generator.js +3 -3
- package/dist/spawn-constraints-generator.js.map +1 -1
- package/dist/spawn-guidance-generators.d.ts +1 -1
- package/dist/spawn-guidance-generators.d.ts.map +1 -1
- package/dist/spawn-policy-resolver.d.ts +1 -1
- package/dist/spawn-policy-resolver.d.ts.map +1 -1
- package/dist/spawn-task-builder.d.ts +17 -1
- package/dist/spawn-task-builder.d.ts.map +1 -1
- package/dist/spawn-task-builder.js +63 -1
- package/dist/spawn-task-builder.js.map +1 -1
- package/dist/spawn-template-assembler.d.ts +1 -1
- package/dist/spawn-template-assembler.d.ts.map +1 -1
- package/dist/state-machine.d.ts +1 -9
- package/dist/state-machine.d.ts.map +1 -1
- package/dist/state-machine.js +2 -86
- package/dist/state-machine.js.map +1 -1
- package/dist/sync-validator.d.ts.map +1 -1
- package/dist/sync-validator.js +15 -12
- package/dist/sync-validator.js.map +1 -1
- package/dist/telemetry.d.ts +20 -6
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +27 -6
- package/dist/telemetry.js.map +1 -1
- package/dist/work-classifier.d.ts +1 -102
- package/dist/work-classifier.d.ts.map +1 -1
- package/dist/work-classifier.js +2 -424
- package/dist/work-classifier.js.map +1 -1
- package/dist/worktree-symlink.d.ts +2 -2
- package/dist/worktree-symlink.d.ts.map +1 -1
- package/dist/worktree-symlink.js +37 -12
- package/dist/worktree-symlink.js.map +1 -1
- package/dist/wu-cli-constants.d.ts +1 -433
- package/dist/wu-cli-constants.d.ts.map +1 -1
- package/dist/wu-cli-constants.js +4 -436
- package/dist/wu-cli-constants.js.map +1 -1
- package/dist/wu-consistency-file-repairs.d.ts.map +1 -1
- package/dist/wu-consistency-file-repairs.js +5 -3
- package/dist/wu-consistency-file-repairs.js.map +1 -1
- package/dist/wu-context-constants.d.ts +22 -0
- package/dist/wu-context-constants.d.ts.map +1 -1
- package/dist/wu-context-constants.js +22 -0
- package/dist/wu-context-constants.js.map +1 -1
- package/dist/wu-doc-types.d.ts +1 -47
- package/dist/wu-doc-types.d.ts.map +1 -1
- package/dist/wu-domain-constants.d.ts +1 -295
- package/dist/wu-domain-constants.d.ts.map +1 -1
- package/dist/wu-domain-constants.js +4 -397
- package/dist/wu-domain-constants.js.map +1 -1
- package/dist/wu-done-branch-only.d.ts +1 -1
- package/dist/wu-done-branch-only.d.ts.map +1 -1
- package/dist/wu-done-branch-only.js +22 -13
- package/dist/wu-done-branch-only.js.map +1 -1
- package/dist/wu-done-branch-utils.d.ts.map +1 -1
- package/dist/wu-done-branch-utils.js +5 -3
- package/dist/wu-done-branch-utils.js.map +1 -1
- package/dist/wu-done-cleanup.d.ts.map +1 -1
- package/dist/wu-done-cleanup.js +66 -22
- package/dist/wu-done-cleanup.js.map +1 -1
- package/dist/wu-done-concurrent-merge.d.ts.map +1 -1
- package/dist/wu-done-concurrent-merge.js +9 -6
- package/dist/wu-done-concurrent-merge.js.map +1 -1
- package/dist/wu-done-errors.d.ts +3 -3
- package/dist/wu-done-errors.d.ts.map +1 -1
- package/dist/wu-done-inputs.d.ts.map +1 -1
- package/dist/wu-done-inputs.js +3 -0
- package/dist/wu-done-inputs.js.map +1 -1
- package/dist/wu-done-merge-phase.d.ts.map +1 -1
- package/dist/wu-done-merge-phase.js +4 -2
- package/dist/wu-done-merge-phase.js.map +1 -1
- package/dist/wu-done-merge.d.ts.map +1 -1
- package/dist/wu-done-merge.js +16 -8
- package/dist/wu-done-merge.js.map +1 -1
- package/dist/wu-done-merged-worktree.d.ts.map +1 -1
- package/dist/wu-done-merged-worktree.js +7 -8
- package/dist/wu-done-merged-worktree.js.map +1 -1
- package/dist/wu-done-messages.d.ts.map +1 -1
- package/dist/wu-done-messages.js +12 -5
- package/dist/wu-done-messages.js.map +1 -1
- package/dist/wu-done-metadata.d.ts.map +1 -1
- package/dist/wu-done-metadata.js +3 -8
- package/dist/wu-done-metadata.js.map +1 -1
- package/dist/wu-done-preflight-checks.d.ts.map +1 -1
- package/dist/wu-done-preflight-checks.js +21 -15
- package/dist/wu-done-preflight-checks.js.map +1 -1
- package/dist/wu-done-rebase.d.ts.map +1 -1
- package/dist/wu-done-rebase.js +10 -8
- package/dist/wu-done-rebase.js.map +1 -1
- package/dist/wu-done-retry-helpers.d.ts.map +1 -1
- package/dist/wu-done-retry-helpers.js +13 -11
- package/dist/wu-done-retry-helpers.js.map +1 -1
- package/dist/wu-done-validation.d.ts.map +1 -1
- package/dist/wu-done-validation.js +4 -2
- package/dist/wu-done-validation.js.map +1 -1
- package/dist/wu-done-worktree-services.d.ts.map +1 -1
- package/dist/wu-done-worktree-services.js +4 -2
- package/dist/wu-done-worktree-services.js.map +1 -1
- package/dist/wu-done-worktree.d.ts.map +1 -1
- package/dist/wu-done-worktree.js +4 -2
- package/dist/wu-done-worktree.js.map +1 -1
- package/dist/wu-git-constants.d.ts +1 -175
- package/dist/wu-git-constants.d.ts.map +1 -1
- package/dist/wu-git-constants.js +4 -175
- package/dist/wu-git-constants.js.map +1 -1
- package/dist/wu-helpers.d.ts +24 -0
- package/dist/wu-helpers.d.ts.map +1 -1
- package/dist/wu-helpers.js +37 -4
- package/dist/wu-helpers.js.map +1 -1
- package/dist/wu-id-format.d.ts +1 -137
- package/dist/wu-id-format.d.ts.map +1 -1
- package/dist/wu-id-format.js +2 -249
- package/dist/wu-id-format.js.map +1 -1
- package/dist/wu-id-generator.d.ts.map +1 -1
- package/dist/wu-id-generator.js +8 -5
- package/dist/wu-id-generator.js.map +1 -1
- package/dist/wu-paths-constants.d.ts +1 -253
- package/dist/wu-paths-constants.d.ts.map +1 -1
- package/dist/wu-paths-constants.js +4 -273
- package/dist/wu-paths-constants.js.map +1 -1
- package/dist/wu-paths.d.ts +1 -274
- package/dist/wu-paths.d.ts.map +1 -1
- package/dist/wu-paths.js +4 -236
- package/dist/wu-paths.js.map +1 -1
- package/dist/wu-rules-resolvers.d.ts.map +1 -1
- package/dist/wu-rules-resolvers.js +11 -6
- package/dist/wu-rules-resolvers.js.map +1 -1
- package/dist/wu-schema.d.ts +1 -830
- package/dist/wu-schema.d.ts.map +1 -1
- package/dist/wu-schema.js +4 -929
- package/dist/wu-schema.js.map +1 -1
- package/dist/wu-spawn-helpers.d.ts.map +1 -1
- package/dist/wu-spawn-helpers.js +5 -2
- package/dist/wu-spawn-helpers.js.map +1 -1
- package/dist/wu-spawn.d.ts +2 -2
- package/dist/wu-spawn.d.ts.map +1 -1
- package/dist/wu-spawn.js +2 -2
- package/dist/wu-spawn.js.map +1 -1
- package/dist/wu-state-schema.d.ts +1 -291
- package/dist/wu-state-schema.d.ts.map +1 -1
- package/dist/wu-state-schema.js +4 -212
- package/dist/wu-state-schema.js.map +1 -1
- package/dist/wu-status-transition.d.ts +3 -1
- package/dist/wu-status-transition.d.ts.map +1 -1
- package/dist/wu-status-transition.js +9 -24
- package/dist/wu-status-transition.js.map +1 -1
- package/dist/wu-statuses.d.ts +1 -208
- package/dist/wu-statuses.d.ts.map +1 -1
- package/dist/wu-statuses.js +4 -242
- package/dist/wu-statuses.js.map +1 -1
- package/dist/wu-transaction-collectors.d.ts +1 -0
- package/dist/wu-transaction-collectors.d.ts.map +1 -1
- package/dist/wu-transaction-collectors.js +13 -8
- package/dist/wu-transaction-collectors.js.map +1 -1
- package/dist/wu-type-helpers.d.ts +1 -27
- package/dist/wu-type-helpers.d.ts.map +1 -1
- package/dist/wu-type-helpers.js +4 -46
- package/dist/wu-type-helpers.js.map +1 -1
- package/dist/wu-ui-constants.d.ts +1 -235
- package/dist/wu-ui-constants.d.ts.map +1 -1
- package/dist/wu-ui-constants.js +5 -235
- package/dist/wu-ui-constants.js.map +1 -1
- package/dist/wu-validation-constants.d.ts +1 -60
- package/dist/wu-validation-constants.d.ts.map +1 -1
- package/dist/wu-validation-constants.js +4 -66
- package/dist/wu-validation-constants.js.map +1 -1
- package/dist/wu-yaml.d.ts +1 -112
- package/dist/wu-yaml.d.ts.map +1 -1
- package/dist/wu-yaml.js +4 -304
- package/dist/wu-yaml.js.map +1 -1
- package/package.json +12 -9
- package/dist/coverage-gate.d.ts +0 -128
- package/dist/coverage-gate.d.ts.map +0 -1
- package/dist/coverage-gate.js +0 -211
- package/dist/coverage-gate.js.map +0 -1
- package/dist/gates-agent-mode.d.ts +0 -108
- package/dist/gates-agent-mode.d.ts.map +0 -1
- package/dist/gates-agent-mode.js +0 -138
- package/dist/gates-agent-mode.js.map +0 -1
- package/dist/gates-config-internal.d.ts +0 -54
- package/dist/gates-config-internal.d.ts.map +0 -1
- package/dist/gates-config-internal.js +0 -107
- package/dist/gates-config-internal.js.map +0 -1
- package/dist/gates-config.d.ts +0 -68
- package/dist/gates-config.d.ts.map +0 -1
- package/dist/gates-config.js +0 -193
- package/dist/gates-config.js.map +0 -1
- package/dist/gates-coverage.d.ts +0 -42
- package/dist/gates-coverage.d.ts.map +0 -1
- package/dist/gates-coverage.js +0 -162
- package/dist/gates-coverage.js.map +0 -1
- package/dist/gates-presets.d.ts +0 -52
- package/dist/gates-presets.d.ts.map +0 -1
- package/dist/gates-presets.js +0 -117
- package/dist/gates-presets.js.map +0 -1
- package/dist/gates-schemas.d.ts +0 -143
- package/dist/gates-schemas.d.ts.map +0 -1
- package/dist/gates-schemas.js +0 -67
- package/dist/gates-schemas.js.map +0 -1
- package/dist/package-manager-resolver.d.ts +0 -80
- package/dist/package-manager-resolver.d.ts.map +0 -1
- package/dist/package-manager-resolver.js +0 -245
- package/dist/package-manager-resolver.js.map +0 -1
- package/dist/resolve-policy.d.ts +0 -293
- package/dist/resolve-policy.d.ts.map +0 -1
- package/dist/resolve-policy.js +0 -303
- package/dist/resolve-policy.js.map +0 -1
|
@@ -1,115 +1,10 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
2
|
/**
|
|
3
|
-
* Git Validator Ports
|
|
3
|
+
* Git Validator Ports — Re-export shim (ADR-012, INIT-058 Layer 4b, WU-2682).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* These abstractions allow dependency injection and contract-based testing.
|
|
9
|
-
*
|
|
10
|
-
* @module ports/git-validator
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Push command options.
|
|
14
|
-
*/
|
|
15
|
-
export interface PushOptions {
|
|
16
|
-
/** Set upstream tracking (equivalent to git push -u). */
|
|
17
|
-
setUpstream?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Merge command options.
|
|
21
|
-
*/
|
|
22
|
-
export interface MergeOptions {
|
|
23
|
-
/** Require fast-forward-only merge. */
|
|
24
|
-
ffOnly?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Worktree removal options.
|
|
28
|
-
*/
|
|
29
|
-
export interface WorktreeRemoveOptions {
|
|
30
|
-
/** Force removal when worktree has uncommitted changes. */
|
|
31
|
-
force?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Branch deletion options.
|
|
35
|
-
*/
|
|
36
|
-
export interface DeleteBranchOptions {
|
|
37
|
-
/** Force-delete branch (equivalent to git branch -D). */
|
|
38
|
-
force?: boolean;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Reset command options.
|
|
42
|
-
*/
|
|
43
|
-
export interface ResetOptions {
|
|
44
|
-
/** Perform hard reset (equivalent to git reset --hard). */
|
|
45
|
-
hard?: boolean;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Log command options.
|
|
49
|
-
*/
|
|
50
|
-
export interface LogOptions {
|
|
51
|
-
/** Maximum number of commits to return. */
|
|
52
|
-
maxCount?: number;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Minimal merge result contract.
|
|
56
|
-
*/
|
|
57
|
-
export interface MergeResult {
|
|
58
|
-
/** True when merge completed successfully. */
|
|
59
|
-
success: boolean;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Minimal git log entry contract.
|
|
63
|
-
*/
|
|
64
|
-
export interface GitLogEntry {
|
|
65
|
-
hash: string;
|
|
66
|
-
message: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Minimal git log result contract.
|
|
70
|
-
*/
|
|
71
|
-
export interface GitLogResult {
|
|
72
|
-
all: GitLogEntry[];
|
|
73
|
-
total: number;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Git adapter contract used by validator and lifecycle workflows.
|
|
77
|
-
*
|
|
78
|
-
* Note: Keep this aligned with `GitAdapter` public methods.
|
|
5
|
+
* Moved to `@lumenflow/host/git/git-validator.ports` alongside its sole
|
|
6
|
+
* implementation (`GitAdapter`). Shim preserves the legacy import path for
|
|
7
|
+
* in-repo consumers until the barrel slim in Layer 7.
|
|
79
8
|
*/
|
|
80
|
-
export
|
|
81
|
-
getCurrentBranch(): Promise<string>;
|
|
82
|
-
getStatus(): Promise<string>;
|
|
83
|
-
getUnpushedCommits(): Promise<string>;
|
|
84
|
-
branchExists(branch: string): Promise<boolean>;
|
|
85
|
-
remoteBranchExists(remote: string, branch: string): Promise<boolean>;
|
|
86
|
-
fetch(remote?: string, branch?: string): Promise<void>;
|
|
87
|
-
pull(remote: string, branch: string): Promise<void>;
|
|
88
|
-
getConfigValue(key: string): Promise<string>;
|
|
89
|
-
isClean(): Promise<boolean>;
|
|
90
|
-
add(files: string | string[]): Promise<void>;
|
|
91
|
-
addWithDeletions(files: string[]): Promise<void>;
|
|
92
|
-
commit(message: string): Promise<void>;
|
|
93
|
-
push(remote?: string, branch?: string, options?: PushOptions): Promise<void>;
|
|
94
|
-
pushRefspec(remote: string, localRef: string, remoteRef: string): Promise<void>;
|
|
95
|
-
createBranch(branch: string, startPoint?: string): Promise<void>;
|
|
96
|
-
checkout(branch: string): Promise<void>;
|
|
97
|
-
getCommitHash(ref?: string): Promise<string>;
|
|
98
|
-
merge(branch: string, options?: MergeOptions): Promise<MergeResult>;
|
|
99
|
-
log(options?: LogOptions): Promise<GitLogResult>;
|
|
100
|
-
mergeBase(ref1: string, ref2: string): Promise<string>;
|
|
101
|
-
mergeTree(base: string, ref1: string, ref2: string): Promise<string>;
|
|
102
|
-
revList(args: string[]): Promise<string>;
|
|
103
|
-
worktreeAdd(path: string, branch: string, startPoint?: string): Promise<void>;
|
|
104
|
-
worktreeRemove(worktreePath: string, options?: WorktreeRemoveOptions): Promise<void>;
|
|
105
|
-
worktreeList(): Promise<string>;
|
|
106
|
-
deleteBranch(branch: string, options?: DeleteBranchOptions): Promise<void>;
|
|
107
|
-
createBranchNoCheckout(branch: string, startPoint?: string): Promise<void>;
|
|
108
|
-
worktreeAddExisting(path: string, branch: string): Promise<void>;
|
|
109
|
-
rebase(onto: string): Promise<void>;
|
|
110
|
-
reset(ref?: string, options?: ResetOptions): Promise<void>;
|
|
111
|
-
raw(args: string[]): Promise<string>;
|
|
112
|
-
addWorktree(path: string, branch: string, startPoint?: string): Promise<void>;
|
|
113
|
-
removeWorktree(path: string, options?: WorktreeRemoveOptions): Promise<void>;
|
|
114
|
-
}
|
|
9
|
+
export * from '@lumenflow/host/git/git-validator.ports';
|
|
115
10
|
//# sourceMappingURL=git-validator.ports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-validator.ports.d.ts","sourceRoot":"","sources":["../../src/ports/git-validator.ports.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"git-validator.ports.d.ts","sourceRoot":"","sources":["../../src/ports/git-validator.ports.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,cAAc,yCAAyC,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
// Copyright (c) 2026 Hellmai Ltd
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Git Validator Ports — Re-export shim (ADR-012, INIT-058 Layer 4b, WU-2682).
|
|
5
|
+
*
|
|
6
|
+
* Moved to `@lumenflow/host/git/git-validator.ports` alongside its sole
|
|
7
|
+
* implementation (`GitAdapter`). Shim preserves the legacy import path for
|
|
8
|
+
* in-repo consumers until the barrel slim in Layer 7.
|
|
9
|
+
*/
|
|
10
|
+
export * from '@lumenflow/host/git/git-validator.ports';
|
|
4
11
|
//# sourceMappingURL=git-validator.ports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-validator.ports.js","sourceRoot":"","sources":["../../src/ports/git-validator.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC"}
|
|
1
|
+
{"version":3,"file":"git-validator.ports.js","sourceRoot":"","sources":["../../src/ports/git-validator.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;GAMG;AAEH,cAAc,yCAAyC,CAAC"}
|
|
@@ -1,53 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Sync Validator Port Interfaces
|
|
4
|
-
*
|
|
5
|
-
* Canonical git adapter contract for main-branch sync validation helpers.
|
|
6
|
-
*
|
|
7
|
-
* @module ports/sync-validator
|
|
8
|
-
*/
|
|
9
|
-
import type { IGitAdapter } from './git-validator.ports.js';
|
|
10
|
-
/**
|
|
11
|
-
* Canonical git adapter shape for sync validation operations.
|
|
12
|
-
*/
|
|
13
|
-
export interface ISyncValidatorGitAdapter {
|
|
14
|
-
fetch: IGitAdapter['fetch'];
|
|
15
|
-
getCommitHash: IGitAdapter['getCommitHash'];
|
|
16
|
-
revList: IGitAdapter['revList'];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* WU-2208: Git adapter shape for remote-aware WU ID generation.
|
|
20
|
-
*
|
|
21
|
-
* Extends the sync validator contract with tree listing and file content
|
|
22
|
-
* retrieval at a specific git ref (e.g., origin/main). Designed to
|
|
23
|
-
* accommodate future cloud `allocateWuId()` by keeping the interface
|
|
24
|
-
* narrow and async.
|
|
25
|
-
*/
|
|
26
|
-
export interface IWuIdGitAdapter {
|
|
27
|
-
/** Fetch remote refs (e.g., origin main). */
|
|
28
|
-
fetch: IGitAdapter['fetch'];
|
|
29
|
-
/**
|
|
30
|
-
* List file/directory names at a given ref and tree path.
|
|
31
|
-
*
|
|
32
|
-
* Equivalent to: git ls-tree --name-only <ref> <path>/
|
|
33
|
-
* Returns an array of filenames (not full paths) within the directory.
|
|
34
|
-
* Returns empty array if the path does not exist at the given ref.
|
|
35
|
-
*
|
|
36
|
-
* @param ref - Git ref (e.g., 'origin/main')
|
|
37
|
-
* @param path - Directory path relative to repo root (e.g., 'docs/operations/tasks/wu')
|
|
38
|
-
* @returns Array of filenames in the directory at the given ref
|
|
39
|
-
*/
|
|
40
|
-
listTreeAtRef(ref: string, path: string): Promise<string[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Show a file's content at a given ref.
|
|
43
|
-
*
|
|
44
|
-
* Equivalent to: git show <ref>:<path>
|
|
45
|
-
* Returns empty string if the file does not exist at the given ref.
|
|
46
|
-
*
|
|
47
|
-
* @param ref - Git ref (e.g., 'origin/main')
|
|
48
|
-
* @param path - File path relative to repo root
|
|
49
|
-
* @returns File content as string, or empty string if not found
|
|
50
|
-
*/
|
|
51
|
-
showFileAtRef(ref: string, path: string): Promise<string>;
|
|
52
|
-
}
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/ports/sync-validator.ports';
|
|
53
3
|
//# sourceMappingURL=sync-validator.ports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-validator.ports.d.ts","sourceRoot":"","sources":["../../src/ports/sync-validator.ports.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"sync-validator.ports.d.ts","sourceRoot":"","sources":["../../src/ports/sync-validator.ports.ts"],"names":[],"mappings":"AAGA,cAAc,+DAA+D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-validator.ports.js","sourceRoot":"","sources":["../../src/ports/sync-validator.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC"}
|
|
1
|
+
{"version":3,"file":"sync-validator.ports.js","sourceRoot":"","sources":["../../src/ports/sync-validator.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,+BAA+B;AAC/B,cAAc,+DAA+D,CAAC"}
|
|
@@ -1,158 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* WU Helpers Port Interfaces
|
|
4
|
-
*
|
|
5
|
-
* WU-1102: INIT-003 Phase 2b - Port interfaces for WU helper modules
|
|
6
|
-
*
|
|
7
|
-
* Hexagonal Architecture - Input Ports:
|
|
8
|
-
* These abstractions allow external users to inject custom implementations
|
|
9
|
-
* for WU lifecycle operations.
|
|
10
|
-
*
|
|
11
|
-
* @module ports/wu-helpers
|
|
12
|
-
*/
|
|
13
|
-
import type { ISyncValidatorGitAdapter } from './sync-validator.ports.js';
|
|
14
|
-
/**
|
|
15
|
-
* Git adapter interface for ensureOnMain and ensureMainUpToDate operations
|
|
16
|
-
*/
|
|
17
|
-
export interface IWuGitAdapter extends Pick<ISyncValidatorGitAdapter, 'fetch' | 'getCommitHash'> {
|
|
18
|
-
/**
|
|
19
|
-
* Get the current git branch name
|
|
20
|
-
* @returns Promise resolving to branch name
|
|
21
|
-
*/
|
|
22
|
-
getCurrentBranch(): Promise<string>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* WU status check result
|
|
26
|
-
*/
|
|
27
|
-
export interface IWuStatusCheckResult {
|
|
28
|
-
/** Whether the operation is allowed */
|
|
29
|
-
allowed: boolean;
|
|
30
|
-
/** Current WU status */
|
|
31
|
-
status: string | null;
|
|
32
|
-
/** Error message if not allowed */
|
|
33
|
-
error: string | null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Branch validation result
|
|
37
|
-
*/
|
|
38
|
-
export interface IBranchValidationResult {
|
|
39
|
-
/** Whether the branch name is valid */
|
|
40
|
-
valid: boolean;
|
|
41
|
-
/** Lane name (kebab-case) or null */
|
|
42
|
-
lane: string | null;
|
|
43
|
-
/** WU ID (uppercase) or null */
|
|
44
|
-
wuid: string | null;
|
|
45
|
-
/** Error message if invalid */
|
|
46
|
-
error: string | null;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* WU YAML reader interface
|
|
50
|
-
*/
|
|
51
|
-
export interface IWuYamlReader {
|
|
52
|
-
/**
|
|
53
|
-
* Read and parse WU YAML file
|
|
54
|
-
* @param wuPath - Path to WU YAML file
|
|
55
|
-
* @param expectedId - Expected WU ID for validation
|
|
56
|
-
* @returns Parsed WU document
|
|
57
|
-
*/
|
|
58
|
-
readWU(wuPath: string, expectedId: string): unknown;
|
|
59
|
-
/**
|
|
60
|
-
* Read YAML file without ID validation
|
|
61
|
-
* @param yamlPath - Path to YAML file
|
|
62
|
-
* @returns Parsed document
|
|
63
|
-
*/
|
|
64
|
-
readWURaw(yamlPath: string): unknown;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* WU YAML writer interface
|
|
68
|
-
*/
|
|
69
|
-
export interface IWuYamlWriter {
|
|
70
|
-
/**
|
|
71
|
-
* Write WU document to file
|
|
72
|
-
* @param wuPath - Path to WU YAML file
|
|
73
|
-
* @param doc - Document to write
|
|
74
|
-
*/
|
|
75
|
-
writeWU(wuPath: string, doc: unknown): void;
|
|
76
|
-
}
|
|
77
|
-
export type { IWuStateStore } from './wu-state.ports.js';
|
|
78
|
-
/**
|
|
79
|
-
* WU checkpoint interface
|
|
80
|
-
*/
|
|
81
|
-
export interface IWuCheckpointManager {
|
|
82
|
-
/**
|
|
83
|
-
* Create a pre-gates checkpoint
|
|
84
|
-
*/
|
|
85
|
-
createPreGatesCheckpoint(params: {
|
|
86
|
-
wuId: string;
|
|
87
|
-
worktreePath: string;
|
|
88
|
-
branchName: string;
|
|
89
|
-
gatesPassed?: boolean;
|
|
90
|
-
}, options?: {
|
|
91
|
-
baseDir?: string;
|
|
92
|
-
}): Promise<{
|
|
93
|
-
checkpointId: string;
|
|
94
|
-
gatesPassed: boolean;
|
|
95
|
-
}>;
|
|
96
|
-
/**
|
|
97
|
-
* Mark checkpoint as gates passed
|
|
98
|
-
* @param wuId - WU identifier
|
|
99
|
-
* @returns True if updated
|
|
100
|
-
*/
|
|
101
|
-
markGatesPassed(wuId: string, options?: {
|
|
102
|
-
baseDir?: string;
|
|
103
|
-
}): boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Get checkpoint for a WU
|
|
106
|
-
* @param wuId - WU identifier
|
|
107
|
-
* @returns Checkpoint or null
|
|
108
|
-
*/
|
|
109
|
-
getCheckpoint(wuId: string, options?: {
|
|
110
|
-
baseDir?: string;
|
|
111
|
-
}): {
|
|
112
|
-
gatesPassed: boolean;
|
|
113
|
-
worktreeHeadSha: string;
|
|
114
|
-
} | null;
|
|
115
|
-
/**
|
|
116
|
-
* Clear checkpoint
|
|
117
|
-
* @param wuId - WU identifier
|
|
118
|
-
*/
|
|
119
|
-
clearCheckpoint(wuId: string, options?: {
|
|
120
|
-
baseDir?: string;
|
|
121
|
-
}): void;
|
|
122
|
-
/**
|
|
123
|
-
* Check if gates can be skipped
|
|
124
|
-
*/
|
|
125
|
-
canSkipGates(wuId: string, options?: {
|
|
126
|
-
baseDir?: string;
|
|
127
|
-
currentHeadSha?: string;
|
|
128
|
-
}): {
|
|
129
|
-
canSkip: boolean;
|
|
130
|
-
reason?: string;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* WU paths interface
|
|
135
|
-
*/
|
|
136
|
-
export interface IWuPaths {
|
|
137
|
-
/** Get path to WU YAML file */
|
|
138
|
-
WU(id: string): string;
|
|
139
|
-
/** Get path to WU directory */
|
|
140
|
-
WU_DIR(): string;
|
|
141
|
-
/** Get path to status.md */
|
|
142
|
-
STATUS(): string;
|
|
143
|
-
/** Get path to backlog.md */
|
|
144
|
-
BACKLOG(): string;
|
|
145
|
-
/** Get path to stamps directory */
|
|
146
|
-
STAMPS_DIR(): string;
|
|
147
|
-
/** Get path to WU done stamp file */
|
|
148
|
-
STAMP(id: string): string;
|
|
149
|
-
/** Get path to state directory */
|
|
150
|
-
STATE_DIR(): string;
|
|
151
|
-
/** Get path to initiatives directory */
|
|
152
|
-
INITIATIVES_DIR(): string;
|
|
153
|
-
/** Get path to initiative YAML file */
|
|
154
|
-
INITIATIVE(id: string): string;
|
|
155
|
-
/** Get path to worktrees directory */
|
|
156
|
-
WORKTREES_DIR(): string;
|
|
157
|
-
}
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/ports/wu-helpers.ports';
|
|
158
3
|
//# sourceMappingURL=wu-helpers.ports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wu-helpers.ports.d.ts","sourceRoot":"","sources":["../../src/ports/wu-helpers.ports.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"wu-helpers.ports.d.ts","sourceRoot":"","sources":["../../src/ports/wu-helpers.ports.ts"],"names":[],"mappings":"AAGA,cAAc,2DAA2D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wu-helpers.ports.js","sourceRoot":"","sources":["../../src/ports/wu-helpers.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC"}
|
|
1
|
+
{"version":3,"file":"wu-helpers.ports.js","sourceRoot":"","sources":["../../src/ports/wu-helpers.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,qCAAqC;AACrC,cAAc,2DAA2D,CAAC"}
|
|
@@ -1,210 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* WU State Ports (WU-2013)
|
|
4
|
-
*
|
|
5
|
-
* Focused interfaces for the decomposed WU state store services.
|
|
6
|
-
* Each interface defines a single responsibility boundary.
|
|
7
|
-
*
|
|
8
|
-
* Error Contract (WU-2128):
|
|
9
|
-
* Port methods THROW on failure (boundary contracts). Specifically:
|
|
10
|
-
* - State transition methods (claim, complete, block, etc.) throw if the
|
|
11
|
-
* WU is in an invalid state for the requested transition.
|
|
12
|
-
* - Lock methods (acquireLock) throw if the lock cannot be acquired.
|
|
13
|
-
* - Query methods (getWUState, getByStatus) return undefined/empty set for
|
|
14
|
-
* "not found" conditions -- absence of data is not an error.
|
|
15
|
-
*
|
|
16
|
-
* @module ports/wu-state
|
|
17
|
-
*/
|
|
18
|
-
import type { WUEvent } from '../wu-state-schema.js';
|
|
19
|
-
/**
|
|
20
|
-
* WU state entry in the in-memory store
|
|
21
|
-
*/
|
|
22
|
-
export interface WUStateEntry {
|
|
23
|
-
status: string;
|
|
24
|
-
lane: string;
|
|
25
|
-
title: string;
|
|
26
|
-
completedAt?: string;
|
|
27
|
-
lastCheckpoint?: string;
|
|
28
|
-
lastCheckpointNote?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Checkpoint options for recording WU progress
|
|
32
|
-
*/
|
|
33
|
-
export interface CheckpointOptions {
|
|
34
|
-
sessionId?: string;
|
|
35
|
-
progress?: string;
|
|
36
|
-
nextSteps?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Lock file data structure
|
|
40
|
-
*/
|
|
41
|
-
export interface LockData {
|
|
42
|
-
pid: number;
|
|
43
|
-
timestamp: number;
|
|
44
|
-
hostname: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Repair result from corruption recovery
|
|
48
|
-
*/
|
|
49
|
-
export interface RepairResult {
|
|
50
|
-
success: boolean;
|
|
51
|
-
linesKept: number;
|
|
52
|
-
linesRemoved: number;
|
|
53
|
-
backupPath: string | null;
|
|
54
|
-
warnings: string[];
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Event log interface for loading, replaying, and appending WU events.
|
|
58
|
-
*
|
|
59
|
-
* Responsible for:
|
|
60
|
-
* - Loading events from JSONL storage
|
|
61
|
-
* - Replaying events to rebuild in-memory state
|
|
62
|
-
* - Appending new validated events
|
|
63
|
-
*/
|
|
64
|
-
export interface IWuEventLog {
|
|
65
|
-
/**
|
|
66
|
-
* Load and replay events from storage into in-memory state.
|
|
67
|
-
* Resets all state before replaying.
|
|
68
|
-
*/
|
|
69
|
-
load(): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Append a validated event to persistent storage and apply to in-memory state.
|
|
72
|
-
*/
|
|
73
|
-
appendAndApply(event: WUEvent): Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* Apply a validated event to in-memory state without persisting.
|
|
76
|
-
*/
|
|
77
|
-
applyEvent(event: WUEvent): void;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Lock manager interface for file-level locking with stale detection.
|
|
81
|
-
*
|
|
82
|
-
* Responsible for:
|
|
83
|
-
* - Acquiring file locks with retry logic
|
|
84
|
-
* - Releasing file locks
|
|
85
|
-
* - Detecting stale locks (expired or dead process)
|
|
86
|
-
*/
|
|
87
|
-
export interface IWuLockManager {
|
|
88
|
-
/**
|
|
89
|
-
* Acquire a file lock at the given path.
|
|
90
|
-
* Retries with stale lock detection.
|
|
91
|
-
*
|
|
92
|
-
* @throws Error if lock cannot be acquired after retries
|
|
93
|
-
*/
|
|
94
|
-
acquireLock(lockPath: string): Promise<void>;
|
|
95
|
-
/**
|
|
96
|
-
* Release a file lock at the given path.
|
|
97
|
-
* Silently ignores errors if lock file doesn't exist.
|
|
98
|
-
*/
|
|
99
|
-
releaseLock(lockPath: string): void;
|
|
100
|
-
/**
|
|
101
|
-
* Check if a lock is stale (expired timeout or dead process).
|
|
102
|
-
*/
|
|
103
|
-
isLockStale(lockData: LockData): boolean;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* State query interface for O(1) lookups into WU state.
|
|
107
|
-
*
|
|
108
|
-
* Responsible for:
|
|
109
|
-
* - Querying WU state by ID
|
|
110
|
-
* - Querying WU IDs by status (O(1))
|
|
111
|
-
* - Querying WU IDs by lane (O(1))
|
|
112
|
-
* - Querying child WU IDs by parent (O(1))
|
|
113
|
-
*/
|
|
114
|
-
export interface IWuStateQuery {
|
|
115
|
-
/**
|
|
116
|
-
* Get current in-memory state for a WU.
|
|
117
|
-
*/
|
|
118
|
-
getWUState(wuId: string): WUStateEntry | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Get WU IDs by status (O(1) lookup).
|
|
121
|
-
*/
|
|
122
|
-
getByStatus(status: string): Set<string>;
|
|
123
|
-
/**
|
|
124
|
-
* Get WU IDs by lane (O(1) lookup).
|
|
125
|
-
*/
|
|
126
|
-
getByLane(lane: string): Set<string>;
|
|
127
|
-
/**
|
|
128
|
-
* Get child WU IDs delegated from a parent WU (O(1) lookup).
|
|
129
|
-
*/
|
|
130
|
-
getChildWUs(parentWuId: string): Set<string>;
|
|
131
|
-
/**
|
|
132
|
-
* WU-2552: Resolve a (possibly stale) WU id to its current canonical
|
|
133
|
-
* id after any observed wu_renamed events. Returns the input unchanged
|
|
134
|
-
* if no rename chain applies.
|
|
135
|
-
*/
|
|
136
|
-
resolveRenamedWuId(wuId: string): string;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* WU State Store interface for dependency injection in command handlers.
|
|
140
|
-
*
|
|
141
|
-
* Combines event log and state query capabilities into a single injectable
|
|
142
|
-
* interface. Command handlers should depend on this interface rather than
|
|
143
|
-
* importing and instantiating WUStateStore directly.
|
|
144
|
-
*
|
|
145
|
-
* WU-2020: DIP compliance - high-level modules depend on abstraction,
|
|
146
|
-
* not on the concrete WUStateStore class.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```typescript
|
|
150
|
-
* // Command handler accepts interface, not concrete class
|
|
151
|
-
* async function completeWU(store: IWuStateStore, wuId: string) {
|
|
152
|
-
* await store.load();
|
|
153
|
-
* await store.complete(wuId);
|
|
154
|
-
* }
|
|
155
|
-
* ```
|
|
156
|
-
*/
|
|
157
|
-
export interface IWuStateStore extends IWuEventLog, IWuStateQuery {
|
|
158
|
-
/**
|
|
159
|
-
* Claim a WU, transitioning it to in_progress status.
|
|
160
|
-
* @throws Error if WU is already in_progress
|
|
161
|
-
*/
|
|
162
|
-
claim(wuId: string, lane: string, title: string): Promise<void>;
|
|
163
|
-
/**
|
|
164
|
-
* Complete a WU, transitioning it to done status.
|
|
165
|
-
* @throws Error if WU is not in_progress
|
|
166
|
-
*/
|
|
167
|
-
complete(wuId: string): Promise<void>;
|
|
168
|
-
/**
|
|
169
|
-
* Block a WU with a reason.
|
|
170
|
-
* @throws Error if WU is not in_progress
|
|
171
|
-
*/
|
|
172
|
-
block(wuId: string, reason: string): Promise<void>;
|
|
173
|
-
/**
|
|
174
|
-
* Unblock a WU, transitioning it back to in_progress.
|
|
175
|
-
* @throws Error if WU is not blocked
|
|
176
|
-
*/
|
|
177
|
-
unblock(wuId: string): Promise<void>;
|
|
178
|
-
/**
|
|
179
|
-
* Record a checkpoint for a WU without changing its status.
|
|
180
|
-
*/
|
|
181
|
-
checkpoint(wuId: string, note: string, options?: CheckpointOptions): Promise<void>;
|
|
182
|
-
/**
|
|
183
|
-
* Record a parent-child delegation relationship.
|
|
184
|
-
*/
|
|
185
|
-
delegate(childWuId: string, parentWuId: string, delegationId: string): Promise<void>;
|
|
186
|
-
/**
|
|
187
|
-
* Release a WU, transitioning it from in_progress to ready.
|
|
188
|
-
* @throws Error if WU is not in_progress
|
|
189
|
-
*/
|
|
190
|
-
release(wuId: string, reason: string): Promise<void>;
|
|
191
|
-
/**
|
|
192
|
-
* WU-2552: Append a wu_renamed event mapping `from` to `to`. Historical
|
|
193
|
-
* events are not rewritten; the in-memory rename map is updated so
|
|
194
|
-
* subsequent events and queries resolve `from` -> `to`.
|
|
195
|
-
*/
|
|
196
|
-
renameWu(from: string, to: string, reason?: string): Promise<void>;
|
|
197
|
-
/**
|
|
198
|
-
* Create a complete event without persisting it.
|
|
199
|
-
* Useful for transactional flows.
|
|
200
|
-
* @throws Error if WU is not in_progress
|
|
201
|
-
*/
|
|
202
|
-
createCompleteEvent(wuId: string, timestamp?: string): WUEvent;
|
|
203
|
-
/**
|
|
204
|
-
* Create a release event without persisting it.
|
|
205
|
-
* Useful for transactional flows.
|
|
206
|
-
* @throws Error if WU is not in_progress
|
|
207
|
-
*/
|
|
208
|
-
createReleaseEvent(wuId: string, reason: string, timestamp?: string): WUEvent;
|
|
209
|
-
}
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/ports/wu-state.ports';
|
|
210
3
|
//# sourceMappingURL=wu-state.ports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wu-state.ports.d.ts","sourceRoot":"","sources":["../../src/ports/wu-state.ports.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"wu-state.ports.d.ts","sourceRoot":"","sources":["../../src/ports/wu-state.ports.ts"],"names":[],"mappings":"AAGA,cAAc,yDAAyD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wu-state.ports.js","sourceRoot":"","sources":["../../src/ports/wu-state.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC"}
|
|
1
|
+
{"version":3,"file":"wu-state.ports.js","sourceRoot":"","sources":["../../src/ports/wu-state.ports.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,+BAA+B;AAC/B,cAAc,yDAAyD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebase-artifact-cleanup.d.ts","sourceRoot":"","sources":["../src/rebase-artifact-cleanup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rebase-artifact-cleanup.d.ts","sourceRoot":"","sources":["../src/rebase-artifact-cleanup.ts"],"names":[],"mappings":"AA4CA,UAAU,cAAc;IACtB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtC;AAOD,UAAU,8BAA8B;IACtC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,wBAAwB;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;CACxB;AAOD,UAAU,wBAAwB;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,UAAU,6BAA6B;IACrC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,2BAA2B;IACnC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AA+GD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,cAAc,GACzB,OAAO,CAAC,8BAA8B,CAAC,CAyCzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,6BAA6B,CAAC,CAqExC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,wBAAwB,CAAC,CAyDnC;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,6BAA6B,CACjD,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,wBAAwB,CAAC,CAqCnC;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,6BAA6B,CACjD,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,2BAA2B,CAAC,CA8BtC"}
|