@lumenflow/core 4.24.0 → 5.0.1
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/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/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.map +1 -1
- package/dist/telemetry.js +3 -2
- 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,30 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Duration Constants
|
|
4
|
-
*
|
|
5
|
-
* WU-2010: Named constants for duration values expressed in milliseconds.
|
|
6
|
-
* Consolidates the various day/hour/minute calculations scattered across
|
|
7
|
-
* lumenflow-config-schema.ts and other modules.
|
|
8
|
-
*
|
|
9
|
-
* @module constants/duration-constants
|
|
10
|
-
*/
|
|
11
|
-
/** Milliseconds in one second */
|
|
12
|
-
export declare const MS_PER_SECOND = 1000;
|
|
13
|
-
/** Milliseconds in one minute */
|
|
14
|
-
export declare const MS_PER_MINUTE: number;
|
|
15
|
-
/** Milliseconds in one hour */
|
|
16
|
-
export declare const MS_PER_HOUR: number;
|
|
17
|
-
/** Milliseconds in one day */
|
|
18
|
-
export declare const MS_PER_DAY: number;
|
|
19
|
-
/**
|
|
20
|
-
* Duration constants in milliseconds, used as schema defaults.
|
|
21
|
-
*/
|
|
22
|
-
export declare const DURATION_MS: Readonly<{
|
|
23
|
-
/** 7 days in milliseconds (signal cleanup TTL for read signals) */
|
|
24
|
-
SEVEN_DAYS: number;
|
|
25
|
-
/** 30 days in milliseconds (signal cleanup TTL for unread signals, checkpoint TTL) */
|
|
26
|
-
THIRTY_DAYS: number;
|
|
27
|
-
/** 90 days in milliseconds (event archival threshold) */
|
|
28
|
-
NINETY_DAYS: number;
|
|
29
|
-
}>;
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/constants/duration-constants';
|
|
30
3
|
//# sourceMappingURL=duration-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration-constants.d.ts","sourceRoot":"","sources":["../../src/constants/duration-constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"duration-constants.d.ts","sourceRoot":"","sources":["../../src/constants/duration-constants.ts"],"names":[],"mappings":"AAKA,cAAc,iEAAiE,CAAC"}
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2026 Hellmai Ltd
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* Consolidates the various day/hour/minute calculations scattered across
|
|
8
|
-
* lumenflow-config-schema.ts and other modules.
|
|
9
|
-
*
|
|
10
|
-
* @module constants/duration-constants
|
|
11
|
-
*/
|
|
12
|
-
/** Milliseconds in one second */
|
|
13
|
-
export const MS_PER_SECOND = 1_000;
|
|
14
|
-
/** Milliseconds in one minute */
|
|
15
|
-
export const MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
|
16
|
-
/** Milliseconds in one hour */
|
|
17
|
-
export const MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
|
18
|
-
/** Milliseconds in one day */
|
|
19
|
-
export const MS_PER_DAY = 24 * MS_PER_HOUR;
|
|
20
|
-
/**
|
|
21
|
-
* Duration constants in milliseconds, used as schema defaults.
|
|
22
|
-
*/
|
|
23
|
-
export const DURATION_MS = Object.freeze({
|
|
24
|
-
/** 7 days in milliseconds (signal cleanup TTL for read signals) */
|
|
25
|
-
SEVEN_DAYS: 7 * MS_PER_DAY,
|
|
26
|
-
/** 30 days in milliseconds (signal cleanup TTL for unread signals, checkpoint TTL) */
|
|
27
|
-
THIRTY_DAYS: 30 * MS_PER_DAY,
|
|
28
|
-
/** 90 days in milliseconds (event archival threshold) */
|
|
29
|
-
NINETY_DAYS: 90 * MS_PER_DAY,
|
|
30
|
-
});
|
|
3
|
+
// WU-2698 (INIT-058 L4-prep narrow): Shim.
|
|
4
|
+
// Real module lives in @lumenflow/packs-software-delivery/constants/duration-constants,
|
|
5
|
+
// which re-exports from @lumenflow/kernel/primitives/duration-utils.
|
|
6
|
+
export * from '@lumenflow/packs-software-delivery/constants/duration-constants';
|
|
31
7
|
//# sourceMappingURL=duration-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration-constants.js","sourceRoot":"","sources":["../../src/constants/duration-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;
|
|
1
|
+
{"version":3,"file":"duration-constants.js","sourceRoot":"","sources":["../../src/constants/duration-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,2CAA2C;AAC3C,wFAAwF;AACxF,qEAAqE;AACrE,cAAc,iEAAiE,CAAC"}
|
|
@@ -1,25 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Gate Configuration Constants
|
|
4
|
-
*
|
|
5
|
-
* WU-2010: Centralizes magic numbers for gates, including
|
|
6
|
-
* pre-commit/local gates AND config-driven gate thresholds.
|
|
7
|
-
* Used by gates-pre-commit.ts, gates-local.ts, gates-config.ts,
|
|
8
|
-
* and lumenflow-config-schema.ts.
|
|
9
|
-
*/
|
|
10
|
-
/** Gate execution configuration */
|
|
11
|
-
export declare const GATE_CONFIG: {
|
|
12
|
-
/** Maximum execution time per gate step (ms) */
|
|
13
|
-
TIMEOUT_MS: number;
|
|
14
|
-
/** Maximum file size allowed in commits (bytes) - 5MB */
|
|
15
|
-
MAX_FILE_SIZE_BYTES: number;
|
|
16
|
-
/** Total number of gates (for progress display) */
|
|
17
|
-
TOTAL_GATES: number;
|
|
18
|
-
};
|
|
19
|
-
/** Default minimum code coverage percentage (used by TDD methodology) */
|
|
20
|
-
export declare const DEFAULT_MIN_COVERAGE = 90;
|
|
21
|
-
/** Default maximum allowed ESLint warnings before gate failure */
|
|
22
|
-
export declare const DEFAULT_MAX_ESLINT_WARNINGS = 100;
|
|
23
|
-
/** Default timeout for individual gate commands in gates-config (ms) */
|
|
24
|
-
export declare const DEFAULT_GATE_TIMEOUT_MS = 120000;
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/constants/gate-constants';
|
|
25
3
|
//# sourceMappingURL=gate-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate-constants.d.ts","sourceRoot":"","sources":["../../src/constants/gate-constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gate-constants.d.ts","sourceRoot":"","sources":["../../src/constants/gate-constants.ts"],"names":[],"mappings":"AAMA,cAAc,6DAA6D,CAAC"}
|
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2026 Hellmai Ltd
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* pre-commit/local gates AND config-driven gate thresholds.
|
|
8
|
-
* Used by gates-pre-commit.ts, gates-local.ts, gates-config.ts,
|
|
9
|
-
* and lumenflow-config-schema.ts.
|
|
10
|
-
*/
|
|
11
|
-
/** Gate execution configuration */
|
|
12
|
-
export const GATE_CONFIG = {
|
|
13
|
-
/** Maximum execution time per gate step (ms) */
|
|
14
|
-
TIMEOUT_MS: 180000,
|
|
15
|
-
/** Maximum file size allowed in commits (bytes) - 5MB */
|
|
16
|
-
MAX_FILE_SIZE_BYTES: 5 * 1024 * 1024,
|
|
17
|
-
/** Total number of gates (for progress display) */
|
|
18
|
-
TOTAL_GATES: 14,
|
|
19
|
-
};
|
|
20
|
-
/** Default minimum code coverage percentage (used by TDD methodology) */
|
|
21
|
-
export const DEFAULT_MIN_COVERAGE = 90;
|
|
22
|
-
/** Default maximum allowed ESLint warnings before gate failure */
|
|
23
|
-
export const DEFAULT_MAX_ESLINT_WARNINGS = 100;
|
|
24
|
-
/** Default timeout for individual gate commands in gates-config (ms) */
|
|
25
|
-
export const DEFAULT_GATE_TIMEOUT_MS = 120_000; // 2 minutes
|
|
3
|
+
// WU-2677 (INIT-058 L2): Shim — real module lives in @lumenflow/packs-software-delivery.
|
|
4
|
+
// Re-export preserves the `@lumenflow/core/constants/gate-constants` subpath for existing
|
|
5
|
+
// consumers until Layer 7 removes the shim.
|
|
6
|
+
export * from '@lumenflow/packs-software-delivery/constants/gate-constants';
|
|
26
7
|
//# sourceMappingURL=gate-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate-constants.js","sourceRoot":"","sources":["../../src/constants/gate-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"gate-constants.js","sourceRoot":"","sources":["../../src/constants/gate-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC,yFAAyF;AACzF,0FAA0F;AAC1F,4CAA4C;AAC5C,cAAc,6DAA6D,CAAC"}
|
|
@@ -1,30 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Shared Lock Constants
|
|
4
|
-
*
|
|
5
|
-
* WU-2010: Consolidated lock-related constants used by both
|
|
6
|
-
* merge-lock.ts and cleanup-lock.ts to eliminate duplication.
|
|
7
|
-
*
|
|
8
|
-
* @module constants/lock-constants
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Default timeout for waiting to acquire a lock (ms).
|
|
12
|
-
* After this time, acquisition fails if the lock is held.
|
|
13
|
-
*/
|
|
14
|
-
export declare const LOCK_TIMEOUT_MS = 30000;
|
|
15
|
-
/**
|
|
16
|
-
* Time after which a merge lock is considered stale (ms).
|
|
17
|
-
* Should be greater than expected merge operation duration.
|
|
18
|
-
*/
|
|
19
|
-
export declare const MERGE_LOCK_STALE_MS = 60000;
|
|
20
|
-
/**
|
|
21
|
-
* Time after which a cleanup lock is considered stale (ms).
|
|
22
|
-
* Cleanup is slower than merge, so a longer timeout is used.
|
|
23
|
-
*/
|
|
24
|
-
export declare const CLEANUP_LOCK_STALE_MS: number;
|
|
25
|
-
/**
|
|
26
|
-
* Polling interval for lock acquisition retries (ms).
|
|
27
|
-
* Used by both merge and cleanup lock loops.
|
|
28
|
-
*/
|
|
29
|
-
export declare const LOCK_POLL_INTERVAL_MS = 500;
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/constants/lock-constants';
|
|
30
3
|
//# sourceMappingURL=lock-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock-constants.d.ts","sourceRoot":"","sources":["../../src/constants/lock-constants.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"lock-constants.d.ts","sourceRoot":"","sources":["../../src/constants/lock-constants.ts"],"names":[],"mappings":"AAGA,cAAc,6DAA6D,CAAC"}
|
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
// Copyright (c) 2026 Hellmai Ltd
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* WU-2010: Consolidated lock-related constants used by both
|
|
7
|
-
* merge-lock.ts and cleanup-lock.ts to eliminate duplication.
|
|
8
|
-
*
|
|
9
|
-
* @module constants/lock-constants
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Default timeout for waiting to acquire a lock (ms).
|
|
13
|
-
* After this time, acquisition fails if the lock is held.
|
|
14
|
-
*/
|
|
15
|
-
export const LOCK_TIMEOUT_MS = 30_000; // 30 seconds
|
|
16
|
-
/**
|
|
17
|
-
* Time after which a merge lock is considered stale (ms).
|
|
18
|
-
* Should be greater than expected merge operation duration.
|
|
19
|
-
*/
|
|
20
|
-
export const MERGE_LOCK_STALE_MS = 60_000; // 60 seconds
|
|
21
|
-
/**
|
|
22
|
-
* Time after which a cleanup lock is considered stale (ms).
|
|
23
|
-
* Cleanup is slower than merge, so a longer timeout is used.
|
|
24
|
-
*/
|
|
25
|
-
export const CLEANUP_LOCK_STALE_MS = 5 * 60 * 1_000; // 5 minutes
|
|
26
|
-
/**
|
|
27
|
-
* Polling interval for lock acquisition retries (ms).
|
|
28
|
-
* Used by both merge and cleanup lock loops.
|
|
29
|
-
*/
|
|
30
|
-
export const LOCK_POLL_INTERVAL_MS = 500;
|
|
3
|
+
// WU-2712 (INIT-058 prep-C): Shim — authoritative constants moved to pack.
|
|
4
|
+
export * from '@lumenflow/packs-software-delivery/constants/lock-constants';
|
|
31
5
|
//# sourceMappingURL=lock-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock-constants.js","sourceRoot":"","sources":["../../src/constants/lock-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;
|
|
1
|
+
{"version":3,"file":"lock-constants.js","sourceRoot":"","sources":["../../src/constants/lock-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,2EAA2E;AAC3E,cAAc,6DAA6D,CAAC"}
|
|
@@ -62,23 +62,23 @@ export declare const ToolMetadataSchema: z.ZodObject<{
|
|
|
62
62
|
name: z.ZodString;
|
|
63
63
|
description: z.ZodString;
|
|
64
64
|
domain: z.ZodEnum<{
|
|
65
|
-
git: "git";
|
|
66
|
-
security: "security";
|
|
67
|
-
docs: "docs";
|
|
68
65
|
file: "file";
|
|
66
|
+
docs: "docs";
|
|
69
67
|
test: "test";
|
|
68
|
+
git: "git";
|
|
70
69
|
wu: "wu";
|
|
71
70
|
initiative: "initiative";
|
|
71
|
+
orchestration: "orchestration";
|
|
72
72
|
explore: "explore";
|
|
73
73
|
db: "db";
|
|
74
|
+
security: "security";
|
|
74
75
|
metrics: "metrics";
|
|
75
|
-
orchestration: "orchestration";
|
|
76
76
|
util: "util";
|
|
77
77
|
}>;
|
|
78
78
|
permission: z.ZodEnum<{
|
|
79
|
-
read: "read";
|
|
80
79
|
write: "write";
|
|
81
80
|
admin: "admin";
|
|
81
|
+
read: "read";
|
|
82
82
|
}>;
|
|
83
83
|
version: z.ZodString;
|
|
84
84
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -101,23 +101,23 @@ export declare const ToolDefinitionSchema: z.ZodObject<{
|
|
|
101
101
|
name: z.ZodString;
|
|
102
102
|
description: z.ZodString;
|
|
103
103
|
domain: z.ZodEnum<{
|
|
104
|
-
git: "git";
|
|
105
|
-
security: "security";
|
|
106
|
-
docs: "docs";
|
|
107
104
|
file: "file";
|
|
105
|
+
docs: "docs";
|
|
108
106
|
test: "test";
|
|
107
|
+
git: "git";
|
|
109
108
|
wu: "wu";
|
|
110
109
|
initiative: "initiative";
|
|
110
|
+
orchestration: "orchestration";
|
|
111
111
|
explore: "explore";
|
|
112
112
|
db: "db";
|
|
113
|
+
security: "security";
|
|
113
114
|
metrics: "metrics";
|
|
114
|
-
orchestration: "orchestration";
|
|
115
115
|
util: "util";
|
|
116
116
|
}>;
|
|
117
117
|
permission: z.ZodEnum<{
|
|
118
|
-
read: "read";
|
|
119
118
|
write: "write";
|
|
120
119
|
admin: "admin";
|
|
120
|
+
read: "read";
|
|
121
121
|
}>;
|
|
122
122
|
version: z.ZodString;
|
|
123
123
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -140,10 +140,10 @@ export type ToolDefinition = z.infer<typeof ToolDefinitionSchema>;
|
|
|
140
140
|
export declare const ToolExecutionResultSchema: z.ZodObject<{
|
|
141
141
|
tool: z.ZodString;
|
|
142
142
|
status: z.ZodEnum<{
|
|
143
|
-
cancelled: "cancelled";
|
|
144
143
|
success: "success";
|
|
145
144
|
timeout: "timeout";
|
|
146
145
|
pending: "pending";
|
|
146
|
+
cancelled: "cancelled";
|
|
147
147
|
failed: "failed";
|
|
148
148
|
running: "running";
|
|
149
149
|
}>;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import path from 'node:path';
|
|
20
20
|
import { createGitForPath } from '../git-adapter.js';
|
|
21
|
-
import {
|
|
21
|
+
import { isIntegrationMainBranch } from '../integration-target.js';
|
|
22
22
|
import { createError, ErrorCodes } from '../error-handler.js';
|
|
23
23
|
/**
|
|
24
24
|
* Worktree path pattern: worktrees/<lane-kebab>-wu-<id>
|
|
@@ -54,7 +54,7 @@ const LANE_BRANCH_PATTERN = /^lane\/([\w-]+)\/wu-(\d+)$/;
|
|
|
54
54
|
export async function isMainBranch(options = {}) {
|
|
55
55
|
const git = options.git || createGitForPath(process.cwd());
|
|
56
56
|
const branch = await git.getCurrentBranch();
|
|
57
|
-
return branch
|
|
57
|
+
return isIntegrationMainBranch(branch);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Normalize path separators to forward slashes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worktree-guard.js","sourceRoot":"","sources":["../../src/core/worktree-guard.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"worktree-guard.js","sourceRoot":"","sources":["../../src/core/worktree-guard.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;;;;;;;GAQG;AACH,MAAM,qBAAqB,GAAG,8BAA8B,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,mBAAmB,GAA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shim (ADR-012, INIT-058 Layer 1, WU-2664).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @module @lumenflow/core/cycle-detector
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* WU object interface for validation and cycle detection
|
|
12
|
-
* Note: This interface is shared with @lumenflow/initiatives for backward compatibility
|
|
13
|
-
*/
|
|
14
|
-
export interface WUObject {
|
|
15
|
-
id?: string;
|
|
16
|
-
blocks?: string[];
|
|
17
|
-
blocked_by?: string[];
|
|
18
|
-
initiative?: string;
|
|
19
|
-
phase?: number;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Result of cycle detection
|
|
24
|
-
*/
|
|
25
|
-
export interface CycleResult {
|
|
26
|
-
hasCycle: boolean;
|
|
27
|
-
cycles: string[][];
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Detects circular dependencies in WU dependency graph using DFS
|
|
31
|
-
*
|
|
32
|
-
* Uses standard cycle detection: tracks visited nodes and nodes in current
|
|
33
|
-
* recursion stack. If we encounter a node already in the recursion stack,
|
|
34
|
-
* we've found a cycle.
|
|
35
|
-
*
|
|
36
|
-
* Note: This function treats both `blocks` and `blocked_by` as edges for
|
|
37
|
-
* traversal. This means if WU-A blocks WU-B, and WU-B's blocked_by includes
|
|
38
|
-
* WU-A, following both directions will find a path back to WU-A.
|
|
39
|
-
*
|
|
40
|
-
* @param wuMap - Map of WU ID to WU object
|
|
41
|
-
* @returns Cycle detection result with hasCycle boolean and cycles array
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* const wuMap = new Map([
|
|
45
|
-
* ['WU-001', { id: 'WU-001', blocks: ['WU-002'] }],
|
|
46
|
-
* ['WU-002', { id: 'WU-002', blocks: ['WU-001'] }],
|
|
47
|
-
* ]);
|
|
48
|
-
* const result = detectCycles(wuMap);
|
|
49
|
-
* // result.hasCycle === true
|
|
50
|
-
* // result.cycles contains the cycle path
|
|
5
|
+
* Moved to `@lumenflow/kernel/primitives/cycle-detector`. This shim preserves
|
|
6
|
+
* the legacy import path for in-repo consumers until the barrel slim in Layer 7.
|
|
51
7
|
*/
|
|
52
|
-
export
|
|
8
|
+
export { detectCycles, type WUObject, type CycleResult, } from '@lumenflow/kernel/primitives/cycle-detector';
|
|
53
9
|
//# sourceMappingURL=cycle-detector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle-detector.d.ts","sourceRoot":"","sources":["../src/cycle-detector.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"cycle-detector.d.ts","sourceRoot":"","sources":["../src/cycle-detector.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,OAAO,EACL,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,6CAA6C,CAAC"}
|
package/dist/cycle-detector.js
CHANGED
|
@@ -1,84 +1,10 @@
|
|
|
1
1
|
// Copyright (c) 2026 Hellmai Ltd
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Cycle Detector — Re-export shim (ADR-012, INIT-058 Layer 1, WU-2664).
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* we've found a cycle.
|
|
9
|
-
*
|
|
10
|
-
* Note: This function treats both `blocks` and `blocked_by` as edges for
|
|
11
|
-
* traversal. This means if WU-A blocks WU-B, and WU-B's blocked_by includes
|
|
12
|
-
* WU-A, following both directions will find a path back to WU-A.
|
|
13
|
-
*
|
|
14
|
-
* @param wuMap - Map of WU ID to WU object
|
|
15
|
-
* @returns Cycle detection result with hasCycle boolean and cycles array
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* const wuMap = new Map([
|
|
19
|
-
* ['WU-001', { id: 'WU-001', blocks: ['WU-002'] }],
|
|
20
|
-
* ['WU-002', { id: 'WU-002', blocks: ['WU-001'] }],
|
|
21
|
-
* ]);
|
|
22
|
-
* const result = detectCycles(wuMap);
|
|
23
|
-
* // result.hasCycle === true
|
|
24
|
-
* // result.cycles contains the cycle path
|
|
6
|
+
* Moved to `@lumenflow/kernel/primitives/cycle-detector`. This shim preserves
|
|
7
|
+
* the legacy import path for in-repo consumers until the barrel slim in Layer 7.
|
|
25
8
|
*/
|
|
26
|
-
export
|
|
27
|
-
const visited = new Set();
|
|
28
|
-
const recursionStack = new Set();
|
|
29
|
-
const cycles = [];
|
|
30
|
-
/**
|
|
31
|
-
* DFS traversal to detect cycles
|
|
32
|
-
* @param wuId - Current WU ID
|
|
33
|
-
* @param path - Current path from root
|
|
34
|
-
* @returns True if cycle found
|
|
35
|
-
*/
|
|
36
|
-
function dfs(wuId, path) {
|
|
37
|
-
// If node is in recursion stack, we found a cycle
|
|
38
|
-
if (recursionStack.has(wuId)) {
|
|
39
|
-
const cycleStart = path.indexOf(wuId);
|
|
40
|
-
if (cycleStart !== -1) {
|
|
41
|
-
cycles.push([...path.slice(cycleStart), wuId]);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
// Self-reference case
|
|
45
|
-
cycles.push([wuId, wuId]);
|
|
46
|
-
}
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
// If already fully visited, skip
|
|
50
|
-
if (visited.has(wuId)) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
// Mark as being processed
|
|
54
|
-
visited.add(wuId);
|
|
55
|
-
recursionStack.add(wuId);
|
|
56
|
-
// Get dependencies (both blocks and blocked_by create edges)
|
|
57
|
-
// Only use arrays - ignore legacy string format for backward compatibility
|
|
58
|
-
const wu = wuMap.get(wuId);
|
|
59
|
-
const blocks = Array.isArray(wu?.blocks) ? wu.blocks : [];
|
|
60
|
-
const blockedBy = Array.isArray(wu?.blocked_by) ? wu.blocked_by : [];
|
|
61
|
-
const deps = [...blocks, ...blockedBy];
|
|
62
|
-
// Visit all dependencies
|
|
63
|
-
for (const dep of deps) {
|
|
64
|
-
// Only traverse if the dependency exists in our map
|
|
65
|
-
if (wuMap.has(dep)) {
|
|
66
|
-
dfs(dep, [...path, wuId]);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
// Remove from recursion stack (done processing)
|
|
70
|
-
recursionStack.delete(wuId);
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
// Run DFS from each node to find all cycles
|
|
74
|
-
for (const wuId of wuMap.keys()) {
|
|
75
|
-
if (!visited.has(wuId)) {
|
|
76
|
-
dfs(wuId, []);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
hasCycle: cycles.length > 0,
|
|
81
|
-
cycles,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
9
|
+
export { detectCycles, } from '@lumenflow/kernel/primitives/cycle-detector';
|
|
84
10
|
//# sourceMappingURL=cycle-detector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle-detector.js","sourceRoot":"","sources":["../src/cycle-detector.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;
|
|
1
|
+
{"version":3,"file":"cycle-detector.js","sourceRoot":"","sources":["../src/cycle-detector.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;GAKG;AAEH,OAAO,EACL,YAAY,GAGb,MAAM,6CAA6C,CAAC"}
|
package/dist/date-utils.d.ts
CHANGED
|
@@ -1,67 +1,3 @@
|
|
|
1
1
|
/// <reference path="./types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Get current date in ISO format (YYYY-MM-DD)
|
|
4
|
-
* @returns {string} Current date in YYYY-MM-DD format
|
|
5
|
-
* @example
|
|
6
|
-
* todayISO(); // "2025-11-12"
|
|
7
|
-
*/
|
|
8
|
-
export declare function todayISO(): string;
|
|
9
|
-
/**
|
|
10
|
-
* Format a date with a custom format string
|
|
11
|
-
* @param {Date|string|number} date - Date to format
|
|
12
|
-
* @param {string} formatString - date-fns format string
|
|
13
|
-
* @returns {string} Formatted date string
|
|
14
|
-
* @example
|
|
15
|
-
* formatDate(new Date(), 'yyyy-MM-dd HH:mm:ss');
|
|
16
|
-
* formatDate('2025-11-12', 'MMMM d, yyyy'); // "November 12, 2025"
|
|
17
|
-
*/
|
|
18
|
-
export declare function formatDate(date: Date | string | number, formatString: string): string;
|
|
19
|
-
/**
|
|
20
|
-
* Normalize a Date object or ISO timestamp string to YYYY-MM-DD format
|
|
21
|
-
*
|
|
22
|
-
* WU-1442: Fix date corruption when js-yaml parses YYYY-MM-DD as Date objects
|
|
23
|
-
* Library-First: Uses date-fns for date formatting (no manual parsing)
|
|
24
|
-
*
|
|
25
|
-
* Use case: js-yaml parses `created: 2025-12-04` (unquoted) as a Date object.
|
|
26
|
-
* When yaml.dump() serializes it back, it outputs `2025-12-04T00:00:00.000Z`.
|
|
27
|
-
* This function normalizes Date objects back to YYYY-MM-DD string format.
|
|
28
|
-
*
|
|
29
|
-
* Handles:
|
|
30
|
-
* - Date objects → YYYY-MM-DD string
|
|
31
|
-
* - ISO timestamp strings → YYYY-MM-DD string (date portion)
|
|
32
|
-
* - YYYY-MM-DD strings → preserved as-is
|
|
33
|
-
* - undefined/null → preserved as undefined
|
|
34
|
-
*
|
|
35
|
-
* @param {Date|string|undefined|null} value - Date value to normalize
|
|
36
|
-
* @returns {string|undefined} Date in YYYY-MM-DD format or undefined
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* normalizeToDateString(new Date('2025-12-04')); // '2025-12-04'
|
|
40
|
-
* normalizeToDateString('2025-12-04T00:00:00.000Z'); // '2025-12-04'
|
|
41
|
-
* normalizeToDateString('2025-12-04'); // '2025-12-04'
|
|
42
|
-
* normalizeToDateString(undefined); // undefined
|
|
43
|
-
*/
|
|
44
|
-
export declare function normalizeToDateString(value: unknown): string | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Normalize various date formats to ISO 8601 datetime (YYYY-MM-DDTHH:mm:ss.sssZ)
|
|
47
|
-
*
|
|
48
|
-
* WU-1337: Auto-repair date fields in WU YAML to consistent format
|
|
49
|
-
* Library-First: Uses date-fns for date handling (no manual parsing)
|
|
50
|
-
*
|
|
51
|
-
* Handles:
|
|
52
|
-
* - ISO date strings (YYYY-MM-DD) → midnight UTC
|
|
53
|
-
* - ISO datetime strings (already valid) → preserved
|
|
54
|
-
* - Unix timestamps (milliseconds) → converted
|
|
55
|
-
* - undefined/null → preserved as undefined
|
|
56
|
-
*
|
|
57
|
-
* @param {string|number|undefined|null} value - Date value to normalize
|
|
58
|
-
* @returns {string|undefined} ISO datetime string or undefined
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* normalizeISODateTime('2025-11-29'); // '2025-11-29T00:00:00.000Z'
|
|
62
|
-
* normalizeISODateTime('2025-11-29T14:30:00.000Z'); // '2025-11-29T14:30:00.000Z'
|
|
63
|
-
* normalizeISODateTime(1732896000000); // '2024-11-29T16:00:00.000Z'
|
|
64
|
-
* normalizeISODateTime(undefined); // undefined
|
|
65
|
-
*/
|
|
66
|
-
export declare function normalizeISODateTime(value: string | number | null | undefined): string | undefined;
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/state/date-utils';
|
|
67
3
|
//# sourceMappingURL=date-utils.d.ts.map
|
package/dist/date-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../src/date-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../src/date-utils.ts"],"names":[],"mappings":"AAMA,cAAc,qDAAqD,CAAC"}
|