@ryanfw/prompt-orchestration-pipeline 0.16.0 → 0.16.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryanfw/prompt-orchestration-pipeline",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "A Prompt-orchestration pipeline (POP) is a framework for building, running, and experimenting with complex chains of LLM tasks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/ui/server.js",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
46
46
|
"@radix-ui/themes": "^3.2.1",
|
|
47
47
|
"ajv": "^8.17.1",
|
|
48
|
+
"ajv-formats": "^3.0.1",
|
|
48
49
|
"better-sqlite3": "^11.7.0",
|
|
49
50
|
"chokidar": "^3.5.3",
|
|
50
51
|
"commander": "^14.0.2",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import Ajv from "ajv";
|
|
2
|
+
import addFormats from "ajv-formats";
|
|
2
3
|
|
|
3
|
-
const ajv = new Ajv({ allErrors: true, strict: false });
|
|
4
|
+
const ajv = new Ajv({ allErrors: true, strict: false, strictFormats: false });
|
|
5
|
+
addFormats(ajv);
|
|
4
6
|
|
|
5
7
|
export const validateWithSchema = (schema, data) => {
|
|
6
8
|
let parsedData = data;
|
package/src/core/validation.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import Ajv from "ajv";
|
|
2
|
+
import addFormats from "ajv-formats";
|
|
2
3
|
import { getConfig } from "./config.js";
|
|
3
4
|
|
|
4
|
-
const ajv = new Ajv({ allErrors: true });
|
|
5
|
+
const ajv = new Ajv({ allErrors: true, strictFormats: false });
|
|
6
|
+
addFormats(ajv);
|
|
5
7
|
|
|
6
8
|
// JSON schema for seed file structure - uses config for validation rules
|
|
7
9
|
function getSeedSchema() {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { chat } from "../../llm/index.js";
|
|
2
2
|
import Ajv from "ajv";
|
|
3
|
+
import addFormats from "ajv-formats";
|
|
3
4
|
|
|
4
|
-
const ajv = new Ajv();
|
|
5
|
+
const ajv = new Ajv({ strictFormats: false });
|
|
6
|
+
addFormats(ajv);
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Deduce JSON schema for an artifact using LLM with structured output.
|