@agenttrail/guardrails 0.2.2 → 0.2.3

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,5 +1,5 @@
1
- import { MatchCondition, Fixture, Rule } from './schema.cjs';
2
- export { Action, FixtureInput, Fixtures, Match, RuleInput, Severity } from './schema.cjs';
1
+ import { M as MatchCondition, F as Fixture, R as Rule } from './schema-BRdYtWjP.cjs';
2
+ export { A as Action, a as FixtureInput, b as Fixtures, c as Match, O as OWASP_AGENTIC, d as OWASP_IDS, e as OWASP_LLM, f as OWASP_SOURCES, g as OwaspId, h as OwaspRisk, i as RuleInput, S as Severity, j as isOwaspId, o as owaspIndex, k as owaspTitle } from './schema-BRdYtWjP.cjs';
3
3
  import 'zod';
4
4
 
5
5
  /**
@@ -365,7 +365,7 @@ declare function mentions(text: string): Fixture[];
365
365
  * Pinned to `package.json`'s `version` by `__tests__/stamp.test.ts` — this is a copy
366
366
  * of that value, not an independent one, and the test is what makes the copy safe.
367
367
  */
368
- declare const CATALOG_VERSION = "0.2.2";
368
+ declare const CATALOG_VERSION = "0.2.3";
369
369
  /**
370
370
  * When the rules in this catalog reached their current state, as an ISO-8601
371
371
  * instant. The question it answers is not "when did this reach a registry" but "how
@@ -375,7 +375,7 @@ declare const CATALOG_VERSION = "0.2.2";
375
375
  * the guard handles a missing date, and a wrong date that looks right is worse than
376
376
  * a missing one.
377
377
  */
378
- declare const CATALOG_PUBLISHED_AT = "2026-10-06T13:41:00Z";
378
+ declare const CATALOG_PUBLISHED_AT = "2026-10-15T18:58:34Z";
379
379
 
380
380
  /**
381
381
  * The corpus itself — rules only, and **deliberately free of zod**.
@@ -388,8 +388,8 @@ declare const CATALOG_PUBLISHED_AT = "2026-10-06T13:41:00Z";
388
388
  *
389
389
  * The package ROOT cannot satisfy that: `index.ts` re-exports `./schema.js`, which
390
390
  * value-imports zod. So the guard imports `@agenttrail/guardrails/guardrails` — this
391
- * file — whose whole import graph is `./packs.js`, `./exemptions.js` and
392
- * `./fixtures.js` (all three plain data) plus a TYPE-only
391
+ * file — whose whole import graph is `./packs.js`, `./exemptions.js`, `./fixtures.js`
392
+ * and `./owasp.js` (all four plain data) plus a TYPE-only
393
393
  * reference to `./schema.js`, which esbuild erases. Everyone else keeps using the
394
394
  * root and gets the schema with it.
395
395
  *
@@ -1,5 +1,5 @@
1
- import { MatchCondition, Fixture, Rule } from './schema.js';
2
- export { Action, FixtureInput, Fixtures, Match, RuleInput, Severity } from './schema.js';
1
+ import { M as MatchCondition, F as Fixture, R as Rule } from './schema-BRdYtWjP.js';
2
+ export { A as Action, a as FixtureInput, b as Fixtures, c as Match, O as OWASP_AGENTIC, d as OWASP_IDS, e as OWASP_LLM, f as OWASP_SOURCES, g as OwaspId, h as OwaspRisk, i as RuleInput, S as Severity, j as isOwaspId, o as owaspIndex, k as owaspTitle } from './schema-BRdYtWjP.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
@@ -365,7 +365,7 @@ declare function mentions(text: string): Fixture[];
365
365
  * Pinned to `package.json`'s `version` by `__tests__/stamp.test.ts` — this is a copy
366
366
  * of that value, not an independent one, and the test is what makes the copy safe.
367
367
  */
368
- declare const CATALOG_VERSION = "0.2.2";
368
+ declare const CATALOG_VERSION = "0.2.3";
369
369
  /**
370
370
  * When the rules in this catalog reached their current state, as an ISO-8601
371
371
  * instant. The question it answers is not "when did this reach a registry" but "how
@@ -375,7 +375,7 @@ declare const CATALOG_VERSION = "0.2.2";
375
375
  * the guard handles a missing date, and a wrong date that looks right is worse than
376
376
  * a missing one.
377
377
  */
378
- declare const CATALOG_PUBLISHED_AT = "2026-10-06T13:41:00Z";
378
+ declare const CATALOG_PUBLISHED_AT = "2026-10-15T18:58:34Z";
379
379
 
380
380
  /**
381
381
  * The corpus itself — rules only, and **deliberately free of zod**.
@@ -388,8 +388,8 @@ declare const CATALOG_PUBLISHED_AT = "2026-10-06T13:41:00Z";
388
388
  *
389
389
  * The package ROOT cannot satisfy that: `index.ts` re-exports `./schema.js`, which
390
390
  * value-imports zod. So the guard imports `@agenttrail/guardrails/guardrails` — this
391
- * file — whose whole import graph is `./packs.js`, `./exemptions.js` and
392
- * `./fixtures.js` (all three plain data) plus a TYPE-only
391
+ * file — whose whole import graph is `./packs.js`, `./exemptions.js`, `./fixtures.js`
392
+ * and `./owasp.js` (all four plain data) plus a TYPE-only
393
393
  * reference to `./schema.js`, which esbuild erases. Everyone else keeps using the
394
394
  * root and gets the schema with it.
395
395
  *
@@ -23,13 +23,26 @@ import {
23
23
  mentions,
24
24
  pwsh,
25
25
  rulesForPack
26
- } from "./chunk-GNN4TGRY.js";
26
+ } from "./chunk-IQHM6BLL.js";
27
+ import {
28
+ OWASP_AGENTIC,
29
+ OWASP_IDS,
30
+ OWASP_LLM,
31
+ OWASP_SOURCES,
32
+ isOwaspId,
33
+ owaspIndex,
34
+ owaspTitle
35
+ } from "./chunk-LO4OCVQN.js";
27
36
  export {
28
37
  CATALOG_PUBLISHED_AT,
29
38
  CATALOG_VERSION,
30
39
  GIT_TEXT_MENTION,
31
40
  HTTP_BODY_MENTION,
32
41
  LEADING_FLAGS,
42
+ OWASP_AGENTIC,
43
+ OWASP_IDS,
44
+ OWASP_LLM,
45
+ OWASP_SOURCES,
33
46
  PACKS,
34
47
  PRINT_MENTION,
35
48
  QUOTED_MENTION,
@@ -40,6 +53,7 @@ export {
40
53
  bash,
41
54
  file,
42
55
  getRule,
56
+ isOwaspId,
43
57
  isPack,
44
58
  mcp,
45
59
  mentionInCommit,
@@ -47,6 +61,8 @@ export {
47
61
  mentionInPost,
48
62
  mentionInSearch,
49
63
  mentions,
64
+ owaspIndex,
65
+ owaspTitle,
50
66
  pwsh,
51
67
  rulesForPack
52
68
  };