@ornexus/neocortex 3.9.0 → 3.9.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/install.ps1 CHANGED
@@ -15,7 +15,7 @@ param(
15
15
  [string]$ServerUrl = "https://api.neocortex.ornexus.com"
16
16
  )
17
17
 
18
- $VERSION = "3.9.0"
18
+ $VERSION = "3.9.2"
19
19
 
20
20
  # =============================================================================
21
21
  # CONFIGURACOES
@@ -182,6 +182,8 @@ function Copy-Silent {
182
182
  try { Copy-Item -Path $Source -Destination $Destination -Force; return $true }
183
183
  catch { return $false }
184
184
  }
185
+ Write-Dbg "Arquivo nao encontrado: $Source"
186
+ $script:Errors++
185
187
  return $false
186
188
  }
187
189
 
@@ -715,7 +717,12 @@ function Install-Skills {
715
717
 
716
718
  function Install-Agent {
717
719
  $claudeTargetDir = Join-Path $script:SourceDir "targets\claude-code"
718
- if (-not (Test-Path $claudeTargetDir)) { $claudeTargetDir = $script:SourceDir }
720
+ if (-not (Test-Path $claudeTargetDir)) {
721
+ $claudeTargetDir = Join-Path $script:SourceDir "targets-stubs\claude-code"
722
+ }
723
+ if (-not (Test-Path $claudeTargetDir)) {
724
+ $claudeTargetDir = $script:SourceDir
725
+ }
719
726
 
720
727
  # SEMPRE copiar os 3 arquivos de interface
721
728
  # Tier 3: Copy only 2 stub files
package/install.sh CHANGED
@@ -4,7 +4,7 @@
4
4
  # Epic & Story Development Orchestrator
5
5
 
6
6
  # Versao do instalador
7
- VERSION="3.9.0"
7
+ VERSION="3.9.2"
8
8
 
9
9
  # Flags
10
10
  MIGRATION_DETECTED=false
@@ -188,7 +188,12 @@ run_with_spinner() {
188
188
  copy_file() {
189
189
  local src="$1" dest="$2"
190
190
  debug "Copiando: $src -> $dest"
191
- [ -f "$src" ] && cp "$src" "$dest" 2>/dev/null
191
+ if [ -f "$src" ]; then
192
+ cp "$src" "$dest" 2>/dev/null
193
+ else
194
+ debug "Arquivo nao encontrado: $src"
195
+ return 1
196
+ fi
192
197
  }
193
198
 
194
199
  copy_dir() {
@@ -663,11 +668,16 @@ install_agent() {
663
668
  local errors=0
664
669
 
665
670
  CLAUDE_TARGET_DIR="$SOURCE_DIR/targets/claude-code"
666
- [ ! -d "$CLAUDE_TARGET_DIR" ] && CLAUDE_TARGET_DIR="$SOURCE_DIR"
671
+ if [ ! -d "$CLAUDE_TARGET_DIR" ]; then
672
+ CLAUDE_TARGET_DIR="$SOURCE_DIR/targets-stubs/claude-code"
673
+ fi
674
+ if [ ! -d "$CLAUDE_TARGET_DIR" ]; then
675
+ CLAUDE_TARGET_DIR="$SOURCE_DIR"
676
+ fi
667
677
 
668
678
  # Tier 3 Stub-Only: copiar apenas 2 arquivos de interface (stubs minimos)
669
- copy_file "$CLAUDE_TARGET_DIR/neocortex.md" "$DEST_DIR/"
670
- copy_file "$CLAUDE_TARGET_DIR/neocortex.agent.yaml" "$DEST_DIR/"
679
+ copy_file "$CLAUDE_TARGET_DIR/neocortex.md" "$DEST_DIR/" || ((errors++))
680
+ copy_file "$CLAUDE_TARGET_DIR/neocortex.agent.yaml" "$DEST_DIR/" || ((errors++))
671
681
 
672
682
  # Cleanup: remover workflow.md de instalacoes anteriores (v3.8 -> v3.9)
673
683
  if [ -f "$DEST_DIR/workflow.md" ]; then
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ornexus/neocortex",
3
- "version": "3.9.0",
4
- "description": "Neocortex v3.9.0 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
3
+ "version": "3.9.2",
4
+ "description": "Neocortex v3.9.2 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
5
5
  "keywords": [
6
6
  "claude",
7
7
  "claude-code",
@@ -0,0 +1,24 @@
1
+ agent:
2
+ metadata:
3
+ id: agents/neocortex
4
+ name: 'Neocortex'
5
+ title: 'Epic & Story Development Orchestrator'
6
+ icon: '>'
7
+ version: '3.9.2'
8
+ architecture: 'thin-client'
9
+ module: stand-alone
10
+ hasSidecar: false
11
+ language: 'pt-BR'
12
+ resolution: 'remote'
13
+
14
+ model: opus
15
+
16
+ tools:
17
+ - Bash
18
+ - Read
19
+ - Write
20
+ - Edit
21
+ - Glob
22
+ - Grep
23
+
24
+ instructions: neocortex.md
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: neocortex
3
+ description: "Neocortex - Orquestrador de Desenvolvimento (Thin Client)"
4
+ model: opus
5
+ tools:
6
+ - Bash
7
+ - Read
8
+ - Write
9
+ - Edit
10
+ - Glob
11
+ - Grep
12
+ ---
13
+
14
+ # Neocortex - Thin Client Interface
15
+
16
+ Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
17
+
18
+ ## Invocacao
19
+
20
+ Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
21
+
22
+ 1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
23
+ 2. **Executar o thin client** para obter instrucoes do server:
24
+
25
+ ```bash
26
+ neocortex-client invoke \
27
+ --args "{ARGS_DO_USUARIO}" \
28
+ --project-root "$(git rev-parse --show-toplevel)" \
29
+ --format plain
30
+ ```
31
+
32
+ 3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
33
+
34
+ ## Exemplos
35
+
36
+ | Invocacao do Usuario | Comando invoke |
37
+ |---------------------|----------------|
38
+ | `@neocortex` (vazio) | `invoke --args ""` |
39
+ | `@neocortex *status` | `invoke --args "*status"` |
40
+ | `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
41
+ | `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
42
+ | `@neocortex *create-epic "COMO dev, QUERO auth, PARA seguranca"` | `invoke --args '*create-epic "COMO dev, QUERO auth, PARA seguranca"'` |
43
+
44
+ ## Erros
45
+
46
+ | Exit Code | Significado | Acao |
47
+ |-----------|-------------|------|
48
+ | 0 | Sucesso | Seguir instrucoes do stdout |
49
+ | 1 | Erro do server | Mostrar stderr ao usuario |
50
+ | 2 | Nao configurado | Instruir: `neocortex activate NX-PRO-xxx` |
51
+
52
+ ## Regras
53
+
54
+ - NUNCA invente logica de orquestracao - toda logica vem do server
55
+ - NUNCA pule o thin client - sempre execute o invoke
56
+ - SEMPRE siga as instrucoes retornadas literalmente
57
+ - Se o thin client falhar, mostre o erro e aguarde input do usuario