add-coder 0.3.25 → 0.3.26
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.
- package/package.json +1 -1
- package/templates/.add-coder-src-hash.json +7 -7
- package/templates/adapters/claude/hooks/doc-format-guard.sh +2 -2
- package/templates/adapters/codex/hooks/doc-format-guard.sh +2 -2
- package/templates/adapters/qoder/hooks/doc-format-guard.sh +2 -2
- package/templates/adapters/trae/hooks/doc-format-guard.sh +2 -2
- package/templates/adapters/vscode/hooks/doc-format-guard.sh +2 -2
- package/templates/core/hooks/doc-format-guard.sh +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "add-coder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "[codein2027](https://github.com/xiaomingming92/codein2027) - A complete scaffolding for building the ADD programming paradigm, the implementation layer for AI code governance. Core principle: Audit as Infrastructure. Breaks the black-box programming process and cross-session amnesia, evolving programming paradigms into an auditable, traceable, and convergent new era. npx-ready.\n\n[codein2027](https://github.com/xiaomingming92/codein2027) 快速构建 ADD 编程范式的完整脚手架——AI 代码治理的落地方案。以「审计即基础设施」为核心,彻底打破编程过程黑盒与跨轮失忆,让编程范式进化为可审计、可追溯、可收敛的新时代。npx 即用,人人可体验。",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_version": "0.3.
|
|
3
|
-
"adapters/claude/hooks/doc-format-guard.sh": "
|
|
2
|
+
"_version": "0.3.26",
|
|
3
|
+
"adapters/claude/hooks/doc-format-guard.sh": "73f36a12",
|
|
4
4
|
"adapters/claude/hooks/lib/common.sh": "4f3e64ad",
|
|
5
5
|
"adapters/claude/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
6
6
|
"adapters/claude/hooks/lib/notify.sh": "e0033e53",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"adapters/claude/hooks/subagent-stop.sh": "0f89e28c",
|
|
27
27
|
"adapters/claude/mcp.json": "4ddc5120",
|
|
28
28
|
"adapters/claude/settings.json": "067ccc45",
|
|
29
|
-
"adapters/codex/hooks/doc-format-guard.sh": "
|
|
29
|
+
"adapters/codex/hooks/doc-format-guard.sh": "aea5f606",
|
|
30
30
|
"adapters/codex/hooks/lib/common.sh": "4f3e64ad",
|
|
31
31
|
"adapters/codex/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
32
32
|
"adapters/codex/hooks/lib/notify.sh": "e0033e53",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"adapters/codex/hooks/subagent-stop.sh": "0a34648b",
|
|
51
51
|
"adapters/codex/hooks.json": "d9c99f6b",
|
|
52
52
|
"adapters/codex/settings.json": "44136fa3",
|
|
53
|
-
"adapters/qoder/hooks/doc-format-guard.sh": "
|
|
53
|
+
"adapters/qoder/hooks/doc-format-guard.sh": "6f8aa245",
|
|
54
54
|
"adapters/qoder/hooks/lib/common.sh": "4f3e64ad",
|
|
55
55
|
"adapters/qoder/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
56
56
|
"adapters/qoder/hooks/lib/notify.sh": "e0033e53",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"adapters/qoder/mcp.json": "b2075957",
|
|
76
76
|
"adapters/qoder/settings.json": "4bae3c9a",
|
|
77
77
|
"adapters/qoder/sync-policy.json": "9cb6ff90",
|
|
78
|
-
"adapters/trae/hooks/doc-format-guard.sh": "
|
|
78
|
+
"adapters/trae/hooks/doc-format-guard.sh": "5f528aff",
|
|
79
79
|
"adapters/trae/hooks/lib/common.sh": "4f3e64ad",
|
|
80
80
|
"adapters/trae/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
81
81
|
"adapters/trae/hooks/lib/notify.sh": "e0033e53",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"adapters/vscode/.github/hooks/subagent-stop.json": "47dbdd8d",
|
|
111
111
|
"adapters/vscode/.github/hooks/user-prompt-submit.json": "3a608d62",
|
|
112
112
|
"adapters/vscode/extensions.json": "0f4024c1",
|
|
113
|
-
"adapters/vscode/hooks/doc-format-guard.sh": "
|
|
113
|
+
"adapters/vscode/hooks/doc-format-guard.sh": "97a7370e",
|
|
114
114
|
"adapters/vscode/hooks/lib/common.sh": "4f3e64ad",
|
|
115
115
|
"adapters/vscode/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
116
116
|
"adapters/vscode/hooks/lib/notify.sh": "e0033e53",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"core/docs/ADD-governance-qoder-cn.md": "332a7253",
|
|
142
142
|
"core/docs/ADD-governance-trae.md": "ffb29a0e",
|
|
143
143
|
"core/docs/ADD-governance-vscode-copilot.md": "74062e88",
|
|
144
|
-
"core/hooks/doc-format-guard.sh": "
|
|
144
|
+
"core/hooks/doc-format-guard.sh": "3a1beea8",
|
|
145
145
|
"core/hooks/lib/common.sh": "4f3e64ad",
|
|
146
146
|
"core/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
147
147
|
"core/hooks/lib/notify.sh": "e0033e53",
|
|
@@ -40,7 +40,7 @@ file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')
|
|
|
40
40
|
# L17: 非文件工具事件(空 stdin)→ 不拦截(由 matcher 层过滤)
|
|
41
41
|
[ -z "$file_path" ] && exit 0
|
|
42
42
|
|
|
43
|
-
if ! echo "$file_path" | grep -qE
|
|
43
|
+
if ! echo "$file_path" | grep -qE "$MAGIC_DIR/(plans|specs)/"; then
|
|
44
44
|
exit 0
|
|
45
45
|
fi
|
|
46
46
|
|
|
@@ -193,7 +193,7 @@ $ISSUES" >&2
|
|
|
193
193
|
fi
|
|
194
194
|
|
|
195
195
|
# ── 自动更新 index.md ──
|
|
196
|
-
if echo "$file_path" | grep -q
|
|
196
|
+
if echo "$file_path" | grep -q "$MAGIC_DIR/plans/"; then
|
|
197
197
|
if [ -x "$PROJECT_DIR/scripts/gen-plan-index.sh" ]; then
|
|
198
198
|
"$PROJECT_DIR/scripts/gen-plan-index.sh" 2>/dev/null || true
|
|
199
199
|
fi
|
|
@@ -40,7 +40,7 @@ file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')
|
|
|
40
40
|
# L17: 非文件工具事件(空 stdin)→ 不拦截(由 matcher 层过滤)
|
|
41
41
|
[ -z "$file_path" ] && exit 0
|
|
42
42
|
|
|
43
|
-
if ! echo "$file_path" | grep -qE
|
|
43
|
+
if ! echo "$file_path" | grep -qE "$MAGIC_DIR/(plans|specs)/"; then
|
|
44
44
|
exit 0
|
|
45
45
|
fi
|
|
46
46
|
|
|
@@ -252,7 +252,7 @@ $ISSUES" >&2
|
|
|
252
252
|
fi
|
|
253
253
|
|
|
254
254
|
# ── 自动更新 index.md ──
|
|
255
|
-
if echo "$file_path" | grep -q
|
|
255
|
+
if echo "$file_path" | grep -q "$MAGIC_DIR/plans/"; then
|
|
256
256
|
if [ -x "$PROJECT_DIR/scripts/gen-plan-index.sh" ]; then
|
|
257
257
|
"$PROJECT_DIR/scripts/gen-plan-index.sh" 2>/dev/null || true
|
|
258
258
|
fi
|
|
@@ -40,7 +40,7 @@ file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')
|
|
|
40
40
|
# L17: 非文件工具事件(空 stdin)→ 不拦截(由 matcher 层过滤)
|
|
41
41
|
[ -z "$file_path" ] && exit 0
|
|
42
42
|
|
|
43
|
-
if ! echo "$file_path" | grep -qE
|
|
43
|
+
if ! echo "$file_path" | grep -qE "$MAGIC_DIR/(plans|specs)/"; then
|
|
44
44
|
exit 0
|
|
45
45
|
fi
|
|
46
46
|
|
|
@@ -251,7 +251,7 @@ $ISSUES" >&2
|
|
|
251
251
|
fi
|
|
252
252
|
|
|
253
253
|
# ── 自动更新 index.md ──
|
|
254
|
-
if echo "$file_path" | grep -q
|
|
254
|
+
if echo "$file_path" | grep -q "$MAGIC_DIR/plans/"; then
|
|
255
255
|
if [ -x "$PROJECT_DIR/scripts/gen-plan-index.sh" ]; then
|
|
256
256
|
"$PROJECT_DIR/scripts/gen-plan-index.sh" 2>/dev/null || true
|
|
257
257
|
fi
|
|
@@ -40,7 +40,7 @@ file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')
|
|
|
40
40
|
# L17: 非文件工具事件(空 stdin)→ 不拦截(由 matcher 层过滤)
|
|
41
41
|
[ -z "$file_path" ] && exit 0
|
|
42
42
|
|
|
43
|
-
if ! echo "$file_path" | grep -qE
|
|
43
|
+
if ! echo "$file_path" | grep -qE "$MAGIC_DIR/(plans|specs)/"; then
|
|
44
44
|
exit 0
|
|
45
45
|
fi
|
|
46
46
|
|
|
@@ -252,7 +252,7 @@ $ISSUES" >&2
|
|
|
252
252
|
fi
|
|
253
253
|
|
|
254
254
|
# ── 自动更新 index.md ──
|
|
255
|
-
if echo "$file_path" | grep -q
|
|
255
|
+
if echo "$file_path" | grep -q "$MAGIC_DIR/plans/"; then
|
|
256
256
|
if [ -x "$PROJECT_DIR/scripts/gen-plan-index.sh" ]; then
|
|
257
257
|
"$PROJECT_DIR/scripts/gen-plan-index.sh" 2>/dev/null || true
|
|
258
258
|
fi
|
|
@@ -40,7 +40,7 @@ file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')
|
|
|
40
40
|
# L17: 非文件工具事件(空 stdin)→ 不拦截(由 matcher 层过滤)
|
|
41
41
|
[ -z "$file_path" ] && exit 0
|
|
42
42
|
|
|
43
|
-
if ! echo "$file_path" | grep -qE
|
|
43
|
+
if ! echo "$file_path" | grep -qE "$MAGIC_DIR/(plans|specs)/"; then
|
|
44
44
|
exit 0
|
|
45
45
|
fi
|
|
46
46
|
|
|
@@ -192,7 +192,7 @@ $ISSUES" >&2
|
|
|
192
192
|
fi
|
|
193
193
|
|
|
194
194
|
# ── 自动更新 index.md ──
|
|
195
|
-
if echo "$file_path" | grep -q
|
|
195
|
+
if echo "$file_path" | grep -q "$MAGIC_DIR/plans/"; then
|
|
196
196
|
if [ -x "$PROJECT_DIR/scripts/gen-plan-index.sh" ]; then
|
|
197
197
|
"$PROJECT_DIR/scripts/gen-plan-index.sh" 2>/dev/null || true
|
|
198
198
|
fi
|
|
@@ -40,7 +40,7 @@ file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')
|
|
|
40
40
|
# L17: 非文件工具事件(空 stdin)→ 不拦截(由 matcher 层过滤)
|
|
41
41
|
[ -z "$file_path" ] && exit 0
|
|
42
42
|
|
|
43
|
-
if ! echo "$file_path" | grep -qE
|
|
43
|
+
if ! echo "$file_path" | grep -qE "$MAGIC_DIR/(plans|specs)/"; then
|
|
44
44
|
exit 0
|
|
45
45
|
fi
|
|
46
46
|
|
|
@@ -252,7 +252,7 @@ $ISSUES" >&2
|
|
|
252
252
|
fi
|
|
253
253
|
|
|
254
254
|
# ── 自动更新 index.md ──
|
|
255
|
-
if echo "$file_path" | grep -q
|
|
255
|
+
if echo "$file_path" | grep -q "$MAGIC_DIR/plans/"; then
|
|
256
256
|
if [ -x "$PROJECT_DIR/scripts/gen-plan-index.sh" ]; then
|
|
257
257
|
"$PROJECT_DIR/scripts/gen-plan-index.sh" 2>/dev/null || true
|
|
258
258
|
fi
|