feat(sdk): support server-generated branch names - #57
Open
necolas wants to merge 1 commit into
Open
Conversation
Make createBranch targets optional in the TypeScript, Python, and Go SDKs. Add the optional prefix field, payload coverage, package examples, and agent-facing guidance.
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.
Why
The HTTP API can allocate a unique branch name when
target_branchis absent, but the SDKs still require callers to choose a name. SDK callers also need access to the optional literal prefix supported by the API.Scope
Blast Radius
Existing calls with an explicit target branch keep their current request payload. The new behavior applies when a caller omits the target branch or supplies the new target prefix.
Verification
pnpm --filter @pierre/storage build: passed.pnpm --filter @pierre/storage exec vitest --run: passed, 204 tests../venv/bin/pytest -q: passed, 184 tests../venv/bin/ruff check pierre_storage: passed../venv/bin/ruff format --check pierre_storage: passed.go test ./...: passed.python3 scripts/sync_versions.py --check: passed.git diff --check origin/main...HEAD: passed../venv/bin/mypy pierre_storagestill reports the same three existing errors onmain; this change does not add a type-check error.