getOrchestrator (orchestrator-store.ts)

openbrowserclaw ยท infra

Singleton factory function returning the Orchestrator instance, throwing if uninitialized; part of the orchestrator state management store.

// Source: https://github.com/wexare-ai/openbrowserclaw | License: MIT | Copyright 2026 Sacha Arbonel
// Provided via justclaw.it.com; keep this notice with the code.
// ---------------------------------------------------------------------------
// OpenBrowserClaw โ€” Orchestrator Store (Zustand)
// ---------------------------------------------------------------------------

import { create } from 'zustand';
import type {
  StoredMessage,
  OrchestratorState,
  TokenUsage,
  ThinkingLogEntry,
} from '../types.js';
import type { Orchestrator } from '../orchestrator.js';
import { DEFAULT_GROUP_ID } from '../config.js';
import { getRecentMessages } from '../db.js';

interface OrchestratorStoreState {
  // --- reactive state ---
  messages: StoredMessage[];
  isTyping: boolean;
  toolActivity: {

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key