dsh-baton-mcp 0.6.20 → 0.6.21

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/README.md CHANGED
@@ -258,6 +258,7 @@ The server's MCP instructions are a single sentence; how to hand over, wait and
258
258
  | `dsh_answer` | Send your answer to the questions a run stopped to ask (Harness's ask_user_question): per question, an option number or label, free text, or skip; on a single choice, free text replaces the option. `dsh_wait` and `wait_command` return as soon as a run asks, with the questions (`needs_input`, `question`; the option Harness's model would pick is in `harness_suggested`); the main agent asks you and sends your answer. You can also answer in the Harness window: whoever answers first wins |
259
259
  | `dsh_session_activity` | Codex: through `dsh_call`. What a session is doing now: running turn, sub-agents (any depth), background jobs; `archived: true` for an archived session |
260
260
  | `dsh_update_queued` | Codex: through `dsh_call`. Change a message still waiting in the queue of a busy session, by its `run_id`: `edit` its text, `remove` it, or `steer` it into the running turn now. Once it has reached the conversation it can no longer be changed |
261
+ | `dsh_card` | Codex: through `dsh_call`. With Harness's Personalized recommendations plugin on (and not in PTC mode), a reply may end with a card: a page to create, or a built-in plugin to enable. Only the Harness window shows it, so `dsh_wait`, `wait_command` and `dsh_status` return it as `card` (`kind`, `title`, `brief`, `details`, `state`, `choices`), and the main agent asks you. On your answer it acts as the card's button does: `create` (with `slot` or `custom_location` to put the page elsewhere), `enable`, `not_now`, `cancel`, `undo` or `restore`. Creating a page takes minutes and many tokens |
261
262
  | `dsh_cancel` | Stop everything a session is doing, by `run_id` or `session_id`: turn, sub-agents, jobs. Harness also drops the messages waiting in its queue; their runs end as `cancelled` |
262
263
  | `dsh_rename_session` | Codex: through `dsh_call`. Rename a session |
263
264
  | `dsh_rename_workspace` | Codex: through `dsh_call`. Rename a workspace (sidebar title only; the folder is not moved) |
package/README.zh-CN.md CHANGED
@@ -258,6 +258,7 @@ Codex 占 ChatGPT Plus 5 小时额度的比例,以及主 Agent 自己的花费
258
258
  | `dsh_answer` | 把你对运行中途提问的回答发回去(Harness 的 ask_user_question):每道题可以填选项编号或选项文字、自由填写,或者跳过;单选题填了文字就以文字为准。运行一提问,`dsh_wait` 和 `wait_command` 就立刻返回,带上题目(`needs_input`、`question`;Harness 模型推荐的选项在 `harness_suggested`),由主 Agent 问你并把你的回答发回去。你也可以直接在 Harness 窗口里回答,谁先答就算谁的 |
259
259
  | `dsh_session_activity` | Codex 里经 `dsh_call` 调用。对话此刻在做什么:正在跑的回合、子智能体(任意层级)、后台任务;已归档的对话会带 `archived: true` |
260
260
  | `dsh_update_queued` | Codex 里经 `dsh_call` 调用。按 `run_id` 修改还在忙碌对话队列里等待的消息:`edit` 改文字,`remove` 撤回,`steer` 立刻插进正在跑的回合。消息一旦进入对话就改不了了 |
261
+ | `dsh_card` | Codex 里经 `dsh_call` 调用。Harness 打开“个性化推荐”插件后(PTC 模式下没有卡片),回答末尾可能带一张卡片:建议创建一个页面,或建议启用一个内置插件。卡片只显示在 Harness 窗口里,所以 `dsh_wait`、`wait_command` 和 `dsh_status` 会把它作为 `card` 返回(`kind`、`title`、`brief`、`details`、`state`、`choices`),由主 Agent 问你。按你的回答,它做的就是卡片按钮做的事:`create`(用 `slot` 或 `custom_location` 换个位置)、`enable`、`not_now`、`cancel`、`undo` 或 `restore`。创建页面要几分钟,也会用掉不少 token |
261
262
  | `dsh_cancel` | 按 `run_id` 或 `session_id` 停掉整个对话的工作:当前回合、子智能体、后台任务。Harness 会同时清掉队列里等待的消息,这些运行记为 `cancelled` |
