ruvnet-brain 4.0.7 → 4.0.8

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.
@@ -21,11 +21,7 @@ const run = (name, args, options) => {
21
21
  export function classifyDoctorResult(result) {
22
22
  const output = `${result.stdout || ''}\n${result.stderr || ''}`;
23
23
  if (!result.error && result.status === 0) return { accepted: true, status: 'PASS', output };
24
- const pendingReview = result.status === 1
25
- && /Codex installed the Brain, but \d+ lifecycle hooks await review/i.test(output)
26
- && /Grounding PROVEN/i.test(output)
27
- && !/reader MISSING|search_ruvnet MISSING|host convergence incomplete|receipt is invalid/i.test(output);
28
- return { accepted: pendingReview, status: pendingReview ? 'PENDING_REVIEW' : 'FAIL', output };
24
+ return { accepted: false, status: 'FAIL', output };
29
25
  }
30
26
 
31
27
  const preparePackage = ({ packagePath, bundlePath }) => {
@@ -74,6 +70,7 @@ export function stagedHostVerifier({ assets, identity }) {
74
70
  RUVNET_BRAIN_HOME: brainHome,
75
71
  RUVNET_BRAIN_KB: path.join(brainHome, 'kb'),
76
72
  RUVNET_CLAUDE_MARKETPLACE_SOURCE: prepared.packageRoot,
73
+ RUVNET_CODEX_HOOK_TRUST_MODE: 'bypass',
77
74
  CI: 'true',
78
75
  PATH: fixturePath(mode, prepared.temp),
79
76
  };
@@ -82,7 +79,7 @@ export function stagedHostVerifier({ assets, identity }) {
82
79
  '--no-telemetry', '--no-stack', '--no-enhance', '--no-statusline', '--no-selfcheck'], {
83
80
  cwd: prepared.packageRoot, env, timeout: 1_200_000,
84
81
  });
85
- const doctor = spawnSync(process.execPath, [installer, '--doctor'], {
82
+ const doctor = spawnSync(process.execPath, [installer, '--doctor', '--hooks'], {
86
83
  cwd: prepared.packageRoot, env, timeout: 180_000,
87
84
  });
88
85
  const classified = classifyDoctorResult(doctor);