Repository navigation
test(sdk): thread computers e2e against built package - #82
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Review on ArchCode
Problem and intent
tsk_00P3MwVmlsfLC0KnJpssNu("Published TypeScript and Python SDKs include thread computers") needs proof that the published@archastro/sdk(0.21.0, regenerated in chore(sdk): regenerate from openapi@main #80) carries the thread-computer and computer-share methods.threads.computers.create/listoragent_computers.updateover HTTP, and no existing test loads the built package entry point (all import../src).What changed
packages/sdk/__tests__/thread-computers.e2e.test.ts→ testpublished SDK creates and lists thread computers and updates computer shares.@archastro/sdk(workspace self-reference →dist/index.js, the files npm publishes), notsrc/.node:httploopback server with canned responses and records each request.PlatformClient.withToken(apiKey, accessToken, baseUrl)→threads.computers.create(POST, 201) →threads.computers.list(GET, 200) →agent_computers.update(..., { acl: { grants: [] } })(PATCH, 204).x-archastro-api-key+Authorization: Bearer+ JSON content type on every request.__tests__/**/*.test.ts;ci.ymlbuilds beforenpm test.Scope / risk / user impact
npm testin a fresh clone now needsnpm run buildfirst for this one file (dist is gitignored); every workflow already builds first.Testing
packages/sdk/__tests__/thread-computers.e2e.test.ts›published SDK creates and lists thread computers and updates computer shares.fetch) ↔ loopback HTTP server over a real TCP socket.acl.add/acl.remove.npm run build): 1 passed. Fullnpm test --workspaces --if-present: 146 passed.@archastro/sdk@0.21.0from npm (integritysha512-+YOlT5c3…l/Q==) + vitest 4.1.4: 1 passed.ApiError: not_found.CI / Testsjob →npm test --workspaces --if-present→vitest run(PR + push to main).🤖 Generated with Claude Code