model.ts 699 B

1234567891011121314151617181920
  1. /** Preset-scoped model surface for the Host Visualizer authority. */
  2. import type { Context } from '@deepseek-ai/cordis'
  3. import type {} from './index.ts'
  4. /** Stable Cordis plugin name for the preset contribution. */
  5. export const name = 'tool-visualizer-model'
  6. /** Services required from the preset standing scope. */
  7. export const inject = ['systemPrompt', 'tools']
  8. /**
  9. * Register the Visualizer prompt and tools in this preset's inherited layer.
  10. * @param ctx - Preset-scoped Cordis context that owns the contribution.
  11. */
  12. export function apply(ctx: Context): void {
  13. ctx.inject(['visualizer'], (authorityCtx: Context) => {
  14. authorityCtx.visualizer.installModelSurface(authorityCtx)
  15. })
  16. }