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
|
@@ -1,10 +1,45 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="zh-CN" data-theme="light">
|
|
3
|
-
<head
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=4,user-scalable=yes,viewport-fit=cover">
|
|
6
|
+
<title>Clado · 空间画布工作台</title>
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='2' y='2' width='60' height='60' rx='16' fill='%23eef4ff' stroke='%2393c5fd' stroke-width='2'/%3E%3Cpath d='M40.5 23.2C38.6 20.6 35.6 19 32.1 19C25.5 19 20.5 24.4 20.5 32C20.5 39.6 25.5 45 32.1 45C35.7 45 38.7 43.3 40.6 40.6' fill='none' stroke='%231e3a5f' stroke-width='5.2' stroke-linecap='round'/%3E%3Ccircle cx='43.5' cy='32' r='3.4' fill='%2338bdf8'/%3E%3C/svg%3E">
|
|
8
|
+
<link rel="stylesheet" href="library.css">
|
|
9
|
+
<!--CLADO-PLUGIN-STYLES-->
|
|
10
|
+
</head>
|
|
4
11
|
<body>
|
|
5
|
-
<div
|
|
6
|
-
<
|
|
12
|
+
<div id="clado-viewport">
|
|
13
|
+
<div id="clado-stage">
|
|
14
|
+
<div class="clado-ambient-light" aria-hidden="true">
|
|
15
|
+
<div class="clado-ambient-blob b1"></div>
|
|
16
|
+
<div class="clado-ambient-blob b2"></div>
|
|
17
|
+
<div class="clado-ambient-blob b3"></div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="viewer">
|
|
21
|
+
<main>
|
|
22
|
+
<div id="updateError" class="update-error" role="alert" hidden></div>
|
|
23
|
+
<iframe id="canvas" title="当前 Markdown 的卡片、脑图与文档"></iframe>
|
|
24
|
+
<div id="canvasLoading" class="canvas-loading">正在读取画布…</div>
|
|
25
|
+
<div id="emptyState" class="empty-state" hidden><p>目录中还没有画布,可通过工作区引导分析代码或连接本地 MCP 创建。</p></div>
|
|
26
|
+
</main>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<section id="clado-lobby" class="clado-lobby" hidden aria-label="工作区大厅"></section>
|
|
30
|
+
<div id="clado-stage-banner" class="clado-stage-banner" hidden role="status" aria-live="polite"></div>
|
|
31
|
+
<aside id="clado-code-drawer" class="clado-code-drawer" hidden aria-label="实时代码与 Git Diff 查看器"></aside>
|
|
32
|
+
<div id="clado-toast" class="clado-toast" role="status" aria-live="polite"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="clado-mobile-zoom-hud" class="clado-mobile-zoom-hud" aria-label="画布缩放控制">
|
|
36
|
+
<button type="button" class="clado-mz-btn" data-mz-out>−</button>
|
|
37
|
+
<button type="button" class="clado-mz-btn" data-mz-fit>适应</button>
|
|
38
|
+
<button type="button" class="clado-mz-btn" data-mz-in>+</button>
|
|
39
|
+
<span class="clado-mz-hint">双指缩放 / 拖拽</span>
|
|
40
|
+
</div>
|
|
7
41
|
</div>
|
|
8
42
|
<!--CLADO-PLUGIN-SCRIPTS-->
|
|
9
43
|
<script src="library.js"></script>
|
|
10
|
-
</body
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|