harnesstap 1.3.2 → 1.6.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 +4 -0
- package/dist/apply-FTAIL3X3.js +50 -0
- package/dist/{approve-L7IFSYBO.js → approve-R6AWQB3I.js} +12 -16
- package/dist/{approve-L7IFSYBO.js.map → approve-R6AWQB3I.js.map} +1 -1
- package/dist/{audit-PBJDK7A4.js → audit-2HNKFPSU.js} +26 -39
- package/dist/{audit-PBJDK7A4.js.map → audit-2HNKFPSU.js.map} +1 -1
- package/dist/{auth-OM73RLNS.js → auth-C54KRLNF.js} +17 -21
- package/dist/{auth-OM73RLNS.js.map → auth-C54KRLNF.js.map} +1 -1
- package/dist/bin.js +13 -34
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-R4PTE774.js → chunk-2XDYQXP2.js} +34 -41
- package/dist/chunk-2XDYQXP2.js.map +1 -0
- package/dist/{chunk-G5RWVZZ7.js → chunk-3277RVZT.js} +5 -7
- package/dist/{chunk-G5RWVZZ7.js.map → chunk-3277RVZT.js.map} +1 -1
- package/dist/{chunk-6JMVGKMD.js → chunk-3Q72LZPJ.js} +936 -528
- package/dist/chunk-3Q72LZPJ.js.map +1 -0
- package/dist/{chunk-U472S6IB.js → chunk-42E2MPES.js} +19 -27
- package/dist/chunk-42E2MPES.js.map +1 -0
- package/dist/{chunk-CZ4T75PP.js → chunk-5HACBPK2.js} +622 -252
- package/dist/chunk-5HACBPK2.js.map +1 -0
- package/dist/{chunk-IHW4PCDT.js → chunk-6FXJIKEG.js} +6 -6
- package/dist/{chunk-OPVIX7E4.js → chunk-A3TZT4WT.js} +6 -2
- package/dist/chunk-A3TZT4WT.js.map +1 -0
- package/dist/chunk-BUA7WFI4.js +39327 -0
- package/dist/chunk-BUA7WFI4.js.map +1 -0
- package/dist/{chunk-IAZNF35S.js → chunk-CBSDMRMY.js} +2 -2
- package/dist/{chunk-YVJQ2QDG.js → chunk-CR2TYMKC.js} +65 -55
- package/dist/chunk-CR2TYMKC.js.map +1 -0
- package/dist/{chunk-VQVUJYYY.js → chunk-CWXCZBJR.js} +76 -6
- package/dist/chunk-CWXCZBJR.js.map +1 -0
- package/dist/{chunk-AVZOFMJX.js → chunk-D7R577XZ.js} +381 -138
- package/dist/chunk-D7R577XZ.js.map +1 -0
- package/dist/{chunk-3EGM4IUI.js → chunk-EPXAOEBB.js} +6 -6
- package/dist/{chunk-64R32MG2.js → chunk-GZU4LVFF.js} +179 -26
- package/dist/chunk-GZU4LVFF.js.map +1 -0
- package/dist/chunk-HV3ENT2F.js +61 -0
- package/dist/chunk-HV3ENT2F.js.map +1 -0
- package/dist/{chunk-XCPWLGPB.js → chunk-K4UDZUJ2.js} +2 -2
- package/dist/{chunk-OQ4KBUN2.js → chunk-L6BJCRBU.js} +13 -16
- package/dist/chunk-L6BJCRBU.js.map +1 -0
- package/dist/{chunk-AFKCNFPP.js → chunk-M6FEDSHY.js} +16 -15
- package/dist/chunk-M6FEDSHY.js.map +1 -0
- package/dist/chunk-M7PHQ3UC.js +31491 -0
- package/dist/chunk-M7PHQ3UC.js.map +1 -0
- package/dist/{chunk-FBYAIBHP.js → chunk-MHLAIGIM.js} +2 -2
- package/dist/{chunk-ENHDEB7Z.js → chunk-MHMFF6A5.js} +5 -7
- package/dist/{chunk-ENHDEB7Z.js.map → chunk-MHMFF6A5.js.map} +1 -1
- package/dist/chunk-MKLJBW5N.js +14 -0
- package/dist/{chunk-XRXFJTAT.js → chunk-MQCAPCAF.js} +17 -26
- package/dist/chunk-MQCAPCAF.js.map +1 -0
- package/dist/{chunk-UEHDEADL.js → chunk-MQCH3YZ5.js} +15 -13
- package/dist/chunk-MQCH3YZ5.js.map +1 -0
- package/dist/chunk-OHZNDV4A.js +1707 -0
- package/dist/chunk-OHZNDV4A.js.map +1 -0
- package/dist/{chunk-LGWUTV5Q.js → chunk-OWE3OSX6.js} +11 -13
- package/dist/{chunk-LGWUTV5Q.js.map → chunk-OWE3OSX6.js.map} +1 -1
- package/dist/{chunk-EY4ES5MG.js → chunk-PCNHBMBU.js} +3 -5
- package/dist/{chunk-EY4ES5MG.js.map → chunk-PCNHBMBU.js.map} +1 -1
- package/dist/{chunk-YRGM7RAD.js → chunk-QGTDQNVV.js} +7 -11
- package/dist/{chunk-YRGM7RAD.js.map → chunk-QGTDQNVV.js.map} +1 -1
- package/dist/{chunk-BXSS2S4W.js → chunk-R27VZIF6.js} +2 -2
- package/dist/{chunk-TQ2NA4Z4.js → chunk-R4NV3Q7G.js} +8 -2
- package/dist/chunk-R4NV3Q7G.js.map +1 -0
- package/dist/{chunk-FUV7QYBS.js → chunk-R6VFJKZB.js} +86 -319
- package/dist/chunk-R6VFJKZB.js.map +1 -0
- package/dist/{chunk-QNAIDM6W.js → chunk-RQLVXJH2.js} +132 -4
- package/dist/chunk-RQLVXJH2.js.map +1 -0
- package/dist/{chunk-JQOKQKQT.js → chunk-S2D5PWAO.js} +2 -2
- package/dist/{chunk-JJJJ2RAD.js → chunk-T4EKNX2Q.js} +71 -11
- package/dist/chunk-T4EKNX2Q.js.map +1 -0
- package/dist/{chunk-GWQVYGRD.js → chunk-TERYL7JH.js} +118 -78
- package/dist/chunk-TERYL7JH.js.map +1 -0
- package/dist/chunk-UC27MQ3T.js +1920 -0
- package/dist/chunk-UC27MQ3T.js.map +1 -0
- package/dist/chunk-UEA4NCY2.js +106 -0
- package/dist/chunk-UEA4NCY2.js.map +1 -0
- package/dist/{chunk-WXRPQICX.js → chunk-UK2IV2ZQ.js} +2 -2
- package/dist/{chunk-MFCZN253.js → chunk-UZCAYOIQ.js} +8 -10
- package/dist/{chunk-MFCZN253.js.map → chunk-UZCAYOIQ.js.map} +1 -1
- package/dist/{chunk-IKAGGJEO.js → chunk-V4UNYSZO.js} +558 -18
- package/dist/chunk-V4UNYSZO.js.map +1 -0
- package/dist/chunk-VAPCU2FX.js +70 -0
- package/dist/chunk-VAPCU2FX.js.map +1 -0
- package/dist/{chunk-Y2JGMICO.js → chunk-WGVU3LA5.js} +25 -33
- package/dist/chunk-WGVU3LA5.js.map +1 -0
- package/dist/{chunk-UNRR4KH5.js → chunk-WQ3F4O7U.js} +20 -14
- package/dist/chunk-WQ3F4O7U.js.map +1 -0
- package/dist/chunk-XNS4I3W6.js +102 -0
- package/dist/chunk-XNS4I3W6.js.map +1 -0
- package/dist/{chunk-LDVXYN6F.js → chunk-Y4I7ZCAE.js} +178 -135
- package/dist/chunk-Y4I7ZCAE.js.map +1 -0
- package/dist/{chunk-6I3RY6R5.js → chunk-ZKMSHLXP.js} +11 -15
- package/dist/{chunk-6I3RY6R5.js.map → chunk-ZKMSHLXP.js.map} +1 -1
- package/dist/{compile-SDOASKGL.js → compile-B2QG6BAQ.js} +37 -54
- package/dist/{compile-SDOASKGL.js.map → compile-B2QG6BAQ.js.map} +1 -1
- package/dist/{config-4VZTVZKF.js → config-D3F6ICZ2.js} +21 -39
- package/dist/{config-4VZTVZKF.js.map → config-D3F6ICZ2.js.map} +1 -1
- package/dist/cursor-local-install-4HDIBX22.js +94 -0
- package/dist/cursor-local-install-4HDIBX22.js.map +1 -0
- package/dist/cursor-local-install-LL367GZY.js +94 -0
- package/dist/cursor-local-install-LL367GZY.js.map +1 -0
- package/dist/{doctor-HH6CFBRQ.js → doctor-QSGETVDE.js} +19 -23
- package/dist/doctor-QSGETVDE.js.map +1 -0
- package/dist/{environment-K7YMJJYN.js → environment-2JS4RWQA.js} +69 -88
- package/dist/environment-2JS4RWQA.js.map +1 -0
- package/dist/{github-A6TYG7WS.js → github-JXSTHLY2.js} +14 -15
- package/dist/{github-A6TYG7WS.js.map → github-JXSTHLY2.js.map} +1 -1
- package/dist/{harness-772XBFZQ.js → harness-GBI3AMLH.js} +48 -65
- package/dist/{harness-772XBFZQ.js.map → harness-GBI3AMLH.js.map} +1 -1
- package/dist/{help-QR4VTJZU.js → help-EC52ERIE.js} +43 -52
- package/dist/help-EC52ERIE.js.map +1 -0
- package/dist/{help-TLHNRJJ6.js → help-VIRMBOPJ.js} +73 -551
- package/dist/help-VIRMBOPJ.js.map +1 -0
- package/dist/host-plugin-view-kept-XKHD6NGU.js +139 -0
- package/dist/host-plugin-view-kept-XKHD6NGU.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -22
- package/dist/{init-AOKFPZHG.js → init-OK3K6ILG.js} +49 -70
- package/dist/init-OK3K6ILG.js.map +1 -0
- package/dist/live-read-cache-ESQQJBNS.js +13 -0
- package/dist/live-read-cache-WPUFHVMZ.js +12 -0
- package/dist/{lock-INAXNLMC.js → lock-AA2F4I3K.js} +13 -16
- package/dist/{lock-INAXNLMC.js.map → lock-AA2F4I3K.js.map} +1 -1
- package/dist/{marketplace-TUVLLPBG.js → marketplace-QUYCV23F.js} +75 -94
- package/dist/marketplace-QUYCV23F.js.map +1 -0
- package/dist/{mcp-MMWGRASN.js → mcp-CIHSR4DD.js} +35 -52
- package/dist/{mcp-MMWGRASN.js.map → mcp-CIHSR4DD.js.map} +1 -1
- package/dist/{migrate-55S4XODX.js → migrate-TQPEZYS5.js} +148 -74
- package/dist/migrate-TQPEZYS5.js.map +1 -0
- package/dist/notifications-TAELTPDW.js +154 -0
- package/dist/notifications-TAELTPDW.js.map +1 -0
- package/dist/open-D3GWGDSQ.js +20 -0
- package/dist/{pack-VZIBS42E.js → pack-VUO4UBWL.js} +12 -22
- package/dist/{pack-VZIBS42E.js.map → pack-VUO4UBWL.js.map} +1 -1
- package/dist/plugin-L3466DHK.js +47 -0
- package/dist/plugin-from-project-U5UGKTJH.js +15 -0
- package/dist/plugin-from-project-U5UGKTJH.js.map +1 -0
- package/dist/{policy-P3HGLEZS.js → policy-Z5TL4N3V.js} +11 -15
- package/dist/{policy-P3HGLEZS.js.map → policy-Z5TL4N3V.js.map} +1 -1
- package/dist/{profile-STS3CZUK.js → profile-QFI7SL3S.js} +167 -143
- package/dist/profile-QFI7SL3S.js.map +1 -0
- package/dist/{project-R4DGM3ZG.js → project-3KR3EPYR.js} +506 -94
- package/dist/project-3KR3EPYR.js.map +1 -0
- package/dist/{resource-GJVEDXVZ.js → resource-45BPRQ7V.js} +66 -63
- package/dist/resource-45BPRQ7V.js.map +1 -0
- package/dist/status-refresh-worker.js +1155 -0
- package/dist/status-refresh-worker.js.map +1 -0
- package/dist/{version-FUHV4O6U.js → version-QUJZGTZ5.js} +3 -3
- package/dist/version-QUJZGTZ5.js.map +1 -0
- package/package.json +17 -11
- package/dist/apply-Q5SFF3FY.js +0 -67
- package/dist/chunk-24V5ZSIF.js +0 -658
- package/dist/chunk-24V5ZSIF.js.map +0 -1
- package/dist/chunk-2H7UOFLK.js +0 -11
- package/dist/chunk-3JOPDYQD.js +0 -730
- package/dist/chunk-3JOPDYQD.js.map +0 -1
- package/dist/chunk-555XE3NJ.js +0 -60
- package/dist/chunk-555XE3NJ.js.map +0 -1
- package/dist/chunk-64R32MG2.js.map +0 -1
- package/dist/chunk-6JMVGKMD.js.map +0 -1
- package/dist/chunk-6ZWKF3YZ.js +0 -7795
- package/dist/chunk-6ZWKF3YZ.js.map +0 -1
- package/dist/chunk-AFKCNFPP.js.map +0 -1
- package/dist/chunk-AUWWL6KX.js +0 -296
- package/dist/chunk-AUWWL6KX.js.map +0 -1
- package/dist/chunk-AVZOFMJX.js.map +0 -1
- package/dist/chunk-CZ4T75PP.js.map +0 -1
- package/dist/chunk-FUV7QYBS.js.map +0 -1
- package/dist/chunk-GWQVYGRD.js.map +0 -1
- package/dist/chunk-HENOKIBB.js +0 -346
- package/dist/chunk-HENOKIBB.js.map +0 -1
- package/dist/chunk-HWL67OCJ.js +0 -238
- package/dist/chunk-HWL67OCJ.js.map +0 -1
- package/dist/chunk-IKAGGJEO.js.map +0 -1
- package/dist/chunk-JJJJ2RAD.js.map +0 -1
- package/dist/chunk-JRFUTIEH.js +0 -426
- package/dist/chunk-JRFUTIEH.js.map +0 -1
- package/dist/chunk-KJIFZLHN.js +0 -11066
- package/dist/chunk-KJIFZLHN.js.map +0 -1
- package/dist/chunk-LDVXYN6F.js.map +0 -1
- package/dist/chunk-MHOTXMD2.js +0 -430
- package/dist/chunk-MHOTXMD2.js.map +0 -1
- package/dist/chunk-NAGAJ5UM.js +0 -145
- package/dist/chunk-NAGAJ5UM.js.map +0 -1
- package/dist/chunk-NEPUP33Q.js +0 -35
- package/dist/chunk-NEPUP33Q.js.map +0 -1
- package/dist/chunk-OPVIX7E4.js.map +0 -1
- package/dist/chunk-OQ4KBUN2.js.map +0 -1
- package/dist/chunk-OXVCYRZB.js +0 -491
- package/dist/chunk-OXVCYRZB.js.map +0 -1
- package/dist/chunk-PJQAMC6L.js +0 -183
- package/dist/chunk-PJQAMC6L.js.map +0 -1
- package/dist/chunk-PW5QXRBA.js +0 -1173
- package/dist/chunk-PW5QXRBA.js.map +0 -1
- package/dist/chunk-QNAIDM6W.js.map +0 -1
- package/dist/chunk-R4PTE774.js.map +0 -1
- package/dist/chunk-S2E4KSYW.js +0 -610
- package/dist/chunk-S2E4KSYW.js.map +0 -1
- package/dist/chunk-SNVAMWB7.js +0 -40
- package/dist/chunk-SNVAMWB7.js.map +0 -1
- package/dist/chunk-TQ2NA4Z4.js.map +0 -1
- package/dist/chunk-U472S6IB.js.map +0 -1
- package/dist/chunk-UEHDEADL.js.map +0 -1
- package/dist/chunk-UNRR4KH5.js.map +0 -1
- package/dist/chunk-VQVUJYYY.js.map +0 -1
- package/dist/chunk-XGTTOO4R.js +0 -84
- package/dist/chunk-XGTTOO4R.js.map +0 -1
- package/dist/chunk-XRXFJTAT.js.map +0 -1
- package/dist/chunk-Y2JGMICO.js.map +0 -1
- package/dist/chunk-YVJQ2QDG.js.map +0 -1
- package/dist/chunk-YX7MVSDA.js +0 -235
- package/dist/chunk-YX7MVSDA.js.map +0 -1
- package/dist/chunk-ZGRBIBO7.js +0 -681
- package/dist/chunk-ZGRBIBO7.js.map +0 -1
- package/dist/chunk-ZTBAMBAI.js +0 -6448
- package/dist/chunk-ZTBAMBAI.js.map +0 -1
- package/dist/chunk-ZVANUFPF.js +0 -1035
- package/dist/chunk-ZVANUFPF.js.map +0 -1
- package/dist/doctor-HH6CFBRQ.js.map +0 -1
- package/dist/environment-K7YMJJYN.js.map +0 -1
- package/dist/help-QR4VTJZU.js.map +0 -1
- package/dist/help-TLHNRJJ6.js.map +0 -1
- package/dist/init-AOKFPZHG.js.map +0 -1
- package/dist/marketplace-TUVLLPBG.js.map +0 -1
- package/dist/migrate-55S4XODX.js.map +0 -1
- package/dist/open-SLFQV45J.js +0 -32
- package/dist/plugin-WLEFFBRY.js +0 -64
- package/dist/plugin-from-project-UV2O364T.js +0 -16
- package/dist/profile-STS3CZUK.js.map +0 -1
- package/dist/project-R4DGM3ZG.js.map +0 -1
- package/dist/resource-GJVEDXVZ.js.map +0 -1
- /package/dist/{apply-Q5SFF3FY.js.map → apply-FTAIL3X3.js.map} +0 -0
- /package/dist/{chunk-IHW4PCDT.js.map → chunk-6FXJIKEG.js.map} +0 -0
- /package/dist/{chunk-IAZNF35S.js.map → chunk-CBSDMRMY.js.map} +0 -0
- /package/dist/{chunk-3EGM4IUI.js.map → chunk-EPXAOEBB.js.map} +0 -0
- /package/dist/{chunk-XCPWLGPB.js.map → chunk-K4UDZUJ2.js.map} +0 -0
- /package/dist/{chunk-FBYAIBHP.js.map → chunk-MHLAIGIM.js.map} +0 -0
- /package/dist/{chunk-2H7UOFLK.js.map → chunk-MKLJBW5N.js.map} +0 -0
- /package/dist/{chunk-BXSS2S4W.js.map → chunk-R27VZIF6.js.map} +0 -0
- /package/dist/{chunk-JQOKQKQT.js.map → chunk-S2D5PWAO.js.map} +0 -0
- /package/dist/{chunk-WXRPQICX.js.map → chunk-UK2IV2ZQ.js.map} +0 -0
- /package/dist/{open-SLFQV45J.js.map → live-read-cache-ESQQJBNS.js.map} +0 -0
- /package/dist/{plugin-WLEFFBRY.js.map → live-read-cache-WPUFHVMZ.js.map} +0 -0
- /package/dist/{plugin-from-project-UV2O364T.js.map → open-D3GWGDSQ.js.map} +0 -0
- /package/dist/{version-FUHV4O6U.js.map → plugin-L3466DHK.js.map} +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
registerProfileParityCommands
|
|
3
|
-
} from "./chunk-GWQVYGRD.js";
|
|
4
|
-
import "./chunk-LGWUTV5Q.js";
|
|
5
1
|
import {
|
|
6
2
|
mapProfileUseDelegationOptions,
|
|
7
3
|
renderProjectUseHuman
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import
|
|
4
|
+
} from "./chunk-M6FEDSHY.js";
|
|
5
|
+
import {
|
|
6
|
+
harnessDisplayName,
|
|
7
|
+
registerProfileParityCommands
|
|
8
|
+
} from "./chunk-TERYL7JH.js";
|
|
9
|
+
import "./chunk-UZCAYOIQ.js";
|
|
10
|
+
import "./chunk-OWE3OSX6.js";
|
|
10
11
|
import {
|
|
11
12
|
countMaterialPluginResources,
|
|
12
13
|
createPluginFromSource,
|
|
@@ -14,156 +15,138 @@ import {
|
|
|
14
15
|
handlePluginListCommand,
|
|
15
16
|
handlePluginPublishCommand,
|
|
16
17
|
handlePluginShowCommand,
|
|
18
|
+
registerProfileDuplicateCommands,
|
|
17
19
|
runPluginCreateFromSourceWizard
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
resolvePluginMutationTarget
|
|
21
|
-
} from "./chunk-XRXFJTAT.js";
|
|
22
|
-
import "./chunk-PJQAMC6L.js";
|
|
23
|
-
import "./chunk-UEHDEADL.js";
|
|
24
|
-
import "./chunk-3JOPDYQD.js";
|
|
20
|
+
} from "./chunk-5HACBPK2.js";
|
|
25
21
|
import {
|
|
26
22
|
applyProfileStashCommand,
|
|
27
23
|
buildProjectProfileChoices,
|
|
28
24
|
detectGlobalProfileStatus,
|
|
29
25
|
executeProjectUse,
|
|
26
|
+
globalProfileStatusGaps,
|
|
30
27
|
listProfileStashEntries,
|
|
31
28
|
maybeSyncActiveProfileBeforeSwitch,
|
|
32
29
|
popProfileStashCommand,
|
|
33
30
|
printApplyDryRun,
|
|
34
31
|
printApplyPayload,
|
|
35
32
|
promptMaterializationConflict,
|
|
33
|
+
reportApplyCancelled,
|
|
36
34
|
resolveApplyConflictPolicy,
|
|
37
35
|
resolveExpectedPluginName,
|
|
38
36
|
resolveUserPath,
|
|
39
37
|
stashProfileCommand
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-KRI4R7EM.js";
|
|
38
|
+
} from "./chunk-D7R577XZ.js";
|
|
39
|
+
import {
|
|
40
|
+
resolvePluginMutationTarget
|
|
41
|
+
} from "./chunk-MQCAPCAF.js";
|
|
42
|
+
import "./chunk-R6VFJKZB.js";
|
|
46
43
|
import {
|
|
47
44
|
resolveSkillPackageCheckout
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-42E2MPES.js";
|
|
46
|
+
import "./chunk-UK2IV2ZQ.js";
|
|
47
|
+
import "./chunk-MQCH3YZ5.js";
|
|
48
|
+
import "./chunk-6FXJIKEG.js";
|
|
49
|
+
import "./chunk-VZQG2JDV.js";
|
|
50
|
+
import "./chunk-EPXAOEBB.js";
|
|
51
|
+
import "./chunk-R27VZIF6.js";
|
|
52
|
+
import "./chunk-KRI4R7EM.js";
|
|
53
53
|
import {
|
|
54
54
|
parseCommaSeparatedList
|
|
55
55
|
} from "./chunk-37E5M4JX.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-S2D5PWAO.js";
|
|
57
57
|
import "./chunk-3FIWOI3H.js";
|
|
58
58
|
import {
|
|
59
59
|
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-6ZWKF3YZ.js";
|
|
74
|
-
import "./chunk-HWL67OCJ.js";
|
|
75
|
-
import {
|
|
76
|
-
isPromptCancellationError,
|
|
77
|
-
promptForChoice,
|
|
78
|
-
promptForConfirmation,
|
|
79
|
-
promptForSearchableChoice,
|
|
80
|
-
shouldUseWizard
|
|
81
|
-
} from "./chunk-NAGAJ5UM.js";
|
|
60
|
+
} from "./chunk-CR2TYMKC.js";
|
|
82
61
|
import {
|
|
83
62
|
initializeSchema
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import {
|
|
86
|
-
PROFILE_PLUGIN_TAG,
|
|
87
|
-
isEmptyBuiltinProfile,
|
|
88
|
-
isProfilePlugin,
|
|
89
|
-
listProfilePlugins
|
|
90
|
-
} from "./chunk-NEPUP33Q.js";
|
|
91
|
-
import "./chunk-555XE3NJ.js";
|
|
92
|
-
import {
|
|
93
|
-
previewPluginFromProject
|
|
94
|
-
} from "./chunk-ENHDEB7Z.js";
|
|
63
|
+
} from "./chunk-RQLVXJH2.js";
|
|
95
64
|
import {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
} from "./chunk-HENOKIBB.js";
|
|
65
|
+
configureCommandGroup
|
|
66
|
+
} from "./chunk-T4EKNX2Q.js";
|
|
99
67
|
import {
|
|
100
68
|
formatPluginLabel
|
|
101
69
|
} from "./chunk-I6XFZLTJ.js";
|
|
102
|
-
import "./chunk-S2E4KSYW.js";
|
|
103
|
-
import "./chunk-JRFUTIEH.js";
|
|
104
70
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
71
|
+
previewPluginFromProject
|
|
72
|
+
} from "./chunk-MHMFF6A5.js";
|
|
107
73
|
import {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
74
|
+
parseOutputFormat,
|
|
75
|
+
printJson
|
|
76
|
+
} from "./chunk-R4NV3Q7G.js";
|
|
77
|
+
import {
|
|
78
|
+
ON_CONFLICT_APPLY_HELP,
|
|
79
|
+
ON_CONFLICT_PLUGIN_IMPORT_HELP,
|
|
80
|
+
collectRepeatedOption,
|
|
81
|
+
fail,
|
|
82
|
+
failCaught,
|
|
83
|
+
formatCommand,
|
|
84
|
+
formatHintCommand,
|
|
85
|
+
parseOnConflict,
|
|
86
|
+
toPluginImportOnConflict
|
|
87
|
+
} from "./chunk-WGVU3LA5.js";
|
|
115
88
|
import {
|
|
89
|
+
PROFILE_PLUGIN_TAG,
|
|
90
|
+
PinnedPluginInstallConsentError,
|
|
91
|
+
ProfileReservedNameError,
|
|
116
92
|
addPluginAttachment,
|
|
117
93
|
addResourceToPlugin,
|
|
94
|
+
assertSupportedHarnessTargets,
|
|
95
|
+
clearLiveReadCaches,
|
|
118
96
|
createPlugin,
|
|
97
|
+
createProfileCommand,
|
|
119
98
|
deletePlugin,
|
|
99
|
+
deleteProfileCommand,
|
|
120
100
|
diskCaptureHarnessScope,
|
|
101
|
+
driftChangeIsKept,
|
|
102
|
+
findProjectConfig,
|
|
121
103
|
formatPluginRef,
|
|
104
|
+
getActiveProfileName,
|
|
122
105
|
getPlugin,
|
|
123
106
|
getPluginByName,
|
|
107
|
+
getProfileEntry,
|
|
124
108
|
getResource,
|
|
109
|
+
isEmptyBuiltinProfile,
|
|
110
|
+
isProfilePlugin,
|
|
125
111
|
listAttachedPluginRefs,
|
|
126
112
|
listPlugins,
|
|
113
|
+
listProfilePlugins,
|
|
114
|
+
listProfilePluginsCommand,
|
|
127
115
|
listResources,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
parseOutputFormat,
|
|
139
|
-
printJson
|
|
140
|
-
} from "./chunk-TQ2NA4Z4.js";
|
|
141
|
-
import {
|
|
142
|
-
ON_CONFLICT_APPLY_HELP,
|
|
143
|
-
ON_CONFLICT_PLUGIN_IMPORT_HELP,
|
|
144
|
-
collectRepeatedOption,
|
|
145
|
-
fail,
|
|
146
|
-
failCaught,
|
|
147
|
-
formatCommand,
|
|
148
|
-
formatHintCommand,
|
|
149
|
-
missingRequiredArg,
|
|
150
|
-
parseOnConflict,
|
|
151
|
-
toPluginImportOnConflict
|
|
152
|
-
} from "./chunk-Y2JGMICO.js";
|
|
116
|
+
persistMergedProjectScan,
|
|
117
|
+
persistScanResults,
|
|
118
|
+
resolveProfileUseTarget,
|
|
119
|
+
scanHomeDefaults,
|
|
120
|
+
showProfileCommand,
|
|
121
|
+
tagProfileCommand,
|
|
122
|
+
useProfileCommand,
|
|
123
|
+
useProfileCommandUnlocked,
|
|
124
|
+
withProfileApplyLock
|
|
125
|
+
} from "./chunk-BUA7WFI4.js";
|
|
153
126
|
import {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
127
|
+
isPromptCancellationError,
|
|
128
|
+
promptForChoice,
|
|
129
|
+
promptForConfirmation,
|
|
130
|
+
promptForSearchableChoice,
|
|
131
|
+
resolveHomeRoot,
|
|
132
|
+
shouldUseWizard
|
|
133
|
+
} from "./chunk-UC27MQ3T.js";
|
|
134
|
+
import "./chunk-V4UNYSZO.js";
|
|
135
|
+
import "./chunk-CWXCZBJR.js";
|
|
136
|
+
import "./chunk-A3TZT4WT.js";
|
|
159
137
|
import {
|
|
138
|
+
CLI_COPY,
|
|
160
139
|
CLI_ERRORS,
|
|
161
140
|
CLI_HINTS,
|
|
162
141
|
SWITCH_CHANGES_FLAG_HELP,
|
|
163
142
|
dryRunStashLine,
|
|
143
|
+
formatCount,
|
|
144
|
+
formatHtArgs,
|
|
164
145
|
getDb,
|
|
165
|
-
getHarnesstapDir
|
|
166
|
-
|
|
146
|
+
getHarnesstapDir,
|
|
147
|
+
missingRequiredArg,
|
|
148
|
+
ui
|
|
149
|
+
} from "./chunk-OHZNDV4A.js";
|
|
167
150
|
|
|
168
151
|
// src/cli/commands/profile.ts
|
|
169
152
|
import { Option } from "commander";
|
|
@@ -201,11 +184,11 @@ async function maybePromptProfileEnable(input) {
|
|
|
201
184
|
}
|
|
202
185
|
if (!shouldPromptProfileEnable({ yes: input.yes, format })) {
|
|
203
186
|
if (status.active_profile === input.profileName) {
|
|
204
|
-
ui.hint(`Run
|
|
187
|
+
ui.hint(`Run ${formatHtArgs(["profile", "use", input.profileName])} to apply globally.`);
|
|
205
188
|
return;
|
|
206
189
|
}
|
|
207
190
|
ui.hint(
|
|
208
|
-
`Switch to it with
|
|
191
|
+
`Switch to it with ${formatHtArgs(["profile", "use", input.profileName])} or ${formatHtArgs([input.profileName])}`
|
|
209
192
|
);
|
|
210
193
|
return;
|
|
211
194
|
}
|
|
@@ -216,7 +199,7 @@ async function maybePromptProfileEnable(input) {
|
|
|
216
199
|
});
|
|
217
200
|
if (!confirmed) {
|
|
218
201
|
ui.hint(
|
|
219
|
-
`Switch later with
|
|
202
|
+
`Switch later with ${formatHtArgs(["profile", "use", input.profileName])} or ${formatHtArgs([input.profileName])}`
|
|
220
203
|
);
|
|
221
204
|
return;
|
|
222
205
|
}
|
|
@@ -243,7 +226,7 @@ async function maybePromptProfileEnable(input) {
|
|
|
243
226
|
...conflictPolicy === "prompt" ? { conflictResolver: promptMaterializationConflict } : {}
|
|
244
227
|
});
|
|
245
228
|
if (applied.cancelled) {
|
|
246
|
-
|
|
229
|
+
reportApplyCancelled(applied.conflicts, "profile");
|
|
247
230
|
return;
|
|
248
231
|
}
|
|
249
232
|
printApplyPayload(applied);
|
|
@@ -263,7 +246,7 @@ async function maybePromptProfilePluginDelete(input) {
|
|
|
263
246
|
}
|
|
264
247
|
if (!shouldPromptProfileEnable({ yes: input.yes, format })) {
|
|
265
248
|
ui.hint(
|
|
266
|
-
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with
|
|
249
|
+
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with ${formatHtArgs(["plugin", "delete", input.pluginName])}`
|
|
267
250
|
);
|
|
268
251
|
return false;
|
|
269
252
|
}
|
|
@@ -273,7 +256,7 @@ async function maybePromptProfilePluginDelete(input) {
|
|
|
273
256
|
});
|
|
274
257
|
if (!confirmed) {
|
|
275
258
|
ui.hint(
|
|
276
|
-
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with
|
|
259
|
+
`Plugin ${ui.theme.accent(input.pluginName)} was kept. Delete with ${formatHtArgs(["plugin", "delete", input.pluginName])}`
|
|
277
260
|
);
|
|
278
261
|
return false;
|
|
279
262
|
}
|
|
@@ -493,6 +476,7 @@ async function switchProfile(selector, options) {
|
|
|
493
476
|
});
|
|
494
477
|
} finally {
|
|
495
478
|
sigint?.uninstall();
|
|
479
|
+
clearLiveReadCaches();
|
|
496
480
|
}
|
|
497
481
|
}
|
|
498
482
|
|
|
@@ -1126,7 +1110,7 @@ async function handleProfileCreateCommand(name, opts) {
|
|
|
1126
1110
|
if (harnesses) {
|
|
1127
1111
|
assertSupportedHarnessTargets(harnesses);
|
|
1128
1112
|
}
|
|
1129
|
-
const resolvedPackage = resolveSkillPackageCheckout(opts.from, harnesstapDir);
|
|
1113
|
+
const resolvedPackage = await resolveSkillPackageCheckout(opts.from, harnesstapDir);
|
|
1130
1114
|
const shouldPrompt = shouldUseWizard({
|
|
1131
1115
|
noInteractive: opts.yes,
|
|
1132
1116
|
interactive: opts.interactive,
|
|
@@ -1198,7 +1182,7 @@ async function handleProfileCreateCommand(name, opts) {
|
|
|
1198
1182
|
const result = createProfileCommand({
|
|
1199
1183
|
name,
|
|
1200
1184
|
description: opts.description,
|
|
1201
|
-
version
|
|
1185
|
+
...opts.version ? { version: opts.version } : {}
|
|
1202
1186
|
});
|
|
1203
1187
|
if (format === "json" && !opts.use) {
|
|
1204
1188
|
printJson(result);
|
|
@@ -1238,13 +1222,15 @@ async function handleProfileCreateCommand(name, opts) {
|
|
|
1238
1222
|
conflictPolicy,
|
|
1239
1223
|
...conflictPolicy === "prompt" ? { conflictResolver: promptMaterializationConflict } : {}
|
|
1240
1224
|
});
|
|
1225
|
+
if (applied.cancelled) {
|
|
1226
|
+
process.exitCode = 1;
|
|
1227
|
+
}
|
|
1241
1228
|
if (format === "json") {
|
|
1242
1229
|
printJson({ apply: applied });
|
|
1243
1230
|
return;
|
|
1244
1231
|
}
|
|
1245
1232
|
if (applied.cancelled) {
|
|
1246
|
-
|
|
1247
|
-
ui.warn("Profile apply cancelled.");
|
|
1233
|
+
reportApplyCancelled(applied.conflicts, "profile");
|
|
1248
1234
|
return;
|
|
1249
1235
|
}
|
|
1250
1236
|
printApplyPayload(applied);
|
|
@@ -1291,7 +1277,7 @@ function registerProfileCreateSourceOptions(command) {
|
|
|
1291
1277
|
).option("--from-home", "Import from global home harness files").option("--from-project <path>", "Import from a project path").option("--preview", "Print create preview without writing").option("--no-interactive", "Don't open the compose picker");
|
|
1292
1278
|
}
|
|
1293
1279
|
function registerProfileCreateCommand(profileCmd) {
|
|
1294
|
-
const createCmd = profileCmd.command("create").argument("<name>", "Profile plugin name").option("-d, --description <text>", "Profile description").option("--version <semver>", "Plugin version
|
|
1280
|
+
const createCmd = profileCmd.command("create").argument("<name>", "Profile plugin name").option("-d, --description <text>", "Profile description").option("--version <semver>", "Plugin version for a new profile (default 1.0.0)").option(
|
|
1295
1281
|
"--from <source>",
|
|
1296
1282
|
"Skill package source (owner/repo, git URL, or local path)"
|
|
1297
1283
|
).option("--skill <names>", "Comma-separated skills to attach when using --from").option("--all", "Attach all discovered skills when using --from").option(
|
|
@@ -1321,7 +1307,7 @@ function registerProfileCreateCommand(profileCmd) {
|
|
|
1321
1307
|
|
|
1322
1308
|
// src/cli/commands/profile.ts
|
|
1323
1309
|
async function handleProfilePullCommand(selector, opts) {
|
|
1324
|
-
const installed = await handlePluginInstallCommand(selector, opts);
|
|
1310
|
+
const installed = await handlePluginInstallCommand(selector, { ...opts, profile: true });
|
|
1325
1311
|
if (!installed || process.exitCode) {
|
|
1326
1312
|
return;
|
|
1327
1313
|
}
|
|
@@ -1341,23 +1327,6 @@ function warnProfilePublishValidation(plugin) {
|
|
|
1341
1327
|
`Profile ${ui.theme.accent(plugin.name)} has no plugin references and no material resources.`
|
|
1342
1328
|
);
|
|
1343
1329
|
}
|
|
1344
|
-
const unresolvedLocalRefs = [];
|
|
1345
|
-
for (const ref of refs) {
|
|
1346
|
-
const local = resolvePluginSelector(
|
|
1347
|
-
ref.version_constraint ? `${ref.dependency_name}@${ref.version_constraint}` : ref.dependency_name
|
|
1348
|
-
);
|
|
1349
|
-
if (!local) {
|
|
1350
|
-
continue;
|
|
1351
|
-
}
|
|
1352
|
-
if (!local.org_slug || !local.catalog_slug) {
|
|
1353
|
-
unresolvedLocalRefs.push(ref.dependency_name);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
if (unresolvedLocalRefs.length > 0) {
|
|
1357
|
-
ui.warn(
|
|
1358
|
-
`Profile ${ui.theme.accent(plugin.name)} references unpublished local plugins: ${unresolvedLocalRefs.join(", ")}`
|
|
1359
|
-
);
|
|
1360
|
-
}
|
|
1361
1330
|
}
|
|
1362
1331
|
async function handleProfilePublishCommand(pluginName, opts) {
|
|
1363
1332
|
const db = getDb();
|
|
@@ -1437,6 +1406,7 @@ function registerProfileCommands(root) {
|
|
|
1437
1406
|
depth,
|
|
1438
1407
|
projectPath: opts.project
|
|
1439
1408
|
});
|
|
1409
|
+
const gaps = globalProfileStatusGaps(status);
|
|
1440
1410
|
if (format === "json") {
|
|
1441
1411
|
printJson(status);
|
|
1442
1412
|
} else if (!status.active_profile) {
|
|
@@ -1450,8 +1420,9 @@ function registerProfileCommands(root) {
|
|
|
1450
1420
|
ui.hint(
|
|
1451
1421
|
`Run ${formatHintCommand(["profile", "use", status.active_profile])} to materialize home harness files.`
|
|
1452
1422
|
);
|
|
1453
|
-
} else if (
|
|
1423
|
+
} else if (gaps.inSync) {
|
|
1454
1424
|
ui.success(`Global harness files are in sync with profile ${ui.theme.accent(status.active_profile)}.`);
|
|
1425
|
+
printKeptStatusChanges(status.changes);
|
|
1455
1426
|
} else {
|
|
1456
1427
|
ui.warn(
|
|
1457
1428
|
`Global harness files are out of sync with profile ${ui.theme.accent(status.active_profile)}.`
|
|
@@ -1463,6 +1434,15 @@ function registerProfileCommands(root) {
|
|
|
1463
1434
|
ui.dim(
|
|
1464
1435
|
`${formatCount(status.changes.length, "file")} ${status.changes.length === 1 ? "differs" : "differ"} on disk.`
|
|
1465
1436
|
);
|
|
1437
|
+
for (const change of status.changes) {
|
|
1438
|
+
console.log(driftChangeIsKept(change) ? ` ${change.path} ${keptStatusReason(change)}` : ` ${change.path}`);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
for (const gap of gaps.missing) {
|
|
1442
|
+
const harnessName = harnessDisplayName(gap.harness);
|
|
1443
|
+
ui.dim(
|
|
1444
|
+
gap.kind === "plugin" ? `Plugin ${gap.id} is not installed in ${harnessName}.` : `MCP server ${gap.id} is missing or different in ${harnessName}.`
|
|
1445
|
+
);
|
|
1466
1446
|
}
|
|
1467
1447
|
ui.hint(
|
|
1468
1448
|
`Run ${formatHintCommand(["profile", "use", status.active_profile])} to refresh global harness files.`
|
|
@@ -1477,7 +1457,7 @@ function registerProfileCommands(root) {
|
|
|
1477
1457
|
"Cursor built-ins live under ~/.cursor/skills-cursor/ (read-only inventory). User skills belong in ~/.cursor/skills/."
|
|
1478
1458
|
);
|
|
1479
1459
|
}
|
|
1480
|
-
if (opts.check &&
|
|
1460
|
+
if (opts.check && !gaps.inSync) {
|
|
1481
1461
|
process.exitCode = 1;
|
|
1482
1462
|
}
|
|
1483
1463
|
} catch (err) {
|
|
@@ -1485,6 +1465,22 @@ function registerProfileCommands(root) {
|
|
|
1485
1465
|
fail(err instanceof Error ? err.message : String(err));
|
|
1486
1466
|
}
|
|
1487
1467
|
});
|
|
1468
|
+
function printKeptStatusChanges(changes) {
|
|
1469
|
+
const kept = changes.filter(driftChangeIsKept);
|
|
1470
|
+
if (kept.length === 0) return;
|
|
1471
|
+
ui.dim(
|
|
1472
|
+
`${formatCount(kept.length, "file")} ${kept.length === 1 ? "differs" : "differ"} from the profile and apply keeps ${kept.length === 1 ? "it" : "them"} as ${kept.length === 1 ? "it is" : "they are"}:`
|
|
1473
|
+
);
|
|
1474
|
+
for (const change of kept) {
|
|
1475
|
+
console.log(` ${change.path} ${keptStatusReason(change)}`);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
function keptStatusReason(change) {
|
|
1479
|
+
if (change.changed_by === "claude-code") {
|
|
1480
|
+
return change.detail ? `Claude Code changed ${change.detail}` : CLI_COPY.keptClaudeChanged;
|
|
1481
|
+
}
|
|
1482
|
+
return change.removal_group === "owned_modified" ? "you changed it" : "not made by HarnessTap";
|
|
1483
|
+
}
|
|
1488
1484
|
profileCmd.command("use").argument("[name]", "Profile plugin name or selector").option("--profile <name>", "Profile key from apm.yml").option("--project <path>", "Project directory for apm.yml discovery", ".").option("--dry-run", "Show what would be written or removed").option(
|
|
1489
1485
|
"--harness <slugs>",
|
|
1490
1486
|
"Comma-separated harness slugs (defaults to global harness preference)"
|
|
@@ -1494,7 +1490,7 @@ function registerProfileCommands(root) {
|
|
|
1494
1490
|
).option(
|
|
1495
1491
|
"--force-remove",
|
|
1496
1492
|
"Also remove user-modified managed files and unmanaged files in the planned removal set"
|
|
1497
|
-
).option("--account <name>", "Cloud account name for dependency pulls").option("--base-url <url>", "Cloud base URL for dependency pulls").option("--no-pull", "Do not
|
|
1493
|
+
).option("--account <name>", "Cloud account name for dependency pulls").option("--base-url <url>", "Cloud base URL for dependency pulls").option("--no-pull", "Do not pull the profile or its missing published plugin dependencies from the catalog").option("--force", "Apply even when the profile is already active and in sync").option("--no-interactive", "Disable interactive prompts").option("--interactive", "Enable interactive prompts").option("-y, --yes", "Install pinned marketplace plugins without a prompt").option("--format <mode>", "Output format: human or json", "human").option(
|
|
1498
1494
|
"--changes <action>",
|
|
1499
1495
|
SWITCH_CHANGES_FLAG_HELP
|
|
1500
1496
|
).description("Switch the active profile and apply globally to harness home paths").action(async (name, opts) => {
|
|
@@ -1540,9 +1536,21 @@ function registerProfileCommands(root) {
|
|
|
1540
1536
|
noInteractive: opts.noInteractive ?? format === "json"
|
|
1541
1537
|
});
|
|
1542
1538
|
try {
|
|
1539
|
+
const target = await resolveProfileUseTarget(name, {
|
|
1540
|
+
pull: opts.pull,
|
|
1541
|
+
dryRun: opts.dryRun,
|
|
1542
|
+
account: opts.account,
|
|
1543
|
+
baseUrl: opts.baseUrl,
|
|
1544
|
+
interactive: opts.interactive,
|
|
1545
|
+
noInteractive: opts.noInteractive,
|
|
1546
|
+
format
|
|
1547
|
+
});
|
|
1548
|
+
if (target.pulled && format !== "json") {
|
|
1549
|
+
ui.info(`Pulled profile ${ui.theme.accent(target.pulled.plugin_name)} from ${target.pulled.source}`);
|
|
1550
|
+
}
|
|
1543
1551
|
if (!opts.dryRun) {
|
|
1544
1552
|
const sync = await maybeSyncActiveProfileBeforeSwitch({
|
|
1545
|
-
targetProfileName: name,
|
|
1553
|
+
targetProfileName: target.name,
|
|
1546
1554
|
harness: opts.harness,
|
|
1547
1555
|
format,
|
|
1548
1556
|
changes: opts.changes,
|
|
@@ -1553,8 +1561,9 @@ function registerProfileCommands(root) {
|
|
|
1553
1561
|
return;
|
|
1554
1562
|
}
|
|
1555
1563
|
}
|
|
1556
|
-
const payload = await useProfileCommand(
|
|
1564
|
+
const payload = await useProfileCommand(target.selector, {
|
|
1557
1565
|
dryRun: opts.dryRun,
|
|
1566
|
+
planPluginFolders: opts.dryRun,
|
|
1558
1567
|
harness: opts.harness,
|
|
1559
1568
|
pull: opts.pull,
|
|
1560
1569
|
account: opts.account,
|
|
@@ -1565,13 +1574,15 @@ function registerProfileCommands(root) {
|
|
|
1565
1574
|
interactive: opts.noInteractive === true ? false : opts.interactive,
|
|
1566
1575
|
...conflictPolicy === "prompt" ? { conflictResolver: promptMaterializationConflict } : {}
|
|
1567
1576
|
});
|
|
1577
|
+
if (payload.cancelled) {
|
|
1578
|
+
process.exitCode = 1;
|
|
1579
|
+
}
|
|
1568
1580
|
if (format === "json") {
|
|
1569
|
-
printJson(payload);
|
|
1581
|
+
printJson(target.pulled ? { ...payload, pulled_profile: target.pulled } : payload);
|
|
1570
1582
|
return;
|
|
1571
1583
|
}
|
|
1572
1584
|
if (payload.cancelled) {
|
|
1573
|
-
|
|
1574
|
-
ui.warn("Profile apply cancelled.");
|
|
1585
|
+
reportApplyCancelled(payload.conflicts, "profile");
|
|
1575
1586
|
return;
|
|
1576
1587
|
}
|
|
1577
1588
|
if (payload.default_environment_name) {
|
|
@@ -1777,9 +1788,21 @@ function registerProfileCommands(root) {
|
|
|
1777
1788
|
noInteractive: opts.noInteractive ?? format === "json"
|
|
1778
1789
|
});
|
|
1779
1790
|
try {
|
|
1791
|
+
const target = await resolveProfileUseTarget(name, {
|
|
1792
|
+
pull: opts.pull,
|
|
1793
|
+
dryRun: opts.dryRun,
|
|
1794
|
+
account: opts.account,
|
|
1795
|
+
baseUrl: opts.baseUrl,
|
|
1796
|
+
interactive: opts.interactive,
|
|
1797
|
+
noInteractive: opts.noInteractive,
|
|
1798
|
+
format
|
|
1799
|
+
});
|
|
1800
|
+
if (target.pulled && format !== "json") {
|
|
1801
|
+
ui.info(`Pulled profile ${ui.theme.accent(target.pulled.plugin_name)} from ${target.pulled.source}`);
|
|
1802
|
+
}
|
|
1780
1803
|
if (!opts.dryRun) {
|
|
1781
1804
|
const sync = await maybeSyncActiveProfileBeforeSwitch({
|
|
1782
|
-
targetProfileName: name,
|
|
1805
|
+
targetProfileName: target.name,
|
|
1783
1806
|
harness: opts.harness,
|
|
1784
1807
|
format,
|
|
1785
1808
|
changes: opts.changes,
|
|
@@ -1833,6 +1856,7 @@ function registerProfileCommands(root) {
|
|
|
1833
1856
|
}
|
|
1834
1857
|
});
|
|
1835
1858
|
registerProfileCreateCommand(profileCmd);
|
|
1859
|
+
registerProfileDuplicateCommands(profileCmd);
|
|
1836
1860
|
profileCmd.command("delete").argument("<name>", "Profile plugin name or selector").option("--plugin", "Also delete the underlying plugin without prompting").option("-y, --yes", "Skip the interactive plugin delete prompt").option("--format <mode>", "Output format: human or json", "human").description("Demote a profile plugin and optionally delete the underlying plugin").action(async (name, opts) => {
|
|
1837
1861
|
const db = getDb();
|
|
1838
1862
|
initializeSchema(db);
|
|
@@ -1883,4 +1907,4 @@ function registerProfileCommands(root) {
|
|
|
1883
1907
|
export {
|
|
1884
1908
|
registerProfileCommands
|
|
1885
1909
|
};
|
|
1886
|
-
//# sourceMappingURL=profile-
|
|
1910
|
+
//# sourceMappingURL=profile-QFI7SL3S.js.map
|