picoclaw/pkg/providers
Leandro Barbosa f6362ce7b1 feat: add cli-based LLM provider
Add ClaudeCliProvider that executes the local CLI as a subprocess,
enabling PicoClaw to leverage advanced capabilities (MCP tools,
workspace awareness, session management) through any messaging channel.

- Implement LLMProvider interface via subprocess execution
- Support --system-prompt, --model, --output-format json flags
- Parse real v2.x JSON response format including usage tokens
- Handle error responses, stderr, context cancellation
- Register "claude-cli", "claude-code", "claudecode" aliases in CreateProvider
- 56 unit tests with mock scripts + 3 integration tests against real binary
- 100% coverage on all functions except stripToolCallsJSON (85.7%)
2026-02-12 11:51:51 -03:00
..
claude_cli_provider.go feat: add cli-based LLM provider 2026-02-12 11:51:51 -03:00
claude_cli_provider_test.go feat: add cli-based LLM provider 2026-02-12 11:51:51 -03:00
claude_provider.go feat(providers): add SDK-based providers for subscription OAuth login 2026-02-11 13:27:59 -06:00
claude_provider_test.go feat(providers): add SDK-based providers for subscription OAuth login 2026-02-11 13:27:59 -06:00
codex_provider.go chore(deps): upgrade openai-go from v1.12.0 to v3.21.0 2026-02-11 13:39:19 -06:00
codex_provider_test.go chore(deps): upgrade openai-go from v1.12.0 to v3.21.0 2026-02-11 13:39:19 -06:00
http_provider.go feat: add cli-based LLM provider 2026-02-12 11:51:51 -03:00
types.go * First commit 2026-02-09 19:20:19 +08:00