@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.
Files changed (101) hide show
  1. package/.claude/agents/developer.md +20 -10
  2. package/.claude/agents/qa-engineer.md +104 -0
  3. package/.claude/agents/verifier.md +1 -1
  4. package/.claude/commands/developer.md +14 -10
  5. package/.claude/commands/planner.md +10 -8
  6. package/.claude/commands/qa-engineer.md +23 -0
  7. package/.claude/skills/activity-coverage-gap-analysis/SKILL.md +107 -0
  8. package/.claude/skills/activity-test-implementation/SKILL.md +109 -0
  9. package/.claude/skills/activity-test-standards/SKILL.md +122 -0
  10. package/.claude/skills/implement/SKILL.md +19 -13
  11. package/.github/agents/developer.agent.md +20 -10
  12. package/.github/agents/planner.agent.md +10 -8
  13. package/.github/agents/qa-engineer.agent.md +104 -0
  14. package/.github/agents/verifier.agent.md +1 -1
  15. package/.github/instructions/implement.instructions.md +19 -13
  16. package/.github/prompts/qa-engineer.prompt.md +23 -0
  17. package/.github/skills/activity-coverage-gap-analysis/SKILL.md +107 -0
  18. package/.github/skills/activity-test-implementation/SKILL.md +109 -0
  19. package/.github/skills/activity-test-standards/SKILL.md +122 -0
  20. package/.kiro/agents/developer.md +27 -11
  21. package/.kiro/agents/github-ops.md +2 -0
  22. package/.kiro/agents/housekeeping.md +3 -0
  23. package/.kiro/agents/planner.md +17 -9
  24. package/.kiro/agents/product-engineer.md +9 -1
  25. package/.kiro/agents/qa-engineer.md +108 -0
  26. package/.kiro/agents/technical-writer.md +4 -0
  27. package/.kiro/agents/ux-engineer.md +4 -0
  28. package/.kiro/agents/verifier.md +5 -1
  29. package/.kiro/hooks/git-guard.json +12 -1
  30. package/.kiro/hooks/scripts/branch-guard.sh +36 -0
  31. package/.kiro/skills/activity-coverage-gap-analysis/SKILL.md +107 -0
  32. package/.kiro/skills/activity-test-implementation/SKILL.md +109 -0
  33. package/.kiro/skills/activity-test-standards/SKILL.md +122 -0
  34. package/.kiro/steering/implement.md +23 -13
  35. package/AGENTS.md +102 -23
  36. package/CHANGELOG.md +70 -0
  37. package/CLAUDE.md +6 -3
  38. package/README.md +108 -112
  39. package/bundle-manifest.json +1 -0
  40. package/dist/core/distribution/install.d.ts.map +1 -1
  41. package/dist/core/distribution/install.js +25 -2
  42. package/dist/core/distribution/install.js.map +1 -1
  43. package/dist/core/distribution/profiles.d.ts +21 -0
  44. package/dist/core/distribution/profiles.d.ts.map +1 -1
  45. package/dist/core/distribution/profiles.js +21 -0
  46. package/dist/core/distribution/profiles.js.map +1 -1
  47. package/dist/core/extract/asyncapi/declared.d.ts +19 -0
  48. package/dist/core/extract/asyncapi/declared.d.ts.map +1 -0
  49. package/dist/core/extract/asyncapi/declared.js +168 -0
  50. package/dist/core/extract/asyncapi/declared.js.map +1 -0
  51. package/dist/core/extract/asyncapi/index.d.ts +1 -0
  52. package/dist/core/extract/asyncapi/index.d.ts.map +1 -1
  53. package/dist/core/extract/asyncapi/index.js +1 -0
  54. package/dist/core/extract/asyncapi/index.js.map +1 -1
  55. package/dist/core/extract/asyncapi/types.d.ts +1 -1
  56. package/dist/core/extract/asyncapi/types.d.ts.map +1 -1
  57. package/dist/core/extract/ladder.d.ts +79 -0
  58. package/dist/core/extract/ladder.d.ts.map +1 -0
  59. package/dist/core/extract/ladder.js +70 -0
  60. package/dist/core/extract/ladder.js.map +1 -0
  61. package/dist/core/extract/openapi/index.d.ts +35 -5
  62. package/dist/core/extract/openapi/index.d.ts.map +1 -1
  63. package/dist/core/extract/openapi/index.js +136 -3
  64. package/dist/core/extract/openapi/index.js.map +1 -1
  65. package/dist/core/extract/openapi/route2-introspect.d.ts +18 -0
  66. package/dist/core/extract/openapi/route2-introspect.d.ts.map +1 -0
  67. package/dist/core/extract/openapi/route2-introspect.js +249 -0
  68. package/dist/core/extract/openapi/route2-introspect.js.map +1 -0
  69. package/dist/core/extract/openapi/route2.d.ts +40 -17
  70. package/dist/core/extract/openapi/route2.d.ts.map +1 -1
  71. package/dist/core/extract/openapi/route2.js +202 -10
  72. package/dist/core/extract/openapi/route2.js.map +1 -1
  73. package/dist/core/extract/openapi/types.d.ts +3 -3
  74. package/dist/core/extract/openapi/types.d.ts.map +1 -1
  75. package/dist/core/extract/provider.d.ts +4 -0
  76. package/dist/core/extract/provider.d.ts.map +1 -1
  77. package/dist/core/extract/report.d.ts +29 -1
  78. package/dist/core/extract/report.d.ts.map +1 -1
  79. package/dist/core/extract/report.js +7 -2
  80. package/dist/core/extract/report.js.map +1 -1
  81. package/dist/core/extract/schema.d.ts +16 -18
  82. package/dist/core/extract/schema.d.ts.map +1 -1
  83. package/dist/core/extract/schema.js +48 -43
  84. package/dist/core/extract/schema.js.map +1 -1
  85. package/dist/core/extract/workspaces.d.ts +33 -0
  86. package/dist/core/extract/workspaces.d.ts.map +1 -0
  87. package/dist/core/extract/workspaces.js +193 -0
  88. package/dist/core/extract/workspaces.js.map +1 -0
  89. package/package.json +10 -2
  90. package/dist/core/extract/openapi/llm-descriptions.d.ts +0 -41
  91. package/dist/core/extract/openapi/llm-descriptions.d.ts.map +0 -1
  92. package/dist/core/extract/openapi/llm-descriptions.js +0 -36
  93. package/dist/core/extract/openapi/llm-descriptions.js.map +0 -1
  94. package/dist/core/extract/orm/llm-descriptions.d.ts +0 -28
  95. package/dist/core/extract/orm/llm-descriptions.d.ts.map +0 -1
  96. package/dist/core/extract/orm/llm-descriptions.js +0 -64
  97. package/dist/core/extract/orm/llm-descriptions.js.map +0 -1
  98. package/dist/core/extract/orm/migration-inference.d.ts +0 -25
  99. package/dist/core/extract/orm/migration-inference.d.ts.map +0 -1
  100. package/dist/core/extract/orm/migration-inference.js +0 -76
  101. package/dist/core/extract/orm/migration-inference.js.map +0 -1
