promptfoo 0.88.0 → 0.89.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/README.md +1 -1
- package/dist/package.json +20 -19
- package/dist/src/__mocks__/esm.d.ts.map +1 -1
- package/dist/src/__mocks__/esm.js +1 -0
- package/dist/src/__mocks__/esm.js.map +1 -1
- package/dist/src/app/assets/index-BqnSGUa4.js +782 -0
- package/dist/src/app/assets/index-Dl-FhnW1.css +1 -0
- package/dist/src/app/assets/index.es-VzVL4W18.js +18 -0
- package/dist/src/app/assets/purify.es-DGIRlouP.js +3 -0
- package/dist/src/app/assets/sync-Cln02oy6.js +4 -0
- package/dist/src/app/favicon.png +0 -0
- package/dist/src/app/index.html +16 -0
- package/dist/src/assertions.d.ts.map +1 -1
- package/dist/src/assertions.js +8 -3
- package/dist/src/assertions.js.map +1 -1
- package/dist/src/cache.js +1 -1
- package/dist/src/cache.js.map +1 -1
- package/dist/src/commands/eval.js +1 -1
- package/dist/src/commands/eval.js.map +1 -1
- package/dist/src/commands/export.js +1 -1
- package/dist/src/commands/export.js.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +39 -3
- package/dist/src/config.js.map +1 -1
- package/dist/src/csv.d.ts.map +1 -1
- package/dist/src/csv.js +40 -15
- package/dist/src/csv.js.map +1 -1
- package/dist/src/database/tables.d.ts +1 -1
- package/dist/src/evaluatorHelpers.js +1 -1
- package/dist/src/evaluatorHelpers.js.map +1 -1
- package/dist/src/globalConfig.js +1 -1
- package/dist/src/globalConfig.js.map +1 -1
- package/dist/src/golang/wrapper.go +53 -0
- package/dist/src/matchers.d.ts.map +1 -1
- package/dist/src/matchers.js +4 -3
- package/dist/src/matchers.js.map +1 -1
- package/dist/src/onboarding.d.ts +1 -1
- package/dist/src/onboarding.d.ts.map +1 -1
- package/dist/src/onboarding.js +3 -1
- package/dist/src/onboarding.js.map +1 -1
- package/dist/src/providers/anthropic.js +1 -1
- package/dist/src/providers/anthropic.js.map +1 -1
- package/dist/src/providers/bedrock.js +2 -2
- package/dist/src/providers/bedrock.js.map +1 -1
- package/dist/src/providers/cloudflare-ai.d.ts +2 -2
- package/dist/src/providers/cloudflare-ai.d.ts.map +1 -1
- package/dist/src/providers/cloudflare-ai.js.map +1 -1
- package/dist/src/providers/cohere.js +1 -1
- package/dist/src/providers/cohere.js.map +1 -1
- package/dist/src/providers/golangCompletion.d.ts +19 -0
- package/dist/src/providers/golangCompletion.d.ts.map +1 -0
- package/dist/src/providers/golangCompletion.js +105 -0
- package/dist/src/providers/golangCompletion.js.map +1 -0
- package/dist/src/providers/http.js +1 -1
- package/dist/src/providers/http.js.map +1 -1
- package/dist/src/providers/mistral.js +1 -1
- package/dist/src/providers/mistral.js.map +1 -1
- package/dist/src/providers/openai.d.ts.map +1 -1
- package/dist/src/providers/openai.js +5 -1
- package/dist/src/providers/openai.js.map +1 -1
- package/dist/src/providers/replicate.d.ts.map +1 -1
- package/dist/src/providers/replicate.js +0 -1
- package/dist/src/providers/replicate.js.map +1 -1
- package/dist/src/providers/vertexUtil.js +2 -2
- package/dist/src/providers/vertexUtil.js.map +1 -1
- package/dist/src/providers/websocket.d.ts +18 -0
- package/dist/src/providers/websocket.d.ts.map +1 -0
- package/dist/src/providers/websocket.js +79 -0
- package/dist/src/providers/websocket.js.map +1 -0
- package/dist/src/providers.d.ts.map +1 -1
- package/dist/src/providers.js +9 -0
- package/dist/src/providers.js.map +1 -1
- package/dist/src/python/execAsync.d.ts +10 -0
- package/dist/src/python/execAsync.d.ts.map +1 -0
- package/dist/src/python/execAsync.js +17 -0
- package/dist/src/python/execAsync.js.map +1 -0
- package/dist/src/python/pythonUtils.d.ts +6 -0
- package/dist/src/python/pythonUtils.d.ts.map +1 -1
- package/dist/src/python/pythonUtils.js +44 -30
- package/dist/src/python/pythonUtils.js.map +1 -1
- package/dist/src/python/wrapper.d.ts.map +1 -1
- package/dist/src/python/wrapper.js +8 -5
- package/dist/src/python/wrapper.js.map +1 -1
- package/dist/src/redteam/commands/init.d.ts.map +1 -1
- package/dist/src/redteam/commands/init.js +22 -14
- package/dist/src/redteam/commands/init.js.map +1 -1
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +16 -22
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/redteam/providers/crescendo/index.js +2 -2
- package/dist/src/redteam/providers/crescendo/index.js.map +1 -1
- package/dist/src/server/server.d.ts.map +1 -1
- package/dist/src/server/server.js +10 -4
- package/dist/src/server/server.js.map +1 -1
- package/dist/src/share.js +1 -1
- package/dist/src/share.js.map +1 -1
- package/dist/src/suggestions.js +1 -1
- package/dist/src/suggestions.js.map +1 -1
- package/dist/src/telemetry.d.ts.map +1 -1
- package/dist/src/telemetry.js +3 -1
- package/dist/src/telemetry.js.map +1 -1
- package/dist/src/testCases.d.ts.map +1 -1
- package/dist/src/testCases.js +2 -1
- package/dist/src/testCases.js.map +1 -1
- package/dist/src/types/index.d.ts +168 -7
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +9 -0
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/util/index.d.ts +18 -1
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/index.js +39 -12
- package/dist/src/util/index.js.map +1 -1
- package/dist/src/util/json.js +2 -2
- package/dist/src/util/json.js.map +1 -1
- package/dist/src/validators/providers.d.ts +146 -0
- package/dist/src/validators/providers.d.ts.map +1 -1
- package/dist/src/validators/providers.js +5 -5
- package/dist/src/validators/providers.js.map +1 -1
- package/dist/test/config.test.js +103 -6
- package/dist/test/config.test.js.map +1 -1
- package/dist/test/csv.test.js +84 -0
- package/dist/test/csv.test.js.map +1 -1
- package/dist/test/matchers.test.js +78 -1
- package/dist/test/matchers.test.js.map +1 -1
- package/dist/test/providers.bedrock.test.js +2 -1
- package/dist/test/providers.bedrock.test.js.map +1 -1
- package/dist/test/python/pythonUtils.test.js +170 -110
- package/dist/test/python/pythonUtils.test.js.map +1 -1
- package/dist/test/python/wrapper.test.js +47 -32
- package/dist/test/python/wrapper.test.js.map +1 -1
- package/dist/test/rateLimit.test.js.map +1 -1
- package/dist/test/types.test.js +16 -9
- package/dist/test/types.test.js.map +1 -1
- package/dist/test/util.test.js +10 -0
- package/dist/test/util.test.js.map +1 -1
- package/package.json +20 -19
- package/dist/src/web/nextui/404/index.html +0 -1
- package/dist/src/web/nextui/404.html +0 -1
- package/dist/src/web/nextui/_next/static/MqErSXRfFhsncheOBrGQG/_buildManifest.js +0 -1
- package/dist/src/web/nextui/_next/static/MqErSXRfFhsncheOBrGQG/_ssgManifest.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/113-c691bf7d3a37d865.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/132-d6bea93785831786.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/15.306496fdcef5f880.js +0 -52
- package/dist/src/web/nextui/_next/static/chunks/167-744b9f585d2d97f7.js +0 -54
- package/dist/src/web/nextui/_next/static/chunks/189-f9d565af9a2b91cb.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/1a53ab81-5e1a018996226f61.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/235-2bbcbc3cd37eef0f.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/285-1e2a6158b5f0e918.js +0 -32
- package/dist/src/web/nextui/_next/static/chunks/407.42b5daf65ab5dde9.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/417-cbf95fe2bc362650.js +0 -2
- package/dist/src/web/nextui/_next/static/chunks/461-77257ab6b1bb209d.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/565431e5-7b9122ac20f7a0ae.js +0 -140
- package/dist/src/web/nextui/_next/static/chunks/631-d005608c3710a99c.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/640-0f757e2fe135173d.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/646-62a1d1d5b397d18f.js +0 -28
- package/dist/src/web/nextui/_next/static/chunks/730-3eb7255cd813a727.js +0 -25
- package/dist/src/web/nextui/_next/static/chunks/782-910eb0e09b818816.js +0 -35
- package/dist/src/web/nextui/_next/static/chunks/840.58dde6630f088da4.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/854-c18aaae33bccdc36.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/86-aa3374f7327c985c.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/874-66f90697795eddbc.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/88-f3a7a858d5f4e9a0.js +0 -17
- package/dist/src/web/nextui/_next/static/chunks/887.028187fb318c3e59.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/906-70c43cd62b2efac1.js +0 -97
- package/dist/src/web/nextui/_next/static/chunks/972-15d1ab608a24eebf.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/975-db84f98b8dd028ab.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/a5c829b0-07a2c92898a6780c.js +0 -14
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-c1dbf0abc580796f.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-93b80ab19bdaf2cc.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-17e6d3f57945f88a.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/not-found-dc8b4f57fd363c1b.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/page-1e54704d75f36e25.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/page-5295461188ef9b43.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/layout-b0e8e0230ef8ed73.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/page-81e3b8fee37eaf67.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/progress/page-ac2f99c11e76f5a5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-296c32f480e84a57.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-f7c9e46492061e19.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-b88fdbe49672ce14.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/b6261da7-e9d81a4364ddd0c0.js +0 -9
- package/dist/src/web/nextui/_next/static/chunks/fd57813c.8f0e3582250c76c5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/framework-c3d480eb9ad30ba5.js +0 -25
- package/dist/src/web/nextui/_next/static/chunks/main-6b1ff2291a752212.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/main-app-0dc90092cd7acaaf.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/pages/_app-998b254a061422d4.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/pages/_error-94f0db477e27e000.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/webpack-452ae8c28379ed4c.js +0 -1
- package/dist/src/web/nextui/_next/static/css/48d388184a2f4ce3.css +0 -1
- package/dist/src/web/nextui/_next/static/css/4d76d7cdd9492e1d.css +0 -1
- package/dist/src/web/nextui/_next/static/css/8119d8bd13a8adab.css +0 -1
- package/dist/src/web/nextui/_next/static/css/87b5e6e04efd27e5.css +0 -1
- package/dist/src/web/nextui/_next/static/css/de0307797e31a3e6.css +0 -1
- package/dist/src/web/nextui/_next/static/css/eb523daddb89dfc1.css +0 -1
- package/dist/src/web/nextui/_next/static/css/edcd6f0b6c902fde.css +0 -1
- package/dist/src/web/nextui/_next/static/media/26a46d62cd723877-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/55c55f0601d81cf3-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/581909926a08bbc8-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/6d93bde91c0c2823-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/97e0cb1ae144a2a9-s.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/a34f9d1faa5f3315-s.p.woff2 +0 -0
- package/dist/src/web/nextui/_next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/dist/src/web/nextui/android-chrome-192x192.png +0 -0
- package/dist/src/web/nextui/android-chrome-512x512.png +0 -0
- package/dist/src/web/nextui/apple-touch-icon.png +0 -0
- package/dist/src/web/nextui/auth/callback +0 -1
- package/dist/src/web/nextui/auth/login/index.html +0 -1
- package/dist/src/web/nextui/auth/login/index.txt +0 -10
- package/dist/src/web/nextui/auth/signup/index.html +0 -1
- package/dist/src/web/nextui/auth/signup/index.txt +0 -10
- package/dist/src/web/nextui/browserconfig.xml +0 -9
- package/dist/src/web/nextui/datasets/index.html +0 -1
- package/dist/src/web/nextui/datasets/index.txt +0 -10
- package/dist/src/web/nextui/eval/index.html +0 -1
- package/dist/src/web/nextui/eval/index.txt +0 -12
- package/dist/src/web/nextui/index.html +0 -1
- package/dist/src/web/nextui/index.txt +0 -11
- package/dist/src/web/nextui/logo.svg +0 -30
- package/dist/src/web/nextui/mstile-144x144.png +0 -0
- package/dist/src/web/nextui/mstile-150x150.png +0 -0
- package/dist/src/web/nextui/mstile-310x150.png +0 -0
- package/dist/src/web/nextui/mstile-310x310.png +0 -0
- package/dist/src/web/nextui/mstile-70x70.png +0 -0
- package/dist/src/web/nextui/progress/index.html +0 -1
- package/dist/src/web/nextui/progress/index.txt +0 -10
- package/dist/src/web/nextui/prompts/index.html +0 -1
- package/dist/src/web/nextui/prompts/index.txt +0 -10
- package/dist/src/web/nextui/report/index.html +0 -1
- package/dist/src/web/nextui/report/index.txt +0 -12
- package/dist/src/web/nextui/safari-pinned-tab.svg +0 -68
- package/dist/src/web/nextui/setup/index.html +0 -1
- package/dist/src/web/nextui/setup/index.txt +0 -12
- package/dist/src/web/nextui/site.webmanifest +0 -19
- /package/dist/src/{web/nextui/logo-panda.svg → app/assets/logo-panda-BuYvzEyb.svg} +0 -0
- /package/dist/src/{web/nextui → app}/favicon-16x16.png +0 -0
- /package/dist/src/{web/nextui → app}/favicon-32x32.png +0 -0
- /package/dist/src/{web/nextui → app}/favicon.ico +0 -0
package/README.md
CHANGED
|
@@ -414,7 +414,7 @@ cd path/to/experiment-with-promptfoo # contains your promptfooconfig.yaml
|
|
|
414
414
|
npx path/to/promptfoo-source eval
|
|
415
415
|
```
|
|
416
416
|
|
|
417
|
-
The web UI is located in `src/
|
|
417
|
+
The web UI is located in `src/app`. To run it in dev mode, run `npm run local:app`. This will host the web UI at http://localhost:3000. The web UI expects `promptfoo view` to be running separately.
|
|
418
418
|
|
|
419
419
|
Then run:
|
|
420
420
|
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "promptfoo",
|
|
3
3
|
"description": "LLM eval & testing toolkit",
|
|
4
4
|
"author": "Ian Webster",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.89.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"workspaces": [
|
|
20
|
-
"src/
|
|
20
|
+
"src/app",
|
|
21
21
|
"site"
|
|
22
22
|
],
|
|
23
23
|
"types": "dist/src/index.d.ts",
|
|
@@ -38,25 +38,24 @@
|
|
|
38
38
|
"f": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|jsx|mjs|cjs|ts|tsx|json|css|scss|html|md|yaml|yml)$' | xargs prettier --write",
|
|
39
39
|
"lint": "eslint . --max-warnings=0",
|
|
40
40
|
"local": "ts-node --cwdMode --transpileOnly src/main.ts",
|
|
41
|
-
"local:web": "npm run dev --prefix src/
|
|
42
|
-
"install:nextui": "npm install --prefix src/web/nextui",
|
|
41
|
+
"local:web": "npm run dev --prefix src/app",
|
|
43
42
|
"build:clean": "shx rm -rf dist",
|
|
44
|
-
"build:
|
|
43
|
+
"build:app": "npm run build --prefix src/app",
|
|
45
44
|
"build:watch": "tsc --watch",
|
|
46
|
-
"build": "tsc && shx cp src/*.html dist/src && shx cp src/python/wrapper.py dist/src/python && shx rm -rf dist/drizzle && shx cp -r drizzle dist/drizzle && npm run build:
|
|
45
|
+
"build": "tsc && shx cp src/*.html dist/src && shx cp src/python/wrapper.py dist/src/python && shx mkdir -p dist/src/golang && shx cp src/golang/wrapper.go dist/src/golang && shx rm -rf dist/drizzle && shx cp -r drizzle dist/drizzle && npm run build:app && shx chmod +x dist/src/main.js",
|
|
47
46
|
"test": "jest",
|
|
48
47
|
"test:watch": "jest --watch",
|
|
49
|
-
"test:
|
|
48
|
+
"test:app": "npm run test --prefix src/app",
|
|
50
49
|
"format": "prettier -w .",
|
|
51
50
|
"format:check": "prettier --check .",
|
|
52
51
|
"db:migrate": "npx tsx src/migrate.ts",
|
|
53
52
|
"db:generate": "npx drizzle-kit generate",
|
|
54
53
|
"jsonSchema:generate": "npx -y tsx scripts/generateJsonSchema.ts > site/static/config-schema.json",
|
|
55
|
-
"audit:fix": "npm audit fix && npm audit fix --prefix src/
|
|
54
|
+
"audit:fix": "npm audit fix && npm audit fix --prefix src/app && npm audit fix --prefix site",
|
|
56
55
|
"prepublishOnly": "npm run build:clean && npm run build",
|
|
57
56
|
"dev:server": "nodemon src/server/index.ts",
|
|
58
|
-
"dev:
|
|
59
|
-
"dev": "concurrently \"npm run dev:server\" \"npm run dev:
|
|
57
|
+
"dev:app": "npm run dev --prefix src/app",
|
|
58
|
+
"dev": "concurrently \"npm run dev:server\" \"npm run dev:app\""
|
|
60
59
|
},
|
|
61
60
|
"overrides": {
|
|
62
61
|
"uri-js": "npm:uri-js-replace",
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
"@aws-sdk/client-bedrock-runtime": "^3.651.1",
|
|
79
78
|
"@azure/identity": "^4.4.1",
|
|
80
79
|
"@eslint/js": "^9.10.0",
|
|
81
|
-
"@libsql/client": "^0.
|
|
80
|
+
"@libsql/client": "^0.12.0",
|
|
82
81
|
"@swc/cli": "^0.4.0",
|
|
83
82
|
"@swc/core": "^1.7.26",
|
|
84
83
|
"@swc/jest": "^0.2.36",
|
|
@@ -107,16 +106,14 @@
|
|
|
107
106
|
"concurrently": "^8.2.2",
|
|
108
107
|
"drizzle-kit": "^0.24.2",
|
|
109
108
|
"esbuild": "^0.23.1",
|
|
110
|
-
"eslint": "^
|
|
111
|
-
"eslint-plugin-jest": "28.
|
|
112
|
-
"eslint-plugin-react-hooks": "
|
|
109
|
+
"eslint": "^9.10.0",
|
|
110
|
+
"eslint-plugin-jest": "^28.8.3",
|
|
111
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
113
112
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
114
|
-
"eslint-plugin-unused-imports": "^
|
|
113
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
115
114
|
"jest": "^29.7.0",
|
|
116
115
|
"jest-watch-typeahead": "^2.2.2",
|
|
117
116
|
"madge": "^8.0.0",
|
|
118
|
-
"nexe": "^4.0.0-rc.6",
|
|
119
|
-
"next": "13.4.13",
|
|
120
117
|
"nock": "^13.5.5",
|
|
121
118
|
"nodemon": "^3.1.4",
|
|
122
119
|
"prettier": "^3.3.3",
|
|
@@ -124,13 +121,16 @@
|
|
|
124
121
|
"ts-node": "^10.9.2",
|
|
125
122
|
"tsconfig-paths": "^4.2.0",
|
|
126
123
|
"typescript": "^5.6.2",
|
|
127
|
-
"typescript-eslint": "^
|
|
124
|
+
"typescript-eslint": "^8.6.0",
|
|
128
125
|
"zod-to-json-schema": "^3.23.3"
|
|
129
126
|
},
|
|
130
127
|
"dependencies": {
|
|
131
128
|
"@anthropic-ai/sdk": "^0.27.3",
|
|
132
129
|
"@apidevtools/json-schema-ref-parser": "^11.7.0",
|
|
130
|
+
"@emotion/react": "^11.13.3",
|
|
131
|
+
"@emotion/styled": "^11.13.0",
|
|
133
132
|
"@googleapis/sheets": "^9.3.1",
|
|
133
|
+
"@mui/material": "^6.1.0",
|
|
134
134
|
"ajv": "^8.17.1",
|
|
135
135
|
"ajv-formats": "^3.0.1",
|
|
136
136
|
"async": "^3.2.6",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"mathjs": "^13.1.1",
|
|
163
163
|
"node-fetch": "^2.6.7",
|
|
164
164
|
"nunjucks": "^3.2.4",
|
|
165
|
-
"openai": "^4.61.
|
|
165
|
+
"openai": "^4.61.1",
|
|
166
166
|
"opener": "^1.5.2",
|
|
167
167
|
"proxy-agent": "^6.4.0",
|
|
168
168
|
"python-shell": "^5.0.0",
|
|
@@ -173,6 +173,7 @@
|
|
|
173
173
|
"tiny-invariant": "^1.3.3",
|
|
174
174
|
"uuid": "^10.0.0",
|
|
175
175
|
"winston": "^3.14.2",
|
|
176
|
+
"ws": "^8.18.0",
|
|
176
177
|
"zod": "^3.23.8"
|
|
177
178
|
},
|
|
178
179
|
"madge": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../../../src/__mocks__/esm.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,WAE3B;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../../../src/__mocks__/esm.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,WAE3B;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,OAOnE"}
|
|
@@ -30,6 +30,7 @@ function getDirectory() {
|
|
|
30
30
|
return '/test/dir';
|
|
31
31
|
}
|
|
32
32
|
function importModule(filePath, functionName) {
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
33
34
|
const mod = require(path.resolve(filePath));
|
|
34
35
|
if (functionName) {
|
|
35
36
|
return mod[functionName];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esm.js","sourceRoot":"","sources":["../../../src/__mocks__/esm.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oCAEC;AAED,
|
|
1
|
+
{"version":3,"file":"esm.js","sourceRoot":"","sources":["../../../src/__mocks__/esm.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oCAEC;AAED,oCAOC;AAbD,2CAA6B;AAE7B,SAAgB,YAAY;IAC1B,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAgB,YAAY,CAAC,QAAgB,EAAE,YAAqB;IAClE,iEAAiE;IACjE,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5C,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|