@ornexus/neocortex 4.66.1 → 4.66.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.
@@ -413,9 +413,10 @@ function removeManagedTomlSections(text, managed) {
413
413
  const out = [];
414
414
  let skipping = false;
415
415
  for (const line of lines) {
416
- const match = line.match(/^\[mcp_servers\.([^\]]+)\]$/);
417
- if (match) skipping = managed.includes(match[1]);
418
- else if (isTomlSectionHeader(line)) skipping = false;
416
+ const match = line.match(/^\[\[?mcp_servers\.([^\]]+)\]\]?$/);
417
+ if (match) {
418
+ skipping = managed.some((name) => match[1] === name || match[1].startsWith(`${name}.`));
419
+ } else if (isTomlSectionHeader(line)) skipping = false;
419
420
  if (!skipping) out.push(line);
420
421
  }
421
422
  return out.join('\n').replace(/[ \t\n]*$/, '\n');
@@ -472,9 +473,10 @@ function mergeToml(stubFile, destFile, target) {
472
473
  const namesToAppend = managed.filter((name) => Object.prototype.hasOwnProperty.call(plan.entries, name));
473
474
  const preserved = removeManagedTomlSections(existing, namesToRemove).replace(/\n*# Neocortex MCP Servers\s*\n*$/, '\n');
474
475
  const managedBlock = namesToAppend.map((name) => stubSections.get(name).trimEnd()).join('\n\n');
476
+ const preservedBody = preserved.trimEnd();
475
477
  const next = managedBlock
476
- ? `${preserved.trimEnd()}\n\n# Neocortex MCP Servers\n${managedBlock}\n`
477
- : `${preserved.trimEnd()}\n`;
478
+ ? `${preservedBody ? `${preservedBody}\n\n` : ''}# Neocortex MCP Servers\n${managedBlock}\n`
479
+ : (preservedBody ? `${preservedBody}\n` : '');
478
480
  const nextOwnership = stableJson({ ...ownership.value, entries: plan.entries });
479
481
  if (next !== existing) {
480
482
  if (retirement.remove.length > 0) backupRetired(destFile, target);
@@ -74,7 +74,7 @@ user's own `*yolo @docs/stories/<id>.story.md` is never refused.
74
74
  ┌────────────────────────────────────────────────────────────┐
75
75
  │ │
76
76
  │ ####### N E O C O R T E X │
77
- │ ### ######## v4.66.1 │
77
+ │ ### ######## v4.66.2 │
78
78
  │ ######### ##### │
79
79
  │ ## ############## Development Orchestrator │
80
80
  │ ## ### ###### ## OrNexus Team │
@@ -73,7 +73,7 @@ user's own `*yolo @docs/stories/<id>.story.md` is never refused.
73
73
  ┌────────────────────────────────────────────────────────────┐
74
74
  │ │
75
75
  │ ####### N E O C O R T E X │
76
- │ ### ######## v4.66.1 │
76
+ │ ### ######## v4.66.2 │
77
77
  │ ######### ##### │
78
78
  │ ## ############## Development Orchestrator │
79
79
  │ ## ### ###### ## OrNexus Team │
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "neocortex"
3
- description: "Neocortex v4.66.1 | OrNexus Team"
3
+ description: "Neocortex v4.66.2 | OrNexus Team"
4
4
  tools:
5
5
  # Read / Edit (built-in tool sets)
6
6
  - read
@@ -82,7 +82,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
82
82
  ┌────────────────────────────────────────────────────────────┐
83
83
  │ │
84
84
  │ ####### N E O C O R T E X │
85
- │ ### ######## v4.66.1 │
85
+ │ ### ######## v4.66.2 │
86
86
  │ ######### ##### │
87
87
  │ ## ############## Development Orchestrator │
88
88
  │ ## ### ###### ## OrNexus Team │