@kya-os/checkpoint-shared 1.4.0 → 1.5.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/beacon-types/index.d.mts +441 -432
  3. package/dist/beacon-types/index.d.mts.map +1 -0
  4. package/dist/beacon-types/index.d.ts +441 -432
  5. package/dist/beacon-types/index.d.ts.map +1 -0
  6. package/dist/beacon-types/index.js +198 -182
  7. package/dist/beacon-types/index.mjs +197 -179
  8. package/dist/beacon-types/index.mjs.map +1 -0
  9. package/dist/browser-posture-cookie-Dmq9Brf_.d.mts +5 -0
  10. package/dist/browser-posture-cookie-Dmq9Brf_.d.mts.map +1 -0
  11. package/dist/browser-posture-cookie-Dmq9Brf_.d.ts +5 -0
  12. package/dist/browser-posture-cookie-Dmq9Brf_.d.ts.map +1 -0
  13. package/dist/browser-posture-cookie.d.mts +2 -0
  14. package/dist/browser-posture-cookie.d.ts +2 -0
  15. package/dist/browser-posture-cookie.js +1 -0
  16. package/dist/browser-posture-cookie.mjs +2 -0
  17. package/dist/browser-posture-cookie.mjs.map +1 -0
  18. package/dist/browser-posture-report.d.mts +48 -44
  19. package/dist/browser-posture-report.d.mts.map +1 -0
  20. package/dist/browser-posture-report.d.ts +48 -44
  21. package/dist/browser-posture-report.d.ts.map +1 -0
  22. package/dist/browser-posture-report.js +1 -1
  23. package/dist/browser-posture-report.mjs +2 -1
  24. package/dist/browser-posture-report.mjs.map +1 -0
  25. package/dist/browser-posture.d.mts +80 -75
  26. package/dist/browser-posture.d.mts.map +1 -0
  27. package/dist/browser-posture.d.ts +80 -75
  28. package/dist/browser-posture.d.ts.map +1 -0
  29. package/dist/browser-posture.js +159 -18993
  30. package/dist/browser-posture.mjs +158 -18990
  31. package/dist/browser-posture.mjs.map +1 -0
  32. package/dist/browser.d.mts +323 -316
  33. package/dist/browser.d.mts.map +1 -0
  34. package/dist/browser.d.ts +323 -316
  35. package/dist/browser.d.ts.map +1 -0
  36. package/dist/browser.js +1 -1
  37. package/dist/browser.mjs +2 -1
  38. package/dist/browser.mjs.map +1 -0
  39. package/dist/canonical-signer/index.d.mts +38 -33
  40. package/dist/canonical-signer/index.d.mts.map +1 -0
  41. package/dist/canonical-signer/index.d.ts +38 -33
  42. package/dist/canonical-signer/index.d.ts.map +1 -0
  43. package/dist/canonical-signer/index.js +411 -181
  44. package/dist/canonical-signer/index.mjs +383 -175
  45. package/dist/canonical-signer/index.mjs.map +1 -0
  46. package/dist/clearance.d.mts +30 -0
  47. package/dist/clearance.d.mts.map +1 -0
  48. package/dist/clearance.d.ts +30 -0
  49. package/dist/clearance.d.ts.map +1 -0
  50. package/dist/clearance.js +120 -0
  51. package/dist/clearance.mjs +112 -0
  52. package/dist/clearance.mjs.map +1 -0
  53. package/dist/client-ip-1y2iXAYW.js +237 -0
  54. package/dist/client-ip-HOfe6ucV.mjs +215 -0
  55. package/dist/client-ip-HOfe6ucV.mjs.map +1 -0
  56. package/dist/deploy/index.d.mts +339 -339
  57. package/dist/deploy/index.d.mts.map +1 -0
  58. package/dist/deploy/index.d.ts +339 -339
  59. package/dist/deploy/index.d.ts.map +1 -0
  60. package/dist/deploy/index.js +505 -413
  61. package/dist/deploy/index.mjs +504 -410
  62. package/dist/deploy/index.mjs.map +1 -0
  63. package/dist/errors/index.d.mts +101 -101
  64. package/dist/errors/index.d.mts.map +1 -0
  65. package/dist/errors/index.d.ts +101 -101
  66. package/dist/errors/index.d.ts.map +1 -0
  67. package/dist/errors/index.js +341 -314
  68. package/dist/errors/index.mjs +340 -311
  69. package/dist/errors/index.mjs.map +1 -0
  70. package/dist/external-jr_S4iSS.d.mts +4187 -0
  71. package/dist/external-jr_S4iSS.d.mts.map +1 -0
  72. package/dist/external-jr_S4iSS.d.ts +4187 -0
  73. package/dist/external-jr_S4iSS.d.ts.map +1 -0
  74. package/dist/gateway/index.d.mts +138 -132
  75. package/dist/gateway/index.d.mts.map +1 -0
  76. package/dist/gateway/index.d.ts +138 -132
  77. package/dist/gateway/index.d.ts.map +1 -0
  78. package/dist/gateway/index.js +117 -81
  79. package/dist/gateway/index.mjs +116 -78
  80. package/dist/gateway/index.mjs.map +1 -0
  81. package/dist/gateway-client-ip.d.mts +59 -0
  82. package/dist/gateway-client-ip.d.mts.map +1 -0
  83. package/dist/gateway-client-ip.d.ts +59 -0
  84. package/dist/gateway-client-ip.d.ts.map +1 -0
  85. package/dist/gateway-client-ip.js +149 -0
  86. package/dist/gateway-client-ip.mjs +139 -0
  87. package/dist/gateway-client-ip.mjs.map +1 -0
  88. package/dist/index.d.mts +14895 -14240
  89. package/dist/index.d.mts.map +1 -0
  90. package/dist/index.d.ts +14895 -14240
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +15180 -31025
  93. package/dist/index.mjs +15065 -30942
  94. package/dist/index.mjs.map +1 -0
  95. package/dist/mcpi/agentshield-api/index.d.mts +45 -44
  96. package/dist/mcpi/agentshield-api/index.d.mts.map +1 -0
  97. package/dist/mcpi/agentshield-api/index.d.ts +45 -44
  98. package/dist/mcpi/agentshield-api/index.d.ts.map +1 -0
  99. package/dist/mcpi/agentshield-api/index.js +0 -2
  100. package/dist/mcpi/agentshield-api/index.mjs +1 -1
  101. package/dist/mcpi/approval-grant/index.d.mts +63 -61
  102. package/dist/mcpi/approval-grant/index.d.mts.map +1 -0
  103. package/dist/mcpi/approval-grant/index.d.ts +63 -61
  104. package/dist/mcpi/approval-grant/index.d.ts.map +1 -0
  105. package/dist/mcpi/approval-grant/index.js +220 -140
  106. package/dist/mcpi/approval-grant/index.mjs +219 -137
  107. package/dist/mcpi/approval-grant/index.mjs.map +1 -0
  108. package/dist/mcpi/dashboard-config/index.d.mts +2323 -2318
  109. package/dist/mcpi/dashboard-config/index.d.mts.map +1 -0
  110. package/dist/mcpi/dashboard-config/index.d.ts +2323 -2318
  111. package/dist/mcpi/dashboard-config/index.d.ts.map +1 -0
  112. package/dist/mcpi/dashboard-config/index.js +605 -458
  113. package/dist/mcpi/dashboard-config/index.mjs +604 -455
  114. package/dist/mcpi/dashboard-config/index.mjs.map +1 -0
  115. package/dist/mcpi/multibase-ed25519.d.mts +10 -8
  116. package/dist/mcpi/multibase-ed25519.d.mts.map +1 -0
  117. package/dist/mcpi/multibase-ed25519.d.ts +10 -8
  118. package/dist/mcpi/multibase-ed25519.d.ts.map +1 -0
  119. package/dist/mcpi/multibase-ed25519.js +182 -106
  120. package/dist/mcpi/multibase-ed25519.mjs +181 -103
  121. package/dist/mcpi/multibase-ed25519.mjs.map +1 -0
  122. package/dist/patterns-CkRVOdtV.js +243 -0
  123. package/dist/patterns-DzkGy_qk.mjs +173 -0
  124. package/dist/patterns-DzkGy_qk.mjs.map +1 -0
  125. package/dist/project-verification-key-C3L5rd8a.js +41 -0
  126. package/dist/project-verification-key-CgSVX9_m.mjs +37 -0
  127. package/dist/project-verification-key-CgSVX9_m.mjs.map +1 -0
  128. package/dist/rolldown-runtime-iY2fYEqi.mjs +19 -0
  129. package/dist/schemas-BmjNLAE7.js +5677 -0
  130. package/dist/schemas-DxY-dk9y.mjs +5511 -0
  131. package/dist/schemas-DxY-dk9y.mjs.map +1 -0
  132. package/dist/signals/index.d.mts +125 -115
  133. package/dist/signals/index.d.mts.map +1 -0
  134. package/dist/signals/index.d.ts +125 -115
  135. package/dist/signals/index.d.ts.map +1 -0
  136. package/dist/signals/index.js +1693 -1536
  137. package/dist/signals/index.mjs +1692 -1533
  138. package/dist/signals/index.mjs.map +1 -0
  139. package/dist/test-fixtures/index.d.mts +124 -119
  140. package/dist/test-fixtures/index.d.mts.map +1 -0
  141. package/dist/test-fixtures/index.d.ts +124 -119
  142. package/dist/test-fixtures/index.d.ts.map +1 -0
  143. package/dist/test-fixtures/index.js +460 -228
  144. package/dist/test-fixtures/index.mjs +459 -225
  145. package/dist/test-fixtures/index.mjs.map +1 -0
  146. package/dist/tool-protection/index.d.mts +343 -343
  147. package/dist/tool-protection/index.d.mts.map +1 -0
  148. package/dist/tool-protection/index.d.ts +343 -343
  149. package/dist/tool-protection/index.d.ts.map +1 -0
  150. package/dist/tool-protection/index.js +366 -285
  151. package/dist/tool-protection/index.mjs +365 -282
  152. package/dist/tool-protection/index.mjs.map +1 -0
  153. package/fixtures/bot-signal-resolution.json +142 -0
  154. package/fixtures/browser-posture-claims.json +421 -0
  155. package/fixtures/browser-posture-headers.json +46 -0
  156. package/fixtures/detection/reason-codes.json +10 -1
  157. package/fixtures/kya-http/challenge.delegation.fetcher-200.json +9 -3
  158. package/fixtures/kya-http/challenge.delegation.full.json +9 -3
  159. package/fixtures/kya-http/challenge.delegation.minimal.json +9 -3
  160. package/fixtures/kya-http/error-codes.json +7 -2
  161. package/package.json +20 -6
