@hyperdrive.bot/bmad-workflow 1.0.2
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/LICENSE +21 -0
- package/README.md +1017 -0
- package/bin/dev +5 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/config/show.d.ts +34 -0
- package/dist/commands/config/show.js +108 -0
- package/dist/commands/config/validate.d.ts +29 -0
- package/dist/commands/config/validate.js +131 -0
- package/dist/commands/decompose.d.ts +79 -0
- package/dist/commands/decompose.js +327 -0
- package/dist/commands/demo.d.ts +18 -0
- package/dist/commands/demo.js +107 -0
- package/dist/commands/epics/create.d.ts +123 -0
- package/dist/commands/epics/create.js +459 -0
- package/dist/commands/epics/list.d.ts +120 -0
- package/dist/commands/epics/list.js +280 -0
- package/dist/commands/hello/index.d.ts +12 -0
- package/dist/commands/hello/index.js +34 -0
- package/dist/commands/hello/world.d.ts +8 -0
- package/dist/commands/hello/world.js +24 -0
- package/dist/commands/prd/fix.d.ts +39 -0
- package/dist/commands/prd/fix.js +140 -0
- package/dist/commands/prd/validate.d.ts +112 -0
- package/dist/commands/prd/validate.js +302 -0
- package/dist/commands/stories/create.d.ts +95 -0
- package/dist/commands/stories/create.js +431 -0
- package/dist/commands/stories/develop.d.ts +91 -0
- package/dist/commands/stories/develop.js +460 -0
- package/dist/commands/stories/list.d.ts +84 -0
- package/dist/commands/stories/list.js +291 -0
- package/dist/commands/stories/move.d.ts +66 -0
- package/dist/commands/stories/move.js +273 -0
- package/dist/commands/stories/qa.d.ts +99 -0
- package/dist/commands/stories/qa.js +530 -0
- package/dist/commands/workflow.d.ts +97 -0
- package/dist/commands/workflow.js +390 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/agent-options.d.ts +50 -0
- package/dist/models/agent-options.js +1 -0
- package/dist/models/agent-result.d.ts +29 -0
- package/dist/models/agent-result.js +1 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/phase-result.d.ts +65 -0
- package/dist/models/phase-result.js +7 -0
- package/dist/models/provider.d.ts +28 -0
- package/dist/models/provider.js +18 -0
- package/dist/models/story.d.ts +154 -0
- package/dist/models/story.js +18 -0
- package/dist/models/workflow-config.d.ts +148 -0
- package/dist/models/workflow-config.js +1 -0
- package/dist/models/workflow-result.d.ts +164 -0
- package/dist/models/workflow-result.js +7 -0
- package/dist/services/agents/agent-runner-factory.d.ts +31 -0
- package/dist/services/agents/agent-runner-factory.js +44 -0
- package/dist/services/agents/agent-runner.d.ts +46 -0
- package/dist/services/agents/agent-runner.js +29 -0
- package/dist/services/agents/claude-agent-runner.d.ts +81 -0
- package/dist/services/agents/claude-agent-runner.js +332 -0
- package/dist/services/agents/gemini-agent-runner.d.ts +82 -0
- package/dist/services/agents/gemini-agent-runner.js +350 -0
- package/dist/services/agents/index.d.ts +7 -0
- package/dist/services/agents/index.js +7 -0
- package/dist/services/file-system/file-manager.d.ts +110 -0
- package/dist/services/file-system/file-manager.js +223 -0
- package/dist/services/file-system/glob-matcher.d.ts +75 -0
- package/dist/services/file-system/glob-matcher.js +126 -0
- package/dist/services/file-system/path-resolver.d.ts +183 -0
- package/dist/services/file-system/path-resolver.js +400 -0
- package/dist/services/logging/workflow-logger.d.ts +232 -0
- package/dist/services/logging/workflow-logger.js +552 -0
- package/dist/services/orchestration/batch-processor.d.ts +113 -0
- package/dist/services/orchestration/batch-processor.js +187 -0
- package/dist/services/orchestration/dependency-graph-executor.d.ts +60 -0
- package/dist/services/orchestration/dependency-graph-executor.js +447 -0
- package/dist/services/orchestration/index.d.ts +10 -0
- package/dist/services/orchestration/index.js +8 -0
- package/dist/services/orchestration/input-detector.d.ts +125 -0
- package/dist/services/orchestration/input-detector.js +381 -0
- package/dist/services/orchestration/story-queue.d.ts +94 -0
- package/dist/services/orchestration/story-queue.js +170 -0
- package/dist/services/orchestration/story-type-detector.d.ts +80 -0
- package/dist/services/orchestration/story-type-detector.js +258 -0
- package/dist/services/orchestration/task-decomposition-service.d.ts +67 -0
- package/dist/services/orchestration/task-decomposition-service.js +607 -0
- package/dist/services/orchestration/workflow-orchestrator.d.ts +659 -0
- package/dist/services/orchestration/workflow-orchestrator.js +2201 -0
- package/dist/services/parsers/epic-parser.d.ts +117 -0
- package/dist/services/parsers/epic-parser.js +264 -0
- package/dist/services/parsers/prd-fixer.d.ts +86 -0
- package/dist/services/parsers/prd-fixer.js +194 -0
- package/dist/services/parsers/prd-parser.d.ts +123 -0
- package/dist/services/parsers/prd-parser.js +286 -0
- package/dist/services/parsers/standalone-story-parser.d.ts +114 -0
- package/dist/services/parsers/standalone-story-parser.js +255 -0
- package/dist/services/parsers/story-parser-factory.d.ts +81 -0
- package/dist/services/parsers/story-parser-factory.js +108 -0
- package/dist/services/parsers/story-parser.d.ts +122 -0
- package/dist/services/parsers/story-parser.js +262 -0
- package/dist/services/scaffolding/decompose-session-scaffolder.d.ts +74 -0
- package/dist/services/scaffolding/decompose-session-scaffolder.js +315 -0
- package/dist/services/scaffolding/file-scaffolder.d.ts +94 -0
- package/dist/services/scaffolding/file-scaffolder.js +314 -0
- package/dist/services/validation/config-validator.d.ts +88 -0
- package/dist/services/validation/config-validator.js +167 -0
- package/dist/types/task-graph.d.ts +142 -0
- package/dist/types/task-graph.js +5 -0
- package/dist/utils/colors.d.ts +49 -0
- package/dist/utils/colors.js +50 -0
- package/dist/utils/error-formatter.d.ts +64 -0
- package/dist/utils/error-formatter.js +279 -0
- package/dist/utils/errors.d.ts +170 -0
- package/dist/utils/errors.js +233 -0
- package/dist/utils/formatters.d.ts +84 -0
- package/dist/utils/formatters.js +162 -0
- package/dist/utils/logger.d.ts +63 -0
- package/dist/utils/logger.js +78 -0
- package/dist/utils/progress.d.ts +104 -0
- package/dist/utils/progress.js +161 -0
- package/dist/utils/retry.d.ts +114 -0
- package/dist/utils/retry.js +160 -0
- package/dist/utils/shared-flags.d.ts +28 -0
- package/dist/utils/shared-flags.js +43 -0
- package/package.json +119 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Flag Definitions for bmad-workflow Commands
|
|
3
|
+
*
|
|
4
|
+
* Provides reusable --agent, --task, and --provider flags that allow users to override
|
|
5
|
+
* the default agent persona, task, and AI provider for any command that builds prompts.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {agentFlags} from '../utils/shared-flags.js'
|
|
10
|
+
*
|
|
11
|
+
* static flags = {
|
|
12
|
+
* ...agentFlags,
|
|
13
|
+
* // other command-specific flags
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Agent, Task, and Provider flags for customizing command behavior
|
|
19
|
+
*
|
|
20
|
+
* These flags allow users to override which BMAD agent persona,
|
|
21
|
+
* task command, and AI provider to use when building prompts.
|
|
22
|
+
*/
|
|
23
|
+
export declare const agentFlags: {
|
|
24
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
cwd: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
provider: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
|
+
task: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Flag Definitions for bmad-workflow Commands
|
|
3
|
+
*
|
|
4
|
+
* Provides reusable --agent, --task, and --provider flags that allow users to override
|
|
5
|
+
* the default agent persona, task, and AI provider for any command that builds prompts.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {agentFlags} from '../utils/shared-flags.js'
|
|
10
|
+
*
|
|
11
|
+
* static flags = {
|
|
12
|
+
* ...agentFlags,
|
|
13
|
+
* // other command-specific flags
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import { Flags } from '@oclif/core';
|
|
18
|
+
/**
|
|
19
|
+
* Agent, Task, and Provider flags for customizing command behavior
|
|
20
|
+
*
|
|
21
|
+
* These flags allow users to override which BMAD agent persona,
|
|
22
|
+
* task command, and AI provider to use when building prompts.
|
|
23
|
+
*/
|
|
24
|
+
export const agentFlags = {
|
|
25
|
+
agent: Flags.string({
|
|
26
|
+
description: 'Override which BMAD agent to use (e.g., dev, sm, architect, qa). Defaults to command-appropriate agent.',
|
|
27
|
+
helpGroup: 'Agent Customization',
|
|
28
|
+
}),
|
|
29
|
+
cwd: Flags.string({
|
|
30
|
+
description: 'Working directory path to pass to AI agents. Agents will operate in this directory.',
|
|
31
|
+
helpGroup: 'Agent Customization',
|
|
32
|
+
}),
|
|
33
|
+
provider: Flags.string({
|
|
34
|
+
default: 'claude',
|
|
35
|
+
description: 'AI provider to use (claude or gemini). Defaults to claude.',
|
|
36
|
+
helpGroup: 'Agent Customization',
|
|
37
|
+
options: ['claude', 'gemini'],
|
|
38
|
+
}),
|
|
39
|
+
task: Flags.string({
|
|
40
|
+
description: 'Override which task command to execute (e.g., develop-story, draft, review-implementation). Defaults to command-appropriate task.',
|
|
41
|
+
helpGroup: 'Agent Customization',
|
|
42
|
+
}),
|
|
43
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hyperdrive.bot/bmad-workflow",
|
|
3
|
+
"description": "AI-driven development workflow orchestration CLI for BMAD projects",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "DevSquad",
|
|
7
|
+
"email": "marcelo@devsquad.email",
|
|
8
|
+
"url": "https://www.grupokingdom.com/devsquad"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"bmad-workflow": "./bin/run"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://gitlab.com/dev_squad/repo/cli/bmad-orchestrator/issues"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@oclif/core": "^4",
|
|
18
|
+
"@oclif/plugin-help": "^6",
|
|
19
|
+
"bcrypt": "^6.0.0",
|
|
20
|
+
"chalk": "^5.6.2",
|
|
21
|
+
"cli-table3": "^0.6.5",
|
|
22
|
+
"fast-glob": "^3.3.3",
|
|
23
|
+
"fs-extra": "^11.3.2",
|
|
24
|
+
"js-yaml": "^4.1.0",
|
|
25
|
+
"jsonwebtoken": "^9.0.2",
|
|
26
|
+
"nodemailer": "^7.0.9",
|
|
27
|
+
"ora": "^9.0.0",
|
|
28
|
+
"pino": "^10.0.0",
|
|
29
|
+
"pino-pretty": "^13.1.2",
|
|
30
|
+
"uuid": "^13.0.0",
|
|
31
|
+
"zod": "^4.1.12"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@eslint/compat": "^1",
|
|
35
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
36
|
+
"@oclif/test": "^4",
|
|
37
|
+
"@types/bcrypt": "^6.0.0",
|
|
38
|
+
"@types/chai": "^4.3.20",
|
|
39
|
+
"@types/chai-as-promised": "^8.0.2",
|
|
40
|
+
"@types/fs-extra": "^11.0.4",
|
|
41
|
+
"@types/js-yaml": "^4.0.9",
|
|
42
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
43
|
+
"@types/mocha": "^10.0.10",
|
|
44
|
+
"@types/node": "^18",
|
|
45
|
+
"@types/nodemailer": "^7.0.2",
|
|
46
|
+
"@types/proxyquire": "^1.3.31",
|
|
47
|
+
"@types/sinon": "^17.0.4",
|
|
48
|
+
"@types/uuid": "^10.0.0",
|
|
49
|
+
"c8": "^10.1.3",
|
|
50
|
+
"chai": "^4.5.0",
|
|
51
|
+
"chai-as-promised": "^8.0.2",
|
|
52
|
+
"eslint": "^9",
|
|
53
|
+
"eslint-config-oclif": "^6",
|
|
54
|
+
"eslint-config-prettier": "^10",
|
|
55
|
+
"mocha": "^10.8.2",
|
|
56
|
+
"oclif": "^4",
|
|
57
|
+
"prettier": "^3.6.2",
|
|
58
|
+
"proxyquire": "^2.1.3",
|
|
59
|
+
"shx": "^0.3.3",
|
|
60
|
+
"sinon": "^17.0.1",
|
|
61
|
+
"ts-node": "^10.9.2",
|
|
62
|
+
"typescript": "^5"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=20.0.0"
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"bin/",
|
|
69
|
+
"dist/",
|
|
70
|
+
"oclif.manifest.json",
|
|
71
|
+
"README.md",
|
|
72
|
+
"LICENSE"
|
|
73
|
+
],
|
|
74
|
+
"homepage": "https://gitlab.com/dev_squad/repo/cli/bmad-orchestrator#readme",
|
|
75
|
+
"keywords": [
|
|
76
|
+
"cli",
|
|
77
|
+
"workflow",
|
|
78
|
+
"orchestration",
|
|
79
|
+
"ai",
|
|
80
|
+
"bmad",
|
|
81
|
+
"oclif"
|
|
82
|
+
],
|
|
83
|
+
"license": "MIT",
|
|
84
|
+
"main": "dist/index.js",
|
|
85
|
+
"type": "module",
|
|
86
|
+
"oclif": {
|
|
87
|
+
"bin": "bmad-workflow",
|
|
88
|
+
"dirname": "bmad-workflow",
|
|
89
|
+
"commands": "./dist/commands",
|
|
90
|
+
"plugins": [
|
|
91
|
+
"@oclif/plugin-help"
|
|
92
|
+
],
|
|
93
|
+
"topicSeparator": " "
|
|
94
|
+
},
|
|
95
|
+
"repository": {
|
|
96
|
+
"type": "git",
|
|
97
|
+
"url": "git@gitlab.com:dev_squad/repo/cli/bmad-orchestrator.git"
|
|
98
|
+
},
|
|
99
|
+
"publishConfig": {
|
|
100
|
+
"access": "public",
|
|
101
|
+
"registry": "https://registry.npmjs.org/"
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
105
|
+
"format": "prettier --write \"**/*.{ts,js,json,md}\"",
|
|
106
|
+
"format:check": "prettier --check \"**/*.{ts,js,json,md}\"",
|
|
107
|
+
"lint": "eslint",
|
|
108
|
+
"lint:fix": "eslint --fix",
|
|
109
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
110
|
+
"prepack": "npm run build && oclif manifest",
|
|
111
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
112
|
+
"test:integration": "mocha --forbid-only \"test/e2e/pipelined-workflow.test.ts\"",
|
|
113
|
+
"test:coverage": "c8 npm run test",
|
|
114
|
+
"test:watch": "mocha --watch \"test/**/*.test.ts\"",
|
|
115
|
+
"version": "command -v oclif >/dev/null 2>&1 && oclif readme && git add README.md || true",
|
|
116
|
+
"watch": "tsc -b --watch"
|
|
117
|
+
},
|
|
118
|
+
"types": "dist/index.d.ts"
|
|
119
|
+
}
|