markitect-main/markitect/prompts
tegwick 36c20f37d0 feat(llm): extract adapter layer for standalone llm-connect package (S1+S2)
Stage 1 — Decouple:
- Move RunConfig + LLMResponse to markitect/llm/models.py (canonical)
- Move LLMAdapter + Mock/ErrorLLMAdapter to markitect/llm/adapter.py
- markitect/prompts/execution/models.py and llm_adapter.py become re-export shims
- All 4 adapters + factory.py updated to import from markitect.llm.*
- Parameterize app_name in toml_config.py (resolve_llm, get_default_layers,
  get_preference_layers): paths and env var now derived from app_name arg
- Add tests/test_llm_isolation.py: 7 isolation + backward-compat tests

Stage 2 — Extract:
- Standalone llm-connect package created at ~/llm-connect/
- All 18 llm files copied; markitect.* imports replaced with llm_connect.*
- LLMError base inlined in llm_connect/exceptions.py (no markitect dep)
- llm-connect installed into markitect-venv; declared in pyproject.toml

Smoke test: markitect llm-check succeeds (live Gemini API call).
Backward compat: markitect.prompts.execution.{models,llm_adapter} still work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 08:04:50 +01:00
..
dependencies feat(prompts): implement Phase 5 - Dependency Tracking (FR-6) 2026-02-09 13:18:18 +01:00
execution feat(llm): extract adapter layer for standalone llm-connect package (S1+S2) 2026-02-27 08:04:50 +01:00
incremental feat(prompts): implement Phase 6 - Incremental Execution (FR-7, FR-8) 2026-02-09 13:18:27 +01:00
quality feat(prompts): implement Phase 7 - Quality & Validation (FR-9, FR-10) 2026-02-09 13:31:37 +01:00
queries feat(prompts): implement Phase 8 - Observability & Traceability (FR-11) 2026-02-09 20:32:18 +01:00
repositories fix(prompts): fix three infrastructure bugs in prompt dependency resolution 2026-02-11 20:53:02 +01:00
resolver fix(prompts): fix three infrastructure bugs in prompt dependency resolution 2026-02-11 20:53:02 +01:00
services feat(prompts): implement Phase 2 - Templates & Macros (FR-2) 2026-02-08 22:34:22 +01:00
templates fix(prompts): fix three infrastructure bugs in prompt dependency resolution 2026-02-11 20:53:02 +01:00
traceability feat(prompts): implement Phase 8 - Observability & Traceability (FR-11) 2026-02-09 20:32:18 +01:00
visualization feat(prompts): implement Phase 8 - Observability & Traceability (FR-11) 2026-02-09 20:32:18 +01:00
__init__.py feat(prompts): implement Phase 1 - Foundation (FR-1) 2026-02-08 22:30:26 +01:00
cli.py feat(prompts): implement Phase 8 - Observability & Traceability (FR-11) 2026-02-09 20:32:18 +01:00
models.py fix(prompts): fix three infrastructure bugs in prompt dependency resolution 2026-02-11 20:53:02 +01:00