From fac28cc151f868272fb567f12db0217c13878139 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:22:38 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 11 ++++++++++ README.md | 3 +++ hooks/hooks.json | 40 +++++++++++++++++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 hooks/hooks.json create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..3e15531 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "vitest-4", + "description": "Vitest 4.x patterns and config", + "version": "1.0.0", + "author": { + "name": "Claude Code Plugin Marketplace" + }, + "hooks": [ + "./hooks/hooks.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d65654a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# vitest-4 + +Vitest 4.x patterns and config diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..f33b2bb --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,40 @@ +{ + "hooks": { + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/init-session.sh" + } + ] + } + ], + "PreToolUse": [ + { + "matcher": "Read|Write|Edit", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/recommend-skills.sh" + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "Write|Edit", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-vitest-config.sh" + }, + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-vitest-tests.sh" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..138b3e0 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:djankies/claude-configs:vitest-4", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "d3f10831e9031ef15ba936ffacc497ecc6216522", + "treeHash": "8bcbe422fb1ce8b51b2511c31d490a32e0748154eeeb3aa75f8e164906256b4b", + "generatedAt": "2025-11-28T10:16:30.772001Z", + "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": "vitest-4", + "description": "Vitest 4.x patterns and config", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "afa0d96dce502b77f63d74f456435486c45224d99b8c381766399aa4ec20e426" + }, + { + "path": "hooks/hooks.json", + "sha256": "b2e51ef76ebe2b3597d8a2bf1ff3868e60e33f4593aafefdcd79007170816a49" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "66f6c7c4c9a9dcd72d5c2207afb47ce6f4ba2ff2ecc2bfecdc115fa52fc4072b" + } + ], + "dirSha256": "8bcbe422fb1ce8b51b2511c31d490a32e0748154eeeb3aa75f8e164906256b4b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file