@lesliechan721/aw 0.1.0-beta.73 → 0.1.0-beta.75

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 (370) hide show
  1. package/dist/authoring/assets/aw-runtime-config.mjs +65 -43
  2. package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -1
  3. package/dist/authoring/scripts/add-skill.mjs +5 -14
  4. package/dist/authoring/scripts/add-skill.mjs.map +1 -1
  5. package/dist/authoring/scripts/init-plugin.mjs +4 -28
  6. package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
  7. package/dist/authoring/scripts/lib/plugin-version-check.mjs +2 -2
  8. package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
  9. package/dist/authoring/scripts/lib/skill-scaffold.mjs +0 -1
  10. package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
  11. package/dist/authoring/scripts/validate-plugin.mjs +234 -1422
  12. package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
  13. package/dist/scripts/aw-skill-eval-materializer.d.ts +2 -0
  14. package/dist/scripts/aw-skill-eval-materializer.js +19 -80
  15. package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
  16. package/dist/scripts/bundle-plugins.js.map +1 -1
  17. package/dist/scripts/test-plugin-scripts.js +6 -8
  18. package/dist/scripts/test-plugin-scripts.js.map +1 -1
  19. package/dist/src/commands/aw-capabilities.d.ts +1 -1
  20. package/dist/src/commands/aw-capabilities.js +2 -2
  21. package/dist/src/commands/aw-capabilities.js.map +1 -1
  22. package/dist/src/commands/dependency-operation-plan.js +3 -3
  23. package/dist/src/commands/dependency-operation-plan.js.map +1 -1
  24. package/dist/src/commands/deployment-confirmation.d.ts +4 -0
  25. package/dist/src/commands/deployment-confirmation.js +20 -0
  26. package/dist/src/commands/deployment-confirmation.js.map +1 -0
  27. package/dist/src/commands/managed-commands.js +4 -2
  28. package/dist/src/commands/managed-commands.js.map +1 -1
  29. package/dist/src/commands/offline-cleanup-evidence.d.ts +3 -1
  30. package/dist/src/commands/offline-cleanup-evidence.js +9 -4
  31. package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
  32. package/dist/src/commands/operation-plan.d.ts +6 -0
  33. package/dist/src/commands/operation-plan.js +29 -2
  34. package/dist/src/commands/operation-plan.js.map +1 -1
  35. package/dist/src/commands/options.d.ts +6 -2
  36. package/dist/src/commands/options.js +5 -4
  37. package/dist/src/commands/options.js.map +1 -1
  38. package/dist/src/commands/plugin-capabilities.js +29 -41
  39. package/dist/src/commands/plugin-capabilities.js.map +1 -1
  40. package/dist/src/commands/public-config-confirmation.js +5 -5
  41. package/dist/src/commands/public-config-confirmation.js.map +1 -1
  42. package/dist/src/commands/public-lifecycle-result.d.ts +47 -0
  43. package/dist/src/commands/public-lifecycle-result.js +125 -4
  44. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  45. package/dist/src/commands/public-lifecycle.d.ts +1 -0
  46. package/dist/src/commands/public-lifecycle.js +15 -2
  47. package/dist/src/commands/public-lifecycle.js.map +1 -1
  48. package/dist/src/commands/public-plugin-query.d.ts +1 -0
  49. package/dist/src/commands/public-plugin-query.js +27 -8
  50. package/dist/src/commands/public-plugin-query.js.map +1 -1
  51. package/dist/src/commands/rebuild-command.d.ts +12 -11
  52. package/dist/src/commands/rebuild-command.js +531 -769
  53. package/dist/src/commands/rebuild-command.js.map +1 -1
  54. package/dist/src/commands/rebuild-integration.d.ts +21 -43
  55. package/dist/src/commands/rebuild-integration.js +306 -3600
  56. package/dist/src/commands/rebuild-integration.js.map +1 -1
  57. package/dist/src/commands/rebuild-operations.d.ts +13 -0
  58. package/dist/src/commands/rebuild-operations.js +60 -15
  59. package/dist/src/commands/rebuild-operations.js.map +1 -1
  60. package/dist/src/commands/rebuild-platform-integration.d.ts +60 -0
  61. package/dist/src/commands/rebuild-platform-integration.js +1264 -0
  62. package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
  63. package/dist/src/commands/review-inspection.js +41 -4
  64. package/dist/src/commands/review-inspection.js.map +1 -1
  65. package/dist/src/commands/review-preparation.d.ts +2 -0
  66. package/dist/src/commands/review-preparation.js +23 -60
  67. package/dist/src/commands/review-preparation.js.map +1 -1
  68. package/dist/src/commands/skill-eval.js +1 -0
  69. package/dist/src/commands/skill-eval.js.map +1 -1
  70. package/dist/src/commands/status-v6.d.ts +3 -1
  71. package/dist/src/commands/status-v6.js +24 -15
  72. package/dist/src/commands/status-v6.js.map +1 -1
  73. package/dist/src/commands/targets-command.d.ts +9 -0
  74. package/dist/src/commands/targets-command.js +57 -6
  75. package/dist/src/commands/targets-command.js.map +1 -1
  76. package/dist/src/commands/write-commands.js +43 -28
  77. package/dist/src/commands/write-commands.js.map +1 -1
  78. package/dist/src/constants.d.ts +2 -2
  79. package/dist/src/constants.js +2 -2
  80. package/dist/src/constants.js.map +1 -1
  81. package/dist/src/generators/local-plugin.js +59 -248
  82. package/dist/src/generators/local-plugin.js.map +1 -1
  83. package/dist/src/index.js +40 -14
  84. package/dist/src/index.js.map +1 -1
  85. package/dist/src/output/command-receipt.d.ts +1 -1
  86. package/dist/src/output/command-receipt.js +3 -1
  87. package/dist/src/output/command-receipt.js.map +1 -1
  88. package/dist/src/output/native-consent.d.ts +2 -0
  89. package/dist/src/output/native-consent.js +5 -0
  90. package/dist/src/output/native-consent.js.map +1 -0
  91. package/dist/src/output/public-result.js +72 -0
  92. package/dist/src/output/public-result.js.map +1 -1
  93. package/dist/src/output/rebuild-progress.js +5 -5
  94. package/dist/src/output/rebuild-progress.js.map +1 -1
  95. package/dist/src/output/receipt-projection.js +19 -2
  96. package/dist/src/output/receipt-projection.js.map +1 -1
  97. package/dist/src/platforms/capabilities.d.ts +10 -0
  98. package/dist/src/platforms/capabilities.js +158 -0
  99. package/dist/src/platforms/capabilities.js.map +1 -0
  100. package/dist/src/platforms/contracts.d.ts +351 -0
  101. package/dist/src/platforms/contracts.js +2 -0
  102. package/dist/src/platforms/contracts.js.map +1 -0
  103. package/dist/src/platforms/cursor-workspace-hook.d.ts +22 -0
  104. package/dist/src/platforms/cursor-workspace-hook.js +185 -0
  105. package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
  106. package/dist/src/platforms/discovery.d.ts +80 -0
  107. package/dist/src/platforms/discovery.js +604 -0
  108. package/dist/src/platforms/discovery.js.map +1 -0
  109. package/dist/src/platforms/gemini-activation.d.ts +36 -0
  110. package/dist/src/platforms/gemini-activation.js +331 -0
  111. package/dist/src/platforms/gemini-activation.js.map +1 -0
  112. package/dist/src/platforms/gemini-consent.d.ts +8 -0
  113. package/dist/src/platforms/gemini-consent.js +79 -0
  114. package/dist/src/platforms/gemini-consent.js.map +1 -0
  115. package/dist/src/platforms/identity.d.ts +4 -0
  116. package/dist/src/platforms/identity.js +22 -0
  117. package/dist/src/platforms/identity.js.map +1 -0
  118. package/dist/src/platforms/inspection-grok.d.ts +4 -0
  119. package/dist/src/platforms/inspection-grok.js +204 -0
  120. package/dist/src/platforms/inspection-grok.js.map +1 -0
  121. package/dist/src/platforms/inspection-native.d.ts +6 -0
  122. package/dist/src/platforms/inspection-native.js +401 -0
  123. package/dist/src/platforms/inspection-native.js.map +1 -0
  124. package/dist/src/platforms/inspection-opencode.d.ts +4 -0
  125. package/dist/src/platforms/inspection-opencode.js +97 -0
  126. package/dist/src/platforms/inspection-opencode.js.map +1 -0
  127. package/dist/src/platforms/inspection-pi.d.ts +3 -0
  128. package/dist/src/platforms/inspection-pi.js +287 -0
  129. package/dist/src/platforms/inspection-pi.js.map +1 -0
  130. package/dist/src/platforms/inspection-query.d.ts +5 -0
  131. package/dist/src/platforms/inspection-query.js +36 -0
  132. package/dist/src/platforms/inspection-query.js.map +1 -0
  133. package/dist/src/platforms/inspection.d.ts +13 -0
  134. package/dist/src/platforms/inspection.js +180 -0
  135. package/dist/src/platforms/inspection.js.map +1 -0
  136. package/dist/src/platforms/layout.d.ts +21 -0
  137. package/dist/src/platforms/layout.js +239 -0
  138. package/dist/src/platforms/layout.js.map +1 -0
  139. package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
  140. package/dist/src/platforms/lifecycle-native-services.js +147 -0
  141. package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
  142. package/dist/src/platforms/lifecycle-native.d.ts +13 -0
  143. package/dist/src/platforms/lifecycle-native.js +276 -0
  144. package/dist/src/platforms/lifecycle-native.js.map +1 -0
  145. package/dist/src/platforms/lifecycle.d.ts +25 -0
  146. package/dist/src/platforms/lifecycle.js +470 -0
  147. package/dist/src/platforms/lifecycle.js.map +1 -0
  148. package/dist/src/platforms/managed-command-placement.d.ts +8 -0
  149. package/dist/src/platforms/managed-command-placement.js +79 -0
  150. package/dist/src/platforms/managed-command-placement.js.map +1 -0
  151. package/dist/src/platforms/projection-code-extension.d.ts +8 -0
  152. package/dist/src/platforms/projection-code-extension.js +121 -0
  153. package/dist/src/platforms/projection-code-extension.js.map +1 -0
  154. package/dist/src/platforms/projection-command-resources.d.ts +7 -0
  155. package/dist/src/platforms/projection-command-resources.js +74 -0
  156. package/dist/src/platforms/projection-command-resources.js.map +1 -0
  157. package/dist/src/platforms/projection-files.d.ts +27 -0
  158. package/dist/src/platforms/projection-files.js +111 -0
  159. package/dist/src/platforms/projection-files.js.map +1 -0
  160. package/dist/src/platforms/projection-marketplace.d.ts +19 -0
  161. package/dist/src/platforms/projection-marketplace.js +42 -0
  162. package/dist/src/platforms/projection-marketplace.js.map +1 -0
  163. package/dist/src/platforms/projection.d.ts +10 -0
  164. package/dist/src/platforms/projection.js +446 -0
  165. package/dist/src/platforms/projection.js.map +1 -0
  166. package/dist/src/platforms/registry.d.ts +4 -0
  167. package/dist/src/platforms/registry.js +30 -0
  168. package/dist/src/platforms/registry.js.map +1 -0
  169. package/dist/src/platforms/supplement-layout.d.ts +16 -0
  170. package/dist/src/platforms/supplement-layout.js +31 -0
  171. package/dist/src/platforms/supplement-layout.js.map +1 -0
  172. package/dist/src/portable/commands.d.ts +7 -5
  173. package/dist/src/portable/commands.js +6 -1
  174. package/dist/src/portable/commands.js.map +1 -1
  175. package/dist/src/portable/materializer.d.ts +8 -6
  176. package/dist/src/portable/materializer.js +47 -245
  177. package/dist/src/portable/materializer.js.map +1 -1
  178. package/dist/src/portable/recovery-layout.js +2 -15
  179. package/dist/src/portable/recovery-layout.js.map +1 -1
  180. package/dist/src/portable/recovery.d.ts +10 -1
  181. package/dist/src/portable/recovery.js +34 -8
  182. package/dist/src/portable/recovery.js.map +1 -1
  183. package/dist/src/recovery/coordinator.d.ts +4 -7
  184. package/dist/src/recovery/coordinator.js +151 -119
  185. package/dist/src/recovery/coordinator.js.map +1 -1
  186. package/dist/src/recovery/demand.d.ts +1 -1
  187. package/dist/src/recovery/demand.js +10 -42
  188. package/dist/src/recovery/demand.js.map +1 -1
  189. package/dist/src/recovery/joint-coordinator.js +112 -52
  190. package/dist/src/recovery/joint-coordinator.js.map +1 -1
  191. package/dist/src/recovery/joint-demand.d.ts +4 -22
  192. package/dist/src/recovery/joint-demand.js +51 -40
  193. package/dist/src/recovery/joint-demand.js.map +1 -1
  194. package/dist/src/recovery/receipt.d.ts +23 -8
  195. package/dist/src/recovery/retirement.d.ts +1 -1
  196. package/dist/src/recovery/retirement.js +131 -29
  197. package/dist/src/recovery/retirement.js.map +1 -1
  198. package/dist/src/recovery/status.d.ts +13 -6
  199. package/dist/src/recovery/status.js +483 -79
  200. package/dist/src/recovery/status.js.map +1 -1
  201. package/dist/src/recovery/types.d.ts +3 -3
  202. package/dist/src/review/platform-profile.d.ts +3 -0
  203. package/dist/src/review/platform-profile.js +16 -0
  204. package/dist/src/review/platform-profile.js.map +1 -0
  205. package/dist/src/review/review-profile.d.ts +1 -0
  206. package/dist/src/review/review-profile.js +8 -2
  207. package/dist/src/review/review-profile.js.map +1 -1
  208. package/dist/src/review/review-selection.d.ts +2 -11
  209. package/dist/src/review/review-selection.js +97 -71
  210. package/dist/src/review/review-selection.js.map +1 -1
  211. package/dist/src/review/review-types.d.ts +3 -0
  212. package/dist/src/review/review-types.js.map +1 -1
  213. package/dist/src/review/skill-materialization.d.ts +44 -9
  214. package/dist/src/review/skill-materialization.js +112 -136
  215. package/dist/src/review/skill-materialization.js.map +1 -1
  216. package/dist/src/review/source-binding.d.ts +8 -5
  217. package/dist/src/review/source-binding.js +99 -41
  218. package/dist/src/review/source-binding.js.map +1 -1
  219. package/dist/src/tui/agent-management.js +112 -10
  220. package/dist/src/tui/agent-management.js.map +1 -1
  221. package/dist/src/tui/agent-settings.d.ts +3 -0
  222. package/dist/src/tui/agent-settings.js +10 -11
  223. package/dist/src/tui/agent-settings.js.map +1 -1
  224. package/dist/src/tui/console-app-v4.js +58 -20
  225. package/dist/src/tui/console-app-v4.js.map +1 -1
  226. package/dist/src/tui/content-item-card.js +2 -2
  227. package/dist/src/tui/content-item-card.js.map +1 -1
  228. package/dist/src/tui/controller-runtime.js +198 -152
  229. package/dist/src/tui/controller-runtime.js.map +1 -1
  230. package/dist/src/tui/controller.d.ts +5 -9
  231. package/dist/src/tui/controller.js +40 -18
  232. package/dist/src/tui/controller.js.map +1 -1
  233. package/dist/src/tui/deployment-view.d.ts +10 -0
  234. package/dist/src/tui/deployment-view.js +103 -0
  235. package/dist/src/tui/deployment-view.js.map +1 -0
  236. package/dist/src/tui/glossary.js +4 -4
  237. package/dist/src/tui/glossary.js.map +1 -1
  238. package/dist/src/tui/model.d.ts +5 -0
  239. package/dist/src/tui/model.js +73 -12
  240. package/dist/src/tui/model.js.map +1 -1
  241. package/dist/src/tui/operation-diagnostic-screens.js +2 -1
  242. package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
  243. package/dist/src/tui/operation-history.d.ts +5 -4
  244. package/dist/src/tui/operation-history.js.map +1 -1
  245. package/dist/src/tui/operation-review-planner.d.ts +7 -2
  246. package/dist/src/tui/operation-review-planner.js +97 -42
  247. package/dist/src/tui/operation-review-planner.js.map +1 -1
  248. package/dist/src/tui/plugin-content.d.ts +5 -3
  249. package/dist/src/tui/plugin-content.js +70 -508
  250. package/dist/src/tui/plugin-content.js.map +1 -1
  251. package/dist/src/tui/plugin-detail.d.ts +3 -2
  252. package/dist/src/tui/plugin-detail.js +33 -25
  253. package/dist/src/tui/plugin-detail.js.map +1 -1
  254. package/dist/src/tui/scoped-inventory.d.ts +10 -6
  255. package/dist/src/tui/scoped-inventory.js +34 -1
  256. package/dist/src/tui/scoped-inventory.js.map +1 -1
  257. package/dist/src/types.d.ts +4 -63
  258. package/dist/src/types.js.map +1 -1
  259. package/dist/src/utils/agent-version.d.ts +10 -4
  260. package/dist/src/utils/agent-version.js.map +1 -1
  261. package/dist/src/utils/artifact-plan.d.ts +26 -2
  262. package/dist/src/utils/artifact-plan.js +113 -489
  263. package/dist/src/utils/artifact-plan.js.map +1 -1
  264. package/dist/src/utils/artifact-renderer.d.ts +100 -93
  265. package/dist/src/utils/artifact-renderer.js +173 -346
  266. package/dist/src/utils/artifact-renderer.js.map +1 -1
  267. package/dist/src/utils/artifact-request.d.ts +21 -11
  268. package/dist/src/utils/artifact-request.js +56 -80
  269. package/dist/src/utils/artifact-request.js.map +1 -1
  270. package/dist/src/utils/bundle-layout.js +30 -146
  271. package/dist/src/utils/bundle-layout.js.map +1 -1
  272. package/dist/src/utils/catalog-digests.d.ts +2 -12
  273. package/dist/src/utils/catalog-digests.js +0 -39
  274. package/dist/src/utils/catalog-digests.js.map +1 -1
  275. package/dist/src/utils/catalog-source-references.d.ts +7 -0
  276. package/dist/src/utils/catalog-source-references.js +234 -19
  277. package/dist/src/utils/catalog-source-references.js.map +1 -1
  278. package/dist/src/utils/codex-config-observation.d.ts +19 -0
  279. package/dist/src/utils/codex-config-observation.js +145 -0
  280. package/dist/src/utils/codex-config-observation.js.map +1 -0
  281. package/dist/src/utils/codex-executable-discovery.d.ts +2 -0
  282. package/dist/src/utils/codex-executable-discovery.js +47 -13
  283. package/dist/src/utils/codex-executable-discovery.js.map +1 -1
  284. package/dist/src/utils/codex-manager.js +1 -1
  285. package/dist/src/utils/codex-manager.js.map +1 -1
  286. package/dist/src/utils/codex-native-observation.d.ts +3 -0
  287. package/dist/src/utils/codex-native-observation.js +53 -0
  288. package/dist/src/utils/codex-native-observation.js.map +1 -1
  289. package/dist/src/utils/codex-shared-native.d.ts +3 -1
  290. package/dist/src/utils/codex-shared-native.js +46 -5
  291. package/dist/src/utils/codex-shared-native.js.map +1 -1
  292. package/dist/src/utils/codex-skill-staging.d.ts +4 -3
  293. package/dist/src/utils/codex-skill-staging.js.map +1 -1
  294. package/dist/src/utils/codex-surface-analysis.d.ts +5 -2
  295. package/dist/src/utils/codex-surface-analysis.js +28 -57
  296. package/dist/src/utils/codex-surface-analysis.js.map +1 -1
  297. package/dist/src/utils/component-command-preparation.d.ts +34 -0
  298. package/dist/src/utils/component-command-preparation.js +228 -0
  299. package/dist/src/utils/component-command-preparation.js.map +1 -0
  300. package/dist/src/utils/component-resources.d.ts +43 -0
  301. package/dist/src/utils/component-resources.js +304 -0
  302. package/dist/src/utils/component-resources.js.map +1 -0
  303. package/dist/src/utils/dynamic-skill-tree.d.ts +17 -6
  304. package/dist/src/utils/dynamic-skill-tree.js +7 -3
  305. package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
  306. package/dist/src/utils/local-marketplace.d.ts +11 -44
  307. package/dist/src/utils/local-marketplace.js +11 -638
  308. package/dist/src/utils/local-marketplace.js.map +1 -1
  309. package/dist/src/utils/managed-command-evidence.d.ts +2 -2
  310. package/dist/src/utils/managed-command-evidence.js +5 -81
  311. package/dist/src/utils/managed-command-evidence.js.map +1 -1
  312. package/dist/src/utils/managed-command-materialization.d.ts +5 -2
  313. package/dist/src/utils/managed-command-materialization.js +35 -35
  314. package/dist/src/utils/managed-command-materialization.js.map +1 -1
  315. package/dist/src/utils/managed-command-preparation.d.ts +67 -0
  316. package/dist/src/utils/managed-command-preparation.js +146 -0
  317. package/dist/src/utils/managed-command-preparation.js.map +1 -0
  318. package/dist/src/utils/managed-command-review.d.ts +26 -0
  319. package/dist/src/utils/managed-command-review.js +68 -0
  320. package/dist/src/utils/managed-command-review.js.map +1 -0
  321. package/dist/src/utils/managed-command-store.js +26 -15
  322. package/dist/src/utils/managed-command-store.js.map +1 -1
  323. package/dist/src/utils/native-cli.d.ts +23 -0
  324. package/dist/src/utils/native-cli.js +51 -2
  325. package/dist/src/utils/native-cli.js.map +1 -1
  326. package/dist/src/utils/native-demand.d.ts +20 -1
  327. package/dist/src/utils/native-demand.js.map +1 -1
  328. package/dist/src/utils/native-tool-review.d.ts +3 -6
  329. package/dist/src/utils/native-tool-review.js +25 -11
  330. package/dist/src/utils/native-tool-review.js.map +1 -1
  331. package/dist/src/utils/ownership.d.ts +26 -3
  332. package/dist/src/utils/ownership.js +95 -9
  333. package/dist/src/utils/ownership.js.map +1 -1
  334. package/dist/src/utils/paths.d.ts +1 -1
  335. package/dist/src/utils/paths.js +2 -0
  336. package/dist/src/utils/paths.js.map +1 -1
  337. package/dist/src/utils/platform-empty-state.d.ts +46 -0
  338. package/dist/src/utils/platform-empty-state.js +123 -0
  339. package/dist/src/utils/platform-empty-state.js.map +1 -0
  340. package/dist/src/utils/plugin-config-impact.d.ts +17 -11
  341. package/dist/src/utils/plugin-config-impact.js +46 -62
  342. package/dist/src/utils/plugin-config-impact.js.map +1 -1
  343. package/dist/src/utils/plugin-config-write.js +52 -53
  344. package/dist/src/utils/plugin-config-write.js.map +1 -1
  345. package/dist/src/utils/plugin-config.d.ts +0 -2
  346. package/dist/src/utils/plugin-config.js +0 -6
  347. package/dist/src/utils/plugin-config.js.map +1 -1
  348. package/dist/src/utils/plugin-dependencies.d.ts +1 -1
  349. package/dist/src/utils/plugin-dependencies.js.map +1 -1
  350. package/dist/src/utils/plugin-scripts.d.ts +4 -0
  351. package/dist/src/utils/plugin-scripts.js +11 -0
  352. package/dist/src/utils/plugin-scripts.js.map +1 -1
  353. package/dist/src/utils/runtime-config.d.ts +5 -7
  354. package/dist/src/utils/runtime-config.js +12 -25
  355. package/dist/src/utils/runtime-config.js.map +1 -1
  356. package/dist/src/utils/windows-npm-shim.js +19 -2
  357. package/dist/src/utils/windows-npm-shim.js.map +1 -1
  358. package/package.json +3 -3
  359. package/dist/src/utils/claude-native-render-receipt.d.ts +0 -14
  360. package/dist/src/utils/claude-native-render-receipt.js +0 -26
  361. package/dist/src/utils/claude-native-render-receipt.js.map +0 -1
  362. package/dist/src/utils/claude-skills-root.d.ts +0 -8
  363. package/dist/src/utils/claude-skills-root.js +0 -87
  364. package/dist/src/utils/claude-skills-root.js.map +0 -1
  365. package/dist/src/utils/codex-native-render-receipt.d.ts +0 -40
  366. package/dist/src/utils/codex-native-render-receipt.js +0 -205
  367. package/dist/src/utils/codex-native-render-receipt.js.map +0 -1
  368. package/dist/src/utils/slash-commands.d.ts +0 -1
  369. package/dist/src/utils/slash-commands.js +0 -2
  370. package/dist/src/utils/slash-commands.js.map +0 -1
