@lesliechan721/aw 0.1.0-beta.72 → 0.1.0-beta.74

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 (364) 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 +119 -4
  44. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  45. package/dist/src/commands/public-lifecycle.d.ts +2 -0
  46. package/dist/src/commands/public-lifecycle.js +29 -6
  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 +28 -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 +529 -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 +59 -0
  61. package/dist/src/commands/rebuild-platform-integration.js +1200 -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 +45 -16
  84. package/dist/src/index.js.map +1 -1
  85. package/dist/src/intent/scope-context.js +23 -19
  86. package/dist/src/intent/scope-context.js.map +1 -1
  87. package/dist/src/output/command-receipt.d.ts +1 -1
  88. package/dist/src/output/command-receipt.js +3 -1
  89. package/dist/src/output/command-receipt.js.map +1 -1
  90. package/dist/src/output/native-consent.d.ts +2 -0
  91. package/dist/src/output/native-consent.js +5 -0
  92. package/dist/src/output/native-consent.js.map +1 -0
  93. package/dist/src/output/public-result.js +60 -0
  94. package/dist/src/output/public-result.js.map +1 -1
  95. package/dist/src/output/rebuild-progress.js +5 -5
  96. package/dist/src/output/rebuild-progress.js.map +1 -1
  97. package/dist/src/output/receipt-projection.js +19 -2
  98. package/dist/src/output/receipt-projection.js.map +1 -1
  99. package/dist/src/platforms/capabilities.d.ts +10 -0
  100. package/dist/src/platforms/capabilities.js +158 -0
  101. package/dist/src/platforms/capabilities.js.map +1 -0
  102. package/dist/src/platforms/contracts.d.ts +338 -0
  103. package/dist/src/platforms/contracts.js +2 -0
  104. package/dist/src/platforms/contracts.js.map +1 -0
  105. package/dist/src/platforms/cursor-workspace-hook.d.ts +22 -0
  106. package/dist/src/platforms/cursor-workspace-hook.js +185 -0
  107. package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
  108. package/dist/src/platforms/discovery.d.ts +74 -0
  109. package/dist/src/platforms/discovery.js +582 -0
  110. package/dist/src/platforms/discovery.js.map +1 -0
  111. package/dist/src/platforms/gemini-activation.d.ts +36 -0
  112. package/dist/src/platforms/gemini-activation.js +331 -0
  113. package/dist/src/platforms/gemini-activation.js.map +1 -0
  114. package/dist/src/platforms/gemini-consent.d.ts +8 -0
  115. package/dist/src/platforms/gemini-consent.js +79 -0
  116. package/dist/src/platforms/gemini-consent.js.map +1 -0
  117. package/dist/src/platforms/identity.d.ts +4 -0
  118. package/dist/src/platforms/identity.js +22 -0
  119. package/dist/src/platforms/identity.js.map +1 -0
  120. package/dist/src/platforms/inspection-grok.d.ts +4 -0
  121. package/dist/src/platforms/inspection-grok.js +173 -0
  122. package/dist/src/platforms/inspection-grok.js.map +1 -0
  123. package/dist/src/platforms/inspection-native.d.ts +6 -0
  124. package/dist/src/platforms/inspection-native.js +379 -0
  125. package/dist/src/platforms/inspection-native.js.map +1 -0
  126. package/dist/src/platforms/inspection-pi.d.ts +4 -0
  127. package/dist/src/platforms/inspection-pi.js +212 -0
  128. package/dist/src/platforms/inspection-pi.js.map +1 -0
  129. package/dist/src/platforms/inspection.d.ts +13 -0
  130. package/dist/src/platforms/inspection.js +189 -0
  131. package/dist/src/platforms/inspection.js.map +1 -0
  132. package/dist/src/platforms/layout.d.ts +21 -0
  133. package/dist/src/platforms/layout.js +239 -0
  134. package/dist/src/platforms/layout.js.map +1 -0
  135. package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
  136. package/dist/src/platforms/lifecycle-native-services.js +147 -0
  137. package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
  138. package/dist/src/platforms/lifecycle-native.d.ts +9 -0
  139. package/dist/src/platforms/lifecycle-native.js +252 -0
  140. package/dist/src/platforms/lifecycle-native.js.map +1 -0
  141. package/dist/src/platforms/lifecycle.d.ts +25 -0
  142. package/dist/src/platforms/lifecycle.js +452 -0
  143. package/dist/src/platforms/lifecycle.js.map +1 -0
  144. package/dist/src/platforms/managed-command-placement.d.ts +8 -0
  145. package/dist/src/platforms/managed-command-placement.js +79 -0
  146. package/dist/src/platforms/managed-command-placement.js.map +1 -0
  147. package/dist/src/platforms/projection-code-extension.d.ts +8 -0
  148. package/dist/src/platforms/projection-code-extension.js +121 -0
  149. package/dist/src/platforms/projection-code-extension.js.map +1 -0
  150. package/dist/src/platforms/projection-command-resources.d.ts +7 -0
  151. package/dist/src/platforms/projection-command-resources.js +74 -0
  152. package/dist/src/platforms/projection-command-resources.js.map +1 -0
  153. package/dist/src/platforms/projection-files.d.ts +27 -0
  154. package/dist/src/platforms/projection-files.js +111 -0
  155. package/dist/src/platforms/projection-files.js.map +1 -0
  156. package/dist/src/platforms/projection-marketplace.d.ts +19 -0
  157. package/dist/src/platforms/projection-marketplace.js +42 -0
  158. package/dist/src/platforms/projection-marketplace.js.map +1 -0
  159. package/dist/src/platforms/projection.d.ts +10 -0
  160. package/dist/src/platforms/projection.js +446 -0
  161. package/dist/src/platforms/projection.js.map +1 -0
  162. package/dist/src/platforms/registry.d.ts +4 -0
  163. package/dist/src/platforms/registry.js +30 -0
  164. package/dist/src/platforms/registry.js.map +1 -0
  165. package/dist/src/platforms/supplement-layout.d.ts +16 -0
  166. package/dist/src/platforms/supplement-layout.js +31 -0
  167. package/dist/src/platforms/supplement-layout.js.map +1 -0
  168. package/dist/src/portable/commands.d.ts +7 -5
  169. package/dist/src/portable/commands.js +6 -1
  170. package/dist/src/portable/commands.js.map +1 -1
  171. package/dist/src/portable/materializer.d.ts +8 -6
  172. package/dist/src/portable/materializer.js +47 -245
  173. package/dist/src/portable/materializer.js.map +1 -1
  174. package/dist/src/portable/recovery-layout.js +2 -15
  175. package/dist/src/portable/recovery-layout.js.map +1 -1
  176. package/dist/src/portable/recovery.d.ts +10 -1
  177. package/dist/src/portable/recovery.js +34 -8
  178. package/dist/src/portable/recovery.js.map +1 -1
  179. package/dist/src/recovery/coordinator.d.ts +9 -8
  180. package/dist/src/recovery/coordinator.js +153 -120
  181. package/dist/src/recovery/coordinator.js.map +1 -1
  182. package/dist/src/recovery/demand.d.ts +1 -1
  183. package/dist/src/recovery/demand.js +10 -42
  184. package/dist/src/recovery/demand.js.map +1 -1
  185. package/dist/src/recovery/joint-coordinator.d.ts +1 -0
  186. package/dist/src/recovery/joint-coordinator.js +278 -84
  187. package/dist/src/recovery/joint-coordinator.js.map +1 -1
  188. package/dist/src/recovery/joint-demand.d.ts +4 -22
  189. package/dist/src/recovery/joint-demand.js +43 -40
  190. package/dist/src/recovery/joint-demand.js.map +1 -1
  191. package/dist/src/recovery/receipt.d.ts +23 -8
  192. package/dist/src/recovery/retirement.d.ts +1 -1
  193. package/dist/src/recovery/retirement.js +122 -29
  194. package/dist/src/recovery/retirement.js.map +1 -1
  195. package/dist/src/recovery/status.d.ts +15 -7
  196. package/dist/src/recovery/status.js +481 -81
  197. package/dist/src/recovery/status.js.map +1 -1
  198. package/dist/src/recovery/types.d.ts +3 -3
  199. package/dist/src/review/platform-profile.d.ts +3 -0
  200. package/dist/src/review/platform-profile.js +16 -0
  201. package/dist/src/review/platform-profile.js.map +1 -0
  202. package/dist/src/review/review-profile.d.ts +1 -0
  203. package/dist/src/review/review-profile.js +8 -2
  204. package/dist/src/review/review-profile.js.map +1 -1
  205. package/dist/src/review/review-selection.d.ts +2 -11
  206. package/dist/src/review/review-selection.js +97 -71
  207. package/dist/src/review/review-selection.js.map +1 -1
  208. package/dist/src/review/review-types.d.ts +3 -0
  209. package/dist/src/review/review-types.js.map +1 -1
  210. package/dist/src/review/skill-materialization.d.ts +44 -9
  211. package/dist/src/review/skill-materialization.js +112 -136
  212. package/dist/src/review/skill-materialization.js.map +1 -1
  213. package/dist/src/review/source-binding.d.ts +8 -5
  214. package/dist/src/review/source-binding.js +99 -41
  215. package/dist/src/review/source-binding.js.map +1 -1
  216. package/dist/src/tui/agent-management.js +112 -10
  217. package/dist/src/tui/agent-management.js.map +1 -1
  218. package/dist/src/tui/agent-settings.d.ts +3 -0
  219. package/dist/src/tui/agent-settings.js +10 -11
  220. package/dist/src/tui/agent-settings.js.map +1 -1
  221. package/dist/src/tui/console-app-v4.js +85 -20
  222. package/dist/src/tui/console-app-v4.js.map +1 -1
  223. package/dist/src/tui/content-item-card.js +2 -2
  224. package/dist/src/tui/content-item-card.js.map +1 -1
  225. package/dist/src/tui/controller-runtime.js +199 -152
  226. package/dist/src/tui/controller-runtime.js.map +1 -1
  227. package/dist/src/tui/controller.d.ts +6 -9
  228. package/dist/src/tui/controller.js +40 -18
  229. package/dist/src/tui/controller.js.map +1 -1
  230. package/dist/src/tui/deployment-view.d.ts +10 -0
  231. package/dist/src/tui/deployment-view.js +91 -0
  232. package/dist/src/tui/deployment-view.js.map +1 -0
  233. package/dist/src/tui/glossary.js +4 -4
  234. package/dist/src/tui/glossary.js.map +1 -1
  235. package/dist/src/tui/model.d.ts +5 -0
  236. package/dist/src/tui/model.js +73 -12
  237. package/dist/src/tui/model.js.map +1 -1
  238. package/dist/src/tui/operation-diagnostic-screens.js +2 -1
  239. package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
  240. package/dist/src/tui/operation-history.d.ts +5 -4
  241. package/dist/src/tui/operation-history.js.map +1 -1
  242. package/dist/src/tui/operation-review-planner.d.ts +7 -2
  243. package/dist/src/tui/operation-review-planner.js +97 -42
  244. package/dist/src/tui/operation-review-planner.js.map +1 -1
  245. package/dist/src/tui/plugin-content.d.ts +5 -3
  246. package/dist/src/tui/plugin-content.js +70 -508
  247. package/dist/src/tui/plugin-content.js.map +1 -1
  248. package/dist/src/tui/plugin-detail.d.ts +3 -2
  249. package/dist/src/tui/plugin-detail.js +33 -25
  250. package/dist/src/tui/plugin-detail.js.map +1 -1
  251. package/dist/src/tui/scoped-inventory.d.ts +10 -6
  252. package/dist/src/tui/scoped-inventory.js +34 -1
  253. package/dist/src/tui/scoped-inventory.js.map +1 -1
  254. package/dist/src/types.d.ts +4 -63
  255. package/dist/src/types.js.map +1 -1
  256. package/dist/src/utils/agent-version.d.ts +10 -4
  257. package/dist/src/utils/agent-version.js.map +1 -1
  258. package/dist/src/utils/artifact-plan.d.ts +26 -2
  259. package/dist/src/utils/artifact-plan.js +113 -489
  260. package/dist/src/utils/artifact-plan.js.map +1 -1
  261. package/dist/src/utils/artifact-renderer.d.ts +100 -93
  262. package/dist/src/utils/artifact-renderer.js +173 -346
  263. package/dist/src/utils/artifact-renderer.js.map +1 -1
  264. package/dist/src/utils/artifact-request.d.ts +21 -11
  265. package/dist/src/utils/artifact-request.js +56 -80
  266. package/dist/src/utils/artifact-request.js.map +1 -1
  267. package/dist/src/utils/bundle-layout.js +30 -146
  268. package/dist/src/utils/bundle-layout.js.map +1 -1
  269. package/dist/src/utils/catalog-digests.d.ts +2 -12
  270. package/dist/src/utils/catalog-digests.js +0 -39
  271. package/dist/src/utils/catalog-digests.js.map +1 -1
  272. package/dist/src/utils/catalog-source-references.d.ts +7 -0
  273. package/dist/src/utils/catalog-source-references.js +234 -19
  274. package/dist/src/utils/catalog-source-references.js.map +1 -1
  275. package/dist/src/utils/codex-config-observation.d.ts +19 -0
  276. package/dist/src/utils/codex-config-observation.js +145 -0
  277. package/dist/src/utils/codex-config-observation.js.map +1 -0
  278. package/dist/src/utils/codex-executable-discovery.d.ts +2 -0
  279. package/dist/src/utils/codex-executable-discovery.js +47 -13
  280. package/dist/src/utils/codex-executable-discovery.js.map +1 -1
  281. package/dist/src/utils/codex-manager.js +1 -1
  282. package/dist/src/utils/codex-manager.js.map +1 -1
  283. package/dist/src/utils/codex-native-observation.d.ts +3 -0
  284. package/dist/src/utils/codex-native-observation.js +53 -0
  285. package/dist/src/utils/codex-native-observation.js.map +1 -1
  286. package/dist/src/utils/codex-shared-native.d.ts +3 -1
  287. package/dist/src/utils/codex-shared-native.js +46 -5
  288. package/dist/src/utils/codex-shared-native.js.map +1 -1
  289. package/dist/src/utils/codex-skill-staging.d.ts +4 -3
  290. package/dist/src/utils/codex-skill-staging.js.map +1 -1
  291. package/dist/src/utils/codex-surface-analysis.d.ts +5 -2
  292. package/dist/src/utils/codex-surface-analysis.js +28 -57
  293. package/dist/src/utils/codex-surface-analysis.js.map +1 -1
  294. package/dist/src/utils/component-command-preparation.d.ts +34 -0
  295. package/dist/src/utils/component-command-preparation.js +228 -0
  296. package/dist/src/utils/component-command-preparation.js.map +1 -0
  297. package/dist/src/utils/component-resources.d.ts +43 -0
  298. package/dist/src/utils/component-resources.js +304 -0
  299. package/dist/src/utils/component-resources.js.map +1 -0
  300. package/dist/src/utils/dynamic-skill-tree.d.ts +17 -6
  301. package/dist/src/utils/dynamic-skill-tree.js +7 -3
  302. package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
  303. package/dist/src/utils/local-marketplace.d.ts +11 -44
  304. package/dist/src/utils/local-marketplace.js +11 -638
  305. package/dist/src/utils/local-marketplace.js.map +1 -1
  306. package/dist/src/utils/managed-command-evidence.d.ts +2 -2
  307. package/dist/src/utils/managed-command-evidence.js +5 -81
  308. package/dist/src/utils/managed-command-evidence.js.map +1 -1
  309. package/dist/src/utils/managed-command-materialization.d.ts +5 -2
  310. package/dist/src/utils/managed-command-materialization.js +35 -35
  311. package/dist/src/utils/managed-command-materialization.js.map +1 -1
  312. package/dist/src/utils/managed-command-preparation.d.ts +67 -0
  313. package/dist/src/utils/managed-command-preparation.js +146 -0
  314. package/dist/src/utils/managed-command-preparation.js.map +1 -0
  315. package/dist/src/utils/managed-command-review.d.ts +26 -0
  316. package/dist/src/utils/managed-command-review.js +68 -0
  317. package/dist/src/utils/managed-command-review.js.map +1 -0
  318. package/dist/src/utils/managed-command-store.js +26 -15
  319. package/dist/src/utils/managed-command-store.js.map +1 -1
  320. package/dist/src/utils/native-cli.d.ts +19 -0
  321. package/dist/src/utils/native-cli.js +45 -2
  322. package/dist/src/utils/native-cli.js.map +1 -1
  323. package/dist/src/utils/native-demand.d.ts +20 -1
  324. package/dist/src/utils/native-demand.js.map +1 -1
  325. package/dist/src/utils/native-tool-review.d.ts +3 -6
  326. package/dist/src/utils/native-tool-review.js +25 -11
  327. package/dist/src/utils/native-tool-review.js.map +1 -1
  328. package/dist/src/utils/ownership.d.ts +26 -3
  329. package/dist/src/utils/ownership.js +95 -9
  330. package/dist/src/utils/ownership.js.map +1 -1
  331. package/dist/src/utils/paths.d.ts +1 -1
  332. package/dist/src/utils/paths.js +2 -0
  333. package/dist/src/utils/paths.js.map +1 -1
  334. package/dist/src/utils/platform-empty-state.d.ts +46 -0
  335. package/dist/src/utils/platform-empty-state.js +123 -0
  336. package/dist/src/utils/platform-empty-state.js.map +1 -0
  337. package/dist/src/utils/plugin-config-impact.d.ts +17 -11
  338. package/dist/src/utils/plugin-config-impact.js +46 -62
  339. package/dist/src/utils/plugin-config-impact.js.map +1 -1
  340. package/dist/src/utils/plugin-config-write.js +52 -53
  341. package/dist/src/utils/plugin-config-write.js.map +1 -1
  342. package/dist/src/utils/plugin-config.d.ts +0 -2
  343. package/dist/src/utils/plugin-config.js +0 -6
  344. package/dist/src/utils/plugin-config.js.map +1 -1
  345. package/dist/src/utils/plugin-dependencies.d.ts +1 -1
  346. package/dist/src/utils/plugin-dependencies.js.map +1 -1
  347. package/dist/src/utils/runtime-config.d.ts +5 -7
  348. package/dist/src/utils/runtime-config.js +12 -25
  349. package/dist/src/utils/runtime-config.js.map +1 -1
  350. package/dist/src/utils/windows-npm-shim.js +19 -2
  351. package/dist/src/utils/windows-npm-shim.js.map +1 -1
  352. package/package.json +3 -3
  353. package/dist/src/utils/claude-native-render-receipt.d.ts +0 -14
  354. package/dist/src/utils/claude-native-render-receipt.js +0 -26
  355. package/dist/src/utils/claude-native-render-receipt.js.map +0 -1
  356. package/dist/src/utils/claude-skills-root.d.ts +0 -8
  357. package/dist/src/utils/claude-skills-root.js +0 -87
  358. package/dist/src/utils/claude-skills-root.js.map +0 -1
  359. package/dist/src/utils/codex-native-render-receipt.d.ts +0 -40
  360. package/dist/src/utils/codex-native-render-receipt.js +0 -205
  361. package/dist/src/utils/codex-native-render-receipt.js.map +0 -1
  362. package/dist/src/utils/slash-commands.d.ts +0 -1
  363. package/dist/src/utils/slash-commands.js +0 -2
  364. package/dist/src/utils/slash-commands.js.map +0 -1
