@llipe.com/dev-tasks 0.7.4 → 0.9.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/.claude/agents/developer.md +20 -10
- package/.claude/agents/qa-engineer.md +104 -0
- package/.claude/agents/verifier.md +1 -1
- package/.claude/commands/developer.md +14 -10
- package/.claude/commands/planner.md +10 -8
- package/.claude/commands/qa-engineer.md +23 -0
- package/.claude/skills/activity-coverage-gap-analysis/SKILL.md +107 -0
- package/.claude/skills/activity-test-implementation/SKILL.md +109 -0
- package/.claude/skills/activity-test-standards/SKILL.md +122 -0
- package/.claude/skills/implement/SKILL.md +19 -13
- package/.github/agents/developer.agent.md +20 -10
- package/.github/agents/planner.agent.md +10 -8
- package/.github/agents/qa-engineer.agent.md +104 -0
- package/.github/agents/verifier.agent.md +1 -1
- package/.github/instructions/implement.instructions.md +19 -13
- package/.github/prompts/qa-engineer.prompt.md +23 -0
- package/.github/skills/activity-coverage-gap-analysis/SKILL.md +107 -0
- package/.github/skills/activity-test-implementation/SKILL.md +109 -0
- package/.github/skills/activity-test-standards/SKILL.md +122 -0
- package/.kiro/agents/developer.md +27 -11
- package/.kiro/agents/github-ops.md +2 -0
- package/.kiro/agents/housekeeping.md +3 -0
- package/.kiro/agents/planner.md +17 -9
- package/.kiro/agents/product-engineer.md +9 -1
- package/.kiro/agents/qa-engineer.md +108 -0
- package/.kiro/agents/technical-writer.md +4 -0
- package/.kiro/agents/ux-engineer.md +4 -0
- package/.kiro/agents/verifier.md +5 -1
- package/.kiro/hooks/git-guard.json +12 -1
- package/.kiro/hooks/scripts/branch-guard.sh +36 -0
- package/.kiro/skills/activity-coverage-gap-analysis/SKILL.md +107 -0
- package/.kiro/skills/activity-test-implementation/SKILL.md +109 -0
- package/.kiro/skills/activity-test-standards/SKILL.md +122 -0
- package/.kiro/steering/implement.md +23 -13
- package/AGENTS.md +102 -23
- package/CHANGELOG.md +70 -0
- package/CLAUDE.md +6 -3
- package/README.md +108 -112
- package/bundle-manifest.json +1 -0
- package/dist/core/distribution/install.d.ts.map +1 -1
- package/dist/core/distribution/install.js +25 -2
- package/dist/core/distribution/install.js.map +1 -1
- package/dist/core/distribution/profiles.d.ts +21 -0
- package/dist/core/distribution/profiles.d.ts.map +1 -1
- package/dist/core/distribution/profiles.js +21 -0
- package/dist/core/distribution/profiles.js.map +1 -1
- package/dist/core/extract/asyncapi/declared.d.ts +19 -0
- package/dist/core/extract/asyncapi/declared.d.ts.map +1 -0
- package/dist/core/extract/asyncapi/declared.js +168 -0
- package/dist/core/extract/asyncapi/declared.js.map +1 -0
- package/dist/core/extract/asyncapi/index.d.ts +1 -0
- package/dist/core/extract/asyncapi/index.d.ts.map +1 -1
- package/dist/core/extract/asyncapi/index.js +1 -0
- package/dist/core/extract/asyncapi/index.js.map +1 -1
- package/dist/core/extract/asyncapi/types.d.ts +1 -1
- package/dist/core/extract/asyncapi/types.d.ts.map +1 -1
- package/dist/core/extract/ladder.d.ts +79 -0
- package/dist/core/extract/ladder.d.ts.map +1 -0
- package/dist/core/extract/ladder.js +70 -0
- package/dist/core/extract/ladder.js.map +1 -0
- package/dist/core/extract/openapi/index.d.ts +35 -5
- package/dist/core/extract/openapi/index.d.ts.map +1 -1
- package/dist/core/extract/openapi/index.js +136 -3
- package/dist/core/extract/openapi/index.js.map +1 -1
- package/dist/core/extract/openapi/route2-introspect.d.ts +18 -0
- package/dist/core/extract/openapi/route2-introspect.d.ts.map +1 -0
- package/dist/core/extract/openapi/route2-introspect.js +249 -0
- package/dist/core/extract/openapi/route2-introspect.js.map +1 -0
- package/dist/core/extract/openapi/route2.d.ts +40 -17
- package/dist/core/extract/openapi/route2.d.ts.map +1 -1
- package/dist/core/extract/openapi/route2.js +202 -10
- package/dist/core/extract/openapi/route2.js.map +1 -1
- package/dist/core/extract/openapi/types.d.ts +3 -3
- package/dist/core/extract/openapi/types.d.ts.map +1 -1
- package/dist/core/extract/provider.d.ts +4 -0
- package/dist/core/extract/provider.d.ts.map +1 -1
- package/dist/core/extract/report.d.ts +29 -1
- package/dist/core/extract/report.d.ts.map +1 -1
- package/dist/core/extract/report.js +7 -2
- package/dist/core/extract/report.js.map +1 -1
- package/dist/core/extract/schema.d.ts +16 -18
- package/dist/core/extract/schema.d.ts.map +1 -1
- package/dist/core/extract/schema.js +48 -43
- package/dist/core/extract/schema.js.map +1 -1
- package/dist/core/extract/workspaces.d.ts +33 -0
- package/dist/core/extract/workspaces.d.ts.map +1 -0
- package/dist/core/extract/workspaces.js +193 -0
- package/dist/core/extract/workspaces.js.map +1 -0
- package/package.json +10 -2
- package/dist/core/extract/openapi/llm-descriptions.d.ts +0 -41
- package/dist/core/extract/openapi/llm-descriptions.d.ts.map +0 -1
- package/dist/core/extract/openapi/llm-descriptions.js +0 -36
- package/dist/core/extract/openapi/llm-descriptions.js.map +0 -1
- package/dist/core/extract/orm/llm-descriptions.d.ts +0 -28
- package/dist/core/extract/orm/llm-descriptions.d.ts.map +0 -1
- package/dist/core/extract/orm/llm-descriptions.js +0 -64
- package/dist/core/extract/orm/llm-descriptions.js.map +0 -1
- package/dist/core/extract/orm/migration-inference.d.ts +0 -25
- package/dist/core/extract/orm/migration-inference.d.ts.map +0 -1
- package/dist/core/extract/orm/migration-inference.js +0 -76
- package/dist/core/extract/orm/migration-inference.js.map +0 -1
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Route 2 Introspection Script — runs as a child process.
|
|
3
|
+
*
|
|
4
|
+
* This script:
|
|
5
|
+
* 1. Receives the app entry point path via argv[2]
|
|
6
|
+
* 2. Imports the module
|
|
7
|
+
* 3. Locates the Express app export (default, named `app`, or `createApp()` factory)
|
|
8
|
+
* 4. Walks the router stack recursively to enumerate all routes
|
|
9
|
+
* 5. Prints JSON to stdout
|
|
10
|
+
*
|
|
11
|
+
* Supports both Express 4 (app._router.stack) and Express 5 (app.router.stack).
|
|
12
|
+
*
|
|
13
|
+
* The parent process (`extractRoute2Express`) runs this via execa with a hard timeout.
|
|
14
|
+
* Any failure (import error, no app found, etc.) results in a non-zero exit with
|
|
15
|
+
* a JSON error payload on stderr.
|
|
16
|
+
*/
|
|
17
|
+
import { resolve } from "node:path";
|
|
18
|
+
import { pathToFileURL } from "node:url";
|
|
19
|
+
// Express 5 uses layer.match() to populate layer.path with the mount prefix
|
|
20
|
+
/**
|
|
21
|
+
* Walk the Express router stack recursively to extract all registered routes.
|
|
22
|
+
* Supports both Express 4 and Express 5 internal structures.
|
|
23
|
+
*/
|
|
24
|
+
function walkStack(stack, basePath) {
|
|
25
|
+
const routes = [];
|
|
26
|
+
for (const layer of stack) {
|
|
27
|
+
if (layer.route) {
|
|
28
|
+
// This is a route layer (app.get, app.post, etc.)
|
|
29
|
+
const route = layer.route;
|
|
30
|
+
const fullPath = composePath(basePath, route.path);
|
|
31
|
+
for (const method of Object.keys(route.methods)) {
|
|
32
|
+
if (route.methods[method]) {
|
|
33
|
+
routes.push({ method, path: fullPath });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else if (layer.handle && layer.handle.stack) {
|
|
38
|
+
// This is a mounted sub-router
|
|
39
|
+
const prefix = extractMountPrefix(layer);
|
|
40
|
+
const nestedPath = composePath(basePath, prefix);
|
|
41
|
+
const nestedStack = layer.handle.stack;
|
|
42
|
+
routes.push(...walkStack(nestedStack, nestedPath));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return routes;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Extract the mount prefix from a router layer.
|
|
49
|
+
*
|
|
50
|
+
* Express 4: uses layer.regexp or layer.path
|
|
51
|
+
* Express 5: uses layer.match() — calling match populates layer.path
|
|
52
|
+
*/
|
|
53
|
+
function extractMountPrefix(layer) {
|
|
54
|
+
// Express 5: use Layer.match() if available
|
|
55
|
+
if (typeof layer.match === "function") {
|
|
56
|
+
// We need a test path that would match. Express 5 uses prefix matching for
|
|
57
|
+
// use() middleware, so try common patterns until one matches.
|
|
58
|
+
const testPaths = generateTestPaths();
|
|
59
|
+
for (const testPath of testPaths) {
|
|
60
|
+
const matched = layer.match(testPath);
|
|
61
|
+
if (matched && typeof layer.path === "string") {
|
|
62
|
+
return layer.path;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// If layer.path was already set (catch-all "/")
|
|
66
|
+
if (typeof layer.path === "string") {
|
|
67
|
+
return layer.path === "/" ? "" : layer.path;
|
|
68
|
+
}
|
|
69
|
+
return "";
|
|
70
|
+
}
|
|
71
|
+
// Express 4: try layer.path first
|
|
72
|
+
if (typeof layer.path === "string" && layer.path) {
|
|
73
|
+
return layer.path;
|
|
74
|
+
}
|
|
75
|
+
// Express 4: parse from regexp
|
|
76
|
+
const regexp = layer.regexp;
|
|
77
|
+
if (regexp) {
|
|
78
|
+
const source = regexp.source;
|
|
79
|
+
const match = source.match(/^\^((?:\\\/[^?(*]+)+)/);
|
|
80
|
+
if (match) {
|
|
81
|
+
return match[1].replace(/\\\//g, "/");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return "";
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Generate test paths to probe Express 5 matchers.
|
|
88
|
+
* Includes common API prefixes and exhaustive single/double-segment combos.
|
|
89
|
+
*/
|
|
90
|
+
function generateTestPaths() {
|
|
91
|
+
const paths = ["/"];
|
|
92
|
+
const segments = [
|
|
93
|
+
"api",
|
|
94
|
+
"v1",
|
|
95
|
+
"v2",
|
|
96
|
+
"v3",
|
|
97
|
+
"admin",
|
|
98
|
+
"auth",
|
|
99
|
+
"public",
|
|
100
|
+
"internal",
|
|
101
|
+
"health",
|
|
102
|
+
"metrics",
|
|
103
|
+
"webhooks",
|
|
104
|
+
"users",
|
|
105
|
+
"static",
|
|
106
|
+
"assets",
|
|
107
|
+
];
|
|
108
|
+
// Single-segment paths
|
|
109
|
+
for (const seg of segments) {
|
|
110
|
+
paths.push(`/${seg}/test`);
|
|
111
|
+
}
|
|
112
|
+
// Double-segment paths (cover /api/v1, /api/v2, etc.)
|
|
113
|
+
for (const s1 of segments) {
|
|
114
|
+
for (const s2 of segments) {
|
|
115
|
+
paths.push(`/${s1}/${s2}/test`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return paths;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Compose two path segments, handling trailing/leading slashes.
|
|
122
|
+
*/
|
|
123
|
+
function composePath(base, segment) {
|
|
124
|
+
const normalizedBase = base.replace(/\/+$/, "");
|
|
125
|
+
const normalizedSegment = segment.startsWith("/") ? segment : segment ? `/${segment}` : "";
|
|
126
|
+
const composed = normalizedBase + normalizedSegment;
|
|
127
|
+
return composed || "/";
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Try to locate an Express app from a module's exports.
|
|
131
|
+
* Checks: default export, named `app`, `createApp()` factory.
|
|
132
|
+
*/
|
|
133
|
+
function findExpressApp(moduleExports) {
|
|
134
|
+
// Check default export
|
|
135
|
+
if (moduleExports.default && isExpressApp(moduleExports.default)) {
|
|
136
|
+
return moduleExports.default;
|
|
137
|
+
}
|
|
138
|
+
// Check named `app` export
|
|
139
|
+
if (moduleExports.app && isExpressApp(moduleExports.app)) {
|
|
140
|
+
return moduleExports.app;
|
|
141
|
+
}
|
|
142
|
+
// Check `createApp` factory
|
|
143
|
+
if (typeof moduleExports.createApp === "function") {
|
|
144
|
+
try {
|
|
145
|
+
const app = moduleExports.createApp();
|
|
146
|
+
if (isExpressApp(app))
|
|
147
|
+
return app;
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
// Factory failed, continue
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Check any export that looks like an Express app
|
|
154
|
+
for (const key of Object.keys(moduleExports)) {
|
|
155
|
+
if (key === "default" || key === "app" || key === "createApp")
|
|
156
|
+
continue;
|
|
157
|
+
if (isExpressApp(moduleExports[key])) {
|
|
158
|
+
return moduleExports[key];
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Check if a value looks like an Express app.
|
|
165
|
+
* Express 4: app._router.stack
|
|
166
|
+
* Express 5: app.router.stack
|
|
167
|
+
*/
|
|
168
|
+
function isExpressApp(value) {
|
|
169
|
+
if (!value || typeof value !== "function")
|
|
170
|
+
return false;
|
|
171
|
+
return getRouterStack(value) !== null;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get the router stack from an Express app (supports Express 4 and 5).
|
|
175
|
+
*/
|
|
176
|
+
function getRouterStack(app) {
|
|
177
|
+
// Express 5: app.router.stack
|
|
178
|
+
const router5 = app.router;
|
|
179
|
+
if (router5 &&
|
|
180
|
+
typeof router5 === "function" &&
|
|
181
|
+
Array.isArray(router5.stack)) {
|
|
182
|
+
return router5.stack;
|
|
183
|
+
}
|
|
184
|
+
if (router5 && typeof router5 === "object" && Array.isArray(router5.stack)) {
|
|
185
|
+
return router5.stack;
|
|
186
|
+
}
|
|
187
|
+
// Express 4: app._router.stack
|
|
188
|
+
const router4 = app._router;
|
|
189
|
+
if (router4 && Array.isArray(router4.stack)) {
|
|
190
|
+
return router4.stack;
|
|
191
|
+
}
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
194
|
+
async function main() {
|
|
195
|
+
const entryPath = process.argv[2];
|
|
196
|
+
if (!entryPath) {
|
|
197
|
+
const error = { error: "No entry point provided", code: "no-entry" };
|
|
198
|
+
process.stderr.write(JSON.stringify(error));
|
|
199
|
+
process.exit(1);
|
|
200
|
+
}
|
|
201
|
+
const absoluteEntry = resolve(entryPath);
|
|
202
|
+
const entryUrl = pathToFileURL(absoluteEntry).href;
|
|
203
|
+
let moduleExports;
|
|
204
|
+
try {
|
|
205
|
+
moduleExports = (await import(entryUrl));
|
|
206
|
+
}
|
|
207
|
+
catch (err) {
|
|
208
|
+
const error = {
|
|
209
|
+
error: `Failed to import: ${err instanceof Error ? err.message : String(err)}`,
|
|
210
|
+
code: "import-failed",
|
|
211
|
+
};
|
|
212
|
+
process.stderr.write(JSON.stringify(error));
|
|
213
|
+
process.exit(1);
|
|
214
|
+
}
|
|
215
|
+
const app = findExpressApp(moduleExports);
|
|
216
|
+
if (!app) {
|
|
217
|
+
const error = {
|
|
218
|
+
error: "No Express app export found (checked: default, app, createApp)",
|
|
219
|
+
code: "no-app-export",
|
|
220
|
+
};
|
|
221
|
+
process.stderr.write(JSON.stringify(error));
|
|
222
|
+
process.exit(1);
|
|
223
|
+
}
|
|
224
|
+
const stack = getRouterStack(app);
|
|
225
|
+
if (!stack) {
|
|
226
|
+
const error = {
|
|
227
|
+
error: "Express app found but router stack is not accessible",
|
|
228
|
+
code: "no-router-stack",
|
|
229
|
+
};
|
|
230
|
+
process.stderr.write(JSON.stringify(error));
|
|
231
|
+
process.exit(1);
|
|
232
|
+
}
|
|
233
|
+
const endpoints = walkStack(stack, "");
|
|
234
|
+
const result = {
|
|
235
|
+
endpoints,
|
|
236
|
+
framework: "express",
|
|
237
|
+
};
|
|
238
|
+
process.stdout.write(JSON.stringify(result));
|
|
239
|
+
process.exit(0);
|
|
240
|
+
}
|
|
241
|
+
main().catch((err) => {
|
|
242
|
+
const error = {
|
|
243
|
+
error: `Unexpected: ${err instanceof Error ? err.message : String(err)}`,
|
|
244
|
+
code: "unexpected",
|
|
245
|
+
};
|
|
246
|
+
process.stderr.write(JSON.stringify(error));
|
|
247
|
+
process.exit(1);
|
|
248
|
+
});
|
|
249
|
+
//# sourceMappingURL=route2-introspect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route2-introspect.js","sourceRoot":"","sources":["../../../../core/extract/openapi/route2-introspect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAiBzC,4EAA4E;AAE5E;;;GAGG;AACH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C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OpenAPI Route 2:
|
|
2
|
+
* OpenAPI Route 2: Boot + Introspect route discovery.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* 3. Extract full OpenAPI specs with runtime type information
|
|
4
|
+
* Boots the application in a child process and walks the Express router stack
|
|
5
|
+
* to discover all registered routes — including dynamically-registered routes
|
|
6
|
+
* that AST analysis (route3) cannot resolve.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
8
|
+
* Strategy: spawn a child process that imports the app module, locates the
|
|
9
|
+
* Express app export, walks `app._router.stack`, and prints discovered routes
|
|
10
|
+
* as JSON to stdout. The parent process handles timeouts and failures gracefully.
|
|
11
|
+
*
|
|
12
|
+
* Failure taxonomy:
|
|
13
|
+
* - entry-not-found: no resolvable entry point in package.json or common paths
|
|
14
|
+
* - import-failed: module import threw an error
|
|
15
|
+
* - no-app-export: module loaded but no Express app found in exports
|
|
16
|
+
* - timeout: boot exceeded the configured timeout
|
|
17
|
+
* - parse-error: child process output was not valid JSON
|
|
18
|
+
*
|
|
19
|
+
* All failures return null (rung unavailable), never crash dt.
|
|
10
20
|
*/
|
|
11
21
|
import type { OpenApiExtractionResult } from "./types.js";
|
|
12
22
|
/**
|
|
13
|
-
* Configuration for
|
|
23
|
+
* Configuration for route2 extraction.
|
|
24
|
+
*/
|
|
25
|
+
export interface Route2Options {
|
|
26
|
+
/** Override entry point path (relative to fixtureDir or absolute) */
|
|
27
|
+
entry?: string;
|
|
28
|
+
/** Timeout in milliseconds (default: 10000) */
|
|
29
|
+
timeout?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Route2 extraction configuration (legacy interface kept for compatibility).
|
|
14
33
|
*/
|
|
15
34
|
export interface Route2Config {
|
|
16
35
|
/** Path to the application entry point */
|
|
@@ -25,22 +44,26 @@ export interface Route2Config {
|
|
|
25
44
|
env?: Record<string, string>;
|
|
26
45
|
}
|
|
27
46
|
/**
|
|
28
|
-
*
|
|
29
|
-
* A future implementation would:
|
|
30
|
-
* 1. Spawn the app in a child process with instrumentation
|
|
31
|
-
* 2. Wait for the server to be ready
|
|
32
|
-
* 3. Query the framework's internal route table
|
|
33
|
-
* 4. Shut down the process cleanly
|
|
47
|
+
* Route2 extractor interface (legacy — kept for compatibility).
|
|
34
48
|
*/
|
|
35
49
|
export interface Route2Extractor {
|
|
36
|
-
/** Boot the framework and extract the route table */
|
|
37
50
|
extract(config: Route2Config): Promise<OpenApiExtractionResult>;
|
|
38
|
-
/** Check if the framework can be booted (deps installed, entry point valid) */
|
|
39
51
|
canBoot(config: Route2Config): Promise<boolean>;
|
|
40
52
|
}
|
|
41
53
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
54
|
+
* Extract OpenAPI endpoints by booting an Express app and introspecting its router.
|
|
55
|
+
*
|
|
56
|
+
* Returns null if:
|
|
57
|
+
* - No entry point found
|
|
58
|
+
* - Boot fails (import error, no app export, timeout)
|
|
59
|
+
* - Output is unparseable
|
|
60
|
+
*
|
|
61
|
+
* Never throws — failures are "rung unavailable".
|
|
62
|
+
*/
|
|
63
|
+
export declare function extractRoute2Express(rootDir: string, options?: Route2Options): Promise<OpenApiExtractionResult | null>;
|
|
64
|
+
/**
|
|
65
|
+
* Legacy placeholder — kept for backward compatibility with existing imports.
|
|
66
|
+
* @deprecated Use extractRoute2Express instead.
|
|
44
67
|
*/
|
|
45
68
|
export declare function extractRoute2(_config: Route2Config): Promise<OpenApiExtractionResult>;
|
|
46
69
|
//# sourceMappingURL=route2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route2.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/route2.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"route2.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/route2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACrD,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAChE,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjD;AA+DD;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAmGzC;AA2CD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAIrF"}
|
|
@@ -1,19 +1,211 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OpenAPI Route 2:
|
|
2
|
+
* OpenAPI Route 2: Boot + Introspect route discovery.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* 3. Extract full OpenAPI specs with runtime type information
|
|
4
|
+
* Boots the application in a child process and walks the Express router stack
|
|
5
|
+
* to discover all registered routes — including dynamically-registered routes
|
|
6
|
+
* that AST analysis (route3) cannot resolve.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
8
|
+
* Strategy: spawn a child process that imports the app module, locates the
|
|
9
|
+
* Express app export, walks `app._router.stack`, and prints discovered routes
|
|
10
|
+
* as JSON to stdout. The parent process handles timeouts and failures gracefully.
|
|
11
|
+
*
|
|
12
|
+
* Failure taxonomy:
|
|
13
|
+
* - entry-not-found: no resolvable entry point in package.json or common paths
|
|
14
|
+
* - import-failed: module import threw an error
|
|
15
|
+
* - no-app-export: module loaded but no Express app found in exports
|
|
16
|
+
* - timeout: boot exceeded the configured timeout
|
|
17
|
+
* - parse-error: child process output was not valid JSON
|
|
18
|
+
*
|
|
19
|
+
* All failures return null (rung unavailable), never crash dt.
|
|
20
|
+
*/
|
|
21
|
+
import { readFileSync, existsSync } from "node:fs";
|
|
22
|
+
import { resolve, join, dirname } from "node:path";
|
|
23
|
+
import { execFile } from "node:child_process";
|
|
24
|
+
import { fileURLToPath } from "node:url";
|
|
25
|
+
const DEFAULT_TIMEOUT = 10_000;
|
|
26
|
+
/**
|
|
27
|
+
* Common entry point candidates, checked in order.
|
|
28
|
+
*/
|
|
29
|
+
const ENTRY_CANDIDATES = [
|
|
30
|
+
"src/app.ts",
|
|
31
|
+
"src/index.ts",
|
|
32
|
+
"src/server.ts",
|
|
33
|
+
"app.ts",
|
|
34
|
+
"index.ts",
|
|
35
|
+
"server.ts",
|
|
36
|
+
"src/app.js",
|
|
37
|
+
"src/index.js",
|
|
38
|
+
"app.js",
|
|
39
|
+
"index.js",
|
|
40
|
+
];
|
|
41
|
+
/**
|
|
42
|
+
* Resolve the application entry point from a project directory.
|
|
43
|
+
* Checks package.json `main` first, then common candidates.
|
|
44
|
+
*/
|
|
45
|
+
function resolveEntryPoint(rootDir, entryOverride) {
|
|
46
|
+
if (entryOverride) {
|
|
47
|
+
const resolved = resolve(rootDir, entryOverride);
|
|
48
|
+
return existsSync(resolved) ? resolved : null;
|
|
49
|
+
}
|
|
50
|
+
// Check package.json main field
|
|
51
|
+
const pkgPath = join(rootDir, "package.json");
|
|
52
|
+
if (existsSync(pkgPath)) {
|
|
53
|
+
try {
|
|
54
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
55
|
+
if (typeof pkg.main === "string") {
|
|
56
|
+
const mainPath = resolve(rootDir, pkg.main);
|
|
57
|
+
if (existsSync(mainPath))
|
|
58
|
+
return mainPath;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
// Invalid package.json, continue to candidates
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// Check common candidates
|
|
66
|
+
for (const candidate of ENTRY_CANDIDATES) {
|
|
67
|
+
const candidatePath = resolve(rootDir, candidate);
|
|
68
|
+
if (existsSync(candidatePath))
|
|
69
|
+
return candidatePath;
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Extract OpenAPI endpoints by booting an Express app and introspecting its router.
|
|
75
|
+
*
|
|
76
|
+
* Returns null if:
|
|
77
|
+
* - No entry point found
|
|
78
|
+
* - Boot fails (import error, no app export, timeout)
|
|
79
|
+
* - Output is unparseable
|
|
80
|
+
*
|
|
81
|
+
* Never throws — failures are "rung unavailable".
|
|
82
|
+
*/
|
|
83
|
+
export async function extractRoute2Express(rootDir, options = {}) {
|
|
84
|
+
const timeout = options.timeout ?? DEFAULT_TIMEOUT;
|
|
85
|
+
const entryPoint = resolveEntryPoint(rootDir, options.entry);
|
|
86
|
+
if (!entryPoint) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
// Path to the introspection script
|
|
90
|
+
const thisFile = fileURLToPath(import.meta.url);
|
|
91
|
+
const introspectScript = join(dirname(thisFile), "route2-introspect.ts");
|
|
92
|
+
// Find tsx binary for running TypeScript
|
|
93
|
+
const tsxBin = resolve(rootDir, "node_modules/.bin/tsx");
|
|
94
|
+
const globalTsx = "tsx";
|
|
95
|
+
// Determine which tsx to use
|
|
96
|
+
const runner = existsSync(tsxBin) ? tsxBin : globalTsx;
|
|
97
|
+
try {
|
|
98
|
+
const result = await new Promise((resolvePromise, reject) => {
|
|
99
|
+
const child = execFile(runner, [introspectScript, entryPoint], {
|
|
100
|
+
cwd: rootDir,
|
|
101
|
+
timeout,
|
|
102
|
+
env: {
|
|
103
|
+
...process.env,
|
|
104
|
+
NODE_ENV: "test",
|
|
105
|
+
// Prevent the app from actually listening
|
|
106
|
+
PORT: "0",
|
|
107
|
+
// Allow resolving deps from the nearest node_modules.
|
|
108
|
+
// In production, the target project has its own node_modules.
|
|
109
|
+
// We look upward from rootDir to find the nearest one (supports
|
|
110
|
+
// both monorepos and test fixtures under a parent project).
|
|
111
|
+
NODE_PATH: findNodeModulesPath(rootDir),
|
|
112
|
+
},
|
|
113
|
+
maxBuffer: 10 * 1024 * 1024, // 10MB
|
|
114
|
+
}, (error, stdout, stderr) => {
|
|
115
|
+
if (error) {
|
|
116
|
+
reject(error);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
resolvePromise({ stdout, stderr });
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
// Safety: kill on timeout (execFile already handles this, but double-safe)
|
|
123
|
+
child.on("error", reject);
|
|
124
|
+
});
|
|
125
|
+
// Parse the output
|
|
126
|
+
let parsed;
|
|
127
|
+
try {
|
|
128
|
+
parsed = JSON.parse(result.stdout);
|
|
129
|
+
}
|
|
130
|
+
catch {
|
|
131
|
+
return null; // parse-error
|
|
132
|
+
}
|
|
133
|
+
if (!parsed.endpoints || !Array.isArray(parsed.endpoints)) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
// Convert to OpenApiExtractionResult
|
|
137
|
+
const endpoints = parsed.endpoints
|
|
138
|
+
.filter((e) => e.method && e.path)
|
|
139
|
+
.map((e) => ({
|
|
140
|
+
method: e.method.toLowerCase(),
|
|
141
|
+
path: e.path,
|
|
142
|
+
parameters: extractPathParams(e.path),
|
|
143
|
+
responses: [
|
|
144
|
+
{
|
|
145
|
+
statusCode: "200",
|
|
146
|
+
contentType: "application/json",
|
|
147
|
+
schema: null,
|
|
148
|
+
description: "Response",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
typed: false,
|
|
152
|
+
confidence: "high",
|
|
153
|
+
}));
|
|
154
|
+
return {
|
|
155
|
+
openapi: "3.1.0",
|
|
156
|
+
info: { title: "API", version: "1.0.0" },
|
|
157
|
+
endpoints,
|
|
158
|
+
unresolved: [],
|
|
159
|
+
source: "observed",
|
|
160
|
+
confidence: "high",
|
|
161
|
+
strategy: "route2",
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
catch {
|
|
165
|
+
// Any error (timeout, exit code, etc.) = rung unavailable
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Find the nearest node_modules directory by traversing up from a starting path.
|
|
171
|
+
* Returns a NODE_PATH-compatible string with paths separated by `:`.
|
|
10
172
|
*/
|
|
173
|
+
function findNodeModulesPath(startDir) {
|
|
174
|
+
const paths = [];
|
|
175
|
+
let current = startDir;
|
|
176
|
+
const root = resolve("/");
|
|
177
|
+
while (current !== root) {
|
|
178
|
+
const nmPath = join(current, "node_modules");
|
|
179
|
+
if (existsSync(nmPath)) {
|
|
180
|
+
paths.push(nmPath);
|
|
181
|
+
}
|
|
182
|
+
const parent = dirname(current);
|
|
183
|
+
if (parent === current)
|
|
184
|
+
break;
|
|
185
|
+
current = parent;
|
|
186
|
+
}
|
|
187
|
+
// Include existing NODE_PATH if set
|
|
188
|
+
if (process.env.NODE_PATH) {
|
|
189
|
+
paths.push(process.env.NODE_PATH);
|
|
190
|
+
}
|
|
191
|
+
return paths.join(":");
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Extract path parameters from a route pattern.
|
|
195
|
+
*/
|
|
196
|
+
function extractPathParams(path) {
|
|
197
|
+
const params = [];
|
|
198
|
+
const matches = path.matchAll(/:([a-zA-Z_][a-zA-Z0-9_]*)/g);
|
|
199
|
+
for (const match of matches) {
|
|
200
|
+
params.push({ name: match[1], in: "path", required: true, type: "string" });
|
|
201
|
+
}
|
|
202
|
+
return params;
|
|
203
|
+
}
|
|
11
204
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
205
|
+
* Legacy placeholder — kept for backward compatibility with existing imports.
|
|
206
|
+
* @deprecated Use extractRoute2Express instead.
|
|
14
207
|
*/
|
|
15
208
|
export function extractRoute2(_config) {
|
|
16
|
-
return Promise.reject(new Error("
|
|
17
|
-
"Use --strategy 1 (on-disk spec) or --strategy 3 (AST analysis) instead."));
|
|
209
|
+
return Promise.reject(new Error("Legacy extractRoute2 is deprecated. Use extractRoute2Express() instead."));
|
|
18
210
|
}
|
|
19
211
|
//# sourceMappingURL=route2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route2.js","sourceRoot":"","sources":["../../../../core/extract/openapi/route2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"route2.js","sourceRoot":"","sources":["../../../../core/extract/openapi/route2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA+CzC,MAAM,eAAe,GAAG,MAAM,CAAC;AAE/B;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACvB,YAAY;IACZ,cAA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AC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,OAAqB;IACjD,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,KAAK,CAAC,yEAAyE,CAAC,CACrF,CAAC;AACJ,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Provenance source for OpenAPI extraction.
|
|
6
6
|
*/
|
|
7
|
-
export type OpenApiSource = "introspected" | "inferred";
|
|
7
|
+
export type OpenApiSource = "introspected" | "inferred" | "observed";
|
|
8
8
|
/**
|
|
9
9
|
* Confidence level for OpenAPI extraction.
|
|
10
10
|
*/
|
|
@@ -106,8 +106,8 @@ export interface OpenApiExtractionResult {
|
|
|
106
106
|
source: OpenApiSource;
|
|
107
107
|
/** Overall confidence */
|
|
108
108
|
confidence: OpenApiConfidence;
|
|
109
|
-
/** Strategy used: "route1" | "route3" */
|
|
110
|
-
strategy: "route1" | "route3";
|
|
109
|
+
/** Strategy used: "route1" | "route2" | "route3" */
|
|
110
|
+
strategy: "route1" | "route2" | "route3";
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
* OpenAPI document in the standard format (for validation / output).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,aAA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,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC"}
|
|
@@ -75,6 +75,10 @@ export interface DetectionResult {
|
|
|
75
75
|
export interface RepoContext {
|
|
76
76
|
/** Absolute path to the repository root */
|
|
77
77
|
rootDir: string;
|
|
78
|
+
/** Absolute path to the component/package being detected (equals rootDir for single-package repos) */
|
|
79
|
+
componentRoot?: string;
|
|
80
|
+
/** Absolute path to the repository checkout root (always the top-level repo) */
|
|
81
|
+
repoRoot?: string;
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
84
|
* Fields that require human input because the provider lacks the capability.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../core/extract/provider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,WAAW,GACX,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,gBAAgB,EAAE,eAAe,CAAC;IAClC,kCAAkC;IAClC,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACjD,wCAAwC;IACxC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,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