@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.
- package/README.md +22 -9
- package/dist/{chunk-GNN4TGRY.js → chunk-IQHM6BLL.js} +78 -4
- package/dist/chunk-IQHM6BLL.js.map +1 -0
- package/dist/chunk-LO4OCVQN.js +72 -0
- package/dist/chunk-LO4OCVQN.js.map +1 -0
- package/dist/{chunk-FTTMZCDH.js → chunk-UORFMSG4.js} +62 -1
- package/dist/chunk-UORFMSG4.js.map +1 -0
- package/dist/guardrails.cjs +146 -3
- package/dist/guardrails.cjs.map +1 -1
- package/dist/guardrails.d.cts +6 -6
- package/dist/guardrails.d.ts +6 -6
- package/dist/guardrails.js +17 -1
- package/dist/index.cjs +202 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -2
- package/dist/schema-BRdYtWjP.d.cts +951 -0
- package/dist/schema-BRdYtWjP.d.ts +951 -0
- package/dist/schema.cjs +88 -0
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +2 -892
- package/dist/schema.d.ts +2 -892
- package/dist/schema.js +4 -1
- package/package.json +1 -1
- package/dist/chunk-FTTMZCDH.js.map +0 -1
- package/dist/chunk-GNN4TGRY.js.map +0 -1
package/dist/guardrails.d.cts
CHANGED
|
@@ -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.
|
|
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-
|
|
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`
|
|
392
|
-
* `./
|
|
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
|
*
|
package/dist/guardrails.d.ts
CHANGED
|
@@ -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.
|
|
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-
|
|
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`
|
|
392
|
-
* `./
|
|
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
|
*
|
package/dist/guardrails.js
CHANGED
|
@@ -23,13 +23,26 @@ import {
|
|
|
23
23
|
mentions,
|
|
24
24
|
pwsh,
|
|
25
25
|
rulesForPack
|
|
26
|
-
} from "./chunk-
|
|
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
|
};
|