Use markRaw to prevent Vue from deep-proxying the Chat class instance, which broke its internal Vue refs. Add dedent for multiline prompts. Tests use mock transport by default. Set TEST_REAL_LLM=1 and OPENROUTER_API_KEY to run against real OpenRouter.
26 lines
665 B
TypeScript
26 lines
665 B
TypeScript
interface FilePickerAcceptType {
|
|
description: string
|
|
accept: Record<string, string[]>
|
|
}
|
|
|
|
interface FilePickerOptions {
|
|
types?: FilePickerAcceptType[]
|
|
suggestedName?: string
|
|
}
|
|
|
|
interface Window {
|
|
showOpenFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle[]>
|
|
showSaveFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle>
|
|
queryLocalFonts?(): Promise<
|
|
{
|
|
family: string
|
|
fullName: string
|
|
style: string
|
|
postscriptName: string
|
|
blob(): Promise<Blob>
|
|
}[]
|
|
>
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
__OPEN_PENCIL_SET_TRANSPORT__?(factory: () => any): void
|
|
}
|