release: Themiz на Gitea
This commit is contained in:
+10
-53
@@ -1,48 +1,12 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": null,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then exit 0; fi; exec entire hooks codex post-tool-use'",
|
||||
"timeout": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PreToolUse": [
|
||||
{
|
||||
"matcher": "Read|Write|Edit|NotebookEdit|Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "python3 \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/scripts/claude_guard.py\""
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SessionEnd": [
|
||||
{
|
||||
"matcher": null,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then exit 0; fi; exec entire hooks codex session-end'",
|
||||
"timeout": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SessionStart": [
|
||||
{
|
||||
"matcher": null,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then printf \"%s\\n\" \"{\\\"systemMessage\\\":\\\"Entire CLI is enabled but not installed or not on PATH. Installation guide: https://docs.entire.io/cli/installation#installation-methods\\\"}\"; exit 0; fi; exec entire hooks codex session-start'",
|
||||
"timeout": 30
|
||||
"command": "python3 \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/scripts/themiz_guard.py\""
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -54,47 +18,40 @@
|
||||
{
|
||||
"type": "command",
|
||||
"command": "mkdir -p \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/cases/_logs\" && echo \"Session ended: $(date '+%d.%m.%Y %H:%M')\" >> \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/cases/_logs/_session_history.txt\""
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then exit 0; fi; exec entire hooks codex stop'",
|
||||
"timeout": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SubagentStart": [
|
||||
},
|
||||
{
|
||||
"matcher": null,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then exit 0; fi; exec entire hooks codex subagent-start'",
|
||||
"timeout": 30
|
||||
"command": "[ -f \"$HOME/.agents/skills/session-capture/scripts/session-capture.mjs\" ] || exit 0; exec node \"$HOME/.agents/skills/session-capture/scripts/session-capture.mjs\" hook --agent codex",
|
||||
"timeout": 60
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SubagentStop": [
|
||||
"SessionStart": [
|
||||
{
|
||||
"matcher": null,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then exit 0; fi; exec entire hooks codex subagent-stop'",
|
||||
"timeout": 30
|
||||
"command": "[ -f \"$HOME/.agents/skills/session-capture/scripts/session-capture.mjs\" ] || exit 0; exec node \"$HOME/.agents/skills/session-capture/scripts/session-capture.mjs\" hook --agent codex",
|
||||
"timeout": 60
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"UserPromptSubmit": [
|
||||
"SessionEnd": [
|
||||
{
|
||||
"matcher": null,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "sh -c 'if ! command -v entire >/dev/null 2>&1; then exit 0; fi; exec entire hooks codex user-prompt-submit'",
|
||||
"timeout": 30
|
||||
"command": "[ -f \"$HOME/.agents/skills/session-capture/scripts/session-capture.mjs\" ] || exit 0; exec node \"$HOME/.agents/skills/session-capture/scripts/session-capture.mjs\" hook --agent codex",
|
||||
"timeout": 60
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user