@fish-under-sea/dsh-client-ui-task-board-fish 1.0.2 → 1.1.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.
Files changed (123) hide show
  1. package/NOTICE +1 -1
  2. package/README.en.md +4 -4
  3. package/README.md +4 -4
  4. package/README.zh.md +4 -4
  5. package/lib/client.js +4428 -1508
  6. package/lib/client.js.map +1 -1
  7. package/lib/index.js +2670 -496
  8. package/lib/types/client/CardDefaultPresetField.d.ts +35 -0
  9. package/lib/types/client/PluginSettingsCard.d.ts +130 -19
  10. package/lib/types/client/RangeBubble.d.ts +46 -0
  11. package/lib/types/client/SegmentGroup.d.ts +28 -0
  12. package/lib/types/client/TaskBoardSettingsCard.d.ts +63 -0
  13. package/lib/types/client/board/AttachmentField.d.ts +70 -0
  14. package/lib/types/client/board/ExecutionLog.d.ts +24 -0
  15. package/lib/types/client/board/ReasoningEffortField.d.ts +25 -0
  16. package/lib/types/client/board/TaskForm.d.ts +4 -0
  17. package/lib/types/client/board/VerificationReport.d.ts +2 -15
  18. package/lib/types/client/board/model-options.d.ts +87 -0
  19. package/lib/types/client/board/preset-label.d.ts +21 -0
  20. package/lib/types/client/board/preset-roster.d.ts +45 -0
  21. package/lib/types/client/board/source-group.d.ts +27 -0
  22. package/lib/types/client/body-mutations.d.ts +45 -0
  23. package/lib/types/client/host-api.d.ts +25 -0
  24. package/lib/types/client/locales.d.ts +87 -9
  25. package/lib/types/client/pending-verify.d.ts +47 -0
  26. package/lib/types/client/plugin-card-seat.d.ts +3 -1
  27. package/lib/types/client/service.d.ts +4 -1
  28. package/lib/types/client/settings-form.d.ts +73 -51
  29. package/lib/types/core/attachment.d.ts +132 -0
  30. package/lib/types/core/card-defaults.d.ts +78 -0
  31. package/lib/types/core/controller.d.ts +57 -8
  32. package/lib/types/core/execution-summary.d.ts +52 -0
  33. package/lib/types/core/extension.d.ts +116 -0
  34. package/lib/types/core/launch-width.d.ts +31 -0
  35. package/lib/types/core/reasoning-effort.d.ts +57 -0
  36. package/lib/types/core/session-reuse.d.ts +7 -1
  37. package/lib/types/core/spend-budget.d.ts +28 -0
  38. package/lib/types/core/subtask.d.ts +100 -37
  39. package/lib/types/core/tasks.d.ts +94 -10
  40. package/lib/types/core/use-cases/task-create.d.ts +10 -5
  41. package/lib/types/core/use-cases/task-tag.d.ts +36 -0
  42. package/lib/types/core/use-cases/task-update.d.ts +22 -1
  43. package/lib/types/core/wire-projection.d.ts +35 -0
  44. package/lib/types/core/workspace-target.d.ts +23 -3
  45. package/lib/types/host/attachments.d.ts +250 -0
  46. package/lib/types/host/extension-registry.d.ts +40 -0
  47. package/lib/types/host/launch-admission.d.ts +71 -0
  48. package/lib/types/host-ledger.d.ts +114 -47
  49. package/lib/types/host-routes.d.ts +63 -0
  50. package/lib/types/host-runner.d.ts +164 -18
  51. package/lib/types/host-service.d.ts +182 -46
  52. package/lib/types/host-spend.d.ts +52 -0
  53. package/lib/types/index.d.ts +173 -54
  54. package/lib/types/loopback.d.ts +41 -1
  55. package/lib/types/protocol.d.ts +52 -11
  56. package/lib/types/tool-surface.d.ts +1 -0
  57. package/locale/en.json +6 -0
  58. package/locale/zh.json +6 -0
  59. package/package.json +35 -28
  60. package/src/client/CardDefaultPresetField.tsx +101 -0
  61. package/src/client/PluginSettingsCard.tsx +385 -111
  62. package/src/client/RangeBubble.tsx +164 -0
  63. package/src/client/SegmentGroup.tsx +93 -0
  64. package/src/client/TaskBoardSettingsCard.tsx +332 -37
  65. package/src/client/board/AttachmentField.tsx +383 -0
  66. package/src/client/board/EditTaskModal.tsx +63 -0
  67. package/src/client/board/ExecutionLog.tsx +154 -0
  68. package/src/client/board/LinkSubtaskModal.tsx +1 -1
  69. package/src/client/board/NewTaskModal.tsx +154 -45
  70. package/src/client/board/ReasoningEffortField.tsx +50 -0
  71. package/src/client/board/TagManagerModal.tsx +151 -2
  72. package/src/client/board/TaskBoard.tsx +47 -10
  73. package/src/client/board/TaskCard.tsx +45 -23
  74. package/src/client/board/TaskDetail.tsx +468 -258
  75. package/src/client/board/TaskForm.tsx +19 -4
  76. package/src/client/board/VerificationReport.tsx +143 -104
  77. package/src/client/board/model-options.ts +208 -0
  78. package/src/client/board/preset-label.ts +32 -0
  79. package/src/client/board/preset-roster.ts +58 -0
  80. package/src/client/board/source-group.ts +94 -0
  81. package/src/client/board/task-markdown.module.css +11 -8
  82. package/src/client/board-settings.module.css +35 -7
  83. package/src/client/board.module.css +1044 -105
  84. package/src/client/body-mutations.ts +133 -0
  85. package/src/client/host-api.ts +70 -0
  86. package/src/client/index.ts +109 -95
  87. package/src/client/locales.ts +205 -48
  88. package/src/client/pending-verify.ts +90 -0
  89. package/src/client/plugin-card-seat.ts +8 -2
  90. package/src/client/service.ts +24 -0
  91. package/src/client/settings-card.module.css +466 -89
  92. package/src/client/settings-entry-form.ts +0 -1
  93. package/src/client/settings-form.ts +102 -60
  94. package/src/core/attachment.ts +287 -0
  95. package/src/core/card-defaults.ts +132 -0
  96. package/src/core/controller.ts +90 -11
  97. package/src/core/execution-summary.ts +96 -0
  98. package/src/core/extension.ts +120 -0
  99. package/src/core/launch-width.ts +38 -0
  100. package/src/core/reasoning-effort.ts +92 -0
  101. package/src/core/session-reuse.ts +7 -1
  102. package/src/core/spend-budget.ts +35 -0
  103. package/src/core/store.ts +19 -1
  104. package/src/core/subtask.ts +144 -68
  105. package/src/core/tasks.ts +117 -10
  106. package/src/core/use-cases/task-create.ts +27 -16
  107. package/src/core/use-cases/task-tag.ts +56 -0
  108. package/src/core/use-cases/task-update.ts +33 -5
  109. package/src/core/wire-projection.ts +81 -0
  110. package/src/core/workspace-target.ts +27 -3
  111. package/src/host/agent-tools.ts +33 -21
  112. package/src/host/attachments.ts +650 -0
  113. package/src/host/extension-registry.ts +150 -5
  114. package/src/host/launch-admission.ts +139 -0
  115. package/src/host-ledger.ts +248 -117
  116. package/src/host-routes.ts +233 -15
  117. package/src/host-runner.ts +395 -61
  118. package/src/host-service.ts +512 -139
  119. package/src/host-spend.ts +105 -0
  120. package/src/index.ts +312 -92
  121. package/src/loopback.ts +57 -1
  122. package/src/protocol.ts +83 -18
  123. package/src/tool-surface.ts +1 -0