@@ -0,0 +1,46 @@
1
+ [
2
+ {
3
+ "name": "numeric kid must not be coerced",
4
+ "patch": {
5
+ "kid": 123
6
+ },
7
+ "keyId": "123",
8
+ "valid": false
9
+ },
10
+ {
11
+ "name": "unsupported critical header",
12
+ "patch": {
13
+ "crit": ["custom"],
14
+ "custom": true
15
+ },
16
+ "valid": false
17
+ },
18
+ {
19
+ "name": "empty critical header",
20
+ "patch": {
21
+ "crit": []
22
+ },
23
+ "valid": false
24
+ },
25
+ {
26
+ "name": "explicit b64 header",
27
+ "patch": {
28
+ "b64": true
29
+ },
30
+ "valid": false
31
+ },
32
+ {
33
+ "name": "numeric type",
34
+ "patch": {
35
+ "typ": 123
36
+ },
37
+ "valid": false
38
+ },
39
+ {
40
+ "name": "wrong algorithm",
41
+ "patch": {
42
+ "alg": "HS256"
43
+ },
44
+ "valid": false
45
+ }
46
+ ]
@@ -9,6 +9,7 @@
9
9
  "detection/did-signature-verified": "verificationMethod === 'did'",
10
10
  "detection/rfc9421-signature-verified": "verificationMethod === 'signature'",
