@unson/brainbase-mcp 0.15.7 → 0.17.0

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.
@@ -25,7 +25,6 @@ import {
25
25
  workspaceDetailEmpty,
26
26
  workspaceButton,
27
27
  } from '../../workspace-kit.js';
28
- import { organizationRecordAnchor, organizationRecordLink, organizationWebOrigin } from '../../graph-view-shared.js';
29
28
 
30
29
  export const WORLD_VIEW_CONTRACT_VERSION = 'brainbase.world-view.v0';
31
30
 
@@ -1431,7 +1430,7 @@ const JUDGMENT_UNAVAILABLE_TEXT = Object.freeze({
1431
1430
  * engagement opens in the host's プロジェクトと関係者. The local web opens `#projects?project=<id>`; an
1432
1431
  * organization web passes its own route.
1433
1432
  */
1434
- export function createWorldView({ root, rail, page, document: explicitDocument, fetcher, organizationGraph = null, projectHref = (project) => `#projects?project=${encodeURIComponent(project.id)}` }) {
1433
+ export function createWorldView({ root, rail, page, document: explicitDocument, fetcher, projectHref = (project) => `#projects?project=${encodeURIComponent(project.id)}` }) {
1435
1434
  const doc = explicitDocument ?? globalThis.document;
1436
1435
  const reducedMotion = Boolean(globalThis.matchMedia?.('(prefers-reduced-motion: reduce)').matches);
1437
1436
  const wrap = el(doc, 'div', { className: 'bb-world' });
@@ -1502,22 +1501,9 @@ export function createWorldView({ root, rail, page, document: explicitDocument,
1502
1501
  return el(doc, 'a', { className: 'bb-world-rail-link', text: label, attrs: { href: projectHref(project) } });
1503
1502
  }
1504
1503
 
1505
- /**
1506
- * The same project in the organization web, where it is corrected (Inspector UX-20261004-01). Only when
1507
- * the host reads the organization Graph and was told where its web is.
1508
- */
1509
- function organizationLink(project) {
1510
- const origin = organizationWebOrigin(organizationGraph);
1511
- if (!origin) return null;
1512
- // A business without its own code carries its id as its code; that is not a code the organization web knows.
1513
- const code = project.code && project.code !== project.id ? project.code : null;
1514
- const target = organizationRecordLink(origin, 'projects', { id: project.id, type: 'project', metadata: { code } });
1515
- return target ? organizationRecordAnchor(doc, target, 'bb-world-rail-link') : null;
1516
- }
1517
-
1518
- /** 詳しく見る: プロジェクトと関係者 here, and the organization web when there is one. */
1504
+ /** 詳しく見る: the same project in プロジェクトと関係者. */
1519
1505
  function detailBlock(project, label) {
1520
- const content = [projectLink(project, label), organizationLink(project)].filter(Boolean);
1506
+ const content = [projectLink(project, label)];
1521
1507
  return workspaceRailBlock(doc, { title: '詳しく見る', content });
1522
1508
  }
1523
1509
 
@@ -1780,11 +1766,11 @@ export const screen = Object.freeze({
1780
1766
  label: '世界',
1781
1767
  usesGraph: false,
1782
1768
  rail: true,
1783
- source: '組織のGraph・判断journal(読み取りのみ)',
1769
+ source: '手元のGraph・判断journal(読み取りのみ)',
1784
1770
  mount(container, context) {
1785
1771
  const root = context.document.createElement('div');
1786
1772
  root.className = 'bb-shell-page';
1787
1773
  container.append(root);
1788
- return createWorldView({ root, rail: context.rail, page: context.page, document: context.document, fetcher: context.fetcher, organizationGraph: context.organizationGraph ?? null });
1774
+ return createWorldView({ root, rail: context.rail, page: context.page, document: context.document, fetcher: context.fetcher });
1789
1775
  },
1790
1776
  });