@brainervirus/workit-cursor 8.1.1 → 8.4.0

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.
@@ -2,7 +2,7 @@
2
2
  "name": "workit",
3
3
  "displayName": "Workit",
4
4
  "description": "Adaptive Workit workflow with shared MCP tools and native Cursor hooks",
5
- "version": "8.1.1",
5
+ "version": "8.4.0",
6
6
  "author": {
7
7
  "name": "Cristhofer Pincetti"
8
8
  },
package/README.md CHANGED
@@ -20,11 +20,29 @@ limits: [hosts guide](https://github.com/BrainerVirus/workit/blob/main/docs/guid
20
20
 
21
21
  ## Runtime
22
22
 
23
- The MCP server and hooks run through
23
+ The MCP server runs through
24
24
  `npx -y --prefer-online --min-release-age=0 --package=@brainervirus/workit-cursor@latest …`,
25
- so manifests carry no repository-relative `dist` paths. The age override
26
- works around npm/cli#9765; `workit doctor` enforces this exact shape. MCP is
27
- read-only for unattested callers; mutations run through the `workit` CLI.
25
+ so manifests carry no repository-relative `dist` paths (the age override works
26
+ around npm/cli#9765). MCP is read-only for unattested callers; mutations run
27
+ through the `workit` CLI.
28
+
29
+ Hooks run through `node "${CURSOR_PLUGIN_ROOT}/hooks/launch.mjs" <bin>`, which
30
+ picks the plugin's bundled `dist/` hook, else a global `workit-cursor-hook` on
31
+ `PATH`, else `npx -y --prefer-offline` pinned to the plugin's own version. It
32
+ never resolves `@latest` at hook time. Hooks are registered with
33
+ `failClosed: false` and the launcher fails open: offline, a crash or a timeout
34
+ lets the action through with a `[workit] Cursor hook unavailable` line on
35
+ stderr, while the hook's own denials (exit 2) still block. A window with no
36
+ folder open, or a payload without a conversation id, is allowed with a note.
37
+ A local install (`workit init`, `install-cursor-plugin.sh`) writes the
38
+ launcher's absolute path into every event, so only a Marketplace install
39
+ relies on Cursor expanding `${CURSOR_PLUGIN_ROOT}`. On Windows the npx and
40
+ global-bin fallbacks run their `.cmd` shims through `cmd.exe`.
41
+ `workit doctor` reports the launcher mode (`local` with the runtime's version,
42
+ `npx-pinned`, `missing` or `stale`) and the latency of one no-op hook. It
43
+ also warns when Cursor started the Workit MCP server but no hook has run
44
+ since: the launcher stamps `cursor-hook-last-run` and the MCP server stamps
45
+ `cursor-session-last-start` in Workit's state directory.
28
46
  The `preToolUse` hook applies the [before-write gate](https://github.com/BrainerVirus/workit/blob/main/docs/guides/verification.md)
29
47
  to write tools while the branch task has an open product choice or needs a
30
48
  plan.