yams-blackboard 1.0.4 → 1.1.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 +32 -53
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# YAMS Blackboard Plugin for OpenCode
|
|
2
2
|
|
|
3
|
+
> **EXPERIMENTAL SOFTWARE** - This plugin is under active development. APIs may change without notice. Use at your own risk.
|
|
4
|
+
|
|
3
5
|
A **blackboard architecture** plugin enabling agent-to-agent communication through [YAMS](https://github.com/trvon/yams) as shared memory.
|
|
4
6
|
|
|
5
7
|
## Overview
|
|
@@ -22,45 +24,39 @@ This plugin implements the classic [blackboard pattern](https://en.wikipedia.org
|
|
|
22
24
|
└─────────┘ └─────────┘ └────────┘
|
|
23
25
|
```
|
|
24
26
|
|
|
25
|
-
## Prerequisites
|
|
26
|
-
|
|
27
|
-
- **[YAMS](https://github.com/trvon/yams)** - must be installed and daemon running
|
|
28
|
-
- **bun** (for local development/building)
|
|
29
|
-
- **OpenCode** v1.1.0+ (for plugin support)
|
|
30
|
-
|
|
31
27
|
## Installation
|
|
32
28
|
|
|
33
|
-
###
|
|
29
|
+
### 1. Install YAMS
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
Install the YAMS daemon from [github.com/trvon/yams](https://github.com/trvon/yams):
|
|
36
32
|
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"plugin": ["yams-blackboard"]
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
OpenCode automatically installs npm plugins at startup.
|
|
33
|
+
```bash
|
|
34
|
+
# macOS
|
|
35
|
+
brew install trvon/tap/yams
|
|
45
36
|
|
|
46
|
-
|
|
37
|
+
# Or build from source (see YAMS repo for instructions)
|
|
38
|
+
```
|
|
47
39
|
|
|
48
|
-
|
|
40
|
+
Start the daemon:
|
|
49
41
|
|
|
50
42
|
```bash
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
yams daemon start
|
|
44
|
+
yams status # Should show "running"
|
|
53
45
|
```
|
|
54
46
|
|
|
55
|
-
###
|
|
47
|
+
### 2. Add Plugin to OpenCode
|
|
56
48
|
|
|
57
|
-
|
|
49
|
+
Add to your `opencode.json`:
|
|
58
50
|
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"$schema": "https://opencode.ai/config.json",
|
|
54
|
+
"plugin": ["yams-blackboard"]
|
|
55
|
+
}
|
|
62
56
|
```
|
|
63
57
|
|
|
58
|
+
OpenCode automatically installs npm plugins at startup. No manual build or copy required.
|
|
59
|
+
|
|
64
60
|
## Tools
|
|
65
61
|
|
|
66
62
|
### Agent Management
|
|
@@ -213,38 +209,21 @@ Based on research into multi-agent communication patterns:
|
|
|
213
209
|
- **A2A Protocol Concepts**: Structured findings with lifecycle states
|
|
214
210
|
- **Task Coordination**: Claim-based work distribution with dependencies
|
|
215
211
|
|
|
216
|
-
## Development
|
|
217
|
-
|
|
218
|
-
### Building
|
|
212
|
+
## Development (Contributors Only)
|
|
219
213
|
|
|
220
|
-
|
|
214
|
+
This section is for contributors developing the plugin itself. Users should install via npm as described above.
|
|
221
215
|
|
|
222
216
|
```bash
|
|
223
|
-
bun install
|
|
224
|
-
bun run build
|
|
217
|
+
bun install # Install dependencies
|
|
218
|
+
bun run build # Compile index.ts to index.js
|
|
219
|
+
bun run typecheck # Type check
|
|
220
|
+
bun test # Run tests
|
|
225
221
|
```
|
|
226
222
|
|
|
227
|
-
This compiles `index.ts` to `index.js` for distribution.
|
|
228
|
-
|
|
229
|
-
### Type Checking
|
|
230
|
-
|
|
231
|
-
```bash
|
|
232
|
-
bun run typecheck
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### Local Testing
|
|
236
|
-
|
|
237
|
-
1. Build the plugin: `bun run build`
|
|
238
|
-
2. Copy to your project: `cp index.js ~/.opencode/plugin/yams-blackboard.js`
|
|
239
|
-
3. Restart OpenCode
|
|
240
|
-
4. Test with: `bb_list_agents`
|
|
241
|
-
|
|
242
223
|
## Troubleshooting
|
|
243
224
|
|
|
244
225
|
### "YAMS daemon not running"
|
|
245
226
|
|
|
246
|
-
Ensure the YAMS daemon is started:
|
|
247
|
-
|
|
248
227
|
```bash
|
|
249
228
|
yams daemon start
|
|
250
229
|
yams status # Should show "running"
|
|
@@ -252,18 +231,18 @@ yams status # Should show "running"
|
|
|
252
231
|
|
|
253
232
|
### "Command 'yams' not found"
|
|
254
233
|
|
|
255
|
-
YAMS must be installed and in your PATH.
|
|
234
|
+
YAMS must be installed and in your PATH. See [Installation](#installation).
|
|
256
235
|
|
|
257
236
|
### Plugin not loading
|
|
258
237
|
|
|
259
238
|
1. Verify `opencode.json` has `"plugin": ["yams-blackboard"]`
|
|
260
|
-
2.
|
|
261
|
-
3.
|
|
239
|
+
2. Restart OpenCode to load the plugin
|
|
240
|
+
3. Check OpenCode logs for plugin errors
|
|
262
241
|
|
|
263
242
|
### Tools not appearing
|
|
264
243
|
|
|
265
|
-
|
|
244
|
+
Start a new session - tools are registered on `session.created`.
|
|
266
245
|
|
|
267
246
|
## License
|
|
268
247
|
|
|
269
|
-
|
|
248
|
+
This project is licensed under the GNU General Public License v3.0 - see [LICENSE](LICENSE) for details.
|