claudish 10.3.0 → 10.4.0
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/bin/claudish.cjs +10 -1
- package/dist/index.js +27077 -22058
- package/package.json +5 -5
package/bin/claudish.cjs
CHANGED
|
@@ -111,7 +111,16 @@ Learn more: https://bun.sh`);
|
|
|
111
111
|
try {
|
|
112
112
|
child = spawn(bun, [entry, ...process.argv.slice(2)], {
|
|
113
113
|
stdio: "inherit",
|
|
114
|
-
|
|
114
|
+
// The pid pair tells the Bun child who launched it: this launcher, and the
|
|
115
|
+
// launcher's own parent (Claude Code, for an MCP server). The child
|
|
116
|
+
// believes the pair only when CLAUDISH_LAUNCHER_PID is its real parent
|
|
117
|
+
// (channel/parent-proof.ts `hostPidFrom`), so a value leaked into a
|
|
118
|
+
// nested claudish is inert.
|
|
119
|
+
env: {
|
|
120
|
+
...process.env,
|
|
121
|
+
CLAUDISH_LAUNCHER_PID: String(process.pid),
|
|
122
|
+
CLAUDISH_LAUNCHER_PPID: String(process.ppid),
|
|
123
|
+
},
|
|
115
124
|
});
|
|
116
125
|
} catch (err) {
|
|
117
126
|
console.error("Failed to start claudish:", err.message);
|