@kya-os/checkpoint-shared 1.2.1 → 1.3.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/dist/beacon-types/index.d.mts +13 -2
  4. package/dist/beacon-types/index.d.ts +13 -2
  5. package/dist/beacon-types/index.js +35 -3
  6. package/dist/beacon-types/index.mjs +35 -4
  7. package/dist/browser-posture-report.d.mts +85 -0
  8. package/dist/browser-posture-report.d.ts +85 -0
  9. package/dist/browser-posture-report.js +1 -0
  10. package/dist/browser-posture-report.mjs +1 -0
  11. package/dist/browser-posture.d.mts +114 -0
  12. package/dist/browser-posture.d.ts +114 -0
  13. package/dist/browser-posture.js +4204 -0
  14. package/dist/browser-posture.mjs +4187 -0
  15. package/dist/browser.d.mts +35 -1
  16. package/dist/browser.d.ts +35 -1
  17. package/dist/browser.js +1 -1
  18. package/dist/browser.mjs +1 -1
  19. package/dist/canonical-signer/index.js +31 -2
  20. package/dist/canonical-signer/index.mjs +31 -2
  21. package/dist/deploy/index.d.mts +449 -2
  22. package/dist/deploy/index.d.ts +449 -2
  23. package/dist/deploy/index.js +238 -1
  24. package/dist/deploy/index.mjs +228 -2
  25. package/dist/errors/index.d.mts +104 -0
  26. package/dist/errors/index.d.ts +104 -0
  27. package/dist/errors/index.js +338 -0
  28. package/dist/errors/index.mjs +333 -0
  29. package/dist/gateway/index.d.mts +6 -1
  30. package/dist/gateway/index.d.ts +6 -1
  31. package/dist/gateway/index.js +4 -0
  32. package/dist/gateway/index.mjs +4 -1
  33. package/dist/index.d.mts +2388 -851
  34. package/dist/index.d.ts +2388 -851
  35. package/dist/index.js +2684 -686
  36. package/dist/index.mjs +2575 -669
  37. package/dist/mcpi/multibase-ed25519.d.mts +8 -0
  38. package/dist/mcpi/multibase-ed25519.d.ts +8 -0
  39. package/dist/mcpi/multibase-ed25519.js +125 -0
  40. package/dist/mcpi/multibase-ed25519.mjs +119 -0
  41. package/dist/signals/index.d.mts +158 -0
  42. package/dist/signals/index.d.ts +158 -0
  43. package/dist/signals/index.js +1667 -0
  44. package/dist/signals/index.mjs +1637 -0
  45. package/dist/test-fixtures/index.d.mts +37 -1
  46. package/dist/test-fixtures/index.d.ts +37 -1
  47. package/dist/test-fixtures/index.js +92 -1
  48. package/dist/test-fixtures/index.mjs +87 -2
  49. package/fixtures/client-ip-resolution.json +103 -0
  50. package/fixtures/detection/reason-codes.json +35 -0
  51. package/fixtures/detection/signal-exposure-example.json +62 -0
  52. package/fixtures/kya-http/README.md +112 -0
  53. package/fixtures/kya-http/challenge-proof.canonical.json +25 -0
  54. package/fixtures/kya-http/challenge.approval-quorum.json +37 -0
  55. package/fixtures/kya-http/challenge.delegation.fetcher-200.json +55 -0
  56. package/fixtures/kya-http/challenge.delegation.full.json +81 -0
  57. package/fixtures/kya-http/challenge.delegation.minimal.json +57 -0
  58. package/fixtures/kya-http/error-codes.json +35 -0
  59. package/fixtures/kya-http/fetcher-200-predicate.vectors.json +72 -0
  60. package/fixtures/kya-http/negative.challenges.json +54 -0
  61. package/fixtures/kya-http/pickup.transcript.json +96 -0
  62. package/fixtures/kya-http/pickup.transcript.quorum.json +156 -0
  63. package/fixtures/kya-http/protected-resource-metadata.full.json +30 -0
  64. package/fixtures/kya-http/protected-resource-metadata.global.json +28 -0
  65. package/fixtures/kya-http/registration.request.json +33 -0
  66. package/fixtures/kya-http/registration.response.json +32 -0
  67. package/package.json +42 -9
  68. package/src/data/compiled/merged-rules.json +8 -2
