archgraph-argo 0.10.49 → 0.10.50

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.
@@ -62,7 +62,7 @@ async function buildHarnessReport({ checkOnly = false, workspaceRoot, includeBoo
62
62
  mode: checkOnly ? 'check' : 'fix-direct',
63
63
  reason: 'system architecture invalid; subdiagram_views repair skipped',
64
64
  };
65
- report.neo4j = await ensureNeo4jProjection({ checkOnly });
65
+ report.neo4j = await ensureNeo4jProjection({ checkOnly, workspaceRoot });
66
66
  report.semanticLifecycle = await ensureCanonicalSemanticLifecycle({
67
67
  checkOnly,
68
68
  workspaceRoot,
@@ -79,6 +79,7 @@ async function buildHarnessReport({ checkOnly = false, workspaceRoot, includeBoo
79
79
  }
80
80
  }
81
81
 
82
+ writeJson(reportPath, report);
82
83
  return report;
83
84
  }
84
85
 
@@ -258,7 +259,10 @@ async function verifyCanonicalSystemArchitecture({ workspaceRoot } = {}) {
258
259
  };
259
260
  }
260
261
 
261
- const validateResponse = await argoMcp.callTool('validateSystemArchitecture', {});
262
+ const validateResponse = await argoMcp.callTool('validateSystemArchitecture', {
263
+ workspaceRoot,
264
+ architecturePath: graphPath,
265
+ });
262
266
  const validatePayload = parseToolPayload(validateResponse);
263
267
  if (validatePayload.status !== 'passed') {
264
268
  return {
@@ -307,9 +311,9 @@ async function ensureSubdiagramViewsConsistency({ checkOnly, workspaceRoot }) {
307
311
  }
308
312
  }
309
313
 
310
- async function ensureNeo4jProjection({ checkOnly }) {
311
- const config = getNeo4jConfig();
312
- const dirtyBefore = getNeo4jGraphSyncState(DEFAULT_GRAPH_PATH);
314
+ async function ensureNeo4jProjection({ checkOnly, workspaceRoot }) {
315
+ const config = getNeo4jConfig({ workspaceRoot });
316
+ const dirtyBefore = getNeo4jGraphSyncState(DEFAULT_GRAPH_PATH, workspaceRoot);
313
317
  const driver = createDriver(config);
314
318
  let databaseProvision = null;
315
319
  try {
@@ -332,11 +336,19 @@ async function ensureNeo4jProjection({ checkOnly }) {
332
336
 
333
337
  let syncResult = null;
334
338
  if (!checkOnly) {
335
- syncResult = await syncArchitectureToNeo4j({ architecturePath: DEFAULT_GRAPH_PATH, ...config });
339
+ syncResult = await syncArchitectureToNeo4j({
340
+ architecturePath: DEFAULT_GRAPH_PATH,
341
+ workspaceRoot,
342
+ ...config,
343
+ });
336
344
  databaseProvision = syncResult.databaseProvision;
337
345
  }
338
346
 
339
- const verification = await verifyArchitectureSync({ architecturePath: DEFAULT_GRAPH_PATH, ...config });
347
+ const verification = await verifyArchitectureSync({
348
+ architecturePath: DEFAULT_GRAPH_PATH,
349
+ workspaceRoot,
350
+ ...config,
351
+ });
340
352
  if (!verification.matches) {
341
353
  return {
342
354
  status: 'failed',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archgraph-argo",
3
- "version": "0.10.49",
3
+ "version": "0.10.50",
4
4
  "description": "Deploy the ArchGraph ARGO toolchain, skills, and rules (schema, scripts, argo-init skill, global rule) with one command.",
5
5
  "license": "MIT",
6
6
  "bin": {