11
11
  "detection/tier1-attribution-verified": "verificationMethod starts with 'tier1_'",
12
+ "detection/a2a-verified": "verificationMethod === 'a2a'",
12
13
  "detection/verification-error": "verificationMethod === 'error'"
13
14
  },
14
15
  "signal": {
@@ -16,13 +17,21 @@
16
17
  "detection/header-heuristic": "source === 'header_heuristic'",
17
18
  "detection/ip-heuristic": "source === 'ip_heuristic'",
18
19
  "detection/vendor-ip-corroborated": "source === 'vendor_ip_feed'",
20
+ "detection/ip-intelligence-proxy-signal": "source === 'ip_intelligence'",
19
21
  "detection/ja4-fingerprint-match": "source === 'transport.ja4'",
22
+ "detection/client-integrity-failure": "source === 'client_integrity'",
23
+ "detection/ua-tls-mismatch": "source === 'ua_tls_mismatch'",
20
24
  "detection/client-attribute-signal": "source === 'client.attributes'",
21
25
  "detection/behavioral-signal": "source === 'behavioural.interaction'",
22
26
  "detection/mcp-i-signal": "source === 'mcp_i'",
23
27
  "detection/kya-http-binding-signal": "source === 'kya_http_binding'",
24
28
  "detection/kya-delegation-bearer-signal": "source === 'kya_delegation_bearer'",
25
- "detection/tier1-attribution-signal": "a signals[] entry whose source starts with 'tier1_'"
29
+ "detection/tier1-attribution-signal": "a signals[] entry whose source starts with 'tier1_'",
30
+ "detection/a2a-card-signal": "source === 'a2a_agent_card'",
31
+ "detection/scanner-misclassification-hint-signal": "source === 'scanner_misclassification_hint'",
32
+ "detection/client-headless-escalation-signal": "source === 'client_headless_escalation'",
33
+ "detection/cloudflare-bot-management-signal": "source === 'transport.cloudflare_bot_management'",
34
+ "detection/session-velocity-signal": "source === 'session_velocity'"
26
35
  },
