@hackbuild/ai-views 0.1.10 → 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/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/package.json +2 -2
|
@@ -6656,9 +6656,10 @@ ${n}` : n;
|
|
|
6656
6656
|
}];
|
|
6657
6657
|
/**
|
|
6658
6658
|
* Listed for pickers, not registered by attachImagegen, so routing by
|
|
6659
|
-
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl
|
|
6660
|
-
* export's input and output names
|
|
6661
|
-
*
|
|
6659
|
+
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl`. The
|
|
6660
|
+
* export's input and output names and dtypes were read from the end of
|
|
6661
|
+
* each onnx file (2026-11-29, measured); the pipeline has not run on the
|
|
6662
|
+
* real weights. `loadImagegen(hub, { id:
|
|
6662
6663
|
* "sdxl-turbo" })` adds it and loads it.
|
|
6663
6664
|
*/
|
|
6664
6665
|
const IMAGEGEN_PICKER_RECORDS = [{
|
|
@@ -6666,7 +6667,7 @@ ${n}` : n;
|
|
|
6666
6667
|
label: "sdxl-turbo 512",
|
|
6667
6668
|
speed: "steady",
|
|
6668
6669
|
verdict: "not run yet",
|
|
6669
|
-
unrunnable: "not run yet. the
|
|
6670
|
+
unrunnable: "not run yet. the graph names and dtypes are read from the export's files (measured); the pipeline has not run on them.",
|
|
6670
6671
|
group: "good",
|
|
6671
6672
|
provides: ["imagegen"],
|
|
6672
6673
|
provider: "ort",
|
|
@@ -6692,7 +6693,7 @@ ${n}` : n;
|
|
|
6692
6693
|
runtime: "onnxruntime-web@1.27.0",
|
|
6693
6694
|
notes: [
|
|
6694
6695
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
6695
|
-
"fp16
|
|
6696
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
6696
6697
|
"the highest quality of the three image models"
|
|
6697
6698
|
],
|
|
6698
6699
|
form: {
|
|
@@ -6716,7 +6717,8 @@ ${n}` : n;
|
|
|
6716
6717
|
pipeline: "sdxl",
|
|
6717
6718
|
xl: {
|
|
6718
6719
|
io: "float16",
|
|
6719
|
-
timestep: "float16"
|
|
6720
|
+
timestep: "float16",
|
|
6721
|
+
ids2: "int64"
|
|
6720
6722
|
}
|
|
6721
6723
|
}
|
|
6722
6724
|
}];
|
|
@@ -8173,7 +8175,7 @@ ${n}` : n;
|
|
|
8173
8175
|
zoomIn: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"),
|
|
8174
8176
|
zoomOut: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"),
|
|
8175
8177
|
fit: svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"),
|
|
8176
|
-
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
8178
|
+
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14),
|
|
8177
8179
|
copy: svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14),
|
|
8178
8180
|
redoMsg: svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14),
|
|
8179
8181
|
point: svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18),
|
|
@@ -8184,8 +8186,8 @@ ${n}` : n;
|
|
|
8184
8186
|
camera: svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"),
|
|
8185
8187
|
menu: svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"),
|
|
8186
8188
|
plus: svg("<path d=\"M12 5v14M5 12h14\"/>", 14),
|
|
8187
|
-
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>",
|
|
8188
|
-
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>",
|
|
8189
|
+
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14),
|
|
8190
|
+
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14)
|
|
8189
8191
|
};
|
|
8190
8192
|
// packages/ai-views/src/mount-chat.ts
|
|
8191
8193
|
/**
|
package/dist/single/elements.js
CHANGED
|
@@ -6654,9 +6654,10 @@ const IMAGEGEN_RECORDS = [{
|
|
|
6654
6654
|
}];
|
|
6655
6655
|
/**
|
|
6656
6656
|
* Listed for pickers, not registered by attachImagegen, so routing by
|
|
6657
|
-
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl
|
|
6658
|
-
* export's input and output names
|
|
6659
|
-
*
|
|
6657
|
+
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl`. The
|
|
6658
|
+
* export's input and output names and dtypes were read from the end of
|
|
6659
|
+
* each onnx file (2026-11-29, measured); the pipeline has not run on the
|
|
6660
|
+
* real weights. `loadImagegen(hub, { id:
|
|
6660
6661
|
* "sdxl-turbo" })` adds it and loads it.
|
|
6661
6662
|
*/
|
|
6662
6663
|
const IMAGEGEN_PICKER_RECORDS = [{
|
|
@@ -6664,7 +6665,7 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
6664
6665
|
label: "sdxl-turbo 512",
|
|
6665
6666
|
speed: "steady",
|
|
6666
6667
|
verdict: "not run yet",
|
|
6667
|
-
unrunnable: "not run yet. the
|
|
6668
|
+
unrunnable: "not run yet. the graph names and dtypes are read from the export's files (measured); the pipeline has not run on them.",
|
|
6668
6669
|
group: "good",
|
|
6669
6670
|
provides: ["imagegen"],
|
|
6670
6671
|
provider: "ort",
|
|
@@ -6690,7 +6691,7 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
6690
6691
|
runtime: "onnxruntime-web@1.27.0",
|
|
6691
6692
|
notes: [
|
|
6692
6693
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
6693
|
-
"fp16
|
|
6694
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
6694
6695
|
"the highest quality of the three image models"
|
|
6695
6696
|
],
|
|
6696
6697
|
form: {
|
|
@@ -6714,7 +6715,8 @@ const IMAGEGEN_PICKER_RECORDS = [{
|
|
|
6714
6715
|
pipeline: "sdxl",
|
|
6715
6716
|
xl: {
|
|
6716
6717
|
io: "float16",
|
|
6717
|
-
timestep: "float16"
|
|
6718
|
+
timestep: "float16",
|
|
6719
|
+
ids2: "int64"
|
|
6718
6720
|
}
|
|
6719
6721
|
}
|
|
6720
6722
|
}];
|
|
@@ -8171,7 +8173,7 @@ const ICON = {
|
|
|
8171
8173
|
zoomIn: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"),
|
|
8172
8174
|
zoomOut: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"),
|
|
8173
8175
|
fit: svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"),
|
|
8174
|
-
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
8176
|
+
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14),
|
|
8175
8177
|
copy: svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14),
|
|
8176
8178
|
redoMsg: svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14),
|
|
8177
8179
|
point: svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18),
|
|
@@ -8182,8 +8184,8 @@ const ICON = {
|
|
|
8182
8184
|
camera: svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"),
|
|
8183
8185
|
menu: svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"),
|
|
8184
8186
|
plus: svg("<path d=\"M12 5v14M5 12h14\"/>", 14),
|
|
8185
|
-
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>",
|
|
8186
|
-
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>",
|
|
8187
|
+
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14),
|
|
8188
|
+
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14)
|
|
8187
8189
|
};
|
|
8188
8190
|
// packages/ai-views/src/mount-chat.ts
|
|
8189
8191
|
/**
|
|
@@ -7980,7 +7980,7 @@ var HackbuildAiViews = (function(exports) {
|
|
|
7980
7980
|
label: "sdxl-turbo 512",
|
|
7981
7981
|
speed: "steady",
|
|
7982
7982
|
verdict: "not run yet",
|
|
7983
|
-
unrunnable: "not run yet. the
|
|
7983
|
+
unrunnable: "not run yet. the graph names and dtypes are read from the export's files (measured); the pipeline has not run on them.",
|
|
7984
7984
|
group: "good",
|
|
7985
7985
|
provides: ["imagegen"],
|
|
7986
7986
|
provider: "ort",
|
|
@@ -8006,7 +8006,7 @@ var HackbuildAiViews = (function(exports) {
|
|
|
8006
8006
|
runtime: "onnxruntime-web@1.27.0",
|
|
8007
8007
|
notes: [
|
|
8008
8008
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
8009
|
-
"fp16
|
|
8009
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
8010
8010
|
"the highest quality of the three image models"
|
|
8011
8011
|
],
|
|
8012
8012
|
form: {
|
|
@@ -8030,7 +8030,8 @@ var HackbuildAiViews = (function(exports) {
|
|
|
8030
8030
|
pipeline: "sdxl",
|
|
8031
8031
|
xl: {
|
|
8032
8032
|
io: "float16",
|
|
8033
|
-
timestep: "float16"
|
|
8033
|
+
timestep: "float16",
|
|
8034
|
+
ids2: "int64"
|
|
8034
8035
|
}
|
|
8035
8036
|
}
|
|
8036
8037
|
}];
|
|
@@ -8134,8 +8135,9 @@ var HackbuildAiViews = (function(exports) {
|
|
|
8134
8135
|
let t = now();
|
|
8135
8136
|
const encode = async (text) => {
|
|
8136
8137
|
const ids = await tokenize(text.length ? text : " ");
|
|
8137
|
-
const
|
|
8138
|
-
const
|
|
8138
|
+
const idsOf = (v, dtype) => dtype === "int64" ? new ort.Tensor("int64", BigInt64Array.from(v, (x) => BigInt(x)), [1, 77]) : new ort.Tensor("int32", v, [1, 77]);
|
|
8139
|
+
const a = await run(() => s.textEncoder.run({ input_ids: idsOf(padIds(ids), io.ids1) }));
|
|
8140
|
+
const b = await run(() => s.textEncoder2.run({ input_ids: idsOf(padIds2(ids, io.pad2), io.ids2) }));
|
|
8139
8141
|
const h1 = floatsOf(pick(a, io.hidden1, ["last_hidden_state"], "text encoder"));
|
|
8140
8142
|
const h2 = floatsOf(pick(b, io.hidden2, ["last_hidden_state"], "text encoder 2"));
|
|
8141
8143
|
const pooled = floatsOf(pick(b, io.pooled, ["pooler_output"], "text encoder 2"));
|
|
@@ -8244,6 +8246,8 @@ var HackbuildAiViews = (function(exports) {
|
|
|
8244
8246
|
XL_IO = {
|
|
8245
8247
|
io: "float32",
|
|
8246
8248
|
timestep: "int64",
|
|
8249
|
+
ids1: "int32",
|
|
8250
|
+
ids2: "int32",
|
|
8247
8251
|
hidden1: "hidden_states.11",
|
|
8248
8252
|
hidden2: "hidden_states.31",
|
|
8249
8253
|
pooled: "text_embeds",
|
|
@@ -16575,7 +16579,7 @@ self.onmessage = async (ev) => {
|
|
|
16575
16579
|
}
|
|
16576
16580
|
/** Inline SVG icons, stroked in currentColor, 16 px. */
|
|
16577
16581
|
const svg = (d, size = 16) => `<svg class="hb-icon is-stroke" width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" aria-hidden="true">${d}</svg>`;
|
|
16578
|
-
svg("<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>"), svg("<path d=\"m15 14 5-5-5-5\"/><path d=\"M20 9H10a6 6 0 0 0 0 12h3\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"), svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"), svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
16582
|
+
svg("<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>"), svg("<path d=\"m15 14 5-5-5-5\"/><path d=\"M20 9H10a6 6 0 0 0 0 12h3\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"), svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"), svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14), svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14), svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14), svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18), svg("<path d=\"m3 21 12-12M15 3v3M18 6h3M19 2l-1 1M14 9l1 1\"/>", 18), svg("<path d=\"M18 3 9 12l3 3 9-9z\"/><path d=\"M9 12c-3 0-5 2-5 5 0 2-1 3-2 4 4 0 8-1 9-4\"/>", 18), svg("<ellipse cx=\"12\" cy=\"9\" rx=\"8\" ry=\"5\"/><path d=\"M7 13c-1 2 0 4 2 4s2 3 0 5\"/>", 18), svg("<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\"/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\"/>", 18), svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"), svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"), svg("<path d=\"M12 5v14M5 12h14\"/>", 14), svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14), svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14);
|
|
16579
16583
|
// packages/ai-views/src/memory.ts
|
|
16580
16584
|
const n3 = (x) => Number.isFinite(x) ? x.toFixed(3) : "none";
|
|
16581
16585
|
const rank = (r) => r >= 0 ? `#${r + 1}` : "none";
|
package/dist/single/index.js
CHANGED
|
@@ -7978,7 +7978,7 @@ var init_records$3 = __esmMin((() => {
|
|
|
7978
7978
|
label: "sdxl-turbo 512",
|
|
7979
7979
|
speed: "steady",
|
|
7980
7980
|
verdict: "not run yet",
|
|
7981
|
-
unrunnable: "not run yet. the
|
|
7981
|
+
unrunnable: "not run yet. the graph names and dtypes are read from the export's files (measured); the pipeline has not run on them.",
|
|
7982
7982
|
group: "good",
|
|
7983
7983
|
provides: ["imagegen"],
|
|
7984
7984
|
provider: "ort",
|
|
@@ -8004,7 +8004,7 @@ var init_records$3 = __esmMin((() => {
|
|
|
8004
8004
|
runtime: "onnxruntime-web@1.27.0",
|
|
8005
8005
|
notes: [
|
|
8006
8006
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
8007
|
-
"fp16
|
|
8007
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
8008
8008
|
"the highest quality of the three image models"
|
|
8009
8009
|
],
|
|
8010
8010
|
form: {
|
|
@@ -8028,7 +8028,8 @@ var init_records$3 = __esmMin((() => {
|
|
|
8028
8028
|
pipeline: "sdxl",
|
|
8029
8029
|
xl: {
|
|
8030
8030
|
io: "float16",
|
|
8031
|
-
timestep: "float16"
|
|
8031
|
+
timestep: "float16",
|
|
8032
|
+
ids2: "int64"
|
|
8032
8033
|
}
|
|
8033
8034
|
}
|
|
8034
8035
|
}];
|
|
@@ -8132,8 +8133,9 @@ async function generateXl(ort, s, tokenize, o) {
|
|
|
8132
8133
|
let t = now();
|
|
8133
8134
|
const encode = async (text) => {
|
|
8134
8135
|
const ids = await tokenize(text.length ? text : " ");
|
|
8135
|
-
const
|
|
8136
|
-
const
|
|
8136
|
+
const idsOf = (v, dtype) => dtype === "int64" ? new ort.Tensor("int64", BigInt64Array.from(v, (x) => BigInt(x)), [1, 77]) : new ort.Tensor("int32", v, [1, 77]);
|
|
8137
|
+
const a = await run(() => s.textEncoder.run({ input_ids: idsOf(padIds(ids), io.ids1) }));
|
|
8138
|
+
const b = await run(() => s.textEncoder2.run({ input_ids: idsOf(padIds2(ids, io.pad2), io.ids2) }));
|
|
8137
8139
|
const h1 = floatsOf(pick(a, io.hidden1, ["last_hidden_state"], "text encoder"));
|
|
8138
8140
|
const h2 = floatsOf(pick(b, io.hidden2, ["last_hidden_state"], "text encoder 2"));
|
|
8139
8141
|
const pooled = floatsOf(pick(b, io.pooled, ["pooler_output"], "text encoder 2"));
|
|
@@ -8242,6 +8244,8 @@ var init_xl = __esmMin((() => {
|
|
|
8242
8244
|
XL_IO = {
|
|
8243
8245
|
io: "float32",
|
|
8244
8246
|
timestep: "int64",
|
|
8247
|
+
ids1: "int32",
|
|
8248
|
+
ids2: "int32",
|
|
8245
8249
|
hidden1: "hidden_states.11",
|
|
8246
8250
|
hidden2: "hidden_states.31",
|
|
8247
8251
|
pooled: "text_embeds",
|
|
@@ -16573,7 +16577,7 @@ function esc(s) {
|
|
|
16573
16577
|
}
|
|
16574
16578
|
/** Inline SVG icons, stroked in currentColor, 16 px. */
|
|
16575
16579
|
const svg = (d, size = 16) => `<svg class="hb-icon is-stroke" width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" aria-hidden="true">${d}</svg>`;
|
|
16576
|
-
svg("<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>"), svg("<path d=\"m15 14 5-5-5-5\"/><path d=\"M20 9H10a6 6 0 0 0 0 12h3\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"), svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"), svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
16580
|
+
svg("<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10a6 6 0 0 1 0 12h-3\"/>"), svg("<path d=\"m15 14 5-5-5-5\"/><path d=\"M20 9H10a6 6 0 0 0 0 12h3\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"), svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"), svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"), svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14), svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14), svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14), svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18), svg("<path d=\"m3 21 12-12M15 3v3M18 6h3M19 2l-1 1M14 9l1 1\"/>", 18), svg("<path d=\"M18 3 9 12l3 3 9-9z\"/><path d=\"M9 12c-3 0-5 2-5 5 0 2-1 3-2 4 4 0 8-1 9-4\"/>", 18), svg("<ellipse cx=\"12\" cy=\"9\" rx=\"8\" ry=\"5\"/><path d=\"M7 13c-1 2 0 4 2 4s2 3 0 5\"/>", 18), svg("<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\"/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\"/>", 18), svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"), svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"), svg("<path d=\"M12 5v14M5 12h14\"/>", 14), svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14), svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14);
|
|
16577
16581
|
// packages/ai-views/src/memory.ts
|
|
16578
16582
|
const n3 = (x) => Number.isFinite(x) ? x.toFixed(3) : "none";
|
|
16579
16583
|
const rank = (r) => r >= 0 ? `#${r + 1}` : "none";
|
package/dist/single/vue.iife.js
CHANGED
|
@@ -8736,9 +8736,10 @@ ${n}` : n;
|
|
|
8736
8736
|
}];
|
|
8737
8737
|
/**
|
|
8738
8738
|
* Listed for pickers, not registered by attachImagegen, so routing by
|
|
8739
|
-
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl
|
|
8740
|
-
* export's input and output names
|
|
8741
|
-
*
|
|
8739
|
+
* capability keeps SD-Turbo: SDXL-Turbo runs on `generateXl`. The
|
|
8740
|
+
* export's input and output names and dtypes were read from the end of
|
|
8741
|
+
* each onnx file (2026-11-29, measured); the pipeline has not run on the
|
|
8742
|
+
* real weights. `loadImagegen(hub, { id:
|
|
8742
8743
|
* "sdxl-turbo" })` adds it and loads it.
|
|
8743
8744
|
*/
|
|
8744
8745
|
const IMAGEGEN_PICKER_RECORDS = [{
|
|
@@ -8746,7 +8747,7 @@ ${n}` : n;
|
|
|
8746
8747
|
label: "sdxl-turbo 512",
|
|
8747
8748
|
speed: "steady",
|
|
8748
8749
|
verdict: "not run yet",
|
|
8749
|
-
unrunnable: "not run yet. the
|
|
8750
|
+
unrunnable: "not run yet. the graph names and dtypes are read from the export's files (measured); the pipeline has not run on them.",
|
|
8750
8751
|
group: "good",
|
|
8751
8752
|
provides: ["imagegen"],
|
|
8752
8753
|
provider: "ort",
|
|
@@ -8772,7 +8773,7 @@ ${n}` : n;
|
|
|
8772
8773
|
runtime: "onnxruntime-web@1.27.0",
|
|
8773
8774
|
notes: [
|
|
8774
8775
|
"two text encoders, pooled embeddings and time ids, on generateXl",
|
|
8775
|
-
"fp16
|
|
8776
|
+
"fp16 edges and a float16 timestep; input_ids int32 for the first encoder and int64 for the second (measured from the graphs)",
|
|
8776
8777
|
"the highest quality of the three image models"
|
|
8777
8778
|
],
|
|
8778
8779
|
form: {
|
|
@@ -8796,7 +8797,8 @@ ${n}` : n;
|
|
|
8796
8797
|
pipeline: "sdxl",
|
|
8797
8798
|
xl: {
|
|
8798
8799
|
io: "float16",
|
|
8799
|
-
timestep: "float16"
|
|
8800
|
+
timestep: "float16",
|
|
8801
|
+
ids2: "int64"
|
|
8800
8802
|
}
|
|
8801
8803
|
}
|
|
8802
8804
|
}];
|
|
@@ -9942,7 +9944,7 @@ ${n}` : n;
|
|
|
9942
9944
|
zoomIn: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M11 8v6M8 11h6\"/>"),
|
|
9943
9945
|
zoomOut: svg("<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M21 21l-4.3-4.3M8 11h6\"/>"),
|
|
9944
9946
|
fit: svg("<path d=\"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5\"/>"),
|
|
9945
|
-
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>",
|
|
9947
|
+
x: svg("<path d=\"M6 6l12 12M18 6 6 18\"/>", 14),
|
|
9946
9948
|
copy: svg("<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\"/><path d=\"M5 15V4h11\"/>", 14),
|
|
9947
9949
|
redoMsg: svg("<path d=\"M21 12a9 9 0 1 1-3-6.7L21 8\"/><path d=\"M21 3v5h-5\"/>", 14),
|
|
9948
9950
|
point: svg("<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v5M12 17v5M2 12h5M17 12h5\"/>", 18),
|
|
@@ -9953,8 +9955,8 @@ ${n}` : n;
|
|
|
9953
9955
|
camera: svg("<path d=\"M3 7h4l2-3h6l2 3h4v13H3z\"/><circle cx=\"12\" cy=\"13\" r=\"4\"/>"),
|
|
9954
9956
|
menu: svg("<path d=\"M4 6h16M4 12h16M4 18h16\"/>"),
|
|
9955
9957
|
plus: svg("<path d=\"M12 5v14M5 12h14\"/>", 14),
|
|
9956
|
-
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>",
|
|
9957
|
-
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>",
|
|
9958
|
+
pen: svg("<path d=\"M4 20h4L19 9l-4-4L4 16z\"/>", 14),
|
|
9959
|
+
trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 14)
|
|
9958
9960
|
};
|
|
9959
9961
|
// packages/ai-views/src/mount-model.ts
|
|
9960
9962
|
/**
|
|
@@ -11933,10 +11935,12 @@ ${n}` : n;
|
|
|
11933
11935
|
const ModelSelect = /* @__PURE__ */ defineComponent({
|
|
11934
11936
|
name: "ModelSelect",
|
|
11935
11937
|
props: {
|
|
11938
|
+
/** The job to pick for when no pick is passed: chat, voice, transcribe, detect and the rest. */
|
|
11936
11939
|
job: {
|
|
11937
11940
|
type: String,
|
|
11938
11941
|
default: "chat"
|
|
11939
11942
|
},
|
|
11943
|
+
/** 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`. */
|
|
11940
11944
|
pick: {
|
|
11941
11945
|
type: Object,
|
|
11942
11946
|
default: void 0
|
|
@@ -11949,10 +11953,12 @@ ${n}` : n;
|
|
|
11949
11953
|
type: Boolean,
|
|
11950
11954
|
default: true
|
|
11951
11955
|
},
|
|
11956
|
+
/** What this machine can run, from probe(); rows it cannot run say why. Used only when no pick is passed. */
|
|
11952
11957
|
env: {
|
|
11953
11958
|
type: Object,
|
|
11954
11959
|
default: void 0
|
|
11955
11960
|
},
|
|
11961
|
+
/** Fetches and starts the chosen model, such as jobLoader(job). Used only when no pick is passed. */
|
|
11956
11962
|
loader: {
|
|
11957
11963
|
type: Function,
|
|
11958
11964
|
default: void 0
|
|
@@ -11995,18 +12001,22 @@ ${n}` : n;
|
|
|
11995
12001
|
const ChatPane = /* @__PURE__ */ defineComponent({
|
|
11996
12002
|
name: "ChatPane",
|
|
11997
12003
|
props: {
|
|
12004
|
+
/** The thread to draw, from chatThread or a chatList's thread. */
|
|
11998
12005
|
thread: {
|
|
11999
12006
|
type: Object,
|
|
12000
12007
|
required: true
|
|
12001
12008
|
},
|
|
12009
|
+
/** The reply's name in its head. */
|
|
12002
12010
|
name: {
|
|
12003
12011
|
type: String,
|
|
12004
12012
|
default: "reply"
|
|
12005
12013
|
},
|
|
12014
|
+
/** The empty state's line, shown until the first turn. */
|
|
12006
12015
|
emptyName: {
|
|
12007
12016
|
type: String,
|
|
12008
12017
|
default: "what are we working on?"
|
|
12009
12018
|
},
|
|
12019
|
+
/** A plain note under the empty state's line. */
|
|
12010
12020
|
emptyNote: {
|
|
12011
12021
|
type: String,
|
|
12012
12022
|
default: ""
|
|
@@ -12022,10 +12032,12 @@ ${n}` : n;
|
|
|
12022
12032
|
const Composer = /* @__PURE__ */ defineComponent({
|
|
12023
12033
|
name: "Composer",
|
|
12024
12034
|
props: {
|
|
12035
|
+
/** The thread a message goes to. */
|
|
12025
12036
|
thread: {
|
|
12026
12037
|
type: Object,
|
|
12027
12038
|
required: true
|
|
12028
12039
|
},
|
|
12040
|
+
/** The box's placeholder. */
|
|
12029
12041
|
placeholder: {
|
|
12030
12042
|
type: String,
|
|
12031
12043
|
default: "say something"
|
|
@@ -12037,30 +12049,37 @@ ${n}` : n;
|
|
|
12037
12049
|
const TranscribeDrop = /* @__PURE__ */ defineComponent({
|
|
12038
12050
|
name: "TranscribeDrop",
|
|
12039
12051
|
props: {
|
|
12052
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12040
12053
|
queue: {
|
|
12041
12054
|
type: Object,
|
|
12042
12055
|
required: true
|
|
12043
12056
|
},
|
|
12057
|
+
/** The file types the picker offers; a drop takes any audio or video. */
|
|
12044
12058
|
accept: {
|
|
12045
12059
|
type: String,
|
|
12046
12060
|
default: "audio/*,video/*"
|
|
12047
12061
|
},
|
|
12062
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to queue one. */
|
|
12048
12063
|
sampleLabel: {
|
|
12049
12064
|
type: String,
|
|
12050
12065
|
default: ""
|
|
12051
12066
|
},
|
|
12067
|
+
/** The zone's line before anything is dropped. */
|
|
12052
12068
|
title: {
|
|
12053
12069
|
type: String,
|
|
12054
12070
|
default: ""
|
|
12055
12071
|
},
|
|
12072
|
+
/** A plain note under the line. */
|
|
12056
12073
|
note: {
|
|
12057
12074
|
type: String,
|
|
12058
12075
|
default: ""
|
|
12059
12076
|
},
|
|
12077
|
+
/** Add a "choose a folder" button; a dropped folder is read whole either way. */
|
|
12060
12078
|
folders: {
|
|
12061
12079
|
type: Boolean,
|
|
12062
12080
|
default: false
|
|
12063
12081
|
},
|
|
12082
|
+
/** Show the lines the cleanup dropped (repeats, phantom text), struck through. */
|
|
12064
12083
|
showDropped: {
|
|
12065
12084
|
type: Boolean,
|
|
12066
12085
|
default: false
|
|
@@ -12087,14 +12106,17 @@ ${n}` : n;
|
|
|
12087
12106
|
const ExportMenu = /* @__PURE__ */ defineComponent({
|
|
12088
12107
|
name: "ExportMenu",
|
|
12089
12108
|
props: {
|
|
12109
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12090
12110
|
queue: {
|
|
12091
12111
|
type: Object,
|
|
12092
12112
|
required: true
|
|
12093
12113
|
},
|
|
12114
|
+
/** The tool name written into an export's header and the zip manifest. */
|
|
12094
12115
|
tool: {
|
|
12095
12116
|
type: String,
|
|
12096
12117
|
default: ""
|
|
12097
12118
|
},
|
|
12119
|
+
/** Make the main export button the pink action. */
|
|
12098
12120
|
go: {
|
|
12099
12121
|
type: Boolean,
|
|
12100
12122
|
default: false
|
|
@@ -12109,10 +12131,12 @@ ${n}` : n;
|
|
|
12109
12131
|
const MemoryPane = /* @__PURE__ */ defineComponent({
|
|
12110
12132
|
name: "MemoryPane",
|
|
12111
12133
|
props: {
|
|
12134
|
+
/** The store to show: a @hackbuild/memory store or anything with the same list, edit and forget calls. */
|
|
12112
12135
|
memory: {
|
|
12113
12136
|
type: Object,
|
|
12114
12137
|
required: true
|
|
12115
12138
|
},
|
|
12139
|
+
/** The pane's heading. */
|
|
12116
12140
|
name: {
|
|
12117
12141
|
type: String,
|
|
12118
12142
|
default: "memory"
|
|
@@ -12157,10 +12181,12 @@ ${n}` : n;
|
|
|
12157
12181
|
const SourcesDrop = /* @__PURE__ */ defineComponent({
|
|
12158
12182
|
name: "SourcesDrop",
|
|
12159
12183
|
props: {
|
|
12184
|
+
/** @hackbuild/memory `ingest(mem, files, o)` bound to a store; resolves to the files and parts read. */
|
|
12160
12185
|
ingest: {
|
|
12161
12186
|
type: Function,
|
|
12162
12187
|
required: true
|
|
12163
12188
|
},
|
|
12189
|
+
/** The file types the picker offers; empty takes text, markdown, csv, json, html, pdf, docx, zip and eml. */
|
|
12164
12190
|
accept: {
|
|
12165
12191
|
type: String,
|
|
12166
12192
|
default: ""
|
|
@@ -12174,7 +12200,9 @@ ${n}` : n;
|
|
|
12174
12200
|
/** Vue component for a persona rack. */
|
|
12175
12201
|
const PersonaRack = /* @__PURE__ */ defineComponent({
|
|
12176
12202
|
name: "PersonaRack",
|
|
12177
|
-
props: {
|
|
12203
|
+
props: {
|
|
12204
|
+
/** The persona state from personaRack: name, prompt, presets and saved ones. */
|
|
12205
|
+
rack: {
|
|
12178
12206
|
type: Object,
|
|
12179
12207
|
required: true
|
|
12180
12208
|
} },
|
|
@@ -12184,10 +12212,12 @@ ${n}` : n;
|
|
|
12184
12212
|
const VoiceRow = /* @__PURE__ */ defineComponent({
|
|
12185
12213
|
name: "VoiceRow",
|
|
12186
12214
|
props: {
|
|
12215
|
+
/** The voice state from voiceRow: voice, rate, pitch and auto speak. */
|
|
12187
12216
|
row: {
|
|
12188
12217
|
type: Object,
|
|
12189
12218
|
required: true
|
|
12190
12219
|
},
|
|
12220
|
+
/** The line the test button reads; empty uses the row's own. */
|
|
12191
12221
|
test: {
|
|
12192
12222
|
type: String,
|
|
12193
12223
|
default: ""
|
|
@@ -12199,18 +12229,22 @@ ${n}` : n;
|
|
|
12199
12229
|
const VoiceClone = /* @__PURE__ */ defineComponent({
|
|
12200
12230
|
name: "VoiceClone",
|
|
12201
12231
|
props: {
|
|
12232
|
+
/** The speaker from speaker(): its engine takes the reference clip. */
|
|
12202
12233
|
speaker: {
|
|
12203
12234
|
type: Object,
|
|
12204
12235
|
required: true
|
|
12205
12236
|
},
|
|
12237
|
+
/** Whether the loaded voice can clone; when false the row says to load one that can. */
|
|
12206
12238
|
can: {
|
|
12207
12239
|
type: Boolean,
|
|
12208
12240
|
default: true
|
|
12209
12241
|
},
|
|
12242
|
+
/** How many seconds the microphone records. */
|
|
12210
12243
|
seconds: {
|
|
12211
12244
|
type: Number,
|
|
12212
12245
|
default: 10
|
|
12213
12246
|
},
|
|
12247
|
+
/** A plain line under the row. */
|
|
12214
12248
|
hint: {
|
|
12215
12249
|
type: String,
|
|
12216
12250
|
default: ""
|
|
@@ -12225,7 +12259,9 @@ ${n}` : n;
|
|
|
12225
12259
|
/** Vue component for the session menu of a chat list; emits `import` with the number of chats. */
|
|
12226
12260
|
const SessionMenu = /* @__PURE__ */ defineComponent({
|
|
12227
12261
|
name: "SessionMenu",
|
|
12228
|
-
props: {
|
|
12262
|
+
props: {
|
|
12263
|
+
/** The chat list to export, import and clear. */
|
|
12264
|
+
list: {
|
|
12229
12265
|
type: Object,
|
|
12230
12266
|
required: true
|
|
12231
12267
|
} },
|
|
@@ -12236,10 +12272,12 @@ ${n}` : n;
|
|
|
12236
12272
|
const TranscriptView = /* @__PURE__ */ defineComponent({
|
|
12237
12273
|
name: "TranscriptView",
|
|
12238
12274
|
props: {
|
|
12275
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12239
12276
|
queue: {
|
|
12240
12277
|
type: Object,
|
|
12241
12278
|
required: true
|
|
12242
12279
|
},
|
|
12280
|
+
/** Show the export buttons for the selected file instead of its lines. */
|
|
12243
12281
|
exports: {
|
|
12244
12282
|
type: Boolean,
|
|
12245
12283
|
default: false
|
|
@@ -12254,14 +12292,17 @@ ${n}` : n;
|
|
|
12254
12292
|
const MaskStudio = /* @__PURE__ */ defineComponent({
|
|
12255
12293
|
name: "MaskStudio",
|
|
12256
12294
|
props: {
|
|
12295
|
+
/** The models it may use: a click segment and a segment everything. With none, the hand tools still work. */
|
|
12257
12296
|
models: {
|
|
12258
12297
|
type: Object,
|
|
12259
12298
|
default: () => ({})
|
|
12260
12299
|
},
|
|
12300
|
+
/** A sample button's label; empty hides it. A press emits `sample` for the page to set an image. */
|
|
12261
12301
|
sampleLabel: {
|
|
12262
12302
|
type: String,
|
|
12263
12303
|
default: ""
|
|
12264
12304
|
},
|
|
12305
|
+
/** Show the model tools before their models load; using one emits `want` so the page loads it. */
|
|
12265
12306
|
demand: {
|
|
12266
12307
|
type: Boolean,
|
|
12267
12308
|
default: false
|
|
@@ -12299,7 +12340,9 @@ ${n}` : n;
|
|
|
12299
12340
|
/** Vue component for the tool rail of a mask studio. */
|
|
12300
12341
|
const MaskTools = /* @__PURE__ */ defineComponent({
|
|
12301
12342
|
name: "MaskTools",
|
|
12302
|
-
props: {
|
|
12343
|
+
props: {
|
|
12344
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12345
|
+
studio: {
|
|
12303
12346
|
type: Object,
|
|
12304
12347
|
required: true
|
|
12305
12348
|
} },
|
|
@@ -12308,7 +12351,9 @@ ${n}` : n;
|
|
|
12308
12351
|
/** Vue component for the undo, redo and zoom row of a mask studio. */
|
|
12309
12352
|
const MaskVerbs = /* @__PURE__ */ defineComponent({
|
|
12310
12353
|
name: "MaskVerbs",
|
|
12311
|
-
props: {
|
|
12354
|
+
props: {
|
|
12355
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12356
|
+
studio: {
|
|
12312
12357
|
type: Object,
|
|
12313
12358
|
required: true
|
|
12314
12359
|
} },
|
|
@@ -12318,14 +12363,17 @@ ${n}` : n;
|
|
|
12318
12363
|
const MaskRack = /* @__PURE__ */ defineComponent({
|
|
12319
12364
|
name: "MaskRack",
|
|
12320
12365
|
props: {
|
|
12366
|
+
/** The studio from mountMaskStudio, or the one MaskStudio emits as `studio`. */
|
|
12321
12367
|
studio: {
|
|
12322
12368
|
type: Object,
|
|
12323
12369
|
required: true
|
|
12324
12370
|
},
|
|
12371
|
+
/** Which panel: the found objects, the mask tools, saved masks or the exports. */
|
|
12325
12372
|
part: {
|
|
12326
12373
|
type: String,
|
|
12327
12374
|
default: "found"
|
|
12328
12375
|
},
|
|
12376
|
+
/** The exported files' name, without extension. */
|
|
12329
12377
|
name: {
|
|
12330
12378
|
type: String,
|
|
12331
12379
|
default: "mask"
|
|
@@ -12337,10 +12385,12 @@ ${n}` : n;
|
|
|
12337
12385
|
const ModelJobs = /* @__PURE__ */ defineComponent({
|
|
12338
12386
|
name: "ModelJobs",
|
|
12339
12387
|
props: {
|
|
12388
|
+
/** The rack made with useJobsPick: one picker per job, presets and load all. */
|
|
12340
12389
|
jobs: {
|
|
12341
12390
|
type: Object,
|
|
12342
12391
|
required: true
|
|
12343
12392
|
},
|
|
12393
|
+
/** Draw the pink load all. Off on a gate, whose own button is the pink action. */
|
|
12344
12394
|
go: {
|
|
12345
12395
|
type: Boolean,
|
|
12346
12396
|
default: true
|
|
@@ -12351,7 +12401,9 @@ ${n}` : n;
|
|
|
12351
12401
|
/** Vue component for the file list of a transcribe queue. */
|
|
12352
12402
|
const TranscribeQueue = /* @__PURE__ */ defineComponent({
|
|
12353
12403
|
name: "TranscribeQueue",
|
|
12354
|
-
props: {
|
|
12404
|
+
props: {
|
|
12405
|
+
/** The queue from transcribeQueue: files, their transcripts, edits and undo. */
|
|
12406
|
+
queue: {
|
|
12355
12407
|
type: Object,
|
|
12356
12408
|
required: true
|
|
12357
12409
|
} },
|
|
@@ -12360,7 +12412,9 @@ ${n}` : n;
|
|
|
12360
12412
|
/** Vue component that shows a recall trace as a table. */
|
|
12361
12413
|
const MemoryInspector = /* @__PURE__ */ defineComponent({
|
|
12362
12414
|
name: "MemoryInspector",
|
|
12363
|
-
props: {
|
|
12415
|
+
props: {
|
|
12416
|
+
/** The last recall from @hackbuild/memory: its query, mode, hits and the trace of each memory scored. */
|
|
12417
|
+
recall: {
|
|
12364
12418
|
type: Object,
|
|
12365
12419
|
default: null
|
|
12366
12420
|
} },
|
|
@@ -12380,10 +12434,12 @@ ${n}` : n;
|
|
|
12380
12434
|
const ChatList = /* @__PURE__ */ defineComponent({
|
|
12381
12435
|
name: "ChatList",
|
|
12382
12436
|
props: {
|
|
12437
|
+
/** The chats, from chatList: each a thread, one of them open. */
|
|
12383
12438
|
list: {
|
|
12384
12439
|
type: Object,
|
|
12385
12440
|
required: true
|
|
12386
12441
|
},
|
|
12442
|
+
/** The rail's accessible name. */
|
|
12387
12443
|
label: {
|
|
12388
12444
|
type: String,
|
|
12389
12445
|
default: "chats"
|
|
@@ -12395,14 +12451,17 @@ ${n}` : n;
|
|
|
12395
12451
|
const ContextMeter = /* @__PURE__ */ defineComponent({
|
|
12396
12452
|
name: "ContextMeter",
|
|
12397
12453
|
props: {
|
|
12454
|
+
/** The thread whose next request is measured. */
|
|
12398
12455
|
thread: {
|
|
12399
12456
|
type: Object,
|
|
12400
12457
|
required: true
|
|
12401
12458
|
},
|
|
12459
|
+
/** The model's context window in tokens. */
|
|
12402
12460
|
budget: {
|
|
12403
12461
|
type: Number,
|
|
12404
12462
|
default: 4096
|
|
12405
12463
|
},
|
|
12464
|
+
/** The system prompt that rides with every request. */
|
|
12406
12465
|
system: {
|
|
12407
12466
|
type: String,
|
|
12408
12467
|
default: ""
|
|
@@ -12420,14 +12479,17 @@ ${n}` : n;
|
|
|
12420
12479
|
const FrameView = /* @__PURE__ */ defineComponent({
|
|
12421
12480
|
name: "FrameView",
|
|
12422
12481
|
props: {
|
|
12482
|
+
/** The picture: a URL, an image, a live video or a canvas. */
|
|
12423
12483
|
source: {
|
|
12424
12484
|
type: [String, Object],
|
|
12425
12485
|
default: null
|
|
12426
12486
|
},
|
|
12487
|
+
/** What to draw on it, in image pixels: boxes, landmarks, a caption and a corner tag. */
|
|
12427
12488
|
results: {
|
|
12428
12489
|
type: Object,
|
|
12429
12490
|
default: () => ({})
|
|
12430
12491
|
},
|
|
12492
|
+
/** Flip it left to right, as a front camera reads. */
|
|
12431
12493
|
mirror: {
|
|
12432
12494
|
type: Boolean,
|
|
12433
12495
|
default: false
|
|
@@ -12455,7 +12517,9 @@ ${n}` : n;
|
|
|
12455
12517
|
});
|
|
12456
12518
|
exports.CameraFeed = /* @__PURE__ */ defineComponent({
|
|
12457
12519
|
name: "CameraFeed",
|
|
12458
|
-
props: {
|
|
12520
|
+
props: {
|
|
12521
|
+
/** How many times a second the video goes out as `frame` while live. */
|
|
12522
|
+
fps: {
|
|
12459
12523
|
type: Number,
|
|
12460
12524
|
default: 4
|
|
12461
12525
|
} },
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackbuild/ai-views",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
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.2",
|
|
50
50
|
"@hackbuild/memory": "0.1.4",
|
|
51
51
|
"@hackbuild/models": "0.2.3",
|
|
52
52
|
"@hackbuild/speak": "0.1.4",
|