[PR #8443] fix(sdk): regenerate v1 types alongside v2 in build script #12744

Closed
opened 2026-02-16 18:17:38 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8443

State: closed
Merged: No


Summary

  • Fixed the SDK build script to regenerate both v1 (src/gen) and v2 (src/v2/gen) types
  • Previously, only v2 types were being regenerated, causing v1 SDK types to become stale
  • This resulted in missing permission options in the v1 SDK types (e.g., read, glob, grep, list, task, lsp, todowrite, todoread, question, websearch, codesearch)

Changes

  • Updated packages/sdk/js/script/build.ts to call createClient for both src/gen and src/v2/gen
  • Regenerated v1 SDK types to include all current permission options
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8443 **State:** closed **Merged:** No --- ## Summary - Fixed the SDK build script to regenerate both v1 (`src/gen`) and v2 (`src/v2/gen`) types - Previously, only v2 types were being regenerated, causing v1 SDK types to become stale - This resulted in missing permission options in the v1 SDK types (e.g., `read`, `glob`, `grep`, `list`, `task`, `lsp`, `todowrite`, `todoread`, `question`, `websearch`, `codesearch`) ## Changes - Updated `packages/sdk/js/script/build.ts` to call `createClient` for both `src/gen` and `src/v2/gen` - Regenerated v1 SDK types to include all current permission options
yindo added the pull-request label 2026-02-16 18:17:38 -05:00
yindo closed this issue 2026-02-16 18:17:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12744