@adhdev/daemon-core 0.9.82-rc.12 → 0.9.82-rc.13
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 +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +2 -8
package/package.json
CHANGED
package/src/commands/router.ts
CHANGED
|
@@ -2081,14 +2081,8 @@ export class DaemonCommandRouter {
|
|
|
2081
2081
|
case 'get_mesh': {
|
|
2082
2082
|
const meshId = typeof args?.meshId === 'string' ? args.meshId.trim() : '';
|
|
2083
2083
|
if (!meshId) return { success: false, error: 'meshId required' };
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
const mesh = getMesh(meshId);
|
|
2087
|
-
if (mesh) return { success: true, mesh };
|
|
2088
|
-
} catch { /* fall through to inline cache */ }
|
|
2089
|
-
// Fallback: check in-memory cache for cloud-originating meshes
|
|
2090
|
-
const cached = this.inlineMeshCache.get(meshId);
|
|
2091
|
-
if (cached) return { success: true, mesh: cached };
|
|
2084
|
+
const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
|
|
2085
|
+
if (meshRecord?.mesh) return { success: true, mesh: meshRecord.mesh };
|
|
2092
2086
|
return { success: false, error: 'Mesh not found' };
|
|
2093
2087
|
}
|
|
2094
2088
|
|