@productbrain/mcp 0.0.1-beta.2407 → 0.0.1-beta.2417
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.
|
@@ -816,7 +816,7 @@ function buildScoreLinkCandidatesJob(candidates, sourceName, sourceDescription,
|
|
|
816
816
|
var LINK_SCORE_CHUNK_MAX_ENTRIES = 10;
|
|
817
817
|
var LINK_SCORE_CHUNK_MAX_BYTES = 7e5;
|
|
818
818
|
function estimateJobBytes(job) {
|
|
819
|
-
return JSON.stringify(job)
|
|
819
|
+
return Buffer.byteLength(JSON.stringify(job), "utf8");
|
|
820
820
|
}
|
|
821
821
|
function inferRelationType(_sourceCollection, _targetCollection, profile) {
|
|
822
822
|
const type = profile.recommendedRelationTypes[0] ?? "related_to";
|
|
@@ -4254,6 +4254,11 @@ var entriesGetOutputSchema = z5.object({
|
|
|
4254
4254
|
// Attestation-model finding (PR #341 review): the server's honest verifier label and
|
|
4255
4255
|
// derived attestation strength/basis — connectors NEVER re-derive strength (spec §5),
|
|
4256
4256
|
// they only render what chain.getEntry ships. Mirrors packages/cli EntryFromApi.
|
|
4257
|
+
//
|
|
4258
|
+
// The literal set below is a hand-kept WIRE-SHAPE mirror of kernel/quality/
|
|
4259
|
+
// attestation.ts's AttestationStrength SSOT (allowlisted in Check D —
|
|
4260
|
+
// scripts/check-collection-ssot.mjs's CHECK_D_ALLOWLIST — with the full
|
|
4261
|
+
// reasoning for why this can't just import that module). Update both together.
|
|
4257
4262
|
verifiedBy: z5.string().optional(),
|
|
4258
4263
|
attestation: z5.object({
|
|
4259
4264
|
strength: z5.enum(["human-direct", "delegated", "system", "unattested"]),
|
|
@@ -4304,7 +4309,9 @@ var entriesBatchOutputSchema = z5.object({
|
|
|
4304
4309
|
originDetail: z5.string().optional(),
|
|
4305
4310
|
verificationStatus: z5.string().optional(),
|
|
4306
4311
|
// Attestation-model finding (PR #341 review): mirror entriesGetOutputSchema — batch
|
|
4307
|
-
// entries now carry the same honest verifiedBy/attestation fields.
|
|
4312
|
+
// entries now carry the same honest verifiedBy/attestation fields. Literal set is
|
|
4313
|
+
// the same hand-kept SSOT mirror — see entriesGetOutputSchema's attestation
|
|
4314
|
+
// comment above for the full Check D / kernel-import reasoning.
|
|
4308
4315
|
verifiedBy: z5.string().optional(),
|
|
4309
4316
|
attestation: z5.object({
|
|
4310
4317
|
strength: z5.enum(["human-direct", "delegated", "system", "unattested"]),
|
|
@@ -4340,7 +4347,7 @@ function registerEntriesTools(server) {
|
|
|
4340
4347
|
description: 'Read and manage entries on the Chain. One tool for the entry lifecycle.\n\n- **list**: Browse entries with optional filters (collection, status, tag, label). Use collections action=list first to discover slugs.\n- **get**: Fetch a single entry by ID \u2014 full record with data, labels, relations, history.\n- **batch**: Fetch multiple entries (max 20) in one call. Same shape as get per entry.\n- **search**: Full-text search across entries. Scope by collection or filter by status.\n- **update**: Change fields on an existing entry (draft by default \u2014 never autoPublish without explicit user confirmation).\n- **commit**: Accept a draft entry onto the Chain (SSOT). Runs the contradiction preflight first.\n- **history**: Audit trail for an entry.\n- **move**: Reclassify an entry to a different collection.\n- **verify**: Mark an entry as verified (lightweight, no codebase scan \u2014 see `quality action=verify-chain` for that).\n\nUse `entries action=get entryId="..."` to fetch one. Use `entries action=search query="..."` to discover.',
|
|
4341
4348
|
inputSchema: entriesSchema,
|
|
4342
4349
|
// Mixed read/write noun (§3 R3): can't be marked read-only once update/commit/move
|
|
4343
|
-
// live here too — accepted for the
|
|
4350
|
+
// live here too — accepted for the 11-tool default (§9 R3).
|
|
4344
4351
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false }
|
|
4345
4352
|
},
|
|
4346
4353
|
thinWrapper(async (args) => {
|
|
@@ -15672,4 +15679,4 @@ export {
|
|
|
15672
15679
|
createProductBrainServer,
|
|
15673
15680
|
initFeatureFlags
|
|
15674
15681
|
};
|
|
15675
|
-
//# sourceMappingURL=chunk-
|
|
15682
|
+
//# sourceMappingURL=chunk-SW4KINKO.js.map
|