@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.
@@ -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`, and the
8740
- * export's input and output names are inferred from its README and the
8741
- * SDXL description, not read from the graphs. `loadImagegen(hub, { id:
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 sdxl pipeline is written; the export's graph names and fp16 io are inferred and unchecked.",
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 inputs and outputs per the export's README (--force_fp16_inputs); timestep dtype and hidden state names inferred",
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\"/>", 13),
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\"/>", 13),
9957
- trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 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: { rack: {
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: { list: {
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: { studio: {
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: { studio: {
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: { queue: {
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: { recall: {
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: { fps: {
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
  } },