@@ -27,6 +27,8 @@ import { resolveTuiSizePolicy } from './layout.js';
27
27
  import { buildDependencyGraphProjection, buildUnifiedDependencyGraphProjection, } from './dependency-graph.js';
28
28
  import { DependencyGraphView, projectDependencyGraphView } from './dependency-graph-view.js';
29
29
  import { agentLabel, platformLabel, scopeLabel, recoveryReason } from './glossary.js';
30
+ import { deploymentPlanLines, deploymentResultLines, deploymentObservationLines, deploymentExclusionLines, componentGapLines } from './deployment-view.js';
31
+ import { projectDeploymentReceipt, projectDeploymentObservation } from '../commands/public-lifecycle-result.js';
30
32
  import { InputDisplay, removeLastGrapheme } from './input-display.js';
31
33
  import { QueryHeader, querySearchWidth } from './query-header.js';
32
34
  import { Pager, Reader, paginateWrappedRows, readerPage } from './reader.js';
@@ -35,7 +37,7 @@ import { ContentItemCard, contentItemCardLayout, contentItemCardWindowHeight, co
35
37
  import { SourceDetailCard, sourceDetailCardLayout } from './source-detail-card.js';
36
38
  import { catalogRefPolicyForPreset } from './source-ref-presets.js';
37
39
  import { buildPlatformActions, configObjectHasSensitiveChild, hasInstalledPlacement, configValuesEqual, } from './model.js';
38
- import { managedCommandPlanChanges } from './operation-review-planner.js';
40
+ import { managedCommandRecoveryPlanChanges } from './operation-review-planner.js';
39
41
  import { resolveTuiGlobalKeyAction, resolveTuiSessionNavigationKey } from './keys.js';
40
42
  import { tuiTheme } from './theme.js';
41
43
  import { contentRowBudget, rowViewport, wrapDisplayText } from './viewport.js';
@@ -51,6 +53,27 @@ function splitTaskLines(context) {
51
53
  .map((target) => `其余范围未处理:${targetLabel(target)}`),
52
54
  ];
53
55
  }
