@brainervirus/workit-cli 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/index.js +11 -11
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -43026,16 +43026,22 @@ function mergeCursorMcp(mcp, serverName, server) {
43026
43026
  base2.mcpServers = servers;
43027
43027
  return { config: base2, changed };
43028
43028
  }
43029
- var CURSOR_RUNTIME_PACKAGE = "@brainervirus/workit-cursor@0.8.5";
43029
+ var CURSOR_RUNTIME_PACKAGE = "@brainervirus/workit-cursor@latest";
43030
43030
  function cursorMcpServerEntry(_packageDir) {
43031
43031
  return {
43032
43032
  command: "npx",
43033
- args: ["-y", `--package=${CURSOR_RUNTIME_PACKAGE}`, "workit-cursor-mcp", "${workspaceFolder}"]
43033
+ args: [
43034
+ "-y",
43035
+ "--prefer-online",
43036
+ `--package=${CURSOR_RUNTIME_PACKAGE}`,
43037
+ "workit-cursor-mcp",
43038
+ "${workspaceFolder}"
43039
+ ]
43034
43040
  };
43035
43041
  }
43036
43042
  function cursorHooksEntry(_packageDir) {
43037
43043
  return {
43038
- command: `npx -y --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-session-start`,
43044
+ command: `npx -y --prefer-online --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-session-start`,
43039
43045
  args: []
43040
43046
  };
43041
43047
  }
@@ -43405,12 +43411,9 @@ var registeredCursorLauncher = (res) => {
43405
43411
  return "invalid";
43406
43412
  }
43407
43413
  const executable = path9.basename(command).toLowerCase();
43414
+ const canonical = cursorMcpServerEntry("").args;
43408
43415
  if (executable === "npx" || executable === "npx.exe" || executable === "npx.cmd") {
43409
- if (args[0] !== "-y")
43410
- return "invalid";
43411
- if (args[1] !== `--package=${CURSOR_RUNTIME_PACKAGE}`)
43412
- return "invalid";
43413
- if (args[2] !== "workit-cursor-mcp")
43416
+ if (args.length !== canonical.length || args.some((a, i) => a !== canonical[i]))
43414
43417
  return "invalid";
43415
43418
  return { kind: "npx" };
43416
43419
  }
@@ -47504,9 +47507,6 @@ var resetForSpecDrift = (state) => ({
47504
47507
  var resetForPlanDrift = (state) => ({
47505
47508
  ...state,
47506
47509
  plan: { ...state.plan, status: "draft", evidence: null, approved_digest: null },
47507
- menu: { presented: false, chosen: "", evidence: null },
47508
- execution: { status: "pending", mode: null, evidence: null },
47509
- handoff_destination: false,
47510
47510
  updated_at: Date.now()
47511
47511
  });
47512
47512
  var driftCodeFor = (root, relPath, storedDigest) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cli",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "private": false,
5
5
  "description": "Workit interactive setup wizard (Ink TUI)",
6
6
  "keywords": [
@@ -34,9 +34,9 @@
34
34
  "typecheck": "tsc --noEmit"
35
35
  },
36
36
  "dependencies": {
37
- "@brainervirus/workit-core": "^0.8.6",
38
- "@brainervirus/workit-cursor": "^0.8.6",
39
- "@brainervirus/workit-opencode": "^0.8.6",
37
+ "@brainervirus/workit-core": "^0.8.7",
38
+ "@brainervirus/workit-cursor": "^0.8.7",
39
+ "@brainervirus/workit-opencode": "^0.8.7",
40
40
  "@inkjs/ui": "2.0.0",
41
41
  "ink": "7.1.1",
42
42
  "react": "19.2.8"