@rubytech/create-maxy 1.0.709 → 1.0.710

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy",
3
- "version": "1.0.709",
3
+ "version": "1.0.710",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy": "./dist/index.js"
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MCP spawn-tee — parent-side stderr capture wrapper (Task 743).
4
+ *
5
+ * Claude Code's `--mcp-config` accepts `{command, args, env}` descriptors and
6
+ * spawns each MCP server itself; the platform never holds a ChildProcess
7
+ * handle. The in-process `mcp-stderr-tee` patches `process.stderr.write` from
8
+ * inside the MCP server, but its writes go through `createWriteStream` —
9
+ * async, buffered. A synchronous module-load throw (e.g. schema-loader's
10
+ * line-168 width check on memory) calls `process.exit(1)` before the buffer
11
+ * flushes, so the per-server log file is empty and the platform's
12
+ * `[mcp-init-error] tail="(no stderr file)"` probe is operationally useless.
13
+ * That class shipped as the chronic memory-MCP silent-fail loop fixed by
14
+ * Task 743 (and hit graph in Task 560 — solved there with per-plugin
15
+ * `appendFileSync` discipline that this wrapper now generalises).
16
+ *
17
+ * The wrapper sits between Claude Code and the real MCP server: it spawns
18
+ * the real entry with `stdio: ['inherit', 'inherit', 'pipe']`, then
19
+ * synchronously appends every child stderr chunk to
20
+ * `${LOG_DIR}/mcp-${name}-stderr-<date>.log`. Synchronous writes survive
21
+ * `process.exit` because the kernel queues the syscall before the call
22
+ * returns. The chunk is also written to the wrapper's own stderr so
23
+ * Claude Code's existing stderr consumer is unchanged — the mechanism is
24
+ * additive, not interceptive.
25
+ *
26
+ * Claude Code CLI
27
+ * │ spawns
28
+ * ▼
29
+ * wrapper (this file) — argv[2] = real entry, env.MCP_SPAWN_TEE_NAME = name
30
+ * │ spawns child with stdio:['inherit','inherit','pipe']
31
+ * ▼
32
+ * child = node <real-entry>
33
+ * │
34
+ * ├──▶ stdin/stdout: inherited from wrapper (Claude Code pipe)
35
+ * └──▶ stderr → wrapper.on('data', chunk =>)
36
+ * ├──▶ appendFileSync(${LOG_DIR}/mcp-${name}-stderr-<date>.log)
37
+ * └──▶ process.stderr.write(chunk) → Claude Code consumer
38
+ *
39
+ * The wrapper catches:
40
+ * - MODULE_NOT_FOUND on the entry script itself (success criterion #3:
41
+ * `mv plugins/memory/mcp/dist plugins/memory/mcp/dist-broken && reboot`
42
+ * leaves the cause on disk).
43
+ * - Synchronous throws during module load before the in-process tee runs.
44
+ * - Any stderr a normally-running plugin emits (steady-state telemetry
45
+ * remains visible too — the in-process tee handles per-line stream-log
46
+ * prefixing; this wrapper handles the raw per-server file).
47
+ *
48
+ * SIGTERM/SIGINT propagation: forwarded to the child so a Claude Code
49
+ * shutdown does not orphan the MCP server. Child exit code is propagated
50
+ * verbatim so upstream (Claude Code) sees the real outcome.
51
+ */
52
+ export {};
53
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG"}
@@ -0,0 +1,132 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ /**
4
+ * MCP spawn-tee — parent-side stderr capture wrapper (Task 743).
5
+ *
6
+ * Claude Code's `--mcp-config` accepts `{command, args, env}` descriptors and
7
+ * spawns each MCP server itself; the platform never holds a ChildProcess
8
+ * handle. The in-process `mcp-stderr-tee` patches `process.stderr.write` from
9
+ * inside the MCP server, but its writes go through `createWriteStream` —
10
+ * async, buffered. A synchronous module-load throw (e.g. schema-loader's
11
+ * line-168 width check on memory) calls `process.exit(1)` before the buffer
12
+ * flushes, so the per-server log file is empty and the platform's
13
+ * `[mcp-init-error] tail="(no stderr file)"` probe is operationally useless.
14
+ * That class shipped as the chronic memory-MCP silent-fail loop fixed by
15
+ * Task 743 (and hit graph in Task 560 — solved there with per-plugin
16
+ * `appendFileSync` discipline that this wrapper now generalises).
17
+ *
18
+ * The wrapper sits between Claude Code and the real MCP server: it spawns
19
+ * the real entry with `stdio: ['inherit', 'inherit', 'pipe']`, then
20
+ * synchronously appends every child stderr chunk to
21
+ * `${LOG_DIR}/mcp-${name}-stderr-<date>.log`. Synchronous writes survive
22
+ * `process.exit` because the kernel queues the syscall before the call
23
+ * returns. The chunk is also written to the wrapper's own stderr so
24
+ * Claude Code's existing stderr consumer is unchanged — the mechanism is
25
+ * additive, not interceptive.
26
+ *
27
+ * Claude Code CLI
28
+ * │ spawns
29
+ * ▼
30
+ * wrapper (this file) — argv[2] = real entry, env.MCP_SPAWN_TEE_NAME = name
31
+ * │ spawns child with stdio:['inherit','inherit','pipe']
32
+ * ▼
33
+ * child = node <real-entry>
34
+ * │
35
+ * ├──▶ stdin/stdout: inherited from wrapper (Claude Code pipe)
36
+ * └──▶ stderr → wrapper.on('data', chunk =>)
37
+ * ├──▶ appendFileSync(${LOG_DIR}/mcp-${name}-stderr-<date>.log)
38
+ * └──▶ process.stderr.write(chunk) → Claude Code consumer
39
+ *
40
+ * The wrapper catches:
41
+ * - MODULE_NOT_FOUND on the entry script itself (success criterion #3:
42
+ * `mv plugins/memory/mcp/dist plugins/memory/mcp/dist-broken && reboot`
43
+ * leaves the cause on disk).
44
+ * - Synchronous throws during module load before the in-process tee runs.
45
+ * - Any stderr a normally-running plugin emits (steady-state telemetry
46
+ * remains visible too — the in-process tee handles per-line stream-log
47
+ * prefixing; this wrapper handles the raw per-server file).
48
+ *
49
+ * SIGTERM/SIGINT propagation: forwarded to the child so a Claude Code
50
+ * shutdown does not orphan the MCP server. Child exit code is propagated
51
+ * verbatim so upstream (Claude Code) sees the real outcome.
52
+ */
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ const node_child_process_1 = require("node:child_process");
55
+ const node_fs_1 = require("node:fs");
56
+ const node_path_1 = require("node:path");
57
+ const SERVER_NAME = process.env.MCP_SPAWN_TEE_NAME ?? "unknown";
58
+ const LOG_DIR = process.env.LOG_DIR;
59
+ const ENTRY = process.argv[2];
60
+ // Sync-emit: appendFileSync to per-server log + stderr passthrough. Used for
61
+ // wrapper-internal diagnostics (attach line, errors) and for forwarding child
62
+ // stderr chunks. Each destination wrapped independently — an unwritable log
63
+ // must not mask the primary output.
64
+ function syncEmitLine(line) {
65
+ if (LOG_DIR) {
66
+ try {
67
+ (0, node_fs_1.mkdirSync)(LOG_DIR, { recursive: true });
68
+ const date = new Date().toISOString().slice(0, 10);
69
+ (0, node_fs_1.appendFileSync)((0, node_path_1.resolve)(LOG_DIR, `mcp-${SERVER_NAME}-stderr-${date}.log`), line);
70
+ }
71
+ catch {
72
+ /* unwritable destination — preserve primary failure */
73
+ }
74
+ }
75
+ try {
76
+ process.stderr.write(line);
77
+ }
78
+ catch {
79
+ /* stderr closed — nothing else to do */
80
+ }
81
+ }
82
+ if (!ENTRY) {
83
+ syncEmitLine(`[mcp-spawn-tee-error] server=${SERVER_NAME} reason="no entry given (argv[2] missing)"\n`);
84
+ process.exit(2);
85
+ }
86
+ const child = (0, node_child_process_1.spawn)(process.execPath, [ENTRY], {
87
+ stdio: ["inherit", "inherit", "pipe"],
88
+ env: process.env,
89
+ });
90
+ syncEmitLine(`[mcp-spawn-tee-attached] server=${SERVER_NAME} pid=${child.pid ?? -1} entry=${ENTRY}\n`);
91
+ child.on("error", (err) => {
92
+ const msg = err instanceof Error ? err.message : String(err);
93
+ syncEmitLine(`[mcp-spawn-tee-error] server=${SERVER_NAME} reason=${JSON.stringify(`spawn error: ${msg}`)}\n`);
94
+ process.exit(127);
95
+ });
96
+ if (child.stderr) {
97
+ child.stderr.on("data", (chunk) => {
98
+ if (LOG_DIR) {
99
+ try {
100
+ const date = new Date().toISOString().slice(0, 10);
101
+ (0, node_fs_1.appendFileSync)((0, node_path_1.resolve)(LOG_DIR, `mcp-${SERVER_NAME}-stderr-${date}.log`), chunk);
102
+ }
103
+ catch {
104
+ /* unwritable destination — preserve passthrough */
105
+ }
106
+ }
107
+ try {
108
+ process.stderr.write(chunk);
109
+ }
110
+ catch {
111
+ /* stderr closed — nothing else to do */
112
+ }
113
+ });
114
+ }
115
+ // Forward SIGTERM/SIGINT so Claude Code shutdown doesn't orphan the child.
116
+ const forward = (signal) => {
117
+ if (!child.killed)
118
+ child.kill(signal);
119
+ };
120
+ process.on("SIGTERM", () => forward("SIGTERM"));
121
+ process.on("SIGINT", () => forward("SIGINT"));
122
+ child.on("exit", (code, signal) => {
123
+ if (signal) {
124
+ syncEmitLine(`[mcp-spawn-tee-exit] server=${SERVER_NAME} pid=${child.pid ?? -1} signal=${signal}\n`);
125
+ process.exit(128 + (code ?? 0));
126
+ }
127
+ if (code !== 0) {
128
+ syncEmitLine(`[mcp-spawn-tee-exit] server=${SERVER_NAME} pid=${child.pid ?? -1} code=${code}\n`);
129
+ }
130
+ process.exit(code ?? 0);
131
+ });
132
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;;AAEH,2DAA2C;AAC3C,qCAAoD;AACpD,yCAAoC;AAEpC,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,SAAS,CAAC;AAChE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;AACpC,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE9B,6EAA6E;AAC7E,8EAA8E;AAC9E,4EAA4E;AAC5E,oCAAoC;AACpC,SAAS,YAAY,CAAC,IAAY;IAChC,IAAI,OAAO,EAAE,CAAC;QACZ,IAAI,CAAC;YACH,IAAA,mBAAS,EAAC,OAAO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AAC,GAAG,IAAI,CAAC,CAAC,WAAW,MAAM,IAAI,CAAC,CAAC;QACrG,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACf,YAAY,CAAC,+BAA+B,WAAW,QAAQ,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;IACnG,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,134 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MCP spawn-tee — parent-side stderr capture wrapper (Task 743).
4
+ *
5
+ * Claude Code's `--mcp-config` accepts `{command, args, env}` descriptors and
6
+ * spawns each MCP server itself; the platform never holds a ChildProcess
7
+ * handle. The in-process `mcp-stderr-tee` patches `process.stderr.write` from
8
+ * inside the MCP server, but its writes go through `createWriteStream` —
9
+ * async, buffered. A synchronous module-load throw (e.g. schema-loader's
10
+ * line-168 width check on memory) calls `process.exit(1)` before the buffer
11
+ * flushes, so the per-server log file is empty and the platform's
12
+ * `[mcp-init-error] tail="(no stderr file)"` probe is operationally useless.
13
+ * That class shipped as the chronic memory-MCP silent-fail loop fixed by
14
+ * Task 743 (and hit graph in Task 560 — solved there with per-plugin
15
+ * `appendFileSync` discipline that this wrapper now generalises).
16
+ *
17
+ * The wrapper sits between Claude Code and the real MCP server: it spawns
18
+ * the real entry with `stdio: ['inherit', 'inherit', 'pipe']`, then
19
+ * synchronously appends every child stderr chunk to
20
+ * `${LOG_DIR}/mcp-${name}-stderr-<date>.log`. Synchronous writes survive
21
+ * `process.exit` because the kernel queues the syscall before the call
22
+ * returns. The chunk is also written to the wrapper's own stderr so
23
+ * Claude Code's existing stderr consumer is unchanged — the mechanism is
24
+ * additive, not interceptive.
25
+ *
26
+ * Claude Code CLI
27
+ * │ spawns
28
+ * ▼
29
+ * wrapper (this file) — argv[2] = real entry, env.MCP_SPAWN_TEE_NAME = name
30
+ * │ spawns child with stdio:['inherit','inherit','pipe']
31
+ * ▼
32
+ * child = node <real-entry>
33
+ * │
34
+ * ├──▶ stdin/stdout: inherited from wrapper (Claude Code pipe)
35
+ * └──▶ stderr → wrapper.on('data', chunk =>)
36
+ * ├──▶ appendFileSync(${LOG_DIR}/mcp-${name}-stderr-<date>.log)
37
+ * └──▶ process.stderr.write(chunk) → Claude Code consumer
38
+ *
39
+ * The wrapper catches:
40
+ * - MODULE_NOT_FOUND on the entry script itself (success criterion #3:
41
+ * `mv plugins/memory/mcp/dist plugins/memory/mcp/dist-broken && reboot`
42
+ * leaves the cause on disk).
43
+ * - Synchronous throws during module load before the in-process tee runs.
44
+ * - Any stderr a normally-running plugin emits (steady-state telemetry
45
+ * remains visible too — the in-process tee handles per-line stream-log
46
+ * prefixing; this wrapper handles the raw per-server file).
47
+ *
48
+ * SIGTERM/SIGINT propagation: forwarded to the child so a Claude Code
49
+ * shutdown does not orphan the MCP server. Child exit code is propagated
50
+ * verbatim so upstream (Claude Code) sees the real outcome.
51
+ */
52
+
53
+ import { spawn } from "node:child_process";
54
+ import { appendFileSync, mkdirSync } from "node:fs";
55
+ import { resolve } from "node:path";
56
+
57
+ const SERVER_NAME = process.env.MCP_SPAWN_TEE_NAME ?? "unknown";
58
+ const LOG_DIR = process.env.LOG_DIR;
59
+ const ENTRY = process.argv[2];
60
+
61
+ // Sync-emit: appendFileSync to per-server log + stderr passthrough. Used for
62
+ // wrapper-internal diagnostics (attach line, errors) and for forwarding child
63
+ // stderr chunks. Each destination wrapped independently — an unwritable log
64
+ // must not mask the primary output.
65
+ function syncEmitLine(line: string): void {
66
+ if (LOG_DIR) {
67
+ try {
68
+ mkdirSync(LOG_DIR, { recursive: true });
69
+ const date = new Date().toISOString().slice(0, 10);
70
+ appendFileSync(resolve(LOG_DIR, `mcp-${SERVER_NAME}-stderr-${date}.log`), line);
71
+ } catch {
72
+ /* unwritable destination — preserve primary failure */
73
+ }
74
+ }
75
+ try {
76
+ process.stderr.write(line);
77
+ } catch {
78
+ /* stderr closed — nothing else to do */
79
+ }
80
+ }
81
+
82
+ if (!ENTRY) {
83
+ syncEmitLine(`[mcp-spawn-tee-error] server=${SERVER_NAME} reason="no entry given (argv[2] missing)"\n`);
84
+ process.exit(2);
85
+ }
86
+
87
+ const child = spawn(process.execPath, [ENTRY], {
88
+ stdio: ["inherit", "inherit", "pipe"],
89
+ env: process.env,
90
+ });
91
+
92
+ syncEmitLine(`[mcp-spawn-tee-attached] server=${SERVER_NAME} pid=${child.pid ?? -1} entry=${ENTRY}\n`);
93
+
94
+ child.on("error", (err) => {
95
+ const msg = err instanceof Error ? err.message : String(err);
96
+ syncEmitLine(`[mcp-spawn-tee-error] server=${SERVER_NAME} reason=${JSON.stringify(`spawn error: ${msg}`)}\n`);
97
+ process.exit(127);
98
+ });
99
+
100
+ if (child.stderr) {
101
+ child.stderr.on("data", (chunk: Buffer) => {
102
+ if (LOG_DIR) {
103
+ try {
104
+ const date = new Date().toISOString().slice(0, 10);
105
+ appendFileSync(resolve(LOG_DIR, `mcp-${SERVER_NAME}-stderr-${date}.log`), chunk);
106
+ } catch {
107
+ /* unwritable destination — preserve passthrough */
108
+ }
109
+ }
110
+ try {
111
+ process.stderr.write(chunk);
112
+ } catch {
113
+ /* stderr closed — nothing else to do */
114
+ }
115
+ });
116
+ }
117
+
118
+ // Forward SIGTERM/SIGINT so Claude Code shutdown doesn't orphan the child.
119
+ const forward = (signal: NodeJS.Signals) => {
120
+ if (!child.killed) child.kill(signal);
121
+ };
122
+ process.on("SIGTERM", () => forward("SIGTERM"));
123
+ process.on("SIGINT", () => forward("SIGINT"));
124
+
125
+ child.on("exit", (code, signal) => {
126
+ if (signal) {
127
+ syncEmitLine(`[mcp-spawn-tee-exit] server=${SERVER_NAME} pid=${child.pid ?? -1} signal=${signal}\n`);
128
+ process.exit(128 + (code ?? 0));
129
+ }
130
+ if (code !== 0) {
131
+ syncEmitLine(`[mcp-spawn-tee-exit] server=${SERVER_NAME} pid=${child.pid ?? -1} code=${code}\n`);
132
+ }
133
+ process.exit(code ?? 0);
134
+ });
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "rootDir": "src"
6
+ },
7
+ "include": ["src"]
8
+ }
@@ -6,8 +6,8 @@
6
6
  "plugins/*/mcp"