@@ -0,0 +1,156 @@
1
+ {
2
+ "$fixture": "kya-http/pickup.transcript.quorum",
3
+ "$spec": "draft-kya-quorum-00 §5–§8 (PENDING engineer approval — not parity-frozen until draft-kya-quorum-00 is accepted; resolves the two items pinned on PR #3264 / #3248)",
4
+ "description": "Quorum pickup against GET /api/delegation/pickup/kya-7a1b3c5d7e9f1a2b. Differences vs kind=delegation: 202 carries quorum progress; 200 returns an org-signed attestation (typ approval-attestation+jwt, exp-iat <= 300s) REQUIRED + raw grants OPTIONAL, no token_type; retry presents KYA-Approvals, not Authorization: Bearer. Anchor/pinning/no-store rules inherit draft-kya-http-02 §8.2 unchanged. Approval window = action-nonce TTL (policy @approval_window, default 3600s); anchors stay <=600s with idempotent re-challenge.",
5
+ "pinned_token": "X-KYA-Pickup-Token: 5f4dcc3b5aa765d61d8327deb882cf995f4dcc3b5aa765d61d8327deb882cf99",
6
+ "sequences": {
7
+ "happy_path_two_approvers_slow": [
8
+ {
9
+ "step": 1,
10
+ "poll": "token A (first poll — pins anchor)",
11
+ "status": 202,
12
+ "body": {
13
+ "status": "pending",
14
+ "kind": "approval_quorum",
15
+ "quorum": { "required": 2, "satisfied": 0 }
16
+ }
17
+ },
18
+ {
19
+ "step": 2,
20
+ "note": "approver 1 signs on the approver page; Authorization Host verifies the grant AT SUBMISSION (within its 300s freshness) and appends to the durable approval record keyed by request_hash"
21
+ },
22
+ {
23
+ "step": 3,
24
+ "poll": "token A",
25
+ "status": 202,
26
+ "body": {
27
+ "status": "pending",
28
+ "kind": "approval_quorum",
29
+ "quorum": { "required": 2, "satisfied": 1 }
30
+ }
31
+ },
32
+ {
33
+ "step": 4,
34
+ "note": "anchor TTL (<=600s) elapses while approver 2 is away — anchor EXPIRED, approval record SURVIVES (record lifetime = nonce TTL)"
35
+ },
36
+ { "step": 5, "poll": "token A", "status": 410, "body": { "error": "kyaos/pickup-expired" } },
37
+ {
38
+ "step": 6,
39
+ "note": "agent re-sends the ORIGINAL request (byte-identical) → same request_hash → idempotent nonce re-issue → fresh 401 challenge with NEW sid kya-8c2d4e6f8a0b1c3d bound to the SAME approval record; challenge body request_hash lets the agent confirm re-anchoring"
40
+ },
41
+ {
42
+ "step": 7,
43
+ "poll": "NEW pickup_uri, token B (fresh anchor, fresh pin)",
44
+ "status": 202,
45
+ "body": {
46
+ "status": "pending",
47
+ "kind": "approval_quorum",
48
+ "quorum": { "required": 2, "satisfied": 1 }
49
+ }
50
+ },
51
+ {
52
+ "step": 8,
53
+ "note": "approver 2 signs; verified-on-submission; record satisfied — attestation minted and parked; action nonce NOT consumed by the Host"
54
+ },
55
+ {
56
+ "step": 9,
57
+ "poll": "token B",
58
+ "status": 200,
59
+ "body": {
60
+ "status": "ready",
61
+ "kind": "approval_quorum",
62
+ "attestation": "TEST-ATTESTATION-JWS-PENDING-VECTORS",
63
+ "grants": ["TEST-GRANT-JWS-APPROVER-1", "TEST-GRANT-JWS-APPROVER-2"],
64
+ "quorum": {
65
+ "required": 2,
66
+ "satisfied": 2,
67
+ "approvers": ["did:key:zApproverA", "did:key:zApproverB"]
68
+ },
69
+ "action_nonce": "TEST-NONCE-43CHAR-base64url-AAAAAAAAAAAAAAAAA",
70
+ "expires_in": 300
71
+ }
72
+ },
73
+ {
74
+ "step": 10,
75
+ "poll": "token B (simulated dropped 200 — re-delivery; attestation RE-ISSUED with refreshed iat/exp)",
76
+ "status": 200,
77
+ "body": {
78
+ "status": "ready",
79
+ "kind": "approval_quorum",
80
+ "attestation": "TEST-ATTESTATION-JWS-REISSUED",
81
+ "quorum": {
82
+ "required": 2,
83
+ "satisfied": 2,
84
+ "approvers": ["did:key:zApproverA", "did:key:zApproverB"]
85
+ },
86
+ "action_nonce": "TEST-NONCE-43CHAR-base64url-AAAAAAAAAAAAAAAAA",
87
+ "expires_in": 300
88
+ }
89
+ },
90
+ {
91
+ "step": 11,
92
+ "note": "agent retries the original request with header 'KYA-Approvals: <attestation>' — PEP recomputes request_hash, verifies attestation (org sig, aud, typ, freshness, hash match), then tryConsume(request_hash) → admitted EXACTLY ONCE"
93
+ },
94
+ {
95
+ "step": 12,
96
+ "poll": "token B (after consumption)",
97
+ "status": 410,
98
+ "body": { "error": "kyaos/pickup-expired" },
99
+ "note": "nonce consumed → approval session over; a NEW identical request mints a FRESH nonce = new action instance requiring new approvals"
100
+ }
101
+ ],
102
+ "signed_deny_not_counted": [
103
+ {
104
+ "step": 1,
105
+ "note": "approver 1 signs decision=deny — recorded in the approval record as evidence, NEVER counted toward quorum"
106
+ },
107
+ {
108
+ "step": 2,
109
+ "poll": "token A",
110
+ "status": 202,
111
+ "body": {
112
+ "status": "pending",
113
+ "kind": "approval_quorum",
114
+ "quorum": { "required": 2, "satisfied": 0 }
115
+ }
116
+ }
117
+ ],
118
+ "duplicate_approver_dedup": [
119
+ {
120
+ "step": 1,
121
+ "note": "approver 1 signs twice (two valid grants, same DID) — Set semantics: counts ONCE"
122
+ },
123
+ {
124
+ "step": 2,
125
+ "poll": "token A",
126
+ "status": 202,
127
+ "body": {
128
+ "status": "pending",
129
+ "kind": "approval_quorum",
130
+ "quorum": { "required": 2, "satisfied": 1 }
131
+ }
132
+ }
133
+ ]
134
+ },
135
+ "retry": {
136
+ "hosted_path_default": ["KYA-Approvals", "TEST-ATTESTATION-JWS-PENDING-VECTORS"],
137
+ "fast_path_fresh_grants": [
138
+ "KYA-Approvals",
139
+ "TEST-GRANT-JWS-APPROVER-1, TEST-GRANT-JWS-APPROVER-2"
140
+ ],
141
+ "admission_errors": {
142
+ "kyaos/quorum-not-met": "k/n detail",
143
+ "kyaos/nonce-consumed": "lost the tryConsume race or replayed",
144
+ "kyaos/grant-invalid": "per-grant reason",
145
+ "kyaos/action-mismatch": "retry bytes differ from approved request_hash"
146
+ }
147
+ },
148
+ "invariants": [
149
+ "approval record lifetime = action-nonce TTL (@approval_window, default 3600s, max 86400s); anchors stay <=600s",
150
+ "grants verified at SUBMISSION time (within their <=300s freshness); collection window is record-time, not signature-time",
151
+ "nonce idempotently re-issued while outstanding; consumed only at PEP admission via atomic tryConsume; never by the Host; partial progress never burns it",
152
+ "empty approver allowlist NEVER satisfies (fail-closed); unresolvable approver keys never count",
153
+ "200 body: attestation REQUIRED, grants OPTIONAL, token_type ABSENT",
154
+ "all pickup responses: Cache-Control: no-store"
155
+ ]
156
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$fixture": "kya-http/protected-resource-metadata.full",
3
+ "$spec": "RFC 9728 OAuth Protected Resource Metadata (advertised by draft-kya-http-02 §8.1)",
4
+ "description": "Per-org PRM document served at /.well-known/oauth-protected-resource — the URL the §8.1 Bearer challenge advertises. With a resource_org_did carrying an :orgs: slug, authorization_servers advertises the PER-ORG gateway issuer; with scopes present, scopes_supported is emitted. Every PEP that serves this URL (.NET net462 + net8, gateway-worker) must produce this document for the same input.",
5
+ "input": {
6
+ "resource_host": "api.merchant.com",
7
+ "resource_org_did": "did:web:kya.vouched.id:orgs:acme",
8
+ "base_url": "https://kya.vouched.id",
9
+ "scopes": ["commerce.checkout"]
10
+ },
11
+ "expected": {
12
+ "document": {
13
+ "resource": "https://api.merchant.com",
14
+ "authorization_servers": ["https://kya.vouched.id/oauth/gateway/acme"],
15
+ "bearer_methods_supported": ["header"],
16
+ "scopes_supported": ["commerce.checkout"],
17
+ "resource_documentation": "https://kya.vouched.id/docs/enforce/kya-os-enforcement"
18
+ }
19
+ },
20
+ "conformance": {
21
+ "key_order": [
22
+ "resource",
23
+ "authorization_servers",
24
+ "bearer_methods_supported",
25
+ "scopes_supported",
26
+ "resource_documentation"
27
+ ],
28
+ "notes": "resource byte-matches the §8.1 Bearer resource_metadata URL host; authorization_servers is ALWAYS a single-element array; the .NET v1 document does NOT emit the kyaos_needs_authorization extension the gateway-worker adds."
29
+ }
30
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$fixture": "kya-http/protected-resource-metadata.global",
3
+ "$spec": "RFC 9728 OAuth Protected Resource Metadata (advertised by draft-kya-http-02 §8.1)",
4
+ "description": "Global PRM document: no resource_org_did and no scopes. authorization_servers advertises the GLOBAL gateway issuer (the BaseUrl origin), and scopes_supported is OMITTED entirely (NOT defaulted to a scope). The minimal counterpart of protected-resource-metadata.full.json.",
5
+ "input": {
6
+ "resource_host": "api.merchant.com",
7
+ "resource_org_did": null,
8
+ "base_url": "https://kya.vouched.id",
9
+ "scopes": []
10
+ },
11
+ "expected": {
12
+ "document": {
13
+ "resource": "https://api.merchant.com",
14
+ "authorization_servers": ["https://kya.vouched.id"],
15
+ "bearer_methods_supported": ["header"],
16
+ "resource_documentation": "https://kya.vouched.id/docs/enforce/kya-os-enforcement"
17
+ }
18
+ },
19
+ "conformance": {
20
+ "key_order": [
21
+ "resource",
22
+ "authorization_servers",
23
+ "bearer_methods_supported",
24
+ "resource_documentation"
25
+ ],
26
+ "notes": "scopes_supported is OMITTED (no scopes input); authorization_servers is the global issuer (BaseUrl origin) when no org slug is present — still a single-element array."
27
+ }
28
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$fixture": "kya-http/registration.request",
3
+ "$spec": "H2.4 #3255 \u2014 challenge-anchor registration (POST /api/v1/bouncer/sessions)",
4
+ "description": "Canonical registration REQUEST body, frozen so the TS edge worker (registration-client.ts) and the .NET DelegationAnchorRegistrar.BuildRequestBody cannot drift on field names / required set. Values like client_info.name and agent_did legitimately differ per client (gateway-worker vs the .NET SDK, anonymous-principal vs a verified DID) \u2014 only the SHAPE (top-level keys + nested challenge keys) is normative; the parity tests assert key sets, not values.",
5
+ "body": {
6
+ "session_id": "kya-9f4e7c2a8b1d4e6f0a1b2c3d4e5f6071",
7
+ "agent_did": "did:web:anonymous.example",
8
+ "project_id": "proj_canonical_fixture",
9
+ "created_at": 1700000000000,
10
+ "client_info": {
11
+ "name": "checkpoint-gateway",
12
+ "version": "1.0.0"
13
+ },
14
+ "challenge": {
15
+ "required_scopes": ["commerce.checkout"],
16
+ "pep_surface": "gateway-worker",
17
+ "verdict": "challenge"
18
+ }
19
+ },
20
+ "conformance": {
21
+ "required_top_level_keys": [
22
+ "session_id",
23
+ "agent_did",
24
+ "project_id",
25
+ "created_at",
26
+ "client_info",
27
+ "challenge"
28
+ ],
29
+ "required_client_info_keys": ["name"],
30
+ "required_challenge_keys": ["required_scopes"],
31
+ "notes": "issued_at is NOT a request field (it is response-only). The challenge block also OPTIONALLY carries pep_surface, verdict, detected_agent_did, challenge_pin, audience (X4 cross-resource claims: the resource org's DID that becomes the deployment-minted VC's aud; server-derived on checkpoint's redirect relay), and the #4201 display-only detected-identity keys detected_agent_name, detected_agent_class, detected_confidence (0-100) \u2014 rendered on the consent screen's agent card, never entering the challenge_proof."
32
+ }
33
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$fixture": "kya-http/registration.response",
3
+ "$spec": "H2.4 #3255 — challenge-anchor registration success envelope",
4
+ "description": "Canonical registration RESPONSE, frozen so both client runtimes parse it without drift. The TS edge worker (registration-client.ts) reads data.challenge.{consent_uri, challenge_proof, issued_at} and NEVER data.session_id; the .NET DelegationAnchorRegistrar.ParseResponse reads data.session_id (echoed into Sid) + data.challenge.{consent_uri, challenge_proof} and NEVER issued_at. consent_uri + challenge_proof are read by BOTH — renaming either must fail BOTH parity tests (the drift-guard verify-by-revert).",
5
+ "body": {
6
+ "success": true,
7
+ "data": {
8
+ "session_id": "kya-9f4e7c2a8b1d4e6f0a1b2c3d4e5f6071",
9
+ "registered": true,
10
+ "created_at": "2023-11-14T22:13:20.000Z",
11
+ "challenge": {
12
+ "consent_uri": "https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f0a1b2c3d4e5f6071",
13
+ "challenge_proof": { "sig": "test-challenge-proof" },
14
+ "required_scopes": ["commerce.checkout"],
15
+ "issued_at": 1700000000000
16
+ }
17
+ }
18
+ },
19
+ "conformance": {
20
+ "ts_worker_reads": [
21
+ "data.challenge.consent_uri",
22
+ "data.challenge.challenge_proof",
23
+ "data.challenge.issued_at"
24
+ ],
25
+ "dotnet_reads": [
26
+ "data.session_id",
27
+ "data.challenge.consent_uri",
28
+ "data.challenge.challenge_proof"
29
+ ],
30
+ "read_by_both": ["data.challenge.consent_uri", "data.challenge.challenge_proof"]
31
+ }
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/checkpoint-shared",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "description": "Checkpoint shared types and schemas (formerly @kya-os/agentshield-shared)",
5
5
  "keywords": [
6
6
  "ai",
@@ -12,14 +12,14 @@
12
12
  ],
13
13
  "license": "MIT OR Apache-2.0",
14
14
  "author": "KnowThat.ai",
15
- "homepage": "https://github.com/Know-That-Ai/agent-shield#readme",
15
+ "homepage": "https://github.com/Know-That-Ai/checkpoint#readme",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "https://github.com/Know-That-Ai/agent-shield.git",
18
+ "url": "https://github.com/Know-That-Ai/checkpoint.git",
19
19
  "directory": "packages/checkpoint-shared"
20
20
  },
