@darkhorseprojects/circuitry 0.2.27 → 0.2.29
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/dist/graph.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/node.js +4 -4
- package/package.json +1 -1
package/dist/graph.d.ts
CHANGED
|
@@ -181,9 +181,9 @@ export type CircuitryGraph = {
|
|
|
181
181
|
nodes?: CircuitryNode[];
|
|
182
182
|
/** Internal normalized execution edges. Authored graph files must not set this. */
|
|
183
183
|
edges?: CircuitryEdge[];
|
|
184
|
-
/**
|
|
184
|
+
/** Forbidden in authored v0.2 graph files. */
|
|
185
185
|
agents?: never;
|
|
186
|
-
/**
|
|
186
|
+
/** Forbidden in authored v0.2 graph files. */
|
|
187
187
|
inputs?: never;
|
|
188
188
|
runtime?: CircuitryRuntime;
|
|
189
189
|
validation?: CircuitryGraphValidation;
|
package/dist/index.js
CHANGED
|
@@ -163,16 +163,16 @@ var validateCircuitryGraphInternal = (graph, standard = {}, options) => {
|
|
|
163
163
|
addError("missing_resources", "Circuitry v0.2 graphs must use a resources: section", ["resources"]);
|
|
164
164
|
}
|
|
165
165
|
if (graphObject.agents && Object.keys(graphObject.agents).length > 0) {
|
|
166
|
-
addError("
|
|
166
|
+
addError("forbidden_agents", "Circuitry v0.2 graph files must not use top-level agents:; use resources:", ["agents"]);
|
|
167
167
|
}
|
|
168
168
|
if (graphObject.inputs && Object.keys(graphObject.inputs).length > 0) {
|
|
169
|
-
addError("
|
|
169
|
+
addError("forbidden_inputs", "Circuitry v0.2 graph files must not use top-level inputs:; use resources:", ["inputs"]);
|
|
170
170
|
}
|
|
171
171
|
if (graphObject.nodes && graphObject.nodes.length > 0) {
|
|
172
|
-
addError("
|
|
172
|
+
addError("forbidden_nodes", "Circuitry v0.2 graph files must not use top-level nodes:; use resources:", ["nodes"]);
|
|
173
173
|
}
|
|
174
174
|
if (graphObject.edges && graphObject.edges.length > 0) {
|
|
175
|
-
addError("
|
|
175
|
+
addError("forbidden_edges", "Circuitry v0.2 graph files must not use top-level edges:; use resource inputs:", ["edges"]);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
const normalized = normalizeCircuitryGraph(graphObject);
|
package/dist/node.js
CHANGED
|
@@ -144,16 +144,16 @@ var validateCircuitryGraphInternal = (graph, standard = {}, options) => {
|
|
|
144
144
|
addError("missing_resources", "Circuitry v0.2 graphs must use a resources: section", ["resources"]);
|
|
145
145
|
}
|
|
146
146
|
if (graphObject.agents && Object.keys(graphObject.agents).length > 0) {
|
|
147
|
-
addError("
|
|
147
|
+
addError("forbidden_agents", "Circuitry v0.2 graph files must not use top-level agents:; use resources:", ["agents"]);
|
|
148
148
|
}
|
|
149
149
|
if (graphObject.inputs && Object.keys(graphObject.inputs).length > 0) {
|
|
150
|
-
addError("
|
|
150
|
+
addError("forbidden_inputs", "Circuitry v0.2 graph files must not use top-level inputs:; use resources:", ["inputs"]);
|
|
151
151
|
}
|
|
152
152
|
if (graphObject.nodes && graphObject.nodes.length > 0) {
|
|
153
|
-
addError("
|
|
153
|
+
addError("forbidden_nodes", "Circuitry v0.2 graph files must not use top-level nodes:; use resources:", ["nodes"]);
|
|
154
154
|
}
|
|
155
155
|
if (graphObject.edges && graphObject.edges.length > 0) {
|
|
156
|
-
addError("
|
|
156
|
+
addError("forbidden_edges", "Circuitry v0.2 graph files must not use top-level edges:; use resource inputs:", ["edges"]);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
const normalized = normalizeCircuitryGraph(graphObject);
|