@salesforce/b2c-dx-mcp 2.1.1 → 2.1.2
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.
|
@@ -9,9 +9,6 @@ import { projectFrame, projectVariable, resolveBreakpointPath, } from '@salesfor
|
|
|
9
9
|
import { getRegistry, getSessionEntry } from './session-registry.js';
|
|
10
10
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
11
11
|
const MAX_TIMEOUT_MS = 120_000;
|
|
12
|
-
const TIMEOUT_HINT = 'Breakpoint not hit. First confirm the triggered request actually exercised this code path and the breakpoint line is reachable. ' +
|
|
13
|
-
'In some production instance group configurations (which can run multiple app servers — this never applies to sandboxes), a breakpoint may be missed because the request landed on a different app server than the one holding the debug session. ' +
|
|
14
|
-
'Only in that specific case, retrieve session_cookie from debug_list_sessions and resend the triggering request with that cookie (Cookie: <name>=<value>) to pin it to the app server holding the session.';
|
|
15
12
|
export function createDebugCaptureAtBreakpointTool(loadServices, serverContext) {
|
|
16
13
|
return createToolAdapter({
|
|
17
14
|
name: 'debug_capture_at_breakpoint',
|
|
@@ -70,7 +67,6 @@ export function createDebugCaptureAtBreakpointTool(loadServices, serverContext)
|
|
|
70
67
|
halted: false,
|
|
71
68
|
timed_out: true,
|
|
72
69
|
auto_continued: false,
|
|
73
|
-
hint: TIMEOUT_HINT,
|
|
74
70
|
};
|
|
75
71
|
}
|
|
76
72
|
const threadDetail = await entry.manager.client.getThread(thread.id);
|
|
@@ -68,9 +68,6 @@ export function createDebugStartSessionTool(loadServices, serverContext) {
|
|
|
68
68
|
for (const c of cartridges)
|
|
69
69
|
cartridgeMappings[c.name] = c.src;
|
|
70
70
|
const dwsid = manager.getSessionCookie();
|
|
71
|
-
if (!dwsid) {
|
|
72
|
-
warnings.push('No session cookie (dwsid) was returned by the debugger. Requests cannot be pinned to this app server; breakpoints may not be hit on multi-app-server instances.');
|
|
73
|
-
}
|
|
74
71
|
return {
|
|
75
72
|
session_id: entry.sessionId,
|
|
76
73
|
hostname,
|
|
@@ -9,9 +9,6 @@ import { projectThreadLocation } from '@salesforce/b2c-tooling-sdk/operations/de
|
|
|
9
9
|
import { getRegistry, getSessionEntry } from './session-registry.js';
|
|
10
10
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
11
11
|
const MAX_TIMEOUT_MS = 120_000;
|
|
12
|
-
const TIMEOUT_HINT = 'Breakpoint not hit. First confirm the request actually exercised this code path and the breakpoint line is reachable. ' +
|
|
13
|
-
'In some production instance group configurations (which can run multiple app servers — this never applies to sandboxes), a breakpoint may be missed because the request landed on a different app server than the one holding the debug session. ' +
|
|
14
|
-
'Only in that specific case, retrieve session_cookie from debug_list_sessions and resend the triggering request with that cookie (Cookie: <name>=<value>) to pin it to the app server holding the session.';
|
|
15
12
|
export function createDebugWaitForStopTool(loadServices, serverContext) {
|
|
16
13
|
return createToolAdapter({
|
|
17
14
|
name: 'debug_wait_for_stop',
|
|
@@ -32,7 +29,7 @@ export function createDebugWaitForStopTool(loadServices, serverContext) {
|
|
|
32
29
|
const timeout = Math.min(args.timeout_ms ?? DEFAULT_TIMEOUT_MS, MAX_TIMEOUT_MS);
|
|
33
30
|
const thread = await getRegistry(context).waitForHalt(entry, timeout);
|
|
34
31
|
if (!thread)
|
|
35
|
-
return { halted: false, timed_out: true
|
|
32
|
+
return { halted: false, timed_out: true };
|
|
36
33
|
const location = projectThreadLocation(thread, entry.sourceMapper);
|
|
37
34
|
return {
|
|
38
35
|
halted: true,
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/b2c-dx-mcp",
|
|
3
3
|
"description": "MCP server for B2C Commerce developer experience tools",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "SalesforceCommerceCloud/b2c-developer-tooling",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"yaml": "2.9.0",
|
|
81
81
|
"postcss": "8.5.15",
|
|
82
82
|
"zod": "3.25.76",
|
|
83
|
-
"@salesforce/b2c-tooling-sdk": "1.24.
|
|
83
|
+
"@salesforce/b2c-tooling-sdk": "1.24.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@eslint/compat": "^1",
|