clew-code 0.2.20 → 0.2.22

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.
Files changed (66) hide show
  1. package/dist/main.js +1888 -1883
  2. package/docs/architecture.html +91 -148
  3. package/docs/assets/clew-agent-loop.png +0 -0
  4. package/docs/assets/clew-general-architecture.png +0 -0
  5. package/docs/assets/clew-mcp-architecture.png +0 -0
  6. package/docs/assets/clew-p2p-swarm.png +0 -0
  7. package/docs/changelog.html +150 -0
  8. package/docs/cli-reference.html +90 -0
  9. package/docs/commands.html +156 -265
  10. package/docs/configuration.html +85 -147
  11. package/docs/contributing.html +91 -0
  12. package/docs/css/styles.css +425 -425
  13. package/docs/daemon.html +62 -129
  14. package/docs/features/bridge-mode.html +61 -66
  15. package/docs/features/evals.html +57 -149
  16. package/docs/features/searxng-search.html +58 -118
  17. package/docs/features/sentry-setup.html +61 -124
  18. package/docs/index.html +137 -125
  19. package/docs/installation.html +77 -105
  20. package/docs/internals/growthbook-ab-testing.html +69 -91
  21. package/docs/internals/hidden-features.html +81 -143
  22. package/docs/js/main.js +29 -0
  23. package/docs/loop.html +69 -181
  24. package/docs/mcp.html +99 -247
  25. package/docs/models.html +69 -110
  26. package/docs/permission-model.html +86 -102
  27. package/docs/plugins.html +84 -102
  28. package/docs/providers.html +87 -127
  29. package/docs/quick-start.html +81 -93
  30. package/docs/research-memory.html +71 -102
  31. package/docs/security.html +71 -0
  32. package/docs/skills.html +67 -117
  33. package/docs/swarm.html +78 -236
  34. package/docs/tools.html +152 -151
  35. package/docs/troubleshooting.html +86 -106
  36. package/docs/voice-mode.html +79 -0
  37. package/package.json +1 -1
  38. package/docs/architecture.th.html +0 -79
  39. package/docs/clew-code-architecture.html +0 -1126
  40. package/docs/commands.th.html +0 -269
  41. package/docs/configuration.th.html +0 -108
  42. package/docs/daemon.th.html +0 -73
  43. package/docs/features/bridge-mode.th.html +0 -62
  44. package/docs/features/evals.th.html +0 -62
  45. package/docs/features/searxng-search.th.html +0 -67
  46. package/docs/features/sentry-setup.th.html +0 -69
  47. package/docs/features/swarm.html +0 -156
  48. package/docs/generated/providers.html +0 -625
  49. package/docs/generated/tools.html +0 -558
  50. package/docs/index.th.html +0 -292
  51. package/docs/installation.th.html +0 -105
  52. package/docs/internals/growthbook-ab-testing.th.html +0 -60
  53. package/docs/internals/hidden-features.th.html +0 -107
  54. package/docs/loop.th.html +0 -227
  55. package/docs/mcp.th.html +0 -207
  56. package/docs/models.th.html +0 -61
  57. package/docs/permission-model.th.html +0 -67
  58. package/docs/plugins.th.html +0 -79
  59. package/docs/prompts-and-features.html +0 -806
  60. package/docs/providers.th.html +0 -81
  61. package/docs/quick-start.th.html +0 -89
  62. package/docs/research-memory.th.html +0 -72
  63. package/docs/skills.th.html +0 -90
  64. package/docs/swarm.th.html +0 -280
  65. package/docs/tools.th.html +0 -84
  66. package/docs/troubleshooting.th.html +0 -85
