@redocly/openapi-core 0.0.0-snapshot.1787659732 → 0.0.0-snapshot.1787819613

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 (103) hide show
  1. package/lib/bundle/bundle.d.ts +1 -1
  2. package/lib/config/all.d.ts.map +1 -1
  3. package/lib/config/all.js +3 -0
  4. package/lib/config/all.js.map +1 -1
  5. package/lib/config/minimal.d.ts.map +1 -1
  6. package/lib/config/minimal.js +3 -0
  7. package/lib/config/minimal.js.map +1 -1
  8. package/lib/config/plugins-cache.js +9 -1
  9. package/lib/config/plugins-cache.js.map +1 -1
  10. package/lib/config/recommended-strict.d.ts.map +1 -1
  11. package/lib/config/recommended-strict.js +3 -0
  12. package/lib/config/recommended-strict.js.map +1 -1
  13. package/lib/config/recommended.d.ts.map +1 -1
  14. package/lib/config/recommended.js +3 -0
  15. package/lib/config/recommended.js.map +1 -1
  16. package/lib/config/spec.d.ts.map +1 -1
  17. package/lib/config/spec.js +3 -0
  18. package/lib/config/spec.js.map +1 -1
  19. package/lib/format/codeframes.d.ts +0 -5
  20. package/lib/format/codeframes.d.ts.map +1 -1
  21. package/lib/format/codeframes.js +19 -74
  22. package/lib/format/codeframes.js.map +1 -1
  23. package/lib/index.d.ts +0 -11
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +0 -9
  26. package/lib/index.js.map +1 -1
  27. package/lib/resolve.d.ts +0 -6
  28. package/lib/resolve.d.ts.map +1 -1
  29. package/lib/resolve.js +0 -30
  30. package/lib/resolve.js.map +1 -1
  31. package/lib/rules/oas3/index.d.ts.map +1 -1
  32. package/lib/rules/oas3/index.js +2 -0
  33. package/lib/rules/oas3/index.js.map +1 -1
  34. package/lib/rules/oas3/no-illogical-composition-keywords.d.ts +3 -0
  35. package/lib/rules/oas3/no-illogical-composition-keywords.d.ts.map +1 -0
  36. package/lib/rules/oas3/no-illogical-composition-keywords.js +358 -0
  37. package/lib/rules/oas3/no-illogical-composition-keywords.js.map +1 -0
  38. package/lib/types/index.d.ts +2 -1
  39. package/lib/types/index.d.ts.map +1 -1
  40. package/lib/types/index.js.map +1 -1
  41. package/lib/types/oas2.d.ts +6 -6
  42. package/lib/types/oas3.d.ts +27 -6
  43. package/lib/types/oas3.d.ts.map +1 -1
  44. package/lib/types/oas3.js +10 -9
  45. package/lib/types/oas3.js.map +1 -1
  46. package/lib/types/oas3_1.d.ts +27 -6
  47. package/lib/types/oas3_1.d.ts.map +1 -1
  48. package/lib/types/oas3_1.js +3 -3
  49. package/lib/types/oas3_1.js.map +1 -1
  50. package/lib/types/oas3_2.d.ts +27 -6
  51. package/lib/types/oas3_2.d.ts.map +1 -1
  52. package/lib/types/openrpc.d.ts +8 -8
  53. package/lib/types/redocly-yaml.d.ts +1 -1
  54. package/lib/types/redocly-yaml.d.ts.map +1 -1
  55. package/lib/types/redocly-yaml.js +15 -1
  56. package/lib/types/redocly-yaml.js.map +1 -1
  57. package/lib/visitors.d.ts +3 -0
  58. package/lib/visitors.d.ts.map +1 -1
  59. package/lib/visitors.js.map +1 -1
  60. package/lib/walk.d.ts.map +1 -1
  61. package/lib/walk.js +6 -0
  62. package/lib/walk.js.map +1 -1
  63. package/package.json +1 -1
  64. package/lib/api-graph/build-graph.d.ts +0 -89
  65. package/lib/api-graph/build-graph.d.ts.map +0 -1
  66. package/lib/api-graph/build-graph.js +0 -451
  67. package/lib/api-graph/build-graph.js.map +0 -1
  68. package/lib/api-graph/build-index.d.ts +0 -39
  69. package/lib/api-graph/build-index.d.ts.map +0 -1
  70. package/lib/api-graph/build-index.js +0 -191
  71. package/lib/api-graph/build-index.js.map +0 -1
  72. package/lib/api-graph/file-view.d.ts +0 -27
  73. package/lib/api-graph/file-view.d.ts.map +0 -1
  74. package/lib/api-graph/file-view.js +0 -51
  75. package/lib/api-graph/file-view.js.map +0 -1
  76. package/lib/api-graph/find.d.ts +0 -20
  77. package/lib/api-graph/find.d.ts.map +0 -1
  78. package/lib/api-graph/find.js +0 -75
  79. package/lib/api-graph/find.js.map +0 -1
  80. package/lib/api-graph/node-id.d.ts +0 -28
  81. package/lib/api-graph/node-id.d.ts.map +0 -1
  82. package/lib/api-graph/node-id.js +0 -100
  83. package/lib/api-graph/node-id.js.map +0 -1
  84. package/lib/api-graph/pointer.d.ts +0 -86
  85. package/lib/api-graph/pointer.d.ts.map +0 -1
  86. package/lib/api-graph/pointer.js +0 -213
  87. package/lib/api-graph/pointer.js.map +0 -1
  88. package/lib/api-graph/select.d.ts +0 -15
  89. package/lib/api-graph/select.d.ts.map +0 -1
  90. package/lib/api-graph/select.js +0 -71
  91. package/lib/api-graph/select.js.map +0 -1
  92. package/lib/api-graph/slice.d.ts +0 -54
  93. package/lib/api-graph/slice.d.ts.map +0 -1
  94. package/lib/api-graph/slice.js +0 -211
  95. package/lib/api-graph/slice.js.map +0 -1
  96. package/lib/api-graph/types.d.ts +0 -26
  97. package/lib/api-graph/types.d.ts.map +0 -1
  98. package/lib/api-graph/types.js +0 -2
  99. package/lib/api-graph/types.js.map +0 -1
  100. package/lib/api-graph/views.d.ts +0 -146
  101. package/lib/api-graph/views.d.ts.map +0 -1
  102. package/lib/api-graph/views.js +0 -370
  103. package/lib/api-graph/views.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api-graph/types.ts"],"names":[],"mappings":""}
