🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
chore(e2e): replay the initializer's exact which-codex call in the sandbox env
re8adb06a11ed
diff --git a/scripts/e2e/leg-codex.mjs b/scripts/e2e/leg-codex.mjsindex 31eeec7802..0543a40cd0 100644--- a/scripts/e2e/leg-codex.mjs+++ b/scripts/e2e/leg-codex.mjs@@ -35,7 +35,7 @@ export async function codexLeg({ cli, live }) {rec.check('init --dual: the generated .codex/config.toml does not default to danger-full-access + approval never', !permissive, permissive ? 'ADVISORY: gitignored local override ships sandbox_mode=danger-full-access, approval_policy=never, web_search=live' : 'restrictive default', permissive ? { advisory: true } : {})// `init --dual` registers the ruflo marketplace and installs ruflo-core@ruflo itself (#2801). On a fresh CODEX_HOME that must just work.- const whichCodex = await run('sh', ['-c', 'command -v codex; which codex; echo "PATH=$PATH"'], { cwd: proj, env, timeout: 10_000 })+ const whichCodex = await run(process.execPath, ['-e', "const{execSync}=require('child_process');try{console.log('OK',execSync('which codex',{stdio:'pipe'}).toString().trim())}catch(e){console.log('THROW status='+e.status,'stderr='+String(e.stderr).slice(0,120),'msg='+String(e.message).slice(0,120))};console.log('PATH='+process.env.PATH.slice(0,200))"], { cwd: proj, env, timeout: 10_000 })const afterInit = await run(bin, ['plugin', 'list'], { cwd: proj, env, timeout: 60_000 })rec.check('init --dual on a fresh CODEX_HOME leaves ruflo-core@ruflo installed (marketplace clone must outlast the init timeout)', /ruflo-core@ruflo\s+installed/.test(afterInit.out), (afterInit.out.match(/ruflo-core@ruflo.*/) ?? [`not listed. list exit=${afterInit.code} out=${afterInit.out.replace(/\s+/g, ' ').slice(0, 120)} err=${redact(afterInit.err).replace(/\s+/g, ' ').slice(0, 120)} | shell sees: ${whichCodex.out.replace(/\s+/g, ' ').slice(0, 260)} | init said: ${redact(`${init.out}\n${init.err}`).split('\n').filter(l => !/mods|enabledPlugins|settings\.json|Transformers/i.test(l)).slice(-40).join('\n')} | filtered: ${redact(`${init.out}\n${init.err}`).split('\n').filter(l => /codex|marketplace|ruflo-core|Failed to install|Install manually/i.test(l) && !/mods|enabledPlugins|settings\.json/i.test(l)).join(' / ').replace(/\s+/g, ' ').slice(0, 700)}`])[0].slice(0, 2600), { long: true })// Then swap in the CHECKOUT as a local marketplace, so the remaining assertions test this tree, not main on GitHub.