@taggor/contract 0.3.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 (255) 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 +17 -16
  20. package/dist/contract-version.d.ts.map +1 -1
  21. package/dist/contract-version.js +17 -16
  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 +106 -7
  43. package/dist/error-catalog.d.ts.map +1 -1
  44. package/dist/error-catalog.js +143 -48
  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 +4 -4
  57. package/dist/human-actions.d.ts.map +1 -1
  58. package/dist/human-actions.js +21 -0
  59. package/dist/human-actions.js.map +1 -1
  60. package/dist/index.d.ts +5 -4
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +5 -4
  63. package/dist/index.js.map +1 -1
  64. package/dist/json-schema.d.ts +15 -16
  65. package/dist/json-schema.d.ts.map +1 -1
  66. package/dist/json-schema.js +22 -23
  67. package/dist/json-schema.js.map +1 -1
  68. package/dist/key-checksum.d.ts +1 -1
  69. package/dist/key-checksum.js +1 -1
  70. package/dist/libraries.d.ts +4 -4
  71. package/dist/libraries.d.ts.map +1 -1
  72. package/dist/libraries.js +4 -4
  73. package/dist/libraries.js.map +1 -1
  74. package/dist/limit-catalog.d.ts +17 -17
  75. package/dist/limit-catalog.d.ts.map +1 -1
  76. package/dist/limit-catalog.js +30 -30
  77. package/dist/limit-catalog.js.map +1 -1
  78. package/dist/limits.d.ts +15 -15
  79. package/dist/limits.d.ts.map +1 -1
  80. package/dist/limits.js +16 -16
  81. package/dist/limits.js.map +1 -1
  82. package/dist/locale-tag.d.ts +2 -2
  83. package/dist/locale-tag.js +2 -2
  84. package/dist/make-diagnostic.d.ts +2 -3
  85. package/dist/make-diagnostic.d.ts.map +1 -1
  86. package/dist/make-diagnostic.js.map +1 -1
  87. package/dist/manifest-compat-diagnostics.d.ts +1 -1
  88. package/dist/manifest-compat.js +1 -1
  89. package/dist/manifest.d.ts +22 -23
  90. package/dist/manifest.d.ts.map +1 -1
  91. package/dist/manifest.js +32 -33
  92. package/dist/manifest.js.map +1 -1
  93. package/dist/metering.d.ts +17 -18
  94. package/dist/metering.d.ts.map +1 -1
  95. package/dist/metering.js +17 -18
  96. package/dist/metering.js.map +1 -1
  97. package/dist/migrate.d.ts +1 -1
  98. package/dist/migrate.js +5 -5
  99. package/dist/migrate.js.map +1 -1
  100. package/dist/money.d.ts +2 -2
  101. package/dist/money.js +2 -2
  102. package/dist/names.d.ts +4 -4
  103. package/dist/names.js +4 -4
  104. package/dist/overage-pricing.d.ts +1 -1
  105. package/dist/overage-pricing.js +1 -1
  106. package/dist/plan-ids.d.ts +1 -1
  107. package/dist/plan-ids.js +1 -1
  108. package/dist/plan-limits.d.ts +13 -13
  109. package/dist/plan-limits.d.ts.map +1 -1
  110. package/dist/plan-limits.js +8 -8
  111. package/dist/plan-limits.js.map +1 -1
  112. package/dist/plan-pricing.d.ts +10 -12
  113. package/dist/plan-pricing.d.ts.map +1 -1
  114. package/dist/plan-pricing.js +12 -14
  115. package/dist/plan-pricing.js.map +1 -1
  116. package/dist/plan-usage.d.ts +18 -18
  117. package/dist/plan-usage.d.ts.map +1 -1
  118. package/dist/plan-usage.js +19 -20
  119. package/dist/plan-usage.js.map +1 -1
  120. package/dist/preview-token.js +2 -2
  121. package/dist/prop-names.d.ts +5 -5
  122. package/dist/prop-names.d.ts.map +1 -1
  123. package/dist/prop-names.js +10 -10
  124. package/dist/prop-names.js.map +1 -1
  125. package/dist/prop-type-docs.js +1 -1
  126. package/dist/prop-types.d.ts +6 -6
  127. package/dist/prop-types.js +17 -17
  128. package/dist/prop-types.js.map +1 -1
  129. package/dist/props.d.ts +5 -5
  130. package/dist/props.js +6 -6
  131. package/dist/props.js.map +1 -1
  132. package/dist/proto-guard.js +3 -3
  133. package/dist/proto-guard.js.map +1 -1
  134. package/dist/runtime-errors.d.ts +2 -2
  135. package/dist/runtime-errors.js +2 -2
  136. package/dist/runtime-pointers.d.ts +2 -2
  137. package/dist/runtime-pointers.js +2 -2
  138. package/{schema → dist/schema}/component-manifest.v1.json +5 -5
  139. package/dist/secret-scan.d.ts +10 -10
  140. package/dist/secret-scan.d.ts.map +1 -1
  141. package/dist/secret-scan.js +15 -16
  142. package/dist/secret-scan.js.map +1 -1
  143. package/dist/semver.d.ts +2 -2
  144. package/dist/semver.js +2 -2
  145. package/dist/server-key.js +1 -1
  146. package/dist/site-manifest-keys.d.ts +11 -11
  147. package/dist/site-manifest-keys.d.ts.map +1 -1
  148. package/dist/site-manifest-keys.js +18 -18
  149. package/dist/site-manifest-keys.js.map +1 -1
  150. package/dist/site-manifest.d.ts +2 -2
  151. package/dist/site-manifest.js +9 -9
  152. package/dist/site-manifest.js.map +1 -1
  153. package/dist/source-archive.d.ts +13 -13
  154. package/dist/source-archive.js +25 -25
  155. package/dist/source-archive.js.map +1 -1
  156. package/dist/source-package-corpus.d.ts +3 -4
  157. package/dist/source-package-corpus.d.ts.map +1 -1
  158. package/dist/source-package-corpus.js +4 -6
  159. package/dist/source-package-corpus.js.map +1 -1
  160. package/dist/source-package.d.ts +18 -17
  161. package/dist/source-package.d.ts.map +1 -1
  162. package/dist/source-package.js +16 -15
  163. package/dist/source-package.js.map +1 -1
  164. package/dist/source-secrets.js +1 -1
  165. package/dist/ssr-cap.d.ts +1 -1
  166. package/dist/ssr-cap.js +4 -4
  167. package/dist/ssr-kv.d.ts +2 -2
  168. package/dist/ssr-kv.js +2 -2
  169. package/dist/ssr-render.d.ts +2 -2
  170. package/dist/ssr-render.d.ts.map +1 -1
  171. package/dist/ssr-render.js +3 -3
  172. package/dist/ssr-render.js.map +1 -1
  173. package/dist/ssr-version-ledger.js +3 -3
  174. package/dist/style-references.d.ts +2 -3
  175. package/dist/style-references.d.ts.map +1 -1
  176. package/dist/style-references.js +10 -11
  177. package/dist/style-references.js.map +1 -1
  178. package/dist/support-contact.d.ts +11 -0
  179. package/dist/support-contact.d.ts.map +1 -0
  180. package/dist/support-contact.js +11 -0
  181. package/dist/support-contact.js.map +1 -0
  182. package/dist/tag-name.d.ts +6 -6
  183. package/dist/tag-name.d.ts.map +1 -1
  184. package/dist/tag-name.js +7 -7
  185. package/dist/tag-name.js.map +1 -1
  186. package/dist/tar-writer.js +1 -1
  187. package/dist/testing.d.ts +1 -1
  188. package/dist/testing.js +1 -1
  189. package/dist/text-codec.d.ts +2 -2
  190. package/dist/text-codec.js +2 -2
  191. package/dist/url-value.d.ts +1 -1
  192. package/dist/url-value.js +6 -6
  193. package/dist/usage-guard.d.ts +16 -16
  194. package/dist/usage-guard.js +15 -15
  195. package/dist/usage-mirror.d.ts +5 -5
  196. package/dist/value-check.d.ts +6 -6
  197. package/dist/value-check.js +21 -21
  198. package/dist/value-check.js.map +1 -1
  199. package/dist/value-patterns.js +2 -2
  200. package/dist/value-schema.d.ts +4 -4
  201. package/dist/value-schema.d.ts.map +1 -1
  202. package/dist/value-schema.js +5 -5
  203. package/dist/value-schema.js.map +1 -1
  204. package/dist/zod-free.d.ts +25 -24
  205. package/dist/zod-free.d.ts.map +1 -1
  206. package/dist/zod-free.js +26 -25
  207. package/dist/zod-free.js.map +1 -1
  208. package/package.json +9 -10
  209. package/schema/DEPLOYED +0 -12
  210. package/schema/published/SHA256SUMS +0 -41
  211. package/schema/published/build-diagnostic/v1.10.json +0 -83
  212. package/schema/published/build-diagnostic/v1.11.json +0 -83
  213. package/schema/published/build-diagnostic/v1.3.json +0 -83
  214. package/schema/published/build-diagnostic/v1.4.json +0 -83
  215. package/schema/published/build-diagnostic/v1.5.json +0 -83
  216. package/schema/published/build-diagnostic/v1.6.json +0 -83
  217. package/schema/published/build-diagnostic/v1.7.json +0 -83
  218. package/schema/published/build-diagnostic/v1.8.json +0 -83
  219. package/schema/published/build-diagnostic/v1.9.json +0 -83
  220. package/schema/published/component-manifest/v1.10.json +0 -1443
  221. package/schema/published/component-manifest/v1.11.json +0 -1443
  222. package/schema/published/component-manifest/v1.3.json +0 -1411
  223. package/schema/published/component-manifest/v1.4.json +0 -1419
  224. package/schema/published/component-manifest/v1.5.json +0 -1437
  225. package/schema/published/component-manifest/v1.6.json +0 -1437
  226. package/schema/published/component-manifest/v1.7.json +0 -1437
  227. package/schema/published/component-manifest/v1.8.json +0 -1437
  228. package/schema/published/component-manifest/v1.9.json +0 -1437
  229. package/schema/published/data-api/v1.10.json +0 -282
  230. package/schema/published/data-api/v1.11.json +0 -282
  231. package/schema/published/data-api/v1.3.json +0 -281
  232. package/schema/published/data-api/v1.4.json +0 -281
  233. package/schema/published/data-api/v1.5.json +0 -281
  234. package/schema/published/data-api/v1.6.json +0 -281
  235. package/schema/published/data-api/v1.7.json +0 -281
  236. package/schema/published/data-api/v1.8.json +0 -282
  237. package/schema/published/data-api/v1.9.json +0 -282
  238. package/schema/published/library-manifest/v1.10.json +0 -68
  239. package/schema/published/library-manifest/v1.11.json +0 -68
  240. package/schema/published/library-manifest/v1.5.json +0 -68
  241. package/schema/published/library-manifest/v1.6.json +0 -68
  242. package/schema/published/library-manifest/v1.7.json +0 -68
  243. package/schema/published/library-manifest/v1.8.json +0 -68
  244. package/schema/published/library-manifest/v1.9.json +0 -68
  245. package/schema/published/taggor-config/v1.10.json +0 -56
  246. package/schema/published/taggor-config/v1.11.json +0 -56
  247. package/schema/published/taggor-config/v1.5.json +0 -56
  248. package/schema/published/taggor-config/v1.6.json +0 -56
  249. package/schema/published/taggor-config/v1.7.json +0 -56
  250. package/schema/published/taggor-config/v1.8.json +0 -56
  251. package/schema/published/taggor-config/v1.9.json +0 -56
  252. /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
  253. /package/{schema → dist/schema}/data-api.v1.json +0 -0
  254. /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
  255. /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The limit catalog (TAG-1627, decisions 78 to 80): the ONE place that says what each limit of a