21
21
  "bugs": {
22
- "url": "https://github.com/Know-That-Ai/agent-shield/issues"
22
+ "url": "https://github.com/Know-That-Ai/checkpoint/issues"
23
23
  },
24
24
  "main": "./dist/index.js",
25
25
  "module": "./dist/index.mjs",
@@ -55,6 +55,11 @@
55
55
  "import": "./dist/mcpi/approval-grant/index.mjs",
56
56
  "require": "./dist/mcpi/approval-grant/index.js"
57
57
  },
58
+ "./mcpi/multibase-ed25519": {
59
+ "types": "./dist/mcpi/multibase-ed25519.d.ts",
60
+ "import": "./dist/mcpi/multibase-ed25519.mjs",
61
+ "require": "./dist/mcpi/multibase-ed25519.js"
62
+ },
58
63
  "./beacon-types": {
59
64
  "types": "./dist/beacon-types/index.d.ts",
60
65
  "import": "./dist/beacon-types/index.mjs",
@@ -85,12 +90,33 @@
85
90
  "import": "./dist/deploy/index.mjs",
86
91
  "require": "./dist/deploy/index.js"
87
92
  },
88
- "./package.json": "./package.json"
93
+ "./signals": {
94
+ "types": "./dist/signals/index.d.ts",
95
+ "import": "./dist/signals/index.mjs",
96
+ "require": "./dist/signals/index.js"
97
+ },
98
+ "./errors": {
99
+ "types": "./dist/errors/index.d.ts",
100
+ "import": "./dist/errors/index.mjs",
101
+ "require": "./dist/errors/index.js"
102
+ },
103
+ "./package.json": "./package.json",
104
+ "./browser-posture-report": {
105
+ "types": "./dist/browser-posture-report.d.ts",
106
+ "import": "./dist/browser-posture-report.mjs",
107
+ "require": "./dist/browser-posture-report.js"
108
+ },
109
+ "./browser-posture": {
110
+ "types": "./dist/browser-posture.d.ts",
111
+ "import": "./dist/browser-posture.mjs",
112
+ "require": "./dist/browser-posture.js"
113
+ }
89
114
  },
