mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 02:30:22 +08:00
适配 DSH 0.1.2-alpha.1
This commit is contained in:
1 parent
62d0bcd274
commit
057e473a6c
45 files changed
+653
-468
No files matched your search
@@ -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 })
|
||||
|
||||
|
||||
Reference in new issue
Block a user