harnesstap 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +2 -0
  2. package/dist/apply-SUNDXRJ3.js +54 -0
  3. package/dist/{approve-KQNCNH2R.js → approve-FBGYQGWN.js} +14 -15
  4. package/dist/{approve-KQNCNH2R.js.map → approve-FBGYQGWN.js.map} +1 -1
  5. package/dist/{audit-SLYOZCMI.js → audit-VI4QZ6X2.js} +30 -39
  6. package/dist/{audit-SLYOZCMI.js.map → audit-VI4QZ6X2.js.map} +1 -1
  7. package/dist/{auth-3IEVICFT.js → auth-4CQCDS2W.js} +17 -19
  8. package/dist/{auth-3IEVICFT.js.map → auth-4CQCDS2W.js.map} +1 -1
  9. package/dist/bin.js +3 -3
  10. package/dist/{chunk-KDDXZBMC.js → chunk-23XSG7LI.js} +7 -11
  11. package/dist/{chunk-KDDXZBMC.js.map → chunk-23XSG7LI.js.map} +1 -1
  12. package/dist/{chunk-YDD3ES2K.js → chunk-2A36HWDE.js} +63 -13
  13. package/dist/chunk-2A36HWDE.js.map +1 -0
  14. package/dist/{chunk-IK524ZDW.js → chunk-3FS775NP.js} +51 -4
  15. package/dist/chunk-3FS775NP.js.map +1 -0
  16. package/dist/{chunk-IBOABSIA.js → chunk-3P6BWL5F.js} +2 -2
  17. package/dist/{chunk-G26HZZDJ.js → chunk-43BDGVN3.js} +19 -6
  18. package/dist/chunk-43BDGVN3.js.map +1 -0
  19. package/dist/{chunk-TYULB6ZY.js → chunk-4ZQ2SCGY.js} +146 -78
  20. package/dist/chunk-4ZQ2SCGY.js.map +1 -0
  21. package/dist/{chunk-6BY4BV5G.js → chunk-6LTLYV5D.js} +353 -230
  22. package/dist/chunk-6LTLYV5D.js.map +1 -0
  23. package/dist/{chunk-GQKKX7OE.js → chunk-73OJQTBW.js} +6 -2
  24. package/dist/chunk-73OJQTBW.js.map +1 -0
  25. package/dist/{chunk-IRU7NBOT.js → chunk-7HP6AAI3.js} +2 -2
  26. package/dist/{chunk-MWXA4PFE.js → chunk-BPWFQKI5.js} +5 -7
  27. package/dist/{chunk-MWXA4PFE.js.map → chunk-BPWFQKI5.js.map} +1 -1
  28. package/dist/{chunk-3RBYT7QN.js → chunk-D432JAXV.js} +44 -19
  29. package/dist/chunk-D432JAXV.js.map +1 -0
  30. package/dist/chunk-DF4Z7LAD.js +3463 -0
  31. package/dist/chunk-DF4Z7LAD.js.map +1 -0
  32. package/dist/{chunk-J4CKQXQ6.js → chunk-EOPFER6N.js} +71 -318
  33. package/dist/chunk-EOPFER6N.js.map +1 -0
  34. package/dist/chunk-G6WKY2W4.js +389 -0
  35. package/dist/chunk-G6WKY2W4.js.map +1 -0
  36. package/dist/{chunk-JKGSJGCC.js → chunk-GRASK6M6.js} +5 -5
  37. package/dist/{chunk-63U7QWNY.js → chunk-IE7B6Q5K.js} +33 -39
  38. package/dist/chunk-IE7B6Q5K.js.map +1 -0
  39. package/dist/{chunk-VC6OKCJF.js → chunk-IMROMZ2K.js} +7 -4
  40. package/dist/{chunk-VC6OKCJF.js.map → chunk-IMROMZ2K.js.map} +1 -1
  41. package/dist/{chunk-DV74UZJI.js → chunk-L6YZE5MY.js} +3 -3
  42. package/dist/{chunk-SNVAMWB7.js → chunk-M2U3J7UX.js} +7 -1
  43. package/dist/chunk-M2U3J7UX.js.map +1 -0
  44. package/dist/{chunk-BSOBXLYI.js → chunk-M4KLHJ6U.js} +16 -13
  45. package/dist/chunk-M4KLHJ6U.js.map +1 -0
  46. package/dist/{chunk-VL7BGD47.js → chunk-MR7IOHSX.js} +16 -19
  47. package/dist/chunk-MR7IOHSX.js.map +1 -0
  48. package/dist/{chunk-4KNQZDZC.js → chunk-N3VGY3T3.js} +15 -15
  49. package/dist/chunk-N3VGY3T3.js.map +1 -0
  50. package/dist/{chunk-ZY2MZ2KQ.js → chunk-N3ZCH64F.js} +496 -10
  51. package/dist/chunk-N3ZCH64F.js.map +1 -0
  52. package/dist/{chunk-H6DVP2SI.js → chunk-OML4HXKT.js} +20 -22
  53. package/dist/chunk-OML4HXKT.js.map +1 -0
  54. package/dist/{chunk-NJ7WRKIQ.js → chunk-P2C7JPLD.js} +3 -3
  55. package/dist/{chunk-LNJ3WZZX.js → chunk-PCMON7Y2.js} +7 -7
  56. package/dist/{chunk-VL2NWCZV.js → chunk-PNGF5EV2.js} +2 -2
  57. package/dist/{chunk-SZNBUIDR.js → chunk-QA5U36JN.js} +199 -215
  58. package/dist/chunk-QA5U36JN.js.map +1 -0
  59. package/dist/{chunk-KDAV2GUT.js → chunk-R7ZOYVN3.js} +241 -126
  60. package/dist/chunk-R7ZOYVN3.js.map +1 -0
  61. package/dist/{chunk-QO4LBDVI.js → chunk-RDG5DT7S.js} +45 -49
  62. package/dist/{chunk-QO4LBDVI.js.map → chunk-RDG5DT7S.js.map} +1 -1
  63. package/dist/{chunk-VQVUJYYY.js → chunk-REHRUNBB.js} +8 -3
  64. package/dist/chunk-REHRUNBB.js.map +1 -0
  65. package/dist/{chunk-DXKAKKLP.js → chunk-RFQ3N7FB.js} +19 -29
  66. package/dist/chunk-RFQ3N7FB.js.map +1 -0
  67. package/dist/{chunk-C4QBVVEH.js → chunk-RVEXPMM3.js} +3 -3
  68. package/dist/{chunk-XFZQVYIN.js → chunk-TPEJFLV7.js} +13 -15
  69. package/dist/{chunk-XFZQVYIN.js.map → chunk-TPEJFLV7.js.map} +1 -1
  70. package/dist/{chunk-7LWH5SWH.js → chunk-U6DXASQP.js} +2 -2
  71. package/dist/{chunk-BIBUCC2E.js → chunk-ULCD6DJE.js} +30 -8
  72. package/dist/chunk-ULCD6DJE.js.map +1 -0
  73. package/dist/{chunk-KMWHZSEG.js → chunk-UVVZHWD2.js} +2 -2
  74. package/dist/{chunk-DWVAR4BP.js → chunk-WG5A6EAU.js} +270 -12
  75. package/dist/chunk-WG5A6EAU.js.map +1 -0
  76. package/dist/{chunk-QRZPQNLX.js → chunk-WGP4GUYZ.js} +10 -10
  77. package/dist/{chunk-F2L4VNQK.js → chunk-XTVGCVU4.js} +124 -83
  78. package/dist/chunk-XTVGCVU4.js.map +1 -0
  79. package/dist/{chunk-EIWXS4RM.js → chunk-XUJKZQZA.js} +8 -8
  80. package/dist/chunk-XUJKZQZA.js.map +1 -0
  81. package/dist/chunk-ZUASVASP.js +30317 -0
  82. package/dist/chunk-ZUASVASP.js.map +1 -0
  83. package/dist/{compile-57EEIUMB.js → compile-GXADKGH5.js} +37 -50
  84. package/dist/{compile-57EEIUMB.js.map → compile-GXADKGH5.js.map} +1 -1
  85. package/dist/{config-4EJ3D7QJ.js → config-JMHNA2U5.js} +22 -35
  86. package/dist/{config-4EJ3D7QJ.js.map → config-JMHNA2U5.js.map} +1 -1
  87. package/dist/cursor-local-install-46RWRBDT.js +98 -0
  88. package/dist/cursor-local-install-46RWRBDT.js.map +1 -0
  89. package/dist/{doctor-EEV6P5CH.js → doctor-N7ZULPOL.js} +18 -19
  90. package/dist/{doctor-EEV6P5CH.js.map → doctor-N7ZULPOL.js.map} +1 -1
  91. package/dist/{environment-WFEG4DAT.js → environment-OBB3WU5B.js} +60 -71
  92. package/dist/{environment-WFEG4DAT.js.map → environment-OBB3WU5B.js.map} +1 -1
  93. package/dist/{github-BSMQD72A.js → github-PBYBGOLH.js} +17 -17
  94. package/dist/{harness-VX3PNVQW.js → harness-7KYATIV6.js} +56 -67
  95. package/dist/{harness-VX3PNVQW.js.map → harness-7KYATIV6.js.map} +1 -1
  96. package/dist/{help-AW2HKX63.js → help-EE3AJQD4.js} +48 -52
  97. package/dist/help-EE3AJQD4.js.map +1 -0
  98. package/dist/{help-BVFOZD7E.js → help-VXWKLQ6A.js} +55 -15
  99. package/dist/help-VXWKLQ6A.js.map +1 -0
  100. package/dist/index.d.ts +7 -0
  101. package/dist/index.js +16 -24
  102. package/dist/{init-SPN2GEZ4.js → init-LBTMPDVJ.js} +43 -56
  103. package/dist/init-LBTMPDVJ.js.map +1 -0
  104. package/dist/live-read-cache-TUSP7U3D.js +10 -0
  105. package/dist/{lock-K2LLUU7H.js → lock-WLJRXRVK.js} +16 -16
  106. package/dist/{marketplace-VEKSWGX3.js → marketplace-GXSV6QIY.js} +62 -28
  107. package/dist/marketplace-GXSV6QIY.js.map +1 -0
  108. package/dist/{mcp-T6DKIKSF.js → mcp-XPDWWU75.js} +35 -48
  109. package/dist/{mcp-T6DKIKSF.js.map → mcp-XPDWWU75.js.map} +1 -1
  110. package/dist/{migrate-OO37WSB2.js → migrate-SBUIWN3U.js} +79 -64
  111. package/dist/migrate-SBUIWN3U.js.map +1 -0
  112. package/dist/open-HDGLYYVU.js +24 -0
  113. package/dist/{pack-V32UPC7W.js → pack-A73LDVOX.js} +16 -22
  114. package/dist/{pack-V32UPC7W.js.map → pack-A73LDVOX.js.map} +1 -1
  115. package/dist/plugin-CEO6ZJM5.js +51 -0
  116. package/dist/plugin-from-project-UK7VJVUP.js +18 -0
  117. package/dist/{policy-F5MKZNOC.js → policy-6VY3CMSU.js} +13 -14
  118. package/dist/{policy-F5MKZNOC.js.map → policy-6VY3CMSU.js.map} +1 -1
  119. package/dist/{profile-H4PMH4XT.js → profile-YCKPMRRU.js} +96 -102
  120. package/dist/profile-YCKPMRRU.js.map +1 -0
  121. package/dist/{project-QVNEJJGH.js → project-KHPPBKPN.js} +63 -77
  122. package/dist/{project-QVNEJJGH.js.map → project-KHPPBKPN.js.map} +1 -1
  123. package/dist/{resource-GL4RLSGI.js → resource-IJU3FAN5.js} +42 -49
  124. package/dist/{resource-GL4RLSGI.js.map → resource-IJU3FAN5.js.map} +1 -1
  125. package/dist/{version-PBHZK44K.js → version-Z66FWWMQ.js} +2 -2
  126. package/dist/version-Z66FWWMQ.js.map +1 -0
  127. package/package.json +4 -1
  128. package/schemas/fixtures/confidence.ap.json +1 -1
  129. package/schemas/fixtures/context7.ap.json +1 -1
  130. package/schemas/fixtures/legacy-schema-v1.ap.json +13 -0
  131. package/schemas/fixtures/legacy-schemas-v1.ap.json +13 -0
  132. package/schemas/fixtures/minimal-with-schema.ap.json +1 -1
  133. package/schemas/fixtures/superpowers.ap.json +1 -1
  134. package/schemas/fixtures/third-party-skills.ap.json +1 -1
  135. package/dist/apply-2GRNKR5H.js +0 -67
  136. package/dist/chunk-2EIJYDNI.js +0 -10945
  137. package/dist/chunk-2EIJYDNI.js.map +0 -1
  138. package/dist/chunk-3IWTJCPA.js +0 -6448
  139. package/dist/chunk-3IWTJCPA.js.map +0 -1
  140. package/dist/chunk-3IZ7SEGT.js +0 -346
  141. package/dist/chunk-3IZ7SEGT.js.map +0 -1
  142. package/dist/chunk-3RBYT7QN.js.map +0 -1
  143. package/dist/chunk-4KNQZDZC.js.map +0 -1
  144. package/dist/chunk-63U7QWNY.js.map +0 -1
  145. package/dist/chunk-6BY4BV5G.js.map +0 -1
  146. package/dist/chunk-7L2K4N25.js +0 -610
  147. package/dist/chunk-7L2K4N25.js.map +0 -1
  148. package/dist/chunk-BIBUCC2E.js.map +0 -1
  149. package/dist/chunk-BSOBXLYI.js.map +0 -1
  150. package/dist/chunk-DWVAR4BP.js.map +0 -1
  151. package/dist/chunk-DXKAKKLP.js.map +0 -1
  152. package/dist/chunk-EIWXS4RM.js.map +0 -1
  153. package/dist/chunk-EWBCFAF3.js +0 -681
  154. package/dist/chunk-EWBCFAF3.js.map +0 -1
  155. package/dist/chunk-F2L4VNQK.js.map +0 -1
  156. package/dist/chunk-G26HZZDJ.js.map +0 -1
  157. package/dist/chunk-GQKKX7OE.js.map +0 -1
  158. package/dist/chunk-GRJY22U6.js +0 -691
  159. package/dist/chunk-GRJY22U6.js.map +0 -1
  160. package/dist/chunk-H6DVP2SI.js.map +0 -1
  161. package/dist/chunk-HVVPTCKR.js +0 -1173
  162. package/dist/chunk-HVVPTCKR.js.map +0 -1
  163. package/dist/chunk-IK524ZDW.js.map +0 -1
  164. package/dist/chunk-J4CKQXQ6.js.map +0 -1
  165. package/dist/chunk-JRFUTIEH.js +0 -426
  166. package/dist/chunk-JRFUTIEH.js.map +0 -1
  167. package/dist/chunk-K2BPYEH5.js +0 -491
  168. package/dist/chunk-K2BPYEH5.js.map +0 -1
  169. package/dist/chunk-KCQC7YBK.js +0 -7795
  170. package/dist/chunk-KCQC7YBK.js.map +0 -1
  171. package/dist/chunk-KDAV2GUT.js.map +0 -1
  172. package/dist/chunk-MY62SSKC.js +0 -183
  173. package/dist/chunk-MY62SSKC.js.map +0 -1
  174. package/dist/chunk-PXU2OS26.js +0 -238
  175. package/dist/chunk-PXU2OS26.js.map +0 -1
  176. package/dist/chunk-SNVAMWB7.js.map +0 -1
  177. package/dist/chunk-SPRVUATR.js +0 -430
  178. package/dist/chunk-SPRVUATR.js.map +0 -1
  179. package/dist/chunk-SY7G5QEI.js +0 -35
  180. package/dist/chunk-SY7G5QEI.js.map +0 -1
  181. package/dist/chunk-SZNBUIDR.js.map +0 -1
  182. package/dist/chunk-TYULB6ZY.js.map +0 -1
  183. package/dist/chunk-UJYFTXHV.js +0 -296
  184. package/dist/chunk-UJYFTXHV.js.map +0 -1
  185. package/dist/chunk-VL7BGD47.js.map +0 -1
  186. package/dist/chunk-VQVUJYYY.js.map +0 -1
  187. package/dist/chunk-XQFT4PEP.js +0 -60
  188. package/dist/chunk-XQFT4PEP.js.map +0 -1
  189. package/dist/chunk-YDD3ES2K.js.map +0 -1
  190. package/dist/chunk-ZY2MZ2KQ.js.map +0 -1
  191. package/dist/help-AW2HKX63.js.map +0 -1
  192. package/dist/help-BVFOZD7E.js.map +0 -1
  193. package/dist/init-SPN2GEZ4.js.map +0 -1
  194. package/dist/marketplace-VEKSWGX3.js.map +0 -1
  195. package/dist/migrate-OO37WSB2.js.map +0 -1
  196. package/dist/open-3V3QK5RK.js +0 -32
  197. package/dist/plugin-KOBNQ7GT.js +0 -64
  198. package/dist/plugin-from-project-X3VO3MB6.js +0 -16
  199. package/dist/profile-H4PMH4XT.js.map +0 -1
  200. /package/dist/{apply-2GRNKR5H.js.map → apply-SUNDXRJ3.js.map} +0 -0
  201. /package/dist/{chunk-IBOABSIA.js.map → chunk-3P6BWL5F.js.map} +0 -0
  202. /package/dist/{chunk-IRU7NBOT.js.map → chunk-7HP6AAI3.js.map} +0 -0
  203. /package/dist/{chunk-JKGSJGCC.js.map → chunk-GRASK6M6.js.map} +0 -0
  204. /package/dist/{chunk-DV74UZJI.js.map → chunk-L6YZE5MY.js.map} +0 -0
  205. /package/dist/{chunk-NJ7WRKIQ.js.map → chunk-P2C7JPLD.js.map} +0 -0
  206. /package/dist/{chunk-LNJ3WZZX.js.map → chunk-PCMON7Y2.js.map} +0 -0
  207. /package/dist/{chunk-VL2NWCZV.js.map → chunk-PNGF5EV2.js.map} +0 -0
  208. /package/dist/{chunk-C4QBVVEH.js.map → chunk-RVEXPMM3.js.map} +0 -0
  209. /package/dist/{chunk-7LWH5SWH.js.map → chunk-U6DXASQP.js.map} +0 -0
  210. /package/dist/{chunk-KMWHZSEG.js.map → chunk-UVVZHWD2.js.map} +0 -0
  211. /package/dist/{chunk-QRZPQNLX.js.map → chunk-WGP4GUYZ.js.map} +0 -0
  212. /package/dist/{github-BSMQD72A.js.map → github-PBYBGOLH.js.map} +0 -0
  213. /package/dist/{open-3V3QK5RK.js.map → live-read-cache-TUSP7U3D.js.map} +0 -0
  214. /package/dist/{lock-K2LLUU7H.js.map → lock-WLJRXRVK.js.map} +0 -0
  215. /package/dist/{plugin-KOBNQ7GT.js.map → open-HDGLYYVU.js.map} +0 -0
  216. /package/dist/{plugin-from-project-X3VO3MB6.js.map → plugin-CEO6ZJM5.js.map} +0 -0
  217. /package/dist/{version-PBHZK44K.js.map → plugin-from-project-UK7VJVUP.js.map} +0 -0
