@lumenflow/packs-software-delivery 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/manifest-schema.d.ts +12 -0
- package/dist/manifest-schema.d.ts.map +1 -1
- package/dist/manifest-schema.js +10 -0
- package/dist/manifest-schema.js.map +1 -1
- package/dist/manifest.d.ts +21 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +92 -1
- package/dist/manifest.js.map +1 -1
- package/dist/src/commands/index.d.ts +2 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +5 -0
- package/dist/src/commands/index.js.map +1 -0
- package/dist/src/config/delivery-review-contract.d.ts +17 -0
- package/dist/src/config/delivery-review-contract.d.ts.map +1 -0
- package/dist/src/config/delivery-review-contract.js +19 -0
- package/dist/src/config/delivery-review-contract.js.map +1 -0
- package/dist/src/config/env-accessors.d.ts +16 -0
- package/dist/src/config/env-accessors.d.ts.map +1 -0
- package/dist/src/config/env-accessors.js +18 -0
- package/dist/src/config/env-accessors.js.map +1 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +8 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/normalize-config-keys.d.ts +16 -0
- package/dist/src/config/normalize-config-keys.d.ts.map +1 -0
- package/dist/src/config/normalize-config-keys.js +18 -0
- package/dist/src/config/normalize-config-keys.js.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.d.ts +190 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.d.ts.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.js +182 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.js.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema.d.ts +190 -0
- package/dist/src/config/schemas/lumenflow-config-schema.d.ts.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema.js +182 -0
- package/dist/src/config/schemas/lumenflow-config-schema.js.map +1 -0
- package/dist/src/config/workspace-reader.d.ts +56 -0
- package/dist/src/config/workspace-reader.d.ts.map +1 -0
- package/dist/src/config/workspace-reader.js +209 -0
- package/dist/src/config/workspace-reader.js.map +1 -0
- package/dist/src/constants/backlog-patterns.d.ts +21 -0
- package/dist/src/constants/backlog-patterns.d.ts.map +1 -0
- package/dist/src/constants/backlog-patterns.js +26 -0
- package/dist/src/constants/backlog-patterns.js.map +1 -0
- package/dist/src/constants/client-ids.d.ts +16 -0
- package/dist/src/constants/client-ids.d.ts.map +1 -0
- package/dist/src/constants/client-ids.js +16 -0
- package/dist/src/constants/client-ids.js.map +1 -0
- package/dist/src/constants/config-contract.d.ts +2 -0
- package/dist/src/constants/config-contract.d.ts.map +1 -0
- package/dist/src/constants/config-contract.js +7 -0
- package/dist/src/constants/config-contract.js.map +1 -0
- package/dist/src/constants/docs-layout-presets.d.ts +31 -0
- package/dist/src/constants/docs-layout-presets.d.ts.map +1 -0
- package/dist/src/constants/docs-layout-presets.js +41 -0
- package/dist/src/constants/docs-layout-presets.js.map +1 -0
- package/dist/src/constants/duration-constants.d.ts +11 -0
- package/dist/src/constants/duration-constants.d.ts.map +1 -0
- package/dist/src/constants/duration-constants.js +13 -0
- package/dist/src/constants/duration-constants.js.map +1 -0
- package/dist/src/constants/gate-constants.d.ts +24 -0
- package/dist/src/constants/gate-constants.d.ts.map +1 -0
- package/dist/src/constants/gate-constants.js +26 -0
- package/dist/src/constants/gate-constants.js.map +1 -0
- package/dist/src/constants/index.d.ts +18 -0
- package/dist/src/constants/index.d.ts.map +1 -0
- package/dist/src/constants/index.js +29 -0
- package/dist/src/constants/index.js.map +1 -0
- package/dist/src/constants/lock-constants.d.ts +29 -0
- package/dist/src/constants/lock-constants.d.ts.map +1 -0
- package/dist/src/constants/lock-constants.js +31 -0
- package/dist/src/constants/lock-constants.js.map +1 -0
- package/dist/src/constants/object-guards.d.ts +9 -0
- package/dist/src/constants/object-guards.d.ts.map +1 -0
- package/dist/src/constants/object-guards.js +11 -0
- package/dist/src/constants/object-guards.js.map +1 -0
- package/dist/src/constants/section-headings.d.ts +35 -0
- package/dist/src/constants/section-headings.d.ts.map +1 -0
- package/dist/src/constants/section-headings.js +82 -0
- package/dist/src/constants/section-headings.js.map +1 -0
- package/dist/src/constants/wu-cli-constants.d.ts +434 -0
- package/dist/src/constants/wu-cli-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-cli-constants.js +439 -0
- package/dist/src/constants/wu-cli-constants.js.map +1 -0
- package/dist/src/constants/wu-domain-constants.d.ts +296 -0
- package/dist/src/constants/wu-domain-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-domain-constants.js +400 -0
- package/dist/src/constants/wu-domain-constants.js.map +1 -0
- package/dist/src/constants/wu-git-constants.d.ts +2 -0
- package/dist/src/constants/wu-git-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-git-constants.js +7 -0
- package/dist/src/constants/wu-git-constants.js.map +1 -0
- package/dist/src/constants/wu-id-format.d.ts +138 -0
- package/dist/src/constants/wu-id-format.d.ts.map +1 -0
- package/dist/src/constants/wu-id-format.js +265 -0
- package/dist/src/constants/wu-id-format.js.map +1 -0
- package/dist/src/constants/wu-paths-constants.d.ts +254 -0
- package/dist/src/constants/wu-paths-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-paths-constants.js +276 -0
- package/dist/src/constants/wu-paths-constants.js.map +1 -0
- package/dist/src/constants/wu-statuses.d.ts +209 -0
- package/dist/src/constants/wu-statuses.d.ts.map +1 -0
- package/dist/src/constants/wu-statuses.js +245 -0
- package/dist/src/constants/wu-statuses.js.map +1 -0
- package/dist/src/constants/wu-type-helpers.d.ts +28 -0
- package/dist/src/constants/wu-type-helpers.d.ts.map +1 -0
- package/dist/src/constants/wu-type-helpers.js +49 -0
- package/dist/src/constants/wu-type-helpers.js.map +1 -0
- package/dist/src/constants/wu-ui-constants.d.ts +236 -0
- package/dist/src/constants/wu-ui-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-ui-constants.js +238 -0
- package/dist/src/constants/wu-ui-constants.js.map +1 -0
- package/dist/src/constants/wu-validation-constants.d.ts +61 -0
- package/dist/src/constants/wu-validation-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-validation-constants.js +69 -0
- package/dist/src/constants/wu-validation-constants.js.map +1 -0
- package/dist/src/domain/index.d.ts +4 -0
- package/dist/src/domain/index.d.ts.map +1 -0
- package/dist/src/domain/index.js +6 -0
- package/dist/src/domain/index.js.map +1 -0
- package/dist/src/domain/orchestration.constants.d.ts +111 -0
- package/dist/src/domain/orchestration.constants.d.ts.map +1 -0
- package/dist/src/domain/orchestration.constants.js +130 -0
- package/dist/src/domain/orchestration.constants.js.map +1 -0
- package/dist/src/domain/orchestration.schemas.d.ts +307 -0
- package/dist/src/domain/orchestration.schemas.d.ts.map +1 -0
- package/dist/src/domain/orchestration.schemas.js +214 -0
- package/dist/src/domain/orchestration.schemas.js.map +1 -0
- package/dist/src/domain/orchestration.types.d.ts +134 -0
- package/dist/src/domain/orchestration.types.d.ts.map +1 -0
- package/dist/src/domain/orchestration.types.js +5 -0
- package/dist/src/domain/orchestration.types.js.map +1 -0
- package/dist/src/methodology/incremental-test.d.ts +33 -0
- package/dist/src/methodology/incremental-test.d.ts.map +1 -0
- package/dist/src/methodology/incremental-test.js +73 -0
- package/dist/src/methodology/incremental-test.js.map +1 -0
- package/dist/src/methodology/index.d.ts +3 -0
- package/dist/src/methodology/index.d.ts.map +1 -0
- package/dist/src/methodology/index.js +6 -0
- package/dist/src/methodology/index.js.map +1 -0
- package/dist/src/methodology/manual-test-validator.d.ts +97 -0
- package/dist/src/methodology/manual-test-validator.d.ts.map +1 -0
- package/dist/src/methodology/manual-test-validator.js +248 -0
- package/dist/src/methodology/manual-test-validator.js.map +1 -0
- package/dist/src/policy/coverage-gate.d.ts +127 -0
- package/dist/src/policy/coverage-gate.d.ts.map +1 -0
- package/dist/src/policy/coverage-gate.js +211 -0
- package/dist/src/policy/coverage-gate.js.map +1 -0
- package/dist/src/policy/gates-agent-mode.d.ts +107 -0
- package/dist/src/policy/gates-agent-mode.d.ts.map +1 -0
- package/dist/src/policy/gates-agent-mode.js +138 -0
- package/dist/src/policy/gates-agent-mode.js.map +1 -0
- package/dist/src/policy/gates-config-internal.d.ts +54 -0
- package/dist/src/policy/gates-config-internal.d.ts.map +1 -0
- package/dist/src/policy/gates-config-internal.js +108 -0
- package/dist/src/policy/gates-config-internal.js.map +1 -0
- package/dist/src/policy/gates-config.d.ts +67 -0
- package/dist/src/policy/gates-config.d.ts.map +1 -0
- package/dist/src/policy/gates-config.js +193 -0
- package/dist/src/policy/gates-config.js.map +1 -0
- package/dist/src/policy/gates-coverage.d.ts +48 -0
- package/dist/src/policy/gates-coverage.d.ts.map +1 -0
- package/dist/src/policy/gates-coverage.js +182 -0
- package/dist/src/policy/gates-coverage.js.map +1 -0
- package/dist/src/policy/gates-presets.d.ts +51 -0
- package/dist/src/policy/gates-presets.d.ts.map +1 -0
- package/dist/src/policy/gates-presets.js +117 -0
- package/dist/src/policy/gates-presets.js.map +1 -0
- package/dist/src/policy/gates-schemas.d.ts +142 -0
- package/dist/src/policy/gates-schemas.d.ts.map +1 -0
- package/dist/src/policy/gates-schemas.js +67 -0
- package/dist/src/policy/gates-schemas.js.map +1 -0
- package/dist/src/policy/index.d.ts +19 -0
- package/dist/src/policy/index.d.ts.map +1 -0
- package/dist/src/policy/index.js +21 -0
- package/dist/src/policy/index.js.map +1 -0
- package/dist/src/policy/package-manager-resolver.d.ts +79 -0
- package/dist/src/policy/package-manager-resolver.d.ts.map +1 -0
- package/dist/src/policy/package-manager-resolver.js +245 -0
- package/dist/src/policy/package-manager-resolver.js.map +1 -0
- package/dist/src/policy/resolve-policy.d.ts +337 -0
- package/dist/src/policy/resolve-policy.d.ts.map +1 -0
- package/dist/src/policy/resolve-policy.js +353 -0
- package/dist/src/policy/resolve-policy.js.map +1 -0
- package/dist/src/ports/config.ports.d.ts +83 -0
- package/dist/src/ports/config.ports.d.ts.map +1 -0
- package/dist/src/ports/config.ports.js +4 -0
- package/dist/src/ports/config.ports.js.map +1 -0
- package/dist/src/ports/dashboard-renderer.port.d.ts +113 -0
- package/dist/src/ports/dashboard-renderer.port.d.ts.map +1 -0
- package/dist/src/ports/dashboard-renderer.port.js +4 -0
- package/dist/src/ports/dashboard-renderer.port.js.map +1 -0
- package/dist/src/ports/index.d.ts +5 -0
- package/dist/src/ports/index.d.ts.map +1 -0
- package/dist/src/ports/index.js +10 -0
- package/dist/src/ports/index.js.map +1 -0
- package/dist/src/ports/sync-validator.ports.d.ts +52 -0
- package/dist/src/ports/sync-validator.ports.d.ts.map +1 -0
- package/dist/src/ports/sync-validator.ports.js +4 -0
- package/dist/src/ports/sync-validator.ports.js.map +1 -0
- package/dist/src/ports/wu-helpers.ports.d.ts +157 -0
- package/dist/src/ports/wu-helpers.ports.d.ts.map +1 -0
- package/dist/src/ports/wu-helpers.ports.js +4 -0
- package/dist/src/ports/wu-helpers.ports.js.map +1 -0
- package/dist/src/ports/wu-state.ports.d.ts +209 -0
- package/dist/src/ports/wu-state.ports.d.ts.map +1 -0
- package/dist/src/ports/wu-state.ports.js +4 -0
- package/dist/src/ports/wu-state.ports.js.map +1 -0
- package/dist/src/primitives/index.d.ts +2 -0
- package/dist/src/primitives/index.d.ts.map +1 -0
- package/dist/src/primitives/index.js +5 -0
- package/dist/src/primitives/index.js.map +1 -0
- package/dist/src/runtime/index.d.ts +2 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +6 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/work-classifier.d.ts +103 -0
- package/dist/src/runtime/work-classifier.d.ts.map +1 -0
- package/dist/src/runtime/work-classifier.js +427 -0
- package/dist/src/runtime/work-classifier.js.map +1 -0
- package/dist/src/sandbox/index.d.ts +6 -0
- package/dist/src/sandbox/index.d.ts.map +1 -0
- package/dist/src/sandbox/index.js +10 -0
- package/dist/src/sandbox/index.js.map +1 -0
- package/dist/src/sandbox/sandbox-allowlist.d.ts +16 -0
- package/dist/src/sandbox/sandbox-allowlist.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-allowlist.js +77 -0
- package/dist/src/sandbox/sandbox-allowlist.js.map +1 -0
- package/dist/src/sandbox/sandbox-backend-linux.d.ts +6 -0
- package/dist/src/sandbox/sandbox-backend-linux.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-backend-linux.js +67 -0
- package/dist/src/sandbox/sandbox-backend-linux.js.map +1 -0
- package/dist/src/sandbox/sandbox-backend-macos.d.ts +6 -0
- package/dist/src/sandbox/sandbox-backend-macos.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-backend-macos.js +112 -0
- package/dist/src/sandbox/sandbox-backend-macos.js.map +1 -0
- package/dist/src/sandbox/sandbox-backend-windows.d.ts +6 -0
- package/dist/src/sandbox/sandbox-backend-windows.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-backend-windows.js +30 -0
- package/dist/src/sandbox/sandbox-backend-windows.js.map +1 -0
- package/dist/src/sandbox/sandbox-profile.d.ts +58 -0
- package/dist/src/sandbox/sandbox-profile.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-profile.js +69 -0
- package/dist/src/sandbox/sandbox-profile.js.map +1 -0
- package/dist/src/schemas/index.d.ts +2 -0
- package/dist/src/schemas/index.d.ts.map +1 -0
- package/dist/src/schemas/index.js +5 -0
- package/dist/src/schemas/index.js.map +1 -0
- package/dist/src/state/date-utils.d.ts +66 -0
- package/dist/src/state/date-utils.d.ts.map +1 -0
- package/dist/src/state/date-utils.js +143 -0
- package/dist/src/state/date-utils.js.map +1 -0
- package/dist/src/state/index.d.ts +8 -0
- package/dist/src/state/index.d.ts.map +1 -0
- package/dist/src/state/index.js +15 -0
- package/dist/src/state/index.js.map +1 -0
- package/dist/src/state/state-machine.d.ts +14 -0
- package/dist/src/state/state-machine.d.ts.map +1 -0
- package/dist/src/state/state-machine.js +92 -0
- package/dist/src/state/state-machine.js.map +1 -0
- package/dist/src/state/wu-doc-types.d.ts +48 -0
- package/dist/src/state/wu-doc-types.d.ts.map +1 -0
- package/dist/src/state/wu-doc-types.js +4 -0
- package/dist/src/state/wu-doc-types.js.map +1 -0
- package/dist/src/state/wu-paths.d.ts +275 -0
- package/dist/src/state/wu-paths.d.ts.map +1 -0
- package/dist/src/state/wu-paths.js +335 -0
- package/dist/src/state/wu-paths.js.map +1 -0
- package/dist/src/state/wu-schema.d.ts +831 -0
- package/dist/src/state/wu-schema.d.ts.map +1 -0
- package/dist/src/state/wu-schema.js +934 -0
- package/dist/src/state/wu-schema.js.map +1 -0
- package/dist/src/state/wu-state-schema.d.ts +292 -0
- package/dist/src/state/wu-state-schema.d.ts.map +1 -0
- package/dist/src/state/wu-state-schema.js +215 -0
- package/dist/src/state/wu-state-schema.js.map +1 -0
- package/dist/src/state/wu-yaml.d.ts +113 -0
- package/dist/src/state/wu-yaml.d.ts.map +1 -0
- package/dist/src/state/wu-yaml.js +307 -0
- package/dist/src/state/wu-yaml.js.map +1 -0
- package/dist/tool-impl/wu-lifecycle-tools.d.ts +11 -0
- package/dist/tool-impl/wu-lifecycle-tools.d.ts.map +1 -1
- package/dist/tool-impl/wu-lifecycle-tools.js +17 -0
- package/dist/tool-impl/wu-lifecycle-tools.js.map +1 -1
- package/manifest.yaml +210 -230
- package/package.json +88 -3
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Total number of Definition of Done checkpoints.
|
|
3
|
+
* Used by dashboard to show DoD progress (X/11).
|
|
4
|
+
*/
|
|
5
|
+
export declare const DOD_TOTAL = 11;
|
|
6
|
+
/**
|
|
7
|
+
* Valid lane names in the LumenFlow system.
|
|
8
|
+
* Used for type-safe lane validation.
|
|
9
|
+
*
|
|
10
|
+
* Note: This should match the lanes defined in workspace.yaml.
|
|
11
|
+
* These are LumenFlow framework lanes, not application-specific lanes.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LANES: readonly ["Framework: Core", "Framework: CLI", "Framework: Memory", "Framework: Agent", "Framework: Metrics", "Framework: Initiatives", "Framework: Shims", "Operations: Infrastructure", "Operations: CI/CD", "Content: Documentation"];
|
|
14
|
+
/** Type for valid lane names */
|
|
15
|
+
export type Lane = (typeof LANES)[number];
|
|
16
|
+
/**
|
|
17
|
+
* Known agent names in the orchestration system.
|
|
18
|
+
* Includes both mandatory (Tier 1) and suggested (Tier 2) agents.
|
|
19
|
+
*
|
|
20
|
+
* Note: These are LumenFlow framework agents defined in .claude/agents/.
|
|
21
|
+
* Application-specific agents should be configured separately.
|
|
22
|
+
*/
|
|
23
|
+
export declare const AGENT_NAMES: readonly ["general-purpose", "lumenflow-pm", "test-engineer", "code-reviewer", "bug-triage", "lumenflow-enforcer", "lumenflow-doc-sync"];
|
|
24
|
+
/** Type for agent names */
|
|
25
|
+
export type AgentName = (typeof AGENT_NAMES)[number];
|
|
26
|
+
/**
|
|
27
|
+
* Alert severity levels for dashboard display.
|
|
28
|
+
* HIGH = action required immediately
|
|
29
|
+
* MEDIUM = action suggested
|
|
30
|
+
* LOW = informational
|
|
31
|
+
*/
|
|
32
|
+
export declare const SEVERITY_LEVELS: readonly ["high", "medium", "low"];
|
|
33
|
+
/** Type for severity levels */
|
|
34
|
+
export type SeverityLevel = (typeof SEVERITY_LEVELS)[number];
|
|
35
|
+
/**
|
|
36
|
+
* Default timeline window for dashboard display (hours).
|
|
37
|
+
*/
|
|
38
|
+
export declare const TIMELINE_WINDOW_HOURS = 24;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum alerts to display in dashboard.
|
|
41
|
+
*/
|
|
42
|
+
export declare const MAX_ALERTS_DISPLAY = 10;
|
|
43
|
+
/**
|
|
44
|
+
* Agent result statuses for WU progress tracking.
|
|
45
|
+
*/
|
|
46
|
+
export declare const AGENT_RESULT_STATUSES: readonly ["pending", "pass", "fail", "skipped"];
|
|
47
|
+
/** Type for agent result statuses */
|
|
48
|
+
export type AgentResultStatus = (typeof AGENT_RESULT_STATUSES)[number];
|
|
49
|
+
/**
|
|
50
|
+
* Timeline event types for orchestration history.
|
|
51
|
+
*/
|
|
52
|
+
export declare const TIMELINE_EVENT_TYPES: readonly ["claim", "done", "block", "agent", "gates"];
|
|
53
|
+
/** Type for timeline event types */
|
|
54
|
+
export type TimelineEventType = (typeof TIMELINE_EVENT_TYPES)[number];
|
|
55
|
+
/**
|
|
56
|
+
* Event severity levels for timeline display.
|
|
57
|
+
*/
|
|
58
|
+
export declare const EVENT_SEVERITY_LEVELS: readonly ["info", "warning", "error"];
|
|
59
|
+
/** Type for event severity levels */
|
|
60
|
+
export type EventSeverityLevel = (typeof EVENT_SEVERITY_LEVELS)[number];
|
|
61
|
+
/**
|
|
62
|
+
* User choice options for execution plan confirmation.
|
|
63
|
+
*/
|
|
64
|
+
export declare const USER_CHOICE_OPTIONS: readonly ["approve", "reject", "edit"];
|
|
65
|
+
/** Type for user choice options */
|
|
66
|
+
export type UserChoiceOption = (typeof USER_CHOICE_OPTIONS)[number];
|
|
67
|
+
/**
|
|
68
|
+
* Mandatory agent names (subset of AGENT_NAMES)
|
|
69
|
+
*
|
|
70
|
+
* Note: For LumenFlow framework development, mandatory agents are not currently
|
|
71
|
+
* enforced since this is a workflow framework, not an application with domain-specific concerns.
|
|
72
|
+
* Projects using LumenFlow can define their own mandatory agents in their config.
|
|
73
|
+
*
|
|
74
|
+
* The test-engineer and code-reviewer agents are suggested but not mandatory.
|
|
75
|
+
*/
|
|
76
|
+
export declare const MANDATORY_AGENT_NAMES: readonly [];
|
|
77
|
+
/** Type for mandatory agent names */
|
|
78
|
+
export type MandatoryAgentName = (typeof MANDATORY_AGENT_NAMES)[number];
|
|
79
|
+
/**
|
|
80
|
+
* Mandatory agent triggers - glob patterns that indicate when agents must be invoked.
|
|
81
|
+
* Uses minimatch patterns (NOT regex) for file path matching.
|
|
82
|
+
*
|
|
83
|
+
* Note: For LumenFlow framework development, this is empty since we don't have
|
|
84
|
+
* application-specific concerns. Projects using LumenFlow
|
|
85
|
+
* should configure their own triggers based on their domain requirements.
|
|
86
|
+
*
|
|
87
|
+
* Example application-specific triggers (configure in your project):
|
|
88
|
+
* - security-auditor: supabase/migrations/**, auth/**, rls/**
|
|
89
|
+
* - llm-reviewer: prompts/**, llm/**
|
|
90
|
+
*
|
|
91
|
+
* Usage:
|
|
92
|
+
* ```typescript
|
|
93
|
+
* import { minimatch } from 'minimatch';
|
|
94
|
+
* const triggers = MANDATORY_TRIGGERS['my-agent'];
|
|
95
|
+
* const shouldTrigger = triggers?.some(pattern => minimatch(filePath, pattern));
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare const MANDATORY_TRIGGERS: Record<string, readonly string[]>;
|
|
99
|
+
/**
|
|
100
|
+
* File system paths for metrics collection.
|
|
101
|
+
* Used by FileSystemMetricsCollector to avoid hardcoded strings.
|
|
102
|
+
*/
|
|
103
|
+
export declare const FILESYSTEM_PATHS: {
|
|
104
|
+
WU_DIR: string;
|
|
105
|
+
STATUS_FILE: string;
|
|
106
|
+
BACKLOG_FILE: string;
|
|
107
|
+
TELEMETRY_DIR: string;
|
|
108
|
+
STAMPS_DIR: string;
|
|
109
|
+
SESSION_FILE: string;
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=orchestration.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration.constants.d.ts","sourceRoot":"","sources":["../../../src/domain/orchestration.constants.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,0OAWR,CAAC;AAEX,gCAAgC;AAChC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,0IAQd,CAAC;AAEX,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,oCAAqC,CAAC;AAElE,+BAA+B;AAC/B,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAAkD,CAAC;AAErF,qCAAqC;AACrC,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,oBAAoB,uDAAwD,CAAC;AAE1F,oCAAoC;AACpC,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,qBAAqB,uCAAwC,CAAC;AAE3E,qCAAqC;AACrC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,mBAAmB,wCAAyC,CAAC;AAE1E,mCAAmC;AACnC,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,aAAc,CAAC;AAEjD,qCAAqC;AACrC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAGhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;CAO5B,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
/**
|
|
4
|
+
* Orchestration Domain Constants
|
|
5
|
+
*
|
|
6
|
+
* Centralised constants for the agent orchestration dashboard.
|
|
7
|
+
* Avoids magic numbers and hardcoded strings throughout the orchestration layer.
|
|
8
|
+
*
|
|
9
|
+
* @module orchestration.constants
|
|
10
|
+
* @see {@link ../ports/dashboard-renderer.port.ts} - Uses these constants
|
|
11
|
+
* @see {@link ../ports/metrics-collector.port.ts} - Uses these constants
|
|
12
|
+
*/
|
|
13
|
+
import { DIRECTORIES, LUMENFLOW_PATHS } from '../constants/wu-paths-constants.js';
|
|
14
|
+
/**
|
|
15
|
+
* Total number of Definition of Done checkpoints.
|
|
16
|
+
* Used by dashboard to show DoD progress (X/11).
|
|
17
|
+
*/
|
|
18
|
+
export const DOD_TOTAL = 11;
|
|
19
|
+
/**
|
|
20
|
+
* Valid lane names in the LumenFlow system.
|
|
21
|
+
* Used for type-safe lane validation.
|
|
22
|
+
*
|
|
23
|
+
* Note: This should match the lanes defined in workspace.yaml.
|
|
24
|
+
* These are LumenFlow framework lanes, not application-specific lanes.
|
|
25
|
+
*/
|
|
26
|
+
export const LANES = [
|
|
27
|
+
'Framework: Core',
|
|
28
|
+
'Framework: CLI',
|
|
29
|
+
'Framework: Memory',
|
|
30
|
+
'Framework: Agent',
|
|
31
|
+
'Framework: Metrics',
|
|
32
|
+
'Framework: Initiatives',
|
|
33
|
+
'Framework: Shims',
|
|
34
|
+
'Operations: Infrastructure',
|
|
35
|
+
'Operations: CI/CD',
|
|
36
|
+
'Content: Documentation',
|
|
37
|
+
];
|
|
38
|
+
/**
|
|
39
|
+
* Known agent names in the orchestration system.
|
|
40
|
+
* Includes both mandatory (Tier 1) and suggested (Tier 2) agents.
|
|
41
|
+
*
|
|
42
|
+
* Note: These are LumenFlow framework agents defined in .claude/agents/.
|
|
43
|
+
* Application-specific agents should be configured separately.
|
|
44
|
+
*/
|
|
45
|
+
export const AGENT_NAMES = [
|
|
46
|
+
'general-purpose',
|
|
47
|
+
'lumenflow-pm',
|
|
48
|
+
'test-engineer',
|
|
49
|
+
'code-reviewer',
|
|
50
|
+
'bug-triage',
|
|
51
|
+
'lumenflow-enforcer',
|
|
52
|
+
'lumenflow-doc-sync',
|
|
53
|
+
];
|
|
54
|
+
/**
|
|
55
|
+
* Alert severity levels for dashboard display.
|
|
56
|
+
* HIGH = action required immediately
|
|
57
|
+
* MEDIUM = action suggested
|
|
58
|
+
* LOW = informational
|
|
59
|
+
*/
|
|
60
|
+
export const SEVERITY_LEVELS = ['high', 'medium', 'low'];
|
|
61
|
+
/**
|
|
62
|
+
* Default timeline window for dashboard display (hours).
|
|
63
|
+
*/
|
|
64
|
+
export const TIMELINE_WINDOW_HOURS = 24;
|
|
65
|
+
/**
|
|
66
|
+
* Maximum alerts to display in dashboard.
|
|
67
|
+
*/
|
|
68
|
+
export const MAX_ALERTS_DISPLAY = 10;
|
|
69
|
+
/**
|
|
70
|
+
* Agent result statuses for WU progress tracking.
|
|
71
|
+
*/
|
|
72
|
+
export const AGENT_RESULT_STATUSES = ['pending', 'pass', 'fail', 'skipped'];
|
|
73
|
+
/**
|
|
74
|
+
* Timeline event types for orchestration history.
|
|
75
|
+
*/
|
|
76
|
+
export const TIMELINE_EVENT_TYPES = ['claim', 'done', 'block', 'agent', 'gates'];
|
|
77
|
+
/**
|
|
78
|
+
* Event severity levels for timeline display.
|
|
79
|
+
*/
|
|
80
|
+
export const EVENT_SEVERITY_LEVELS = ['info', 'warning', 'error'];
|
|
81
|
+
/**
|
|
82
|
+
* User choice options for execution plan confirmation.
|
|
83
|
+
*/
|
|
84
|
+
export const USER_CHOICE_OPTIONS = ['approve', 'reject', 'edit'];
|
|
85
|
+
/**
|
|
86
|
+
* Mandatory agent names (subset of AGENT_NAMES)
|
|
87
|
+
*
|
|
88
|
+
* Note: For LumenFlow framework development, mandatory agents are not currently
|
|
89
|
+
* enforced since this is a workflow framework, not an application with domain-specific concerns.
|
|
90
|
+
* Projects using LumenFlow can define their own mandatory agents in their config.
|
|
91
|
+
*
|
|
92
|
+
* The test-engineer and code-reviewer agents are suggested but not mandatory.
|
|
93
|
+
*/
|
|
94
|
+
export const MANDATORY_AGENT_NAMES = [];
|
|
95
|
+
/**
|
|
96
|
+
* Mandatory agent triggers - glob patterns that indicate when agents must be invoked.
|
|
97
|
+
* Uses minimatch patterns (NOT regex) for file path matching.
|
|
98
|
+
*
|
|
99
|
+
* Note: For LumenFlow framework development, this is empty since we don't have
|
|
100
|
+
* application-specific concerns. Projects using LumenFlow
|
|
101
|
+
* should configure their own triggers based on their domain requirements.
|
|
102
|
+
*
|
|
103
|
+
* Example application-specific triggers (configure in your project):
|
|
104
|
+
* - security-auditor: supabase/migrations/**, auth/**, rls/**
|
|
105
|
+
* - llm-reviewer: prompts/**, llm/**
|
|
106
|
+
*
|
|
107
|
+
* Usage:
|
|
108
|
+
* ```typescript
|
|
109
|
+
* import { minimatch } from 'minimatch';
|
|
110
|
+
* const triggers = MANDATORY_TRIGGERS['my-agent'];
|
|
111
|
+
* const shouldTrigger = triggers?.some(pattern => minimatch(filePath, pattern));
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export const MANDATORY_TRIGGERS = {
|
|
115
|
+
// No mandatory triggers for LumenFlow framework development.
|
|
116
|
+
// Projects should configure their own triggers based on their domain.
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* File system paths for metrics collection.
|
|
120
|
+
* Used by FileSystemMetricsCollector to avoid hardcoded strings.
|
|
121
|
+
*/
|
|
122
|
+
export const FILESYSTEM_PATHS = {
|
|
123
|
+
WU_DIR: DIRECTORIES.WU_DIR,
|
|
124
|
+
STATUS_FILE: DIRECTORIES.STATUS_PATH,
|
|
125
|
+
BACKLOG_FILE: DIRECTORIES.BACKLOG_PATH,
|
|
126
|
+
TELEMETRY_DIR: LUMENFLOW_PATHS.TELEMETRY,
|
|
127
|
+
STAMPS_DIR: LUMENFLOW_PATHS.STAMPS_DIR,
|
|
128
|
+
SESSION_FILE: LUMENFLOW_PATHS.SESSION_CURRENT,
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=orchestration.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration.constants.js","sourceRoot":"","sources":["../../../src/domain/orchestration.constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAElF;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,oBAAoB;IACpB,wBAAwB;IACxB,kBAAkB;IAClB,4BAA4B;IAC5B,mBAAmB;IACnB,wBAAwB;CAChB,CAAC;AAKX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,oBAAoB;CACZ,CAAC;AAKX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAKlE;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAKrF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAK1F;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAK3E;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAK1E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAW,CAAC;AAKjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsC;AACnE,6DAA6D;AAC7D,sEAAsE;CACvE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,WAAW,CAAC,MAAM;IAC1B,WAAW,EAAE,WAAW,CAAC,WAAW;IACpC,YAAY,EAAE,WAAW,CAAC,YAAY;IACtC,aAAa,EAAE,eAAe,CAAC,SAAS;IACxC,UAAU,EAAE,eAAe,CAAC,UAAU;IACtC,YAAY,EAAE,eAAe,CAAC,eAAe;CAC9C,CAAC"}
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestration Domain Schemas
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for runtime validation of orchestration domain types.
|
|
5
|
+
* Single source of truth - types are inferred from these schemas.
|
|
6
|
+
*
|
|
7
|
+
* @module orchestration.schemas
|
|
8
|
+
* @see {@link ./orchestration.types.ts} - Types inferred from these schemas
|
|
9
|
+
* @see {@link ./orchestration.constants.ts} - Constants used in validation
|
|
10
|
+
*/
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
/**
|
|
13
|
+
* Schema for global orchestration status.
|
|
14
|
+
* Shows high-level dashboard metrics at a glance.
|
|
15
|
+
*/
|
|
16
|
+
export declare const GlobalStatusSchema: z.ZodObject<{
|
|
17
|
+
activeWUs: z.ZodNumber;
|
|
18
|
+
completed24h: z.ZodNumber;
|
|
19
|
+
blocked: z.ZodNumber;
|
|
20
|
+
gatesFailing: z.ZodNumber;
|
|
21
|
+
longestRunning: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
wuId: z.ZodString;
|
|
23
|
+
lane: z.ZodEnum<{
|
|
24
|
+
"Framework: Core": "Framework: Core";
|
|
25
|
+
"Framework: CLI": "Framework: CLI";
|
|
26
|
+
"Framework: Memory": "Framework: Memory";
|
|
27
|
+
"Framework: Agent": "Framework: Agent";
|
|
28
|
+
"Framework: Metrics": "Framework: Metrics";
|
|
29
|
+
"Framework: Initiatives": "Framework: Initiatives";
|
|
30
|
+
"Framework: Shims": "Framework: Shims";
|
|
31
|
+
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
32
|
+
"Operations: CI/CD": "Operations: CI/CD";
|
|
33
|
+
"Content: Documentation": "Content: Documentation";
|
|
34
|
+
}>;
|
|
35
|
+
durationMs: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
pendingMandatory: z.ZodArray<z.ZodObject<{
|
|
38
|
+
wuId: z.ZodString;
|
|
39
|
+
agent: z.ZodEnum<{
|
|
40
|
+
"general-purpose": "general-purpose";
|
|
41
|
+
"lumenflow-pm": "lumenflow-pm";
|
|
42
|
+
"test-engineer": "test-engineer";
|
|
43
|
+
"code-reviewer": "code-reviewer";
|
|
44
|
+
"bug-triage": "bug-triage";
|
|
45
|
+
"lumenflow-enforcer": "lumenflow-enforcer";
|
|
46
|
+
"lumenflow-doc-sync": "lumenflow-doc-sync";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
activeSession: z.ZodNullable<z.ZodObject<{
|
|
50
|
+
sessionId: z.ZodString;
|
|
51
|
+
wuId: z.ZodString;
|
|
52
|
+
started: z.ZodString;
|
|
53
|
+
contextTier: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
54
|
+
incidentsLogged: z.ZodNumber;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
worktreesWithUncommittedChanges: z.ZodArray<z.ZodObject<{
|
|
57
|
+
wuId: z.ZodString;
|
|
58
|
+
worktreePath: z.ZodString;
|
|
59
|
+
uncommittedFileCount: z.ZodNumber;
|
|
60
|
+
lastActivityTimestamp: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
/**
|
|
64
|
+
* Schema for per-agent metrics.
|
|
65
|
+
* Tracks invocation counts, pass rates, and timing.
|
|
66
|
+
*/
|
|
67
|
+
export declare const AgentMetricSchema: z.ZodObject<{
|
|
68
|
+
invoked: z.ZodNumber;
|
|
69
|
+
passRate: z.ZodNumber;
|
|
70
|
+
avgDurationMs: z.ZodNumber;
|
|
71
|
+
lastRun: z.ZodNullable<z.ZodObject<{
|
|
72
|
+
wuId: z.ZodString;
|
|
73
|
+
timestamp: z.ZodString;
|
|
74
|
+
result: z.ZodEnum<{
|
|
75
|
+
pass: "pass";
|
|
76
|
+
fail: "fail";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
/**
|
|
81
|
+
* Schema for WU progress tracking.
|
|
82
|
+
* Shows DoD progress and agent status per WU.
|
|
83
|
+
*/
|
|
84
|
+
export declare const WUProgressSchema: z.ZodObject<{
|
|
85
|
+
wuId: z.ZodString;
|
|
86
|
+
lane: z.ZodEnum<{
|
|
87
|
+
"Framework: Core": "Framework: Core";
|
|
88
|
+
"Framework: CLI": "Framework: CLI";
|
|
89
|
+
"Framework: Memory": "Framework: Memory";
|
|
90
|
+
"Framework: Agent": "Framework: Agent";
|
|
91
|
+
"Framework: Metrics": "Framework: Metrics";
|
|
92
|
+
"Framework: Initiatives": "Framework: Initiatives";
|
|
93
|
+
"Framework: Shims": "Framework: Shims";
|
|
94
|
+
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
95
|
+
"Operations: CI/CD": "Operations: CI/CD";
|
|
96
|
+
"Content: Documentation": "Content: Documentation";
|
|
97
|
+
}>;
|
|
98
|
+
title: z.ZodString;
|
|
99
|
+
dodProgress: z.ZodNumber;
|
|
100
|
+
dodTotal: z.ZodLiteral<11>;
|
|
101
|
+
agents: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
102
|
+
pending: "pending";
|
|
103
|
+
pass: "pass";
|
|
104
|
+
fail: "fail";
|
|
105
|
+
skipped: "skipped";
|
|
106
|
+
}>>;
|
|
107
|
+
headline: z.ZodString;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
/**
|
|
110
|
+
* Schema for timeline events.
|
|
111
|
+
* Records orchestration history for dashboard display.
|
|
112
|
+
*/
|
|
113
|
+
export declare const TimelineEventSchema: z.ZodObject<{
|
|
114
|
+
timestamp: z.ZodString;
|
|
115
|
+
event: z.ZodEnum<{
|
|
116
|
+
gates: "gates";
|
|
117
|
+
claim: "claim";
|
|
118
|
+
done: "done";
|
|
119
|
+
block: "block";
|
|
120
|
+
agent: "agent";
|
|
121
|
+
}>;
|
|
122
|
+
wuId: z.ZodString;
|
|
123
|
+
detail: z.ZodString;
|
|
124
|
+
severity: z.ZodEnum<{
|
|
125
|
+
error: "error";
|
|
126
|
+
info: "info";
|
|
127
|
+
warning: "warning";
|
|
128
|
+
}>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
/**
|
|
131
|
+
* Schema for dashboard alerts.
|
|
132
|
+
* Highlights items requiring attention.
|
|
133
|
+
*/
|
|
134
|
+
export declare const AlertSchema: z.ZodObject<{
|
|
135
|
+
severity: z.ZodEnum<{
|
|
136
|
+
high: "high";
|
|
137
|
+
medium: "medium";
|
|
138
|
+
low: "low";
|
|
139
|
+
}>;
|
|
140
|
+
message: z.ZodString;
|
|
141
|
+
wuId: z.ZodString;
|
|
142
|
+
action: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
/**
|
|
145
|
+
* Schema for orchestration suggestions.
|
|
146
|
+
* Recommendations for next actions.
|
|
147
|
+
*/
|
|
148
|
+
export declare const SuggestionSchema: z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
priority: z.ZodEnum<{
|
|
151
|
+
high: "high";
|
|
152
|
+
medium: "medium";
|
|
153
|
+
low: "low";
|
|
154
|
+
}>;
|
|
155
|
+
action: z.ZodString;
|
|
156
|
+
reason: z.ZodString;
|
|
157
|
+
command: z.ZodString;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
/**
|
|
160
|
+
* Schema for execution plans.
|
|
161
|
+
* Proposed sequence of orchestration actions.
|
|
162
|
+
*/
|
|
163
|
+
export declare const ExecutionPlanSchema: z.ZodObject<{
|
|
164
|
+
wuId: z.ZodString;
|
|
165
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
166
|
+
order: z.ZodNumber;
|
|
167
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
168
|
+
action: z.ZodOptional<z.ZodString>;
|
|
169
|
+
status: z.ZodEnum<{
|
|
170
|
+
pending: "pending";
|
|
171
|
+
pass: "pass";
|
|
172
|
+
fail: "fail";
|
|
173
|
+
skipped: "skipped";
|
|
174
|
+
}>;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
estimatedTokens: z.ZodNumber;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
/**
|
|
179
|
+
* Schema for user choices on execution plans.
|
|
180
|
+
*/
|
|
181
|
+
export declare const UserChoiceSchema: z.ZodObject<{
|
|
182
|
+
choice: z.ZodEnum<{
|
|
183
|
+
approve: "approve";
|
|
184
|
+
reject: "reject";
|
|
185
|
+
edit: "edit";
|
|
186
|
+
}>;
|
|
187
|
+
modifications: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
/**
|
|
190
|
+
* Schema for complete dashboard data.
|
|
191
|
+
* Aggregates all data needed for dashboard rendering.
|
|
192
|
+
*/
|
|
193
|
+
export declare const DashboardDataSchema: z.ZodObject<{
|
|
194
|
+
globalStatus: z.ZodObject<{
|
|
195
|
+
activeWUs: z.ZodNumber;
|
|
196
|
+
completed24h: z.ZodNumber;
|
|
197
|
+
blocked: z.ZodNumber;
|
|
198
|
+
gatesFailing: z.ZodNumber;
|
|
199
|
+
longestRunning: z.ZodNullable<z.ZodObject<{
|
|
200
|
+
wuId: z.ZodString;
|
|
201
|
+
lane: z.ZodEnum<{
|
|
202
|
+
"Framework: Core": "Framework: Core";
|
|
203
|
+
"Framework: CLI": "Framework: CLI";
|
|
204
|
+
"Framework: Memory": "Framework: Memory";
|
|
205
|
+
"Framework: Agent": "Framework: Agent";
|
|
206
|
+
"Framework: Metrics": "Framework: Metrics";
|
|
207
|
+
"Framework: Initiatives": "Framework: Initiatives";
|
|
208
|
+
"Framework: Shims": "Framework: Shims";
|
|
209
|
+
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
210
|
+
"Operations: CI/CD": "Operations: CI/CD";
|
|
211
|
+
"Content: Documentation": "Content: Documentation";
|
|
212
|
+
}>;
|
|
213
|
+
durationMs: z.ZodNumber;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
pendingMandatory: z.ZodArray<z.ZodObject<{
|
|
216
|
+
wuId: z.ZodString;
|
|
217
|
+
agent: z.ZodEnum<{
|
|
218
|
+
"general-purpose": "general-purpose";
|
|
219
|
+
"lumenflow-pm": "lumenflow-pm";
|
|
220
|
+
"test-engineer": "test-engineer";
|
|
221
|
+
"code-reviewer": "code-reviewer";
|
|
222
|
+
"bug-triage": "bug-triage";
|
|
223
|
+
"lumenflow-enforcer": "lumenflow-enforcer";
|
|
224
|
+
"lumenflow-doc-sync": "lumenflow-doc-sync";
|
|
225
|
+
}>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
activeSession: z.ZodNullable<z.ZodObject<{
|
|
228
|
+
sessionId: z.ZodString;
|
|
229
|
+
wuId: z.ZodString;
|
|
230
|
+
started: z.ZodString;
|
|
231
|
+
contextTier: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
232
|
+
incidentsLogged: z.ZodNumber;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
worktreesWithUncommittedChanges: z.ZodArray<z.ZodObject<{
|
|
235
|
+
wuId: z.ZodString;
|
|
236
|
+
worktreePath: z.ZodString;
|
|
237
|
+
uncommittedFileCount: z.ZodNumber;
|
|
238
|
+
lastActivityTimestamp: z.ZodString;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
agentMetrics: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
242
|
+
invoked: z.ZodNumber;
|
|
243
|
+
passRate: z.ZodNumber;
|
|
244
|
+
avgDurationMs: z.ZodNumber;
|
|
245
|
+
lastRun: z.ZodNullable<z.ZodObject<{
|
|
246
|
+
wuId: z.ZodString;
|
|
247
|
+
timestamp: z.ZodString;
|
|
248
|
+
result: z.ZodEnum<{
|
|
249
|
+
pass: "pass";
|
|
250
|
+
fail: "fail";
|
|
251
|
+
}>;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
}, z.core.$strip>>;
|
|
254
|
+
wuProgress: z.ZodArray<z.ZodObject<{
|
|
255
|
+
wuId: z.ZodString;
|
|
256
|
+
lane: z.ZodEnum<{
|
|
257
|
+
"Framework: Core": "Framework: Core";
|
|
258
|
+
"Framework: CLI": "Framework: CLI";
|
|
259
|
+
"Framework: Memory": "Framework: Memory";
|
|
260
|
+
"Framework: Agent": "Framework: Agent";
|
|
261
|
+
"Framework: Metrics": "Framework: Metrics";
|
|
262
|
+
"Framework: Initiatives": "Framework: Initiatives";
|
|
263
|
+
"Framework: Shims": "Framework: Shims";
|
|
264
|
+
"Operations: Infrastructure": "Operations: Infrastructure";
|
|
265
|
+
"Operations: CI/CD": "Operations: CI/CD";
|
|
266
|
+
"Content: Documentation": "Content: Documentation";
|
|
267
|
+
}>;
|
|
268
|
+
title: z.ZodString;
|
|
269
|
+
dodProgress: z.ZodNumber;
|
|
270
|
+
dodTotal: z.ZodLiteral<11>;
|
|
271
|
+
agents: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
272
|
+
pending: "pending";
|
|
273
|
+
pass: "pass";
|
|
274
|
+
fail: "fail";
|
|
275
|
+
skipped: "skipped";
|
|
276
|
+
}>>;
|
|
277
|
+
headline: z.ZodString;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
280
|
+
timestamp: z.ZodString;
|
|
281
|
+
event: z.ZodEnum<{
|
|
282
|
+
gates: "gates";
|
|
283
|
+
claim: "claim";
|
|
284
|
+
done: "done";
|
|
285
|
+
block: "block";
|
|
286
|
+
agent: "agent";
|
|
287
|
+
}>;
|
|
288
|
+
wuId: z.ZodString;
|
|
289
|
+
detail: z.ZodString;
|
|
290
|
+
severity: z.ZodEnum<{
|
|
291
|
+
error: "error";
|
|
292
|
+
info: "info";
|
|
293
|
+
warning: "warning";
|
|
294
|
+
}>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
alerts: z.ZodArray<z.ZodObject<{
|
|
297
|
+
severity: z.ZodEnum<{
|
|
298
|
+
high: "high";
|
|
299
|
+
medium: "medium";
|
|
300
|
+
low: "low";
|
|
301
|
+
}>;
|
|
302
|
+
message: z.ZodString;
|
|
303
|
+
wuId: z.ZodString;
|
|
304
|
+
action: z.ZodString;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
//# sourceMappingURL=orchestration.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration.schemas.d.ts","sourceRoot":"","sources":["../../../src/domain/orchestration.schemas.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuDxB;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB7B,CAAC;AAWH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAS5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;iBAW9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;iBAStB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAW3B,CAAC;AAgBH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;iBAO9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;iBAK3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW9B,CAAC"}
|