spawnllm 0.17.4__tar.gz → 0.17.5__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.4 → spawnllm-0.17.5}/PKG-INFO +1 -1
- {spawnllm-0.17.4 → spawnllm-0.17.5}/pyproject.toml +1 -1
- {spawnllm-0.17.4 → spawnllm-0.17.5}/pyproject.toml.orig +1 -1
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/_core/__init__.py +8 -2
- {spawnllm-0.17.4 → spawnllm-0.17.5}/LICENSE +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/README.md +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/__init__.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/__main__.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/_core/spawnllm_core.wasm +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/__init__.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/apple.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/base.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/claude.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/claude_sdk.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/codex.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/gemini.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/mlx.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/openai_endpoint.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/backends/registry.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/call.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/cli.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/decide.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/extract.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/mlx/__init__.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/mlx/codec.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/mlx/engine.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/mlx/fuse.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/mlx/patches.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/proc.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/py.typed +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/response.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/run.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/spec.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/spawnllm/structured.py +0 -0
- {spawnllm-0.17.4 → spawnllm-0.17.5}/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.5"
|
|
5
5
|
description = "Delete your subprocess wrappers around claude, codex, and gemini."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
license = "MIT"
|
|
@@ -6,6 +6,9 @@ wasmtime-py exposes no in-memory WASI stderr sink, so a panicking core's diagnos
|
|
|
6
6
|
are routed to a process-lifetime temp file whose tail is read back into the raised
|
|
7
7
|
`CoreTrap`. The core builds with panic=abort, so a trap leaves the allocator in an
|
|
8
8
|
untrustworthy state: the cached runtime is dropped and the next call re-instantiates.
|
|
9
|
+
The engine compiles serially into wasmtime's on-disk code cache, so a process loads the
|
|
10
|
+
machine's one compiled artifact instead of standing up a Cranelift thread pool (one
|
|
11
|
+
thread per core, kept for the process's life) to recompile the blob.
|
|
9
12
|
"""
|
|
10
13
|
|
|
11
14
|
from __future__ import annotations
|
|
@@ -91,12 +94,15 @@ def export[T](exports: InstanceExports, name: str, kind: type[T]) -> T:
|
|
|
91
94
|
|
|
92
95
|
|
|
93
96
|
def build() -> Runtime:
|
|
94
|
-
from wasmtime import Engine, Func, Linker, Memory, Module, Store, WasiConfig
|
|
97
|
+
from wasmtime import Config, Engine, Func, Linker, Memory, Module, Store, WasiConfig
|
|
95
98
|
|
|
96
99
|
blob = files(__package__).joinpath(WASM_NAME)
|
|
97
100
|
if not blob.is_file():
|
|
98
101
|
raise FileNotFoundError(MISSING_BLOB)
|
|
99
|
-
|
|
102
|
+
config = Config()
|
|
103
|
+
config.parallel_compilation = False
|
|
104
|
+
config.cache = True
|
|
105
|
+
engine = Engine(config)
|
|
100
106
|
linker = Linker(engine)
|
|
101
107
|
linker.define_wasi()
|
|
102
108
|
store = Store(engine)
|
|
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
|
|
File without changes
|
|
File without changes
|