@ornexus/neocortex 4.61.4 → 4.61.5
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/dist/release-source.json +1 -1
- package/dist/sbom.cdx.json +1193 -1193
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +2 -2
- package/packages/client/dist/git/git-lifecycle-store.js +30 -1
- package/packages/client/dist/yolo/change-evidence-collector.js +18 -1
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/skill/SKILL.md +1 -1
- package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex-root.md +2 -2
- 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/opencode/neocortex-root.md +1 -1
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
package/install.ps1
CHANGED
package/install.sh
CHANGED
package/package.json
CHANGED
|
@@ -357,7 +357,7 @@ export async function mutateGitLifecycleRuntime(projectRoot, mutate, options = {
|
|
|
357
357
|
const commonDir = await gitCommonDir(projectRoot);
|
|
358
358
|
const runtimeDirectory = await ensureRuntimeDirectory(commonDir);
|
|
359
359
|
const lockPath = join(runtimeDirectory, LOCK_DIRECTORY);
|
|
360
|
-
const lockOwner = await
|
|
360
|
+
const lockOwner = await acquireLockWithBackoff(lockPath);
|
|
361
361
|
try {
|
|
362
362
|
const storePath = join(runtimeDirectory, GIT_LIFECYCLE_RUNTIME_FILE);
|
|
363
363
|
const legacyStorePath = join(commonDir, LEGACY_STORE_FILE);
|
|
@@ -429,6 +429,17 @@ export function applyGitLifecycleRuntimeOverlay(tracked, runtime) {
|
|
|
429
429
|
if (c01OnlyOverlay && Array.isArray(trackedSteps)
|
|
430
430
|
&& trackedSteps.includes(GIT_LIFECYCLE_SETUP_BRANCH_STEP_ID))
|
|
431
431
|
continue;
|
|
432
|
+
// 4.61.5: C01 instructs the child not to touch tracked state, so later
|
|
433
|
+
// tracked progress (C02..) arrives without C01. Union C01 into it instead
|
|
434
|
+
// of letting the C01-only bridge mask that progress.
|
|
435
|
+
if (c01OnlyOverlay && Array.isArray(trackedSteps) && trackedSteps.length > 0) {
|
|
436
|
+
stories[storyId] = {
|
|
437
|
+
...trackedStory,
|
|
438
|
+
steps_completed: [GIT_LIFECYCLE_SETUP_BRANCH_STEP_ID,
|
|
439
|
+
...trackedSteps.filter((step) => step !== GIT_LIFECYCLE_SETUP_BRANCH_STEP_ID)],
|
|
440
|
+
};
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
432
443
|
stories[storyId] = { ...trackedStory, ...structuredClone(overlay) };
|
|
433
444
|
}
|
|
434
445
|
return merged;
|
|
@@ -2384,6 +2395,24 @@ function safeShaArray(value) {
|
|
|
2384
2395
|
function emptyDocument() {
|
|
2385
2396
|
return { schemaVersion: 1, revision: 0, epics: {}, stories: {} };
|
|
2386
2397
|
}
|
|
2398
|
+
/**
|
|
2399
|
+
* 4.61.5: parallel story-worktree children share this runtime; a live
|
|
2400
|
+
* holder is normally a sub-second write, so retry only `lock-active` with a
|
|
2401
|
+
* bounded backoff (about 4 s in total). Every other lock error fails at once.
|
|
2402
|
+
*/
|
|
2403
|
+
async function acquireLockWithBackoff(lockPath) {
|
|
2404
|
+
const delays = [50, 100, 200, 400, 600, 800, 1000, 1000];
|
|
2405
|
+
for (let attempt = 0;; attempt += 1) {
|
|
2406
|
+
try {
|
|
2407
|
+
return await acquireLock(lockPath);
|
|
2408
|
+
}
|
|
2409
|
+
catch (error) {
|
|
2410
|
+
if (!(error instanceof Error) || error.message !== 'git-lifecycle-runtime-lock-active' || attempt >= delays.length)
|
|
2411
|
+
throw error;
|
|
2412
|
+
await new Promise((resolve) => setTimeout(resolve, delays[attempt]));
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2387
2416
|
async function acquireLock(lockPath) {
|
|
2388
2417
|
const parent = dirname(lockPath);
|
|
2389
2418
|
const requested = { pid: process.pid, nonce: randomBytes(16).toString('hex') };
|
|
@@ -180,7 +180,10 @@ export function collectYoloChangeEvidence(options) {
|
|
|
180
180
|
unavailable('runtime-state-unavailable', 'none', reconciliation);
|
|
181
181
|
}
|
|
182
182
|
const epic = runtime.epics[options.epicId];
|
|
183
|
-
|
|
183
|
+
// 4.61.5: inside a P225 story worktree the epic writer lease belongs to the
|
|
184
|
+
// root integration, not to this story; isolation comes from the story
|
|
185
|
+
// worktree lease, so the epic lease is not consulted here.
|
|
186
|
+
const lease = isActiveStoryWorktree(options.projectRoot, runtime, options.storyId) ? undefined : epic?.branch_lease;
|
|
184
187
|
const currentBranch = git(options.projectRoot, ['symbolic-ref', '--quiet', '--short', 'HEAD'], 'execution-branch-mismatch', 'none', reconciliation).trim();
|
|
185
188
|
if (epic?.branch_mode === 'epic' && epic.execution_branch === currentBranch)
|
|
186
189
|
executionBranch = currentBranch;
|
|
@@ -243,3 +246,17 @@ export function collectYoloChangeEvidence(options) {
|
|
|
243
246
|
}
|
|
244
247
|
return evidence;
|
|
245
248
|
}
|
|
249
|
+
/** True when `projectRoot` is the registered, active story worktree of `storyId`. */
|
|
250
|
+
function isActiveStoryWorktree(projectRoot, runtime, storyId) {
|
|
251
|
+
const toplevel = spawnSync('git', ['-C', projectRoot, 'rev-parse', '--show-toplevel'], { encoding: 'utf8', timeout: 3_000 });
|
|
252
|
+
if (toplevel.status !== 0)
|
|
253
|
+
return false;
|
|
254
|
+
let root;
|
|
255
|
+
try {
|
|
256
|
+
root = realpathSync(toplevel.stdout.trim());
|
|
257
|
+
}
|
|
258
|
+
catch {
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
return Object.values(runtime.storyWorktrees?.entries ?? {}).some((entry) => entry.storyId === storyId && entry.state === 'active' && entry.worktreePath === root);
|
|
262
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex Root Agent v4.61.
|
|
3
|
+
description: "🧠 Neocortex Root Agent v4.61.5 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
tools:
|
|
@@ -108,7 +108,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
108
108
|
┌────────────────────────────────────────────────────────────┐
|
|
109
109
|
│ │
|
|
110
110
|
│ ####### N E O C O R T E X │
|
|
111
|
-
│ ### ######## v4.61.
|
|
111
|
+
│ ### ######## v4.61.5 │
|
|
112
112
|
│ ######### ##### │
|
|
113
113
|
│ ## ############## Development Orchestrator │
|
|
114
114
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.61.
|
|
3
|
+
description: "🧠 Neocortex v4.61.5 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
permissionMode: bypassPermissions
|
|
@@ -106,7 +106,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
106
106
|
┌────────────────────────────────────────────────────────────┐
|
|
107
107
|
│ │
|
|
108
108
|
│ ####### N E O C O R T E X │
|
|
109
|
-
│ ### ######## v4.61.
|
|
109
|
+
│ ### ######## v4.61.5 │
|
|
110
110
|
│ ######### ##### │
|
|
111
111
|
│ ## ############## Development Orchestrator │
|
|
112
112
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -32,7 +32,7 @@ Codex built-in commands or actions.
|
|
|
32
32
|
|
|
33
33
|
<!-- END: Plugin Conflict Prevention -->
|
|
34
34
|
|
|
35
|
-
# Neocortex v4.61.
|
|
35
|
+
# Neocortex v4.61.5 | OrNexus Team
|
|
36
36
|
|
|
37
37
|
You are a Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
38
38
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.61.
|
|
3
|
+
description: "🧠 Neocortex v4.61.5 | OrNexus Team"
|
|
4
4
|
model: inherit
|
|
5
5
|
readonly: false
|
|
6
6
|
is_background: false
|
|
@@ -104,7 +104,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
104
104
|
┌────────────────────────────────────────────────────────────┐
|
|
105
105
|
│ │
|
|
106
106
|
│ ####### N E O C O R T E X │
|
|
107
|
-
│ ### ######## v4.61.
|
|
107
|
+
│ ### ######## v4.61.5 │
|
|
108
108
|
│ ######### ##### │
|
|
109
109
|
│ ## ############## Development Orchestrator │
|
|
110
110
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex v4.61.
|
|
3
|
+
description: "🧠 Neocortex v4.61.5 | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
# File operations (Gemini CLI built-ins)
|
|
@@ -62,7 +62,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
62
62
|
┌────────────────────────────────────────────────────────────┐
|
|
63
63
|
│ │
|
|
64
64
|
│ ####### N E O C O R T E X │
|
|
65
|
-
│ ### ######## v4.61.
|
|
65
|
+
│ ### ######## v4.61.5 │
|
|
66
66
|
│ ######### ##### │
|
|
67
67
|
│ ## ############## Development Orchestrator │
|
|
68
68
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -64,7 +64,7 @@ task directive, I keep root-owned inline/shell-loop execution.
|
|
|
64
64
|
┌────────────────────────────────────────────────────────────┐
|
|
65
65
|
│ │
|
|
66
66
|
│ ####### N E O C O R T E X │
|
|
67
|
-
│ ### ######## v4.61.
|
|
67
|
+
│ ### ######## v4.61.5 │
|
|
68
68
|
│ ######### ##### │
|
|
69
69
|
│ ## ############## Development Orchestrator │
|
|
70
70
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "neocortex"
|
|
3
|
-
description: "Neocortex v4.61.
|
|
3
|
+
description: "Neocortex v4.61.5 | OrNexus Team"
|
|
4
4
|
tools:
|
|
5
5
|
# Read / Edit (built-in tool sets)
|
|
6
6
|
- read
|
|
@@ -72,7 +72,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
72
72
|
┌────────────────────────────────────────────────────────────┐
|
|
73
73
|
│ │
|
|
74
74
|
│ ####### N E O C O R T E X │
|
|
75
|
-
│ ### ######## v4.61.
|
|
75
|
+
│ ### ######## v4.61.5 │
|
|
76
76
|
│ ######### ##### │
|
|
77
77
|
│ ## ############## Development Orchestrator │
|
|
78
78
|
│ ## ### ###### ## OrNexus Team │
|