@brainervirus/workit-core 6.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.
Files changed (2) hide show
  1. package/README.md +16 -34
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,42 +1,24 @@
1
1
  # @brainervirus/workit-core
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-core.svg)](https://www.npmjs.com/package/@brainervirus/workit-core)
5
- [![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](../../LICENSE)
4
+ [![npm](https://img.shields.io/npm/v/@brainervirus/workit-core.svg)](https://www.npmjs.com/package/@brainervirus/workit-core)
5
+ [![license: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/BrainerVirus/workit/blob/main/LICENSE)
6
6
 
7
- Shared core for the workit plugins — the single source of workflow logic that the OpenCode, Cursor, and CLI packages adapt to their native surfaces.
7
+ The shared core of [Workit](https://github.com/BrainerVirus/workit): task event store, run ledger,
8
+ policy, checks, forge and stack logic, host-hook protocol, and the single
9
+ source of the eleven method skills. Every host adapter and the CLI bundle it.
8
10
 
9
- ## When you need it directly
10
-
11
- End users do **not** install this package directly — install `@brainervirus/workit-cli` (wizard) or the platform plugin (`@brainervirus/workit-opencode`, `@brainervirus/workit-cursor`). The adapters pull core in as a dependency and ship it with their bundles.
12
-
13
- You consume `@brainervirus/workit-core` directly only when:
14
-
15
- - Building a new host adapter (e.g. a future `codex/` adapter) that maps a host's native surfaces to the shared `src/core/` logic.
16
- - Reading the canonical source of workflow behavior: task and policy engine, approval flow, commit/PR, changelog, YouTrack, doctor, and diagnostics.
17
-
18
- ## Layout and ownership
11
+ End users do not install this package; install the CLI or a host plugin (see
12
+ the [root README](https://github.com/BrainerVirus/workit#quickstart)). Use it directly only to build a
13
+ new host adapter.
19
14
 
20
15
  | Path | Contents |
21
16
  | --- | --- |
22
- | `src/core/` | Shared TS logic (setup, registration, doctor, logger, branch, PR, changelog, YouTrack, task/policy engine, support matrix). |
23
- | `src/core.ts` | Package entry; adapters import `@brainervirus/workit-core/src/*`. |
24
- | `skills/` | 11 `workit-*` method skills (single source; adapters ship generated byte-identical copies). |
25
- | `scripts/` | Shared shell installers/launchers and the release-time workspace-dep rewrite. |
26
- | `templates/` | Execution and Superpowers contract templates. |
27
-
28
- Adapters map host-native surfaces to `src/core/`; they never re-implement core logic. Keep shared behavior here and host-specific presentation in each adapter.
29
-
30
- ## Exports
31
-
32
- - Main entry: `./src/core.ts`.
33
- - Subpath exports: `./src/*.ts` (e.g. `@brainervirus/workit-core/src/core/task-store`), plus `./package.json`.
34
- - Setup, doctor, upgrade, uninstall and host-install code lives in `@brainervirus/workit-cli` (`src/admin/`), not here, so host hooks and plugins never bundle it.
35
-
36
- ## Package scripts
37
-
38
- ```bash
39
- bun run typecheck # tsc --noEmit
40
- ```
41
-
42
- Core has no build step — the adapters bundle it at build time. See the root [README](../../README.md) for the full development, CI, and versioning notes.
17
+ | `src/` | Store, ledger, checks, forge, stack, grants, hooks (`src/hooks/`), task/policy engine (`src/core/`) |
18
+ | `skills/` | The `workit-*` method skills; adapters ship generated copies |
19
+ | `scripts/` | Installers, launchers and release helpers |
20
+ | `templates/` | Contract and issue-update templates |
21
+
22
+ Exports: `./src/core.ts` and `./src/*.ts` subpaths. Setup, doctor, upgrade and
23
+ uninstall live in `@brainervirus/workit-cli`. There is no build step; adapters
24
+ bundle core. Development: [AGENTS.md](https://github.com/BrainerVirus/workit/blob/main/AGENTS.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-core",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "private": false,
5
5
  "description": "Workit shared core — task, policy, evidence, review, decision, worker, and writer state for agentic coding workflows",
6
6
  "keywords": [