cluxion-agentplugin-preprocessing 0.3.20__tar.gz → 0.3.21__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.
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/PKG-INFO +1 -1
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/pyproject.toml +1 -1
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/context.rs +6 -4
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/context_compress.py +3 -1
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_context_compress.py +6 -1
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/.github/profile/README.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/.gitignore +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/Docs/README.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/LICENSE +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/README.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/adapters/claude/.claude-plugin/plugin.json +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/adapters/claude/skills/preprocess/SKILL.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/adapters/codex/config-snippet.toml +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/cluxion-Docs/README.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/cluxion-Docs/architecture.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/cluxion-Docs/harness-logic.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/cluxion-Docs/honesty-preprocessing.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/cluxion-Docs/install-and-operations.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/cluxion-Docs/security.md +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/Cargo.lock +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/Cargo.toml +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/pyproject.toml +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/dispatch.rs +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/guard.rs +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/lib.rs +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/main.rs +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/queue.rs +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/rust/cluxion_queue/src/types.rs +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/cli.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/doctor/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/doctor/catalog.json +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/doctor/framework.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/doctor/probes.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/guard_watch.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/hermes_config.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/plugin.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/plugin.yaml +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/runner.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_agentplugin_preprocessing/schemas.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/__main__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/adapters/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/adapters/contract.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/adapters/grok_build.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/adapters/hermes.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/adapters/spec.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/bootstrap.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/cli.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/clarification.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/dispatch_store.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/harness.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/hybrid_forget.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/intent.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/ledger.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/ledger_codec.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/llm_compress.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/plan_codec.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/preprocess.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/types.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/core/work_queue.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/guard_daemon_host.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/models/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/models/supervisor.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/models/vllm_mlx.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/resources/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/resources/guard_bridge.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/resources/py_queue.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/resources/queue_bridge.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/resources/rust_bridge.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/web/__init__.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/src/cluxion_runtime/web/browser_bridge.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_auto_compress_middleware.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_bin_resolution.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_browser_bridge.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_clarification.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_cluxion_runtime_spine.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_context_compress_llm_forget.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_contract.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_dispatch_store.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_estimate_tokens.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_guard.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_guard_daemon_host.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_ledger.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_py_queue_concurrency.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_queue_backends.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_runtime_adapter_cli.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_rust_queue.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/runtime/test_supervisor.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_bootstrap.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_doctor.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_guard_watch.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_hermes_config.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_packaging_policy.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_plugin.py +0 -0
- {cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/tests/test_runner.py +0 -0
{cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cluxion-agentplugin-preprocessing
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.21
|
|
4
4
|
Summary: Universal agent plugin for Cluxion preprocessing, honesty contracts, clarification, Rust work queue, and resource-aware harness handoff.
|
|
5
5
|
Project-URL: Homepage, https://github.com/cluxion/cluxion-Agentplugin-preprocessing
|
|
6
6
|
Project-URL: Repository, https://github.com/cluxion/cluxion-Agentplugin-preprocessing
|
{cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cluxion-agentplugin-preprocessing"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.21"
|
|
8
8
|
description = "Universal agent plugin for Cluxion preprocessing, honesty contracts, clarification, Rust work queue, and resource-aware harness handoff."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -46,10 +46,12 @@ struct Msg {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
pub fn compress(payload: &Value) -> Result<Value, QueueError> {
|
|
49
|
-
let raw_messages = payload
|
|
50
|
-
|
|
51
|
-
.
|
|
52
|
-
|
|
49
|
+
let raw_messages = match payload.get("messages") {
|
|
50
|
+
None => return Err(QueueError::Usage("missing required field: messages".into())),
|
|
51
|
+
Some(value) => value.as_array().ok_or_else(|| {
|
|
52
|
+
QueueError::Usage("messages must be a list".into())
|
|
53
|
+
})?,
|
|
54
|
+
};
|
|
53
55
|
let mut messages: Vec<Msg> = Vec::with_capacity(raw_messages.len());
|
|
54
56
|
for raw in raw_messages {
|
|
55
57
|
messages.push(Msg {
|
|
@@ -58,8 +58,10 @@ class _Msg:
|
|
|
58
58
|
|
|
59
59
|
def compress(payload: Mapping[str, object]) -> dict[str, object]:
|
|
60
60
|
raw_messages = payload.get("messages")
|
|
61
|
-
if
|
|
61
|
+
if raw_messages is None:
|
|
62
62
|
raise RuntimeError("missing required field: messages")
|
|
63
|
+
if not isinstance(raw_messages, list):
|
|
64
|
+
raise RuntimeError("messages must be a list")
|
|
63
65
|
messages = [
|
|
64
66
|
_Msg(
|
|
65
67
|
role=str(raw.get("role", "user")) if isinstance(raw, dict) else "user",
|
|
@@ -177,5 +177,10 @@ def test_tool_path_continues_when_stage1_above_trigger(monkeypatch) -> None:
|
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
def test_missing_messages_raises(backend) -> None:
|
|
180
|
-
with pytest.raises(RuntimeError, match="messages"):
|
|
180
|
+
with pytest.raises(RuntimeError, match="missing required field: messages"):
|
|
181
181
|
queue_bridge.compress_context({"context_limit_tokens": 1000})
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def test_non_list_messages_raises(backend) -> None:
|
|
185
|
+
with pytest.raises(RuntimeError, match="messages must be a list"):
|
|
186
|
+
queue_bridge.compress_context({"messages": "not-a-list", "context_limit_tokens": 1000})
|
|
File without changes
|
{cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/.gitignore
RENAMED
|
File without changes
|
{cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/Docs/README.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/LICENSE
RENAMED
|
File without changes
|
{cluxion_agentplugin_preprocessing-0.3.20 → cluxion_agentplugin_preprocessing-0.3.21}/README.md
RENAMED
|
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
|
|
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
|
|
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
|