@taggor/contract 0.4.0 → 0.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 (252) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/artifact-keys.d.ts +11 -11
  3. package/dist/artifact-keys.d.ts.map +1 -1
  4. package/dist/artifact-keys.js +11 -11
  5. package/dist/artifact-keys.js.map +1 -1
  6. package/dist/assets.d.ts +5 -5
  7. package/dist/assets.js +5 -5
  8. package/dist/bounded-path.d.ts +2 -2
  9. package/dist/bounded-path.js +2 -2
  10. package/dist/bounded.d.ts +2 -2
  11. package/dist/bounded.js +2 -2
  12. package/dist/build-diagnostic.d.ts +5 -5
  13. package/dist/build-diagnostic.js +5 -5
  14. package/dist/component-types.d.ts +7 -7
  15. package/dist/component-types.js +4 -4
  16. package/dist/component-types.js.map +1 -1
  17. package/dist/consent-text.d.ts +1 -1
  18. package/dist/consent-text.js +1 -1
  19. package/dist/contract-version.d.ts +13 -12
  20. package/dist/contract-version.d.ts.map +1 -1
  21. package/dist/contract-version.js +13 -12
  22. package/dist/contract-version.js.map +1 -1
  23. package/dist/credential-fields.d.ts +1 -1
  24. package/dist/credential-fields.js +1 -1
  25. package/dist/css-tokens.d.ts +1 -1
  26. package/dist/css-tokens.js +1 -1
  27. package/dist/css-value.d.ts +4 -4
  28. package/dist/css-value.js +4 -4
  29. package/dist/data-api.d.ts +11 -11
  30. package/dist/data-api.js +14 -14
  31. package/dist/data-api.js.map +1 -1
  32. package/dist/denylist-keys.d.ts +1 -1
  33. package/dist/denylist-keys.js +4 -4
  34. package/dist/diagnostic-catalog.d.ts +44 -36
  35. package/dist/diagnostic-catalog.d.ts.map +1 -1
  36. package/dist/diagnostic-catalog.js +44 -40
  37. package/dist/diagnostic-catalog.js.map +1 -1
  38. package/dist/dom-members.snapshot.d.ts +4 -4
  39. package/dist/dom-members.snapshot.js +8 -8
  40. package/dist/early-loading.d.ts +1 -1
  41. package/dist/early-loading.js +1 -1
  42. package/dist/error-catalog.d.ts +67 -7
  43. package/dist/error-catalog.d.ts.map +1 -1
  44. package/dist/error-catalog.js +105 -49
  45. package/dist/error-catalog.js.map +1 -1
  46. package/dist/executable-config.d.ts +1 -1
  47. package/dist/freeze.d.ts +2 -2
  48. package/dist/freeze.js +2 -2
  49. package/dist/gunzip.d.ts +3 -3
  50. package/dist/gunzip.js +4 -4
  51. package/dist/gunzip.js.map +1 -1
  52. package/dist/hostname.d.ts +5 -6
  53. package/dist/hostname.d.ts.map +1 -1
  54. package/dist/hostname.js +7 -8
  55. package/dist/hostname.js.map +1 -1
  56. package/dist/human-actions.d.ts +3 -3
  57. package/dist/index.d.ts +4 -3
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +4 -3
  60. package/dist/index.js.map +1 -1
  61. package/dist/json-schema.d.ts +15 -15
  62. package/dist/json-schema.d.ts.map +1 -1
  63. package/dist/json-schema.js +22 -22
  64. package/dist/json-schema.js.map +1 -1
  65. package/dist/key-checksum.d.ts +1 -1
  66. package/dist/key-checksum.js +1 -1
  67. package/dist/libraries.d.ts +4 -4
  68. package/dist/libraries.d.ts.map +1 -1
  69. package/dist/libraries.js +4 -4
  70. package/dist/libraries.js.map +1 -1
  71. package/dist/limit-catalog.d.ts +17 -17
  72. package/dist/limit-catalog.d.ts.map +1 -1
  73. package/dist/limit-catalog.js +30 -30
  74. package/dist/limit-catalog.js.map +1 -1
  75. package/dist/limits.d.ts +15 -15
  76. package/dist/limits.d.ts.map +1 -1
  77. package/dist/limits.js +16 -16
  78. package/dist/limits.js.map +1 -1
  79. package/dist/locale-tag.d.ts +2 -2
  80. package/dist/locale-tag.js +2 -2
  81. package/dist/make-diagnostic.d.ts +2 -3
  82. package/dist/make-diagnostic.d.ts.map +1 -1
  83. package/dist/make-diagnostic.js.map +1 -1
  84. package/dist/manifest-compat-diagnostics.d.ts +1 -1
  85. package/dist/manifest-compat.js +1 -1
  86. package/dist/manifest.d.ts +21 -22
  87. package/dist/manifest.d.ts.map +1 -1
  88. package/dist/manifest.js +31 -32
  89. package/dist/manifest.js.map +1 -1
  90. package/dist/metering.d.ts +17 -18
  91. package/dist/metering.d.ts.map +1 -1
  92. package/dist/metering.js +17 -18
  93. package/dist/metering.js.map +1 -1
  94. package/dist/migrate.d.ts +1 -1
  95. package/dist/migrate.js +5 -5
  96. package/dist/migrate.js.map +1 -1
  97. package/dist/money.d.ts +2 -2
  98. package/dist/money.js +2 -2
  99. package/dist/names.d.ts +4 -4
  100. package/dist/names.js +4 -4
  101. package/dist/overage-pricing.d.ts +1 -1
  102. package/dist/overage-pricing.js +1 -1
  103. package/dist/plan-ids.d.ts +1 -1
  104. package/dist/plan-ids.js +1 -1
  105. package/dist/plan-limits.d.ts +13 -13
  106. package/dist/plan-limits.d.ts.map +1 -1
  107. package/dist/plan-limits.js +8 -8
  108. package/dist/plan-limits.js.map +1 -1
  109. package/dist/plan-pricing.d.ts +10 -12
  110. package/dist/plan-pricing.d.ts.map +1 -1
  111. package/dist/plan-pricing.js +12 -14
  112. package/dist/plan-pricing.js.map +1 -1
  113. package/dist/plan-usage.d.ts +18 -18
  114. package/dist/plan-usage.d.ts.map +1 -1
  115. package/dist/plan-usage.js +19 -20
  116. package/dist/plan-usage.js.map +1 -1
  117. package/dist/preview-token.js +2 -2
  118. package/dist/prop-names.d.ts +5 -5
  119. package/dist/prop-names.d.ts.map +1 -1
  120. package/dist/prop-names.js +10 -10
  121. package/dist/prop-names.js.map +1 -1
  122. package/dist/prop-type-docs.js +1 -1
  123. package/dist/prop-types.d.ts +6 -6
  124. package/dist/prop-types.js +16 -16
  125. package/dist/prop-types.js.map +1 -1
  126. package/dist/props.d.ts +5 -5
  127. package/dist/props.js +6 -6
  128. package/dist/props.js.map +1 -1
  129. package/dist/proto-guard.js +3 -3
  130. package/dist/proto-guard.js.map +1 -1
  131. package/dist/runtime-errors.d.ts +2 -2
  132. package/dist/runtime-errors.js +2 -2
  133. package/dist/runtime-pointers.d.ts +2 -2
  134. package/dist/runtime-pointers.js +2 -2
  135. package/{schema → dist/schema}/component-manifest.v1.json +5 -5
  136. package/dist/secret-scan.d.ts +10 -10
  137. package/dist/secret-scan.d.ts.map +1 -1
  138. package/dist/secret-scan.js +15 -16
  139. package/dist/secret-scan.js.map +1 -1
  140. package/dist/semver.d.ts +2 -2
  141. package/dist/semver.js +2 -2
  142. package/dist/server-key.js +1 -1
  143. package/dist/site-manifest-keys.d.ts +11 -11
  144. package/dist/site-manifest-keys.d.ts.map +1 -1
  145. package/dist/site-manifest-keys.js +18 -18
  146. package/dist/site-manifest-keys.js.map +1 -1
  147. package/dist/site-manifest.d.ts +2 -2
  148. package/dist/site-manifest.js +9 -9
  149. package/dist/site-manifest.js.map +1 -1
  150. package/dist/source-archive.d.ts +13 -13
  151. package/dist/source-archive.js +25 -25
  152. package/dist/source-archive.js.map +1 -1
  153. package/dist/source-package-corpus.d.ts +3 -4
  154. package/dist/source-package-corpus.d.ts.map +1 -1
  155. package/dist/source-package-corpus.js +4 -6
  156. package/dist/source-package-corpus.js.map +1 -1
  157. package/dist/source-package.d.ts +17 -17
  158. package/dist/source-package.d.ts.map +1 -1
  159. package/dist/source-package.js +15 -15
  160. package/dist/source-package.js.map +1 -1
  161. package/dist/source-secrets.js +1 -1
  162. package/dist/ssr-cap.d.ts +1 -1
  163. package/dist/ssr-cap.js +4 -4
  164. package/dist/ssr-kv.d.ts +1 -1
  165. package/dist/ssr-kv.js +1 -1
  166. package/dist/ssr-render.d.ts +2 -2
  167. package/dist/ssr-render.d.ts.map +1 -1
  168. package/dist/ssr-render.js +3 -3
  169. package/dist/ssr-render.js.map +1 -1
  170. package/dist/ssr-version-ledger.js +3 -3
  171. package/dist/style-references.d.ts +2 -3
  172. package/dist/style-references.d.ts.map +1 -1
  173. package/dist/style-references.js +10 -11
  174. package/dist/style-references.js.map +1 -1
  175. package/dist/support-contact.d.ts +11 -0
  176. package/dist/support-contact.d.ts.map +1 -0
  177. package/dist/support-contact.js +11 -0
  178. package/dist/support-contact.js.map +1 -0
  179. package/dist/tag-name.d.ts +6 -6
  180. package/dist/tag-name.d.ts.map +1 -1
  181. package/dist/tag-name.js +7 -7
  182. package/dist/tag-name.js.map +1 -1
  183. package/dist/tar-writer.js +1 -1
  184. package/dist/testing.d.ts +1 -1
  185. package/dist/testing.js +1 -1
  186. package/dist/text-codec.d.ts +2 -2
  187. package/dist/text-codec.js +2 -2
  188. package/dist/url-value.d.ts +1 -1
  189. package/dist/url-value.js +6 -6
  190. package/dist/usage-guard.d.ts +16 -16
  191. package/dist/usage-guard.js +15 -15
  192. package/dist/usage-mirror.d.ts +5 -5
  193. package/dist/value-check.d.ts +6 -6
  194. package/dist/value-check.js +20 -20
  195. package/dist/value-check.js.map +1 -1
  196. package/dist/value-patterns.js +2 -2
  197. package/dist/value-schema.d.ts +3 -3
  198. package/dist/value-schema.d.ts.map +1 -1
  199. package/dist/value-schema.js +4 -4
  200. package/dist/value-schema.js.map +1 -1
  201. package/dist/zod-free.d.ts +24 -23
  202. package/dist/zod-free.d.ts.map +1 -1
  203. package/dist/zod-free.js +25 -24
  204. package/dist/zod-free.js.map +1 -1
  205. package/package.json +9 -10
  206. package/schema/DEPLOYED +0 -12
  207. package/schema/published/SHA256SUMS +0 -41
  208. package/schema/published/build-diagnostic/v1.10.json +0 -83
  209. package/schema/published/build-diagnostic/v1.11.json +0 -83
  210. package/schema/published/build-diagnostic/v1.3.json +0 -83
  211. package/schema/published/build-diagnostic/v1.4.json +0 -83
  212. package/schema/published/build-diagnostic/v1.5.json +0 -83
  213. package/schema/published/build-diagnostic/v1.6.json +0 -83
  214. package/schema/published/build-diagnostic/v1.7.json +0 -83
  215. package/schema/published/build-diagnostic/v1.8.json +0 -83
  216. package/schema/published/build-diagnostic/v1.9.json +0 -83
  217. package/schema/published/component-manifest/v1.10.json +0 -1443
  218. package/schema/published/component-manifest/v1.11.json +0 -1443
  219. package/schema/published/component-manifest/v1.3.json +0 -1411
  220. package/schema/published/component-manifest/v1.4.json +0 -1419
  221. package/schema/published/component-manifest/v1.5.json +0 -1437
  222. package/schema/published/component-manifest/v1.6.json +0 -1437
  223. package/schema/published/component-manifest/v1.7.json +0 -1437
  224. package/schema/published/component-manifest/v1.8.json +0 -1437
  225. package/schema/published/component-manifest/v1.9.json +0 -1437
  226. package/schema/published/data-api/v1.10.json +0 -282
  227. package/schema/published/data-api/v1.11.json +0 -282
  228. package/schema/published/data-api/v1.3.json +0 -281
  229. package/schema/published/data-api/v1.4.json +0 -281
  230. package/schema/published/data-api/v1.5.json +0 -281
  231. package/schema/published/data-api/v1.6.json +0 -281
  232. package/schema/published/data-api/v1.7.json +0 -281
  233. package/schema/published/data-api/v1.8.json +0 -282
  234. package/schema/published/data-api/v1.9.json +0 -282
  235. package/schema/published/library-manifest/v1.10.json +0 -68
  236. package/schema/published/library-manifest/v1.11.json +0 -68
  237. package/schema/published/library-manifest/v1.5.json +0 -68
  238. package/schema/published/library-manifest/v1.6.json +0 -68
  239. package/schema/published/library-manifest/v1.7.json +0 -68
  240. package/schema/published/library-manifest/v1.8.json +0 -68
  241. package/schema/published/library-manifest/v1.9.json +0 -68
  242. package/schema/published/taggor-config/v1.10.json +0 -56
  243. package/schema/published/taggor-config/v1.11.json +0 -56
  244. package/schema/published/taggor-config/v1.5.json +0 -56
  245. package/schema/published/taggor-config/v1.6.json +0 -56
  246. package/schema/published/taggor-config/v1.7.json +0 -56
  247. package/schema/published/taggor-config/v1.8.json +0 -56
  248. package/schema/published/taggor-config/v1.9.json +0 -56
  249. /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
  250. /package/{schema → dist/schema}/data-api.v1.json +0 -0
  251. /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
  252. /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
