mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-18 17:04:48 +00:00
first commit
This commit is contained in:
commit
1cdbffff09
200 changed files with 30007 additions and 0 deletions
22
app/types/actions.ts
Normal file
22
app/types/actions.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
export type ActionType = 'file' | 'shell';
|
||||
|
||||
export interface BaseAction {
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface FileAction extends BaseAction {
|
||||
type: 'file';
|
||||
filePath: string;
|
||||
}
|
||||
|
||||
export interface ShellAction extends BaseAction {
|
||||
type: 'shell';
|
||||
}
|
||||
|
||||
export interface StartAction extends BaseAction {
|
||||
type: 'start';
|
||||
}
|
||||
|
||||
export type BoltAction = FileAction | ShellAction | StartAction;
|
||||
|
||||
export type BoltActionData = BoltAction | BaseAction;
|
||||
5
app/types/artifact.ts
Normal file
5
app/types/artifact.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export interface BoltArtifactData {
|
||||
id: string;
|
||||
title: string;
|
||||
type?: string | undefined;
|
||||
}
|
||||
5
app/types/global.d.ts
vendored
Normal file
5
app/types/global.d.ts
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
interface Window {
|
||||
showDirectoryPicker(): Promise<FileSystemDirectoryHandle>;
|
||||
webkitSpeechRecognition: typeof SpeechRecognition;
|
||||
SpeechRecognition: typeof SpeechRecognition;
|
||||
}
|
||||
19
app/types/model.ts
Normal file
19
app/types/model.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import type { ModelInfo } from '~/utils/types';
|
||||
|
||||
export type ProviderInfo = {
|
||||
staticModels: ModelInfo[];
|
||||
name: string;
|
||||
getDynamicModels?: (apiKeys?: Record<string, string>, providerSettings?: IProviderSetting) => Promise<ModelInfo[]>;
|
||||
getApiKeyLink?: string;
|
||||
labelForGetApiKey?: string;
|
||||
icon?: string;
|
||||
};
|
||||
|
||||
export interface IProviderSetting {
|
||||
enabled?: boolean;
|
||||
baseUrl?: string;
|
||||
}
|
||||
|
||||
export type IProviderConfig = ProviderInfo & {
|
||||
settings: IProviderSetting;
|
||||
};
|
||||
9
app/types/terminal.ts
Normal file
9
app/types/terminal.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export interface ITerminal {
|
||||
readonly cols?: number;
|
||||
readonly rows?: number;
|
||||
|
||||
reset: () => void;
|
||||
write: (data: string) => void;
|
||||
onData: (cb: (data: string) => void) => void;
|
||||
input: (data: string) => void;
|
||||
}
|
||||
1
app/types/theme.ts
Normal file
1
app/types/theme.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type Theme = 'dark' | 'light';
|
||||
Loading…
Add table
Add a link
Reference in a new issue