refactor(plugin): drop Cursor, bundle deps, rename /analyze to /bp-analyze#168
Merged
onlycastle merged 7 commits intomainfrom Mar 19, 2026
Merged
Conversation
Remove all Cursor-related session counting code (Cursor chats directory, Cursor Composer DB access, better-sqlite3 direct import). countLocalSessions() is replaced by countClaudeSessions() as BetterPrompt only supports Claude Code. Also simplify state mutation functions to let normalizeState() handle derived boolean fields instead of setting them redundantly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change bundling strategy: @modelcontextprotocol/sdk and zod are now bundled into the plugin output (noExternal). Only better-sqlite3 remains external as a native addon. Add ensureNativeDeps() to session-start hook that installs better-sqlite3 into CLAUDE_PLUGIN_DATA/node_modules on first session. Set NODE_PATH in .mcp.json so the MCP server resolves the native module at runtime. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rebuild plugin output reflecting both the Cursor support removal and the new bundling strategy. MCP SDK and zod are now inlined into server.js, reducing external runtime dependencies to only better-sqlite3. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
Author
Code ReviewNo issues found. ✅ 6 potential findings were evaluated across 5 review dimensions (CLAUDE.md compliance, bug scan, git history, previous PR feedback, code comments). All scored below the actionable threshold:
Generated with Claude Code If useful, react with a thumbs-up. Otherwise, thumbs-down. |
Add namespace prefix to avoid conflicts with other plugins that may register an /analyze command. Update all internal references in background-analyzer deprecation message and hook-utils pending context. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update README with /bp-analyze command and add available commands table. Update agent docs, human docs, onboarding plans and specs to use the new namespaced skill name consistently. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
Author
Code Review (commits 4-7: /bp-analyze rename)No issues found. ✅ Mechanical string rename from All 430 tests pass after the update. Generated with Claude Code If useful, react with a thumbs-up. Otherwise, thumbs-down. |
onlycastle
added a commit
that referenced
this pull request
Mar 20, 2026
Cursor support was dropped in PR #168 but the supported tools table and scan_sessions description still referenced it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 tasks
onlycastle
added a commit
that referenced
this pull request
Mar 20, 2026
* docs: update remaining plugin commands to slash command syntax Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: remove stale Cursor references from README Cursor support was dropped in PR #168 but the supported tools table and scan_sessions description still referenced it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
debounce.ts— BetterPrompt only supports Claude Code sessions@modelcontextprotocol/sdkandzodbundled into plugin output via tsupnoExternal, eliminating runtimenode_modulesdependencyensureNativeDeps()in session-start hook installsbetter-sqlite3intoCLAUDE_PLUGIN_DATA/node_moduleson first sessionChanges
refactor(plugin): drop Cursor support, use Claude-only session countingfeat(plugin): bundle non-native deps, auto-install better-sqlite3chore(plugin): rebuild dist with bundled deps and Cursor removalrefactor(plugin): rename /analyze skill to /bp-analyzedocs: update all references from /analyze to /bp-analyzechore(plugin): rebuild dist with /bp-analyze skill renametest(plugin): update test assertions for /bp-analyze renameCode Simplification
debounce.tssimplified to letnormalizeState()handle derived boolean fieldsTest Plan
npx tsc --noEmit)npm test)better-sqlite3auto-installs/bp-analyzeand verify pipeline completesGenerated with Claude Code using /ship-it