builtins.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. export * as BuiltInTools from "./builtins"
  2. import { makeLocationNode } from "../effect/app-node"
  3. import { Layer } from "effect"
  4. import { BashTool } from "./bash"
  5. import { ApplyPatchTool } from "./apply-patch"
  6. import { EditTool } from "./edit"
  7. import { GlobTool } from "./glob"
  8. import { GrepTool } from "./grep"
  9. import { QuestionTool } from "./question"
  10. import { ReadTool } from "./read"
  11. import { SkillTool } from "./skill"
  12. import { TodoWriteTool } from "./todowrite"
  13. import { WebFetchTool } from "./webfetch"
  14. import { WebSearchTool } from "./websearch"
  15. import { WriteTool } from "./write"
  16. /**
  17. * Composes only the shipped Location-scoped built-in tool transforms.
  18. * Each tool retains its implementation and focused tests independently. Dynamic
  19. * MCP and plugin tools later use separate scoped canonical registrations, while
  20. * provider/model filtering belongs to a future materialization phase rather
  21. * than this static list. The caller intentionally supplies shared Location
  22. * services once to this merged set.
  23. *
  24. * TODO: Port the remaining launch-follow-up leaves deliberately: edit fuzzy
  25. * parity, task, LSP,
  26. * repo_clone, repo_overview, plan_exit, and Rune/code mode. Keep MCP and plugin
  27. * transforms separate from this static built-in list.
  28. */
  29. export const node = makeLocationNode({
  30. name: "built-in-tools",
  31. layer: Layer.empty,
  32. deps: [
  33. ApplyPatchTool.node,
  34. BashTool.node,
  35. EditTool.node,
  36. GlobTool.node,
  37. GrepTool.node,
  38. QuestionTool.node,
  39. ReadTool.node,
  40. SkillTool.node,
  41. TodoWriteTool.node,
  42. WebFetchTool.node,
  43. WebSearchTool.node,
  44. WriteTool.node,
  45. ],
  46. })