@crewx/workflow 0.3.22-rc.9 → 0.3.22-rc.90
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 +104 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +59 -5
- package/dist/cli.js.map +1 -1
- package/dist/src/engine.d.ts.map +1 -1
- package/dist/src/engine.js +29 -2
- package/dist/src/engine.js.map +1 -1
- package/dist/src/mermaid.d.ts.map +1 -1
- package/dist/src/mermaid.js +7 -4
- package/dist/src/mermaid.js.map +1 -1
- package/dist/src/run-manager.d.ts +7 -1
- package/dist/src/run-manager.d.ts.map +1 -1
- package/dist/src/run-manager.js +319 -93
- package/dist/src/run-manager.js.map +1 -1
- package/dist/src/types.d.ts +6 -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 +103 -5
- package/dist/src/utils/output-format.js.map +1 -1
- package/dist/src/utils/shell-security.d.ts.map +1 -1
- package/dist/src/utils/shell-security.js +16 -2
- package/dist/src/utils/shell-security.js.map +1 -1
- package/dist/workflow-schema.json +14 -2
- package/package.json +14 -4
- package/workflow-schema.json +14 -2
package/workflow-schema.json
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"properties": {
|
|
57
57
|
"type": {
|
|
58
58
|
"type": "string",
|
|
59
|
-
"enum": ["agent_task", "skill_task", "shell_task", "parallel", "join", "branch", "approval", "expression", "end"]
|
|
59
|
+
"enum": ["agent_task", "skill_task", "shell_task", "parallel", "join", "branch", "approval", "expression", "end", "error"]
|
|
60
60
|
},
|
|
61
61
|
"agent": {
|
|
62
62
|
"type": "string"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"cwd": {
|
|
83
83
|
"type": "string",
|
|
84
|
-
"description": "skill_task/shell_task: working directory, normalized and constrained under the project root."
|
|
84
|
+
"description": "agent_task/skill_task/shell_task: working directory, normalized and constrained under the project root."
|
|
85
85
|
},
|
|
86
86
|
"env": {
|
|
87
87
|
"type": "object",
|
|
@@ -90,6 +90,10 @@
|
|
|
90
90
|
},
|
|
91
91
|
"description": "shell_task: explicit env pass-through. Dangerous keys (LD_PRELOAD, etc.) are rejected."
|
|
92
92
|
},
|
|
93
|
+
"stdin": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "skill_task/shell_task: optional stdin payload. Supports {{template}} interpolation."
|
|
96
|
+
},
|
|
93
97
|
"mode": {
|
|
94
98
|
"type": "string",
|
|
95
99
|
"enum": ["query", "execute"]
|
|
@@ -109,6 +113,10 @@
|
|
|
109
113
|
"retry": {
|
|
110
114
|
"$ref": "#/definitions/RetryConfig"
|
|
111
115
|
},
|
|
116
|
+
"fail_when": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"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."
|
|
119
|
+
},
|
|
112
120
|
"condition": {
|
|
113
121
|
"type": "string"
|
|
114
122
|
},
|
|
@@ -158,6 +166,10 @@
|
|
|
158
166
|
"comment": {
|
|
159
167
|
"type": "string"
|
|
160
168
|
},
|
|
169
|
+
"message": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"description": "error: failure message recorded in run.error. Supports {{template}} interpolation."
|
|
172
|
+
},
|
|
161
173
|
"on_approve": {
|
|
162
174
|
"type": "string"
|
|
163
175
|
},
|