@brainervirus/workit-core 0.5.4 → 0.5.6

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/README.md CHANGED
@@ -4,10 +4,10 @@ Multi-platform Superpowers workflow plugin for **Cursor** and **OpenCode**: veri
4
4
 
5
5
  | Platform | Path | Version |
6
6
  | --- | --- | --- |
7
- | **OpenCode** | `packages/workit-opencode/src/plugin.ts` | 0.4.0 |
8
- | **Cursor** | `packages/workit-cursor/` (MCP + hooks + rules + skills) | 0.4.0 |
9
- | **Shared core** | `packages/workit-core/` (src, skills, commands, scripts, templates) | 0.4.0 |
10
- | **CLI** | `packages/workit-cli/` (Ink wizard, bin `workit`) | 0.4.0 |
7
+ | **OpenCode** | `packages/workit-opencode/src/plugin.ts` | ![npm](https://img.shields.io/npm/v/@brainervirus/workit-opencode) |
8
+ | **Cursor** | `packages/workit-cursor/` (MCP + hooks + rules + skills) | ![npm](https://img.shields.io/npm/v/@brainervirus/workit-cursor) |
9
+ | **Shared core** | `packages/workit-core/` (src, skills, commands, scripts, templates) | ![npm](https://img.shields.io/npm/v/@brainervirus/workit-core) |
10
+ | **CLI** | `packages/workit-cli/` (Ink wizard, bin `workit`) | ![npm](https://img.shields.io/npm/v/@brainervirus/workit-cli) |
11
11
 
12
12
  Config directory (both platforms): `~/.config/workflow-toolkit/` (kept as-is for install stability).
13
13
 
@@ -26,7 +26,7 @@ npm i @brainervirus/workit-core # shared core (skills, commands, scripts)
26
26
  npm i @brainervirus/workit-opencode # OpenCode plugin (thin over the core)
27
27
  npm i @brainervirus/workit-cursor # Cursor plugin (MCP + hooks + rules)
28
28
  npm i @brainervirus/workit-cli # interactive wizard
29
- npx workit init
29
+ npx @brainervirus/workit-cli init
30
30
  ```
31
31
 
32
32
  **Local development** — use the repo path instead; no package cache, disk is the source of truth:
@@ -39,7 +39,7 @@ bun i
39
39
 
40
40
  ## Usage
41
41
 
42
- Manual setup for those who skipped the wizard (`npx workit init`):
42
+ Manual setup for those who skipped the wizard (`npx @brainervirus/workit-cli init`):
43
43
 
44
44
  **OpenCode** — reference the plugin entry in `opencode.json` / `opencode.jsonc` (`~/.config/opencode/opencode.json`):
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-core",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "private": false,
5
5
  "description": "Workit — workflow rails for agentic coding: specs, plans, YouTrack, CI-gated commits (shared core)",
6
6
  "license": "MIT",
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env bun
2
- // Rewrite workspace:* core deps to ^<released version> in the platform packages
3
- // before publish: neither npm nor bun rewrites the protocol, so a packed tarball
4
- // with workspace:* silently drops the core dependency. Runs as semantic-release
5
- // prepareCmd (after the version bumps, before the npm publish phase).
2
+ // Release-sync before publish: rewrite workspace:* core deps to ^<released
3
+ // version> in the platform packages, and mirror the core version + canonical
4
+ // URLs into the cursor plugin/marketplace manifests. Neither npm nor bun
5
+ // rewrites workspace:*, so a packed tarball with it silently drops the core
6
+ // dependency. Runs as semantic-release prepareCmd (after the version bumps,
7
+ // before the npm publish phase); the writes stay in CI and never reach the
8
+ // repo (semantic-release does not commit back).
6
9
  import { readFileSync, writeFileSync } from "node:fs";
7
10
  import { resolve } from "node:path";
8
11
 
@@ -15,3 +18,13 @@ for (const pkg of ["workit-opencode", "workit-cursor", "workit-cli"]) {
15
18
  data.dependencies["@brainervirus/workit-core"] = `^${core.version}`;
16
19
  writeFileSync(file, `${JSON.stringify(data, null, 2)}\n`);
17
20
  }
21
+ for (const file of [
22
+ resolve(root, "packages/workit-cursor/.cursor-plugin/plugin.json"),
23
+ resolve(root, "packages/workit-cursor/marketplace.json"),
24
+ ]) {
25
+ const data = JSON.parse(readFileSync(file, "utf8"));
26
+ data.version = core.version;
27
+ if (data.homepage) data.homepage = data.homepage.replace("BrainerVirus/workflow-toolkit", "BrainerVirus/workit");
28
+ if (data.repository) data.repository = data.repository.replace("BrainerVirus/workflow-toolkit", "BrainerVirus/workit");
29
+ writeFileSync(file, `${JSON.stringify(data, null, 2)}\n`);
30
+ }