clew-code 0.2.22 → 0.2.23

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/docs/tools.html CHANGED
@@ -1,172 +1,183 @@
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>Tools — Clew Code</title>
7
- <meta name="description" href="50+ built-in tools available in Clew Code.">
8
- <link rel="icon" type="image/svg+xml" href="assets/clew.svg">
9
- <link rel="preconnect" href="https://fonts.googleapis.com">
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
- </head>
13
- <body>
14
- <header class="header"></header>
15
- <div id="sidebarOverlay" class="sidebar-overlay"></div>
16
- <aside id="sidebar" class="sidebar"></aside>
17
-
18
- <div class="content-wrap">
19
- <div class="content">
20
-
21
- <div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span class="current">Tools</span></div>
22
-
23
- <h1>Tools</h1>
24
- <p class="sub">Clew Code ships with 50+ built-in tools for file operations, code search, shell commands, web access, browser automation, PR management, mesh networking, and more.</p>
25
-
26
- <h2 id="file">File Tools</h2>
27
- <table>
28
- <thead>
29
- <tr><th>Tool</th><th>Description</th></tr>
30
- </thead>
31
- <tbody>
32
- <tr><td>Read</td><td>Read files (text, images, PDFs, notebooks)</td></tr>
33
- <tr><td>Write</td><td>Create or overwrite files</td></tr>
34
- <tr><td>Edit</td><td>Exact string replacements in files</td></tr>
35
- <tr><td>Glob</td><td>Fast file pattern matching</td></tr>
36
- <tr><td>Grep</td><td>Content search with ripgrep</td></tr>
37
- <tr><td>NotebookEdit</td><td>Edit Jupyter notebook cells</td></tr>
38
- </tbody>
39
- </table>
40
-
41
- <h2 id="shell">Shell &amp; Execution Tools</h2>
42
- <table>
43
- <thead>
44
- <tr><th>Tool</th><th>Description</th></tr>
45
- </thead>
46
- <tbody>
47
- <tr><td>Bash</td><td>Execute shell commands (with timeout and output cap)</td></tr>
48
- <tr><td>Monitor</td><td>Stream background task output in real-time</td></tr>
49
- </tbody>
50
- </table>
51
-
52
- <h2 id="web">Web Tools</h2>
53
- <table>
54
- <thead>
55
- <tr><th>Tool</th><th>Description</th></tr>
56
- </thead>
57
- <tbody>
58
- <tr><td>WebSearch</td><td>Web search with domain filtering</td></tr>
59
- <tr><td>WebFetch</td><td>Fetch and analyze URL content</td></tr>
60
- <tr><td>Browser</td><td>Stealth Playwright browser (navigate, click, fill, screenshot, etc.)</td></tr>
61
- </tbody>
62
- </table>
63
-
64
- <h2 id="git">Git &amp; PR Tools</h2>
65
- <table>
66
- <thead>
67
- <tr><th>Tool</th><th>Description</th></tr>
68
- </thead>
69
- <tbody>
70
- <tr><td>PR</td><td>Full PR lifecycle (create, list, view, review, merge, status)</td></tr>
71
- </tbody>
72
- </table>
73
-
74
- <h2 id="data">Data Tools</h2>
75
- <table>
76
- <thead>
77
- <tr><th>Tool</th><th>Description</th></tr>
78
- </thead>
79
- <tbody>
80
- <tr><td>JsonPath</td><td>Query, validate, format, minify JSON</td></tr>
81
- </tbody>
82
- </table>
83
-
84
- <h2 id="mesh">Mesh Networking Tools</h2>
85
- <p>15 LAN coordination tools available for agent-to-agent communication:</p>
86
- <table>
87
- <thead>
88
- <tr><th>Tool</th><th>Description</th></tr>
89
- </thead>
90
- <tbody>
91
- <tr><td>mesh_discover</td><td>Scan LAN for Clew instances</td></tr>
92
- <tr><td>mesh_run</td><td>Execute shell command on a remote peer</td></tr>
93
- <tr><td>mesh_spawn</td><td>Spawn a new local peer Clew instance</td></tr>
94
- <tr><td>mesh_share</td><td>Advertise this instance as a worker</td></tr>
95
- <tr><td>mesh_join</td><td>Connect to a remote peer</td></tr>
96
- <tr><td>mesh_ping</td><td>Check if a peer is online</td></tr>
97
- <tr><td>mesh_broadcast</td><td>Send task to all connected peers</td></tr>
98
- <tr><td>mesh_send_message</td><td>Send a chat message to a peer</td></tr>
99
- <tr><td>mesh_list_roles</td><td>List all peers with roles</td></tr>
100
- <tr><td>mesh_list_messages</td><td>List chat history with a peer</td></tr>
101
- <tr><td>mesh_set_name</td><td>Assign a custom name to a peer</td></tr>
102
- <tr><td>mesh_set_role</td><td>Assign a role to a peer</td></tr>
103
- <tr><td>mesh_disconnect</td><td>Remove a peer connection</td></tr>
104
- <tr><td>mesh_info</td><td>Show detailed peer information</td></tr>
105
- <tr><td>mesh_help</td><td>Mesh tool reference</td></tr>
106
- </tbody>
107
- </table>
108
-
109
- <h2 id="mcp-tools">MCP Tools</h2>
110
- <table>
111
- <thead>
112
- <tr><th>Tool</th><th>Description</th></tr>
113
- </thead>
114
- <tbody>
115
- <tr><td>ListMcpResourcesTool</td><td>List available MCP resources</td></tr>
116
- <tr><td>ReadMcpResourceTool</td><td>Read a specific MCP resource</td></tr>
117
- </tbody>
118
- </table>
119
-
120
- <h2 id="process">Process Mesh Tools</h2>
121
- <table>
122
- <thead>
123
- <tr><th>Tool</th><th>Description</th></tr>
124
- </thead>
125
- <tbody>
126
- <tr><td>process_mesh</td><td>Run a local process-backed AI worker (Codex exec/pty)</td></tr>
127
- </tbody>
128
- </table>
129
-
130
- <h2 id="task">Task &amp; Planning Tools</h2>
131
- <table>
132
- <thead>
133
- <tr><th>Tool</th><th>Description</th></tr>
134
- </thead>
135
- <tbody>
136
- <tr><td>TaskCreate</td><td>Create a structured task</td></tr>
137
- <tr><td>TaskUpdate</td><td>Update task status</td></tr>
138
- <tr><td>TaskList</td><td>List all tasks</td></tr>
139
- <tr><td>TaskGet</td><td>Get task details</td></tr>
140
- <tr><td>TaskStop</td><td>Stop a running task</td></tr>
141
- <tr><td>EnterPlanMode</td><td>Enter full-access planning mode</td></tr>
142
- <tr><td>ExitPlanMode</td><td>Exit planning mode with approval</td></tr>
143
- <tr><td>EnterWorktree</td><td>Create and enter an isolated worktree</td></tr>
144
- <tr><td>ExitWorktree</td><td>Exit and clean up a worktree</td></tr>
145
- </tbody>
146
- </table>
147
-
148
- <h2 id="voice">Voice Tools</h2>
149
- <table>
150
- <thead>
151
- <tr><th>Tool</th><th>Description</th></tr>
152
- </thead>
153
- <tbody>
154
- <tr><td>Voice tools</td><td>Voice recording, transcription (Whisper), session management</td></tr>
155
- </tbody>
156
- </table>
157
-
158
- <h2 id="skill">Skill Tools</h2>
159
- <table>
160
- <thead>
161
- <tr><th>Tool</th><th>Description</th></tr>
162
- </thead>
163
- <tbody>
164
- <tr><td>Skill</td><td>Execute a skill within the conversation</td></tr>
165
- </tbody>
166
- </table>
167
- </div>
168
- </div>
169
-
170
- <script src="js/main.js"></script>
171
- </body>
172
- </html>
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>Tools — Clew Code</title>
7
+ <meta name="description" href="50+ built-in tools available in Clew Code.">
8
+ <link rel="icon" type="image/svg+xml" href="assets/clew.svg">
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
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
+ </head>
13
+ <body>
14
+ <header class="header"></header>
15
+ <div id="sidebarOverlay" class="sidebar-overlay"></div>
16
+ <aside id="sidebar" class="sidebar"></aside>
17
+
18
+ <div class="content-wrap">
19
+ <div class="content">
20
+
21
+ <div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span class="current">Tools</span></div>
22
+
23
+ <h1>Tools</h1>
24
+ <p class="sub">Clew Code ships with 50+ built-in tools for file operations, code search, shell commands, web access, browser automation, PR management, mesh networking, and more.</p>
25
+
26
+ <h2 id="file">File Tools</h2>
27
+ <table>
28
+ <thead>
29
+ <tr><th>Tool</th><th>Description</th></tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr><td>Read</td><td>Read files (text, images, PDFs, notebooks)</td></tr>
33
+ <tr><td>Write</td><td>Create or overwrite files</td></tr>
34
+ <tr><td>Edit</td><td>Exact string replacements in files</td></tr>
35
+ <tr><td>Glob</td><td>Fast file pattern matching</td></tr>
36
+ <tr><td>Grep</td><td>Content search with ripgrep</td></tr>
37
+ <tr><td>NotebookEdit</td><td>Edit Jupyter notebook cells</td></tr>
38
+ </tbody>
39
+ </table>
40
+
41
+ <h2 id="shell">Shell &amp; Execution Tools</h2>
42
+ <table>
43
+ <thead>
44
+ <tr><th>Tool</th><th>Description</th></tr>
45
+ </thead>
46
+ <tbody>
47
+ <tr><td>Bash</td><td>Execute shell commands (with timeout and output cap)</td></tr>
48
+ <tr><td>Monitor</td><td>Stream background task output in real-time</td></tr>
49
+ </tbody>
50
+ </table>
51
+
52
+ <h2 id="web">Web Tools</h2>
53
+ <table>
54
+ <thead>
55
+ <tr><th>Tool</th><th>Description</th></tr>
56
+ </thead>
57
+ <tbody>
58
+ <tr><td>WebSearch</td><td>Web search with domain filtering</td></tr>
59
+ <tr><td>WebFetch</td><td>Fetch and analyze URL content</td></tr>
60
+ <tr><td>Browser</td><td>Stealth Playwright browser (navigate, click, fill, screenshot, etc.)</td></tr>
61
+ </tbody>
62
+ </table>
63
+
64
+ <h2 id="git">Git &amp; PR Tools</h2>
65
+ <table>
66
+ <thead>
67
+ <tr><th>Tool</th><th>Description</th></tr>
68
+ </thead>
69
+ <tbody>
70
+ <tr><td>PR</td><td>Full PR lifecycle (create, list, view, review, merge, status)</td></tr>
71
+ </tbody>
72
+ </table>
73
+
74
+ <h2 id="data">Data Tools</h2>
75
+ <table>
76
+ <thead>
77
+ <tr><th>Tool</th><th>Description</th></tr>
78
+ </thead>
79
+ <tbody>
80
+ <tr><td>JsonPath</td><td>Query, validate, format, minify JSON</td></tr>
81
+ </tbody>
82
+ </table>
83
+
84
+ <h2 id="mesh">Mesh Networking Tools</h2>
85
+ <p>15 LAN coordination tools available for agent-to-agent communication:</p>
86
+ <table>
87
+ <thead>
88
+ <tr><th>Tool</th><th>Description</th></tr>
89
+ </thead>
90
+ <tbody>
91
+ <tr><td>mesh_discover</td><td>Scan LAN for Clew instances</td></tr>
92
+ <tr><td>mesh_run</td><td>Execute shell command on a remote peer</td></tr>
93
+ <tr><td>mesh_spawn</td><td>Spawn a new local peer Clew instance</td></tr>
94
+ <tr><td>mesh_share</td><td>Advertise this instance as a worker</td></tr>
95
+ <tr><td>mesh_join</td><td>Connect to a remote peer</td></tr>
96
+ <tr><td>mesh_ping</td><td>Check if a peer is online</td></tr>
97
+ <tr><td>mesh_broadcast</td><td>Send task to all connected peers</td></tr>
98
+ <tr><td>mesh_send_message</td><td>Send a chat message to a peer</td></tr>
99
+ <tr><td>mesh_list_roles</td><td>List all peers with roles</td></tr>
100
+ <tr><td>mesh_list_messages</td><td>List chat history with a peer</td></tr>
101
+ <tr><td>mesh_set_name</td><td>Assign a custom name to a peer</td></tr>
102
+ <tr><td>mesh_set_role</td><td>Assign a role to a peer</td></tr>
103
+ <tr><td>mesh_disconnect</td><td>Remove a peer connection</td></tr>
104
+ <tr><td>mesh_info</td><td>Show detailed peer information</td></tr>
105
+ <tr><td>mesh_help</td><td>Mesh tool reference</td></tr>
106
+ </tbody>
107
+ </table>
108
+
109
+ <h2 id="mcp-tools">MCP Tools</h2>
110
+ <table>
111
+ <thead>
112
+ <tr><th>Tool</th><th>Description</th></tr>
113
+ </thead>
114
+ <tbody>
115
+ <tr><td>ListMcpResourcesTool</td><td>List available MCP resources</td></tr>
116
+ <tr><td>ReadMcpResourceTool</td><td>Read a specific MCP resource</td></tr>
117
+ </tbody>
118
+ </table>
119
+
120
+ <h2 id="process">Process Mesh Tools</h2>
121
+ <table>
122
+ <thead>
123
+ <tr><th>Tool</th><th>Description</th></tr>
124
+ </thead>
125
+ <tbody>
126
+ <tr><td>process_mesh</td><td>Run a local process-backed AI worker (Codex exec/pty)</td></tr>
127
+ </tbody>
128
+ </table>
129
+
130
+ <h2 id="task">Task &amp; Planning Tools</h2>
131
+ <table>
132
+ <thead>
133
+ <tr><th>Tool</th><th>Description</th></tr>
134
+ </thead>
135
+ <tbody>
136
+ <tr><td>TaskCreate</td><td>Create a structured task</td></tr>
137
+ <tr><td>TaskUpdate</td><td>Update task status</td></tr>
138
+ <tr><td>TaskList</td><td>List all tasks</td></tr>
139
+ <tr><td>TaskGet</td><td>Get task details</td></tr>
140
+ <tr><td>TaskStop</td><td>Stop a running task</td></tr>
141
+ <tr><td>EnterPlanMode</td><td>Enter full-access planning mode</td></tr>
142
+ <tr><td>ExitPlanMode</td><td>Exit planning mode with approval</td></tr>
143
+ <tr><td>EnterWorktree</td><td>Create and enter an isolated worktree</td></tr>
144
+ <tr><td>ExitWorktree</td><td>Exit and clean up a worktree</td></tr>
145
+ </tbody>
146
+ </table>
147
+
148
+ <h2 id="voice">Voice Tools</h2>
149
+ <table>
150
+ <thead>
151
+ <tr><th>Tool</th><th>Description</th></tr>
152
+ </thead>
153
+ <tbody>
154
+ <tr><td>Voice tools</td><td>Voice recording, transcription (Whisper), session management</td></tr>
155
+ </tbody>
156
+ </table>
157
+
158
+ <h2 id="generation">Generation Tools</h2>
159
+ <table>
160
+ <thead>
161
+ <tr><th>Tool</th><th>Description</th></tr>
162
+ </thead>
163
+ <tbody>
164
+ <tr><td>GenerateImage</td><td>Generate images via DALL-E 3, Imagen 3, or OpenRouter (Gemini Image / FLUX). Auto-discovers models from provider APIs. Saves images to <code>.clew/generated/</code>.</td></tr>
165
+ <tr><td>GenerateVideo</td><td>Generate videos via Runway Gen-4. Async polling with timeout. Saves videos to <code>.clew/generated/</code>. Requires <code>RUNWAY_API_KEY</code>.</td></tr>
166
+ </tbody>
167
+ </table>
168
+
169
+ <h2 id="skill">Skill Tools</h2>
170
+ <table>
171
+ <thead>
172
+ <tr><th>Tool</th><th>Description</th></tr>
173
+ </thead>
174
+ <tbody>
175
+ <tr><td>Skill</td><td>Execute a skill within the conversation</td></tr>
176
+ </tbody>
177
+ </table>
178
+ </div>
179
+ </div>
180
+
181
+ <script src="js/main.js"></script>
182
+ </body>
183
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clew-code",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "ClewCode — multi-provider AI coding agent CLI",
5
5
  "main": "./dist/main.js",
6
6
  "type": "module",