dsh-plugin-inspiration-workbench 0.3.0 → 0.4.0

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": "dsh-plugin-inspiration-workbench",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Open many DeepSeek Harness sessions side by side as draggable, stackable cards on a free canvas.",
@@ -1408,6 +1408,47 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1408
1408
  return state.cards.find((card) => card.sessionId === sessionId) || null;
1409
1409
  }
1410
1410
 
1411
+ // Pipelines may fan out: a card keeps a list of targets, and a target can be
1412
+ // another session card or a note card (the note just collects the result).
1413
+ function pipeTargets(card) {
1414
+ const pipeline = card.pipeline;
1415
+ if (!pipeline) return [];
1416
+ if (Array.isArray(pipeline.targets)) {
1417
+ return pipeline.targets.filter((target) => target && (target.id || target.targetSessionId));
1418
+ }
1419
+ if (pipeline.targetSessionId) {
1420
+ return [{ kind: 'session', id: pipeline.targetSessionId, mode: pipeline.mode === 'draft' ? 'draft' : 'send' }];
1421
+ }
1422
+ return [];
1423
+ }
1424
+
1425
+ function setPipeTargets(card, targets) {
1426
+ card.pipeline = targets.length ? { targets } : null;
1427
+ }
1428
+
1429
+ function cardOfPipeTarget(target) {
1430
+ if (!target) return null;
1431
+ if (target.kind === 'note') return state.cards.find((entry) => entry.kind === 'note' && entry.id === target.id) || null;
1432
+ return sessionCardOf(target.id);
1433
+ }
1434
+
1435
+ function pipeTargetLabel(target) {
1436
+ const targetCard = cardOfPipeTarget(target);
1437
+ if (targetCard) return targetCard.title || t('untitled');
1438
+ return target?.id || '';
1439
+ }
1440
+
1441
+ function addPipeTarget(card, targetCard) {
1442
+ const kind = targetCard.kind === 'note' ? 'note' : 'session';
1443
+ const id = kind === 'note' ? targetCard.id : targetCard.sessionId;
1444
+ if (!id || targetCard === card) return false;
1445
+ const targets = pipeTargets(card).filter((target) => !(target.kind === kind && target.id === id));
1446
+ const expanded = targets.length !== pipeTargets(card).length;
1447
+ targets.push({ kind, id, mode: 'send' });
1448
+ setPipeTargets(card, targets);
1449
+ return !expanded;
1450
+ }
1451
+
1411
1452
  function portAnchor(card) {
1412
1453
  return { x: card.x + card.w, y: card.y + 30 };
1413
1454
  }
@@ -1421,25 +1462,27 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1421
1462
  return 'M ' + from.x + ' ' + from.y + ' C ' + (from.x + dx) + ' ' + from.y + ', ' + (to.x - dx) + ' ' + to.y + ', ' + to.x + ' ' + to.y;
1422
1463
  }
1423
1464
 
1424
- /** Draw one curve per configured pipeline, plus a fat invisible hit area. */
1465
+ /** Draw one curve per pipeline target, plus a fat invisible hit area each. */
1425
1466
  function renderPipelines() {
1426
1467
  while (linkLayer.firstChild) linkLayer.removeChild(linkLayer.firstChild);
1427
1468
  for (const card of state.cards) {
1428
- const target = card.pipeline?.targetSessionId ? sessionCardOf(card.pipeline.targetSessionId) : null;
1429
- if (!target || target === card) continue;
1430
- const d = linkPath(portAnchor(card), targetAnchor(target));
1431
- const hit = document.createElementNS(SVG_NS, 'path');
1432
- hit.setAttribute('d', d);
1433
- hit.setAttribute('class', 'iwb-link-hit');
1434
- hit.addEventListener('pointerdown', (event) => {
1435
- event.stopPropagation();
1436
- openPipeMenu(card, event.currentTarget);
1437
- });
1438
- const path = document.createElementNS(SVG_NS, 'path');
1439
- path.setAttribute('d', d);
1440
- path.setAttribute('class', 'iwb-link');
1441
- if (card.pipeline.mode === 'draft') path.setAttribute('stroke-dasharray', '4 4');
1442
- linkLayer.append(hit, path);
1469
+ for (const target of pipeTargets(card)) {
1470
+ const targetCard = cardOfPipeTarget(target);
1471
+ if (!targetCard || targetCard === card) continue;
1472
+ const d = linkPath(portAnchor(card), targetAnchor(targetCard));
1473
+ const hit = document.createElementNS(SVG_NS, 'path');
1474
+ hit.setAttribute('d', d);
1475
+ hit.setAttribute('class', 'iwb-link-hit');
1476
+ hit.addEventListener('pointerdown', (event) => {
1477
+ event.stopPropagation();
1478
+ openPipeMenu(card, target, event.currentTarget);
1479
+ });
1480
+ const path = document.createElementNS(SVG_NS, 'path');
1481
+ path.setAttribute('d', d);
1482
+ path.setAttribute('class', 'iwb-link');
1483
+ if (target.mode === 'draft') path.setAttribute('stroke-dasharray', '4 4');
1484
+ linkLayer.append(hit, path);
1485
+ }
1443
1486
  }
1444
1487
  }
