@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,18 +1,18 @@
1
1
  /**
2
- * The source package format (TAG-407): what a component's source looks like when it is uploaded,
3
- * stored and built. `SPEC.md` §10 describes it; ADR 0017 and threats T-23, T-41, T-45 and T-46
4
- * say why it is this strict.
2
+ * The source package format: what a component's source looks like when it is uploaded,
3
+ * stored and built. `SPEC.md` §10 describes it;
4
+ * the threat model says why it is this strict.
5
5
  *
6
6
  * A package is a gzip-compressed POSIX tar (ustar/pax) of regular UTF-8 files:
7
7
  *
8
8
  * - `src/…`: the component's code and styles; the entry is `src/index.tsx` (or `.ts`, `.jsx`,
9
- * `.js`) unless `taggor.json` names another file under `src/`; since TAG-410 also the images
9
+ * `.js`) unless `taggor.json` names another file under `src/`; also the images
10
10
  * and WOFF2 fonts the code imports, kept as bytes (`assets`);
11
11
  * - `taggor.json` (optional): the keys of `sourcePackageConfigSchema` (`$schema`, `entry`, and
12
12
  * the project's own `components`, `site_key`, `workspace` so a project file is not refused), nothing else;
13
13
  * - `package.json` (optional): any npm fields; `dependencies`, when present, maps package names
14
- * to version ranges (TAG-402 resolves them against the allowlist). The checked package carries
15
- * them as sorted name and range pairs (TAG-428), so the builder reads them from here and no
14
+ * to version ranges (resolves them against the allowlist). The checked package carries
15
+ * them as sorted name and range pairs, so the builder reads them from here and no
16
16
  * second reader of `package.json` exists.
17
17
  *
18
18
  * `unpackSourcePackage` is the single validator: the API runs it before storing a package
@@ -27,7 +27,7 @@ import * as z from "zod";
27
27
  import type { BuildDiagnostic } from "./build-diagnostic.js";
28
28
  import { type SourceArchiveLimits, type SourceProblem } from "./source-archive.js";
29
29
  /**
30
- * Limits of a source package (T-23, T-45). The builder's `BUILD_LIMITS` reads the same numbers,
30
+ * Limits of a source package. The builder's `BUILD_LIMITS` reads the same numbers,
31
31
  * so the API never stores a package the container would refuse for its size.
32
32
  *
33
33
  * Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
@@ -43,7 +43,7 @@ export declare const SOURCE_PACKAGE_LIMITS: Readonly<{
43
43
  /** Regular files. */
44
44
  maxFiles: 500;
45
45
  /**
46
- * Headers of any kind, folders and pax headers included (TAG-407 re-review, B8):
46
+ * Headers of any kind, folders and pax headers included:
47
47
  * `ENTRIES_PER_FILE` × `maxFiles`.
48
48
  */
49
49
  maxEntries: 2000;
@@ -57,7 +57,7 @@ export declare const SOURCE_PACKAGE_LIMITS: Readonly<{
57
57
  maxDependencies: 100;
58
58
  /** Characters of a `$schema` URL in `taggor.json`. */
59
59
  schemaUrlMaxLength: 2048;
60
- /** Entries of `components` in the project's `taggor.json` (TAG-240). */
60
+ /** Entries of `components` in the project's `taggor.json`. */
61
61
  maxProjectComponents: 100;
62
62
  }>;
63
63
  /** The limits `unpackSourcePackage` applies (`SOURCE_PACKAGE_LIMITS` or a test's own). */
@@ -66,7 +66,7 @@ export type SourcePackageLimits = SourceArchiveLimits & {
66
66
  };
67
67
  /**
68
68
  * The limits a plan sets on the source package, for the API at upload and for the builder in the
69
- * container, so both refuse the same package (TAG-909, review of TAG-425).
69
+ * container, so both refuse the same package.
70
70
  *
71
71
  * Inputs: the compressed size and the file count the plan allows (`planLimits`' `maxSourceBytes`
72
72
  * and `maxFiles`, possibly lowered by the platform). Output: `SOURCE_PACKAGE_LIMITS` with those
@@ -89,14 +89,15 @@ export declare const SOURCE_ENTRY_CANDIDATES: readonly string[];
89
89
  */
90
90
  export declare const SOURCE_ENTRY_PATTERN: RegExp;
