API Reference: Node.js API
This page details the programmatic API for Node.js/TypeScript users, primarily focusing on the @juliaos/framework, @juliaos/bridges, and @juliaos/wallets packages.
(Note: Assumes hypothetical package names like @juliaos/framework. Replace with actual package names and refer to source code for definitive signatures and types.)
Julia Bridge (@juliaos/julia-bridge - Assumed)
@juliaos/julia-bridge - Assumed)Provides the core communication channel.
import { JuliaBridge } from '@juliaos/julia-bridge';
// Initialize
const juliaBridge = new JuliaBridge({ host: 'localhost', port: 8052 });
// Connect
await juliaBridge.connect();
// Run Command
async runJuliaCommand(command: string, payload: any): Promise<any>;
// Example:
// const agents = await juliaBridge.runJuliaCommand('agents.list_agents', {});Framework API (@juliaos/framework - Assumed)
@juliaos/framework - Assumed)AgentManager
AgentManager(Types like AgentConfig, AgentInfo, AgentStatus would be defined within the package)
SwarmManager
SwarmManager(Types like SwarmConfig, SwarmInfo, SwarmStatus would be defined within the package)
Bridges API (@juliaos/bridges - Assumed)
@juliaos/bridges - Assumed)RelayBridge
RelayBridge(Type RelayTransferParams likely includes fromChain, toChain, token, amount, fromAddress, toAddress)
WormholeBridge
WormholeBridge(Type WormholeTransferParams similar to Relay. Requires signer for completion.)
Wallets API (@juliaos/wallets)
@juliaos/wallets)Provides a unified interface for interacting with user browser wallets.
WalletManager
WalletManager(Refer to the actual source code in /packages/wallets/src for precise method signatures, event payloads, and exported types/interfaces)


