@levelcode/sdk 0.2.4 → 0.2.5

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 (324) hide show
  1. package/dist/index.cjs +493 -289
  2. package/dist/index.cjs.map +8 -7
  3. package/dist/index.mjs +564 -360
  4. package/dist/index.mjs.map +8 -7
  5. package/package.json +1 -1
  6. package/dist/agents/constants.d.ts +0 -1
  7. package/dist/agents/team/apprentice.d.ts +0 -3
  8. package/dist/agents/team/coordinator.d.ts +0 -3
  9. package/dist/agents/team/cto.d.ts +0 -3
  10. package/dist/agents/team/designer.d.ts +0 -3
  11. package/dist/agents/team/director.d.ts +0 -3
  12. package/dist/agents/team/distinguished-engineer.d.ts +0 -3
  13. package/dist/agents/team/fellow.d.ts +0 -3
  14. package/dist/agents/team/index.d.ts +0 -27
  15. package/dist/agents/team/intern.d.ts +0 -3
  16. package/dist/agents/team/junior-engineer.d.ts +0 -3
  17. package/dist/agents/team/manager.d.ts +0 -3
  18. package/dist/agents/team/mid-level-engineer.d.ts +0 -3
  19. package/dist/agents/team/principal-engineer.d.ts +0 -3
  20. package/dist/agents/team/product-lead.d.ts +0 -3
  21. package/dist/agents/team/researcher.d.ts +0 -3
  22. package/dist/agents/team/role-hierarchy.d.ts +0 -24
  23. package/dist/agents/team/scientist.d.ts +0 -3
  24. package/dist/agents/team/senior-engineer.d.ts +0 -3
  25. package/dist/agents/team/senior-staff-engineer.d.ts +0 -3
  26. package/dist/agents/team/staff-engineer.d.ts +0 -3
  27. package/dist/agents/team/sub-manager.d.ts +0 -3
  28. package/dist/agents/team/tester.d.ts +0 -3
  29. package/dist/agents/team/vp-engineering.d.ts +0 -3
  30. package/dist/agents/types/agent-definition.d.ts +0 -296
  31. package/dist/agents/types/secret-agent-definition.d.ts +0 -19
  32. package/dist/agents/types/tools.d.ts +0 -308
  33. package/dist/agents/types/util-types.d.ts +0 -134
  34. package/dist/common/src/actions.d.ts +0 -176
  35. package/dist/common/src/analytics-core.d.ts +0 -52
  36. package/dist/common/src/analytics.d.ts +0 -9
  37. package/dist/common/src/browser-actions.d.ts +0 -1200
  38. package/dist/common/src/constants/agents.d.ts +0 -47
  39. package/dist/common/src/constants/analytics-events.d.ts +0 -111
  40. package/dist/common/src/constants/byok.d.ts +0 -2
  41. package/dist/common/src/constants/claude-oauth.d.ts +0 -36
  42. package/dist/common/src/constants/index.d.ts +0 -4
  43. package/dist/common/src/constants/knowledge.d.ts +0 -21
  44. package/dist/common/src/constants/limits.d.ts +0 -14
  45. package/dist/common/src/constants/model-config.d.ts +0 -117
  46. package/dist/common/src/constants/paths.d.ts +0 -23
  47. package/dist/common/src/constants/skills.d.ts +0 -42
  48. package/dist/common/src/constants/ui.d.ts +0 -14
  49. package/dist/common/src/env-ci.d.ts +0 -22
  50. package/dist/common/src/env-process.d.ts +0 -28
  51. package/dist/common/src/env-schema.d.ts +0 -24
  52. package/dist/common/src/env.d.ts +0 -16
  53. package/dist/common/src/mcp/client.d.ts +0 -6
  54. package/dist/common/src/old-constants.d.ts +0 -10
  55. package/dist/common/src/project-file-tree.d.ts +0 -27
  56. package/dist/common/src/templates/agent-validation.d.ts +0 -48
  57. package/dist/common/src/templates/initial-agents-dir/types/agent-definition.d.ts +0 -296
  58. package/dist/common/src/templates/initial-agents-dir/types/tools.d.ts +0 -308
  59. package/dist/common/src/templates/initial-agents-dir/types/util-types.d.ts +0 -128
  60. package/dist/common/src/testing/errors.d.ts +0 -14
  61. package/dist/common/src/testing/mock-modules.d.ts +0 -11
  62. package/dist/common/src/testing/mock-types.d.ts +0 -97
  63. package/dist/common/src/testing/mocks/analytics.d.ts +0 -182
  64. package/dist/common/src/testing/mocks/child-process.d.ts +0 -29
  65. package/dist/common/src/testing/mocks/crypto.d.ts +0 -159
  66. package/dist/common/src/testing/mocks/database.d.ts +0 -197
  67. package/dist/common/src/testing/mocks/fetch.d.ts +0 -35
  68. package/dist/common/src/testing/mocks/filesystem.d.ts +0 -31
  69. package/dist/common/src/testing/mocks/index.d.ts +0 -25
  70. package/dist/common/src/testing/mocks/logger.d.ts +0 -35
  71. package/dist/common/src/testing/mocks/stream.d.ts +0 -203
  72. package/dist/common/src/testing/mocks/timers.d.ts +0 -27
  73. package/dist/common/src/testing/mocks/tree-sitter.d.ts +0 -58
  74. package/dist/common/src/testing-env-process.d.ts +0 -7
  75. package/dist/common/src/tools/constants.d.ts +0 -17
  76. package/dist/common/src/tools/list.d.ts +0 -1152
  77. package/dist/common/src/tools/params/tool/add-message.d.ts +0 -19
  78. package/dist/common/src/tools/params/tool/add-subgoal.d.ts +0 -26
  79. package/dist/common/src/tools/params/tool/ask-user.d.ts +0 -59
  80. package/dist/common/src/tools/params/tool/browser-logs.d.ts +0 -127
  81. package/dist/common/src/tools/params/tool/code-search.d.ts +0 -30
  82. package/dist/common/src/tools/params/tool/create-plan.d.ts +0 -30
  83. package/dist/common/src/tools/params/tool/end-turn.d.ts +0 -13
  84. package/dist/common/src/tools/params/tool/find-files.d.ts +0 -31
  85. package/dist/common/src/tools/params/tool/glob.d.ts +0 -26
  86. package/dist/common/src/tools/params/tool/list-directory.d.ts +0 -25
  87. package/dist/common/src/tools/params/tool/lookup-agent-info.d.ts +0 -13
  88. package/dist/common/src/tools/params/tool/propose-str-replace.d.ts +0 -40
  89. package/dist/common/src/tools/params/tool/propose-write-file.d.ts +0 -29
  90. package/dist/common/src/tools/params/tool/read-docs.d.ts +0 -19
  91. package/dist/common/src/tools/params/tool/read-files.d.ts +0 -35
  92. package/dist/common/src/tools/params/tool/read-subtree.d.ts +0 -40
  93. package/dist/common/src/tools/params/tool/run-file-change-hooks.d.ts +0 -63
  94. package/dist/common/src/tools/params/tool/run-terminal-command.d.ts +0 -88
  95. package/dist/common/src/tools/params/tool/send-message.d.ts +0 -26
  96. package/dist/common/src/tools/params/tool/set-messages.d.ts +0 -15
  97. package/dist/common/src/tools/params/tool/set-output.d.ts +0 -15
  98. package/dist/common/src/tools/params/tool/skill.d.ts +0 -28
  99. package/dist/common/src/tools/params/tool/spawn-agent-inline.d.ts +0 -17
  100. package/dist/common/src/tools/params/tool/spawn-agents.d.ts +0 -26
  101. package/dist/common/src/tools/params/tool/str-replace.d.ts +0 -43
  102. package/dist/common/src/tools/params/tool/suggest-followups.d.ts +0 -26
  103. package/dist/common/src/tools/params/tool/task-completed.d.ts +0 -13
  104. package/dist/common/src/tools/params/tool/task-create.d.ts +0 -24
  105. package/dist/common/src/tools/params/tool/task-get.d.ts +0 -15
  106. package/dist/common/src/tools/params/tool/task-list.d.ts +0 -13
  107. package/dist/common/src/tools/params/tool/task-update.d.ts +0 -29
  108. package/dist/common/src/tools/params/tool/team-create.d.ts +0 -17
  109. package/dist/common/src/tools/params/tool/team-delete.d.ts +0 -13
  110. package/dist/common/src/tools/params/tool/think-deeply.d.ts +0 -15
  111. package/dist/common/src/tools/params/tool/update-subgoal.d.ts +0 -25
  112. package/dist/common/src/tools/params/tool/web-search.d.ts +0 -25
  113. package/dist/common/src/tools/params/tool/write-file.d.ts +0 -31
  114. package/dist/common/src/tools/params/tool/write-todos.d.ts +0 -18
  115. package/dist/common/src/tools/params/utils.d.ts +0 -35
  116. package/dist/common/src/tools/utils.d.ts +0 -4
  117. package/dist/common/src/types/agent-template.d.ts +0 -156
  118. package/dist/common/src/types/contracts/agent-runtime.d.ts +0 -36
  119. package/dist/common/src/types/contracts/analytics.d.ts +0 -8
  120. package/dist/common/src/types/contracts/billing.d.ts +0 -40
  121. package/dist/common/src/types/contracts/client.d.ts +0 -45
  122. package/dist/common/src/types/contracts/database.d.ts +0 -80
  123. package/dist/common/src/types/contracts/env.d.ts +0 -150
  124. package/dist/common/src/types/contracts/llm.d.ts +0 -102
  125. package/dist/common/src/types/contracts/logger.d.ts +0 -8
  126. package/dist/common/src/types/dynamic-agent-template.d.ts +0 -227
  127. package/dist/common/src/types/filesystem.d.ts +0 -6
  128. package/dist/common/src/types/function-params.d.ts +0 -15
  129. package/dist/common/src/types/grant.d.ts +0 -2
  130. package/dist/common/src/types/json.d.ts +0 -9
  131. package/dist/common/src/types/mcp.d.ts +0 -31
  132. package/dist/common/src/types/messages/content-part.d.ts +0 -46
  133. package/dist/common/src/types/messages/data-content.d.ts +0 -3
  134. package/dist/common/src/types/messages/levelcode-message.d.ts +0 -37
  135. package/dist/common/src/types/messages/provider-metadata.d.ts +0 -3
  136. package/dist/common/src/types/print-mode.d.ts +0 -155
  137. package/dist/common/src/types/session-state.d.ts +0 -94
  138. package/dist/common/src/types/skill.d.ts +0 -31
  139. package/dist/common/src/types/source.d.ts +0 -8
  140. package/dist/common/src/types/spawn.d.ts +0 -8
  141. package/dist/common/src/types/team-config-schemas.d.ts +0 -217
  142. package/dist/common/src/types/team-config.d.ts +0 -42
  143. package/dist/common/src/types/team-hook-events.d.ts +0 -36
  144. package/dist/common/src/types/team-protocol.d.ts +0 -64
  145. package/dist/common/src/util/agent-id-parsing.d.ts +0 -22
  146. package/dist/common/src/util/agent-name-normalization.d.ts +0 -12
  147. package/dist/common/src/util/array.d.ts +0 -6
  148. package/dist/common/src/util/credentials.d.ts +0 -11
  149. package/dist/common/src/util/error.d.ts +0 -128
  150. package/dist/common/src/util/file.d.ts +0 -133
  151. package/dist/common/src/util/format-code-search.d.ts +0 -16
  152. package/dist/common/src/util/lru-cache.d.ts +0 -30
  153. package/dist/common/src/util/messages.d.ts +0 -46
  154. package/dist/common/src/util/model-utils.d.ts +0 -8
  155. package/dist/common/src/util/object.d.ts +0 -22
  156. package/dist/common/src/util/promise.d.ts +0 -16
  157. package/dist/common/src/util/random.d.ts +0 -1
  158. package/dist/common/src/util/skills.d.ts +0 -5
  159. package/dist/common/src/util/stop-sequence.d.ts +0 -14
  160. package/dist/common/src/util/string.d.ts +0 -82
  161. package/dist/common/src/util/xml.d.ts +0 -12
  162. package/dist/common/src/util/zod-schema.d.ts +0 -5
  163. package/dist/common/src/utils/dev-phases.d.ts +0 -23
  164. package/dist/common/src/utils/file-lock.d.ts +0 -13
  165. package/dist/common/src/utils/team-analytics.d.ts +0 -16
  166. package/dist/common/src/utils/team-discovery.d.ts +0 -47
  167. package/dist/common/src/utils/team-fs.d.ts +0 -20
  168. package/dist/common/src/utils/team-hook-emitter.d.ts +0 -40
  169. package/dist/common/src/utils/team-presets.d.ts +0 -35
  170. package/dist/packages/agent-runtime/src/constants.d.ts +0 -1
  171. package/dist/packages/agent-runtime/src/fast-rewrite.d.ts +0 -45
  172. package/dist/packages/agent-runtime/src/find-files/request-files-prompt.d.ts +0 -71
  173. package/dist/packages/agent-runtime/src/generate-diffs-prompt.d.ts +0 -53
  174. package/dist/packages/agent-runtime/src/get-file-reading-updates.d.ts +0 -8
  175. package/dist/packages/agent-runtime/src/inbox-poller.d.ts +0 -81
  176. package/dist/packages/agent-runtime/src/llm-api/claude.d.ts +0 -5
  177. package/dist/packages/agent-runtime/src/llm-api/context7-api.d.ts +0 -55
  178. package/dist/packages/agent-runtime/src/llm-api/gemini-with-fallbacks.d.ts +0 -40
  179. package/dist/packages/agent-runtime/src/llm-api/levelcode-web-api.d.ts +0 -49
  180. package/dist/packages/agent-runtime/src/llm-api/relace-api.d.ts +0 -16
  181. package/dist/packages/agent-runtime/src/main-prompt.d.ts +0 -29
  182. package/dist/packages/agent-runtime/src/mcp-constants.d.ts +0 -12
  183. package/dist/packages/agent-runtime/src/mcp.d.ts +0 -10
  184. package/dist/packages/agent-runtime/src/message-formatter.d.ts +0 -12
  185. package/dist/packages/agent-runtime/src/process-file-block.d.ts +0 -56
  186. package/dist/packages/agent-runtime/src/process-str-replace.d.ts +0 -21
  187. package/dist/packages/agent-runtime/src/prompt-agent-stream.d.ts +0 -28
  188. package/dist/packages/agent-runtime/src/run-agent-step.d.ts +0 -73
  189. package/dist/packages/agent-runtime/src/run-programmatic-step.d.ts +0 -40
  190. package/dist/packages/agent-runtime/src/system-prompt/prompts.d.ts +0 -19
  191. package/dist/packages/agent-runtime/src/system-prompt/search-system-prompt.d.ts +0 -14
  192. package/dist/packages/agent-runtime/src/system-prompt/team-context-prompt.d.ts +0 -9
  193. package/dist/packages/agent-runtime/src/system-prompt/team-prompt.d.ts +0 -9
  194. package/dist/packages/agent-runtime/src/system-prompt/truncate-file-tree.d.ts +0 -13
  195. package/dist/packages/agent-runtime/src/team-context.d.ts +0 -14
  196. package/dist/packages/agent-runtime/src/templates/agent-registry.d.ts +0 -35
  197. package/dist/packages/agent-runtime/src/templates/prompts.d.ts +0 -35
  198. package/dist/packages/agent-runtime/src/templates/strings.d.ts +0 -32
  199. package/dist/packages/agent-runtime/src/templates/types.d.ts +0 -13
  200. package/dist/packages/agent-runtime/src/tool-stream-parser.d.ts +0 -31
  201. package/dist/packages/agent-runtime/src/tools/handlers/handler-function-type.d.ts +0 -51
  202. package/dist/packages/agent-runtime/src/tools/handlers/list.d.ts +0 -370
  203. package/dist/packages/agent-runtime/src/tools/handlers/tool/add-message.d.ts +0 -9
  204. package/dist/packages/agent-runtime/src/tools/handlers/tool/add-subgoal.d.ts +0 -9
  205. package/dist/packages/agent-runtime/src/tools/handlers/tool/ask-user.d.ts +0 -10
  206. package/dist/packages/agent-runtime/src/tools/handlers/tool/browser-logs.d.ts +0 -8
  207. package/dist/packages/agent-runtime/src/tools/handlers/tool/code-search.d.ts +0 -8
  208. package/dist/packages/agent-runtime/src/tools/handlers/tool/create-plan.d.ts +0 -13
  209. package/dist/packages/agent-runtime/src/tools/handlers/tool/end-turn.d.ts +0 -7
  210. package/dist/packages/agent-runtime/src/tools/handlers/tool/find-files.d.ts +0 -27
  211. package/dist/packages/agent-runtime/src/tools/handlers/tool/glob.d.ts +0 -10
  212. package/dist/packages/agent-runtime/src/tools/handlers/tool/list-directory.d.ts +0 -10
  213. package/dist/packages/agent-runtime/src/tools/handlers/tool/lookup-agent-info.d.ts +0 -14
  214. package/dist/packages/agent-runtime/src/tools/handlers/tool/propose-str-replace.d.ts +0 -15
  215. package/dist/packages/agent-runtime/src/tools/handlers/tool/propose-write-file.d.ts +0 -7
  216. package/dist/packages/agent-runtime/src/tools/handlers/tool/proposed-content-store.d.ts +0 -27
  217. package/dist/packages/agent-runtime/src/tools/handlers/tool/read-docs.d.ts +0 -21
  218. package/dist/packages/agent-runtime/src/tools/handlers/tool/read-files.d.ts +0 -13
  219. package/dist/packages/agent-runtime/src/tools/handlers/tool/read-subtree.d.ts +0 -13
  220. package/dist/packages/agent-runtime/src/tools/handlers/tool/run-file-change-hooks.d.ts +0 -10
  221. package/dist/packages/agent-runtime/src/tools/handlers/tool/run-terminal-command.d.ts +0 -10
  222. package/dist/packages/agent-runtime/src/tools/handlers/tool/send-message.d.ts +0 -15
  223. package/dist/packages/agent-runtime/src/tools/handlers/tool/set-messages.d.ts +0 -9
  224. package/dist/packages/agent-runtime/src/tools/handlers/tool/set-output.d.ts +0 -18
  225. package/dist/packages/agent-runtime/src/tools/handlers/tool/skill.d.ts +0 -11
  226. package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-inline.d.ts +0 -29
  227. package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-utils.d.ts +0 -130
  228. package/dist/packages/agent-runtime/src/tools/handlers/tool/spawn-agents.d.ts +0 -37
  229. package/dist/packages/agent-runtime/src/tools/handlers/tool/str-replace.d.ts +0 -16
  230. package/dist/packages/agent-runtime/src/tools/handlers/tool/suggest-followups.d.ts +0 -9
  231. package/dist/packages/agent-runtime/src/tools/handlers/tool/task-completed.d.ts +0 -15
  232. package/dist/packages/agent-runtime/src/tools/handlers/tool/task-create.d.ts +0 -10
  233. package/dist/packages/agent-runtime/src/tools/handlers/tool/task-get.d.ts +0 -10
  234. package/dist/packages/agent-runtime/src/tools/handlers/tool/task-list.d.ts +0 -10
  235. package/dist/packages/agent-runtime/src/tools/handlers/tool/task-update.d.ts +0 -15
  236. package/dist/packages/agent-runtime/src/tools/handlers/tool/team-create.d.ts +0 -15
  237. package/dist/packages/agent-runtime/src/tools/handlers/tool/team-delete.d.ts +0 -15
  238. package/dist/packages/agent-runtime/src/tools/handlers/tool/think-deeply.d.ts +0 -9
  239. package/dist/packages/agent-runtime/src/tools/handlers/tool/update-subgoal.d.ts +0 -11
  240. package/dist/packages/agent-runtime/src/tools/handlers/tool/web-search.d.ts +0 -22
  241. package/dist/packages/agent-runtime/src/tools/handlers/tool/write-file.d.ts +0 -49
  242. package/dist/packages/agent-runtime/src/tools/handlers/tool/write-todos.d.ts +0 -9
  243. package/dist/packages/agent-runtime/src/tools/prompts.d.ts +0 -31
  244. package/dist/packages/agent-runtime/src/tools/stream-parser.d.ts +0 -33
  245. package/dist/packages/agent-runtime/src/tools/tool-executor.d.ts +0 -87
  246. package/dist/packages/agent-runtime/src/util/agent-output.d.ts +0 -3
  247. package/dist/packages/agent-runtime/src/util/messages.d.ts +0 -68
  248. package/dist/packages/agent-runtime/src/util/parse-tool-calls-from-text.d.ts +0 -38
  249. package/dist/packages/agent-runtime/src/util/render-read-files-result.d.ts +0 -15
  250. package/dist/packages/agent-runtime/src/util/simplify-tool-results.d.ts +0 -7
  251. package/dist/packages/agent-runtime/src/util/stream-xml-parser.d.ts +0 -34
  252. package/dist/packages/agent-runtime/src/util/token-counter.d.ts +0 -3
  253. package/dist/packages/code-map/src/index.d.ts +0 -3
  254. package/dist/packages/code-map/src/init-node.d.ts +0 -4
  255. package/dist/packages/code-map/src/languages.d.ts +0 -36
  256. package/dist/packages/code-map/src/parse.d.ts +0 -21
  257. package/dist/packages/code-map/src/types.d.ts +0 -8
  258. package/dist/packages/code-map/src/utils.d.ts +0 -1
  259. package/dist/sdk/src/__tests__/client.test.d.ts +0 -1
  260. package/dist/sdk/src/__tests__/code-search.test.d.ts +0 -1
  261. package/dist/sdk/src/__tests__/credentials.test.d.ts +0 -1
  262. package/dist/sdk/src/__tests__/database.test.d.ts +0 -1
  263. package/dist/sdk/src/__tests__/env.test.d.ts +0 -1
  264. package/dist/sdk/src/__tests__/error-utils.test.d.ts +0 -1
  265. package/dist/sdk/src/__tests__/initial-session-state.test.d.ts +0 -1
  266. package/dist/sdk/src/__tests__/knowledge-file-selection.test.d.ts +0 -1
  267. package/dist/sdk/src/__tests__/load-agents.test.d.ts +0 -1
  268. package/dist/sdk/src/__tests__/load-mcp-config.test.d.ts +0 -1
  269. package/dist/sdk/src/__tests__/model-provider.test.d.ts +0 -1
  270. package/dist/sdk/src/__tests__/read-files.test.d.ts +0 -1
  271. package/dist/sdk/src/__tests__/run-cancellation.test.d.ts +0 -1
  272. package/dist/sdk/src/__tests__/run-file-filter.test.d.ts +0 -1
  273. package/dist/sdk/src/__tests__/run-handle-event.test.d.ts +0 -1
  274. package/dist/sdk/src/__tests__/run.integration.test.d.ts +0 -1
  275. package/dist/sdk/src/__tests__/team-api.test.d.ts +0 -1
  276. package/dist/sdk/src/__tests__/user-knowledge-files.test.d.ts +0 -1
  277. package/dist/sdk/src/__tests__/validate-agents.test.d.ts +0 -1
  278. package/dist/sdk/src/agents/load-agents.d.ts +0 -106
  279. package/dist/sdk/src/agents/load-mcp-config.d.ts +0 -69
  280. package/dist/sdk/src/client.d.ts +0 -71
  281. package/dist/sdk/src/constants.d.ts +0 -4
  282. package/dist/sdk/src/credentials.d.ts +0 -58
  283. package/dist/sdk/src/custom-tool.d.ts +0 -32
  284. package/dist/sdk/src/env.d.ts +0 -31
  285. package/dist/sdk/src/error-utils.d.ts +0 -55
  286. package/dist/sdk/src/impl/__tests__/prompt-result.test.d.ts +0 -1
  287. package/dist/sdk/src/impl/agent-runtime.d.ts +0 -8
  288. package/dist/sdk/src/impl/database.d.ts +0 -7
  289. package/dist/sdk/src/impl/llm.d.ts +0 -8
  290. package/dist/sdk/src/impl/model-provider.d.ts +0 -61
  291. package/dist/sdk/src/index.d.ts +0 -42
  292. package/dist/sdk/src/native/ripgrep.d.ts +0 -7
  293. package/dist/sdk/src/retry-config.d.ts +0 -46
  294. package/dist/sdk/src/run-state.d.ts +0 -81
  295. package/dist/sdk/src/run.d.ts +0 -79
  296. package/dist/sdk/src/skills/load-skills.d.ts +0 -42
  297. package/dist/sdk/src/team.d.ts +0 -49
  298. package/dist/sdk/src/testing/env.d.ts +0 -5
  299. package/dist/sdk/src/tools/change-file.d.ts +0 -7
  300. package/dist/sdk/src/tools/code-search.d.ts +0 -13
  301. package/dist/sdk/src/tools/glob.d.ts +0 -8
  302. package/dist/sdk/src/tools/index.d.ts +0 -16
  303. package/dist/sdk/src/tools/list-directory.d.ts +0 -7
  304. package/dist/sdk/src/tools/read-files.d.ts +0 -16
  305. package/dist/sdk/src/tools/run-file-change-hooks.d.ts +0 -4
  306. package/dist/sdk/src/tools/run-terminal-command.d.ts +0 -8
  307. package/dist/sdk/src/types/env.d.ts +0 -30
  308. package/dist/sdk/src/validate-agents.d.ts +0 -45
  309. package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
  310. package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
  311. package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
  312. package/dist/vendor/ripgrep/x64-linux/rg +0 -0
  313. package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
  314. package/dist/wasm/tree-sitter-c-sharp.wasm +0 -0
  315. package/dist/wasm/tree-sitter-cpp.wasm +0 -0
  316. package/dist/wasm/tree-sitter-go.wasm +0 -0
  317. package/dist/wasm/tree-sitter-java.wasm +0 -0
  318. package/dist/wasm/tree-sitter-javascript.wasm +0 -0
  319. package/dist/wasm/tree-sitter-python.wasm +0 -0
  320. package/dist/wasm/tree-sitter-ruby.wasm +0 -0
  321. package/dist/wasm/tree-sitter-rust.wasm +0 -0
  322. package/dist/wasm/tree-sitter-tsx.wasm +0 -0
  323. package/dist/wasm/tree-sitter-typescript.wasm +0 -0
  324. package/dist/wasm/tree-sitter.wasm +0 -0
