[codex] add control-plane file upload URLs#38
Merged
Conversation
…hand # Conflicts: # packages/sdk/package.json # packages/sdk/src/cloud-client.ts # packages/sdk/src/index.ts
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
Adds the aHand control-plane support needed by Team9 streaming host file transfer.
What changed
POST /api/control/files/upload-urlso control-plane callers can request a scoped upload URL for device file writes.Why
Team9
scp_host_fileswrites to aHand devices via a worker-mediated streaming relay. Large binary payloads must not be buffered in Team9 memory, so Team9 requests an upload URL and streams the PUT body directly while committing the resulting object through the existing file operation flow.Validation
pnpm --filter @ahandai/sdk testpassed.cargo test -p ahand-hub --test control_files control_files_401_without_auth_headerpassed.@ahandai/sdk@0.2.1runtime dependency.Notes
This branch targets
dev. The worktree still has a local unstagedpnpm-lock.yamlinstall-noise diff; it is intentionally not included in this PR.