counterparts 0.3.38 → 0.3.39

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.
@@ -44,8 +44,25 @@ import type { RuntimeKind } from "./runtime.js";
44
44
 
45
45
  // ── the install routes' steps (moved from doctor-meaning.ts, W1) ───────────
46
46
 
47
- /** The plugin's way to a newer or whole copy: Claude Code's plugin manager. */
48
- export const PLUGIN_UPDATE = "in Claude Code, /plugin → Installed → counterparts → Update now (or uninstall it and install it again)";
47
+ /**
48
+ * The plugin's way to a newer or whole copy: Claude Code's plugin manager.
49
+ *
50
+ * **Update marketplace, not Update now** (U1b, 2026-10-28; Mike's Q11: "yes,
51
+ * after the one throwaway-home test"). Claude Code's docs say Update
52
+ * marketplace "refreshes the marketplace's listing, updates the plugins you
53
+ * installed from it" — core and sidebar both; nothing says Update now
54
+ * refreshes the listing first, so with auto-update off it may answer
55
+ * "already at the latest". UNVERIFIED in a throwaway home: if Update now does
56
+ * refresh, either wording works.
57
+ */
58
+ export const PLUGIN_UPDATE_STEP = "in Claude Code, /plugin → Marketplaces → counterparts → Update marketplace";
59
+ export const PLUGIN_UPDATE = `${PLUGIN_UPDATE_STEP} (or uninstall it and install it again)`;
60
+
61
+ /** The same, for a copy that came through Anthropic's community marketplace (the directory listing). */
62
+ export const PLUGIN_UPDATE_COMMUNITY = "in Claude Code, /plugin → Marketplaces → claude-community → Update marketplace";
63
+
64
+ /** A copy Claude Code syncs from the claude.ai directory (`<name>@synced`): synced at each start. */
65
+ export const PLUGIN_UPDATE_SYNCED = "restart Claude Code (it syncs the directory's copy at each start)";
49
66
 
50
67
  /**
51
68
  * THE NPM INSTALL'S WAY TO THE MEANING TABLE: install Counterparts again with
@@ -55,12 +72,15 @@ export const PLUGIN_UPDATE = "in Claude Code, /plugin → Installed → counterp
55
72
  * where that looks, so naming it was a fix that fixed nothing (review of #664).
56
73
  */
57
74
  export function npmTableCommand(runtime: RuntimeKind = currentRuntime()): string {
58
- return runtime === "node" ? "npm install -g counterparts" : "bun add -g counterparts";
75
+ // `@latest` on npm (U1b rider, 2026-10-28): on Node 20 the bare form quietly
76
+ // installs 0.3.10, the last release whose engines it satisfies. bun has no
77
+ // such fallback, so its line stays the README's.
78
+ return runtime === "node" ? "npm install -g counterparts@latest" : "bun add -g counterparts";
59
79
  }
60
80
 
61
- /** The npm install's way to a NEWER copy: the same command, at `@latest`. */
81
+ /** The npm install's way to a NEWER copy: `@latest` on both runtimes. */
62
82
  export function npmUpdateCommand(runtime: RuntimeKind = currentRuntime()): string {
63
- return `${npmTableCommand(runtime)}@latest`;
83
+ return runtime === "node" ? "npm install -g counterparts@latest" : "bun add -g counterparts@latest";
64
84
  }
65
85
 
66
86
  /**
@@ -95,6 +95,9 @@ fi
95
95
  # variable; the loop measures a stranger. One step below arms it on purpose,
96
96
  # to prove the installed console and hook carry the refusal.
97
97
  unset COUNTERPARTS_REQUIRE_EXPLICIT_DIR
98
+ # The daily update check (U1b) asks registry.npmjs.org; a loop measures the
99
+ # install, not npm, so it stays off in the clean room.
100
+ export COUNTERPARTS_UPDATE_CHECK=off
98
101
 
99
102
  FAKE_HOME="$WORK/home"
100
103
  rm -rf "$FAKE_HOME"