7
7
  ],
8
8
  "scripts": {
9
- "build": "tsc -p lib/models/tsconfig.json && tsc -p lib/anthropic-key/tsconfig.json && tsc -p lib/oauth-llm/tsconfig.json && tsc -p lib/mcp-stderr-tee/tsconfig.json && tsc -p lib/graph-mcp/tsconfig.json && tsc -p lib/graph-trash/tsconfig.json && tsc -p lib/graph-search/tsconfig.json && tsc -p lib/graph-write/tsconfig.json && tsc -p lib/screening-patterns/tsconfig.json && tsc -p lib/device-url/tsconfig.json && NODE_OPTIONS='--max-old-space-size=8192' tsc -b plugins/*/mcp/tsconfig.json",
10
- "build:lib": "tsc -p lib/models/tsconfig.json && tsc -p lib/anthropic-key/tsconfig.json && tsc -p lib/oauth-llm/tsconfig.json && tsc -p lib/mcp-stderr-tee/tsconfig.json && tsc -p lib/graph-mcp/tsconfig.json && tsc -p lib/graph-trash/tsconfig.json && tsc -p lib/graph-search/tsconfig.json && tsc -p lib/graph-write/tsconfig.json && tsc -p lib/screening-patterns/tsconfig.json && tsc -p lib/device-url/tsconfig.json",
9
+ "build": "tsc -p lib/models/tsconfig.json && tsc -p lib/anthropic-key/tsconfig.json && tsc -p lib/oauth-llm/tsconfig.json && tsc -p lib/mcp-stderr-tee/tsconfig.json && tsc -p lib/mcp-spawn-tee/tsconfig.json && tsc -p lib/graph-mcp/tsconfig.json && tsc -p lib/graph-trash/tsconfig.json && tsc -p lib/graph-search/tsconfig.json && tsc -p lib/graph-write/tsconfig.json && tsc -p lib/screening-patterns/tsconfig.json && tsc -p lib/device-url/tsconfig.json && NODE_OPTIONS='--max-old-space-size=8192' tsc -b plugins/*/mcp/tsconfig.json",
10
+ "build:lib": "tsc -p lib/models/tsconfig.json && tsc -p lib/anthropic-key/tsconfig.json && tsc -p lib/oauth-llm/tsconfig.json && tsc -p lib/mcp-stderr-tee/tsconfig.json && tsc -p lib/mcp-spawn-tee/tsconfig.json && tsc -p lib/graph-mcp/tsconfig.json && tsc -p lib/graph-trash/tsconfig.json && tsc -p lib/graph-search/tsconfig.json && tsc -p lib/graph-write/tsconfig.json && tsc -p lib/screening-patterns/tsconfig.json && tsc -p lib/device-url/tsconfig.json",
11
11
  "build:memory": "tsc -p plugins/memory/mcp/tsconfig.json",
12
12
  "build:contacts": "tsc -p plugins/contacts/mcp/tsconfig.json",
13
13
  "build:telegram": "tsc -p plugins/telegram/mcp/tsconfig.json",
@@ -115,10 +115,18 @@ After this, every `console.error("[your-tool] ...")` from any tool in the plugin
115
115
 
116
116
  **Main-subprocess stderr (Task 535).** The same teeing pattern applies to the main Claude Code subprocess's stderr — every line lands in the per-conversation stream log as `[subproc-stderr] …`, with lifecycle markers `[subproc-stderr-tee-attached] pid=…` and `[subproc-stderr-tee-detached] pid=… bytes=N lines=N`. A `bytes=0 lines=0` detach means the tee was attached but the subprocess emitted nothing on stderr — which is the normal state today, because the Claude Code CLI is a bundled Bun runtime binary that does not honour Node's `NODE_DEBUG` env var. The platform records this explicitly with one line per spawn: `[subproc-debug-unavailable] reason=bundled-bun-binary-ignores-node-debug pid=… cli=claude`. A reader who finds a `[spawn]` without these markers should treat that as a regression of the tee infrastructure, not as silence.
117
117
 
118
- ## Failure-path observability contract (Task 560)
118
+ ## Failure-path observability contract (Task 560 + Task 743)
119
119
 
120
- The `initStderrTee` wrapper writes to the per-conversation stream log and per-server raw file via `createWriteStream` — async, buffered. Any diagnostic `console.error(…)` followed by an immediate `process.exit(…)` is lost: the event loop never drains the WriteStream before the process terminates. Plugins that call `process.exit()` during module load (rare `graph-mcp` is the only in-tree example today; it spawns a child at boot to proxy upstream stdio) MUST use `fs.appendFileSync` at every exit path to guarantee the cause lands in both log destinations before exit. Lines should follow the `[mcp:<name>] [<plugin-prefix>] <cause>` format so existing `grep '[mcp:<name>]'` investigator paths work. Each destination must be wrapped in its own try/catch an unwritable log must not mask the primary failure.
120
+ The `initStderrTee` wrapper writes to the per-conversation stream log and per-server raw file via `createWriteStream` — async, buffered. Any diagnostic `console.error(…)` followed by an immediate `process.exit(…)` is lost: the event loop never drains the WriteStream before the process terminates. Same race for any synchronous module-load throw: Node's uncaught-exception handler writes the stack to raw fd 2 and exits before the patched async stream flushes. The platform's `[mcp-init-error] tail="(no stderr file)"` line operationally uselessis the public symptom of this race.
121
121
 
122
- A second observability layer closes the same gap from the platform side: when `claude-agent.ts` observes an `init` event with any MCP server reporting `status:"failed"`, it reads the last 512 bytes of `${LOG_DIR}/mcp-<name>-stderr-<date>.log` and emits `[mcp-init-error] server=<name> tail=<quoted>` into the stream log. Absent file → `tail="(no stderr file)"`; empty file → `tail="(empty)"`. This works for every plugin regardless of whether it adopted the sync-write discipline — the tail of whatever landed in the raw stderr file (from whichever destination made it out of the async buffer) is always captured.
122
+ **Two layers now close the gap, each load-bearing on its own:**
123
123
 
124
- Signal inventory after a failed session: `[init] FAILED MCP servers: <names>` (names), `[mcp-init-error] server=<name> tail=…` (cause for each, from platform), optionally `[mcp:<name>] [<plugin>] …` (cause for each, from plugin's own sync-writes when the plugin is disciplined). Their union gives the investigator two independent sources for the same failure.
124
+ 1. **Plugin-side sync-write discipline.** Plugins that call `process.exit()` during module load (rare `graph-mcp` is the in-tree example; it spawns a child at boot to proxy upstream stdio) use `fs.appendFileSync` at every named exit path to guarantee the cause lands in both log destinations before exit. Lines follow the `[mcp:<name>] [<plugin-prefix>] <cause>` format so existing `grep '[mcp:<name>]'` investigator paths work. Each destination is wrapped in its own try/catch an unwritable log must not mask the primary failure. This is the discipline propagated from Task 560 to any plugin author who knows their failure paths.
125
+
126
+ 2. **Parent-side `mcp-spawn-tee` wrapper (Task 743).** Every node-based core MCP server is spawned via the `lib/mcp-spawn-tee` wrapper rather than `node <entry>` directly. The wrapper spawns the real entry with `stdio: ['inherit', 'inherit', 'pipe']` and writes child stderr chunks to `${LOG_DIR}/mcp-${name}-stderr-<date>.log` via `appendFileSync` while passing the same chunks through to its own stderr (Claude Code's consumer is unchanged). Synchronous `appendFileSync` survives `process.exit`, so the per-server file captures even (a) module-load throws before `initStderrTee` runs, (b) `MODULE_NOT_FOUND` on the entry script itself, and (c) anything else a plugin author missed. The wrapper writes `[mcp-spawn-tee-attached] server=<name> pid=<n>` on attach and forwards SIGTERM/SIGINT to the child. This is the layer that makes capture independent of plugin discipline. Playwright stays unwrapped because it spawns via `npx`, not `node`.
127
+
128
+ A third layer closes the same gap from the platform side: when `claude-agent.ts` observes an `init` event with any MCP server reporting `status:"failed"`, it reads the last 512 bytes of `${LOG_DIR}/mcp-<name>-stderr-<date>.log` and emits `[mcp-init-error] server=<name> tail=<quoted>` into the stream log. Absent file → `tail="(no stderr file)"`; empty file → `tail="(empty)"`. With the spawn-tee wrapper now interposing on every core MCP, `tail="(no stderr file)"` post-Task-743 means the wrapper itself is broken — file follow-up.
129
+
130
+ **Signal inventory after a failed session:** `[init] FAILED MCP servers: <names>` (names), `[mcp-init-error] server=<name> tail=…` (cause for each, from the platform's tail probe), `[mcp-spawn-tee-attached] server=<name> pid=<n>` (proof the wrapper attached), `[mcp-spawn-tee-exit] server=<name> code=<n>|signal=<s>` (proof the wrapper saw the exit), and optionally `[mcp:<name>] [<plugin>] …` from plugin-side sync-writes. Their union gives the investigator three independent sources for the same failure.
131
+
132
+ **Boot-smoke as publish-time gate (Task 743).** The memory MCP carries `scripts/boot-smoke.sh` that spawns `dist/index.js` with stub env, sleeps 2s, asserts `kill -0 <pid>`, and reports `[boot-smoke] memory ok|FAILED tail=<n-lines>`. Wired to `prepublish` in `plugins/memory/mcp/package.json`. The pattern is propagatable to other plugin MCPs — it's deliberately not generalised yet because each plugin's stub-env requirements differ (memory needs ACCOUNT_ID + PLATFORM_ROOT + NEO4J_URI + SESSION_ID; others differ).
@@ -1,6 +1,6 @@
1
1
  import test from "node:test";
2
2
  import assert from "node:assert/strict";
3
- import { loadSchema } from "../schema-loader.js";
3
+ import { loadSchema, splitPipeRow } from "../schema-loader.js";
4
4
  // schema-loader reads from platform/plugins/memory/references/schema-*.md
5
5
  // at runtime — these tests assert the contract surface (the renamed field
6
6
  // `markdownLabels` plus the loader's invariants) against the actual schema
@@ -48,4 +48,37 @@ test("loadSchema: sourceFiles are absolute paths to schema-*.md files", () => {
48
48
  assert.match(f, /schema-.*\.md$/);
49
49
  }
50
50
  });
51
+ // Task 743 — splitPipeRow must skip `|` inside backtick code-spans, otherwise
52
+ // a row like `Person|Organization` shreds into a 4-cell row and findTables
53
+ // throws at module load before any stderr can flush. The original-content
54
+ // case is asserted directly so the parser fix remains load-bearing even if
55
+ // the schema-base.md content fix is reverted.
56
+ test("splitPipeRow: pipe inside backtick code-span is literal (Task 743)", () => {
57
+ const row = "| `PARTY` | `KnowledgeDocument` → `Person|Organization` | Contract Parties |";
58
+ const cells = splitPipeRow(row);
59
+ assert.equal(cells.length, 3, `expected 3 cells (Task 743 regression), got ${cells.length}: ${JSON.stringify(cells)}`);
60
+ assert.equal(cells[0], "`PARTY`");
61
+ assert.equal(cells[1], "`KnowledgeDocument` → `Person|Organization`");
62
+ assert.equal(cells[2], "Contract Parties");
63
+ });
64
+ test("splitPipeRow: multiple pipes inside multiple backtick spans are all literal", () => {
65
+ const row = "| `a|b` | `c|d|e` | f |";
66
+ const cells = splitPipeRow(row);
67
+ assert.deepEqual(cells, ["`a|b`", "`c|d|e`", "f"]);
68
+ });
69
+ test("splitPipeRow: ordinary row with no backticks splits as before", () => {
70
+ const cells = splitPipeRow("| one | two | three |");
71
+ assert.deepEqual(cells, ["one", "two", "three"]);
72
+ });
73
+ // Task 743 success criterion #1: live schema-base.md must parse cleanly
74
+ // after the fix (loadSchema would throw on the line-168 row otherwise).
75
+ // This is the integration counterpart to the unit cases above — a green
76
+ // loadSchema() call is the closest local proxy for the boot-smoke gate.
77
+ test("loadSchema: schema-base.md line-168 PARTY row parses (Task 743)", () => {
78
+ const schema = loadSchema();
79
+ // PARTY isn't a label — it's an edge type — so it shouldn't appear in
80
+ // markdownLabels. The assertion is that loadSchema returns at all without
81
+ // throwing; reaching this point is the success signal.
82
+ assert.ok(schema.markdownLabels.size > 0);
83
+ });
51
84
  //# sourceMappingURL=schema-loader.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-loader.test.js","sourceRoot":"","sources":["../../../src/lib/__tests__/schema-loader.test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,0EAA0E;AAC1E,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,mDAAmD;AAEnD,IAAI,CAAC,sEAAsE,EAAE,GAAG,EAAE;IAChF,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,uEAAuE;IACvE,MAAM,CAAC,EAAE,CACP,MAAM,CAAC,cAAc,YAAY,GAAG,EACpC,8BAA8B,CAC/B,CAAC;IACF,MAAM,CAAC,KAAK,CACV,QAAQ,IAAI,MAAM,EAClB,KAAK,EACL,sEAAsE,CACvE,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,qEAAqE,EAAE,GAAG,EAAE;IAC/E,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,MAAM,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IAC/C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC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E;AACxE,wEAAwE;AACxE,IAAI,CAAC,iEAAiE,EAAE,GAAG,EAAE;IAC3E,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,sEAAsE;IACtE,0EAA0E;IAC1E,uDAAuD;IACvD,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
@@ -79,6 +79,16 @@ export interface LoadedSchema {
79
79
  /** Absolute paths of every schema file that was read */
80
80
  sourceFiles: string[];
81
81
  }
82
+ /**
83
+ * Split a pipe-delimited markdown row into cells, stripping the optional
84
+ * leading/trailing pipes. `|` characters inside a backtick code-span (e.g.
85
+ * `` `Person|Organization` ``) are treated as literal content and do not
86
+ * split the row — without this, a single union-typed cell would shred into
87
+ * multiple cells and the `findTables` width check would throw at module load
88
+ * (Task 743). Backtick toggling is single-tick only; nested or escaped
89
+ * backticks are out of scope (no schema doc uses them today).
90
+ */
91
+ export declare function splitPipeRow(row: string): string[];
82
92
  /**
83
93
  * Load every `schema-*.md` file from the memory plugin's references directory.
84
94
  *
@@ -1 +1 @@
1
- {"version":3,"file":"schema-loader.d.ts","sourceRoot":"","sources":["../../src/lib/schema-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAKH,mDAAmD;AACnD,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,Y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,EAAE,CAAC;CACvB;AA4LD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAkBlD;AAmID;;;;;;;GAOG;AACH,wBAAgB,UAAU,IAAI,YAAY,CA6EzC"}
@@ -215,15 +215,34 @@ function findTables(content) {
215
215
  }
216
216
  /**
217
217
  * Split a pipe-delimited markdown row into cells, stripping the optional
218
- * leading/trailing pipes.
218
+ * leading/trailing pipes. `|` characters inside a backtick code-span (e.g.
219
+ * `` `Person|Organization` ``) are treated as literal content and do not
220
+ * split the row — without this, a single union-typed cell would shred into
221
+ * multiple cells and the `findTables` width check would throw at module load
222
+ * (Task 743). Backtick toggling is single-tick only; nested or escaped
223
+ * backticks are out of scope (no schema doc uses them today).
219
224
  */
220
- function splitPipeRow(row) {
225
+ export function splitPipeRow(row) {
221
226
  let trimmed = row.trim();
222
227
  if (trimmed.startsWith("|"))
223
228
  trimmed = trimmed.slice(1);
224
229
  if (trimmed.endsWith("|"))
225
230
  trimmed = trimmed.slice(0, -1);
226
- return trimmed.split("|").map((c) => c.trim());
231
+ const cells = [];
232
+ let inBacktick = false;
233
+ let start = 0;
234
+ for (let i = 0; i < trimmed.length; i++) {
235
+ const ch = trimmed[i];
236
+ if (ch === "`") {
237
+ inBacktick = !inBacktick;
238
+ }
239
+ else if (ch === "|" && !inBacktick) {
240
+ cells.push(trimmed.slice(start, i).trim());
241
+ start = i + 1;
242
+ }
243
+ }
244
+ cells.push(trimmed.slice(start).trim());
245
+ return cells;
227
246
  }
228
247
  function findColumnIndex(headers, name) {
229
248
  return headers.findIndex((h) => h.toLowerCase() === name.toLowerCase());
@@ -1 +1 @@
1
- {"version":3,"file":"schema-loader.js","sourceRoot":"","sources":["../../src/lib/schema-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,C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WAAW;KACZ,CAAC;AACJ,CAAC"}
@@ -6,7 +6,9 @@
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "start": "node dist/index.js"
9
+ "start": "node dist/index.js",
10
+ "smoke": "bash ./scripts/boot-smoke.sh",
11
+ "prepublish": "bash ./scripts/boot-smoke.sh"
10
12
  },
11
13
  "dependencies": {
12
14
  "@anthropic-ai/sdk": "^0.81.0",