ai-engineering-loop 1.7.0 → 1.9.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.
- package/README.md +151 -353
- package/bin/ai-engineering-loop.js +73 -3
- package/core/local-workflow-studio.md +28 -7
- package/docs/images/studio-hero.svg +124 -0
- package/lib/gates.js +3 -2
- package/lib/goal-runtime.js +130 -0
- package/lib/loop-groups.js +144 -0
- package/lib/node-registry.js +8 -0
- package/lib/recipe-builder.js +27 -1
- package/lib/recipe-graph.js +111 -0
- package/lib/recipe.js +142 -8
- package/lib/run-checkout.js +175 -0
- package/lib/run-history.js +193 -0
- package/lib/run-interactions.js +184 -0
- package/lib/run-state.js +113 -13
- package/lib/studio-runtime.js +73 -0
- package/lib/studio-server.js +251 -3
- package/lib/workflow-runtime.js +392 -8
- package/package.json +2 -2
- package/schemas/compiled-plan.schema.json +5 -0
- package/schemas/edge-definition.schema.json +13 -0
- package/schemas/loop-group.schema.json +41 -0
- package/schemas/node-definition.schema.json +75 -1
- package/schemas/recipe.schema.json +10 -0
- package/schemas/workflow-event.schema.json +10 -1
- package/schemas/workflow-state.schema.json +16 -0
- package/studio/app.js +1177 -59
- package/studio/index.html +126 -8
- package/studio/styles.css +26 -13
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
"minItems": 1,
|
|
21
21
|
"maxItems": 64,
|
|
22
22
|
"items": { "$ref": "node-definition.schema.json" }
|
|
23
|
+
},
|
|
24
|
+
"edges": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"maxItems": 256,
|
|
27
|
+
"items": { "$ref": "edge-definition.schema.json" }
|
|
28
|
+
},
|
|
29
|
+
"loopGroups": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"maxItems": 16,
|
|
32
|
+
"items": { "$ref": "loop-group.schema.json" }
|
|
23
33
|
}
|
|
24
34
|
},
|
|
25
35
|
"additionalProperties": false
|
|
@@ -18,7 +18,16 @@
|
|
|
18
18
|
"NODE_FAILED",
|
|
19
19
|
"NODE_RETRIED",
|
|
20
20
|
"NODE_APPROVED",
|
|
21
|
-
"GATE_PASSED"
|
|
21
|
+
"GATE_PASSED",
|
|
22
|
+
"DECISION_RESOLVED",
|
|
23
|
+
"LOOP_REPEATED",
|
|
24
|
+
"LOOP_EXITED",
|
|
25
|
+
"LOOP_LIMIT_REACHED",
|
|
26
|
+
"LOOP_LIMIT_OVERRIDE",
|
|
27
|
+
"LOOP_LIMIT_EXITED",
|
|
28
|
+
"LOOP_RUN_STOPPED",
|
|
29
|
+
"GOAL_UNFROZEN",
|
|
30
|
+
"WORKFLOW_EXECUTION_STARTED"
|
|
22
31
|
]
|
|
23
32
|
},
|
|
24
33
|
"runId": { "type": "string", "minLength": 1 },
|
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
"graphHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
11
11
|
"sequence": { "type": "integer", "minimum": 1 },
|
|
12
12
|
"eventHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
13
|
+
"loopGroups": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": ["status", "iteration", "maxIterations", "updatedAt"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"status": { "enum": ["PENDING", "RUNNING", "BLOCKED", "EXITED", "STOPPED"] },
|
|
20
|
+
"iteration": { "type": "integer", "minimum": 1 },
|
|
21
|
+
"maxIterations": { "type": "integer", "minimum": 1, "maximum": 100 },
|
|
22
|
+
"lastOutcome": { "type": ["string", "null"] },
|
|
23
|
+
"updatedAt": { "type": "string", "format": "date-time" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
13
27
|
"nodes": {
|
|
14
28
|
"type": "object",
|
|
15
29
|
"additionalProperties": {
|
|
@@ -20,6 +34,8 @@
|
|
|
20
34
|
"enum": ["PENDING", "READY", "RUNNING", "PASSED", "FAILED", "SKIPPED", "BLOCKED"]
|
|
21
35
|
},
|
|
22
36
|
"attempts": { "type": "integer", "minimum": 0 },
|
|
37
|
+
"loopGroupId": { "type": "string" },
|
|
38
|
+
"loopIteration": { "type": "integer", "minimum": 1 },
|
|
23
39
|
"updatedAt": { "type": "string", "format": "date-time" }
|
|
24
40
|
}
|
|
25
41
|
}
|