@exaudeus/workrail 0.13.0 → 0.14.0

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.
@@ -68,7 +68,12 @@ let DefaultWorkflowService = class DefaultWorkflowService {
68
68
  const criteria = step.validationCriteria;
69
69
  if (!criteria)
70
70
  return { valid: true, issues: [], suggestions: [], warnings: undefined };
71
- return this.validationEngine.validate(output, criteria);
71
+ const result = await this.validationEngine.validate(output, criteria);
72
+ const contextualizedWarnings = result.warnings?.map(w => `Step '${workflowId}/${stepId}': ${w}`);
73
+ return {
74
+ ...result,
75
+ warnings: contextualizedWarnings,
76
+ };
72
77
  }
73
78
  getOrCompile(workflowId, workflow) {
74
79
  const cached = this.compiledCache.get(workflowId);
@@ -54,8 +54,8 @@
54
54
  "bytes": 2445
55
55
  },
56
56
  "application/services/workflow-service.js": {
57
- "sha256": "98a6aff98b658761aadeb48872ed569ad1a114fcfd0fa40d0295bb48a744d3fa",
58
- "bytes": 5845
57
+ "sha256": "ca0c2ae74ea89c22b0100c335be83e683c67ed130e266ebae8965591336a1395",
58
+ "bytes": 6062
59
59
  },
60
60
  "application/use-cases/get-next-step.d.ts": {
61
61
  "sha256": "7c0badbe104e5e5eae438ec05f6585b7b5b694a1028319cd9180a90039553984",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Step-by-step workflow enforcement for AI agents via MCP",
5
5
  "license": "MIT",
6
6
  "repository": {