@awebai/oats 0.35.2 → 0.35.3

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/docs/desktop.md CHANGED
@@ -70,6 +70,23 @@ what is required, **Choose oats…** (pick the binary yourself — the choice
70
70
  persists), **Retry**, a docs link, and the copyable install command. The
71
71
  app never installs the CLI itself.
72
72
 
73
+ ### Launched from Finder: the login shell's PATH
74
+
75
+ Opened from Finder or the Dock, an app inherits launchd's PATH
76
+ (`/usr/bin:/bin:/usr/sbin:/sbin`), which has no Homebrew or nvm `node` for
77
+ the CLI's `#!/usr/bin/env node`. At startup the Desktop therefore runs your
78
+ login shell once (`$SHELL -ilc`, 3 s timeout) and puts its PATH in front of
79
+ the inherited one, so the CLI probe, every `oats` call, a CLI picked with
80
+ **Choose oats…**, and the tmux server and terminals the Desktop starts all run
81
+ with your shell's PATH. Only PATH is taken from the shell, never the rest of
82
+ its environment. If the shell fails, times out or prints no PATH, the
83
+ inherited PATH stays: the backend's `/api/cli` reports `pathSource`
84
+ (`login-shell` or `inherited`), `pathError` (why, or `null`) and
85
+ `probePath` (the PATH the probe used), and the reason is logged at startup.
86
+ A tmux server that was already running keeps its own environment; restart it
87
+ (`tmux kill-server`, which ends its sessions) if its sessions should get the
88
+ new PATH.
89
+
73
90
  ## Opening a workspace
74
91
 
75
92
  The app starts on the directory it was launched with (its own folder by
@@ -0,0 +1,16 @@
1
+ # OATS 0.35.3
2
+
3
+ ## Fixed
4
+
5
+ - **A Desktop opened from Finder or the Dock finds the CLI's node**
6
+ (awebai/oats#468). Such a launch inherits launchd's PATH
7
+ (`/usr/bin:/bin:/usr/sbin:/sbin`). Discovery found the CLI through the
8
+ login shell, but the probe and every later call ran it with that PATH, so
9
+ its `#!/usr/bin/env node` failed on a Homebrew or nvm host, and every
10
+ workspace showed `E_CLI_UNAVAILABLE`. At startup the Desktop now runs the
11
+ login shell once (3 s timeout) and puts its PATH in front of the
12
+ inherited one, for the backend, every `oats` call, the probe, a CLI picked
13
+ with **Choose oats…**, and the tmux server it starts. Only PATH is taken,
14
+ never the rest of the shell's environment. If the shell fails, the
15
+ inherited PATH stays, and `/api/cli` says so (`pathSource`, `pathError`,
16
+ `probePath`). An already-running tmux server is left as it is.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awebai/oats",
3
- "version": "0.35.2",
3
+ "version": "0.35.3",
4
4
  "description": "OATS (Open Agent Team Specification) — durable souls, disposable instances, targetable capability packages, and the runtime-neutral oats CLI/kernel.",
5
5
  "keywords": [
6
6
  "agents",