fix(mac): bundle web chat UI deps
This commit is contained in:
24
apps/macos/Sources/Clawdis/Resources/WebChat/pi-ai-stub.js
Normal file
24
apps/macos/Sources/Clawdis/Resources/WebChat/pi-ai-stub.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// Minimal browser-friendly stub for @mariozechner/pi-ai
|
||||
export function getModel(provider, id) {
|
||||
return {
|
||||
provider,
|
||||
id,
|
||||
name: id,
|
||||
api: `${provider}-messages`,
|
||||
input: ["text"],
|
||||
output: ["text"],
|
||||
maxTokens: 200000,
|
||||
reasoning: true,
|
||||
headers: undefined,
|
||||
baseUrl: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
// Dummy stream helpers used in some debug flows; no-ops in web chat.
|
||||
export function agentLoop() {
|
||||
throw new Error("agentLoop is not available in embedded web chat");
|
||||
}
|
||||
export class AssistantMessageEventStream {
|
||||
push() {}
|
||||
end() {}
|
||||
}
|
||||
Reference in New Issue
Block a user