cluxion-agentplugin-supercoder 0.2.4__tar.gz → 0.2.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.
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/PKG-INFO +1 -1
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/pyproject.toml +1 -2
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/__init__.py +1 -1
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/lint_gate.py +3 -1
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/plugin.py +2 -1
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_lint_gate.py +13 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_plugin.py +22 -10
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/uv.lock +1 -1
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/.github/workflows/ci.yml +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/.github/workflows/publish.yml +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/.gitignore +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/ARCHITECTURE.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/README.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/agent-surfaces.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/architecture.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/capabilities.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/design.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/installation.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/rust-architecture.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/tools.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/LICENSE +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/README.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/__init__.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/adapters/claude/.claude-plugin/plugin.json +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/adapters/claude/skills/supercoder/SKILL.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/adapters/codex/config-snippet.toml +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/adapters/hermes/README.md +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/plugin.yaml +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/Cargo.lock +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/Cargo.toml +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/pyproject.toml +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/src/lib.rs +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/src/main.rs +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/src/outline.rs +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/rust/supercoder_index/src/syntax.rs +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/scripts/repack_native_wheel.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/cli.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/cursor.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/hash_patch.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/line_budget.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/queue.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/repo_map.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/retry_loop.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/safety.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/syntax_gate.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/core/test_gate.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/doctor/__init__.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/doctor/catalog.json +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/doctor/framework.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/doctor/probes.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/runner.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/rust_bridge.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/src/cluxion_agentplugin_supercoder/schemas.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_cursor.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_doctor.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_hash_patch.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_line_budget.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_queue.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_repo_map.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_retry_loop.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_rust_bridge.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_safety.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_syntax_gate.py +0 -0
- {cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_test_gate.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cluxion-agentplugin-supercoder
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Universal agent coding harness plugin: cursor logic, safe patch, line budget, Rust index, test gates.
|
|
5
5
|
Project-URL: Homepage, https://github.com/cluxion/cluxion-Agentplugin-supercoder
|
|
6
6
|
Project-URL: Repository, https://github.com/cluxion/cluxion-Agentplugin-supercoder
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cluxion-agentplugin-supercoder"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.5"
|
|
8
8
|
description = "Universal agent coding harness plugin: cursor logic, safe patch, line budget, Rust index, test gates."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -30,7 +30,6 @@ Issues = "https://github.com/cluxion/cluxion-Agentplugin-supercoder/issues"
|
|
|
30
30
|
[tool.hatch.build.targets.wheel]
|
|
31
31
|
packages = ["src/cluxion_agentplugin_supercoder"]
|
|
32
32
|
|
|
33
|
-
|
|
34
33
|
[tool.pytest.ini_options]
|
|
35
34
|
testpaths = ["tests"]
|
|
36
35
|
addopts = "-q"
|
|
@@ -46,7 +46,9 @@ def _discover_ruff() -> str | None:
|
|
|
46
46
|
|
|
47
47
|
def check_file(path: str | Path, *, cwd: str | Path | None = None) -> dict[str, Any]:
|
|
48
48
|
"""Lint one file and return structured advisory findings."""
|
|
49
|
-
target = Path(path)
|
|
49
|
+
target = Path(path).resolve()
|
|
50
|
+
if target.is_dir():
|
|
51
|
+
return {"ok": False, "error": "path is a directory"}
|
|
50
52
|
language = language_for_path(target)
|
|
51
53
|
if language not in LINTABLE_LANGUAGES:
|
|
52
54
|
return _unchecked(language or "", "no_linter")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
-
from collections.abc import Callable
|
|
4
|
+
from collections.abc import Callable, Mapping
|
|
5
5
|
|
|
6
6
|
from cluxion_agentplugin_supercoder import runner
|
|
7
7
|
from cluxion_agentplugin_supercoder.core.test_gate import suggest_test_commands
|
|
@@ -116,6 +116,7 @@ def register(ctx: object) -> None:
|
|
|
116
116
|
|
|
117
117
|
def _wrap(callback: Callable[[dict[str, object]], runner.ToolResult]) -> Callable[[dict[str, object]], str]:
|
|
118
118
|
def handler(args: dict[str, object], **_: object) -> str:
|
|
119
|
+
args = args if isinstance(args, Mapping) else {}
|
|
119
120
|
try:
|
|
120
121
|
return callback(args).to_json()
|
|
121
122
|
except (ValueError, TypeError, OSError) as exc:
|
|
@@ -95,3 +95,16 @@ def test_lint_gate_tool(tmp_path: Path) -> None:
|
|
|
95
95
|
assert result.ok is True
|
|
96
96
|
assert result.payload["clean"] is False
|
|
97
97
|
assert result.payload["finding_count"] >= 1
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def test_lint_gate_rejects_directory(tmp_path: Path) -> None:
|
|
101
|
+
d = tmp_path / "emptydir"
|
|
102
|
+
d.mkdir()
|
|
103
|
+
result = lint_gate.check_file(d)
|
|
104
|
+
assert result.get("ok") is False
|
|
105
|
+
assert result.get("error") == "path is a directory"
|
|
106
|
+
|
|
107
|
+
# also via runner tool
|
|
108
|
+
res_tool = runner.lint_gate_tool({"cwd": str(tmp_path), "path": "emptydir"})
|
|
109
|
+
assert res_tool.ok is False
|
|
110
|
+
assert res_tool.payload.get("error") == "path is a directory"
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_plugin.py
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"""Tests for plugin registration and _wrap error handling."""
|
|
2
|
+
|
|
1
3
|
from __future__ import annotations
|
|
2
4
|
|
|
3
5
|
import json
|
|
@@ -5,18 +7,15 @@ import json
|
|
|
5
7
|
from cluxion_agentplugin_supercoder import plugin, runner
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
self
|
|
11
|
-
|
|
12
|
-
def register_tool(
|
|
13
|
-
self, *, name: str, toolset: str, schema: dict[str, object], handler: object, emoji: str = ""
|
|
14
|
-
) -> None:
|
|
15
|
-
self.tools[name] = {"toolset": toolset, "schema": schema, "handler": handler, "emoji": emoji}
|
|
10
|
+
def test_register_exposes_all_tools() -> None:
|
|
11
|
+
class FakeCtx:
|
|
12
|
+
def __init__(self):
|
|
13
|
+
self.tools = {}
|
|
16
14
|
|
|
15
|
+
def register_tool(self, name, toolset=None, schema=None, handler=None, emoji=None):
|
|
16
|
+
self.tools[name] = {"toolset": toolset, "schema": schema}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
ctx = FakeContext()
|
|
18
|
+
ctx = FakeCtx()
|
|
20
19
|
plugin.register(ctx)
|
|
21
20
|
assert sorted(ctx.tools) == [
|
|
22
21
|
"supercoder_brief",
|
|
@@ -46,6 +45,19 @@ def test_wrap_catches_isadirectory_and_typeerror() -> None:
|
|
|
46
45
|
assert res_type == {"ok": False, "error": "bad int coercion"}
|
|
47
46
|
|
|
48
47
|
|
|
48
|
+
def test_wrap_coerces_none_args_to_clean_error() -> None:
|
|
49
|
+
def any_handler(args):
|
|
50
|
+
# if args was None, before fix: AttributeError on .get inside tools
|
|
51
|
+
# now coerced to {}, so callback runs and may raise ValueError for missing keys
|
|
52
|
+
if not args:
|
|
53
|
+
raise ValueError("args required after coercion")
|
|
54
|
+
return runner.ToolResult(True, {"echo": args})
|
|
55
|
+
|
|
56
|
+
wrapped = plugin._wrap(any_handler)
|
|
57
|
+
res = json.loads(wrapped(None))
|
|
58
|
+
assert res == {"ok": False, "error": "args required after coercion"}
|
|
59
|
+
|
|
60
|
+
|
|
49
61
|
def test_repo_map_deterministic(tmp_path) -> None:
|
|
50
62
|
# ensure deterministic output (no varying cache stats in payload)
|
|
51
63
|
from cluxion_agentplugin_supercoder.core import repo_map as rm
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/ARCHITECTURE.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/README.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/agent-surfaces.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/architecture.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/capabilities.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/design.md
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/Docs/installation.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
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_cursor.py
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_doctor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_queue.py
RENAMED
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_repo_map.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cluxion_agentplugin_supercoder-0.2.4 → cluxion_agentplugin_supercoder-0.2.5}/tests/test_safety.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|