91
91
  /**
92
- * `taggor.json`, the one file name of two places (TAG-240): at the root of a source package it
92
+ * `taggor.json`, the one file name of two places: at the root of a source package it
93
93
  * holds the package's settings; at the root of a project it also lists the project's
94
94
  * `components` and the CLI's `site_key` and `workspace`. One strict schema covers both, so an
95
95
  * editor validates either and the package reader never refuses a project file's own keys.
96
96
  *
97
97
  * `$schema` lets an editor validate the file; `entry` names the component's entry module when it is
98
98
  * not `src/index.tsx` (or `.ts`, `.jsx`, `.js`); `components` are `{ name, path }` entries
99
- * (`taggor init`); `site_key` is the site `taggor sites create` recorded; `workspace` is the
99
+ * (`taggor init`); `site_key` is accepted so an older project stays valid, but the CLI no longer reads or writes it
100
+ * (the site is always named); `workspace` is the
100
101
  * default workspace slug of `taggor workspaces use --project`. The CLI keeps unknown keys of a
101
102
  * file it edits, but the schema stays strict so a typo shows in the editor.
102
103
  */
@@ -121,7 +122,7 @@ export declare const sourcePackageJsonSchema: z.ZodObject<{
121
122
  }, z.core.$loose>;
122
123
  /** A decoded `package.json` (only the fields Taggor reads are typed). */
123
124
  export type SourcePackageJson = z.infer<typeof sourcePackageJsonSchema>;
