@ornexus/neocortex 4.60.75 → 4.60.77

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.
Files changed (52) hide show
  1. package/README.md +6 -43
  2. package/dist/release-source.json +1 -1
  3. package/dist/sbom.cdx.json +1195 -1205
  4. package/docs/install/installer-diagnostics.md +6 -5
  5. package/docs/install/linux-global-install.md +5 -3
  6. package/install.ps1 +80 -66
  7. package/install.sh +63 -57
  8. package/package.json +4 -11
  9. package/packages/client/dist/agent/refresh-stubs.d.ts +7 -0
  10. package/packages/client/dist/agent/refresh-stubs.js +2 -2
  11. package/packages/client/dist/agent/update-description.js +1 -1
  12. package/packages/client/dist/commands/invoke.d.ts +6 -0
  13. package/packages/client/dist/commands/invoke.js +57 -57
  14. package/packages/client/dist/commands/refresh-memory.js +3 -3
  15. package/packages/client/dist/memory/project-memory-writer.d.ts +2 -0
  16. package/packages/client/dist/memory/project-memory-writer.js +17 -16
  17. package/packages/client/dist/memory/shared-project-memory-types.js +1 -1
  18. package/packages/client/dist/runner/headless/managed-profile.js +1 -1
  19. package/packages/client/dist/runner/host-capacity.d.ts +27 -0
  20. package/packages/client/dist/runner/host-capacity.js +1 -0
  21. package/packages/shared/dist/project-memory-targets.js +9 -3
  22. package/packages/shared/dist/yoloop/host-capacity.js +76 -0
  23. package/postinstall.js +1 -1
  24. package/targets-stubs/antigravity/gemini.md +1 -1
  25. package/targets-stubs/antigravity/install-antigravity.sh +6 -5
  26. package/targets-stubs/antigravity/neocortex.md +37 -7
  27. package/targets-stubs/antigravity/skill/SKILL.md +30 -1
  28. package/targets-stubs/claude-code/neocortex-root.agent.yaml +2 -1
  29. package/targets-stubs/claude-code/neocortex-root.md +45 -19
  30. package/targets-stubs/claude-code/neocortex.agent.yaml +2 -1
  31. package/targets-stubs/claude-code/neocortex.md +64 -69
  32. package/targets-stubs/codex/AGENTS.md +36 -31
  33. package/targets-stubs/codex/README.md +7 -3
  34. package/targets-stubs/codex/install-codex.sh +22 -11
  35. package/targets-stubs/codex/neocortex.toml +14 -8
  36. package/targets-stubs/cursor/agent.md +39 -8
  37. package/targets-stubs/cursor/install-cursor.sh +1 -1
  38. package/targets-stubs/deepseek-harness/SKILL.md +8 -3
  39. package/targets-stubs/gemini-cli/agent.md +48 -16
  40. package/targets-stubs/gemini-cli/agents/neocortex.md +6 -0
  41. package/targets-stubs/gemini-cli/install-gemini.sh +20 -10
  42. package/targets-stubs/grok/SKILL.md +29 -0
  43. package/targets-stubs/grok/install-grok.sh +12 -3
  44. package/targets-stubs/kimi/neocortex.md +34 -2
  45. package/targets-stubs/lib/managed-config-merge.js +28 -1
  46. package/targets-stubs/lib/managed-profile.sh +81 -7
  47. package/targets-stubs/openclaw/SKILL.md +29 -0
  48. package/targets-stubs/opencode/neocortex-root.md +62 -28
  49. package/targets-stubs/opencode/neocortex.md +36 -4
  50. package/targets-stubs/vscode/install-vscode.sh +3 -3
  51. package/targets-stubs/vscode/neocortex.agent.md +55 -22
  52. package/docs/install/coderabbit-manual-setup.md +0 -86
@@ -63,11 +63,12 @@ safe examples and release smoke, see
63
63
 
64
64
  ## Optional tool diagnostics
65
65
 
66
- Default npm lifecycle installs do not run CodeRabbit or similar third-party
67
- installers. CI and non-interactive runs report a skip summary such as:
66
+ Default npm lifecycle installs do not run optional third-party tool
67
+ installers. When an optional-tool check reports a skip, it uses a bounded summary
68
+ such as:
68
69
 
69
70
  ```text
70
- [neocortex-installer] tool=coderabbit phase=optional-tool-setup status=skipped reasonCode=P177_OPTIONAL_TOOL_SKIPPED_CI code=null signal=null timedOut=false retryAttempt=0 timeoutMs=0 docPath=docs/install/coderabbit-manual-setup.md redactionReasonCode=P177_PUBLIC_SAFE_LOG_REDACTED summary=optional_tool_setup_skipped
71
+ [neocortex-installer] tool=example-optional-tool phase=optional-tool-setup status=skipped reasonCode=P177_OPTIONAL_TOOL_SKIPPED_CI code=null signal=null timedOut=false retryAttempt=0 timeoutMs=0 docPath=docs/install/installer-diagnostics.md redactionReasonCode=P177_PUBLIC_SAFE_LOG_REDACTED summary=optional_tool_setup_skipped
71
72
  ```
72
73
 
73
74
  Stable skip and opt-in reason codes:
@@ -121,7 +122,7 @@ terminal output:
121
122
  | `P177_OPTIONAL_TOOL_TIMEOUT` | An explicitly opted-in optional tool child timed out. | Skip optional setup for the Neocortex install and continue with manual vendor setup later. |
122
123
  | `P177_OPTIONAL_TOOL_SKIPPED_CI` | CI/non-interactive install skipped optional third-party setup. | No action required for Neocortex install; this is expected in CI. |
123
124
  | `P177_OPTIONAL_TOOL_SKIPPED_NONINTERACTIVE` | Non-interactive install skipped optional third-party setup. | Run manual vendor setup separately only if the user wants the optional tool. |
124
- | `P177_OPTIONAL_TOOL_OPT_IN_REQUIRED` | CodeRabbit or a similar tool is not installed by default. | Follow `docs/install/coderabbit-manual-setup.md` outside the npm lifecycle. |
125
+ | `P177_OPTIONAL_TOOL_OPT_IN_REQUIRED` | An optional third-party tool is not installed by default. | Follow that tool's own setup instructions outside the npm lifecycle. |
125
126
  | `P177_ROOT_HOME_DETECTED` | Linux root/sudo context may write user config under an elevated account. | Stop using sudo-first install; move to a Node version manager or npm user prefix and use synthetic recovery steps. |
126
127
  | `P177_PUBLIC_SAFE_LOG_REDACTED` | Raw child/vendor output or local paths were intentionally omitted. | Share the reason code and bounded fields only; do not paste raw logs. |
