first commit
This commit is contained in:
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
declare const _globalThis: {
|
||||
[key: string]: any;
|
||||
Zotero: _ZoteroTypes.Zotero;
|
||||
ztoolkit: ZToolkit;
|
||||
addon: typeof addon;
|
||||
};
|
||||
|
||||
declare type ZToolkit = ReturnType<
|
||||
typeof import("../src/utils/ztoolkit").createZToolkit
|
||||
>;
|
||||
|
||||
declare const ztoolkit: ZToolkit;
|
||||
|
||||
declare const rootURI: string;
|
||||
|
||||
declare const addon: import("../src/addon").default;
|
||||
|
||||
declare const __env__: "production" | "development";
|
||||
|
||||
declare const Zotero_Tabs: {
|
||||
selectedID: string;
|
||||
};
|
||||
|
||||
declare const PathUtils: {
|
||||
join: (...parts: string[]) => string;
|
||||
};
|
||||
|
||||
declare const IOUtils: {
|
||||
exists: (path: string) => Promise<boolean>;
|
||||
readUTF8: (path: string) => Promise<string>;
|
||||
writeUTF8: (path: string, data: string) => Promise<void>;
|
||||
remove: (path: string) => Promise<void>;
|
||||
makeDirectory: (
|
||||
path: string,
|
||||
options?: { createAncestors?: boolean; ignoreExisting?: boolean },
|
||||
) => Promise<void>;
|
||||
};
|
||||
Vendored
+55
@@ -0,0 +1,55 @@
|
||||
// Generated by zotero-plugin-scaffold
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
export type FluentMessageId =
|
||||
| 'chat-add-selection'
|
||||
| 'chat-clear'
|
||||
| 'chat-cleared'
|
||||
| 'chat-done'
|
||||
| 'chat-loading'
|
||||
| 'chat-need-config'
|
||||
| 'chat-no-reply'
|
||||
| 'chat-note-saved'
|
||||
| 'chat-placeholder'
|
||||
| 'chat-save-note'
|
||||
| 'chat-selection-added'
|
||||
| 'chat-selection-empty'
|
||||
| 'chat-send'
|
||||
| 'chat-stop'
|
||||
| 'chat-stopped'
|
||||
| 'chat-summarize'
|
||||
| 'chat-thinking'
|
||||
| 'item-section-chat-head'
|
||||
| 'item-section-chat-sidenav'
|
||||
| 'itemmenu-label'
|
||||
| 'prefs-answer-language'
|
||||
| 'prefs-api-key'
|
||||
| 'prefs-base-url'
|
||||
| 'prefs-hint-cloud'
|
||||
| 'prefs-hint-empty'
|
||||
| 'prefs-hint-local'
|
||||
| 'prefs-hint-openrouter'
|
||||
| 'prefs-max-context'
|
||||
| 'prefs-max-tokens'
|
||||
| 'prefs-model'
|
||||
| 'prefs-models-empty'
|
||||
| 'prefs-models-pick'
|
||||
| 'prefs-openrouter-referer'
|
||||
| 'prefs-openrouter-title'
|
||||
| 'prefs-privacy'
|
||||
| 'prefs-provider'
|
||||
| 'prefs-refresh-models'
|
||||
| 'prefs-reset'
|
||||
| 'prefs-section-generation'
|
||||
| 'prefs-section-openrouter'
|
||||
| 'prefs-section-prompts'
|
||||
| 'prefs-section-provider'
|
||||
| 'prefs-send-metadata'
|
||||
| 'prefs-summary-prompt'
|
||||
| 'prefs-system-prompt'
|
||||
| 'prefs-temperature'
|
||||
| 'prefs-timeout'
|
||||
| 'prefs-title'
|
||||
| 'startup-begin'
|
||||
| 'startup-finish';
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// Generated by zotero-plugin-scaffold
|
||||
/* prettier-ignore */
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
// prettier-ignore
|
||||
declare namespace _ZoteroTypes {
|
||||
interface Prefs {
|
||||
PluginPrefsMap: {
|
||||
"provider": string;
|
||||
"apiBaseUrl": string;
|
||||
"apiKey": string;
|
||||
"model": string;
|
||||
"openrouterReferer": string;
|
||||
"openrouterTitle": string;
|
||||
"temperature": string;
|
||||
"maxTokens": number;
|
||||
"timeoutMs": number;
|
||||
"maxContextChars": number;
|
||||
"answerLanguage": string;
|
||||
"systemPrompt": string;
|
||||
"summaryPrompt": string;
|
||||
"sendMetadata": boolean;
|
||||
"verboseLog": boolean;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user