@unson/brainbase-mcp 0.23.1 → 0.23.2

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.
@@ -2,7 +2,7 @@ import { createHash } from 'node:crypto';
2
2
  import { KNOWLEDGE_LOOKUP_ALLOWED_FIELD_ROOTS, validateKnowledgeLookupFields, validateKnowledgeLookupFinish, } from './knowledge-lookup.js';
3
3
  const TERMINAL = new Set(['satisfied', 'unresolved', 'needs_user_input', 'cancelled']);
4
4
  const ACTION_KINDS = new Set(['search', 'read', 'follow_relation', 'finish']);
5
- const KNOWLEDGE_LOOKUP_FIELD_GUIDANCE = `required_fieldsは自然文ではなく公開field pathを指定してください(例: content, body, statement, markdown, summary, name, environments.production.endpoint)。許可root: ${[...KNOWLEDGE_LOOKUP_ALLOWED_FIELD_ROOTS].join(', ')}`;
5
+ const KNOWLEDGE_LOOKUP_FIELD_GUIDANCE = `required_fieldsは自然文ではなく公開field pathを指定してください。Graph本文はcontentを使い、bodyはソース投影が明示的に公開する場合だけ指定してください(例: content, body, statement, markdown, summary, name, environments.production.endpoint)。許可root: ${[...KNOWLEDGE_LOOKUP_ALLOWED_FIELD_ROOTS].join(', ')}`;
6
6
  const record = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
7
7
  const canonical = (value) => JSON.stringify(value, (_key, item) => record(item)
8
8
  ? Object.fromEntries(Object.entries(item).sort(([a], [b]) => a.localeCompare(b)))
@@ -678,7 +678,7 @@ export const knowledgeLookupTools = [{
678
678
  type: 'array',
679
679
  minItems: 1,
680
680
  maxItems: MAX_FIELDS,
681
- description: 'Public field paths only; use roots such as content, body, statement, markdown, summary, name, or environments.production.endpoint.',
681
+ description: 'Public field paths only; for Graph text use content. Use body only when the source projection explicitly exposes a body field. Other roots include statement, markdown, summary, name, or environments.production.endpoint.',
682
682
  items: { type: 'string', minLength: 1, maxLength: MAX_FIELD_LENGTH },
683
683
  },
684
684
  known_entity_id: { type: 'string', minLength: 1, maxLength: 1_000 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unson/brainbase-mcp",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "Local-first Brainbase judgment OS that lets supported AI agents reuse a user's approved goals, priorities, decisions, and judgment criteria.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -407,5 +407,5 @@
407
407
  "engines": {
408
408
  "node": ">=20"
409
409
  },
410
- "gitHead": "da34b87b5890ae3bc4c89bffe6faa54a302e3276"
410
+ "gitHead": "8e33db88f3076894ebd280f94bd9b716fee4ef53"
411
411
  }