From 0168b0f88dc98002b48ade2b199a100ec1155bcf Mon Sep 17 00:00:00 2001 From: sjw1231 Date: Mon, 23 Nov 2026 13:39:06 +0800 Subject: [PATCH] feat(sdk): expose cordis_inspect in the SDK profile Mount the Cordis inspection registry, the Host inspect providers, and the `cordis_inspect` tool in the sdk-app bundle so the SDK model receives the same runtime inspection tool as the Desktop standard and Creator presets. The SDK serves no browser, so its directory lists Host providers only. Remove the standard-mode parity exception, record the SDK-only PTC difference, keep pre-desktop SDK and Python compositions pinned, refresh the affected SDK snapshots, and document the change. --- .../tests/profiles/sdk/keyless-smoke.e2e.ts | 66 ++++++++++++++++ apps/cli/tests/profiles/sdk/tool-parity.ts | 4 +- docs/tool-catalog.i18n.yaml | 8 +- docs/tool-catalog.md | 4 +- docs/tool-catalog.zh.md | 4 +- .../sdk-cordis-inspect/guide.i18n.yaml | 16 ++++ .../sdk-cordis-inspect/guide.md | 24 ++++++ .../sdk-cordis-inspect/guide.zh.md | 24 ++++++ packages/bundle/sdk-app/README.i18n.yaml | 8 +- packages/bundle/sdk-app/README.md | 4 +- packages/bundle/sdk-app/README.zh.md | 4 +- packages/bundle/sdk-app/cordis.patch.yml | 13 ++++ packages/bundle/sdk-app/package.json | 4 +- .../extensions/tool-cordis/README.i18n.yaml | 12 +-- packages/extensions/tool-cordis/README.md | 6 +- packages/extensions/tool-cordis/README.zh.md | 6 +- pnpm-lock.yaml | 6 ++ scripts/gen-tool-catalog.ts | 2 +- scripts/smoke-python-runtime.py | 1 + .../dynamic-tools/tool-history.json | 3 + .../tool-schemas.expected.json | 39 ++++++++++ .../tool-schemas.expected.json | 39 ++++++++++ .../cua-run-code/tool-schemas.expected.json | 39 ++++++++++ .../tool-schemas.expected.json | 39 ++++++++++ .../system-prompt.expected.md | 14 ++++ .../system-prompt.expected.md | 14 ++++ snapshots/sdk/legacy-context.patch.yml | 3 + .../manual-compact/tool-schemas.expected.json | 78 +++++++++++++++++++ snapshots/sdk/plan-review/session.v4.jsonl | 4 +- .../plan-review/tool-schemas.expected.json | 78 +++++++++++++++++++ .../tool-schemas.1.expected.json | 39 ++++++++++ .../tool-schemas.expected.json | 39 ++++++++++ 32 files changed, 610 insertions(+), 34 deletions(-) create mode 100644 docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.i18n.yaml create mode 100644 docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.md create mode 100644 docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.zh.md diff --git a/apps/cli/tests/profiles/sdk/keyless-smoke.e2e.ts b/apps/cli/tests/profiles/sdk/keyless-smoke.e2e.ts index 97d31bf34f..518e223dc3 100644 --- a/apps/cli/tests/profiles/sdk/keyless-smoke.e2e.ts +++ b/apps/cli/tests/profiles/sdk/keyless-smoke.e2e.ts @@ -797,3 +797,69 @@ it.each(['standard', 'ptc'] as const)('lists and loads the packaged dsh-doc skil const exit = await child expect(exit.exitCode, stderr).toBe(0) }) + +it('inspects the Host runtime through cordis_inspect in the SDK profile', async () => { + const root = await mkdtemp(join(tmpdir(), 'sdk-cordis-inspect-')) + onTestFinished(() => rm(root, { recursive: true, force: true })) + const requests: { messages: { content: { type: string; tool_use_id?: string; content?: unknown; is_error?: boolean }[] }[] }[] = [] + const toolUses = [ + { type: 'tool_use', id: 'inspect-directory', name: 'cordis_inspect', input: {} }, + { type: 'tool_use', id: 'inspect-version', name: 'cordis_inspect', input: { query: { platform: 'host', provider: 'Runtime', method: 'getVersion' } } }, + ] as const + const server = createServer((request, response) => { + let body = '' + request.setEncoding('utf8').on('data', (chunk: string) => { body += chunk }) + request.on('end', () => { + requests.push(JSON.parse(body) as typeof requests[number]) + const toolUse = toolUses[requests.length - 1] + response.writeHead(200, { 'content-type': 'text/event-stream' }) + response.end(toolUse === undefined ? messagesResponse({ type: 'text', text: 'done' }, 'end_turn') : messagesResponse(toolUse, 'tool_use')) + }) + }) + onTestFinished(() => new Promise((resolve) => { server.close(() => { resolve() }) })) + await new Promise((resolve) => { server.listen(0, '127.0.0.1', resolve) }) + const address = server.address() + if (address === null || typeof address === 'string') throw new Error('model fixture did not bind') + const launch = resolveExampleLaunch({ + srcBin: fileURLToPath(new URL('../../../src/bin.ts', import.meta.url)), mode: 'lib', + configArgs: ['--profile', 'sdk'], + env: { DSH_HOME: join(root, 'home'), DSH_PRIMARY_RUNTIME: '', DSH_PERMISSION_MODE: 'danger-full-access', DSH_TELEMETRY_DISABLED: '1', + DEEPSEEK_API_KEY: 'local-fixture', DEEPSEEK_BASE_URL: `http://127.0.0.1:${address.port}` }, + }) + const child = execa(launch.command, launch.args, { cwd: repoRoot, env: launch.env, timeout: 60_000, reject: false }) + onTestFinished(async () => { child.kill('SIGKILL'); await child }) + let buffer = '', stderr = '' + const lines: string[] = [] + child.stdout.on('data', (chunk: Buffer) => { + buffer += chunk.toString() + const parts = buffer.split('\n') + buffer = parts.pop() ?? '' + lines.push(...parts) + }) + child.stderr.on('data', (chunk: Buffer) => { stderr += chunk.toString() }) + const send = (id: number, method: string, params?: object) => { + child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', id, method, params })}\n`) + return waitForLine(lines, value => value.id === id, () => stderr) + } + expect(await send(1, 'initialize', { cwd: root, provider: 'deepseek-official', model: 'deepseek-v4-pro' })).toHaveProperty('result') + await send(2, 'session/prompt', { sessionId: 'cordis-inspect', contentBlocks: [{ type: 'text', text: 'Which DSH version is running?' }] }) + await waitForLine(lines, (value) => { + const params = value.params as { sessionId?: string; event?: { type?: string } } | undefined + return value.method === 'session.event' && params?.sessionId === 'cordis-inspect' && params.event?.type === 'turn/end' + }, () => stderr) + expect(requests).toHaveLength(toolUses.length + 1) + const results = requests.at(-1)!.messages.flatMap(message => message.content).filter(block => block.type === 'tool_result') + const result = (id: string) => { + const block = results.find(candidate => candidate.tool_use_id === id) + expect(block?.is_error, JSON.stringify(block)).not.toBe(true) + return JSON.stringify(block?.content) + } + const directory = result('inspect-directory') + for (const provider of ['Service', 'Event', 'Config', 'Runtime', 'Tool']) expect(directory).toContain(provider) + expect(directory).not.toContain('Slots') + const { version } = JSON.parse(await readFile(join(repoRoot, 'packages/boot/app-boot/package.json'), 'utf8')) as { version: string } + expect(result('inspect-version')).toContain(version) + await send(3, 'shutdown') + const exit = await child + expect(exit.exitCode, stderr).toBe(0) +}) diff --git a/apps/cli/tests/profiles/sdk/tool-parity.ts b/apps/cli/tests/profiles/sdk/tool-parity.ts index a74e51d6fb..f4b2ed9014 100644 --- a/apps/cli/tests/profiles/sdk/tool-parity.ts +++ b/apps/cli/tests/profiles/sdk/tool-parity.ts @@ -12,12 +12,12 @@ export const toolParityExceptions: Record = { standard: [ { tool: 'list_subagent_models', side: 'desktop', reason: 'Desktop enables subagent model discovery; SDK delegation inherits the caller model by default.' }, - { tool: 'cordis_inspect', side: 'desktop', - reason: 'Web exposes inspection of its Host and connected Client runtime; the SDK profile does not compose the Cordis inspection providers.' }, ], ptc: [ { tool: 'list_subagent_models', side: 'desktop', reason: 'Desktop enables subagent model discovery; SDK delegation inherits the caller model by default.' }, + { tool: 'cordis_inspect', side: 'sdk', + reason: 'The SDK profile composes runtime inspection for both executors; the Desktop PTC preset omits it.' }, { tool: 'workflow', side: 'sdk', reason: 'The SDK PTC overlay changes only the executor so existing base workflow callers keep working; Desktop PTC uses run_code orchestration and omits the separate workflow surface.' }, ], diff --git a/docs/tool-catalog.i18n.yaml b/docs/tool-catalog.i18n.yaml index 679756eb45..3cc55f7b70 100644 --- a/docs/tool-catalog.i18n.yaml +++ b/docs/tool-catalog.i18n.yaml @@ -9,8 +9,8 @@ en: 6cc2cd9ced70bb09 zh: 1c0e6cb4ba2ed637 /tool-schema-catalog/tool-package-map: - en: 30abd845c15aab11 - zh: 584288adf33e54ac + en: 8eb7039496b00847 + zh: 7d115fbbd23e2084 /tool-schema-catalog/deepseek-ai-dsh-tool-session-control: en: 79ab575ea6da86e2 zh: 79ab575ea6da86e2 @@ -114,8 +114,8 @@ en: 76c7c62f9029b6f5 zh: 76c7c62f9029b6f5 /tool-schema-catalog/deepseek-ai-dsh-tool-cordis/cordis-inspect: - en: f804c4e7fccc1c45 - zh: 7538d8201ef16ed9 + en: b00bf7275e14730e + zh: 61eb02e91ec980cf /tool-schema-catalog/deepseek-ai-dsh-tool-bash-persistent: en: bdd9e88c49029e05 zh: bdd9e88c49029e05 diff --git a/docs/tool-catalog.md b/docs/tool-catalog.md index 7538893da3..b2efdb8375 100644 --- a/docs/tool-catalog.md +++ b/docs/tool-catalog.md @@ -27,7 +27,7 @@ This table connects model-visible tool names to the plugin package and service s | `@deepseek-ai/dsh-tool-office` | `office_convert`, `office_recalculate`, `office_render` | `ctx.workingDirectory`, `ctx.tools`, `ctx.fs`, `ctx.agents`, `ctx.officeKit`, `ctx.attachments and ctx.llm for office_render` | `tool/call`, `tool/result with rendered image attachments`, `temporary converted files in the Office kit output store` | - | Declared to an Agent from the step after it successfully loads an Office skill, and kept while the previous request header declares an Office tool. Admitted calls fail with the Office service's unavailable error when LibreOffice Kit is not installed. | | `@deepseek-ai/dsh-tool-present` | `present` | `ctx.workingDirectory`, `ctx.tools`, `ctx.fs`, `ctx.agents` | `tool/call`, `deliverables/presented after a successful final result`, `tool/result` | - | Deliveries belong to the calling Session; Web ui-deliverables supplies source-file opening and cards. | | `@deepseek-ai/dsh-tool-pwsh` | `pwsh` | `ctx.workingDirectory`, `ctx.tools`, `ctx.shell`, `ctx.systemPrompt`, `ctx.shellEnv`, `ctx.jobs for run_in_background and the job-backed foreground path` | `tool/call`, `tool/result` | - | The pwsh tool is the PowerShell-dialect consumer of the bash executor seam for Windows compositions (a PowerShell executor such as `@deepseek-ai/dsh-pwsh-local` backs `ctx.shell`); it mirrors the bash tool call-for-call minus sandbox controls — `run_in_background` runs register with the generic `ctx.jobs` runtime and are collected/stopped through the `job_*` tools, and the managed `DSH_*` environment comes from `@deepseek-ai/dsh-shell-env`. Each call runs in a fresh process (no persistent PTY session), with native `C:\...` paths and `$env:NAME` variables. | -| `@deepseek-ai/dsh-tool-cordis` | `cordis_inspect` | `ctx.tools`, `ctx.cordisInspect` | `tool/call`, `tool/result` | - | Standard and Creator modes provide one read-only runtime inspection tool. Omit query for the provider directory; pass query to inspect a declared method. The Cordis host runner supplies the inspection registry; Client queries require a connected page. Author persistent changes as bundles and install them with plugin_manager. | +| `@deepseek-ai/dsh-tool-cordis` | `cordis_inspect` | `ctx.tools`, `ctx.cordisInspect` | `tool/call`, `tool/result` | - | The Desktop Standard and Creator modes and the SDK profile provide one read-only runtime inspection tool. Omit query for the provider directory; pass query to inspect a declared method. The Cordis host runner supplies the inspection registry; Client queries require a connected page. Author persistent changes as bundles and install them with plugin_manager. | | `@deepseek-ai/dsh-tool-bash-persistent` | `bash` | `ctx.workingDirectory`, `ctx.tools`, `ctx.terminals`, `an owning Agent at execution time` | `tool/call`, `PTY shell state`, `tool/result` | - | One owner-isolated persistent bash tool; deployment composition supplies the PTY backend and may override the model-facing environment description. | | `@deepseek-ai/dsh-tool-pwsh-persistent` | `pwsh` | `ctx.workingDirectory`, `ctx.tools`, `ctx.terminals`, `an owning Agent at execution time` | `tool/call`, `PTY shell state`, `tool/result` | - | One owner-isolated persistent pwsh tool, the Windows counterpart of the persistent bash tool; deployment composition supplies a pwsh-dialect PTY backend and may override the model-facing environment description. | | `@deepseek-ai/dsh-tool-str-replace-editor` | `str_replace_editor` | `ctx.tools`, `ctx.fs` | `tool/call`, `fs/observed after view presence/absence, edit absence, or successful mutation`, `tool/result` | - | Standalone view/create/unique literal replace/line insert tool over the filesystem seam; it composes with any shell or terminal API. | @@ -978,7 +978,7 @@ Inspect runtime APIs before writing or configuring plugins. Omit query to discov Source: [`packages/extensions/tool-cordis/src/index.ts`](../packages/extensions/tool-cordis/src/index.ts) -Standard and Creator modes provide one read-only runtime inspection tool. Omit query for the provider directory; pass query to inspect a declared method. The Cordis host runner supplies the inspection registry; Client queries require a connected page. Author persistent changes as bundles and install them with plugin_manager. +The Desktop Standard and Creator modes and the SDK profile provide one read-only runtime inspection tool. Omit query for the provider directory; pass query to inspect a declared method. The Cordis host runner supplies the inspection registry; Client queries require a connected page. Author persistent changes as bundles and install them with plugin_manager. diff --git a/docs/tool-catalog.zh.md b/docs/tool-catalog.zh.md index 8753f7952d..e41b6203b9 100644 --- a/docs/tool-catalog.zh.md +++ b/docs/tool-catalog.zh.md @@ -31,7 +31,7 @@ | `@deepseek-ai/dsh-tool-office` | `office_convert`、`office_recalculate`、`office_render` | `ctx.workingDirectory`、`ctx.tools`、`ctx.fs`、`ctx.agents`、`ctx.officeKit`、`ctx.attachments and ctx.llm for office_render` | `tool/call`、`tool/result with rendered image attachments`、`temporary converted files in the Office kit output store` | - | Agent 成功加载 Office 技能后,从下一步起向其声明这些工具;上一次请求头已声明 Office 工具时继续保留。未安装 LibreOffice Kit 时,已声明工具的调用以 Office 服务的 unavailable 错误失败。 | | `@deepseek-ai/dsh-tool-present` | `present` | `ctx.workingDirectory`、`ctx.tools`, `ctx.fs`, `ctx.agents` | `tool/call`, `deliverables/presented 在成功的最终结果之后`, `tool/result` | - | 交付归调用方 Session 所有;Web ui-deliverables 提供源文件打开与卡片。 | | `@deepseek-ai/dsh-tool-pwsh` | `pwsh` | `ctx.workingDirectory`、`ctx.tools`、`ctx.shell`、`ctx.systemPrompt`、`ctx.shellEnv`、`ctx.jobs for run_in_background and the job-backed foreground path` | `tool/call`、`tool/result` | - | pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费方(由 `@deepseek-ai/dsh-pwsh-local` 等 PowerShell 执行器为 `ctx.shell` 提供后端);除沙箱接口外,它逐项对应 bash 工具调用。使用 `run_in_background` 的运行会注册到通用 `ctx.jobs` 运行时,并通过 `job_*` 工具收集/停止;托管的 `DSH_*` 环境来自 `@deepseek-ai/dsh-shell-env`。每次调用都在新进程中运行,不使用持久 PTY 会话。路径采用原生 `C:\...` 形式,变量采用 `$env:NAME`。 | -| `@deepseek-ai/dsh-tool-cordis` | `cordis_inspect` | `ctx.tools`, `ctx.cordisInspect` | `tool/call`, `tool/result` | - | 标准模式和创造模式提供一个只读运行时检查工具。省略 query 获取 provider 目录;传入 query 查询已声明的方法。Cordis host runner 提供检查注册表;Client 查询需要已连接页面。持久化变更编写为组合包,再通过 plugin_manager 安装。 | +| `@deepseek-ai/dsh-tool-cordis` | `cordis_inspect` | `ctx.tools`, `ctx.cordisInspect` | `tool/call`, `tool/result` | - | Desktop 标准模式、创造模式和 SDK profile 提供一个只读运行时检查工具。省略 query 获取 provider 目录;传入 query 查询已声明的方法。Cordis host runner 提供检查注册表;Client 查询需要已连接页面。持久化变更编写为组合包,再通过 plugin_manager 安装。 | | `@deepseek-ai/dsh-tool-bash-persistent` | `bash` | `ctx.workingDirectory`、`ctx.tools`、`ctx.terminals`、`an owning Agent at execution time` | `tool/call`、`PTY shell state`、`tool/result` | - | 一个按所有者隔离的持久 bash 工具;部署组合提供 PTY 后端,并可覆盖面向模型的环境描述。 | | `@deepseek-ai/dsh-tool-pwsh-persistent` | `pwsh` | `ctx.workingDirectory`、`ctx.tools`、`ctx.terminals`、`an owning Agent at execution time` | `tool/call`、`PTY shell state`、`tool/result` | - | 一个按所有者隔离的持久 pwsh 工具,持久 bash 工具的 Windows 对应物;部署组合提供 pwsh 方言的 PTY 后端,并可覆盖面向模型的环境描述。 | | `@deepseek-ai/dsh-tool-str-replace-editor` | `str_replace_editor` | `ctx.tools`、`ctx.fs` | `tool/call`、`fs/observed after view presence/absence, edit absence, or successful mutation`、`tool/result` | - | 基于文件系统 seam 的独立查看/创建/唯一字面量替换/按行插入工具;可与任何 shell 或终端接口组合。 | @@ -982,7 +982,7 @@ pwsh 工具是 Windows 组合中 bash 执行器 seam 的 PowerShell 方言消费 来源: [`packages/extensions/tool-cordis/src/index.ts`](../packages/extensions/tool-cordis/src/index.ts) -标准模式和创造模式提供一个只读运行时检查工具。省略 query 获取 provider 目录;传入 query 查询已声明的方法。Cordis host runner 提供检查注册表;Client 查询需要已连接页面。持久化变更编写为组合包,再通过 plugin_manager 安装。 +Desktop 标准模式、创造模式和 SDK profile 提供一个只读运行时检查工具。省略 query 获取 provider 目录;传入 query 查询已声明的方法。Cordis host runner 提供检查注册表;Client 查询需要已连接页面。持久化变更编写为组合包,再通过 plugin_manager 安装。 diff --git a/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.i18n.yaml b/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.i18n.yaml new file mode 100644 index 0000000000..fb761f368e --- /dev/null +++ b/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.i18n.yaml @@ -0,0 +1,16 @@ +# Bilingual-pair consistency record for guide.md (docs/i18n/README.md): per heading +# section, a hash of its English and Chinese blocks outside code blocks and generated regions. +# After editing either side, bring the other along and re-record with: +# pnpm run verify-translation-pairing --write docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.md +/: + en: 895270534c3c0211 + zh: 5da3b94c9350547c +/sdk-runtime-inspection-tool: + en: 750dcdacf1b45f1a + zh: b94ccea9590bfc90 +/sdk-runtime-inspection-tool/change: + en: e05bc467d0ce54f1 + zh: dae859bf19c5b707 +/sdk-runtime-inspection-tool/migration: + en: ec1bf74ca8b0ad38 + zh: ee38ed5a5c00f160 diff --git a/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.md b/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.md new file mode 100644 index 0000000000..c997391d7a --- /dev/null +++ b/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.md @@ -0,0 +1,24 @@ +--- +kind: upgrade-guide +description: The SDK profile adds the cordis_inspect runtime inspection tool. +--- + +# SDK runtime inspection tool + +English | [中文](guide.zh.md) + +## Change + +The `sdk` profile now mounts `cordis-host-runner`, `cordis-inspect-providers`, and `tool-cordis`, so the model receives `cordis_inspect` as the Desktop standard and Creator presets provide it. Host queries read Service, Event, Config, Runtime, and Tool data; the directory lists no Client providers because the SDK serves no browser. `sdk-minimal` is unchanged. + +## Migration + +1. Review pinned prompts, tool schemas, and tool-name allowlists for the added `cordis_inspect` definition. +2. To keep the previous tool roster, disable the `tool-cordis` row in a profile patch: + + ```yaml + - id: tool-cordis + disabled: true + ``` + +3. Run a task and confirm that the first model request lists `cordis_inspect` exactly when the row is enabled. diff --git a/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.zh.md b/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.zh.md new file mode 100644 index 0000000000..d4aeec18ef --- /dev/null +++ b/docs/upgrade-guide/v0.2.3-alpha.2/sdk-cordis-inspect/guide.zh.md @@ -0,0 +1,24 @@ +--- +kind: upgrade-guide +description: SDK profile 新增 cordis_inspect 运行时检查工具。 +--- + +# SDK 运行时检查工具 + +[English](guide.md) | 中文 + +## 变更 + +`sdk` profile 现在挂载 `cordis-host-runner`、`cordis-inspect-providers` 和 `tool-cordis`,模型像在 Desktop 标准模式和创造模式中一样收到 `cordis_inspect`。Host 查询读取 Service、Event、Config、Runtime 和 Tool 数据;SDK 不提供浏览器,因此目录不列出 Client provider。`sdk-minimal` 保持不变。 + +## 迁移 + +1. 检查固定的提示词、工具 schema 和工具名允许列表,确认新增的 `cordis_inspect` 定义。 +2. 如需保持原来的工具集合,在 profile patch 中禁用 `tool-cordis` 行: + + ```yaml + - id: tool-cordis + disabled: true + ``` + +3. 运行一个任务,确认首个模型请求只在该行启用时列出 `cordis_inspect`。 diff --git a/packages/bundle/sdk-app/README.i18n.yaml b/packages/bundle/sdk-app/README.i18n.yaml index 4e63cce002..3ec85e7fb6 100644 --- a/packages/bundle/sdk-app/README.i18n.yaml +++ b/packages/bundle/sdk-app/README.i18n.yaml @@ -24,11 +24,11 @@ en: 4f88e647c6df4f42 zh: 2bd3e4b0bdfe9412 /deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context/what-the-model-sees: - en: 2c54cdab827df6dc - zh: 575a00d86ecea5aa + en: 146ac8b6243a3d82 + zh: 367ac396c4a719ad /deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context/token-effect: - en: 7bb67dfbf1621d73 - zh: 71414a307ccf3f7b + en: 6d7e69d35ddf1de8 + zh: f8f95ffc54547b8e /deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context/kv-cache-effect: en: ccce9395f246ba39 zh: d758f8a78f03878d diff --git a/packages/bundle/sdk-app/README.md b/packages/bundle/sdk-app/README.md index 45383dd4bd..9b7ca385d7 100644 --- a/packages/bundle/sdk-app/README.md +++ b/packages/bundle/sdk-app/README.md @@ -50,11 +50,11 @@ The standard SDK profile lists `official-plugins` and `personalized-pages` by de #### What the model sees -The profile inherits the base system prompt, including the `You are an AI agent powered by DeepSeek Harness.` identity, and adds the same model-interpolated coding persona as the Web and headless profiles. Each Session receives its current directory in required user-role context from [`dsh-working-directory`](../../session/working-directory/README.md). Default file tool schemas include `read`, `write`, and `edit`; they omit `str_replace_editor`. The model also receives `present`, `ask_user_question`, `plugin_manager`, schedule tools, shared file-reference guidance, and time context. Child agents cannot use schedule tools. The [`time-context`](../../context/time-context/README.md) row accepts a fallback time zone. Each ordinary prompt reports its zone like a Web prompt: the client's `timeZone` (`time_zone` in Python) when given, otherwise the runtime process zone sampled for that prompt, so the model sees `Browser time zone for this request: . Interpret otherwise-unqualified dates and times in this zone.` A process zone that is not UTC or an IANA Area/Location name, such as the `+00:00` that `TZ=GMT` produces, reports `unavailable`. The skill catalog always lists the Office skills; their Python environment section names `load_workspace_dependencies` with an authoring payload and the user's existing Python without one. The catalog also lists `dsh-doc`, the DSH documentation skill that the Desktop standard, PTC, and Creator presets list; see the [Web app](../web-app/README.md#model-experience) for what it guides. +The profile inherits the base system prompt, including the `You are an AI agent powered by DeepSeek Harness.` identity, and adds the same model-interpolated coding persona as the Web and headless profiles. Each Session receives its current directory in required user-role context from [`dsh-working-directory`](../../session/working-directory/README.md). Default file tool schemas include `read`, `write`, and `edit`; they omit `str_replace_editor`. The model also receives `present`, `ask_user_question`, `plugin_manager`, `cordis_inspect`, schedule tools, shared file-reference guidance, and time context. `cordis_inspect` reads Host runtime APIs as the Desktop standard and Creator presets do; its directory lists no Client providers because the SDK serves no browser. Child agents cannot use schedule tools. The [`time-context`](../../context/time-context/README.md) row accepts a fallback time zone. Each ordinary prompt reports its zone like a Web prompt: the client's `timeZone` (`time_zone` in Python) when given, otherwise the runtime process zone sampled for that prompt, so the model sees `Browser time zone for this request: . Interpret otherwise-unqualified dates and times in this zone.` A process zone that is not UTC or an IANA Area/Location name, such as the `+00:00` that `TZ=GMT` produces, reports `unavailable`. The skill catalog always lists the Office skills; their Python environment section names `load_workspace_dependencies` with an authoring payload and the user's existing Python without one. The catalog also lists `dsh-doc`, the DSH documentation skill that the Desktop standard, PTC, and Creator presets list; see the [Web app](../web-app/README.md#model-experience) for what it guides. #### Token effect -The profile adds a coding-persona sentence, the mounted tool definitions and guidance, and logged runtime-context and time messages. The `plugin_manager` description and parameter schema add input tokens even when an operation cannot be approved; an embedding that does not use plugin management can disable its row. The `dsh-doc` catalog entry adds about 125 heuristic tokens to the first request; its instructions and references enter context only when the model loads the skill. +The profile adds a coding-persona sentence, the mounted tool definitions and guidance, and logged runtime-context and time messages. The `plugin_manager` description and parameter schema add input tokens even when an operation cannot be approved; an embedding that does not use plugin management can disable its row. The `cordis_inspect` schema adds one tool definition; query results enter the transcript only when the model calls it. The `dsh-doc` catalog entry adds about 125 heuristic tokens to the first request; its instructions and references enter context only when the model loads the skill. #### KV Cache effect diff --git a/packages/bundle/sdk-app/README.zh.md b/packages/bundle/sdk-app/README.zh.md index c3260b7372..c49e788615 100644 --- a/packages/bundle/sdk-app/README.zh.md +++ b/packages/bundle/sdk-app/README.zh.md @@ -50,11 +50,11 @@ Python 运行时向本 profile 提供显式下载的创作资源和 Office sidec #### 模型看到什么 -profile 继承 base 系统提示词,包括 `You are an AI agent powered by DeepSeek Harness.` 身份说明,并添加与 Web 和 headless profile 相同、按当前模型插值的 coding persona。每个 Session 通过 [`dsh-working-directory`](../../session/working-directory/README.zh.md) 提供的必需 user-role 上下文接收当前目录。默认文件工具 schema 包含 `read`、`write` 和 `edit`,不包含 `str_replace_editor`。模型还会收到 `present`、`ask_user_question`、`plugin_manager`、定时任务工具、共用文件引用说明和时间上下文。子 agent 不能使用定时任务工具。[`time-context`](../../context/time-context/README.zh.md) 配置项接受回退时区。每条普通 prompt 像 Web prompt 一样上报时区:传入了客户端的 `timeZone`(Python 中为 `time_zone`)时用它,否则用运行时为这条 prompt 采样的进程时区,因此模型看到 `Browser time zone for this request: . Interpret otherwise-unqualified dates and times in this zone.`。进程时区既不是 UTC 也不是 IANA Area/Location 名称时(例如 `TZ=GMT` 产生的 `+00:00`),上报 `unavailable`。技能目录总是列出 Office skills;有创作载荷时其 Python 环境说明指向 `load_workspace_dependencies`,没有时指向用户已有的 Python。技能目录还列出 `dsh-doc`,即 Desktop 标准模式、PTC 模式和创造模式列出的 DSH 文档 skill;其用途参见 [Web app](../web-app/README.zh.md#model-experience)。 +profile 继承 base 系统提示词,包括 `You are an AI agent powered by DeepSeek Harness.` 身份说明,并添加与 Web 和 headless profile 相同、按当前模型插值的 coding persona。每个 Session 通过 [`dsh-working-directory`](../../session/working-directory/README.zh.md) 提供的必需 user-role 上下文接收当前目录。默认文件工具 schema 包含 `read`、`write` 和 `edit`,不包含 `str_replace_editor`。模型还会收到 `present`、`ask_user_question`、`plugin_manager`、`cordis_inspect`、定时任务工具、共用文件引用说明和时间上下文。`cordis_inspect` 与 Desktop 标准模式和创造模式一样读取 Host 运行时 API;SDK 不提供浏览器,因此它的目录不列出 Client provider。子 agent 不能使用定时任务工具。[`time-context`](../../context/time-context/README.zh.md) 配置项接受回退时区。每条普通 prompt 像 Web prompt 一样上报时区:传入了客户端的 `timeZone`(Python 中为 `time_zone`)时用它,否则用运行时为这条 prompt 采样的进程时区,因此模型看到 `Browser time zone for this request: . Interpret otherwise-unqualified dates and times in this zone.`。进程时区既不是 UTC 也不是 IANA Area/Location 名称时(例如 `TZ=GMT` 产生的 `+00:00`),上报 `unavailable`。技能目录总是列出 Office skills;有创作载荷时其 Python 环境说明指向 `load_workspace_dependencies`,没有时指向用户已有的 Python。技能目录还列出 `dsh-doc`,即 Desktop 标准模式、PTC 模式和创造模式列出的 DSH 文档 skill;其用途参见 [Web app](../web-app/README.zh.md#model-experience)。 #### Token 影响 -此 profile 添加一句 coding persona、所挂载的工具定义与说明,以及记录在日志中的运行时上下文和时间消息。 即使操作无法获批,`plugin_manager` 的描述和参数 schema 仍增加输入 token;不使用插件管理的嵌入方可禁用该条目。`dsh-doc` 目录项使首个请求增加约 125 个启发式估算 token;其指令和参考资料仅在模型加载该 skill 时进入上下文。 +此 profile 添加一句 coding persona、所挂载的工具定义与说明,以及记录在日志中的运行时上下文和时间消息。 即使操作无法获批,`plugin_manager` 的描述和参数 schema 仍增加输入 token;不使用插件管理的嵌入方可禁用该条目。`cordis_inspect` 的 schema 增加一个工具定义;查询结果仅在模型调用它时进入转录。`dsh-doc` 目录项使首个请求增加约 125 个启发式估算 token;其指令和参考资料仅在模型加载该 skill 时进入上下文。 #### KV Cache 影响 diff --git a/packages/bundle/sdk-app/cordis.patch.yml b/packages/bundle/sdk-app/cordis.patch.yml index 4cbb999d5f..e51280fdf3 100644 --- a/packages/bundle/sdk-app/cordis.patch.yml +++ b/packages/bundle/sdk-app/cordis.patch.yml @@ -104,3 +104,16 @@ - id: deliverable-file-references name: '@deepseek-ai/dsh-deliverable-file-references' + +# Runtime inspection, as the Desktop standard and Creator presets expose it. +# The registry and Host providers mount once per process; the directory lists +# no Client providers because the SDK serves no browser. +- insert: + - id: cordis-host-runner + name: '@deepseek-ai/dsh-cordis-host-runner' + + - id: cordis-inspect-providers + name: '@deepseek-ai/dsh-tool-cordis/host' + + - id: tool-cordis + name: '@deepseek-ai/dsh-tool-cordis' diff --git a/packages/bundle/sdk-app/package.json b/packages/bundle/sdk-app/package.json index 9c22b7d27b..4134267165 100644 --- a/packages/bundle/sdk-app/package.json +++ b/packages/bundle/sdk-app/package.json @@ -60,7 +60,9 @@ "@deepseek-ai/dsh-tool-ask-user": "workspace:*", "@deepseek-ai/dsh-tool-present": "workspace:*", "@deepseek-ai/dsh-file-reference-local": "workspace:*", - "@deepseek-ai/dsh-deliverable-file-references": "workspace:*" + "@deepseek-ai/dsh-deliverable-file-references": "workspace:*", + "@deepseek-ai/dsh-cordis-host-runner": "workspace:*", + "@deepseek-ai/dsh-tool-cordis": "workspace:*" }, "peerDependencies": { "@deepseek-ai/cordis": "workspace:~" diff --git a/packages/extensions/tool-cordis/README.i18n.yaml b/packages/extensions/tool-cordis/README.i18n.yaml index f53652026b..6983a97a8d 100644 --- a/packages/extensions/tool-cordis/README.i18n.yaml +++ b/packages/extensions/tool-cordis/README.i18n.yaml @@ -9,14 +9,14 @@ en: ea2c0ac7e7932a08 zh: 5562e6f26d700b64 /deepseek-ai-dsh-tool-cordis/summary: - en: a4b0f81d92c4fb57 - zh: 2b548fd55ac6f1bf + en: 61866a9ad60c6492 + zh: f535ac43453fbf45 /deepseek-ai-dsh-tool-cordis/table-of-contents: en: d152484eb41ac6b4 zh: 3a2f21ff0dc3420d /deepseek-ai-dsh-tool-cordis/use-this-package: - en: 6a03f434a773ec43 - zh: d2d7c48df1a29e0b + en: 44c28af9651b98be + zh: dc52ac59ebce55e3 /deepseek-ai-dsh-tool-cordis/understand-the-implementation: en: c4d39015cdf9a6b6 zh: 9ca8a882bdea7529 @@ -33,8 +33,8 @@ en: 63d8b2a3ac2c6bc9 zh: 2ada02dd993f3d4f /deepseek-ai-dsh-tool-cordis/model-experience/runtime-inspection/token-effect: - en: b393ba67aaa0a600 - zh: 89a899e2401e9a34 + en: 8bfecb93d302d53d + zh: fd4494be2cf32a75 /deepseek-ai-dsh-tool-cordis/model-experience/runtime-inspection/kv-cache-effect: en: f57a20cd4e76d13c zh: 7b673116422bee87 diff --git a/packages/extensions/tool-cordis/README.md b/packages/extensions/tool-cordis/README.md index d672f52bb9..a75b4d642e 100644 --- a/packages/extensions/tool-cordis/README.md +++ b/packages/extensions/tool-cordis/README.md @@ -9,7 +9,7 @@ English | [中文](README.zh.md) ## Summary -Inspect Host and Client runtime APIs before writing plugin code. Standard and Creator modes provide this read-only tool alongside Plugin Manager, which owns persistent profile changes. The inspection registry is supplied by the Cordis host runner; browser queries need a connected page. +Inspect Host and Client runtime APIs before writing plugin code. The Desktop Standard and Creator modes and the SDK profile provide this read-only tool alongside Plugin Manager, which owns persistent profile changes. The inspection registry is supplied by the Cordis host runner; browser queries need a connected page. ## Table of Contents @@ -25,7 +25,7 @@ Inspect Host and Client runtime APIs before writing plugin code. Standard and Cr ## Use this package -Standard and Creator modes include this tool. Other compositions mount `@deepseek-ai/dsh-tool-cordis/host` once in the host composition beside the host runner that provides `cordisInspect`, and `@deepseek-ai/dsh-tool-cordis` in each agent preset that exposes the tool; a preset row alone registers no Host providers. Call `cordis_inspect` without `query` to discover providers, then pass a `query` object with `platform`, `provider`, `method`, and optional `input` to read a provider's exact methods and types. The Host `Config` provider lists live Loader entries in pages (`offset`, `limit` up to 100, optional exact plugin `name`; `total` and `nextOffset` bound the walk) with each entry's Loader id, the tree-local id patches address, and its Config status (`schema`, `absent`, `unsupported`, `tree` for group and include carriers, `inactive` for disabled, never imported, or disposed entries), and projects one entry's native Config into a self-contained JSON Schema document beside the entry's `packageDir`, the resolved directory holding the package README and built `lib/`, when the profile package lookup resolves it. The Host `Runtime` provider's `getVersion` returns `{ version }`, the exact running DSH version that plugin `engines.dsh` ranges and DSH peer dependencies are checked against. A call without an Agent, or a `Config` query on a Host without a Loader, fails with `ToolContextUnavailableError`; a malformed `Config` paging field fails with `ToolArgsError`; and an unknown entry id fails with `InspectError` `INSPECT_TARGET_NOT_FOUND`. Use [Plugin Manager](../../boot/plugin-manager/README.md) to install bundles containing plugin code or MCP configuration. +The Desktop Standard and Creator modes and the SDK profile include this tool. Other compositions mount `@deepseek-ai/dsh-tool-cordis/host` once in the host composition beside the host runner that provides `cordisInspect`, and `@deepseek-ai/dsh-tool-cordis` in each agent preset that exposes the tool; a preset row alone registers no Host providers. Call `cordis_inspect` without `query` to discover providers, then pass a `query` object with `platform`, `provider`, `method`, and optional `input` to read a provider's exact methods and types. The Host `Config` provider lists live Loader entries in pages (`offset`, `limit` up to 100, optional exact plugin `name`; `total` and `nextOffset` bound the walk) with each entry's Loader id, the tree-local id patches address, and its Config status (`schema`, `absent`, `unsupported`, `tree` for group and include carriers, `inactive` for disabled, never imported, or disposed entries), and projects one entry's native Config into a self-contained JSON Schema document beside the entry's `packageDir`, the resolved directory holding the package README and built `lib/`, when the profile package lookup resolves it. The Host `Runtime` provider's `getVersion` returns `{ version }`, the exact running DSH version that plugin `engines.dsh` ranges and DSH peer dependencies are checked against. A call without an Agent, or a `Config` query on a Host without a Loader, fails with `ToolContextUnavailableError`; a malformed `Config` paging field fails with `ToolArgsError`; and an unknown entry id fails with `InspectError` `INSPECT_TARGET_NOT_FOUND`. Use [Plugin Manager](../../boot/plugin-manager/README.md) to install bundles containing plugin code or MCP configuration. ----- @@ -58,7 +58,7 @@ The [tool catalog](../../../docs/tool-catalog.md#deepseek-aidsh-tool-cordis) des #### Token effect -In the shipped Standard and Creator modes, this plugin contributes one tool schema to each model request. Query results append to the transcript; exact queries avoid loading unrelated declarations. +In the shipped Desktop Standard and Creator modes and the SDK profile, this plugin contributes one tool schema to each model request. Query results append to the transcript; exact queries avoid loading unrelated declarations. #### KV Cache effect diff --git a/packages/extensions/tool-cordis/README.zh.md b/packages/extensions/tool-cordis/README.zh.md index e118bc222e..8c1666acff 100644 --- a/packages/extensions/tool-cordis/README.zh.md +++ b/packages/extensions/tool-cordis/README.zh.md @@ -9,7 +9,7 @@ kind: "package-reference" ## 概述 -编写插件代码前查询 Host 和 Client 的运行时 API。标准模式和创造模式同时提供这个只读工具与 Plugin Manager,后者负责持久化 profile 变更。检查注册表由 Cordis host runner 提供;浏览器查询需要已连接的页面。 +编写插件代码前查询 Host 和 Client 的运行时 API。Desktop 标准模式、创造模式和 SDK profile 同时提供这个只读工具与 Plugin Manager,后者负责持久化 profile 变更。检查注册表由 Cordis host runner 提供;浏览器查询需要已连接的页面。 ## 目录 @@ -25,7 +25,7 @@ kind: "package-reference" ## 使用本包 -标准模式和创造模式包含这个工具。其他组合需要在宿主组合里、提供 `cordisInspect` 的 host runner 旁挂载一次 `@deepseek-ai/dsh-tool-cordis/host`,并在每个要暴露这个工具的 agent preset 里挂载 `@deepseek-ai/dsh-tool-cordis`;仅有 preset 行不会注册任何 Host provider。调用 `cordis_inspect` 时省略 `query` 以发现 provider,再传入包含 `platform`、`provider`、`method` 及可选 `input` 的 `query` 对象,读取 provider 的具体方法和类型。Host 的 `Config` provider 分页列出运行中的 Loader entry(`offset`、最多 100 的 `limit`、可选的精确插件 `name`;`total` 与 `nextOffset` 界定遍历),每个 entry 带 Loader id、patch 所寻址的树内 id 及其 Config 状态(`schema`、`absent`、`unsupported`、group 与 include 载体为 `tree`、禁用、未导入或已销毁的 entry 为 `inactive`),并把单个 entry 的原生 Config 投影为自包含的 JSON Schema 文档,同时在 profile 包查找能解析时给出该 entry 的 `packageDir`,即包 README 与构建产物 `lib/` 所在目录。Host 的 `Runtime` provider 的 `getVersion` 返回 `{ version }`,即插件 `engines.dsh` 范围和 DSH peer 依赖所比对的当前运行 DSH 的精确版本。没有 Agent 的调用,或在没有 Loader 的 Host 上的 `Config` 查询,以 `ToolContextUnavailableError` 失败;`Config` 分页字段格式错误时以 `ToolArgsError` 失败;未知 entry id 以 `InspectError` `INSPECT_TARGET_NOT_FOUND` 失败。通过 [Plugin Manager](../../boot/plugin-manager/README.zh.md) 安装包含插件代码或 MCP 配置的组合包。 +Desktop 标准模式、创造模式和 SDK profile 包含这个工具。其他组合需要在宿主组合里、提供 `cordisInspect` 的 host runner 旁挂载一次 `@deepseek-ai/dsh-tool-cordis/host`,并在每个要暴露这个工具的 agent preset 里挂载 `@deepseek-ai/dsh-tool-cordis`;仅有 preset 行不会注册任何 Host provider。调用 `cordis_inspect` 时省略 `query` 以发现 provider,再传入包含 `platform`、`provider`、`method` 及可选 `input` 的 `query` 对象,读取 provider 的具体方法和类型。Host 的 `Config` provider 分页列出运行中的 Loader entry(`offset`、最多 100 的 `limit`、可选的精确插件 `name`;`total` 与 `nextOffset` 界定遍历),每个 entry 带 Loader id、patch 所寻址的树内 id 及其 Config 状态(`schema`、`absent`、`unsupported`、group 与 include 载体为 `tree`、禁用、未导入或已销毁的 entry 为 `inactive`),并把单个 entry 的原生 Config 投影为自包含的 JSON Schema 文档,同时在 profile 包查找能解析时给出该 entry 的 `packageDir`,即包 README 与构建产物 `lib/` 所在目录。Host 的 `Runtime` provider 的 `getVersion` 返回 `{ version }`,即插件 `engines.dsh` 范围和 DSH peer 依赖所比对的当前运行 DSH 的精确版本。没有 Agent 的调用,或在没有 Loader 的 Host 上的 `Config` 查询,以 `ToolContextUnavailableError` 失败;`Config` 分页字段格式错误时以 `ToolArgsError` 失败;未知 entry id 以 `InspectError` `INSPECT_TARGET_NOT_FOUND` 失败。通过 [Plugin Manager](../../boot/plugin-manager/README.zh.md) 安装包含插件代码或 MCP 配置的组合包。 ----- @@ -58,7 +58,7 @@ Host provider 结合生成的 Service/Event 目录、经 app-boot Config 投影 #### Token 影响 -在随发行版提供的标准模式和创造模式中,此插件向每次模型请求提供一个工具 schema。查询结果追加到转录中;精确查询避免加载无关声明。 +在随发行版提供的 Desktop 标准模式、创造模式和 SDK profile 中,此插件向每次模型请求提供一个工具 schema。查询结果追加到转录中;精确查询避免加载无关声明。 #### KV Cache 影响 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c8aea99658..5b493af3be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2976,6 +2976,9 @@ importers: '@deepseek-ai/dsh-cmdline': specifier: workspace:* version: link:../../boot/cmdline + '@deepseek-ai/dsh-cordis-host-runner': + specifier: workspace:* + version: link:../../extensions/cordis-host-runner '@deepseek-ai/dsh-creation-recommendations': specifier: workspace:* version: link:../../extensions/creation-recommendations @@ -3006,6 +3009,9 @@ importers: '@deepseek-ai/dsh-tool-ask-user': specifier: workspace:* version: link:../../interaction/tool-ask-user + '@deepseek-ai/dsh-tool-cordis': + specifier: workspace:* + version: link:../../extensions/tool-cordis '@deepseek-ai/dsh-tool-office': specifier: workspace:* version: link:../../document/tool-office diff --git a/scripts/gen-tool-catalog.ts b/scripts/gen-tool-catalog.ts index 99086f9f07..03a942a914 100644 --- a/scripts/gen-tool-catalog.ts +++ b/scripts/gen-tool-catalog.ts @@ -399,7 +399,7 @@ const TOOL_PACKAGES: ToolPackage[] = [ await ctx.plugin(ToolCordis) }, note: - 'Standard and Creator modes provide one read-only runtime inspection tool. Omit query for the provider directory; pass query to inspect a declared method. The Cordis host runner supplies the inspection registry; Client queries require a connected page. Author persistent changes as bundles and install them with plugin_manager.', + 'The Desktop Standard and Creator modes and the SDK profile provide one read-only runtime inspection tool. Omit query for the provider directory; pass query to inspect a declared method. The Cordis host runner supplies the inspection registry; Client queries require a connected page. Author persistent changes as bundles and install them with plugin_manager.', }, { pkg: '@deepseek-ai/dsh-tool-bash-persistent', diff --git a/scripts/smoke-python-runtime.py b/scripts/smoke-python-runtime.py index d3195fe73a..e25343436c 100644 --- a/scripts/smoke-python-runtime.py +++ b/scripts/smoke-python-runtime.py @@ -90,6 +90,7 @@ LEGACY_CUSTOM_DISABLED_ROWS = ( "workspace-dependencies", "time-context", "tool-ask-user", + "tool-cordis", "tool-fs", "tool-fs-search", "tool-goal", diff --git a/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json b/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json index 9d80c7d279..b9a01c73a9 100644 --- a/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json +++ b/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json @@ -47,6 +47,7 @@ "tools": [ "apply_patch", "ask_user_question", + "cordis_inspect", "create_goal", "edit", "get_goal", @@ -109,6 +110,7 @@ "tools": [ "apply_patch", "ask_user_question", + "cordis_inspect", "create_goal", "edit", "get_goal", @@ -186,6 +188,7 @@ "tools": [ "apply_patch", "ask_user_question", + "cordis_inspect", "create_goal", "edit", "get_goal", diff --git a/snapshots/sdk/background-wait-steer/tool-schemas.expected.json b/snapshots/sdk/background-wait-steer/tool-schemas.expected.json index 13611d9fad..3982fedb9d 100644 --- a/snapshots/sdk/background-wait-steer/tool-schemas.expected.json +++ b/snapshots/sdk/background-wait-steer/tool-schemas.expected.json @@ -136,6 +136,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/command-attachments/tool-schemas.expected.json b/snapshots/sdk/command-attachments/tool-schemas.expected.json index 262bf12a5f..ea7c203ff4 100644 --- a/snapshots/sdk/command-attachments/tool-schemas.expected.json +++ b/snapshots/sdk/command-attachments/tool-schemas.expected.json @@ -136,6 +136,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/cua-run-code/tool-schemas.expected.json b/snapshots/sdk/cua-run-code/tool-schemas.expected.json index d251bd81c2..ac0a023477 100644 --- a/snapshots/sdk/cua-run-code/tool-schemas.expected.json +++ b/snapshots/sdk/cua-run-code/tool-schemas.expected.json @@ -136,6 +136,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/desktop-context/tool-schemas.expected.json b/snapshots/sdk/desktop-context/tool-schemas.expected.json index be187a3abb..0a8f3b4adb 100644 --- a/snapshots/sdk/desktop-context/tool-schemas.expected.json +++ b/snapshots/sdk/desktop-context/tool-schemas.expected.json @@ -136,6 +136,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/desktop-ptc-context-scoped/system-prompt.expected.md b/snapshots/sdk/desktop-ptc-context-scoped/system-prompt.expected.md index de9d3d4aab..f7c63027fa 100644 --- a/snapshots/sdk/desktop-ptc-context-scoped/system-prompt.expected.md +++ b/snapshots/sdk/desktop-ptc-context-scoped/system-prompt.expected.md @@ -106,6 +106,19 @@ interface ToolArgsMap { /** Required with sandbox_permissions: one sentence for the user explaining why this exact command needs the wider access. Use the language of the user’s current request. */ justification?: string; } & Record; + /** Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page. */ + cordis_inspect: { + query?: { + /** Provider platform. */ + platform: "host" | "client"; + /** Provider ID from the directory. */ + provider: string; + /** Method name from the directory. */ + method: string; + /** Arguments matching the method's input schema. */ + input?: JsonValue; + }; + } & Record; /** Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say "goal"; not for single-turn work. */ create_goal: { /** The concrete completion objective inferred from the direct human request. */ @@ -432,6 +445,7 @@ interface ToolOutputMap { runnerFailed?: boolean; }; }; + cordis_inspect: JsonValue; create_goal: { goal: null; } | { diff --git a/snapshots/sdk/desktop-ptc-context/system-prompt.expected.md b/snapshots/sdk/desktop-ptc-context/system-prompt.expected.md index f85367d44c..c4ebe80835 100644 --- a/snapshots/sdk/desktop-ptc-context/system-prompt.expected.md +++ b/snapshots/sdk/desktop-ptc-context/system-prompt.expected.md @@ -106,6 +106,19 @@ interface ToolArgsMap { /** Required with sandbox_permissions: one sentence for the user explaining why this exact command needs the wider access. Use the language of the user’s current request. */ justification?: string; } & Record; + /** Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page. */ + cordis_inspect: { + query?: { + /** Provider platform. */ + platform: "host" | "client"; + /** Provider ID from the directory. */ + provider: string; + /** Method name from the directory. */ + method: string; + /** Arguments matching the method's input schema. */ + input?: JsonValue; + }; + } & Record; /** Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say "goal"; not for single-turn work. */ create_goal: { /** The concrete completion objective inferred from the direct human request. */ @@ -432,6 +445,7 @@ interface ToolOutputMap { runnerFailed?: boolean; }; }; + cordis_inspect: JsonValue; create_goal: { goal: null; } | { diff --git a/snapshots/sdk/legacy-context.patch.yml b/snapshots/sdk/legacy-context.patch.yml index ea0b46ea86..0775a0fee5 100644 --- a/snapshots/sdk/legacy-context.patch.yml +++ b/snapshots/sdk/legacy-context.patch.yml @@ -25,6 +25,9 @@ - id: tool-office disabled: true +- id: tool-cordis + disabled: true + # The recorded tool catalog includes the optional patch tool. - id: tool-fs config: diff --git a/snapshots/sdk/manual-compact/tool-schemas.expected.json b/snapshots/sdk/manual-compact/tool-schemas.expected.json index 263b09efac..6175a87da0 100644 --- a/snapshots/sdk/manual-compact/tool-schemas.expected.json +++ b/snapshots/sdk/manual-compact/tool-schemas.expected.json @@ -136,6 +136,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", @@ -1040,6 +1079,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/plan-review/session.v4.jsonl b/snapshots/sdk/plan-review/session.v4.jsonl index ab9e5d79e0..4899b549b1 100644 --- a/snapshots/sdk/plan-review/session.v4.jsonl +++ b/snapshots/sdk/plan-review/session.v4.jsonl @@ -11,7 +11,7 @@ {"type":"user/message","data":{"content":[{"type":"text","text":"\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable.\n\nApproval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed.\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable."},{"name":"approval:policy","text":"Approval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{message:3}}"},"surfaceOp":"append"} {"type":"user/message","data":{"content":[{"type":"text","text":"\nA skill is a reusable set of task-specific instructions. The following skills are available in this session:\n\n\n- `office`: Create, read, edit, and validate Word, PowerPoint, and Excel files; render Office files and PDFs; convert or recalculate. Load first to enable office_render, office_convert, and office_recalculate.\n- `official-plugins`: Check DSH’s optional plugins when the user asks how to do or use something in this app, whether it can, or says a capability is missing or should change: tools, input, thinking or title display, session search, terminals, worktrees, agent teams, desktop control, automation, access, approvals, badges or signatures, plugins or plugin sources. Not a request to develop DSH, even in its own repository: load before reading files or source. Not for ordinary tasks, quoted wishes or declined offers.\n- `personalized-pages`: Plan an optional page or small tool when the user asks for a page, tab, panel, tool or interface in this app (even for one-off use), wants something to keep, revisit or update later, will keep changing data in your answer, or wants a live view of this app’s own data (Sessions, tasks, logs, workspace). Load this before reading any files or source; it says how to submit the proposal. Not for requested files or code, ordinary answers, existing-feature questions, quoted wishes or declined offers.\n\n\nIf the user names a skill, or the task clearly matches a skill's description, call the `skill` tool with the exact skill name before taking task actions. Load all applicable skills, then follow their full instructions. This catalog contains summaries only; do not infer or follow a skill's instructions until it has been loaded.\nA user may also invoke a skill directly; its block then appears in this conversation. Follow it, and do not call the `skill` tool again for that skill.\n"}],"source":{"kind":"skill-catalog","form":"catalog","entries":[{"name":"office","description":"Create, read, edit, and validate Word, PowerPoint, and Excel files; render Office files and PDFs; convert or recalculate. Load first to enable office_render, office_convert, and office_recalculate."},{"name":"official-plugins","description":"Check DSH’s optional plugins when the user asks how to do or use something in this app, whether it can, or says a capability is missing or should change: tools, input, thinking or title display, session search, terminals, worktrees, agent teams, desktop control, automation, access, approvals, badges or signatures, plugins or plugin sources. Not a request to develop DSH, even in its own repository: load before reading files or source. Not for ordinary tasks, quoted wishes or declined offers."},{"name":"personalized-pages","description":"Plan an optional page or small tool when the user asks for a page, tab, panel, tool or interface in this app (even for one-off use), wants something to keep, revisit or update later, will keep changing data in your answer, or wants a live view of this app’s own data (Sessions, tasks, logs, workspace). Load this before reading any files or source; it says how to submit the proposal. Not for requested files or code, ordinary answers, existing-feature questions, quoted wishes or declined offers."}]},"role":"user","id":"{{message:4}}"},"surfaceOp":"append"} {"type":"user/message","data":{"content":[{"type":"text","text":"Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: UTC. Interpret otherwise-unqualified dates and times in this zone.\nElapsed since the preceding model-visible message: unavailable."}],"source":{"kind":"time-context","form":"snapshot","sections":[{"name":"time-context","text":"Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: UTC. Interpret otherwise-unqualified dates and times in this zone.\nElapsed since the preceding model-visible message: unavailable."}]},"role":"user","id":"{{message:5}}"},"surfaceOp":"append"} -{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash"},"tools":["apply_patch","ask_user_question","bash","create_goal","edit","get_goal","glob","grep","job_kill","job_list","job_output","list_agents","plugin_manager","present","read","read_image","schedule_create","schedule_edit","schedule_list","schedule_view","send_message","skill","subagent","subagent_fork","todo_write","update_goal","wait_agent","web_fetch","web_search","workflow","write"]},"reason":"initial"}} +{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash"},"tools":["apply_patch","ask_user_question","bash","cordis_inspect","create_goal","edit","get_goal","glob","grep","job_kill","job_list","job_output","list_agents","plugin_manager","present","read","read_image","schedule_create","schedule_edit","schedule_list","schedule_view","send_message","skill","subagent","subagent_fork","todo_write","update_goal","wait_agent","web_fetch","web_search","workflow","write"]},"reason":"initial"}} {"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-flash"}} {"type":"session/title","data":{"title":"Reply SDK_PLAN_INITIAL without tools.","messageSeqs":[8],"source":{"kind":"fallback"}}} {"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{session:1}}","sessionFormatVersion":4,"throughSeq":14}} @@ -29,7 +29,7 @@ {"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"plan:policy","order":500,"state":"active","contentIndex":0},{"name":"plan:status","order":501,"state":"active","contentIndex":1}]},"id":"{{message:9}}"}},"surfaceOp":"append"} {"type":"user/message","data":{"content":[{"type":"text","text":"The user switched this session to plan mode."}],"source":{"kind":"plan-mode","form":"notice","summary":"The user switched this session to plan mode."},"role":"user","id":"{{message:7}}"},"surfaceOp":"append"} {"type":"user/message","data":{"content":[{"type":"text","text":"Prepare a plan through exit_plan_mode; revise after feedback and acknowledge approval."}],"source":{"kind":"user"},"role":"user","id":"{{message:8}}"},"surfaceOp":"append"} -{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash"},"tools":["apply_patch","ask_user_question","bash","create_goal","edit","exit_plan_mode","get_goal","glob","grep","job_kill","job_list","job_output","list_agents","plugin_manager","present","read","read_image","schedule_create","schedule_edit","schedule_list","schedule_view","send_message","skill","subagent","subagent_fork","todo_write","update_goal","wait_agent","web_fetch","web_search","workflow","write"]},"reason":"change"}} +{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash"},"tools":["apply_patch","ask_user_question","bash","cordis_inspect","create_goal","edit","exit_plan_mode","get_goal","glob","grep","job_kill","job_list","job_output","list_agents","plugin_manager","present","read","read_image","schedule_create","schedule_edit","schedule_list","schedule_view","send_message","skill","subagent","subagent_fork","todo_write","update_goal","wait_agent","web_fetch","web_search","workflow","write"]},"reason":"change"}} {"type":"developer/message","data":{"turn":2,"step":1,"message":{"source":{"kind":"tool-registry"},"content":[{"type":"tool-addition","toolName":"exit_plan_mode"}],"role":"developer","id":"{{message:10}}"},"headerSeq":30},"surfaceOp":"append"} {"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{session:1}}","sessionFormatVersion":4,"throughSeq":31}} {"type":"assistant/message","data":{"turn":2,"step":1,"message":{"role":"assistant","content":[{"type":"tool-call","id":"commands-tool-1","name":"exit_plan_mode","arguments":"{\"plan\": \"# Implement the change\\n\\n- Inspect existing code.\\n- Make the smallest change.\\n- Run focused tests.\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-flash"},"blocks":[{"type":"tool-call"}]}},"id":"{{message:11}}"},"usage":{"inputTokens":10000,"outputTokens":32,"totalTokens":10032},"stream":[{"type":"chunk","time":1792108800000,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":1792108800000,"index":0,"dt":[],"id":"commands-tool-1","name":"exit_plan_mode","args":[""]},{"type":"tool-call-chunks","time0":1792108800000,"index":0,"dt":[],"id":"commands-tool-1","args":["{\"plan\": \"# Implement the change\\n\\n- Inspect existing code.\\n- Make the smallest change.\\n- Run focused tests.\"}"]},{"type":"chunk","time":1792108800000,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"commands-tool-1","name":"exit_plan_mode","arguments":"{\"plan\": \"# Implement the change\\n\\n- Inspect existing code.\\n- Make the smallest change.\\n- Run focused tests.\"}"}}},{"type":"chunk","time":1792108800000,"chunk":{"type":"usage","usage":{"inputTokens":10000,"outputTokens":32,"totalTokens":10032}}},{"type":"chunk","time":1792108800000,"chunk":{"type":"finish","reason":{"kind":"tool-calls"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-v4-flash"},"blocks":[{"type":"tool-call"}]}}}]},"surfaceOp":"append"} diff --git a/snapshots/sdk/plan-review/tool-schemas.expected.json b/snapshots/sdk/plan-review/tool-schemas.expected.json index 71e14844b3..bc146c56cf 100644 --- a/snapshots/sdk/plan-review/tool-schemas.expected.json +++ b/snapshots/sdk/plan-review/tool-schemas.expected.json @@ -136,6 +136,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", @@ -1040,6 +1079,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/team-default-enabled/tool-schemas.1.expected.json b/snapshots/sdk/team-default-enabled/tool-schemas.1.expected.json index 125b25eeaa..8730f8b10f 100644 --- a/snapshots/sdk/team-default-enabled/tool-schemas.1.expected.json +++ b/snapshots/sdk/team-default-enabled/tool-schemas.1.expected.json @@ -108,6 +108,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.", diff --git a/snapshots/sdk/team-default-enabled/tool-schemas.expected.json b/snapshots/sdk/team-default-enabled/tool-schemas.expected.json index 125b25eeaa..8730f8b10f 100644 --- a/snapshots/sdk/team-default-enabled/tool-schemas.expected.json +++ b/snapshots/sdk/team-default-enabled/tool-schemas.expected.json @@ -108,6 +108,45 @@ ] } }, + { + "name": "cordis_inspect", + "description": "Inspect runtime APIs before writing or configuring plugins. Omit query to discover providers, methods, and input schemas; then query an exact entry from that directory. Read-only: cannot invoke business Service methods or modify the runtime. Client queries require a connected page.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "object", + "additionalProperties": false, + "properties": { + "platform": { + "type": "string", + "description": "Provider platform.", + "enum": [ + "host", + "client" + ] + }, + "provider": { + "type": "string", + "description": "Provider ID from the directory." + }, + "method": { + "type": "string", + "description": "Method name from the directory." + }, + "input": { + "description": "Arguments matching the method's input schema." + } + }, + "required": [ + "platform", + "provider", + "method" + ] + } + } + } + }, { "name": "create_goal", "description": "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.",