dsh-plugin-inspiration-workbench 0.2.0 → 0.3.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.2.0",
3
+ "version": "0.3.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.",
@@ -146,6 +146,11 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
146
146
  canvas.setAttribute('aria-label', t('a11y.canvas'));
147
147
  const world = el('div', 'iwb-world');
148
148
  canvas.appendChild(world);
149
+ const SVG_NS = 'http://www.w3.org/2000/svg';
150
+ const linkLayer = document.createElementNS(SVG_NS, 'svg');
151
+ linkLayer.setAttribute('class', 'iwb-links');
152
+ linkLayer.setAttribute('aria-hidden', 'true');
153
+ world.appendChild(linkLayer);
149
154
 
150
155
  const emptyState = el(
151
156
  'div',
@@ -185,7 +190,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
185
190
  tools.closeRefPicker();
186
191
  },
187
192
  });
188
- const arrangeMenu = createArrangeMenu({ t, state, canvas, fitView, saveSoon, toast, defaultSize: { w: DEFAULT_W, h: DEFAULT_H }, gap: GAP, anchor: btnArrange });
193
+ const arrangeMenu = createArrangeMenu({ t, state, canvas, fitView, saveSoon, toast, defaultSize: { w: DEFAULT_W, h: DEFAULT_H }, gap: GAP, anchor: btnArrange, afterArrange: () => schedulePipelines() });
189
194
  const workspaceMenu = createWorkspaceMenu({
190
195
  t,
191
196
  adapter,
@@ -346,6 +351,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
346
351
  function layoutStack(stack) {
347
352
  const cards = stackCards(stack);
348
353
  if (!cards.length) return;
354
+ schedulePipelines();
349
355
  state.zTop += cards.length + 1;
350
356
  const base = state.zTop;
351
357
  const inStack = cards.length > 1;
@@ -498,7 +504,6 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
498
504
  '<span class="iwb-stack-badge" hidden></span>' +
499
505
  '<span class="iwb-pipe-badge" hidden></span>' +
500
506
  '<span class="iwb-actions">' +
501
- '<button type="button" data-act="pipe" title="' + t('pipe.title') + '" aria-label="' + t('pipe.title') + '">' + icon('flow') + '</button>' +
502
507
  '<button type="button" data-act="outline" title="' + t('card.outline') + '" aria-label="' + t('card.outline') + '">' + icon('list') + '</button>' +
503
508
  '<button type="button" data-act="search" title="' + t('card.search') + '" aria-label="' + t('card.search') + '">' + icon('search') + '</button>' +
504
509
  '<button type="button" data-act="more" class="iwb-act-more" title="' + t('card.more') + '" aria-label="' + t('card.more') + '">' + icon('more') + '</button>' +
@@ -567,6 +572,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
567
572
  node.querySelector('[data-act="outline"]')?.remove();
568
573
  node.querySelector('[data-act="pipe"]')?.remove();
569
574
  node.querySelector('.iwb-pipe-badge')?.remove();
575
+
570
576
  node.querySelector('.iwb-search')?.remove();
571
577
  noteBody(card);
572
578
  bindCard(card);
@@ -618,6 +624,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
618
624
  node.dataset.sessionId = sessionId;
619
625
  card.el = node;
620
626
  world.appendChild(node);
627
+ node.appendChild(el('span', 'iwb-port'));
621
628
  node.querySelector('.iwb-card-title').textContent = card.title;
622
629
  const bodyRegion = node.querySelector('.iwb-body');
623
630
  bodyRegion.tabIndex = 0;
@@ -625,12 +632,14 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
625
632
  bodyRegion.setAttribute('aria-label', t('a11y.body'));
626
633
 
627
634
  bindCard(card);
635
+ bindPort(card);
628
636
  for (const [boardKey, value] of expandedTurns) {
629
637
  if (!boardKey.startsWith(sessionId + ':')) continue;
630
638
  card.toolOpen.set('turn:' + boardKey.slice(sessionId.length + 1), value);
631
639
  }
632
640
  renderFoot(card);
633
641
  renderPipeBadge(card);
642
+ schedulePipelines();
634
643
  state.cards.push(card);
635
644
  updateCounts();
636
645
  updateEmptyState();
@@ -1307,6 +1316,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1307
1316
  });
1308
1317
  saveSoon();
1309
1318
  void fitView();
1319
+ schedulePipelines();
1310
1320
  }
