@productbrain/mcp 0.0.1-beta.11407 → 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-FYYPTIZM.js → chunk-4G36T7FB.js} +6 -5
- package/dist/chunk-4G36T7FB.js.map +1 -0
- package/dist/{chunk-4NBFX5VR.js → chunk-GDRCAR44.js} +13 -10
- package/dist/chunk-GDRCAR44.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-RFQUWWO7.js → setup-J7JZV6FC.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-4NBFX5VR.js.map +0 -1
- package/dist/chunk-FYYPTIZM.js.map +0 -1
- /package/dist/{setup-RFQUWWO7.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";
|
|
@@ -2690,7 +2691,7 @@ async function handleEntryPreflight(collection, canonicalKey, links) {
|
|
|
2690
2691
|
return { content: [{ type: "text", text: renderEntryPreflight(result2).join("\n") }], structuredContent: success("Structural requirements checked; nothing saved.", result2) };
|
|
2691
2692
|
}
|
|
2692
2693
|
async function handleGet(entryId) {
|
|
2693
|
-
const entry = await kernelQuery("chain.getEntry", { entryId });
|
|
2694
|
+
const entry = await kernelQuery("chain.getEntry", { entryId }, { recall: true });
|
|
2694
2695
|
if (!entry) {
|
|
2695
2696
|
return notFoundResult(entryId, `Entry '${entryId}' not found. Try search to find the right ID.`);
|
|
2696
2697
|
}
|
|
@@ -2793,7 +2794,7 @@ async function handleGet(entryId) {
|
|
|
2793
2794
|
};
|
|
2794
2795
|
}
|
|
2795
2796
|
async function handleBatch(entryIds) {
|
|
2796
|
-
const results = await kernelQuery("chain.batchGetEntries", { entryIds });
|
|
2797
|
+
const results = await kernelQuery("chain.batchGetEntries", { entryIds }, { recall: true });
|
|
2797
2798
|
const lines = [`## Batch Result`, "", `# Batch Get (${results.length} requested)`, ""];
|
|
2798
2799
|
for (let i = 0; i < results.length; i++) {
|
|
2799
2800
|
const r = results[i];
|
|
@@ -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
|