@hackbuild/ai-views 0.1.9 → 0.1.11
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/dom.js +3 -3
- package/dist/single/elements.iife.js +11 -9
- package/dist/single/elements.js +11 -9
- package/dist/single/index.iife.js +10 -6
- package/dist/single/index.js +10 -6
- package/dist/single/vue.iife.js +80 -16
- package/dist/single/vue.js +80 -16
- package/dist/vue.d.ts +14 -0
- package/dist/vue.js +117 -16
- package/package.json +2 -2
package/dist/single/vue.js
CHANGED
|
@@ -8734,9 +8734,10 @@ const IMAGEGEN_RECORDS = [{
|
|
|
8734
8734
|
}];
|
|
8735
8735
|
/**
|
|
8736
8736
|
* Listed for pickers, not registered by attachImagegen, so routing by
|
|
8737
|
-
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl
|
|
8738
|
-
* export's input and output names
|
|
8739
|
-
*
|
|
8737
|
+
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl`. The
|
|
8738
|
+
* export's input and output names and dtypes were read from the end of
|
|
8739
|
+
* each onnx file (2026-11-29, measured); the pipeline has not run on the
|
|
8740
|
+
* real weights. `loadImagegen(hub, { id:
|
|
8740
8741
|
* "sdxl-turbo" })` adds it and loads it.
|
|
8741
8742
|
*/
|
|
8742
8743
|
const IMAGEGEN_PICKER_RECORDS = [{
|
|
@@ -8744,7 +8745,7 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
8744
8745
|
label: "sdxl-turbo 512",
|
|
8745
8746
|
speed: "steady",
|
|
8746
8747
|
verdict: "not run yet",
|
|
8747
|
-
unrunnable: "not run yet. the
|
|
8748
|
+
unrunnable: "not run yet. the graph names and dtypes are read from the export's files (measured); the pipeline has not run on them.",
|
|
8748
8749
|
group: "good",
|
|
8749
8750
|
provides: ["imagegen"],
|
|
8750
8751
|
provider: "ort",
|
|
@@ -8770,7 +8771,7 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
8770
8771
|
runtime: "onnxruntime-web@1.27.0",
|
|
8771
8772
|
notes: [
|
|
8772
8773
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
8773
|
-
"fp16
|
|
8774
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
8774
8775
|
"the highest quality of the three image models"
|
|
8775
8776
|
],
|
|
8776
8777
|
form: {
|
|
@@ -8794,7 +8795,8 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
8794
8795
|
pipeline: "sdxl",
|
|
8795
8796
|
xl: {
|
|
8796
8797
|
io: "float16",
|
|
8797
|
-
timestep: "float16"
|
|
8798
|
+
timestep: "float16",
|
|
8799
|
+
ids2: "int64"
|
|
8798
8800
|
}
|
|
8799
8801
|
}
|
|
8800
8802
|
}];
|
|
@@ -9940,7 +9942,7 @@ const ICON = {
|
|
|
9940
9942
|
zoomIn: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"),
|
|
9941
9943
|
zoomOut: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"),
|
|
9942
9944
|
fit: svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"),
|
|
9943
|
-
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
9945
|
+
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14),
|
|
9944
9946
|
copy: svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14),
|
|
9945
9947
|
redoMsg: svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14),
|
|
9946
9948
|
point: svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18),
|
|
@@ -9951,8 +9953,8 @@ const ICON = {
|
|
|
9951
9953
|
camera: svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"),
|
|
9952
9954
|
menu: svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"),
|
|
9953
9955
|
plus: svg("<path d=\"M12 5v14M5 12h14\"/>", 14),
|
|
9954
|
-
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>",
|
|
9955
|
-
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>",
|
|
9956
|
+
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14),
|
|
9957
|
+
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14)
|
|
9956
9958
|
};
|
|
9957
9959
|
// packages/ai-views/src/mount-model.ts
|
|
9958
9960
|
/**
|
|
@@ -11931,10 +11933,12 @@ function hosted(setupMount, deps = () => []) {
|
|
|
11931
11933
|
const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
11932
11934
|
name: "ModelSelect",
|
|
11933
11935
|
props: {
|
|
11936
|
+
/** The job to pick for when no pick is passed: chat, voice, transcribe, detect and the rest. */
|
|
11934
11937
|
job: {
|
|
11935
11938
|
type: String,
|
|
11936
11939
|
default: "chat"
|
|
11937
11940
|
},
|
|
11941
|
+
/** A picker made with useModelPick, shared with the code that uses the model. Without one the view makes its own and emits it as `pick`. */
|
|
11938
11942
|
pick: {
|
|
11939
11943
|
type: Object,
|
|
11940
11944
|
default: void 0
|
|
@@ -11947,10 +11951,12 @@ const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
|
11947
11951
|
type: Boolean,
|
|
11948
11952
|
default: true
|
|
11949
11953
|
},
|
|
11954
|
+
/** What this machine can run, from probe(); rows it cannot run say why. Used only when no pick is passed. */
|
|
11950
11955
|
env: {
|
|
11951
11956
|
type: Object,
|
|
11952
11957
|
default: void 0
|
|
11953
11958
|
},
|
|
11959
|
+
/** Fetches and starts the chosen model, such as jobLoader(job). Used only when no pick is passed. */
|
|
11954
11960
|
loader: {
|
|
11955
11961
|
type: Function,
|
|
11956
11962
|
default: void 0
|
|
@@ -11993,18 +11999,22 @@ const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
|
11993
11999
|
const ChatPane = /* @__PURE__ */ defineComponent({
|
|
11994
12000
|
name: "ChatPane",
|
|
11995
12001
|
props: {
|
|
12002
|
+
/** The thread to draw, from chatThread or a chatList's thread. */
|
|
11996
12003
|
thread: {
|
|
11997
12004
|
type: Object,
|
|
11998
12005
|
required: true
|
|
11999
12006
|
},
|
|
12007
|
+
/** The reply's name in its head. */
|
|
12000
12008
|
name: {
|
|
12001
12009
|
type: String,
|
|
12002
12010
|
default: "reply"
|
|
12003
12011
|
},
|
|
12012
|
+
/** The empty state's line, shown until the first turn. */
|
|
12004
12013
|
emptyName: {
|
|
12005
12014
|
type: String,
|
|
12006
12015
|
default: "what are we working on?"
|
|
12007
12016
|
},
|
|
12017
|
+
/** A plain note under the empty state's line. */
|
|
12008
12018
|
emptyNote: {
|
|
12009
12019
|
type: String,
|
|
12010
12020
|
default: ""
|
|
@@ -12020,10 +12030,12 @@ const ChatPane = /* @__PURE__ */ defineComponent({
|
|
|
12020
12030
|
const Composer = /* @__PURE__ */ defineComponent({
|
|
12021
12031
|
name: "Composer",
|
|
12022
12032
|
props: {
|
|
12033
|
+
/** The thread a message goes to. */
|
|
12023
12034
|
thread: {
|
|
12024
12035
|
type: Object,
|
|
12025
12036
|
required: true
|
|
12026
12037
|
},
|
|
12038
|
+
/** The box's placeholder. */
|
|
12027
12039
|
placeholder: {
|
|
12028
12040
|
type: String,
|
|
12029
12041
|
default: "say something"
|
|
@@ -12035,30 +12047,37 @@ const Composer = /* @__PURE__ */ defineComponent({
|
|
|
12035
12047
|
const TranscribeDrop = /* @__PURE__ */ defineComponent({
|
|
12036
12048
|
name: "TranscribeDrop",
|
|
12037
12049
|
props: {
|
|
12050
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12038
12051
|
queue: {
|
|
12039
12052
|
type: Object,
|
|
12040
12053
|
required: true
|
|
12041
12054
|
},
|
|
12055
|
+
/** The file types the picker offers; a drop takes any audio or video. */
|
|
12042
12056
|
accept: {
|
|
12043
12057
|
type: String,
|
|
12044
12058
|
default: "audio/*,video/*"
|
|
12045
12059
|
},
|
|
12060
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to queue one. */
|
|
12046
12061
|
sampleLabel: {
|
|
12047
12062
|
type: String,
|
|
12048
12063
|
default: ""
|
|
12049
12064
|
},
|
|
12065
|
+
/** The zone's line before anything is dropped. */
|
|
12050
12066
|
title: {
|
|
12051
12067
|
type: String,
|
|
12052
12068
|
default: ""
|
|
12053
12069
|
},
|
|
12070
|
+
/** A plain note under the line. */
|
|
12054
12071
|
note: {
|
|
12055
12072
|
type: String,
|
|
12056
12073
|
default: ""
|
|
12057
12074
|
},
|
|
12075
|
+
/** Add a "choose a folder" button; a dropped folder is read whole either way. */
|
|
12058
12076
|
folders: {
|
|
12059
12077
|
type: Boolean,
|
|
12060
12078
|
default: false
|
|
12061
12079
|
},
|
|
12080
|
+
/** Show the lines the cleanup dropped (repeats, phantom text), struck through. */
|
|
12062
12081
|
showDropped: {
|
|
12063
12082
|
type: Boolean,
|
|
12064
12083
|
default: false
|
|
@@ -12085,14 +12104,17 @@ const TranscribeDrop = /* @__PURE__ */ defineComponent({
|
|
|
12085
12104
|
const ExportMenu = /* @__PURE__ */ defineComponent({
|
|
12086
12105
|
name: "ExportMenu",
|
|
12087
12106
|
props: {
|
|
12107
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12088
12108
|
queue: {
|
|
12089
12109
|
type: Object,
|
|
12090
12110
|
required: true
|
|
12091
12111
|
},
|
|
12112
|
+
/** The tool name written into an export's header and the zip manifest. */
|
|
12092
12113
|
tool: {
|
|
12093
12114
|
type: String,
|
|
12094
12115
|
default: ""
|
|
12095
12116
|
},
|
|
12117
|
+
/** Make the main export button the pink action. */
|
|
12096
12118
|
go: {
|
|
12097
12119
|
type: Boolean,
|
|
12098
12120
|
default: false
|
|
@@ -12107,10 +12129,12 @@ const ExportMenu = /* @__PURE__ */ defineComponent({
|
|
|
12107
12129
|
const MemoryPane = /* @__PURE__ */ defineComponent({
|
|
12108
12130
|
name: "MemoryPane",
|
|
12109
12131
|
props: {
|
|
12132
|
+
/** The store to show: a @hackbuild/memory store or anything with the same list, edit and forget calls. */
|
|
12110
12133
|
memory: {
|
|
12111
12134
|
type: Object,
|
|
12112
12135
|
required: true
|
|
12113
12136
|
},
|
|
12137
|
+
/** The pane's heading. */
|
|
12114
12138
|
name: {
|
|
12115
12139
|
type: String,
|
|
12116
12140
|
default: "memory"
|
|
@@ -12155,10 +12179,12 @@ const MemoryPane = /* @__PURE__ */ defineComponent({
|
|
|
12155
12179
|
const SourcesDrop = /* @__PURE__ */ defineComponent({
|
|
12156
12180
|
name: "SourcesDrop",
|
|
12157
12181
|
props: {
|
|
12182
|
+
/** @hackbuild/memory `ingest(mem, files, o)` bound to a store; resolves to the files and parts read. */
|
|
12158
12183
|
ingest: {
|
|
12159
12184
|
type: Function,
|
|
12160
12185
|
required: true
|
|
12161
12186
|
},
|
|
12187
|
+
/** The file types the picker offers; empty takes text, markdown, csv, json, html, pdf, docx, zip and eml. */
|
|
12162
12188
|
accept: {
|
|
12163
12189
|
type: String,
|
|
12164
12190
|
default: ""
|
|
@@ -12172,7 +12198,9 @@ const SourcesDrop = /* @__PURE__ */ defineComponent({
|
|
|
12172
12198
|
/** Vue component for a persona rack. */
|
|
12173
12199
|
const PersonaRack = /* @__PURE__ */ defineComponent({
|
|
12174
12200
|
name: "PersonaRack",
|
|
12175
|
-
props: {
|
|
12201
|
+
props: {
|
|
12202
|
+
/** The persona state from personaRack: name, prompt, presets and saved ones. */
|
|
12203
|
+
rack: {
|
|
12176
12204
|
type: Object,
|
|
12177
12205
|
required: true
|
|
12178
12206
|
} },
|
|
@@ -12182,10 +12210,12 @@ const PersonaRack = /* @__PURE__ */ defineComponent({
|
|
|
12182
12210
|
const VoiceRow = /* @__PURE__ */ defineComponent({
|
|
12183
12211
|
name: "VoiceRow",
|
|
12184
12212
|
props: {
|
|
12213
|
+
/** The voice state from voiceRow: voice, rate, pitch and auto speak. */
|
|
12185
12214
|
row: {
|
|
12186
12215
|
type: Object,
|
|
12187
12216
|
required: true
|
|
12188
12217
|
},
|
|
12218
|
+
/** The line the test button reads; empty uses the row's own. */
|
|
12189
12219
|
test: {
|
|
12190
12220
|
type: String,
|
|
12191
12221
|
default: ""
|
|
@@ -12197,18 +12227,22 @@ const VoiceRow = /* @__PURE__ */ defineComponent({
|
|
|
12197
12227
|
const VoiceClone = /* @__PURE__ */ defineComponent({
|
|
12198
12228
|
name: "VoiceClone",
|
|
12199
12229
|
props: {
|
|
12230
|
+
/** The speaker from speaker(): its engine takes the reference clip. */
|
|
12200
12231
|
speaker: {
|
|
12201
12232
|
type: Object,
|
|
12202
12233
|
required: true
|
|
12203
12234
|
},
|
|
12235
|
+
/** Whether the loaded voice can clone; when false the row says to load one that can. */
|
|
12204
12236
|
can: {
|
|
12205
12237
|
type: Boolean,
|
|
12206
12238
|
default: true
|
|
12207
12239
|
},
|
|
12240
|
+
/** How many seconds the microphone records. */
|
|
12208
12241
|
seconds: {
|
|
12209
12242
|
type: Number,
|
|
12210
12243
|
default: 10
|
|
12211
12244
|
},
|
|
12245
|
+
/** A plain line under the row. */
|
|
12212
12246
|
hint: {
|
|
12213
12247
|
type: String,
|
|
12214
12248
|
default: ""
|
|
@@ -12223,7 +12257,9 @@ const VoiceClone = /* @__PURE__ */ defineComponent({
|
|
|
12223
12257
|
/** Vue component for the session menu of a chat list; emits `import` with the number of chats. */
|
|
12224
12258
|
const SessionMenu = /* @__PURE__ */ defineComponent({
|
|
12225
12259
|
name: "SessionMenu",
|
|
12226
|
-
props: {
|
|
12260
|
+
props: {
|
|
12261
|
+
/** The chat list to export, import and clear. */
|
|
12262
|
+
list: {
|
|
12227
12263
|
type: Object,
|
|
12228
12264
|
required: true
|
|
12229
12265
|
} },
|
|
@@ -12234,10 +12270,12 @@ const SessionMenu = /* @__PURE__ */ defineComponent({
|
|
|
12234
12270
|
const TranscriptView = /* @__PURE__ */ defineComponent({
|
|
12235
12271
|
name: "TranscriptView",
|
|
12236
12272
|
props: {
|
|
12273
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12237
12274
|
queue: {
|
|
12238
12275
|
type: Object,
|
|
12239
12276
|
required: true
|
|
12240
12277
|
},
|
|
12278
|
+
/** Show the export buttons for the selected file instead of its lines. */
|
|
12241
12279
|
exports: {
|
|
12242
12280
|
type: Boolean,
|
|
12243
12281
|
default: false
|
|
@@ -12252,14 +12290,17 @@ const TranscriptView = /* @__PURE__ */ defineComponent({
|
|
|
12252
12290
|
const MaskStudio = /* @__PURE__ */ defineComponent({
|
|
12253
12291
|
name: "MaskStudio",
|
|
12254
12292
|
props: {
|
|
12293
|
+
/** The models it may use: a click segment and a segment everything. With none, the hand tools still work. */
|
|
12255
12294
|
models: {
|
|
12256
12295
|
type: Object,
|
|
12257
12296
|
default: () => ({})
|
|
12258
12297
|
},
|
|
12298
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to set an image. */
|
|
12259
12299
|
sampleLabel: {
|
|
12260
12300
|
type: String,
|
|
12261
12301
|
default: ""
|
|
12262
12302
|
},
|
|
12303
|
+
/** Show the model tools before their models load; using one emits `want` so the page loads it. */
|
|
12263
12304
|
demand: {
|
|
12264
12305
|
type: Boolean,
|
|
12265
12306
|
default: false
|
|
@@ -12297,7 +12338,9 @@ const MaskStudio = /* @__PURE__ */ defineComponent({
|
|
|
12297
12338
|
/** Vue component for the tool rail of a mask studio. */
|
|
12298
12339
|
const MaskTools = /* @__PURE__ */ defineComponent({
|
|
12299
12340
|
name: "MaskTools",
|
|
12300
|
-
props: {
|
|
12341
|
+
props: {
|
|
12342
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12343
|
+
studio: {
|
|
12301
12344
|
type: Object,
|
|
12302
12345
|
required: true
|
|
12303
12346
|
} },
|
|
@@ -12306,7 +12349,9 @@ const MaskTools = /* @__PURE__ */ defineComponent({
|
|
|
12306
12349
|
/** Vue component for the undo, redo and zoom row of a mask studio. */
|
|
12307
12350
|
const MaskVerbs = /* @__PURE__ */ defineComponent({
|
|
12308
12351
|
name: "MaskVerbs",
|
|
12309
|
-
props: {
|
|
12352
|
+
props: {
|
|
12353
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12354
|
+
studio: {
|
|
12310
12355
|
type: Object,
|
|
12311
12356
|
required: true
|
|
12312
12357
|
} },
|
|
@@ -12316,14 +12361,17 @@ const MaskVerbs = /* @__PURE__ */ defineComponent({
|
|
|
12316
12361
|
const MaskRack = /* @__PURE__ */ defineComponent({
|
|
12317
12362
|
name: "MaskRack",
|
|
12318
12363
|
props: {
|
|
12364
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12319
12365
|
studio: {
|
|
12320
12366
|
type: Object,
|
|
12321
12367
|
required: true
|
|
12322
12368
|
},
|
|
12369
|
+
/** Which panel: the found objects, the mask tools, saved masks or the exports. */
|
|
12323
12370
|
part: {
|
|
12324
12371
|
type: String,
|
|
12325
12372
|
default: "found"
|
|
12326
12373
|
},
|
|
12374
|
+
/** The exported files' name, without extension. */
|
|
12327
12375
|
name: {
|
|
12328
12376
|
type: String,
|
|
12329
12377
|
default: "mask"
|
|
@@ -12335,10 +12383,12 @@ const MaskRack = /* @__PURE__ */ defineComponent({
|
|
|
12335
12383
|
const ModelJobs = /* @__PURE__ */ defineComponent({
|
|
12336
12384
|
name: "ModelJobs",
|
|
12337
12385
|
props: {
|
|
12386
|
+
/** The rack made with useJobsPick: one picker per job, presets and load all. */
|
|
12338
12387
|
jobs: {
|
|
12339
12388
|
type: Object,
|
|
12340
12389
|
required: true
|
|
12341
12390
|
},
|
|
12391
|
+
/** Draw the pink load all. Off on a gate, whose own button is the pink action. */
|
|
12342
12392
|
go: {
|
|
12343
12393
|
type: Boolean,
|
|
12344
12394
|
default: true
|
|
@@ -12349,7 +12399,9 @@ const ModelJobs = /* @__PURE__ */ defineComponent({
|
|
|
12349
12399
|
/** Vue component for the file list of a transcribe queue. */
|
|
12350
12400
|
const TranscribeQueue = /* @__PURE__ */ defineComponent({
|
|
12351
12401
|
name: "TranscribeQueue",
|
|
12352
|
-
props: {
|
|
12402
|
+
props: {
|
|
12403
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12404
|
+
queue: {
|
|
12353
12405
|
type: Object,
|
|
12354
12406
|
required: true
|
|
12355
12407
|
} },
|
|
@@ -12358,7 +12410,9 @@ const TranscribeQueue = /* @__PURE__ */ defineComponent({
|
|
|
12358
12410
|
/** Vue component that shows a recall trace as a table. */
|
|
12359
12411
|
const MemoryInspector = /* @__PURE__ */ defineComponent({
|
|
12360
12412
|
name: "MemoryInspector",
|
|
12361
|
-
props: {
|
|
12413
|
+
props: {
|
|
12414
|
+
/** The last recall from @hackbuild/memory: its query, mode, hits and the trace of each memory scored. */
|
|
12415
|
+
recall: {
|
|
12362
12416
|
type: Object,
|
|
12363
12417
|
default: null
|
|
12364
12418
|
} },
|
|
@@ -12378,10 +12432,12 @@ const MemoryInspector = /* @__PURE__ */ defineComponent({
|
|
|
12378
12432
|
const ChatList = /* @__PURE__ */ defineComponent({
|
|
12379
12433
|
name: "ChatList",
|
|
12380
12434
|
props: {
|
|
12435
|
+
/** The chats, from chatList: each a thread, one of them open. */
|
|
12381
12436
|
list: {
|
|
12382
12437
|
type: Object,
|
|
12383
12438
|
required: true
|
|
12384
12439
|
},
|
|
12440
|
+
/** The rail's accessible name. */
|
|
12385
12441
|
label: {
|
|
12386
12442
|
type: String,
|
|
12387
12443
|
default: "chats"
|
|
@@ -12393,14 +12449,17 @@ const ChatList = /* @__PURE__ */ defineComponent({
|
|
|
12393
12449
|
const ContextMeter = /* @__PURE__ */ defineComponent({
|
|
12394
12450
|
name: "ContextMeter",
|
|
12395
12451
|
props: {
|
|
12452
|
+
/** The thread whose next request is measured. */
|
|
12396
12453
|
thread: {
|
|
12397
12454
|
type: Object,
|
|
12398
12455
|
required: true
|
|
12399
12456
|
},
|
|
12457
|
+
/** The model's context window in tokens. */
|
|
12400
12458
|
budget: {
|
|
12401
12459
|
type: Number,
|
|
12402
12460
|
default: 4096
|
|
12403
12461
|
},
|
|
12462
|
+
/** The system prompt that rides with every request. */
|
|
12404
12463
|
system: {
|
|
12405
12464
|
type: String,
|
|
12406
12465
|
default: ""
|
|
@@ -12418,14 +12477,17 @@ const ContextMeter = /* @__PURE__ */ defineComponent({
|
|
|
12418
12477
|
const FrameView = /* @__PURE__ */ defineComponent({
|
|
12419
12478
|
name: "FrameView",
|
|
12420
12479
|
props: {
|
|
12480
|
+
/** The picture: a URL, an image, a live video or a canvas. */
|
|
12421
12481
|
source: {
|
|
12422
12482
|
type: [String, Object],
|
|
12423
12483
|
default: null
|
|
12424
12484
|
},
|
|
12485
|
+
/** What to draw on it, in image pixels: boxes, landmarks, a caption and a corner tag. */
|
|
12425
12486
|
results: {
|
|
12426
12487
|
type: Object,
|
|
12427
12488
|
default: () => ({})
|
|
12428
12489
|
},
|
|
12490
|
+
/** Flip it left to right, as a front camera reads. */
|
|
12429
12491
|
mirror: {
|
|
12430
12492
|
type: Boolean,
|
|
12431
12493
|
default: false
|
|
@@ -12454,7 +12516,9 @@ const FrameView = /* @__PURE__ */ defineComponent({
|
|
|
12454
12516
|
/** Vue component that opens the camera; emits `feed` with the feed and `frame` with the video at `fps`. */
|
|
12455
12517
|
const CameraFeed = /* @__PURE__ */ defineComponent({
|
|
12456
12518
|
name: "CameraFeed",
|
|
12457
|
-
props: {
|
|
12519
|
+
props: {
|
|
12520
|
+
/** How many times a second the video goes out as `frame` while live. */
|
|
12521
|
+
fps: {
|
|
12458
12522
|
type: Number,
|
|
12459
12523
|
default: 4
|
|
12460
12524
|
} },
|
package/dist/vue.d.ts
CHANGED
|
@@ -229,14 +229,17 @@ export declare const TranscriptView: import("vue").DefineComponent<{
|
|
|
229
229
|
* sample button is pressed, and with `demand` set, `want` when a tool needs a model not loaded yet.
|
|
230
230
|
*/
|
|
231
231
|
export declare const MaskStudio: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
232
|
+
/** The models it may use: a click segment and a segment everything. With none, the hand tools still work. */
|
|
232
233
|
models: {
|
|
233
234
|
type: PropType<MaskModels>;
|
|
234
235
|
default: () => {};
|
|
235
236
|
};
|
|
237
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to set an image. */
|
|
236
238
|
sampleLabel: {
|
|
237
239
|
type: StringConstructor;
|
|
238
240
|
default: string;
|
|
239
241
|
};
|
|
242
|
+
/** Show the model tools before their models load; using one emits `want` so the page loads it. */
|
|
240
243
|
demand: {
|
|
241
244
|
type: BooleanConstructor;
|
|
242
245
|
default: boolean;
|
|
@@ -244,14 +247,17 @@ export declare const MaskStudio: import("vue").DefineComponent<import("vue").Ext
|
|
|
244
247
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
245
248
|
[key: string]: any;
|
|
246
249
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("sample" | "studio" | "want")[], "sample" | "studio" | "want", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
250
|
+
/** The models it may use: a click segment and a segment everything. With none, the hand tools still work. */
|
|
247
251
|
models: {
|
|
248
252
|
type: PropType<MaskModels>;
|
|
249
253
|
default: () => {};
|
|
250
254
|
};
|
|
255
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to set an image. */
|
|
251
256
|
sampleLabel: {
|
|
252
257
|
type: StringConstructor;
|
|
253
258
|
default: string;
|
|
254
259
|
};
|
|
260
|
+
/** Show the model tools before their models load; using one emits `want` so the page loads it. */
|
|
255
261
|
demand: {
|
|
256
262
|
type: BooleanConstructor;
|
|
257
263
|
default: boolean;
|
|
@@ -318,6 +324,7 @@ export declare const TranscribeQueue: import("vue").DefineComponent<{
|
|
|
318
324
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
319
325
|
/** Vue component that shows a recall trace as a table. */
|
|
320
326
|
export declare const MemoryInspector: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
327
|
+
/** The last recall from @hackbuild/memory: its query, mode, hits and the trace of each memory scored. */
|
|
321
328
|
recall: {
|
|
322
329
|
type: PropType<RecallLike | null>;
|
|
323
330
|
default: null;
|
|
@@ -325,6 +332,7 @@ export declare const MemoryInspector: import("vue").DefineComponent<import("vue"
|
|
|
325
332
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
326
333
|
[key: string]: any;
|
|
327
334
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
335
|
+
/** The last recall from @hackbuild/memory: its query, mode, hits and the trace of each memory scored. */
|
|
328
336
|
recall: {
|
|
329
337
|
type: PropType<RecallLike | null>;
|
|
330
338
|
default: null;
|
|
@@ -364,14 +372,17 @@ export declare const ContextMeter: import("vue").DefineComponent<{
|
|
|
364
372
|
* mounted view.
|
|
365
373
|
*/
|
|
366
374
|
export declare const FrameView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
375
|
+
/** The picture: a URL, an image, a live video or a canvas. */
|
|
367
376
|
source: {
|
|
368
377
|
type: PropType<string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | null>;
|
|
369
378
|
default: null;
|
|
370
379
|
};
|
|
380
|
+
/** What to draw on it, in image pixels: boxes, landmarks, a caption and a corner tag. */
|
|
371
381
|
results: {
|
|
372
382
|
type: PropType<FrameResults>;
|
|
373
383
|
default: () => {};
|
|
374
384
|
};
|
|
385
|
+
/** Flip it left to right, as a front camera reads. */
|
|
375
386
|
mirror: {
|
|
376
387
|
type: BooleanConstructor;
|
|
377
388
|
default: boolean;
|
|
@@ -379,14 +390,17 @@ export declare const FrameView: import("vue").DefineComponent<import("vue").Extr
|
|
|
379
390
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
380
391
|
[key: string]: any;
|
|
381
392
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "view"[], "view", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
393
|
+
/** The picture: a URL, an image, a live video or a canvas. */
|
|
382
394
|
source: {
|
|
383
395
|
type: PropType<string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | null>;
|
|
384
396
|
default: null;
|
|
385
397
|
};
|
|
398
|
+
/** What to draw on it, in image pixels: boxes, landmarks, a caption and a corner tag. */
|
|
386
399
|
results: {
|
|
387
400
|
type: PropType<FrameResults>;
|
|
388
401
|
default: () => {};
|
|
389
402
|
};
|
|
403
|
+
/** Flip it left to right, as a front camera reads. */
|
|
390
404
|
mirror: {
|
|
391
405
|
type: BooleanConstructor;
|
|
392
406
|
default: boolean;
|