@crewx/workflow 0.3.22-rc.2 → 0.3.22-rc.21
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/SKILL.md +255 -11
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +72 -3
- package/dist/cli.js.map +1 -1
- package/dist/src/engine.d.ts +2 -0
- package/dist/src/engine.d.ts.map +1 -1
- package/dist/src/engine.js +49 -1
- package/dist/src/engine.js.map +1 -1
- package/dist/src/mermaid.d.ts.map +1 -1
- package/dist/src/mermaid.js +20 -4
- package/dist/src/mermaid.js.map +1 -1
- package/dist/src/run-manager.d.ts +9 -2
- package/dist/src/run-manager.d.ts.map +1 -1
- package/dist/src/run-manager.js +488 -24
- package/dist/src/run-manager.js.map +1 -1
- package/dist/src/types.d.ts +30 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/output-format.d.ts +12 -0
- package/dist/src/utils/output-format.d.ts.map +1 -1
- package/dist/src/utils/output-format.js +49 -0
- package/dist/src/utils/output-format.js.map +1 -1
- package/dist/src/utils/shell-security.d.ts +18 -0
- package/dist/src/utils/shell-security.d.ts.map +1 -0
- package/dist/src/utils/shell-security.js +138 -0
- package/dist/src/utils/shell-security.js.map +1 -0
- package/dist/workflow-schema.json +42 -1
- package/package.json +15 -3
- package/workflow-schema.json +42 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/workflow",
|
|
3
|
-
"version": "0.3.22-rc.
|
|
3
|
+
"version": "0.3.22-rc.21",
|
|
4
4
|
"description": "Workflow engine for CrewX - list, show, validate workflows with Mermaid visualization",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/src/engine.js",
|
|
@@ -12,6 +12,18 @@
|
|
|
12
12
|
"require": "./dist/src/engine.js",
|
|
13
13
|
"default": "./dist/src/engine.js"
|
|
14
14
|
},
|
|
15
|
+
"./run-manager": {
|
|
16
|
+
"types": "./dist/src/run-manager.d.ts",
|
|
17
|
+
"import": "./dist/src/run-manager.js",
|
|
18
|
+
"require": "./dist/src/run-manager.js",
|
|
19
|
+
"default": "./dist/src/run-manager.js"
|
|
20
|
+
},
|
|
21
|
+
"./types": {
|
|
22
|
+
"types": "./dist/src/types.d.ts",
|
|
23
|
+
"import": "./dist/src/types.js",
|
|
24
|
+
"require": "./dist/src/types.js",
|
|
25
|
+
"default": "./dist/src/types.js"
|
|
26
|
+
},
|
|
15
27
|
"./cli": {
|
|
16
28
|
"import": "./dist/cli.js",
|
|
17
29
|
"require": "./dist/cli.js",
|
|
@@ -37,8 +49,8 @@
|
|
|
37
49
|
"@hyperjump/json-schema": "^1.9.4",
|
|
38
50
|
"js-yaml": "^4.1.0",
|
|
39
51
|
"@crewx/knowledge-core": "0.1.17",
|
|
40
|
-
"@crewx/
|
|
41
|
-
"@crewx/
|
|
52
|
+
"@crewx/sdk": "0.8.8-rc.40",
|
|
53
|
+
"@crewx/shared": "0.0.5"
|
|
42
54
|
},
|
|
43
55
|
"devDependencies": {
|
|
44
56
|
"@types/js-yaml": "^4.0.9",
|
package/workflow-schema.json
CHANGED
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
},
|
|
44
44
|
"version": {
|
|
45
45
|
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"shell_task_allowed": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Opt-in gate (2nd factor) required to execute shell_task nodes. Combined with env CREWX_WORKFLOW_SHELL=1."
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
},
|
|
@@ -52,11 +56,40 @@
|
|
|
52
56
|
"properties": {
|
|
53
57
|
"type": {
|
|
54
58
|
"type": "string",
|
|
55
|
-
"enum": ["agent_task", "parallel", "join", "branch", "approval", "expression", "end"]
|
|
59
|
+
"enum": ["agent_task", "skill_task", "shell_task", "parallel", "join", "branch", "approval", "expression", "end", "error"]
|
|
56
60
|
},
|
|
57
61
|
"agent": {
|
|
58
62
|
"type": "string"
|
|
59
63
|
},
|
|
64
|
+
"skill": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "skill_task: built-in/registered skill name. Must match ^[a-z0-9][a-z0-9-]*$ (no path traversal)."
|
|
67
|
+
},
|
|
68
|
+
"args": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"description": "skill_task: extra CLI args appended after the skill name. Supports {{template}} interpolation."
|
|
74
|
+
},
|
|
75
|
+
"command": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"description": "shell_task: argv array (never a plain string). command[0] is the program. Interpolated."
|
|
81
|
+
},
|
|
82
|
+
"cwd": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "skill_task/shell_task: working directory, normalized and constrained under the project root."
|
|
85
|
+
},
|
|
86
|
+
"env": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"description": "shell_task: explicit env pass-through. Dangerous keys (LD_PRELOAD, etc.) are rejected."
|
|
92
|
+
},
|
|
60
93
|
"mode": {
|
|
61
94
|
"type": "string",
|
|
62
95
|
"enum": ["query", "execute"]
|
|
@@ -76,6 +109,10 @@
|
|
|
76
109
|
"retry": {
|
|
77
110
|
"$ref": "#/definitions/RetryConfig"
|
|
78
111
|
},
|
|
112
|
+
"fail_when": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "Task nodes: semantic failure judgment. Safe expression evaluated against state after the node's output is stored (e.g. 'state.verify_result.status !== \"pass\"'). Truthy → node fails and the run halts."
|
|
115
|
+
},
|
|
79
116
|
"condition": {
|
|
80
117
|
"type": "string"
|
|
81
118
|
},
|
|
@@ -125,6 +162,10 @@
|
|
|
125
162
|
"comment": {
|
|
126
163
|
"type": "string"
|
|
127
164
|
},
|
|
165
|
+
"message": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "error: failure message recorded in run.error. Supports {{template}} interpolation."
|
|
168
|
+
},
|
|
128
169
|
"on_approve": {
|
|
129
170
|
"type": "string"
|
|
130
171
|
},
|