dashclaw 3.0.0 → 4.0.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 +3 -16
- package/dashclaw.js +0 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -447,21 +447,6 @@ if (result.recommendation === 'block') {
|
|
|
447
447
|
}
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
### Context Threads
|
|
451
|
-
- `createThread(thread)` -- Create a context thread for tracking multi-step work.
|
|
452
|
-
- `addThreadEntry(threadId, content, entryType)` -- Add an entry to a context thread.
|
|
453
|
-
- `closeThread(threadId, summary)` -- Close a context thread with an optional summary.
|
|
454
|
-
|
|
455
|
-
```javascript
|
|
456
|
-
// Create a thread, add entries, and close it
|
|
457
|
-
const thread = await claw.createThread({ name: 'Release Planning' });
|
|
458
|
-
|
|
459
|
-
await claw.addThreadEntry(thread.thread_id, 'Kickoff complete', 'note');
|
|
460
|
-
await claw.addThreadEntry(thread.thread_id, 'Tests green on staging', 'milestone');
|
|
461
|
-
|
|
462
|
-
await claw.closeThread(thread.thread_id, 'Release shipped successfully');
|
|
463
|
-
```
|
|
464
|
-
|
|
465
450
|
### Bulk Sync
|
|
466
451
|
- `syncState(state)` -- Push a full agent state snapshot in a single call.
|
|
467
452
|
|
|
@@ -644,7 +629,7 @@ If your agent supports Model Context Protocol (Claude Code, Claude Desktop, Mana
|
|
|
644
629
|
|
|
645
630
|
**Streamable HTTP transport** (same surface, served by your DashClaw instance at `POST /api/mcp`).
|
|
646
631
|
|
|
647
|
-
**
|
|
632
|
+
**26 tools** in 9 groups:
|
|
648
633
|
|
|
649
634
|
- **Core governance (8):** `dashclaw_guard`, `dashclaw_record`, `dashclaw_invoke`, `dashclaw_capabilities_list`, `dashclaw_policies_list`, `dashclaw_wait_for_approval`, `dashclaw_session_start`, `dashclaw_session_end`.
|
|
650
635
|
- **Optimal files (2):** `dashclaw_optimal_files_preview`, `dashclaw_optimal_files_manifest` — Code Sessions optimizer output (root CLAUDE.md, path-scoped rules, hooks, skill packs).
|
|
@@ -653,6 +638,8 @@ If your agent supports Model Context Protocol (Claude Code, Claude Desktop, Mana
|
|
|
653
638
|
- **Skill safety (1):** `dashclaw_skill_scan` — static safety scan of untrusted skill files; results cached by content hash.
|
|
654
639
|
- **Open loops (3):** `dashclaw_loop_add`, `dashclaw_loop_list`, `dashclaw_loop_close` — action-scoped commitments (the "I will X later" tracker).
|
|
655
640
|
- **Learning + retrospection (3):** `dashclaw_learning_log`, `dashclaw_learning_query`, `dashclaw_decisions_recent` — log + query non-obvious decisions; recent governed-action ledger.
|
|
641
|
+
- **Agent inbox (2):** `dashclaw_inbox_list`, `dashclaw_messages_mark_read`
|
|
642
|
+
- **Behavior learning (1):** `dashclaw_behavior_suggestions`
|
|
656
643
|
|
|
657
644
|
**6 resources:** `dashclaw://policies`, `dashclaw://capabilities`, `dashclaw://agent/{agent_id}/history`, `dashclaw://status`, `dashclaw://code-sessions/projects`, `dashclaw://code-sessions/sessions/{session_id}`.
|
|
658
645
|
|
package/dashclaw.js
CHANGED
|
@@ -753,40 +753,6 @@ class DashClaw {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
// ---------------------------------------------------------------------------
|
|
757
|
-
// Context Threads
|
|
758
|
-
// ---------------------------------------------------------------------------
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* POST /api/context/threads — Create a reasoning context thread.
|
|
762
|
-
*/
|
|
763
|
-
async createThread(thread) {
|
|
764
|
-
return this._request('/api/context/threads', 'POST', {
|
|
765
|
-
agent_id: this.agentId,
|
|
766
|
-
...thread,
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* POST /api/context/threads/:id/entries — Append a reasoning step.
|
|
772
|
-
*/
|
|
773
|
-
async addThreadEntry(threadId, content, entryType) {
|
|
774
|
-
return this._request(`/api/context/threads/${threadId}/entries`, 'POST', {
|
|
775
|
-
content,
|
|
776
|
-
entry_type: entryType,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* PATCH /api/context/threads/:id — Close a reasoning thread.
|
|
782
|
-
*/
|
|
783
|
-
async closeThread(threadId, summary) {
|
|
784
|
-
return this._request(`/api/context/threads/${threadId}`, 'PATCH', {
|
|
785
|
-
status: 'closed',
|
|
786
|
-
...(summary ? { summary } : {}),
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
|
|
790
756
|
// ---------------------------------------------------------------------------
|
|
791
757
|
// Bulk Sync
|
|
792
758
|
// ---------------------------------------------------------------------------
|