feat: ToolCallLog + fix equity nullable OHLC#69
Merged
luokerenx4 merged 6 commits intomasterfrom Mar 17, 2026
Merged
Conversation
Every AI tool invocation is now recorded with full input, output, duration, and heuristic error status. Data flows through AgentCenter pipeline (tool_use → start, tool_result → complete) into an append-only JSONL file with in-memory ring buffer and real-time subscriber fan-out. Backend: ToolCallLog class, /api/agent-status routes (paginated, recent, SSE) Frontend: Agent Status page with table, tool name filter, expandable rows, SSE Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers: start/complete round-trip, seq increment, orphan handling, error detection heuristics, flushPending, recent/query filtering, ring buffer eviction, subscribe/unsubscribe, crash recovery, parallel tool calls, duration tracking, and reset. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove OpenBB news infrastructure (newsGetCompany, piggyback, SDK/HTTP
news clients) which had no real utility. Rename config section `openbb`
→ `marketData` and `newsCollector` → `news` to reflect domain semantics
rather than implementation details. Restructure extension/news-collector
into extension/news with clearer collector/ and query/ subdirectories.
- Delete: adapter.ts, piggyback.ts, openbb/news/*, sdk/news-client.ts
- Rename: openbbSchema → marketDataSchema, backend values updated
- Move: news-collector/* → news/{collector,query,store,types,config}
- UI: update zone names, remove stale provider options & piggyback toggle
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…market-data/ Separate domain logic from AI tool definitions: - domain/ holds business logic (trading, analysis, news, brain, market-data) - tool/ holds thin AI tool adapters that bridge domain to ToolCenter - openbb/ renamed to domain/market-data/ with typebb/ and openbb-api/ sub-layers - Delete dead economy + commodity code (zero usage) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Not yet wired to tools, but needed as data infrastructure for future use. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
EquityHistoricalDataSchema now allows nullable OHLC fields (yfinance returns null for incomplete/missing bars). Null filtering happens in the analysis adapter layer before data reaches the calculator — opentypebb reflects API reality, consumers decide what to keep. Closes #66 (equity side — crypto was already fixed). Co-Authored-By: Claude Opus 4.6 (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.
Summary
ToolCallLogclass,/api/agent-statusroutes (paginated, recent, SSE stream)EquityHistoricalDataSchemanow allows nullable OHLC fields (same fix as crypto). Null bar filtering moved to the analysis adapter layer where it belongs.Test plan
pnpm buildpassespnpm test— 831 tests pass/api/agent-status/recentreturns data and Agent Status page shows real-time entries🤖 Generated with Claude Code