commit 08929b5647570b69a3b9492e555b7d78bfcb73a9 Author: Zhongwei Li Date: Sun Nov 30 08:58:33 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..b9e9667 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "metrics", + "description": "Anonymous metrics usage for ai-helpers", + "version": "0.0.1", + "author": { + "name": "openshift" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..27970ee --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# metrics + +Anonymous metrics usage for ai-helpers diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..129cfd1 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,39 @@ +{ + "description": "Anonymous Usage Metric Collection", + "hooks": { + "UserPromptSubmit": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/send_metrics.py --verbose", + "timeout": 30 + } + ] + } + ], + "PreToolUse": [ + { + "matcher": "Skill", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/send_metrics.py --verbose", + "timeout": 30 + } + ] + } + ], + "SessionEnd": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/send_session_metrics.py --verbose", + "timeout": 30 + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..b7ec67a --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:stbenjam/metrics-temp:plugins/metrics", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "cc2bc69266cdb034edb7aa84a1a6456cda0631bd", + "treeHash": "951afee45677b6cf45e58dd04b202fca1c138dac784e5d0749cb26fecae1f06c", + "generatedAt": "2025-11-28T10:28:27.731343Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "metrics", + "description": "Anonymous metrics usage for ai-helpers", + "version": "0.0.1" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "2345a0b32f58d417a6def0661a28e2eb06947d59bf2c0805eeced5a43fc8dd8c" + }, + { + "path": "hooks/hooks.json", + "sha256": "e22d4e38e8be25f60d9a2e3851e687209195c062b8c4e5ce84c9f8817db9abf1" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "79e6818d577c4bffec3f00b33b24c8d1663d75bd5344902f551f06ad435aa2cf" + } + ], + "dirSha256": "951afee45677b6cf45e58dd04b202fca1c138dac784e5d0749cb26fecae1f06c" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file