@claude-code-kit/tools 0.2.0 → 0.3.0

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 CHANGED
@@ -6,13 +6,13 @@ Built-in tool collection for the [claude-code-kit](https://github.com/Minnzen/cl
6
6
 
7
7
  | Tool | Description | Read-only |
8
8
  |------|-------------|-----------|
9
- | `bash` | Execute shell commands | No |
10
- | `read` | Read file contents with line numbers | Yes |
11
- | `edit` | Edit files via unique string replacement | No |
12
- | `write` | Write/create files with auto-mkdir | No |
13
- | `glob` | Find files by glob pattern | Yes |
14
- | `grep` | Search file contents with regex | Yes |
15
- | `web_fetch` | Make HTTP requests | Yes (GET) |
9
+ | `Bash` | Execute shell commands | No |
10
+ | `Read` | Read file contents with line numbers | Yes |
11
+ | `Edit` | Edit files via unique string replacement | No |
12
+ | `Write` | Write/create files with auto-mkdir | No |
13
+ | `Glob` | Find files by glob pattern | Yes |
14
+ | `Grep` | Search file contents with regex | Yes |
15
+ | `WebFetch` | Make HTTP requests | Yes (GET) |
16
16
 
17
17
  ## Usage
18
18
 
package/dist/index.d.mts CHANGED
@@ -1,62 +1,208 @@
1
1
  import { z } from 'zod';
2
2
  import { ToolDefinition } from '@claude-code-kit/agent';
3
3
 
4
- declare const inputSchema$6: z.ZodObject<{
4
+ declare const inputSchema$c: z.ZodObject<{
5
5
  command: z.ZodString;
6
+ description: z.ZodString;
6
7
  cwd: z.ZodOptional<z.ZodString>;
7
8
  timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
+ run_in_background: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
+ dangerously_disable_sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
11
  }, z.core.$strip>;
9
- type Input$6 = z.infer<typeof inputSchema$6>;
10
- declare const bashTool: ToolDefinition<Input$6>;
12
+ type Input$c = z.infer<typeof inputSchema$c>;
13
+ declare const bashTool: ToolDefinition<Input$c>;
11
14
 
12
- declare const inputSchema$5: z.ZodObject<{
13
- path: z.ZodString;
15
+ declare const inputSchema$b: z.ZodObject<{
16
+ file_path: z.ZodString;
14
17
  offset: z.ZodOptional<z.ZodNumber>;
15
18
  limit: z.ZodOptional<z.ZodNumber>;
19
+ pages: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ type Input$b = z.infer<typeof inputSchema$b>;
22
+ declare const readTool: ToolDefinition<Input$b>;
23
+
24
+ declare const inputSchema$a: z.ZodObject<{
25
+ file_path: z.ZodString;
26
+ old_string: z.ZodString;
27
+ new_string: z.ZodString;
28
+ replace_all: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
29
+ }, z.core.$strip>;
30
+ type Input$a = z.infer<typeof inputSchema$a>;
31
+ declare const editTool: ToolDefinition<Input$a>;
32
+
33
+ declare const inputSchema$9: z.ZodObject<{
34
+ file_path: z.ZodString;
35
+ content: z.ZodString;
36
+ }, z.core.$strip>;
37
+ type Input$9 = z.infer<typeof inputSchema$9>;
38
+ declare const writeTool: ToolDefinition<Input$9>;
39
+
40
+ declare const inputSchema$8: z.ZodObject<{
41
+ pattern: z.ZodString;
42
+ path: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ type Input$8 = z.infer<typeof inputSchema$8>;
45
+ declare const globTool: ToolDefinition<Input$8>;
46
+
47
+ declare const inputSchema$7: z.ZodObject<{
48
+ pattern: z.ZodString;
49
+ path: z.ZodOptional<z.ZodString>;
50
+ glob: z.ZodOptional<z.ZodString>;
51
+ output_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
52
+ content: "content";
53
+ files_with_matches: "files_with_matches";
54
+ count: "count";
55
+ }>>>;
56
+ "-A": z.ZodOptional<z.ZodNumber>;
57
+ "-B": z.ZodOptional<z.ZodNumber>;
58
+ "-C": z.ZodOptional<z.ZodNumber>;
59
+ context: z.ZodOptional<z.ZodNumber>;
60
+ head_limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
61
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
62
+ multiline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
63
+ type: z.ZodOptional<z.ZodString>;
64
+ "-i": z.ZodOptional<z.ZodBoolean>;
65
+ "-n": z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
66
+ }, z.core.$strip>;
67
+ type Input$7 = z.infer<typeof inputSchema$7>;
68
+ declare const grepTool: ToolDefinition<Input$7>;
69
+
70
+ declare const inputSchema$6: z.ZodObject<{
71
+ url: z.ZodString;
72
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
73
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
74
+ body: z.ZodOptional<z.ZodString>;
75
+ prompt: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>;
77
+ type Input$6 = z.infer<typeof inputSchema$6>;
78
+ declare const webFetchTool: ToolDefinition<Input$6>;
79
+
80
+ declare const inputSchema$5: z.ZodObject<{
81
+ query: z.ZodString;
82
+ max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
83
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ blocked_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
85
  }, z.core.$strip>;
17
86
  type Input$5 = z.infer<typeof inputSchema$5>;
18
- declare const readTool: ToolDefinition<Input$5>;
87
+ declare const webSearchTool: ToolDefinition<Input$5>;
88
+
89
+ interface Task {
90
+ id: string;
91
+ title: string;
92
+ description?: string;
93
+ status: "pending" | "in_progress" | "completed" | "cancelled";
94
+ owner?: string;
95
+ blocks?: string[];
96
+ blockedBy?: string[];
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ }
100
+ interface TaskToolSet {
101
+ taskCreate: ToolDefinition;
102
+ taskUpdate: ToolDefinition;
103
+ taskGet: ToolDefinition;
104
+ taskList: ToolDefinition;
105
+ /** Return a snapshot of all tasks (order matches insertion order). */
106
+ getTasks(): Task[];
107
+ /** Remove all tasks and reset the ID counter. */
108
+ clear(): void;
109
+ }
110
+ type TaskToolInstance = TaskToolSet;
111
+ declare function createTaskTool(): TaskToolSet;
19
112
 
113
+ interface SubagentFactoryInput {
114
+ task: string;
115
+ description?: string;
116
+ signal: AbortSignal;
117
+ }
118
+ interface SubagentConfig {
119
+ /**
120
+ * Factory that creates a new Agent for each subagent invocation.
121
+ * Receives an object with task, optional description, and AbortSignal.
122
+ * The returned object must have a `chat(input: string): Promise<string>` method.
123
+ */
124
+ agentFactory: (input: SubagentFactoryInput) => {
125
+ chat(input: string): Promise<string>;
126
+ };
127
+ /** Timeout in milliseconds for the subagent execution. Default: 120_000 (2 minutes). */
128
+ timeout?: number;
129
+ }
20
130
  declare const inputSchema$4: z.ZodObject<{
21
- path: z.ZodString;
22
- oldString: z.ZodString;
23
- newString: z.ZodString;
131
+ task: z.ZodString;
132
+ description: z.ZodOptional<z.ZodString>;
24
133
  }, z.core.$strip>;
25
134
  type Input$4 = z.infer<typeof inputSchema$4>;
26
- declare const editTool: ToolDefinition<Input$4>;
135
+ /**
136
+ * Creates a subagent tool that spawns an independent Agent to handle a delegated task.
137
+ *
138
+ * The subagent runs with its own session (no shared message history with the parent)
139
+ * and returns its final text response to the caller.
140
+ */
141
+ declare function createSubagentTool(config: SubagentConfig): ToolDefinition<Input$4>;
27
142
 
28
143
  declare const inputSchema$3: z.ZodObject<{
29
- path: z.ZodString;
30
- content: z.ZodString;
144
+ notebook_path: z.ZodString;
145
+ edit_mode: z.ZodEnum<{
146
+ replace: "replace";
147
+ insert: "insert";
148
+ delete: "delete";
149
+ }>;
150
+ cell_number: z.ZodOptional<z.ZodNumber>;
151
+ cell_id: z.ZodOptional<z.ZodString>;
152
+ cell_type: z.ZodOptional<z.ZodEnum<{
153
+ code: "code";
154
+ markdown: "markdown";
155
+ }>>;
156
+ new_source: z.ZodOptional<z.ZodString>;
31
157
  }, z.core.$strip>;
32
158
  type Input$3 = z.infer<typeof inputSchema$3>;
33
- declare const writeTool: ToolDefinition<Input$3>;
159
+ declare const notebookEditTool: ToolDefinition<Input$3>;
34
160
 
35
161
  declare const inputSchema$2: z.ZodObject<{
36
- pattern: z.ZodString;
37
- cwd: z.ZodOptional<z.ZodString>;
162
+ branch: z.ZodOptional<z.ZodString>;
163
+ path: z.ZodOptional<z.ZodString>;
38
164
  }, z.core.$strip>;
39
165
  type Input$2 = z.infer<typeof inputSchema$2>;
40
- declare const globTool: ToolDefinition<Input$2>;
166
+ declare const enterWorktreeTool: ToolDefinition<Input$2>;
41
167
 
42
168
  declare const inputSchema$1: z.ZodObject<{
43
- pattern: z.ZodString;
44
- path: z.ZodOptional<z.ZodString>;
45
- glob: z.ZodOptional<z.ZodString>;
169
+ path: z.ZodString;
170
+ keep: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
46
171
  }, z.core.$strip>;
47
172
  type Input$1 = z.infer<typeof inputSchema$1>;
48
- declare const grepTool: ToolDefinition<Input$1>;
173
+ declare const exitWorktreeTool: ToolDefinition<Input$1>;
49
174
 
175
+ /**
176
+ * Minimal interface for communicating with a Language Server.
177
+ * The `request` method sends an LSP method with the given params and returns
178
+ * the JSON-RPC result. Implementations may wrap a JSON-RPC transport, an MCP
179
+ * bridge, or any other mechanism that speaks LSP.
180
+ */
181
+ interface LspConnection {
182
+ request(method: string, params: unknown): Promise<unknown>;
183
+ }
50
184
  declare const inputSchema: z.ZodObject<{
51
- url: z.ZodString;
52
- method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
54
- body: z.ZodOptional<z.ZodString>;
185
+ action: z.ZodEnum<{
186
+ goToDefinition: "goToDefinition";
187
+ findReferences: "findReferences";
188
+ hover: "hover";
189
+ documentSymbol: "documentSymbol";
190
+ workspaceSymbol: "workspaceSymbol";
191
+ }>;
192
+ file_path: z.ZodOptional<z.ZodString>;
193
+ line: z.ZodOptional<z.ZodNumber>;
194
+ character: z.ZodOptional<z.ZodNumber>;
195
+ query: z.ZodOptional<z.ZodString>;
55
196
  }, z.core.$strip>;
56
197
  type Input = z.infer<typeof inputSchema>;
57
- declare const webFetchTool: ToolDefinition<Input>;
198
+ /**
199
+ * Creates an LSP tool that communicates with a language server through the
200
+ * provided connection. If no connection is supplied, all actions return a
201
+ * helpful fallback message explaining how to set one up.
202
+ */
203
+ declare function createLspTool(connection?: LspConnection): ToolDefinition<Input>;
58
204
 
59
205
  /** All built-in tools as an array, ready to pass to AgentConfig.tools */
60
206
  declare const builtinTools: ToolDefinition[];
61
207
 
62
- export { bashTool, builtinTools, editTool, globTool, grepTool, readTool, webFetchTool, writeTool };
208
+ export { type LspConnection, type SubagentConfig, type SubagentFactoryInput, type Task, type TaskToolInstance, type TaskToolSet, bashTool, builtinTools, createLspTool, createSubagentTool, createTaskTool, editTool, enterWorktreeTool, exitWorktreeTool, globTool, grepTool, notebookEditTool, readTool, webFetchTool, webSearchTool, writeTool };
package/dist/index.d.ts CHANGED
@@ -1,62 +1,208 @@
1
1
  import { z } from 'zod';
2
2
  import { ToolDefinition } from '@claude-code-kit/agent';
3
3
 
4
- declare const inputSchema$6: z.ZodObject<{
4
+ declare const inputSchema$c: z.ZodObject<{
5
5
  command: z.ZodString;
6
+ description: z.ZodString;
6
7
  cwd: z.ZodOptional<z.ZodString>;
7
8
  timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
+ run_in_background: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
+ dangerously_disable_sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
11
  }, z.core.$strip>;
9
- type Input$6 = z.infer<typeof inputSchema$6>;
10
- declare const bashTool: ToolDefinition<Input$6>;
12
+ type Input$c = z.infer<typeof inputSchema$c>;
13
+ declare const bashTool: ToolDefinition<Input$c>;
11
14
 
12
- declare const inputSchema$5: z.ZodObject<{
13
- path: z.ZodString;
15
+ declare const inputSchema$b: z.ZodObject<{
16
+ file_path: z.ZodString;
14
17
  offset: z.ZodOptional<z.ZodNumber>;
15
18
  limit: z.ZodOptional<z.ZodNumber>;
19
+ pages: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ type Input$b = z.infer<typeof inputSchema$b>;
22
+ declare const readTool: ToolDefinition<Input$b>;
23
+
24
+ declare const inputSchema$a: z.ZodObject<{
25
+ file_path: z.ZodString;
26
+ old_string: z.ZodString;
27
+ new_string: z.ZodString;
28
+ replace_all: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
29
+ }, z.core.$strip>;
30
+ type Input$a = z.infer<typeof inputSchema$a>;
31
+ declare const editTool: ToolDefinition<Input$a>;
32
+
33
+ declare const inputSchema$9: z.ZodObject<{
34
+ file_path: z.ZodString;
35
+ content: z.ZodString;
36
+ }, z.core.$strip>;
37
+ type Input$9 = z.infer<typeof inputSchema$9>;
38
+ declare const writeTool: ToolDefinition<Input$9>;
39
+
40
+ declare const inputSchema$8: z.ZodObject<{
41
+ pattern: z.ZodString;
42
+ path: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ type Input$8 = z.infer<typeof inputSchema$8>;
45
+ declare const globTool: ToolDefinition<Input$8>;
46
+
47
+ declare const inputSchema$7: z.ZodObject<{
48
+ pattern: z.ZodString;
49
+ path: z.ZodOptional<z.ZodString>;
50
+ glob: z.ZodOptional<z.ZodString>;
51
+ output_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
52
+ content: "content";
53
+ files_with_matches: "files_with_matches";
54
+ count: "count";
55
+ }>>>;
56
+ "-A": z.ZodOptional<z.ZodNumber>;
57
+ "-B": z.ZodOptional<z.ZodNumber>;
58
+ "-C": z.ZodOptional<z.ZodNumber>;
59
+ context: z.ZodOptional<z.ZodNumber>;
60
+ head_limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
61
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
62
+ multiline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
63
+ type: z.ZodOptional<z.ZodString>;
64
+ "-i": z.ZodOptional<z.ZodBoolean>;
65
+ "-n": z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
66
+ }, z.core.$strip>;
67
+ type Input$7 = z.infer<typeof inputSchema$7>;
68
+ declare const grepTool: ToolDefinition<Input$7>;
69
+
70
+ declare const inputSchema$6: z.ZodObject<{
71
+ url: z.ZodString;
72
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
73
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
74
+ body: z.ZodOptional<z.ZodString>;
75
+ prompt: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>;
77
+ type Input$6 = z.infer<typeof inputSchema$6>;
78
+ declare const webFetchTool: ToolDefinition<Input$6>;
79
+
80
+ declare const inputSchema$5: z.ZodObject<{
81
+ query: z.ZodString;
82
+ max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
83
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ blocked_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
85
  }, z.core.$strip>;
17
86
  type Input$5 = z.infer<typeof inputSchema$5>;
18
- declare const readTool: ToolDefinition<Input$5>;
87
+ declare const webSearchTool: ToolDefinition<Input$5>;
88
+
89
+ interface Task {
90
+ id: string;
91
+ title: string;
92
+ description?: string;
93
+ status: "pending" | "in_progress" | "completed" | "cancelled";
94
+ owner?: string;
95
+ blocks?: string[];
96
+ blockedBy?: string[];
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ }
100
+ interface TaskToolSet {
101
+ taskCreate: ToolDefinition;
102
+ taskUpdate: ToolDefinition;
103
+ taskGet: ToolDefinition;
104
+ taskList: ToolDefinition;
105
+ /** Return a snapshot of all tasks (order matches insertion order). */
106
+ getTasks(): Task[];
107
+ /** Remove all tasks and reset the ID counter. */
108
+ clear(): void;
109
+ }
110
+ type TaskToolInstance = TaskToolSet;
111
+ declare function createTaskTool(): TaskToolSet;
19
112
 
113
+ interface SubagentFactoryInput {
114
+ task: string;
115
+ description?: string;
116
+ signal: AbortSignal;
117
+ }
118
+ interface SubagentConfig {
119
+ /**
120
+ * Factory that creates a new Agent for each subagent invocation.
121
+ * Receives an object with task, optional description, and AbortSignal.
122
+ * The returned object must have a `chat(input: string): Promise<string>` method.
123
+ */
124
+ agentFactory: (input: SubagentFactoryInput) => {
125
+ chat(input: string): Promise<string>;
126
+ };
127
+ /** Timeout in milliseconds for the subagent execution. Default: 120_000 (2 minutes). */
128
+ timeout?: number;
129
+ }
20
130
  declare const inputSchema$4: z.ZodObject<{
21
- path: z.ZodString;
22
- oldString: z.ZodString;
23
- newString: z.ZodString;
131
+ task: z.ZodString;
132
+ description: z.ZodOptional<z.ZodString>;
24
133
  }, z.core.$strip>;
25
134
  type Input$4 = z.infer<typeof inputSchema$4>;
26
- declare const editTool: ToolDefinition<Input$4>;
135
+ /**
136
+ * Creates a subagent tool that spawns an independent Agent to handle a delegated task.
137
+ *
138
+ * The subagent runs with its own session (no shared message history with the parent)
139
+ * and returns its final text response to the caller.
140
+ */
141
+ declare function createSubagentTool(config: SubagentConfig): ToolDefinition<Input$4>;
27
142
 
28
143
  declare const inputSchema$3: z.ZodObject<{
29
- path: z.ZodString;
30
- content: z.ZodString;
144
+ notebook_path: z.ZodString;
145
+ edit_mode: z.ZodEnum<{
146
+ replace: "replace";
147
+ insert: "insert";
148
+ delete: "delete";
149
+ }>;
150
+ cell_number: z.ZodOptional<z.ZodNumber>;
151
+ cell_id: z.ZodOptional<z.ZodString>;
152
+ cell_type: z.ZodOptional<z.ZodEnum<{
153
+ code: "code";
154
+ markdown: "markdown";
155
+ }>>;
156
+ new_source: z.ZodOptional<z.ZodString>;
31
157
  }, z.core.$strip>;
32
158
  type Input$3 = z.infer<typeof inputSchema$3>;
33
- declare const writeTool: ToolDefinition<Input$3>;
159
+ declare const notebookEditTool: ToolDefinition<Input$3>;
34
160
 
35
161
  declare const inputSchema$2: z.ZodObject<{
36
- pattern: z.ZodString;
37
- cwd: z.ZodOptional<z.ZodString>;
162
+ branch: z.ZodOptional<z.ZodString>;
163
+ path: z.ZodOptional<z.ZodString>;
38
164
  }, z.core.$strip>;
39
165
  type Input$2 = z.infer<typeof inputSchema$2>;
40
- declare const globTool: ToolDefinition<Input$2>;
166
+ declare const enterWorktreeTool: ToolDefinition<Input$2>;
41
167
 
42
168
  declare const inputSchema$1: z.ZodObject<{
43
- pattern: z.ZodString;
44
- path: z.ZodOptional<z.ZodString>;
45
- glob: z.ZodOptional<z.ZodString>;
169
+ path: z.ZodString;
170
+ keep: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
46
171
  }, z.core.$strip>;
47
172
  type Input$1 = z.infer<typeof inputSchema$1>;
48
- declare const grepTool: ToolDefinition<Input$1>;
173
+ declare const exitWorktreeTool: ToolDefinition<Input$1>;
49
174
 
175
+ /**
176
+ * Minimal interface for communicating with a Language Server.
177
+ * The `request` method sends an LSP method with the given params and returns
178
+ * the JSON-RPC result. Implementations may wrap a JSON-RPC transport, an MCP
179
+ * bridge, or any other mechanism that speaks LSP.
180
+ */
181
+ interface LspConnection {
182
+ request(method: string, params: unknown): Promise<unknown>;
183
+ }
50
184
  declare const inputSchema: z.ZodObject<{
51
- url: z.ZodString;
52
- method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
54
- body: z.ZodOptional<z.ZodString>;
185
+ action: z.ZodEnum<{
186
+ goToDefinition: "goToDefinition";
187
+ findReferences: "findReferences";
188
+ hover: "hover";
189
+ documentSymbol: "documentSymbol";
190
+ workspaceSymbol: "workspaceSymbol";
191
+ }>;
192
+ file_path: z.ZodOptional<z.ZodString>;
193
+ line: z.ZodOptional<z.ZodNumber>;
194
+ character: z.ZodOptional<z.ZodNumber>;
195
+ query: z.ZodOptional<z.ZodString>;
55
196
  }, z.core.$strip>;
56
197
  type Input = z.infer<typeof inputSchema>;
57
- declare const webFetchTool: ToolDefinition<Input>;
198
+ /**
199
+ * Creates an LSP tool that communicates with a language server through the
200
+ * provided connection. If no connection is supplied, all actions return a
201
+ * helpful fallback message explaining how to set one up.
202
+ */
203
+ declare function createLspTool(connection?: LspConnection): ToolDefinition<Input>;
58
204
 
59
205
  /** All built-in tools as an array, ready to pass to AgentConfig.tools */
60
206
  declare const builtinTools: ToolDefinition[];
61
207
 
62
- export { bashTool, builtinTools, editTool, globTool, grepTool, readTool, webFetchTool, writeTool };
208
+ export { type LspConnection, type SubagentConfig, type SubagentFactoryInput, type Task, type TaskToolInstance, type TaskToolSet, bashTool, builtinTools, createLspTool, createSubagentTool, createTaskTool, editTool, enterWorktreeTool, exitWorktreeTool, globTool, grepTool, notebookEditTool, readTool, webFetchTool, webSearchTool, writeTool };