@agenttrail/guardrails 0.2.2 → 0.2.4
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 +132 -116
- package/dist/{chunk-GNN4TGRY.js → chunk-6YROGDEH.js} +103 -29
- package/dist/chunk-6YROGDEH.js.map +1 -0
- package/dist/chunk-T6MJIV52.js +72 -0
- package/dist/chunk-T6MJIV52.js.map +1 -0
- package/dist/{chunk-FTTMZCDH.js → chunk-U7KZ447W.js} +65 -4
- package/dist/chunk-U7KZ447W.js.map +1 -0
- package/dist/guardrails.cjs +171 -28
- package/dist/guardrails.cjs.map +1 -1
- package/dist/guardrails.d.cts +60 -65
- package/dist/guardrails.d.ts +60 -65
- package/dist/guardrails.js +17 -1
- package/dist/index.cjs +230 -31
- 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-B2pYoi9Z.d.cts +951 -0
- package/dist/schema-B2pYoi9Z.d.ts +951 -0
- package/dist/schema.cjs +91 -3
- 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 +30 -38
- package/dist/chunk-FTTMZCDH.js.map +0 -1
- package/dist/chunk-GNN4TGRY.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { CATALOG_PUBLISHED_AT, CATALOG_VERSION, GIT_TEXT_MENTION, HTTP_BODY_MENTION, LEADING_FLAGS, PACKS, PRINT_MENTION, Pack, QUOTED_MENTION, RULES, RULES_BY_PACK, SEARCH_MENTION, SHELL_AND_MCP, bash, file, getRule, isPack, mcp, mentionInCommit, mentionInEcho, mentionInPost, mentionInSearch, mentions, pwsh, rulesForPack } from './guardrails.cjs';
|
|
2
|
-
export { ACTIONS, Action, ActionSchema, DETAIL_MATCHES_MAX_PATTERNS, DETAIL_MATCHES_MAX_PATTERN_LENGTH, Fixture, FixtureInput, FixtureSchema, Fixtures, FixturesSchema, Match, MatchCondition, MatchConditionSchema, MatchSchema, Rule, RuleInput, RuleSchema, SEVERITIES, Severity, SeveritySchema, defineRule, hasNestedUnboundedQuantifier, parseRule, parseRuleOrThrow } from './schema.cjs';
|
|
2
|
+
export { l as ACTIONS, A as Action, m as ActionSchema, D as DETAIL_MATCHES_MAX_PATTERNS, n as DETAIL_MATCHES_MAX_PATTERN_LENGTH, F as Fixture, a as FixtureInput, p as FixtureSchema, b as Fixtures, q as FixturesSchema, c as Match, M as MatchCondition, r as MatchConditionSchema, s as MatchSchema, O as OWASP_AGENTIC, d as OWASP_IDS, e as OWASP_LLM, f as OWASP_SOURCES, g as OwaspId, t as OwaspIdsSchema, h as OwaspRisk, R as Rule, i as RuleInput, u as RuleSchema, v as SEVERITIES, S as Severity, w as SeveritySchema, x as defineRule, y as hasNestedUnboundedQuantifier, j as isOwaspId, o as owaspIndex, k as owaspTitle, z as parseRule, B as parseRuleOrThrow } from './schema-B2pYoi9Z.cjs';
|
|
3
3
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { CATALOG_PUBLISHED_AT, CATALOG_VERSION, GIT_TEXT_MENTION, HTTP_BODY_MENTION, LEADING_FLAGS, PACKS, PRINT_MENTION, Pack, QUOTED_MENTION, RULES, RULES_BY_PACK, SEARCH_MENTION, SHELL_AND_MCP, bash, file, getRule, isPack, mcp, mentionInCommit, mentionInEcho, mentionInPost, mentionInSearch, mentions, pwsh, rulesForPack } from './guardrails.js';
|
|
2
|
-
export { ACTIONS, Action, ActionSchema, DETAIL_MATCHES_MAX_PATTERNS, DETAIL_MATCHES_MAX_PATTERN_LENGTH, Fixture, FixtureInput, FixtureSchema, Fixtures, FixturesSchema, Match, MatchCondition, MatchConditionSchema, MatchSchema, Rule, RuleInput, RuleSchema, SEVERITIES, Severity, SeveritySchema, defineRule, hasNestedUnboundedQuantifier, parseRule, parseRuleOrThrow } from './schema.js';
|
|
2
|
+
export { l as ACTIONS, A as Action, m as ActionSchema, D as DETAIL_MATCHES_MAX_PATTERNS, n as DETAIL_MATCHES_MAX_PATTERN_LENGTH, F as Fixture, a as FixtureInput, p as FixtureSchema, b as Fixtures, q as FixturesSchema, c as Match, M as MatchCondition, r as MatchConditionSchema, s as MatchSchema, O as OWASP_AGENTIC, d as OWASP_IDS, e as OWASP_LLM, f as OWASP_SOURCES, g as OwaspId, t as OwaspIdsSchema, h as OwaspRisk, R as Rule, i as RuleInput, u as RuleSchema, v as SEVERITIES, S as Severity, w as SeveritySchema, x as defineRule, y as hasNestedUnboundedQuantifier, j as isOwaspId, o as owaspIndex, k as owaspTitle, z as parseRule, B as parseRuleOrThrow } from './schema-B2pYoi9Z.js';
|
|
3
3
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
mentions,
|
|
24
24
|
pwsh,
|
|
25
25
|
rulesForPack
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6YROGDEH.js";
|
|
27
27
|
import {
|
|
28
28
|
ACTIONS,
|
|
29
29
|
ActionSchema,
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
FixturesSchema,
|
|
34
34
|
MatchConditionSchema,
|
|
35
35
|
MatchSchema,
|
|
36
|
+
OwaspIdsSchema,
|
|
36
37
|
RuleSchema,
|
|
37
38
|
SEVERITIES,
|
|
38
39
|
SeveritySchema,
|
|
@@ -40,7 +41,16 @@ import {
|
|
|
40
41
|
hasNestedUnboundedQuantifier,
|
|
41
42
|
parseRule,
|
|
42
43
|
parseRuleOrThrow
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-U7KZ447W.js";
|
|
45
|
+
import {
|
|
46
|
+
OWASP_AGENTIC,
|
|
47
|
+
OWASP_IDS,
|
|
48
|
+
OWASP_LLM,
|
|
49
|
+
OWASP_SOURCES,
|
|
50
|
+
isOwaspId,
|
|
51
|
+
owaspIndex,
|
|
52
|
+
owaspTitle
|
|
53
|
+
} from "./chunk-T6MJIV52.js";
|
|
44
54
|
export {
|
|
45
55
|
ACTIONS,
|
|
46
56
|
ActionSchema,
|
|
@@ -55,6 +65,11 @@ export {
|
|
|
55
65
|
LEADING_FLAGS,
|
|
56
66
|
MatchConditionSchema,
|
|
57
67
|
MatchSchema,
|
|
68
|
+
OWASP_AGENTIC,
|
|
69
|
+
OWASP_IDS,
|
|
70
|
+
OWASP_LLM,
|
|
71
|
+
OWASP_SOURCES,
|
|
72
|
+
OwaspIdsSchema,
|
|
58
73
|
PACKS,
|
|
59
74
|
PRINT_MENTION,
|
|
60
75
|
QUOTED_MENTION,
|
|
@@ -70,6 +85,7 @@ export {
|
|
|
70
85
|
file,
|
|
71
86
|
getRule,
|
|
72
87
|
hasNestedUnboundedQuantifier,
|
|
88
|
+
isOwaspId,
|
|
73
89
|
isPack,
|
|
74
90
|
mcp,
|
|
75
91
|
mentionInCommit,
|
|
@@ -77,6 +93,8 @@ export {
|
|
|
77
93
|
mentionInPost,
|
|
78
94
|
mentionInSearch,
|
|
79
95
|
mentions,
|
|
96
|
+
owaspIndex,
|
|
97
|
+
owaspTitle,
|
|
80
98
|
parseRule,
|
|
81
99
|
parseRuleOrThrow,
|
|
82
100
|
pwsh,
|