@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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/repo-mesh-types.d.ts +1 -0
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +1 -1
- package/src/commands/router.ts +9 -1
- package/src/repo-mesh-types.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -12296,7 +12296,7 @@ async function handleChatHistory(h, args) {
|
|
|
12296
12296
|
}
|
|
12297
12297
|
}
|
|
12298
12298
|
async function handleReadChat(h, args) {
|
|
12299
|
-
const provider = h.getProvider(args?.agentType);
|
|
12299
|
+
const provider = h.getProvider(args?.agentType || args?.providerType);
|
|
12300
12300
|
const transport = getTargetTransport(h, provider);
|
|
12301
12301
|
const historySessionId = getHistorySessionId(h, args);
|
|
12302
12302
|
const _log = (msg) => LOG.debug("Command", `[read_chat] ${msg}`);
|
|
@@ -21822,7 +21822,13 @@ var DaemonCommandRouter = class {
|
|
|
21822
21822
|
if (!workspace) return { success: false, error: "workspace required" };
|
|
21823
21823
|
try {
|
|
21824
21824
|
const { addNode: addNode3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
21825
|
-
const
|
|
21825
|
+
const providerPriority = Array.isArray(args?.providerPriority) ? args.providerPriority.map((type) => typeof type === "string" ? type.trim() : "").filter(Boolean) : [];
|
|
21826
|
+
const readOnly = args?.readOnly === true;
|
|
21827
|
+
const policy = {
|
|
21828
|
+
...readOnly ? { readOnly: true } : {},
|
|
21829
|
+
...providerPriority.length ? { providerPriority } : {}
|
|
21830
|
+
};
|
|
21831
|
+
const node = addNode3(meshId, { workspace, ...policy ? { policy } : {} });
|
|
21826
21832
|
if (!node) return { success: false, error: "Mesh not found" };
|
|
21827
21833
|
return { success: true, node };
|
|
21828
21834
|
} catch (e) {
|