@productbrain/mcp 0.0.1-beta.11409 → 0.0.1-beta.11417
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/{chunk-22RKKBAW.js → chunk-4G36T7FB.js} +4 -3
- package/dist/chunk-4G36T7FB.js.map +1 -0
- package/dist/{chunk-GADNIQVQ.js → chunk-GDRCAR44.js} +3 -1
- package/dist/{chunk-GADNIQVQ.js.map → chunk-GDRCAR44.js.map} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-2EXQSCSE.js → setup-J7JZV6FC.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-22RKKBAW.js.map +0 -1
- /package/dist/{setup-2EXQSCSE.js.map → setup-J7JZV6FC.js.map} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KernelCallError,
|
|
3
3
|
PASS_SESSION_ID,
|
|
4
|
+
WORKSPACE_CLOSED,
|
|
4
5
|
appUrl,
|
|
5
6
|
authorityRecovery,
|
|
6
7
|
cacheScope,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
runWithToolContext,
|
|
33
34
|
setSessionOriented,
|
|
34
35
|
startAgentSession
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GDRCAR44.js";
|
|
36
37
|
|
|
37
38
|
// src/server.ts
|
|
38
39
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -12048,7 +12049,7 @@ async function validateOrRefuse(sessionId) {
|
|
|
12048
12049
|
} catch (err) {
|
|
12049
12050
|
const { code, message, recovery } = classifyError(err);
|
|
12050
12051
|
const reason = message.split("\n")[0].replace(/\.?\s*$/, ".");
|
|
12051
|
-
const result2 = err instanceof KernelCallError && err.status >= 400 && err.status < 500 && err.status !== 429 ? failureResult(
|
|
12052
|
+
const result2 = err instanceof KernelCallError && err.status >= 400 && err.status < 500 && err.status !== 429 && err.code !== WORKSPACE_CLOSED ? failureResult(
|
|
12052
12053
|
`[SESSION_INVALID] The sessionId you passed (${sessionId}) was refused: ${reason} ${PASS_SESSION_ID}`,
|
|
12053
12054
|
"SESSION_INVALID",
|
|
12054
12055
|
`sessionId refused: ${reason}`,
|
|
@@ -12090,4 +12091,4 @@ export {
|
|
|
12090
12091
|
SERVER_VERSION,
|
|
12091
12092
|
createProductBrainServer
|
|
12092
12093
|
};
|
|
12093
|
-
//# sourceMappingURL=chunk-
|
|
12094
|
+
//# sourceMappingURL=chunk-4G36T7FB.js.map
|