@ornexus/neocortex 4.60.18 → 4.60.19
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 +6504 -6410
- package/docs/install/installer-diagnostics.md +52 -0
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +27 -4
- package/packages/client/dist/agent/refresh-stubs.d.ts +7 -0
- package/packages/client/dist/agent/refresh-stubs.js +2 -2
- package/packages/client/dist/cache/encrypted-cache.d.ts +3 -0
- package/packages/client/dist/cache/encrypted-cache.js +1 -1
- package/packages/client/dist/checkpoint/checkpoint-client-reader.js +2 -2
- package/packages/client/dist/cli.js +3 -3
- package/packages/client/dist/commands/activate.js +7 -7
- package/packages/client/dist/commands/config.js +1 -1
- package/packages/client/dist/commands/invoke.d.ts +64 -0
- package/packages/client/dist/commands/invoke.js +54 -47
- package/packages/client/dist/config/secure-config.d.ts +9 -3
- package/packages/client/dist/config/secure-config.js +8 -8
- package/packages/client/dist/config.d.ts +1 -1
- package/packages/client/dist/config.js +1 -1
- package/packages/client/dist/continuity/continuity-client-state-store.d.ts +1 -0
- package/packages/client/dist/continuity/continuity-client-state-store.js +1 -1
- package/packages/client/dist/continuity/invoke-hooks.d.ts +2 -1
- package/packages/client/dist/continuity/invoke-hooks.js +1 -1
- package/packages/client/dist/continuity/sqlite-store.d.ts +21 -0
- package/packages/client/dist/continuity/sqlite-store.js +49 -49
- package/packages/client/dist/effects/invoke-effect-gateways.d.ts +22 -0
- package/packages/client/dist/effects/invoke-effect-gateways.js +1 -0
- package/packages/client/dist/errors/frontmatter-diagnostics.d.ts +20 -0
- package/packages/client/dist/errors/frontmatter-diagnostics.js +1 -0
- package/packages/client/dist/generated/command-registry.generated.d.ts +2836 -0
- package/packages/client/dist/generated/command-registry.generated.js +1 -0
- package/packages/client/dist/graph-retrieval/pre-command-hook.d.ts +2 -0
- package/packages/client/dist/graph-retrieval/pre-command-hook.js +1 -1
- package/packages/client/dist/index.d.ts +1 -0
- package/packages/client/dist/index.js +1 -1
- package/packages/client/dist/license/license-client.d.ts +3 -0
- package/packages/client/dist/license/license-client.js +1 -1
- package/packages/client/dist/machine/fingerprint.d.ts +3 -1
- package/packages/client/dist/machine/fingerprint.js +2 -2
- package/packages/client/dist/memory/project-memory-writer.js +19 -15
- package/packages/client/dist/{subagent-approval-policy.d.ts → policy/subagent-approval-policy.d.ts} +8 -3
- package/packages/client/dist/policy/subagent-approval-policy.js +1 -0
- package/packages/client/dist/resolvers/local-resolver.d.ts +3 -0
- package/packages/client/dist/resolvers/local-resolver.js +4 -4
- package/packages/client/dist/runner/cli.d.ts +1 -0
- package/packages/client/dist/runner/cli.js +1 -1
- package/packages/client/dist/runner/headless/prepared-story-bundle.d.ts +20 -0
- package/packages/client/dist/runner/headless/prepared-story-bundle.js +1 -0
- package/packages/client/dist/runner/headless/run-yoloop.d.ts +2 -0
- package/packages/client/dist/runner/headless/run-yoloop.js +1 -1
- package/packages/client/dist/runner/portal-sync-worker.js +1 -1
- package/packages/client/dist/runner/scheduler.d.ts +3 -0
- package/packages/client/dist/runner/scheduler.js +7 -7
- package/packages/client/dist/state/project-state-snapshot.js +1 -1
- package/packages/client/dist/tier/tier-aware-client.js +1 -1
- package/packages/client/dist/version.d.ts +3 -0
- package/packages/client/dist/version.js +1 -0
- package/packages/client/dist/yoloop/discovery-hook.js +2 -2
- package/packages/client/dist/yoloop/invoke-hooks.js +4 -4
- package/packages/client/dist/yoloop/shared-discover-epics.d.ts +9 -3
- package/packages/client/dist/yoloop/shared-discover-epics.js +1 -1
- package/packages/client/dist/yoloop/shared-yoloop-types.d.ts +24 -0
- package/packages/client/dist/yoloop/target-normalization.d.ts +24 -0
- package/packages/client/dist/yoloop/target-normalization.js +1 -0
- package/packages/client/dist/yoloop/yoloop-client-state-store.d.ts +4 -0
- package/packages/client/dist/yoloop/yoloop-client-state-store.js +1 -1
- package/packages/shared/dist/command-registry-contract.js +382 -0
- package/packages/shared/dist/generated/command-registry.generated.js +4216 -0
- package/packages/shared/dist/generated/invocation-schema.generated.js +1850 -0
- package/packages/shared/dist/invocation/index.d.ts +175 -0
- package/packages/shared/dist/invocation/index.js +587 -0
- package/packages/shared/dist/nx-invoke-signature.js +233 -0
- package/packages/shared/dist/strict-readonly.js +381 -0
- package/packages/shared/dist/yoloop/wave-decision-receipt.js +77 -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 +5 -2
- package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex.md +7 -2
- package/targets-stubs/codex/AGENTS.md +4 -1
- package/targets-stubs/codex/neocortex.toml +4 -0
- package/targets-stubs/cursor/agent.md +2 -2
- package/targets-stubs/gemini-cli/agent.md +2 -2
- package/targets-stubs/opencode/neocortex-root.md +4 -1
- package/targets-stubs/opencode/neocortex.md +3 -0
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
- package/packages/client/dist/subagent-approval-policy.js +0 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export declare const EXACT_INVOCATION_POLICY: "p205-exact-invocation-v1";
|
|
2
|
+
export declare const INVOCATION_SCHEMA_VERSION: "p205-invocation-schema-v1";
|
|
3
|
+
export declare const INVOCATION_LIMITS: Readonly<{
|
|
4
|
+
inputBytes: number;
|
|
5
|
+
tokens: 512;
|
|
6
|
+
tokenBytes: number;
|
|
7
|
+
briefBytes: number;
|
|
8
|
+
receiptBytes: 2048;
|
|
9
|
+
suggestions: 5;
|
|
10
|
+
}>;
|
|
11
|
+
export type InvocationAdmissionOutcome = 'resolved' | 'ambiguous_command' | 'unknown_command' | 'malformed_input' | 'invalid_arguments';
|
|
12
|
+
export type InvocationAdmissionReason = 'accepted' | 'policy_mismatch' | 'registry_mismatch' | 'schema_mismatch' | 'input_limit' | 'token_limit' | 'token_size_limit' | 'invalid_control' | 'invalid_surrogate' | 'unsupported_escape' | 'unterminated_quote' | 'trailing_escape' | 'suggestions_available' | 'identity_unknown' | 'unknown_option' | 'duplicate_option' | 'missing_option_value' | 'unexpected_option_value' | 'invalid_option_value' | 'positional_required' | 'invalid_positional_value' | 'positional_overflow' | 'operation_required' | 'operation_unknown' | 'operation_quoted' | 'argument_conflict' | 'brief_limit';
|
|
13
|
+
export interface InvocationTokenSegment {
|
|
14
|
+
readonly quoted: false | 'single' | 'double';
|
|
15
|
+
readonly start: number;
|
|
16
|
+
readonly end: number;
|
|
17
|
+
}
|
|
18
|
+
export interface InvocationToken {
|
|
19
|
+
readonly value: string;
|
|
20
|
+
readonly start: number;
|
|
21
|
+
readonly end: number;
|
|
22
|
+
readonly whollyUnquoted: boolean;
|
|
23
|
+
readonly segments: readonly InvocationTokenSegment[];
|
|
24
|
+
}
|
|
25
|
+
export interface NormalizedUiUxReviewBriefV1 {
|
|
26
|
+
readonly architectureDir?: string;
|
|
27
|
+
readonly url?: string;
|
|
28
|
+
readonly surface?: readonly string[];
|
|
29
|
+
readonly brand?: string;
|
|
30
|
+
readonly designSystem?: string;
|
|
31
|
+
readonly evidenceOut?: string;
|
|
32
|
+
readonly reviewBrief?: string;
|
|
33
|
+
readonly json: boolean;
|
|
34
|
+
readonly screenshots: boolean;
|
|
35
|
+
readonly projectEvidence: boolean;
|
|
36
|
+
readonly fingerprint: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ResolvedInvocationSelectionV1 {
|
|
39
|
+
readonly commandId: string;
|
|
40
|
+
readonly commandNumber: number;
|
|
41
|
+
readonly operationId?: string;
|
|
42
|
+
readonly inputShape: string;
|
|
43
|
+
readonly positionals: readonly string[];
|
|
44
|
+
readonly options: Readonly<Record<string, boolean | string | readonly string[]>>;
|
|
45
|
+
readonly uiUxReview?: NormalizedUiUxReviewBriefV1;
|
|
46
|
+
readonly capability: {
|
|
47
|
+
readonly policy: typeof EXACT_INVOCATION_POLICY;
|
|
48
|
+
readonly registryChecksum: string;
|
|
49
|
+
readonly commandId: string;
|
|
50
|
+
readonly operationId?: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
interface AdmissionBase {
|
|
54
|
+
readonly policy: typeof EXACT_INVOCATION_POLICY;
|
|
55
|
+
readonly schemaVersion: typeof INVOCATION_SCHEMA_VERSION;
|
|
56
|
+
readonly registryVersion: string;
|
|
57
|
+
readonly registryChecksum: string;
|
|
58
|
+
readonly schemaChecksum: string;
|
|
59
|
+
readonly executable: boolean;
|
|
60
|
+
readonly reason: InvocationAdmissionReason;
|
|
61
|
+
readonly tokenCount: number;
|
|
62
|
+
readonly inputBytesBucket: string;
|
|
63
|
+
readonly candidates: readonly string[];
|
|
64
|
+
}
|
|
65
|
+
export interface ResolvedInvocationAdmissionV1 extends AdmissionBase {
|
|
66
|
+
readonly outcome: 'resolved';
|
|
67
|
+
readonly executable: true;
|
|
68
|
+
readonly reason: 'accepted';
|
|
69
|
+
readonly selection: ResolvedInvocationSelectionV1;
|
|
70
|
+
}
|
|
71
|
+
export interface RejectedInvocationAdmissionV1 extends AdmissionBase {
|
|
72
|
+
readonly outcome: Exclude<InvocationAdmissionOutcome, 'resolved'>;
|
|
73
|
+
readonly executable: false;
|
|
74
|
+
readonly mutationAttempts: 0;
|
|
75
|
+
}
|
|
76
|
+
export type InvocationAdmissionResultV1 = ResolvedInvocationAdmissionV1 | RejectedInvocationAdmissionV1;
|
|
77
|
+
export interface InvocationAdmissionOptions {
|
|
78
|
+
readonly policy?: string;
|
|
79
|
+
readonly registryVersion?: string;
|
|
80
|
+
readonly registryChecksum?: string;
|
|
81
|
+
readonly schemaChecksum?: string;
|
|
82
|
+
}
|
|
83
|
+
export type InvocationOptionKindV1 = 'boolean' | 'string' | 'string-list' | 'url' | 'path';
|
|
84
|
+
export type InvocationPositionalKindV1 = 'string' | 'story-ref' | 'epic-ref' | 'target-ref' | 'uiux-part';
|
|
85
|
+
export interface InvocationOptionSchemaV1 {
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly aliases: readonly string[];
|
|
88
|
+
readonly kind: InvocationOptionKindV1;
|
|
89
|
+
readonly cardinality: 'one' | 'many';
|
|
90
|
+
readonly required: boolean;
|
|
91
|
+
readonly default: boolean | string | null;
|
|
92
|
+
readonly syntax: readonly ('bare' | 'split' | 'inline')[];
|
|
93
|
+
/** Anchored generated validation for bounded string domains. */
|
|
94
|
+
readonly valuePattern: string | null;
|
|
95
|
+
}
|
|
96
|
+
export interface InvocationPositionalSchemaV1 {
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly kind: InvocationPositionalKindV1;
|
|
99
|
+
readonly cardinality: 'one' | 'many';
|
|
100
|
+
readonly required: boolean;
|
|
101
|
+
readonly order: number;
|
|
102
|
+
}
|
|
103
|
+
export interface InvocationCommandSchemaV1 {
|
|
104
|
+
readonly commandId: string;
|
|
105
|
+
readonly inputShape: string;
|
|
106
|
+
readonly operation: {
|
|
107
|
+
readonly required: boolean;
|
|
108
|
+
readonly unknownAsPositional: boolean;
|
|
109
|
+
readonly operations: readonly {
|
|
110
|
+
readonly id: string;
|
|
111
|
+
readonly aliases: readonly string[];
|
|
112
|
+
}[];
|
|
113
|
+
};
|
|
114
|
+
readonly options: readonly InvocationOptionSchemaV1[];
|
|
115
|
+
readonly positionals: readonly InvocationPositionalSchemaV1[];
|
|
116
|
+
readonly terminator: true;
|
|
117
|
+
}
|
|
118
|
+
export declare const INVOCATION_SCHEMA_CHECKSUM: "667c67ed7a55553d74eab12ec46c2e0f12b0529ad01303d4ca9cae14d49270bd";
|
|
119
|
+
export interface InvocationSchemaManifestV1 {
|
|
120
|
+
readonly schemaVersion: typeof INVOCATION_SCHEMA_VERSION;
|
|
121
|
+
readonly registryVersion: string;
|
|
122
|
+
readonly registryChecksum: string;
|
|
123
|
+
readonly schemaChecksum: string;
|
|
124
|
+
readonly commandCount: number;
|
|
125
|
+
readonly optionCount: number;
|
|
126
|
+
readonly positionalCount: number;
|
|
127
|
+
readonly operationCount: number;
|
|
128
|
+
readonly projectionSha256: string;
|
|
129
|
+
readonly commands: readonly InvocationCommandSchemaV1[];
|
|
130
|
+
}
|
|
131
|
+
export declare const INVOCATION_SCHEMA_MANIFEST: InvocationSchemaManifestV1;
|
|
132
|
+
export declare function assertInvocationSchemaAdmission(value: unknown): asserts value is InvocationSchemaManifestV1;
|
|
133
|
+
type LexResult = {
|
|
134
|
+
readonly ok: true;
|
|
135
|
+
readonly tokens: readonly InvocationToken[];
|
|
136
|
+
} | {
|
|
137
|
+
readonly ok: false;
|
|
138
|
+
readonly reason: InvocationAdmissionReason;
|
|
139
|
+
readonly tokenCount: number;
|
|
140
|
+
};
|
|
141
|
+
export declare function lexInvocationEnvelope(input: string): LexResult;
|
|
142
|
+
export declare function admitInvocation(input: string, options?: InvocationAdmissionOptions): InvocationAdmissionResultV1;
|
|
143
|
+
export interface InvocationAdmissionReceiptV1 {
|
|
144
|
+
readonly schemaVersion: 1;
|
|
145
|
+
readonly policy: typeof EXACT_INVOCATION_POLICY;
|
|
146
|
+
readonly registryVersion: string;
|
|
147
|
+
readonly registryChecksumPrefix: string;
|
|
148
|
+
readonly schemaChecksumPrefix: string;
|
|
149
|
+
readonly outcome: InvocationAdmissionOutcome;
|
|
150
|
+
readonly reason: InvocationAdmissionReason;
|
|
151
|
+
readonly commandId?: string;
|
|
152
|
+
readonly operationId?: string;
|
|
153
|
+
readonly candidates: readonly string[];
|
|
154
|
+
readonly tokenCount: number;
|
|
155
|
+
readonly inputBytesBucket: string;
|
|
156
|
+
readonly fingerprintPrefix?: string;
|
|
157
|
+
readonly driver: 'shared' | 'client' | 'graph' | 'server' | 'route' | 'native' | 'inline' | 'headless' | 'runner';
|
|
158
|
+
readonly mutationAttempts: number;
|
|
159
|
+
readonly publicSafe: true;
|
|
160
|
+
}
|
|
161
|
+
export declare function createInvocationAdmissionReceipt(result: InvocationAdmissionResultV1, driver: InvocationAdmissionReceiptV1['driver']): InvocationAdmissionReceiptV1;
|
|
162
|
+
export declare function serializeInvocationAdmission(result: InvocationAdmissionResultV1): string;
|
|
163
|
+
export declare function strictRollbackAdmitInvocation(input: string): InvocationAdmissionResultV1;
|
|
164
|
+
export interface InvocationDeprecationCountV1 {
|
|
165
|
+
readonly schemaVersion: 1;
|
|
166
|
+
readonly policy: typeof EXACT_INVOCATION_POLICY;
|
|
167
|
+
readonly outcome: Exclude<InvocationAdmissionOutcome, 'resolved'>;
|
|
168
|
+
readonly reason: InvocationAdmissionReason;
|
|
169
|
+
readonly count: 1;
|
|
170
|
+
readonly expiresAfter: 'p205-exact-invocation-v1-rollout';
|
|
171
|
+
readonly publicSafe: true;
|
|
172
|
+
}
|
|
173
|
+
/** Count-only migration telemetry; raw input is intentionally not accepted. */
|
|
174
|
+
export declare function createInvocationDeprecationCount(result: RejectedInvocationAdmissionV1): InvocationDeprecationCountV1;
|
|
175
|
+
export {};
|