@commonlyai/cli 0.1.52 → 0.1.53
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
|
@@ -449,9 +449,12 @@ const prepareArgv = async (innerArgv, ctx) => {
|
|
|
449
449
|
...buildPublicClaudePolicyArgs(allowedPatterns),
|
|
450
450
|
];
|
|
451
451
|
const claudeBin = resolveClaudePath(claudeEnv);
|
|
452
|
+
// Only stdio servers have a `command`; an HTTP entry (the grant broker)
|
|
453
|
+
// carries a `url` instead, and `isAbsolute(undefined)` throws — every
|
|
454
|
+
// confined spawn of a seat with a broker grant died here (2026-09-18).
|
|
452
455
|
const mcpExecutables = (env.mcp || [])
|
|
453
456
|
.map((server) => server?.command?.[0])
|
|
454
|
-
.filter((command) => isAbsolute(command));
|
|
457
|
+
.filter((command) => typeof command === 'string' && isAbsolute(command));
|
|
455
458
|
const wrapped = wrapArgvWithSeatbelt([claudeBin, ...innerArgv], {
|
|
456
459
|
workspacePath: ctx.cwd,
|
|
457
460
|
workspaceAccess: sandboxMode === 'read-only' ? 'read' : 'write',
|