harnesstap 1.6.0 → 1.6.2
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 +18 -1
- package/dist/apply-REDAJFNT.js +50 -0
- package/dist/{approve-R6AWQB3I.js → approve-2VEAGEYX.js} +9 -9
- package/dist/{audit-2HNKFPSU.js → audit-2KSDWKR7.js} +9 -9
- package/dist/{auth-C54KRLNF.js → auth-VSOK5XXO.js} +7 -7
- package/dist/bin.js +2 -2
- package/dist/{chunk-A3TZT4WT.js → chunk-2AMFXAQB.js} +13 -4
- package/dist/chunk-2AMFXAQB.js.map +1 -0
- package/dist/{chunk-3277RVZT.js → chunk-32JTZAO7.js} +3 -3
- package/dist/{chunk-2XDYQXP2.js → chunk-3TIUWC2Z.js} +10 -10
- package/dist/{chunk-K4UDZUJ2.js → chunk-3YXS6AN5.js} +2 -2
- package/dist/{chunk-D7R577XZ.js → chunk-4MK2BRYB.js} +8 -8
- package/dist/{chunk-MHMFF6A5.js → chunk-4YHTVGRE.js} +2 -2
- package/dist/{chunk-5HACBPK2.js → chunk-66LQ4B65.js} +14 -14
- package/dist/{chunk-EPXAOEBB.js → chunk-6YIVNY56.js} +4 -4
- package/dist/{chunk-PCNHBMBU.js → chunk-AY55OHND.js} +2 -2
- package/dist/{chunk-ZKMSHLXP.js → chunk-B5LCF5J2.js} +2 -2
- package/dist/{chunk-HV3ENT2F.js → chunk-BRISZWFM.js} +2 -2
- package/dist/{chunk-R6VFJKZB.js → chunk-CO6YFR3D.js} +2 -2
- package/dist/{chunk-UZCAYOIQ.js → chunk-CPZM54UB.js} +7 -7
- package/dist/{chunk-OHZNDV4A.js → chunk-EA7EROYV.js} +4 -4
- package/dist/{chunk-OHZNDV4A.js.map → chunk-EA7EROYV.js.map} +1 -1
- package/dist/{chunk-MQCH3YZ5.js → chunk-FAL7MVPU.js} +5 -5
- package/dist/{chunk-42E2MPES.js → chunk-GVNXAIXG.js} +6 -6
- package/dist/{chunk-S2D5PWAO.js → chunk-HL2M67GG.js} +2 -2
- package/dist/{chunk-RQLVXJH2.js → chunk-I6KQT3PW.js} +2 -2
- package/dist/{chunk-MHLAIGIM.js → chunk-J7WZWGDH.js} +2 -2
- package/dist/{chunk-6FXJIKEG.js → chunk-JRHQSSD4.js} +4 -4
- package/dist/{chunk-WQ3F4O7U.js → chunk-LY7NVETO.js} +4 -4
- package/dist/{chunk-WQ3F4O7U.js.map → chunk-LY7NVETO.js.map} +1 -1
- package/dist/{chunk-WGVU3LA5.js → chunk-NAIB6MPR.js} +2 -12
- package/dist/chunk-NAIB6MPR.js.map +1 -0
- package/dist/{chunk-M7PHQ3UC.js → chunk-OQLNXYL5.js} +1630 -785
- package/dist/chunk-OQLNXYL5.js.map +1 -0
- package/dist/{chunk-R27VZIF6.js → chunk-Q4UO2MDZ.js} +2 -2
- package/dist/{chunk-BUA7WFI4.js → chunk-QKXPKKZO.js} +1761 -895
- package/dist/chunk-QKXPKKZO.js.map +1 -0
- package/dist/{chunk-XNS4I3W6.js → chunk-R4TM7KE5.js} +4 -4
- package/dist/{chunk-CBSDMRMY.js → chunk-RP4BBXDP.js} +2 -2
- package/dist/{chunk-GZU4LVFF.js → chunk-RV7Q6ZJZ.js} +6 -6
- package/dist/{chunk-TERYL7JH.js → chunk-S5L5KKUX.js} +20 -20
- package/dist/chunk-S5L5KKUX.js.map +1 -0
- package/dist/{chunk-QGTDQNVV.js → chunk-SBUP7UHE.js} +3 -3
- package/dist/{chunk-M6FEDSHY.js → chunk-THKF6P4Q.js} +6 -6
- package/dist/{chunk-3Q72LZPJ.js → chunk-THOVAUGF.js} +50 -53
- package/dist/chunk-THOVAUGF.js.map +1 -0
- package/dist/{chunk-V4UNYSZO.js → chunk-U3BFGU66.js} +2 -2
- package/dist/{chunk-MQCAPCAF.js → chunk-US54JBMX.js} +6 -6
- package/dist/{chunk-UC27MQ3T.js → chunk-VVU5ZFRV.js} +3 -3
- package/dist/{chunk-T4EKNX2Q.js → chunk-XIQACTMH.js} +3 -3
- package/dist/{chunk-UK2IV2ZQ.js → chunk-Y4RNG5OY.js} +2 -2
- package/dist/{chunk-R4NV3Q7G.js → chunk-YWKLUVCC.js} +2 -2
- package/dist/{chunk-L6BJCRBU.js → chunk-Z24TLVN5.js} +13 -25
- package/dist/chunk-Z24TLVN5.js.map +1 -0
- package/dist/{chunk-OWE3OSX6.js → chunk-ZEXB4ORV.js} +8 -8
- package/dist/{chunk-CR2TYMKC.js → chunk-ZQSL5DNH.js} +34 -34
- package/dist/{compile-B2QG6BAQ.js → compile-EQFNP5PS.js} +32 -32
- package/dist/{config-D3F6ICZ2.js → config-NALKAQZW.js} +11 -11
- package/dist/{cursor-local-install-4HDIBX22.js → cursor-local-install-6DRGQ6U7.js} +6 -6
- package/dist/{cursor-local-install-LL367GZY.js → cursor-local-install-KY3PVFZY.js} +3 -3
- package/dist/{doctor-QSGETVDE.js → doctor-PSFWURF6.js} +9 -9
- package/dist/{environment-2JS4RWQA.js → environment-IH6UHY5Q.js} +16 -16
- package/dist/{github-JXSTHLY2.js → github-42TN2FWA.js} +7 -7
- package/dist/{harness-GBI3AMLH.js → harness-464THUQE.js} +38 -70
- package/dist/harness-464THUQE.js.map +1 -0
- package/dist/{help-VIRMBOPJ.js → help-2WLAAUHJ.js} +2 -2
- package/dist/{help-VIRMBOPJ.js.map → help-2WLAAUHJ.js.map} +1 -1
- package/dist/{help-EC52ERIE.js → help-GITID5T7.js} +8 -8
- package/dist/{host-plugin-view-kept-XKHD6NGU.js → host-plugin-view-kept-USEF3O7L.js} +9 -9
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -9
- package/dist/{init-OK3K6ILG.js → init-ZRBNVSSY.js} +17 -17
- package/dist/live-read-cache-EXERTB5C.js +12 -0
- package/dist/{live-read-cache-ESQQJBNS.js → live-read-cache-V7PNM5C7.js} +3 -3
- package/dist/{lock-AA2F4I3K.js → lock-FOGZUIAX.js} +8 -8
- package/dist/{marketplace-QUYCV23F.js → marketplace-HRBZHD72.js} +7 -7
- package/dist/{mcp-CIHSR4DD.js → mcp-QKKRROXZ.js} +32 -32
- package/dist/{migrate-TQPEZYS5.js → migrate-LTIWDOB4.js} +14 -14
- package/dist/{notifications-TAELTPDW.js → notifications-D7XCAXPE.js} +12 -12
- package/dist/open-DGLJYZVH.js +20 -0
- package/dist/{pack-VUO4UBWL.js → pack-K6XBNLDU.js} +8 -8
- package/dist/plugin-3V7YESUD.js +47 -0
- package/dist/plugin-from-project-QZQCQVMR.js +15 -0
- package/dist/{policy-Z5TL4N3V.js → policy-HSCKBNAV.js} +8 -8
- package/dist/{profile-QFI7SL3S.js → profile-BGYKPWC7.js} +27 -27
- package/dist/{project-3KR3EPYR.js → project-NGMOEYZY.js} +45 -78
- package/dist/project-NGMOEYZY.js.map +1 -0
- package/dist/{resource-45BPRQ7V.js → resource-C2L3SYQP.js} +23 -23
- package/dist/status-refresh-worker.js +2 -2
- package/dist/{version-QUJZGTZ5.js → version-XQS3VKYR.js} +2 -2
- package/package.json +1 -1
- package/dist/apply-FTAIL3X3.js +0 -50
- package/dist/chunk-3Q72LZPJ.js.map +0 -1
- package/dist/chunk-A3TZT4WT.js.map +0 -1
- package/dist/chunk-BUA7WFI4.js.map +0 -1
- package/dist/chunk-L6BJCRBU.js.map +0 -1
- package/dist/chunk-M7PHQ3UC.js.map +0 -1
- package/dist/chunk-TERYL7JH.js.map +0 -1
- package/dist/chunk-WGVU3LA5.js.map +0 -1
- package/dist/harness-GBI3AMLH.js.map +0 -1
- package/dist/live-read-cache-WPUFHVMZ.js +0 -12
- package/dist/open-D3GWGDSQ.js +0 -20
- package/dist/plugin-L3466DHK.js +0 -47
- package/dist/plugin-from-project-U5UGKTJH.js +0 -15
- package/dist/project-3KR3EPYR.js.map +0 -1
- /package/dist/{apply-FTAIL3X3.js.map → apply-REDAJFNT.js.map} +0 -0
- /package/dist/{approve-R6AWQB3I.js.map → approve-2VEAGEYX.js.map} +0 -0
- /package/dist/{audit-2HNKFPSU.js.map → audit-2KSDWKR7.js.map} +0 -0
- /package/dist/{auth-C54KRLNF.js.map → auth-VSOK5XXO.js.map} +0 -0
- /package/dist/{chunk-3277RVZT.js.map → chunk-32JTZAO7.js.map} +0 -0
- /package/dist/{chunk-2XDYQXP2.js.map → chunk-3TIUWC2Z.js.map} +0 -0
- /package/dist/{chunk-K4UDZUJ2.js.map → chunk-3YXS6AN5.js.map} +0 -0
- /package/dist/{chunk-D7R577XZ.js.map → chunk-4MK2BRYB.js.map} +0 -0
- /package/dist/{chunk-MHMFF6A5.js.map → chunk-4YHTVGRE.js.map} +0 -0
- /package/dist/{chunk-5HACBPK2.js.map → chunk-66LQ4B65.js.map} +0 -0
- /package/dist/{chunk-EPXAOEBB.js.map → chunk-6YIVNY56.js.map} +0 -0
- /package/dist/{chunk-PCNHBMBU.js.map → chunk-AY55OHND.js.map} +0 -0
- /package/dist/{chunk-ZKMSHLXP.js.map → chunk-B5LCF5J2.js.map} +0 -0
- /package/dist/{chunk-HV3ENT2F.js.map → chunk-BRISZWFM.js.map} +0 -0
- /package/dist/{chunk-R6VFJKZB.js.map → chunk-CO6YFR3D.js.map} +0 -0
- /package/dist/{chunk-UZCAYOIQ.js.map → chunk-CPZM54UB.js.map} +0 -0
- /package/dist/{chunk-MQCH3YZ5.js.map → chunk-FAL7MVPU.js.map} +0 -0
- /package/dist/{chunk-42E2MPES.js.map → chunk-GVNXAIXG.js.map} +0 -0
- /package/dist/{chunk-S2D5PWAO.js.map → chunk-HL2M67GG.js.map} +0 -0
- /package/dist/{chunk-RQLVXJH2.js.map → chunk-I6KQT3PW.js.map} +0 -0
- /package/dist/{chunk-MHLAIGIM.js.map → chunk-J7WZWGDH.js.map} +0 -0
- /package/dist/{chunk-6FXJIKEG.js.map → chunk-JRHQSSD4.js.map} +0 -0
- /package/dist/{chunk-R27VZIF6.js.map → chunk-Q4UO2MDZ.js.map} +0 -0
- /package/dist/{chunk-XNS4I3W6.js.map → chunk-R4TM7KE5.js.map} +0 -0
- /package/dist/{chunk-CBSDMRMY.js.map → chunk-RP4BBXDP.js.map} +0 -0
- /package/dist/{chunk-GZU4LVFF.js.map → chunk-RV7Q6ZJZ.js.map} +0 -0
- /package/dist/{chunk-QGTDQNVV.js.map → chunk-SBUP7UHE.js.map} +0 -0
- /package/dist/{chunk-M6FEDSHY.js.map → chunk-THKF6P4Q.js.map} +0 -0
- /package/dist/{chunk-V4UNYSZO.js.map → chunk-U3BFGU66.js.map} +0 -0
- /package/dist/{chunk-MQCAPCAF.js.map → chunk-US54JBMX.js.map} +0 -0
- /package/dist/{chunk-UC27MQ3T.js.map → chunk-VVU5ZFRV.js.map} +0 -0
- /package/dist/{chunk-T4EKNX2Q.js.map → chunk-XIQACTMH.js.map} +0 -0
- /package/dist/{chunk-UK2IV2ZQ.js.map → chunk-Y4RNG5OY.js.map} +0 -0
- /package/dist/{chunk-R4NV3Q7G.js.map → chunk-YWKLUVCC.js.map} +0 -0
- /package/dist/{chunk-OWE3OSX6.js.map → chunk-ZEXB4ORV.js.map} +0 -0
- /package/dist/{chunk-CR2TYMKC.js.map → chunk-ZQSL5DNH.js.map} +0 -0
- /package/dist/{compile-B2QG6BAQ.js.map → compile-EQFNP5PS.js.map} +0 -0
- /package/dist/{config-D3F6ICZ2.js.map → config-NALKAQZW.js.map} +0 -0
- /package/dist/{cursor-local-install-4HDIBX22.js.map → cursor-local-install-6DRGQ6U7.js.map} +0 -0
- /package/dist/{cursor-local-install-LL367GZY.js.map → cursor-local-install-KY3PVFZY.js.map} +0 -0
- /package/dist/{doctor-QSGETVDE.js.map → doctor-PSFWURF6.js.map} +0 -0
- /package/dist/{environment-2JS4RWQA.js.map → environment-IH6UHY5Q.js.map} +0 -0
- /package/dist/{github-JXSTHLY2.js.map → github-42TN2FWA.js.map} +0 -0
- /package/dist/{help-EC52ERIE.js.map → help-GITID5T7.js.map} +0 -0
- /package/dist/{host-plugin-view-kept-XKHD6NGU.js.map → host-plugin-view-kept-USEF3O7L.js.map} +0 -0
- /package/dist/{init-OK3K6ILG.js.map → init-ZRBNVSSY.js.map} +0 -0
- /package/dist/{live-read-cache-ESQQJBNS.js.map → live-read-cache-EXERTB5C.js.map} +0 -0
- /package/dist/{live-read-cache-WPUFHVMZ.js.map → live-read-cache-V7PNM5C7.js.map} +0 -0
- /package/dist/{lock-AA2F4I3K.js.map → lock-FOGZUIAX.js.map} +0 -0
- /package/dist/{marketplace-QUYCV23F.js.map → marketplace-HRBZHD72.js.map} +0 -0
- /package/dist/{mcp-CIHSR4DD.js.map → mcp-QKKRROXZ.js.map} +0 -0
- /package/dist/{migrate-TQPEZYS5.js.map → migrate-LTIWDOB4.js.map} +0 -0
- /package/dist/{notifications-TAELTPDW.js.map → notifications-D7XCAXPE.js.map} +0 -0
- /package/dist/{open-D3GWGDSQ.js.map → open-DGLJYZVH.js.map} +0 -0
- /package/dist/{pack-VUO4UBWL.js.map → pack-K6XBNLDU.js.map} +0 -0
- /package/dist/{plugin-L3466DHK.js.map → plugin-3V7YESUD.js.map} +0 -0
- /package/dist/{plugin-from-project-U5UGKTJH.js.map → plugin-from-project-QZQCQVMR.js.map} +0 -0
- /package/dist/{policy-Z5TL4N3V.js.map → policy-HSCKBNAV.js.map} +0 -0
- /package/dist/{profile-QFI7SL3S.js.map → profile-BGYKPWC7.js.map} +0 -0
- /package/dist/{resource-45BPRQ7V.js.map → resource-C2L3SYQP.js.map} +0 -0
- /package/dist/{version-QUJZGTZ5.js.map → version-XQS3VKYR.js.map} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listResourceTrackedDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JRHQSSD4.js";
|
|
4
4
|
import {
|
|
5
5
|
listProjects
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QKXPKKZO.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveHomeRoot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VVU5ZFRV.js";
|
|
10
10
|
import {
|
|
11
11
|
getHarnesstapDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EA7EROYV.js";
|
|
13
13
|
|
|
14
14
|
// src/services/open-path.ts
|
|
15
15
|
import { spawn } from "child_process";
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
openPathInSystemEditor,
|
|
115
115
|
resolveOpenableFilesystemPath
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-FAL7MVPU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTerminalSize
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q4UO2MDZ.js";
|
|
4
4
|
import {
|
|
5
5
|
buildHelpLine,
|
|
6
6
|
clampActiveIndex,
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
renderCatalogSearchViewport,
|
|
23
23
|
skillMetadataFromDir,
|
|
24
24
|
upsertResource
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QKXPKKZO.js";
|
|
26
26
|
import {
|
|
27
27
|
discoverSkillPackage,
|
|
28
28
|
parseFrontmatter,
|
|
29
29
|
refreshGitSource
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VVU5ZFRV.js";
|
|
31
31
|
import {
|
|
32
32
|
formatCanonicalPublishedSelectorWithVersion
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-U3BFGU66.js";
|
|
34
34
|
import {
|
|
35
35
|
theme
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EA7EROYV.js";
|
|
37
37
|
|
|
38
38
|
// src/services/repo-profile.ts
|
|
39
39
|
import { existsSync } from "fs";
|
|
@@ -671,4 +671,4 @@ export {
|
|
|
671
671
|
resolveSkillPackageCheckout,
|
|
672
672
|
resolveSelectedSkills
|
|
673
673
|
};
|
|
674
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-GVNXAIXG.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-3FIWOI3H.js";
|
|
9
9
|
import {
|
|
10
10
|
PromptBackError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VVU5ZFRV.js";
|
|
12
12
|
|
|
13
13
|
// src/services/wizards/prompts/create-local-multi-select-prompt.ts
|
|
14
14
|
import {
|
|
@@ -155,4 +155,4 @@ async function promptForSearchableMultiSelect(config, context) {
|
|
|
155
155
|
export {
|
|
156
156
|
promptForSearchableMultiSelect
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-HL2M67GG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
semverSafePluginVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QKXPKKZO.js";
|
|
4
4
|
|
|
5
5
|
// src/db/schema.ts
|
|
6
6
|
var SCHEMA_VERSION = 44;
|
|
@@ -816,4 +816,4 @@ function getSchemaVersion(db) {
|
|
|
816
816
|
export {
|
|
817
817
|
initializeSchema
|
|
818
818
|
};
|
|
819
|
-
//# sourceMappingURL=chunk-
|
|
819
|
+
//# sourceMappingURL=chunk-I6KQT3PW.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
listPluginDependencies,
|
|
4
4
|
parsePluginSelectorString,
|
|
5
5
|
satisfiesConstraint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QKXPKKZO.js";
|
|
7
7
|
|
|
8
8
|
// src/services/plugin-resolver.ts
|
|
9
9
|
function resolvePluginGraph(rootSelectors) {
|
|
@@ -115,4 +115,4 @@ export {
|
|
|
115
115
|
resolvePluginGraph,
|
|
116
116
|
validatePluginDependencyGraph
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-J7WZWGDH.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
listResources,
|
|
6
6
|
scanAndPersist,
|
|
7
7
|
scanAndPersistHomeDefaults
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QKXPKKZO.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveHomeRoot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VVU5ZFRV.js";
|
|
12
12
|
import {
|
|
13
13
|
getHarnesstapDir
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EA7EROYV.js";
|
|
15
15
|
|
|
16
16
|
// src/services/resource-tracked-directories.ts
|
|
17
17
|
import {
|
|
@@ -308,4 +308,4 @@ export {
|
|
|
308
308
|
removeResourceTrackedDirectory,
|
|
309
309
|
rescanResourceTrackedDirectories
|
|
310
310
|
};
|
|
311
|
-
//# sourceMappingURL=chunk-
|
|
311
|
+
//# sourceMappingURL=chunk-JRHQSSD4.js.map
|
|
@@ -6,7 +6,7 @@ import { execFileSync } from "child_process";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "harnesstap",
|
|
9
|
-
version: "1.6.
|
|
9
|
+
version: "1.6.2",
|
|
10
10
|
description: "Agent harness configuration toolkit for Claude Code, Codex, Cursor, and other coding CLIs",
|
|
11
11
|
type: "module",
|
|
12
12
|
packageManager: "bun@1.3.9",
|
|
@@ -175,8 +175,8 @@ function resolveBuildVersion(env = process.env) {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
function resolvePackageVersion() {
|
|
178
|
-
if ("1.6.
|
|
179
|
-
return "1.6.
|
|
178
|
+
if ("1.6.2".length > 0) {
|
|
179
|
+
return "1.6.2";
|
|
180
180
|
}
|
|
181
181
|
return resolveBuildVersion();
|
|
182
182
|
}
|
|
@@ -189,4 +189,4 @@ export {
|
|
|
189
189
|
resolveBuildVersion,
|
|
190
190
|
PACKAGE_VERSION
|
|
191
191
|
};
|
|
192
|
-
//# sourceMappingURL=chunk-
|
|
192
|
+
//# sourceMappingURL=chunk-LY7NVETO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts","../package.json"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport packageJson from \"../package.json\" with { type: \"json\" };\n\ndeclare const __HT_VERSION__: string | undefined;\n\nconst GIT_SHA = /^[0-9a-f]{7,40}$/i;\n\nexport interface DevBuildVersionOptions {\n isRelease?: boolean;\n gitSha?: string | null;\n}\n\nfunction compactGitSha(sha: string | null | undefined): string | undefined {\n const trimmed = sha?.trim().toLowerCase();\n if (!trimmed || !GIT_SHA.test(trimmed)) {\n return undefined;\n }\n return trimmed.slice(0, 7);\n}\n\n/** True when a release workflow baked a publishable version (no `-dev+sha`). */\nexport function isReleaseBuild(env: NodeJS.ProcessEnv = process.env): boolean {\n return env.HT_RELEASE === \"1\" || env.HARNESSTAP_RELEASE === \"1\";\n}\n\n/** Best-effort git SHA for the `-dev+sha` suffix. */\nexport function readGitSha(\n env: NodeJS.ProcessEnv = process.env,\n cwd: string = process.cwd(),\n): string | undefined {\n const fromEnv = compactGitSha(env.HT_GIT_SHA ?? env.GITHUB_SHA);\n if (fromEnv) {\n return fromEnv;\n }\n try {\n const sha = execFileSync(\"git\", [\"rev-parse\", \"HEAD\"], {\n cwd,\n encoding: \"utf8\",\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n }).trim();\n return compactGitSha(sha);\n } catch {\n return undefined;\n }\n}\n\n/**\n * Append `-dev+<sha>` on non-release builds so CLI and Desktop can tell a\n * local/CI binary from a published version. Release builds return `version`\n * unchanged. Desktop should call this helper when reporting a newer-schema DB.\n */\nexport function formatDevBuildVersion(\n version: string,\n options: DevBuildVersionOptions = {},\n): string {\n const trimmed = version.trim();\n if (options.isRelease) {\n return trimmed;\n }\n if (trimmed.includes(\"-dev+\")) {\n return trimmed;\n }\n const sha = compactGitSha(options.gitSha);\n if (!sha) {\n return `${trimmed}-dev`;\n }\n return `${trimmed}-dev+${sha}`;\n}\n\n/** Version baked into tsup and the compiled sidecar (`__HT_VERSION__`). */\nexport function resolveBuildVersion(env: NodeJS.ProcessEnv = process.env): string {\n return formatDevBuildVersion(packageJson.version, {\n isRelease: isReleaseBuild(env),\n gitSha: readGitSha(env),\n });\n}\n\nfunction resolvePackageVersion(): string {\n // tsup and the sidecar build define __HT_VERSION__; the JSON import is the\n // source/test fallback and is inlined by every bundler, never read at runtime.\n if (typeof __HT_VERSION__ === \"string\" && __HT_VERSION__.length > 0) {\n return __HT_VERSION__;\n }\n return resolveBuildVersion();\n}\n\nexport const PACKAGE_VERSION: string = resolvePackageVersion();\n","{\n \"name\": \"harnesstap\",\n \"version\": \"1.6.0\",\n \"description\": \"Agent harness configuration toolkit for Claude Code, Codex, Cursor, and other coding CLIs\",\n \"type\": \"module\",\n \"packageManager\": \"bun@1.3.9\",\n \"files\": [\n \"dist\",\n \"LICENSE\",\n \"README.md\",\n \"schemas\"\n ],\n \"bin\": {\n \"harnesstap\": \"./dist/bin.js\",\n \"ht\": \"./dist/bin.js\"\n },\n \"scripts\": {\n \"build\": \"bun scripts/generate-scenarios.ts && rm -rf dist && tsup\",\n \"generate:scenarios\": \"bun scripts/generate-scenarios.ts\",\n \"check:packaged-help\": \"bun scripts/check-packaged-help.ts\",\n \"snapshot:released-cli\": \"bun scripts/snapshot-released-cli.ts\",\n \"build:sidecar\": \"bash scripts/build-sidecar.sh\",\n \"check:compiled-sidecar\": \"bun scripts/check-compiled-sidecar.ts\",\n \"desktop:cleanup\": \"bash apps/desktop/scripts/cleanup-stale-dev.sh\",\n \"desktop:prepare-sidecar\": \"bash apps/desktop/scripts/prepare-sidecar.sh\",\n \"desktop:watch-sidecar\": \"bun apps/desktop/scripts/watch-sidecar.ts\",\n \"desktop:icons\": \"cd apps/desktop && bun run icons\",\n \"desktop:dev\": \"bash apps/desktop/scripts/desktop-dev.sh\",\n \"desktop:build\": \"bun run desktop:prepare-sidecar && cd apps/desktop && bun install && bun run tauri build && bash scripts/reseal-macos-app.sh\",\n \"desktop:install\": \"bun apps/desktop/scripts/install-local.ts\",\n \"desktop:e2e:build\": \"bash apps/desktop/scripts/e2e-build.sh\",\n \"desktop:e2e\": \"bash apps/desktop/scripts/e2e-run.sh\",\n \"desktop:demo-agent\": \"bash apps/desktop/scripts/demo-home.sh\",\n \"desktop:shots\": \"cd apps/desktop && bun run shots\",\n \"desktop:check\": \"bash apps/desktop/scripts/desktop-check.sh\",\n \"dev\": \"tsup --watch\",\n \"start\": \"bun src/bin.ts\",\n \"start:dist\": \"node dist/bin.js\",\n \"link\": \"bun run build && bun link\",\n \"unlink\": \"bun unlink\",\n \"test\": \"bun test --timeout 30000\",\n \"test:run\": \"bun test --dots --timeout 30000\",\n \"test:core\": \"bun test --dots --timeout 30000 test/models test/db test/config test/utils test/telemetry test/scripts\",\n \"test:platforms\": \"bun test --dots --timeout 30000 test/platforms\",\n \"test:plugins\": \"bun test --dots --timeout 30000 test/plugins\",\n \"test:services\": \"bun test --dots --timeout 30000 test/services test/integration\",\n \"test:cli\": \"bun test --dots --timeout 30000 test/cli test/ui test/helpers\",\n \"test:agent\": \"bun test --dots --timeout 30000 test/agent\",\n \"test:desktop\": \"bun test --dots --timeout 30000 test/desktop\",\n \"test:docs\": \"bun test --dots --timeout 30000 test/docs\",\n \"lint\": \"biome lint .\",\n \"lint:fix\": \"biome lint --write --unsafe .\",\n \"lint:css\": \"bun scripts/check-css-tokens.ts\",\n \"check:cli-error-contract\": \"bun scripts/check-cli-error-contract.ts\",\n \"check:copy\": \"bun scripts/check-copy.ts\",\n \"check:agent-plugins-spec\": \"bun test --timeout 30000 test/services/agent-plugins/spec-schema-guard.test.ts test/services/agent-plugins/spec-mcp.test.ts test/services/agent-plugins/spec-load.test.ts\",\n \"typecheck\": \"tsc --noEmit\",\n \"clean\": \"rm -rf dist && find . -maxdepth 1 -name '*.bun-build' -delete\",\n \"preflight\": \"bun run lint && bun run lint:css && bun run check:cli-error-contract && bun run check:copy && bun run typecheck && bun run test:run && bun run build\",\n \"prepublishOnly\": \"HT_RELEASE=1 bun run build\",\n \"check:release-version\": \"bash scripts/check-release-version.sh\",\n \"docs:vhs\": \"bash scripts/generate-vhs-scenarios.sh\",\n \"check:scenario-docs\": \"bash scripts/check-scenario-docs.sh\",\n \"check:scenario-smoke\": \"bun test --timeout 30000 test/cli/scenario-smoke.test.ts\",\n \"check:sqlite-wal-smoke\": \"bun scripts/sqlite-wal-write-smoke.ts\",\n \"sync:cloud-docs\": \"bash scripts/sync-cloud-cli-docs.sh\"\n },\n \"keywords\": [\n \"ai\",\n \"coding-assistant\",\n \"cli\",\n \"configuration\",\n \"claude-code\",\n \"cursor\",\n \"codex\",\n \"skills\",\n \"layers\"\n ],\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/harnesstap/harnesstap.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/harnesstap/harnesstap/issues\"\n },\n \"homepage\": \"https://github.com/harnesstap/harnesstap#readme\",\n \"engines\": {\n \"node\": \">=22.12.0\"\n },\n \"dependencies\": {\n \"@inquirer/core\": \"^10.3.2\",\n \"@inquirer/search\": \"^3.2.2\",\n \"chalk\": \"^5.4.1\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^13.1.0\",\n \"gray-matter\": \"^4.0.3\",\n \"inquirer\": \"^12.3.0\",\n \"jsonc-parser\": \"^3.3.1\",\n \"ora\": \"^9.4.0\",\n \"picomatch\": \"^4.0.2\",\n \"semver\": \"^7.8.0\",\n \"smol-toml\": \"^1.3.1\",\n \"ulid\": \"^2.3.0\",\n \"yaml\": \"^2.7.0\"\n },\n \"optionalDependencies\": {\n \"better-sqlite3\": \"^12.11.1\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.4.10\",\n \"@inquirer/testing\": \"^3.3.8\",\n \"@types/better-sqlite3\": \"^7.6.12\",\n \"@types/node\": \"^22.10.0\",\n \"@types/semver\": \"^7.7.1\",\n \"ajv\": \"^8.20.0\",\n \"happy-dom\": \"17.4.4\",\n \"tsup\": \"^8.3.5\",\n \"typescript\": \"^5.7.0\"\n }\n}\n"],"mappings":";;;AAAA,SAAS,oBAAoB;;;ACA7B;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,gBAAkB;AAAA,EAClB,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,KAAO;AAAA,IACL,YAAc;AAAA,IACd,IAAM;AAAA,EACR;AAAA,EACA,SAAW;AAAA,IACT,OAAS;AAAA,IACT,sBAAsB;AAAA,IACtB,uBAAuB;AAAA,IACvB,yBAAyB;AAAA,IACzB,iBAAiB;AAAA,IACjB,0BAA0B;AAAA,IAC1B,mBAAmB;AAAA,IACnB,2BAA2B;AAAA,IAC3B,yBAAyB;AAAA,IACzB,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,eAAe;AAAA,IACf,sBAAsB;AAAA,IACtB,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,KAAO;AAAA,IACP,OAAS;AAAA,IACT,cAAc;AAAA,IACd,MAAQ;AAAA,IACR,QAAU;AAAA,IACV,MAAQ;AAAA,IACR,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,MAAQ;AAAA,IACR,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,4BAA4B;AAAA,IAC5B,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,WAAa;AAAA,IACb,OAAS;AAAA,IACT,WAAa;AAAA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yB,QAAQ,KAAc;AAC5E,SAAO,IAAI,eAAe,OAAO,IAAI,uBAAuB;AAC9D;AAGO,SAAS,WACd,MAAyB,QAAQ,KACjC,MAAc,QAAQ,IAAI,GACN;AACpB,QAAM,UAAU,cAAc,IAAI,cAAc,IAAI,UAAU;AAC9D,MAAI,SAAS;AACX,WAAO;AAAA,EACT;AACA,MAAI;AACF,UAAM,MAAM,aAAa,OAAO,CAAC,aAAa,MAAM,GAAG;AAAA,MACrD;AAAA,MACA,UAAU;AAAA,MACV,OAAO,CAAC,UAAU,QAAQ,QAAQ;AAAA,IACpC,CAAC,EAAE,KAAK;AACR,WAAO,cAAc,GAAG;AAAA,EAC1B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAOO,SAAS,sBACd,SACA,UAAkC,CAAC,GAC3B;AACR,QAAM,UAAU,QAAQ,KAAK;AAC7B,MAAI,QAAQ,WAAW;AACrB,WAAO;AAAA,EACT;AACA,MAAI,QAAQ,SAAS,OAAO,GAAG;AAC7B,WAAO;AAAA,EACT;AACA,QAAM,MAAM,cAAc,QAAQ,MAAM;AACxC,MAAI,CAAC,KAAK;AACR,WAAO,GAAG,OAAO;AAAA,EACnB;AACA,SAAO,GAAG,OAAO,QAAQ,GAAG;AAC9B;AAGO,SAAS,oBAAoB,MAAyB,QAAQ,KAAa;AAChF,SAAO,sBAAsB,gBAAY,SAAS;AAAA,IAChD,WAAW,eAAe,GAAG;AAAA,IAC7B,QAAQ,WAAW,GAAG;AAAA,EACxB,CAAC;AACH;AAEA,SAAS,wBAAgC;AAGvC,MAA0C,QAAe,SAAS,GAAG;AACnE,WAAO;AAAA,EACT;AACA,SAAO,oBAAoB;AAC7B;AAEO,IAAM,kBAA0B,sBAAsB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/version.ts","../package.json"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport packageJson from \"../package.json\" with { type: \"json\" };\n\ndeclare const __HT_VERSION__: string | undefined;\n\nconst GIT_SHA = /^[0-9a-f]{7,40}$/i;\n\nexport interface DevBuildVersionOptions {\n isRelease?: boolean;\n gitSha?: string | null;\n}\n\nfunction compactGitSha(sha: string | null | undefined): string | undefined {\n const trimmed = sha?.trim().toLowerCase();\n if (!trimmed || !GIT_SHA.test(trimmed)) {\n return undefined;\n }\n return trimmed.slice(0, 7);\n}\n\n/** True when a release workflow baked a publishable version (no `-dev+sha`). */\nexport function isReleaseBuild(env: NodeJS.ProcessEnv = process.env): boolean {\n return env.HT_RELEASE === \"1\" || env.HARNESSTAP_RELEASE === \"1\";\n}\n\n/** Best-effort git SHA for the `-dev+sha` suffix. */\nexport function readGitSha(\n env: NodeJS.ProcessEnv = process.env,\n cwd: string = process.cwd(),\n): string | undefined {\n const fromEnv = compactGitSha(env.HT_GIT_SHA ?? env.GITHUB_SHA);\n if (fromEnv) {\n return fromEnv;\n }\n try {\n const sha = execFileSync(\"git\", [\"rev-parse\", \"HEAD\"], {\n cwd,\n encoding: \"utf8\",\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n }).trim();\n return compactGitSha(sha);\n } catch {\n return undefined;\n }\n}\n\n/**\n * Append `-dev+<sha>` on non-release builds so CLI and Desktop can tell a\n * local/CI binary from a published version. Release builds return `version`\n * unchanged. Desktop should call this helper when reporting a newer-schema DB.\n */\nexport function formatDevBuildVersion(\n version: string,\n options: DevBuildVersionOptions = {},\n): string {\n const trimmed = version.trim();\n if (options.isRelease) {\n return trimmed;\n }\n if (trimmed.includes(\"-dev+\")) {\n return trimmed;\n }\n const sha = compactGitSha(options.gitSha);\n if (!sha) {\n return `${trimmed}-dev`;\n }\n return `${trimmed}-dev+${sha}`;\n}\n\n/** Version baked into tsup and the compiled sidecar (`__HT_VERSION__`). */\nexport function resolveBuildVersion(env: NodeJS.ProcessEnv = process.env): string {\n return formatDevBuildVersion(packageJson.version, {\n isRelease: isReleaseBuild(env),\n gitSha: readGitSha(env),\n });\n}\n\nfunction resolvePackageVersion(): string {\n // tsup and the sidecar build define __HT_VERSION__; the JSON import is the\n // source/test fallback and is inlined by every bundler, never read at runtime.\n if (typeof __HT_VERSION__ === \"string\" && __HT_VERSION__.length > 0) {\n return __HT_VERSION__;\n }\n return resolveBuildVersion();\n}\n\nexport const PACKAGE_VERSION: string = resolvePackageVersion();\n","{\n \"name\": \"harnesstap\",\n \"version\": \"1.6.2\",\n \"description\": \"Agent harness configuration toolkit for Claude Code, Codex, Cursor, and other coding CLIs\",\n \"type\": \"module\",\n \"packageManager\": \"bun@1.3.9\",\n \"files\": [\n \"dist\",\n \"LICENSE\",\n \"README.md\",\n \"schemas\"\n ],\n \"bin\": {\n \"harnesstap\": \"./dist/bin.js\",\n \"ht\": \"./dist/bin.js\"\n },\n \"scripts\": {\n \"build\": \"bun scripts/generate-scenarios.ts && rm -rf dist && tsup\",\n \"generate:scenarios\": \"bun scripts/generate-scenarios.ts\",\n \"check:packaged-help\": \"bun scripts/check-packaged-help.ts\",\n \"snapshot:released-cli\": \"bun scripts/snapshot-released-cli.ts\",\n \"build:sidecar\": \"bash scripts/build-sidecar.sh\",\n \"check:compiled-sidecar\": \"bun scripts/check-compiled-sidecar.ts\",\n \"desktop:cleanup\": \"bash apps/desktop/scripts/cleanup-stale-dev.sh\",\n \"desktop:prepare-sidecar\": \"bash apps/desktop/scripts/prepare-sidecar.sh\",\n \"desktop:watch-sidecar\": \"bun apps/desktop/scripts/watch-sidecar.ts\",\n \"desktop:icons\": \"cd apps/desktop && bun run icons\",\n \"desktop:dev\": \"bash apps/desktop/scripts/desktop-dev.sh\",\n \"desktop:build\": \"bun run desktop:prepare-sidecar && cd apps/desktop && bun install && bun run tauri build && bash scripts/reseal-macos-app.sh\",\n \"desktop:install\": \"bun apps/desktop/scripts/install-local.ts\",\n \"desktop:e2e:build\": \"bash apps/desktop/scripts/e2e-build.sh\",\n \"desktop:e2e\": \"bash apps/desktop/scripts/e2e-run.sh\",\n \"desktop:demo-agent\": \"bash apps/desktop/scripts/demo-home.sh\",\n \"desktop:shots\": \"cd apps/desktop && bun run shots\",\n \"desktop:check\": \"bash apps/desktop/scripts/desktop-check.sh\",\n \"dev\": \"tsup --watch\",\n \"start\": \"bun src/bin.ts\",\n \"start:dist\": \"node dist/bin.js\",\n \"link\": \"bun run build && bun link\",\n \"unlink\": \"bun unlink\",\n \"test\": \"bun test --timeout 30000\",\n \"test:run\": \"bun test --dots --timeout 30000\",\n \"test:core\": \"bun test --dots --timeout 30000 test/models test/db test/config test/utils test/telemetry test/scripts\",\n \"test:platforms\": \"bun test --dots --timeout 30000 test/platforms\",\n \"test:plugins\": \"bun test --dots --timeout 30000 test/plugins\",\n \"test:services\": \"bun test --dots --timeout 30000 test/services test/integration\",\n \"test:cli\": \"bun test --dots --timeout 30000 test/cli test/ui test/helpers\",\n \"test:agent\": \"bun test --dots --timeout 30000 test/agent\",\n \"test:desktop\": \"bun test --dots --timeout 30000 test/desktop\",\n \"test:docs\": \"bun test --dots --timeout 30000 test/docs\",\n \"lint\": \"biome lint .\",\n \"lint:fix\": \"biome lint --write --unsafe .\",\n \"lint:css\": \"bun scripts/check-css-tokens.ts\",\n \"check:cli-error-contract\": \"bun scripts/check-cli-error-contract.ts\",\n \"check:copy\": \"bun scripts/check-copy.ts\",\n \"check:agent-plugins-spec\": \"bun test --timeout 30000 test/services/agent-plugins/spec-schema-guard.test.ts test/services/agent-plugins/spec-mcp.test.ts test/services/agent-plugins/spec-load.test.ts\",\n \"typecheck\": \"tsc --noEmit\",\n \"clean\": \"rm -rf dist && find . -maxdepth 1 -name '*.bun-build' -delete\",\n \"preflight\": \"bun run lint && bun run lint:css && bun run check:cli-error-contract && bun run check:copy && bun run typecheck && bun run test:run && bun run build\",\n \"prepublishOnly\": \"HT_RELEASE=1 bun run build\",\n \"check:release-version\": \"bash scripts/check-release-version.sh\",\n \"docs:vhs\": \"bash scripts/generate-vhs-scenarios.sh\",\n \"check:scenario-docs\": \"bash scripts/check-scenario-docs.sh\",\n \"check:scenario-smoke\": \"bun test --timeout 30000 test/cli/scenario-smoke.test.ts\",\n \"check:sqlite-wal-smoke\": \"bun scripts/sqlite-wal-write-smoke.ts\",\n \"sync:cloud-docs\": \"bash scripts/sync-cloud-cli-docs.sh\"\n },\n \"keywords\": [\n \"ai\",\n \"coding-assistant\",\n \"cli\",\n \"configuration\",\n \"claude-code\",\n \"cursor\",\n \"codex\",\n \"skills\",\n \"layers\"\n ],\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/harnesstap/harnesstap.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/harnesstap/harnesstap/issues\"\n },\n \"homepage\": \"https://github.com/harnesstap/harnesstap#readme\",\n \"engines\": {\n \"node\": \">=22.12.0\"\n },\n \"dependencies\": {\n \"@inquirer/core\": \"^10.3.2\",\n \"@inquirer/search\": \"^3.2.2\",\n \"chalk\": \"^5.4.1\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^13.1.0\",\n \"gray-matter\": \"^4.0.3\",\n \"inquirer\": \"^12.3.0\",\n \"jsonc-parser\": \"^3.3.1\",\n \"ora\": \"^9.4.0\",\n \"picomatch\": \"^4.0.2\",\n \"semver\": \"^7.8.0\",\n \"smol-toml\": \"^1.3.1\",\n \"ulid\": \"^2.3.0\",\n \"yaml\": \"^2.7.0\"\n },\n \"optionalDependencies\": {\n \"better-sqlite3\": \"^12.11.1\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.4.10\",\n \"@inquirer/testing\": \"^3.3.8\",\n \"@types/better-sqlite3\": \"^7.6.12\",\n \"@types/node\": \"^22.10.0\",\n \"@types/semver\": \"^7.7.1\",\n \"ajv\": \"^8.20.0\",\n \"happy-dom\": \"17.4.4\",\n \"tsup\": \"^8.3.5\",\n \"typescript\": \"^5.7.0\"\n }\n}\n"],"mappings":";;;AAAA,SAAS,oBAAoB;;;ACA7B;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,gB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AM,GAAG;AAAA,MACrD;AAAA,MACA,UAAU;AAAA,MACV,OAAO,CAAC,UAAU,QAAQ,QAAQ;AAAA,IACpC,CAAC,EAAE,KAAK;AACR,WAAO,cAAc,GAAG;AAAA,EAC1B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAOO,SAAS,sBACd,SACA,UAAkC,CAAC,GAC3B;AACR,QAAM,UAAU,QAAQ,KAAK;AAC7B,MAAI,QAAQ,WAAW;AACrB,WAAO;AAAA,EACT;AACA,MAAI,QAAQ,SAAS,OAAO,GAAG;AAC7B,WAAO;AAAA,EACT;AACA,QAAM,MAAM,cAAc,QAAQ,MAAM;AACxC,MAAI,CAAC,KAAK;AACR,WAAO,GAAG,OAAO;AAAA,EACnB;AACA,SAAO,GAAG,OAAO,QAAQ,GAAG;AAC9B;AAGO,SAAS,oBAAoB,MAAyB,QAAQ,KAAa;AAChF,SAAO,sBAAsB,gBAAY,SAAS;AAAA,IAChD,WAAW,eAAe,GAAG;AAAA,IAC7B,QAAQ,WAAW,GAAG;AAAA,EACxB,CAAC;AACH;AAEA,SAAS,wBAAgC;AAGvC,MAA0C,QAAe,SAAS,GAAG;AACnE,WAAO;AAAA,EACT;AACA,SAAO,oBAAoB;AAC7B;AAEO,IAAM,kBAA0B,sBAAsB;","names":[]}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureErrorPrefix,
|
|
6
6
|
gitFailureHint,
|
|
7
7
|
mapGitStderr
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EA7EROYV.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/on-conflict.ts
|
|
11
11
|
var ON_CONFLICT_HELP = "What to do when it already exists: replace, skip, prompt or cancel. overwrite, ignore and fail are aliases";
|
|
@@ -180,10 +180,6 @@ function mapUserFacingError(error) {
|
|
|
180
180
|
|
|
181
181
|
// src/cli/shared.ts
|
|
182
182
|
var GUIDE_SCENARIOS_URL = "https://github.com/harnesstap/harnesstap/blob/main/docs/scenarios/scenarios.md";
|
|
183
|
-
var GIT_ORIGIN_HINTS = [
|
|
184
|
-
"Add a remote: git remote add origin <url>",
|
|
185
|
-
"Snapshots, drift, history, and revert require a git repository with origin configured."
|
|
186
|
-
];
|
|
187
183
|
function resolveInvocationName() {
|
|
188
184
|
return basename(process.argv[1] ?? "") === "ht" ? "ht" : "harnesstap";
|
|
189
185
|
}
|
|
@@ -254,11 +250,6 @@ function formatScenarioCommand(path) {
|
|
|
254
250
|
function collectRepeatedOption(value, previous) {
|
|
255
251
|
return [...previous, value];
|
|
256
252
|
}
|
|
257
|
-
function reportNoGitOrigin(_retryCommand) {
|
|
258
|
-
fail("No git remote origin configured.", {
|
|
259
|
-
hint: GIT_ORIGIN_HINTS[0]
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
253
|
function isVerboseMode(argv = process.argv) {
|
|
263
254
|
return argv.includes("-v") || argv.includes("--verbose");
|
|
264
255
|
}
|
|
@@ -287,8 +278,7 @@ export {
|
|
|
287
278
|
failCaught,
|
|
288
279
|
formatScenarioCommand,
|
|
289
280
|
collectRepeatedOption,
|
|
290
|
-
reportNoGitOrigin,
|
|
291
281
|
isVerboseMode,
|
|
292
282
|
isGroupedCommandFallbackError
|
|
293
283
|
};
|
|
294
|
-
//# sourceMappingURL=chunk-
|
|
284
|
+
//# sourceMappingURL=chunk-NAIB6MPR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/on-conflict.ts","../src/cli/shared.ts","../src/cli/user-errors.ts"],"sourcesContent":["/** Shared --on-conflict vocabulary (DS-6). Hidden aliases for one release: overwrite, ignore, fail. */\n\nexport const ON_CONFLICT_VALUES = [\"replace\", \"skip\", \"prompt\", \"cancel\"] as const;\nexport type OnConflictValue = (typeof ON_CONFLICT_VALUES)[number];\n\nexport const ON_CONFLICT_HELP =\n \"What to do when it already exists: replace, skip, prompt or cancel. overwrite, ignore and fail are aliases\";\n\nexport const ON_CONFLICT_PLUGIN_IMPORT_HELP =\n \"What to do when it already exists: replace, skip, prompt, cancel or merge. overwrite, ignore and fail are aliases\";\n\n/** Apply, profile, and project: non-interactive default is cancel. Pass --on-conflict replace in CI. */\nexport const ON_CONFLICT_APPLY_HELP =\n \"What to do when it already exists: replace, skip, prompt or cancel. overwrite, ignore and fail are aliases. Non-interactive default: cancel\";\n\nexport const ON_CONFLICT_VALUE_HELP = {\n replace: \"Replace the existing one\",\n skip: \"Keep the existing one and move on\",\n prompt: \"Ask each time\",\n cancel: \"Stop without changing anything\",\n merge: \"Merge with the existing plugin (plugin import only)\",\n} as const;\n\nfunction mapAlias(value: string): string {\n switch (value) {\n case \"overwrite\":\n return \"replace\";\n case \"ignore\":\n return \"skip\";\n case \"fail\":\n return \"cancel\";\n default:\n return value;\n }\n}\n\nexport function parseOnConflict(\n value: string | undefined,\n opts?: { allowMerge?: boolean },\n): OnConflictValue | \"merge\" | undefined {\n if (!value) {\n return undefined;\n }\n const mapped = mapAlias(value);\n switch (mapped) {\n case \"replace\":\n case \"skip\":\n case \"prompt\":\n case \"cancel\":\n return mapped;\n case \"merge\":\n if (opts?.allowMerge) {\n return \"merge\";\n }\n throw new Error(`Invalid --on-conflict value: ${value}. Use replace, skip, prompt or cancel.`);\n default:\n throw new Error(\n opts?.allowMerge\n ? `Invalid --on-conflict value: ${value}. Use replace, skip, prompt, cancel or merge.`\n : `Invalid --on-conflict value: ${value}. Use replace, skip, prompt or cancel.`,\n );\n }\n}\n\nexport function toResourceSyncOnConflict(\n value: OnConflictValue | \"merge\" | undefined,\n): \"overwrite\" | \"ignore\" | \"fail\" | undefined {\n if (!value || value === \"merge\" || value === \"prompt\") {\n return undefined;\n }\n switch (value) {\n case \"replace\":\n return \"overwrite\";\n case \"skip\":\n return \"ignore\";\n case \"cancel\":\n return \"fail\";\n default: {\n const _exhaustive: never = value;\n return _exhaustive;\n }\n }\n}\n\nexport function toPluginImportOnConflict(\n value: OnConflictValue | \"merge\" | undefined,\n): \"overwrite\" | \"cancel\" | \"merge\" | undefined {\n if (!value) {\n return undefined;\n }\n switch (value) {\n case \"replace\":\n return \"overwrite\";\n case \"cancel\":\n case \"skip\":\n return \"cancel\";\n case \"merge\":\n return \"merge\";\n case \"prompt\":\n return \"cancel\";\n default: {\n const _exhaustive: never = value;\n return _exhaustive;\n }\n }\n}\n","import { basename } from \"node:path\";\nimport { CliUsageError } from \"../services/cli-errors.js\";\nimport { ensureErrorPrefix } from \"./messages.js\";\nimport { isCommanderError, mapUserFacingError } from \"./user-errors.js\";\n\nexport const GUIDE_SCENARIOS_URL =\n \"https://github.com/harnesstap/harnesstap/blob/main/docs/scenarios/scenarios.md\";\n\nexport function resolveInvocationName(): \"harnesstap\" | \"ht\" {\n return basename(process.argv[1] ?? \"\") === \"ht\" ? \"ht\" : \"harnesstap\";\n}\n\nexport function shellQuote(value: string): string {\n if (value.length === 0) {\n return '\"\"';\n }\n if (/^[A-Za-z0-9_./:@+=,-]+$/.test(value)) {\n return value;\n }\n return `\"${value.replaceAll(\"\\\\\", \"\\\\\\\\\").replaceAll(\"\\\"\", \"\\\\\\\"\")}\"`;\n}\n\n/** DS-6: hints always say `ht` and shell-quote each argument (W2-1, W3-3). */\nexport function formatCommand(pathOrArgs: string | readonly string[]): string {\n if (typeof pathOrArgs === \"string\") {\n const trimmed = pathOrArgs.trim();\n const stripped = trimmed.replace(/^(?:harnesstap|ht)\\s+/, \"\");\n return stripped.length > 0 ? `ht ${stripped}` : \"ht\";\n }\n return [\"ht\", ...pathOrArgs.map(shellQuote)].join(\" \");\n}\n\nexport function formatHintCommand(args: readonly string[]): string {\n return formatCommand(args);\n}\n\nexport function fail(\n message: string,\n opts?: { hint?: string; hints?: string[]; exitCode?: number },\n): void {\n process.exitCode = opts?.exitCode ?? 1;\n const error = ensureErrorPrefix(message);\n console.error(error);\n const hints = opts?.hints ?? (opts?.hint ? [opts.hint] : []);\n // A hint that only repeats the error (for example a mapped git failure) is skipped.\n const printed = new Set([error]);\n for (const hint of hints) {\n if (hint.trim().length === 0) continue;\n const key = ensureErrorPrefix(hint);\n if (printed.has(key)) continue;\n printed.add(key);\n console.error(hint);\n }\n}\n\nfunction hintsFromError(error: unknown): string[] {\n if (!error || typeof error !== \"object\" || !(\"hints\" in error)) return [];\n const raw = (error as { hints?: unknown }).hints;\n if (!Array.isArray(raw)) return [];\n return raw.filter(\n (hint): hint is string => typeof hint === \"string\" && hint.trim().length > 0,\n );\n}\n\nexport function failCaught(error: unknown, opts?: { exitCode?: number }): void {\n if (error instanceof CliUsageError) {\n fail(error.message, {\n hint: error.hints[0],\n exitCode: opts?.exitCode ?? error.exitCode,\n });\n return;\n }\n const mapped = mapUserFacingError(error);\n const commanderHint = isCommanderError(error)\n ? undefined\n : mapped.hint;\n const ownHints = hintsFromError(error);\n const hints = commanderHint\n ? [commanderHint, ...ownHints.filter((hint) => hint !== commanderHint)]\n : ownHints;\n fail(mapped.message, {\n hints,\n exitCode: opts?.exitCode ?? mapped.exitCode,\n });\n}\n\n/** DS-6: packaged help and scenario playbooks always show `ht`. */\nexport function formatScenarioCommand(path: string): string {\n const trimmed = path.trim();\n const stripped = trimmed.replace(/^(?:harnesstap|ht)\\s+/, \"\");\n return stripped.length > 0 ? `ht ${stripped}` : \"ht\";\n}\n\nexport function collectRepeatedOption(value: string, previous: string[]): string[] {\n return [...previous, value];\n}\n\nexport function isVerboseMode(argv: string[] = process.argv): boolean {\n return argv.includes(\"-v\") || argv.includes(\"--verbose\");\n}\n\nexport function isGroupedCommandFallbackError(error: unknown): error is {\n code: string;\n exitCode: number;\n message: string;\n} {\n if (!error || typeof error !== \"object\") {\n return false;\n }\n\n const candidate = error as {\n code?: unknown;\n exitCode?: unknown;\n message?: unknown;\n };\n\n return candidate.code === \"commander.excessArguments\"\n && candidate.exitCode === 1\n && typeof candidate.message === \"string\"\n && /too many arguments for '(plugin|resource|plugin|auth|migrate|harness|environment|profile)'/i.test(candidate.message);\n}\n","import { CLI_ERRORS, CLI_HINTS } from \"./messages.js\";\nimport { gitFailureHint, mapGitStderr } from \"../utils/git-errors.js\";\n\nexport { gitFailureHint, mapGitStderr } from \"../utils/git-errors.js\";\n\nexport interface MappedCliError {\n message: string;\n hint?: string;\n exitCode: number;\n}\n\nfunction nodePathFromEnoent(error: Error): string | undefined {\n if (\"path\" in error && typeof error.path === \"string\" && error.path.length > 0) {\n return error.path;\n }\n const match = /ENOENT: no such file or directory, (?:stat|open|scandir|mkdir|unlink) '([^']+)'/.exec(\n error.message,\n );\n return match?.[1];\n}\n\nexport function isSqliteUniqueError(error: unknown): boolean {\n if (!error || typeof error !== \"object\") {\n return false;\n }\n const candidate = error as { code?: unknown; message?: unknown };\n const code = typeof candidate.code === \"string\" ? candidate.code : \"\";\n const message = typeof candidate.message === \"string\" ? candidate.message : \"\";\n return (\n code === \"SQLITE_CONSTRAINT_UNIQUE\"\n || code === \"SQLITE_CONSTRAINT\"\n || message.includes(\"UNIQUE constraint failed\")\n );\n}\n\nfunction mapSqliteUnique(message: string): MappedCliError {\n if (message.includes(\"plugins.\")) {\n return {\n message: CLI_ERRORS.uniqueConstraintGeneric.replace(\n \"That name already exists.\",\n \"A plugin with that name already exists.\",\n ),\n hint: CLI_HINTS.onConflictReplace,\n exitCode: 1,\n };\n }\n if (message.includes(\"environments\")) {\n return {\n message: \"An environment with that name already exists.\",\n hint: CLI_HINTS.onConflictReplace,\n exitCode: 1,\n };\n }\n return {\n message: CLI_ERRORS.uniqueConstraintGeneric,\n hint: CLI_HINTS.onConflictReplace,\n exitCode: 1,\n };\n}\n\nfunction commanderExitCode(error: unknown): number {\n if (error && typeof error === \"object\" && \"exitCode\" in error) {\n const raw = (error as { exitCode?: unknown }).exitCode;\n if (typeof raw === \"number\" && raw > 0) {\n return raw;\n }\n }\n return 1;\n}\n\nexport function isCommanderError(error: unknown): boolean {\n if (!error || typeof error !== \"object\" || !(\"code\" in error)) {\n return false;\n }\n return String((error as { code?: unknown }).code ?? \"\").startsWith(\"commander.\");\n}\n\nexport function mapUserFacingError(error: unknown): MappedCliError {\n const exitCode = commanderExitCode(error);\n\n if (error instanceof Error && isSqliteUniqueError(error)) {\n return { ...mapSqliteUnique(error.message), exitCode };\n }\n\n if (error instanceof Error) {\n const code = \"code\" in error ? String((error as { code?: unknown }).code ?? \"\") : \"\";\n if (code === \"ENOENT\") {\n const filePath = nodePathFromEnoent(error);\n return {\n message: CLI_ERRORS.fileNotFound(filePath ?? \"that path\"),\n exitCode,\n };\n }\n const lower = error.message.toLowerCase();\n if (\n lower.includes(\"could not read username\")\n || lower.includes(\"terminal prompts disabled\")\n || lower.includes(\"authentication failed\")\n || /\\bfatal:/.test(lower)\n || error.message.startsWith(\"Couldn't reach\")\n ) {\n return {\n message: mapGitStderr(error.message),\n hint: gitFailureHint(),\n exitCode,\n };\n }\n return { message: error.message, exitCode };\n }\n\n return { message: String(error), exitCode };\n}\n\nexport function commanderHelpHint(commandPath: string): string {\n return CLI_HINTS.seeOptions(commandPath);\n}\n"],"mappings":";;;;;;;;;;AAKO,IAAM,mBACX;AAEK,IAAM,iCACX;AAGK,IAAM,yBACX;AAEK,IAAM,yBAAyB;AAAA,EACpC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,OAAO;AACT;AAEA,SAAS,SAAS,OAAuB;AACvC,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AAEO,SAAS,gBACd,OACA,MACuC;AACvC,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AACA,QAAM,SAAS,SAAS,KAAK;AAC7B,UAAQ,QAAQ;AAAA,IACd,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,UAAI,MAAM,YAAY;AACpB,eAAO;AAAA,MACT;AACA,YAAM,IAAI,MAAM,gCAAgC,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