@orchestrator-claude/cli 1.7.2 → 1.7.4
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/base/.orchestrator/patterns/legacy/README.md +360 -0
- package/dist/templates/base/.orchestrator/patterns/legacy/php/laravel.patterns.json +396 -0
- package/dist/templates/base/.orchestrator/templates/legacy/README.md +296 -0
- package/dist/templates/base/.orchestrator/templates/legacy/analysis-report.md.hbs +342 -0
- package/dist/templates/base/.orchestrator/templates/legacy/api-spec.yaml.hbs +263 -0
- package/dist/templates/base/.orchestrator/templates/legacy/business-rules.md.hbs +449 -0
- package/dist/templates/base/.orchestrator/templates/legacy/database-schema.md.hbs +356 -0
- package/dist/templates/base/.orchestrator/templates/legacy/dead-code-report.md.hbs +330 -0
- package/dist/templates/base/.orchestrator/templates/legacy/discovery-report.md.hbs +267 -0
- package/dist/templates/base/.orchestrator/templates/legacy/final-report.md.hbs +451 -0
- package/dist/templates/base/.orchestrator/templates/legacy/inventory.json.schema +346 -0
- package/dist/templates/base/.orchestrator/templates/legacy/migration-roadmap.md.hbs +571 -0
- package/dist/templates/base/.orchestrator/templates/legacy/tech-debt.md.hbs +412 -0
- package/dist/templates/base/claude/agents/api-extractor.md +665 -0
- package/dist/templates/base/claude/agents/business-rule-miner.md +734 -0
- package/dist/templates/base/claude/agents/code-archaeologist.md +715 -0
- package/dist/templates/base/claude/agents/legacy-discoverer.md +578 -0
- package/dist/templates/base/claude/agents/legacy-synthesizer.md +1097 -0
- package/dist/templates/base/claude/agents/schema-extractor.md +767 -0
- package/dist/templates/workflows/README.md +137 -0
- package/dist/templates/workflows/bug-fix.json +73 -0
- package/dist/templates/workflows/feature-development.json +87 -0
- package/dist/templates/workflows/legacy-analysis.json +288 -0
- package/dist/templates/workflows/refactoring.json +73 -0
- package/package.json +1 -1
- package/templates/base/.orchestrator/patterns/legacy/README.md +360 -0
- package/templates/base/.orchestrator/patterns/legacy/php/laravel.patterns.json +396 -0
- package/templates/base/.orchestrator/templates/legacy/README.md +296 -0
- package/templates/base/.orchestrator/templates/legacy/analysis-report.md.hbs +342 -0
- package/templates/base/.orchestrator/templates/legacy/api-spec.yaml.hbs +263 -0
- package/templates/base/.orchestrator/templates/legacy/business-rules.md.hbs +449 -0
- package/templates/base/.orchestrator/templates/legacy/database-schema.md.hbs +356 -0
- package/templates/base/.orchestrator/templates/legacy/dead-code-report.md.hbs +330 -0
- package/templates/base/.orchestrator/templates/legacy/discovery-report.md.hbs +267 -0
- package/templates/base/.orchestrator/templates/legacy/final-report.md.hbs +451 -0
- package/templates/base/.orchestrator/templates/legacy/inventory.json.schema +346 -0
- package/templates/base/.orchestrator/templates/legacy/migration-roadmap.md.hbs +571 -0
- package/templates/base/.orchestrator/templates/legacy/tech-debt.md.hbs +412 -0
- package/templates/base/claude/agents/api-extractor.md +665 -0
- package/templates/base/claude/agents/business-rule-miner.md +734 -0
- package/templates/base/claude/agents/code-archaeologist.md +715 -0
- package/templates/base/claude/agents/legacy-discoverer.md +578 -0
- package/templates/base/claude/agents/legacy-synthesizer.md +1097 -0
- package/templates/base/claude/agents/schema-extractor.md +767 -0
- package/templates/workflows/README.md +137 -0
- package/templates/workflows/bug-fix.json +73 -0
- package/templates/workflows/feature-development.json +87 -0
- package/templates/workflows/legacy-analysis.json +288 -0
- package/templates/workflows/refactoring.json +73 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://orchestrator.dev/schemas/legacy-inventory.json",
|
|
4
|
+
"title": "Legacy Codebase Inventory",
|
|
5
|
+
"description": "Comprehensive catalog of all assets in a legacy codebase",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["metadata", "assets", "metrics"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"metadata": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["projectName", "generatedAt", "agent", "codebasePath"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"projectName": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Project name"
|
|
16
|
+
},
|
|
17
|
+
"generatedAt": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "date-time",
|
|
20
|
+
"description": "ISO8601 timestamp"
|
|
21
|
+
},
|
|
22
|
+
"agent": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["legacy-discoverer"],
|
|
25
|
+
"description": "Agent that generated this inventory"
|
|
26
|
+
},
|
|
27
|
+
"codebasePath": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Absolute path to codebase root"
|
|
30
|
+
},
|
|
31
|
+
"workflowId": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Orchestrator workflow ID"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"stack": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["language", "framework"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"language": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Programming language"
|
|
44
|
+
},
|
|
45
|
+
"framework": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Framework name"
|
|
48
|
+
},
|
|
49
|
+
"version": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Framework version"
|
|
52
|
+
},
|
|
53
|
+
"confidence": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"minimum": 0.0,
|
|
56
|
+
"maximum": 1.0,
|
|
57
|
+
"description": "Stack detection confidence"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"assets": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "Catalog of all assets by type",
|
|
64
|
+
"properties": {
|
|
65
|
+
"routes": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "#/definitions/route"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"controllers": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"$ref": "#/definitions/controller"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"models": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"$ref": "#/definitions/model"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"migrations": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"$ref": "#/definitions/migration"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"middleware": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"$ref": "#/definitions/middleware"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"services": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"$ref": "#/definitions/service"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"repositories": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"$ref": "#/definitions/repository"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"jobs": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"$ref": "#/definitions/job"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"events": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"$ref": "#/definitions/event"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"tests": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"$ref": "#/definitions/test"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"views": {
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": {
|
|
128
|
+
"$ref": "#/definitions/view"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"config": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"$ref": "#/definitions/config"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"metrics": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"required": ["counts", "complexity"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"counts": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"description": "Asset counts by type",
|
|
146
|
+
"properties": {
|
|
147
|
+
"routes": { "type": "integer", "minimum": 0 },
|
|
148
|
+
"controllers": { "type": "integer", "minimum": 0 },
|
|
149
|
+
"models": { "type": "integer", "minimum": 0 },
|
|
150
|
+
"migrations": { "type": "integer", "minimum": 0 },
|
|
151
|
+
"middleware": { "type": "integer", "minimum": 0 },
|
|
152
|
+
"services": { "type": "integer", "minimum": 0 },
|
|
153
|
+
"repositories": { "type": "integer", "minimum": 0 },
|
|
154
|
+
"jobs": { "type": "integer", "minimum": 0 },
|
|
155
|
+
"events": { "type": "integer", "minimum": 0 },
|
|
156
|
+
"tests": { "type": "integer", "minimum": 0 },
|
|
157
|
+
"views": { "type": "integer", "minimum": 0 },
|
|
158
|
+
"totalFiles": { "type": "integer", "minimum": 0 },
|
|
159
|
+
"totalLines": { "type": "integer", "minimum": 0 }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"complexity": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"avgCyclomaticComplexity": { "type": "number", "minimum": 0 },
|
|
166
|
+
"maxCyclomaticComplexity": { "type": "number", "minimum": 0 },
|
|
167
|
+
"filesAboveThreshold": { "type": "integer", "minimum": 0 }
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"quality": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"testCoverage": { "type": "number", "minimum": 0, "maximum": 100 },
|
|
174
|
+
"commentRatio": { "type": "number", "minimum": 0, "maximum": 100 },
|
|
175
|
+
"duplicateCode": { "type": "number", "minimum": 0, "maximum": 100 }
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"size": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"totalBytes": { "type": "integer", "minimum": 0 },
|
|
182
|
+
"avgFileSize": { "type": "number", "minimum": 0 },
|
|
183
|
+
"largestFile": { "type": "string" },
|
|
184
|
+
"largestFileSize": { "type": "integer", "minimum": 0 }
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"dependencies": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"direct": {
|
|
193
|
+
"type": "array",
|
|
194
|
+
"items": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {
|
|
197
|
+
"name": { "type": "string" },
|
|
198
|
+
"version": { "type": "string" },
|
|
199
|
+
"type": { "enum": ["runtime", "dev"] }
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"outdated": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "object",
|
|
207
|
+
"properties": {
|
|
208
|
+
"name": { "type": "string" },
|
|
209
|
+
"currentVersion": { "type": "string" },
|
|
210
|
+
"latestVersion": { "type": "string" },
|
|
211
|
+
"age": { "type": "string" }
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"vulnerabilities": {
|
|
216
|
+
"type": "array",
|
|
217
|
+
"items": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"properties": {
|
|
220
|
+
"name": { "type": "string" },
|
|
221
|
+
"severity": { "enum": ["CRITICAL", "HIGH", "MEDIUM", "LOW"] },
|
|
222
|
+
"cve": { "type": "string" },
|
|
223
|
+
"description": { "type": "string" },
|
|
224
|
+
"fix": { "type": "string" }
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"definitions": {
|
|
232
|
+
"route": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"required": ["method", "path", "file"],
|
|
235
|
+
"properties": {
|
|
236
|
+
"method": { "type": "string", "enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "ANY"] },
|
|
237
|
+
"path": { "type": "string" },
|
|
238
|
+
"controller": { "type": "string" },
|
|
239
|
+
"action": { "type": "string" },
|
|
240
|
+
"middleware": { "type": "array", "items": { "type": "string" } },
|
|
241
|
+
"file": { "type": "string" },
|
|
242
|
+
"line": { "type": "integer", "minimum": 1 }
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"controller": {
|
|
246
|
+
"type": "object",
|
|
247
|
+
"required": ["name", "file"],
|
|
248
|
+
"properties": {
|
|
249
|
+
"name": { "type": "string" },
|
|
250
|
+
"methods": { "type": "array", "items": { "type": "string" } },
|
|
251
|
+
"file": { "type": "string" },
|
|
252
|
+
"lineCount": { "type": "integer", "minimum": 0 }
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"model": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"required": ["name", "file"],
|
|
258
|
+
"properties": {
|
|
259
|
+
"name": { "type": "string" },
|
|
260
|
+
"table": { "type": "string" },
|
|
261
|
+
"fillable": { "type": "array", "items": { "type": "string" } },
|
|
262
|
+
"relations": { "type": "array", "items": { "type": "object" } },
|
|
263
|
+
"file": { "type": "string" }
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"migration": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"required": ["file", "timestamp"],
|
|
269
|
+
"properties": {
|
|
270
|
+
"file": { "type": "string" },
|
|
271
|
+
"timestamp": { "type": "string" },
|
|
272
|
+
"tables": { "type": "array", "items": { "type": "string" } },
|
|
273
|
+
"action": { "enum": ["create", "alter", "drop"] }
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"middleware": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"required": ["name", "file"],
|
|
279
|
+
"properties": {
|
|
280
|
+
"name": { "type": "string" },
|
|
281
|
+
"file": { "type": "string" }
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"service": {
|
|
285
|
+
"type": "object",
|
|
286
|
+
"required": ["name", "file"],
|
|
287
|
+
"properties": {
|
|
288
|
+
"name": { "type": "string" },
|
|
289
|
+
"methods": { "type": "array", "items": { "type": "string" } },
|
|
290
|
+
"file": { "type": "string" }
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"repository": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"required": ["name", "file"],
|
|
296
|
+
"properties": {
|
|
297
|
+
"name": { "type": "string" },
|
|
298
|
+
"file": { "type": "string" }
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"job": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"required": ["name", "file"],
|
|
304
|
+
"properties": {
|
|
305
|
+
"name": { "type": "string" },
|
|
306
|
+
"file": { "type": "string" },
|
|
307
|
+
"queue": { "type": "string" }
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"event": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"required": ["name", "file"],
|
|
313
|
+
"properties": {
|
|
314
|
+
"name": { "type": "string" },
|
|
315
|
+
"listeners": { "type": "array", "items": { "type": "string" } },
|
|
316
|
+
"file": { "type": "string" }
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"test": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"required": ["file", "testCount"],
|
|
322
|
+
"properties": {
|
|
323
|
+
"file": { "type": "string" },
|
|
324
|
+
"testCount": { "type": "integer", "minimum": 0 },
|
|
325
|
+
"type": { "enum": ["unit", "feature", "integration"] }
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"view": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"required": ["file"],
|
|
331
|
+
"properties": {
|
|
332
|
+
"file": { "type": "string" },
|
|
333
|
+
"layout": { "type": "string" },
|
|
334
|
+
"sections": { "type": "array", "items": { "type": "string" } }
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"config": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"required": ["file"],
|
|
340
|
+
"properties": {
|
|
341
|
+
"file": { "type": "string" },
|
|
342
|
+
"keys": { "type": "array", "items": { "type": "string" } }
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|