@orbytautomation/engine 0.1.0 โ 0.1.1
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 +67 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# @orbytautomation/engine
|
|
2
|
+
|
|
3
|
+
Universal workflow automation engine for executing YAML-based workflows with an adapter-driven architecture.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @orbytautomation/engine
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { OrbytEngine } from '@orbytautomation/engine';
|
|
15
|
+
|
|
16
|
+
// Create engine instance
|
|
17
|
+
const engine = new OrbytEngine();
|
|
18
|
+
|
|
19
|
+
// Run a workflow
|
|
20
|
+
const result = await engine.run('./workflow.yaml');
|
|
21
|
+
|
|
22
|
+
console.log('Workflow completed:', result.status);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
- ๐ **YAML Workflow Definitions** - Define workflows in human-readable YAML
|
|
28
|
+
- ๐ **Universal Adapter System** - Extensible adapter framework for any action type
|
|
29
|
+
- ๐ **DAG Execution** - Automatic dependency resolution with parallel execution
|
|
30
|
+
- ๐ **Retry Logic** - Configurable retry strategies (fixed, linear, exponential backoff)
|
|
31
|
+
- โฑ๏ธ **Timeout Management** - Step and workflow-level timeout enforcement
|
|
32
|
+
- ๐ช **Lifecycle Hooks** - User-defined hooks at workflow and step events
|
|
33
|
+
- ๐ก **Event Bus** - Internal pub/sub system for observability
|
|
34
|
+
- ๐งฉ **Context Engine** - Variable interpolation and runtime context
|
|
35
|
+
- ๐งช **Dry-run Mode** - Validate and plan without execution
|
|
36
|
+
|
|
37
|
+
## Basic Usage
|
|
38
|
+
|
|
39
|
+
### Simple Workflow Execution
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import { OrbytEngine } from '@orbytautomation/engine';
|
|
43
|
+
|
|
44
|
+
const engine = new OrbytEngine({
|
|
45
|
+
logLevel: 'info',
|
|
46
|
+
maxConcurrentWorkflows: 5
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const result = await engine.run('./workflow.yaml', {
|
|
50
|
+
variables: {
|
|
51
|
+
inputFile: './data.json',
|
|
52
|
+
outputDir: './output'
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
if (result.status === 'success') {
|
|
57
|
+
console.log('โ Workflow completed successfully');
|
|
58
|
+
} else {
|
|
59
|
+
console.error('โ Workflow failed:', result.error);
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Links
|
|
64
|
+
|
|
65
|
+
- [GitHub Repository](https://github.com/0xshariq/orbyt)
|
|
66
|
+
- [Documentation](https://github.com/0xshariq/orbyt#readme)
|
|
67
|
+
- [Issues](https://github.com/0xshariq/orbyt/issues)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbytautomation/engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Orbyt - Automation Engine Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"clean": "rm -rf dist"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
|
-
"automation",
|
|
19
|
+
"automation",
|
|
20
|
+
"cron",
|
|
21
|
+
"scheduler",
|
|
22
|
+
"engine",
|
|
23
|
+
"automation-engine"
|
|
20
24
|
],
|
|
21
25
|
"author": {
|
|
22
26
|
"name": "0xshariq",
|