shield-llm 0.2.2 → 0.3.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.
@@ -1,57 +1,30 @@
1
1
  import { createRequire as __cjs_createRequire } from "module"; import { fileURLToPath as __cjs_fileURLToPath } from "url"; import { dirname as __cjs_dirname } from "path"; const __filename = __cjs_fileURLToPath(import.meta.url); const __dirname = __cjs_dirname(__filename); const require = __cjs_createRequire(import.meta.url);
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __commonJS = (cb, mod) => function __require2() {
15
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
28
- // compatible transform (i.e. "__esModule" has not been set), then set
29
- // "default" to the CommonJS "module.exports" for node compatibility.
30
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
- mod
32
- ));
2
+ import {
3
+ __commonJS,
4
+ __require
5
+ } from "./chunk-WM5Z3SXV.js";
33
6
 
34
7
  // ../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token-error.js
35
8
  var require_token_error = __commonJS({
36
9
  "../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token-error.js"(exports, module) {
37
10
  "use strict";
38
- var __defProp2 = Object.defineProperty;
39
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
40
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
41
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
42
15
  var __export = (target, all) => {
43
16
  for (var name in all)
44
- __defProp2(target, name, { get: all[name], enumerable: true });
17
+ __defProp(target, name, { get: all[name], enumerable: true });
45
18
  };
46
- var __copyProps2 = (to, from, except, desc) => {
19
+ var __copyProps = (to, from, except, desc) => {
47
20
  if (from && typeof from === "object" || typeof from === "function") {
48
- for (let key of __getOwnPropNames2(from))
49
- if (!__hasOwnProp2.call(to, key) && key !== except)
50
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
24
  }
52
25
  return to;
53
26
  };
54
- var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
55
28
  var token_error_exports = {};
56
29
  __export(token_error_exports, {
57
30
  VercelOidcTokenError: () => VercelOidcTokenError
@@ -77,42 +50,42 @@ var require_token_error = __commonJS({
77
50
  var require_token_io = __commonJS({
78
51
  "../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token-io.js"(exports, module) {
79
52
  "use strict";
80
- var __create2 = Object.create;
81
- var __defProp2 = Object.defineProperty;
82
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
83
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
84
- var __getProtoOf2 = Object.getPrototypeOf;
85
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
53
+ var __create = Object.create;
54
+ var __defProp = Object.defineProperty;
55
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
56
+ var __getOwnPropNames = Object.getOwnPropertyNames;
57
+ var __getProtoOf = Object.getPrototypeOf;
58
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
86
59
  var __export = (target, all) => {
87
60
  for (var name in all)
88
- __defProp2(target, name, { get: all[name], enumerable: true });
61
+ __defProp(target, name, { get: all[name], enumerable: true });
89
62
  };
90
- var __copyProps2 = (to, from, except, desc) => {
63
+ var __copyProps = (to, from, except, desc) => {
91
64
  if (from && typeof from === "object" || typeof from === "function") {
92
- for (let key of __getOwnPropNames2(from))
93
- if (!__hasOwnProp2.call(to, key) && key !== except)
94
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
65
+ for (let key of __getOwnPropNames(from))
66
+ if (!__hasOwnProp.call(to, key) && key !== except)
67
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
95
68
  }
96
69
  return to;
97
70
  };
98
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
71
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
99
72
  // If the importer is in node compatibility mode or this is not an ESM
100
73
  // file that has been converted to a CommonJS file using a Babel-
101
74
  // compatible transform (i.e. "__esModule" has not been set), then set
102
75
  // "default" to the CommonJS "module.exports" for node compatibility.
103
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
76
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
104
77
  mod
105
78
  ));
106
- var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
79
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
107
80
  var token_io_exports = {};
108
81
  __export(token_io_exports, {
109
82
  findRootDir: () => findRootDir,
110
83
  getUserDataDir: () => getUserDataDir
111
84
  });
112
85
  module.exports = __toCommonJS(token_io_exports);
113
- var import_path = __toESM2(__require("path"));
114
- var import_fs = __toESM2(__require("fs"));
115
- var import_os = __toESM2(__require("os"));
86
+ var import_path = __toESM(__require("path"));
87
+ var import_fs = __toESM(__require("fs"));
88
+ var import_os = __toESM(__require("os"));
116
89
  var import_token_error = require_token_error();
117
90
  function findRootDir() {
118
91
  try {
@@ -156,33 +129,33 @@ var require_token_io = __commonJS({
156
129
  var require_auth_config = __commonJS({
157
130
  "../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/auth-config.js"(exports, module) {
158
131
  "use strict";
159
- var __create2 = Object.create;
160
- var __defProp2 = Object.defineProperty;
161
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
162
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
163
- var __getProtoOf2 = Object.getPrototypeOf;
164
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
132
+ var __create = Object.create;
133
+ var __defProp = Object.defineProperty;
134
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
135
+ var __getOwnPropNames = Object.getOwnPropertyNames;
136
+ var __getProtoOf = Object.getPrototypeOf;
137
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
165
138
  var __export = (target, all) => {
166
139
  for (var name in all)
167
- __defProp2(target, name, { get: all[name], enumerable: true });
140
+ __defProp(target, name, { get: all[name], enumerable: true });
168
141
  };
169
- var __copyProps2 = (to, from, except, desc) => {
142
+ var __copyProps = (to, from, except, desc) => {
170
143
  if (from && typeof from === "object" || typeof from === "function") {
171
- for (let key of __getOwnPropNames2(from))
172
- if (!__hasOwnProp2.call(to, key) && key !== except)
173
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
144
+ for (let key of __getOwnPropNames(from))
145
+ if (!__hasOwnProp.call(to, key) && key !== except)
146
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
174
147
  }
175
148
  return to;
176
149
  };
177
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
150
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
178
151
  // If the importer is in node compatibility mode or this is not an ESM
179
152
  // file that has been converted to a CommonJS file using a Babel-
180
153
  // compatible transform (i.e. "__esModule" has not been set), then set
181
154
  // "default" to the CommonJS "module.exports" for node compatibility.
182
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
155
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
183
156
  mod
184
157
  ));
185
- var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
158
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
186
159
  var auth_config_exports = {};
187
160
  __export(auth_config_exports, {
188
161
  isValidAccessToken: () => isValidAccessToken,
@@ -190,8 +163,8 @@ var require_auth_config = __commonJS({
190
163
  writeAuthConfig: () => writeAuthConfig
191
164
  });
192
165
  module.exports = __toCommonJS(auth_config_exports);
193
- var fs = __toESM2(__require("fs"));
194
- var path = __toESM2(__require("path"));
166
+ var fs = __toESM(__require("fs"));
167
+ var path = __toESM(__require("path"));
195
168
  var import_token_util = require_token_util();
196
169
  function getAuthConfigPath() {
197
170
  const dataDir = (0, import_token_util.getVercelDataDir)();
@@ -241,23 +214,23 @@ var require_auth_config = __commonJS({
241
214
  var require_oauth = __commonJS({
242
215
  "../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/oauth.js"(exports, module) {
243
216
  "use strict";
244
- var __defProp2 = Object.defineProperty;
245
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
246
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
247
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
217
+ var __defProp = Object.defineProperty;
218
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
219
+ var __getOwnPropNames = Object.getOwnPropertyNames;
220
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
248
221
  var __export = (target, all) => {
249
222
  for (var name in all)
250
- __defProp2(target, name, { get: all[name], enumerable: true });
223
+ __defProp(target, name, { get: all[name], enumerable: true });
251
224
  };
252
- var __copyProps2 = (to, from, except, desc) => {
225
+ var __copyProps = (to, from, except, desc) => {
253
226
  if (from && typeof from === "object" || typeof from === "function") {
254
- for (let key of __getOwnPropNames2(from))
255
- if (!__hasOwnProp2.call(to, key) && key !== except)
256
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
227
+ for (let key of __getOwnPropNames(from))
228
+ if (!__hasOwnProp.call(to, key) && key !== except)
229
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
257
230
  }
258
231
  return to;
259
232
  };
260
- var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
233
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
261
234
  var oauth_exports = {};
262
235
  __export(oauth_exports, {
263
236
  processTokenResponse: () => processTokenResponse,
@@ -330,23 +303,23 @@ var require_oauth = __commonJS({
330
303
  var require_auth_errors = __commonJS({
331
304
  "../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/auth-errors.js"(exports, module) {
332
305
  "use strict";
333
- var __defProp2 = Object.defineProperty;
334
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
335
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
336
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
306
+ var __defProp = Object.defineProperty;
307
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
308
+ var __getOwnPropNames = Object.getOwnPropertyNames;
309
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
337
310
  var __export = (target, all) => {
338
311
  for (var name in all)
339
- __defProp2(target, name, { get: all[name], enumerable: true });
312
+ __defProp(target, name, { get: all[name], enumerable: true });
340
313
  };
341
- var __copyProps2 = (to, from, except, desc) => {
314
+ var __copyProps = (to, from, except, desc) => {
342
315
  if (from && typeof from === "object" || typeof from === "function") {
343
- for (let key of __getOwnPropNames2(from))
344
- if (!__hasOwnProp2.call(to, key) && key !== except)
345
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
316
+ for (let key of __getOwnPropNames(from))
317
+ if (!__hasOwnProp.call(to, key) && key !== except)
318
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
346
319
  }
347
320
  return to;
348
321
  };
349
- var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
322
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
350
323
  var auth_errors_exports = {};
351
324
  __export(auth_errors_exports, {
352
325
  AccessTokenMissingError: () => AccessTokenMissingError,
@@ -373,33 +346,33 @@ var require_auth_errors = __commonJS({
373
346
  // ../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token-util.js
374
347
  var require_token_util = __commonJS({
375
348
  "../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token-util.js"(exports, module) {
376
- var __create2 = Object.create;
377
- var __defProp2 = Object.defineProperty;
378
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
379
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
380
- var __getProtoOf2 = Object.getPrototypeOf;
381
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
349
+ var __create = Object.create;
350
+ var __defProp = Object.defineProperty;
351
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
352
+ var __getOwnPropNames = Object.getOwnPropertyNames;
353
+ var __getProtoOf = Object.getPrototypeOf;
354
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
382
355
  var __export = (target, all) => {
383
356
  for (var name in all)
384
- __defProp2(target, name, { get: all[name], enumerable: true });
357
+ __defProp(target, name, { get: all[name], enumerable: true });
385
358
  };
386
- var __copyProps2 = (to, from, except, desc) => {
359
+ var __copyProps = (to, from, except, desc) => {
387
360
  if (from && typeof from === "object" || typeof from === "function") {
388
- for (let key of __getOwnPropNames2(from))
389
- if (!__hasOwnProp2.call(to, key) && key !== except)
390
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
361
+ for (let key of __getOwnPropNames(from))
362
+ if (!__hasOwnProp.call(to, key) && key !== except)
363
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
391
364
  }
392
365
  return to;
393
366
  };
394
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
367
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
395
368
  // If the importer is in node compatibility mode or this is not an ESM
396
369
  // file that has been converted to a CommonJS file using a Babel-
397
370
  // compatible transform (i.e. "__esModule" has not been set), then set
398
371
  // "default" to the CommonJS "module.exports" for node compatibility.
399
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
372
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
400
373
  mod
401
374
  ));
402
- var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
375
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
403
376
  var token_util_exports = {};
404
377
  __export(token_util_exports, {
405
378
  assertVercelOidcTokenResponse: () => assertVercelOidcTokenResponse,
@@ -413,8 +386,8 @@ var require_token_util = __commonJS({
413
386
  saveToken: () => saveToken
414
387
  });
415
388
  module.exports = __toCommonJS(token_util_exports);
416
- var path = __toESM2(__require("path"));
417
- var fs = __toESM2(__require("fs"));
389
+ var path = __toESM(__require("path"));
390
+ var fs = __toESM(__require("fs"));
418
391
  var import_token_error = require_token_error();
419
392
  var import_token_io = require_token_io();
420
393
  var import_auth_config = require_auth_config();
@@ -566,9 +539,6 @@ var require_token_util = __commonJS({
566
539
  });
567
540
 
568
541
  export {
569
- __commonJS,
570
- __toESM,
571
542
  require_token_error,
572
- require_auth_errors,
573
543
  require_token_util
574
544
  };
@@ -0,0 +1,16 @@
1
+ import { createRequire as __cjs_createRequire } from "module"; import { fileURLToPath as __cjs_fileURLToPath } from "url"; import { dirname as __cjs_dirname } from "path"; const __filename = __cjs_fileURLToPath(import.meta.url); const __dirname = __cjs_dirname(__filename); const require = __cjs_createRequire(import.meta.url);
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
4
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
5
+ }) : x)(function(x) {
6
+ if (typeof require !== "undefined") return require.apply(this, arguments);
7
+ throw Error('Dynamic require of "' + x + '" is not supported');
8
+ });
9
+ var __commonJS = (cb, mod) => function __require2() {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ };
12
+
13
+ export {
14
+ __require,
15
+ __commonJS
16
+ };
package/dist/cli.js CHANGED
@@ -17,8 +17,8 @@ import {
17
17
  generatePdf,
18
18
  loadConfig,
19
19
  loadSystemPrompt
20
- } from "./chunk-LH6W4P2C.js";
21
- import "./chunk-7D5WVZW5.js";
20
+ } from "./chunk-NCPHRVFO.js";
21
+ import "./chunk-WM5Z3SXV.js";
22
22
 
23
23
  // src/cli.ts
24
24
  import "dotenv/config";
@@ -1058,11 +1058,6 @@ async function scanCommand(opts) {
1058
1058
  field: opts.responseField ?? "response"
1059
1059
  }
1060
1060
  };
1061
- } else if (opts.provider || opts.model) {
1062
- cliOverrides.target = {
1063
- provider: opts.provider,
1064
- model: opts.model
1065
- };
1066
1061
  }
1067
1062
  if (opts.preset) cliOverrides.preset = opts.preset;
1068
1063
  if (opts.systemPrompt) cliOverrides.systemPrompt = opts.systemPrompt;
@@ -1377,20 +1372,9 @@ function validateCommand(opts) {
1377
1372
  try {
1378
1373
  const config = loadConfig({ configPath: opts.config });
1379
1374
  console.log("Configuration is valid.");
1380
- if (config.endpoint) {
1381
- console.log(` Mode: HTTP Endpoint`);
1382
- console.log(` URL: ${config.endpoint.url}`);
1383
- console.log(` Auth: ${config.endpoint.auth?.type ?? "none"}`);
1384
- console.log(` Response field: ${config.endpoint.response.field}`);
1385
- } else {
1386
- console.log(` Mode: LLM Provider`);
1387
- console.log(
1388
- ` Target: ${config.target.provider}/${config.target.model ?? "default"}`
1389
- );
1390
- }
1391
- console.log(
1392
- ` Judge: ${config.judge?.provider ?? "mistral"}/${config.judge?.model ?? "mistral-small-latest"}`
1393
- );
1375
+ console.log(` Target: ${config.endpoint.url}`);
1376
+ console.log(` Auth: ${config.endpoint.auth?.type ?? "none"}`);
1377
+ console.log(` Response field: ${config.endpoint.response.field}`);
1394
1378
  console.log(` Preset: ${config.preset ?? "standard"}`);
1395
1379
  if (config.customTests?.length) {
1396
1380
  console.log(` Custom tests: ${config.customTests.length}`);
@@ -1429,8 +1413,8 @@ process.on("uncaughtException", (err) => {
1429
1413
  });
1430
1414
  var program = new Command();
1431
1415
  program.exitOverride();
1432
- program.name("shield-llm").description("AI chatbot security scanner \u2014 automated red teaming for LLMs").version("0.2.2");
1433
- program.command("scan").description("Run a security scan against a target chatbot").option("-c, --config <path>", "Path to shield.config.json").option("-p, --provider <name>", "Target provider (openai, mistral)").option("-m, --model <name>", "Target model name").option("-e, --endpoint <url>", "Target chatbot HTTP endpoint URL").option("--auth <type>", "Auth type: bearer, api-key, oauth2").option("--token <value>", "Bearer token or API key value").option("--auth-header <name>", "Custom auth header name (for api-key auth)").option(
1416
+ program.name("shield-llm").description("AI chatbot security scanner \u2014 automated red teaming for LLMs").version("0.3.1");
1417
+ program.command("scan").description("Run a security scan against a target chatbot").option("-c, --config <path>", "Path to shield.config.json").option("-e, --endpoint <url>", "Target chatbot HTTP endpoint URL").option("--auth <type>", "Auth type: bearer, api-key, oauth2").option("--token <value>", "Bearer token or API key value").option("--auth-header <name>", "Custom auth header name (for api-key auth)").option(
1434
1418
  "--response-field <path>",
1435
1419
  "Dot-notation path to response text in JSON (default: response)"
1436
1420
  ).option(
package/dist/index.js CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  generatePdf,
10
10
  loadConfig,
11
11
  loadSystemPrompt
12
- } from "./chunk-LH6W4P2C.js";
13
- import "./chunk-7D5WVZW5.js";
12
+ } from "./chunk-NCPHRVFO.js";
13
+ import "./chunk-WM5Z3SXV.js";
14
14
  export {
15
15
  ConfigError,
16
16
  ConfigSchema,
@@ -1,9 +1,11 @@
1
1
  import { createRequire as __cjs_createRequire } from "module"; import { fileURLToPath as __cjs_fileURLToPath } from "url"; import { dirname as __cjs_dirname } from "path"; const __filename = __cjs_fileURLToPath(import.meta.url); const __dirname = __cjs_dirname(__filename); const require = __cjs_createRequire(import.meta.url);
2
2
  import {
3
- __commonJS,
4
3
  require_token_error,
5
4
  require_token_util
6
- } from "./chunk-7D5WVZW5.js";
5
+ } from "./chunk-UXBLUD2Y.js";
6
+ import {
7
+ __commonJS
8
+ } from "./chunk-WM5Z3SXV.js";
7
9
 
8
10
  // ../../node_modules/.pnpm/@vercel+oidc@3.2.0/node_modules/@vercel/oidc/dist/token.js
9
11
  var require_token = __commonJS({
@@ -1,5 +1,6 @@
1
1
  import { createRequire as __cjs_createRequire } from "module"; import { fileURLToPath as __cjs_fileURLToPath } from "url"; import { dirname as __cjs_dirname } from "path"; const __filename = __cjs_fileURLToPath(import.meta.url); const __dirname = __cjs_dirname(__filename); const require = __cjs_createRequire(import.meta.url);
2
2
  import {
3
3
  require_token_util
4
- } from "./chunk-7D5WVZW5.js";
4
+ } from "./chunk-UXBLUD2Y.js";
5
+ import "./chunk-WM5Z3SXV.js";
5
6
  export default require_token_util();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shield-llm",
3
- "version": "0.2.2",
3
+ "version": "0.3.1",
4
4
  "description": "AI chatbot security scanner — automated red teaming for LLMs",
5
5
  "type": "module",
6
6
  "publishConfig": {