56
+ function scopedDependencyCleanupTargets(plan) {
57
+ if (plan.kind !== 'recovery')
58
+ return [];
59
+ const targets = new Map();
60
+ const visit = (entry) => {
61
+ for (const target of entry.dependencyCleanupTargets ?? []) {
62
+ const key = `${target.pluginId}\0${target.agent}\0${target.scope}`;
63
+ targets.set(key, target);
64
+ }
65
+ for (const child of entry.joint?.children ?? [])
66
+ visit(child);
67
+ };
68
+ visit(plan.plan);
69
+ return [...targets.values()];
70
+ }
71
+ function scopedDependencyCleanupLines(plan, technical = false) {
72
+ return scopedDependencyCleanupTargets(plan).flatMap((target) => [
73
+ `− 清理不再需要的依赖:${technical ? target.pluginId : recoveryPluginLabel(target.pluginId)}`,
74
+ ` → ${agentLabel(target.agent)} · ${scopeLabel(target.scope)}`,
75
+ ]);
76
+ }
54
77
  function scopedRiskReasons(plan) {
55
78
  if (plan.kind === 'targets' || plan.kind === 'intent')
56
79
  return [];
@@ -61,6 +84,17 @@ function scopedRiskReasons(plan) {
61
84
  ? ['本次会清理个人原生输出,可能影响其他项目。'] : []),
62
85
  ];
