commit 97c1bf86b06876433d598b65b121d7c88a40b49b Author: Zhongwei Li Date: Sun Nov 30 09:07:08 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..42d8b4e --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "sgrep", + "description": "Smart semantic + hybrid code search for local repositories", + "version": "0.1.0", + "author": { + "name": "Xiao Cui" + }, + "hooks": [ + "./hooks/hook.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..13998ee --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# sgrep + +Smart semantic + hybrid code search for local repositories diff --git a/hooks/hook.json b/hooks/hook.json new file mode 100644 index 0000000..dae4283 --- /dev/null +++ b/hooks/hook.json @@ -0,0 +1,27 @@ +{ + "hooks": { + "SessionStart": [ + { + "matcher": "startup|resume", + "hooks": [ + { + "type": "command", + "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/sgrep_start.sh", + "timeout": 30 + } + ] + } + ], + "SessionEnd": [ + { + "hooks": [ + { + "type": "command", + "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/sgrep_stop.sh", + "timeout": 10 + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..54a544c --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:XiaoConstantine/sgrep:plugins/sgrep", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "e0b434d060ff4a3e22fa0d50937f1ce78df8e113", + "treeHash": "15ad6a599a2e1aab65ee6054266a569c319dbe491fd1cfb8543fb9c2fa75112b", + "generatedAt": "2025-11-28T10:12:58.475371Z", + "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": "sgrep", + "description": "Smart semantic + hybrid code search for local repositories", + "version": "0.1.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "dcdbc3f4fe2c8aa45ebbb7cd5d2efa0f60b885420c47d5ecd29e932016ab0f85" + }, + { + "path": "hooks/hook.json", + "sha256": "179cef66c9150d6813085a374bee3af80f2cefe13684ca6449fa0ad833045dec" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "3fbe6835c5ab43588d7b47a4051fb69bd48ea13d1ad1e2d1fffb122785eb4d7f" + } + ], + "dirSha256": "15ad6a599a2e1aab65ee6054266a569c319dbe491fd1cfb8543fb9c2fa75112b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file