agent-blackboard 0.6.0 → 0.6.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.
package/dist/mcp/schemas.mjs
CHANGED
|
@@ -47,7 +47,7 @@ export const ENTRY_TOOLS = [
|
|
|
47
47
|
inactiveForHours: {
|
|
48
48
|
type: 'number',
|
|
49
49
|
exclusiveMinimum: 0,
|
|
50
|
-
description: 'Only sessions inactive for this many hours.',
|
|
50
|
+
description: 'Only sessions inactive for this many hours (createdAt if no entries).',
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
53
|
},
|
|
@@ -118,7 +118,7 @@ export const ENTRY_TOOLS = [
|
|
|
118
118
|
inactiveForHours: {
|
|
119
119
|
type: 'number',
|
|
120
120
|
exclusiveMinimum: 0,
|
|
121
|
-
description: 'Matches sessions whose last entry is strictly older than this many hours
|
|
121
|
+
description: 'Matches sessions whose last entry (or createdAt, without entries) is strictly older than this many hours.',
|
|
122
122
|
},
|
|
123
123
|
limit: {
|
|
124
124
|
type: 'integer',
|
|
@@ -48,10 +48,8 @@ function matchesDataArrayContains(session, data) {
|
|
|
48
48
|
function isInactiveFor(session, hours, now) {
|
|
49
49
|
if (hours === undefined)
|
|
50
50
|
return true;
|
|
51
|
-
if (session.lastEntryAt === null)
|
|
52
|
-
return false;
|
|
53
51
|
const cutoff = now.getTime() - hours * 60 * 60 * 1000;
|
|
54
|
-
return Date.parse(session.lastEntryAt) < cutoff;
|
|
52
|
+
return Date.parse(session.lastEntryAt ?? session.createdAt) < cutoff;
|
|
55
53
|
}
|
|
56
54
|
/** Whether a single directly-fetched session satisfies every supplied `session_search` filter. */
|
|
57
55
|
function matchesDirectSession(session, parsed, now) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"mcpServers": {
|
|
3
3
|
"agent-blackboard": {
|
|
4
4
|
"command": "npx",
|
|
5
|
-
"args": ["-y", "agent-blackboard@0.6.
|
|
5
|
+
"args": ["-y", "agent-blackboard@0.6.1", "mcp"],
|
|
6
6
|
"env": {
|
|
7
7
|
"AGENT_BLACKBOARD_URL": "${AGENT_BLACKBOARD_URL}",
|
|
8
8
|
"AGENT_BLACKBOARD_TOKEN": "${AGENT_BLACKBOARD_TOKEN}"
|
package/dist/plugin/.mcp.json
CHANGED
|
@@ -36,7 +36,8 @@ If the `agent-blackboard` MCP server is connected, use its tools directly:
|
|
|
36
36
|
- `session_create` — create a root or subagent session with explicit `sessionId` and
|
|
37
37
|
`parentSessionId` (use `null` for a root), plus `agent` and `version`.
|
|
38
38
|
- `session_search` — find undistilled or archived sessions with exact metadata, data, and optional
|
|
39
|
-
`inactiveForHours` filters
|
|
39
|
+
`inactiveForHours` filters (a session without entries counts as last active at its `createdAt`).
|
|
40
|
+
When supported, `dataArrayContains` matches exact array membership,
|
|
40
41
|
including repository tags.
|
|
41
42
|
- `session_patch` — shallow-merge `data` into an unarchived session.
|
|
42
43
|
- `session_archive` — mark a session as distilled; archival is one-time and metadata becomes
|
|
@@ -52,17 +53,17 @@ Without MCP, or from a shell/script, run the published CLI through `npx`. This d
|
|
|
52
53
|
local clone of the agent-blackboard repository:
|
|
53
54
|
|
|
54
55
|
```bash
|
|
55
|
-
npx -y agent-blackboard@0.6.
|
|
56
|
-
npx -y agent-blackboard@0.6.
|
|
56
|
+
npx -y agent-blackboard@0.6.1 sessions create root-123 --agent claude-code --version 1.0.13
|
|
57
|
+
npx -y agent-blackboard@0.6.1 sessions create worker-456 --parent-session-id root-123 \
|
|
57
58
|
--agent claude-code --version 1.0.13
|
|
58
|
-
npx -y agent-blackboard@0.6.
|
|
59
|
-
npx -y agent-blackboard@0.6.
|
|
60
|
-
npx -y agent-blackboard@0.6.
|
|
61
|
-
npx -y agent-blackboard@0.6.
|
|
62
|
-
npx -y agent-blackboard@0.6.
|
|
63
|
-
npx -y agent-blackboard@0.6.
|
|
59
|
+
npx -y agent-blackboard@0.6.1 sessions patch worker-456 --data '{"branch":"fix/retry"}'
|
|
60
|
+
npx -y agent-blackboard@0.6.1 sessions patch worker-456 --data '{"repositories":["owner/name"]}'
|
|
61
|
+
npx -y agent-blackboard@0.6.1 append --session-id worker-456 '{"repositories":["owner/name"],"note":"found the failing edge case"}'
|
|
62
|
+
npx -y agent-blackboard@0.6.1 get --session-id worker-456 --format markdown
|
|
63
|
+
npx -y agent-blackboard@0.6.1 snapshot export --root-only --inactive-for-hours 8
|
|
64
|
+
npx -y agent-blackboard@0.6.1 snapshot partition --path /tmp/agent-blackboard-snapshot-<uuid>.jsonl \
|
|
64
65
|
--cleanup-token <cleanup-token>
|
|
65
|
-
npx -y agent-blackboard@0.6.
|
|
66
|
+
npx -y agent-blackboard@0.6.1 snapshot cleanup --path /tmp/agent-blackboard-snapshot-<uuid>.jsonl \
|
|
66
67
|
--directory /tmp/agent-blackboard-partitions-<suffix> --cleanup-token <cleanup-token>
|
|
67
68
|
```
|
|
68
69
|
|
package/package.json
CHANGED