cladogram 0.6.0-beta.6 → 0.6.0-beta.8

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.
@@ -1474,3 +1474,53 @@ body.clado-dock-resizing iframe {
1474
1474
  font-size: 10.5px;
1475
1475
  color: var(--clado-ui-prism-text);
1476
1476
  }
1477
+
1478
+ /* Inline Plugin Parameter Editor & Local Directory Market Folder Picker */
1479
+ .clado-plugin-param-panel {
1480
+ border-top: 1px dashed var(--clado-ui-edge);
1481
+ padding-top: 10px;
1482
+ margin-top: 4px;
1483
+ display: flex;
1484
+ flex-direction: column;
1485
+ gap: 6px;
1486
+ }
1487
+ .clado-folder-picker {
1488
+ border: 1px solid var(--clado-ui-edge);
1489
+ border-radius: 12px;
1490
+ padding: 10px;
1491
+ background: var(--clado-ui-well);
1492
+ }
1493
+ .clado-folder-list {
1494
+ display: grid;
1495
+ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
1496
+ gap: 5px;
1497
+ max-height: 180px;
1498
+ overflow-y: auto;
1499
+ padding-right: 2px;
1500
+ }
1501
+ .clado-folder-row {
1502
+ appearance: none;
1503
+ display: inline-flex;
1504
+ align-items: center;
1505
+ gap: 6px;
1506
+ text-align: left;
1507
+ padding: 6px 9px;
1508
+ border-radius: 9px;
1509
+ border: 1px solid var(--clado-ui-edge);
1510
+ background: var(--clado-ui-surface, transparent);
1511
+ color: var(--clado-ui-text);
1512
+ font: inherit;
1513
+ font-size: 12px;
1514
+ cursor: pointer;
1515
+ overflow: hidden;
1516
+ transition: background 120ms ease, border-color 120ms ease;
1517
+ }
1518
+ .clado-folder-row span {
1519
+ overflow: hidden;
1520
+ text-overflow: ellipsis;
1521
+ white-space: nowrap;
1522
+ }
1523
+ .clado-folder-row:hover {
1524
+ background: var(--clado-ui-hover);
1525
+ border-color: var(--clado-ui-prism-border);
1526
+ }
@@ -81,7 +81,7 @@ CLI 的 `--dry-run` 只预览安装,`--force` 仅在确认允许替换现有
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
83
  | `clado_sessions` | `list/read/open/send`;同源跨主会话协同,支持 `sinceMinutes` 筛选近期活跃会话、拉起角色或发送协作消息(内置 Progress Guard 防空转熔断) |
84
- | `clado_automations` | `list/events_catalog/save/delete/pause/resume/run_now`;管理工作区定时巡检(含「记忆记录专员」预设)与 6 大类系统事件订阅 |
84
+ | `clado_automations` | `list/events_catalog/save/delete/pause/resume/run_now`;管理工作区周期定时唤醒(支持 `onlyIfActive` 无活跃零消耗跳过)与 6 大类系统事件订阅 |
85
85
 
86
86
  所有写工具均支持可选 `idempotencyKey`(5 分钟防重缓存);多方并发修改同一画布的**不同卡片**时,服务端会自动执行卡片级 Rebase(返回 `rebased: true`),而并发覆写同一张卡片仍严格返回 `409`;写入同时会自动在画布上广播「外部 MCP」卡片占用态呼吸。节点 `node/parent/targetNode` 使用读取返回的**标题数组**,如 `["OrderService#createOrder(UUID)","检查权限(新增)"]`。不用内部ID或手拼点号路径。新增根卡片时省略 `parent`;同级节点 `index` 从 **0** 开始,省略则追加在同级末尾。
87
87
 
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Clado Unified System Event Bus & Workspace Automation / Scheduler Engine
3
3
  *
4
- * 负责统一收敛 6 大类系统事件,并支持:
5
- * 1. 定时周期唤醒(如「记忆记录专员」每 5/10 分钟扫描近 20 分钟活跃会话),内置 onlyIfActive 无活跃零消耗跳过;
4
+ * 负责统一收敛 6 大类系统事件,提供中立的平台调度原语:
5
+ * 1. 周期定时唤醒,内置 onlyIfActive 无活跃零消耗跳过;
6
6
  * 2. 事件订阅触发(按事件类型、文件、卡片、Tag、来源角色过滤),内置防自触发、防抖合并与一键全局暂停。
7
7
  */
8
8
 
@@ -82,26 +82,6 @@ export const ALL_SYSTEM_EVENT_TYPES = new Set(
82
82
  SYSTEM_EVENT_CATALOG.flatMap(g => g.events.map(e => e.type))
83
83
  );
84
84
 
85
- export const MEMORY_SCRIBE_PRESET = {
86
- id: 'auto_memory_scribe',
87
- name: '记忆记录专员 · 定时沉淀工作区记忆',
88
- enabled: true,
89
- trigger: {
90
- type: 'schedule',
91
- intervalMinutes: 10,
92
- onlyIfActive: true,
93
- activeWindowMinutes: 20,
94
- eventTypes: ['schedule.tick'],
95
- filter: {},
96
- },
97
- target: {
98
- roleId: 'archivist',
99
- sessionId: '',
100
- prompt: '请调用 clado_session_list(sinceMinutes: 20) 扫描工作区最近 20 分钟内活跃过的其他会话,按需用 clado_session_read 读取关键讨论、代码/画布变更与已确认决策,去重整理后增量更新到工作区根目录 AGENTS.md 记忆文件中。若无实质新共识则简短说明即可。',
101
- },
102
- debounceMs: 4000,
103
- };
104
-
105
85
  function automationsPath(stateDir) {
106
86
  return join(stateDir, 'automations.json');
107
87
  }
@@ -680,7 +680,7 @@ export function createCladoPiTools({
680
680
  defineTool({
681
681
  name: 'clado_session_read',
682
682
  label: '读取会话记录',
683
- description: '读取工作区中指定主会话的最近 N 轮对话摘要与工具调用记录,用于跨角色同步上下文或「记忆记录专员」扫描沉淀记忆。',
683
+ description: '读取工作区中指定主会话的最近 N 轮对话摘要与工具调用记录,用于跨角色同步上下文与协作排查。',
684
684
  promptSnippet: '读取指定主会话的最近对话与工具记录',
685
685
  parameters: {
686
686
  type: 'object',
@@ -767,7 +767,7 @@ export function createCladoPiTools({
767
767
  defineTool({
768
768
  name: 'clado_automations',
769
769
  label: '定时与事件订阅',
770
- description: '管理当前工作区的定时唤醒任务(如「记忆记录专员」每 10 分钟扫描近 20 分钟活跃会话,支持 onlyIfActive 零消耗跳过)与系统事件订阅触发规则(会话/卡片/Tag/代码/记忆变更)。',
770
+ description: '管理当前工作区的周期定时唤醒任务(支持 onlyIfActive 无活跃零消耗跳过)与 6 大类系统事件订阅触发规则(会话/卡片/Tag/代码/记忆/人类操作)。',
771
771
  promptSnippet: '查看或管理工作区定时唤醒与事件订阅规则',
772
772
  parameters: {
773
773
  type: 'object',