@productbrain/mcp 0.0.1-beta.2323 → 0.0.1-beta.2331
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.
|
@@ -649,12 +649,6 @@ function coherencyRefusedResult(toolName, entryId, refusal, options) {
|
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
// src/tool-surface.ts
|
|
653
|
-
function initToolSurface() {
|
|
654
|
-
}
|
|
655
|
-
function trackWriteTool(_tool) {
|
|
656
|
-
}
|
|
657
|
-
|
|
658
652
|
// src/lib/resolveCollection.ts
|
|
659
653
|
async function resolveCollection(params) {
|
|
660
654
|
const { name, description, typeHint, allowReviewRouting } = params;
|
|
@@ -1371,7 +1365,7 @@ function registerSmartCaptureTools(server) {
|
|
|
1371
1365
|
capture: (data) => handleCapture(server, data),
|
|
1372
1366
|
batch: (data) => handleBatchCapture(server, { entries: data.items, autoCommit: data.autoCommit, preview: data.preview })
|
|
1373
1367
|
};
|
|
1374
|
-
|
|
1368
|
+
server.registerTool(
|
|
1375
1369
|
"capture",
|
|
1376
1370
|
{
|
|
1377
1371
|
title: "Capture",
|
|
@@ -1389,7 +1383,6 @@ function registerSmartCaptureTools(server) {
|
|
|
1389
1383
|
);
|
|
1390
1384
|
})
|
|
1391
1385
|
);
|
|
1392
|
-
trackWriteTool(captureTool);
|
|
1393
1386
|
}
|
|
1394
1387
|
async function handleCapture(server, { collection, name, description, context, entryId, canonicalKey, data: userData, links, autoCommit, sourceRef, sourceExcerpt, preview, suggestOnly, format }) {
|
|
1395
1388
|
requireWriteAccess();
|
|
@@ -4958,7 +4951,7 @@ function registerRelationsTools(server) {
|
|
|
4958
4951
|
find: (data) => handleFind(data.entryId, data.direction ?? "both"),
|
|
4959
4952
|
suggest: (data) => handleSuggest(data.entryId, data.limit ?? 10, data.depth ?? 2)
|
|
4960
4953
|
};
|
|
4961
|
-
|
|
4954
|
+
server.registerTool(
|
|
4962
4955
|
"relations",
|
|
4963
4956
|
{
|
|
4964
4957
|
title: "Relations",
|
|
@@ -4977,7 +4970,6 @@ function registerRelationsTools(server) {
|
|
|
4977
4970
|
);
|
|
4978
4971
|
})
|
|
4979
4972
|
);
|
|
4980
|
-
trackWriteTool(tool);
|
|
4981
4973
|
}
|
|
4982
4974
|
async function handleCreate(from, to, type, score, preview) {
|
|
4983
4975
|
requireWriteAccess();
|
|
@@ -6739,7 +6731,7 @@ function registerCollectionsTools(server) {
|
|
|
6739
6731
|
"label-apply": (data) => handleLabelsApply(data.slug, data.entryId),
|
|
6740
6732
|
"label-remove": (data) => handleLabelsRemove(data.slug, data.entryId)
|
|
6741
6733
|
};
|
|
6742
|
-
|
|
6734
|
+
server.registerTool(
|
|
6743
6735
|
"collections",
|
|
6744
6736
|
{
|
|
6745
6737
|
title: "Collections",
|
|
@@ -6757,7 +6749,6 @@ function registerCollectionsTools(server) {
|
|
|
6757
6749
|
);
|
|
6758
6750
|
})
|
|
6759
6751
|
);
|
|
6760
|
-
trackWriteTool(tool);
|
|
6761
6752
|
}
|
|
6762
6753
|
async function handleDescribe(slug) {
|
|
6763
6754
|
const col = await kernelQuery("chain.getCollection", { slug });
|
|
@@ -10451,7 +10442,7 @@ function registerWorkflowTools(server) {
|
|
|
10451
10442
|
return { content: textContent(result2.body), structuredContent: success(summary, result2) };
|
|
10452
10443
|
}
|
|
10453
10444
|
};
|
|
10454
|
-
|
|
10445
|
+
server.registerTool(
|
|
10455
10446
|
"workflows",
|
|
10456
10447
|
{
|
|
10457
10448
|
title: "Workflows",
|
|
@@ -10469,7 +10460,6 @@ function registerWorkflowTools(server) {
|
|
|
10469
10460
|
);
|
|
10470
10461
|
})
|
|
10471
10462
|
);
|
|
10472
|
-
trackWriteTool(workflowsTool);
|
|
10473
10463
|
}
|
|
10474
10464
|
async function handleList3() {
|
|
10475
10465
|
const workflows = listWorkflows();
|
|
@@ -11313,7 +11303,7 @@ function registerQualityTools(server) {
|
|
|
11313
11303
|
"verify-chain": (data) => handleVerifyChain(server, { collection: data.collection ?? "glossary", mode: data.mode ?? "report" }),
|
|
11314
11304
|
audit: (data) => handleAuditRun(data.entryId, data.phase ?? "shaping")
|
|
11315
11305
|
};
|
|
11316
|
-
|
|
11306
|
+
server.registerTool(
|
|
11317
11307
|
"quality",
|
|
11318
11308
|
{
|
|
11319
11309
|
title: "Quality",
|
|
@@ -11331,7 +11321,6 @@ function registerQualityTools(server) {
|
|
|
11331
11321
|
);
|
|
11332
11322
|
})
|
|
11333
11323
|
);
|
|
11334
|
-
trackWriteTool(qualityTool);
|
|
11335
11324
|
}
|
|
11336
11325
|
async function appendLinkSuggestions(entryId, lines) {
|
|
11337
11326
|
let relationCount = -1;
|
|
@@ -13236,7 +13225,7 @@ function registerGitChainTools(server) {
|
|
|
13236
13225
|
"branch.merge": (data) => handleChainBranch({ ...data, action: "merge" }),
|
|
13237
13226
|
"branch.conflicts": (data) => handleChainBranch({ ...data, action: "conflicts" })
|
|
13238
13227
|
};
|
|
13239
|
-
|
|
13228
|
+
server.registerTool(
|
|
13240
13229
|
"chain",
|
|
13241
13230
|
{
|
|
13242
13231
|
title: "Chain",
|
|
@@ -13254,8 +13243,7 @@ function registerGitChainTools(server) {
|
|
|
13254
13243
|
);
|
|
13255
13244
|
})
|
|
13256
13245
|
);
|
|
13257
|
-
|
|
13258
|
-
const chainReviewTool = server.registerTool(
|
|
13246
|
+
server.registerTool(
|
|
13259
13247
|
"chain-review",
|
|
13260
13248
|
{
|
|
13261
13249
|
title: "Chain Review",
|
|
@@ -13273,7 +13261,6 @@ function registerGitChainTools(server) {
|
|
|
13273
13261
|
);
|
|
13274
13262
|
})
|
|
13275
13263
|
);
|
|
13276
|
-
trackWriteTool(chainReviewTool);
|
|
13277
13264
|
}
|
|
13278
13265
|
|
|
13279
13266
|
// src/tools/maps.ts
|
|
@@ -13764,7 +13751,7 @@ function registerMapTools(server) {
|
|
|
13764
13751
|
suggest: (data) => handleMapSuggest(data),
|
|
13765
13752
|
"create-audience-set": (data) => handleCreateAudienceMapSet(data)
|
|
13766
13753
|
};
|
|
13767
|
-
|
|
13754
|
+
server.registerTool(
|
|
13768
13755
|
"map",
|
|
13769
13756
|
{
|
|
13770
13757
|
title: "Map",
|
|
@@ -13782,7 +13769,6 @@ function registerMapTools(server) {
|
|
|
13782
13769
|
);
|
|
13783
13770
|
})
|
|
13784
13771
|
);
|
|
13785
|
-
trackWriteTool(mapTool);
|
|
13786
13772
|
}
|
|
13787
13773
|
|
|
13788
13774
|
// src/tools/workspace.ts
|
|
@@ -14758,7 +14744,7 @@ Browse: \`entries action=list collection=tracking-events\`.`
|
|
|
14758
14744
|
}
|
|
14759
14745
|
var AGENT_CHEATSHEET = `# Product Brain \u2014 Agent Cheatsheet
|
|
14760
14746
|
|
|
14761
|
-
## Core Tools (
|
|
14747
|
+
## Core Tools (Serves 11 default compound tools; 3 more (chain, chain-review, map) behind PB_MODULES=gitchain)
|
|
14762
14748
|
| Tool | Purpose | Key params |
|
|
14763
14749
|
|---|---|---|
|
|
14764
14750
|
| \`orient\` | Workspace context, governance, active bets, session start | \`action\`: start, task, record-activation |
|
|
@@ -14771,6 +14757,7 @@ var AGENT_CHEATSHEET = `# Product Brain \u2014 Agent Cheatsheet
|
|
|
14771
14757
|
| \`session\` | Start / close, wrapup, resume, constellation accept | \`action\`: start, close, status, wrapup-review, wrapup-commit, resume, commit-constellation |
|
|
14772
14758
|
| \`workflows\` | Run workflows, checkpoint, load a skill | \`action\`: list, start, checkpoint, get-run, load-skill |
|
|
14773
14759
|
| \`workspace\` | Check / whoami / status / self-test, usage, governance proposals | \`action\`: check, whoami, status, audit, self-test, usage, proposals-* |
|
|
14760
|
+
| \`feedback\` | Submit product feedback (any key, no session required); vendor triage: list / note / group / status | \`action\`: submit, list, note, group, status |
|
|
14774
14761
|
|
|
14775
14762
|
## Collection Prefixes
|
|
14776
14763
|
GLO (glossary), BR (business-rules), PRI (principles), STD (standards),
|
|
@@ -15352,7 +15339,7 @@ var INSTRUCTIONS = [
|
|
|
15352
15339
|
"- **Self-documenting**: orient and server instructions teach agents how PB works. Cursor rules supplement but don't replace.",
|
|
15353
15340
|
"",
|
|
15354
15341
|
"### Tool Rename Notice (WP-484 S3, one release)",
|
|
15355
|
-
"
|
|
15342
|
+
"Serves 11 default compound tools; 3 more (chain, chain-review, map) behind PB_MODULES=gitchain.",
|
|
15356
15343
|
"Old standalone names are gone \u2014 no alias window (ASM-43: zero external consumers). Map: `start_pb`\u2192`orient action=start`, `record_activation`\u2192`orient action=record-activation`, `session-wrapup`\u2192`session action=wrapup-review|wrapup-commit`, `facilitate`\u2192`session action=resume|commit-constellation`, `update-entry`\u2192`entries action=update`, `commit-entry`\u2192`entries action=commit`, `get-history`\u2192`entries action=history`, `move-entry`\u2192`entries action=move`, `verify-entry`\u2192`entries action=verify`, `graph`\u2192`relations action=find|suggest`, `documents`\u2192`context action=last-verified-brief`, `labels`\u2192`collections action=label-*`, `verify`\u2192`quality action=verify-chain`, `audit`\u2192`quality action=audit`, `health`\u2192`workspace action=check|whoami|status|self-test`, `get-usage-summary`\u2192`workspace action=usage`, `governance-proposals`\u2192`workspace action=proposals-*`, `skills`\u2192`workflows action=load-skill`, `chain-version`\u2192`chain action=version.*`, `chain-branch`\u2192`chain-review action=branch.*`, `create-audience-map-set`/`map-slot`/`map-version`/`map-suggest`\u2192`map action=create-audience-set|slot.*|version.*|suggest`.",
|
|
15357
15344
|
"",
|
|
15358
15345
|
"## Your Workspace Principles",
|
|
@@ -15407,7 +15394,6 @@ function createProductBrainServer() {
|
|
|
15407
15394
|
{ name: "Product Brain", version: SERVER_VERSION },
|
|
15408
15395
|
{ capabilities: { logging: {} }, instructions: INSTRUCTIONS }
|
|
15409
15396
|
);
|
|
15410
|
-
initToolSurface();
|
|
15411
15397
|
const enabledModules = new Set(
|
|
15412
15398
|
(process.env.PB_MODULES ?? "core").split(",").map((m) => m.trim().toLowerCase())
|
|
15413
15399
|
);
|
|
@@ -15562,4 +15548,4 @@ export {
|
|
|
15562
15548
|
createProductBrainServer,
|
|
15563
15549
|
initFeatureFlags
|
|
15564
15550
|
};
|
|
15565
|
-
//# sourceMappingURL=chunk-
|
|
15551
|
+
//# sourceMappingURL=chunk-EPK7OSX3.js.map
|