@productbrain/mcp 0.0.1-beta.15904 → 0.0.1-beta.15910

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.
@@ -1,4 +1,5 @@
1
1
  import {
2
+ KEY_SCOPE_WORDS,
2
3
  KPI_KIND,
3
4
  KernelCallError,
4
5
  ORGANISATION_VALIDATION_REFUSALS,
@@ -57,7 +58,7 @@ import {
57
58
  startAgentSession,
58
59
  startTimingLine,
59
60
  withAcceptPrompt
60
- } from "./chunk-AFTQ7UO6.js";
61
+ } from "./chunk-TLR7A2WH.js";
61
62
 
62
63
  // src/server.ts
63
64
  import { McpServer as McpServer2 } from "@modelcontextprotocol/server";
@@ -10742,7 +10743,7 @@ function formatStartText(result2, allowanceLine) {
10742
10743
  ruleLists: result2.ruleLists,
10743
10744
  workspaceName: result2.workspaceName,
10744
10745
  sessionLines: [
10745
- `Session ${result2.sessionId} active. Pass sessionId="${result2.sessionId}" on every write: the connection does not remember your session between calls. Initiated by ${result2.initiatedBy}. Workspace ${result2.workspaceName}. Scope: ${result2.toolsScope}. Orient with a task before substantive work: it is advice for captures, relations, accepts, ticks and questions; workflow checkpoints and organisation-structure writes still require it.`
10746
+ `Session ${result2.sessionId} active. Pass sessionId="${result2.sessionId}" on every write: the connection does not remember your session between calls. Initiated by ${result2.initiatedBy}. Workspace ${result2.workspaceName}. Scope: ${KEY_SCOPE_WORDS[result2.toolsScope]}. Orient with a task before substantive work: it is advice for captures, relations, accepts, ticks and questions; workflow checkpoints and organisation-structure writes still require it.`
10746
10747
  ],
10747
10748
  feedbackLine: FEEDBACK_SUBMIT_HINT,
10748
10749
  allowanceLine,
@@ -10898,7 +10899,7 @@ async function handleStatus() {
10898
10899
  `Session ${sessionId} ${session.status}.`,
10899
10900
  `Pass sessionId="${sessionId}" on every write: the connection does not remember your session between calls.`,
10900
10901
  `Initiated by ${session.initiatedBy}.`,
10901
- `Scope: ${session.toolsScope}.`,
10902
+ `Scope: ${KEY_SCOPE_WORDS[session.toolsScope]}.`,
10902
10903
  `Oriented: ${oriented ? "yes" : "no"}.`,
10903
10904
  "",
10904
10905
  `| Metric | Value |`,
@@ -11180,7 +11181,7 @@ async function handleWhoami() {
11180
11181
  return {
11181
11182
  content: [{ type: "text", text: lines.join("\n") }],
11182
11183
  structuredContent: success(
11183
- `Session: ${ctx.workspaceName} (${scope}). ${oriented ? "Oriented." : "Not oriented."}`,
11184
+ `Session: ${ctx.workspaceName} (${KEY_SCOPE_WORDS[scope]}). ${oriented ? "Oriented." : "Not oriented."}`,
11184
11185
  { workspaceId: ctx.workspaceId, workspaceName: ctx.workspaceName, scope, sessionId, oriented }
11185
11186
  )
11186
11187
  };
@@ -12007,7 +12008,7 @@ function registerQuestionTools(server) {
12007
12008
 
12008
12009
  - **create**: ask a question from text; \`toRole\` assigns it to that role at once; \`toTeam\`: ${QUESTION_SEAT_WORDS.teamHelp}.
12009
12010
  - **assign**: reassign to a role (\`toRole\` required, \`toTeam\` as on create); the asker may, once, while a team lead holds it.
12010
- - **answer**: close the loop. Writes \`text\` on the question as its answer, in full; \`answerEntryId\` may link an entry beside it, never instead.
12011
+ - **answer**: writes \`text\` on the question as its answer, in full; \`answerEntryId\` may link an entry beside it, never instead.
12011
12012
  - **add**: ${QUESTION_LINE_WORDS.help} \`entryId\` and \`text\` required.
12012
12013
  - **force-close**: Team-Lead-only escape hatch (reason required) for a question that cannot otherwise be resolved.
12013
12014
  - **list**: what you owe (default); \`mine:true\` what you asked; \`role\` what waits on that role.
@@ -12570,7 +12571,7 @@ var INSTRUCTIONS = [
12570
12571
  "",
12571
12572
  "## Writing",
12572
12573
  "",
12573
- "Write actions (capture, entries update and accept, relations create, batch-create and delete, people invite and remove, role seat and unseat) need an active session and a readwrite key.",
12574
+ `Write actions (capture, entries update and accept, relations create, batch-create and delete, people invite and remove, role seat and unseat) need an active session and a ${KEY_SCOPE_WORDS.readwrite} key.`,
12574
12575
  "Pass the `sessionId` that `session action=start` returned on every write: the connection does not remember it.",
12575
12576
  "Use `capture` to create an entry and read its reply: it lands as a draft, except a question, which is born open and needs no `entries action=accept`.",
12576
12577
  "Link entries with `relations action=create` \u2014 a relation is written only when you ask, with exactly the verb you send.",
@@ -12661,4 +12662,4 @@ export {
12661
12662
  SERVER_VERSION,
12662
12663
  createProductBrainServer
12663
12664
  };
12664
- //# sourceMappingURL=chunk-RLADPZ3R.js.map
12665
+ //# sourceMappingURL=chunk-LKFTMBK5.js.map