127
128
  | `sqlite-adapter-unavailable` | Enterprise continuity SQLite adapter is not installed or cannot be loaded. | Reinstall with optional dependencies or install `better-sqlite3` for the client workspace; keep only bounded reason-code evidence. |
@@ -134,7 +135,7 @@ status text:
134
135
 
135
136
  1. Retry in a fresh non-sudo shell.
136
137
  2. Prefer a Node version manager or npm user prefix for global installs.
137
- 3. Treat CodeRabbit output as optional/manual unless a user explicitly opted into
138
+ 3. Treat optional third-party tool output as optional/manual unless a user explicitly opted into
138
139
  third-party setup outside the Neocortex npm lifecycle.
139
140
  4. If the summary includes `P177_CHILD_SIGNAL`, `P177_CHILD_TIMEOUT` or
140
141
  `P177_PARENT_INTERRUPTED`, keep only the bounded `code`, `signal`, `timedOut`,
@@ -53,7 +53,8 @@ the source and destination paths for the affected machine.
53
53
  1. Inspect what exists under the elevated account:
54
54
 
55
55
  ```bash
56
- sudo ls -ld <root-home>/.neocortex <root-home>/.claude/agents/neocortex
56
+ sudo ls -ld <root-home>/.neocortex <root-home>/.claude/agents/neocortex \
57
+ <root-home>/.claude/agents/neocortex.md
57
58
  ```
58
59
 
59
60
  2. Back up before changing ownership or copying anything:
@@ -61,7 +62,8 @@ the source and destination paths for the affected machine.
61
62
  ```bash
62
63
  sudo tar -czf <reviewed-backup-path>/neocortex-root-config.tgz \
63
64
  <root-home>/.neocortex \
64
- <root-home>/.claude/agents/neocortex
65
+ <root-home>/.claude/agents/neocortex \
66
+ <root-home>/.claude/agents/neocortex.md
65
67
  ```
66
68
 
67
69
  3. Reinstall as the intended user using a Node version manager or npm user
@@ -91,7 +93,7 @@ user install works.
91
93
  - Windows `USERPROFILE` behavior is not changed by this Linux guidance.
92
94
 
93
95
  If a sanitized npm lifecycle interruption is reported after optional-tool status
94
- text, do not assume CodeRabbit or another third-party tool is part of the default
96
+ text, do not assume any third-party tool is part of the default
95
97
  install. Cross-check `docs/install/installer-diagnostics.md` for
96
98
  `P177_CHILD_SIGNAL`, `P177_CHILD_TIMEOUT`, `P177_PARENT_INTERRUPTED` and optional
97
99
  tool reason codes, then retry from a fresh user-owned shell.
package/install.ps1 CHANGED
@@ -17,7 +17,7 @@ param(
17
17
  [string]$ServerUrl = ('https://{0}.{1}.{2}' -f 'api','neocortex','sh')
18
18
  )
19
19
 
20
- $VERSION = "4.60.75"
20
+ $VERSION = "4.60.77"
21
21
 
22
22
  # =============================================================================
23
23
  # CONFIGURACOES
@@ -231,7 +231,7 @@ function Write-InstallerDiagnostic {
231
231
  [int]$RetryAttempt = 0,
232
232
  [int]$TimeoutMs = 0,
233
233
  [string]$Summary = "public_safe_bounded_diagnostic",
234
- [string]$DocPath = "docs/install/coderabbit-manual-setup.md"
234
+ [string]$DocPath = "docs/install/installer-diagnostics.md"
235
235
  )
236
236
  $toolToken = ConvertTo-PublicDiagnosticToken -Value $Tool -Fallback "neocortex"
237
237
  $phaseToken = ConvertTo-PublicDiagnosticToken -Value $Phase -Fallback "installer"
@@ -240,7 +240,7 @@ function Write-InstallerDiagnostic {
240
240
  $codeToken = ConvertTo-PublicDiagnosticToken -Value $Code -Fallback "null"
241
241
  $signalToken = ConvertTo-PublicDiagnosticToken -Value $Signal -Fallback "null"
242
242
  $summaryToken = ConvertTo-PublicDiagnosticToken -Value $Summary -Fallback "public_safe_bounded_diagnostic"
243
- $docToken = ConvertTo-PublicDiagnosticToken -Value $DocPath -Fallback "docs/install/coderabbit-manual-setup.md"
243
+ $docToken = ConvertTo-PublicDiagnosticToken -Value $DocPath -Fallback "docs/install/installer-diagnostics.md"
244
244
  $timedOutText = if ($TimedOut) { "true" } else { "false" }
245
245
  Write-Host " [neocortex-installer] tool=$toolToken phase=$phaseToken status=$statusToken reasonCode=$reasonToken code=$codeToken signal=$signalToken timedOut=$timedOutText retryAttempt=$RetryAttempt timeoutMs=$TimeoutMs docPath=$docToken redactionReasonCode=P177_PUBLIC_SAFE_LOG_REDACTED summary=$summaryToken"
246
246
  }
@@ -337,8 +337,35 @@ function Copy-ManagedFile {
337
337
  $manifest = Get-ManagedManifestPath -BaseDir $BaseDir
338
338
  $arguments = @($helper, "profile", $Source, $target, $manifest, $BaseDir, $ManagedId, "--adopt-legacy")
339
339
  if ($DryRun) { $arguments += "--dry-run" }
340
- & node @arguments 2>$null | Out-Null
341
- return ($LASTEXITCODE -eq 0)
340
+ $output = (& node @arguments 2>&1 | Out-String)
341
+ $exitCode = $LASTEXITCODE
342
+ $action = if ($output -match '"action":"([^"]+)"') { $Matches[1] } else { "failed" }
343
+ $reason = if ($output -match '"reasonCode":"([^"]+)"') { $Matches[1] } else { "managed-operation-failed" }
344
+ if ($exitCode -ne 0) { $action = "failed" }
345
+ $script:ManagedAction = $action
346
+ $script:ManagedReason = $reason
347
+ if ($action -eq "skipped") {
348
+ Write-Warn "Mudancas locais preservadas em $target ($reason). Para receber a versao nova, mova o arquivo e rode o instalador de novo."
349
+ return $true
350
+ }
351
+ if ($action -eq "failed") {
352
+ Write-Warn "Nao foi possivel instalar $target ($reason); arquivo existente preservado."
353
+ return $false
354
+ }
355
+ return $true
356
+ }
357
+
358
+ # Managed base for a platform home (CODEX_HOME, GEMINI_HOME, ...): the user
359
+ # profile when the home lives inside it, the platform home itself when it is
360
+ # redirected outside (environment variable, junction or symlink).
361
+ function Get-ManagedPlatformBase {
362
+ param([string]$PlatformHome, [string]$DefaultBase = $env:USERPROFILE)
363
+ New-Item -ItemType Directory -Path $PlatformHome -Force -ErrorAction SilentlyContinue | Out-Null
364
+ $helper = Get-ManagedConfigHelper
365
+ if (-not $helper) { return $DefaultBase }
366
+ $resolved = (& node $helper resolve-base $PlatformHome $DefaultBase 2>$null | Out-String).Trim()
367
+ if ($LASTEXITCODE -eq 0 -and $resolved) { return $resolved }
368
+ return $DefaultBase
342
369
  }
