@adhdev/daemon-core 0.9.76-rc.24 → 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
|
@@ -53,6 +53,7 @@ export interface RepoMeshNodePolicy {
|
|
|
53
53
|
readOnly?: boolean;
|
|
54
54
|
canPush?: boolean;
|
|
55
55
|
maxConcurrentSessions?: number;
|
|
56
|
+
providerPriority?: string[];
|
|
56
57
|
}
|
|
57
58
|
export declare const DEFAULT_MESH_POLICY: RepoMeshPolicy;
|
|
58
59
|
export interface RepoMeshNodeCapabilities {
|
package/package.json
CHANGED
|
@@ -758,7 +758,7 @@ export async function handleChatHistory(h: CommandHelpers, args: any): Promise<C
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
export async function handleReadChat(h: CommandHelpers, args: any): Promise<CommandResult> {
|
|
761
|
-
const provider = h.getProvider(args?.agentType);
|
|
761
|
+
const provider = h.getProvider(args?.agentType || args?.providerType);
|
|
762
762
|
const transport = getTargetTransport(h, provider);
|
|
763
763
|
const historySessionId = getHistorySessionId(h, args);
|
|
764
764
|
|
package/src/commands/router.ts
CHANGED
|
@@ -1069,7 +1069,15 @@ export class DaemonCommandRouter {
|
|
|
1069
1069
|
if (!workspace) return { success: false, error: 'workspace required' };
|
|
1070
1070
|
try {
|
|
1071
1071
|
const { addNode } = await import('../config/mesh-config.js');
|
|
1072
|
-
const
|
|
1072
|
+
const providerPriority = Array.isArray(args?.providerPriority)
|
|
1073
|
+
? args.providerPriority.map((type: any) => typeof type === 'string' ? type.trim() : '').filter(Boolean)
|
|
1074
|
+
: [];
|
|
1075
|
+
const readOnly = args?.readOnly === true;
|
|
1076
|
+
const policy = {
|
|
1077
|
+
...(readOnly ? { readOnly: true } : {}),
|
|
1078
|
+
...(providerPriority.length ? { providerPriority } : {}),
|
|
1079
|
+
};
|
|
1080
|
+
const node = addNode(meshId, { workspace, ...(policy ? { policy } : {}) });
|
|
1073
1081
|
if (!node) return { success: false, error: 'Mesh not found' };
|
|
1074
1082
|
return { success: true, node };
|
|
1075
1083
|
} catch (e: any) {
|