Skip to content

Commit fc68291

Browse files
authored
Merge pull request #36 from LiTeXz/features/remove-extra-hooks
chore: 移除多余 hooks 并对齐发布版本
2 parents 5609806 + 486cfd4 commit fc68291

4 files changed

Lines changed: 4 additions & 63 deletions

File tree

.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": "devflow-skills",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"description": "DevFlow engineering workflow skills for Codex: routing, DDD, TDD, planning, execution, debugging, review, verification, and branch finishing.",
55
"composerIcon": "./assets/app-icon-small.svg",
66
"logo": "./assets/app-icon.png",

agents/df-publisher.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# devflow-version = "0.2.10"
1+
# devflow-version = "0.2.11"
22
name = "df-publisher"
33
description = "唯一被授权执行 git 和 gh 命令的子代理。负责提交、推送、PR、合并、发布等全部 git/github 操作。遵守保护分支规则。"
44
nickname_candidates = ["df-publisher", "publisher"]

hooks/hooks.codex.json

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,7 @@
66
{
77
"type": "command",
88
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/skills/df-codex-assets/scripts/df-codex-assets.ts\" hydrate",
9-
"statusMessage": "devflow-skills: hydrating managed Codex assets"
10-
},
11-
{
12-
"type": "command",
13-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-git-github-operations.ts\"",
14-
"statusMessage": "devflow-skills: checking df-publisher agent installation"
15-
},
16-
{
17-
"type": "command",
18-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-protected-branch-push.ts\"",
19-
"statusMessage": "devflow-skills: checking protected branch session"
20-
},
21-
{
22-
"type": "command",
23-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-main-agent-write.ts\"",
24-
"statusMessage": "devflow-skills: showing coordinator-only mode"
25-
}
26-
]
27-
}
28-
],
29-
"SubagentStart": [
30-
{
31-
"hooks": [
32-
{
33-
"type": "command",
34-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-main-agent-write.ts\"",
35-
"statusMessage": "devflow-skills: registering worker session"
36-
}
37-
]
38-
}
39-
],
40-
"SubagentStop": [
41-
{
42-
"hooks": [
43-
{
44-
"type": "command",
45-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-main-agent-write.ts\"",
46-
"statusMessage": "devflow-skills: unregistering worker session"
47-
}
48-
]
49-
}
50-
],
51-
"PreToolUse": [
52-
{
53-
"matcher": "Bash|shell|exec|exec_command|unified_exec|Write|Edit|MultiEdit|NotebookEdit|apply_patch",
54-
"hooks": [
55-
{
56-
"type": "command",
57-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-git-github-operations.ts\"",
58-
"statusMessage": "devflow-skills: checking git/gh operations"
59-
},
60-
{
61-
"type": "command",
62-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-protected-branch-push.ts\"",
63-
"statusMessage": "devflow-skills: checking protected branch writes"
64-
},
65-
{
66-
"type": "command",
67-
"command": "PLUGIN_ROOT=\"${PLUGIN_ROOT}\" bun \"${PLUGIN_ROOT}/scripts/prevent-main-agent-write.ts\"",
68-
"statusMessage": "devflow-skills: checking main-agent writes"
9+
"statusMessage": "devflow-skills: ensuring df-publisher agent toml exists"
6910
}
7011
]
7112
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devflow-skills",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"type": "module",
55
"private": true,
66
"scripts": {

0 commit comments

Comments
 (0)