Skip to content

refactor(tool): make Tool.Info init effectful#21989

Open
kitlangton wants to merge 4 commits intodevfrom
kit/effect-tool-interface
Open

refactor(tool): make Tool.Info init effectful#21989
kitlangton wants to merge 4 commits intodevfrom
kit/effect-tool-interface

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • change Tool.Info.init() to return Effect so tool initialization composes natively in the migration path
  • update the tool wrapper, the direct multiedit caller, and affected tool tests to use effectful init
  • refresh the migration spec to document the new transitional pattern

Verification

  • bun install --frozen-lockfile
  • bun typecheck
  • bun run test test/tool/tool-define.test.ts test/tool/apply_patch.test.ts test/tool/bash.test.ts test/tool/edit.test.ts test/tool/grep.test.ts test/tool/question.test.ts test/tool/read.test.ts test/tool/skill.test.ts test/tool/task.test.ts test/tool/webfetch.test.ts test/tool/write.test.ts

@kitlangton kitlangton marked this pull request as ready for review April 11, 2026 03:54
@kitlangton kitlangton enabled auto-merge (squash) April 11, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant