Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"source": {
"source": "url",
"url": "https://github.com/partme-ai/partme-codeguard-plugin.git",
"ref": "v0.10.1"
"ref": "v0.11.0"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_USE"
},
"category": "Developer Tools",
"version": "0.10.1",
"version": "0.11.0",
"description": "Cross-language code lint enforcement for AI coding assistants (ZCode, Claude Code, Codex CLI, Kimi Code): Java, Rust, TypeScript, Python. PostToolUse hook auto-runs the native linter on every AI-written file and blocks on failure in strict mode.",
"icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.10.1/assets/official-logo.png",
"icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.11.0/assets/official-logo.png",
"interface": {
"displayName": "代码规范守卫",
"shortDescription": "Make AI-written code pass lint on first try",
"logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.10.1/assets/official-logo.png"
"logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.11.0/assets/official-logo.png"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeguard",
"version": "0.10.1+codex.20260922",
"version": "0.11.0+codex.20260922",
"description": "Cross-language code lint enforcement for AI coding assistants (ZCode, Claude Code, Codex CLI, Kimi Code): Java, Rust, TypeScript, Python. PostToolUse hook auto-runs the native linter on every AI-written file and blocks on failure in strict mode.",
"author": {
"name": "Full Stack Skills / PartMe.AI",
Expand Down
2 changes: 1 addition & 1 deletion .zcode-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"en": "CodeGuard",
"zh-CN": "代码规范检查"
},
"version": "0.10.1",
"version": "0.11.0",
"description": "Cross-language code lint enforcement for AI coding assistants (ZCode, Claude Code, Codex CLI, Kimi Code): Java, Rust, TypeScript, Python. PostToolUse hook auto-runs the native linter on every AI-written file and blocks on failure in strict mode.",
"description_i18n": {
"en": "Cross-language code lint enforcement. PostToolUse hook auto-runs the language-specific linter on every AI-written file; failed lint blocks further writes when strict_mode is on. Ships ready-to-go .pre-commit-config.yaml templates for Java/Rust/TypeScript/Python.",
Expand Down
1 change: 0 additions & 1 deletion hooks/gate_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ def _gate_cache_key(
不同文件集——只按工作树指纹,先跑的窄面结果会把宽面查询喂给同一缓存条目
(staged 干净 + 未暂存有病 → 窄面 pass 被宽面复用 = 绕过)。
"""
import hashlib
head = _git(project_root, "rev-parse", "HEAD")
if head is None:
return None
Expand Down
2 changes: 1 addition & 1 deletion hooks/pre_tool_git_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def staging_intent(command: str) -> tuple[tuple[str, ...], list[str]]:
except ValueError:
continue
extra.append(str(rel))
ordered = tuple(l for l in all_lanes if l in lanes)
ordered = tuple(lane for lane in all_lanes if lane in lanes)
return ordered, extra


Expand Down
2 changes: 1 addition & 1 deletion kimi.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeguard",
"version": "0.10.1",
"version": "0.11.0",
"description": "Cross-language code lint enforcement for AI coding assistants (ZCode, Claude Code, Codex CLI, Kimi Code): Java, Rust, TypeScript, Python. PostToolUse hook auto-runs the native linter on every AI-written file and blocks on failure in strict mode.",
"author": {
"name": "Full Stack Skills / PartMe.AI"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_session_fixes_20260922.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def test_bare_linter_still_appends_by_default(self) -> None:

def test_registry_marks_project_level_commands(self) -> None:
reg = json.loads((PLUGIN / "scripts" / "languages.json").read_text(encoding="utf-8"))
by_id = {l["id"]: l for l in reg["languages"]}
by_id = {lang["id"]: lang for lang in reg["languages"]}
for lid in ("java", "kotlin", "rust", "go", "csharp", "vbnet",
"terraform", "protobuf", "elm"):
with self.subTest(lang=lid):
Expand Down
Loading