@ornexus/neocortex 4.66.10 → 4.66.11
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/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/published-story-reconciliation.d.ts +15 -0
- package/packages/client/dist/git/published-story-reconciliation.js +4 -2
- package/packages/client/dist/license/license-client.js +1 -1
- package/packages/client/dist/runner-cli.js +0 -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 +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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const r="support@neocortex.sh",c={AUTH_REFRESH_REQUIRED:{en:{summary:"Authentication requires a causal check.",whatHappened:"Credentials are configured, but the reason a valid token is unavailable was not classified. The current login and credential store were preserved.",whatToDo:"Run the local read-only authentication doctor, then follow its cause-specific action. Do not re-activate unless revocation is confirmed.",command:"neocortex-client auth-doctor --format plain"},"pt-BR":{summary:"A autentica\xE7\xE3o exige uma verifica\xE7\xE3o causal.",whatHappened:"As credenciais est\xE3o configuradas, mas a causa da indisponibilidade de um token v\xE1lido n\xE3o foi classificada. O login atual e o store de credenciais foram preservados.",whatToDo:"Execute o diagn\xF3stico local somente leitura e siga a a\xE7\xE3o espec\xEDfica da causa. N\xE3o reative sem revoga\xE7\xE3o confirmada.",command:"neocortex-client auth-doctor --format plain"}},AUTH_EXPIRED:{en:{summary:"Your session has expired.",whatHappened:"The token we use to authenticate your CLI has expired. This is normal and happens every few hours.",whatToDo:"Re-activate with the license key that was emailed to you.",command:"neocortex activate YOUR-LICENSE-KEY",url:"https://neocortex.sh/portal"},"pt-BR":{summary:"Sua sess\xE3o expirou.",whatHappened:"O token de autentica\xE7\xE3o do CLI expirou. Isso \xE9 normal e acontece a cada poucas horas.",whatToDo:"Reative o CLI com a license key que voc\xEA recebeu por email.",command:"neocortex activate SUA-LICENSE-KEY",url:"https://neocortex.sh/portal"}},UPGRADE_REQUIRED:{en:{summary:"Your CLI version is outdated.",whatHappened:"The server requires a newer CLI version. Older versions are not allowed for security and compatibility reasons.",whatToDo:"Install the latest CLI globally with npm.",command:"npm install -g @ornexus/neocortex@latest"},"pt-BR":{summary:"Sua vers\xE3o do CLI est\xE1 desatualizada.",whatHappened:"O servidor exige uma vers\xE3o mais recente do CLI. Vers\xF5es antigas n\xE3o s\xE3o permitidas por motivos de seguran\xE7a e compatibilidade.",whatToDo:"Instale a vers\xE3o mais recente globalmente via npm.",command:"npm install -g @ornexus/neocortex@latest"}},RATE_LIMITED:{en:{summary:"You sent too many requests in a short window.",whatHappened:"You hit the rate limit for your plan. This protects the service from abuse and keeps it fast for everyone.",whatToDo:"Wait a few seconds and try again. If you hit this often, upgrading your plan raises the limit.",url:"https://neocortex.sh/portal/plans"},"pt-BR":{summary:"Voc\xEA fez muitas requisi\xE7\xF5es em pouco tempo.",whatHappened:"O limite de taxa do seu plano foi atingido. Isso protege o servi\xE7o contra abuso e mant\xE9m a velocidade para todos.",whatToDo:"Espere alguns segundos e tente novamente. Se isso acontece com frequ\xEAncia, fazer upgrade do seu plano aumenta o limite.",url:"https://neocortex.sh/portal/plans"}},TRIGGER_NOT_ALLOWED:{en:{summary:"This command is not available on your current plan.",whatHappened:"You tried to use a trigger that requires a paid plan (Pro or Enterprise).",whatToDo:"See the full comparison and upgrade in the portal.",url:"https://neocortex.sh/portal/plans"},"pt-BR":{summary:"Este comando n\xE3o est\xE1 dispon\xEDvel no seu plano atual.",whatHappened:"Voc\xEA tentou usar um trigger que requer um plano pago (Pro ou Enterprise).",whatToDo:"Veja a compara\xE7\xE3o completa e fa\xE7a upgrade no portal.",url:"https://neocortex.sh/portal/plans"}},QUOTA_EXCEEDED:{en:{summary:"Daily quota reached.",whatHappened:"You have used all invocations allowed by your plan today. Quotas reset at midnight UTC.",whatToDo:"Wait for the daily reset, or upgrade your plan for a higher quota.",url:"https://neocortex.sh/portal/plans"},"pt-BR":{summary:"Quota di\xE1ria atingida.",whatHappened:"Voc\xEA usou todas as invoca\xE7\xF5es permitidas pelo seu plano hoje. As quotas s\xE3o resetadas \xE0 meia-noite UTC.",whatToDo:"Aguarde o reset di\xE1rio ou fa\xE7a upgrade do plano para uma quota maior.",url:"https://neocortex.sh/portal/plans"}},SERVER_ERROR:{en:{summary:"Server error.",whatHappened:"Something went wrong on our side. We have logged the error and will investigate.",whatToDo:`Try again in a minute. If the problem persists, please contact ${r} with the details.`},"pt-BR":{summary:"Erro do servidor.",whatHappened:"Algo deu errado no nosso lado. O erro foi registrado e vamos investigar.",whatToDo:`Tente novamente em um minuto. Se o problema persistir, entre em contato: ${r}.`}},ECONNREFUSED:{en:{summary:"Cannot reach the Neocortex server.",whatHappened:"We could not open a connection to the server. This is usually a network problem on your side.",whatToDo:"Check your internet connection, any VPN or corporate proxy, and try again."},"pt-BR":{summary:"N\xE3o foi poss\xEDvel alcan\xE7ar o servidor Neocortex.",whatHappened:"N\xE3o conseguimos abrir uma conex\xE3o com o servidor. Isso geralmente \xE9 um problema de rede do seu lado.",whatToDo:"Verifique sua conex\xE3o, qualquer VPN ou proxy corporativo, e tente novamente."}},MACHINE_LIMIT_EXCEEDED:{en:{summary:"Machine limit reached.",whatHappened:"Your plan allows a limited number of active machines, and this one would exceed it.",whatToDo:"Deactivate a machine you no longer use from the portal, then re-run activate here.",url:"https://neocortex.sh/portal/machines"},"pt-BR":{summary:"Limite de m\xE1quinas atingido.",whatHappened:"Seu plano permite um n\xFAmero limitado de m\xE1quinas ativas, e esta ultrapassaria o limite.",whatToDo:"Desative uma m\xE1quina que voc\xEA n\xE3o usa mais no portal e rode activate aqui de novo.",url:"https://neocortex.sh/portal/machines"}},NOT_CONFIGURED:{en:{summary:"Neocortex is not configured on this machine.",whatHappened:"No license key was found. You need to run `neocortex activate` once before using the CLI.",whatToDo:"Get a license key from the portal and activate.",command:"neocortex activate YOUR-LICENSE-KEY",url:"https://neocortex.sh/portal"},"pt-BR":{summary:"Neocortex n\xE3o est\xE1 configurado nesta m\xE1quina.",whatHappened:"Nenhuma license key encontrada. Voc\xEA precisa rodar `neocortex activate` uma vez antes de usar o CLI.",whatToDo:"Pegue uma license key no portal e ative.",command:"neocortex activate SUA-LICENSE-KEY",url:"https://neocortex.sh/portal"}}};function n(a=process.env){return(a.LC_ALL??a.LANG??"").toLowerCase().startsWith("pt")?"pt-BR":"en"}function u(a,o=n()){const e=c[a];return e?e[o]??e.en??null:null}function p(a,o=n()){const e=o==="pt-BR",t={"near-expiry":{en:"Prepare authentication outside strict read-only mode, then retry once.",pt:"Prepare a autentica\xE7\xE3o fora do modo estritamente somente leitura e tente uma vez."},expired:{en:"Prepare authentication outside strict read-only mode.",pt:"Prepare a autentica\xE7\xE3o fora do modo estritamente somente leitura."},"store-unavailable":{en:"Restore access to the local credential store; do not delete it.",pt:"Restaure o acesso ao store local; n\xE3o o apague."},"store-corrupt":{en:"Stop and recover the credential store explicitly; do not overwrite it.",pt:"Pare e recupere o store de credenciais explicitamente; n\xE3o o sobrescreva."},"keychain-unavailable":{en:"Unlock or restore the system keychain, then retry.",pt:"Desbloqueie ou restaure o keychain do sistema e tente novamente."},"transport-error":{en:"Check connectivity and retry later; the current login was preserved.",pt:"Verifique a conex\xE3o e tente depois; o login atual foi preservado."},timeout:{en:"Stop the current recovery and retry only after its outcome is known.",pt:"Pare a recupera\xE7\xE3o atual e tente novamente somente ap\xF3s conhecer o resultado."},"rate-limited":{en:"Wait for the retry window while preserving the current login.",pt:"Aguarde a janela de nova tentativa preservando o login atual."},"service-unavailable":{en:"Retry later; do not clear local authentication.",pt:"Tente novamente depois; n\xE3o limpe a autentica\xE7\xE3o local."},revoked:{en:"Re-activate with an authorized license credential.",pt:"Reative com uma credencial de licen\xE7a autorizada.",command:e?"neocortex activate SUA-LICENSE-KEY":"neocortex activate YOUR-LICENSE-KEY"},"scope-denied":{en:"Request the required scope; do not elevate it locally.",pt:"Solicite o escopo necess\xE1rio; n\xE3o o eleve localmente."},"client-denied":{en:"Stop and restore the authorized client policy.",pt:"Pare e restaure a pol\xEDtica de cliente autorizada."},"protocol-invalid":{en:"Stop and inspect the supported authentication contract.",pt:"Pare e inspecione o contrato de autentica\xE7\xE3o suportado."},"persistence-failed":{en:"Recover explicitly; do not repeat refresh or restore an older credential.",pt:"Recupere explicitamente; n\xE3o repita o refresh nem restaure uma credencial anterior."},"rotation-uncertain":{en:"Stop and recover explicitly; do not repeat refresh.",pt:"Pare e fa\xE7a recupera\xE7\xE3o expl\xEDcita; n\xE3o repita o refresh."},"capability-unavailable":{en:"Use a supported host capability; do not export credentials.",pt:"Use uma capability de host suportada; n\xE3o exporte credenciais."},"revision-conflict":{en:"Wait for the current owner and re-read the accepted generation.",pt:"Aguarde o owner atual e releia a gera\xE7\xE3o aceita."}}[a];return{summary:e?"A autentica\xE7\xE3o requer uma a\xE7\xE3o causal.":"Authentication requires a causal action.",whatHappened:e?`A causa confirmada \xE9 ${a}; nenhum segredo ou corpo bruto foi exibido.`:`The confirmed cause is ${a}; no secret or raw response body was exposed.`,whatToDo:e?t.pt:t.en,...t.command?{command:t.command}:{}}}function l(a,o=n()){const e=[];e.push(""),e.push(`[Neocortex] ${a.summary}`),e.push("");const i=o==="pt-BR"?"O que aconteceu":"What happened",t=o==="pt-BR"?"O que fazer":"What to do",s=o==="pt-BR"?`Precisa de ajuda? ${r}`:`Need help? ${r}`;return e.push(`${i}: ${a.whatHappened}`),e.push(`${t}: ${a.whatToDo}`),a.command&&(e.push(""),e.push(` ${a.command}`)),a.url&&(e.push(""),e.push(` ${a.url}`)),e.push(""),e.push(s),e.push(""),e.join(`
|
|
2
|
-
`)}function d(
|
|
1
|
+
const r="support@neocortex.sh",c={AUTH_REFRESH_REQUIRED:{en:{summary:"Authentication requires a causal check.",whatHappened:"Credentials are configured, but the reason a valid token is unavailable was not classified. The current login and credential store were preserved.",whatToDo:"Run the local read-only authentication doctor, then follow its cause-specific action. Do not re-activate unless revocation is confirmed.",command:"neocortex-client auth-doctor --format plain"},"pt-BR":{summary:"A autentica\xE7\xE3o exige uma verifica\xE7\xE3o causal.",whatHappened:"As credenciais est\xE3o configuradas, mas a causa da indisponibilidade de um token v\xE1lido n\xE3o foi classificada. O login atual e o store de credenciais foram preservados.",whatToDo:"Execute o diagn\xF3stico local somente leitura e siga a a\xE7\xE3o espec\xEDfica da causa. N\xE3o reative sem revoga\xE7\xE3o confirmada.",command:"neocortex-client auth-doctor --format plain"}},AUTH_EXPIRED:{en:{summary:"Your session has expired.",whatHappened:"The token we use to authenticate your CLI has expired. This is normal and happens every few hours.",whatToDo:"Re-activate with the license key that was emailed to you.",command:"neocortex activate YOUR-LICENSE-KEY",url:"https://neocortex.sh/portal"},"pt-BR":{summary:"Sua sess\xE3o expirou.",whatHappened:"O token de autentica\xE7\xE3o do CLI expirou. Isso \xE9 normal e acontece a cada poucas horas.",whatToDo:"Reative o CLI com a license key que voc\xEA recebeu por email.",command:"neocortex activate SUA-LICENSE-KEY",url:"https://neocortex.sh/portal"}},UPGRADE_REQUIRED:{en:{summary:"Your CLI version is outdated.",whatHappened:"The server requires a newer CLI version. Older versions are not allowed for security and compatibility reasons.",whatToDo:"Install the latest CLI globally with npm.",command:"npm install -g @ornexus/neocortex@latest"},"pt-BR":{summary:"Sua vers\xE3o do CLI est\xE1 desatualizada.",whatHappened:"O servidor exige uma vers\xE3o mais recente do CLI. Vers\xF5es antigas n\xE3o s\xE3o permitidas por motivos de seguran\xE7a e compatibilidade.",whatToDo:"Instale a vers\xE3o mais recente globalmente via npm.",command:"npm install -g @ornexus/neocortex@latest"}},RATE_LIMITED:{en:{summary:"You sent too many requests in a short window.",whatHappened:"You hit the rate limit for your plan. This protects the service from abuse and keeps it fast for everyone.",whatToDo:"Wait a few seconds and try again. If you hit this often, upgrading your plan raises the limit.",url:"https://neocortex.sh/portal/plans"},"pt-BR":{summary:"Voc\xEA fez muitas requisi\xE7\xF5es em pouco tempo.",whatHappened:"O limite de taxa do seu plano foi atingido. Isso protege o servi\xE7o contra abuso e mant\xE9m a velocidade para todos.",whatToDo:"Espere alguns segundos e tente novamente. Se isso acontece com frequ\xEAncia, fazer upgrade do seu plano aumenta o limite.",url:"https://neocortex.sh/portal/plans"}},TRIGGER_NOT_ALLOWED:{en:{summary:"This command is not available on your current plan.",whatHappened:"You tried to use a trigger that requires a paid plan (Pro or Enterprise).",whatToDo:"See the full comparison and upgrade in the portal.",url:"https://neocortex.sh/portal/plans"},"pt-BR":{summary:"Este comando n\xE3o est\xE1 dispon\xEDvel no seu plano atual.",whatHappened:"Voc\xEA tentou usar um trigger que requer um plano pago (Pro ou Enterprise).",whatToDo:"Veja a compara\xE7\xE3o completa e fa\xE7a upgrade no portal.",url:"https://neocortex.sh/portal/plans"}},QUOTA_EXCEEDED:{en:{summary:"Daily quota reached.",whatHappened:"You have used all invocations allowed by your plan today. Quotas reset at midnight UTC.",whatToDo:"Wait for the daily reset, or upgrade your plan for a higher quota.",url:"https://neocortex.sh/portal/plans"},"pt-BR":{summary:"Quota di\xE1ria atingida.",whatHappened:"Voc\xEA usou todas as invoca\xE7\xF5es permitidas pelo seu plano hoje. As quotas s\xE3o resetadas \xE0 meia-noite UTC.",whatToDo:"Aguarde o reset di\xE1rio ou fa\xE7a upgrade do plano para uma quota maior.",url:"https://neocortex.sh/portal/plans"}},SERVER_ERROR:{en:{summary:"Server error.",whatHappened:"Something went wrong on our side. We have logged the error and will investigate.",whatToDo:`Try again in a minute. If the problem persists, please contact ${r} with the details.`},"pt-BR":{summary:"Erro do servidor.",whatHappened:"Algo deu errado no nosso lado. O erro foi registrado e vamos investigar.",whatToDo:`Tente novamente em um minuto. Se o problema persistir, entre em contato: ${r}.`}},NETWORK_ERROR:{en:{summary:"Connection to Neocortex failed.",whatHappened:"The client could not complete the HTTPS exchange. The credential store was preserved.",whatToDo:"Run the online doctor in the same terminal or editor session to check access to the API.",command:"neocortex-client doctor --json"},"pt-BR":{summary:"Falha na conex\xE3o com o Neocortex.",whatHappened:"O cliente n\xE3o conseguiu concluir a comunica\xE7\xE3o HTTPS. As credenciais locais foram preservadas.",whatToDo:"Execute o doctor no mesmo terminal ou editor para verificar o acesso \xE0 API.",command:"neocortex-client doctor --json"}},ECONNREFUSED:{en:{summary:"Cannot reach the Neocortex server.",whatHappened:"We could not open a connection to the server. This is usually a network problem on your side.",whatToDo:"Check your internet connection, any VPN or corporate proxy, and try again."},"pt-BR":{summary:"N\xE3o foi poss\xEDvel alcan\xE7ar o servidor Neocortex.",whatHappened:"N\xE3o conseguimos abrir uma conex\xE3o com o servidor. Isso geralmente \xE9 um problema de rede do seu lado.",whatToDo:"Verifique sua conex\xE3o, qualquer VPN ou proxy corporativo, e tente novamente."}},MACHINE_LIMIT_EXCEEDED:{en:{summary:"Machine limit reached.",whatHappened:"Your plan allows a limited number of active machines, and this one would exceed it.",whatToDo:"Deactivate a machine you no longer use from the portal, then re-run activate here.",url:"https://neocortex.sh/portal/machines"},"pt-BR":{summary:"Limite de m\xE1quinas atingido.",whatHappened:"Seu plano permite um n\xFAmero limitado de m\xE1quinas ativas, e esta ultrapassaria o limite.",whatToDo:"Desative uma m\xE1quina que voc\xEA n\xE3o usa mais no portal e rode activate aqui de novo.",url:"https://neocortex.sh/portal/machines"}},NOT_CONFIGURED:{en:{summary:"Neocortex is not configured on this machine.",whatHappened:"No license key was found. You need to run `neocortex activate` once before using the CLI.",whatToDo:"Get a license key from the portal and activate.",command:"neocortex activate YOUR-LICENSE-KEY",url:"https://neocortex.sh/portal"},"pt-BR":{summary:"Neocortex n\xE3o est\xE1 configurado nesta m\xE1quina.",whatHappened:"Nenhuma license key encontrada. Voc\xEA precisa rodar `neocortex activate` uma vez antes de usar o CLI.",whatToDo:"Pegue uma license key no portal e ative.",command:"neocortex activate SUA-LICENSE-KEY",url:"https://neocortex.sh/portal"}}};function n(o=process.env){return(o.LC_ALL??o.LANG??"").toLowerCase().startsWith("pt")?"pt-BR":"en"}function u(o,a=n()){const e=c[o];return e?e[a]??e.en??null:null}function p(o,a=n()){const e=a==="pt-BR",t={"near-expiry":{en:"Prepare authentication outside strict read-only mode, then retry once.",pt:"Prepare a autentica\xE7\xE3o fora do modo estritamente somente leitura e tente uma vez."},expired:{en:"Prepare authentication outside strict read-only mode.",pt:"Prepare a autentica\xE7\xE3o fora do modo estritamente somente leitura."},"store-unavailable":{en:"Restore access to the local credential store; do not delete it.",pt:"Restaure o acesso ao store local; n\xE3o o apague."},"store-corrupt":{en:"Stop and recover the credential store explicitly; do not overwrite it.",pt:"Pare e recupere o store de credenciais explicitamente; n\xE3o o sobrescreva."},"keychain-unavailable":{en:"Unlock or restore the system keychain, then retry.",pt:"Desbloqueie ou restaure o keychain do sistema e tente novamente."},"transport-error":{en:"Check connectivity and retry later; the current login was preserved.",pt:"Verifique a conex\xE3o e tente depois; o login atual foi preservado."},timeout:{en:"Stop the current recovery and retry only after its outcome is known.",pt:"Pare a recupera\xE7\xE3o atual e tente novamente somente ap\xF3s conhecer o resultado."},"rate-limited":{en:"Wait for the retry window while preserving the current login.",pt:"Aguarde a janela de nova tentativa preservando o login atual."},"service-unavailable":{en:"Retry later; do not clear local authentication.",pt:"Tente novamente depois; n\xE3o limpe a autentica\xE7\xE3o local."},revoked:{en:"Re-activate with an authorized license credential.",pt:"Reative com uma credencial de licen\xE7a autorizada.",command:e?"neocortex activate SUA-LICENSE-KEY":"neocortex activate YOUR-LICENSE-KEY"},"scope-denied":{en:"Request the required scope; do not elevate it locally.",pt:"Solicite o escopo necess\xE1rio; n\xE3o o eleve localmente."},"client-denied":{en:"Stop and restore the authorized client policy.",pt:"Pare e restaure a pol\xEDtica de cliente autorizada."},"protocol-invalid":{en:"Stop and inspect the supported authentication contract.",pt:"Pare e inspecione o contrato de autentica\xE7\xE3o suportado."},"persistence-failed":{en:"Recover explicitly; do not repeat refresh or restore an older credential.",pt:"Recupere explicitamente; n\xE3o repita o refresh nem restaure uma credencial anterior."},"rotation-uncertain":{en:"Stop and recover explicitly; do not repeat refresh.",pt:"Pare e fa\xE7a recupera\xE7\xE3o expl\xEDcita; n\xE3o repita o refresh."},"capability-unavailable":{en:"Use a supported host capability; do not export credentials.",pt:"Use uma capability de host suportada; n\xE3o exporte credenciais."},"revision-conflict":{en:"Wait for the current owner and re-read the accepted generation.",pt:"Aguarde o owner atual e releia a gera\xE7\xE3o aceita."}}[o];return{summary:e?"A autentica\xE7\xE3o requer uma a\xE7\xE3o causal.":"Authentication requires a causal action.",whatHappened:e?`A causa confirmada \xE9 ${o}; nenhum segredo ou corpo bruto foi exibido.`:`The confirmed cause is ${o}; no secret or raw response body was exposed.`,whatToDo:e?t.pt:t.en,...t.command?{command:t.command}:{}}}function l(o,a=n()){const e=[];e.push(""),e.push(`[Neocortex] ${o.summary}`),e.push("");const i=a==="pt-BR"?"O que aconteceu":"What happened",t=a==="pt-BR"?"O que fazer":"What to do",s=a==="pt-BR"?`Precisa de ajuda? ${r}`:`Need help? ${r}`;return e.push(`${i}: ${o.whatHappened}`),e.push(`${t}: ${o.whatToDo}`),o.command&&(e.push(""),e.push(` ${o.command}`)),o.url&&(e.push(""),e.push(` ${o.url}`)),e.push(""),e.push(s),e.push(""),e.join(`
|
|
2
|
+
`)}function d(o){if(!o||typeof o!="object")return null;const a=o;return typeof a.code=="string"&&(a.code==="ECONNREFUSED"||a.code==="ENOTFOUND"||a.code==="ETIMEDOUT"||a.code==="ECONNRESET")||typeof a.message=="string"&&(/connect/i.test(a.message)&&/refus/i.test(a.message)||/fetch failed/i.test(a.message))?"ECONNREFUSED":null}export{n as detectErrorLocale,l as formatHumanizedError,p as humanizeAuthRefreshRequired,u as humanizeError,d as inferErrorCodeFromException};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type TransportFailureCause = 'dns-resolution' | 'tls-verification' | 'connection-unavailable' | 'transport-error' | 'timeout';
|
|
2
|
+
/** Classify only known runtime error codes. Messages and addresses stay local. */
|
|
3
|
+
export declare function classifyTransportFailure(error: unknown, timedOut: boolean): TransportFailureCause;
|
|
4
|
+
/** These codes occur during DNS or connection setup, before HTTP can dispatch. */
|
|
5
|
+
export declare function mayRetryBeforeDispatch(error: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function N(_){return _ instanceof Error?_.cause instanceof Error?_.cause:_:{}}function n(_,T){const{code:E,name:r}=N(_);return T||r==="TimeoutError"||E==="UND_ERR_CONNECT_TIMEOUT"||E==="UND_ERR_HEADERS_TIMEOUT"||E==="UND_ERR_BODY_TIMEOUT"||E==="ETIMEDOUT"?"timeout":E==="ENOTFOUND"||E==="EAI_AGAIN"?"dns-resolution":E==="CERT_HAS_EXPIRED"||E==="CERT_NOT_YET_VALID"||E==="ERR_TLS_CERT_ALTNAME_INVALID"||E==="UNABLE_TO_VERIFY_LEAF_SIGNATURE"||E==="UNABLE_TO_GET_ISSUER_CERT_LOCALLY"||E==="DEPTH_ZERO_SELF_SIGNED_CERT"||E==="SELF_SIGNED_CERT_IN_CHAIN"?"tls-verification":E==="ECONNREFUSED"||E==="ENETUNREACH"||E==="EHOSTUNREACH"||E==="ECONNRESET"?"connection-unavailable":"transport-error"}function t(_){const{code:T}=N(_);return T==="EAI_AGAIN"||T==="ECONNREFUSED"||T==="ENETUNREACH"||T==="EHOSTUNREACH"||T==="UND_ERR_CONNECT_TIMEOUT"}export{n as classifyTransportFailure,t as mayRetryBeforeDispatch};
|
|
@@ -8,6 +8,21 @@ export declare function historicalStoryQaDigest(raw: string, storyId: string): s
|
|
|
8
8
|
* returned for scheduling only after a fresh physical verification each time.
|
|
9
9
|
*/
|
|
10
10
|
export declare function reconcilePublishedStoriesForYoloop(projectRoot: string, args: string): Promise<readonly PublishedStoryReconciliation[]>;
|
|
11
|
+
type PublishedCheckpointRecovery = {
|
|
12
|
+
readonly status: 'recovered';
|
|
13
|
+
readonly storyId: string;
|
|
14
|
+
readonly headSha: string;
|
|
15
|
+
} | {
|
|
16
|
+
readonly status: 'pending';
|
|
17
|
+
readonly storyId: string;
|
|
18
|
+
readonly headSha: string;
|
|
19
|
+
readonly reasonCode: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* A published epic tip can still lack its local checkpoint after an interrupted
|
|
23
|
+
* integration. Reuse checkpoint recovery before scheduling a replacement task.
|
|
24
|
+
*/
|
|
25
|
+
export declare function recoverPublishedCheckpointForYoloop(projectRoot: string, args: string, reconciliations: readonly PublishedStoryReconciliation[]): Promise<PublishedCheckpointRecovery | undefined>;
|
|
11
26
|
/** Only server-authored story-worktree phases inherit a freshly revalidated dependency. */
|
|
12
27
|
export declare function revalidatePublishedStoriesForYolo(projectRoot: string, args: string): Promise<readonly PublishedStoryReconciliation[]>;
|
|
13
28
|
export declare function revalidatePublishedStoryDependencies(projectRoot: string, epicId: string): Promise<readonly PublishedStoryReconciliation[]>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import{execFile as
|
|
2
|
-
`)
|
|
1
|
+
import{execFile as ae}from"node:child_process";import{createHash as se}from"node:crypto";import{realpath as M}from"node:fs/promises";import{promisify as ce}from"node:util";import{parseYoloopInvocation as Q}from"../yoloop/target-normalization.js";import{resolveYoloopStartTarget as ue}from"../yoloop/yoloop-start-origin-binding.js";import{recoverLegacyDirectYoloStoryCheckpoint as de,resolveDirectYoloIntegrationAuthority as he,verifyDirectYoloIntegrationCommit as fe}from"./direct-yolo-checkpoint.js";import{resolveRemoteHeadFreshOptional as z}from"./epic-lifecycle-evidence.js";import{appendStoryWorktreeEvidence as pe,isStoryWorktreeEvidenceReceiptRecord as le,mutateGitLifecycleRuntime as ye,publishedStoryReconciliationId as V,readGitLifecycleRuntime as B,readStoryWorktreeEvidence as we}from"./git-lifecycle-store.js";import{readGovernanceStateSourceSync as me}from"./governance-runtime-store.js";import{parseNeocortexTrailers as K,trailerValue as P}from"./neocortex-trailers.js";import{StoryWorktreeManager as U}from"./story-worktree-manager.js";const X=ce(ae),T=/^[a-f0-9]{64}$/,A=/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/,ge=16;function Z(e){return se("sha256").update(e).digest("hex")}function v(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function ve(e,o){let n;try{n=v(JSON.parse(e))}catch{return}if(!(n?.schemaVersion!==2||n.storyId!==o||n.publicSafe!==!0||n.status!=="qa-passed"||n.safeToContinueYoloop!==!0||!Array.isArray(n.blockingChecks)||n.blockingChecks.length!==0))return Z(e)}async function Ce(e,o){const n=Q(o);if(!n||!/^@?(?:\.\/)?docs\/epics\/epic-[A-Za-z][A-Za-z0-9_-]{0,63}\.md$/.test(n.remainder))return[];const t=ue(o);return!t||t.source!=="explicit"?[]:ee(e,t.epicId,!0)}async function Re(e,o,n){const t=Q(o)?.remainder,s=t?.match(/^@?(?:\.\/)?docs\/epics\/epic-([A-Za-z][A-Za-z0-9_-]{0,63})\.md$/)?.[1]??t?.match(/^@?((?:P|EPIC-)[0-9]+)$/i)?.[1]?.toUpperCase();if(!s)return;const h=j(e);let I;try{const m=(await h("symbolic-ref","--quiet","--short","HEAD")).trim(),k=await B(e,{required:!0}),i=k.epics[s];if(i?.branch_mode!=="epic"||i.execution_branch!==m)return;const[g,b,...N]=(await h("show","-s","--format=%H%n%P%n%B","HEAD")).split(`
|
|
2
|
+
`);if(!g||!b||!A.test(g)||!A.test(b))return;const D=K(N.join(`
|
|
3
|
+
`),["Neocortex-Story","Neocortex-Epic","Neocortex-Execution-Branch","Neocortex-Prepared-Base","Neocortex-Bundle-Digest","Neocortex-Graph-Revision","Neocortex-Claim-Revision"]);if(!D.ok)return;const a=d=>P(D.values,d),p=a("Neocortex-Story");if(!p||!/^[A-Za-z][A-Za-z0-9_-]*\.[A-Za-z0-9._-]+$/.test(p)||a("Neocortex-Epic")!==s||a("Neocortex-Execution-Branch")!==m||a("Neocortex-Prepared-Base")!==b||!["Neocortex-Bundle-Digest","Neocortex-Graph-Revision","Neocortex-Claim-Revision"].every(d=>T.test(a(d)??""))||k.stories[p]?.checkpoint||n.some(d=>d.storyId===p))return;const $=me(e);if(!$.ok||!$.value||v(v(v(JSON.parse($.value.toString("utf8")))?.stories)?.[p])?.epic_id!==s)return;I={storyId:p,headSha:g,executionBranch:m}}catch{return}const{storyId:u,headSha:f,executionBranch:S}=I;try{if(await z(h,S)!==f)return}catch{return{status:"pending",storyId:u,headSha:f,reasonCode:"direct-yolo-recovery-remote-proof-unavailable"}}const c=await de({projectRoot:e,storyId:u,commitSha:f});if(c.ok)return{status:"recovered",storyId:u,headSha:f};if(c.reasonCode==="direct-yolo-checkpoint-conflict"){const m=await B(e,{required:!0});if(v(m.stories[u]?.checkpoint)?.headSha===f)return}return{status:"pending",storyId:u,headSha:f,reasonCode:c.reasonCode}}function j(e){return async(...o)=>(await X("git",[...o],{cwd:e,encoding:"utf8",timeout:8e3,maxBuffer:4*1024*1024,env:{...process.env,GIT_OPTIONAL_LOCKS:"0",GIT_TERMINAL_PROMPT:"0"}})).stdout}async function Pe(e,o){const n=/^\s*\*?yolo\s+@(?:\.\/)?docs\/stories\/([A-Za-z][A-Za-z0-9_-]{0,63})\.[A-Za-z0-9.]+\.story\.md\s+story-worktree-phase-[12]\s*$/.exec(o);if(!n)return[];try{const s=(await X("git",["worktree","list","--porcelain","-z"],{cwd:e,encoding:"utf8",timeout:8e3,maxBuffer:1048576})).stdout.split("\0",1)[0];return s?.startsWith("worktree ")?await Se(s.slice(9),n[1]):[]}catch{return[]}}function Se(e,o){return ee(e,o,!1)}async function ee(e,o,n){const t=j(e),s=async u=>(await t("rev-parse","--verify","--quiet",`${u}^{commit}`)).trim(),h=async(u,f)=>{try{return await t("merge-base","--is-ancestor",u,f),!0}catch{return!1}},I=[];try{const u=await M((await t("rev-parse","--absolute-git-dir")).trim()),f=await M((await t("rev-parse","--path-format=absolute","--git-common-dir")).trim());if(u!==f)return[];const S=(await t("symbolic-ref","--quiet","--short","HEAD")).trim(),c=await s("HEAD"),m=await B(e,{required:!0});if(m.epics[o]?.execution_branch!==S)return[];const k=Object.values(m.storyWorktrees?.entries??{}).filter(i=>i.epicId===o&&i.executionBranch===S&&i.state==="active");if(k.length>ge)return[];for(const i of k)try{const g=await B(e,{required:!0});if(g.stories[i.storyId]?.checkpoint||k.filter(r=>r.storyId===i.storyId).length!==1||Date.parse(i.expiresAt)>Date.now())continue;const b=v(g.epics[o]?.branch_lease);if(b&&Date.parse(String(b.expiresAt))>Date.now())continue;const N=we(g,o)?.receipts??[];if(N.some(r=>r.kind==="integration-receipt"&&r.storyId===i.storyId))continue;const D=N.filter(r=>r.kind==="phase-one-receipt"&&r.storyId===i.storyId&&r.leaseId===i.leaseId&&r.graphRevision===i.graphRevision);if(D.length!==1)continue;const a=D[0],p=String(a.graphRevision),$=String(a.receiptId);if(!T.test(p)||!A.test(String(a.headSha))||a.specRef!==`docs/stories/${i.storyId}.spec.md`)continue;const H=N.filter(r=>r.kind==="published-story-reconciliation"&&r.storyId===i.storyId&&r.graphRevision===p);if(H.length>1||!n&&H.length===0)continue;const d=await he(e,i.storyId),x=d.originBinding;if(d.epicId!==o||d.executionBranch!==S||!x||x.originBranch===S||!await h(x.originHeadSha,c))continue;const l=await new U({projectRoot:e}).probe(i.leaseId);if(!l.ok||l.value.ownership!=="proven"||l.value.clean!==!0||!l.value.headSha||!A.test(l.value.headSha)||!await h(String(a.headSha),l.value.headSha))continue;const q=(await t("log","--max-count=2","--fixed-strings","--format=%H",`--grep=Neocortex-Story-Worktree-Tip: ${l.value.headSha}`,`${x.originHeadSha}..${c}`)).trim().split(`
|
|
4
|
+
`).filter(Boolean);if(q.length!==1||!A.test(q[0]))continue;const y=q[0],te=(await t("show","-s","--format=%P",y)).trim();if(!A.test(te))continue;const _=K(await t("show","-s","--format=%B",y),["Neocortex-Story-Worktree-Tip","Neocortex-Graph-Revision","Neocortex-Review-Artifact-Digest"]);if(!_.ok||P(_.values,"Neocortex-Story-Worktree-Tip")!==l.value.headSha)continue;const E=P(_.values,"Neocortex-Graph-Revision"),W=P(_.values,"Neocortex-Review-Artifact-Digest");if(!E||!T.test(E)||!W||!T.test(W))continue;const re=(await t("rev-parse",`${y}^{tree}`)).trim(),ie=(await t("rev-parse",`${l.value.headSha}^{tree}`)).trim();if(re!==ie)continue;const Y=await fe(d,i.storyId,y,{expectedGraphRevision:E});if(!Y.ok)continue;const oe=v(JSON.parse(await t("show",`${y}:.neocortex/state.json`))),F=v(v(oe?.stories)?.[i.storyId]);if(F?.epic_id!==o||JSON.stringify(F.depends_on??[])!==JSON.stringify(d.story.depends_on??[]))continue;const C=String(a.specRef),R=`docs/stories/${i.storyId}.story.md`;if(Z(await t("show",`${y}:${C}`))!==a.specDigest||Z(await t("show",`${c}:${C}`))!==a.specDigest||await t("show",`${y}:${R}`)!==await t("show",`${c}:${R}`))continue;await t("diff","--quiet","HEAD","--",".neocortex/state.json",C,R);const L=ve(await t("show",`${y}:.neocortex/stories/${i.storyId}/qa-gate-result.json`),i.storyId);if(!L)continue;const w=await z(t,x.originBranch);if(!w)continue;try{await s(w)}catch{if(!n||(await t("fetch","--quiet","--no-tags","--no-write-fetch-head","--refmap=","origin",w),await s(w)!==w))continue}if(!await h(x.originHeadSha,w)||!await h(y,w))continue;const G={schemaVersion:1,kind:"published-story-reconciliation",epicId:o,storyId:i.storyId,graphRevision:p,historicalGraphRevision:E,phaseOneReceiptId:$,executionBranch:S,executionHeadSha:c,originBranch:x.originBranch,originHeadSha:w,commitSha:y,bundleDigest:Y.value.bundleDigest,historicalQaDigest:L},J=async()=>{if(await s("HEAD")!==c||await s(`refs/heads/${S}`)!==c||await z(t,x.originBranch)!==w)throw new Error("published-story-reconciliation-ref-raced");const r=await new U({projectRoot:e}).probe(i.leaseId);if(!r.ok||r.value.ownership!=="proven"||r.value.clean!==!0||r.value.headSha!==l.value.headSha)throw new Error("published-story-reconciliation-worktree-raced");await t("diff","--quiet","HEAD","--",".neocortex/state.json",C,R)};if(H[0]){const r=H[0],ne={...G,executionHeadSha:r.executionHeadSha,originHeadSha:r.originHeadSha};if(r.receiptId!==V(ne)||!await h(r.executionHeadSha,c)||!await h(r.originHeadSha,w)||(await J(),(await B(e,{required:!0})).revision!==g.revision))continue;I.push(r);continue}const O=Object.freeze({...G,receiptId:V(G)});if(!le(O))continue;await ye(e,r=>{pe(r,o,{receipts:[O]})},{expectedRevision:g.revision,preCommit:J}),I.push(O)}catch{}}catch{}return I}export{ve as historicalStoryQaDigest,Ce as reconcilePublishedStoriesForYoloop,Re as recoverPublishedCheckpointForYoloop,Pe as revalidatePublishedStoriesForYolo,Se as revalidatePublishedStoryDependencies};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{decodeJwt as
|
|
1
|
+
import{decodeJwt as f}from"jose";import{setTimeout as d}from"node:timers/promises";import{classifyTransportFailure as k,mayRetryBeforeDispatch as y}from"../errors/transport-failure.js";import{NoOpCache as R}from"../types/index.js";import{getMachineFingerprint as p}from"../machine/fingerprint.js";import{CLIENT_VERSION as _}from"../version.js";import{classifyAuthCausalEvidence as l}from"./host-auth-recovery.js";const v="neocortex:jwt:token",E="neocortex:jwt:refresh_token",T=300,m=10080*60*1e3,c=v,h=E,u=m,w=12e3,C=150;class A{serverUrl;licenseKey;cache;clientVersion;machineId;strictReadOnly;causalAuthRecovery;token=null;refreshToken=null;lastRecoveryResult=null;constructor(e){this.serverUrl=e.serverUrl.replace(/\/+$/,""),this.licenseKey=e.licenseKey,this.cache=e.cacheProvider??new R,this.clientVersion=e.clientVersion??_,this.strictReadOnly=e.strictReadOnly??!1,this.causalAuthRecovery=e.causalAuthRecovery??!1,this.machineId=p({strictReadOnly:this.strictReadOnly})}async getToken(){try{if(this.strictReadOnly){const t=await this.inspectToken();return t.status==="authenticated"?t.token:null}if(this.token){const t=this.checkTokenValidity(this.token);if(t==="valid")return this.token;if(t==="needs-refresh")return this.strictReadOnly?this.token:(await this.refresh())?.token??this.token;this.token=null}const e=await this.loadFromCache();if(e){this.token=e;const t=this.checkTokenValidity(e);if(t==="valid")return e;if(t==="needs-refresh")return this.strictReadOnly?e:(await this.refresh())?.token??e;this.token=null}if(this.strictReadOnly)return null;if(this.refreshToken||(this.refreshToken=await this.loadRefreshTokenFromCache()),this.refreshToken){const t=await this.refresh();if(t?.token)return t.token;if(this.causalAuthRecovery)return null}return(await this.activate())?.token??null}catch{return null}}async inspectToken(){try{const e=this.token??await this.loadFromCache();if(e){const t=this.checkTokenValidity(e);return t==="valid"?{status:"authenticated",token:e}:{status:"refresh-required",reason:t==="needs-refresh"?"near-expiry":"expired"}}const s=this.refreshToken??await this.loadRefreshTokenFromCache();return s?(this.refreshToken=s,{status:"refresh-required",reason:"expired"}):this.licenseKey?{status:"refresh-required",reason:"unavailable"}:{status:"not-configured"}}catch{return this.licenseKey?{status:"refresh-required",reason:"unavailable"}:{status:"not-configured"}}}getLastRecoveryResult(){return this.lastRecoveryResult}refreshRequired(e,s){return this.lastRecoveryResult={status:"refresh-required",cause:e,action:s},null}rememberRecovery(e){return this.lastRecoveryResult=e,null}async activate(){if(this.strictReadOnly)return null;try{const e=this.licenseKey.startsWith("nxk_"),s=e?"activate-key":"activate",t=e?{api_key:this.licenseKey}:{license_key:this.licenseKey},a=await fetch(`${this.serverUrl}/api/v1/license/${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,machine_id:this.machineId,client_version:this.clientVersion})});if(!a.ok){let o="";try{o=String((await a.json()).error??"")}catch{}return this.rememberRecovery(l({kind:"http",status:a.status,...o?{errorCode:o}:{}}))}const i=await a.json();return i.tier!==void 0&&i.tier!=="free"&&i.tier!=="pro"&&i.tier!=="enterprise"?null:(this.token=i.token,this.refreshToken=i.refresh_token??null,await this.cache.set(c,i.token,i.expires_in*1e3).catch(()=>{}),i.refresh_token&&await this.cache.set(h,i.refresh_token,u).catch(()=>{}),{token:i.token,expiresIn:i.expires_in,refreshToken:i.refresh_token,tier:i.tier})}catch{return this.rememberRecovery(l({kind:"transport"}))}}async refresh(e){if(this.strictReadOnly)return null;const s=AbortSignal.timeout(w);try{const t=this.refreshToken??await this.loadRefreshTokenFromCache();if(!t)return this.refreshRequired("store-unavailable","retry-later");const a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:t}),signal:s},i=`${this.serverUrl}/api/v1/license/refresh`,o=await fetch(i,a).catch(async n=>{if(s.aborted||!y(n))throw n;return await d(C,void 0,{signal:s}),fetch(i,a)});if(!o.ok){let n="";try{n=String((await o.json()).error??"")}catch{}return o.status===429?this.refreshRequired("rate-limited","retry-later"):o.status>=500?this.refreshRequired("service-unavailable","retry-later"):n==="invalid_grant"||n==="revoked"?this.refreshRequired("revoked","reactivate"):n==="invalid_scope"||n==="scope_denied"?this.refreshRequired("scope-denied","request-scope"):n==="client_denied"?this.refreshRequired("client-denied","stop"):this.refreshRequired("protocol-invalid","stop")}const r=await o.json().catch(n=>{if(!(n instanceof SyntaxError))throw n;return null});return!r||typeof r.token!="string"||!r.token||!Number.isFinite(r.expires_in)||r.expires_in<=0||r.refresh_token!==void 0&&typeof r.refresh_token!="string"?this.refreshRequired("protocol-invalid","stop"):(this.token=r.token,this.refreshToken=r.refresh_token??null,await this.cache.set(c,r.token,r.expires_in*1e3).catch(()=>{}),r.refresh_token&&await this.cache.set(h,r.refresh_token,u).catch(()=>{}),this.lastRecoveryResult={status:"authenticated",generation:0,accessCredential:r.token,expiresAt:new Date(Date.now()+r.expires_in*1e3).toISOString()},{token:r.token,expiresIn:r.expires_in,refreshToken:r.refresh_token})}catch(t){const a=k(t,s.aborted);return this.refreshRequired(a==="timeout"?"timeout":"transport-error","retry-later")}}async forceRefresh(){if(this.strictReadOnly)return null;try{const e=await this.refresh();return e?.token?e.token:this.causalAuthRecovery?null:(this.token=null,this.refreshToken=null,await this.cache.clear().catch(()=>{}),(await this.activate())?.token??null)}catch{return null}}checkTokenValidity(e){try{const s=f(e);if(!s.exp)return"expired";const t=Math.floor(Date.now()/1e3);return s.exp<=t?"expired":s.exp-t<=T?"needs-refresh":"valid"}catch{return"expired"}}async loadFromCache(){try{return await this.cache.get(c)}catch{return null}}async loadRefreshTokenFromCache(){try{const e=await this.cache.get(h);return e&&e.length>0?e:null}catch{return null}}}export{v as LICENSE_ACCESS_TOKEN_CACHE_KEY,E as LICENSE_REFRESH_TOKEN_CACHE_KEY,m as LICENSE_REFRESH_TOKEN_TTL_MS,A as LicenseClient};
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.11 | 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.11 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
tools:
|
|
@@ -113,7 +113,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
113
113
|
┌────────────────────────────────────────────────────────────┐
|
|
114
114
|
│ │
|
|
115
115
|
│ ####### N E O C O R T E X │
|
|
116
|
-
│ ### ######## v4.66.
|
|
116
|
+
│ ### ######## v4.66.11 │
|
|
117
117
|
│ ######### ##### │
|
|
118
118
|
│ ## ############## Development Orchestrator │
|
|
119
119
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -102,7 +102,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
102
102
|
┌────────────────────────────────────────────────────────────┐
|
|
103
103
|
│ │
|
|
104
104
|
│ ####### N E O C O R T E X │
|
|
105
|
-
│ ### ######## v4.66.
|
|
105
|
+
│ ### ######## v4.66.11 │
|
|
106
106
|
│ ######### ##### │
|
|
107
107
|
│ ## ############## Development Orchestrator │
|
|
108
108
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.11 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
permissionMode: bypassPermissions
|
|
@@ -113,7 +113,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
113
113
|
┌────────────────────────────────────────────────────────────┐
|
|
114
114
|
│ │
|
|
115
115
|
│ ####### N E O C O R T E X │
|
|
116
|
-
│ ### ######## v4.66.
|
|
116
|
+
│ ### ######## v4.66.11 │
|
|
117
117
|
│ ######### ##### │
|
|
118
118
|
│ ## ############## Development Orchestrator │
|
|
119
119
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -23,19 +23,24 @@ Tokens starting with `*` (e.g. `*commit-push`, `*implement`, `*status`, `*diagno
|
|
|
23
23
|
`*yolo`, `*review`, `*create-epic`, `*help`) are **Neocortex server triggers**, NOT
|
|
24
24
|
Codex built-in commands or actions.
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- NEVER invoke any local tool, command, or plugin based on these arguments
|
|
29
|
-
- NEVER attempt to resolve or execute these tokens as anything other than neocortex-client args
|
|
30
|
-
- ALWAYS delegate the selected explicit user-intended payload to `neocortex-client invoke --args "..."`
|
|
31
|
-
- The ONLY action this agent takes is: collect args -> invoke thin client -> follow server instructions
|
|
26
|
+
Forward these tokens only to `neocortex-client invoke --args` and follow the
|
|
27
|
+
returned instructions.
|
|
32
28
|
|
|
33
29
|
<!-- END: Plugin Conflict Prevention -->
|
|
34
30
|
|
|
35
|
-
# Neocortex v4.66.
|
|
31
|
+
# Neocortex v4.66.11 | OrNexus Team
|
|
36
32
|
|
|
37
33
|
You are a Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
38
34
|
|
|
35
|
+
## Thin-client executable
|
|
36
|
+
|
|
37
|
+
If `neocortex-client` is absent from PATH, use the installed absolute executable
|
|
38
|
+
in the same Git root, with identical arguments. Check `$HOME/.local/bin` or
|
|
39
|
+
`%APPDATA%\npm`, then the absolute `npm prefix --global` (`bin/` on Unix,
|
|
40
|
+
`neocortex-client.cmd` via PowerShell `&` on Windows). Retry once only if the
|
|
41
|
+
client did not start. Use this path for subsequent calls. If no global install
|
|
42
|
+
is found, report `neocortex-client-not-found`. Avoid workspace binaries and npx.
|
|
43
|
+
|
|
39
44
|
## Auto-Update Check
|
|
40
45
|
|
|
41
46
|
Before first invoke per session, run `neocortex-client reconcile-registry
|
|
@@ -44,6 +44,11 @@ neocortex-client invoke \
|
|
|
44
44
|
Then follow stdout exactly. If the thin client exits with a non-zero status,
|
|
45
45
|
report stderr and stop for user input.
|
|
46
46
|
|
|
47
|
+
Resolve the installed client from the story worktree using the Thin-client
|
|
48
|
+
executable section in AGENTS.md. If a shell cannot find the command, use the
|
|
49
|
+
absolute global executable there and preserve each argument. This fallback
|
|
50
|
+
applies only before the client has started.
|
|
51
|
+
|
|
47
52
|
Approval and sandbox scope is inherited from the parent Codex turn. A managed
|
|
48
53
|
request for max must be applied when launching or configuring the parent session
|
|
49
54
|
(for example, parent --yolo), not represented as child-only isolation. Host or
|
|
@@ -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.11 | 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.
|
|
@@ -41,6 +41,10 @@ per-story command such as `*yolo @docs/stories/<id>.story.md`.
|
|
|
41
41
|
Exact admission and bounded canonical recovery remain server-owned. This profile
|
|
42
42
|
must not remove prose, select a target, or repair an outer command.
|
|
43
43
|
|
|
44
|
+
Resolve the installed client from the target Git worktree using the
|
|
45
|
+
Thin-client executable section in AGENTS.md. If a shell cannot find the
|
|
46
|
+
command, use the absolute global executable there and preserve each argument.
|
|
47
|
+
|
|
44
48
|
neocortex-client invoke \
|
|
45
49
|
--args "{DELEGATED_PROMPT}" \
|
|
46
50
|
--format plain
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.11 | 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.11 │
|
|
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.11 | 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.11 | 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.11 │
|
|
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.11 | 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.11 │
|
|
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.11 | 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.11 | 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.11 | 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.11 (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.11 │
|
|
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.11 (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.11 │
|
|
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.11 | 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.11 │
|
|
86
86
|
│ ######### ##### │
|
|
87
87
|
│ ## ############## Development Orchestrator │
|
|
88
88
|
│ ## ### ###### ## OrNexus Team │
|