@zoraxylia/dsh-codex-adapter 0.1.17 → 0.1.19

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-adapter",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Dispatch subtasks to DeepSeek Harness (DSH) agents as native subagents with live progress",
5
5
  "author": {
6
6
  "name": "zx-yk"
package/lib/client.js CHANGED
@@ -513,7 +513,7 @@ const COPY = {
513
513
  },
514
514
  save: "保存",
515
515
  saved: "已保存",
516
- jobs: "Worker 任务",
516
+ jobs: "实时 Worker 任务",
517
517
  empty: "当前没有 worker 任务。",
518
518
  history: "历史看板",
519
519
  historyEmpty: "还没有历史记录。",
@@ -698,7 +698,7 @@ const COPY = {
698
698
  },
699
699
  save: "Save",
700
700
  saved: "Saved",
701
- jobs: "Worker jobs",
701
+ jobs: "Live worker jobs",
702
702
  empty: "No worker jobs yet.",
703
703
  history: "History",
704
704
  historyEmpty: "No history yet.",
@@ -1541,15 +1541,39 @@ function WorkersPanel({ ctx }) {
1541
1541
  }) : fields]
1542
1542
  });
1543
1543
  const integrationRow = (name, installed, extra, installTarget, uninstallTarget, tips) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1544
- style: S.card,
1544
+ style: {
1545
+ ...S.card,
1546
+ transition: "background 120ms ease",
1547
+ borderRadius: 8
1548
+ },
1549
+ onMouseEnter: (e) => {
1550
+ e.currentTarget.style.background = "rgba(128,128,128,0.06)";
1551
+ },
1552
+ onMouseLeave: (e) => {
1553
+ e.currentTarget.style.background = "transparent";
1554
+ },
1545
1555
  children: [
1546
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1556
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
1547
1557
  style: {
1558
+ display: "flex",
1559
+ alignItems: "center",
1560
+ gap: 7,
1548
1561
  fontWeight: 600,
1549
1562
  fontSize: 13,
1550
1563
  minWidth: 92
1551
1564
  },
1552
- children: name
1565
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1566
+ "aria-hidden": "true",
1567
+ title: installed ? copy.installed : copy.notInstalled,
1568
+ style: {
1569
+ width: 7,
1570
+ height: 7,
1571
+ borderRadius: "50%",
1572
+ flexShrink: 0,
1573
+ background: installed ? "#3fb950" : "rgba(128,128,128,0.45)",
1574
+ boxShadow: installed ? "0 0 0 2px rgba(63,185,80,0.18)" : "none"
1575
+ }
1576
+ }), name]
1553
1577
  }),
1554
1578
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1555
1579
  style: S.chip(installed),
@@ -1791,6 +1815,7 @@ function WorkersPanel({ ctx }) {
1791
1815
  ]
1792
1816
  }, job.id);
1793
1817
  };
1818
+ const runningJobs = jobsLoaded ? jobs.filter((j) => j.status === "running" && j.originWriterAlive !== false).length : 0;
1794
1819
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1795
1820
  style: {
1796
1821
  display: "flex",
@@ -1813,32 +1838,79 @@ function WorkersPanel({ ctx }) {
1813
1838
  children: copy.intro
1814
1839
  }),
1815
1840
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1841
+ role: "tablist",
1842
+ "aria-label": copy.title,
1843
+ onKeyDown: (e) => {
1844
+ if (e.key !== "ArrowRight" && e.key !== "ArrowLeft") return;
1845
+ e.preventDefault();
1846
+ const index = TABS.indexOf(tab);
1847
+ const step = e.key === "ArrowRight" ? 1 : TABS.length - 1;
1848
+ setTab(TABS[(index + step) % TABS.length]);
1849
+ },
1816
1850
  style: {
1851
+ position: "sticky",
1852
+ top: 0,
1853
+ zIndex: 6,
1817
1854
  display: "flex",
1818
1855
  gap: 2,
1856
+ marginTop: 2,
1857
+ paddingTop: 4,
1858
+ marginBottom: -1,
1859
+ background: "Canvas",
1819
1860
  borderBottom: "1px solid rgba(128,128,128,0.2)",
1820
- marginTop: 2
1861
+ boxShadow: "0 1px 0 rgba(128,128,128,0.06)"
1821
1862
  },
