Source entrypoint and directory structure for the Multi-Manager orchestration package. Re-exports the portsParser utility as the package's public API surface.
Minimal barrel export (index.ts re-exports portsParser from lib/ports-parser). All other modules are internal and referenced only within the package or via its CLI binary.
| Directory | Responsibility |
|---|---|
bin/ |
CLI entrypoint (start.ts) with heap-dump monitor support |
config/ |
Configuration classes (MultiManagerConfig, MultiManagerServerConfig) with verser2 config |
lib/ |
Core orchestration (MultiManager — 345 lines, manager store, auditor, ports parser, verser2 host config/identity/trust helpers, default config) |
lib/api/ |
V1 and V2 REST API handlers (composite MultiManagerAPIHandler, v1 handler with /start//cpm routing, v2 handler via RestAPI2RouteSets.root) |
types/ |
Shared type definitions (MultiManagerOptions, MultiManagerCommandOptions, StartManagerRequestParams) |
index.ts provides the single public export; consumers import portsParser for validating port-range CLI arguments. Internal orchestration entry is bin/start.ts.
Re-exported function portsParser is used externally for port-range validation. Internal modules integrate with @scramjet/manager, @signicode/verser2-host, @scramjet/api-router, @scramjet/rest-api2, @scramjet/api-server, @scramjet/obj-logger, @scramjet/utility, @scramjet/load-check, and @scramjet/types.