summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/hooks
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-25 11:29:00 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-25 11:29:00 -0700
commit363af43603ecdb1bdbed7303764b6daeeec7c37f (patch)
treef4070c6df279ab2bdc320b5611a6cd7eb9b25703 /plugins/code-modernization/hooks
parent28abd83ad92c24a4107803bd03e510387f2014c2 (diff)
code-modernization: version 1.0.0, usage counts and a README results table
The plugin now has a version and a changelog. Two hooks record whole-number usage counts (which command ran, how far a system got, how many rules and proofs) through the CLI's own telemetry: counts from 100 up are rounded, nothing is sent when the plugin is not in use, and any of three switches turns it off. The README documents every key and lists what the plugin was tried on, checked against the run files.
Diffstat (limited to 'plugins/code-modernization/hooks')
-rw-r--r--plugins/code-modernization/hooks/hooks.json32
1 files changed, 30 insertions, 2 deletions
diff --git a/plugins/code-modernization/hooks/hooks.json b/plugins/code-modernization/hooks/hooks.json
index 7e99b4e0..6ac35230 100644
--- a/plugins/code-modernization/hooks/hooks.json
+++ b/plugins/code-modernization/hooks/hooks.json
@@ -1,4 +1,32 @@
{
- "description": "The modernization pane and estate map, x-ray reads, the rule review deck, the sign-off dialog and the fleet view",
- "modules": ["./register.ts"]
+ "description": "The modernization pane and estate map, x-ray reads, the rule review deck, the sign-off dialog and the fleet view, and usage counts (whole numbers only, see the README)",
+ "hooks": {
+ "UserPromptSubmit": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "command": "sh \"${CLAUDE_PLUGIN_ROOT}/scripts/telemetry.sh\" command",
+ "timeout": 10,
+ "asyncRewake": true
+ }
+ ]
+ }
+ ],
+ "Stop": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "command": "sh \"${CLAUDE_PLUGIN_ROOT}/scripts/telemetry.sh\" state",
+ "timeout": 10,
+ "asyncRewake": true
+ }
+ ]
+ }
+ ]
+ },
+ "modules": [
+ "./register.ts"
+ ]
}