5bbac3e4f7
Audit public API surfaces using reachability analysis from application entry points (Worker, CLI, Dashboard). Symbols not reachable from any application's customization tree are removed from package index.ts files. Source files and internal usage are untouched — only the public export surface is narrowed. Changes by package: - workflow-util: -7 exports (base32 internals, logger config types) - workflow-cas: -12 exports (merkle internals, serialization details) - workflow-execute: -24 exports (engine internals, LLM extract details) - workflow-reactor: -4 exports (reactor config/invocation internals) - workflow-register: -8 exports (redundant protocol re-exports, internal YAML fns) - workflow-runtime: curated re-export subset (stop full protocol re-export) - workflow-util-agent: -5 exports (internal agent helpers) - workflow-agent-cursor: -1 export (validateCursorAgentConfig) - workflow-agent-hermes: -1 export (validateHermesAgentConfig) Note: workflow-protocol index.ts unchanged — downstream packages still import removed symbols via internal paths. Protocol cleanup requires updating workflow-runtime/src/types.ts first (separate PR). Refs #273, #274, #275, #276, #277, #278, #279, #280, #281, #282
@uncaged/workflow-runtime
Workflow author API: createWorkflow plus re-exports of protocol workflow types.
What This Package Does
Bundle code imports createWorkflow to turn a WorkflowDefinition plus AgentBinding into a WorkflowFn generator. It re-exports the protocol types and constants most authors need so workflows rarely import @uncaged/workflow-protocol directly.
Key Exports
From src/index.ts:
- Functions:
createWorkflow,ok,err - Types:
AgentBinding,AgentContext,AgentFn,CasStore,ExtractContext,ExtractFn,LlmProvider,Moderator,ModeratorContext,Result,RoleDefinition,RoleMeta,RoleOutput,RoleStep,StartStep,ThreadContext,WorkflowCompletion,WorkflowDefinition,WorkflowDescriptor,WorkflowFn,WorkflowResult,WorkflowRoleDescriptor,WorkflowRoleSchema,WorkflowRuntime - Constants:
END,START
Dependencies
- Workspace:
@uncaged/workflow-protocol— contract types and helpers - Peer:
zod^4 — matches schema usage on role definitions
Usage
import { createWorkflow, type WorkflowDefinition, type AgentBinding } from "@uncaged/workflow-runtime";
export const run = createWorkflow(myDefinition, myBinding);