@agenttrail/guardrails 0.0.2 → 0.1.0
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 +8 -5
- package/dist/{chunk-AUGYGUPX.js → chunk-C4B2NPWH.js} +1 -1
- package/dist/chunk-C4B2NPWH.js.map +1 -0
- package/dist/{chunk-IQBU26ZF.js → chunk-DBB7HO4T.js} +1070 -21
- package/dist/chunk-DBB7HO4T.js.map +1 -0
- package/dist/guardrails.cjs +1069 -20
- package/dist/guardrails.cjs.map +1 -1
- package/dist/guardrails.d.cts +7 -7
- package/dist/guardrails.d.ts +7 -7
- package/dist/guardrails.js +1 -1
- package/dist/index.cjs +1069 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AUGYGUPX.js.map +0 -1
- package/dist/chunk-IQBU26ZF.js.map +0 -1
package/dist/guardrails.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { Action, FixtureInput, Fixtures, Match, RuleInput, Severity } from './sc
|
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The eleven packs, and the order they are presented in.
|
|
7
7
|
*
|
|
8
8
|
* These ids are authoritative and shared with the rules authored against them,
|
|
9
9
|
* and with the guard's `config.json` `enabledPacks`. Renaming one of these is a
|
|
@@ -16,10 +16,10 @@ import 'zod';
|
|
|
16
16
|
* Per-pack rule counts are deliberately NOT encoded here: a rule count asserted in
|
|
17
17
|
* code becomes a reason to write a weak rule to hit a number.
|
|
18
18
|
*/
|
|
19
|
-
declare const PACKS: readonly ["working-tree", "destructive-data", "prod-infra", "secret-exposure", "rce-supply-chain", "safety-bypass", "privilege-supply-chain", "file-scope"];
|
|
20
|
-
/** One of the
|
|
19
|
+
declare const PACKS: readonly ["working-tree", "destructive-data", "prod-infra", "secret-exposure", "rce-supply-chain", "safety-bypass", "privilege-supply-chain", "file-scope", "agent-context", "test-integrity", "exfiltration"];
|
|
20
|
+
/** One of the eleven pack ids. A rule's `category` is always one of these. */
|
|
21
21
|
type Pack = (typeof PACKS)[number];
|
|
22
|
-
/** Is this string one of the
|
|
22
|
+
/** Is this string one of the eleven pack ids? */
|
|
23
23
|
declare function isPack(value: string): value is Pack;
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -38,7 +38,7 @@ declare function isPack(value: string): value is Pack;
|
|
|
38
38
|
* curl --data "we ran rm -rf /tmp/x" https://… -> DENY dd.rm-rf-absolute
|
|
39
39
|
*
|
|
40
40
|
* Without an exemption, a person documenting this tool is blocked by this tool.
|
|
41
|
-
* That applies to every command-channel rule —
|
|
41
|
+
* That applies to every command-channel rule — 62 of the 74. The twelve `file_glob`
|
|
42
42
|
* rules never see a command.
|
|
43
43
|
*
|
|
44
44
|
* ── Why exemption by CARRIER VERB, and not by "the payload is quoted" ────────
|
|
@@ -276,7 +276,7 @@ declare function mentions(text: string): Fixture[];
|
|
|
276
276
|
* Pinned to `package.json`'s `version` by `__tests__/stamp.test.ts` — this is a copy
|
|
277
277
|
* of that value, not an independent one, and the test is what makes the copy safe.
|
|
278
278
|
*/
|
|
279
|
-
declare const CATALOG_VERSION = "0.0
|
|
279
|
+
declare const CATALOG_VERSION = "0.1.0";
|
|
280
280
|
/**
|
|
281
281
|
* When the rules in this catalog reached their current state, as an ISO-8601
|
|
282
282
|
* instant. The question it answers is not "when did this reach a registry" but "how
|
|
@@ -286,7 +286,7 @@ declare const CATALOG_VERSION = "0.0.2";
|
|
|
286
286
|
* the guard handles a missing date, and a wrong date that looks right is worse than
|
|
287
287
|
* a missing one.
|
|
288
288
|
*/
|
|
289
|
-
declare const CATALOG_PUBLISHED_AT = "2026-09-
|
|
289
|
+
declare const CATALOG_PUBLISHED_AT = "2026-09-15T07:13:18Z";
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* The corpus itself — rules only, and **deliberately free of zod**.
|
package/dist/guardrails.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { Action, FixtureInput, Fixtures, Match, RuleInput, Severity } from './sc
|
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The eleven packs, and the order they are presented in.
|
|
7
7
|
*
|
|
8
8
|
* These ids are authoritative and shared with the rules authored against them,
|
|
9
9
|
* and with the guard's `config.json` `enabledPacks`. Renaming one of these is a
|
|
@@ -16,10 +16,10 @@ import 'zod';
|
|
|
16
16
|
* Per-pack rule counts are deliberately NOT encoded here: a rule count asserted in
|
|
17
17
|
* code becomes a reason to write a weak rule to hit a number.
|
|
18
18
|
*/
|
|
19
|
-
declare const PACKS: readonly ["working-tree", "destructive-data", "prod-infra", "secret-exposure", "rce-supply-chain", "safety-bypass", "privilege-supply-chain", "file-scope"];
|
|
20
|
-
/** One of the
|
|
19
|
+
declare const PACKS: readonly ["working-tree", "destructive-data", "prod-infra", "secret-exposure", "rce-supply-chain", "safety-bypass", "privilege-supply-chain", "file-scope", "agent-context", "test-integrity", "exfiltration"];
|
|
20
|
+
/** One of the eleven pack ids. A rule's `category` is always one of these. */
|
|
21
21
|
type Pack = (typeof PACKS)[number];
|
|
22
|
-
/** Is this string one of the
|
|
22
|
+
/** Is this string one of the eleven pack ids? */
|
|
23
23
|
declare function isPack(value: string): value is Pack;
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -38,7 +38,7 @@ declare function isPack(value: string): value is Pack;
|
|
|
38
38
|
* curl --data "we ran rm -rf /tmp/x" https://… -> DENY dd.rm-rf-absolute
|
|
39
39
|
*
|
|
40
40
|
* Without an exemption, a person documenting this tool is blocked by this tool.
|
|
41
|
-
* That applies to every command-channel rule —
|
|
41
|
+
* That applies to every command-channel rule — 62 of the 74. The twelve `file_glob`
|
|
42
42
|
* rules never see a command.
|
|
43
43
|
*
|
|
44
44
|
* ── Why exemption by CARRIER VERB, and not by "the payload is quoted" ────────
|
|
@@ -276,7 +276,7 @@ declare function mentions(text: string): Fixture[];
|
|
|
276
276
|
* Pinned to `package.json`'s `version` by `__tests__/stamp.test.ts` — this is a copy
|
|
277
277
|
* of that value, not an independent one, and the test is what makes the copy safe.
|
|
278
278
|
*/
|
|
279
|
-
declare const CATALOG_VERSION = "0.0
|
|
279
|
+
declare const CATALOG_VERSION = "0.1.0";
|
|
280
280
|
/**
|
|
281
281
|
* When the rules in this catalog reached their current state, as an ISO-8601
|
|
282
282
|
* instant. The question it answers is not "when did this reach a registry" but "how
|
|
@@ -286,7 +286,7 @@ declare const CATALOG_VERSION = "0.0.2";
|
|
|
286
286
|
* the guard handles a missing date, and a wrong date that looks right is worse than
|
|
287
287
|
* a missing one.
|
|
288
288
|
*/
|
|
289
|
-
declare const CATALOG_PUBLISHED_AT = "2026-09-
|
|
289
|
+
declare const CATALOG_PUBLISHED_AT = "2026-09-15T07:13:18Z";
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* The corpus itself — rules only, and **deliberately free of zod**.
|