Skip to content

feat(sdk): expose remaining launch params (ami/key_name/pre_stop/completion_file) (#6) - #8

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/6-launch-params
Jul 10, 2026
Merged

feat(sdk): expose remaining launch params (ami/key_name/pre_stop/completion_file) (#6)#8
scttfrdmn merged 1 commit into
mainfrom
feat/6-launch-params

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes #6. Adds the four launch-body fields the REST endpoint (handleLaunch, instances.go) accepts but spawn.launch() didn't surface: ami, key_name, pre_stop, completion_file. Optional kwargs, forwarded to the request body with the real API keys when set, omitted otherwise. Purely additive.

With this the SDK covers the full launch body — completing API parity (instances + truffle + notifications + all launch params).

Tests: forwarding of all four + omission when unset (19 total). ruff clean, build green. Bump 0.1.4 → 0.1.5.

…pletion_file (#6)

The REST launch endpoint accepts ami, key_name, pre_stop, completion_file
(instances.go), but launch() never surfaced them. Add as optional kwargs,
forwarded to the body with the real API keys when set (omitted otherwise). SDK
now covers the full launch body — API-complete. Tests assert forwarding +
omission. Bump 0.1.4 -> 0.1.5.

Closes #6
@scttfrdmn
scttfrdmn merged commit d4097c2 into main Jul 10, 2026
5 checks passed
@scttfrdmn
scttfrdmn deleted the feat/6-launch-params branch July 10, 2026 23:16
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.

launch() under-covers the API: add ami, key_name, pre_stop, completion_file

1 participant