cladogram 0.6.0-beta.4 → 0.6.0-beta.6

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.
@@ -605,16 +605,6 @@ body.clado-dock-resizing iframe {
605
605
  padding: 3px 10px;
606
606
  }
607
607
 
608
- .clado-dock-handoff {
609
- padding: 8px 14px;
610
- border-top: 1px solid var(--clado-ui-edge);
611
- display: flex;
612
- align-items: center;
613
- justify-content: space-between;
614
- gap: 8px;
615
- font-size: 11.5px;
616
- }
617
-
618
608
  /* Role Strip */
619
609
  .clado-role-strip {
620
610
  display: flex;
@@ -820,11 +810,22 @@ body.clado-dock-resizing iframe {
820
810
  display: flex;
821
811
  flex-direction: column;
822
812
  gap: 3px;
823
- max-height: 220px;
813
+ max-height: 268px;
824
814
  overflow-y: auto;
825
815
  z-index: 45;
826
816
  }
827
817
  .clado-dock-popover[hidden] { display: none; }
818
+ .clado-pop-head {
819
+ font-size: 10.5px;
820
+ font-weight: 600;
821
+ color: var(--clado-ui-subtle);
822
+ padding: 3px 10px 4px;
823
+ display: flex;
824
+ align-items: center;
825
+ justify-content: space-between;
826
+ gap: 8px;
827
+ user-select: none;
828
+ }
828
829
  .clado-pop-item {
829
830
  appearance: none;
830
831
  border: 1px solid transparent;
@@ -841,11 +842,49 @@ body.clado-dock-resizing iframe {
841
842
  justify-content: space-between;
842
843
  gap: 8px;
843
844
  }
844
- .clado-pop-item:hover {
845
+ .clado-pop-item:hover,
846
+ .clado-pop-item.is-selected {
845
847
  background: var(--clado-ui-hover);
846
848
  border-color: var(--clado-ui-hover-border);
847
849
  color: var(--clado-ui-text);
848
850
  }
851
+ .clado-pop-item.is-selected {
852
+ background: var(--clado-ui-prism-bg);
853
+ border-color: var(--clado-ui-prism-border);
854
+ }
855
+ .clado-pop-main {
856
+ display: flex;
857
+ align-items: center;
858
+ gap: 7px;
859
+ min-width: 0;
860
+ flex: 1;
861
+ }
862
+ .clado-pop-label {
863
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
864
+ font-size: 12px;
865
+ overflow: hidden;
866
+ text-overflow: ellipsis;
867
+ white-space: nowrap;
868
+ }
869
+ .clado-pop-badge {
870
+ flex: none;
871
+ font-size: 10px;
872
+ font-weight: 600;
873
+ padding: 1px 6px;
874
+ border-radius: 999px;
875
+ background: var(--clado-ui-well);
876
+ border: 1px solid var(--clado-ui-well-border);
877
+ color: var(--clado-ui-muted);
878
+ }
879
+ .clado-pop-desc {
880
+ color: var(--clado-ui-subtle);
881
+ font-size: 11px;
882
+ max-width: 52%;
883
+ overflow: hidden;
884
+ text-overflow: ellipsis;
885
+ white-space: nowrap;
886
+ flex: none;
887
+ }
849
888
 
850
889
  /* ================= Unified 5-Tab Settings Center & Handoff Modal ================= */
851
890
  .clado-vnext-mask {
@@ -1022,27 +1061,6 @@ body.clado-dock-resizing iframe {
1022
1061
  flex: none;
1023
1062
  }
1024
1063
 
1025
- .clado-handoff-card {
1026
- width: min(468px, calc(100% - 32px));
1027
- border-radius: 24px;
1028
- padding: 24px;
1029
- background: var(--clado-ui-popover);
1030
- backdrop-filter: blur(28px) saturate(200%);
1031
- -webkit-backdrop-filter: blur(28px) saturate(200%);
1032
- border: 1px solid var(--clado-ui-glass-outline);
1033
- box-shadow: var(--clado-ui-glass-shadow);
1034
- position: relative;
1035
- color: var(--clado-ui-text);
1036
- }
1037
- .clado-handoff-opt {
1038
- cursor: pointer;
1039
- transition: all 150ms ease;
1040
- }
1041
- .clado-handoff-opt:hover {
1042
- background: var(--clado-ui-hover);
1043
- border-color: var(--clado-ui-hover-border);
1044
- }
1045
-
1046
1064
  /* Composer Context Chips Bar */
1047
1065
  .clado-ctx-bar {
1048
1066
  display: flex;
@@ -1365,3 +1383,94 @@ body.clado-dock-resizing iframe {
1365
1383
  border-color: var(--clado-ui-prism-border);
1366
1384
  color: var(--clado-ui-prism-text);
1367
1385
  }
1386
+
1387
+ /* Long-conversation history pagination banner */
1388
+ .clado-history-loader {
1389
+ align-self: center;
1390
+ appearance: none;
1391
+ border: 1px dashed var(--clado-ui-well-border);
1392
+ background: var(--clado-ui-well);
1393
+ color: var(--clado-ui-muted);
1394
+ border-radius: 999px;
1395
+ padding: 5px 12px;
1396
+ font: inherit;
1397
+ font-size: 11px;
1398
+ cursor: pointer;
1399
+ transition: all 140ms ease;
1400
+ }
1401
+ .clado-history-loader:hover:not(:disabled) {
1402
+ border-color: var(--clado-ui-prism-border);
1403
+ color: var(--clado-ui-text);
1404
+ background: var(--clado-ui-hover);
1405
+ }
1406
+ .clado-history-loader:disabled {
1407
+ opacity: 0.72;
1408
+ cursor: wait;
1409
+ }
1410
+ .clado-msg-user.is-peer {
1411
+ border-style: dashed;
1412
+ border-color: var(--clado-ui-prism-border);
1413
+ }
1414
+
1415
+ /* Automations & Event Bus Settings UI */
1416
+ .clado-auto-card {
1417
+ display: flex;
1418
+ flex-direction: column;
1419
+ gap: 8px;
1420
+ }
1421
+ .clado-auto-meta {
1422
+ display: flex;
1423
+ flex-wrap: wrap;
1424
+ align-items: center;
1425
+ gap: 6px;
1426
+ font-size: 11px;
1427
+ color: var(--clado-ui-muted);
1428
+ }
1429
+ .clado-auto-prompt {
1430
+ font-size: 11.5px;
1431
+ color: var(--clado-ui-text-soft);
1432
+ background: rgba(148, 163, 184, 0.08);
1433
+ border: 1px solid var(--clado-ui-edge);
1434
+ border-radius: 10px;
1435
+ padding: 7px 10px;
1436
+ line-height: 1.5;
1437
+ white-space: pre-wrap;
1438
+ word-break: break-word;
1439
+ }
1440
+ .clado-auto-events-grid {
1441
+ display: grid;
1442
+ grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
1443
+ gap: 6px;
1444
+ max-height: 184px;
1445
+ overflow-y: auto;
1446
+ padding: 2px;
1447
+ }
1448
+ .clado-auto-ev-group {
1449
+ border: 1px solid var(--clado-ui-edge);
1450
+ border-radius: 11px;
1451
+ padding: 7px 9px;
1452
+ background: rgba(148, 163, 184, 0.04);
1453
+ display: flex;
1454
+ flex-direction: column;
1455
+ gap: 4px;
1456
+ }
1457
+ .clado-auto-ev-title {
1458
+ font-size: 10.5px;
1459
+ font-weight: 620;
1460
+ color: var(--clado-ui-subtle);
1461
+ margin-bottom: 2px;
1462
+ }
1463
+ .clado-auto-ev-opt {
1464
+ display: flex;
1465
+ align-items: flex-start;
1466
+ gap: 6px;
1467
+ font-size: 11px;
1468
+ color: var(--clado-ui-text);
1469
+ cursor: pointer;
1470
+ line-height: 1.35;
1471
+ }
1472
+ .clado-auto-ev-opt code {
1473
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1474
+ font-size: 10.5px;
1475
+ color: var(--clado-ui-prism-text);
1476
+ }
@@ -1,6 +1,5 @@
1
1
  (() => {
2
2
  const modes = [['cards', '卡片'], ['mindmap', '脑图'], ['doc', '文档']];
3
- const icoArrow = '<svg class="clado-svg-ico" aria-hidden="true" viewBox="0 0 24 24"><path d="M5 12h14M13 5l7 7-7 7"/></svg>';
4
3
  const button = (className, text) => {
5
4
  const element = document.createElement('button');
6
5
  element.type = 'button';
@@ -36,16 +35,6 @@
36
35
  bar.append(group);
37
36
  topRow.append(bar);
38
37
 
39
- if (actions.openHandoff) {
40
- const deliverBtn = document.createElement('button');
41
- deliverBtn.type = 'button';
42
- deliverBtn.className = 'clado-ui-button clado-ui-button-primary clado-deliver-btn';
43
- deliverBtn.innerHTML = icoArrow + '<span>交付产物</span>';
44
- deliverBtn.title = '将画布设计交付给角色落地开发、测试或归档';
45
- deliverBtn.onclick = () => actions.openHandoff();
46
- topRow.append(deliverBtn);
47
- }
48
-
49
38
  const statuses = document.createElement('div');
50
39
  statuses.className = 'clado-view-status';
51
40
  const issues = button('clado-ui-glass clado-ui-button clado-issue-count', '');
@@ -65,13 +65,6 @@
65
65
  transition: transform 220ms cubic-bezier(.22,.75,.24,1);
66
66
  pointer-events: none;
67
67
  }
68
- .clado-deliver-btn {
69
- min-height: 38px;
70
- padding: 7px 15px;
71
- font-size: 12px;
72
- border-radius: 999px;
73
- pointer-events: auto;
74
- }
75
68
  .clado-view-status { display: flex; gap: 6px; }
76
69
  .clado-view-bar, .clado-view-status > * { pointer-events: auto; }
77
70
  .clado-view-status .clado-ui-button { border-radius: 999px; font-size: 12px; }
@@ -80,8 +80,10 @@ CLI 的 `--dry-run` 只预览安装,`--force` 仅在确认允许替换现有
80
80
  | `clado_nodes` | `read/query/create/insert/update/rename/move/delete`;定位用 `file/node`;新增用 `title/parent/content/index`;移动用 `parent/index/targetFile` |
81
81
  | `clado_links` | `list/connect/disconnect`;源 `file/node`,目标 `targetFile/targetNode`;优先用 `sourcePoint` 或行内 `position:{mode:"replace",anchor}` 从内容行连出 |
82
82
  | `clado_batch` | `operations` 中顺序执行1–100个项目操作,类型如 `document.copy/node.insert/link.connect/template.pull`;最终校验后保存 |
83
+ | `clado_sessions` | `list/read/open/send`;同源跨主会话协同,支持 `sinceMinutes` 筛选近期活跃会话、拉起角色或发送协作消息(内置 Progress Guard 防空转熔断) |
84
+ | `clado_automations` | `list/events_catalog/save/delete/pause/resume/run_now`;管理工作区定时巡检(含「记忆记录专员」预设)与 6 大类系统事件订阅 |
83
85
 
84
- 节点 `node/parent/targetNode` 使用读取返回的**标题数组**,如 `["OrderService#createOrder(UUID)","检查权限(新增)"]`。不用内部ID或手拼点号路径。新增根卡片时省略 `parent`;同级节点 `index` 从 **0** 开始,省略则追加在同级末尾。
86
+ 所有写工具均支持可选 `idempotencyKey`(5 分钟防重缓存);多方并发修改同一画布的**不同卡片**时,服务端会自动执行卡片级 Rebase(返回 `rebased: true`),而并发覆写同一张卡片仍严格返回 `409`;写入同时会自动在画布上广播「外部 MCP」卡片占用态呼吸。节点 `node/parent/targetNode` 使用读取返回的**标题数组**,如 `["OrderService#createOrder(UUID)","检查权限(新增)"]`。不用内部ID或手拼点号路径。新增根卡片时省略 `parent`;同级节点 `index` 从 **0** 开始,省略则追加在同级末尾。
85
87
 
86
88
  `query` 的 `relation` 支持 `parent/children/ancestors/descendants/siblings/upstream/downstream`。可给 `depth` 控制深度、`offset/limit` 分页、`includeContent` 控制是否带正文。包含层级和调用关系分别查询。
87
89
 
@@ -207,6 +209,6 @@ YAML中的版本写成带引号的文字,例如 `version: "1.0"`;组织方
207
209
 
208
210
  删除有孩子的节点需要 `recursive:true`。被引用目标默认拒绝删除;确实要断开入链才给 `unlink:true`,工具保留链接显示文字。改名、移动用专用操作,让工具维护可解析引用;未解析目标由全量诊断持续报告。
209
211
 
210
- 交付前重新读取关键节点、检查引用并实际看网页;多卡画布每卡应有真实跨卡关系,单卡豁免。按语义展开层级,不跳级、不凑L6;代码、表格和小图解释所属逻辑,不用巨型Mermaid代替节点。方法卡按当前模板说明职责、输入输出、内部步骤和失败出口。
212
+ 交付前重新读取关键节点、检查引用并实际看网页;多卡画布应保持从左到右的单向无环流(DAG),严禁尾连头反向回环或双向互连,克制单卡跨卡连线数量(建议 1–3 条)且不留孤立卡片(单卡豁免)。按语义展开层级,不跳级、不凑L6;代码、表格、Mermaid、` ```svg ` 矢量图/轻动效、` ```ui ` 隔离沙盒 UI 原型及本地音视频(`![说明](相对路径.mp4)`)解释所属逻辑,不用巨型Mermaid代替节点。方法卡按当前模板说明职责、输入输出、内部步骤和失败出口。
211
213
 
212
214
  事实需核对材料,新设计标提案,未知项保留待确认。工具不执行业务代码、SQL、迁移或发布任务,未执行的验证不能写成通过。最后说明修改文档、未决项、实际检查和打开方式;离线交付使用 `clado build`,默认输出可携带目录导航的只读 `clado.html`。