skimpyclaw 0.3.14 → 0.4.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.
Files changed (222) hide show
  1. package/README.md +47 -37
  2. package/dist/__tests__/adapter-types.test.d.ts +4 -0
  3. package/dist/__tests__/adapter-types.test.js +63 -0
  4. package/dist/__tests__/anthropic-adapter.test.d.ts +4 -0
  5. package/dist/__tests__/anthropic-adapter.test.js +264 -0
  6. package/dist/__tests__/api.test.js +0 -1
  7. package/dist/__tests__/cli.integration.test.js +2 -4
  8. package/dist/__tests__/cli.test.js +0 -1
  9. package/dist/__tests__/code-agents-notifications.test.js +137 -0
  10. package/dist/__tests__/code-agents-parser.test.js +19 -1
  11. package/dist/__tests__/code-agents-preflight.test.js +3 -28
  12. package/dist/__tests__/code-agents-utils.test.js +34 -9
  13. package/dist/__tests__/code-agents-worktrees.test.js +116 -0
  14. package/dist/__tests__/codex-adapter.test.js +184 -0
  15. package/dist/__tests__/codex-auth.test.js +66 -0
  16. package/dist/__tests__/codex-provider-gating.test.js +35 -0
  17. package/dist/__tests__/codex-unified-loop.test.js +111 -0
  18. package/dist/__tests__/config-security.test.js +127 -0
  19. package/dist/__tests__/config.test.js +23 -0
  20. package/dist/__tests__/context-manager.test.js +243 -164
  21. package/dist/__tests__/cron-run.test.js +250 -0
  22. package/dist/__tests__/cron.test.js +12 -38
  23. package/dist/__tests__/digests.test.js +67 -0
  24. package/dist/__tests__/discord-attachments.test.js +211 -0
  25. package/dist/__tests__/discord-docs.test.d.ts +1 -0
  26. package/dist/__tests__/discord-docs.test.js +27 -0
  27. package/dist/__tests__/discord-thread-agents.test.d.ts +1 -0
  28. package/dist/__tests__/discord-thread-agents.test.js +115 -0
  29. package/dist/__tests__/discord-thread-context.test.d.ts +1 -0
  30. package/dist/__tests__/discord-thread-context.test.js +42 -0
  31. package/dist/__tests__/doctor.formatters.test.js +4 -4
  32. package/dist/__tests__/doctor.index.test.js +1 -1
  33. package/dist/__tests__/doctor.runner.test.js +3 -15
  34. package/dist/__tests__/env-sanitizer.test.d.ts +1 -0
  35. package/dist/__tests__/env-sanitizer.test.js +45 -0
  36. package/dist/__tests__/exec-approval.test.js +61 -0
  37. package/dist/__tests__/fetch-tool.test.d.ts +1 -0
  38. package/dist/__tests__/fetch-tool.test.js +85 -0
  39. package/dist/__tests__/gateway-status-auth.test.d.ts +1 -0
  40. package/dist/__tests__/gateway-status-auth.test.js +72 -0
  41. package/dist/__tests__/heartbeat.test.js +3 -3
  42. package/dist/__tests__/interactive-sessions.test.d.ts +1 -0
  43. package/dist/__tests__/interactive-sessions.test.js +96 -0
  44. package/dist/__tests__/langfuse.test.js +6 -18
  45. package/dist/__tests__/model-selection.test.js +3 -4
  46. package/dist/__tests__/providers-init.test.js +2 -8
  47. package/dist/__tests__/providers-routing.test.js +1 -1
  48. package/dist/__tests__/providers-utils.test.js +13 -3
  49. package/dist/__tests__/sessions.test.js +14 -10
  50. package/dist/__tests__/setup.test.js +12 -29
  51. package/dist/__tests__/skills.test.js +10 -7
  52. package/dist/__tests__/stream-formatter.test.d.ts +1 -0
  53. package/dist/__tests__/stream-formatter.test.js +114 -0
  54. package/dist/__tests__/token-efficiency.test.js +131 -15
  55. package/dist/__tests__/tool-loop.test.d.ts +4 -0
  56. package/dist/__tests__/tool-loop.test.js +505 -0
  57. package/dist/__tests__/tools.test.js +101 -276
  58. package/dist/__tests__/utils.test.d.ts +1 -0
  59. package/dist/__tests__/utils.test.js +14 -0
  60. package/dist/__tests__/voice.test.js +21 -0
  61. package/dist/agent.js +35 -4
  62. package/dist/api.js +113 -37
  63. package/dist/channels/discord/attachments.d.ts +50 -0
  64. package/dist/channels/discord/attachments.js +137 -0
  65. package/dist/channels/discord/delegation.d.ts +5 -0
  66. package/dist/channels/discord/delegation.js +136 -0
  67. package/dist/channels/discord/handlers.js +694 -7
  68. package/dist/channels/discord/index.d.ts +16 -1
  69. package/dist/channels/discord/index.js +64 -1
  70. package/dist/channels/discord/thread-agents.d.ts +54 -0
  71. package/dist/channels/discord/thread-agents.js +323 -0
  72. package/dist/channels/discord/threads.d.ts +58 -0
  73. package/dist/channels/discord/threads.js +192 -0
  74. package/dist/channels/discord/types.js +4 -2
  75. package/dist/channels/discord/utils.d.ts +16 -0
  76. package/dist/channels/discord/utils.js +86 -6
  77. package/dist/channels/telegram/index.d.ts +1 -1
  78. package/dist/channels/telegram/types.js +1 -1
  79. package/dist/channels/telegram/utils.js +9 -3
  80. package/dist/channels.d.ts +1 -1
  81. package/dist/cli.js +20 -400
  82. package/dist/code-agents/executor.d.ts +1 -1
  83. package/dist/code-agents/executor.js +101 -45
  84. package/dist/code-agents/index.d.ts +2 -7
  85. package/dist/code-agents/index.js +111 -80
  86. package/dist/code-agents/interactive-resume.d.ts +6 -0
  87. package/dist/code-agents/interactive-resume.js +98 -0
  88. package/dist/code-agents/interactive-sessions.d.ts +20 -0
  89. package/dist/code-agents/interactive-sessions.js +132 -0
  90. package/dist/code-agents/parser.js +5 -1
  91. package/dist/code-agents/registry.d.ts +7 -1
  92. package/dist/code-agents/registry.js +11 -23
  93. package/dist/code-agents/stream-formatter.d.ts +8 -0
  94. package/dist/code-agents/stream-formatter.js +92 -0
  95. package/dist/code-agents/types.d.ts +16 -24
  96. package/dist/code-agents/utils.d.ts +35 -11
  97. package/dist/code-agents/utils.js +349 -95
  98. package/dist/code-agents/worktrees.d.ts +37 -0
  99. package/dist/code-agents/worktrees.js +116 -0
  100. package/dist/config.d.ts +2 -4
  101. package/dist/config.js +123 -23
  102. package/dist/cron.d.ts +1 -6
  103. package/dist/cron.js +175 -82
  104. package/dist/dashboard/assets/index-B345aOO-.js +65 -0
  105. package/dist/dashboard/assets/index-ZWK4dalJ.css +1 -0
  106. package/dist/dashboard/index.html +2 -2
  107. package/dist/digests.d.ts +1 -0
  108. package/dist/digests.js +132 -42
  109. package/dist/doctor/checks.d.ts +0 -3
  110. package/dist/doctor/checks.js +1 -108
  111. package/dist/doctor/runner.js +1 -4
  112. package/dist/env-sanitizer.d.ts +2 -0
  113. package/dist/env-sanitizer.js +61 -0
  114. package/dist/exec-approval.d.ts +11 -1
  115. package/dist/exec-approval.js +17 -4
  116. package/dist/gateway.d.ts +3 -1
  117. package/dist/gateway.js +17 -7
  118. package/dist/heartbeat.js +1 -6
  119. package/dist/langfuse.js +3 -29
  120. package/dist/model-selection.js +3 -1
  121. package/dist/providers/adapter.d.ts +118 -0
  122. package/dist/providers/adapter.js +6 -0
  123. package/dist/providers/adapters/anthropic-adapter.d.ts +22 -0
  124. package/dist/providers/adapters/anthropic-adapter.js +204 -0
  125. package/dist/providers/adapters/codex-adapter.d.ts +26 -0
  126. package/dist/providers/adapters/codex-adapter.js +203 -0
  127. package/dist/providers/anthropic.d.ts +1 -0
  128. package/dist/providers/anthropic.js +10 -272
  129. package/dist/providers/codex.d.ts +21 -0
  130. package/dist/providers/codex.js +149 -330
  131. package/dist/providers/content.d.ts +1 -1
  132. package/dist/providers/content.js +2 -2
  133. package/dist/providers/context-manager.d.ts +18 -6
  134. package/dist/providers/context-manager.js +199 -223
  135. package/dist/providers/index.d.ts +9 -1
  136. package/dist/providers/index.js +73 -64
  137. package/dist/providers/loop-utils.d.ts +20 -0
  138. package/dist/providers/loop-utils.js +30 -0
  139. package/dist/providers/tool-loop.d.ts +12 -0
  140. package/dist/providers/tool-loop.js +251 -0
  141. package/dist/providers/utils.d.ts +19 -3
  142. package/dist/providers/utils.js +100 -29
  143. package/dist/secure-store.d.ts +8 -0
  144. package/dist/secure-store.js +80 -0
  145. package/dist/service.js +3 -28
  146. package/dist/sessions.d.ts +3 -0
  147. package/dist/sessions.js +147 -18
  148. package/dist/setup-templates.js +13 -25
  149. package/dist/setup.d.ts +10 -6
  150. package/dist/setup.js +84 -292
  151. package/dist/skills.js +3 -11
  152. package/dist/tools/agent-delegation.d.ts +19 -0
  153. package/dist/tools/agent-delegation.js +49 -0
  154. package/dist/tools/bash-tool.js +89 -34
  155. package/dist/tools/definitions.d.ts +199 -302
  156. package/dist/tools/definitions.js +70 -123
  157. package/dist/tools/execute-context.d.ts +13 -4
  158. package/dist/tools/fetch-tool.js +109 -13
  159. package/dist/tools/file-tools.js +7 -1
  160. package/dist/tools.d.ts +7 -7
  161. package/dist/tools.js +133 -151
  162. package/dist/types.d.ts +37 -30
  163. package/dist/utils.js +4 -6
  164. package/dist/voice.d.ts +1 -1
  165. package/dist/voice.js +17 -4
  166. package/package.json +33 -23
  167. package/templates/TOOLS.md +0 -27
  168. package/dist/__tests__/audit.test.js +0 -122
  169. package/dist/__tests__/code-agents-orchestrator.test.js +0 -216
  170. package/dist/__tests__/code-agents-sandbox.test.js +0 -163
  171. package/dist/__tests__/orchestrator.test.js +0 -425
  172. package/dist/__tests__/sandbox-bridge.test.js +0 -116
  173. package/dist/__tests__/sandbox-manager.test.js +0 -144
  174. package/dist/__tests__/sandbox-mount-security.test.js +0 -139
  175. package/dist/__tests__/sandbox-runtime.test.js +0 -176
  176. package/dist/__tests__/subagent.test.js +0 -240
  177. package/dist/__tests__/telegram.test.js +0 -42
  178. package/dist/code-agents/orchestrator.d.ts +0 -29
  179. package/dist/code-agents/orchestrator.js +0 -694
  180. package/dist/code-agents/worktree.d.ts +0 -40
  181. package/dist/code-agents/worktree.js +0 -215
  182. package/dist/dashboard/assets/index-BoTHPby4.js +0 -65
  183. package/dist/dashboard/assets/index-D4mufvBg.css +0 -1
  184. package/dist/dashboard.d.ts +0 -8
  185. package/dist/dashboard.js +0 -4071
  186. package/dist/discord.d.ts +0 -8
  187. package/dist/discord.js +0 -792
  188. package/dist/mcp-context-a8c.d.ts +0 -13
  189. package/dist/mcp-context-a8c.js +0 -34
  190. package/dist/orchestrator.d.ts +0 -15
  191. package/dist/orchestrator.js +0 -676
  192. package/dist/providers/openai.d.ts +0 -10
  193. package/dist/providers/openai.js +0 -355
  194. package/dist/sandbox/bridge.d.ts +0 -5
  195. package/dist/sandbox/bridge.js +0 -63
  196. package/dist/sandbox/index.d.ts +0 -5
  197. package/dist/sandbox/index.js +0 -4
  198. package/dist/sandbox/manager.d.ts +0 -7
  199. package/dist/sandbox/manager.js +0 -100
  200. package/dist/sandbox/mount-security.d.ts +0 -12
  201. package/dist/sandbox/mount-security.js +0 -122
  202. package/dist/sandbox/runtime.d.ts +0 -39
  203. package/dist/sandbox/runtime.js +0 -192
  204. package/dist/sandbox-utils.d.ts +0 -6
  205. package/dist/sandbox-utils.js +0 -36
  206. package/dist/subagent.d.ts +0 -19
  207. package/dist/subagent.js +0 -407
  208. package/dist/telegram.d.ts +0 -2
  209. package/dist/telegram.js +0 -11
  210. package/dist/tools/browser-tool.d.ts +0 -3
  211. package/dist/tools/browser-tool.js +0 -266
  212. package/sandbox/Dockerfile +0 -40
  213. /package/dist/__tests__/{audit.test.d.ts → code-agents-notifications.test.d.ts} +0 -0
  214. /package/dist/__tests__/{code-agents-orchestrator.test.d.ts → code-agents-worktrees.test.d.ts} +0 -0
  215. /package/dist/__tests__/{code-agents-sandbox.test.d.ts → codex-adapter.test.d.ts} +0 -0
  216. /package/dist/__tests__/{orchestrator.test.d.ts → codex-auth.test.d.ts} +0 -0
  217. /package/dist/__tests__/{sandbox-bridge.test.d.ts → codex-provider-gating.test.d.ts} +0 -0
  218. /package/dist/__tests__/{sandbox-manager.test.d.ts → codex-unified-loop.test.d.ts} +0 -0
  219. /package/dist/__tests__/{sandbox-mount-security.test.d.ts → config-security.test.d.ts} +0 -0
  220. /package/dist/__tests__/{sandbox-runtime.test.d.ts → cron-run.test.d.ts} +0 -0
  221. /package/dist/__tests__/{subagent.test.d.ts → digests.test.d.ts} +0 -0
  222. /package/dist/__tests__/{telegram.test.d.ts → discord-attachments.test.d.ts} +0 -0
