From 5d2339790dbbb7bdcce22e22c5ff004de6239ffc Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 09:05:17 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/hooks/hooks.json | 88 +++++++++++++++++++++++++++++++++ .claude-plugin/plugin.json | 19 +++++++ README.md | 3 ++ plugin.lock.json | 45 +++++++++++++++++ 4 files changed, 155 insertions(+) create mode 100644 .claude-plugin/hooks/hooks.json create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/hooks/hooks.json b/.claude-plugin/hooks/hooks.json new file mode 100644 index 0000000..42eadef --- /dev/null +++ b/.claude-plugin/hooks/hooks.json @@ -0,0 +1,88 @@ +{ + "hooks": { + "SessionStart": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/session-start.sh", + "timeout": 5 + } + ] + } + ], + "SessionEnd": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/session-end.sh", + "timeout": 5 + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/activity.sh", + "timeout": 2 + } + ] + } + ], + "UserPromptSubmit": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/activity.sh", + "timeout": 2 + } + ] + } + ], + "Stop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/activity.sh", + "timeout": 2 + } + ] + } + ], + "SubagentStop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/activity.sh", + "timeout": 2 + } + ] + } + ], + "Notification": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/activity.sh", + "timeout": 2 + } + ] + } + ] + } +} diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..1178ccf --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,19 @@ +{ + "name": "agent-tracker", + "description": "Tracks Claude Code sessions and displays them in a TUI dashboard", + "version": "1.0.0", + "author": { + "name": "Agent Tracker Team" + }, + "hooks": [ + "./.claude-plugin/hooks/hooks.json" + ], + "mcp": { + "agent-tracker": { + "command": "node", + "args": [ + "${CLAUDE_PLUGIN_ROOT}/mcp/dist/index.js" + ] + } + } +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..395ef6b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# agent-tracker + +Tracks Claude Code sessions and displays them in a TUI dashboard diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..dbbd195 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:wakeless/agent-tracker:", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "91bdcf53ffb8dea241bbbb35a0ac455ed504c075", + "treeHash": "339d78720ede27aca68e06a68b30c068f1ac0d607df058a2c3c4ceca54aa6bf8", + "generatedAt": "2025-11-28T10:28:58.179939Z", + "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": "agent-tracker", + "description": "Tracks Claude Code sessions and displays them in a TUI dashboard", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "f5b32684b76f6b28a7435847e9d990307d58cd967e704c60a165871e7b858c4a" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "6d3f2718ca0da6961d068f58ec5e7ae913bb09c05cd059493b041f1e90eec2e2" + }, + { + "path": ".claude-plugin/hooks/hooks.json", + "sha256": "6b275ad9daeb333f7f7a394a590d744728e9d3db2875ae256fe850f62d5488a9" + } + ], + "dirSha256": "339d78720ede27aca68e06a68b30c068f1ac0d607df058a2c3c4ceca54aa6bf8" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file