适配 DSH 0.1.2-alpha.1

This commit is contained in:
yexi committed 2026-08-30 14:54:48 +08:00
1 parent 62d0bcd274
commit 057e473a6c
45 files changed
+653 -468

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@
* closure owns the controller, the slot inject face hands hooks and callbacks
* to the component.
*/
import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client'
import type { Context } from '@deepseek-ai/cordis'
import type { ConnectionHandle } from '@deepseek-ai/dsh-client-connection/client'
// Type-only: the ctx.remote Context merge and the forwarded-event key face.
import type {} from '@deepseek-ai/dsh-api-remotes/client'
@@ -80,7 +80,7 @@ function messageOf(error: unknown): string {
* @param ctx - the browser plugin context (connection + remote + settingsScope injected).
* @returns the controller whose face() feeds the slot inject share.
*/
export function createUnrestrictedController(ctx: ClientContext) {
export function createUnrestrictedController(ctx: Context) {
const connection = ctx.get('connection') as ConnectionHandle
const settings = ctx.settingsScope.bind<UnrestrictedSettings>({ namespace: SETTINGS_NS })