fix(user-questions): preserve master legacy tool schema

This commit is contained in:
Magolor authored and imccyu committed 2026-09-28 23:21:36 +08:00
1 parent 8b9b7307ea
commit a68ecdefc4
3 files changed
+6 -7

No files matched your search

+4 -4
View File
@@ -9,8 +9,8 @@
en: 6cc2cd9ced70bb09
zh: 1c0e6cb4ba2ed637
/tool-schema-catalog/tool-package-map:
en: 72e2a375567f5850
zh: b51b8ea5b52814fd
en: 167287d095eee2f5
zh: 18720d5e81379d2f
/tool-schema-catalog/deepseek-ai-dsh-plugin-manager:
en: e0143916bb634762
zh: e0143916bb634762
@@ -54,8 +54,8 @@
en: e713a4a11a15d13c
zh: e713a4a11a15d13c
/tool-schema-catalog/deepseek-ai-dsh-tool-ask-user/ask-user-question:
en: f42b7f17ad59577a
zh: 7e1eee22ff35d4b1
en: 055268ba4dcd32f9
zh: a1a3c4bfcbf698ed
/tool-schema-catalog/deepseek-ai-dsh-tools:
en: 76fbbf0fe38aef10
zh: 76fbbf0fe38aef10
@@ -8,8 +8,7 @@
import type { Context } from '@deepseek-ai/cordis'
import { defineTool } from '@deepseek-ai/dsh-tools'
const description = 'Ask the user a concise question when you need confirmation, a choice, or missing information before proceeding. '
+ 'Send one or more questions, each with a stable id that will be echoed in the answer.'
const description = 'Ask the user a concise question when you need confirmation, a choice, or missing information before proceeding.'
/**
* Register the pre-timeout blocking tool definition selected by Cordis config.
@@ -213,7 +213,7 @@ describe('ask_user_question tool', () => {
expect(schemas).toHaveLength(1)
expect(schemas[0]).toMatchObject({
description: 'Ask the user a concise question when you need confirmation, a choice, or missing information before proceeding. Send one or more questions, each with a stable id that will be echoed in the answer.',
description: 'Ask the user a concise question when you need confirmation, a choice, or missing information before proceeding.',
parameters: { properties: { questions: { description: 'Questions to ask the user before continuing.' } } },
})
expect(schemas[0]?.parameters.properties).not.toHaveProperty('timeout')