@solazah/solazah-runtime 0.2.66 → 0.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/CopilotSubAgent.d.ts +2 -17
package/package.json
CHANGED
|
@@ -137,25 +137,10 @@ export default class CopilotSubAgent {
|
|
|
137
137
|
* (通常是顶层的任务管理器),需要分发给多个组件时自行在这层之上做扇出。
|
|
138
138
|
*/
|
|
139
139
|
onTaskFinished: (onFinished: (msg: CopilotAsyncTaskFinishedMessage) => void) => (() => void);
|
|
140
|
-
/**
|
|
141
|
-
* 订阅「该会话已空闲、有后台通知待投递」。
|
|
142
|
-
*
|
|
143
|
-
* 主进程只在确认该会话没有回合在跑时才发这个信号,收到即可直接起新一轮 ——
|
|
144
|
-
* 不需要自己轮询 streaming/loading 判断忙闲。回合进行中完成的任务不会走这条,
|
|
145
|
-
* 它们由主进程的中间件直接注入正在跑的那一轮。
|
|
146
|
-
*
|
|
147
|
-
* @param onPending 回调,参数为 `{ threadId }`
|
|
148
|
-
* @returns 退订函数
|
|
149
|
-
*/
|
|
140
|
+
/** 旧版客户端的通知订阅;执行端自动续轮不再发布此信号。 */
|
|
150
141
|
onPendingInjection: (onPending: (msg: {
|
|
151
142
|
threadId: string;
|
|
152
143
|
}) => void) => (() => void);
|
|
153
|
-
/**
|
|
154
|
-
* 取走某会话待注入的内容(取走即清空):后台通知与用户插话共用同一个队列。
|
|
155
|
-
* 与主进程「轮中注入」共用同一个队列,同一条通知只会被其中一方领到。
|
|
156
|
-
*
|
|
157
|
-
* @param threadId 会话 ID
|
|
158
|
-
* @returns 待投递内容;没有则空数组
|
|
159
|
-
*/
|
|
144
|
+
/** 旧接口保留,执行端返回空数组,不开放队列领取。 */
|
|
160
145
|
takePendingInjections: (threadId: string) => Promise<CopilotPendingInjection[]>;
|
|
161
146
|
}
|