@productbrain/mcp 0.0.1-beta.122 → 0.0.1-beta.124
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-ZFODPVNH.js → chunk-SDLQPEK6.js} +4 -4
- package/dist/{chunk-G4WJIWXX.js → chunk-UUI7P743.js} +8 -4
- package/dist/chunk-UUI7P743.js.map +1 -0
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{smart-capture-CVZ5PLUZ.js → smart-capture-LJ6JF5DC.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-G4WJIWXX.js.map +0 -1
- /package/dist/{chunk-ZFODPVNH.js.map → chunk-SDLQPEK6.js.map} +0 -0
- /package/dist/{smart-capture-CVZ5PLUZ.js.map → smart-capture-LJ6JF5DC.js.map} +0 -0
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
unknownAction,
|
|
45
45
|
validationResult,
|
|
46
46
|
withEnvelope
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UUI7P743.js";
|
|
48
48
|
import {
|
|
49
49
|
trackChainEntryCommitted,
|
|
50
50
|
trackKnowledgeGap,
|
|
@@ -273,7 +273,7 @@ ${formatted}` }],
|
|
|
273
273
|
},
|
|
274
274
|
withEnvelope(async ({ entryId }) => {
|
|
275
275
|
requireWriteAccess();
|
|
276
|
-
const { runContradictionCheck } = await import("./smart-capture-
|
|
276
|
+
const { runContradictionCheck } = await import("./smart-capture-LJ6JF5DC.js");
|
|
277
277
|
const entry = await mcpQuery("chain.getEntry", { entryId });
|
|
278
278
|
if (!entry) {
|
|
279
279
|
return notFoundResult(entryId, `Entry '${entryId}' not found. Try search to find the right ID.`);
|
|
@@ -6047,7 +6047,7 @@ async function handleCommitConstellation(args) {
|
|
|
6047
6047
|
}
|
|
6048
6048
|
let contradictionWarnings = [];
|
|
6049
6049
|
try {
|
|
6050
|
-
const { runContradictionCheck } = await import("./smart-capture-
|
|
6050
|
+
const { runContradictionCheck } = await import("./smart-capture-LJ6JF5DC.js");
|
|
6051
6051
|
const links = betData["links"];
|
|
6052
6052
|
const descField = betData.problem ?? links?.problem ?? betData.description ?? "";
|
|
6053
6053
|
contradictionWarnings = await runContradictionCheck(
|
|
@@ -11528,4 +11528,4 @@ export {
|
|
|
11528
11528
|
SERVER_VERSION,
|
|
11529
11529
|
createProductBrainServer
|
|
11530
11530
|
};
|
|
11531
|
-
//# sourceMappingURL=chunk-
|
|
11531
|
+
//# sourceMappingURL=chunk-SDLQPEK6.js.map
|
|
@@ -1962,7 +1962,9 @@ var captureSchema = z2.object({
|
|
|
1962
1962
|
})).optional().describe("Relations to create after capture. Skips auto-link discovery when provided."),
|
|
1963
1963
|
autoCommit: z2.boolean().optional().describe(
|
|
1964
1964
|
"If true, commits the entry immediately after capture + linking. If omitted, Open mode workspaces auto-commit by default and consensus/role modes stay draft-first."
|
|
1965
|
-
)
|
|
1965
|
+
),
|
|
1966
|
+
sourceRef: z2.string().optional().describe("URI or path of the source document backing this entry (e.g. 'meeting-2026-03-28.md', 'import://batch-5'). Stored as top-level entry field, not in data."),
|
|
1967
|
+
sourceExcerpt: z2.string().optional().describe("Verbatim excerpt from the source that backs this entry's claims. Stored as top-level entry field, not in data.")
|
|
1966
1968
|
});
|
|
1967
1969
|
var batchCaptureSchema = z2.object({
|
|
1968
1970
|
entries: z2.array(z2.object({
|
|
@@ -2329,7 +2331,7 @@ function registerSmartCaptureTools(server) {
|
|
|
2329
2331
|
inputSchema: captureSchema.shape,
|
|
2330
2332
|
annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: false }
|
|
2331
2333
|
},
|
|
2332
|
-
withEnvelope(async ({ collection, name, description, context, entryId, canonicalKey, data: userData, links, autoCommit }) => {
|
|
2334
|
+
withEnvelope(async ({ collection, name, description, context, entryId, canonicalKey, data: userData, links, autoCommit, sourceRef, sourceExcerpt }) => {
|
|
2333
2335
|
requireWriteAccess();
|
|
2334
2336
|
const timingStart = Date.now();
|
|
2335
2337
|
const wsCtx = await getWorkspaceContext();
|
|
@@ -2478,7 +2480,9 @@ Or use \`collections action=list\` to see available collections.`
|
|
|
2478
2480
|
data,
|
|
2479
2481
|
canonicalKey,
|
|
2480
2482
|
createdBy: agentId ? `agent:${agentId}` : "capture",
|
|
2481
|
-
sessionId: agentId ?? void 0
|
|
2483
|
+
sessionId: agentId ?? void 0,
|
|
2484
|
+
...sourceRef ? { sourceRef } : {},
|
|
2485
|
+
...sourceExcerpt ? { sourceExcerpt } : {}
|
|
2482
2486
|
});
|
|
2483
2487
|
internalId = result.docId;
|
|
2484
2488
|
finalEntryId = result.entryId;
|
|
@@ -3640,4 +3644,4 @@ export {
|
|
|
3640
3644
|
formatRubricCoaching,
|
|
3641
3645
|
formatRubricVerdictSection
|
|
3642
3646
|
};
|
|
3643
|
-
//# sourceMappingURL=chunk-
|
|
3647
|
+
//# sourceMappingURL=chunk-UUI7P743.js.map
|