anentrypoint-design 0.0.94 → 0.0.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -57,10 +57,11 @@ export async function models(h0) {
57
57
  : h('div', { class: 'fd-list fd-list-compact' }, ...samplerEntries.map(([k, s]) => h('div', { key: k, class: 'fd-list-row', 'data-cat': s.available === false ? 'external' : 'kit' },
58
58
  h('span', { class: 'fd-list-code' }, s.available === false ? '✕' : '●'),
59
59
  h('div', { class: 'fd-list-main' }, h('div', { class: 'fd-list-title fd-mono' }, k), h('div', { class: 'fd-list-sub' }, JSON.stringify(s).slice(0, 120)))))) });
60
- const prefTile = Panel({ title: 'model preference (drag to reorder)', count: pref.length,
61
- right: h('button', { class: 'btn', onclick: ev => { ev.preventDefault(); pref.push({ provider: '', model: '' }); saveAndNav(pref); } }, '+ add'),
60
+ const addFromPicker = ev => { const v = ev.target.value; if (!v) return; const slash = v.indexOf('/'); const next = pref.slice(); next.push(slash > 0 ? { provider: v.slice(0, slash), model: v.slice(slash+1) } : { provider: v, model: '' }); saveAndNav(next); };
61
+ const prefTile = Panel({ title: 'model preference (drag to reorder · pick from /v1/models including queue/*)', count: pref.length,
62
+ right: h('span', {}, h('select', { class: 'fd-search', onchange: addFromPicker }, h('option', { value: '' }, '+ add from /v1/models'), ...v1Models.map(m => h('option', { key: m.id, value: m.id }, m.id))), ' ', h('button', { class: 'btn', onclick: ev => { ev.preventDefault(); pref.push({ provider: '', model: '' }); saveAndNav(pref); } }, '+ blank')),
62
63
  children: pref.length === 0
63
- ? h('span', { class: 'fd-muted' }, 'no preference — edit on config page or add a row above')
64
+ ? h('span', { class: 'fd-muted' }, 'no preference — pick from the dropdown above to build a priority chain')
64
65
  : h('div', { class: 'fd-list' }, ...pref.map((p, i) => h('div', {
65
66
  key: 'p'+i, class: 'fd-list-row', 'data-cat': 'kit', draggable: 'true',
66
67
  ondragstart: ev => onDragStart(i, ev), ondragover: onDragOver, ondrop: ev => onDrop(i, ev), style: 'cursor:move'