Runtime Dispatch Types (runtime-dispatch/types.ts)

oh-my-agent · cli/io/runtime-dispatch/types.ts · typescript · MIT
dev-tools, ai, cli, lang:typescript, tag:dispatch, tag:vendor-abstraction

Defines TypeScript types for agent runtime dispatch including vendor classification, invocation plans, and dispatch modes. Reuse when building multi-runtime agent orchestration.

// Source: https://github.com/first-fluke/oh-my-agent | License: MIT | Copyright 2026 Eunkwang Shin, Gahyun Kim
// Provided via justclaw.it.com; keep this notice with the code.
import type { EffortLevel, ModelSpec } from "../../platform/model-registry.js";
import type { VendorType } from "../../types/vendors.js";

/**
 * A runtime/dispatch target vendor. Derived from the canonical VENDORS hook set
 * (minus commandcode, which has no dispatch path) plus the extension vendors
 * opencode and pi, plus "unknown" for an undetected runtime. Adding a hook
 * vendor to VENDORS flows here automatically.
 */
export type RuntimeVendor =
  | Exclude<VendorType, "commandcode">
  | "opencode"
  | "pi"
  | "unknown";

export type DispatchMode = "native" | "external";

export type Invocation = {
  command

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

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

Get a free API key