feat(browser): cross-platform node_path config for npx resolution

Adds [browser].node_path config option so camoufox-browser can use
an explicit npx path (essential for nvm/fnm/asdf users).

Resolution order (cross-platform):
1. config.browser.node_path — explicit user override
2. 'npx.cmd' on Windows, 'npx' on Linux/macOS — PATH lookup

Changes:
- BrowserSection config: added node_path: Option<String>
- AgentConfig: now carries browser section (was dropped in From<GyandootConfig>)
- browser_manager::init_browser(node_path): accepts optional path
- All call sites updated (run(), init_session(), subagents, tests)
- Error messages now hint at browser.node_path config
This commit is contained in:
2026-06-12 16:08:37 +05:30
parent 3030f6eadf
commit 697c2c63b2
4 changed files with 57 additions and 18 deletions

View File

@@ -268,6 +268,7 @@ impl SubAgentWorker {
kanban: gyandoot_core::KanbanRootConfig::default(),
skills: gyandoot_core::SkillsRootConfig::default(),
identity: gyandoot_core::IdentitySection::default(),
browser: gyandoot_core::BrowserSection::default(),
};
// Try to create the agent loop. If the provider config isn't viable