Close local release-quality gaps and reconcile workplan status
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e332-3365-77c0-8491-084e9ea33ac1
This commit is contained in:
parent
37436bb562
commit
7cd633986e
56 changed files with 462 additions and 237 deletions
|
|
@ -7,7 +7,6 @@ import json
|
|||
import os
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from llm_connect._diagnostics import (
|
||||
record_adapter_transformation,
|
||||
|
|
@ -30,9 +29,9 @@ class ClaudeCodeAdapter(LLMAdapter):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
cli_path: Optional[str] = None,
|
||||
model: Optional[str] = None,
|
||||
config: Optional[LLMConfig] = None,
|
||||
cli_path: str | None = None,
|
||||
model: str | None = None,
|
||||
config: LLMConfig | None = None,
|
||||
):
|
||||
self._config = config or LLMConfig(provider="claude-code")
|
||||
self._cli_path = cli_path or self._resolve_cli_path()
|
||||
|
|
@ -124,6 +123,7 @@ class ClaudeCodeAdapter(LLMAdapter):
|
|||
status=proc.returncode,
|
||||
body={"stdout": stdout, "stderr": stderr},
|
||||
)
|
||||
assert proc.returncode is not None # communicate() has reaped the process.
|
||||
if proc.returncode != 0:
|
||||
raise LLMSubprocessError(
|
||||
f"claude CLI exited with code {proc.returncode}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue