@versatly/workgraph 0.1.0 → 0.3.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 CHANGED
@@ -1,19 +1,27 @@
1
- # @clawvault/workgraph
1
+ # @versatly/workgraph
2
2
 
3
3
  Agent-first workgraph workspace for multi-agent collaboration.
4
4
 
5
- `@clawvault/workgraph` is the coordination core extracted from ClawVault. It focuses only on:
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 (`.clawvault/ledger.jsonl`)
9
- - Ledger claim index (`.clawvault/ledger-index.json`) for fast ownership queries
10
- - Tamper-evident ledger hash-chain (`.clawvault/ledger-chain.json`)
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 @clawvault/workgraph
32
+ npm install @versatly/workgraph
25
33
  ```
26
34
 
27
35
  Or global CLI:
28
36
 
29
37
  ```bash
30
- npm install -g @clawvault/workgraph
38
+ npm install -g @versatly/workgraph
31
39
  ```
32
40
 
33
41
  ## Agent-first CLI
@@ -51,6 +59,24 @@ 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 dispatch create-execute "Close all ready threads in platform space" \
73
+ --actor agent-lead \
74
+ --agents agent-a,agent-b,agent-c \
75
+ --space spaces/platform \
76
+ --json
77
+ workgraph trigger fire triggers/escalate-blocked.md --event-key "thread-blocked-001" --actor agent-lead --json
78
+ workgraph onboarding update onboarding/onboarding-for-agent-architect.md --status paused --actor agent-lead --json
79
+ workgraph mcp serve -w /path/to/workspace --actor agent-ops --read-only
54
80
  workgraph ledger show --count 20 --json
55
81
  workgraph command-center --output "ops/Command Center.md" --json
56
82
  workgraph bases generate --refresh-registry --json
@@ -65,6 +91,38 @@ All commands support `--json` and emit:
65
91
 
66
92
  This is intended for robust parsing by autonomous agents.
67
93
 
94
+ ### Monorepo layout (MVP)
95
+
96
+ The repository is now organized as a workspaces monorepo while preserving the
97
+ published `@versatly/workgraph` package compatibility surface.
98
+
99
+ Key workspace packages:
100
+
101
+ - `packages/kernel`
102
+ - `packages/cli`
103
+ - `packages/sdk`
104
+ - `packages/control-api`
105
+ - `packages/runtime-adapter-core`
106
+ - `packages/adapter-cursor-cloud`
107
+ - `packages/policy`
108
+ - `packages/testkit`
109
+ - `packages/search-qmd-adapter`
110
+ - `packages/obsidian-integration`
111
+ - `packages/skills`
112
+
113
+ Migration notes: see `docs/MIGRATION.md`.
114
+
115
+ ### Demo vault generator
116
+
117
+ Generate the large Obsidian demo workspace used for stress-testing:
118
+
119
+ ```bash
120
+ npm run demo:workspace
121
+ npm run demo:obsidian-setup
122
+ ```
123
+
124
+ Runbook: `docs/OBSIDIAN_DEMO.md`.
125
+
68
126
  ### Space-scoped scheduling
69
127
 
70
128
  ```bash
@@ -81,7 +139,7 @@ workgraph thread next --space spaces/backend --claim --actor agent-api --json
81
139
  ### Auto-generate `.base` files from primitive registry
82
140
 
83
141
  ```bash
84
- # Sync .clawvault/primitive-registry.yaml
142
+ # Sync .workgraph/primitive-registry.yaml
85
143
  workgraph bases sync-registry --json
86
144
 
87
145
  # Generate canonical primitive .base files
@@ -114,11 +172,36 @@ workgraph skill write "workgraph-manual" \
114
172
  workgraph skill propose workgraph-manual --actor agent-reviewer --space spaces/platform --json
115
173
  workgraph skill promote workgraph-manual --actor agent-lead --json
116
174
  workgraph skill load workgraph-manual --json
175
+ workgraph skill list --updated-since 2026-02-27T00:00:00.000Z --json
176
+ workgraph skill history workgraph-manual --limit 10 --json
177
+ workgraph skill diff workgraph-manual --json
178
+ ```
179
+
180
+ ### Optional Clawdapus integration
181
+
182
+ List supported optional integrations:
183
+
184
+ ```bash
185
+ workgraph integration list --json
186
+ ```
187
+
188
+ Install by integration ID (extensible pattern for future integrations):
189
+
190
+ ```bash
191
+ workgraph integration install clawdapus \
192
+ --actor agent-architect \
193
+ --json
194
+ ```
195
+
196
+ Refresh from upstream later (or use the `integration clawdapus` alias):
197
+
198
+ ```bash
199
+ workgraph integration install clawdapus --force --actor agent-architect --json
117
200
  ```
118
201
 
119
- ## ClawVault memory vs Workgraph primitives (split clarification)
202
+ ## Legacy memory stacks vs Workgraph primitives
120
203
 
121
- `@clawvault/workgraph` is **execution coordination only**.
204
+ `@versatly/workgraph` is **execution coordination only**.
122
205
 
123
206
  - Use it for: ownership, decomposition, dependency management, typed coordination primitives.
124
207
  - Do not use it for: long-term memory categories (`decisions/`, `people/`, `projects/` memory workflows), qmd semantic retrieval pipelines, observer/reflector memory compression.
@@ -141,7 +224,7 @@ This split keeps the workgraph package focused, portable, and shell-agent-native
141
224
  ## Programmatic API
142
225
 
143
226
  ```ts
144
- import { registry, thread, store, ledger, workspace } from '@clawvault/workgraph';
227
+ import { registry, thread, store, ledger, workspace } from '@versatly/workgraph';
145
228
 
146
229
  workspace.initWorkspace('/tmp/wg');
147
230
 
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 ClawVault memory scaffolding.
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/clawvault/tree/main/packages/workgraph
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
- - `.clawvault/registry.json` — primitive type definitions.
27
- - `.clawvault/ledger.jsonl` — append-only event stream.
28
- - `.clawvault/ledger-index.json` — derived claim snapshot for fast ownership checks.
29
- - `.clawvault/ledger-chain.json` — tamper-evident hash-chain state.
30
- - `.clawvault/primitive-registry.yaml` — canonical primitive registry manifest.
31
- - `.clawvault/bases/*.base` — generated Obsidian Bases files.
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
- - `clawvault` package: memory + retrieval + broader vault lifecycle.
302
- - `@clawvault/workgraph` package: coordination substrate only.
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