| 1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * The one home of this application's forwarded-Host-event allowlist. Both
- * compiler faces list this file, so the Host forwarding loop and the consumer
- * `ctx.remote.$on` key face read one declaration instead of two copies that
- * could drift; `./types.ts` derives the type projection from it and stays
- * type-only.
- */
- import type {} from '@deepseek-ai/dsh-api-session-controller/remote-events'
- import type { TypertForwardableEventEntry } from '@deepseek-ai/dsh-typert-protocol'
- /**
- * Host events this application forwards without renaming. The explicit mode is
- * both the Host dispatch strategy and the legal key set of `ctx.remote.$on`.
- */
- export const API_REMOTE_FORWARDED_EVENTS = [
- { event: 'agent-preset/selected', mode: 'emit' },
- { event: 'approval/request', mode: 'waterfall' },
- { event: 'api-session/activity', mode: 'emit' },
- { event: 'api-session/added', mode: 'emit' },
- { event: 'api-session/error', mode: 'emit' },
- { event: 'api-session/removed', mode: 'emit' },
- { event: 'api-session/status', mode: 'emit' },
- { event: 'commands/change', mode: 'emit' },
- { event: 'credentials/reference-updated', mode: 'emit' },
- { event: 'cordis/request-run', mode: 'emit' },
- { event: 'cordis/request-run-resolved', mode: 'emit' },
- { event: 'cordis/dynamic-package', mode: 'emit' },
- { event: 'cordis/dynamic-retract', mode: 'emit' },
- { event: 'cordis/inspect-query', mode: 'emit' },
- { event: 'cordis/inspect-query-resolved', mode: 'emit' },
- { event: 'llm/adapters-updated', mode: 'emit' },
- { event: 'settings/document-updated', mode: 'emit' },
- { event: 'user-questions/request', mode: 'waterfall' },
- ] as const satisfies readonly TypertForwardableEventEntry[]
|