@@ -1,18 +1,15 @@
1
1
  import path from 'node:path';
2
2
  import fs from 'fs-extra';
3
- import { getCommandPackageId, getManagedCommandArtifactTargets, parseManagedCommandPlaceholders, validateCommandEntryFiles, } from '@lesliechan721/aw-plugin-core/manifest';
3
+ import { computeCanonicalDirectoryDigest } from '@lesliechan721/agent-skill-eval';
4
+ import { COMPONENT_KINDS, normalizeStaticPluginComponents, resolveInvocationPolicy, } from '@lesliechan721/aw-plugin-core/manifest';
4
5
  import { bundleLocalPlugin, prepareLocalPluginBundleSource } from '../generators/local-plugin.js';
5
- import { validateArtifactPlan } from '../utils/artifact-plan.js';
6
- import { runArtifactRenderer } from '../utils/artifact-renderer.js';
6
+ import { resolveDeployments } from '../platforms/layout.js';
7
+ import { projectPlatform } from '../platforms/projection.js';
8
+ import { artifactValueDigest } from '../utils/artifact-plan.js';
9
+ import { preparePlatformComponents, resolveArtifactRenderConfig } from '../utils/artifact-renderer.js';
7
10
  import { createCatalogRuntimeImportResolver } from '../utils/catalog-runtime-projection.js';
