@dokebi/cli 0.4.88 → 0.4.90
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/catalog.json +5 -5
- package/dist/capability-guide.js +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.js +1 -1
- package/package.json +1 -1
package/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
"cli": "0.4.90",
|
|
5
5
|
"core": {
|
|
6
6
|
"package": "@dokebi/core",
|
|
7
7
|
"version": "0.4.8"
|
|
@@ -830,7 +830,7 @@
|
|
|
830
830
|
{
|
|
831
831
|
"id": null,
|
|
832
832
|
"package": "@dokebi/cli",
|
|
833
|
-
"version": "0.4.
|
|
833
|
+
"version": "0.4.90",
|
|
834
834
|
"kind": "cli",
|
|
835
835
|
"summary": "Commands to create a project, browse the plugin catalog, run recipes, install plugins and verify (dokebi)",
|
|
836
836
|
"description": "Project scaffolding, plugin catalog, recipes, install and verification CLI for Dokebi.",
|
|
@@ -1483,7 +1483,7 @@
|
|
|
1483
1483
|
{
|
|
1484
1484
|
"id": "dokebi-geoip",
|
|
1485
1485
|
"package": "@dokebi/geoip",
|
|
1486
|
-
"version": "0.1.
|
|
1486
|
+
"version": "0.1.2",
|
|
1487
1487
|
"kind": "plugin",
|
|
1488
1488
|
"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",
|
|
1489
1489
|
"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.",
|
|
@@ -3457,7 +3457,7 @@
|
|
|
3457
3457
|
{
|
|
3458
3458
|
"id": "dokebi-template-inertia",
|
|
3459
3459
|
"package": "@dokebi/template-inertia",
|
|
3460
|
-
"version": "0.4.
|
|
3460
|
+
"version": "0.4.13",
|
|
3461
3461
|
"kind": "plugin",
|
|
3462
3462
|
"summary": "Inertia (v3) server adapter: Vue 3 views, Vite build files and optional server-side rendering (SSR)",
|
|
3463
3463
|
"description": "Inertia v3 server adapter for Dokebi: page JSON, Vite manifest assets and optional server-side rendering.",
|
|
@@ -3677,7 +3677,7 @@
|
|
|
3677
3677
|
{
|
|
3678
3678
|
"id": "dokebi-web",
|
|
3679
3679
|
"package": "@dokebi/web",
|
|
3680
|
-
"version": "0.4.
|
|
3680
|
+
"version": "0.4.20",
|
|
3681
3681
|
"kind": "plugin",
|
|
3682
3682
|
"summary": "Fastify 5 HTTP server (503 before ready, health paths, drain, zero-downtime cluster replacement, security headers and overload protection on by default)",
|
|
3683
3683
|
"description": "Fastify 5 HTTP server owned by a Dokebi app: 503 before ready, health routes, drain and cluster handover.",
|
package/dist/capability-guide.js
CHANGED
|
@@ -53,7 +53,7 @@ export const INTEGRATION_RULES = [
|
|
|
53
53
|
'- @dokebi/mcp pictures (D-0143): a tool that lets the model see a picture returns it in envelope({ images: [{ data, mimeType, alt, source }] }) with the bytes (a Buffer) and image/png, image/jpeg, image/webp or image/gif; the route sends MCP image blocks after the text block and the envelope keeps only placeholders. Never put base64 into content or fields: the model reads it as text and it counts against resultMaxChars. Send a reduced copy, not the original: an image.thumbnail({ key, maxSide }) of @dokebi/image (image/webp) read with open(thumb).body, checked against context.images.imageMaxBytes. The bytes decide the type (IMAGE_TYPE_MISMATCH, IMAGE_TYPE_REFUSED); maxImages, imageMaxBytes and imageTotalMaxBytes are dokebi.yaml options of dokebi-mcp (TOO_MANY_IMAGES, IMAGE_TOO_LARGE, IMAGE_TOTAL_TOO_LARGE); read the Pictures part of `node_modules/@dokebi/mcp/AI.md`.',
|
|
54
54
|
'- @dokebi/pdf (D-0144): the text of a stored PDF comes from pdf.text({ key, from, to, maxChars }) as page parts { page, text, chars }, and a first-page WebP thumbnail from pdf.thumbnail({ key, maxSide }); do not parse PDF files yourself with pdfjs-dist, pdf-parse or a shell tool, and never run that work on the request thread. Check your own record of the file first. A scan answers hasText false (there is no OCR); say so instead of inventing text. Page and character limits truncate (truncated, pagesRead, nextPage); bytes, memory and time refuse with PDF_TOO_LARGE or PDF_TIMEOUT; NOT_PDF, PDF_ENCRYPTED and PDF_DAMAGED are refusals to show, not errors to retry; BUSY and PDF_TIMEOUT are retryable 503s. An MCP tool that reads a PDF returns one envelope content item per page part with outside: true and passes maxChars from context.resultMaxChars. Every limit is a dokebi.yaml option of dokebi-pdf; read `node_modules/@dokebi/pdf/AI.md`.',
|
|
55
55
|
'- @dokebi/pdf-writer (D-0157): write PDF files (exports, invoices, reports) with pdfWriter.write({ markdown | blocks, filename, title?, images? }) in a background handler (@dokebi/outbox or @dokebi/job), never on the request thread; it stores the PDF in @dokebi/storage and returns { key, pages, size, skippedImages, missingGlyphs }. Do not write PDF bytes yourself or install another PDF library: its bundled Noto Sans KR covers Korean, Hanja, kana and Latin, and fallbackFonts adds more. Markdown HTML is printed as text and only http(s) and mailto links become links. Images are drawn only through the images map { reference: storage key } you pass after your own access check (JPEG and PNG; WebP and others come back in skippedImages). PDF_TOO_LARGE names the limit; BUSY and PDF_TIMEOUT are retryable 503s. Read `node_modules/@dokebi/pdf-writer/AI.md`.',
|
|
56
|
-
'- @dokebi/geoip (D-0158): the location of an address comes from geoip.locate(request.ip, { precision }) as { country, region, city? } or null, and every field from geoip.lookup(request.ip) (unknown with reason invalid, private, no_database or not_found); never call an IP geolocation web API, parse .mmdb files yourself or read X-Forwarded-For (request.ip follows the trustProxy rules of dokebi-web). The location is personal data: keep the location at the precision the product needs, never the address. The operator provides the database (MaxMind GeoLite2 by default, or DB-IP Lite) with npx dokebi-geoip download from URLs in DOKEBI_GEOIP_CITY_URL and DOKEBI_GEOIP_ASN_URL, never committed; show the attribution its license requires. Without a database the app starts and locate answers null. Read `node_modules/@dokebi/geoip/AI.md`.',
|
|
56
|
+
'- @dokebi/geoip (D-0158): the location of an address comes from geoip.locate(request.ip, { precision }) as { country, region, city? } or null, and every field from geoip.lookup(request.ip) (unknown with reason invalid, private, reserved, no_database or not_found; private is a private network, reserved a documentation, test, shared or multicast block); never call an IP geolocation web API, parse .mmdb files yourself or read X-Forwarded-For (request.ip follows the trustProxy rules of dokebi-web). The location is personal data: keep the location at the precision the product needs, never the address. The operator provides the database (MaxMind GeoLite2 by default, or DB-IP Lite) with npx dokebi-geoip download from URLs in DOKEBI_GEOIP_CITY_URL and DOKEBI_GEOIP_ASN_URL, never committed; show the attribution its license requires. Without a database the app starts and locate answers null. Read `node_modules/@dokebi/geoip/AI.md`.',
|
|
57
57
|
'- Browser files of an app (R1): style sheets, images, fonts and browser scripts of an EJS app go in src/apps/<app>/public/ and are linked as /assets/<path>; npx dokebi add @dokebi/static, and @dokebi/app serves that folder on the app hosts (ETag, 304, Range). Never keep them in views/ and never serve them with a route that reads the file yourself (dokebi check warns asset-in-views and asset-route); a font or image a package ships (@dokebi/font-noto-kr) is copied into public/ with its licence file. An Inertia app imports them through Vite.',
|
|
58
58
|
'- Files from a folder (D-0147): an operator folder served as it is (app update feeds such as appcast.xml, latest.json or latest-mac.yml and the installers they name) is a mount of @dokebi/static (npx dokebi add @dokebi/static; dokebi-static mounts.<name>: { prefix, root, cache: [{ match, cacheControl }] }, or static.mount(name, mount) in a setup), not a route you write with fs and createReadStream. It answers GET and HEAD through @fastify/static with ETag, Last-Modified, 304, 412, one Range (206, 416, If-Range), Cache-Control by pattern (immutable for versioned files, no-cache for feeds), never a listing and never a path outside the root, and never the in-progress names of an upload (hide: **.part, **.tmp, **.uploading): upload under such a name, then rename into place. Its route id is static.<name>. Private or per-user files stay in @dokebi/storage behind your own access check (sendStored).',
|
|
59
59
|
'- Security headers and overload protection are built into @dokebi/web and on by default (D-0149, D-0150): every answer gets X-Content-Type-Options: nosniff, HTTPS answers Strict-Transport-Security, HTML pages a Content-Security-Policy (default-src self, frame-ancestors self, inline scripts and styles allowed), X-Frame-Options and Referrer-Policy; while the event loop stalls (dokebi-web overload.maxEventLoopDelayMs, 200 ms) requests get 503 OVERLOADED with Retry-After and health routes are served. Do not add @fastify/helmet, @fastify/under-pressure or headers of your own for this. For a strict policy set dokebi-web securityHeaders.contentSecurityPolicy.nonce: true (a nonce per page and no unsafe-inline; the framework pages carry it, an EJS page puts data.cspNonce in the nonce attribute of its own scripts, other page code takes web.cspNonce(request)). To load from a CDN or embed a page, change dokebi-web securityHeaders.contentSecurityPolicy.directives in dokebi.yaml (npx dokebi config set) or set config: { securityHeaders: { … } } on that route; give a metrics scrape route config: { overload: false } with // dokebi-check: allow overload-off <reason> on that line (npx dokebi check reports overload-off as an error, and verify fails, without it), and never an API route. The same routes also answer while a required dependency (a database, Redis) is down or the app drains with config: { readiness: false } and // dokebi-check: allow readiness-off <reason> on the line before it; without it they are refused with 503 NOT_READY like every other route. Never turn securityHeaders off to make a page work: read which directive the browser console names and change that one.',
|
package/dist/output.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.4.
|
|
1
|
+
export declare const CLI_VERSION = "0.4.90";
|
|
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