From 363af43603ecdb1bdbed7303764b6daeeec7c37f Mon Sep 17 00:00:00 2001 From: Morgan Lunt Date: Fri, 25 Sep 2026 11:29:00 -0700 Subject: 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. --- plugins/code-modernization/hooks/hooks.json | 32 +++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'plugins/code-modernization/hooks') 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" + ] } -- cgit