@adhdev/daemon-standalone 0.9.77-rc.45 → 0.9.77-rc.46
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 +16 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +126 -13
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -22416,7 +22416,8 @@ ${error48.message || ""}`;
|
|
|
22416
22416
|
};
|
|
22417
22417
|
}
|
|
22418
22418
|
function getConfigDir() {
|
|
22419
|
-
const
|
|
22419
|
+
const override = process.env.ADHDEV_CONFIG_DIR;
|
|
22420
|
+
const dir = override && override.trim() ? override.trim() : (0, import_path2.join)((0, import_os2.homedir)(), ".adhdev");
|
|
22420
22421
|
if (!(0, import_fs.existsSync)(dir)) {
|
|
22421
22422
|
(0, import_fs.mkdirSync)(dir, { recursive: true });
|
|
22422
22423
|
}
|
|
@@ -23277,12 +23278,20 @@ Follow these recovery rules:
|
|
|
23277
23278
|
}
|
|
23278
23279
|
function getMeshQueueStats(meshId) {
|
|
23279
23280
|
const queue = readQueue(meshId);
|
|
23281
|
+
const pending = queue.filter((q) => q.status === "pending").length;
|
|
23282
|
+
const assigned = queue.filter((q) => q.status === "assigned").length;
|
|
23283
|
+
const completed = queue.filter((q) => q.status === "completed").length;
|
|
23284
|
+
const failed = queue.filter((q) => q.status === "failed").length;
|
|
23285
|
+
const cancelled = queue.filter((q) => q.status === "cancelled").length;
|
|
23280
23286
|
return {
|
|
23281
|
-
|
|
23282
|
-
|
|
23283
|
-
|
|
23284
|
-
|
|
23285
|
-
|
|
23287
|
+
total: queue.length,
|
|
23288
|
+
active: pending + assigned,
|
|
23289
|
+
historical: completed + failed + cancelled,
|
|
23290
|
+
pending,
|
|
23291
|
+
assigned,
|
|
23292
|
+
completed,
|
|
23293
|
+
failed,
|
|
23294
|
+
cancelled,
|
|
23286
23295
|
activeAssignments: queue.filter((q) => q.status === "assigned").map((q) => ({
|
|
23287
23296
|
id: q.id,
|
|
23288
23297
|
nodeId: q.assignedNodeId,
|
|
@@ -29059,7 +29068,7 @@ ${lastSnapshot}`;
|
|
|
29059
29068
|
}
|
|
29060
29069
|
}
|
|
29061
29070
|
const v = validateWorkspacePath(abs);
|
|
29062
|
-
if (
|
|
29071
|
+
if (v.ok !== true) return { error: v.error };
|
|
29063
29072
|
const list = [...config2.workspaces || []];
|
|
29064
29073
|
if (list.some((w) => path52.resolve(w.path) === abs)) {
|
|
29065
29074
|
return { error: "Workspace already in list" };
|