124
- /** One entry of `package.json` `dependencies`, as the package writes it (TAG-428). */
125
+ /** One entry of `package.json` `dependencies`, as the package writes it. */
125
126
  export interface SourcePackageDependency {
126
127
  /** An npm package name (`clsx`, `@floating-ui/dom`), at most 214 characters. */
127
128
  readonly name: string;
@@ -134,7 +135,7 @@ export interface CheckedSourcePackage {
134
135
  /** Virtual path → UTF-8 text of every file but the assets. */
135
136
  readonly files: ReadonlyMap<string, string>;
136
137
  /**
137
- * Virtual path → bytes of every asset file (TAG-410: images and WOFF2 fonts under `src/`, the
138
+ * Virtual path → bytes of every asset file (images and WOFF2 fonts under `src/`, the
138
139
  * extensions of `ASSET_SOURCE_EXTENSIONS`); empty when the package has none. Untrusted bytes:
139
140
  * the builder checks each one before anything is published.
140
141
  */
@@ -146,7 +147,7 @@ export interface CheckedSourcePackage {
146
147
  /**
147
148
  * `package.json` `dependencies`, validated by `sourcePackageJsonSchema` and sorted by name
148
149
  * (empty when the package declares none). Untrusted text: names and ranges are bounded and
149
- * free of control characters, not resolved (TAG-428).
150
+ * free of control characters, not resolved.
150
151
  */
151
152
  readonly dependencies: readonly SourcePackageDependency[];
152
153
  }
@@ -163,7 +164,7 @@ export type SourcePackageResult = CheckedSourcePackage | RefusedSourcePackage;
163
164
  * Checks the files of a package that already passed the archive reader: `taggor.json` and
164
165
  * `package.json` (when present) and the entry.
165
166
  *
166
- * Inputs: the file map of `readSourceArchive` and its assets (TAG-410; none by default), carried
167
+ * Inputs: the file map of `readSourceArchive` and its assets (none by default), carried
167
168
  * through unchanged. Output: the package with its entry, settings and
168
169
  * declared `dependencies` (sorted name and range pairs), or the problems (`SOURCE_METADATA_INVALID` per bad file, then `ENTRY_NOT_FOUND` when the entry
169
170
  * named in `taggor.json`, or every candidate, is missing). Errors: none. Side effects: none.
@@ -215,7 +216,7 @@ export declare function sourceProblemDiagnostics(problems: readonly SourceProble
215
216
  */
216
217
  export declare function sourcePackageKey(sha256: string): string;
217
218
  /**
218
- * The hash a storage key addresses (TAG-437), the inverse of `sourcePackageKey`: the builder's
219
+ * The hash a storage key addresses, the inverse of `sourcePackageKey`: the builder's
219
220
  * cache reads it from a build record's `sourceKey` and checks the stored bytes against it.
220
221
  *
221
222
  * Inputs: any string (a key read from storage, not trusted). Output: the lowercase hex SHA-256
@@ -1 +1 @@
1
- {"version":3,"file":"source-package.d.ts","sourceRoot":"","sources":["../src/source-package.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAI7B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAChC,4CAA4C;;IAE5C;;;OAGG;;IAEH,qBAAqB;;IAErB;;;OAGG;;IAEH,iDAAiD;;IAEjD,iFAAiF;;IAEjF,yEAAyE;;IAEzE,gDAAgD;;IAEhD,sDAAsD;;IAEtD,wEAAwE;;EAExE,CAAC;AAEH,0FAA0F;AAC1F,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACtD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAA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,EAClC,MAAM,GAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAa,GAClD,mBAAmB,CA+BrB;AAED,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,CAAA;CAAE,CAAC;AAErE;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;AAE3F;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,mBAA2C,GAClD,OAAO,CAAC,mBAAmB,CAAC,CA6B9B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,SAAS,aAAa,EAAE,GACjC,SAAS,eAAe,EAAE,CAI5B;AAQD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIrE"}
@@ -1,18 +1,18 @@
1
1
  /**
2
- * The source package format (TAG-407): what a component's source looks like when it is uploaded,
3
- * stored and built. `SPEC.md` §10 describes it; ADR 0017 and threats T-23, T-41, T-45 and T-46
4
- * say why it is this strict.
2
+ * The source package format: what a component's source looks like when it is uploaded,
3
+ * stored and built. `SPEC.md` §10 describes it;
4
+ * the threat model says why it is this strict.
5
5
  *
6
6
  * A package is a gzip-compressed POSIX tar (ustar/pax) of regular UTF-8 files:
7
7
  *
8
8
  * - `src/…`: the component's code and styles; the entry is `src/index.tsx` (or `.ts`, `.jsx`,
9
- * `.js`) unless `taggor.json` names another file under `src/`; since TAG-410 also the images
9
+ * `.js`) unless `taggor.json` names another file under `src/`; also the images
10
10
  * and WOFF2 fonts the code imports, kept as bytes (`assets`);
11
11
  * - `taggor.json` (optional): the keys of `sourcePackageConfigSchema` (`$schema`, `entry`, and
12
12
  * the project's own `components`, `site_key`, `workspace` so a project file is not refused), nothing else;
13
13
  * - `package.json` (optional): any npm fields; `dependencies`, when present, maps package names
14
- * to version ranges (TAG-402 resolves them against the allowlist). The checked package carries
15
- * them as sorted name and range pairs (TAG-428), so the builder reads them from here and no
14
+ * to version ranges (resolves them against the allowlist). The checked package carries
15
+ * them as sorted name and range pairs, so the builder reads them from here and no
16
16
  * second reader of `package.json` exists.
17
17
  *
18
18
  * `unpackSourcePackage` is the single validator: the API runs it before storing a package
@@ -34,7 +34,7 @@ import { MAX_SOURCE_PROBLEMS, readSourceArchive, } from "./source-archive.js";
34
34
  import { SITE_KEY_PATTERN } from "./site-manifest-keys.js";
35
35
  import { parseBoundedJson } from "./value-check.js";
36
36
  /**
37
- * Limits of a source package (T-23, T-45). The builder's `BUILD_LIMITS` reads the same numbers,
37
+ * Limits of a source package. The builder's `BUILD_LIMITS` reads the same numbers,
38
38
  * so the API never stores a package the container would refuse for its size.
39
39
  *
40
40
  * Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
@@ -50,7 +50,7 @@ export const SOURCE_PACKAGE_LIMITS = Object.freeze({
50
50
  /** Regular files. */
51
51
  maxFiles: 500,
52
52
  /**
53
- * Headers of any kind, folders and pax headers included (TAG-407 re-review, B8):
53
+ * Headers of any kind, folders and pax headers included:
54
54
  * `ENTRIES_PER_FILE` × `maxFiles`.
55
55
  */
56
56
  maxEntries: 2_000,
@@ -64,12 +64,12 @@ export const SOURCE_PACKAGE_LIMITS = Object.freeze({
64
64
  maxDependencies: 100,
65
65
  /** Characters of a `$schema` URL in `taggor.json`. */
66
66
  schemaUrlMaxLength: 2_048,
67
- /** Entries of `components` in the project's `taggor.json` (TAG-240). */
67
+ /** Entries of `components` in the project's `taggor.json`. */
68
68
  maxProjectComponents: 100,
69
69
  });
70
70
  /**
71
71
  * The limits a plan sets on the source package, for the API at upload and for the builder in the
72
- * container, so both refuse the same package (TAG-909, review of TAG-425).
72
+ * container, so both refuse the same package.
73
73
  *
74
74
  * Inputs: the compressed size and the file count the plan allows (`planLimits`' `maxSourceBytes`
75
75
  * and `maxFiles`, possibly lowered by the platform). Output: `SOURCE_PACKAGE_LIMITS` with those
@@ -104,20 +104,21 @@ export const SOURCE_ENTRY_CANDIDATES = Object.freeze([
104
104
  * digits, `.`, `_`, `-`; never `.` or `..`) and a code extension.
105
105
  */
106
106
  export const SOURCE_ENTRY_PATTERN = /^src\/(?:(?!\.\.?\/)[A-Za-z0-9._-]+\/)*[A-Za-z0-9._-]+\.(?:tsx|ts|jsx|js)$/;
107
- /** One component the project's `taggor.json` lists: its tag and its folder (TAG-240). */
107
+ /** One component the project's `taggor.json` lists: its tag and its folder. */
108
108
  const projectComponentSchema = z.strictObject({
109
109
  name: z.string().min(1).max(64),
110
110
  path: z.string().min(1).max(SOURCE_PACKAGE_LIMITS.maxPathLength),
111
111
  });
112
112
  /**
113
- * `taggor.json`, the one file name of two places (TAG-240): at the root of a source package it
113
+ * `taggor.json`, the one file name of two places: at the root of a source package it
114
114
  * holds the package's settings; at the root of a project it also lists the project's
115
115
  * `components` and the CLI's `site_key` and `workspace`. One strict schema covers both, so an
116
116
  * editor validates either and the package reader never refuses a project file's own keys.
117
117
  *
118
118
  * `$schema` lets an editor validate the file; `entry` names the component's entry module when it is
119
119
  * not `src/index.tsx` (or `.ts`, `.jsx`, `.js`); `components` are `{ name, path }` entries
120
- * (`taggor init`); `site_key` is the site `taggor sites create` recorded; `workspace` is the
120
+ * (`taggor init`); `site_key` is accepted so an older project stays valid, but the CLI no longer reads or writes it
121
+ * (the site is always named); `workspace` is the
121
122
  * default workspace slug of `taggor workspaces use --project`. The CLI keeps unknown keys of a
122
123
  * file it edits, but the schema stays strict so a typo shows in the editor.
123
124
  */
@@ -246,7 +247,7 @@ function refused(problems) {
246
247
  * Checks the files of a package that already passed the archive reader: `taggor.json` and
247
248
  * `package.json` (when present) and the entry.
248
249
  *
249
- * Inputs: the file map of `readSourceArchive` and its assets (TAG-410; none by default), carried
250
+ * Inputs: the file map of `readSourceArchive` and its assets (none by default), carried
250
251
  * through unchanged. Output: the package with its entry, settings and
251
252
  * declared `dependencies` (sorted name and range pairs), or the problems (`SOURCE_METADATA_INVALID` per bad file, then `ENTRY_NOT_FOUND` when the entry
252
253
  * named in `taggor.json`, or every candidate, is missing). Errors: none. Side effects: none.
@@ -344,7 +345,7 @@ export function sourcePackageKey(sha256) {
344
345
  return `${SOURCE_KEY_PREFIX}${sha256}${SOURCE_KEY_SUFFIX}`;
345
346
  }
346
347
  /**
347
- * The hash a storage key addresses (TAG-437), the inverse of `sourcePackageKey`: the builder's
348
+ * The hash a storage key addresses, the inverse of `sourcePackageKey`: the builder's
348
349
  * cache reads it from a build record's `sourceKey` and checks the stored bytes against it.
349
350
  *
350
351
  * Inputs: any string (a key read from storage, not trusted). Output: the lowercase hex SHA-256
@@ -1 +1 @@
1
- {"version":3,"file":"source-package.js","sourceRoot":"","sources":["../src/source-package.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EACL,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C,GAAG,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7F,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC1F,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `SECRET_IN_SOURCE` for a source package's files (TAG-1707; moved here by TAG-909): the one place
2
+ * `SECRET_IN_SOURCE` for a source package's files (moved here): the one place
3
3
  * that turns the detector's findings (`scanSecrets`) into build diagnostics, shared by the
4
4
  * builder, which refuses a package whose files hold a credential, and the API, which refuses the
5
5
  * same package at upload, before it is stored (a component's code is public).
package/dist/ssr-cap.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  export declare const SSR_CAP_MARK_VERSION = 1;
3
3
  /**
4
4
  * How long a mark lives without being rewritten (KV `expirationTtl`): the same 6 hours as the renders
5
- * cut (TAG-1630 finding 6: at 2 hours it lapsed between two visits of the usage job as soon as there
5
+ * cut (at 2 hours it lapsed between two visits of the usage job as soon as there
6
6
  * were more than about 50 workspaces, and the cut stopped holding). A staff override or a plan upgrade
7
7
  * reaches the edge within six hours even when the job does not rewrite the mark; a job that stops
8
8
  * lifts the cut by itself.
package/dist/ssr-cap.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * The SSR plan cut mark (spike, ADR 0066, no ticket): what the API's hourly usage job writes to the
2
+ * The SSR plan cut mark: what the API's hourly usage job writes to the
3
3
  * edge's `MANIFESTS` KV when a workspace's server renders reached `ssrRendersPerMonth`, the only SSR
4
4
  * plan limit, and the one rule the edge applies to it on `GET /r/<siteKey>/<tag>`. Zod-free: the API
5
5
  * writes it and the edge reads it.
6
6
  *
7
- * Same pattern as the renders cut (`viewcap:<siteKey>`, TAG-1714): a KV mark per site that expires
7
+ * Same pattern as the renders cut (`viewcap:<siteKey>`): a KV mark per site that expires
8
8
  * by itself, read with a deadline, and every doubt reads as "not over": a missing, damaged or
9
9
  * unknown-version mark and a month cut of another month all let the fragment through. The only
10
10
  * effect of a mark is "no fragment": the caller writes the bare tag and the browser renders the
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * KV key `ssrcap:<siteKey>`; value JSON `{ v: 1, month: "YYYY-MM" | null }`: `month` set means the
15
15
  * workspace's server renders reached the limit in that UTC month (every fragment refused). Marks
16
- * written before the owner dropped the per-day versions cap (2026-11-13) also carry `day` and
16
+ * written while a per-day versions cap existed also carry `day` and
17
17
  * `versions`; those fields are ignored, never honored: the distinct versions rendered per day are a
18
18
  * measured usage figure now (`ssr-version-ledger.ts`), not a limit.
19
19
  *
@@ -27,7 +27,7 @@ import { isSiteKey } from "./site-manifest-keys.js";
27
27
  export const SSR_CAP_MARK_VERSION = 1;
28
28
  /**
29
29
  * How long a mark lives without being rewritten (KV `expirationTtl`): the same 6 hours as the renders
30
- * cut (TAG-1630 finding 6: at 2 hours it lapsed between two visits of the usage job as soon as there
30
+ * cut (at 2 hours it lapsed between two visits of the usage job as soon as there
31
31
  * were more than about 50 workspaces, and the cut stopped holding). A staff override or a plan upgrade
32
32
  * reaches the edge within six hours even when the job does not rewrite the mark; a job that stops
33
33
  * lifts the cut by itself.
package/dist/ssr-kv.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * `@taggor/contract/ssr-kv` (SSR spike, ADR 0066, no ticket): the KV layouts and key formats of
2
+ * `@taggor/contract/ssr-kv`: the KV layouts and key formats of
3
3
  * server rendering that the edge imports as values: the plan cap mark and the `ssr:off` switches
4
4
  * (`ssr-cap.ts`), the version-day ledger (`ssr-version-ledger.ts`), and the per-site server key
5
5
  * with its checksum (`server-key.ts`, `key-checksum.ts`). Like `zod-free`, nothing reachable from
6
6
  * here imports Zod (zod-free.test.ts walks the graph).
7
7
  *
8
8
  * Why a subpath of its own and not `zod-free`: the browser runtime bundles `zod-free`, and its size
9
- * gate sits on the hard ceiling of ADR 0061. Every name re-exported by that barrel changes how
9
+ * gate sits on the hard ceiling of the runtime bundle (13,850 B). Every name re-exported by that barrel changes how
10
10
  * esbuild's minifier names the runtime's identifiers, even when tree shaking drops the module, and
11
11
  * these exports alone cost the runtime 3 B gz. The runtime never needs them, so they live here.
12
12
  * `@taggor/contract` (the root) re-exports the same names for the API.
package/dist/ssr-kv.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * `@taggor/contract/ssr-kv` (SSR spike, ADR 0066, no ticket): the KV layouts and key formats of
2
+ * `@taggor/contract/ssr-kv`: the KV layouts and key formats of
3
3
  * server rendering that the edge imports as values: the plan cap mark and the `ssr:off` switches
4
4
  * (`ssr-cap.ts`), the version-day ledger (`ssr-version-ledger.ts`), and the per-site server key
5
5
  * with its checksum (`server-key.ts`, `key-checksum.ts`). Like `zod-free`, nothing reachable from
6
6
  * here imports Zod (zod-free.test.ts walks the graph).
7
7
  *
8
8
  * Why a subpath of its own and not `zod-free`: the browser runtime bundles `zod-free`, and its size
9
- * gate sits on the hard ceiling of ADR 0061. Every name re-exported by that barrel changes how
9
+ * gate sits on the hard ceiling of the runtime bundle (13,850 B). Every name re-exported by that barrel changes how
10
10
  * esbuild's minifier names the runtime's identifiers, even when tree shaking drops the module, and
11
11
  * these exports alone cost the runtime 3 B gz. The runtime never needs them, so they live here.
12
12
  * `@taggor/contract` (the root) re-exports the same names for the API.
@@ -8,7 +8,7 @@ export declare const SSR_RENDER_MAX_ATTRIBUTES = 48;
8
8
  export declare const SSR_RENDER_MAX_ATTRIBUTE_CHARS = 8192;
9
9
  /** The site's saved defaults of a component, serialized: far above any real prop set. */
10
10
  export declare const SSR_RENDER_MAX_SITE_DEFAULTS_BYTES: number;
11
- /** The whole request, code excluded, serialized (threat model T-158: bounded input). */
11
+ /** The whole request, code excluded, serialized (bounded input). */
12
12
  export declare const SSR_RENDER_MAX_REQUEST_BYTES: number;
13
13
  /** A fragment above this has no use: the page renders the component itself. */
14
14
  export declare const SSR_RENDER_MAX_HTML_CHARS: number;
@@ -57,7 +57,7 @@ export type SsrRenderFailure =
57
57
  /** The request's protocol version is not one this build accepts (retry after the deploy ends). */
58
58
  | "unsupported";
59
59
  /**
60
- * Why a component that cannot render gave no fragment (TAG-638): a closed list of codes, never an
60
+ * Why a component that cannot render gave no fragment: a closed list of codes, never an
61
61
  * error message (which could hold the customer's data), so the edge may log it with the site key and
62
62
  * count it. Added to the failure without a new protocol version: it is optional, a build that does
63
63
  * not know it ignores it, and one that does reads an answer without it.
@@ -1 +1 @@
1
- {"version":3,"file":"ssr-render.d.ts","sourceRoot":"","sources":["../src/ssr-render.ts"],"names":[],"mappings":"AAmBA,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,kGAAkG;AAClG,eAAO,MAAM,uBAAuB,QAAuC,CAAC;AAE5E,4FAA4F;AAC5F,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,yGAAyG;AACzG,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,yFAAyF;AACzF,eAAO,MAAM,kCAAkC,QAAY,CAAC;AAC5D,wFAAwF;AACxF,eAAO,MAAM,4BAA4B,QAAY,CAAC;AACtD,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,QAAa,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAAkB,CAAC;AAC3D,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAKpD,CAAC;AAEF,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,QAAQ,CAAC,WAAW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GG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC9F;IACE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AA4EN;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GAEZ;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,aAAa,CAAA;CAAE,CAsDrE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAsBhE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAgBhF"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `@taggor/contract/ssr-render` (TAG-1741, threat model T-158): the typed, bounded protocol between
2
+ * `@taggor/contract/ssr-render` (see the threat model): the typed, bounded protocol between
3
3
  * the edge Worker and the `ssr-render` Worker, the only one that owns the Worker Loader.
4
4
  *
5
5
  * The edge validates a server-rendering request (site, key, takedown, limits, cache) and then calls
@@ -26,7 +26,7 @@ export const SSR_RENDER_MAX_ATTRIBUTES = 48;
26
26
  export const SSR_RENDER_MAX_ATTRIBUTE_CHARS = 8192;
27
27
  /** The site's saved defaults of a component, serialized: far above any real prop set. */
28
28
  export const SSR_RENDER_MAX_SITE_DEFAULTS_BYTES = 64 * 1024;
29
- /** The whole request, code excluded, serialized (threat model T-158: bounded input). */
29
+ /** The whole request, code excluded, serialized (bounded input). */
30
30
  export const SSR_RENDER_MAX_REQUEST_BYTES = 80 * 1024;
31
31
  /** A fragment above this has no use: the page renders the component itself. */
32
32
  export const SSR_RENDER_MAX_HTML_CHARS = 512 * 1024;
@@ -43,7 +43,7 @@ export const SSR_RENDER_SHARED_FILES = [
43
43
  "compat.js",
44
44
  ];
45
45
  /**
46
- * Why a component that cannot render gave no fragment (TAG-638): a closed list of codes, never an
46
+ * Why a component that cannot render gave no fragment: a closed list of codes, never an
47
47
  * error message (which could hold the customer's data), so the edge may log it with the site key and
48
48
  * count it. Added to the failure without a new protocol version: it is optional, a build that does
49
49
  * not know it ignores it, and one that does reads an answer without it.
@@ -1 +1 @@
1
- {"version":3,"file":"ssr-render.js","sourceRoot":"","sources":["../src/ssr-render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,2FAA2F;AAC3F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AACrC,kGAAkG;AAClG,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,CAAC;AAE5E,4FAA4F;AAC5F,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAC5C,yGAAyG;AACzG,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,CAAC;AACnD,yFAAyF;AACzF,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,IAAI,CAAC;AAC5D,wFAAwF;AACxF,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,IAAI,CAAC;AACtD,+EAA+E;AAC/E,MAAM,C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W,CAAC;YAAE,OAAO,SAAS,CAAC;QACzF,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC5C,CAAC;IACD,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;QAC9E,OAAO,SAAS,CAAC;IACnB,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/B,OAAO,MAAM,KAAK,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,MAAgB,CAAC;QAChE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAyB,EAAE;QAC7D,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAA0B,EAAE,CAAC;AAC3D,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * The SSR version-day ledger (spike, ADR 0066, no ticket): the exact record of which component
2
+ * The SSR version-day ledger: the exact record of which component
3
3
  * versions each site rendered on the server on each UTC day. It is USAGE, never a limit: the
4
- * vendor bills one isolated Worker per distinct Worker (one per version) created per day, and the
5
- * owner will price "version-days" later (pay-as-you-go). Nothing reads it to refuse anything.
4
+ * vendor bills one isolated Worker per distinct Worker (one per version) created per day, and
5
+ * "version-days" may be priced later (pay-as-you-go). Nothing reads it to refuse anything.
6
6
  * Zod-free: the edge writes it and the API reads it.
7
7
  *
8
8
  * Why not the Analytics Engine points (`ssr_render`, metering.ts): the Analytics Engine samples by
@@ -8,8 +8,7 @@ export type StyleReferenceCode =
8
8
  | "undeclared-css-var"
9
9
  /**
10
10
  * `[part]`, `[part|=…]`, `[part^=…]`, `[part$=…]`, `[part*=…]` or a case-insensitive `i` match:
11
- * a selector that matches parts by pattern, undeclared ones included (TAG-408, from the TAG-206
12
- * security review). Only `[part=name]` and `[part~=name]` name a part.
11
+ * a selector that matches parts by pattern, undeclared ones included. Only `[part=name]` and `[part~=name]` name a part.
13
12
  */
14
13
  | "part-pattern";
15
14
  /** One undeclared reference, at its first occurrence. */
@@ -36,7 +35,7 @@ export interface StyleDeclarations {
36
35
  /**
37
36
  * Where each line of a stylesheet starts, with the line breaks of CSS Syntax §3.3: `\n`, `\f`
38
37
  * and a `\r` not followed by `\n` (CRLF counts once). `cssLineStarts(css)[n - 1]` is the offset
39
- * of line `n`, the numbering `checkStyleReferences` reports (TAG-423: the builder quotes the line).
38
+ * of line `n`, the numbering `checkStyleReferences` reports (the builder quotes the line).
40
39
  *
41
40
  * Inputs: CSS text. Output: the 0-based offsets, the first one `0`, ascending. Errors: never
42
41
  * throws. Side effects: none. Linear in the length.
@@ -1 +1 @@
1
- {"version":3,"file":"style-references.d.ts","sourceRoot":"","sources":["../src/style-references.ts"],"names":[],"mappings":"AAoBA,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,yCAAyC;AACzC,MAAM,MAAM,kBAAkB;AAC5B,6EAA6E;AAC3E,iBAAiB;AACnB,6FAA6F;GAC3F,oBAAoB;AACtB;;;;GAIG;GACD,cAAc,CAAC;AAEnB,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,2FAA2F;IAC3F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,0FAA0F;IAC1F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mDAAmD;IACnD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,i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AO,CAAC,CAAC,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAClE;AAuHD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CASnD;AA6BD;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,EAC/B,YAAY,EAAE,iBAAiB,GAC9B,SAAS,mBAAmB,EAAE,CAmDhC"}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Style references of a component (TAG-206): the theming surface a component's CSS uses must be the one
2
+ * Style references of a component: the theming surface a component's CSS uses must be the one
3
3
  * its manifest declares. `checkStyleReferences` lists every `var(--name)` that is neither a
4
4
  * declared `cssVars` entry nor a custom property the same CSS defines, and every part the CSS
5
- * names (`::part(name)`, `[part=name]`, `[part~=name]`) that `parts` does not declare, and (TAG-408)
5
+ * names (`::part(name)`, `[part=name]`, `[part~=name]`) that `parts` does not declare, and
6
6
  * every `[part]` selector that matches parts by pattern (`[part]`, `[part^=…]`, `[part=x i]`);
7
7
  * `style(--name…)` counts as a use of `--name`, like `var(--name)`. The builder
8
- * (TAG-401/TAG-405) calls it on the component's styles and refuses the build when it reports
8
+ * calls it on the component's styles and refuses the build when it reports
9
9
  * anything, so a host page can rely on the declared variables and parts staying the component's
10
10
  * whole styling API.
11
11
  *
@@ -13,7 +13,7 @@
13
13
  * CSS Syntax Level 3 rules that matter here (raw NUL read as U+FFFD, comments, strings, escapes, `url(` tokens,
14
14
  * identifiers and functions, ASCII case-insensitive function names), runs in linear time and
15
15
  * memory, never evaluates anything and never throws. Names quoted in messages are bounded with
16
- * `boundedSegment` (TAG-220). Zod-free, so any consumer, the runtime included, may import it.
16
+ * `boundedSegment`. Zod-free, so any consumer, the runtime included, may import it.
17
17
  */
18
18
  import { boundedSegment } from "./bounded-path.js";
19
19
  import { asciiLower, tokenizeCss } from "./css-tokens.js";
@@ -36,11 +36,10 @@ function previousSignificant(tokens, from) {
36
36
  return -1;
37
37
  }
38
38
  const isDelim = (token, value) => token?.type === "delim" && token.value === value;
39
- /** Attribute matchers other than `=` and `~=`: they match a part by pattern (TAG-408). */
39
+ /** Attribute matchers other than `=` and `~=`: they match a part by pattern. */
40
40
  const PATTERN_MATCHERS = new Set(["|", "^", "$", "*"]);
41
41
  /**
42
- * Where the attribute name starts, past a namespace prefix (`*|part`, `|part`, `svg|part`; review
43
- * of TAG-408, L2): `first` is the first significant token after `[`. A `|` right before `=` is the
42
+ * Where the attribute name starts, past a namespace prefix (`*|part`, `|part`, `svg|part`): `first` is the first significant token after `[`. A `|` right before `=` is the
44
43
  * `|=` matcher, not a prefix, so `[part|=x]` keeps `part` as the name.
45
44
  */
46
45
  function attributeNameAt(tokens, first) {
@@ -55,7 +54,7 @@ function attributeNameAt(tokens, first) {
55
54
  /**
56
55
  * What a `[part…]` attribute selector starting at `open` (the `[`) matches: the part names it
57
56
  * names, or `pattern` when it matches parts by presence, prefix, suffix, substring or without
58
- * case (TAG-408), or nothing when it is not about `part`.
57
+ * case, or nothing when it is not about `part`.
59
58
  */
60
59
  function attributeParts(tokens, open) {
61
60
  const nameAt = attributeNameAt(tokens, nextSignificant(tokens, open));
@@ -92,7 +91,7 @@ function attributeParts(tokens, open) {
92
91
  function scanSheet(css, sheet, references, defined) {
93
92
  const tokens = tokenizeCss(css);
94
93
  tokens.forEach((token, i) => {
95
- // `style(--x…)` (container style queries, `if()`) reads `--x` as `var(--x)` does (TAG-408).
94
+ // `style(--x…)` (container style queries, `if()`) reads `--x` as `var(--x)` does.
96
95
  if (token.type === "function" &&
97
96
  (asciiLower(token.value) === "var" || asciiLower(token.value) === "style")) {
98
97
  const name = tokens[nextSignificant(tokens, i)];
@@ -133,7 +132,7 @@ function scanSheet(css, sheet, references, defined) {
133
132
  /**
134
133
  * Where each line of a stylesheet starts, with the line breaks of CSS Syntax §3.3: `\n`, `\f`
135
134
  * and a `\r` not followed by `\n` (CRLF counts once). `cssLineStarts(css)[n - 1]` is the offset
136
- * of line `n`, the numbering `checkStyleReferences` reports (TAG-423: the builder quotes the line).
135
+ * of line `n`, the numbering `checkStyleReferences` reports (the builder quotes the line).
137
136
  *
138
137
  * Inputs: CSS text. Output: the 0-based offsets, the first one `0`, ascending. Errors: never
139
138
  * throws. Side effects: none. Linear in the length.
@@ -151,7 +150,7 @@ export function cssLineStarts(css) {
151
150
  /**
152
151
  * 1-based line and column of `offset`, by binary search over the sheet's line starts: one linear
153
152
  * pass per sheet for all its findings, instead of a scan from the start per finding (50 findings
154
- * at the end of a 1 MB sheet were 50 MB of scanning, TAG-423).
153
+ * at the end of a 1 MB sheet were 50 MB of scanning).
155
154
  */
156
155
  function position(starts, offset) {
157
156
  let low = 0;