index.ts 585 B

1234567891011121314151617
  1. /**
  2. * Web question plugin, node half: enabling this UI feature also exposes the
  3. * model-facing ask_user_question tool on the host composition.
  4. */
  5. import type { Context } from 'cordis'
  6. import * as toolAskUser from '@deepseek-ai/dsh-tool-ask-user'
  7. /** Host services required by the model-facing tool. */
  8. export const inject = ['tools', 'userInteraction']
  9. /**
  10. * Mount ask_user_question for hosts that selected the Web question plugin.
  11. * @param ctx - Host plugin context carrying tools and userInteraction.
  12. */
  13. export function apply(ctx: Context): void {
  14. toolAskUser.apply(ctx)
  15. }