fix(mac): bundle web chat UI deps

This commit is contained in:
Peter Steinberger
2025-12-07 00:05:38 +01:00
parent 9c32e630a0
commit c5c50a2141
3423 changed files with 561057 additions and 98 deletions

View 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() {}
}