@unson/brainbase-mcp 0.1.0 → 0.2.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.
package/dist/tools.js CHANGED
@@ -107,15 +107,24 @@ export function onboardingStatus(os) {
107
107
  firstValueReady: valueDemoReady
108
108
  });
109
109
  return {
110
- connected: true,
111
110
  dataDir: os.dataDir,
111
+ localBackend: {
112
+ connected: true,
113
+ backend: 'local'
114
+ },
115
+ agentMcp: {
116
+ status: 'not_verified',
117
+ verification: 'MCP設定を反映した新しいエージェントセッションで get_context / search を確認してください。'
118
+ },
119
+ operationallyReady: false,
112
120
  seeded,
113
121
  missing,
114
122
  valueDemo: {
123
+ scope: 'local_cli_sample',
115
124
  ready: valueDemoReady,
116
125
  missing,
117
- command: 'brainbase onboard:demo --scenario "<real request>"',
118
- completionSignal: valueDemoReady ? 'first_value_demo_ready' : 'needs_seed'
126
+ command: `brainbase onboard:demo --dir ${shellArg(os.dataDir)} --scenario "<real request>"`,
127
+ completionSignal: valueDemoReady ? 'cli_sample_ready' : 'needs_seed'
119
128
  },
120
129
  operationalization,
121
130
  counts: {
@@ -124,10 +133,12 @@ export function onboardingStatus(os) {
124
133
  relationships: os.relationships.relationships.length,
125
134
  decisions: os.decisions.length,
126
135
  rawSources: os.sourceCount
127
- },
128
- backend: 'local'
136
+ }
129
137
  };
130
138
  }
139
+ function shellArg(value) {
140
+ return /^[A-Za-z0-9_./:@%+=,-]+$/.test(value) ? value : JSON.stringify(value);
141
+ }
131
142
  function rank(results, limit) {
132
143
  return results
133
144
  .filter((result) => result.score > 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unson/brainbase-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.2.2",
4
4
  "description": "Local-first Brainbase MCP server and personal onboarding kit.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -61,5 +61,5 @@
61
61
  "engines": {
62
62
  "node": ">=20"
63
63
  },
64
- "gitHead": "01f9e7578080390c252104df9c66cf4b6ccb2920"
64
+ "gitHead": "de6ebc16b28dd6ac37c05443f0f6fe8b5abd0602"
65
65
  }