clay-server 2.27.0-beta.5 → 2.27.0-beta.7
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/lib/project-debate.js +4 -0
- package/lib/sdk-bridge.js +4 -4
- package/package.json +1 -1
package/lib/project-debate.js
CHANGED
|
@@ -299,6 +299,10 @@ function attachDebate(ctx) {
|
|
|
299
299
|
}),
|
|
300
300
|
};
|
|
301
301
|
ctx.sendToSession(session.localId, briefReadyMsg);
|
|
302
|
+
// Also send to setup session if client switched there (quickStart flow)
|
|
303
|
+
if (debate.setupSessionId && debate.setupSessionId !== session.localId) {
|
|
304
|
+
ctx.sendToSession(debate.setupSessionId, briefReadyMsg);
|
|
305
|
+
}
|
|
302
306
|
} else {
|
|
303
307
|
console.log("[debate] Brief picked up, transitioning to live. Topic:", debate.topic);
|
|
304
308
|
// Transition to live (standard flow via modal/skill)
|
package/lib/sdk-bridge.js
CHANGED
|
@@ -2375,9 +2375,9 @@ function createSDKBridge(opts) {
|
|
|
2375
2375
|
includePartialMessages: true,
|
|
2376
2376
|
abortController: abortController,
|
|
2377
2377
|
canUseTool: opts.canUseTool || function (toolName, input) {
|
|
2378
|
-
var
|
|
2379
|
-
if (
|
|
2380
|
-
return Promise.resolve(
|
|
2378
|
+
var whitelisted = checkToolWhitelist(toolName, input);
|
|
2379
|
+
if (whitelisted) {
|
|
2380
|
+
return Promise.resolve(whitelisted);
|
|
2381
2381
|
}
|
|
2382
2382
|
return Promise.resolve({
|
|
2383
2383
|
behavior: "deny",
|
|
@@ -2386,7 +2386,7 @@ function createSDKBridge(opts) {
|
|
|
2386
2386
|
},
|
|
2387
2387
|
};
|
|
2388
2388
|
if (opts.model) mentionQueryOptions.model = opts.model;
|
|
2389
|
-
if (mcpServers) mentionQueryOptions.mcpServers = mcpServers;
|
|
2389
|
+
if (opts.includeMcpServers && mcpServers) mentionQueryOptions.mcpServers = mcpServers;
|
|
2390
2390
|
query = sdk.query({
|
|
2391
2391
|
prompt: mq,
|
|
2392
2392
|
options: mentionQueryOptions,
|