@codemcp/workflows 6.4.0 → 6.5.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.
Files changed (134) hide show
  1. package/package.json +2 -2
  2. package/packages/cli/dist/{chunk-D2Q6Y3QQ.js → chunk-4AZGS2GG.js} +321 -388
  3. package/packages/cli/dist/{cli-DXJJF56V.js → cli-ZCCFBQTP.js} +3 -3
  4. package/packages/cli/dist/{dist-W7PPKVFG.js → dist-I6VSREAJ.js} +11 -5
  5. package/packages/cli/dist/{dist-W7VMGB3G.js → dist-MW7THWM3.js} +875 -1136
  6. package/packages/cli/dist/index.js +2 -2
  7. package/packages/cli/package.json +1 -1
  8. package/packages/cli/resources/workflows/bugfix.yaml +14 -0
  9. package/packages/cli/resources/workflows/epcc.yaml +12 -0
  10. package/packages/cli/resources/workflows/greenfield.yaml +16 -0
  11. package/packages/cli/resources/workflows/minor.yaml +8 -0
  12. package/packages/cli/resources/workflows/tdd.yaml +10 -0
  13. package/packages/cli/resources/workflows/waterfall.yaml +16 -0
  14. package/packages/core/dist/beads-integration.d.ts +3 -5
  15. package/packages/core/dist/beads-integration.js +29 -35
  16. package/packages/core/dist/beads-integration.js.map +1 -1
  17. package/packages/core/dist/beads-state-manager.d.ts +3 -1
  18. package/packages/core/dist/beads-state-manager.js +17 -15
  19. package/packages/core/dist/beads-state-manager.js.map +1 -1
  20. package/packages/core/dist/file-detection-manager.js +15 -22
  21. package/packages/core/dist/file-detection-manager.js.map +1 -1
  22. package/packages/core/dist/index.d.ts +1 -0
  23. package/packages/core/dist/index.js +1 -0
  24. package/packages/core/dist/index.js.map +1 -1
  25. package/packages/core/dist/instruction-generator.d.ts +3 -7
  26. package/packages/core/dist/instruction-generator.js +17 -25
  27. package/packages/core/dist/instruction-generator.js.map +1 -1
  28. package/packages/core/dist/interfaces/instruction-generator.interface.d.ts +13 -4
  29. package/packages/core/dist/interfaces/plan-manager.interface.d.ts +9 -0
  30. package/packages/core/dist/logger.d.ts +49 -20
  31. package/packages/core/dist/logger.js +65 -141
  32. package/packages/core/dist/logger.js.map +1 -1
  33. package/packages/core/dist/plan-manager.d.ts +6 -4
  34. package/packages/core/dist/plan-manager.js +19 -15
  35. package/packages/core/dist/plan-manager.js.map +1 -1
  36. package/packages/core/dist/project-docs-manager.d.ts +3 -1
  37. package/packages/core/dist/project-docs-manager.js +11 -9
  38. package/packages/core/dist/project-docs-manager.js.map +1 -1
  39. package/packages/core/dist/state-machine-loader.d.ts +16 -0
  40. package/packages/core/dist/state-machine-loader.js +29 -0
  41. package/packages/core/dist/state-machine-loader.js.map +1 -1
  42. package/packages/core/dist/state-machine-types.d.ts +8 -0
  43. package/packages/core/dist/string-utils.d.ts +8 -0
  44. package/packages/core/dist/string-utils.js +14 -0
  45. package/packages/core/dist/string-utils.js.map +1 -0
  46. package/packages/core/dist/task-backend.d.ts +6 -3
  47. package/packages/core/dist/task-backend.js +10 -8
  48. package/packages/core/dist/task-backend.js.map +1 -1
  49. package/packages/core/dist/transition-engine.d.ts +3 -6
  50. package/packages/core/dist/transition-engine.js +31 -76
  51. package/packages/core/dist/transition-engine.js.map +1 -1
  52. package/packages/core/dist/workflow-manager.d.ts +2 -0
  53. package/packages/core/dist/workflow-manager.js +14 -2
  54. package/packages/core/dist/workflow-manager.js.map +1 -1
  55. package/packages/core/package.json +1 -1
  56. package/packages/core/resources/workflows/bugfix.yaml +14 -0
  57. package/packages/core/resources/workflows/epcc.yaml +12 -0
  58. package/packages/core/resources/workflows/greenfield.yaml +16 -0
  59. package/packages/core/resources/workflows/minor.yaml +8 -0
  60. package/packages/core/resources/workflows/tdd.yaml +10 -0
  61. package/packages/core/resources/workflows/waterfall.yaml +16 -0
  62. package/packages/docs/.vitepress/dist/workflows/bugfix.yaml +14 -0
  63. package/packages/docs/.vitepress/dist/workflows/epcc.yaml +12 -0
  64. package/packages/docs/.vitepress/dist/workflows/greenfield.yaml +16 -0
  65. package/packages/docs/.vitepress/dist/workflows/minor.yaml +8 -0
  66. package/packages/docs/.vitepress/dist/workflows/tdd.yaml +10 -0
  67. package/packages/docs/.vitepress/dist/workflows/waterfall.yaml +16 -0
  68. package/packages/docs/package.json +1 -1
  69. package/packages/mcp-server/dist/index.d.ts +1027 -0
  70. package/packages/mcp-server/dist/index.js +879 -1140
  71. package/packages/mcp-server/package.json +1 -1
  72. package/packages/mcp-server/resources/workflows/bugfix.yaml +14 -0
  73. package/packages/mcp-server/resources/workflows/epcc.yaml +12 -0
  74. package/packages/mcp-server/resources/workflows/greenfield.yaml +16 -0
  75. package/packages/mcp-server/resources/workflows/minor.yaml +8 -0
  76. package/packages/mcp-server/resources/workflows/tdd.yaml +10 -0
  77. package/packages/mcp-server/resources/workflows/waterfall.yaml +16 -0
  78. package/packages/opencode-plugin/dist/index.d.ts +220 -0
  79. package/packages/opencode-plugin/dist/index.js +28616 -0
  80. package/packages/opencode-plugin/package.json +55 -0
  81. package/packages/opencode-plugin/resources/agents/architect.yaml +61 -0
  82. package/packages/opencode-plugin/resources/agents/business-analyst.yaml +60 -0
  83. package/packages/opencode-plugin/resources/agents/developer.yaml +61 -0
  84. package/packages/opencode-plugin/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  85. package/packages/opencode-plugin/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  86. package/packages/opencode-plugin/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  87. package/packages/opencode-plugin/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  88. package/packages/opencode-plugin/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  89. package/packages/opencode-plugin/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  90. package/packages/opencode-plugin/resources/templates/architecture/c4.md +224 -0
  91. package/packages/opencode-plugin/resources/templates/architecture/freestyle.md +53 -0
  92. package/packages/opencode-plugin/resources/templates/architecture/game.md +250 -0
  93. package/packages/opencode-plugin/resources/templates/architecture/none.md +17 -0
  94. package/packages/opencode-plugin/resources/templates/design/comprehensive.md +207 -0
  95. package/packages/opencode-plugin/resources/templates/design/freestyle.md +37 -0
  96. package/packages/opencode-plugin/resources/templates/design/game.md +66 -0
  97. package/packages/opencode-plugin/resources/templates/design/none.md +17 -0
  98. package/packages/opencode-plugin/resources/templates/requirements/ears.md +90 -0
  99. package/packages/opencode-plugin/resources/templates/requirements/freestyle.md +42 -0
  100. package/packages/opencode-plugin/resources/templates/requirements/game.md +162 -0
  101. package/packages/opencode-plugin/resources/templates/requirements/none.md +17 -0
  102. package/packages/opencode-plugin/resources/templates/skills/POWER.md +23 -0
  103. package/packages/opencode-plugin/resources/templates/skills/SKILL.md +19 -0
  104. package/packages/opencode-plugin/resources/workflows/adr.yaml +157 -0
  105. package/packages/opencode-plugin/resources/workflows/big-bang-conversion.yaml +592 -0
  106. package/packages/opencode-plugin/resources/workflows/boundary-testing.yaml +376 -0
  107. package/packages/opencode-plugin/resources/workflows/bugfix.yaml +178 -0
  108. package/packages/opencode-plugin/resources/workflows/business-analysis.yaml +597 -0
  109. package/packages/opencode-plugin/resources/workflows/c4-analysis.yaml +471 -0
  110. package/packages/opencode-plugin/resources/workflows/epcc.yaml +195 -0
  111. package/packages/opencode-plugin/resources/workflows/game-beginner.yaml +434 -0
  112. package/packages/opencode-plugin/resources/workflows/greenfield.yaml +217 -0
  113. package/packages/opencode-plugin/resources/workflows/minor.yaml +146 -0
  114. package/packages/opencode-plugin/resources/workflows/posts.yaml +193 -0
  115. package/packages/opencode-plugin/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  116. package/packages/opencode-plugin/resources/workflows/sdd-bugfix.yaml +381 -0
  117. package/packages/opencode-plugin/resources/workflows/sdd-feature-crowd.yaml +713 -0
  118. package/packages/opencode-plugin/resources/workflows/sdd-feature.yaml +471 -0
  119. package/packages/opencode-plugin/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  120. package/packages/opencode-plugin/resources/workflows/sdd-greenfield.yaml +463 -0
  121. package/packages/opencode-plugin/resources/workflows/skilled-bugfix.yaml +174 -0
  122. package/packages/opencode-plugin/resources/workflows/skilled-epcc.yaml +171 -0
  123. package/packages/opencode-plugin/resources/workflows/skilled-greenfield.yaml +207 -0
  124. package/packages/opencode-plugin/resources/workflows/slides.yaml +237 -0
  125. package/packages/opencode-plugin/resources/workflows/tdd.yaml +170 -0
  126. package/packages/opencode-plugin/resources/workflows/waterfall.yaml +225 -0
  127. package/packages/opencode-tui-plugin/package.json +46 -0
  128. package/packages/visualizer/package.json +1 -1
  129. package/resources/workflows/bugfix.yaml +14 -0
  130. package/resources/workflows/epcc.yaml +12 -0
  131. package/resources/workflows/greenfield.yaml +16 -0
  132. package/resources/workflows/minor.yaml +8 -0
  133. package/resources/workflows/tdd.yaml +10 -0
  134. package/resources/workflows/waterfall.yaml +16 -0
