create-ilorb 0.0.0-stage → 0.2.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/LICENSE-API.md +108 -0
- package/README.md +285 -2
- package/assets/dev-local.mjs +205 -0
- package/dist/args.js +39 -0
- package/dist/cli.js +7 -0
- package/dist/cloudflare/provider.js +48 -0
- package/dist/cloudflare/real.js +211 -0
- package/dist/cloudflare/simulated.js +213 -0
- package/dist/core-admin.js +85 -0
- package/dist/engine.js +52 -0
- package/dist/errors.js +23 -0
- package/dist/exec.js +49 -0
- package/dist/fsutil.js +130 -0
- package/dist/generate.js +260 -0
- package/dist/i18n/en.js +380 -0
- package/dist/i18n/es.js +372 -0
- package/dist/i18n/index.js +23 -0
- package/dist/i18n/pt.js +372 -0
- package/dist/license/activate.js +71 -0
- package/dist/license/keys.js +14 -0
- package/dist/license/verify.js +56 -0
- package/dist/local/ports.js +33 -0
- package/dist/main.js +594 -0
- package/dist/products.js +1528 -0
- package/dist/readme.js +228 -0
- package/dist/state.js +58 -0
- package/dist/steps.js +869 -0
- package/dist/templates.js +31 -0
- package/dist/theme/preview.js +39 -0
- package/dist/theme/vendor/color.js +133 -0
- package/dist/theme/vendor/tokens.js +314 -0
- package/dist/ui/prompt.js +108 -0
- package/dist/ui/term.js +92 -0
- package/package.json +50 -4
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
// English — the base dictionary: pt.ts and es.ts must have exactly the same keys (tsc checks).
|
|
2
|
+
export const en = {
|
|
3
|
+
'app.title': 'Ilorb Code · create-ilorb',
|
|
4
|
+
'app.subtitle': '{product}: from zero to live in one command, in your own Cloudflare account',
|
|
5
|
+
'yes': 'Y',
|
|
6
|
+
'no': 'N',
|
|
7
|
+
'choose': 'Number',
|
|
8
|
+
'invalid': 'Pick one of the numbers.',
|
|
9
|
+
'aborted': 'Stopped. Nothing is lost: run the same command again and it continues from where it stopped.',
|
|
10
|
+
'help': `Usage:
|
|
11
|
+
npm create ilorb@latest <product> [folder] -- [options]
|
|
12
|
+
npx create-ilorb <product> [folder] [options] (the same)
|
|
13
|
+
npx create-ilorb --resume [folder]
|
|
14
|
+
|
|
15
|
+
Products: chat, widgets, consultas, status, agenda, sites, starter, link, imoveis, quiz, helpcenter, classificados, delivery, cardapio, shop, faturas, cursos
|
|
16
|
+
|
|
17
|
+
Main options:
|
|
18
|
+
--target cloud|local cloud (default): your Cloudflare account · local: everything on this computer
|
|
19
|
+
--yes no questions (use the flags/env below)
|
|
20
|
+
--dry-run show the plan (every command and call) without running anything
|
|
21
|
+
--resume continue an installation that stopped (reads .overture/)
|
|
22
|
+
--lang pt|es|en language of the installer (default: the system's)
|
|
23
|
+
--log <file> also write the terminal output (no colors) to a file
|
|
24
|
+
|
|
25
|
+
License (one of the two):
|
|
26
|
+
--license <key> Opera Source Code license key (env OVERTURE_LICENSE)
|
|
27
|
+
--purchase-code <code> Envato purchase code (env ENVATO_PURCHASE_CODE)
|
|
28
|
+
--license-server <url> license server (default https://api.operasourcecode.com)
|
|
29
|
+
|
|
30
|
+
Answers:
|
|
31
|
+
--name <app name> --owner-email <e-mail> --languages pt,es,en,ar
|
|
32
|
+
--style clean|bold|soft|night --primary <#hex> --bundle-id <com.company.app>
|
|
33
|
+
--account-id <Cloudflare account> (token: env CLOUDFLARE_API_TOKEN, or "wrangler login")
|
|
34
|
+
--opera-app-id <id> (secrets: env OPERA_APP_SECRET, OPERA_CALLBACK_SECRET) · --skip-opera
|
|
35
|
+
--email-from <sender> (env RESEND_API_KEY) · --skip-email
|
|
36
|
+
--status-domain <host> status: your own domain for the status page (e.g. status.company.com)
|
|
37
|
+
--short-domain <host> link: your own short domain (e.g. lnk.company.com) · --workers-paid you have the Workers Paid plan (clicks queue)
|
|
38
|
+
--site-domain <host> classificados: your own site domain (SEO depends on it)
|
|
39
|
+
--sample-data quiz: import the sample questions (default: yes on local) · --no-sample-data
|
|
40
|
+
--no-serve local: install, configure and stop (do not keep it running)
|
|
41
|
+
`,
|
|
42
|
+
// steps
|
|
43
|
+
'step.license': 'License',
|
|
44
|
+
'step.questions': 'Your app',
|
|
45
|
+
'step.templates': 'Templates',
|
|
46
|
+
'step.generate': 'Project files',
|
|
47
|
+
'step.secrets': 'Generated secrets',
|
|
48
|
+
'step.install': 'Dependencies (pnpm install)',
|
|
49
|
+
'step.cfAuth': 'Cloudflare account',
|
|
50
|
+
'step.cfSubdomain': 'workers.dev address',
|
|
51
|
+
'step.d1': 'D1 database {name}',
|
|
52
|
+
'step.r2': 'R2 bucket {name}',
|
|
53
|
+
'step.queue': 'Queue {name}',
|
|
54
|
+
'step.config': 'Configuration with addresses',
|
|
55
|
+
'step.migrate': 'Migrations on {name}',
|
|
56
|
+
'step.deployWorker': 'Publish Worker {name}',
|
|
57
|
+
'step.pagesProject': 'Pages project {name}',
|
|
58
|
+
'step.buildPanel': 'Build the admin panel',
|
|
59
|
+
'step.deployPages': 'Publish the panel {name}',
|
|
60
|
+
'step.configureCore': 'Configure the login (Core Auth)',
|
|
61
|
+
'step.scan': 'Check: no secret in versioned files',
|
|
62
|
+
'step.localPorts': 'Local ports',
|
|
63
|
+
'step.localMigrate': 'Local databases (D1)',
|
|
64
|
+
'step.exportApp': 'Build the app for the web',
|
|
65
|
+
'step.start': 'Start everything on this computer',
|
|
66
|
+
'skip.done': 'already done',
|
|
67
|
+
'done.in': 'done in {s}s',
|
|
68
|
+
// license
|
|
69
|
+
'license.ask': 'License key (osc1.…) or Envato purchase code',
|
|
70
|
+
'license.offlineOk': 'Signature OK (offline) · license {lid} · {type} · {products}',
|
|
71
|
+
'license.envatoFormat': 'Envato purchase code: the store will check it',
|
|
72
|
+
'license.activated': 'Activated · activation {id} · {used}/{limit} installs · support until {support}',
|
|
73
|
+
'license.activatedNoSupport': 'Activated · activation {id} · {used}/{limit} installs',
|
|
74
|
+
'license.templates': 'Templates {version} downloaded and checked (sha256)',
|
|
75
|
+
'license.templatesLocal': 'Templates from the folder {dir}',
|
|
76
|
+
// questions
|
|
77
|
+
'q.name': 'App name',
|
|
78
|
+
'q.name.invalid': 'Use 2 to 40 characters.',
|
|
79
|
+
'q.owner': 'Your e-mail (you will be the owner in the panel)',
|
|
80
|
+
'q.owner.invalid': 'This does not look like an e-mail.',
|
|
81
|
+
'q.languages': 'App languages (comma separated)',
|
|
82
|
+
'q.languages.invalid': 'Use pt, es, en and/or ar.',
|
|
83
|
+
'q.style': 'Style',
|
|
84
|
+
'q.primary': 'Main color (#hex) — Enter keeps the style color',
|
|
85
|
+
'q.primary.invalid': 'Use 6 hex digits, e.g. #0EA5E9.',
|
|
86
|
+
'q.primary.adjusted': 'Your color {from} becomes {to} on the light button (contrast {ratio}:1, readable). Dark mode: {dark}.',
|
|
87
|
+
'q.primary.kept': 'Contrast {ratio}:1 on the button: readable as it is.',
|
|
88
|
+
'q.account': 'Cloudflare account',
|
|
89
|
+
'q.opera': 'Opera Signal keys (the chat and calls)',
|
|
90
|
+
'q.opera.now': 'I have them — App ID and secret',
|
|
91
|
+
'q.opera.later': 'Skip — I will set them later',
|
|
92
|
+
'q.opera.appId': 'Opera App ID',
|
|
93
|
+
'q.opera.secret': 'Opera App Secret (hidden)',
|
|
94
|
+
'q.opera.callback': 'Opera callback secret (hidden; Enter = I do not have it yet)',
|
|
95
|
+
'q.email': 'Sending the login code by e-mail (Resend)',
|
|
96
|
+
'q.email.now': 'I have a Resend key',
|
|
97
|
+
'q.email.later': 'Skip — I (the owner) sign in with the first-access link; I set up e-mail later in the panel',
|
|
98
|
+
'q.email.key': 'Resend API key (hidden)',
|
|
99
|
+
'q.email.from': 'Sender (e.g. "My App <login@mydomain.com>")',
|
|
100
|
+
'q.summary': 'Summary',
|
|
101
|
+
'q.confirm': 'Install with these choices?',
|
|
102
|
+
'q.cancelled': 'Cancelled. Nothing was created.',
|
|
103
|
+
'theme.button': 'Sign in',
|
|
104
|
+
'theme.mine': 'Hi!',
|
|
105
|
+
'theme.other': 'Hello',
|
|
106
|
+
'theme.light': 'light',
|
|
107
|
+
'theme.dark': 'dark',
|
|
108
|
+
'sum.app': 'App',
|
|
109
|
+
'sum.owner': 'Owner',
|
|
110
|
+
'sum.languages': 'Languages',
|
|
111
|
+
'sum.style': 'Style',
|
|
112
|
+
'sum.bundle': 'Bundle id',
|
|
113
|
+
'sum.folder': 'Folder',
|
|
114
|
+
'sum.target': 'Where',
|
|
115
|
+
'sum.target.cloud': 'your Cloudflare account',
|
|
116
|
+
'sum.target.local': 'this computer (local, no cloud)',
|
|
117
|
+
'sum.opera': 'Opera',
|
|
118
|
+
'sum.opera.skip': 'later',
|
|
119
|
+
'sum.email': 'Login e-mail',
|
|
120
|
+
'sum.email.skip': 'later (the owner signs in with the first-access link)',
|
|
121
|
+
// progress
|
|
122
|
+
'gen.copied': '{n} files copied',
|
|
123
|
+
'gen.applied': 'names, ids, addresses and theme applied ({n} files)',
|
|
124
|
+
'gen.secrets': '{names} generated — saved in .overture/secrets.env (0600, out of git)',
|
|
125
|
+
'gen.scanOk': '{n} versioned files checked: no secret',
|
|
126
|
+
'install.dir': 'pnpm install in {dir}',
|
|
127
|
+
'cf.simulated': 'SIMULATED Cloudflare (--provider simulated): no real account is touched; addresses are examples.',
|
|
128
|
+
'cf.via.token': 'via API token',
|
|
129
|
+
'cf.via.wrangler': 'via wrangler login',
|
|
130
|
+
'cf.account': 'account {name} ({id})',
|
|
131
|
+
'cf.subdomain': '{sub}.workers.dev',
|
|
132
|
+
'cf.d1.created': 'created · id {id}',
|
|
133
|
+
'cf.d1.reused': 'already exists (created by this installation) · id {id}',
|
|
134
|
+
'cf.r2.created': 'created',
|
|
135
|
+
'cf.r2.reused': 'already exists (created by this installation)',
|
|
136
|
+
'cf.migrated': '{n} migration(s) applied',
|
|
137
|
+
'cf.deployed': 'published at {url}',
|
|
138
|
+
'cf.pages.created': 'created · {sub}',
|
|
139
|
+
'cf.pages.reused': 'already exists · {sub}',
|
|
140
|
+
'core.configured': 'app name, theme, product "{product}", e-mail with code as the main sign-in · {changes}',
|
|
141
|
+
'core.unchanged': 'already configured (nothing to change)',
|
|
142
|
+
'local.ports': 'auth {auth} · api {api} · panel {admin} · app {app}',
|
|
143
|
+
'local.migrated': 'identity and {product} — {n} migration(s)',
|
|
144
|
+
'local.starting': 'starting Core Auth, the {product} API, the panel and the app (the Opera chat is the cloud one)…',
|
|
145
|
+
'final.callback': 'Opera callback (tunnel)',
|
|
146
|
+
'step.operaTestApp': 'Opera TEST app keys',
|
|
147
|
+
'local.opera': 'Opera TEST app {appId} · chat {url}',
|
|
148
|
+
'q.opera.local': 'Keys of an Opera Signal TEST app (local mode uses the cloud Opera chat)',
|
|
149
|
+
'q.opera.localHint': 'Local mode runs Core, the {product} API, the panel and the app here; the chat itself is the cloud Opera one, with a TEST app of yours.',
|
|
150
|
+
'q.opera.localLater': 'I do not have one yet — show me how to create it',
|
|
151
|
+
'sum.opera.test': '(TEST app)',
|
|
152
|
+
'final.next.localCallback': 'Opera callbacks (push, reports) cannot reach this computer: to test them, open a tunnel (e.g. cloudflared tunnel --url http://localhost:{port}) and set <tunnel URL>{path} as the callback of your TEST app in the Opera console — or deploy to the cloud. Everything else works without it.',
|
|
153
|
+
'err.opera_test_app_missing.what': 'Local mode needs the keys of an Opera Signal TEST app (the chat runs in the Opera cloud; its server does not ship with the project).',
|
|
154
|
+
'err.opera_test_app_missing.do': 'In the Ilorb Signal console (signal.ilorb.app) create an app in the TEST environment and copy App ID, App Secret and callback secret. Then: OPERA_APP_SECRET=<secret> OPERA_CALLBACK_SECRET=<callback secret> npx create-ilorb --resume {dir} --opera-app-id <app_…>',
|
|
155
|
+
'local.ready': 'everything is up',
|
|
156
|
+
'local.stop': 'Ctrl+C stops everything. To start again later: pnpm dev (in the project folder).',
|
|
157
|
+
'local.stopped': 'Everything stopped.',
|
|
158
|
+
'build.panel': 'panel built with VITE_AUTH_URL={url}',
|
|
159
|
+
'build.app': 'app (web) exported with the addresses of this installation',
|
|
160
|
+
// final
|
|
161
|
+
'final.title': 'Done! {app} is installed.',
|
|
162
|
+
'final.local.title': 'Done! {app} is running on this computer.',
|
|
163
|
+
'final.urls': 'Addresses',
|
|
164
|
+
'final.auth': 'Login (Core Auth)',
|
|
165
|
+
'final.api': '{product} API',
|
|
166
|
+
'final.admin': 'Admin panel',
|
|
167
|
+
'final.app': 'App (web)',
|
|
168
|
+
'final.opera': 'Opera chat (TEST app)',
|
|
169
|
+
'final.next': 'Next steps',
|
|
170
|
+
'final.next.panel': 'Open the panel and sign in with {email}: you are the owner.',
|
|
171
|
+
'final.next.localCode': 'Local: the code appears on the screen ("Test code") — no e-mail is sent.',
|
|
172
|
+
'final.next.opera': 'In the Opera Signal console → your app → Callbacks: URL {url} and the same callback secret.',
|
|
173
|
+
'final.next.operaSkip': 'Opera keys: in the panel → Chat → Opera keys (or run again with --opera-app-id and OPERA_APP_SECRET/OPERA_CALLBACK_SECRET).',
|
|
174
|
+
'final.next.emailSkip': 'Login code e-mail (Resend): without it app users don\'t get the code. Turn it on in the panel → Sign-in methods.',
|
|
175
|
+
'final.next.eas': 'Phone app: cd {dir} && npx eas-cli build --profile production (the addresses are already in eas.json).',
|
|
176
|
+
'final.next.secrets': 'Keep a copy of .overture/secrets.env somewhere safe (MASTER_KEY).',
|
|
177
|
+
'step.bootstrap': 'Owner first-access link',
|
|
178
|
+
'bootstrap.ok': 'First-access link created (single use, valid 15 min) — shown at the end',
|
|
179
|
+
'bootstrap.failed': "Couldn't create the first-access link now (everything else is ready). Run again to get one.",
|
|
180
|
+
'final.bootstrap': 'First access to the panel (open in the browser):',
|
|
181
|
+
'final.bootstrapNote': 'Signs you in as the owner ({email}) without a code. Single use, valid 15 minutes. Expired? Run the command again.',
|
|
182
|
+
'final.bootstrapFailed': 'The first-access link was not created. Run the command again (it only does what is missing and makes a new link).',
|
|
183
|
+
'final.next.panelLink': 'Open the link above: you enter the panel as the owner ({email}). To come back later: the e-mail code (turn on Resend) or run the command again (new link).',
|
|
184
|
+
'final.next.panelLinkLocal': 'Open the link above: you enter the panel as the owner ({email}). To come back later: sign in with your e-mail (in local mode the code appears on the screen) or run the command again (new link).',
|
|
185
|
+
'final.again': 'Running this command again is safe: it only does what is missing.',
|
|
186
|
+
// dry run
|
|
187
|
+
'dry.title': 'Plan (--dry-run): nothing will be executed or created.',
|
|
188
|
+
'dry.done': '(already done — would be skipped)',
|
|
189
|
+
'dry.end': 'End of the plan. Without --dry-run, these steps run in this order; if one fails, --resume continues from it.',
|
|
190
|
+
// errors: what happened + what to do
|
|
191
|
+
'err.resume': 'To continue from where it stopped: {cmd}',
|
|
192
|
+
'err.title': 'Error',
|
|
193
|
+
'err.whatToDo': 'What to do',
|
|
194
|
+
'err.details': 'Details (also in .overture/install.log)',
|
|
195
|
+
'err.unexpected.what': 'Unexpected error: {message}',
|
|
196
|
+
'err.unexpected.do': 'Run again with --resume. If it repeats, send .overture/install.log to support.',
|
|
197
|
+
'ilorb.key': 'Ilorb key from ilorb.env: {appId}',
|
|
198
|
+
'err.templates_needed.what': 'No template folder.',
|
|
199
|
+
'err.templates_needed.do': 'Download the template from Ilorb Code (code.ilorb.com), unzip it, and run this command inside that folder (or pass --templates <folder>).',
|
|
200
|
+
'err.license_missing.what': 'No license given.',
|
|
201
|
+
'err.license_missing.do': 'Pass --license <key> or --purchase-code <code> (or the env OVERTURE_LICENSE / ENVATO_PURCHASE_CODE).',
|
|
202
|
+
'err.license_malformed.what': 'This is not a valid license key or purchase code.',
|
|
203
|
+
'err.license_malformed.do': 'Copy it again from your purchase e-mail (key starts with "osc1.") or from Envato → Downloads → License certificate (purchase code xxxxxxxx-xxxx-…).',
|
|
204
|
+
'err.license_unknown_key.what': 'The license was signed with a key this installer does not know ({kid}).',
|
|
205
|
+
'err.license_unknown_key.do': 'Update the installer: npx create-ilorb@latest',
|
|
206
|
+
'err.license_test_key.what': 'This is a TEST license: it only works with a local license server.',
|
|
207
|
+
'err.license_test_key.do': 'Use your real license key, or --license-server http://localhost:… for tests.',
|
|
208
|
+
'err.license_bad_signature.what': 'The license signature does not match: the key was changed or is not from Opera Source Code.',
|
|
209
|
+
'err.license_bad_signature.do': 'Copy the key again, complete, from your purchase e-mail.',
|
|
210
|
+
'err.license_expired.what': 'This license expired on {date}.',
|
|
211
|
+
'err.license_expired.do': 'Renew it in your account at operasourcecode.com and use the new key.',
|
|
212
|
+
'err.license_wrong_product.what': 'This license is for {products}, not for {product}.',
|
|
213
|
+
'err.license_wrong_product.do': 'Use the license of {product}, or install the product of this license.',
|
|
214
|
+
'err.license_revoked.what': 'This license was cancelled (refund or abuse).',
|
|
215
|
+
'err.license_revoked.do': 'If you think this is a mistake, write to support with your order number.',
|
|
216
|
+
'err.license_activation_limit.what': 'This license reached its installation limit.',
|
|
217
|
+
'err.license_activation_limit.do': 'Free an old installation in your account at operasourcecode.com, or buy an extended license.',
|
|
218
|
+
'err.purchase_code_malformed.what': 'The purchase code does not have the Envato format.',
|
|
219
|
+
'err.purchase_code_malformed.do': 'It looks like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (Envato → Downloads → License certificate).',
|
|
220
|
+
'err.purchase_code_invalid.what': 'Envato does not know this purchase code.',
|
|
221
|
+
'err.purchase_code_invalid.do': 'Check it in Envato → Downloads → License certificate & purchase code.',
|
|
222
|
+
'err.purchase_code_wrong_item.what': 'This purchase code is for another item.',
|
|
223
|
+
'err.purchase_code_wrong_item.do': 'Use the purchase code of this product.',
|
|
224
|
+
'err.purchase_code_refunded.what': 'This purchase was refunded.',
|
|
225
|
+
'err.purchase_code_refunded.do': 'A refunded purchase cannot be installed. Write to support if this is a mistake.',
|
|
226
|
+
'err.envato_unavailable.what': 'Envato did not answer the check right now.',
|
|
227
|
+
'err.envato_unavailable.do': 'Try again in a few minutes with --resume.',
|
|
228
|
+
'err.rate_limited.what': 'Too many attempts in a short time.',
|
|
229
|
+
'err.rate_limited.do': 'Wait {retry} seconds and run again with --resume.',
|
|
230
|
+
'err.license_server_unreachable.what': 'Could not reach the license server ({server}). The key itself was checked offline.',
|
|
231
|
+
'err.license_server_unreachable.do': 'Check the internet and run again with --resume. Activation is needed once, to download the templates.',
|
|
232
|
+
'err.license_server_error.what': 'The license server answered with an error ({status}).',
|
|
233
|
+
'err.license_server_error.do': 'Try again with --resume. If it repeats, write to support.',
|
|
234
|
+
'err.license_receipt_invalid.what': 'The activation answer is not signed by Opera Source Code.',
|
|
235
|
+
'err.license_receipt_invalid.do': 'Use the official license server (no --license-server), or update the installer.',
|
|
236
|
+
'err.templates_download_failed.what': 'Could not download the templates ({status}).',
|
|
237
|
+
'err.templates_download_failed.do': 'Check the internet and run again with --resume (the activation is kept).',
|
|
238
|
+
'err.templates_checksum.what': 'The downloaded templates are corrupted (sha256 does not match).',
|
|
239
|
+
'err.templates_checksum.do': 'Run again with --resume: it downloads again.',
|
|
240
|
+
'err.templates_missing.what': 'The templates folder does not have {path}.',
|
|
241
|
+
'err.templates_missing.do': 'Point --templates to the root of the template package (the folder with overture-core/ and overture-chat/).',
|
|
242
|
+
'err.unknown_product.what': 'Unknown product: "{product}".',
|
|
243
|
+
'err.unknown_product.do': 'Products available now: {list}.',
|
|
244
|
+
'err.missing_answer.what': 'Missing "{field}" and there is nobody to ask (--yes or no terminal).',
|
|
245
|
+
'err.missing_answer.do': 'Pass {flag}.',
|
|
246
|
+
'err.invalid_answer.what': 'Invalid value for "{field}": {value}.',
|
|
247
|
+
'err.invalid_answer.do': '{hint}',
|
|
248
|
+
'err.dir_not_empty.what': 'The folder {dir} already has files and is not a Overture installation.',
|
|
249
|
+
'err.dir_not_empty.do': 'Choose an empty folder (or a new name).',
|
|
250
|
+
'err.no_state.what': 'There is no installation to continue in {dir}.',
|
|
251
|
+
'err.no_state.do': 'Start one: npx create-ilorb chat {dir}',
|
|
252
|
+
'err.state_mismatch.what': 'This folder has an installation of {product} for {target}.',
|
|
253
|
+
'err.state_mismatch.do': 'Use --resume in this folder, or another folder for a new installation.',
|
|
254
|
+
'err.node_too_old.what': 'Node {version} is too old.',
|
|
255
|
+
'err.node_too_old.do': 'Install Node 20 or newer (https://nodejs.org) and run again.',
|
|
256
|
+
'err.pnpm_missing.what': 'pnpm is not installed.',
|
|
257
|
+
'err.pnpm_missing.do': 'Install it: npm install -g pnpm (or: corepack enable) — and run again with --resume.',
|
|
258
|
+
'err.command_failed.what': 'The command failed (exit {code}): {cmd}',
|
|
259
|
+
'err.command_failed.do': 'Read the last lines above. Fix it and run again with --resume.',
|
|
260
|
+
'err.secret_in_repo.what': 'A secret would go to git: {files}.',
|
|
261
|
+
'err.secret_in_repo.do': 'This is a bug of the installer — nothing was published. Send .overture/install.log to support.',
|
|
262
|
+
'err.core_unreachable.what': 'The login server ({url}) did not answer.',
|
|
263
|
+
'err.core_unreachable.do': 'It may still be starting. Wait a minute and run again with --resume.',
|
|
264
|
+
'err.core_admin_rejected.what': 'The login server refused the configuration ({status} on {path}).',
|
|
265
|
+
'err.core_admin_rejected.do': 'The ADMIN_TOKEN of the Worker may differ from .overture/secrets.env. Run again with --resume (it publishes the secrets again).',
|
|
266
|
+
'err.port_busy.what': 'Port {port} is in use by another program.',
|
|
267
|
+
'err.port_busy.do': 'Close the program using it (lsof -iTCP:{port} -sTCP:LISTEN) or delete "local" from overture.json to pick new ports.',
|
|
268
|
+
'err.local_start_failed.what': '{service} did not start.',
|
|
269
|
+
'err.local_start_failed.do': 'See the last lines above. Fix and run again with --resume.',
|
|
270
|
+
'err.cf_not_logged_in.what': 'You are not logged in to Cloudflare.',
|
|
271
|
+
'err.cf_not_logged_in.do': 'Run "npx wrangler login" (opens the browser) or set CLOUDFLARE_API_TOKEN, then --resume.',
|
|
272
|
+
'err.cf_token_invalid.what': 'The Cloudflare token is invalid or expired.',
|
|
273
|
+
'err.cf_token_invalid.do': 'Create a new one at https://dash.cloudflare.com/profile/api-tokens (permissions in the README) and set CLOUDFLARE_API_TOKEN.',
|
|
274
|
+
'err.cf_token_missing_permission.what': 'The Cloudflare token has no permission for this ({name}).',
|
|
275
|
+
'err.cf_token_missing_permission.do': 'Edit the token and add: Workers Scripts, D1, Workers R2 Storage and Cloudflare Pages (Edit), Account Settings (Read). Then --resume.',
|
|
276
|
+
'err.cf_account_not_found.what': 'Cloudflare account {account} not found for this login.',
|
|
277
|
+
'err.cf_account_not_found.do': 'Check --account-id (the id is on the right side of the Cloudflare dashboard).',
|
|
278
|
+
'err.cf_d1_name_taken.what': 'Your Cloudflare account already has a D1 called {name}, created by something else.',
|
|
279
|
+
'err.cf_d1_name_taken.do': 'Choose another app name (--name), or delete that database if it is unused. We never reuse what we did not create.',
|
|
280
|
+
'err.cf_d1_limit.what': 'Your account reached the number of D1 databases of its plan.',
|
|
281
|
+
'err.cf_d1_limit.do': 'Delete an unused database or upgrade the plan (https://developers.cloudflare.com/d1/platform/limits/).',
|
|
282
|
+
'err.cf_r2_not_enabled.what': 'R2 is not enabled in this Cloudflare account.',
|
|
283
|
+
'err.cf_r2_not_enabled.do': 'Enable R2 in the dashboard (R2 → Get started; it asks for a payment method even on the free tier) and --resume.',
|
|
284
|
+
'err.cf_queues_require_paid.what': 'Queues need the Workers Paid plan ({name}).',
|
|
285
|
+
'err.cf_queues_require_paid.do': 'Upgrade at dash.cloudflare.com → Workers → Plans (https://developers.cloudflare.com/workers/platform/pricing/) and --resume.',
|
|
286
|
+
'err.cf_workers_subdomain_missing.what': 'This account has no workers.dev address yet.',
|
|
287
|
+
'err.cf_workers_subdomain_missing.do': 'Open dash.cloudflare.com → Workers & Pages once (it creates the address) and --resume.',
|
|
288
|
+
'err.cf_pages_name_taken.what': 'The Pages name {name} is taken.',
|
|
289
|
+
'err.cf_pages_name_taken.do': 'Choose another app name (--name) and run again.',
|
|
290
|
+
'err.cf_network.what': 'No connection to Cloudflare.',
|
|
291
|
+
'err.cf_network.do': 'Check the internet and --resume.',
|
|
292
|
+
'err.cf_unknown.what': 'Cloudflare answered with an error: {detail}',
|
|
293
|
+
'err.cf_unknown.do': 'Read the details in .overture/install.log and --resume. If it repeats, write to support.',
|
|
294
|
+
// produto widgets (sem app; página de teste com o snippet no local)
|
|
295
|
+
'step.prebuild': 'Build the widget ({dir})',
|
|
296
|
+
'build.prebuild': 'built → {out} (goes inside the Worker)',
|
|
297
|
+
'local.ports.site': 'auth {auth} · api {api} · panel {admin} · test page {site}',
|
|
298
|
+
'local.starting.site': 'starting Core Auth, the {product} API, the panel and the widget test page (the Opera chat is the cloud one)…',
|
|
299
|
+
'q.opera.localHint.site': 'Local mode runs Core, the Widgets API, the panel and a test page with the snippet here; the chat itself is the cloud Opera one, with a TEST app of yours.',
|
|
300
|
+
'sum.product': 'Product',
|
|
301
|
+
'final.site': 'Widget test page',
|
|
302
|
+
'final.next.widget': 'In the panel → Website widgets → Widgets: create the widget, add your website domain and paste the snippet (<script …/w.js data-widget="wdg_…">) into your site.',
|
|
303
|
+
'final.next.widgetLocal': 'To test: in the panel → Website widgets → Widgets, create a widget with the domain {host} and open {site}/?w=<widget id> — the test page already has the snippet.',
|
|
304
|
+
'final.next.operaSkip.widgets': 'Opera keys: in the panel → Website widgets → Widgets → Opera connection and email (or run again with --opera-app-id and OPERA_APP_SECRET/OPERA_CALLBACK_SECRET).',
|
|
305
|
+
// consultas product (scheduling + payment through Core + video)
|
|
306
|
+
'final.next.consultas': 'In the panel → Sessions → Professionals: add who attends, the services and the hours; in Payments, the Stripe/Mercado Pago/dLocal keys (the 24 h and 15 min reminders run on the Worker cron, every minute).',
|
|
307
|
+
'final.next.consultasLocal': 'To test: in the panel → Sessions → Professionals, add a professional and a service; local payment is SIMULATED (fake Pix/card) and the reminder cron runs every minute.',
|
|
308
|
+
'final.next.operaSkip.consultas': 'Opera keys (video room and session chat): run again with --opera-app-id and OPERA_APP_SECRET/OPERA_CALLBACK_SECRET.',
|
|
309
|
+
// status product (public status page + uptime monitor; no Opera, no app)
|
|
310
|
+
'local.ports.web': 'auth {auth} · api {api} · panel {admin}',
|
|
311
|
+
'local.starting.web': 'starting Core Auth, the {product} API (cron every minute) and the panel…',
|
|
312
|
+
'q.domain.invalid': 'Use only the host, e.g. status.company.com (the zone must be in the same Cloudflare account).',
|
|
313
|
+
'sum.domain': 'Status page domain',
|
|
314
|
+
'sum.domain.skip': 'workers.dev (add your own later)',
|
|
315
|
+
'final.statusPage': 'Public status page',
|
|
316
|
+
'final.next.status': 'In the panel → Status → Monitors: create the monitors (HTTP, keyword, TCP port, TLS certificate) and link each one to a component; in Alerts, your email/webhook/Telegram. Checks run on the Worker cron, every minute. Public page: {page}',
|
|
317
|
+
'final.next.statusLocal': 'To test: in the panel → Status → Monitors, create a monitor; the public page is {page}. The cron runs every minute here too (pnpm dev calls /__scheduled); alerts and notices only go to the queue (NOTIFY_MODE=log).',
|
|
318
|
+
'final.next.statusDomain': 'Your own domain for the status page: run again with --status-domain status.yourcompany.com (the zone must be in this Cloudflare account; the token also needs Zone · Workers Routes · Edit) — or Cloudflare → Workers & Pages → {worker} → Settings → Domains & Routes, then run again with --status-domain so PUBLIC_URL (email and feed links) follows it.',
|
|
319
|
+
'final.next.statusDomainSet': 'Custom domain {domain} attached to the Worker {worker} (PUBLIC_URL = https://{domain}). Also set it in the panel → Status → Public page → Domain. DNS and the certificate may take a few minutes.',
|
|
320
|
+
'final.next.emailSkip.status': 'Email (Resend): without it the app users get no login code and the status page sends no email (alerts, confirmations, notices). Turn it on in the panel → Sign-in methods, or run again with RESEND_API_KEY and --email-from. Webhook and Telegram alerts work without it.',
|
|
321
|
+
// agenda product (in-person booking + payment through Core; no Opera)
|
|
322
|
+
'final.next.agenda': 'In the panel → Agenda: business hours, staff, services and settings (policy, reminders); in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. Public booking page: {site} — on your website: <div data-overture-agenda></div><script src="{site}/embed.js" async></script>. The 24 h and 2 h reminders run on the Worker cron, every minute.',
|
|
323
|
+
'final.next.agendaLocal': 'To test: in the panel → Agenda, add the business hours, a staff member and a service; then open the booking page {site} and book a time (the code shows on screen). Local payment is SIMULATED and the reminder cron runs every minute.',
|
|
324
|
+
// sites product (static site published to R2 from the panel; no Opera, no cron)
|
|
325
|
+
'final.siteUrl': 'Your website',
|
|
326
|
+
'final.next.sites': 'In the panel → Site: pick a demo (or create the pages) and click Publish — the site changes right away, no deploy ({site}). Your own domain: Cloudflare → Workers & Pages → {worker} → Settings → Domains & Routes (and set the same address as PUBLIC_URL). Contact form captcha: run again with TURNSTILE_SECRET in the environment.',
|
|
327
|
+
'final.next.sitesLocal': 'To test: in the panel → Site → Pages, create the home page and click Publish (Site overview); the site answers at {site} — published to the local R2. Contact messages stay in D1 only (NOTIFY_MODE=log).',
|
|
328
|
+
// starter product (SaaS base: organizations, plans and billing through Core; no Opera)
|
|
329
|
+
'final.next.starter': 'In the panel → Starter: the plans (price, free trial, limits) and the rules; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. Your customers\' web app is at {app} (the phone sends people there to change plans). The cron runs every hour (free trial, scheduled change, end of period).',
|
|
330
|
+
'final.next.starterLocal': 'To test: in the panel → Starter → Plans, adjust a plan; open the web app at {app} and create the organization. Local payment is SIMULATED and the cron runs every hour (pnpm dev calls /__scheduled).',
|
|
331
|
+
// link product (shortener + QR + bio + plans through Core; no Opera)
|
|
332
|
+
'q.workersPaid': 'Does your Cloudflare account have the Workers Paid plan (US$ 5/month)? With it, clicks go through a queue (Queues)',
|
|
333
|
+
'q.workersPaid.no': 'No — clicks go straight to D1 (works on the free plan)',
|
|
334
|
+
'q.workersPaid.yes': 'Yes — create the clicks queue',
|
|
335
|
+
'sum.workersPaid': 'Clicks queue',
|
|
336
|
+
'sum.workersPaid.yes': 'yes (Workers Paid plan)',
|
|
337
|
+
'sum.workersPaid.no': 'no (clicks straight to D1)',
|
|
338
|
+
'final.next.link': 'In the panel → Link: the plans (limits, price) and the settings; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. App: cd overture-link/app/react-native && npx eas-cli build (the web is the expo export). Customer domains (Cloudflare for SaaS) and Google Safe Browsing: run again with CF_API_TOKEN + CF_ZONE_ID and SAFE_BROWSING_KEY in the environment.',
|
|
339
|
+
'final.next.linkLocal': 'To test: in the panel → Link → Plans, adjust a plan; open the web app at {app}, sign in and create a short link. Local payment is SIMULATED; clicks go straight to D1 (no queue) and the cron runs every hour (pnpm dev calls /__scheduled).',
|
|
340
|
+
'final.next.linkQueue': 'Clicks queue {queue} created and attached (Workers Paid plan).',
|
|
341
|
+
'final.next.linkNoQueue': 'No queue: clicks are written in batches straight to D1. Got the Workers Paid plan? Run again with --workers-paid (creates the {queue} queue).',
|
|
342
|
+
'final.next.linkDomain': 'Your own short domain (e.g. lnk.yourcompany.com): run again with --short-domain lnk.yourcompany.com (the zone must be in this Cloudflare account; the token needs Zone · Workers Routes · Edit) — it attaches the domain to the {worker} Worker and points PUBLIC_URL at it.',
|
|
343
|
+
'step.webBuild': 'Build the web page ({dir})',
|
|
344
|
+
'build.webBuild': 'built with the API {url}',
|
|
345
|
+
'local.ports.appSite': 'auth {auth} · api {api} · panel {admin} · app {app} · booking {site}',
|
|
346
|
+
'local.starting.plain': 'starting Core Auth, the {product} API, the panel and the web pages…',
|
|
347
|
+
'final.bookingPage': 'Booking page',
|
|
348
|
+
'q.sampleData': 'Import the sample questions (48, in 4 languages)?',
|
|
349
|
+
'step.sampleImport': 'Sample data',
|
|
350
|
+
'sample.skipped': 'skipped (no --sample-data)',
|
|
351
|
+
'sample.imported': '{n} sample questions imported',
|
|
352
|
+
'sample.failed': 'Could not import the samples now (everything else is ready). In the panel → Quiz → Import, upload overture-quiz/exemplos/perguntas-exemplo.csv.',
|
|
353
|
+
'final.next.imoveis': 'In the panel → Real estate: plans (limits, featured, price), places and portal settings; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. The portal site is at {site}; advertisers use the app (cd overture-imoveis/app/react-native && npx eas-cli build). The cron runs every hour.',
|
|
354
|
+
'final.next.imoveisLocal': 'To test: open the web app at {app}, sign in (the code shows on screen), create the agency and a listing; the site is at {site} and the panel → Real estate moderates. Local payment is SIMULATED.',
|
|
355
|
+
'final.next.quiz': 'In the panel → Quiz: categories, questions (or Import CSV: overture-quiz/exemplos/perguntas-exemplo.csv) and settings; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. The web game is at {app}. The cron runs every hour.',
|
|
356
|
+
'final.next.quizLocal': 'To test: open the game at {app} and play a round (the code shows on screen); the panel → Quiz shows the questions and players. Local payment is SIMULATED.',
|
|
357
|
+
'final.next.delivery': 'In the panel → Delivery: add and approve the stores (the store owner becomes a moderator), the couriers, the commission and the delivery fee; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. Customers and couriers use the app (eas build).',
|
|
358
|
+
'final.next.deliveryLocal': 'To test: in the panel → Delivery → Stores, create a store with a delivery area and a menu; open the web app at {app}, sign in (the code shows on screen) and place an order. Local payment is SIMULATED.',
|
|
359
|
+
'final.next.cardapio': 'In the panel → Menu → Restaurants and plans: create the restaurant and the plan; then Menu (dishes, add-ons, photos), Tables and QR (print the QR codes) and Restaurant (staff by e-mail: the waiter becomes a moderator of the Menu only). In Payments (Core panel), the Stripe/Mercado Pago/dLocal keys.',
|
|
360
|
+
'final.next.cardapioLocal': 'To test: in the panel → Menu, create the restaurant, a dish and a table; open the table link (Tables and QR → Open) on a phone or in the browser, order and call the waiter — the live floor shows it right away. Local payment is SIMULATED.',
|
|
361
|
+
'final.next.cardapioQr': '⚠ The QR codes carry the Worker address ({api}). If you will use your own domain, change PUBLIC_URL BEFORE printing: changing it later invalidates every printed QR code (and so does changing LINK_SECRET).',
|
|
362
|
+
'final.next.shop': 'In the panel → Shop: Settings (name, currency, country), Shipping (postcode ranges × weight, pickup), Products (with variants and photos) and Coupons; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. The storefront is at {api}; the customer app is at {app}.',
|
|
363
|
+
'final.next.shopLocal': 'To test: in the panel → Shop → Products, create a product with stock and a shipping range; open the storefront at {api} (or the web app at {app}), add to cart and check out (the code shows on screen). Local payment is SIMULATED.',
|
|
364
|
+
'final.next.faturas': 'In the panel → Invoices: Plans (limits and price; the free trial unlocks the plan right on activation) and Settings; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. Companies use the app (eas build); the public quote and invoice links come out at {api}.',
|
|
365
|
+
'final.next.faturasLocal': 'To test: open the web app at {app}, sign in (the code shows on screen), create the company, a client and an invoice and open the public link. Local payment is SIMULATED.',
|
|
366
|
+
'final.next.faturasNoFiscal': 'Reminder: Invoices makes quotes, invoices and charges, but does NOT issue official tax invoices — if the country requires one, the company issues it with its own system.',
|
|
367
|
+
'final.next.cursos': 'In the panel → Courses: Settings (currency, certificate), Teachers (payout) and Coupons; in Payments (Core panel), the Stripe/Mercado Pago/dLocal keys. Teachers upload the videos (MP4) in the app; students learn in the app or at {app}.',
|
|
368
|
+
'final.next.cursosLocal': 'To test: open the web app at {app}, sign in (the code shows on screen), create a course with one lesson and enroll; the certificate comes out on completion. Local payment is SIMULATED.',
|
|
369
|
+
'final.next.helpcenter': 'In the panel → Help center: queues, articles and settings. The public center is at {api}/help and the widget is <script src="{api}/widget.js" async></script>. The cron runs every minute (SLA, failed emails).',
|
|
370
|
+
'final.next.helpcenterLocal': 'To test: in the panel → Help center, create an article; the center is at {api}/help and the widget at {api}/widget.js. Emails only go to the queue (NOTIFY_MODE=log).',
|
|
371
|
+
'final.next.helpcenterEmail': 'MANUAL STEP (email): Cloudflare → your domain → Email → Email Routing: enable it; create the rule for the support address with the action "Send to a Worker" → {worker}; turn on Subaddressing (without it the customer reply to help+t-<key>@… never arrives). One rule like it for each queue with its own address. In Resend, verify the domain and use EMAIL_FROM on that domain.',
|
|
372
|
+
'step.verify': 'Product checks',
|
|
373
|
+
'verify.simulated': 'Simulated Cloudflare: checks skipped',
|
|
374
|
+
'verify.failed': '{n} check(s) did not match (see above). Everything else is installed; check it later.',
|
|
375
|
+
'final.next.cls1': 'Panel → Classifieds → Cities and districts: add the cities you serve (no city, no listing).',
|
|
376
|
+
'final.next.cls2': 'Panel → Classifieds → Site settings: site name (page and Google title), currency, country, moderation (pre is the default) and expiry.',
|
|
377
|
+
'final.next.cls3': 'Panel → Classifieds → Featured plans: the sample plans are in BRL — change the currency/price for another country. Real payments: panel → Payments (Core).',
|
|
378
|
+
'final.next.cls4': 'Google Search Console: submit {site}/sitemap.xml.',
|
|
379
|
+
'final.next.clsDomain': 'SEO lives on the domain: run again with --site-domain classifieds.yourcompany.com (the zone must be in this Cloudflare account; the token needs Zone · Workers Routes · Edit) — it attaches the domain to the {worker} Worker and points PUBLIC_URL at it.',
|
|
380
|
+
};
|