@@ -1,88 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const terminalCommandOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
3
- command: z.ZodString;
4
- startingCwd: z.ZodOptional<z.ZodString>;
5
- message: z.ZodOptional<z.ZodString>;
6
- stderr: z.ZodOptional<z.ZodString>;
7
- stdout: z.ZodOptional<z.ZodString>;
8
- exitCode: z.ZodOptional<z.ZodNumber>;
9
- }, z.core.$strip>, z.ZodObject<{
10
- command: z.ZodString;
11
- startingCwd: z.ZodOptional<z.ZodString>;
12
- message: z.ZodOptional<z.ZodString>;
13
- stderr: z.ZodOptional<z.ZodString>;
14
- stdoutOmittedForLength: z.ZodLiteral<true>;
15
- exitCode: z.ZodOptional<z.ZodNumber>;
16
- }, z.core.$strip>, z.ZodObject<{
17
- command: z.ZodString;
18
- processId: z.ZodNumber;
19
- backgroundProcessStatus: z.ZodEnum<{
20
- error: "error";
21
- completed: "completed";
22
- running: "running";
23
- }>;
24
- }, z.core.$strip>, z.ZodObject<{
25
- command: z.ZodString;
26
- errorMessage: z.ZodString;
27
- }, z.core.$strip>]>;
28
- export declare const gitCommitGuidePrompt = "\n### Using git to commit changes\n\nWhen the user requests a new git commit, please follow these steps closely:\n\n1. **Run two run_terminal_command tool calls:**\n - Run `git diff` to review both staged and unstaged modifications.\n - Run `git log` to check recent commit messages, ensuring consistency with this repository's style.\n\n2. **Select relevant files to include in the commit:**\n Use the git context established at the start of this conversation to decide which files are pertinent to the changes. Stage any new untracked files that are relevant, but avoid committing previously modified files (from the beginning of the conversation) unless they directly relate to this commit.\n\n3. **Analyze the staged changes and compose a commit message:**\n Enclose your analysis in <commit_analysis> tags. Within these tags, you should:\n - Note which files have been altered or added.\n - Categorize the nature of the changes (e.g., new feature, fix, refactor, documentation, etc.).\n - Consider the purpose or motivation behind the alterations.\n - Refrain from using tools to inspect code beyond what is presented in the git context.\n - Evaluate the overall impact on the project.\n - Check for sensitive details that should not be committed.\n - Draft a concise, one- to two-sentence commit message focusing on the \u201Cwhy\u201D rather than the \u201Cwhat.\u201D\n - Use precise, straightforward language that accurately represents the changes.\n - Ensure the message provides clarity\u2014avoid generic or vague terms like \u201CUpdate\u201D or \u201CFix\u201D without context.\n - Revisit your draft to confirm it truly reflects the changes and their intention.\n\n4. **Create the commit, ending with this specific footer:**\n ```\n Generated with LevelCode \uD83E\uDD16\n Co-Authored-By: LevelCode <noreply@levelcode.vercel.app>\n ```\n To maintain proper formatting, use cross-platform compatible commit messages:\n \n **For Unix/bash shells:**\n ```\n git commit -m \"$(cat <<'EOF'\n Your commit message here.\n\n \uD83E\uDD16 Generated with LevelCode\n Co-Authored-By: LevelCode <noreply@levelcode.vercel.app>\n EOF\n )\"\n ```\n \n **For Windows Command Prompt:**\n ```\n git commit -m \"Your commit message here.\n\n \uD83E\uDD16 Generated with LevelCode\n Co-Authored-By: LevelCode <noreply@levelcode.vercel.app>\"\n ```\n \n Always detect the platform and use the appropriate syntax. HEREDOC syntax (`<<'EOF'`) only works in bash/Unix shells and will fail on Windows Command Prompt.\n\n**Important details**\n\n- When feasible, use a single `git commit -am` command to add and commit together, but do not accidentally stage unrelated files.\n- Never alter the git config.\n- Do not push to the remote repository.\n- Avoid using interactive flags (e.g., `-i`) that require unsupported interactive input.\n- Do not create an empty commit if there are no changes.\n- Make sure your commit message is concise yet descriptive, focusing on the intention behind the changes rather than merely describing them.\n";
29
- export declare const runTerminalCommandParams: {
30
- toolName: "run_terminal_command";
31
- endsAgentStep: true;
32
- description: string;
33
- inputSchema: z.ZodObject<{
34
- command: z.ZodString;
35
- process_type: z.ZodDefault<z.ZodEnum<{
36
- SYNC: "SYNC";
37
- BACKGROUND: "BACKGROUND";
38
- }>>;
39
- cwd: z.ZodOptional<z.ZodString>;
40
- timeout_seconds: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
41
- }, z.core.$strip>;
42
- outputSchema: z.ZodTuple<[z.ZodObject<{
43
- type: z.ZodLiteral<"json">;
44
- value: z.ZodType<{
45
- command: string;
46
- startingCwd?: string | undefined;
47
- message?: string | undefined;
48
- stderr?: string | undefined;
49
- stdout?: string | undefined;
50
- exitCode?: number | undefined;
51
- } | {
52
- command: string;
53
- stdoutOmittedForLength: true;
54
- startingCwd?: string | undefined;
55
- message?: string | undefined;
56
- stderr?: string | undefined;
57
- exitCode?: number | undefined;
58
- } | {
59
- command: string;
60
- processId: number;
61
- backgroundProcessStatus: "error" | "completed" | "running";
62
- } | {
63
- command: string;
64
- errorMessage: string;
65
- }, unknown, z.core.$ZodTypeInternals<{
66
- command: string;
67
- startingCwd?: string | undefined;
68
- message?: string | undefined;
69
- stderr?: string | undefined;
70
- stdout?: string | undefined;
71
- exitCode?: number | undefined;
72
- } | {
73
- command: string;
74
- stdoutOmittedForLength: true;
75
- startingCwd?: string | undefined;
76
- message?: string | undefined;
77
- stderr?: string | undefined;
78
- exitCode?: number | undefined;
79
- } | {
80
- command: string;
81
- processId: number;
82
- backgroundProcessStatus: "error" | "completed" | "running";
83
- } | {
84
- command: string;
85
- errorMessage: string;
86
- }, unknown>>;
87
- }, z.core.$strip>], null>;
88
- };
@@ -1,26 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const sendMessageParams: {
3
- toolName: "send_message";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- type: z.ZodEnum<{
8
- message: "message";
9
- shutdown_request: "shutdown_request";
10
- plan_approval_response: "plan_approval_response";
11
- broadcast: "broadcast";
12
- shutdown_response: "shutdown_response";
13
- }>;
14
- recipient: z.ZodOptional<z.ZodString>;
15
- content: z.ZodOptional<z.ZodString>;
16
- summary: z.ZodOptional<z.ZodString>;
17
- request_id: z.ZodOptional<z.ZodString>;
18
- approve: z.ZodOptional<z.ZodBoolean>;
19
- }, z.core.$strip>;
20
- outputSchema: z.ZodTuple<[z.ZodObject<{
21
- type: z.ZodLiteral<"json">;
22
- value: z.ZodObject<{
23
- message: z.ZodString;
24
- }, z.core.$strip>;
25
- }, z.core.$strip>], null>;
26
- };
@@ -1,15 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const setMessagesParams: {
3
- toolName: "set_messages";
4
- endsAgentStep: true;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- messages: z.ZodAny;
8
- }, z.core.$strip>;
9
- outputSchema: z.ZodTuple<[z.ZodObject<{
10
- type: z.ZodLiteral<"json">;
11
- value: z.ZodObject<{
12
- message: z.ZodString;
13
- }, z.core.$strip>;
14
- }, z.core.$strip>], null>;
15
- };
@@ -1,15 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const setOutputParams: {
3
- toolName: "set_output";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
- }, z.core.$loose>;
9
- outputSchema: z.ZodTuple<[z.ZodObject<{
10
- type: z.ZodLiteral<"json">;
11
- value: z.ZodObject<{
12
- message: z.ZodString;
13
- }, z.core.$strip>;
14
- }, z.core.$strip>], null>;
15
- };
@@ -1,28 +0,0 @@
1
- import z from 'zod/v4';
2
- /**
3
- * Placeholder marker that will be replaced with the actual available skills XML.
4
- * This is replaced at runtime when generating tool prompts.
5
- */
6
- export declare const AVAILABLE_SKILLS_PLACEHOLDER = "{{AVAILABLE_SKILLS}}";
7
- export declare const skillParams: {
8
- toolName: "skill";
9
- endsAgentStep: true;
10
- description: string;
11
- inputSchema: z.ZodObject<{
12
- name: z.ZodString;
13
- }, z.core.$strip>;
14
- outputSchema: z.ZodTuple<[z.ZodObject<{
15
- type: z.ZodLiteral<"json">;
16
- value: z.ZodType<{
17
- name: string;
18
- description: string;
19
- content: string;
20
- license?: string | undefined;
21
- }, unknown, z.core.$ZodTypeInternals<{
22
- name: string;
23
- description: string;
24
- content: string;
25
- license?: string | undefined;
26
- }, unknown>>;
27
- }, z.core.$strip>], null>;
28
- };
@@ -1,17 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const spawnAgentInlineParams: {
3
- toolName: "spawn_agent_inline";
4
- endsAgentStep: true;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- agent_type: z.ZodString;
8
- prompt: z.ZodOptional<z.ZodString>;
9
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
- }, z.core.$strip>;
11
- outputSchema: z.ZodTuple<[z.ZodObject<{
12
- type: z.ZodLiteral<"json">;
13
- value: z.ZodObject<{
14
- message: z.ZodString;
15
- }, z.core.$strip>;
16
- }, z.core.$strip>], null>;
17
- };
@@ -1,26 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const spawnAgentsOutputSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
3
- agentType: z.ZodString;
4
- }, z.core.$strip>, z.ZodType<import("../../../types/json").JSONObject, unknown, z.core.$ZodTypeInternals<import("../../../types/json").JSONObject, unknown>>>>;
5
- export declare const spawnAgentsParams: {
6
- toolName: "spawn_agents";
7
- endsAgentStep: true;
8
- description: string;
9
- inputSchema: z.ZodObject<{
10
- agents: z.ZodArray<z.ZodObject<{
11
- agent_type: z.ZodString;
12
- prompt: z.ZodOptional<z.ZodString>;
13
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14
- team_name: z.ZodOptional<z.ZodString>;
15
- team_role: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
18
- outputSchema: z.ZodTuple<[z.ZodObject<{
19
- type: z.ZodLiteral<"json">;
20
- value: z.ZodType<({
21
- agentType: string;
22
- } & import("../../../types/json").JSONObject)[], unknown, z.core.$ZodTypeInternals<({
23
- agentType: string;
24
- } & import("../../../types/json").JSONObject)[], unknown>>;
25
- }, z.core.$strip>], null>;
26
- };
@@ -1,43 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const updateFileResultSchema: z.ZodUnion<readonly [z.ZodObject<{
3
- file: z.ZodString;
4
- message: z.ZodString;
5
- unifiedDiff: z.ZodString;
6
- }, z.core.$strip>, z.ZodObject<{
7
- file: z.ZodString;
8
- errorMessage: z.ZodString;
9
- patch: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>]>;
11
- export declare const strReplaceParams: {
12
- toolName: "str_replace";
13
- endsAgentStep: false;
14
- description: string;
15
- inputSchema: z.ZodObject<{
16
- path: z.ZodString;
17
- replacements: z.ZodArray<z.ZodObject<{
18
- old: z.ZodString;
19
- new: z.ZodString;
20
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>;
23
- outputSchema: z.ZodTuple<[z.ZodObject<{
24
- type: z.ZodLiteral<"json">;
25
- value: z.ZodType<{
26
- file: string;
27
- message: string;
28
- unifiedDiff: string;
29
- } | {
30
- file: string;
31
- errorMessage: string;
32
- patch?: string | undefined;
33
- }, unknown, z.core.$ZodTypeInternals<{
34
- file: string;
35
- message: string;
36
- unifiedDiff: string;
37
- } | {
38
- file: string;
39
- errorMessage: string;
40
- patch?: string | undefined;
41
- }, unknown>>;
42
- }, z.core.$strip>], null>;
43
- };
@@ -1,26 +0,0 @@
1
- import z from 'zod/v4';
2
- declare const followupSchema: z.ZodObject<{
3
- prompt: z.ZodString;
4
- label: z.ZodOptional<z.ZodString>;
5
- }, z.core.$strip>;
6
- export type SuggestFollowup = z.infer<typeof followupSchema>;
7
- export declare const suggestFollowupsParams: {
8
- toolName: "suggest_followups";
9
- endsAgentStep: false;
10
- description: string;
11
- inputSchema: z.ZodObject<{
12
- followups: z.ZodArray<z.ZodObject<{
13
- prompt: z.ZodString;
14
- label: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>>;
16
- }, z.core.$strip>;
17
- outputSchema: z.ZodTuple<[z.ZodObject<{
18
- type: z.ZodLiteral<"json">;
19
- value: z.ZodType<{
20
- message: string;
21
- }, unknown, z.core.$ZodTypeInternals<{
22
- message: string;
23
- }, unknown>>;
24
- }, z.core.$strip>], null>;
25
- };
26
- export {};
@@ -1,13 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const taskCompletedParams: {
3
- toolName: "task_completed";
4
- endsAgentStep: true;
5
- description: string;
6
- inputSchema: z.ZodObject<{}, z.core.$strip>;
7
- outputSchema: z.ZodTuple<[z.ZodObject<{
8
- type: z.ZodLiteral<"json">;
9
- value: z.ZodObject<{
10
- message: z.ZodString;
11
- }, z.core.$strip>;
12
- }, z.core.$strip>], null>;
13
- };
@@ -1,24 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const taskCreateParams: {
3
- toolName: "task_create";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- subject: z.ZodString;
8
- description: z.ZodString;
9
- activeForm: z.ZodOptional<z.ZodString>;
10
- priority: z.ZodOptional<z.ZodEnum<{
11
- critical: "critical";
12
- high: "high";
13
- medium: "medium";
14
- low: "low";
15
- }>>;
16
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
- }, z.core.$strip>;
18
- outputSchema: z.ZodTuple<[z.ZodObject<{
19
- type: z.ZodLiteral<"json">;
20
- value: z.ZodObject<{
21
- message: z.ZodString;
22
- }, z.core.$strip>;
23
- }, z.core.$strip>], null>;
24
- };
@@ -1,15 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const taskGetParams: {
3
- toolName: "task_get";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- taskId: z.ZodString;
8
- }, z.core.$strip>;
9
- outputSchema: z.ZodTuple<[z.ZodObject<{
10
- type: z.ZodLiteral<"json">;
11
- value: z.ZodObject<{
12
- message: z.ZodString;
13
- }, z.core.$strip>;
14
- }, z.core.$strip>], null>;
15
- };
@@ -1,13 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const taskListParams: {
3
- toolName: "task_list";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{}, z.core.$strip>;
7
- outputSchema: z.ZodTuple<[z.ZodObject<{
8
- type: z.ZodLiteral<"json">;
9
- value: z.ZodObject<{
10
- message: z.ZodString;
11
- }, z.core.$strip>;
12
- }, z.core.$strip>], null>;
13
- };
@@ -1,29 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const taskUpdateParams: {
3
- toolName: "task_update";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- taskId: z.ZodString;
8
- status: z.ZodOptional<z.ZodString>;
9
- subject: z.ZodOptional<z.ZodString>;
10
- description: z.ZodOptional<z.ZodString>;
11
- activeForm: z.ZodOptional<z.ZodString>;
12
- owner: z.ZodOptional<z.ZodString>;
13
- priority: z.ZodOptional<z.ZodEnum<{
14
- critical: "critical";
15
- high: "high";
16
- medium: "medium";
17
- low: "low";
18
- }>>;
19
- addBlocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
- addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
- }, z.core.$strip>;
23
- outputSchema: z.ZodTuple<[z.ZodObject<{
24
- type: z.ZodLiteral<"json">;
25
- value: z.ZodObject<{
26
- message: z.ZodString;
27
- }, z.core.$strip>;
28
- }, z.core.$strip>], null>;
29
- };
@@ -1,17 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const teamCreateParams: {
3
- toolName: "team_create";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- team_name: z.ZodString;
8
- description: z.ZodOptional<z.ZodString>;
9
- agent_type: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>;
11
- outputSchema: z.ZodTuple<[z.ZodObject<{
12
- type: z.ZodLiteral<"json">;
13
- value: z.ZodObject<{
14
- message: z.ZodString;
15
- }, z.core.$strip>;
16
- }, z.core.$strip>], null>;
17
- };
@@ -1,13 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const teamDeleteParams: {
3
- toolName: "team_delete";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{}, z.core.$strip>;
7
- outputSchema: z.ZodTuple<[z.ZodObject<{
8
- type: z.ZodLiteral<"json">;
9
- value: z.ZodObject<{
10
- message: z.ZodString;
11
- }, z.core.$strip>;
12
- }, z.core.$strip>], null>;
13
- };
@@ -1,15 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const thinkDeeplyParams: {
3
- toolName: "think_deeply";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- thought: z.ZodString;
8
- }, z.core.$strip>;
9
- outputSchema: z.ZodTuple<[z.ZodObject<{
10
- type: z.ZodLiteral<"json">;
11
- value: z.ZodObject<{
12
- message: z.ZodString;
13
- }, z.core.$strip>;
14
- }, z.core.$strip>], null>;
15
- };
@@ -1,25 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const updateSubgoalParams: {
3
- toolName: "update_subgoal";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- id: z.ZodString;
8
- status: z.ZodOptional<z.ZodEnum<{
9
- NOT_STARTED: "NOT_STARTED";
10
- IN_PROGRESS: "IN_PROGRESS";
11
- COMPLETE: "COMPLETE";
12
- ABORTED: "ABORTED";
13
- }>>;
14
- plan: z.ZodOptional<z.ZodString>;
15
- log: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>;
17
- outputSchema: z.ZodTuple<[z.ZodObject<{
18
- type: z.ZodLiteral<"json">;
19
- value: z.ZodType<{
20
- message: string;
21
- }, unknown, z.core.$ZodTypeInternals<{
22
- message: string;
23
- }, unknown>>;
24
- }, z.core.$strip>], null>;
25
- };
@@ -1,25 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const webSearchParams: {
3
- toolName: "web_search";
4
- endsAgentStep: true;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- query: z.ZodString;
8
- depth: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9
- standard: "standard";
10
- deep: "deep";
11
- }>>>;
12
- }, z.core.$strip>;
13
- outputSchema: z.ZodTuple<[z.ZodObject<{
14
- type: z.ZodLiteral<"json">;
15
- value: z.ZodType<{
16
- result: string;
17
- } | {
18
- errorMessage: string;
19
- }, unknown, z.core.$ZodTypeInternals<{
20
- result: string;
21
- } | {
22
- errorMessage: string;
23
- }, unknown>>;
24
- }, z.core.$strip>], null>;
25
- };
@@ -1,31 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const writeFileParams: {
3
- toolName: "write_file";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- path: z.ZodString;
8
- instructions: z.ZodString;
9
- content: z.ZodString;
10
- }, z.core.$strip>;
11
- outputSchema: z.ZodTuple<[z.ZodObject<{
12
- type: z.ZodLiteral<"json">;
13
- value: z.ZodType<{
14
- file: string;
15
- message: string;
16
- unifiedDiff: string;
17
- } | {
18
- file: string;
19
- errorMessage: string;
20
- patch?: string | undefined;
21
- }, unknown, z.core.$ZodTypeInternals<{
22
- file: string;
23
- message: string;
24
- unifiedDiff: string;
25
- } | {
26
- file: string;
27
- errorMessage: string;
28
- patch?: string | undefined;
29
- }, unknown>>;
30
- }, z.core.$strip>], null>;
31
- };
@@ -1,18 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const writeTodosParams: {
3
- toolName: "write_todos";
4
- endsAgentStep: false;
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- todos: z.ZodArray<z.ZodObject<{
8
- task: z.ZodString;
9
- completed: z.ZodBoolean;
10
- }, z.core.$strip>>;
11
- }, z.core.$strip>;
12
- outputSchema: z.ZodTuple<[z.ZodObject<{
13
- type: z.ZodLiteral<"json">;
14
- value: z.ZodObject<{
15
- message: z.ZodString;
16
- }, z.core.$strip>;
17
- }, z.core.$strip>], null>;
18
- };
@@ -1,35 +0,0 @@
1
- import z from 'zod/v4';
2
- import type { JSONValue } from '../../types/json';
3
- /** Only used for generating tool call strings before all tools are defined.
4
- *
5
- * @param toolName - The name of the tool to call
6
- * @param inputSchema - The zod schema for the tool. This is only used as type validation and is unused otherwise.
7
- * @param input - The input to the tool
8
- * @param endsAgentStep - Whether the agent should end its turn after this tool call
9
- */
10
- export declare function $getToolCallString<Input>(params: {
11
- toolName: string;
12
- inputSchema: z.ZodType<any, Input> | null;
13
- input: Input;
14
- endsAgentStep: boolean;
15
- }): string;
16
- export declare function $getNativeToolCallExampleString<Input>(params: {
17
- toolName: string;
18
- inputSchema: z.ZodType<any, Input> | null;
19
- input: Input;
20
- endsAgentStep?: boolean;
21
- }): string;
22
- /** Generates the zod schema for a single JSON tool result. */
23
- export declare function jsonToolResultSchema<T extends JSONValue>(valueSchema: z.ZodType<T>): z.ZodTuple<[z.ZodObject<{
24
- type: z.ZodLiteral<"json">;
25
- value: z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>;
26
- }, z.core.$strip>], null>;
27
- /** Generates the zod schema for an empty tool result. */
28
- export declare function emptyToolResultSchema(): z.ZodTuple<[], null>;
29
- /** Generates the zod schema for a simple text tool result. */
30
- export declare function textToolResultSchema(): z.ZodTuple<[z.ZodObject<{
31
- type: z.ZodLiteral<"json">;
32
- value: z.ZodObject<{
33
- message: z.ZodString;
34
- }, z.core.$strip>;
35
- }, z.core.$strip>], null>;
@@ -1,4 +0,0 @@
1
- import { toolParams } from './list';
2
- import type { ToolName } from './constants';
3
- import type z from 'zod/v4';
4
- export declare function getToolCallString<T extends ToolName | (string & {})>(toolName: T, input: T extends ToolName ? z.input<(typeof toolParams)[T]['inputSchema']> : Record<string, any>, ...endsAgentStep: T extends ToolName ? [] : [boolean]): string;