@@ -1,17 +1,3 @@
1
- import {
2
- isPluginAttachmentOnlyType,
3
- renderResourceShow,
4
- resolveResourceListType
5
- } from "./chunk-3RBYT7QN.js";
6
- import {
7
- filterPluginEditRowsBySearch,
8
- formatResourceSelectionLabel,
9
- listNavigablePluginEditRows,
10
- renderFlatPluginEditViewport,
11
- renderGroupedPluginEditViewport,
12
- sortResourcesByUpdatedAt,
13
- toResourceListRows
14
- } from "./chunk-BIBUCC2E.js";
15
1
  import {
16
2
  PluginAmbiguityError,
17
3
  PluginResolveError,
@@ -32,17 +18,7 @@ import {
32
18
  resolveApplyPluginSource,
33
19
  resolveCatalogSearchProjectRoot,
34
20
  runPluginCreateFromSourceWizard
35
- } from "./chunk-TYULB6ZY.js";
36
- import {
37
- createLocalPluginPickAdapter,
38
- resolvePluginMutationTarget
39
- } from "./chunk-VL7BGD47.js";
40
- import {
41
- loadVerifiedPackageFiles
42
- } from "./chunk-MY62SSKC.js";
43
- import {
44
- openPathInSystemEditor
45
- } from "./chunk-4KNQZDZC.js";
21
+ } from "./chunk-4ZQ2SCGY.js";
46
22
  import {
47
23
  importProjectConfigEnvironments,
48
24
  printApplyDryRun,
@@ -53,64 +29,56 @@ import {
53
29
  resolveExpectedPluginName,
54
30
  resolveProjectProfilePluginName,
55
31
  resolveUserPath
56
- } from "./chunk-KDAV2GUT.js";
32
+ } from "./chunk-R7ZOYVN3.js";
57
33
  import {
58
- validatePluginDependencyGraph
59
- } from "./chunk-VL2NWCZV.js";
34
+ isPluginAttachmentOnlyType,
35
+ renderResourceShow,
36
+ resolveResourceListType
37
+ } from "./chunk-D432JAXV.js";
60
38
  import {
61
- toPluginChoices
62
- } from "./chunk-IBOABSIA.js";
39
+ createLocalPluginPickAdapter,
40
+ resolvePluginMutationTarget
41
+ } from "./chunk-MR7IOHSX.js";
42
+ import {
43
+ resolveSkillPackageCheckout
44
+ } from "./chunk-OML4HXKT.js";
45
+ import {
46
+ readDeclaredLicense
47
+ } from "./chunk-CHQGE2HF.js";
48
+ import {
49
+ filterPluginEditRowsBySearch,
50
+ formatResourceSelectionLabel,
51
+ listNavigablePluginEditRows,
52
+ renderFlatPluginEditViewport,
53
+ renderGroupedPluginEditViewport,
54
+ sortResourcesByUpdatedAt,
55
+ toResourceListRows
56
+ } from "./chunk-ULCD6DJE.js";
57
+ import {
58
+ openPathInSystemEditor
59
+ } from "./chunk-N3VGY3T3.js";
60
+ import {
61
+ validatePluginDependencyGraph
62
+ } from "./chunk-PNGF5EV2.js";
63
63
  import {
64
64
  createTableBrowserPrompt
65
- } from "./chunk-NJ7WRKIQ.js";
65
+ } from "./chunk-P2C7JPLD.js";
66
+ import {
67
+ toPluginChoices
68
+ } from "./chunk-3P6BWL5F.js";
66
69
  import {
67
70
  matchesListSearchQuery,
68
71
  parseListSearchQuery
69
72
  } from "./chunk-KRI4R7EM.js";
