@arcjet/skills 1.14.0 → 1.14.1
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/dist/version.js +1 -1
- package/docs/guard.md +3 -2
- package/package.json +1 -1
- package/skills/choose-protections/SKILL.md +1 -1
- package/skills/cli/SKILL.md +1 -1
- package/skills/guard/SKILL.md +4 -3
- package/skills/mcp/SKILL.md +1 -1
- package/skills/protect/SKILL.md +1 -1
package/dist/version.js
CHANGED
package/docs/guard.md
CHANGED
|
@@ -36,8 +36,9 @@ Declare rules at module scope so `.deniedResult(decision)` and
|
|
|
36
36
|
Call `guard()` where you already know the operation. Hardcode the `label`.
|
|
37
37
|
Do not interpolate names in a generic dispatcher.
|
|
38
38
|
|
|
39
|
-
Hardcode labels as slugs:
|
|
40
|
-
(`tools.get-weather`). Start and end with a letter or digit; max 256 bytes.
|
|
39
|
+
Hardcode labels as slugs: ASCII letters of either case, digits, `-`, `.`, and
|
|
40
|
+
`_` (`tools.get-weather`). Start and end with a letter or digit; max 256 bytes.
|
|
41
|
+
Labels match case-sensitively.
|
|
41
42
|
Prefer dash/dot in new labels. Do not interpolate user input. Check a label
|
|
42
43
|
you build yourself with `validateGuardLabel` — a slug the service will not
|
|
43
44
|
match reads as `ALLOW` with `hasFailedOpen()` false.
|
package/package.json
CHANGED
package/skills/cli/SKILL.md
CHANGED
package/skills/guard/SKILL.md
CHANGED
|
@@ -7,7 +7,7 @@ metadata:
|
|
|
7
7
|
author: arcjet
|
|
8
8
|
type: core
|
|
9
9
|
library: "@arcjet/skills"
|
|
10
|
-
library_version: "1.14.
|
|
10
|
+
library_version: "1.14.1" # x-release-please-version
|
|
11
11
|
sources:
|
|
12
12
|
- docs/guard.md
|
|
13
13
|
---
|
|
@@ -43,8 +43,9 @@ Declare rules at module scope so `.deniedResult(decision)` works.
|
|
|
43
43
|
|
|
44
44
|
Hardcode the `label`. Do not interpolate in a generic dispatcher.
|
|
45
45
|
|
|
46
|
-
Hardcode labels as slugs:
|
|
47
|
-
(`tools.get-weather`). Start and end with a letter or digit; max 256 bytes.
|
|
46
|
+
Hardcode labels as slugs: ASCII letters of either case, digits, `-`, `.`, and
|
|
47
|
+
`_` (`tools.get-weather`). Start and end with a letter or digit; max 256 bytes.
|
|
48
|
+
Labels match case-sensitively.
|
|
48
49
|
Prefer dash/dot in new labels. Check a label you build yourself with
|
|
49
50
|
`validateGuardLabel`.
|
|
50
51
|
|
package/skills/mcp/SKILL.md
CHANGED