promptfoo 0.96.1 → 0.96.2

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.
Files changed (109) hide show
  1. package/dist/package.json +5 -5
  2. package/dist/src/app/assets/{index-CL29fyye.js → index-CAof5cIE.js} +217 -217
  3. package/dist/src/app/assets/{index.es-CsYHA4xg.js → index.es-CrujH26S.js} +1 -1
  4. package/dist/src/app/assets/{sync-B9AjROwZ.js → sync-gFAH4kmH.js} +1 -1
  5. package/dist/src/app/index.html +1 -1
  6. package/dist/src/commands/init.d.ts.map +1 -1
  7. package/dist/src/commands/init.js +3 -0
  8. package/dist/src/commands/init.js.map +1 -1
  9. package/dist/src/models/evalResult.d.ts +1 -1
  10. package/dist/src/models/evalResult.d.ts.map +1 -1
  11. package/dist/src/models/evalResult.js +1 -1
  12. package/dist/src/models/evalResult.js.map +1 -1
  13. package/dist/src/onboarding.d.ts +12 -0
  14. package/dist/src/onboarding.d.ts.map +1 -1
  15. package/dist/src/onboarding.js +83 -43
  16. package/dist/src/onboarding.js.map +1 -1
  17. package/dist/src/providers/bedrock.d.ts.map +1 -1
  18. package/dist/src/providers/bedrock.js +5 -2
  19. package/dist/src/providers/bedrock.js.map +1 -1
  20. package/dist/src/redteam/index.js +10 -3
  21. package/dist/src/redteam/index.js.map +1 -1
  22. package/dist/src/redteam/plugins/base.d.ts.map +1 -1
  23. package/dist/src/redteam/plugins/base.js +2 -1
  24. package/dist/src/redteam/plugins/base.js.map +1 -1
  25. package/dist/src/redteam/plugins/contracts.d.ts.map +1 -1
  26. package/dist/src/redteam/plugins/contracts.js +20 -9
  27. package/dist/src/redteam/plugins/contracts.js.map +1 -1
  28. package/dist/src/redteam/plugins/crossSessionLeak.d.ts.map +1 -1
  29. package/dist/src/redteam/plugins/crossSessionLeak.js +21 -10
  30. package/dist/src/redteam/plugins/crossSessionLeak.js.map +1 -1
  31. package/dist/src/redteam/plugins/debugAccess.d.ts.map +1 -1
  32. package/dist/src/redteam/plugins/debugAccess.js +20 -9
  33. package/dist/src/redteam/plugins/debugAccess.js.map +1 -1
  34. package/dist/src/redteam/plugins/excessiveAgency.d.ts.map +1 -1
  35. package/dist/src/redteam/plugins/excessiveAgency.js +18 -7
  36. package/dist/src/redteam/plugins/excessiveAgency.js.map +1 -1
  37. package/dist/src/redteam/plugins/hallucination.d.ts.map +1 -1
  38. package/dist/src/redteam/plugins/hallucination.js +18 -7
  39. package/dist/src/redteam/plugins/hallucination.js.map +1 -1
  40. package/dist/src/redteam/plugins/harmful.d.ts +2 -2
  41. package/dist/src/redteam/plugins/harmful.d.ts.map +1 -1
  42. package/dist/src/redteam/plugins/harmful.js +44 -26
  43. package/dist/src/redteam/plugins/harmful.js.map +1 -1
  44. package/dist/src/redteam/plugins/imitation.d.ts.map +1 -1
  45. package/dist/src/redteam/plugins/imitation.js +20 -9
  46. package/dist/src/redteam/plugins/imitation.js.map +1 -1
  47. package/dist/src/redteam/plugins/index.d.ts +2 -2
  48. package/dist/src/redteam/plugins/index.d.ts.map +1 -1
  49. package/dist/src/redteam/plugins/index.js +8 -8
  50. package/dist/src/redteam/plugins/index.js.map +1 -1
  51. package/dist/src/redteam/plugins/overreliance.d.ts.map +1 -1
  52. package/dist/src/redteam/plugins/overreliance.js +18 -7
  53. package/dist/src/redteam/plugins/overreliance.js.map +1 -1
  54. package/dist/src/redteam/plugins/pii.d.ts +2 -2
  55. package/dist/src/redteam/plugins/pii.d.ts.map +1 -1
  56. package/dist/src/redteam/plugins/pii.js +4 -4
  57. package/dist/src/redteam/plugins/pii.js.map +1 -1
  58. package/dist/src/redteam/plugins/politics.d.ts.map +1 -1
  59. package/dist/src/redteam/plugins/politics.js +20 -9
  60. package/dist/src/redteam/plugins/politics.js.map +1 -1
  61. package/dist/src/redteam/plugins/promptExtraction.d.ts.map +1 -1
  62. package/dist/src/redteam/plugins/promptExtraction.js +23 -12
  63. package/dist/src/redteam/plugins/promptExtraction.js.map +1 -1
  64. package/dist/src/redteam/plugins/rbac.d.ts.map +1 -1
  65. package/dist/src/redteam/plugins/rbac.js +20 -9
  66. package/dist/src/redteam/plugins/rbac.js.map +1 -1
  67. package/dist/src/redteam/plugins/shellInjection.d.ts.map +1 -1
  68. package/dist/src/redteam/plugins/shellInjection.js +20 -9
  69. package/dist/src/redteam/plugins/shellInjection.js.map +1 -1
  70. package/dist/src/redteam/plugins/sqlInjection.d.ts.map +1 -1
  71. package/dist/src/redteam/plugins/sqlInjection.js +18 -7
  72. package/dist/src/redteam/plugins/sqlInjection.js.map +1 -1
  73. package/dist/src/redteam/strategies/crescendo.d.ts +1 -1
  74. package/dist/src/redteam/strategies/crescendo.d.ts.map +1 -1
  75. package/dist/src/redteam/strategies/crescendo.js +2 -1
  76. package/dist/src/redteam/strategies/crescendo.js.map +1 -1
  77. package/dist/src/redteam/strategies/goat.d.ts.map +1 -1
  78. package/dist/src/redteam/strategies/goat.js +1 -0
  79. package/dist/src/redteam/strategies/goat.js.map +1 -1
  80. package/dist/src/redteam/strategies/index.js +8 -8
  81. package/dist/src/redteam/strategies/index.js.map +1 -1
  82. package/dist/src/redteam/strategies/iterative.d.ts +1 -1
  83. package/dist/src/redteam/strategies/iterative.d.ts.map +1 -1
  84. package/dist/src/redteam/strategies/iterative.js +2 -1
  85. package/dist/src/redteam/strategies/iterative.js.map +1 -1
  86. package/dist/src/redteam/types.d.ts +11 -1
  87. package/dist/src/redteam/types.d.ts.map +1 -1
  88. package/dist/src/types/index.d.ts +1 -0
  89. package/dist/src/types/index.d.ts.map +1 -1
  90. package/dist/src/types/index.js.map +1 -1
  91. package/dist/src/util/config/load.d.ts.map +1 -1
  92. package/dist/src/util/config/load.js +7 -2
  93. package/dist/src/util/config/load.js.map +1 -1
  94. package/dist/src/util/convertEvalResultsToTable.d.ts.map +1 -1
  95. package/dist/src/util/convertEvalResultsToTable.js +4 -8
  96. package/dist/src/util/convertEvalResultsToTable.js.map +1 -1
  97. package/dist/src/util/exportToFile/index.d.ts.map +1 -1
  98. package/dist/src/validators/redteam.d.ts.map +1 -1
  99. package/dist/src/validators/redteam.js +6 -5
  100. package/dist/src/validators/redteam.js.map +1 -1
  101. package/dist/test/commands/init.test.js +1 -1
  102. package/dist/test/onboarding.test.js +8 -7
  103. package/dist/test/onboarding.test.js.map +1 -1
  104. package/dist/test/providers/bedrock.test.js +1 -4
  105. package/dist/test/providers/bedrock.test.js.map +1 -1
  106. package/dist/test/util/config/load.test.js +3 -1
  107. package/dist/test/util/config/load.test.js.map +1 -1
  108. package/dist/tsconfig.tsbuildinfo +1 -1
  109. package/package.json +5 -5
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.96.1",
5
+ "version": "0.96.2",
6
6
  "license": "MIT",
