@papyruslabsai/seshat-mcp 0.4.0 → 0.4.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/dist/bootstrap.js +5 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -97,10 +97,13 @@ export async function bootstrap(projectDir) {
|
|
|
97
97
|
const projectName = inferProjectName(projectDir);
|
|
98
98
|
process.stderr.write(`[seshat-mcp] Auto-bootstrap: extracting ${projectName} from ${projectDir}\n`);
|
|
99
99
|
return new Promise((resolve) => {
|
|
100
|
-
// On Windows, npx is npx.cmd
|
|
100
|
+
// On Windows, npx is npx.cmd and must run through shell.
|
|
101
|
+
// shell: true concatenates args into a command string, so paths with
|
|
102
|
+
// spaces must be double-quoted to survive CMD parsing.
|
|
101
103
|
const isWindows = process.platform === 'win32';
|
|
102
104
|
const npxCmd = isWindows ? 'npx.cmd' : 'npx';
|
|
103
|
-
const
|
|
105
|
+
const q = (s) => isWindows && s.includes(' ') ? `"${s}"` : s;
|
|
106
|
+
const child = spawn(npxCmd, ['-y', '@papyruslabsai/seshat-extract', q(projectDir), q(seshatDir), projectName], {
|
|
104
107
|
cwd: projectDir,
|
|
105
108
|
shell: isWindows, // Windows needs shell: true for .cmd files
|
|
106
109
|
stdio: ['pipe', 'pipe', 'pipe'],
|
package/dist/index.js
CHANGED