27
36
  "flag": {
28
37
  "detection/ai-crawler-flag": "isAiCrawler === true"
@@ -39,11 +39,17 @@
39
39
  "consent_uri": "https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f",
40
40
  "pickup_uri": "https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f",
41
41
  "poll_interval_s": 3,
42
- "pin": { "header": "X-KYA-Pickup-Token" },
43
- "retry": { "header": "Authorization", "scheme": "Bearer", "value_from": "delegation" }
42
+ "pin": {
43
+ "header": "X-KYA-Pickup-Token"
44
+ },
45
+ "retry": {
46
+ "header": "Authorization",
47
+ "scheme": "Bearer",
48
+ "value_from": "delegation"
49
+ }
44
50
  }
45
51
  },
46
- "instructions": "This action requires human authorization. Show your user this link and ask them to approve: https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f. Then poll https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f every 3 seconds. If you can sign HTTP requests, sign each poll with an ephemeral did:key; otherwise generate one random 32-byte token and send it as X-KYA-Pickup-Token on EVERY poll. When the response status is 200, take the 'delegation' value and retry your original request with header 'Authorization: Bearer <delegation>'."
52
+ "instructions": "This action requires human authorization. First establish your pickup binding at https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f. If you can sign HTTP requests, sign each poll with an ephemeral did:key; otherwise generate one random 32-byte token encoded as unpadded base64url and send it as X-KYA-Pickup-Token on EVERY poll. After receiving 202 pending, show your user this link and ask them to approve: https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f. Continue polling https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f every 3 seconds with the same binding. When the response status is 200, take the 'delegation' value and retry your original request with header 'Authorization: Bearer <delegation>'."
47
53
  }
48
54
  },
