-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathruntime.ts
More file actions
25 lines (25 loc) · 1.04 KB
/
Copy pathruntime.ts
File metadata and controls
25 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* Headless workflow runtime entry for plain-node (non-pi) consumers.
*
* `npm run build:dist` compiles this file and its transitive closure to
* `dist/`, published as the `@kky42/pi-flow/runtime` export. The pi extension
* entry (`./index.ts`, loaded by pi's own TS loader) is unaffected.
*
* Everything reachable from here must stay runnable on plain node: runtime
* imports may only be node builtins or regular dependencies (`acorn`). Pi
* peer packages (`@earendil-works/*`) may appear in type-only imports, which
* erase at compile time and must never appear as value imports.
*/
export { isWorkflowAbortError, parseWorkflowScript, runWorkflow, WorkflowAbortError } from "./src/workflow/runtime.ts";
export type {
RunWorkflowOptions,
WorkflowSubagentCall,
WorkflowSubagentResultEvent,
WorkflowSubagentRunner,
WorkflowLimits,
WorkflowMeta,
WorkflowMetaPhase,
WorkflowRunResult,
} from "./src/workflow/runtime.ts";
export { ConcurrencyLimiter } from "./src/core/concurrency.ts";
export type { Release } from "./src/core/concurrency.ts";