Skip to content

Commit fa65887

Browse files
committed
release: v0.11.0(#31 hardening 已并入 main;本批:manifest 0.10.1 -> 0.11.0 + ruff 清理)
1 parent f7e64bc commit fa65887

7 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎.agents/plugins/marketplace.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
"source": {
1010
"source": "url",
1111
"url": "https://github.com/partme-ai/partme-codeguard-plugin.git",
12-
"ref": "v0.10.1"
12+
"ref": "v0.11.0"
1313
},
1414
"policy": {
1515
"installation": "AVAILABLE",
1616
"authentication": "ON_USE"
1717
},
1818
"category": "Developer Tools",
19-
"version": "0.10.1",
19+
"version": "0.11.0",
2020
"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.",
21-
"icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.10.1/assets/official-logo.png",
21+
"icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.11.0/assets/official-logo.png",
2222
"interface": {
2323
"displayName": "代码规范守卫",
2424
"shortDescription": "Make AI-written code pass lint on first try",
25-
"logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.10.1/assets/official-logo.png"
25+
"logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/codeguard-plugin@v0.11.0/assets/official-logo.png"
2626
}
2727
}
2828
]

‎.codex-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeguard",
3-
"version": "0.10.1+codex.20260922",
3+
"version": "0.11.0+codex.20260922",
44
"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.",
55
"author": {
66
"name": "Full Stack Skills / PartMe.AI",

‎.zcode-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"en": "CodeGuard",
66
"zh-CN": "代码规范检查"
77
},
8-
"version": "0.10.1",
8+
"version": "0.11.0",
99
"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.",
1010
"description_i18n": {
1111
"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.",

‎hooks/gate_lib.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ def _gate_cache_key(
193193
不同文件集——只按工作树指纹,先跑的窄面结果会把宽面查询喂给同一缓存条目
194194
(staged 干净 + 未暂存有病 → 窄面 pass 被宽面复用 = 绕过)。
195195
"""
196-
import hashlib
197196
head = _git(project_root, "rev-parse", "HEAD")
198197
if head is None:
199198
return None

‎hooks/pre_tool_git_guard.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def staging_intent(command: str) -> tuple[tuple[str, ...], list[str]]:
382382
except ValueError:
383383
continue
384384
extra.append(str(rel))
385-
ordered = tuple(l for l in all_lanes if l in lanes)
385+
ordered = tuple(lane for lane in all_lanes if lane in lanes)
386386
return ordered, extra
387387

388388

‎kimi.plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeguard",
3-
"version": "0.10.1",
3+
"version": "0.11.0",
44
"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.",
55
"author": {
66
"name": "Full Stack Skills / PartMe.AI"

‎tests/test_session_fixes_20260922.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def test_bare_linter_still_appends_by_default(self) -> None:
341341

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

0 commit comments

Comments
 (0)