adhdev 0.9.73 → 0.9.74
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/cli/index.js +11 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +15 -3
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -39925,6 +39925,10 @@ var init_router = __esm({
|
|
|
39925
39925
|
READ_DEBUG_ENABLED2 = process.argv.includes("--dev") || process.env.ADHDEV_READ_DEBUG === "1";
|
|
39926
39926
|
DaemonCommandRouter = class {
|
|
39927
39927
|
deps;
|
|
39928
|
+
/** In-memory cache for cloud-originating meshes passed via inlineMesh.
|
|
39929
|
+
* Allows the MCP server to query mesh data via get_mesh even when
|
|
39930
|
+
* the mesh doesn't exist in the local meshes.json file. */
|
|
39931
|
+
inlineMeshCache = /* @__PURE__ */ new Map();
|
|
39928
39932
|
constructor(deps) {
|
|
39929
39933
|
this.deps = deps;
|
|
39930
39934
|
}
|
|
@@ -40573,11 +40577,12 @@ var init_router = __esm({
|
|
|
40573
40577
|
try {
|
|
40574
40578
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
40575
40579
|
const mesh = getMesh3(meshId);
|
|
40576
|
-
if (
|
|
40577
|
-
|
|
40578
|
-
} catch (e) {
|
|
40579
|
-
return { success: false, error: e.message };
|
|
40580
|
+
if (mesh) return { success: true, mesh };
|
|
40581
|
+
} catch {
|
|
40580
40582
|
}
|
|
40583
|
+
const cached2 = this.inlineMeshCache.get(meshId);
|
|
40584
|
+
if (cached2) return { success: true, mesh: cached2 };
|
|
40585
|
+
return { success: false, error: "Mesh not found" };
|
|
40581
40586
|
}
|
|
40582
40587
|
case "create_mesh": {
|
|
40583
40588
|
const name = typeof args?.name === "string" ? args.name.trim() : "";
|
|
@@ -40640,6 +40645,7 @@ var init_router = __esm({
|
|
|
40640
40645
|
let mesh;
|
|
40641
40646
|
if (args?.inlineMesh && typeof args.inlineMesh === "object") {
|
|
40642
40647
|
mesh = args.inlineMesh;
|
|
40648
|
+
this.inlineMeshCache.set(meshId, mesh);
|
|
40643
40649
|
} else {
|
|
40644
40650
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
40645
40651
|
mesh = getMesh3(meshId);
|
|
@@ -59110,7 +59116,7 @@ var init_adhdev_daemon = __esm({
|
|
|
59110
59116
|
init_version();
|
|
59111
59117
|
init_src();
|
|
59112
59118
|
init_runtime_defaults();
|
|
59113
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
59119
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.74" });
|
|
59114
59120
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
59115
59121
|
localHttpServer = null;
|
|
59116
59122
|
localWss = null;
|