1311
1321
 
1312
1322
  function exitKanban() {
@@ -1323,6 +1333,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1323
1333
  state.board.saved.clear();
1324
1334
  saveSoon();
1325
1335
  void fitView();
1336
+ schedulePipelines();
1326
1337
  btnBoard.classList.remove('iwb-btn-active');
1327
1338
  }
1328
1339
 
@@ -1397,6 +1408,108 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1397
1408
  return state.cards.find((card) => card.sessionId === sessionId) || null;
1398
1409
  }
1399
1410
 
1411
+ function portAnchor(card) {
1412
+ return { x: card.x + card.w, y: card.y + 30 };
1413
+ }
1414
+
1415
+ function targetAnchor(card) {
1416
+ return { x: card.x, y: card.y + 30 };
1417
+ }
1418
+
1419
+ function linkPath(from, to) {
1420
+ const dx = Math.max(40, Math.abs(to.x - from.x) * 0.45);
1421
+ return 'M ' + from.x + ' ' + from.y + ' C ' + (from.x + dx) + ' ' + from.y + ', ' + (to.x - dx) + ' ' + to.y + ', ' + to.x + ' ' + to.y;
1422
+ }
1423
+
1424
+ /** Draw one curve per configured pipeline, plus a fat invisible hit area. */
1425
+ function renderPipelines() {
1426
+ while (linkLayer.firstChild) linkLayer.removeChild(linkLayer.firstChild);
1427
+ 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);
1443
+ }
1444
+ }
1445
+
1446
+ let pipelineFrame = 0;
1447
+ function schedulePipelines() {
1448
+ if (pipelineFrame) return;
1449
+ pipelineFrame = requestAnimationFrame(() => {
1450
+ pipelineFrame = 0;
1451
+ renderPipelines();
1452
+ });
1453
+ }
1454
+
1455
+ /** Drag from a card's port to another card to wire a pipeline. */
1456
+ function bindPort(card) {
1457
+ const port = card.el.querySelector('.iwb-port');
1458
+ if (!port) return;
1459
+ port.setAttribute('title', t('pipe.port'));
1460
+ port.setAttribute('aria-label', t('pipe.port'));
1461
+ port.addEventListener('pointerdown', (event) => {
1462
+ event.preventDefault();
1463
+ event.stopPropagation();
1464
+ const canvasRect = canvas.getBoundingClientRect();
1465
+ const point = (clientX, clientY) => ({
1466
+ x: (clientX - canvasRect.left - state.pan.x) / state.zoom,
1467
+ y: (clientY - canvasRect.top - state.pan.y) / state.zoom,
1468
+ });
1469
+ const temp = document.createElementNS(SVG_NS, 'path');
1470
+ temp.setAttribute('class', 'iwb-link-temp');
1471
+ linkLayer.appendChild(temp);
1472
+ let hovered = null;
1473
+ const draw = (clientX, clientY) => {
1474
+ temp.setAttribute('d', linkPath(portAnchor(card), point(clientX, clientY)));
1475
+ };
1476
+ draw(event.clientX, event.clientY);
1477
+ port.setPointerCapture?.(event.pointerId);
1478
+
1479
+ const onMove = (moveEvent) => {
1480
+ draw(moveEvent.clientX, moveEvent.clientY);
1481
+ const under = document.elementFromPoint(moveEvent.clientX, moveEvent.clientY);
1482
+ const candidate = under?.closest?.('.iwb-card');
1483
+ const targetCard = candidate ? state.cards.find((entry) => entry.el === candidate) : null;
1484
+ if (hovered && hovered !== targetCard) hovered.el.classList.remove('iwb-link-target');
1485
+ hovered = targetCard && targetCard !== card && targetCard.sessionId ? targetCard : null;
1486
+ if (hovered) hovered.el.classList.add('iwb-link-target');
1487
+ };
1488
+ const finish = (upEvent) => {
1489
+ port.releasePointerCapture?.(event.pointerId);
1490
+ port.removeEventListener('pointermove', onMove);
1491
+ port.removeEventListener('pointerup', finish);
1492
+ port.removeEventListener('pointercancel', cancel);
1493
+ temp.remove();
1494
+ if (hovered) {
1495
+ hovered.el.classList.remove('iwb-link-target');
1496
+ card.pipeline = { targetSessionId: hovered.sessionId, mode: card.pipeline?.mode || 'send' };
1497
+ renderPipeBadge(card);
1498
+ schedulePipelines();
1499
+ saveSoon();
1500
+ toast(t('pipe.created').replace('{name}', hovered.title || t('untitled')));
1501
+ } else if (upEvent) {
1502
+ toast(t('pipe.needTarget'));
1503
+ }
1504
+ hovered = null;
1505
+ };
1506
+ const cancel = () => finish(null);
1507
+ port.addEventListener('pointermove', onMove);
1508
+ port.addEventListener('pointerup', finish);
1509
+ port.addEventListener('pointercancel', cancel);
1510
+ });
1511
+ }
1512
+
1400
1513
  function renderPipeBadge(card) {
1401
1514
  const badge = card.el?.querySelector('.iwb-pipe-badge');
1402
1515
  if (!badge) return;
@@ -1498,78 +1611,69 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1498
1611
  target.pipeDepth = depth;
1499
1612
  }
