@agent-teams/engineering-foundation 1.9.0 → 1.10.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 (194) hide show
  1. package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-native-tool-transition.d.ts +20 -0
  2. package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-native-tool-transition.d.ts.map +1 -0
  3. package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-native-tool-transition.js +60 -0
  4. package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-native-tool-transition.js.map +1 -0
  5. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.d.ts +9 -7
  6. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.d.ts.map +1 -1
  7. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.js +128 -76
  8. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.js.map +1 -1
  9. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.d.ts +5 -6
  10. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.d.ts.map +1 -1
  11. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.js +34 -10
  12. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.js.map +1 -1
  13. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts +1 -1
  14. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts.map +1 -1
  15. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js +48 -138
  16. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js.map +1 -1
  17. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.d.ts.map +1 -1
  18. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.js +248 -211
  19. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.js.map +1 -1
  20. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-engine.d.ts +35 -0
  21. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-engine.d.ts.map +1 -0
  22. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-engine.js +97 -0
  23. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-engine.js.map +1 -0
  24. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-excerpt.d.ts +42 -0
  25. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-excerpt.d.ts.map +1 -0
  26. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-excerpt.js +199 -0
  27. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-excerpt.js.map +1 -0
  28. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-inputs.d.ts +9 -0
  29. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-inputs.d.ts.map +1 -0
  30. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-inputs.js +197 -0
  31. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-inputs.js.map +1 -0
  32. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-item.d.ts +23 -0
  33. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-item.d.ts.map +1 -0
  34. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-item.js +103 -0
  35. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-item.js.map +1 -0
  36. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-model.d.ts +19 -0
  37. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-model.d.ts.map +1 -0
  38. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-model.js +250 -0
  39. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-model.js.map +1 -0
  40. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-reference.d.ts +21 -0
  41. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-reference.d.ts.map +1 -0
  42. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-reference.js +269 -0
  43. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/native-public-api-reference.js.map +1 -0
  44. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.js +3 -3
  45. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.js.map +1 -1
  46. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-tool-transition-content.d.ts +14 -0
  47. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-tool-transition-content.d.ts.map +1 -0
  48. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-tool-transition-content.js +40 -0
  49. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-tool-transition-content.js.map +1 -0
  50. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-transition-archive.d.ts +18 -0
  51. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-transition-archive.d.ts.map +1 -0
  52. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-transition-archive.js +152 -0
  53. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/native-transition-archive.js.map +1 -0
  54. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/observe-native-tool-transition.d.ts +24 -0
  55. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/observe-native-tool-transition.d.ts.map +1 -0
  56. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/observe-native-tool-transition.js +199 -0
  57. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/observe-native-tool-transition.js.map +1 -0
  58. package/dist/capabilities/public-api-compatibility/application/model/native-tool-transition.d.ts +76 -0
  59. package/dist/capabilities/public-api-compatibility/application/model/native-tool-transition.d.ts.map +1 -0
  60. package/dist/capabilities/public-api-compatibility/application/model/native-tool-transition.js +35 -0
  61. package/dist/capabilities/public-api-compatibility/application/model/native-tool-transition.js.map +1 -0
  62. package/dist/capabilities/public-api-compatibility/application/policies/validate-native-tool-transition.d.ts +7 -0
  63. package/dist/capabilities/public-api-compatibility/application/policies/validate-native-tool-transition.d.ts.map +1 -0
  64. package/dist/capabilities/public-api-compatibility/application/policies/validate-native-tool-transition.js +55 -0
  65. package/dist/capabilities/public-api-compatibility/application/policies/validate-native-tool-transition.js.map +1 -0
  66. package/dist/capabilities/public-api-compatibility/application/ports/native-tool-transition.d.ts +10 -0
  67. package/dist/capabilities/public-api-compatibility/application/ports/native-tool-transition.d.ts.map +1 -0
  68. package/dist/capabilities/public-api-compatibility/application/ports/native-tool-transition.js +2 -0
  69. package/dist/capabilities/public-api-compatibility/application/ports/native-tool-transition.js.map +1 -0
  70. package/dist/capabilities/public-api-compatibility/application/use-cases/prepare-native-tool-transition.d.ts +29 -0
  71. package/dist/capabilities/public-api-compatibility/application/use-cases/prepare-native-tool-transition.d.ts.map +1 -0
  72. package/dist/capabilities/public-api-compatibility/application/use-cases/prepare-native-tool-transition.js +124 -0
  73. package/dist/capabilities/public-api-compatibility/application/use-cases/prepare-native-tool-transition.js.map +1 -0
  74. package/dist/capabilities/public-api-compatibility/module.js +2 -2
  75. package/dist/capabilities/public-api-compatibility/module.js.map +1 -1
  76. package/dist/capabilities/public-api-compatibility/native-transition-module.d.ts +37 -0
  77. package/dist/capabilities/public-api-compatibility/native-transition-module.d.ts.map +1 -0
  78. package/dist/capabilities/public-api-compatibility/native-transition-module.js +44 -0
  79. package/dist/capabilities/public-api-compatibility/native-transition-module.js.map +1 -0
  80. package/dist/capabilities/public-api-compatibility/node.d.ts +2 -0
  81. package/dist/capabilities/public-api-compatibility/node.d.ts.map +1 -1
  82. package/dist/capabilities/public-api-compatibility/node.js +1 -0
  83. package/dist/capabilities/public-api-compatibility/node.js.map +1 -1
  84. package/dist/capabilities/public-api-compatibility/schemas.d.ts +1 -1
  85. package/dist/capabilities/public-api-compatibility/schemas.d.ts.map +1 -1
  86. package/dist/capabilities/public-api-compatibility/schemas.js +1 -0
  87. package/dist/capabilities/public-api-compatibility/schemas.js.map +1 -1
  88. package/dist/capabilities/quality-gate-runner/adapters/inbound/configuration/load-quality-gate-policy.d.ts +2 -2
  89. package/dist/capabilities/quality-gate-runner/adapters/inbound/configuration/load-quality-gate-policy.d.ts.map +1 -1
  90. package/dist/capabilities/quality-gate-runner/adapters/inbound/configuration/parse-quality-gate-policy.d.ts +2 -2
  91. package/dist/capabilities/quality-gate-runner/adapters/inbound/configuration/parse-quality-gate-policy.d.ts.map +1 -1
  92. package/dist/capabilities/quality-gate-runner/adapters/inbound/configuration/parse-quality-gate-policy.js.map +1 -1
  93. package/dist/capabilities/quality-gate-runner/application/model/quality-gate.d.ts +11 -3
  94. package/dist/capabilities/quality-gate-runner/application/model/quality-gate.d.ts.map +1 -1
  95. package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.d.ts +2 -2
  96. package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.d.ts.map +1 -1
  97. package/dist/capabilities/quality-gate-runner/application/policies/evaluate-quality-gate-scripts.js.map +1 -1
  98. package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.d.ts +2 -2
  99. package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.d.ts.map +1 -1
  100. package/dist/capabilities/quality-gate-runner/application/policies/validate-quality-gate-graph.js.map +1 -1
  101. package/dist/capabilities/quality-gate-runner/application/ports/quality-gate-policy-loader.d.ts +2 -2
  102. package/dist/capabilities/quality-gate-runner/application/ports/quality-gate-policy-loader.d.ts.map +1 -1
  103. package/dist/capabilities/quality-gate-runner/application/use-cases/analyze-quality-gate-runner.d.ts +2 -2
  104. package/dist/capabilities/quality-gate-runner/application/use-cases/analyze-quality-gate-runner.d.ts.map +1 -1
  105. package/dist/capabilities/quality-gate-runner/application/use-cases/create-quality-gate-command.d.ts.map +1 -1
  106. package/dist/capabilities/quality-gate-runner/application/use-cases/create-quality-gate-command.js +12 -1
  107. package/dist/capabilities/quality-gate-runner/application/use-cases/create-quality-gate-command.js.map +1 -1
  108. package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.d.ts +2 -2
  109. package/dist/capabilities/quality-gate-runner/application/use-cases/run-quality-gate-profile.d.ts.map +1 -1
  110. package/dist/capabilities/quality-gate-runner/composition/node-quality-gate-command.d.ts.map +1 -1
  111. package/dist/capabilities/quality-gate-runner/composition/node-quality-gate-command.js +4 -2
  112. package/dist/capabilities/quality-gate-runner/composition/node-quality-gate-command.js.map +1 -1
  113. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy.d.ts +1 -1
  114. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy.d.ts.map +1 -1
  115. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy.js +4 -1
  116. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy.js.map +1 -1
  117. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy.d.ts.map +1 -1
  118. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy.js +15 -1
  119. package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy.js.map +1 -1
  120. package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts.map +1 -1
  121. package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js +4 -2
  122. package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js.map +1 -1
  123. package/dist/capabilities/repository-agent-workflow/schemas.d.ts +1 -1
  124. package/dist/capabilities/repository-agent-workflow/schemas.d.ts.map +1 -1
  125. package/dist/capabilities/repository-agent-workflow/schemas.js +2 -1
  126. package/dist/capabilities/repository-agent-workflow/schemas.js.map +1 -1
  127. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.d.ts.map +1 -1
  128. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js +2 -6
  129. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js.map +1 -1
  130. package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.d.ts +1 -1
  131. package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.d.ts.map +1 -1
  132. package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.js +4 -1
  133. package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.js.map +1 -1
  134. package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/parse-capability-config.js.map +1 -1
  135. package/dist/capabilities/workspace-dependency-declarations/application/model/workspace-dependency-settings.d.ts +1 -1
  136. package/dist/capabilities/workspace-dependency-declarations/application/model/workspace-dependency-settings.d.ts.map +1 -1
  137. package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.d.ts +2 -1
  138. package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.d.ts.map +1 -1
  139. package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.js +10 -7
  140. package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.js.map +1 -1
  141. package/dist/capabilities/workspace-dependency-declarations/module.js +1 -1
  142. package/dist/capabilities/workspace-dependency-declarations/module.js.map +1 -1
  143. package/dist/capabilities/workspace-dependency-declarations/schemas.d.ts +1 -1
  144. package/dist/capabilities/workspace-dependency-declarations/schemas.d.ts.map +1 -1
  145. package/dist/capabilities/workspace-dependency-declarations/schemas.js +2 -1
  146. package/dist/capabilities/workspace-dependency-declarations/schemas.js.map +1 -1
  147. package/dist/features/command-host/adapters/inbound/cli/cli-arguments.d.ts.map +1 -1
  148. package/dist/features/command-host/adapters/inbound/cli/cli-arguments.js +18 -0
  149. package/dist/features/command-host/adapters/inbound/cli/cli-arguments.js.map +1 -1
  150. package/dist/features/command-host/adapters/inbound/cli/foundation-cli.d.ts.map +1 -1
  151. package/dist/features/command-host/adapters/inbound/cli/foundation-cli.js +9 -1
  152. package/dist/features/command-host/adapters/inbound/cli/foundation-cli.js.map +1 -1
  153. package/dist/features/command-host/application/command-invocation.d.ts +2 -0
  154. package/dist/features/command-host/application/command-invocation.d.ts.map +1 -1
  155. package/dist/features/command-host/application/command-invocation.js.map +1 -1
  156. package/dist/features/command-host/application/command-services.d.ts +4 -0
  157. package/dist/features/command-host/application/command-services.d.ts.map +1 -1
  158. package/dist/features/command-host/composition/node-command-host.d.ts +2 -2
  159. package/dist/features/command-host/composition/node-command-host.d.ts.map +1 -1
  160. package/dist/features/command-host/composition/node-command-host.js +8 -5
  161. package/dist/features/command-host/composition/node-command-host.js.map +1 -1
  162. package/dist/features/quality-coverage/adapters/consumer-observations.d.ts.map +1 -1
  163. package/dist/features/quality-coverage/adapters/consumer-observations.js +7 -2
  164. package/dist/features/quality-coverage/adapters/consumer-observations.js.map +1 -1
  165. package/dist/features/quality-coverage/api.d.ts +1 -1
  166. package/dist/features/quality-coverage/api.d.ts.map +1 -1
  167. package/dist/features/quality-coverage/api.js +1 -1
  168. package/dist/features/quality-coverage/api.js.map +1 -1
  169. package/dist/features/quality-coverage/application/script-route.d.ts.map +1 -1
  170. package/dist/features/quality-coverage/application/script-route.js +11 -7
  171. package/dist/features/quality-coverage/application/script-route.js.map +1 -1
  172. package/dist/process-execution/module.d.ts +1 -1
  173. package/dist/process-execution/module.d.ts.map +1 -1
  174. package/dist/process-execution/module.js +1 -1
  175. package/dist/process-execution/module.js.map +1 -1
  176. package/dist/process-execution/node-process-runner.d.ts.map +1 -1
  177. package/dist/process-execution/node-process-runner.js +19 -6
  178. package/dist/process-execution/node-process-runner.js.map +1 -1
  179. package/dist/schema-catalog.d.ts +1 -1
  180. package/dist/schema-catalog.d.ts.map +1 -1
  181. package/dist/schema-ids.d.ts +1 -1
  182. package/dist/schema-ids.d.ts.map +1 -1
  183. package/package.json +8 -4
  184. package/schemas/package-public-api-native-transition/v1.schema.json +173 -0
  185. package/schemas/repository-agent-workflow/v2.schema.json +94 -0
  186. package/schemas/workspace-dependency-declarations/v2.schema.json +83 -0
  187. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.d.ts +0 -101
  188. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.d.ts.map +0 -1
  189. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.js +0 -2
  190. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.js.map +0 -1
  191. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.d.ts +0 -15
  192. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.d.ts.map +0 -1
  193. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.js +0 -47
  194. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.js.map +0 -1
