@jentrix/cli 0.5.3 → 0.5.4

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.
Files changed (2) hide show
  1. package/dist/main.js +18 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -20959,7 +20959,7 @@ function refreshAccessToken(input) {
20959
20959
 
20960
20960
  // src/client.ts
20961
20961
  var CLI_NAME = "stacks-cli";
20962
- var CLI_VERSION = "0.5.3";
20962
+ var CLI_VERSION = "0.5.4";
20963
20963
  var DEAD_TOKEN_MESSAGE = "authentication failed (HTTP 401): the token is dead or expired \u2014 mint a new PAT at /account/tokens on your Jentrix server and update STACKS_TOKEN (or --token / the config file).";
20964
20964
  var RELOGIN_MESSAGE = "OAuth session expired and could not be refreshed \u2014 run `jentrix login` to sign in again.";
20965
20965
  function originOf2(url2) {
@@ -27152,10 +27152,24 @@ import { existsSync as existsSync4 } from "node:fs";
27152
27152
  import { join as join4, resolve as resolve2 } from "node:path";
27153
27153
  var MARKETPLACE_NAME = "jentrix";
27154
27154
  var PLUGIN_REF = "jentrix@jentrix";
27155
+ var LEGACY_MARKETPLACE = "stacks";
27155
27156
  var LEGACY_PLUGIN_REF = "stacks@stacks";
27156
- var LEGACY_PLUGIN_NOTICE = `If you installed the pre-rename plugin (\`${LEGACY_PLUGIN_REF}\`), remove it \u2014 otherwise both plugins register commands and you will see duplicates.`;
27157
27157
  var RUNNER_SPEC = `@jentrix/runner@${CLI_VERSION}`;
27158
27158
  var NPM_INSTALL_TIMEOUT_MS = 3e5;
27159
+ async function removeLegacyPlugin(deps2, executable2, provider) {
27160
+ await deps2.invoke(executable2, [
27161
+ "plugin",
27162
+ provider === "codex" ? "remove" : "uninstall",
27163
+ LEGACY_PLUGIN_REF
27164
+ ]);
27165
+ const dropped = await deps2.invoke(executable2, [
27166
+ "plugin",
27167
+ "marketplace",
27168
+ "remove",
27169
+ LEGACY_MARKETPLACE
27170
+ ]);
27171
+ return dropped.code === 0 ? ` Removed the pre-rename plugin (\`${LEGACY_PLUGIN_REF}\`) \u2014 it registered these same commands.` : "";
27172
+ }
27159
27173
  function alreadyExists(result) {
27160
27174
  return /already/i.test(`${result.stdout}
27161
27175
  ${result.stderr}`);
@@ -27261,7 +27275,7 @@ async function installCodexPlugin(deps2, codex, pluginDir) {
27261
27275
  }
27262
27276
  return finishInstall(
27263
27277
  deps2,
27264
- "Jentrix Codex plugin ready: $jentrix-connect, $jentrix-align, $jentrix-plan, $jentrix-checkpoint, $jentrix-status, and $jentrix-end are available in NEW Codex tasks. Open `/hooks` and trust the Jentrix hooks before use. " + LEGACY_PLUGIN_NOTICE
27278
+ "Jentrix Codex plugin ready: $jentrix-connect, $jentrix-align, $jentrix-plan, $jentrix-checkpoint, $jentrix-status, and $jentrix-end are available in NEW Codex tasks. Open `/hooks` and trust the Jentrix hooks before use." + await removeLegacyPlugin(deps2, codex, "codex")
27265
27279
  );
27266
27280
  }
27267
27281
  async function runPluginInstall(deps2, provider = "claude") {
@@ -27352,7 +27366,7 @@ ${update.stderr}`.match(
27352
27366
  );
27353
27367
  return finishInstall(
27354
27368
  deps2,
27355
- `Jentrix plugin ready: /jentrix-connect, /jentrix-align, /jentrix-plan, /jentrix-checkpoint, /jentrix-status, /jentrix-end are available in NEW Claude Code sessions (running sessions pick it up on restart). ${LEGACY_PLUGIN_NOTICE}`
27369
+ `Jentrix plugin ready: /jentrix-connect, /jentrix-align, /jentrix-plan, /jentrix-checkpoint, /jentrix-status, /jentrix-end are available in NEW Claude Code sessions (running sessions pick it up on restart).${await removeLegacyPlugin(deps2, claude, "claude")}`
27356
27370
  );
27357
27371
  }
27358
27372
  function registerPluginCommand(program3, deps2, onExit2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jentrix/cli",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Command-line client for the Jentrix MCP surface (jentrix tool <name>, generated noun-verb commands).",
5
5
  "keywords": [
6
6
  "jentrix",