@ornexus/neocortex 4.66.53 → 4.66.55

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.
Files changed (40) hide show
  1. package/dist/release-source.json +1 -0
  2. package/dist/sbom.cdx.json +1190 -1190
  3. package/install.ps1 +1 -1
  4. package/install.sh +1 -1
  5. package/package.json +2 -2
  6. package/packages/client/dist/cli.js +2 -2
  7. package/packages/client/dist/commands/invoke.js +82 -82
  8. package/packages/client/dist/commands/story-worktree.d.ts +4 -1
  9. package/packages/client/dist/commands/story-worktree.js +4 -4
  10. package/packages/client/dist/errors/continuation-diagnostics.d.ts +53 -0
  11. package/packages/client/dist/errors/continuation-diagnostics.js +1 -0
  12. package/packages/client/dist/git/epic-origin-rebind.d.ts +20 -0
  13. package/packages/client/dist/git/epic-origin-rebind.js +1 -0
  14. package/packages/client/dist/private-execution/isolated-admission.js +12 -12
  15. package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.js +6 -6
  16. package/packages/client/dist/runner/headless/run-yoloop.js +3 -3
  17. package/packages/shared/dist/invocation/index.d.ts +1 -0
  18. package/packages/shared/dist/invocation/index.js +1 -0
  19. package/packages/shared/dist/invocation/planning-generation-failure.d.ts +56 -0
  20. package/packages/shared/dist/invocation/planning-generation-failure.js +65 -0
  21. package/targets-stubs/antigravity/gemini.md +1 -1
  22. package/targets-stubs/antigravity/neocortex.md +1 -1
  23. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  24. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  25. package/targets-stubs/claude-code/neocortex-root.md +2 -2
  26. package/targets-stubs/claude-code/neocortex-sentinel.md +1 -1
  27. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  28. package/targets-stubs/claude-code/neocortex.md +2 -2
  29. package/targets-stubs/codex/AGENTS.md +1 -1
  30. package/targets-stubs/codex/neocortex.toml +1 -1
  31. package/targets-stubs/cursor/agent.md +2 -2
  32. package/targets-stubs/deepseek-harness/SKILL.md +1 -1
  33. package/targets-stubs/gemini-cli/agent.md +2 -2
  34. package/targets-stubs/gemini-cli/agents/neocortex.md +2 -2
  35. package/targets-stubs/grok/SKILL.md +1 -1
  36. package/targets-stubs/kimi/neocortex.md +1 -1
  37. package/targets-stubs/openclaw/SKILL.md +1 -1
  38. package/targets-stubs/opencode/neocortex-root.md +2 -2
  39. package/targets-stubs/opencode/neocortex.md +2 -2
  40. package/targets-stubs/vscode/neocortex.agent.md +2 -2
package/install.ps1 CHANGED
@@ -19,7 +19,7 @@ param(
19
19
  [string]$ServerUrl = ('https://{0}.{1}.{2}' -f 'api','neocortex','sh')
20
20
  )
21
21
 
22
- $VERSION = "4.66.53"
22
+ $VERSION = "4.66.55"
23
23
 
24
24
  # =============================================================================
25
25
  # CONFIGURACOES
package/install.sh CHANGED
@@ -4,7 +4,7 @@
4
4
  # Development Orchestrator
5
5
 
6
6
  # Versao do instalador
7
- VERSION="4.66.53"
7
+ VERSION="4.66.55"
8
8
 
9
9
  # Flags