@@ -10,7 +10,7 @@ var args = process.argv.slice(2);
10
10
  if (args.length === 0) {
11
11
  const isLocal = existsSync(join(__dirname, "../../mcp-server/dist/index.js"));
12
12
  if (isLocal) {
13
- const { startMcpServer } = await import("./dist-W7VMGB3G.js");
13
+ const { startMcpServer } = await import("./dist-MW7THWM3.js");
14
14
  await startMcpServer();
15
15
  } else {
16
16
  const mcpServerModule = "@codemcp/workflows-server";
@@ -18,6 +18,6 @@ if (args.length === 0) {
18
18
  await startMcpServer();
19
19
  }
20
20
  } else {
21
- const { runCli } = await import("./cli-DXJJF56V.js");
21
+ const { runCli } = await import("./cli-ZCCFBQTP.js");
22
22
  await runCli();
23
23
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-cli",
3
- "version": "6.4.0",
3
+ "version": "6.5.1",
4
4
  "description": "CLI tools for responsible-vibe development workflows",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -26,6 +26,10 @@ metadata:
26
26
  states:
27
27
  reproduce:
28
28
  description: 'Reproduce and understand the bug'
29
+ allowed_file_patterns:
30
+ - '**/*.md'
31
+ - '**/*.txt'
32
+ - '**/*.adoc'
29
33
  default_instructions: |
30
34
  Gather specific information to reliably reproduce the reported bug:
31
35
  - What are the exact OS, browser/runtime versions, and hardware specs?
@@ -42,6 +46,10 @@ states:
42
46
 
43
47
  analyze:
44
48
  description: 'Analyze the bug and identify root cause'
49
+ allowed_file_patterns:
50
+ - '**/*.md'
51
+ - '**/*.txt'
52
+ - '**/*.adoc'
45
53
  default_instructions: Examine the code paths involved in the bug, identify the root cause, and understand why the issue occurs. Use debugging tools, add logging, and trace through the problematic code. Document your analysis and create tasks as needed.
46
54
  transitions:
47
55
  - trigger: 'need_more_reproduction'
@@ -66,6 +74,8 @@ states:
66
74
 
67
75
  fix:
68
76
  description: 'Implement the bug fix'
77
+ allowed_file_patterns:
78
+ - '**/*'
69
79
  default_instructions: |
70
80
  Implement the solution based on your analysis:
71
81
 
@@ -100,6 +110,8 @@ states:
100
110
 
101
111
  verify:
102
112
  description: 'Verify the fix and ensure no regressions'
113
+ allowed_file_patterns:
114
+ - '**/*'
103
115
  default_instructions: Test the fix thoroughly to ensure the original bug is resolved and no new issues were introduced. Run existing tests, create new ones if needed, and verify the solution is robust.
104
116
  transitions:
105
117
  - trigger: 'fix_needs_adjustment'
@@ -123,6 +135,8 @@ states:
123
135
 
124
136
  finalize:
125
137
  description: 'Code cleanup and documentation finalization'
138
+ allowed_file_patterns:
139
+ - '**/*'
126
140
  default_instructions: |
127
141
  Ensure code quality and documentation accuracy through systematic cleanup and review.
128
142
 
@@ -26,6 +26,10 @@ metadata:
26
26
  states:
27
27
  explore:
28
28
  description: 'Research and exploration phase - understanding the problem space'
29
+ allowed_file_patterns:
30
+ - '**/*.md'
31
+ - '**/*.txt'
32
+ - '**/*.adoc'
29
33
  default_instructions: |
30
34
  Research the codebase to understand existing patterns and gather context about the problem space.
31
35
 
@@ -43,6 +47,10 @@ states:
43
47
 
44
48
  plan:
45
49
  description: 'Planning phase - creating a detailed implementation strategy'
50
+ allowed_file_patterns:
51
+ - '**/*.md'
52
+ - '**/*.txt'
53
+ - '**/*.adoc'
46
54
  default_instructions: |
47
55
  Create a detailed implementation strategy based on your exploration:
48
56
 
@@ -83,6 +91,8 @@ states:
83
91
 
84
92
  code:
85
93
  description: 'Implementation phase - writing and building the solution'
94
+ allowed_file_patterns:
95
+ - '**/*'
86
96
  default_instructions: |
87
97
  Follow your plan to build the solution:
88
98
 
@@ -124,6 +134,8 @@ states:
124
134
 
125
135
  commit:
126
136
  description: 'Code cleanup and documentation finalization'
137
+ allowed_file_patterns:
138
+ - '**/*'
127
139
  default_instructions: >
128
140
  Ensure code quality and documentation accuracy through systematic cleanup and review.
129
141
 
@@ -27,6 +27,10 @@ metadata:
27
27
  states:
28
28
  ideation:
29
29
  description: 'Deep requirements discovery and PRD creation phase'
30
+ allowed_file_patterns:
31
+ - '**/*.md'
32
+ - '**/*.txt'
33
+ - '**/*.adoc'
30
34
  default_instructions: |
31
35
  Understand WHAT the system should do, WHO will use it, WHY it's needed, and WHAT'S in/out of scope by exploring:
32
36
  - Are there existing solutions? What gaps do they have?
@@ -47,6 +51,10 @@ states:
47
51
 
48
52
  architecture:
49
53
  description: 'Tech stack selection and architecture design phase'
54
+ allowed_file_patterns:
55
+ - '**/*.md'
56
+ - '**/*.txt'
57
+ - '**/*.adoc'
50
58
  default_instructions: |
51
59
  Design the technical solution based on requirements from `$REQUIREMENTS_DOC`.
52
60
 
@@ -82,6 +90,10 @@ states:
82
90
 
83
91
  plan:
84
92
  description: 'Implementation planning phase based on established architecture'
93
+ allowed_file_patterns:
94
+ - '**/*.md'
95
+ - '**/*.txt'
96
+ - '**/*.adoc'
85
97
  default_instructions: |
86
98
  Create a detailed implementation strategy based on your completed architecture in `$ARCHITECTURE_DOC` and requirements from `$REQUIREMENTS_DOC`.
87
99
 
@@ -118,6 +130,8 @@ states:
118
130
 
119
131
  code:
120
132
  description: 'Implementation phase following the established plan and architecture'
133
+ allowed_file_patterns:
134
+ - '**/*'
121
135
  default_instructions: |
122
136
  Build the solution following your plan and detailed design from `$DESIGN_DOC` using the architecture from `$ARCHITECTURE_DOC`.
123
137
 
@@ -151,6 +165,8 @@ states:
151
165
 
152
166
  finalize:
153
167
  description: 'Code cleanup and documentation finalization'
168
+ allowed_file_patterns:
169
+ - '**/*'
154
170
  default_instructions: |
155
171
  This phase ensures code quality and documentation accuracy through systematic cleanup and review.
156
172
 
@@ -26,6 +26,10 @@ metadata:
26
26
  states:
27
27
  explore:
28
28
  description: 'Analysis and design phase - understanding and planning without implementation'
29
+ allowed_file_patterns:
30
+ - '**/*.md'
31
+ - '**/*.txt'
32
+ - '**/*.adoc'
29
33
  default_instructions: >
30
34
  Understand the problem, analyze existing patterns, and design your approach.
31
35
  Consider the scope and impact of the change.
@@ -49,6 +53,8 @@ states:
49
53
 
50
54
  implement:
51
55
  description: 'Combined implementation phase - code, test, and commit'
56
+ allowed_file_patterns:
57
+ - '**/*'
52
58
  default_instructions: >
53
59
  Write clean, focused code for the minor enhancement, test your changes, and prepare for commit.
54
60
 
@@ -85,6 +91,8 @@ states:
85
91
 
86
92
  finalize:
87
93
  description: 'Code cleanup and documentation finalization'
94
+ allowed_file_patterns:
95
+ - '**/*'
88
96
  default_instructions: >
89
97
  Ensure code quality and documentation accuracy through systematic cleanup and review.
90
98
 
@@ -26,6 +26,10 @@ metadata:
26
26
  states:
27
27
  explore:
28
28
  description: 'Research and exploration phase - understanding the problem space and codebase'
29
+ allowed_file_patterns:
30
+ - '**/*.md'
31
+ - '**/*.txt'
32
+ - '**/*.adoc'
29
33
  default_instructions: |
30
34
  **STEP 1:** Gather context about what needs to be developed. Focus on the WHY and WHAT, not the HOW.
31
35
 
@@ -46,6 +50,8 @@ states:
46
50
 
47
51
  red:
48
52
  description: 'RED phase - Write a failing test that defines the expected behavior'
53
+ allowed_file_patterns:
54
+ - '**/*'
49
55
  default_instructions: |
50
56
  Write a failing test that defines the expected behavior for the feature.
51
57
 
@@ -81,6 +87,8 @@ states:
81
87
 
82
88
  green:
83
89
  description: 'GREEN phase - Write only the necessary code to make the test pass'
90
+ allowed_file_patterns:
91
+ - '**/*'
84
92
  default_instructions: |
85
93
  Implement the necessary code to make the failing test pass with proper functionality.
86
94
 
@@ -120,6 +128,8 @@ states:
120
128
 
121
129
  refactor:
122
130
  description: 'REFACTOR phase - Improve code quality while keeping tests green (cleanup phase)'
131
+ allowed_file_patterns:
132
+ - '**/*'
123
133
  default_instructions: |
124
134
  Improve code quality while keeping all tests green. This is the cleanup phase where you enhance readability and maintainability.
125
135
 
@@ -27,6 +27,10 @@ metadata:
27
27
  states:
28
28
  requirements:
29
29
  description: 'Gathering and analyzing requirements'
30
+ allowed_file_patterns:
31
+ - '**/*.md'
32
+ - '**/*.txt'
33
+ - '**/*.adoc'
30
34
  default_instructions: |
31
35
  Familiarize yourself with the code base and understand project goals, scope, constraints, and success criteria.
32
36
 
@@ -49,6 +53,10 @@ states:
49
53
 
50
54
  design:
51
55
  description: 'Technical design and architecture planning'
56
+ allowed_file_patterns:
57
+ - '**/*.md'
58
+ - '**/*.txt'
59
+ - '**/*.adoc'
52
60
  default_instructions: |
53
61
  Review requirements from `$REQUIREMENTS_DOC` and design the technical solution.
54
62
 
@@ -72,6 +80,8 @@ states:
72
80
 
73
81
  implementation:
74
82
  description: 'Building the solution according to design'
83
+ allowed_file_patterns:
84
+ - '**/*'
75
85
  default_instructions: |
76
86
  Follow the architecture from `$ARCHITECTURE_DOC` and detailed design from `$DESIGN_DOC` to build the solution.
77
87
 
@@ -102,6 +112,8 @@ states:
102
112
 
103
113
  qa:
104
114
  description: 'Quality assurance and code review'
115
+ allowed_file_patterns:
116
+ - '**/*'
105
117
  default_instructions: |
106
118
  Perform systematic quality checks and code review:
107
119
 
@@ -132,6 +144,8 @@ states:
132
144
 
133
145
  testing:
134
146
  description: 'Comprehensive testing and validation'
147
+ allowed_file_patterns:
148
+ - '**/*'
135
149
  default_instructions: |
136
150
  Create and execute comprehensive test plans to validate feature completeness.
137
151
 
@@ -160,6 +174,8 @@ states:
160
174
 
161
175
  finalize:
162
176
  description: 'Code cleanup and documentation finalization'
177
+ allowed_file_patterns:
178
+ - '**/*'
163
179
  default_instructions: |
164
180
  Complete the feature by cleaning up code and updating documentation.
165
181
 
@@ -6,6 +6,7 @@
6
6
  * - Phase task management
7
7
  * - Task hierarchy setup
8
8
  */
9
+ import { type ILogger } from './logger.js';
9
10
  import { YamlState } from './state-machine-types.js';
10
11
  export interface BeadsPhaseTask {
11
12
  phaseId: string;
@@ -17,7 +18,8 @@ export interface BeadsPhaseTask {
17
18
  */
18
19
  export declare class BeadsIntegration {
19
20
  private projectPath;
20
- constructor(projectPath: string);
21
+ private logger;
22
+ constructor(projectPath: string, logger?: ILogger);
21
23
  /**
22
24
  * Ensure beads is initialized in the project directory
23
25
  */
@@ -35,10 +37,6 @@ export declare class BeadsIntegration {
35
37
  * Implements graceful error handling: logs warnings for failed dependencies but continues
36
38
  */
37
39
  createPhaseDependencies(phaseTasks: BeadsPhaseTask[]): Promise<void>;
38
- /**
39
- * Capitalize phase name for display
40
- */
41
- private capitalizePhase;
42
40
  /**
43
41
  * Validate parameters for epic creation
44
42
  */
@@ -8,14 +8,17 @@
8
8
  */
9
9
  import { execSync } from 'node:child_process';
10
10
  import { createLogger } from './logger.js';
11
- const logger = createLogger('BeadsIntegration');
11
+ import { capitalizePhase } from './string-utils.js';
12
+ const defaultLogger = createLogger('BeadsIntegration');
12
13
  /**
13
14
  * Beads integration manager for the workflows server
14
15
  */
15
16
  export class BeadsIntegration {
16
17
  projectPath;
17
- constructor(projectPath) {
18
+ logger;
19
+ constructor(projectPath, logger = defaultLogger) {
18
20
  this.projectPath = projectPath;
21
+ this.logger = logger;
19
22
  }
20
23
  /**
21
24
  * Ensure beads is initialized in the project directory
@@ -37,7 +40,7 @@ export class BeadsIntegration {
37
40
  if (errorMessage.includes('not initialized') ||
38
41
  errorMessage.includes('no database') ||
39
42
  errorMessage.includes('init')) {
40
- logger.info('Beads not initialized, running bd init --no-db', {
43
+ this.logger.info('Beads not initialized, running bd init --no-db', {
41
44
  projectPath: this.projectPath,
42
45
  });
43
46
  try {
@@ -47,13 +50,13 @@ export class BeadsIntegration {
47
50
  encoding: 'utf-8',
48
51
  stdio: ['ignore', 'pipe', 'pipe'],
49
52
  });
50
- logger.info('Successfully initialized beads in project', {
53
+ this.logger.info('Successfully initialized beads in project', {
51
54
  projectPath: this.projectPath,
52
55
  });
53
56
  }
54
57
  catch (initError) {
55
58
  const initErrorMessage = initError instanceof Error ? initError.message : String(initError);
56
- logger.error('Failed to initialize beads', initError instanceof Error
59
+ this.logger.error('Failed to initialize beads', initError instanceof Error
57
60
  ? initError
58
61
  : new Error(initErrorMessage), { projectPath: this.projectPath });
59
62
  throw new Error(`Failed to initialize beads: ${initErrorMessage}`);
@@ -80,7 +83,7 @@ export class BeadsIntegration {
80
83
  `Responsible vibe engineering session using ${workflowName} workflow for ${projectName}`;
81
84
  const priority = 2;
82
85
  const command = `bd create "${epicTitle}" --description "${epicDescription}" --priority ${priority}`;
83
- logger.debug('Creating beads project epic', {
86
+ this.logger.debug('Creating beads project epic', {
84
87
  command,
85
88
  projectName,
86
89
  workflowName,
@@ -99,14 +102,14 @@ export class BeadsIntegration {
99
102
  output.match(/Created issue: ([\w\d.-]+)/) ||
100
103
  output.match(/Created (bd-[\w\d.]+)/);
101
104
  if (!match) {
102
- logger.warn('Failed to extract task ID from beads output', {
105
+ this.logger.warn('Failed to extract task ID from beads output', {
103
106
  command: `bd create "${epicTitle}" --description "${epicDescription}" --priority 2`,
104
107
  output: output.slice(0, 200), // Truncated for logging
105
108
  });
106
109
  throw new Error(`Failed to extract task ID from beads output: ${output.slice(0, 100)}...`);
107
110
  }
108
111
  const epicId = match[1] || '';
109
- logger.info('Created beads project epic', {
112
+ this.logger.info('Created beads project epic', {
110
113
  epicId,
111
114
  epicTitle,
112
115
  projectPath: this.projectPath,
@@ -121,11 +124,11 @@ export class BeadsIntegration {
121
124
  workflowName,
122
125
  projectPath: this.projectPath,
123
126
  };
124
- logger.error('Failed to create beads project epic', error instanceof Error ? error : new Error(errorMessage), commandInfo);
127
+ this.logger.error('Failed to create beads project epic', error instanceof Error ? error : new Error(errorMessage), commandInfo);
125
128
  // Include stderr if available for better debugging
126
129
  const execError = error;
127
130
  if (execError?.stderr) {
128
- logger.error('Beads command stderr output', new Error('Command stderr'), {
131
+ this.logger.error('Beads command stderr output', new Error('Command stderr'), {
129
132
  stderr: execError.stderr.toString(),
130
133
  ...commandInfo,
131
134
  });
@@ -142,7 +145,7 @@ export class BeadsIntegration {
142
145
  const phaseTasks = [];
143
146
  const phaseNames = Object.keys(phases);
144
147
  for (const phase of phaseNames) {
145
- const phaseTitle = `${this.capitalizePhase(phase)}`;
148
+ const phaseTitle = capitalizePhase(phase);
146
149
  const priority = 3;
147
150
  const stateDefinition = phases[phase];
148
151
  // Escape the description to prevent shell injection and handle special characters
@@ -153,7 +156,7 @@ export class BeadsIntegration {
153
156
  .replace(/\r/g, '') // Remove carriage returns
154
157
  .trim();
155
158
  const command = `bd create "${phaseTitle}" --description "${description}" --parent ${epicId} --priority ${priority}`;
156
- logger.debug('Creating beads phase task', {
159
+ this.logger.debug('Creating beads phase task', {
157
160
  command,
158
161
  phase,
159
162
  epicId,
@@ -172,7 +175,7 @@ export class BeadsIntegration {
172
175
  output.match(/Created issue: ([\w\d.-]+)/) ||
173
176
  output.match(/Created (bd-[\w\d.]+)/);
174
177
  if (!match) {
175
- logger.warn('Failed to extract phase task ID from beads output', {
178
+ this.logger.warn('Failed to extract phase task ID from beads output', {
176
179
  command,
177
180
  output: output.slice(0, 200), // Truncated for logging
178
181
  });
@@ -184,7 +187,7 @@ export class BeadsIntegration {
184
187
  phaseName: phaseTitle,
185
188
  taskId: phaseTaskId,
186
189
  });
187
- logger.debug('Created beads phase task', {
190
+ this.logger.debug('Created beads phase task', {
188
191
  phase,
189
192
  phaseTaskId,
190
193
  epicId,
@@ -199,11 +202,11 @@ export class BeadsIntegration {
199
202
  epicId,
200
203
  projectPath: this.projectPath,
201
204
  };
202
- logger.error('Failed to create beads phase task', error instanceof Error ? error : new Error(errorMessage), commandInfo);
205
+ this.logger.error('Failed to create beads phase task', error instanceof Error ? error : new Error(errorMessage), commandInfo);
203
206
  // Include stderr if available for better debugging
204
207
  const execError = error;
205
208
  if (execError?.stderr) {
206
- logger.error('Beads phase command stderr output', new Error('Command stderr'), {
209
+ this.logger.error('Beads phase command stderr output', new Error('Command stderr'), {
207
210
  stderr: execError.stderr.toString(),
208
211
  ...commandInfo,
209
212
  });
@@ -211,7 +214,7 @@ export class BeadsIntegration {
211
214
  throw new Error(`Failed to create beads phase task for ${phase}: ${errorMessage}`);
212
215
  }
213
216
  }
214
- logger.info('Created all beads phase tasks', {
217
+ this.logger.info('Created all beads phase tasks', {
215
218
  count: phaseTasks.length,
216
219
  epicId,
217
220
  projectPath: this.projectPath,
@@ -224,13 +227,13 @@ export class BeadsIntegration {
224
227
  */
225
228
  async createPhaseDependencies(phaseTasks) {
226
229
  if (phaseTasks.length < 2) {
227
- logger.debug('Skipping phase dependencies - less than 2 phases', {
230
+ this.logger.debug('Skipping phase dependencies - less than 2 phases', {
228
231
  phaseCount: phaseTasks.length,
229
232
  projectPath: this.projectPath,
230
233
  });
231
234
  return;
232
235
  }
233
- logger.info('Creating sequential phase dependencies', {
236
+ this.logger.info('Creating sequential phase dependencies', {
234
237
  phaseCount: phaseTasks.length,
235
238
  projectPath: this.projectPath,
236
239
  });
@@ -241,7 +244,7 @@ export class BeadsIntegration {
241
244
  const currentPhase = phaseTasks[i];
242
245
  const nextPhase = phaseTasks[i + 1];
243
246
  if (!currentPhase || !nextPhase) {
244
- logger.warn('Skipping phase dependency - missing phase data', {
247
+ this.logger.warn('Skipping phase dependency - missing phase data', {
245
248
  currentPhaseIndex: i,
246
249
  nextPhaseIndex: i + 1,
247
250
  totalPhases: phaseTasks.length,
@@ -255,7 +258,7 @@ export class BeadsIntegration {
255
258
  continue;
256
259
  }
257
260
  const command = `bd dep ${currentPhase.taskId} --blocks ${nextPhase.taskId}`;
258
- logger.debug('Creating phase dependency', {
261
+ this.logger.debug('Creating phase dependency', {
259
262
  command,
260
263
  currentPhase: currentPhase.phaseName,
261
264
  nextPhase: nextPhase.phaseName,
@@ -269,7 +272,7 @@ export class BeadsIntegration {
269
272
  encoding: 'utf-8',
270
273
  stdio: ['ignore', 'pipe', 'pipe'],
271
274
  });
272
- logger.debug('Successfully created phase dependency', {
275
+ this.logger.debug('Successfully created phase dependency', {
273
276
  currentPhase: currentPhase.phaseName,
274
277
  nextPhase: nextPhase.phaseName,
275
278
  projectPath: this.projectPath,
@@ -278,7 +281,7 @@ export class BeadsIntegration {
278
281
  catch (error) {
279
282
  // Log as warning but don't fail the entire setup
280
283
  const errorMessage = error instanceof Error ? error.message : String(error);
281
- logger.warn('Failed to create phase dependency - continuing anyway', {
284
+ this.logger.warn('Failed to create phase dependency - continuing anyway', {
282
285
  error: errorMessage,
283
286
  command,
284
287
  currentPhase: currentPhase.phaseName,
@@ -288,7 +291,7 @@ export class BeadsIntegration {
288
291
  // Include stderr if available for better debugging
289
292
  const execError = error;
290
293
  if (execError?.stderr) {
291
- logger.debug('Beads dependency command stderr', {
294
+ this.logger.debug('Beads dependency command stderr', {
292
295
  stderr: execError.stderr.toString(),
293
296
  command,
294
297
  projectPath: this.projectPath,
@@ -303,28 +306,19 @@ export class BeadsIntegration {
303
306
  }
304
307
  }
305
308
  if (failedDependencies.length > 0) {
306
- logger.warn('Some phase dependencies could not be created - app continues without these dependencies', {
309
+ this.logger.warn('Some phase dependencies could not be created - app continues without these dependencies', {
307
310
  failedCount: failedDependencies.length,
308
311
  failedDependencies,
309
312
  projectPath: this.projectPath,
310
313
  });
311
314
  }
312
- logger.info('Completed phase dependency creation', {
315
+ this.logger.info('Completed phase dependency creation', {
313
316
  dependencyCount: phaseTasks.length - 1,
314
317
  successCount: phaseTasks.length - 1 - failedDependencies.length,
315
318
  failedCount: failedDependencies.length,
316
319
  projectPath: this.projectPath,
317
320
  });
318
321
  }
319
- /**
320
- * Capitalize phase name for display
321
- */
322
- capitalizePhase(phase) {
323
- return phase
324
- .split('_')
325
- .map(word => word.charAt(0).toUpperCase() + word.slice(1))
326
- .join(' ');
327
- }
328
322
  /**
329
323
  * Validate parameters for epic creation
330
324
  */
@@ -1 +1 @@
1
- {"version":3,"file":"beads-integration.js","sourceRoot":"","sources":["../src/beads-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC;AAQhD;;GAEG;AACH,MAAM,OAAO,gBAAgB;IACnB,WAAW,CAAS;IAE5B,YAAY,WAAmB;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,sBAAsB;QAClC,IAAI,CAAC;YACH,oEAAoE;YACpE,QAAQ,CAAC,mBAAmB,EAAE;gBAC5B,GAAG,EAAE,IAAI,CAAC,WAAW;gBACrB,QAAQ,EAAE,OAAO;gBACjB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;aAClC,CAAC,CAAC;YAEH,+CAA+C;YAC/C,OAAO;QACT,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,YAAY,GAChB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAEzD,uDAAuD;YACvD,IACE,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC;gBACxC,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC;gBACpC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC7B,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,gDAAgD,EAAE;oBAC5D,WAAW,EAAE,IAAI,C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C,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,EAC1B,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,CAAC;QAED,sBAAsB;QACtB,KAAK,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7D,IACE,CAAC,SAAS;gBACV,OAAO,SAAS,KAAK,QAAQ;gBAC7B,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EACvB,CAAC;gBACD,MAAM,IAAI,KAAK,CACb,wBAAwB,SAAS,2CAA2C,CAC7E,CAAC;YACJ,CAAC;YAED,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAClD,MAAM,IAAI,KAAK,CACb,4BAA4B,SAAS,kCAAkC,CACxE,CAAC;YACJ,CAAC;YAED,IACE,CAAC,UAAU,CAAC,oBAAoB;gBAChC,OAAO,UAAU,CAAC,oBAAoB,KAAK,QAAQ,EACnD,CAAC;gBACD,MAAM,IAAI,KAAK,CACb,4BAA4B,SAAS,qDAAqD,CAC3F,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
@@ -5,6 +5,7 @@
5
5
  * and epic information. Provides persistent storage for beads integration
6
6
  * data with proper separation of concerns from conversation management.
7
7
  */
8
+ import { type ILogger } from './logger.js';
8
9
  import type { BeadsPhaseTask } from './beads-integration.js';
9
10
  /**
10
11
  * Beads-specific conversation state
@@ -22,7 +23,8 @@ export interface BeadsConversationState {
22
23
  */
23
24
  export declare class BeadsStateManager {
24
25
  private projectPath;
25
- constructor(projectPath: string);
26
+ private logger;
27
+ constructor(projectPath: string, logger?: ILogger);
26
28
  /**
27
29
  * Get the path to the beads state file for a conversation
28
30
  */