spawnllm 0.17.7__tar.gz → 0.17.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {spawnllm-0.17.7 → spawnllm-0.17.8}/PKG-INFO +1 -1
- {spawnllm-0.17.7 → spawnllm-0.17.8}/pyproject.toml +1 -1
- {spawnllm-0.17.7 → spawnllm-0.17.8}/pyproject.toml.orig +1 -1
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/_core/spawnllm_core.wasm +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/claude.py +16 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/claude_sdk.py +5 -2
- {spawnllm-0.17.7 → spawnllm-0.17.8}/LICENSE +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/README.md +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/__init__.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/__main__.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/_core/__init__.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/__init__.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/apple.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/base.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/codex.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/gemini.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/mlx.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/openai_endpoint.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/backends/registry.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/call.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/cli.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/decide.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/extract.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/mlx/__init__.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/mlx/codec.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/mlx/engine.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/mlx/fuse.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/mlx/patches.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/proc.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/py.typed +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/response.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/run.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/spec.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/structured.py +0 -0
- {spawnllm-0.17.7 → spawnllm-0.17.8}/spawnllm/types.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "spawnllm"
|
|
3
3
|
# Inert sentinel: the real version is set from the release tag (uv version --frozen).
|
|
4
|
-
version = "0.17.
|
|
4
|
+
version = "0.17.8"
|
|
5
5
|
description = "Delete your subprocess wrappers around claude, codex, and gemini."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
license = "MIT"
|
|
Binary file
|
|
@@ -68,6 +68,22 @@ class ClaudeCliBackend(CliBackend):
|
|
|
68
68
|
_api_config_dir: str | None = None
|
|
69
69
|
_rejected_tokens: frozenset[str] = frozenset()
|
|
70
70
|
|
|
71
|
+
@staticmethod
|
|
72
|
+
def light_env() -> dict[str, str]:
|
|
73
|
+
"""Return the env every planned `claude` run carries to start light.
|
|
74
|
+
|
|
75
|
+
It turns off the plugin and CLI auto-updater, telemetry, error reporting,
|
|
76
|
+
IDE auto-connect, claude.ai MCP connectors, bundled skills, file
|
|
77
|
+
checkpointing, and the native file watchers a headless run never needs.
|
|
78
|
+
A caller launching `claude` itself merges it into the child env; a
|
|
79
|
+
`RunSpec.env` entry overrides any of it.
|
|
80
|
+
|
|
81
|
+
Example:
|
|
82
|
+
>>> ClaudeCliBackend.light_env()["DISABLE_AUTOUPDATER"]
|
|
83
|
+
'1'
|
|
84
|
+
"""
|
|
85
|
+
return _core.dispatch("capabilities")["claude_light_env"]
|
|
86
|
+
|
|
71
87
|
def claude_isolation(self, api_auth: bool) -> ClaudeIsolation:
|
|
72
88
|
"""Return the isolation for one run: the process-lifetime config home and the env resolved now.
|
|
73
89
|
|
|
@@ -21,7 +21,7 @@ from spawnllm.backends.base import (
|
|
|
21
21
|
BackendReady,
|
|
22
22
|
LlmBackend,
|
|
23
23
|
)
|
|
24
|
-
from spawnllm.backends.claude import CLAUDE_MODELS
|
|
24
|
+
from spawnllm.backends.claude import CLAUDE_MODELS, ClaudeCliBackend
|
|
25
25
|
from spawnllm.response import Error, Output, Response, Result
|
|
26
26
|
from spawnllm.spec import ClaudeConfig
|
|
27
27
|
|
|
@@ -57,6 +57,7 @@ class ClaudeSdkBackend(LlmBackend):
|
|
|
57
57
|
`["project"]`, matching the CLI plan, until `ClaudeConfig.setting_sources`
|
|
58
58
|
names its own.
|
|
59
59
|
|
|
60
|
+
Every run carries `ClaudeCliBackend.light_env()`, and
|
|
60
61
|
`api_auth=False` blanks Claude's API-key environment variables because the
|
|
61
62
|
SDK can only overlay its subprocess environment, not truly unset inherited
|
|
62
63
|
keys. An explicit `RunSpec.env` value still wins. `ClaudeConfig.mcp_config`
|
|
@@ -96,7 +97,9 @@ class ClaudeSdkBackend(LlmBackend):
|
|
|
96
97
|
options = ClaudeAgentOptions(
|
|
97
98
|
model=spec.model,
|
|
98
99
|
cwd=spec.cwd,
|
|
99
|
-
env=
|
|
100
|
+
env=ClaudeCliBackend.light_env()
|
|
101
|
+
| ({} if spec.api_auth else {key: "" for key in api_key_vars})
|
|
102
|
+
| (spec.env or {}),
|
|
100
103
|
setting_sources=host_free if cfg.setting_sources is None else list(cfg.setting_sources),
|
|
101
104
|
strict_mcp_config=spec.isolated or cfg.strict_mcp,
|
|
102
105
|
max_turns=cfg.max_turns,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|