@gusto/baerly-storage 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -124
- package/dist/API.md +161 -512
- package/dist/CHANGELOG.md +1137 -378
- package/dist/RECIPES.md +398 -80
- package/dist/THIRD-PARTY-LICENSES.txt +5 -26
- package/dist/{app-config-DyiFK3_k.d.ts → app-config-C6qW7m8S.d.ts} +119 -111
- package/dist/app-config.d.ts +31 -1
- package/dist/app-config.js +1 -2
- package/dist/app-config.js.map +1 -1
- package/dist/auth.d.ts +33 -28
- package/dist/auth.js +549 -985
- package/dist/auth.js.map +1 -1
- package/dist/baerly.js +130 -138
- package/dist/baerly.js.map +1 -1
- package/dist/baerly.spec.json +97 -22
- package/dist/capacity-warning-header-BlVopyiI.js +16 -0
- package/dist/capacity-warning-header-BlVopyiI.js.map +1 -0
- package/dist/{client-ypCm3zjt.d.ts → client-CHQTXpef.d.ts} +121 -36
- package/dist/client-react.d.ts +67 -20
- package/dist/client-react.js +240 -54
- package/dist/client-react.js.map +1 -1
- package/dist/client.d.ts +5 -4
- package/dist/client.js +51 -16
- package/dist/client.js.map +1 -1
- package/dist/{cloudflare-wrVYf4bb.js → cloudflare-CKHYXccw.js} +61 -82
- package/dist/cloudflare-CKHYXccw.js.map +1 -0
- package/dist/cloudflare.d.ts +106 -71
- package/dist/cloudflare.js +334 -271
- package/dist/cloudflare.js.map +1 -1
- package/dist/code-resolution-CL_7L0wS.js +22 -0
- package/dist/code-resolution-CL_7L0wS.js.map +1 -0
- package/dist/collection-api-DbyhLAY8.d.ts +1001 -0
- package/dist/config-DEzInG6M.js +4035 -0
- package/dist/config-DEzInG6M.js.map +1 -0
- package/dist/constants-D3GSH3tc.js +469 -0
- package/dist/constants-D3GSH3tc.js.map +1 -0
- package/dist/{context-DRZ3tZ5l.js → context-rlpSnHFA.js} +17 -17
- package/dist/context-rlpSnHFA.js.map +1 -0
- package/dist/cost-B52llVDx.js +330 -0
- package/dist/cost-B52llVDx.js.map +1 -0
- package/dist/{current-json-C6nhPOm1.js → current-json-CC6lE4Aj.js} +115 -32
- package/dist/current-json-CC6lE4Aj.js.map +1 -0
- package/dist/db-plFUNTSF.d.ts +130 -0
- package/dist/db-read-seams-BSs0m1z1.js +3261 -0
- package/dist/db-read-seams-BSs0m1z1.js.map +1 -0
- package/dist/{deploy-Di_Q01qx.js → deploy-Obj4nE-Z.js} +10 -14
- package/dist/deploy-Obj4nE-Z.js.map +1 -0
- package/dist/{dev-banner-CWHIk8tH.d.ts → dev-banner-B5AUHmu1.d.ts} +1 -4
- package/dist/dev-landing-BI5UdmOb.d.ts +32 -0
- package/dist/dev-landing-CD-si4dW.js +50 -0
- package/dist/dev-landing-CD-si4dW.js.map +1 -0
- package/dist/dev-vite.d.ts +9 -14
- package/dist/dev-vite.js +11 -10
- package/dist/dev-vite.js.map +1 -1
- package/dist/dev.d.ts +3 -2
- package/dist/dev.js +2 -1
- package/dist/doctor-BA0i-YAN.js +270 -0
- package/dist/doctor-BA0i-YAN.js.map +1 -0
- package/dist/dump-D1vX8ozg.js +133 -0
- package/dist/dump-D1vX8ozg.js.map +1 -0
- package/dist/errors-7Rk1HGCE.js +160 -0
- package/dist/errors-7Rk1HGCE.js.map +1 -0
- package/dist/{validate-DtljsCh1.js → export-BVL2EvYE.js} +409 -19
- package/dist/export-BVL2EvYE.js.map +1 -0
- package/dist/fsck-BWkPgov4.js +145 -0
- package/dist/fsck-BWkPgov4.js.map +1 -0
- package/dist/{gcs-admin-Bx6xSNJj.d.ts → gcs-admin-Dso1HWQj.d.ts} +18 -14
- package/dist/gcs.d.ts +19 -7
- package/dist/gcs.js +1 -2
- package/dist/{goog4-signer-Z7KnJ1su.js → goog4-signer-CeLIABoE.js} +102 -92
- package/dist/goog4-signer-CeLIABoE.js.map +1 -0
- package/dist/{http-7zT29K3P.js → http-Z5rZyYMX.js} +898 -271
- package/dist/http-Z5rZyYMX.js.map +1 -0
- package/dist/http-transport-DNUM8kU-.js +1299 -0
- package/dist/http-transport-DNUM8kU-.js.map +1 -0
- package/dist/http.d.ts +366 -294
- package/dist/http.js +2 -2
- package/dist/index-JJrIu1pO.d.ts +135 -0
- package/dist/index-LEgHN0qJ.d.ts +50 -0
- package/dist/{index-DP3ClvcA.d.ts → index-RiEYj8t0.d.ts} +291 -78
- package/dist/index.d.ts +27 -6
- package/dist/index.js +3 -5
- package/dist/inspect-BTsVYZKd.js +196 -0
- package/dist/inspect-BTsVYZKd.js.map +1 -0
- package/dist/{key-Di6yyxFu.js → key-C4FPZ9Io.js} +3 -4
- package/dist/{key-Di6yyxFu.js.map → key-C4FPZ9Io.js.map} +1 -1
- package/dist/ledger-Dj_bGgo0.js +192 -0
- package/dist/ledger-Dj_bGgo0.js.map +1 -0
- package/dist/legacy-names-DgZBtgOh.js +47 -0
- package/dist/legacy-names-DgZBtgOh.js.map +1 -0
- package/dist/log-C9W15Dfo.d.ts +94 -0
- package/dist/log-tail-DWJbneBF.js +142 -0
- package/dist/log-tail-DWJbneBF.js.map +1 -0
- package/dist/log-walk-C-vA-WGJ.js +111 -0
- package/dist/log-walk-C-vA-WGJ.js.map +1 -0
- package/dist/maintenance-Dd-Yakqj.js +1709 -0
- package/dist/maintenance-Dd-Yakqj.js.map +1 -0
- package/dist/maintenance-DevB6z4e.js +2237 -0
- package/dist/maintenance-DevB6z4e.js.map +1 -0
- package/dist/maintenance.d.ts +100 -3
- package/dist/maintenance.js +1 -3
- package/dist/node.d.ts +119 -92
- package/dist/node.js +3 -3
- package/dist/{observability-Ch-VQJyE.js → observability-C-ISCCLE.js} +1247 -326
- package/dist/observability-C-ISCCLE.js.map +1 -0
- package/dist/observability.d.ts +27 -3
- package/dist/observability.js +3 -3
- package/dist/path-segment-DBXG26PW.js +363 -0
- package/dist/path-segment-DBXG26PW.js.map +1 -0
- package/dist/{plan-C4qgiXSg.js → plan-BvQbaNMe.js} +19 -11
- package/dist/plan-BvQbaNMe.js.map +1 -0
- package/dist/request-CRWiTrza.js +272 -0
- package/dist/request-CRWiTrza.js.map +1 -0
- package/dist/restore-U6Im8V1V.js +1467 -0
- package/dist/restore-U6Im8V1V.js.map +1 -0
- package/dist/retry-OBtLB2GC.js +126 -0
- package/dist/retry-OBtLB2GC.js.map +1 -0
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/{runtime-spec--LykAdl1.js → runtime-spec-B5mg3pHF.js} +189 -28
- package/dist/runtime-spec-B5mg3pHF.js.map +1 -0
- package/dist/{s3-http-DD5gDc7t.d.ts → s3-http-DBC_wiCL.d.ts} +14 -8
- package/dist/s3.d.ts +20 -7
- package/dist/s3.js +4 -5
- package/dist/s3.js.map +1 -1
- package/dist/{sha256-CqcKTjw9.js → sha256-4FfGQNPw.js} +9 -9
- package/dist/sha256-4FfGQNPw.js.map +1 -0
- package/dist/{shared-secret-DgEicd3x.js → shared-secret-Vkur-8r0.js} +27 -15
- package/dist/shared-secret-Vkur-8r0.js.map +1 -0
- package/dist/{aws4fetch.esm-CXE5ZbAa.js → sigv4-sign-5IUflUD_.js} +143 -96
- package/dist/sigv4-sign-5IUflUD_.js.map +1 -0
- package/dist/snapshot-CknzkDM0.js +148 -0
- package/dist/snapshot-CknzkDM0.js.map +1 -0
- package/dist/{src-BMFfDUI2.js → src-Actga-bO.js} +949 -363
- package/dist/src-Actga-bO.js.map +1 -0
- package/dist/src-D0MQfvOp.js +812 -0
- package/dist/src-D0MQfvOp.js.map +1 -0
- package/dist/src-Dr9uo3dc.js +501 -0
- package/dist/src-Dr9uo3dc.js.map +1 -0
- package/dist/{subcommand-BV68pqwJ.js → subcommand-BLoF66dG.js} +89 -16
- package/dist/subcommand-BLoF66dG.js.map +1 -0
- package/dist/{time-DUqvFMHq.js → time-DRxTP9iv.js} +15 -34
- package/dist/time-DRxTP9iv.js.map +1 -0
- package/dist/types-suVbsEWS.d.ts +116 -0
- package/dist/{usage-BMZR8o6U.js → usage-CPzVhrQr.js} +40 -45
- package/dist/usage-CPzVhrQr.js.map +1 -0
- package/dist/uuid-BuT_c404.js +333 -0
- package/dist/uuid-BuT_c404.js.map +1 -0
- package/dist/verifier-Bmlmndzo.d.ts +95 -0
- package/dist/{wire-izfGZDvr.js → wire-DndvKU-K.js} +2 -3
- package/dist/wire-DndvKU-K.js.map +1 -0
- package/package.json +90 -69
- package/dist/aws4fetch.esm-CXE5ZbAa.js.map +0 -1
- package/dist/bytes-BXdamO3L.js +0 -11
- package/dist/bytes-BXdamO3L.js.map +0 -1
- package/dist/cloudflare-wrVYf4bb.js.map +0 -1
- package/dist/config-B6nTy8e2.js +0 -3095
- package/dist/config-B6nTy8e2.js.map +0 -1
- package/dist/constants-CfeMWQWk.js +0 -222
- package/dist/constants-CfeMWQWk.js.map +0 -1
- package/dist/context-DRZ3tZ5l.js.map +0 -1
- package/dist/cost-_SE_SVgZ.js +0 -203
- package/dist/cost-_SE_SVgZ.js.map +0 -1
- package/dist/current-json-C6nhPOm1.js.map +0 -1
- package/dist/db-DjjthkTi.d.ts +0 -254
- package/dist/deploy-Di_Q01qx.js.map +0 -1
- package/dist/doctor-RWVRpvat.js +0 -102
- package/dist/doctor-RWVRpvat.js.map +0 -1
- package/dist/dump-m2vEYDNY.js +0 -94
- package/dist/dump-m2vEYDNY.js.map +0 -1
- package/dist/errors-Dfa3p78c.js +0 -78
- package/dist/errors-Dfa3p78c.js.map +0 -1
- package/dist/export-DenKwEQu.js +0 -401
- package/dist/export-DenKwEQu.js.map +0 -1
- package/dist/fsck-2Vq-7-e2.js +0 -279
- package/dist/fsck-2Vq-7-e2.js.map +0 -1
- package/dist/goog4-signer-Z7KnJ1su.js.map +0 -1
- package/dist/http-7zT29K3P.js.map +0 -1
- package/dist/http-transport-BTgVCY5r.js +0 -1250
- package/dist/http-transport-BTgVCY5r.js.map +0 -1
- package/dist/index-BHz92Acj.d.ts +0 -162
- package/dist/index-CEZKQsKt.d.ts +0 -1113
- package/dist/index-uE-w2dgj.d.ts +0 -115
- package/dist/indexes-Dn9hbGQG.d.ts +0 -22
- package/dist/inspect-BpYbH1DM.js +0 -133
- package/dist/inspect-BpYbH1DM.js.map +0 -1
- package/dist/log-tail-QWU4wlu-.js +0 -514
- package/dist/log-tail-QWU4wlu-.js.map +0 -1
- package/dist/maintenance-BGHGt2Yg.d.ts +0 -537
- package/dist/maintenance-DULFcpd1.js +0 -2144
- package/dist/maintenance-DULFcpd1.js.map +0 -1
- package/dist/maintenance-fEi-UZ2o.js +0 -1412
- package/dist/maintenance-fEi-UZ2o.js.map +0 -1
- package/dist/normalize-rjnZLwS4.js +0 -133
- package/dist/normalize-rjnZLwS4.js.map +0 -1
- package/dist/observability-Ch-VQJyE.js.map +0 -1
- package/dist/plan-C4qgiXSg.js.map +0 -1
- package/dist/query-C43r-6ib.js +0 -1773
- package/dist/query-C43r-6ib.js.map +0 -1
- package/dist/rebuild-index-BH1dc1p6.js +0 -81
- package/dist/rebuild-index-BH1dc1p6.js.map +0 -1
- package/dist/request-u0M51mhJ.js +0 -72
- package/dist/request-u0M51mhJ.js.map +0 -1
- package/dist/restore-D0VYWzfP.js +0 -778
- package/dist/restore-D0VYWzfP.js.map +0 -1
- package/dist/rolldown-runtime-EAsCxrDo.js +0 -14
- package/dist/runtime-spec--LykAdl1.js.map +0 -1
- package/dist/sha256-CqcKTjw9.js.map +0 -1
- package/dist/shared-secret-DgEicd3x.js.map +0 -1
- package/dist/src-BMFfDUI2.js.map +0 -1
- package/dist/src-DYZ4H1aF.js +0 -392
- package/dist/src-DYZ4H1aF.js.map +0 -1
- package/dist/src-DvbTEya2.js +0 -536
- package/dist/src-DvbTEya2.js.map +0 -1
- package/dist/subcommand-BV68pqwJ.js.map +0 -1
- package/dist/time-DUqvFMHq.js.map +0 -1
- package/dist/usage-BMZR8o6U.js.map +0 -1
- package/dist/validate-DtljsCh1.js.map +0 -1
- package/dist/wire-izfGZDvr.js.map +0 -1
package/dist/index-uE-w2dgj.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { _ as StoragePutOptions, g as StorageListEntry, h as StorageGetResult, m as StorageGetOptions, p as Storage, v as StoragePutResult } from "./index-CEZKQsKt.js";
|
|
2
|
-
|
|
3
|
-
//#region packages/dev/src/dev-landing.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Dev landing page for the API root (`GET /`).
|
|
6
|
-
*
|
|
7
|
-
* The HTTP surface is API-only: every path outside `/v1/*`
|
|
8
|
-
* returns the {@link HttpErrorEnvelope} 404 shape. That's correct for
|
|
9
|
-
* production but confusing in local dev — a user who clicks the
|
|
10
|
-
* `http://localhost:3000` link in their terminal sees a JSON 404 and
|
|
11
|
-
* assumes the server is broken.
|
|
12
|
-
*
|
|
13
|
-
* Adapters that wire the {@link DevLandingOptions} opt-in surface a
|
|
14
|
-
* small HTML page on `GET /` instead: app label, a clickable link to
|
|
15
|
-
* the UI, a `/v1/healthz` probe link, and a note that `/v1/c/*` is
|
|
16
|
-
* auth-gated. `GET /favicon.ico` answers 204 so browsers don't pin a
|
|
17
|
-
* second JSON 404 next to the landing page.
|
|
18
|
-
*
|
|
19
|
-
* Production deployments leave the option unset; the 404 falls
|
|
20
|
-
* through to the existing envelope.
|
|
21
|
-
*/
|
|
22
|
-
/** Options for {@link renderDevLanding}. */
|
|
23
|
-
interface DevLandingOptions {
|
|
24
|
-
/** Bucket-prefix / app name (typically passed through from the adapter's `app` option). */
|
|
25
|
-
readonly app: string;
|
|
26
|
-
/** URL of the human-facing UI (e.g., `"http://localhost:5173"`). */
|
|
27
|
-
readonly uiUrl: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Render the dev landing page HTML. Dependency-free; system fonts
|
|
31
|
-
* only; no JS. All substitutions are HTML-escaped to keep the page
|
|
32
|
-
* inert even when `app` / `uiUrl` come from env vars.
|
|
33
|
-
*/
|
|
34
|
-
declare const renderDevLanding: (opts: DevLandingOptions) => string;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region packages/dev/src/ensure-table.d.ts
|
|
37
|
-
/**
|
|
38
|
-
* Optional pre-warm: idempotently create the `current.json` manifest
|
|
39
|
-
* for a single `(app, tenant, table)` triple. The kernel auto-creates
|
|
40
|
-
* this manifest on the first commit anyway (see `Db.create` and
|
|
41
|
-
* `Writer.commit`), so calling `ensureTable` is **not required** for
|
|
42
|
-
* correctness — it's a one-Class-A-PUT optimization for callers that
|
|
43
|
-
* want the manifest in place before the first request lands (seed
|
|
44
|
-
* scripts, deploy-time provisioning, CI fixtures that snapshot the
|
|
45
|
-
* bucket between phases, etc.).
|
|
46
|
-
*
|
|
47
|
-
* Wraps {@link createCurrentJson} with the canonical key shape
|
|
48
|
-
* (`app/<app>/tenant/<tenant>/manifests/<table>/current.json`) and
|
|
49
|
-
* swallows `BaerlyError{code:"Conflict"}` so re-runs are safe. An
|
|
50
|
-
* existing manifest is preserved verbatim — this function never
|
|
51
|
-
* overwrites a populated manifest. The seed shape matches the
|
|
52
|
-
* kernel's auto-create exactly, so a pre-warm and an
|
|
53
|
-
* auto-provisioned bucket are byte-identical.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* import { LocalFsStorage, ensureTable } from "@gusto/baerly-storage/dev";
|
|
58
|
-
*
|
|
59
|
-
* const storage = new LocalFsStorage({ root: "./.baerly-data" });
|
|
60
|
-
* // Pre-warm so the first request doesn't pay the bootstrap PUT.
|
|
61
|
-
* await ensureTable(storage, { app: "helpdesk", tenant: "demo", table: "tickets" });
|
|
62
|
-
* // …then `baerlyNode({ config, storage, verifier })`.
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
declare const ensureTable: (storage: Storage, args: {
|
|
66
|
-
app: string;
|
|
67
|
-
tenant: string;
|
|
68
|
-
table: string;
|
|
69
|
-
}) => Promise<void>;
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region packages/dev/src/local-fs.d.ts
|
|
72
|
-
interface LocalFsStorageOptions {
|
|
73
|
-
/** Root directory; treated as "the bucket". */
|
|
74
|
-
root: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* `Storage` backed by a directory tree. Keys may contain `/` and map
|
|
78
|
-
* to nested directories on disk so `ls`/`cat` work as expected.
|
|
79
|
-
*
|
|
80
|
-
* ETags are content-addressed: `"<sha-256-hex>"` (the surrounding
|
|
81
|
-
* double-quotes match S3's wire format for non-multipart objects).
|
|
82
|
-
* Identical bodies share an ETag across runs — the property that
|
|
83
|
-
* makes this adapter useful for fixture-based tests.
|
|
84
|
-
*
|
|
85
|
-
* Writes are atomic via `writeFile(temp) + rename(final)`; readers
|
|
86
|
-
* never see a partially-written file.
|
|
87
|
-
*
|
|
88
|
-
* `ifNoneMatch:"*"` uses a same-dir temp + `link(2)` (atomic exclusive
|
|
89
|
-
* create; `EEXIST` ⇒ key exists) so concurrent creates have exactly one
|
|
90
|
-
* winner. Same-dir avoids `EXDEV`; temp+`link` over `open(…,"wx")` keeps
|
|
91
|
-
* a partially-written new key invisible to a concurrent reader. `ifMatch`
|
|
92
|
-
* keeps the `rename` path (in-process TOCTOU only; cross-process
|
|
93
|
-
* contention uses the S3 / Minio `If-Match` path).
|
|
94
|
-
*
|
|
95
|
-
* Node-only — imports `node:fs`, `node:path`, `node:crypto`. Lives in
|
|
96
|
-
* `@baerly/dev` because the protocol kernel is pure-modules / no I/O
|
|
97
|
-
* and must remain Worker-bundleable.
|
|
98
|
-
*/
|
|
99
|
-
declare class LocalFsStorage implements Storage {
|
|
100
|
-
#private;
|
|
101
|
-
constructor(opts: LocalFsStorageOptions);
|
|
102
|
-
get(key: string, opts?: StorageGetOptions): Promise<StorageGetResult | null>;
|
|
103
|
-
put(key: string, body: Uint8Array, opts?: StoragePutOptions): Promise<StoragePutResult>;
|
|
104
|
-
delete(key: string, opts?: {
|
|
105
|
-
signal?: AbortSignal;
|
|
106
|
-
}): Promise<void>;
|
|
107
|
-
list(prefix: string, opts?: {
|
|
108
|
-
startAfter?: string;
|
|
109
|
-
maxKeys?: number;
|
|
110
|
-
signal?: AbortSignal;
|
|
111
|
-
}): AsyncIterable<StorageListEntry>;
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
export { renderDevLanding as a, DevLandingOptions as i, LocalFsStorageOptions as n, ensureTable as r, LocalFsStorage as t };
|
|
115
|
-
//# sourceMappingURL=index-uE-w2dgj.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { d as IndexDefinition, f as DocumentData } from "./app-config-DyiFK3_k.js";
|
|
2
|
-
//#region packages/server/src/indexes.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Compute the full index-key set a single doc produces under every
|
|
5
|
-
* declared index of its collection. Skips indexes whose projection
|
|
6
|
-
* yields `undefined` (null/missing indexed field). Used by both
|
|
7
|
-
* the writer (to PUT new keys) and the rebuild command (to compute
|
|
8
|
-
* the expected key set across the live doc map).
|
|
9
|
-
*
|
|
10
|
-
* Filter-aware (T4): when `def.predicate !== undefined`, the doc
|
|
11
|
-
* must satisfy `matchesWire(def.predicate, body)` or the def contributes
|
|
12
|
-
* zero keys. The writer's diff `oldKeys` vs `newKeys` then covers
|
|
13
|
-
* all four U-quadrants automatically — see the JSDoc on
|
|
14
|
-
* `writer.ts` above the index-emission block. `body ===
|
|
15
|
-
* undefined` short-circuits ahead of the filter check (no keys for
|
|
16
|
-
* an unknown pre-image, regardless of filter), preserving the prior
|
|
17
|
-
* D-quadrant behaviour.
|
|
18
|
-
*/
|
|
19
|
-
declare const allIndexKeysFor: (logPrefix: string, defs: ReadonlyArray<IndexDefinition>, body: DocumentData | undefined, docId: string) => string[];
|
|
20
|
-
//#endregion
|
|
21
|
-
export { allIndexKeysFor as t };
|
|
22
|
-
//# sourceMappingURL=indexes-Dn9hbGQG.d.ts.map
|
package/dist/inspect-BpYbH1DM.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { n as loadCollectionIndexes, r as parseBucketUri } from "./config-B6nTy8e2.js";
|
|
2
|
-
import { h as readCurrentJson, n as probeTailFrom } from "./log-tail-QWU4wlu-.js";
|
|
3
|
-
import { i as isJsonMode, o as BaerlyError, r as emitSuccess } from "./baerly.js";
|
|
4
|
-
import { n as loadMaterialisedView } from "./plan-C4qgiXSg.js";
|
|
5
|
-
import { a as TENANT_ARG, i as JSON_ARG, n as BUCKET_ARG, o as assertCollectionArg, r as COLLECTION_ARG, s as defineBaerlySubcommand, t as APP_ARG } from "./subcommand-BV68pqwJ.js";
|
|
6
|
-
//#region src/inspect.ts
|
|
7
|
-
const INSPECT_ARGS = {
|
|
8
|
-
bucket: BUCKET_ARG,
|
|
9
|
-
app: APP_ARG,
|
|
10
|
-
tenant: TENANT_ARG,
|
|
11
|
-
collection: COLLECTION_ARG,
|
|
12
|
-
config: {
|
|
13
|
-
type: "string",
|
|
14
|
-
required: false,
|
|
15
|
-
description: "Path to baerly.config.{js,mjs,json}; pulls declared indexes for key-count probes.",
|
|
16
|
-
valueHint: "path"
|
|
17
|
-
},
|
|
18
|
-
json: JSON_ARG
|
|
19
|
-
};
|
|
20
|
-
const countListEntries = async (storage, prefix) => {
|
|
21
|
-
let count = 0;
|
|
22
|
-
const keys = [];
|
|
23
|
-
for await (const entry of storage.list(prefix)) {
|
|
24
|
-
count++;
|
|
25
|
-
keys.push(entry.key);
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
count,
|
|
29
|
-
keys
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
const renderText = (r, collection) => {
|
|
33
|
-
const lines = [];
|
|
34
|
-
lines.push(`baerly inspect ${collection}`);
|
|
35
|
-
lines.push(` current.json: ${r.currentJsonKey}`);
|
|
36
|
-
lines.push(` schema_version: ${r.schema_version}`);
|
|
37
|
-
lines.push(` tail_hint (stored): ${r.tail_hint}`);
|
|
38
|
-
lines.push(` discovered_tail: ${r.discovered_tail}`);
|
|
39
|
-
lines.push(` log_seq_start: ${r.log_seq_start}`);
|
|
40
|
-
lines.push(` live_log_tail: ${r.live_log_tail}`);
|
|
41
|
-
lines.push(` snapshot: ${r.snapshot ?? "(none)"}`);
|
|
42
|
-
lines.push(` snapshot_bytes: ${r.snapshot_bytes}`);
|
|
43
|
-
lines.push(` snapshot_rows: ${r.snapshot_rows}`);
|
|
44
|
-
lines.push(` writer_fence: epoch=${r.writer_fence.epoch} owner=${JSON.stringify(r.writer_fence.owner)} claimed_at=${JSON.stringify(r.writer_fence.claimed_at)}`);
|
|
45
|
-
lines.push(` materialised_rows: ${r.materialised_rows}`);
|
|
46
|
-
if (r.indexes.length > 0) {
|
|
47
|
-
const formatted = r.indexes.map((i) => `${i.name} (count=${i.count})`).join(", ");
|
|
48
|
-
lines.push(` indexes: ${formatted}`);
|
|
49
|
-
} else lines.push(` indexes: (none declared)`);
|
|
50
|
-
lines.push(` status: ${r.status}`);
|
|
51
|
-
if (r.errors.length > 0) for (const e of r.errors) lines.push(` error: ${e}`);
|
|
52
|
-
return lines.join("\n") + "\n";
|
|
53
|
-
};
|
|
54
|
-
const bundle = defineBaerlySubcommand({
|
|
55
|
-
name: "inspect",
|
|
56
|
-
meta: { description: "Read-only summary of one collection's snapshot + log state." },
|
|
57
|
-
args: INSPECT_ARGS,
|
|
58
|
-
handler: async (args, ctx) => {
|
|
59
|
-
const bucket = await parseBucketUri(args.bucket);
|
|
60
|
-
const { app, tenant } = await ctx.resolveAppTenant({
|
|
61
|
-
app: args.app,
|
|
62
|
-
tenant: args.tenant
|
|
63
|
-
});
|
|
64
|
-
assertCollectionArg(args.collection, "baerly inspect");
|
|
65
|
-
const collectionPrefix = `${bucket.keyPrefix}app/${app}/tenant/${tenant}/manifests/${args.collection}`;
|
|
66
|
-
const currentJsonKey = `${collectionPrefix}/current.json`;
|
|
67
|
-
const read = await readCurrentJson(bucket.storage, currentJsonKey);
|
|
68
|
-
if (read === null) throw new BaerlyError("InvalidConfig", `baerly inspect: current.json not found at ${currentJsonKey}`);
|
|
69
|
-
const cur = read.json;
|
|
70
|
-
const log_seq_start = cur.log_seq_start ?? 0;
|
|
71
|
-
const discoveredTail = (await probeTailFrom(bucket.storage, collectionPrefix, Math.max(log_seq_start, cur.tail_hint))).tail;
|
|
72
|
-
const errors = [];
|
|
73
|
-
let materialisedRows = 0;
|
|
74
|
-
try {
|
|
75
|
-
materialisedRows = (await loadMaterialisedView({
|
|
76
|
-
storage: bucket.storage,
|
|
77
|
-
currentJsonKey,
|
|
78
|
-
collection: args.collection
|
|
79
|
-
}))?.size ?? 0;
|
|
80
|
-
} catch (error) {
|
|
81
|
-
if (error instanceof BaerlyError) errors.push(`${error.code}: ${error.message}`);
|
|
82
|
-
else errors.push(error.message);
|
|
83
|
-
}
|
|
84
|
-
try {
|
|
85
|
-
const snapshotPrefix = `${collectionPrefix}/snapshot/`;
|
|
86
|
-
const { keys } = await countListEntries(bucket.storage, snapshotPrefix);
|
|
87
|
-
for (const k of keys) if (cur.snapshot !== k) errors.push(`orphan snapshot: ${k}`);
|
|
88
|
-
} catch (error) {
|
|
89
|
-
if (error instanceof BaerlyError) errors.push(`${error.code}: ${error.message}`);
|
|
90
|
-
}
|
|
91
|
-
const indexes = [];
|
|
92
|
-
if (typeof args.config === "string" && args.config.length > 0) {
|
|
93
|
-
const defs = await loadCollectionIndexes(args.config, args.collection, "baerly inspect");
|
|
94
|
-
for (const def of defs) {
|
|
95
|
-
const prefix = `${collectionPrefix}/index/${def.name}/`;
|
|
96
|
-
const { count } = await countListEntries(bucket.storage, prefix);
|
|
97
|
-
indexes.push({
|
|
98
|
-
name: def.name,
|
|
99
|
-
count
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
const result = {
|
|
104
|
-
currentJsonKey,
|
|
105
|
-
schema_version: cur.schema_version,
|
|
106
|
-
tail_hint: cur.tail_hint,
|
|
107
|
-
discovered_tail: discoveredTail,
|
|
108
|
-
log_seq_start,
|
|
109
|
-
live_log_tail: discoveredTail - log_seq_start,
|
|
110
|
-
snapshot: cur.snapshot,
|
|
111
|
-
snapshot_bytes: cur.snapshot_bytes,
|
|
112
|
-
snapshot_rows: cur.snapshot_rows,
|
|
113
|
-
writer_fence: cur.writer_fence,
|
|
114
|
-
materialised_rows: materialisedRows,
|
|
115
|
-
indexes,
|
|
116
|
-
status: errors.length === 0 ? "ok" : "error",
|
|
117
|
-
errors
|
|
118
|
-
};
|
|
119
|
-
if (isJsonMode()) emitSuccess({
|
|
120
|
-
command: "inspect",
|
|
121
|
-
...result
|
|
122
|
-
});
|
|
123
|
-
else process.stdout.write(renderText(result, args.collection));
|
|
124
|
-
return 0;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
/** citty `defineCommand` block for `baerly inspect`. */
|
|
128
|
-
const inspect = bundle.cmd;
|
|
129
|
-
bundle.run;
|
|
130
|
-
//#endregion
|
|
131
|
-
export { inspect };
|
|
132
|
-
|
|
133
|
-
//# sourceMappingURL=inspect-BpYbH1DM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-BpYbH1DM.js","names":[],"sources":["../packages/cli/src/inspect.ts"],"sourcesContent":["/**\n * `baerly inspect` — read-only summary for one collection.\n *\n * Args:\n * --bucket Required. Bucket URI.\n * --app Required (or via baerly.config.ts).\n * --tenant Required (or via baerly.config.ts).\n * --collection Required. Collection name.\n * --config Optional path to baerly.config.{js,mjs,json} for index info.\n * --json JSON envelope.\n *\n * Reports, per-collection:\n * - currentJsonKey path.\n * - schema_version, tail_hint, log_seq_start (default 0).\n * - live_log_tail (= tail_hint - log_seq_start).\n * - snapshot key (or null).\n * - snapshot_bytes / snapshot_rows (the fold-ceiling inputs C / E\n * are compared against; see graduation.md).\n * - writer_fence (epoch, owner, claimed_at).\n * - materialised row count (via export/loadMaterialisedView).\n * - per-declared-index key count (when --config supplied).\n * - well-formed status: \"ok\" or \"error\" with an `errors` array.\n *\n * For projected monthly Class A / $ trajectories, use\n * `baerly cost --bucket=<uri> --collection=<name>` — the projection\n * used to live as a footer here but moved to its own verb so inspect\n * stays a glance command (no GET-storm over the trailing log sample).\n *\n * Cost shape:\n * 1 GET current.json\n * + 1 GET snapshot (if any)\n * + N GETs log tail (= tail_hint - log_seq_start)\n * + K LISTs (one per declared index, when --config supplied)\n * + 1 LIST snapshot/ prefix (orphan detection)\n *\n * Never mutates anything.\n *\n * Exit codes:\n * 0 — inspection ran (status may be \"ok\" or \"error\"; both exit 0).\n * 1 — InvalidConfig (bad bucket URI, missing args, unknown flag).\n * 2 — Storage / Network error.\n * 3 — Protocol invariant (Conflict / Internal / InvalidResponse).\n */\n\nimport { type ArgsDef } from \"citty\";\nimport { BaerlyError, readCurrentJson, type CurrentJson, type Storage } from \"@baerly/protocol\";\nimport { probeTailFrom } from \"@baerly/server\";\nimport { loadMaterialisedView } from \"./export/index.ts\";\nimport { loadCollectionIndexes } from \"./config.ts\";\nimport { parseBucketUri } from \"./bucket-uri.ts\";\nimport { emitSuccess, isJsonMode } from \"./output.ts\";\nimport {\n APP_ARG,\n assertCollectionArg,\n BUCKET_ARG,\n COLLECTION_ARG,\n defineBaerlySubcommand,\n JSON_ARG,\n TENANT_ARG,\n} from \"./subcommand.ts\";\n\nconst INSPECT_ARGS = {\n bucket: BUCKET_ARG,\n app: APP_ARG,\n tenant: TENANT_ARG,\n collection: COLLECTION_ARG,\n config: {\n type: \"string\",\n required: false,\n description:\n \"Path to baerly.config.{js,mjs,json}; pulls declared indexes for key-count probes.\",\n valueHint: \"path\",\n },\n json: JSON_ARG,\n} as const satisfies ArgsDef;\n\nconst countListEntries = async (\n storage: Storage,\n prefix: string,\n): Promise<{ count: number; keys: string[] }> => {\n let count = 0;\n const keys: string[] = [];\n for await (const entry of storage.list(prefix)) {\n count++;\n keys.push(entry.key);\n }\n return { count, keys };\n};\n\ninterface InspectResult {\n currentJsonKey: string;\n schema_version: number;\n /** The stored, compactor-advanced lower-bound hint (`current.json.tail_hint`). */\n tail_hint: number;\n /** The TRUE committed tail, discovered by forward-probe past `tail_hint`. */\n discovered_tail: number;\n log_seq_start: number;\n live_log_tail: number;\n snapshot: string | null;\n snapshot_bytes: number;\n snapshot_rows: number;\n writer_fence: CurrentJson[\"writer_fence\"];\n materialised_rows: number;\n indexes: { name: string; count: number }[];\n status: \"ok\" | \"error\";\n errors: string[];\n}\n\nconst renderText = (r: InspectResult, collection: string): string => {\n const lines: string[] = [];\n lines.push(`baerly inspect ${collection}`);\n lines.push(` current.json: ${r.currentJsonKey}`);\n lines.push(` schema_version: ${r.schema_version}`);\n lines.push(` tail_hint (stored): ${r.tail_hint}`);\n lines.push(` discovered_tail: ${r.discovered_tail}`);\n lines.push(` log_seq_start: ${r.log_seq_start}`);\n lines.push(` live_log_tail: ${r.live_log_tail}`);\n lines.push(` snapshot: ${r.snapshot ?? \"(none)\"}`);\n lines.push(` snapshot_bytes: ${r.snapshot_bytes}`);\n lines.push(` snapshot_rows: ${r.snapshot_rows}`);\n lines.push(\n ` writer_fence: epoch=${r.writer_fence.epoch} owner=${JSON.stringify(r.writer_fence.owner)} claimed_at=${JSON.stringify(r.writer_fence.claimed_at)}`,\n );\n lines.push(` materialised_rows: ${r.materialised_rows}`);\n if (r.indexes.length > 0) {\n const formatted = r.indexes.map((i) => `${i.name} (count=${i.count})`).join(\", \");\n lines.push(` indexes: ${formatted}`);\n } else {\n lines.push(` indexes: (none declared)`);\n }\n lines.push(` status: ${r.status}`);\n if (r.errors.length > 0) {\n for (const e of r.errors) {\n lines.push(` error: ${e}`);\n }\n }\n return lines.join(\"\\n\") + \"\\n\";\n};\n\nconst bundle = defineBaerlySubcommand({\n name: \"inspect\",\n meta: {\n description: \"Read-only summary of one collection's snapshot + log state.\",\n },\n args: INSPECT_ARGS,\n handler: async (args, ctx) => {\n const bucket = await parseBucketUri(args.bucket);\n const { app, tenant } = await ctx.resolveAppTenant({ app: args.app, tenant: args.tenant });\n assertCollectionArg(args.collection, \"baerly inspect\");\n const collectionPrefix = `${bucket.keyPrefix}app/${app}/tenant/${tenant}/manifests/${args.collection}`;\n const currentJsonKey = `${collectionPrefix}/current.json`;\n\n const read = await readCurrentJson(bucket.storage, currentJsonKey);\n if (read === null) {\n throw new BaerlyError(\n \"InvalidConfig\",\n `baerly inspect: current.json not found at ${currentJsonKey}`,\n );\n }\n const cur = read.json;\n const log_seq_start = cur.log_seq_start ?? 0;\n // Discover the TRUE tail by forward-probe — under single-write commit\n // the stored `tail_hint` is only a lower bound (compactor-advanced),\n // so an accurate operator summary must probe past it.\n const tailProbe = await probeTailFrom(\n bucket.storage,\n collectionPrefix,\n Math.max(log_seq_start, cur.tail_hint),\n );\n const discoveredTail = tailProbe.tail;\n\n const errors: string[] = [];\n let materialisedRows = 0;\n try {\n const view = await loadMaterialisedView({\n storage: bucket.storage,\n currentJsonKey,\n collection: args.collection,\n });\n materialisedRows = view?.size ?? 0;\n } catch (error) {\n if (error instanceof BaerlyError) {\n errors.push(`${error.code}: ${error.message}`);\n } else {\n errors.push((error as Error).message);\n }\n }\n\n // Orphan-snapshot detection: list every file under <collectionPrefix>/snapshot/\n // and flag anything that isn't the currently-pointed-at snapshot.\n try {\n const snapshotPrefix = `${collectionPrefix}/snapshot/`;\n const { keys } = await countListEntries(bucket.storage, snapshotPrefix);\n for (const k of keys) {\n if (cur.snapshot !== k) {\n errors.push(`orphan snapshot: ${k}`);\n }\n }\n } catch (error) {\n if (error instanceof BaerlyError) {\n errors.push(`${error.code}: ${error.message}`);\n }\n }\n\n const indexes: { name: string; count: number }[] = [];\n if (typeof args.config === \"string\" && args.config.length > 0) {\n const defs = await loadCollectionIndexes(args.config, args.collection, \"baerly inspect\");\n for (const def of defs) {\n const prefix = `${collectionPrefix}/index/${def.name}/`;\n const { count } = await countListEntries(bucket.storage, prefix);\n indexes.push({ name: def.name, count });\n }\n }\n\n const result: InspectResult = {\n currentJsonKey,\n schema_version: cur.schema_version,\n tail_hint: cur.tail_hint,\n discovered_tail: discoveredTail,\n log_seq_start,\n live_log_tail: discoveredTail - log_seq_start,\n snapshot: cur.snapshot,\n snapshot_bytes: cur.snapshot_bytes,\n snapshot_rows: cur.snapshot_rows,\n writer_fence: cur.writer_fence,\n materialised_rows: materialisedRows,\n indexes,\n status: errors.length === 0 ? \"ok\" : \"error\",\n errors,\n };\n\n if (isJsonMode()) {\n emitSuccess({ command: \"inspect\", ...result });\n } else {\n process.stdout.write(renderText(result, args.collection));\n }\n return 0;\n },\n});\n\n/** citty `defineCommand` block for `baerly inspect`. */\nexport const inspect = bundle.cmd;\n\n/**\n * Programmatic entry used by tests. Bypasses citty's `run` wrapper\n * (which would call `process.exit` and kill vitest) and returns the\n * integer exit code directly.\n */\nexport const runInspect = bundle.run;\n"],"mappings":";;;;;;AA6DA,MAAM,eAAe;CACnB,QAAQ;CACR,KAAK;CACL,QAAQ;CACR,YAAY;CACZ,QAAQ;EACN,MAAM;EACN,UAAU;EACV,aACE;EACF,WAAW;CACb;CACA,MAAM;AACR;AAEA,MAAM,mBAAmB,OACvB,SACA,WAC+C;CAC/C,IAAI,QAAQ;CACZ,MAAM,OAAiB,CAAC;CACxB,WAAW,MAAM,SAAS,QAAQ,KAAK,MAAM,GAAG;EAC9C;EACA,KAAK,KAAK,MAAM,GAAG;CACrB;CACA,OAAO;EAAE;EAAO;CAAK;AACvB;AAqBA,MAAM,cAAc,GAAkB,eAA+B;CACnE,MAAM,QAAkB,CAAC;CACzB,MAAM,KAAK,kBAAkB,YAAY;CACzC,MAAM,KAAK,0BAA0B,EAAE,gBAAgB;CACvD,MAAM,KAAK,0BAA0B,EAAE,gBAAgB;CACvD,MAAM,KAAK,0BAA0B,EAAE,WAAW;CAClD,MAAM,KAAK,0BAA0B,EAAE,iBAAiB;CACxD,MAAM,KAAK,0BAA0B,EAAE,eAAe;CACtD,MAAM,KAAK,0BAA0B,EAAE,eAAe;CACtD,MAAM,KAAK,0BAA0B,EAAE,YAAY,UAAU;CAC7D,MAAM,KAAK,0BAA0B,EAAE,gBAAgB;CACvD,MAAM,KAAK,0BAA0B,EAAE,eAAe;CACtD,MAAM,KACJ,gCAAgC,EAAE,aAAa,MAAM,SAAS,KAAK,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