@hackbuild/ai-views 0.1.10 → 0.1.12
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/README.md +3 -3
- package/dist/single/elements.iife.js +26 -13
- package/dist/single/elements.js +26 -13
- package/dist/single/index.iife.js +100 -73
- package/dist/single/index.js +100 -73
- package/dist/single/vue.iife.js +95 -20
- package/dist/single/vue.js +95 -20
- package/package.json +2 -2
package/dist/single/vue.js
CHANGED
|
@@ -8631,6 +8631,11 @@ const files = [
|
|
|
8631
8631
|
{ path: "unet/model.onnx" },
|
|
8632
8632
|
{ path: "vae_decoder/model.onnx" }
|
|
8633
8633
|
];
|
|
8634
|
+
const SD15 = [
|
|
8635
|
+
"Stable-Diffusion-v1.5-text-encoder-float16",
|
|
8636
|
+
"sd-unet-v1.5-model-b2c4h64w64s77-float16-compute-and-inputs-layernorm",
|
|
8637
|
+
"Stable-Diffusion-v1.5-vae-decoder-float16-fp32-instancenorm"
|
|
8638
|
+
];
|
|
8634
8639
|
const free512 = { freeDimensionOverrides: {
|
|
8635
8640
|
batch_size: 1,
|
|
8636
8641
|
num_channels: 4,
|
|
@@ -8668,7 +8673,7 @@ const IMAGEGEN_RECORDS = [{
|
|
|
8668
8673
|
notes: [
|
|
8669
8674
|
"webgpu only, no wasm floor",
|
|
8670
8675
|
"tokenizer: Xenova/clip-vit-base-patch16 through transformers.js (CLIP weights MIT)",
|
|
8671
|
-
"graph
|
|
8676
|
+
"graph files, names and dtypes read from the export (measured): fp32 edges, int32 input_ids, int64 timestep; pads with token 0"
|
|
8672
8677
|
],
|
|
8673
8678
|
form: {
|
|
8674
8679
|
steps: {
|
|
@@ -8682,6 +8687,7 @@ const IMAGEGEN_RECORDS = [{
|
|
|
8682
8687
|
spacing: "trailing",
|
|
8683
8688
|
note: "distilled from sd 2.1. 1 to 4 steps, no negative prompt. the fastest path.",
|
|
8684
8689
|
tokenizer: "Xenova/clip-vit-base-patch16",
|
|
8690
|
+
pad: 0,
|
|
8685
8691
|
graphs
|
|
8686
8692
|
}
|
|
8687
8693
|
}, {
|
|
@@ -8692,9 +8698,10 @@ const IMAGEGEN_RECORDS = [{
|
|
|
8692
8698
|
group: "good",
|
|
8693
8699
|
provides: ["imagegen"],
|
|
8694
8700
|
provider: "ort",
|
|
8701
|
+
unrunnable: "its unet takes a fixed batch of 2 at 64 by 64 latents with fp16 inputs (measured from the graph); the pipeline sends batch 1 in fp32.",
|
|
8695
8702
|
source: {
|
|
8696
8703
|
repo: "microsoft/stable-diffusion-v1.5-webnn",
|
|
8697
|
-
files
|
|
8704
|
+
files: SD15.map((g) => ({ path: `${g}.onnx` }))
|
|
8698
8705
|
},
|
|
8699
8706
|
sizeMB: 1969,
|
|
8700
8707
|
sizeSource: "vendor",
|
|
@@ -8708,7 +8715,7 @@ const IMAGEGEN_RECORDS = [{
|
|
|
8708
8715
|
place: "gpu",
|
|
8709
8716
|
runtime: "onnxruntime-web@1.27.0",
|
|
8710
8717
|
notes: [
|
|
8711
|
-
"about 2 GB (vendor)
|
|
8718
|
+
"about 2 GB (vendor). the export's three graphs were read (measured): int32 input_ids, fp16 hidden states, a unet fixed at batch 2 with fp16 sample and int64 timestep, an fp16 vae",
|
|
8712
8719
|
"runs the unet twice a step for guidance, so a step costs about twice an sd-turbo step (inferred)",
|
|
8713
8720
|
"tokenizer: Xenova/clip-vit-base-patch16 through transformers.js (CLIP weights MIT)"
|
|
8714
8721
|
],
|
|
@@ -8729,14 +8736,19 @@ const IMAGEGEN_RECORDS = [{
|
|
|
8729
8736
|
spacing: "leading",
|
|
8730
8737
|
note: "classic sd, openrail-m licence. 20 to 30 steps with guidance, takes a negative prompt. slower per image.",
|
|
8731
8738
|
tokenizer: "Xenova/clip-vit-base-patch16",
|
|
8732
|
-
graphs
|
|
8739
|
+
graphs: {
|
|
8740
|
+
textEncoder: SD15[0],
|
|
8741
|
+
unet: SD15[1],
|
|
8742
|
+
vaeDecoder: SD15[2]
|
|
8743
|
+
}
|
|
8733
8744
|
}
|
|
8734
8745
|
}];
|
|
8735
8746
|
/**
|
|
8736
8747
|
* 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
|
-
*
|
|
8748
|
+
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl`. The
|
|
8749
|
+
* export's input and output names and dtypes were read from the end of
|
|
8750
|
+
* each onnx file (2026-11-29, measured); the pipeline has not run on the
|
|
8751
|
+
* real weights. `loadImagegen(hub, { id:
|
|
8740
8752
|
* "sdxl-turbo" })` adds it and loads it.
|
|
8741
8753
|
*/
|
|
8742
8754
|
const IMAGEGEN_PICKER_RECORDS = [{
|
|
@@ -8744,7 +8756,7 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
8744
8756
|
label: "sdxl-turbo 512",
|
|
8745
8757
|
speed: "steady",
|
|
8746
8758
|
verdict: "not run yet",
|
|
8747
|
-
unrunnable: "not run yet. the
|
|
8759
|
+
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
8760
|
group: "good",
|
|
8749
8761
|
provides: ["imagegen"],
|
|
8750
8762
|
provider: "ort",
|
|
@@ -8770,7 +8782,7 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
8770
8782
|
runtime: "onnxruntime-web@1.27.0",
|
|
8771
8783
|
notes: [
|
|
8772
8784
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
8773
|
-
"fp16
|
|
8785
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
8774
8786
|
"the highest quality of the three image models"
|
|
8775
8787
|
],
|
|
8776
8788
|
form: {
|
|
@@ -8794,7 +8806,8 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
8794
8806
|
pipeline: "sdxl",
|
|
8795
8807
|
xl: {
|
|
8796
8808
|
io: "float16",
|
|
8797
|
-
timestep: "float16"
|
|
8809
|
+
timestep: "float16",
|
|
8810
|
+
ids2: "int64"
|
|
8798
8811
|
}
|
|
8799
8812
|
}
|
|
8800
8813
|
}];
|
|
@@ -9940,7 +9953,7 @@ const ICON = {
|
|
|
9940
9953
|
zoomIn: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"),
|
|
9941
9954
|
zoomOut: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"),
|
|
9942
9955
|
fit: svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"),
|
|
9943
|
-
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
9956
|
+
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14),
|
|
9944
9957
|
copy: svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14),
|
|
9945
9958
|
redoMsg: svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14),
|
|
9946
9959
|
point: svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18),
|
|
@@ -9951,8 +9964,8 @@ const ICON = {
|
|
|
9951
9964
|
camera: svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"),
|
|
9952
9965
|
menu: svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"),
|
|
9953
9966
|
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\"/>",
|
|
9967
|
+
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14),
|
|
9968
|
+
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14)
|
|
9956
9969
|
};
|
|
9957
9970
|
// packages/ai-views/src/mount-model.ts
|
|
9958
9971
|
/**
|
|
@@ -11931,10 +11944,12 @@ function hosted(setupMount, deps = () => []) {
|
|
|
11931
11944
|
const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
11932
11945
|
name: "ModelSelect",
|
|
11933
11946
|
props: {
|
|
11947
|
+
/** The job to pick for when no pick is passed: chat, voice, transcribe, detect and the rest. */
|
|
11934
11948
|
job: {
|
|
11935
11949
|
type: String,
|
|
11936
11950
|
default: "chat"
|
|
11937
11951
|
},
|
|
11952
|
+
/** 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
11953
|
pick: {
|
|
11939
11954
|
type: Object,
|
|
11940
11955
|
default: void 0
|
|
@@ -11947,10 +11962,12 @@ const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
|
11947
11962
|
type: Boolean,
|
|
11948
11963
|
default: true
|
|
11949
11964
|
},
|
|
11965
|
+
/** What this machine can run, from probe(); rows it cannot run say why. Used only when no pick is passed. */
|
|
11950
11966
|
env: {
|
|
11951
11967
|
type: Object,
|
|
11952
11968
|
default: void 0
|
|
11953
11969
|
},
|
|
11970
|
+
/** Fetches and starts the chosen model, such as jobLoader(job). Used only when no pick is passed. */
|
|
11954
11971
|
loader: {
|
|
11955
11972
|
type: Function,
|
|
11956
11973
|
default: void 0
|
|
@@ -11993,18 +12010,22 @@ const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
|
11993
12010
|
const ChatPane = /* @__PURE__ */ defineComponent({
|
|
11994
12011
|
name: "ChatPane",
|
|
11995
12012
|
props: {
|
|
12013
|
+
/** The thread to draw, from chatThread or a chatList's thread. */
|
|
11996
12014
|
thread: {
|
|
11997
12015
|
type: Object,
|
|
11998
12016
|
required: true
|
|
11999
12017
|
},
|
|
12018
|
+
/** The reply's name in its head. */
|
|
12000
12019
|
name: {
|
|
12001
12020
|
type: String,
|
|
12002
12021
|
default: "reply"
|
|
12003
12022
|
},
|
|
12023
|
+
/** The empty state's line, shown until the first turn. */
|
|
12004
12024
|
emptyName: {
|
|
12005
12025
|
type: String,
|
|
12006
12026
|
default: "what are we working on?"
|
|
12007
12027
|
},
|
|
12028
|
+
/** A plain note under the empty state's line. */
|
|
12008
12029
|
emptyNote: {
|
|
12009
12030
|
type: String,
|
|
12010
12031
|
default: ""
|
|
@@ -12020,10 +12041,12 @@ const ChatPane = /* @__PURE__ */ defineComponent({
|
|
|
12020
12041
|
const Composer = /* @__PURE__ */ defineComponent({
|
|
12021
12042
|
name: "Composer",
|
|
12022
12043
|
props: {
|
|
12044
|
+
/** The thread a message goes to. */
|
|
12023
12045
|
thread: {
|
|
12024
12046
|
type: Object,
|
|
12025
12047
|
required: true
|
|
12026
12048
|
},
|
|
12049
|
+
/** The box's placeholder. */
|
|
12027
12050
|
placeholder: {
|
|
12028
12051
|
type: String,
|
|
12029
12052
|
default: "say something"
|
|
@@ -12035,30 +12058,37 @@ const Composer = /* @__PURE__ */ defineComponent({
|
|
|
12035
12058
|
const TranscribeDrop = /* @__PURE__ */ defineComponent({
|
|
12036
12059
|
name: "TranscribeDrop",
|
|
12037
12060
|
props: {
|
|
12061
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12038
12062
|
queue: {
|
|
12039
12063
|
type: Object,
|
|
12040
12064
|
required: true
|
|
12041
12065
|
},
|
|
12066
|
+
/** The file types the picker offers; a drop takes any audio or video. */
|
|
12042
12067
|
accept: {
|
|
12043
12068
|
type: String,
|
|
12044
12069
|
default: "audio/*,video/*"
|
|
12045
12070
|
},
|
|
12071
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to queue one. */
|
|
12046
12072
|
sampleLabel: {
|
|
12047
12073
|
type: String,
|
|
12048
12074
|
default: ""
|
|
12049
12075
|
},
|
|
12076
|
+
/** The zone's line before anything is dropped. */
|
|
12050
12077
|
title: {
|
|
12051
12078
|
type: String,
|
|
12052
12079
|
default: ""
|
|
12053
12080
|
},
|
|
12081
|
+
/** A plain note under the line. */
|
|
12054
12082
|
note: {
|
|
12055
12083
|
type: String,
|
|
12056
12084
|
default: ""
|
|
12057
12085
|
},
|
|
12086
|
+
/** Add a "choose a folder" button; a dropped folder is read whole either way. */
|
|
12058
12087
|
folders: {
|
|
12059
12088
|
type: Boolean,
|
|
12060
12089
|
default: false
|
|
12061
12090
|
},
|
|
12091
|
+
/** Show the lines the cleanup dropped (repeats, phantom text), struck through. */
|
|
12062
12092
|
showDropped: {
|
|
12063
12093
|
type: Boolean,
|
|
12064
12094
|
default: false
|
|
@@ -12085,14 +12115,17 @@ const TranscribeDrop = /* @__PURE__ */ defineComponent({
|
|
|
12085
12115
|
const ExportMenu = /* @__PURE__ */ defineComponent({
|
|
12086
12116
|
name: "ExportMenu",
|
|
12087
12117
|
props: {
|
|
12118
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12088
12119
|
queue: {
|
|
12089
12120
|
type: Object,
|
|
12090
12121
|
required: true
|
|
12091
12122
|
},
|
|
12123
|
+
/** The tool name written into an export's header and the zip manifest. */
|
|
12092
12124
|
tool: {
|
|
12093
12125
|
type: String,
|
|
12094
12126
|
default: ""
|
|
12095
12127
|
},
|
|
12128
|
+
/** Make the main export button the pink action. */
|
|
12096
12129
|
go: {
|
|
12097
12130
|
type: Boolean,
|
|
12098
12131
|
default: false
|
|
@@ -12107,10 +12140,12 @@ const ExportMenu = /* @__PURE__ */ defineComponent({
|
|
|
12107
12140
|
const MemoryPane = /* @__PURE__ */ defineComponent({
|
|
12108
12141
|
name: "MemoryPane",
|
|
12109
12142
|
props: {
|
|
12143
|
+
/** The store to show: a @hackbuild/memory store or anything with the same list, edit and forget calls. */
|
|
12110
12144
|
memory: {
|
|
12111
12145
|
type: Object,
|
|
12112
12146
|
required: true
|
|
12113
12147
|
},
|
|
12148
|
+
/** The pane's heading. */
|
|
12114
12149
|
name: {
|
|
12115
12150
|
type: String,
|
|
12116
12151
|
default: "memory"
|
|
@@ -12155,10 +12190,12 @@ const MemoryPane = /* @__PURE__ */ defineComponent({
|
|
|
12155
12190
|
const SourcesDrop = /* @__PURE__ */ defineComponent({
|
|
12156
12191
|
name: "SourcesDrop",
|
|
12157
12192
|
props: {
|
|
12193
|
+
/** @hackbuild/memory `ingest(mem, files, o)` bound to a store; resolves to the files and parts read. */
|
|
12158
12194
|
ingest: {
|
|
12159
12195
|
type: Function,
|
|
12160
12196
|
required: true
|
|
12161
12197
|
},
|
|
12198
|
+
/** The file types the picker offers; empty takes text, markdown, csv, json, html, pdf, docx, zip and eml. */
|
|
12162
12199
|
accept: {
|
|
12163
12200
|
type: String,
|
|
12164
12201
|
default: ""
|
|
@@ -12172,7 +12209,9 @@ const SourcesDrop = /* @__PURE__ */ defineComponent({
|
|
|
12172
12209
|
/** Vue component for a persona rack. */
|
|
12173
12210
|
const PersonaRack = /* @__PURE__ */ defineComponent({
|
|
12174
12211
|
name: "PersonaRack",
|
|
12175
|
-
props: {
|
|
12212
|
+
props: {
|
|
12213
|
+
/** The persona state from personaRack: name, prompt, presets and saved ones. */
|
|
12214
|
+
rack: {
|
|
12176
12215
|
type: Object,
|
|
12177
12216
|
required: true
|
|
12178
12217
|
} },
|
|
@@ -12182,10 +12221,12 @@ const PersonaRack = /* @__PURE__ */ defineComponent({
|
|
|
12182
12221
|
const VoiceRow = /* @__PURE__ */ defineComponent({
|
|
12183
12222
|
name: "VoiceRow",
|
|
12184
12223
|
props: {
|
|
12224
|
+
/** The voice state from voiceRow: voice, rate, pitch and auto speak. */
|
|
12185
12225
|
row: {
|
|
12186
12226
|
type: Object,
|
|
12187
12227
|
required: true
|
|
12188
12228
|
},
|
|
12229
|
+
/** The line the test button reads; empty uses the row's own. */
|
|
12189
12230
|
test: {
|
|
12190
12231
|
type: String,
|
|
12191
12232
|
default: ""
|
|
@@ -12197,18 +12238,22 @@ const VoiceRow = /* @__PURE__ */ defineComponent({
|
|
|
12197
12238
|
const VoiceClone = /* @__PURE__ */ defineComponent({
|
|
12198
12239
|
name: "VoiceClone",
|
|
12199
12240
|
props: {
|
|
12241
|
+
/** The speaker from speaker(): its engine takes the reference clip. */
|
|
12200
12242
|
speaker: {
|
|
12201
12243
|
type: Object,
|
|
12202
12244
|
required: true
|
|
12203
12245
|
},
|
|
12246
|
+
/** Whether the loaded voice can clone; when false the row says to load one that can. */
|
|
12204
12247
|
can: {
|
|
12205
12248
|
type: Boolean,
|
|
12206
12249
|
default: true
|
|
12207
12250
|
},
|
|
12251
|
+
/** How many seconds the microphone records. */
|
|
12208
12252
|
seconds: {
|
|
12209
12253
|
type: Number,
|
|
12210
12254
|
default: 10
|
|
12211
12255
|
},
|
|
12256
|
+
/** A plain line under the row. */
|
|
12212
12257
|
hint: {
|
|
12213
12258
|
type: String,
|
|
12214
12259
|
default: ""
|
|
@@ -12223,7 +12268,9 @@ const VoiceClone = /* @__PURE__ */ defineComponent({
|
|
|
12223
12268
|
/** Vue component for the session menu of a chat list; emits `import` with the number of chats. */
|
|
12224
12269
|
const SessionMenu = /* @__PURE__ */ defineComponent({
|
|
12225
12270
|
name: "SessionMenu",
|
|
12226
|
-
props: {
|
|
12271
|
+
props: {
|
|
12272
|
+
/** The chat list to export, import and clear. */
|
|
12273
|
+
list: {
|
|
12227
12274
|
type: Object,
|
|
12228
12275
|
required: true
|
|
12229
12276
|
} },
|
|
@@ -12234,10 +12281,12 @@ const SessionMenu = /* @__PURE__ */ defineComponent({
|
|
|
12234
12281
|
const TranscriptView = /* @__PURE__ */ defineComponent({
|
|
12235
12282
|
name: "TranscriptView",
|
|
12236
12283
|
props: {
|
|
12284
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12237
12285
|
queue: {
|
|
12238
12286
|
type: Object,
|
|
12239
12287
|
required: true
|
|
12240
12288
|
},
|
|
12289
|
+
/** Show the export buttons for the selected file instead of its lines. */
|
|
12241
12290
|
exports: {
|
|
12242
12291
|
type: Boolean,
|
|
12243
12292
|
default: false
|
|
@@ -12252,14 +12301,17 @@ const TranscriptView = /* @__PURE__ */ defineComponent({
|
|
|
12252
12301
|
const MaskStudio = /* @__PURE__ */ defineComponent({
|
|
12253
12302
|
name: "MaskStudio",
|
|
12254
12303
|
props: {
|
|
12304
|
+
/** The models it may use: a click segment and a segment everything. With none, the hand tools still work. */
|
|
12255
12305
|
models: {
|
|
12256
12306
|
type: Object,
|
|
12257
12307
|
default: () => ({})
|
|
12258
12308
|
},
|
|
12309
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to set an image. */
|
|
12259
12310
|
sampleLabel: {
|
|
12260
12311
|
type: String,
|
|
12261
12312
|
default: ""
|
|
12262
12313
|
},
|
|
12314
|
+
/** Show the model tools before their models load; using one emits `want` so the page loads it. */
|
|
12263
12315
|
demand: {
|
|
12264
12316
|
type: Boolean,
|
|
12265
12317
|
default: false
|
|
@@ -12297,7 +12349,9 @@ const MaskStudio = /* @__PURE__ */ defineComponent({
|
|
|
12297
12349
|
/** Vue component for the tool rail of a mask studio. */
|
|
12298
12350
|
const MaskTools = /* @__PURE__ */ defineComponent({
|
|
12299
12351
|
name: "MaskTools",
|
|
12300
|
-
props: {
|
|
12352
|
+
props: {
|
|
12353
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12354
|
+
studio: {
|
|
12301
12355
|
type: Object,
|
|
12302
12356
|
required: true
|
|
12303
12357
|
} },
|
|
@@ -12306,7 +12360,9 @@ const MaskTools = /* @__PURE__ */ defineComponent({
|
|
|
12306
12360
|
/** Vue component for the undo, redo and zoom row of a mask studio. */
|
|
12307
12361
|
const MaskVerbs = /* @__PURE__ */ defineComponent({
|
|
12308
12362
|
name: "MaskVerbs",
|
|
12309
|
-
props: {
|
|
12363
|
+
props: {
|
|
12364
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12365
|
+
studio: {
|
|
12310
12366
|
type: Object,
|
|
12311
12367
|
required: true
|
|
12312
12368
|
} },
|
|
@@ -12316,14 +12372,17 @@ const MaskVerbs = /* @__PURE__ */ defineComponent({
|
|
|
12316
12372
|
const MaskRack = /* @__PURE__ */ defineComponent({
|
|
12317
12373
|
name: "MaskRack",
|
|
12318
12374
|
props: {
|
|
12375
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12319
12376
|
studio: {
|
|
12320
12377
|
type: Object,
|
|
12321
12378
|
required: true
|
|
12322
12379
|
},
|
|
12380
|
+
/** Which panel: the found objects, the mask tools, saved masks or the exports. */
|
|
12323
12381
|
part: {
|
|
12324
12382
|
type: String,
|
|
12325
12383
|
default: "found"
|
|
12326
12384
|
},
|
|
12385
|
+
/** The exported files' name, without extension. */
|
|
12327
12386
|
name: {
|
|
12328
12387
|
type: String,
|
|
12329
12388
|
default: "mask"
|
|
@@ -12335,10 +12394,12 @@ const MaskRack = /* @__PURE__ */ defineComponent({
|
|
|
12335
12394
|
const ModelJobs = /* @__PURE__ */ defineComponent({
|
|
12336
12395
|
name: "ModelJobs",
|
|
12337
12396
|
props: {
|
|
12397
|
+
/** The rack made with useJobsPick: one picker per job, presets and load all. */
|
|
12338
12398
|
jobs: {
|
|
12339
12399
|
type: Object,
|
|
12340
12400
|
required: true
|
|
12341
12401
|
},
|
|
12402
|
+
/** Draw the pink load all. Off on a gate, whose own button is the pink action. */
|
|
12342
12403
|
go: {
|
|
12343
12404
|
type: Boolean,
|
|
12344
12405
|
default: true
|
|
@@ -12349,7 +12410,9 @@ const ModelJobs = /* @__PURE__ */ defineComponent({
|
|
|
12349
12410
|
/** Vue component for the file list of a transcribe queue. */
|
|
12350
12411
|
const TranscribeQueue = /* @__PURE__ */ defineComponent({
|
|
12351
12412
|
name: "TranscribeQueue",
|
|
12352
|
-
props: {
|
|
12413
|
+
props: {
|
|
12414
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12415
|
+
queue: {
|
|
12353
12416
|
type: Object,
|
|
12354
12417
|
required: true
|
|
12355
12418
|
} },
|
|
@@ -12358,7 +12421,9 @@ const TranscribeQueue = /* @__PURE__ */ defineComponent({
|
|
|
12358
12421
|
/** Vue component that shows a recall trace as a table. */
|
|
12359
12422
|
const MemoryInspector = /* @__PURE__ */ defineComponent({
|
|
12360
12423
|
name: "MemoryInspector",
|
|
12361
|
-
props: {
|
|
12424
|
+
props: {
|
|
12425
|
+
/** The last recall from @hackbuild/memory: its query, mode, hits and the trace of each memory scored. */
|
|
12426
|
+
recall: {
|
|
12362
12427
|
type: Object,
|
|
12363
12428
|
default: null
|
|
12364
12429
|
} },
|
|
@@ -12378,10 +12443,12 @@ const MemoryInspector = /* @__PURE__ */ defineComponent({
|
|
|
12378
12443
|
const ChatList = /* @__PURE__ */ defineComponent({
|
|
12379
12444
|
name: "ChatList",
|
|
12380
12445
|
props: {
|
|
12446
|
+
/** The chats, from chatList: each a thread, one of them open. */
|
|
12381
12447
|
list: {
|
|
12382
12448
|
type: Object,
|
|
12383
12449
|
required: true
|
|
12384
12450
|
},
|
|
12451
|
+
/** The rail's accessible name. */
|
|
12385
12452
|
label: {
|
|
12386
12453
|
type: String,
|
|
12387
12454
|
default: "chats"
|
|
@@ -12393,14 +12460,17 @@ const ChatList = /* @__PURE__ */ defineComponent({
|
|
|
12393
12460
|
const ContextMeter = /* @__PURE__ */ defineComponent({
|
|
12394
12461
|
name: "ContextMeter",
|
|
12395
12462
|
props: {
|
|
12463
|
+
/** The thread whose next request is measured. */
|
|
12396
12464
|
thread: {
|
|
12397
12465
|
type: Object,
|
|
12398
12466
|
required: true
|
|
12399
12467
|
},
|
|
12468
|
+
/** The model's context window in tokens. */
|
|
12400
12469
|
budget: {
|
|
12401
12470
|
type: Number,
|
|
12402
12471
|
default: 4096
|
|
12403
12472
|
},
|
|
12473
|
+
/** The system prompt that rides with every request. */
|
|
12404
12474
|
system: {
|
|
12405
12475
|
type: String,
|
|
12406
12476
|
default: ""
|
|
@@ -12418,14 +12488,17 @@ const ContextMeter = /* @__PURE__ */ defineComponent({
|
|
|
12418
12488
|
const FrameView = /* @__PURE__ */ defineComponent({
|
|
12419
12489
|
name: "FrameView",
|
|
12420
12490
|
props: {
|
|
12491
|
+
/** The picture: a URL, an image, a live video or a canvas. */
|
|
12421
12492
|
source: {
|
|
12422
12493
|
type: [String, Object],
|
|
12423
12494
|
default: null
|
|
12424
12495
|
},
|
|
12496
|
+
/** What to draw on it, in image pixels: boxes, landmarks, a caption and a corner tag. */
|
|
12425
12497
|
results: {
|
|
12426
12498
|
type: Object,
|
|
12427
12499
|
default: () => ({})
|
|
12428
12500
|
},
|
|
12501
|
+
/** Flip it left to right, as a front camera reads. */
|
|
12429
12502
|
mirror: {
|
|
12430
12503
|
type: Boolean,
|
|
12431
12504
|
default: false
|
|
@@ -12454,7 +12527,9 @@ const FrameView = /* @__PURE__ */ defineComponent({
|
|
|
12454
12527
|
/** Vue component that opens the camera; emits `feed` with the feed and `frame` with the video at `fps`. */
|
|
12455
12528
|
const CameraFeed = /* @__PURE__ */ defineComponent({
|
|
12456
12529
|
name: "CameraFeed",
|
|
12457
|
-
props: {
|
|
12530
|
+
props: {
|
|
12531
|
+
/** How many times a second the video goes out as `frame` while live. */
|
|
12532
|
+
fps: {
|
|
12458
12533
|
type: Number,
|
|
12459
12534
|
default: 4
|
|
12460
12535
|
} },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackbuild/ai-views",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Views that bind the browser AI packages to hackbuild-ui: a model picker per job, a chat pane and composer, a drop first transcriber, a mask studio, a frame view and a camera feed. Each ships as a Vue component and a custom element.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@hackbuild/chat": "0.1.3",
|
|
47
47
|
"@hackbuild/devices": "0.1.4",
|
|
48
48
|
"@hackbuild/embed": "0.1.5",
|
|
49
|
-
"@hackbuild/imagegen": "0.2.
|
|
49
|
+
"@hackbuild/imagegen": "0.2.3",
|
|
50
50
|
"@hackbuild/memory": "0.1.4",
|
|
51
51
|
"@hackbuild/models": "0.2.3",
|
|
52
52
|
"@hackbuild/speak": "0.1.4",
|