8
- import { createCodexSkillExpectedTree } from '../utils/codex-skill-staging.js';
9
- import { createDynamicSkillExpectedTree, validateSkillDirectory, writeDynamicSkillTree, } from '../utils/dynamic-skill-tree.js';
10
- import { commandSetsForProducer, createManagedCommandReferenceResolver, managedCommandProducerIdentity, prepareManagedCommandPackage, resolveSkillManagedCommandReferences, } from '../utils/managed-command-materialization.js';
11
- import { validateManagedCommandResource } from '../utils/managed-command-store.js';
12
- import { createAwPluginRequirementsReceipt } from '../utils/manifest.js';
13
- import { prepareWindowsJobHelper } from '../utils/process-tree.js';
14
- import { injectInstalledRuntimeConfig } from '../utils/runtime-config.js';
15
- import { validateRuntimeSkillClosure } from '../utils/runtime-skill-closure.js';
11
+ import { finalizePlatformSkillProducers } from '../utils/component-command-preparation.js';
12
+ import { getAuthoringPlatformCapabilities } from './platform-profile.js';
16
13
  export async function prepareSkillPluginBundle(options) {
17
14
  await fs.ensureDir(options.workRoot);
18
15
  const tempRoot = await fs.mkdtemp(path.join(options.workRoot, 'bundle-'));
@@ -55,138 +52,117 @@ export async function prepareSkillPluginBundle(options) {
55
52
  throw error;
56
53
  }
57
54
  }