262
263
  | `dsh_rename_session` | Codex 里经 `dsh_call` 调用。给对话改名 |
263
264
  | `dsh_rename_workspace` | Codex 里经 `dsh_call` 调用。给工作区改名(只改侧边栏标题,不动文件夹) |
package/host/lib/index.js CHANGED
@@ -266,6 +266,7 @@ export function apply(ctx) {
266
266
  ...(run.humanInputs?.length ? { human_interjections: run.humanInputs } : {}),
267
267
  ...(run.approvalsAllowed?.length ? { approvals_allowed: run.approvalsAllowed } : {}),
268
268
  ...(run.question ? { question: run.question } : {}),
269
+ ...(run.card ? { card: cardNow(run) } : {}),
269
270
  ...(tail ? { recent_events: run.events.slice(-tail) } : {}),
270
271
  })
271
272
 
@@ -289,6 +290,7 @@ export function apply(ctx) {
289
290
  function settle(run, state, extra = {}) {
290
291
  if (!isActive(run)) return
291
292
  Object.assign(run, extra, { state, endedAt: new Date().toISOString() })
293
+ if (state === 'completed' && !run.card) run.card = cardOfRun(run) ?? undefined
292
294
  for (const resolve of waiters.get(run.id) ?? []) resolve()
293
295
  waiters.delete(run.id)
294
296
  persist(run)
@@ -1046,6 +1048,7 @@ export function apply(ctx) {
1046
1048
  let goalsService = null
1047
1049
  let agentsService = null
1048
1050
  let teamsService = null
1051
+ let cardsService = null // Harness's actionCards (the Personalized recommendations experiment), when on
1049
1052
  const activations = new Map() // sessionId -> 'armed' | 'disarmed', from goal/activation-changed
1050
1053
  ctx.on('goal/activation-changed', guard('goal activation', ({ sessionId, goal } = {}) => {
1051
1054
  if (!sessionId) return
@@ -1680,6 +1683,93 @@ export function apply(ctx) {
1680
1683
  return agent
1681
1684
  }
1682
1685
 
1686
+ // --- action cards ------------------------------------------------------------------
1687
+ // With Harness's Personalized recommendations experiment on, the model may end a turn with
1688
+ // one card below its answer (propose_action): a page to create, or a built-in plugin to
1689
+ // enable. Nothing runs until someone acts on it, and the Harness window is the only place
1690
+ // that shows it. A run reports the card its own turns offered (run.card), and card() acts on
1691
+ // it the way the card's buttons do. Harness shows no card in PTC mode.
1692
+ const CARD_KINDS = { create_personalized_page: 'personalized_page', enable_official_plugin: 'official_plugin' }
1693
+ // What can be done next, by kind and phase: the card's own buttons.
1694
+ const PAGE_RETRY = ['cancelled', 'failed', 'interrupted', 'unconfirmed']
1695
+ function cardChoices(action, phase) {
1696
+ if (action === 'create_personalized_page') {
1697
+ if (phase === 'offered' || PAGE_RETRY.includes(phase)) return ['create', 'not_now']
1698
+ if (phase === 'creating') return ['cancel']
1699
+ if (phase === 'installed') return ['undo']
1700
+ if (phase === 'removed') return ['restore']
1701
+ return []
1702
+ }
1703
+ if (action === 'enable_official_plugin') return phase === 'offered' || phase === 'failed' || phase === 'unconfirmed' ? ['enable', 'not_now'] : []
1704
+ return phase === 'offered' ? ['not_now'] : []
1705
+ }
1706
+ // The open session's cards, or null when this Harness has no cards or the session is not loaded.
1707
+ function cardView(sessionId) {
1708
+ try {
1709
+ const session = agentsService?.get?.(sessionId)?.session
1710
+ return session && typeof cardsService?.view === 'function' ? cardsService.view(session) : null
1711
+ } catch { return null }
1712
+ }
1713
+ const cardIds = (sessionId) => Object.keys(cardView(sessionId)?.proposals ?? {})
1714
+ function publicCard(view, callId) {
1715
+ const p = view?.proposals?.[callId]
1716
+ if (!p) return null
1717
+ const decision = view.decisions?.[callId]
1718
+ // A newer card replaces an unstarted one (Harness derives this; it is never recorded).
1719
+ const newer = Object.values(view.proposals).some((o) => o.turn > p.turn)
1720
+ const phase = decision?.phase ?? (newer ? 'replaced' : 'offered')
1721
+ return {
1722
+ call_id: callId, kind: CARD_KINDS[p.action] ?? p.action, title: p.title, brief: p.brief, details: p.details,
1723
+ state: phase, ...(decision?.data ? { data: decision.data } : {}), choices: cardChoices(p.action, phase),
1724
+ }
1725
+ }
1726
+ // The newest card this run's turns offered, read when the run ends.
1727
+ function cardOfRun(run) {
1728
+ const view = cardView(run.sessionId)
1729
+ if (!view) return null
1730
+ const before = new Set(run.cardsBefore ?? [])
1731
+ const mine = Object.values(view.proposals).filter((p) => !before.has(p.callId)).sort((a, b) => b.turn - a.turn)[0]
1732
+ return mine ? publicCard(view, mine.callId) : null
1733
+ }
1734
+ // A run's card as it stands now (the user may have clicked it in Harness meanwhile).
1735
+ const cardNow = (run) => (run.card ? publicCard(cardView(run.sessionId), run.card.call_id) ?? run.card : null)
1736
+
1737
+ const CARD_VERBS = { create: 'create', enable: 'enable', not_now: 'dismiss', cancel: 'cancel', undo: 'undo', restore: 'restore' }
1738
+ const CARD_REFUSALS = {
1739
+ 'not-live-root': 'the session is not open in Harness right now',
1740
+ unknown: 'Harness has no such card in this session',
1741
+ unavailable: 'the card cannot do that now (its feature may be switched off, or it was replaced or dismissed)',
1742
+ 'access-denied': 'Harness refused the profile change',
1743
+ 'read-only': 'the session is read-only',
1744
+ 'invalid-location': 'the location is not one of sidebar-left, sidebar-right or page',
1745
+ closing: 'Harness is closing',
1746
+ }
1747
+ // choice: create | enable | not_now | cancel | undo | restore. slot / custom_location only for create.
1748
+ async function actOnCard({ run_id, session_id, call_id, choice, slot, custom_location } = {}) {
1749
+ const run = run_id ? getRun(run_id) : null
1750
+ const sessionId = run?.sessionId ?? session_id
1751
+ if (!sessionId) throw new Error('Give run_id (or session_id) of the run whose card to act on.')
1752
+ if (typeof cardsService?.act !== 'function') throw new Error('This Harness shows no action cards: the Personalized recommendations plugin is off.')
1753
+ const verb = CARD_VERBS[choice]
1754
+ if (!verb) throw new Error(`choice must be one of ${Object.keys(CARD_VERBS).join(', ')}`)
1755
+ const agent = await liveAgent(sessionId)
1756
+ if (!agent) throw new Error(`Session ${sessionId} cannot be opened in Harness right now.`)
1757
+ const view = cardsService.view(agent.session)
1758
+ const id = call_id ?? run?.card?.call_id ?? Object.values(view.proposals).sort((a, b) => b.turn - a.turn)[0]?.callId
1759
+ const proposal = id ? view.proposals[id] : null
1760
+ if (!proposal) throw new Error(`Session ${sessionId} has no card${call_id ? ` ${call_id}` : ''}.`)
1761
+ const payload = verb === 'create'
1762
+ ? { slot: slot ?? proposal.details?.slot, ...(custom_location ? { customLocation: custom_location } : {}) }
1763
+ : verb === 'dismiss' && slot ? { slot } : undefined
1764
+ const result = await cardsService.act(agent, id, verb, payload)
1765
+ const card = publicCard(cardsService.view(agent.session), id)
1766
+ if (run?.card?.call_id === id && card) { run.card = card; persist(run) }
1767
+ return {
1768
+ session_id: sessionId, ...(run ? { run_id: run.id } : {}), status: result?.status ?? 'unknown',
1769
+ ...(result?.reason ? { reason: CARD_REFUSALS[result.reason] ?? result.reason } : {}), card,
1770
+ }
1771
+ }
1772
+
1683
1773
  // --- /goal ------------------------------------------------------------------------
1684
1774
  // Harness runs /goal as a composer command (commands.execute), not as text for the model:
1685
1775
  // sent as a prompt it set no goal (Windows rc.2 on 11-17, Mac rc.5 on 11-21). So a leading
@@ -1854,6 +1944,7 @@ export function apply(ctx) {
1854
1944
  const admitted = controller.prompt({ sessionId, requestId: run.requestId, content: [{ type: 'text', text: goalCmd ? `${message}\n\n${GOAL_NOTE}` : message }], mode }, signal())
1855
1945
  .then(async () => {
1856
1946
  run.admitted = true // in Harness's queue (or conversation) now
1947
+ run.cardsBefore = cardIds(sessionId) // a card offered later is this run's
1857
1948
  if (goalCmd) await setGoal(run, goalCmd, message)
1858
1949
  if (drift) rememberDefault(drift.now)
1859
1950
  return true
@@ -2025,6 +2116,7 @@ export function apply(ctx) {
2025
2116
  list_runs: ({ limit = 10, session_id } = {}) => [...runs.values()].reverse().filter((r) => !session_id || r.sessionId === session_id).slice(0, limit).map((r) => publicRun(r, 0)),
2026
2117
  update_queued: updateQueued,
2027
2118
  answer: answerQuestion,
2119
+ card: actOnCard,
2028
2120
  }
2029
2121
 
2030
2122
  // --- local socket (owner-only) ---------------------------------------------
@@ -2170,6 +2262,10 @@ export function apply(ctx) {
2170
2262
  agentsService = child.agents
2171
2263
  child.effect(() => () => { if (agentsService === child.agents) agentsService = null }, 'dsh-baton-host agents')
2172
2264
  })
2265
+ ctx.inject(['actionCards'], (child) => {
2266
+ cardsService = child.actionCards
2267
+ child.effect(() => () => { if (cardsService === child.actionCards) cardsService = null }, 'dsh-baton-host action cards')
2268
+ })
2173
2269
  ctx.inject(['agentTeams'], (child) => {
2174
2270
  teamsService = child.agentTeams
2175
2271
  child.effect(() => () => { if (teamsService === child.agentTeams) teamsService = null }, 'dsh-baton-host agent teams')
package/host/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-baton-host",
3
- "version": "0.6.20",
3
+ "version": "0.6.21",
4
4
  "description": "Hand coding tasks from Claude Code, Codex or Antigravity to DeepSeek Harness: they run live in the Harness window and come back with the changed files and test results. 让 Claude Code、Codex 和 Antigravity 把编码任务交给 DeepSeek Harness:在 Harness 窗口里实时跑,做完带着改动文件和测试结果交回。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24,7 +24,7 @@
24
24
  "docs"
25
25
  ],
26
26
  "dependencies": {
27
- "dsh-baton-mcp": "0.6.20"
27
+ "dsh-baton-mcp": "0.6.21"
28
28
  },
29
29
  "license": "MIT",
30
30
  "dsh": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-baton-mcp",
3
- "version": "0.6.20",
3
+ "version": "0.6.21",
4
4
  "mcpName": "io.github.JialaoLiu/dsh-baton",
5
5
  "description": "Pass the baton from Claude Code, Codex, Antigravity or any MCP client to a local DeepSeek Harness: an MCP server that hands off tasks, continues a specific session, shows the run live in Harness and hands the result back when it is done.",
6
6
  "type": "module",
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "url": "https://github.com/JialaoLiu/dsh-baton",
8
8
  "source": "github"
9
9
  },
10
- "version": "0.6.20",
10
+ "version": "0.6.21",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "dsh-baton-mcp",
15
- "version": "0.6.20",
15
+ "version": "0.6.21",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  }
package/src/cli.mjs CHANGED
@@ -27,6 +27,7 @@ async function waitOnRunFile(runId, total_s) {
27
27
  run_id: runId, state: rec.state, session_id: rec.sessionId, timed_out: !ended,
28
28
  ...(rec.finalText ? { final_text: rec.finalText } : {}),
29
29
  ...(rec.error ? { error: rec.error } : {}),
30
+ ...(rec.card ? { card: rec.card } : {}),
30
31
  hint: !ended ? 'Still running. Run this same wait command again in the background.'
31
32
  : rec.state === 'waiting' ? 'The run stopped to ask a person. Call dsh_wait with this run_id: it returns the question at once.'
32
33
  : 'The run has ended. Call dsh_wait with this run_id once: it returns at once with the full result (evidence, checks).',
@@ -164,6 +165,8 @@ async function main() {
164
165
  ...(st.approvals_allowed?.length ? { approvals_allowed: st.approvals_allowed } : {}),
165
166
  // Background work still running when the run completed past the host's limit: the hint names it.
166
167
  ...(st.left_running?.length ? { left_running: st.left_running } : {}),
168
+ // A card Harness offered below the reply (Personalized recommendations): the hint says what to do.
169
+ ...(st.card ? { card: st.card } : {}),
167
170
  ...(st.state === 'completed' ? { hint: core.endedHint(st) } : {}),
168
171
  // Stopped by the user, cancelled, or cut off by a Harness restart: say so, or the client
169
172
  // takes it for a failure in the work and sends it again.
package/src/core.mjs CHANGED
@@ -581,9 +581,16 @@ const WORKTREE_HINT = (trees) => (trees.every((w) => w.changes_in === 'changes')
581
581
  : ` The session worked in a new Git worktree (${trees.map((w) => `${w.path}${w.branch ? `, branch ${w.branch}` : ''}`).join('; ')}): its changes are in evidence.worktrees, not evidence.changes, and checks ran in the last one. Merging that branch is the user's call.${trees.some((w) => w.incomplete) ? ' git could not list every change in a worktree marked incomplete: a file missing from its list proves nothing.' : ''}`)
582
582
  // A run that completed while a background job of its session still ran (past the host's limit).
583
583
  const LEFT_RUNNING_HINT = (left) => ` The run completed while background work it started was still running (left_running: ${left.flatMap((g) => g.labels ?? []).slice(0, 3).join('; ')}): its output is not in final_text. Go on with the reply; only if the task needs that output, look at the session later with dsh_status session_id.`
584
+ // Harness's Personalized recommendations experiment: the reply may end with a card (a page to
585
+ // create, a plugin to enable) that only the Harness window shows, and its text says to click it.
586
+ const CARD_HINT = (card, runId) => {
587
+ const id = runId ? `run_id "${runId}"` : `call_id "${card.call_id}"`
588
+ const call = runId ? `{"run_id": "${runId}", "choice": "<choice>"}` : `{"call_id": "${card.call_id}", "choice": "<choice>"}`
589
+ return ` Harness offered a card below its reply (card: ${card.kind}, "${card.title}"); only the Harness window shows it, and final_text's "click below" means that card. Tell the user in a line or two what it offers (card.brief) and ask. When they answer, act on it for ${id}: dsh_card ${call}, or dsh_call {"name": "dsh_card", "arguments": ${call}} when your tool list lacks dsh_card; choice is one of ${card.choices.join(', ')}. A no ("不用了", "not now") is not_now.${card.kind === 'personalized_page' ? ' create builds a plugin page in Harness in the background, which takes minutes and many tokens; card.details.slot says where it goes (sidebar-left, sidebar-right or page) and the user may pick another (add "slot").' : card.kind === 'official_plugin' ? ' enable turns that Harness plugin on for every session.' : ''} If the user says nothing about it, leave it.`
590
+ }
584
591
  export function endedHint(st) {
585
592
  const checks = st?.evidence?.checks
586
- const shared = (st?.left_running?.length ? LEFT_RUNNING_HINT(st.left_running) : '') + (st?.evidence?.same_folder_runs?.length ? SHARED_HINT(st.evidence.same_folder_runs) : '') + (st?.evidence?.changes?.truncated ? TRUNCATED_HINT : '') + (st?.evidence?.worktrees?.length ? WORKTREE_HINT(st.evidence.worktrees) : '') + (st?.approvals_allowed?.length ? APPROVALS_HINT(st.approvals_allowed) : '')
593
+ const shared = (st?.card?.state === 'offered' && st.card.choices?.length ? CARD_HINT(st.card, st.run_id) : '') + (st?.left_running?.length ? LEFT_RUNNING_HINT(st.left_running) : '') + (st?.evidence?.same_folder_runs?.length ? SHARED_HINT(st.evidence.same_folder_runs) : '') + (st?.evidence?.changes?.truncated ? TRUNCATED_HINT : '') + (st?.evidence?.worktrees?.length ? WORKTREE_HINT(st.evidence.worktrees) : '') + (st?.approvals_allowed?.length ? APPROVALS_HINT(st.approvals_allowed) : '')
587
594
  const hint = !checks?.length ? NO_CHECKS_HINT + shared : ENDED_HINT + (checks.some((c) => !c.passed && MISSING_TOOL.test(c.output_tail ?? '')) ? ENV_HINT : '') + shared
588
595
  return st?.goal ? `${goalHint(st.goal, st.session_id)} ${hint}` : hint
589
596
  }
@@ -939,6 +946,16 @@ export const api = {
939
946
  throw new Error(`The Harness plugin dsh-baton-host ${hostVersion ?? ''} is too old to answer questions; this MCP server is ${VERSION}. Answer in the Harness window, or update the plugin: Plugins → dsh-baton-host → Uninstall, then Add plugin → dsh-baton-host@${VERSION}.`.replace(' ', ' '))
940
947
  }
941
948
  },
949
+ // Act on the card a run's reply offered, as its button in Harness does.
950
+ async card(a) {
951
+ if (!(await useHost())) throw new Error('Acting on a Harness card needs the dsh-baton-host plugin running inside DeepSeek Harness.')
952
+ try {
953
+ return await hostCall('card', a)
954
+ } catch (error) {
955
+ if (!/Unknown method: card/.test(error?.message)) throw error
956
+ throw new Error(`The Harness plugin dsh-baton-host ${hostVersion ?? ''} is too old to act on cards; this MCP server is ${VERSION}. Click the card in the Harness window, or update the plugin.`.replace(' ', ' '))
957
+ }
958
+ },
942
959
  async list_runs({ limit = 10, session_id } = {}) {
943
960
  // An older plugin ignores session_id, so the host's runs are filtered here too.
944
961
  const host = (await hostAvailable()) ? tag('host', await hostCall('list_runs', { limit: session_id ? 100 : limit, session_id })).filter((r) => !session_id || r.session_id === session_id) : []
package/src/mcp.mjs CHANGED
@@ -512,6 +512,23 @@ const TOOLS = [
512
512
  return { ...st, hint: a.run_id ? 'Then wait for the run again.' : 'Then call dsh_wait again as before (the same run_id or session_id), with the same until and the last cursor.' }
513
513
  },
514
514
  },
515
+ {
516
+ name: 'dsh_card',
517
+ hidden: true, // not in Codex's tools/list; reachable directly or through dsh_call
518
+ annotations: annotations('Act on Harness card', hints(false, false, false)),
519
+ description: 'Act on the card a Harness reply offered (card in dsh_wait or dsh_status, from Harness\'s Personalized recommendations): what its button in the Harness window does. Only on the user\'s answer. choice: create (build the proposed page in the background; minutes and many tokens), enable (turn the proposed Harness plugin on), not_now (dismiss), cancel (stop a page being built), undo (remove a created page), restore (bring an undone page back). Returns status (accepted: work started; settled; refused with reason) and the card as it is now.',
520
+ inputSchema: {
521
+ type: 'object', required: ['choice'], properties: {
522
+ run_id: str('Run whose reply offered the card'),
523
+ session_id: str('Instead of run_id: the session; acts on its newest card unless call_id is given'),
524
+ call_id: str('card.call_id, for an older card of the session'),
525
+ choice: { type: 'string', enum: ['create', 'enable', 'not_now', 'cancel', 'undo', 'restore'], description: 'One of card.choices' },
526
+ slot: { type: 'string', enum: ['sidebar-left', 'sidebar-right', 'page'], description: 'For create: where the page goes, when the user picks another place than card.details.slot' },
527
+ custom_location: str('For create: the user\'s own words for where the page goes, instead of slot'),
528
+ },
529
+ },
530
+ run: (a) => core.api.card(a),
531
+ },
515
532
  {
516
533
  name: 'dsh_rename_session',
517
534
  hidden: true, // not in Codex's tools/list; reachable directly or through dsh_call