@ornexus/neocortex 4.66.50 → 4.66.52

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 (41) hide show
  1. package/dist/release-source.json +1 -1
  2. package/dist/sbom.cdx.json +1190 -1190
  3. package/install.js +8 -8
  4. package/install.ps1 +188 -162
  5. package/install.sh +1 -1
  6. package/package.json +2 -2
  7. package/packages/client/dist/commands/activate.js +6 -7
  8. package/packages/client/dist/commands/invoke.js +82 -82
  9. package/packages/client/dist/config/secure-config.d.ts +4 -0
  10. package/packages/client/dist/config/secure-config.js +6 -6
  11. package/packages/client/dist/migrations/project-identity.d.ts +3 -0
  12. package/packages/client/dist/migrations/project-identity.js +7 -7
  13. package/packages/client/dist/private-execution/isolated-admission.js +11 -11
  14. package/packages/client/dist/private-execution/isolated-workspace.js +1 -1
  15. package/packages/client/dist/private-execution/planning-diagnosis-checkpoint.js +5 -5
  16. package/packages/client/dist/private-execution/planning-memory-checkpoint.js +3 -3
  17. package/packages/client/dist/runner/headless/run-yoloop.d.ts +2 -0
  18. package/packages/client/dist/runner/headless/run-yoloop.js +4 -4
  19. package/packages/shared/dist/invocation/semantic-gate-remediation.d.ts +45 -0
  20. package/packages/shared/dist/invocation/semantic-gate-remediation.js +51 -0
  21. package/targets-stubs/antigravity/gemini.md +1 -1
  22. package/targets-stubs/antigravity/neocortex.md +1 -1
  23. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  24. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  25. package/targets-stubs/claude-code/neocortex-root.md +2 -2
  26. package/targets-stubs/claude-code/neocortex-sentinel.md +1 -1
  27. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  28. package/targets-stubs/claude-code/neocortex.md +2 -2
  29. package/targets-stubs/codex/AGENTS.md +1 -1
  30. package/targets-stubs/codex/neocortex.toml +1 -1
  31. package/targets-stubs/cursor/agent.md +2 -2
  32. package/targets-stubs/deepseek-harness/SKILL.md +1 -1
  33. package/targets-stubs/gemini-cli/agent.md +2 -2
  34. package/targets-stubs/gemini-cli/agents/neocortex.md +2 -2
  35. package/targets-stubs/grok/SKILL.md +1 -1
  36. package/targets-stubs/kimi/neocortex.md +1 -1
  37. package/targets-stubs/lib/managed-config-merge.js +12 -4
  38. package/targets-stubs/openclaw/SKILL.md +1 -1
  39. package/targets-stubs/opencode/neocortex-root.md +2 -2
  40. package/targets-stubs/opencode/neocortex.md +2 -2
  41. package/targets-stubs/vscode/neocortex.agent.md +2 -2
package/install.js CHANGED
@@ -227,7 +227,7 @@ function runWindows(selectedTargets) {
227
227
  checkScript(scriptPath);
228
228
 
229
229
  const mappedArgs = mapArgs('win32', args);
230
- if (selectedTargets) {
230
+ if (selectedTargets?.length) {
231
231
  mappedArgs.push('-Targets', selectedTargets.join(','));
232
232
  }
233
233
 
@@ -318,7 +318,7 @@ function showHelp() {
318
318
  console.log(` ${color.cyan('update')} Atualizar para a ultima versao`);
319
319
  console.log('');
320
320
  console.log(color.dim(' Opcoes:'));
321
- console.log(` ${color.cyan('-y, --yes')} Modo automatico (Claude Code only)`);
321
+ console.log(` ${color.cyan('-y, --yes')} Modo automatico. No Windows use --targets para adapters.`);
322
322
  console.log(` ${color.cyan('--targets=<lista>')} Plataformas separadas por virgula`);
323
323
  console.log(` ${color.cyan('--create-project')} Instalar estrutura no projeto (opt-in)`);
324
324
  console.log(` ${color.cyan('-s, --skip-project')} Instalacao somente global (padrao)`);
@@ -340,7 +340,7 @@ function showHelp() {
340
340
  console.log('');
341
341
  console.log(color.dim(' Exemplos:'));
342
342
  console.log(` npx @ornexus/neocortex ${color.dim('# Selecao interativa')}`);
343
- console.log(` npx @ornexus/neocortex --yes ${color.dim('# Claude Code (auto)')}`);
343
+ console.log(' npx @ornexus/neocortex --yes --targets=opencode');
344
344
  console.log(` npx @ornexus/neocortex --targets=claude-code,cursor`);
345
345
  console.log('');
346
346
  console.log(color.dim(' Linux global install:'));
@@ -386,7 +386,7 @@ async function interactiveWizard() {
386
386
  const selectedPlatforms = await multiselect({
387
387
  message: 'Selecione as plataformas de destino:',
388
388
  options,
389
- initialValues: PLATFORMS.filter(p => p.default).map(p => p.key),
389
+ initialValues: PLATFORMS.filter(p => os.platform() === 'win32' ? detected[p.key] : p.default).map(p => p.key),
390
390
  required: true,
391
391
  });
392
392
 
@@ -554,9 +554,9 @@ async function main() {
554
554
  selectedTargets = targetsArg;
555
555
 
556
556
  }
557
- // Priority 2: --yes flag = Claude Code only (backward compat)
557
+ // Windows unattended install prepares the client. Adapters require a target.
558
558
  else if (isAutoYes()) {
559
- selectedTargets = ['claude-code'];
559
+ selectedTargets = platform === 'win32' ? [] : ['claude-code'];
560
560
  }
561
561
  // Priority 3: Interactive selection (if TTY)
562
562
  else if (process.stdin.isTTY && process.stdout.isTTY) {
@@ -572,9 +572,9 @@ async function main() {
572
572
  process.exit(0);
573
573
  }
574
574
  }
575
- // Priority 4: Non-interactive, no flags = Claude Code only
575
+ // Preserve the Unix unattended default.
576
576
  else {
577
- selectedTargets = ['claude-code'];
577
+ selectedTargets = platform === 'win32' ? [] : ['claude-code'];
578
578
  }
579
579
  selectedTargets = canonicalizeTargets(selectedTargets);
580
580