sync: skills and tool contract overhaul from private repo

This commit is contained in:
“BeeRad”
2026-03-07 11:45:26 +11:00
parent 46ac8d9bde
commit 2cdd685c04
32 changed files with 2548 additions and 681 deletions
@@ -95,7 +95,7 @@ function updateEdge(id, updates) {
const existing = getEdgeById(id);
if (!existing) {
throw new Error(`Edge with ID ${id} not found`);
throw new Error(`Edge with ID ${id} not found. Use rah_query_edges to find edges by node ID.`);
}
// If explanation changed, update context
@@ -128,7 +128,7 @@ function updateEdge(id, updates) {
function deleteEdge(id) {
const result = query('DELETE FROM edges WHERE id = ?', [id]);
if (result.changes === 0) {
throw new Error(`Edge with ID ${id} not found`);
throw new Error(`Edge with ID ${id} not found. Use rah_query_edges to find edges by node ID.`);
}
return true;
}