@@ -0,0 +1,20 @@
1
+ import type { PublicApiRepositoryEvidence } from '../../../application/ports/public-api-evidence.js';
2
+ import { type NativeMigrationReview } from '../../../application/model/native-tool-transition.js';
3
+ export type NativeTransitionSchemaAssertion = (id: 'package-public-api-native-transition/v1', value: unknown, phase: string) => Promise<void>;
4
+ /** Paths identify frozen content only. Registry/GitHub origin and protected
5
+ * release execution are authenticated by the consumer's existing operator. */
6
+ export declare function loadNativeTransitionRequest(consumerRoot: string, requestPath: string, assertSchema: NativeTransitionSchemaAssertion, evidence: PublicApiRepositoryEvidence): Promise<{
7
+ releasedRoot: string;
8
+ review: NativeMigrationReview;
9
+ packages: {
10
+ packageName: string;
11
+ baselineBytes: Uint8Array<ArrayBufferLike>;
12
+ archiveBytes: Uint8Array<ArrayBufferLike>;
13
+ configBytes: Uint8Array<ArrayBufferLike>;
14
+ }[];
15
+ configurationFiles: {
16
+ path: string;
17
+ bytes: Uint8Array<ArrayBufferLike>;
18
+ }[];
19
+ }>;
20
+ //# sourceMappingURL=load-native-tool-transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-native-tool-transition.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/inbound/configuration/load-native-tool-transition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAiC,KAAK,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AACjI,MAAM,MAAM,+BAA+B,GAAG,CAAC,EAAE,EAAE,yCAAyC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAc9I;8EAC8E;AAC9E,wBAAsB,2BAA2B,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,+BAA+B,EAAE,QAAQ,EAAE,2BAA2B;;;;;;;;;;;;;GA8BhL"}
@@ -0,0 +1,60 @@
1
+ import { lstat, realpath } from 'node:fs/promises';
2
+ import { dirname, isAbsolute, join, relative, resolve } from 'node:path';
3
+ import { nativeTransitionError as fail } from '../../../application/model/native-tool-transition.js';
4
+ function contained(root, path) {
5
+ const value = relative(root, path);
6
+ return value === '' || (!isAbsolute(value) && value !== '..' && !value.startsWith(`..${process.platform === 'win32' ? '\\' : '/'}`));
7
+ }
8
+ function filePath(path) {
9
+ if (path.includes('\\') || isAbsolute(path) || path.split('/').some(segment => segment === '' || segment === '.' || segment === '..')) {
10
+ fail('request input path must be a contained relative path');
11
+ }
12
+ return path;
13
+ }
14
+ /** Paths identify frozen content only. Registry/GitHub origin and protected
15
+ * release execution are authenticated by the consumer's existing operator. */
16
+ export async function loadNativeTransitionRequest(consumerRoot, requestPath, assertSchema, evidence) {
17
+ const source = resolve(requestPath);
18
+ const root = await realpath(dirname(source));
19
+ const bytes = await evidence.files.read({ root, candidate: source, maxBytes: 4 * 1024 * 1024 });
20
+ const text = Buffer.from(bytes).toString('utf8');
21
+ evidence.parseYaml(text, 'native-public-api-transition'); // Reject duplicate data keys through the existing strict reader.
22
+ const parsed = JSON.parse(text);
23
+ await assertSchema('package-public-api-native-transition/v1', parsed, 'native-public-api-transition');
24
+ const request = structuredClone(parsed);
25
+ const releasedRoot = join(root, filePath(request.releasedRoot));
26
+ if (!(await lstat(releasedRoot)).isDirectory() || await evidence.paths.traversesSymbolicLink(root, releasedRoot) || await realpath(releasedRoot) !== releasedRoot) {
27
+ fail('released namespace must be a contained ordinary directory');
28
+ }
29
+ const candidate = await realpath(consumerRoot);
30
+ if (contained(candidate, releasedRoot) || contained(releasedRoot, candidate)) {
31
+ fail('historical and candidate namespaces must not overlap');
32
+ }
33
+ let remainingBytes = 128 * 1024 * 1024;
34
+ const read = async (path, maxBytes) => {
35
+ const sourcePath = join(root, filePath(path));
36
+ if (contained(candidate, sourcePath)) {
37
+ fail('historical request content cannot come from the candidate namespace');
38
+ }
39
+ if (remainingBytes === 0) {
40
+ fail('historical request input byte budget exceeded');
41
+ }
42
+ const limit = Math.min(maxBytes, remainingBytes);
43
+ const input = await evidence.files.read({ root, candidate: sourcePath, maxBytes: limit });
44
+ if (input.byteLength > limit) {
45
+ fail('historical request input byte budget exceeded');
46
+ }
47
+ remainingBytes -= input.byteLength;
48
+ return input;
49
+ };
50
+ const packages = [];
51
+ for (const row of request.packages) {
52
+ packages.push({ packageName: row.packageName, baselineBytes: await read(row.baselineInputPath, 32 * 1024 * 1024), archiveBytes: await read(row.archivePath, 8 * 1024 * 1024), configBytes: await read(row.configPath, 32 * 1024 * 1024) });
53
+ }
54
+ const configurationFiles = [];
55
+ for (const row of request.configurationFiles) {
56
+ configurationFiles.push({ path: filePath(row.path), bytes: await read(row.inputPath, 32 * 1024 * 1024) });
57
+ }
58
+ return { releasedRoot, review: request.review, packages, configurationFiles };
59
+ }
60
+ //# sourceMappingURL=load-native-tool-transition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-native-tool-transition.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/inbound/configuration/load-native-tool-transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzE,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAA8B,MAAM,sDAAsD,CAAC;AAQjI,SAAS,SAAS,CAAC,IAAY,EAAE,IAAY;IAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAAC,OAAO,KAAK,KAAK,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAC1K,CAAC;AACD,SAAS,QAAQ,CAAC,IAAY;IAC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CAAC,UAAU,CAAC;QACnC,OAAO,KAAK,CAAC;IACd,CAAC,CAAC;IACF,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACpC,QAAQ,CAAC,IAAI,CAAC,EAAC,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,EAAC,CAAC,CAAC;IAC1O,CAAC;IACD,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAAC,kBAAkB,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,EAAC,CAAC,CAAC;IAAC,CAAC;IAC1J,OAAO,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAC,CAAC;AAC7E,CAAC"}
@@ -1,17 +1,19 @@
1
+ import { type Node } from "typescript/unstable/ast";
2
+ import type { Checker, Program, Project } from "typescript/unstable/async";
1
3
  import type { AuditDeclaration, AuditReference } from "../../../application/model/public-api-observation.js";
