@brainervirus/workit-opencode 0.8.6 → 0.8.7

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/dist/plugin.js +16 -10
  2. package/package.json +2 -2
package/dist/plugin.js CHANGED
@@ -1132,10 +1132,22 @@ function isWorkitPlugin(value) {
1132
1132
  const pkgPath = s.includes("/packages/workit-opencode/") || s.includes("/packages/workit-cursor/") || s.includes("/node_modules/@brainervirus/workit-opencode/") || s.includes("/node_modules/@brainervirus/workit-cursor/");
1133
1133
  return named(s, "workflow-toolkit") || named(s, "workflow-toolkit-opencode") || named(s, "local/workflow-toolkit") || named(s, "workit") || named(s, "local/workit") || named(s, "@brainervirus/workit-opencode") || named(s, "@brainervirus/workit-cursor") || url && pkgPath || s.startsWith("git+file://") && s.includes("workflow-toolkit");
1134
1134
  }
1135
- var CURSOR_RUNTIME_PACKAGE = "@brainervirus/workit-cursor@0.8.5";
1135
+ var CURSOR_RUNTIME_PACKAGE = "@brainervirus/workit-cursor@latest";
1136
+ function cursorMcpServerEntry(_packageDir) {
1137
+ return {
1138
+ command: "npx",
1139
+ args: [
1140
+ "-y",
1141
+ "--prefer-online",
1142
+ `--package=${CURSOR_RUNTIME_PACKAGE}`,
1143
+ "workit-cursor-mcp",
1144
+ "${workspaceFolder}"
1145
+ ]
1146
+ };
1147
+ }
1136
1148
  function cursorHooksEntry(_packageDir) {
1137
1149
  return {
1138
- command: `npx -y --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-session-start`,
1150
+ command: `npx -y --prefer-online --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-session-start`,
1139
1151
  args: []
1140
1152
  };
1141
1153
  }
@@ -1505,12 +1517,9 @@ var registeredCursorLauncher = (res) => {
1505
1517
  return "invalid";
1506
1518
  }
1507
1519
  const executable = path10.basename(command).toLowerCase();
1520
+ const canonical = cursorMcpServerEntry("").args;
1508
1521
  if (executable === "npx" || executable === "npx.exe" || executable === "npx.cmd") {
1509
- if (args[0] !== "-y")
1510
- return "invalid";
1511
- if (args[1] !== `--package=${CURSOR_RUNTIME_PACKAGE}`)
1512
- return "invalid";
1513
- if (args[2] !== "workit-cursor-mcp")
1522
+ if (args.length !== canonical.length || args.some((a, i) => a !== canonical[i]))
1514
1523
  return "invalid";
1515
1524
  return { kind: "npx" };
1516
1525
  }
@@ -5376,9 +5385,6 @@ var resetForSpecDrift = (state) => ({
5376
5385
  var resetForPlanDrift = (state) => ({
5377
5386
  ...state,
5378
5387
  plan: { ...state.plan, status: "draft", evidence: null, approved_digest: null },
5379
- menu: { presented: false, chosen: "", evidence: null },
5380
- execution: { status: "pending", mode: null, evidence: null },
5381
- handoff_destination: false,
5382
5388
  updated_at: Date.now()
5383
5389
  });
5384
5390
  var driftCodeFor = (root2, relPath, storedDigest) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-opencode",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "private": false,
5
5
  "description": "Workit OpenCode plugin (thin wrapper over @brainervirus/workit-core)",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  "typecheck": "tsc --noEmit"
35
35
  },
36
36
  "dependencies": {
37
- "@brainervirus/workit-core": "^0.8.6"
37
+ "@brainervirus/workit-core": "^0.8.7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@opencode-ai/plugin": "1.17.7"