1822
1863
  children: [
1823
1864
  ["integrations", copy.integrations],
1824
1865
  ["config", copy.globalConfig],
1825
1866
  ["history", copy.history]
1826
- ].map(([key, label]) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1827
- type: "button",
1828
- onClick: () => setTab(key),
1829
- style: {
1830
- padding: "6px 12px",
1831
- fontSize: 12.5,
1832
- border: "none",
1833
- background: "transparent",
1834
- cursor: "pointer",
1835
- color: tab === key ? "inherit" : "rgba(128,128,128,0.85)",
1836
- fontWeight: tab === key ? 600 : 400,
1837
- borderBottom: tab === key ? "2px solid #4c8dff" : "2px solid transparent",
1838
- marginBottom: -1
1839
- },
1840
- children: label
1841
- }, key))
1867
+ ].map(([key, label]) => {
1868
+ const active = tab === key;
1869
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
1870
+ type: "button",
1871
+ role: "tab",
1872
+ "aria-selected": active,
1873
+ tabIndex: active ? 0 : -1,
1874
+ onClick: () => setTab(key),
1875
+ onMouseEnter: (e) => {
1876
+ if (!active) e.currentTarget.style.background = "rgba(128,128,128,0.10)";
1877
+ },
1878
+ onMouseLeave: (e) => {
1879
+ e.currentTarget.style.background = "transparent";
1880
+ },
1881
+ style: {
1882
+ display: "inline-flex",
1883
+ alignItems: "center",
1884
+ padding: "6px 12px",
1885
+ fontSize: 12.5,
1886
+ border: "none",
1887
+ background: "transparent",
1888
+ cursor: "pointer",
1889
+ borderRadius: "6px 6px 0 0",
1890
+ color: active ? "inherit" : "rgba(128,128,128,0.9)",
1891
+ fontWeight: active ? 600 : 400,
1892
+ borderBottom: `2px solid ${active ? "#4c8dff" : "transparent"}`,
1893
+ transition: "color 120ms ease, border-color 120ms ease, background 120ms ease"
1894
+ },
1895
+ children: [label, key === "history" && runningJobs > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1896
+ "aria-label": String(runningJobs),
1897
+ style: {
1898
+ marginLeft: 6,
1899
+ minWidth: 16,
1900
+ height: 16,
1901
+ padding: "0 4px",
1902
+ borderRadius: 99,
1903
+ background: "#4c8dff",
1904
+ color: "#fff",
1905
+ fontSize: 10.5,
1906
+ lineHeight: "16px",
1907
+ textAlign: "center",
1908
+ fontWeight: 600
1909
+ },
1910
+ children: runningJobs
1911
+ })]
1912
+ }, key);
1913
+ })
1842
1914
  }),
1843
1915
  tab === "integrations" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1844
