@orchestrator-claude/cli 3.1.12 → 3.2.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 (99) hide show
  1. package/dist/api-client/OrchestratorAPIClient.d.ts +50 -1
  2. package/dist/api-client/OrchestratorAPIClient.d.ts.map +1 -1
  3. package/dist/api-client/OrchestratorAPIClient.js +73 -1
  4. package/dist/api-client/OrchestratorAPIClient.js.map +1 -1
  5. package/dist/api-client/types.d.ts +95 -2
  6. package/dist/api-client/types.d.ts.map +1 -1
  7. package/dist/commands/InitCommand.d.ts +22 -3
  8. package/dist/commands/InitCommand.d.ts.map +1 -1
  9. package/dist/commands/InitCommand.js +147 -13
  10. package/dist/commands/InitCommand.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/services/BootstrapService.d.ts +100 -0
  16. package/dist/services/BootstrapService.d.ts.map +1 -0
  17. package/dist/services/BootstrapService.js +231 -0
  18. package/dist/services/BootstrapService.js.map +1 -0
  19. package/dist/services/CleanupManager.d.ts +49 -0
  20. package/dist/services/CleanupManager.d.ts.map +1 -0
  21. package/dist/services/CleanupManager.js +87 -0
  22. package/dist/services/CleanupManager.js.map +1 -0
  23. package/dist/services/CredentialGenerator.d.ts +11 -0
  24. package/dist/services/CredentialGenerator.d.ts.map +1 -0
  25. package/dist/services/CredentialGenerator.js +25 -0
  26. package/dist/services/CredentialGenerator.js.map +1 -0
  27. package/dist/services/VerificationService.d.ts +103 -0
  28. package/dist/services/VerificationService.d.ts.map +1 -0
  29. package/dist/services/VerificationService.js +350 -0
  30. package/dist/services/VerificationService.js.map +1 -0
  31. package/dist/templates/base/claude/skills/release/SKILL.md +236 -0
  32. package/dist/templates/base/claude/skills/release/release.sh +460 -0
  33. package/dist/templates/base/docker-compose.yml.hbs +189 -8
  34. package/dist/templates/base/mcp.json.hbs +16 -9
  35. package/dist/templates/default/docker-compose.yml +190 -10
  36. package/package.json +1 -1
  37. package/templates/base/claude/skills/release/SKILL.md +236 -0
  38. package/templates/base/claude/skills/release/release.sh +460 -0
  39. package/templates/base/docker-compose.yml.hbs +189 -8
  40. package/templates/base/mcp.json.hbs +16 -9
  41. package/templates/default/docker-compose.yml +190 -10
  42. package/dist/templates/base/orchestrator-index.json.hbs +0 -37
  43. package/dist/templates/projects/api/files/index.ts.hbs +0 -30
  44. package/dist/templates/projects/api/files/server.ts.hbs +0 -63
  45. package/dist/templates/projects/api/files/tsconfig.json.hbs +0 -27
  46. package/dist/templates/projects/api/files/vitest.config.ts.hbs +0 -28
  47. package/dist/templates/projects/api/template.config.json +0 -238
  48. package/dist/templates/projects/api/template.config.ts +0 -149
  49. package/dist/templates/projects/cli/files/cli.ts.hbs +0 -50
  50. package/dist/templates/projects/cli/files/index.ts.hbs +0 -8
  51. package/dist/templates/projects/cli/files/tsconfig.json.hbs +0 -27
  52. package/dist/templates/projects/cli/files/vitest.config.ts.hbs +0 -28
  53. package/dist/templates/projects/cli/template.config.json +0 -213
  54. package/dist/templates/projects/cli/template.config.ts +0 -126
  55. package/dist/templates/projects/frontend/files/App.tsx.hbs +0 -31
  56. package/dist/templates/projects/frontend/files/index.html.hbs +0 -13
  57. package/dist/templates/projects/frontend/files/main.tsx.hbs +0 -22
  58. package/dist/templates/projects/frontend/files/tsconfig.json.hbs +0 -34
  59. package/dist/templates/projects/frontend/files/tsconfig.node.json.hbs +0 -10
  60. package/dist/templates/projects/frontend/files/vite.config.ts.hbs +0 -19
  61. package/dist/templates/projects/frontend/files/vitest.config.ts.hbs +0 -36
  62. package/dist/templates/projects/frontend/template.config.json +0 -241
  63. package/dist/templates/projects/frontend/template.config.ts +0 -153
  64. package/dist/templates/projects/minimal/files/claude-settings.json.hbs +0 -20
  65. package/dist/templates/projects/minimal/files/env.example.hbs +0 -17
  66. package/dist/templates/projects/minimal/files/gitignore.hbs +0 -41
  67. package/dist/templates/projects/minimal/files/index.ts.hbs +0 -13
  68. package/dist/templates/projects/minimal/files/tsconfig.json.hbs +0 -27
  69. package/dist/templates/projects/minimal/template.config.json +0 -185
  70. package/dist/templates/projects/minimal/template.config.ts +0 -88
  71. package/templates/base/orchestrator-index.json.hbs +0 -37
  72. package/templates/projects/api/files/index.ts.hbs +0 -30
  73. package/templates/projects/api/files/server.ts.hbs +0 -63
  74. package/templates/projects/api/files/tsconfig.json.hbs +0 -27
  75. package/templates/projects/api/files/vitest.config.ts.hbs +0 -28
  76. package/templates/projects/api/template.config.json +0 -238
  77. package/templates/projects/api/template.config.ts +0 -149
  78. package/templates/projects/cli/files/cli.ts.hbs +0 -50
  79. package/templates/projects/cli/files/index.ts.hbs +0 -8
  80. package/templates/projects/cli/files/tsconfig.json.hbs +0 -27
  81. package/templates/projects/cli/files/vitest.config.ts.hbs +0 -28
  82. package/templates/projects/cli/template.config.json +0 -213
  83. package/templates/projects/cli/template.config.ts +0 -126
  84. package/templates/projects/frontend/files/App.tsx.hbs +0 -31
  85. package/templates/projects/frontend/files/index.html.hbs +0 -13
  86. package/templates/projects/frontend/files/main.tsx.hbs +0 -22
  87. package/templates/projects/frontend/files/tsconfig.json.hbs +0 -34
  88. package/templates/projects/frontend/files/tsconfig.node.json.hbs +0 -10
  89. package/templates/projects/frontend/files/vite.config.ts.hbs +0 -19
  90. package/templates/projects/frontend/files/vitest.config.ts.hbs +0 -36
  91. package/templates/projects/frontend/template.config.json +0 -241
  92. package/templates/projects/frontend/template.config.ts +0 -153
  93. package/templates/projects/minimal/files/claude-settings.json.hbs +0 -20
  94. package/templates/projects/minimal/files/env.example.hbs +0 -17
  95. package/templates/projects/minimal/files/gitignore.hbs +0 -41
  96. package/templates/projects/minimal/files/index.ts.hbs +0 -13
  97. package/templates/projects/minimal/files/tsconfig.json.hbs +0 -27
  98. package/templates/projects/minimal/template.config.json +0 -185
  99. package/templates/projects/minimal/template.config.ts +0 -88