2
- import type { AuditDeclarationInput, AuditPackageInput } from "../../../contract/public-api-audit.js";
3
- import type { AuditCompilerProgram, PinnedAuditCompiler } from "./pinned-audit-compiler.js";
4
+ import type { AuditDeclarationInput } from "../../../contract/public-api-audit.js";
4
5
  interface BindingContext {
5
- readonly compiler: PinnedAuditCompiler;
6
- readonly program: AuditCompilerProgram;
6
+ readonly program: Program;
7
+ readonly checker: Checker;
8
+ readonly project: Project;
7
9
  readonly root: string;
8
10
  readonly declarations: AuditDeclarationInput;
9
11
  }
10
- /** Bind only occurrences inside the actual unique declaration, never observation-wide imports. */
12
+ /** Preserve native declaration identity and each actual module-binding occurrence. */
11
13
  export declare function bindAuditCompilerReferences(context: BindingContext & {
12
- readonly pkg: AuditPackageInput;
13
14
  readonly items: readonly AuditDeclaration[];
15
+ readonly declarationBindings: ReadonlyMap<string, Node>;
14
16
  readonly bindings: Map<AuditReference, string>;
15
- }): void;
17
+ }): Promise<void>;
16
18
  export {};
17
19
  //# sourceMappingURL=audit-compiler-bindings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit-compiler-bindings.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC7G,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,KAAK,EAAqB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE/G,UAAU,cAAc;IACtB,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;CAC9C;AAmFD,kGAAkG;AAClG,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc,GAAG;IACpE,QAAQ,CAAC,GAAG,EAAE,iBAAiB,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;CAChD,GAAG,IAAI,CA6BP"}
