@orchestrator-claude/cli 3.1.11 → 3.2.0
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/dist/api-client/OrchestratorAPIClient.d.ts +50 -1
- package/dist/api-client/OrchestratorAPIClient.d.ts.map +1 -1
- package/dist/api-client/OrchestratorAPIClient.js +73 -1
- package/dist/api-client/OrchestratorAPIClient.js.map +1 -1
- package/dist/api-client/types.d.ts +95 -2
- package/dist/api-client/types.d.ts.map +1 -1
- package/dist/commands/InitCommand.d.ts +22 -3
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +147 -13
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/BootstrapService.d.ts +100 -0
- package/dist/services/BootstrapService.d.ts.map +1 -0
- package/dist/services/BootstrapService.js +231 -0
- package/dist/services/BootstrapService.js.map +1 -0
- package/dist/services/CleanupManager.d.ts +49 -0
- package/dist/services/CleanupManager.d.ts.map +1 -0
- package/dist/services/CleanupManager.js +87 -0
- package/dist/services/CleanupManager.js.map +1 -0
- package/dist/services/CredentialGenerator.d.ts +11 -0
- package/dist/services/CredentialGenerator.d.ts.map +1 -0
- package/dist/services/CredentialGenerator.js +25 -0
- package/dist/services/CredentialGenerator.js.map +1 -0
- package/dist/services/VerificationService.d.ts +103 -0
- package/dist/services/VerificationService.d.ts.map +1 -0
- package/dist/services/VerificationService.js +350 -0
- package/dist/services/VerificationService.js.map +1 -0
- package/dist/templates/base/claude/skills/release/SKILL.md +236 -0
- package/dist/templates/base/claude/skills/release/release.sh +460 -0
- package/dist/templates/base/docker-compose.yml.hbs +189 -8
- package/dist/templates/base/mcp.json.hbs +16 -9
- package/dist/templates/default/docker-compose.yml +190 -10
- package/package.json +1 -1
- package/templates/base/claude/skills/release/SKILL.md +236 -0
- package/templates/base/claude/skills/release/release.sh +460 -0
- package/templates/base/docker-compose.yml.hbs +189 -8
- package/templates/base/mcp.json.hbs +16 -9
- package/templates/default/docker-compose.yml +190 -10
- package/dist/templates/base/orchestrator-index.json.hbs +0 -37
- package/dist/templates/projects/api/files/index.ts.hbs +0 -30
- package/dist/templates/projects/api/files/server.ts.hbs +0 -63
- package/dist/templates/projects/api/files/tsconfig.json.hbs +0 -27
- package/dist/templates/projects/api/files/vitest.config.ts.hbs +0 -28
- package/dist/templates/projects/api/template.config.json +0 -238
- package/dist/templates/projects/api/template.config.ts +0 -149
- package/dist/templates/projects/cli/files/cli.ts.hbs +0 -50
- package/dist/templates/projects/cli/files/index.ts.hbs +0 -8
- package/dist/templates/projects/cli/files/tsconfig.json.hbs +0 -27
- package/dist/templates/projects/cli/files/vitest.config.ts.hbs +0 -28
- package/dist/templates/projects/cli/template.config.json +0 -213
- package/dist/templates/projects/cli/template.config.ts +0 -126
- package/dist/templates/projects/frontend/files/App.tsx.hbs +0 -31
- package/dist/templates/projects/frontend/files/index.html.hbs +0 -13
- package/dist/templates/projects/frontend/files/main.tsx.hbs +0 -22
- package/dist/templates/projects/frontend/files/tsconfig.json.hbs +0 -34
- package/dist/templates/projects/frontend/files/tsconfig.node.json.hbs +0 -10
- package/dist/templates/projects/frontend/files/vite.config.ts.hbs +0 -19
- package/dist/templates/projects/frontend/files/vitest.config.ts.hbs +0 -36
- package/dist/templates/projects/frontend/template.config.json +0 -241
- package/dist/templates/projects/frontend/template.config.ts +0 -153
- package/dist/templates/projects/minimal/files/claude-settings.json.hbs +0 -20
- package/dist/templates/projects/minimal/files/env.example.hbs +0 -17
- package/dist/templates/projects/minimal/files/gitignore.hbs +0 -41
- package/dist/templates/projects/minimal/files/index.ts.hbs +0 -13
- package/dist/templates/projects/minimal/files/tsconfig.json.hbs +0 -27
- package/dist/templates/projects/minimal/template.config.json +0 -185
- package/dist/templates/projects/minimal/template.config.ts +0 -88
- package/templates/base/orchestrator-index.json.hbs +0 -37
- package/templates/projects/api/files/index.ts.hbs +0 -30
- package/templates/projects/api/files/server.ts.hbs +0 -63
- package/templates/projects/api/files/tsconfig.json.hbs +0 -27
- package/templates/projects/api/files/vitest.config.ts.hbs +0 -28
- package/templates/projects/api/template.config.json +0 -238
- package/templates/projects/api/template.config.ts +0 -149
- package/templates/projects/cli/files/cli.ts.hbs +0 -50
- package/templates/projects/cli/files/index.ts.hbs +0 -8
- package/templates/projects/cli/files/tsconfig.json.hbs +0 -27
- package/templates/projects/cli/files/vitest.config.ts.hbs +0 -28
- package/templates/projects/cli/template.config.json +0 -213
- package/templates/projects/cli/template.config.ts +0 -126
- package/templates/projects/frontend/files/App.tsx.hbs +0 -31
- package/templates/projects/frontend/files/index.html.hbs +0 -13
- package/templates/projects/frontend/files/main.tsx.hbs +0 -22
- package/templates/projects/frontend/files/tsconfig.json.hbs +0 -34
- package/templates/projects/frontend/files/tsconfig.node.json.hbs +0 -10
- package/templates/projects/frontend/files/vite.config.ts.hbs +0 -19
- package/templates/projects/frontend/files/vitest.config.ts.hbs +0 -36
- package/templates/projects/frontend/template.config.json +0 -241
- package/templates/projects/frontend/template.config.ts +0 -153
- package/templates/projects/minimal/files/claude-settings.json.hbs +0 -20
- package/templates/projects/minimal/files/env.example.hbs +0 -17
- package/templates/projects/minimal/files/gitignore.hbs +0 -41
- package/templates/projects/minimal/files/index.ts.hbs +0 -13
- package/templates/projects/minimal/files/tsconfig.json.hbs +0 -27
- package/templates/projects/minimal/template.config.json +0 -185
- package/templates/projects/minimal/template.config.ts +0 -88
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "api",
|
|
3
|
-
"description": "REST API with Express and Clean Architecture",
|
|
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
|
-
"src/domain",
|
|
32
|
-
"src/domain/entities",
|
|
33
|
-
"src/domain/value-objects",
|
|
34
|
-
"src/domain/repositories",
|
|
35
|
-
"src/application",
|
|
36
|
-
"src/application/use-cases",
|
|
37
|
-
"src/application/ports",
|
|
38
|
-
"src/infrastructure",
|
|
39
|
-
"src/infrastructure/persistence",
|
|
40
|
-
"src/infrastructure/adapters",
|
|
41
|
-
"src/presentation",
|
|
42
|
-
"src/presentation/routes",
|
|
43
|
-
"src/presentation/middleware",
|
|
44
|
-
"tests",
|
|
45
|
-
"tests/domain",
|
|
46
|
-
"tests/application",
|
|
47
|
-
"tests/infrastructure",
|
|
48
|
-
"tests/presentation"
|
|
49
|
-
],
|
|
50
|
-
"files": [
|
|
51
|
-
{
|
|
52
|
-
"source": "projects/api/files/index.ts.hbs",
|
|
53
|
-
"destination": "src/index.ts",
|
|
54
|
-
"template": true
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"source": "projects/api/files/tsconfig.json.hbs",
|
|
58
|
-
"destination": "tsconfig.json",
|
|
59
|
-
"template": true
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"source": "projects/api/files/vitest.config.ts.hbs",
|
|
63
|
-
"destination": "vitest.config.ts",
|
|
64
|
-
"template": true
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"source": "projects/api/files/server.ts.hbs",
|
|
68
|
-
"destination": "src/server.ts",
|
|
69
|
-
"template": true
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"source": "projects/minimal/files/gitignore.hbs",
|
|
73
|
-
"destination": ".gitignore",
|
|
74
|
-
"template": true
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"source": "projects/minimal/files/env.example.hbs",
|
|
78
|
-
"destination": ".env.example",
|
|
79
|
-
"template": true
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"source": "base/CLAUDE.md.hbs",
|
|
83
|
-
"destination": "CLAUDE.md",
|
|
84
|
-
"template": true
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"source": "base/mcp.json.hbs",
|
|
88
|
-
"destination": ".mcp.json",
|
|
89
|
-
"template": true
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"source": "base/package.json.hbs",
|
|
93
|
-
"destination": "package.json",
|
|
94
|
-
"template": true
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"source": "base/orchestrator-index.json.hbs",
|
|
98
|
-
"destination": ".orchestrator/orchestrator-index.json",
|
|
99
|
-
"template": true
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"source": "base/claude/settings.json",
|
|
103
|
-
"destination": ".claude/settings.json",
|
|
104
|
-
"template": false
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"source": "base/claude/orchestrator-config.json",
|
|
108
|
-
"destination": ".claude/orchestrator-config.json",
|
|
109
|
-
"template": false
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"source": "base/claude/agents/orchestrator.md",
|
|
113
|
-
"destination": ".claude/agents/orchestrator.md",
|
|
114
|
-
"template": false
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"source": "base/claude/agents/specifier.md",
|
|
118
|
-
"destination": ".claude/agents/specifier.md",
|
|
119
|
-
"template": false
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"source": "base/claude/agents/planner.md",
|
|
123
|
-
"destination": ".claude/agents/planner.md",
|
|
124
|
-
"template": false
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"source": "base/claude/agents/task-generator.md",
|
|
128
|
-
"destination": ".claude/agents/task-generator.md",
|
|
129
|
-
"template": false
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"source": "base/claude/agents/implementer.md",
|
|
133
|
-
"destination": ".claude/agents/implementer.md",
|
|
134
|
-
"template": false
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"source": "base/claude/agents/reviewer.md",
|
|
138
|
-
"destination": ".claude/agents/reviewer.md",
|
|
139
|
-
"template": false
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"source": "base/claude/agents/researcher.md",
|
|
143
|
-
"destination": ".claude/agents/researcher.md",
|
|
144
|
-
"template": false
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"source": "base/claude/skills/artifact-validator/SKILL.md",
|
|
148
|
-
"destination": ".claude/skills/artifact-validator/SKILL.md",
|
|
149
|
-
"template": false
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"source": "base/claude/skills/kb-lookup/SKILL.md",
|
|
153
|
-
"destination": ".claude/skills/kb-lookup/SKILL.md",
|
|
154
|
-
"template": false
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"source": "base/claude/skills/phase-gate-evaluator/SKILL.md",
|
|
158
|
-
"destination": ".claude/skills/phase-gate-evaluator/SKILL.md",
|
|
159
|
-
"template": false
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"source": "base/claude/skills/workflow-status/SKILL.md",
|
|
163
|
-
"destination": ".claude/skills/workflow-status/SKILL.md",
|
|
164
|
-
"template": false
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"source": "base/claude/skills/docs-guardian/SKILL.md",
|
|
168
|
-
"destination": ".claude/skills/docs-guardian/SKILL.md",
|
|
169
|
-
"template": false
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"source": "base/claude/hooks/pre-agent-invoke.sh",
|
|
173
|
-
"destination": ".claude/hooks/pre-agent-invoke.sh",
|
|
174
|
-
"template": false
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"source": "base/claude/hooks/pre-phase-advance.sh",
|
|
178
|
-
"destination": ".claude/hooks/pre-phase-advance.sh",
|
|
179
|
-
"template": false
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"source": "base/claude/hooks/post-artifact-generate.sh",
|
|
183
|
-
"destination": ".claude/hooks/post-artifact-generate.sh",
|
|
184
|
-
"template": false
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"source": "base/claude/hooks/post-implement-validate.sh",
|
|
188
|
-
"destination": ".claude/hooks/post-implement-validate.sh",
|
|
189
|
-
"template": false
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"source": "base/claude/hooks/track-agent-invocation.sh",
|
|
193
|
-
"destination": ".claude/hooks/track-agent-invocation.sh",
|
|
194
|
-
"template": false
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"source": "base/claude/hooks/post-phase-checkpoint.sh",
|
|
198
|
-
"destination": ".claude/hooks/post-phase-checkpoint.sh",
|
|
199
|
-
"template": false
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"source": "base/orchestrator/.state/.gitkeep",
|
|
203
|
-
"destination": ".orchestrator/.state/.gitkeep",
|
|
204
|
-
"template": false
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"main": "./dist/index.js",
|
|
208
|
-
"dependencies": {
|
|
209
|
-
"express": "^4.18.0",
|
|
210
|
-
"zod": "^3.22.0",
|
|
211
|
-
"cors": "^2.8.5",
|
|
212
|
-
"helmet": "^7.1.0",
|
|
213
|
-
"dotenv": "^16.3.0"
|
|
214
|
-
},
|
|
215
|
-
"devDependencies": {
|
|
216
|
-
"@types/express": "^4.17.0",
|
|
217
|
-
"@types/cors": "^2.8.17",
|
|
218
|
-
"@types/supertest": "^6.0.0",
|
|
219
|
-
"supertest": "^6.3.0"
|
|
220
|
-
},
|
|
221
|
-
"scripts": {
|
|
222
|
-
"start": "node dist/index.js",
|
|
223
|
-
"dev": "tsx watch src/index.ts",
|
|
224
|
-
"build": "tsc",
|
|
225
|
-
"test": "vitest",
|
|
226
|
-
"test:coverage": "vitest --coverage",
|
|
227
|
-
"lint": "eslint src --ext .ts",
|
|
228
|
-
"lint:fix": "eslint src --ext .ts --fix"
|
|
229
|
-
},
|
|
230
|
-
"constitutionExtensions": ["rest-api-conventions"],
|
|
231
|
-
"knowledgeBaseSeeds": [
|
|
232
|
-
"docs-constitution",
|
|
233
|
-
"rest-conventions",
|
|
234
|
-
"error-handling",
|
|
235
|
-
"validation-patterns",
|
|
236
|
-
"auth-strategies"
|
|
237
|
-
]
|
|
238
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Project Template Configuration
|
|
3
|
-
*/
|
|
4
|
-
import { ProjectTemplate } from '../../../../domain/entities/ProjectTemplate.js';
|
|
5
|
-
|
|
6
|
-
const config = ProjectTemplate.create({
|
|
7
|
-
name: 'api',
|
|
8
|
-
description: 'REST API with Express and Clean Architecture',
|
|
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
|
-
'src/domain',
|
|
28
|
-
'src/domain/entities',
|
|
29
|
-
'src/domain/value-objects',
|
|
30
|
-
'src/domain/repositories',
|
|
31
|
-
'src/application',
|
|
32
|
-
'src/application/use-cases',
|
|
33
|
-
'src/application/ports',
|
|
34
|
-
'src/infrastructure',
|
|
35
|
-
'src/infrastructure/persistence',
|
|
36
|
-
'src/infrastructure/adapters',
|
|
37
|
-
'src/presentation',
|
|
38
|
-
'src/presentation/routes',
|
|
39
|
-
'src/presentation/middleware',
|
|
40
|
-
'tests',
|
|
41
|
-
'tests/domain',
|
|
42
|
-
'tests/application',
|
|
43
|
-
'tests/infrastructure',
|
|
44
|
-
'tests/presentation',
|
|
45
|
-
],
|
|
46
|
-
|
|
47
|
-
files: [
|
|
48
|
-
{
|
|
49
|
-
source: 'projects/api/files/index.ts.hbs',
|
|
50
|
-
destination: 'src/index.ts',
|
|
51
|
-
template: true,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
source: 'projects/api/files/tsconfig.json.hbs',
|
|
55
|
-
destination: 'tsconfig.json',
|
|
56
|
-
template: true,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
source: 'projects/api/files/vitest.config.ts.hbs',
|
|
60
|
-
destination: 'vitest.config.ts',
|
|
61
|
-
template: true,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
source: 'projects/api/files/server.ts.hbs',
|
|
65
|
-
destination: 'src/server.ts',
|
|
66
|
-
template: true,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
source: 'projects/minimal/files/gitignore.hbs',
|
|
70
|
-
destination: '.gitignore',
|
|
71
|
-
template: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
source: 'projects/minimal/files/env.example.hbs',
|
|
75
|
-
destination: '.env.example',
|
|
76
|
-
template: true,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
source: 'projects/minimal/files/claude-settings.json.hbs',
|
|
80
|
-
destination: '.claude/claude-settings.json',
|
|
81
|
-
template: true,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
source: 'base/CLAUDE.md.hbs',
|
|
85
|
-
destination: 'CLAUDE.md',
|
|
86
|
-
template: true,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
source: 'base/mcp.json.hbs',
|
|
90
|
-
destination: '.mcp.json',
|
|
91
|
-
template: true,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
source: 'base/package.json.hbs',
|
|
95
|
-
destination: 'package.json',
|
|
96
|
-
template: true,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
source: 'base/orchestrator-index.json.hbs',
|
|
100
|
-
destination: '.orchestrator/orchestrator-index.json',
|
|
101
|
-
template: true,
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
source: 'base/orchestrator/.state/.gitkeep',
|
|
105
|
-
destination: '.orchestrator/.state/.gitkeep',
|
|
106
|
-
template: false,
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
|
|
110
|
-
dependencies: {
|
|
111
|
-
express: '^4.18.0',
|
|
112
|
-
zod: '^3.22.0',
|
|
113
|
-
cors: '^2.8.5',
|
|
114
|
-
helmet: '^7.1.0',
|
|
115
|
-
dotenv: '^16.3.0',
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
devDependencies: {
|
|
119
|
-
'@types/express': '^4.17.0',
|
|
120
|
-
'@types/cors': '^2.8.17',
|
|
121
|
-
'@types/supertest': '^6.0.0',
|
|
122
|
-
supertest: '^6.3.0',
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
scripts: {
|
|
126
|
-
start: 'node dist/index.js',
|
|
127
|
-
dev: 'tsx watch src/index.ts',
|
|
128
|
-
build: 'tsc',
|
|
129
|
-
test: 'vitest',
|
|
130
|
-
'test:coverage': 'vitest --coverage',
|
|
131
|
-
lint: 'eslint src --ext .ts',
|
|
132
|
-
'lint:fix': 'eslint src --ext .ts --fix',
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
constitutionExtensions: ['rest-api-conventions'],
|
|
136
|
-
|
|
137
|
-
knowledgeBaseSeeds: [
|
|
138
|
-
'rest-conventions',
|
|
139
|
-
'error-handling',
|
|
140
|
-
'validation-patterns',
|
|
141
|
-
'auth-strategies',
|
|
142
|
-
],
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
if (config.isErr()) {
|
|
146
|
-
throw new Error(`Failed to create API template config: ${config.error}`);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export default config.value;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Configuration
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { Command } from 'commander';
|
|
6
|
-
import chalk from 'chalk';
|
|
7
|
-
import ora from 'ora';
|
|
8
|
-
|
|
9
|
-
export const cli = new Command();
|
|
10
|
-
|
|
11
|
-
cli
|
|
12
|
-
.name('{{kebabCase projectName}}')
|
|
13
|
-
.description('{{projectName}} - Command-line tool')
|
|
14
|
-
.version('1.0.0');
|
|
15
|
-
|
|
16
|
-
// Example command: hello
|
|
17
|
-
cli
|
|
18
|
-
.command('hello')
|
|
19
|
-
.description('Say hello')
|
|
20
|
-
.argument('[name]', 'Name to greet', 'World')
|
|
21
|
-
.option('-u, --uppercase', 'Output in uppercase')
|
|
22
|
-
.action((name: string, options: { uppercase?: boolean }) => {
|
|
23
|
-
const spinner = ora('Processing...').start();
|
|
24
|
-
|
|
25
|
-
setTimeout(() => {
|
|
26
|
-
spinner.succeed('Done!');
|
|
27
|
-
|
|
28
|
-
let message = `Hello, ${name}!`;
|
|
29
|
-
if (options.uppercase) {
|
|
30
|
-
message = message.toUpperCase();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
console.log(chalk.green(message));
|
|
34
|
-
}, 500);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
// Example command: info
|
|
38
|
-
cli
|
|
39
|
-
.command('info')
|
|
40
|
-
.description('Show CLI information')
|
|
41
|
-
.action(() => {
|
|
42
|
-
console.log(chalk.cyan.bold('\n{{projectName}}\n'));
|
|
43
|
-
console.log('A command-line tool built with:');
|
|
44
|
-
console.log(' • Commander.js - CLI framework');
|
|
45
|
-
console.log(' • Chalk - Terminal styling');
|
|
46
|
-
console.log(' • Ora - Terminal spinners');
|
|
47
|
-
console.log(' • Inquirer - Interactive prompts');
|
|
48
|
-
console.log(' • TypeScript - Type safety');
|
|
49
|
-
console.log();
|
|
50
|
-
});
|
|
@@ -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
|
-
});
|