@adhdev/daemon-standalone 1.0.7 → 1.0.8
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/index.js +69 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{index-GOsMq8UT.js → index-BTft_Lci.js} +51 -51
- package/public/assets/{index-D6j27NOf.css → index-DQoFBM6e.css} +1 -1
- package/public/index.html +2 -2
- package/vendor/mcp-server/index.js +1 -1
- package/vendor/mcp-server/index.js.map +1 -1
- package/vendor/mcp-server/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30217,10 +30217,10 @@ var require_dist3 = __commonJS({
|
|
|
30217
30217
|
}
|
|
30218
30218
|
function getDaemonBuildInfo() {
|
|
30219
30219
|
if (cached2) return cached2;
|
|
30220
|
-
const commit = readInjected(true ? "
|
|
30221
|
-
const commitShort = readInjected(true ? "
|
|
30222
|
-
const version2 = readInjected(true ? "1.0.
|
|
30223
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
30220
|
+
const commit = readInjected(true ? "d87ed13992cd87934e3ba8347ec5ff70e5f5252c" : void 0) ?? "unknown";
|
|
30221
|
+
const commitShort = readInjected(true ? "d87ed13" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30222
|
+
const version2 = readInjected(true ? "1.0.8" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30223
|
+
const builtAt = readInjected(true ? "2026-07-20T06:28:05.139Z" : void 0);
|
|
30224
30224
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30225
30225
|
return cached2;
|
|
30226
30226
|
}
|
|
@@ -73085,6 +73085,71 @@ ${body}
|
|
|
73085
73085
|
return { success: false, error: e.message };
|
|
73086
73086
|
}
|
|
73087
73087
|
},
|
|
73088
|
+
// Coordinator operating-note CRUD, exposed over P2P so the dashboard mesh
|
|
73089
|
+
// graph dialog can list / record / forget notes (previously stdio-MCP only).
|
|
73090
|
+
list_mesh_notes: async (_ctx, args) => {
|
|
73091
|
+
const meshId = typeof args?.meshId === "string" ? args.meshId.trim() : "";
|
|
73092
|
+
if (!meshId) return { success: false, error: "meshId required" };
|
|
73093
|
+
try {
|
|
73094
|
+
const { readOperatingNotes: readOperatingNotes2 } = await Promise.resolve().then(() => (init_mesh_ledger(), mesh_ledger_exports));
|
|
73095
|
+
const tail = typeof args?.tail === "number" ? args.tail : 100;
|
|
73096
|
+
const entries = readOperatingNotes2(meshId, { tail });
|
|
73097
|
+
const notes = entries.map((e) => {
|
|
73098
|
+
const p = e.payload || {};
|
|
73099
|
+
return {
|
|
73100
|
+
id: e.id,
|
|
73101
|
+
text: typeof p.text === "string" ? p.text : "",
|
|
73102
|
+
category: typeof p.category === "string" ? p.category : void 0,
|
|
73103
|
+
createdAt: typeof p.createdAt === "string" ? p.createdAt : e.timestamp,
|
|
73104
|
+
sourceCoordinator: typeof p.sourceCoordinator === "string" ? p.sourceCoordinator : void 0
|
|
73105
|
+
};
|
|
73106
|
+
});
|
|
73107
|
+
return { success: true, notes };
|
|
73108
|
+
} catch (e) {
|
|
73109
|
+
return { success: false, error: e.message };
|
|
73110
|
+
}
|
|
73111
|
+
},
|
|
73112
|
+
record_mesh_note: async (_ctx, args) => {
|
|
73113
|
+
const meshId = typeof args?.meshId === "string" ? args.meshId.trim() : "";
|
|
73114
|
+
if (!meshId) return { success: false, error: "meshId required" };
|
|
73115
|
+
const text = typeof args?.text === "string" ? args.text.trim() : "";
|
|
73116
|
+
if (!text) return { success: false, error: "text required" };
|
|
73117
|
+
try {
|
|
73118
|
+
const { appendLedgerEntry: appendLedgerEntry2 } = await Promise.resolve().then(() => (init_mesh_ledger(), mesh_ledger_exports));
|
|
73119
|
+
const category = typeof args?.category === "string" ? args.category : void 0;
|
|
73120
|
+
const entry = appendLedgerEntry2(meshId, {
|
|
73121
|
+
kind: "coordinator_operating_note",
|
|
73122
|
+
payload: {
|
|
73123
|
+
text,
|
|
73124
|
+
...category ? { category } : {},
|
|
73125
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
73126
|
+
sourceCoordinator: "dashboard"
|
|
73127
|
+
}
|
|
73128
|
+
});
|
|
73129
|
+
return { success: true, id: entry.id };
|
|
73130
|
+
} catch (e) {
|
|
73131
|
+
return { success: false, error: e.message };
|
|
73132
|
+
}
|
|
73133
|
+
},
|
|
73134
|
+
forget_mesh_note: async (_ctx, args) => {
|
|
73135
|
+
const meshId = typeof args?.meshId === "string" ? args.meshId.trim() : "";
|
|
73136
|
+
if (!meshId) return { success: false, error: "meshId required" };
|
|
73137
|
+
const noteId = typeof args?.noteId === "string" ? args.noteId.trim() : "";
|
|
73138
|
+
const text = typeof args?.text === "string" ? args.text.trim() : "";
|
|
73139
|
+
if (!noteId && !text) return { success: false, error: "noteId or text required" };
|
|
73140
|
+
try {
|
|
73141
|
+
const { tombstoneOperatingNote: tombstoneOperatingNote2 } = await Promise.resolve().then(() => (init_mesh_ledger(), mesh_ledger_exports));
|
|
73142
|
+
const reason = typeof args?.reason === "string" && args.reason.trim() ? args.reason.trim() : "dashboard_manual";
|
|
73143
|
+
const result = tombstoneOperatingNote2(meshId, {
|
|
73144
|
+
...noteId ? { noteId } : {},
|
|
73145
|
+
...text ? { text } : {},
|
|
73146
|
+
reason
|
|
73147
|
+
});
|
|
73148
|
+
return { success: true, matched: result.matched };
|
|
73149
|
+
} catch (e) {
|
|
73150
|
+
return { success: false, error: e.message };
|
|
73151
|
+
}
|
|
73152
|
+
},
|
|
73088
73153
|
import_mesh_ledger_slice: async (_ctx, args) => {
|
|
73089
73154
|
const meshId = typeof args?.meshId === "string" ? args.meshId.trim() : "";
|
|
73090
73155
|
if (!meshId) return { success: false, error: "meshId required" };
|