feat(e10): provider preset templates (--preset, catalog, docs) - #57
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Epic E10 provider preset templates for v1.1.
Story Mapping
E10-S1 — Built-in provider preset catalog
feat(e10-s1): add provider preset catalogmoonshot,deepseek,glm,qwen.E10-S2 —
cmd/add --presetprofile draft expansionfeat(e10-s2): expand presets in add commandclaudecm add --preset <name>andclaudecm add --list-presets.--api-key; missing secret refuses without writing.--base-url,--model,--provider, and--setoverrides win over preset-generated values.E10-S3 — Preset override, activation, and write-path invariants
test(e10-s3): verify preset-backed switch write pathswitchpre-apply diff shows generated preset-owned keys.internal/writepathorinternal/commitinternals.E10-S4 — Preset docs, help text, and no-official-support boundary
docs(e10-s4): document provider preset templatesclaudecm add --helpdocuments--preset,--list-presets, convenience-template behavior, override behavior, and no-official-support boundary.Verification
go build ./...— passgo vet ./...— passgo test -race ./internal/presets ./cmd -run 'TestAdd_Preset|TestAdd_ListPresets|TestSwitch_PresetBackedProfileUsesNormalWritePathAndPreservesNonOwnedKeys' -count=1 -timeout=300s— passgo test -race ./internal/adapter/codex -run 'TestOwnedKeys|TestFixtureGoldensAreValidJSON|TestInitPanic|TestValidate' -count=1 -timeout=180s— passgo test ./... -timeout=600s— hit environment fsync timeout in parallel package run (stack instorage.AtomicWrite/fsync, not an assertion failure)go test ./... -p 1 -timeout=900s— passgit status --short --branch— clean before push