@ryusenkei/conventions 0.3.0 → 0.3.1
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/README.md +1 -1
- package/files/pre-push +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ The PreToolUse hook blocks the call and tells Claude why, so Claude can fix it a
|
|
|
59
59
|
| Secrets | `permissions.deny` blocks reading `.env` and `.dev.vars` with Claude's file tools (not Bash) |
|
|
60
60
|
| Definition of done (`--stop`) | The Stop hook runs `pnpm lint` and `pnpm test` when the working tree has changes, and sends Claude back once on failure |
|
|
61
61
|
|
|
62
|
-
Commit messages are checked by `.githooks/commit-msg`, and edited files by prose-lint's PostToolUse hook. `.githooks/pre-push` runs `pnpm run --if-present check`, so a repository that defines a `check` script cannot push until it passes. It applies to people as well as Claude.
|
|
62
|
+
Commit messages are checked by `.githooks/commit-msg`, and edited files by prose-lint's PostToolUse hook. `.githooks/pre-push` runs `pnpm run --if-present check`, so a repository that defines a `check` script cannot push until it passes. It applies to people as well as Claude. When [jobgate](https://github.com/ryusenkei-inc/jobgate) is on the `PATH` and the repository has a `check` script, the check runs through `jobgate run`, so pushes from parallel agents and repositories wait for free memory instead of exhausting it.
|
|
63
63
|
|
|
64
64
|
### Epic flow
|
|
65
65
|
|
package/files/pre-push
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
# push の前の検査(`check` のスクリプトを持つリポのみ。CI の失敗・Actions の消費を手元で防止)
|
|
3
|
+
# jobgate があれば資源の空きを待って実行(並行するエージェント・リポの重い検査によるメモリの枯渇を防止)
|
|
4
|
+
# `check` のないリポは枠を待たない
|
|
5
|
+
if command -v jobgate >/dev/null 2>&1 && grep -q '"check":' package.json 2>/dev/null; then
|
|
6
|
+
exec jobgate run --weight 2 -- pnpm run check
|
|
7
|
+
fi
|
|
3
8
|
exec pnpm run --if-present check
|