create-ilorb 0.2.0 → 0.3.1

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/i18n/en.js CHANGED
@@ -11,6 +11,8 @@ export const en = {
11
11
  npm create ilorb@latest <product> [folder] -- [options]
12
12
  npx create-ilorb <product> [folder] [options] (the same)
13
13
  npx create-ilorb --resume [folder]
14
+ npx create-ilorb update [folder] is there a newer template version? what changed since mine?
15
+ npx create-ilorb update [folder] --apply <new folder> update from the unzipped new download (a plan; --yes applies it)
14
16
 
15
17
  Products: chat, widgets, consultas, status, agenda, sites, starter, link, imoveis, quiz, helpcenter, classificados, delivery, cardapio, shop, faturas, cursos
16
18
 
@@ -22,20 +24,17 @@ Main options:
22
24
  --lang pt|es|en language of the installer (default: the system's)
23
25
  --log <file> also write the terminal output (no colors) to a file
24
26
 
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
27
  Answers:
31
28
  --name <app name> --owner-email <e-mail> --languages pt,es,en,ar
32
29
  --style clean|bold|soft|night --primary <#hex> --bundle-id <com.company.app>
33
30
  --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
31
+ --ilorb-app-id <id> Ilorb Signal app (default: the key in ilorb.env; secrets: env ILORB_APP_SECRET, ILORB_CALLBACK_SECRET) · --skip-ilorb
32
+ (the older names --opera-app-id, OPERA_APP_SECRET, OPERA_CALLBACK_SECRET and --skip-opera still work)
35
33
  --email-from <sender> (env RESEND_API_KEY) · --skip-email
36
34
  --status-domain <host> status: your own domain for the status page (e.g. status.company.com)
37
35
  --short-domain <host> link: your own short domain (e.g. lnk.company.com) · --workers-paid you have the Workers Paid plan (clicks queue)
38
36
  --site-domain <host> classificados: your own site domain (SEO depends on it)
37
+ --turnstile-site-key <key> helpcenter: the public Turnstile site key (env TURNSTILE_SITE_KEY; the secret: env TURNSTILE_SECRET)
39
38
  --sample-data quiz: import the sample questions (default: yes on local) · --no-sample-data
40
39
  --no-serve local: install, configure and stop (do not keep it running)
41
40
  `,
@@ -85,18 +84,23 @@ Answers:
85
84
  'q.primary.invalid': 'Use 6 hex digits, e.g. #0EA5E9.',
86
85
  'q.primary.adjusted': 'Your color {from} becomes {to} on the light button (contrast {ratio}:1, readable). Dark mode: {dark}.',
87
86
  'q.primary.kept': 'Contrast {ratio}:1 on the button: readable as it is.',
87
+ 'q.theme.file': 'Look from overture.theme.json (chosen on Ilorb Code): {style} · {primary} · corners {radius} · font {font}',
88
+ 'q.theme.file.invalid': 'overture.theme.json ignored ({reason}); the style is asked as usual.',
88
89
  'q.account': 'Cloudflare account',
89
- 'q.opera': 'Opera Signal keys (the chat and calls)',
90
+ 'q.opera': 'Ilorb Signal keys (the chat and calls)',
90
91
  'q.opera.now': 'I have them — App ID and secret',
91
92
  '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)',
93
+ 'q.opera.appId': 'Ilorb Signal App ID',
94
+ 'q.opera.secret': 'Ilorb Signal App Secret (hidden)',
95
+ 'q.opera.callback': 'Ilorb Signal callback secret (hidden; Enter = I do not have it yet)',
95
96
  'q.email': 'Sending the login code by e-mail (Resend)',
96
97
  'q.email.now': 'I have a Resend key',
97
98
  'q.email.later': 'Skip — I (the owner) sign in with the first-access link; I set up e-mail later in the panel',
98
99
  'q.email.key': 'Resend API key (hidden)',
99
100
  'q.email.from': 'Sender (e.g. "My App <login@mydomain.com>")',
101
+ 'q.publicVar': '{name} (public; {secret} was given — the captcha only turns on with both; Enter = skip)',
102
+ 'q.publicVar.invalid': 'Use letters, digits, - or _ (4 to 200).',
103
+ 'q.publicVar.unpaired': '{name} and {secret} work together: {missing} is missing, so the captcha stays OFF (pass both to turn it on).',
100
104
  'q.summary': 'Summary',
101
105
  'q.confirm': 'Install with these choices?',
102
106
  'q.cancelled': 'Cancelled. Nothing was created.',
@@ -114,7 +118,7 @@ Answers:
114
118
  'sum.target': 'Where',
115
119
  'sum.target.cloud': 'your Cloudflare account',
116
120
  'sum.target.local': 'this computer (local, no cloud)',
117
- 'sum.opera': 'Opera',
121
+ 'sum.opera': 'Ilorb Signal',
118
122
  'sum.opera.skip': 'later',
119
123
  'sum.email': 'Login e-mail',
120
124
  'sum.email.skip': 'later (the owner signs in with the first-access link)',
@@ -141,17 +145,17 @@ Answers:
141
145
  'core.unchanged': 'already configured (nothing to change)',
142
146
  'local.ports': 'auth {auth} · api {api} · panel {admin} · app {app}',
143
147
  '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.',
148
+ 'local.starting': 'starting Core Auth, the {product} API, the panel and the app (the Ilorb Signal chat is the cloud one)…',
149
+ 'final.callback': 'Ilorb Signal callback (tunnel)',
150
+ 'step.operaTestApp': 'Ilorb Signal TEST app keys',
151
+ 'local.opera': 'Ilorb Signal TEST app {appId} · chat {url}',
152
+ 'q.opera.local': 'Keys of an Ilorb Signal TEST app (local mode uses the cloud Ilorb Signal chat)',
153
+ 'q.opera.localHint': 'Local mode runs Core, the {product} API, the panel and the app here; the chat itself is the cloud Ilorb Signal one, with a TEST app of yours.',
150
154
  'q.opera.localLater': 'I do not have one yet — show me how to create it',
151
155
  '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_…>',
156
+ 'final.next.localCallback': 'Ilorb Signal 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 Ilorb Signal console — or deploy to the cloud. Everything else works without it.',
157
+ 'err.opera_test_app_missing.what': 'Local mode needs the keys of an Ilorb Signal TEST app (the chat runs in the Ilorb Signal cloud; its server does not ship with the project).',
158
+ '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: ILORB_APP_SECRET=<secret> ILORB_CALLBACK_SECRET=<callback secret> npx create-ilorb --resume {dir} --ilorb-app-id <app_…>',
155
159
  'local.ready': 'everything is up',
156
160
  'local.stop': 'Ctrl+C stops everything. To start again later: pnpm dev (in the project folder).',
157
161
  'local.stopped': 'Everything stopped.',
@@ -165,12 +169,12 @@ Answers:
165
169
  'final.api': '{product} API',
166
170
  'final.admin': 'Admin panel',
167
171
  'final.app': 'App (web)',
168
- 'final.opera': 'Opera chat (TEST app)',
172
+ 'final.opera': 'Ilorb Signal chat (TEST app)',
169
173
  'final.next': 'Next steps',
170
174
  'final.next.panel': 'Open the panel and sign in with {email}: you are the owner.',
171
175
  '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).',
176
+ 'final.next.opera': 'In the Ilorb Signal console → your app → Callbacks: URL {url} and the same callback secret.',
177
+ 'final.next.operaSkip': 'Ilorb Signal keys: in the panel → Chat → Opera keys (or run again with --ilorb-app-id and ILORB_APP_SECRET/ILORB_CALLBACK_SECRET).',
174
178
  '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
179
  'final.next.eas': 'Phone app: cd {dir} && npx eas-cli build --profile production (the addresses are already in eas.json).',
176
180
  'final.next.secrets': 'Keep a copy of .overture/secrets.env somewhere safe (MASTER_KEY).',
@@ -205,7 +209,7 @@ Answers:
205
209
  'err.license_unknown_key.do': 'Update the installer: npx create-ilorb@latest',
206
210
  'err.license_test_key.what': 'This is a TEST license: it only works with a local license server.',
207
211
  '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.',
212
+ 'err.license_bad_signature.what': 'The license signature does not match: the key was changed or is not from the official license store.',
209
213
  'err.license_bad_signature.do': 'Copy the key again, complete, from your purchase e-mail.',
210
214
  'err.license_expired.what': 'This license expired on {date}.',
211
215
  'err.license_expired.do': 'Renew it in your account at operasourcecode.com and use the new key.',
@@ -231,7 +235,7 @@ Answers:
231
235
  'err.license_server_unreachable.do': 'Check the internet and run again with --resume. Activation is needed once, to download the templates.',
232
236
  'err.license_server_error.what': 'The license server answered with an error ({status}).',
233
237
  '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.',
238
+ 'err.license_receipt_invalid.what': 'The activation answer is not signed by the official license server.',
235
239
  'err.license_receipt_invalid.do': 'Use the official license server (no --license-server), or update the installer.',
236
240
  'err.templates_download_failed.what': 'Could not download the templates ({status}).',
237
241
  'err.templates_download_failed.do': 'Check the internet and run again with --resume (the activation is kept).',
@@ -245,7 +249,7 @@ Answers:
245
249
  'err.missing_answer.do': 'Pass {flag}.',
246
250
  'err.invalid_answer.what': 'Invalid value for "{field}": {value}.',
247
251
  'err.invalid_answer.do': '{hint}',
248
- 'err.dir_not_empty.what': 'The folder {dir} already has files and is not a Overture installation.',
252
+ 'err.dir_not_empty.what': 'The folder {dir} already has files and is not an Ilorb Code installation.',
249
253
  'err.dir_not_empty.do': 'Choose an empty folder (or a new name).',
250
254
  'err.no_state.what': 'There is no installation to continue in {dir}.',
251
255
  'err.no_state.do': 'Start one: npx create-ilorb chat {dir}',
@@ -295,17 +299,17 @@ Answers:
295
299
  'step.prebuild': 'Build the widget ({dir})',
296
300
  'build.prebuild': 'built → {out} (goes inside the Worker)',
297
301
  '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.',
302
+ 'local.starting.site': 'starting Core Auth, the {product} API, the panel and the widget test page (the Ilorb Signal chat is the cloud one)…',
303
+ '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 Ilorb Signal one, with a TEST app of yours.',
300
304
  'sum.product': 'Product',
301
305
  'final.site': 'Widget test page',
302
306
  '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
307
  '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).',
308
+ 'final.next.operaSkip.widgets': 'Ilorb Signal keys: in the panel → Website widgets → Widgets → Ilorb Signal connection and email (or run again with --ilorb-app-id and ILORB_APP_SECRET/ILORB_CALLBACK_SECRET).',
305
309
  // consultas product (scheduling + payment through Core + video)
306
310
  '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
311
  '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.',
312
+ 'final.next.operaSkip.consultas': 'Ilorb Signal keys (video room and session chat): run again with --ilorb-app-id and ILORB_APP_SECRET/ILORB_CALLBACK_SECRET.',
309
313
  // status product (public status page + uptime monitor; no Opera, no app)
310
314
  'local.ports.web': 'auth {auth} · api {api} · panel {admin}',
311
315
  'local.starting.web': 'starting Core Auth, the {product} API (cron every minute) and the panel…',
@@ -350,7 +354,7 @@ Answers:
350
354
  'sample.skipped': 'skipped (no --sample-data)',
351
355
  'sample.imported': '{n} sample questions imported',
352
356
  '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.',
357
+ '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 web app at {app} (e-mail links and the chat button point to it) or the store app (cd overture-imoveis/app/react-native && npx eas-cli build). The cron runs every hour.',
354
358
  '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
359
  '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
360
  '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.',
@@ -377,4 +381,46 @@ Answers:
377
381
  '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
382
  'final.next.cls4': 'Google Search Console: submit {site}/sitemap.xml.',
379
383
  '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.',
384
+ 'update.title': "Template update · {template}",
385
+ 'update.upToDate': "You have {version}, the latest version. Nothing to update.",
386
+ 'update.available': "You have {current}, latest is {latest} ({date}).",
387
+ 'update.notesSince': "What changed since your version:",
388
+ 'update.unknownVersion': "Your version {version} is not in the public changelog (a DEV or test package). The latest release:",
389
+ 'update.steps': "How to update:",
390
+ 'update.step1': "Download the new version on the template page (sign in): {url}",
391
+ 'update.step2': "Unzip it NEXT TO this project, never over it (e.g. {folder}).",
392
+ 'update.step3': "See the plan, nothing is written: {cmd}",
393
+ 'update.step4': "Apply it: {cmd} — files you changed are kept and ours is saved beside them as <file>{suffix}.",
394
+ 'update.step5': "Then review the {suffix} files, reinstall the dependencies and deploy as usual (see your README).",
395
+ 'update.plan.title': "Update plan · {template}: {from} → {to}",
396
+ 'update.plan.noBase': "This project has no file fingerprints from the install (installed before updates existed): every file that differs is treated as changed by you, and ours is written as <file>{suffix}.",
397
+ 'update.plan.replace': "Replace — {n} file(s) you did not change:",
398
+ 'update.plan.add': "Add — {n} new file(s):",
399
+ 'update.plan.conflict': "Changed by you and by us — {n} file(s): yours stays, ours is written as <file>{suffix}:",
400
+ 'update.plan.keep': "Changed by you only — {n} file(s) kept as they are:",
401
+ 'update.plan.removed': "Removed in the new version — {n} file(s), listed only, never deleted:",
402
+ 'update.plan.protected': "Protected — {n} file(s) never touched:",
403
+ 'update.plan.unchanged': "{n} file(s) already identical.",
404
+ 'update.dryRun': "Dry run: nothing was written. To apply it: {cmd}",
405
+ 'update.applied': "Updated to {version}: {replaced} replaced, {added} added, {conflicts} written as {suffix}.",
406
+ 'err.update_no_version.what': "No template version found in {dir}.",
407
+ 'err.update_no_version.do': "Run it inside a project made from an Ilorb Code download (it has ilorb-template.json, .overture/install.json or the README footer \"Package <id> <version>\"), or pass the folder: create-ilorb update <folder>.",
408
+ 'err.update_unreachable.what': "Could not read the update information at {url}.",
409
+ 'err.update_unreachable.do': "Check your connection and try again; or open the template page on the site and compare the version there.",
410
+ 'err.update_unknown_template.what': "The site {site} has no releases for the template \"{template}\".",
411
+ 'err.update_unknown_template.do': "Check the id in ilorb-template.json; templates that are not released yet have no updates.",
412
+ 'err.update_bad_site.what': "Invalid site address: {url}.",
413
+ 'err.update_bad_site.do': "Use an https:// address (e.g. --site https://code.ilorb.com), or remove ILORB_CODE_URL.",
414
+ 'err.update_apply_folder.what': "--apply needs the folder of the new version.",
415
+ 'err.update_apply_folder.do': "Unzip the new download next to the project and run: create-ilorb update --apply ../ilorb-code-<template>",
416
+ 'err.update_same_folder.what': "The new version folder is the project itself ({dir}).",
417
+ 'err.update_same_folder.do': "Unzip the new download into ANOTHER folder, next to the project, and point --apply at it.",
418
+ 'err.update_no_folder.what': "The folder {dir} does not exist.",
419
+ 'err.update_no_folder.do': "Unzip the new download and point --apply at the unzipped folder (the one with ilorb-template.json).",
420
+ 'err.update_wrong_template.what': "This project is \"{theirs}\" but the new folder is \"{ours}\".",
421
+ 'err.update_wrong_template.do': "Download the new version of the same template and point --apply at it.",
422
+ 'err.update_downgrade.what': "The folder has an older version ({to}) than the project ({from}).",
423
+ 'err.update_downgrade.do': "Download the latest version from the template page and point --apply at it.",
424
+ 'err.update_unsafe_path.what': "Refused to write {path}: it is protected or outside the project.",
425
+ 'err.update_unsafe_path.do': "Nothing after this file was written. Check that no folder of the project is a symbolic link, then run it again.",
380
426
  };
package/dist/i18n/es.js CHANGED
@@ -10,6 +10,8 @@ export const es = {
10
10
  npm create ilorb@latest <producto> [carpeta] -- [opciones]
11
11
  npx create-ilorb <producto> [carpeta] [opciones] (lo mismo)
12
12
  npx create-ilorb --resume [carpeta]
13
+ npx create-ilorb update [carpeta] ¿hay una versión nueva de la plantilla? ¿qué cambió desde la mía?
14
+ npx create-ilorb update [carpeta] --apply <carpeta nueva> actualiza desde la nueva descarga descomprimida (un plan; --yes lo aplica)
13
15
 
14
16
  Productos: chat, widgets, consultas, status, agenda, sites, starter, link, imoveis, quiz, helpcenter, classificados, delivery, cardapio, shop, faturas, cursos
15
17
 
@@ -21,20 +23,17 @@ Opciones principales:
21
23
  --lang pt|es|en idioma del instalador (por defecto: el del sistema)
22
24
  --log <archivo> guarda también la salida de la terminal (sin colores) en un archivo
23
25
 
24
- Licencia (una de las dos):
25
- --license <clave> clave de licencia de Opera Source Code (env OVERTURE_LICENSE)
26
- --purchase-code <código> purchase code de Envato (env ENVATO_PURCHASE_CODE)
27
- --license-server <url> servidor de licencias (por defecto https://api.operasourcecode.com)
28
-
29
26
  Respuestas:
30
27
  --name <nombre de la app> --owner-email <e-mail> --languages pt,es,en,ar
31
28
  --style clean|bold|soft|night --primary <#hex> --bundle-id <com.empresa.app>
32
29
  --account-id <cuenta Cloudflare> (token: env CLOUDFLARE_API_TOKEN, o "wrangler login")
33
- --opera-app-id <id> (secretos: env OPERA_APP_SECRET, OPERA_CALLBACK_SECRET) · --skip-opera
30
+ --ilorb-app-id <id> app de Ilorb Signal (por defecto: la clave de ilorb.env; secretos: env ILORB_APP_SECRET, ILORB_CALLBACK_SECRET) · --skip-ilorb
31
+ (los nombres antiguos --opera-app-id, OPERA_APP_SECRET, OPERA_CALLBACK_SECRET y --skip-opera siguen funcionando)
34
32
  --email-from <remitente> (env RESEND_API_KEY) · --skip-email
35
33
  --status-domain <host> status: dominio propio de la página de estado (p. ej. status.empresa.com)
36
34
  --short-domain <host> link: dominio corto propio (p. ej. lnk.empresa.com) · --workers-paid tiene el plan pago de Workers (cola de clics)
37
35
  --site-domain <host> clasificados: dominio propio del sitio (el SEO depende de él)
36
+ --turnstile-site-key <clave> helpcenter: la clave pública de Turnstile (env TURNSTILE_SITE_KEY; el secreto: env TURNSTILE_SECRET)
38
37
  --sample-data quiz: importar las preguntas de ejemplo (por defecto: sí en local) · --no-sample-data
39
38
  --no-serve local: instala, configura y se detiene (no lo deja corriendo)
40
39
  `,
@@ -81,18 +80,23 @@ Respuestas:
81
80
  'q.primary.invalid': 'Usa 6 dígitos hex, p. ej. #0EA5E9.',
82
81
  'q.primary.adjusted': 'Tu color {from} pasa a {to} en el botón claro (contraste {ratio}:1, legible). En oscuro: {dark}.',
83
82
  'q.primary.kept': 'Contraste {ratio}:1 en el botón: legible tal como está.',
83
+ 'q.theme.file': 'Aspecto de overture.theme.json (elegido en Ilorb Code): {style} · {primary} · esquinas {radius} · fuente {font}',
84
+ 'q.theme.file.invalid': 'overture.theme.json ignorado ({reason}); el estilo se pregunta como siempre.',
84
85
  'q.account': 'Cuenta de Cloudflare',
85
- 'q.opera': 'Claves de Opera Signal (el chat y las llamadas)',
86
+ 'q.opera': 'Claves de Ilorb Signal (el chat y las llamadas)',
86
87
  'q.opera.now': 'Las tengo — App ID y secreto',
87
88
  'q.opera.later': 'Saltar — las configuro después',
88
- 'q.opera.appId': 'App ID de Opera',
89
- 'q.opera.secret': 'App Secret de Opera (oculto)',
90
- 'q.opera.callback': 'Callback secret de Opera (oculto; Enter = aún no lo tengo)',
89
+ 'q.opera.appId': 'App ID de Ilorb Signal',
90
+ 'q.opera.secret': 'App Secret de Ilorb Signal (oculto)',
91
+ 'q.opera.callback': 'Callback secret de Ilorb Signal (oculto; Enter = aún no lo tengo)',
91
92
  'q.email': 'Envío del código de acceso por e-mail (Resend)',
92
93
  'q.email.now': 'Tengo una clave de Resend',
93
94
  'q.email.later': 'Saltar — yo (dueño) entro con el enlace de primer acceso; configuro el correo después en el panel',
94
95
  'q.email.key': 'Clave de API de Resend (oculta)',
95
96
  'q.email.from': 'Remitente (p. ej. "Mi App <login@midominio.com>")',
97
+ 'q.publicVar': '{name} (pública; vino {secret} — el captcha solo se activa con los dos; Enter = omitir)',
98
+ 'q.publicVar.invalid': 'Usa letras, números, - o _ (4 a 200).',
99
+ 'q.publicVar.unpaired': '{name} y {secret} van juntos: falta {missing}, así que el captcha queda APAGADO (pasa los dos para activarlo).',
96
100
  'q.summary': 'Resumen',
97
101
  'q.confirm': '¿Instalar con estas opciones?',
98
102
  'q.cancelled': 'Cancelado. No se creó nada.',
@@ -110,7 +114,7 @@ Respuestas:
110
114
  'sum.target': 'Dónde',
111
115
  'sum.target.cloud': 'tu cuenta de Cloudflare',
112
116
  'sum.target.local': 'esta computadora (local, sin nube)',
113
- 'sum.opera': 'Opera',
117
+ 'sum.opera': 'Ilorb Signal',
114
118
  'sum.opera.skip': 'después',
115
119
  'sum.email': 'E-mail del acceso',
116
120
  'sum.email.skip': 'después (el dueño entra con el enlace de primer acceso)',
@@ -136,17 +140,17 @@ Respuestas:
136
140
  'core.unchanged': 'ya configurado (nada que cambiar)',
137
141
  'local.ports': 'auth {auth} · api {api} · panel {admin} · app {app}',
138
142
  'local.migrated': 'identidad y {product} — {n} migración(es)',
139
- 'local.starting': 'levantando Core Auth, la API de {product}, el panel y la app (el chat de Opera es el de la nube)…',
140
- 'final.callback': 'Callback de Opera (túnel)',
141
- 'step.operaTestApp': 'Claves de la app de PRUEBA de Opera',
142
- 'local.opera': 'app de PRUEBA de Opera {appId} · chat {url}',
143
- 'q.opera.local': 'Claves de una app de PRUEBA de Opera Signal (el modo local usa el chat de Opera en la nube)',
144
- 'q.opera.localHint': 'El modo local corre aquí el Core, la API de {product}, el panel y la app; el chat en sí es el de Opera en la nube, con una app de PRUEBA tuya.',
143
+ 'local.starting': 'levantando Core Auth, la API de {product}, el panel y la app (el chat de Ilorb Signal es el de la nube)…',
144
+ 'final.callback': 'Callback de Ilorb Signal (túnel)',
145
+ 'step.operaTestApp': 'Claves de la app de PRUEBA de Ilorb Signal',
146
+ 'local.opera': 'app de PRUEBA de Ilorb Signal {appId} · chat {url}',
147
+ 'q.opera.local': 'Claves de una app de PRUEBA de Ilorb Signal (el modo local usa el chat de Ilorb Signal en la nube)',
148
+ 'q.opera.localHint': 'El modo local corre aquí el Core, la API de {product}, el panel y la app; el chat en sí es el de Ilorb Signal en la nube, con una app de PRUEBA tuya.',
145
149
  'q.opera.localLater': 'Aún no tengo — muéstrame cómo crearla',
146
150
  'sum.opera.test': '(app de PRUEBA)',
147
- 'final.next.localCallback': 'Los callbacks de Opera (push, denuncias) no llegan a esta computadora: para probarlos, abre un túnel (p. ej. cloudflared tunnel --url http://localhost:{port}) y pon <URL del túnel>{path} como callback de tu app de PRUEBA en la consola de Opera — o haz el deploy en la nube. Lo demás funciona sin eso.',
148
- 'err.opera_test_app_missing.what': 'El modo local necesita las claves de una app de PRUEBA de Opera Signal (el chat corre en la nube de Opera; su servidor no viene en el proyecto).',
149
- 'err.opera_test_app_missing.do': 'En la consola de Ilorb Signal (signal.ilorb.app), crea una app en el entorno de PRUEBA y copia App ID, App Secret y callback secret. Después: OPERA_APP_SECRET=<secreto> OPERA_CALLBACK_SECRET=<callback secret> npx create-ilorb --resume {dir} --opera-app-id <app_…>',
151
+ 'final.next.localCallback': 'Los callbacks de Ilorb Signal (push, denuncias) no llegan a esta computadora: para probarlos, abre un túnel (p. ej. cloudflared tunnel --url http://localhost:{port}) y pon <URL del túnel>{path} como callback de tu app de PRUEBA en la consola de Ilorb Signal — o haz el deploy en la nube. Lo demás funciona sin eso.',
152
+ 'err.opera_test_app_missing.what': 'El modo local necesita las claves de una app de PRUEBA de Ilorb Signal (el chat corre en la nube de Ilorb Signal; su servidor no viene en el proyecto).',
153
+ 'err.opera_test_app_missing.do': 'En la consola de Ilorb Signal (signal.ilorb.app), crea una app en el entorno de PRUEBA y copia App ID, App Secret y callback secret. Después: ILORB_APP_SECRET=<secreto> ILORB_CALLBACK_SECRET=<callback secret> npx create-ilorb --resume {dir} --ilorb-app-id <app_…>',
150
154
  'local.ready': 'todo arriba',
151
155
  'local.stop': 'Ctrl+C apaga todo. Para levantarlo de nuevo: pnpm dev (en la carpeta del proyecto).',
152
156
  'local.stopped': 'Todo detenido.',
@@ -159,12 +163,12 @@ Respuestas:
159
163
  'final.api': 'API de {product}',
160
164
  'final.admin': 'Panel',
161
165
  'final.app': 'App (web)',
162
- 'final.opera': 'Chat de Opera (PRUEBA)',
166
+ 'final.opera': 'Chat de Ilorb Signal (PRUEBA)',
163
167
  'final.next': 'Próximos pasos',
164
168
  'final.next.panel': 'Abre el panel y entra con {email}: eres el dueño.',
165
169
  'final.next.localCode': 'Local: el código aparece en la pantalla ("Código de prueba") — no se envía ningún e-mail.',
166
- 'final.next.opera': 'En la consola de Opera Signal → tu app → Callbacks: URL {url} y el mismo callback secret.',
167
- 'final.next.operaSkip': 'Claves de Opera: en el panel → Chat → Claves de Opera (o ejecuta de nuevo con --opera-app-id y OPERA_APP_SECRET/OPERA_CALLBACK_SECRET).',
170
+ 'final.next.opera': 'En la consola de Ilorb Signal → tu app → Callbacks: URL {url} y el mismo callback secret.',
171
+ 'final.next.operaSkip': 'Claves de Ilorb Signal: en el panel → Chat → Claves de Opera (o ejecuta de nuevo con --ilorb-app-id y ILORB_APP_SECRET/ILORB_CALLBACK_SECRET).',
168
172
  'final.next.emailSkip': 'Correo del código (Resend): sin él los usuarios de la app no reciben el código. Actívalo en el panel → Formas de entrar.',
169
173
  'final.next.eas': 'App en el celular: cd {dir} && npx eas-cli build --profile production (las direcciones ya están en eas.json).',
170
174
  'final.next.secrets': 'Guarda una copia de .overture/secrets.env en un lugar seguro (MASTER_KEY).',
@@ -197,7 +201,7 @@ Respuestas:
197
201
  'err.license_unknown_key.do': 'Actualiza el instalador: npx create-ilorb@latest',
198
202
  'err.license_test_key.what': 'Es una licencia de PRUEBA: solo vale con un servidor de licencias local.',
199
203
  'err.license_test_key.do': 'Usa tu clave de licencia real, o --license-server http://localhost:… para pruebas.',
200
- 'err.license_bad_signature.what': 'La firma de la licencia no coincide: la clave fue alterada o no es de Opera Source Code.',
204
+ 'err.license_bad_signature.what': 'La firma de la licencia no coincide: la clave fue alterada o no es de la tienda oficial de licencias.',
201
205
  'err.license_bad_signature.do': 'Copia la clave de nuevo, completa, del e-mail de compra.',
202
206
  'err.license_expired.what': 'Esta licencia venció el {date}.',
203
207
  'err.license_expired.do': 'Renuévala en tu cuenta de operasourcecode.com y usa la clave nueva.',
@@ -223,7 +227,7 @@ Respuestas:
223
227
  'err.license_server_unreachable.do': 'Revisa internet y ejecuta de nuevo con --resume. La activación se necesita una vez, para descargar las plantillas.',
224
228
  'err.license_server_error.what': 'El servidor de licencias respondió con error ({status}).',
225
229
  'err.license_server_error.do': 'Intenta de nuevo con --resume. Si se repite, escribe a soporte.',
226
- 'err.license_receipt_invalid.what': 'La respuesta de la activación no está firmada por Opera Source Code.',
230
+ 'err.license_receipt_invalid.what': 'La respuesta de la activación no está firmada por el servidor oficial de licencias.',
227
231
  'err.license_receipt_invalid.do': 'Usa el servidor de licencias oficial (sin --license-server), o actualiza el instalador.',
228
232
  'err.templates_download_failed.what': 'No se pudieron descargar las plantillas ({status}).',
229
233
  'err.templates_download_failed.do': 'Revisa internet y ejecuta de nuevo con --resume (la activación queda guardada).',
@@ -237,7 +241,7 @@ Respuestas:
237
241
  'err.missing_answer.do': 'Pasa {flag}.',
238
242
  'err.invalid_answer.what': 'Valor inválido para "{field}": {value}.',
239
243
  'err.invalid_answer.do': '{hint}',
240
- 'err.dir_not_empty.what': 'La carpeta {dir} ya tiene archivos y no es una instalación de Overture.',
244
+ 'err.dir_not_empty.what': 'La carpeta {dir} ya tiene archivos y no es una instalación de Ilorb Code.',
241
245
  'err.dir_not_empty.do': 'Elige una carpeta vacía (o un nombre nuevo).',
242
246
  'err.no_state.what': 'No hay instalación para continuar en {dir}.',
243
247
  'err.no_state.do': 'Empieza una: npx create-ilorb chat {dir}',
@@ -287,17 +291,17 @@ Respuestas:
287
291
  'step.prebuild': 'Build del widget ({dir})',
288
292
  'build.prebuild': 'compilado → {out} (va dentro del Worker)',
289
293
  'local.ports.site': 'auth {auth} · api {api} · panel {admin} · página de prueba {site}',
290
- 'local.starting.site': 'levantando Core Auth, la API de {product}, el panel y la página de prueba del widget (el chat de Opera es el de la nube)…',
291
- 'q.opera.localHint.site': 'El modo local corre aquí el Core, la API de los Widgets, el panel y una página de prueba con el snippet; el chat en sí es el de Opera en la nube, con una app de PRUEBA tuya.',
294
+ 'local.starting.site': 'levantando Core Auth, la API de {product}, el panel y la página de prueba del widget (el chat de Ilorb Signal es el de la nube)…',
295
+ 'q.opera.localHint.site': 'El modo local corre aquí el Core, la API de los Widgets, el panel y una página de prueba con el snippet; el chat en sí es el de Ilorb Signal en la nube, con una app de PRUEBA tuya.',
292
296
  'sum.product': 'Producto',
293
297
  'final.site': 'Página de prueba del widget',
294
298
  'final.next.widget': 'En el panel → Widgets del sitio → Widgets: crea el widget, agrega el dominio de tu sitio y pega el snippet (<script …/w.js data-widget="wdg_…">) en tu sitio.',
295
299
  'final.next.widgetLocal': 'Para probar: en el panel → Widgets del sitio → Widgets, crea un widget con el dominio {host} y abre {site}/?w=<id del widget> — la página de prueba ya trae el snippet.',
296
- 'final.next.operaSkip.widgets': 'Claves de Opera: en el panel → Widgets del sitio → Widgets → Conexión con Opera y correo (o ejecuta de nuevo con --opera-app-id y OPERA_APP_SECRET/OPERA_CALLBACK_SECRET).',
300
+ 'final.next.operaSkip.widgets': 'Claves de Ilorb Signal: en el panel → Widgets del sitio → Widgets → Conexión con Ilorb Signal y correo (o ejecuta de nuevo con --ilorb-app-id y ILORB_APP_SECRET/ILORB_CALLBACK_SECRET).',
297
301
  // producto consultas (agenda + pago por el Core + video)
298
302
  'final.next.consultas': 'En el panel → Consultas → Profesionales: registra a quien atiende, los servicios y los horarios; en Pagos, las claves de Stripe/Mercado Pago/dLocal (los recordatorios de 24 h y 15 min corren con el cron del Worker, cada minuto).',
299
303
  'final.next.consultasLocal': 'Para probar: en el panel → Consultas → Profesionales, registra un profesional y un servicio; el pago local es SIMULADO (Pix/tarjeta de mentira) y el cron de los recordatorios corre cada minuto.',
300
- 'final.next.operaSkip.consultas': 'Claves de Opera (sala de video y chat de la consulta): ejecuta de nuevo con --opera-app-id y OPERA_APP_SECRET/OPERA_CALLBACK_SECRET.',
304
+ 'final.next.operaSkip.consultas': 'Claves de Ilorb Signal (sala de video y chat de la consulta): ejecuta de nuevo con --ilorb-app-id y ILORB_APP_SECRET/ILORB_CALLBACK_SECRET.',
301
305
  // producto status (página de estado pública + monitor de uptime; sin Opera, sin app)
302
306
  'local.ports.web': 'auth {auth} · api {api} · panel {admin}',
303
307
  'local.starting.web': 'levantando Core Auth, la API de {product} (cron cada minuto) y el panel…',
@@ -342,7 +346,7 @@ Respuestas:
342
346
  'sample.skipped': 'omitido (sin --sample-data)',
343
347
  'sample.imported': '{n} preguntas de ejemplo importadas',
344
348
  'sample.failed': 'No se pudieron importar los ejemplos ahora (el resto está listo). En el panel → Quiz → Importar, sube overture-quiz/exemplos/perguntas-exemplo.csv.',
345
- 'final.next.imoveis': 'En el panel → Inmuebles: planes (límites, destacados, precio), lugares y ajustes del portal; en Pagos (panel del Core), las claves de Stripe/Mercado Pago/dLocal. El sitio del portal está en {site}; los anunciantes usan la app (cd overture-imoveis/app/react-native && npx eas-cli build). El cron corre cada hora.',
349
+ 'final.next.imoveis': 'En el panel → Inmuebles: planes (límites, destacados, precio), lugares y ajustes del portal; en Pagos (panel del Core), las claves de Stripe/Mercado Pago/dLocal. El sitio del portal está en {site}; los anunciantes usan la app web en {app} (los enlaces de los correos y el botón del chat apuntan a ella) o la app de las tiendas (cd overture-imoveis/app/react-native && npx eas-cli build). El cron corre cada hora.',
346
350
  'final.next.imoveisLocal': 'Para probar: abre la app web en {app}, entra (el código aparece en pantalla), crea la inmobiliaria y un anuncio; el sitio está en {site} y el panel → Inmuebles modera. El pago local es SIMULADO.',
347
351
  'final.next.quiz': 'En el panel → Quiz: categorías, preguntas (o Importar CSV: overture-quiz/exemplos/perguntas-exemplo.csv) y ajustes; en Pagos (panel del Core), las claves de Stripe/Mercado Pago/dLocal. El juego web está en {app}. El cron corre cada hora.',
348
352
  'final.next.quizLocal': 'Para probar: abre el juego en {app} y juega una partida (el código aparece en pantalla); el panel → Quiz muestra las preguntas y los jugadores. El pago local es SIMULADO.',
@@ -369,4 +373,46 @@ Respuestas:
369
373
  'final.next.cls3': 'Panel → Clasificados → Planes de destaque: los planes de ejemplo vienen en BRL — cambia la moneda/precio si es otro país. Pagos de verdad: panel → Pagos (el Core).',
370
374
  'final.next.cls4': 'Google Search Console: envía {site}/sitemap.xml.',
371
375
  'final.next.clsDomain': 'El SEO vive del dominio: ejecuta de nuevo con --site-domain clasificados.tuempresa.com (la zona debe estar en esta cuenta de Cloudflare; el token necesita Zone · Workers Routes · Edit) — conecta el dominio al Worker {worker} y pone PUBLIC_URL en él.',
376
+ 'update.title': "Actualización de la plantilla · {template}",
377
+ 'update.upToDate': "Tienes la {version}, la versión más nueva. Nada que actualizar.",
378
+ 'update.available': "Tienes la {current}, la más nueva es la {latest} ({date}).",
379
+ 'update.notesSince': "Qué cambió desde tu versión:",
380
+ 'update.unknownVersion': "Tu versión {version} no está en el changelog público (un paquete de DEV o de prueba). La versión más nueva:",
381
+ 'update.steps': "Cómo actualizar:",
382
+ 'update.step1': "Descarga la nueva versión en la página de la plantilla (con sesión iniciada): {url}",
383
+ 'update.step2': "Descomprímela JUNTO A este proyecto, nunca encima (p. ej. {folder}).",
384
+ 'update.step3': "Mira el plan, no se escribe nada: {cmd}",
385
+ 'update.step4': "Aplícalo: {cmd} — los archivos que cambiaste se conservan y nuestra versión se guarda al lado como <archivo>{suffix}.",
386
+ 'update.step5': "Después revisa los archivos {suffix}, reinstala las dependencias y publica como siempre (mira tu README).",
387
+ 'update.plan.title': "Plan de actualización · {template}: {from} → {to}",
388
+ 'update.plan.noBase': "Este proyecto no tiene las huellas de los archivos de la instalación (instalado antes de que existieran las actualizaciones): todo archivo distinto cuenta como cambiado por ti, y el nuestro se escribe como <archivo>{suffix}.",
389
+ 'update.plan.replace': "Reemplazar — {n} archivo(s) que no cambiaste:",
390
+ 'update.plan.add': "Añadir — {n} archivo(s) nuevo(s):",
391
+ 'update.plan.conflict': "Cambiado por ti y por nosotros — {n} archivo(s): el tuyo se queda, el nuestro se escribe como <archivo>{suffix}:",
392
+ 'update.plan.keep': "Cambiado solo por ti — {n} archivo(s) conservado(s) tal cual:",
393
+ 'update.plan.removed': "Eliminado en la nueva versión — {n} archivo(s), solo listados, nunca borrados:",
394
+ 'update.plan.protected': "Protegido — {n} archivo(s) nunca tocados:",
395
+ 'update.plan.unchanged': "{n} archivo(s) ya idénticos.",
396
+ 'update.dryRun': "Simulación: no se escribió nada. Para aplicarlo: {cmd}",
397
+ 'update.applied': "Actualizado a {version}: {replaced} reemplazado(s), {added} añadido(s), {conflicts} escrito(s) como {suffix}.",
398
+ 'err.update_no_version.what': "No se encontró ninguna versión de plantilla en {dir}.",
399
+ 'err.update_no_version.do': "Ejecútalo dentro de un proyecto hecho a partir de una descarga de Ilorb Code (tiene ilorb-template.json, .overture/install.json o el pie del README \"Package <id> <versión>\"), o pasa la carpeta: create-ilorb update <carpeta>.",
400
+ 'err.update_unreachable.what': "No se pudo leer la información de actualización en {url}.",
401
+ 'err.update_unreachable.do': "Revisa tu conexión e inténtalo de nuevo; o abre la página de la plantilla en el sitio y compara la versión allí.",
402
+ 'err.update_unknown_template.what': "El sitio {site} no tiene versiones publicadas de la plantilla \"{template}\".",
403
+ 'err.update_unknown_template.do': "Revisa el id en ilorb-template.json; las plantillas aún no lanzadas no tienen actualizaciones.",
404
+ 'err.update_bad_site.what': "Dirección del sitio no válida: {url}.",
405
+ 'err.update_bad_site.do': "Usa una dirección https:// (p. ej. --site https://code.ilorb.com), o quita ILORB_CODE_URL.",
406
+ 'err.update_apply_folder.what': "--apply necesita la carpeta de la nueva versión.",
407
+ 'err.update_apply_folder.do': "Descomprime la nueva descarga junto al proyecto y ejecuta: create-ilorb update --apply ../ilorb-code-<plantilla>",
408
+ 'err.update_same_folder.what': "La carpeta de la nueva versión es el propio proyecto ({dir}).",
409
+ 'err.update_same_folder.do': "Descomprime la nueva descarga en OTRA carpeta, junto al proyecto, y apunta --apply a ella.",
410
+ 'err.update_no_folder.what': "La carpeta {dir} no existe.",
411
+ 'err.update_no_folder.do': "Descomprime la nueva descarga y apunta --apply a la carpeta descomprimida (la que tiene ilorb-template.json).",
412
+ 'err.update_wrong_template.what': "Este proyecto es \"{theirs}\", pero la nueva carpeta es \"{ours}\".",
413
+ 'err.update_wrong_template.do': "Descarga la nueva versión de la misma plantilla y apunta --apply a ella.",
414
+ 'err.update_downgrade.what': "La carpeta tiene una versión más antigua ({to}) que la del proyecto ({from}).",
415
+ 'err.update_downgrade.do': "Descarga la versión más nueva en la página de la plantilla y apunta --apply a ella.",
416
+ 'err.update_unsafe_path.what': "Se rechazó escribir {path}: está protegido o fuera del proyecto.",
417
+ 'err.update_unsafe_path.do': "No se escribió nada después de este archivo. Comprueba que ninguna carpeta del proyecto sea un enlace simbólico y ejecútalo de nuevo.",
372
418
  };