@bjornpagen/bumbledb-log 1.0.1 → 1.1.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 +28 -54
- package/dist/command.d.ts +4 -4
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js.map +1 -1
- package/dist/history.d.ts +3 -3
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/machine.d.ts +13 -13
- package/dist/machine.d.ts.map +1 -1
- package/dist/machine.js +49 -55
- package/dist/machine.js.map +1 -1
- package/dist/migrations/bin.js +1 -14
- package/dist/migrations/bin.js.map +1 -1
- package/dist/migrations/cli.d.ts +2 -5
- package/dist/migrations/cli.d.ts.map +1 -1
- package/dist/migrations/cli.js +3 -26
- package/dist/migrations/cli.js.map +1 -1
- package/dist/migrations/codec.d.ts +3 -3
- package/dist/migrations/codec.d.ts.map +1 -1
- package/dist/migrations/fail.d.ts +0 -4
- package/dist/migrations/fail.d.ts.map +1 -1
- package/dist/migrations/fail.js +0 -9
- package/dist/migrations/fail.js.map +1 -1
- package/dist/migrations/generate.d.ts.map +1 -1
- package/dist/migrations/generate.js +44 -53
- package/dist/migrations/generate.js.map +1 -1
- package/dist/migrations/intent.d.ts +1 -1
- package/dist/migrations/intent.js +1 -1
- package/dist/migrations/lock.d.ts +2 -2
- package/dist/migrations/lock.d.ts.map +1 -1
- package/dist/migrations/lock.js +2 -2
- package/dist/migrations/lock.js.map +1 -1
- package/dist/migrations/native.d.ts.map +1 -1
- package/dist/migrations/native.js +4 -4
- package/dist/migrations/native.js.map +1 -1
- package/dist/migrations/types.d.ts +1 -2
- package/dist/migrations/types.d.ts.map +1 -1
- package/dist/native.d.ts +13 -17
- package/dist/native.d.ts.map +1 -1
- package/dist/native.js.map +1 -1
- package/dist/options.d.ts +11 -18
- package/dist/options.d.ts.map +1 -1
- package/dist/outcome.d.ts +3 -10
- package/dist/outcome.d.ts.map +1 -1
- package/dist/surface.d.ts +8 -9
- package/dist/surface.d.ts.map +1 -1
- package/pack-provenance.json +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Durable named application commands over
|
|
4
4
|
[Bumbledb](https://github.com/bjornpagen/bumbledb): a thin peer of
|
|
5
|
-
`@bjornpagen/bumbledb` (exact peer `1.0
|
|
5
|
+
`@bjornpagen/bumbledb` (exact peer `1.1.0`). The package adds a durable
|
|
6
6
|
envelope around the exact core change/read machinery — it never duplicates
|
|
7
|
-
the engine surface. Core types (`ChangeSet`, `QueryReader`,
|
|
8
|
-
`
|
|
7
|
+
the engine surface. Core types (`ChangeSet`, `QueryReader`, `DbError`,
|
|
8
|
+
`StorageInspection`) are the peer's own exports.
|
|
9
9
|
|
|
10
10
|
The API is **Effect-native**: every operation constructs a lazy
|
|
11
11
|
[`Effect`](https://effect.website) and every native resource is scoped.
|
|
@@ -28,14 +28,14 @@ The surface is small:
|
|
|
28
28
|
`ref`; `Command.encode`/`Command.decode` are the one bounded versioned
|
|
29
29
|
command codec. The `changes` are the core's own `ChangeSet`.
|
|
30
30
|
3. **`PublishedSnapshot`** — the read side. It extends the core
|
|
31
|
-
`QueryReader` exactly (same `get`/`execute`/`
|
|
31
|
+
`QueryReader` exactly (same `get`/`execute`/`prepare`, parameters, errors
|
|
32
32
|
and result owners) and adds durable provenance: `identity`,
|
|
33
33
|
`decisionStamp`, `stateStamp`, `freshness`. `ReadOptions.consistency`
|
|
34
34
|
selects `cached`, `latest`, or `at-least` a known stamp.
|
|
35
35
|
4. **`TenantCache`** — one bounded native registry of histories for
|
|
36
36
|
multi-tenant hosts: `make`/`acquire` (a `HistoryBorrow` whose `release`
|
|
37
|
-
frees only the borrow)/`inspect`/`evict`/`close`.
|
|
38
|
-
|
|
37
|
+
frees only the borrow)/`inspect`/`evict`/`close`. `maxOpen` bounds the
|
|
38
|
+
number of open tenants; evicting a borrowed slot refuses.
|
|
39
39
|
5. **Maintenance and migrations** — explicit admin operations
|
|
40
40
|
(`checkpoint`, `pinRestorePoint`/`releaseRestorePoint`,
|
|
41
41
|
`rotateReceiptEpoch`, `retireReceipts`, `collectGarbage`, `backup`/
|
|
@@ -44,8 +44,12 @@ The surface is small:
|
|
|
44
44
|
|
|
45
45
|
## Install
|
|
46
46
|
|
|
47
|
+
This guide follows the 1.1.0 source API. Use the guide from the Git tag matching
|
|
48
|
+
your installed package. GitHub release tarballs and npm publication are separate;
|
|
49
|
+
the npm command below applies once that version is published.
|
|
50
|
+
|
|
47
51
|
```sh
|
|
48
|
-
pnpm add @bjornpagen/bumbledb-log@1.0
|
|
52
|
+
pnpm add @bjornpagen/bumbledb-log@1.1.0 @bjornpagen/bumbledb@1.1.0 effect@4.0.0-rc.112
|
|
49
53
|
```
|
|
50
54
|
|
|
51
55
|
## Quick start: one durable round trip
|
|
@@ -57,7 +61,6 @@ and resolve the retained ref to the exact recorded outcome.
|
|
|
57
61
|
```ts
|
|
58
62
|
import * as fs from "node:fs/promises"
|
|
59
63
|
import { ChangeSet, key, NativeRuntime, relation, Schema, schema, str, u64 } from "@bjornpagen/bumbledb"
|
|
60
|
-
import type { ExecutionPolicy, NativeRuntimeOptions } from "@bjornpagen/bumbledb"
|
|
61
64
|
import { Command, DatabaseId, IncarnationId, LocalHistory, OperationId, ReceiptEpoch, RequestId } from "@bjornpagen/bumbledb-log"
|
|
62
65
|
import type { DatabaseIdentity, LocalBinding, ReadOptions, SubmitOptions } from "@bjornpagen/bumbledb-log"
|
|
63
66
|
import { Effect, ManagedRuntime, Result } from "effect"
|
|
@@ -65,36 +68,14 @@ import { Effect, ManagedRuntime, Result } from "effect"
|
|
|
65
68
|
const Entry = relation("Entry", { id: u64, body: str })
|
|
66
69
|
const Ledger = schema("Ledger", { Entry }, [key(Entry, ["id"])])
|
|
67
70
|
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
queueCapacity: 16,
|
|
71
|
-
cleanupCapacity: 16,
|
|
72
|
-
ownerCapacity: 16,
|
|
73
|
-
nativeHandleCapacity: 64,
|
|
74
|
-
inputBytes: 8_000_000n,
|
|
75
|
-
workingBytes: 8_000_000n,
|
|
76
|
-
scratchBytes: 8_000_000n,
|
|
77
|
-
resultBytes: 1_000_000n,
|
|
78
|
-
chunkBytes: 1_000_000n,
|
|
79
|
-
cleanupTimeout: "2 seconds"
|
|
80
|
-
}
|
|
81
|
-
const work: ExecutionPolicy = {
|
|
82
|
-
inputBytes: 1_000_000n,
|
|
83
|
-
workingBytes: 1_000_000n,
|
|
84
|
-
scratchBytes: 1_000_000n,
|
|
85
|
-
resultBytes: 100_000n,
|
|
86
|
-
rows: 100_000n,
|
|
87
|
-
workUnits: 10_000_000n,
|
|
88
|
-
timeout: "10 seconds"
|
|
89
|
-
}
|
|
90
|
-
const submitOptions: SubmitOptions = { ...work, attempts: 4, backoff: { baseMillis: 5, capMillis: 100 } }
|
|
91
|
-
const readOptions: ReadOptions = { ...work, consistency: { kind: "cached" } }
|
|
71
|
+
const submitOptions: SubmitOptions = { attempts: 4, backoff: { baseMillis: 5, capMillis: 100 } }
|
|
72
|
+
const readOptions: ReadOptions = { consistency: { kind: "cached" } }
|
|
92
73
|
|
|
93
74
|
// Genuinely fallible small parsing is Result, not Effect.
|
|
94
75
|
const unwrap = <A, E>(result: Result.Result<A, E>): A => Result.getOrThrow(result)
|
|
95
76
|
|
|
96
77
|
const program = Effect.gen(function* () {
|
|
97
|
-
const compiled = yield* Schema.compile(Ledger
|
|
78
|
+
const compiled = yield* Schema.compile(Ledger)
|
|
98
79
|
// The checked initialization artifact: the canonical schema snapshot the
|
|
99
80
|
// migration generator wrote to your checked-in repository. Its native
|
|
100
81
|
// fingerprint IS the identity's schemaId — creation re-judges both.
|
|
@@ -111,14 +92,12 @@ const program = Effect.gen(function* () {
|
|
|
111
92
|
// Scope 1: create, seal, submit; retain the ref and receipt.
|
|
112
93
|
const retained = yield* Effect.scoped(
|
|
113
94
|
Effect.gen(function* () {
|
|
114
|
-
const history = yield* LocalHistory.create(binding, Ledger, {
|
|
115
|
-
...work,
|
|
116
|
-
creation: {
|
|
95
|
+
const history = yield* LocalHistory.create(binding, Ledger, { creation: {
|
|
117
96
|
operationId: unwrap(OperationId.parse("e1e1e1e1-e1e1-e1e1-e1e1-e1e1e1e1e1e1")),
|
|
118
97
|
artifact
|
|
119
98
|
}
|
|
120
99
|
})
|
|
121
|
-
const draft = yield* ChangeSet.builder(Ledger
|
|
100
|
+
const draft = yield* ChangeSet.builder(Ledger)
|
|
122
101
|
yield* draft.insert(Entry, [{ id: 42n, body: "hello" }])
|
|
123
102
|
const changes = yield* draft.finish()
|
|
124
103
|
const command = yield* Command.seal(
|
|
@@ -133,8 +112,7 @@ const program = Effect.gen(function* () {
|
|
|
133
112
|
changes,
|
|
134
113
|
precondition: { kind: "blind" },
|
|
135
114
|
result: {}
|
|
136
|
-
}
|
|
137
|
-
work
|
|
115
|
+
}
|
|
138
116
|
)
|
|
139
117
|
// Submission certainty is data; interruption remains interruption.
|
|
140
118
|
const outcome = yield* history.submit(command, submitOptions)
|
|
@@ -149,18 +127,18 @@ const program = Effect.gen(function* () {
|
|
|
149
127
|
// and the committed fact reads back through the core QueryReader.
|
|
150
128
|
yield* Effect.scoped(
|
|
151
129
|
Effect.gen(function* () {
|
|
152
|
-
const history = yield* LocalHistory.open(binding, Ledger
|
|
153
|
-
const resolved = yield* history.resolve(retained.ref
|
|
130
|
+
const history = yield* LocalHistory.open(binding, Ledger)
|
|
131
|
+
const resolved = yield* history.resolve(retained.ref)
|
|
154
132
|
if (resolved.kind === "found" && resolved.receipt.outcome.kind === "committed") {
|
|
155
133
|
const snapshot = yield* history.snapshot(readOptions)
|
|
156
|
-
const fact = yield* snapshot.get(Entry, { id: 42n }
|
|
134
|
+
const fact = yield* snapshot.get(Entry, { id: 42n })
|
|
157
135
|
yield* Effect.log(fact._tag === "Some" ? fact.value.body : "missing")
|
|
158
136
|
}
|
|
159
137
|
})
|
|
160
138
|
)
|
|
161
139
|
})
|
|
162
140
|
|
|
163
|
-
const runtime = ManagedRuntime.make(NativeRuntime.layer(
|
|
141
|
+
const runtime = ManagedRuntime.make(NativeRuntime.layer())
|
|
164
142
|
await runtime.runPromise(program)
|
|
165
143
|
await Effect.runPromise(runtime.disposeEffect)
|
|
166
144
|
```
|
|
@@ -200,7 +178,7 @@ nothing else. Interruption and finalizer defects stay in `Cause`.
|
|
|
200
178
|
|
|
201
179
|
The same core `QueryReader` helper that lists a local `Db` snapshot lists a
|
|
202
180
|
published history snapshot. There is no log-specific query wrapper. The
|
|
203
|
-
packed consumer spells this as `readAttempts(snapshot, student
|
|
181
|
+
packed consumer spells this as `readAttempts(snapshot, student)` on
|
|
204
182
|
both `Db.snapshot` and `history.snapshot`.
|
|
205
183
|
|
|
206
184
|
Retain the command or admin `operationId` **before** `submit` / `initialize` /
|
|
@@ -211,7 +189,6 @@ A later missing receipt is not proved loss.
|
|
|
211
189
|
|
|
212
190
|
```ts
|
|
213
191
|
import { NativeRuntime } from "@bjornpagen/bumbledb"
|
|
214
|
-
import type { ExecutionPolicy, NativeRuntimeOptions } from "@bjornpagen/bumbledb"
|
|
215
192
|
import {
|
|
216
193
|
backup,
|
|
217
194
|
OperationId,
|
|
@@ -221,8 +198,6 @@ import {
|
|
|
221
198
|
} from "@bjornpagen/bumbledb-log"
|
|
222
199
|
import { Effect, Result } from "effect"
|
|
223
200
|
|
|
224
|
-
declare const runtimeOptions: NativeRuntimeOptions
|
|
225
|
-
declare const work: ExecutionPolicy
|
|
226
201
|
declare const binding: LocalBinding
|
|
227
202
|
|
|
228
203
|
const unwrap = <A, E>(result: Result.Result<A, E>): A => Result.getOrThrow(result)
|
|
@@ -230,14 +205,14 @@ const unwrap = <A, E>(result: Result.Result<A, E>): A => Result.getOrThrow(resul
|
|
|
230
205
|
const cycle = Effect.gen(function* () {
|
|
231
206
|
const operationId = unwrap(OperationId.parse("a1a1a1a1-a1a1-a1a1-a1a1-a1a1a1a1a1a1"))
|
|
232
207
|
const destination = { kind: "filesystem" as const, directory: "/tmp/ledger-backup" }
|
|
233
|
-
const backed = yield* backup(binding, {
|
|
208
|
+
const backed = yield* backup(binding, { operationId, destination })
|
|
234
209
|
if (backed.kind !== "completed") {
|
|
235
210
|
return backed
|
|
236
211
|
}
|
|
237
|
-
yield* verifyBackup(destination,
|
|
238
|
-
return yield* restore(destination, binding, {
|
|
212
|
+
yield* verifyBackup(destination, {})
|
|
213
|
+
return yield* restore(destination, binding, { operationId })
|
|
239
214
|
})
|
|
240
|
-
void NativeRuntime.layer(
|
|
215
|
+
void NativeRuntime.layer()
|
|
241
216
|
void cycle
|
|
242
217
|
```
|
|
243
218
|
|
|
@@ -271,8 +246,7 @@ runtime:
|
|
|
271
246
|
**Current limitation:** these generated migration runner verbs target local
|
|
272
247
|
authorities only. The TypeScript/native bridge refuses hosted migration
|
|
273
248
|
execution; a hosted tenant's cache is not an authoritative local migration
|
|
274
|
-
target. Hosted migration orchestration is not supported
|
|
275
|
-
production-ready scope is local history. Real-S3 and Graviton qualification
|
|
249
|
+
target. Hosted migration orchestration is not supported. Real-S3 and Graviton qualification
|
|
276
250
|
remain deferred, not passed.
|
|
277
251
|
- Field arithmetic such as `Scalar.add(Scalar.field("units"), Scalar.u64(1n))`
|
|
278
252
|
is valid intent metadata. Native chain compilation binds it before any
|
|
@@ -283,6 +257,6 @@ runtime:
|
|
|
283
257
|
|
|
284
258
|
The native engine arrives through the peer `@bjornpagen/bumbledb`
|
|
285
259
|
(darwin-arm64, linux-arm64, linux-x64); this package ships TypeScript only
|
|
286
|
-
and declares both peers exactly (`@bjornpagen/bumbledb 1.0
|
|
260
|
+
and declares both peers exactly (`@bjornpagen/bumbledb 1.1.0`, `effect
|
|
287
261
|
4.0.0-rc.112`). Version lockstep across the package family is enforced in
|
|
288
262
|
CI.
|
package/dist/command.d.ts
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* reconstruct a missing payload. Copy `command.ref` and retain it with the
|
|
8
8
|
* original intent BEFORE dispatch.
|
|
9
9
|
*/
|
|
10
|
-
import type { AnySchema,
|
|
10
|
+
import type { AnySchema, NativeRuntime } from "@bjornpagen/bumbledb";
|
|
11
11
|
import type { Effect, Scope } from "effect";
|
|
12
12
|
import type { LogError } from "./errors.js";
|
|
13
13
|
import type { CommandInput, Command as CommandInterface } from "./surface.js";
|
|
14
14
|
/** The owned sealed command value; `ref` is copyable before dispatch. */
|
|
15
15
|
export type Command<S extends AnySchema> = CommandInterface<S>;
|
|
16
16
|
export declare const Command: {
|
|
17
|
-
seal<S extends AnySchema>(input: CommandInput<S
|
|
18
|
-
encode<S extends AnySchema>(command: Command<S
|
|
19
|
-
decode<S extends AnySchema>(bytes: Uint8Array, schema: S
|
|
17
|
+
seal<S extends AnySchema>(input: CommandInput<S>): Effect.Effect<Command<S>, LogError, Scope.Scope>;
|
|
18
|
+
encode<S extends AnySchema>(command: Command<S>): Effect.Effect<Uint8Array, LogError>;
|
|
19
|
+
decode<S extends AnySchema>(bytes: Uint8Array, schema: S): Effect.Effect<Command<S>, LogError, NativeRuntime | Scope.Scope>;
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=command.d.ts.map
|
package/dist/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE5E,yEAAyE;AACzE,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAE9D,eAAO,MAAM,OAAO,EAAE;IACrB,IAAI,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IACnG,MAAM,CAAC,CAAC,SAAS,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;IACrF,MAAM,CAAC,CAAC,SAAS,SAAS,EACzB,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,CAAC,GACP,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;CACrD,CAAA"}
|
package/dist/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAMpC,MAAM,CAAC,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAMpC,MAAM,CAAC,MAAM,OAAO,GAOhB,GAAG,CAAC,OAAO,CAAA"}
|
package/dist/history.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
import type { AnySchema, NativeRuntime } from "@bjornpagen/bumbledb";
|
|
10
10
|
import type { Effect, Scope } from "effect";
|
|
11
11
|
import type { LogError } from "./errors.js";
|
|
12
|
-
import type { HostedBinding, HostedCreateOptions, HostedOpenOptions, LocalBinding, LocalCreateOptions
|
|
12
|
+
import type { HostedBinding, HostedCreateOptions, HostedOpenOptions, LocalBinding, LocalCreateOptions } from "./options.js";
|
|
13
13
|
import type { History } from "./surface.js";
|
|
14
14
|
export declare const LocalHistory: {
|
|
15
|
-
open<S extends AnySchema>(binding: LocalBinding, schema: S
|
|
15
|
+
open<S extends AnySchema>(binding: LocalBinding, schema: S): Effect.Effect<History<S>, LogError, NativeRuntime | Scope.Scope>;
|
|
16
16
|
create<S extends AnySchema>(binding: LocalBinding, schema: S, options: LocalCreateOptions): Effect.Effect<History<S>, LogError, NativeRuntime | Scope.Scope>;
|
|
17
17
|
};
|
|
18
18
|
export declare const HostedHistory: {
|
|
19
|
-
open<S extends AnySchema>(binding: HostedBinding, schema: S, options
|
|
19
|
+
open<S extends AnySchema>(binding: HostedBinding, schema: S, options?: HostedOpenOptions): Effect.Effect<History<S>, LogError, NativeRuntime | Scope.Scope>;
|
|
20
20
|
create<S extends AnySchema>(binding: HostedBinding, schema: S, options: HostedCreateOptions): Effect.Effect<History<S>, LogError, NativeRuntime | Scope.Scope>;
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=history.d.ts.map
|
package/dist/history.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../src/history.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,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,EAAE,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;IACnE,MAAM,CAAC,CAAC,SAAS,SAAS,EACzB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,mBAAmB,GAC1B,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;CAC/C,CAAA"}
|
package/dist/history.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.js","sourceRoot":"","sources":["../src/history.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"history.js","sourceRoot":"","sources":["../src/history.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAGpC,MAAM,CAAC,MAAM,YAAY,GAUrB,GAAG,CAAC,YAAY,CAAA;AAEpB,MAAM,CAAC,MAAM,aAAa,GAWtB,GAAG,CAAC,aAAa,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* published snapshots satisfying the core QueryReader, one native-backed
|
|
6
6
|
* TenantCache, and explicit maintenance/migration operations. Effect-only;
|
|
7
7
|
* the one protocol implementation is crates/bumbledb-log behind the shared
|
|
8
|
-
* native runtime. Core types (ChangeSet, QueryReader,
|
|
8
|
+
* native runtime. Core types (ChangeSet, QueryReader,
|
|
9
9
|
* DbError, …) are the peer @bjornpagen/bumbledb's own exports, never
|
|
10
10
|
* re-exported here.
|
|
11
11
|
*/
|
|
@@ -19,7 +19,7 @@ export { ProtocolError } from "./errors.js";
|
|
|
19
19
|
export { HostedHistory, LocalHistory } from "./history.js";
|
|
20
20
|
export type { CommandId, CommandRef, DatabaseIdentity, DecisionStamp, Freshness, OperationRef, ReadConsistency, StateStamp } from "./identity.js";
|
|
21
21
|
export { CommandDigest, DatabaseId, DecisionDigest, IncarnationId, OperationId, PlanSetDigest, parseCommandRef, parseDatabaseIdentity, parseDecisionStamp, parseSchemaId, parseStateStamp, ReceiptEpoch, RequestId, RootId, renderCommandRef, renderDatabaseIdentity, renderDecisionStamp, renderStateStamp, sameCommandRef, sameIdentity } from "./identity.js";
|
|
22
|
-
export type { CreationOptions, HistoryBinding, HostedBinding, HostedCreateOptions, HostedCredentials, HostedOpenOptions, HostedOrigin, LocalBinding, LocalCreateOptions,
|
|
22
|
+
export type { CreationOptions, HistoryBinding, HostedBinding, HostedCreateOptions, HostedCredentials, HostedOpenOptions, HostedOrigin, LocalBinding, LocalCreateOptions, ReadOptions, RuntimeExpectation, SubmitOptions } from "./options.js";
|
|
23
23
|
export type { AbortReport, AccessMode, ActivationRef, ActivationReport, AdminOutcome, BackupReport, BackupVerification, CacheInspection, CacheSlotReport, ChangeSummary, CheckpointReport, CommandResult, CommandScalar, ErasureReport, GcReport, GeneratedMigrations, HistoryInspection, InitializeValue, LocalMaterializationHealth, MigrateValue, MigrationRef, MigrationStatus, PublicationPhase, ReceiptPolicyReport, ReceiptRetirementReport, ReceiptRotationReport, ResidualCopy, ResolveOutcome, RestorePointReport, RestoreReport, RootReleaseReport, SourceAccessReport, SubmitOutcome, TerminalOutcome, TerminalReceipt } from "./outcome.js";
|
|
24
24
|
export type { Command as CommandValue, CommandInput, History, HistoryBorrow, Precondition, PublishedSnapshot } from "./surface.js";
|
|
25
25
|
export type { TenantCacheOptions } from "./tenants.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AACxE,OAAO,EACN,MAAM,EACN,UAAU,EACV,cAAc,EACd,KAAK,EACL,eAAe,EACf,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACzD,YAAY,EACX,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,MAAM,cAAc,CAAA;AACrB,OAAO,EACN,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,cAAc,CAAA;AACrB,YAAY,EACX,eAAe,EACf,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AACxE,OAAO,EACN,MAAM,EACN,UAAU,EACV,cAAc,EACd,KAAK,EACL,eAAe,EACf,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,MAAM,WAAW,CAAA;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vB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,eAAe,EACf,MAAM,aAAa,CAAA;AACpB,YAAY,EACX,OAAO,IAAI,YAAY,EACvB,YAAY,EACZ,OAAO,EACP,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* published snapshots satisfying the core QueryReader, one native-backed
|
|
6
6
|
* TenantCache, and explicit maintenance/migration operations. Effect-only;
|
|
7
7
|
* the one protocol implementation is crates/bumbledb-log behind the shared
|
|
8
|
-
* native runtime. Core types (ChangeSet, QueryReader,
|
|
8
|
+
* native runtime. Core types (ChangeSet, QueryReader,
|
|
9
9
|
* DbError, …) are the peer @bjornpagen/bumbledb's own exports, never
|
|
10
10
|
* re-exported here.
|
|
11
11
|
*/
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACN,MAAM,EACN,UAAU,EACV,cAAc,EACd,KAAK,EACL,eAAe,EACf,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAWzD,OAAO,EACN,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACN,MAAM,EACN,UAAU,EACV,cAAc,EACd,KAAK,EACL,eAAe,EACf,mBAAmB,EACnB,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAWzD,OAAO,EACN,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,cAAc,CAAA;AA6DrB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/machine.d.ts
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
* wire and the core integration seam so authored tests can drive the layer
|
|
9
9
|
* deterministically; production binds the real addon in `#production.ts`.
|
|
10
10
|
*/
|
|
11
|
-
import type { AnySchema, DbError,
|
|
11
|
+
import type { AnySchema, DbError, NativeRuntime, SchemaId } from "@bjornpagen/bumbledb";
|
|
12
12
|
import type { Capability, ChangeSet, CompleteResult, QueryReader, RuntimeHandle, SnapshotHandle } from "@bjornpagen/bumbledb/internal/log";
|
|
13
13
|
import type { Scope } from "effect";
|
|
14
14
|
import { Effect } from "effect";
|
|
15
15
|
import type { LogError } from "./errors.js";
|
|
16
16
|
import type { OperationId, RootId } from "./identity.js";
|
|
17
17
|
import type { LogNative } from "./native.js";
|
|
18
|
-
import type { HistoryBinding, HostedBinding, HostedCreateOptions, HostedCredentials, HostedOpenOptions, LocalBinding, LocalCreateOptions,
|
|
18
|
+
import type { HistoryBinding, HostedBinding, HostedCreateOptions, HostedCredentials, HostedOpenOptions, LocalBinding, LocalCreateOptions, TenantCacheOptions } from "./options.js";
|
|
19
19
|
import type { AbortReport, ActivationRef, ActivationReport, AdminOutcome, BackupReport, BackupVerification, CheckpointReport, ErasureReport, GcReport, GeneratedMigrations, InitializeValue, MigrateValue, MigrationRef, MigrationStatus, ReceiptRetirementReport, ReceiptRotationReport, RestorePointReport, RestoreReport, RootReleaseReport } from "./outcome.js";
|
|
20
20
|
import type { Command, CommandInput, History, TenantCache } from "./surface.js";
|
|
21
21
|
export interface PublishedReadCapability<S extends AnySchema> {
|
|
@@ -23,7 +23,7 @@ export interface PublishedReadCapability<S extends AnySchema> {
|
|
|
23
23
|
readonly get: QueryReader<S>["get"];
|
|
24
24
|
/** Core QueryReader.execute — yields the CompleteResult owner. */
|
|
25
25
|
readonly execute: QueryReader<S>["execute"];
|
|
26
|
-
readonly
|
|
26
|
+
readonly prepare: QueryReader<S>["prepare"];
|
|
27
27
|
}
|
|
28
28
|
/** Published execute result: the core CompleteResult, not a copied page. */
|
|
29
29
|
export type PublishedCompleteResult<A> = CompleteResult<A>;
|
|
@@ -54,17 +54,17 @@ export interface CoreIntegration {
|
|
|
54
54
|
export type LogWire = LogNative;
|
|
55
55
|
export interface LogMachine {
|
|
56
56
|
readonly LocalHistory: {
|
|
57
|
-
open<S extends AnySchema>(binding: LocalBinding, schema: S
|
|
57
|
+
open<S extends AnySchema>(binding: LocalBinding, schema: S): OpenEffect<S>;
|
|
58
58
|
create<S extends AnySchema>(binding: LocalBinding, schema: S, options: LocalCreateOptions): OpenEffect<S>;
|
|
59
59
|
};
|
|
60
60
|
readonly HostedHistory: {
|
|
61
|
-
open<S extends AnySchema>(binding: HostedBinding, schema: S, options
|
|
61
|
+
open<S extends AnySchema>(binding: HostedBinding, schema: S, options?: HostedOpenOptions): OpenEffect<S>;
|
|
62
62
|
create<S extends AnySchema>(binding: HostedBinding, schema: S, options: HostedCreateOptions): OpenEffect<S>;
|
|
63
63
|
};
|
|
64
64
|
readonly Command: {
|
|
65
|
-
seal<S extends AnySchema>(input: CommandInput<S
|
|
66
|
-
encode<S extends AnySchema>(command: Command<S
|
|
67
|
-
decode<S extends AnySchema>(bytes: Uint8Array, schema: S
|
|
65
|
+
seal<S extends AnySchema>(input: CommandInput<S>): Effect.Effect<Command<S>, LogError, Scope.Scope>;
|
|
66
|
+
encode<S extends AnySchema>(command: Command<S>): Effect.Effect<Uint8Array, LogError>;
|
|
67
|
+
decode<S extends AnySchema>(bytes: Uint8Array, schema: S): Effect.Effect<Command<S>, LogError, NativeRuntimeService | Scope.Scope>;
|
|
68
68
|
};
|
|
69
69
|
readonly TenantCache: {
|
|
70
70
|
make<S extends AnySchema>(schema: S, options: TenantCacheOptions): Effect.Effect<TenantCache<S>, LogError, NativeRuntimeService | Scope.Scope>;
|
|
@@ -98,7 +98,7 @@ export interface MigrationTargetOptions extends TenantOpenOptions {
|
|
|
98
98
|
* reconstruct descriptors; empty source is not a compile shortcut.
|
|
99
99
|
*/
|
|
100
100
|
export type MigrationPlansInput = GeneratedMigrations;
|
|
101
|
-
export interface AdminIdentityOptions extends
|
|
101
|
+
export interface AdminIdentityOptions extends TenantOpenOptions {
|
|
102
102
|
readonly operationId: OperationId;
|
|
103
103
|
}
|
|
104
104
|
export interface AdminOperations {
|
|
@@ -117,7 +117,7 @@ export interface AdminOperations {
|
|
|
117
117
|
backup(binding: HistoryBinding, options: AdminIdentityOptions & {
|
|
118
118
|
readonly destination: BackupDestination;
|
|
119
119
|
}): Effect.Effect<AdminOutcome<BackupReport>, never, NativeRuntimeService>;
|
|
120
|
-
verifyBackup(destination: BackupDestination, options:
|
|
120
|
+
verifyBackup(destination: BackupDestination, options: {
|
|
121
121
|
readonly backup?: OperationId;
|
|
122
122
|
}): Effect.Effect<BackupVerification, LogError, NativeRuntimeService>;
|
|
123
123
|
restore(source: BackupDestination, target: HistoryBinding, options: AdminIdentityOptions & {
|
|
@@ -138,13 +138,13 @@ export type BackupDestination = {
|
|
|
138
138
|
readonly credentials?: HostedCredentials;
|
|
139
139
|
};
|
|
140
140
|
export interface MigrationOperations {
|
|
141
|
-
migrationStatus(binding: HistoryBinding, plans: MigrationPlansInput,
|
|
141
|
+
migrationStatus(binding: HistoryBinding, plans: MigrationPlansInput, options: TenantOpenOptions): Effect.Effect<MigrationStatus, LogError, NativeRuntimeService>;
|
|
142
142
|
initialize(binding: HistoryBinding, plans: MigrationPlansInput, options: AdminIdentityOptions): Effect.Effect<AdminOutcome<InitializeValue>, never, NativeRuntimeService>;
|
|
143
143
|
migrate(binding: HistoryBinding, plans: MigrationPlansInput, options: AdminIdentityOptions & {
|
|
144
144
|
readonly to?: string;
|
|
145
145
|
}): Effect.Effect<AdminOutcome<MigrateValue>, never, NativeRuntimeService>;
|
|
146
|
-
activateMigration(ref: ActivationRef, options:
|
|
147
|
-
abortMigration(ref: MigrationRef, options:
|
|
146
|
+
activateMigration(ref: ActivationRef, options: MigrationTargetOptions): Effect.Effect<AdminOutcome<ActivationReport>, never, NativeRuntimeService>;
|
|
147
|
+
abortMigration(ref: MigrationRef, options: MigrationTargetOptions): Effect.Effect<AdminOutcome<AbortReport>, never, NativeRuntimeService>;
|
|
148
148
|
}
|
|
149
149
|
export declare function makeLogMachine(wire: LogWire, core: CoreIntegration): LogMachine;
|
|
150
150
|
export {};
|
package/dist/machine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEvF,OAAO,KAAK,EACX,UAAU,EACV,SAAS,EACT,cAAc,EACd,WAAW,EACX,aAAa,EACb,cAAc,EACd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAA;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,OAAO,KAAK,EASX,WAAW,EAKX,MAAM,EAEN,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAqBX,SAAS,EAgBT,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAEX,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAGlB,kBAAkB,EAClB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAElB,gBAAgB,EAGhB,aAAa,EACb,QAAQ,EACR,mBAAmB,EAEnB,eAAe,EAEf,YAAY,EACZ,YAAY,EACZ,eAAe,EAEf,uBAAuB,EACvB,qBAAqB,EAErB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EAKjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,E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