@hackbuild/ai-views 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +93 -2
- package/dist/chat.d.ts +91 -0
- package/dist/chat.js +237 -0
- package/dist/dom.d.ts +38 -0
- package/dist/dom.js +67 -0
- package/dist/elements.d.ts +42 -0
- package/dist/elements.js +378 -0
- package/dist/frame.d.ts +55 -0
- package/dist/frame.js +40 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -0
- package/dist/jobs.d.ts +26 -0
- package/dist/jobs.js +49 -0
- package/dist/memory.d.ts +26 -0
- package/dist/memory.js +36 -0
- package/dist/mount-chat.d.ts +38 -0
- package/dist/mount-chat.js +177 -0
- package/dist/mount-frame.d.ts +45 -0
- package/dist/mount-frame.js +237 -0
- package/dist/mount-mask.d.ts +109 -0
- package/dist/mount-mask.js +446 -0
- package/dist/mount-model.d.ts +27 -0
- package/dist/mount-model.js +122 -0
- package/dist/mount-transcribe.d.ts +42 -0
- package/dist/mount-transcribe.js +203 -0
- package/dist/pick.d.ts +132 -0
- package/dist/pick.js +254 -0
- package/dist/rows.d.ts +36 -0
- package/dist/rows.js +147 -0
- package/dist/single/elements.iife.js +9568 -0
- package/dist/single/elements.js +9542 -0
- package/dist/single/index.iife.js +6814 -0
- package/dist/single/index.js +6778 -0
- package/dist/single/vue.iife.js +11334 -0
- package/dist/single/vue.js +11316 -0
- package/dist/transcribe.d.ts +80 -0
- package/dist/transcribe.js +175 -0
- package/dist/vue.d.ts +259 -0
- package/dist/vue.js +199 -0
- package/how.ts +26 -0
- package/package.json +61 -4
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The state behind TranscribeDrop and TranscriptView, after the earlier
|
|
3
|
+
* transcription tool: drop files, they queue as channels, run one at a
|
|
4
|
+
* time, and each becomes a transcript with timestamps that a person can
|
|
5
|
+
* edit (with undo) and export as txt, srt, vtt or json. The engine is a
|
|
6
|
+
* function the page passes, so a stub runs the view with no weights.
|
|
7
|
+
*/
|
|
8
|
+
import { type Dropped, type Seg } from "@hackbuild/transcribe";
|
|
9
|
+
import { type StripFigure, type StripStatus } from "@virgilvox/hackbuild-ui/vanilla";
|
|
10
|
+
export interface RunResult {
|
|
11
|
+
segments: Seg[];
|
|
12
|
+
dropped?: Dropped[];
|
|
13
|
+
/** Seconds of audio. */
|
|
14
|
+
duration?: number;
|
|
15
|
+
language?: string;
|
|
16
|
+
model?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface RunContext {
|
|
19
|
+
signal: AbortSignal;
|
|
20
|
+
/** 0 to 1. */
|
|
21
|
+
onProgress: (fraction: number) => void;
|
|
22
|
+
}
|
|
23
|
+
/** Turns one file into a transcript. A page wires @hackbuild/transcribe here; a stub needs none. */
|
|
24
|
+
export type Transcriber = (file: Blob & {
|
|
25
|
+
name: string;
|
|
26
|
+
}, ctx: RunContext) => Promise<RunResult>;
|
|
27
|
+
export interface Channel {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
size: number;
|
|
31
|
+
status: StripStatus;
|
|
32
|
+
/** 0 to 100 while running. */
|
|
33
|
+
pct: number;
|
|
34
|
+
segments: Seg[];
|
|
35
|
+
dropped: Dropped[];
|
|
36
|
+
duration?: number;
|
|
37
|
+
language?: string;
|
|
38
|
+
model?: string;
|
|
39
|
+
error?: string;
|
|
40
|
+
meta: StripFigure[];
|
|
41
|
+
}
|
|
42
|
+
export type ExportKind = "txt" | "srt" | "vtt" | "json";
|
|
43
|
+
export interface QueueSnapshot {
|
|
44
|
+
channels: readonly Channel[];
|
|
45
|
+
selected: number | null;
|
|
46
|
+
running: boolean;
|
|
47
|
+
canUndo: boolean;
|
|
48
|
+
canRedo: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface TranscribeQueue {
|
|
51
|
+
snapshot(): QueueSnapshot;
|
|
52
|
+
subscribe(fn: (s: QueueSnapshot) => void): () => void;
|
|
53
|
+
/** Queue files; starts the run unless `autostart` is off. */
|
|
54
|
+
add(files: Iterable<Blob & {
|
|
55
|
+
name: string;
|
|
56
|
+
}>): void;
|
|
57
|
+
start(): Promise<void>;
|
|
58
|
+
stop(): void;
|
|
59
|
+
remove(id: number): void;
|
|
60
|
+
clear(): void;
|
|
61
|
+
select(id: number): void;
|
|
62
|
+
/** Change one line's text or speaker; one undo step. */
|
|
63
|
+
edit(id: number, index: number, patch: {
|
|
64
|
+
text?: string;
|
|
65
|
+
speaker?: string;
|
|
66
|
+
}): void;
|
|
67
|
+
undo(): void;
|
|
68
|
+
redo(): void;
|
|
69
|
+
/** One channel as a file: its name, text and media type. */
|
|
70
|
+
exportAs(kind: ExportKind, id?: number): {
|
|
71
|
+
name: string;
|
|
72
|
+
text: string;
|
|
73
|
+
type: string;
|
|
74
|
+
} | null;
|
|
75
|
+
setTranscriber(t: Transcriber): void;
|
|
76
|
+
}
|
|
77
|
+
export declare function transcribeQueue(o: {
|
|
78
|
+
run: Transcriber;
|
|
79
|
+
autostart?: boolean;
|
|
80
|
+
}): TranscribeQueue;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The state behind TranscribeDrop and TranscriptView, after the earlier
|
|
3
|
+
* transcription tool: drop files, they queue as channels, run one at a
|
|
4
|
+
* time, and each becomes a transcript with timestamps that a person can
|
|
5
|
+
* edit (with undo) and export as txt, srt, vtt or json. The engine is a
|
|
6
|
+
* function the page passes, so a stub runs the view with no weights.
|
|
7
|
+
*/
|
|
8
|
+
import { asJson, asSrt, asTxt, asVtt, baseName } from "@hackbuild/transcribe";
|
|
9
|
+
import { stripMeta } from "@virgilvox/hackbuild-ui/vanilla";
|
|
10
|
+
const TYPES = { txt: "text/plain", srt: "application/x-subrip", vtt: "text/vtt", json: "application/json" };
|
|
11
|
+
export function transcribeQueue(o) {
|
|
12
|
+
let run = o.run;
|
|
13
|
+
let channels = [];
|
|
14
|
+
const files = new Map();
|
|
15
|
+
let selected = null;
|
|
16
|
+
let running = false;
|
|
17
|
+
let ac = null;
|
|
18
|
+
let seq = 0;
|
|
19
|
+
const undo = [];
|
|
20
|
+
const redo = [];
|
|
21
|
+
const subs = new Set();
|
|
22
|
+
const snap = () => ({ channels, selected, running, canUndo: undo.length > 0, canRedo: redo.length > 0 });
|
|
23
|
+
const emit = () => {
|
|
24
|
+
const s = snap();
|
|
25
|
+
for (const fn of subs)
|
|
26
|
+
fn(s);
|
|
27
|
+
};
|
|
28
|
+
const patch = (id, p) => {
|
|
29
|
+
channels = channels.map((c) => (c.id === id ? { ...c, ...p } : c));
|
|
30
|
+
emit();
|
|
31
|
+
};
|
|
32
|
+
const metaOf = (c) => stripMeta({ size: c.size, ...(c.duration ? { duration: c.duration } : {}), ...(c.status === "done" ? { lines: c.segments.length } : {}) });
|
|
33
|
+
const q = {
|
|
34
|
+
snapshot: snap,
|
|
35
|
+
subscribe(fn) {
|
|
36
|
+
subs.add(fn);
|
|
37
|
+
fn(snap());
|
|
38
|
+
return () => subs.delete(fn);
|
|
39
|
+
},
|
|
40
|
+
add(list) {
|
|
41
|
+
for (const f of list) {
|
|
42
|
+
const id = ++seq;
|
|
43
|
+
files.set(id, f);
|
|
44
|
+
const c = { id, name: f.name, size: f.size, status: "queued", pct: 0, segments: [], dropped: [], meta: [] };
|
|
45
|
+
c.meta = metaOf(c);
|
|
46
|
+
channels = [...channels, c];
|
|
47
|
+
if (selected === null)
|
|
48
|
+
selected = id;
|
|
49
|
+
}
|
|
50
|
+
emit();
|
|
51
|
+
if (o.autostart !== false)
|
|
52
|
+
void q.start();
|
|
53
|
+
},
|
|
54
|
+
async start() {
|
|
55
|
+
if (running)
|
|
56
|
+
return;
|
|
57
|
+
running = true;
|
|
58
|
+
emit();
|
|
59
|
+
for (;;) {
|
|
60
|
+
const next = channels.find((c) => c.status === "queued");
|
|
61
|
+
if (!next || !running)
|
|
62
|
+
break;
|
|
63
|
+
const file = files.get(next.id);
|
|
64
|
+
ac = new AbortController();
|
|
65
|
+
patch(next.id, { status: "working", pct: 0 });
|
|
66
|
+
try {
|
|
67
|
+
const r = await run(file, { signal: ac.signal, onProgress: (f) => patch(next.id, { pct: Math.round(Math.min(1, Math.max(0, f)) * 100) }) });
|
|
68
|
+
const c = channels.find((x) => x.id === next.id);
|
|
69
|
+
if (!c)
|
|
70
|
+
continue;
|
|
71
|
+
const done = { ...c, status: r.segments.length ? "done" : "empty", pct: 100, segments: r.segments, dropped: r.dropped ?? [] };
|
|
72
|
+
if (r.duration !== undefined)
|
|
73
|
+
done.duration = r.duration;
|
|
74
|
+
if (r.language)
|
|
75
|
+
done.language = r.language;
|
|
76
|
+
if (r.model)
|
|
77
|
+
done.model = r.model;
|
|
78
|
+
done.meta = metaOf(done);
|
|
79
|
+
patch(next.id, done);
|
|
80
|
+
if (selected === null || channels.find((x) => x.id === selected)?.status !== "done")
|
|
81
|
+
selected = next.id;
|
|
82
|
+
}
|
|
83
|
+
catch (e) {
|
|
84
|
+
const stopped = ac.signal.aborted;
|
|
85
|
+
patch(next.id, stopped ? { status: "queued", pct: 0 } : { status: "failed", error: e instanceof Error ? e.message : String(e) });
|
|
86
|
+
if (stopped)
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
running = false;
|
|
91
|
+
ac = null;
|
|
92
|
+
emit();
|
|
93
|
+
},
|
|
94
|
+
stop() {
|
|
95
|
+
running = false;
|
|
96
|
+
ac?.abort();
|
|
97
|
+
emit();
|
|
98
|
+
},
|
|
99
|
+
remove(id) {
|
|
100
|
+
if (channels.find((c) => c.id === id)?.status === "working")
|
|
101
|
+
ac?.abort();
|
|
102
|
+
channels = channels.filter((c) => c.id !== id);
|
|
103
|
+
files.delete(id);
|
|
104
|
+
if (selected === id)
|
|
105
|
+
selected = channels[0]?.id ?? null;
|
|
106
|
+
emit();
|
|
107
|
+
},
|
|
108
|
+
clear() {
|
|
109
|
+
q.stop();
|
|
110
|
+
channels = [];
|
|
111
|
+
files.clear();
|
|
112
|
+
selected = null;
|
|
113
|
+
undo.length = 0;
|
|
114
|
+
redo.length = 0;
|
|
115
|
+
emit();
|
|
116
|
+
},
|
|
117
|
+
select(id) {
|
|
118
|
+
selected = id;
|
|
119
|
+
emit();
|
|
120
|
+
},
|
|
121
|
+
edit(id, index, p) {
|
|
122
|
+
const c = channels.find((x) => x.id === id);
|
|
123
|
+
const seg = c?.segments[index];
|
|
124
|
+
if (!c || !seg)
|
|
125
|
+
return;
|
|
126
|
+
const next = { ...seg, edited: true };
|
|
127
|
+
if (p.text !== undefined)
|
|
128
|
+
next.text = p.text;
|
|
129
|
+
if (p.speaker !== undefined) {
|
|
130
|
+
if (p.speaker)
|
|
131
|
+
next.speaker = p.speaker;
|
|
132
|
+
else
|
|
133
|
+
delete next.speaker;
|
|
134
|
+
}
|
|
135
|
+
if (next.text === seg.text && next.speaker === seg.speaker)
|
|
136
|
+
return;
|
|
137
|
+
undo.push({ id, segments: c.segments });
|
|
138
|
+
redo.length = 0;
|
|
139
|
+
patch(id, { segments: c.segments.map((s, i) => (i === index ? next : s)) });
|
|
140
|
+
},
|
|
141
|
+
undo() {
|
|
142
|
+
const u = undo.pop();
|
|
143
|
+
const c = u && channels.find((x) => x.id === u.id);
|
|
144
|
+
if (!u || !c)
|
|
145
|
+
return emit();
|
|
146
|
+
redo.push({ id: u.id, segments: c.segments });
|
|
147
|
+
patch(u.id, { segments: u.segments });
|
|
148
|
+
},
|
|
149
|
+
redo() {
|
|
150
|
+
const r = redo.pop();
|
|
151
|
+
const c = r && channels.find((x) => x.id === r.id);
|
|
152
|
+
if (!r || !c)
|
|
153
|
+
return emit();
|
|
154
|
+
undo.push({ id: r.id, segments: c.segments });
|
|
155
|
+
patch(r.id, { segments: r.segments });
|
|
156
|
+
},
|
|
157
|
+
exportAs(kind, id = selected ?? -1) {
|
|
158
|
+
const c = channels.find((x) => x.id === id);
|
|
159
|
+
if (!c || !c.segments.length)
|
|
160
|
+
return null;
|
|
161
|
+
const text = kind === "txt"
|
|
162
|
+
? asTxt(c.segments)
|
|
163
|
+
: kind === "srt"
|
|
164
|
+
? asSrt(c.segments)
|
|
165
|
+
: kind === "vtt"
|
|
166
|
+
? asVtt(c.segments)
|
|
167
|
+
: asJson({ source: c.name, segments: c.segments, dropped: c.dropped, model: c.model ?? "unknown", language: c.language ?? "unknown", ...(c.duration !== undefined ? { duration: c.duration } : {}) });
|
|
168
|
+
return { name: `${baseName(c.name)}.${kind}`, text, type: TYPES[kind] };
|
|
169
|
+
},
|
|
170
|
+
setTranscriber(t) {
|
|
171
|
+
run = t;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
return q;
|
|
175
|
+
}
|
package/dist/vue.d.ts
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hackbuild/ai-views/vue: the views as Vue 3 components. Each one mounts
|
|
3
|
+
* the same function the custom element does on a host that shows as
|
|
4
|
+
* `.hb-view` (display contents), so the look is one code path; props in, events out.
|
|
5
|
+
* Vue is an optional peer: only this entry imports it.
|
|
6
|
+
*/
|
|
7
|
+
import { type PropType } from "vue";
|
|
8
|
+
import type { Env } from "@hackbuild/ai-env";
|
|
9
|
+
import type { ChatList as ChatListState, ChatThread } from "./chat.js";
|
|
10
|
+
import type { Job } from "./jobs.js";
|
|
11
|
+
import { type JobsPick, type Loader, type ModelPick } from "./pick.js";
|
|
12
|
+
import type { TranscribeQueue as Queue } from "./transcribe.js";
|
|
13
|
+
import type { FrameResults } from "./frame.js";
|
|
14
|
+
import { type MaskModels, type MaskStudio as Studio } from "./mount-mask.js";
|
|
15
|
+
import { type RecallLike } from "./memory.js";
|
|
16
|
+
export declare const ModelSelect: import("vue").DefineComponent<{
|
|
17
|
+
job: Job;
|
|
18
|
+
pick?: ModelPick | undefined;
|
|
19
|
+
variant: "line" | "chip";
|
|
20
|
+
go: boolean;
|
|
21
|
+
env?: Env | undefined;
|
|
22
|
+
loader?: Loader | undefined;
|
|
23
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choose" | "failed" | "loaded" | "pick")[], "choose" | "failed" | "loaded" | "pick", import("vue").PublicProps, Readonly<{
|
|
26
|
+
job: Job;
|
|
27
|
+
pick?: ModelPick | undefined;
|
|
28
|
+
variant: "line" | "chip";
|
|
29
|
+
go: boolean;
|
|
30
|
+
env?: Env | undefined;
|
|
31
|
+
loader?: Loader | undefined;
|
|
32
|
+
}> & Readonly<{
|
|
33
|
+
onChoose?: (...args: any[]) => any;
|
|
34
|
+
onFailed?: (...args: any[]) => any;
|
|
35
|
+
onLoaded?: (...args: any[]) => any;
|
|
36
|
+
onPick?: (...args: any[]) => any;
|
|
37
|
+
}>, {
|
|
38
|
+
job: Job;
|
|
39
|
+
pick: ModelPick;
|
|
40
|
+
variant: "chip" | "line";
|
|
41
|
+
go: boolean;
|
|
42
|
+
env: Env;
|
|
43
|
+
loader: Loader;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export declare const ChatPane: import("vue").DefineComponent<{
|
|
46
|
+
thread: ChatThread;
|
|
47
|
+
name: string;
|
|
48
|
+
emptyName: string;
|
|
49
|
+
emptyNote: string;
|
|
50
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
53
|
+
thread: ChatThread;
|
|
54
|
+
name: string;
|
|
55
|
+
emptyName: string;
|
|
56
|
+
emptyNote: string;
|
|
57
|
+
}> & Readonly<{}>, {
|
|
58
|
+
name: string;
|
|
59
|
+
emptyName: string;
|
|
60
|
+
emptyNote: string;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export declare const Composer: import("vue").DefineComponent<{
|
|
63
|
+
thread: ChatThread;
|
|
64
|
+
placeholder: string;
|
|
65
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
68
|
+
thread: ChatThread;
|
|
69
|
+
placeholder: string;
|
|
70
|
+
}> & Readonly<{}>, {
|
|
71
|
+
placeholder: string;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
export declare const TranscribeDrop: import("vue").DefineComponent<{
|
|
74
|
+
queue: Queue;
|
|
75
|
+
accept: string;
|
|
76
|
+
sampleLabel: string;
|
|
77
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "sample"[], "sample", import("vue").PublicProps, Readonly<{
|
|
80
|
+
queue: Queue;
|
|
81
|
+
accept: string;
|
|
82
|
+
sampleLabel: string;
|
|
83
|
+
}> & Readonly<{
|
|
84
|
+
onSample?: (...args: any[]) => any;
|
|
85
|
+
}>, {
|
|
86
|
+
accept: string;
|
|
87
|
+
sampleLabel: string;
|
|
88
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
89
|
+
export declare const TranscriptView: import("vue").DefineComponent<{
|
|
90
|
+
queue: Queue;
|
|
91
|
+
exports: boolean;
|
|
92
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
95
|
+
queue: Queue;
|
|
96
|
+
exports: boolean;
|
|
97
|
+
}> & Readonly<{}>, {
|
|
98
|
+
exports: boolean;
|
|
99
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
100
|
+
export declare const MaskStudio: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
101
|
+
models: {
|
|
102
|
+
type: PropType<MaskModels>;
|
|
103
|
+
default: () => {};
|
|
104
|
+
};
|
|
105
|
+
sampleLabel: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("sample" | "studio")[], "sample" | "studio", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
|
+
models: {
|
|
113
|
+
type: PropType<MaskModels>;
|
|
114
|
+
default: () => {};
|
|
115
|
+
};
|
|
116
|
+
sampleLabel: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
}>> & Readonly<{
|
|
121
|
+
onSample?: (...args: any[]) => any;
|
|
122
|
+
onStudio?: (...args: any[]) => any;
|
|
123
|
+
}>, {
|
|
124
|
+
models: MaskModels;
|
|
125
|
+
sampleLabel: string;
|
|
126
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
127
|
+
export declare const MaskTools: import("vue").DefineComponent<{
|
|
128
|
+
studio: Studio;
|
|
129
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
130
|
+
[key: string]: any;
|
|
131
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
132
|
+
studio: Studio;
|
|
133
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
|
+
export declare const MaskVerbs: import("vue").DefineComponent<{
|
|
135
|
+
studio: Studio;
|
|
136
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
139
|
+
studio: Studio;
|
|
140
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
|
+
export declare const MaskRack: import("vue").DefineComponent<{
|
|
142
|
+
studio: Studio;
|
|
143
|
+
part: "found" | "mask" | "saved" | "export";
|
|
144
|
+
name: string;
|
|
145
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
146
|
+
[key: string]: any;
|
|
147
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
148
|
+
studio: Studio;
|
|
149
|
+
part: "found" | "mask" | "saved" | "export";
|
|
150
|
+
name: string;
|
|
151
|
+
}> & Readonly<{}>, {
|
|
152
|
+
part: "export" | "found" | "mask" | "saved";
|
|
153
|
+
name: string;
|
|
154
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
155
|
+
export declare const ModelJobs: import("vue").DefineComponent<{
|
|
156
|
+
jobs: JobsPick;
|
|
157
|
+
go: boolean;
|
|
158
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
161
|
+
jobs: JobsPick;
|
|
162
|
+
go: boolean;
|
|
163
|
+
}> & Readonly<{}>, {
|
|
164
|
+
go: boolean;
|
|
165
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
166
|
+
export declare const TranscribeQueue: import("vue").DefineComponent<{
|
|
167
|
+
queue: Queue;
|
|
168
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
171
|
+
queue: Queue;
|
|
172
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
173
|
+
export declare const MemoryInspector: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
174
|
+
recall: {
|
|
175
|
+
type: PropType<RecallLike | null>;
|
|
176
|
+
default: null;
|
|
177
|
+
};
|
|
178
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
181
|
+
recall: {
|
|
182
|
+
type: PropType<RecallLike | null>;
|
|
183
|
+
default: null;
|
|
184
|
+
};
|
|
185
|
+
}>> & Readonly<{}>, {
|
|
186
|
+
recall: RecallLike | null;
|
|
187
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
188
|
+
export declare const ChatList: import("vue").DefineComponent<{
|
|
189
|
+
list: ChatListState;
|
|
190
|
+
label: string;
|
|
191
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
192
|
+
[key: string]: any;
|
|
193
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
194
|
+
list: ChatListState;
|
|
195
|
+
label: string;
|
|
196
|
+
}> & Readonly<{}>, {
|
|
197
|
+
label: string;
|
|
198
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
|
+
export declare const ContextMeter: import("vue").DefineComponent<{
|
|
200
|
+
thread: ChatThread;
|
|
201
|
+
budget: number;
|
|
202
|
+
system: string;
|
|
203
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
204
|
+
[key: string]: any;
|
|
205
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
206
|
+
thread: ChatThread;
|
|
207
|
+
budget: number;
|
|
208
|
+
system: string;
|
|
209
|
+
}> & Readonly<{}>, {
|
|
210
|
+
budget: number;
|
|
211
|
+
system: string;
|
|
212
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
213
|
+
export declare const FrameView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
214
|
+
source: {
|
|
215
|
+
type: PropType<string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | null>;
|
|
216
|
+
default: null;
|
|
217
|
+
};
|
|
218
|
+
results: {
|
|
219
|
+
type: PropType<FrameResults>;
|
|
220
|
+
default: () => {};
|
|
221
|
+
};
|
|
222
|
+
mirror: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
227
|
+
[key: string]: any;
|
|
228
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "view"[], "view", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
229
|
+
source: {
|
|
230
|
+
type: PropType<string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | null>;
|
|
231
|
+
default: null;
|
|
232
|
+
};
|
|
233
|
+
results: {
|
|
234
|
+
type: PropType<FrameResults>;
|
|
235
|
+
default: () => {};
|
|
236
|
+
};
|
|
237
|
+
mirror: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
}>> & Readonly<{
|
|
242
|
+
onView?: (...args: any[]) => any;
|
|
243
|
+
}>, {
|
|
244
|
+
source: string | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | null;
|
|
245
|
+
results: FrameResults;
|
|
246
|
+
mirror: boolean;
|
|
247
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
248
|
+
export declare const CameraFeed: import("vue").DefineComponent<{
|
|
249
|
+
fps: number;
|
|
250
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
251
|
+
[key: string]: any;
|
|
252
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("feed" | "frame")[], "feed" | "frame", import("vue").PublicProps, Readonly<{
|
|
253
|
+
fps: number;
|
|
254
|
+
}> & Readonly<{
|
|
255
|
+
onFeed?: (...args: any[]) => any;
|
|
256
|
+
onFrame?: (...args: any[]) => any;
|
|
257
|
+
}>, {
|
|
258
|
+
fps: number;
|
|
259
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|