7
7
  "type": "commonjs",
8
8
  "repository": {
@@ -88,7 +88,7 @@
88
88
  "@eslint/js": "^9.14.0",
89
89
  "@libsql/client": "^0.14.0",
90
90
  "@swc/cli": "^0.5.0",
91
- "@swc/core": "^1.9.1",
91
+ "@swc/core": "^1.9.2",
92
92
  "@swc/jest": "^0.2.37",
93
93
  "@trivago/prettier-plugin-sort-imports": "^4.3.0",
94
94
  "@types/async": "^3.2.24",
@@ -132,7 +132,7 @@
132
132
  "ts-node": "^10.9.2",
133
133
  "tsconfig-paths": "^4.2.0",
134
134
  "typescript": "^5.6.3",
135
- "typescript-eslint": "^8.12.2",
135
+ "typescript-eslint": "^8.14.0",
136
136
  "zod-to-json-schema": "^3.23.5"
137
137
  },
138
138
  "dependencies": {
@@ -156,7 +156,7 @@
156
156
  "ajv": "^8.17.1",
157
157
  "ajv-formats": "^3.0.1",
158
158
  "async": "^3.2.6",
159
- "better-sqlite3": "^11.4.0",
159
+ "better-sqlite3": "^11.5.0",
160
160
  "cache-manager": "^4.1.0",
161
161
  "cache-manager-fs-hash": "^1.0.0",
162
162
  "chalk": "^4.1.2",
@@ -185,7 +185,7 @@
185
185
  "mathjs": "^13.2.1",
186
186
  "node-cache": "^5.1.2",
187
187
  "nunjucks": "^3.2.4",
188
- "openai": "^4.71.1",
188
+ "openai": "^4.72.0",
189
189
  "opener": "^1.5.2",
190
190
  "proxy-agent": "^6.4.0",
191
191
  "python-shell": "^5.0.0",