@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.
@@ -3,7 +3,7 @@ export { Action, FixtureInput, Fixtures, Match, RuleInput, Severity } from './sc
3
3
  import 'zod';
4
4
 
5
5
  /**
6
- * The eight packs, and the order they are presented in.
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 eight pack ids. A rule's `category` is always one of these. */
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 eight pack ids? */
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 — 48 of the 56. The eight `file_glob`
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.2";
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-07T12:44:09Z";
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**.
@@ -3,7 +3,7 @@ export { Action, FixtureInput, Fixtures, Match, RuleInput, Severity } from './sc
3
3
  import 'zod';
4
4
 
5
5
  /**
6
- * The eight packs, and the order they are presented in.
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 eight pack ids. A rule's `category` is always one of these. */
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 eight pack ids? */
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 — 48 of the 56. The eight `file_glob`
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.2";
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-07T12:44:09Z";
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**.
@@ -20,7 +20,7 @@ import {
20
20
  mentions,
21
21
  pwsh,
22
22
  rulesForPack
23
- } from "./chunk-IQBU26ZF.js";
23
+ } from "./chunk-DBB7HO4T.js";
24
24
  export {
25
25
  CATALOG_PUBLISHED_AT,
26
26
  CATALOG_VERSION,