@dokebi/cli 0.4.37 → 0.4.39

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/AI.md CHANGED
@@ -93,7 +93,7 @@ The `blog` plan, depending on the answers: `init` (when the folder is not a proj
93
93
  | `dokebi app remove <name>` · `app link <app> <domain> [--template] [--seal]` · `app unlink <domain>` · `app list` | Manage apps and domains. `app remove` fails with `APP_IN_USE` while a domain still points to the app (unlink first); it removes the registration and `options.dokebi-app.apps.<name>` (D-0061 per-app settings) from dokebi.yaml and the sample (0.2.5; otherwise the next start fails with `UNKNOWN_APP`) and the app's recorded view from `.dokebi/recipe.json`. The folder stays (user code; the result lists it in `preserved` with the warning `APP_FOLDER_KEPT`) |
94
94
  | `dokebi module add <name> [--no-views]` · `module remove` · `module list` | Feature modules `src/shared/modules/<name>` (D-0032). `--no-views`: the routes answer JSON |
95
95
  | `dokebi settings add <section>` · `settings sync` · `settings remove <section>` · `settings list` | The settings of the application itself in `options.<section>` (D-0155): `add` writes `src/shared/settings/<section>.ts` (core's `defineSettings` with a `defineOptions` declaration; an existing one default-exporting it is adopted), its schema `src/shared/settings/<section>.schema.json`, the defaults in dokebi.yaml and the example (with the `# reloadable` marks), and registers it, so the app checks the section at start and `config show/set/unset/secret`, doctor and reloads treat it like a plugin section. Code reads `<name>Settings.read(context.app.config)` (typed, cached per configuration, new after a reload). After changing the declaration run `settings sync` (doctor warns `SETTINGS_SCHEMA_STALE`). A value that is still the default the CLI wrote (the old schema's, such as the `pageSize: 50` and `workers: 2` placeholders of `settings add`) follows a changed default, in dokebi.yaml and the example (`sections[].followed`); a value set by hand stays. Then each section is checked against the new schema as doctor checks it: a missing required value is `configRequired`, anything else (a value set by hand above a lowered maximum, a value of an option the declaration dropped) is `INVALID_PLUGIN_OPTIONS` with `details.paths` and a `fix` (`npx dokebi config unset <paths>` or correct it by hand, then sync again), and nothing is written (AI-M49 D2: sync answered ok on what doctor and the app refuse). A section of a plugin, `logging` or `reload` is `SETTINGS_SECTION_CONFLICT`; `remove` keeps the files and the options. A section nothing declares has one code in every config command: `UNDECLARED_SECTION` (`UNKNOWN_PLUGIN` when the name is a plugin that is not installed); `config set` and `secret` refuse it, `config show` (text values hidden) and `unset` work on what is there and warn with it, and doctor and `dokebi check` (`undeclared-section`) report it |
96
- | `dokebi dev` | Development run (in the foreground). The app leads a process group of its own: what it started and left running when it stops (a restart, Ctrl+C) or crashes is ended (SIGTERM, SIGKILL after 2 s) and dev says so, so a restart never meets a port a helper of the old app holds. When `src/` or `.env` change it drains and starts again; when only `dokebi.yaml` changed it first asks the running app to read it again (D-0154): every changed option reloadable → applied without a restart (`dokebi.yaml reloaded without a restart: <paths>`), an invalid file → the app keeps its settings, anything else (an option that needs a restart, an app without reloads) → a restart as before. With a Vite config and template-inertia ≥0.1.2 it serves views from the Vite dev server with `DOKEBI_VITE_DEV=1` for **HMR** (no build needed; `.vue` and `views/` changes need no restart, D-0045). With @dokebi/pages installed, `src/apps/<app>/site/` changes need no restart either: the plugin reads the site again itself and keeps the last good version of a broken save (D-0198); a restart would refuse that save and stop the app. That holds while the app runs: an app that is not running (its site refused the start) starts again on a site save. With template-inertia 0.4.0 that Vite is one host process per dev session, shared by every cluster worker and kept across app restarts (`DOKEBI_VITE_DEV_URL`, `DOKEBI_VITE_DEV_KEY`, D-0045 addendum 3); with 0.1.2 to 0.3 it runs inside the app. With an older template-inertia: a watch build and restarts. The app gets `DOKEBI_DEV=1`, so a cluster app runs one worker (`DOKEBI_DEV_WORKERS`, D-0044, D-0045), and the project's `.env`, read again at every restart (§2.2). What dev shows (the app, Vite and its own `[dokebi dev]` lines) is also written to `.dokebi/run/dev.log` (the previous session and one past 16 MB move to `dev.log.1`) and dev writes its pid to `.dokebi/run/dev.pid`, so `dokebi logs [-f]` shows the dev session from another shell (D-0201); with a terminal the app gets `DOKEBI_LOG_COLOR=1`, so the logger keeps its colours through the pipe |
96
+ | `dokebi dev` | Development run (in the foreground). The app leads a process group of its own: what it started and left running when it stops (a restart, Ctrl+C) or crashes is ended (SIGTERM, SIGKILL after 2 s) and dev says so, so a restart never meets a port a helper of the old app holds. When `src/` or `.env` change it drains and starts again; when only `dokebi.yaml` changed it first asks the running app to read it again (D-0154): every changed option reloadable → applied without a restart (`dokebi.yaml reloaded without a restart: <paths>`), an invalid file → the app keeps its settings, anything else (an option that needs a restart, an app without reloads) → a restart as before. With a Vite config and template-inertia ≥0.1.2 it serves views from the Vite dev server with `DOKEBI_VITE_DEV=1` for **HMR** (no build needed; `.vue` and `views/` changes need no restart, D-0045). With template-inertia 0.4.0 that Vite is one host process per dev session, shared by every cluster worker and kept across app restarts (`DOKEBI_VITE_DEV_URL`, `DOKEBI_VITE_DEV_KEY`, D-0045 addendum 3); with 0.1.2 to 0.3 it runs inside the app. With an older template-inertia: a watch build and restarts. The app gets `DOKEBI_DEV=1`, so a cluster app runs one worker (`DOKEBI_DEV_WORKERS`, D-0044, D-0045), and the project's `.env`, read again at every restart (§2.2). What dev shows (the app, Vite and its own `[dokebi dev]` lines) is also written to `.dokebi/run/dev.log` (the previous session and one past 16 MB move to `dev.log.1`) and dev writes its pid to `.dokebi/run/dev.pid`, so `dokebi logs [-f]` shows the dev session from another shell (D-0201); with a terminal the app gets `DOKEBI_LOG_COLOR=1`, so the logger keeps its colours through the pipe |
97
97
  | `dokebi reload [--timeout-ms <ms>]` | Makes the background app (`dokebi start`) read dokebi.yaml again (D-0154): SIGHUP to the proven pid (through its log writer when this shell may not signal it), then the outcome the app wrote (`.dokebi/run/reload.json`, whatever its log level). `outcome: applied` (with `paths` and `revision`) or `unchanged`; `RELOAD_RESTART_REQUIRED` (`details.restartRequired`: nothing applied, restart to apply), `RELOAD_INVALID` (the app keeps its settings; `details` names the line or paths), `RELOAD_FAILED`, `RELOAD_UNSUPPORTED` (core older than 0.4.2, or `src/main.ts` gives the app no `configFile` or changed after the start: no signal is sent, it would end the app). Not running: exit 3. A running app also reads the file when it is saved (`options.reload.watch`) |
98
98
  | `dokebi start [--foreground] [--wait-ms <ms>] [--log-max-mb <MB>] [--log-files <n>]` · `stop [--timeout-ms <ms>] [--force]` · `status` · `logs [-n <lines>] [-f]` | Background run, stop, state, logs and log rotation (§2.1 below, D-0044, D-0053) |
99
99
 
package/catalog.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$comment": "Generated by scripts/catalog/build.ts from package.json dokebiCatalog fields and packages/cli/catalog-src (D-0065). Do not edit; run node scripts/catalog/build.ts.",
3
3
  "schemaVersion": 1,
4
- "cli": "0.4.37",
4
+ "cli": "0.4.39",
5
5
  "core": {
6
6
  "package": "@dokebi/core",
7
- "version": "0.4.6"
7
+ "version": "0.4.7"
8
8
  },
9
9
  "capabilities": {
10
10
  "admin.ui": {
@@ -343,10 +343,6 @@
343
343
  "summary": "load shedding with 503 and Retry-After when the event loop stalls or memory runs high, health routes served",
344
344
  "en": "overload load shedding under pressure event loop delay backpressure 503"
345
345
  },
346
- "web.pages": {
347
- "summary": "app definition files (app.yaml, pages, layouts and components in HTML with Tailwind classes) drawn on the server with module widgets, sent through Inertia one page at a time, read again in development",
348
- "en": "pages site builder editor html tailwind layout widget app definition no-code"
349
- },
350
346
  "web.routing": {
351
347
  "summary": "routes grouped under a prefix (mount)",
352
348
  "en": "router routes prefix"
@@ -368,7 +364,7 @@
368
364
  {
369
365
  "id": "dokebi-ai",
370
366
  "package": "@dokebi/ai",
371
- "version": "0.1.0",
367
+ "version": "0.1.1",
372
368
  "kind": "plugin",
373
369
  "summary": "One API for Claude, ChatGPT and Gemini over their official SDKs: generate, stream, tool calls and a tool loop, structured output, image input, embeddings and token usage, with named connections and coded errors",
374
370
  "description": "One API for Claude (Anthropic), ChatGPT (OpenAI) and Gemini (Google) over their official SDKs: named connections in dokebi.yaml, text generation, streaming, tool calls and a tool loop, structured output, image input, embeddings, token usage, and coded errors.",
@@ -446,7 +442,7 @@
446
442
  {
447
443
  "id": "dokebi-app",
448
444
  "package": "@dokebi/app",
449
- "version": "0.4.6",
445
+ "version": "0.4.7",
450
446
  "kind": "plugin",
451
447
  "summary": "Several apps chosen by request domain (src/apps/<app>) with a template each; installs web, controller and template-ejs with it",
452
448
  "description": "Multiple apps per project for Dokebi: pick the app and template by request domain, with EJS and Inertia skeletons.",
@@ -579,7 +575,7 @@
579
575
  {
580
576
  "id": "dokebi-auth",
581
577
  "package": "@dokebi/auth",
582
- "version": "0.4.2",
578
+ "version": "0.4.3",
583
579
  "kind": "plugin",
584
580
  "summary": "Login on your own user table: sessions, remember-me, API tokens, route protection, authorize hook, password hashing, login throttling, realms; optional Google/Apple social login",
585
581
  "description": "Login for @dokebi/web on your own user table through an extension class: sessions, remember-me, API tokens (personal, access/refresh), route protection, authorization hook, password hashing, login throttling, realms.",
@@ -684,7 +680,7 @@
684
680
  {
685
681
  "id": "dokebi-bulk-send",
686
682
  "package": "@dokebi/bulk-send",
687
- "version": "0.1.1",
683
+ "version": "0.1.2",
688
684
  "kind": "plugin",
689
685
  "summary": "Bulk sends over @dokebi/outbox: a send row, recipient rows per person and channel fixed when it goes (excluded and failed with reasons), channels and audiences your app registers (mail through @dokebi/mail, an inbox of your own), scheduling and cancel, progress per channel, stop, and failed deliveries sent again",
690
686
  "description": "Bulk sends for Dokebi over @dokebi/outbox: recipient rows fixed when a send goes, channels and audiences your app registers, scheduling and cancel, progress per channel, stop, and failures sent again.",
@@ -819,7 +815,7 @@
819
815
  {
820
816
  "id": null,
821
817
  "package": "@dokebi/cli",
822
- "version": "0.4.37",
818
+ "version": "0.4.39",
823
819
  "kind": "cli",
824
820
  "summary": "Commands to create a project, browse the plugin catalog, run recipes, install plugins and verify (dokebi)",
825
821
  "description": "Project scaffolding, plugin catalog, recipes, install and verification CLI for Dokebi.",
@@ -891,7 +887,7 @@
891
887
  {
892
888
  "id": "dokebi-config",
893
889
  "package": "@dokebi/config",
894
- "version": "0.4.5",
890
+ "version": "0.4.6",
895
891
  "kind": "required",
896
892
  "summary": "Required part of the core that reads and validates dokebi.yaml into read-only settings per app (installed automatically)",
897
893
  "description": "Validated immutable YAML configuration for Dokebi applications.",
@@ -966,7 +962,7 @@
966
962
  {
967
963
  "id": null,
968
964
  "package": "@dokebi/core",
969
- "version": "0.4.6",
965
+ "version": "0.4.7",
970
966
  "kind": "core",
971
967
  "summary": "Application core: settings loading, plugin registration, lifecycle, logger and shared libraries (required)",
972
968
  "description": "Minimal composable Node.js application and plugin lifecycle framework.",
@@ -1330,7 +1326,7 @@
1330
1326
  {
1331
1327
  "id": "dokebi-event-bus",
1332
1328
  "package": "@dokebi/event-bus",
1333
- "version": "0.4.2",
1329
+ "version": "0.4.3",
1334
1330
  "kind": "plugin",
1335
1331
  "summary": "Named event buses (local or NATS, at most once)",
1336
1332
  "description": "Named event buses for Dokebi: in-process dispatch or NATS Core delivery between processes.",
@@ -1371,7 +1367,7 @@
1371
1367
  {
1372
1368
  "id": "dokebi-files",
1373
1369
  "package": "@dokebi/files",
1374
- "version": "0.1.2",
1370
+ "version": "0.1.3",
1375
1371
  "kind": "plugin",
1376
1372
  "summary": "A record of every stored file: uploads recorded without an owner, claimed by a feature in its transaction, removals whose bytes go after the commit through @dokebi/outbox, unowned files swept after a grace, read rules per owner type in front of downloads and thumbnails, lists by owner, kind and time",
1377
1373
  "description": "A record of every stored file for Dokebi: owners claimed in the caller's transaction, removals whose bytes are deleted after the commit (@dokebi/outbox), a sweep of unowned files after a grace, read rules per owner type, uploads, downloads and thumbnails behind them.",
@@ -1472,7 +1468,7 @@
1472
1468
  {
1473
1469
  "id": "dokebi-geoip",
1474
1470
  "package": "@dokebi/geoip",
1475
- "version": "0.1.0",
1471
+ "version": "0.1.1",
1476
1472
  "kind": "plugin",
1477
1473
  "summary": "Offline IP geolocation from operator-provided .mmdb files (MaxMind GeoLite2 or GeoIP2, DB-IP Lite): country, region, city, coordinates, time zone and ISP in memory, private and reserved ranges answered without a lookup, files reopened without a restart, a download command",
1478
1474
  "description": "Offline IP geolocation for Dokebi from operator-provided MaxMind DB (.mmdb) files (GeoLite2, GeoIP2, DB-IP Lite): country, region, city, location and ISP in memory, complete special-purpose address ranges, a bounded LRU cache, files reopened without a restart, and a download command.",
@@ -1567,7 +1563,7 @@
1567
1563
  {
1568
1564
  "id": "dokebi-i18n",
1569
1565
  "package": "@dokebi/i18n",
1570
- "version": "0.2.3",
1566
+ "version": "0.2.4",
1571
1567
  "kind": "plugin",
1572
1568
  "summary": "Compiled translations, locale negotiation, cardinal plurals and named number/date formats",
1573
1569
  "description": "Compiled translation catalogs, locale negotiation, cardinal plurals and named Intl formats.",
@@ -1623,7 +1619,7 @@
1623
1619
  {
1624
1620
  "id": "dokebi-image",
1625
1621
  "package": "@dokebi/image",
1626
- "version": "0.1.1",
1622
+ "version": "0.1.2",
1627
1623
  "kind": "plugin",
1628
1624
  "summary": "Server-side WebP thumbnails of stored png, jpeg, gif, webp and avif images, made once and deleted with their source",
1629
1625
  "description": "Bounded server-side WebP thumbnails of stored images, made once and deleted with their source.",
@@ -1691,7 +1687,7 @@
1691
1687
  {
1692
1688
  "id": "dokebi-job",
1693
1689
  "package": "@dokebi/job",
1694
- "version": "0.4.4",
1690
+ "version": "0.4.5",
1695
1691
  "kind": "plugin",
1696
1692
  "summary": "NATS JetStream job queue (at least once, retries, DLQ)",
1697
1693
  "description": "Bounded durable jobs over the Dokebi NATS provider: retries, delayed redelivery and a dead-letter stream.",
@@ -1818,7 +1814,7 @@
1818
1814
  {
1819
1815
  "id": "dokebi-logger",
1820
1816
  "package": "@dokebi/logger",
1821
- "version": "0.1.1",
1817
+ "version": "0.1.2",
1822
1818
  "kind": "plugin",
1823
1819
  "summary": "The app logger on pino: JSON to stdout, rotating files, pretty development output and network targets (NDJSON batches to Dokebi Studio, OTLP/HTTP JSON) at once, written in worker threads with bounded buffers, secrets redacted, levels per plugin, flushed on shutdown",
1824
1820
  "description": "Production logging for Dokebi apps on pino: stdout, rotating files, pretty output and HTTP/OTLP log shipping at once, written off the event loop, with redaction, per-plugin levels and flush on shutdown.",
@@ -1878,7 +1874,7 @@
1878
1874
  {
1879
1875
  "id": "dokebi-mail",
1880
1876
  "package": "@dokebi/mail",
1881
- "version": "0.4.4",
1877
+ "version": "0.4.5",
1882
1878
  "kind": "plugin",
1883
1879
  "summary": "Mail: EJS templates per locale, SMTP with required STARTTLS (nodemailer) and Amazon SES v2, queued sending through @dokebi/job with sealed links and tokens, a development inbox and test outbox",
1884
1880
  "description": "Mail for Dokebi apps: EJS templates per locale, SMTP (nodemailer, STARTTLS required) and Amazon SES v2, queued sending through @dokebi/job with sealed data, deterministic Message-IDs, a development inbox and test helpers.",
@@ -1960,7 +1956,7 @@
1960
1956
  {
1961
1957
  "id": "dokebi-mcp",
1962
1958
  "package": "@dokebi/mcp",
1963
- "version": "0.1.1",
1959
+ "version": "0.1.3",
1964
1960
  "kind": "plugin",
1965
1961
  "summary": "MCP server on @dokebi/oauth: stateless Streamable HTTP at /mcp, tool classes with checked input schemas and scopes, a forced result envelope with paging, per-grant limits and coded tool errors",
1966
1962
  "description": "MCP server for @dokebi/web on @dokebi/oauth: stateless Streamable HTTP, tool classes with checked schemas, a forced result envelope, per-grant limits and coded tool errors.",
@@ -2080,7 +2076,7 @@
2080
2076
  {
2081
2077
  "id": "dokebi-migrate",
2082
2078
  "package": "@dokebi/migrate",
2083
- "version": "0.4.5",
2079
+ "version": "0.4.7",
2084
2080
  "kind": "plugin",
2085
2081
  "summary": "Migration and seed runner for dokebi-db connections (dokebi-migrate up in the deploy step)",
2086
2082
  "description": "Migrations and seeds for dokebi-db connections: history and lock for PostgreSQL, MySQL, MariaDB and MongoDB, run from the deployment.",
@@ -2117,7 +2113,6 @@
2117
2113
  "optional": [],
2118
2114
  "optionKeys": [
2119
2115
  "connections",
2120
- "directories",
2121
2116
  "directory",
2122
2117
  "lockRetries",
2123
2118
  "lockRetryDelayMs",
@@ -2138,7 +2133,7 @@
2138
2133
  {
2139
2134
  "id": "dokebi-module",
2140
2135
  "package": "@dokebi/module",
2141
- "version": "0.4.2",
2136
+ "version": "0.4.4",
2142
2137
  "kind": "plugin",
2143
2138
  "summary": "Modules that hold one feature each (src/shared/modules/<module>); an app attaches them under a prefix",
2144
2139
  "description": "Feature modules for Dokebi apps: controllers, models, views and routes in one folder mounted under a prefix.",
@@ -2174,7 +2169,7 @@
2174
2169
  {
2175
2170
  "id": "dokebi-nats",
2176
2171
  "package": "@dokebi/nats",
2177
- "version": "0.4.1",
2172
+ "version": "0.4.2",
2178
2173
  "kind": "plugin",
2179
2174
  "summary": "Named NATS connections (Core and JetStream publishing, durable consumers)",
2180
2175
  "description": "Named NATS connections and bounded JetStream publication for Dokebi.",
@@ -2218,7 +2213,7 @@
2218
2213
  {
2219
2214
  "id": "dokebi-oauth",
2220
2215
  "package": "@dokebi/oauth",
2221
- "version": "0.1.1",
2216
+ "version": "0.1.2",
2222
2217
  "kind": "plugin",
2223
2218
  "summary": "OAuth 2.1 authorization server on @dokebi/auth tokens: authorization code with PKCE S256, refresh rotation and reuse detection, revocation, client ID metadata documents, protected resource metadata and protected routes",
2224
2219
  "description": "OAuth 2.1 authorization server for @dokebi/web on @dokebi/auth tokens: authorization code with PKCE, refresh rotation, revocation, client ID metadata documents, protected resource metadata and route protection.",
@@ -2318,7 +2313,7 @@
2318
2313
  {
2319
2314
  "id": "dokebi-outbox",
2320
2315
  "package": "@dokebi/outbox",
2321
- "version": "0.1.0",
2316
+ "version": "0.1.1",
2322
2317
  "kind": "plugin",
2323
2318
  "summary": "Durable background work in your database: enqueue in the business transaction, fair batch claims across owners, leases, backoff, per-destination breakers that wait out outages, dead items with bulk resend, retention, arrival and drain numbers",
2324
2319
  "description": "Durable database-backed background work for Dokebi: enqueue in the business transaction, fair batch claims across owners, leases, retries with backoff, per-destination breakers, dead items with bulk resend, retention and arrival/drain numbers.",
@@ -2385,55 +2380,10 @@
2385
2380
  },
2386
2381
  "install": "npx dokebi add @dokebi/outbox"
2387
2382
  },
2388
- {
2389
- "id": "dokebi-pages",
2390
- "package": "@dokebi/pages",
2391
- "version": "0.1.0",
2392
- "kind": "plugin",
2393
- "summary": "App definition files (app.yaml, pages, layouts and components in HTML with Tailwind classes, theme.css) drawn on the server with module widgets, sent to an Inertia app as one page at a time (the layout once) or as HTML, read again in development",
2394
- "description": "App definition files for @dokebi/app apps: app.yaml, pages, layouts and components in HTML with Tailwind classes, drawn on the server with module widgets, sent through Inertia or as HTML, read again when they change.",
2395
- "keywords": [
2396
- "dokebi",
2397
- "dokebi-plugin",
2398
- "web",
2399
- "pages",
2400
- "site",
2401
- "tailwind",
2402
- "builder"
2403
- ],
2404
- "maturity": "experimental",
2405
- "core": "^0.4.2",
2406
- "provides": [
2407
- "web.pages"
2408
- ],
2409
- "variants": [],
2410
- "doesNot": [
2411
- "No scripts in pages: script, style, iframe, on… attributes and javascript: addresses are refused",
2412
- "No editor: the files are written by people, the Dokebi Solution editor or AI tools"
2413
- ],
2414
- "recipes": [],
2415
- "requires": [],
2416
- "optional": [
2417
- {
2418
- "id": "dokebi-module",
2419
- "range": "^0.4.2"
2420
- }
2421
- ],
2422
- "optionKeys": [
2423
- "maxSites",
2424
- "watch",
2425
- "watchPollMs"
2426
- ],
2427
- "docs": {
2428
- "ai": "AI.md",
2429
- "readme": "README.md"
2430
- },
2431
- "install": "npx dokebi add @dokebi/pages"
2432
- },
2433
2383
  {
2434
2384
  "id": "dokebi-payment",
2435
2385
  "package": "@dokebi/payment",
2436
- "version": "0.2.0",
2386
+ "version": "0.2.1",
2437
2387
  "kind": "plugin",
2438
2388
  "summary": "On-chain USDT (TRC20) custody: a fixed deposit address per owner from an account xpub, deposits confirmed into the app's ledger in one transaction, withdrawals from a hot wallet with energy and retries, sweeps, daily reconciliation, alerts and a kill switch; keys in encrypted files, never on a command line",
2439
2389
  "description": "On-chain USDT (TRC20) custody for Dokebi: deposit addresses derived from an account xpub, deposits watched and confirmed into the app's ledger in one transaction, withdrawals sent from the hot wallet, sweeps, daily reconciliation, alerts and a kill switch, over @dokebi/db and @dokebi/outbox.",
@@ -2504,7 +2454,7 @@
2504
2454
  {
2505
2455
  "id": null,
2506
2456
  "package": "@dokebi/payment-tron",
2507
- "version": "0.1.1",
2457
+ "version": "0.1.2",
2508
2458
  "kind": "library",
2509
2459
  "summary": "The TRON node driver of @dokebi/payment (TronGrid, Nile and mainnet): USDT deposits with their block and log index, balances, energy, transfers built by the node and decoded before signing, broadcast results sorted into refused and retryable",
2510
2460
  "description": "The TRON chain driver of @dokebi/payment: TronGrid HTTP (Nile, mainnet) for blocks, USDT deposits, balances, energy and transactions; every transaction the node builds is decoded and checked against the request before anything signs it.",
@@ -2604,7 +2554,7 @@
2604
2554
  {
2605
2555
  "id": "dokebi-pdf-writer",
2606
2556
  "package": "@dokebi/pdf-writer",
2607
- "version": "0.1.0",
2557
+ "version": "0.1.1",
2608
2558
  "kind": "plugin",
2609
2559
  "summary": "PDF files written from markdown or blocks (headings, paragraphs, lists, tables, code, quotes, stored JPEG/PNG images) with embedded Korean fonts and font fallback, in worker threads with bounded pages, bytes, time and memory, stored in dokebi-storage",
2610
2560
  "description": "PDF files written from markdown or blocks with embedded Korean fonts and stored images, in worker threads, stored in dokebi-storage.",
@@ -2676,7 +2626,7 @@
2676
2626
  {
2677
2627
  "id": "dokebi-permissions",
2678
2628
  "package": "@dokebi/permissions",
2679
- "version": "0.1.1",
2629
+ "version": "0.1.2",
2680
2630
  "kind": "plugin",
2681
2631
  "summary": "Roles, grades and scoped permissions: keys declared in code, grants saved in your database in the caller's transaction, can(actor, key, target) from memory over the holding tree (all, subtree, direct, own), list conditions as SQL, every worker refreshed by a revision; plugs into @dokebi/auth's authorize",
2682
2632
  "description": "Roles, grades and scoped permissions for Dokebi: permissions declared in code, grants saved in your database in the caller's transaction, checks from memory over the holding tree (all, subtree, direct, own), list conditions as SQL, every worker refreshed by a revision.",
@@ -2815,7 +2765,7 @@
2815
2765
  {
2816
2766
  "id": null,
2817
2767
  "package": "@dokebi/rich-text",
2818
- "version": "0.1.3",
2768
+ "version": "0.1.4",
2819
2769
  "kind": "library",
2820
2770
  "summary": "Editor documents (Tiptap or ProseMirror JSON) checked whole against a declared schema of nodes, marks, links and image sources, with coded 422 errors, then safe HTML, plain text and excerpts",
2821
2771
  "description": "Rich text documents for Dokebi: editor JSON (Tiptap, ProseMirror) checked whole against a declared schema with coded 422 errors, then safe HTML, plain text and excerpts.",
@@ -2851,7 +2801,7 @@
2851
2801
  {
2852
2802
  "id": "dokebi-rollups",
2853
2803
  "package": "@dokebi/rollups",
2854
- "version": "0.1.1",
2804
+ "version": "0.1.2",
2855
2805
  "kind": "plugin",
2856
2806
  "summary": "Report roll-ups by @dokebi/db AI.md 6.9: facts recorded as small rows in the caller's transaction (no hot row), folded in parallel by outbox lanes into UTC hour rows and day and month rows per whole-hour time zone (rebuilt from the hours when a zone is added), bounded reads with an as-of time, running totals and a report budget (429, 503)",
2857
2807
  "description": "Report roll-ups for Dokebi by @dokebi/db AI.md 6.9: facts recorded as small rows in the caller's transaction, folded by outbox lanes into UTC hour rows and day and month rows per time zone, bounded reads with an as-of time and a report budget.",
@@ -2945,7 +2895,7 @@
2945
2895
  {
2946
2896
  "id": "dokebi-runtime-settings",
2947
2897
  "package": "@dokebi/runtime-settings",
2948
- "version": "0.1.1",
2898
+ "version": "0.1.2",
2949
2899
  "kind": "plugin",
2950
2900
  "summary": "Settings operators change while the app runs: definitions in code (a group tree, text, number, numbers per choice, boolean, select, multiselect, json and file with rules, choices from your data), common and personal values saved in your database in the caller's transaction (the changes answered for the audit log), common values read from memory, every worker refreshed by a revision",
2951
2901
  "description": "Settings operators change while the app runs, for Dokebi: definitions in code (a group tree, nine types with rules, choices from your data), common and personal values in your database saved in the caller's transaction, common values read from memory, every worker refreshed by a revision.",
@@ -2993,7 +2943,7 @@
2993
2943
  {
2994
2944
  "id": "dokebi-scheduler",
2995
2945
  "package": "@dokebi/scheduler",
2996
- "version": "0.4.2",
2946
+ "version": "0.4.3",
2997
2947
  "kind": "plugin",
2998
2948
  "summary": "Submits fixed-interval and cron schedules as @dokebi/job jobs (one leader through Redis)",
2999
2949
  "description": "Interval and cron schedules (with time zones) for Dokebi that submit jobs, with one leader over Redis.",
@@ -3094,7 +3044,7 @@
3094
3044
  {
3095
3045
  "id": "dokebi-search",
3096
3046
  "package": "@dokebi/search",
3097
- "version": "0.1.1",
3047
+ "version": "0.1.2",
3098
3048
  "kind": "plugin",
3099
3049
  "summary": "Search in your lists that stays bounded on a growing table: a term table in display order written in the text's transaction, Korean word prefixes, the rarest word leads, capped requests and searches with a signed cursor; answers item ids",
3100
3050
  "description": "Search in an application's lists for Dokebi by @dokebi/db AI.md 6.10: a term table in display order written in the text's transaction, Korean word prefixes, the rarest word leads, bounded requests and searches with a signed cursor.",
@@ -3147,7 +3097,7 @@
3147
3097
  {
3148
3098
  "id": "dokebi-session",
3149
3099
  "package": "@dokebi/session",
3150
- "version": "0.4.6",
3100
+ "version": "0.4.7",
3151
3101
  "kind": "plugin",
3152
3102
  "summary": "Server-side sessions for @dokebi/web (signed cookie, memory or redis store, flash)",
3153
3103
  "description": "Server-side sessions for @dokebi/web: signed cookie, memory or Redis store, flash.",
@@ -3219,7 +3169,7 @@
3219
3169
  {
3220
3170
  "id": "dokebi-sse",
3221
3171
  "package": "@dokebi/sse",
3222
- "version": "0.4.4",
3172
+ "version": "0.4.5",
3223
3173
  "kind": "plugin",
3224
3174
  "summary": "Server-sent events (SSE) streams and rooms, delivery across workers, and a browser client",
3225
3175
  "description": "Server-sent events for @dokebi/web: authenticated streams, rooms, cross-worker fan-out over @dokebi/event-bus, and a browser client",
@@ -3331,7 +3281,7 @@
3331
3281
  {
3332
3282
  "id": "dokebi-storage",
3333
3283
  "package": "@dokebi/storage",
3334
- "version": "0.1.2",
3284
+ "version": "0.1.3",
3335
3285
  "kind": "plugin",
3336
3286
  "summary": "Local and S3 file storage with bounded multipart uploads and private downloads",
3337
3287
  "description": "Bounded streaming file storage with local and S3 drivers and optional multipart uploads.",
@@ -3432,7 +3382,7 @@
3432
3382
  {
3433
3383
  "id": "dokebi-template-inertia",
3434
3384
  "package": "@dokebi/template-inertia",
3435
- "version": "0.4.6",
3385
+ "version": "0.4.7",
3436
3386
  "kind": "plugin",
3437
3387
  "summary": "Inertia (v3) server adapter: Vue 3 views, Vite build files and optional server-side rendering (SSR)",
3438
3388
  "description": "Inertia v3 server adapter for Dokebi: page JSON, Vite manifest assets and optional server-side rendering.",
@@ -3526,7 +3476,7 @@
3526
3476
  {
3527
3477
  "id": "dokebi-tree",
3528
3478
  "package": "@dokebi/tree",
3529
- "version": "0.1.1",
3479
+ "version": "0.1.2",
3530
3480
  "kind": "plugin",
3531
3481
  "summary": "Trees in your own tables (categories, a members' holding tree): materialized paths kept on place and move, a subtree moved in one UPDATE in the caller's transaction and never under itself, sibling order with the parent locked, ancestors, subtree SQL conditions, and keyset pages in tree order that keep their parent context",
3532
3482
  "description": "Trees in your own tables for Dokebi: materialized paths, places and subtree moves in the caller's transaction (never under itself), sibling order, ancestors, subtree conditions, and pages in tree order that keep their parent context.",
@@ -3582,7 +3532,7 @@
3582
3532
  {
3583
3533
  "id": "dokebi-two-factor",
3584
3534
  "package": "@dokebi/two-factor",
3585
- "version": "0.1.2",
3535
+ "version": "0.1.3",
3586
3536
  "kind": "plugin",
3587
3537
  "summary": "Two-factor sign-in for @dokebi/auth: TOTP codes of authenticator apps (secrets encrypted at rest, a code good once), ten recovery codes kept as HMACs, a second step after the password, remembered devices, lockout after wrong codes, and a code confirmation for the re-authentication page",
3588
3538
  "description": "Two-factor sign-in for @dokebi/auth: TOTP codes of authenticator apps (secrets encrypted at rest), recovery codes stored as HMACs, a second step after the password, remembered devices, lockout, and a code confirmation for re-authentication.",
@@ -3646,7 +3596,7 @@
3646
3596
  {
3647
3597
  "id": "dokebi-web",
3648
3598
  "package": "@dokebi/web",
3649
- "version": "0.4.6",
3599
+ "version": "0.4.7",
3650
3600
  "kind": "plugin",
3651
3601
  "summary": "Fastify 5 HTTP server (503 before ready, health paths, drain, zero-downtime cluster replacement, security headers and overload protection on by default)",
3652
3602
  "description": "Fastify 5 HTTP server owned by a Dokebi app: 503 before ready, health routes, drain and cluster handover.",
@@ -3725,7 +3675,7 @@
3725
3675
  {
3726
3676
  "id": "dokebi-websocket",
3727
3677
  "package": "@dokebi/websocket",
3728
- "version": "0.4.2",
3678
+ "version": "0.4.3",
3729
3679
  "kind": "plugin",
3730
3680
  "summary": "WebSocket routes, rooms and broadcast on top of dokebi-web (at most once)",
3731
3681
  "description": "WebSocket routes on @dokebi/web with rooms and broadcast across servers through @dokebi/websocket-hub.",
@@ -3785,7 +3735,7 @@
3785
3735
  {
3786
3736
  "id": "dokebi-websocket-hub",
3787
3737
  "package": "@dokebi/websocket-hub",
3788
- "version": "0.4.2",
3738
+ "version": "0.4.3",
3789
3739
  "kind": "plugin",
3790
3740
  "summary": "Hub of WebSocket clients, rooms, broadcast and kick (usually used through @dokebi/websocket)",
3791
3741
  "description": "WebSocket hub for Dokebi: connection roster, rooms, broadcast and kick across workers and servers.",
@@ -1,24 +1,3 @@
1
- /** Files the Vite dev server owns: a change reaches the browser by HMR, not by a restart. */
2
- export declare const VIEW_FILE: RegExp;
3
- /**
4
- * Site folders of @dokebi/pages (D-0198): `apps/<app>/site/…` under src. The plugin reads them again
5
- * itself and keeps the last good version when a save has problems; a restart would lose that (the
6
- * start refuses a site with problems, so one broken save stopped the app).
7
- */
8
- export declare const SITE_FILE: RegExp;
9
- /**
10
- * Whether a change of `name` (relative to src) reaches the app without a restart: a view through
11
- * the Vite dev server (`hot`) or a watch build (`builds`), a site file through @dokebi/pages
12
- * (`pages`: the package is installed) — only while the app runs (`running`, default true): an app
13
- * that is not running, because a site with problems refused its start, must start again when the
14
- * site is saved.
15
- */
16
- export declare function reachesWithoutRestart(name: string, has: {
17
- readonly hot: boolean;
18
- readonly builds: boolean;
19
- readonly pages: boolean;
20
- readonly running?: boolean;
21
- }): boolean;
22
1
  /**
23
2
  * The recorded state of the watched paths. `changed(path)` answers whether a reported path really
24
3
  * changed since it was recorded (or since its last change) and records its new state.
package/dist/dev-watch.js CHANGED
@@ -15,27 +15,6 @@
15
15
  import { readdirSync, statSync } from 'node:fs';
16
16
  import { basename, join, sep } from 'node:path';
17
17
  import { debug, isMissing, reportError } from './diagnostics.js';
18
- /** Files the Vite dev server owns: a change reaches the browser by HMR, not by a restart. */
19
- export const VIEW_FILE = /(^|[\\/])views[\\/].*\.(js|mjs|ts)$|\.(vue|css|scss|sass|less)$/;
20
- /**
21
- * Site folders of @dokebi/pages (D-0198): `apps/<app>/site/…` under src. The plugin reads them again
22
- * itself and keeps the last good version when a save has problems; a restart would lose that (the
23
- * start refuses a site with problems, so one broken save stopped the app).
24
- */
25
- export const SITE_FILE = /^apps[\\/][^\\/]+[\\/]site(?:[\\/]|$)/;
26
- /**
27
- * Whether a change of `name` (relative to src) reaches the app without a restart: a view through
28
- * the Vite dev server (`hot`) or a watch build (`builds`), a site file through @dokebi/pages
29
- * (`pages`: the package is installed) — only while the app runs (`running`, default true): an app
30
- * that is not running, because a site with problems refused its start, must start again when the
31
- * site is saved.
32
- */
33
- export function reachesWithoutRestart(name, has) {
34
- // A site file (its theme.css too) is decided by the site alone, never as a Vite style.
35
- if (has.pages && SITE_FILE.test(name))
36
- return has.running !== false;
37
- return ((has.hot && VIEW_FILE.test(name)) || (has.builds && /\.(vue|css|scss|sass|less)$/.test(name)));
38
- }
39
18
  /** Entries recorded at most; past it, unknown paths count as changed. */
40
19
  const DEFAULT_LIMIT = 100_000;
41
20
  /** A folder is its identity (what is in it is compared entry by entry); a file also its content. */
package/dist/output.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const CLI_VERSION = "0.4.37";
1
+ export declare const CLI_VERSION = "0.4.39";
2
2
  export declare function envelope(command: string, result: unknown, ok?: boolean): object;
3
3
  export declare function failure(command: string, error: unknown, mutationStarted: boolean): object;
package/dist/output.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CliError } from './errors.js';
2
- export const CLI_VERSION = '0.4.37';
2
+ export const CLI_VERSION = '0.4.39';
3
3
  export function envelope(command, result, ok = true) {
4
4
  return { schemaVersion: 1, cliVersion: CLI_VERSION, command, ok, result, error: null };
5
5
  }
package/dist/server.js CHANGED
@@ -37,7 +37,7 @@ import { promisify } from 'node:util';
37
37
  import { appUrls, readAppHosts } from './app-urls.js';
38
38
  import { CONFIG_FILE, configTarget, parseProjectConfig, readProjectSettings, } from './configuration.js';
39
39
  import { DevLog, devRunning, writeDevPid } from './dev-log.js';
40
- import { reachesWithoutRestart, WatchedState } from './dev-watch.js';
40
+ import { WatchedState } from './dev-watch.js';
41
41
  import { debug, debugEnabled, describeError, isMissing, reportError } from './diagnostics.js';
42
42
  import { appEnvironment, envFileWarnings, readEnvFile } from './env-file.js';
43
43
  import { CliError } from './errors.js';
@@ -1516,6 +1516,8 @@ function inertiaDevServer(root) {
1516
1516
  const [major, minor, patch] = version;
1517
1517
  return major > 0 || minor > 1 || (minor === 1 && patch >= 2);
1518
1518
  }
1519
+ /** Files the Vite dev server owns: a change reaches the browser by HMR, not by a restart. */
1520
+ const VIEW_FILE = /(^|[\\/])views[\\/].*\.(js|mjs|ts)$|\.(vue|css|scss|sass|less)$/;
1519
1521
  let devReloadId = 0;
1520
1522
  /**
1521
1523
  * D-0154: asks the app `dokebi dev` runs to read dokebi.yaml again (through the IPC channel of
@@ -1834,17 +1836,9 @@ export async function dev(root, print) {
1834
1836
  // dev-watch.ts: macOS also reports writes made before the watch started). An event without a
1835
1837
  // name cannot be checked and restarts.
1836
1838
  const source = join(root, 'src');
1837
- // Styles and components reach the app through Vite (HMR, or the watch builds that restart it);
1838
- // site files of @dokebi/pages through the plugin, which reads them again itself (D-0198).
1839
- const reaches = {
1840
- hot,
1841
- builds: helpers.length > 0,
1842
- pages: installedVersion(root, '@dokebi/pages') !== undefined,
1843
- };
1844
- // A site file reaches only a running app: one that is not running (a site with problems refuses
1845
- // the start, PAGES_INVALID) starts again on the save that fixes it.
1846
- const appRunning = () => app !== undefined && app.exitCode === null && app.signalCode === null;
1847
- const viewFile = (name) => reachesWithoutRestart(name, { ...reaches, running: appRunning() });
1839
+ // Styles and components reach the app through Vite (HMR, or the watch builds that restart it).
1840
+ const viewFile = (name) => (hot && VIEW_FILE.test(name)) ||
1841
+ (helpers.length > 0 && /\.(vue|css|scss|sass|less)$/.test(name));
1848
1842
  const watched = new WatchedState({ skip: (path) => viewFile(relative(source, path)) });
1849
1843
  const watchers = [
1850
1844
  watch(source, { recursive: true }, (_event, name) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dokebi/cli",
3
- "version": "0.4.37",
3
+ "version": "0.4.39",
4
4
  "description": "Project scaffolding, plugin catalog, recipes, install and verification CLI for Dokebi.",
5
5
  "keywords": [
6
6
  "dokebi",