@adhdev/daemon-core 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 CHANGED
@@ -12493,7 +12493,7 @@ async function handleChatHistory(h, args) {
12493
12493
  }
12494
12494
  }
12495
12495
  async function handleReadChat(h, args) {
12496
- const provider = h.getProvider(args?.agentType);
12496
+ const provider = h.getProvider(args?.agentType || args?.providerType);
12497
12497
  const transport = getTargetTransport(h, provider);
12498
12498
  const historySessionId = getHistorySessionId(h, args);
12499
12499
  const _log = (msg) => LOG.debug("Command", `[read_chat] ${msg}`);
@@ -22014,7 +22014,13 @@ var DaemonCommandRouter = class {
22014
22014
  if (!workspace) return { success: false, error: "workspace required" };
22015
22015
  try {
22016
22016
  const { addNode: addNode3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
22017
- const node = addNode3(meshId, { workspace });
22017
+ const providerPriority = Array.isArray(args?.providerPriority) ? args.providerPriority.map((type) => typeof type === "string" ? type.trim() : "").filter(Boolean) : [];
22018
+ const readOnly = args?.readOnly === true;
22019
+ const policy = {
22020
+ ...readOnly ? { readOnly: true } : {},
22021
+ ...providerPriority.length ? { providerPriority } : {}
22022
+ };
22023
+ const node = addNode3(meshId, { workspace, ...policy ? { policy } : {} });
22018
22024
  if (!node) return { success: false, error: "Mesh not found" };
22019
22025
  return { success: true, node };
22020
22026
  } catch (e) {