1445
1488
 
@@ -1452,7 +1495,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1452
1495
  });
1453
1496
  }
1454
1497
 
1455
- /** Drag from a card's port to another card to wire a pipeline. */
1498
+ /** Drag from a card's port to another card (session or note) to wire it up. */
1456
1499
  function bindPort(card) {
1457
1500
  const port = card.el.querySelector('.iwb-port');
1458
1501
  if (!port) return;
@@ -1474,30 +1517,43 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1474
1517
  temp.setAttribute('d', linkPath(portAnchor(card), point(clientX, clientY)));
1475
1518
  };
1476
1519
  draw(event.clientX, event.clientY);
1477
- port.setPointerCapture?.(event.pointerId);
1520
+ try {
1521
+ port.setPointerCapture?.(event.pointerId);
1522
+ } catch {
1523
+ /* synthetic pointers (tests) have no active pointer id */
1524
+ }
1478
1525
 
1479
1526
  const onMove = (moveEvent) => {
1480
1527
  draw(moveEvent.clientX, moveEvent.clientY);
1481
1528
  const under = document.elementFromPoint(moveEvent.clientX, moveEvent.clientY);
1482
1529
  const candidate = under?.closest?.('.iwb-card');
1483
1530
  const targetCard = candidate ? state.cards.find((entry) => entry.el === candidate) : null;
1531
+ const usable = targetCard && targetCard !== card && (targetCard.sessionId || (targetCard.kind === 'note' && targetCard.id));
1484
1532
  if (hovered && hovered !== targetCard) hovered.el.classList.remove('iwb-link-target');
1485
- hovered = targetCard && targetCard !== card && targetCard.sessionId ? targetCard : null;
1533
+ hovered = usable ? targetCard : null;
1486
1534
  if (hovered) hovered.el.classList.add('iwb-link-target');
1487
1535
  };