@@ -4,452 +4,349 @@ export declare function fromClaudeCodeName(name: string): string;
4
4
  export declare function toClaudeCodeName(name: string): string;
5
5
  export declare const BUILTIN_TOOL_DEFINITIONS: ({
6
6
  name: string;
7
- description: string;
8
7
  input_schema: {
9
8
  type: "object";
10
9
  properties: {
11
- file_path: {
12
- type: string;
13
- description: string;
14
- };
10
+ path: {};
15
11
  content?: undefined;
16
- path?: undefined;
17
- command?: undefined;
18
- cwd?: undefined;
12
+ pattern?: undefined;
13
+ cmd?: undefined;
14
+ };
15
+ required?: undefined;
16
+ };
17
+ } | {
18
+ name: string;
19
+ input_schema: {
20
+ type: "object";
21
+ properties: {
22
+ path: {};
23
+ content: {};
24
+ pattern?: undefined;
25
+ cmd?: undefined;
19
26
  };
20
27
  required: string[];
21
28
  };
22
29
  } | {
23
30
  name: string;
24
- description: string;
25
31
  input_schema: {
26
32
  type: "object";
27
33
  properties: {
28
- file_path: {
29
- type: string;
30
- description: string;
31
- };
32
- content: {
33
- type: string;
34
- description: string;
35
- };
34
+ pattern: {};
36
35
  path?: undefined;
37
- command?: undefined;
38
- cwd?: undefined;
36
+ content?: undefined;
37
+ cmd?: undefined;
39
38
  };
40
- required: string[];
39
+ required?: undefined;
41
40
  };
42
41
  } | {
43
42
  name: string;
44
- description: string;
45
43
  input_schema: {
46
44
  type: "object";
47
45
  properties: {
48
- path: {
49
- type: string;
50
- description: string;
51
- };
52
- file_path?: undefined;
46
+ cmd: {};
47
+ path?: undefined;
53
48
  content?: undefined;
54
- command?: undefined;
55
- cwd?: undefined;
49
+ pattern?: undefined;
50
+ };
51
+ required?: undefined;
52
+ };
53
+ })[];
54
+ export declare const FETCH_TOOL_DEFINITION: {
55
+ name: string;
56
+ input_schema: {
57
+ type: "object";
58
+ properties: {
59
+ url: {};
60
+ };
61
+ };
62
+ };
63
+ export declare const TOOL_DEFINITIONS: ({
64
+ name: string;
65
+ input_schema: {
66
+ type: "object";
67
+ properties: {
68
+ path: {};
69
+ content?: undefined;
70
+ pattern?: undefined;
71
+ cmd?: undefined;
72
+ };
73
+ required?: undefined;
74
+ };
75
+ } | {
76
+ name: string;
77
+ input_schema: {
78
+ type: "object";
79
+ properties: {
80
+ path: {};
81
+ content: {};
82
+ pattern?: undefined;
83
+ cmd?: undefined;
56
84
  };
57
85
  required: string[];
58
86
  };
59
87
  } | {
60
88
  name: string;
61
- description: string;
62
89
  input_schema: {
63
90
  type: "object";
64
91
  properties: {
65
- command: {
66
- type: string;
67
- description: string;
68
- };
69
- cwd: {
70
- type: string;
71
- description: string;
72
- };
73
- file_path?: undefined;
92
+ pattern: {};
93
+ path?: undefined;
74
94
  content?: undefined;
95
+ cmd?: undefined;
96
+ };
97
+ required?: undefined;
98
+ };
99
+ } | {
100
+ name: string;
101
+ input_schema: {
102
+ type: "object";
103
+ properties: {
104
+ cmd: {};
75
105
  path?: undefined;
106
+ content?: undefined;
107
+ pattern?: undefined;
108
+ };
109
+ required?: undefined;
110
+ };
111
+ } | {
112
+ name: string;
113
+ input_schema: {
114
+ type: "object";
115
+ properties: {
116
+ url: {};
76
117
  };
77
- required: string[];
78
118
  };
79
119
  })[];
