@ornexus/neocortex 4.60.22 → 4.60.23

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 (53) hide show
  1. package/dist/sbom.cdx.json +24 -24
  2. package/install.ps1 +1 -1
  3. package/install.sh +1 -1
  4. package/package.json +6 -3
  5. package/packages/client/dist/cli.js +0 -0
  6. package/packages/client/dist/commands/invoke.d.ts +19 -5
  7. package/packages/client/dist/commands/invoke.js +55 -53
  8. package/packages/client/dist/continuity/invoke-hooks.js +1 -1
  9. package/packages/client/dist/fs/atomic-state-replace.d.ts +16 -0
  10. package/packages/client/dist/fs/atomic-state-replace.js +1 -0
  11. package/packages/client/dist/generated/command-registry.generated.d.ts +53 -19
  12. package/packages/client/dist/generated/command-registry.generated.js +1 -1
  13. package/packages/client/dist/graph-retrieval/pre-command-hook.d.ts +11 -0
  14. package/packages/client/dist/graph-retrieval/pre-command-hook.js +1 -1
  15. package/packages/client/dist/graph-retrieval/shared-graph-retrieval-contract.js +1 -1
  16. package/packages/client/dist/invocation/invoke-input.d.ts +9 -0
  17. package/packages/client/dist/invocation/invoke-input.js +1 -0
  18. package/packages/client/dist/migrations/project-identity-capability.d.ts +13 -0
  19. package/packages/client/dist/migrations/project-identity-capability.js +1 -0
  20. package/packages/client/dist/migrations/project-identity.d.ts +41 -0
  21. package/packages/client/dist/migrations/project-identity.js +7 -0
  22. package/packages/client/dist/runner-cli.js +0 -0
  23. package/packages/client/dist/state/invocation-shape.d.ts +9 -0
  24. package/packages/client/dist/state/invocation-shape.js +1 -0
  25. package/packages/client/dist/state/project-state-snapshot.d.ts +9 -3
  26. package/packages/client/dist/state/project-state-snapshot.js +1 -1
  27. package/packages/client/dist/state/structural-dag-projection.d.ts +24 -0
  28. package/packages/client/dist/state/structural-dag-projection.js +1 -0
  29. package/packages/shared/dist/generated/command-registry.generated.js +66 -19
  30. package/packages/shared/dist/generated/invocation-schema.generated.js +16 -4
  31. package/packages/shared/dist/invocation/index.d.ts +6 -2
  32. package/packages/shared/dist/invocation/index.js +5 -0
  33. package/packages/shared/dist/invocation/input-envelope.d.ts +37 -0
  34. package/packages/shared/dist/invocation/input-envelope.js +98 -0
  35. package/packages/shared/dist/invocation/project-identity-migration.d.ts +28 -0
  36. package/packages/shared/dist/invocation/project-identity-migration.js +83 -0
  37. package/packages/shared/dist/invocation/public-diagnostics.d.ts +87 -0
  38. package/packages/shared/dist/invocation/public-diagnostics.js +181 -0
  39. package/packages/shared/dist/invocation/state-projection.d.ts +21 -0
  40. package/packages/shared/dist/invocation/state-projection.js +1 -0
  41. package/packages/shared/dist/invocation/strict-effect-receipt.d.ts +12 -0
  42. package/packages/shared/dist/invocation/strict-effect-receipt.js +43 -0
  43. package/targets-stubs/antigravity/gemini.md +1 -1
  44. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  45. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  46. package/targets-stubs/claude-code/neocortex-root.md +2 -2
  47. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  48. package/targets-stubs/claude-code/neocortex.md +2 -2
  49. package/targets-stubs/codex/AGENTS.md +1 -1
  50. package/targets-stubs/cursor/agent.md +2 -2
  51. package/targets-stubs/gemini-cli/agent.md +2 -2
  52. package/targets-stubs/opencode/neocortex-root.md +1 -1
  53. package/targets-stubs/vscode/neocortex.agent.md +2 -2
@@ -984,7 +984,7 @@
984
984
  "version": "1.26.0"