1488
1536
  const finish = (upEvent) => {
1489
- port.releasePointerCapture?.(event.pointerId);
1537
+ try {
1538
+ port.releasePointerCapture?.(event.pointerId);
1539
+ } catch {
1540
+ /* already released */
1541
+ }
1490
1542
  port.removeEventListener('pointermove', onMove);
1491
1543
  port.removeEventListener('pointerup', finish);
1492
1544
  port.removeEventListener('pointercancel', cancel);
1493
1545
  temp.remove();
1494
1546
  if (hovered) {
1495
1547
  hovered.el.classList.remove('iwb-link-target');
1496
- card.pipeline = { targetSessionId: hovered.sessionId, mode: card.pipeline?.mode || 'send' };
1548
+ const created = addPipeTarget(card, hovered);
1497
1549
  renderPipeBadge(card);
1498
1550
  schedulePipelines();
1499
1551
  saveSoon();
1500
- toast(t('pipe.created').replace('{name}', hovered.title || t('untitled')));
1552
+ toast(
1553
+ created
1554
+ ? t('pipe.created').replace('{name}', hovered.title || t('untitled'))
1555
+ : t('pipe.already').replace('{name}', hovered.title || t('untitled'))
1556
+ );
1501
1557
  } else if (upEvent) {
1502
1558
  toast(t('pipe.needTarget'));
1503
1559
  }
@@ -1513,12 +1569,16 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1513
1569
  function renderPipeBadge(card) {
1514
1570
  const badge = card.el?.querySelector('.iwb-pipe-badge');
1515
1571
  if (!badge) return;
1516
- const target = card.pipeline?.targetSessionId ? sessionCardOf(card.pipeline.targetSessionId) : null;
1517
- badge.hidden = !target;
1518
- if (target) {
1519
- badge.textContent = t('pipe.active').replace('{name}', target.title || t('untitled'));
1520
- badge.title = card.pipeline.mode === 'draft' ? t('pipe.draft') : t('pipe.send');
1572
+ const targets = pipeTargets(card).filter((target) => cardOfPipeTarget(target));
1573
+ badge.hidden = !targets.length;
1574
+ if (!targets.length) return;
1575
+ if (targets.length === 1) {
1576
+ badge.textContent = t('pipe.active').replace('{name}', pipeTargetLabel(targets[0]));
1577
+ badge.title = targets[0].mode === 'draft' ? t('pipe.draft') : t('pipe.send');
1578
+ return;
1521
1579
  }
1580
+ badge.textContent = t('pipe.multi').replace('{n}', String(targets.length));
1581
+ badge.title = targets.map((target) => pipeTargetLabel(target)).join(' · ');
1522
1582
  }
1523
1583
 
1524
1584
  /** Last assistant message is what a downstream card normally wants. */
@@ -1577,92 +1637,127 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1577
1637
  }
1578
1638
 
1579
1639
  async function deliverPipeline(card) {
1580
- const pipeline = card.pipeline;
1581
- if (!pipeline?.targetSessionId) return;
1582
- const target = sessionCardOf(pipeline.targetSessionId);
1583
- if (!target) return;
1640
+ const targets = pipeTargets(card);
1641
+ if (!targets.length) return;
1584
1642
  const text = lastAssistantText(card);
1585
1643
  if (!text) return;
1586
1644
  const fingerprint = text.slice(0, 160);
1587
- if (card.pipedFingerprint === fingerprint) return;
1645
+ card.pipedFingerprints = card.pipedFingerprints || {};
1588
1646
  const depth = (card.pipeDepth || 0) + 1;
1589
1647
  if (depth > 3) {
1590
1648
  toast(t('pipe.tooLong'));
1591
1649
  return;
1592
1650
  }
1593
- card.pipedFingerprint = fingerprint;
1594
1651
 
1595
- if (pipeline.mode === 'draft') {
1596
- const field = target.el?.querySelector('.iwb-foot textarea');
1597
- if (!field) return;
1598
- field.value = field.value ? field.value.replace(/\s*$/, '\n\n') + text : text;
1599
- field.dispatchEvent(new Event('input', { bubbles: true }));
1600
- ensureVisible(target);
1601
- toast(t('pipe.drafted').replace('{name}', target.title || t('untitled')));
1602
- } else {
1652
+ for (const target of targets) {
1653
+ const key = target.kind + ':' + target.id;
1654
+ if (card.pipedFingerprints[key] === fingerprint) continue;
1655
+ const targetCard = cardOfPipeTarget(target);
1656
+
1657
+ // A note downstream just collects the text, whatever its mode says.
1658
+ if (target.kind === 'note') {
1659
+ if (!targetCard) continue;
1660
+ const area = targetCard.el?.querySelector('.iwb-note-input');
1661
+ if (!area) continue;
1662
+ area.value = area.value ? area.value.replace(/\s*$/, '\n\n') + text : text;
1663
+ area.dispatchEvent(new Event('input', { bubbles: true }));
1664
+ targetCard.pipeDepth = depth;
1665
+ card.pipedFingerprints[key] = fingerprint;
1666
+ ensureVisible(targetCard);
1667
+ toast(t('pipe.noted').replace('{name}', targetCard.title || t('untitled')));
1668
+ continue;
1669
+ }
1670
+
1671
+ if (target.mode === 'draft') {
1672
+ const field = targetCard?.el?.querySelector('.iwb-foot textarea');
1673
+ if (!field) continue;
1674
+ field.value = field.value ? field.value.replace(/\s*$/, '\n\n') + text : text;
1675
+ field.dispatchEvent(new Event('input', { bubbles: true }));
1676
+ ensureVisible(targetCard);
1677
+ targetCard.pipeDepth = depth;
1678
+ card.pipedFingerprints[key] = fingerprint;
1679
+ toast(t('pipe.drafted').replace('{name}', pipeTargetLabel(target)));
1680
+ continue;
1681
+ }
1682
+
1603
1683
  try {
1604
- await adapter.prompt(target.sessionId, text, 'queue');
1605
- toast(t('pipe.sent').replace('{name}', target.title || t('untitled')));
1684
+ await adapter.prompt(target.id, text, 'queue');
1685
+ card.pipedFingerprints[key] = fingerprint;
1686
+ if (targetCard) targetCard.pipeDepth = depth;
1687
+ toast(t('pipe.sent').replace('{name}', pipeTargetLabel(target)));
1606
1688
  } catch (error) {
1607
1689
  toast(t('pipe.failed').replace('{error}', error?.message || ''));
1608
- return;
1609
1690
  }
1610
1691
  }
1611
- target.pipeDepth = depth;
1612
1692
  }
1613
1693
 
1614
- /** Click a pipeline curve: switch its delivery mode or remove it. */
1615
- function openPipeMenu(card, anchor) {
1694
+ /** Click a pipeline curve: switch that edge's mode or remove it. */
1695
+ function openPipeMenu(card, target, anchor) {
1616
1696
  if (pipePop) {
1617
1697
  closePipeMenu();
1618
1698
  return;
1619
1699
  }
1620
- const target = sessionCardOf(card.pipeline?.targetSessionId);
1621
1700
  if (!target) return;
1701
+ const targetCard = cardOfPipeTarget(target);
1702
+ const label = pipeTargetLabel(target);
1703
+ const isNote = target.kind === 'note';
1622
1704
  const pop = el('div', 'iwb-popover iwb-link-menu');
1623
1705
  pop.setAttribute('role', 'dialog');
1624
1706
  pop.setAttribute('aria-label', t('pipe.title'));
1625
1707
  const head = el('div', 'iwb-popover-head');
1626
- head.textContent = t('pipe.title');
1708
+ head.textContent = isNote ? t('pipe.noteTarget') : t('pipe.title');
1627
1709
  const status = el('div', 'iwb-popover-note');
1628
- status.textContent = t('pipe.linked').replace('{name}', target.title || t('untitled'));
1710
+ status.textContent = t('pipe.linked').replace('{name}', label);
1629
1711
  pop.append(head, status);
1630
1712
 
1631
- const mode = card.pipeline.mode === 'draft' ? 'draft' : 'send';
1632
- const modes = [
1633
- { id: 'send', label: t('pipe.send'), hint: t('pipe.sendHint') },
1634
- { id: 'draft', label: t('pipe.draft'), hint: t('pipe.draftHint') },
1635
- ];
1636
- for (const option of modes) {
1637
- const row = el('button', 'iwb-model-row' + (mode === option.id ? ' current' : ''));
1638
- row.type = 'button';
1639
- row.innerHTML = '<span class="iwb-model-main"><span class="iwb-model-name"></span><span class="iwb-model-desc"></span></span>' + (mode === option.id ? '<span class="iwb-check">✓</span>' : '');
1640
- row.querySelector('.iwb-model-name').textContent = option.label;
1641
- row.querySelector('.iwb-model-desc').textContent = option.hint;
1642
- row.addEventListener('click', (event) => {
1643
- event.stopPropagation();
1644
- card.pipeline = { ...card.pipeline, mode: option.id };
1645
- renderPipeBadge(card);
1646
- schedulePipelines();
1647
- saveSoon();
1648
- closePipeMenu();
1649
- toast(option.id === 'draft' ? t('pipe.modeDraft') : t('pipe.modeSend'));
1650
- });
1651
- pop.appendChild(row);
1713
+ if (!isNote) {
1714
+ const mode = target.mode === 'draft' ? 'draft' : 'send';
1715
+ const modes = [
1716
+ { id: 'send', label: t('pipe.send'), hint: t('pipe.sendHint') },
1717
+ { id: 'draft', label: t('pipe.draft'), hint: t('pipe.draftHint') },
1718
+ ];
1719
+ for (const option of modes) {
1720
+ const row = el('button', 'iwb-model-row' + (mode === option.id ? ' current' : ''));
1721
+ row.type = 'button';
1722
+ row.innerHTML = '<span class="iwb-model-main"><span class="iwb-model-name"></span><span class="iwb-model-desc"></span></span>' + (mode === option.id ? '<span class="iwb-check">✓</span>' : '');
1723
+ row.querySelector('.iwb-model-name').textContent = option.label;
1724
+ row.querySelector('.iwb-model-desc').textContent = option.hint;
1725
+ row.addEventListener('click', (event) => {
1726
+ event.stopPropagation();
1727
+ const targets = pipeTargets(card).map((entry) =>
1728
+ entry.kind === target.kind && entry.id === target.id ? { ...entry, mode: option.id } : entry
1729
+ );
1730
+ setPipeTargets(card, targets);
1731
+ renderPipeBadge(card);
1732
+ schedulePipelines();
1733
+ saveSoon();
1734
+ closePipeMenu();
1735
+ toast(option.id === 'draft' ? t('pipe.modeDraft') : t('pipe.modeSend'));
1736
+ });
1737
+ pop.appendChild(row);
1738
+ }
1739
+ } else {
1740
+ const statusRow = el('div', 'iwb-popover-note');
1741
+ statusRow.textContent = t('pipe.noteHint');
1742
+ pop.appendChild(statusRow);
1652
1743
  }
1653
1744
 
1654
1745
  const remove = el('button', 'iwb-model-row iwb-link-remove');
1655
1746
  remove.type = 'button';
1656
1747
  remove.innerHTML = '<span class="iwb-model-main"><span class="iwb-model-name"></span></span>';
1657
- remove.querySelector('.iwb-model-name').textContent = t('pipe.remove');
1748
+ remove.querySelector('.iwb-model-name').textContent = isNote ? t('pipe.removeNote') : t('pipe.remove');
1658
1749
  remove.addEventListener('click', (event) => {
1659
1750
  event.stopPropagation();
1660
- card.pipeline = null;
1751
+ setPipeTargets(
1752
+ card,
1753
+ pipeTargets(card).filter((entry) => !(entry.kind === target.kind && entry.id === target.id))
1754
+ );
1661
1755
  renderPipeBadge(card);
1662
1756
  schedulePipelines();
1663
1757
  saveSoon();
1664
1758
  closePipeMenu();
1665
1759
  toast(t('pipe.removed'));
1760
+ if (targetCard) ensureVisible(targetCard);
1666
1761
  });
1667
1762
  pop.appendChild(remove);
1668
1763
 
@@ -1698,6 +1793,17 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1698
1793
  /* the session scope may already be gone */
1699
1794
  }
1700
1795
  state.cards = state.cards.filter((c) => c !== card);
1796
+ // Drop pipeline edges that pointed at the card we just closed.
1797
+ const goneId = card.kind === 'note' ? card.id : card.sessionId;
1798
+ const goneKind = card.kind === 'note' ? 'note' : 'session';
1799
+ for (const other of state.cards) {
1800
+ const targets = pipeTargets(other);
1801
+ const kept = targets.filter((target) => !(target.kind === goneKind && target.id === goneId));
1802
+ if (kept.length !== targets.length) {
1803
+ setPipeTargets(other, kept);
1804
+ renderPipeBadge(other);
1805
+ }
1806
+ }
1701
1807
  schedulePipelines();
1702
1808
  if (state.selected.delete(card.id)) renderBatchBar();
1703
1809
  if (state.focusedId === card.id) {
@@ -2542,7 +2648,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
2542
2648
  y: card.y,
2543
2649
  w: card.w,
2544
2650
  h: card.h,
2545
- pipeline: card.pipeline || null,
2651
+ pipeline: pipeTargets(card).length ? { targets: pipeTargets(card) } : null,
2546
2652
  });
2547
2653
  }
2548
2654
  for (const stack of saved.stacks || []) {
@@ -2582,13 +2688,14 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
2582
2688
  pan: state.pan,
2583
2689
  settings: { ...state.settings },
2584
2690
  cards: state.cards.map((card) => ({
2691
+ id: card.kind === 'note' ? card.id : undefined,
2585
2692
  sessionId: card.sessionId,
2586
2693
  title: card.title,
2587
2694
  workspace: card.workspace || '',
2588
2695
  kind: card.kind || 'session',
2589
2696
  note: card.note || '',
2590
2697
  pinned: Boolean(card.pinned),
2591
- pipeline: card.pipeline || null,
2698
+ pipeline: pipeTargets(card).length ? { targets: pipeTargets(card) } : null,
2592
2699
  x: card.x,
2593
2700
  y: card.y,
2594
2701
  w: card.w,
@@ -125,9 +125,15 @@ const zh = {
125
125
  'pipe.linked': '流水线已指向「{name}」',
126
126
  'pipe.modeSendHint': '当前:完成后自动发送',
127
127
  'pipe.modeDraftHint': '当前:只填入草稿',
128
+ 'pipe.already': '已经连过「{name}」了',
129
+ 'pipe.multi': '→ {n} 个下游',
130
+ 'pipe.noted': '结果已追加到便签「{name}」',
131
+ 'pipe.noteTarget': '流水线 → 便签',
132
+ 'pipe.noteHint': '下游是便签:跑完把结果追加进去,不发送',
133
+ 'pipe.removeNote': '删除这条便签流水线',
128
134
  'pipe.port': '拖这条线到另一张卡,建立流水线',
129
135
  'pipe.created': '流水线已连到「{name}」',
130
- 'pipe.needTarget': '拖到另一张会话卡上才算连线',
136
+ 'pipe.needTarget': '拖到另一张卡(会话卡或便签)上才算连线',
131
137
  'pipe.remove': '删除这条流水线',
132
138
  'pipe.removed': '流水线已删除',
133
139
  'pipe.sendHint': '完成后自动把结果发过去',
@@ -411,9 +417,15 @@ const en = {
411
417
  'pipe.linked': 'Pipeline points at “{name}”',
412
418
  'pipe.modeSendHint': 'Currently: auto-send on completion',
413
419
  'pipe.modeDraftHint': 'Currently: draft only',
420
+ 'pipe.already': '“{name}” is already connected',
421
+ 'pipe.multi': '→ {n} downstream',
422
+ 'pipe.noted': 'Result appended to note “{name}”',
423
+ 'pipe.noteTarget': 'Pipeline → note',
424
+ 'pipe.noteHint': 'Note downstream: the result is appended, never sent',
425
+ 'pipe.removeNote': 'Remove this note pipeline',
414
426
  'pipe.port': 'Drag this line onto another card to wire a pipeline',
415
427
  'pipe.created': 'Pipeline wired to “{name}”',
416
- 'pipe.needTarget': 'Drop it on another session card to connect',
428
+ 'pipe.needTarget': 'Drop it on another card (session or note) to connect',
417
429
  'pipe.remove': 'Remove this pipeline',
418
430
  'pipe.removed': 'Pipeline removed',
419
431
  'pipe.sendHint': 'Send the result downstream when the turn finishes',
@@ -479,6 +479,7 @@
479
479
  font-size: 9px; line-height: 1; color: var(--dsw-alias-label-deep-diving);
480
480
  }
481
481
  .iwb-card.iwb-link-target { outline: 2px dashed var(--dsw-alias-label-deep-diving); outline-offset: 3px; }
482
+ .iwb-card-note.iwb-link-target { outline-style: solid; }
482
483
  .iwb-link-menu { min-width: 230px; }
483
484
  .iwb-link-remove .iwb-model-name { color: var(--dsw-alias-state-error-primary); }
484
485