80
- export declare const BROWSER_TOOL_DEFINITION: {
120
+ export declare const CODE_WITH_AGENT_TOOL: {
81
121
  name: string;
82
- description: string;
83
122
  input_schema: {
84
123
  type: "object";
85
124
  properties: {
86
- action: {
87
- type: string;
88
- description: string;
89
- };
90
- type: {
91
- type: string;
92
- description: string;
93
- };
94
- url: {
95
- type: string;
96
- description: string;
97
- };
98
- selector: {
99
- type: string;
100
- description: string;
101
- };
102
- text: {
103
- type: string;
104
- description: string;
105
- };
106
- script: {
107
- type: string;
108
- description: string;
109
- };
110
- direction: {
111
- type: string;
112
- description: string;
113
- };
114
- amount: {
115
- type: string;
116
- description: string;
117
- };
118
- file_path: {
119
- type: string;
120
- description: string;
121
- };
122
- timeoutMs: {
123
- type: string;
124
- description: string;
125
+ task: {
126
+ type: "string";
125
127
  };
126
- timeMs: {
127
- type: string;
128
- description: string;
128
+ agent: {
129
+ type: "string";
129
130
  };
130
- headless: {
131
- type: string;
131
+ interactive: {
132
+ type: "boolean";
132
133
  description: string;
133
134
  };
134
- slowMoMs: {
135
- type: string;
135
+ effort: {
136
+ type: "string";
137
+ enum: string[];
136
138
  description: string;
137
139
  };
138
- userAgent: {
139
- type: string;
140
+ worktree: {
140
141
  description: string;
141
142
  };
142
- viewport: {
143
- type: string;
144
- properties: {
145
- width: {
146
- type: string;
147
- };
148
- height: {
149
- type: string;
150
- };
151
- };
152
- };
153
143
  };
154
144
  required: string[];
155
145
  };
156
146
  };
157
- export declare const FETCH_TOOL_DEFINITION: {
147
+ export declare const CHECK_CODE_AGENT_TOOL: {
148
+ name: string;
149
+ input_schema: {
150
+ type: "object";
151
+ properties: {
152
+ id: {
153
+ type: "string";
154
+ };
155
+ };
156
+ };
157
+ };
158
+ export declare const DELEGATE_TO_AGENT_TOOL: {
158
159
  name: string;
159
- description: string;
160
160
  input_schema: {
161
161
  type: "object";
162
162
  properties: {
163
- url: {
164
- type: string;
163
+ alias: {
164
+ type: "string";
165
165
  description: string;
166
166
  };
167
- method: {
168
- type: string;
167
+ task: {
168
+ type: "string";
169
169
  description: string;
170
170
  };
171
- headers: {
172
- type: "object";
171
+ mode: {
172
+ type: "string";
173
+ enum: string[];
173
174
  description: string;
174
- additionalProperties: {
175
- type: string;
176
- };
177
175
  };
178
- body: {
179
- type: string;
176
+ wait: {
177
+ type: "boolean";
180
178
  description: string;
181
179
  };
182
180
  };
183
181
  required: string[];
184
182
  };
185
183
  };
186
- export declare const TOOL_DEFINITIONS: ({
184
+ export declare const CORE_TOOL_DEFINITIONS: ({
187
185
  name: string;
188
- description: string;
189
186
  input_schema: {
190
187
  type: "object";
191
188
  properties: {
192
- file_path: {
193
- type: string;
194
- description: string;
195
- };
189
+ path: {};
196
190
  content?: undefined;
197
- path?: undefined;
198
- command?: undefined;
199
- cwd?: undefined;
191
+ pattern?: undefined;
192
+ cmd?: undefined;
193
+ };
194
+ required?: undefined;
195
+ };
196
+ } | {
197
+ name: string;
198
+ input_schema: {
199
+ type: "object";
200
+ properties: {
201
+ path: {};
202
+ content: {};
203
+ pattern?: undefined;
204
+ cmd?: undefined;
200
205
  };
201
206
  required: string[];
202
207
  };
203
208
  } | {
204
209
  name: string;
205
- description: string;
206
210
  input_schema: {
207
211
  type: "object";
208
212
  properties: {
209
- file_path: {
210
- type: string;
211
- description: string;
212
- };
213
- content: {
214
- type: string;
215
- description: string;
216
- };
213
+ pattern: {};
217
214
  path?: undefined;
218
- command?: undefined;
219
- cwd?: undefined;
215
+ content?: undefined;
216
+ cmd?: undefined;
220
217
  };
221
- required: string[];
218
+ required?: undefined;
222
219
  };
223
220
  } | {
224
221
  name: string;
225
- description: string;
226
222
  input_schema: {
227
223
  type: "object";
228
224
  properties: {
229
- path: {
230
- type: string;
231
- description: string;
232
- };
233
- file_path?: undefined;
225
+ cmd: {};
226
+ path?: undefined;
234
227
  content?: undefined;
235
- command?: undefined;
236
- cwd?: undefined;
228
+ pattern?: undefined;
229
+ };
230
+ required?: undefined;
231
+ };
232
+ })[];
233
+ export declare const EXTENDED_TOOL_DEFINITIONS: ({
234
+ name: string;
235
+ input_schema: {
236
+ type: "object";
237
+ properties: {
238
+ path: {};
239
+ content?: undefined;
240
+ pattern?: undefined;
241
+ cmd?: undefined;
242
+ };
243
+ required?: undefined;
244
+ };
245
+ } | {
246
+ name: string;
247
+ input_schema: {
248
+ type: "object";
249
+ properties: {
250
+ path: {};
251
+ content: {};
252
+ pattern?: undefined;
253
+ cmd?: undefined;
237
254
  };
238
255
  required: string[];
239
256
  };
240
257
  } | {
241
258
  name: string;
242
- description: string;
243
259
  input_schema: {
244
260
  type: "object";
245
261
  properties: {
246
- command: {
247
- type: string;
248
- description: string;
249
- };
250
- cwd: {
251
- type: string;
252
- description: string;
253
- };
254
- file_path?: undefined;
255
- content?: undefined;
262
+ pattern: {};
256
263
  path?: undefined;
264
+ content?: undefined;
265
+ cmd?: undefined;
257
266
  };
258
- required: string[];
267
+ required?: undefined;
259
268
  };
260
269
  } | {
261
270
  name: string;
262
- description: string;
263
271
  input_schema: {
264
272
  type: "object";
265
273
  properties: {
266
- action: {
267
- type: string;
268
- description: string;
269
- };
270
- type: {
271
- type: string;
272
- description: string;
273
- };
274
- url: {
275
- type: string;
276
- description: string;
277
- };
278
- selector: {
279
- type: string;
280
- description: string;
281
- };
282
- text: {
283
- type: string;
284
- description: string;
285
- };
286
- script: {
287
- type: string;
288
- description: string;
289
- };
290
- direction: {
291
- type: string;
292
- description: string;
293
- };
294
- amount: {
295
- type: string;
296
- description: string;
297
- };
298
- file_path: {
299
- type: string;
300
- description: string;
301
- };
302
- timeoutMs: {
303
- type: string;
304
- description: string;
305
- };
306
- timeMs: {
307
- type: string;
308
- description: string;
309
- };
310
- headless: {
311
- type: string;
312
- description: string;
313
- };
314
- slowMoMs: {
315
- type: string;
316
- description: string;
317
- };
318
- userAgent: {
319
- type: string;
320
- description: string;
321
- };
322
- viewport: {
323
- type: string;
324
- properties: {
325
- width: {
326
- type: string;
327
- };
328
- height: {
329
- type: string;
330
- };
331
- };
332
- };
274
+ cmd: {};
275
+ path?: undefined;
276
+ content?: undefined;
277
+ pattern?: undefined;
333
278
  };
334
- required: string[];
279
+ required?: undefined;
335
280
  };
336
281
  } | {
337
282
  name: string;
338
- description: string;
339
283
  input_schema: {
340
284
  type: "object";
341
285
  properties: {
342
- url: {
343
- type: string;
344
- description: string;
345
- };
346
- method: {
347
- type: string;
348
- description: string;
349
- };
350
- headers: {
351
- type: "object";
352
- description: string;
353
- additionalProperties: {
354
- type: string;
355
- };
356
- };
357
- body: {
358
- type: string;
359
- description: string;
360
- };
286
+ url: {};
361
287
  };
362
- required: string[];
363
288
  };
364
- })[];
365
- export declare const CODE_WITH_AGENT_TOOL: {
289
+ } | {
366
290
  name: string;
367
- description: string;
368
291
  input_schema: {
369
292
  type: "object";
370
293
  properties: {
371
294
  task: {
372
- type: string;
373
- description: string;
295
+ type: "string";
374
296
  };
375
297
  agent: {
376
- type: string;
377
- enum: string[];
378
- description: string;
379
- };
380
- workdir: {
381
- type: string;
382
- description: string;
383
- };
384
- model: {
385
- type: string;
386
- description: string;
298
+ type: "string";
387
299
  };
388
- max_turns: {
389
- type: string;
300
+ interactive: {
301
+ type: "boolean";
390
302
  description: string;
391
303
  };
392
- timeout_minutes: {
393
- type: string;
304
+ effort: {
305
+ type: "string";
306
+ enum: string[];
394
307
  description: string;
395
308
  };
396
- validate: {
397
- type: string;
309
+ worktree: {
398
310
  description: string;
399
311
  };
400
312
  };
401
313
  required: string[];
402
314
  };
403
- };
404
- export declare const CODE_WITH_TEAM_TOOL: {
315
+ } | {
405
316
  name: string;
406
- description: string;
407
317
  input_schema: {
408
318
  type: "object";
409
319
  properties: {
410
- task: {
411
- type: string;
412
- description: string;
320
+ id: {
321
+ type: "string";
413
322
  };
414
- team_size: {
415
- type: string;
323
+ };
324
+ };
325
+ } | {
326
+ name: string;
327
+ input_schema: {
328
+ type: "object";
329
+ properties: {
330
+ alias: {
331
+ type: "string";
416
332
  description: string;
417
333
  };
418
- workdir: {
419
- type: string;
334
+ task: {
335
+ type: "string";
420
336
  description: string;
421
337
  };
422
- agent: {
423
- type: string;
338
+ mode: {
339
+ type: "string";
424
340
  enum: string[];
425
341
  description: string;
426
342
  };
427
- model: {
428
- type: string;
429
- description: string;
430
- };
431
- timeout_minutes: {
432
- type: string;
433
- description: string;
434
- };
435
- validate: {
436
- type: string;
343
+ wait: {
344
+ type: "boolean";
437
345
  description: string;
438
346
  };
439
347
  };
440
348
  required: string[];
441
349
  };
442
- };
443
- export declare const CHECK_CODE_AGENT_TOOL: {
444
- name: string;
445
- description: string;
446
- input_schema: {
447
- type: "object";
448
- properties: {
449
- id: {
450
- type: string;
451
- description: string;
452
- };
453
- };
454
- };
455
- };
350
+ })[];
351
+ /** Return tool defs filtered by what's been used/mentioned in conversation */
352
+ export declare function getActiveToolDefs(messages: any[]): any[];