feat(ai): add plugin recommendations and agent context

This commit is contained in:
二丫讲梵 authored and t8y2 committed 2026-09-27 12:04:09 +08:00
1 parent 1b6017b9c5
commit e6edd02bbe
43 files changed
+1210 -118

No files matched your search

+5
View File
@@ -114,6 +114,11 @@ function installBridge(channel) {
request,
invoke: (method, params, options = {}) => request("backend.invoke", { method, params, timeoutMs: options.timeoutMs }),
stream,
ai: Object.freeze({
openConversation: (options) => request("host.ai.openConversation", options),
setRecommendations: (update) => request("host.ai.setRecommendations", update),
clearRecommendations: () => request("host.ai.clearRecommendations"),
}),
notify: (method, params) => request("backend.notify", { method, params }),
sendBinary: (channel, data) => request("backend.sendBinary", { channel, dataBase64: typeof data === "string" ? data : encode(data) }),
readAsset: (path) => request("ui.readAsset", { path }),