spec-agent 2.0.0 → 2.0.3
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/.cursor/rules/spec-agent-assistant.mdc +34 -0
- package/.cursor/skills/spec-agent-execution-orchestrator/SKILL.md +133 -0
- package/.cursor/skills/spec-agent-execution-orchestrator/agent-prompts.md +113 -0
- package/.cursor/skills/spec-agent-execution-orchestrator/reference.md +37 -0
- package/.cursor/skills/spec-agent-onboarding-agent/SKILL.md +77 -0
- package/.cursor/skills/spec-agent-product-dev-agent/SKILL.md +92 -0
- package/CURSOR_AGENT_PACK.md +66 -0
- package/README.md +35 -2
- package/USAGE_FROM_NPM.md +9 -0
- package/dist/commands/orchestrate.d.ts +46 -0
- package/dist/commands/orchestrate.d.ts.map +1 -0
- package/dist/commands/orchestrate.js +229 -0
- package/dist/commands/orchestrate.js.map +1 -0
- package/dist/commands/round.d.ts +15 -0
- package/dist/commands/round.d.ts.map +1 -0
- package/dist/commands/round.js +202 -0
- package/dist/commands/round.js.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/orchestrator-v2-design.md +193 -0
- package/package.json +1 -1
- package/spec-agent-implementation.md +15 -0
- package/src/commands/orchestrate.ts +282 -0
- package/src/commands/round.ts +189 -0
- package/src/index.ts +27 -0
package/src/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ import { cleanCommand } from './commands/clean';
|
|
|
14
14
|
import { doctorCommand } from './commands/doctor';
|
|
15
15
|
import { handoffCommand } from './commands/handoff';
|
|
16
16
|
import { executeCommand } from './commands/execute';
|
|
17
|
+
import { orchestrateCommand } from './commands/orchestrate';
|
|
18
|
+
import { roundCommand } from './commands/round';
|
|
17
19
|
|
|
18
20
|
const program = new Command();
|
|
19
21
|
const pkgVersion = (() => {
|
|
@@ -173,4 +175,29 @@ program
|
|
|
173
175
|
.option('--dry-run', 'Preview execution transitions without writing state')
|
|
174
176
|
.action(executeCommand);
|
|
175
177
|
|
|
178
|
+
program
|
|
179
|
+
.command('orchestrate')
|
|
180
|
+
.description('Generate orchestrator context and next-step decisions from artifacts')
|
|
181
|
+
.option('-w, --workspace <dir>', 'Workspace directory', './output')
|
|
182
|
+
.option('-i, --input <path>', 'Input docs path used for pipeline', './docs')
|
|
183
|
+
.option('-t, --target <name>', 'Execution target: cursor, qcoder, codebuddy, generic', 'cursor')
|
|
184
|
+
.option('-p, --max-parallel <count>', 'Max parallel tasks for execute suggestion', '4')
|
|
185
|
+
.option('--format <format>', 'Output format: text, json', 'text')
|
|
186
|
+
.option('--dry-run', 'Preview decisions without writing orchestrator_context.json')
|
|
187
|
+
.action(orchestrateCommand);
|
|
188
|
+
|
|
189
|
+
program
|
|
190
|
+
.command('round')
|
|
191
|
+
.description('Run one orchestrated round (pipeline/handoff/execute decision)')
|
|
192
|
+
.option('-w, --workspace <dir>', 'Workspace directory', './output')
|
|
193
|
+
.option('-i, --input <path>', 'Input docs path used for pipeline', './docs')
|
|
194
|
+
.option('-t, --target <name>', 'Execution target: cursor, qcoder, codebuddy, generic', 'cursor')
|
|
195
|
+
.option('-p, --max-parallel <count>', 'Max parallel tasks for execute', '4')
|
|
196
|
+
.option('-r, --retry <count>', 'Retry times per task after failure', '1')
|
|
197
|
+
.option('--complete <ids>', 'Mark task IDs as completed, comma-separated')
|
|
198
|
+
.option('--fail <ids>', 'Mark task IDs as failed, comma-separated')
|
|
199
|
+
.option('--error <message>', 'Failure reason when using --fail')
|
|
200
|
+
.option('--dry-run', 'Preview one-round decision without running commands')
|
|
201
|
+
.action(roundCommand);
|
|
202
|
+
|
|
176
203
|
program.parse();
|