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.
@@ -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; sessions without entries do not match.',
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.0", "mcp"],
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}"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-blackboard",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A session-scoped entry stream for autonomous agents working unmonitored, for Codex.",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "agent-blackboard": {
4
4
  "command": "npx",
5
- "args": ["-y", "agent-blackboard@0.6.0", "mcp"],
5
+ "args": ["-y", "agent-blackboard@0.6.1", "mcp"],
6
6
  "env_vars": ["AGENT_BLACKBOARD_URL", "AGENT_BLACKBOARD_TOKEN"]
7
7
  }
8
8
  }
@@ -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. When supported, `dataArrayContains` matches exact array membership,
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.0 sessions create root-123 --agent claude-code --version 1.0.13
56
- npx -y agent-blackboard@0.6.0 sessions create worker-456 --parent-session-id root-123 \
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.0 sessions patch worker-456 --data '{"branch":"fix/retry"}'
59
- npx -y agent-blackboard@0.6.0 sessions patch worker-456 --data '{"repositories":["owner/name"]}'
60
- npx -y agent-blackboard@0.6.0 append --session-id worker-456 '{"repositories":["owner/name"],"note":"found the failing edge case"}'
61
- npx -y agent-blackboard@0.6.0 get --session-id worker-456 --format markdown
62
- npx -y agent-blackboard@0.6.0 snapshot export --root-only --inactive-for-hours 8
63
- npx -y agent-blackboard@0.6.0 snapshot partition --path /tmp/agent-blackboard-snapshot-<uuid>.jsonl \
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.0 snapshot cleanup --path /tmp/agent-blackboard-snapshot-<uuid>.jsonl \
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-blackboard",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Client library, CLI, and MCP server for Agent Blackboard session entries.",
5
5
  "homepage": "https://github.com/jonathanong/agent-blackboard#readme",
6
6
  "bugs": {