2
+ * The limit catalog: the ONE place that says what each limit of a
3
3
  * plan is. Zod-free.
4
4
  *
5
5
  * Every limit a plan carries is one entry here: its name, unit, window, where it is enforced,
@@ -8,23 +8,23 @@
8
8
  * usage view (`GET /v1/usage`, the portal, `taggor usage`) all read from it, so a limit cannot
9
9
  * exist in one of them and not in the others; `limit-catalog.test.ts` fails when it does.
10
10
  *
11
- * The rule of the owner (decision 79): one limit, one window, the advertised number. No hourly or
11
+ * The rule: one limit, one window, the advertised number. No hourly or
12
12
  * daily sublimit sits beside it. The defaults live in this file; a per-account change is an
13
- * `entitlement_adjustments` row (decision 80), never a column or a second table.
13
+ * `entitlement_adjustments` row, never a column or a second table.
14
14
  *
15
- * The numbers are PROVISIONAL until the owner approves the plans (TAG-1602), except where a
16
- * decision fixed them (77: components per site; 78: builds per week).
15
+ * The numbers are provisional until the plans are final, except where they were fixed
16
+ * (components per site, builds per week).
17
17
  *
18
- * Pay-as-you-go (TAG-1628, decision 84, ADR 0067): every spec also carries a `policy` per plan.
18
+ * Pay-as-you-go: every spec also carries a `policy` per plan.
19
19
  * Free is `hard` on every limit (the number is the cut). A paid plan is `metered` on the limits
