@lumenflow/cli 5.4.0 → 5.7.12
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/README.md +42 -40
- package/dist/db-journal-recover.js +400 -0
- package/dist/db-journal-recover.js.map +1 -0
- package/dist/docs-sync.js +8 -3
- package/dist/docs-sync.js.map +1 -1
- package/dist/gate-defaults.js +191 -9
- package/dist/gate-defaults.js.map +1 -1
- package/dist/gate-registry.js.map +1 -1
- package/dist/gates/monolithic-file-contention-guard.js +167 -0
- package/dist/gates/monolithic-file-contention-guard.js.map +1 -0
- package/dist/gates/prod-migration-drift.js +207 -0
- package/dist/gates/prod-migration-drift.js.map +1 -0
- package/dist/gates/test-over-deletion-guard.js +255 -0
- package/dist/gates/test-over-deletion-guard.js.map +1 -0
- package/dist/gates-runners.js +401 -2
- package/dist/gates-runners.js.map +1 -1
- package/dist/gates.js +349 -4
- package/dist/gates.js.map +1 -1
- package/dist/lumenflow-setup.js +144 -0
- package/dist/lumenflow-setup.js.map +1 -0
- package/dist/lumenflow-upgrade.js +2 -1
- package/dist/lumenflow-upgrade.js.map +1 -1
- package/dist/mem-create.js +10 -1
- package/dist/mem-create.js.map +1 -1
- package/dist/mem-signal.js +21 -4
- package/dist/mem-signal.js.map +1 -1
- package/dist/metrics-cli.js +19 -2
- package/dist/metrics-cli.js.map +1 -1
- package/dist/metrics-snapshot.js +25 -2
- package/dist/metrics-snapshot.js.map +1 -1
- package/dist/orchestrate-initiative.js +28 -3
- package/dist/orchestrate-initiative.js.map +1 -1
- package/dist/public-manifest.js +17 -0
- package/dist/public-manifest.js.map +1 -1
- package/dist/release.js +53 -18
- package/dist/release.js.map +1 -1
- package/dist/wu-done-gates.js +121 -8
- package/dist/wu-done-gates.js.map +1 -1
- package/dist/wu-done.js +30 -6
- package/dist/wu-done.js.map +1 -1
- package/dist/wu-edit-operations.js +74 -0
- package/dist/wu-edit-operations.js.map +1 -1
- package/dist/wu-edit-validators.js +58 -0
- package/dist/wu-edit-validators.js.map +1 -1
- package/dist/wu-edit.js +106 -4
- package/dist/wu-edit.js.map +1 -1
- package/dist/wu-prep.js +132 -8
- package/dist/wu-prep.js.map +1 -1
- package/dist/wu-recover.js +6 -0
- package/dist/wu-recover.js.map +1 -1
- package/dist/wu-release.js +120 -2
- package/dist/wu-release.js.map +1 -1
- package/dist/wu-sizing-validation.js +47 -17
- package/dist/wu-sizing-validation.js.map +1 -1
- package/dist/wu-status.js +33 -0
- package/dist/wu-status.js.map +1 -1
- package/package.json +13 -11
- package/packs/agent-runtime/package.json +1 -1
- package/packs/sidekick/package.json +1 -1
- package/packs/software-delivery/package.json +1 -1
- package/templates/core/AGENTS.md.template +162 -26
- package/templates/core/LUMENFLOW.md.template +381 -70
- package/templates/core/ai/onboarding/agent-invocation-guide.md.template +0 -5
- package/templates/core/ai/onboarding/agent-safety-card.md.template +63 -17
- package/templates/core/ai/onboarding/initiative-orchestration.md.template +4 -0
- package/templates/core/ai/onboarding/release-process.md.template +7 -7
- package/templates/core/ai/onboarding/vendor-support.md.template +74 -10
- package/templates/vendors/claude/.claude/skills/frontend-design/SKILL.md.template +1 -1
- package/templates/vendors/claude/.claude/skills/wu-lifecycle/SKILL.md.template +28 -0
- package/packs/agent-runtime/agent-heartbeat.ts +0 -163
- package/packs/agent-runtime/auto-session-integration.ts +0 -888
- package/packs/agent-runtime/capability-factory.ts +0 -104
- package/packs/agent-runtime/constants.ts +0 -21
- package/packs/agent-runtime/delegation-registry-schema.ts +0 -220
- package/packs/agent-runtime/delegation-registry-store.ts +0 -269
- package/packs/agent-runtime/delegation-tree.ts +0 -328
- package/packs/agent-runtime/index.ts +0 -20
- package/packs/agent-runtime/manifest.ts +0 -348
- package/packs/agent-runtime/memory-coordination-contract.ts +0 -86
- package/packs/agent-runtime/orchestration.ts +0 -2027
- package/packs/agent-runtime/pack-registration.ts +0 -110
- package/packs/agent-runtime/policy-factory.ts +0 -165
- package/packs/agent-runtime/remote-controls/index.ts +0 -7
- package/packs/agent-runtime/remote-controls/operations.ts +0 -405
- package/packs/agent-runtime/remote-controls/port.ts +0 -48
- package/packs/agent-runtime/remote-controls/state-store.ts +0 -258
- package/packs/agent-runtime/remote-controls/types.ts +0 -105
- package/packs/agent-runtime/session-schema.ts +0 -467
- package/packs/agent-runtime/tool-impl/agent-turn-tools.ts +0 -793
- package/packs/agent-runtime/tool-impl/index.ts +0 -6
- package/packs/agent-runtime/tool-impl/provider-adapters.ts +0 -1245
- package/packs/agent-runtime/tool-impl/remote-controls.mock.ts +0 -256
- package/packs/agent-runtime/tool-impl/remote-controls.ts +0 -273
- package/packs/agent-runtime/tools/index.ts +0 -4
- package/packs/agent-runtime/tools/types.ts +0 -47
- package/packs/agent-runtime/turn-lifecycle-events.ts +0 -590
- package/packs/agent-runtime/types.ts +0 -128
- package/packs/agent-runtime/vitest.config.ts +0 -11
- package/packs/sidekick/channel-ingress.ts +0 -137
- package/packs/sidekick/constants.ts +0 -10
- package/packs/sidekick/index.ts +0 -8
- package/packs/sidekick/manifest-schema.ts +0 -49
- package/packs/sidekick/manifest.ts +0 -512
- package/packs/sidekick/pack-registration.ts +0 -110
- package/packs/sidekick/policy-factory.ts +0 -38
- package/packs/sidekick/sidekick-events.ts +0 -694
- package/packs/sidekick/src/adapters/cloud-queue.ts +0 -101
- package/packs/sidekick/src/adapters/control-plane-bridge.adapter.ts +0 -386
- package/packs/sidekick/src/adapters/filesystem-bridge.adapter.ts +0 -228
- package/packs/sidekick/src/domain/channel.types.ts +0 -64
- package/packs/sidekick/src/ports/channel-bridge.port.ts +0 -92
- package/packs/sidekick/src/routines/commit.ts +0 -74
- package/packs/sidekick/tool-impl/channel-tools.ts +0 -577
- package/packs/sidekick/tool-impl/channel-transports.ts +0 -75
- package/packs/sidekick/tool-impl/index.ts +0 -29
- package/packs/sidekick/tool-impl/memory-tools.ts +0 -290
- package/packs/sidekick/tool-impl/routine-commit.ts +0 -102
- package/packs/sidekick/tool-impl/routine-tools.ts +0 -440
- package/packs/sidekick/tool-impl/runtime-context.ts +0 -28
- package/packs/sidekick/tool-impl/shared.ts +0 -125
- package/packs/sidekick/tool-impl/storage.ts +0 -325
- package/packs/sidekick/tool-impl/system-tools.ts +0 -160
- package/packs/sidekick/tool-impl/task-tools.ts +0 -506
- package/packs/sidekick/tools/channel-tools.ts +0 -53
- package/packs/sidekick/tools/index.ts +0 -9
- package/packs/sidekick/tools/memory-tools.ts +0 -53
- package/packs/sidekick/tools/routine-tools.ts +0 -53
- package/packs/sidekick/tools/system-tools.ts +0 -47
- package/packs/sidekick/tools/task-tools.ts +0 -61
- package/packs/sidekick/tools/types.ts +0 -57
- package/packs/sidekick/vitest.config.ts +0 -11
- package/packs/software-delivery/constants.ts +0 -10
- package/packs/software-delivery/extensions.ts +0 -140
- package/packs/software-delivery/gate-policies.ts +0 -134
- package/packs/software-delivery/index.ts +0 -8
- package/packs/software-delivery/manifest-schema.ts +0 -268
- package/packs/software-delivery/manifest.ts +0 -657
- package/packs/software-delivery/pack-registration.ts +0 -113
- package/packs/software-delivery/src/commands/index.ts +0 -5
- package/packs/software-delivery/src/config/delivery-review-contract.ts +0 -256
- package/packs/software-delivery/src/config/env-accessors.ts +0 -66
- package/packs/software-delivery/src/config/index.ts +0 -8
- package/packs/software-delivery/src/config/normalize-config-keys.ts +0 -9
- package/packs/software-delivery/src/config/schemas/lumenflow-config-schema-types.ts +0 -460
- package/packs/software-delivery/src/config/workspace-reader.ts +0 -375
- package/packs/software-delivery/src/constants/backlog-patterns.ts +0 -31
- package/packs/software-delivery/src/constants/client-ids.ts +0 -19
- package/packs/software-delivery/src/constants/config-contract.ts +0 -7
- package/packs/software-delivery/src/constants/docs-layout-presets.ts +0 -50
- package/packs/software-delivery/src/constants/duration-constants.ts +0 -20
- package/packs/software-delivery/src/constants/gate-constants.ts +0 -32
- package/packs/software-delivery/src/constants/index.ts +0 -29
- package/packs/software-delivery/src/constants/lock-constants.ts +0 -35
- package/packs/software-delivery/src/constants/object-guards.ts +0 -12
- package/packs/software-delivery/src/constants/section-headings.ts +0 -107
- package/packs/software-delivery/src/constants/wu-cli-constants.ts +0 -488
- package/packs/software-delivery/src/constants/wu-domain-constants.ts +0 -466
- package/packs/software-delivery/src/constants/wu-git-constants.ts +0 -7
- package/packs/software-delivery/src/constants/wu-id-format.ts +0 -327
- package/packs/software-delivery/src/constants/wu-paths-constants.ts +0 -384
- package/packs/software-delivery/src/constants/wu-statuses.ts +0 -287
- package/packs/software-delivery/src/constants/wu-type-helpers.ts +0 -67
- package/packs/software-delivery/src/constants/wu-ui-constants.ts +0 -267
- package/packs/software-delivery/src/constants/wu-validation-constants.ts +0 -73
- package/packs/software-delivery/src/domain/index.ts +0 -5
- package/packs/software-delivery/src/domain/orchestration.constants.ts +0 -166
- package/packs/software-delivery/src/domain/orchestration.schemas.ts +0 -238
- package/packs/software-delivery/src/domain/orchestration.types.ts +0 -176
- package/packs/software-delivery/src/methodology/incremental-test.ts +0 -122
- package/packs/software-delivery/src/methodology/index.ts +0 -6
- package/packs/software-delivery/src/methodology/manual-test-validator.ts +0 -292
- package/packs/software-delivery/src/policy/coverage-gate.ts +0 -270
- package/packs/software-delivery/src/policy/gates-agent-mode.ts +0 -223
- package/packs/software-delivery/src/policy/gates-config-internal.ts +0 -121
- package/packs/software-delivery/src/policy/gates-config.ts +0 -300
- package/packs/software-delivery/src/policy/gates-coverage.ts +0 -356
- package/packs/software-delivery/src/policy/gates-presets.ts +0 -134
- package/packs/software-delivery/src/policy/gates-schemas.ts +0 -173
- package/packs/software-delivery/src/policy/index.ts +0 -22
- package/packs/software-delivery/src/policy/package-manager-resolver.ts +0 -319
- package/packs/software-delivery/src/policy/resolve-policy.ts +0 -601
- package/packs/software-delivery/src/ports/config.ports.ts +0 -90
- package/packs/software-delivery/src/ports/dashboard-renderer.port.ts +0 -125
- package/packs/software-delivery/src/ports/index.ts +0 -10
- package/packs/software-delivery/src/ports/sync-validator.ports.ts +0 -59
- package/packs/software-delivery/src/ports/wu-helpers.ports.ts +0 -168
- package/packs/software-delivery/src/ports/wu-state.ports.ts +0 -241
- package/packs/software-delivery/src/primitives/index.ts +0 -5
- package/packs/software-delivery/src/runtime/index.ts +0 -6
- package/packs/software-delivery/src/runtime/work-classifier.ts +0 -561
- package/packs/software-delivery/src/sandbox/index.ts +0 -10
- package/packs/software-delivery/src/sandbox/sandbox-allowlist.ts +0 -118
- package/packs/software-delivery/src/sandbox/sandbox-backend-linux.ts +0 -88
- package/packs/software-delivery/src/sandbox/sandbox-backend-macos.ts +0 -154
- package/packs/software-delivery/src/sandbox/sandbox-backend-windows.ts +0 -47
- package/packs/software-delivery/src/sandbox/sandbox-profile.ts +0 -153
- package/packs/software-delivery/src/schemas/index.ts +0 -5
- package/packs/software-delivery/src/state/date-utils.ts +0 -158
- package/packs/software-delivery/src/state/index.ts +0 -15
- package/packs/software-delivery/src/state/state-machine.ts +0 -119
- package/packs/software-delivery/src/state/wu-doc-types.ts +0 -51
- package/packs/software-delivery/src/state/wu-paths.ts +0 -381
- package/packs/software-delivery/src/state/wu-schema.ts +0 -1139
- package/packs/software-delivery/src/state/wu-state-schema.ts +0 -255
- package/packs/software-delivery/src/state/wu-yaml.ts +0 -338
- package/packs/software-delivery/tool-impl/agent-tools.ts +0 -263
- package/packs/software-delivery/tool-impl/delegation-tools.ts +0 -66
- package/packs/software-delivery/tool-impl/flow-metrics-tools.ts +0 -219
- package/packs/software-delivery/tool-impl/git-runner.ts +0 -113
- package/packs/software-delivery/tool-impl/git-tools.ts +0 -316
- package/packs/software-delivery/tool-impl/index.ts +0 -15
- package/packs/software-delivery/tool-impl/initiative-orchestration-tools.ts +0 -720
- package/packs/software-delivery/tool-impl/lane-lock.ts +0 -246
- package/packs/software-delivery/tool-impl/memory-tools.ts +0 -470
- package/packs/software-delivery/tool-impl/pending-runtime-tools.ts +0 -21
- package/packs/software-delivery/tool-impl/runtime-cli-adapter.ts +0 -329
- package/packs/software-delivery/tool-impl/runtime-native-tools.ts +0 -687
- package/packs/software-delivery/tool-impl/worker-loader.ts +0 -52
- package/packs/software-delivery/tool-impl/worktree-tools.ts +0 -46
- package/packs/software-delivery/tool-impl/wu-lifecycle-tools.ts +0 -807
- package/packs/software-delivery/tools/delegation-tools.ts +0 -23
- package/packs/software-delivery/tools/git-tools.ts +0 -55
- package/packs/software-delivery/tools/index.ts +0 -8
- package/packs/software-delivery/tools/lane-lock-tool.ts +0 -37
- package/packs/software-delivery/tools/types.ts +0 -71
- package/packs/software-delivery/tools/worktree-tools.ts +0 -49
- package/packs/software-delivery/vitest.config.ts +0 -11
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
-
// SPDX-License-Identifier: LicenseRef-LumenFlow-Proprietary
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Pack-local LumenFlow configuration schema (WU-2694).
|
|
6
|
-
*
|
|
7
|
-
* Mirrors the shape of `@lumenflow/core/lumenflow-config-schema` using
|
|
8
|
-
* hand-maintained TypeScript interfaces plus default-value constants. The pack
|
|
9
|
-
* side deliberately avoids a full Zod composition to keep the invariant
|
|
10
|
-
* "pack src/ MUST stay core-free": the authoritative Zod composition in core
|
|
11
|
-
* transitively depends on `delivery-review-contract`, per-section schemas, and
|
|
12
|
-
* other core-only modules that have not yet been migrated (INIT-058 Layer 4).
|
|
13
|
-
*
|
|
14
|
-
* Consumers that need a typed view of `workspace.yaml`'s `software_delivery`
|
|
15
|
-
* block can import from this file without crossing the package boundary.
|
|
16
|
-
* Drift against core's composition is enforced by
|
|
17
|
-
* `integration-tests/tests/config-parity.test.ts` — any field added to core's
|
|
18
|
-
* `LumenFlowConfig` must either be added here or explicitly waived in the
|
|
19
|
-
* drift-guard.
|
|
20
|
-
*
|
|
21
|
-
* @module config/schemas/lumenflow-config-schema
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
import { DURATION_MS } from '@lumenflow/kernel/primitives/duration-utils';
|
|
25
|
-
|
|
26
|
-
import { LUMENFLOW_CLIENT_IDS } from '../../constants/client-ids.js';
|
|
27
|
-
import { DOCS_LAYOUT_PRESETS } from '../../constants/docs-layout-presets.js';
|
|
28
|
-
import {
|
|
29
|
-
DEFAULT_MAX_ESLINT_WARNINGS,
|
|
30
|
-
DEFAULT_MIN_COVERAGE,
|
|
31
|
-
} from '../../constants/gate-constants.js';
|
|
32
|
-
import {
|
|
33
|
-
AGENT_NAMES,
|
|
34
|
-
MANDATORY_AGENT_NAMES,
|
|
35
|
-
MANDATORY_TRIGGERS,
|
|
36
|
-
} from '../../domain/orchestration.constants.js';
|
|
37
|
-
|
|
38
|
-
const DEFAULT_LAYOUT = DOCS_LAYOUT_PRESETS.simple;
|
|
39
|
-
|
|
40
|
-
// ---------------------------------------------------------------------------
|
|
41
|
-
// Directories
|
|
42
|
-
// ---------------------------------------------------------------------------
|
|
43
|
-
|
|
44
|
-
export interface DirectoriesConfig {
|
|
45
|
-
appsWeb: string;
|
|
46
|
-
worktrees: string;
|
|
47
|
-
ai: string;
|
|
48
|
-
claude: string;
|
|
49
|
-
docs: string;
|
|
50
|
-
packages: string;
|
|
51
|
-
tools: string;
|
|
52
|
-
memoryBank: string;
|
|
53
|
-
wuDir: string;
|
|
54
|
-
initiativesDir: string;
|
|
55
|
-
backlogPath: string;
|
|
56
|
-
statusPath: string;
|
|
57
|
-
skillsDir: string;
|
|
58
|
-
agentsDir: string;
|
|
59
|
-
adrDir: string;
|
|
60
|
-
plansDir: string;
|
|
61
|
-
templatesDir: string;
|
|
62
|
-
onboardingDir: string;
|
|
63
|
-
completeGuidePath: string;
|
|
64
|
-
quickRefPath: string;
|
|
65
|
-
startingPromptPath: string;
|
|
66
|
-
sizingGuidePath: string;
|
|
67
|
-
governancePath: string;
|
|
68
|
-
safeGitPath: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export const DIRECTORIES_DEFAULTS: DirectoriesConfig = {
|
|
72
|
-
appsWeb: '',
|
|
73
|
-
worktrees: 'worktrees/',
|
|
74
|
-
ai: 'ai/',
|
|
75
|
-
claude: '.claude/',
|
|
76
|
-
docs: 'docs/',
|
|
77
|
-
packages: 'packages/',
|
|
78
|
-
tools: 'tools/',
|
|
79
|
-
memoryBank: 'memory-bank/',
|
|
80
|
-
wuDir: `${DEFAULT_LAYOUT.tasks}/wu`,
|
|
81
|
-
initiativesDir: `${DEFAULT_LAYOUT.tasks}/initiatives`,
|
|
82
|
-
backlogPath: `${DEFAULT_LAYOUT.tasks}/backlog.md`,
|
|
83
|
-
statusPath: `${DEFAULT_LAYOUT.tasks}/status.md`,
|
|
84
|
-
skillsDir: '.lumenflow/skills',
|
|
85
|
-
agentsDir: '.claude/agents',
|
|
86
|
-
adrDir: DEFAULT_LAYOUT.adrDir,
|
|
87
|
-
plansDir: `${DEFAULT_LAYOUT.operations}/plans`,
|
|
88
|
-
templatesDir: '.lumenflow/templates',
|
|
89
|
-
onboardingDir: DEFAULT_LAYOUT.onboarding,
|
|
90
|
-
completeGuidePath: DEFAULT_LAYOUT.completeGuidePath,
|
|
91
|
-
quickRefPath: DEFAULT_LAYOUT.quickRefPath,
|
|
92
|
-
startingPromptPath: DEFAULT_LAYOUT.startingPromptPath,
|
|
93
|
-
sizingGuidePath: DEFAULT_LAYOUT.sizingGuidePath,
|
|
94
|
-
governancePath: DEFAULT_LAYOUT.governancePath,
|
|
95
|
-
safeGitPath: 'scripts/safe-git',
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// ---------------------------------------------------------------------------
|
|
99
|
-
// State paths
|
|
100
|
-
// ---------------------------------------------------------------------------
|
|
101
|
-
|
|
102
|
-
export interface EventArchivalConfig {
|
|
103
|
-
archiveAfter: number;
|
|
104
|
-
keepArchives: boolean;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface StatePathsConfig {
|
|
108
|
-
base: string;
|
|
109
|
-
stateDir: string;
|
|
110
|
-
archiveDir: string;
|
|
111
|
-
stampsDir: string;
|
|
112
|
-
mergeLock: string;
|
|
113
|
-
telemetry: string;
|
|
114
|
-
flowLog: string;
|
|
115
|
-
sessions: string;
|
|
116
|
-
incidents: string;
|
|
117
|
-
commandsLog: string;
|
|
118
|
-
eventArchival: EventArchivalConfig;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export const STATE_PATHS_DEFAULTS: StatePathsConfig = {
|
|
122
|
-
base: '.lumenflow',
|
|
123
|
-
stateDir: '.lumenflow/state',
|
|
124
|
-
archiveDir: '.lumenflow/archive',
|
|
125
|
-
stampsDir: '.lumenflow/stamps',
|
|
126
|
-
mergeLock: '.lumenflow/merge.lock',
|
|
127
|
-
telemetry: '.lumenflow/telemetry',
|
|
128
|
-
flowLog: '.lumenflow/flow.log',
|
|
129
|
-
sessions: '.lumenflow/sessions',
|
|
130
|
-
incidents: '.lumenflow/incidents',
|
|
131
|
-
commandsLog: '.lumenflow/commands.log',
|
|
132
|
-
eventArchival: {
|
|
133
|
-
archiveAfter: DURATION_MS.NINETY_DAYS,
|
|
134
|
-
keepArchives: true,
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// ---------------------------------------------------------------------------
|
|
139
|
-
// Git
|
|
140
|
-
// ---------------------------------------------------------------------------
|
|
141
|
-
|
|
142
|
-
export interface PushRetryConfig {
|
|
143
|
-
enabled: boolean;
|
|
144
|
-
retries: number;
|
|
145
|
-
min_delay_ms: number;
|
|
146
|
-
max_delay_ms: number;
|
|
147
|
-
jitter: boolean;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface GitConfig {
|
|
151
|
-
mainBranch: string;
|
|
152
|
-
defaultRemote: string;
|
|
153
|
-
laneBranchPrefix: string;
|
|
154
|
-
tempBranchPrefix: string;
|
|
155
|
-
realGitPath: string;
|
|
156
|
-
maxBranchDrift: number;
|
|
157
|
-
branchDriftWarning: number;
|
|
158
|
-
branchDriftInfo: number;
|
|
159
|
-
requireRemote: boolean;
|
|
160
|
-
agentBranchPatterns: string[];
|
|
161
|
-
agentBranchPatternsOverride?: string[];
|
|
162
|
-
disableAgentPatternRegistry: boolean;
|
|
163
|
-
push_retry: PushRetryConfig;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export const GIT_DEFAULTS: GitConfig = {
|
|
167
|
-
mainBranch: 'main',
|
|
168
|
-
defaultRemote: 'origin',
|
|
169
|
-
laneBranchPrefix: 'lane/',
|
|
170
|
-
tempBranchPrefix: 'tmp/',
|
|
171
|
-
realGitPath: '/usr/bin/git',
|
|
172
|
-
maxBranchDrift: 20,
|
|
173
|
-
branchDriftWarning: 15,
|
|
174
|
-
branchDriftInfo: 10,
|
|
175
|
-
requireRemote: true,
|
|
176
|
-
agentBranchPatterns: [],
|
|
177
|
-
disableAgentPatternRegistry: false,
|
|
178
|
-
push_retry: {
|
|
179
|
-
enabled: true,
|
|
180
|
-
retries: 3,
|
|
181
|
-
min_delay_ms: 100,
|
|
182
|
-
max_delay_ms: 1000,
|
|
183
|
-
jitter: true,
|
|
184
|
-
},
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// ---------------------------------------------------------------------------
|
|
188
|
-
// WU + IDs
|
|
189
|
-
// ---------------------------------------------------------------------------
|
|
190
|
-
|
|
191
|
-
export type WuBriefPolicyMode = 'off' | 'manual' | 'auto' | 'required';
|
|
192
|
-
|
|
193
|
-
export interface WuBriefConfig {
|
|
194
|
-
policyMode: WuBriefPolicyMode;
|
|
195
|
-
freshnessMinutes: number;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface WuConfig {
|
|
199
|
-
idPattern: string;
|
|
200
|
-
minDescriptionLength: number;
|
|
201
|
-
maxCommitSubject: number;
|
|
202
|
-
defaultPriority: string;
|
|
203
|
-
defaultStatus: string;
|
|
204
|
-
defaultType: string;
|
|
205
|
-
brief: WuBriefConfig;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export const WU_DEFAULTS: WuConfig = {
|
|
209
|
-
idPattern: '^WU-\\d+$',
|
|
210
|
-
minDescriptionLength: 50,
|
|
211
|
-
maxCommitSubject: 100,
|
|
212
|
-
defaultPriority: 'P2',
|
|
213
|
-
defaultStatus: 'ready',
|
|
214
|
-
defaultType: 'feature',
|
|
215
|
-
brief: {
|
|
216
|
-
policyMode: 'auto',
|
|
217
|
-
freshnessMinutes: 1440,
|
|
218
|
-
},
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export interface IdFormatConfig {
|
|
222
|
-
width: number;
|
|
223
|
-
strict: boolean;
|
|
224
|
-
prefix: string;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export const WU_ID_DEFAULTS: IdFormatConfig = {
|
|
228
|
-
width: 4,
|
|
229
|
-
strict: true,
|
|
230
|
-
prefix: 'WU-',
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
export const INITIATIVE_ID_DEFAULTS: IdFormatConfig = {
|
|
234
|
-
width: 3,
|
|
235
|
-
strict: true,
|
|
236
|
-
prefix: 'INIT-',
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
// ---------------------------------------------------------------------------
|
|
240
|
-
// Gates (narrow subset — downstream cohorts only read a few fields)
|
|
241
|
-
// ---------------------------------------------------------------------------
|
|
242
|
-
|
|
243
|
-
export interface GatesConfig {
|
|
244
|
-
maxEslintWarnings: number;
|
|
245
|
-
enableCoverage: boolean;
|
|
246
|
-
minCoverage: number;
|
|
247
|
-
[extra: string]: unknown;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export const GATES_DEFAULTS: GatesConfig = {
|
|
251
|
-
maxEslintWarnings: DEFAULT_MAX_ESLINT_WARNINGS,
|
|
252
|
-
enableCoverage: true,
|
|
253
|
-
minCoverage: DEFAULT_MIN_COVERAGE,
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
// ---------------------------------------------------------------------------
|
|
257
|
-
// UI + YAML + operational toggles
|
|
258
|
-
// ---------------------------------------------------------------------------
|
|
259
|
-
|
|
260
|
-
export interface UiConfig {
|
|
261
|
-
errorBoxWidth: number;
|
|
262
|
-
statusPreviewLines: number;
|
|
263
|
-
readinessBoxWidth: number;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export const UI_DEFAULTS: UiConfig = {
|
|
267
|
-
errorBoxWidth: 70,
|
|
268
|
-
statusPreviewLines: 5,
|
|
269
|
-
readinessBoxWidth: 50,
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
export interface YamlConfig {
|
|
273
|
-
lineWidth: number;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export const YAML_DEFAULTS: YamlConfig = {
|
|
277
|
-
lineWidth: 100,
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
export type ValidationMode = 'off' | 'warn' | 'error';
|
|
281
|
-
|
|
282
|
-
export interface ExperimentalConfig {
|
|
283
|
-
context_validation: boolean;
|
|
284
|
-
validation_mode: ValidationMode;
|
|
285
|
-
show_next_steps: boolean;
|
|
286
|
-
recovery_command: boolean;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export const EXPERIMENTAL_DEFAULTS: ExperimentalConfig = {
|
|
290
|
-
context_validation: true,
|
|
291
|
-
validation_mode: 'warn',
|
|
292
|
-
show_next_steps: true,
|
|
293
|
-
recovery_command: true,
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
export type CleanupTrigger = 'on_done' | 'on_init' | 'manual';
|
|
297
|
-
|
|
298
|
-
export interface CleanupConfig {
|
|
299
|
-
trigger: CleanupTrigger;
|
|
300
|
-
commit_message: string;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export const CLEANUP_DEFAULTS: CleanupConfig = {
|
|
304
|
-
trigger: 'on_done',
|
|
305
|
-
commit_message: 'chore: lumenflow state cleanup [skip ci]',
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
export interface MethodologyTelemetryConfig {
|
|
309
|
-
enabled: boolean;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export interface TelemetryConfig {
|
|
313
|
-
methodology: MethodologyTelemetryConfig;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export const TELEMETRY_DEFAULTS: TelemetryConfig = {
|
|
317
|
-
methodology: { enabled: false },
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
export interface EscalationConfig {
|
|
321
|
-
email: string;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export const ESCALATION_DEFAULTS: EscalationConfig = {
|
|
325
|
-
email: 'escalation@example.com',
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
// ---------------------------------------------------------------------------
|
|
329
|
-
// Memory (narrow — only top-level fields with defaults)
|
|
330
|
-
// ---------------------------------------------------------------------------
|
|
331
|
-
|
|
332
|
-
export interface MemoryConfig {
|
|
333
|
-
directory: string;
|
|
334
|
-
sessionTtl: number;
|
|
335
|
-
checkpointTtl: number;
|
|
336
|
-
enableAutoCleanup: boolean;
|
|
337
|
-
delegation_context_max_size: number;
|
|
338
|
-
[extra: string]: unknown;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export const MEMORY_DEFAULTS: MemoryConfig = {
|
|
342
|
-
directory: 'memory-bank/',
|
|
343
|
-
sessionTtl: DURATION_MS.SEVEN_DAYS,
|
|
344
|
-
checkpointTtl: DURATION_MS.THIRTY_DAYS,
|
|
345
|
-
enableAutoCleanup: true,
|
|
346
|
-
delegation_context_max_size: 4096,
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
// ---------------------------------------------------------------------------
|
|
350
|
-
// Agents
|
|
351
|
-
// ---------------------------------------------------------------------------
|
|
352
|
-
|
|
353
|
-
export interface MandatoryAgentsConfig {
|
|
354
|
-
names: string[];
|
|
355
|
-
triggers: Record<string, string[]>;
|
|
356
|
-
[extra: string]: unknown;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export interface AgentsConfig {
|
|
360
|
-
defaultClient: string;
|
|
361
|
-
roster: string[];
|
|
362
|
-
mandatory: MandatoryAgentsConfig;
|
|
363
|
-
[extra: string]: unknown;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
function cloneMandatoryTriggersDefaults(): Record<string, string[]> {
|
|
367
|
-
return Object.fromEntries(
|
|
368
|
-
Object.entries(MANDATORY_TRIGGERS).map(([agentName, patterns]) => [agentName, [...patterns]]),
|
|
369
|
-
);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export const AGENTS_DEFAULTS: AgentsConfig = {
|
|
373
|
-
defaultClient: LUMENFLOW_CLIENT_IDS.CLAUDE_CODE,
|
|
374
|
-
roster: [...AGENT_NAMES],
|
|
375
|
-
mandatory: {
|
|
376
|
-
names: [...MANDATORY_AGENT_NAMES],
|
|
377
|
-
triggers: cloneMandatoryTriggersDefaults(),
|
|
378
|
-
},
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
// ---------------------------------------------------------------------------
|
|
382
|
-
// Cloud + lanes + methodology: loose pass-through
|
|
383
|
-
// ---------------------------------------------------------------------------
|
|
384
|
-
|
|
385
|
-
export interface CloudEnvSignal {
|
|
386
|
-
name: string;
|
|
387
|
-
equals?: string;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export interface CloudConfig {
|
|
391
|
-
auto_detect: boolean;
|
|
392
|
-
env_signals: CloudEnvSignal[];
|
|
393
|
-
[extra: string]: unknown;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
export const CLOUD_DEFAULTS: CloudConfig = {
|
|
397
|
-
auto_detect: false,
|
|
398
|
-
env_signals: [],
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
// ---------------------------------------------------------------------------
|
|
402
|
-
// Top-level LumenflowConfig
|
|
403
|
-
// ---------------------------------------------------------------------------
|
|
404
|
-
|
|
405
|
-
export type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
|
|
406
|
-
export type TestRunner = 'vitest' | 'jest' | 'mocha';
|
|
407
|
-
|
|
408
|
-
export interface LumenflowConfig {
|
|
409
|
-
version: string;
|
|
410
|
-
directories: DirectoriesConfig;
|
|
411
|
-
state: StatePathsConfig;
|
|
412
|
-
git: GitConfig;
|
|
413
|
-
wu: WuConfig;
|
|
414
|
-
wuId: IdFormatConfig;
|
|
415
|
-
initiativeId: IdFormatConfig;
|
|
416
|
-
gates: GatesConfig;
|
|
417
|
-
memory: MemoryConfig;
|
|
418
|
-
ui: UiConfig;
|
|
419
|
-
yaml: YamlConfig;
|
|
420
|
-
agents: AgentsConfig;
|
|
421
|
-
experimental: ExperimentalConfig;
|
|
422
|
-
cleanup: CleanupConfig;
|
|
423
|
-
telemetry: TelemetryConfig;
|
|
424
|
-
methodology?: Record<string, unknown>;
|
|
425
|
-
cloud: CloudConfig;
|
|
426
|
-
lanes?: Record<string, unknown>;
|
|
427
|
-
escalation: EscalationConfig;
|
|
428
|
-
package_manager: PackageManager;
|
|
429
|
-
test_runner: TestRunner;
|
|
430
|
-
build_command: string;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Top-level defaults for `LumenflowConfig`. Matches the `.parse({})` output of
|
|
435
|
-
* `core`'s `LumenFlowConfigSchema` for every field exposed here. The drift-guard
|
|
436
|
-
* in `integration-tests/tests/config-parity.test.ts` walks these keys and
|
|
437
|
-
* asserts field-for-field parity with core's output.
|
|
438
|
-
*/
|
|
439
|
-
export const LUMENFLOW_CONFIG_DEFAULTS: LumenflowConfig = {
|
|
440
|
-
version: '1.0.0',
|
|
441
|
-
directories: DIRECTORIES_DEFAULTS,
|
|
442
|
-
state: STATE_PATHS_DEFAULTS,
|
|
443
|
-
git: GIT_DEFAULTS,
|
|
444
|
-
wu: WU_DEFAULTS,
|
|
445
|
-
wuId: WU_ID_DEFAULTS,
|
|
446
|
-
initiativeId: INITIATIVE_ID_DEFAULTS,
|
|
447
|
-
gates: GATES_DEFAULTS,
|
|
448
|
-
memory: MEMORY_DEFAULTS,
|
|
449
|
-
ui: UI_DEFAULTS,
|
|
450
|
-
yaml: YAML_DEFAULTS,
|
|
451
|
-
agents: AGENTS_DEFAULTS,
|
|
452
|
-
experimental: EXPERIMENTAL_DEFAULTS,
|
|
453
|
-
cleanup: CLEANUP_DEFAULTS,
|
|
454
|
-
telemetry: TELEMETRY_DEFAULTS,
|
|
455
|
-
cloud: CLOUD_DEFAULTS,
|
|
456
|
-
escalation: ESCALATION_DEFAULTS,
|
|
457
|
-
package_manager: 'pnpm',
|
|
458
|
-
test_runner: 'vitest',
|
|
459
|
-
build_command: 'pnpm build',
|
|
460
|
-
};
|