Telemetry + cost attribution parity with @sidclaw/sdk@0.1.11.
Added:
record_telemetry(trace_id, params)method onSidClawandAsyncSidClaw— PATCH/api/v1/traces/:id/telemetry. Token usage and cost are accumulated server-side; outcome_summary and model are set-once (first write wins).RecordTelemetryParamsTypedDict withtokens_in,tokens_out,tokens_cache_read,model,cost_estimate,outcome_summary(all optional).- Extended
RecordOutcomeParamswith eight optional fields:outcome_summary,error_classification,exit_code,tokens_in,tokens_out,tokens_cache_read,model,cost_estimate. ErrorClassificationliteral type:'timeout' | 'permission' | 'not_found' | 'runtime'.- New module
sidclaw.cost—MODEL_PRICINGtable for 13 models (Claude 4.x, GPT-4o, Gemini),estimate_cost(model, tokens_in, tokens_out, tokens_cache_read),register_model_pricing(model, pricing)for user overrides.
No breaking changes — all new fields are optional.
- Initial release
- Sync and async clients (
SidClaw,AsyncSidClaw) - Policy evaluation, approval polling, outcome recording
- Framework integrations: LangChain, CrewAI, OpenAI Agents, Pydantic AI
- MCP governance proxy with CLI (
sidclaw-mcp-proxy) - Webhook signature verification
- Typed errors:
ActionDeniedError,ApprovalTimeoutError,ApprovalExpiredError,RateLimitError