@ornexus/neocortex 3.9.14 → 3.9.16
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 +1 -1
- package/install.sh +19 -10
- package/package.json +2 -2
- package/packages/client/dist/agent/refresh-stubs.d.ts +34 -0
- package/packages/client/dist/agent/refresh-stubs.d.ts.map +1 -0
- package/packages/client/dist/agent/refresh-stubs.js +152 -0
- package/packages/client/dist/agent/refresh-stubs.js.map +1 -0
- package/packages/client/dist/agent/update-agent-yaml.d.ts +27 -0
- package/packages/client/dist/agent/update-agent-yaml.d.ts.map +1 -0
- package/packages/client/dist/agent/update-agent-yaml.js +103 -0
- package/packages/client/dist/agent/update-agent-yaml.js.map +1 -0
- package/packages/client/dist/agent/update-description.d.ts +3 -1
- package/packages/client/dist/agent/update-description.d.ts.map +1 -1
- package/packages/client/dist/agent/update-description.js +53 -5
- package/packages/client/dist/agent/update-description.js.map +1 -1
- package/packages/client/dist/commands/activate.d.ts.map +1 -1
- package/packages/client/dist/commands/activate.js +8 -2
- package/packages/client/dist/commands/activate.js.map +1 -1
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/skill/SKILL.md +1 -1
- package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex.md +2 -2
- package/targets-stubs/codex/agents.md +1 -1
- package/targets-stubs/cursor/agent.md +2 -2
- package/targets-stubs/gemini-cli/agent.md +2 -2
- package/targets-stubs/vscode/agent.md +2 -2
package/install.ps1
CHANGED
package/install.sh
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Development Orchestrator
|
|
5
5
|
|
|
6
6
|
# Versao do instalador
|
|
7
|
-
VERSION="3.9.
|
|
7
|
+
VERSION="3.9.16"
|
|
8
8
|
|
|
9
9
|
# Flags
|
|
10
10
|
MIGRATION_DETECTED=false
|
|
@@ -204,7 +204,9 @@ copy_dir() {
|
|
|
204
204
|
|
|
205
205
|
# Patch description tier in any agent file (YAML frontmatter or Markdown H1)
|
|
206
206
|
# Usage: patch_description_tier <file>
|
|
207
|
-
# Reads tier from ~/.neocortex/config.json and replaces
|
|
207
|
+
# Reads tier from ~/.neocortex/config.json and replaces ANY tier label with actual tier.
|
|
208
|
+
# Supports: (Free) <-> (Pro) <-> (Enterprise) in any direction.
|
|
209
|
+
# Works on both frontmatter description and banner body lines.
|
|
208
210
|
patch_description_tier() {
|
|
209
211
|
local target_file="$1"
|
|
210
212
|
local config_file="${HOME}/.neocortex/config.json"
|
|
@@ -218,22 +220,29 @@ patch_description_tier() {
|
|
|
218
220
|
|
|
219
221
|
local tier_label
|
|
220
222
|
case "$tier" in
|
|
223
|
+
free) tier_label="Free" ;;
|
|
221
224
|
pro) tier_label="Pro" ;;
|
|
222
225
|
enterprise) tier_label="Enterprise" ;;
|
|
223
|
-
*) return 0 ;;
|
|
226
|
+
*) return 0 ;;
|
|
224
227
|
esac
|
|
225
228
|
|
|
226
|
-
# Replace
|
|
227
|
-
#
|
|
228
|
-
sed
|
|
229
|
+
# Replace ANY tier label with the correct one in non-banner lines
|
|
230
|
+
# (frontmatter description, body text, H1 headers, etc.)
|
|
231
|
+
# Each sed expression replaces one possible source tier with the target tier.
|
|
232
|
+
# If source == target, sed is a no-op (replaces X with X). This is correct.
|
|
233
|
+
sed -i.bak \
|
|
234
|
+
-e "s/(Free)/(${tier_label})/g" \
|
|
235
|
+
-e "s/(Pro)/(${tier_label})/g" \
|
|
236
|
+
-e "s/(Enterprise)/(${tier_label})/g" \
|
|
237
|
+
"$target_file" 2>/dev/null
|
|
229
238
|
rm -f "${target_file}.bak" 2>/dev/null
|
|
230
239
|
|
|
231
240
|
# Fix banner alignment: the OrNexus Team line has a fixed 62-char frame.
|
|
232
|
-
# After replacing
|
|
241
|
+
# After replacing tier labels of different lengths, re-pad to maintain alignment.
|
|
233
242
|
# Pattern: "│ ## ### ###### ## OrNexus Team (Tier)<spaces>│"
|
|
234
243
|
# Inner width must be exactly 60 chars (│ + 60 + │ = 62).
|
|
235
244
|
if grep -q "OrNexus Team (${tier_label})" "$target_file" 2>/dev/null; then
|
|
236
|
-
local prefix="│ ## ### ###### ## " # 25 chars
|
|
245
|
+
local prefix="│ ## ### ###### ## " # 25 chars inner prefix
|
|
237
246
|
local content="OrNexus Team (${tier_label})"
|
|
238
247
|
local content_len=${#content}
|
|
239
248
|
local pad_len=$((60 - 25 - content_len))
|
|
@@ -241,12 +250,12 @@ patch_description_tier() {
|
|
|
241
250
|
local i
|
|
242
251
|
for ((i=0; i<pad_len; i++)); do padding="${padding} "; done
|
|
243
252
|
local new_line="${prefix}${content}${padding}│"
|
|
244
|
-
# Replace the misaligned banner line with the correctly padded one
|
|
253
|
+
# Replace the (possibly misaligned) banner line with the correctly padded one
|
|
245
254
|
sed -i.bak -e "s|│ ## ### ###### ## OrNexus Team ([^)]*).*│|${new_line}|" "$target_file" 2>/dev/null
|
|
246
255
|
rm -f "${target_file}.bak" 2>/dev/null
|
|
247
256
|
fi
|
|
248
257
|
|
|
249
|
-
debug "Tier patched
|
|
258
|
+
debug "Tier patched to (${tier_label}) in $(basename "$target_file")"
|
|
250
259
|
}
|
|
251
260
|
|
|
252
261
|
# =============================================================================
|
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.16",
|
|
4
|
+
"description": "Neocortex v3.9.16 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
7
7
|
"claude-code",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Neocortex CLI, licensed under the
|
|
6
|
+
* Functional Source License, Version 1.1 (FSL-1.1).
|
|
7
|
+
*
|
|
8
|
+
* Change Date: February 20, 2029
|
|
9
|
+
* Change License: MIT
|
|
10
|
+
*
|
|
11
|
+
* See the LICENSE file in the project root for full license text.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Find the monorepo / npm package root by walking up from this file's location.
|
|
15
|
+
* Looks for a package.json with name '@ornexus/neocortex' (monorepo root) or
|
|
16
|
+
* '@neocortex/client' (client package root that contains targets-stubs after build).
|
|
17
|
+
*
|
|
18
|
+
* Returns null if not found within 10 levels.
|
|
19
|
+
*/
|
|
20
|
+
export declare function findPackageRoot(): string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Refresh installed stubs if CLI version differs from installed version.
|
|
23
|
+
*
|
|
24
|
+
* For each stub target:
|
|
25
|
+
* 1. Read .version from install dir
|
|
26
|
+
* 2. Compare with cliVersion
|
|
27
|
+
* 3. If different (or .version missing): re-copy all stub files + write .version
|
|
28
|
+
* 4. If same: skip (no-op)
|
|
29
|
+
*
|
|
30
|
+
* Never throws -- stub refresh is non-critical.
|
|
31
|
+
* Returns the number of targets that were refreshed.
|
|
32
|
+
*/
|
|
33
|
+
export declare function refreshStubs(cliVersion: string): number;
|
|
34
|
+
//# sourceMappingURL=refresh-stubs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-stubs.d.ts","sourceRoot":"","sources":["../../src/agent/refresh-stubs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAgDH;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,MAAM,GAAG,IAAI,CAe/C;AAoBD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA4DvD"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Neocortex CLI, licensed under the
|
|
6
|
+
* Functional Source License, Version 1.1 (FSL-1.1).
|
|
7
|
+
*
|
|
8
|
+
* Change Date: February 20, 2029
|
|
9
|
+
* Change License: MIT
|
|
10
|
+
*
|
|
11
|
+
* See the LICENSE file in the project root for full license text.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @neocortex/client - Stub Refresh Module
|
|
15
|
+
*
|
|
16
|
+
* Detects version mismatch between installed stubs and CLI version.
|
|
17
|
+
* Re-copies full stub files from the package when outdated.
|
|
18
|
+
*
|
|
19
|
+
* Called by activate.ts BEFORE updateAgentDescription() to ensure
|
|
20
|
+
* the stub file has all current sections (Banner, Plugin Guard, etc.)
|
|
21
|
+
* before the regex patcher runs.
|
|
22
|
+
*
|
|
23
|
+
* Never throws -- stub refresh is non-critical.
|
|
24
|
+
*
|
|
25
|
+
* Story 55.1
|
|
26
|
+
*/
|
|
27
|
+
import { readFileSync, writeFileSync, copyFileSync, existsSync, mkdirSync } from 'node:fs';
|
|
28
|
+
import { join, dirname } from 'node:path';
|
|
29
|
+
import { homedir } from 'node:os';
|
|
30
|
+
import { fileURLToPath } from 'node:url';
|
|
31
|
+
const STUB_TARGETS = [
|
|
32
|
+
{
|
|
33
|
+
destDir: join(homedir(), '.claude', 'agents', 'neocortex'),
|
|
34
|
+
sourceDir: 'claude-code',
|
|
35
|
+
files: ['neocortex.md', 'neocortex.agent.yaml'],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
destDir: join(homedir(), '.gemini', 'agents'),
|
|
39
|
+
sourceDir: 'gemini-cli',
|
|
40
|
+
files: ['agent.md'],
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
// -- Package Root Resolution --------------------------------------------------
|
|
44
|
+
/**
|
|
45
|
+
* Find the monorepo / npm package root by walking up from this file's location.
|
|
46
|
+
* Looks for a package.json with name '@ornexus/neocortex' (monorepo root) or
|
|
47
|
+
* '@neocortex/client' (client package root that contains targets-stubs after build).
|
|
48
|
+
*
|
|
49
|
+
* Returns null if not found within 10 levels.
|
|
50
|
+
*/
|
|
51
|
+
export function findPackageRoot() {
|
|
52
|
+
try {
|
|
53
|
+
const thisFile = fileURLToPath(import.meta.url);
|
|
54
|
+
let dir = dirname(thisFile);
|
|
55
|
+
for (let i = 0; i < 10; i++) {
|
|
56
|
+
try {
|
|
57
|
+
const pkg = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf-8'));
|
|
58
|
+
if (pkg.name === '@ornexus/neocortex') {
|
|
59
|
+
return dir;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch { /* no package.json at this level */ }
|
|
63
|
+
dir = dirname(dir);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch { /* fallback */ }
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
// -- Version Comparison -------------------------------------------------------
|
|
70
|
+
/**
|
|
71
|
+
* Read the installed version from .version file in the dest directory.
|
|
72
|
+
* Returns null if file doesn't exist or is unreadable.
|
|
73
|
+
*/
|
|
74
|
+
function readInstalledVersion(destDir) {
|
|
75
|
+
try {
|
|
76
|
+
const versionFile = join(destDir, '.version');
|
|
77
|
+
if (existsSync(versionFile)) {
|
|
78
|
+
return readFileSync(versionFile, 'utf-8').trim() || null;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch { /* unreadable */ }
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
// -- Public API ---------------------------------------------------------------
|
|
85
|
+
/**
|
|
86
|
+
* Refresh installed stubs if CLI version differs from installed version.
|
|
87
|
+
*
|
|
88
|
+
* For each stub target:
|
|
89
|
+
* 1. Read .version from install dir
|
|
90
|
+
* 2. Compare with cliVersion
|
|
91
|
+
* 3. If different (or .version missing): re-copy all stub files + write .version
|
|
92
|
+
* 4. If same: skip (no-op)
|
|
93
|
+
*
|
|
94
|
+
* Never throws -- stub refresh is non-critical.
|
|
95
|
+
* Returns the number of targets that were refreshed.
|
|
96
|
+
*/
|
|
97
|
+
export function refreshStubs(cliVersion) {
|
|
98
|
+
try {
|
|
99
|
+
const packageRoot = findPackageRoot();
|
|
100
|
+
if (!packageRoot) {
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
103
|
+
// targets-stubs/ is at the package root level
|
|
104
|
+
const stubsRoot = join(packageRoot, 'targets-stubs');
|
|
105
|
+
if (!existsSync(stubsRoot)) {
|
|
106
|
+
return 0;
|
|
107
|
+
}
|
|
108
|
+
let refreshed = 0;
|
|
109
|
+
for (const target of STUB_TARGETS) {
|
|
110
|
+
try {
|
|
111
|
+
// Only refresh if the dest dir exists (user has this platform installed)
|
|
112
|
+
if (!existsSync(target.destDir)) {
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
const installedVersion = readInstalledVersion(target.destDir);
|
|
116
|
+
if (installedVersion === cliVersion) {
|
|
117
|
+
continue; // Already up to date
|
|
118
|
+
}
|
|
119
|
+
// Source directory for this target
|
|
120
|
+
const sourceDir = join(stubsRoot, target.sourceDir);
|
|
121
|
+
if (!existsSync(sourceDir)) {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
// Copy each file
|
|
125
|
+
let copiedAny = false;
|
|
126
|
+
for (const file of target.files) {
|
|
127
|
+
const src = join(sourceDir, file);
|
|
128
|
+
const dest = join(target.destDir, file);
|
|
129
|
+
if (existsSync(src)) {
|
|
130
|
+
mkdirSync(target.destDir, { recursive: true });
|
|
131
|
+
copyFileSync(src, dest);
|
|
132
|
+
copiedAny = true;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// Write .version file
|
|
136
|
+
if (copiedAny) {
|
|
137
|
+
writeFileSync(join(target.destDir, '.version'), cliVersion + '\n', 'utf-8');
|
|
138
|
+
refreshed++;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch {
|
|
142
|
+
// Non-critical -- continue with next target
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return refreshed;
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
// Non-critical -- entire function is best-effort
|
|
149
|
+
return 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=refresh-stubs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-stubs.js","sourceRoot":"","sources":["../../src/agent/refresh-stubs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAazC,MAAM,YAAY,GAAiB;IACjC;QACE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC;QAC1D,SAAS,EAAE,aAAa;QACxB,KAAK,EAAE,CAAC,cAAc,EAAE,sBAAsB,CAAC;KAChD;IACD;QACE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC;QAC7C,SAAS,EAAE,YAAY;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC;KACpB;CACF,CAAC;AAEF,gFAAgF;AAEhF;;;;;;GAMG;AACH,MAAM,UAAU,eAAe;IAC7B,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5B,IAAI,CAA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ACP,4CAA4C;YAC9C,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,iDAAiD;QACjD,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Neocortex CLI, licensed under the
|
|
6
|
+
* Functional Source License, Version 1.1 (FSL-1.1).
|
|
7
|
+
*
|
|
8
|
+
* Change Date: February 20, 2029
|
|
9
|
+
* Change License: MIT
|
|
10
|
+
*
|
|
11
|
+
* See the LICENSE file in the project root for full license text.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Update agent.yaml files across all known locations.
|
|
15
|
+
* Returns count of files updated.
|
|
16
|
+
*
|
|
17
|
+
* Never throws.
|
|
18
|
+
*/
|
|
19
|
+
export declare function updateAgentYaml(version: string, tier?: string): number;
|
|
20
|
+
/**
|
|
21
|
+
* Update agent.yaml at a specific file path (used for testing).
|
|
22
|
+
* Returns true if the file was modified.
|
|
23
|
+
*
|
|
24
|
+
* Never throws.
|
|
25
|
+
*/
|
|
26
|
+
export declare function updateAgentYamlAt(filePath: string, version: string, tier?: string): boolean;
|
|
27
|
+
//# sourceMappingURL=update-agent-yaml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-yaml.d.ts","sourceRoot":"","sources":["../../src/agent/update-agent-yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAgFH;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAYtE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAE3F"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Neocortex CLI, licensed under the
|
|
6
|
+
* Functional Source License, Version 1.1 (FSL-1.1).
|
|
7
|
+
*
|
|
8
|
+
* Change Date: February 20, 2029
|
|
9
|
+
* Change License: MIT
|
|
10
|
+
*
|
|
11
|
+
* See the LICENSE file in the project root for full license text.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @neocortex/client - Agent YAML Updater
|
|
15
|
+
*
|
|
16
|
+
* Patches neocortex.agent.yaml with current version and tier-based title.
|
|
17
|
+
*
|
|
18
|
+
* Patches TWO fields:
|
|
19
|
+
* 1. version: 'X.X.X'
|
|
20
|
+
* 2. title: 'Development Orchestrator (Tier)'
|
|
21
|
+
*
|
|
22
|
+
* Called after:
|
|
23
|
+
* - refreshStubs() (ensures YAML exists with current structure)
|
|
24
|
+
* - updateAgentDescription() (ensures consistency across all surfaces)
|
|
25
|
+
*
|
|
26
|
+
* Never throws -- YAML update is non-critical.
|
|
27
|
+
*
|
|
28
|
+
* Story 55.2
|
|
29
|
+
*/
|
|
30
|
+
import { readFileSync, writeFileSync, existsSync } from 'node:fs';
|
|
31
|
+
import { join } from 'node:path';
|
|
32
|
+
import { homedir } from 'node:os';
|
|
33
|
+
// -- Constants ----------------------------------------------------------------
|
|
34
|
+
const TIER_LABELS = {
|
|
35
|
+
free: 'Free',
|
|
36
|
+
pro: 'Pro',
|
|
37
|
+
enterprise: 'Enterprise',
|
|
38
|
+
};
|
|
39
|
+
// Regex patterns for YAML fields (simple key: 'value' format)
|
|
40
|
+
const VERSION_PATTERN = /^(\s*version:\s*)'[^']*'/m;
|
|
41
|
+
const TITLE_PATTERN = /^(\s*title:\s*)'[^']*'/m;
|
|
42
|
+
const HOME_YAML_FILES = [
|
|
43
|
+
join(homedir(), '.claude', 'agents', 'neocortex', 'neocortex.agent.yaml'),
|
|
44
|
+
];
|
|
45
|
+
// -- Internal -----------------------------------------------------------------
|
|
46
|
+
/**
|
|
47
|
+
* Patch a single agent.yaml file with version and tier.
|
|
48
|
+
* Returns true if file was modified.
|
|
49
|
+
*/
|
|
50
|
+
function patchYamlFile(filePath, version, tier) {
|
|
51
|
+
try {
|
|
52
|
+
if (!existsSync(filePath)) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
let content = readFileSync(filePath, 'utf-8');
|
|
56
|
+
const original = content;
|
|
57
|
+
const label = TIER_LABELS[tier.toLowerCase()] ?? 'Free';
|
|
58
|
+
// Patch version
|
|
59
|
+
if (VERSION_PATTERN.test(content)) {
|
|
60
|
+
content = content.replace(VERSION_PATTERN, `$1'${version}'`);
|
|
61
|
+
}
|
|
62
|
+
// Patch title
|
|
63
|
+
if (TITLE_PATTERN.test(content)) {
|
|
64
|
+
content = content.replace(TITLE_PATTERN, `$1'Development Orchestrator (${label})'`);
|
|
65
|
+
}
|
|
66
|
+
if (content === original) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
writeFileSync(filePath, content, 'utf-8');
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// -- Public API ---------------------------------------------------------------
|
|
77
|
+
/**
|
|
78
|
+
* Update agent.yaml files across all known locations.
|
|
79
|
+
* Returns count of files updated.
|
|
80
|
+
*
|
|
81
|
+
* Never throws.
|
|
82
|
+
*/
|
|
83
|
+
export function updateAgentYaml(version, tier) {
|
|
84
|
+
const resolvedTier = tier ?? 'free';
|
|
85
|
+
let updated = 0;
|
|
86
|
+
// Home-level files
|
|
87
|
+
for (const filePath of HOME_YAML_FILES) {
|
|
88
|
+
if (patchYamlFile(filePath, version, resolvedTier)) {
|
|
89
|
+
updated++;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return updated;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Update agent.yaml at a specific file path (used for testing).
|
|
96
|
+
* Returns true if the file was modified.
|
|
97
|
+
*
|
|
98
|
+
* Never throws.
|
|
99
|
+
*/
|
|
100
|
+
export function updateAgentYamlAt(filePath, version, tier) {
|
|
101
|
+
return patchYamlFile(filePath, version, tier ?? 'free');
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=update-agent-yaml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-yaml.js","sourceRoot":"","sources":["../../src/agent/update-agent-yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,gFAAgF;AAEhF,MAAM,WAAW,GAA2B;IAC1C,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CACzB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,eAAe,GAAG,2BAA2B,CAAC;AACpD,MAAM,aAAa,GAAG,yBAAyB,CAAC;AAEhD,MAAM,eAAe,GAAG;IACtB,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAsB,CAAC;CAC1E,CAAC;AAEF,gFAAgF;AAEhF;;;GAGG;AACH,SAAS,aAAa,CAAC,QAAgB,EAAE,OAAe,EAAE,IAAY;IACpE,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,OAAO,GAAG,YAAY,CAAC,QAA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,EAAE,IAAI,IAAI,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -28,7 +28,9 @@ export declare function buildDescription(version: string, tier: string): string;
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function readTierFromConfig(): string;
|
|
30
30
|
/**
|
|
31
|
-
* Update agent descriptions across ALL
|
|
31
|
+
* Update agent descriptions across ALL known platform files:
|
|
32
|
+
* 1. Home-level files (Claude Code, Gemini CLI)
|
|
33
|
+
* 2. Project-level files (Cursor, VSCode, Codex, Antigravity) -- discovered via git root
|
|
32
34
|
*
|
|
33
35
|
* Never throws -- description update is non-critical.
|
|
34
36
|
* Returns count of files updated.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-description.d.ts","sourceRoot":"","sources":["../../src/agent/update-description.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"update-description.d.ts","sourceRoot":"","sources":["../../src/agent/update-description.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAmIH;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGxD;AAID;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAW3C;AA0ED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAyB7E;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAIT"}
|
|
@@ -21,12 +21,15 @@
|
|
|
21
21
|
* 2. ASCII banner version line: `│ ### ######## vX.X.X ...│`
|
|
22
22
|
* 3. ASCII banner tier line: `│ ## ### ###### ## OrNexus Team (Tier) ...│`
|
|
23
23
|
*
|
|
24
|
-
* Supported platforms:
|
|
24
|
+
* Supported platforms (home-level):
|
|
25
25
|
* - Claude Code: ~/.claude/agents/neocortex/neocortex.md (YAML frontmatter)
|
|
26
26
|
* - Gemini CLI: ~/.gemini/agents/agent.md (YAML frontmatter)
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
28
|
+
* Supported platforms (project-level, discovered via git root):
|
|
29
|
+
* - Cursor: <root>/.cursor/agents/neocortex.md (YAML frontmatter)
|
|
30
|
+
* - VSCode: <root>/.github/agents/neocortex.md (YAML frontmatter)
|
|
31
|
+
* - Codex: <root>/AGENTS.md (Markdown H1)
|
|
32
|
+
* - Antigravity: <root>/.agent/skills/neocortex/SKILL.md (YAML frontmatter)
|
|
30
33
|
*
|
|
31
34
|
* Called after:
|
|
32
35
|
* - License activation (activate.ts)
|
|
@@ -35,6 +38,7 @@
|
|
|
35
38
|
* Format: 🧠 Neocortex vX.X.X (Tier) | OrNexus Team
|
|
36
39
|
*/
|
|
37
40
|
import { readFileSync, writeFileSync, existsSync } from 'node:fs';
|
|
41
|
+
import { execSync } from 'node:child_process';
|
|
38
42
|
import { join } from 'node:path';
|
|
39
43
|
import { homedir } from 'node:os';
|
|
40
44
|
// ── Constants ─────────────────────────────────────────────────────────────
|
|
@@ -62,7 +66,6 @@ const BANNER_VERSION_PATTERN = /^│ ### ######## v[\d.]+\s*│$/m;
|
|
|
62
66
|
const BANNER_TIER_PATTERN = /^│ ## ### ###### ## OrNexus Team \([^)]*\)\s*│$/m;
|
|
63
67
|
/**
|
|
64
68
|
* All known home-directory agent files, grouped by description format.
|
|
65
|
-
* Project-level files are patched by install.sh (paths vary per project).
|
|
66
69
|
*/
|
|
67
70
|
const HOME_AGENT_FILES = [
|
|
68
71
|
// Claude Code (home-level)
|
|
@@ -70,6 +73,38 @@ const HOME_AGENT_FILES = [
|
|
|
70
73
|
// Gemini CLI (home-level)
|
|
71
74
|
{ path: join(homedir(), '.gemini', 'agents', 'agent.md'), type: 'yaml' },
|
|
72
75
|
];
|
|
76
|
+
/**
|
|
77
|
+
* Known project-level agent file paths (relative to project root).
|
|
78
|
+
* These are patched after license activation so the tier reflects reality.
|
|
79
|
+
*/
|
|
80
|
+
const PROJECT_AGENT_FILES = [
|
|
81
|
+
// Cursor
|
|
82
|
+
{ relativePath: join('.cursor', 'agents', 'neocortex.md'), type: 'yaml' },
|
|
83
|
+
// VSCode / GitHub Copilot
|
|
84
|
+
{ relativePath: join('.github', 'agents', 'neocortex.md'), type: 'yaml' },
|
|
85
|
+
// Codex
|
|
86
|
+
{ relativePath: 'AGENTS.md', type: 'h1' },
|
|
87
|
+
// Antigravity
|
|
88
|
+
{ relativePath: join('.agent', 'skills', 'neocortex', 'SKILL.md'), type: 'yaml' },
|
|
89
|
+
];
|
|
90
|
+
// ── Project Root Discovery ────────────────────────────────────────────────
|
|
91
|
+
/**
|
|
92
|
+
* Discover the git project root, or null if not in a git repo.
|
|
93
|
+
* Never throws -- returns null on any failure.
|
|
94
|
+
*/
|
|
95
|
+
function discoverProjectRoot() {
|
|
96
|
+
try {
|
|
97
|
+
const root = execSync('git rev-parse --show-toplevel', {
|
|
98
|
+
encoding: 'utf-8',
|
|
99
|
+
timeout: 5000,
|
|
100
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
101
|
+
}).trim();
|
|
102
|
+
return root || null;
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
73
108
|
// ── Banner Helpers ────────────────────────────────────────────────────────
|
|
74
109
|
/**
|
|
75
110
|
* Build a right-padded banner line.
|
|
@@ -174,7 +209,9 @@ function updateFile(filePath, type, description, version, tier) {
|
|
|
174
209
|
}
|
|
175
210
|
}
|
|
176
211
|
/**
|
|
177
|
-
* Update agent descriptions across ALL
|
|
212
|
+
* Update agent descriptions across ALL known platform files:
|
|
213
|
+
* 1. Home-level files (Claude Code, Gemini CLI)
|
|
214
|
+
* 2. Project-level files (Cursor, VSCode, Codex, Antigravity) -- discovered via git root
|
|
178
215
|
*
|
|
179
216
|
* Never throws -- description update is non-critical.
|
|
180
217
|
* Returns count of files updated.
|
|
@@ -183,11 +220,22 @@ export function updateAgentDescription(version, tier) {
|
|
|
183
220
|
const resolvedTier = tier ?? readTierFromConfig();
|
|
184
221
|
const description = buildDescription(version, resolvedTier);
|
|
185
222
|
let updated = 0;
|
|
223
|
+
// 1. Home-level files (existing behavior)
|
|
186
224
|
for (const { path, type } of HOME_AGENT_FILES) {
|
|
187
225
|
if (updateFile(path, type, description, version, resolvedTier)) {
|
|
188
226
|
updated++;
|
|
189
227
|
}
|
|
190
228
|
}
|
|
229
|
+
// 2. Project-level files (discover git root, then check known paths)
|
|
230
|
+
const projectRoot = discoverProjectRoot();
|
|
231
|
+
if (projectRoot) {
|
|
232
|
+
for (const { relativePath, type } of PROJECT_AGENT_FILES) {
|
|
233
|
+
const fullPath = join(projectRoot, relativePath);
|
|
234
|
+
if (updateFile(fullPath, type, description, version, resolvedTier)) {
|
|
235
|
+
updated++;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
191
239
|
return updated;
|
|
192
240
|
}
|
|
193
241
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-description.js","sourceRoot":"","sources":["../../src/agent/update-description.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH
|
|
1
|
+
{"version":3,"file":"update-description.js","sourceRoot":"","sources":["../../src/agent/update-description.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,E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;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"activate.d.ts","sourceRoot":"","sources":["../../src/commands/activate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAsDH,MAAM,WAAW,eAAe;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,8BAA8B;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAaD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAmBxF;AA8BD;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CA0HhF"}
|
|
@@ -27,6 +27,8 @@ import { LicenseClient } from '../license/license-client.js';
|
|
|
27
27
|
import { EncryptedCache } from '../cache/encrypted-cache.js';
|
|
28
28
|
import { getMachineFingerprint } from '../machine/fingerprint.js';
|
|
29
29
|
import { updateAgentDescription } from '../agent/update-description.js';
|
|
30
|
+
import { refreshStubs } from '../agent/refresh-stubs.js';
|
|
31
|
+
import { updateAgentYaml } from '../agent/update-agent-yaml.js';
|
|
30
32
|
// ── Version Resolution ────────────────────────────────────────────────────
|
|
31
33
|
function getInstalledVersion() {
|
|
32
34
|
try {
|
|
@@ -194,10 +196,14 @@ export async function activate(options) {
|
|
|
194
196
|
message: `Failed to save config to ${CONFIG_FILE}: ${err instanceof Error ? err.message : String(err)}`,
|
|
195
197
|
};
|
|
196
198
|
}
|
|
197
|
-
// 5.
|
|
199
|
+
// 5. Refresh stubs if version mismatch detected (Story 55.1)
|
|
198
200
|
const cliVersion = getInstalledVersion();
|
|
201
|
+
refreshStubs(cliVersion);
|
|
202
|
+
// 6. Update agent description with activated tier and version
|
|
199
203
|
updateAgentDescription(cliVersion, tier);
|
|
200
|
-
//
|
|
204
|
+
// 7. Update agent YAML with version and tier (Story 55.2)
|
|
205
|
+
updateAgentYaml(cliVersion, tier);
|
|
206
|
+
// 8. Return success
|
|
201
207
|
return {
|
|
202
208
|
success: true,
|
|
203
209
|
message: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activate.js","sourceRoot":"","sources":["../../src/commands/activate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"activate.js","sourceRoot":"","sources":["../../src/commands/activate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,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UAAU,EAAE,aAAa;KAC1B,CAAC;IAEF,IAAI,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO;YACL,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,4BAA4B,WAAW,KAAK,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;SACxG,CAAC;IACJ,CAAC;IAED,6DAA6D;IAC7D,MAAM,UAAU,GAAG,mBAAmB,EAAE,CAAC;IACzC,YAAY,CAAC,UAAU,CAAC,CAAC;IAEzB,8DAA8D;IAC9D,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAEzC,0DAA0D;IAC1D,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAElC,oBAAoB;IACpB,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE;YACP,iCAAiC;YACjC,EAAE;YACF,cAAc,IAAI,EAAE;YACpB,cAAc,SAAS,EAAE;YACzB,cAAc,WAAW,EAAE;YAC3B,cAAc,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG;YAC9D,EAAE;YACF,2CAA2C;YAC3C,2DAA2D;SAC5D,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,IAAI;QACJ,SAAS;QACT,UAAU,EAAE,WAAW;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v3.9.
|
|
3
|
+
description: "🧠 Neocortex v3.9.16 (Free) | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
tools:
|
|
@@ -56,7 +56,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
56
56
|
┌────────────────────────────────────────────────────────────┐
|
|
57
57
|
│ │
|
|
58
58
|
│ ####### N E O C O R T E X │
|
|
59
|
-
│ ### ######## v3.9.
|
|
59
|
+
│ ### ######## v3.9.16 │
|
|
60
60
|
│ ######### ##### │
|
|
61
61
|
│ ## ############## Development Orchestrator │
|
|
62
62
|
│ ## ### ###### ## OrNexus Team (Free) │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v3.9.
|
|
3
|
+
description: "🧠 Neocortex v3.9.16 (Free) | OrNexus Team"
|
|
4
4
|
model: fast
|
|
5
5
|
readonly: false
|
|
6
6
|
is_background: false
|
|
@@ -18,7 +18,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
18
18
|
┌────────────────────────────────────────────────────────────┐
|
|
19
19
|
│ │
|
|
20
20
|
│ ####### N E O C O R T E X │
|
|
21
|
-
│ ### ######## v3.9.
|
|
21
|
+
│ ### ######## v3.9.16 │
|
|
22
22
|
│ ######### ##### │
|
|
23
23
|
│ ## ############## Development Orchestrator │
|
|
24
24
|
│ ## ### ###### ## OrNexus Team (Free) │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v3.9.
|
|
3
|
+
description: "🧠 Neocortex v3.9.16 (Free) | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
- read_file
|
|
@@ -25,7 +25,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
25
25
|
┌────────────────────────────────────────────────────────────┐
|
|
26
26
|
│ │
|
|
27
27
|
│ ####### N E O C O R T E X │
|
|
28
|
-
│ ### ######## v3.9.
|
|
28
|
+
│ ### ######## v3.9.16 │
|
|
29
29
|
│ ######### ##### │
|
|
30
30
|
│ ## ############## Development Orchestrator │
|
|
31
31
|
│ ## ### ###### ## OrNexus Team (Free) │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "neocortex"
|
|
3
|
-
description: "🧠 Neocortex v3.9.
|
|
3
|
+
description: "🧠 Neocortex v3.9.16 (Free) | OrNexus Team"
|
|
4
4
|
tools:
|
|
5
5
|
- readFile
|
|
6
6
|
- editFiles
|
|
@@ -26,7 +26,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
26
26
|
┌────────────────────────────────────────────────────────────┐
|
|
27
27
|
│ │
|
|
28
28
|
│ ####### N E O C O R T E X │
|
|
29
|
-
│ ### ######## v3.9.
|
|
29
|
+
│ ### ######## v3.9.16 │
|
|
30
30
|
│ ######### ##### │
|
|
31
31
|
│ ## ############## Development Orchestrator │
|
|
32
32
|
│ ## ### ###### ## OrNexus Team (Free) │
|