@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
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { LocalMeshEntry, LocalMeshNodeEntry, RepoMeshPolicy, RepoMeshNodePolicy, RepoMeshNodeCapabilities, RepoMeshCoordinatorConfig, RepoMeshHostMetadata, RepoMeshDaemonRole } from '../repo-mesh-types.js';
|
|
9
9
|
import type { MagiKindPanelMap, MagiSlot, DifficultyBrainMap } from '@adhdev/mesh-shared';
|
|
10
|
+
export declare function normalizeCapabilityTags(value: unknown): string[] | undefined;
|
|
10
11
|
/**
|
|
11
12
|
* Normalize a Git remote URL into a stable identity string.
|
|
12
13
|
* e.g. "git@github.com:user/repo.git" → "github.com/user/repo"
|
package/dist/index.js
CHANGED
|
@@ -414,10 +414,10 @@ function readInjected(value) {
|
|
|
414
414
|
}
|
|
415
415
|
function getDaemonBuildInfo() {
|
|
416
416
|
if (cached) return cached;
|
|
417
|
-
const commit = readInjected(true ? "
|
|
418
|
-
const commitShort = readInjected(true ? "
|
|
419
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
420
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
417
|
+
const commit = readInjected(true ? "5b9e1774e6eb6318b6484d9adc6c510e9d96ea8a" : void 0) ?? "unknown";
|
|
418
|
+
const commitShort = readInjected(true ? "5b9e1774" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
419
|
+
const version = readInjected(true ? "0.9.82-rc.491" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
420
|
+
const builtAt = readInjected(true ? "2026-07-10T06:22:30.442Z" : void 0);
|
|
421
421
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
422
422
|
return cached;
|
|
423
423
|
}
|
|
@@ -3043,6 +3043,7 @@ __export(mesh_config_exports, {
|
|
|
3043
3043
|
listMagiKindPanels: () => listMagiKindPanels,
|
|
3044
3044
|
listMeshes: () => listMeshes,
|
|
3045
3045
|
markMeshHostPairingJoined: () => markMeshHostPairingJoined,
|
|
3046
|
+
normalizeCapabilityTags: () => normalizeCapabilityTags,
|
|
3046
3047
|
normalizeMagiSlots: () => normalizeMagiSlots,
|
|
3047
3048
|
normalizeRepoIdentity: () => normalizeRepoIdentity,
|
|
3048
3049
|
removeMagiKindPanel: () => removeMagiKindPanel,
|
|
@@ -55604,7 +55605,7 @@ var meshCrudHandlers = {
|
|
|
55604
55605
|
const ownerFailure = await ctx.requireMeshHostMutationOwner(meshId, args?.inlineMesh, "node update");
|
|
55605
55606
|
if (ownerFailure) return ownerFailure;
|
|
55606
55607
|
try {
|
|
55607
|
-
const { updateNode: updateNode2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
55608
|
+
const { updateNode: updateNode2, normalizeCapabilityTags: normalizeCapabilityTags2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
55608
55609
|
const policy = args?.policy && typeof args.policy === "object" && !Array.isArray(args.policy) ? { ...args.policy } : {};
|
|
55609
55610
|
if (Array.isArray(args?.providerPriority)) {
|
|
55610
55611
|
const providerPriority = args.providerPriority.map((type) => typeof type === "string" ? type.trim() : "").filter(Boolean);
|
|
@@ -55634,9 +55635,31 @@ var meshCrudHandlers = {
|
|
|
55634
55635
|
patch.capabilities = args.capabilities.map((t) => typeof t === "string" ? t.trim() : "").filter(Boolean);
|
|
55635
55636
|
}
|
|
55636
55637
|
const node = updateNode2(meshId, nodeId, patch);
|
|
55637
|
-
if (
|
|
55638
|
-
|
|
55639
|
-
|
|
55638
|
+
if (node) {
|
|
55639
|
+
ctx.invalidateAggregateMeshStatus(meshId);
|
|
55640
|
+
return { success: true, node };
|
|
55641
|
+
}
|
|
55642
|
+
const meshRecord = await ctx.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
|
|
55643
|
+
const mesh = meshRecord?.mesh;
|
|
55644
|
+
if (!mesh) return { success: false, error: "Mesh not found" };
|
|
55645
|
+
const inlineNode = Array.isArray(mesh.nodes) ? mesh.nodes.find((n) => meshNodeIdMatches(n, nodeId)) : void 0;
|
|
55646
|
+
if (!inlineNode) return { success: false, error: "Mesh node not found" };
|
|
55647
|
+
inlineNode.policy = {
|
|
55648
|
+
...inlineNode.policy && typeof inlineNode.policy === "object" && !Array.isArray(inlineNode.policy) ? inlineNode.policy : {},
|
|
55649
|
+
...patch.policy
|
|
55650
|
+
};
|
|
55651
|
+
if (Object.prototype.hasOwnProperty.call(patch, "systemPrompt")) {
|
|
55652
|
+
const sp = patch.systemPrompt;
|
|
55653
|
+
if (typeof sp === "string" && sp.trim()) inlineNode.systemPrompt = sp;
|
|
55654
|
+
else delete inlineNode.systemPrompt;
|
|
55655
|
+
}
|
|
55656
|
+
if (Object.prototype.hasOwnProperty.call(patch, "capabilities")) {
|
|
55657
|
+
const tags = normalizeCapabilityTags2(patch.capabilities);
|
|
55658
|
+
if (tags && tags.length) inlineNode.capabilities = tags;
|
|
55659
|
+
else delete inlineNode.capabilities;
|
|
55660
|
+
}
|
|
55661
|
+
ctx.updateInlineMeshNode(meshId, mesh, inlineNode);
|
|
55662
|
+
return { success: true, node: inlineNode };
|
|
55640
55663
|
} catch (e) {
|
|
55641
55664
|
return { success: false, error: e.message };
|
|
55642
55665
|
}
|