@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,308 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Orchestration Domain Schemas
|
|
4
|
-
*
|
|
5
|
-
* Zod schemas for runtime validation of orchestration domain types.
|
|
6
|
-
* Single source of truth - types are inferred from these schemas.
|
|
7
|
-
*
|
|
8
|
-
* @module orchestration.schemas
|
|
9
|
-
* @see {@link ./orchestration.types.ts} - Types inferred from these schemas
|
|
10
|
-
* @see {@link ./orchestration.constants.ts} - Constants used in validation
|
|
11
|
-
*/
|
|
12
|
-
import { z } from 'zod';
|
|
13
|
-
/**
|
|
14
|
-
* Schema for global orchestration status.
|
|
15
|
-
* Shows high-level dashboard metrics at a glance.
|
|
16
|
-
*/
|
|
17
|
-
export declare const GlobalStatusSchema: z.ZodObject<{
|
|
18
|
-
activeWUs: z.ZodNumber;
|
|
19
|
-
completed24h: z.ZodNumber;
|
|
20
|
-
blocked: z.ZodNumber;
|
|
21
|
-
gatesFailing: z.ZodNumber;
|
|
22
|
-
longestRunning: z.ZodNullable<z.ZodObject<{
|
|
23
|
-
wuId: z.ZodString;
|
|
24
|
-
lane: z.ZodEnum<{
|
|
25
|
-
"Framework: Core": "Framework: Core";
|
|
26
|
-
"Framework: CLI": "Framework: CLI";
|
|
27
|
-
"Framework: Memory": "Framework: Memory";
|
|
28
|
-
"Framework: Agent": "Framework: Agent";
|
|
29
|
-
"Framework: Metrics": "Framework: Metrics";
|
|
30
|
-
"Framework: Initiatives": "Framework: Initiatives";
|
|
31
|
-
"Framework: Shims": "Framework: Shims";
|
|
32
|
-
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
33
|
-
"Operations: CI/CD": "Operations: CI/CD";
|
|
34
|
-
"Content: Documentation": "Content: Documentation";
|
|
35
|
-
}>;
|
|
36
|
-
durationMs: z.ZodNumber;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
pendingMandatory: z.ZodArray<z.ZodObject<{
|
|
39
|
-
wuId: z.ZodString;
|
|
40
|
-
agent: z.ZodEnum<{
|
|
41
|
-
"general-purpose": "general-purpose";
|
|
42
|
-
"lumenflow-pm": "lumenflow-pm";
|
|
43
|
-
"test-engineer": "test-engineer";
|
|
44
|
-
"code-reviewer": "code-reviewer";
|
|
45
|
-
"bug-triage": "bug-triage";
|
|
46
|
-
"lumenflow-enforcer": "lumenflow-enforcer";
|
|
47
|
-
"lumenflow-doc-sync": "lumenflow-doc-sync";
|
|
48
|
-
}>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
activeSession: z.ZodNullable<z.ZodObject<{
|
|
51
|
-
sessionId: z.ZodString;
|
|
52
|
-
wuId: z.ZodString;
|
|
53
|
-
started: z.ZodString;
|
|
54
|
-
contextTier: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
55
|
-
incidentsLogged: z.ZodNumber;
|
|
56
|
-
}, z.core.$strip>>;
|
|
57
|
-
worktreesWithUncommittedChanges: z.ZodArray<z.ZodObject<{
|
|
58
|
-
wuId: z.ZodString;
|
|
59
|
-
worktreePath: z.ZodString;
|
|
60
|
-
uncommittedFileCount: z.ZodNumber;
|
|
61
|
-
lastActivityTimestamp: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
/**
|
|
65
|
-
* Schema for per-agent metrics.
|
|
66
|
-
* Tracks invocation counts, pass rates, and timing.
|
|
67
|
-
*/
|
|
68
|
-
export declare const AgentMetricSchema: z.ZodObject<{
|
|
69
|
-
invoked: z.ZodNumber;
|
|
70
|
-
passRate: z.ZodNumber;
|
|
71
|
-
avgDurationMs: z.ZodNumber;
|
|
72
|
-
lastRun: z.ZodNullable<z.ZodObject<{
|
|
73
|
-
wuId: z.ZodString;
|
|
74
|
-
timestamp: z.ZodString;
|
|
75
|
-
result: z.ZodEnum<{
|
|
76
|
-
pass: "pass";
|
|
77
|
-
fail: "fail";
|
|
78
|
-
}>;
|
|
79
|
-
}, z.core.$strip>>;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
/**
|
|
82
|
-
* Schema for WU progress tracking.
|
|
83
|
-
* Shows DoD progress and agent status per WU.
|
|
84
|
-
*/
|
|
85
|
-
export declare const WUProgressSchema: z.ZodObject<{
|
|
86
|
-
wuId: z.ZodString;
|
|
87
|
-
lane: z.ZodEnum<{
|
|
88
|
-
"Framework: Core": "Framework: Core";
|
|
89
|
-
"Framework: CLI": "Framework: CLI";
|
|
90
|
-
"Framework: Memory": "Framework: Memory";
|
|
91
|
-
"Framework: Agent": "Framework: Agent";
|
|
92
|
-
"Framework: Metrics": "Framework: Metrics";
|
|
93
|
-
"Framework: Initiatives": "Framework: Initiatives";
|
|
94
|
-
"Framework: Shims": "Framework: Shims";
|
|
95
|
-
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
96
|
-
"Operations: CI/CD": "Operations: CI/CD";
|
|
97
|
-
"Content: Documentation": "Content: Documentation";
|
|
98
|
-
}>;
|
|
99
|
-
title: z.ZodString;
|
|
100
|
-
dodProgress: z.ZodNumber;
|
|
101
|
-
dodTotal: z.ZodLiteral<11>;
|
|
102
|
-
agents: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
103
|
-
pass: "pass";
|
|
104
|
-
pending: "pending";
|
|
105
|
-
fail: "fail";
|
|
106
|
-
skipped: "skipped";
|
|
107
|
-
}>>;
|
|
108
|
-
headline: z.ZodString;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
/**
|
|
111
|
-
* Schema for timeline events.
|
|
112
|
-
* Records orchestration history for dashboard display.
|
|
113
|
-
*/
|
|
114
|
-
export declare const TimelineEventSchema: z.ZodObject<{
|
|
115
|
-
timestamp: z.ZodString;
|
|
116
|
-
event: z.ZodEnum<{
|
|
117
|
-
done: "done";
|
|
118
|
-
gates: "gates";
|
|
119
|
-
block: "block";
|
|
120
|
-
claim: "claim";
|
|
121
|
-
agent: "agent";
|
|
122
|
-
}>;
|
|
123
|
-
wuId: z.ZodString;
|
|
124
|
-
detail: z.ZodString;
|
|
125
|
-
severity: z.ZodEnum<{
|
|
126
|
-
info: "info";
|
|
127
|
-
error: "error";
|
|
128
|
-
warning: "warning";
|
|
129
|
-
}>;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
|
-
/**
|
|
132
|
-
* Schema for dashboard alerts.
|
|
133
|
-
* Highlights items requiring attention.
|
|
134
|
-
*/
|
|
135
|
-
export declare const AlertSchema: z.ZodObject<{
|
|
136
|
-
severity: z.ZodEnum<{
|
|
137
|
-
high: "high";
|
|
138
|
-
medium: "medium";
|
|
139
|
-
low: "low";
|
|
140
|
-
}>;
|
|
141
|
-
message: z.ZodString;
|
|
142
|
-
wuId: z.ZodString;
|
|
143
|
-
action: z.ZodString;
|
|
144
|
-
}, z.core.$strip>;
|
|
145
|
-
/**
|
|
146
|
-
* Schema for orchestration suggestions.
|
|
147
|
-
* Recommendations for next actions.
|
|
148
|
-
*/
|
|
149
|
-
export declare const SuggestionSchema: z.ZodObject<{
|
|
150
|
-
id: z.ZodString;
|
|
151
|
-
priority: z.ZodEnum<{
|
|
152
|
-
high: "high";
|
|
153
|
-
medium: "medium";
|
|
154
|
-
low: "low";
|
|
155
|
-
}>;
|
|
156
|
-
action: z.ZodString;
|
|
157
|
-
reason: z.ZodString;
|
|
158
|
-
command: z.ZodString;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
/**
|
|
161
|
-
* Schema for execution plans.
|
|
162
|
-
* Proposed sequence of orchestration actions.
|
|
163
|
-
*/
|
|
164
|
-
export declare const ExecutionPlanSchema: z.ZodObject<{
|
|
165
|
-
wuId: z.ZodString;
|
|
166
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
167
|
-
order: z.ZodNumber;
|
|
168
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
169
|
-
action: z.ZodOptional<z.ZodString>;
|
|
170
|
-
status: z.ZodEnum<{
|
|
171
|
-
pass: "pass";
|
|
172
|
-
pending: "pending";
|
|
173
|
-
fail: "fail";
|
|
174
|
-
skipped: "skipped";
|
|
175
|
-
}>;
|
|
176
|
-
}, z.core.$strip>>;
|
|
177
|
-
estimatedTokens: z.ZodNumber;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
/**
|
|
180
|
-
* Schema for user choices on execution plans.
|
|
181
|
-
*/
|
|
182
|
-
export declare const UserChoiceSchema: z.ZodObject<{
|
|
183
|
-
choice: z.ZodEnum<{
|
|
184
|
-
approve: "approve";
|
|
185
|
-
reject: "reject";
|
|
186
|
-
edit: "edit";
|
|
187
|
-
}>;
|
|
188
|
-
modifications: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
|
-
}, z.core.$strip>;
|
|
190
|
-
/**
|
|
191
|
-
* Schema for complete dashboard data.
|
|
192
|
-
* Aggregates all data needed for dashboard rendering.
|
|
193
|
-
*/
|
|
194
|
-
export declare const DashboardDataSchema: z.ZodObject<{
|
|
195
|
-
globalStatus: z.ZodObject<{
|
|
196
|
-
activeWUs: z.ZodNumber;
|
|
197
|
-
completed24h: z.ZodNumber;
|
|
198
|
-
blocked: z.ZodNumber;
|
|
199
|
-
gatesFailing: z.ZodNumber;
|
|
200
|
-
longestRunning: z.ZodNullable<z.ZodObject<{
|
|
201
|
-
wuId: z.ZodString;
|
|
202
|
-
lane: z.ZodEnum<{
|
|
203
|
-
"Framework: Core": "Framework: Core";
|
|
204
|
-
"Framework: CLI": "Framework: CLI";
|
|
205
|
-
"Framework: Memory": "Framework: Memory";
|
|
206
|
-
"Framework: Agent": "Framework: Agent";
|
|
207
|
-
"Framework: Metrics": "Framework: Metrics";
|
|
208
|
-
"Framework: Initiatives": "Framework: Initiatives";
|
|
209
|
-
"Framework: Shims": "Framework: Shims";
|
|
210
|
-
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
211
|
-
"Operations: CI/CD": "Operations: CI/CD";
|
|
212
|
-
"Content: Documentation": "Content: Documentation";
|
|
213
|
-
}>;
|
|
214
|
-
durationMs: z.ZodNumber;
|
|
215
|
-
}, z.core.$strip>>;
|
|
216
|
-
pendingMandatory: z.ZodArray<z.ZodObject<{
|
|
217
|
-
wuId: z.ZodString;
|
|
218
|
-
agent: z.ZodEnum<{
|
|
219
|
-
"general-purpose": "general-purpose";
|
|
220
|
-
"lumenflow-pm": "lumenflow-pm";
|
|
221
|
-
"test-engineer": "test-engineer";
|
|
222
|
-
"code-reviewer": "code-reviewer";
|
|
223
|
-
"bug-triage": "bug-triage";
|
|
224
|
-
"lumenflow-enforcer": "lumenflow-enforcer";
|
|
225
|
-
"lumenflow-doc-sync": "lumenflow-doc-sync";
|
|
226
|
-
}>;
|
|
227
|
-
}, z.core.$strip>>;
|
|
228
|
-
activeSession: z.ZodNullable<z.ZodObject<{
|
|
229
|
-
sessionId: z.ZodString;
|
|
230
|
-
wuId: z.ZodString;
|
|
231
|
-
started: z.ZodString;
|
|
232
|
-
contextTier: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
233
|
-
incidentsLogged: z.ZodNumber;
|
|
234
|
-
}, z.core.$strip>>;
|
|
235
|
-
worktreesWithUncommittedChanges: z.ZodArray<z.ZodObject<{
|
|
236
|
-
wuId: z.ZodString;
|
|
237
|
-
worktreePath: z.ZodString;
|
|
238
|
-
uncommittedFileCount: z.ZodNumber;
|
|
239
|
-
lastActivityTimestamp: z.ZodString;
|
|
240
|
-
}, z.core.$strip>>;
|
|
241
|
-
}, z.core.$strip>;
|
|
242
|
-
agentMetrics: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
243
|
-
invoked: z.ZodNumber;
|
|
244
|
-
passRate: z.ZodNumber;
|
|
245
|
-
avgDurationMs: z.ZodNumber;
|
|
246
|
-
lastRun: z.ZodNullable<z.ZodObject<{
|
|
247
|
-
wuId: z.ZodString;
|
|
248
|
-
timestamp: z.ZodString;
|
|
249
|
-
result: z.ZodEnum<{
|
|
250
|
-
pass: "pass";
|
|
251
|
-
fail: "fail";
|
|
252
|
-
}>;
|
|
253
|
-
}, z.core.$strip>>;
|
|
254
|
-
}, z.core.$strip>>;
|
|
255
|
-
wuProgress: z.ZodArray<z.ZodObject<{
|
|
256
|
-
wuId: z.ZodString;
|
|
257
|
-
lane: z.ZodEnum<{
|
|
258
|
-
"Framework: Core": "Framework: Core";
|
|
259
|
-
"Framework: CLI": "Framework: CLI";
|
|
260
|
-
"Framework: Memory": "Framework: Memory";
|
|
261
|
-
"Framework: Agent": "Framework: Agent";
|
|
262
|
-
"Framework: Metrics": "Framework: Metrics";
|
|
263
|
-
"Framework: Initiatives": "Framework: Initiatives";
|
|
264
|
-
"Framework: Shims": "Framework: Shims";
|
|
265
|
-
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
266
|
-
"Operations: CI/CD": "Operations: CI/CD";
|
|
267
|
-
"Content: Documentation": "Content: Documentation";
|
|
268
|
-
}>;
|
|
269
|
-
title: z.ZodString;
|
|
270
|
-
dodProgress: z.ZodNumber;
|
|
271
|
-
dodTotal: z.ZodLiteral<11>;
|
|
272
|
-
agents: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
273
|
-
pass: "pass";
|
|
274
|
-
pending: "pending";
|
|
275
|
-
fail: "fail";
|
|
276
|
-
skipped: "skipped";
|
|
277
|
-
}>>;
|
|
278
|
-
headline: z.ZodString;
|
|
279
|
-
}, z.core.$strip>>;
|
|
280
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
281
|
-
timestamp: z.ZodString;
|
|
282
|
-
event: z.ZodEnum<{
|
|
283
|
-
done: "done";
|
|
284
|
-
gates: "gates";
|
|
285
|
-
block: "block";
|
|
286
|
-
claim: "claim";
|
|
287
|
-
agent: "agent";
|
|
288
|
-
}>;
|
|
289
|
-
wuId: z.ZodString;
|
|
290
|
-
detail: z.ZodString;
|
|
291
|
-
severity: z.ZodEnum<{
|
|
292
|
-
info: "info";
|
|
293
|
-
error: "error";
|
|
294
|
-
warning: "warning";
|
|
295
|
-
}>;
|
|
296
|
-
}, z.core.$strip>>;
|
|
297
|
-
alerts: z.ZodArray<z.ZodObject<{
|
|
298
|
-
severity: z.ZodEnum<{
|
|
299
|
-
high: "high";
|
|
300
|
-
medium: "medium";
|
|
301
|
-
low: "low";
|
|
302
|
-
}>;
|
|
303
|
-
message: z.ZodString;
|
|
304
|
-
wuId: z.ZodString;
|
|
305
|
-
action: z.ZodString;
|
|
306
|
-
}, z.core.$strip>>;
|
|
307
|
-
}, z.core.$strip>;
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/domain/orchestration.schemas';
|
|
308
3
|
//# sourceMappingURL=orchestration.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.schemas.d.ts","sourceRoot":"","sources":["../../src/domain/orchestration.schemas.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"orchestration.schemas.d.ts","sourceRoot":"","sources":["../../src/domain/orchestration.schemas.ts"],"names":[],"mappings":"AAGA,cAAc,iEAAiE,CAAC"}
|
|
@@ -1,214 +1,5 @@
|
|
|
1
1
|
// Copyright (c) 2026 Hellmai Ltd
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Zod schemas for runtime validation of orchestration domain types.
|
|
7
|
-
* Single source of truth - types are inferred from these schemas.
|
|
8
|
-
*
|
|
9
|
-
* @module orchestration.schemas
|
|
10
|
-
* @see {@link ./orchestration.types.ts} - Types inferred from these schemas
|
|
11
|
-
* @see {@link ./orchestration.constants.ts} - Constants used in validation
|
|
12
|
-
*/
|
|
13
|
-
import { z } from 'zod';
|
|
14
|
-
import { LANES, AGENT_NAMES, SEVERITY_LEVELS, AGENT_RESULT_STATUSES, TIMELINE_EVENT_TYPES, EVENT_SEVERITY_LEVELS, USER_CHOICE_OPTIONS, DOD_TOTAL, } from './orchestration.constants.js';
|
|
15
|
-
/**
|
|
16
|
-
* Schema for the longest running WU information.
|
|
17
|
-
*/
|
|
18
|
-
const LongestRunningSchema = z.object({
|
|
19
|
-
wuId: z.string().min(1),
|
|
20
|
-
lane: z.enum(LANES),
|
|
21
|
-
durationMs: z.number().nonnegative(),
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Schema for pending mandatory agent information.
|
|
25
|
-
*/
|
|
26
|
-
const PendingMandatorySchema = z.object({
|
|
27
|
-
wuId: z.string().min(1),
|
|
28
|
-
agent: z.enum(AGENT_NAMES),
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Schema for active agent session (WU-1438).
|
|
32
|
-
*/
|
|
33
|
-
const ActiveSessionSchema = z.object({
|
|
34
|
-
sessionId: z.string().uuid(),
|
|
35
|
-
wuId: z.string().min(1),
|
|
36
|
-
started: z.string().datetime(),
|
|
37
|
-
contextTier: z.union([z.literal(1), z.literal(2), z.literal(3)]),
|
|
38
|
-
incidentsLogged: z.number().int().nonnegative(),
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* Schema for worktree with uncommitted changes (WU-1748).
|
|
42
|
-
* Used for cross-agent visibility of abandoned WU work.
|
|
43
|
-
*/
|
|
44
|
-
const WorktreeWithUncommittedChangesSchema = z.object({
|
|
45
|
-
/** WU ID extracted from worktree branch name */
|
|
46
|
-
wuId: z.string().min(1),
|
|
47
|
-
/** Worktree directory path */
|
|
48
|
-
worktreePath: z.string().min(1),
|
|
49
|
-
/** Number of uncommitted files */
|
|
50
|
-
uncommittedFileCount: z.number().int().nonnegative(),
|
|
51
|
-
/** Last git activity timestamp (ISO 8601) */
|
|
52
|
-
lastActivityTimestamp: z.string(),
|
|
53
|
-
});
|
|
54
|
-
/**
|
|
55
|
-
* Schema for global orchestration status.
|
|
56
|
-
* Shows high-level dashboard metrics at a glance.
|
|
57
|
-
*/
|
|
58
|
-
export const GlobalStatusSchema = z.object({
|
|
59
|
-
/** Number of WUs currently in progress */
|
|
60
|
-
activeWUs: z.number().int().nonnegative(),
|
|
61
|
-
/** Number of WUs completed in the last 24 hours */
|
|
62
|
-
completed24h: z.number().int().nonnegative(),
|
|
63
|
-
/** Number of currently blocked WUs */
|
|
64
|
-
blocked: z.number().int().nonnegative(),
|
|
65
|
-
/** Number of WUs with failing gates */
|
|
66
|
-
gatesFailing: z.number().int().nonnegative(),
|
|
67
|
-
/** Information about the longest running WU, or null if none active */
|
|
68
|
-
longestRunning: LongestRunningSchema.nullable(),
|
|
69
|
-
/** List of WUs with pending mandatory agents */
|
|
70
|
-
pendingMandatory: z.array(PendingMandatorySchema),
|
|
71
|
-
/** Current active agent session, or null if none (WU-1438) */
|
|
72
|
-
activeSession: ActiveSessionSchema.nullable(),
|
|
73
|
-
/** Worktrees with uncommitted changes for cross-agent visibility (WU-1748) */
|
|
74
|
-
worktreesWithUncommittedChanges: z.array(WorktreeWithUncommittedChangesSchema),
|
|
75
|
-
});
|
|
76
|
-
/**
|
|
77
|
-
* Schema for last run information within agent metrics.
|
|
78
|
-
*/
|
|
79
|
-
const LastRunSchema = z.object({
|
|
80
|
-
wuId: z.string().min(1),
|
|
81
|
-
timestamp: z.string().datetime(),
|
|
82
|
-
result: z.enum(['pass', 'fail']),
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* Schema for per-agent metrics.
|
|
86
|
-
* Tracks invocation counts, pass rates, and timing.
|
|
87
|
-
*/
|
|
88
|
-
export const AgentMetricSchema = z.object({
|
|
89
|
-
/** Total number of times this agent has been invoked */
|
|
90
|
-
invoked: z.number().int().nonnegative(),
|
|
91
|
-
/** Pass rate as percentage (0-100) */
|
|
92
|
-
passRate: z.number().min(0).max(100),
|
|
93
|
-
/** Average duration in milliseconds */
|
|
94
|
-
avgDurationMs: z.number().nonnegative(),
|
|
95
|
-
/** Information about the most recent run, or null if never run */
|
|
96
|
-
lastRun: LastRunSchema.nullable(),
|
|
97
|
-
});
|
|
98
|
-
/**
|
|
99
|
-
* Schema for WU progress tracking.
|
|
100
|
-
* Shows DoD progress and agent status per WU.
|
|
101
|
-
*/
|
|
102
|
-
export const WUProgressSchema = z.object({
|
|
103
|
-
/** Work Unit ID (e.g., "WU-1234") */
|
|
104
|
-
wuId: z.string().min(1),
|
|
105
|
-
/** Lane the WU is assigned to */
|
|
106
|
-
lane: z.enum(LANES),
|
|
107
|
-
/** Human-readable title of the WU */
|
|
108
|
-
title: z.string().min(1),
|
|
109
|
-
/** Current DoD checkpoint progress (0 to DOD_TOTAL) */
|
|
110
|
-
dodProgress: z.number().int().min(0).max(DOD_TOTAL),
|
|
111
|
-
/** Total DoD checkpoints (always DOD_TOTAL) */
|
|
112
|
-
dodTotal: z.literal(DOD_TOTAL),
|
|
113
|
-
/** Status of each agent that has been or should be run */
|
|
114
|
-
agents: z.record(z.string(), z.enum(AGENT_RESULT_STATUSES)),
|
|
115
|
-
/** Tufte-style headline sentence describing current state */
|
|
116
|
-
headline: z.string(),
|
|
117
|
-
});
|
|
118
|
-
/**
|
|
119
|
-
* Schema for timeline events.
|
|
120
|
-
* Records orchestration history for dashboard display.
|
|
121
|
-
*/
|
|
122
|
-
export const TimelineEventSchema = z.object({
|
|
123
|
-
/** ISO 8601 timestamp of the event */
|
|
124
|
-
timestamp: z.string().datetime(),
|
|
125
|
-
/** Type of orchestration event */
|
|
126
|
-
event: z.enum(TIMELINE_EVENT_TYPES),
|
|
127
|
-
/** Associated Work Unit ID */
|
|
128
|
-
wuId: z.string().min(1),
|
|
129
|
-
/** Human-readable event description */
|
|
130
|
-
detail: z.string(),
|
|
131
|
-
/** Visual severity for display */
|
|
132
|
-
severity: z.enum(EVENT_SEVERITY_LEVELS),
|
|
133
|
-
});
|
|
134
|
-
/**
|
|
135
|
-
* Schema for dashboard alerts.
|
|
136
|
-
* Highlights items requiring attention.
|
|
137
|
-
*/
|
|
138
|
-
export const AlertSchema = z.object({
|
|
139
|
-
/** Alert severity level */
|
|
140
|
-
severity: z.enum(SEVERITY_LEVELS),
|
|
141
|
-
/** Human-readable alert message */
|
|
142
|
-
message: z.string().min(1),
|
|
143
|
-
/** Associated Work Unit ID */
|
|
144
|
-
wuId: z.string().min(1),
|
|
145
|
-
/** Suggested action or command */
|
|
146
|
-
action: z.string().min(1),
|
|
147
|
-
});
|
|
148
|
-
/**
|
|
149
|
-
* Schema for orchestration suggestions.
|
|
150
|
-
* Recommendations for next actions.
|
|
151
|
-
*/
|
|
152
|
-
export const SuggestionSchema = z.object({
|
|
153
|
-
/** Unique suggestion identifier */
|
|
154
|
-
id: z.string().min(1),
|
|
155
|
-
/** Suggestion priority level */
|
|
156
|
-
priority: z.enum(SEVERITY_LEVELS),
|
|
157
|
-
/** Short action description */
|
|
158
|
-
action: z.string().min(1),
|
|
159
|
-
/** Reason for the suggestion */
|
|
160
|
-
reason: z.string().min(1),
|
|
161
|
-
/** CLI command to execute the suggestion */
|
|
162
|
-
command: z.string().min(1),
|
|
163
|
-
});
|
|
164
|
-
/**
|
|
165
|
-
* Schema for execution plan steps.
|
|
166
|
-
*/
|
|
167
|
-
const ExecutionStepSchema = z.object({
|
|
168
|
-
/** Execution order (1-based) */
|
|
169
|
-
order: z.number().int().positive(),
|
|
170
|
-
/** Agent to run (if applicable) */
|
|
171
|
-
agent: z.string().optional(),
|
|
172
|
-
/** Action to perform (if not an agent) */
|
|
173
|
-
action: z.string().optional(),
|
|
174
|
-
/** Step execution status */
|
|
175
|
-
status: z.enum(AGENT_RESULT_STATUSES),
|
|
176
|
-
});
|
|
177
|
-
/**
|
|
178
|
-
* Schema for execution plans.
|
|
179
|
-
* Proposed sequence of orchestration actions.
|
|
180
|
-
*/
|
|
181
|
-
export const ExecutionPlanSchema = z.object({
|
|
182
|
-
/** Work Unit ID this plan is for */
|
|
183
|
-
wuId: z.string().min(1),
|
|
184
|
-
/** Ordered list of steps to execute */
|
|
185
|
-
steps: z.array(ExecutionStepSchema),
|
|
186
|
-
/** Estimated token cost for the full plan */
|
|
187
|
-
estimatedTokens: z.number().int().nonnegative(),
|
|
188
|
-
});
|
|
189
|
-
/**
|
|
190
|
-
* Schema for user choices on execution plans.
|
|
191
|
-
*/
|
|
192
|
-
export const UserChoiceSchema = z.object({
|
|
193
|
-
/** User's choice */
|
|
194
|
-
choice: z.enum(USER_CHOICE_OPTIONS),
|
|
195
|
-
/** Modifications if choice is 'edit' */
|
|
196
|
-
modifications: z.array(z.string()).optional(),
|
|
197
|
-
});
|
|
198
|
-
/**
|
|
199
|
-
* Schema for complete dashboard data.
|
|
200
|
-
* Aggregates all data needed for dashboard rendering.
|
|
201
|
-
*/
|
|
202
|
-
export const DashboardDataSchema = z.object({
|
|
203
|
-
/** Global status metrics */
|
|
204
|
-
globalStatus: GlobalStatusSchema,
|
|
205
|
-
/** Per-agent metrics keyed by agent name */
|
|
206
|
-
agentMetrics: z.record(z.string(), AgentMetricSchema),
|
|
207
|
-
/** Progress for all active WUs */
|
|
208
|
-
wuProgress: z.array(WUProgressSchema),
|
|
209
|
-
/** Recent timeline events */
|
|
210
|
-
timeline: z.array(TimelineEventSchema),
|
|
211
|
-
/** Current alerts */
|
|
212
|
-
alerts: z.array(AlertSchema),
|
|
213
|
-
});
|
|
3
|
+
// WU-2717 (INIT-058 prep-E): Shim — authoritative schemas moved to pack.
|
|
4
|
+
export * from '@lumenflow/packs-software-delivery/domain/orchestration.schemas';
|
|
214
5
|
//# sourceMappingURL=orchestration.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.schemas.js","sourceRoot":"","sources":["../../src/domain/orchestration.schemas.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;
|
|
1
|
+
{"version":3,"file":"orchestration.schemas.js","sourceRoot":"","sources":["../../src/domain/orchestration.schemas.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,yEAAyE;AACzE,cAAc,iEAAiE,CAAC"}
|
|
@@ -1,135 +1,3 @@
|
|
|
1
1
|
/// <reference path="../types.d.ts" />
|
|
2
|
-
|
|
3
|
-
* Orchestration Domain Types
|
|
4
|
-
*
|
|
5
|
-
* TypeScript types inferred from Zod schemas.
|
|
6
|
-
* Single source of truth - schemas validate at runtime, types at compile time.
|
|
7
|
-
*
|
|
8
|
-
* @module orchestration.types
|
|
9
|
-
* @see {@link ./orchestration.schemas.ts} - Schemas these types are inferred from
|
|
10
|
-
* @see {@link ./orchestration.constants.ts} - Constants and derived types
|
|
11
|
-
*/
|
|
12
|
-
import type { z } from 'zod';
|
|
13
|
-
import type { GlobalStatusSchema, AgentMetricSchema, WUProgressSchema, TimelineEventSchema, AlertSchema, SuggestionSchema, ExecutionPlanSchema, UserChoiceSchema, DashboardDataSchema } from './orchestration.schemas.js';
|
|
14
|
-
export type { Lane, AgentName, SeverityLevel, AgentResultStatus, TimelineEventType, EventSeverityLevel, UserChoiceOption, MandatoryAgentName, } from './orchestration.constants.js';
|
|
15
|
-
export { LANES, AGENT_NAMES, SEVERITY_LEVELS, AGENT_RESULT_STATUSES, TIMELINE_EVENT_TYPES, EVENT_SEVERITY_LEVELS, USER_CHOICE_OPTIONS, MANDATORY_AGENT_NAMES, } from './orchestration.constants.js';
|
|
16
|
-
/**
|
|
17
|
-
* Global orchestration status.
|
|
18
|
-
* Shows high-level dashboard metrics at a glance.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* const status: GlobalStatus = {
|
|
22
|
-
* activeWUs: 2,
|
|
23
|
-
* completed24h: 5,
|
|
24
|
-
* blocked: 1,
|
|
25
|
-
* gatesFailing: 0,
|
|
26
|
-
* longestRunning: { wuId: 'WU-1234', lane: 'Intelligence', durationMs: 2700000 },
|
|
27
|
-
* pendingMandatory: [{ wuId: 'WU-1235', agent: 'security-auditor' }],
|
|
28
|
-
* };
|
|
29
|
-
*/
|
|
30
|
-
export type GlobalStatus = z.infer<typeof GlobalStatusSchema>;
|
|
31
|
-
/**
|
|
32
|
-
* Per-agent metrics for dashboard display.
|
|
33
|
-
* Tracks invocation counts, pass rates, and timing.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* const metric: AgentMetric = {
|
|
37
|
-
* invoked: 3,
|
|
38
|
-
* passRate: 100,
|
|
39
|
-
* avgDurationMs: 120000,
|
|
40
|
-
* lastRun: { wuId: 'WU-1234', timestamp: '2025-01-15T10:00:00Z', result: 'pass' },
|
|
41
|
-
* };
|
|
42
|
-
*/
|
|
43
|
-
export type AgentMetric = z.infer<typeof AgentMetricSchema>;
|
|
44
|
-
/**
|
|
45
|
-
* Work Unit progress for dashboard display.
|
|
46
|
-
* Shows DoD progress and agent status per WU.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* const progress: WUProgress = {
|
|
50
|
-
* wuId: 'WU-1234',
|
|
51
|
-
* lane: 'Intelligence',
|
|
52
|
-
* title: 'LLM Classification Feature',
|
|
53
|
-
* dodProgress: 8,
|
|
54
|
-
* dodTotal: 11,
|
|
55
|
-
* agents: { 'llm-reviewer': 'pass', 'code-reviewer': 'pending' },
|
|
56
|
-
* headline: 'Blocked on code-reviewer - awaiting approval',
|
|
57
|
-
* };
|
|
58
|
-
*/
|
|
59
|
-
export type WUProgress = z.infer<typeof WUProgressSchema>;
|
|
60
|
-
/**
|
|
61
|
-
* Timeline event for orchestration history.
|
|
62
|
-
* Records key events for dashboard display.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* const event: TimelineEvent = {
|
|
66
|
-
* timestamp: '2025-01-15T09:00:00Z',
|
|
67
|
-
* event: 'claim',
|
|
68
|
-
* wuId: 'WU-1234',
|
|
69
|
-
* detail: 'Claimed for Intelligence lane',
|
|
70
|
-
* severity: 'info',
|
|
71
|
-
* };
|
|
72
|
-
*/
|
|
73
|
-
export type TimelineEvent = z.infer<typeof TimelineEventSchema>;
|
|
74
|
-
/**
|
|
75
|
-
* Dashboard alert for items requiring attention.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* const alert: Alert = {
|
|
79
|
-
* severity: 'high',
|
|
80
|
-
* message: 'Mandatory agent not yet invoked',
|
|
81
|
-
* wuId: 'WU-1235',
|
|
82
|
-
* action: 'Run security-auditor before wu:done',
|
|
83
|
-
* };
|
|
84
|
-
*/
|
|
85
|
-
export type Alert = z.infer<typeof AlertSchema>;
|
|
86
|
-
/**
|
|
87
|
-
* Orchestration suggestion for next actions.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* const suggestion: Suggestion = {
|
|
91
|
-
* id: 'sug-001',
|
|
92
|
-
* priority: 'high',
|
|
93
|
-
* action: 'Run security-auditor',
|
|
94
|
-
* reason: 'WU touches auth paths',
|
|
95
|
-
* command: 'pnpm orchestrate:run security-auditor',
|
|
96
|
-
* };
|
|
97
|
-
*/
|
|
98
|
-
export type Suggestion = z.infer<typeof SuggestionSchema>;
|
|
99
|
-
/**
|
|
100
|
-
* Execution plan for proposed orchestration actions.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* const plan: ExecutionPlan = {
|
|
104
|
-
* wuId: 'WU-1234',
|
|
105
|
-
* steps: [
|
|
106
|
-
* { order: 1, agent: 'llm-reviewer', status: 'pending' },
|
|
107
|
-
* { order: 2, action: 'gates', status: 'pending' },
|
|
108
|
-
* ],
|
|
109
|
-
* estimatedTokens: 5000,
|
|
110
|
-
* };
|
|
111
|
-
*/
|
|
112
|
-
export type ExecutionPlan = z.infer<typeof ExecutionPlanSchema>;
|
|
113
|
-
/**
|
|
114
|
-
* User choice on execution plan confirmation.
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* const choice: UserChoice = { choice: 'approve' };
|
|
118
|
-
* const editChoice: UserChoice = { choice: 'edit', modifications: ['Skip step 2'] };
|
|
119
|
-
*/
|
|
120
|
-
export type UserChoice = z.infer<typeof UserChoiceSchema>;
|
|
121
|
-
/**
|
|
122
|
-
* Complete dashboard data aggregating all metrics.
|
|
123
|
-
* This is the main data structure passed to renderers.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* const data: DashboardData = {
|
|
127
|
-
* globalStatus: { ... },
|
|
128
|
-
* agentMetrics: { 'security-auditor': { ... } },
|
|
129
|
-
* wuProgress: [{ ... }],
|
|
130
|
-
* timeline: [{ ... }],
|
|
131
|
-
* alerts: [{ ... }],
|
|
132
|
-
* };
|
|
133
|
-
*/
|
|
134
|
-
export type DashboardData = z.infer<typeof DashboardDataSchema>;
|
|
2
|
+
export * from '@lumenflow/packs-software-delivery/domain/orchestration.types';
|
|
135
3
|
//# sourceMappingURL=orchestration.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.types.d.ts","sourceRoot":"","sources":["../../src/domain/orchestration.types.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"orchestration.types.d.ts","sourceRoot":"","sources":["../../src/domain/orchestration.types.ts"],"names":[],"mappings":"AAGA,cAAc,+DAA+D,CAAC"}
|