49
55
  "conformance": {
@@ -48,11 +48,17 @@
48
48
  "consent_uri": "https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f",
49
49
  "pickup_uri": "https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f",
50
50
  "poll_interval_s": 3,
51
- "pin": { "header": "X-KYA-Pickup-Token" },
52
- "retry": { "header": "Authorization", "scheme": "Bearer", "value_from": "delegation" }
51
+ "pin": {
52
+ "header": "X-KYA-Pickup-Token"
53
+ },
54
+ "retry": {
55
+ "header": "Authorization",
56
+ "scheme": "Bearer",
57
+ "value_from": "delegation"
58
+ }
53
59
  }
54
60
  },
55
- "instructions": "This action requires human authorization. Show your user this link and ask them to approve: https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f. Then poll https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f every 3 seconds. If you can sign HTTP requests, sign each poll with an ephemeral did:key; otherwise generate one random 32-byte token and send it as X-KYA-Pickup-Token on EVERY poll. When the response status is 200, take the 'delegation' value and retry your original request with header 'Authorization: Bearer <delegation>'."
61
+ "instructions": "This action requires human authorization. First establish your pickup binding at https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f. If you can sign HTTP requests, sign each poll with an ephemeral did:key; otherwise generate one random 32-byte token encoded as unpadded base64url and send it as X-KYA-Pickup-Token on EVERY poll. After receiving 202 pending, show your user this link and ask them to approve: https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f. Continue polling https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f every 3 seconds with the same binding. When the response status is 200, take the 'delegation' value and retry your original request with header 'Authorization: Bearer <delegation>'."
56
62
  }
57
63
  },
58
64
  "retry": {
@@ -37,11 +37,17 @@
37
37
  "consent_uri": "https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f",
38
38
  "pickup_uri": "https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f",
39
39
  "poll_interval_s": 3,
40
- "pin": { "header": "X-KYA-Pickup-Token" },
41
- "retry": { "header": "Authorization", "scheme": "Bearer", "value_from": "delegation" }
40
+ "pin": {
41
+ "header": "X-KYA-Pickup-Token"
42
+ },
43
+ "retry": {
44
+ "header": "Authorization",
45
+ "scheme": "Bearer",
46
+ "value_from": "delegation"
47
+ }
42
48
  }
43
49
  },
44
- "instructions": "This action requires human authorization. Show your user this link and ask them to approve: https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f. Then poll https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f every 3 seconds. If you can sign HTTP requests, sign each poll with an ephemeral did:key; otherwise generate one random 32-byte token and send it as X-KYA-Pickup-Token on EVERY poll. When the response status is 200, take the 'delegation' value and retry your original request with header 'Authorization: Bearer <delegation>'."
50
+ "instructions": "This action requires human authorization. First establish your pickup binding at https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f. If you can sign HTTP requests, sign each poll with an ephemeral did:key; otherwise generate one random 32-byte token encoded as unpadded base64url and send it as X-KYA-Pickup-Token on EVERY poll. After receiving 202 pending, show your user this link and ask them to approve: https://auth.merchant.com/consent?sid=kya-9f4e7c2a8b1d4e6f. Continue polling https://auth.merchant.com/api/delegation/pickup/kya-9f4e7c2a8b1d4e6f every 3 seconds with the same binding. When the response status is 200, take the 'delegation' value and retry your original request with header 'Authorization: Bearer <delegation>'."
45
51
  }
46
52
  },
47
53
  "conformance": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$fixture": "kya-http/error-codes",
3
- "$spec": "draft-kya-http-02 §9",
3
+ "$spec": "HTTP binding revision 13 section 12",
4
4
  "description": "The kyaos/* registry with HTTP status mapping. Emitters MUST use these exact strings; kya/* legacy names MAY be accepted by consumers for one transition cycle.",
5
5
  "401": {
6
6
  "kyaos/missing-signature": "No Signature-Input label 'kya' where policy requires one",
@@ -22,7 +22,12 @@
22
22
  "kyaos/assurance-insufficient": "Credential verified but achieved assurance tier is below the policy's min_assurance floor; retry with a key-bound signed request (proof-of-possession)"
23
23
  },
