oh-my-customcode 0.38.0 → 0.39.0
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/.claude/hooks/hooks.json +2 -2
- package/templates/.claude/hooks/scripts/agent-teams-advisor.sh +3 -0
- package/templates/.claude/hooks/scripts/audit-log.sh +3 -0
- package/templates/.claude/hooks/scripts/content-hash-validator.sh +3 -0
- package/templates/.claude/hooks/scripts/context-budget-advisor.sh +3 -0
- package/templates/.claude/hooks/scripts/git-delegation-guard.sh +3 -0
- package/templates/.claude/hooks/scripts/model-escalation-advisor.sh +3 -0
- package/templates/.claude/hooks/scripts/schema-validator.sh +3 -0
- package/templates/.claude/hooks/scripts/secret-filter.sh +3 -0
- package/templates/.claude/hooks/scripts/stuck-detector.sh +3 -0
- package/templates/.claude/hooks/scripts/task-outcome-recorder.sh +3 -0
- package/templates/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -311,10 +311,10 @@
|
|
|
311
311
|
"hooks": [
|
|
312
312
|
{
|
|
313
313
|
"type": "prompt",
|
|
314
|
-
"prompt": "Session-end memory checkpoint (R011 enforcement). Check
|
|
314
|
+
"prompt": "Session-end memory checkpoint (R011 enforcement). Check if the session-end memory save workflow was completed: 1) sys-memory-keeper was delegated to update MEMORY.md 2) claude-mem save was attempted via ToolSearch + mcp__plugin_claude-mem_mcp-search__save_memory. Note: episodic-memory auto-indexes after session — no manual action needed. Decision rules (evaluate in order): 1. If session had no explicit session-end signal (quick question, no memory work): APPROVE immediately. 2. If BOTH steps were already attempted (success or failure both count): APPROVE. 3. If MCP tools unavailable after ToolSearch attempt: APPROVE with note. 4. If steps were NOT yet performed: PERFORM THEM NOW (maximum 1 attempt each): a. Delegate to sys-memory-keeper to update MEMORY.md — call Agent tool with sys-memory-keeper. b. Attempt claude-mem save — ToolSearch for save_memory tool, then call it. c. After completion (success or failure), APPROVE stop. IMPORTANT: Do NOT block indefinitely. After 1 attempt per step, always APPROVE. IMPORTANT: Do NOT loop — if you already performed these steps in this same stop hook evaluation, APPROVE."
|
|
315
315
|
}
|
|
316
316
|
],
|
|
317
|
-
"description": "Enforce R011 session-end memory saves —
|
|
317
|
+
"description": "Enforce R011 session-end memory saves — auto-perform if not yet done (episodic-memory auto-indexes)"
|
|
318
318
|
}
|
|
319
319
|
]
|
|
320
320
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
|
+
# Dependency check: exit silently if jq not available
|
|
5
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
6
|
+
|
|
4
7
|
# Agent Teams Advisor Hook
|
|
5
8
|
# Trigger: PreToolUse, tool == "Task" || tool == "Agent"
|
|
6
9
|
# Purpose: Track Agent/Task tool usage count per session and warn when Agent Teams may be more appropriate
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
|
+
# Dependency check: exit silently if jq not available
|
|
5
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
6
|
+
|
|
4
7
|
# Context Budget Advisor Hook
|
|
5
8
|
# Trigger: PostToolUse (Edit/Write/Agent/Task/Read/Glob/Grep/Bash)
|
|
6
9
|
# Purpose: Monitor context usage and advise ecomode activation based on task type
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
# Warns when git operations are delegated to a non-mgr-gitnerd agent via Agent/Task tool.
|
|
4
4
|
# WARN only - does NOT block (exit 0, passes input through).
|
|
5
5
|
|
|
6
|
+
# Dependency check: exit silently if jq not available
|
|
7
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
8
|
+
|
|
6
9
|
input=$(cat)
|
|
7
10
|
|
|
8
11
|
agent_type=$(echo "$input" | jq -r '.tool_input.subagent_type // ""')
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
|
+
# Dependency check: exit silently if jq not available
|
|
5
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
6
|
+
|
|
4
7
|
# Model Escalation Advisor Hook
|
|
5
8
|
# Trigger: PreToolUse, tool == "Task" || tool == "Agent"
|
|
6
9
|
# Purpose: Advise model escalation when failure patterns detected
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
|
+
# Dependency check: exit silently if jq not available
|
|
5
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
6
|
+
|
|
4
7
|
# Stuck Detector Hook
|
|
5
8
|
# Trigger: PostToolUse, tool matches "Edit|Write|Bash|Task|Agent"
|
|
6
9
|
# Purpose: Detect repetitive failure loops and advise recovery
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
|
+
# Dependency check: exit silently if jq not available
|
|
5
|
+
command -v jq >/dev/null 2>&1 || exit 0
|
|
6
|
+
|
|
4
7
|
# Task/Agent Outcome Recorder Hook
|
|
5
8
|
# Trigger: PostToolUse (tool == "Task" || "Agent") and SubagentStop
|
|
6
9
|
# Purpose: Record task outcomes for model escalation decisions
|
package/templates/manifest.json
CHANGED