xcodebug 1.1.0 → 1.1.1

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/README.md CHANGED
@@ -68,24 +68,27 @@ extension rather than a parallel implementation.
68
68
 
69
69
  ```bash
70
70
  npm i -g xcodebug # >= 1.1.0, the first release that ships mcp/
71
- codex mcp add xcodebug -- node "$(npm root -g)/xcodebug/mcp/server.ts"
72
- claude mcp add xcodebug -- node "$(npm root -g)/xcodebug/mcp/server.ts"
71
+ codex mcp add xcodebug -- bun "$(npm root -g)/xcodebug/mcp/server.ts"
72
+ claude mcp add xcodebug -- bun "$(npm root -g)/xcodebug/mcp/server.ts"
73
73
  ```
74
74
 
75
75
  Working from a checkout instead? Point both at `mcp/server.ts` in the repo:
76
76
 
77
77
  ```bash
78
- codex mcp add xcodebug -- node /path/to/xcodebug/mcp/server.ts
79
- claude mcp add xcodebug -- node /path/to/xcodebug/mcp/server.ts
78
+ codex mcp add xcodebug -- bun /path/to/xcodebug/mcp/server.ts
79
+ claude mcp add xcodebug -- bun /path/to/xcodebug/mcp/server.ts
80
80
  ```
81
81
 
82
- `node` >= 22.18 is enough: the imports carry explicit `.ts` extensions and the
83
- package declares `"type": "module"`, so there is no build step and no Bun.
82
+ Bun is required ([bun.sh](https://bun.sh)). The sources are TypeScript, and Node
83
+ refuses to strip types for files under `node_modules`
84
+ (`ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING`) - which is exactly where npm
85
+ installs the package, so `node` cannot start an installed copy. Bun loads the
86
+ same file from either location, so one command covers both.
84
87
 
85
88
  Check that the client picked it up:
86
89
 
87
90
  ```bash
88
- codex mcp list # xcodebug node …
91
+ codex mcp list # xcodebug bun …
89
92
  claude mcp list # xcodebug: … ✔ Connected
90
93
  ```
91
94
 
@@ -146,9 +149,10 @@ run is over.
146
149
  | `idevicesyslog` from libimobiledevice | optional; only `syslog` and the dual-channel safety net |
147
150
  | git | change detection; without a repo every run rebuilds |
148
151
  | CocoaPods | optional; only projects with a `Podfile` |
149
- | Node >= 22.18 | only for the MCP clients (Claude Code, Codex); pi runs the extension itself |
152
+ | Bun | only for the MCP clients (Claude Code, Codex); pi runs the extension itself |
150
153
 
151
- `xcodebug action=doctor` reports which of these are present.
154
+ `xcodebug action=doctor` reports the Xcode toolchain, the capture tools, the
155
+ active config and the log directory.
152
156
 
153
157
  ## Imports
154
158
 
package/mcp/server.ts CHANGED
@@ -7,11 +7,12 @@
7
7
  * tool's execute. index.ts stays untouched, which is what keeps the pi path
8
8
  * behaving exactly as verified across pi, omp and omo.
9
9
  *
10
- * Run it with node (>= 22.18) or bun: the extension's imports carry explicit
11
- * `.ts` extensions and the package declares "type": "module", so Node's ESM
12
- * loader resolves them with no build step.
10
+ * Run it with bun. Node can load this file from a checkout, but not from
11
+ * node_modules: it refuses to strip types there
12
+ * (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING), and that is where npm installs
13
+ * the package.
13
14
  *
14
- * codex mcp add xcodebug -- node /path/to/xcodebug/mcp/server.ts
15
+ * codex mcp add xcodebug -- bun /path/to/xcodebug/mcp/server.ts
15
16
  *
16
17
  * The protocol is hand-written JSON-RPC over stdio because only three methods are
17
18
  * needed (initialize, tools/list, tools/call); the official SDK would add ~97
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xcodebug",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "Build, install and launch an iOS app on a physical device and read its console inside the agent session (pi / omp extension)",
6
6
  "keywords": [