24
24
  "503": {
25
- "kyaos/status-pending": "Credential declared a credentialStatus but its status list was not supplied / could not be fetched (cold cache, past the 300s status cap); fail-closed but RETRYABLE once the list warms"
25
+ "kyaos/replay-state-unavailable": "Atomic replay state cannot be read and updated; fail closed",
26
+ "kyaos/status-pending": "Credential declared a credentialStatus but its status list was not supplied / could not be fetched (cold cache, past the 300s status cap); fail-closed but RETRYABLE once the list warms",
27
+ "kyaos/authorization-host-unavailable": "Authorization Host registration or signed challenge failed; no authorization affordance"
28
+ },
29
+ "429": {
30
+ "kyaos/replay-capacity": "Bounded replay admission exhausted; retain live entries and send Retry-After"
26
31
  },
27
32
  "pickup": {
28
33
  "202": "pending",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/checkpoint-shared",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Checkpoint shared types and schemas (formerly @kya-os/agentshield-shared)",
5
5
  "keywords": [
6
6
  "ai",
@@ -106,10 +106,25 @@
106
106
  "import": "./dist/browser-posture-report.mjs",
107
107
  "require": "./dist/browser-posture-report.js"
108
108
  },
109
+ "./browser-posture-cookie": {
110
+ "types": "./dist/browser-posture-cookie.d.ts",
111
+ "import": "./dist/browser-posture-cookie.mjs",
112
+ "require": "./dist/browser-posture-cookie.js"
113
+ },
109
114
  "./browser-posture": {
110
115
  "types": "./dist/browser-posture.d.ts",
111
116
  "import": "./dist/browser-posture.mjs",
112
117
  "require": "./dist/browser-posture.js"
118
+ },
119
+ "./clearance": {
120
+ "types": "./dist/clearance.d.ts",
121
+ "import": "./dist/clearance.mjs",
122
+ "require": "./dist/clearance.js"
123
+ },
124
+ "./gateway-client-ip": {
125
+ "types": "./dist/gateway-client-ip.d.ts",
126
+ "import": "./dist/gateway-client-ip.mjs",
127
+ "require": "./dist/gateway-client-ip.js"
113
128
  }
114
129
  },
115
130
  "files": [
@@ -137,7 +152,7 @@
137
152
  "@types/node": "^20.11.24",
138
153
  "@vitest/coverage-v8": "^3.2.6",
139
154
  "rimraf": "^5.0.5",
140
- "tsup": "^8.0.2",
155
+ "tsdown": "0.23.0",
141
156
  "tsx": "^4.7.0",
142
157
  "typescript": "^5.4.2",
143
158
  "vitest": "^3.2.6",
@@ -150,16 +165,15 @@
150
165
  "scripts": {
151
166
  "compile-rules": "node ../../scripts/compile-rules.js",
152
167
  "build:patterns": "tsx scripts/build-patterns-json.ts",
153
- "build-wasm": "cd ../../ && ./scripts/build-detection-engine.sh",
154
168
  "signals:snapshot": "tsx scripts/signal-registry-snapshot.ts",
155
169
  "signals:snapshot:write": "tsx scripts/signal-registry-snapshot.ts --write",
156
170
  "signals:docs": "tsx scripts/generate-signal-docs.ts",
157
171
  "errors:docs": "tsx scripts/generate-error-docs.ts",
158
172
  "reason-codes:docs": "tsx scripts/generate-reason-code-docs.ts",
159
173
  "signal-exposure:docs": "tsx scripts/generate-signal-exposure-docs.ts",
160
- "build": "rimraf dist && pnpm run compile-rules && pnpm run build:patterns && tsup",
161
- "build:watch": "tsup --watch",
162
- "dev": "tsup --watch",
174
+ "build": "rimraf dist && pnpm run compile-rules && pnpm run build:patterns && tsdown",
175
+ "build:watch": "tsdown --watch",
176
+ "dev": "tsdown --watch",
163
177
  "clean": "rimraf dist .tsbuildinfo",
164
178
  "test": "vitest run",
165
179
  "test:unit": "vitest run",