@adhdev/daemon-core 0.9.82-rc.490 → 0.9.82-rc.491
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/config/mesh-config.d.ts +1 -0
- package/dist/index.js +31 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/commands/med-family/mesh-crud.ts +49 -8
- package/src/config/mesh-config.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -409,10 +409,10 @@ function readInjected(value) {
|
|
|
409
409
|
}
|
|
410
410
|
function getDaemonBuildInfo() {
|
|
411
411
|
if (cached) return cached;
|
|
412
|
-
const commit = readInjected(true ? "
|
|
413
|
-
const commitShort = readInjected(true ? "
|
|
414
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
415
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
412
|
+
const commit = readInjected(true ? "5b9e1774e6eb6318b6484d9adc6c510e9d96ea8a" : void 0) ?? "unknown";
|
|
413
|
+
const commitShort = readInjected(true ? "5b9e1774" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
414
|
+
const version = readInjected(true ? "0.9.82-rc.491" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
415
|
+
const builtAt = readInjected(true ? "2026-07-10T06:22:30.442Z" : void 0);
|
|
416
416
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
417
417
|
return cached;
|
|
418
418
|
}
|
|
@@ -3037,6 +3037,7 @@ __export(mesh_config_exports, {
|
|
|
3037
3037
|
listMagiKindPanels: () => listMagiKindPanels,
|
|
3038
3038
|
listMeshes: () => listMeshes,
|
|
3039
3039
|
markMeshHostPairingJoined: () => markMeshHostPairingJoined,
|
|
3040
|
+
normalizeCapabilityTags: () => normalizeCapabilityTags,
|
|
3040
3041
|
normalizeMagiSlots: () => normalizeMagiSlots,
|
|
3041
3042
|
normalizeRepoIdentity: () => normalizeRepoIdentity,
|
|
3042
3043
|
removeMagiKindPanel: () => removeMagiKindPanel,
|
|
@@ -55189,7 +55190,7 @@ var meshCrudHandlers = {
|
|
|
55189
55190
|
const ownerFailure = await ctx.requireMeshHostMutationOwner(meshId, args?.inlineMesh, "node update");
|
|
55190
55191
|
if (ownerFailure) return ownerFailure;
|
|
55191
55192
|
try {
|
|
55192
|
-
const { updateNode: updateNode2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
55193
|
+
const { updateNode: updateNode2, normalizeCapabilityTags: normalizeCapabilityTags2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
55193
55194
|
const policy = args?.policy && typeof args.policy === "object" && !Array.isArray(args.policy) ? { ...args.policy } : {};
|
|
55194
55195
|
if (Array.isArray(args?.providerPriority)) {
|
|
55195
55196
|
const providerPriority = args.providerPriority.map((type) => typeof type === "string" ? type.trim() : "").filter(Boolean);
|
|
@@ -55219,9 +55220,31 @@ var meshCrudHandlers = {
|
|
|
55219
55220
|
patch.capabilities = args.capabilities.map((t) => typeof t === "string" ? t.trim() : "").filter(Boolean);
|
|
55220
55221
|
}
|
|
55221
55222
|
const node = updateNode2(meshId, nodeId, patch);
|
|
55222
|
-
if (
|
|
55223
|
-
|
|
55224
|
-
|
|
55223
|
+
if (node) {
|
|
55224
|
+
ctx.invalidateAggregateMeshStatus(meshId);
|
|
55225
|
+
return { success: true, node };
|
|
55226
|
+
}
|
|
55227
|
+
const meshRecord = await ctx.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
|
|
55228
|
+
const mesh = meshRecord?.mesh;
|
|
55229
|
+
if (!mesh) return { success: false, error: "Mesh not found" };
|
|
55230
|
+
const inlineNode = Array.isArray(mesh.nodes) ? mesh.nodes.find((n) => meshNodeIdMatches(n, nodeId)) : void 0;
|
|
55231
|
+
if (!inlineNode) return { success: false, error: "Mesh node not found" };
|
|
55232
|
+
inlineNode.policy = {
|
|
55233
|
+
...inlineNode.policy && typeof inlineNode.policy === "object" && !Array.isArray(inlineNode.policy) ? inlineNode.policy : {},
|
|
55234
|
+
...patch.policy
|
|
55235
|
+
};
|
|
55236
|
+
if (Object.prototype.hasOwnProperty.call(patch, "systemPrompt")) {
|
|
55237
|
+
const sp = patch.systemPrompt;
|
|
55238
|
+
if (typeof sp === "string" && sp.trim()) inlineNode.systemPrompt = sp;
|
|
55239
|
+
else delete inlineNode.systemPrompt;
|
|
55240
|
+
}
|
|
55241
|
+
if (Object.prototype.hasOwnProperty.call(patch, "capabilities")) {
|
|
55242
|
+
const tags = normalizeCapabilityTags2(patch.capabilities);
|
|
55243
|
+
if (tags && tags.length) inlineNode.capabilities = tags;
|
|
55244
|
+
else delete inlineNode.capabilities;
|
|
55245
|
+
}
|
|
55246
|
+
ctx.updateInlineMeshNode(meshId, mesh, inlineNode);
|
|
55247
|
+
return { success: true, node: inlineNode };
|
|
55225
55248
|
} catch (e) {
|
|
55226
55249
|
return { success: false, error: e.message };
|
|
55227
55250
|
}
|