feat(cli): agent-crew cancel <build-id> (Tier 3, gated on platform #3409) - #108
Draft
abhishekmishragithub wants to merge 1 commit into
Draft
feat(cli): agent-crew cancel <build-id> (Tier 3, gated on platform #3409)#108abhishekmishragithub wants to merge 1 commit into
abhishekmishragithub wants to merge 1 commit into
Conversation
Adds the CLI half of the build-cancel flow (CLI redesign Tier 3). New command
'smallestai agent-crew cancel <build-id>' with --agent-id and --yes, backed by
AtomsAPIClient.cancel_agent_build, which POSTs
/atoms/v1/sdk/agents/{agentId}/builds/{buildId}/cancel. A build that is already
terminal or deploying returns 409, surfaced as a clear message. Frees an agent's
build queue when a build hangs in QUEUED/BUILDING.
Gated on the platform cancel endpoint (atoms-platform #3409) shipping. No version
bump yet; release once the endpoint is live.
|
crim doesn't review pull requests automatically here. Comment |
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.
What
Adds
smallestai agent-crew cancel <build-id>— the CLI half of the build-cancel flow (CLI redesign Tier 3). Frees an agent's build queue when a build hangs inQUEUED/BUILDING.--agent-id(falls back to the linked project agent via the shared_resolve_agent_id) and--yes/-yto skip the confirm (non-TTY safe).AtomsAPIClient.cancel_agent_build(agent_id, build_id, api_key)→POST /atoms/v1/sdk/agents/{agentId}/builds/{buildId}/cancel. A build that is already terminal or deploying returns 409, surfaced as a clear message.Status: DRAFT — gated on platform #3409
The endpoint is defined in atoms-platform #3409 (
POST …/builds/:buildId/cancel, returns 200{message, build}or 409). This PR is held as a draft until #3409 is merged + deployed. No version bump here, so it can't auto-publish; I'll add the changelog + bump and un-draft once the endpoint is live.Verified
Compiles; command registers with the right args/flags (
cancel --helpshowsbuild_id,--agent-id,--yes). CI runs mypy + tests. Endpoint path/response matched against #3409'ssdk.route.ts/httpCancelAgentBuild.