@@ -1,185 +0,0 @@
1
- {
2
- "name": "minimal",
3
- "description": "Minimal project template with basic Orchestrator setup",
4
- "version": "1.0.0",
5
- "directories": [
6
- ".orchestrator",
7
- ".orchestrator/artifacts",
8
- ".orchestrator/artifacts/research",
9
- ".orchestrator/artifacts/specify",
10
- ".orchestrator/artifacts/plan",
11
- ".orchestrator/artifacts/tasks",
12
- ".orchestrator/artifacts/implement",
13
- ".orchestrator/workflows",
14
- ".orchestrator/memory",
15
- ".orchestrator/memory/knowledge-base",
16
- ".orchestrator/memory/knowledge-base/core",
17
- ".orchestrator/memory/knowledge-base/contextual",
18
- ".orchestrator/memory/knowledge-base/research",
19
- ".orchestrator/checkpoints",
20
- ".orchestrator/.state",
21
- ".claude",
22
- ".claude/agents",
23
- ".claude/skills",
24
- ".claude/skills/artifact-validator",
25
- ".claude/skills/kb-lookup",
26
- ".claude/skills/phase-gate-evaluator",
27
- ".claude/skills/workflow-status",
28
- ".claude/skills/docs-guardian",
29
- ".claude/hooks",
30
- "src",
31
- "tests"
32
- ],
33
- "files": [
34
- {
35
- "source": "projects/minimal/files/gitignore.hbs",
36
- "destination": ".gitignore",
37
- "template": true
38
- },
39
- {
40
- "source": "projects/minimal/files/env.example.hbs",
41
- "destination": ".env.example",
42
- "template": true
43
- },
44
- {
45
- "source": "projects/minimal/files/tsconfig.json.hbs",
46
- "destination": "tsconfig.json",
47
- "template": true
48
- },
49
- {
50
- "source": "projects/minimal/files/index.ts.hbs",
51
- "destination": "src/index.ts",
52
- "template": true
53
- },
54
- {
55
- "source": "base/CLAUDE.md.hbs",
56
- "destination": "CLAUDE.md",
57
- "template": true
58
- },
59
- {
60
- "source": "base/mcp.json.hbs",
61
- "destination": ".mcp.json",
62
- "template": true
63
- },
64
- {
65
- "source": "base/package.json.hbs",
66
- "destination": "package.json",
67
- "template": true
68
- },
69
- {
70
- "source": "base/orchestrator-index.json.hbs",
71
- "destination": ".orchestrator/orchestrator-index.json",
72
- "template": true
73
- },
74
- {
75
- "source": "base/claude/settings.json",
76
- "destination": ".claude/settings.json",
77
- "template": false
78
- },
79
- {
80
- "source": "base/claude/orchestrator-config.json",
81
- "destination": ".claude/orchestrator-config.json",
82
- "template": false
83
- },
84
- {
85
- "source": "base/claude/agents/orchestrator.md",
86
- "destination": ".claude/agents/orchestrator.md",
87
- "template": false
88
- },
89
- {
90
- "source": "base/claude/agents/specifier.md",
91
- "destination": ".claude/agents/specifier.md",
92
- "template": false
93
- },
94
- {
95
- "source": "base/claude/agents/planner.md",
96
- "destination": ".claude/agents/planner.md",
97
- "template": false
98
- },
99
- {
100
- "source": "base/claude/agents/task-generator.md",
101
- "destination": ".claude/agents/task-generator.md",
102
- "template": false
103
- },
104
- {
105
- "source": "base/claude/agents/implementer.md",
106
- "destination": ".claude/agents/implementer.md",
107
- "template": false
108
- },
109
- {
110
- "source": "base/claude/agents/reviewer.md",
111
- "destination": ".claude/agents/reviewer.md",
112
- "template": false
113
- },
114
- {
115
- "source": "base/claude/agents/researcher.md",
116
- "destination": ".claude/agents/researcher.md",
117
- "template": false
118
- },
119
- {
120
- "source": "base/claude/skills/artifact-validator/SKILL.md",
121
- "destination": ".claude/skills/artifact-validator/SKILL.md",
122
- "template": false
123
- },
124
- {
125
- "source": "base/claude/skills/kb-lookup/SKILL.md",
126
- "destination": ".claude/skills/kb-lookup/SKILL.md",
127
- "template": false
128
- },
129
- {
130
- "source": "base/claude/skills/phase-gate-evaluator/SKILL.md",
131
- "destination": ".claude/skills/phase-gate-evaluator/SKILL.md",
132
- "template": false
133
- },
134
- {
135
- "source": "base/claude/skills/workflow-status/SKILL.md",
136
- "destination": ".claude/skills/workflow-status/SKILL.md",
137
- "template": false
138
- },
139
- {
140
- "source": "base/claude/skills/docs-guardian/SKILL.md",
141
- "destination": ".claude/skills/docs-guardian/SKILL.md",
142
- "template": false
143
- },
144
- {
145
- "source": "base/claude/hooks/pre-agent-invoke.sh",
146
- "destination": ".claude/hooks/pre-agent-invoke.sh",
147
- "template": false
148
- },
149
- {
150
- "source": "base/claude/hooks/pre-phase-advance.sh",
151
- "destination": ".claude/hooks/pre-phase-advance.sh",
152
- "template": false
153
- },
154
- {
155
- "source": "base/claude/hooks/post-artifact-generate.sh",
156
- "destination": ".claude/hooks/post-artifact-generate.sh",
157
- "template": false
158
- },
159
- {
160
- "source": "base/claude/hooks/post-implement-validate.sh",
161
- "destination": ".claude/hooks/post-implement-validate.sh",
162
- "template": false
163
- },
164
- {
165
- "source": "base/claude/hooks/track-agent-invocation.sh",
166
- "destination": ".claude/hooks/track-agent-invocation.sh",
167
- "template": false
168
- },
169
- {
170
- "source": "base/claude/hooks/post-phase-checkpoint.sh",
171
- "destination": ".claude/hooks/post-phase-checkpoint.sh",
172
- "template": false
173
- },
174
- {
175
- "source": "base/orchestrator/.state/.gitkeep",
176
- "destination": ".orchestrator/.state/.gitkeep",
177
- "template": false
178
- }
179
- ],
180
- "dependencies": {},
181
- "devDependencies": {},
182
- "scripts": {},
183
- "constitutionExtensions": [],
184
- "knowledgeBaseSeeds": ["docs-constitution"]
185
- }
@@ -1,88 +0,0 @@
1
- /**
2
- * Minimal Project Template Configuration
3
- */
4
- import { ProjectTemplate } from '../../../../domain/entities/ProjectTemplate.js';
5
-
6
- const config = ProjectTemplate.create({
7
- name: 'minimal',
8
- description: 'Minimal project template with basic Orchestrator setup',
9
- version: '1.0.0',
10
-
11
- directories: [
12
- '.orchestrator',
13
- '.orchestrator/artifacts',
14
- '.orchestrator/artifacts/research',
15
- '.orchestrator/artifacts/specify',
16
- '.orchestrator/artifacts/plan',
17
- '.orchestrator/artifacts/tasks',
18
- '.orchestrator/artifacts/implement',
19
- '.orchestrator/memory',
20
- '.orchestrator/memory/knowledge-base',
21
- '.orchestrator/memory/knowledge-base/core',
22
- '.orchestrator/memory/knowledge-base/contextual',
23
- '.orchestrator/memory/knowledge-base/research',
24
- '.orchestrator/checkpoints',
25
- '.orchestrator/.state',
26
- 'src',
27
- 'tests',
28
- ],
29
-
30
- files: [
31
- {
32
- source: 'projects/minimal/files/gitignore.hbs',
33
- destination: '.gitignore',
34
- template: true,
35
- },
36
- {
37
- source: 'projects/minimal/files/env.example.hbs',
38
- destination: '.env.example',
39
- template: true,
40
- },
41
- {
42
- source: 'projects/minimal/files/claude-settings.json.hbs',
43
- destination: '.claude/claude-settings.json',
44
- template: true,
45
- },
46
- {
47
- source: 'base/CLAUDE.md.hbs',
48
- destination: 'CLAUDE.md',
49
- template: true,
50
- },
51
- {
52
- source: 'base/mcp.json.hbs',
53
- destination: '.mcp.json',
54
- template: true,
55
- },
56
- {
57
- source: 'base/package.json.hbs',
58
- destination: 'package.json',
59
- template: true,
60
- },
61
- {
62
- source: 'base/orchestrator-index.json.hbs',
63
- destination: '.orchestrator/orchestrator-index.json',
64
- template: true,
65
- },
66
- {
67
- source: 'base/orchestrator/.state/.gitkeep',
68
- destination: '.orchestrator/.state/.gitkeep',
69
- template: false,
70
- },
71
- ],
72
-
73
- dependencies: {},
74
-
75
- devDependencies: {},
76
-
77
- scripts: {},
78
-
79
- constitutionExtensions: [],
80
-
81
- knowledgeBaseSeeds: [],
82
- });
83
-
84
- if (config.isErr()) {
85
- throw new Error(`Failed to create minimal template config: ${config.error}`);
86
- }
87
-
88
- export default config.value;
@@ -1,37 +0,0 @@
1
- {
2
- "project": {
3
- "name": "{{projectName}}",
4
- "version": "1.0.0",
5
- "created_at": "{{currentDate}}",
6
- "orchestrator_version": "1.4.0"
7
- },
8
- "activeWorkflow": null,
9
- "workflows": [],
10
- "artifacts": [],
11
- "checkpoints": [],
12
- "taskToolInvocations": [],
13
- "agentInvocations": [],
14
- "gates": {},
15
- "statistics": {
16
- "totalWorkflows": 0,
17
- "completedWorkflows": 0,
18
- "failedWorkflows": 0,
19
- "totalArtifacts": 0,
20
- "totalCheckpoints": 0,
21
- "totalInvocations": 0,
22
- "lastActivity": "{{currentDate}}"
23
- },
24
- "metadata": {
25
- "initialized_with": "orchestrator-cli",
26
- "schema_version": "1.3"
27
- },
28
- "defaultHooks": {
29
- "postImplement": {
30
- "agent": "docs-guardian",
31
- "mode": "auto",
32
- "blocking": false,
33
- "enabled": true,
34
- "scope": "all"
35
- }
36
- }
37
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Application Entry Point
3
- *
4
- * Bootstraps the Express server with Clean Architecture principles.
5
- */
6
-
7
- import { config } from 'dotenv';
8
- import { createServer } from './server.js';
9
-
10
- // Load environment variables
11
- config();
12
-
13
- const PORT = process.env.PORT || 3000;
14
- const HOST = process.env.HOST || '0.0.0.0';
15
-
16
- async function main() {
17
- try {
18
- const app = createServer();
19
-
20
- app.listen(PORT, () => {
21
- console.log(`🚀 Server running at http://${HOST}:${PORT}`);
22
- console.log(`📝 Environment: ${process.env.NODE_ENV || 'development'}`);
23
- });
24
- } catch (error) {
25
- console.error('❌ Failed to start server:', error);
26
- process.exit(1);
27
- }
28
- }
29
-
30
- main();
@@ -1,63 +0,0 @@
1
- /**
2
- * Server Configuration
3
- *
4
- * Creates and configures the Express application.
5
- */
6
-
7
- import express, { type Express, type Request, type Response, type NextFunction } from 'express';
8
- import cors from 'cors';
9
- import helmet from 'helmet';
10
-
11
- /**
12
- * Creates the Express server with middleware and routes
13
- */
14
- export function createServer(): Express {
15
- const app = express();
16
-
17
- // Security middleware
18
- app.use(helmet());
19
- app.use(cors());
20
-
21
- // Body parsing middleware
22
- app.use(express.json());
23
- app.use(express.urlencoded({ extended: true }));
24
-
25
- // Health check endpoint
26
- app.get('/health', (req: Request, res: Response) => {
27
- res.status(200).json({
28
- status: 'ok',
29
- timestamp: new Date().toISOString(),
30
- service: '{{projectName}}',
31
- });
32
- });
33
-
34
- // API routes
35
- app.get('/api/v1', (req: Request, res: Response) => {
36
- res.status(200).json({
37
- message: 'Welcome to {{projectName}} API',
38
- version: '1.0.0',
39
- });
40
- });
41
-
42
- // 404 handler
43
- app.use((req: Request, res: Response) => {
44
- res.status(404).json({
45
- error: 'Not Found',
46
- message: `Route ${req.method} ${req.path} not found`,
47
- });
48
- });
49
-
50
- // Error handler
51
- app.use((err: Error, req: Request, res: Response, next: NextFunction) => {
52
- console.error('Error:', err);
53
-
54
- res.status(500).json({
55
- error: 'Internal Server Error',
56
- message: process.env.NODE_ENV === 'production'
57
- ? 'An unexpected error occurred'
58
- : err.message,
59
- });
60
- });
61
-
62
- return app;
63
- }
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ES2022",
5
- "lib": ["ES2022"],
6
- "moduleResolution": "node",
7
- "esModuleInterop": true,
8
- "allowSyntheticDefaultImports": true,
9
- "resolveJsonModule": true,
10
- "isolatedModules": true,
11
- "strict": true,
12
- "noUnusedLocals": true,
13
- "noUnusedParameters": true,
14
- "noImplicitReturns": true,
15
- "noFallthroughCasesInSwitch": true,
16
- "skipLibCheck": true,
17
- "forceConsistentCasingInFileNames": true,
18
- "outDir": "./dist",
19
- "rootDir": "./src",
20
- "declaration": true,
21
- "declarationMap": true,
22
- "sourceMap": true,
23
- "types": ["node", "vitest/globals"]
24
- },
25
- "include": ["src/**/*"],
26
- "exclude": ["node_modules", "dist", "tests"]
27
- }
@@ -1,28 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- globals: true,
6
- environment: 'node',
7
- coverage: {
8
- provider: 'v8',
9
- reporter: ['text', 'json', 'html', 'lcov'],
10
- exclude: [
11
- 'node_modules/',
12
- 'dist/',
13
- 'tests/',
14
- '**/*.d.ts',
15
- '**/*.config.*',
16
- '**/index.ts',
17
- ],
18
- thresholds: {
19
- lines: 80,
20
- functions: 80,
21
- branches: 80,
22
- statements: 80,
23
- },
24
- },
25
- include: ['tests/**/*.test.ts'],
26
- exclude: ['node_modules', 'dist'],
27
- },
28
- });