Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

feat(agent): add createAgentHttpClient() factory with observability#178

Merged
runyaga merged 2 commits into
mainfrom
feat/agent-http-client-factory
Mar 18, 2026
Merged

feat(agent): add createAgentHttpClient() factory with observability#178
runyaga merged 2 commits into
mainfrom
feat/agent-http-client-factory

Conversation

@91jaeminjo
Copy link
Copy Markdown
Collaborator

Summary

  • Add createAgentHttpClient() factory that encapsulates HTTP client decorator stack composition — wraps in ObservableHttpClient when observers are provided, defaults to DartHttpClient otherwise
  • Export SoliplexHttpClient, HttpObserver, HttpEvent, and HTTP event types from the barrel so the frontend imports only soliplex_agent
  • Export computed from signals_core to fix wrong-direction Flutter dependency
  • Un-hide HttpResponse — needed by anyone faking SoliplexHttpClient
  • Pin open_responses to 0.1.4 to avoid breaking changes (see fix(completions): migrate to open_responses 0.1.5 API #177)

Test plan

  • dart format . --set-exit-if-changed — no changes
  • dart analyze --fatal-infos — 0 issues
  • dart test in soliplex_agent — 255 pass, 3 pre-existing integration failures (require live server)
  • New HTTP factory tests — 6/6 pass
  • computed importable from soliplex_agent barrel
  • HttpResponse importable from soliplex_agent barrel

🤖 Generated with Claude Code

91jaeminjo and others added 2 commits March 18, 2026 13:50
Introduce a factory function that encapsulates HTTP client decorator
stack composition. Wraps in ObservableHttpClient when observers are
provided, defaults to DartHttpClient otherwise. Expose SoliplexHttpClient,
HttpObserver, and HTTP event types from the barrel so the frontend can
import soliplex_agent exclusively.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…pen_responses

Add computed to the signals_core show list so consumers don't need
to import the Flutter signals package for a pure Dart primitive.

Un-hide HttpResponse from the barrel — needed by anyone implementing
or faking SoliplexHttpClient.

Pin open_responses to 0.1.4 in soliplex_completions to avoid breaking
changes in 0.1.5 that require code migration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@runyaga runyaga merged commit adf7f8d into main Mar 18, 2026
6 checks passed
@91jaeminjo 91jaeminjo mentioned this pull request Mar 19, 2026
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants