@ornexus/neocortex 4.66.0 → 4.66.2
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 +1206 -1193
- package/docs/install/linux-global-install.md +21 -1
- package/install.js +22 -28
- package/install.ps1 +19 -24
- package/install.sh +26 -30
- package/package.json +2 -2
- package/packages/client/dist/commands/doctor.d.ts +26 -1
- package/packages/client/dist/commands/doctor.js +2 -2
- package/packages/client/dist/commands/invoke.d.ts +149 -1
- package/packages/client/dist/commands/invoke.js +88 -83
- package/packages/client/dist/commands/planning-qa.d.ts +57 -0
- package/packages/client/dist/commands/planning-qa.js +1 -1
- package/packages/client/dist/commands/story-checkpoint.d.ts +2 -0
- package/packages/client/dist/commands/story-checkpoint.js +1 -1
- package/packages/client/dist/commands/story-worktree.d.ts +1 -1
- package/packages/client/dist/commands/story-worktree.js +1 -1
- package/packages/client/dist/git/direct-yolo-checkpoint.d.ts +51 -0
- package/packages/client/dist/git/direct-yolo-checkpoint.js +4 -3
- package/packages/client/dist/git/epic-lifecycle-evidence.d.ts +184 -0
- package/packages/client/dist/git/epic-lifecycle-evidence.js +6 -0
- package/packages/client/dist/git/git-lifecycle-store.d.ts +9 -0
- package/packages/client/dist/git/git-lifecycle-store.js +9 -8
- package/packages/client/dist/git/story-worktree-cleanup.js +1 -1
- package/packages/client/dist/git/story-worktree-integration.js +3 -3
- package/packages/client/dist/git/story-worktree-manager.d.ts +39 -0
- package/packages/client/dist/git/story-worktree-manager.js +3 -3
- package/packages/client/dist/git/story-write-set-extension.d.ts +62 -0
- package/packages/client/dist/git/story-write-set-extension.js +1 -1
- package/packages/client/dist/private-execution/codex-executor.d.ts +13 -0
- package/packages/client/dist/private-execution/codex-executor.js +4 -4
- package/packages/client/dist/private-execution/harness-adapters/antigravity.d.ts +9 -0
- package/packages/client/dist/private-execution/harness-adapters/antigravity.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/claude-code.d.ts +8 -0
- package/packages/client/dist/private-execution/harness-adapters/claude-code.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/codex.d.ts +7 -0
- package/packages/client/dist/private-execution/harness-adapters/codex.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/copilot-cli.d.ts +8 -0
- package/packages/client/dist/private-execution/harness-adapters/copilot-cli.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/cursor.d.ts +9 -0
- package/packages/client/dist/private-execution/harness-adapters/cursor.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/deepseek.d.ts +9 -0
- package/packages/client/dist/private-execution/harness-adapters/deepseek.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/gemini.d.ts +8 -0
- package/packages/client/dist/private-execution/harness-adapters/gemini.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/grok.d.ts +9 -0
- package/packages/client/dist/private-execution/harness-adapters/grok.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/index.d.ts +73 -0
- package/packages/client/dist/private-execution/harness-adapters/index.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/kimi.d.ts +9 -0
- package/packages/client/dist/private-execution/harness-adapters/kimi.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/openclaw.d.ts +9 -0
- package/packages/client/dist/private-execution/harness-adapters/openclaw.js +1 -0
- package/packages/client/dist/private-execution/harness-adapters/opencode.d.ts +7 -0
- package/packages/client/dist/private-execution/harness-adapters/opencode.js +1 -0
- package/packages/client/dist/private-execution/harness-ephemeral-home.d.ts +19 -0
- package/packages/client/dist/private-execution/harness-ephemeral-home.js +1 -0
- package/packages/client/dist/private-execution/harness-executor.d.ts +79 -0
- package/packages/client/dist/private-execution/harness-executor.js +1 -0
- package/packages/client/dist/private-execution/harness-process.d.ts +43 -0
- package/packages/client/dist/private-execution/harness-process.js +1 -0
- package/packages/client/dist/private-execution/isolated-admission.js +12 -12
- package/packages/client/dist/private-execution/isolated-workspace.d.ts +16 -1
- package/packages/client/dist/private-execution/isolated-workspace.js +1 -1
- package/packages/client/dist/private-execution/planning-diagnosis-checkpoint.d.ts +2 -3
- package/packages/client/dist/private-execution/planning-diagnosis-checkpoint.js +7 -4
- package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.d.ts +1 -22
- package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.js +6 -10
- package/packages/client/dist/state/project-state-snapshot.d.ts +10 -0
- package/packages/client/dist/state/project-state-snapshot.js +1 -1
- package/packages/client/dist/state/structural-dag-projection.d.ts +26 -0
- package/packages/client/dist/state/structural-dag-projection.js +1 -1
- package/packages/client/dist/yoloop/yoloop-client-state-store.d.ts +67 -0
- package/packages/client/dist/yoloop/yoloop-client-state-store.js +1 -1
- package/packages/shared/dist/compatibility/index.js +28 -0
- 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-sentinel.md +1 -1
- 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/gemini-cli/agents/neocortex.md +2 -2
- package/targets-stubs/grok/SKILL.md +3 -3
- package/targets-stubs/grok/agents/{neocortex.md → neocortex-sentinel.md} +2 -2
- package/targets-stubs/grok/install-grok.sh +45 -8
- package/targets-stubs/lib/managed-config-merge.js +21 -1
- package/targets-stubs/lib/mcp-merge.js +18 -7
- package/targets-stubs/opencode/neocortex-root.md +1 -1
- package/targets-stubs/opencode/neocortex.md +1 -1
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
|
@@ -73,9 +73,78 @@ export interface InvokeOptions {
|
|
|
73
73
|
readonly onPrivateExecutionWorkspaceFailure?: (observation: import('../private-execution/codex-executor.js').PrivateCodexWorkspaceEffectFailureV1) => void;
|
|
74
74
|
/** Test-only parent for root-owned private YOLO/planning clones; CLI leaves unset. */
|
|
75
75
|
readonly privateExecutionWorkspaceParent?: string;
|
|
76
|
+
/** P229.05 test seam for the host-neutral executor port; the CLI leaves it unset. */
|
|
77
|
+
readonly privateHostExecutorLoader?: PrivateHostExecutorLoaderV1;
|
|
76
78
|
/** Explicit typed P223 release gate input from an authorized local producer. */
|
|
77
79
|
readonly releaseGate?: ReleaseGateRequestV1;
|
|
78
80
|
}
|
|
81
|
+
/** P229.02 port: `cwd` is bound at creation; material enters only through `run`. */
|
|
82
|
+
export interface PrivateHostExecutionPortV1 {
|
|
83
|
+
readonly hostKind: string;
|
|
84
|
+
preflight(): Promise<unknown>;
|
|
85
|
+
run(material: string): Promise<unknown>;
|
|
86
|
+
}
|
|
87
|
+
export type PrivateHostExecutorLoaderV1 = (hostKind: string, options: {
|
|
88
|
+
readonly cwd: string;
|
|
89
|
+
}) => Promise<PrivateHostExecutionPortV1 | undefined>;
|
|
90
|
+
/** Validated core preflight; `cwd` is never part of it and is never serialized. */
|
|
91
|
+
export interface PrivateHostPreflightV1 {
|
|
92
|
+
readonly hostKind: string;
|
|
93
|
+
readonly hostVersion: string;
|
|
94
|
+
readonly os: 'linux' | 'darwin' | 'win32';
|
|
95
|
+
readonly observedAtMs: number;
|
|
96
|
+
}
|
|
97
|
+
/** P229.04 exact v7 executor proof sent for every port host (`isPrivateExecutorProofV7`). */
|
|
98
|
+
export type PrivateHostExecutorProofV7 = {
|
|
99
|
+
readonly schemaVersion: 7;
|
|
100
|
+
readonly preflight: 'passed';
|
|
101
|
+
readonly hostVersion: 'passed';
|
|
102
|
+
readonly stdinOnly: 'passed';
|
|
103
|
+
readonly ephemeralHome: 'passed';
|
|
104
|
+
readonly nativeNoPersistence: 'passed';
|
|
105
|
+
readonly os: 'passed';
|
|
106
|
+
};
|
|
107
|
+
/** Routing (P229-CON-EXECUTOR): only `codex-cli` on Linux keeps the v6 executor. */
|
|
108
|
+
export declare function usesPrivateCodexV6Executor(hostKind: string | undefined, platform: string): boolean;
|
|
109
|
+
/** Default loader: the P229.02 adapter registry; hosts without an adapter yield `undefined`. */
|
|
110
|
+
export declare function defaultPrivateHostExecutorLoader(hostKind: string, options: {
|
|
111
|
+
readonly cwd: string;
|
|
112
|
+
}): Promise<PrivateHostExecutionPortV1 | undefined>;
|
|
113
|
+
/** One port per `cwd`; a missing, throwing or mismatched port is `private-executor-headless-unavailable`. */
|
|
114
|
+
export declare function loadPrivateHostExecutionPort(hostKind: string, cwd: string, loader?: PrivateHostExecutorLoaderV1): Promise<PrivateHostExecutionPortV1>;
|
|
115
|
+
export declare function validatePrivateHostPreflight(value: unknown, hostKind: string): PrivateHostPreflightV1;
|
|
116
|
+
/** Exactly the 10 keys of `PrivateHarnessExecutionReceiptV2`; the receipt is returned unchanged. */
|
|
117
|
+
export declare function sanitizePrivateHostReceiptV2(value: unknown, hostKind: string): import('../private-execution/harness-executor.js').PrivateHarnessExecutionReceiptV2;
|
|
118
|
+
/** P229-CON-ADMISSION request for a port host, built only from a validated preflight. */
|
|
119
|
+
export declare function buildPrivateHostExecutionRequest(preflight: PrivateHostPreflightV1): {
|
|
120
|
+
readonly schemaVersion: 1;
|
|
121
|
+
readonly hostKind: PrivateExecutionHostKind;
|
|
122
|
+
readonly hostVersion: string;
|
|
123
|
+
readonly executorProof: PrivateHostExecutorProofV7;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Material goes only to `port.run`. A non-success outcome fails with the outcome itself;
|
|
127
|
+
* coded port errors pass, others become `private-executor-run-failed`. With
|
|
128
|
+
* `requireWorkspaceEffect` the Codex checkout check is replicated around the run.
|
|
129
|
+
*/
|
|
130
|
+
export declare function runPrivateHostExecutionStep(port: PrivateHostExecutionPortV1, material: string, options: {
|
|
131
|
+
readonly hostKind: string;
|
|
132
|
+
readonly workspaceRoot: string;
|
|
133
|
+
readonly requireWorkspaceEffect: boolean;
|
|
134
|
+
readonly expectedExecutionBranch?: string;
|
|
135
|
+
}): Promise<import('../private-execution/harness-executor.js').PrivateHarnessExecutionReceiptV2>;
|
|
136
|
+
/**
|
|
137
|
+
* P229.05 AC2/AC3: `create-epic` private material by descriptor write-set. Both runtimes
|
|
138
|
+
* accept only P01 (diagnosis) inside a create-epic envelope: the Codex v6 executor refuses
|
|
139
|
+
* the rest with the root protocol, the port with `private-execution-planning-step-unsupported`.
|
|
140
|
+
* P02/P03 run through the standalone *idea-research / *generate-epic step commands, the
|
|
141
|
+
* only place their predecessor-bound preflights exist.
|
|
142
|
+
*/
|
|
143
|
+
export declare function classifyPrivateCreateEpicPlanningPhase(input: {
|
|
144
|
+
readonly codexV6: boolean;
|
|
145
|
+
readonly writeSetId: unknown;
|
|
146
|
+
readonly stepId: unknown;
|
|
147
|
+
}): 'diagnosis';
|
|
79
148
|
/**
|
|
80
149
|
* Normalize the project root received from wrappers/CLI flags.
|
|
81
150
|
*
|
|
@@ -548,12 +617,14 @@ interface InvokeRequestBodyBase {
|
|
|
548
617
|
readonly hostCapacity?: YoloopHostCapacityV1;
|
|
549
618
|
/**
|
|
550
619
|
* P228.18: `hostKind` is the closed shared host enum; `sandboxProof` is a
|
|
551
|
-
* Codex-host attribute sent only for `codex-cli
|
|
620
|
+
* Codex-host attribute sent only for `codex-cli` on Linux (v6 executor).
|
|
621
|
+
* P229.05: every other host carries the exact P229.04 v7 `executorProof`.
|
|
552
622
|
*/
|
|
553
623
|
readonly privateExecution?: {
|
|
554
624
|
readonly schemaVersion: 1;
|
|
555
625
|
readonly hostKind: PrivateExecutionHostKind;
|
|
556
626
|
readonly hostVersion: string;
|
|
627
|
+
readonly executorProof?: PrivateHostExecutorProofV7;
|
|
557
628
|
readonly sandboxProof?: {
|
|
558
629
|
readonly schemaVersion: 6;
|
|
559
630
|
readonly trust: 'client-self-attested';
|
|
@@ -683,6 +754,8 @@ export interface StateSnapshotCollectionOptions {
|
|
|
683
754
|
readonly verifyPlanningGeneration?: boolean;
|
|
684
755
|
/** Process-local proof keyed by story; never read from or written to JSON. */
|
|
685
756
|
readonly p205Authorities?: Readonly<Record<string, P205TransientExecutionAuthority>>;
|
|
757
|
+
/** P230.07: count-only P205 order diagnostics projected on the affected epic. */
|
|
758
|
+
readonly p205AuthorityDiagnostics?: readonly P205AuthorityEpicDiagnostic[];
|
|
686
759
|
}
|
|
687
760
|
export declare class StateSnapshotIntegrityError extends Error {
|
|
688
761
|
readonly reasonCode: string;
|
|
@@ -753,7 +826,73 @@ export declare function boundedP222PremergeCheckpointPositions(projectRoot: stri
|
|
|
753
826
|
* The projection itself stays fail-closed regardless of the reason.
|
|
754
827
|
*/
|
|
755
828
|
export declare function invokeP205ProjectionReasonCode(error: unknown): string;
|
|
829
|
+
export declare const P205_AUTHORITY_EPIC_ORDER_MISMATCH: "p205-authority-epic-order-mismatch";
|
|
830
|
+
export interface EpicCheckpointOrderCandidate {
|
|
831
|
+
readonly storyId: string;
|
|
832
|
+
/** First-parent position (bounded P222 premerge positions may be negative). */
|
|
833
|
+
readonly position: number;
|
|
834
|
+
/** Effective `depends_on` of the story. */
|
|
835
|
+
readonly dependsOn: readonly string[];
|
|
836
|
+
}
|
|
837
|
+
export interface EpicCheckpointOrderCounts {
|
|
838
|
+
readonly listed: number;
|
|
839
|
+
readonly physical: number;
|
|
840
|
+
readonly missing: number;
|
|
841
|
+
readonly extra: number;
|
|
842
|
+
readonly duplicates: number;
|
|
843
|
+
readonly dependencyViolations: number;
|
|
844
|
+
}
|
|
845
|
+
export type EpicCheckpointOrderDecision = {
|
|
846
|
+
readonly ok: true;
|
|
847
|
+
readonly order: readonly string[];
|
|
848
|
+
} | {
|
|
849
|
+
readonly ok: false;
|
|
850
|
+
readonly reasonCode: typeof P205_AUTHORITY_EPIC_ORDER_MISMATCH;
|
|
851
|
+
readonly counts: EpicCheckpointOrderCounts;
|
|
852
|
+
};
|
|
853
|
+
/** Public, count-only diagnostic for an epic whose checkpoint order was refused. */
|
|
854
|
+
export interface P205AuthorityEpicDiagnostic {
|
|
855
|
+
readonly epicId: string;
|
|
856
|
+
readonly reasonCode: typeof P205_AUTHORITY_EPIC_ORDER_MISMATCH;
|
|
857
|
+
readonly counts: EpicCheckpointOrderCounts;
|
|
858
|
+
}
|
|
859
|
+
export interface InvokeP205AuthorityProjection {
|
|
860
|
+
readonly authorities: Readonly<Record<string, P205TransientExecutionAuthority>>;
|
|
861
|
+
readonly diagnostics: readonly P205AuthorityEpicDiagnostic[];
|
|
862
|
+
/**
|
|
863
|
+
* P230.07 AC3: `finalize-epic` only -- authority minted by the same single
|
|
864
|
+
* P205 run for the target epic's current graph revision (exact for the
|
|
865
|
+
* aggregate receipt). Process-local; never serialized.
|
|
866
|
+
*/
|
|
867
|
+
readonly epicAuthorities: Readonly<Record<string, P205TransientExecutionAuthority>>;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* P230.07 (P230-CON-P205-FINALIZE): the physical first-parent order is the
|
|
871
|
+
* canonical claim order when the listed checkpoint set is exactly the physical
|
|
872
|
+
* set (no duplicates) and every in-group dependency lands physically earlier.
|
|
873
|
+
* Anything else is a typed, count-only mismatch. Pure and deterministic.
|
|
874
|
+
*/
|
|
875
|
+
export declare function canonicalizeEpicCheckpointOrder(listed: readonly string[], candidates: readonly EpicCheckpointOrderCandidate[]): EpicCheckpointOrderDecision;
|
|
756
876
|
export declare function collectInvokeP205Authorities(projectRoot: string, args: string, commandId: string | null | undefined): Promise<Readonly<Record<string, P205TransientExecutionAuthority>>>;
|
|
877
|
+
export declare function collectInvokeP205AuthorityProjection(projectRoot: string, args: string, commandId: string | null | undefined): Promise<InvokeP205AuthorityProjection>;
|
|
878
|
+
/** Bounded `finalize-epic` target: `epic-P<n>.md` or an isolated `P<n>` token. */
|
|
879
|
+
export declare function finalizeEpicTargetId(args: string): string | undefined;
|
|
880
|
+
/**
|
|
881
|
+
* P230.07 AC3 (P230-CON-P205-FINALIZE): `finalize-epic` through the invoke
|
|
882
|
+
* produces the missing aggregate QA and head reconciliation receipts with the
|
|
883
|
+
* same producer as the headless runner, reusing the exact in-process P205
|
|
884
|
+
* authority. It never switches the operator checkout. Failures are typed and
|
|
885
|
+
* public; the projection then simply carries no receipt (fail-closed).
|
|
886
|
+
* Returns `undefined` when not applicable.
|
|
887
|
+
*/
|
|
888
|
+
export declare function produceFinalizeEpicLifecycleEvidence(input: {
|
|
889
|
+
readonly projectRoot: string;
|
|
890
|
+
readonly args: string;
|
|
891
|
+
readonly commandId: string | null | undefined;
|
|
892
|
+
/** `InvokeP205AuthorityProjection.epicAuthorities`; the only P205 authority this path may use. */
|
|
893
|
+
readonly epicAuthorities: Readonly<Record<string, P205TransientExecutionAuthority>>;
|
|
894
|
+
readonly nowIso?: string;
|
|
895
|
+
}): Promise<Awaited<ReturnType<typeof import('../git/epic-lifecycle-evidence.js').produceEpicLifecycleEvidence>> | undefined>;
|
|
757
896
|
export declare function createFullStateSnapshotScope(trigger: string, snapshot: Pick<StateSnapshot, 'stories' | 'epics'>): FullStateSnapshotScope;
|
|
758
897
|
interface SendResult {
|
|
759
898
|
readonly ok: boolean;
|
|
@@ -822,6 +961,15 @@ export declare function sendEpicClaimAcknowledgement(serverUrl: string, authToke
|
|
|
822
961
|
readonly snapshot: Record<string, unknown>;
|
|
823
962
|
};
|
|
824
963
|
}, retryOptions?: InvokePhysicalRetryOptions): Promise<boolean>;
|
|
964
|
+
/**
|
|
965
|
+
* P230.01 (P230-CON-CONTINUATION C2): at a `*yoloop` re-invocation, records the
|
|
966
|
+
* typed `yoloop-round-refused-before-setup` receipt when the single pending
|
|
967
|
+
* authority's round left no setup evidence, then returns the re-read state so
|
|
968
|
+
* the request carries it. Any derivation or recording failure keeps the state
|
|
969
|
+
* unchanged (no receipt, legacy replay path); only a bounded reason code is
|
|
970
|
+
* written to stderr.
|
|
971
|
+
*/
|
|
972
|
+
export declare function recordRefusedYoloopRoundIfAny(projectRoot: string, stateSnapshot: Pick<StateSnapshot, 'epics' | 'stories'>, yoloopState: YoloopPersistedState): Promise<YoloopPersistedState>;
|
|
825
973
|
export declare function acknowledgeMaterializedPendingEpicClaims(projectRoot: string, stateSnapshot: StateSnapshot, serverUrl: string, authToken: string, projectId: string | undefined, retryOptions?: InvokePhysicalRetryOptions): Promise<number>;
|
|
826
974
|
export type YoloopInvalidatedSessionRecoveryResultV1 = {
|
|
827
975
|
readonly outcome: 'applied';
|