1500
1613
 
1614
+ /** Click a pipeline curve: switch its delivery mode or remove it. */
1501
1615
  function openPipeMenu(card, anchor) {
1502
1616
  if (pipePop) {
1503
1617
  closePipeMenu();
1504
1618
  return;
1505
1619
  }
1506
- const targets = state.cards.filter((other) => other !== card && other.sessionId && other.kind !== 'note');
1507
- const pop = el('div', 'iwb-popover iwb-pipe');
1620
+ const target = sessionCardOf(card.pipeline?.targetSessionId);
1621
+ if (!target) return;
1622
+ const pop = el('div', 'iwb-popover iwb-link-menu');
1508
1623
  pop.setAttribute('role', 'dialog');
1509
1624
  pop.setAttribute('aria-label', t('pipe.title'));
1510
1625
  const head = el('div', 'iwb-popover-head');
1511
1626
  head.textContent = t('pipe.title');
1512
- pop.appendChild(head);
1627
+ const status = el('div', 'iwb-popover-note');
1628
+ status.textContent = t('pipe.linked').replace('{name}', target.title || t('untitled'));
1629
+ pop.append(head, status);
1513
1630
 
1514
- const current = card.pipeline?.targetSessionId;
1515
- if (!targets.length) {
1516
- const note = el('div', 'iwb-popover-note');
1517
- note.textContent = t('pipe.none');
1518
- pop.appendChild(note);
1519
- }
1520
- const addRow = (label, description, onPick, isCurrent) => {
1521
- const row = el('button', 'iwb-model-row' + (isCurrent ? ' current' : ''));
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' : ''));
1522
1638
  row.type = 'button';
1523
- row.innerHTML = '<span class="iwb-model-main"><span class="iwb-model-name"></span><span class="iwb-model-desc"></span></span>' + (isCurrent ? '<span class="iwb-check">✓</span>' : '');
1524
- row.querySelector('.iwb-model-name').textContent = label;
1525
- row.querySelector('.iwb-model-desc').textContent = description;
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;
1526
1642
  row.addEventListener('click', (event) => {
1527
1643
  event.stopPropagation();
1644
+ card.pipeline = { ...card.pipeline, mode: option.id };
1645
+ renderPipeBadge(card);
1646
+ schedulePipelines();
1647
+ saveSoon();
1528
1648
  closePipeMenu();
1529
- onPick();
1649
+ toast(option.id === 'draft' ? t('pipe.modeDraft') : t('pipe.modeSend'));
1530
1650
  });
1531
1651
  pop.appendChild(row);
1532
- };
1533
-
1534
- for (const target of targets) {
1535
- addRow(
1536
- target.title || t('untitled'),
1537
- target.workspace || t('workspace.none'),
1538
- () => {
1539
- card.pipeline = { targetSessionId: target.sessionId, mode: card.pipeline?.mode || 'send' };
1540
- renderPipeBadge(card);
1541
- saveSoon();
1542
- toast(t('pipe.linked').replace('{name}', target.title || t('untitled')));
1543
- },
1544
- current === target.sessionId
1545
- );
1546
- }
1547
- if (card.pipeline?.targetSessionId) {
1548
- addRow(
1549
- card.pipeline.mode === 'draft' ? t('pipe.send') : t('pipe.draft'),
1550
- card.pipeline.mode === 'draft' ? t('pipe.modeDraftHint') : t('pipe.modeSendHint'),
1551
- () => {
1552
- card.pipeline = { ...card.pipeline, mode: card.pipeline.mode === 'draft' ? 'send' : 'draft' };
1553
- saveSoon();
1554
- toast(card.pipeline.mode === 'draft' ? t('pipe.draft') : t('pipe.send'));
1555
- },
1556
- false
1557
- );
1558
- addRow(t('pipe.off'), '', () => {
1559
- card.pipeline = null;
1560
- renderPipeBadge(card);
1561
- saveSoon();
1562
- }, false);
1563
1652
  }
1564
1653
 
1654
+ const remove = el('button', 'iwb-model-row iwb-link-remove');
1655
+ remove.type = 'button';
1656
+ remove.innerHTML = '<span class="iwb-model-main"><span class="iwb-model-name"></span></span>';
1657
+ remove.querySelector('.iwb-model-name').textContent = t('pipe.remove');
1658
+ remove.addEventListener('click', (event) => {
1659
+ event.stopPropagation();
1660
+ card.pipeline = null;
1661
+ renderPipeBadge(card);
1662
+ schedulePipelines();
1663
+ saveSoon();
1664
+ closePipeMenu();
1665
+ toast(t('pipe.removed'));
1666
+ });
1667
+ pop.appendChild(remove);
1668
+
1565
1669
  const rect = anchor.getBoundingClientRect();
1566
- pop.style.left = Math.round(Math.max(8, Math.min(rect.left - 80, window.innerWidth - 280))) + 'px';
1567
- pop.style.top = Math.round(rect.bottom + 6) + 'px';
1670
+ pop.style.left = Math.round(Math.max(8, Math.min(rect.left + rect.width / 2 - 110, window.innerWidth - 240))) + 'px';
1671
+ pop.style.top = Math.round(rect.top + rect.height + 8) + 'px';
1568
1672
  document.body.appendChild(pop);
1569
1673
  pipePop = pop;
1570
1674
  const measured = pop.getBoundingClientRect();
1571
1675
  if (measured.bottom > window.innerHeight - 8) {
1572
- pop.style.top = Math.max(8, Math.round(rect.top - measured.height - 6)) + 'px';
1676
+ pop.style.top = Math.max(8, Math.round(rect.top - measured.height - 8)) + 'px';
1573
1677
  }
1574
1678
  }
