Skip to content

feat: add workspace preset support#8

Draft
dnguy078 wants to merge 1 commit intocoder:mainfrom
dnguy078:feat/workspace-preset-support
Draft

feat: add workspace preset support#8
dnguy078 wants to merge 1 commit intocoder:mainfrom
dnguy078:feat/workspace-preset-support

Conversation

@dnguy078
Copy link

Summary

  • Add support for specifying a template preset name via a new preset input, which resolves to the Coder API's template_version_preset_id field
  • Make parameters input optional — at least one of parameters or preset must be provided
  • Add getPresets method to CoderClient for fetching available presets from the API

Test plan

  • bun test — all 11 tests pass (6 existing + 5 new)
  • bun run build — dist/index.js regenerated successfully
  • Manual: verify existing workflows using only parameters still work (backward compatible)
  • Manual: verify preset-only workflow creates workspace correctly
  • Manual: verify preset + parameters workflow works

🤖 Generated with Claude Code

Allow users to specify a template preset name instead of (or alongside)
individual parameters, simplifying workspace creation via the Coder API's
template_version_preset_id field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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