dsh-plugin-inspiration-workbench 0.8.0 → 0.9.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.8.0",
3
+ "version": "0.9.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.",
@@ -1476,6 +1476,17 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1476
1476
  return dy > 0 ? 'top' : 'bottom';
1477
1477
  }
1478
1478
 
1479
+ /** Small arrow head just outside the target edge, pointing into the card. */
1480
+ function arrowPath(point, side) {
1481
+ const normal = EDGE_NORMAL[side] || EDGE_NORMAL.left;
1482
+ const perp = { x: -normal.y, y: normal.x };
1483
+ const tip = { x: point.x - normal.x * 1, y: point.y - normal.y * 1 };
1484
+ const base = { x: point.x + normal.x * 7, y: point.y + normal.y * 7 };
1485
+ const left = { x: base.x + perp.x * 3.2, y: base.y + perp.y * 3.2 };
1486
+ const right = { x: base.x - perp.x * 3.2, y: base.y - perp.y * 3.2 };
1487
+ return 'M ' + tip.x + ' ' + tip.y + ' L ' + left.x + ' ' + left.y + ' L ' + right.x + ' ' + right.y + ' Z';
1488
+ }
1489
+
1479
1490
  function linkPath(from, to, fromSide, toSide) {
1480
1491
  const distance = Math.hypot(to.x - from.x, to.y - from.y);
1481
1492
  const bend = Math.max(36, Math.min(140, distance * 0.42));
@@ -1506,9 +1517,12 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
1506
1517
  });
1507
1518
  const path = document.createElementNS(SVG_NS, 'path');
1508
1519
  path.setAttribute('d', d);
1509
- path.setAttribute('class', 'iwb-link');
1520
+ path.setAttribute('class', 'iwb-link' + (card.running ? ' iwb-link-active' : ''));
1510
1521
  if (target.mode === 'draft') path.setAttribute('stroke-dasharray', '4 4');
1511
- linkLayer.append(hit, path);
1522
+ const arrow = document.createElementNS(SVG_NS, 'path');
1523
+ arrow.setAttribute('d', arrowPath(edgeAnchor(targetCard, toSide), toSide));
1524
+ arrow.setAttribute('class', 'iwb-link-arrow');
1525
+ linkLayer.append(hit, path, arrow);
1512
1526
  }
1513
1527
  }
1514
1528
  }
@@ -465,32 +465,62 @@
465
465
  overflow: visible; pointer-events: none; z-index: 1;
466
466
  }
467
467
  .iwb-links path.iwb-link {
468
- fill: none; stroke: var(--dsw-alias-label-deep-diving); stroke-width: 1.6;
469
- opacity: .55; pointer-events: stroke; cursor: pointer;
468
+ fill: none; stroke: var(--dsw-alias-label-deep-diving); stroke-width: 1.5;
469
+ stroke-linecap: round; opacity: .5; pointer-events: stroke; cursor: pointer;
470
+ transition: opacity .15s ease, stroke-width .15s ease;
470
471
  }
471
- .iwb-links path.iwb-link:hover { opacity: .95; stroke-width: 2; }
472
+ .iwb-links path.iwb-link:hover { opacity: .95; stroke-width: 2.2; }
472
473
  .iwb-links path.iwb-link-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
