@brainervirus/workit-cursor 5.0.0 → 6.0.1

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": "5.0.0",
5
+ "version": "6.0.1",
6
6
  "author": {
7
7
  "name": "Cristhofer Pincetti"
8
8
  },
package/README.md CHANGED
@@ -1,110 +1,36 @@
1
1
  # @brainervirus/workit-cursor
2
2
 
3
3
  [![CI](https://github.com/BrainerVirus/workit/actions/workflows/ci.yml/badge.svg)](https://github.com/BrainerVirus/workit/actions/workflows/ci.yml)
4
- [![npm version](https://img.shields.io/npm/v/@brainervirus/workit-cursor.svg)](https://www.npmjs.com/package/@brainervirus/workit-cursor)
5
- [![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](../../LICENSE)
4
+ [![npm](https://img.shields.io/npm/v/@brainervirus/workit-cursor.svg)](https://www.npmjs.com/package/@brainervirus/workit-cursor)
5
+ [![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/BrainerVirus/workit/blob/main/LICENSE)
6
6
 
7
- Cursor plugin for workit — shared MCP tools, documented native hooks, compact continuity, and adaptive method skills.
7
+ [Workit](https://github.com/BrainerVirus/workit) for Cursor: the shared MCP server, one native hook
8
+ dispatcher, the `workit-contract` rule, the eleven method skills and `/wk-*`
9
+ commands. Requires Node.js 24+ and network access on first run.
8
10
 
9
11
  ## Install
10
12
 
11
- **Wizard (recommended)** — configures Cursor and/or OpenCode and installs the platform packages:
12
-
13
13
  ```bash
14
- npx @brainervirus/workit-cli init
14
+ npx @brainervirus/workit-cli init # select Cursor
15
15
  ```
16
16
 
17
- **npm (package)** — the package is published as `@brainervirus/workit-cursor`; its `.cursor-plugin/plugin.json` identifies the plugin as `workit` (display name `Workit`) and registers its MCP server, hook, rules, and skills. A local (non-npm) install lives at `~/.cursor/plugins/local/workit` and writes `enabled_plugins.workit = true`; the installer migrates exact legacy `workflow-toolkit` entries only after the replacement succeeds.
18
-
19
- **Marketplace** — see [Marketplace](#marketplace).
20
-
21
- **Manual** — add the MCP server to `.cursor/mcp.json`:
22
-
23
- ```json
24
- {
25
- "mcpServers": {
26
- "workit": {
27
- "command": "npx",
28
- "args": [
29
- "-y",
30
- "--prefer-online",
31
- "--min-release-age=0",
32
- "--package=@brainervirus/workit-cursor@latest",
33
- "workit-cursor-mcp",
34
- "${workspaceFolder}"
35
- ]
36
- }
37
- }
38
- }
39
- ```
40
-
41
- ### Requirements
42
-
43
- - **Node.js ≥ 24** — the MCP server and session-start hook are self-contained Node bundles invoked through `npx`.
44
- - **Network** — `npx -y --prefer-online --min-release-age=0 …@latest` resolves and downloads the package on first run in each environment; a machine that cannot reach the npm registry cannot start the MCP server or hook (see [Runtime](#runtime)).
45
-
46
- ## What it provides
47
-
48
- - MCP server exposing exactly the eight shared operation families: `workit_task`, `workit_policy`, `workit_evidence`, `workit_finding`, `workit_decision`, `workit_worker`, `workit_writer`, and `workit_state`.
49
- - One bounded native hook executable for session context, recognized product-write and shell interception, and native subagent lifecycle observations.
50
- - Eleven canonical `workit-*` method skills and the `workit-contract` rule.
51
-
52
- ## Host limitations
53
-
54
- Cursor maps shared Workit operations through the shared MCP transport. AskQuestion remains policy-only (`agent_guided`), session start and compaction are non-blocking, and arbitrary shell writes, Tab edits, and exact subagent stop identity are unavailable. Known Write/Edit/Delete targets are enforced only when the documented Cursor hook inputs prove them. Native subagent delegation is read-only for reviewer/investigator assignments; implementer delegation is unavailable because Cursor exposes no attested writer identity or stable child-stop identity.
55
-
56
- ## Configuration
57
-
58
- - Plugin metadata: `packages/workit-cursor/.cursor-plugin/plugin.json` (`name: "workit"`, `displayName: "Workit"`).
59
- - MCP server: `mcp.json`.
60
- - Session-start hook: `hooks/hooks-cursor.json`.
61
- - Rule: `rules/workit-contract.mdc`.
62
- - Skills: `skills/` (eleven canonical Workit methods).
17
+ The wizard copies the plugin into `~/.cursor/plugins/local/workit` (a real
18
+ directory) and registers the MCP server and hooks. Manual MCP config and host
19
+ limits: [hosts guide](https://github.com/BrainerVirus/workit/blob/main/docs/guides/hosts.md#cursor).
63
20
 
64
21
  ## Runtime
65
22
 
66
- Cursor launches the MCP server and session-start hook through `npx`, so the shipped manifests contain no repository-relative `dist` paths:
67
-
68
- - **MCP server** — `npx -y --prefer-online --min-release-age=0 --package=@brainervirus/workit-cursor@latest workit-cursor-mcp ${workspaceFolder}`. It speaks the MCP stdio protocol; `stdout` is reserved for protocol messages and diagnostics go to `stderr`.
69
- - **Session-start hook** — `npx -y --prefer-online --min-release-age=0 --package=@brainervirus/workit-cursor@latest workit-cursor-session-start`. It emits valid hook output and a diagnostic on runtime failure, and remains fail-open where Cursor's hook contract requires startup continuity.
70
- - `npx` startup or network failure is surfaced by Cursor as an MCP/hook startup failure; Workit never silently substitutes stale local runtime code.
71
-
72
- The runtime runs from `@latest` with `--prefer-online` and `--min-release-age=0`: Cursor reviews plugin metadata from Git, while npm serves the runtime. The explicit age override works around npm/cli#9765, where `npx` ignores a matching scoped exclusion. See [Update review](#update-review).
73
-
74
- ## Capability boundaries
75
-
76
- - Authority-sensitive MCP mutations require an attested caller. A standalone or ordinary Cursor launch stays usable for read-only inspection and reports `capability_unavailable` for authority mutations.
77
- - Native hook enforcement is limited to documented inputs and blocking behavior. The plugin does not claim a `beforeMCPExecution` hook, cross-process receipts, delegation tokens, or automatic compaction restoration.
78
-
79
- ## Plugin layout
80
-
81
- | Path | Contents |
82
- | ----------------------------- | ------------------------------------------------------------- |
83
- | `mcp/` + `dist/mcp-server.js` | MCP server entry (built). |
84
- | `hooks/` | session-start hook manifest. |
85
- | `rules/workit-contract.mdc` | Adaptive task contract and truthful Cursor capability limits. |
86
- | `skills/` | Eleven canonical adaptive Workit method skills. |
87
- | `.cursor-plugin/plugin.json` | authoritative plugin manifest. |
88
-
89
- ## Package scripts
90
-
91
- ```bash
92
- bun run build # bundle MCP + native hook entries and copy eleven method skills
93
- ```
94
-
95
- From the repository root, `bun run validate:cursor-marketplace` validates the tracked Marketplace artifact against the official Cursor JSON schemas and clean-checkout invariants (component paths, frontmatter, logo, sanitized vendor parity, no ignored-`dist` runtime references).
23
+ The MCP server and hooks run through
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.
96
28
 
97
29
  ## Marketplace
98
30
 
99
- The repository root carries `.cursor-plugin/marketplace.json`, indexing `packages/workit-cursor` (plugin `workit` / `Workit`). Cursor installs Marketplace plugins from Git and does not build the repository, so all declared skills, rules, and assets are tracked and validated in CI — the runtime is launched from npm as described in [Runtime](#runtime).
100
-
101
- - **Installing from Marketplace** — a Marketplace admin adds the repository URL through Cursor's authenticated publisher flow; end users then install the plugin from the Cursor Marketplace UI, which reads `.cursor-plugin/plugin.json` and the tracked components directly from Git.
102
- - **Submission** — Marketplace submission is a separate, later authenticated action at `https://cursor.com/marketplace/publish`. It is **not** performed here and no publication or acceptance is claimed; the repository is kept validated and submission-ready.
103
- - **Update review** — Git plugin metadata (manifest, rules, skills, assets) is reviewed by Cursor on Marketplace updates, while the npm runtime runs from `@latest` with `--prefer-online` and the npm/cli#9765 `--min-release-age=0` workaround. The selector is shared across `mcp.json` and `hooks-cursor.json`.
104
- An MCP or hook startup failure with no network is an `npx`/registry reachability
105
- issue; inspect the host's startup diagnostics and retry after connectivity is
106
- restored.
107
-
108
- ## Docs
109
-
110
- Full usage: https://github.com/BrainerVirus/workit#readme
31
+ The repository root carries `.cursor-plugin/marketplace.json` indexing this
32
+ package. Cursor installs Marketplace plugins from git without building, so
33
+ `skills/`, `commands/`, `rules/` and assets are committed; regenerate skills
34
+ with `bun packages/workit-cursor/scripts/build.ts --skills-only`.
35
+ `bun run validate:cursor-marketplace` checks the artifact against the pinned
36
+ Cursor schemas. The plugin is submission-ready but not published there.
@@ -2,9 +2,10 @@
2
2
 
3
3
  Workit keeps one accountable lead and one shared task state. Inspect current
4
4
  task state before acting; use only the shared operations for task, policy,
5
- evidence, finding, decision, worker, writer, and state changes. Authority is
5
+ evidence, finding, decision, worker, and state changes. Authority is
6
6
  bounded by the requested scope, current revision, caller/session provenance, and
7
- observed capabilities. Never claim host enforcement or evidence that the host
7
+ observed capabilities; delivery is bounded by the workspace autonomy grants
8
+ (`workit grant show`). Never claim host enforcement or evidence that the host
8
9
  cannot provide. Preserve unresolved requirements, gaps, and uncertain workers.
9
10
 
10
11
  Focused methods are loaded only when the resolved policy requires them. A method