@ornexus/neocortex 4.66.25 → 4.66.44

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 (49) hide show
  1. package/dist/release-source.json +1 -1
  2. package/dist/sbom.cdx.json +1194 -1194
  3. package/install.ps1 +1 -1
  4. package/install.sh +1 -1
  5. package/package.json +2 -2
  6. package/packages/client/dist/commands/invoke.d.ts +25 -3
  7. package/packages/client/dist/commands/invoke.js +96 -96
  8. package/packages/client/dist/continuity/sqlite-store.d.ts +3 -1
  9. package/packages/client/dist/continuity/sqlite-store.js +26 -20
  10. package/packages/client/dist/git/direct-yolo-checkpoint.d.ts +10 -0
  11. package/packages/client/dist/git/direct-yolo-checkpoint.js +4 -4
  12. package/packages/client/dist/git/git-lifecycle-store.d.ts +16 -0
  13. package/packages/client/dist/git/git-lifecycle-store.js +9 -9
  14. package/packages/client/dist/git/published-story-reconciliation.d.ts +7 -3
  15. package/packages/client/dist/git/published-story-reconciliation.js +5 -5
  16. package/packages/client/dist/git/secure-filesystem-boundary.d.ts +1 -1
  17. package/packages/client/dist/git/secure-filesystem-boundary.js +5 -5
  18. package/packages/client/dist/git/story-worktree-integration.d.ts +2 -0
  19. package/packages/client/dist/git/story-worktree-integration.js +3 -3
  20. package/packages/client/dist/git/story-worktree-manager.d.ts +3 -0
  21. package/packages/client/dist/git/story-worktree-manager.js +3 -3
  22. package/packages/client/dist/license/license-client.js +1 -1
  23. package/packages/client/dist/runner/headless/epic-merge-candidate-qa.d.ts +17 -0
  24. package/packages/client/dist/runner/headless/epic-merge-candidate-qa.js +3 -2
  25. package/packages/client/dist/runner/headless/run-yolo.d.ts +4 -0
  26. package/packages/client/dist/runner/headless/run-yolo.js +1 -1
  27. package/packages/client/dist/runner/headless/run-yoloop.d.ts +79 -0
  28. package/packages/client/dist/runner/headless/run-yoloop.js +4 -4
  29. package/postinstall.js +6 -0
  30. package/targets-stubs/antigravity/gemini.md +1 -1
  31. package/targets-stubs/antigravity/neocortex.md +1 -1
  32. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  33. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  34. package/targets-stubs/claude-code/neocortex-root.md +2 -2
  35. package/targets-stubs/claude-code/neocortex-sentinel.md +1 -1
  36. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  37. package/targets-stubs/claude-code/neocortex.md +2 -2
  38. package/targets-stubs/codex/AGENTS.md +1 -1
  39. package/targets-stubs/codex/neocortex.toml +1 -1
  40. package/targets-stubs/cursor/agent.md +2 -2
  41. package/targets-stubs/deepseek-harness/SKILL.md +1 -1
  42. package/targets-stubs/gemini-cli/agent.md +2 -2
  43. package/targets-stubs/gemini-cli/agents/neocortex.md +2 -2
  44. package/targets-stubs/grok/SKILL.md +1 -1
  45. package/targets-stubs/kimi/neocortex.md +1 -1
  46. package/targets-stubs/openclaw/SKILL.md +1 -1
  47. package/targets-stubs/opencode/neocortex-root.md +2 -2
  48. package/targets-stubs/opencode/neocortex.md +2 -2
  49. 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.25"
