harnessed 4.32.1 → 4.32.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/dist/cli.mjs +22 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/messages/en.json +4 -0
- package/messages/zh-Hans.json +4 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var init_package = __esm({
|
|
|
38
38
|
"package.json"() {
|
|
39
39
|
package_default = {
|
|
40
40
|
name: "harnessed",
|
|
41
|
-
version: "4.32.
|
|
41
|
+
version: "4.32.2",
|
|
42
42
|
description: "AI coding harness package manager + composition orchestrator",
|
|
43
43
|
type: "module",
|
|
44
44
|
license: "Apache-2.0",
|
|
@@ -1869,6 +1869,10 @@ var init_en = __esm({
|
|
|
1869
1869
|
"uninstall.unified.removed_state_dir": " removed ~/.claude/harnessed/",
|
|
1870
1870
|
"uninstall.unified.partial_failure": "\n{{count}} item(s) could not be removed (permission denied or already gone):",
|
|
1871
1871
|
"uninstall.unified.complete": "uninstall complete \u2014 harnessed's own files have been removed",
|
|
1872
|
+
"uninstall.unified.cli_hint_header": "\nto remove the harnessed CLI itself (the step above did not \u2014 it only cleared setup files):",
|
|
1873
|
+
"uninstall.unified.cli_hint_binary": " binary: delete {{path}}\n then remove {{dir}} from your PATH",
|
|
1874
|
+
"uninstall.unified.cli_hint_npm": " npm: npm uninstall -g harnessed",
|
|
1875
|
+
"uninstall.unified.cli_hint_other": " installed both ways? remove the other too \u2014 npm: 'npm uninstall -g harnessed' / binary: delete the exe + its bin dir from PATH",
|
|
1872
1876
|
"gc.invalid_duration": "error: invalid --older-than '{{value}}'",
|
|
1873
1877
|
"gc.invalid_duration.fix": " fix: use format <N>{d|h|m|w} e.g. 30d / 24h / 60m / 4w",
|
|
1874
1878
|
"gc.no_backups": "no backups found ({{root}} absent) \u2014 nothing to gc",
|
|
@@ -13619,6 +13623,20 @@ async function removeSettingsEnv(settingsPath) {
|
|
|
13619
13623
|
`, "utf8");
|
|
13620
13624
|
return true;
|
|
13621
13625
|
}
|
|
13626
|
+
function printCliRemovalHint() {
|
|
13627
|
+
console.log(t("uninstall.unified.cli_hint_header"));
|
|
13628
|
+
if (isCompiledRuntime()) {
|
|
13629
|
+
console.log(
|
|
13630
|
+
t("uninstall.unified.cli_hint_binary", {
|
|
13631
|
+
path: process.execPath,
|
|
13632
|
+
dir: dirname(process.execPath)
|
|
13633
|
+
})
|
|
13634
|
+
);
|
|
13635
|
+
} else {
|
|
13636
|
+
console.log(t("uninstall.unified.cli_hint_npm"));
|
|
13637
|
+
}
|
|
13638
|
+
console.log(t("uninstall.unified.cli_hint_other"));
|
|
13639
|
+
}
|
|
13622
13640
|
async function runUnifiedUninstall(home, dryRun) {
|
|
13623
13641
|
const platform = detectPlatform(home);
|
|
13624
13642
|
const commandsDir = platform.commandsDir;
|
|
@@ -13648,6 +13666,7 @@ async function runUnifiedUninstall(home, dryRun) {
|
|
|
13648
13666
|
const discoverable = commandFiles.length + skillDirs.length + (hasSettingsChanges ? 1 : 0);
|
|
13649
13667
|
if (discoverable === 0) {
|
|
13650
13668
|
console.log(t("uninstall.unified.nothing"));
|
|
13669
|
+
printCliRemovalHint();
|
|
13651
13670
|
process.exit(0);
|
|
13652
13671
|
}
|
|
13653
13672
|
console.log(t("uninstall.unified.header"));
|
|
@@ -13659,6 +13678,7 @@ async function runUnifiedUninstall(home, dryRun) {
|
|
|
13659
13678
|
console.log(t("uninstall.unified.upstream_note"));
|
|
13660
13679
|
if (dryRun) {
|
|
13661
13680
|
console.log(t("uninstall.unified.dry_run_hint"));
|
|
13681
|
+
printCliRemovalHint();
|
|
13662
13682
|
process.exit(2);
|
|
13663
13683
|
}
|
|
13664
13684
|
const answer = await p.confirm({
|
|
@@ -13721,6 +13741,7 @@ async function runUnifiedUninstall(home, dryRun) {
|
|
|
13721
13741
|
for (const f of failures) console.error(` ${f}`);
|
|
13722
13742
|
}
|
|
13723
13743
|
console.log(t("uninstall.unified.complete"));
|
|
13744
|
+
printCliRemovalHint();
|
|
13724
13745
|
process.exit(0);
|
|
13725
13746
|
}
|
|
13726
13747
|
function registerUninstall(program2) {
|