@productbrain/mcp 0.0.1-beta.9656 → 0.0.1-beta.9674
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-MYMVFOM3.js → chunk-ETBTCCMU.js} +18 -14
- package/dist/chunk-ETBTCCMU.js.map +1 -0
- package/dist/{chunk-H5B6RWE2.js → chunk-ZKRYGHNU.js} +1 -4
- package/dist/chunk-ZKRYGHNU.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-473FGGGS.js → setup-E2FLUBN2.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-H5B6RWE2.js.map +0 -1
- package/dist/chunk-MYMVFOM3.js.map +0 -1
- /package/dist/{setup-473FGGGS.js.map → setup-E2FLUBN2.js.map} +0 -0
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
trackQualityVerdict,
|
|
44
44
|
trackSessionCaptureRate,
|
|
45
45
|
trackZeroCaptureAuditFired
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZKRYGHNU.js";
|
|
47
47
|
|
|
48
48
|
// src/server.ts
|
|
49
49
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -939,7 +939,8 @@ function buildCaptureForRealNextAction(payload) {
|
|
|
939
939
|
autoCommit,
|
|
940
940
|
sourceRef,
|
|
941
941
|
sourceExcerpt,
|
|
942
|
-
ownerRoleEntryId
|
|
942
|
+
ownerRoleEntryId,
|
|
943
|
+
team
|
|
943
944
|
} = payload;
|
|
944
945
|
return [{
|
|
945
946
|
tool: "capture",
|
|
@@ -955,7 +956,8 @@ function buildCaptureForRealNextAction(payload) {
|
|
|
955
956
|
...autoCommit !== void 0 ? { autoCommit } : {},
|
|
956
957
|
...sourceRef ? { sourceRef } : {},
|
|
957
958
|
...sourceExcerpt ? { sourceExcerpt } : {},
|
|
958
|
-
...ownerRoleEntryId ? { ownerRoleEntryId } : {}
|
|
959
|
+
...ownerRoleEntryId ? { ownerRoleEntryId } : {},
|
|
960
|
+
...team ? { team } : {}
|
|
959
961
|
}
|
|
960
962
|
}];
|
|
961
963
|
}
|
|
@@ -1194,10 +1196,10 @@ var captureSchema = z4.object({
|
|
|
1194
1196
|
sourceExcerpt: z4.string().optional().describe("Verbatim excerpt from the source that backs this entry's claims. Stored as top-level entry field, not in data."),
|
|
1195
1197
|
// WP-316 S3: Preview gate — dry-run mode. Returns what would happen, no DB writes.
|
|
1196
1198
|
preview: z4.boolean().optional().describe("If true, validates the capture without writing. Returns what would happen. Default false."),
|
|
1197
|
-
// WP-513
|
|
1198
|
-
|
|
1199
|
-
//
|
|
1200
|
-
|
|
1199
|
+
// WP-513 / WP-753 O1b (DEC-1715): explicit owning role (rung 2); its team is the one you hold it in. Unnamed: a default owner.
|
|
1200
|
+
ownerRoleEntryId: z4.string().max(200).optional().describe("Owning role entry ID/ref (rung 2); you must hold it, and its team is the one you hold it in (root first, else the shallowest)."),
|
|
1201
|
+
// TASK-681 (DEC-1976, DEC-1977): where a new role or team sits, forwarded as createEntry's teamRef; the kernel places it.
|
|
1202
|
+
team: z4.string().max(200).optional().describe("For a role: the team it is born in. For a team: its parent team. Entry ID or ref; defaults to the root team.")
|
|
1201
1203
|
});
|
|
1202
1204
|
var captureClassifierSchema = z4.object({
|
|
1203
1205
|
enabled: z4.boolean(),
|
|
@@ -1507,9 +1509,9 @@ var captureCompoundSchema = z4.object({
|
|
|
1507
1509
|
preview: z4.boolean().optional().describe("If true, validates without writing."),
|
|
1508
1510
|
suggestOnly: z4.never({ invalid_type_error: SUGGEST_ONLY_REMOVED }).optional().describe(SUGGEST_ONLY_REMOVED),
|
|
1509
1511
|
// TASK-608: refused, never stripped into a write.
|
|
1510
|
-
// WP-513: explicit role
|
|
1511
|
-
|
|
1512
|
-
|
|
1512
|
+
// WP-513 / WP-753 O1b: explicit owning role (rung 2); its team is the one you hold it in. TASK-681: `team` places a new role or team.
|
|
1513
|
+
ownerRoleEntryId: z4.string().max(200).optional().describe("Owning role (rung-2); you must hold it; its team is the one you hold it in (root first, else the shallowest)."),
|
|
1514
|
+
team: z4.string().max(200).optional().describe("For a role: the team it is born in. For a team: its parent team. Entry ID or ref; defaults to the root team.")
|
|
1513
1515
|
});
|
|
1514
1516
|
var captureSingleVariant = captureSchema.extend({ action: z4.literal("capture") });
|
|
1515
1517
|
var captureActionUnion = z4.discriminatedUnion("action", [
|
|
@@ -1551,7 +1553,7 @@ All other collections get an ENT-{random} ID and sensible defaults.
|
|
|
1551
1553
|
})
|
|
1552
1554
|
);
|
|
1553
1555
|
}
|
|
1554
|
-
async function handleCapture(server, { collection, name, description, context, canonicalKey, data: userData, why, links, sourceRef, sourceExcerpt, preview, ownerRoleEntryId }) {
|
|
1556
|
+
async function handleCapture(server, { collection, name, description, context, canonicalKey, data: userData, why, links, sourceRef, sourceExcerpt, preview, ownerRoleEntryId, team }) {
|
|
1555
1557
|
requireWriteAccess();
|
|
1556
1558
|
const timingStart = Date.now();
|
|
1557
1559
|
const wsCtx = await getWorkspaceContext();
|
|
@@ -1701,8 +1703,9 @@ async function handleCapture(server, { collection, name, description, context, c
|
|
|
1701
1703
|
...sourceRef ? { sourceRef } : {},
|
|
1702
1704
|
...sourceExcerpt ? { sourceExcerpt } : {},
|
|
1703
1705
|
...preview ? { preview: true } : {},
|
|
1704
|
-
// WP-513: explicit rung-2 owner override
|
|
1706
|
+
// WP-513: explicit rung-2 owner override (WP-753 O1b: its team derives server-side). TASK-681: `team` places a role or team.
|
|
1705
1707
|
...ownerRoleEntryId ? { ownerRoleEntryId } : {},
|
|
1708
|
+
...team ? { teamRef: team } : {},
|
|
1706
1709
|
// WP-475 E1 (Codex P2 — CLI parity): user links are known UPFRONT, so the
|
|
1707
1710
|
// post-relations re-evaluation below owns the single LLM run — defer the
|
|
1708
1711
|
// create-time LLM schedule (deterministic, mirrors `pb capture --link`).
|
|
@@ -1752,7 +1755,8 @@ async function handleCapture(server, { collection, name, description, context, c
|
|
|
1752
1755
|
links,
|
|
1753
1756
|
sourceRef,
|
|
1754
1757
|
sourceExcerpt,
|
|
1755
|
-
ownerRoleEntryId
|
|
1758
|
+
ownerRoleEntryId,
|
|
1759
|
+
team
|
|
1756
1760
|
})
|
|
1757
1761
|
);
|
|
1758
1762
|
if (result2.contract) {
|
|
@@ -13061,4 +13065,4 @@ export {
|
|
|
13061
13065
|
createProductBrainServer,
|
|
13062
13066
|
initFeatureFlags
|
|
13063
13067
|
};
|
|
13064
|
-
//# sourceMappingURL=chunk-
|
|
13068
|
+
//# sourceMappingURL=chunk-ETBTCCMU.js.map
|