@@ -132,9 +132,12 @@ function executionView(execution: ExecutionRecord): Record<string, unknown> {
132
132
  ...(execution.initiatedBy === undefined ? {} : { initiatedBy: execution.initiatedBy }),
133
133
  // Set only by record-external-outcome: the Host observed no session for it.
134
134
  ...(execution.external === true ? { external: true } : {}),
135
+ // Every Host run joins a run group (single-member for a new run, and
136
+ // multi-member for a group the ledger stored before it stopped spreading one
137
+ // run across a subtree); the field keeps its historical name.
135
138
  ...(execution.runGroupId === undefined ? {} : { cascade: true }),
136
- // A deferred cascade parent has settled its own turn but still waits for
137
- // its subtasks; that is not a stuck card and the model must not retry it.
139
+ // A parent of a stored group has settled its own turn but still waits for
140
+ // its members; that is not a stuck card and the model must not retry it.
138
141
  ...(execution.ownResult === undefined
139
142
  ? {}
140
143
  : { ownResult: execution.ownResult, awaitingSubtasks: execution.endedAt === undefined }),
@@ -166,6 +169,7 @@ function taskSummary(
166
169
  ...(task.mode === undefined ? {} : { mode: task.mode }),
167
170
  ...(task.permission === undefined ? {} : { permission: task.permission }),
168
171
  ...(task.model === undefined ? {} : { model: task.model }),
172
+ ...(task.reasoningEffort === undefined ? {} : { reasoningEffort: task.reasoningEffort }),
169
173
  ...(task.reuseSession === true ? { reuseSession: true } : {}),
170
174
  ...(task.teamRun === true ? { teamRun: true } : {}),
171
175
  // Default-OFF opt-in: only a card that asked for the goal run reports it.
@@ -276,8 +280,8 @@ function buildSetParentTool(host: TaskBoardToolHost): ToolDefinition {
276
280
  description: [
277
281
  'Attach an existing task under a parent (making it a subtask) or detach it back to the root board by setting its parentId.',
278
282
  'Pass an empty parentId to detach.',
279
- 'The Host refuses the link when the parent is unknown or archived, when the moved task is one of its own descendants, when the resulting depth exceeds the deployment subtask limit (default one level, maximum three), or while the task has an unsettled execution (its link may still be a running cascade parent pointer).',
280
- 'Running a task runs its whole subtree concurrently; a parent card settles only after its own turn and every direct subtask settle.',
283
+ 'The Host refuses the link when the parent is unknown or archived, when the moved task is one of its own descendants, when the resulting depth exceeds the deployment subtask limit (default one level, maximum three), or while the task has an unsettled execution (its link may still be a stored run group parent pointer).',
284
+ 'Running a task opens one run group over its subtree concurrently and leaves a subtask that already sits in the done column alone; a parent card settles only after its own turn and every direct subtask it opened have settled.',
281
285
  ].join(' '),
282
286
  parameters: {
283
287
  taskId: { type: 'string', required: true, description: 'The task whose parent link changes.' },
@@ -306,14 +310,13 @@ function buildRunTool(host: TaskBoardToolHost): ToolDefinition {
306
310
  name: 'task_board_run',
307
311
  description: [
308
312
  'Run a task on the board now, or re-run a settled one.',
309
- 'Running a task also runs its whole subtask tree CONCURRENTLY: the Host opens one real DSH session per member under one run group, each replaying its card pinned workspace, agent preset, permission and model; a subtask that does not pin them inherits its nearest ancestor.',
310
- 'The parent card stays in the running column until its own turn and every direct subtask have settled, and it fails when any member failed; one failing subtask never stops the others.',
313
+ 'Running a card opens ONE session for that card: no session is opened for its subtasks, and the card agent dispatches them itself with subagent. A card whose subtasks are still unfinished runs under the liangshen agent preset and is told which cards to pick up.',
314
+ 'Clicking a subtask runs that subtask as its own root, again without opening anything for its descendants.',
311
315
  'A card whose effective permission is above the deployment session default is refused with confirmation-required until a HUMAN confirms the binding in the board UI; this tool cannot confirm it.',
312
- 'A card whose task carries teamRun instead starts ONE Team Lead session and the Host spawns a teammate per subtask inside it, so those cards run as an Agent Team rather than as independent sessions; that mode needs the deployment Agent Teams service and is refused when it is missing.',
313
316
  'Executions consume real API quota. Sessions are created asynchronously, so read their ids and outcomes back with task_board_get.',
314
317
  ].join(' '),
315
318
  parameters: {
316
- taskId: { type: 'string', required: true, description: 'The task to run; running a root task runs its whole subtree.' },
319
+ taskId: { type: 'string', required: true, description: 'The task to run; only this card gets a session, its unfinished subtasks are dispatched by that session own agent.' },
317
320
  rerun: { type: 'boolean', description: 'Re-run a settled task: reset its column to todo before starting (default false).' },
318
321
  },
319
322
  output: { schema: { type: 'json' }, render: renderJson },
@@ -340,7 +343,7 @@ function buildRunTool(host: TaskBoardToolHost): ToolDefinition {
340
343
  ok: true,
341
344
  started,
342
345
  ...(root === undefined ? {} : { task: taskSummary(root, snapshot.tasks, snapshot.sessionDefaultPermission) }),
343
- note: 'Executions run asynchronously; call task_board_get to read session ids and the settled outcome. The parent settles only after its own turn and every direct subtask settle.',
346
+ note: 'Executions run asynchronously; call task_board_get to read session ids and the settled outcome.',
344
347
  })
345
348
  } catch (error) {
346
349
  const message = messageOf(error)
@@ -357,7 +360,7 @@ function buildManageTool(host: TaskBoardToolHost): ToolDefinition {
357
360
  'Move, archive, restore, delete, or settle one task board card.',
358
361
  'move-backlog, move-todo, move-running, move-done and move-failed are the manual column moves and cover every column; a card the runner is executing (one with an open execution) cannot be moved.',
359
362
  'A manual move writes the card column only and never fabricates an execution record, so the card reports a declaration rather than evidence of a run: done/failed declare work finished (or failed) outside a Host-run execution — human work, an external system, a decision made elsewhere — and running says the work is under way without a tracked session. Use task_board_run when the work should actually run in a session here.',
360
- 'record-external-outcome is the record-backed version of move-done and move-failed: use it when YOU, or another agent outside this Host, actually finished or failed the card with your own model, so the terminal column and the run history both derive from one execution record. It takes result (succeeded or failed) and initiatedBy (who completed it, for example your own agent name) plus an optional summary, and it is refused while the card still has an open execution: the Host stays the only authority over a run it is executing. It cannot record running or cancelled — those remain Host-only.',
363
+ 'record-external-outcome is the record-backed version of move-done and move-failed: use it when YOU, or another agent outside this Host, actually finished or failed the card with your own model, so the terminal column and the run history both derive from one execution record. It takes result (succeeded or failed) and initiatedBy (who completed it, for example your own agent name) plus an optional summary, and it is refused while the card still has an open execution: the Host stays the only authority over a run it is executing. It cannot record running or cancelled — those remain Host-only. A parent card that dispatched its subtasks uses it once, at the end, to backfill every subtask card with the conclusion it reached; the Host records an inherited verdict on a subtask the parent never wrote back, so the write-back is what keeps each subtask conclusion its own.',
361
364
  'settle force-closes the open execution of a card the board can no longer observe (a stuck running card) and records it cancelled with the caller as the reason, so the card returns to the todo column and can be run again.',
362
365
  'reset-verification clears the acceptance anomalies (timeouts, authentication failures, an unresolvable judge route, or an attempt the time budget ended) recorded on a card open execution, so the next update_goal(action: complete) runs a fresh acceptance. It is refused unless that execution really carries such anomalies, it never clears a quality verdict, and a spent anomaly budget otherwise HOLDS the card open instead of failing it: tell the user the acceptance environment is unusable and that this action is how they clear it once they have fixed it.',
363
366
  'archive takes the whole subtask tree off the board and is refused while any member has an unsettled execution; restore brings the task, its ancestors and its subtree back; delete removes one card and is refused while it still has subtasks (detach or delete them first) or while it runs.',
@@ -458,7 +461,7 @@ function buildScheduleTool(host: TaskBoardToolHost): ToolDefinition {
458
461
  'Arm, change, or disarm a task scheduled runs. Two kinds of plan exist: a recurring 5-field cron rule (day-of-month and day-of-week follow Vixie semantics: both restricted means OR, otherwise AND), and a one-shot that runs once at a future instant.',
459
462
  'For a one-shot pass mode "once" with at (the planned instant, ms since epoch UTC). For a recurring rule pass mode "cron" (or omit mode) with a cron expression, optionally capped by maxRuns (a positive whole number of scheduled executions; omit for unlimited, pass 0 to clear a cap).',
460
463
  'The wall clock is read in the rule stored IANA time zone; omit timeZone to use the Host zone reported by task_board_list/task_board_get. DST gaps are skipped and an ambiguous fall-back time fires once, at the earlier instant.',
461
- 'A due scheduled task runs the same cascade a manual run does, so a root task runs its whole subtask tree.',
464
+ 'A due scheduled task runs exactly what a manual run of that card does: one session for the card, never one per subtask.',
462
465
  'The scheduler counts executions it actually starts; once a rule reaches its run budget it stops itself in the ledger, and a manual run never consumes the budget. A schedule whose tree contains an unconfirmed above-default permission is refused and does not consume the budget; the reason is reported in the list board summary as schedulerError.',
463
466
  'Missed occurrences during Host downtime are skipped, never queued (a one-shot whose instant passed while the Host was down is stopped as missed); a task that is already running skips its occurrence without consuming the budget.',
464
467
  ].join(' '),
@@ -565,7 +568,8 @@ function buildGetTool(host: TaskBoardToolHost): ToolDefinition {
565
568
  name: 'task_board_get',
566
569
  description: [
567
570
  'Read one task board card in full: prompt, description, labels, column, parent link, direct subtasks, execution targets, schedule, permission gate state, and the last ten execution attempts with their session ids and outcomes.',
568
- 'Use it before running or editing a card, and after a run to read the settled outcome.',
571
+ 'Use it before running or editing a card, after a run to read the settled outcome, and to read each subtask card before dispatching it with subagent.',
572
+ 'A card written before team runs were retired may still report teamRun: true; the field is history and never changes how the Host runs the card.',
569
573
  ].join(' '),
570
574
  parameters: {
571
575
  taskId: { type: 'string', required: true, description: 'Task id, as reported by task_board_list or task_board_create.' },
@@ -586,7 +590,7 @@ function buildCreateTool(host: TaskBoardToolHost): ToolDefinition {
586
590
  name: 'task_board_create',
587
591
  description: [
588
592
  'Create a task on the DSH task board, or a subtask by passing parentId.',
589
- 'A subtask inherits every execution target it does not override (workspace, agent preset, permission, model) from its parent, and inherits the parent human permission confirmation together with an inherited binding.',
593
+ 'A subtask inherits every execution target it does not override (workspace, agent preset, permission, model, reasoning effort) from its parent, and inherits the parent human permission confirmation together with an inherited binding.',
590
594
  'The deployment caps subtask depth (default one level, maximum three): a subtask of a subtask is refused unless the board is configured deeper.',
591
595
  'The task lands in the todo column and does NOT run; call task_board_run to execute it.',
592
596
  ].join(' '),
@@ -596,11 +600,11 @@ function buildCreateTool(host: TaskBoardToolHost): ToolDefinition {
596
600
  prompt: { type: 'string', description: 'The instruction sent to the execution agent; the title is used when blank.' },
597
601
  parentId: { type: 'string', description: 'Parent task id, making this a subtask. Omit for a root task.' },
598
602
  workspaceId: { type: 'string', description: 'Workspace id the execution must run in; omit to inherit the workspace this session is in (root task) or the parent value (subtask).' },
599
- mode: { type: 'string', description: 'Agent preset id the execution session is composed from; omit for the deployment default or the parent value.' },
600
- permission: { type: 'string', enum: [...TASK_PERMISSIONS], description: 'Permission preset for the execution session. Omit to inherit the parent binding; a value above the session default needs a human confirmation in the board UI before the card can run.' },
601
- model: { type: 'string', description: 'Pinned model as provider/model (or a model id); omit for the host default or the parent value.' },
603
+ mode: { type: 'string', description: 'Agent preset id the execution session is composed from; omit to adopt the board new-card default, and the deployment default when none is configured.' },
604
+ permission: { type: 'string', enum: [...TASK_PERMISSIONS], description: 'Permission preset for the execution session; omit to adopt the board new-card default. An omitted permission is never taken from a parent: the launch resolves the parent binding instead. A value above the session default needs a human confirmation in the board UI before the card can run.' },
605
+ model: { type: 'string', description: 'Pinned model as provider/model (or a model id); omit to adopt the board new-card default, and the host default when none is configured.' },
606
+ reasoningEffort: { type: 'string', description: 'Reasoning effort id for that model (an adapter-owned level such as "high"); omit to adopt the board new-card default for that model, and the model own default when none applies. Only an effort the target model declares is sent; an empty string clears it back to the default.' },
602
607
  reuseSession: { type: 'boolean', description: 'Continue later runs in the previous execution session instead of a fresh conversation.' },
603
- teamRun: { type: 'boolean', description: 'Run this task as an Agent Team: running it starts one Team Lead session and the Host spawns a teammate per subtask inside it. Omit or false for one independent session per member. Refused when the deployment serves no Agent Teams service.' },
604
608
  goalRun: { type: 'boolean', description: 'Start each run with dsh built-in /goal so the session keeps working continuation rounds until the goal completes. Off by default: omit (or pass false) for a single plain turn, and pass true to opt this card in. It only takes effect while the deployment global native /goal switch is on.' },
605
609
  skipVerification: { type: 'boolean', description: 'Run this task without the board acceptance gate: update_goal may mark the goal complete without a passing acceptance, and the execution record is marked skipped. Default false (omit to inherit the board-wide acceptance switch). Only affects executions started afterwards.' },
606
610
  tags: {
@@ -645,8 +649,13 @@ function buildCreateTool(host: TaskBoardToolHost): ToolDefinition {
645
649
  ...(args.mode === undefined || args.mode === '' ? {} : { mode: args.mode }),
646
650
  ...(args.permission === undefined ? {} : { permission: args.permission }),
647
651
  ...(args.model === undefined || args.model === '' ? {} : { model: args.model }),
652
+ ...(args.reasoningEffort === undefined || args.reasoningEffort === '' ? {} : { reasoningEffort: args.reasoningEffort }),
653
+ // This tool creates cards on behalf of a deployment that configured its
654
+ // new-card defaults once: an omitted target adopts them instead of
655
+ // leaving the card to resolve the host default at run time. Only the
656
+ // targets the caller omitted are filled.
657
+ applyCardDefaults: true,
648
658
  ...(args.reuseSession === true ? { reuseSession: true } : {}),
649
- ...(args.teamRun === true ? { teamRun: true } : {}),
650
659
  ...(args.goalRun === true ? { goalRun: true } : {}),
651
660
  ...(args.skipVerification === true ? { skipVerification: true } : {}),
652
661
  ...(tags.length === 0 ? {} : { tags }),
@@ -676,7 +685,7 @@ function buildUpdateTool(host: TaskBoardToolHost): ToolDefinition {
676
685
  return defineTool({
677
686
  name: 'task_board_update',
678
687
  description: [
679
- 'Edit a task board card: title, description, prompt, labels, and the execution targets (workspace, agent preset, permission, model, session reuse).',
688
+ 'Edit a task board card: title, description, prompt, labels, and the execution targets (workspace, agent preset, permission, model, reasoning effort, session reuse).',
680
689
  'Only the fields you pass change; pass an empty string to clear a target, or an empty labels array to clear the labels.',
681
690
  'Title, description and prompt freeze once the task has started executing; the execution targets stay editable because they only affect future runs.',
682
691
  'Changing the pinned permission re-arms the permission confirmation gate.',
@@ -704,8 +713,8 @@ function buildUpdateTool(host: TaskBoardToolHost): ToolDefinition {
704
713
  description: 'New permission preset; an empty string clears it back to the session default.',
705
714
  },
706
715
  model: { type: 'string', description: 'New pinned model; an empty string clears it.' },
716
+ reasoningEffort: { type: 'string', description: 'New reasoning effort id for the pinned model; an empty string clears it back to the model own default. Only an effort the target model declares is sent at run time.' },
707
717
  reuseSession: { type: 'boolean', description: 'Continue later runs in the previous execution session.' },
708
- teamRun: { type: 'boolean', description: 'Switches this task between a plain cascade (one session per member) and an Agent Team run (Lead session plus a teammate per subtask).' },
709
718
  goalRun: { type: 'boolean', description: 'Whether each run starts with dsh built-in /goal (default false, one plain turn). Pass true to opt this card in, or false to return it to the default.' },
710
719
  skipVerification: { type: 'boolean', description: 'Whether this task runs without the board acceptance gate (default false, inherit the board-wide switch). Pass true to opt out; pass false to opt back in. Only affects executions started afterwards.' },
711
720
  tags: {
@@ -730,12 +739,15 @@ function buildUpdateTool(host: TaskBoardToolHost): ToolDefinition {
730
739
  if (has(args, 'workspaceId') && typeof args.workspaceId === 'string') patch.workspaceId = args.workspaceId
731
740
  if (has(args, 'mode') && typeof args.mode === 'string') patch.mode = args.mode
732
741
  if (has(args, 'model') && typeof args.model === 'string') patch.model = args.model
742
+ // An empty effort is the wire's clearing value (back to the model's own default).
743
+ if (has(args, 'reasoningEffort') && typeof args.reasoningEffort === 'string') {
744
+ patch.reasoningEffort = args.reasoningEffort
745
+ }
733
746
  // An empty permission is the wire's clearing value (back to the session default).
734
747
  if (has(args, 'permission') && typeof args.permission === 'string') {
735
748
  patch.permission = args.permission === '' ? undefined : args.permission
736
749
  }
737
750
  if (has(args, 'reuseSession')) patch.reuseSession = args.reuseSession === true
738
- if (has(args, 'teamRun')) patch.teamRun = args.teamRun === true
739
751
  if (has(args, 'goalRun')) patch.goalRun = args.goalRun === true ? true : false
740
752
  if (has(args, 'skipVerification')) patch.skipVerification = args.skipVerification === true ? true : false
741
753
  if (has(args, 'tags')) {