70
- import {
71
- resolveSkillPackageCheckout
72
- } from "./chunk-H6DVP2SI.js";
73
73
  import {
74
74
  parseCommaSeparatedList
75
75
  } from "./chunk-37E5M4JX.js";
76
76
  import {
77
77
  buildHelpLine
78
78
  } from "./chunk-3FIWOI3H.js";
79
- import {
80
- readDeclaredLicense
81
- } from "./chunk-CHQGE2HF.js";
82
79
  import {
83
80
  renderCliError
84
- } from "./chunk-QO4LBDVI.js";
85
- import {
86
- PinnedPluginInstallConsentError,
87
- captureManagedSnapshotState,
88
- collectPluginPinsForPrepare,
89
- ensureClaudeMarketplacesFromConfig,
90
- ensureCursorMarketplaces,
91
- ensureMissingCatalogDependencies,
92
- gateDeployFiles,
93
- generateFiles,
94
- getActiveProfileName,
95
- getGitOrigin,
96
- installPluginFromCatalog,
97
- installPluginPinAsync,
98
- materializeFiles,
99
- normalizeGitUrl,
100
- persistWrittenMaterializations,
101
- preparePluginPinsForApply,
102
- printUnicodeGateWarnings,
103
- projectNameFromUrl,
104
- removeStaleProjectDeployedFiles,
105
- resolveDefaultPluginInstallScope,
106
- resolveEnvironmentCascadeForApply,
107
- resolvePluginInstallScope,
108
- setPluginEnvironmentCommand,
109
- skillPlacementsFromPaths,
110
- syncPluginPinsForApply,
111
- tagProfileCommand,
112
- unsetPluginEnvironmentCommand
113
- } from "./chunk-KCQC7YBK.js";
81
+ } from "./chunk-RDG5DT7S.js";
114
82
  import {
115
83
  isPromptCancellationError,
116
84
  promptForChoice,
@@ -122,120 +90,111 @@ import {
122
90
  } from "./chunk-NAGAJ5UM.js";
123
91
  import {
124
92
  initializeSchema
125
- } from "./chunk-IK524ZDW.js";
126
- import {
127
- PROFILE_PLUGIN_TAG,
128
- isProfilePlugin
129
- } from "./chunk-SY7G5QEI.js";
93
+ } from "./chunk-3FS775NP.js";
130
94
  import {
131
- createSnapshot
132
- } from "./chunk-XQFT4PEP.js";
95
+ configureCommandGroup
96
+ } from "./chunk-43BDGVN3.js";
133
97
  import {
134
98
  createPluginFromProject
135
- } from "./chunk-MWXA4PFE.js";
136
- import {
137
- findProjectConfig,
138
- getProfileEntry
139
- } from "./chunk-3IZ7SEGT.js";
99
+ } from "./chunk-BPWFQKI5.js";
140
100
  import {
141
101
  formatPluginLabel
142
102
  } from "./chunk-I6XFZLTJ.js";
