@productbrain/mcp 0.0.1-beta.122 → 0.0.1-beta.125

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.
@@ -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-G4WJIWXX.js.map
3647
+ //# sourceMappingURL=chunk-UUI7P743.js.map