985
985
  },
986
986
  {
987
- "bom-ref": "@neocortex/client@4.60.22",
987
+ "bom-ref": "@neocortex/client@4.60.23",
988
988
  "group": "@neocortex",
989
989
  "name": "client",
990
990
  "properties": [
@@ -993,9 +993,9 @@
993
993
  "value": "node_modules/@neocortex/client"
994
994
  }
995
995
  ],
996
- "purl": "pkg:npm/%40neocortex/client@4.60.22",
996
+ "purl": "pkg:npm/%40neocortex/client@4.60.23",
997
997
  "type": "library",
998
- "version": "4.60.22"
998
+ "version": "4.60.23"
999
999
  },
1000
1000
  {
1001
1001
  "bom-ref": "@neocortex/core@0.1.0",
@@ -1012,7 +1012,7 @@
1012
1012
  "version": "0.1.0"
1013
1013
  },
1014
1014
  {
1015
- "bom-ref": "@neocortex/server@4.60.22",
1015
+ "bom-ref": "@neocortex/server@4.60.23",
1016
1016
  "group": "@neocortex",
1017
1017
  "name": "server",
1018
1018
  "properties": [
@@ -1021,12 +1021,12 @@
1021
1021
  "value": "node_modules/@neocortex/server"
1022
1022
  }
1023
1023
  ],
1024
- "purl": "pkg:npm/%40neocortex/server@4.60.22",
1024
+ "purl": "pkg:npm/%40neocortex/server@4.60.23",
1025
1025
  "type": "library",
1026
- "version": "4.60.22"
1026
+ "version": "4.60.23"
1027
1027
  },
1028
1028
  {
1029
- "bom-ref": "@neocortex/shared@4.60.22",
1029
+ "bom-ref": "@neocortex/shared@4.60.23",
1030
1030
  "group": "@neocortex",
1031
1031
  "name": "shared",
1032
1032
  "properties": [
@@ -1035,9 +1035,9 @@
1035
1035
  "value": "node_modules/@neocortex/shared"
1036
1036
  }
1037
1037
  ],
1038
- "purl": "pkg:npm/%40neocortex/shared@4.60.22",
1038
+ "purl": "pkg:npm/%40neocortex/shared@4.60.23",
1039
1039
  "type": "library",
1040
- "version": "4.60.22"
1040
+ "version": "4.60.23"
1041
1041
  },
1042
1042
  {
1043
1043
  "bom-ref": "@opentelemetry/api-logs@0.214.0",
@@ -9405,17 +9405,17 @@
9405
9405
  "dependsOn": [
9406
9406
  "@clack/prompts@1.0.1",
9407
9407
  "@modelcontextprotocol/sdk@1.26.0",
9408
- "@neocortex/client@4.60.22",
9408
+ "@neocortex/client@4.60.23",
9409
9409
  "@neocortex/core@0.1.0",
9410
- "@neocortex/server@4.60.22",
9411
- "@neocortex/shared@4.60.22",
9410
+ "@neocortex/server@4.60.23",
9411
+ "@neocortex/shared@4.60.23",
9412
9412
  "better-sqlite3@12.11.1",
9413
9413
  "execa@9.6.1",
9414
9414
  "node-cache@5.1.2",
9415
9415
  "picocolors@1.1.1",
9416
9416
  "zod@4.4.3"
9417
9417
  ],
9418
- "ref": "@ornexus/neocortex@4.60.22"
9418
+ "ref": "@ornexus/neocortex@4.60.23"
9419
9419
  },
9420
9420
  {
9421
9421
  "dependsOn": [
@@ -9456,7 +9456,7 @@
9456
9456
  "@fastify/jwt@10.2.2",
9457
9457
  "@fastify/rate-limit@10.3.0",
9458
9458
  "@fastify/static@10.1.3",
9459
- "@neocortex/shared@4.60.22",
9459
+ "@neocortex/shared@4.60.23",
9460
9460
  "@sentry/node@10.62.0",
9461
9461
  "bcryptjs@3.0.3",
9462
9462
  "drizzle-orm@0.45.2",
@@ -9469,7 +9469,7 @@
9469
9469
  "stripe@20.4.1",
9470
9470
  "yaml@2.9.0"
9471
9471
  ],
9472
- "ref": "@neocortex/server@4.60.22"
9472
+ "ref": "@neocortex/server@4.60.23"
9473
9473
  },