1916
  style: {
@@ -2651,7 +2723,16 @@ function WorkersPanel({ ctx }) {
2651
2723
  const secs = Number.isFinite(start) && Number.isFinite(end) && end >= start ? ((end - start) / 1e3).toFixed(1) + "s" : "—";
2652
2724
  const color = r.status === "failed" ? "#e5484d" : r.status === "done" ? "#3fb950" : void 0;
2653
2725
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", {
2654
- style: { borderTop: "1px solid rgba(128,128,128,0.14)" },
2726
+ style: {
2727
+ borderTop: "1px solid rgba(128,128,128,0.14)",
2728
+ transition: "background 120ms ease"
2729
+ },
2730
+ onMouseEnter: (e) => {
2731
+ e.currentTarget.style.background = "rgba(128,128,128,0.05)";
2732
+ },
2733
+ onMouseLeave: (e) => {
2734
+ e.currentTarget.style.background = "transparent";
2735
+ },
2655
2736
  children: [
2656
2737
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2657
2738
  style: {
package/lib/server.mjs CHANGED
@@ -14483,13 +14483,15 @@ function pluginEnv(suffix, options = {}) {
14483
14483
  }
14484
14484
 
14485
14485
  // src/hub-client.mjs
14486
- var BASE = (pluginEnv("ADAPTER_HUB") ?? readGlobalConfig().hub_url).replace(/\/$/, "");
14487
- var API = `${BASE}/_dsh/dsh-adapter`;
14486
+ function apiBase() {
14487
+ const base = (pluginEnv("ADAPTER_HUB") ?? readGlobalConfig().hub_url ?? "").replace(/\/+$/, "");
14488
+ return `${base}/_dsh/dsh-adapter`;
14489
+ }
14488
14490
  var lastProbe = { at: 0, ok: false };
14489
14491
  async function hubAvailable() {
14490
14492
  if (Date.now() - lastProbe.at < 1e4) return lastProbe.ok;
14491
14493
  try {
14492
- const res = await fetch(`${API}/ping`, { signal: AbortSignal.timeout(800) });
14494
+ const res = await fetch(`${apiBase()}/ping`, { signal: AbortSignal.timeout(800) });
14493
14495
  const body = await res.json();
14494
14496
  lastProbe = { at: Date.now(), ok: res.ok && body?.service === "dsh-adapter-hub" };
14495
14497
  } catch {
@@ -14498,7 +14500,7 @@ async function hubAvailable() {
14498
14500
  return lastProbe.ok;
14499
14501
  }
14500
14502
  async function call(path, init) {
14501
- const res = await fetch(`${API}${path}`, init);
14503
+ const res = await fetch(`${apiBase()}${path}`, init);
14502
14504
  const body = await res.json();
14503
14505
  if (!res.ok || body.ok === false) throw new Error(body.error ?? `hub request failed (${res.status})`);
14504
14506
  return body;
@@ -15072,7 +15074,7 @@ function describeBindings(config = {}) {
15072
15074
  }
15073
15075
 
15074
15076
  // src/server.mjs
15075
- var server = new McpServer({ name: "dsh-adapter", version: "0.1.17" });
15077
+ var server = new McpServer({ name: "dsh-adapter", version: "0.1.19" });
15076
15078
  var tierSchema = external_exports.enum(["flash", "pro"]).optional().describe("Worker model tier. flash = mechanical, well-scoped work (single-file edits, lookups, formatting); pro = multi-file changes, debugging, design judgment. Omit to use the session default. Ignored when worker= is set.");
15077
15079
  var effortSchema = external_exports.enum(["off", "high", "max"]).optional().describe("Reasoning effort for the worker. Omit to use the session default. With worker= it only applies when passed explicitly and the profile supports it (agy maps to low/medium/high).");
15078
15080
  var workerSchema = external_exports.string().optional().describe('Named CLI worker profile (e.g. "agy" or "grok"). Explicit opt-in only: set it when the user explicitly asks for that external coding CLI, never as a default. When set, dispatch bypasses tier/mode and runs the task through that CLI; the profile pins backend\xD7model\xD7effort. See dsh_worker_config output, worker_profiles field, for the available profiles.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoraxylia/dsh-codex-adapter",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "main": "./src/hub/index.mjs",
6
6
  "description": "Dispatch tasks from Claude Code / Codex to DSH agents as native subagents with live progress; configure dispatch defaults, execution mode, and vision / image-generation access, installed into the host in one click.",
@@ -136,7 +136,7 @@ const COPY = {
136
136
  cardMM: { t: '视觉与生图', d: '给纯文本的 DSH 模型借来眼睛和画笔:describe_image、会话贴图转写与 generate_image 都用这里的设置。' },
137
137
  cardCustomProv: { t: '自定义 Provider', d: '接入自己的 API 或本地命令;保存后会出现在上面的视觉 / 生图 provider 选择里。' },
138
138
  modeDesc: { auto: 'auto · 优先 hub', hub: 'hub · 必须 hub', standalone: 'standalone · 独立进程' },
139
- save: '保存', saved: '已保存', jobs: 'Worker 任务', empty: '当前没有 worker 任务。',
139
+ save: '保存', saved: '已保存', jobs: '实时 Worker 任务', empty: '当前没有 worker 任务。',
140
140
  history: '历史看板', historyEmpty: '还没有历史记录。', historyTotal: '总数', historyDone: '成功', historyFailed: '失败',
141
141
  historyAvg: '平均耗时', historyRefresh: '刷新', historyTime: '时间', historyTier: '档位', historyModel: '模型',
142
142
  historyStatus: '状态', historyCost: '耗时', historyTask: '任务',
@@ -235,7 +235,7 @@ const COPY = {
235
235
  cardMM: { t: 'Vision & image generation', d: "Lends the harness's text-only models eyes and a brush: describe_image, pasted-image transcription and generate_image all use these settings." },
236
236
  cardCustomProv: { t: 'Custom providers', d: 'Bring your own API or local command; saved providers appear in the vision / image-gen selects above.' },
237
237
  modeDesc: { auto: 'auto · prefer hub', hub: 'hub · require hub', standalone: 'standalone' },
238
- save: 'Save', saved: 'Saved', jobs: 'Worker jobs', empty: 'No worker jobs yet.',
238
+ save: 'Save', saved: 'Saved', jobs: 'Live worker jobs', empty: 'No worker jobs yet.',
239
239
  history: 'History', historyEmpty: 'No history yet.', historyTotal: 'Total', historyDone: 'Done', historyFailed: 'Failed',
240
240
  historyAvg: 'Avg duration', historyRefresh: 'Refresh', historyTime: 'Time', historyTier: 'Tier', historyModel: 'Model',
241
241
  historyStatus: 'Status', historyCost: 'Duration', historyTask: 'Task',
@@ -726,8 +726,17 @@ function WorkersPanel({ ctx }: { ctx: any }) {
726
726
  );
727
727
 
728
728
  const integrationRow = (name: string, installed: boolean, extra: any, installTarget: string, uninstallTarget: string, tips: any) => (
729
- <div style={S.card}>
730
- <span style={{ fontWeight: 600, fontSize: 13, minWidth: 92 }}>{name}</span>
729
+ <div style={{ ...S.card, transition: 'background 120ms ease', borderRadius: 8 }}
730
+ onMouseEnter={(e: any) => { e.currentTarget.style.background = 'rgba(128,128,128,0.06)'; }}
731
+ onMouseLeave={(e: any) => { e.currentTarget.style.background = 'transparent'; }}>
732
+ <span style={{ display: 'flex', alignItems: 'center', gap: 7, fontWeight: 600, fontSize: 13, minWidth: 92 }}>
733
+ <span aria-hidden="true" title={installed ? copy.installed : copy.notInstalled} style={{
734
+ width: 7, height: 7, borderRadius: '50%', flexShrink: 0,
735
+ background: installed ? '#3fb950' : 'rgba(128,128,128,0.45)',
736
+ boxShadow: installed ? '0 0 0 2px rgba(63,185,80,0.18)' : 'none',
737
+ }} />
738
+ {name}
739
+ </span>
731
740
  <span style={S.chip(installed)}>{installed ? `● ${copy.installed}` : `○ ${copy.notInstalled}`}</span>
732
741
  {extra}
733
742
  <span style={{ flex: 1 }} />
@@ -813,22 +822,55 @@ function WorkersPanel({ ctx }: { ctx: any }) {
813
822
  );
814
823
  };
815
824
 
825
+ const runningJobs = jobsLoaded ? jobs.filter((j: any) => j.status === 'running' && j.originWriterAlive !== false).length : 0;
826
+
816
827
  return (
817
828
  <div style={{ display: 'flex', flexDirection: 'column', gap: 8, fontSize: 13, lineHeight: 1.55 }}>
818
829
  <div style={{ fontSize: 19, fontWeight: 600, marginBottom: -2 }}>{copy.title}</div>
819
830
  <div style={{ opacity: 0.75 }}>{copy.intro}</div>
820
831
 
821
- <div style={{ display: 'flex', gap: 2, borderBottom: '1px solid rgba(128,128,128,0.2)', marginTop: 2 }}>
822
- {([['integrations', copy.integrations], ['config', copy.globalConfig], ['history', copy.history]] as const).map(([key, label]) => (
823
- <button key={key} type="button" onClick={() => setTab(key)}
824
- style={{
825
- padding: '6px 12px', fontSize: 12.5, border: 'none', background: 'transparent', cursor: 'pointer',
826
- color: tab === key ? 'inherit' : 'rgba(128,128,128,0.85)',
827
- fontWeight: tab === key ? 600 : 400,
828
- borderBottom: tab === key ? '2px solid #4c8dff' : '2px solid transparent',
829
- marginBottom: -1,
830
- }}>{label}</button>
831
- ))}
832
+ <div role="tablist" aria-label={copy.title}
833
+ onKeyDown={(e: any) => {
834
+ if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return;
835
+ e.preventDefault();
836
+ const index = TABS.indexOf(tab);
837
+ const step = e.key === 'ArrowRight' ? 1 : TABS.length - 1;
838
+ setTab(TABS[(index + step) % TABS.length]);
839
+ }}
840
+ style={{
841
+ position: 'sticky', top: 0, zIndex: 6, display: 'flex', gap: 2, marginTop: 2,
842
+ paddingTop: 4, marginBottom: -1,
843
+ background: 'Canvas',
844
+ borderBottom: '1px solid rgba(128,128,128,0.2)',
845
+ boxShadow: '0 1px 0 rgba(128,128,128,0.06)',
846
+ }}>
847
+ {([['integrations', copy.integrations], ['config', copy.globalConfig], ['history', copy.history]] as const).map(([key, label]) => {
848
+ const active = tab === key;
849
+ return (
850
+ <button key={key} type="button" role="tab" aria-selected={active} tabIndex={active ? 0 : -1}
851
+ onClick={() => setTab(key)}
852
+ onMouseEnter={(e: any) => { if (!active) e.currentTarget.style.background = 'rgba(128,128,128,0.10)'; }}
853
+ onMouseLeave={(e: any) => { e.currentTarget.style.background = 'transparent'; }}
854
+ style={{
855
+ display: 'inline-flex', alignItems: 'center',
856
+ padding: '6px 12px', fontSize: 12.5, border: 'none', background: 'transparent',
857
+ cursor: 'pointer', borderRadius: '6px 6px 0 0',
858
+ color: active ? 'inherit' : 'rgba(128,128,128,0.9)',
859
+ fontWeight: active ? 600 : 400,
860
+ borderBottom: `2px solid ${active ? '#4c8dff' : 'transparent'}`,
861
+ transition: 'color 120ms ease, border-color 120ms ease, background 120ms ease',
862
+ }}>
863
+ {label}
864
+ {key === 'history' && runningJobs > 0 && (
865
+ <span aria-label={String(runningJobs)} style={{
866
+ marginLeft: 6, minWidth: 16, height: 16, padding: '0 4px', borderRadius: 99,
867
+ background: '#4c8dff', color: '#fff', fontSize: 10.5, lineHeight: '16px',
868
+ textAlign: 'center', fontWeight: 600,
869
+ }}>{runningJobs}</span>
870
+ )}
871
+ </button>
872
+ );
873
+ })}
832
874
  </div>
833
875
 
834
876
  {tab === 'integrations' && (
@@ -1085,7 +1127,9 @@ function WorkersPanel({ ctx }: { ctx: any }) {
1085
1127
  const secs = Number.isFinite(start) && Number.isFinite(end) && end >= start ? ((end - start) / 1000).toFixed(1) + 's' : '—';
1086
1128
  const color = r.status === 'failed' ? '#e5484d' : r.status === 'done' ? '#3fb950' : undefined;
1087
1129
  return (
1088
- <tr key={r.id} style={{ borderTop: '1px solid rgba(128,128,128,0.14)' }}>
1130
+ <tr key={r.id} style={{ borderTop: '1px solid rgba(128,128,128,0.14)', transition: 'background 120ms ease' }}
1131
+ onMouseEnter={(e: any) => { e.currentTarget.style.background = 'rgba(128,128,128,0.05)'; }}
1132
+ onMouseLeave={(e: any) => { e.currentTarget.style.background = 'transparent'; }}>
1089
1133
  <td style={{ padding: '4px 6px', whiteSpace: 'nowrap' }}>{r.endedAt ? new Date(r.endedAt).toLocaleString() : '—'}</td>
1090
1134
  <td style={{ padding: '4px 6px' }}>{r.tier ?? '—'}</td>
1091
1135
  <td style={{ padding: '4px 6px' }}>{r.model ?? '—'}{r.effort ? ` @${r.effort}` : ''}</td>
@@ -5,15 +5,23 @@
5
5
  import { readGlobalConfig } from './install/install.mjs';
6
6
  import { pluginEnv } from './plugin-env.mjs';
7
7
 
8
- const BASE = (pluginEnv('ADAPTER_HUB') ?? readGlobalConfig().hub_url).replace(/\/$/, '');
9
- const API = `${BASE}/_dsh/dsh-adapter`;
8
+ /**
9
+ * Resolved per call: DSH picks a fresh port on every launch and the hub URL is
10
+ * synced into the config afterwards, so a long-lived MCP process must not pin
11
+ * the value it saw at startup (that made the desktop/CLI session report the
12
+ * hub as unreachable after one DSH restart, then fall into standalone mode).
13
+ */
14
+ function apiBase() {
15
+ const base = (pluginEnv('ADAPTER_HUB') ?? readGlobalConfig().hub_url ?? '').replace(/\/+$/, '');
16
+ return `${base}/_dsh/dsh-adapter`;
17
+ }
10
18
 
11
19
  let lastProbe = { at: 0, ok: false };
12
20
 
13
21
  export async function hubAvailable() {
14
22
  if (Date.now() - lastProbe.at < 10_000) return lastProbe.ok;
15
23
  try {
16
- const res = await fetch(`${API}/ping`, { signal: AbortSignal.timeout(800) });
24
+ const res = await fetch(`${apiBase()}/ping`, { signal: AbortSignal.timeout(800) });
17
25
  const body = await res.json();
18
26
  lastProbe = { at: Date.now(), ok: res.ok && body?.service === 'dsh-adapter-hub' };
19
27
  } catch {
@@ -23,7 +31,7 @@ export async function hubAvailable() {
23
31
  }
24
32
 
25
33
  async function call(path, init) {
26
- const res = await fetch(`${API}${path}`, init);
34
+ const res = await fetch(`${apiBase()}${path}`, init);
27
35
  const body = await res.json();
28
36
  if (!res.ok || body.ok === false) throw new Error(body.error ?? `hub request failed (${res.status})`);
29
37
  return body;
package/src/server.mjs CHANGED
@@ -12,7 +12,7 @@ import { acquireCwdLock, releaseCwdLockByJobId, updateCwdLockHolder, getCwdLocks
12
12
  import { resolveWorkerCwd } from './paths.mjs';
13
13
  import { detectOrchestrator } from './process-info.mjs';
14
14
 
15
- const server = new McpServer({ name: 'dsh-adapter', version: '0.1.17' });
15
+ const server = new McpServer({ name: 'dsh-adapter', version: '0.1.19' });
16
16
 
17
17
  const tierSchema = z.enum(['flash', 'pro']).optional().describe('Worker model tier. flash = mechanical, well-scoped work (single-file edits, lookups, formatting); pro = multi-file changes, debugging, design judgment. Omit to use the session default. Ignored when worker= is set.');
18
18
  const effortSchema = z.enum(['off', 'high', 'max']).optional().describe('Reasoning effort for the worker. Omit to use the session default. With worker= it only applies when passed explicitly and the profile supports it (agy maps to low/medium/high).');