-
Notifications
You must be signed in to change notification settings - Fork 1
feat(plugin): add Claude Code plugin v0.1.0 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dvcdsys
wants to merge
9
commits into
main
Choose a base branch
from
feat/claude-code-plugin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
97881a7
feat(plugin): add Claude Code plugin v0.1.0
dvcdsys 7d63c08
fix(plugin): use cix status (authoritative) for indexed-project detec…
dvcdsys 770103c
fix(plugin): strict cache contract + persistent storage in $CLAUDE_PL…
dvcdsys f293caf
feat(plugin): add SessionEnd hook to clean per-session cache files
dvcdsys 8f347e5
feat(plugin): add CwdChanged + PostCompact hooks, per-(session, dir) …
dvcdsys 7f70547
test(plugin): add bats-core test suite + GitHub Actions CI + path guards
dvcdsys 30d79cf
fix(plugin): drop path whitelist guards — rely on file-level filters …
dvcdsys 86a1dc8
fix(plugin-ci): explicit minimum permissions on plugin tests workflow
dvcdsys 74816e7
chore(server): bump go to 1.25.10 to clear two stdlib vulnerabilities
dvcdsys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/claude-code-marketplace.json", | ||
| "name": "code-index", | ||
| "owner": { | ||
| "name": "dvcdsys", | ||
| "email": "dvcdsys@gmail.com" | ||
| }, | ||
| "description": "Marketplace for cix — semantic code search and navigation tooling for Claude Code", | ||
| "plugins": [ | ||
| { | ||
| "name": "cix", | ||
| "source": "./plugins/cix", | ||
| "description": "Semantic code search and navigation. Bundles the cix CLI and nudges Claude to prefer cix over Grep for semantic queries.", | ||
| "author": { | ||
| "name": "dvcdsys" | ||
| }, | ||
| "homepage": "https://github.com/dvcdsys/code-index", | ||
| "repository": "https://github.com/dvcdsys/code-index", | ||
| "license": "MIT", | ||
| "keywords": ["search", "code-search", "semantic", "navigation", "indexing", "embeddings"], | ||
| "category": "developer-tools", | ||
| "tags": ["search", "indexing", "ai", "embeddings"] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: Plugin Tests | ||
|
|
||
| # Trigger only when plugin files change — server/CLI/dashboard work | ||
| # is unaffected and shouldn't run plugin tests. | ||
| on: | ||
| push: | ||
| branches: [main, 'feat/*', 'fix/*'] | ||
| paths: | ||
| - 'plugins/cix/**' | ||
| - '.claude-plugin/**' | ||
| - '.github/workflows/ci-plugin.yml' | ||
| pull_request: | ||
| paths: | ||
| - 'plugins/cix/**' | ||
| - '.claude-plugin/**' | ||
| - '.github/workflows/ci-plugin.yml' | ||
|
|
||
| # Minimum permissions required by the workflow (CodeQL workflow-permissions advisory). | ||
| # Read-only on repo contents is enough — we don't push code, comments, or releases. | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: bats + shellcheck on ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install bats, jq, shellcheck (Linux) | ||
| if: runner.os == 'Linux' | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y bats jq shellcheck | ||
|
|
||
| - name: Install bats, jq, shellcheck (macOS) | ||
| if: runner.os == 'macOS' | ||
| run: | | ||
| brew install bats-core jq shellcheck | ||
|
|
||
| - name: Verify bats version | ||
| run: bats --version | ||
|
|
||
| - name: Run bats test suites | ||
| run: bats --tap plugins/cix/tests/*.bats | ||
|
|
||
| - name: ShellCheck on hook scripts | ||
| run: | | ||
| # `--severity=warning` filters out style nags; `-x` follows | ||
| # sourced files (we don't source any in v0.1, but defensive). | ||
| shellcheck --severity=warning plugins/cix/scripts/*.sh | ||
|
|
||
| - name: Validate JSON manifests with jq | ||
| run: | | ||
| jq . .claude-plugin/marketplace.json | ||
| jq . plugins/cix/.claude-plugin/plugin.json | ||
| jq . plugins/cix/hooks/hooks.json | ||
|
|
||
| - name: Verify symlink integrity | ||
| run: | | ||
| # The bin/cix symlink MUST point at scripts/cix-wrapper.sh. | ||
| if [[ ! -L plugins/cix/bin/cix ]]; then | ||
| echo "::error::plugins/cix/bin/cix is not a symlink" | ||
| exit 1 | ||
| fi | ||
| target=$(readlink plugins/cix/bin/cix) | ||
| if [[ "$target" != "../scripts/cix-wrapper.sh" ]]; then | ||
| echo "::error::bin/cix points to '$target' (expected '../scripts/cix-wrapper.sh')" | ||
| exit 1 | ||
| fi | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.