Add youaskm3 Traverse HTTP runtime client#21
Merged
Conversation
Implements the thin client boundary per spec 033-http-json-api: - traverseClient.ts: execute, pollExecution, fetchTrace against public endpoints - useExecution.ts: idle → loading → polling → succeeded/failed state machine - 10 unit tests covering client calls and all state transitions - App.tsx wired up to useExecution for runtime display No private Traverse internals imported. Base URL and workspace read from VITE_TRAVERSE_BASE_URL / VITE_TRAVERSE_WORKSPACE env vars (browser pattern per docs/traverse-runtime.md). Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
src/client/traverseClient.ts— thin HTTP boundary implementingexecute,pollExecution, andfetchTraceagainst spec 033 endpointssrc/hooks/useExecution.ts— state machine hook: idle → loading → polling → succeeded / failedApp.tsxto display execution stateCloses #13
Definition of Done
POST /v1/workspaces/{workspace_id}/executeimplementedGET /v1/workspaces/{workspace_id}/executions/{execution_id}polling implementedGET /v1/workspaces/{workspace_id}/traces/{execution_id}fetch implementedValidation