@@ -0,0 +1,168 @@
1
+ /**
2
+ * AsyncAPI Declared Rung: On-disk AsyncAPI spec detection.
3
+ *
4
+ * Detects an existing asyncapi.yaml/asyncapi.json in the repository.
5
+ * If found, reads and validates it as the authoritative source.
6
+ * Returns confidence: high, rung: declared.
7
+ */
8
+ import { readFileSync, existsSync } from "node:fs";
9
+ import { resolve } from "node:path";
10
+ /** File names to search for an on-disk AsyncAPI spec. */
11
+ const ASYNCAPI_CANDIDATES = [
12
+ "asyncapi.yaml",
13
+ "asyncapi.yml",
14
+ "asyncapi.json",
15
+ "docs/asyncapi.yaml",
16
+ "docs/asyncapi.yml",
17
+ "docs/asyncapi.json",
18
+ "api/asyncapi.yaml",
19
+ "api/asyncapi.yml",
20
+ "api/asyncapi.json",
21
+ "spec/asyncapi.yaml",
22
+ "spec/asyncapi.yml",
23
+ "spec/asyncapi.json",
24
+ ];
25
+ /**
26
+ * Detect an on-disk AsyncAPI specification.
27
+ * Returns the path if found, null otherwise.
28
+ */
29
+ export function detectOnDiskAsyncApiSpec(rootDir) {
30
+ for (const candidate of ASYNCAPI_CANDIDATES) {
31
+ const fullPath = resolve(rootDir, candidate);
32
+ if (existsSync(fullPath)) {
33
+ return fullPath;
34
+ }
35
+ }
36
+ return null;
37
+ }
38
+ /**
39
+ * Extract AsyncAPI channels from an on-disk specification.
40
+ * Returns null if no spec is found.
41
+ */
42
+ export function extractAsyncApiDeclared(rootDir) {
43
+ const specPath = detectOnDiskAsyncApiSpec(rootDir);
44
+ if (!specPath)
45
+ return null;
46
+ let content;
47
+ try {
48
+ content = readFileSync(specPath, "utf-8");
49
+ }
50
+ catch {
51
+ return null;
52
+ }
53
+ // Parse (JSON or basic YAML)
54
+ let doc;
55
+ try {
56
+ doc = JSON.parse(content);
57
+ }
58
+ catch {
59
+ // Try basic YAML parsing
60
+ doc = parseBasicYaml(content);
61
+ }
62
+ // Extract channels
63
+ const channels = extractChannelsFromDoc(doc);
64
+ if (channels.length === 0)
65
+ return null;
66
+ return {
67
+ asyncapi: doc.asyncapi ?? "2.6.0",
68
+ info: {
69
+ title: doc.info?.title ?? "API",
70
+ version: doc.info?.version ?? "1.0.0",
71
+ },
72
+ channels,
73
+ unresolved: [],
74
+ source: "declared",
75
+ confidence: "high",
76
+ };
77
+ }
78
+ /**
79
+ * Extract channels from an AsyncAPI document object.
80
+ */
81
+ function extractChannelsFromDoc(doc) {
82
+ const channelsObj = doc.channels;
83
+ if (!channelsObj || typeof channelsObj !== "object")
84
+ return [];
85
+ const channels = [];
86
+ for (const [name, channelDef] of Object.entries(channelsObj)) {
87
+ if (!channelDef || typeof channelDef !== "object")
88
+ continue;
89
+ const ch = channelDef;
90
+ const hasPublish = !!ch.publish;
91
+ const hasSubscribe = !!ch.subscribe;
92
+ const operations = [];
93
+ if (hasPublish) {
94
+ operations.push({
95
+ action: "send",
96
+ topic_confidence: "high",
97
+ payload_confidence: ch.publish && ch.publish.message ? "high" : "low",
98
+ message_schema: extractMessageSchema(ch.publish),
99
+ });
100
+ }
101
+ if (hasSubscribe) {
102
+ operations.push({
103
+ action: "receive",
104
+ topic_confidence: "high",
105
+ payload_confidence: ch.subscribe && ch.subscribe.message ? "high" : "low",
106
+ message_schema: extractMessageSchema(ch.subscribe),
107
+ });
108
+ }
109
+ if (!hasPublish && !hasSubscribe) {
110
+ // Default operation if channel has no publish/subscribe (AsyncAPI 3.x style)
111
+ operations.push({
112
+ action: "receive",
113
+ topic_confidence: "high",
114
+ payload_confidence: "low",
115
+ message_schema: null,
116
+ });
117
+ }
118
+ channels.push({ name, operations });
119
+ }
120
+ return channels;
121
+ }
122
+ /**
123
+ * Extract message schema from an operation definition.
124
+ */
125
+ function extractMessageSchema(operation) {
126
+ if (!operation)
127
+ return null;
128
+ const message = operation.message;
129
+ if (!message)
130
+ return null;
131
+ const payload = message.payload;
132
+ return payload ?? null;
133
+ }
134
+ /**
135
+ * Minimal YAML parser for AsyncAPI specs — handles basic key-value pairs.
136
+ */
137
+ function parseBasicYaml(content) {
138
+ try {
139
+ // Try JSON first in case it's actually JSON with wrong extension
140
+ return JSON.parse(content);
141
+ }
142
+ catch {
143
+ // Basic YAML parsing — extract asyncapi version and channels
144
+ const result = {};
145
+ const lines = content.split("\n");
146
+ for (const line of lines) {
147
+ const versionMatch = line.match(/^asyncapi:\s*['"]?([^'"]+)['"]?\s*$/);
148
+ if (versionMatch) {
149
+ result.asyncapi = versionMatch[1];
150
+ }
151
+ }
152
+ // Extract channels section
153
+ const channelsMatch = content.match(/^channels:\s*\n((?:\s+.+\n?)*)/m);
154
+ if (channelsMatch) {
155
+ const channels = {};
156
+ const channelLines = channelsMatch[1].split("\n");
157
+ for (const line of channelLines) {
158
+ const nameMatch = line.match(/^\s{2}([a-zA-Z0-9_./-]+):\s*$/);
159
+ if (nameMatch) {
160
+ channels[nameMatch[1]] = {};
161
+ }
162
+ }
163
+ result.channels = channels;
164
+ }
165
+ return result;
166
+ }
167
+ }
168
+ //# sourceMappingURL=declared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"declared.js","sourceRoot":"","sources":["../../../../core/extract/asyncapi/declared.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,yDAAyD;AACzD,MAAM,mBAAmB,GAAG;IAC1B,eAAe;IACf,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,mBAAmB;IACnB,oBAAoB;IACpB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,mBAAmB;IACnB,oBAAoB;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,OAAe;IACtD,KAAK,MAAM,SAAS,IAAI,mBAAmB,EAAE,CAAC;QAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAC7C,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YACzB,OAAO,QAAQ,CAAC;QAClB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CA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CAAC,CAAC;gBAC9D,IAAI,SAAS,EAAE,CAAC;oBACd,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;gBAC9B,CAAC;YACH,CAAC;YACD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;AACH,CAAC"}
@@ -8,4 +8,5 @@ export { extractPayloads } from "./payloads.js";
8
8
  export type { PayloadExtractionResult } from "./payloads.js";