@@ -1,62 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="th">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>การประเมินผล — Clew</title>
7
- <meta name="description" content="กรอบงานประเมินและตรวจสอบเอเจนต์เขียนโค้ด AI แบบออฟไลน์">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="../css/styles.css">
12
- <link rel="icon" type="image/svg+xml" href="../assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
- <div class="app">
17
- <aside class="sidebar" id="sidebar"></aside>
18
- <div class="sidebar-overlay" id="sidebarOverlay"></div>
19
- <div class="content-wrap">
20
- <main class="content">
21
- <div class="breadcrumbs"><a href="../index.th.html">หน้าแรก</a><span class="sep">/</span><a href="../index.th.html#features">ฟีเจอร์</a><span class="sep">/</span><span>การประเมินผล</span></div>
22
- <h1>กรอบงานประเมินผล</h1>
23
- <p class="section-subtitle">กรอบงานประเมินและตรวจสอบเอเจนต์เขียนโค้ด AI แบบออฟไลน์</p>
24
-
25
- <div class="callout callout-tip">
26
- <strong>สรุป</strong>
27
- รัน <code>clew eval init</code> เพื่อสร้างโฟลเดอร์ประเมินผลในโปรเจกต์ของคุณ จากนั้นรัน <code>clew eval run</code> เพื่อรันเกณฑ์มาตรฐานการเขียนโค้ดหรือวิจัยในเครื่อง
28
- </div>
29
-
30
- <h2>ภาพรวม</h2>
31
- <p>Clew มีกรอบงานประเมินผลแบบออฟไลน์ในตัวภายใต้เนมสเปซคำสั่ง <code>/eval</code> ช่วยให้นักพัฒนาสามารถให้คะแนนคุณภาพผลลัพธ์ของเอเจนต์, ตรวจจับ regression ในร่องรอย, และเปรียบเทียบเวอร์ชันโมเดล</p>
32
-
33
- <h2>การใช้งาน CLI</h2>
34
- <h3>1. เริ่มต้น Workspace</h3>
35
- <pre><code>claude eval init</code></pre>
36
-
37
- <h3>2. รันการประเมิน</h3>
38
- <pre><code># รันงานทั้งหมด
39
- claude eval run
40
- # รันเฉพาะหมวด "coding"
41
- claude eval run --set coding
42
- # รันงานเฉพาะ
43
- claude eval run --task coding.sample-task</code></pre>
44
-
45
- <h3>3. เปรียบเทียบ Drift และ Regression</h3>
46
- <pre><code>claude eval compare --baseline main</code></pre>
47
-
48
- <footer class="footer">
49
- <span>Clew Code 0.2.14</span>
50
- <div class="footer-links">
51
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
52
- <a href="https://github.com/ClewCode/ClewCode/issues">ปัญหา</a>
53
- </div>
54
- </footer>
55
- </main>
56
- <nav class="toc-sidebar"></nav>
57
- </div>
58
- </div>
59
- <script src="../js/main.js"></script>
60
- </body>
61
- </html>
62
-
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="th">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>ค้นหา SearXNG — Clew</title>
7
- <meta name="description" content="ค้นหาเว็บแบบโฮสต์เองที่เคารพความเป็นส่วนตัวผ่าน Docker SearXNG">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="../css/styles.css">
12
- <link rel="icon" type="image/svg+xml" href="../assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
- <div class="app">
17
- <aside class="sidebar" id="sidebar"></aside>
18
- <div class="sidebar-overlay" id="sidebarOverlay"></div>
19
- <div class="content-wrap">
20
- <main class="content">
21
- <div class="breadcrumbs"><a href="../index.th.html">หน้าแรก</a><span class="sep">/</span><a href="../index.th.html#features">ฟีเจอร์</a><span class="sep">/</span><span>ค้นหา SearXNG</span></div>
22
- <h1>ค้นหา SearXNG</h1>
23
- <p class="section-subtitle">ค้นหาเว็บแบบโฮสต์เองที่เคารพความเป็นส่วนตัวผ่าน Docker</p>
24
-
25
- <div class="callout callout-tip">
26
- <strong>สรุป</strong>
27
- รัน <code>cd searxng && start.bat</code> เพื่อเริ่มเครื่องมือค้นหา จากนั้นใช้ <code>/searxng on</code> จาก CLI
28
- </div>
29
-
30
- <h2>ภาพรวม</h2>
31
- <p>SearXNG คือเครื่องมือค้นหาเมตาฟรีที่เคารพความเป็นส่วนตัว โปรเจกต์นี้มีการตั้งค่าแบบ Docker เพื่อให้คุณรันอินสแตนซ์ของคุณเองในเครื่อง</p>
32
-
33
- <h2>เริ่มต้นใช้งาน</h2>
34
- <pre><code>cd searxng
35
- start.bat</code></pre>
36
- <p>เริ่ม SearXNG ที่ <a href="http://localhost:18889">http://localhost:18889</a></p>
37
-
38
- <h3>คำสั่ง Slash</h3>
39
- <table>
40
- <tr><th>คำสั่ง</th><th>การทำงาน</th></tr>
41
- <tr><td><code>/searxng on</code></td><td>เริ่ม Docker container</td></tr>
42
- <tr><td><code>/searxng off</code></td><td>หยุด Docker container</td></tr>
43
- <tr><td><code>/searxng status</code></td><td>ตรวจสอบว่ากำลังรันอยู่</td></tr>
44
- </table>
45
-
46
- <h2>วิธีการทำงาน</h2>
47
- <ol>
48
- <li>SearXNG รันใน Docker ที่ <code>localhost:18889</code></li>
49
- <li><code>.env</code> ของโปรเจกต์ตั้งค่า <code>SEARXNG_INSTANCE_URL=http://localhost:18889</code></li>
50
- <li><code>selectBestDirectProvider()</code> ใน <code>WebSearchTool.ts</code> ตรวจจับอัตโนมัติและให้ความสำคัญ SearXNG</li>
51
- </ol>
52
-
53
- <footer class="footer">
54
- <span>Clew Code 0.2.14</span>
55
- <div class="footer-links">
56
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
57
- <a href="https://github.com/ClewCode/ClewCode/issues">ปัญหา</a>
58
- </div>
59
- </footer>
60
- </main>
61
- <nav class="toc-sidebar"></nav>
62
- </div>
63
- </div>
64
- <script src="../js/main.js"></script>
65
- </body>
66
- </html>
67
-
@@ -1,69 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="th">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Sentry การรายงานข้อผิดพลาด — Clew</title>
7
- <meta name="description" content="Sentry crash/error telemetry แบบ opt-in สำหรับ Clew — ปิดโดยค่าเริ่มต้น, ให้ความสำคัญกับความเป็นส่วนตัว">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="../css/styles.css">
12
- <link rel="icon" type="image/svg+xml" href="../assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
- <div class="app">
17
- <aside class="sidebar" id="sidebar"></aside>
18
- <div class="sidebar-overlay" id="sidebarOverlay"></div>
19
- <div class="content-wrap">
20
- <main class="content">
21
- <div class="breadcrumbs"><a href="../index.th.html">หน้าแรก</a><span class="sep">/</span><a href="../index.th.html#features">ฟีเจอร์</a><span class="sep">/</span><span>Sentry Setup</span></div>
22
- <h1>Sentry การรายงานข้อผิดพลาด</h1>
23
- <p class="section-subtitle">ระบบรายงาน crash และ error แบบ opt-in — <strong>ปิดโดยสมบูรณ์เป็นค่าเริ่มต้น</strong> ไม่มีข้อมูลออกจากเครื่องของคุณเว้นแต่คุณจะตั้งค่า <code>SENTRY_DSN</code></p>
24
-
25
- <div class="callout callout-tip">
26
- <strong>สรุป</strong>
27
- <code>SENTRY_DSN=https://key@sentry.io/123 claude</code> — เท่านั้น หากไม่มี, ไม่มีการร้องขอเครือข่าย, ไม่มี telemetry
28
- </div>
29
-
30
- <h2>เริ่มต้นใช้งาน</h2>
31
- <h3>Sentry แบบโฮสต์เอง</h3>
32
- <pre><code>SENTRY_DSN=https://public_key@your-sentry.example.com/123 claude</code></pre>
33
-
34
- <h3>Sentry Cloud</h3>
35
- <pre><code>SENTRY_DSN=https://public_key@o123456.ingest.sentry.io/789 claude</code></pre>
36
-
37
- <h2>สิ่งที่ถูกส่ง</h2>
38
- <p>เฉพาะข้อมูลเมตาของข้อผิดพลาด — <strong>ไม่เคยส่ง prompts, คำตอบ, เนื้อหาไฟล์, หรือผลลัพธ์คำสั่ง</strong>:</p>
39
- <ul>
40
- <li>ชื่อ, ข้อความ, และ stack trace ของข้อผิดพลาด</li>
41
- <li>ข้อมูลรันไทม์: แพลตฟอร์ม OS, เวอร์ชัน Node/Bun</li>
42
- <li>โหมด: REPL, ไม่โต้ตอบ, เซิร์ฟเวอร์ MCP</li>
43
- <li>ชื่อผู้ให้บริการและโมเดล</li>
44
- </ul>
45
-
46
- <h2>เครื่องมือขจัดข้อมูลส่วนตัว</h2>
47
- <p>ทุกเหตุการณ์ผ่านฮุค <code>beforeSend</code> ที่:</p>
48
- <ol>
49
- <li><strong>ล้างสตริง</strong> — ลบรูปแบบคีย์ API, ส่วนหัว auth, ค่า cookie</li>
50
- <li><strong>ลบตัวแปร stack frame</strong></li>
51
- <li><strong>ล้างข้อมูลคำขอ</strong> — ลบส่วนหัว, cookies, query strings</li>
52
- <li><strong>ตัดสตริงที่ใหญ่เกิน</strong> — เกิน 2000 ตัวอักษรถูกตัด</li>
53
- </ol>
54
-
55
- <footer class="footer">
56
- <span>Clew Code 0.2.14</span>
57
- <div class="footer-links">
58
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
59
- <a href="https://github.com/ClewCode/ClewCode/issues">ปัญหา</a>
60
- </div>
61
- </footer>
62
- </main>
63
- <nav class="toc-sidebar"></nav>
64
- </div>
65
- </div>
66
- <script src="../js/main.js"></script>
67
- </body>
68
- </html>
69
-
@@ -1,156 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Swarm — LAN Swarm Coordination — Clew</title>
7
- <meta name="description" content="LAN swarm discovery, task delegation, and autonomous AI swarm coordination in Clew.">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
11
- <link rel="stylesheet" href="../css/styles.css">
12
- <link rel="icon" type="image/svg+xml" href="../assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
-
17
-
18
- <div class="app">
19
- <aside class="sidebar" id="sidebar"></aside>
20
- <div class="sidebar-overlay" id="sidebarOverlay"></div>
21
- <div class="content-wrap">
22
- <main class="content">
23
-
24
- <div class="breadcrumbs">
25
- <a href="../index.html">Home</a>
26
- <span>›</span>
27
- <span>Swarm Coordination</span>
28
- </div>
29
-
30
- <h1>Swarm Coordination</h1>
31
- <p>
32
- Clew supports LAN swarm discovery and task delegation, enabling a lead-worker model
33
- where one instance can coordinate multiple worker instances (swarm nodes) on the same network.
34
- </p>
35
-
36
- <h2>Architecture</h2>
37
- <p>
38
- Each swarm node runs a lightweight HTTP server (PeerServer) on a random port.
39
- Discovery uses UDP multicast broadcast (239.255.37.37:42069) plus a file-based
40
- registry (<code>~/.clew/peers/</code>) for same-machine instances.
41
- </p>
42
-
43
- <pre><code>Node A (Lead) Node B (Worker)
44
- | |
45
- |--- UDP multicast query ------->|
46
- |<--- response (host, port, cwd)-|
47
- | |
48
- |--- HTTP POST /peer-todo ------>| Assign task
49
- |--- HTTP POST /peer-exec ------>| Run command
50
- |<--- response ------------------| Return result</code></pre>
51
-
52
- <h2>Getting Started</h2>
53
-
54
- <h3>Worker Setup</h3>
55
- <pre><code># Start sharing (advertise on LAN)
56
- /swarm share
57
-
58
- # Set display name and role
59
- /swarm name Build Server
60
- /swarm role builder</code></pre>
61
-
62
- <h3>Lead Setup</h3>
63
- <pre><code># Discover available swarm nodes
64
- /swarm discover
65
-
66
- # Join a specific node by port
67
- /swarm join 127.0.0.1:59421
68
-
69
- # View connected swarm nodes
70
- /swarm list</code></pre>
71
-
72
- <h3>Assign Tasks</h3>
73
- <pre><code># Direct task assignment
74
- /swarm todo Build-Server "run the test suite"
75
-
76
- # Let the AI handle it
77
- > Assign a task to the build server to run all tests</code></pre>
78
-
79
- <h2>Commands</h2>
80
- <table>
81
- <thead>
82
- <tr><th>Command</th><th>Description</th></tr>
83
- </thead>
84
- <tbody>
85
- <tr><td><code>/swarm</code></td><td>Open interactive swarm menu</td></tr>
86
- <tr><td><code>/swarm share</code></td><td>Start advertising as a worker</td></tr>
87
- <tr><td><code>/swarm share stop</code></td><td>Stop advertising</td></tr>
88
- <tr><td><code>/swarm discover</code></td><td>Scan LAN for swarm nodes (5s timeout)</td></tr>
89
- <tr><td><code>/swarm join &lt;port&gt;</code></td><td>Connect to a swarm node by port or host:port</td></tr>
90
- <tr><td><code>/swarm list</code></td><td>Open interactive swarm node list</td></tr>
91
- <tr><td><code>/swarm todo &lt;node&gt; &lt;task&gt;</code></td><td>Assign a task to a worker node</td></tr>
92
- <tr><td><code>/swarm todos</code></td><td>View received tasks</td></tr>
93
- <tr><td><code>/swarm todo done &lt;id&gt;</code></td><td>Mark task as complete</td></tr>
94
- <tr><td><code>/swarm name &lt;name&gt;</code></td><td>Set your display name</td></tr>
95
- <tr><td><code>/swarm role &lt;role&gt;</code></td><td>Set your role (e.g., builder, tester)</td></tr>
96
- <tr><td><code>/swarm inbox</code></td><td>View pending messages</td></tr>
97
- <tr><td><code>/swarm spawn [options]</code></td><td>Spawn a new swarm node shell terminal</td></tr>
98
- <tr><td><code>/swarm help</code></td><td>Show help</td></tr>
99
- </tbody>
100
- </table>
101
-
102
- <h2>AI Swarm Tools</h2>
103
- <p>
104
- Clew AI can autonomously coordinate swarm nodes using these tools:
105
- </p>
106
- <table>
107
- <thead>
108
- <tr><th>Tool</th><th>Description</th></tr>
109
- </thead>
110
- <tbody>
111
- <tr><td><code>peer_discover</code></td><td>Scan for swarm workers on LAN and same machine</td></tr>
112
- <tr><td><code>peer_join</code></td><td>Connect to a remote swarm node by host:port</td></tr>
113
- <tr><td><code>peer_send_task</code></td><td>Assign a task to a worker via HTTP POST</td></tr>
114
- <tr><td><code>peer_list_tasks</code></td><td>Check pending and completed tasks</td></tr>
115
- <tr><td><code>peer_list_roles</code></td><td>List all swarm nodes with names, roles, and IPs</td></tr>
116
- <tr><td><code>peer_run</code></td><td>Execute a shell command on a remote worker</td></tr>
117
- <tr><td><code>peer_share</code></td><td>Start or stop advertising as a worker</td></tr>
118
- <tr><td><code>peer_info</code></td><td>Get detailed info about a specific swarm node</td></tr>
119
- <tr><td><code>peer_set_name</code></td><td>Set display name for a swarm node</td></tr>
120
- <tr><td><code>peer_set_role</code></td><td>Set role for a swarm node</td></tr>
121
- </tbody>
122
- </table>
123
-
124
- <h2>Protocol</h2>
125
- <p>Discovery uses UDP multicast on <code>239.255.37.37:42069</code>. Node info is broadcast every 30 seconds. Nodes are evicted after 90 seconds of inactivity.</p>
126
- <p>Communication uses HTTP POST to registered node endpoints:</p>
127
- <table>
128
- <thead>
129
- <tr><th>Endpoint</th><th>Method</th><th>Description</th></tr>
130
- </thead>
131
- <tbody>
132
- <tr><td><code>/peer-info</code></td><td>GET</td><td>Get node metadata (host, port, cwd, name, role)</td></tr>
133
- <tr><td><code>/peer-todo</code></td><td>POST</td><td>Accept inbound task assignment</td></tr>
134
- <tr><td><code>/peer-msg</code></td><td>POST</td><td>Accept inbound message</td></tr>
135
- <tr><td><code>/peer-exec</code></td><td>POST</td><td>Accept shell command execution</td></tr>
136
- </tbody>
137
- </table>
138
-
139
- <!-- ─── Footer ─── -->
140
- <footer class="footer">
141
- <span>Clew 0.2.14 — Open Source</span>
142
- <div class="footer-links">
143
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
144
- <a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
145
- </div>
146
- </footer>
147
-
148
- </main>
149
- <nav class="toc-sidebar"></nav>
150
- </div>
151
- </div>
152
-
153
- <script src="../js/main.js"></script>
154
- </body>
155
- </html>
156
-