@@ -1,146 +0,0 @@
1
- import type { SpecVersion } from '../oas-types.js';
2
- import { type ApiAnalysis, type CollectedComponent, type CollectedOperation, type CollectedSecurityScheme } from './build-graph.js';
3
- import { type ApiNodeEnvelope, type ApiNodeRef } from './slice.js';
4
- export type FileRange = {
5
- pointer: string;
6
- file: string;
7
- start_line: number;
8
- end_line: number;
9
- };
10
- /** What protects a selection: the alternatives it accepts, and what each named scheme asks for. */
11
- export type SecurityView = {
12
- requirements: Record<string, string[]>[];
13
- schemes: CollectedSecurityScheme[];
14
- };
15
- export type ApiOverview = {
16
- docName: string;
17
- spec: SpecVersion;
18
- docDescription?: string;
19
- overview?: Partial<FileRange> & {
20
- summary?: string;
21
- };
22
- servers?: Partial<FileRange> & {
23
- urls: string[];
24
- };
25
- security?: SecurityView;
26
- tags: {
27
- name: string;
28
- summary?: string;
29
- operations: number;
30
- }[];
31
- operations: number;
32
- webhooks: {
33
- name: string;
34
- operations: number;
35
- }[];
36
- components: {
37
- section: string;
38
- count: number;
39
- }[];
40
- };
41
- export type OperationListItem = {
42
- method: string;
43
- path?: string;
44
- webhook?: string;
45
- operationId?: string;
46
- deprecated?: boolean;
47
- summary?: string;
48
- tags: string[];
49
- } & FileRange;
50
- export type ComponentListItem = {
51
- name: string;
52
- summary?: string;
53
- } & FileRange;
54
- export declare function buildOverview(analysis: ApiAnalysis, options: {
55
- specVersion: SpecVersion;
56
- cwd: string;
57
- }): ApiOverview;
58
- export declare function toOperationListItem(operation: CollectedOperation, cwd: string): OperationListItem;
59
- export type TypedRef = ApiNodeRef & {
60
- component?: string;
61
- name?: string;
62
- };
63
- export type UsedByEntry = {
64
- id: string;
65
- component?: string;
66
- name?: string;
67
- method?: string;
68
- path?: string;
69
- webhook?: string;
70
- operationId?: string;
71
- } & Partial<FileRange>;
72
- export type OperationCard = OperationListItem & {
73
- description?: string;
74
- /** The operation's own requirement, or the root one it inherits when it has none. */
75
- security?: SecurityView;
76
- refs: TypedRef[];
77
- usedBy: UsedByEntry[];
78
- content?: string;
79
- deps?: ApiNodeEnvelope[];
80
- truncated?: boolean;
81
- };
82
- export type ComponentCard = {
83
- component: string;
84
- name: string;
85
- summary?: string;
86
- refs: TypedRef[];
87
- usedBy: UsedByEntry[];
88
- content?: string;
89
- deps?: ApiNodeEnvelope[];
90
- truncated?: boolean;
91
- } & FileRange;
92
- /** Card-shaped listing entry: everything a card carries except its retrieval-only fields. */
93
- export type OperationListCard = Omit<OperationCard, 'content' | 'deps' | 'truncated'>;
94
- /** Card-shaped listing entry: everything a card carries except its retrieval-only fields. */
95
- export type ComponentListCard = Omit<ComponentCard, 'content' | 'deps' | 'truncated'>;
96
- /**
97
- * Resolves a ref to the component section/name it targets, when it targets a named component at
98
- * all. Exported for the CLI's `ai` tree format, which needs the same classification to name a
99
- * `$ref` inside a dependency's own signature and to bucket the dependency closure by BFS depth.
100
- */
101
- export declare function classifyRef(ref: ApiNodeRef): TypedRef;
102
- export declare function buildUsedBy(analysis: ApiAnalysis, nodeId: string, cwd: string): UsedByEntry[];
103
- export declare function buildOperationListCard(analysis: ApiAnalysis, operation: CollectedOperation, cwd: string): OperationListCard;
104
- /** The card fields shared by a full card and its list-card counterpart, with no retrieval. */
105
- export declare function buildComponentListCard(analysis: ApiAnalysis, component: CollectedComponent, cwd: string): ComponentListCard;
106
- export declare function buildOperationListing(analysis: ApiAnalysis, options: {
107
- cwd: string;
108
- tag?: string;
109
- path?: string;
110
- webhook?: string;
111
- allWebhooks?: boolean;
112
- }): OperationListCard[];
113
- export declare function buildComponentListing(analysis: ApiAnalysis, options: {
114
- cwd: string;
115
- section: string;
116
- }): ComponentListCard[];
117
- export declare function buildOperationCard(analysis: ApiAnalysis, operation: CollectedOperation, options: {
118
- specVersion: SpecVersion;
119
- cwd: string;
120
- withDeps?: boolean;
121
- withContent?: boolean;
122
- }): OperationCard;
123
- export declare function buildComponentCard(analysis: ApiAnalysis, component: CollectedComponent, options: {
124
- specVersion: SpecVersion;
125
- cwd: string;
126
- withDeps?: boolean;
127
- withContent?: boolean;
128
- }): ComponentCard;
129
- export type UsedByReport = {
130
- target: UsedByEntry;
131
- affectedOperations: (UsedByEntry & {
132
- via: string[];
133
- })[];
134
- affectedComponents: (UsedByEntry & {
135
- via: string[];
136
- })[];
137
- };
138
- /**
139
- * Classifies each reverse-reference chain into an affected operation or component and assembles
140
- * the report. Shared by `buildUsedByReport` (single-node target) and `buildFileUsedByReport`
141
- * (file target, seeded from several nodes and pre-merged), which pass different chain sources
142
- * and, for the file case, exclude referrers that live in the target file itself.
143
- */
144
- export declare function buildUsedByReportFromChains(analysis: ApiAnalysis, target: UsedByEntry, chains: Map<string, string[]>, cwd: string, excludeIds?: ReadonlySet<string>): UsedByReport;
145
- export declare function buildUsedByReport(analysis: ApiAnalysis, targetId: string, cwd: string): UsedByReport;
146
- //# sourceMappingURL=views.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/api-graph/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAGL,KAAK,WAAW,EAEhB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,UAAU,EAEhB,MAAM,YAAY,CAAC;AAGpB,MAAM,MAAM,SAAS,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhG,mGAAmG;AACnG,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACzC,OAAO,EAAE,uBAAuB,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAClD,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,IAAI,EAAE;QAAE,IAAI,EAAE,MA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C,EAAE,OAAO,CAAA;CAAE,GAC5F,aAAa,CAoBf;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,kBAAkB,EAAE,CAAC,WAAW,GAAG;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,EAAE,CAAC;IACxD,kBAAkB,EAAE,CAAC,WAAW,GAAG;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,EAAE,CAAC;CACzD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAC7B,GAAG,EAAE,MAAM,EACX,UAAU,GAAE,WAAW,CAAC,MAAM,CAAa,GAC1C,YAAY,CAgCd;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,GACV,YAAY,CAGd"}
@@ -1,370 +0,0 @@
1
- import { collectReversePathsTo, graphNodeIdFor, } from './build-graph.js';
2
- import { COMPONENT_SECTIONS, buildApiIndex, toFileRange, toRelativePath, truncateSummary, } from './build-index.js';
3
- import { listOperations } from './select.js';
4
- import { appendDepsClosure, buildNodeEnvelope, collectNodeRefs, } from './slice.js';
5
- const UNTAGGED = 'untagged';
6
- export function buildOverview(analysis, options) {
7
- const { meta, rootDocument } = analysis;
8
- const { specVersion, cwd } = options;
9
- const tagCounts = new Map();
10
- for (const operation of meta.operations) {
11
- if (operation.isWebhook)
12
- continue;
13
- const tagNames = operation.tags.length > 0 ? operation.tags : [UNTAGGED];
14
- for (const tagName of new Set(tagNames)) {
15
- tagCounts.set(tagName, (tagCounts.get(tagName) ?? 0) + 1);
16
- }
17
- }
18
- const orderedTagNames = [
19
- ...meta.declaredTags.map((tag) => tag.name).filter((name) => tagCounts.has(name)),
20
- ...[...tagCounts.keys()].filter((name) => name !== UNTAGGED && !meta.declaredTags.some((tag) => tag.name === name)),
21
- ...(tagCounts.has(UNTAGGED) ? [UNTAGGED] : []),
22
- ];
23
- const componentCounts = new Map();
24
- for (const component of meta.components) {
25
- componentCounts.set(component.section, (componentCounts.get(component.section) ?? 0) + 1);
26
- }
27
- const orderedSections = [...componentCounts.keys()].sort((left, right) => COMPONENT_SECTIONS.indexOf(left) - COMPONENT_SECTIONS.indexOf(right));
28
- // Ordered by first appearance, like tags and components above: the order operations were
29
- // encountered while walking the document, not alphabetical.
30
- const webhookCounts = new Map();
31
- const webhookOrder = [];
32
- for (const operation of meta.operations) {
33
- if (!operation.isWebhook)
34
- continue;
35
- if (!webhookCounts.has(operation.containerKey))
36
- webhookOrder.push(operation.containerKey);
37
- webhookCounts.set(operation.containerKey, (webhookCounts.get(operation.containerKey) ?? 0) + 1);
38
- }
39
- const docDescription = meta.info
40
- ? truncateSummary([meta.info.title, meta.info.description].filter(Boolean).join(' — '))
41
- : undefined;
42
- return {
43
- docName: toRelativePath(rootDocument.source.absoluteRef, cwd),
44
- spec: specVersion,
45
- ...(docDescription ? { docDescription } : {}),
46
- ...(meta.info
47
- ? {
48
- overview: {
49
- ...toFileRange(meta.info.location, cwd),
50
- ...(truncateSummary(meta.info.description)
51
- ? { summary: truncateSummary(meta.info.description) }
52
- : {}),
53
- },
54
- }
55
- : {}),
56
- ...(meta.servers
57
- ? { servers: { ...toFileRange(meta.servers.location, cwd), urls: meta.servers.urls } }
58
- : {}),
59
- ...(() => {
60
- const security = toSecurityView(meta.security?.requirements, meta);
61
- return security ? { security } : {};
62
- })(),
63
- tags: orderedTagNames.map((name) => {
64
- const declared = meta.declaredTags.find((tag) => tag.name === name);
65
- const summary = truncateSummary(declared?.description);
66
- return { name, ...(summary ? { summary } : {}), operations: tagCounts.get(name) };
67
- }),
68
- // The true operation count: an operation with more than one tag is counted once here,
69
- // unlike the per-tag counts above, which each count it under every tag it has.
70
- operations: meta.operations.filter((operation) => !operation.isWebhook).length,
71
- webhooks: webhookOrder.map((name) => ({ name, operations: webhookCounts.get(name) })),
72
- components: orderedSections.map((section) => ({
73
- section,
74
- count: componentCounts.get(section),
75
- })),
76
- };
77
- }
78
- export function toOperationListItem(operation, cwd) {
79
- const summary = truncateSummary(operation.summary ?? operation.description);
80
- return {
81
- method: operation.method.toLowerCase(),
82
- ...(operation.isWebhook
83
- ? { webhook: operation.containerKey }
84
- : { path: operation.containerKey }),
85
- ...(operation.operationId ? { operationId: operation.operationId } : {}),
86
- ...(operation.deprecated ? { deprecated: true } : {}),
87
- ...(summary ? { summary } : {}),
88
- tags: operation.tags,
89
- ...toFileRange(operation.location, cwd),
90
- };
91
- }
92
- const COMPONENT_POINTER_PATTERN = /^#\/components\/([^/]+)\/([^/]+)$/;
93
- /**
94
- * Resolves a ref to the component section/name it targets, when it targets a named component at
95
- * all. Exported for the CLI's `ai` tree format, which needs the same classification to name a
96
- * `$ref` inside a dependency's own signature and to bucket the dependency closure by BFS depth.
97
- */
98
- export function classifyRef(ref) {
99
- if (!ref.resolved || ref.pointer === undefined)
100
- return { ...ref, component: 'unknown' };
101
- const componentMatch = ref.pointer.match(COMPONENT_POINTER_PATTERN);
102
- if (componentMatch && COMPONENT_SECTIONS.includes(componentMatch[1])) {
103
- const name = componentMatch[2].replace(/~1/g, '/').replace(/~0/g, '~');
104
- return { ...ref, component: componentMatch[1], name };
105
- }
106
- // A component split into its own file is referenced at the file root.
107
- if (ref.pointer === '#/' || ref.pointer === '#') {
108
- const fileMatch = ref.file?.match(/(?:^|\/)components\/([^/]+)\/([^/]+)\.(?:yaml|yml|json)$/);
109
- if (fileMatch && COMPONENT_SECTIONS.includes(fileMatch[1])) {
110
- return { ...ref, component: fileMatch[1], name: fileMatch[2] };
111
- }
112
- }
113
- return { ...ref, component: 'unknown' };
114
- }
115
- const viewsIndexCache = new WeakMap();
116
- function getViewsIndex(analysis) {
117
- const cached = viewsIndexCache.get(analysis);
118
- if (cached)
119
- return cached;
120
- const reverseEdges = new Map();
121
- for (const edge of analysis.graph.edges) {
122
- if (edge.refs.length === 0)
123
- continue;
124
- const incoming = reverseEdges.get(edge.to);
125
- if (incoming)
126
- incoming.push(edge);
127
- else
128
- reverseEdges.set(edge.to, [edge]);
129
- }
130
- // `.find`/`.filter` keep the first match on a duplicate id; mirror that with has()-guarded
131
- // sets so a hypothetical duplicate can't silently flip which entry wins.
132
- const operationsById = new Map();
133
- const webhookOperationsByContainerKey = new Map();
134
- for (const operation of analysis.meta.operations) {
135
- if (!operationsById.has(operation.id))
136
- operationsById.set(operation.id, operation);
137
- if (operation.isWebhook) {
138
- const group = webhookOperationsByContainerKey.get(operation.containerKey);
139
- if (group)
140
- group.push(operation);
141
- else
142
- webhookOperationsByContainerKey.set(operation.containerKey, [operation]);
143
- }
144
- }
145
- const componentsById = new Map();
146
- for (const component of analysis.meta.components) {
147
- const id = `${component.section}/${component.name}`;
148
- if (!componentsById.has(id))
149
- componentsById.set(id, component);
150
- }
151
- const nodesById = new Map();
152
- for (const node of analysis.graph.nodes) {
153
- nodesById.set(node.id, node);
154
- }
155
- const index = {
156
- reverseEdges,
157
- operationsById,
158
- componentsById,
159
- nodesById,
160
- webhookOperationsByContainerKey,
161
- };
162
- viewsIndexCache.set(analysis, index);
163
- return index;
164
- }
165
- export function buildUsedBy(analysis, nodeId, cwd) {
166
- const { reverseEdges } = getViewsIndex(analysis);
167
- const entries = (reverseEdges.get(nodeId) ?? []).map((edge) => toUsedByEntry(analysis, edge.from, cwd));
168
- return entries.sort((left, right) => left.id.localeCompare(right.id));
169
- }
170
- function toUsedByEntry(analysis, nodeId, cwd) {
171
- const index = getViewsIndex(analysis);
172
- const operation = index.operationsById.get(nodeId);
173
- if (operation) {
174
- return {
175
- id: nodeId,
176
- method: operation.method.toLowerCase(),
177
- ...(operation.isWebhook
178
- ? { webhook: operation.containerKey }
179
- : { path: operation.containerKey }),
180
- ...(operation.operationId ? { operationId: operation.operationId } : {}),
181
- ...toFileRange(operation.location, cwd),
182
- };
183
- }
184
- if (nodeId.startsWith('webhooks/')) {
185
- const webhookName = nodeId.slice('webhooks/'.length);
186
- // Every method under a webhook shares one container node (see mapRootPointer), so a ref
187
- // made from any of its operations is attributed to the container, not to one operation.
188
- // Any matching operation's pathItemLocation is the same location; the first is enough here.
189
- const containerOperation = index.webhookOperationsByContainerKey.get(webhookName)?.[0];
190
- if (containerOperation) {
191
- return {
192
- id: nodeId,
193
- webhook: webhookName,
194
- ...toFileRange(containerOperation.pathItemLocation, cwd),
195
- };
196
- }
197
- }
198
- const slashIndex = nodeId.indexOf('/');
199
- if (slashIndex > 0) {
200
- const section = nodeId.slice(0, slashIndex);
201
- const name = nodeId.slice(slashIndex + 1);
202
- const component = index.componentsById.get(nodeId);
203
- if (component) {
204
- return { id: nodeId, component: section, name, ...toFileRange(component.location, cwd) };
205
- }
206
- }
207
- const graphNode = index.nodesById.get(nodeId);
208
- return { id: nodeId, ...(graphNode?.file ? { file: graphNode.file } : {}) };
209
- }
210
- /** The card fields shared by a full card and its list-card counterpart, with no retrieval. */
211
- /**
212
- * Resolves a requirement list to the schemes it names, dropping any the description never
213
- * declares. An operation without its own requirement inherits the root one, which is the case
214
- * a caller cannot see from the operation's source alone.
215
- */
216
- function toSecurityView(requirements, meta) {
217
- if (requirements === undefined)
218
- return undefined;
219
- const named = new Set(requirements.flatMap((requirement) => Object.keys(requirement)));
220
- return {
221
- requirements,
222
- schemes: meta.securitySchemes.filter((scheme) => named.has(scheme.name)),
223
- };
224
- }
225
- export function buildOperationListCard(analysis, operation, cwd) {
226
- const range = toFileRange(operation.location, cwd);
227
- const description = truncateSummary(operation.description);
228
- return {
229
- ...toOperationListItem(operation, cwd),
230
- ...(description ? { description } : {}),
231
- ...(() => {
232
- const security = toSecurityView(operation.security ?? analysis.meta.security?.requirements, analysis.meta);
233
- return security ? { security } : {};
234
- })(),
235
- refs: collectNodeRefs({ file: range.file, pointer: range.pointer, analysis, cwd }).map(classifyRef),
236
- // A webhook operation has no graph node of its own (see graphNodeIdFor); reverse edges are
237
- // recorded against the shared container node instead of the operation's own display id.
238
- usedBy: buildUsedBy(analysis, graphNodeIdFor(operation), cwd),
239
- };
240
- }
241
- /** The card fields shared by a full card and its list-card counterpart, with no retrieval. */
242
- export function buildComponentListCard(analysis, component, cwd) {
243
- const componentId = `${component.section}/${component.name}`;
244
- const range = toFileRange(component.location, cwd);
245
- const summary = truncateSummary(component.description);
246
- return {
247
- component: component.section,
248
- name: component.name,
249
- ...(summary ? { summary } : {}),
250
- ...range,
251
- refs: collectNodeRefs({ file: range.file, pointer: range.pointer, analysis, cwd }).map(classifyRef),
252
- usedBy: buildUsedBy(analysis, componentId, cwd),
253
- };
254
- }
255
- export function buildOperationListing(analysis, options) {
256
- const { cwd, ...scope } = options;
257
- return listOperations(analysis.meta, scope).map((operation) => buildOperationListCard(analysis, operation, cwd));
258
- }
259
- export function buildComponentListing(analysis, options) {
260
- return analysis.meta.components
261
- .filter((component) => component.section === options.section)
262
- .map((component) => buildComponentListCard(analysis, component, options.cwd));
263
- }
264
- function locatedNodeFor(id, location, cwd) {
265
- return { id, title: id, ...toFileRange(location, cwd) };
266
- }
267
- function appendRetrieval(card, located, analysis, options) {
268
- const envelope = appendDepsClosure({
269
- envelope: buildNodeEnvelope({ indexNode: located, analysis, cwd: options.cwd }),
270
- indexNode: located,
271
- analysis,
272
- index: buildApiIndex(analysis, {
273
- specVersion: options.specVersion,
274
- cwd: options.cwd,
275
- groupBy: 'tags',
276
- }),
277
- cwd: options.cwd,
278
- });
279
- return {
280
- ...card,
281
- content: envelope.content,
282
- deps: envelope.deps,
283
- ...(envelope.truncated ? { truncated: true } : {}),
284
- };
285
- }
286
- export function buildOperationCard(analysis, operation, options) {
287
- const { cwd } = options;
288
- const card = buildOperationListCard(analysis, operation, cwd);
289
- // A webhook operation has no graph node of its own: every method under a webhook shares one
290
- // container node (`webhooks/<name>`, see graphNodeIdFor) that actually holds the $ref edges.
291
- // Seed the closure from that container while keeping the operation's own range for `content`.
292
- const depsSeedId = graphNodeIdFor(operation);
293
- if (!options.withDeps) {
294
- if (!options.withContent)
295
- return card;
296
- const envelope = buildNodeEnvelope({
297
- indexNode: locatedNodeFor(depsSeedId, operation.location, cwd),
298
- analysis,
299
- cwd,
300
- });
301
- return { ...card, content: envelope.content };
302
- }
303
- // The explicit type argument steers inference to OperationCard: `card` is typed as the
304
- // narrower OperationListCard (it has no content/deps/truncated keys at all), and those three
305
- // keys being optional on both sides trips TS's "no properties in common" weak-type check
306
- // if inference is left to pick OperationListCard instead.
307
- return appendRetrieval(card, locatedNodeFor(depsSeedId, operation.location, cwd), analysis, options);
308
- }
309
- export function buildComponentCard(analysis, component, options) {
310
- const { cwd } = options;
311
- const card = buildComponentListCard(analysis, component, cwd);
312
- const componentId = `${component.section}/${component.name}`;
313
- if (!options.withDeps) {
314
- if (!options.withContent)
315
- return card;
316
- const envelope = buildNodeEnvelope({
317
- indexNode: locatedNodeFor(componentId, component.location, cwd),
318
- analysis,
319
- cwd,
320
- });
321
- return { ...card, content: envelope.content };
322
- }
323
- // Same reasoning as buildOperationCard: steer inference to ComponentCard explicitly.
324
- return appendRetrieval(card, locatedNodeFor(componentId, component.location, cwd), analysis, options);
325
- }
326
- /**
327
- * Classifies each reverse-reference chain into an affected operation or component and assembles
328
- * the report. Shared by `buildUsedByReport` (single-node target) and `buildFileUsedByReport`
329
- * (file target, seeded from several nodes and pre-merged), which pass different chain sources
330
- * and, for the file case, exclude referrers that live in the target file itself.
331
- */
332
- export function buildUsedByReportFromChains(analysis, target, chains, cwd, excludeIds = new Set()) {
333
- const affectedOperations = [];
334
- const affectedComponents = [];
335
- const { webhookOperationsByContainerKey } = getViewsIndex(analysis);
336
- for (const [nodeId, via] of chains) {
337
- if (excludeIds.has(nodeId))
338
- continue;
339
- const entry = toUsedByEntry(analysis, nodeId, cwd);
340
- if (entry.method !== undefined) {
341
- affectedOperations.push({ ...entry, via });
342
- }
343
- else if (entry.webhook !== undefined) {
344
- // The container entry above covers every method under the webhook; expand it into one
345
- // entry per operation actually defined there, each with its own method.
346
- const webhookOperations = webhookOperationsByContainerKey.get(entry.webhook) ?? [];
347
- for (const webhookOperation of webhookOperations) {
348
- affectedOperations.push({
349
- ...entry,
350
- id: webhookOperation.id,
351
- method: webhookOperation.method.toLowerCase(),
352
- ...(webhookOperation.operationId ? { operationId: webhookOperation.operationId } : {}),
353
- via,
354
- });
355
- }
356
- }
357
- else if (entry.component !== undefined) {
358
- affectedComponents.push({ ...entry, via });
359
- }
360
- // Path spine, file, and root nodes are structural — the report lists actionable nodes only.
361
- }
362
- affectedOperations.sort((left, right) => left.id.localeCompare(right.id));
363
- affectedComponents.sort((left, right) => left.id.localeCompare(right.id));
364
- return { target, affectedOperations, affectedComponents };
365
- }
366
- export function buildUsedByReport(analysis, targetId, cwd) {
367
- const chains = collectReversePathsTo(targetId, analysis.graph.edges);
368
- return buildUsedByReportFromChains(analysis, toUsedByEntry(analysis, targetId, cwd), chains, cwd);
369
- }
370
- //# sourceMappingURL=views.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/api-graph/views.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,cAAc,GAMf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,cAAc,EACd,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAIhB,MAAM,YAAY,CAAC;AAoCpB,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,MAAM,UAAU,aAAa,CAC3B,QAAqB,EACrB,OAAkD;IAElD,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC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