adhdev 0.9.72 → 0.9.73
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 +15 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +1 -1
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -40646,7 +40646,20 @@ var init_router = __esm({
|
|
|
40646
40646
|
}
|
|
40647
40647
|
if (!mesh) return { success: false, error: "Mesh not found" };
|
|
40648
40648
|
if (!Array.isArray(mesh.nodes) || mesh.nodes.length === 0) return { success: false, error: "No nodes in mesh" };
|
|
40649
|
-
const
|
|
40649
|
+
const requestedCoordinatorNodeId = typeof args?.coordinatorNodeId === "string" ? args.coordinatorNodeId.trim() : "";
|
|
40650
|
+
const preferredCoordinatorNodeId = requestedCoordinatorNodeId || (typeof mesh.coordinator?.preferredNodeId === "string" ? mesh.coordinator.preferredNodeId.trim() : "");
|
|
40651
|
+
const coordinatorNode = preferredCoordinatorNodeId ? mesh.nodes.find((node) => node?.id === preferredCoordinatorNodeId || node?.nodeId === preferredCoordinatorNodeId) : mesh.nodes[0];
|
|
40652
|
+
if (!coordinatorNode) {
|
|
40653
|
+
return {
|
|
40654
|
+
success: false,
|
|
40655
|
+
code: "mesh_coordinator_node_not_found",
|
|
40656
|
+
error: `Coordinator node ${preferredCoordinatorNodeId} was not found in mesh`,
|
|
40657
|
+
meshId,
|
|
40658
|
+
cliType
|
|
40659
|
+
};
|
|
40660
|
+
}
|
|
40661
|
+
const workspace = typeof coordinatorNode.workspace === "string" ? coordinatorNode.workspace.trim() : "";
|
|
40662
|
+
if (!workspace) return { success: false, error: "Coordinator node workspace required", meshId, cliType };
|
|
40650
40663
|
const providerMeta = this.deps.providerLoader.resolve?.(cliType) || this.deps.providerLoader.getMeta(cliType);
|
|
40651
40664
|
const coordinatorSetup = resolveMeshCoordinatorSetup({
|
|
40652
40665
|
provider: providerMeta,
|
|
@@ -59097,7 +59110,7 @@ var init_adhdev_daemon = __esm({
|
|
|
59097
59110
|
init_version();
|
|
59098
59111
|
init_src();
|
|
59099
59112
|
init_runtime_defaults();
|
|
59100
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
59113
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.73" });
|
|
59101
59114
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
59102
59115
|
localHttpServer = null;
|
|
59103
59116
|
localWss = null;
|