@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
@@ -0,0 +1,276 @@
1
+ import { DEFAULT_AGENT_VERSION_PROBE_TIMEOUT_MS } from '../constants.js';
2
+ import { NativeCliError, runNativeCliChecked } from '../utils/native-cli.js';
3
+ import { installationInvocation } from './discovery.js';
4
+ import { inspectDeployment } from './inspection.js';
5
+ import { assertGeminiNativeOwner, assertGeminiProjectRules, assertGeminiRefreshSource, assertGeminiReplacementContent, finishGeminiNativeMutation, geminiActivationEvidence, geminiActivationRules, geminiRefreshNeedsReplacement, readGeminiActivationSnapshot, restoreGeminiReplacementActivation } from './gemini-activation.js';
6
+ import { geminiConsentInput } from './gemini-consent.js';
7
+ export function nativeRoute(route) {
8
+ return ['codex-marketplace', 'claude-marketplace', 'antigravity-cli', 'pi-package',
9
+ 'gemini-extension', 'copilot-marketplace', 'grok-cli'].includes(route);
10
+ }
11
+ export function routeReload(route) {
12
+ if (route === 'generic-skills')
13
+ return 'none';
14
+ if (route === 'cursor-workspace-hook')
15
+ return 'workspace-reload';
16
+ return 'new-session';
17
+ }
18
+ function blocked(code) {
19
+ throw Object.assign(new Error(code), { code, mutation: 'none' });
20
+ }
21
+ /** A valid list can hide an empty or untrusted Project scope. Query failures cannot. */
22
+ export function piProjectRegistrationHidden(binding, observation) {
23
+ return binding.route === 'pi-package' && binding.scope.kind === 'project'
24
+ && binding.consumers.length > 0 && binding.consumers.every((consumer) => consumer.version === '1.5.0')
25
+ && observation.physicalKey === binding.physicalKey && observation.registration === 'unknown'
26
+ && observation.diagnostics.some((diagnostic) => diagnostic.code === 'piProjectRegistrationNotVisible')
27
+ && !observation.diagnostics.some((diagnostic) => ['piNativeObservationUnconfirmed', 'deploymentPostcheckFailed'].includes(diagnostic.code));
28
+ }
29
+ /** Action success does not rewrite the later read-only registration observation. */
30
+ export function piProjectRemovalConfirmed(plan, receipt) {
31
+ return receipt.bindingId === plan.binding.id && piProjectRegistrationHidden(plan.binding, receipt.after)
32
+ && plan.effects.some((effect) => effect.kind === 'unregister' && receipt.effects.some((result) => result.id === effect.id && result.status === 'applied' && result.mutation === 'confirmed'));
33
+ }
34
+ /** Grok uninstall can remove a whole repository, so the exact registration must be exclusive. */
35
+ export function grokRegistrationOwned(binding, evidence, before, identity) {
36
+ return binding.route === 'grok-cli' && binding.scope.kind === 'user' && before.registration === 'present'
37
+ && before.physicalKey === binding.physicalKey
38
+ && before.ownership === 'aw' && evidence.sharedReferences === 'none' && identity?.route === binding.route
39
+ && identity.sourceLocation === evidence.layout.packageRoot && !!identity.registrationId
40
+ && before.nativeIdentity?.packageId === identity.packageId
41
+ && before.nativeIdentity.registrationId === identity.registrationId
42
+ && before.nativeIdentity.sourceLocation === identity.sourceLocation;
43
+ }
44
+ /** Claude registrations are scoped; the other native registration routes are physical-package scoped. */
45
+ export function nativeLifecycleEffectKey(binding, effect) {
46
+ if (!['register', 'refresh', 'unregister'].includes(effect.kind))
47
+ return null;
48
+ return JSON.stringify([binding.route, binding.physicalKey, effect.kind,
49
+ binding.route === 'claude-marketplace' || binding.route === 'pi-package' ? binding.activationKey : null]);
50
+ }
51
+ export async function executeNativeLifecycle(ctx, prepared, effect) {
52
+ const key = nativeLifecycleEffectKey(prepared.plan.binding, effect);
53
+ if (!key || !ctx.nativeEffects)
54
+ return executeNativeLifecycleEffect(ctx, prepared, effect);
55
+ let outcome = ctx.nativeEffects.get(key);
56
+ if (!outcome) {
57
+ outcome = executeNativeLifecycleEffect(ctx, prepared, effect);
58
+ ctx.nativeEffects.set(key, outcome);
59
+ }
60
+ return outcome;
61
+ }
62
+ /** Native verbs are fixed by the adapter, never supplied by a renderer. */
63
+ async function executeNativeLifecycleEffect(ctx, prepared, effect) {
64
+ const { binding, evidence } = prepared.plan;
65
+ const { identity, product, before } = prepared.driverState;
66
+ if (!identity)
67
+ blocked('nativeIdentityUnconfirmed');
68
+ if (!product && !(effect.kind === 'deactivate' && binding.route === 'codex-marketplace'))
69
+ blocked('clientInstallEntryUnavailable');
70
+ const scope = binding.scope.kind === 'user' ? 'user' : 'local';
71
+ const cwd = binding.scope.kind === 'project' ? binding.scope.projectRoot : ctx.cwd;
72
+ const id = identity.registrationId ?? identity.packageId;
73
+ let confirmed = false;
74
+ const run = async (args, input) => {
75
+ if (!product)
76
+ blocked('clientInstallEntryUnavailable');
77
+ const invocation = await installationInvocation(product, { ...ctx, cwd }, args);
78
+ try {
79
+ const result = await runNativeCliChecked({ ...invocation, ...(input ? { input } : {}), timeoutMs: Math.max(60_000, DEFAULT_AGENT_VERSION_PROBE_TIMEOUT_MS) }, ctx.runner);
80
+ confirmed = true;
81
+ return result;
82
+ }
83
+ catch (error) {
84
+ if (input && error instanceof NativeCliError
85
+ && error.cause?.code === 'nativeConsentPromptUnsupported') {
86
+ throw Object.assign(error, { code: 'nativeConsentPromptUnsupported', mutation: 'possible' });
87
+ }
88
+ // A non-zero exit does not prove that a third-party CLI made no changes.
89
+ if (error instanceof NativeCliError && error.cause?.code === 'ENOENT') {
90
+ throw Object.assign(error, { mutation: confirmed ? 'confirmed' : 'none' });
91
+ }
92
+ throw Object.assign(error instanceof Error ? error : new Error('nativeMutationFailed'), { mutation: 'possible' });
93
+ }
94
+ };
95
+ const activation = async (enabled) => {
96
+ if (binding.route === 'codex-marketplace' || binding.route === 'copilot-marketplace') {
97
+ return ctx.services.setActivation(binding, identity, enabled);
98
+ }
99
+ if (binding.route === 'pi-package')
100
+ return { mutation: 'none', changed: false };
101
+ if (enabled && before.consumers.some((consumer) => consumer.trust === 'required' || consumer.trust === 'blocked')) {
102
+ blocked('nativeTrustRequired');
103
+ }
104
+ if (binding.route === 'gemini-extension') {
105
+ return ctx.services.setActivation(binding, identity, enabled);
106
+ }
107
+ else if (binding.route === 'claude-marketplace') {
108
+ // Install already enables this scope. Claude rejects a repeated enable,
109
+ // so confirm the current owned registration before invoking the verb.
110
+ const current = await (ctx.inspect ? ctx.inspect(binding) : inspectDeployment(ctx, binding));
111
+ if (current.physicalKey === binding.physicalKey && current.ownership === 'aw'
112
+ && current.registration === 'present' && current.nativeIdentity !== null && current.nativeIdentity.registrationId === identity.registrationId
113
+ && current.nativeIdentity.sourceLocation === identity.sourceLocation
114
+ && binding.consumers.length > 0 && current.consumers.length === binding.consumers.length
115
+ && binding.consumers.every((consumer) => current.consumers.filter((observed) => observed.productId === consumer.id
116
+ && observed.activation === (enabled ? 'enabled' : 'disabled')).length === 1)) {
117
+ return { mutation: 'none', changed: false };
118
+ }
119
+ await run(['plugin', enabled ? 'enable' : 'disable', id, '--scope', scope]);
120
+ }
121
+ else {
122
+ await run(['plugin', enabled ? 'enable' : 'disable', identity.packageId]);
123
+ }
124
+ return { mutation: 'confirmed', changed: true };
125
+ };
126
+ if (effect.kind === 'activate' || effect.kind === 'deactivate')
127
+ return activation(effect.kind === 'activate');
128
+ if (effect.kind === 'register' && ['codex-marketplace', 'claude-marketplace', 'copilot-marketplace'].includes(binding.route)) {
129
+ const outcome = await ctx.services.registerMarketplace(binding, identity);
130
+ confirmed = outcome.mutation === 'confirmed';
131
+ if (outcome.mutation === 'possible')
132
+ throw Object.assign(new Error('marketplaceRegistrationUnknown'), { mutation: 'possible' });
133
+ }
134
+ switch (binding.route) {
135
+ case 'codex-marketplace':
136
+ if (effect.kind === 'unregister')
137
+ await run(['plugin', 'remove', id]);
138
+ else {
139
+ if (effect.kind === 'refresh')
140
+ await run(['plugin', 'remove', id]);
141
+ await run(['plugin', 'add', id]);
142
+ // Native add enables the user scope. Restore the reviewed activation immediately.
143
+ const outcome = await ctx.services.setActivation(binding, identity, true);
144
+ if (outcome.mutation === 'possible')
145
+ throw Object.assign(new Error('activationUnknown'), { mutation: 'possible' });
146
+ }
147
+ break;
148
+ case 'claude-marketplace':
149
+ await run(['plugin', effect.kind === 'unregister' ? 'uninstall' : effect.kind === 'refresh' ? 'update' : 'install', id, '--scope', scope]);
150
+ break;
151
+ case 'antigravity-cli': {
152
+ if (effect.kind === 'unregister' || effect.kind === 'refresh') {
153
+ const current = await (ctx.inspect ? ctx.inspect(binding) : inspectDeployment(ctx, binding));
154
+ if (current.physicalKey !== binding.physicalKey || current.registration !== 'present' || current.ownership !== 'aw'
155
+ || !current.nativePackageContentDigest || evidence.sharedReferences !== 'none'
156
+ || current.nativeIdentity?.packageId !== identity.packageId || current.nativeIdentity.sourceLocation !== identity.sourceLocation) {
157
+ blocked('nativeIdentityUnconfirmed');
158
+ }
159
+ }
160
+ // Fixed 1.3.4 install refreshes both version changes and same-version bytes.
161
+ await run(effect.kind === 'unregister' ? ['plugin', 'uninstall', identity.packageId]
162
+ : ['plugin', 'install', evidence.layout.packageRoot]);
163
+ break;
164
+ }
165
+ case 'pi-package': {
166
+ const result = await run([effect.kind === 'unregister' ? 'remove' : 'install', ...(binding.scope.kind === 'project' ? ['--local'] : []), identity.sourceLocation]);
167
+ if (effect.kind === 'unregister' && binding.scope.kind === 'project' && product?.version === '1.5.0'
168
+ && !result.stderr.trim() && result.stdout.replace(/\u001b\[[0-9;]*m/gu, '').replace(/\r\n/gu, '\n').trimEnd()
169
+ === `Removing ${identity.sourceLocation}...\nRemoved ${identity.sourceLocation}`) {
170
+ return { mutation: 'confirmed', changed: true, unregisterConfirmed: true };
171
+ }
172
+ break;
173
+ }
174
+ case 'gemini-extension': {
175
+ if (effect.kind === 'register' || effect.kind === 'refresh') {
176
+ if (ctx.geminiNativeConsent !== prepared.plan)
177
+ blocked('nativeConsentRequired');
178
+ if (product?.version !== '0.67.0')
179
+ blocked('nativeConsentVersionUnsupported');
180
+ }
181
+ if (!ctx.geminiActivationSnapshot)
182
+ blocked('nativeActivationEvidenceUnknown');
183
+ const snapshot = await readGeminiActivationSnapshot(ctx, ctx.geminiActivationSnapshot);
184
+ await assertGeminiProjectRules(ctx, binding, geminiActivationRules(snapshot, identity.packageId));
185
+ if (effect.kind !== 'register' && effect.kind !== 'refresh' && effect.kind !== 'unregister')
186
+ blocked('nativeRouteUnsupported');
187
+ const replace = effect.kind === 'refresh'
188
+ ? await geminiRefreshNeedsReplacement(ctx, binding, identity, evidence, before) : false;
189
+ if (effect.kind === 'unregister')
190
+ await assertGeminiNativeOwner(ctx, binding, identity, evidence);
191
+ await readGeminiActivationSnapshot(ctx, ctx.geminiActivationSnapshot);
192
+ if (effect.kind === 'unregister')
193
+ await run(['extensions', 'uninstall', identity.packageId]);
194
+ else if (replace) {
195
+ await assertGeminiRefreshSource(prepared.plan);
196
+ const step = async (kind, args, input) => {
197
+ let nativeError;
198
+ try {
199
+ await run(args, input);
200
+ }
201
+ catch (error) {
202
+ nativeError = error;
203
+ }
204
+ // Keep all reviewed activations even if a fixed native step changed
205
+ // its config before failing. Unexpected changes remain stale.
206
+ try {
207
+ await restoreGeminiReplacementActivation(ctx, identity, kind, snapshot, nativeError !== undefined);
208
+ }
209
+ catch (error) {
210
+ throw Object.assign(error instanceof Error ? error : new Error('nativeActivationRestoreFailed'), { mutation: confirmed ? 'confirmed' : nativeError?.mutation === 'none' ? 'none' : 'possible' });
211
+ }
212
+ Object.assign(ctx.geminiActivationSnapshot, geminiActivationEvidence(snapshot));
213
+ if (nativeError !== undefined)
214
+ throw nativeError;
215
+ };
216
+ try {
217
+ await step('unregister', ['extensions', 'uninstall', identity.packageId]);
218
+ await assertGeminiRefreshSource(prepared.plan);
219
+ await step('register', ['extensions', 'install', evidence.layout.packageRoot, '--consent', '--skip-settings'], geminiConsentInput('register', evidence.layout.packageRoot, cwd, identity.packageId));
220
+ await assertGeminiReplacementContent(ctx, prepared.plan, identity);
221
+ }
222
+ catch (error) {
223
+ const failure = error instanceof Error ? error : new Error('nativeMutationFailed');
224
+ if (!('code' in failure))
225
+ Object.assign(failure, { code: 'nativeInstallContentPostcheckFailed' });
226
+ throw Object.assign(failure, { mutation: confirmed ? 'confirmed' : error?.mutation === 'none' ? 'none' : 'possible' });
227
+ }
228
+ }
229
+ else if (effect.kind === 'refresh')
230
+ await run(['extensions', 'update', identity.packageId], geminiConsentInput('refresh', evidence.layout.packageRoot, cwd, identity.packageId));
231
+ else
232
+ await run(['extensions', 'install', evidence.layout.packageRoot, '--consent', '--skip-settings'], geminiConsentInput('register', evidence.layout.packageRoot, cwd, identity.packageId));
233
+ try {
234
+ await finishGeminiNativeMutation(ctx, evidence, binding, identity, effect.kind, snapshot);
235
+ Object.assign(ctx.geminiActivationSnapshot, geminiActivationEvidence(snapshot));
236
+ }
237
+ catch (error) {
238
+ // The host already changed its package. Keep extra configuration changes
239
+ // and report the partial action rather than overwriting a stale snapshot.
240
+ throw Object.assign(error instanceof Error ? error : new Error('nativeActivationRestoreFailed'), { mutation: 'confirmed' });
241
+ }
242
+ break;
243
+ }
244
+ case 'copilot-marketplace':
245
+ await run(['plugin', effect.kind === 'unregister' ? 'uninstall' : 'install', id]);
246
+ if (effect.kind !== 'unregister') {
247
+ const outcome = await ctx.services.setActivation(binding, identity, true);
248
+ if (outcome.mutation === 'possible')
249
+ throw Object.assign(new Error('activationUnknown'), { mutation: 'possible' });
250
+ }
251
+ break;
252
+ case 'grok-cli':
253
+ // projectTrusted reports folder/runtime trust, not consent to a new source.
254
+ // Only an existing exact, exclusive native registration can be refreshed
255
+ // with --trust. First install and recovery require explicit host consent.
256
+ if (effect.kind === 'register')
257
+ blocked('nativeTrustRequired');
258
+ if (effect.kind !== 'unregister' && (!before.consumers.length
259
+ || binding.consumers.some((product) => !before.consumers.some((consumer) => consumer.productId === product.id && consumer.trust === 'trusted'))))
260
+ blocked('nativeTrustRequired');
261
+ if (effect.kind === 'unregister' || effect.kind === 'refresh') {
262
+ const current = await (ctx.inspect ? ctx.inspect(binding) : inspectDeployment(ctx, binding));
263
+ if (!grokRegistrationOwned(binding, evidence, current, identity))
264
+ blocked('nativeIdentityUnconfirmed');
265
+ await run(['plugin', 'uninstall', identity.packageId, '--confirm', ...(effect.kind === 'refresh' ? ['--keep-data'] : [])]);
266
+ }
267
+ // Local update can leave an old copy while claiming it is a live symlink.
268
+ // Refresh preserves native plugin data and retains the AW source on failure.
269
+ if (effect.kind !== 'unregister')
270
+ await run(['plugin', 'install', evidence.layout.packageRoot, '--trust']);
271
+ break;
272
+ default: blocked('nativeRouteUnsupported');
273
+ }
274
+ return { mutation: confirmed ? 'confirmed' : 'none', changed: confirmed };
275
+ }
276
+ //# sourceMappingURL=lifecycle-native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle-native.js","sourceRoot":"","sources":["../../../src/platforms/lifecycle-native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAA6C,MAAM,wBAAwB,CAAC;AACxH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,8BAA8B,EACnH,0BAA0B,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,6BAA6B,EAC1G,4BAA4B,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,UAAU,WAAW,CAAC,KAAmB;IAC7C,OAAO,CAAC,mBAA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AA2B,CAAC,CAAC;gBACvG,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC7H,CAAC;YACD,0EAA0E;YAC1E,6EAA6E;YAC7E,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY;gBAAE,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;YAC3G,MAAM;QACR,OAAO,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAC5E,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { OwnedComponent } from '../utils/ownership.js';
2
+ import type { DeploymentBinding, DeploymentObservation, DeploymentReceipt, Diagnostic, HostContribution, LifecyclePrepareInput, MutationContext, NativeIdentity, PreparedDeployment, PrepareResult, ProductInstallation, ProjectionResult } from './contracts.js';
3
+ interface PreparedContribution {
4
+ effectId: string;
5
+ contribution: HostContribution;
6
+ component: OwnedComponent;
7
+ }
8
+ export interface PlatformDriverState {
9
+ readonly before: DeploymentObservation;
10
+ readonly identity: NativeIdentity | null;
11
+ readonly product: ProductInstallation | null;
12
+ readonly packageComponent: OwnedComponent | null;
13
+ readonly bundle: ProjectionResult['bundle'];
14
+ readonly contributions: PreparedContribution[];
15
+ readonly removals: Array<{
16
+ effectId: string;
17
+ component: OwnedComponent;
18
+ }>;
19
+ }
20
+ export declare function lifecycleDiagnostic(binding: DeploymentBinding, code: string, message: string): Diagnostic;
21
+ /** Selects fixed route operations from observed facts. It performs no I/O. */
22
+ export declare function preparePlatformLifecycle(input: LifecyclePrepareInput): PrepareResult<PlatformDriverState>;
23
+ /** The caller supplies these services only while it holds the existing AW_HOME lock. */
24
+ export declare function executePlatformLifecycle(ctx: MutationContext, prepared: PreparedDeployment<PlatformDriverState>): Promise<DeploymentReceipt>;
25
+ export {};