@ornexus/neocortex 4.66.23 → 4.66.25

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.
Files changed (46) hide show
  1. package/dist/release-source.json +1 -1
  2. package/dist/sbom.cdx.json +1194 -1194
  3. package/install.ps1 +1 -1
  4. package/install.sh +1 -1
  5. package/package.json +2 -2
  6. package/packages/client/dist/commands/invoke.js +98 -98
  7. package/packages/client/dist/continuity/sqlite-store.d.ts +43 -0
  8. package/packages/client/dist/continuity/sqlite-store.js +89 -67
  9. package/packages/client/dist/errors/frontmatter-diagnostics.js +1 -1
  10. package/packages/client/dist/generated/public-projections.generated.d.ts +19 -19
  11. package/packages/client/dist/generated/public-projections.generated.js +1 -1
  12. package/packages/client/dist/runner/binary.d.ts +1 -1
  13. package/packages/client/dist/runner/binary.js +1 -1
  14. package/packages/client/dist/runner/headless/adapters.js +1 -1
  15. package/packages/client/dist/runner/headless/codex-adapter.d.ts +6 -0
  16. package/packages/client/dist/runner/headless/codex-adapter.js +1 -0
  17. package/packages/client/dist/runner/headless/opencode-adapter.d.ts +1 -1
  18. package/packages/client/dist/runner/headless/resolver.d.ts +6 -0
  19. package/packages/client/dist/runner/headless/resolver.js +1 -1
  20. package/packages/client/dist/runner/headless/run-yolo.js +1 -1
  21. package/packages/client/dist/runner/headless/run-yoloop.js +4 -4
  22. package/packages/client/dist/runner/headless/types.d.ts +7 -1
  23. package/packages/client/dist/runner/headless/types.js +2 -2
  24. package/packages/client/dist/yoloop/target-normalization.d.ts +6 -2
  25. package/packages/client/dist/yoloop/target-normalization.js +1 -1
  26. package/packages/shared/dist/generated/public-projections.generated.js +17 -17
  27. package/targets-stubs/antigravity/gemini.md +1 -1
  28. package/targets-stubs/antigravity/neocortex.md +1 -1
  29. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  30. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -2
  31. package/targets-stubs/claude-code/neocortex-root.md +2 -3
  32. package/targets-stubs/claude-code/neocortex-sentinel.md +1 -2
  33. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -2
  34. package/targets-stubs/claude-code/neocortex.md +2 -3
  35. package/targets-stubs/codex/AGENTS.md +1 -1
  36. package/targets-stubs/codex/neocortex.toml +1 -1
  37. package/targets-stubs/cursor/agent.md +2 -2
  38. package/targets-stubs/deepseek-harness/SKILL.md +1 -1
  39. package/targets-stubs/gemini-cli/agent.md +2 -2
  40. package/targets-stubs/gemini-cli/agents/neocortex.md +2 -2
  41. package/targets-stubs/grok/SKILL.md +1 -1
  42. package/targets-stubs/kimi/neocortex.md +1 -1
  43. package/targets-stubs/openclaw/SKILL.md +1 -1
  44. package/targets-stubs/opencode/neocortex-root.md +2 -2
  45. package/targets-stubs/opencode/neocortex.md +2 -2
  46. package/targets-stubs/vscode/neocortex.agent.md +2 -2
