@orkestrel/workflow 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -30
- package/dist/src/core/index.cjs +1195 -238
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +540 -217
- package/dist/src/core/index.d.ts +540 -217
- package/dist/src/core/index.js +1180 -240
- package/dist/src/core/index.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
# @orkestrel/workflow
|
|
2
2
|
|
|
3
|
-
A typed workflow engine for the `@orkestrel` line
|
|
4
|
-
`Workflow → Phase → Task` tree
|
|
5
|
-
a
|
|
6
|
-
per-phase `Runner`, `Abort`, `Timeout`, `Budget`, and a cooperative
|
|
7
|
-
cross-environment `Scheduler`) rather than re-implementing its own
|
|
8
|
-
concurrency / retry / abort machinery. Each task's `run` is a plain
|
|
9
|
-
behavior-name string resolved once into a `handler`; wiring a task to a tool
|
|
10
|
-
or an agent is an opt-in adapter shipped by the separate `@orkestrel/tool`
|
|
11
|
-
package, composed into the caller's own `functions` registry.
|
|
3
|
+
A typed, host-independent workflow engine for the `@orkestrel` line. It keeps
|
|
4
|
+
work as a serializable `Workflow → Phase → Task` tree and executes task behavior
|
|
5
|
+
through a caller-supplied function registry on a cooperative scheduler.
|
|
12
6
|
|
|
13
7
|
## Install
|
|
14
8
|
|
|
@@ -25,30 +19,29 @@ npm install @orkestrel/workflow
|
|
|
25
19
|
|
|
26
20
|
## Status
|
|
27
21
|
|
|
28
|
-
Pre-release (`0.0.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
[guides/src/workflow.md](./guides/src/workflow.md) for the
|
|
43
|
-
|
|
22
|
+
Pre-release (`0.0.7`): the definition contract, live entity tree, runner,
|
|
23
|
+
cooperative schedulers, and durable stores are implemented and tested. A task
|
|
24
|
+
can publish its current note, progress, operations, constraints, pulse, and
|
|
25
|
+
signal; observers can derive silence without polling. Workflow, phase, and task
|
|
26
|
+
execution can pause, resume, wait, skip, stop, and destroy according to the
|
|
27
|
+
documented lifecycle.
|
|
28
|
+
|
|
29
|
+
Snapshots are exact JSON values with owned nested data. Attempts, checkpoints,
|
|
30
|
+
settlements, and final state can be persisted through memory or database-backed
|
|
31
|
+
stores, then explicitly restored or recovered without reusing a consumed
|
|
32
|
+
attempt. Runtime pause gates are intentionally not persisted.
|
|
33
|
+
|
|
34
|
+
Provider sessions, external processes, MCP projection, journals, leases, and
|
|
35
|
+
distributed fencing remain integration concerns rather than core workflow
|
|
36
|
+
behavior. See [guides/src/workflow.md](./guides/src/workflow.md) for the complete
|
|
37
|
+
shipped contract and [PROPOSAL.md](./PROPOSAL.md) for the proposed integration
|
|
38
|
+
architecture.
|
|
44
39
|
|
|
45
40
|
## Package
|
|
46
41
|
|
|
47
|
-
Published as three environment-scoped entry points
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
default), `./browser` (adds the browser-native scheduler backends), and
|
|
51
|
-
`./server` (adds the Node-native scheduler backend). Core ships dual
|
|
42
|
+
Published as three environment-scoped entry points: `.` provides the shared
|
|
43
|
+
environment-agnostic core and default scheduler, `./browser` adds browser-native
|
|
44
|
+
schedulers, and `./server` adds the Node-native scheduler. Core ships dual
|
|
52
45
|
ESM+CJS builds; `./browser` is ESM-only.
|
|
53
46
|
|
|
54
47
|
## License
|