feat: add aggregate cloud and agent-server clients#267
Open
neubig wants to merge 3 commits into
Open
Conversation
6 tasks
Contributor
Endpoint audit❌ 40 off-contract call(s) — not on the agent-server · classifiers: cloud
❌ Not on agent-server (gated, 40)⛔ (no known backend) — served by no backend we can see (15)
|
ec3c082 to
11460fe
Compare
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.
Live evidence
Added by OpenHands on July 10, 2026 after updating this branch to current
main(db5e5f6, tracked agent-server imageghcr.io/openhands/agent-server:1.34.0-python).Local/package checks:
npm cicompleted and ranprepare/npm run build.npm run lintpassed with existing warnings only (0 errors).npm run buildpassed.npm run test:coveragepassed: 15 suites, 288 tests.npm run format:checkpassed.npm audit --audit-level=moderate --omit=devandnpm audit --audit-level=high --productionboth reported 0 vulnerabilities.Live agent-server checks:
ghcr.io/openhands/agent-server:1.34.0-pythononlocalhost:8010with/tmp/agent-workspacemounted at/workspace./server_inforeportedversion: 1.34.0;npm run audit:endpointspassed against the live OpenAPI spec.AGENT_SERVER_URL=http://localhost:8010 HOST_WORKSPACE_DIR=/tmp/agent-workspace AGENT_WORKSPACE_DIR=/workspace TEST_TIMEOUT=180000 npm run test:integration:deterministicpassed: 2 suites, 13 tests../dist/clients.js;AgentServerClientread/healthand executedprintf aggregate-agent-server-smokethroughclient.bashwith exit code 0.Live Cloud checks:
CloudClient, usedOPENHANDS_API_KEYagainsthttps://app.all-hands.dev, and printed only sanitized counts/booleans.Why
agent-canvas currently owns OpenHands Cloud transport, proxy, and device-flow auth code while using this package for agent-server APIs. This adds shared client primitives so browser clients can use the TypeScript client for both local agent-server and cloud backends without breaking the current endpoint-client API.
Summary
OpenHandsClient,AgentServerClient, andCloudClientaggregate clients while preserving existing named endpoint clients and exports.mainso this PR is validated against the repository's currentagent-server:1.34.0-pythonbaseline.Issue Number
N/A
How to Test
npm cinpm run lintnpm run buildnpm run test:coveragenpm run format:checklocalhost:8010:npm run audit:endpointsandnpm run test:integration:deterministicCloudClientfrom./dist/clients.jsand call read-only Cloud endpoints withOPENHANDS_API_KEY, logging only sanitized metadata.Video/Screenshots
N/A - library/client API change.
Type
Notes
Stacked consumer PR: OpenHands/agent-canvas#1621 uses
CloudClientand the shared device-flow helpers from this branch. That downstream PR is currently separate and has its own merge conflict/PR-description blocker; this package PR no longer depends on an unmerged base branch and its diff remains scoped to the six intended files.Validation context: current
mainincludes ACP registry changes from #272. Its companion SDK PR is OpenHands/software-agent-sdk#4056; thevalidate-acp-providersworkflow uses that link when checking the merged PR context.Closes #274