@work-graph/cli 0.2.3 → 0.2.5
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/LICENSE +17 -0
- package/README.md +92 -6
- package/package.json +4 -4
- package/vendor/packages/workgraph-mcp/LICENSE +17 -0
- package/vendor/packages/workgraph-mcp/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Work Graph contributors
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# @work-graph/cli
|
|
2
2
|
|
|
3
|
-
Install
|
|
3
|
+
Install **Work Graph** in any project via npm. No engine clone, no manual `engineRoot`.
|
|
4
|
+
|
|
5
|
+
Work Graph is a local, Git-friendly work system for AI-assisted development. It stores work items as BVC files, keeps project intent close to the codebase, and opens a local backlog UI for operators and agents.
|
|
6
|
+
|
|
7
|
+
Use it when you want:
|
|
8
|
+
|
|
9
|
+
- a project-local backlog without SaaS lock-in;
|
|
10
|
+
- BVC work contracts that can be reviewed in Git;
|
|
11
|
+
- Cursor MCP configuration generated for the project;
|
|
12
|
+
- a local UI for task status, evidence and project navigation;
|
|
13
|
+
- repeatable setup through `npx`, not a copied engine repository.
|
|
4
14
|
|
|
5
15
|
## Quick start
|
|
6
16
|
|
|
@@ -12,14 +22,31 @@ npm run workgraph:ui
|
|
|
12
22
|
|
|
13
23
|
→ http://127.0.0.1:4177/
|
|
14
24
|
|
|
25
|
+
## What `init` Creates
|
|
26
|
+
|
|
27
|
+
`work-graph init` is intentionally project-first. It updates the target repository rather than asking you to clone Work Graph itself.
|
|
28
|
+
|
|
29
|
+
Typical output:
|
|
30
|
+
|
|
31
|
+
| Path | Purpose |
|
|
32
|
+
|---|---|
|
|
33
|
+
| `.work-graph/config.json` | Project id, label and UI settings |
|
|
34
|
+
| `intent/` | BVC intent tree for work items |
|
|
35
|
+
| `intent/index.bvc` | Index of work item files |
|
|
36
|
+
| `.cursor/mcp.json` | Cursor MCP server entry for Work Graph |
|
|
37
|
+
| `.cursor/rules/work-graph-project.mdc` | Project rule that tells agents to use Work Graph |
|
|
38
|
+
| `package.json` | `workgraph:*` scripts and devDependencies |
|
|
39
|
+
|
|
40
|
+
After `npm install`, the project owns its Work Graph runtime through `node_modules/@work-graph/cli` and `node_modules/@work-graph/mcp`.
|
|
41
|
+
|
|
15
42
|
## Commands
|
|
16
43
|
|
|
17
44
|
| Command | Description |
|
|
18
45
|
|---------|-------------|
|
|
19
|
-
| `init [path]` | Scaffold
|
|
20
|
-
| `ui [path]` | Start backlog UI for the project |
|
|
21
|
-
| `doctor [path]` | Verify
|
|
22
|
-
| `register [path]` | Optional:
|
|
46
|
+
| `init [path]` | Scaffold Work Graph into a project: BVC intent tree, config, npm scripts, MCP config and Cursor rule |
|
|
47
|
+
| `ui [path]` | Start the local backlog UI for the project |
|
|
48
|
+
| `doctor [path]` | Verify that project config, package dependencies and runtime resolution are healthy |
|
|
49
|
+
| `register [path]` | Optional: register a project in the shared multiproject host |
|
|
23
50
|
|
|
24
51
|
## Flags (`init`)
|
|
25
52
|
|
|
@@ -28,8 +55,60 @@ npm run workgraph:ui
|
|
|
28
55
|
| `--label`, `--id` | Display name and project id |
|
|
29
56
|
| `--no-mcp` | Do not update `.cursor/mcp.json` |
|
|
30
57
|
| `--no-package` | Do not update `package.json` |
|
|
58
|
+
| `--no-rule` | Do not create `.cursor/rules/work-graph-project.mdc` |
|
|
59
|
+
| `--register-host` | Register the project in the shared multiproject host after init |
|
|
60
|
+
| `--port` | Set the default local UI port |
|
|
31
61
|
| `--legacy-engine-config` | Dev only: write deprecated `engineRoot` to config |
|
|
32
62
|
|
|
63
|
+
## Common Workflows
|
|
64
|
+
|
|
65
|
+
Create a fresh Work Graph project:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
mkdir my-project
|
|
69
|
+
cd my-project
|
|
70
|
+
npx @work-graph/cli init . --label "My Project"
|
|
71
|
+
npm install
|
|
72
|
+
npm run workgraph:ui
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Add Work Graph to an existing repository:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
cd existing-repo
|
|
79
|
+
npx @work-graph/cli init .
|
|
80
|
+
npm install
|
|
81
|
+
npm run workgraph:doctor
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Run the UI without npm scripts:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npx @work-graph/cli ui .
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Register a project for a multiproject host:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npx @work-graph/cli register . --label "Client A"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Relationship to BVC
|
|
97
|
+
|
|
98
|
+
Work Graph uses [BVC](https://github.com/bvc-lang/spec) files for durable work contracts. A work item is not just a card title; it carries Basis, Vector, Goal, labels, checks and evidence in a reviewable text artifact.
|
|
99
|
+
|
|
100
|
+
The CLI installs the runtime and UI. The BVC format itself is published separately as `@bvc-lang/spec`, and command-line BVC formatting/linting is available as `@bvc-lang/cli`.
|
|
101
|
+
|
|
102
|
+
## Troubleshooting
|
|
103
|
+
|
|
104
|
+
| Symptom | Fix |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `work-graph doctor` says dependencies are missing | Run `npm install` in the target project |
|
|
107
|
+
| Cursor does not see Work Graph MCP tools | Re-run `npx @work-graph/cli init .` without `--no-mcp`, then reload Cursor MCP servers |
|
|
108
|
+
| UI port is already in use | Run `npx @work-graph/cli ui . --port 4178` |
|
|
109
|
+
| Existing package scripts were not updated | Re-run without `--no-package` or add the `workgraph:*` scripts manually |
|
|
110
|
+
| You are hacking Work Graph itself | Use `WORKGRAPH_ENGINE_ROOT=.` or `--engine` from the monorepo, not in normal projects |
|
|
111
|
+
|
|
33
112
|
## Contributors (monorepo dev)
|
|
34
113
|
|
|
35
114
|
```bash
|
|
@@ -37,4 +116,11 @@ git clone …/work-graph && cd work-graph && npm install
|
|
|
37
116
|
WORKGRAPH_ENGINE_ROOT=. npx work-graph ui /path/to/project
|
|
38
117
|
```
|
|
39
118
|
|
|
40
|
-
See [CONTRIBUTING.md](https://github.com/
|
|
119
|
+
See [CONTRIBUTING.md](https://github.com/bvc-lang/work-graph/blob/main/CONTRIBUTING.md) in the Work Graph repository.
|
|
120
|
+
|
|
121
|
+
## Links
|
|
122
|
+
|
|
123
|
+
- CLI mirror: https://github.com/bvc-lang/work-graph-cli
|
|
124
|
+
- Work Graph monorepo: https://github.com/bvc-lang/work-graph
|
|
125
|
+
- BVC spec: https://github.com/bvc-lang/spec
|
|
126
|
+
- MCP package: https://www.npmjs.com/package/@work-graph/mcp
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@work-graph/cli",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Work Graph CLI —
|
|
3
|
+
"version": "0.2.5",
|
|
4
|
+
"description": "Work Graph CLI — install local agent work tracking, BVC work items and backlog UI in any project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"work-graph": "bin/work-graph.mjs"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
24
|
-
"directory": "packages/work-graph-cli"
|
|
23
|
+
"url": "git+https://github.com/bvc-lang/work-graph-cli.git"
|
|
25
24
|
},
|
|
25
|
+
"homepage": "https://github.com/bvc-lang/work-graph-cli#readme",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"work-graph",
|
|
28
28
|
"backlog",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Work Graph contributors
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@work-graph/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "MCP server for Work Graph — work items in intent/**/*.work.bvc",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@work-graph/cli": "^0.2.
|
|
19
|
+
"@work-graph/cli": "^0.2.4",
|
|
20
20
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
21
21
|
"zod": "^3.25.76"
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/
|
|
26
|
+
"url": "git+https://github.com/bvc-lang/work-graph.git",
|
|
27
27
|
"directory": "packages/workgraph-mcp"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|