Commit 0cffca3
committed
refactor: Convert bash hooks to Python for cross-platform compatibility
Replace bash hook scripts with Python module implementations that work
on Windows, macOS, and Linux without requiring bash. This is a general
improvement extracted from the Windows support work.
Changes:
- Add capture_prompt.py, user_prompt_submit.py, hook_entry.py modules
- Update global_hooks.yml to use module references instead of .sh scripts
- Update hooks_syncer.py to use forward slashes for cross-platform paths
- Remove deprecated bash scripts (capture_prompt_work_tree.sh, user_prompt_submit.sh)
- Remove make_new_job.sh bash permission (no longer needed)
- Add cross-platform hooks tests
https://claude.ai/code/session_011mvvEHLPHc8o9w6NwayWC61 parent 643326f commit 0cffca3
15 files changed
Lines changed: 387 additions & 159 deletions
File tree
- .deepwork/jobs/deepwork_rules/hooks
- doc
- src/deepwork
- core
- hooks
- standard_jobs/deepwork_rules/hooks
- templates/claude
- tests/unit
Lines changed: 0 additions & 38 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
Lines changed: 0 additions & 16 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 312 | + | |
| 313 | + | |
317 | 314 | | |
318 | 315 | | |
319 | 316 | | |
| |||
1142 | 1139 | | |
1143 | 1140 | | |
1144 | 1141 | | |
1145 | | - | |
| 1142 | + | |
1146 | 1143 | | |
1147 | 1144 | | |
1148 | 1145 | | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1153 | 1151 | | |
1154 | 1152 | | |
1155 | | - | |
| 1153 | + | |
1156 | 1154 | | |
1157 | | - | |
| 1155 | + | |
1158 | 1156 | | |
1159 | 1157 | | |
1160 | 1158 | | |
| |||
1169 | 1167 | | |
1170 | 1168 | | |
1171 | 1169 | | |
1172 | | - | |
| 1170 | + | |
1173 | 1171 | | |
1174 | | - | |
| 1172 | + | |
1175 | 1173 | | |
1176 | 1174 | | |
1177 | 1175 | | |
1178 | 1176 | | |
1179 | 1177 | | |
1180 | 1178 | | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | 1179 | | |
1188 | 1180 | | |
1189 | 1181 | | |
1190 | 1182 | | |
1191 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1192 | 1189 | | |
1193 | 1190 | | |
1194 | 1191 | | |
| |||
1214 | 1211 | | |
1215 | 1212 | | |
1216 | 1213 | | |
1217 | | - | |
| 1214 | + | |
1218 | 1215 | | |
1219 | 1216 | | |
1220 | 1217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
| 50 | + | |
47 | 51 | | |
48 | | - | |
49 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | | - | |
| 27 | + | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
39 | | - | |
| 33 | + | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
0 commit comments