mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-27 18:20:23 +08:00
等待 HTTP 服务就绪再注册私有 RPC(v0.2.10)
This commit is contained in:
1 parent
c7afd4e03d
commit
ae6c7663fe
5 files changed
+36
-15
No files matched your search
+2
-2
@@ -37,7 +37,7 @@ import {
|
||||
export const name = 'dsh-unrestricted'
|
||||
|
||||
/** Current plugin package version. */
|
||||
export const PLUGIN_VERSION = '0.2.9'
|
||||
export const PLUGIN_VERSION = '0.2.10'
|
||||
|
||||
/** Services required by this plugin (all base-backed profiles provide these). */
|
||||
export const inject = ['settings', 'systemPrompt', 'loader']
|
||||
@@ -421,7 +421,7 @@ export function apply(ctx, config) {
|
||||
}, 'dsh-unrestricted: toggle lifecycle')
|
||||
|
||||
// Web/Desktop 状态通道由官方 Connection 认证;headless 组合无需提供 connection 服务。
|
||||
ctx.inject(['connection'], (connectionCtx) => {
|
||||
ctx.inject(['connection', 'webServer'], (connectionCtx) => {
|
||||
const disposeRpc = connectionCtx.connection.rpc.handle(RPC_CHANNEL, handleRpc)
|
||||
return async () => {
|
||||
await disposeRpc()
|
||||
|
||||
Reference in new issue
Block a user