@@ -1,2 +1,2 @@
1
- import{createHash as F}from"node:crypto";import{spawn as V}from"node:child_process";import{P205_RELEASE_GATE_BUDGETS as $,P205_ROOT_INVOKE_TIMEOUT_MS as G}from"../../../../shared/dist/yoloop/epic-terminal-git.js";import{createLocalJobConsoleServer as X}from"../local-console.js";const Y=Object.freeze(["fake","test","opencode","claude-code"]),q="neocortex-sentinel",be="neocortex";function I(e,r){return Object.freeze({adapterId:e,childProfile:q,status:r})}const he=Object.freeze([I("opencode","executable"),I("claude-code","executable"),I("codex","declared"),I("gemini","declared"),I("kimi","declared"),I("grok","declared"),I("openclaw","declared"),I("antigravity","declared")]);function D(e){return e==="yolo"||e==="yolo-branchless-preparation"||e==="yolo-story-worktree-phase-1"||e==="yolo-story-worktree-phase-2"}const l=Object.freeze({OK:"continuity-ok",RUNTIME_EXPLICIT:"headless-runtime-explicit",RUNTIME_ORIGIN:"headless-runtime-origin",RUNTIME_DEFAULT:"headless-runtime-default",RUNTIME_FALLBACK:"headless-runtime-fallback",RUNTIME_UNRESOLVED:"headless-runtime-unresolved",RUNTIME_UNTRUSTED:"headless-runtime-untrusted",MODEL_REJECTED:"headless-model-rejected",DIRECTIVE_REJECTED:"headless-directive-rejected",STORY_WORKTREE_PHASE_BINDING_REQUIRED:"story-worktree-phase-binding-required",PROMPT_REJECTED:"headless-prompt-rejected",ADAPTER_UNAVAILABLE:"headless-adapter-unavailable",RUNTIME_AUTH_REQUIRED:"headless-runtime-auth-required",MANAGED_PROFILE_MISSING:"headless-managed-profile-missing",MANAGED_PROFILE_INVALID:"headless-managed-profile-invalid",CHILD_PROFILE_IS_ORCHESTRATOR:"headless-child-profile-is-orchestrator",CHILD_PROFILE_NAME_DUPLICATE:"headless-child-profile-name-duplicate",APPROVAL_POLICY_INVALID:"headless-approval-policy-invalid",APPROVAL_POLICY_MISMATCH:"headless-approval-policy-mismatch",EXECUTION_CANCELLED:"headless-execution-cancelled",EXECUTION_TIMEOUT:"headless-execution-timeout",EXECUTION_BACKOFF:"headless-execution-backoff",EXECUTION_COMPLETED:"headless-execution-completed",EXECUTION_FAILED:"headless-execution-failed",RECEIPT_REDACTED:"headless-receipt-redacted",YOLOOP_METADATA_INVALID:"headless-yoloop-metadata-invalid",YOLOOP_ISOLATION_VIOLATION:"headless-yoloop-isolation-violation",WORKER_POOL_SERIAL_FALLBACK:"worker-pool-serial-fallback",WORKER_POOL_PARALLEL_ACTIVE:"worker-pool-parallel-active",WORKER_POOL_BACKPRESSURE_PAUSED:"worker-pool-backpressure-paused"}),J=120,L=240,W=G,k=$.terminalWorkflowMaxDurationMs,Z=/^[A-Za-z0-9][A-Za-z0-9._:+/-]{0,119}$/,Q=/^docs\/stories\/[A-Za-z0-9._-]+\.story\.md$/,ee=/^docs\/epics\/epic-[A-Za-z0-9._-]+\.md$/,te=/(raw[_-]?(?:logs?|payloads?)|std(?:out|err)|stack(?:[_-]?trace)?|transcript|objective(?:[_-]?(?:text|body|prompt))|prompt(?:[_-]?(?:body|text))?|private[_-]?(?:urls?|prompts?)|secret|token|password|protected(?:[_-]?(?:field|body|bodies|internals))?|workflow(?:[_-]?body)?|step(?:[_-]?body)?|customer(?:[_-]?(?:pii|data))?|\bpii\b|authorization|api[_-]?key|license[_-]?key|argv|args|executable(?:[_-]?path)?|binary(?:[_-]?path)?|shell|cwd|command[_-]?path|vendor(?:[_-]?(?:payload|corpus|response|output)))/i,H=/(https?:\/\/\S+|(?:^|\s)(?:\/(?:home|Users|media|mnt|tmp|var|etc|private)\/\S+|[A-Za-z]:\\\S+)|ghp_[A-Za-z0-9_]+|sk-[A-Za-z0-9_-]+|-----BEGIN [A-Z ]*PRIVATE KEY-----|authorization\s*:|password\s*=|token\s*=|api[_-]?key\s*=|license[_-]?key\s*=|raw[_-]?(?:logs?)\s*[:=]|transcript|stack\s*trace|stderr:|stdout:|system prompt|workflow body|step body|PROTECTED_|PRIVATE_INTERNALS|CUSTOMER_PII|\bPII\b|VENDOR_CORPUS)/i,P=/(?:[;&|`$<>]|\$\(|\n|\r|\0)/,re=new Set(["promptKind","targetKind","targetRef","storyId","epicId","runtimeId","modelId","runtimeSource","timeoutMs","receipt","publicSummary","publicSafe"]),oe=new Set(["executionId","attemptId","jobId","operationId","idempotencyKey","runnerId","subagentId"]);function se(e){return Y.includes(e)}function ye(e,r){const t=[],o=[];if(!j(e))return t.push(i("input","unsafe_key","value-denied")),K(l.DIRECTIVE_REJECTED,"Headless adapter input must be a public object.",t);for(const _ of Object.keys(e))re.has(_)||(o.push(_),t.push(i(_,N(_),"key-denied")));const u=e.publicSafe===!0;u||t.push(i("publicSafe","unsafe_key","value-denied"));const a=y(e.promptKind);!D(a)&&a!=="yoloop"&&t.push(i("promptKind","unsafe_key","value-denied"));const p=y(e.targetKind);p!=="story"&&p!=="epic"&&t.push(i("targetKind","unsafe_key","value-denied"));const s=y(e.targetRef);(!s||!U(s)||P.test(s)||s.includes(".."))&&t.push(i("targetRef","prompt_body","value-denied")),D(a)&&(p!=="story"||!s||!Q.test(s))&&t.push(i("targetRef","prompt_body","value-denied")),a==="yoloop"&&(p!=="epic"||!s||!ee.test(s))&&t.push(i("targetRef","prompt_body","value-denied"));const d=M(e.storyId,"storyId",t),E=M(e.epicId,"epicId",t);d&&s&&D(a)&&d!==s.replace(/^docs\/stories\//,"").replace(/\.story\.md$/,"")&&t.push(i("storyId","prompt_body","value-denied")),E&&s&&a==="yoloop"&&E!==s.replace(/^docs\/epics\/epic-/,"").replace(/\.md$/,"")&&t.push(i("epicId","prompt_body","value-denied"));const f=y(e.runtimeId);(!f||!se(f)||r&&f!==r)&&t.push(i("runtimeId","unsafe_key","value-denied"));const b=ie(e.modelId,t),S=ae(e.runtimeSource,t),m=de(e.timeoutMs,t),A=ce(e.publicSummary,t),T=le(e.receipt,t);if(t.length>0||o.length>0||!u||!a||!p||!s||!f){const _=t.some(n=>n.field==="modelId"),C=t.some(n=>n.reason==="prompt_body");return K(_?l.MODEL_REJECTED:C?l.PROMPT_REJECTED:l.DIRECTIVE_REJECTED,C?"Headless adapter target did not match a public prompt shape.":"Headless adapter input failed public-safety validation.",t)}const R={promptKind:a,targetKind:p,targetRef:s,...d?{storyId:d}:{},...E?{epicId:E}:{},runtimeId:f,...b?{modelId:b}:{},...S?{runtimeSource:S}:{},...m?{timeoutMs:m}:{},...T?{receipt:T}:{},...A?{publicSummary:A}:{},publicSafe:!0},O=x(R);return{ok:!0,input:R,prompt:O,promptHash:h(O),reasonCodes:[l.OK],publicSafe:!0}}function x(e){return e.promptKind==="yolo"?`*yolo @${e.targetRef}`:e.promptKind==="yolo-branchless-preparation"?`*yolo @${e.targetRef} branchless-preparation`:e.promptKind==="yolo-story-worktree-phase-1"?`*yolo @${e.targetRef} story-worktree-phase-1`:e.promptKind==="yolo-story-worktree-phase-2"?`*yolo @${e.targetRef} story-worktree-phase-2`:`*yoloop @${e.targetRef}`}function h(e){return`sha256:${F("sha256").update(e).digest("hex")}`}function Se(e,r,t,o=0){return{status:"failed",adapterId:e,runtimeId:r,reasonCode:t.reasonCode,reasonCodes:t.reasonCodes,durationMs:o,counts:{},hashes:{},publicSummary:g(t.publicSummary),redactionSummary:t.redactionSummary,relativePaths:[],publicSafe:!0}}function Te(e,r,t,o=0){return{status:"failed",adapterId:e,runtimeId:r.runtimeId,...r.modelId?{modelId:r.modelId}:{},...r.runtimeSource?{runtimeSource:r.runtimeSource}:{},reasonCode:t.reasonCode,reasonCodes:t.reasonCodes,durationMs:o,counts:{},hashes:{prompt:h(x(r))},publicSummary:g(t.publicSummary),redactionSummary:t.redactionSummary,relativePaths:[r.targetRef],...r.receipt?{receipt:r.receipt}:{},publicSafe:!0}}function Ae(e,r,t){const o=x(r),u=h(t.stdout),a=h(t.stderr),p=t.timedOut||t.exitCode===0?0:Ee(t.stdout,t.stderr),s=t.cancelled?"failed":t.timedOut?"timed_out":t.exitCode===0?"completed":"failed",d=t.cancelled?l.EXECUTION_CANCELLED:t.timedOut?l.EXECUTION_TIMEOUT:t.exitCode===0?l.EXECUTION_COMPLETED:p>0?l.RUNTIME_AUTH_REQUIRED:l.EXECUTION_FAILED,E=[i("prompt","prompt_body",h(o))];return t.stdoutBytes>0&&E.push(i("stdout","raw_log",u)),t.stderrBytes>0&&E.push(i("stderr","raw_log",a)),{status:s,adapterId:e,runtimeId:r.runtimeId,...r.modelId?{modelId:r.modelId}:{},...r.runtimeSource?{runtimeSource:r.runtimeSource}:{},reasonCode:d,reasonCodes:[d,l.RECEIPT_REDACTED],exitCode:t.exitCode,signal:t.signal??null,durationMs:t.durationMs,counts:{stdoutBytes:t.stdoutBytes,stderrBytes:t.stderrBytes,stdoutLines:B(t.stdout),stderrLines:B(t.stderr),...p>0?{authEvidenceMatches:p}:{}},hashes:{prompt:h(o),stdout:u,stderr:a},publicSummary:s==="completed"?"Headless adapter completed with public-safe redacted output summary.":d===l.EXECUTION_CANCELLED?"Headless adapter was cancelled; raw output was redacted.":s==="timed_out"?"Headless adapter timed out; raw output was redacted.":d===l.RUNTIME_AUTH_REQUIRED?"Headless adapter requires local runtime authentication; raw output was redacted.":"Headless adapter failed; raw output was redacted.",redactionSummary:E,relativePaths:[r.targetRef],...r.receipt?{receipt:r.receipt}:{},publicSafe:!0}}async function Re(e,r,t={}){const o=Date.now(),u=ue(t.timeoutMs),a=t.maxOutputBytes??64e3;return t.signal?.aborted?{exitCode:null,signal:"SIGTERM",timedOut:!1,cancelled:!0,durationMs:Date.now()-o,stdout:"",stderr:"",stdoutBytes:0,stderrBytes:0}:await new Promise(p=>{const s=V(e,[...r],{cwd:t.cwd,env:t.env,shell:!1,stdio:[t.localConsole?"pipe":"ignore","pipe","pipe"]}),d=t.localConsole?.jobId?X({...t.localConsole,projectRoot:t.localConsole.projectRoot??t.cwd,writeStdin:n=>{s.stdin?.write(n)},signalProcess:n=>s.kill(n)}):void 0;d?.start();let E="",f="",b=0,S=0,m=!1,A=!1,T=!1;const R=()=>{m||(T=!0,s.kill("SIGTERM"))};t.signal?.addEventListener("abort",R,{once:!0});const O=()=>{t.signal?.removeEventListener("abort",R)},_=(n,c,v)=>{const w=v+c.length;if(n.length<a){const z=a-n.length;return{text:n+c.toString("utf8").slice(0,z),bytes:w}}return{text:n,bytes:w}};s.stdout?.on("data",n=>{const c=_(E,n,b);E=c.text,b=c.bytes,d?.broadcastStdout(n)}),s.stderr?.on("data",n=>{const c=_(f,n,S);f=c.text,S=c.bytes,d?.broadcastStderr(n)});const C=setTimeout(()=>{A=!0,s.kill("SIGTERM")},u);s.on("error",n=>{if(m)return;m=!0,clearTimeout(C),O(),d?.close({exitCode:127,signal:null});const c=n instanceof Error?n.message:String(n);p({exitCode:127,signal:null,timedOut:!1,cancelled:T,durationMs:Date.now()-o,stdout:E,stderr:c,stdoutBytes:b,stderrBytes:Buffer.byteLength(c)})}),s.on("close",(n,c)=>{m||(m=!0,clearTimeout(C),O(),d?.close({exitCode:n,signal:c}),p({exitCode:n,signal:c,timedOut:A,cancelled:T,durationMs:Date.now()-o,stdout:E,stderr:f,stdoutBytes:b,stderrBytes:S}))})})}function Oe(e,r,t,o,u=[]){return{ok:!1,adapterId:e,...r?{commandName:r}:{},reasonCode:t,reasonCodes:[t],publicSummary:g(o),redactionSummary:u,publicSafe:!0}}function Ce(e,r,t,o={}){const u={ok:!0,adapterId:e,commandName:r,...o.versionText?{versionHash:h(o.versionText)}:{},reasonCodes:[l.OK],publicSummary:g(t),publicSafe:!0};return o.executablePath&&Object.defineProperty(u,"executablePath",{value:o.executablePath,enumerable:!1,configurable:!1}),u}function i(e,r,t){return{field:e,reason:r,evidence:t,publicSafe:!0}}function g(e){return e.length<=L?e:`${e.slice(0,L)}\u2026[TRUNCATED:${e.length-L}]`}function ne(e){return e.length<=J&&Z.test(e)&&!H.test(e)&&!P.test(e)&&!e.includes("..")&&!e.startsWith("/")}function K(e,r,t){return{ok:!1,reasonCode:e,reasonCodes:[e],publicSummary:g(r),redactionSummary:t,publicSafe:!0}}function M(e,r,t){if(e===void 0)return;const o=y(e);if(!o||!U(o)||P.test(o)){t.push(i(r,N(r),"value-denied"));return}return o}function ie(e,r){if(e===void 0)return;const t=y(e);if(!t||!ne(t)){r.push(i("modelId","unsafe_key","value-denied"));return}return t}function ae(e,r){if(e!==void 0){if(e==="explicit"||e==="origin"||e==="default"||e==="fallback")return e;r.push(i("runtimeSource","unsafe_key","value-denied"))}}function de(e,r){if(e!==void 0){if(typeof e!="number"||!Number.isInteger(e)||e<=0||e>k){r.push(i("timeoutMs","unbounded_number","value-denied"));return}return e}}function ue(e){return!e||!Number.isInteger(e)||e<=0||e>k?W:e}function ce(e,r){if(e===void 0)return;const t=y(e);if(!t||t.length>L||!U(t)){r.push(i("publicSummary","unbounded_text","value-denied"));return}return t}function le(e,r){if(e===void 0)return;if(!j(e)){r.push(i("receipt","unsafe_key","value-denied"));return}const t={};for(const[o,u]of Object.entries(e)){if(!oe.has(o)||te.test(o)){r.push(i(`receipt.${o}`,N(o),"key-denied"));continue}const a=M(u,`receipt.${o}`,r);a&&(t[o]=a)}return Object.keys(t).length>0?t:void 0}function N(e){return/prompt/i.test(e)?"prompt_body":/std(?:out|err)|raw|log|transcript|stack/i.test(e)?"raw_log":/url/i.test(e)?"private_url":/path|cwd|argv|args|shell|command|binary|executable/i.test(e)?"executable_path":/secret|token|password|authorization|api[_-]?key|license/i.test(e)?"secret_or_pii":"unsafe_key"}function y(e){return typeof e=="string"?e:void 0}function U(e){return e.length>0&&!H.test(e)&&!/\0/.test(e)}function B(e){return e?e.split(/\r?\n/).filter(r=>r.length>0).length:0}const pe=Object.freeze([/\bauth(?:entication|orization)?\s+(?:is\s+)?required\b/i,/\brequires?\s+authentication\b/i,/\bmust\s+(?:log\s?in|authenticate|be\s+authenticated)\b/i,/\bunauthenticated\b/i,/\b(?:not|unauthenticated)\s+(?:logged\s+in|authenticated)\b/i,/\blog\s?in\s+(?:required|to\s+continue|before\s+continuing)\b/i,/\bplease\s+(?:log\s?in|authenticate|sign\s?in)\b/i,/\bsign\s?in\s+(?:required|to\s+continue|before\s+continuing)\b/i,/\bsession\s+(?:expired|not\s+found|invalid)\b/i,/\bcredentials?\s+(?:missing|required|not\s+found)\b/i]);function Ee(...e){const r=e.filter(t=>t.length>0).map(t=>t.slice(0,8e3)).join(`
2
- `);return r?pe.reduce((t,o)=>t+(o.test(r)?1:0),0):0}function j(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export{Y as HEADLESS_ADAPTER_IDS,q as HEADLESS_CHILD_AGENT_PROFILE,he as HEADLESS_DECLARED_ADAPTERS,be as HEADLESS_LEGACY_CHILD_AGENT_PROFILE,l as HEADLESS_REASON_CODES,Oe as adapterAvailabilityFailure,Ce as adapterAvailabilitySuccess,g as boundPublicSummary,Se as createRejectedExecutionResult,Te as createUnavailableExecutionResult,h as hashPublicValue,se as isHeadlessAdapterId,D as isHeadlessStoryPromptKind,ne as isSafeHeadlessModelId,Ae as normalizeHeadlessCommandResult,i as redaction,x as renderHeadlessPrompt,Re as runHeadlessCommand,ye as validateHeadlessAdapterExecutionInput};
1
+ import{createHash as V}from"node:crypto";import{spawn as z}from"node:child_process";import{P205_RELEASE_GATE_BUDGETS as $,P205_ROOT_INVOKE_TIMEOUT_MS as G}from"../../../../shared/dist/yoloop/epic-terminal-git.js";import{createLocalJobConsoleServer as X}from"../local-console.js";const Y=Object.freeze(["fake","test","opencode","claude-code","codex"]),q="neocortex-sentinel",be="neocortex";function I(e,r){return Object.freeze({adapterId:e,childProfile:q,status:r})}const he=Object.freeze([I("opencode","executable"),I("claude-code","executable"),I("codex","executable"),I("gemini","declared"),I("kimi","declared"),I("grok","declared"),I("openclaw","declared"),I("antigravity","declared")]);function D(e){return e==="yolo"||e==="yolo-branchless-preparation"||e==="yolo-story-worktree-phase-1"||e==="yolo-story-worktree-phase-2"}const l=Object.freeze({OK:"continuity-ok",RUNTIME_EXPLICIT:"headless-runtime-explicit",RUNTIME_ORIGIN:"headless-runtime-origin",RUNTIME_DEFAULT:"headless-runtime-default",RUNTIME_FALLBACK:"headless-runtime-fallback",RUNTIME_UNRESOLVED:"headless-runtime-unresolved",RUNTIME_UNTRUSTED:"headless-runtime-untrusted",MODEL_REJECTED:"headless-model-rejected",DIRECTIVE_REJECTED:"headless-directive-rejected",STORY_WORKTREE_PHASE_BINDING_REQUIRED:"story-worktree-phase-binding-required",PROMPT_REJECTED:"headless-prompt-rejected",ADAPTER_UNAVAILABLE:"headless-adapter-unavailable",RUNTIME_AUTH_REQUIRED:"headless-runtime-auth-required",MANAGED_PROFILE_MISSING:"headless-managed-profile-missing",MANAGED_PROFILE_INVALID:"headless-managed-profile-invalid",CHILD_PROFILE_IS_ORCHESTRATOR:"headless-child-profile-is-orchestrator",CHILD_PROFILE_NAME_DUPLICATE:"headless-child-profile-name-duplicate",APPROVAL_POLICY_INVALID:"headless-approval-policy-invalid",APPROVAL_POLICY_MISMATCH:"headless-approval-policy-mismatch",EXECUTION_CANCELLED:"headless-execution-cancelled",EXECUTION_TIMEOUT:"headless-execution-timeout",EXECUTION_BACKOFF:"headless-execution-backoff",EXECUTION_COMPLETED:"headless-execution-completed",EXECUTION_FAILED:"headless-execution-failed",RESUME_RECEIPT_VERIFIED:"headless-resume-receipt-verified",RESUME_RECEIPT_RECONCILED:"headless-resume-receipt-reconciled",RESUME_RECEIPT_UNVERIFIED:"headless-resume-receipt-unverified",RECEIPT_REDACTED:"headless-receipt-redacted",YOLOOP_METADATA_INVALID:"headless-yoloop-metadata-invalid",YOLOOP_ISOLATION_VIOLATION:"headless-yoloop-isolation-violation",WORKER_POOL_SERIAL_FALLBACK:"worker-pool-serial-fallback",WORKER_POOL_PARALLEL_ACTIVE:"worker-pool-parallel-active",WORKER_POOL_BACKPRESSURE_PAUSED:"worker-pool-backpressure-paused"}),J=120,L=240,W=G,k=$.terminalWorkflowMaxDurationMs,Z=/^[A-Za-z0-9][A-Za-z0-9._:+/-]{0,119}$/,Q=/^docs\/stories\/[A-Za-z0-9._-]+\.story\.md$/,ee=/^docs\/epics\/epic-[A-Za-z0-9._-]+\.md$/,te=/(raw[_-]?(?:logs?|payloads?)|std(?:out|err)|stack(?:[_-]?trace)?|transcript|objective(?:[_-]?(?:text|body|prompt))|prompt(?:[_-]?(?:body|text))?|private[_-]?(?:urls?|prompts?)|secret|token|password|protected(?:[_-]?(?:field|body|bodies|internals))?|workflow(?:[_-]?body)?|step(?:[_-]?body)?|customer(?:[_-]?(?:pii|data))?|\bpii\b|authorization|api[_-]?key|license[_-]?key|argv|args|executable(?:[_-]?path)?|binary(?:[_-]?path)?|shell|cwd|command[_-]?path|vendor(?:[_-]?(?:payload|corpus|response|output)))/i,H=/(https?:\/\/\S+|(?:^|\s)(?:\/(?:home|Users|media|mnt|tmp|var|etc|private)\/\S+|[A-Za-z]:\\\S+)|ghp_[A-Za-z0-9_]+|sk-[A-Za-z0-9_-]+|-----BEGIN [A-Z ]*PRIVATE KEY-----|authorization\s*:|password\s*=|token\s*=|api[_-]?key\s*=|license[_-]?key\s*=|raw[_-]?(?:logs?)\s*[:=]|transcript|stack\s*trace|stderr:|stdout:|system prompt|workflow body|step body|PROTECTED_|PRIVATE_INTERNALS|CUSTOMER_PII|\bPII\b|VENDOR_CORPUS)/i,P=/(?:[;&|`$<>]|\$\(|\n|\r|\0)/,re=new Set(["promptKind","targetKind","targetRef","storyId","epicId","runtimeId","modelId","runtimeSource","timeoutMs","receipt","publicSummary","publicSafe"]),oe=new Set(["executionId","attemptId","jobId","operationId","idempotencyKey","runnerId","subagentId"]);function se(e){return Y.includes(e)}function ye(e,r){const t=[],o=[];if(!B(e))return t.push(i("input","unsafe_key","value-denied")),K(l.DIRECTIVE_REJECTED,"Headless adapter input must be a public object.",t);for(const _ of Object.keys(e))re.has(_)||(o.push(_),t.push(i(_,N(_),"key-denied")));const u=e.publicSafe===!0;u||t.push(i("publicSafe","unsafe_key","value-denied"));const a=y(e.promptKind);!D(a)&&a!=="yoloop"&&t.push(i("promptKind","unsafe_key","value-denied"));const p=y(e.targetKind);p!=="story"&&p!=="epic"&&t.push(i("targetKind","unsafe_key","value-denied"));const s=y(e.targetRef);(!s||!U(s)||P.test(s)||s.includes(".."))&&t.push(i("targetRef","prompt_body","value-denied")),D(a)&&(p!=="story"||!s||!Q.test(s))&&t.push(i("targetRef","prompt_body","value-denied")),a==="yoloop"&&(p!=="epic"||!s||!ee.test(s))&&t.push(i("targetRef","prompt_body","value-denied"));const d=M(e.storyId,"storyId",t),E=M(e.epicId,"epicId",t);d&&s&&D(a)&&d!==s.replace(/^docs\/stories\//,"").replace(/\.story\.md$/,"")&&t.push(i("storyId","prompt_body","value-denied")),E&&s&&a==="yoloop"&&E!==s.replace(/^docs\/epics\/epic-/,"").replace(/\.md$/,"")&&t.push(i("epicId","prompt_body","value-denied"));const f=y(e.runtimeId);(!f||!se(f)||r&&f!==r)&&t.push(i("runtimeId","unsafe_key","value-denied"));const b=ie(e.modelId,t),S=ae(e.runtimeSource,t),m=de(e.timeoutMs,t),A=ce(e.publicSummary,t),T=le(e.receipt,t);if(t.length>0||o.length>0||!u||!a||!p||!s||!f){const _=t.some(n=>n.field==="modelId"),O=t.some(n=>n.reason==="prompt_body");return K(_?l.MODEL_REJECTED:O?l.PROMPT_REJECTED:l.DIRECTIVE_REJECTED,O?"Headless adapter target did not match a public prompt shape.":"Headless adapter input failed public-safety validation.",t)}const R={promptKind:a,targetKind:p,targetRef:s,...d?{storyId:d}:{},...E?{epicId:E}:{},runtimeId:f,...b?{modelId:b}:{},...S?{runtimeSource:S}:{},...m?{timeoutMs:m}:{},...T?{receipt:T}:{},...A?{publicSummary:A}:{},publicSafe:!0},C=x(R);return{ok:!0,input:R,prompt:C,promptHash:h(C),reasonCodes:[l.OK],publicSafe:!0}}function x(e){return e.promptKind==="yolo"?`*yolo @${e.targetRef}`:e.promptKind==="yolo-branchless-preparation"?`*yolo @${e.targetRef} branchless-preparation`:e.promptKind==="yolo-story-worktree-phase-1"?`*yolo @${e.targetRef} story-worktree-phase-1`:e.promptKind==="yolo-story-worktree-phase-2"?`*yolo @${e.targetRef} story-worktree-phase-2`:`*yoloop @${e.targetRef}`}function h(e){return`sha256:${V("sha256").update(e).digest("hex")}`}function Se(e,r,t,o=0){return{status:"failed",adapterId:e,runtimeId:r,reasonCode:t.reasonCode,reasonCodes:t.reasonCodes,durationMs:o,counts:{},hashes:{},publicSummary:g(t.publicSummary),redactionSummary:t.redactionSummary,relativePaths:[],publicSafe:!0}}function Te(e,r,t,o=0){return{status:"failed",adapterId:e,runtimeId:r.runtimeId,...r.modelId?{modelId:r.modelId}:{},...r.runtimeSource?{runtimeSource:r.runtimeSource}:{},reasonCode:t.reasonCode,reasonCodes:t.reasonCodes,durationMs:o,counts:{},hashes:{prompt:h(x(r))},publicSummary:g(t.publicSummary),redactionSummary:t.redactionSummary,relativePaths:[r.targetRef],...r.receipt?{receipt:r.receipt}:{},publicSafe:!0}}function Ae(e,r,t){const o=x(r),u=h(t.stdout),a=h(t.stderr),p=t.timedOut||t.exitCode===0?0:Ee(t.stdout,t.stderr),s=t.cancelled?"failed":t.timedOut?"timed_out":t.exitCode===0?"completed":"failed",d=t.cancelled?l.EXECUTION_CANCELLED:t.timedOut?l.EXECUTION_TIMEOUT:t.exitCode===0?l.EXECUTION_COMPLETED:p>0?l.RUNTIME_AUTH_REQUIRED:l.EXECUTION_FAILED,E=[i("prompt","prompt_body",h(o))];return t.stdoutBytes>0&&E.push(i("stdout","raw_log",u)),t.stderrBytes>0&&E.push(i("stderr","raw_log",a)),{status:s,adapterId:e,runtimeId:r.runtimeId,...r.modelId?{modelId:r.modelId}:{},...r.runtimeSource?{runtimeSource:r.runtimeSource}:{},reasonCode:d,reasonCodes:[d,l.RECEIPT_REDACTED],exitCode:t.exitCode,signal:t.signal??null,durationMs:t.durationMs,counts:{stdoutBytes:t.stdoutBytes,stderrBytes:t.stderrBytes,stdoutLines:v(t.stdout),stderrLines:v(t.stderr),...p>0?{authEvidenceMatches:p}:{}},hashes:{prompt:h(o),stdout:u,stderr:a},publicSummary:s==="completed"?"Headless adapter completed with public-safe redacted output summary.":d===l.EXECUTION_CANCELLED?"Headless adapter was cancelled; raw output was redacted.":s==="timed_out"?"Headless adapter timed out; raw output was redacted.":d===l.RUNTIME_AUTH_REQUIRED?"Headless adapter requires local runtime authentication; raw output was redacted.":"Headless adapter failed; raw output was redacted.",redactionSummary:E,relativePaths:[r.targetRef],...r.receipt?{receipt:r.receipt}:{},publicSafe:!0}}async function Re(e,r,t={}){const o=Date.now(),u=ue(t.timeoutMs),a=t.maxOutputBytes??64e3;return t.signal?.aborted?{exitCode:null,signal:"SIGTERM",timedOut:!1,cancelled:!0,durationMs:Date.now()-o,stdout:"",stderr:"",stdoutBytes:0,stderrBytes:0}:await new Promise(p=>{const s=z(e,[...r],{cwd:t.cwd,env:t.env,shell:!1,stdio:[t.localConsole?"pipe":"ignore","pipe","pipe"]}),d=t.localConsole?.jobId?X({...t.localConsole,projectRoot:t.localConsole.projectRoot??t.cwd,writeStdin:n=>{s.stdin?.write(n)},signalProcess:n=>s.kill(n)}):void 0;d?.start();let E="",f="",b=0,S=0,m=!1,A=!1,T=!1;const R=()=>{m||(T=!0,s.kill("SIGTERM"))};t.signal?.addEventListener("abort",R,{once:!0});const C=()=>{t.signal?.removeEventListener("abort",R)},_=(n,c,j)=>{const w=j+c.length;if(n.length<a){const F=a-n.length;return{text:n+c.toString("utf8").slice(0,F),bytes:w}}return{text:n,bytes:w}};s.stdout?.on("data",n=>{const c=_(E,n,b);E=c.text,b=c.bytes,d?.broadcastStdout(n)}),s.stderr?.on("data",n=>{const c=_(f,n,S);f=c.text,S=c.bytes,d?.broadcastStderr(n)});const O=setTimeout(()=>{A=!0,s.kill("SIGTERM")},u);s.on("error",n=>{if(m)return;m=!0,clearTimeout(O),C(),d?.close({exitCode:127,signal:null});const c=n instanceof Error?n.message:String(n);p({exitCode:127,signal:null,timedOut:!1,cancelled:T,durationMs:Date.now()-o,stdout:E,stderr:c,stdoutBytes:b,stderrBytes:Buffer.byteLength(c)})}),s.on("close",(n,c)=>{m||(m=!0,clearTimeout(O),C(),d?.close({exitCode:n,signal:c}),p({exitCode:n,signal:c,timedOut:A,cancelled:T,durationMs:Date.now()-o,stdout:E,stderr:f,stdoutBytes:b,stderrBytes:S}))})})}function Ce(e,r,t,o,u=[]){return{ok:!1,adapterId:e,...r?{commandName:r}:{},reasonCode:t,reasonCodes:[t],publicSummary:g(o),redactionSummary:u,publicSafe:!0}}function Oe(e,r,t,o={}){const u={ok:!0,adapterId:e,commandName:r,...o.versionText?{versionHash:h(o.versionText)}:{},reasonCodes:[l.OK],publicSummary:g(t),publicSafe:!0};return o.executablePath&&Object.defineProperty(u,"executablePath",{value:o.executablePath,enumerable:!1,configurable:!1}),u}function i(e,r,t){return{field:e,reason:r,evidence:t,publicSafe:!0}}function g(e){return e.length<=L?e:`${e.slice(0,L)}\u2026[TRUNCATED:${e.length-L}]`}function ne(e){return e.length<=J&&Z.test(e)&&!H.test(e)&&!P.test(e)&&!e.includes("..")&&!e.startsWith("/")}function K(e,r,t){return{ok:!1,reasonCode:e,reasonCodes:[e],publicSummary:g(r),redactionSummary:t,publicSafe:!0}}function M(e,r,t){if(e===void 0)return;const o=y(e);if(!o||!U(o)||P.test(o)){t.push(i(r,N(r),"value-denied"));return}return o}function ie(e,r){if(e===void 0)return;const t=y(e);if(!t||!ne(t)){r.push(i("modelId","unsafe_key","value-denied"));return}return t}function ae(e,r){if(e!==void 0){if(e==="explicit"||e==="origin"||e==="default"||e==="fallback")return e;r.push(i("runtimeSource","unsafe_key","value-denied"))}}function de(e,r){if(e!==void 0){if(typeof e!="number"||!Number.isInteger(e)||e<=0||e>k){r.push(i("timeoutMs","unbounded_number","value-denied"));return}return e}}function ue(e){return!e||!Number.isInteger(e)||e<=0||e>k?W:e}function ce(e,r){if(e===void 0)return;const t=y(e);if(!t||t.length>L||!U(t)){r.push(i("publicSummary","unbounded_text","value-denied"));return}return t}function le(e,r){if(e===void 0)return;if(!B(e)){r.push(i("receipt","unsafe_key","value-denied"));return}const t={};for(const[o,u]of Object.entries(e)){if(!oe.has(o)||te.test(o)){r.push(i(`receipt.${o}`,N(o),"key-denied"));continue}const a=M(u,`receipt.${o}`,r);a&&(t[o]=a)}return Object.keys(t).length>0?t:void 0}function N(e){return/prompt/i.test(e)?"prompt_body":/std(?:out|err)|raw|log|transcript|stack/i.test(e)?"raw_log":/url/i.test(e)?"private_url":/path|cwd|argv|args|shell|command|binary|executable/i.test(e)?"executable_path":/secret|token|password|authorization|api[_-]?key|license/i.test(e)?"secret_or_pii":"unsafe_key"}function y(e){return typeof e=="string"?e:void 0}function U(e){return e.length>0&&!H.test(e)&&!/\0/.test(e)}function v(e){return e?e.split(/\r?\n/).filter(r=>r.length>0).length:0}const pe=Object.freeze([/\bauth(?:entication|orization)?\s+(?:is\s+)?required\b/i,/\brequires?\s+authentication\b/i,/\bmust\s+(?:log\s?in|authenticate|be\s+authenticated)\b/i,/\bunauthenticated\b/i,/\b(?:not|unauthenticated)\s+(?:logged\s+in|authenticated)\b/i,/\blog\s?in\s+(?:required|to\s+continue|before\s+continuing)\b/i,/\bplease\s+(?:log\s?in|authenticate|sign\s?in)\b/i,/\bsign\s?in\s+(?:required|to\s+continue|before\s+continuing)\b/i,/\bsession\s+(?:expired|not\s+found|invalid)\b/i,/\bcredentials?\s+(?:missing|required|not\s+found)\b/i]);function Ee(...e){const r=e.filter(t=>t.length>0).map(t=>t.slice(0,8e3)).join(`
2
+ `);return r?pe.reduce((t,o)=>t+(o.test(r)?1:0),0):0}function B(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export{Y as HEADLESS_ADAPTER_IDS,q as HEADLESS_CHILD_AGENT_PROFILE,he as HEADLESS_DECLARED_ADAPTERS,be as HEADLESS_LEGACY_CHILD_AGENT_PROFILE,l as HEADLESS_REASON_CODES,Ce as adapterAvailabilityFailure,Oe as adapterAvailabilitySuccess,g as boundPublicSummary,Se as createRejectedExecutionResult,Te as createUnavailableExecutionResult,h as hashPublicValue,se as isHeadlessAdapterId,D as isHeadlessStoryPromptKind,ne as isSafeHeadlessModelId,Ae as normalizeHeadlessCommandResult,i as redaction,x as renderHeadlessPrompt,Re as runHeadlessCommand,ye as validateHeadlessAdapterExecutionInput};
@@ -1,4 +1,4 @@
1
- export type YoloopTargetNormalizationReasonCode = 'yoloop-target-unchanged' | 'agent-selector-removed' | 'markdown-link-target-normalized' | 'basename-target-canonicalized' | 'workflow-advisory-root-only' | 'workflow-advisory-invalid' | 'markdown-story-target-normalized' | 'story-target-invalid' | 'markdown-link-target-malformed' | 'markdown-link-target-ambiguous' | 'markdown-link-target-external' | 'markdown-link-target-unsafe-path' | 'raw-target-malformed' | 'raw-target-external' | 'raw-target-unsafe-path';
1
+ export type YoloopTargetNormalizationReasonCode = 'yoloop-target-unchanged' | 'agent-selector-removed' | 'markdown-link-target-normalized' | 'absolute-target-root-canonicalized' | 'basename-target-canonicalized' | 'workflow-advisory-root-only' | 'workflow-advisory-invalid' | 'markdown-story-target-normalized' | 'story-target-invalid' | 'markdown-link-target-malformed' | 'markdown-link-target-ambiguous' | 'markdown-link-target-external' | 'markdown-link-target-unsafe-path' | 'raw-target-malformed' | 'raw-target-external' | 'raw-target-unsafe-path';
2
2
  export interface ParsedYoloopInvocation {
3
3
  readonly triggerToken: string;
4
4
  readonly remainder: string;
@@ -17,6 +17,10 @@ export type YoloopTargetNormalizationResult = {
17
17
  };
18
18
  export interface NormalizeYoloopTargetOptions {
19
19
  readonly projectRoot?: string;
20
+ /** Lexical root for a host-supplied absolute Markdown link; no filesystem I/O. */
21
+ readonly absoluteRoot?: string;
22
+ /** Recheck the admitted link against real paths before project discovery. */
23
+ readonly verifyAbsolutePhysical?: boolean;
20
24
  }
21
25
  export declare function parseYoloopInvocation(args: unknown): ParsedYoloopInvocation | null;
22
26
  export declare function parseYoloStoryInvocation(args: unknown): ParsedYoloopInvocation | null;
@@ -27,5 +31,5 @@ export declare function normalizeYoloopTargetArgs(args: unknown, options?: Norma
27
31
  * YOLO stories and canonical native task prompts keep their original bytes.
28
32
  */
29
33
  export declare function normalizeYoloStoryTargetArgs(args: unknown): YoloopTargetNormalizationResult;
30
- export declare function normalizeWorkflowTargetArgs(args: unknown): YoloopTargetNormalizationResult;
34
+ export declare function normalizeWorkflowTargetArgs(args: unknown, options?: NormalizeYoloopTargetOptions): YoloopTargetNormalizationResult;
31
35
  export declare function extractYoloopTargetPath(args: unknown, projectRoot?: string): string | null;
@@ -1 +1 @@
1
- import{existsSync as z}from"node:fs";import{resolve as T}from"node:path";import{formatFrontmatterDiagnostic as x}from"../errors/frontmatter-diagnostics.js";const W=/^\*?(yoloop|auto-yolo|epic-runner|story-runner|loop-yolo|auto-epic)(?=\s|$)/i,b=/^\*?yolo(?=\s|$)/i,C=/^@neocortex(?:-root)?(?![-\w])\s*/i,v=/\[[^\]\r\n]*\]\(([^)\r\n]+)\)/g,P=/^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*\/?$/,Y=/^epic-[A-Za-z0-9._-]+\.md$/i,R=/^(?:P[0-9]+|EPIC-[0-9]+)$/i,$=/^(?:[ \t]+--[a-z][a-z0-9-]*)*$/,Z=/^docs\/stories\/[A-Za-z0-9][A-Za-z0-9._-]{0,79}\.story\.md$/,j=/^(?:[ \t]+(branchless-preparation|story-worktree-phase-1|story-worktree-phase-2))?$/,E=/[ \t]+—(?=[ \t]|$)/u,D=2048;function w(e){return O(e,W)}function G(e){return O(e,b)}function O(e,t){if(typeof e!="string")return null;let r=e.trimStart(),n=!1;const o=r.match(C);o&&(r=r.slice(o[0].length).trimStart(),n=!0);const s=r.match(t);return s?Object.freeze({triggerToken:s[0],remainder:r.slice(s[0].length).trim(),agentSelectorRemoved:n}):null}function N(e){return w(e)!==null}function a(e,t="INVALID_YOLOOP_TARGET"){return Object.freeze({ok:!1,errorCode:t,reasonCode:e,message:`${t}: ${x(e)}`})}function y(e){let t=e.trim().replace(/^@/,"").replace(/^\.\//,"");if(/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)||t.startsWith("//"))return{ok:!1,failure:"external"};if(t.startsWith("/")||t.startsWith("~")||/^[A-Za-z]:[\\/]/.test(t)||t.includes("\\")||t.includes("\0"))return{ok:!1,failure:"unsafe-path"};const r=t.split("/").filter(Boolean);return!t||!P.test(t)||r.some(n=>n==="."||n==="..")?{ok:!1,failure:"unsafe-path"}:!t.endsWith("/")&&!t.toLowerCase().endsWith(".md")?{ok:!1,failure:"malformed"}:(t=t.replace(/^\.\//,""),{ok:!0,target:t})}function F(e){return`markdown-link-target-${e}`}function B(e){return`raw-target-${e}`}function M(e,t){return e.startsWith("@")||t.includes("/")||t.includes("\\")||t.startsWith(".")||t.startsWith("~")||t.toLowerCase().endsWith(".md")||/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)}function I(e,t){if(!t||!Y.test(e)||z(T(t,e)))return e;const r=`docs/epics/${e}`;return z(T(t,r))?r:e}function m(e){return Object.freeze([...e])}function V(e){return Buffer.byteLength(e,"utf8")>D||!new RegExp("\\p{L}","u").test(e)||/[\p{Cc}\p{Cf}\p{Cs}\p{Zl}\p{Zp}`\\]/u.test(e)||/\$\(|\$\{|&&|\|\||:\/\//u.test(e)||/(?:^|[^\p{L}\p{N}_])(?:--|-[a-z]|\*[a-z]|@[a-z./~])/iu.test(e)||/(?:^|[^\p{L}\p{N}_])(?:docs\/(?:epics|stories)\/|epic-[a-z0-9._-]+\.md\b|[a-z0-9._-]+\.story\.md\b)/iu.test(e)?!1:!e.includes("](")&&!/^(?:P[0-9]+(?:\.[0-9]+)*|EPIC-[0-9]+)[.!?]*$/i.test(e)}function L(e){const t=E.exec(e);if(!t)return{prefix:e,hasAdvisory:!1};const r=e.slice(t.index+t[0].length).replace(/^[ \t]+/u,"");return V(r)?{prefix:e.slice(0,t.index),hasAdvisory:!0}:null}function k(e){return Object.freeze({ok:!0,args:typeof e=="string"?e:"",changed:!1,reasonCodes:m(["yoloop-target-unchanged"])})}function K(e){const t=e.match(/^(\S+)(.*)$/u);return!t||!$.test(t[2])?null:{targetToken:t[1],flags:t[2]}}function S(e,t={}){const r=w(e);if(!r)return k(e);const n=[];r.agentSelectorRemoved&&n.push("agent-selector-removed");const o=r.remainder;if(!o){const i=r.triggerToken;return Object.freeze({ok:!0,args:i,changed:i!==e,reasonCodes:m(n.length>0?n:["yoloop-target-unchanged"])})}const s=[...o.matchAll(v)],f=o.startsWith("[")||o.includes("](");if(s.length>1)return a("markdown-link-target-ambiguous");if(f&&s.length===0)return a("markdown-link-target-malformed");const c=s[0];if(c&&c.index!==0)return a("markdown-link-target-ambiguous");const h=L(c?o.slice(c[0].length):o);if(!h)return a("workflow-advisory-invalid");const{prefix:l,hasAdvisory:d}=h;if(d&&n.push("workflow-advisory-root-only"),c){if(!$.test(l))return a("markdown-link-target-ambiguous");const i=y(c[1]);if(!i.ok)return a(F(i.failure));if(d&&i.target.endsWith("/"))return a("workflow-advisory-invalid");const p=I(i.target,t.projectRoot);return n.push("markdown-link-target-normalized"),p!==i.target&&n.push("basename-target-canonicalized"),Object.freeze({ok:!0,args:`${r.triggerToken} @${p}${l}`,changed:!0,reasonCodes:m(n)})}const u=K(l);if(d&&!u)return a("workflow-advisory-invalid");if(u){const i=u.targetToken.replace(/^@/,"");let p=i;if(M(u.targetToken,i)&&!R.test(i)){const A=y(i);if(!A.ok)return a(B(A.failure));p=A.target}if(d&&!R.test(p)&&!p.toLowerCase().endsWith(".md"))return a("workflow-advisory-invalid");const _=I(p,t.projectRoot);if(_!==i)return n.push("basename-target-canonicalized"),Object.freeze({ok:!0,args:`${r.triggerToken} @${_}${u.flags}`,changed:!0,reasonCodes:m(n)})}const g=`${r.triggerToken}${l?` ${l}`:""}`;return Object.freeze({ok:!0,args:g,changed:g!==e,reasonCodes:m(n.length>0?n:["yoloop-target-unchanged"])})}function H(e){const t=G(e);if(!t)return k(e);const{remainder:r}=t,n=r.startsWith("["),o=r.match(/^\S+/u)?.[0];if(!n&&(!o||!/^(?:@?(?:\.\/)?docs\/stories\/|\S+\.story\.md$)/.test(o))||!n&&!E.test(r))return k(e);const s=[...r.matchAll(v)],f=()=>a("story-target-invalid","INVALID_YOLO_TARGET");if(s.length>1||n&&s[0]?.index!==0||!n&&s.length>0)return f();const c=s[0],h=c?.[1]??o,l=y(h);if(!l.ok||!Z.test(l.target))return f();const d=L(r.slice(c?c[0].length:h.length));if(!d)return a("workflow-advisory-invalid","INVALID_YOLO_TARGET");const u=j.exec(d.prefix);if(!u)return f();const g=[];t.agentSelectorRemoved&&g.push("agent-selector-removed"),c&&g.push("markdown-story-target-normalized"),d.hasAdvisory&&g.push("workflow-advisory-root-only");const i=u[1]?` ${u[1]}`:"";return Object.freeze({ok:!0,args:`*${t.triggerToken.replace(/^\*/,"").toLowerCase()} @${l.target}${i}`,changed:!0,reasonCodes:m(g)})}function Q(e){return N(e)?S(e):H(e)}function U(e,t){const r=S(e,{projectRoot:t});if(!r.ok)return null;const n=w(r.args);if(!n?.remainder)return null;const o=n.remainder.match(/(?:^|\s)@([^\s]+)/);if(o)return o[1];const s=n.remainder.split(/\s+/).find(f=>f.length>0&&!f.startsWith("-"));return s?s.replace(/^(?:"|')|(?:"|')$/g,""):null}export{U as extractYoloopTargetPath,N as isYoloopInvocation,Q as normalizeWorkflowTargetArgs,H as normalizeYoloStoryTargetArgs,S as normalizeYoloopTargetArgs,G as parseYoloStoryInvocation,w as parseYoloopInvocation};
1
+ import{existsSync as _,realpathSync as R}from"node:fs";import{isAbsolute as A,relative as T,resolve as $,sep as E}from"node:path";import{formatFrontmatterDiagnostic as P}from"../errors/frontmatter-diagnostics.js";const Y=/^\*?(yoloop|auto-yolo|epic-runner|story-runner|loop-yolo|auto-epic)(?=\s|$)/i,j=/^\*?yolo(?=\s|$)/i,Z=/^@neocortex(?:-root)?(?![-\w])\s*/i,O=/\[[^\]\r\n]*\]\(([^)\r\n]+)\)/g,D=/^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*\/?$/,G=/^epic-[A-Za-z0-9._-]+\.md$/i,b=/^(?:P[0-9]+|EPIC-[0-9]+)$/i,L=/^(?:[ \t]+--[a-z][a-z0-9-]*)*$/,N=/^docs\/stories\/[A-Za-z0-9][A-Za-z0-9._-]{0,79}\.story\.md$/,F=/^(?:[ \t]+(branchless-preparation|story-worktree-phase-1|story-worktree-phase-2))?$/,I=/[ \t]+—(?=[ \t]|$)/u,B=2048;function z(e){return C(e,Y)}function M(e){return C(e,j)}function C(e,r){if(typeof e!="string")return null;let t=e.trimStart(),n=!1;const o=t.match(Z);o&&(t=t.slice(o[0].length).trimStart(),n=!0);const a=t.match(r);return a?Object.freeze({triggerToken:a[0],remainder:t.slice(a[0].length).trim(),agentSelectorRemoved:n}):null}function V(e){return z(e)!==null}function c(e,r="INVALID_YOLOOP_TARGET"){return Object.freeze({ok:!1,errorCode:r,reasonCode:e,message:`${r}: ${P(e)}`})}function k(e,r={}){let t=e.trim();if(r.markdown&&(t.startsWith("<")||t.endsWith(">"))){if(!/^<[^<>\r\n]+>$/.test(t))return{ok:!1,failure:"malformed"};t=t.slice(1,-1)}if(t=t.replace(/^@/,"").replace(/^\.\//,""),t.startsWith("//"))return{ok:!1,failure:"external"};if(r.markdown&&A(t)){const o=r.absoluteRoot;if(!o||!A(o)||t.includes("\0")||t.split(/[\\/]/).includes(".."))return{ok:!1,failure:"unsafe-path"};const a=T(o,t);if(!a||A(a)||a===".."||a.startsWith(`..${E}`))return{ok:!1,failure:"unsafe-path"};if(r.verifyAbsolutePhysical)try{const i=T(R(o),R(t)),g=process.platform==="win32"?i.toLowerCase():i,u=process.platform==="win32"?a.toLowerCase():a;if(g!==u)return{ok:!1,failure:"unsafe-path"}}catch{return{ok:!1,failure:"unsafe-path"}}const l=k(a.split(E).join("/"));return l.ok?{ok:!0,target:l.target,absoluteCanonicalized:!0}:l}if(/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t))return{ok:!1,failure:"external"};if(t.startsWith("/")||t.startsWith("~")||/^[A-Za-z]:[\\/]/.test(t)||t.includes("\\")||t.includes("\0"))return{ok:!1,failure:"unsafe-path"};const n=t.split("/").filter(Boolean);return!t||!D.test(t)||n.some(o=>o==="."||o==="..")?{ok:!1,failure:"unsafe-path"}:!t.endsWith("/")&&!t.toLowerCase().endsWith(".md")?{ok:!1,failure:"malformed"}:(t=t.replace(/^\.\//,""),{ok:!0,target:t,absoluteCanonicalized:!1})}function K(e){return`markdown-link-target-${e}`}function H(e){return`raw-target-${e}`}function J(e,r){return e.startsWith("@")||r.includes("/")||r.includes("\\")||r.startsWith(".")||r.startsWith("~")||r.toLowerCase().endsWith(".md")||/^[A-Za-z][A-Za-z0-9+.-]*:/.test(r)}function S(e,r){if(!r||!G.test(e)||_($(r,e)))return e;const t=`docs/epics/${e}`;return _($(r,t))?t:e}function m(e){return Object.freeze([...e])}function X(e){return Buffer.byteLength(e,"utf8")>B||!new RegExp("\\p{L}","u").test(e)||/[\p{Cc}\p{Cf}\p{Cs}\p{Zl}\p{Zp}`\\]/u.test(e)||/\$\(|\$\{|&&|\|\||:\/\//u.test(e)||/(?:^|[^\p{L}\p{N}_])(?:--|-[a-z]|\*[a-z]|@[a-z./~])/iu.test(e)||/(?:^|[^\p{L}\p{N}_])(?:docs\/(?:epics|stories)\/|epic-[a-z0-9._-]+\.md\b|[a-z0-9._-]+\.story\.md\b)/iu.test(e)?!1:!e.includes("](")&&!/^(?:P[0-9]+(?:\.[0-9]+)*|EPIC-[0-9]+)[.!?]*$/i.test(e)}function W(e){const r=I.exec(e);if(!r)return{prefix:e,hasAdvisory:!1};const t=e.slice(r.index+r[0].length).replace(/^[ \t]+/u,"");return X(t)?{prefix:e.slice(0,r.index),hasAdvisory:!0}:null}function y(e){return Object.freeze({ok:!0,args:typeof e=="string"?e:"",changed:!1,reasonCodes:m(["yoloop-target-unchanged"])})}function q(e){const r=e.match(/^(\S+)(.*)$/u);return!r||!L.test(r[2])?null:{targetToken:r[1],flags:r[2]}}function x(e,r={}){const t=z(e);if(!t)return y(e);const n=[];t.agentSelectorRemoved&&n.push("agent-selector-removed");const o=t.remainder;if(!o){const s=t.triggerToken;return Object.freeze({ok:!0,args:s,changed:s!==e,reasonCodes:m(n.length>0?n:["yoloop-target-unchanged"])})}const a=[...o.matchAll(O)],l=o.startsWith("[")||o.includes("](");if(a.length>1)return c("markdown-link-target-ambiguous");if(l&&a.length===0)return c("markdown-link-target-malformed");const i=a[0];if(i&&i.index!==0)return c("markdown-link-target-ambiguous");const g=W(i?o.slice(i[0].length):o);if(!g)return c("workflow-advisory-invalid");const{prefix:u,hasAdvisory:d}=g;if(d&&n.push("workflow-advisory-root-only"),i){if(!L.test(u))return c("markdown-link-target-ambiguous");const s=k(i[1],{markdown:!0,absoluteRoot:r.absoluteRoot??r.projectRoot,verifyAbsolutePhysical:r.verifyAbsolutePhysical});if(!s.ok)return c(K(s.failure));if(d&&s.target.endsWith("/"))return c("workflow-advisory-invalid");const h=S(s.target,r.projectRoot);return n.push("markdown-link-target-normalized"),s.absoluteCanonicalized&&n.push("absolute-target-root-canonicalized"),h!==s.target&&n.push("basename-target-canonicalized"),Object.freeze({ok:!0,args:`${t.triggerToken} @${h}${u}`,changed:!0,reasonCodes:m(n)})}const f=q(u);if(d&&!f)return c("workflow-advisory-invalid");if(f){const s=f.targetToken.replace(/^@/,"");let h=s;if(J(f.targetToken,s)&&!b.test(s)){const w=k(s);if(!w.ok)return c(H(w.failure));h=w.target}if(d&&!b.test(h)&&!h.toLowerCase().endsWith(".md"))return c("workflow-advisory-invalid");const v=S(h,r.projectRoot);if(v!==s)return n.push("basename-target-canonicalized"),Object.freeze({ok:!0,args:`${t.triggerToken} @${v}${f.flags}`,changed:!0,reasonCodes:m(n)})}const p=`${t.triggerToken}${u?` ${u}`:""}`;return Object.freeze({ok:!0,args:p,changed:p!==e,reasonCodes:m(n.length>0?n:["yoloop-target-unchanged"])})}function Q(e){const r=M(e);if(!r)return y(e);const{remainder:t}=r,n=t.startsWith("["),o=t.match(/^\S+/u)?.[0];if(!n&&(!o||!/^(?:@?(?:\.\/)?docs\/stories\/|\S+\.story\.md$)/.test(o))||!n&&!I.test(t))return y(e);const a=[...t.matchAll(O)],l=()=>c("story-target-invalid","INVALID_YOLO_TARGET");if(a.length>1||n&&a[0]?.index!==0||!n&&a.length>0)return l();const i=a[0],g=i?.[1]??o,u=k(g);if(!u.ok||!N.test(u.target))return l();const d=W(t.slice(i?i[0].length:g.length));if(!d)return c("workflow-advisory-invalid","INVALID_YOLO_TARGET");const f=F.exec(d.prefix);if(!f)return l();const p=[];r.agentSelectorRemoved&&p.push("agent-selector-removed"),i&&p.push("markdown-story-target-normalized"),d.hasAdvisory&&p.push("workflow-advisory-root-only");const s=f[1]?` ${f[1]}`:"";return Object.freeze({ok:!0,args:`*${r.triggerToken.replace(/^\*/,"").toLowerCase()} @${u.target}${s}`,changed:!0,reasonCodes:m(p)})}function re(e,r={}){return V(e)?x(e,r):Q(e)}function ne(e,r){const t=x(e,{projectRoot:r});if(!t.ok)return null;const n=z(t.args);if(!n?.remainder)return null;const o=n.remainder.match(/(?:^|\s)@([^\s]+)/);if(o)return o[1];const a=n.remainder.split(/\s+/).find(l=>l.length>0&&!l.startsWith("-"));return a?a.replace(/^(?:"|')|(?:"|')$/g,""):null}export{ne as extractYoloopTargetPath,V as isYoloopInvocation,re as normalizeWorkflowTargetArgs,Q as normalizeYoloStoryTargetArgs,x as normalizeYoloopTargetArgs,M as parseYoloStoryInvocation,z as parseYoloopInvocation};
@@ -1,12 +1,12 @@
1
1
  /** Generated by scripts/generate-public-catalog-projections.mjs. Do not edit. */
2
2
  export const PUBLIC_PROJECTION_BUNDLE = {
3
3
  "schemaVersion": "PublicProjectionBundle/1.0",
4
- "generationId": "sha256:137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04",
5
- "sourceHash": "137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04",
6
- "catalogHash": "0f452979cb84c34476fd478379ee5c680d670f31065fb5ac51f19d1160f63c89",
7
- "publicProjectionHash": "552f6aa4b4e6d121be460f9cde0c3bc0ef2284fcbd6d780ade4860d5e4032ed7",
8
- "stageProjectionHash": "3492958695bf9d80c4db5e0ba63cf89f1b826df8282f24600018651ecabdaa3b",
9
- "compilationHash": "ef6dbdd72a65ae50ea6379e04ab5381a91a2107c714986354f6f59a8ea53583c",
4
+ "generationId": "sha256:66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c",
5
+ "sourceHash": "66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c",
6
+ "catalogHash": "7136394eeab964e406ecaee996acbf2478b30c4af4390fceb77ef4d0ef5f77fe",
7
+ "publicProjectionHash": "403e8875dcf8aaeaef1d0c1375cf1ecaaba2103279570f003ca96dbbc3d56cb1",
8
+ "stageProjectionHash": "28a2808ec5a6df55f53585b041684e780a4724f7d09104fca37f0c003c626407",
9
+ "compilationHash": "78f25b2f939a778ba2025b247f4219783adc62fa8bf6d3aeeed8bfdade1e6870",
10
10
  "registry": {
11
11
  "version": "1.0.0",
12
12
  "checksum": "184a2d616e0734fd3173d60889d74bae031280513831ec1f0a3a8c36959d2994"
@@ -16,41 +16,41 @@ export const PUBLIC_PROJECTION_BUNDLE = {
16
16
  "kind": "catalog",
17
17
  "schemaVersion": "ExecutableGraphCatalogPublicProjection/1.0",
18
18
  "relativePath": "catalog.json",
19
- "sha256": "cef5eeebd75076c029e46bca28450eacbe329cb0f57151f6bc40faaecc4affdf",
19
+ "sha256": "8d08b618f502fb5c550868e5463f1daa99e43193bcf1986981fef32ee3506273",
20
20
  "entryCount": 97,
21
- "generationId": "sha256:137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04"
21
+ "generationId": "sha256:66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c"
22
22
  },
23
23
  {
24
24
  "kind": "commands",
25
25
  "schemaVersion": "CommandRegistryPublicProjection/1.0",
26
26
  "relativePath": "commands.json",
27
- "sha256": "38e967e221ebab7605009c5113cdbd2f6b5b0243f17fd1006191c932a08c0779",
27
+ "sha256": "9b463f81d448730f691812b771713dc33660587df728ffc15e1fddc12ec89a2d",
28
28
  "entryCount": 62,
29
- "generationId": "sha256:137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04"
29
+ "generationId": "sha256:66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c"
30
30
  },
31
31
  {
32
32
  "kind": "progress-view",
33
33
  "schemaVersion": "ProgressViewContractProjection/1.0",
34
34
  "relativePath": "progress-view.json",
35
- "sha256": "92e8e5f2866ad8e51839ba089db703f02ee2391f830e0baa87735719f442dd0b",
35
+ "sha256": "b053376656101802f877d747b0684e2c78a5e94aff38891452ea3edf2a1ba50a",
36
36
  "entryCount": 1,
37
- "generationId": "sha256:137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04"
37
+ "generationId": "sha256:66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c"
38
38
  },
39
39
  {
40
40
  "kind": "stages",
41
41
  "schemaVersion": "ExecutableGraphStageProjection/1.0",
42
42
  "relativePath": "stages.json",
43
- "sha256": "f2fe325243c432718c2861a726fb2a53ee9c886f715acfd51ca7c82c92f68fd3",
43
+ "sha256": "d6cb15182e8181c975818807d4e2f82be39d16219f76018cc3507fd971df27d5",
44
44
  "entryCount": 85,
45
- "generationId": "sha256:137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04"
45
+ "generationId": "sha256:66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c"
46
46
  },
47
47
  {
48
48
  "kind": "surfaces",
49
49
  "schemaVersion": "PublicProjectionSurfaces/1.0",
50
50
  "relativePath": "surfaces.json",
51
- "sha256": "d38132db0ad2986acf9452cab72e5655d6f49e6aad4aab06c95245e0a16cf141",
51
+ "sha256": "8c49c753595ad6a77863d37af2e55f4f88b7d5272bc91726e9e60b009d91d053",
52
52
  "entryCount": 6,
53
- "generationId": "sha256:137c29f9194f93ba83d457dcd67a4df28f709c8c2bb42e883cb86553a03b4a04"
53
+ "generationId": "sha256:66b5805094c0093642da7800ebdaeabe2f58e31b8d095a02249002b44b01f40c"
54
54
  }
55
55
  ],
56
56
  "compatibility": {
@@ -143,7 +143,7 @@ export const PUBLIC_PROJECTION_BUNDLE = {
143
143
  }
144
144
  ],
145
145
  "publicSafe": true,
146
- "bundleHash": "18f2220180f7ed7325900c609a29ad61ad66bf7fecfb55e0b441ef2cd55e886e"
146
+ "bundleHash": "3deb86167d8bf256a222abbb1926e5981ec7bb9c5bcb50fb443dffe51ba0b0c2"
147
147
  };
148
148
  export const PUBLIC_PROJECTION_GENERATION_ID = PUBLIC_PROJECTION_BUNDLE.generationId;
149
149
  export const PUBLIC_PROJECTION_BUNDLE_HASH = PUBLIC_PROJECTION_BUNDLE.bundleHash;
@@ -1,4 +1,4 @@
1
- # 🧠 Neocortex v4.66.23 | OrNexus Team
1
+ # 🧠 Neocortex v4.66.25 | OrNexus Team
2
2
 
3
3
  This project uses Neocortex, a Development Orchestrator.
4
4
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: neocortex
3
- description: "🧠 Neocortex v4.66.23 | OrNexus Team — Development orchestrator candidate (native-needs-validation)."
3
+ description: "🧠 Neocortex v4.66.25 | 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
3
- description: "🧠 Neocortex v4.66.23 | OrNexus Team"
3
+ description: "🧠 Neocortex v4.66.25 | OrNexus Team"
4
4
  ---
5
5
 
6
6
  <!--
@@ -4,14 +4,13 @@ agent:
4
4
  name: 'Neocortex Root Agent'
5
5
  title: 'Development Orchestrator (Root alias of neocortex)'
6
6
  icon: '>'
7
- version: '4.66.23'
7
+ version: '4.66.25'
8
8
  architecture: 'thin-client'
9
9
  module: stand-alone
10
10
  hasSidecar: false
11
11
  language: 'pt-BR'
12
12
  resolution: 'remote'
13
13
 
14
- model: opus
15
14
 
16
15
  tools:
17
16
  - Bash
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: neocortex-root
3
- description: "🧠 Neocortex Root Agent v4.66.23 | OrNexus Team"
4
- model: opus
3
+ description: "🧠 Neocortex Root Agent v4.66.25 | OrNexus Team"
5
4
  color: blue
6
5
  tools:
7
6
  # File operations
@@ -113,7 +112,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
113
112
  ┌────────────────────────────────────────────────────────────┐
114
113
  │ │
115
114
  │ ####### N E O C O R T E X │
116
- │ ### ######## v4.66.23 │
115
+ │ ### ######## v4.66.25 │
117
116
  │ ######### ##### │
118
117
  │ ## ############## Development Orchestrator │
119
118
  │ ## ### ###### ## OrNexus Team │
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: neocortex-sentinel
3
3
  description: "Neocortex internal per-story child; dispatched only by the neocortex orchestrator, never for user requests"
4
- model: opus
5
4
  color: blue
6
5
  permissionMode: bypassPermissions
7
6
  tools:
@@ -102,7 +101,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
102
101
  ┌────────────────────────────────────────────────────────────┐
103
102
  │ │
104
103
  │ ####### N E O C O R T E X │
105
- │ ### ######## v4.66.23 │
104
+ │ ### ######## v4.66.25 │
106
105
  │ ######### ##### │
107
106
  │ ## ############## Development Orchestrator │
108
107
  │ ## ### ###### ## OrNexus Team │
@@ -4,14 +4,13 @@ agent:
4
4
  name: 'Neocortex'
5
5
  title: 'Development Orchestrator'
6
6
  icon: '>'
7
- version: '4.66.23'
7
+ version: '4.66.25'
8
8
  architecture: 'thin-client'
9
9
  module: stand-alone
10
10
  hasSidecar: false
11
11
  language: 'pt-BR'
12
12
  resolution: 'remote'
13
13
 
14
- model: opus
15
14
 
16
15
  tools:
17
16
  - Bash
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: neocortex
3
- description: "🧠 Neocortex v4.66.23 | OrNexus Team"
4
- model: opus
3
+ description: "🧠 Neocortex v4.66.25 | OrNexus Team"
5
4
  color: blue
6
5
  permissionMode: bypassPermissions
7
6
  tools:
@@ -113,7 +112,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
113
112
  ┌────────────────────────────────────────────────────────────┐
114
113
  │ │
115
114
  │ ####### N E O C O R T E X │
116
- │ ### ######## v4.66.23 │
115
+ │ ### ######## v4.66.25 │
117
116
  │ ######### ##### │
118
117
  │ ## ############## Development Orchestrator │
119
118
  │ ## ### ###### ## OrNexus Team │
@@ -28,7 +28,7 @@ returned instructions.
28
28
 
29
29
  <!-- END: Plugin Conflict Prevention -->
30
30
 
31
- # Neocortex v4.66.23 | OrNexus Team
31
+ # Neocortex v4.66.25 | 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.23 | OrNexus Team — Development orchestrator for direct @neocortex requests."
4
+ description = "🧠 Neocortex v4.66.25 | 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.23 | OrNexus Team"
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 │
118
+ │ ### ######## v4.66.25 │
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.23 | OrNexus Team — Route explicit Neocortex *commands through the public thin client in DeepSeek Harness."
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 | OrNexus Team"
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 │
76
+ │ ### ######## v4.66.25 │
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.23 | OrNexus Team"
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 │
75
+ │ ### ######## v4.66.25 │
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.23 | OrNexus Team — Run development orchestration commands through the public thin client."
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 | OrNexus Team — Development orchestrator candidate (native-needs-validation)."
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 | OrNexus Team — Run Neocortex commands through the public thin client in OpenClaw."
3
+ description: "🧠 Neocortex v4.66.25 | 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.23 (Pro) | OrNexus Team — Development orchestrator for *yoloop."
3
+ description: "🧠 Neocortex Root Agent v4.66.25 (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.23 │
77
+ │ ### ######## v4.66.25 │
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.23 (Pro) | OrNexus Team — Development orchestrator for *yoloop."
3
+ description: "🧠 Neocortex v4.66.25 (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.23 │
76
+ │ ### ######## v4.66.25 │
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.23 | OrNexus Team"
3
+ description: "Neocortex v4.66.25 | 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.23 │
85
+ │ ### ######## v4.66.25 │
86
86
  │ ######### ##### │
87
87
  │ ## ############## Development Orchestrator │
88
88
  │ ## ### ###### ## OrNexus Team │