@quolu/lattice 0.79.0 → 0.79.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.
@@ -43,6 +43,7 @@
43
43
  */
44
44
 
45
45
  import { evaluateNodeVersionGuard } from '../src/node-version-guard.mjs';
46
+ import packageJson from '../package.json' with { type: 'json' };
46
47
 
47
48
  const CLI_ERROR_SCHEMA = 'lattice.cli_error.v2';
48
49
 
@@ -114,8 +115,10 @@ if (nodeVersionGuard.blocked) {
114
115
  if (parsed.error) {
115
116
  usageFailure(parsed.error);
116
117
  } else {
118
+ let startupStage = 'mcp.import';
117
119
  try {
118
120
  const { MCPServer } = await import('../sensor/dist/index.js');
121
+ startupStage = 'mcp.construct';
119
122
  const server = new MCPServer(parsed.path);
120
123
  // MCPServer.start() resolves only when startup itself declined to serve
121
124
  // (there is no such path today — every mode keeps the process alive via
@@ -123,11 +126,15 @@ if (nodeVersionGuard.blocked) {
123
126
  // throws on a genuine startup failure (e.g. the sentinel-version fatal
124
127
  // in MCPServer.start — ADR 0049 Decision 3(c)). Either way, nothing more
125
128
  // to do here on a clean resolve.
129
+ startupStage = 'mcp.start';
126
130
  await server.start();
127
131
  } catch (err) {
128
132
  // opt-in runtime error store(既定OFF・config有効時のみ)。観測失敗はstderr一行のbest-effort。
129
133
  const { observeRuntimeError, runtimeErrorSafeContext } = await import('../src/runtime-errors.mjs');
130
- observeRuntimeError('LATTICE.MCP_SERVER_FAILED', { safeContext: runtimeErrorSafeContext({ error: err }) });
134
+ observeRuntimeError('LATTICE.MCP_SERVER_FAILED', {
135
+ version: packageJson.version,
136
+ safeContext: runtimeErrorSafeContext({ commandKind: startupStage, error: err }),
137
+ });
131
138
  startupFailure('MCP_STARTUP_FAILED', err instanceof Error ? err.message : String(err));
132
139
  }
133
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.79.0",
3
+ "version": "0.79.2",
4
4
  "description": "Schedulability compiler for multi-agent development: observe real code boundaries, refactor the conflicting seam, recompile the plan for parallel execution",
5
5
  "author": {
6
6
  "name": "Quo / クオ at kitepon.dev",