cladogram 0.5.5-beta.9 → 0.6.0-beta.10
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 +106 -80
- package/bin/clado.js +35 -3
- package/docs/agent-context.md +63 -0
- package/docs/agent-reference.md +219 -0
- package/docs/release.md +123 -0
- package/package.json +5 -3
- package/plugins/agent/index.js +2485 -2982
- package/plugins/agent/settings.js +3592 -0
- package/plugins/agent/style.css +1441 -1315
- package/plugins/brand/index.js +84 -466
- package/plugins/brand/style.css +39 -172
- package/plugins/directory/index.js +10 -10
- package/plugins/view-controls/index.js +6 -1
- package/plugins/view-controls/style.css +41 -30
- package/skills/clado/SKILL.md +4 -2
- package/src/agent/automations.js +454 -0
- package/src/agent/clado-tools.js +792 -0
- package/src/agent/pi-bridge.js +2559 -0
- package/src/agent/pi-config.js +2411 -0
- package/src/agent/pi-hooks-perms.js +621 -0
- package/src/html/app-css.js +69 -1
- package/src/html/canvas-chain.js +32 -6
- package/src/html/canvas-focus.js +19 -13
- package/src/html/canvas-live-diff.js +1373 -0
- package/src/html/canvas-ui.css +503 -2
- package/src/html/canvas-wires.js +5 -1
- package/src/html/page.js +4 -2
- package/src/html/plugin-assets.js +5 -1
- package/src/html/plugin-ui.css +159 -134
- package/src/html/plugin-ui.js +3 -2
- package/src/html/runtime-api.js +152 -10
- package/src/html/runtime.js +546 -37
- package/src/server/agent.js +862 -1566
- package/src/server/assets/library-canvas.js +256 -9
- package/src/server/assets/library.css +951 -11
- package/src/server/assets/library.html +39 -4
- package/src/server/assets/library.js +1445 -224
- package/src/server/code-inspect.js +183 -0
- package/src/server/mcp.js +90 -22
- package/src/server/plugin-registry.js +671 -9
- package/src/server/plugins.js +1 -1
- package/src/server/workspace-hub.js +50 -0
- package/src/server/workspace.js +554 -39
- package/src/workspace/graph-snapshot.js +695 -0
- package/src/workspace/service.js +201 -9
- package/src/agent/commands.js +0 -204
- package/src/agent/context.js +0 -445
- package/src/agent/executors.js +0 -213
- package/src/agent/mcp-client.js +0 -308
- package/src/agent/probe.js +0 -234
- package/src/agent/providers/anthropic.js +0 -220
- package/src/agent/providers/index.js +0 -235
- package/src/agent/providers/openai.js +0 -146
- package/src/agent/runtime.js +0 -995
- package/src/agent/sessions.js +0 -336
- package/src/agent/skills.js +0 -190
package/plugins/brand/style.css
CHANGED
|
@@ -1,181 +1,48 @@
|
|
|
1
|
-
.clado-brand-plugin {
|
|
2
|
-
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
height: 44px;
|
|
7
|
-
padding: 6px 11px 6px 7px;
|
|
8
|
-
color: var(--clado-ui-text);
|
|
9
|
-
border-radius: var(--clado-ui-radius);
|
|
10
|
-
}
|
|
11
|
-
.clado-brand strong { font-size: 17px; font-weight: 680; letter-spacing: -.05em; }
|
|
12
|
-
.clado-brand-mark {
|
|
13
|
-
display: grid;
|
|
14
|
-
place-items: center;
|
|
15
|
-
width: 28px;
|
|
16
|
-
height: 28px;
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
background: transparent;
|
|
19
|
-
flex: none;
|
|
20
|
-
}
|
|
21
|
-
.clado-brand-mark svg {
|
|
22
|
-
display: block;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
}
|
|
26
|
-
.clado-brand-settings {
|
|
27
|
-
position: absolute;
|
|
28
|
-
inset: calc(100% + 8px) auto auto 0;
|
|
29
|
-
width: min(192px, calc(100vw - 32px));
|
|
30
|
-
display: grid;
|
|
31
|
-
gap: 3px;
|
|
32
|
-
padding: 8px;
|
|
33
|
-
border-radius: 18px;
|
|
34
|
-
}
|
|
35
|
-
.clado-brand-settings p {
|
|
36
|
-
margin: 0;
|
|
37
|
-
padding: 3px 9px 4px;
|
|
38
|
-
color: var(--clado-ui-subtle);
|
|
39
|
-
font-size: 11px;
|
|
40
|
-
font-weight: 600;
|
|
41
|
-
}
|
|
42
|
-
.clado-brand-choice {
|
|
43
|
-
min-height: 36px;
|
|
44
|
-
padding-inline: 10px;
|
|
45
|
-
display: grid;
|
|
46
|
-
grid-template-columns: 16px 1fr 14px;
|
|
47
|
-
align-items: center;
|
|
48
|
-
gap: 8px;
|
|
49
|
-
text-align: start;
|
|
50
|
-
color: var(--clado-ui-text);
|
|
51
|
-
border-radius: 11px;
|
|
1
|
+
.clado-brand-plugin {
|
|
2
|
+
position: relative;
|
|
52
3
|
}
|
|
53
|
-
.clado-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
width: 16px;
|
|
57
|
-
height: 16px;
|
|
58
|
-
fill: none;
|
|
4
|
+
.clado-svg-ico {
|
|
5
|
+
width: 14px;
|
|
6
|
+
height: 14px;
|
|
59
7
|
stroke: currentColor;
|
|
60
|
-
|
|
8
|
+
fill: none;
|
|
9
|
+
stroke-width: 1.58;
|
|
61
10
|
stroke-linecap: round;
|
|
62
11
|
stroke-linejoin: round;
|
|
12
|
+
flex: none;
|
|
63
13
|
}
|
|
64
|
-
.clado-
|
|
65
|
-
|
|
66
|
-
.clado-brand-check svg { width: 14px; height: 14px; stroke-width: 2.2; }
|
|
67
|
-
.clado-brand-capture {
|
|
68
|
-
margin-block-start: 3px;
|
|
69
|
-
grid-template-columns: 16px 1fr;
|
|
70
|
-
}
|
|
71
|
-
.clado-brand:is(:hover,[aria-expanded="true"]) { color: var(--clado-ui-text); }
|
|
72
|
-
.clado-plugin-manager, .clado-plugin-editor {
|
|
73
|
-
position: fixed;
|
|
74
|
-
inset: 0;
|
|
75
|
-
margin: auto;
|
|
76
|
-
width: min(454px, calc(100vw - 32px));
|
|
77
|
-
max-height: calc(100dvh - 40px);
|
|
78
|
-
padding: 20px;
|
|
79
|
-
overflow: auto;
|
|
80
|
-
}
|
|
81
|
-
:is(.clado-plugin-manager,.clado-plugin-editor) :is(header,footer) {
|
|
82
|
-
display: flex;
|
|
14
|
+
.clado-top-pill {
|
|
15
|
+
display: inline-flex;
|
|
83
16
|
align-items: center;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
.clado-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
.clado-
|
|
97
|
-
margin-top: 12px;
|
|
98
|
-
padding: 10px 12px;
|
|
99
|
-
border: 1px solid var(--clado-ui-edge);
|
|
100
|
-
border-radius: 11px;
|
|
101
|
-
background: var(--clado-ui-well);
|
|
102
|
-
}
|
|
103
|
-
.clado-plugin-install p { margin: 0 0 8px; overflow-wrap: anywhere; color: var(--clado-ui-muted); }
|
|
104
|
-
.clado-plugin-install .clado-plugin-manager-actions { justify-content: end; }
|
|
105
|
-
.clado-plugin-manager-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
|
|
106
|
-
.clado-plugin-manager-list article {
|
|
107
|
-
display: grid;
|
|
108
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
109
|
-
grid-template-rows: auto auto 1fr auto;
|
|
110
|
-
align-items: start;
|
|
111
|
-
gap: 6px;
|
|
112
|
-
min-height: 116px;
|
|
113
|
-
padding: 12px;
|
|
114
|
-
border: 1px solid var(--clado-ui-edge);
|
|
115
|
-
border-radius: calc(var(--clado-ui-radius) - 4px);
|
|
116
|
-
background: color-mix(in srgb, var(--clado-ui-well) 70%, transparent);
|
|
117
|
-
}
|
|
118
|
-
.clado-plugin-manager-list article:has(input:not(:checked)) { background: transparent; }
|
|
119
|
-
.clado-plugin-card-icon { grid-area: 1 / 1; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--clado-ui-edge); border-radius: 9px; background: color-mix(in srgb, var(--clado-ui-solid) 75%, transparent); }
|
|
120
|
-
.clado-plugin-card-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--clado-ui-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
121
|
-
.clado-plugin-manager-list strong {
|
|
122
|
-
grid-area: 2 / 1 / auto / -1;
|
|
123
|
-
align-self: center;
|
|
124
|
-
overflow-wrap: anywhere;
|
|
125
|
-
}
|
|
126
|
-
.clado-plugin-manager-list small { grid-area: 3 / 1 / auto / -1; color: var(--clado-ui-muted); }
|
|
127
|
-
.clado-plugin-manager-list article button { grid-area: 4 / 2; min-height: 28px; padding: 4px 7px; }
|
|
128
|
-
.clado-plugin-manager-list input {
|
|
129
|
-
grid-area: 1 / 2;
|
|
130
|
-
align-self: center;
|
|
131
|
-
appearance: none;
|
|
132
|
-
position: relative;
|
|
133
|
-
width: 33px;
|
|
134
|
-
height: 19px;
|
|
135
|
-
margin: 0;
|
|
136
|
-
border-radius: 99px;
|
|
137
|
-
background: var(--clado-ui-edge);
|
|
138
|
-
cursor: pointer;
|
|
139
|
-
}
|
|
140
|
-
.clado-plugin-manager-list input::before {
|
|
141
|
-
content: "";
|
|
142
|
-
position: absolute;
|
|
143
|
-
inset: 3px auto auto 3px;
|
|
144
|
-
width: 13px;
|
|
145
|
-
height: 13px;
|
|
146
|
-
border-radius: 50%;
|
|
147
|
-
background: var(--clado-ui-solid);
|
|
148
|
-
}
|
|
149
|
-
.clado-plugin-manager-list input:checked { background: var(--clado-ui-accent); }
|
|
150
|
-
.clado-plugin-manager-list input:checked::before { transform: translateX(14px); }
|
|
151
|
-
.clado-plugin-manager-list input:focus-visible { outline: 2px solid var(--clado-ui-accent); outline-offset: 2px; }
|
|
152
|
-
.clado-plugin-manager-list input:disabled { opacity: .5; cursor: default; }
|
|
153
|
-
:is(.clado-plugin-manager,.clado-plugin-editor) footer span { color: var(--clado-ui-muted); font-size: 12px; }
|
|
154
|
-
.clado-plugin-editor-path { color: var(--clado-ui-muted); font: 12px ui-monospace, monospace; }
|
|
155
|
-
.clado-plugin-editor textarea {
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
width: 100%;
|
|
158
|
-
padding: 10px;
|
|
159
|
-
border: 1px solid var(--clado-ui-edge);
|
|
160
|
-
border-radius: 10px;
|
|
161
|
-
background: var(--clado-ui-well);
|
|
17
|
+
gap: 3px;
|
|
18
|
+
padding: 4px 8px 4px 5px;
|
|
19
|
+
border-radius: 999px;
|
|
20
|
+
min-height: 40px;
|
|
21
|
+
}
|
|
22
|
+
.clado-top-pill-btn {
|
|
23
|
+
padding: 5px 10px;
|
|
24
|
+
min-height: 30px;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
font-weight: 530;
|
|
27
|
+
color: var(--clado-ui-muted);
|
|
28
|
+
}
|
|
29
|
+
.clado-top-pill-btn:hover {
|
|
162
30
|
color: var(--clado-ui-text);
|
|
163
|
-
font: 13px/1.5 ui-monospace, monospace;
|
|
164
|
-
resize: vertical;
|
|
165
31
|
}
|
|
166
|
-
.clado-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
32
|
+
.clado-top-pill-ws {
|
|
33
|
+
font-size: 12.5px;
|
|
34
|
+
font-weight: 620;
|
|
35
|
+
color: var(--clado-ui-text);
|
|
36
|
+
padding: 0 6px;
|
|
37
|
+
max-width: 240px;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
.clado-top-pill-sep {
|
|
43
|
+
width: 1px;
|
|
44
|
+
height: 13px;
|
|
45
|
+
background: var(--clado-ui-edge);
|
|
46
|
+
margin: 0 3px;
|
|
47
|
+
flex: none;
|
|
181
48
|
}
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
if (onRename || onDelete) {
|
|
24
24
|
const ops=document.createElement('span');ops.className='document-row-ops';
|
|
25
25
|
if (onRename) {
|
|
26
|
-
const ren=document.createElement('button');ren.type='button';ren.className='doc-op-btn';ren.title='重命名画布';ren.setAttribute('aria-label','重命名画布 '+doc.file);ren.
|
|
26
|
+
const ren=document.createElement('button');ren.type='button';ren.className='doc-op-btn';ren.title='重命名画布';ren.setAttribute('aria-label','重命名画布 '+doc.file);ren.innerHTML='<svg class="clado-svg-ico" style="width:12px;height:12px" viewBox="0 0 24 24"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>';
|
|
27
27
|
ren.onclick=ev=>{ev.stopPropagation();onRename(doc);};
|
|
28
28
|
ops.append(ren);
|
|
29
29
|
}
|
|
30
30
|
if (onDelete) {
|
|
31
|
-
const del=document.createElement('button');del.type='button';del.className='doc-op-btn danger';del.title='删除画布';del.setAttribute('aria-label','删除画布 '+doc.file);del.
|
|
31
|
+
const del=document.createElement('button');del.type='button';del.className='doc-op-btn danger';del.title='删除画布';del.setAttribute('aria-label','删除画布 '+doc.file);del.innerHTML='<svg class="clado-svg-ico" style="width:12px;height:12px" viewBox="0 0 24 24"><path d="M18 6 6 18M6 6l12 12"/></svg>';
|
|
32
32
|
del.onclick=ev=>{ev.stopPropagation();onDelete(doc);};
|
|
33
33
|
ops.append(del);
|
|
34
34
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render(root,container);
|
|
41
|
-
if(!container.childElementCount){const empty=document.createElement('p');empty.className='tree-empty';empty.textContent=needle?'
|
|
41
|
+
if(!container.childElementCount){const empty=document.createElement('p');empty.className='tree-empty';empty.textContent=needle?'没有匹配的画布':'还没有可展示的画布';container.append(empty);}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
window.CladoDirectoryPlugin = (host, actions) => {
|
|
@@ -48,22 +48,22 @@
|
|
|
48
48
|
<button type="button" id="directoryButton" class="clado-ui-glass clado-ui-button directory-toggle" aria-expanded="false" aria-controls="directory" title="切换 Markdown 画布">
|
|
49
49
|
<svg aria-hidden="true" viewBox="0 0 24 24"><path d="M4 7a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z"/></svg>
|
|
50
50
|
<span id="currentWorkspaceName" hidden></span>
|
|
51
|
-
|
|
51
|
+
画布 <span id="fileCount">…</span><span id="currentFileName" hidden></span>
|
|
52
52
|
</button>
|
|
53
53
|
<aside id="directory" class="clado-ui-glass clado-ui-glass-panel" aria-label="Markdown 画布目录" hidden>
|
|
54
54
|
<div class="directory-scroll">
|
|
55
55
|
<div id="directoryHubBar" class="directory-actions" style="margin-bottom:6px;" hidden>
|
|
56
|
-
<button type="button" class="clado-ui-button" id="pickWorkspaceButton" title="
|
|
57
|
-
<button type="button" class="clado-ui-button" id="newCanvasButton" title="在当前工作区新建一张 Markdown 画布"
|
|
56
|
+
<button type="button" class="clado-ui-button" id="pickWorkspaceButton" title="返回大厅或切换项目目录">切换项目</button>
|
|
57
|
+
<button type="button" class="clado-ui-button clado-ui-button-primary" id="newCanvasButton" title="在当前工作区新建一张 Markdown 画布">+ 新建画布</button>
|
|
58
58
|
</div>
|
|
59
59
|
<div id="workspaceSection" class="directory-workspaces" hidden>
|
|
60
60
|
<div class="directory-workspaces-title">子工作区</div>
|
|
61
61
|
<div id="workspaceList" class="directory-workspace-list"></div>
|
|
62
62
|
</div>
|
|
63
|
-
<div class="directory-heading"><strong
|
|
64
|
-
<label class="directory-search"><input id="documentSearch" type="search" aria-label="
|
|
65
|
-
<nav id="documentList" aria-label="
|
|
66
|
-
<div class="directory-current"><span id="syncStatus" role="status"
|
|
63
|
+
<div class="directory-heading"><strong>画布列表</strong></div>
|
|
64
|
+
<label class="directory-search"><input id="documentSearch" type="search" aria-label="搜索画布" placeholder="搜索画布名称或路径…"></label>
|
|
65
|
+
<nav id="documentList" aria-label="可用画布"></nav>
|
|
66
|
+
<div class="directory-current"><span id="syncStatus" role="status">已连接本地工作区</span></div>
|
|
67
67
|
<div class="directory-actions"><button class="clado-ui-button" id="backButton" disabled>← 返回</button><button class="clado-ui-button" id="refreshButton" title="重新扫描目录并刷新当前文档">刷新</button><button class="clado-ui-button" id="sourceButton">源文</button></div>
|
|
68
68
|
<button id="skippedButton" class="clado-ui-button skipped" hidden></button>
|
|
69
69
|
</div>
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
function mountViewControls(host, actions) {
|
|
12
12
|
const controls = document.createElement('div');
|
|
13
13
|
controls.className = 'clado-view-controls';
|
|
14
|
+
|
|
15
|
+
const topRow = document.createElement('div');
|
|
16
|
+
topRow.className = 'clado-view-top-row';
|
|
17
|
+
|
|
14
18
|
const bar = document.createElement('div');
|
|
15
19
|
bar.className = 'clado-ui-glass clado-view-bar';
|
|
16
20
|
const group = document.createElement('div');
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
return item;
|
|
30
34
|
});
|
|
31
35
|
bar.append(group);
|
|
36
|
+
topRow.append(bar);
|
|
32
37
|
|
|
33
38
|
const statuses = document.createElement('div');
|
|
34
39
|
statuses.className = 'clado-view-status';
|
|
@@ -37,7 +42,7 @@
|
|
|
37
42
|
const exit = button('clado-ui-glass clado-ui-button', '退出聚焦');
|
|
38
43
|
exit.onclick = actions.clearFocus;
|
|
39
44
|
statuses.append(issues, exit);
|
|
40
|
-
controls.append(
|
|
45
|
+
controls.append(topRow, statuses);
|
|
41
46
|
host.mount('top-right', controls, 'clado.view-controls');
|
|
42
47
|
return ({ mode, focused = false, errors = 0, warnings = 0 }) => {
|
|
43
48
|
group.style.setProperty('--clado-view-index', String(Math.max(0, modes.findIndex(entry => entry[0] === mode))));
|
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
.clado-view-controls {
|
|
2
|
-
|
|
1
|
+
.clado-view-controls {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: end;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
}
|
|
8
|
+
.clado-view-top-row {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 9px;
|
|
12
|
+
}
|
|
13
|
+
.clado-view-bar {
|
|
14
|
+
padding: 4px;
|
|
15
|
+
border-radius: 999px;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
.clado-view-bar::after {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 14px;
|
|
22
|
+
right: 14px;
|
|
23
|
+
bottom: -5px;
|
|
24
|
+
height: 14px;
|
|
25
|
+
border-radius: 999px;
|
|
26
|
+
background: linear-gradient(90deg, rgba(56, 189, 248, 0.42), rgba(167, 139, 250, 0.34), rgba(244, 114, 182, 0.24));
|
|
27
|
+
filter: blur(15px);
|
|
28
|
+
opacity: 0.28;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
z-index: -2;
|
|
31
|
+
}
|
|
3
32
|
.clado-view-modes {
|
|
4
33
|
position: relative;
|
|
5
34
|
display: grid;
|
|
@@ -9,12 +38,13 @@
|
|
|
9
38
|
.clado-view-modes .clado-ui-button:hover:where(:not(:disabled)),
|
|
10
39
|
.clado-view-modes .clado-ui-button[aria-pressed="true"] {
|
|
11
40
|
position: relative;
|
|
12
|
-
min-height:
|
|
13
|
-
padding
|
|
41
|
+
min-height: 30px;
|
|
42
|
+
padding: 5px 14px;
|
|
43
|
+
font-size: 12px;
|
|
14
44
|
background: transparent;
|
|
15
45
|
border-color: transparent;
|
|
16
46
|
box-shadow: none;
|
|
17
|
-
border-radius:
|
|
47
|
+
border-radius: 999px;
|
|
18
48
|
}
|
|
19
49
|
.clado-view-modes .clado-ui-button:hover:where(:not(:disabled):not([aria-pressed="true"])) {
|
|
20
50
|
color: var(--clado-ui-text);
|
|
@@ -27,7 +57,7 @@
|
|
|
27
57
|
position: absolute;
|
|
28
58
|
inset: 0 auto 0 0;
|
|
29
59
|
width: calc(100% / 3);
|
|
30
|
-
border-radius:
|
|
60
|
+
border-radius: 999px;
|
|
31
61
|
border: 1px solid var(--clado-ui-glass-outline);
|
|
32
62
|
background: var(--clado-ui-active);
|
|
33
63
|
box-shadow: var(--clado-ui-active-shadow);
|
|
@@ -35,29 +65,10 @@
|
|
|
35
65
|
transition: transform 220ms cubic-bezier(.22,.75,.24,1);
|
|
36
66
|
pointer-events: none;
|
|
37
67
|
}
|
|
38
|
-
@media (prefers-reduced-motion: reduce) {
|
|
39
|
-
.clado-view-thumb { transition: none; }
|
|
40
|
-
}
|
|
41
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
42
|
-
.clado-view-thumb { background: var(--clado-ui-active); }
|
|
43
|
-
}
|
|
44
68
|
.clado-view-status { display: flex; gap: 6px; }
|
|
45
69
|
.clado-view-bar, .clado-view-status > * { pointer-events: auto; }
|
|
46
|
-
.clado-view-status .clado-ui-button { border-radius:
|
|
47
|
-
.clado-view-status .clado-issue-count {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
--clado-ui-glass-fill: var(--clado-ui-surface);
|
|
52
|
-
}
|
|
53
|
-
.clado-view-status .clado-issue-count::after { display: none; }
|
|
54
|
-
.clado-view-status .clado-issue-count:hover:where(:not(:disabled)) {
|
|
55
|
-
background: color-mix(in srgb, var(--clado-ui-accent) 6%, transparent);
|
|
56
|
-
}
|
|
57
|
-
.clado-view-status .has-errors { color: #b72e3c; }
|
|
58
|
-
[data-theme="dark"] .clado-view-status .clado-issue-count { color: #efb860; }
|
|
59
|
-
[data-theme="dark"] .clado-view-status .has-errors { color: #ffacb6; }
|
|
60
|
-
|
|
61
|
-
@media (max-width: 680px) {
|
|
62
|
-
.clado-view-modes .clado-ui-button { padding-inline: 11px; min-height: 36px; font-size: 12.5px; }
|
|
63
|
-
}
|
|
70
|
+
.clado-view-status .clado-ui-button { border-radius: 999px; font-size: 12px; }
|
|
71
|
+
.clado-view-status .clado-issue-count { color: #b45309; }
|
|
72
|
+
.clado-view-status .has-errors { color: #be123c; }
|
|
73
|
+
[data-theme="dark"] .clado-view-status .clado-issue-count { color: #fcd34d; }
|
|
74
|
+
[data-theme="dark"] .clado-view-status .has-errors { color: #fda4af; }
|
package/skills/clado/SKILL.md
CHANGED
|
@@ -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`;管理工作区周期定时唤醒(支持 `onlyIfActive` 无活跃零消耗跳过)与 6 大类系统事件订阅 |
|
|
83
85
|
|
|
84
|
-
|
|
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
|
-
|
|
212
|
+
交付前重新读取关键节点、检查引用并实际看网页;多卡画布应保持从左到右的单向无环流(DAG),严禁尾连头反向回环或双向互连,克制单卡跨卡连线数量(建议 1–3 条)且不留孤立卡片(单卡豁免)。按语义展开层级,不跳级、不凑L6;代码、表格、Mermaid、` ```svg ` 矢量图/轻动效、` ```ui ` 隔离沙盒 UI 原型及本地音视频(``)解释所属逻辑,不用巨型Mermaid代替节点。方法卡按当前模板说明职责、输入输出、内部步骤和失败出口。
|
|
211
213
|
|
|
212
214
|
事实需核对材料,新设计标提案,未知项保留待确认。工具不执行业务代码、SQL、迁移或发布任务,未执行的验证不能写成通过。最后说明修改文档、未决项、实际检查和打开方式;离线交付使用 `clado build`,默认输出可携带目录导航的只读 `clado.html`。
|