@ornexus/neocortex 4.66.46 → 4.66.48

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 -1
  2. package/dist/sbom.cdx.json +1191 -1225
  3. package/docs/install/installer-diagnostics.md +14 -2
  4. package/install.ps1 +1 -1
  5. package/install.sh +1 -1
  6. package/package.json +3 -3
  7. package/packages/client/dist/cli.js +0 -0
  8. package/packages/client/dist/commands/invoke.d.ts +17 -0
  9. package/packages/client/dist/commands/invoke.js +77 -77
  10. package/packages/client/dist/continuity/sqlite-store.d.ts +1 -1
  11. package/packages/client/dist/continuity/sqlite-store.js +1 -1
  12. package/packages/client/dist/generated/public-projections.generated.d.ts +19 -19
  13. package/packages/client/dist/generated/public-projections.generated.js +1 -1
  14. package/packages/client/dist/runner/headless/run-yoloop.d.ts +12 -0
  15. package/packages/client/dist/runner/headless/run-yoloop.js +4 -4
  16. package/packages/client/dist/runner-cli.js +0 -0
  17. package/packages/client/dist/yoloop/yoloop-client-state-store.d.ts +12 -0
  18. package/packages/client/dist/yoloop/yoloop-client-state-store.js +1 -1
  19. package/packages/shared/dist/generated/public-projections.generated.js +17 -17
  20. package/postinstall.js +11 -1
  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
@@ -92,9 +92,21 @@ creating or mutating `.neocortex/continuity` and return public reason code
92
92
  `sqlite-adapter-unavailable` with bounded guidance:
93
93
 
94
94
  ```text
95
- npm install --workspace packages/client better-sqlite3 --include=optional
95
+ npm install -g @ornexus/neocortex@latest --include=optional
96
96
  ```
97
97
 
98
+ Release activation that performs target installation separately can suppress the
99
+ Neocortex-managed postinstall while keeping dependency lifecycle scripts enabled:
100
+
101
+ ```text
102
+ NEOCORTEX_SKIP_MANAGED_POSTINSTALL=1 npm install --include=optional <package>
103
+ ```
104
+
105
+ Do not use npm `--ignore-scripts` for an activation that needs runner/yoloop
106
+ continuity. That option also disables the native `better-sqlite3` installation.
107
+ An existing install can repair the adapter by running `npm rebuild better-sqlite3`
108
+ from the installed package root before retrying the same bound request.
109
+
98
110
  Doctor output must remain public-safe: report only the adapter status, SQLite file
99
111
  relative path, WAL/integrity status and reason codes such as
100
112
  `sqlite-adapter-unavailable` or `sqlite-integrity-failed`. Do not paste native
@@ -125,7 +137,7 @@ terminal output:
125
137
  | `P177_OPTIONAL_TOOL_OPT_IN_REQUIRED` | An optional third-party tool is not installed by default. | Follow that tool's own setup instructions outside the npm lifecycle. |
126
138
  | `P177_ROOT_HOME_DETECTED` | Linux root/sudo context may write user config under an elevated account. | Stop using sudo-first install; move to a Node version manager or npm user prefix and use synthetic recovery steps. |
127
139
  | `P177_PUBLIC_SAFE_LOG_REDACTED` | Raw child/vendor output or local paths were intentionally omitted. | Share the reason code and bounded fields only; do not paste raw logs. |
128
- | `sqlite-adapter-unavailable` | Enterprise continuity SQLite adapter is not installed or cannot be loaded. | Reinstall with optional dependencies or install `better-sqlite3` for the client workspace; keep only bounded reason-code evidence. |
140
+ | `sqlite-adapter-unavailable` | Enterprise continuity SQLite adapter is not installed or cannot be loaded. | Reinstall with optional dependencies and lifecycle scripts enabled, or run `npm rebuild better-sqlite3` from the installed package root; keep only bounded reason-code evidence. |
129
141
  | `sqlite-integrity-failed` | Continuity SQLite integrity/corruption check failed. | Stop durable mutation and use future doctor/repair guidance with public-safe backup/audit evidence only. |
130
142
 
131
143
  ### Sanitized SIGINT/lifecycle troubleshooting
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.46"
22
+ $VERSION = "4.66.48"
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.46"
7
+ VERSION="4.66.48"
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.46",
4
- "description": "Neocortex v4.66.46",
3
+ "version": "4.66.48",
4
+ "description": "Neocortex v4.66.48",
5
5
  "keywords": [
6
6
  "claude",
7
7
  "claude-code",
@@ -176,7 +176,7 @@
176
176
  "zod": "^4.6.7"
177
177
  },
178
178
  "optionalDependencies": {
179
- "better-sqlite3": "^12.11.1"
179
+ "better-sqlite3": "11.10.0"
180
180
  },
181
181
  "overrides": {
182
182
  "qs": "6.16.0"
File without changes
@@ -187,6 +187,23 @@ export interface InvokeResult {
187
187
  readonly errorCode?: string;
188
188
  readonly exitCode: number;
189
189
  }
190
+ export interface NativeCustodyGateDiagnosticV1 {
191
+ readonly schemaVersion: 1;
192
+ readonly reasonCode: 'sqlite-adapter-unavailable' | 'native-custody-observation-failed';
193
+ readonly remediation: string;
194
+ readonly retrySafeAfterRepair: true;
195
+ readonly publicSafe: true;
196
+ }
197
+ /** Keep native-custody failures actionable without projecting raw paths or adapter exceptions. */
198
+ export declare function projectNativeCustodyGateDiagnostic(error: unknown): NativeCustodyGateDiagnosticV1;
199
+ export declare function projectNativeCustodyCliDiagnostic(input: unknown): NativeCustodyGateDiagnosticV1 | undefined;
200
+ /**
201
+ * Every failed invoke carries one closed semantic repair contract. Server
202
+ * contracts remain authoritative. Client-side preflight failures receive a
203
+ * bounded inspection contract so wrappers and agents never have to infer a
204
+ * retry or synthesize request fields.
205
+ */
206
+ export declare function ensureInvokeSemanticGateRemediation(args: string, result: InvokeResult): InvokeResult;
190
207
  /**
191
208
  * Convert the server's drift observation into a local, actionable hard stop.
192
209
  * The response is evidence that the request was rejected, never authority for