@brainervirus/workit-cursor 8.3.0 → 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.
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +22 -4
- package/dist/cursor-session-start.js +3197 -2517
- package/dist/mcp-server.js +3117 -2655
- package/dist/workit-hook.js +3251 -2547
- package/hooks/hooks-cursor.json +11 -9
- package/hooks/launch-runtime.mjs +248 -0
- package/hooks/launch.mjs +68 -0
- package/package.json +6 -4
- package/skills/workit-implement/SKILL.md +3 -3
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
|
|
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
|
|
26
|
-
|
|
27
|
-
|
|
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.
|