143
- import {
144
- APM_MANIFEST_FILENAME,
145
- TargetFlagError,
146
- parseApmYamlDocument,
147
- readPackageRuntimeApmDependencies,
148
- resolveCompileTargets
149
- } from "./chunk-7L2K4N25.js";
150
- import {
151
- CriticalUnicodeError
152
- } from "./chunk-JRFUTIEH.js";
153
- import {
154
- applyConfiguredPluginToProject,
155
- assertSupportedHarnessTargets,
156
- collectApplyPreferenceHarnesses,
157
- getProjectByOrigin,
158
- getProjectHarnessConfig,
159
- uniqueHarnessTargets,
160
- upsertProject
161
- } from "./chunk-UJYFTXHV.js";
162
- import {
163
- detectPlatforms,
164
- persistPluginSourceScanResults
165
- } from "./chunk-3IWTJCPA.js";
166
103
  import {
167
104
  applyExecutableTrustGate,
168
105
  formatApproveRemedy,
169
106
  overlappingDeployedHashes
170
- } from "./chunk-KDDXZBMC.js";
107
+ } from "./chunk-23XSG7LI.js";
171
108
  import {
172
- PolicyError,
173
- assertPolicyAllowsApply,
174
- collectSkillMdFiles,
175
- evaluateApplyPolicy
176
- } from "./chunk-HVVPTCKR.js";
109
+ parseOutputFormat,
110
+ printJson
111
+ } from "./chunk-TQ2NA4Z4.js";
177
112
  import {
178
- LockIntegrityError,
179
- lockIsUsable,
180
- lockedVersionsFrom,
181
- lockfileFromResolution,
182
- readLockfile,
183
- writeLockfile
184
- } from "./chunk-SPRVUATR.js";
113
+ ON_CONFLICT_APPLY_HELP,
114
+ ON_CONFLICT_PLUGIN_IMPORT_HELP,
115
+ collectRepeatedOption,
116
+ fail,
117
+ failCaught,
118
+ formatCommand,
119
+ parseOnConflict,
120
+ toPluginImportOnConflict
121
+ } from "./chunk-RFQ3N7FB.js";
185
122
  import {
123
+ APM_MANIFEST_FILENAME,
186
124
  ApmGitResolveError,
187
- assertCheckoutPathSafe,
188
- canonicalApmRepoUrl,
189
- isApmVirtualFilePath,
190
- isFilesystemApmDependency,
191
- resolveAndFetchApmGitDependency
192
- } from "./chunk-EWBCFAF3.js";
193
- import {
194
- AP_SCHEMA_URL,
195
125
  BundleSymlinkError,
196
126
  CatalogDependencyVersionError,
127
+ CriticalUnicodeError,
128
+ LockIntegrityError,
197
129
  MATERIAL_RESOURCE_TYPES,
198
130
  PLUGIN_ATTACHMENT_TYPES,
131
+ PROFILE_PLUGIN_TAG,
132
+ PinnedPluginInstallConsentError,
199
133
  PluginAttachmentHintError,
200
134
  PluginProvenanceError,
201
135
  PluginVersionError,
136
+ PolicyError,
202
137
  RESOURCE_TYPES,
203
138
  SingletonConflictError,
139
+ TargetFlagError,
204
140
  UnsatisfiableConstraintError,
205
141
  addDependency,
206
142
  addPluginAttachment,
207
143
  addResourceToPlugin,
208
144
  applyCheckedPluginOrigin,
209
145
  assertAuthored,
146
+ assertCheckoutPathSafe,
210
147
  assertContainedPath,
211
148
  assertPluginsCleanForShare,
149
+ assertPolicyAllowsApply,
150
+ assertSupportedHarnessTargets,
212
151
  attachPluginPinToPlugin,
213
152
  attachScannedOriginResources,
214
153
  buildApPackageFiles,
154
+ canonicalApmRepoUrl,
155
+ captureManagedSnapshotState,
215
156
  clearPluginVersionOverride,
157
+ collectApplyPreferenceHarnesses,
158
+ collectPluginPinsForPrepare,
159
+ collectSkillMdFiles,
216
160
  createPlugin,
217
161
  cutPluginVersion,
218
162
  deletePlugin,
219
163
  dependenciesFromResources,
220
164
  describeConflictSide,
165
+ detectPlatforms,
166
+ ensureClaudeMarketplacesFromConfig,
167
+ ensureCursorMarketplaces,
168
+ ensureMissingCatalogDependencies,
221
169
  ensurePluginClaudeMarketplace,
222
170
  ensurePluginResource,
171
+ evaluateApplyPolicy,
223
172
  fetchCatalogPlugin,
224
173
  findPluginResourceByPin,
174
+ findProjectConfig,
225
175
  formatOriginLocator,
226
176
  formatPluginRollbackConfirmMessage,
227
177
  formatPluginVersionLabel,
178
+ gateDeployFiles,
179
+ generateFiles,
228
180
  getPlugin,
229
181
  getPluginById,
230
182
  getPluginByName,
231
183
  getPluginOrigin,
232
184
  getPluginResources,
185
+ getProfileEntry,
186
+ getProjectHarnessConfig,
233
187
  gitOriginCacheDir,
234
188
  hashResourceBody,
235
189
  importApPackageFiles,
236
190
  ingestHostPluginTreeIntoCache,
191
+ installPluginFromCatalog,
192
+ installPluginPinAsync,
237
193
  isApEnvelopePath,
194
+ isApmVirtualFilePath,
195
+ isFilesystemApmDependency,
238
196
  isPluginInstallRoot,
197
+ isProfilePlugin,
239
198
  listAttachedPluginPins,
240
199
  listAttachedPluginRefs,
241
200
  listContainedRegularFiles,
@@ -245,6 +204,12 @@ import {
245
204
  listPluginVersionHistory,
246
205
  listPlugins,
247
206
  listResources,
207
+ loadSpecPackagePath,
208
+ loadVerifiedPackageFiles,
209
+ lockIsUsable,
210
+ lockedVersionsFrom,
211
+ lockfileFromResolution,
212
+ materializeFiles,
248
213
  mergePluginsById,
249
214
  normalizeResourceInput,
250
215
  originApplyFailureRow,
@@ -252,82 +217,69 @@ import {
252
217
  originSkipRow,
253
218
  overrideWinnerValue,
254
219
  parseApPackageFiles,
220
+ parseApmYamlDocument,
255
221
  parseDependencyRef,
256
222
  parsePluginRef,
257
223
  parseVersionConstraint,
224
+ persistPluginSourceScanResults,
225
+ persistWrittenMaterializations,
258
226
  pluginDescriptionFromManifest,
227
+ preparePluginPinsForApply,
228
+ printUnicodeGateWarnings,
229
+ readLockfile,
230
+ readPackageRuntimeApmDependencies,
259
231
  recoverOriginLocator,
260
232
  removeDependency,
261
233
  removePluginAttachment,
262
234
  removeResourceFromPlugin,
263
- resolveClaudeEnabledPluginRef,
235
+ removeStaleProjectDeployedFiles,
236
+ resolveAndFetchApmGitDependency,
237
+ resolveCompileTargets,
264
238
  resolveComposition,
265
- resolveHomeRoot,
266
- resolveInstallRoot,
239
+ resolveDefaultPluginInstallScope,
240
+ resolveEnvironmentCascadeForApply,
267
241
  resolveMarketplacePluginDirectory,
242
+ resolvePluginInstallScope,
243
+ resolvePluginPackageRoot,
268
244
  resolvePluginSelector,
269
245
  rollbackPluginVersion,
270
246
  scanPluginSource,
271
247
  scanPluginSourceSync,
272
248
  selectOriginUpdateTarget,
273
249
  semverSafePluginVersion,
250
+ setPluginEnvironmentCommand,
274
251
  setPluginOrigin,
275
252
  setPluginResourceOrder,
276
253
  setPluginResourceOverride,
277
254
  setPluginTags,
278
255
  setPluginVersionOverride,
256
+ skillPlacementsFromPaths,
279
257
  slugifyApName,
280
258
  stampPluginOrigin,
281
- substituteResourcesForApply,
282
259
  summarizeOriginUpdate,
283
260
  syncClaudeMarketplacePluginsAfterAdd,
261
+ syncPluginPinsForApply,
262
+ tagProfileCommand,
284
263
  touchPluginUpdatedAt,
264
+ uniqueHarnessTargets,
265
+ unsetPluginEnvironmentCommand,
285
266
  updatePluginDescription,
286
267
  upsertResource,
287
268
  validateApManifest,
288
269
  validatePluginAttachmentType,
289
270
  validatePublicOrgHasPlugins,
290
271
  validatePublicPluginExists,
272
+ withDefaultedApSchema,
291
273
  writeApEnvelope,
292
- writeApPackageFiles
293
- } from "./chunk-2EIJYDNI.js";
274
+ writeApPackageFiles,
275
+ writeLockfile
276
+ } from "./chunk-ZUASVASP.js";
294
277
  import {
295
278
  listMarketplaces,
296
279
  marketplaceCacheDir,
297
- refreshGitSource,
298
280
  refreshMarketplaceCatalog,
299
281
  searchCatalogPlugins
300
- } from "./chunk-6BY4BV5G.js";
301
- import {
302
- trackPluginApplied,
303
- trackPluginInstalled
304
- } from "./chunk-K2BPYEH5.js";
305
- import {
306
- configureCommandGroup
307
- } from "./chunk-G26HZZDJ.js";
308
- import {
309
- parseOutputFormat,
310
- printJson
311
- } from "./chunk-TQ2NA4Z4.js";
312
- import {
313
- CliUsageError,
314
- ON_CONFLICT_APPLY_HELP,
315
- ON_CONFLICT_PLUGIN_IMPORT_HELP,
316
- collectRepeatedOption,
317
- conflictingOptions,
318
- fail,
319
- failCaught,
320
- formatCommand,
321
- missingRequiredArg,
322
- parseOnConflict,
323
- toPluginImportOnConflict
324
- } from "./chunk-DXKAKKLP.js";
325
- import {
326
- createProgress,
327
- formatCount,
328
- theme,
329
- ui
330
- } from "./chunk-YDD3ES2K.js";
282
+ } from "./chunk-6LTLYV5D.js";
331
283
  import {
332
284
  DEFAULT_CATALOG_ORG_SLUG,
333
285
  connectCatalogOrg,
@@ -338,16 +290,44 @@ import {
338
290
  loadCatalogSettings,
339
291
  loadRegisteredCatalogs,
340
292
  resolveCatalogScope,
341
- resolveRemotePluginSelector
342
- } from "./chunk-ZY2MZ2KQ.js";
293
+ resolveRemotePluginSelector,
294
+ trackPluginApplied,
295
+ trackPluginInstalled
296
+ } from "./chunk-N3ZCH64F.js";
297
+ import {
298
+ CliUsageError,
299
+ conflictingOptions,
300
+ createProgress,
301
+ missingRequiredArg,
302
+ theme,
303
+ ui
304
+ } from "./chunk-2A36HWDE.js";
305
+ import {
306
+ applyConfiguredPluginToProject,
307
+ createSnapshot,
308
+ getActiveProfileName,
309
+ getGitOrigin,
310
+ getProjectByOrigin,
311
+ normalizeGitUrl,
312
+ projectNameFromUrl,
313
+ resolveClaudeEnabledPluginRef,
314
+ resolveHomeRoot,
315
+ substituteResourcesForApply,
316
+ upsertProject
317
+ } from "./chunk-DF4Z7LAD.js";
318
+ import {
319
+ refreshGitSource
320
+ } from "./chunk-G6WKY2W4.js";
343
321
  import {
344
322
  CLI_ERRORS,
345
323
  CLI_HINTS,
324
+ applyCancelledMessage,
346
325
  fetchWithTimeout,
347
326
  formatCatalogRequestError,
327
+ formatCount,
348
328
  getDb,
349
329
  getHarnesstapDir
350
- } from "./chunk-DWVAR4BP.js";
330
+ } from "./chunk-WG5A6EAU.js";
351
331
 
352
332
  // src/cli/commands/plugin.ts
353
333
  import { Option as Option2 } from "commander";
@@ -436,6 +416,8 @@ async function scanOriginTree(sourcePath, pluginName) {
436
416
  const manifestCandidates = [
437
417
  join(sourcePath, ".claude-plugin", "marketplace.json"),
438
418
  join(sourcePath, ".cursor-plugin", "marketplace.json"),
419
+ join(sourcePath, ".github", "plugin", "marketplace.json"),
420
+ join(sourcePath, ".agents", "plugins", "marketplace.json"),
439
421
  join(sourcePath, "marketplace.json")
440
422
  ];
441
423
  for (const manifestPath of manifestCandidates) {
@@ -1062,6 +1044,31 @@ function handlePluginVersionsCommand(name, opts) {
1062
1044
  });
1063
1045
  }
1064
1046
 
1047
+ // src/cli/handlers/plugin-validate.ts
1048
+ function handlePluginValidateCommand(file, opts) {
1049
+ const format = parseOutputFormat(opts.format);
1050
+ const report = loadSpecPackagePath(file, opts.spec ?? "1.0.0");
1051
+ if (format === "json") {
1052
+ printJson(report);
1053
+ } else if (!report.ok) {
1054
+ ui.danger(report.rejected ?? "Invalid Agent Plugins package");
1055
+ } else {
1056
+ ui.success(`${report.name}@${report.version}`);
1057
+ ui.info(`skills: ${report.loaded.skills.join(", ") || "(none)"}`);
1058
+ ui.info(`mcp servers: ${report.loaded.mcpServers.join(", ") || "(none)"}`);
1059
+ for (const item of report.skipped) {
1060
+ ui.warn(`skipped ${item.component} ${item.name}: ${item.reason}`);
1061
+ }
1062
+ for (const item of report.reported) {
1063
+ ui.warn(`${item.field}: ${item.message}`);
1064
+ }
1065
+ if (report.mcpDisabled) {
1066
+ ui.warn(`MCP disabled: ${report.mcpDisabled}`);
1067
+ }
1068
+ }
1069
+ if (!report.ok) process.exitCode = 1;
1070
+ }
1071
+
1065
1072
  // src/cli/handlers/plugin-validate-package.ts