9474
9474
  {
9475
9475
  "dependsOn": [
@@ -9590,16 +9590,16 @@
9590
9590
  },
9591
9591
  {
9592
9592
  "dependsOn": [
9593
- "@neocortex/shared@4.60.22",
9593
+ "@neocortex/shared@4.60.23",
9594
9594
  "better-sqlite3@12.11.1",
9595
9595
  "jose@6.2.2",
9596
9596
  "keytar@7.9.0"
9597
9597
  ],
9598
- "ref": "@neocortex/client@4.60.22"
9598
+ "ref": "@neocortex/client@4.60.23"
9599
9599
  },
9600
9600
  {
9601
9601
  "dependsOn": [
9602
- "@neocortex/shared@4.60.22"
9602
+ "@neocortex/shared@4.60.23"
9603
9603
  ],
9604
9604
  "ref": "@neocortex/core@0.1.0"
9605
9605
  },
@@ -10653,7 +10653,7 @@
10653
10653
  "ref": "@lukeed/ms@2.0.2"
10654
10654
  },
10655
10655
  {
10656
- "ref": "@neocortex/shared@4.60.22"
10656
+ "ref": "@neocortex/shared@4.60.23"
10657
10657
  },
10658
10658
  {
10659
10659
  "ref": "@opentelemetry/api@1.9.1"
@@ -11136,8 +11136,8 @@
11136
11136
  "metadata": {
11137
11137
  "component": {
11138
11138
  "author": "OrNexus Team",
11139
- "bom-ref": "@ornexus/neocortex@4.60.22",
11140
- "description": "Neocortex v4.60.22 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
11139
+ "bom-ref": "@ornexus/neocortex@4.60.23",
11140
+ "description": "Neocortex v4.60.23 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
11141
11141
  "externalReferences": [
11142
11142
  {
11143
11143
  "comment": "as detected from PackageJson property \"bugs.url\"",
@@ -11170,9 +11170,9 @@
11170
11170
  "value": ""
11171
11171
  }
11172
11172
  ],
11173
- "purl": "pkg:npm/%40ornexus/neocortex@4.60.22?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FOrNexus-AI%2Fneocortex.git",
11173
+ "purl": "pkg:npm/%40ornexus/neocortex@4.60.23?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FOrNexus-AI%2Fneocortex.git",
11174
11174
  "type": "application",
11175
- "version": "4.60.22"
11175
+ "version": "4.60.23"
11176
11176
  },
11177
11177
  "tools": {
11178
11178
  "components": [
@@ -11243,7 +11243,7 @@
11243
11243
  {
11244
11244
  "name": "npm",
11245
11245
  "type": "application",
11246
- "version": "11.10.1"
11246
+ "version": "10.9.8"
11247
11247
  }
11248
11248
  ]
11249
11249
  }
package/install.ps1 CHANGED
@@ -17,7 +17,7 @@ param(
17
17
  [string]$ServerUrl = ('https://{0}.{1}.{2}' -f 'api','neocortex','sh')
18
18
  )
19
19
 
20
- $VERSION = "4.60.22"
20
+ $VERSION = "4.60.23"
21
21
 
22
22
  # =============================================================================
23
23
  # CONFIGURACOES
package/install.sh CHANGED
@@ -4,7 +4,7 @@
4
4
  # Development Orchestrator
5
5
 
6
6
  # Versao do instalador
7
- VERSION="4.60.22"
7
+ VERSION="4.60.23"
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.60.22",
4
- "description": "Neocortex v4.60.22 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
3
+ "version": "4.60.23",
4
+ "description": "Neocortex v4.60.23 - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code",
5
5
  "keywords": [
6
6
  "claude",
7
7
  "claude-code",
@@ -64,6 +64,7 @@
64
64
  "packages/shared/dist/command-registry-contract.js",
65
65
  "packages/shared/dist/strict-readonly.js",
66
66
  "packages/shared/dist/invocation/",
67
+ "!packages/shared/dist/**/__tests__/**",
67
68
  "packages/shared/dist/generated/command-registry.generated.js",
68
69
  "packages/shared/dist/generated/invocation-schema.generated.js",
69
70
  "packages/shared/dist/yoloop/wave-decision-receipt.js",
@@ -78,11 +79,13 @@
78
79
  "build:clean": "rm -rf packages/shared/dist packages/client/dist && npm run build",
79
80
  "build:client": "npm run build -w packages/client",
80
81
  "build:shared": "npm run build -w packages/shared",
82
+ "build:server": "npm run build -w packages/server",
81
83
  "command-registry:generate": "npm run build:shared && node scripts/generate-command-registry.mjs",
82
84
  "command-registry:check": "npm run build:shared && node scripts/generate-command-registry.mjs --check",
83
85
  "command-registry:migrate-project": "node scripts/migrate-command-registry-project-id.mjs",
84
86
  "command-registry:migrate-claim-scope": "node scripts/migrate-epic-claim-scope.mjs",
85
87
  "test:p205-registry": "vitest run tests/p205-registry",
88
+ "test:installed-migration": "node scripts/test-installed-migration-smoke.mjs",
86
89
  "postinstall": "node postinstall.js",
87
90
  "sync": "node sync-version.js",
88
91
  "validate": "node scripts/validate-pre-publish.js",
@@ -109,7 +112,7 @@
109
112
  "skill:validate:release-story": "node scripts/sync-remotion-release-story-skill.mjs --check && node scripts/validate-remotion-release-story.mjs",
110
113
  "test:e2e": "bash scripts/e2e-smoke-test.sh",
111
114
  "test:tier3-stubs": "bash scripts/test-tier3-stubs.sh",
112
- "sbom": "bash scripts/generate-sbom.sh",
115
+ "sbom": "node scripts/generate-sbom.mjs",
113
116
  "prepublishOnly": "npm run build && npm --prefix packages/server run build -- --noEmit && node sync-version.js && npm run sbom && node scripts/validate-pre-publish.js && node -e \"const p=require('./package.json');const fs=require('fs');p.description='Neocortex v'+p.version+' - Orquestrador de Desenvolvimento de Epics & Stories para Claude Code';fs.writeFileSync('./package.json',JSON.stringify(p,null,2)+'\\n');console.log('Publishing Neocortex v'+p.version+'...')\"",
114
117
  "version": "npm run sync && echo 'Nova versao:' && cat package.json | grep version"
115
118
  },
File without changes
@@ -16,7 +16,7 @@ import { type RunnerSchedulerBootstrapOptions, type RunnerSchedulerBootstrapResu
16
16
  import { type ContinuityProcessingSummaryCursorTarget } from '../continuity/continuity-client-state-store.js';
17
17
  import type { ProjectEvidenceEnvelope } from '../evidence/types.js';
18
18
  import { type InvokeEffectContext, type StrictReadOnlyInvokeEnvelope } from '../../../shared/dist/strict-readonly.js';
19
- import { type InvocationAdmissionResultV1 } from '../../../shared/dist/invocation/index.js';
19
+ import { type InvokeInputEvidenceV1, type InvokeInputEnvelopeV2, type InvokeInputSourceV2, type InvocationMalformedInputReasonV1, type InvocationAdmissionResultV1, type ProjectIdentityMigrationRequestV1 } from '../../../shared/dist/invocation/index.js';
20
20
  export declare const INVOKE_PAYLOAD_LIMIT_BYTES: number;
21
21
  export declare const INVOKE_PAYLOAD_WARNING_THRESHOLD_BYTES: number;
22
22
  export declare function getOrCreatePendingEpicIdempotencyKey(projectRoot: string, args: string): {
@@ -58,6 +58,8 @@ export interface InvokeOptions {
58
58
  readonly platformTarget?: string;
59
59
  /** CLI input source, used to decide when stdin/args-file need chunk transport. */
60
60
  readonly inputSource?: InvokeCliInputSource;
61
+ /** Exact, explicit input metadata captured before admission. */
62
+ readonly inputEnvelope?: InvokeInputEnvelopeV2;
61
63
  /** Foreground local continuity watcher requested by CLI `--watch`. */
62
64
  readonly watch?: boolean;
63
65
  /** Test/integration seam for runner auto-bootstrap; CLI callers leave unset. */
@@ -235,10 +237,11 @@ export declare function sanitizeInvokeCliOutput(instructions: string | undefined
235
237
  instructions: string;
236
238
  metadata: Record<string, unknown> | undefined;
237
239
  };
238
- type InvokeCliInputSource = 'args' | 'stdin' | 'args-file';
240
+ type InvokeCliInputSource = InvokeInputSourceV2;
239
241
  export interface InvokeCliParsedOptions {
240
242
  readonly args: string;
241
243
  readonly inputSource: InvokeCliInputSource;
244
+ readonly inputEnvelope: InvokeInputEnvelopeV2;
242
245
  readonly projectRoot?: string;
243
246
  readonly format: 'json' | 'plain';
244
247
  readonly watch: boolean;
@@ -278,12 +281,15 @@ export interface InvokeCommandLevelWatchResolution {
278
281
  readonly publicSafe: true;
279
282
  }
280
283
  export interface InvokeCliInputReaders {
281
- readonly readStdin?: () => string;
282
- readonly readArgsFile?: (filePath: string) => string;
284
+ readonly readStdin?: () => string | Uint8Array;
285
+ readonly readArgsFile?: (filePath: string) => string | Uint8Array;
283
286
  }
284
287
  export declare class InvokeCliInputError extends Error {
288
+ readonly reason?: InvocationMalformedInputReasonV1 | undefined;
289
+ readonly source?: InvokeCliInputSource | undefined;
290
+ readonly byteLength?: number | undefined;
285
291
  readonly code: string;
286
- constructor(code: string, message: string);
292
+ constructor(code: string, message: string, reason?: InvocationMalformedInputReasonV1 | undefined, source?: InvokeCliInputSource | undefined, byteLength?: number | undefined);
287
293
  }
288
294
  export type StateSnapshotScopeKind = 'full' | 'projected';
289
295
  export type StateSnapshotCommandPolicy = 'full' | 'story-targeted' | 'epic-targeted' | 'yoloop-targeted' | 'epic-summary' | 'continuity-scoped' | 'adaptive-targeted' | (string & {});
@@ -466,6 +472,9 @@ interface InvokeRequestBodyBase {
466
472
  readonly stateSnapshot: StateSnapshot;
467
473
  readonly platformTarget?: string;
468
474
  readonly projectId?: string;
475
+ readonly projectIdentityMigration?: ProjectIdentityMigrationRequestV1;
476
+ /** Public-safe proof that the transmitted/materialized args are byte-faithful. */
477
+ readonly inputEvidence: InvokeInputEvidenceV1;
469
478
  readonly idempotencyKey?: string;
470
479
  readonly registryVersion: string;
471
480
  readonly registryChecksum: string;
@@ -510,6 +519,11 @@ export declare class InvokePayloadTooLargeError extends Error {
510
519
  readonly telemetry: InvokePayloadTelemetry;
511
520
  constructor(telemetry: InvokePayloadTelemetry);
512
521
  }
522
+ export declare class InvokeStructuralContextTooLargeError extends Error {
523
+ readonly code = "STRUCTURAL_CONTEXT_TOO_LARGE";
524
+ readonly telemetry: InvokePayloadTelemetry;
525
+ constructor(telemetry: InvokePayloadTelemetry);
526
+ }
513
527
  /**
514
528
  * P103.02: Describe a schema-drift issue detected in a user's state.json.
515
529
  * Codes map to concrete misalignments against the canonical v1 schema