473
- .iwb-links path.iwb-link-temp { fill: none; stroke: var(--dsw-alias-label-deep-diving); stroke-width: 2; stroke-dasharray: 5 4; opacity: .9; }
474
- /* Connection handles: one at the middle of each edge, always visible. */
474
+ .iwb-links path.iwb-link-temp {
475
+ fill: none; stroke: var(--dsw-alias-label-deep-diving); stroke-width: 1.8;
476
+ stroke-dasharray: 3 5; stroke-linecap: round; opacity: .75;
477
+ animation: iwb-flow 1s linear infinite;
478
+ }
479
+ .iwb-links path.iwb-link-arrow {
480
+ fill: var(--dsw-alias-label-deep-diving); opacity: .45; pointer-events: none;
481
+ }
482
+ .iwb-links path.iwb-link.iwb-link-active {
483
+ stroke-width: 2; opacity: .8;
484
+ stroke-dasharray: 7 7; animation: iwb-flow 1.1s linear infinite;
485
+ }
486
+ @keyframes iwb-flow { to { stroke-dashoffset: -28; } }
487
+ /* Connection handles: a whisper by default, a crisp ring on card hover. */
475
488
  .iwb-port {
476
- position: absolute; width: 16px; height: 16px; border-radius: 50%;
477
- border: 2px solid var(--dsw-alias-label-deep-diving);
478
- background: var(--dsw-alias-bg-layer-1); cursor: crosshair;
479
- opacity: .62; transition: opacity .12s, transform .12s, background .12s; z-index: 3;
480
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-bg-layer-1) 70%, transparent);
481
- }
482
- .iwb-card:hover .iwb-port, .iwb-card.iwb-focus .iwb-port { opacity: .95; }
483
- .iwb-port:hover { opacity: 1; transform: scale(1.15); background: var(--dsw-alias-bg-layer-2); }
489
+ position: absolute; width: 10px; height: 10px; border-radius: 50%;
490
+ border: 0; background: var(--dsw-alias-label-deep-diving);
491
+ opacity: .38; transform: scale(.9); cursor: crosshair; z-index: 3;
492
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-bg-layer-1) 55%, transparent);
493
+ transition: opacity .18s ease, transform .18s cubic-bezier(.2, .8, .3, 1.2), box-shadow .18s ease, background .18s ease;
494
+ }
495
+ .iwb-card:hover .iwb-port,
496
+ .iwb-card.iwb-focus .iwb-port {
497
+ width: 12px; height: 12px; opacity: .95; transform: scale(1);
498
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsw-alias-label-deep-diving) 16%, transparent);
499
+ }
500
+ .iwb-port:hover {
501
+ background: var(--dsw-alias-label-deep-diving);
502
+ transform: scale(1.25);
503
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--dsw-alias-label-deep-diving) 20%, transparent);
504
+ }
484
505
  .iwb-port::after {
485
- content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
486
- font-size: 11px; line-height: 1; font-weight: 500; color: var(--dsw-alias-label-deep-diving);
487
- }
488
- .iwb-port[data-side="right"] { right: -8px; top: calc(50% - 8px); }
489
- .iwb-port[data-side="left"] { left: -8px; top: calc(50% - 8px); }
490
- .iwb-port[data-side="top"] { top: -8px; left: calc(50% - 8px); }
491
- .iwb-port[data-side="bottom"] { bottom: -8px; left: calc(50% - 8px); }
492
- .iwb-card.iwb-link-target { outline: 2px dashed var(--dsw-alias-label-deep-diving); outline-offset: 3px; }
493
- .iwb-card-note.iwb-link-target { outline-style: solid; }
506
+ content: ""; position: absolute; inset: 0; border-radius: 50%;
507
+ box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dsw-alias-bg-layer-1) 65%, transparent);
508
+ }
509
+ .iwb-port[data-side="right"] { right: -5px; top: calc(50% - 5px); }
510
+ .iwb-port[data-side="left"] { left: -5px; top: calc(50% - 5px); }
511
+ .iwb-port[data-side="top"] { top: -5px; left: calc(50% - 5px); }
512
+ .iwb-port[data-side="bottom"] { bottom: -5px; left: calc(50% - 5px); }
513
+ .iwb-card:hover .iwb-port[data-side="right"] { right: -6px; top: calc(50% - 6px); }
514
+ .iwb-card:hover .iwb-port[data-side="left"] { left: -6px; top: calc(50% - 6px); }
515
+ .iwb-card:hover .iwb-port[data-side="top"] { top: -6px; left: calc(50% - 6px); }
516
+ .iwb-card:hover .iwb-port[data-side="bottom"] { bottom: -6px; left: calc(50% - 6px); }
517
+
518
+ .iwb-card.iwb-link-target {
519
+ outline: 1.5px solid color-mix(in srgb, var(--dsw-alias-label-deep-diving) 60%, transparent);
520
+ outline-offset: 4px;
521
+ box-shadow: 0 0 0 8px color-mix(in srgb, var(--dsw-alias-label-deep-diving) 7%, transparent);
522
+ }
523
+ .iwb-card-note.iwb-link-target { outline-color: color-mix(in srgb, var(--dsw-alias-label-deep-diving) 55%, transparent); }
494
524
  .iwb-link-menu { min-width: 230px; }
495
525
  .iwb-link-remove .iwb-model-name { color: var(--dsw-alias-state-error-primary); }
496
526