1
+ {"version":3,"file":"audit-compiler-bindings.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.ts"],"names":[],"mappings":"AACA,OAAO,EAEyG,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC3J,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC7G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAGnF,UAAU,cAAc;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;CAC9C;AA0GD,sFAAsF;AACtF,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,cAAc,GAAG;IAC1E,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;CAChD,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBhB"}
@@ -1,131 +1,183 @@
1
- import { dirname, relative, resolve, sep } from "node:path";
2
- function moduleBinding(node, context) {
3
- if (node.text === undefined || node.text.startsWith(".")) {
1
+ import { resolve } from "node:path";
2
+ import { isExternalModuleReference, isIdentifier, isImportClause, isImportDeclaration, isImportEqualsDeclaration, isImportSpecifier, isImportTypeNode, isLiteralTypeNode, isNamespaceImport, isQualifiedName, isPropertyAccessExpression, isExportDeclaration, isGetAccessorDeclaration, isSetAccessorDeclaration, isStringLiteralLikeNode, SyntaxKind } from "typescript/unstable/ast";
3
+ import { nativeChildren, nativeParent } from "./native-public-api-excerpt.js";
4
+ async function moduleBinding(node, context) {
5
+ if (!isStringLiteralLikeNode(node) || node.text.startsWith(".")) {
4
6
  return;
5
7
  }
6
8
  const entry = context.declarations.resolutionUniverse.find(candidate => `${candidate.packageName}${candidate.exportPath === "." ? "" : candidate.exportPath.slice(1)}` === node.text);
7
- const symbol = context.program.getTypeChecker().getSymbolAtLocation(node);
9
+ const symbol = await context.checker.getSymbolAtLocation(node);
8
10
  if (symbol === undefined) {
9
11
  return;
10
12
  } // Independent diagnostics retain unresolved imports.
11
- if (entry === undefined || symbol.declarations?.length !== 1 ||
12
- resolve(symbol.declarations[0].getSourceFile().fileName) !== resolve(context.root, entry.declarationPath)) {
13
+ const declaration = symbol.declarations.length === 1 ? await symbol.declarations[0]?.resolve(context.project) : undefined;
14
+ if (entry === undefined || declaration === undefined ||
15
+ resolve(declaration.getSourceFile().fileName) !== resolve(context.root, entry.declarationPath)) {
13
16
  throw new Error("Module binding is outside the explicit same-subject universe.");
14
17
  }
15
18
  return JSON.stringify([entry.packageName, entry.exportPath]);
16
19
  }
17
- function importLiteral(node, compiler) {
18
- if (node.kind === compiler.SyntaxKind["ImportType"]) {
19
- return node.argument?.literal;
20
+ function importLiteral(node) {
21
+ if (isImportTypeNode(node) && isLiteralTypeNode(node.argument)) {
22
+ return node.argument.literal;
20
23
  }
21
- if (node.kind === compiler.SyntaxKind["ExternalModuleReference"]) {
24
+ if (isExternalModuleReference(node)) {
22
25
  return node.expression;
23
26
  }
24
- return node.moduleSpecifier;
25
- }
26
- function parents(node) {
27
- const names = [];
28
- let parent = node.parent;
29
- while (parent !== undefined) {
30
- if (parent.name?.text !== undefined) {
31
- names.unshift(parent.name.text);
32
- }
33
- parent = parent.parent;
27
+ if (isImportDeclaration(node) || isExportDeclaration(node)) {
28
+ return node.moduleSpecifier;
34
29
  }
35
- return names;
30
+ if (isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference)) {
31
+ return node.moduleReference.expression;
32
+ }
33
+ return;
36
34
  }
37
- function modelParents(item, items) {
38
- const names = [];
39
- const visited = new Set();
40
- let parent = items.find(candidate => candidate.identity.canonicalReference === item.parentReference);
41
- while (parent !== undefined && !visited.has(parent.identity.canonicalReference)) {
42
- visited.add(parent.identity.canonicalReference);
43
- names.unshift(parent.displayName);
44
- const next = parent.parentReference;
45
- parent = items.find(candidate => candidate.identity.canonicalReference === next);
46
- }
47
- return names;
35
+ function importedQualifier(node) {
36
+ if (!isQualifiedName(node) && !isPropertyAccessExpression(node)) {
37
+ return;
38
+ }
39
+ let qualifier = isQualifiedName(node) ? node.left : node.expression;
40
+ while (isQualifiedName(qualifier) || isPropertyAccessExpression(qualifier)) {
41
+ qualifier = isQualifiedName(qualifier) ? qualifier.left : qualifier.expression;
42
+ }
43
+ return qualifier;
48
44
  }
49
- function occurrenceBinding(node, context) {
50
- // An inline import owns this qualifier occurrence, independently of named imports.
51
- let cursor = node.parent;
52
- while (cursor !== undefined && cursor.kind === context.compiler.SyntaxKind["QualifiedName"]) {
53
- cursor = cursor.parent;
45
+ async function occurrenceBinding(node, context) {
46
+ // An inline import owns this occurrence; an unrelated named import cannot lend authority.
47
+ let cursor = nativeParent(node);
48
+ while (cursor !== undefined && (isQualifiedName(cursor) || isPropertyAccessExpression(cursor))) {
49
+ cursor = nativeParent(cursor);
54
50
  }
55
- if (cursor !== undefined && cursor.kind === context.compiler.SyntaxKind["ImportType"] && cursor.argument?.literal !== undefined) {
51
+ if (cursor !== undefined && isImportTypeNode(cursor) && isLiteralTypeNode(cursor.argument)) {
56
52
  return moduleBinding(cursor.argument.literal, context);
57
53
  }
58
- const symbol = context.program.getTypeChecker().getSymbolAtLocation(node);
59
- if (symbol?.declarations?.length !== 1) {
54
+ const qualifier = importedQualifier(node);
55
+ if (qualifier !== undefined) {
56
+ // The leftmost name must be this occurrence's actual imported namespace or
57
+ // named alias. A same-spelled import elsewhere cannot authorize this node.
58
+ return occurrenceBinding(qualifier, context);
59
+ }
60
+ const symbol = await context.checker.getSymbolAtLocation(node);
61
+ if (symbol?.declarations.length !== 1) {
60
62
  return;
61
63
  }
62
- cursor = symbol.declarations[0];
63
- // Only this symbol's actual import alias can establish a named/namespace binding.
64
- if (!["ImportSpecifier", "NamespaceImport", "ImportClause", "ImportEqualsDeclaration"].some(kind => cursor?.kind === context.compiler.SyntaxKind[kind])) {
64
+ cursor = await symbol.declarations[0]?.resolve(context.project);
65
+ if (cursor === undefined || !(isImportSpecifier(cursor) || isNamespaceImport(cursor) || isImportClause(cursor) || isImportEqualsDeclaration(cursor))) {
65
66
  return;
66
67
  }
67
68
  while (cursor !== undefined) {
68
- const literal = importLiteral(cursor, context.compiler) ?? cursor.moduleReference?.expression;
69
+ const literal = importLiteral(cursor);
69
70
  if (literal !== undefined) {
70
71
  return moduleBinding(literal, context);
71
72
  }
72
- cursor = cursor.parent;
73
+ cursor = nativeParent(cursor);
73
74
  }
74
75
  return;
75
76
  }
76
- function declarationOccurrences(node, context) {
77
+ function qualifiedText(qualifier) {
78
+ if (isIdentifier(qualifier)) {
79
+ return qualifier.text;
80
+ }
81
+ if (!isQualifiedName(qualifier) && !isPropertyAccessExpression(qualifier)) {
82
+ return;
83
+ }
84
+ const left = qualifiedText(isQualifiedName(qualifier) ? qualifier.left : qualifier.expression);
85
+ return left === undefined ? undefined : `${left}.${isQualifiedName(qualifier) ? qualifier.right.text : qualifier.name.text}`;
86
+ }
87
+ async function bindingDeclarations(node, context) {
88
+ if (!isGetAccessorDeclaration(node)) {
89
+ return [node];
90
+ }
91
+ const symbol = await context.checker.getSymbolAtLocation(node.name);
92
+ if (symbol === undefined) {
93
+ return [node];
94
+ }
95
+ const declarations = [node];
96
+ const isStatic = node.modifiers?.some(modifier => modifier.kind === SyntaxKind.StaticKeyword) === true;
97
+ for (const handle of symbol.declarations) {
98
+ const paired = await handle.resolve(context.project);
99
+ if (paired === undefined || !isSetAccessorDeclaration(paired) || paired.parent !== node.parent ||
100
+ (await context.checker.getSymbolAtLocation(paired.name))?.id !== symbol.id ||
101
+ (paired.modifiers?.some(modifier => modifier.kind === SyntaxKind.StaticKeyword) === true) !== isStatic) {
102
+ continue;
103
+ }
104
+ declarations.push(paired);
105
+ }
106
+ if (declarations.length > 2) {
107
+ throw new Error("Native property has multiple setter declarations.");
108
+ }
109
+ return declarations; // The model excerpt orders the getter before its own setter.
110
+ }
111
+ async function declarationOccurrences(nodes, context) {
77
112
  const occurrences = new Map();
78
- function visit(child) {
79
- // Container members have their own modeled excerpts and cannot authorize the container.
80
- if (node.members?.includes(child) === true || child === node.body) {
113
+ function record(text, binding) {
114
+ if (binding === undefined) {
81
115
  return;
82
116
  }
83
- if (child.kind === context.compiler.SyntaxKind["Identifier"] && child.text !== undefined) {
84
- const binding = occurrenceBinding(child, context);
85
- if (binding !== undefined) {
86
- const values = occurrences.get(child.text) ?? [];
87
- values.push(binding);
88
- occurrences.set(child.text, values);
117
+ const values = occurrences.get(text) ?? [];
118
+ values.push(binding);
119
+ occurrences.set(text, values);
120
+ }
121
+ for (const node of nodes) {
122
+ async function visit(child) {
123
+ // Each container member owns its own excerpt and cannot authorize its container.
124
+ if (("members" in node && Array.isArray(node.members) && node.members.includes(child)) ||
125
+ ("body" in node && child === node.body)) {
126
+ return;
127
+ }
128
+ if (isQualifiedName(child) || isPropertyAccessExpression(child)) {
129
+ const text = qualifiedText(child);
130
+ if (text !== undefined) {
131
+ record(text, await occurrenceBinding(child, context));
132
+ }
133
+ return; // The model owns one qualified token, not separate identifier edges.
134
+ }
135
+ if (isIdentifier(child)) {
136
+ record(child.text, await occurrenceBinding(child, context));
137
+ }
138
+ for (const nested of nativeChildren(child)) {
139
+ await visit(nested);
89
140
  }
90
141
  }
91
- context.compiler.forEachChild(child, visit);
142
+ for (const child of nativeChildren(node)) {
143
+ await visit(child);
144
+ }
92
145
  }
93
- context.compiler.forEachChild(node, visit);
94
146
  return occurrences;
95
147
  }
96
- /** Bind only occurrences inside the actual unique declaration, never observation-wide imports. */
97
- export function bindAuditCompilerReferences(context) {
98
- const nodes = [];
99
- const packageRoot = resolve(context.root, dirname(context.pkg.manifestPath));
100
- for (const source of context.program.getSourceFiles()) {
101
- if (context.program.isSourceFileDefaultLibrary(source)) {
148
+ /** Preserve native declaration identity and each actual module-binding occurrence. */
149
+ export async function bindAuditCompilerReferences(context) {
150
+ for (const path of await context.program.getSourceFileNames()) {
151
+ if ((await context.program.getSourceFileMetadata(path))?.isDefaultLibrary === true) {
102
152
  continue;
103
153
  }
104
- const local = relative(packageRoot, source.fileName);
105
- const owned = local !== ".." && !local.startsWith(`..${sep}`);
106
- const visit = (node) => {
107
- const literal = importLiteral(node, context.compiler);
154
+ const source = await context.program.getSourceFile(path);
155
+ if (source === undefined) {
156
+ throw new Error("Native compiler source is unavailable.");
157
+ }
158
+ const visit = async (node) => {
159
+ const literal = importLiteral(node);
108
160
  if (literal !== undefined) {
109
- moduleBinding(literal, context);
161
+ await moduleBinding(literal, context);
110
162
  }
111
- if (owned && node.name?.text !== undefined) {
112
- nodes.push(node);
163
+ for (const child of nativeChildren(node)) {
164
+ await visit(child);
113
165
  }
114
- context.compiler.forEachChild(node, visit);
115
166
  };
116
- context.compiler.forEachChild(source, visit);
167
+ for (const child of nativeChildren(source)) {
168
+ await visit(child);
169
+ }
117
170
  }
118
171
  for (const item of context.items) {
119
172
  const unresolved = item.references.filter(reference => reference.resolution === "unresolved");
120
173
  if (unresolved.length === 0) {
121
174
  continue;
122
175
  }
123
- const ancestors = JSON.stringify(modelParents(item, context.items));
124
- const candidates = nodes.filter(node => node.name?.text === item.displayName && JSON.stringify(parents(node)) === ancestors);
125
- if (candidates.length !== 1) {
176
+ const declaration = context.declarationBindings.get(item.identity.canonicalReference);
177
+ if (declaration === undefined) {
126
178
  continue;
127
179
  }
128
- const occurrences = declarationOccurrences(candidates[0], context);
180
+ const occurrences = await declarationOccurrences(await bindingDeclarations(declaration, context), context);
129
181
  for (const text of new Set(unresolved.map(reference => reference.text))) {
130
182
  const references = unresolved.filter(reference => reference.text === text);
131
183
  const actual = occurrences.get(text);
@@ -1 +1 @@
1
- {"version":3,"file":"audit-compiler-bindings.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAY5D,SAAS,aAAa,CAAC,IAAuB,EAAE,OAAuB;IACrE,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAAC,OAAO;IAAC,CAAC;IACrE,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CACrE,GAAG,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;IAChH,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1E,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAAC,OAAO;IAAC,CAAC,CAAC,qDAAqD;IAC3F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,EAAE,MAAM,KAAK,CAAC;QACxD,OAAO,CAAC,MAAM,CAAC,Y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EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YACxE,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;YAC3E,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrC,IAAI,MAAM,EAAE,MAAM,KAAK,UAAU,CAAC,MAAM,EAAE,CAAC;gBAAC,SAAS;YAAC,CAAC;YACvD,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjG,CAAC;IACH,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"audit-compiler-bindings.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,yBAAyB,EAC9G,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAE,0BAA0B,EACtH,mBAAmB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,UAAU,EAAa,MAAM,yBAAyB,CAAC;AAI3J,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAU9E,KAAK,UAAU,aAAa,CAAC,IAAU,EAAE,OAAuB;IAC9D,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAAC,OAAO;IAAC,CAAC;IAC5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,CAAC,MAAM,mBAAmB,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;QAC3G,KAAK,MAAM,IAAI,IAAI,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YACxE,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;YAC3E,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrC,IAAI,MAAM,EAAE,MAAM,KAAK,UAAU,CAAC,MAAM,EAAE,CAAC;gBAAC,SAAS;YAAC,CAAC;YACvD,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjG,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,8 +1,7 @@
1
- import type { ExtractorConfig } from "@microsoft/api-extractor";
2
- export declare const pinnedCompiler: unknown;
3
- export declare const compilerPath: string;
1
+ export declare const NATIVE_EXTRACTOR_VERSION = "typescript-native/7.0.2";
2
+ export declare const nativeLibraryDirectory: string;
3
+ export declare const nativeCompilerPath: string;
4
4
  export declare const compilerLibraryRoot: string;
5
- export declare const pinnedAbortSignalLibraryPath: string;
6
- export declare const tsdocBasePath: string;
7
- export declare function pinnedTsdocConfig(): NonNullable<Parameters<typeof ExtractorConfig.prepare>[0]["tsdocConfigFile"]>;
5
+ export declare function assertPinnedAuditSdk(): void;
6
+ export declare function auditToolchainIdentity(): string;
8
7
  //# sourceMappingURL=load-pinned-audit-sdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-pinned-audit-sdk.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAKhE,eAAO,MAAM,cAAc,EAAE,OAAwC,CAAC;AACtE,eAAO,MAAM,YAAY,QAAyC,CAAC;AACnE,eAAO,MAAM,mBAAmB,QAAwB,CAAC;AACzD,eAAO,MAAM,4BAA4B,QAA4C,CAAC;AACtF,eAAO,MAAM,aAAa,QAAoG,CAAC;AAC/H,wBAAgB,iBAAiB,IAAI,WAAW,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAGjH"}
1
+ {"version":3,"file":"load-pinned-audit-sdk.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,4BAA4B,CAAC;AAClE,eAAO,MAAM,sBAAsB,QAA2C,CAAC;AAC/E,eAAO,MAAM,kBAAkB,QAAiF,CAAC;AACjH,eAAO,MAAM,mBAAmB,QAAuC,CAAC;AAKxE,wBAAgB,oBAAoB,IAAI,IAAI,CAI3C;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAW/C"}
@@ -1,15 +1,39 @@
1
+ import { createHash } from "node:crypto";
1
2
  import { createRequire } from "node:module";
3
+ import { readFileSync, realpathSync } from "node:fs";
2
4
  import { dirname, join } from "node:path";
3
- // Private fixed SDK operation: no caller-controlled specifier or resolution root.
5
+ import { fileURLToPath } from "node:url";
6
+ import { version } from "typescript";
7
+ // Fixed private SDK identities; callers cannot select a module or a resolution root.
4
8
  const require = createRequire(import.meta.url);
5
- const extractorRequire = createRequire(require.resolve("@microsoft/api-extractor"));
6
- export const pinnedCompiler = extractorRequire("typescript");
7
- export const compilerPath = extractorRequire.resolve("typescript");
8
- export const compilerLibraryRoot = dirname(compilerPath);
9
- export const pinnedAbortSignalLibraryPath = join(compilerLibraryRoot, "lib.dom.d.ts");
10
- export const tsdocBasePath = join(dirname(dirname(require.resolve("@microsoft/api-extractor"))), "extends", "tsdoc-base.json");
11
- export function pinnedTsdocConfig() {
12
- const sdk = extractorRequire("@microsoft/tsdoc-config");
13
- return sdk.TSDocConfigFile.loadFile(tsdocBasePath);
9
+ const compilerManifestPath = require.resolve("typescript/package.json");
10
+ const nativeManifestPath = createRequire(compilerManifestPath).resolve(`@typescript/typescript-${process.platform}-${process.arch}/package.json`);
11
+ const nativeManifest = JSON.parse(readFileSync(nativeManifestPath, "utf8"));
12
+ const modelPath = require.resolve("@microsoft/api-extractor-model");
13
+ const modelManifestPath = join(dirname(dirname(modelPath)), "package.json");
14
+ const modelManifest = JSON.parse(readFileSync(modelManifestPath, "utf8"));
15
+ export const NATIVE_EXTRACTOR_VERSION = "typescript-native/7.0.2";
16
+ export const nativeLibraryDirectory = join(dirname(nativeManifestPath), "lib");
17
+ export const nativeCompilerPath = join(nativeLibraryDirectory, process.platform === "win32" ? "tsc.exe" : "tsc");
18
+ export const compilerLibraryRoot = realpathSync(nativeLibraryDirectory);
19
+ if (version !== "7.0.2" || nativeManifest.version !== version || nativeManifest.name !== `@typescript/typescript-${process.platform}-${process.arch}`) {
20
+ throw new Error("Public API extraction requires the exact TypeScript 7.0.2 native toolchain.");
21
+ }
22
+ export function assertPinnedAuditSdk() {
23
+ if (version !== "7.0.2" || modelManifest.version !== "7.33.10") {
24
+ throw new Error("Unsupported audit toolchain: require native TypeScript 7.0.2 and API Extractor Model 7.33.10.");
25
+ }
26
+ }
27
+ export function auditToolchainIdentity() {
28
+ assertPinnedAuditSdk();
29
+ const modules = [modelPath, modelManifestPath, compilerManifestPath, nativeManifestPath,
30
+ require.resolve("typescript/unstable/async"), require.resolve("typescript/unstable/ast"), require.resolve("@microsoft/tsdoc"), nativeCompilerPath,
31
+ fileURLToPath(new URL("./native-public-api-engine.js", import.meta.url)),
32
+ fileURLToPath(new URL("./native-public-api-model.js", import.meta.url)),
33
+ fileURLToPath(new URL("./native-public-api-reference.js", import.meta.url)),
34
+ fileURLToPath(new URL("./native-public-api-excerpt.js", import.meta.url)),
35
+ fileURLToPath(new URL("./native-public-api-item.js", import.meta.url))];
36
+ return JSON.stringify({ extractor: NATIVE_EXTRACTOR_VERSION, model: modelManifest.version, compiler: version,
37
+ modules: modules.map(path => ({ digest: `sha256:${createHash("sha256").update(readFileSync(path)).digest("hex")}` })) });
14
38
  }
15
39
  //# sourceMappingURL=load-pinned-audit-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-pinned-audit-sdk.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAG1C,kFAAkF;AAClF,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,cAAc,GAAY,gBAAgB,CAAC,YAAY,CAAC,CAAC;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;AAC/H,MAAM,UAAU,iBAAiB;IAC/B,MAAM,GAAG,GAAG,gBAAgB,CAAC,yBAAyB,CAA4I,CAAC;IACnM,OAAO,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"load-pinned-audit-sdk.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,qFAAqF;AACrF,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACxE,MAAM,kBAAkB,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,0BAA0B,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,eAAe,CAAC,CAAC;AAClJ,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAA4D,CAAC;AACvI,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;AACpE,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;AAC5E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AC,GAAG,CAAC,CAAC;QACxE,aAAa,CAAC,IAAI,GAAG,CAAC,8BAA8B,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACvE,aAAa,CAAC,IAAI,GAAG,CAAC,kCAAkC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3E,aAAa,CAAC,IAAI,GAAG,CAAC,gCAAgC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACzE,aAAa,CAAC,IAAI,GAAG,CAAC,6BAA6B,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1E,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,wBAAwB,EAAE,KAAK,EAAE,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO;QAC1G,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AAC7H,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { PublicApiSourceEvidence } from "../../../application/ports/public-api-evidence.js";
2
2
  import { type PublicApiPackagePolicy, type PublicApiSnapshot } from "../../../application/model/public-api.js";
3
3
  import type { PublicApiExtractor } from "../../../application/ports/public-api-extractor.js";
4
- export declare class MicrosoftPublicApiExtractor implements PublicApiExtractor {
4
+ export declare class TypeScriptPublicApiExtractor implements PublicApiExtractor {
5
5
  #private;
6
6
  constructor(evidence: PublicApiSourceEvidence);
7
7
  extract(consumerRoot: string, policy: PublicApiPackagePolicy, packageVersion: string, signal?: AbortSignal): Promise<PublicApiSnapshot>;
@@ -1 +1 @@
1
- {"version":3,"file":"microsoft-public-api-extractor.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAkBjG,OAAO,EAML,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AA4L7F,qBAAa,2BAA4B,YAAW,kBAAkB;;IAGpE,YAAY,QAAQ,EAAE,uBAAuB,EAE5C;IAEK,OAAO,CACX,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,cAAc,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAsE5B;CACF"}
1
+ {"version":3,"file":"microsoft-public-api-extractor.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAEjG,OAAO,EAA0G,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AACvN,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AA4B7F,qBAAa,4BAA6B,YAAW,kBAAkB;;IAErE,YAAY,QAAQ,EAAE,uBAAuB,EAAgC;IAEvE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAqC5I;CACF"}