10
10
  MIGRATION_DETECTED=false
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ornexus/neocortex",
3
- "version": "4.66.53",
4
- "description": "Neocortex v4.66.53",
3
+ "version": "4.66.55",
4
+ "description": "Neocortex v4.66.55",
5
5
  "keywords": [
6
6
  "claude",
7
7
  "claude-code",
@@ -17,7 +17,7 @@ Commands:
17
17
  planning-qa record Record digest-bound QA evidence for an admitted P01-P03 checkpoint from stdin
18
18
  private-session <inspect-rejected|discard-rejected|renew-lease|accept-diagnosis|accept-research|accept-specification|accept-tasks|validate-implementation|accept-implementation|accept-refactor-advisory|accept-test-validation|accept-qa|accept-project-memory> Root recovery and phase validation
19
19
  story-checkpoint Root-owned direct-*yolo commit/checkpoint boundary
20
- story-worktree <create|adopt|sync|status|release> P225 temporary story worktree lifecycle (public-safe JSON)
20
+ story-worktree <create|adopt|sync|status|release|rebind-origin> P225 temporary story worktree lifecycle (public-safe JSON)
21
21
  legacy-story-branch Root-owned setup and C01 checkpoint for recorded story-branch projects
22
22
  legacy-story-pr Root-owned legacy C08/C09 checkpoint, C10 PR, C11 review and C12 merge boundary
23
23
  legacy-epic-terminal Physical C12 preflight and root QA acceptance; never releases quota
@@ -232,4 +232,4 @@ License:
232
232
  `);return}process.stderr.write(`[Neocortex] ${y.ARTIFACT_UNAVAILABLE}: registry reconciliation could not be completed safely; no invoke request was sent.
233
233
  `)}function v(){return{version:u,checksum:m}}function S(r){const a=k(r);return!a||a.version===u&&a.checksum===m}function A(r,a){const o=d(a,"--project-root")||process.cwd();try{if(process.env.NEOCORTEX_REGISTRY_REEXECUTED==="1"&&!S(o))throw new h(y.ARTIFACT_MISMATCH,"The reinstalled client still does not match the trusted local projection; no invoke request was sent.");if(f({projectRoot:o,installedVersion:p(),installedIdentity:v()}).status!=="updated")return;const t=b(process.execPath,[process.argv[1],...r],{stdio:"inherit",env:{...process.env,NEOCORTEX_REGISTRY_REEXECUTED:"1"},shell:!1});return t.error?1:t.status??1}catch(e){return x(e),1}}function R(r,a){const o=[...r],e=o.indexOf("--project-root");return e>=0?o[e+1]=a:o.push("--project-root",a),o}function P(r){const a=r instanceof Error&&/^project-root-[a-z-]+$/.test(r.message)?r.message:"project-root-resolution-failed";process.stderr.write(`[Neocortex] ${a}: project root could not be resolved safely; no invoke request was sent.
234
234
  `)}async function q(){const r=process.argv.slice(2),a=r[0];a&&C.has(a.toLowerCase())&&process.exit(0),(!a||a==="--help"||a==="-h")&&(console.log(g),process.exit(0)),(a==="--version"||a==="-v")&&(console.log(p()),process.stderr.write(`Licensed under BSL-1.1 (Business Source License 1.1)
235
- `),process.exit(0));const o=r.slice(1);switch(a){case"invoke":{const e=await import("./commands/invoke.js");let t;try{const l=typeof e.resolveInvokeCliProjectRoot=="function"?await e.resolveInvokeCliProjectRoot(d(o,"--project-root")):void 0;t=l?R(o,l):[...o]}catch(l){P(l),process.exitCode=1;break}const c=["invoke",...t],s=A(c,t);if(s!==void 0){process.exitCode=s;break}const{invokeCliHandler:n,flushInvokeCliOutput:i}=e,j=await n(t),w=await i();process.exitCode=w?j:1;break}case"reconcile-registry":{const e=d(o,"--project-root")||process.cwd();try{f({projectRoot:e,installedVersion:p(),installedIdentity:v(),checkLatest:o.includes("--check-latest")}),process.exitCode=0}catch(t){x(t),process.exitCode=1}break}case"activate":{const{activate:e}=await import("./commands/activate.js");let t,c,s=!1;for(let n=0;n<o.length;n++){const i=o[n];i==="--server-url"?c=o[++n]:i==="--non-interactive"?s=!0:i==="--help"||i==="-h"?(console.log(g),process.exit(0)):i.startsWith("-")||(t=i)}t||(console.error("Error: License key is required."),console.error("Usage: neocortex-client activate <license-key>"),console.error("Example: neocortex-client activate NX-PRO-ABC-123"),process.exit(1));try{const n=await e({licenseKey:t,serverUrl:c,nonInteractive:s});n.success?(console.log(n.message),process.exit(0)):(console.error(n.message),process.exit(1))}catch(n){const i=n instanceof Error?n.message:String(n);console.error(`Activation failed: ${i}`),process.exit(1)}break}case"cache-status":{console.log("Cache status requires an active client session."),console.log("Use this command within a running Neocortex client context."),process.exit(0);break}case"doctor":{const{doctorCliHandler:e}=await import("./commands/doctor.js"),t=await e(o);process.exit(t);break}case"auth-doctor":{const{authDoctorCliHandler:e}=await import("./commands/auth-doctor.js"),t=await e(o);process.exitCode=t;break}case"config":{const{configCliHandler:e}=await import("./commands/config.js"),t=await e(o);process.exit(t);break}case"refresh-memory":{const{refreshMemoryCliHandler:e}=await import("./commands/refresh-memory.js"),t=await e(o);process.exit(t);break}case"architecture-memory":{const{architectureMemoryTerminalCliHandler:e}=await import("./commands/architecture-memory-terminal.js"),t=await e(o);process.exit(t);break}case"planning-diagnosis":{const{planningDiagnosisCliHandler:e}=await import("./commands/planning-diagnosis.js"),t=await e(o);process.exit(t);break}case"planning-research":{const{planningResearchCliHandler:e}=await import("./commands/planning-research.js"),t=await e(o);process.exit(t);break}case"private-session":{const{privateSessionCliHandler:e}=await import("./commands/private-session.js"),t=await e(o);process.exit(t);break}case"planning-memory":{const{planningMemoryCliHandler:e}=await import("./commands/planning-memory.js"),t=await e(o);process.exit(t);break}case"planning-generation":{const{planningGenerationCliHandler:e}=await import("./commands/planning-generation.js"),t=await e(o);process.exit(t);break}case"planning-qa":{const{planningQaCliHandler:e}=await import("./commands/planning-qa.js"),t=await e(o);process.exit(t);break}case"story-checkpoint":{const{storyCheckpointCliHandler:e}=await import("./commands/story-checkpoint.js"),t=await e(o);process.exit(t);break}case"story-worktree":{const{storyWorktreeCliHandler:e}=await import("./commands/story-worktree.js"),t=await e(o);process.exit(t);break}case"legacy-story-branch":{const{legacyStoryBranchCliHandler:e}=await import("./commands/legacy-story-branch.js"),t=await e(o);process.exit(t);break}case"legacy-story-pr":{const{legacyStoryPrCliHandler:e}=await import("./commands/legacy-story-pr.js"),t=await e(o);process.exit(t);break}case"legacy-epic-terminal":{const{legacyEpicTerminalCliHandler:e}=await import("./commands/legacy-epic-terminal.js"),t=await e(o);process.exit(t);break}case"mutation-qa":{const{mutationQaCliHandler:e}=await import("./commands/mutation-qa.js"),t=await e(o);process.exit(t);break}case"property-qa":{const{propertyQaCliHandler:e}=await import("./commands/property-qa.js"),t=await e(o);process.exit(t);break}case"qa-synthetic-backend":{const{syntheticBackendCliHandler:e}=await import("./commands/qa-synthetic-backend.js");process.exitCode=await e(r.slice(1));break}case"qa-scan-review":{const{qaScanReviewCliHandler:e}=await import("./commands/qa-scan-review.js"),t=await e(o);process.exit(t);break}case"qa-root":{const{qaControlCliHandler:e}=await import("./commands/qa-control.js");process.exit(await e(o));break}case"refactor-root":{if(o[0]==="control"){const{refactorControlCliHandler:c}=await import("./commands/refactor-control.js");process.exit(await c(o))}if(o[0]==="characterize"){const{refactorCharacterizationCliHandler:c}=await import("./commands/refactor-characterization.js");process.exit(c(o))}if(o[0]==="review-accept"||o[0]==="review-status"){const{refactorReviewCliHandler:c}=await import("./commands/refactor-review.js");process.exit(await c(o))}if(o[0]?.startsWith("commit-")){const{refactorCommitCliHandler:c}=await import("./commands/refactor-commit.js");process.exit(c(o))}const{refactorRootCliHandler:e}=await import("./commands/refactor-root.js"),t=e(o);process.exit(t);break}case"native-agent":{const{nativeAgentCliHandler:e}=await import("./commands/native-agent.js"),t=await e(o);process.exit(t);break}case"architecture-answers":{const{architectureAnswersCliHandler:e}=await import("./commands/architecture-answers.js"),t=await e(o);process.exit(t);break}case"update":{console.log("To update Neocortex, run:"),console.log(" neocortex update"),console.log(""),console.log("Or manually:"),console.log(" npm install -g @ornexus/neocortex@latest"),process.exit(0);break}default:console.error(`Unknown command: ${a}`),console.error('Run "neocortex-client --help" for usage information.'),process.exit(1)}}q().catch(r=>{console.error(`Fatal error: ${r instanceof Error?r.message:String(r)}`),process.exit(1)});
235
+ `),process.exit(0));const o=r.slice(1);switch(a){case"invoke":{const e=await import("./commands/invoke.js");let t;try{const l=typeof e.resolveInvokeCliProjectRoot=="function"?await e.resolveInvokeCliProjectRoot(d(o,"--project-root")):void 0;t=l?R(o,l):[...o]}catch(l){P(l),process.exitCode=1;break}const i=["invoke",...t],s=A(i,t);if(s!==void 0){process.exitCode=s;break}const{invokeCliHandler:n,flushInvokeCliOutput:c}=e,j=await n(t),w=await c();process.exitCode=w?j:1;break}case"reconcile-registry":{const e=d(o,"--project-root")||process.cwd();try{f({projectRoot:e,installedVersion:p(),installedIdentity:v(),checkLatest:o.includes("--check-latest")}),process.exitCode=0}catch(t){x(t),process.exitCode=1}break}case"activate":{const{activate:e}=await import("./commands/activate.js");let t,i,s=!1;for(let n=0;n<o.length;n++){const c=o[n];c==="--server-url"?i=o[++n]:c==="--non-interactive"?s=!0:c==="--help"||c==="-h"?(console.log(g),process.exit(0)):c.startsWith("-")||(t=c)}t||(console.error("Error: License key is required."),console.error("Usage: neocortex-client activate <license-key>"),console.error("Example: neocortex-client activate NX-PRO-ABC-123"),process.exit(1));try{const n=await e({licenseKey:t,serverUrl:i,nonInteractive:s});n.success?(console.log(n.message),process.exit(0)):(console.error(n.message),process.exit(1))}catch(n){const c=n instanceof Error?n.message:String(n);console.error(`Activation failed: ${c}`),process.exit(1)}break}case"cache-status":{console.log("Cache status requires an active client session."),console.log("Use this command within a running Neocortex client context."),process.exit(0);break}case"doctor":{const{doctorCliHandler:e}=await import("./commands/doctor.js"),t=await e(o);process.exit(t);break}case"auth-doctor":{const{authDoctorCliHandler:e}=await import("./commands/auth-doctor.js"),t=await e(o);process.exitCode=t;break}case"config":{const{configCliHandler:e}=await import("./commands/config.js"),t=await e(o);process.exit(t);break}case"refresh-memory":{const{refreshMemoryCliHandler:e}=await import("./commands/refresh-memory.js"),t=await e(o);process.exit(t);break}case"architecture-memory":{const{architectureMemoryTerminalCliHandler:e}=await import("./commands/architecture-memory-terminal.js"),t=await e(o);process.exit(t);break}case"planning-diagnosis":{const{planningDiagnosisCliHandler:e}=await import("./commands/planning-diagnosis.js"),t=await e(o);process.exit(t);break}case"planning-research":{const{planningResearchCliHandler:e}=await import("./commands/planning-research.js"),t=await e(o);process.exit(t);break}case"private-session":{const{privateSessionCliHandler:e}=await import("./commands/private-session.js"),t=await e(o);process.exit(t);break}case"planning-memory":{const{planningMemoryCliHandler:e}=await import("./commands/planning-memory.js"),t=await e(o);process.exit(t);break}case"planning-generation":{const{planningGenerationCliHandler:e}=await import("./commands/planning-generation.js"),t=await e(o);process.exit(t);break}case"planning-qa":{const{planningQaCliHandler:e}=await import("./commands/planning-qa.js"),t=await e(o);process.exit(t);break}case"story-checkpoint":{const{storyCheckpointCliHandler:e}=await import("./commands/story-checkpoint.js"),t=await e(o);process.exit(t);break}case"story-worktree":{const{storyWorktreeCliHandler:e}=await import("./commands/story-worktree.js"),t=await e(o);process.exit(t);break}case"legacy-story-branch":{const{legacyStoryBranchCliHandler:e}=await import("./commands/legacy-story-branch.js"),t=await e(o);process.exit(t);break}case"legacy-story-pr":{const{legacyStoryPrCliHandler:e}=await import("./commands/legacy-story-pr.js"),t=await e(o);process.exit(t);break}case"legacy-epic-terminal":{const{legacyEpicTerminalCliHandler:e}=await import("./commands/legacy-epic-terminal.js"),t=await e(o);process.exit(t);break}case"mutation-qa":{const{mutationQaCliHandler:e}=await import("./commands/mutation-qa.js"),t=await e(o);process.exit(t);break}case"property-qa":{const{propertyQaCliHandler:e}=await import("./commands/property-qa.js"),t=await e(o);process.exit(t);break}case"qa-synthetic-backend":{const{syntheticBackendCliHandler:e}=await import("./commands/qa-synthetic-backend.js");process.exitCode=await e(r.slice(1));break}case"qa-scan-review":{const{qaScanReviewCliHandler:e}=await import("./commands/qa-scan-review.js"),t=await e(o);process.exit(t);break}case"qa-root":{const{qaControlCliHandler:e}=await import("./commands/qa-control.js");process.exit(await e(o));break}case"refactor-root":{if(o[0]==="control"){const{refactorControlCliHandler:i}=await import("./commands/refactor-control.js");process.exit(await i(o))}if(o[0]==="characterize"){const{refactorCharacterizationCliHandler:i}=await import("./commands/refactor-characterization.js");process.exit(i(o))}if(o[0]==="review-accept"||o[0]==="review-status"){const{refactorReviewCliHandler:i}=await import("./commands/refactor-review.js");process.exit(await i(o))}if(o[0]?.startsWith("commit-")){const{refactorCommitCliHandler:i}=await import("./commands/refactor-commit.js");process.exit(i(o))}const{refactorRootCliHandler:e}=await import("./commands/refactor-root.js"),t=e(o);process.exit(t);break}case"native-agent":{const{nativeAgentCliHandler:e}=await import("./commands/native-agent.js"),t=await e(o);process.exit(t);break}case"architecture-answers":{const{architectureAnswersCliHandler:e}=await import("./commands/architecture-answers.js"),t=await e(o);process.exit(t);break}case"update":{console.log("To update Neocortex, run:"),console.log(" neocortex update"),console.log(""),console.log("Or manually:"),console.log(" npm install -g @ornexus/neocortex@latest"),process.exit(0);break}default:console.error(`Unknown command: ${a}`),console.error('Run "neocortex-client --help" for usage information.'),process.exit(1)}}q().catch(r=>{console.error(`Fatal error: ${r instanceof Error?r.message:String(r)}`),process.exit(1)});