20
20
  * whose excess is billed at the end of the month (the rate table is `OVERAGE_RATES` in
21
21
  * `plan-pricing.ts`) and `hard` on the rest (security caps, per-build technical caps, members,
22
22
  * retention). A `metered` limit never refuses or cuts a paid plan.
23
23
  *
24
- * Server-side rendering (spike, ADR 0066, no ticket) has ONE plan limit, `ssrRendersPerMonth`, a
25
- * working default the owner has NOT confirmed (it lives only in `SSR_RENDERS_PER_MONTH` below). The
26
- * distinct component versions rendered on the server per day are NOT a limit of any kind (owner,
27
- * 2026-11-13): they are the vendor's billing unit, measured as usage (`ssr-version-ledger.ts`) for
24
+ * Server-side rendering has ONE plan limit, `ssrRendersPerMonth`, a
25
+ * working default that is not final (it lives only in `SSR_RENDERS_PER_MONTH` below). The
26
+ * distinct component versions rendered on the server per day are NOT a limit of any kind:
27
+ * they are the vendor's billing unit, measured as usage (`ssr-version-ledger.ts`) for
28
28
  * a later pay-as-you-go price, and nothing is refused because of them.
29
29
  */
30
30
  import { PLAN_IDS } from "./plan-ids.js";
@@ -34,7 +34,7 @@ const MB = 1000 * 1000;
34
34
  const GB = 1000 * MB;
35
35
  /**
36
36
  * What a billed excess is counted in. One metric is one line of the end-of-month overage ledger and
37
- * one Stripe meter. `ssr_version_days` is metered usage without a plan limit (decision 82: the
37
+ * one Stripe meter. `ssr_version_days` is metered usage without a plan limit (the
38
38
  * versions rendered per day are not a limit); the others are the `meter` of a catalog limit.
39
39
  */
