yaml-flow 2.7.0 → 3.0.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 +168 -3
- package/browser/ingest-board.js +296 -0
- package/browser/live-cards.js +303 -0
- package/browser/live-cards.schema.json +22 -2
- package/dist/card-compute/index.cjs +6751 -0
- package/dist/card-compute/index.cjs.map +1 -1
- package/dist/card-compute/index.d.cts +24 -1
- package/dist/card-compute/index.d.ts +24 -1
- package/dist/card-compute/index.js +6747 -1
- package/dist/card-compute/index.js.map +1 -1
- package/dist/{constants-BEbO2_OK.d.ts → constants-B_ftYTTE.d.ts} +36 -6
- package/dist/{constants-BNjeIlZ8.d.cts → constants-CiyHX8L-.d.cts} +36 -6
- package/dist/continuous-event-graph/index.cjs +399 -42
- package/dist/continuous-event-graph/index.cjs.map +1 -1
- package/dist/continuous-event-graph/index.d.cts +124 -5
- package/dist/continuous-event-graph/index.d.ts +124 -5
- package/dist/continuous-event-graph/index.js +396 -43
- package/dist/continuous-event-graph/index.js.map +1 -1
- package/dist/event-graph/index.cjs +6784 -44
- package/dist/event-graph/index.cjs.map +1 -1
- package/dist/event-graph/index.d.cts +5 -5
- package/dist/event-graph/index.d.ts +5 -5
- package/dist/event-graph/index.js +6777 -43
- package/dist/event-graph/index.js.map +1 -1
- package/dist/index.cjs +7678 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7665 -73
- package/dist/index.js.map +1 -1
- package/dist/inference/index.cjs +17 -8
- package/dist/inference/index.cjs.map +1 -1
- package/dist/inference/index.d.cts +2 -2
- package/dist/inference/index.d.ts +2 -2
- package/dist/inference/index.js +17 -8
- package/dist/inference/index.js.map +1 -1
- package/dist/step-machine/index.cjs +6600 -0
- package/dist/step-machine/index.cjs.map +1 -1
- package/dist/step-machine/index.d.cts +26 -1
- package/dist/step-machine/index.d.ts +26 -1
- package/dist/step-machine/index.js +6596 -1
- package/dist/step-machine/index.js.map +1 -1
- package/dist/{types-DAI_a2as.d.ts → types-BpWrH1sf.d.cts} +16 -7
- package/dist/{types-DAI_a2as.d.cts → types-BpWrH1sf.d.ts} +16 -7
- package/dist/{types-mS_pPftm.d.ts → types-BuEo3wVG.d.ts} +1 -1
- package/dist/{types-C2lOwquM.d.cts → types-CxJg9Jrt.d.cts} +1 -1
- package/package.json +3 -2
- package/schema/event-graph.schema.json +254 -0
- package/schema/live-cards.schema.json +22 -2
|
@@ -74,4 +74,29 @@ declare function parseStepFlowYaml(yamlString: string): Promise<StepFlowConfig>;
|
|
|
74
74
|
declare function validateStepFlowConfig(flow: unknown): string[];
|
|
75
75
|
declare function loadStepFlow(source: string | StepFlowConfig): Promise<StepFlowConfig>;
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
/**
|
|
78
|
+
* schema-validator — Full JSON Schema validation for StepFlow configs.
|
|
79
|
+
*
|
|
80
|
+
* Uses AJV to validate against the published flow.schema.json.
|
|
81
|
+
* For a lightweight sync check without AJV, use `validateStepFlowConfig()` instead.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import { validateFlowSchema } from 'yaml-flow/step-machine';
|
|
86
|
+
*
|
|
87
|
+
* const result = validateFlowSchema(config);
|
|
88
|
+
* if (!result.ok) console.error(result.errors);
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
interface SchemaValidationResult {
|
|
92
|
+
ok: boolean;
|
|
93
|
+
errors: string[];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Validate a step-flow config against the full flow.schema.json (draft-07).
|
|
97
|
+
*
|
|
98
|
+
* Requires `ajv` and `ajv-formats` to be installed.
|
|
99
|
+
*/
|
|
100
|
+
declare function validateFlowSchema(config: unknown): SchemaValidationResult;
|
|
101
|
+
|
|
102
|
+
export { StepEventListener, StepEventType, StepFlowConfig, StepHandler, StepMachine, StepMachineOptions, StepMachineResult, StepMachineState, StepReducerResult, StepResult, applyStepResult, checkCircuitBreaker, computeStepInput, createInitialState, createStepMachine, extractReturnData, loadStepFlow, parseStepFlowYaml, validateFlowSchema, validateStepFlowConfig };
|
|
@@ -74,4 +74,29 @@ declare function parseStepFlowYaml(yamlString: string): Promise<StepFlowConfig>;
|
|
|
74
74
|
declare function validateStepFlowConfig(flow: unknown): string[];
|
|
75
75
|
declare function loadStepFlow(source: string | StepFlowConfig): Promise<StepFlowConfig>;
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
/**
|
|
78
|
+
* schema-validator — Full JSON Schema validation for StepFlow configs.
|
|
79
|
+
*
|
|
80
|
+
* Uses AJV to validate against the published flow.schema.json.
|
|
81
|
+
* For a lightweight sync check without AJV, use `validateStepFlowConfig()` instead.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import { validateFlowSchema } from 'yaml-flow/step-machine';
|
|
86
|
+
*
|
|
87
|
+
* const result = validateFlowSchema(config);
|
|
88
|
+
* if (!result.ok) console.error(result.errors);
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
interface SchemaValidationResult {
|
|
92
|
+
ok: boolean;
|
|
93
|
+
errors: string[];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Validate a step-flow config against the full flow.schema.json (draft-07).
|
|
97
|
+
*
|
|
98
|
+
* Requires `ajv` and `ajv-formats` to be installed.
|
|
99
|
+
*/
|
|
100
|
+
declare function validateFlowSchema(config: unknown): SchemaValidationResult;
|
|
101
|
+
|
|
102
|
+
export { StepEventListener, StepEventType, StepFlowConfig, StepHandler, StepMachine, StepMachineOptions, StepMachineResult, StepMachineState, StepReducerResult, StepResult, applyStepResult, checkCircuitBreaker, computeStepInput, createInitialState, createStepMachine, extractReturnData, loadStepFlow, parseStepFlowYaml, validateFlowSchema, validateStepFlowConfig };
|