@@ -32,7 +32,7 @@ export declare function isAllowedUrl(text: unknown, protocols: readonly UrlProto
32
32
  /**
33
33
  * `isAllowedUrl(text, WEB_URL_PROTOCOLS)` without the `mailto:` rule, which it can never need: the
34
34
  * `url` string format of value schemas uses it, so a bundle that only checks values (the SDK's
35
- * `track`, TAG-203) leaves the `mailto:` code out (size budget of TAG-202, TAG-303).
35
+ * `track`) leaves the `mailto:` code out (size budget).
36
36
  *
37
37
  * Inputs: any value. Output: `true` only for an `https://` or `http://` URL that `isAllowedUrl`
38
38
  * accepts with those schemes. Errors: none. Side effects: none.
package/dist/url-value.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * URL values of component contract v1 without Zod (TAG-201, made Zod-free and stricter by TAG-205):
2
+ * URL values of component contract v1 without Zod (made Zod-free and stricter):
3
3
  * the scheme allowlist, the text rule and `isAllowedUrl`, shared by `url` props (default, attribute
4
4
  * and property) and by the `url` string format of value schemas.
5
5
  *
@@ -10,15 +10,15 @@
10
10
  * `JaVaScRiPt:` and scheme-relative `//host` are impossible. The WHATWG URL parser then confirms the
11
11
  * text is a URL and that its scheme is the one the text starts with.
12
12
  *
13
- * TAG-303 (security review of TAG-205) closed two ways a URL could say something other than what
14
- * a reader sees: `http`/`https` refuse userinfo (`https://good.com@evil.com` goes to `evil.com`),
13
+ * Two ways a URL could say something other than what
14
+ * a reader sees are closed: `http`/`https` refuse userinfo (`https://good.com@evil.com` goes to `evil.com`),
15
15
  * and `mailto:` takes exactly one address (no `,` list, no percent-encoding) with only the
16
16
  * `subject` and `body` fields, so `cc`, `bcc`, `to` and any other header cannot add recipients;
17
17
  * the whole text is checked (no `#`, one `?`, no `;` in values, encoded line breaks only in
18
18
  * `body`), because the whole text is what reaches `href`.
19
19
  * A scheme a declaration lists but `URL_PROTOCOLS` does not know (a newer contract, a hand-made
20
20
  * manifest) is denied, never turned into a pattern.
21
- * TAG-238: the length cap is the plain `URL_MAX_LENGTH`, so a component bundle does not carry the
21
+ * The length cap is the plain `URL_MAX_LENGTH`, so a component bundle does not carry the
22
22
  * whole `MANIFEST_LIMITS` object for it.
23
23
  */
24
24
  import { URL_MAX_LENGTH } from "./limits.js";
@@ -78,7 +78,7 @@ function isMailtoField(field) {
78
78
  }
79
79
  /**
80
80
  * `mailto:` text after the scheme, all of it (the whole text reaches `href`, so nothing may hide
81
- * after a `#` or a second `?`; security review of TAG-303): one address that `EMAIL_PATTERN`
81
+ * after a `#` or a second `?`): one address that `EMAIL_PATTERN`
82
82
  * accepts as written (no comma list, no percent-encoded `@` or `,`), then optionally one `?` with
83
83
  * `subject`/`body` fields only. No `#` at all. Field names are compared as written,
84
84
  * case-insensitively (an encoded name is refused); no value holds `;`, and only `body` may hold
@@ -135,7 +135,7 @@ export function isAllowedUrl(text, protocols) {
135
135
  /**
136
136
  * `isAllowedUrl(text, WEB_URL_PROTOCOLS)` without the `mailto:` rule, which it can never need: the
137
137
  * `url` string format of value schemas uses it, so a bundle that only checks values (the SDK's
138
- * `track`, TAG-203) leaves the `mailto:` code out (size budget of TAG-202, TAG-303).
138
+ * `track`) leaves the `mailto:` code out (size budget).
139
139
  *
140
140
  * Inputs: any value. Output: `true` only for an `https://` or `http://` URL that `isAllowedUrl`
141
141
  * accepts with those schemes. Errors: none. Side effects: none.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The anomaly guard of the render count (TAG-1730, decisions 64 and 69): the pure rule that turns
2
+ * The anomaly guard of the render count the pure rule that turns
3
3
  * what the loader hit points say into the count a rendering cut may be judged on.
4
4
  *
5
5
  * Why it exists: the site key and its allowed domains are public, so anyone can forge loader hits
@@ -7,49 +7,49 @@
7
7
  * cut of someone's components must never rest on it. The guarded count differs from the raw one in
8
8
  * three ways, all of which can only LOWER it (every doubt falls on the customer's side):
9
9
  * 1. only human-class traffic counts (the readers filter it; bots are kept for audit);
10
- * 2. only deliveries that name their network count at all (TAG-1823: the network is written in a
10
+ * 2. only deliveries that name their network count at all (the network is written in a
11
11
  * point of its own, without the visitor hash, so a request under a honored `Sec-GPC: 1` or
12
12
  * without a known ASN adds nothing here);
13
13
  * 3. no network source (an ASN) may contribute more than `sourceShare` of the cut line, so one
14
14
  * network alone can never move a workspace over it: more than `1 / sourceShare` (ten) networks
15
15
  * are needed.
16
- * What it does NOT stop: a botnet spread over many networks that stays under the spike rule. That is
16
+ * What it does NOT stop: a botnet spread over many networks that stays under the surge rule. That is
17
17
  * why the cut also needs the open-flag exclusion (`suspectSiteKeys`: an open flag only holds the Free cut, it never holds a bill) and the
18
- * owner's approval of the cut line (decision 69); the cut flag stays off until then.
18
+ * owner's approval of the cut line; the cut flag stays off until then.
19
19
  *
20
- * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN (TAG-1823).
20
+ * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN.
21
21
  */
22
22
  /**
23
23
  * The provisional numbers of the guard. The cut line it judges a count against is the caller's
24
- * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`; decision 84 removed the 3x of decision 69).
24
+ * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`).
25
25
  */
26
26
  export declare const USAGE_GUARD: Readonly<{
27
27
  /**
28
- * The most one source may add, as a share of the cut line. 0.10 since TAG-1823 (it was 0.25): the guard
28
+ * The most one source may add, as a share of the cut line. 0.10 (it was 0.25): the guard
29
29
  * counts deliveries per network now, so one machine of one network reaches the cap; at 0.25 two VPS networks
30
30
  * took the count to 1.5 times the allowance and could trigger the notice of an honest customer. At 0.10 a
31
31
  * network adds at most 0.3 times the allowance and more than ten are needed to cross the line. A flood
32
- * from many networks can still raise a notice; the cut needs the flag and a person (decision 69).
32
+ * from many networks can still raise a notice; the cut needs the flag and a person.
33
33
  */
34
34
  sourceShare: 0.1;
35
35
  /**
36
- * The share when the line is the allowance itself (TAG-1628, decision 84: the Free plan is cut at 1x, no
36
+ * The share when the line is the allowance itself (the Free plan is cut at 1x, no
37
37
  * grace). Cutting at 1x instead of 3x makes a forged flood three times cheaper, so each network adds half
38
38
  * as much (5% of the line): more than TWENTY networks are needed to cross it (exactly twenty reach the line, and the cut reads
39
- * the count ABOVE it, TAG-1628 review L1), where the 3x line needed
39
+ * the count ABOVE it), where the 3x line needed
40
40
  * more than ten at 30% of an allowance each. The cut still needs the open-flag exclusion and the 100% notice.
41
41
  */
42
42
  freeSourceShare: 0.05;
43
43
  }>;
44
44
  /**
45
- * The spike rule of a site's stored submissions (TAG-1629): the daily signal that feeds `suspectSites`: it
45
+ * The surge rule of a site's stored submissions: the daily signal that feeds `suspectSites`: it
46
46
  * protects the Free cut by count (review B2) and triggers the customer's unusual-traffic e-mail. It never
47
- * holds or changes a bill (decision 84 amendment: a customer pays what was used). A
47
+ * holds or changes a bill (a customer pays what was used). A
48
48
  * stored submission keeps no network (visitor privacy), so the guard of the renders (per network) is
49
49
  * not possible; the signal is the SITE's own daily rate against its own baseline and an absolute floor,
50
50
  * the same shape as `VIEW_SPIKE_RULE` (see `detectViewSpikes`, which judges both). A day with more than
51
- * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a spike.
52
- * PROVISIONAL, owner-confirmable. What it does not catch: steady forging under the floor (bounded by
51
+ * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a surge.
52
+ * Provisional. What it does not catch: steady forging under the floor (bounded by
53
53
  * the floor times the days, per site) and a slow ramp.
54
54
  */
55
55
  export declare const SUBMISSION_SPIKE_RULE: Readonly<{
@@ -59,7 +59,7 @@ export declare const SUBMISSION_SPIKE_RULE: Readonly<{
59
59
  minCount: 50;
60
60
  }>;
61
61
  /**
62
- * The submissions spike rule of a plan.
62
+ * The submissions surge rule of a plan.
63
63
  * Inputs: the plan's submissions per month. Output: the rule with the plan's floor: the lower of
64
64
  * `SUBMISSION_SPIKE_RULE.minCount` and a thirtieth of the month (at least 1), so a Free site (250 a
65
65
  * month) is judged at 8 a day. Shaped like `ViewSpikeRule` so `detectViewSpikes` reads it. Pure.
@@ -71,7 +71,7 @@ export declare function submissionSpikeRule(submissionsPerMonth: number): {
71
71
  };
72
72
  /**
73
73
  * The human deliveries one network brought to one site on one UTC day, counted in the network's own
74
- * point (TAG-1823: never next to a visitor hash, so a distinct count per network is not possible;
74
+ * point (never next to a visitor hash, so a distinct count per network is not possible;
75
75
  * the per-source cap does the work a distinct count did: a loop from one place stays at its cap).
76
76
  */
77
77
  export interface SourceDay {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The anomaly guard of the render count (TAG-1730, decisions 64 and 69): the pure rule that turns
2
+ * The anomaly guard of the render count the pure rule that turns
3
3
  * what the loader hit points say into the count a rendering cut may be judged on.
4
4
  *
5
5
  * Why it exists: the site key and its allowed domains are public, so anyone can forge loader hits
@@ -7,49 +7,49 @@
7
7
  * cut of someone's components must never rest on it. The guarded count differs from the raw one in
8
8
  * three ways, all of which can only LOWER it (every doubt falls on the customer's side):
9
9
  * 1. only human-class traffic counts (the readers filter it; bots are kept for audit);
10
- * 2. only deliveries that name their network count at all (TAG-1823: the network is written in a
10
+ * 2. only deliveries that name their network count at all (the network is written in a
11
11
  * point of its own, without the visitor hash, so a request under a honored `Sec-GPC: 1` or
12
12
  * without a known ASN adds nothing here);
13
13
  * 3. no network source (an ASN) may contribute more than `sourceShare` of the cut line, so one
14
14
  * network alone can never move a workspace over it: more than `1 / sourceShare` (ten) networks
15
15
  * are needed.
16
- * What it does NOT stop: a botnet spread over many networks that stays under the spike rule. That is
16
+ * What it does NOT stop: a botnet spread over many networks that stays under the surge rule. That is
17
17
  * why the cut also needs the open-flag exclusion (`suspectSiteKeys`: an open flag only holds the Free cut, it never holds a bill) and the
18
- * owner's approval of the cut line (decision 69); the cut flag stays off until then.
18
+ * owner's approval of the cut line; the cut flag stays off until then.
19
19
  *
20
- * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN (TAG-1823).
20
+ * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN.
21
21
  */
22
22
  /**
23
23
  * The provisional numbers of the guard. The cut line it judges a count against is the caller's
24
- * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`; decision 84 removed the 3x of decision 69).
24
+ * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`).
25
25
  */
26
26
  export const USAGE_GUARD = Object.freeze({
27
27
  /**
28
- * The most one source may add, as a share of the cut line. 0.10 since TAG-1823 (it was 0.25): the guard
28
+ * The most one source may add, as a share of the cut line. 0.10 (it was 0.25): the guard
29
29
  * counts deliveries per network now, so one machine of one network reaches the cap; at 0.25 two VPS networks
30
30
  * took the count to 1.5 times the allowance and could trigger the notice of an honest customer. At 0.10 a
31
31
  * network adds at most 0.3 times the allowance and more than ten are needed to cross the line. A flood
32
- * from many networks can still raise a notice; the cut needs the flag and a person (decision 69).
32
+ * from many networks can still raise a notice; the cut needs the flag and a person.
33
33
  */
34
34
  sourceShare: 0.1,
35
35
  /**
36
- * The share when the line is the allowance itself (TAG-1628, decision 84: the Free plan is cut at 1x, no
36
+ * The share when the line is the allowance itself (the Free plan is cut at 1x, no
37
37
  * grace). Cutting at 1x instead of 3x makes a forged flood three times cheaper, so each network adds half
38
38
  * as much (5% of the line): more than TWENTY networks are needed to cross it (exactly twenty reach the line, and the cut reads
39
- * the count ABOVE it, TAG-1628 review L1), where the 3x line needed
39
+ * the count ABOVE it), where the 3x line needed
40
40
  * more than ten at 30% of an allowance each. The cut still needs the open-flag exclusion and the 100% notice.
41
41
  */
42
42
  freeSourceShare: 0.05,
43
43
  });
44
44
  /**
45
- * The spike rule of a site's stored submissions (TAG-1629): the daily signal that feeds `suspectSites`: it
45
+ * The surge rule of a site's stored submissions: the daily signal that feeds `suspectSites`: it
46
46
  * protects the Free cut by count (review B2) and triggers the customer's unusual-traffic e-mail. It never
47
- * holds or changes a bill (decision 84 amendment: a customer pays what was used). A
47
+ * holds or changes a bill (a customer pays what was used). A
48
48
  * stored submission keeps no network (visitor privacy), so the guard of the renders (per network) is
49
49
  * not possible; the signal is the SITE's own daily rate against its own baseline and an absolute floor,
50
50
  * the same shape as `VIEW_SPIKE_RULE` (see `detectViewSpikes`, which judges both). A day with more than
51
- * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a spike.
52
- * PROVISIONAL, owner-confirmable. What it does not catch: steady forging under the floor (bounded by
51
+ * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a surge.
52
+ * Provisional. What it does not catch: steady forging under the floor (bounded by
53
53
  * the floor times the days, per site) and a slow ramp.
54
54
  */
55
55
  export const SUBMISSION_SPIKE_RULE = Object.freeze({
@@ -59,7 +59,7 @@ export const SUBMISSION_SPIKE_RULE = Object.freeze({
59
59
  minCount: 50,
60
60
  });
61
61
  /**
62
- * The submissions spike rule of a plan.
62
+ * The submissions surge rule of a plan.
63
63
  * Inputs: the plan's submissions per month. Output: the rule with the plan's floor: the lower of
64
64
  * `SUBMISSION_SPIKE_RULE.minCount` and a thirtieth of the month (at least 1), so a Free site (250 a
65
65
  * month) is judged at 8 a day. Shaped like `ViewSpikeRule` so `detectViewSpikes` reads it. Pure.
@@ -1,15 +1,15 @@
1
1
  /**
2
- * The `quota:<workspaceId>` mirror (TAG-712): the workspace's usage as the API's hourly job last
2
+ * The `quota:<workspaceId>` mirror: the workspace's usage as the API's hourly job last
3
3
  * measured it, in the Workers KV namespace the edge already reads, so a consumer on the request
4
- * path (the edge; TAG-1607 enforces from it) never queries Postgres or the Analytics Engine.
4
+ * path (the edge; enforces from it) never queries Postgres or the Analytics Engine.
5
5
  * Written by apps/api (application/usage/usage-mirror.ts), read by whoever enforces. Zod-free.
6
6
  *
7
7
  * It is approximate and about an hour old or more by design. `enforceableRenders` leaves out the
8
- * sites whose render count looks forged (`suspectSiteKeys`: an open spike flag, or one a person
8
+ * sites whose render count looks forged (`suspectSiteKeys`: an open surge flag, or one a person
9
9
  * closed as forged): a reader must act on it, never on `renders.used`. The guard catches sudden
10
- * spikes only; a slow ramp or steady forging under the plan's daily floor passes it (bounded by
10
+ * surges only; a slow ramp or steady forging under the plan's daily floor passes it (bounded by
11
11
  * the plan, `spikeMinViews`). So a reader must never cut or degrade a workspace on renders alone:
12
- * a person looks first (TAG-1607). Security review of TAG-801.
12
+ * a person looks first.
13
13
  */
14
14
  import type { UsageLevel } from "./plan-usage.js";
15
15
  /** Layout version; a reader of a newer one treats the mirror as absent. */
@@ -23,7 +23,7 @@ export declare function accepted<T>(value: T): ValueOutcome<T>;
23
23
  export declare function refused(problem: ValueProblem): ValueOutcome<never>;
24
24
  /**
25
25
  * Length of a string in Unicode code points, the one unit of every string value limit in the
26
- * contract (TAG-224, `SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
26
+ * contract (`SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
27
27
  * and a lone surrogate as one, exactly as Zod's string `min`/`max` and JSON Schema's
28
28
  * `minLength`/`maxLength` (Ajv with its default `unicode: true`) count.
29
29
  *
@@ -45,17 +45,17 @@ export declare const FIELD_NAME_SHAPE: RegExp;
45
45
  * with a new array or object for containers (undeclared object keys dropped, like Zod's "strip"),
46
46
  * or `{ ok: false, problem }` for the first problem (`not-allowed` for a schema `type` this release
47
47
  * does not know, or a field name outside `FIELD_NAME_SHAPE` in a schema that was never
48
- * validated). String lengths are in code points (`codePointLength`, TAG-224), as in Zod and JSON
48
+ * validated). String lengths are in code points (`codePointLength`), as in Zod and JSON
49
49
  * Schema. Strings without `maxLength` are capped at `MANIFEST_LIMITS.stringMaxLength`, arrays
50
50
  * without `maxItems` at `arrayMaxItems`. Arrays are read by index from `0` to their `length`,
51
51
  * which is read once and checked against `maxItems` first, never through `Symbol.iterator`, so a
52
52
  * live array (own iterator, Proxy) cannot pass more items than it declares. Only own fields count:
53
- * a declared field the value merely inherits is absent (TAG-304 parity test). Fields are defined
54
- * by `Object.fromEntries`, never assigned (TAG-304); items are appended with `push`, which only a
53
+ * a declared field the value merely inherits is absent (parity test). Fields are defined
54
+ * by `Object.fromEntries`, never assigned; items are appended with `push`, which only a
55
55
  * page setter on a numeric key of `Array.prototype`/`Object.prototype` could intercept (that page
56
56
  * breaks every array, its own included). Recursion follows the schema, which nests at most
57
57
  * `valueSchemaDepth` levels once validated. Each call has a budget of
58
- * `MANIFEST_LIMITS.maxJsonLength` work units (TAG-226): every visited value costs 1, a string
58
+ * `MANIFEST_LIMITS.maxJsonLength` work units: every visited value costs 1, a string
59
59
  * also its UTF-16 length and an object also the number of fields its schema declares (each is
60
60
  * read, present or not); past the budget the call stops with `too-large`. A value costs at most
61
61
  * its JSON text length plus one per declared field it leaves out (each value takes at least one
@@ -80,7 +80,7 @@ export declare function checkValue(schema: ValueSchema, value: unknown): ValueOu
80
80
  *
81
81
  * Inputs: the text, its maximum length in UTF-16 code units (a bound on the text itself, not a
82
82
  * value limit, so not in code points) and the maximum nesting of arrays and
83
- * objects. Output: the parsed value (not yet checked against any schema: pass it to `checkValue`),
83
+ * objects. Output: the parsed value (still unchecked against any schema: pass it to `checkValue`),
84
84
  * or `too-long`, `too-deep` or `malformed`. Errors: none (parser errors become `malformed`).
85
85
  * Side effects: none.
86
86
  */
@@ -1,28 +1,28 @@
1
1
  /**
2
- * Zod-free value checks of component contract v1 (TAG-205): `checkValue` (a declared value schema
2
+ * Zod-free value checks of component contract v1: `checkValue` (a declared value schema
3
3
  * applied to a JS value) and `parseBoundedJson` (JSON text with length and nesting limits checked
4
4
  * before `JSON.parse`). The string format patterns live in `value-patterns.ts`.
5
5
  *
6
6
  * The runtime cannot import Zod (its bundle budget), yet it must validate `array` and
7
- * `object` props that come from attributes, properties or `<script type="application/json">`
8
- * (TAG-303, TAG-304). `checkValue` is that validator. It interprets the declared data with a
7
+ * `object` props that come from attributes, properties or `<script type="application/json">`;
8
+ * `checkValue` is that validator. It interprets the declared data with a
9
9
  * `switch`, never generates code, and builds a fresh value with only the declared fields, so
10
10
  * undeclared keys (including an own `__proto__` made by `JSON.parse`) never reach the component.
11
11
  * `value-check.test.ts` proves it agrees with the Zod `valueValidator(schema, "strip")` on
12
12
  * thousands of generated schemas and values, and the format patterns are the ones Zod uses.
13
- * TAG-223 made it safe on live values and unvalidated schemas: arrays are read by index up to a
13
+ * It is safe on live values and unvalidated schemas: arrays are read by index up to a
14
14
  * `length` read once, and a field name outside `FIELD_NAME_SHAPE` (`__proto__`) is refused.
15
- * TAG-224 made string lengths count code points, the unit of Zod and JSON Schema.
16
- * TAG-304 builds objects with `Object.fromEntries`, which defines own data properties
15
+ * String lengths count code points, the unit of Zod and JSON Schema.
16
+ * It builds objects with `Object.fromEntries`, which defines own data properties
17
17
  * (CreateDataProperty, as `Object.defineProperty` does) instead of assigning: a page that froze
18
18
  * `Object.prototype` (SES lockdown) or put a setter on `Object.prototype.<field>` can neither make
19
19
  * the write throw nor swallow it. Recursion follows the schema: a cyclic schema from component code
20
20
  * (with a cyclic value) recurses until the engine's stack limit, and the `RangeError` is caught by
21
21
  * the callers that pass unvalidated schemas (`propertyToValue`, the runtime's `emit`); a depth
22
- * parameter would cost the SDK bundle about 29 B gz (TAG-304).
23
- * TAG-226 gave each call a budget of visited values and string length (`too-large`), so a live
22
+ * parameter would cost the SDK bundle about 29 B gz.
23
+ * Each call has a budget of visited values and string length (`too-large`), so a live
24
24
  * value with shared references cannot make it walk and copy millions of nodes.
25
- * TAG-238 reads its limits as the plain constants of `limits.ts`, not through `MANIFEST_LIMITS`, so a
25
+ * It reads its limits as the plain constants of `limits.ts`, not through `MANIFEST_LIMITS`, so a
26
26
  * component bundle that checks values does not carry the whole manifest limits object.
27
27
  */
28
28
  import { ARRAY_MAX_ITEMS, MAX_JSON_LENGTH, STRING_MAX_LENGTH } from "./limits.js";
@@ -65,7 +65,7 @@ function matchesFormat(text, format) {
65
65
  }
66
66
  /**
67
67
  * Length of a string in Unicode code points, the one unit of every string value limit in the
68
- * contract (TAG-224, `SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
68
+ * contract (`SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
69
69
  * and a lone surrogate as one, exactly as Zod's string `min`/`max` and JSON Schema's
70
70
  * `minLength`/`maxLength` (Ajv with its default `unicode: true`) count.
71
71
  *
@@ -74,7 +74,7 @@ function matchesFormat(text, format) {
74
74
  */
75
75
  export function codePointLength(text) {
76
76
  // Each well-formed pair becomes one unit; lone surrogates stay one unit each. One native pass,
77
- // the smallest code for the size budget (decision 29) and fast on long BMP text.
77
+ // the smallest code for the size budget and fast on long BMP text.
78
78
  return text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length;
79
79
  }
80
80
  function checkString(schema, value) {
@@ -118,17 +118,17 @@ function isRecord(value) {
118
118
  * with a new array or object for containers (undeclared object keys dropped, like Zod's "strip"),
119
119
  * or `{ ok: false, problem }` for the first problem (`not-allowed` for a schema `type` this release
120
120
  * does not know, or a field name outside `FIELD_NAME_SHAPE` in a schema that was never
121
- * validated). String lengths are in code points (`codePointLength`, TAG-224), as in Zod and JSON
121
+ * validated). String lengths are in code points (`codePointLength`), as in Zod and JSON
122
122
  * Schema. Strings without `maxLength` are capped at `MANIFEST_LIMITS.stringMaxLength`, arrays
123
123
  * without `maxItems` at `arrayMaxItems`. Arrays are read by index from `0` to their `length`,
124
124
  * which is read once and checked against `maxItems` first, never through `Symbol.iterator`, so a
125
125
  * live array (own iterator, Proxy) cannot pass more items than it declares. Only own fields count:
126
- * a declared field the value merely inherits is absent (TAG-304 parity test). Fields are defined
127
- * by `Object.fromEntries`, never assigned (TAG-304); items are appended with `push`, which only a
126
+ * a declared field the value merely inherits is absent (parity test). Fields are defined
127
+ * by `Object.fromEntries`, never assigned; items are appended with `push`, which only a
128
128
  * page setter on a numeric key of `Array.prototype`/`Object.prototype` could intercept (that page
129
129
  * breaks every array, its own included). Recursion follows the schema, which nests at most
130
130
  * `valueSchemaDepth` levels once validated. Each call has a budget of
131
- * `MANIFEST_LIMITS.maxJsonLength` work units (TAG-226): every visited value costs 1, a string
131
+ * `MANIFEST_LIMITS.maxJsonLength` work units: every visited value costs 1, a string
132
132
  * also its UTF-16 length and an object also the number of fields its schema declares (each is
133
133
  * read, present or not); past the budget the call stops with `too-large`. A value costs at most
134
134
  * its JSON text length plus one per declared field it leaves out (each value takes at least one
@@ -147,7 +147,7 @@ function isRecord(value) {
147
147
  * and bounded by the budget.
148
148
  */
149
149
  export function checkValue(schema, value) {
150
- // One budget per call (TAG-226), local to it so a nested call (a page getter that sets another
150
+ // One budget per call, local to it so a nested call (a page getter that sets another
151
151
  // prop) neither resets nor spends it. A string is charged before it is checked: a text past
152
152
  // the budget is refused without being counted, and one within it costs no more than it pays.
153
153
  let left = MAX_JSON_LENGTH;
@@ -170,7 +170,7 @@ export function checkValue(schema, value) {
170
170
  case "array": {
171
171
  if (!Array.isArray(value))
172
172
  return refused("wrong-type");
173
- // Read once and bounded before the loop, then items by index (TAG-223): an own
173
+ // Read once and bounded before the loop, then items by index: an own
174
174
  // `Symbol.iterator` or an array Proxy could otherwise yield more items than the `length`
175
175
  // checked here, or never end. A Proxy's `length` may be anything, hence the type check and
176
176
  // the negated comparisons (NaN is refused as too long).
@@ -194,7 +194,7 @@ export function checkValue(schema, value) {
194
194
  if (!isRecord(value))
195
195
  return refused("wrong-type");
196
196
  const required = new Set(schema.required);
197
- // Collected and defined at the end (TAG-304): `result[name] = …` would throw on a frozen
197
+ // Collected and defined at the end: `result[name] = …` would throw on a frozen
198
198
  // `Object.prototype.toString` and feed a page setter on `Object.prototype[name]`.
199
199
  const entries = [];
200
200
  const declared = Object.entries(schema.fields);
@@ -204,7 +204,7 @@ export function checkValue(schema, value) {
204
204
  return refused("too-large");
205
205
  for (const [name, field] of declared) {
206
206
  // A validated schema always passes; the runtime also checks against the definition's
207
- // own declarations (component code, TAG-223), where a field named `__proto__` must never
207
+ // own declarations (component code), where a field named `__proto__` must never
208
208
  // reach the component. The result is an ordinary object with only declared own keys.
209
209
  if (!FIELD_NAME_SHAPE.test(name))
210
210
  return refused("not-allowed");
@@ -260,7 +260,7 @@ function nestingExceeds(text, limit) {
260
260
  *
261
261
  * Inputs: the text, its maximum length in UTF-16 code units (a bound on the text itself, not a
262
262
  * value limit, so not in code points) and the maximum nesting of arrays and
263
- * objects. Output: the parsed value (not yet checked against any schema: pass it to `checkValue`),
263
+ * objects. Output: the parsed value (still unchecked against any schema: pass it to `checkValue`),
264
264
  * or `too-long`, `too-deep` or `malformed`. Errors: none (parser errors become `malformed`).
265
265
  * Side effects: none.
266
266
  */
@@ -1 +1 @@
1
- {"version":3,"file":"value-check.js","sourceRoot":"","sources":["../src/value-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAqB7B;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAI,KAAQ;IAClC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAqB;IAC3C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC;AAKD,SAAS,aAAa,CAAC,IAAY,EAAE,MAA8B;IACjE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd,KAAK,OAAO;YACV,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,KAAK,KAAK;YACR,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;QAC/B,KAAK,KAAK;YACR,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,KAAK,MAAM;YACT,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,KAAK,WAAW;YACd,OAAO,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C;YACE,wEAAwE;YACxE,OAAO,KAAK,CAAC;IACjB,CA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;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,SAAiB,EACjB,QAAgB;IAEhB,IAAI,IAAI,CAAC,MAAM,GAAG,SAAS;QAAE,OAAO,OAAO,CAAC,UAAU,CAAC,CAAC;IACxD,IAAI,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC;QAAE,OAAO,OAAO,CAAC,UAAU,CAAC,CAAC;IAC/D,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * String format patterns of component contract v1 (TAG-205): ISO date, ISO date-time, e-mail and
2
+ * String format patterns of component contract v1: ISO date, ISO date-time, e-mail and
3
3
  * phone. Their own module so the Zod schemas (`value-schema.ts`, `props.ts`) and the Zod-free checks
4
- * (`value-check.ts`) share them without importing each other (the import cycle TAG-008 found).
4
+ * (`value-check.ts`) share them without importing each other (which avoids an import cycle).
5
5
  * `value-check.test.ts` proves they are the patterns Zod uses.
6
6
  */
7
7
  const DATE_SOURCE = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Declarative value schemas of component contract v1 (TAG-201).
2
+ * Declarative value schemas of component contract v1.
3
3
  *
4
4
  * A value schema describes a JSON value with plain data (`{ type: "number", min: 0 }`), never with
5
5
  * code, regular expressions or expressions (golden rule 5). It types the payload of
@@ -9,11 +9,11 @@
9
9
  *
10
10
  * `valueValidator` turns a declared value schema into a Zod validator by interpretation of the
11
11
  * data (a `switch` over `type`), so the edge, the API and the browser validate the same way.
12
- * Its Zod-free twin for the runtime is `checkValue` (value-check.ts, TAG-205); a test keeps the two
12
+ * Its Zod-free twin for the runtime is `checkValue` (value-check.ts); a test keeps the two
13
13
  * in agreement.
14
14
  */
15
15
  import * as z from "zod";
16
- /** String formats the platform checks (email, url and tel come from TAG-703). */
16
+ /** String formats the platform checks (email, url and tel come). */
17
17
  export declare const STRING_FORMATS: readonly ["email", "url", "tel", "date", "date-time"];
18
18
  /** Enum value: printable text, bounded. */
19
19
  export declare const enumValueSchema: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"value-schema.d.ts","sourceRoot":"","sources":["../src/value-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAQzB,iFAAiF;AACjF,eAAO,MAAM,cAAc,uDAAuE,CAAC;AAKnG,2CAA2C;AAC3C,eAAO,MAAM,eAAe,aAOA,CAAC;AAE7B,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,yBAK5B,CAAC;AAMF,kCAAkC;AAClC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;kBAeM,CAAC;AAErC,kCAAkC;AAClC,eAAO,MAAM,iBAAiB;;;;;;kBAYM,CAAC;AAErC,mCAAmC;AACnC,eAAO,MAAM,kBAAkB;;;kBAKM,CAAC;AAEtC,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB;;;;kBAME,CAAC;AASnC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;;;;;;mBAgB7D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;;;;;mBAiB9D;AAUD,wEAAwE;AACxE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;4BAIM,CA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KG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAItB,CAAC;AAEH,2CAA2C;AAC3C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,sCAAsC;AACtC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,iFAAiF;AACjF,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AA0B7C;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,OAAO,CA6BvF"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Declarative value schemas of component contract v1 (TAG-201).
2
+ * Declarative value schemas of component contract v1.
3
3
  *
4
4
  * A value schema describes a JSON value with plain data (`{ type: "number", min: 0 }`), never with
5
5
  * code, regular expressions or expressions (golden rule 5). It types the payload of
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * `valueValidator` turns a declared value schema into a Zod validator by interpretation of the
11
11
  * data (a `switch` over `type`), so the edge, the API and the browser validate the same way.
12
- * Its Zod-free twin for the runtime is `checkValue` (value-check.ts, TAG-205); a test keeps the two
12
+ * Its Zod-free twin for the runtime is `checkValue` (value-check.ts); a test keeps the two
13
13
  * in agreement.
14
14
  */
15
15
  import * as z from "zod";
@@ -18,7 +18,7 @@ import { MANIFEST_LIMITS } from "./limits.js";
18
18
  import { fieldNameSchema } from "./names.js";
19
19
  import { isAllowedWebUrl } from "./url-value.js";
20
20
  import { TEL_PATTERN } from "./value-patterns.js";
21
- /** String formats the platform checks (email, url and tel come from TAG-703). */
21
+ /** String formats the platform checks (email, url and tel come). */
22
22
  export const STRING_FORMATS = Object.freeze(["email", "url", "tel", "date", "date-time"]);
23
23
  const lengthSchema = z.int().min(0).max(MANIFEST_LIMITS.stringMaxLength);
24
24
  const itemsCountSchema = z.int().min(0).max(MANIFEST_LIMITS.arrayMaxItems);
@@ -169,7 +169,7 @@ function stringValidator(schema) {
169
169
  case "email":
170
170
  return z.email();
171
171
  case "url":
172
- // Same rule as a `url` prop with http and https (TAG-205): printable ASCII, no trimming.
172
+ // Same rule as a `url` prop with http and https: printable ASCII, no trimming.
173
173
  return z.string().refine((text) => isAllowedWebUrl(text), {
174
174
  // value-validator: checks a value, not the manifest
175
175
  error: "Invalid URL",
@@ -1 +1 @@
1
- {"version":3,"file":"value-schema.js","sourceRoot":"","sources":["../src/value-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,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