Skip to content

refactor(codemode): namespace public types#35425

Merged
rekram1-node merged 2 commits into
devfrom
codemode-api-names
Jul 5, 2026
Merged

refactor(codemode): namespace public types#35425
rekram1-node merged 2 commits into
devfrom
codemode-api-names

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • audit the complete @opencode-ai/codemode root API and group related types under CodeMode.* and Tool.*
  • make CodeMode.Input and CodeMode.Result both Effect schemas and their corresponding TypeScript types
  • rename result types to CodeMode.Result, CodeMode.Success, and CodeMode.Failure while retaining descriptive names such as CodeMode.ExecuteOptions and CodeMode.ExecutionLimits
  • keep the already-consistent OpenAPI.* namespace unchanged and update OpenCode, tests, and documentation

The runtime root is now limited to CodeMode, Tool, OpenAPI, ToolError, and toolError.

Testing

  • bun test in packages/codemode (254 passed)
  • bun typecheck in packages/codemode
  • bun typecheck in packages/opencode
  • focused OpenCode CodeMode tests (53 passed)
  • Prettier check for changed files
  • git diff --check

@rekram1-node rekram1-node merged commit be73f46 into dev Jul 5, 2026
8 checks passed
@rekram1-node rekram1-node deleted the codemode-api-names branch July 5, 2026 15:35
drewr pushed a commit to drewr/opencode that referenced this pull request Jul 7, 2026
shaheislam pushed a commit to shaheislam/opencode-vim that referenced this pull request Jul 7, 2026
anduimagui pushed a commit to anduimagui/opencode that referenced this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant