feat(ai): add plugin recommendations and agent context
This commit is contained in:
43 files changed
+1210
-118
No files matched your search
@@ -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 }),
|
||||
|
||||
Reference in new issue
Block a user