@productbrain/mcp 0.0.1-beta.6241 → 0.0.1-beta.6251
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-XZG4JQPF.js → chunk-APAKCCYH.js} +22 -7
- package/dist/{chunk-XZG4JQPF.js.map → chunk-APAKCCYH.js.map} +1 -1
- package/dist/{chunk-U3MGF5UN.js → chunk-OT4PU7IF.js} +4 -8
- package/dist/chunk-OT4PU7IF.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-7NGFB35Z.js → setup-KW27NKXI.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-U3MGF5UN.js.map +0 -1
- /package/dist/{setup-7NGFB35Z.js.map → setup-KW27NKXI.js.map} +0 -0
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
trackSessionCaptureRate,
|
|
43
43
|
trackWriteBackHintServed,
|
|
44
44
|
trackZeroCaptureAuditFired
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OT4PU7IF.js";
|
|
46
46
|
|
|
47
47
|
// src/server.ts
|
|
48
48
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -13492,9 +13492,18 @@ var sessionSchema = z28.object({
|
|
|
13492
13492
|
),
|
|
13493
13493
|
steeringOverrideReason: z28.string().max(2e3).optional().describe(
|
|
13494
13494
|
"For 'commit-constellation': typed override reason (>= 12 chars) to push past a coherency hold instead of acknowledging."
|
|
13495
|
+
),
|
|
13496
|
+
// DEC-1715 (WP-753 O1a)
|
|
13497
|
+
role: z28.string().max(200).optional().describe(
|
|
13498
|
+
"For 'start': role to act as this session \u2014 only needed if you hold more than one; the error lists your roles if omitted."
|
|
13495
13499
|
)
|
|
13496
13500
|
});
|
|
13497
|
-
var sessionStartVariant = z28.object({
|
|
13501
|
+
var sessionStartVariant = z28.object({
|
|
13502
|
+
action: z28.literal("start"),
|
|
13503
|
+
// DEC-1715 (WP-753 O1a): the role to act as this session — only needed when the person holds
|
|
13504
|
+
// more than one role; the server refuses and lists the choices when it's required and omitted.
|
|
13505
|
+
role: z28.string().max(200).optional().describe("Role to act as this session \u2014 only needed if you hold more than one; the error lists your roles if omitted.")
|
|
13506
|
+
});
|
|
13498
13507
|
var sessionCloseVariant = z28.object({ action: z28.literal("close") });
|
|
13499
13508
|
var sessionStatusVariant = z28.object({ action: z28.literal("status") });
|
|
13500
13509
|
var sessionWrapupReviewVariant = z28.object({ action: z28.literal("wrapup-review") });
|
|
@@ -13511,7 +13520,8 @@ var sessionActionUnion = z28.discriminatedUnion("action", [
|
|
|
13511
13520
|
sessionCommitConstellationVariant
|
|
13512
13521
|
]);
|
|
13513
13522
|
var SESSION_ACTION_SPECS = {
|
|
13514
|
-
start: { params: [], description: "
|
|
13523
|
+
start: { params: ["role"], description: "role is optional \u2014 only needed if you hold more than one role." },
|
|
13524
|
+
// DEC-1715 (WP-753 O1a)
|
|
13515
13525
|
close: { params: [], description: "End the current session; no params." },
|
|
13516
13526
|
status: { params: [], description: "Check current session state; no params." },
|
|
13517
13527
|
"wrapup-review": { params: [], description: "Review uncommitted drafts; no params." },
|
|
@@ -13525,7 +13535,7 @@ var SESSION_ACTION_SPECS = {
|
|
|
13525
13535
|
function registerSessionTools(server) {
|
|
13526
13536
|
const wrapupHandler = createWrapupHandler();
|
|
13527
13537
|
const sessionHandlers = {
|
|
13528
|
-
start: () => handleStart2(),
|
|
13538
|
+
start: (data) => handleStart2(data),
|
|
13529
13539
|
close: () => handleClose(),
|
|
13530
13540
|
status: () => handleStatus(),
|
|
13531
13541
|
"wrapup-review": () => wrapupHandler({ action: "review" }),
|
|
@@ -13553,12 +13563,15 @@ function registerSessionTools(server) {
|
|
|
13553
13563
|
})
|
|
13554
13564
|
);
|
|
13555
13565
|
}
|
|
13556
|
-
async function handleStart2() {
|
|
13557
|
-
const result2 = await startAgentSession();
|
|
13566
|
+
async function handleStart2(data) {
|
|
13567
|
+
const result2 = await startAgentSession(data?.role);
|
|
13558
13568
|
const lines = [];
|
|
13559
13569
|
lines.push(
|
|
13560
13570
|
`Session ${result2.sessionId} active. Initiated by ${result2.initiatedBy}. Workspace ${result2.workspaceName}. Scope: ${result2.toolsScope}. Write tools available after orient.`
|
|
13561
13571
|
);
|
|
13572
|
+
if (result2.roleEntryId) {
|
|
13573
|
+
lines.push(`Acting as role: ${result2.roleName ?? result2.roleEntryId}.`);
|
|
13574
|
+
}
|
|
13562
13575
|
lines.push(FEEDBACK_SUBMIT_HINT);
|
|
13563
13576
|
const noticeLines = formatNoticeLines(result2.notices);
|
|
13564
13577
|
if (noticeLines.length > 0) {
|
|
@@ -13576,6 +13589,8 @@ async function handleStart2() {
|
|
|
13576
13589
|
initiatedBy: result2.initiatedBy,
|
|
13577
13590
|
workspaceName: result2.workspaceName,
|
|
13578
13591
|
toolsScope: result2.toolsScope,
|
|
13592
|
+
roleEntryId: result2.roleEntryId,
|
|
13593
|
+
roleName: result2.roleName,
|
|
13579
13594
|
feedbackQueueNew: result2.feedbackQueueNew,
|
|
13580
13595
|
feedbackOldestNewAt: result2.feedbackOldestNewAt,
|
|
13581
13596
|
notices: result2.notices ?? [],
|
|
@@ -16946,4 +16961,4 @@ export {
|
|
|
16946
16961
|
createProductBrainServer,
|
|
16947
16962
|
initFeatureFlags
|
|
16948
16963
|
};
|
|
16949
|
-
//# sourceMappingURL=chunk-
|
|
16964
|
+
//# sourceMappingURL=chunk-APAKCCYH.js.map
|