40
40
  export const OVERAGE_METRICS = [
@@ -58,17 +58,17 @@ const hardForAll = () => ({
58
58
  pro: HARD,
59
59
  agency: HARD,
60
60
  });
61
- /** Hard on Free, billed on Pro and Agency (decision 84). */
61
+ /** Hard on Free, billed on Pro and Agency. */
62
62
  const meteredOnPaid = (metric) => {
63
63
  const metered = Object.freeze({ mode: "metered", metric });
64
64
  return { free: HARD, pro: metered, agency: metered };
65
65
  };
66
66
  // What one build may use is the same on every plan for now: the container instance is the ceiling.
67
67
  const sameForAll = (value) => perPlan(value, value, value);
68
- /** Loader deliveries a plan counts in a month (proposal v3, decision 71). */
68
+ /** Loader deliveries a plan counts in a month (proposal v3). */
69
69
  const RENDERS_PER_MONTH = perPlan(10_000, 1_250_000, 4_000_000);
70
70
  /**
71
- * SSR working default (ADR 0066, research §9), NOT confirmed by the owner: change it here only.
71
+ * SSR working default, not final: change it here only.
72
72
  * Server renders per month: equal to the plan's renders, so an honest site never meets it (each
73
73
  * server render is a page view the loader already counts, and only cache misses are renders).
74
74
  */
@@ -156,8 +156,8 @@ const SPECS = [
156
156
  policy: hardForAll(),
157
157
  },
158
158
  {
159
- // Decision 78: one limit, a rolling 7-day window. Free is a flat 150 for every account (no
160
- // ramp, decision 68); Pro and Agency are seven times the daily numbers of proposal v3.
159
+ // One limit, a rolling 7-day window. Free is a flat 150 for every account (no
160
+ // ramp); Pro and Agency are seven times the daily numbers of proposal v3.
161
161
  name: "buildsPerWeek",
162
162
  group: "build",
163
163
  unit: "count",
@@ -181,7 +181,7 @@ const SPECS = [
181
181
  policy: hardForAll(),
182
182
  },
183
183
  {
184
- // Plans proposal v3 section 1.1 (Free 3) and decision 68 (Pro 25, Agency 100 included).
184
+ // Free 3, Pro 25, Agency 100 included.
185
185
  name: "maxSites",
186
186
  group: "quota",
187
187
  unit: "count",
@@ -214,7 +214,7 @@ const SPECS = [
214
214
  group: "quota",
215
215
  unit: "count",
216
216
  window: "each",
217
- enforcedAt: "POST /v1/api-keys, one admin or member (TAG-2293)",
217
+ enforcedAt: "POST /v1/api-keys, one admin or member",
218
218
  notice: "on_refusal",
219
219
  meter: null,
220
220
  defaults: perPlan(10, 10, 25),
@@ -225,14 +225,14 @@ const SPECS = [
225
225
  group: "quota",
226
226
  unit: "count",
227
227
  window: "each",
228
- enforcedAt: "POST /v1/api-keys, places only an owner may fill (TAG-2293)",
228
+ enforcedAt: "POST /v1/api-keys, places only an owner may fill",
229
229
  notice: "on_refusal",
230
230
  meter: null,
231
231
  defaults: sameForAll(5),
232
232
  policy: hardForAll(),
233
233
  },
234
234
  {
235
- // Decision 77 (owner): 50, 300 and 800. Only a NEW attach is refused; after a downgrade what
235
+ // 50, 300 and 800. Only a NEW attach is refused; after a downgrade what
236
236
  // is attached stays served. The highest value is the platform ceiling of a site manifest.
237
237
  name: "componentsPerSite",
238
238
  group: "quota",
@@ -245,7 +245,7 @@ const SPECS = [
245
245
  policy: hardForAll(),
246
246
  },
247
247
  {
248
- // TAG-1625: what was the trust level's `connectOrigins`, the one control of it with no equal
248
+ // What was the trust level's `connectOrigins`, the one control of it with no equal
249
249
  // in a plan (a security cap on `permissions.connect`). Generous: a real component needs a few.
250
250
  // The highest value is the platform ceiling of the manifest (`MANIFEST_LIMITS.maxConnectOrigins`,
251
251
  // 10): a plan cannot allow what the manifest schema refuses, and a test keeps them in line.
@@ -271,7 +271,7 @@ const SPECS = [
271
271
  policy: meteredOnPaid("renders"),
272
272
  },
273
273
  {
274
- // ADR 0066: renders the edge performed for `GET /r/` (cache misses that rendered); cache hits are
274
+ // Renders the edge performed for `GET /r/` (cache misses that rendered); cache hits are
275
275
  // metered but not counted. Never counted against `rendersPerMonth`: the page view is the loader's.
276
276
  name: "ssrRendersPerMonth",
277
277
  group: "usage",
@@ -306,7 +306,7 @@ const SPECS = [
306
306
  policy: meteredOnPaid("storage"),
307
307
  },
308
308
  {
309
- // Decision 68, item 11: 12, 24 and 36 months. A collection may choose fewer days, never more.
309
+ // 12, 24 and 36 months. A collection may choose fewer days, never more.
310
310
  name: "retentionDays",
311
311
  group: "usage",
312
312
  unit: "days",
@@ -318,8 +318,8 @@ const SPECS = [
318
318
  policy: hardForAll(),
319
319
  },
320
320
  {
321
- // TAG-808: how long `metrics_daily` keeps the daily aggregates of the component metrics, after the
322
- // Analytics Engine's three months. One window, the advertised number (decision 79); the daily
321
+ // How long `metrics_daily` keeps the daily aggregates of the component metrics, after the
322
+ // Analytics Engine's three months. One window, the advertised number; the daily
323
323
  // purge of the aggregates is its only enforcement and nothing refuses a request.
324
324
  name: "metricsRetentionDays",
325
325
  group: "plan",
@@ -336,8 +336,8 @@ const SPECS = [
336
336
  group: "plan",
337
337
  unit: "count",
338
338
  window: "month",
339
- // TAG-1628: past the number the e-mail falls to the daily digest, on every plan (nothing is cut or
340
- // billed; the submission is stored either way). Off until the owner approves the Free hard cut flag (the API's).
339
+ // Past the number the e-mail falls to the daily digest, on every plan (nothing is cut or
340
+ // billed; the submission is stored either way). Off until the Free hard cut flag (the API's) is turned on.
341
341
  enforcedAt: "submission notification e-mails: past the number an instant e-mail goes to the daily digest, on every plan",
342
342
  notice: "view_only",
343
343
  meter: "immediate_emails",
@@ -349,7 +349,7 @@ const SPECS = [
349
349
  group: "plan",
350
350
  unit: "count",
351
351
  window: "total",
352
- // TAG-1628: a new invitation is refused (409 `member_limit_reached`) when the members and the
352
+ // A new invitation is refused (409 `member_limit_reached`) when the members and the
353
353
  // pending invitations already fill the number; hard on every plan. Off until the Free hard cut flag
354
354
  // is approved.
355
355
  enforcedAt: "POST /v1/workspaces/{id}/invitations, 409 member_limit_reached",
@@ -414,8 +414,8 @@ export function overageMetricOf(name, planId) {
414
414
  /**
415
415
  * Whether a usage price (metric, plan) is informational only: the metric is a limit's overage on
416
416
  * another plan, but this plan never meters it. Today that is the Agency's extra site, the existing
417
- * add-on on its subscription (decision 68), so a usage price for it would bill nothing and a
418
- * schedule for it must be refused (TAG-1635). A metric tied to no limit (`ssr_version_days`) is
417
+ * add-on on its subscription, so a usage price for it would bill nothing and a
418
+ * schedule for it must be refused. A metric tied to no limit (`ssr_version_days`) is
419
419
  * never informational.
420
420
  *
421
421
  * Inputs: an overage metric and a plan id. Output: the verdict. Errors: none. No side effects.
@@ -1 +1 @@
1
- {"version":3,"file":"limit-catalog.js","sourceRoot":"","sources":["../src/limit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AAEtD,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;AACvB,MAAM,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACvB,MAAM,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;AAuCrB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,QAAQ;IACR,aAAa;IACb,SAAS;IACT,aAAa;CACL,CAAC;AA4BX,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,GAAW,EAAE,MAAc,EAAoC,EAAE,CAAC,CAAC;IAChG,IAAI;IACJ,GAAG;IACH,MAAM;CACP,CAAC,CAAC;AAEH,MAAM,IAAI,GAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,E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AM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC;IAC/F,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC"}
package/dist/limits.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Hard limits of component contract v1 (TAG-201).
2
+ * Hard limits of component contract v1.
3
3
  *
4
4
  * Every list, record and string in the manifest and in the data API is bounded so that a hostile
5
5
  * manifest or payload cannot make the runtime, the builder, the edge or the API do unbounded work
6
6
  * (golden rules 2 and 5). The schemas read these constants; `SPEC.md` documents them. Changing a
7
- * value is a contract change: loosening is a minor bump, tightening is a major one (TAG-207).
7
+ * value is a contract change: loosening is a minor bump, tightening is a major one.
8
8
  */
9
9
  /** `MANIFEST_LIMITS.maxJsonLength`: a manifest's JSON length, and a value check's work budget. */
10
10
  export declare const MAX_JSON_LENGTH = 65536;
@@ -18,7 +18,7 @@ export declare const URL_MAX_LENGTH = 2048;
18
18
  * Limits of the component manifest.
19
19
  *
20
20
  * Inputs: none. Output: frozen numbers used by the manifest schemas. Errors: none. Side effects:
21
- * none. Marked `@__PURE__` (TAG-238) so a bundler drops it from a component that imports another
21
+ * none. Marked `@__PURE__` so a bundler drops it from a component that imports another
22
22
  * limit: esbuild keeps an unmarked `Object.freeze` call.
23
23
  */
24
24
  export declare const MANIFEST_LIMITS: Readonly<{
@@ -57,7 +57,7 @@ export declare const MANIFEST_LIMITS: Readonly<{
57
57
  colorMaxLength: 64;
58
58
  /** Any `url` value: default, attribute or property. */
59
59
  urlMaxLength: 2048;
60
- /** Attribute text of a `number` prop, checked before parsing (TAG-205). */
60
+ /** Attribute text of a `number` prop, checked before parsing. */
61
61
  numberTextMaxLength: 32;
62
62
  /** JSON text of an `array` or `object` prop read from an attribute, checked before parsing. */
63
63
  propJsonMaxLength: 32768;
@@ -67,8 +67,8 @@ export declare const MANIFEST_LIMITS: Readonly<{
67
67
  aspectRatioMaxTerm: 100;
68
68
  }>;
69
69
  /**
70
- * Limits only the browser runtime reads (TAG-304), kept out of `MANIFEST_LIMITS`, which the SDK
71
- * bundle carried whole until TAG-238 (the runtime still does), so a component does not pay for them.
70
+ * Limits only the browser runtime reads, kept out of `MANIFEST_LIMITS`, which the SDK
71
+ * bundle carried whole until the limits were split (the runtime still does), so a component does not pay for them.
72
72
  *
73
73
  * Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
74
74
  */
@@ -80,11 +80,11 @@ export declare const RUNTIME_LIMITS: Readonly<{
80
80
  propsScriptMaxLength: 65536;
81
81
  }>;
82
82
  /**
83
- * Limits of workspace settings the contract validates (TAG-204).
83
+ * Limits of workspace settings the contract validates.
84
84
  *
85
85
  * Inputs: none. Output: frozen numbers. The tag prefix stays short so that a prefixed tag still
86
86
  * fits `MANIFEST_LIMITS.nameMaxLength` with room for the component's own name. Errors: none. Side
87
- * effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS` (TAG-238).
87
+ * effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS`.
88
88
  */
89
89
  export declare const WORKSPACE_LIMITS: Readonly<{
90
90
  /** Workspace tag prefix, without the trailing hyphen (`acme`). */
@@ -94,10 +94,10 @@ export declare const WORKSPACE_LIMITS: Readonly<{
94
94
  * Limits of the data API (submit, read, track) between a component and the edge.
95
95
  *
96
96
  * Inputs: none. Output: frozen numbers used by the data API schemas and, later, by the edge
97
- * (TAG-702) before it parses a body. Errors: none. Side effects: none.
97
+ * before it parses a body. Errors: none. Side effects: none.
98
98
  */
99
99
  export declare const DATA_API_LIMITS: Readonly<{
100
- /** Maximum body of `POST /d/<siteKey>/<collection>` in bytes (threat T-76). */
100
+ /** Maximum body of `POST /d/<siteKey>/<collection>` in bytes. */
101
101
  submitBodyMaxBytes: 32768;
102
102
  /** Maximum body of a `track` beacon in bytes. */
103
103
  trackBodyMaxBytes: 2048;
@@ -115,7 +115,7 @@ export declare const DATA_API_LIMITS: Readonly<{
115
115
  maxErrorFields: 50;
116
116
  }>;
117
117
  /**
118
- * Limits of the consent proof a submission carries (TAG-212, `consent` of the data API's
118
+ * Limits of the consent proof a submission carries (`consent` of the data API's
119
119
  * `submit`). Apart from `DATA_API_LIMITS` on purpose: the SDK bundles that object (its transports
120
120
  * read it), and only the server-side schema reads these; the `@__PURE__` mark lets a bundler drop
121
121
  * them from a component that imports another limit (esbuild keeps an unmarked `Object.freeze` call).
@@ -130,9 +130,9 @@ export declare const CONSENT_PROOF_LIMITS: Readonly<{
130
130
  consentLocaleMaxLength: 35;
131
131
  }>;
132
132
  /**
133
- * Limits of the `locales` declaration of a manifest (TAG-211, contract 1.2): the languages a
133
+ * Limits of the `locales` declaration of a manifest (contract 1.2): the languages a
134
134
  * component ships messages for. Apart from `MANIFEST_LIMITS` for the same reason as
135
- * `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until TAG-238 (the runtime still
135
+ * `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until the limits were split (the runtime still
136
136
  * does), and only the manifest schema reads these.
137
137
  *
138
138
  * Inputs: none. Output: frozen numbers used by the manifest schema. Errors: none. Side effects:
@@ -150,8 +150,8 @@ export declare const LOCALE_LIMITS: Readonly<{
150
150
  maxMessagesPerLocale: 2000;
151
151
  }>;
152
152
  /**
153
- * Limits of the `assets` declaration of a manifest (TAG-213, contract 1.3): the files a component
154
- * imports (images and fonts), which the builder (TAG-410) lists after bundling. These are the
153
+ * Limits of the `assets` declaration of a manifest (contract 1.3): the files a component
154
+ * imports (images and fonts), which the builder lists after bundling. These are the
155
155
  * contract's hard bounds; each plan sets tighter ones, which the builder applies. Apart from
156
156
  * `MANIFEST_LIMITS` for the same reason as `LOCALE_LIMITS`.
157
157
  *
@@ -1 +1 @@
1
- {"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,kGAAkG;AAClG,eAAO,MAAM,eAAe,QAAS,CAAC;AACtC,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,QAAS,CAAC;AACxC,0EAA0E;AAC1E,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC,uDAAuD;AACvD,eAAO,MAAM,cAAc,OAAQ,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;IAC1B,8EAA8E;;IAE9E,iDAAiD;;;;IAIjD,4FAA4F;;IAE5F,sFAAsF;;;;;;;;;;;;;;;IAetF,gEAAgE;;IAEhE,0EAA0E;;IAE1E,wEAAwE;;IAExE,kEAAkE;;IAElE,6FAA6F;;IAE7F,uDAAuD;;IAEvD,2EAA2E;;IAE3E,+FAA+F;;;IAG/F,wCAAwC;;;EAGxC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc;IACzB;;;OAGG;;EAEH,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;IAC3B,kEAAkE;;EAElE,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,eAAe;IAC1B,+EAA+E;;IAE/E,iDAAiD;;IAEjD,iFAAiF;;;;;;IAMjF,2BAA2B;;;;;;EAM3B,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;IAC/B,qDAAqD;;IAErD,+DAA+D;;EAE/D,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;IACxB,sCAAsC;;IAEtC,0FAA0F;;IAE1F;;;OAGG;;EAEH,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;IACvB,sFAAsF;;IAEtF,kCAAkC;;EAElC,CAAC"}
1
+ {"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,kGAAkG;AAClG,eAAO,MAAM,eAAe,QAAS,CAAC;AACtC,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,QAAS,CAAC;AACxC,0EAA0E;AAC1E,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC,uDAAuD;AACvD,eAAO,MAAM,cAAc,OAAQ,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;IAC1B,8EAA8E;;IAE9E,iDAAiD;;;;IAIjD,4FAA4F;;IAE5F,sFAAsF;;;;;;;;;;;;;;;IAetF,gEAAgE;;IAEhE,0EAA0E;;IAE1E,wEAAwE;;IAExE,kEAAkE;;IAElE,6FAA6F;;IAE7F,uDAAuD;;IAEvD,iEAAiE;;IAEjE,+FAA+F;;;IAG/F,wCAAwC;;;EAGxC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc;IACzB;;;OAGG;;EAEH,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;IAC3B,kEAAkE;;EAElE,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,eAAe;IAC1B,iEAAiE;;IAEjE,iDAAiD;;IAEjD,iFAAiF;;;;;;IAMjF,2BAA2B;;;;;;EAM3B,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;IAC/B,qDAAqD;;IAErD,+DAA+D;;EAE/D,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;IACxB,sCAAsC;;IAEtC,0FAA0F;;IAE1F;;;OAGG;;EAEH,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;IACvB,sFAAsF;;IAEtF,kCAAkC;;EAElC,CAAC"}
package/dist/limits.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * Hard limits of component contract v1 (TAG-201).
2
+ * Hard limits of component contract v1.
3
3
  *
4
4
  * Every list, record and string in the manifest and in the data API is bounded so that a hostile
5
5
  * manifest or payload cannot make the runtime, the builder, the edge or the API do unbounded work
6
6
  * (golden rules 2 and 5). The schemas read these constants; `SPEC.md` documents them. Changing a
7
- * value is a contract change: loosening is a minor bump, tightening is a major one (TAG-207).
7
+ * value is a contract change: loosening is a minor bump, tightening is a major one.
8
8
  */
9
9
  /*
10
10
  * The four manifest limits the SDK's value checks read (`checkValue` and `isAllowedUrl`, bundled
11
- * into every component with a data hook) are plain constants as well (TAG-238): esbuild drops an
11
+ * into every component with a data hook) are plain constants as well: esbuild drops an
12
12
  * unused object but never one property of a used one, so a check that read `MANIFEST_LIMITS.x`
13
13
  * pulled all ~35 manifest limits into the component. `MANIFEST_LIMITS` reads the same constants, so
14
14
  * each value still has one source. They are not re-exported by `index.ts` or `zod-free.ts`, so
@@ -26,7 +26,7 @@ export const URL_MAX_LENGTH = 2_048;
26
26
  * Limits of the component manifest.
27
27
  *
28
28
  * Inputs: none. Output: frozen numbers used by the manifest schemas. Errors: none. Side effects:
29
- * none. Marked `@__PURE__` (TAG-238) so a bundler drops it from a component that imports another
29
+ * none. Marked `@__PURE__` so a bundler drops it from a component that imports another
30
30
  * limit: esbuild keeps an unmarked `Object.freeze` call.
31
31
  */
32
32
  export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
@@ -65,7 +65,7 @@ export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
65
65
  colorMaxLength: 64,
66
66
  /** Any `url` value: default, attribute or property. */
67
67
  urlMaxLength: URL_MAX_LENGTH,
68
- /** Attribute text of a `number` prop, checked before parsing (TAG-205). */
68
+ /** Attribute text of a `number` prop, checked before parsing. */
69
69
  numberTextMaxLength: 32,
70
70
  /** JSON text of an `array` or `object` prop read from an attribute, checked before parsing. */
71
71
  propJsonMaxLength: 32_768,
@@ -75,8 +75,8 @@ export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
75
75
  aspectRatioMaxTerm: 100,
76
76
  });
77
77
  /**
78
- * Limits only the browser runtime reads (TAG-304), kept out of `MANIFEST_LIMITS`, which the SDK
79
- * bundle carried whole until TAG-238 (the runtime still does), so a component does not pay for them.
78
+ * Limits only the browser runtime reads, kept out of `MANIFEST_LIMITS`, which the SDK
79
+ * bundle carried whole until the limits were split (the runtime still does), so a component does not pay for them.
80
80
  *
81
81
  * Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
82
82
  */
@@ -88,11 +88,11 @@ export const RUNTIME_LIMITS = /* @__PURE__ */ Object.freeze({
88
88
  propsScriptMaxLength: 65_536,
89
89
  });
90
90
  /**
91
- * Limits of workspace settings the contract validates (TAG-204).
91
+ * Limits of workspace settings the contract validates.
92
92
  *
93
93
  * Inputs: none. Output: frozen numbers. The tag prefix stays short so that a prefixed tag still
94
94
  * fits `MANIFEST_LIMITS.nameMaxLength` with room for the component's own name. Errors: none. Side
95
- * effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS` (TAG-238).
95
+ * effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS`.
96
96
  */
97
97
  export const WORKSPACE_LIMITS = /* @__PURE__ */ Object.freeze({
98
98
  /** Workspace tag prefix, without the trailing hyphen (`acme`). */
@@ -102,10 +102,10 @@ export const WORKSPACE_LIMITS = /* @__PURE__ */ Object.freeze({
102
102
  * Limits of the data API (submit, read, track) between a component and the edge.
103
103
  *
104
104
  * Inputs: none. Output: frozen numbers used by the data API schemas and, later, by the edge
105
- * (TAG-702) before it parses a body. Errors: none. Side effects: none.
105
+ * before it parses a body. Errors: none. Side effects: none.
106
106
  */
107
107
  export const DATA_API_LIMITS = Object.freeze({
108
- /** Maximum body of `POST /d/<siteKey>/<collection>` in bytes (threat T-76). */
108
+ /** Maximum body of `POST /d/<siteKey>/<collection>` in bytes. */
109
109
  submitBodyMaxBytes: 32_768,
110
110
  /** Maximum body of a `track` beacon in bytes. */
111
111
  trackBodyMaxBytes: 2_048,
@@ -123,7 +123,7 @@ export const DATA_API_LIMITS = Object.freeze({
123
123
  maxErrorFields: 50,
124
124
  });
125
125
  /**
126
- * Limits of the consent proof a submission carries (TAG-212, `consent` of the data API's
126
+ * Limits of the consent proof a submission carries (`consent` of the data API's
127
127
  * `submit`). Apart from `DATA_API_LIMITS` on purpose: the SDK bundles that object (its transports
128
128
  * read it), and only the server-side schema reads these; the `@__PURE__` mark lets a bundler drop
129
129
  * them from a component that imports another limit (esbuild keeps an unmarked `Object.freeze` call).
@@ -138,9 +138,9 @@ export const CONSENT_PROOF_LIMITS = /* @__PURE__ */ Object.freeze({
138
138
  consentLocaleMaxLength: 35,
139
139
  });
140
140
  /**
141
- * Limits of the `locales` declaration of a manifest (TAG-211, contract 1.2): the languages a
141
+ * Limits of the `locales` declaration of a manifest (contract 1.2): the languages a
142
142
  * component ships messages for. Apart from `MANIFEST_LIMITS` for the same reason as
143
- * `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until TAG-238 (the runtime still
143
+ * `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until the limits were split (the runtime still
144
144
  * does), and only the manifest schema reads these.
145
145
  *
146
146
  * Inputs: none. Output: frozen numbers used by the manifest schema. Errors: none. Side effects:
@@ -158,8 +158,8 @@ export const LOCALE_LIMITS = /* @__PURE__ */ Object.freeze({
158
158
  maxMessagesPerLocale: 2_000,
159
159
  });
160
160
  /**
161
- * Limits of the `assets` declaration of a manifest (TAG-213, contract 1.3): the files a component
162
- * imports (images and fonts), which the builder (TAG-410) lists after bundling. These are the
161
+ * Limits of the `assets` declaration of a manifest (contract 1.3): the files a component
162
+ * imports (images and fonts), which the builder lists after bundling. These are the
163
163
  * contract's hard bounds; each plan sets tighter ones, which the builder applies. Apart from
164
164
  * `MANIFEST_LIMITS` for the same reason as `LOCALE_LIMITS`.
165
165
  *
@@ -1 +1 @@
1
- {"version":3,"file":"limits.js","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAEH,kGAAkG;AAClG,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,6EAA6E;AAC7E,MAAM,C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AE;IACzB,+DAA+D;IAC/D,sBAAsB,EAAE,EAAE;CAC3B,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC;IACzD,sCAAsC;IACtC,UAAU,EAAE,EAAE;IACd,0FAA0F;IAC1F,kBAAkB,EAAE,EAAE;IACtB;;;OAGG;IACH,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC;IACxD,sFAAsF;IACtF,SAAS,EAAE,EAAE;IACb,kCAAkC;IAClC,aAAa,EAAE,SAAS;CACzB,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Language tags of the contract (TAG-211), without Zod: the pattern every tag follows and the
2
+ * Language tags of the contract, without Zod: the pattern every tag follows and the
3
3
  * attribute the SDK reads the visitor's language from. The runtime and the SDK may import these
4
4
  * through `@taggor/contract/zod-free`; the manifest's `locales` (contract 1.2) and the consent
5
- * proof of the data API (TAG-212) validate with the same pattern.
5
+ * proof of the data API validate with the same pattern.
6
6
  */
7
7
  /**
8
8
  * A BCP 47 language tag as the contract writes it (`pt-BR`, `en`, `es-419`, `zh-Hant-TW`): a
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Language tags of the contract (TAG-211), without Zod: the pattern every tag follows and the
2
+ * Language tags of the contract, without Zod: the pattern every tag follows and the
3
3
  * attribute the SDK reads the visitor's language from. The runtime and the SDK may import these
4
4
  * through `@taggor/contract/zod-free`; the manifest's `locales` (contract 1.2) and the consent
5
- * proof of the data API (TAG-212) validate with the same pattern.
5
+ * proof of the data API validate with the same pattern.
6
6
  */
7
7
  /**
8
8
  * A BCP 47 language tag as the contract writes it (`pt-BR`, `en`, `es-419`, `zh-Hant-TW`): a
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The factory of build diagnostics (TAG-401 in the builder; moved here by TAG-407, its second
2
+ * The factory of build diagnostics (shared by the builder and the API, its second
3
3
  * user being the API, which refuses a source package with the same diagnostics before storing
4
4
  * it).
5
5
  *
@@ -8,8 +8,7 @@
8
8
  * `BUILD_DIAGNOSTIC_LIMITS` and every path is made relative to the package. Text is untrusted (it
9
9
  * can quote the customer's source): control, bidi and line separator characters become visible
10
10
  * escapes and lone surrogates U+FFFD, and cuts never split a surrogate pair, so a diagnostic
11
- * always passes `buildDiagnosticSchema` and fits Postgres `jsonb` (TAG-404 security review, M1
12
- * and M3). A code that is not in the catalog does not type-check.
11
+ * always passes `buildDiagnosticSchema` and fits Postgres `jsonb`. A code that is not in the catalog does not type-check.
13
12
  *
14
13
  * Zod-free and pure.
15
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"make-diagnostic.d.ts","sourceRoot":"","sources":["../src/make-diagnostic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,+EAA+E;AAC/E,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,oBAAoB;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,uBAAuB;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,kF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C,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;QAC3C,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE;YACtF,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,0BAA0B,CAAC,EAAE,CAAC;QACtE,GAAG,CAAC,OAAO,CAAC,YAAY,KAAK,SAAS,IAAI,OAAO,CAAC,YAAY,KAAK,EAAE;YACnE,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,+BAA+B,CAAC,EAAE,CAAC;KACtF,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,IAAoB,EACpB,OAAe,EACf,UAA6B,EAAE;IAE/B,OAAO,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;AAC1E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Diagnostics of the breaking changes `compareManifests` finds (TAG-503): one warning per
2
+ * Diagnostics of the breaking changes `compareManifests` finds: one warning per
3
3
  * breaking change, for the agent that creates a version, saying which member changed, what a
4
4
  * host page loses and how to migrate. Codes by member: `BREAKING_PROP_CHANGE`,
5
5
  * `BREAKING_EVENT_CHANGE`, `BREAKING_SLOT_CHANGE` and `BREAKING_STYLE_CHANGE` (parts and CSS
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Compatibility of a component's manifest between two versions (TAG-503): `compareManifests(prev,
2
+ * Compatibility of a component's manifest between two versions: `compareManifests(prev,
3
3
  * next)` lists every change of the component's public interface and classifies each one as
4
4
  * `breaking` (something a host page did with the old version stops working) or `additive`
5
5
  * (everything that worked keeps working). Zod-free and pure: only `import type` from the Zod