发布

  • refactor(cli): define local tools as custom toolkits (#3356)

    frostbyte_neo 发布于 2026-05-07 12:29:06 +00:00

    Summary

    • Stacks this local-tools PR on top of #3360, which contains the core
      duplicate custom-toolkit child slug fix.
    • Refactors @composio/cli-local-tools to define bundled local toolkits
      with core experimental_createTool / experimental_createToolkit
      handles instead of hand-rolled schema objects.
    • Keeps Tool Router v3.1 inline custom toolkit definitions attached to
      session create/search/execute calls so bundled local tools remain
      searchable/executable.
    • Adds CLI/local-tools test coverage for forwarding local custom toolkit
      payloads and for core custom toolkit handles from the local registry.

    Stack

    • Base PR: #3360 (fix(core): qualify custom toolkit child slug lookups)
    • This PR should now show only CLI/local-tools changes relative to
      #3360.

    Tests

    • pnpm --filter @composio/core typecheck
    • pnpm --filter @composio/cli-local-tools typecheck
    • pnpm --filter @composio/cli typecheck
    • pnpm --filter @composio/cli-local-tools test
    • pnpm --filter @composio/cli-local-tools build
    • pnpm --filter @composio/cli exec vitest run test/src/commands/tools/tools.search.cmd.test.ts test/src/commands/tools/tools.execute.cmd.test.ts
    • pnpm --filter @composio/core exec vitest run test/models/customTool.test.ts test/models/toolRouter.test.ts test/models/customToolRouting.test.ts
    下载附件