1066
1073
  import { resolve } from "path";
1067
1074
 
@@ -1080,28 +1087,23 @@ function readPluginJson(files) {
1080
1087
  throw new Error("Invalid plugin.json: expected JSON");
1081
1088
  }
1082
1089
  }
1083
- function schemaWasDefaulted(manifest) {
1084
- if (typeof manifest !== "object" || manifest === null || Array.isArray(manifest)) {
1085
- return false;
1086
- }
1087
- const schema = manifest.$schema;
1088
- return typeof schema !== "string" || schema.length === 0;
1089
- }
1090
1090
  function validateApPackagePath(filePath, opts) {
1091
1091
  const files = loadVerifiedPackageFiles(filePath);
1092
1092
  const rawManifest = readPluginJson(files);
1093
+ const normalized = withDefaultedApSchema(rawManifest);
1093
1094
  if (opts?.strict) {
1094
- validateApManifest(rawManifest);
1095
+ validateApManifest(normalized.defaulted ? rawManifest : normalized.manifest);
1095
1096
  }
1096
1097
  const parsed = parseApPackageFiles(files);
1097
- const defaulted = schemaWasDefaulted(rawManifest);
1098
+ const effective = normalized.manifest;
1098
1099
  return {
1099
1100
  ok: true,
1100
1101
  name: parsed.name,
1101
1102
  sourceName: parsed.sourceName,
1102
1103
  version: parsed.version,
1103
- schemaDefaulted: defaulted,
1104
- schema: defaulted ? AP_SCHEMA_URL : typeof rawManifest === "object" && rawManifest !== null && !Array.isArray(rawManifest) && typeof rawManifest.$schema === "string" ? rawManifest.$schema : AP_SCHEMA_URL
1104
+ schemaDefaulted: normalized.defaulted,
1105
+ ...normalized.upgradedFrom ? { schemaUpgradedFrom: normalized.upgradedFrom } : {},
1106
+ schema: typeof effective.$schema === "string" ? effective.$schema : ""
1105
1107
  };
1106
1108
  }