9
9
  export { validateAsyncApi, extractionResultToAsyncApiDocument } from "./validate.js";
10
10
  export type { AsyncApiValidationResult, AsyncApiValidationError } from "./validate.js";
11
+ export { extractAsyncApiDeclared, detectOnDiskAsyncApiSpec } from "./declared.js";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/extract/asyncapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,YAAY,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AACrF,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/extract/asyncapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,YAAY,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AACrF,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEvF,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
@@ -4,4 +4,5 @@
4
4
  export { extractTopics } from "./topics.js";
5
5
  export { extractPayloads } from "./payloads.js";
6
6
  export { validateAsyncApi, extractionResultToAsyncApiDocument } from "./validate.js";
7
+ export { extractAsyncApiDeclared, detectOnDiskAsyncApiSpec } from "./declared.js";
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/extract/asyncapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgBH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/extract/asyncapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgBH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAGrF,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
@@ -109,7 +109,7 @@ export interface AsyncApiExtractionResult {
109
109
  /** Topics that could not be resolved */
110
110
  unresolved: UnresolvedEntry[];
111
111
  /** Source type */
112
- source: "inferred";
112
+ source: "inferred" | "declared";
113
113
  /** Overall confidence (lowest of all channels) */
114
114
  confidence: AsyncApiConfidence;
115
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../core/extract/asyncapi/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,UAAU,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,SAAS,EAAE,cAAc,CAAC;IAC1B,iCAAiC;IACjC,UAAU,EAAE,qBAAqB,CAAC;IAClC,uBAAuB;IACvB,gBAAgB,EAAE,kBAAkB,CAAC;IACrC,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,IAAI,E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AAwB;IACvC,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,wCAAwC;IACxC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,wCAAwC;IACxC,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,kBAAkB;IAClB,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,kDAAkD;IAClD,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Extraction ladder runner.
3
+ *
4
+ * Runs extraction rungs in order (declared → observed → inferred) and returns
5
+ * the first usable result with provenance metadata and confidence policy.
6
+ *
7
+ * Confidence policy (enforced, not convention):
8
+ * - declared → high
9
+ * - observed → high
10
+ * - inferred → low (capped — an inferred rung MUST NOT emit medium or high)
11
+ */
12
+ /**
13
+ * The kind of extraction rung, determining execution order and confidence.
14
+ */
15
+ export type RungKind = "declared" | "observed" | "inferred";
16
+ /**
17
+ * Confidence level assigned by the ladder based on rung kind.
18
+ */
19
+ export type LadderConfidence = "high" | "low";
20
+ /**
21
+ * A single extraction rung definition.
22
+ */
23
+ export interface Rung<T> {
24
+ /** The rung classification */
25
+ kind: RungKind;
26
+ /** Human-readable name for diagnostics */
27
+ name: string;
28
+ /** Execute the rung — returns result + diagnostics, or null for unavailable */
29
+ execute: () => RungOutput<T>;
30
+ }
31
+ /**
32
+ * Output from a single rung execution.
33
+ */
34
+ export interface RungOutput<T> {
35
+ /** The extraction result, or null if the rung is unavailable */
36
+ result: T | null;
37
+ /** Diagnostic messages from this rung (always collected) */
38
+ diagnostics: string[];
39
+ }
40
+ /**
41
+ * Provenance metadata for the winning rung.
42
+ */
43
+ export interface RungProvenance {
44
+ /** Which rung kind produced the result */
45
+ rung: RungKind;
46
+ /** Name of the winning rung */
47
+ name: string;
48
+ }
49
+ /**
50
+ * The complete result from running the ladder.
51
+ */
52
+ export interface LadderResult<T> {
53
+ /** The extraction result from the winning rung, or null if all failed */
54
+ result: T | null;
55
+ /** Which rung kind won (null if no rung produced a result) */
56
+ winningRung: RungKind | null;
57
+ /** Confidence level determined by the ladder policy */
58
+ confidence: LadderConfidence;
59
+ /** Provenance metadata for the winning rung */
60
+ provenance: RungProvenance | null;
61
+ /** Collected diagnostics from all attempted rungs */
62
+ diagnostics: string[];
63
+ }
64
+ /**
65
+ * Confidence policy: maps rung kind to confidence level.
66
+ * Inferred is always capped at "low" regardless of what the rung claims.
67
+ */
68
+ export declare function getConfidenceForRung(kind: RungKind): LadderConfidence;
69
+ /**
70
+ * Run the extraction ladder.
71
+ *
72
+ * Executes rungs in array order (caller should provide them as
73
+ * declared → observed → inferred). Stops at the first rung that
74
+ * produces a non-null result. Collects diagnostics from all attempted rungs.
75
+ *
76
+ * Confidence is determined by the ladder policy, not the rung output.
77
+ */
78
+ export declare function runLadder<T>(rungs: Rung<T>[]): LadderResult<T>;
79
+ //# sourceMappingURL=ladder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ladder.d.ts","sourceRoot":"","sources":["../../../core/extract/ladder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,8BAA8B;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,OAAO,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,gEAAgE;IAChE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,IAAI,EAAE,QAAQ,CAAC;IACf,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,yEAAyE;IACzE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,8DAA8D;IAC9D,WAAW,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC7B,uDAAuD;IACvD,UAAU,EAAE,gBAAgB,CAAC;IAC7B,+CAA+C;IAC/C,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,qDAAqD;IACrD,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,GAAG,gBAAgB,CASrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC,CAqC9D"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Extraction ladder runner.
3
+ *
4
+ * Runs extraction rungs in order (declared → observed → inferred) and returns
5
+ * the first usable result with provenance metadata and confidence policy.
6
+ *
7
+ * Confidence policy (enforced, not convention):
8
+ * - declared → high
9
+ * - observed → high
10
+ * - inferred → low (capped — an inferred rung MUST NOT emit medium or high)
11
+ */
12
+ /**
13
+ * Confidence policy: maps rung kind to confidence level.
14
+ * Inferred is always capped at "low" regardless of what the rung claims.
15
+ */
16
+ export function getConfidenceForRung(kind) {
17
+ switch (kind) {
18
+ case "declared":
19
+ return "high";
20
+ case "observed":
21
+ return "high";
22
+ case "inferred":
23
+ return "low";
24
+ }
25
+ }
26
+ /**
27
+ * Run the extraction ladder.
28
+ *
29
+ * Executes rungs in array order (caller should provide them as
30
+ * declared → observed → inferred). Stops at the first rung that
31
+ * produces a non-null result. Collects diagnostics from all attempted rungs.
32
+ *
33
+ * Confidence is determined by the ladder policy, not the rung output.
34
+ */
35
+ export function runLadder(rungs) {
36
+ const allDiagnostics = [];
37
+ for (const rung of rungs) {
38
+ let output;
39
+ try {
40
+ output = rung.execute();
41
+ }
42
+ catch (err) {
43
+ // Rung threw — treat as unavailable with a diagnostic
44
+ const message = err instanceof Error ? err.message : String(err);
45
+ allDiagnostics.push(`${rung.name} failed: ${message}`);
46
+ continue;
47
+ }
48
+ // Collect diagnostics from this rung regardless of result
49
+ allDiagnostics.push(...output.diagnostics);
50
+ if (output.result !== null) {
51
+ // Winner found — apply confidence policy and return
52
+ return {
53
+ result: output.result,
54
+ winningRung: rung.kind,
55
+ confidence: getConfidenceForRung(rung.kind),
56
+ provenance: { rung: rung.kind, name: rung.name },
57
+ diagnostics: allDiagnostics,
58
+ };
59
+ }
60
+ }
61
+ // All rungs failed
62
+ return {
63
+ result: null,
64
+ winningRung: null,
65
+ confidence: "low",
66
+ provenance: null,
67
+ diagnostics: allDiagnostics,
68
+ };
69
+ }
70
+ //# sourceMappingURL=ladder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ladder.js","sourceRoot":"","sources":["../../../core/extract/ladder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA4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,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,cAAc;KAC5B,CAAC;AACJ,CAAC"}
@@ -1,13 +1,43 @@
1
1
  /**
2
- * OpenAPI extraction module barrel export.
2
+ * OpenAPI extraction module barrel export and ladder orchestrator.
3
3
  */
4
4
  export type { ExtractedEndpoint, OpenApiConfidence, OpenApiDocument, OpenApiExtractionResult, OpenApiSource, RequestBodySchema, ResponseSchema, RouteParam, UnresolvedRoute, } from "./types.js";
5
5
  export { extractRoute1, detectOnDiskSpec, normalizeSpec, Route1Error } from "./route1.js";
6
6
  export { extractRoute3, composePath, extractPathParams } from "./route3.js";
7
- export { extractRoute2 } from "./route2.js";
8
- export type { Route2Config, Route2Extractor } from "./route2.js";
7
+ export { extractRoute2, extractRoute2Express } from "./route2.js";
8
+ export type { Route2Config, Route2Extractor, Route2Options } from "./route2.js";
9
9
  export { validateOpenApi, extractionResultToDocument } from "./validate.js";
10
10
  export type { ValidationResult, ValidationError } from "./validate.js";
11
- export { applyLlmDescriptions } from "./llm-descriptions.js";
12
- export type { OpenApiLlmProvider } from "./llm-descriptions.js";
11
+ import { type LadderResult } from "../ladder.js";
12
+ import type { OpenApiExtractionResult } from "./types.js";
13
+ /**
14
+ * Options for the OpenAPI ladder extraction.
15
+ */
16
+ export interface OpenApiLadderOptions {
17
+ /** Root directory of the project */
18
+ rootDir: string;
19
+ /** Override entry point for route2 boot */
20
+ entry?: string;
21
+ /** Skip the observed (boot) rung */
22
+ noBoot?: boolean;
23
+ /** Timeout for boot in ms (default: 10000) */
24
+ bootTimeout?: number;
25
+ }
26
+ /**
27
+ * Result from the OpenAPI ladder extraction.
28
+ */
29
+ export interface OpenApiLadderResult {
30
+ /** The extraction result (null if all rungs failed) */
31
+ extraction: OpenApiExtractionResult | null;
32
+ /** Ladder metadata */
33
+ ladder: LadderResult<OpenApiExtractionResult>;
34
+ }
35
+ /**
36
+ * Run the OpenAPI extraction ladder: declared → observed → inferred.
37
+ *
38
+ * 1. Declared (route1): Look for on-disk OpenAPI spec
39
+ * 2. Observed (route2): Boot the app and introspect the router
40
+ * 3. Inferred (route3): AST analysis (always low confidence)
41
+ */
42
+ export declare function extractOpenApiLadder(options: OpenApiLadderOptions): Promise<OpenApiLadderResult>;
13
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIvE,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAK1D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,UAAU,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC3C,sBAAsB;IACtB,MAAM,EAAE,YAAY,CAAC,uBAAuB,CAAC,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,mBAAmB,CAAC,CAgI9B"}
@@ -1,9 +1,142 @@
1
1
  /**
2
- * OpenAPI extraction module barrel export.
2
+ * OpenAPI extraction module barrel export and ladder orchestrator.
3
3
  */
4
4
  export { extractRoute1, detectOnDiskSpec, normalizeSpec, Route1Error } from "./route1.js";
5
5
  export { extractRoute3, composePath, extractPathParams } from "./route3.js";
6
- export { extractRoute2 } from "./route2.js";
6
+ export { extractRoute2, extractRoute2Express } from "./route2.js";
7
7
  export { validateOpenApi, extractionResultToDocument } from "./validate.js";
8
- export { applyLlmDescriptions } from "./llm-descriptions.js";
8
+ import { extractRoute1 } from "./route1.js";
9
+ import { extractRoute2Express } from "./route2.js";
10
+ import { extractRoute3 } from "./route3.js";
11
+ /**
12
+ * Run the OpenAPI extraction ladder: declared → observed → inferred.
13
+ *
14
+ * 1. Declared (route1): Look for on-disk OpenAPI spec
15
+ * 2. Observed (route2): Boot the app and introspect the router
16
+ * 3. Inferred (route3): AST analysis (always low confidence)
17
+ */
18
+ export async function extractOpenApiLadder(options) {
19
+ const { rootDir, entry, noBoot, bootTimeout } = options;
20
+ const rungs = [
21
+ // Rung 1: Declared — on-disk spec
22
+ {
23
+ kind: "declared",
24
+ name: "route1-on-disk-spec",
25
+ execute: () => {
26
+ try {
27
+ const result = extractRoute1(rootDir);
28
+ return { result, diagnostics: result ? [] : ["No on-disk OpenAPI spec found"] };
29
+ }
30
+ catch (err) {
31
+ return {
32
+ result: null,
33
+ diagnostics: [`route1 failed: ${err instanceof Error ? err.message : String(err)}`],
34
+ };
35
+ }
36
+ },
37
+ },
38
+ ];
39
+ // Rung 2: Observed — boot + introspect (skip if --no-boot)
40
+ if (!noBoot) {
41
+ rungs.push({
42
+ kind: "observed",
43
+ name: "route2-boot-introspect",
44
+ execute: () => {
45
+ // Route2 is async but ladder is sync — we need a sync wrapper.
46
+ // This is handled by running the ladder async below.
47
+ // Placeholder — will be replaced in async execution.
48
+ return { result: null, diagnostics: ["route2 requires async execution"] };
49
+ },
50
+ });
51
+ }
52
+ // Rung 3: Inferred — AST analysis (always low confidence)
53
+ rungs.push({
54
+ kind: "inferred",
55
+ name: "route3-ast-inference",
56
+ execute: () => {
57
+ try {
58
+ const result = extractRoute3(rootDir);
59
+ if (result.endpoints.length === 0) {
60
+ return { result: null, diagnostics: ["route3 found no endpoints"] };
61
+ }
62
+ // Force confidence: low on all endpoints (ladder policy enforces this)
63
+ const lowConfResult = {
64
+ ...result,
65
+ confidence: "low",
66
+ endpoints: result.endpoints.map((e) => ({ ...e, confidence: "low" })),
67
+ };
68
+ return { result: lowConfResult, diagnostics: [] };
69
+ }
70
+ catch (err) {
71
+ return {
72
+ result: null,
73
+ diagnostics: [`route3 failed: ${err instanceof Error ? err.message : String(err)}`],
74
+ };
75
+ }
76
+ },
77
+ });
78
+ // Since route2 is async, we run a custom ladder that handles it.
79
+ // First try route1 (sync)
80
+ const route1Result = rungs[0].execute();
81
+ if (route1Result.result) {
82
+ const ladderResult = {
83
+ result: route1Result.result,
84
+ winningRung: "declared",
85
+ confidence: "high",
86
+ provenance: { rung: "declared", name: "route1-on-disk-spec" },
87
+ diagnostics: route1Result.diagnostics,
88
+ };
89
+ return { extraction: route1Result.result, ladder: ladderResult };
90
+ }
91
+ // Try route2 (async) if not skipped
92
+ const allDiagnostics = [...route1Result.diagnostics];
93
+ if (!noBoot) {
94
+ try {
95
+ const route2Result = await extractRoute2Express(rootDir, {
96
+ entry,
97
+ timeout: bootTimeout,
98
+ });
99
+ if (route2Result && route2Result.endpoints.length > 0) {
100
+ const ladderResult = {
101
+ result: route2Result,
102
+ winningRung: "observed",
103
+ confidence: "high",
104
+ provenance: { rung: "observed", name: "route2-boot-introspect" },
105
+ diagnostics: allDiagnostics,
106
+ };
107
+ return { extraction: route2Result, ladder: ladderResult };
108
+ }
109
+ allDiagnostics.push("route2 returned no endpoints or null");
110
+ }
111
+ catch (err) {
112
+ allDiagnostics.push(`route2 failed: ${err instanceof Error ? err.message : String(err)}`);
113
+ }
114
+ }
115
+ else {
116
+ allDiagnostics.push("route2 skipped (--no-boot)");
117
+ }
118
+ // Try route3 (sync) — inferred, always low confidence
119
+ const route3Rung = rungs[rungs.length - 1];
120
+ const route3Result = route3Rung.execute();
121
+ allDiagnostics.push(...route3Result.diagnostics);
122
+ if (route3Result.result) {
123
+ const ladderResult = {
124
+ result: route3Result.result,
125
+ winningRung: "inferred",
126
+ confidence: "low",
127
+ provenance: { rung: "inferred", name: "route3-ast-inference" },
128
+ diagnostics: allDiagnostics,
129
+ };
130
+ return { extraction: route3Result.result, ladder: ladderResult };
131
+ }
132
+ // All failed
133
+ const ladderResult = {
134
+ result: null,
135
+ winningRung: null,
136
+ confidence: "low",
137
+ provenance: null,
138
+ diagnostics: allDiagnostics,
139
+ };
140
+ return { extraction: null, ladder: ladderResult };
141
+ }
9
142
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/extract/openapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAcH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/extract/openapi/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAcH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAO5E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,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CAAC,OAAO,EAAE,CAAC;IAC1C,cAAc,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;IAEjD,IAAI,YAAY,CAAC,MAAM,EAAE,CAAC;QACxB,MAAM,YAAY,GAA0C;YAC1D,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,WAAW,EAAE,UAAU;YACvB,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAC9D,WAAW,EAAE,cAAc;SAC5B,CAAC;QACF,OAAO,EAAE,UAAU,EAAE,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;IACnE,CAAC;IAED,aAAa;IACb,MAAM,YAAY,GAA0C;QAC1D,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,cAAc;KAC5B,CAAC;IACF,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AACpD,CAAC"}
@@ -0,0 +1,18 @@
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
+ export {};
18
+ //# sourceMappingURL=route2-introspect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route2-introspect.d.ts","sourceRoot":"","sources":["../../../../core/extract/openapi/route2-introspect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"}