Skip to content

Live mode is non-functional: run-live.ts imports a missing live-bridge module #8

Description

@williamzujkowski

Problem

src/run-live.ts dynamically imports ./live-bridge.js and requires it to export createMcpCaller():

const bridgePath = './live-bridge.js';
const mod = await import(bridgePath);
const factory = mod['createMcpCaller'];
if (typeof factory !== 'function') throw new Error('live-bridge.ts must export createMcpCaller()');

No src/live-bridge.ts (nor a compiled dist/live-bridge.js) exists in the repo. As a result both the documented NEXUS_LIVE=true npx tsx src/run-live.ts (README) and the pnpm live script (package.json) always fail with Failed to load live bridge: ....

Suggested fix

Pick one:

  1. Commit a src/live-bridge.ts that exports createMcpCaller(): Promise<ToolCaller> wiring up a real nexus-agents MCP client (preferred), or
  2. Commit a documented example/stub live-bridge.example.ts and update the README to instruct users to copy it to src/live-bridge.ts, clarifying that live mode requires a user-supplied bridge.

The existing try/catch handles the missing-module case gracefully, so this is a functionality/onboarding gap rather than a crash, but the feature does not work out of the box as documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions