@taggor/contract 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +13 -12
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +13 -12
- 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 +67 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +105 -49
- 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 +3 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -15
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +22 -22
- 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 +21 -22
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +31 -32
- 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 +16 -16
- 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 +17 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +15 -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 +1 -1
- package/dist/ssr-kv.js +1 -1
- 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 +20 -20
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +3 -3
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +4 -4
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +24 -23
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +25 -24
- 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/denylist-keys.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod-free KV key layout of the takedown denylist
|
|
2
|
+
* Zod-free KV key layout of the takedown denylist: the keys the API (operator surface)
|
|
3
3
|
* writes and the edge reads in the `TAKEDOWN` namespace. Like `site-manifest-keys.ts`, the layout
|
|
4
|
-
* lives in one place so the writer and the reader cannot drift apart
|
|
4
|
+
* lives in one place so the writer and the reader cannot drift apart.
|
|
5
5
|
*
|
|
6
6
|
* - `deny:<sha256>`: a bundle or stylesheet (`/b/<sha256>.js|css`) that must not be served (410).
|
|
7
7
|
* - `deny:site:<siteKey>`: a site that gets the inert loader, an empty manifest and no ingest.
|
|
8
|
-
* - `asset:<sha256>`: a public image or font (`/a/<sha256>.<ext>`), the scheme
|
|
8
|
+
* - `asset:<sha256>`: a public image or font (`/a/<sha256>.<ext>`), the scheme.
|
|
9
9
|
*
|
|
10
10
|
* Only the presence of a key matters to the edge; the value is the id of the takedown action that
|
|
11
11
|
* wrote it (never personal data, never a reason).
|
|
@@ -37,7 +37,7 @@ export function denySiteKvKey(siteKey) {
|
|
|
37
37
|
return `deny:site:${siteKey}`;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* KV key that denies a public asset hash
|
|
40
|
+
* KV key that denies a public asset hash.
|
|
41
41
|
* Inputs: 64 lowercase hexadecimal characters. Output: `asset:<sha256>`. Errors: `TypeError` for
|
|
42
42
|
* anything else. Side effects: none.
|
|
43
43
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LocalizedText } from "./prop-type-docs.js";
|
|
2
2
|
/**
|
|
3
|
-
* Limits of one build diagnostic
|
|
3
|
+
* Limits of one build diagnostic: what the builder reports for every error and warning
|
|
4
4
|
* and what `GET /v1/builds/{id}`, the CLI and the MCP pass on. The build container produces these
|
|
5
5
|
* from customer code, so the Worker checks them again (`buildDiagnosticSchema`).
|
|
6
6
|
*
|
|
@@ -45,7 +45,7 @@ export type DiagnosticSeverity = "error" | "warning";
|
|
|
45
45
|
export type DiagnosticFault = "customer" | "platform";
|
|
46
46
|
/**
|
|
47
47
|
* The build step that reports the code, in the order a build runs them; `version` is the
|
|
48
|
-
* creation of a version from a finished build (
|
|
48
|
+
* creation of a version from a finished build (the manifest compared with the one in
|
|
49
49
|
* production).
|
|
50
50
|
*/
|
|
51
51
|
export type DiagnosticStage = "source" | "compile" | "typecheck" | "manifest" | "output" | "build" | "version";
|
|
@@ -55,6 +55,13 @@ export declare const DIAGNOSTIC_STAGES: readonly DiagnosticStage[];
|
|
|
55
55
|
export interface DiagnosticCatalogEntry {
|
|
56
56
|
/** Severity the builder gives the code. */
|
|
57
57
|
readonly severity: DiagnosticSeverity;
|
|
58
|
+
/**
|
|
59
|
+
* A second severity the same code can carry, when the builder picks it by case (a
|
|
60
|
+
* named import of a missing React API is an `error`, the other cases of the same code are
|
|
61
|
+
* warnings). Docs only: the docs page and index show "error or warning"; `severity` stays the
|
|
62
|
+
* catalog's default.
|
|
63
|
+
*/
|
|
64
|
+
readonly alsoSeverity?: DiagnosticSeverity;
|
|
58
65
|
readonly fault: DiagnosticFault;
|
|
59
66
|
readonly stage: DiagnosticStage;
|
|
60
67
|
/** A few words, for headings and lists. */
|
|
@@ -74,7 +81,7 @@ export declare const TYPESCRIPT_DIAGNOSTIC_PATTERN: RegExp;
|
|
|
74
81
|
/** A code of the TypeScript type check (`TS2322`). */
|
|
75
82
|
export type TypeScriptDiagnosticCode = `TS${number}`;
|
|
76
83
|
/**
|
|
77
|
-
* The format of every build diagnostic code, known or not
|
|
84
|
+
* The format of every build diagnostic code, known or not: a TypeScript code, or
|
|
78
85
|
* upper snake case (a letter, then letters, digits and `_`) that is not `TS` followed only by
|
|
79
86
|
* digits, so `TS`, `TS12` and `TS0123` stay refused. With `diagnosticCodeMaxLength`, this is all
|
|
80
87
|
* the published schema checks about `code`; the catalog keys follow it (a test checks). Plain
|
|
@@ -95,8 +102,8 @@ declare const catalog: {
|
|
|
95
102
|
readonly "pt-BR": "O build entrou na fila, mas o pacote de fonte não está no armazenamento. O pacote é guardado no upload da versão, então o problema é do lado do Taggor.";
|
|
96
103
|
};
|
|
97
104
|
readonly hint: {
|
|
98
|
-
readonly en: "Publish the version again. If it happens again, contact
|
|
99
|
-
readonly "pt-BR": "Publique a versão de novo. Se acontecer de novo,
|
|
105
|
+
readonly en: "Publish the version again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
106
|
+
readonly "pt-BR": "Publique a versão de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
100
107
|
};
|
|
101
108
|
};
|
|
102
109
|
readonly SOURCE_TOO_LARGE: {
|
|
@@ -112,8 +119,8 @@ declare const catalog: {
|
|
|
112
119
|
readonly "pt-BR": "O pacote de fonte passa do que o Taggor aceita: comprimido, descompactado ou em número de arquivos (uma bomba de descompressão também para aqui). Causas comuns: saída de build, node_modules, imagens ou arquivos de dados empacotados junto com o fonte.";
|
|
113
120
|
};
|
|
114
121
|
readonly hint: {
|
|
115
|
-
readonly en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist
|
|
116
|
-
readonly "pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist
|
|
122
|
+
readonly en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist and data files. Keep the images and fonts the code imports under src/ in the supported formats, but delete the ones nothing imports and compress the large ones. The limits that apply: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
123
|
+
readonly "pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist e arquivos de dados. Mantenha em src/, nos formatos aceitos, as imagens e fontes que o código importa, mas apague as que nada importa e comprima as grandes. Os limites que valem: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
117
124
|
};
|
|
118
125
|
};
|
|
119
126
|
readonly SOURCE_INVALID: {
|
|
@@ -125,12 +132,12 @@ declare const catalog: {
|
|
|
125
132
|
readonly "pt-BR": "Pacote de fonte inválido";
|
|
126
133
|
};
|
|
127
134
|
readonly description: {
|
|
128
|
-
readonly en: "The source package is not a gzip-compressed POSIX tar that Taggor reads safely: it is empty or not exactly one gzip member, it is a GNU or v7 tar, a header is corrupt or truncated, an entry other than a file has a body, a pax header is too large or has a key that is not allowed, two files have the same name (also when only letter case or Unicode normalization differs) or a file is also a folder, or a file is not UTF-8
|
|
129
|
-
readonly "pt-BR": "O pacote de fonte não é um tar POSIX comprimido com gzip que o Taggor lê com segurança: está vazio ou não é exatamente um membro gzip, é um tar GNU ou v7, um cabeçalho está corrompido ou cortado, uma entrada que não é arquivo tem corpo, um cabeçalho pax é grande demais ou tem chave não permitida, dois arquivos têm o mesmo nome (também quando só mudam maiúsculas ou a normalização Unicode) ou um arquivo é também pasta, ou um arquivo não é
|
|
135
|
+
readonly en: "The source package is not a gzip-compressed POSIX tar that Taggor reads safely: it is empty or not exactly one gzip member, it is a GNU or v7 tar, a header is corrupt or truncated, an entry other than a file has a body, a pax header is too large or has a key that is not allowed, two files have the same name (also when only letter case or Unicode normalization differs) or a file is also a folder, or a text file (code, styles, JSON, Markdown) is not UTF-8. The UTF-8 rule does not apply to the images and WOFF2 fonts under src/, which are kept as bytes; file names must be UTF-8 as well.";
|
|
136
|
+
readonly "pt-BR": "O pacote de fonte não é um tar POSIX comprimido com gzip que o Taggor lê com segurança: está vazio ou não é exatamente um membro gzip, é um tar GNU ou v7, um cabeçalho está corrompido ou cortado, uma entrada que não é arquivo tem corpo, um cabeçalho pax é grande demais ou tem chave não permitida, dois arquivos têm o mesmo nome (também quando só mudam maiúsculas ou a normalização Unicode) ou um arquivo é também pasta, ou um arquivo de texto (código, estilos, JSON, Markdown) não é UTF-8. A regra de UTF-8 não vale para as imagens e fontes WOFF2 em src/, que são mantidas como bytes; os nomes dos arquivos também precisam ser UTF-8.";
|
|
130
137
|
};
|
|
131
138
|
readonly hint: {
|
|
132
|
-
readonly en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular
|
|
133
|
-
readonly "pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns
|
|
139
|
+
readonly en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular files (tar --format=posix -czf component.tgz src; GNU tar writes its own format without --format=posix), with the code, styles, JSON and Markdown saved as UTF-8 text; images and WOFF2 fonts stay binary. The message names the file that was refused.";
|
|
140
|
+
readonly "pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns (tar --format=posix -czf component.tgz src; sem --format=posix, o GNU tar grava o formato próprio dele), com código, estilos, JSON e Markdown salvos como texto UTF-8; imagens e fontes WOFF2 continuam binárias. A mensagem cita o arquivo recusado.";
|
|
134
141
|
};
|
|
135
142
|
};
|
|
136
143
|
readonly SOURCE_PATH_NOT_ALLOWED: {
|
|
@@ -180,8 +187,8 @@ declare const catalog: {
|
|
|
180
187
|
readonly "pt-BR": "Um arquivo do pacote de fonte tem uma extensão que o Taggor não aceita, é uma imagem ou fonte fora de src/, ou é metadado do macOS (._nome, .DS_Store) que o tar do macOS acrescenta. Um pacote de componente só tem arquivos .ts, .tsx, .js, .jsx, .mjs, .json, .css, .scss e .md e, em src/, as imagens e fontes que o código importa (.png, .jpg, .jpeg, .webp, .avif, .svg, .woff2).";
|
|
181
188
|
};
|
|
182
189
|
readonly hint: {
|
|
183
|
-
readonly en: "Leave the file out of the package.
|
|
184
|
-
readonly "pt-BR": "Deixe o arquivo fora do pacote.
|
|
190
|
+
readonly en: "Leave the file out of the package if the code does not use it (images nothing imports are the usual extra). If it is used, convert other image formats to .png, .webp or .svg and fonts to .woff2, put them under src/ and import them from the code (import logo from \"./logo.svg\"). The supported formats stay: this check only refuses the others. Size limits: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
191
|
+
readonly "pt-BR": "Deixe o arquivo fora do pacote se o código não o usa (imagem que nada importa é o excesso mais comum). Se ele é usado, converta outros formatos de imagem para .png, .webp ou .svg e fontes para .woff2, ponha em src/ e importe pelo código (import logo from \"./logo.svg\"). Os formatos aceitos continuam valendo: esta checagem só recusa os outros. Limites de tamanho: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
185
192
|
};
|
|
186
193
|
};
|
|
187
194
|
readonly SOURCE_CONFIG_NOT_ALLOWED: {
|
|
@@ -322,6 +329,7 @@ declare const catalog: {
|
|
|
322
329
|
};
|
|
323
330
|
readonly REACT_API_UNSUPPORTED: {
|
|
324
331
|
readonly severity: "warning";
|
|
332
|
+
readonly alsoSeverity: "error";
|
|
325
333
|
readonly fault: "customer";
|
|
326
334
|
readonly stage: "compile";
|
|
327
335
|
readonly title: {
|
|
@@ -329,8 +337,8 @@ declare const catalog: {
|
|
|
329
337
|
readonly "pt-BR": "API do React sem suporte";
|
|
330
338
|
};
|
|
331
339
|
readonly description: {
|
|
332
|
-
readonly en: "The component, or a library it imports, uses a React API that Preact's compatibility layer (preact/compat, where react and react-dom resolve) does not provide, such as use, useActionState, useOptimistic, useFormStatus or Profiler, or a React entry point it does not have (react-dom/server, react/compiler-runtime); or it mounts a React root itself (createRoot, render), which a component never needs. A named import of a missing API
|
|
333
|
-
readonly "pt-BR": "O componente, ou uma biblioteca que ele importa, usa uma API do React que a camada de compatibilidade do Preact (preact/compat, para onde react e react-dom resolvem) não oferece, como use, useActionState, useOptimistic, useFormStatus ou Profiler, ou um ponto de entrada do React que ela não tem (react-dom/server, react/compiler-runtime); ou monta uma raiz React por conta própria (createRoot, render), o que um componente nunca precisa. Import nomeado de API ausente
|
|
340
|
+
readonly en: "The component, or a library it imports, uses a React API that Preact's compatibility layer (preact/compat, where react and react-dom resolve) does not provide, such as use, useActionState, useOptimistic, useFormStatus or Profiler, or a React entry point it does not have (react-dom/server, react/compiler-runtime); or it mounts a React root itself (createRoot, render), which a component never needs. The severity depends on the case:\n\n| Case | Severity | What happens |\n| --- | --- | --- |\n| A named import of a missing API (`import { use } from \"react\"`) | error | The bundle could not load in the browser, so the build fails. |\n| A missing API read through a namespace or default import (`React.use`) | warning | The build goes on; the API is undefined when the code runs, and the component's error boundary catches the failure. |\n| Mounting a React root (`createRoot`, `render`) | warning | The build goes on; the runtime mounts the component, so the root is never needed. |";
|
|
341
|
+
readonly "pt-BR": "O componente, ou uma biblioteca que ele importa, usa uma API do React que a camada de compatibilidade do Preact (preact/compat, para onde react e react-dom resolvem) não oferece, como use, useActionState, useOptimistic, useFormStatus ou Profiler, ou um ponto de entrada do React que ela não tem (react-dom/server, react/compiler-runtime); ou monta uma raiz React por conta própria (createRoot, render), o que um componente nunca precisa. A gravidade depende do caso:\n\n| Caso | Gravidade | O que acontece |\n| --- | --- | --- |\n| Import nomeado de API ausente (`import { use } from \"react\"`) | erro | O bundle não carregaria no navegador, então o build falha. |\n| API ausente lida por import de namespace ou default (`React.use`) | aviso | O build segue; a API é undefined quando o código roda, e o error boundary do componente pega a falha. |\n| Montar uma raiz React (`createRoot`, `render`) | aviso | O build segue; o runtime monta o componente, então a raiz nunca é necessária. |";
|
|
334
342
|
};
|
|
335
343
|
readonly hint: {
|
|
336
344
|
readonly en: "Use the supported alternative the message names (useState and an async handler for useActionState, useContext for use(context)), or write that part with Preact's own hooks. The runtime mounts the component: export it with defineTaggorComponent instead of calling createRoot.";
|
|
@@ -431,8 +439,8 @@ declare const catalog: {
|
|
|
431
439
|
readonly "pt-BR": "Erro de tipo do TypeScript";
|
|
432
440
|
};
|
|
433
441
|
readonly description: {
|
|
434
|
-
readonly en: "The type check found an error. The code is `TS` and the compiler's number
|
|
435
|
-
readonly "pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador
|
|
442
|
+
readonly en: "The type check found an error. The code is `TS` and the compiler's number, and the message is the compiler's.";
|
|
443
|
+
readonly "pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador, e a mensagem é a do compilador.";
|
|
436
444
|
};
|
|
437
445
|
readonly hint: {
|
|
438
446
|
readonly en: "Fix the type at the position given; the message says which types disagree.";
|
|
@@ -486,8 +494,8 @@ declare const catalog: {
|
|
|
486
494
|
readonly "pt-BR": "O builder carrega o módulo do componente, sem navegador, para ler a declaração, e o módulo lançou erro ou saiu. Causa comum: código no nível de cima de um módulo que usa globais do navegador (`window`, `document`, `localStorage`, `navigator`), que não existem enquanto a declaração é lida.";
|
|
487
495
|
};
|
|
488
496
|
readonly hint: {
|
|
489
|
-
readonly en: "Do not
|
|
490
|
-
readonly "pt-BR": "Não use window
|
|
497
|
+
readonly en: "Do not use window or navigator at the top level of a module: use them inside render, an event handler or useEffect, which run in the browser after the component mounts. That does not make everything allowed: the build still refuses, wherever they appear, the page's storage (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/), its cookies (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/) and its DOM outside the component (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), so moving them into useEffect only swaps this error for one of those. Keep state in useState or use the Taggor data API.";
|
|
498
|
+
readonly "pt-BR": "Não use window nem navigator no nível de cima de um módulo: use-os dentro do render, de um handler de evento ou de um useEffect, que rodam no navegador depois que o componente monta. Isso não libera tudo: o build continua recusando, onde quer que apareçam, o armazenamento da página (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/), os cookies dela (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/) e o DOM dela fora do componente (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), então movê-los para um useEffect só troca este erro por um desses. Guarde o estado em useState ou use a API de dados do Taggor.";
|
|
491
499
|
};
|
|
492
500
|
};
|
|
493
501
|
readonly STYLE_REFERENCE_UNDECLARED: {
|
|
@@ -520,8 +528,8 @@ declare const catalog: {
|
|
|
520
528
|
readonly "pt-BR": "O componente importa uma folha de estilo (`import \"./styles.css\"`), e o builder a entrega dentro do bundle publicado como estilos do componente, mas o bundle pronto não a leva. O build para em vez de publicar um componente que aparece sem o CSS. O pacote de fonte não causou isso: é falha do builder.";
|
|
521
529
|
};
|
|
522
530
|
readonly hint: {
|
|
523
|
-
readonly en: "Do not retry: the failure repeats.
|
|
524
|
-
readonly "pt-BR": "Não tente de novo: a falha se repete.
|
|
531
|
+
readonly en: "Do not retry: the failure repeats. Write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
532
|
+
readonly "pt-BR": "Não tente de novo: a falha se repete. Escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
525
533
|
};
|
|
526
534
|
};
|
|
527
535
|
readonly OUTPUT_TOO_LARGE: {
|
|
@@ -724,8 +732,8 @@ declare const catalog: {
|
|
|
724
732
|
readonly "pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente poderia ler o que o site guardou ali e deixar dados sem o consentimento do visitante (regra local-storage).";
|
|
725
733
|
};
|
|
726
734
|
readonly hint: {
|
|
727
|
-
readonly en: "Keep state in memory (useState) or in props; to persist data, use the Taggor data API (useTaggorData).";
|
|
728
|
-
readonly "pt-BR": "Guarde o estado em memória (useState) ou em props; para persistir dados, use a API de dados do Taggor (useTaggorData).";
|
|
735
|
+
readonly en: "Remove every use of these storages, at the top level and inside useEffect or a handler alike: the build refuses them everywhere. Keep state in memory (useState) or in props; to persist data, use the Taggor data API (useTaggorData). Browser globals such as window and navigator are fine once the component has mounted: see https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/.";
|
|
736
|
+
readonly "pt-BR": "Remova todo uso desses armazenamentos, no nível de cima e também dentro de useEffect ou de um handler: o build os recusa em qualquer lugar. Guarde o estado em memória (useState) ou em props; para persistir dados, use a API de dados do Taggor (useTaggorData). Globais do navegador como window e navigator não têm problema depois que o componente monta: veja https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/.";
|
|
729
737
|
};
|
|
730
738
|
};
|
|
731
739
|
readonly UNSAFE_HOST_DOM: {
|
|
@@ -1183,8 +1191,8 @@ declare const catalog: {
|
|
|
1183
1191
|
readonly "pt-BR": "O container de build mandou uma resposta que o builder não aceita, e o build parou. Isso conta como falha do builder.";
|
|
1184
1192
|
};
|
|
1185
1193
|
readonly hint: {
|
|
1186
|
-
readonly en: "Publish again. If it happens again, contact
|
|
1187
|
-
readonly "pt-BR": "Publique de novo. Se acontecer de novo,
|
|
1194
|
+
readonly en: "Publish again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1195
|
+
readonly "pt-BR": "Publique de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1188
1196
|
};
|
|
1189
1197
|
};
|
|
1190
1198
|
readonly INTERNAL_ERROR: {
|
|
@@ -1200,8 +1208,8 @@ declare const catalog: {
|
|
|
1200
1208
|
readonly "pt-BR": "A infraestrutura do Taggor falhou até a última tentativa, então o build parou. Nada no pacote de fonte causou isso.";
|
|
1201
1209
|
};
|
|
1202
1210
|
readonly hint: {
|
|
1203
|
-
readonly en: "Publish again later. If it keeps failing, contact
|
|
1204
|
-
readonly "pt-BR": "Publique de novo mais tarde. Se continuar falhando,
|
|
1211
|
+
readonly en: "Publish again later. If it keeps failing, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1212
|
+
readonly "pt-BR": "Publique de novo mais tarde. Se continuar falhando, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1205
1213
|
};
|
|
1206
1214
|
};
|
|
1207
1215
|
readonly BUILD_STUCK: {
|
|
@@ -1209,16 +1217,16 @@ declare const catalog: {
|
|
|
1209
1217
|
readonly fault: "platform";
|
|
1210
1218
|
readonly stage: "build";
|
|
1211
1219
|
readonly title: {
|
|
1212
|
-
readonly en: "Build
|
|
1213
|
-
readonly "pt-BR": "Build
|
|
1220
|
+
readonly en: "Build ended after the processing time";
|
|
1221
|
+
readonly "pt-BR": "Build encerrado ao passar do prazo de processamento";
|
|
1214
1222
|
};
|
|
1215
1223
|
readonly description: {
|
|
1216
|
-
readonly en: "The build
|
|
1217
|
-
readonly "pt-BR": "O build
|
|
1224
|
+
readonly en: "The build went past the time Taggor allows for processing a build and was stopped as failed. Nothing in the source package caused it, and the build produced no version, so nothing changed on your sites.";
|
|
1225
|
+
readonly "pt-BR": "O build passou do tempo que o Taggor dá para processar um build e foi encerrado como falho. Nada no pacote de fonte causou isso, e o build não gerou versão, então nada mudou nos seus sites.";
|
|
1218
1226
|
};
|
|
1219
1227
|
readonly hint: {
|
|
1220
|
-
readonly en: "Publish again. If it happens again, contact
|
|
1221
|
-
readonly "pt-BR": "Publique de novo. Se acontecer de novo,
|
|
1228
|
+
readonly en: "Publish again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1229
|
+
readonly "pt-BR": "Publique de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1222
1230
|
};
|
|
1223
1231
|
};
|
|
1224
1232
|
readonly CONTAINER_START_TIMEOUT: {
|
|
@@ -1234,8 +1242,8 @@ declare const catalog: {
|
|
|
1234
1242
|
readonly "pt-BR": "O container que roda o build não ficou pronto dentro do tempo limite de partida, em todas as tentativas. Nada no pacote de fonte causou isso: a plataforma não conseguiu dar um container ao build.";
|
|
1235
1243
|
};
|
|
1236
1244
|
readonly hint: {
|
|
1237
|
-
readonly en: "Publish again in a few minutes. If it keeps failing, contact
|
|
1238
|
-
readonly "pt-BR": "Publique de novo em alguns minutos. Se continuar falhando,
|
|
1245
|
+
readonly en: "Publish again in a few minutes. If it keeps failing, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1246
|
+
readonly "pt-BR": "Publique de novo em alguns minutos. Se continuar falhando, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1239
1247
|
};
|
|
1240
1248
|
};
|
|
1241
1249
|
readonly BREAKING_PROP_CHANGE: {
|
|
@@ -1388,7 +1396,7 @@ export declare function diagnosticDocsUrl(code: DiagnosticCode): string;
|
|
|
1388
1396
|
* Whether a build failed because of its source: at least one `error` whose code is the
|
|
1389
1397
|
* customer's fault. The first-attempt success metric (PLANO) counts a publish as failed on the
|
|
1390
1398
|
* first try when its first build has such an error; platform errors and warnings do not count.
|
|
1391
|
-
* A code this package does not know (a newer builder
|
|
1399
|
+
* A code this package does not know (a newer builder) has no known fault and does not
|
|
1392
1400
|
* count, so an unknown code never blames the customer.
|
|
1393
1401
|
*
|
|
1394
1402
|
* Inputs: the diagnostics of one build, codes known or not. Output: a boolean. Errors: none.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic-catalog.d.ts","sourceRoot":"","sources":["../src/diagnostic-catalog.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;IAIlC,uDAAuD;;IAEvD,0CAA0C;;IAE1C,2CAA2C;;IAE3C,wDAAwD;;;EAGxD,CAAC;AA2CH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AAIF;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBvD;AAED,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACzB,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnF,+CAA+C;AAC/C,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EAQtD,CAAC;AAEH,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,iGAAiG;IACjG,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B;AAED,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,yCAAyC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAwB,CAAC;AAEnE,sDAAsD;AACtD,MAAM,MAAM,wBAAwB,GAAG,KAAK,MAAM,EAAE,CAAC;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,QAAyD,CAAC;AAE9F,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"diagnostic-catalog.d.ts","sourceRoot":"","sources":["../src/diagnostic-catalog.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;IAIlC,uDAAuD;;IAEvD,0CAA0C;;IAE1C,2CAA2C;;IAE3C,wDAAwD;;;EAGxD,CAAC;AA2CH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AAIF;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBvD;AAED,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACzB,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnF,+CAA+C;AAC/C,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EAQtD,CAAC;AAEH,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,iGAAiG;IACjG,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B;AAED,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,yCAAyC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAwB,CAAC;AAEnE,sDAAsD;AACtD,MAAM,MAAM,wBAAwB,GAAG,KAAK,MAAM,EAAE,CAAC;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,QAAyD,CAAC;AAE9F,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAquC8C,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,EAAE,sBAAsB,CAAC,CACxE,CAAC;AAEtB,kEAAkE;AAClE,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,OAAO,CAAC;AAExD,gFAAgF;AAChF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAEtE,kEAAkE;AAClE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,wBAAwB,CAAC;AAE5E,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,EAE9B,SAAS,mBAAmB,EAAE,CAAC;AAEpC;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAIxE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,oBAAoB,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,sBAAsB,CAE5E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAK9D;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,EAAE,GACvF,OAAO,CAOT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `diagnosticCatalog
|
|
2
|
+
* `diagnosticCatalog`: the single list of build diagnostic codes, with what each one
|
|
3
3
|
* means and how to fix it, in en and pt-BR. Zod-free.
|
|
4
4
|
*
|
|
5
5
|
* Every error or warning a build reports carries one of these codes (or a TypeScript code,
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* (`docs/diagnostics/<locale>/<CODE>.md`), checked for freshness by `make check`. A new code is
|
|
10
10
|
* added here first; emitting it before that fails the builder's type check and the schema.
|
|
11
11
|
* The published JSON Schema does not list the codes, only their format
|
|
12
|
-
* (`DIAGNOSTIC_CODE_PATTERN
|
|
12
|
+
* (`DIAGNOSTIC_CODE_PATTERN`): the catalog grows without a new contract minor,
|
|
13
13
|
* and clients treat a code they do not know as a generic diagnostic.
|
|
14
14
|
*/
|
|
15
15
|
import { deepFreeze } from "./freeze.js";
|
|
16
16
|
/**
|
|
17
|
-
* Limits of one build diagnostic
|
|
17
|
+
* Limits of one build diagnostic: what the builder reports for every error and warning
|
|
18
18
|
* and what `GET /v1/builds/{id}`, the CLI and the MCP pass on. The build container produces these
|
|
19
19
|
* from customer code, so the Worker checks them again (`buildDiagnosticSchema`).
|
|
20
20
|
*
|
|
@@ -35,7 +35,7 @@ export const BUILD_DIAGNOSTIC_LIMITS = Object.freeze({
|
|
|
35
35
|
diagnosticDocsUrlMaxLength: 200,
|
|
36
36
|
});
|
|
37
37
|
/**
|
|
38
|
-
* BMP characters no diagnostic text may carry (
|
|
38
|
+
* BMP characters no diagnostic text may carry (M1 and its low finding):
|
|
39
39
|
* C0 controls except tab (ESC starts the terminal sequences OSC 52 and OSC 8), DEL, C1 controls,
|
|
40
40
|
* the soft hyphen (U+00AD), the bidirectional controls (U+061C, U+200E, U+200F, U+202A-U+202E,
|
|
41
41
|
* U+2066-U+2069), the line and paragraph separators, and the invisible formatting characters that
|
|
@@ -43,11 +43,11 @@ export const BUILD_DIAGNOSTIC_LIMITS = Object.freeze({
|
|
|
43
43
|
* goes too), U+2060-U+2064, U+206A-U+206F, U+FEFF and U+FFF9-U+FFFB. Zero width joiner and
|
|
44
44
|
* non-joiner (U+200C, U+200D) and the variation selectors stay: emoji need them. The source of a
|
|
45
45
|
* component is untrusted and its lines and names reach the CLI, the MCP and the portal.
|
|
46
|
-
* Since contract 1.7
|
|
47
|
-
* `safeDiagnosticText` escaped
|
|
46
|
+
* Since contract 1.7 the class also holds the invisible fillers that
|
|
47
|
+
* `safeDiagnosticText` escaped but the sealed 1.3-1.6 schema pattern did not refuse:
|
|
48
48
|
* U+034F, the Hangul fillers U+115F, U+1160, U+3164 and U+FFA0, and U+17B4-U+17B5. Decision: the
|
|
49
49
|
* variation selectors (U+FE00-U+FE0F, U+E0100-U+E01EF) stay allowed, as emoji and CJK need them.
|
|
50
|
-
* `scripts/check_hidden_characters.py`
|
|
50
|
+
* `scripts/check_hidden_characters.py` reads this literal and the `TAG_*` constants
|
|
51
51
|
* below as text, to refuse the same characters raw in the repository: keep their shape.
|
|
52
52
|
*/
|
|
53
53
|
const UNSAFE_TEXT_CLASS = "\\u0000-\\u0008\\u000a-\\u001f\\u007f-\\u009f\\u00ad\\u034f\\u061c\\u115f\\u1160\\u17b4\\u17b5\\u180e\\u200b\\u200e\\u200f\\u2028\\u2029\\u202a-\\u202e\\u2060-\\u2064\\u2066-\\u206f\\u3164\\ufeff\\uffa0\\ufff9-\\ufffb";
|
|
@@ -124,7 +124,7 @@ export const DIAGNOSTIC_DOCS_BASE_URL = "https://docs.taggor.dev/diagnostics/";
|
|
|
124
124
|
*/
|
|
125
125
|
export const TYPESCRIPT_DIAGNOSTIC_PATTERN = /^TS[1-9][0-9]{3,4}$/;
|
|
126
126
|
/**
|
|
127
|
-
* The format of every build diagnostic code, known or not
|
|
127
|
+
* The format of every build diagnostic code, known or not: a TypeScript code, or
|
|
128
128
|
* upper snake case (a letter, then letters, digits and `_`) that is not `TS` followed only by
|
|
129
129
|
* digits, so `TS`, `TS12` and `TS0123` stay refused. With `diagnosticCodeMaxLength`, this is all
|
|
130
130
|
* the published schema checks about `code`; the catalog keys follow it (a test checks). Plain
|
|
@@ -142,8 +142,8 @@ const catalog = {
|
|
|
142
142
|
"pt-BR": "O build entrou na fila, mas o pacote de fonte não está no armazenamento. O pacote é guardado no upload da versão, então o problema é do lado do Taggor.",
|
|
143
143
|
},
|
|
144
144
|
hint: {
|
|
145
|
-
en: "Publish the version again. If it happens again, contact
|
|
146
|
-
"pt-BR": "Publique a versão de novo. Se acontecer de novo,
|
|
145
|
+
en: "Publish the version again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).",
|
|
146
|
+
"pt-BR": "Publique a versão de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).",
|
|
147
147
|
},
|
|
148
148
|
},
|
|
149
149
|
SOURCE_TOO_LARGE: {
|
|
@@ -156,8 +156,8 @@ const catalog = {
|
|
|
156
156
|
"pt-BR": "O pacote de fonte passa do que o Taggor aceita: comprimido, descompactado ou em número de arquivos (uma bomba de descompressão também para aqui). Causas comuns: saída de build, node_modules, imagens ou arquivos de dados empacotados junto com o fonte.",
|
|
157
157
|
},
|
|
158
158
|
hint: {
|
|
159
|
-
en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist
|
|
160
|
-
"pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist
|
|
159
|
+
en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist and data files. Keep the images and fonts the code imports under src/ in the supported formats, but delete the ones nothing imports and compress the large ones. The limits that apply: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.",
|
|
160
|
+
"pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist e arquivos de dados. Mantenha em src/, nos formatos aceitos, as imagens e fontes que o código importa, mas apague as que nada importa e comprima as grandes. Os limites que valem: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.",
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
163
|
SOURCE_INVALID: {
|
|
@@ -166,12 +166,12 @@ const catalog = {
|
|
|
166
166
|
stage: "source",
|
|
167
167
|
title: { en: "Invalid source package", "pt-BR": "Pacote de fonte inválido" },
|
|
168
168
|
description: {
|
|
169
|
-
en: "The source package is not a gzip-compressed POSIX tar that Taggor reads safely: it is empty or not exactly one gzip member, it is a GNU or v7 tar, a header is corrupt or truncated, an entry other than a file has a body, a pax header is too large or has a key that is not allowed, two files have the same name (also when only letter case or Unicode normalization differs) or a file is also a folder, or a file is not UTF-8
|
|
170
|
-
"pt-BR": "O pacote de fonte não é um tar POSIX comprimido com gzip que o Taggor lê com segurança: está vazio ou não é exatamente um membro gzip, é um tar GNU ou v7, um cabeçalho está corrompido ou cortado, uma entrada que não é arquivo tem corpo, um cabeçalho pax é grande demais ou tem chave não permitida, dois arquivos têm o mesmo nome (também quando só mudam maiúsculas ou a normalização Unicode) ou um arquivo é também pasta, ou um arquivo não é
|
|
169
|
+
en: "The source package is not a gzip-compressed POSIX tar that Taggor reads safely: it is empty or not exactly one gzip member, it is a GNU or v7 tar, a header is corrupt or truncated, an entry other than a file has a body, a pax header is too large or has a key that is not allowed, two files have the same name (also when only letter case or Unicode normalization differs) or a file is also a folder, or a text file (code, styles, JSON, Markdown) is not UTF-8. The UTF-8 rule does not apply to the images and WOFF2 fonts under src/, which are kept as bytes; file names must be UTF-8 as well.",
|
|
170
|
+
"pt-BR": "O pacote de fonte não é um tar POSIX comprimido com gzip que o Taggor lê com segurança: está vazio ou não é exatamente um membro gzip, é um tar GNU ou v7, um cabeçalho está corrompido ou cortado, uma entrada que não é arquivo tem corpo, um cabeçalho pax é grande demais ou tem chave não permitida, dois arquivos têm o mesmo nome (também quando só mudam maiúsculas ou a normalização Unicode) ou um arquivo é também pasta, ou um arquivo de texto (código, estilos, JSON, Markdown) não é UTF-8. A regra de UTF-8 não vale para as imagens e fontes WOFF2 em src/, que são mantidas como bytes; os nomes dos arquivos também precisam ser UTF-8.",
|
|
171
171
|
},
|
|
172
172
|
hint: {
|
|
173
|
-
en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular
|
|
174
|
-
"pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns
|
|
173
|
+
en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular files (tar --format=posix -czf component.tgz src; GNU tar writes its own format without --format=posix), with the code, styles, JSON and Markdown saved as UTF-8 text; images and WOFF2 fonts stay binary. The message names the file that was refused.",
|
|
174
|
+
"pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns (tar --format=posix -czf component.tgz src; sem --format=posix, o GNU tar grava o formato próprio dele), com código, estilos, JSON e Markdown salvos como texto UTF-8; imagens e fontes WOFF2 continuam binárias. A mensagem cita o arquivo recusado.",
|
|
175
175
|
},
|
|
176
176
|
},
|
|
177
177
|
SOURCE_PATH_NOT_ALLOWED: {
|
|
@@ -215,8 +215,8 @@ const catalog = {
|
|
|
215
215
|
"pt-BR": "Um arquivo do pacote de fonte tem uma extensão que o Taggor não aceita, é uma imagem ou fonte fora de src/, ou é metadado do macOS (._nome, .DS_Store) que o tar do macOS acrescenta. Um pacote de componente só tem arquivos .ts, .tsx, .js, .jsx, .mjs, .json, .css, .scss e .md e, em src/, as imagens e fontes que o código importa (.png, .jpg, .jpeg, .webp, .avif, .svg, .woff2).",
|
|
216
216
|
},
|
|
217
217
|
hint: {
|
|
218
|
-
en: 'Leave the file out of the package.
|
|
219
|
-
"pt-BR": 'Deixe o arquivo fora do pacote.
|
|
218
|
+
en: 'Leave the file out of the package if the code does not use it (images nothing imports are the usual extra). If it is used, convert other image formats to .png, .webp or .svg and fonts to .woff2, put them under src/ and import them from the code (import logo from "./logo.svg"). The supported formats stay: this check only refuses the others. Size limits: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.',
|
|
219
|
+
"pt-BR": 'Deixe o arquivo fora do pacote se o código não o usa (imagem que nada importa é o excesso mais comum). Se ele é usado, converta outros formatos de imagem para .png, .webp ou .svg e fontes para .woff2, ponha em src/ e importe pelo código (import logo from "./logo.svg"). Os formatos aceitos continuam valendo: esta checagem só recusa os outros. Limites de tamanho: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.',
|
|
220
220
|
},
|
|
221
221
|
},
|
|
222
222
|
SOURCE_CONFIG_NOT_ALLOWED: {
|
|
@@ -336,12 +336,13 @@ const catalog = {
|
|
|
336
336
|
},
|
|
337
337
|
REACT_API_UNSUPPORTED: {
|
|
338
338
|
severity: "warning",
|
|
339
|
+
alsoSeverity: "error",
|
|
339
340
|
fault: "customer",
|
|
340
341
|
stage: "compile",
|
|
341
342
|
title: { en: "React API not supported", "pt-BR": "API do React sem suporte" },
|
|
342
343
|
description: {
|
|
343
|
-
en: "The component, or a library it imports, uses a React API that Preact's compatibility layer (preact/compat, where react and react-dom resolve) does not provide, such as use, useActionState, useOptimistic, useFormStatus or Profiler, or a React entry point it does not have (react-dom/server, react/compiler-runtime); or it mounts a React root itself (createRoot, render), which a component never needs. A named import of a missing API
|
|
344
|
-
"pt-BR":
|
|
344
|
+
en: "The component, or a library it imports, uses a React API that Preact's compatibility layer (preact/compat, where react and react-dom resolve) does not provide, such as use, useActionState, useOptimistic, useFormStatus or Profiler, or a React entry point it does not have (react-dom/server, react/compiler-runtime); or it mounts a React root itself (createRoot, render), which a component never needs. The severity depends on the case:\n\n| Case | Severity | What happens |\n| --- | --- | --- |\n| A named import of a missing API (`import { use } from \"react\"`) | error | The bundle could not load in the browser, so the build fails. |\n| A missing API read through a namespace or default import (`React.use`) | warning | The build goes on; the API is undefined when the code runs, and the component's error boundary catches the failure. |\n| Mounting a React root (`createRoot`, `render`) | warning | The build goes on; the runtime mounts the component, so the root is never needed. |",
|
|
345
|
+
"pt-BR": 'O componente, ou uma biblioteca que ele importa, usa uma API do React que a camada de compatibilidade do Preact (preact/compat, para onde react e react-dom resolvem) não oferece, como use, useActionState, useOptimistic, useFormStatus ou Profiler, ou um ponto de entrada do React que ela não tem (react-dom/server, react/compiler-runtime); ou monta uma raiz React por conta própria (createRoot, render), o que um componente nunca precisa. A gravidade depende do caso:\n\n| Caso | Gravidade | O que acontece |\n| --- | --- | --- |\n| Import nomeado de API ausente (`import { use } from "react"`) | erro | O bundle não carregaria no navegador, então o build falha. |\n| API ausente lida por import de namespace ou default (`React.use`) | aviso | O build segue; a API é undefined quando o código roda, e o error boundary do componente pega a falha. |\n| Montar uma raiz React (`createRoot`, `render`) | aviso | O build segue; o runtime monta o componente, então a raiz nunca é necessária. |',
|
|
345
346
|
},
|
|
346
347
|
hint: {
|
|
347
348
|
en: "Use the supported alternative the message names (useState and an async handler for useActionState, useContext for use(context)), or write that part with Preact's own hooks. The runtime mounts the component: export it with defineTaggorComponent instead of calling createRoot.",
|
|
@@ -427,8 +428,8 @@ const catalog = {
|
|
|
427
428
|
stage: "typecheck",
|
|
428
429
|
title: { en: "TypeScript type error", "pt-BR": "Erro de tipo do TypeScript" },
|
|
429
430
|
description: {
|
|
430
|
-
en: "The type check found an error. The code is `TS` and the compiler's number
|
|
431
|
-
"pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador
|
|
431
|
+
en: "The type check found an error. The code is `TS` and the compiler's number, and the message is the compiler's.",
|
|
432
|
+
"pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador, e a mensagem é a do compilador.",
|
|
432
433
|
},
|
|
433
434
|
hint: {
|
|
434
435
|
en: "Fix the type at the position given; the message says which types disagree.",
|
|
@@ -479,8 +480,8 @@ const catalog = {
|
|
|
479
480
|
"pt-BR": "O builder carrega o módulo do componente, sem navegador, para ler a declaração, e o módulo lançou erro ou saiu. Causa comum: código no nível de cima de um módulo que usa globais do navegador (`window`, `document`, `localStorage`, `navigator`), que não existem enquanto a declaração é lida.",
|
|
480
481
|
},
|
|
481
482
|
hint: {
|
|
482
|
-
en: "Do not
|
|
483
|
-
"pt-BR": "Não use window
|
|
483
|
+
en: "Do not use window or navigator at the top level of a module: use them inside render, an event handler or useEffect, which run in the browser after the component mounts. That does not make everything allowed: the build still refuses, wherever they appear, the page's storage (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/), its cookies (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/) and its DOM outside the component (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), so moving them into useEffect only swaps this error for one of those. Keep state in useState or use the Taggor data API.",
|
|
484
|
+
"pt-BR": "Não use window nem navigator no nível de cima de um módulo: use-os dentro do render, de um handler de evento ou de um useEffect, que rodam no navegador depois que o componente monta. Isso não libera tudo: o build continua recusando, onde quer que apareçam, o armazenamento da página (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/), os cookies dela (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/) e o DOM dela fora do componente (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), então movê-los para um useEffect só troca este erro por um desses. Guarde o estado em useState ou use a API de dados do Taggor.",
|
|
484
485
|
},
|
|
485
486
|
},
|
|
486
487
|
STYLE_REFERENCE_UNDECLARED: {
|
|
@@ -513,8 +514,8 @@ const catalog = {
|
|
|
513
514
|
"pt-BR": 'O componente importa uma folha de estilo (`import "./styles.css"`), e o builder a entrega dentro do bundle publicado como estilos do componente, mas o bundle pronto não a leva. O build para em vez de publicar um componente que aparece sem o CSS. O pacote de fonte não causou isso: é falha do builder.',
|
|
514
515
|
},
|
|
515
516
|
hint: {
|
|
516
|
-
en: "Do not retry: the failure repeats.
|
|
517
|
-
"pt-BR": "Não tente de novo: a falha se repete.
|
|
517
|
+
en: "Do not retry: the failure repeats. Write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).",
|
|
518
|
+
"pt-BR": "Não tente de novo: a falha se repete. Escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).",
|
|
518
519
|
},
|
|
519
520
|
},
|
|
520
521
|
OUTPUT_TOO_LARGE: {
|
|
@@ -696,8 +697,8 @@ const catalog = {
|
|
|
696
697
|
"pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente poderia ler o que o site guardou ali e deixar dados sem o consentimento do visitante (regra local-storage).",
|
|
697
698
|
},
|
|
698
699
|
hint: {
|
|
699
|
-
en: "Keep state in memory (useState) or in props; to persist data, use the Taggor data API (useTaggorData).",
|
|
700
|
-
"pt-BR": "Guarde o estado em memória (useState) ou em props; para persistir dados, use a API de dados do Taggor (useTaggorData).",
|
|
700
|
+
en: "Remove every use of these storages, at the top level and inside useEffect or a handler alike: the build refuses them everywhere. Keep state in memory (useState) or in props; to persist data, use the Taggor data API (useTaggorData). Browser globals such as window and navigator are fine once the component has mounted: see https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/.",
|
|
701
|
+
"pt-BR": "Remova todo uso desses armazenamentos, no nível de cima e também dentro de useEffect ou de um handler: o build os recusa em qualquer lugar. Guarde o estado em memória (useState) ou em props; para persistir dados, use a API de dados do Taggor (useTaggorData). Globais do navegador como window e navigator não têm problema depois que o componente monta: veja https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/.",
|
|
701
702
|
},
|
|
702
703
|
},
|
|
703
704
|
UNSAFE_HOST_DOM: {
|
|
@@ -1104,8 +1105,8 @@ const catalog = {
|
|
|
1104
1105
|
"pt-BR": "O container de build mandou uma resposta que o builder não aceita, e o build parou. Isso conta como falha do builder.",
|
|
1105
1106
|
},
|
|
1106
1107
|
hint: {
|
|
1107
|
-
en: "Publish again. If it happens again, contact
|
|
1108
|
-
"pt-BR": "Publique de novo. Se acontecer de novo,
|
|
1108
|
+
en: "Publish again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).",
|
|
1109
|
+
"pt-BR": "Publique de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).",
|
|
1109
1110
|
},
|
|
1110
1111
|
},
|
|
1111
1112
|
INTERNAL_ERROR: {
|
|
@@ -1118,22 +1119,25 @@ const catalog = {
|
|
|
1118
1119
|
"pt-BR": "A infraestrutura do Taggor falhou até a última tentativa, então o build parou. Nada no pacote de fonte causou isso.",
|
|
1119
1120
|
},
|
|
1120
1121
|
hint: {
|
|
1121
|
-
en: "Publish again later. If it keeps failing, contact
|
|
1122
|
-
"pt-BR": "Publique de novo mais tarde. Se continuar falhando,
|
|
1122
|
+
en: "Publish again later. If it keeps failing, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).",
|
|
1123
|
+
"pt-BR": "Publique de novo mais tarde. Se continuar falhando, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).",
|
|
1123
1124
|
},
|
|
1124
1125
|
},
|
|
1125
1126
|
BUILD_STUCK: {
|
|
1126
1127
|
severity: "error",
|
|
1127
1128
|
fault: "platform",
|
|
1128
1129
|
stage: "build",
|
|
1129
|
-
title: {
|
|
1130
|
+
title: {
|
|
1131
|
+
en: "Build ended after the processing time",
|
|
1132
|
+
"pt-BR": "Build encerrado ao passar do prazo de processamento",
|
|
1133
|
+
},
|
|
1130
1134
|
description: {
|
|
1131
|
-
en: "The build
|
|
1132
|
-
"pt-BR": "O build
|
|
1135
|
+
en: "The build went past the time Taggor allows for processing a build and was stopped as failed. Nothing in the source package caused it, and the build produced no version, so nothing changed on your sites.",
|
|
1136
|
+
"pt-BR": "O build passou do tempo que o Taggor dá para processar um build e foi encerrado como falho. Nada no pacote de fonte causou isso, e o build não gerou versão, então nada mudou nos seus sites.",
|
|
1133
1137
|
},
|
|
1134
1138
|
hint: {
|
|
1135
|
-
en: "Publish again. If it happens again, contact
|
|
1136
|
-
"pt-BR": "Publique de novo. Se acontecer de novo,
|
|
1139
|
+
en: "Publish again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).",
|
|
1140
|
+
"pt-BR": "Publique de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).",
|
|
1137
1141
|
},
|
|
1138
1142
|
},
|
|
1139
1143
|
CONTAINER_START_TIMEOUT: {
|
|
@@ -1149,8 +1153,8 @@ const catalog = {
|
|
|
1149
1153
|
"pt-BR": "O container que roda o build não ficou pronto dentro do tempo limite de partida, em todas as tentativas. Nada no pacote de fonte causou isso: a plataforma não conseguiu dar um container ao build.",
|
|
1150
1154
|
},
|
|
1151
1155
|
hint: {
|
|
1152
|
-
en: "Publish again in a few minutes. If it keeps failing, contact
|
|
1153
|
-
"pt-BR": "Publique de novo em alguns minutos. Se continuar falhando,
|
|
1156
|
+
en: "Publish again in a few minutes. If it keeps failing, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).",
|
|
1157
|
+
"pt-BR": "Publique de novo em alguns minutos. Se continuar falhando, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).",
|
|
1154
1158
|
},
|
|
1155
1159
|
},
|
|
1156
1160
|
BREAKING_PROP_CHANGE: {
|
|
@@ -1297,7 +1301,7 @@ export function diagnosticDocsUrl(code) {
|
|
|
1297
1301
|
* Whether a build failed because of its source: at least one `error` whose code is the
|
|
1298
1302
|
* customer's fault. The first-attempt success metric (PLANO) counts a publish as failed on the
|
|
1299
1303
|
* first try when its first build has such an error; platform errors and warnings do not count.
|
|
1300
|
-
* A code this package does not know (a newer builder
|
|
1304
|
+
* A code this package does not know (a newer builder) has no known fault and does not
|
|
1301
1305
|
* count, so an unknown code never blames the customer.
|
|
1302
1306
|
*
|
|
1303
1307
|
* Inputs: the diagnostics of one build, codes known or not. Output: a boolean. Errors: none.
|