@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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/artifact-keys.d.ts +11 -11
- package/dist/artifact-keys.d.ts.map +1 -1
- package/dist/artifact-keys.js +11 -11
- package/dist/artifact-keys.js.map +1 -1
- package/dist/assets.d.ts +5 -5
- package/dist/assets.js +5 -5
- package/dist/bounded-path.d.ts +2 -2
- package/dist/bounded-path.js +2 -2
- package/dist/bounded.d.ts +2 -2
- package/dist/bounded.js +2 -2
- package/dist/build-diagnostic.d.ts +5 -5
- package/dist/build-diagnostic.js +5 -5
- package/dist/component-types.d.ts +7 -7
- package/dist/component-types.js +4 -4
- package/dist/component-types.js.map +1 -1
- package/dist/consent-text.d.ts +1 -1
- package/dist/consent-text.js +1 -1
- package/dist/contract-version.d.ts +17 -16
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +17 -16
- package/dist/contract-version.js.map +1 -1
- package/dist/credential-fields.d.ts +1 -1
- package/dist/credential-fields.js +1 -1
- package/dist/css-tokens.d.ts +1 -1
- package/dist/css-tokens.js +1 -1
- package/dist/css-value.d.ts +4 -4
- package/dist/css-value.js +4 -4
- package/dist/data-api.d.ts +11 -11
- package/dist/data-api.js +14 -14
- package/dist/data-api.js.map +1 -1
- package/dist/denylist-keys.d.ts +1 -1
- package/dist/denylist-keys.js +4 -4
- package/dist/diagnostic-catalog.d.ts +44 -36
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +44 -40
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/dom-members.snapshot.d.ts +4 -4
- package/dist/dom-members.snapshot.js +8 -8
- package/dist/early-loading.d.ts +1 -1
- package/dist/early-loading.js +1 -1
- package/dist/error-catalog.d.ts +106 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +143 -48
- package/dist/error-catalog.js.map +1 -1
- package/dist/executable-config.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/gunzip.d.ts +3 -3
- package/dist/gunzip.js +4 -4
- package/dist/gunzip.js.map +1 -1
- package/dist/hostname.d.ts +5 -6
- package/dist/hostname.d.ts.map +1 -1
- package/dist/hostname.js +7 -8
- package/dist/hostname.js.map +1 -1
- package/dist/human-actions.d.ts +4 -4
- package/dist/human-actions.d.ts.map +1 -1
- package/dist/human-actions.js +21 -0
- package/dist/human-actions.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -16
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +22 -23
- package/dist/json-schema.js.map +1 -1
- package/dist/key-checksum.d.ts +1 -1
- package/dist/key-checksum.js +1 -1
- package/dist/libraries.d.ts +4 -4
- package/dist/libraries.d.ts.map +1 -1
- package/dist/libraries.js +4 -4
- package/dist/libraries.js.map +1 -1
- package/dist/limit-catalog.d.ts +17 -17
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +30 -30
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +15 -15
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +16 -16
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +2 -2
- package/dist/locale-tag.js +2 -2
- package/dist/make-diagnostic.d.ts +2 -3
- package/dist/make-diagnostic.d.ts.map +1 -1
- package/dist/make-diagnostic.js.map +1 -1
- package/dist/manifest-compat-diagnostics.d.ts +1 -1
- package/dist/manifest-compat.js +1 -1
- package/dist/manifest.d.ts +22 -23
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +32 -33
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +17 -18
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +17 -18
- package/dist/metering.js.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.js +5 -5
- package/dist/migrate.js.map +1 -1
- package/dist/money.d.ts +2 -2
- package/dist/money.js +2 -2
- package/dist/names.d.ts +4 -4
- package/dist/names.js +4 -4
- package/dist/overage-pricing.d.ts +1 -1
- package/dist/overage-pricing.js +1 -1
- package/dist/plan-ids.d.ts +1 -1
- package/dist/plan-ids.js +1 -1
- package/dist/plan-limits.d.ts +13 -13
- package/dist/plan-limits.d.ts.map +1 -1
- package/dist/plan-limits.js +8 -8
- package/dist/plan-limits.js.map +1 -1
- package/dist/plan-pricing.d.ts +10 -12
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +12 -14
- package/dist/plan-pricing.js.map +1 -1
- package/dist/plan-usage.d.ts +18 -18
- package/dist/plan-usage.d.ts.map +1 -1
- package/dist/plan-usage.js +19 -20
- package/dist/plan-usage.js.map +1 -1
- package/dist/preview-token.js +2 -2
- package/dist/prop-names.d.ts +5 -5
- package/dist/prop-names.d.ts.map +1 -1
- package/dist/prop-names.js +10 -10
- package/dist/prop-names.js.map +1 -1
- package/dist/prop-type-docs.js +1 -1
- package/dist/prop-types.d.ts +6 -6
- package/dist/prop-types.js +17 -17
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +5 -5
- package/dist/props.js +6 -6
- package/dist/props.js.map +1 -1
- package/dist/proto-guard.js +3 -3
- package/dist/proto-guard.js.map +1 -1
- package/dist/runtime-errors.d.ts +2 -2
- package/dist/runtime-errors.js +2 -2
- package/dist/runtime-pointers.d.ts +2 -2
- package/dist/runtime-pointers.js +2 -2
- package/{schema → dist/schema}/component-manifest.v1.json +5 -5
- package/dist/secret-scan.d.ts +10 -10
- package/dist/secret-scan.d.ts.map +1 -1
- package/dist/secret-scan.js +15 -16
- package/dist/secret-scan.js.map +1 -1
- package/dist/semver.d.ts +2 -2
- package/dist/semver.js +2 -2
- package/dist/server-key.js +1 -1
- package/dist/site-manifest-keys.d.ts +11 -11
- package/dist/site-manifest-keys.d.ts.map +1 -1
- package/dist/site-manifest-keys.js +18 -18
- package/dist/site-manifest-keys.js.map +1 -1
- package/dist/site-manifest.d.ts +2 -2
- package/dist/site-manifest.js +9 -9
- package/dist/site-manifest.js.map +1 -1
- package/dist/source-archive.d.ts +13 -13
- package/dist/source-archive.js +25 -25
- package/dist/source-archive.js.map +1 -1
- package/dist/source-package-corpus.d.ts +3 -4
- package/dist/source-package-corpus.d.ts.map +1 -1
- package/dist/source-package-corpus.js +4 -6
- package/dist/source-package-corpus.js.map +1 -1
- package/dist/source-package.d.ts +18 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +16 -15
- package/dist/source-package.js.map +1 -1
- package/dist/source-secrets.js +1 -1
- package/dist/ssr-cap.d.ts +1 -1
- package/dist/ssr-cap.js +4 -4
- package/dist/ssr-kv.d.ts +2 -2
- package/dist/ssr-kv.js +2 -2
- package/dist/ssr-render.d.ts +2 -2
- package/dist/ssr-render.d.ts.map +1 -1
- package/dist/ssr-render.js +3 -3
- package/dist/ssr-render.js.map +1 -1
- package/dist/ssr-version-ledger.js +3 -3
- package/dist/style-references.d.ts +2 -3
- package/dist/style-references.d.ts.map +1 -1
- package/dist/style-references.js +10 -11
- package/dist/style-references.js.map +1 -1
- package/dist/support-contact.d.ts +11 -0
- package/dist/support-contact.d.ts.map +1 -0
- package/dist/support-contact.js +11 -0
- package/dist/support-contact.js.map +1 -0
- package/dist/tag-name.d.ts +6 -6
- package/dist/tag-name.d.ts.map +1 -1
- package/dist/tag-name.js +7 -7
- package/dist/tag-name.js.map +1 -1
- package/dist/tar-writer.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/text-codec.d.ts +2 -2
- package/dist/text-codec.js +2 -2
- package/dist/url-value.d.ts +1 -1
- package/dist/url-value.js +6 -6
- package/dist/usage-guard.d.ts +16 -16
- package/dist/usage-guard.js +15 -15
- package/dist/usage-mirror.d.ts +5 -5
- package/dist/value-check.d.ts +6 -6
- package/dist/value-check.js +21 -21
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +4 -4
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +5 -5
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +25 -24
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +26 -25
- package/dist/zod-free.js.map +1 -1
- package/package.json +9 -10
- package/schema/DEPLOYED +0 -12
- package/schema/published/SHA256SUMS +0 -41
- package/schema/published/build-diagnostic/v1.10.json +0 -83
- package/schema/published/build-diagnostic/v1.11.json +0 -83
- package/schema/published/build-diagnostic/v1.3.json +0 -83
- package/schema/published/build-diagnostic/v1.4.json +0 -83
- package/schema/published/build-diagnostic/v1.5.json +0 -83
- package/schema/published/build-diagnostic/v1.6.json +0 -83
- package/schema/published/build-diagnostic/v1.7.json +0 -83
- package/schema/published/build-diagnostic/v1.8.json +0 -83
- package/schema/published/build-diagnostic/v1.9.json +0 -83
- package/schema/published/component-manifest/v1.10.json +0 -1443
- package/schema/published/component-manifest/v1.11.json +0 -1443
- package/schema/published/component-manifest/v1.3.json +0 -1411
- package/schema/published/component-manifest/v1.4.json +0 -1419
- package/schema/published/component-manifest/v1.5.json +0 -1437
- package/schema/published/component-manifest/v1.6.json +0 -1437
- package/schema/published/component-manifest/v1.7.json +0 -1437
- package/schema/published/component-manifest/v1.8.json +0 -1437
- package/schema/published/component-manifest/v1.9.json +0 -1437
- package/schema/published/data-api/v1.10.json +0 -282
- package/schema/published/data-api/v1.11.json +0 -282
- package/schema/published/data-api/v1.3.json +0 -281
- package/schema/published/data-api/v1.4.json +0 -281
- package/schema/published/data-api/v1.5.json +0 -281
- package/schema/published/data-api/v1.6.json +0 -281
- package/schema/published/data-api/v1.7.json +0 -281
- package/schema/published/data-api/v1.8.json +0 -282
- package/schema/published/data-api/v1.9.json +0 -282
- package/schema/published/library-manifest/v1.10.json +0 -68
- package/schema/published/library-manifest/v1.11.json +0 -68
- package/schema/published/library-manifest/v1.5.json +0 -68
- package/schema/published/library-manifest/v1.6.json +0 -68
- package/schema/published/library-manifest/v1.7.json +0 -68
- package/schema/published/library-manifest/v1.8.json +0 -68
- package/schema/published/library-manifest/v1.9.json +0 -68
- package/schema/published/taggor-config/v1.10.json +0 -56
- package/schema/published/taggor-config/v1.11.json +0 -56
- package/schema/published/taggor-config/v1.5.json +0 -56
- package/schema/published/taggor-config/v1.6.json +0 -56
- package/schema/published/taggor-config/v1.7.json +0 -56
- package/schema/published/taggor-config/v1.8.json +0 -56
- package/schema/published/taggor-config/v1.9.json +0 -56
- /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
- /package/{schema → dist/schema}/data-api.v1.json +0 -0
- /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
- /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
package/dist/runtime-errors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The runtime error telemetry layout (
|
|
2
|
+
* The runtime error telemetry layout (the kinds of failure the
|
|
3
3
|
* browser reports, the bounds on what it reports, and the extra columns of an `error` point of the
|
|
4
4
|
* `component_events` dataset (the first eight columns are the ones of `metering.ts`).
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ export const RUNTIME_ERROR_MESSAGE_MAX = 200;
|
|
|
25
25
|
export const RUNTIME_ERROR_MAX_FRAMES = 5;
|
|
26
26
|
/**
|
|
27
27
|
* Most reports one component sends per page load: a technical protection against an error loop,
|
|
28
|
-
* not a plan limit
|
|
28
|
+
* not a plan limit.
|
|
29
29
|
*/
|
|
30
30
|
export const RUNTIME_ERRORS_PER_COMPONENT_PER_PAGE = 5;
|
|
31
31
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Runtime versions and the two global release pointers
|
|
2
|
+
* Runtime versions and the two global release pointers. The shared runtime lives in R2
|
|
3
3
|
* under immutable `rt/<version>/<file>` keys; two KV keys in the edge's `MANIFESTS` namespace,
|
|
4
4
|
* `runtime:canary` and `runtime:stable`, say which version the loader of each ring links to. The
|
|
5
|
-
* operator tooling writes them (`scripts/runtime-release`), the edge only reads them
|
|
5
|
+
* operator tooling writes them (`scripts/runtime-release`), the edge only reads them,
|
|
6
6
|
* and a site chooses its ring with `runtimeRing` in its manifest. Pure and import-free on purpose:
|
|
7
7
|
* the edge, the API and the release scripts all use these very rules, and the version goes into an
|
|
8
8
|
* R2 key and a URL path, so it is validated here once.
|
package/dist/runtime-pointers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Runtime versions and the two global release pointers
|
|
2
|
+
* Runtime versions and the two global release pointers. The shared runtime lives in R2
|
|
3
3
|
* under immutable `rt/<version>/<file>` keys; two KV keys in the edge's `MANIFESTS` namespace,
|
|
4
4
|
* `runtime:canary` and `runtime:stable`, say which version the loader of each ring links to. The
|
|
5
|
-
* operator tooling writes them (`scripts/runtime-release`), the edge only reads them
|
|
5
|
+
* operator tooling writes them (`scripts/runtime-release`), the edge only reads them,
|
|
6
6
|
* and a site chooses its ring with `runtimeRing` in its manifest. Pure and import-free on purpose:
|
|
7
7
|
* the edge, the API and the release scripts all use these very rules, and the version goes into an
|
|
8
8
|
* R2 key and a URL path, so it is validated here once.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"properties": {
|
|
6
6
|
"contractVersion": {
|
|
7
7
|
"type": "string",
|
|
8
|
-
"pattern": "^1\\.(?:0|1|2|3|4|5|6|7|8|9|10|11)\\.(?:0|[1-9]\\d{0,5})$"
|
|
8
|
+
"pattern": "^1\\.(?:0|1|2|3|4|5|6|7|8|9|10|11|12)\\.(?:0|[1-9]\\d{0,5})$"
|
|
9
9
|
},
|
|
10
10
|
"name": { "$ref": "#/$defs/ComponentName" },
|
|
11
11
|
"tag": { "$ref": "#/$defs/TagName" },
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"maxProperties": 50
|
|
74
74
|
},
|
|
75
75
|
"formAssociated": {
|
|
76
|
-
"description": "True for a form field component
|
|
76
|
+
"description": "True for a form field component: the element is form-associated, submits the value the component sets under its name attribute, takes part in the form's validation, reset and disabled state, and delegates focus unless delegatesFocus is false. Defaults to false.",
|
|
77
77
|
"type": "boolean"
|
|
78
78
|
},
|
|
79
79
|
"eventSampleRate": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"description": "Share of interaction and custom events the browser sends, from 0.001 to 1 (default 1: all). Render and error events are never sampled. Each stored event is weighted by 1 divided by this rate, so totals stay estimates of the real count."
|
|
84
84
|
},
|
|
85
85
|
"delegatesFocus": {
|
|
86
|
-
"description": "Whether the shadow root delegates focus
|
|
86
|
+
"description": "Whether the shadow root delegates focus: focusing the element, clicking one of its labels or a non-focusable part of it focuses the component's first focusable element. Defaults to the value of formAssociated.",
|
|
87
87
|
"type": "boolean"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
@@ -783,11 +783,11 @@
|
|
|
783
783
|
"maxProperties": 30
|
|
784
784
|
},
|
|
785
785
|
"personal": {
|
|
786
|
-
"description": "True when the collections hold personal data
|
|
786
|
+
"description": "True when the collections hold personal data: every submit then carries the visitor's consent. Defaults to false.",
|
|
787
787
|
"type": "boolean"
|
|
788
788
|
},
|
|
789
789
|
"privacyPolicyUrl": {
|
|
790
|
-
"description": "Name of the prop of type \"url\" that links the privacy policy, set per site
|
|
790
|
+
"description": "Name of the prop of type \"url\" that links the privacy policy, set per site. Required when personal is true.",
|
|
791
791
|
"$ref": "#/$defs/PropName"
|
|
792
792
|
}
|
|
793
793
|
},
|
package/dist/secret-scan.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Secret detector
|
|
2
|
+
* Secret detector: finds credentials in the text of a component's source package or of
|
|
3
3
|
* its built bundle, so the build can refuse them with `SECRET_IN_SOURCE` (a component's code is
|
|
4
4
|
* public: anyone who loads the page can read it).
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* providers' documented prefixes. Keys that are public by design (Stripe publishable keys
|
|
10
10
|
* `pk_…`, Google API keys `AIza…` that browser SDKs embed) have no rule and never block.
|
|
11
11
|
*
|
|
12
|
-
* Obvious placeholders never block (
|
|
12
|
+
* Obvious placeholders never block (gitleaks' allowlist kept strict): a value ending in
|
|
13
13
|
* `EXAMPLE`, a body of one repeated character, or a sample the provider itself publishes
|
|
14
14
|
* (`isPlaceholderSecret`). Every source file counts, documentation (`README.md`) included: the
|
|
15
15
|
* package is kept by Taggor and a key in it is leaked all the same.
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
* `mentionsSecretKeyword` tells whether such a text may quote a key; both read the text as
|
|
23
23
|
* written and with its JavaScript and CSS escapes decoded (`escapeReadings`), and count a keyword
|
|
24
24
|
* that is also an ordinary word (`cloudflare`, `Asia`) only before a token mixing letters and
|
|
25
|
-
* digits
|
|
25
|
+
* digits.
|
|
26
26
|
*
|
|
27
27
|
* Cost is bounded (golden rule 5, the text is untrusted): at most `SECRET_SCAN_LIMITS.maxFiles`
|
|
28
28
|
* files and `maxChars` UTF-16 units per scan (the builder's own ceilings), a rule's regex runs
|
|
29
29
|
* only on texts that contain one of its keywords, every quantifier of every rule is bounded and
|
|
30
30
|
* starts after a literal, and the scan stops at `SECRET_SCAN_MAX_FINDINGS`. Zod-free and
|
|
31
|
-
* dependency-free, so the CLI (`taggor check`, `taggor publish
|
|
31
|
+
* dependency-free, so the CLI (`taggor check`, `taggor publish`) and the API
|
|
32
32
|
* can run the same scan before a package leaves the agent's machine or is stored.
|
|
33
33
|
*/
|
|
34
34
|
/** One detection rule, in the shape of a gitleaks rule. */
|
|
@@ -60,13 +60,13 @@ export interface SecretRule {
|
|
|
60
60
|
* The rules. A new provider adds an entry here with a test in both directions in
|
|
61
61
|
* `secret-scan.test.ts` (a fake value that blocks, a near miss or public key that does not).
|
|
62
62
|
* The Taggor API key format (`tgr_live_` or `tgr_test_`, then base62 with a CRC32 at the end) is
|
|
63
|
-
* the one
|
|
64
|
-
*
|
|
63
|
+
* the one the API implements; the body length here is a range so the rule holds whatever length
|
|
64
|
+
* the API settles on within it. The SSR server key (`tgs_live_`/`tgs_test_`, server-key.ts) has the
|
|
65
65
|
* same shape and its own rule.
|
|
66
66
|
*/
|
|
67
67
|
export declare const SECRET_RULES: readonly SecretRule[];
|
|
68
68
|
/**
|
|
69
|
-
* Whether a value a rule matched is an obvious placeholder, never a real key (
|
|
69
|
+
* Whether a value a rule matched is an obvious placeholder, never a real key (the
|
|
70
70
|
* gitleaks allowlist idea, kept strict): the secret ends with `SECRET_EXAMPLE_SUFFIX`
|
|
71
71
|
* (`AKIAIOSFODNN7EXAMPLE`; a random body ends so with odds of 1 in 32^7, about 3·10^10, or less), its body is one
|
|
72
72
|
* character repeated (`sk_test_xxxxxxxxxxxxxxxx`, `tgr_test_0000…`), or it is a value the
|
|
@@ -143,12 +143,12 @@ export declare function scanSecrets(inputs: readonly SecretScanInput[], limits?:
|
|
|
143
143
|
/**
|
|
144
144
|
* The most characters `escapeReadings`, `mentionsSecretKeyword` and `redactSecrets` read: they
|
|
145
145
|
* are for short diagnostic texts (a message is at most 2,000 characters, a snippet 300). Linear
|
|
146
|
-
* as they are, they take seconds of CPU on 20 MiB
|
|
146
|
+
* as they are, they take seconds of CPU on 20 MiB, so a longer
|
|
147
147
|
* text is cut and its rest treated as one that may quote a secret.
|
|
148
148
|
*/
|
|
149
149
|
export declare const SECRET_TEXT_MAX_CHARS = 4000;
|
|
150
150
|
/**
|
|
151
|
-
* A text as it reads with its escapes decoded
|
|
151
|
+
* A text as it reads with its escapes decoded: as written, as JavaScript decodes it
|
|
152
152
|
* (`\xNN`, `\uNNNN`, `\u{…}`, legacy octal, `\n` and the like, and any other `\c` as `c`) and as
|
|
153
153
|
* CSS does (`\73 `). A key written with escapes (`"\x73k_live_…"`) only shows its keyword in a
|
|
154
154
|
* decoded reading. Linear: one pass per reading. Only for short diagnostic texts: past
|
|
@@ -176,7 +176,7 @@ export declare function mentionsSecretKeyword(text: string): boolean;
|
|
|
176
176
|
* characters of `MIN_MASKED_RUN` characters or more (a key a rule misses, such as one with an
|
|
177
177
|
* odd boundary), replaced by its mask; a keyword that is also an ordinary word (`WORD_KEYWORDS`)
|
|
178
178
|
* only starts a run when the token after it mixes letters and digits, so
|
|
179
|
-
* `cloudflare-turnstile-loader.js` and `Asia/Ho_Chi_Minh` stay whole
|
|
179
|
+
* `cloudflare-turnstile-loader.js` and `Asia/Ho_Chi_Minh` stay whole. When a decoded
|
|
180
180
|
* reading (`escapeReadings`) has something to mask, that reading is returned masked (the
|
|
181
181
|
* JavaScript one before the CSS one): `"\x73k_live_…"` becomes `"sk_l…"`. For texts that are not a
|
|
182
182
|
* source file but may quote one: a bundler's message, a thrown error. Only for short diagnostic
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-scan.d.ts","sourceRoot":"","sources":["../src/secret-scan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,qFAAqF;IACrF,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,oDAAoD;IACpD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B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AQ3D;AA4CD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAclD"}
|
package/dist/secret-scan.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Secret detector
|
|
2
|
+
* Secret detector: finds credentials in the text of a component's source package or of
|
|
3
3
|
* its built bundle, so the build can refuse them with `SECRET_IN_SOURCE` (a component's code is
|
|
4
4
|
* public: anyone who loads the page can read it).
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* providers' documented prefixes. Keys that are public by design (Stripe publishable keys
|
|
10
10
|
* `pk_…`, Google API keys `AIza…` that browser SDKs embed) have no rule and never block.
|
|
11
11
|
*
|
|
12
|
-
* Obvious placeholders never block (
|
|
12
|
+
* Obvious placeholders never block (gitleaks' allowlist kept strict): a value ending in
|
|
13
13
|
* `EXAMPLE`, a body of one repeated character, or a sample the provider itself publishes
|
|
14
14
|
* (`isPlaceholderSecret`). Every source file counts, documentation (`README.md`) included: the
|
|
15
15
|
* package is kept by Taggor and a key in it is leaked all the same.
|
|
@@ -22,19 +22,18 @@
|
|
|
22
22
|
* `mentionsSecretKeyword` tells whether such a text may quote a key; both read the text as
|
|
23
23
|
* written and with its JavaScript and CSS escapes decoded (`escapeReadings`), and count a keyword
|
|
24
24
|
* that is also an ordinary word (`cloudflare`, `Asia`) only before a token mixing letters and
|
|
25
|
-
* digits
|
|
25
|
+
* digits.
|
|
26
26
|
*
|
|
27
27
|
* Cost is bounded (golden rule 5, the text is untrusted): at most `SECRET_SCAN_LIMITS.maxFiles`
|
|
28
28
|
* files and `maxChars` UTF-16 units per scan (the builder's own ceilings), a rule's regex runs
|
|
29
29
|
* only on texts that contain one of its keywords, every quantifier of every rule is bounded and
|
|
30
30
|
* starts after a literal, and the scan stops at `SECRET_SCAN_MAX_FINDINGS`. Zod-free and
|
|
31
|
-
* dependency-free, so the CLI (`taggor check`, `taggor publish
|
|
31
|
+
* dependency-free, so the CLI (`taggor check`, `taggor publish`) and the API
|
|
32
32
|
* can run the same scan before a package leaves the agent's machine or is stored.
|
|
33
33
|
*/
|
|
34
34
|
/**
|
|
35
35
|
* The start of a prefixed token: a word boundary, or right after an escaped line break or tab in
|
|
36
|
-
* a string (`"Stripe:\nsk_live_…"`), where `\b` sees no boundary between the `n` and the `s
|
|
37
|
-
* (TAG-1707 security review, M2).
|
|
36
|
+
* a string (`"Stripe:\nsk_live_…"`), where `\b` sees no boundary between the `n` and the `s`.
|
|
38
37
|
*/
|
|
39
38
|
const START = "(?:\\b|(?<=\\\\[nrt]))";
|
|
40
39
|
/** The end of a token: no further character of the token's alphabet. */
|
|
@@ -44,8 +43,8 @@ const END_TOKEN = "(?![A-Za-z0-9_-])";
|
|
|
44
43
|
* The rules. A new provider adds an entry here with a test in both directions in
|
|
45
44
|
* `secret-scan.test.ts` (a fake value that blocks, a near miss or public key that does not).
|
|
46
45
|
* The Taggor API key format (`tgr_live_` or `tgr_test_`, then base62 with a CRC32 at the end) is
|
|
47
|
-
* the one
|
|
48
|
-
*
|
|
46
|
+
* the one the API implements; the body length here is a range so the rule holds whatever length
|
|
47
|
+
* the API settles on within it. The SSR server key (`tgs_live_`/`tgs_test_`, server-key.ts) has the
|
|
49
48
|
* same shape and its own rule.
|
|
50
49
|
*/
|
|
51
50
|
export const SECRET_RULES = Object.freeze([
|
|
@@ -134,7 +133,7 @@ export const SECRET_RULES = Object.freeze([
|
|
|
134
133
|
// placeholder ("-----BEGIN PRIVATE KEY-----\n...") does not block. Line breaks may be real
|
|
135
134
|
// or escaped in a string (`\n`), as in a service account JSON. A header line ends only at
|
|
136
135
|
// a line break: if it could end at a space, `a: a: a: …` would split into header lines in
|
|
137
|
-
// exponentially many ways (
|
|
136
|
+
// exponentially many ways (136 s for 1.5 KB gzipped).
|
|
138
137
|
id: "private-key",
|
|
139
138
|
description: "a PEM private key",
|
|
140
139
|
regex: "-----BEGIN[ A-Z0-9_-]{0,40}PRIVATE KEY(?: BLOCK)?-----[ \\t]{0,8}(?:\\r?\\n|(?:\\\\r)?\\\\n)(?:[A-Za-z-]{1,30}: [^\\r\\n\\\\]{1,100}(?:\\r?\\n|(?:\\\\r)?\\\\n)){0,4}(?:[ \\t\\r\\n]|\\\\[nr]){0,8}([A-Za-z0-9+/]{32})",
|
|
@@ -151,7 +150,7 @@ export const SECRET_RULES = Object.freeze([
|
|
|
151
150
|
keywords: ["tgr_live_", "tgr_test_"],
|
|
152
151
|
},
|
|
153
152
|
{
|
|
154
|
-
// The SSR server key (server-key.ts
|
|
153
|
+
// The SSR server key (server-key.ts): a server secret that must never reach a page.
|
|
155
154
|
id: "taggor-server-key",
|
|
156
155
|
description: "a Taggor server key",
|
|
157
156
|
regex: `${START}(tgs_(?:live|test)_([A-Za-z0-9]{24,128}))${END_ALNUM}`,
|
|
@@ -165,7 +164,7 @@ const SECRET_EXAMPLE_SUFFIX = "EXAMPLE";
|
|
|
165
164
|
/**
|
|
166
165
|
* Exact values that providers publish in their own documentation, so they are public and tied
|
|
167
166
|
* to a demo account: Stripe's sample test secret keys (docs.stripe.com/api/authentication and
|
|
168
|
-
* the code samples on stripe.com, checked 2026
|
|
167
|
+
* the code samples on stripe.com, checked in 2026). Assembled from parts so no repository
|
|
169
168
|
* scanner reads a whole key here.
|
|
170
169
|
*/
|
|
171
170
|
const PUBLISHED_EXAMPLE_VALUES = new Set([
|
|
@@ -184,7 +183,7 @@ function isOneCharacterRepeated(text) {
|
|
|
184
183
|
return true;
|
|
185
184
|
}
|
|
186
185
|
/**
|
|
187
|
-
* Whether a value a rule matched is an obvious placeholder, never a real key (
|
|
186
|
+
* Whether a value a rule matched is an obvious placeholder, never a real key (the
|
|
188
187
|
* gitleaks allowlist idea, kept strict): the secret ends with `SECRET_EXAMPLE_SUFFIX`
|
|
189
188
|
* (`AKIAIOSFODNN7EXAMPLE`; a random body ends so with odds of 1 in 32^7, about 3·10^10, or less), its body is one
|
|
190
189
|
* character repeated (`sk_test_xxxxxxxxxxxxxxxx`, `tgr_test_0000…`), or it is a value the
|
|
@@ -332,7 +331,7 @@ export function scanSecrets(inputs, limits = SECRET_SCAN_LIMITS) {
|
|
|
332
331
|
/** Any keyword of any rule, in any case. */
|
|
333
332
|
const ANY_KEYWORD = new RegExp(SECRET_RULES.flatMap((rule) => rule.keywords.map(escapeRegExp)).join("|"), "i");
|
|
334
333
|
/**
|
|
335
|
-
* Keywords that are also ordinary words in legitimate text
|
|
334
|
+
* Keywords that are also ordinary words in legitimate text: those of a rule that
|
|
336
335
|
* recognizes the value by its variable name (`cloudflare`, as in `cloudflare-turnstile-loader.js`)
|
|
337
336
|
* and AWS prefixes that are common words or parts of them (`Asia/Ho_Chi_Minh`, `Arabia`,
|
|
338
337
|
* `accademia`). Such a keyword only counts when the token characters right after it mix letters
|
|
@@ -412,12 +411,12 @@ function codePoint(hex, fallback) {
|
|
|
412
411
|
/**
|
|
413
412
|
* The most characters `escapeReadings`, `mentionsSecretKeyword` and `redactSecrets` read: they
|
|
414
413
|
* are for short diagnostic texts (a message is at most 2,000 characters, a snippet 300). Linear
|
|
415
|
-
* as they are, they take seconds of CPU on 20 MiB
|
|
414
|
+
* as they are, they take seconds of CPU on 20 MiB, so a longer
|
|
416
415
|
* text is cut and its rest treated as one that may quote a secret.
|
|
417
416
|
*/
|
|
418
417
|
export const SECRET_TEXT_MAX_CHARS = 4_000;
|
|
419
418
|
/**
|
|
420
|
-
* A text as it reads with its escapes decoded
|
|
419
|
+
* A text as it reads with its escapes decoded: as written, as JavaScript decodes it
|
|
421
420
|
* (`\xNN`, `\uNNNN`, `\u{…}`, legacy octal, `\n` and the like, and any other `\c` as `c`) and as
|
|
422
421
|
* CSS does (`\73 `). A key written with escapes (`"\x73k_live_…"`) only shows its keyword in a
|
|
423
422
|
* decoded reading. Linear: one pass per reading. Only for short diagnostic texts: past
|
|
@@ -511,7 +510,7 @@ function redactReading(text) {
|
|
|
511
510
|
* characters of `MIN_MASKED_RUN` characters or more (a key a rule misses, such as one with an
|
|
512
511
|
* odd boundary), replaced by its mask; a keyword that is also an ordinary word (`WORD_KEYWORDS`)
|
|
513
512
|
* only starts a run when the token after it mixes letters and digits, so
|
|
514
|
-
* `cloudflare-turnstile-loader.js` and `Asia/Ho_Chi_Minh` stay whole
|
|
513
|
+
* `cloudflare-turnstile-loader.js` and `Asia/Ho_Chi_Minh` stay whole. When a decoded
|
|
515
514
|
* reading (`escapeReadings`) has something to mask, that reading is returned masked (the
|
|
516
515
|
* JavaScript one before the CSS one): `"\x73k_live_…"` becomes `"sk_l…"`. For texts that are not a
|
|
517
516
|
* source file but may quote one: a bundler's message, a thrown error. Only for short diagnostic
|
package/dist/secret-scan.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-scan.js","sourceRoot":"","sources":["../src/secret-scan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AA4BH;;;;GAIG;AACH,MAAM,KAAK,GAAG,wBAAwB,CAAC;AAEvC,wEAAwE;AACxE,MAAM,SAAS,GAAG,iBAAiB,CAAC;AACpC,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAA0B,MAAM,CAAC,MAAM,CAAC;IAC/D;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,sBAAsB;QACnC,KAAK,EAAE,GAAG,KAAK,wDAAwD;QACvE,WAAW,EAAE,CAAC;QACd,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;KAClD;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE,GAAG,KAAK,+BAA+B,SAAS,EAAE;QACzD,WAAW,EAAE,CAAC;QACd,SAAS,EAAE,CAAC;QACZ,QAAQ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;;;;;;;;;GAeG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,IAAI,IAAI,CAAC,MAAM,GAAG,qBAAqB,EAAE,CAAC;QACxC,gFAAgF;QAChF,IAAI,GAAG,GAAG,qBAAqB,CAAC;QAChC,OAAO,GAAG,GAAG,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;YAAE,GAAG,IAAI,CAAC,CAAC;QAC7E,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC;IACjD,CAAC;IACD,qFAAqF;IACrF,0EAA0E;IAC1E,KAAK,MAAM,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,OAAO,KAAK,OAAO;YAAE,OAAO,OAAO,CAAC;IAC1C,CAAC;IACD,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
|
package/dist/semver.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Semantic versions and npm ranges, the strict subset the builder accepts
|
|
2
|
+
* Semantic versions and npm ranges, the strict subset the builder accepts.
|
|
3
3
|
*
|
|
4
4
|
* The builder never resolves a range against a registry during a build: the versions come from
|
|
5
5
|
* Taggor's lock. Ranges are only *checked*: a component's `package.json` range against the locked
|
|
@@ -77,7 +77,7 @@ export declare function satisfies(candidate: SemVer, range: SemverRange): boolea
|
|
|
77
77
|
export declare function versionSatisfies(versionText: string, rangeText: string): boolean;
|
|
78
78
|
/**
|
|
79
79
|
* The newest version of a list inside a range, prereleases left out unless the range names
|
|
80
|
-
* one (the lock tool's choice
|
|
80
|
+
* one (the lock tool's choice). Versions with equal SemVer precedence use descending
|
|
81
81
|
* code-unit lexical order as a stable tie-breaker, so build metadata cannot make input order matter.
|
|
82
82
|
*
|
|
83
83
|
* Inputs: version texts (unparseable ones are skipped) and a range text. Output: the newest
|
package/dist/semver.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Semantic versions and npm ranges, the strict subset the builder accepts
|
|
2
|
+
* Semantic versions and npm ranges, the strict subset the builder accepts.
|
|
3
3
|
*
|
|
4
4
|
* The builder never resolves a range against a registry during a build: the versions come from
|
|
5
5
|
* Taggor's lock. Ranges are only *checked*: a component's `package.json` range against the locked
|
|
@@ -374,7 +374,7 @@ export function versionSatisfies(versionText, rangeText) {
|
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
376
|
* The newest version of a list inside a range, prereleases left out unless the range names
|
|
377
|
-
* one (the lock tool's choice
|
|
377
|
+
* one (the lock tool's choice). Versions with equal SemVer precedence use descending
|
|
378
378
|
* code-unit lexical order as a stable tie-breaker, so build metadata cannot make input order matter.
|
|
379
379
|
*
|
|
380
380
|
* Inputs: version texts (unparseable ones are skipped) and a range text. Output: the newest
|
package/dist/server-key.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The SSR server key
|
|
2
|
+
* The SSR server key: the secret a customer's server sends to
|
|
3
3
|
* `GET /r/<siteKey>/<tag>` so only that customer spends the site's server renders. The site key is
|
|
4
4
|
* public (it is in every page's snippet); this key is not, and the route refuses without it.
|
|
5
5
|
* Zod-free and dependency-free: the API issues it, the edge checks it, the CLI and the log redactor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Source of the pattern every site key matches, for schemas and database checks. */
|
|
2
2
|
export declare const SITE_KEY_PATTERN = "^st_[a-z2-7]{10}$";
|
|
3
3
|
/**
|
|
4
|
-
* Pattern of a site's Turnstile site key
|
|
4
|
+
* Pattern of a site's Turnstile site key: a PUBLIC key (the secret stays on the edge),
|
|
5
5
|
* the same shape the loader accepts.
|
|
6
6
|
*/
|
|
7
7
|
export declare const TURNSTILE_SITE_KEY_PATTERN = "^[A-Za-z0-9_-]{1,100}$";
|
|
@@ -11,19 +11,19 @@ export declare const TURNSTILE_SITE_KEY_PATTERN = "^[A-Za-z0-9_-]{1,100}$";
|
|
|
11
11
|
* Side effects: none.
|
|
12
12
|
*/
|
|
13
13
|
export declare function isTurnstileSiteKey(value: unknown): value is string;
|
|
14
|
-
/** What a site does with a submission the bot filter marked
|
|
14
|
+
/** What a site does with a submission the bot filter marked; `keep` is the default. */
|
|
15
15
|
export declare const SUSPECT_POLICIES: readonly ["keep", "drop"];
|
|
16
16
|
/** One of `SUSPECT_POLICIES`. */
|
|
17
17
|
export type SuspectPolicy = (typeof SUSPECT_POLICIES)[number];
|
|
18
18
|
/**
|
|
19
19
|
* Whether a site honors the visitor's Global Privacy Control (`Sec-GPC: 1`) or Do Not Track (`DNT: 1`)
|
|
20
|
-
* signal at the event ingest
|
|
20
|
+
* signal at the event ingest when its `protection.respectGpc` is absent. Privacy by default
|
|
21
21
|
* (golden rule 6): ON. The one place that holds the default; flip it here, nowhere else.
|
|
22
22
|
*/
|
|
23
23
|
export declare const RESPECT_GPC_DEFAULT = true;
|
|
24
24
|
/**
|
|
25
25
|
* Default daily cap of submissions per site to a form without a Turnstile key, and the hard
|
|
26
|
-
* bounds of a site's own `protection.dailyCap
|
|
26
|
+
* bounds of a site's own `protection.dailyCap`. The platform ceiling is lower and comes
|
|
27
27
|
* from the deploy's environment (the API reads it); the upper bound here only keeps a
|
|
28
28
|
* manifest value sane.
|
|
29
29
|
*/
|
|
@@ -49,29 +49,29 @@ export declare function manifestKvKey(siteKey: string, channel: ManifestChannel)
|
|
|
49
49
|
/** Seconds a daily cap mark lives (KV's `expirationTtl`); the consumer refreshes it while the cap holds. */
|
|
50
50
|
export declare const DAILY_CAP_MARK_TTL_SECONDS = 3600;
|
|
51
51
|
/**
|
|
52
|
-
* KV key of a site's daily cap mark
|
|
52
|
+
* KV key of a site's daily cap mark.
|
|
53
53
|
* Inputs: a site key. Output: `cap:<siteKey>`. Errors: `TypeError` when the site key is malformed.
|
|
54
54
|
* Side effects: none.
|
|
55
55
|
*/
|
|
56
56
|
export declare function dailyCapKvKey(siteKey: string): string;
|
|
57
57
|
/**
|
|
58
|
-
* Seconds a Free plan submission cut mark lives
|
|
58
|
+
* Seconds a Free plan submission cut mark lives. Six hours, like the render cut marks: the
|
|
59
59
|
* consumer rewrites it with every message it refuses and the usage job with every visit, so a plan
|
|
60
60
|
* upgrade lifts the cut within this time and a lapse of the writers only lets a few messages through
|
|
61
61
|
* (the consumer refuses them again and rewrites the mark).
|
|
62
62
|
*/
|
|
63
63
|
export declare const SUBMISSION_CAP_MARK_TTL_SECONDS: number;
|
|
64
64
|
/**
|
|
65
|
-
* KV key of a site's Free plan submission cut mark
|
|
65
|
+
* KV key of a site's Free plan submission cut mark.
|
|
66
66
|
* Inputs: a site key. Output: `subcap:<siteKey>`. Errors: `TypeError` when the site key is malformed.
|
|
67
67
|
* Side effects: none.
|
|
68
68
|
*/
|
|
69
69
|
export declare function submissionCapKvKey(siteKey: string): string;
|
|
70
70
|
/**
|
|
71
|
-
* KV key of a site's usage cut mark (
|
|
72
|
-
* present while the site's workspace is past its plan's renders per month plus the grace
|
|
71
|
+
* KV key of a site's usage cut mark (written by the plan's usage cut):
|
|
72
|
+
* present while the site's workspace is past its plan's renders per month plus the grace. The edge reads it on the loader and manifest routes
|
|
73
73
|
* only and then serves the inert answer; the data ingest ignores it, so a form already on a page
|
|
74
|
-
* keeps collecting
|
|
74
|
+
* keeps collecting.
|
|
75
75
|
* Inputs: a site key. Output: `viewcap:<siteKey>`. Errors: `TypeError` when the site key is malformed.
|
|
76
76
|
* Side effects: none.
|
|
77
77
|
*/
|
|
@@ -97,7 +97,7 @@ export interface EmptySiteManifest {
|
|
|
97
97
|
*/
|
|
98
98
|
export declare function emptySiteManifest(siteKey: string): EmptySiteManifest;
|
|
99
99
|
/**
|
|
100
|
-
* Most components one site manifest lists: the PLATFORM ceiling
|
|
100
|
+
* Most components one site manifest lists: the PLATFORM ceiling, equal to the highest
|
|
101
101
|
* `planQuotas[*].componentsPerSite` (a test keeps them equal). What one site may attach depends on
|
|
102
102
|
* its plan; this is only what the manifest schema and the loader accept at all, so a plan change
|
|
103
103
|
* never makes a stored manifest invalid. The loader repeats the number (`MAX_COMPONENTS`, it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-manifest-keys.d.ts","sourceRoot":"","sources":["../src/site-manifest-keys.ts"],"names":[],"mappings":"AAuBA,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAIpD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,2BAA2B,CAAC;AAInE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAElE;AAED,
|
|
1
|
+
{"version":3,"file":"site-manifest-keys.d.ts","sourceRoot":"","sources":["../src/site-manifest-keys.ts"],"names":[],"mappings":"AAuBA,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAIpD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,2BAA2B,CAAC;AAInE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAElE;AAED,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,2BAA4B,CAAC;AAE1D,iCAAiC;AACjC,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,OAAQ,CAAC;AACvC,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,kBAAkB,UAAY,CAAC;AAE5C,oFAAoF;AACpF,eAAO,MAAM,iBAAiB,oCAAqC,CAAC;AAEpE,kCAAkC;AAClC,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CAG/E;AAED,4GAA4G;AAC5G,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,QAAc,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED,qFAAqF;AACrF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrB,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAEpE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,MAAM,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod-free pieces of the site manifest
|
|
2
|
+
* Zod-free pieces of the site manifest: the site key format, the KV key layout of the
|
|
3
3
|
* manifest store and of the published-bundle index, and the manifest served for a site that does
|
|
4
4
|
* not exist. The API writes KV with these keys and the edge reads with them (the edge never
|
|
5
|
-
* writes
|
|
5
|
+
* writes), so the layout lives in one place. Nothing here imports Zod, so the edge
|
|
6
6
|
* and the browser runtime can import it from `@taggor/contract/zod-free`.
|
|
7
7
|
*
|
|
8
8
|
* KV layout (one namespace, `MANIFESTS` in the edge):
|
|
9
9
|
* - `manifest:<siteKey>:<channel>`: the JSON of one `SiteManifest` (the channel is the site's
|
|
10
10
|
* environment). Absent for a site that is unknown, disabled or deleted, so those three read
|
|
11
|
-
* alike
|
|
11
|
+
* alike.
|
|
12
12
|
* - `published:<artifactKey>`: JSON `{ "contractVersion": "1.0.0" }` for each public artifact
|
|
13
13
|
* (`b/<sha256>.js|css`) of a version a site manifest points to. The CDN serves only keys with
|
|
14
|
-
* this entry, so a build that never became a published version is never hosted
|
|
15
|
-
* - `cap:<siteKey>`: written by the API's queue consumer
|
|
14
|
+
* this entry, so a build that never became a published version is never hosted.
|
|
15
|
+
* - `cap:<siteKey>`: written by the API's queue consumer for an hour when a site's form
|
|
16
16
|
* without a Turnstile key spent its daily cap of submissions; the edge answers 429
|
|
17
17
|
* `daily_cap_reached` while it exists. The value is not read, only the key's presence.
|
|
18
|
-
* - `subcap:<siteKey>`: written by the same consumer and by the hourly usage job
|
|
19
|
-
*
|
|
18
|
+
* - `subcap:<siteKey>`: written by the same consumer and by the hourly usage job
|
|
19
|
+
* when the workspace of a FREE site spent its month's submissions or its storage; the edge
|
|
20
20
|
* answers 429 before reading the body while it exists. Only the key's presence is read.
|
|
21
21
|
*/
|
|
22
22
|
import { isPublicArtifactKey } from "./artifact-keys.js";
|
|
@@ -24,7 +24,7 @@ import { isPublicArtifactKey } from "./artifact-keys.js";
|
|
|
24
24
|
export const SITE_KEY_PATTERN = "^st_[a-z2-7]{10}$";
|
|
25
25
|
const SITE_KEY = new RegExp(SITE_KEY_PATTERN);
|
|
26
26
|
/**
|
|
27
|
-
* Pattern of a site's Turnstile site key
|
|
27
|
+
* Pattern of a site's Turnstile site key: a PUBLIC key (the secret stays on the edge),
|
|
28
28
|
* the same shape the loader accepts.
|
|
29
29
|
*/
|
|
30
30
|
export const TURNSTILE_SITE_KEY_PATTERN = "^[A-Za-z0-9_-]{1,100}$";
|
|
@@ -37,17 +37,17 @@ const TURNSTILE_SITE_KEY = new RegExp(TURNSTILE_SITE_KEY_PATTERN);
|
|
|
37
37
|
export function isTurnstileSiteKey(value) {
|
|
38
38
|
return typeof value === "string" && TURNSTILE_SITE_KEY.test(value);
|
|
39
39
|
}
|
|
40
|
-
/** What a site does with a submission the bot filter marked
|
|
40
|
+
/** What a site does with a submission the bot filter marked; `keep` is the default. */
|
|
41
41
|
export const SUSPECT_POLICIES = ["keep", "drop"];
|
|
42
42
|
/**
|
|
43
43
|
* Whether a site honors the visitor's Global Privacy Control (`Sec-GPC: 1`) or Do Not Track (`DNT: 1`)
|
|
44
|
-
* signal at the event ingest
|
|
44
|
+
* signal at the event ingest when its `protection.respectGpc` is absent. Privacy by default
|
|
45
45
|
* (golden rule 6): ON. The one place that holds the default; flip it here, nowhere else.
|
|
46
46
|
*/
|
|
47
47
|
export const RESPECT_GPC_DEFAULT = true;
|
|
48
48
|
/**
|
|
49
49
|
* Default daily cap of submissions per site to a form without a Turnstile key, and the hard
|
|
50
|
-
* bounds of a site's own `protection.dailyCap
|
|
50
|
+
* bounds of a site's own `protection.dailyCap`. The platform ceiling is lower and comes
|
|
51
51
|
* from the deploy's environment (the API reads it); the upper bound here only keeps a
|
|
52
52
|
* manifest value sane.
|
|
53
53
|
*/
|
|
@@ -77,7 +77,7 @@ export function manifestKvKey(siteKey, channel) {
|
|
|
77
77
|
/** Seconds a daily cap mark lives (KV's `expirationTtl`); the consumer refreshes it while the cap holds. */
|
|
78
78
|
export const DAILY_CAP_MARK_TTL_SECONDS = 3600;
|
|
79
79
|
/**
|
|
80
|
-
* KV key of a site's daily cap mark
|
|
80
|
+
* KV key of a site's daily cap mark.
|
|
81
81
|
* Inputs: a site key. Output: `cap:<siteKey>`. Errors: `TypeError` when the site key is malformed.
|
|
82
82
|
* Side effects: none.
|
|
83
83
|
*/
|
|
@@ -87,14 +87,14 @@ export function dailyCapKvKey(siteKey) {
|
|
|
87
87
|
return `cap:${siteKey}`;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Seconds a Free plan submission cut mark lives
|
|
90
|
+
* Seconds a Free plan submission cut mark lives. Six hours, like the render cut marks: the
|
|
91
91
|
* consumer rewrites it with every message it refuses and the usage job with every visit, so a plan
|
|
92
92
|
* upgrade lifts the cut within this time and a lapse of the writers only lets a few messages through
|
|
93
93
|
* (the consumer refuses them again and rewrites the mark).
|
|
94
94
|
*/
|
|
95
95
|
export const SUBMISSION_CAP_MARK_TTL_SECONDS = 6 * 60 * 60;
|
|
96
96
|
/**
|
|
97
|
-
* KV key of a site's Free plan submission cut mark
|
|
97
|
+
* KV key of a site's Free plan submission cut mark.
|
|
98
98
|
* Inputs: a site key. Output: `subcap:<siteKey>`. Errors: `TypeError` when the site key is malformed.
|
|
99
99
|
* Side effects: none.
|
|
100
100
|
*/
|
|
@@ -104,10 +104,10 @@ export function submissionCapKvKey(siteKey) {
|
|
|
104
104
|
return `subcap:${siteKey}`;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
* KV key of a site's usage cut mark (
|
|
108
|
-
* present while the site's workspace is past its plan's renders per month plus the grace
|
|
107
|
+
* KV key of a site's usage cut mark (written by the plan's usage cut):
|
|
108
|
+
* present while the site's workspace is past its plan's renders per month plus the grace. The edge reads it on the loader and manifest routes
|
|
109
109
|
* only and then serves the inert answer; the data ingest ignores it, so a form already on a page
|
|
110
|
-
* keeps collecting
|
|
110
|
+
* keeps collecting.
|
|
111
111
|
* Inputs: a site key. Output: `viewcap:<siteKey>`. Errors: `TypeError` when the site key is malformed.
|
|
112
112
|
* Side effects: none.
|
|
113
113
|
*/
|
|
@@ -136,7 +136,7 @@ export function emptySiteManifest(siteKey) {
|
|
|
136
136
|
return { siteKey, revision: 0, allowedDomains: [], components: [] };
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
* Most components one site manifest lists: the PLATFORM ceiling
|
|
139
|
+
* Most components one site manifest lists: the PLATFORM ceiling, equal to the highest
|
|
140
140
|
* `planQuotas[*].componentsPerSite` (a test keeps them equal). What one site may attach depends on
|
|
141
141
|
* its plan; this is only what the manifest schema and the loader accept at all, so a plan change
|
|
142
142
|
* never makes a stored manifest invalid. The loader repeats the number (`MAX_COMPONENTS`, it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-manifest-keys.js","sourceRoot":"","sources":["../src/site-manifest-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qFAAqF;AACrF,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAEpD,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAElE;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,
|
|
1
|
+
{"version":3,"file":"site-manifest-keys.js","sourceRoot":"","sources":["../src/site-manifest-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qFAAqF;AACrF,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAEpD,MAAM,QAAQ,GAAG,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