58
- /** Prepare only producers referenced by these isolated Skill trees, without publishing bindings. */
59
- export async function prepareIsolatedSkillCommandReferences(options) {
60
- const candidates = [...(options.candidates ?? [])];
61
- const pending = options.trees.map((tree) => ({ tree, scope: options.scope }));
62
- const prepared = new Set(candidates.map((candidate) => getCommandPackageId(candidate.producer)));
63
- const temporaryRoots = [];
64
- const referencedTrees = new Set();
65
- try {
66
- for (let index = 0; index < pending.length; index += 1) {
67
- const consumer = pending[index];
68
- const references = Object.entries(consumer.tree.files)
69
- .filter(([relativePath]) => relativePath.endsWith('.md'))
70
- .flatMap(([, content]) => parseManagedCommandPlaceholders(content.toString('utf8')));
71
- if (references.length > 0)
72
- referencedTrees.add(consumer.tree);
73
- if (references.length > 0
74
- && !options.plugin.manifest.requires?.aw.capabilities?.includes('aw.managed-commands.v1')) {
75
- throw new Error('commandReferenceInvalid: managed command references require aw.managed-commands.v1.');
76
- }
77
- for (const { reference } of references) {
78
- const set = options.plugin.manifest.managedCommands?.sets.find((entry) => entry.set === reference.set);
79
- if (!set)
80
- throw new Error('commandReferenceInvalid: the command set is not declared by this plugin.');
81
- const producerRef = set.producer;
82
- const declaration = producerRef.kind === 'artifact'
83
- ? options.plugin.manifest.artifacts?.targets?.find((target) => target.id === producerRef.artifactId)
84
- : undefined;
85
- if (producerRef.kind === 'static-skill' && producerRef.platform !== options.platform
86
- || producerRef.kind === 'artifact' && (declaration?.platform !== options.platform
87
- || declaration.target !== 'codex.skill' && declaration.target !== 'claude.skill' && !declaration.scopes.includes(consumer.scope))) {
88
- throw new Error('commandReferenceInvalid: the producer is unavailable on this platform and scope.');
89
- }
90
- if (producerRef.kind === 'package') {
91
- const commandPackage = options.plugin.manifest.managedCommands?.packages.find((entry) => entry.key === producerRef.packageKey);
92
- if (!commandPackage?.platforms.includes(options.platform)
93
- || consumer.scope === 'user' && commandPackage.scope === 'project') {
94
- throw new Error('commandReferenceInvalid: the command package is unavailable to this consumer.');
95
- }
96
- }
97
- const producer = await managedCommandProducerIdentity({
98
- ...options, producer: producerRef, scope: consumer.scope,
55
+ /** Prepare a fixed author profile without discovery or native registration. */
56
+ export async function materializeProfilePluginComponents(options) {
57
+ const sourceId = options.plugin.sourceId ?? 'authoring';
58
+ const pluginId = options.plugin.pluginId ?? `${sourceId}/${options.plugin.manifest.name}`;
59
+ const sourceIdentity = options.plugin.sourceIdentity ?? await computeCanonicalDirectoryDigest(options.plugin.rootDir);
60
+ options = { ...options, plugin: { ...options.plugin, sourceId, sourceIdentity, pluginId } };
61
+ const productRoot = path.join(options.env.HOME, 'profile-host', options.platform);
62
+ await fs.ensureDir(productRoot);
63
+ const resolution = await resolveDeployments({ cwd: options.cwd, env: options.env }, {
64
+ plugin: {
65
+ sourceId, sourceIdentity,
66
+ pluginId, version: options.plugin.manifest.version,
67
+ },
68
+ scope: options.scope === 'project' ? { kind: 'project', projectRoot: options.cwd } : { kind: 'user' },
69
+ operation: 'ensure', recoveryCandidates: [],
70
+ discovery: {
71
+ platform: options.platform, availability: 'notApplicable', diagnostics: [],
72
+ installations: [{
73
+ id: `profile:${options.platform}`, product: options.platform === 'generic' ? 'generic' : 'cli',
74
+ version: null, availability: 'notApplicable', reasonCodes: [],
75
+ entry: options.platform === 'generic' ? { kind: 'generic', root: productRoot } : { kind: 'directory', configRoot: productRoot },
76
+ }],
77
+ },
78
+ });
79
+ const binding = resolution.bindings[0];
80
+ if (!binding)
81
+ throw new Error('authorProfileLayoutMissing');
82
+ const preparation = [];
83
+ let packageCommandResolver;
84
+ const skills = [];
85
+ for (const unit of resolution.renderUnits) {
86
+ const kinds = unit.kinds.filter((kind) => (options.kinds ?? COMPONENT_KINDS).includes(kind));
87
+ if (!kinds.length)
88
+ continue;
89
+ const capabilities = getAuthoringPlatformCapabilities(options.platform, unit.renderScope.kind);
90
+ const config = options.config ? { ...options.config, targetScope: unit.renderScope.kind } : await resolveArtifactRenderConfig({
91
+ pluginName: options.plugin.manifest.name, manifest: options.plugin.manifest,
92
+ referencePlugins: options.plugins, sourceId: options.plugin.sourceId,
93
+ sourceIdentity: options.plugin.sourceIdentity, logicalIdentity: options.plugin.catalogLogicalIdentity,
94
+ platform: options.platform, scope: unit.renderScope.kind, cwd: options.cwd, env: options.env,
95
+ });
96
+ const platformResourceRoot = path.join(options.plugin.rootDir, options.platform);
97
+ const staticResourceRoot = await fs.pathExists(platformResourceRoot) ? platformResourceRoot : options.plugin.rootDir;
98
+ const staticExpected = await normalizeStaticPluginComponents({
99
+ pluginRoot: options.plugin.rootDir,
100
+ staticResourceRoot,
101
+ manifest: options.plugin.manifest, platform: options.platform, capabilities, allowedOutputKinds: kinds,
102
+ });
103
+ const prepared = await preparePlatformComponents({
104
+ ...options, renderScope: unit.renderScope.kind, kinds, capabilities, config, staticExpected,
105
+ staticResourceRoot,
106
+ commandEnv: options.env,
107
+ });
108
+ const finalized = await finalizePlatformSkillProducers({
109
+ ...options, renderUnit: unit, prepared,
110
+ skillWorkRoot: path.join(options.outputRoot, '.prepare-skills', unit.id.replace(/[^a-z0-9]/gu, '')),
111
+ });
112
+ if (unit.kinds.includes('skill'))
113
+ packageCommandResolver = finalized.commandResolver;
114
+ try {
115
+ const current = finalized.prepared;
116
+ const relativeNativeRoot = `native/${unit.id.replace(/[^a-z0-9]/gu, '')}`;
117
+ const nativeRoot = path.join(options.outputRoot, relativeNativeRoot);
118
+ // Preserve a computed capability gap without resolving policy against unavailable producers.
119
+ if (current.empty !== 'unmet') {
120
+ await projectPlatform({
121
+ cwd: options.cwd, env: options.env, commandResolver: finalized.commandResolver ?? packageCommandResolver,
122
+ stagingRoot: nativeRoot,
123
+ }, {
124
+ binding, renderUnit: unit, capabilities,
125
+ components: current.expected.components,
126
+ resources: current.resources,
127
+ policy: resolveInvocationPolicy(options.plugin.manifest, options.platform),
99
128
  });
100
- const identity = getCommandPackageId(producer);
101
- if (prepared.has(identity))
102
- continue;
103
- prepared.add(identity);
104
- if (producerRef.kind === 'package') {
105
- const commandPackage = await prepareManagedCommandPackage({
106
- ...options, packageKey: producerRef.packageKey, scope: producer.scope, event: 'materialize',
107
- referencePlugins: options.plugins,
108
- });
109
- candidates.push({ producer: commandPackage.producer, sets: commandPackage.sets });
110
- await commandPackage.cleanup();
129
+ }
130
+ const outputs = current.empty !== 'unmet' && await fs.pathExists(nativeRoot)
131
+ ? [{ path: relativeNativeRoot, digest: await computeCanonicalDirectoryDigest(nativeRoot) }] : [];
132
+ for (const skill of finalized.skills) {
133
+ const component = current.expected.components.find((entry) => entry.id === skill.componentId);
134
+ if (options.selectedSkills?.length && !options.selectedSkills.includes(component.name))
111
135
  continue;
112
- }
113
- const commandTargets = getManagedCommandArtifactTargets(options.plugin.manifest).filter((target) => JSON.stringify(target.producer) === JSON.stringify(producerRef));
114
- const requestedArtifactIds = [
115
- ...(producerRef.kind === 'artifact' ? [producerRef.artifactId] : []),
116
- ...commandTargets.map((target) => target.id),
117
- ];
118
- let artifacts = [];
119
- let tree;
120
- let resourceRoot;
121
- let render;
122
- if (requestedArtifactIds.length > 0) {
123
- if (process.platform === 'win32') {
124
- await prepareWindowsJobHelper();
125
- }
126
- render = await runArtifactRenderer({
127
- plugin: options.plugin,
128
- referencePlugins: options.plugins,
129
- platform: options.platform,
130
- scope: producer.scope,
131
- ...((declaration?.target === 'codex.skill' || declaration?.target === 'claude.skill') ? { configScope: 'user' } : {}),
132
- event: 'materialize', cwd: options.cwd, commandEnv: options.env,
133
- requestedArtifactIds, previousArtifacts: [], scriptTimeoutMs: options.scriptTimeoutMs,
134
- });
135
- artifacts = validateArtifactPlan({
136
- manifest: options.plugin.manifest, plan: render.plan,
137
- platform: options.platform, scope: producer.scope,
138
- requestedArtifactIds: render.context.requestedArtifactIds,
139
- renderConfig: render.context.config,
140
- rendererDigest: render.target.rendererDigest, manifestDigest: render.target.manifestDigest,
141
- }).artifacts;
142
- }
143
- if (producerRef.kind === 'static-skill') {
144
- resourceRoot = path.join(options.plugin.rootDir, options.platform, 'skills', producerRef.skillKey);
145
- tree = await validateSkillDirectory(resourceRoot, `${options.platform}.skill`, {
146
- requirementsReceiptPolicy: 'allow',
147
- });
148
- }
149
- else {
150
- const artifact = artifacts.find((entry) => entry.id === producerRef.artifactId);
151
- if (!artifact || artifact.state !== 'present'
152
- || artifact.target !== 'codex.skill' && artifact.target !== 'claude.skill') {
153
- throw new Error('commandReferenceInvalid: the producer did not produce a present Skill.');
154
- }
155
- const sourceDirs = render.context.artifactSources.find((source) => source.id === artifact.id && source.target === artifact.target)?.sourceDirs ?? [];
156
- const receipt = createAwPluginRequirementsReceipt(options.plugin.manifest, options.plugin.manifest.requires?.aw.capabilities ?? []);
157
- const treeOptions = {
158
- sourceDirs, requireReadme: true,
159
- requirementsReceipt: Buffer.from(`${JSON.stringify(receipt, null, 2)}\n`),
160
- sourceRequirementsReceiptPolicy: 'allow',
161
- };
162
- tree = artifact.target === 'codex.skill'
163
- ? await createCodexSkillExpectedTree({ ...treeOptions, artifact })
164
- : await createDynamicSkillExpectedTree({ ...treeOptions, artifact });
165
- await injectInstalledRuntimeConfig(tree, render.runtimeConfigSnapshots[artifact.id]);
166
- const temporaryRoot = await fs.mkdtemp(path.join(options.env.TMPDIR, 'aw-review-command-'));
167
- temporaryRoots.push(temporaryRoot);
168
- resourceRoot = path.join(temporaryRoot, tree.skillKey);
169
- await writeDynamicSkillTree(resourceRoot, tree);
170
- }
171
- const sets = commandSetsForProducer({ plugin: options.plugin, producer: producerRef, artifacts });
172
- await validateManagedCommandResource(resourceRoot);
173
- await validateCommandEntryFiles(resourceRoot, sets.flatMap((entry) => entry.entries));
174
- await validateRuntimeSkillClosure(resourceRoot);
175
- candidates.push({ producer, sets });
176
- pending.push({ tree, scope: producer.scope });
136
+ const destination = path.join(options.outputRoot, 'skills', component.name);
137
+ await fs.copy(skill.resourceRoot, destination, { overwrite: false, errorOnExist: true, dereference: false });
138
+ skills.push({ id: component.id, name: component.name, path: destination,
139
+ dynamic: current.expected.sources[component.id] === 'dynamic' });
177
140
  }
141
+ preparation.push({
142
+ plugin: options.plugin.manifest.name, platform: options.platform, renderScope: unit.renderScope.kind, profileId: capabilities.profileId,
143
+ capabilitiesDigest: current.evidence.capabilitiesDigest,
144
+ expectedDigest: artifactValueDigest(current.expected),
145
+ resourceDigest: current.evidence.resourceDigest,
146
+ renderInputDigest: current.evidence.renderInputDigest,
147
+ outputs,
148
+ components: current.expected.components.map(({ id, kind, name }) => ({ id, kind, name, source: current.expected.sources[id] })),
149
+ omitted: current.expected.omitted, unmet: current.expected.unmet,
150
+ });
178
151
  }
179
- for (const { tree, scope } of pending) {
180
- if (!referencedTrees.has(tree))
181
- continue;
182
- const resolve = await createManagedCommandReferenceResolver({ ...options, scope, candidates });
183
- resolveSkillManagedCommandReferences(tree, resolve);
152
+ finally {
153
+ await finalized.cleanup();
184
154
  }
185
- return candidates;
186
155
  }
187
- finally {
188
- await Promise.all(temporaryRoots.map((root) => fs.remove(root)));
156
+ await fs.remove(path.join(options.outputRoot, '.prepare-skills'));
157
+ await fs.ensureDir(path.join(options.outputRoot, 'skills'));
158
+ for (const selected of options.selectedSkills ?? []) {
159
+ if (skills.some((skill) => skill.name === selected)
160
+ || preparation.some((unit) => unit.unmet.some((entry) => entry.kind === 'skill' && entry.name === selected)
161
+ || unit.omitted.some((entry) => entry.kind === 'skill' && entry.id === `skill:${selected}`)))
162
+ continue;
163
+ throw new Error(`Selected Skill was not produced by the complete component set: ${selected}.`);
189
164
  }
165
+ return { skills, preparation };
190
166
  }
191
167
  export async function createIsolatedSkillEnv(baseEnv, scopeRoot) {
192
168
  const home = path.join(scopeRoot, 'home');
@@ -1 +1 @@
1
- {"version":3,"file":"skill-materialization.js","sourceRoot":"","sources":["../../../src/review/skill-materialization.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAElG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,GAEtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,qCAAqC,EACrC,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,GAErC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC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IAAI;QACV,GAAG,EAAE,IAAI;QACT,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;QACxC,UAAU,EAAE,SAAS;QACrB,iBAAiB,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC;QACtD,SAAS,EAAE,EAAE;KACd,CAAC;IACF,OAAO,GAAG,CAAC,aAAa,CAAC;IACzB,OAAO,GAAG,CAAC,cAAc,CAAC;IAC1B,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,IAAK,CAAC;QACvB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,cAAe,CAAC;QACjC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,eAAgB,CAAC;QAClC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,cAAe,CAAC;QACjC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,aAAc,CAAC;QAChC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,eAAgB,CAAC;QAClC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,MAAO,CAAC;QACzB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,OAAQ,CAAC;QAC1B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,UAAW,CAAC;QAC7B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAkB,CAAC;KACrC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC"}
1
+ {"version":3,"file":"skill-materialization.js","sourceRoot":"","sources":["../../../src/review/skill-materialization.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,uBAAuB,GAGxB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,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CAAC,GAAG,CAAC;QAChB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,IAAK,CAAC;QACvB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,cAAe,CAAC;QACjC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,eAAgB,CAAC;QAClC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,cAAe,CAAC;QACjC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,aAAc,CAAC;QAChC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,eAAgB,CAAC;QAClC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,MAAO,CAAC;QACzB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,OAAQ,CAAC;QAC1B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,UAAW,CAAC;QAC7B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAkB,CAAC;KACrC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,8 +1,9 @@
1
- import { type PlatformTarget, type PortablePlatformTarget, type CatalogWorkspace } from '@lesliechan721/aw-plugin-core';
1
+ import { type PlatformTarget, type CatalogWorkspace } from '@lesliechan721/aw-plugin-core';
2
2
  import type { AwSkillEvalMaterializationProfile } from '../../scripts/aw-skill-eval-materializer.js';
3
3
  import { type AwSkillEvalManifestV1Profile } from '../eval/manifest-v1.js';
4
4
  import type { CatalogSourceResolution, PluginMeta, Scope } from '../types.js';
5
5
  import { type ResolvedArtifactRenderConfig } from '../utils/artifact-renderer.js';
6
+ import type { ComponentPreparationBinding } from './skill-materialization.js';
6
7
  import { type AwSourceBindingEvalInput } from './eval-source-input.js';
7
8
  import type { ReviewProfile, ReviewProfileConfig } from './review-types.js';
8
9
  export { computeAwSourceBindingSelectedCasesDigest, computeAwSourceBindingSuiteDefaultsDigest, resolveAwSourceBindingEvalProvider, resolveEvalSourceBindingInput, selectAwSourceBindingEvalCases, type AwSourceBindingEvalCaseSelection, type AwSourceBindingEvalInput, type ResolvedEvalSourceBindingInput, } from './eval-source-input.js';
@@ -36,8 +37,8 @@ export type AwSourceBindingProfile = {
36
37
  config?: ReviewProfileConfig;
37
38
  } | {
38
39
  kind: 'portable';
39
- id: `${PortablePlatformTarget}-${Scope}`;
40
- platform: PortablePlatformTarget;
40
+ id: `${PlatformTarget}-${Scope}`;
41
+ platform: PlatformTarget;
41
42
  scope: Scope;
42
43
  inputDigest: string;
43
44
  } | ReviewProfile;
@@ -96,6 +97,7 @@ export interface AwSourceBindingV2 {
96
97
  subject: AwSourceBindingSubject;
97
98
  profile: AwSourceBindingProfile;
98
99
  evalInput?: AwSourceBindingEvalInput;
100
+ preparation: ComponentPreparationBinding[];
99
101
  artifacts: AwSourceBindingArtifact[];
100
102
  finalDigest: string;
101
103
  }
@@ -120,6 +122,7 @@ export interface WriteAwSourceBindingOptions {
120
122
  subject: AwSourceBindingSubject;
121
123
  profile: AwSourceBindingProfile;
122
124
  evalInput?: AwSourceBindingEvalInput;
125
+ preparation: ComponentPreparationBinding[];
123
126
  artifacts: AwSourceBindingArtifactInput[];
124
127
  }
125
128
  export interface AwSourceBindingWorkspaceValidationContext {
@@ -145,7 +148,7 @@ export declare function resolveWorkspaceBindingSource(workspace: Pick<CatalogWor
145
148
  export declare function resolveCatalogSnapshotBindingSource(source: Pick<CatalogSourceResolution, 'sourceId' | 'sourceIdentity' | 'logicalIdentity' | 'snapshotDigest' | 'rootDir'>): Promise<AwCatalogSnapshotBindingSource>;
146
149
  export declare function resolveEvalProfileBindingInput(profile: AwSkillEvalManifestV1Profile, plugins: readonly PluginMeta[], configOverrides?: ReviewProfileConfig): EvalProfileBindingInput;
147
150
  export declare function resolvePortablePluginProfileConfig(options: {
148
- platform: PortablePlatformTarget;
151
+ platform: PlatformTarget;
149
152
  plugin: PluginMeta;
150
153
  plugins?: readonly PluginMeta[];
151
154
  offlineConfig?: ReviewProfileConfig;
@@ -157,7 +160,7 @@ export declare function resolvePortablePluginProfileConfig(options: {
157
160
  logicalIdentity?: string;
158
161
  }): Promise<PortablePluginProfileConfig>;
159
162
  export declare function resolvePortableProfileBindingInputs(options: {
160
- platform: PortablePlatformTarget;
163
+ platform: PlatformTarget;
161
164
  plugins: readonly PluginMeta[];
162
165
  offlineConfig?: ReviewProfileConfig;
163
166
  pluginName: string;