dsh-plugin-inspiration-workbench 0.3.0 → 0.5.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/README.md +9 -1
- package/lib/client.js +181 -74
- package/lib/client.js.map +2 -2
- package/package.json +1 -1
- package/src/client/board.js +188 -75
- package/src/client/index.jsx +16 -2
- package/src/client/styles.css +1 -0
package/package.json
CHANGED
package/src/client/board.js
CHANGED
|
@@ -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
|
|
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
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
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
|
|
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
|
-
|
|
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 =
|
|
1533
|
+
hovered = usable ? targetCard : null;
|
|
1486
1534
|
if (hovered) hovered.el.classList.add('iwb-link-target');
|
|
1487
1535
|
};
|
|
1488
1536
|
const finish = (upEvent) => {
|
|
1489
|
-
|
|
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
|
-
|
|
1548
|
+
const created = addPipeTarget(card, hovered);
|
|
1497
1549
|
renderPipeBadge(card);
|
|
1498
1550
|
schedulePipelines();
|
|
1499
1551
|
saveSoon();
|
|
1500
|
-
toast(
|
|
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
|
|
1517
|
-
badge.hidden = !
|
|
1518
|
-
if (
|
|
1519
|
-
|
|
1520
|
-
badge.
|
|
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,133 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
|
|
|
1577
1637
|
}
|
|
1578
1638
|
|
|
1579
1639
|
async function deliverPipeline(card) {
|
|
1580
|
-
const
|
|
1581
|
-
if (!
|
|
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
|
-
|
|
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
|
-
|
|
1596
|
-
const
|
|
1597
|
-
if (
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
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
|
+
// Several cards may land in the same note, so each delivery is wrapped in
|
|
1659
|
+
// a titled block with a timestamp.
|
|
1660
|
+
if (target.kind === 'note') {
|
|
1661
|
+
if (!targetCard) continue;
|
|
1662
|
+
const area = targetCard.el?.querySelector('.iwb-note-input');
|
|
1663
|
+
if (!area) continue;
|
|
1664
|
+
const block = t('pipe.noteBlock')
|
|
1665
|
+
.replace('{title}', card.title || t('untitled'))
|
|
1666
|
+
.replace('{time}', canvasStamp())
|
|
1667
|
+
.replace('{text}', text);
|
|
1668
|
+
area.value = area.value.trim() ? area.value.replace(/\s*$/, '\n\n') + block : block;
|
|
1669
|
+
area.dispatchEvent(new Event('input', { bubbles: true }));
|
|
1670
|
+
targetCard.pipeDepth = depth;
|
|
1671
|
+
card.pipedFingerprints[key] = fingerprint;
|
|
1672
|
+
ensureVisible(targetCard);
|
|
1673
|
+
toast(t('pipe.noted').replace('{name}', targetCard.title || t('untitled')));
|
|
1674
|
+
continue;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
if (target.mode === 'draft') {
|
|
1678
|
+
const field = targetCard?.el?.querySelector('.iwb-foot textarea');
|
|
1679
|
+
if (!field) continue;
|
|
1680
|
+
field.value = field.value ? field.value.replace(/\s*$/, '\n\n') + text : text;
|
|
1681
|
+
field.dispatchEvent(new Event('input', { bubbles: true }));
|
|
1682
|
+
ensureVisible(targetCard);
|
|
1683
|
+
targetCard.pipeDepth = depth;
|
|
1684
|
+
card.pipedFingerprints[key] = fingerprint;
|
|
1685
|
+
toast(t('pipe.drafted').replace('{name}', pipeTargetLabel(target)));
|
|
1686
|
+
continue;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1603
1689
|
try {
|
|
1604
|
-
await adapter.prompt(target.
|
|
1605
|
-
|
|
1690
|
+
await adapter.prompt(target.id, text, 'queue');
|
|
1691
|
+
card.pipedFingerprints[key] = fingerprint;
|
|
1692
|
+
if (targetCard) targetCard.pipeDepth = depth;
|
|
1693
|
+
toast(t('pipe.sent').replace('{name}', pipeTargetLabel(target)));
|
|
1606
1694
|
} catch (error) {
|
|
1607
1695
|
toast(t('pipe.failed').replace('{error}', error?.message || ''));
|
|
1608
|
-
return;
|
|
1609
1696
|
}
|
|
1610
1697
|
}
|
|
1611
|
-
target.pipeDepth = depth;
|
|
1612
1698
|
}
|
|
1613
1699
|
|
|
1614
|
-
/** Click a pipeline curve: switch
|
|
1615
|
-
function openPipeMenu(card, anchor) {
|
|
1700
|
+
/** Click a pipeline curve: switch that edge's mode or remove it. */
|
|
1701
|
+
function openPipeMenu(card, target, anchor) {
|
|
1616
1702
|
if (pipePop) {
|
|
1617
1703
|
closePipeMenu();
|
|
1618
1704
|
return;
|
|
1619
1705
|
}
|
|
1620
|
-
const target = sessionCardOf(card.pipeline?.targetSessionId);
|
|
1621
1706
|
if (!target) return;
|
|
1707
|
+
const targetCard = cardOfPipeTarget(target);
|
|
1708
|
+
const label = pipeTargetLabel(target);
|
|
1709
|
+
const isNote = target.kind === 'note';
|
|
1622
1710
|
const pop = el('div', 'iwb-popover iwb-link-menu');
|
|
1623
1711
|
pop.setAttribute('role', 'dialog');
|
|
1624
1712
|
pop.setAttribute('aria-label', t('pipe.title'));
|
|
1625
1713
|
const head = el('div', 'iwb-popover-head');
|
|
1626
|
-
head.textContent = t('pipe.title');
|
|
1714
|
+
head.textContent = isNote ? t('pipe.noteTarget') : t('pipe.title');
|
|
1627
1715
|
const status = el('div', 'iwb-popover-note');
|
|
1628
|
-
status.textContent = t('pipe.linked').replace('{name}',
|
|
1716
|
+
status.textContent = t('pipe.linked').replace('{name}', label);
|
|
1629
1717
|
pop.append(head, status);
|
|
1630
1718
|
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1719
|
+
if (!isNote) {
|
|
1720
|
+
const mode = target.mode === 'draft' ? 'draft' : 'send';
|
|
1721
|
+
const modes = [
|
|
1722
|
+
{ id: 'send', label: t('pipe.send'), hint: t('pipe.sendHint') },
|
|
1723
|
+
{ id: 'draft', label: t('pipe.draft'), hint: t('pipe.draftHint') },
|
|
1724
|
+
];
|
|
1725
|
+
for (const option of modes) {
|
|
1726
|
+
const row = el('button', 'iwb-model-row' + (mode === option.id ? ' current' : ''));
|
|
1727
|
+
row.type = 'button';
|
|
1728
|
+
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>' : '');
|
|
1729
|
+
row.querySelector('.iwb-model-name').textContent = option.label;
|
|
1730
|
+
row.querySelector('.iwb-model-desc').textContent = option.hint;
|
|
1731
|
+
row.addEventListener('click', (event) => {
|
|
1732
|
+
event.stopPropagation();
|
|
1733
|
+
const targets = pipeTargets(card).map((entry) =>
|
|
1734
|
+
entry.kind === target.kind && entry.id === target.id ? { ...entry, mode: option.id } : entry
|
|
1735
|
+
);
|
|
1736
|
+
setPipeTargets(card, targets);
|
|
1737
|
+
renderPipeBadge(card);
|
|
1738
|
+
schedulePipelines();
|
|
1739
|
+
saveSoon();
|
|
1740
|
+
closePipeMenu();
|
|
1741
|
+
toast(option.id === 'draft' ? t('pipe.modeDraft') : t('pipe.modeSend'));
|
|
1742
|
+
});
|
|
1743
|
+
pop.appendChild(row);
|
|
1744
|
+
}
|
|
1745
|
+
} else {
|
|
1746
|
+
const statusRow = el('div', 'iwb-popover-note');
|
|
1747
|
+
statusRow.textContent = t('pipe.noteHint');
|
|
1748
|
+
pop.appendChild(statusRow);
|
|
1652
1749
|
}
|
|
1653
1750
|
|
|
1654
1751
|
const remove = el('button', 'iwb-model-row iwb-link-remove');
|
|
1655
1752
|
remove.type = 'button';
|
|
1656
1753
|
remove.innerHTML = '<span class="iwb-model-main"><span class="iwb-model-name"></span></span>';
|
|
1657
|
-
remove.querySelector('.iwb-model-name').textContent = t('pipe.remove');
|
|
1754
|
+
remove.querySelector('.iwb-model-name').textContent = isNote ? t('pipe.removeNote') : t('pipe.remove');
|
|
1658
1755
|
remove.addEventListener('click', (event) => {
|
|
1659
1756
|
event.stopPropagation();
|
|
1660
|
-
|
|
1757
|
+
setPipeTargets(
|
|
1758
|
+
card,
|
|
1759
|
+
pipeTargets(card).filter((entry) => !(entry.kind === target.kind && entry.id === target.id))
|
|
1760
|
+
);
|
|
1661
1761
|
renderPipeBadge(card);
|
|
1662
1762
|
schedulePipelines();
|
|
1663
1763
|
saveSoon();
|
|
1664
1764
|
closePipeMenu();
|
|
1665
1765
|
toast(t('pipe.removed'));
|
|
1766
|
+
if (targetCard) ensureVisible(targetCard);
|
|
1666
1767
|
});
|
|
1667
1768
|
pop.appendChild(remove);
|
|
1668
1769
|
|
|
@@ -1698,6 +1799,17 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
|
|
|
1698
1799
|
/* the session scope may already be gone */
|
|
1699
1800
|
}
|
|
1700
1801
|
state.cards = state.cards.filter((c) => c !== card);
|
|
1802
|
+
// Drop pipeline edges that pointed at the card we just closed.
|
|
1803
|
+
const goneId = card.kind === 'note' ? card.id : card.sessionId;
|
|
1804
|
+
const goneKind = card.kind === 'note' ? 'note' : 'session';
|
|
1805
|
+
for (const other of state.cards) {
|
|
1806
|
+
const targets = pipeTargets(other);
|
|
1807
|
+
const kept = targets.filter((target) => !(target.kind === goneKind && target.id === goneId));
|
|
1808
|
+
if (kept.length !== targets.length) {
|
|
1809
|
+
setPipeTargets(other, kept);
|
|
1810
|
+
renderPipeBadge(other);
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1701
1813
|
schedulePipelines();
|
|
1702
1814
|
if (state.selected.delete(card.id)) renderBatchBar();
|
|
1703
1815
|
if (state.focusedId === card.id) {
|
|
@@ -2542,7 +2654,7 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
|
|
|
2542
2654
|
y: card.y,
|
|
2543
2655
|
w: card.w,
|
|
2544
2656
|
h: card.h,
|
|
2545
|
-
pipeline: card.
|
|
2657
|
+
pipeline: pipeTargets(card).length ? { targets: pipeTargets(card) } : null,
|
|
2546
2658
|
});
|
|
2547
2659
|
}
|
|
2548
2660
|
for (const stack of saved.stacks || []) {
|
|
@@ -2582,13 +2694,14 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
|
|
|
2582
2694
|
pan: state.pan,
|
|
2583
2695
|
settings: { ...state.settings },
|
|
2584
2696
|
cards: state.cards.map((card) => ({
|
|
2697
|
+
id: card.kind === 'note' ? card.id : undefined,
|
|
2585
2698
|
sessionId: card.sessionId,
|
|
2586
2699
|
title: card.title,
|
|
2587
2700
|
workspace: card.workspace || '',
|
|
2588
2701
|
kind: card.kind || 'session',
|
|
2589
2702
|
note: card.note || '',
|
|
2590
2703
|
pinned: Boolean(card.pinned),
|
|
2591
|
-
pipeline: card.
|
|
2704
|
+
pipeline: pipeTargets(card).length ? { targets: pipeTargets(card) } : null,
|
|
2592
2705
|
x: card.x,
|
|
2593
2706
|
y: card.y,
|
|
2594
2707
|
w: card.w,
|
package/src/client/index.jsx
CHANGED
|
@@ -125,9 +125,16 @@ 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.noteBlock': '## 来自「{title}」 · {time}\n\n{text}',
|
|
132
|
+
'pipe.noteTarget': '流水线 → 便签',
|
|
133
|
+
'pipe.noteHint': '下游是便签:跑完把结果追加进去,不发送',
|
|
134
|
+
'pipe.removeNote': '删除这条便签流水线',
|
|
128
135
|
'pipe.port': '拖这条线到另一张卡,建立流水线',
|
|
129
136
|
'pipe.created': '流水线已连到「{name}」',
|
|
130
|
-
'pipe.needTarget': '
|
|
137
|
+
'pipe.needTarget': '拖到另一张卡(会话卡或便签)上才算连线',
|
|
131
138
|
'pipe.remove': '删除这条流水线',
|
|
132
139
|
'pipe.removed': '流水线已删除',
|
|
133
140
|
'pipe.sendHint': '完成后自动把结果发过去',
|
|
@@ -411,9 +418,16 @@ const en = {
|
|
|
411
418
|
'pipe.linked': 'Pipeline points at “{name}”',
|
|
412
419
|
'pipe.modeSendHint': 'Currently: auto-send on completion',
|
|
413
420
|
'pipe.modeDraftHint': 'Currently: draft only',
|
|
421
|
+
'pipe.already': '“{name}” is already connected',
|
|
422
|
+
'pipe.multi': '→ {n} downstream',
|
|
423
|
+
'pipe.noted': 'Result appended to note “{name}”',
|
|
424
|
+
'pipe.noteBlock': '## From “{title}” · {time}\n\n{text}',
|
|
425
|
+
'pipe.noteTarget': 'Pipeline → note',
|
|
426
|
+
'pipe.noteHint': 'Note downstream: the result is appended, never sent',
|
|
427
|
+
'pipe.removeNote': 'Remove this note pipeline',
|
|
414
428
|
'pipe.port': 'Drag this line onto another card to wire a pipeline',
|
|
415
429
|
'pipe.created': 'Pipeline wired to “{name}”',
|
|
416
|
-
'pipe.needTarget': 'Drop it on another session
|
|
430
|
+
'pipe.needTarget': 'Drop it on another card (session or note) to connect',
|
|
417
431
|
'pipe.remove': 'Remove this pipeline',
|
|
418
432
|
'pipe.removed': 'Pipeline removed',
|
|
419
433
|
'pipe.sendHint': 'Send the result downstream when the turn finishes',
|
package/src/client/styles.css
CHANGED
|
@@ -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
|
|