archgraph-argo 0.10.25 → 0.10.27
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/install-argo.ps1 +13 -2
- package/package.json +1 -1
package/install-argo.ps1
CHANGED
|
@@ -371,15 +371,26 @@ function Write-OpenClawMcpConfig {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
$repoIsWorkspace = Test-Path (Join-Path $RepoRoot 'design\KG\SystemArchitecture.json')
|
|
374
|
+
# Only preserve an existing ARGO_REPO_ROOT that is itself a real ArchGraph
|
|
375
|
+
# workspace. A stale value from a previous non-workspace install (e.g. the
|
|
376
|
+
# npm-global archgraph-argo package dir) must NOT be preserved, otherwise
|
|
377
|
+
# OpenClaw keeps resolving the wrong Neo4j database (basename-derived).
|
|
378
|
+
$existingIsWorkspace = $false
|
|
379
|
+
if ($existingArgoRoot) {
|
|
380
|
+
$existingIsWorkspace = Test-Path (Join-Path $existingArgoRoot 'design\KG\SystemArchitecture.json')
|
|
381
|
+
}
|
|
374
382
|
$envBlock = [ordered]@{}
|
|
375
383
|
if ($repoIsWorkspace) {
|
|
376
384
|
$envBlock.ARGO_REPO_ROOT = $RepoRoot
|
|
377
|
-
} elseif ($
|
|
385
|
+
} elseif ($existingIsWorkspace) {
|
|
378
386
|
$envBlock.ARGO_REPO_ROOT = $existingArgoRoot
|
|
379
387
|
Write-Host " $RepoRoot is not an ArchGraph workspace; preserving existing ARGO_REPO_ROOT=$existingArgoRoot"
|
|
380
388
|
} else {
|
|
389
|
+
if ($existingArgoRoot) {
|
|
390
|
+
Write-Warning " Cleared stale non-workspace ARGO_REPO_ROOT=$existingArgoRoot from the OpenClaw MCP config."
|
|
391
|
+
}
|
|
381
392
|
Write-Warning " $RepoRoot is not an ArchGraph workspace; not pinning ARGO_REPO_ROOT for OpenClaw."
|
|
382
|
-
Write-Warning " Run install-argo.ps1 from the repository you want OpenClaw to serve, or set mcp.servers.argo.env.ARGO_REPO_ROOT manually."
|
|
393
|
+
Write-Warning " Run install-argo.ps1 from the repository you want OpenClaw to serve, or set mcp.servers.argo.env.ARGO_REPO_ROOT manually (e.g. -OpenClawRepoRoot <repo>)."
|
|
383
394
|
}
|
|
384
395
|
$mcp = [ordered]@{}
|
|
385
396
|
if ($root.Contains('mcp') -and $null -ne $root['mcp']) {
|
package/package.json
CHANGED