@ornexus/neocortex 3.9.2 → 3.9.4
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.js +20 -31
- package/install.ps1 +4 -3
- package/install.sh +43 -117
- package/package.json +2 -2
- package/targets-stubs/antigravity/README.md +25 -9
- package/targets-stubs/antigravity/gemini.md +16 -0
- package/targets-stubs/antigravity/install-antigravity.sh +44 -0
- package/targets-stubs/antigravity/mcp-config.json +9 -0
- package/targets-stubs/antigravity/skill/SKILL.md +48 -0
- package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
- package/targets-stubs/codex/README.md +21 -9
- package/targets-stubs/codex/agents.md +42 -0
- package/targets-stubs/codex/config-mcp.toml +6 -0
- package/targets-stubs/codex/install-codex.sh +61 -0
- package/targets-stubs/cursor/README.md +22 -9
- package/targets-stubs/cursor/agent.md +51 -0
- package/targets-stubs/cursor/install-cursor.sh +35 -0
- package/targets-stubs/cursor/mcp.json +11 -0
- package/targets-stubs/gemini-cli/README.md +23 -9
- package/targets-stubs/gemini-cli/agent.md +58 -0
- package/targets-stubs/gemini-cli/gemini.md +16 -0
- package/targets-stubs/gemini-cli/install-gemini.sh +56 -0
- package/targets-stubs/gemini-cli/settings-mcp.json +11 -0
- package/targets-stubs/vscode/README.md +23 -9
- package/targets-stubs/vscode/agent.md +59 -0
- package/targets-stubs/vscode/copilot-instructions.md +16 -0
- package/targets-stubs/vscode/install-vscode.sh +42 -0
- package/targets-stubs/vscode/mcp.json +13 -0
package/install.js
CHANGED
|
@@ -107,8 +107,7 @@ const FLAG_MAP_WIN32 = {
|
|
|
107
107
|
'--help': '-Help',
|
|
108
108
|
// Remove legacy artifacts from ~/.claude/
|
|
109
109
|
'--cleanup-legacy': '-CleanupLegacy',
|
|
110
|
-
//
|
|
111
|
-
'--local': '-Local',
|
|
110
|
+
// --local removed (Epic 50): thin-client mandatory, zero IP on client
|
|
112
111
|
// Server URL override
|
|
113
112
|
// --server-url=<url> is passed through as-is (handled by shell scripts)
|
|
114
113
|
};
|
|
@@ -214,7 +213,7 @@ function showHelp() {
|
|
|
214
213
|
console.log(` ${color.cyan('-s, --skip-project')} Nao perguntar sobre projeto`);
|
|
215
214
|
console.log(` ${color.cyan('-q, --quiet')} Modo silencioso`);
|
|
216
215
|
console.log(` ${color.cyan('--cleanup-legacy')} Remover artefatos legados de ~/.claude/`);
|
|
217
|
-
console.log(` ${color.
|
|
216
|
+
console.log(` ${color.dim('--local')} ${color.dim('(Removido) Thin-client obrigatorio')}`);
|
|
218
217
|
console.log(` ${color.cyan('--server-url=<url>')} URL do server Neocortex`);
|
|
219
218
|
console.log(` ${color.cyan('-d, --debug')} Modo debug`);
|
|
220
219
|
console.log(` ${color.cyan('-h, --help')} Mostra esta ajuda`);
|
|
@@ -395,37 +394,27 @@ async function main() {
|
|
|
395
394
|
selectedTargets = ['claude-code'];
|
|
396
395
|
}
|
|
397
396
|
|
|
398
|
-
// ──
|
|
399
|
-
//
|
|
400
|
-
// vs developer (core/ exists = git clone)
|
|
401
|
-
const hasCore = fs.existsSync(path.join(SCRIPT_DIR, 'core'));
|
|
402
|
-
const hasLocalFlag = args.includes('--local');
|
|
397
|
+
// ── Thin-Client Mode (Epic 50) ─────────────────────────────────
|
|
398
|
+
// ALL installations are thin-client. Zero IP on client, always.
|
|
403
399
|
const configPath = path.join(os.homedir(), '.neocortex', 'config.json');
|
|
404
400
|
const hasConfig = fs.existsSync(configPath);
|
|
405
401
|
|
|
406
|
-
if (!
|
|
407
|
-
//
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
try {
|
|
423
|
-
const cfg = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
424
|
-
if (cfg.mode === 'remote') {
|
|
425
|
-
log.info(color.dim(`Remote mode active (server: ${cfg.serverUrl || 'default'})`));
|
|
426
|
-
}
|
|
427
|
-
} catch { /* ignore corrupted config */ }
|
|
428
|
-
}
|
|
402
|
+
if (!hasConfig) {
|
|
403
|
+
// Not activated yet - show activation instructions
|
|
404
|
+
log.info('');
|
|
405
|
+
log.info(color.cyan('Thin-Client Mode'));
|
|
406
|
+
log.info(color.dim('All content is served by the Neocortex remote server.'));
|
|
407
|
+
log.info('');
|
|
408
|
+
log.info(color.yellow('To activate your license:'));
|
|
409
|
+
log.info(color.bold(' neocortex activate NX-PRO-xxx'));
|
|
410
|
+
log.info('');
|
|
411
|
+
} else {
|
|
412
|
+
try {
|
|
413
|
+
const cfg = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
414
|
+
if (cfg.mode === 'remote') {
|
|
415
|
+
log.info(color.dim(`Remote mode active (server: ${cfg.serverUrl || 'default'})`));
|
|
416
|
+
}
|
|
417
|
+
} catch { /* ignore corrupted config */ }
|
|
429
418
|
}
|
|
430
419
|
|
|
431
420
|
// Dispatch to platform-specific installer
|
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.
|
|
18
|
+
$VERSION = "3.9.4"
|
|
19
19
|
|
|
20
20
|
# =============================================================================
|
|
21
21
|
# CONFIGURACOES
|
|
@@ -33,7 +33,8 @@ $DEBUG_MODE = $Debug
|
|
|
33
33
|
$SKIP_PROJECT_DIRS = $SkipProject
|
|
34
34
|
$QUIET_MODE = $Quiet
|
|
35
35
|
$NO_BANNER = $NoBanner
|
|
36
|
-
|
|
36
|
+
# LOCAL_MODE removed (Epic 50): thin-client ALWAYS, zero IP on client
|
|
37
|
+
$LOCAL_MODE = $false
|
|
37
38
|
$NEOCORTEX_SERVER_URL = $ServerUrl
|
|
38
39
|
|
|
39
40
|
function Test-Interactive {
|
|
@@ -66,7 +67,7 @@ if ($Help) {
|
|
|
66
67
|
Write-Host " -SkipProject Nao perguntar sobre projeto" -ForegroundColor Cyan
|
|
67
68
|
Write-Host " -Quiet Modo silencioso" -ForegroundColor Cyan
|
|
68
69
|
Write-Host " -CleanupLegacy (Redundante) Limpeza agora e automatica" -ForegroundColor Cyan
|
|
69
|
-
Write-Host " -Local
|
|
70
|
+
Write-Host " -Local (Removido) Thin-client obrigatorio, zero IP no client" -ForegroundColor DarkGray
|
|
70
71
|
Write-Host " -ServerUrl <url> URL do server Neocortex" -ForegroundColor Cyan
|
|
71
72
|
Write-Host " -Debug Modo debug" -ForegroundColor Cyan
|
|
72
73
|
Write-Host " -Help Mostra esta ajuda" -ForegroundColor Cyan
|
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.
|
|
7
|
+
VERSION="3.9.4"
|
|
8
8
|
|
|
9
9
|
# Flags
|
|
10
10
|
MIGRATION_DETECTED=false
|
|
@@ -14,7 +14,7 @@ LEGACY_ITEMS=""
|
|
|
14
14
|
LEGACY_WARNINGS=0
|
|
15
15
|
SELECTED_TARGETS=""
|
|
16
16
|
VALID_TARGETS="claude-code cursor vscode gemini-cli codex antigravity"
|
|
17
|
-
LOCAL_MODE
|
|
17
|
+
# LOCAL_MODE removed (Epic 50): thin-client ALWAYS, zero IP on client
|
|
18
18
|
NEOCORTEX_SERVER_URL="https://api.neocortex.ornexus.com"
|
|
19
19
|
|
|
20
20
|
# =============================================================================
|
|
@@ -59,7 +59,7 @@ while [[ $# -gt 0 ]]; do
|
|
|
59
59
|
--cleanup-legacy) CLEANUP_LEGACY=true; shift ;;
|
|
60
60
|
--targets=*) SELECTED_TARGETS="${1#--targets=}"; shift ;;
|
|
61
61
|
--create-project) CREATE_PROJECT=true; shift ;;
|
|
62
|
-
--local)
|
|
62
|
+
--local) warn "--local flag removed: thin-client mode is now mandatory (zero IP on client)"; shift ;;
|
|
63
63
|
--server-url=*) NEOCORTEX_SERVER_URL="${1#--server-url=}"; shift ;;
|
|
64
64
|
-h|--help)
|
|
65
65
|
echo ""
|
|
@@ -75,7 +75,7 @@ while [[ $# -gt 0 ]]; do
|
|
|
75
75
|
echo " -s, --skip-project Nao perguntar sobre projeto"
|
|
76
76
|
echo " -q, --quiet Modo silencioso"
|
|
77
77
|
echo " --cleanup-legacy (Redundante) Limpeza agora e automatica"
|
|
78
|
-
echo " --local
|
|
78
|
+
echo " --local (Removido) Thin-client obrigatorio, zero IP no client"
|
|
79
79
|
echo " --server-url=<url> URL do server Neocortex (padrao: api.neocortex.ornexus.com)"
|
|
80
80
|
echo " -d, --debug Modo debug"
|
|
81
81
|
echo " -h, --help Mostra esta ajuda"
|
|
@@ -563,7 +563,7 @@ install_core() {
|
|
|
563
563
|
AGENTS_DIR="${CLAUDE_DIR}/agents"
|
|
564
564
|
DEST_DIR="${AGENTS_DIR}/neocortex"
|
|
565
565
|
|
|
566
|
-
debug "HOME=$HOME | DEST=$DEST_DIR |
|
|
566
|
+
debug "HOME=$HOME | DEST=$DEST_DIR | MODE=thin-client"
|
|
567
567
|
|
|
568
568
|
# Create directories
|
|
569
569
|
if [ ! -d "$CLAUDE_DIR" ]; then
|
|
@@ -578,23 +578,8 @@ install_core() {
|
|
|
578
578
|
fi
|
|
579
579
|
mkdir -p "$DEST_DIR" 2>/dev/null || { fail "Falha ao criar $DEST_DIR"; return 1; }
|
|
580
580
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
fail "Modo --local indisponível nesta distribuição."
|
|
584
|
-
warn "Os arquivos protegidos não estão incluídos no pacote npm."
|
|
585
|
-
warn "Este modo é restrito a ambientes autorizados."
|
|
586
|
-
info "Use sem --local para operar via servidor licenciado."
|
|
587
|
-
return 1
|
|
588
|
-
fi
|
|
589
|
-
copy_dir "$SOURCE_DIR/core" "$DEST_DIR/" || ((errors++))
|
|
590
|
-
copy_file "$SOURCE_DIR/package.json" "$DEST_DIR/" || ((errors++))
|
|
591
|
-
copy_file "$SOURCE_DIR/README.md" "$DEST_DIR/" || ((errors++))
|
|
592
|
-
else
|
|
593
|
-
# Tier 3 Remote Mode: NÃO copiar IP
|
|
594
|
-
# Apenas setup do thin client - steps/skills/standards vem do server
|
|
595
|
-
# Nota: auto_cleanup_legacy() ja rodou no inicio - aqui apenas config
|
|
596
|
-
setup_thin_client_config
|
|
597
|
-
fi
|
|
581
|
+
# Thin-client ONLY: zero IP on client, all content from server
|
|
582
|
+
setup_thin_client_config
|
|
598
583
|
|
|
599
584
|
# Write version file
|
|
600
585
|
local pkg_version=""
|
|
@@ -604,11 +589,7 @@ install_core() {
|
|
|
604
589
|
[ -n "$pkg_version" ] && echo "$pkg_version" > "$DEST_DIR/.version"
|
|
605
590
|
|
|
606
591
|
if [ $errors -eq 0 ]; then
|
|
607
|
-
|
|
608
|
-
ok "Core instalado ${DIM}(standards, templates, scripts) [modo local]${NC}"
|
|
609
|
-
else
|
|
610
|
-
ok "Core instalado ${DIM}(thin client configurado) [modo remoto]${NC}"
|
|
611
|
-
fi
|
|
592
|
+
ok "Core instalado ${DIM}(thin client configurado) [modo remoto]${NC}"
|
|
612
593
|
else
|
|
613
594
|
fail "Core instalado com erros"
|
|
614
595
|
fi
|
|
@@ -627,16 +608,9 @@ install_skills() {
|
|
|
627
608
|
SKILLS_DEST="${SKILLS_DIR}/neocortex"
|
|
628
609
|
SKILLS_SOURCE="${SOURCE_DIR}/core/skills"
|
|
629
610
|
|
|
630
|
-
#
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
return 0
|
|
634
|
-
fi
|
|
635
|
-
|
|
636
|
-
if [ ! -d "$SKILLS_SOURCE" ]; then
|
|
637
|
-
debug "Skills nao encontradas no pacote"
|
|
638
|
-
return 0
|
|
639
|
-
fi
|
|
611
|
+
# Thin-client: skills delivered by remote server, never copied
|
|
612
|
+
ok "Skills ${DIM}(servidas via server remoto) [modo remoto]${NC}"
|
|
613
|
+
return 0
|
|
640
614
|
|
|
641
615
|
mkdir -p "$SKILLS_DIR" 2>/dev/null || { fail "Falha ao criar $SKILLS_DIR"; return 1; }
|
|
642
616
|
|
|
@@ -685,17 +659,7 @@ install_agent() {
|
|
|
685
659
|
[ "$QUIET_MODE" = false ] && echo " Removed workflow.md (content now server-side)"
|
|
686
660
|
fi
|
|
687
661
|
|
|
688
|
-
|
|
689
|
-
# Modo local: copiar IP completa (comportamento legado para devs)
|
|
690
|
-
copy_file "$SOURCE_DIR/package.json" "$DEST_DIR/"
|
|
691
|
-
copy_file "$SOURCE_DIR/README.md" "$DEST_DIR/"
|
|
692
|
-
copy_dir "$SOURCE_DIR/core" "$DEST_DIR/"
|
|
693
|
-
|
|
694
|
-
for folder in steps-c steps-e steps-p steps-r steps-u; do
|
|
695
|
-
copy_dir "$SOURCE_DIR/core/steps/$folder" "$DEST_DIR/"
|
|
696
|
-
done
|
|
697
|
-
fi
|
|
698
|
-
# Tier 3 Remote Mode: apenas 2 stub files + server-side orchestration
|
|
662
|
+
# Thin-client ONLY: 2 stub files + server-side orchestration
|
|
699
663
|
|
|
700
664
|
return $errors
|
|
701
665
|
}
|
|
@@ -963,8 +927,8 @@ verify_installation() {
|
|
|
963
927
|
fi
|
|
964
928
|
done
|
|
965
929
|
|
|
966
|
-
if
|
|
967
|
-
# ─── Layer 3: Step directories (
|
|
930
|
+
if false; then
|
|
931
|
+
# ─── Layer 3: Step directories (removed - thin-client only) ──────
|
|
968
932
|
for dir in steps-c steps-e steps-p steps-r steps-u; do
|
|
969
933
|
local dir_path="$DEST_DIR/$dir"
|
|
970
934
|
if [ ! -d "$dir_path" ]; then
|
|
@@ -1061,20 +1025,13 @@ show_result() {
|
|
|
1061
1025
|
echo ""
|
|
1062
1026
|
echo -e " ${GREEN}${BOLD}Instalacao concluida!${NC}"
|
|
1063
1027
|
echo ""
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
echo -e " ${DIM}Locais:${NC}"
|
|
1072
|
-
echo -e " ${DIM}Agente:${NC} ~/.claude/agents/neocortex/ ${DIM}(3 arquivos)${NC}"
|
|
1073
|
-
echo -e " ${DIM}Config:${NC} ~/.neocortex/config.json"
|
|
1074
|
-
echo ""
|
|
1075
|
-
echo -e " ${DIM}Ative sua licenca:${NC}"
|
|
1076
|
-
echo -e " ${CYAN}neocortex-client activate NX-PRO-xxx${NC}"
|
|
1077
|
-
fi
|
|
1028
|
+
echo -e " ${DIM}Modo:${NC} Remoto (thin client - zero IP)"
|
|
1029
|
+
echo -e " ${DIM}Locais:${NC}"
|
|
1030
|
+
echo -e " ${DIM}Agente:${NC} ~/.claude/agents/neocortex/ ${DIM}(3 arquivos)${NC}"
|
|
1031
|
+
echo -e " ${DIM}Config:${NC} ~/.neocortex/config.json"
|
|
1032
|
+
echo ""
|
|
1033
|
+
echo -e " ${DIM}Ative sua licenca:${NC}"
|
|
1034
|
+
echo -e " ${CYAN}neocortex-client activate NX-PRO-xxx${NC}"
|
|
1078
1035
|
echo ""
|
|
1079
1036
|
echo -e " ${DIM}Proximo passo:${NC}"
|
|
1080
1037
|
echo -e " ${CYAN}@neocortex *init @docs/epics.md${NC}"
|
|
@@ -1133,10 +1090,8 @@ create_project_dirs() {
|
|
|
1133
1090
|
rm -rf "$project_dir/.claude/agents/neocortex" 2>/dev/null
|
|
1134
1091
|
rm -rf "$project_dir/.claude/skills/neocortex" 2>/dev/null
|
|
1135
1092
|
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
rm -rf "$project_dir/core" 2>/dev/null
|
|
1139
|
-
fi
|
|
1093
|
+
# Thin-client: cleanup any legacy core/ from previous local installs
|
|
1094
|
+
rm -rf "$project_dir/core" 2>/dev/null
|
|
1140
1095
|
|
|
1141
1096
|
# Create base directories
|
|
1142
1097
|
mkdir -p "$project_dir/.neocortex/specs" \
|
|
@@ -1151,11 +1106,7 @@ create_project_dirs() {
|
|
|
1151
1106
|
cp "$SOURCE_DIR/core/data/state-template.json" "$project_dir/.neocortex/state.json"
|
|
1152
1107
|
fi
|
|
1153
1108
|
|
|
1154
|
-
#
|
|
1155
|
-
if [ "$LOCAL_MODE" = true ] && [ -d "$SOURCE_DIR/core" ]; then
|
|
1156
|
-
mkdir -p "$project_dir/core"
|
|
1157
|
-
cp -r "$SOURCE_DIR/core"/* "$project_dir/core/" 2>/dev/null
|
|
1158
|
-
fi
|
|
1109
|
+
# Thin-client: never copy core/ to project
|
|
1159
1110
|
|
|
1160
1111
|
# Install target-specific files
|
|
1161
1112
|
local targets_list
|
|
@@ -1175,73 +1126,48 @@ create_project_dirs() {
|
|
|
1175
1126
|
# Cleanup workflow.md from previous versions
|
|
1176
1127
|
rm -f "$project_dir/.claude/agents/neocortex/workflow.md" 2>/dev/null
|
|
1177
1128
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
cp "$SOURCE_DIR/package.json" "$project_dir/.claude/agents/neocortex/" 2>/dev/null
|
|
1181
|
-
cp "$SOURCE_DIR/README.md" "$project_dir/.claude/agents/neocortex/" 2>/dev/null
|
|
1182
|
-
mkdir -p "$project_dir/.claude/agents/neocortex/core"
|
|
1183
|
-
cp -r "$SOURCE_DIR/core"/* "$project_dir/.claude/agents/neocortex/core/" 2>/dev/null
|
|
1184
|
-
for folder in steps-c steps-e steps-p steps-r steps-u; do
|
|
1185
|
-
if [ -d "$SOURCE_DIR/core/steps/$folder" ]; then
|
|
1186
|
-
mkdir -p "$project_dir/.claude/agents/neocortex/$folder"
|
|
1187
|
-
cp -r "$SOURCE_DIR/core/steps/$folder"/* "$project_dir/.claude/agents/neocortex/$folder/" 2>/dev/null
|
|
1188
|
-
fi
|
|
1189
|
-
done
|
|
1190
|
-
if [ -d "$SOURCE_DIR/core/skills" ]; then
|
|
1191
|
-
mkdir -p "$project_dir/.claude/skills/neocortex"
|
|
1192
|
-
cp -r "$SOURCE_DIR/core/skills"/* "$project_dir/.claude/skills/neocortex/" 2>/dev/null
|
|
1193
|
-
fi
|
|
1194
|
-
else
|
|
1195
|
-
# Tier 3 Remote Mode: limpar IP de versoes anteriores no projeto
|
|
1196
|
-
auto_cleanup_legacy_project "$project_dir"
|
|
1197
|
-
fi
|
|
1129
|
+
# Thin-client: cleanup legacy IP from previous installs
|
|
1130
|
+
auto_cleanup_legacy_project "$project_dir"
|
|
1198
1131
|
target_summary="${target_summary}claude-code, "
|
|
1199
1132
|
fi
|
|
1200
1133
|
;;
|
|
1201
1134
|
cursor)
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1135
|
+
# IP Protection: ALWAYS thin-client, zero IP on client
|
|
1136
|
+
local stub_adapter="$SOURCE_DIR/targets-stubs/cursor/install-cursor.sh"
|
|
1137
|
+
if [ -f "$stub_adapter" ]; then
|
|
1138
|
+
. "$stub_adapter"
|
|
1205
1139
|
install_cursor "$SOURCE_DIR" "$project_dir"
|
|
1206
1140
|
target_summary="${target_summary}cursor, "
|
|
1207
1141
|
fi
|
|
1208
1142
|
;;
|
|
1209
1143
|
vscode)
|
|
1210
|
-
local
|
|
1211
|
-
if [ -f "$
|
|
1212
|
-
. "$
|
|
1144
|
+
local stub_adapter="$SOURCE_DIR/targets-stubs/vscode/install-vscode.sh"
|
|
1145
|
+
if [ -f "$stub_adapter" ]; then
|
|
1146
|
+
. "$stub_adapter"
|
|
1213
1147
|
install_vscode "$SOURCE_DIR" "$project_dir"
|
|
1214
1148
|
target_summary="${target_summary}vscode, "
|
|
1215
1149
|
fi
|
|
1216
1150
|
;;
|
|
1217
1151
|
gemini-cli)
|
|
1218
|
-
local
|
|
1219
|
-
if [ -
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
mkdir -p "$project_dir/.gemini/commands"
|
|
1223
|
-
cp "$gemini_target/commands"/*.toml "$project_dir/.gemini/commands/" 2>/dev/null
|
|
1224
|
-
fi
|
|
1225
|
-
if [ -f "$gemini_target/agent.md" ]; then
|
|
1226
|
-
mkdir -p "$project_dir/.gemini/agents"
|
|
1227
|
-
cp "$gemini_target/agent.md" "$project_dir/.gemini/agents/neocortex.md"
|
|
1228
|
-
fi
|
|
1229
|
-
[ -f "$gemini_target/settings-mcp.json" ] && cp "$gemini_target/settings-mcp.json" "$project_dir/.gemini/settings-mcp.json"
|
|
1152
|
+
local stub_adapter="$SOURCE_DIR/targets-stubs/gemini-cli/install-gemini.sh"
|
|
1153
|
+
if [ -f "$stub_adapter" ]; then
|
|
1154
|
+
. "$stub_adapter"
|
|
1155
|
+
install_gemini "$SOURCE_DIR" "$project_dir"
|
|
1230
1156
|
target_summary="${target_summary}gemini-cli, "
|
|
1231
1157
|
fi
|
|
1232
1158
|
;;
|
|
1233
1159
|
codex)
|
|
1234
|
-
local
|
|
1235
|
-
if [ -f "$
|
|
1236
|
-
. "$
|
|
1160
|
+
local stub_adapter="$SOURCE_DIR/targets-stubs/codex/install-codex.sh"
|
|
1161
|
+
if [ -f "$stub_adapter" ]; then
|
|
1162
|
+
. "$stub_adapter"
|
|
1237
1163
|
install_codex "$SOURCE_DIR" "$project_dir"
|
|
1238
1164
|
target_summary="${target_summary}codex, "
|
|
1239
1165
|
fi
|
|
1240
1166
|
;;
|
|
1241
1167
|
antigravity)
|
|
1242
|
-
local
|
|
1243
|
-
if [ -f "$
|
|
1244
|
-
. "$
|
|
1168
|
+
local stub_adapter="$SOURCE_DIR/targets-stubs/antigravity/install-antigravity.sh"
|
|
1169
|
+
if [ -f "$stub_adapter" ]; then
|
|
1170
|
+
. "$stub_adapter"
|
|
1245
1171
|
install_antigravity "$SOURCE_DIR" "$project_dir"
|
|
1246
1172
|
target_summary="${target_summary}antigravity, "
|
|
1247
1173
|
fi
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornexus/neocortex",
|
|
3
|
-
"version": "3.9.
|
|
4
|
-
"description": "Neocortex v3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
|
+
"description": "Neocortex v3.9.4 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
7
7
|
"claude-code",
|
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Target Stub: Google Antigravity
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
are delivered securely via the Neocortex remote content delivery system.
|
|
5
|
+
> **EXPERIMENTAL**: Google Antigravity is in public preview.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
8
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
9
|
+
content delivery system.
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
9
12
|
|
|
10
13
|
```bash
|
|
14
|
+
# Install Neocortex
|
|
15
|
+
npx @ornexus/neocortex
|
|
16
|
+
|
|
17
|
+
# Activate license for remote content
|
|
11
18
|
neocortex activate NX-PRO-xxx
|
|
12
19
|
```
|
|
13
20
|
|
|
14
|
-
##
|
|
21
|
+
## Contents
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
| File | Description |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `skill/SKILL.md` | Thin-client skill stub (delegates to neocortex-client) |
|
|
26
|
+
| `gemini.md` | Thin-client GEMINI.md (no @import directives) |
|
|
27
|
+
| `mcp-config.json` | MCP server configuration (Playwright + Context7) |
|
|
28
|
+
|
|
29
|
+
## How It Works
|
|
30
|
+
|
|
31
|
+
1. The stub skill receives user invocations
|
|
32
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
33
|
+
3. The server returns full pipeline instructions
|
|
34
|
+
4. The agent follows the returned instructions exactly
|
|
19
35
|
|
|
20
36
|
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Neocortex - Antigravity Configuration (Thin Client)
|
|
2
|
+
|
|
3
|
+
This project uses Neocortex, an Epic & Story Development Orchestrator.
|
|
4
|
+
|
|
5
|
+
All orchestration logic, standards, skills, and workflows are delivered by the remote Neocortex server.
|
|
6
|
+
Use the Neocortex skill to interact with the pipeline.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Invoke the Neocortex skill with your command. The skill will call `neocortex-client invoke` to fetch instructions from the server.
|
|
11
|
+
|
|
12
|
+
## Activation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
neocortex activate NX-PRO-xxx
|
|
16
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - Google Antigravity Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_antigravity() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local ag_target="$source_dir/targets-stubs/antigravity"
|
|
9
|
+
local gemini_home="${GEMINI_HOME:-$HOME/.gemini}"
|
|
10
|
+
|
|
11
|
+
if [ ! -d "$ag_target" ]; then
|
|
12
|
+
echo "[ANTIGRAVITY] ERROR: Stub directory not found: $ag_target" >&2
|
|
13
|
+
return 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
echo "[ANTIGRAVITY] Installing Neocortex for Google Antigravity (thin-client mode)..."
|
|
17
|
+
echo "[ANTIGRAVITY] WARNING: Antigravity is in public preview - APIs may change"
|
|
18
|
+
|
|
19
|
+
# Create destination directories
|
|
20
|
+
mkdir -p "$dest_dir/.agent/skills/neocortex" \
|
|
21
|
+
"$gemini_home/antigravity"
|
|
22
|
+
|
|
23
|
+
# 1. Copy SKILL.md stub
|
|
24
|
+
if [ -f "$ag_target/skill/SKILL.md" ]; then
|
|
25
|
+
cp "$ag_target/skill/SKILL.md" "$dest_dir/.agent/skills/neocortex/SKILL.md"
|
|
26
|
+
echo "[ANTIGRAVITY] Installed skill stub: .agent/skills/neocortex/SKILL.md"
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
# 2. Copy MCP config
|
|
30
|
+
if [ -f "$ag_target/mcp-config.json" ]; then
|
|
31
|
+
cp "$ag_target/mcp-config.json" "$gemini_home/antigravity/mcp_config.json"
|
|
32
|
+
echo "[ANTIGRAVITY] Installed MCP config: ~/.gemini/antigravity/mcp_config.json"
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
# 3. Copy GEMINI.md stub to project root
|
|
36
|
+
if [ -f "$ag_target/gemini.md" ]; then
|
|
37
|
+
cp "$ag_target/gemini.md" "$dest_dir/GEMINI.md"
|
|
38
|
+
echo "[ANTIGRAVITY] Installed: GEMINI.md (project root)"
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
echo "[ANTIGRAVITY] Thin-client installation complete!"
|
|
42
|
+
echo "[ANTIGRAVITY] Content delivered by remote server. Activate: neocortex activate NX-PRO-xxx"
|
|
43
|
+
return 0
|
|
44
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: neocortex
|
|
3
|
+
description: "Neocortex - Orquestrador de Desenvolvimento (Thin Client). Use when user asks to manage epics, stories, or development pipelines."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Neocortex - Thin Client Interface
|
|
7
|
+
|
|
8
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
9
|
+
|
|
10
|
+
## Invocacao
|
|
11
|
+
|
|
12
|
+
Quando o usuario invocar esta skill, siga EXATAMENTE este protocolo:
|
|
13
|
+
|
|
14
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu
|
|
15
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
neocortex-client invoke \
|
|
19
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
20
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
21
|
+
--format plain
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
25
|
+
|
|
26
|
+
## Exemplos
|
|
27
|
+
|
|
28
|
+
| Invocacao do Usuario | Comando invoke |
|
|
29
|
+
|---------------------|----------------|
|
|
30
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
31
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
32
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
33
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
34
|
+
|
|
35
|
+
## Erros
|
|
36
|
+
|
|
37
|
+
| Exit Code | Significado | Acao |
|
|
38
|
+
|-----------|-------------|------|
|
|
39
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
40
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
41
|
+
| 2 | Nao configurado | Instruir: `neocortex activate NX-PRO-xxx` |
|
|
42
|
+
|
|
43
|
+
## Regras
|
|
44
|
+
|
|
45
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
46
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
47
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
48
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Target Stub: OpenAI Codex CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
4
|
|
|
5
|
-
The full target configuration, agent definitions,
|
|
6
|
-
are delivered securely via the Neocortex remote
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Quick Start
|
|
9
10
|
|
|
10
11
|
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
11
16
|
neocortex activate NX-PRO-xxx
|
|
12
17
|
```
|
|
13
18
|
|
|
14
|
-
##
|
|
19
|
+
## Contents
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agents.md` | Thin-client AGENTS.md stub (delegates to neocortex-client) |
|
|
24
|
+
| `config-mcp.toml` | MCP server configuration (Playwright + Context7) |
|
|
25
|
+
|
|
26
|
+
## How It Works
|
|
27
|
+
|
|
28
|
+
1. The stub AGENTS.md instructs Codex to run `neocortex-client invoke`
|
|
29
|
+
2. The server returns full pipeline instructions
|
|
30
|
+
3. Codex follows the returned instructions exactly
|
|
19
31
|
|
|
20
32
|
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Neocortex - Epic & Story Development Orchestrator (Thin Client)
|
|
2
|
+
|
|
3
|
+
You are an Epic & Story Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
4
|
+
|
|
5
|
+
## Invocation Protocol
|
|
6
|
+
|
|
7
|
+
When the user invokes Neocortex, follow this protocol EXACTLY:
|
|
8
|
+
|
|
9
|
+
1. **Collect user arguments** - Everything the user wrote after the trigger
|
|
10
|
+
2. **Execute the thin client** to get instructions from the server:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
neocortex-client invoke \
|
|
14
|
+
--args "{USER_ARGS}" \
|
|
15
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
16
|
+
--format plain
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. **Follow EXACTLY the instructions returned** by the thin client on stdout
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
| User Input | invoke Command |
|
|
24
|
+
|---------------------|----------------|
|
|
25
|
+
| `*status` | `invoke --args "*status"` |
|
|
26
|
+
| `*yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
27
|
+
| `*implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
28
|
+
|
|
29
|
+
## Error Handling
|
|
30
|
+
|
|
31
|
+
| Exit Code | Meaning | Action |
|
|
32
|
+
|-----------|---------|--------|
|
|
33
|
+
| 0 | Success | Follow stdout instructions |
|
|
34
|
+
| 1 | Server error | Show stderr to user |
|
|
35
|
+
| 2 | Not configured | Instruct: `neocortex activate NX-PRO-xxx` |
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
|
|
39
|
+
- NEVER invent orchestration logic - all logic comes from the server
|
|
40
|
+
- NEVER skip the thin client - always execute invoke
|
|
41
|
+
- ALWAYS follow the returned instructions literally
|
|
42
|
+
- If the thin client fails, show the error and wait for user input
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - OpenAI Codex CLI Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_codex() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local codex_target="$source_dir/targets-stubs/codex"
|
|
9
|
+
local codex_home="${CODEX_HOME:-$HOME/.codex}"
|
|
10
|
+
|
|
11
|
+
if [ ! -d "$codex_target" ]; then
|
|
12
|
+
echo "[CODEX] ERROR: Stub directory not found: $codex_target" >&2
|
|
13
|
+
return 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
echo "[CODEX] Installing Neocortex for OpenAI Codex CLI (thin-client mode)..."
|
|
17
|
+
|
|
18
|
+
# Create destination directories
|
|
19
|
+
mkdir -p "$codex_home"
|
|
20
|
+
|
|
21
|
+
# 1. Copy AGENTS.md stub to project root
|
|
22
|
+
if [ -f "$codex_target/agents.md" ]; then
|
|
23
|
+
cp "$codex_target/agents.md" "$dest_dir/AGENTS.md"
|
|
24
|
+
echo "[CODEX] Installed: AGENTS.md (project root)"
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# 2. Copy AGENTS.md stub to global
|
|
28
|
+
if [ -f "$codex_target/agents.md" ]; then
|
|
29
|
+
cp "$codex_target/agents.md" "$codex_home/AGENTS.md"
|
|
30
|
+
echo "[CODEX] Installed: ~/.codex/AGENTS.md (global)"
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# 3. Merge MCP config into config.toml
|
|
34
|
+
if [ -f "$codex_target/config-mcp.toml" ]; then
|
|
35
|
+
local config_file="$codex_home/config.toml"
|
|
36
|
+
if [ -f "$config_file" ]; then
|
|
37
|
+
if grep -q "# Neocortex MCP Servers" "$config_file" 2>/dev/null; then
|
|
38
|
+
local tmp_file="${config_file}.tmp"
|
|
39
|
+
sed '/# Neocortex MCP Servers/,$d' "$config_file" > "$tmp_file"
|
|
40
|
+
echo "" >> "$tmp_file"
|
|
41
|
+
echo "# Neocortex MCP Servers" >> "$tmp_file"
|
|
42
|
+
cat "$codex_target/config-mcp.toml" >> "$tmp_file"
|
|
43
|
+
mv "$tmp_file" "$config_file"
|
|
44
|
+
echo "[CODEX] Updated MCP config in ~/.codex/config.toml"
|
|
45
|
+
else
|
|
46
|
+
echo "" >> "$config_file"
|
|
47
|
+
echo "# Neocortex MCP Servers" >> "$config_file"
|
|
48
|
+
cat "$codex_target/config-mcp.toml" >> "$config_file"
|
|
49
|
+
echo "[CODEX] Appended MCP config to ~/.codex/config.toml"
|
|
50
|
+
fi
|
|
51
|
+
else
|
|
52
|
+
echo "# Neocortex MCP Servers" > "$config_file"
|
|
53
|
+
cat "$codex_target/config-mcp.toml" >> "$config_file"
|
|
54
|
+
echo "[CODEX] Created ~/.codex/config.toml with MCP config"
|
|
55
|
+
fi
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
echo "[CODEX] Thin-client installation complete!"
|
|
59
|
+
echo "[CODEX] Content delivered by remote server. Activate: neocortex activate NX-PRO-xxx"
|
|
60
|
+
return 0
|
|
61
|
+
}
|
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Target Stub: Cursor IDE
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
4
|
|
|
5
|
-
The full target configuration, agent definitions,
|
|
6
|
-
are delivered securely via the Neocortex remote
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Quick Start
|
|
9
10
|
|
|
10
11
|
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
11
16
|
neocortex activate NX-PRO-xxx
|
|
12
17
|
```
|
|
13
18
|
|
|
14
|
-
##
|
|
19
|
+
## Contents
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agent.md` | Thin-client agent stub (delegates to neocortex-client) |
|
|
24
|
+
| `mcp.json` | MCP server configuration (Playwright + Context7) |
|
|
25
|
+
|
|
26
|
+
## How It Works
|
|
27
|
+
|
|
28
|
+
1. The stub agent receives user invocations
|
|
29
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
30
|
+
3. The server returns full pipeline instructions
|
|
31
|
+
4. The agent follows the returned instructions exactly
|
|
19
32
|
|
|
20
33
|
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: neocortex
|
|
3
|
+
description: "Neocortex - Orquestrador de Desenvolvimento (Thin Client)"
|
|
4
|
+
model: fast
|
|
5
|
+
readonly: false
|
|
6
|
+
is_background: false
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Neocortex - Thin Client Interface
|
|
10
|
+
|
|
11
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
12
|
+
|
|
13
|
+
## Invocacao
|
|
14
|
+
|
|
15
|
+
Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
16
|
+
|
|
17
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
|
|
18
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
neocortex-client invoke \
|
|
22
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
23
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
24
|
+
--format plain
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
28
|
+
|
|
29
|
+
## Exemplos
|
|
30
|
+
|
|
31
|
+
| Invocacao do Usuario | Comando invoke |
|
|
32
|
+
|---------------------|----------------|
|
|
33
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
34
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
35
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
36
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
37
|
+
|
|
38
|
+
## Erros
|
|
39
|
+
|
|
40
|
+
| Exit Code | Significado | Acao |
|
|
41
|
+
|-----------|-------------|------|
|
|
42
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
43
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
44
|
+
| 2 | Nao configurado | Instruir: `neocortex activate NX-PRO-xxx` |
|
|
45
|
+
|
|
46
|
+
## Regras
|
|
47
|
+
|
|
48
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
49
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
50
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
51
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - Cursor IDE Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_cursor() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local cursor_target="$source_dir/targets-stubs/cursor"
|
|
9
|
+
|
|
10
|
+
if [ ! -d "$cursor_target" ]; then
|
|
11
|
+
echo "[CURSOR] ERROR: Stub directory not found: $cursor_target" >&2
|
|
12
|
+
return 1
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
echo "[CURSOR] Installing Neocortex for Cursor IDE (thin-client mode)..."
|
|
16
|
+
|
|
17
|
+
# Create destination directories
|
|
18
|
+
mkdir -p "$dest_dir/.cursor/agents"
|
|
19
|
+
|
|
20
|
+
# 1. Copy agent stub
|
|
21
|
+
if [ -f "$cursor_target/agent.md" ]; then
|
|
22
|
+
cp "$cursor_target/agent.md" "$dest_dir/.cursor/agents/neocortex.md"
|
|
23
|
+
echo "[CURSOR] Installed agent stub: .cursor/agents/neocortex.md"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
# 2. Copy MCP config
|
|
27
|
+
if [ -f "$cursor_target/mcp.json" ]; then
|
|
28
|
+
cp "$cursor_target/mcp.json" "$dest_dir/.cursor/mcp.json"
|
|
29
|
+
echo "[CURSOR] Installed MCP config: .cursor/mcp.json"
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
echo "[CURSOR] Thin-client installation complete!"
|
|
33
|
+
echo "[CURSOR] Content delivered by remote server. Activate: neocortex activate NX-PRO-xxx"
|
|
34
|
+
return 0
|
|
35
|
+
}
|
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Target Stub: Gemini CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
4
|
|
|
5
|
-
The full target configuration, agent definitions,
|
|
6
|
-
are delivered securely via the Neocortex remote
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Quick Start
|
|
9
10
|
|
|
10
11
|
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
11
16
|
neocortex activate NX-PRO-xxx
|
|
12
17
|
```
|
|
13
18
|
|
|
14
|
-
##
|
|
19
|
+
## Contents
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agent.md` | Thin-client agent stub (delegates to neocortex-client) |
|
|
24
|
+
| `gemini.md` | Thin-client GEMINI.md (no @import directives) |
|
|
25
|
+
| `settings-mcp.json` | MCP server configuration (Playwright + Context7) |
|
|
26
|
+
|
|
27
|
+
## How It Works
|
|
28
|
+
|
|
29
|
+
1. The stub agent receives user invocations
|
|
30
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
31
|
+
3. The server returns full pipeline instructions
|
|
32
|
+
4. The agent follows the returned instructions exactly
|
|
19
33
|
|
|
20
34
|
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: neocortex
|
|
3
|
+
description: "Neocortex - Orquestrador de Desenvolvimento (Thin Client)"
|
|
4
|
+
kind: local
|
|
5
|
+
tools:
|
|
6
|
+
- read_file
|
|
7
|
+
- write_file
|
|
8
|
+
- replace
|
|
9
|
+
- run_shell_command
|
|
10
|
+
- search_file_content
|
|
11
|
+
model: gemini-2.5-pro
|
|
12
|
+
max_turns: 50
|
|
13
|
+
timeout_mins: 30
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Neocortex - Thin Client Interface
|
|
17
|
+
|
|
18
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
19
|
+
|
|
20
|
+
## Invocacao
|
|
21
|
+
|
|
22
|
+
Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
23
|
+
|
|
24
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
|
|
25
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
neocortex-client invoke \
|
|
29
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
30
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
31
|
+
--format plain
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
35
|
+
|
|
36
|
+
## Exemplos
|
|
37
|
+
|
|
38
|
+
| Invocacao do Usuario | Comando invoke |
|
|
39
|
+
|---------------------|----------------|
|
|
40
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
41
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
42
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
43
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
44
|
+
|
|
45
|
+
## Erros
|
|
46
|
+
|
|
47
|
+
| Exit Code | Significado | Acao |
|
|
48
|
+
|-----------|-------------|------|
|
|
49
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
50
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
51
|
+
| 2 | Nao configurado | Instruir: `neocortex activate NX-PRO-xxx` |
|
|
52
|
+
|
|
53
|
+
## Regras
|
|
54
|
+
|
|
55
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
56
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
57
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
58
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Neocortex - Gemini Configuration (Thin Client)
|
|
2
|
+
|
|
3
|
+
This project uses Neocortex, an Epic & Story Development Orchestrator.
|
|
4
|
+
|
|
5
|
+
All orchestration logic, standards, and skills are delivered by the remote Neocortex server.
|
|
6
|
+
Use the `@neocortex` agent to interact with the pipeline.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Invoke the `@neocortex` agent with your command. The agent will call `neocortex-client invoke` to fetch instructions from the server.
|
|
11
|
+
|
|
12
|
+
## Activation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
neocortex activate NX-PRO-xxx
|
|
16
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - Gemini CLI Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_gemini() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local gemini_target="$source_dir/targets-stubs/gemini-cli"
|
|
9
|
+
local gemini_home="${GEMINI_HOME:-$HOME/.gemini}"
|
|
10
|
+
|
|
11
|
+
if [ ! -d "$gemini_target" ]; then
|
|
12
|
+
echo "[GEMINI] ERROR: Stub directory not found: $gemini_target" >&2
|
|
13
|
+
return 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
echo "[GEMINI] Installing Neocortex for Gemini CLI (thin-client mode)..."
|
|
17
|
+
|
|
18
|
+
# Create destination directories
|
|
19
|
+
mkdir -p "$gemini_home/agents"
|
|
20
|
+
|
|
21
|
+
# 1. Copy agent stub
|
|
22
|
+
if [ -f "$gemini_target/agent.md" ]; then
|
|
23
|
+
cp "$gemini_target/agent.md" "$gemini_home/agents/neocortex.md"
|
|
24
|
+
echo "[GEMINI] Installed agent stub: ~/.gemini/agents/neocortex.md"
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# 2. Copy GEMINI.md stub to project root
|
|
28
|
+
if [ -f "$gemini_target/gemini.md" ]; then
|
|
29
|
+
cp "$gemini_target/gemini.md" "$dest_dir/GEMINI.md"
|
|
30
|
+
echo "[GEMINI] Installed: GEMINI.md (project root)"
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# 3. Merge MCP config into settings.json
|
|
34
|
+
if [ -f "$gemini_target/settings-mcp.json" ]; then
|
|
35
|
+
local settings_file="$gemini_home/settings.json"
|
|
36
|
+
if [ -f "$settings_file" ]; then
|
|
37
|
+
if command -v jq >/dev/null 2>&1; then
|
|
38
|
+
local mcp_fragment
|
|
39
|
+
mcp_fragment=$(cat "$gemini_target/settings-mcp.json")
|
|
40
|
+
jq --argjson mcp "$mcp_fragment" '. * $mcp' "$settings_file" > "${settings_file}.tmp"
|
|
41
|
+
mv "${settings_file}.tmp" "$settings_file"
|
|
42
|
+
echo "[GEMINI] Merged MCP config into ~/.gemini/settings.json"
|
|
43
|
+
else
|
|
44
|
+
cp "$gemini_target/settings-mcp.json" "$gemini_home/settings-mcp.json"
|
|
45
|
+
echo "[GEMINI] WARN: jq not found - copy settings-mcp.json manually"
|
|
46
|
+
fi
|
|
47
|
+
else
|
|
48
|
+
cp "$gemini_target/settings-mcp.json" "$settings_file"
|
|
49
|
+
echo "[GEMINI] Created ~/.gemini/settings.json with MCP config"
|
|
50
|
+
fi
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
echo "[GEMINI] Thin-client installation complete!"
|
|
54
|
+
echo "[GEMINI] Content delivered by remote server. Activate: neocortex activate NX-PRO-xxx"
|
|
55
|
+
return 0
|
|
56
|
+
}
|
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Target Stub: VSCode / GitHub Copilot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
4
|
|
|
5
|
-
The full target configuration, agent definitions,
|
|
6
|
-
are delivered securely via the Neocortex remote
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Quick Start
|
|
9
10
|
|
|
10
11
|
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
11
16
|
neocortex activate NX-PRO-xxx
|
|
12
17
|
```
|
|
13
18
|
|
|
14
|
-
##
|
|
19
|
+
## Contents
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agent.md` | Thin-client agent stub (delegates to neocortex-client) |
|
|
24
|
+
| `copilot-instructions.md` | Thin-client Copilot instructions |
|
|
25
|
+
| `mcp.json` | MCP server configuration (Playwright + Context7) |
|
|
26
|
+
|
|
27
|
+
## How It Works
|
|
28
|
+
|
|
29
|
+
1. The stub agent receives user invocations
|
|
30
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
31
|
+
3. The server returns full pipeline instructions
|
|
32
|
+
4. The agent follows the returned instructions exactly
|
|
19
33
|
|
|
20
34
|
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "neocortex"
|
|
3
|
+
description: "Neocortex - Orquestrador de Desenvolvimento (Thin Client)"
|
|
4
|
+
tools:
|
|
5
|
+
- readFile
|
|
6
|
+
- editFiles
|
|
7
|
+
- textSearch
|
|
8
|
+
- runInTerminal
|
|
9
|
+
- codebase
|
|
10
|
+
agents:
|
|
11
|
+
- "*"
|
|
12
|
+
model:
|
|
13
|
+
- "claude-sonnet-4"
|
|
14
|
+
user-invokable: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Neocortex - Thin Client Interface
|
|
18
|
+
|
|
19
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
20
|
+
|
|
21
|
+
## Invocacao
|
|
22
|
+
|
|
23
|
+
Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
24
|
+
|
|
25
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
|
|
26
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
neocortex-client invoke \
|
|
30
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
31
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
32
|
+
--format plain
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
36
|
+
|
|
37
|
+
## Exemplos
|
|
38
|
+
|
|
39
|
+
| Invocacao do Usuario | Comando invoke |
|
|
40
|
+
|---------------------|----------------|
|
|
41
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
42
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
43
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
44
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
45
|
+
|
|
46
|
+
## Erros
|
|
47
|
+
|
|
48
|
+
| Exit Code | Significado | Acao |
|
|
49
|
+
|-----------|-------------|------|
|
|
50
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
51
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
52
|
+
| 2 | Nao configurado | Instruir: `neocortex activate NX-PRO-xxx` |
|
|
53
|
+
|
|
54
|
+
## Regras
|
|
55
|
+
|
|
56
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
57
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
58
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
59
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Neocortex - Copilot Instructions (Thin Client)
|
|
2
|
+
|
|
3
|
+
This project uses Neocortex, an Epic & Story Development Orchestrator.
|
|
4
|
+
|
|
5
|
+
All orchestration logic is delivered by the remote Neocortex server.
|
|
6
|
+
Use the `@neocortex` agent (in `.github/agents/neocortex.md`) to interact with the pipeline.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Invoke the `@neocortex` agent with your command. The agent will call `neocortex-client invoke` to fetch instructions from the server.
|
|
11
|
+
|
|
12
|
+
## Activation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
neocortex activate NX-PRO-xxx
|
|
16
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - VSCode / GitHub Copilot Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_vscode() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local vscode_target="$source_dir/targets-stubs/vscode"
|
|
9
|
+
|
|
10
|
+
if [ ! -d "$vscode_target" ]; then
|
|
11
|
+
echo "[VSCODE] ERROR: Stub directory not found: $vscode_target" >&2
|
|
12
|
+
return 1
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
echo "[VSCODE] Installing Neocortex for VSCode / GitHub Copilot (thin-client mode)..."
|
|
16
|
+
|
|
17
|
+
# Create destination directories
|
|
18
|
+
mkdir -p "$dest_dir/.github/agents" \
|
|
19
|
+
"$dest_dir/.vscode"
|
|
20
|
+
|
|
21
|
+
# 1. Copy agent stub
|
|
22
|
+
if [ -f "$vscode_target/agent.md" ]; then
|
|
23
|
+
cp "$vscode_target/agent.md" "$dest_dir/.github/agents/neocortex.md"
|
|
24
|
+
echo "[VSCODE] Installed agent stub: .github/agents/neocortex.md"
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# 2. Copy copilot-instructions stub
|
|
28
|
+
if [ -f "$vscode_target/copilot-instructions.md" ]; then
|
|
29
|
+
cp "$vscode_target/copilot-instructions.md" "$dest_dir/.github/copilot-instructions.md"
|
|
30
|
+
echo "[VSCODE] Installed: .github/copilot-instructions.md"
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# 3. Copy MCP config
|
|
34
|
+
if [ -f "$vscode_target/mcp.json" ]; then
|
|
35
|
+
cp "$vscode_target/mcp.json" "$dest_dir/.vscode/mcp.json"
|
|
36
|
+
echo "[VSCODE] Installed MCP config: .vscode/mcp.json"
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
echo "[VSCODE] Thin-client installation complete!"
|
|
40
|
+
echo "[VSCODE] Content delivered by remote server. Activate: neocortex activate NX-PRO-xxx"
|
|
41
|
+
return 0
|
|
42
|
+
}
|