@jentrix/cli 0.5.16 → 0.5.17

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jentrix",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Connect Codex tasks to Jentrix projects with trusted lifecycle hooks, alignment, checkpoints, and honest session capture.",
5
5
  "author": {
6
6
  "name": "Jentrix",
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-align
2
+ name: jentrix-align
3
3
  description: Align the current Codex task to a Jentrix workspace, project, work item, and owner with an operator-confirmed server snapshot.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-checkpoint
2
+ name: jentrix-checkpoint
3
3
  description: Distill verified session state into a typed Jentrix checkpoint that survives compaction or handoff.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-connect
2
+ name: jentrix-connect
3
3
  description: Connect the current Codex task to a Jentrix project using trusted lifecycle identity and start the session capture host.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-end
2
+ name: jentrix-end
3
3
  description: End a connected Jentrix session after preserving approved outputs, parking completed work in review, and reporting capture honestly.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-plan
2
+ name: jentrix-plan
3
3
  description: Turn the opening request into an operator-approved goal and small Jentrix task set, then store the prompt and goal as typed artifacts.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-review
2
+ name: jentrix-review
3
3
  description: Review a Jentrix session's typed artifacts by category, verify the readiness contract, and post the verdict as a comment on the aligned task.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: stacks-status
2
+ name: jentrix-status
3
3
  description: Show the connected Jentrix session, alignment, capture health, and honest telemetry availability for this Codex task.
4
4
  ---
5
5
  <!-- Source of truth. The cli/{claude,codex}-plugin copy is GENERATED by cli/scripts/build.mjs (rm + cp) on every build — edits made there are deleted. Edit this file. -->
package/dist/main.js CHANGED
@@ -20966,7 +20966,7 @@ function refreshAccessToken(input) {
20966
20966
 
20967
20967
  // src/client.ts
20968
20968
  var CLI_NAME = "stacks-cli";
20969
- var CLI_VERSION = "0.5.16";
20969
+ var CLI_VERSION = "0.5.17";
20970
20970
  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).";
20971
20971
  var RELOGIN_MESSAGE = "OAuth session expired and could not be refreshed \u2014 run `jentrix login` to sign in again.";
20972
20972
  function originOf2(url2) {
@@ -28369,7 +28369,7 @@ async function installRuntimes(deps2, pending) {
28369
28369
  }
28370
28370
  }
28371
28371
  }
28372
- async function registerCodexMcp(deps2, codex, pending) {
28372
+ async function registerCodexMcp(deps2, codex, pending, url2) {
28373
28373
  const configPath = deps2.codexConfigPath();
28374
28374
  const config2 = deps2.readTextFile(configPath);
28375
28375
  const existingKey = config2 ? /^\[mcp_servers\.jentrix\]/m.test(config2) ? "jentrix" : /^\[mcp_servers\.stacks\]/m.test(config2) ? "stacks" : null : null;
@@ -28392,7 +28392,6 @@ async function registerCodexMcp(deps2, codex, pending) {
28392
28392
  );
28393
28393
  return;
28394
28394
  }
28395
- const url2 = deps2.signedInUrl();
28396
28395
  if (!url2) {
28397
28396
  say(
28398
28397
  deps2,
@@ -28532,6 +28531,14 @@ async function runSetupCommand(flags, deps2) {
28532
28531
  );
28533
28532
  return EXIT_CODES.INVALID_INPUT;
28534
28533
  }
28534
+ if (flags.url) {
28535
+ try {
28536
+ new URL(flags.url);
28537
+ } catch {
28538
+ deps2.writeErr(`INVALID_URL: ${JSON.stringify(flags.url)}`);
28539
+ return EXIT_CODES.INVALID_INPUT;
28540
+ }
28541
+ }
28535
28542
  const toolchain = await installToolchain(deps2);
28536
28543
  if (toolchain !== EXIT_CODES.OK) return toolchain;
28537
28544
  const pending = { failedPlugins: [] };
@@ -28553,8 +28560,9 @@ async function runSetupCommand(flags, deps2) {
28553
28560
  );
28554
28561
  }
28555
28562
  }
28563
+ const targetUrl = flags.url ?? deps2.signedInUrl();
28556
28564
  const codex = await deps2.resolveCodex();
28557
- if (codex) await registerCodexMcp(deps2, codex, pending);
28565
+ if (codex) await registerCodexMcp(deps2, codex, pending, targetUrl);
28558
28566
  if (flags.git !== false && deps2.cwd() !== deps2.homeDir()) {
28559
28567
  let inWorkTree;
28560
28568
  if (deps2.isInteractive) {
@@ -28569,7 +28577,7 @@ async function runSetupCommand(flags, deps2) {
28569
28577
  }
28570
28578
  }
28571
28579
  if (inWorkTree) {
28572
- writeCheckoutMcpConfig(deps2, deps2.signedInUrl() ?? flags.url ?? null);
28580
+ writeCheckoutMcpConfig(deps2, targetUrl);
28573
28581
  }
28574
28582
  }
28575
28583
  say(deps2, "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jentrix/cli",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "Command-line client for the Jentrix MCP surface (jentrix tool <name>, generated noun-verb commands).",
5
5
  "keywords": [
6
6
  "jentrix",