@ornexus/neocortex 4.60.41 → 4.60.43
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/sbom.cdx.json +31 -31
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +14 -2
- package/packages/client/dist/commands/invoke.js +57 -56
- package/packages/client/dist/generated/command-registry.generated.d.ts +66 -23
- package/packages/client/dist/generated/command-registry.generated.js +1 -1
- package/packages/client/dist/generated/public-projections.generated.d.ts +100 -0
- package/packages/client/dist/generated/public-projections.generated.js +1 -0
- package/packages/client/dist/git/git-lifecycle-store.d.ts +17 -0
- package/packages/client/dist/git/git-lifecycle-store.js +4 -4
- package/packages/client/dist/index.d.ts +1 -0
- package/packages/client/dist/index.js +1 -1
- package/packages/client/dist/migrations/project-identity.js +7 -7
- package/packages/client/dist/migrations/state-json.d.ts +14 -0
- package/packages/client/dist/migrations/state-json.js +4 -0
- package/packages/client/dist/runner/headless/epic-git-reconciliation-inventory.d.ts +2 -0
- package/packages/client/dist/runner/headless/epic-git-reconciliation-inventory.js +1 -1
- package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.js +8 -8
- package/packages/client/dist/runner/headless/run-yoloop.d.ts +7 -1
- package/packages/client/dist/runner/headless/run-yoloop.js +2 -2
- package/packages/client/dist/state/project-state-snapshot.js +1 -1
- package/packages/client/dist/state/state-json-repair.js +3 -3
- package/packages/client/dist/yoloop/invoke-hooks.d.ts +2 -3
- package/packages/client/dist/yoloop/invoke-hooks.js +9 -8
- package/packages/client/dist/yoloop/shared-discover-epics.d.ts +3 -3
- package/packages/client/dist/yoloop/shared-discover-epics.js +1 -1
- package/packages/client/dist/yoloop/shared-yoloop-types.d.ts +87 -1
- package/packages/client/dist/yoloop/yoloop-client-state-store.d.ts +27 -3
- package/packages/client/dist/yoloop/yoloop-client-state-store.js +1 -1
- package/packages/shared/dist/command-registry-contract.js +38 -0
- package/packages/shared/dist/continuity/goal-operation-authority.js +48 -0
- package/packages/shared/dist/executable-graph-catalog/contracts.js +935 -0
- package/packages/shared/dist/generated/command-registry.generated.js +82 -23
- package/packages/shared/dist/generated/invocation-schema.generated.js +12 -4
- package/packages/shared/dist/generated/public-projections.generated.js +149 -0
- package/packages/shared/dist/invocation/executable-policy-recovery.d.ts +83 -0
- package/packages/shared/dist/invocation/executable-policy-recovery.js +272 -0
- package/packages/shared/dist/invocation/index.d.ts +3 -1
- package/packages/shared/dist/invocation/index.js +40 -1
- package/packages/shared/dist/invocation/recovery-route-compiler.d.ts +56 -0
- package/packages/shared/dist/invocation/recovery-route-compiler.js +214 -0
- package/packages/shared/dist/state/index.d.ts +1 -0
- package/packages/shared/dist/state/index.js +1 -0
- package/packages/shared/dist/state/state-migration.d.ts +58 -0
- package/packages/shared/dist/state/state-migration.js +404 -0
- package/packages/shared/dist/yoloop/canonical.js +15 -0
- package/packages/shared/dist/yoloop/operational-budget.js +164 -0
- package/packages/shared/dist/yoloop/recovery-types.js +39 -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.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex.md +2 -2
- package/targets-stubs/codex/AGENTS.md +11 -2
- package/targets-stubs/codex/README.md +7 -4
- package/targets-stubs/codex/neocortex.toml +53 -6
- package/targets-stubs/cursor/agent.md +2 -2
- package/targets-stubs/gemini-cli/agent.md +2 -2
- package/targets-stubs/opencode/neocortex-root.md +1 -1
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
|
@@ -161,6 +161,12 @@ const POLICY_KEYS = ['billingClass', 'idempotencyClass', 'minimumTier', 'mutatio
|
|
|
161
161
|
const COMPATIBILITY_KEYS = ['deprecatedIn', 'introducedIn', 'removedIn', 'replacement'];
|
|
162
162
|
const DESCRIPTION_KEYS = ['en', 'es', 'pt-BR'];
|
|
163
163
|
const PROJECTIONS = ['admin', 'client', 'docs', 'metrics', 'server', 'shared'];
|
|
164
|
+
export const COMMAND_REGISTRY_PROJECTION_KINDS = Object.freeze([...PROJECTIONS]);
|
|
165
|
+
const PUBLIC_COMMAND_FIELDS = [
|
|
166
|
+
'aliases', 'category', 'compatibility', 'description', 'examples', 'id',
|
|
167
|
+
'inputShape', 'mode', 'name', 'number', 'policy', 'projections', 'stepId',
|
|
168
|
+
'subcommands', 'visibility',
|
|
169
|
+
];
|
|
164
170
|
function exactKeys(value, expected) {
|
|
165
171
|
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
166
172
|
fail('REGISTRY_SCHEMA_INVALID');
|
|
@@ -380,3 +386,35 @@ export function parseCommandRegistryBytes(bytes) {
|
|
|
380
386
|
export function commandRegistryChecksum(document) {
|
|
381
387
|
return createHash('sha256').update(canonicalizeCommandRegistryJcs(document)).digest('hex');
|
|
382
388
|
}
|
|
389
|
+
/** P220.19: derive every compatibility view from one admitted registry value. */
|
|
390
|
+
export function projectCommandRegistryDocument(document, kind) {
|
|
391
|
+
if (!PROJECTIONS.includes(kind))
|
|
392
|
+
fail('REGISTRY_PROJECTION_DRIFT');
|
|
393
|
+
const admitted = normalizeCommandRegistryDocument(document);
|
|
394
|
+
const commands = admitted.commands.filter((entry) => entry.projections.includes(kind));
|
|
395
|
+
if (kind === 'server') {
|
|
396
|
+
return { schemaVersion: 1, registryVersion: admitted.registryVersion, commands: commands.map(({ invocation: _invocation, ...entry }) => entry) };
|
|
397
|
+
}
|
|
398
|
+
if (kind === 'shared') {
|
|
399
|
+
return {
|
|
400
|
+
schemaVersion: 1,
|
|
401
|
+
registryVersion: admitted.registryVersion,
|
|
402
|
+
commands: commands.map(({ handlerRef: _handlerRef, handlerClass: _handlerClass, invocation: _invocation, subcommands, ...entry }) => ({
|
|
403
|
+
...entry,
|
|
404
|
+
subcommands: subcommands.map(({ handlerRef: _ref, handlerClass: _class, ...operation }) => operation),
|
|
405
|
+
})),
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
return {
|
|
409
|
+
schemaVersion: 1,
|
|
410
|
+
registryVersion: admitted.registryVersion,
|
|
411
|
+
commands: commands
|
|
412
|
+
.filter((entry) => entry.visibility === 'public')
|
|
413
|
+
.map((entry) => Object.fromEntries(PUBLIC_COMMAND_FIELDS.map((field) => [
|
|
414
|
+
field,
|
|
415
|
+
field === 'subcommands'
|
|
416
|
+
? entry.subcommands.map(({ handlerRef: _ref, handlerClass: _class, ...operation }) => operation)
|
|
417
|
+
: entry[field],
|
|
418
|
+
]))),
|
|
419
|
+
};
|
|
420
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license FSL-1.1
|
|
3
|
+
* Copyright (c) 2026 OrNexus AI
|
|
4
|
+
*
|
|
5
|
+
* P220.03 -- Single typed authority for public Goal operation identity.
|
|
6
|
+
*
|
|
7
|
+
* Portal control actions are transport vocabulary. They are intentionally
|
|
8
|
+
* mapped in one direction and are never accepted as implicit CLI aliases.
|
|
9
|
+
*/
|
|
10
|
+
export const CONTINUITY_GOAL_OPERATION_REGISTRY_VERSION = '1.0.0';
|
|
11
|
+
const compatibility = Object.freeze({
|
|
12
|
+
introducedIn: CONTINUITY_GOAL_OPERATION_REGISTRY_VERSION,
|
|
13
|
+
deprecatedIn: null,
|
|
14
|
+
removedIn: null,
|
|
15
|
+
replacement: null,
|
|
16
|
+
});
|
|
17
|
+
export const CONTINUITY_GOAL_OPERATION_DEFINITIONS = Object.freeze([
|
|
18
|
+
{ id: 'answer-decision', aliases: Object.freeze([]), compatibility },
|
|
19
|
+
{ id: 'approve-review-gate', aliases: Object.freeze([]), compatibility },
|
|
20
|
+
{ id: 'cancel', aliases: Object.freeze([]), compatibility },
|
|
21
|
+
{ id: 'deny-review-gate', aliases: Object.freeze([]), compatibility },
|
|
22
|
+
{ id: 'pause', aliases: Object.freeze([]), compatibility },
|
|
23
|
+
{ id: 'plan', aliases: Object.freeze([]), compatibility },
|
|
24
|
+
{ id: 'report', aliases: Object.freeze([]), compatibility },
|
|
25
|
+
{ id: 'resume', aliases: Object.freeze([]), compatibility },
|
|
26
|
+
{ id: 'start', aliases: Object.freeze([]), compatibility },
|
|
27
|
+
{ id: 'status', aliases: Object.freeze([]), compatibility },
|
|
28
|
+
{ id: 'tick', aliases: Object.freeze([]), compatibility },
|
|
29
|
+
]);
|
|
30
|
+
export const CONTINUITY_GOAL_OPERATION_IDS = Object.freeze(CONTINUITY_GOAL_OPERATION_DEFINITIONS.map((definition) => definition.id));
|
|
31
|
+
const GOAL_OPERATION_BY_ID = new Map(CONTINUITY_GOAL_OPERATION_DEFINITIONS.map((definition) => [definition.id, definition]));
|
|
32
|
+
const GOAL_OPERATION_BY_ALIAS = new Map(CONTINUITY_GOAL_OPERATION_DEFINITIONS.flatMap((definition) => definition.aliases.map((alias) => [alias, definition])));
|
|
33
|
+
export function isContinuityGoalOperation(value) {
|
|
34
|
+
return GOAL_OPERATION_BY_ID.has(value);
|
|
35
|
+
}
|
|
36
|
+
export function resolveContinuityGoalOperation(value) {
|
|
37
|
+
return GOAL_OPERATION_BY_ID.get(value) ?? GOAL_OPERATION_BY_ALIAS.get(value) ?? null;
|
|
38
|
+
}
|
|
39
|
+
export const CONTINUITY_GOAL_GATE_OPERATIONS = Object.freeze([
|
|
40
|
+
'answer-decision',
|
|
41
|
+
'approve-review-gate',
|
|
42
|
+
'deny-review-gate',
|
|
43
|
+
]);
|
|
44
|
+
export const CONTINUITY_GOAL_GATE_TO_PORTAL_ACTION = Object.freeze({
|
|
45
|
+
'answer-decision': 'answer_decision',
|
|
46
|
+
'approve-review-gate': 'approve_review_gate',
|
|
47
|
+
'deny-review-gate': 'deny_review_gate',
|
|
48
|
+
});
|