@productbrain/mcp 0.0.1-beta.6266 → 0.0.1-beta.6274
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.
|
@@ -1470,7 +1470,6 @@ function buildCaptureForRealNextAction(payload) {
|
|
|
1470
1470
|
autoCommit,
|
|
1471
1471
|
sourceRef,
|
|
1472
1472
|
sourceExcerpt,
|
|
1473
|
-
ownerTeamEntryId,
|
|
1474
1473
|
ownerRoleEntryId
|
|
1475
1474
|
} = payload;
|
|
1476
1475
|
return [{
|
|
@@ -1488,7 +1487,6 @@ function buildCaptureForRealNextAction(payload) {
|
|
|
1488
1487
|
...autoCommit !== void 0 ? { autoCommit } : {},
|
|
1489
1488
|
...sourceRef ? { sourceRef } : {},
|
|
1490
1489
|
...sourceExcerpt ? { sourceExcerpt } : {},
|
|
1491
|
-
...ownerTeamEntryId ? { ownerTeamEntryId } : {},
|
|
1492
1490
|
...ownerRoleEntryId ? { ownerRoleEntryId } : {}
|
|
1493
1491
|
}
|
|
1494
1492
|
}];
|
|
@@ -1839,9 +1837,10 @@ var captureSchema = z6.object({
|
|
|
1839
1837
|
suggestOnly: z6.boolean().optional().describe("If true, runs pre-write grounding (suggestLinksForCapture) and returns a groundingReport WITHOUT creating any entry. Use to preview graph participation before accepting. Default false."),
|
|
1840
1838
|
// WP-318 S2: Format for groundingReport in response.
|
|
1841
1839
|
format: z6.enum(["agent", "human"]).optional().describe("Response format for grounding data. 'agent' (default): full JSON groundingReport. 'human': compressed summary string appended to the capture summary."),
|
|
1842
|
-
// WP-513:
|
|
1843
|
-
ownerTeamEntryId
|
|
1844
|
-
|
|
1840
|
+
// WP-513: explicit role to create AS OWNER of (rung 2 only). WP-753 O1b (DEC-1715):
|
|
1841
|
+
// ownerTeamEntryId is deleted — the server derives the team from the role's own placement,
|
|
1842
|
+
// and an unnamed create resolves a default owner itself instead of landing ownerless.
|
|
1843
|
+
ownerRoleEntryId: z6.string().max(200).optional().describe("Owning role entry ID/ref (rung 2); its home team is derived automatically.")
|
|
1845
1844
|
});
|
|
1846
1845
|
var batchCaptureRelationSchema = z6.object({
|
|
1847
1846
|
to: z6.string().max(200).describe("Target entry ID already on the Chain, e.g. '<PREFIX>-<n>'."),
|
|
@@ -1860,9 +1859,9 @@ var batchCaptureSchema = z6.object({
|
|
|
1860
1859
|
sourceExcerpt: z6.string().max(5e3).optional().describe("Verbatim excerpt from the source that backs this entry's claims. Stored as top-level entry field, not in data."),
|
|
1861
1860
|
// TEN-957 (WP-484 S2): relations to create right after this entry is captured.
|
|
1862
1861
|
relations: z6.array(batchCaptureRelationSchema).max(10).optional().describe("Relations to create right after this entry is captured \u2014 each {to, type} links the NEW entry to an existing Chain entry."),
|
|
1863
|
-
// WP-513:
|
|
1864
|
-
ownerTeamEntryId
|
|
1865
|
-
ownerRoleEntryId: z6.string().max(200).optional().describe("Owning role entry ID/ref (rung 2).")
|
|
1862
|
+
// WP-513: explicit role to create THIS entry AS OWNER of (rung 2 only). WP-753 O1b:
|
|
1863
|
+
// ownerTeamEntryId deleted — team derives from the role's own placement.
|
|
1864
|
+
ownerRoleEntryId: z6.string().max(200).optional().describe("Owning role entry ID/ref (rung 2); its home team is derived automatically.")
|
|
1866
1865
|
})).min(1).max(50).describe("Array of entries to capture"),
|
|
1867
1866
|
autoCommit: z6.boolean().optional().describe(
|
|
1868
1867
|
"If true, commits created entries immediately after linking. If omitted, Open mode workspaces commit by default and consensus/role modes stay draft-first."
|
|
@@ -2208,9 +2207,9 @@ var captureCompoundSchema = z6.object({
|
|
|
2208
2207
|
format: z6.enum(["agent", "human"]).optional().describe("For 'capture': response format for grounding data."),
|
|
2209
2208
|
// For 'batch' — mirrors batchCaptureSchema's `entries`, renamed `items` per §3.
|
|
2210
2209
|
items: z6.array(captureItemSchema).min(1).max(50).optional().describe("For 'batch': array of entries to capture, each may carry inline `relations`."),
|
|
2211
|
-
// WP-513:
|
|
2212
|
-
|
|
2213
|
-
ownerRoleEntryId: z6.string().max(200).optional().describe("For 'capture': owning role (rung-2).")
|
|
2210
|
+
// WP-513: explicit role to create AS OWNER of (rung 2 only). WP-753 O1b: ownerTeamEntryId
|
|
2211
|
+
// deleted — team derives from the role's own placement.
|
|
2212
|
+
ownerRoleEntryId: z6.string().max(200).optional().describe("For 'capture': owning role (rung-2); its home team is derived automatically.")
|
|
2214
2213
|
});
|
|
2215
2214
|
var captureSingleVariant = captureSchema.extend({ action: z6.literal("capture") });
|
|
2216
2215
|
var captureBatchVariant = z6.object({
|
|
@@ -2254,7 +2253,7 @@ function registerSmartCaptureTools(server) {
|
|
|
2254
2253
|
})
|
|
2255
2254
|
);
|
|
2256
2255
|
}
|
|
2257
|
-
async function handleCapture(server, { collection, name, description, context, entryId, canonicalKey, data: userData, links, autoCommit, sourceRef, sourceExcerpt, preview, suggestOnly, format,
|
|
2256
|
+
async function handleCapture(server, { collection, name, description, context, entryId, canonicalKey, data: userData, links, autoCommit, sourceRef, sourceExcerpt, preview, suggestOnly, format, ownerRoleEntryId }) {
|
|
2258
2257
|
requireWriteAccess();
|
|
2259
2258
|
const timingStart = Date.now();
|
|
2260
2259
|
const wsCtx = await getWorkspaceContext();
|
|
@@ -2407,7 +2406,6 @@ ${groundingReport.governance.map((g) => `- **${g.entryId}** ${g.name} [${g.colle
|
|
|
2407
2406
|
autoCommit,
|
|
2408
2407
|
sourceRef,
|
|
2409
2408
|
sourceExcerpt,
|
|
2410
|
-
ownerTeamEntryId,
|
|
2411
2409
|
ownerRoleEntryId
|
|
2412
2410
|
})
|
|
2413
2411
|
)
|
|
@@ -2499,8 +2497,7 @@ ${groundingReport.governance.map((g) => `- **${g.entryId}** ${g.name} [${g.colle
|
|
|
2499
2497
|
...sourceRef ? { sourceRef } : {},
|
|
2500
2498
|
...sourceExcerpt ? { sourceExcerpt } : {},
|
|
2501
2499
|
...preview ? { preview: true } : {},
|
|
2502
|
-
// WP-513
|
|
2503
|
-
...ownerTeamEntryId ? { ownerTeamEntryId } : {},
|
|
2500
|
+
// WP-513: explicit rung-2 owner override. WP-753 O1b: team derives server-side.
|
|
2504
2501
|
...ownerRoleEntryId ? { ownerRoleEntryId } : {},
|
|
2505
2502
|
// WP-475 E1 (Codex P2 — CLI parity): user links are known UPFRONT, so the
|
|
2506
2503
|
// post-relations re-evaluation below owns the single LLM run — defer the
|
|
@@ -2559,7 +2556,6 @@ ${groundingReport.governance.map((g) => `- **${g.entryId}** ${g.name} [${g.colle
|
|
|
2559
2556
|
autoCommit,
|
|
2560
2557
|
sourceRef,
|
|
2561
2558
|
sourceExcerpt,
|
|
2562
|
-
ownerTeamEntryId,
|
|
2563
2559
|
ownerRoleEntryId
|
|
2564
2560
|
})
|
|
2565
2561
|
);
|
|
@@ -3439,8 +3435,7 @@ async function handleBatchCapture(server, { entries, autoCommit, preview }) {
|
|
|
3439
3435
|
...entry.sourceRef ? { sourceRef: entry.sourceRef } : {},
|
|
3440
3436
|
...entry.sourceExcerpt ? { sourceExcerpt: entry.sourceExcerpt } : {},
|
|
3441
3437
|
...preview ? { preview: true } : {},
|
|
3442
|
-
// WP-513
|
|
3443
|
-
...entry.ownerTeamEntryId ? { ownerTeamEntryId: entry.ownerTeamEntryId } : {},
|
|
3438
|
+
// WP-513: explicit rung-2 owner override. WP-753 O1b: team derives server-side.
|
|
3444
3439
|
...entry.ownerRoleEntryId ? { ownerRoleEntryId: entry.ownerRoleEntryId } : {}
|
|
3445
3440
|
});
|
|
3446
3441
|
const preflight = isPreviewCreateEntryResult(rawResult) ? await resolvePreviewPreflight(rawResult, entry.relations) : void 0;
|
|
@@ -16961,4 +16956,4 @@ export {
|
|
|
16961
16956
|
createProductBrainServer,
|
|
16962
16957
|
initFeatureFlags
|
|
16963
16958
|
};
|
|
16964
|
-
//# sourceMappingURL=chunk-
|
|
16959
|
+
//# sourceMappingURL=chunk-XJRVTFDC.js.map
|