1575
1679
 
@@ -1594,6 +1698,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1594
1698
  /* the session scope may already be gone */
1595
1699
  }
1596
1700
  state.cards = state.cards.filter((c) => c !== card);
1701
+ schedulePipelines();
1597
1702
  if (state.selected.delete(card.id)) renderBatchBar();
1598
1703
  if (state.focusedId === card.id) {
1599
1704
  state.focusedId = null;
@@ -2298,6 +2403,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
2298
2403
  node.style.left = nx + 'px';
2299
2404
  node.style.top = ny + 'px';
2300
2405
  }
2406
+ schedulePipelines();
2301
2407
  };
2302
2408
  const up = () => {
2303
2409
  interactionActive = false;
@@ -2456,6 +2562,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
2456
2562
  updateEmptyState();
2457
2563
  syncApprovalSessions();
2458
2564
  updateTodoBar();
2565
+ schedulePipelines();
2459
2566
  // The Host copy wins when it is newer (other window, other device, or a
2460
2567
  // previous browser session whose site data was cleared). Drop the restore's
2461
2568
  // pending write first: it must not fence off the initial remote read.
@@ -1,5 +1,10 @@
1
1
  const ICONS = {
2
2
  plus: '<path d="M12 5v14M5 12h14"/>',
3
+ flow: '<path d="M4 7h9l-2-2"/><path d="M13 7l-2 2"/><circle cx="18" cy="7" r="2.4"/><path d="M4 17h9l-2-2"/><path d="M13 17l-2 2"/><circle cx="18" cy="17" r="2.4"/>',
4
+ more: '<circle cx="5" cy="12" r="1.7"/><circle cx="12" cy="12" r="1.7"/><circle cx="19" cy="12" r="1.7"/>',
5
+ canvas: '<rect x="3" y="7" width="14" height="14" rx="2"/><path d="M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2"/>',
6
+ quote: '<path d="M7 7h5v5a4 4 0 0 1-4 4H7"/><path d="M15 7h5v5a4 4 0 0 1-4 4h-1"/>',
7
+ board: '<rect x="3" y="4" width="5.5" height="16" rx="1.4"/><rect x="9.5" y="4" width="5.5" height="11" rx="1.4"/><rect x="16" y="4" width="5" height="7" rx="1.4"/>',
3
8
  arrange:
4
9
  '<rect x="3" y="3" width="7" height="7" rx="1.6"/><rect x="14" y="3" width="7" height="7" rx="1.6"/><rect x="3" y="14" width="7" height="7" rx="1.6"/><rect x="14" y="14" width="7" height="7" rx="1.6"/>',
5
10
  fit: '<path d="M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3"/>',
@@ -125,6 +125,15 @@ const zh = {
125
125
  'pipe.linked': '流水线已指向「{name}」',
126
126
  'pipe.modeSendHint': '当前:完成后自动发送',
127
127
  'pipe.modeDraftHint': '当前:只填入草稿',
128
+ 'pipe.port': '拖这条线到另一张卡,建立流水线',
129
+ 'pipe.created': '流水线已连到「{name}」',
130
+ 'pipe.needTarget': '拖到另一张会话卡上才算连线',
131
+ 'pipe.remove': '删除这条流水线',
132
+ 'pipe.removed': '流水线已删除',
133
+ 'pipe.sendHint': '完成后自动把结果发过去',
134
+ 'pipe.draftHint': '只填进下游输入框,等人确认',
135
+ 'pipe.modeSend': '已切到:自动发送',
136
+ 'pipe.modeDraft': '已切到:只填草稿',
128
137
  'pipe.title': '流水线:完成后把结果送到下游卡',
129
138
  'pipe.to': '下游卡片',
130
139
  'pipe.send': '自动发送到下游',
@@ -402,6 +411,15 @@ const en = {
402
411
  'pipe.linked': 'Pipeline points at “{name}”',
403
412
  'pipe.modeSendHint': 'Currently: auto-send on completion',
404
413
  'pipe.modeDraftHint': 'Currently: draft only',
414
+ 'pipe.port': 'Drag this line onto another card to wire a pipeline',
415
+ 'pipe.created': 'Pipeline wired to “{name}”',
416
+ 'pipe.needTarget': 'Drop it on another session card to connect',
417
+ 'pipe.remove': 'Remove this pipeline',
418
+ 'pipe.removed': 'Pipeline removed',
419
+ 'pipe.sendHint': 'Send the result downstream when the turn finishes',
420
+ 'pipe.draftHint': 'Only fill the downstream composer',
421
+ 'pipe.modeSend': 'Mode: auto-send',
422
+ 'pipe.modeDraft': 'Mode: draft only',
405
423
  'pipe.title': 'Pipeline: forward this card\'s result downstream',
406
424
  'pipe.to': 'Downstream card',
407
425
  'pipe.send': 'Auto-send downstream',
@@ -213,6 +213,7 @@ export function createArrangeMenu(deps) {
213
213
  defaultSize,
214
214
  gap,
215
215
  anchor,
216
+ afterArrange,
216
217
  } = deps;
217
218
  const el = makeEl;
218
219
  const DEFAULT_W = defaultSize.w;
@@ -275,6 +276,7 @@ export function createArrangeMenu(deps) {
275
276
  }
276
277
  saveSoon();
277
278
  void fitView();
279
+ afterArrange?.();
278
280
  toast(t('arrange.done'));
279
281
  }
280
282
 
@@ -202,7 +202,7 @@
202
202
  font-size: 10px; line-height: 15px; padding: 0 4px; flex: 0 0 auto; color: var(--dsw-alias-label-secondary);
203
203
  background: var(--dsw-alias-bg-layer-2); border: .5px solid var(--dsw-alias-border-l2); border-radius: 5px;
204
204
  }
205
- .iwb-actions { display: flex; gap: 0; flex: 0 0 auto; opacity: .62; transition: opacity .12s; }
205
+ .iwb-actions { display: flex; gap: 0; flex: 0 0 auto; opacity: .92; transition: opacity .12s; }
206
206
  .iwb-card:hover .iwb-actions,
207
207
  .iwb-card:focus-within .iwb-actions,
208
208
  .iwb-card.iwb-focus .iwb-actions { opacity: 1; }
@@ -212,10 +212,11 @@
212
212
  .iwb-more .iwb-model-row { gap: 8px; }
213
213
  .iwb-more-ico { display: inline-flex; color: var(--dsw-alias-label-tertiary); }
214
214
  .iwb-actions button {
215
- width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
216
- color: var(--dsw-alias-label-tertiary); background: none; border: 0; cursor: pointer;
215
+ width: 23px; height: 23px; border-radius: 6px; display: grid; place-items: center;
216
+ color: var(--dsw-alias-label-secondary); background: none; border: 0; cursor: pointer;
217
217
  }
218
218
  .iwb-actions button:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
219
+ .iwb-actions button:focus-visible { outline: 2px solid var(--dsw-alias-label-deep-diving); outline-offset: -1px; }
219
220
 
220
221
  .iwb-body {
221
222
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 12px 4px;
@@ -454,6 +455,33 @@
454
455
  }
455
456
  .iwb-msg-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
456
457
 
458
+ /* ── pipeline edges ───────────────────────────────────────────────── */
459
+ .iwb-links {
460
+ position: absolute; left: 0; top: 0; width: 1px; height: 1px;
461
+ overflow: visible; pointer-events: none; z-index: 1;
462
+ }
463
+ .iwb-links path.iwb-link {
464
+ fill: none; stroke: var(--dsw-alias-label-deep-diving); stroke-width: 1.6;
465
+ opacity: .55; pointer-events: stroke; cursor: pointer;
466
+ }
467
+ .iwb-links path.iwb-link:hover { opacity: .95; stroke-width: 2; }
468
+ .iwb-links path.iwb-link-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
469
+ .iwb-links path.iwb-link-temp { fill: none; stroke: var(--dsw-alias-label-deep-diving); stroke-width: 2; stroke-dasharray: 5 4; opacity: .9; }
470
+ .iwb-port {
471
+ position: absolute; right: -7px; top: 30px; width: 14px; height: 14px;
472
+ border-radius: 50%; border: 1.5px solid var(--dsw-alias-label-deep-diving);
473
+ background: var(--dsw-alias-bg-layer-1); cursor: crosshair;
474
+ opacity: .55; transition: opacity .12s, transform .12s; z-index: 3;
475
+ }
476
+ .iwb-card:hover .iwb-port, .iwb-card.iwb-focus .iwb-port, .iwb-port:hover { opacity: 1; }
477
+ .iwb-port::after {
478
+ content: "→"; position: absolute; inset: 0; display: grid; place-items: center;
479
+ font-size: 9px; line-height: 1; color: var(--dsw-alias-label-deep-diving);
480
+ }
481
+ .iwb-card.iwb-link-target { outline: 2px dashed var(--dsw-alias-label-deep-diving); outline-offset: 3px; }
482
+ .iwb-link-menu { min-width: 230px; }
483
+ .iwb-link-remove .iwb-model-name { color: var(--dsw-alias-state-error-primary); }
484
+
457
485
  /* ── pipeline ─────────────────────────────────────────────────────── */
458
486
  .iwb-pipe-badge {
459
487
  flex: 0 0 auto; font-size: 10px; padding: 1px 5px; border-radius: 5px;