@cohortapp/agent-sdk 2.18.17 → 2.18.18

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.
@@ -239,6 +239,19 @@ export function sessionArgs(i = {}) {
239
239
  : ["--session-id", String(i.sessionId)];
240
240
  }
241
241
 
242
+ /**
243
+ * Argv for a lane whose whole job is text in, JSON out (capture, reflect,
244
+ * curator). The child gets NO tools and NO MCP servers: it reads a transcript
245
+ * or a memory set, and anything in that text that reads like an instruction
246
+ * ("merge the PR", "run this") must stay text. A tool-bearing child would
247
+ * inherit the seat's permission mode and could act on it. The parent parses
248
+ * the child's stdout, so nothing the lane needs is lost.
249
+ *
250
+ * @param {{model: string}} i - the lane input.
251
+ * @returns {string[]} the claude argv.
252
+ */
253
+ const TEXT_ONLY_ARGV = (i) => ["--print", "--model", i.model, "--strict-mcp-config", "--tools", ""];
254
+
242
255
  const LANES = Object.freeze({
243
256
  dispatcher: {
244
257
  posture: "stock-oauth", stdin: false, retarget: true,
@@ -270,15 +283,15 @@ const LANES = Object.freeze({
270
283
  },
271
284
  capture: {
272
285
  posture: "path", stdin: true, retarget: false, collectiveChild: true,
273
- argv: (i, x) => ["--print", "--model", i.model, ...x.mcp],
286
+ argv: (i) => TEXT_ONLY_ARGV(i),
274
287
  },
275
288
  reflect: {
276
289
  posture: "path", stdin: true, retarget: false, collectiveChild: true,
277
- argv: (i, x) => ["--print", "--model", i.model, ...x.mcp],
290
+ argv: (i) => TEXT_ONLY_ARGV(i),
278
291
  },
279
292
  curator: {
280
293
  posture: "path", stdin: true, retarget: false, collectiveChild: true,
281
- argv: (i, x) => ["--print", "--model", i.model, ...x.mcp],
294
+ argv: (i) => TEXT_ONLY_ARGV(i),
282
295
  },
283
296
  enrich: {
284
297
  posture: "inherit", stdin: false, retarget: false,
@@ -490,7 +503,7 @@ export const ENGINE_RUN_FLAGS = Object.freeze([
490
503
  "-p", "--print", "--output-format", "--model", "--session-id", "--resume", "--max-turns", "--append-system-prompt",
491
504
  // W2-D: MCP, permissions, settings.
492
505
  "--mcp-config", "--strict-mcp-config", "--permission-mode", "--dangerously-skip-permissions",
493
- "--allowedTools", "--disallowedTools", "--settings",
506
+ "--allowedTools", "--disallowedTools", "--settings", "--tools",
494
507
  // W3-G (CF-45): the router knobs and the daemon's bare mode.
495
508
  "--add-dir", "--plugin-dir", "--effort", "--agents", "--bare",
496
509
  // W4-E1 (row 24): the per-session spend cap.
@@ -516,6 +529,7 @@ const CLAUDE_TO_ENGINE = Object.freeze({
516
529
  "--permission-mode": { flag: "--permission-mode", value: true },
517
530
  "--allowedTools": { flag: "--allowedTools", value: true },
518
531
  "--disallowedTools": { flag: "--disallowedTools", value: true },
532
+ "--tools": { flag: "--tools", value: true },
519
533
  "--settings": { flag: "--settings", value: true },
520
534
  "--add-dir": { flag: "--add-dir", value: true },
521
535
  "--plugin-dir": { flag: "--plugin-dir", value: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cohortapp/agent-sdk",
3
- "version": "2.18.17",
3
+ "version": "2.18.18",
4
4
  "description": "Cohort Agent SDK — autonomous AI colleague runtime. Deploy senior AI colleagues on dedicated Mac minis, wired to the Cohort operating surface.",
5
5
  "type": "module",
6
6
  "bin": {