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.
- package/README.md +2 -0
- package/dist/apply-SUNDXRJ3.js +54 -0
- package/dist/{approve-KQNCNH2R.js → approve-FBGYQGWN.js} +14 -15
- package/dist/{approve-KQNCNH2R.js.map → approve-FBGYQGWN.js.map} +1 -1
- package/dist/{audit-SLYOZCMI.js → audit-VI4QZ6X2.js} +30 -39
- package/dist/{audit-SLYOZCMI.js.map → audit-VI4QZ6X2.js.map} +1 -1
- package/dist/{auth-3IEVICFT.js → auth-4CQCDS2W.js} +17 -19
- package/dist/{auth-3IEVICFT.js.map → auth-4CQCDS2W.js.map} +1 -1
- package/dist/bin.js +3 -3
- package/dist/{chunk-KDDXZBMC.js → chunk-23XSG7LI.js} +7 -11
- package/dist/{chunk-KDDXZBMC.js.map → chunk-23XSG7LI.js.map} +1 -1
- package/dist/{chunk-YDD3ES2K.js → chunk-2A36HWDE.js} +63 -13
- package/dist/chunk-2A36HWDE.js.map +1 -0
- package/dist/{chunk-IK524ZDW.js → chunk-3FS775NP.js} +51 -4
- package/dist/chunk-3FS775NP.js.map +1 -0
- package/dist/{chunk-IBOABSIA.js → chunk-3P6BWL5F.js} +2 -2
- package/dist/{chunk-G26HZZDJ.js → chunk-43BDGVN3.js} +19 -6
- package/dist/chunk-43BDGVN3.js.map +1 -0
- package/dist/{chunk-TYULB6ZY.js → chunk-4ZQ2SCGY.js} +146 -78
- package/dist/chunk-4ZQ2SCGY.js.map +1 -0
- package/dist/{chunk-6BY4BV5G.js → chunk-6LTLYV5D.js} +353 -230
- package/dist/chunk-6LTLYV5D.js.map +1 -0
- package/dist/{chunk-GQKKX7OE.js → chunk-73OJQTBW.js} +6 -2
- package/dist/chunk-73OJQTBW.js.map +1 -0
- package/dist/{chunk-IRU7NBOT.js → chunk-7HP6AAI3.js} +2 -2
- package/dist/{chunk-MWXA4PFE.js → chunk-BPWFQKI5.js} +5 -7
- package/dist/{chunk-MWXA4PFE.js.map → chunk-BPWFQKI5.js.map} +1 -1
- package/dist/{chunk-3RBYT7QN.js → chunk-D432JAXV.js} +44 -19
- package/dist/chunk-D432JAXV.js.map +1 -0
- package/dist/chunk-DF4Z7LAD.js +3463 -0
- package/dist/chunk-DF4Z7LAD.js.map +1 -0
- package/dist/{chunk-J4CKQXQ6.js → chunk-EOPFER6N.js} +71 -318
- package/dist/chunk-EOPFER6N.js.map +1 -0
- package/dist/chunk-G6WKY2W4.js +389 -0
- package/dist/chunk-G6WKY2W4.js.map +1 -0
- package/dist/{chunk-JKGSJGCC.js → chunk-GRASK6M6.js} +5 -5
- package/dist/{chunk-63U7QWNY.js → chunk-IE7B6Q5K.js} +33 -39
- package/dist/chunk-IE7B6Q5K.js.map +1 -0
- package/dist/{chunk-VC6OKCJF.js → chunk-IMROMZ2K.js} +7 -4
- package/dist/{chunk-VC6OKCJF.js.map → chunk-IMROMZ2K.js.map} +1 -1
- package/dist/{chunk-DV74UZJI.js → chunk-L6YZE5MY.js} +3 -3
- package/dist/{chunk-SNVAMWB7.js → chunk-M2U3J7UX.js} +7 -1
- package/dist/chunk-M2U3J7UX.js.map +1 -0
- package/dist/{chunk-BSOBXLYI.js → chunk-M4KLHJ6U.js} +16 -13
- package/dist/chunk-M4KLHJ6U.js.map +1 -0
- package/dist/{chunk-VL7BGD47.js → chunk-MR7IOHSX.js} +16 -19
- package/dist/chunk-MR7IOHSX.js.map +1 -0
- package/dist/{chunk-4KNQZDZC.js → chunk-N3VGY3T3.js} +15 -15
- package/dist/chunk-N3VGY3T3.js.map +1 -0
- package/dist/{chunk-ZY2MZ2KQ.js → chunk-N3ZCH64F.js} +496 -10
- package/dist/chunk-N3ZCH64F.js.map +1 -0
- package/dist/{chunk-H6DVP2SI.js → chunk-OML4HXKT.js} +20 -22
- package/dist/chunk-OML4HXKT.js.map +1 -0
- package/dist/{chunk-NJ7WRKIQ.js → chunk-P2C7JPLD.js} +3 -3
- package/dist/{chunk-LNJ3WZZX.js → chunk-PCMON7Y2.js} +7 -7
- package/dist/{chunk-VL2NWCZV.js → chunk-PNGF5EV2.js} +2 -2
- package/dist/{chunk-SZNBUIDR.js → chunk-QA5U36JN.js} +199 -215
- package/dist/chunk-QA5U36JN.js.map +1 -0
- package/dist/{chunk-KDAV2GUT.js → chunk-R7ZOYVN3.js} +241 -126
- package/dist/chunk-R7ZOYVN3.js.map +1 -0
- package/dist/{chunk-QO4LBDVI.js → chunk-RDG5DT7S.js} +45 -49
- package/dist/{chunk-QO4LBDVI.js.map → chunk-RDG5DT7S.js.map} +1 -1
- package/dist/{chunk-VQVUJYYY.js → chunk-REHRUNBB.js} +8 -3
- package/dist/chunk-REHRUNBB.js.map +1 -0
- package/dist/{chunk-DXKAKKLP.js → chunk-RFQ3N7FB.js} +19 -29
- package/dist/chunk-RFQ3N7FB.js.map +1 -0
- package/dist/{chunk-C4QBVVEH.js → chunk-RVEXPMM3.js} +3 -3
- package/dist/{chunk-XFZQVYIN.js → chunk-TPEJFLV7.js} +13 -15
- package/dist/{chunk-XFZQVYIN.js.map → chunk-TPEJFLV7.js.map} +1 -1
- package/dist/{chunk-7LWH5SWH.js → chunk-U6DXASQP.js} +2 -2
- package/dist/{chunk-BIBUCC2E.js → chunk-ULCD6DJE.js} +30 -8
- package/dist/chunk-ULCD6DJE.js.map +1 -0
- package/dist/{chunk-KMWHZSEG.js → chunk-UVVZHWD2.js} +2 -2
- package/dist/{chunk-DWVAR4BP.js → chunk-WG5A6EAU.js} +270 -12
- package/dist/chunk-WG5A6EAU.js.map +1 -0
- package/dist/{chunk-QRZPQNLX.js → chunk-WGP4GUYZ.js} +10 -10
- package/dist/{chunk-F2L4VNQK.js → chunk-XTVGCVU4.js} +124 -83
- package/dist/chunk-XTVGCVU4.js.map +1 -0
- package/dist/{chunk-EIWXS4RM.js → chunk-XUJKZQZA.js} +8 -8
- package/dist/chunk-XUJKZQZA.js.map +1 -0
- package/dist/chunk-ZUASVASP.js +30317 -0
- package/dist/chunk-ZUASVASP.js.map +1 -0
- package/dist/{compile-57EEIUMB.js → compile-GXADKGH5.js} +37 -50
- package/dist/{compile-57EEIUMB.js.map → compile-GXADKGH5.js.map} +1 -1
- package/dist/{config-4EJ3D7QJ.js → config-JMHNA2U5.js} +22 -35
- package/dist/{config-4EJ3D7QJ.js.map → config-JMHNA2U5.js.map} +1 -1
- package/dist/cursor-local-install-46RWRBDT.js +98 -0
- package/dist/cursor-local-install-46RWRBDT.js.map +1 -0
- package/dist/{doctor-EEV6P5CH.js → doctor-N7ZULPOL.js} +18 -19
- package/dist/{doctor-EEV6P5CH.js.map → doctor-N7ZULPOL.js.map} +1 -1
- package/dist/{environment-WFEG4DAT.js → environment-OBB3WU5B.js} +60 -71
- package/dist/{environment-WFEG4DAT.js.map → environment-OBB3WU5B.js.map} +1 -1
- package/dist/{github-BSMQD72A.js → github-PBYBGOLH.js} +17 -17
- package/dist/{harness-VX3PNVQW.js → harness-7KYATIV6.js} +56 -67
- package/dist/{harness-VX3PNVQW.js.map → harness-7KYATIV6.js.map} +1 -1
- package/dist/{help-AW2HKX63.js → help-EE3AJQD4.js} +48 -52
- package/dist/help-EE3AJQD4.js.map +1 -0
- package/dist/{help-BVFOZD7E.js → help-VXWKLQ6A.js} +55 -15
- package/dist/help-VXWKLQ6A.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +16 -24
- package/dist/{init-SPN2GEZ4.js → init-LBTMPDVJ.js} +43 -56
- package/dist/init-LBTMPDVJ.js.map +1 -0
- package/dist/live-read-cache-TUSP7U3D.js +10 -0
- package/dist/{lock-K2LLUU7H.js → lock-WLJRXRVK.js} +16 -16
- package/dist/{marketplace-VEKSWGX3.js → marketplace-GXSV6QIY.js} +62 -28
- package/dist/marketplace-GXSV6QIY.js.map +1 -0
- package/dist/{mcp-T6DKIKSF.js → mcp-XPDWWU75.js} +35 -48
- package/dist/{mcp-T6DKIKSF.js.map → mcp-XPDWWU75.js.map} +1 -1
- package/dist/{migrate-OO37WSB2.js → migrate-SBUIWN3U.js} +79 -64
- package/dist/migrate-SBUIWN3U.js.map +1 -0
- package/dist/open-HDGLYYVU.js +24 -0
- package/dist/{pack-V32UPC7W.js → pack-A73LDVOX.js} +16 -22
- package/dist/{pack-V32UPC7W.js.map → pack-A73LDVOX.js.map} +1 -1
- package/dist/plugin-CEO6ZJM5.js +51 -0
- package/dist/plugin-from-project-UK7VJVUP.js +18 -0
- package/dist/{policy-F5MKZNOC.js → policy-6VY3CMSU.js} +13 -14
- package/dist/{policy-F5MKZNOC.js.map → policy-6VY3CMSU.js.map} +1 -1
- package/dist/{profile-H4PMH4XT.js → profile-YCKPMRRU.js} +96 -102
- package/dist/profile-YCKPMRRU.js.map +1 -0
- package/dist/{project-QVNEJJGH.js → project-KHPPBKPN.js} +63 -77
- package/dist/{project-QVNEJJGH.js.map → project-KHPPBKPN.js.map} +1 -1
- package/dist/{resource-GL4RLSGI.js → resource-IJU3FAN5.js} +42 -49
- package/dist/{resource-GL4RLSGI.js.map → resource-IJU3FAN5.js.map} +1 -1
- package/dist/{version-PBHZK44K.js → version-Z66FWWMQ.js} +2 -2
- package/dist/version-Z66FWWMQ.js.map +1 -0
- package/package.json +4 -1
- package/schemas/fixtures/confidence.ap.json +1 -1
- package/schemas/fixtures/context7.ap.json +1 -1
- package/schemas/fixtures/legacy-schema-v1.ap.json +13 -0
- package/schemas/fixtures/legacy-schemas-v1.ap.json +13 -0
- package/schemas/fixtures/minimal-with-schema.ap.json +1 -1
- package/schemas/fixtures/superpowers.ap.json +1 -1
- package/schemas/fixtures/third-party-skills.ap.json +1 -1
- package/dist/apply-2GRNKR5H.js +0 -67
- package/dist/chunk-2EIJYDNI.js +0 -10945
- package/dist/chunk-2EIJYDNI.js.map +0 -1
- package/dist/chunk-3IWTJCPA.js +0 -6448
- package/dist/chunk-3IWTJCPA.js.map +0 -1
- package/dist/chunk-3IZ7SEGT.js +0 -346
- package/dist/chunk-3IZ7SEGT.js.map +0 -1
- package/dist/chunk-3RBYT7QN.js.map +0 -1
- package/dist/chunk-4KNQZDZC.js.map +0 -1
- package/dist/chunk-63U7QWNY.js.map +0 -1
- package/dist/chunk-6BY4BV5G.js.map +0 -1
- package/dist/chunk-7L2K4N25.js +0 -610
- package/dist/chunk-7L2K4N25.js.map +0 -1
- package/dist/chunk-BIBUCC2E.js.map +0 -1
- package/dist/chunk-BSOBXLYI.js.map +0 -1
- package/dist/chunk-DWVAR4BP.js.map +0 -1
- package/dist/chunk-DXKAKKLP.js.map +0 -1
- package/dist/chunk-EIWXS4RM.js.map +0 -1
- package/dist/chunk-EWBCFAF3.js +0 -681
- package/dist/chunk-EWBCFAF3.js.map +0 -1
- package/dist/chunk-F2L4VNQK.js.map +0 -1
- package/dist/chunk-G26HZZDJ.js.map +0 -1
- package/dist/chunk-GQKKX7OE.js.map +0 -1
- package/dist/chunk-GRJY22U6.js +0 -691
- package/dist/chunk-GRJY22U6.js.map +0 -1
- package/dist/chunk-H6DVP2SI.js.map +0 -1
- package/dist/chunk-HVVPTCKR.js +0 -1173
- package/dist/chunk-HVVPTCKR.js.map +0 -1
- package/dist/chunk-IK524ZDW.js.map +0 -1
- package/dist/chunk-J4CKQXQ6.js.map +0 -1
- package/dist/chunk-JRFUTIEH.js +0 -426
- package/dist/chunk-JRFUTIEH.js.map +0 -1
- package/dist/chunk-K2BPYEH5.js +0 -491
- package/dist/chunk-K2BPYEH5.js.map +0 -1
- package/dist/chunk-KCQC7YBK.js +0 -7795
- package/dist/chunk-KCQC7YBK.js.map +0 -1
- package/dist/chunk-KDAV2GUT.js.map +0 -1
- package/dist/chunk-MY62SSKC.js +0 -183
- package/dist/chunk-MY62SSKC.js.map +0 -1
- package/dist/chunk-PXU2OS26.js +0 -238
- package/dist/chunk-PXU2OS26.js.map +0 -1
- package/dist/chunk-SNVAMWB7.js.map +0 -1
- package/dist/chunk-SPRVUATR.js +0 -430
- package/dist/chunk-SPRVUATR.js.map +0 -1
- package/dist/chunk-SY7G5QEI.js +0 -35
- package/dist/chunk-SY7G5QEI.js.map +0 -1
- package/dist/chunk-SZNBUIDR.js.map +0 -1
- package/dist/chunk-TYULB6ZY.js.map +0 -1
- package/dist/chunk-UJYFTXHV.js +0 -296
- package/dist/chunk-UJYFTXHV.js.map +0 -1
- package/dist/chunk-VL7BGD47.js.map +0 -1
- package/dist/chunk-VQVUJYYY.js.map +0 -1
- package/dist/chunk-XQFT4PEP.js +0 -60
- package/dist/chunk-XQFT4PEP.js.map +0 -1
- package/dist/chunk-YDD3ES2K.js.map +0 -1
- package/dist/chunk-ZY2MZ2KQ.js.map +0 -1
- package/dist/help-AW2HKX63.js.map +0 -1
- package/dist/help-BVFOZD7E.js.map +0 -1
- package/dist/init-SPN2GEZ4.js.map +0 -1
- package/dist/marketplace-VEKSWGX3.js.map +0 -1
- package/dist/migrate-OO37WSB2.js.map +0 -1
- package/dist/open-3V3QK5RK.js +0 -32
- package/dist/plugin-KOBNQ7GT.js +0 -64
- package/dist/plugin-from-project-X3VO3MB6.js +0 -16
- package/dist/profile-H4PMH4XT.js.map +0 -1
- /package/dist/{apply-2GRNKR5H.js.map → apply-SUNDXRJ3.js.map} +0 -0
- /package/dist/{chunk-IBOABSIA.js.map → chunk-3P6BWL5F.js.map} +0 -0
- /package/dist/{chunk-IRU7NBOT.js.map → chunk-7HP6AAI3.js.map} +0 -0
- /package/dist/{chunk-JKGSJGCC.js.map → chunk-GRASK6M6.js.map} +0 -0
- /package/dist/{chunk-DV74UZJI.js.map → chunk-L6YZE5MY.js.map} +0 -0
- /package/dist/{chunk-NJ7WRKIQ.js.map → chunk-P2C7JPLD.js.map} +0 -0
- /package/dist/{chunk-LNJ3WZZX.js.map → chunk-PCMON7Y2.js.map} +0 -0
- /package/dist/{chunk-VL2NWCZV.js.map → chunk-PNGF5EV2.js.map} +0 -0
- /package/dist/{chunk-C4QBVVEH.js.map → chunk-RVEXPMM3.js.map} +0 -0
- /package/dist/{chunk-7LWH5SWH.js.map → chunk-U6DXASQP.js.map} +0 -0
- /package/dist/{chunk-KMWHZSEG.js.map → chunk-UVVZHWD2.js.map} +0 -0
- /package/dist/{chunk-QRZPQNLX.js.map → chunk-WGP4GUYZ.js.map} +0 -0
- /package/dist/{github-BSMQD72A.js.map → github-PBYBGOLH.js.map} +0 -0
- /package/dist/{open-3V3QK5RK.js.map → live-read-cache-TUSP7U3D.js.map} +0 -0
- /package/dist/{lock-K2LLUU7H.js.map → lock-WLJRXRVK.js.map} +0 -0
- /package/dist/{plugin-KOBNQ7GT.js.map → open-HDGLYYVU.js.map} +0 -0
- /package/dist/{plugin-from-project-X3VO3MB6.js.map → plugin-CEO6ZJM5.js.map} +0 -0
- /package/dist/{version-PBHZK44K.js.map → plugin-from-project-UK7VJVUP.js.map} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleProjectApplyCommand,
|
|
3
|
+
registerDeprecatedLayerAlias,
|
|
4
|
+
registerPluginCommands
|
|
5
|
+
} from "./chunk-QA5U36JN.js";
|
|
6
|
+
import "./chunk-4ZQ2SCGY.js";
|
|
7
|
+
import "./chunk-R7ZOYVN3.js";
|
|
8
|
+
import "./chunk-D432JAXV.js";
|
|
9
|
+
import "./chunk-MR7IOHSX.js";
|
|
10
|
+
import "./chunk-EOPFER6N.js";
|
|
11
|
+
import "./chunk-OML4HXKT.js";
|
|
12
|
+
import "./chunk-XUJKZQZA.js";
|
|
13
|
+
import "./chunk-CHQGE2HF.js";
|
|
14
|
+
import "./chunk-7HP6AAI3.js";
|
|
15
|
+
import "./chunk-ULCD6DJE.js";
|
|
16
|
+
import "./chunk-N3VGY3T3.js";
|
|
17
|
+
import "./chunk-GRASK6M6.js";
|
|
18
|
+
import "./chunk-VZQG2JDV.js";
|
|
19
|
+
import "./chunk-PNGF5EV2.js";
|
|
20
|
+
import "./chunk-P2C7JPLD.js";
|
|
21
|
+
import "./chunk-UVVZHWD2.js";
|
|
22
|
+
import "./chunk-3P6BWL5F.js";
|
|
23
|
+
import "./chunk-KRI4R7EM.js";
|
|
24
|
+
import "./chunk-XGTTOO4R.js";
|
|
25
|
+
import "./chunk-37E5M4JX.js";
|
|
26
|
+
import "./chunk-JQOKQKQT.js";
|
|
27
|
+
import "./chunk-3FIWOI3H.js";
|
|
28
|
+
import "./chunk-RDG5DT7S.js";
|
|
29
|
+
import "./chunk-NAGAJ5UM.js";
|
|
30
|
+
import "./chunk-3FS775NP.js";
|
|
31
|
+
import "./chunk-43BDGVN3.js";
|
|
32
|
+
import "./chunk-BPWFQKI5.js";
|
|
33
|
+
import "./chunk-I6XFZLTJ.js";
|
|
34
|
+
import "./chunk-23XSG7LI.js";
|
|
35
|
+
import "./chunk-TQ2NA4Z4.js";
|
|
36
|
+
import "./chunk-RFQ3N7FB.js";
|
|
37
|
+
import "./chunk-ZUASVASP.js";
|
|
38
|
+
import "./chunk-6LTLYV5D.js";
|
|
39
|
+
import "./chunk-N3ZCH64F.js";
|
|
40
|
+
import "./chunk-REHRUNBB.js";
|
|
41
|
+
import "./chunk-2A36HWDE.js";
|
|
42
|
+
import "./chunk-DF4Z7LAD.js";
|
|
43
|
+
import "./chunk-G6WKY2W4.js";
|
|
44
|
+
import "./chunk-73OJQTBW.js";
|
|
45
|
+
import "./chunk-WG5A6EAU.js";
|
|
46
|
+
export {
|
|
47
|
+
handleProjectApplyCommand,
|
|
48
|
+
registerDeprecatedLayerAlias,
|
|
49
|
+
registerPluginCommands
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=plugin-CEO6ZJM5.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPluginFromProject,
|
|
3
|
+
previewPluginFromProject
|
|
4
|
+
} from "./chunk-BPWFQKI5.js";
|
|
5
|
+
import "./chunk-ZUASVASP.js";
|
|
6
|
+
import "./chunk-6LTLYV5D.js";
|
|
7
|
+
import "./chunk-N3ZCH64F.js";
|
|
8
|
+
import "./chunk-REHRUNBB.js";
|
|
9
|
+
import "./chunk-2A36HWDE.js";
|
|
10
|
+
import "./chunk-DF4Z7LAD.js";
|
|
11
|
+
import "./chunk-G6WKY2W4.js";
|
|
12
|
+
import "./chunk-73OJQTBW.js";
|
|
13
|
+
import "./chunk-WG5A6EAU.js";
|
|
14
|
+
export {
|
|
15
|
+
createPluginFromProject,
|
|
16
|
+
previewPluginFromProject
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=plugin-from-project-UK7VJVUP.js.map
|
|
@@ -5,25 +5,24 @@ import {
|
|
|
5
5
|
exactGrantMatch,
|
|
6
6
|
execStatusFromDecisions,
|
|
7
7
|
installedTrustReports
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-HVVPTCKR.js";
|
|
10
|
-
import {
|
|
11
|
-
readLockfile
|
|
12
|
-
} from "./chunk-SPRVUATR.js";
|
|
13
|
-
import "./chunk-EWBCFAF3.js";
|
|
14
|
-
import "./chunk-2EIJYDNI.js";
|
|
15
|
-
import "./chunk-6BY4BV5G.js";
|
|
16
|
-
import "./chunk-GQKKX7OE.js";
|
|
8
|
+
} from "./chunk-23XSG7LI.js";
|
|
17
9
|
import {
|
|
18
10
|
parseOutputFormat,
|
|
19
11
|
printJson
|
|
20
12
|
} from "./chunk-TQ2NA4Z4.js";
|
|
13
|
+
import {
|
|
14
|
+
readLockfile
|
|
15
|
+
} from "./chunk-ZUASVASP.js";
|
|
16
|
+
import "./chunk-6LTLYV5D.js";
|
|
17
|
+
import "./chunk-N3ZCH64F.js";
|
|
18
|
+
import "./chunk-REHRUNBB.js";
|
|
21
19
|
import {
|
|
22
20
|
ui
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-2A36HWDE.js";
|
|
22
|
+
import "./chunk-DF4Z7LAD.js";
|
|
23
|
+
import "./chunk-G6WKY2W4.js";
|
|
24
|
+
import "./chunk-73OJQTBW.js";
|
|
25
|
+
import "./chunk-WG5A6EAU.js";
|
|
27
26
|
|
|
28
27
|
// src/cli/commands/policy.ts
|
|
29
28
|
import { resolve } from "path";
|
|
@@ -102,4 +101,4 @@ export {
|
|
|
102
101
|
handlePolicyExplainCommand,
|
|
103
102
|
registerPolicyCommands
|
|
104
103
|
};
|
|
105
|
-
//# sourceMappingURL=policy-
|
|
104
|
+
//# sourceMappingURL=policy-6VY3CMSU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/cli/commands/policy.ts"],"sourcesContent":["import type { Command } from \"commander\";\nimport { resolve } from \"node:path\";\nimport {\n buildExecutableTrustContext,\n evaluateExecutableType,\n exactGrantMatch,\n EXEC_TYPES,\n execStatusFromDecisions,\n installedTrustReports,\n type PackageTrustReport,\n} from \"../../services/executable-trust.js\";\nimport { readLockfile } from \"../../services/lockfile.js\";\nimport { parseOutputFormat, printJson } from \"../../utils/output-format.js\";\nimport { ui } from \"../../ui/index.js\";\n\nexport interface PolicyExplainOpts {\n project?: string;\n format?: string;\n}\n\nfunction shadowedLine(decision: PackageTrustReport[\"decisions\"][number]): string {\n if (decision.shadowed.length === 0) {\n return \"none\";\n }\n return decision.shadowed\n .map((entry) => `${entry.layer} (${entry.outcome})`)\n .join(\", \");\n}\n\nfunction printExplain(report: PackageTrustReport, optedIn: boolean): void {\n if (!optedIn) {\n ui.info(`${report.ref} gate off`);\n return;\n }\n ui.info(`${report.ref} ${report.execStatus}`);\n const types = report.gatedTypes.length > 0 ? report.gatedTypes : EXEC_TYPES;\n for (const type of types) {\n const decision = report.decisions.find((entry) => entry.type === type);\n if (!decision) continue;\n ui.info(\n ` ${type} ${decision.outcome} layer ${decision.layer} shadowed ${shadowedLine(decision)}`,\n );\n }\n}\n\nfunction reportForRef(\n packageRef: string,\n installed: PackageTrustReport[],\n context: ReturnType<typeof buildExecutableTrustContext>,\n): PackageTrustReport {\n const existing = installed.find((entry) =>\n exactGrantMatch(packageRef, [entry.ref, entry.name, ...entry.identities]),\n );\n if (existing) {\n return existing;\n }\n const identities = [packageRef];\n const decisions = EXEC_TYPES.map((type) => evaluateExecutableType(context, identities, type));\n return {\n ref: packageRef,\n name: packageRef,\n version: \"\",\n identities,\n gatedTypes: [...EXEC_TYPES],\n decisions,\n execStatus: execStatusFromDecisions([...EXEC_TYPES], decisions),\n };\n}\n\nexport function handlePolicyExplainCommand(\n packageRef: string,\n opts: PolicyExplainOpts,\n): void {\n const format = parseOutputFormat(opts.format);\n const projectRoot = resolve(opts.project ?? \".\");\n const context = buildExecutableTrustContext({ projectRoot });\n const lock = readLockfile(projectRoot);\n const installed = installedTrustReports(context, { ...(lock ? { lock } : {}) });\n const report = reportForRef(packageRef, installed, context);\n\n if (format === \"json\") {\n printJson({\n ref: report.ref,\n name: report.name,\n version: report.version,\n exec_status: report.execStatus,\n opted_in: context.optedIn,\n deciding_layer: report.decisions[0]?.layer,\n decisions: report.decisions,\n warnings: context.warnings,\n });\n return;\n }\n for (const warning of context.warnings) {\n ui.warn(warning);\n }\n printExplain(report, context.optedIn);\n}\n\nexport function registerPolicyCommands(root: Command): void {\n const policy = root\n .command(\"policy\")\n .description(\"Inspect executable-trust and apm-policy.yml decisions\");\n\n policy\n .command(\"explain\")\n .description(\"Print the effective executable-trust decision for a package\")\n .argument(\"<PACKAGE_REF>\", \"Package to explain (owner/repo)\")\n .option(\"--project <path>\", \"Project directory\", \".\")\n .option(\"--format <mode>\", \"Output format: human or json\", \"human\")\n .action((ref: string, explainOpts: PolicyExplainOpts) => {\n handlePolicyExplainCommand(ref, explainOpts);\n });\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/cli/commands/policy.ts"],"sourcesContent":["import type { Command } from \"commander\";\nimport { resolve } from \"node:path\";\nimport {\n buildExecutableTrustContext,\n evaluateExecutableType,\n exactGrantMatch,\n EXEC_TYPES,\n execStatusFromDecisions,\n installedTrustReports,\n type PackageTrustReport,\n} from \"../../services/executable-trust.js\";\nimport { readLockfile } from \"../../services/lockfile.js\";\nimport { parseOutputFormat, printJson } from \"../../utils/output-format.js\";\nimport { ui } from \"../../ui/index.js\";\n\nexport interface PolicyExplainOpts {\n project?: string;\n format?: string;\n}\n\nfunction shadowedLine(decision: PackageTrustReport[\"decisions\"][number]): string {\n if (decision.shadowed.length === 0) {\n return \"none\";\n }\n return decision.shadowed\n .map((entry) => `${entry.layer} (${entry.outcome})`)\n .join(\", \");\n}\n\nfunction printExplain(report: PackageTrustReport, optedIn: boolean): void {\n if (!optedIn) {\n ui.info(`${report.ref} gate off`);\n return;\n }\n ui.info(`${report.ref} ${report.execStatus}`);\n const types = report.gatedTypes.length > 0 ? report.gatedTypes : EXEC_TYPES;\n for (const type of types) {\n const decision = report.decisions.find((entry) => entry.type === type);\n if (!decision) continue;\n ui.info(\n ` ${type} ${decision.outcome} layer ${decision.layer} shadowed ${shadowedLine(decision)}`,\n );\n }\n}\n\nfunction reportForRef(\n packageRef: string,\n installed: PackageTrustReport[],\n context: ReturnType<typeof buildExecutableTrustContext>,\n): PackageTrustReport {\n const existing = installed.find((entry) =>\n exactGrantMatch(packageRef, [entry.ref, entry.name, ...entry.identities]),\n );\n if (existing) {\n return existing;\n }\n const identities = [packageRef];\n const decisions = EXEC_TYPES.map((type) => evaluateExecutableType(context, identities, type));\n return {\n ref: packageRef,\n name: packageRef,\n version: \"\",\n identities,\n gatedTypes: [...EXEC_TYPES],\n decisions,\n execStatus: execStatusFromDecisions([...EXEC_TYPES], decisions),\n };\n}\n\nexport function handlePolicyExplainCommand(\n packageRef: string,\n opts: PolicyExplainOpts,\n): void {\n const format = parseOutputFormat(opts.format);\n const projectRoot = resolve(opts.project ?? \".\");\n const context = buildExecutableTrustContext({ projectRoot });\n const lock = readLockfile(projectRoot);\n const installed = installedTrustReports(context, { ...(lock ? { lock } : {}) });\n const report = reportForRef(packageRef, installed, context);\n\n if (format === \"json\") {\n printJson({\n ref: report.ref,\n name: report.name,\n version: report.version,\n exec_status: report.execStatus,\n opted_in: context.optedIn,\n deciding_layer: report.decisions[0]?.layer,\n decisions: report.decisions,\n warnings: context.warnings,\n });\n return;\n }\n for (const warning of context.warnings) {\n ui.warn(warning);\n }\n printExplain(report, context.optedIn);\n}\n\nexport function registerPolicyCommands(root: Command): void {\n const policy = root\n .command(\"policy\")\n .description(\"Inspect executable-trust and apm-policy.yml decisions\");\n\n policy\n .command(\"explain\")\n .description(\"Print the effective executable-trust decision for a package\")\n .argument(\"<PACKAGE_REF>\", \"Package to explain (owner/repo)\")\n .option(\"--project <path>\", \"Project directory\", \".\")\n .option(\"--format <mode>\", \"Output format: human or json\", \"human\")\n .action((ref: string, explainOpts: PolicyExplainOpts) => {\n handlePolicyExplainCommand(ref, explainOpts);\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,eAAe;AAmBxB,SAAS,aAAa,UAA2D;AAC/E,MAAI,SAAS,SAAS,WAAW,GAAG;AAClC,WAAO;AAAA,EACT;AACA,SAAO,SAAS,SACb,IAAI,CAAC,UAAU,GAAG,MAAM,KAAK,KAAK,MAAM,OAAO,GAAG,EAClD,KAAK,IAAI;AACd;AAEA,SAAS,aAAa,QAA4B,SAAwB;AACxE,MAAI,CAAC,SAAS;AACZ,OAAG,KAAK,GAAG,OAAO,GAAG,YAAY;AACjC;AAAA,EACF;AACA,KAAG,KAAK,GAAG,OAAO,GAAG,KAAK,OAAO,UAAU,EAAE;AAC7C,QAAM,QAAQ,OAAO,WAAW,SAAS,IAAI,OAAO,aAAa;AACjE,aAAW,QAAQ,OAAO;AACxB,UAAM,WAAW,OAAO,UAAU,KAAK,CAAC,UAAU,MAAM,SAAS,IAAI;AACrE,QAAI,CAAC,SAAU;AACf,OAAG;AAAA,MACD,KAAK,IAAI,KAAK,SAAS,OAAO,WAAW,SAAS,KAAK,cAAc,aAAa,QAAQ,CAAC;AAAA,IAC7F;AAAA,EACF;AACF;AAEA,SAAS,aACP,YACA,WACA,SACoB;AACpB,QAAM,WAAW,UAAU;AAAA,IAAK,CAAC,UAC/B,gBAAgB,YAAY,CAAC,MAAM,KAAK,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC;AAAA,EAC1E;AACA,MAAI,UAAU;AACZ,WAAO;AAAA,EACT;AACA,QAAM,aAAa,CAAC,UAAU;AAC9B,QAAM,YAAY,WAAW,IAAI,CAAC,SAAS,uBAAuB,SAAS,YAAY,IAAI,CAAC;AAC5F,SAAO;AAAA,IACL,KAAK;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA,YAAY,CAAC,GAAG,UAAU;AAAA,IAC1B;AAAA,IACA,YAAY,wBAAwB,CAAC,GAAG,UAAU,GAAG,SAAS;AAAA,EAChE;AACF;AAEO,SAAS,2BACd,YACA,MACM;AACN,QAAM,SAAS,kBAAkB,KAAK,MAAM;AAC5C,QAAM,cAAc,QAAQ,KAAK,WAAW,GAAG;AAC/C,QAAM,UAAU,4BAA4B,EAAE,YAAY,CAAC;AAC3D,QAAM,OAAO,aAAa,WAAW;AACrC,QAAM,YAAY,sBAAsB,SAAS,EAAE,GAAI,OAAO,EAAE,KAAK,IAAI,CAAC,EAAG,CAAC;AAC9E,QAAM,SAAS,aAAa,YAAY,WAAW,OAAO;AAE1D,MAAI,WAAW,QAAQ;AACrB,cAAU;AAAA,MACR,KAAK,OAAO;AAAA,MACZ,MAAM,OAAO;AAAA,MACb,SAAS,OAAO;AAAA,MAChB,aAAa,OAAO;AAAA,MACpB,UAAU,QAAQ;AAAA,MAClB,gBAAgB,OAAO,UAAU,CAAC,GAAG;AAAA,MACrC,WAAW,OAAO;AAAA,MAClB,UAAU,QAAQ;AAAA,IACpB,CAAC;AACD;AAAA,EACF;AACA,aAAW,WAAW,QAAQ,UAAU;AACtC,OAAG,KAAK,OAAO;AAAA,EACjB;AACA,eAAa,QAAQ,QAAQ,OAAO;AACtC;AAEO,SAAS,uBAAuB,MAAqB;AAC1D,QAAM,SAAS,KACZ,QAAQ,QAAQ,EAChB,YAAY,uDAAuD;AAEtE,SACG,QAAQ,SAAS,EACjB,YAAY,6DAA6D,EACzE,SAAS,iBAAiB,iCAAiC,EAC3D,OAAO,oBAAoB,qBAAqB,GAAG,EACnD,OAAO,mBAAmB,gCAAgC,OAAO,EACjE,OAAO,CAAC,KAAa,gBAAmC;AACvD,+BAA2B,KAAK,WAAW;AAAA,EAC7C,CAAC;AACL;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
registerProfileParityCommands
|
|
3
|
-
} from "./chunk-F2L4VNQK.js";
|
|
4
|
-
import "./chunk-QRZPQNLX.js";
|
|
5
1
|
import {
|
|
6
2
|
mapProfileUseDelegationOptions,
|
|
7
3
|
renderProjectUseHuman
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import
|
|
4
|
+
} from "./chunk-M4KLHJ6U.js";
|
|
5
|
+
import {
|
|
6
|
+
registerProfileParityCommands
|
|
7
|
+
} from "./chunk-XTVGCVU4.js";
|
|
8
|
+
import "./chunk-PCMON7Y2.js";
|
|
9
|
+
import "./chunk-WGP4GUYZ.js";
|
|
10
10
|
import {
|
|
11
11
|
countMaterialPluginResources,
|
|
12
12
|
createPluginFromSource,
|
|
@@ -15,13 +15,7 @@ import {
|
|
|
15
15
|
handlePluginPublishCommand,
|
|
16
16
|
handlePluginShowCommand,
|
|
17
17
|
runPluginCreateFromSourceWizard
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
resolvePluginMutationTarget
|
|
21
|
-
} from "./chunk-VL7BGD47.js";
|
|
22
|
-
import "./chunk-MY62SSKC.js";
|
|
23
|
-
import "./chunk-4KNQZDZC.js";
|
|
24
|
-
import "./chunk-GRJY22U6.js";
|
|
18
|
+
} from "./chunk-4ZQ2SCGY.js";
|
|
25
19
|
import {
|
|
26
20
|
applyProfileStashCommand,
|
|
27
21
|
buildProjectProfileChoices,
|
|
@@ -33,22 +27,27 @@ import {
|
|
|
33
27
|
printApplyDryRun,
|
|
34
28
|
printApplyPayload,
|
|
35
29
|
promptMaterializationConflict,
|
|
30
|
+
reportApplyCancelled,
|
|
36
31
|
resolveApplyConflictPolicy,
|
|
37
32
|
resolveExpectedPluginName,
|
|
38
33
|
resolveUserPath,
|
|
39
34
|
stashProfileCommand
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-KRI4R7EM.js";
|
|
35
|
+
} from "./chunk-R7ZOYVN3.js";
|
|
36
|
+
import {
|
|
37
|
+
resolvePluginMutationTarget
|
|
38
|
+
} from "./chunk-MR7IOHSX.js";
|
|
39
|
+
import "./chunk-EOPFER6N.js";
|
|
46
40
|
import {
|
|
47
41
|
resolveSkillPackageCheckout
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-OML4HXKT.js";
|
|
43
|
+
import "./chunk-XUJKZQZA.js";
|
|
44
|
+
import "./chunk-7HP6AAI3.js";
|
|
45
|
+
import "./chunk-N3VGY3T3.js";
|
|
46
|
+
import "./chunk-GRASK6M6.js";
|
|
47
|
+
import "./chunk-VZQG2JDV.js";
|
|
48
|
+
import "./chunk-P2C7JPLD.js";
|
|
49
|
+
import "./chunk-UVVZHWD2.js";
|
|
50
|
+
import "./chunk-KRI4R7EM.js";
|
|
52
51
|
import "./chunk-XGTTOO4R.js";
|
|
53
52
|
import {
|
|
54
53
|
parseCommaSeparatedList
|
|
@@ -57,21 +56,7 @@ import "./chunk-JQOKQKQT.js";
|
|
|
57
56
|
import "./chunk-3FIWOI3H.js";
|
|
58
57
|
import {
|
|
59
58
|
renderCliError
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import {
|
|
62
|
-
PinnedPluginInstallConsentError,
|
|
63
|
-
ProfileReservedNameError,
|
|
64
|
-
createProfileCommand,
|
|
65
|
-
deleteProfileCommand,
|
|
66
|
-
getActiveProfileName,
|
|
67
|
-
listProfilePluginsCommand,
|
|
68
|
-
showProfileCommand,
|
|
69
|
-
tagProfileCommand,
|
|
70
|
-
useProfileCommand,
|
|
71
|
-
useProfileCommandUnlocked,
|
|
72
|
-
withProfileApplyLock
|
|
73
|
-
} from "./chunk-KCQC7YBK.js";
|
|
74
|
-
import "./chunk-PXU2OS26.js";
|
|
59
|
+
} from "./chunk-RDG5DT7S.js";
|
|
75
60
|
import {
|
|
76
61
|
isPromptCancellationError,
|
|
77
62
|
promptForChoice,
|
|
@@ -81,89 +66,90 @@ import {
|
|
|
81
66
|
} from "./chunk-NAGAJ5UM.js";
|
|
82
67
|
import {
|
|
83
68
|
initializeSchema
|
|
84
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-3FS775NP.js";
|
|
85
70
|
import {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
isProfilePlugin,
|
|
89
|
-
listProfilePlugins
|
|
90
|
-
} from "./chunk-SY7G5QEI.js";
|
|
91
|
-
import "./chunk-XQFT4PEP.js";
|
|
71
|
+
configureCommandGroup
|
|
72
|
+
} from "./chunk-43BDGVN3.js";
|
|
92
73
|
import {
|
|
93
74
|
previewPluginFromProject
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import {
|
|
96
|
-
findProjectConfig,
|
|
97
|
-
getProfileEntry
|
|
98
|
-
} from "./chunk-3IZ7SEGT.js";
|
|
75
|
+
} from "./chunk-BPWFQKI5.js";
|
|
99
76
|
import {
|
|
100
77
|
formatPluginLabel
|
|
101
78
|
} from "./chunk-I6XFZLTJ.js";
|
|
102
|
-
import "./chunk-7L2K4N25.js";
|
|
103
|
-
import "./chunk-JRFUTIEH.js";
|
|
104
79
|
import {
|
|
105
|
-
|
|
106
|
-
|
|
80
|
+
parseOutputFormat,
|
|
81
|
+
printJson
|
|
82
|
+
} from "./chunk-TQ2NA4Z4.js";
|
|
107
83
|
import {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
84
|
+
ON_CONFLICT_APPLY_HELP,
|
|
85
|
+
ON_CONFLICT_PLUGIN_IMPORT_HELP,
|
|
86
|
+
collectRepeatedOption,
|
|
87
|
+
fail,
|
|
88
|
+
failCaught,
|
|
89
|
+
formatCommand,
|
|
90
|
+
formatHintCommand,
|
|
91
|
+
parseOnConflict,
|
|
92
|
+
toPluginImportOnConflict
|
|
93
|
+
} from "./chunk-RFQ3N7FB.js";
|
|
115
94
|
import {
|
|
95
|
+
PROFILE_PLUGIN_TAG,
|
|
96
|
+
PinnedPluginInstallConsentError,
|
|
97
|
+
ProfileReservedNameError,
|
|
116
98
|
addPluginAttachment,
|
|
117
99
|
addResourceToPlugin,
|
|
100
|
+
assertSupportedHarnessTargets,
|
|
118
101
|
createPlugin,
|
|
102
|
+
createProfileCommand,
|
|
119
103
|
deletePlugin,
|
|
104
|
+
deleteProfileCommand,
|
|
120
105
|
diskCaptureHarnessScope,
|
|
106
|
+
findProjectConfig,
|
|
121
107
|
formatPluginRef,
|
|
122
108
|
getPlugin,
|
|
123
109
|
getPluginByName,
|
|
110
|
+
getProfileEntry,
|
|
124
111
|
getResource,
|
|
112
|
+
isEmptyBuiltinProfile,
|
|
113
|
+
isProfilePlugin,
|
|
125
114
|
listAttachedPluginRefs,
|
|
126
115
|
listPlugins,
|
|
116
|
+
listProfilePlugins,
|
|
117
|
+
listProfilePluginsCommand,
|
|
127
118
|
listResources,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
119
|
+
persistMergedProjectScan,
|
|
120
|
+
persistScanResults,
|
|
121
|
+
resolvePluginSelector,
|
|
122
|
+
scanHomeDefaults,
|
|
123
|
+
showProfileCommand,
|
|
124
|
+
tagProfileCommand,
|
|
125
|
+
useProfileCommand,
|
|
126
|
+
useProfileCommandUnlocked,
|
|
127
|
+
withProfileApplyLock
|
|
128
|
+
} from "./chunk-ZUASVASP.js";
|
|
129
|
+
import "./chunk-6LTLYV5D.js";
|
|
130
|
+
import "./chunk-N3ZCH64F.js";
|
|
131
|
+
import "./chunk-REHRUNBB.js";
|
|
141
132
|
import {
|
|
142
|
-
ON_CONFLICT_APPLY_HELP,
|
|
143
|
-
ON_CONFLICT_PLUGIN_IMPORT_HELP,
|
|
144
|
-
collectRepeatedOption,
|
|
145
|
-
fail,
|
|
146
|
-
failCaught,
|
|
147
|
-
formatCommand,
|
|
148
|
-
formatHintCommand,
|
|
149
133
|
missingRequiredArg,
|
|
150
|
-
parseOnConflict,
|
|
151
|
-
toPluginImportOnConflict
|
|
152
|
-
} from "./chunk-DXKAKKLP.js";
|
|
153
|
-
import {
|
|
154
|
-
formatCount,
|
|
155
134
|
ui
|
|
156
|
-
} from "./chunk-
|
|
157
|
-
import
|
|
158
|
-
|
|
135
|
+
} from "./chunk-2A36HWDE.js";
|
|
136
|
+
import {
|
|
137
|
+
clearLiveReadCaches,
|
|
138
|
+
getActiveProfileName,
|
|
139
|
+
resolveHomeRoot
|
|
140
|
+
} from "./chunk-DF4Z7LAD.js";
|
|
141
|
+
import "./chunk-G6WKY2W4.js";
|
|
142
|
+
import "./chunk-73OJQTBW.js";
|
|
159
143
|
import {
|
|
160
144
|
CLI_ERRORS,
|
|
161
145
|
CLI_HINTS,
|
|
162
146
|
SWITCH_CHANGES_FLAG_HELP,
|
|
163
147
|
dryRunStashLine,
|
|
148
|
+
formatCount,
|
|
149
|
+
formatHtArgs,
|
|
164
150
|
getDb,
|
|
165
151
|
getHarnesstapDir
|
|
166
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-WG5A6EAU.js";
|
|
167
153
|
|
|
168
154
|
// src/cli/commands/profile.ts
|
|
169
155
|
import { Option } from "commander";
|
|
@@ -201,11 +187,11 @@ async function maybePromptProfileEnable(input) {
|
|
|
201
187
|
}
|
|
202
188
|
if (!shouldPromptProfileEnable({ yes: input.yes, format })) {
|
|
203
189
|
if (status.active_profile === input.profileName) {
|
|
204
|
-
ui.hint(`Run
|
|
190
|
+
ui.hint(`Run ${formatHtArgs(["profile", "use", input.profileName])} to apply globally.`);
|
|
205
191
|
return;
|
|
206
192
|
}
|
|
207
193
|
ui.hint(
|
|
208
|
-
`Switch to it with
|
|
194
|
+
`Switch to it with ${formatHtArgs(["profile", "use", input.profileName])} or ${formatHtArgs([input.profileName])}`
|
|
209
195
|
);
|
|
210
196
|
return;
|
|
211
197
|
}
|
|
@@ -216,7 +202,7 @@ async function maybePromptProfileEnable(input) {
|
|
|
216
202
|
});
|
|
217
203
|
if (!confirmed) {
|
|
218
204
|
ui.hint(
|
|
219
|
-
`Switch later with
|
|
205
|
+
`Switch later with ${formatHtArgs(["profile", "use", input.profileName])} or ${formatHtArgs([input.profileName])}`
|
|
220
206
|
);
|
|
221
207
|
return;
|
|
222
208
|
}
|
|
@@ -243,7 +229,7 @@ async function maybePromptProfileEnable(input) {
|
|
|
243
229
|
...conflictPolicy === "prompt" ? { conflictResolver: promptMaterializationConflict } : {}
|
|
244
230
|
});
|
|
245
231
|
if (applied.cancelled) {
|
|
246
|
-
|
|
232
|
+
reportApplyCancelled(applied.conflicts, "profile");
|
|
247
233
|
return;
|
|
248
234
|
}
|
|
249
235
|
printApplyPayload(applied);
|
|
@@ -263,7 +249,7 @@ async function maybePromptProfilePluginDelete(input) {
|
|
|
263
249
|
}
|
|
264
250
|
if (!shouldPromptProfileEnable({ yes: input.yes, format })) {
|
|
265
251
|
ui.hint(
|
|
266
|
-
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with
|
|
252
|
+
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with ${formatHtArgs(["plugin", "delete", input.pluginName])}`
|
|
267
253
|
);
|
|
268
254
|
return false;
|
|
269
255
|
}
|
|
@@ -273,7 +259,7 @@ async function maybePromptProfilePluginDelete(input) {
|
|
|
273
259
|
});
|
|
274
260
|
if (!confirmed) {
|
|
275
261
|
ui.hint(
|
|
276
|
-
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with
|
|
262
|
+
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with ${formatHtArgs(["plugin", "delete", input.pluginName])}`
|
|
277
263
|
);
|
|
278
264
|
return false;
|
|
279
265
|
}
|
|
@@ -493,6 +479,7 @@ async function switchProfile(selector, options) {
|
|
|
493
479
|
});
|
|
494
480
|
} finally {
|
|
495
481
|
sigint?.uninstall();
|
|
482
|
+
clearLiveReadCaches();
|
|
496
483
|
}
|
|
497
484
|
}
|
|
498
485
|
|
|
@@ -1126,7 +1113,7 @@ async function handleProfileCreateCommand(name, opts) {
|
|
|
1126
1113
|
if (harnesses) {
|
|
1127
1114
|
assertSupportedHarnessTargets(harnesses);
|
|
1128
1115
|
}
|
|
1129
|
-
const resolvedPackage = resolveSkillPackageCheckout(opts.from, harnesstapDir);
|
|
1116
|
+
const resolvedPackage = await resolveSkillPackageCheckout(opts.from, harnesstapDir);
|
|
1130
1117
|
const shouldPrompt = shouldUseWizard({
|
|
1131
1118
|
noInteractive: opts.yes,
|
|
1132
1119
|
interactive: opts.interactive,
|
|
@@ -1238,13 +1225,15 @@ async function handleProfileCreateCommand(name, opts) {
|
|
|
1238
1225
|
conflictPolicy,
|
|
1239
1226
|
...conflictPolicy === "prompt" ? { conflictResolver: promptMaterializationConflict } : {}
|
|
1240
1227
|
});
|
|
1228
|
+
if (applied.cancelled) {
|
|
1229
|
+
process.exitCode = 1;
|
|
1230
|
+
}
|
|
1241
1231
|
if (format === "json") {
|
|
1242
1232
|
printJson({ apply: applied });
|
|
1243
1233
|
return;
|
|
1244
1234
|
}
|
|
1245
1235
|
if (applied.cancelled) {
|
|
1246
|
-
|
|
1247
|
-
ui.warn("Profile apply cancelled.");
|
|
1236
|
+
reportApplyCancelled(applied.conflicts, "profile");
|
|
1248
1237
|
return;
|
|
1249
1238
|
}
|
|
1250
1239
|
printApplyPayload(applied);
|
|
@@ -1463,6 +1452,9 @@ function registerProfileCommands(root) {
|
|
|
1463
1452
|
ui.dim(
|
|
1464
1453
|
`${formatCount(status.changes.length, "file")} ${status.changes.length === 1 ? "differs" : "differ"} on disk.`
|
|
1465
1454
|
);
|
|
1455
|
+
for (const change of status.changes) {
|
|
1456
|
+
console.log(` ${change.path}`);
|
|
1457
|
+
}
|
|
1466
1458
|
}
|
|
1467
1459
|
ui.hint(
|
|
1468
1460
|
`Run ${formatHintCommand(["profile", "use", status.active_profile])} to refresh global harness files.`
|
|
@@ -1565,13 +1557,15 @@ function registerProfileCommands(root) {
|
|
|
1565
1557
|
interactive: opts.noInteractive === true ? false : opts.interactive,
|
|
1566
1558
|
...conflictPolicy === "prompt" ? { conflictResolver: promptMaterializationConflict } : {}
|
|
1567
1559
|
});
|
|
1560
|
+
if (payload.cancelled) {
|
|
1561
|
+
process.exitCode = 1;
|
|
1562
|
+
}
|
|
1568
1563
|
if (format === "json") {
|
|
1569
1564
|
printJson(payload);
|
|
1570
1565
|
return;
|
|
1571
1566
|
}
|
|
1572
1567
|
if (payload.cancelled) {
|
|
1573
|
-
|
|
1574
|
-
ui.warn("Profile apply cancelled.");
|
|
1568
|
+
reportApplyCancelled(payload.conflicts, "profile");
|
|
1575
1569
|
return;
|
|
1576
1570
|
}
|
|
1577
1571
|
if (payload.default_environment_name) {
|
|
@@ -1883,4 +1877,4 @@ function registerProfileCommands(root) {
|
|
|
1883
1877
|
export {
|
|
1884
1878
|
registerProfileCommands
|
|
1885
1879
|
};
|
|
1886
|
-
//# sourceMappingURL=profile-
|
|
1880
|
+
//# sourceMappingURL=profile-YCKPMRRU.js.map
|