343
370
 
344
371
  # =============================================================================
@@ -821,7 +848,9 @@ function Verify-Installation {
821
848
  )
822
849
 
823
850
  foreach ($entry in $criticalFiles) {
824
- $fpath = Join-Path $script:DestDir $entry.Name
851
+ # Agent markdown lives at top-level agents\ (Claude Code discovery);
852
+ # the yaml metadata stays in the nested neocortex\ dir.
853
+ $fpath = if ($entry.Name -eq "neocortex.md") { Join-Path $script:AgentsDir $entry.Name } else { Join-Path $script:DestDir $entry.Name }
825
854
  $fname = $entry.Name
826
855
  # Epic 64 (Story 64.6): Debug file verification details
827
856
  $fileExists = Test-Path $fpath -PathType Leaf
@@ -1173,20 +1202,30 @@ function Install-Agent {
1173
1202
  }
1174
1203
 
1175
1204
  # Tier 3: Copy only 2 stub files
1176
- # Epic 64 (Story 64.2): Capture Copy-Silent return and check for errors
1177
- $stubResult1 = Copy-Silent "$claudeTargetDir\neocortex.md" "$script:DestDir\"
1178
- if (-not $stubResult1) { Write-Fail "Falha ao copiar neocortex.md de $claudeTargetDir" }
1205
+ # Claude Code only discovers subagents at top-level agents\*.md: the agent
1206
+ # goes to $script:AgentsDir\neocortex.md; .version and the yaml stay in DestDir.
1207
+ # Epic 64 (Story 64.2): Capture copy result and check for errors
1208
+ $destMd = Join-Path $script:AgentsDir "neocortex.md"
1209
+ $stubResult1 = Copy-ManagedFile -Source "$claudeTargetDir\neocortex.md" -Destination $destMd -ManagedId "profile-claude-neocortex-agent" -BaseDir $env:USERPROFILE
1210
+ if (-not $stubResult1) { $script:Errors++; Write-Fail "Falha ao copiar neocortex.md de $claudeTargetDir" }
1211
+ $claudeAgentAction = $script:ManagedAction
1179
1212
  Write-Dbg "Install-Agent: Copy neocortex.md result=$stubResult1"
1180
1213
  $stubResult2 = Copy-Silent "$claudeTargetDir\neocortex.agent.yaml" "$script:DestDir\"
1181
1214
  if (-not $stubResult2) { Write-Fail "Falha ao copiar neocortex.agent.yaml de $claudeTargetDir" }
1182
1215
  Write-Dbg "Install-Agent: Copy neocortex.agent.yaml result=$stubResult2"
1183
1216
 
1184
1217
  # Epic 65: Post-copy verification -- belt and suspenders
1185
- $destMd = Join-Path $script:DestDir "neocortex.md"
1186
1218
  $destYaml = Join-Path $script:DestDir "neocortex.agent.yaml"
1187
1219
  if (-not (Test-Path $destMd -PathType Leaf)) {
1188
1220
  Write-Fail "neocortex.md nao encontrado no destino apos copia: $destMd"
1189
1221
  if (-not $stubResult1) {} else { $script:Errors++ }
1222
+ } elseif ((-not $DryRun) -and ($claudeAgentAction -ne "skipped")) {
1223
+ # Migration: remove the legacy nested agent (not discovered by Claude
1224
+ # Code) so two same-name agents never coexist. Only that file is removed.
1225
+ $legacyMd = Join-Path $script:DestDir "neocortex.md"
1226
+ if (Test-Path $legacyMd -PathType Leaf) {
1227
+ Remove-Item $legacyMd -Force -ErrorAction SilentlyContinue
1228
+ }
1190
1229
  }
1191
1230
  if (-not (Test-Path $destYaml -PathType Leaf)) {
1192
1231
  Write-Fail "neocortex.agent.yaml nao encontrado no destino apos copia: $destYaml"
@@ -1330,41 +1369,6 @@ function Install-MCPs {
1330
1369
  if ($mcpSkip.Count -gt 0) { Write-Info "MCPs pendentes: $($mcpSkip -join ', ')" }
1331
1370
  }
1332
1371
 
1333
- # =============================================================================
1334
- # STATUS DO CODERABBIT CLI (OPCIONAL / MANUAL)
1335
- # =============================================================================
1336
-
1337
- function Test-CiEnvironment {
1338
- return ($env:CI -eq "true" -or $env:GITHUB_ACTIONS -eq "true" -or $env:TF_BUILD -eq "true")
1339
- }
1340
-
1341
- function Get-CodeRabbitSkipReason {
1342
- if (Test-CiEnvironment) { return "P177_OPTIONAL_TOOL_SKIPPED_CI" }
1343
- if ((-not (Test-Interactive)) -or $AUTO_YES -or $QUIET_MODE) { return "P177_OPTIONAL_TOOL_SKIPPED_NONINTERACTIVE" }
1344
- return "P177_OPTIONAL_TOOL_OPT_IN_REQUIRED"
1345
- }
1346
-
1347
- function Write-OptionalToolInfo {
1348
- param([string]$Message)
1349
- Write-Host " -> " -ForegroundColor DarkGray -NoNewline
1350
- Write-Host $Message -ForegroundColor DarkGray
1351
- }
1352
-
1353
- function Report-CodeRabbitStatus {
1354
- $coderabbitCmd = Get-Command coderabbit -ErrorAction SilentlyContinue
1355
- if ($coderabbitCmd) {
1356
- Write-InstallerDiagnostic -Tool "coderabbit" -Phase "optional-tool-setup" -Status "detected" -ReasonCode "P177_OPTIONAL_TOOL_DETECTED_MANUAL" -Code "0" -Summary "manual_optional_tool_detected"
1357
- Write-Ok "CodeRabbit CLI (opcional/manual detectado)"
1358
- $script:CodeRabbitInstalled = $true
1359
- return
1360
- }
1361
-
1362
- $reasonCode = Get-CodeRabbitSkipReason
1363
- Write-InstallerDiagnostic -Tool "coderabbit" -Phase "optional-tool-setup" -Status "skipped" -ReasonCode $reasonCode -Code "null" -Summary "optional_tool_setup_skipped"
1364
- Write-OptionalToolInfo "CodeRabbit CLI (opcional; setup manual em docs/install/coderabbit-manual-setup.md; $reasonCode)"
1365
- $script:CodeRabbitInstalled = $false
1366
- }
1367
-
1368
1372
  # =============================================================================
1369
1373
  # MULTI-TARGET SUPPORT
1370
1374
  # =============================================================================
@@ -1468,10 +1472,10 @@ function Install-Targets {
1468
1472
 
1469
1473
  if (Test-Path "$geminiTargetDir\agents\neocortex.md") {
1470
1474
  New-Item -ItemType Directory -Path "$geminiHome\agents" -Force | Out-Null
1471
- Copy-ManagedFile -Source "$geminiTargetDir\agents\neocortex.md" -Destination "$geminiHome\agents\neocortex.md" -ManagedId "profile-gemini-neocortex" -BaseDir $homeDir | Out-Null
1475
+ Copy-ManagedFile -Source "$geminiTargetDir\agents\neocortex.md" -Destination "$geminiHome\agents\neocortex.md" -ManagedId "profile-gemini-neocortex" -BaseDir (Get-ManagedPlatformBase -PlatformHome $geminiHome -DefaultBase $homeDir) | Out-Null
1472
1476
  } elseif (Test-Path "$geminiTargetDir\agent.md") {
1473
1477
  New-Item -ItemType Directory -Path "$geminiHome\agents" -Force | Out-Null
1474
- Copy-ManagedFile -Source "$geminiTargetDir\agent.md" -Destination "$geminiHome\agents\neocortex.md" -ManagedId "profile-gemini-neocortex" -BaseDir $homeDir | Out-Null
1478
+ Copy-ManagedFile -Source "$geminiTargetDir\agent.md" -Destination "$geminiHome\agents\neocortex.md" -ManagedId "profile-gemini-neocortex" -BaseDir (Get-ManagedPlatformBase -PlatformHome $geminiHome -DefaultBase $homeDir) | Out-Null
1475
1479
  }
1476
1480
  if (Test-Path "$geminiTargetDir\gemini.md") {
1477
1481
  Copy-ManagedFile -Source "$geminiTargetDir\gemini.md" -Destination "$homeDir\GEMINI.md" -ManagedId "profile-gemini-root" -BaseDir $homeDir | Out-Null
@@ -1499,20 +1503,27 @@ function Install-Targets {
1499
1503
  New-Item -ItemType Directory -Path $codexHome -Force | Out-Null
1500
1504
  New-Item -ItemType Directory -Path "$codexHome\agents" -Force | Out-Null
1501
1505
 
1506
+ $codexBase = Get-ManagedPlatformBase -PlatformHome $codexHome -DefaultBase $homeDir
1507
+ $codexOk = $true
1502
1508
  if (Test-Path "$codexTargetDir\AGENTS.md") {
1503
- Copy-ManagedFile -Source "$codexTargetDir\AGENTS.md" -Destination "$codexHome\AGENTS.md" -ManagedId "profile-codex-root" -BaseDir $homeDir | Out-Null
1509
+ if (-not (Copy-ManagedFile -Source "$codexTargetDir\AGENTS.md" -Destination "$codexHome\AGENTS.md" -ManagedId "profile-codex-root" -BaseDir $codexBase)) { $codexOk = $false }
1504
1510
  }
1505
1511
  if (Test-Path "$codexTargetDir\neocortex.toml") {
1506
- Copy-ManagedFile -Source "$codexTargetDir\neocortex.toml" -Destination "$codexHome\agents\neocortex.toml" -ManagedId "profile-codex-neocortex" -BaseDir $homeDir | Out-Null
1512
+ if (-not (Copy-ManagedFile -Source "$codexTargetDir\neocortex.toml" -Destination "$codexHome\agents\neocortex.toml" -ManagedId "profile-codex-neocortex" -BaseDir $codexBase)) { $codexOk = $false }
1507
1513
  }
1508
1514
  if (Test-Path "$codexTargetDir\config-mcp.toml") {
1509
1515
  $configFile = "$codexHome\config.toml"
1510
1516
  Merge-CodexMcpToml -StubFile "$codexTargetDir\config-mcp.toml" -DestFile $configFile
1511
1517
  }
1512
1518
 
1513
- Write-Ok "codex"
1514
- $script:TargetResults += "$target`:OK"
1515
- $script:TargetCount++
1519
+ if ($codexOk) {
1520
+ Write-Ok "codex"
1521
+ $script:TargetResults += "$target`:OK"
1522
+ $script:TargetCount++
1523
+ } else {
1524
+ Write-Warn "codex (arquivos gerenciados nao instalados; existentes preservados)"
1525
+ $script:TargetResults += "$target`:FAIL"
1526
+ }
1516
1527
  } else {
1517
1528
  Write-Warn "codex (adapter nao encontrado)"
1518
1529
  $script:TargetResults += "$target`:SKIP"
@@ -1523,7 +1534,7 @@ function Install-Targets {
1523
1534
  $grokHome = if ($env:GROK_HOME) { $env:GROK_HOME } else { Join-Path $homeDir ".grok" }
1524
1535
  if ($grokTargetDir -and (Test-Path "$grokTargetDir\SKILL.md" -PathType Leaf)) {
1525
1536
  New-Item -ItemType Directory -Path "$grokHome\skills\neocortex" -Force | Out-Null
1526
- Copy-ManagedFile -Source "$grokTargetDir\SKILL.md" -Destination "$grokHome\skills\neocortex\SKILL.md" -ManagedId "profile-grok-neocortex" -BaseDir $homeDir | Out-Null
1537
+ Copy-ManagedFile -Source "$grokTargetDir\SKILL.md" -Destination "$grokHome\skills\neocortex\SKILL.md" -ManagedId "profile-grok-neocortex" -BaseDir (Get-ManagedPlatformBase -PlatformHome $grokHome -DefaultBase $homeDir) | Out-Null
1527
1538
  if (Test-Path "$grokTargetDir\config-mcp.toml") {
1528
1539
  Merge-CodexMcpToml -StubFile "$grokTargetDir\config-mcp.toml" -DestFile "$grokHome\config.toml" -TargetName "Grok"
1529
1540
  }
@@ -1577,8 +1588,8 @@ function Install-Targets {
1577
1588
  $opencodeHome = Get-OpenCodeHome
1578
1589
  if ($opencodeTargetDir -and (Test-Path "$opencodeTargetDir\neocortex.md") -and (Test-Path "$opencodeTargetDir\neocortex-root.md")) {
1579
1590
  New-Item -ItemType Directory -Path "$opencodeHome\agents" -Force | Out-Null
1580
- Copy-ManagedFile -Source "$opencodeTargetDir\neocortex.md" -Destination "$opencodeHome\agents\neocortex.md" -ManagedId "profile-opencode-neocortex" -BaseDir $homeDir | Out-Null
1581
- Copy-ManagedFile -Source "$opencodeTargetDir\neocortex-root.md" -Destination "$opencodeHome\agents\neocortex-root.md" -ManagedId "profile-opencode-neocortex-root" -BaseDir $homeDir | Out-Null
1591
+ Copy-ManagedFile -Source "$opencodeTargetDir\neocortex.md" -Destination "$opencodeHome\agents\neocortex.md" -ManagedId "profile-opencode-neocortex" -BaseDir (Get-ManagedPlatformBase -PlatformHome $opencodeHome -DefaultBase $homeDir) | Out-Null
1592
+ Copy-ManagedFile -Source "$opencodeTargetDir\neocortex-root.md" -Destination "$opencodeHome\agents\neocortex-root.md" -ManagedId "profile-opencode-neocortex-root" -BaseDir (Get-ManagedPlatformBase -PlatformHome $opencodeHome -DefaultBase $homeDir) | Out-Null
1582
1593
  if (Test-Path "$opencodeTargetDir\opencode-mcp.json") {
1583
1594
  Merge-JsonMcpConfig -StubFile "$opencodeTargetDir\opencode-mcp.json" -DestFile "$opencodeHome\opencode.json" -RootKey "mcp"
1584
1595
  }
@@ -1599,7 +1610,7 @@ function Install-Targets {
1599
1610
  New-Item -ItemType Directory -Path "$homeDir\.config\agents\skills\neocortex" -Force | Out-Null
1600
1611
  New-Item -ItemType Directory -Path "$kimiCodeHome\agents" -Force | Out-Null
1601
1612
  New-Item -ItemType Directory -Path "$homeDir\.agents\agents" -Force | Out-Null
1602
- Copy-ManagedFile -Source "$kimiTargetDir\neocortex.md" -Destination "$kimiHome\skills\neocortex\SKILL.md" -ManagedId "profile-kimi-skill" -BaseDir $homeDir | Out-Null
1613
+ Copy-ManagedFile -Source "$kimiTargetDir\neocortex.md" -Destination "$kimiHome\skills\neocortex\SKILL.md" -ManagedId "profile-kimi-skill" -BaseDir (Get-ManagedPlatformBase -PlatformHome $kimiHome -DefaultBase $homeDir) | Out-Null
1603
1614
  Copy-ManagedFile -Source "$kimiTargetDir\neocortex.md" -Destination "$homeDir\.config\agents\skills\neocortex\SKILL.md" -ManagedId "profile-kimi-shared-skill" -BaseDir $homeDir | Out-Null
1604
1615
  Copy-ManagedFile -Source "$kimiTargetDir\neocortex.md" -Destination "$kimiCodeHome\agents\neocortex.md" -ManagedId "profile-kimi-neocortex" -BaseDir $kimiCodeHome | Out-Null
1605
1616
  Copy-ManagedFile -Source "$kimiTargetDir\neocortex.md" -Destination "$homeDir\.agents\agents\neocortex.md" -ManagedId "profile-kimi-shared-agent" -BaseDir $homeDir | Out-Null
@@ -1621,7 +1632,7 @@ function Install-Targets {
1621
1632
  if ($skillSource -and (Test-Path $skillSource -PathType Leaf)) {
1622
1633
  $skillDestDir = Join-Path $openclawHome "skills\neocortex"
1623
1634
  New-Item -ItemType Directory -Path $skillDestDir -Force | Out-Null
1624
- Copy-ManagedFile -Source $skillSource -Destination (Join-Path $skillDestDir "SKILL.md") -ManagedId "profile-openclaw-skill" -BaseDir $homeDir | Out-Null
1635
+ Copy-ManagedFile -Source $skillSource -Destination (Join-Path $skillDestDir "SKILL.md") -ManagedId "profile-openclaw-skill" -BaseDir (Get-ManagedPlatformBase -PlatformHome $openclawHome -DefaultBase $homeDir) | Out-Null
1625
1636
  Write-Ok "openclaw (Skill thin-client; openclaw.json preservado)"
1626
1637
  $script:TargetResults += "$target`:OK"
1627
1638
  $script:TargetCount++
@@ -1699,11 +1710,17 @@ function New-ProjectDirectories {
1699
1710
  $agentDest = "$projectDir\.claude\agents\neocortex"
1700
1711
  New-Item -ItemType Directory -Path $agentDest -Force | Out-Null
1701
1712
 
1702
- # SEMPRE copiar os 3 arquivos de interface
1703
1713
  # Tier 3: Copy only 2 stub files
1704
- # Epic 64 (Story 64.2): Capture Copy-Silent return
1705
- $r = Copy-Silent "$claudeTargetDir\neocortex.md" "$agentDest\" -BaseDir $projectDir
1706
- if (-not $r) { Write-Fail "Falha ao copiar neocortex.md (projeto)" }
1714
+ # Claude Code only discovers top-level agents\*.md; the yaml stays in the subdir.
1715
+ # Epic 64 (Story 64.2): Capture copy result
1716
+ $projectAgentMd = "$projectDir\.claude\agents\neocortex.md"
1717
+ $r = Copy-ManagedFile -Source "$claudeTargetDir\neocortex.md" -Destination $projectAgentMd -ManagedId "project-claude-neocortex-agent" -BaseDir $projectDir
1718
+ if (-not $r) { $script:Errors++; Write-Fail "Falha ao copiar neocortex.md (projeto)" }
1719
+ # Migration: remove the legacy nested agent after the top-level write
1720
+ # (never when an existing top-level file was preserved as drift)
1721
+ if ((-not $DryRun) -and ($script:ManagedAction -ne "skipped") -and (Test-Path $projectAgentMd -PathType Leaf) -and (Test-Path "$agentDest\neocortex.md" -PathType Leaf)) {
1722
+ Remove-Item "$agentDest\neocortex.md" -Force -ErrorAction SilentlyContinue
1723
+ }
1707
1724
  $r = Copy-Silent "$claudeTargetDir\neocortex.agent.yaml" "$agentDest\" -BaseDir $projectDir
1708
1725
  if (-not $r) { Write-Fail "Falha ao copiar neocortex.agent.yaml (projeto)" }
1709
1726
  # Cleanup workflow.md from previous versions
@@ -1973,7 +1990,7 @@ if ($DryRun) {
1973
1990
  }
1974
1991
 
1975
1992
  $totalSteps = 4
1976
- if ($script:SelectedTargets -contains "claude-code") { $totalSteps = 6 }
1993
+ if ($script:SelectedTargets -contains "claude-code") { $totalSteps = 5 }
1977
1994
 
1978
1995
  # Step 1: Limpeza automatica de versoes anteriores
1979
1996
  Write-Step 1 $totalSteps "Limpeza de versoes anteriores"
@@ -1996,16 +2013,13 @@ Install-Skills | Out-Null
1996
2013
  Write-Step 4 $totalSteps "Instalando $($script:SelectedTargets.Count) plataforma(s)"
1997
2014
  Install-Targets -TargetList $script:SelectedTargets
1998
2015
 
1999
- # Step 5-6: Claude Code extras
2016
+ # Step 5: Claude Code extras
2000
2017
  if ($script:SelectedTargets -contains "claude-code") {
2001
2018
  Import-EnvFile | Out-Null
2002
2019
  Request-Tokens
2003
2020
 
2004
2021
  Write-Step 5 $totalSteps "Configurando MCPs"
2005
2022
  Install-MCPs
2006
-
2007
- Write-Step 6 $totalSteps "Verificando ferramentas"
2008
- Report-CodeRabbitStatus
2009
2023
  }
2010
2024
 
2011
2025
  $installSuccess = ($script:TargetResults | Where-Object { $_ -match ":FAIL$" }).Count -eq 0
package/install.sh CHANGED
@@ -4,12 +4,11 @@
4
4
  # Development Orchestrator
5
5
 
6
6
  # Versao do instalador
7
- VERSION="4.60.75"
7
+ VERSION="4.60.77"
8
8
 
9
9
  # Flags
10
10
  MIGRATION_DETECTED=false
11
11
  MIGRATION_SOURCES=""
12
- CODERABBIT_INSTALLED=false
13
12
  LEGACY_ITEMS=""
14
13
  LEGACY_WARNINGS=0
15
14
  SELECTED_TARGETS=""
@@ -192,7 +191,7 @@ emit_installer_diagnostic() {
192
191
  retry_attempt="$(sanitize_diag_token "${8:-0}")"
193
192
  timeout_ms="$(sanitize_diag_token "${9:-0}")"
194
193
  summary="$(sanitize_diag_token "${10:-public_safe_bounded_diagnostic}")"
195
- doc_path="$(sanitize_diag_token "${11:-docs/install/coderabbit-manual-setup.md}")"
194
+ doc_path="$(sanitize_diag_token "${11:-docs/install/installer-diagnostics.md}")"
196
195
  echo " [neocortex-installer] tool=${tool} phase=${phase} status=${status} reasonCode=${reason_code} code=${code} signal=${signal} timedOut=${timed_out} retryAttempt=${retry_attempt} timeoutMs=${timeout_ms} docPath=${doc_path} redactionReasonCode=P177_PUBLIC_SAFE_LOG_REDACTED summary=${summary}"
197
196
  }
198
197
 
@@ -448,7 +447,36 @@ managed_copy_file() {
448
447
  esac
449
448
  [ -n "$tier_label" ] && args+=("--tier=$tier_label")
450
449
  [ "$DRY_RUN" = true ] && args+=(--dry-run)
451
- node "$helper" "${args[@]}" >/dev/null
450
+ local output status
451
+ output=$(node "$helper" "${args[@]}" 2>&1)
452
+ status=$?
453
+ NEOCORTEX_MANAGED_ACTION=$(printf '%s' "$output" | sed -n 's/.*"action":"\([^"]*\)".*/\1/p' | head -n 1)
454
+ NEOCORTEX_MANAGED_REASON=$(printf '%s' "$output" | sed -n 's/.*"reasonCode":"\([^"]*\)".*/\1/p' | head -n 1)
455
+ [ -n "$NEOCORTEX_MANAGED_ACTION" ] || NEOCORTEX_MANAGED_ACTION="failed"
456
+ [ -n "$NEOCORTEX_MANAGED_REASON" ] || NEOCORTEX_MANAGED_REASON="managed-operation-failed"
457
+ [ "$status" -eq 0 ] || NEOCORTEX_MANAGED_ACTION="failed"
458
+ case "$NEOCORTEX_MANAGED_ACTION" in
459
+ skipped)
460
+ warn "Mudancas locais preservadas em ${target_dest/#$HOME/\~} ($NEOCORTEX_MANAGED_REASON)"
461
+ warn "Para receber a versao nova, mova o arquivo e rode o instalador de novo"
462
+ return 0 ;;
463
+ failed)
464
+ warn "Nao foi possivel instalar ${target_dest/#$HOME/\~} ($NEOCORTEX_MANAGED_REASON); arquivo existente preservado"
465
+ return 1 ;;
466
+ esac
467
+ return 0
468
+ }
469
+
470
+ # Managed base for a platform home: $HOME when the home lives inside it, the
471
+ # platform home itself when redirected outside (env var or symlink).
472
+ managed_platform_base() {
473
+ local platform_home="$1" helper resolved=""
474
+ helper="$(managed_helper_path)"
475
+ mkdir -p "$platform_home" 2>/dev/null
476
+ if [ -f "$helper" ] && command -v node >/dev/null 2>&1; then
477
+ resolved=$(node "$helper" resolve-base "$platform_home" "$HOME" 2>/dev/null) || resolved=""
478
+ fi
479
+ printf '%s\n' "${resolved:-$HOME}"
452
480
  }
453
481
 
454
482
  managed_reconcile_file() {
@@ -1148,13 +1176,20 @@ install_agent() {
1148
1176
  fi
1149
1177
 
1150
1178
  # Tier 3 Stub-Only: copiar apenas 2 arquivos de interface (stubs minimos)
1151
- copy_file "$CLAUDE_TARGET_DIR/neocortex.md" "$DEST_DIR/" || ((errors++))
1179
+ # Claude Code so descobre subagents em agents/*.md (top-level): o agente vai
1180
+ # para $AGENTS_DIR/neocortex.md; .version e o yaml ficam em $DEST_DIR.
1181
+ managed_copy_file "$CLAUDE_TARGET_DIR/neocortex.md" "$AGENTS_DIR/neocortex.md" "profile-claude-neocortex-agent" "$HOME" || ((errors++))
1182
+ local claude_agent_action="${NEOCORTEX_MANAGED_ACTION:-}"
1152
1183
  copy_file "$CLAUDE_TARGET_DIR/neocortex.agent.yaml" "$DEST_DIR/" || ((errors++))
1153
1184
 
1154
1185
  # Epic 65: Post-copy verification
1155
- if [ ! -f "$DEST_DIR/neocortex.md" ]; then
1156
- fail "neocortex.md nao encontrado no destino apos copia: $DEST_DIR/"
1186
+ if [ ! -f "$AGENTS_DIR/neocortex.md" ]; then
1187
+ fail "neocortex.md nao encontrado no destino apos copia: $AGENTS_DIR/"
1157
1188
  ((errors++))
1189
+ elif [ "$DRY_RUN" != true ] && [ "$claude_agent_action" != "skipped" ] && [ -f "$DEST_DIR/neocortex.md" ]; then
1190
+ # Migracao: remover o agente legado aninhado (nao descoberto pelo Claude
1191
+ # Code) para nao coexistirem dois agentes com o mesmo nome.
1192
+ rm -f "$DEST_DIR/neocortex.md"
1158
1193
  fi
1159
1194
  if [ ! -f "$DEST_DIR/neocortex.agent.yaml" ]; then
1160
1195
  fail "neocortex.agent.yaml nao encontrado no destino apos copia: $DEST_DIR/"
@@ -1198,8 +1233,10 @@ install_targets() {
1198
1233
  local opencode_home="${OPENCODE_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/opencode}"
1199
1234
  if [ -f "$opencode_target/neocortex.md" ] && [ -f "$opencode_target/neocortex-root.md" ]; then
1200
1235
  mkdir -p "$opencode_home/agents" 2>/dev/null
1201
- if managed_copy_file "$opencode_target/neocortex.md" "$opencode_home/agents/neocortex.md" "profile-opencode-neocortex" "$HOME" && \
1202
- managed_copy_file "$opencode_target/neocortex-root.md" "$opencode_home/agents/neocortex-root.md" "profile-opencode-neocortex-root" "$HOME"; then
1236
+ local opencode_base
1237
+ opencode_base="$(managed_platform_base "$opencode_home")"
1238
+ if managed_copy_file "$opencode_target/neocortex.md" "$opencode_home/agents/neocortex.md" "profile-opencode-neocortex" "$opencode_base" && \
1239
+ managed_copy_file "$opencode_target/neocortex-root.md" "$opencode_home/agents/neocortex-root.md" "profile-opencode-neocortex-root" "$opencode_base"; then
1203
1240
  if [ -f "$opencode_target/opencode-mcp.json" ] && command -v node >/dev/null 2>&1; then
1204
1241
  if ! node "$SOURCE_DIR/targets-stubs/lib/mcp-merge.js" json "$opencode_target/opencode-mcp.json" "$opencode_home/opencode.json" mcp OPENCODE; then
1205
1242
  target_results+=("$target:FAIL")
@@ -1231,7 +1268,7 @@ install_targets() {
1231
1268
  "$kimi_code_home/agents" \
1232
1269
  "$HOME/.agents/agents" 2>/dev/null
1233
1270
  local kimi_ok=0
1234
- managed_copy_file "$kimi_target/neocortex.md" "$kimi_home/skills/neocortex/SKILL.md" "profile-kimi-skill" "$HOME" || kimi_ok=1
1271
+ managed_copy_file "$kimi_target/neocortex.md" "$kimi_home/skills/neocortex/SKILL.md" "profile-kimi-skill" "$(managed_platform_base "$kimi_home")" || kimi_ok=1
1235
1272
  managed_copy_file "$kimi_target/neocortex.md" "$HOME/.config/agents/skills/neocortex/SKILL.md" "profile-kimi-shared-skill" "$HOME" || kimi_ok=1
1236
1273
  managed_copy_file "$kimi_target/neocortex.md" "$kimi_code_home/agents/neocortex.md" "profile-kimi-neocortex" "$kimi_code_home" || kimi_ok=1
1237
1274
  managed_copy_file "$kimi_target/neocortex.md" "$HOME/.agents/agents/neocortex.md" "profile-kimi-shared-agent" "$HOME" || kimi_ok=1
@@ -1261,7 +1298,7 @@ install_targets() {
1261
1298
  local openclaw_dest="$openclaw_home/skills/neocortex"
1262
1299
  if [ -f "$openclaw_target/SKILL.md" ]; then
1263
1300
  mkdir -p "$openclaw_dest" 2>/dev/null
1264
- if managed_copy_file "$openclaw_target/SKILL.md" "$openclaw_dest/SKILL.md" "profile-openclaw-skill" "$HOME"; then
1301
+ if managed_copy_file "$openclaw_target/SKILL.md" "$openclaw_dest/SKILL.md" "profile-openclaw-skill" "$(managed_platform_base "$openclaw_home")"; then
1265
1302
  target_results+=("$target:OK")
1266
1303
  ((target_count++))
1267
1304
  ok "${BOLD}openclaw${NC} ${DIM}(Skill thin-client; openclaw.json preservado)${NC}"
@@ -1502,45 +1539,6 @@ install_mcps() {
1502
1539
  return 0
1503
1540
  }
1504
1541
 
1505
- # =============================================================================
1506
- # STATUS DO CODERABBIT CLI (OPCIONAL / MANUAL)
1507
- # =============================================================================
1508
-
1509
- is_ci_environment() {
1510
- [ "${CI:-}" = "true" ] || [ "${GITHUB_ACTIONS:-}" = "true" ] || [ "${TF_BUILD:-}" = "true" ]
1511
- }
1512
-
1513
- coderabbit_skip_reason() {
1514
- if is_ci_environment; then
1515
- printf '%s\n' "P177_OPTIONAL_TOOL_SKIPPED_CI"
1516
- elif ! is_interactive || [ "$AUTO_YES" = true ] || [ "$QUIET_MODE" = true ]; then
1517
- printf '%s\n' "P177_OPTIONAL_TOOL_SKIPPED_NONINTERACTIVE"
1518
- else
1519
- printf '%s\n' "P177_OPTIONAL_TOOL_OPT_IN_REQUIRED"
1520
- fi
1521
- }
1522
-
1523
- optional_tool_info() {
1524
- echo -e " ${DIM}${SYM_ARROW} $1${NC}"
1525
- }
1526
-
1527
- report_coderabbit_status() {
1528
- if command -v coderabbit >/dev/null 2>&1; then
1529
- emit_installer_diagnostic "coderabbit" "optional-tool-setup" "detected" "P177_OPTIONAL_TOOL_DETECTED_MANUAL" "0" "null" "false" "0" "0" "manual_optional_tool_detected" "docs/install/coderabbit-manual-setup.md"
1530
- ok "CodeRabbit CLI ${DIM}(opcional/manual detectado)${NC}"
1531
- CODERABBIT_INSTALLED=true
1532
- return 0
1533
- fi
1534
-
1535
- local reason_code
1536
- reason_code="$(coderabbit_skip_reason)"
1537
- emit_installer_diagnostic "coderabbit" "optional-tool-setup" "skipped" "$reason_code" "null" "null" "false" "0" "0" "optional_tool_setup_skipped" "docs/install/coderabbit-manual-setup.md"
1538
- optional_tool_info "CodeRabbit CLI ${DIM}(opcional; setup manual em docs/install/coderabbit-manual-setup.md; ${reason_code})${NC}"
1539
- CODERABBIT_INSTALLED=false
1540
-
1541
- return 0
1542
- }
1543
-
1544
1542
  # =============================================================================
1545
1543
  # VERIFICACAO POS-INSTALACAO
1546
1544
  # =============================================================================
@@ -1561,7 +1559,11 @@ verify_installation() {
1561
1559
  neocortex.md) check_min=512 ;;
1562
1560
  neocortex.agent.yaml) check_min=128 ;;
1563
1561
  esac
1564
- check_fpath="${DEST_DIR}/${check_fname}"
1562
+ if [ "$check_fname" = "neocortex.md" ]; then
1563
+ check_fpath="${AGENTS_DIR}/${check_fname}"
1564
+ else
1565
+ check_fpath="${DEST_DIR}/${check_fname}"
1566
+ fi
1565
1567
 
1566
1568
  if [ ! -f "$check_fpath" ]; then
1567
1569
  report="${report}FAIL ${check_fname} (nao encontrado)\n"
@@ -1784,8 +1786,15 @@ create_project_dirs() {
1784
1786
  mkdir -p "$project_dir/.claude/agents/neocortex"
1785
1787
 
1786
1788
  # Tier 3: copiar apenas 2 stub files
1787
- managed_copy_file "$claude_target_dir/neocortex.md" "$project_dir/.claude/agents/neocortex/" "project-claude-neocortex" "$project_dir"
1789
+ # Claude Code so descobre agents/*.md (top-level); o yaml fica no subdir.
1790
+ managed_copy_file "$claude_target_dir/neocortex.md" "$project_dir/.claude/agents/neocortex.md" "project-claude-neocortex-agent" "$project_dir"
1791
+ local project_agent_action="${NEOCORTEX_MANAGED_ACTION:-}"
1788
1792
  managed_copy_file "$claude_target_dir/neocortex.agent.yaml" "$project_dir/.claude/agents/neocortex/" "project-claude-neocortex-yaml" "$project_dir"
1793
+ # Migracao: remover agente legado aninhado apos gravar o top-level
1794
+ # (nunca quando o top-level existente foi preservado por drift)
1795
+ if [ "$DRY_RUN" != true ] && [ "$project_agent_action" != "skipped" ] && [ -f "$project_dir/.claude/agents/neocortex.md" ]; then
1796
+ rm -f "$project_dir/.claude/agents/neocortex/neocortex.md" 2>/dev/null
1797
+ fi
1789
1798
  # Cleanup workflow.md from previous versions
1790
1799
  rm -f "$project_dir/.claude/agents/neocortex/workflow.md" 2>/dev/null
1791
1800
 
@@ -2060,7 +2069,7 @@ main() {
2060
2069
  # Count targets for step total
2061
2070
  local target_count=$(echo "$SELECTED_TARGETS" | tr ',' ' ' | wc -w | tr -d ' ')
2062
2071
  if echo "$SELECTED_TARGETS" | grep -q "claude-code"; then
2063
- TOTAL_STEPS=6 # cleanup + core + skills + targets + mcps + tools
2072
+ TOTAL_STEPS=5 # cleanup + core + skills + targets + mcps
2064
2073
  fi
2065
2074
 
2066
2075
  # Step 1: Limpeza automatica de versoes anteriores
@@ -2084,16 +2093,13 @@ main() {
2084
2093
  step 4 $TOTAL_STEPS "Instalando ${BOLD}$target_count${NC} plataforma(s)"
2085
2094
  install_targets "$SELECTED_TARGETS"
2086
2095
 
2087
- # Step 5-6: Claude Code extras
2096
+ # Step 5: Claude Code extras
2088
2097
  if echo "$SELECTED_TARGETS" | grep -q "claude-code"; then
2089
2098
  load_env_file
2090
2099
  prompt_tokens
2091
2100
 
2092
2101
  step 5 $TOTAL_STEPS "Configurando MCPs"
2093
2102
  install_mcps
2094
-
2095
- step 6 $TOTAL_STEPS "Verificando ferramentas"
2096
- report_coderabbit_status
2097
2103
  fi
2098
2104
 
2099
2105
  # Result
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ornexus/neocortex",
3
- "version": "4.60.75",
4
- "description": "Neocortex v4.60.75",
3
+ "version": "4.60.77",
4
+ "description": "Neocortex v4.60.77",
5
5
  "keywords": [
6
6
  "claude",
7
7
  "claude-code",
@@ -35,14 +35,7 @@
35
35
  "packages/client",
36
36
  "packages/server"
37
37
  ],
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/OrNexus-AI/neocortex.git"
41
- },
42
- "homepage": "https://github.com/ornexus-ai/neocortex#readme",
43
- "bugs": {
44
- "url": "https://github.com/ornexus-ai/neocortex/issues"
45
- },
38
+ "homepage": "https://neocortex.sh",
46
39
  "bin": {
47
40
  "neocortex": "install.js",
48
41
  "neocortex-client": "packages/client/dist/cli.js",
@@ -56,7 +49,6 @@
56
49
  "install.sh",
57
50
  "install.ps1",
58
51
  "docs/install/linux-global-install.md",
59
- "docs/install/coderabbit-manual-setup.md",
60
52
  "docs/install/installer-diagnostics.md",
61
53
  "postinstall.js",
62
54
  "packages/client/dist/",
@@ -92,6 +84,7 @@
92
84
  "packages/shared/dist/yoloop/canonical.js",
93
85
  "packages/shared/dist/yoloop/epic-terminal-git.js",
94
86
  "packages/shared/dist/yoloop/operational-budget.js",
87
+ "packages/shared/dist/yoloop/host-capacity.js",
95
88
  "packages/shared/dist/yoloop/wave-decision-receipt.js",
96
89
  "packages/shared/dist/yoloop/planning-graph.js",
97
90
  "packages/shared/dist/yoloop/public-story-write-set.js",
@@ -53,6 +53,13 @@ export interface StubTarget {
53
53
  sourceDir: string;
54
54
  /** Files to copy */
55
55
  files: string[];
56
+ /**
57
+ * Optional per-file destination directory override. A file listed here is
58
+ * written to the mapped directory instead of `destDir`; once that write
59
+ * lands, the legacy copy at `destDir/<file>` is removed so two same-name
60
+ * agents never coexist. `.version` always stays in `destDir`.
61
+ */
62
+ fileDestDirs?: Readonly<Record<string, string>>;
56
63
  }
57
64
  export declare const STUB_TARGETS: readonly StubTarget[];
58
65
  /**