90
115
  "files": [
91
116
  "dist",
92
117
  "src/data/compiled",
93
118
  "src/data/default-rules.json",
119
+ "fixtures",
94
120
  "README.md",
95
121
  "CHANGELOG.md"
96
122
  ],
@@ -100,21 +126,21 @@
100
126
  "dependencies": {
101
127
  "@kya-os/provider-registry": "^0.1.7",
102
128
  "@noble/ed25519": "^2.2.3",
129
+ "@noble/hashes": "^2.0.1",
103
130
  "canonicalize": "^3.0.0",
104
131
  "jose": "^5.10.0",
105
- "js-yaml": "^4.1.1",
106
- "multiformats": "^13",
132
+ "js-yaml": "^5.0.0",
107
133
  "zod": "^3.22.4"
108
134
  },
109
135
  "devDependencies": {
110
136
  "@types/js-yaml": "^4.0.9",
111
137
  "@types/node": "^20.11.24",
112
- "@vitest/coverage-v8": "^1.3.1",
138
+ "@vitest/coverage-v8": "^3.2.6",
113
139
  "rimraf": "^5.0.5",
114
140
  "tsup": "^8.0.2",
115
141
  "tsx": "^4.7.0",
116
142
  "typescript": "^5.4.2",
117
- "vitest": "^1.3.1",
143
+ "vitest": "^3.2.6",
118
144
  "@kya-os/checkpoint-rules": "0.1.0"
119
145
  },
