@ornexus/neocortex 4.66.10 → 4.66.12
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 +1194 -1194
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +2 -2
- package/packages/client/dist/adapters/platform-detector.js +1 -1
- package/packages/client/dist/cli.js +0 -0
- package/packages/client/dist/commands/invoke.d.ts +2 -0
- package/packages/client/dist/commands/invoke.js +80 -78
- package/packages/client/dist/errors/error-messages.js +2 -2
- package/packages/client/dist/errors/transport-failure.d.ts +5 -0
- package/packages/client/dist/errors/transport-failure.js +1 -0
- package/packages/client/dist/git/direct-yolo-c01-retry.js +4 -4
- package/packages/client/dist/git/direct-yolo-checkpoint.js +4 -4
- package/packages/client/dist/git/published-story-reconciliation.d.ts +15 -0
- package/packages/client/dist/git/published-story-reconciliation.js +4 -2
- package/packages/client/dist/git/worktree-checkout-boundary.d.ts +2 -0
- package/packages/client/dist/git/worktree-checkout-boundary.js +1 -0
- package/packages/client/dist/license/license-client.js +1 -1
- package/packages/client/dist/runner-cli.js +0 -0
- package/packages/client/dist/yoloop/yoloop-client-state-store.js +1 -1
- 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 +12 -7
- package/targets-stubs/codex/neocortex-sentinel.toml +5 -0
- package/targets-stubs/codex/neocortex.toml +5 -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/install.ps1
CHANGED
package/install.sh
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync as
|
|
1
|
+
import{existsSync as p,lstatSync as f}from"node:fs";import{homedir as O}from"node:os";import{dirname as E,isAbsolute as _,join as c,resolve as S}from"node:path";const C=/^[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$/;function h(e,l=v(e)){if(l.targetId!=="codex")return;const t=["CODEX_THREAD_ID","CODEX_SESSION_ID","CODEX_SANDBOX_NETWORK_DISABLED"].some(s=>e.env[s]!==void 0),d=t&&e.env.CODEX_REMOTE_PAYLOAD!==void 0,o=d?"codex-desktop":t?"codex-cli":"unknown",i=e.nativeHostVersion?.trim()??"",m=C.test(i)?i:null,n=!!e.targetFlag&&!t,u=e.env.CODEX_HOME&&_(e.env.CODEX_HOME)?e.env.CODEX_HOME:c(O(),".codex");let r=!1;if(t){const s=a=>{try{return f(a),!0}catch(I){return I.code!=="ENOENT"}},g="neocortex-sentinel.toml";r=!s(c(u,"agents",g));for(let a=S(e.cwd);r&&(s(c(a,".codex","agents",g))&&(r=!1),E(a)!==a);a=E(a));}return Object.freeze({schemaVersion:1,platformTarget:"codex",...r?{sentinelProfileMissing:!0}:{},hostKind:o,hostVersion:m,origin:n?"explicit-override":d?"host-observed":t?"environment":"unknown",confidence:n||o==="unknown"?"unknown":d?"observed":"inferred",publicSafe:!0})}const D=new Set(["claude-code","cursor","vscode","gemini","codex","opencode","github-copilot-cli","kimi","antigravity","openclaw","grok","deepseek","runner","unknown"]),k=Object.freeze({claude:"claude-code","claude-code":"claude-code",cursor:"cursor",vscode:"vscode","vscode-copilot":"vscode",gemini:"gemini","gemini-cli":"gemini",codex:"codex","codex-cli":"codex",opencode:"opencode","copilot-cli":"github-copilot-cli","github-copilot-cli":"github-copilot-cli",kimi:"kimi",antigravity:"antigravity",openclaw:"openclaw","open-claw":"openclaw",grok:"grok","grok-build":"grok",deepseek:"deepseek","deepseek-harness":"deepseek",deepseek_harness:"deepseek",dsh:"deepseek",runner:"runner",unknown:"unknown"});function b(e){return D.has(e)}function A(e){return k[e.trim().toLowerCase()]??null}const N=e=>p(e);function v(e,l=N){if(e.targetFlag){const n=A(e.targetFlag);return n?{targetId:n,confidence:1,reason:`Explicit --target=${n} flag`,reasonCode:"platform-target-explicit"}:{targetId:"unknown",confidence:0,reason:"Explicit platform target is not recognized",reasonCode:"platform-target-invalid-override"}}const t=n=>e.env[n]!==void 0,d=[],o=(n,u,r)=>{r.some(t)&&d.push({targetId:n,signal:u})};o("claude-code","Claude Code runtime",["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE","CLAUDE_AGENT"]),o("codex","Codex runtime",["CODEX_THREAD_ID","CODEX_SESSION_ID","CODEX_SANDBOX_NETWORK_DISABLED"]),o("opencode","OpenCode runtime",["OPENCODE","OPENCODE_SESSION_ID"]),o("cursor","Cursor runtime",["CURSOR_SESSION_ID","CURSOR_TRACE_ID"]),o("gemini","Gemini CLI runtime",["GEMINI_CLI"]),o("github-copilot-cli","GitHub Copilot CLI runtime",["COPILOT_CLI"]),o("kimi","Kimi Code runtime",["KIMI_SESSION_ID","KIMI_CODE_SESSION_ID"]),o("antigravity","Antigravity runtime",["ANTIGRAVITY_SESSION_ID","ANTIGRAVITY_AGENT"]),o("openclaw","OpenClaw runtime",["OPENCLAW_SESSION_ID","OPENCLAW_GATEWAY"]),o("grok","Grok Build runtime",["GROK_SESSION_ID","GROK_AGENT","GROK_HOME"]),o("deepseek","DeepSeek Harness runtime",["DSH_SHELL","DSH_SESSION_ID"]);const i=[...new Map(d.map(n=>[n.targetId,n])).values()];if(i.length>1)return{targetId:"unknown",confidence:0,reason:`Conflicting runtime platform signals: ${i.map(({targetId:n})=>n).sort().join(", ")}`,reasonCode:"platform-target-ambiguous"};if(i.length===1){const n=i[0],r={"claude-code":"CLAUDE.md",codex:"AGENTS.md",cursor:".cursor",gemini:"GEMINI.md",vscode:".vscode",grok:"AGENTS.md"}[n.targetId],s=r?l(c(e.cwd,r)):!1;return{targetId:n.targetId,confidence:s?.98:.95,reason:`${n.signal} signal${s?` corroborated by ${r}`:""}`,reasonCode:"platform-target-runtime-signal"}}return t("VSCODE_PID")||e.env.TERM_PROGRAM==="vscode"?{targetId:"vscode",confidence:.75,reason:"VS Code runtime signal without a stronger agent runtime signal",reasonCode:"platform-target-runtime-signal"}:["AGENTS.md",".cursor",".cursorrules","CLAUDE.md",".vscode","GEMINI.md"].some(n=>l(c(e.cwd,n)))?{targetId:"unknown",confidence:0,reason:"Filesystem marker found without platform-owned runtime evidence",reasonCode:"platform-target-filesystem-only"}:{targetId:"unknown",confidence:0,reason:"No platform runtime signals detected",reasonCode:"platform-target-unknown"}}export{h as detectNativeHostAttestation,v as detectPlatform,b as isValidTargetId,A as normalizeTargetId};
|
|
File without changes
|
|
@@ -2,6 +2,7 @@ import { type PactAnswerReceipt } from './architecture-answers.js';
|
|
|
2
2
|
import { probeYoloopHostCapacity } from '../runner/host-capacity.js';
|
|
3
3
|
import type { YoloopHostCapacityV1 } from '../../../shared/dist/yoloop/host-capacity.js';
|
|
4
4
|
import type { YoloopPersistedState } from '../yoloop/shared-yoloop-types.js';
|
|
5
|
+
import { type TransportFailureCause } from '../errors/transport-failure.js';
|
|
5
6
|
import { type StateMigrationAuthorityV1 } from '../migrations/state-json.js';
|
|
6
7
|
import { type RunnerBootstrapPolicyDecision } from '../continuity/runner-bootstrap-policy.js';
|
|
7
8
|
import { observeRunnerOperationalStatus, type RunnerSchedulerBootstrapOptions, type RunnerSchedulerBootstrapResult, type RunnerOperationalStatusV1 } from '../runner/scheduler.js';
|
|
@@ -910,6 +911,7 @@ interface SendResult {
|
|
|
910
911
|
readonly error?: string;
|
|
911
912
|
readonly errorBody?: Record<string, unknown>;
|
|
912
913
|
readonly compatibility?: CompatibilityResultV1;
|
|
914
|
+
readonly networkFailure?: TransportFailureCause;
|
|
913
915
|
}
|
|
914
916
|
/**
|
|
915
917
|
* Preserve the server's public error authority across the transport boundary.
|