1107
1109
 
@@ -1118,6 +1120,11 @@ function handlePluginValidatePackageCommand(file, opts) {
1118
1120
  if (result.schemaDefaulted) {
1119
1121
  ui.dim(`plugin.json had no $schema; accepted with default ${result.schema}`);
1120
1122
  }
1123
+ if (result.schemaUpgradedFrom) {
1124
+ ui.dim(
1125
+ `plugin.json uses the legacy $schema ${result.schemaUpgradedFrom}; read as ${result.schema}`
1126
+ );
1127
+ }
1121
1128
  } catch (error) {
1122
1129
  process.exitCode = 1;
1123
1130
  const message = error instanceof Error ? error.message : String(error);
@@ -1585,6 +1592,8 @@ function scanMarketplaceManifests(sourcePath, pluginName) {
1585
1592
  const manifestCandidates = [
1586
1593
  join4(sourcePath, ".claude-plugin", "marketplace.json"),
1587
1594
  join4(sourcePath, ".cursor-plugin", "marketplace.json"),
1595
+ join4(sourcePath, ".github", "plugin", "marketplace.json"),
1596
+ join4(sourcePath, ".agents", "plugins", "marketplace.json"),
1588
1597
  join4(sourcePath, "marketplace.json")
1589
1598
  ];
1590
1599
  for (const manifestPath of manifestCandidates) {
@@ -1598,35 +1607,6 @@ function scanMarketplaceManifests(sourcePath, pluginName) {
1598
1607
  }
1599
1608
  return void 0;
1600
1609
  }
1601
- function resolveUpstreamPackageRoot(plugin) {
1602
- const locator = recoverOriginLocator(plugin);
1603
- const harnesstapDir = getHarnesstapDir();
1604
- const homeRoot = resolveHomeRoot();
1605
- if (!locator) {
1606
- return resolveInstallRoot(plugin.name, homeRoot);
1607
- }
1608
- switch (locator.kind) {
1609
- case "marketplace": {
1610
- const parsed = parseDependencyRef(locator.ref);
1611
- const cacheDir = marketplaceCacheDir(harnesstapDir, parsed.namespace);
1612
- const fromCache = resolveMarketplacePluginDirectory(cacheDir, parsed.name) ?? resolveMarketplacePluginDirectory(cacheDir, plugin.name);
1613
- if (fromCache) {
1614
- return fromCache;
1615
- }
1616
- return resolveInstallRoot(locator.ref, homeRoot) ?? resolveInstallRoot(`${plugin.name}@${parsed.namespace}`, homeRoot);
1617
- }
1618
- case "git": {
1619
- const cacheDir = gitOriginCacheDir(harnesstapDir, locator.url);
1620
- return resolveMarketplacePluginDirectory(cacheDir, plugin.name) ?? (existsSync4(cacheDir) ? cacheDir : void 0);
1621
- }
1622
- case "catalog":
1623
- return void 0;
1624
- default: {
1625
- const _exhaustive = locator;
1626
- return _exhaustive;
1627
- }
1628
- }
1629
- }
1630
1610
  function scanPackageTree(plugin, sourcePath) {
1631
1611
  const fromManifest = scanMarketplaceManifests(sourcePath, plugin.name);
1632
1612
  if (fromManifest) {
@@ -1649,7 +1629,7 @@ function ensureUpstreamPluginResources(plugin) {
1649
1629
  if (plugin.origin === "authored") {
1650
1630
  return attached;
1651
1631
  }
1652
- const packageRoot = resolveUpstreamPackageRoot(plugin);
1632
+ const packageRoot = resolvePluginPackageRoot(plugin);
1653
1633
  if (!packageRoot) {
1654
1634
  return attached;
1655
1635
  }
@@ -2618,7 +2598,7 @@ function claimAndEnqueue(frame, identity, importedPackage, packageRoot, walkNest
2618
2598
  return true;
2619
2599
  }
2620
2600
  async function visitGit(frame, identity, state) {
2621
- const fetched = resolveAndFetchApmGitDependency(frame.dependency, state.harnesstapDir, {
2601
+ const fetched = await resolveAndFetchApmGitDependency(frame.dependency, state.harnesstapDir, {
2622
2602
  ...state.update ? { update: true } : {},
2623
2603
  ...state.lock ? { lock: state.lock } : {}
2624
2604
  });
@@ -3544,10 +3524,10 @@ async function addPluginFromMarketplace(input) {
3544
3524
  homeRoot: input.homeRoot,
3545
3525
  projectRoot: input.projectRoot
3546
3526
  };
3547
- ensureMarketplaces(refreshed.claude, ensureOptions);
3527
+ await ensureMarketplaces(refreshed.claude, ensureOptions);
3548
3528
  if (marketplace.platforms.includes("cursor")) {
3549
3529
  const ensureCursor = input.ensureCursorMarketplaces ?? ensureCursorMarketplaces;
3550
- ensureCursor(
3530
+ await ensureCursor(
3551
3531
  [{ name: marketplace.name, url: marketplace.url }],
3552
3532
  {
3553
3533
  homeRoot: input.homeRoot,
@@ -5020,7 +5000,7 @@ async function handleProjectApplyCommand(pluginNames, opts) {
5020
5000
  });
5021
5001
  spin.stop();
5022
5002
  if (materialized.cancelled) {
5023
- fail("Apply cancelled due to file conflicts.", {
5003
+ fail(applyCancelledMessage(materialized.conflicts.map((conflict) => conflict.path), "apply"), {
5024
5004
  hint: CLI_HINTS.onConflictReplace
5025
5005
  });
5026
5006
  process.exitCode = 1;
@@ -5601,7 +5581,7 @@ async function handlePluginFromProjectCommand(name, opts) {
5601
5581
  fail(error instanceof Error ? error.message : String(error));
5602
5582
  return;
5603
5583
  }
5604
- const { previewPluginFromProject } = await import("./plugin-from-project-X3VO3MB6.js");
5584
+ const { previewPluginFromProject } = await import("./plugin-from-project-UK7VJVUP.js");
5605
5585
  const preview = await previewPluginFromProject({
5606
5586
  name: resolvedName,
5607
5587
  projectRoot,
@@ -5764,7 +5744,7 @@ async function handlePluginCreateCommand(name, opts) {
5764
5744
  if (harnesses) {
5765
5745
  assertSupportedHarnessTargets(harnesses);
5766
5746
  }
5767
- const resolvedPackage = resolveSkillPackageCheckout(opts.from, harnesstapDir);
5747
+ const resolvedPackage = await resolveSkillPackageCheckout(opts.from, harnesstapDir);
5768
5748
  const shouldPrompt = shouldUseWizard({
5769
5749
  noInteractive: opts.yes,
5770
5750
  interactive: opts.interactive,
@@ -5984,7 +5964,7 @@ async function handlePluginSearchCommand(query, opts = {}) {
5984
5964
  format: opts.format
5985
5965
  });
5986
5966
  if (useBrowsePicker) {
5987
- const plugins2 = searchCatalogPlugins(harnesstapDir, query ?? "", {
5967
+ const plugins2 = await searchCatalogPlugins(harnesstapDir, query ?? "", {
5988
5968
  refresh: opts.refresh
5989
5969
  });
5990
5970
  if (plugins2.length === 0) {
@@ -6015,7 +5995,7 @@ async function handlePluginSearchCommand(query, opts = {}) {
6015
5995
  await addMarketplacePluginPin(selectedRef, pluginName, format);
6016
5996
  return;
6017
5997
  }
6018
- const plugins = searchCatalogPlugins(harnesstapDir, query ?? "", {
5998
+ const plugins = await searchCatalogPlugins(harnesstapDir, query ?? "", {
6019
5999
  refresh: opts.refresh
6020
6000
  });
6021
6001
  printPluginSearchResults(plugins, format);
@@ -6365,7 +6345,10 @@ function registerPluginCommands(root) {
6365
6345
  pluginPublishCmd.command("plan").argument("<plugin>", "Local plugin name").option("--account <name>", "Cloud account to use").option("--format <mode>", "Output format: human or json", "human").description("Dry-run publish targets for a local plugin").action(async (plugin, opts) => {
6366
6346
  await handlePluginPublishPlanCommand(plugin, opts);
6367
6347
  });
6368
- pluginPublishCmd.argument("<plugin>", "Local plugin name to publish").argument("[target]", "One-off org/catalog target").option("--org <slug>", "One-off organization slug").option("--catalog <slug>", "One-off catalog slug (default: default)").option("--version <semver>", "Cut the plugin to this semver before publishing").option("--account <name>", "Cloud account to use").option("--format <mode>", "Output format: human or json", "human").action((plugin, target, opts) => handlePluginPublishCommand(plugin, target, opts));
6348
+ pluginPublishCmd.argument("<plugin>", "Local plugin name to publish").argument("[target]", "One-off org/catalog target").option("--org <slug>", "One-off organization slug").option("--catalog <slug>", "One-off catalog slug (default: default)").option("--version <semver>", "Cut the plugin to this semver before publishing").option("--account <name>", "Cloud account to use").option("--format <mode>", "Output format: human or json", "human").option("--strict", "Block publish when Agent Plugins export warnings are present").option(
6349
+ "--vendor-extensions",
6350
+ "Also write com.github.copilot files and Codex hook settings"
6351
+ ).action((plugin, target, opts) => handlePluginPublishCommand(plugin, target, opts));
6369
6352
  pluginCmd.command("cut").argument("<plugin>", "Plugin name, name@version, or id").requiredOption("--version <semver>", "New version (must differ from current)").option("--format <mode>", "Output format: human or json", "human").description("Cut a new local version from the working head").action((plugin, opts) => {
6370
6353
  handlePluginCutCommand(plugin, opts);
6371
6354
  });
@@ -6379,6 +6362,7 @@ function registerPluginCommands(root) {
6379
6362
  );
6380
6363
  pluginCmd.command("diff").argument("<left>", "Plugin name or plugin export file").argument("<right>", "Plugin name or plugin export file").option("--format <mode>", "Output format: human or json", "human").description("Diff two plugins or a plugin and a plugin export file").action(handlePluginDiffCommand);
6381
6364
  pluginCmd.command("doctor").argument("[name]", "Plugin name or ID").option("--check <name>", "Run only the named check", (value, previous = []) => [...previous, value], []).option("--list-checks", "List available checks").option("--format <mode>", "Output format: human or json", "human").description("Run doctor checks against a plugin").action(handlePluginDoctorCommand);
6365
+ pluginCmd.command("validate").argument("<file>", "Plugin directory, .zip, or .ap.json envelope").option("--spec <version>", "Agent Plugins version to load as", "1.0.0").option("--format <mode>", "Output format: human or json", "human").description("Load an Agent Plugins package and report skills, MCP servers, and skipped entries").action(handlePluginValidateCommand);
6382
6366
  pluginCmd.command("validate-package", { hidden: true }).argument("<file>", "Package directory, .zip, or .ap.json envelope").option("--strict", "Require plugin.json $schema (publish and authoring rules)").option("--format <mode>", "Output format: human or json", "human").description("Validate an Agent Plugins package the same way catalog import does").action(handlePluginValidatePackageCommand);
6383
6367
  pluginCmd.command("check").argument("[name]", "Plugin name; omit to check every syncable working head").option("--refresh", "Force-fetch origins").option("--format <mode>", "Output format: human or json", "human").description("Compare library working heads to marketplace, git, and catalog origins").action(async (name, opts) => {
6384
6368
  try {
@@ -6435,4 +6419,4 @@ export {
6435
6419
  registerPluginCommands,
6436
6420
  registerDeprecatedLayerAlias
6437
6421
  };
6438
- //# sourceMappingURL=chunk-SZNBUIDR.js.map
6422
+ //# sourceMappingURL=chunk-QA5U36JN.js.map