@hackbuild/ai-views 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dom.js CHANGED
@@ -51,7 +51,7 @@ export const ICON = {
51
51
  zoomIn: svg('<circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3M11 8v6M8 11h6"/>'),
52
52
  zoomOut: svg('<circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3M8 11h6"/>'),
53
53
  fit: svg('<path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"/>'),
54
- x: svg('<path d="M6 6l12 12M18 6 6 18"/>', 13),
54
+ x: svg('<path d="M6 6l12 12M18 6 6 18"/>', 14),
55
55
  copy: svg('<rect x="9" y="9" width="11" height="11"/><path d="M5 15V4h11"/>', 14),
56
56
  redoMsg: svg('<path d="M21 12a9 9 0 1 1-3-6.7L21 8"/><path d="M21 3v5h-5"/>', 14),
57
57
  point: svg('<circle cx="12" cy="12" r="3"/><path d="M12 2v5M12 17v5M2 12h5M17 12h5"/>', 18),
@@ -62,6 +62,6 @@ export const ICON = {
62
62
  camera: svg('<path d="M3 7h4l2-3h6l2 3h4v13H3z"/><circle cx="12" cy="13" r="4"/>'),
63
63
  menu: svg('<path d="M4 6h16M4 12h16M4 18h16"/>'),
64
64
  plus: svg('<path d="M12 5v14M5 12h14"/>', 14),
65
- pen: svg('<path d="M4 20h4L19 9l-4-4L4 16z"/>', 13),
66
- trash: svg('<path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/>', 13),
65
+ pen: svg('<path d="M4 20h4L19 9l-4-4L4 16z"/>', 14),
66
+ trash: svg('<path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/>', 14),
67
67
  };
@@ -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`, and the
6660
- * export's input and output names are inferred from its README and the
6661
- * SDXL description, not read from the graphs. `loadImagegen(hub, { id:
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 sdxl pipeline is written; the export's graph names and fp16 io are inferred and unchecked.",
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 inputs and outputs per the export's README (--force_fp16_inputs); timestep dtype and hidden state names inferred",
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\"/>", 13),
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\"/>", 13),
8188
- trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 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
  /**
@@ -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`, and the
6658
- * export's input and output names are inferred from its README and the
6659
- * SDXL description, not read from the graphs. `loadImagegen(hub, { id:
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 sdxl pipeline is written; the export's graph names and fp16 io are inferred and unchecked.",
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 inputs and outputs per the export's README (--force_fp16_inputs); timestep dtype and hidden state names inferred",
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\"/>", 13),
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\"/>", 13),
8186
- trash: svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 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 sdxl pipeline is written; the export's graph names and fp16 io are inferred and unchecked.",
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 inputs and outputs per the export's README (--force_fp16_inputs); timestep dtype and hidden state names inferred",
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 a = await run(() => s.textEncoder.run({ input_ids: new ort.Tensor("int32", padIds(ids), [1, 77]) }));
8138
- const b = await run(() => s.textEncoder2.run({ input_ids: new ort.Tensor("int32", padIds2(ids, io.pad2), [1, 77]) }));
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\"/>", 13), 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\"/>", 13), svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 13);
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";
@@ -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 sdxl pipeline is written; the export's graph names and fp16 io are inferred and unchecked.",
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 inputs and outputs per the export's README (--force_fp16_inputs); timestep dtype and hidden state names inferred",
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 a = await run(() => s.textEncoder.run({ input_ids: new ort.Tensor("int32", padIds(ids), [1, 77]) }));
8136
- const b = await run(() => s.textEncoder2.run({ input_ids: new ort.Tensor("int32", padIds2(ids, io.pad2), [1, 77]) }));
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\"/>", 13), 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\"/>", 13), svg("<path d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13\"/>", 13);
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";