@ornexus/neocortex 4.66.51 → 4.66.53
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 +1191 -1191
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +2 -2
- package/packages/client/dist/commands/invoke.js +78 -78
- package/packages/client/dist/private-execution/isolated-workspace.d.ts +5 -0
- package/packages/client/dist/private-execution/isolated-workspace.js +1 -1
- package/packages/shared/dist/invocation/index.d.ts +1 -0
- package/packages/shared/dist/invocation/index.js +1 -0
- package/packages/shared/dist/invocation/invoke-validation-failure.d.ts +31 -0
- package/packages/shared/dist/invocation/invoke-validation-failure.js +48 -0
- package/packages/shared/dist/invocation/semantic-gate-remediation.d.ts +56 -0
- package/packages/shared/dist/invocation/semantic-gate-remediation.js +62 -0
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/neocortex.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/codex/neocortex.toml +1 -1
- package/targets-stubs/cursor/agent.md +2 -2
- package/targets-stubs/deepseek-harness/SKILL.md +1 -1
- 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 +1 -1
- package/targets-stubs/kimi/neocortex.md +1 -1
- package/targets-stubs/openclaw/SKILL.md +1 -1
- package/targets-stubs/opencode/neocortex-root.md +2 -2
- package/targets-stubs/opencode/neocortex.md +2 -2
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
- package/dist/release-source.json +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Stats } from 'node:fs';
|
|
2
|
+
import { type PrivateExecutionWorkspaceGateReason } from '../../../shared/dist/invocation/index.js';
|
|
2
3
|
export interface PrivateYoloIsolatedWorkspaceV1 {
|
|
3
4
|
readonly schemaVersion: 1;
|
|
4
5
|
readonly sourceRoot: string;
|
|
@@ -16,6 +17,10 @@ export interface PrivateIsolatedWorkspaceOptionsV1 {
|
|
|
16
17
|
readonly platform?: string;
|
|
17
18
|
readonly userProfileRoot?: string;
|
|
18
19
|
}
|
|
20
|
+
export declare class PrivateIsolatedWorkspaceError extends Error {
|
|
21
|
+
readonly reasonCode: PrivateExecutionWorkspaceGateReason;
|
|
22
|
+
constructor(reasonCode: PrivateExecutionWorkspaceGateReason);
|
|
23
|
+
}
|
|
19
24
|
/**
|
|
20
25
|
* P230.08: admission-side view of the same platform rule. A prepared workspace
|
|
21
26
|
* is only re-inspected on linux/darwin (POSIX, getuid required) or win32.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{execFileSync as
|
|
1
|
+
import{execFileSync as A}from"node:child_process";import{createHash as g}from"node:crypto";import{chmodSync as L,existsSync as O,lstatSync as f,mkdtempSync as b,readFileSync as G,realpathSync as N}from"node:fs";import{homedir as H}from"node:os";import{isAbsolute as h,join as m,relative as j,resolve as E}from"node:path";import{PRIVATE_EXECUTION_WORKSPACE_GATE as W}from"../../../shared/dist/invocation/index.js";import{withoutVerifiedProjectIdentityStatus as B}from"../migrations/project-identity.js";const P=".neocortex/pending-epic-claims.json",q=["/var","/tmp","/etc"],z=128*1024;class w extends Error{reasonCode;constructor(t){super(W),this.reasonCode=t,this.name="PrivateIsolatedWorkspaceError"}}function i(){throw new Error("path-invalid")}function F(e){return q.some(t=>e===t||e.startsWith(`${t}/`))?`/private${e}`:e}function y(e,t){const r=N(e);return r===e||t==="darwin"&&r===F(e)||t==="win32"&&r.toLowerCase()===e.toLowerCase()?r:i()}function M(e){const t=e.platform??process.platform;if(t==="linux"||t==="darwin")return typeof process.getuid!="function"&&i(),{platform:t};if(t==="win32"){const r=e.userProfileRoot??H();(typeof r!="string"||!h(r))&&i();const o=y(E(r),t);return f(o).isDirectory()||i(),{platform:t,profileRoot:o}}return i()}function S(e,t,r){return t.platform==="win32"?!0:e.uid===process.getuid?.()&&(e.mode&r)===0}function V(e,t){if(t.platform!=="win32")return!0;const r=j(t.profileRoot.toLowerCase(),e.toLowerCase());return r!==""&&!r.startsWith("..")&&!h(r)}function $(e,t){const r=f(e);(!r.isDirectory()||r.isSymbolicLink())&&i();const o=y(e,t.platform);return(!S(f(o),t,18)||!V(o,t))&&i(),o}function k(e){return e==="linux"||e==="darwin"||e==="win32"}function R(e=process.platform){return k(e)?e==="win32"||typeof process.getuid=="function":!1}function te(e,t=process.platform){return R(t)?t==="win32"||(e.mode&63)===0:!1}function re(e,t=process.platform){return!R(t)||!k(t)?!1:C(e,{platform:t})}function C(e,t){try{const r=f(m(e,".neocortex")),o=f(m(e,P));return r.isDirectory()&&!r.isSymbolicLink()&&S(r,t,18)&&o.isFile()&&!o.isSymbolicLink()&&S(o,t,63)&&o.size>0&&o.size<=z}catch{return!1}}function d(e,t){const r={...process.env,GIT_OPTIONAL_LOCKS:"0"};for(const o of["GIT_DIR","GIT_WORK_TREE","GIT_INDEX_FILE","GIT_OBJECT_DIRECTORY","GIT_ALTERNATE_OBJECT_DIRECTORIES","GIT_COMMON_DIR","GIT_NAMESPACE","GIT_CEILING_DIRECTORIES"])delete r[o];return A("git",[...t],{cwd:e,env:r,stdio:["ignore","pipe","pipe"],timeout:3e4,maxBuffer:16*1024*1024})}function u(e,t){return d(e,t).toString("utf8").trim()}function D(e,t,r,o,n){const s=d(e,["status","--porcelain=v1","-z","--untracked-files=all"]).toString("utf8").split("\0").filter(Boolean);if(u(e,["rev-parse","HEAD"])!==t||u(e,["symbolic-ref","--quiet","--short","HEAD"])!==r)throw new w("private-execution-workspace-source-changed");if(n&&!C(e,o))throw new w("private-execution-workspace-pending-claim-unverified");const p=n?B(e,s):s;if(p.length>0&&!(n&&p.length===1&&p[0]===`?? ${P}`))throw new w("private-execution-workspace-source-dirty")}function I(e){const t=m(e,".neocortex","state.json"),r=f(t);if(!r.isFile()||r.isSymbolicLink())throw new Error("state-invalid");return g("sha256").update(G(t)).digest("hex")}function oe(e){try{const t=u(e,["rev-parse","--verify","HEAD"]);if(!/^[a-f0-9]{40,64}$/.test(t))throw new Error("head-invalid");return Object.freeze({headSha:t,stateSha256:I(e)})}catch{throw new Error("private-execution-project-snapshot-unverified")}}function ie(e,t){try{if(e.baseSha!==t.headSha||u(e.sourceRoot,["rev-parse","--verify","HEAD"])!==t.headSha||I(e.sourceRoot)!==t.stateSha256||I(e.workspacePath)!==t.stateSha256)throw new Error("snapshot-mismatch")}catch{throw new Error("private-execution-project-snapshot-unverified")}}function ne(e,t,r=!1,o={}){let n="private-execution-workspace-platform-unverified";try{const s=M(o);n="private-execution-workspace-source-root-unverified",h(e)||i();const p=E(e);f(p).isDirectory()||i();const c=y(p,s.platform);n="private-execution-workspace-parent-unverified",h(t)||i();const T=$(E(t),s);n="private-execution-workspace-source-root-unverified";const x=u(c,["rev-parse","--show-toplevel"]);h(x)||i();const _=y(E(x),s.platform);(s.platform==="win32"?_.toLowerCase()===c.toLowerCase():_===c)||i(),n="private-execution-workspace-head-unavailable";const l=u(c,["rev-parse","--verify","HEAD"]);/^[a-f0-9]{40,64}$/.test(l)||i(),n="private-execution-workspace-branch-unverified";const v=u(c,["symbolic-ref","--quiet","--short","HEAD"]);v||i(),n="private-execution-workspace-source-status-unverified",D(c,l,v,s,r),n="private-execution-workspace-checkout-unverified";const a=b(m(T,"p222-private-yolo-"));return s.platform!=="win32"&&(L(a,448),(f(a).mode&511)!==448&&i()),d(a,["init","-q"]),d(a,["fetch","-q","--no-tags","--depth=1",c,l]),d(a,["checkout","-q","-b",v,"FETCH_HEAD"]),n="private-execution-workspace-source-status-unverified",D(c,l,v,s,r),n="private-execution-workspace-checkout-unverified",(u(a,["rev-parse","HEAD"])!==l||u(a,["symbolic-ref","--quiet","--short","HEAD"])!==v||d(a,["status","--porcelain=v1","-z","--untracked-files=all"]).byteLength!==0||O(m(a,".git","objects","info","alternates")))&&i(),Object.freeze({schemaVersion:1,sourceRoot:c,workspacePath:a,baseSha:l,executionBranch:v})}catch(s){throw s instanceof w?s:new w(n)}}export{P as PRIVATE_EPIC_PENDING_SIDECAR,w as PrivateIsolatedWorkspaceError,ie as assertPrivateProjectStepBaseline,oe as capturePrivateProjectStepBaseline,R as isPrivateIsolatedWorkspacePlatform,ne as preparePrivateYoloIsolatedWorkspace,te as privateIsolatedWorkspaceModeVerified,re as privatePendingEpicSidecarVerified};
|
|
@@ -9,6 +9,7 @@ export * from './executable-policy-recovery.js';
|
|
|
9
9
|
export * from './explicit-intent-recovery.js';
|
|
10
10
|
export * from './diagnose-degraded-continuation.js';
|
|
11
11
|
export * from './semantic-gate-remediation.js';
|
|
12
|
+
export * from './invoke-validation-failure.js';
|
|
12
13
|
export declare const EXACT_INVOCATION_POLICY: "p205-exact-invocation-v1";
|
|
13
14
|
export declare const INVOCATION_SCHEMA_VERSION: "p205-invocation-schema-v1";
|
|
14
15
|
export declare const INVOCATION_LIMITS: Readonly<{
|
|
@@ -21,6 +21,7 @@ export * from './executable-policy-recovery.js';
|
|
|
21
21
|
export * from './explicit-intent-recovery.js';
|
|
22
22
|
export * from './diagnose-degraded-continuation.js';
|
|
23
23
|
export * from './semantic-gate-remediation.js';
|
|
24
|
+
export * from './invoke-validation-failure.js';
|
|
24
25
|
export const EXACT_INVOCATION_POLICY = 'p205-exact-invocation-v1';
|
|
25
26
|
export const INVOCATION_SCHEMA_VERSION = 'p205-invocation-schema-v1';
|
|
26
27
|
export const INVOCATION_LIMITS = Object.freeze({
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const INVOKE_VALIDATION_FIELDS: readonly ["request", "args", "argsRef", "inputEvidence", "projectRoot", "projectId", "projectIdentityMigration", "projectManifestProjection", "stateSnapshot", "stateSnapshot.config", "stateSnapshot.config.project_name", "stateSnapshot.config.default_branch", "stateSnapshot.config.language", "stateSnapshot.epics", "stateSnapshot.stories", "registryVersion", "registryChecksum", "compatibility", "privateExecution", "privateExecution.hostKind", "privateExecution.hostVersion", "privateExecution.sandboxProof", "privateExecution.executorProof", "leaseId", "claimId", "commandId", "stepId", "authorityKind", "generationId", "inputSha256", "hostKind", "hostVersion"];
|
|
2
|
+
export type InvokeValidationField = typeof INVOKE_VALIDATION_FIELDS[number];
|
|
3
|
+
export declare const INVOKE_VALIDATION_STAGES: readonly ["invoke", "private-consume", "private-cancel", "invoke-other"];
|
|
4
|
+
export type InvokeValidationStage = typeof INVOKE_VALIDATION_STAGES[number];
|
|
5
|
+
declare const VALIDATION_GUIDANCE: {
|
|
6
|
+
readonly 'invoke-request-field-required': "The client omitted a required request field.";
|
|
7
|
+
readonly 'invoke-request-field-unsupported': "The request contains a field outside the supported envelope.";
|
|
8
|
+
readonly 'invoke-request-schema-invalid': "The request field does not match the server schema.";
|
|
9
|
+
readonly 'invoke-project-manifest-projection-invalid': "The project manifest projection failed verification.";
|
|
10
|
+
};
|
|
11
|
+
export type InvokeValidationReason = keyof typeof VALIDATION_GUIDANCE;
|
|
12
|
+
export declare function buildInvokeValidationFailure(reason: InvokeValidationReason, stage: InvokeValidationStage, field: InvokeValidationField): {
|
|
13
|
+
error_code: string;
|
|
14
|
+
reason_code: "invoke-request-field-required" | "invoke-request-field-unsupported" | "invoke-request-schema-invalid" | "invoke-project-manifest-projection-invalid";
|
|
15
|
+
validation_stage: "invoke" | "private-consume" | "private-cancel" | "invoke-other";
|
|
16
|
+
validation_field: "registryVersion" | "compatibility" | "stepId" | "commandId" | "leaseId" | "hostKind" | "hostVersion" | "projectId" | "inputSha256" | "registryChecksum" | "args" | "generationId" | "request" | "argsRef" | "inputEvidence" | "projectRoot" | "projectIdentityMigration" | "projectManifestProjection" | "stateSnapshot" | "stateSnapshot.config" | "stateSnapshot.config.project_name" | "stateSnapshot.config.default_branch" | "stateSnapshot.config.language" | "stateSnapshot.epics" | "stateSnapshot.stories" | "privateExecution" | "privateExecution.hostKind" | "privateExecution.hostVersion" | "privateExecution.sandboxProof" | "privateExecution.executorProof" | "claimId" | "authorityKind";
|
|
17
|
+
fallback_action: string;
|
|
18
|
+
message: string;
|
|
19
|
+
semanticGateRemediation: import("./semantic-gate-remediation.js").SemanticGateRemediationV1;
|
|
20
|
+
};
|
|
21
|
+
/** Reconstruct the public message from fixed values. Never preserve reflected details. */
|
|
22
|
+
export declare function projectInvokeValidationFailure(input: unknown): {
|
|
23
|
+
error_code: string;
|
|
24
|
+
reason_code: "invoke-request-field-required" | "invoke-request-field-unsupported" | "invoke-request-schema-invalid" | "invoke-project-manifest-projection-invalid";
|
|
25
|
+
validation_stage: "invoke" | "private-consume" | "private-cancel" | "invoke-other";
|
|
26
|
+
validation_field: "registryVersion" | "compatibility" | "stepId" | "commandId" | "leaseId" | "hostKind" | "hostVersion" | "projectId" | "inputSha256" | "registryChecksum" | "args" | "generationId" | "request" | "argsRef" | "inputEvidence" | "projectRoot" | "projectIdentityMigration" | "projectManifestProjection" | "stateSnapshot" | "stateSnapshot.config" | "stateSnapshot.config.project_name" | "stateSnapshot.config.default_branch" | "stateSnapshot.config.language" | "stateSnapshot.epics" | "stateSnapshot.stories" | "privateExecution" | "privateExecution.hostKind" | "privateExecution.hostVersion" | "privateExecution.sandboxProof" | "privateExecution.executorProof" | "claimId" | "authorityKind";
|
|
27
|
+
fallback_action: string;
|
|
28
|
+
message: string;
|
|
29
|
+
semanticGateRemediation: import("./semantic-gate-remediation.js").SemanticGateRemediationV1;
|
|
30
|
+
} | undefined;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { buildSemanticGateRemediation } from './semantic-gate-remediation.js';
|
|
2
|
+
export const INVOKE_VALIDATION_FIELDS = [
|
|
3
|
+
'request',
|
|
4
|
+
'args', 'argsRef', 'inputEvidence',
|
|
5
|
+
'projectRoot', 'projectId', 'projectIdentityMigration',
|
|
6
|
+
'projectManifestProjection',
|
|
7
|
+
'stateSnapshot', 'stateSnapshot.config',
|
|
8
|
+
'stateSnapshot.config.project_name', 'stateSnapshot.config.default_branch', 'stateSnapshot.config.language',
|
|
9
|
+
'stateSnapshot.epics', 'stateSnapshot.stories',
|
|
10
|
+
'registryVersion', 'registryChecksum', 'compatibility',
|
|
11
|
+
'privateExecution', 'privateExecution.hostKind', 'privateExecution.hostVersion',
|
|
12
|
+
'privateExecution.sandboxProof', 'privateExecution.executorProof',
|
|
13
|
+
'leaseId', 'claimId', 'commandId', 'stepId', 'authorityKind', 'generationId',
|
|
14
|
+
'inputSha256', 'hostKind', 'hostVersion',
|
|
15
|
+
];
|
|
16
|
+
export const INVOKE_VALIDATION_STAGES = ['invoke', 'private-consume', 'private-cancel', 'invoke-other'];
|
|
17
|
+
const VALIDATION_GUIDANCE = {
|
|
18
|
+
'invoke-request-field-required': 'The client omitted a required request field.',
|
|
19
|
+
'invoke-request-field-unsupported': 'The request contains a field outside the supported envelope.',
|
|
20
|
+
'invoke-request-schema-invalid': 'The request field does not match the server schema.',
|
|
21
|
+
'invoke-project-manifest-projection-invalid': 'The project manifest projection failed verification.',
|
|
22
|
+
};
|
|
23
|
+
export function buildInvokeValidationFailure(reason, stage, field) {
|
|
24
|
+
return {
|
|
25
|
+
error_code: 'VALIDATION_ERROR',
|
|
26
|
+
reason_code: reason,
|
|
27
|
+
validation_stage: stage,
|
|
28
|
+
validation_field: field,
|
|
29
|
+
fallback_action: 'report-and-stop',
|
|
30
|
+
message: `${VALIDATION_GUIDANCE[reason]} Check the official client projection for ${field} before resuming the original invocation.`,
|
|
31
|
+
semanticGateRemediation: buildSemanticGateRemediation({
|
|
32
|
+
templateId: 'gate-manual-resolution-v1',
|
|
33
|
+
reasonCode: 'VALIDATION_ERROR',
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Reconstruct the public message from fixed values. Never preserve reflected details. */
|
|
38
|
+
export function projectInvokeValidationFailure(input) {
|
|
39
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input))
|
|
40
|
+
return undefined;
|
|
41
|
+
const { error_code, reason_code, validation_stage, validation_field, fallback_action, } = input;
|
|
42
|
+
if (error_code !== 'VALIDATION_ERROR' || fallback_action !== 'report-and-stop'
|
|
43
|
+
|| typeof reason_code !== 'string' || !Object.hasOwn(VALIDATION_GUIDANCE, reason_code)
|
|
44
|
+
|| !INVOKE_VALIDATION_STAGES.includes(validation_stage)
|
|
45
|
+
|| !INVOKE_VALIDATION_FIELDS.includes(validation_field))
|
|
46
|
+
return undefined;
|
|
47
|
+
return buildInvokeValidationFailure(reason_code, validation_stage, validation_field);
|
|
48
|
+
}
|
|
@@ -43,6 +43,62 @@ export declare function projectPrivateExecutionHostFailure(input: unknown): {
|
|
|
43
43
|
fallback_action: "verify-private-execution-license" | "contact-server-operator" | "use-matching-private-execution-host" | "verify-private-execution-host-version" | "review-invocation-mode" | "verify-private-execution-preflight" | "refresh-private-execution-preflight";
|
|
44
44
|
message: "Use a license entitled to private execution for this command. Reuse the original invocation after activation." | "The server has private execution disabled. Contact the server operator before reusing the original invocation." | "Run the original invocation from a supported host that matches the client platform." | "Verify that the supported local host reports a valid version, then reuse the original invocation." | "Private execution is unavailable in read-only mode. Review the requested command and its effect authorization." | "Check the supported host and its local execution prerequisites before reusing the original invocation." | "The local execution proof expired. Reuse the original invocation so the client obtains a fresh proof.";
|
|
45
45
|
} | undefined;
|
|
46
|
+
export declare const PRIVATE_EXECUTION_WORKSPACE_GATE = "private-execution-isolated-workspace-unverified";
|
|
47
|
+
declare const PRIVATE_EXECUTION_WORKSPACE_GUIDANCE: {
|
|
48
|
+
readonly 'private-execution-workspace-platform-unverified': {
|
|
49
|
+
readonly action: "verify-workspace-platform";
|
|
50
|
+
readonly message: "Use a supported host that can verify the local workspace permissions.";
|
|
51
|
+
};
|
|
52
|
+
readonly 'private-execution-workspace-source-root-unverified': {
|
|
53
|
+
readonly action: "verify-project-root";
|
|
54
|
+
readonly message: "Open the canonical Git project root directly and verify that the client can read it.";
|
|
55
|
+
};
|
|
56
|
+
readonly 'private-execution-workspace-parent-unverified': {
|
|
57
|
+
readonly action: "verify-private-workspace-parent";
|
|
58
|
+
readonly message: "Inspect the private workspace directory on this host and restore a supported owner-private location.";
|
|
59
|
+
};
|
|
60
|
+
readonly 'private-execution-workspace-head-unavailable': {
|
|
61
|
+
readonly action: "verify-committed-project-baseline";
|
|
62
|
+
readonly message: "Verify that the repository has a committed baseline on the intended branch before continuing the original request.";
|
|
63
|
+
};
|
|
64
|
+
readonly 'private-execution-workspace-branch-unverified': {
|
|
65
|
+
readonly action: "verify-attached-project-branch";
|
|
66
|
+
readonly message: "Use the intended project branch with an attached HEAD before continuing the original request.";
|
|
67
|
+
};
|
|
68
|
+
readonly 'private-execution-workspace-source-status-unverified': {
|
|
69
|
+
readonly action: "verify-project-git-status";
|
|
70
|
+
readonly message: "Inspect the local Git status and repository access before continuing the original request.";
|
|
71
|
+
};
|
|
72
|
+
readonly 'private-execution-workspace-source-dirty': {
|
|
73
|
+
readonly action: "review-uncommitted-project-changes";
|
|
74
|
+
readonly message: "Review uncommitted project changes and establish a clean baseline while preserving the existing epic reservation.";
|
|
75
|
+
};
|
|
76
|
+
readonly 'private-execution-workspace-pending-claim-unverified': {
|
|
77
|
+
readonly action: "verify-local-pending-claim";
|
|
78
|
+
readonly message: "Inspect the ownership, permissions and file type of the existing pending claim without changing its identity.";
|
|
79
|
+
};
|
|
80
|
+
readonly 'private-execution-workspace-source-changed': {
|
|
81
|
+
readonly action: "revalidate-project-baseline";
|
|
82
|
+
readonly message: "The source changed during preparation. Confirm the intended branch and committed baseline before continuing.";
|
|
83
|
+
};
|
|
84
|
+
readonly 'private-execution-workspace-checkout-unverified': {
|
|
85
|
+
readonly action: "verify-isolated-checkout-creation";
|
|
86
|
+
readonly message: "Inspect local Git access and workspace storage. The isolated checkout could not be prepared or confirmed.";
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export type PrivateExecutionWorkspaceGateReason = keyof typeof PRIVATE_EXECUTION_WORKSPACE_GUIDANCE;
|
|
90
|
+
export declare function buildPrivateExecutionWorkspaceFailure(reason: PrivateExecutionWorkspaceGateReason): {
|
|
91
|
+
error_code: string;
|
|
92
|
+
reason_code: "private-execution-workspace-platform-unverified" | "private-execution-workspace-source-root-unverified" | "private-execution-workspace-parent-unverified" | "private-execution-workspace-head-unavailable" | "private-execution-workspace-branch-unverified" | "private-execution-workspace-source-status-unverified" | "private-execution-workspace-source-dirty" | "private-execution-workspace-pending-claim-unverified" | "private-execution-workspace-source-changed" | "private-execution-workspace-checkout-unverified";
|
|
93
|
+
fallback_action: "verify-workspace-platform" | "verify-project-root" | "verify-private-workspace-parent" | "verify-committed-project-baseline" | "verify-attached-project-branch" | "verify-project-git-status" | "review-uncommitted-project-changes" | "verify-local-pending-claim" | "revalidate-project-baseline" | "verify-isolated-checkout-creation";
|
|
94
|
+
message: "Use a supported host that can verify the local workspace permissions." | "Open the canonical Git project root directly and verify that the client can read it." | "Inspect the private workspace directory on this host and restore a supported owner-private location." | "Verify that the repository has a committed baseline on the intended branch before continuing the original request." | "Use the intended project branch with an attached HEAD before continuing the original request." | "Inspect the local Git status and repository access before continuing the original request." | "Review uncommitted project changes and establish a clean baseline while preserving the existing epic reservation." | "Inspect the ownership, permissions and file type of the existing pending claim without changing its identity." | "The source changed during preparation. Confirm the intended branch and committed baseline before continuing." | "Inspect local Git access and workspace storage. The isolated checkout could not be prepared or confirmed.";
|
|
95
|
+
};
|
|
96
|
+
export declare function projectPrivateExecutionWorkspaceFailure(input: unknown): {
|
|
97
|
+
error_code: string;
|
|
98
|
+
reason_code: "private-execution-workspace-platform-unverified" | "private-execution-workspace-source-root-unverified" | "private-execution-workspace-parent-unverified" | "private-execution-workspace-head-unavailable" | "private-execution-workspace-branch-unverified" | "private-execution-workspace-source-status-unverified" | "private-execution-workspace-source-dirty" | "private-execution-workspace-pending-claim-unverified" | "private-execution-workspace-source-changed" | "private-execution-workspace-checkout-unverified";
|
|
99
|
+
fallback_action: "verify-workspace-platform" | "verify-project-root" | "verify-private-workspace-parent" | "verify-committed-project-baseline" | "verify-attached-project-branch" | "verify-project-git-status" | "review-uncommitted-project-changes" | "verify-local-pending-claim" | "revalidate-project-baseline" | "verify-isolated-checkout-creation";
|
|
100
|
+
message: "Use a supported host that can verify the local workspace permissions." | "Open the canonical Git project root directly and verify that the client can read it." | "Inspect the private workspace directory on this host and restore a supported owner-private location." | "Verify that the repository has a committed baseline on the intended branch before continuing the original request." | "Use the intended project branch with an attached HEAD before continuing the original request." | "Inspect the local Git status and repository access before continuing the original request." | "Review uncommitted project changes and establish a clean baseline while preserving the existing epic reservation." | "Inspect the ownership, permissions and file type of the existing pending claim without changing its identity." | "The source changed during preparation. Confirm the intended branch and committed baseline before continuing." | "Inspect local Git access and workspace storage. The isolated checkout could not be prepared or confirmed.";
|
|
101
|
+
} | undefined;
|
|
46
102
|
export declare const SEMANTIC_GATE_TEMPLATE_IDS: readonly ["gate-evidence-recollection-v1", "gate-deterministic-reconciliation-v1", "gate-single-resubmission-v1", "gate-manual-resolution-v1"];
|
|
47
103
|
export type SemanticGateTemplateId = typeof SEMANTIC_GATE_TEMPLATE_IDS[number];
|
|
48
104
|
export type SemanticGateRepairKind = 'recollect-authorized-evidence' | 'reconcile-deterministic-state' | 'resubmit-bound-request' | 'manual-resolution';
|
|
@@ -52,6 +52,68 @@ export function projectPrivateExecutionHostFailure(input) {
|
|
|
52
52
|
const guidance = buildPrivateExecutionHostFailure(reason_code);
|
|
53
53
|
return fallback_action === guidance.fallback_action ? guidance : undefined;
|
|
54
54
|
}
|
|
55
|
+
export const PRIVATE_EXECUTION_WORKSPACE_GATE = 'private-execution-isolated-workspace-unverified';
|
|
56
|
+
const PRIVATE_EXECUTION_WORKSPACE_GUIDANCE = {
|
|
57
|
+
'private-execution-workspace-platform-unverified': {
|
|
58
|
+
action: 'verify-workspace-platform',
|
|
59
|
+
message: 'Use a supported host that can verify the local workspace permissions.',
|
|
60
|
+
},
|
|
61
|
+
'private-execution-workspace-source-root-unverified': {
|
|
62
|
+
action: 'verify-project-root',
|
|
63
|
+
message: 'Open the canonical Git project root directly and verify that the client can read it.',
|
|
64
|
+
},
|
|
65
|
+
'private-execution-workspace-parent-unverified': {
|
|
66
|
+
action: 'verify-private-workspace-parent',
|
|
67
|
+
message: 'Inspect the private workspace directory on this host and restore a supported owner-private location.',
|
|
68
|
+
},
|
|
69
|
+
'private-execution-workspace-head-unavailable': {
|
|
70
|
+
action: 'verify-committed-project-baseline',
|
|
71
|
+
message: 'Verify that the repository has a committed baseline on the intended branch before continuing the original request.',
|
|
72
|
+
},
|
|
73
|
+
'private-execution-workspace-branch-unverified': {
|
|
74
|
+
action: 'verify-attached-project-branch',
|
|
75
|
+
message: 'Use the intended project branch with an attached HEAD before continuing the original request.',
|
|
76
|
+
},
|
|
77
|
+
'private-execution-workspace-source-status-unverified': {
|
|
78
|
+
action: 'verify-project-git-status',
|
|
79
|
+
message: 'Inspect the local Git status and repository access before continuing the original request.',
|
|
80
|
+
},
|
|
81
|
+
'private-execution-workspace-source-dirty': {
|
|
82
|
+
action: 'review-uncommitted-project-changes',
|
|
83
|
+
message: 'Review uncommitted project changes and establish a clean baseline while preserving the existing epic reservation.',
|
|
84
|
+
},
|
|
85
|
+
'private-execution-workspace-pending-claim-unverified': {
|
|
86
|
+
action: 'verify-local-pending-claim',
|
|
87
|
+
message: 'Inspect the ownership, permissions and file type of the existing pending claim without changing its identity.',
|
|
88
|
+
},
|
|
89
|
+
'private-execution-workspace-source-changed': {
|
|
90
|
+
action: 'revalidate-project-baseline',
|
|
91
|
+
message: 'The source changed during preparation. Confirm the intended branch and committed baseline before continuing.',
|
|
92
|
+
},
|
|
93
|
+
'private-execution-workspace-checkout-unverified': {
|
|
94
|
+
action: 'verify-isolated-checkout-creation',
|
|
95
|
+
message: 'Inspect local Git access and workspace storage. The isolated checkout could not be prepared or confirmed.',
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
export function buildPrivateExecutionWorkspaceFailure(reason) {
|
|
99
|
+
const guidance = PRIVATE_EXECUTION_WORKSPACE_GUIDANCE[reason];
|
|
100
|
+
return {
|
|
101
|
+
error_code: PRIVATE_EXECUTION_WORKSPACE_GATE,
|
|
102
|
+
reason_code: reason,
|
|
103
|
+
fallback_action: guidance.action,
|
|
104
|
+
message: guidance.message,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export function projectPrivateExecutionWorkspaceFailure(input) {
|
|
108
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input))
|
|
109
|
+
return undefined;
|
|
110
|
+
const { error_code, reason_code, fallback_action } = input;
|
|
111
|
+
if (error_code !== PRIVATE_EXECUTION_WORKSPACE_GATE || typeof reason_code !== 'string'
|
|
112
|
+
|| !Object.hasOwn(PRIVATE_EXECUTION_WORKSPACE_GUIDANCE, reason_code))
|
|
113
|
+
return undefined;
|
|
114
|
+
const guidance = buildPrivateExecutionWorkspaceFailure(reason_code);
|
|
115
|
+
return fallback_action === guidance.fallback_action ? guidance : undefined;
|
|
116
|
+
}
|
|
55
117
|
export const SEMANTIC_GATE_TEMPLATE_IDS = Object.freeze([
|
|
56
118
|
'gate-evidence-recollection-v1',
|
|
57
119
|
'gate-deterministic-reconciliation-v1',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team — Development orchestrator candidate (native-needs-validation)."
|
|
4
4
|
status: native-needs-validation
|
|
5
5
|
source: https://antigravity.google/docs/subagents
|
|
6
6
|
tools:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex Root Agent v4.66.
|
|
3
|
+
description: "🧠 Neocortex Root Agent v4.66.53 | OrNexus Team"
|
|
4
4
|
color: blue
|
|
5
5
|
tools:
|
|
6
6
|
# File operations
|
|
@@ -112,7 +112,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
112
112
|
┌────────────────────────────────────────────────────────────┐
|
|
113
113
|
│ │
|
|
114
114
|
│ ####### N E O C O R T E X │
|
|
115
|
-
│ ### ######## v4.66.
|
|
115
|
+
│ ### ######## v4.66.53 │
|
|
116
116
|
│ ######### ##### │
|
|
117
117
|
│ ## ############## Development Orchestrator │
|
|
118
118
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -101,7 +101,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
101
101
|
┌────────────────────────────────────────────────────────────┐
|
|
102
102
|
│ │
|
|
103
103
|
│ ####### N E O C O R T E X │
|
|
104
|
-
│ ### ######## v4.66.
|
|
104
|
+
│ ### ######## v4.66.53 │
|
|
105
105
|
│ ######### ##### │
|
|
106
106
|
│ ## ############## Development Orchestrator │
|
|
107
107
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team"
|
|
4
4
|
color: blue
|
|
5
5
|
permissionMode: bypassPermissions
|
|
6
6
|
tools:
|
|
@@ -112,7 +112,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
112
112
|
┌────────────────────────────────────────────────────────────┐
|
|
113
113
|
│ │
|
|
114
114
|
│ ####### N E O C O R T E X │
|
|
115
|
-
│ ### ######## v4.66.
|
|
115
|
+
│ ### ######## v4.66.53 │
|
|
116
116
|
│ ######### ##### │
|
|
117
117
|
│ ## ############## Development Orchestrator │
|
|
118
118
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -28,7 +28,7 @@ returned instructions.
|
|
|
28
28
|
|
|
29
29
|
<!-- END: Plugin Conflict Prevention -->
|
|
30
30
|
|
|
31
|
-
# Neocortex v4.66.
|
|
31
|
+
# Neocortex v4.66.53 | OrNexus Team
|
|
32
32
|
|
|
33
33
|
You are a Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
34
34
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Codex custom agent reference:
|
|
2
2
|
# https://developers.openai.com/codex/subagents
|
|
3
3
|
name = "neocortex"
|
|
4
|
-
description = "🧠 Neocortex v4.66.
|
|
4
|
+
description = "🧠 Neocortex v4.66.53 | OrNexus Team — Development orchestrator for direct @neocortex requests."
|
|
5
5
|
# [P201-EV-CODEX-GEMINI] Approval and sandbox keys are intentionally omitted.
|
|
6
6
|
# Codex reapplies the parent turn's live sandbox/approval settings, including
|
|
7
7
|
# --yolo, when spawning this profile. This profile must not claim child-only max.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team"
|
|
4
4
|
model: inherit
|
|
5
5
|
readonly: false
|
|
6
6
|
is_background: false
|
|
@@ -115,7 +115,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
115
115
|
┌────────────────────────────────────────────────────────────┐
|
|
116
116
|
│ │
|
|
117
117
|
│ ####### N E O C O R T E X │
|
|
118
|
-
│ ### ######## v4.66.
|
|
118
|
+
│ ### ######## v4.66.53 │
|
|
119
119
|
│ ######### ##### │
|
|
120
120
|
│ ## ############## Development Orchestrator │
|
|
121
121
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team — Route explicit Neocortex *commands through the public thin client in DeepSeek Harness."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
disable-model-invocation: false
|
|
6
6
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
# File operations (Gemini CLI built-ins)
|
|
@@ -73,7 +73,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
73
73
|
┌────────────────────────────────────────────────────────────┐
|
|
74
74
|
│ │
|
|
75
75
|
│ ####### N E O C O R T E X │
|
|
76
|
-
│ ### ######## v4.66.
|
|
76
|
+
│ ### ######## v4.66.53 │
|
|
77
77
|
│ ######### ##### │
|
|
78
78
|
│ ## ############## Development Orchestrator │
|
|
79
79
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
# File operations (Gemini CLI built-ins)
|
|
@@ -72,7 +72,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
72
72
|
┌────────────────────────────────────────────────────────────┐
|
|
73
73
|
│ │
|
|
74
74
|
│ ####### N E O C O R T E X │
|
|
75
|
-
│ ### ######## v4.66.
|
|
75
|
+
│ ### ######## v4.66.53 │
|
|
76
76
|
│ ######### ##### │
|
|
77
77
|
│ ## ############## Development Orchestrator │
|
|
78
78
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team — Run development orchestration commands through the public thin client."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Neocortex for Grok Build
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team — Development orchestrator candidate (native-needs-validation)."
|
|
4
4
|
status: native-needs-validation
|
|
5
5
|
source: https://www.kimi.com/code/docs/en/kimi-code-cli/customization/agents.html
|
|
6
6
|
model_preference: primary
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 | OrNexus Team — Run Neocortex commands through the public thin client in OpenClaw."
|
|
4
4
|
status: skill-fallback
|
|
5
5
|
user-invocable: true
|
|
6
6
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex Root Agent v4.66.
|
|
3
|
+
description: "🧠 Neocortex Root Agent v4.66.53 (Pro) | OrNexus Team — Development orchestrator for *yoloop."
|
|
4
4
|
mode: primary
|
|
5
5
|
color: "#00B4FF"
|
|
6
6
|
permission:
|
|
@@ -74,7 +74,7 @@ user's own `*yolo @docs/stories/<id>.story.md` is never refused.
|
|
|
74
74
|
┌────────────────────────────────────────────────────────────┐
|
|
75
75
|
│ │
|
|
76
76
|
│ ####### N E O C O R T E X │
|
|
77
|
-
│ ### ######## v4.66.
|
|
77
|
+
│ ### ######## v4.66.53 │
|
|
78
78
|
│ ######### ##### │
|
|
79
79
|
│ ## ############## Development Orchestrator │
|
|
80
80
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.53 (Pro) | OrNexus Team — Development orchestrator for *yoloop."
|
|
4
4
|
mode: primary
|
|
5
5
|
color: "#00B4FF"
|
|
6
6
|
permission:
|
|
@@ -73,7 +73,7 @@ user's own `*yolo @docs/stories/<id>.story.md` is never refused.
|
|
|
73
73
|
┌────────────────────────────────────────────────────────────┐
|
|
74
74
|
│ │
|
|
75
75
|
│ ####### N E O C O R T E X │
|
|
76
|
-
│ ### ######## v4.66.
|
|
76
|
+
│ ### ######## v4.66.53 │
|
|
77
77
|
│ ######### ##### │
|
|
78
78
|
│ ## ############## Development Orchestrator │
|
|
79
79
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "neocortex"
|
|
3
|
-
description: "Neocortex v4.66.
|
|
3
|
+
description: "Neocortex v4.66.53 | OrNexus Team"
|
|
4
4
|
tools:
|
|
5
5
|
# Read / Edit (built-in tool sets)
|
|
6
6
|
- read
|
|
@@ -82,7 +82,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
82
82
|
┌────────────────────────────────────────────────────────────┐
|
|
83
83
|
│ │
|
|
84
84
|
│ ####### N E O C O R T E X │
|
|
85
|
-
│ ### ######## v4.66.
|
|
85
|
+
│ ### ######## v4.66.53 │
|
|
86
86
|
│ ######### ##### │
|
|
87
87
|
│ ## ############## Development Orchestrator │
|
|
88
88
|
│ ## ### ###### ## OrNexus Team │
|
package/dist/release-source.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"schemaVersion":1,"sourceRevision":"9ab1f95d314353440838a4153bba6a205d9c0a81","version":"4.66.51"}
|