@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
package/dist/migrate.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Migration of manifests between contract majors (TAG-207, ADR 0019).
2
+ * Migration of manifests between contract majors.
3
3
  *
4
4
  * When a major ships, the change that bumps `CONTRACT_MAJOR` adds one step `from: N, to: N + 1`
5
5
  * to `MANIFEST_MIGRATIONS`: a pure function from a manifest of major N to an equivalent manifest
6
6
  * of major N + 1 (renames, removed fields mapped to their replacement, new required fields given
7
7
  * their old implicit value). `migrateManifest` chains the steps. The compatibility test
8
- * (compat.test.ts) runs every fixture of an older major through it and requires the result to
8
+ * (compat.test.ts) runs every sample of an older major through it and requires the result to
9
9
  * pass the current schema, so a major cannot ship without its migration.
10
10
  *
11
11
  * A migration is applied when a manifest is read for a new build or for display, never written
@@ -13,7 +13,7 @@
13
13
  * explicit action of the customer (golden rule 3).
14
14
  *
15
15
  * The input is untrusted (golden rule 5) and the runtime may call this on a host page (golden rule
16
- * 2), so it never throws (TAG-220): every refusal is a result with a stable `reason`.
16
+ * 2), so it never throws: every refusal is a result with a stable `reason`.
17
17
  *
18
18
  * Zod-free and pure. The output is not validated here: callers parse it (`parseManifest`).
19
19
  */
@@ -38,7 +38,7 @@ const SAFE_ERROR_NAME = /^[A-Za-z][A-Za-z0-9]{0,63}$/;
38
38
  * Name of a caught value, for a message that never echoes input data. The value may come from the
39
39
  * input (a throwing `toJSON` or getter): `instanceof` runs a Proxy's `getPrototypeOf` trap and
40
40
  * `.name` may be a getter, both of which can throw, so they run inside a try and the name is
41
- * echoed only when it is a short identifier (TAG-220).
41
+ * echoed only when it is a short identifier.
42
42
  */