22
+ $VERSION = "4.66.44"
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.25"
7
+ VERSION="4.66.44"
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.25",
4
- "description": "Neocortex v4.66.25",
3
+ "version": "4.66.44",
4
+ "description": "Neocortex v4.66.44",
5
5
  "keywords": [
6
6
  "claude",
7
7
  "claude-code",
@@ -27,12 +27,22 @@ import type { PublishedStoryReconciliation } from '../git/published-story-reconc
27
27
  export declare function publicYoloSpecEnvelopeErrorCode(error: unknown, allowChangeEvidence?: boolean): string;
28
28
  export declare const INVOKE_PAYLOAD_LIMIT_BYTES: number;
29
29
  export declare const INVOKE_PAYLOAD_WARNING_THRESHOLD_BYTES: number;
30
+ interface PendingEpicClaimDocument {
31
+ readonly schemaVersion: 1;
32
+ readonly operations: Readonly<Record<string, {
33
+ readonly idempotencyKey: string;
34
+ readonly createdAt: string;
35
+ readonly claimId?: string;
36
+ readonly epicId?: string;
37
+ readonly planningProtocol?: 'root-staged-v1';
38
+ }>>;
39
+ }
30
40
  type EpicClaimCommand = 'create-epic' | 'idea-diagnose';
31
41
  export declare function getOrCreatePendingEpicIdempotencyKey(projectRoot: string, args: string, command?: EpicClaimCommand): {
32
42
  readonly key: string;
33
43
  readonly fingerprint: string;
34
44
  };
35
- export declare function clearPendingEpicIdempotencyKey(projectRoot: string, fingerprint: string): void;
45
+ export declare function clearPendingEpicIdempotencyKey(projectRoot: string, fingerprint: string, expected?: PendingEpicClaimDocument['operations'][string]): boolean;
36
46
  /**
37
47
  * Stable logical key for one YOLO state transition. Physical HTTP retries and
38
48
  * process restarts reuse the key while a changed story checkpoint produces a
@@ -869,6 +879,8 @@ export interface P205AuthorityEpicDiagnostic {
869
879
  export interface InvokeP205AuthorityProjection {
870
880
  readonly authorities: Readonly<Record<string, P205TransientExecutionAuthority>>;
871
881
  readonly diagnostics: readonly P205AuthorityEpicDiagnostic[];
882
+ /** Public-safe reason when the physical gate could not mint any authority. */
883
+ readonly failureReasonCode?: string;
872
884
  /**
873
885
  * P230.07 AC3: `finalize-epic` only -- authority minted by the same single
874
886
  * P205 run for the target epic's current graph revision (exact for the
@@ -876,6 +888,16 @@ export interface InvokeP205AuthorityProjection {
876
888
  */
877
889
  readonly epicAuthorities: Readonly<Record<string, P205TransientExecutionAuthority>>;
878
890
  }
891
+ export interface InvokeP205AuthorityCollectionOptions {
892
+ /**
893
+ * Retained for source compatibility with prior callers. Root yoloop is a
894
+ * scheduling boundary and never executes the complete P205 gate, including
895
+ * published-checkpoint recovery.
896
+ */
897
+ readonly publishedCheckpointRecovery?: boolean;
898
+ /** Fresh scheduling proofs are projected separately and grant no P205 authority. */
899
+ readonly publishedStoryReconciliations?: readonly PublishedStoryReconciliation[];
900
+ }
879
901
  /**
880
902
  * P230.07 (P230-CON-P205-FINALIZE): the physical first-parent order is the
881
903
  * canonical claim order when the listed checkpoint set is exactly the physical
@@ -884,7 +906,7 @@ export interface InvokeP205AuthorityProjection {
884
906
  */
885
907
  export declare function canonicalizeEpicCheckpointOrder(listed: readonly string[], candidates: readonly EpicCheckpointOrderCandidate[]): EpicCheckpointOrderDecision;
886
908
  export declare function collectInvokeP205Authorities(projectRoot: string, args: string, commandId: string | null | undefined): Promise<Readonly<Record<string, P205TransientExecutionAuthority>>>;
887
- export declare function collectInvokeP205AuthorityProjection(projectRoot: string, args: string, commandId: string | null | undefined): Promise<InvokeP205AuthorityProjection>;
909
+ export declare function collectInvokeP205AuthorityProjection(projectRoot: string, args: string, commandId: string | null | undefined, _options?: InvokeP205AuthorityCollectionOptions): Promise<InvokeP205AuthorityProjection>;
888
910
  /** Bounded `finalize-epic` target: `epic-P<n>.md` or an isolated `P<n>` token. */
889
911
  export declare function finalizeEpicTargetId(args: string): string | undefined;
890
912
  /**
@@ -981,7 +1003,7 @@ export declare function sendEpicClaimAcknowledgement(serverUrl: string, authToke
981
1003
  * written to stderr.
982
1004
  */
983
1005
  export declare function recordRefusedYoloopRoundIfAny(projectRoot: string, stateSnapshot: Pick<StateSnapshot, 'epics' | 'stories'>, yoloopState: YoloopPersistedState): Promise<YoloopPersistedState>;
984
- export declare function acknowledgeMaterializedPendingEpicClaims(projectRoot: string, stateSnapshot: StateSnapshot, serverUrl: string, authToken: string, projectId: string | undefined, retryOptions?: InvokePhysicalRetryOptions): Promise<number>;
1006
+ export declare function acknowledgeMaterializedPendingEpicClaims(projectRoot: string, stateSnapshot: StateSnapshot, serverUrl: string, authToken: string, projectId: string | undefined, targetEpicId: string | undefined, retryOptions?: InvokePhysicalRetryOptions): Promise<number>;
985
1007
  export type YoloopInvalidatedSessionRecoveryResultV1 = {
986
1008
  readonly outcome: 'applied';
987
1009
  readonly payloadHash: string;