Skip to content

@lastshotlabs/slingshot-orchestration

npm install @lastshotlabs/slingshot-orchestration

Retry adapter.start() with exponential backoff.

function createOrchestrationPackage(options: ConfigurableOrchestrationPluginOptions,): SlingshotPackageDefinition

Source: packages/slingshot-orchestration/src/plugin.ts

Disposable orchestration event sink that bridges the orchestration runtime onto Slingshot’s event bus. The plugin teardown phase MUST call dispose() so any subscriptions registered against the bus by this sink (or future helpers sharing this contract) do not accumulate across plugin reloads.

function createSlingshotEventSink(bus: SlingshotEventBus): SlingshotEventSink

Source: packages/slingshot-orchestration/src/eventSink.ts

Plugin name used for registration, dependency declarations, and event ownership.

function getOrchestration(ctx: SlingshotContext): OrchestrationRuntime

Source: packages/slingshot-orchestration/src/context.ts

Plugin name used for registration, dependency declarations, and event ownership.

function getOrchestrationOrNull(ctx: SlingshotContext): OrchestrationRuntime | null

Source: packages/slingshot-orchestration/src/context.ts

Manifest schema for the Slingshot orchestration plugin configuration.

FieldDescription
adapterAdapter selection and its backend-specific configuration.
routePrefixURL prefix for orchestration routes (e.g. ‘/orchestration’).
routesMount the orchestration HTTP API routes. Defaults to false.
routeTimeoutMsPer-request timeout in milliseconds for orchestration HTTP route adapter calls.
tasksHandler names of tasks to register with the orchestration runtime.
workflowsHandler names of workflows to register. Omit when only tasks are used.

Source: packages/slingshot-orchestration/src/validation.ts

Public contract for slingshot-orchestration.

Cross-plugin consumers fetch the orchestration runtime through the typed OrchestrationRuntimeCap capability:

import { OrchestrationRuntimeCap } from '@lastshotlabs/slingshot-orchestration';
const runtime = ctx.capabilities.require(OrchestrationRuntimeCap);

The legacy getOrchestration(ctx) / getOrchestrationOrNull(ctx) helpers remain as thin wrappers around the contract resolution path for back-compat with documented examples.

Source: packages/slingshot-orchestration/src/public.ts

Plugin name used for registration, dependency declarations, and event ownership.

Source: packages/slingshot-orchestration/src/context.ts

Public contract for slingshot-orchestration.

Cross-plugin consumers fetch the orchestration runtime through the typed OrchestrationRuntimeCap capability:

import { OrchestrationRuntimeCap } from '@lastshotlabs/slingshot-orchestration';
const runtime = ctx.capabilities.require(OrchestrationRuntimeCap);

The legacy getOrchestration(ctx) / getOrchestrationOrNull(ctx) helpers remain as thin wrappers around the contract resolution path for back-compat with documented examples.

Source: packages/slingshot-orchestration/src/public.ts

Errors thrown by the orchestration plugin integration layer.

Source: packages/slingshot-orchestration/src/errors.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts

Request-scoped orchestration metadata resolved by the HTTP layer before a run is started or authorized.

Source: packages/slingshot-orchestration/src/types.ts