@adhdev/daemon-standalone 0.9.76-rc.23 → 0.9.76-rc.25
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 +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +60 -8
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -43592,7 +43592,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
43592
43592
|
}
|
|
43593
43593
|
}
|
|
43594
43594
|
async function handleReadChat(h, args) {
|
|
43595
|
-
const provider = h.getProvider(args?.agentType);
|
|
43595
|
+
const provider = h.getProvider(args?.agentType || args?.providerType);
|
|
43596
43596
|
const transport = getTargetTransport(h, provider);
|
|
43597
43597
|
const historySessionId = getHistorySessionId(h, args);
|
|
43598
43598
|
const _log = (msg) => LOG2.debug("Command", `[read_chat] ${msg}`);
|
|
@@ -53057,7 +53057,13 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
53057
53057
|
if (!workspace) return { success: false, error: "workspace required" };
|
|
53058
53058
|
try {
|
|
53059
53059
|
const { addNode: addNode3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
53060
|
-
const
|
|
53060
|
+
const providerPriority = Array.isArray(args?.providerPriority) ? args.providerPriority.map((type) => typeof type === "string" ? type.trim() : "").filter(Boolean) : [];
|
|
53061
|
+
const readOnly = args?.readOnly === true;
|
|
53062
|
+
const policy = {
|
|
53063
|
+
...readOnly ? { readOnly: true } : {},
|
|
53064
|
+
...providerPriority.length ? { providerPriority } : {}
|
|
53065
|
+
};
|
|
53066
|
+
const node = addNode3(meshId, { workspace, ...policy ? { policy } : {} });
|
|
53061
53067
|
if (!node) return { success: false, error: "Mesh not found" };
|
|
53062
53068
|
return { success: true, node };
|
|
53063
53069
|
} catch (e) {
|