@powerhousedao/reactor-browser 6.2.3-dev.84 → 6.2.3-dev.86
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/dist/{attachment-service-BuPjCTlF.d.ts → attachment-service-Bdb6Kst6.d.ts} +6 -32
- package/dist/attachment-service-Bdb6Kst6.d.ts.map +1 -0
- package/dist/auth-DlMQ3sQT.d.ts +32 -0
- package/dist/auth-DlMQ3sQT.d.ts.map +1 -0
- package/dist/{client-XPGQrO4a.d.ts → client-DfyMnY2p.d.ts} +3 -2
- package/dist/client-DfyMnY2p.d.ts.map +1 -0
- package/dist/{document-model-modules-D-VXC3ET.js → document-model-modules-ChmfyIxT.js} +2 -2
- package/dist/{document-model-modules-D-VXC3ET.js.map → document-model-modules-ChmfyIxT.js.map} +1 -1
- package/dist/{document-operations-CsiIPsx9.js → document-operations-x4rOim9v.js} +5 -5
- package/dist/{document-operations-CsiIPsx9.js.map → document-operations-x4rOim9v.js.map} +1 -1
- package/dist/{global-DY6FeQYj.d.ts → global-WLS0zIjs.d.ts} +5 -3
- package/dist/{global-DY6FeQYj.d.ts.map → global-WLS0zIjs.d.ts.map} +1 -1
- package/dist/{index-C5yCJAVE.d.ts → index-CafZ4qKe.d.ts} +2 -2
- package/dist/{index-C5yCJAVE.d.ts.map → index-CafZ4qKe.d.ts.map} +1 -1
- package/dist/index.d.ts +9 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/{navigation-BqphkrOB.js → renown-CBoTdGrg.js} +96 -4
- package/dist/renown-CBoTdGrg.js.map +1 -0
- package/dist/{renown-BtjgHBjH.js → renown-a_8pPr10.js} +2 -3
- package/dist/{renown-BtjgHBjH.js.map → renown-a_8pPr10.js.map} +1 -1
- package/dist/{types-BNVqRNli.d.ts → schema-B7fKG2YV.d.ts} +3 -57
- package/dist/schema-B7fKG2YV.d.ts.map +1 -0
- package/dist/src/ai/index.d.ts +198 -7
- package/dist/src/ai/index.d.ts.map +1 -1
- package/dist/src/ai/index.js +657 -138
- package/dist/src/ai/index.js.map +1 -1
- package/dist/src/graphql/client.d.ts +2 -2
- package/dist/src/graphql-client/entry.d.ts +4 -3
- package/dist/src/graphql-client/entry.js +2 -2
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/src/renown/index.js +2 -2
- package/dist/{switchboard-DnvOmOx5.js → switchboard-B640iT1L.js} +2 -2
- package/dist/{switchboard-DnvOmOx5.js.map → switchboard-B640iT1L.js.map} +1 -1
- package/dist/types-DgMeokve.d.ts +59 -0
- package/dist/types-DgMeokve.d.ts.map +1 -0
- package/package.json +10 -10
- package/dist/attachment-service-BuPjCTlF.d.ts.map +0 -1
- package/dist/client-XPGQrO4a.d.ts.map +0 -1
- package/dist/navigation-BqphkrOB.js.map +0 -1
- package/dist/renown-BxkZYzbQ.js +0 -97
- package/dist/renown-BxkZYzbQ.js.map +0 -1
- package/dist/types-BNVqRNli.d.ts.map +0 -1
package/dist/src/ai/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as BearerTokenProvider } from "../../auth-DlMQ3sQT.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { PhAiChatImage, PhAiToolAnnotations, PhAiToolDescriptor } from "@powerhousedao/shared/document-model";
|
|
2
4
|
import { ISyncManager } from "@powerhousedao/reactor";
|
|
3
|
-
import { LanguageModel, ModelMessage } from "ai";
|
|
5
|
+
import { LanguageModel, ModelMessage, ToolResultPart } from "ai";
|
|
4
6
|
//#region src/ai/types.d.ts
|
|
5
7
|
/**
|
|
6
8
|
* Browser-side AI chat over the reactor.
|
|
@@ -26,6 +28,28 @@ export interface AiSettings {
|
|
|
26
28
|
*/
|
|
27
29
|
autoApproveWrites: boolean;
|
|
28
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* An endpoint the host app picked for the chat, which takes the place of the
|
|
33
|
+
* user's settings. It holds no API key: the endpoint holds its own (see
|
|
34
|
+
* `gatewayConnection`), and write tools always ask for approval.
|
|
35
|
+
*/
|
|
36
|
+
export interface AiConnection {
|
|
37
|
+
/** OpenAI-compatible base URL; a relative path resolves against the page. */
|
|
38
|
+
baseUrl: string;
|
|
39
|
+
/** Model id, sent as is. A gateway may answer with its own. */
|
|
40
|
+
model: string;
|
|
41
|
+
/** Sets each request's credentials, e.g. the user's bearer. */
|
|
42
|
+
fetch?: typeof fetch;
|
|
43
|
+
}
|
|
44
|
+
/** An image attached to a user message. */
|
|
45
|
+
export interface ChatImage {
|
|
46
|
+
/** `data:<mediaType>;base64,...` */
|
|
47
|
+
dataUrl: string;
|
|
48
|
+
mediaType: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
}
|
|
51
|
+
/** A sent image, under the handle tools reach it by. */
|
|
52
|
+
export type AiChatImage = PhAiChatImage;
|
|
29
53
|
/** MCP-compatible annotation hints; structural, no MCP SDK dependency. */
|
|
30
54
|
export type AiToolAnnotations = PhAiToolAnnotations;
|
|
31
55
|
/**
|
|
@@ -47,6 +71,10 @@ export type ToolCallState = "awaiting-approval" | "executing" | "done" | "error"
|
|
|
47
71
|
export type ChatPart = {
|
|
48
72
|
type: "text";
|
|
49
73
|
text: string;
|
|
74
|
+
} | {
|
|
75
|
+
type: "image";
|
|
76
|
+
dataUrl: string;
|
|
77
|
+
name?: string;
|
|
50
78
|
} | {
|
|
51
79
|
type: "tool";
|
|
52
80
|
toolCallId: string;
|
|
@@ -122,7 +150,7 @@ export type AgentEvent = {
|
|
|
122
150
|
//#endregion
|
|
123
151
|
//#region src/ai/agent.d.ts
|
|
124
152
|
/** Hard cap on model round-trips per user message (each tool step counts). */
|
|
125
|
-
export declare const MAX_AGENT_STEPS =
|
|
153
|
+
export declare const MAX_AGENT_STEPS = 250;
|
|
126
154
|
/**
|
|
127
155
|
* Hard cap on the characters of one tool result fed back to the model.
|
|
128
156
|
*
|
|
@@ -148,10 +176,17 @@ export declare const STUB_MIN_CHARS = 500;
|
|
|
148
176
|
* turns with one-line stubs naming the tool and its arguments. User and
|
|
149
177
|
* assistant messages are never touched, and tool calls keep their input,
|
|
150
178
|
* so the model can re-query any stubbed result with the same arguments.
|
|
151
|
-
*
|
|
179
|
+
* A result with images is stubbed whatever its size. Idempotent: stubs are
|
|
180
|
+
* below {@link STUB_MIN_CHARS} and pass through.
|
|
152
181
|
*/
|
|
153
182
|
export declare function stubStaleToolResults(history: ModelMessage[]): ModelMessage[];
|
|
154
183
|
export declare function createReactorChatModel(settings: AiSettings): LanguageModel;
|
|
184
|
+
/**
|
|
185
|
+
* Creates the chat language model for a connection the host app picked. No
|
|
186
|
+
* API key is involved: the endpoint holds it, and {@link AiConnection.fetch}
|
|
187
|
+
* carries the caller's own credentials.
|
|
188
|
+
*/
|
|
189
|
+
export declare function createConnectionChatModel(connection: AiConnection): LanguageModel;
|
|
155
190
|
/**
|
|
156
191
|
* Unwraps the MCP `CallToolResult` envelope produced by the reactor tool
|
|
157
192
|
* core into a plain value for the AI SDK. Throws for error results so the
|
|
@@ -162,6 +197,10 @@ export declare function unwrapToolResult(raw: unknown): unknown;
|
|
|
162
197
|
export declare function buildSystemPrompt(context: ChatContext): string;
|
|
163
198
|
export interface ReactorChatAgentOptions {
|
|
164
199
|
settings: AiSettings;
|
|
200
|
+
/** Used instead of {@link settings}; writes then always need approval. */
|
|
201
|
+
connection?: AiConnection;
|
|
202
|
+
/** Added to the system prompt, for what the host app knows about itself. */
|
|
203
|
+
instructions?: string;
|
|
165
204
|
tools: AiToolDescriptor[];
|
|
166
205
|
context: ChatContext;
|
|
167
206
|
onEvent: (event: AgentEvent) => void;
|
|
@@ -170,6 +209,8 @@ export interface ReactorChatAgentOptions {
|
|
|
170
209
|
model?: LanguageModel;
|
|
171
210
|
/** Prior conversation to continue (see {@link ReactorChatAgent.getHistory}). */
|
|
172
211
|
history?: ModelMessage[];
|
|
212
|
+
/** Images of that conversation (see {@link ReactorChatAgent.getChatImages}). */
|
|
213
|
+
chatImages?: AiChatImage[];
|
|
173
214
|
}
|
|
174
215
|
/**
|
|
175
216
|
* Runs one tool-loop conversation turn against an OpenAI-compatible model.
|
|
@@ -181,10 +222,13 @@ export interface ReactorChatAgentOptions {
|
|
|
181
222
|
export declare class ReactorChatAgent {
|
|
182
223
|
private readonly options;
|
|
183
224
|
private history;
|
|
225
|
+
private chatImages;
|
|
184
226
|
private approvals;
|
|
185
227
|
constructor(options: ReactorChatAgentOptions);
|
|
186
228
|
/** The model history after the last completed turn, for the next agent. */
|
|
187
229
|
getHistory(): ModelMessage[];
|
|
230
|
+
/** The images attached so far, under their handles, for the next agent. */
|
|
231
|
+
getChatImages(): AiChatImage[];
|
|
188
232
|
/** Clears the conversation history (a fresh chat). */
|
|
189
233
|
reset(): void;
|
|
190
234
|
/** Approves a pending write tool call, resuming the agent loop. */
|
|
@@ -194,7 +238,7 @@ export declare class ReactorChatAgent {
|
|
|
194
238
|
private resolveApproval;
|
|
195
239
|
private cancelPendingApprovals;
|
|
196
240
|
/** Runs one user turn: appends the message, streams the model, commits history. */
|
|
197
|
-
send(text: string): Promise<void>;
|
|
241
|
+
send(text: string, images?: ChatImage[]): Promise<void>;
|
|
198
242
|
/**
|
|
199
243
|
* Removes tool calls that were never executed (step cap or abort):
|
|
200
244
|
* OpenAI-compatible APIs reject a tool call without its tool result.
|
|
@@ -222,12 +266,18 @@ export interface UseReactorChatResult {
|
|
|
222
266
|
error: string | null;
|
|
223
267
|
settings: AiSettings;
|
|
224
268
|
configured: boolean;
|
|
225
|
-
send: (text: string) => void;
|
|
269
|
+
send: (text: string, images?: ChatImage[]) => void;
|
|
226
270
|
stop: () => void;
|
|
227
271
|
approve: (toolCallId: string) => void;
|
|
228
272
|
reject: (toolCallId: string) => void;
|
|
229
273
|
clear: () => void;
|
|
230
274
|
}
|
|
275
|
+
export interface UseReactorChatOptions {
|
|
276
|
+
/** Talk to this endpoint instead of the one in the user's settings. */
|
|
277
|
+
connection?: AiConnection;
|
|
278
|
+
/** Added to the agent's system prompt. */
|
|
279
|
+
instructions?: string;
|
|
280
|
+
}
|
|
231
281
|
/**
|
|
232
282
|
* Drives one in-browser chat conversation against the reactor tools.
|
|
233
283
|
*
|
|
@@ -236,7 +286,26 @@ export interface UseReactorChatResult {
|
|
|
236
286
|
* user sends a message, so the reactor does not need to be ready at render
|
|
237
287
|
* time.
|
|
238
288
|
*/
|
|
239
|
-
export declare function useReactorChat(toolsProvider?: AiToolsProvider): UseReactorChatResult;
|
|
289
|
+
export declare function useReactorChat(toolsProvider?: AiToolsProvider, options?: UseReactorChatOptions): UseReactorChatResult;
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/ai/components/chat-panel.d.ts
|
|
292
|
+
interface ChatPanelProps {
|
|
293
|
+
chat: UseReactorChatResult;
|
|
294
|
+
className?: string;
|
|
295
|
+
/** What shows while the conversation is empty. */
|
|
296
|
+
emptyState?: ReactNode;
|
|
297
|
+
/** One-click starting points, shown while the conversation is empty. */
|
|
298
|
+
suggestions?: readonly string[];
|
|
299
|
+
/** Lets the user attach images by paste, drop or the file picker. */
|
|
300
|
+
allowImages?: boolean;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The conversation and its composer, with no position of its own: it fills
|
|
304
|
+
* whatever the host gives it (see `ChatWindow` for the floating one). Tailwind
|
|
305
|
+
* utilities style it for Connect; the `ph-chat-*` classes are for hosts that
|
|
306
|
+
* bring their own styles.
|
|
307
|
+
*/
|
|
308
|
+
export declare function ChatPanel({ chat, className, emptyState, suggestions, allowImages }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
240
309
|
//#endregion
|
|
241
310
|
//#region src/ai/components/chat-window.d.ts
|
|
242
311
|
/** The chat window panel, anchored above the FAB in the bottom-right. */
|
|
@@ -245,6 +314,20 @@ export declare function ChatWindow({ chat, onClose }: {
|
|
|
245
314
|
onClose: () => void;
|
|
246
315
|
}): import("react/jsx-runtime").JSX.Element;
|
|
247
316
|
//#endregion
|
|
317
|
+
//#region src/ai/components/markdown.d.ts
|
|
318
|
+
/**
|
|
319
|
+
* Markdown renderer for assistant messages.
|
|
320
|
+
*
|
|
321
|
+
* Uses react-markdown, which builds React elements from the markdown AST and
|
|
322
|
+
* does not execute raw HTML — safe for model-generated content. remark-gfm
|
|
323
|
+
* adds the table/strikethrough/task-list syntax the agent emits. Element
|
|
324
|
+
* styling is scoped to the chat window's text-sm scale via Tailwind
|
|
325
|
+
* utilities, so no extra CSS is needed.
|
|
326
|
+
*/
|
|
327
|
+
export declare function Markdown({ text }: {
|
|
328
|
+
text: string;
|
|
329
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
330
|
+
//#endregion
|
|
248
331
|
//#region src/ai/components/reactor-chat-fab.d.ts
|
|
249
332
|
/**
|
|
250
333
|
* Bottom-right floating action button that opens the reactor AI chat window.
|
|
@@ -265,6 +348,75 @@ export declare function ReactorChatFab({ getTools }: {
|
|
|
265
348
|
*/
|
|
266
349
|
export declare function useChatContext(): ChatContext;
|
|
267
350
|
//#endregion
|
|
351
|
+
//#region src/ai/gateway.d.ts
|
|
352
|
+
/**
|
|
353
|
+
* The switchboard's AI gateway (`@powerhousedao/switchboard/plugins/ai`). It
|
|
354
|
+
* sits under `/api/`, which every Connect served next to its switchboard
|
|
355
|
+
* proxies, so by default the browser calls its own origin.
|
|
356
|
+
*/
|
|
357
|
+
export declare const AI_GATEWAY_PATH = "/api/@powerhousedao/switchboard/ai";
|
|
358
|
+
export interface AiGatewayStatus {
|
|
359
|
+
configured: boolean;
|
|
360
|
+
/** Masked, e.g. `sk-or-v1-…abcd`. The key itself is never sent. */
|
|
361
|
+
keyHint: string | null;
|
|
362
|
+
keySetBy: string | null;
|
|
363
|
+
keySetAt: string | null;
|
|
364
|
+
model: string;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* What the signed-in user may do with the gateway: `none` when they are not
|
|
368
|
+
* an admin, are not signed in, or this host has no gateway at all.
|
|
369
|
+
*/
|
|
370
|
+
export type AiGatewayAccess = {
|
|
371
|
+
access: "none";
|
|
372
|
+
} | {
|
|
373
|
+
access: "admin";
|
|
374
|
+
status: AiGatewayStatus;
|
|
375
|
+
} | {
|
|
376
|
+
access: "error";
|
|
377
|
+
message: string;
|
|
378
|
+
};
|
|
379
|
+
export interface AiGatewayOptions {
|
|
380
|
+
/** The gateway's URL; defaults to {@link AI_GATEWAY_PATH} on this origin. */
|
|
381
|
+
url?: string;
|
|
382
|
+
/** Test seams. */
|
|
383
|
+
tokenProvider?: BearerTokenProvider;
|
|
384
|
+
fetchImpl?: typeof fetch;
|
|
385
|
+
}
|
|
386
|
+
/** A fetch that adds the user's bearer, resolved per request so it stays fresh. */
|
|
387
|
+
export declare function gatewayFetch(options?: AiGatewayOptions): typeof fetch;
|
|
388
|
+
/** The chat connection to a gateway: no key, only the user's own bearer. */
|
|
389
|
+
export declare function gatewayConnection(model: string, options?: AiGatewayOptions): AiConnection;
|
|
390
|
+
export declare function fetchAiGatewayAccess(options?: AiGatewayOptions): Promise<AiGatewayAccess>;
|
|
391
|
+
/** Tested against the provider before it is stored; a refusal throws. */
|
|
392
|
+
export declare function setAiGatewayKey(value: string, options?: AiGatewayOptions): Promise<AiGatewayStatus>;
|
|
393
|
+
export declare function resetAiGatewayKey(options?: AiGatewayOptions): Promise<AiGatewayStatus>;
|
|
394
|
+
export declare function setAiGatewayModel(model: string, options?: AiGatewayOptions): Promise<AiGatewayStatus>;
|
|
395
|
+
export interface UseAiGatewayResult {
|
|
396
|
+
/** `undefined` until the first answer. */
|
|
397
|
+
gateway: AiGatewayAccess | undefined;
|
|
398
|
+
/** Connection for {@link useReactorChat}, once the gateway has a key. */
|
|
399
|
+
connection: AiConnection | undefined;
|
|
400
|
+
setKey: (value: string) => Promise<void>;
|
|
401
|
+
resetKey: () => Promise<void>;
|
|
402
|
+
}
|
|
403
|
+
/** The gateway as the signed-in user sees it; asks again when they change. */
|
|
404
|
+
export declare function useAiGateway(): UseAiGatewayResult;
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/ai/host-tools.d.ts
|
|
407
|
+
/**
|
|
408
|
+
* The tools of the Connect this page runs in: the reactor's own plus every
|
|
409
|
+
* package's `aiTools`. For a page a package adds to Connect, which can't import
|
|
410
|
+
* Connect itself. Pass it to `useReactorChat`.
|
|
411
|
+
*/
|
|
412
|
+
export declare function getHostAiTools(): Promise<AiToolDescriptor[]>;
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/ai/images.d.ts
|
|
415
|
+
/** What the chat offers in its file picker and accepts on paste and drop. */
|
|
416
|
+
export declare const CHAT_IMAGE_TYPES: readonly string[];
|
|
417
|
+
/** Turns a picked, pasted or dropped file into an attachment for the chat. */
|
|
418
|
+
export declare function readChatImage(file: File): Promise<ChatImage>;
|
|
419
|
+
//#endregion
|
|
268
420
|
//#region src/ai/settings-store.d.ts
|
|
269
421
|
export declare const DEFAULT_AI_SETTINGS: AiSettings;
|
|
270
422
|
type Listener = () => void;
|
|
@@ -350,5 +502,44 @@ export interface SwitchboardToolDeps {
|
|
|
350
502
|
*/
|
|
351
503
|
export declare function createSwitchboardSchemaTool(deps?: SwitchboardToolDeps): AiToolDescriptor;
|
|
352
504
|
//#endregion
|
|
505
|
+
//#region src/ai/tool-images.d.ts
|
|
506
|
+
/**
|
|
507
|
+
* Most characters of image data one request carries, kept well under the
|
|
508
|
+
* gateway's 32 MB body limit: every step resends the whole conversation.
|
|
509
|
+
*/
|
|
510
|
+
export declare const MAX_REQUEST_IMAGE_CHARS = 20000000;
|
|
511
|
+
/** Most images one request carries; models start refusing large ones past this. */
|
|
512
|
+
export declare const MAX_REQUEST_IMAGES = 20;
|
|
513
|
+
/** An image a tool returned: an MCP `image` content block. */
|
|
514
|
+
export interface ToolImage {
|
|
515
|
+
/** Base64, without a `data:` prefix. */
|
|
516
|
+
data: string;
|
|
517
|
+
mediaType: string;
|
|
518
|
+
}
|
|
519
|
+
type ToolOutput = ToolResultPart["output"];
|
|
520
|
+
/** The `image` blocks of a tool's `CallToolResult`, if it returned any. */
|
|
521
|
+
export declare function toolResultImages(raw: unknown): ToolImage[];
|
|
522
|
+
/**
|
|
523
|
+
* A tool's result as it enters the history. Images travel inside it, so they
|
|
524
|
+
* age with the result and are stubbed along with it.
|
|
525
|
+
*/
|
|
526
|
+
export declare function toolOutput(value: unknown, images?: ToolImage[]): ToolOutput;
|
|
527
|
+
/** How many images a stored tool result holds. */
|
|
528
|
+
export declare function toolOutputImageCount(output: unknown): number;
|
|
529
|
+
/** The characters a stored tool result takes, image data aside. */
|
|
530
|
+
export declare function toolOutputTextChars(output: unknown): number;
|
|
531
|
+
/**
|
|
532
|
+
* The conversation as one request carries it. An OpenAI-compatible tool message
|
|
533
|
+
* holds text only, and the provider would send an image in one as a block of
|
|
534
|
+
* base64 text, so a result's images move to a user message right after it. Only
|
|
535
|
+
* the newest fit: the result says how many it left out, and the model asks again
|
|
536
|
+
* if it needs them. The history keeps them in the result, so each step decides
|
|
537
|
+
* this afresh.
|
|
538
|
+
*/
|
|
539
|
+
export declare function withToolImages(messages: ModelMessage[]): ModelMessage[];
|
|
540
|
+
/** Whether any tool result in the conversation holds images. */
|
|
541
|
+
export declare function hasToolImages(messages: ModelMessage[]): boolean;
|
|
542
|
+
//#endregion
|
|
543
|
+
export type { ChatPanelProps };
|
|
353
544
|
export {};
|
|
354
545
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/ai/types.ts","../../../src/ai/agent.ts","../../../src/ai/components/approval-card.tsx","../../../src/ai/use-reactor-chat.ts","../../../src/ai/components/chat-window.tsx","../../../src/ai/components/reactor-chat-fab.tsx","../../../src/ai/context.ts","../../../src/ai/settings-store.ts","../../../src/ai/switchboard.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/ai/types.ts","../../../src/ai/agent.ts","../../../src/ai/components/approval-card.tsx","../../../src/ai/use-reactor-chat.ts","../../../src/ai/components/chat-panel.tsx","../../../src/ai/components/chat-window.tsx","../../../src/ai/components/markdown.tsx","../../../src/ai/components/reactor-chat-fab.tsx","../../../src/ai/context.ts","../../../src/ai/gateway.ts","../../../src/ai/host-tools.ts","../../../src/ai/images.ts","../../../src/ai/settings-store.ts","../../../src/ai/switchboard.ts","../../../src/ai/tool-images.ts"],"mappings":";;;;;;;;;;;;;;;iBAgBiB;;EAEf;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;;iBAQe;;EAEf;;EAEA;;EAEA,eAAe;;;iBAIA;;EAEf;EACA;EACA;;;YAIU,cAAc;;YAGd,oBAAoB;;;;;;;;;;YAWpB,mBAAmB;;YAGnB,wBAAwB,QAAQ;;wBAG5B,YAAY,cAAc;YAI9B;;YAQA;EACN;EAAc;;EACd;EAAe;EAAiB;;EAEhC;EACA;EACA;EACA;EACA,OAAO;EACP;EACA;;iBAGW;EACf;EACA;EACA,OAAO;;;iBAIQ;EACf;EACA;EACA;;;iBAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;YAIU;EACN;EAAoB;;EAEpB;EACA;EACA;EACA;;EAGA;EACA;EACA;EACA;;EAEA;EAA2B;EAAoB;;EAE/C;EACA;EACA;EACA;EACA;EACA;;;;;;;EAMA;EAAe;;EACf;;EACA;EAAe;;;;;qBC7HR;;;;;;;;;;qBAWA;;;;;;;;qBA0BA;;qBAGA;;;;;;;;;wBAmCG,qBAAqB,SAAS,iBAAiB;wBAkE/C,uBAAuB,UAAU,aAAa;;;;;;wBAc9C,0BACd,YAAY,eACX;;;;;;wBAca,iBAAiB;;wBAmCjB,kBAAkB,SAAS;iBAmD1B;EACf,UAAU;;EAEV,aAAa;;EAEb;EACA,OAAO;EACP,SAAS;EACT,UAAU,OAAO;EACjB,SAAS;;EAET,QAAQ;;EAER,UAAU;;EAEV,aAAa;;;;;;;;;qBAUF;mBAKkB;UAJrB;UACA;UACA;EAER,YAA6B,SAAS;;EAMtC,cAAc;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