markitect-main/examples/infospace-with-history/artifacts/sources
tegwick fecc2fd4fa feat(llm): add LLM integration module with OpenRouter and Claude Code adapters
Implements markitect/llm/ package with concrete LLMAdapter implementations:
- OpenRouterAdapter: HTTP via urllib with retry/backoff on 429/5xx
- ClaudeCodeAdapter: subprocess-based Claude CLI with stdin piping
- Factory pattern: create_adapter("openrouter") or create_adapter("claude-code")
- API key resolution chain: constructor > env var > project-root key file
- 42 unit tests, 2 integration tests (gated on API key / CLI availability)

Also adds the infospace-with-history example with Wealth of Nations VSM
analysis pipeline, templates, schemas, source chapters, and processed
output for chapters 1-2. process_chapters.py now supports --provider
and --model flags for automatic LLM-driven processing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 01:17:58 +01:00
..
book-1-chapter-01.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-02.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-03.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-04.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-05.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-06.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-07.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-08.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-09.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-10.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-1-chapter-11.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-2-chapter-01.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-2-chapter-02.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-2-chapter-03.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-2-chapter-04.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-2-chapter-05.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-2-introduction.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-3-chapter-01.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-3-chapter-02.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-3-chapter-03.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-3-chapter-04.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-01.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-02.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-03.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-04.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-05.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-06.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-07.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-08.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-chapter-09.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-4-introduction.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-5-chapter-01.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-5-chapter-02.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
book-5-chapter-03.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00
introduction.md feat(llm): add LLM integration module with OpenRouter and Claude Code adapters 2026-02-11 01:17:58 +01:00