@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 +6 -6
- package/package.json +1 -1
- package/scripts/rewrite-workspace-deps.ts +17 -4
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` |
|
|
8
|
-
| **Cursor** | `packages/workit-cursor/` (MCP + hooks + rules + skills) |
|
|
9
|
-
| **Shared core** | `packages/workit-core/` (src, skills, commands, scripts, templates) |
|
|
10
|
-
| **CLI** | `packages/workit-cli/` (Ink wizard, bin `workit`) |
|
|
7
|
+
| **OpenCode** | `packages/workit-opencode/src/plugin.ts` |  |
|
|
8
|
+
| **Cursor** | `packages/workit-cursor/` (MCP + hooks + rules + skills) |  |
|
|
9
|
+
| **Shared core** | `packages/workit-core/` (src, skills, commands, scripts, templates) |  |
|
|
10
|
+
| **CLI** | `packages/workit-cli/` (Ink wizard, bin `workit`) |  |
|
|
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,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
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
|
+
}
|