Skip to content

Add youaskm3 Traverse HTTP runtime client#21

Merged
enricopiovesan merged 1 commit into
mainfrom
claude/issue-13-youaskm3-runtime-client
Jun 30, 2026
Merged

Add youaskm3 Traverse HTTP runtime client#21
enricopiovesan merged 1 commit into
mainfrom
claude/issue-13-youaskm3-runtime-client

Conversation

@enricopiovesan

Copy link
Copy Markdown
Contributor

Summary

  • Adds src/client/traverseClient.ts — thin HTTP boundary implementing execute, pollExecution, and fetchTrace against spec 033 endpoints
  • Adds src/hooks/useExecution.ts — state machine hook: idle → loading → polling → succeeded / failed
  • Wires App.tsx to display execution state
  • 10 unit tests covering all client methods and all state transitions

Closes #13

Definition of Done

  • POST /v1/workspaces/{workspace_id}/execute implemented
  • GET /v1/workspaces/{workspace_id}/executions/{execution_id} polling implemented
  • GET /v1/workspaces/{workspace_id}/traces/{execution_id} fetch implemented
  • UI state: loading → polling → succeeded / failed
  • No private Traverse internals imported
  • Unit tests cover client state machine

Validation

npm run typecheck -w apps/youaskm3/web-react  # pass
npm run lint -w apps/youaskm3/web-react        # pass
npm run test -w apps/youaskm3/web-react        # 10 tests pass (3 files)

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>
@enricopiovesan enricopiovesan merged commit bc1da37 into main Jun 30, 2026
4 checks passed
@enricopiovesan enricopiovesan deleted the claude/issue-13-youaskm3-runtime-client branch June 30, 2026 17:40
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.

Add youaskm3 Traverse HTTP runtime client

1 participant