harnesstap 1.4.0 → 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 +2 -0
- package/dist/apply-FTAIL3X3.js +50 -0
- package/dist/{approve-FBGYQGWN.js → approve-R6AWQB3I.js} +10 -13
- package/dist/{approve-FBGYQGWN.js.map → approve-R6AWQB3I.js.map} +1 -1
- package/dist/{audit-VI4QZ6X2.js → audit-2HNKFPSU.js} +11 -15
- package/dist/{audit-VI4QZ6X2.js.map → audit-2HNKFPSU.js.map} +1 -1
- package/dist/{auth-4CQCDS2W.js → auth-C54KRLNF.js} +10 -12
- package/dist/{auth-4CQCDS2W.js.map → auth-C54KRLNF.js.map} +1 -1
- package/dist/bin.js +13 -34
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-IE7B6Q5K.js → chunk-2XDYQXP2.js} +17 -18
- package/dist/chunk-2XDYQXP2.js.map +1 -0
- package/dist/{chunk-L6YZE5MY.js → chunk-3277RVZT.js} +5 -7
- package/dist/{chunk-L6YZE5MY.js.map → chunk-3277RVZT.js.map} +1 -1
- package/dist/{chunk-QA5U36JN.js → chunk-3Q72LZPJ.js} +764 -340
- package/dist/chunk-3Q72LZPJ.js.map +1 -0
- package/dist/{chunk-OML4HXKT.js → chunk-42E2MPES.js} +16 -22
- package/dist/chunk-42E2MPES.js.map +1 -0
- package/dist/{chunk-4ZQ2SCGY.js → chunk-5HACBPK2.js} +509 -207
- package/dist/chunk-5HACBPK2.js.map +1 -0
- package/dist/{chunk-GRASK6M6.js → chunk-6FXJIKEG.js} +5 -5
- package/dist/{chunk-73OJQTBW.js → chunk-A3TZT4WT.js} +2 -2
- package/dist/{chunk-ZUASVASP.js → chunk-BUA7WFI4.js} +27034 -18024
- package/dist/chunk-BUA7WFI4.js.map +1 -0
- package/dist/{chunk-U6DXASQP.js → chunk-CBSDMRMY.js} +2 -2
- package/dist/{chunk-RDG5DT7S.js → chunk-CR2TYMKC.js} +54 -40
- package/dist/chunk-CR2TYMKC.js.map +1 -0
- package/dist/{chunk-REHRUNBB.js → chunk-CWXCZBJR.js} +70 -5
- package/dist/chunk-CWXCZBJR.js.map +1 -0
- package/dist/{chunk-R7ZOYVN3.js → chunk-D7R577XZ.js} +187 -59
- package/dist/chunk-D7R577XZ.js.map +1 -0
- package/dist/{chunk-P2C7JPLD.js → chunk-EPXAOEBB.js} +6 -6
- package/dist/{chunk-D432JAXV.js → chunk-GZU4LVFF.js} +153 -25
- 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-3P6BWL5F.js → chunk-K4UDZUJ2.js} +2 -2
- package/dist/{chunk-ULCD6DJE.js → chunk-L6BJCRBU.js} +14 -39
- package/dist/chunk-L6BJCRBU.js.map +1 -0
- package/dist/{chunk-M4KLHJ6U.js → chunk-M6FEDSHY.js} +8 -10
- package/dist/{chunk-M4KLHJ6U.js.map → chunk-M6FEDSHY.js.map} +1 -1
- package/dist/chunk-M7PHQ3UC.js +31491 -0
- package/dist/chunk-M7PHQ3UC.js.map +1 -0
- package/dist/{chunk-PNGF5EV2.js → chunk-MHLAIGIM.js} +2 -2
- package/dist/{chunk-BPWFQKI5.js → chunk-MHMFF6A5.js} +2 -2
- package/dist/chunk-MKLJBW5N.js +14 -0
- package/dist/{chunk-MR7IOHSX.js → chunk-MQCAPCAF.js} +16 -22
- package/dist/{chunk-MR7IOHSX.js.map → chunk-MQCAPCAF.js.map} +1 -1
- package/dist/{chunk-N3VGY3T3.js → chunk-MQCH3YZ5.js} +7 -5
- package/dist/{chunk-N3VGY3T3.js.map → chunk-MQCH3YZ5.js.map} +1 -1
- package/dist/{chunk-WG5A6EAU.js → chunk-OHZNDV4A.js} +821 -28
- package/dist/chunk-OHZNDV4A.js.map +1 -0
- package/dist/{chunk-WGP4GUYZ.js → chunk-OWE3OSX6.js} +9 -11
- package/dist/{chunk-WGP4GUYZ.js.map → chunk-OWE3OSX6.js.map} +1 -1
- package/dist/{chunk-RVEXPMM3.js → chunk-PCNHBMBU.js} +3 -5
- package/dist/{chunk-RVEXPMM3.js.map → chunk-PCNHBMBU.js.map} +1 -1
- package/dist/{chunk-23XSG7LI.js → chunk-QGTDQNVV.js} +4 -4
- package/dist/{chunk-UVVZHWD2.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-EOPFER6N.js → chunk-R6VFJKZB.js} +19 -5
- package/dist/chunk-R6VFJKZB.js.map +1 -0
- package/dist/{chunk-3FS775NP.js → chunk-RQLVXJH2.js} +85 -4
- package/dist/chunk-RQLVXJH2.js.map +1 -0
- package/dist/{chunk-JQOKQKQT.js → chunk-S2D5PWAO.js} +2 -2
- package/dist/{chunk-43BDGVN3.js → chunk-T4EKNX2Q.js} +56 -9
- package/dist/chunk-T4EKNX2Q.js.map +1 -0
- package/dist/{chunk-XTVGCVU4.js → chunk-TERYL7JH.js} +36 -37
- package/dist/chunk-TERYL7JH.js.map +1 -0
- package/dist/{chunk-6LTLYV5D.js → chunk-UC27MQ3T.js} +1064 -265
- 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-7HP6AAI3.js → chunk-UK2IV2ZQ.js} +2 -2
- package/dist/{chunk-PCMON7Y2.js → chunk-UZCAYOIQ.js} +8 -10
- package/dist/{chunk-PCMON7Y2.js.map → chunk-UZCAYOIQ.js.map} +1 -1
- package/dist/{chunk-N3ZCH64F.js → chunk-V4UNYSZO.js} +86 -32
- 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-RFQ3N7FB.js → chunk-WGVU3LA5.js} +11 -9
- package/dist/chunk-WGVU3LA5.js.map +1 -0
- package/dist/{chunk-IMROMZ2K.js → chunk-WQ3F4O7U.js} +19 -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-2A36HWDE.js → chunk-Y4I7ZCAE.js} +129 -136
- package/dist/chunk-Y4I7ZCAE.js.map +1 -0
- package/dist/{chunk-TPEJFLV7.js → chunk-ZKMSHLXP.js} +4 -6
- package/dist/{chunk-TPEJFLV7.js.map → chunk-ZKMSHLXP.js.map} +1 -1
- package/dist/{compile-GXADKGH5.js → compile-B2QG6BAQ.js} +33 -37
- package/dist/{compile-GXADKGH5.js.map → compile-B2QG6BAQ.js.map} +1 -1
- package/dist/{config-JMHNA2U5.js → config-D3F6ICZ2.js} +16 -21
- package/dist/{config-JMHNA2U5.js.map → config-D3F6ICZ2.js.map} +1 -1
- package/dist/{cursor-local-install-46RWRBDT.js → cursor-local-install-4HDIBX22.js} +8 -12
- package/dist/{cursor-local-install-46RWRBDT.js.map → cursor-local-install-4HDIBX22.js.map} +1 -1
- package/dist/cursor-local-install-LL367GZY.js +94 -0
- package/dist/cursor-local-install-LL367GZY.js.map +1 -0
- package/dist/{doctor-N7ZULPOL.js → doctor-QSGETVDE.js} +14 -17
- package/dist/doctor-QSGETVDE.js.map +1 -0
- package/dist/{environment-OBB3WU5B.js → environment-2JS4RWQA.js} +42 -50
- package/dist/environment-2JS4RWQA.js.map +1 -0
- package/dist/{github-PBYBGOLH.js → github-JXSTHLY2.js} +9 -10
- package/dist/{github-PBYBGOLH.js.map → github-JXSTHLY2.js.map} +1 -1
- package/dist/{harness-7KYATIV6.js → harness-GBI3AMLH.js} +25 -31
- package/dist/{harness-7KYATIV6.js.map → harness-GBI3AMLH.js.map} +1 -1
- package/dist/{help-EE3AJQD4.js → help-EC52ERIE.js} +15 -20
- package/dist/{help-EE3AJQD4.js.map → help-EC52ERIE.js.map} +1 -1
- package/dist/{help-VXWKLQ6A.js → help-VIRMBOPJ.js} +57 -575
- 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.js +12 -16
- package/dist/{init-LBTMPDVJ.js → init-OK3K6ILG.js} +33 -41
- package/dist/{init-LBTMPDVJ.js.map → init-OK3K6ILG.js.map} +1 -1
- package/dist/live-read-cache-ESQQJBNS.js +13 -0
- package/dist/live-read-cache-WPUFHVMZ.js +12 -0
- package/dist/{lock-WLJRXRVK.js → lock-AA2F4I3K.js} +9 -12
- package/dist/{lock-WLJRXRVK.js.map → lock-AA2F4I3K.js.map} +1 -1
- package/dist/{marketplace-GXSV6QIY.js → marketplace-QUYCV23F.js} +26 -79
- package/dist/marketplace-QUYCV23F.js.map +1 -0
- package/dist/{mcp-XPDWWU75.js → mcp-CIHSR4DD.js} +33 -37
- package/dist/{mcp-XPDWWU75.js.map → mcp-CIHSR4DD.js.map} +1 -1
- package/dist/{migrate-SBUIWN3U.js → migrate-TQPEZYS5.js} +93 -34
- 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-A73LDVOX.js → pack-VUO4UBWL.js} +10 -14
- package/dist/{pack-A73LDVOX.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/{policy-6VY3CMSU.js → policy-Z5TL4N3V.js} +9 -12
- package/dist/{policy-6VY3CMSU.js.map → policy-Z5TL4N3V.js.map} +1 -1
- package/dist/{profile-YCKPMRRU.js → profile-QFI7SL3S.js} +108 -78
- package/dist/profile-QFI7SL3S.js.map +1 -0
- package/dist/{project-KHPPBKPN.js → project-3KR3EPYR.js} +486 -60
- package/dist/project-3KR3EPYR.js.map +1 -0
- package/dist/{resource-IJU3FAN5.js → resource-45BPRQ7V.js} +55 -45
- 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-Z66FWWMQ.js → version-QUJZGTZ5.js} +3 -3
- package/dist/version-QUJZGTZ5.js.map +1 -0
- package/package.json +16 -11
- package/dist/apply-SUNDXRJ3.js +0 -54
- package/dist/chunk-2A36HWDE.js.map +0 -1
- package/dist/chunk-2H7UOFLK.js +0 -11
- package/dist/chunk-3FS775NP.js.map +0 -1
- package/dist/chunk-43BDGVN3.js.map +0 -1
- package/dist/chunk-4ZQ2SCGY.js.map +0 -1
- package/dist/chunk-6LTLYV5D.js.map +0 -1
- package/dist/chunk-D432JAXV.js.map +0 -1
- package/dist/chunk-DF4Z7LAD.js +0 -3463
- package/dist/chunk-DF4Z7LAD.js.map +0 -1
- package/dist/chunk-EOPFER6N.js.map +0 -1
- package/dist/chunk-G6WKY2W4.js +0 -389
- package/dist/chunk-G6WKY2W4.js.map +0 -1
- package/dist/chunk-IE7B6Q5K.js.map +0 -1
- package/dist/chunk-IMROMZ2K.js.map +0 -1
- package/dist/chunk-M2U3J7UX.js +0 -46
- package/dist/chunk-M2U3J7UX.js.map +0 -1
- package/dist/chunk-N3ZCH64F.js.map +0 -1
- package/dist/chunk-NAGAJ5UM.js +0 -145
- package/dist/chunk-NAGAJ5UM.js.map +0 -1
- package/dist/chunk-OML4HXKT.js.map +0 -1
- package/dist/chunk-QA5U36JN.js.map +0 -1
- package/dist/chunk-R7ZOYVN3.js.map +0 -1
- package/dist/chunk-RDG5DT7S.js.map +0 -1
- package/dist/chunk-REHRUNBB.js.map +0 -1
- package/dist/chunk-RFQ3N7FB.js.map +0 -1
- package/dist/chunk-TQ2NA4Z4.js.map +0 -1
- package/dist/chunk-ULCD6DJE.js.map +0 -1
- package/dist/chunk-WG5A6EAU.js.map +0 -1
- package/dist/chunk-XGTTOO4R.js +0 -84
- package/dist/chunk-XGTTOO4R.js.map +0 -1
- package/dist/chunk-XTVGCVU4.js.map +0 -1
- package/dist/chunk-XUJKZQZA.js +0 -235
- package/dist/chunk-XUJKZQZA.js.map +0 -1
- package/dist/chunk-ZUASVASP.js.map +0 -1
- package/dist/doctor-N7ZULPOL.js.map +0 -1
- package/dist/environment-OBB3WU5B.js.map +0 -1
- package/dist/help-VXWKLQ6A.js.map +0 -1
- package/dist/live-read-cache-TUSP7U3D.js +0 -10
- package/dist/marketplace-GXSV6QIY.js.map +0 -1
- package/dist/migrate-SBUIWN3U.js.map +0 -1
- package/dist/open-HDGLYYVU.js +0 -24
- package/dist/plugin-CEO6ZJM5.js +0 -51
- package/dist/plugin-from-project-UK7VJVUP.js +0 -18
- package/dist/profile-YCKPMRRU.js.map +0 -1
- package/dist/project-KHPPBKPN.js.map +0 -1
- package/dist/resource-IJU3FAN5.js.map +0 -1
- /package/dist/{apply-SUNDXRJ3.js.map → apply-FTAIL3X3.js.map} +0 -0
- /package/dist/{chunk-GRASK6M6.js.map → chunk-6FXJIKEG.js.map} +0 -0
- /package/dist/{chunk-73OJQTBW.js.map → chunk-A3TZT4WT.js.map} +0 -0
- /package/dist/{chunk-U6DXASQP.js.map → chunk-CBSDMRMY.js.map} +0 -0
- /package/dist/{chunk-P2C7JPLD.js.map → chunk-EPXAOEBB.js.map} +0 -0
- /package/dist/{chunk-3P6BWL5F.js.map → chunk-K4UDZUJ2.js.map} +0 -0
- /package/dist/{chunk-PNGF5EV2.js.map → chunk-MHLAIGIM.js.map} +0 -0
- /package/dist/{chunk-BPWFQKI5.js.map → chunk-MHMFF6A5.js.map} +0 -0
- /package/dist/{chunk-2H7UOFLK.js.map → chunk-MKLJBW5N.js.map} +0 -0
- /package/dist/{chunk-23XSG7LI.js.map → chunk-QGTDQNVV.js.map} +0 -0
- /package/dist/{chunk-UVVZHWD2.js.map → chunk-R27VZIF6.js.map} +0 -0
- /package/dist/{chunk-JQOKQKQT.js.map → chunk-S2D5PWAO.js.map} +0 -0
- /package/dist/{chunk-7HP6AAI3.js.map → chunk-UK2IV2ZQ.js.map} +0 -0
- /package/dist/{live-read-cache-TUSP7U3D.js.map → live-read-cache-ESQQJBNS.js.map} +0 -0
- /package/dist/{open-HDGLYYVU.js.map → live-read-cache-WPUFHVMZ.js.map} +0 -0
- /package/dist/{plugin-CEO6ZJM5.js.map → open-D3GWGDSQ.js.map} +0 -0
- /package/dist/{plugin-from-project-UK7VJVUP.js.map → plugin-L3466DHK.js.map} +0 -0
- /package/dist/{version-Z66FWWMQ.js.map → plugin-from-project-U5UGKTJH.js.map} +0 -0
|
@@ -1,93 +1,102 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTransparentCrossHarnessGap,
|
|
3
|
+
liveSkillCopiesForMissingPath,
|
|
3
4
|
resourceScopesForPlugins,
|
|
4
5
|
withAffectedResources
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R6VFJKZB.js";
|
|
6
7
|
import {
|
|
7
8
|
formatEnvironmentToml,
|
|
8
9
|
importEnvironmentToml
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UK2IV2ZQ.js";
|
|
10
11
|
import {
|
|
11
12
|
MISSING_PROJECT_CONFIG_MESSAGE
|
|
12
13
|
} from "./chunk-VZQG2JDV.js";
|
|
13
|
-
import {
|
|
14
|
-
promptForChoice,
|
|
15
|
-
promptForConfirmation,
|
|
16
|
-
promptForSearchableChoice,
|
|
17
|
-
shouldUseBrowsePicker,
|
|
18
|
-
shouldUseWizard
|
|
19
|
-
} from "./chunk-NAGAJ5UM.js";
|
|
20
14
|
import {
|
|
21
15
|
ON_CONFLICT_VALUE_HELP,
|
|
22
16
|
parseOnConflict
|
|
23
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WGVU3LA5.js";
|
|
24
18
|
import {
|
|
19
|
+
CLAUDE_KNOWN_MARKETPLACES_PATH,
|
|
20
|
+
HARNESSTAP_CLAUDE_MARKETPLACES_ROOT,
|
|
25
21
|
addResourceToPlugin,
|
|
26
22
|
applyProfilePlugin,
|
|
23
|
+
binaryExpectedFileMatchesDisk,
|
|
27
24
|
buildContentsFromResources,
|
|
25
|
+
buildHarnessLiveStatusMap,
|
|
28
26
|
buildHostManagedStatus,
|
|
29
27
|
buildProfileContents,
|
|
30
28
|
captureUntrackedResourcesForStash,
|
|
29
|
+
classifyGlobalDriftChanges,
|
|
30
|
+
claudeChangedMarketplaces,
|
|
31
|
+
clearActiveProfileName,
|
|
31
32
|
clearGlobalProfileApply,
|
|
33
|
+
collectOwnedGlobalProfileFiles,
|
|
32
34
|
collectProfilePluginIds,
|
|
33
35
|
commitManagedPathFromLive,
|
|
36
|
+
computeGlobalProfilePanelStatus,
|
|
37
|
+
countMissingHarnessRows,
|
|
34
38
|
createPlugin,
|
|
39
|
+
declaredMcpFromExpectedFiles,
|
|
35
40
|
detectNotStagedProfileResources,
|
|
41
|
+
diffHostPluginView,
|
|
42
|
+
driftChangeIsKept,
|
|
43
|
+
emittedHostPluginTree,
|
|
36
44
|
fileContentsEquivalentForDrift,
|
|
45
|
+
filesOnlyMarketplacePinRefs,
|
|
37
46
|
findProjectConfig,
|
|
38
47
|
flattenLiveRestoreFiles,
|
|
48
|
+
getActiveProfileName,
|
|
39
49
|
getGlobalActiveEnvironmentName,
|
|
50
|
+
getLatestGlobalApplySnapshotForProfile,
|
|
40
51
|
getProfileEntry,
|
|
52
|
+
harnessTapClaudeMarketplaceManifestPath,
|
|
41
53
|
hashOnDiskFile,
|
|
54
|
+
hostPluginPackageDir,
|
|
42
55
|
installPluginFromCatalog,
|
|
56
|
+
isClaudePluginRegistryPath,
|
|
43
57
|
isEmptyBuiltinProfile,
|
|
44
58
|
isNativeAgentPluginCachePath,
|
|
45
59
|
isProfilePlugin,
|
|
46
60
|
listMaterializationsForRootPath,
|
|
61
|
+
listMissingHarnessRows,
|
|
47
62
|
mergePluginsForApply,
|
|
48
63
|
normalizeResourceInput,
|
|
49
64
|
profileSkillNameMap,
|
|
50
65
|
readDiskTextOnce,
|
|
66
|
+
readUpstreamCheckSummary,
|
|
51
67
|
removeUntrackedStashFiles,
|
|
52
68
|
resolvePluginSelector,
|
|
53
69
|
resolveProfileEnvironment,
|
|
70
|
+
resolveProjectDriftSummary,
|
|
54
71
|
resourceKeyFromManagedPath,
|
|
55
72
|
restoreUntrackedStashFiles,
|
|
56
73
|
stashedFilesToDriftChanges,
|
|
74
|
+
unreadNotificationCount,
|
|
57
75
|
upsertResource,
|
|
58
76
|
useEnvironmentCommand,
|
|
59
77
|
useProfileCommand,
|
|
60
|
-
withProfileApplyLock
|
|
61
|
-
} from "./chunk-ZUASVASP.js";
|
|
62
|
-
import {
|
|
63
|
-
parsePluginSelector,
|
|
64
|
-
resolveRemotePluginSelector
|
|
65
|
-
} from "./chunk-N3ZCH64F.js";
|
|
66
|
-
import {
|
|
67
|
-
ui
|
|
68
|
-
} from "./chunk-2A36HWDE.js";
|
|
69
|
-
import {
|
|
70
|
-
buildHarnessLiveStatusMap,
|
|
71
|
-
classifyGlobalDriftChanges,
|
|
72
|
-
clearActiveProfileName,
|
|
73
|
-
collectOwnedGlobalProfileFiles,
|
|
74
|
-
computeGlobalProfilePanelStatus,
|
|
75
|
-
countMissingHarnessRows,
|
|
76
|
-
declaredMcpFromExpectedFiles,
|
|
77
|
-
driftChangeIsKept,
|
|
78
|
-
getActiveProfileName,
|
|
79
|
-
getLatestGlobalApplySnapshotForProfile,
|
|
80
|
-
resolveHomeRoot,
|
|
81
|
-
resolveProjectDriftSummary,
|
|
78
|
+
withProfileApplyLock,
|
|
82
79
|
withStatusReadCache
|
|
83
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-BUA7WFI4.js";
|
|
84
81
|
import {
|
|
85
82
|
inStatusComputation,
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
promptForChoice,
|
|
84
|
+
promptForConfirmation,
|
|
85
|
+
promptForSearchableChoice,
|
|
86
|
+
resolveHomeRoot,
|
|
87
|
+
runInStatusComputation,
|
|
88
|
+
shouldUseBrowsePicker,
|
|
89
|
+
shouldUseWizard
|
|
90
|
+
} from "./chunk-UC27MQ3T.js";
|
|
91
|
+
import {
|
|
92
|
+
parsePluginSelector,
|
|
93
|
+
resolveRemotePluginSelector
|
|
94
|
+
} from "./chunk-V4UNYSZO.js";
|
|
88
95
|
import {
|
|
89
96
|
CLI_COPY,
|
|
97
|
+
CLI_HINTS,
|
|
90
98
|
SWITCH_CHANGES_VALUES,
|
|
99
|
+
allKeptHostPluginViewPaths,
|
|
91
100
|
applyCancelledMessage,
|
|
92
101
|
applyHeaderLine,
|
|
93
102
|
applyWroteLine,
|
|
@@ -95,18 +104,25 @@ import {
|
|
|
95
104
|
discardedChangesLine,
|
|
96
105
|
dryRunSectionHeader,
|
|
97
106
|
dryRunWouldLine,
|
|
107
|
+
forceRemoveHintLine,
|
|
98
108
|
getHarnesstapDir,
|
|
109
|
+
harnesstapDirForHomeRoot,
|
|
110
|
+
hostPluginViewChangeCounts,
|
|
111
|
+
hostPluginViewForceReplace,
|
|
99
112
|
keptFilesHeader,
|
|
100
113
|
keptReasonLabel,
|
|
114
|
+
keptReportedBeforeLine,
|
|
101
115
|
onConflictReplaceHint,
|
|
116
|
+
pendingKeptHostPluginViewPaths,
|
|
102
117
|
savedChangesLine,
|
|
103
118
|
snapshotSavedUndoLine,
|
|
104
119
|
stashedChangesLine,
|
|
105
120
|
traceCount,
|
|
106
121
|
traceSpan,
|
|
122
|
+
ui,
|
|
107
123
|
unsavedChangesFlagHint,
|
|
108
124
|
unsavedChangesLine
|
|
109
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-OHZNDV4A.js";
|
|
110
126
|
|
|
111
127
|
// src/utils/user-path.ts
|
|
112
128
|
import { existsSync } from "fs";
|
|
@@ -174,7 +190,10 @@ async function promptMaterializationConflict(conflict) {
|
|
|
174
190
|
function keptFromSkippedRemovals(skipped) {
|
|
175
191
|
return (skipped ?? []).flatMap((entry) => {
|
|
176
192
|
const reason = removalSkipReason(entry.reason);
|
|
177
|
-
|
|
193
|
+
if (!reason) return [];
|
|
194
|
+
return [
|
|
195
|
+
entry.forceable === false ? { path: entry.path, reason, forceable: false } : { path: entry.path, reason }
|
|
196
|
+
];
|
|
178
197
|
});
|
|
179
198
|
}
|
|
180
199
|
function printApplyPayload(payload) {
|
|
@@ -210,9 +229,6 @@ function printApplyPayload(payload) {
|
|
|
210
229
|
ui.warn(skipped.message);
|
|
211
230
|
}
|
|
212
231
|
}
|
|
213
|
-
if (!payload.dry_run && payload.removal_backup && (payload.removed_files?.length ?? 0) > 0) {
|
|
214
|
-
ui.info(`Backup: ${payload.removal_backup}`);
|
|
215
|
-
}
|
|
216
232
|
}
|
|
217
233
|
function printApplyDryRun(input) {
|
|
218
234
|
if (input.header !== false) {
|
|
@@ -234,7 +250,7 @@ function printApplyDryRun(input) {
|
|
|
234
250
|
if (input.wouldKeep.length > 0) {
|
|
235
251
|
console.log(dryRunSectionHeader("keep", input.wouldKeep.length));
|
|
236
252
|
for (const entry of input.wouldKeep) {
|
|
237
|
-
console.log(` ${entry.path} ${keptReasonLabel(entry.reason)}`);
|
|
253
|
+
console.log(` ${entry.path} ${keptReasonLabel(entry.reason, entry.path)}`);
|
|
238
254
|
}
|
|
239
255
|
}
|
|
240
256
|
console.log("");
|
|
@@ -253,22 +269,39 @@ function printKeptFiles(kept) {
|
|
|
253
269
|
}
|
|
254
270
|
console.log(keptFilesHeader(kept.length));
|
|
255
271
|
for (const entry of kept) {
|
|
256
|
-
console.log(` ${entry.path} ${keptReasonLabel(entry.reason)}`);
|
|
272
|
+
console.log(` ${entry.path} ${keptReasonLabel(entry.reason, entry.path)}`);
|
|
273
|
+
}
|
|
274
|
+
if (kept.every((entry) => isClaudePluginRegistryPath(entry.path))) {
|
|
275
|
+
return;
|
|
257
276
|
}
|
|
258
|
-
|
|
277
|
+
const forceable = kept.filter(
|
|
278
|
+
(entry) => entry.forceable !== false && !isClaudePluginRegistryPath(entry.path)
|
|
279
|
+
);
|
|
280
|
+
console.log(
|
|
281
|
+
hostPluginViewForceReplace() || forceable.length === 0 ? CLI_HINTS.forceRemoveAlreadyUsed : forceRemoveHintLine(forceable.length)
|
|
282
|
+
);
|
|
259
283
|
}
|
|
260
284
|
function printApplySuccess(input) {
|
|
261
285
|
console.log(applyHeaderLine(input.name, input.harnessCount));
|
|
286
|
+
const pluginFolder = hostPluginViewChangeCounts();
|
|
287
|
+
const folderKept = new Set(pendingKeptHostPluginViewPaths());
|
|
288
|
+
const kept = input.kept.filter((entry) => !folderKept.has(entry.path));
|
|
289
|
+
const listedPaths = /* @__PURE__ */ new Set([...folderKept, ...kept.map((entry) => entry.path)]);
|
|
290
|
+
const reportedBefore = allKeptHostPluginViewPaths().filter((path) => !listedPaths.has(path));
|
|
291
|
+
const keptTotal = listedPaths.size + new Set(reportedBefore).size;
|
|
262
292
|
console.log(
|
|
263
293
|
applyWroteLine({
|
|
264
|
-
wrote: input.wrote,
|
|
265
|
-
removed: input.removed,
|
|
266
|
-
kept:
|
|
294
|
+
wrote: input.wrote + pluginFolder.replaced + pluginFolder.added,
|
|
295
|
+
removed: input.removed + pluginFolder.removed,
|
|
296
|
+
kept: keptTotal,
|
|
267
297
|
unchanged: input.unchanged
|
|
268
298
|
})
|
|
269
299
|
);
|
|
270
|
-
if (
|
|
271
|
-
printKeptFiles(
|
|
300
|
+
if (kept.length > 0) {
|
|
301
|
+
printKeptFiles(kept);
|
|
302
|
+
}
|
|
303
|
+
if (reportedBefore.length > 0) {
|
|
304
|
+
console.log(keptReportedBeforeLine(new Set(reportedBefore).size));
|
|
272
305
|
}
|
|
273
306
|
if (input.snapshotId) {
|
|
274
307
|
console.log(snapshotSavedUndoLine(`ht revert ${input.snapshotId}`));
|
|
@@ -294,6 +327,75 @@ function driftCore(fields, harness, homeRoot) {
|
|
|
294
327
|
);
|
|
295
328
|
return { fields, harness, watchedPaths };
|
|
296
329
|
}
|
|
330
|
+
function globalProfileStatusGaps(status) {
|
|
331
|
+
const missing = status.depth === "full" ? listMissingHarnessRows(status.harnesses) : [];
|
|
332
|
+
return { inSync: !status.has_drift && missing.length === 0, missing };
|
|
333
|
+
}
|
|
334
|
+
var HOST_PLUGIN_VIEW_PATH = /^(\.claude\/plugins\/cache\/([^/]+)\/([^/]+)\/([^/]+))\//;
|
|
335
|
+
function isHostPluginViewPath(path) {
|
|
336
|
+
return HOST_PLUGIN_VIEW_PATH.test(path.replaceAll("\\", "/"));
|
|
337
|
+
}
|
|
338
|
+
function hostPluginFolderChanges(homeRoot, expectedFiles, known) {
|
|
339
|
+
const folders = /* @__PURE__ */ new Map();
|
|
340
|
+
for (const file of expectedFiles) {
|
|
341
|
+
const match = HOST_PLUGIN_VIEW_PATH.exec(file.path.replaceAll("\\", "/"));
|
|
342
|
+
if (!match?.[1] || !match[2] || !match[3] || !match[4]) continue;
|
|
343
|
+
folders.set(match[1], { marketplace: match[2], name: match[3], version: match[4] });
|
|
344
|
+
}
|
|
345
|
+
if (folders.size === 0) return [];
|
|
346
|
+
const seen = new Set(known.map((change) => change.path));
|
|
347
|
+
const harnesstapDir = harnesstapDirForHomeRoot(homeRoot);
|
|
348
|
+
const changes = [];
|
|
349
|
+
for (const [folder, plugin] of folders) {
|
|
350
|
+
const canonicalDir = hostPluginPackageDir(harnesstapDir, plugin.marketplace, plugin.name, plugin.version);
|
|
351
|
+
const differences = diffHostPluginView({
|
|
352
|
+
homeRoot,
|
|
353
|
+
hostView: join2(homeRoot, folder),
|
|
354
|
+
canonicalDir
|
|
355
|
+
});
|
|
356
|
+
const emitted = differences.length > 0 ? emittedHostPluginTree(canonicalDir, "claude-code", plugin.name) : /* @__PURE__ */ new Map();
|
|
357
|
+
for (const difference of differences) {
|
|
358
|
+
const path = `${folder}/${difference.path}`;
|
|
359
|
+
if (seen.has(path)) continue;
|
|
360
|
+
const written = emitted.get(difference.path);
|
|
361
|
+
if (difference.state === "missing" ? !written : matchesEmitted(join2(homeRoot, path), written)) {
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
seen.add(path);
|
|
365
|
+
if (difference.state === "missing") changes.push({ path, type: "deleted" });
|
|
366
|
+
else if (difference.state === "stale") changes.push({ path, type: "modified" });
|
|
367
|
+
else if (difference.state === "modified") {
|
|
368
|
+
changes.push({ path, type: "modified", removal_group: "owned_modified", changed_by: "claude-code" });
|
|
369
|
+
} else {
|
|
370
|
+
changes.push({ path, type: "modified", removal_group: "unmanaged" });
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return changes;
|
|
375
|
+
}
|
|
376
|
+
function matchesEmitted(fullPath, file) {
|
|
377
|
+
if (!file) return false;
|
|
378
|
+
const binary = binaryExpectedFileMatchesDisk(fullPath, file);
|
|
379
|
+
if (binary !== void 0) return binary;
|
|
380
|
+
try {
|
|
381
|
+
return readFileSync(fullPath, "utf-8") === file.content;
|
|
382
|
+
} catch {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
function isHarnessTapClaudeMarketplaceFile(path) {
|
|
387
|
+
return path.replaceAll("\\", "/").startsWith(`${HARNESSTAP_CLAUDE_MARKETPLACES_ROOT}/`);
|
|
388
|
+
}
|
|
389
|
+
function claudeChangedMarketplaceEntries(homeRoot, expectedFiles) {
|
|
390
|
+
const wanted = new Set(expectedFiles.map((file) => file.path));
|
|
391
|
+
return [...claudeChangedMarketplaces(homeRoot)].filter((marketplace) => wanted.has(harnessTapClaudeMarketplaceManifestPath(marketplace))).sort().map((marketplace) => ({
|
|
392
|
+
path: CLAUDE_KNOWN_MARKETPLACES_PATH,
|
|
393
|
+
type: "modified",
|
|
394
|
+
removal_group: "owned_modified",
|
|
395
|
+
changed_by: "claude-code",
|
|
396
|
+
detail: `marketplace ${marketplace}`
|
|
397
|
+
}));
|
|
398
|
+
}
|
|
297
399
|
function keptContentDiff(path, keptModified, keptUnmanaged) {
|
|
298
400
|
if (keptModified.has(path)) {
|
|
299
401
|
return { path, type: "modified", removal_group: "owned_modified" };
|
|
@@ -303,7 +405,7 @@ function keptContentDiff(path, keptModified, keptUnmanaged) {
|
|
|
303
405
|
}
|
|
304
406
|
return { path, type: "modified" };
|
|
305
407
|
}
|
|
306
|
-
function isMissingExpectedFileTransparent(homeRoot, path, expectedPathsByResource, scopeByResource) {
|
|
408
|
+
function isMissingExpectedFileTransparent(homeRoot, path, expectedPathsByResource, scopeByResource, harnesses) {
|
|
307
409
|
const mapped = resourceKeyFromManagedPath(path);
|
|
308
410
|
if (!mapped) {
|
|
309
411
|
return true;
|
|
@@ -313,6 +415,9 @@ function isMissingExpectedFileTransparent(homeRoot, path, expectedPathsByResourc
|
|
|
313
415
|
const onDiskSiblingPaths = siblings.filter(
|
|
314
416
|
(sibling) => sibling !== path && readGlobalFile(homeRoot, sibling) !== null
|
|
315
417
|
);
|
|
418
|
+
for (const live of liveSkillCopiesForMissingPath(path, harnesses, (candidate) => readGlobalFile(homeRoot, candidate) !== null)) {
|
|
419
|
+
if (!onDiskSiblingPaths.includes(live)) onDiskSiblingPaths.push(live);
|
|
420
|
+
}
|
|
316
421
|
return isTransparentCrossHarnessGap({
|
|
317
422
|
path,
|
|
318
423
|
onDiskSiblingPaths,
|
|
@@ -364,10 +469,15 @@ function buildBaseStatusFields(input) {
|
|
|
364
469
|
const declaredPins = input.pluginIds && input.pluginIds.length > 0 ? traceSpan("base.merge-plugins", () => mergePluginsForApply(input.pluginIds ?? []).pluginPins) : [];
|
|
365
470
|
const declaredFromExpected = input.expectedApply ? declaredMcpFromExpectedApply(input.expectedApply) : null;
|
|
366
471
|
const declaredMcpByHarness = declaredFromExpected?.namesByHarness ?? (input.pluginIds ? declaredMcpNamesFromMergedPlugins(input.pluginIds) : { "claude-code": [], cursor: [] });
|
|
472
|
+
const filesOnlyPinRefs = input.expectedApply?.resolution ? {
|
|
473
|
+
"claude-code": filesOnlyMarketplacePinRefs(input.expectedApply.resolution, "claude-code"),
|
|
474
|
+
cursor: filesOnlyMarketplacePinRefs(input.expectedApply.resolution, "cursor")
|
|
475
|
+
} : void 0;
|
|
367
476
|
const harnesses = traceSpan("base.harness-live-status", () => buildHarnessLiveStatusMap({
|
|
368
477
|
depth: input.depth,
|
|
369
478
|
homeRoot,
|
|
370
479
|
declaredPins,
|
|
480
|
+
...filesOnlyPinRefs ? { filesOnlyPinRefs } : {},
|
|
371
481
|
declaredMcpByHarness,
|
|
372
482
|
...declaredFromExpected ? { expectedMcpConfigsByHarness: declaredFromExpected.configsByHarness } : {}
|
|
373
483
|
}));
|
|
@@ -468,7 +578,10 @@ async function detectGlobalProfileStatus(input = {}) {
|
|
|
468
578
|
return {
|
|
469
579
|
...status,
|
|
470
580
|
as_of: (/* @__PURE__ */ new Date()).toISOString(),
|
|
471
|
-
refreshing: status.refreshing === true
|
|
581
|
+
refreshing: status.refreshing === true,
|
|
582
|
+
// Outside the cache: one indexed read, so a finished check shows at once.
|
|
583
|
+
updates: readUpstreamCheckSummary(),
|
|
584
|
+
unread_count: unreadNotificationCount()
|
|
472
585
|
};
|
|
473
586
|
}
|
|
474
587
|
async function loadDriftCore(input) {
|
|
@@ -613,6 +726,8 @@ async function loadDriftCore(input) {
|
|
|
613
726
|
traceSpan("drift.compare-files", () => {
|
|
614
727
|
for (const file of expectedApply.expected_files ?? []) {
|
|
615
728
|
if (isNativeAgentPluginCachePath(file.path)) continue;
|
|
729
|
+
if (isHostPluginViewPath(file.path)) continue;
|
|
730
|
+
if (binaryExpectedFileMatchesDisk(join2(homeRoot, file.path), file)) continue;
|
|
616
731
|
const current = readGlobalFile(homeRoot, file.path);
|
|
617
732
|
const owned = listMaterializationsForRootPath(homeRoot, file.path);
|
|
618
733
|
if (current === null) {
|
|
@@ -620,7 +735,8 @@ async function loadDriftCore(input) {
|
|
|
620
735
|
homeRoot,
|
|
621
736
|
file.path,
|
|
622
737
|
expectedPathsByResource,
|
|
623
|
-
scopeByResource
|
|
738
|
+
scopeByResource,
|
|
739
|
+
expectedApply.harnesses
|
|
624
740
|
)) {
|
|
625
741
|
continue;
|
|
626
742
|
}
|
|
@@ -637,6 +753,10 @@ async function loadDriftCore(input) {
|
|
|
637
753
|
if (fileContentsEquivalentForDrift(file.path, current, file.content)) {
|
|
638
754
|
continue;
|
|
639
755
|
}
|
|
756
|
+
if (isHarnessTapClaudeMarketplaceFile(file.path)) {
|
|
757
|
+
changes.push({ path: file.path, type: "modified", removal_group: "owned_modified", changed_by: "claude-code" });
|
|
758
|
+
continue;
|
|
759
|
+
}
|
|
640
760
|
changes.push(
|
|
641
761
|
withAffectedResources(
|
|
642
762
|
keptContentDiff(file.path, keptModified, keptUnmanaged),
|
|
@@ -657,6 +777,10 @@ async function loadDriftCore(input) {
|
|
|
657
777
|
}
|
|
658
778
|
}
|
|
659
779
|
});
|
|
780
|
+
traceSpan("drift.host-plugin-folders", () => {
|
|
781
|
+
changes.push(...hostPluginFolderChanges(homeRoot, expectedApply.expected_files ?? [], changes));
|
|
782
|
+
});
|
|
783
|
+
changes.push(...claudeChangedMarketplaceEntries(homeRoot, expectedApply.expected_files ?? []));
|
|
660
784
|
const applied = Boolean(latestSnapshot);
|
|
661
785
|
const blockingChanges = changes.filter((change) => !driftChangeIsKept(change));
|
|
662
786
|
const hasDrift = !applied || !stackInSync || blockingChanges.length > 0;
|
|
@@ -813,7 +937,9 @@ function readHomeFile(homeRoot, relativePath) {
|
|
|
813
937
|
return null;
|
|
814
938
|
}
|
|
815
939
|
try {
|
|
816
|
-
|
|
940
|
+
const bytes = readFileSync2(fullPath);
|
|
941
|
+
const text = bytes.toString("utf-8");
|
|
942
|
+
return Buffer.from(text, "utf-8").equals(bytes) ? text : null;
|
|
817
943
|
} catch {
|
|
818
944
|
return null;
|
|
819
945
|
}
|
|
@@ -823,7 +949,7 @@ function lastWrittenContent(profileName, relativePath) {
|
|
|
823
949
|
if (!snapshot?.state) {
|
|
824
950
|
return void 0;
|
|
825
951
|
}
|
|
826
|
-
return flattenLiveRestoreFiles(snapshot.state).find((file) => file.path === relativePath)?.
|
|
952
|
+
return flattenLiveRestoreFiles(snapshot.state, snapshot.id).find((file) => file.path === relativePath)?.bytes;
|
|
827
953
|
}
|
|
828
954
|
async function stashManagedDriftChanges(input) {
|
|
829
955
|
return withProfileApplyLock(async () => {
|
|
@@ -850,7 +976,7 @@ async function stashManagedDriftChanges(input) {
|
|
|
850
976
|
}
|
|
851
977
|
const fullPath = resolve2(homeRoot, file.path);
|
|
852
978
|
mkdirSync(dirname(fullPath), { recursive: true });
|
|
853
|
-
writeFileSync(fullPath, previous
|
|
979
|
+
writeFileSync(fullPath, previous);
|
|
854
980
|
}
|
|
855
981
|
}
|
|
856
982
|
if (input.dryRun) {
|
|
@@ -1015,10 +1141,11 @@ async function maybeSyncActiveProfileBeforeSwitch(input) {
|
|
|
1015
1141
|
if (!status.active_profile || status.active_profile === input.targetProfileName) {
|
|
1016
1142
|
return "continue";
|
|
1017
1143
|
}
|
|
1018
|
-
|
|
1144
|
+
const changes = status.changes.filter((change) => !isHostPluginViewPath(change.path) && change.changed_by !== "claude-code");
|
|
1145
|
+
if (changes.length === 0) {
|
|
1019
1146
|
return "continue";
|
|
1020
1147
|
}
|
|
1021
|
-
const count =
|
|
1148
|
+
const count = changes.length;
|
|
1022
1149
|
const parsedChanges = parseSwitchChanges(input.changes);
|
|
1023
1150
|
if (parsedChanges === "invalid") {
|
|
1024
1151
|
ui.danger("Error: Invalid --changes. Use save, stash or discard.");
|
|
@@ -1051,7 +1178,7 @@ async function maybeSyncActiveProfileBeforeSwitch(input) {
|
|
|
1051
1178
|
case "cancel":
|
|
1052
1179
|
return "abort";
|
|
1053
1180
|
case "save": {
|
|
1054
|
-
for (const change of
|
|
1181
|
+
for (const change of changes) {
|
|
1055
1182
|
try {
|
|
1056
1183
|
await commitManagedPathFromLive({
|
|
1057
1184
|
profileSelector: status.active_profile,
|
|
@@ -1067,7 +1194,7 @@ async function maybeSyncActiveProfileBeforeSwitch(input) {
|
|
|
1067
1194
|
}
|
|
1068
1195
|
case "stash": {
|
|
1069
1196
|
await stashManagedDriftChanges({
|
|
1070
|
-
changes
|
|
1197
|
+
changes
|
|
1071
1198
|
});
|
|
1072
1199
|
ui.success(stashedChangesLine(count, "ht profile stash pop"));
|
|
1073
1200
|
return "continue";
|
|
@@ -1457,6 +1584,7 @@ export {
|
|
|
1457
1584
|
printApplyDryRun,
|
|
1458
1585
|
printApplySuccess,
|
|
1459
1586
|
removalSkipReason,
|
|
1587
|
+
globalProfileStatusGaps,
|
|
1460
1588
|
detectGlobalProfileStatus,
|
|
1461
1589
|
buildProjectProfileChoices,
|
|
1462
1590
|
listProfileStashEntries,
|
|
@@ -1469,4 +1597,4 @@ export {
|
|
|
1469
1597
|
importProjectConfigEnvironments,
|
|
1470
1598
|
executeProjectUse
|
|
1471
1599
|
};
|
|
1472
|
-
//# sourceMappingURL=chunk-
|
|
1600
|
+
//# sourceMappingURL=chunk-D7R577XZ.js.map
|