@versatly/workgraph 0.1.0 → 0.2.0
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 +66 -11
- package/SKILL.md +10 -10
- package/bin/workgraph.js +0 -0
- package/dist/chunk-XUMA4O2Z.js +2817 -0
- package/dist/cli.js +574 -23
- package/dist/index.d.ts +402 -7
- package/dist/index.js +19 -1
- package/package.json +15 -6
- package/dist/chunk-CRQXDCPR.js +0 -1443
package/README.md
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @versatly/workgraph
|
|
2
2
|
|
|
3
3
|
Agent-first workgraph workspace for multi-agent collaboration.
|
|
4
4
|
|
|
5
|
-
`@
|
|
5
|
+
`@versatly/workgraph` is the standalone coordination core for multi-agent execution. It focuses only on:
|
|
6
6
|
|
|
7
7
|
- Dynamic primitive registry (`thread`, `space`, `decision`, `lesson`, `fact`, `agent`, plus custom types)
|
|
8
|
-
- Append-only event ledger (`.
|
|
9
|
-
- Ledger claim index (`.
|
|
10
|
-
- Tamper-evident ledger hash-chain (`.
|
|
8
|
+
- Append-only event ledger (`.workgraph/ledger.jsonl`)
|
|
9
|
+
- Ledger claim index (`.workgraph/ledger-index.json`) for fast ownership queries
|
|
10
|
+
- Tamper-evident ledger hash-chain (`.workgraph/ledger-chain.json`)
|
|
11
11
|
- Markdown-native primitive store
|
|
12
12
|
- Thread lifecycle coordination (claim/release/block/unblock/done/decompose)
|
|
13
13
|
- Space-scoped thread scheduling (`--space`)
|
|
14
14
|
- Generated markdown command center (`workgraph command-center`)
|
|
15
15
|
- Native skill primitive lifecycle (`workgraph skill write/load/propose/promote`)
|
|
16
16
|
- Primitive-registry manifest + auto-generated `.base` files
|
|
17
|
+
- Orientation loop commands (`workgraph status/brief/checkpoint/intake`)
|
|
18
|
+
- Multi-filter primitive query (`workgraph query ...`)
|
|
19
|
+
- Core + QMD-compatible keyword search (`workgraph search ...`)
|
|
20
|
+
- Obsidian Kanban board generation/sync (`workgraph board generate|sync`)
|
|
21
|
+
- Wiki-link graph indexing and hygiene reports (`workgraph graph index|hygiene`)
|
|
22
|
+
- Policy party registry and sensitive transition gates
|
|
23
|
+
- Programmatic dispatch contract (`workgraph dispatch ...`) with explicit status transitions
|
|
24
|
+
- Trigger dispatch bridge (`workgraph trigger fire ...`) with idempotency keying
|
|
17
25
|
- JSON-friendly CLI for agent orchestration
|
|
18
26
|
|
|
19
27
|
No memory-category scaffolding, no qmd dependency, no observational-memory pipeline.
|
|
@@ -21,13 +29,13 @@ No memory-category scaffolding, no qmd dependency, no observational-memory pipel
|
|
|
21
29
|
## Install
|
|
22
30
|
|
|
23
31
|
```bash
|
|
24
|
-
npm install @
|
|
32
|
+
npm install @versatly/workgraph
|
|
25
33
|
```
|
|
26
34
|
|
|
27
35
|
Or global CLI:
|
|
28
36
|
|
|
29
37
|
```bash
|
|
30
|
-
npm install -g @
|
|
38
|
+
npm install -g @versatly/workgraph
|
|
31
39
|
```
|
|
32
40
|
|
|
33
41
|
## Agent-first CLI
|
|
@@ -51,6 +59,18 @@ workgraph thread create "Ship command center" \
|
|
|
51
59
|
--json
|
|
52
60
|
|
|
53
61
|
workgraph thread next --claim --actor agent-worker --json
|
|
62
|
+
workgraph status --json
|
|
63
|
+
workgraph brief --actor agent-worker --json
|
|
64
|
+
workgraph query --type thread --status open --limit 10 --json
|
|
65
|
+
workgraph search "auth" --mode auto --json
|
|
66
|
+
workgraph checkpoint "Completed API layer" --next "implement tests" --actor agent-worker --json
|
|
67
|
+
workgraph board generate --output "ops/Workgraph Board.md" --json
|
|
68
|
+
workgraph graph hygiene --json
|
|
69
|
+
workgraph graph neighbors context-nodes/context-node-1 --json
|
|
70
|
+
workgraph dispatch create "Review blockers" --actor agent-lead --json
|
|
71
|
+
workgraph dispatch mark run_123 --status succeeded --output "Review complete" --actor agent-lead --json
|
|
72
|
+
workgraph trigger fire triggers/escalate-blocked.md --event-key "thread-blocked-001" --actor agent-lead --json
|
|
73
|
+
workgraph onboarding update onboarding/onboarding-for-agent-architect.md --status paused --actor agent-lead --json
|
|
54
74
|
workgraph ledger show --count 20 --json
|
|
55
75
|
workgraph command-center --output "ops/Command Center.md" --json
|
|
56
76
|
workgraph bases generate --refresh-registry --json
|
|
@@ -65,6 +85,38 @@ All commands support `--json` and emit:
|
|
|
65
85
|
|
|
66
86
|
This is intended for robust parsing by autonomous agents.
|
|
67
87
|
|
|
88
|
+
### Monorepo layout (MVP)
|
|
89
|
+
|
|
90
|
+
The repository is now organized as a workspaces monorepo while preserving the
|
|
91
|
+
published `@versatly/workgraph` package compatibility surface.
|
|
92
|
+
|
|
93
|
+
Key workspace packages:
|
|
94
|
+
|
|
95
|
+
- `packages/kernel`
|
|
96
|
+
- `packages/cli`
|
|
97
|
+
- `packages/sdk`
|
|
98
|
+
- `packages/control-api`
|
|
99
|
+
- `packages/runtime-adapter-core`
|
|
100
|
+
- `packages/adapter-cursor-cloud`
|
|
101
|
+
- `packages/policy`
|
|
102
|
+
- `packages/testkit`
|
|
103
|
+
- `packages/search-qmd-adapter`
|
|
104
|
+
- `packages/obsidian-integration`
|
|
105
|
+
- `packages/skills`
|
|
106
|
+
|
|
107
|
+
Migration notes: see `docs/MIGRATION.md`.
|
|
108
|
+
|
|
109
|
+
### Demo vault generator
|
|
110
|
+
|
|
111
|
+
Generate the large Obsidian demo workspace used for stress-testing:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
npm run demo:workspace
|
|
115
|
+
npm run demo:obsidian-setup
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Runbook: `docs/OBSIDIAN_DEMO.md`.
|
|
119
|
+
|
|
68
120
|
### Space-scoped scheduling
|
|
69
121
|
|
|
70
122
|
```bash
|
|
@@ -81,7 +133,7 @@ workgraph thread next --space spaces/backend --claim --actor agent-api --json
|
|
|
81
133
|
### Auto-generate `.base` files from primitive registry
|
|
82
134
|
|
|
83
135
|
```bash
|
|
84
|
-
# Sync .
|
|
136
|
+
# Sync .workgraph/primitive-registry.yaml
|
|
85
137
|
workgraph bases sync-registry --json
|
|
86
138
|
|
|
87
139
|
# Generate canonical primitive .base files
|
|
@@ -114,11 +166,14 @@ workgraph skill write "workgraph-manual" \
|
|
|
114
166
|
workgraph skill propose workgraph-manual --actor agent-reviewer --space spaces/platform --json
|
|
115
167
|
workgraph skill promote workgraph-manual --actor agent-lead --json
|
|
116
168
|
workgraph skill load workgraph-manual --json
|
|
169
|
+
workgraph skill list --updated-since 2026-02-27T00:00:00.000Z --json
|
|
170
|
+
workgraph skill history workgraph-manual --limit 10 --json
|
|
171
|
+
workgraph skill diff workgraph-manual --json
|
|
117
172
|
```
|
|
118
173
|
|
|
119
|
-
##
|
|
174
|
+
## Legacy memory stacks vs Workgraph primitives
|
|
120
175
|
|
|
121
|
-
`@
|
|
176
|
+
`@versatly/workgraph` is **execution coordination only**.
|
|
122
177
|
|
|
123
178
|
- Use it for: ownership, decomposition, dependency management, typed coordination primitives.
|
|
124
179
|
- Do not use it for: long-term memory categories (`decisions/`, `people/`, `projects/` memory workflows), qmd semantic retrieval pipelines, observer/reflector memory compression.
|
|
@@ -141,7 +196,7 @@ This split keeps the workgraph package focused, portable, and shell-agent-native
|
|
|
141
196
|
## Programmatic API
|
|
142
197
|
|
|
143
198
|
```ts
|
|
144
|
-
import { registry, thread, store, ledger, workspace } from '@
|
|
199
|
+
import { registry, thread, store, ledger, workspace } from '@versatly/workgraph';
|
|
145
200
|
|
|
146
201
|
workspace.initWorkspace('/tmp/wg');
|
|
147
202
|
|
package/SKILL.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workgraph
|
|
3
3
|
version: "0.1.0"
|
|
4
|
-
description: Agent-first multi-agent coordination skill for markdown-native workgraph workspaces. Use when coordinating threads, ownership, dependencies, and custom primitive schemas across multiple agents. Do not use for general long-term memory capture; this package intentionally excludes
|
|
4
|
+
description: Agent-first multi-agent coordination skill for markdown-native workgraph workspaces. Use when coordinating threads, ownership, dependencies, and custom primitive schemas across multiple agents. Do not use for general long-term memory capture; this package intentionally excludes legacy memory scaffolding.
|
|
5
5
|
author: Versatly
|
|
6
|
-
source: https://github.com/Versatly/
|
|
6
|
+
source: https://github.com/Versatly/workgraph
|
|
7
7
|
user-invocable: true
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -23,12 +23,12 @@ Use workgraph to coordinate execution, not to hoard generic memory.
|
|
|
23
23
|
A workgraph workspace contains:
|
|
24
24
|
|
|
25
25
|
- `.workgraph.json` — workspace identity and mode.
|
|
26
|
-
- `.
|
|
27
|
-
- `.
|
|
28
|
-
- `.
|
|
29
|
-
- `.
|
|
30
|
-
- `.
|
|
31
|
-
- `.
|
|
26
|
+
- `.workgraph/registry.json` — primitive type definitions.
|
|
27
|
+
- `.workgraph/ledger.jsonl` — append-only event stream.
|
|
28
|
+
- `.workgraph/ledger-index.json` — derived claim snapshot for fast ownership checks.
|
|
29
|
+
- `.workgraph/ledger-chain.json` — tamper-evident hash-chain state.
|
|
30
|
+
- `.workgraph/primitive-registry.yaml` — canonical primitive registry manifest.
|
|
31
|
+
- `.workgraph/bases/*.base` — generated Obsidian Bases files.
|
|
32
32
|
- Primitive directories (e.g. `threads/`, `spaces/`, `agents/`, custom directories).
|
|
33
33
|
|
|
34
34
|
Initialize once:
|
|
@@ -298,7 +298,7 @@ If your agents currently use broad memory categories for execution coordination:
|
|
|
298
298
|
|
|
299
299
|
## Split Clarification
|
|
300
300
|
|
|
301
|
-
-
|
|
302
|
-
- `@
|
|
301
|
+
- legacy memory packages: memory + retrieval + broader vault lifecycle.
|
|
302
|
+
- `@versatly/workgraph`: coordination substrate only.
|
|
303
303
|
|
|
304
304
|
Treat this package as the authoritative runtime for multi-agent primitives and claims, not as a memory taxonomy tool.
|
package/bin/workgraph.js
CHANGED
|
File without changes
|