120
146
  "publishConfig": {
@@ -125,11 +151,18 @@
125
151
  "compile-rules": "node ../../scripts/compile-rules.js",
126
152
  "build:patterns": "tsx scripts/build-patterns-json.ts",
127
153
  "build-wasm": "cd ../../ && ./scripts/build-detection-engine.sh",
154
+ "signals:snapshot": "tsx scripts/signal-registry-snapshot.ts",
155
+ "signals:snapshot:write": "tsx scripts/signal-registry-snapshot.ts --write",
156
+ "signals:docs": "tsx scripts/generate-signal-docs.ts",
157
+ "errors:docs": "tsx scripts/generate-error-docs.ts",
158
+ "reason-codes:docs": "tsx scripts/generate-reason-code-docs.ts",
159
+ "signal-exposure:docs": "tsx scripts/generate-signal-exposure-docs.ts",
128
160
  "build": "rimraf dist && pnpm run compile-rules && pnpm run build:patterns && tsup",
129
161
  "build:watch": "tsup --watch",
130
162
  "dev": "tsup --watch",
131
163
  "clean": "rimraf dist .tsbuildinfo",
132
164
  "test": "vitest run",
165
+ "test:unit": "vitest run",
133
166
  "test:watch": "vitest",
134
167
  "test:coverage": "vitest run --coverage",
135
168
  "type-check": "tsc --noEmit",
@@ -67,7 +67,7 @@
67
67
  "lastUpdated": "2025-01-10T00:00:00Z"
68
68
  }
69
69
  ],
70
- "hash": "58f3ec67889f255c78bc571031af8dca3d9e2b6975ad42803758b2342516070b"
70
+ "hash": "01eccdc0313dec99ffa8128c3e4c20818a9e58cfb0c0b41f428d0be5b4dbe5bf"
71
71
  },
72
72
  "rules": {
73
73
  "userAgents": {
@@ -342,9 +342,15 @@
342
342
  "description": "Perplexity AI assistant (Perplexity-User, Perplexity/N, Comet browser)",
343
343
  "category": "ai_assistant"
344
344
  },
345
+ "amazon_quick_crawler": {
346
+ "patterns": ["Amazon-Quick", "aws-quick"],
347
+ "confidence": 0.95,
348
+ "category": "scraper",
349
+ "description": "Amazon Quick web crawler (formerly Amazon Q)"
350
+ },
345
351
  "amazon_q": {
346
352
  "patterns": ["NovaAct", "Amazon-Q"],
347
- "confidence": 0.95,
353
+ "confidence": 0.85,
348
354
  "description": "Amazon Q AI assistant",
349
355
  "category": "ai_assistant"
350
356
  },