43
43
  function errorName(error) {
44
44
  try {
@@ -111,7 +111,7 @@ export function migrateManifest(input, options = {}) {
111
111
  try {
112
112
  // The first scan refuses what is too large before JSON.stringify walks it (a sparse array of
113
113
  // length 2**32 - 1 used to throw a RangeError here); the second one checks what the copy
114
- // really holds, since a toJSON may produce anything (TAG-220).
114
+ // really holds, since a toJSON may produce anything.
115
115
  const scanned = checkDocument(input, "manifest");
116
116
  if (!scanned.ok)
117
117
  return scanned;
@@ -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AAC,IAAI,eAAe,EAAE,KAAK,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC;YAChE,OAAO,OAAO,CACZ,UAAU,EACV,uBAAuB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,mCAAmC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CACrG,CAAC;QACJ,CAAC;QACD,QAAQ,GAAG,QAAQ,CAAC;IACtB,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;AACjE,CAAC"}
package/dist/money.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * The one formatter of US dollar amounts for every surface (TAG-1635): the portal, the staff
2
+ * The one formatter of US dollar amounts for every surface: the portal, the staff
3
3
  * backoffice, the CLI and the public site read money through these functions, so a figure is written
4
- * the same way everywhere and its rounding is defined once. Money is always US dollars (decision 68).
4
+ * the same way everywhere and its rounding is defined once. Money is always US dollars.
5
5
  *
6
6
  * Rounding rule: an amount of micro dollars is shown in whole cents rounded DOWN, because an estimate
7
7
  * must never overstate a bill (the CLOSE bills the ledger, not this text). A price per unit
package/dist/money.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * The one formatter of US dollar amounts for every surface (TAG-1635): the portal, the staff
2
+ * The one formatter of US dollar amounts for every surface: the portal, the staff
3
3
  * backoffice, the CLI and the public site read money through these functions, so a figure is written
4
- * the same way everywhere and its rounding is defined once. Money is always US dollars (decision 68).
4
+ * the same way everywhere and its rounding is defined once. Money is always US dollars.
5
5
  *
6
6
  * Rounding rule: an amount of micro dollars is shown in whole cents rounded DOWN, because an estimate
7
7
  * must never overstate a bill (the CLOSE bills the ledger, not this text). A price per unit
package/dist/names.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Identifier schemas of component contract v1 (TAG-201): component name, prop, event, slot, part, CSS
3
- * variable, collection and field names. Custom element tags live in `tag-name.ts` (TAG-204).
2
+ * Identifier schemas of component contract v1: component name, prop, event, slot, part, CSS
3
+ * variable, collection and field names. Custom element tags live in `tag-name.ts`.
4
4
  *
5
5
  * Every rule is a plain regular expression, so the generated JSON Schema enforces exactly what Zod
6
6
  * enforces (no refinement that only Zod would see). Lookaheads carry the deny lists (prop names
7
7
  * that would collide with the host element). The prop name rules themselves live in the Zod-free
8
- * `prop-names.ts` (TAG-205), which the runtime may import.
8
+ * `prop-names.ts`, which the runtime may import.
9
9
  */
10
10
  import * as z from "zod";
11
11
  /** Kebab-case member name: events, slots, parts, collections, track events, component name. */
12
12
  export declare const KEBAB_NAME_PATTERN: RegExp;
13
13
  /**
14
- * `Object.prototype` members a field name must not be (TAG-205): validators and consumers read
14
+ * `Object.prototype` members a field name must not be: validators and consumers read
15
15
  * `value[name]`, which finds the inherited member when the field is absent (Zod's object schema
16
16
  * then rejects every value without a `toString` field, and component code may call it).
17
17
  */
package/dist/names.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Identifier schemas of component contract v1 (TAG-201): component name, prop, event, slot, part, CSS
3
- * variable, collection and field names. Custom element tags live in `tag-name.ts` (TAG-204).
2
+ * Identifier schemas of component contract v1: component name, prop, event, slot, part, CSS
3
+ * variable, collection and field names. Custom element tags live in `tag-name.ts`.
4
4
  *
5
5
  * Every rule is a plain regular expression, so the generated JSON Schema enforces exactly what Zod
6
6
  * enforces (no refinement that only Zod would see). Lookaheads carry the deny lists (prop names
7
7
  * that would collide with the host element). The prop name rules themselves live in the Zod-free
8
- * `prop-names.ts` (TAG-205), which the runtime may import.
8
+ * `prop-names.ts`, which the runtime may import.
9
9
  */
10
10
  import * as z from "zod";
11
11
  import { DOM_MEMBER_SNAPSHOT } from "./dom-members.snapshot.js";
@@ -28,7 +28,7 @@ const KEBAB_BODY = "[a-z][a-z0-9]*(?:-[a-z0-9]+)*";
28
28
  /** Kebab-case member name: events, slots, parts, collections, track events, component name. */
29
29
  export const KEBAB_NAME_PATTERN = new RegExp(`^${KEBAB_BODY}$`);
30
30
  /**
31
- * `Object.prototype` members a field name must not be (TAG-205): validators and consumers read
31
+ * `Object.prototype` members a field name must not be: validators and consumers read
32
32
  * `value[name]`, which finds the inherited member when the field is absent (Zod's object schema
33
33
  * then rejects every value without a `toString` field, and component code may call it).
34
34
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The overage rate table as DATA (TAG-1629, owner decision of 2026-11-14): one row per
2
+ * The overage rate table as DATA: one row per
3
3
  * (metric, paid plan, version) with the instant it starts to apply, in micro US dollars. The rows
4
4
  * live in the database (`overage_rates`) and staff edits them; `OVERAGE_RATES` in `plan-pricing.ts`
5
5
  * is only the seed of version 1. This module is the pure part every reader shares: the row shape,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The overage rate table as DATA (TAG-1629, owner decision of 2026-11-14): one row per
2
+ * The overage rate table as DATA: one row per
3
3
  * (metric, paid plan, version) with the instant it starts to apply, in micro US dollars. The rows
4
4
  * live in the database (`overage_rates`) and staff edits them; `OVERAGE_RATES` in `plan-pricing.ts`
5
5
  * is only the seed of version 1. This module is the pure part every reader shares: the row shape,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The plan ids, apart from every table that has a row per plan (TAG-1627): the limit catalog
2
+ * The plan ids, apart from every table that has a row per plan: the limit catalog
3
3
  * (`limit-catalog.ts`) and `planLimits` both need them, and neither may import the other first.
4
4
  * Zod-free.
5
5
  */
package/dist/plan-ids.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The plan ids, apart from every table that has a row per plan (TAG-1627): the limit catalog
2
+ * The plan ids, apart from every table that has a row per plan: the limit catalog
3
3
  * (`limit-catalog.ts`) and `planLimits` both need them, and neither may import the other first.
4
4
  * Zod-free.
5
5
  */
@@ -15,15 +15,15 @@ export interface PlanLimits {
15
15
  /** What visitors download: the bundle and the CSS together. */
16
16
  readonly maxOutputBytes: number;
17
17
  /**
18
- * One asset file a component imports (TAG-410: an image or a WOFF2 font, as stored), at most the
18
+ * One asset file a component imports (an image or a WOFF2 font, as stored), at most the
19
19
  * contract's `ASSET_LIMITS.assetMaxBytes`; over it the build fails with `ASSET_TOO_LARGE`.
20
20
  */
21
21
  readonly maxAssetBytes: number;
22
- /** All the asset files one component imports together (TAG-410, `ASSET_TOO_LARGE`). */
22
+ /** All the asset files one component imports together (`ASSET_TOO_LARGE`). */
23
23
  readonly maxAssetsBytes: number;
24
24
  /**
25
- * Builds a workspace may queue in a rolling 7-day window (the API's `POST /builds`, decision 78):
26
- * one limit, one window, no hourly or daily sublimit beside it (decision 79).
25
+ * Builds a workspace may queue in a rolling 7-day window (the API's `POST /builds`):
26
+ * one limit, one window, no hourly or daily sublimit beside it.
27
27
  */
28
28
  readonly buildsPerWeek: number;
29
29
  /** Builds of one workspace running at once; always fewer than the container instances. */
@@ -73,7 +73,7 @@ export declare function planAbove(limit: PlanLimitName, current: number, plans?:
73
73
  * Inputs: the current time. Output: seconds. Errors: none. Side effects: none.
74
74
  */
75
75
  export declare function secondsUntilNextUtcDay(now: Date): number;
76
- /** The window of `buildsPerWeek`: a rolling 7 days (decision 78). */
76
+ /** The window of `buildsPerWeek`: a rolling 7 days. */
77
77
  export declare const BUILD_WINDOW_MS: number;
78
78
  /** When a full build window frees a place, and how long a client waits for it. */
79
79
  export interface BuildWindowReset {
@@ -93,31 +93,31 @@ export interface BuildWindowReset {
93
93
  export declare function buildWindowReset(freeingBuildCreatedAt: Date, now: Date): BuildWindowReset;
94
94
  /** What each plan allows a workspace to HOLD (as opposed to `PlanLimits`, what one build may use). */
95
95
  export interface PlanQuotas {
96
- /** Sites (not deleted) at once; `POST /v1/sites` answers 409 `site_quota_exceeded` past it (TAG-622). */
96
+ /** Sites (not deleted) at once; `POST /v1/sites` answers 409 `site_quota_exceeded` past it. */
97
97
  readonly maxSites: number;
98
- /** Unrevoked API keys at once; `POST /v1/api-keys` answers 409 `api_key_quota_exceeded` past it (TAG-924). */
98
+ /** Unrevoked API keys at once; `POST /v1/api-keys` answers 409 `api_key_quota_exceeded` past it. */
99
99
  readonly activeApiKeys: number;
100
100
  /**
101
- * Unrevoked API keys one admin or member may have created at once (TAG-2293); an owner is bound
101
+ * Unrevoked API keys one admin or member may have created at once; an owner is bound
102
102
  * by `activeApiKeys` only. Past it, `POST /v1/api-keys` answers 409 `api_key_quota_exceeded`.
103
103
  */
104
104
  readonly activeApiKeysPerCreator: number;
105
105
  /**
106
- * Places of `activeApiKeys` that only an owner may fill (TAG-2293), so no admin or member, even
106
+ * Places of `activeApiKeys` that only an owner may fill, so no admin or member, even
107
107
  * several together, can leave the owner without a place to create a key.
108
108
  */
109
109
  readonly ownerReservedApiKeys: number;
110
110
  /**
111
- * Components attached to one site at once (TAG-1623, decision 77); an attach past it answers 409
112
- * `site_component_limit`. PROVISIONAL until the owner approves the plans (TAG-1602). It only
111
+ * Components attached to one site at once; an attach past it answers 409
112
+ * `site_component_limit`. Provisional until the plans are final. It only
113
113
  * stops a NEW attach: after a downgrade, what is attached stays served (golden rule 2). The
114
114
  * highest value is the platform ceiling `SITE_MANIFEST_MAX_COMPONENTS` (site-manifest.ts).
115
115
  */
116
116
  readonly componentsPerSite: number;
117
117
  /**
118
- * Network origins one version may declare in `permissions.connect` (TAG-1625, the old trust
118
+ * Network origins one version may declare in `permissions.connect` (the old trust
119
119
  * level's `connectOrigins`); a version past it is refused with 402 `plan_limit_reached` before
120
- * the INSERT. PROVISIONAL until the owner approves the plans (TAG-1602).
120
+ * the INSERT. Provisional until the plans are final.
121
121
  */
122
122
  readonly connectOriginsPerVersion: number;
123
123
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plan-limits.d.ts","sourceRoot":"","sources":["../src/plan-limits.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;AAEjC,4FAA4F;AAC5F,eAAO,MAAM,eAA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to build. Zod-free.
2
+ * `planLimits`: the single table of what each plan allows a workspace to build. Zod-free.
3
3
  *
4
4
  * The builder reads it for every build (timeout, source size, files, dependencies, output size,
5
- * asset sizes since TAG-410, builds at once) and the API reads it before queueing one (builds per
6
- * rolling week, `POST /builds` answers 429 with `Retry-After` past it, TAG-909, TAG-1624). Billing (E16, TAG-1603) reuses the same rows for its
5
+ * asset sizes, builds at once) and the API reads it before queueing one (builds per
6
+ * rolling week, `POST /builds` answers 429 with `Retry-After` past it). Billing reuses the same rows for its
7
7
  * entitlements, so a limit lives here once. It sits in the contract because both the API and the
8
8
  * builder already depend on it, and the customer's agent sees these numbers in the
9
9
  * `LIMIT_EXCEEDED` diagnostics.
10
10
  *
11
- * The values are provisional until the owner approves the plans and prices (TAG-1602): today
12
- * there is one plan, `free`, with the limits every build already had (TAG-401, TAG-1705), so
11
+ * The values are provisional until the plans and prices are final: today
12
+ * there is one plan, `free`, with the limits every build already had, so
13
13
  * nothing gets stricter. The builder's platform ceilings (`BUILD_LIMIT_BOUNDS`, tuned with the
14
14
  * `TAGGOR_BUILD_MAX_*` variables) still cap every plan: a plan only lowers a limit, never raises
15
15
  * it past what one container instance holds.
@@ -20,8 +20,8 @@ import { PLAN_IDS } from "./plan-ids.js";
20
20
  export { PLAN_IDS };
21
21
  /** The plan of a workspace without one (and of every build until workspaces have plans). */
22
22
  export const DEFAULT_PLAN_ID = "free";
23
- // The rows come from the limit catalog (`limit-catalog.ts`), the one place that holds the numbers
24
- // (decision 79). The types check that the catalog's `build` group is exactly `PlanLimits`.
23
+ // The rows come from the limit catalog (`limit-catalog.ts`), the one place that holds the numbers.
24
+ // The types check that the catalog's `build` group is exactly `PlanLimits`.
25
25
  const table = catalogRows("build");
26
26
  /**
27
27
  * The limits of every plan, by plan id.
@@ -76,7 +76,7 @@ export function secondsUntilNextUtcDay(now) {
76
76
  const nextMidnight = (Math.floor(now.getTime() / DAY_MS) + 1) * DAY_MS;
77
77
  return Math.max(1, Math.ceil((nextMidnight - now.getTime()) / 1000));
78
78
  }
79
- /** The window of `buildsPerWeek`: a rolling 7 days (decision 78). */
79
+ /** The window of `buildsPerWeek`: a rolling 7 days. */
80
80
  export const BUILD_WINDOW_MS = 7 * DAY_MS;
81
81
  /**
82
82
  * When the rolling 7-day window frees one place (`POST /builds` answers 429 with
@@ -1 +1 @@
1
- {"version":3,"file":"plan-limits.js","sourceRoot":"","sources":["../src/plan-limits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAe,CAAC;AAEjC,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAW,MAAM,CAAC;AAiC9C,kGAAkG;AAClG,2FAA2F;AAC3F,MAAM,KAAK,GAA+B,WAAW,CAAC,OAAO,CAAC,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyC,UAAU,CAAC,KAAK,CAAC,CAAC;AAElF;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,MAA0B;IAIrD,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;IACvD,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;AAChD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CACvB,KAAoB,EACpB,OAAe,EACf,QAA8C,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AC;IAC7E,MAAM,iBAAiB,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9F,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;AACzC,CAAC;AAiCD,MAAM,UAAU,GAA+B,WAAW,CAAC,OAAO,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,OAAO,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;AACjE,CAAC"}
@@ -41,25 +41,25 @@ export interface OverageRate {
41
41
  readonly microUsdPerUnit: Readonly<Record<PaidPlanId, number>>;
42
42
  }
43
43
  /**
44
- * THE SEED of the rate table (TAG-1629, owner 2026-11-14): the tariffs live in the database
44
+ * THE SEED of the rate table: the tariffs live in the database
45
45
  * (`overage_rates`, versions with an effective date, edited by staff with a reason) and this table
46
46
  * is only what migration 0081 inserted as version 1 and what every reader falls back to when the
47
47
  * database cannot be read. A test compares it with the migration; nothing else reads it for a price.
48
48
  *
49
- * The tariffs of decision 84 (provisional, pendency 76), in micro USD per unit:
49
+ * The tariffs (provisional), in micro USD per unit:
50
50
  * renders US$ 0,02 per 1.000; SSR renders US$ 0,015 per 1.000; SSR version-day US$ 0,01 (no
51
51
  * included amount in v1); build over the weekly limit US$ 0,01; stored submission US$ 0,25 per
52
- * 1.000; storage US$ 1,00 per GB-month (1000 per MB, raised from 0,35 on 2026-11-15 by the owner; migration 0097, on the average of the cycle's daily readings); extra site US$ 1 (Pro) and US$ 2 (Agency, the existing
52
+ * 1.000; storage US$ 1,00 per GB-month (1000 per MB, on the average of the cycle's daily readings); extra site US$ 1 (Pro) and US$ 2 (Agency, the existing
53
53
  * add-on price, billed on the plan subscription, so its overage rate is informational).
54
54
  */
55
55
  export declare const OVERAGE_RATES: Readonly<Record<OverageMetric, OverageRate>>;
56
56
  /** The metrics in a fixed order (ledger and Stripe meters follow it). */
57
57
  export declare const OVERAGE_METRIC_LIST: readonly OverageMetric[];
58
58
  /**
59
- * The rules around the money of an overage (decision 84, ADR 0067), numbers only:
59
+ * The rules around the money of an overage, numbers only:
60
60
  * - `minInvoiceUsdCents`: below it the amount carries to the next month.
61
61
  * - `lagHours`: the ledger bills what was counted at least this long ago, never the live count.
62
- * - NO default spending limit (owner, 2026-11-14, TAG-1629): the customer pays what they use. A
62
+ * - NO default spending limit: the customer pays what they use. A
63
63
  * spending LIMIT is OPTIONAL, set by the customer or by staff, between `spendCapMinUsdCents` and
64
64
  * `spendCapMaxUsdCents` (staff: `staffSpendCapMaxUsdCents`). It is a trigger, not a ceiling on the
65
65
  * bill: Taggor TRIES to stop the use when the overage reaches it, WITHOUT guarantee, and what was
@@ -68,8 +68,7 @@ export declare const OVERAGE_METRIC_LIST: readonly OverageMetric[];
68
68
  * e-mail per milestone per cycle. `spendMilestonePercents` are the named steps of the DEFAULT list
69
69
  * (percent of the plan's monthly price: 50%, 100%, 200%, 500%); from there it keeps going, doubling
70
70
  * from `spendMilestoneDoublingFrom` (1000%, 2000%, 4000%...) up to `maxSpendMilestones` milestones
71
- * in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500% (TAG-1629
72
- * review M4). The customer may set their own list of up to `maxSpendMilestones` amounts, each at
71
+ * in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500%. The customer may set their own list of up to `maxSpendMilestones` amounts, each at
73
72
  * most `spendMilestoneMaxUsdCents`.
74
73
  * - `dunningDays`: how long an unpaid overage invoice is chased before new overage is suspended.
75
74
  * - `freeCutMultiple`: Free is cut at this multiple of its number (1x, no grace).
@@ -101,10 +100,9 @@ export declare function defaultSpendMilestonePercents(): readonly number[];
101
100
  */
102
101
  export declare function overageMicroUsdPerUnit(metric: OverageMetric, planId: PlanId): number | null;
103
102
  /**
104
- * Which of the forgeable metrics are billed (TAG-1628 review M1 and L2, ADR 0067 item 8; ON since
105
- * TAG-1629, decision 84 amendment of 2026-11-14). A render and a stored submission can be forged by
106
- * anyone with the public site key, so they were kept off the bill until a guard existed. The owner
107
- * decided that a customer pays what was used, so the three metrics are billed; the guard (a spike
103
+ * Which of the forgeable metrics are billed (all three are on). A render and a stored submission can be forged by
104
+ * anyone with the public site key, so they were kept off the bill until a guard existed. The rule
105
+ * is that a customer pays what was used, so the three metrics are billed; the guard (a surge
108
106
  * flag per site, `usage-guard.ts`) no longer holds anything back, it only keeps the Free plan from
109
107
  * being cut by forged traffic and warns the customer of an unusual day, and the safety net for a wrong
110
108
  * bill is the credit on request (runbook). The switch stays in ONE place: the billing code of the API
@@ -119,7 +117,7 @@ export interface OverageBillingGates {
119
117
  /** The submissions metric and the storage that follows it. */
120
118
  readonly submissions: boolean;
121
119
  }
122
- /** The gates as the code ships them: both on (TAG-1629); frozen, the literal types are `true`. */
120
+ /** The gates as the code ships them: both on; frozen, the literal types are `true`. */
123
121
  export declare const OVERAGE_BILLING_GATES: Readonly<{
124
122
  readonly loaderHits: true;
125
123
  readonly submissions: true;
@@ -1 +1 @@
1
- {"version":3,"file":"plan-pricing.d.ts","sourceRoot":"","sources":["../src/plan-pricing.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExF,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,sGAAsG;AACtG,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;I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ClC,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,uFAAuF;AACvF,eAAO,MAAM,qBAAqB;;;EAGvB,CAAC;AAEZ;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,EACrB,KAAK,GAAE,mBAA2C,GACjD,OAAO,CAIT;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,mBAA2C,GACjD,OAAO,CAGT;AAED,gGAAgG;AAChG,eAAO,MAAM,sBAAsB,EAAE,SAAS,aAAa,EAE1D,CAAC"}
@@ -1,19 +1,18 @@
1
1
  /**
2
- * What each plan COSTS, the Agency site extension and the overage rates and rules (TAG-1934 P0, from
3
- * decisions 68 and 71; TAG-1628, decision 84, replaced the cut rule of decisions 69 and 71). Zod-free, frozen, same style as `plan-usage.ts` and `plan-limits.ts`.
2
+ * What each plan COSTS, the Agency site extension and the overage rates and rules. Zod-free, frozen, same style as `plan-usage.ts` and `plan-limits.ts`.
4
3
  *
5
4
  * Why it lives in the contract: the billing catalog (`apps/api/src/domain/billing/plans.ts`) and the
6
5
  * public site both need these numbers, and a number written twice drifts. The billing catalog
7
6
  * composes its rows from here; the site reads them through its figures registry, so no plan price
8
7
  * is typed by hand in site copy.
9
8
  *
10
- * ALL NUMBERS ARE PROVISIONAL until the owner approves the plans and prices
11
- * (docs/pricing/planos-e-limites-proposta.md v3). Money is US dollar cents (decision 68 item 1).
9
+ * ALL NUMBERS ARE PROVISIONAL until the plans and prices are final.
10
+ * Money is US dollar cents.
12
11
  * Nothing here charges or cuts; it is a table.
13
12
  *
14
- * TAG-1628 (decision 84, ADR 0067): the overage rate table below (`OVERAGE_RATES`) is the ONE place
13
+ * The overage rate table below (`OVERAGE_RATES`) is the ONE place
15
14
  * the price of a unit above the plan is written; the site, the portal, the API and the Stripe
16
- * prices read it. Rates are PROVISIONAL until the owner answers pendency 76.
15
+ * prices read it. Rates are provisional until the prices are final.
17
16
  */
18
17
  import { planQuotas } from "./plan-limits.js";
19
18
  import { LIMIT_CATALOG, OVERAGE_METRICS } from "./limit-catalog.js";
@@ -40,15 +39,15 @@ export const planPricing = Object.freeze({
40
39
  });
41
40
  const bothPaid = (value) => Object.freeze({ pro: value, agency: value });
42
41
  /**
43
- * THE SEED of the rate table (TAG-1629, owner 2026-11-14): the tariffs live in the database
42
+ * THE SEED of the rate table: the tariffs live in the database
44
43
  * (`overage_rates`, versions with an effective date, edited by staff with a reason) and this table
45
44
  * is only what migration 0081 inserted as version 1 and what every reader falls back to when the
46
45
  * database cannot be read. A test compares it with the migration; nothing else reads it for a price.
47
46
  *
48
- * The tariffs of decision 84 (provisional, pendency 76), in micro USD per unit:
47
+ * The tariffs (provisional), in micro USD per unit:
49
48
  * renders US$ 0,02 per 1.000; SSR renders US$ 0,015 per 1.000; SSR version-day US$ 0,01 (no
50
49
  * included amount in v1); build over the weekly limit US$ 0,01; stored submission US$ 0,25 per
51
- * 1.000; storage US$ 1,00 per GB-month (1000 per MB, raised from 0,35 on 2026-11-15 by the owner; migration 0097, on the average of the cycle's daily readings); extra site US$ 1 (Pro) and US$ 2 (Agency, the existing
50
+ * 1.000; storage US$ 1,00 per GB-month (1000 per MB, on the average of the cycle's daily readings); extra site US$ 1 (Pro) and US$ 2 (Agency, the existing
52
51
  * add-on price, billed on the plan subscription, so its overage rate is informational).
53
52
  */
54
53
  export const OVERAGE_RATES = Object.freeze({
@@ -83,10 +82,10 @@ export const OVERAGE_RATES = Object.freeze({
83
82
  /** The metrics in a fixed order (ledger and Stripe meters follow it). */
84
83
  export const OVERAGE_METRIC_LIST = OVERAGE_METRICS;
85
84
  /**
86
- * The rules around the money of an overage (decision 84, ADR 0067), numbers only:
85
+ * The rules around the money of an overage, numbers only:
87
86
  * - `minInvoiceUsdCents`: below it the amount carries to the next month.
88
87
  * - `lagHours`: the ledger bills what was counted at least this long ago, never the live count.
89
- * - NO default spending limit (owner, 2026-11-14, TAG-1629): the customer pays what they use. A
88
+ * - NO default spending limit: the customer pays what they use. A
90
89
  * spending LIMIT is OPTIONAL, set by the customer or by staff, between `spendCapMinUsdCents` and
91
90
  * `spendCapMaxUsdCents` (staff: `staffSpendCapMaxUsdCents`). It is a trigger, not a ceiling on the
92
91
  * bill: Taggor TRIES to stop the use when the overage reaches it, WITHOUT guarantee, and what was
@@ -95,8 +94,7 @@ export const OVERAGE_METRIC_LIST = OVERAGE_METRICS;
95
94
  * e-mail per milestone per cycle. `spendMilestonePercents` are the named steps of the DEFAULT list
96
95
  * (percent of the plan's monthly price: 50%, 100%, 200%, 500%); from there it keeps going, doubling
97
96
  * from `spendMilestoneDoublingFrom` (1000%, 2000%, 4000%...) up to `maxSpendMilestones` milestones
98
- * in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500% (TAG-1629
99
- * review M4). The customer may set their own list of up to `maxSpendMilestones` amounts, each at
97
+ * in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500%. The customer may set their own list of up to `maxSpendMilestones` amounts, each at
100
98
  * most `spendMilestoneMaxUsdCents`.
101
99
  * - `dunningDays`: how long an unpaid overage invoice is chased before new overage is suspended.
102
100
  * - `freeCutMultiple`: Free is cut at this multiple of its number (1x, no grace).
@@ -137,7 +135,7 @@ export function overageMicroUsdPerUnit(metric, planId) {
137
135
  const rates = OVERAGE_RATES[metric].microUsdPerUnit;
138
136
  return rates[planId] ?? null;
139
137
  }
140
- /** The gates as the code ships them: both on (TAG-1629); frozen, the literal types are `true`. */
138
+ /** The gates as the code ships them: both on; frozen, the literal types are `true`. */
141
139
  export const OVERAGE_BILLING_GATES = Object.freeze({
142
140
  loaderHits: true,
143
141
  submissions: true,
@@ -1 +1 @@
1
- {"version":3,"file":"plan-pricing.js","sourceRoot":"","sources":["../src/plan-pricing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;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,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,WAAW,CAAC;IAC/E,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAY,EACZ,QAA6B,qBAAqB;IAElD,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC;IAC5E,OAAO,MAAM,EAAE,IAAI,KAAK,SAAS,IAAI,qBAAqB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACnF,CAAC;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,sBAAsB,GAA6B,MAAM,CAAC,MAAM,CAC3E,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAClE,CAAC"}
@@ -3,25 +3,25 @@ import { type PlanId } from "./plan-limits.js";
3
3
  export interface PlanUsage {
4
4
  /** Loader deliveries that count toward the plan (`countsTowardUsage`), the proxy of renders. */
5
5
  readonly rendersPerMonth: number;
6
- /** Server renders of `GET /r/` (cache misses the edge rendered) in the month (ADR 0066). */
6
+ /** Server renders of `GET /r/` (cache misses the edge rendered) in the month. */
7
7
  readonly ssrRendersPerMonth: number;
8
8
  /** Submissions accepted (not spam, not from a staging site). */
9
9
  readonly submissionsPerMonth: number;
10
10
  /** Bytes the submissions of the workspace hold (the JSON of `data`). */
11
11
  readonly storageBytes: number;
12
12
  /**
13
- * The most days a submission lives (decision 68, item 11: 12, 24 and 36 months). A collection
14
- * may choose fewer days, never more (TAG-713).
13
+ * The most days a submission lives (12, 24 and 36 months). A collection
14
+ * may choose fewer days, never more.
15
15
  */
16
16
  readonly retentionDays: number;
17
17
  }
18
18
  /** The usage allowance of every plan, by plan id. Frozen. */
19
19
  export declare const planUsage: Readonly<Record<PlanId, PlanUsage>>;
20
- /** The percentages of an allowance at which a customer is warned (decision 69: 80% and 100%). */
20
+ /** The percentages of an allowance at which a customer is warned (80% and 100%). */
21
21
  export declare const USAGE_WARNING_PERCENTS: readonly [80, 100];
22
22
  /**
23
23
  * Where a count stands against its allowance. `ok` below 80%, `warning` from 80%, `reached` from
24
- * 100%. Nothing acts on it in this ticket; TAG-1607 adds grace and the rest.
24
+ * 100%. Nothing acts on it in this ticket; adds grace and the rest.
25
25
  */
26
26
  export declare const USAGE_LEVELS: readonly ["ok", "warning", "reached"];
27
27
  export type UsageLevel = (typeof USAGE_LEVELS)[number];
@@ -38,17 +38,17 @@ export declare function usagePercent(used: number, limit: number): number;
38
38
  */
39
39
  export declare function usageLevel(used: number, limit: number): UsageLevel;
40
40
  /**
41
- * The rule that marks a site's render count as suspect (security review of TAG-801): the key of a
41
+ * The rule that marks a site's render count as suspect: the key of a
42
42
  * site and its allowed domains are public, so anyone can forge loader hits with a `Referer` and a
43
43
  * `User-Agent`. A day with more than `multiplier` times the mean of the `baselineDays` days before
44
- * it, and at least `minViews`, is a spike. PROVISIONAL, owner-confirmable.
44
+ * it, and at least `minViews`, is a surge. Provisional.
45
45
  *
46
46
  * What it does NOT catch: a slow ramp (each day under `multiplier` times the days before it) and
47
47
  * steady traffic below `minViews` a day. `minViews` here is only the ceiling of the floor; the
48
48
  * plan's own floor is `spikeMinViews`, so steady forging is bounded by the plan (at most about
49
49
  * `rendersPerMonth` in a month) instead of by a fixed 1,000 a day. The guard is a brake on sudden
50
- * spikes, not proof of authenticity: nothing may cut a component for renders without a person
51
- * having looked (TAG-1607).
50
+ * surges, not proof of authenticity: nothing may cut a component for renders without a person
51
+ * having looked.
52
52
  */
53
53
  export declare const VIEW_SPIKE_RULE: Readonly<{
54
54
  multiplier: 10;
@@ -56,22 +56,22 @@ export declare const VIEW_SPIKE_RULE: Readonly<{
56
56
  /** The most a day's floor is, whatever the plan; see `spikeMinViews`. */
57
57
  minViews: 1000;
58
58
  }>;
59
- /** A spike rule with its own floor. */
59
+ /** A surge rule with its own floor. */
60
60
  export interface ViewSpikeRule {
61
61
  readonly multiplier: number;
62
62
  readonly baselineDays: number;
63
63
  readonly minViews: number;
64
64
  }
65
65
  /**
66
- * The daily floor of a plan: a day below it is never a spike.
66
+ * The daily floor of a plan: a day below it is never a surge.
67
67
  * Inputs: the plan's renders per month. Output: the lower of `VIEW_SPIKE_RULE.minViews` and a
68
68
  * thirtieth of the month (at least 1), so quietly forging the plan's whole month in 30 equal days
69
- * is a spike on the first day that passes the floor rather than going unseen. Errors: none. No
69
+ * is a surge on the first day that passes the floor rather than going unseen. Errors: none. No
70
70
  * side effects.
71
71
  */
72
72
  export declare function spikeMinViews(rendersPerMonth: number): number;
73
73
  /**
74
- * The spike rule of a plan. Inputs: a plan id (unknown: the default plan). Output: the rule with
74
+ * The surge rule of a plan. Inputs: a plan id (unknown: the default plan). Output: the rule with
75
75
  * the plan's floor. Errors: none. No side effects.
76
76
  */
77
77
  export declare function spikeRuleOf(planId: string | undefined): ViewSpikeRule;
@@ -89,19 +89,19 @@ export interface ViewSpike {
89
89
  readonly baselineMean: number;
90
90
  }
91
91
  /**
92
- * Every day of a series that is a spike, earliest first.
92
+ * Every day of a series that is a surge, earliest first.
93
93
  * Inputs: the counted views per UTC day (any order; a missing day is zero), the current time, the
94
94
  * rule and the first day to examine (default: yesterday, so today, still partial, and yesterday are
95
- * looked at). Output: the spikes among the days from `from` to today, each day against the mean of
96
- * the `baselineDays` days before it (possibly none). All of them, not the first: a spike a person
95
+ * looked at). Output: the surges among the days from `from` to today, each day against the mean of
96
+ * the `baselineDays` days before it (possibly none). All of them, not the first: a surge a person
97
97
  * already judged `legit` must not hide a later one. A caller that measures a workspace only
98
- * every few hours passes the first day of the month, so a spike that happened between two visits
98
+ * every few hours passes the first day of the month, so a surge that happened between two visits
99
99
  * is still found. Days before the series count as zero: give it `baselineDays` days before `from`.
100
100
  * Errors: none. No side effects.
101
101
  */
102
102
  export declare function detectViewSpikes(series: readonly DailyViews[], now: Date, rule?: ViewSpikeRule, from?: Date): ViewSpike[];
103
103
  /**
104
- * The first spike of `detectViewSpikes`, or `null`. Same inputs. Errors: none. No side effects.
104
+ * The first surge of `detectViewSpikes`, or `null`. Same inputs. Errors: none. No side effects.
105
105
  */
106
106
  export declare function detectViewSpike(series: readonly DailyViews[], now: Date, rule?: ViewSpikeRule, from?: Date): ViewSpike | null;
107
107
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"plan-usage.d.ts","sourceRoot":"","sources":["../src/plan-usage.ts"],"names":[],"mappings":"AAYA,OAAO,EAAuC,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEpF,+FAA+F;AAC/F,MAAM,WAAW,SAAS;IACxB,gGAAgG;IAChG,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,gEAAgE;IAChE,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAKD,6DAA6D;AAC7D,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAKzD,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,sBAAsB,oBAAoC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,uCAAwC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GA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