Skip to content

Commit d04262e

Browse files
committed
fix: 兼容 Python 3.11 原生 Hook 参数解析 v0.1.4
1 parent feeee79 commit d04262e

18 files changed

Lines changed: 112 additions & 17 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/full-stack-plugins/gitflow-plugin.git",
12-
"ref": "v0.1.3"
12+
"ref": "v0.1.4"
1313
},
1414
"policy": {
1515
"installation": "AVAILABLE",
1616
"authentication": "ON_USE"
1717
},
1818
"category": "Developer Tools",
19-
"version": "0.1.3",
19+
"version": "0.1.4",
2020
"description": "按项目约定治理 Git 分支、提交与流转,九技能加确定性门禁",
21-
"icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/gitflow-plugin@v0.1.3/assets/logo.png",
21+
"icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/gitflow-plugin@v0.1.4/assets/logo.png",
2222
"interface": {
2323
"displayName": "GitFlow",
2424
"shortDescription": "项目 Git 分支规范治理",
25-
"logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/gitflow-plugin@v0.1.3/assets/logo.png"
25+
"logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/gitflow-plugin@v0.1.4/assets/logo.png"
2626
}
2727
}
2828
]

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitflow",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "按项目约定治理 Git 分支、提交与流转,九技能加确定性门禁",
55
"author": {
66
"name": "Full Stack Skills"

‎.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": "gitflow",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "按项目约定治理 Git 分支、提交与流转,九技能加确定性门禁",
55
"author": {
66
"name": "Full Stack Skills"

‎.zcode-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitflow",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "按项目约定治理 Git 分支、提交与流转,九技能加确定性门禁",
55
"author": {
66
"name": "Full Stack Skills"

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# 更新记录
22

3+
## 0.1.4 — 2026-10-07
4+
5+
- 修复 Python 3.11 原生 Hook CLI 解析 `--` 及后续位置参数的兼容性;混合参数使用 parse_intermixed_args。
6+
- v0.1.3 远端全量 CI 在 macOS/Python 3.13 通过,在 Linux/Python 3.11 发现 5 项原生 Hook 失败;此补丁保留真实失败记录并重新验证双平台。
7+
38
## 0.1.3 — 2026-10-07
49

510
- 增加真实 Git 工作树检测;自动 Hook 在无 Git、bare 或缺失 cwd 时保持静默,不写入上下文记录。

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<img src="assets/logo.png" width="160" alt="GitFlow 分支与汇合标志">
44

5-
让 AI 按项目约定使用 Git:仅在 Git 项目中自动触发,进入项目先识别管理状态与规则,提交前校验角色,创建分支检查基线,发布逐目标记录回灌。当前版本 0.1.3,Python 3.11+、Git 2.41+、macOS/Linux,无运行时第三方依赖。
5+
让 AI 按项目约定使用 Git:仅在 Git 项目中自动触发,进入项目先识别管理状态与规则,提交前校验角色,创建分支检查基线,发布逐目标记录回灌。当前版本 0.1.4,Python 3.11+、Git 2.41+、macOS/Linux,无运行时第三方依赖。
66

77
九技能来自独立 git-skills 包;插件内是锁定副本。可移植根 plugin.json/mcp.json 遵循 Agent Plugins 1.0.0。Claude/Codex/ZCode 清单是宿主兼容产物;本次未安装到宿主,不能据此宣称宿主自动加载、事件格式或持久化目录已经验收。
88

@@ -84,15 +84,15 @@ PreToolUse 按 `git -C`(含 `-Cpath`)及简单 `cd &&` 的实际目标检测
8484
python3 -m unittest discover -s tests -p "test_*.py"
8585
python3 scripts/validate_package.py
8686
python3 scripts/vendor_skills.py --check
87-
python3 scripts/package.py --output /absolute/output/gitflow-0.1.3.zip
87+
python3 scripts/package.py --output /absolute/output/gitflow-0.1.4.zip
8888
```
8989

90-
validator 使用标准库核对结构、路径、版本、技能与模板摘要;开发时另用已存在的 jsonschema 验证官方 schema。发布前更新独立技能包再显式 vendor;项目源码已推送 GitHub;发布来源与资产固定到 v0.1.3。
90+
validator 使用标准库核对结构、路径、版本、技能与模板摘要;开发时另用已存在的 jsonschema 验证官方 schema。发布前更新独立技能包再显式 vendor;项目源码已推送 GitHub;发布来源与资产固定到 v0.1.4。
9191

9292
[规格与验收](docs/superpowers/specs/2026-10-07-gitflow.md);[验证报告](docs/verification.md)。真实临时本地/bare 远端测试与宿主安装、托管保护、CI、生产发布是不同证据。
9393

9494
## 市场与视觉资产
9595

96-
GitFlow 已收录到 [Full Stack Plugins](https://github.com/partme-ai/full-stack-plugins),版本 v0.1.3。Codex、ZCode、Kimi 市场清单固定到同一 tag 与正式 Release。Kimi 适配提供九技能和 stdio MCP;宿主事件 Hook 接线与三个宿主的实际安装加载仍未验证。
96+
GitFlow 已收录到 [Full Stack Plugins](https://github.com/partme-ai/full-stack-plugins),版本 v0.1.4。Codex、ZCode、Kimi 市场清单固定到同一 tag 与正式 Release。Kimi 适配提供九技能和 stdio MCP;宿主事件 Hook 接线与三个宿主的实际安装加载仍未验证。
9797

9898
Logo 基于 Jason Long 创作的 Git 官方标志二次创作:保留橙色菱形,以直线主干、平行分支与斜向汇合表现工作流。原始标志与衍生图像按 CC BY 3.0 署名,代码仍为 Apache-2.0。GitFlow 是独立插件,无 Git 项目官方背书。来源、许可和生成提示见 [资产说明](assets/README.md)。

‎dist/gitflow-0.1.4.delivery.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.1.4",
3+
"repository": "https://github.com/full-stack-plugins/gitflow-plugin",
4+
"tag": "v0.1.4",
5+
"sha256": "fa99ecd2978baf1ebf49b7a03862b9c12a22b317918ced226d0c53cde4c39ce5",
6+
"bytes": 347329,
7+
"local_validation": {
8+
"all_tests": 81,
9+
"project_activation_tests": 12,
10+
"vendor_files": 90,
11+
"manifest_mcp_version": "0.1.4"
12+
},
13+
"source_evidence": "docs/evidence/project-activation-v0.1.4.json",
14+
"host_installation": "unverified",
15+
"ci": "query exact published commit"
16+
}

‎dist/gitflow-0.1.4.zip‎

339 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.................................................................................
2+
----------------------------------------------------------------------
3+
Ran 81 tests in 62.635s
4+
5+
OK
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"version": "0.1.4",
3+
"date": "2026-10-07",
4+
"requirements": [
5+
"R19",
6+
"R20",
7+
"R21",
8+
"R22"
9+
],
10+
"test_count": 81,
11+
"project_activation_tests": 12,
12+
"tests": "PASS",
13+
"red_evidence": {
14+
"initial_tests": 10,
15+
"initial_behavior_failures": 27,
16+
"additional_cd_dynamic_test": "failed before active-cwd refresh; passed after fix",
17+
"python_3_11_native_cli": {
18+
"run": 37640761024,
19+
"head": "feeee793b0ad4ba66cd2fd9f74e4a397c1b6e936",
20+
"linux_failures": 5,
21+
"macos_tests": "81 PASS",
22+
"cause": "parse_args rejects -- following mixed optional and positional arguments"
23+
}
24+
},
25+
"environment": {
26+
"python": "3.14.3",
27+
"git": "git version 2.48.1",
28+
"os": "Darwin"
29+
},
30+
"fingerprint_algorithm": "sha256(sorted relative posix path + NUL + bytes + NUL)",
31+
"runtime_sha256": "e03c50f722752ce538d2874239aae0d823de14176158d3c1b756263162e52626",
32+
"tests_sha256": "0c37b6ddf22fff468a012e505df50c43ee437bce56377c171a5e28801c6cc4f0",
33+
"spec_sha256": "d31573207c24f0f8602ef5c3f483a0fb85785cbe1f32ed558fd5dae7ffe456cc",
34+
"skills_lock_sha256": "693401d7b8cf4f48736e0a9011533196eafcbbf5487ad0c0d6c9db32428dcbb8",
35+
"test_log_sha256": "a2128c9e32abf1675e7eae84589d764f52fee148bf9cf5f8be889ad37ed53b3c",
36+
"checks": {
37+
"package": "PASS",
38+
"vendor_files": 90,
39+
"manifest_mcp_version": "0.1.4"
40+
},
41+
"external_evidence": {
42+
"host_installation": "not_run",
43+
"host_event_integration": "not_run",
44+
"remote_ci": "query exact published commit",
45+
"hosted_branch_protection": "not_run"
46+
}
47+
}

0 commit comments

Comments
 (0)