@brainervirus/workit-cursor 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/mcp/run-server.sh +13 -0
  2. package/package.json +1 -1
package/mcp/run-server.sh CHANGED
@@ -3,6 +3,19 @@
3
3
  set -euo pipefail
4
4
 
5
5
  MCP_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
6
+ # Dev mode: the installed copies (plugin/share) ship without the core package
7
+ # (their mcp/ has no package.json, so npm install never installs it). When the
8
+ # live monorepo is present, exec its server so @brainervirus/workit-core
9
+ # resolves through the workspace symlink at the repo root node_modules.
10
+ # Same DEV_DEFAULT convention as sync-runtime.sh.
11
+ DEV_DEFAULT="${HOME}/Documents/projects/personal/workflow-toolkit"
12
+ DEV="${WORKFLOW_TOOLKIT_DEV:-$DEV_DEFAULT}"
13
+ if [ -x "$DEV/packages/workit-cursor/mcp/run-server.sh" ] \
14
+ && [ -e "$DEV/node_modules/@brainervirus/workit-core" ] \
15
+ && [ "$MCP_DIR" != "$DEV/packages/workit-cursor/mcp" ]; then
16
+ exec "$DEV/packages/workit-cursor/mcp/run-server.sh" "$@"
17
+ fi
18
+
6
19
  PLUGIN_DIR="$(CDPATH= cd -- "$MCP_DIR/.." && pwd)"
7
20
  MARKER="${PLUGIN_DIR}/.workflow-toolkit-root"
8
21
  # ponytail: config-stability alias — the installed share keeps the legacy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cursor",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "description": "Workit Cursor plugin: MCP server, hooks, rules, marketplace manifest (thin over @brainervirus/workit-core)",
6
6
  "license": "MIT",