63
86
  const reasons = [];
87
+ for (const deployment of scopedDeploymentPlans(plan)) {
88
+ if (deployment.effects.length && (deployment.binding.consumers.length > 1 || deployment.evidence.sharedReferences !== 'none')) {
89
+ reasons.push(`${agentLabel(deployment.binding.platform)} 的原生包变更会影响所列产品面或其他共享引用,请检查具体动作。`);
90
+ }
91
+ if (deployment.effects.some((effect) => effect.destructive))
92
+ reasons.push(`${agentLabel(deployment.binding.platform)} 将撤销或移除所列内容。`);
93
+ }
94
+ const dependencyCleanup = scopedDependencyCleanupTargets(plan);
95
+ if (dependencyCleanup.length > 0) {
96
+ reasons.push(`本次还会清理 ${dependencyCleanup.length} 个不再需要的依赖位置;请确认所列依赖。`);
97
+ }
64
98
  const visit = (entry) => {
65
99
  reasons.push(...entry.nativeGroups.flatMap((group) => (group.preview.codexReconcilePlans ?? []).filter((item) => item.review.requiresConfirmation)
66
100
  .map((item) => item.review.sharedImpact.warning
@@ -85,6 +119,23 @@ function scopedRiskReasons(plan) {
85
119
  }
86
120
  return [...new Set(reasons)];
87
121
  }
122
+ function scopedDeploymentPlans(plan) {
123
+ if (plan.kind === 'targets' || plan.kind === 'intent')
124
+ return [];
125
+ if (plan.kind === 'retire')
126
+ return plan.plan.operationPlan?.deploymentPlans ?? [];
127
+ const deployments = new Map();
128
+ const visit = (entry) => {
129
+ for (const group of entry.nativeGroups)
130
+ for (const deployment of group.preview.operationPlan?.deploymentPlans ?? [])
131
+ deployments.set(deployment.binding.id, deployment);
132
+ if ('joint' in entry)
133
+ for (const child of entry.joint?.children ?? [])
134
+ visit(child);
135
+ };
136
+ visit(plan.plan);
137
+ return [...deployments.values()];
138
+ }
88
139
  function recoveryPluginLabel(id) {
89
140
  const [source, ...name] = id.split('/');
90
141
  return name.length ? `${name.join('/')}(${source})` : id;
@@ -97,7 +148,7 @@ function recoveryTargetLines(receipt, result) {
97
148
  if (result) {
98
149
  action = target.satisfaction === 'unsupported' || target.satisfaction === 'excluded' ? '! 已跳过'
99
150
  : target.execution === 'applied' || target.execution === 'no-op' ? '✓ 完成'
100
- : target.execution === 'failed' || target.execution === 'partial' ? '× 安装失败'
151
+ : target.execution === 'partial' ? '! 部分完成' : target.execution === 'failed' ? '× 执行失败'
101
152
  : target.blockers.length ? '! 已跳过' : '? 尚未确认';
102
153
  }
103
154
  else if (target.blockers.length || target.satisfaction === 'excluded' || target.satisfaction === 'unsupported') {
@@ -107,8 +158,11 @@ function recoveryTargetLines(receipt, result) {
107
158
  action = '− 移除';
108
159
  }
109
160
  else if ((target.content === 'satisfied' || target.observation === 'verified') && receipt.command !== 'reinstall') {
110
- unchanged += 1;
111
- continue;
161
+ if (!target.deploymentExclusions?.length && !target.componentGaps?.length) {
162
+ unchanged += 1;
163
+ continue;
164
+ }
165
+ action = '✓ 当前输出已满足';
112
166
  }
113
167
  else
114
168
  action = target.content === 'absent' || target.observation === 'missing' ? '+ 新增安装' : '↻ 同步并修复';
@@ -116,14 +170,17 @@ function recoveryTargetLines(receipt, result) {
116
170
  : target.satisfaction === 'excluded' ? '已关闭此 Agent'
117
171
  : target.satisfaction === 'unsupported' ? '插件不支持此 Agent' : undefined;
118
172
  const label = `${action} ${recoveryPluginLabel(target.pluginId)} ${scopeLabel(target.scope)}`;
119
- const key = `${label}\0${reason ?? ''}`;
120
- const group = groups.get(key) ?? { label: `${label}${reason ? ` · ${reason}` : ''}`, targets: [] };
121
- const agent = agentLabel(target.agent);
122
- if (!group.targets.includes(agent))
123
- group.targets.push(agent);
173
+ const key = target.agent;
174
+ const group = groups.get(key) ?? { label: `→ ${agentLabel(target.agent)}`, targets: [] };
175
+ group.targets.push(`${label}${reason ? ` · ${reason}` : ''}`);
176
+ if (result && target.deploymentReceipts)
177
+ group.targets.push(...deploymentResultLines(target.deploymentReceipts.map(projectDeploymentReceipt)));
178
+ else if (result && target.deploymentObservations)
179
+ group.targets.push(...deploymentObservationLines(target.deploymentObservations.map(projectDeploymentObservation)));
180
+ group.targets.push(...deploymentExclusionLines(target.deploymentExclusions ?? []), ...componentGapLines(target.componentGaps ?? []));
124
181
  groups.set(key, group);
125
182
  }
126
- return [...groups.values()].flatMap((group) => [group.label, ` → ${group.targets.join(' · ')}`])
183
+ return [...groups.values()].flatMap((group) => [group.label, ...group.targets])
127
184
  .concat(unchanged ? [`✓ 另有 ${unchanged} 项已是最新`] : []);
128
185
  }
129
186
  function scopedPlanSummary(plan) {
@@ -137,7 +194,7 @@ function scopedPlanSummary(plan) {
137
194
  ].join('\n');
138
195
  const receipt = plan.plan.receipt;
139
196
  const lines = [receipt.coverage?.scopes.length === 2 ? '所有项目 + 当前项目' : scopeLabel(plan.scope),
140
- ...recoveryTargetLines(receipt, false)];
197
+ ...recoveryTargetLines(receipt, false), ...deploymentPlanLines(scopedDeploymentPlans(plan)), ...scopedDependencyCleanupLines(plan)];
141
198
  if (plan.kind === 'recovery' && plan.plan.sourceRefreshes?.length) {
142
199
  lines.unshift(...plan.plan.sourceRefreshes.map((refresh) => `↻ 启用来源 ${refresh.sourceId} 的候选版本`), '来源启用后,将重新准备插件操作汇总;本次不会直接更新插件。');
143
200
  }
@@ -216,19 +273,21 @@ function scopedPlanText(plan, technical = false) {
216
273
  ? plan.kind === 'retire' ? '删除当前范围本机依赖覆盖' : '保存当前范围明确选择的依赖偏好' : '无'}`,
217
274
  `配置变更(计划):${impact.config ? '删除所选插件的全部本机配置(common 与所有平台)' : '无'}`,
218
275
  `输出变更(计划):${impact.outputs ? '执行所列精确目标' : '无可执行输出变更'}`,
276
+ ...scopedDependencyCleanupLines(plan, true),
219
277
  ...receipt.targetResults.map((target) => `${target.pluginId} · ${agentLabel(target.agent)} [${target.scope === 'user' ? '个人' : '当前项目'}] · ${target.delivery?.kind === 'native' ? '原生' : target.delivery?.kind === 'agent-skills' ? 'Skills' : '不支持'} · ${target.blockers.length
220
278
  ? `受阻:${target.blockers.map((blocker) => blocker.code).join('、')}` : target.observation}`),
221
279
  ...diagnostics,
222
280
  ...receipt.targetResults.flatMap((target) => target.reasons?.map((reason) => `${reason.code} · ${reason.message}`) ?? []),
223
281
  ...plan.plan.changes.map((change) => `影响:${change}`),
224
282
  ...plan.plan.warnings.map((warning) => `注意:${warning}`),
283
+ ...deploymentPlanLines(scopedDeploymentPlans(plan), true),
225
284
  ...(plan.kind === 'recovery' ? scopedCommandPlanText(plan) : []),
226
285
  ...(plan.kind === 'retire' ? [`配置删除选项:${plan.plan.options.deleteConfig
227
286
  ? impact.config ? '已选择' : '已选择;当前没有可删除配置' : '关闭(默认)'}`] : []),
228
287
  ].join('\n');
229
288
  }
230
289
  function scopedCommandPlanText(plan) {
231
- return managedCommandPlanChanges(plan.plan.nativeGroups.flatMap((group) => group.preview.operationPlan?.actions ?? []))
290
+ return managedCommandRecoveryPlanChanges(plan.plan)
232
291
  .map((change) => `${change.title}${change.description ? `:${change.description}` : ''}`);
233
292
  }
234
293
  function scopedResultText(receipt, technical = false) {
@@ -251,6 +310,8 @@ function scopedResultText(receipt, technical = false) {
251
310
  ...receipt.targetResults.flatMap((target) => target.reasons?.map((reason) => `${reason.code} · ${reason.message}`) ?? []),
252
311
  ...(reviewStale ? ['本次未执行,需要重新准备。'] : []),
253
312
  ...receipt.targetResults.map((target) => `${target.pluginId} · ${agentLabel(target.agent)} [${target.scope === 'user' ? '个人' : '当前项目'}] · ${target.delivery?.kind === 'native' ? '原生' : target.delivery?.kind === 'agent-skills' ? 'Skills' : '无交付'} · ${target.execution} · ${target.observation}${target.blockers.length ? ` · 受阻 ${target.blockers.map((blocker) => blocker.code).join('、')}` : ''}`),
313
+ ...receipt.targetResults.flatMap((target) => target.deploymentReceipts ? deploymentResultLines(target.deploymentReceipts.map(projectDeploymentReceipt), true)
314
+ : target.deploymentObservations ? deploymentObservationLines(target.deploymentObservations.map(projectDeploymentObservation), true) : []),
254
315
  ...receipt.targetResults.flatMap((target) => target.recoveryActions?.map((action) => `${target.pluginId} · ${target.agent}:${action}`) ?? []),
255
316
  ...(receipt.commandResults ?? []).flatMap((result) => [
256
317
  `命令${result.producer.kind === 'package' ? '包' : '生产者'} ${result.producer.key} · ${result.producer.sourceId}/${result.producer.pluginName} · ${scopeLabel(result.producer.scope)}${result.producer.platform ? ` · ${platformLabel(result.producer.platform)}` : ''} · ${result.state}`,
@@ -2721,7 +2782,7 @@ export function ConsoleAppV4(props) {
2721
2782
  };
2722
2783
  const beginReview = (intent, returnRoute) => {
2723
2784
  setSplitTaskReview(undefined);
2724
- const agentForPlatform = (platform) => platform === 'claude' ? 'claude' : 'codex';
2785
+ const agentForPlatform = (platform) => platform;
2725
2786
  if (intent.kind === 'pluginWrite') {
2726
2787
  const agents = intent.platform === 'both' ? ['codex', 'claude']
2727
2788
  : [agentForPlatform(intent.platform)];
@@ -2748,6 +2809,7 @@ export function ConsoleAppV4(props) {
2748
2809
  agent: agentForPlatform(target.platform) }));
2749
2810
  beginScopedTask({ kind: 'recovery', scope: intent.targets[0].scope,
2750
2811
  command: intent.goal === 'update' ? 'reinstall' : 'sync',
2812
+ ...(intent.goal === 'update' ? { allowDependencySelectors: true } : {}),
2751
2813
  selectors: [...new Set(exactTargets.map((target) => target.pluginId))],
2752
2814
  targets: [...new Set(exactTargets.map((target) => target.agent))], exactTargets,
2753
2815
  ...(intent.scriptTimeoutMs !== undefined ? { scriptTimeoutMs: intent.scriptTimeoutMs } : {}) });
@@ -3181,7 +3243,7 @@ export function ConsoleAppV4(props) {
3181
3243
  return;
3182
3244
  }
3183
3245
  try {
3184
- const agent = platform === 'claude' ? 'claude' : 'codex';
3246
+ const agent = platform;
3185
3247
  beginScopedTask({ kind: 'recovery', command: 'cleanup', scope: selectedScope,
3186
3248
  selectors: [pluginId], targets: [agent], exactTargets: [{ pluginId, agent }], force: true }, () => props.controller.startForceCleanupReview(candidate));
3187
3249
  setFocus(0);
@@ -4094,10 +4156,12 @@ export function ConsoleAppV4(props) {
4094
4156
  .map((target) => `${agentSummaries()[target]?.symbol ?? '?'} ${agentLabel(target)}`).join(' · ') || '请选择本机使用的 Agent'),
4095
4157
  run: () => openAgentManagement() },
4096
4158
  ];
4159
+ if (size.rows <= 18 && snapshot.projectRoot)
4160
+ actions[1].description = `当前项目 ${path.basename(snapshot.projectRoot)}`;
4097
4161
  if (size.rows <= 18 && wrapConsoleText(actions[3].description ?? '', size.columns - 4).length > 1)
4098
4162
  title = '';
4099
4163
  content = _jsxs(Box, { flexDirection: "column", children: [actions.map((action, index) => _jsx(Box, { flexShrink: 0, marginBottom: size.rows >= 24 ? 1 : 0, children: _jsx(HomeNavTile, { width: size.columns - 2, title: action.label, focused: focus === index, children: index === 3 ? _jsx(AgentStatusText, { text: action.description ?? '' }) : _jsx(Text, { wrap: "wrap", children: action.description?.split(' · ').map((state, stateIndex) => _jsxs(Text, { color: state.startsWith('↑') ? tuiTheme.roles.change : state.startsWith('!') || state.startsWith('↻') ? tuiTheme.roles.warning
4100
- : state.startsWith('?') ? tuiTheme.roles.unknown : state.startsWith('✓') ? tuiTheme.roles.success : tuiTheme.roles.secondary, children: [stateIndex > 0 ? ' ' : '', "[", state, "]"] }, stateIndex)) }) }) }, action.label)), snapshot.projectRoot ? _jsx(Box, { flexShrink: 0, children: _jsxs(Text, { color: tuiTheme.roles.secondary, children: ["\u5F53\u524D\u9879\u76EE ", path.basename(snapshot.projectRoot)] }) }) : null] });
4164
+ : state.startsWith('?') ? tuiTheme.roles.unknown : state.startsWith('✓') ? tuiTheme.roles.success : tuiTheme.roles.secondary, children: [stateIndex > 0 ? ' ' : '', "[", state, "]"] }, stateIndex)) }) }) }, action.label)), snapshot.projectRoot && size.rows > 18 ? _jsx(Box, { flexShrink: 0, children: _jsxs(Text, { color: tuiTheme.roles.secondary, children: ["\u5F53\u524D\u9879\u76EE ", path.basename(snapshot.projectRoot)] }) }) : null] });
4101
4165
  }
4102
4166
  else if (route.name === 'intentScopes') {
4103
4167
  breadcrumb = '插件清单';
@@ -4137,7 +4201,7 @@ export function ConsoleAppV4(props) {
4137
4201
  breadcrumb = flow.pluginId ? '插件 / Agent 管理' : '首页 / Agent 管理';
4138
4202
  content = _jsx(AgentManagement, { controller: props.controller, settings: flow.settings, pluginId: flow.pluginId, columns: size.columns, rows: size.rows, summaries: agentSummaries(flow.pluginId), active: !overlay, onBack: closeScopedFlow, onExit: requestConfirmedExit, onSaved: setAgentSettings, onHome: () => { closeScopedFlow(); requestSessionNavigation('home'); }, onReload: () => { closeScopedFlow(); requestSessionNavigation('reload'); }, onHelp: () => { setOverlayFocus(0); setHelpPage(1); setOverlay('help'); }, onSync: () => beginScopedTask({ kind: 'recovery', command: 'sync', scope: flow.scope,
4139
4203
  selectors: flow.pluginId ? [flow.pluginId] : [], retireUnselectedTargets: true }) });
4140
- help = '↑↓ 移动 · Enter/Space 勾选 · s 保存 · Esc 返回';
4204
+ help = '↑↓ 移动 · Enter/Space 勾选 · s 保存 · r 重新检查 · Esc 返回';
4141
4205
  }
4142
4206
  else if (flow.stage === 'recoveryScope') {
4143
4207
  title = flow.command === 'uninstall' ? '选择卸载范围' : '选择清理范围';
@@ -4160,7 +4224,7 @@ export function ConsoleAppV4(props) {
4160
4224
  else if (flow.stage === 'targets') {
4161
4225
  title = flow.scope === 'user' ? '个人插件使用的工具' : '此项目在本机使用的工具';
4162
4226
  description = '保存后可单独准备同步任务。';
4163
- actions = ['codex', 'claude', 'cursor'].map((agent) => ({
4227
+ actions = PLATFORM_TARGETS.map((agent) => ({
4164
4228
  actionId: `agent:${agent}`, label: `${flow.agents.includes(agent) ? '✓' : '○'} ${agent}`,
4165
4229
  run: () => setScopedFlow({ ...flow,
4166
4230
  agents: flow.agents.includes(agent) ? flow.agents.filter((value) => value !== agent)
@@ -4181,6 +4245,7 @@ export function ConsoleAppV4(props) {
4181
4245
  ? [`${snapshot.progress.current.target} · ${snapshot.progress.current.phase}`] : []),
4182
4246
  ...snapshot.progress.messages,
4183
4247
  ...(flow.plan.kind === 'recovery' ? scopedCommandPlanText(flow.plan) : []),
4248
+ ...deploymentPlanLines(scopedDeploymentPlans(flow.plan)),
4184
4249
  ].join('\n') : undefined;
4185
4250
  content = _jsxs(Box, { flexDirection: "column", children: [_jsx(ProgressRow, { title: title, state: "active" }), readingText ? readingPage(readingText, size.columns - 6, Math.max(1, pageActionBudget(4))) : null] });
4186
4251
  }
@@ -4245,9 +4310,9 @@ export function ConsoleAppV4(props) {
4245
4310
  : (flow.errorCode ? showTechnical ? flow.errorCode : recoveryReason(flow.errorCode) : undefined) ?? (flow.changed ? '本机工具已保存。' : '本机工具没有变化。');
4246
4311
  const retryTargets = flow.receipt?.targetResults.filter((target) => (target.execution === 'failed' || target.execution === 'partial')
4247
4312
  && (target.observation === 'missing' || target.content === 'absent')) ?? [];
4248
- const retryKeys = new Set(retryTargets.map((target) => `${target.pluginId}\0${target.agent}`));
4313
+ const retryKeys = new Set(retryTargets.map((target) => `${target.pluginId}\0${target.agent}\0${target.scope}`));
4249
4314
  const unknownTargets = flow.receipt?.targetResults.filter((target) => target.observation === 'unknown'
4250
- && !retryKeys.has(`${target.pluginId}\0${target.agent}`)) ?? [];
4315
+ && !retryKeys.has(`${target.pluginId}\0${target.agent}\0${target.scope}`)) ?? [];
4251
4316
  const reviewStale = flow.receipt
4252
4317
  ? [...flow.receipt.blockers, ...flow.receipt.errors]
4253
4318
  .some((entry) => entry.code === 'operationReviewStale')
@@ -4271,7 +4336,7 @@ export function ConsoleAppV4(props) {
4271
4336
  kind: 'recovery', scope: flow.scope, command: flow.receipt.command,
4272
4337
  selectors: [...new Set(retryTargets.map((target) => target.pluginId))],
4273
4338
  targets: [...new Set(retryTargets.map((target) => target.agent))],
4274
- exactTargets: retryTargets.map((target) => ({ pluginId: target.pluginId, agent: target.agent })),
4339
+ exactTargets: retryTargets.map((target) => ({ pluginId: target.pluginId, agent: target.agent, scope: target.scope })),
4275
4340
  }) }] : []),
4276
4341
  ];
4277
4342
  content = _jsxs(ResultSurface, { status: flow.errorCode || flow.receipt && !flow.receipt.ok ? 'warning' : 'success', title: description, children: [readingPage(readingText, size.columns - 6, Math.max(1, pageActionBudget(actions.length + (showTechnical ? 5 : 4)))), _jsx(SemanticRows, { actions: actions, focus: flow.focus, kind: "action", compact: true })] });