Skip to content

Conversation

@sjmiller609
Copy link
Contributor

@sjmiller609 sjmiller609 commented Jan 20, 2026

Note

Adds two major API surfaces and wires them into the client.

  • New Resources service: GET /resources with models (Resources, ResourceStatus, ResourceAllocation, DiskBreakdown, GPU-related types)
  • New Builds service: create/list/get/cancel builds and stream events (SSE) with models (Build, BuildEvent, BuildProvenance, BuildStatus); multipart upload via BuildNewParams.Source
  • Client updates: expose client.Resources and client.Builds
  • Docs: expand api.md with Resources/Builds; README adds file upload examples and updates module org path; CHANGELOG link org normalized
  • Meta: .stats.yml endpoint count 30→36

Written by Cursor Bugbot for commit b21b56c. This will update automatically on new commits. Configure here.

@sjmiller609 sjmiller609 changed the title Next Add Hypeman Resources, Build APIs to SDK Jan 20, 2026
@sjmiller609 sjmiller609 merged commit c9682a8 into main Jan 20, 2026
5 checks passed
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

if id == "" {
err = errors.New("missing required id parameter")
return
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Early return discards error and returns nil stream

High Severity

In EventsStreaming, when id is empty, the function sets err but then does a bare return, causing the named return value stream to be nil. The error is stored in a local variable but never propagated to the caller. The intended pattern (seen in the final return statement) is to create a stream that wraps the error via ssestream.NewStream. Callers receiving a nil stream will experience a nil pointer panic when trying to use it, and have no way to detect that an error occurred.

Fix in Cursor Fix in Web

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.

2 participants