@generativereality/cctabs 0.4.1 → 0.4.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cctabs",
3
3
  "description": "Claude Code tab manager. Terminal tabs as the UI, no tmux. Claude can orchestrate its own sibling sessions.",
4
- "version": "0.4.1",
4
+ "version": "0.4.2",
5
5
  "author": {
6
6
  "name": "generativereality",
7
7
  "url": "https://cctabs.com"
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { consola } from "consola";
11
11
  import * as p from "@clack/prompts";
12
12
  //#region package.json
13
13
  var name = "@generativereality/cctabs";
14
- var version = "0.4.1";
14
+ var version = "0.4.2";
15
15
  var description = "Claude Code tab manager. Terminal tabs as the UI, no tmux.";
16
16
  var package_default = {
17
17
  name,
@@ -1346,6 +1346,7 @@ async function openSession(opts) {
1346
1346
  command: shell,
1347
1347
  args: [
1348
1348
  "-l",
1349
+ "-i",
1349
1350
  "-c",
1350
1351
  launch
1351
1352
  ]
@@ -2698,18 +2699,18 @@ function checkTabbyPlugin() {
2698
2699
  }
2699
2700
  /**
2700
2701
  * Probe whether `node` is findable in a freshly spawned shell — the canonical
2701
- * symptom of the macOS non-login PATH bug. Spawning `zsh -l -c 'command -v
2702
- * node'` simulates the same login-shell init (/etc/zprofile → path_helper)
2703
- * that cctabs now uses when it opens new Tabby tabs. If this fails, brand-new
2704
- * tabs will also fail to find Node, every plugin MCP that shells out to npx
2705
- * will ENOENT, and the cctabs CLI itself becomes unusable from inside those
2706
- * tabs (chicken-and-egg). The remediation hint covers both the upstream-fix
2707
- * path (rely on a recent cctabs that defaults to `-l`) and the dotfile
2708
- * workaround for users on older versions or non-Tabby terminals.
2702
+ * symptom of the macOS PATH-sourcing bug. Spawning `zsh -l -i -c 'command -v
2703
+ * node'` simulates the same login + interactive shell init (/etc/zprofile →
2704
+ * path_helper, then ~/.zshrc) that cctabs uses when it opens new Tabby tabs.
2705
+ * If this fails, brand-new tabs will also fail to find Node, every plugin MCP
2706
+ * that shells out to npx will ENOENT, and the cctabs CLI itself becomes
2707
+ * unusable from inside those tabs (chicken-and-egg). The flags must match
2708
+ * open-session.ts to keep the doctor honest.
2709
2709
  */
2710
2710
  function checkSpawnedShellPath() {
2711
2711
  const r = spawnSync("zsh", [
2712
2712
  "-l",
2713
+ "-i",
2713
2714
  "-c",
2714
2715
  "command -v node"
2715
2716
  ], {
@@ -2724,8 +2725,8 @@ function checkSpawnedShellPath() {
2724
2725
  return {
2725
2726
  name: "Spawned shell PATH",
2726
2727
  status: "warn",
2727
- detail: r.error?.message ?? r.stderr?.trim() ?? "node not found in a login zsh",
2728
- hint: "A login zsh cannot find `node`. Either node is not installed, or PATH is broken. On macOS, `/usr/local/bin` is added by /etc/zprofile's path_helpernon-login shells skip it. Add `export PATH=\"/usr/local/bin:$PATH\"` to ~/.zshenv as a belt-and-braces fix."
2728
+ detail: r.error?.message ?? r.stderr?.trim() ?? "node not found in a login+interactive zsh",
2729
+ hint: "A login+interactive zsh cannot find `node`. Either node is not installed, or PATH is broken. cctabs spawns tabs with `zsh -l -i -c` so both ~/.zprofile and ~/.zshrc are sourced if your PATH-extending logic lives elsewhere (e.g. a sourced file that bails on non-interactive), move the `export PATH=...` lines into ~/.zshenv as a belt-and-braces fix."
2729
2730
  };
2730
2731
  }
2731
2732
  function checkWaveDb() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@generativereality/cctabs",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Claude Code tab manager. Terminal tabs as the UI, no tmux.",
5
5
  "type": "module",
6
6
  "bin": {