@antfly/embedded 0.3.0-rc.7 → 0.3.0-rc.9

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.
@@ -115,7 +115,7 @@ interface OpenOptions {
115
115
  generatedEnrichmentReplay?: boolean;
116
116
  mapSize?: Uint64Like;
117
117
  ttlCleanup?: TTLCleanupOptions;
118
- /** Milliseconds to retry while another writer holds the writer lock (ANTFLY_BUSY), like sqlite3_busy_timeout. 0 (default) fails immediately. */
118
+ /** Milliseconds to retry Lite admission while another process holds the writer lease or advances the allocator checkpoint (ANTFLY_BUSY), like sqlite3_busy_timeout. Mutation bodies are never replayed by this admission retry. 0 (default) fails immediately. */
119
119
  busyTimeoutMs?: Uint64Like;
120
120
  inferenceHostBudgetMb?: number;
121
121
  inferenceBackendBudgetMb?: number;
@@ -225,6 +225,7 @@ interface Capabilities {
225
225
  object_storage_primary: boolean;
226
226
  }
227
227
  interface PendingWorkStatus {
228
+ background_publications?: unknown;
228
229
  derived_target_sequence: number;
229
230
  has_async_indexes: boolean;
230
231
  portable_import_publication_in_progress: boolean;
@@ -246,7 +247,20 @@ interface Status {
246
247
  interface ReplayGeneratedEnrichmentsResult {
247
248
  replayed: number;
248
249
  }
250
+ /** Logical key/value payload, excluding physical headers. */
251
+ interface LiveByteCategory {
252
+ records: number;
253
+ key_bytes: number;
254
+ value_bytes: number;
255
+ }
256
+ interface LiveByteAccounting {
257
+ metadata_catalog: LiveByteCategory;
258
+ index_catalog: LiveByteCategory;
259
+ control_documents: LiveByteCategory;
260
+ documents: LiveByteCategory;
261
+ }
249
262
  interface CheckReport {
263
+ live_accounting?: LiveByteAccounting | null;
250
264
  valid: boolean;
251
265
  file_size: number;
252
266
  valid_prefix_size: number;
@@ -582,4 +596,4 @@ declare function openHosted(path: string): Promise<Database>;
582
596
  */
583
597
  declare function createHosted(path: string): Promise<Database>;
584
598
 
585
- export { openWithOptions as A, platformLibraryFileName as B, type CheckReport as C, Database as D, resolveLibrary as E, GraphDirection as G, type InferenceOptions as I, type JsonInput as J, LibraryNotFoundError as L, type MemoryAdmissionStats as M, type NativeLibrary as N, OpenMode as O, type PullProgress as P, type RestoreOptions as R, type StableSnapshotReport as S, THREADING_SERIALIZED as T, type Uint64Like as U, type VacuumReport as V, type WriteIntent as W, type Capabilities as a, type CompactReport as b, InferenceMode as c, type InferenceStatus as d, type LibrarySource as e, NATIVE_STACK_SIZE as f, type OpenOptions as g, type PendingWorkStatus as h, Profile as i, type ReplayGeneratedEnrichmentsResult as j, type ResolvedLibrary as k, SUPPORTED_ABI_VERSION as l, type Status as m, Storage as n, type StorageStatus as o, type TTLCleanupOptions as p, TxnStatus as q, UnsupportedPlatformError as r, create as s, createHosted as t, createWithOptions as u, embeddedPlatformPackageName as v, open as w, openHosted as x, openReadonly as y, openStatusOnly as z };
599
+ export { openReadonly as A, openStatusOnly as B, type CheckReport as C, Database as D, openWithOptions as E, platformLibraryFileName as F, GraphDirection as G, resolveLibrary as H, type InferenceOptions as I, type JsonInput as J, LibraryNotFoundError as L, type MemoryAdmissionStats as M, type NativeLibrary as N, OpenMode as O, type PullProgress as P, type RestoreOptions as R, type StableSnapshotReport as S, THREADING_SERIALIZED as T, type Uint64Like as U, type VacuumReport as V, type WriteIntent as W, type Capabilities as a, type CompactReport as b, InferenceMode as c, type InferenceStatus as d, type LibrarySource as e, type LiveByteAccounting as f, type LiveByteCategory as g, NATIVE_STACK_SIZE as h, type OpenOptions as i, type PendingWorkStatus as j, Profile as k, type ReplayGeneratedEnrichmentsResult as l, type ResolvedLibrary as m, SUPPORTED_ABI_VERSION as n, type Status as o, Storage as p, type StorageStatus as q, type TTLCleanupOptions as r, TxnStatus as s, UnsupportedPlatformError as t, create as u, createHosted as v, createWithOptions as w, embeddedPlatformPackageName as x, open as y, openHosted as z };
@@ -115,7 +115,7 @@ interface OpenOptions {
115
115
  generatedEnrichmentReplay?: boolean;
116
116
  mapSize?: Uint64Like;
117
117
  ttlCleanup?: TTLCleanupOptions;
118
- /** Milliseconds to retry while another writer holds the writer lock (ANTFLY_BUSY), like sqlite3_busy_timeout. 0 (default) fails immediately. */
118
+ /** Milliseconds to retry Lite admission while another process holds the writer lease or advances the allocator checkpoint (ANTFLY_BUSY), like sqlite3_busy_timeout. Mutation bodies are never replayed by this admission retry. 0 (default) fails immediately. */
119
119
  busyTimeoutMs?: Uint64Like;
120
120
  inferenceHostBudgetMb?: number;
121
121
  inferenceBackendBudgetMb?: number;
@@ -225,6 +225,7 @@ interface Capabilities {
225
225
  object_storage_primary: boolean;
226
226
  }
227
227
  interface PendingWorkStatus {
228
+ background_publications?: unknown;
228
229
  derived_target_sequence: number;
229
230
  has_async_indexes: boolean;
230
231
  portable_import_publication_in_progress: boolean;
@@ -246,7 +247,20 @@ interface Status {
246
247
  interface ReplayGeneratedEnrichmentsResult {
247
248
  replayed: number;
248
249
  }
250
+ /** Logical key/value payload, excluding physical headers. */
251
+ interface LiveByteCategory {
252
+ records: number;
253
+ key_bytes: number;
254
+ value_bytes: number;
255
+ }
256
+ interface LiveByteAccounting {
257
+ metadata_catalog: LiveByteCategory;
258
+ index_catalog: LiveByteCategory;
259
+ control_documents: LiveByteCategory;
260
+ documents: LiveByteCategory;
261
+ }
249
262
  interface CheckReport {
263
+ live_accounting?: LiveByteAccounting | null;
250
264
  valid: boolean;
251
265
  file_size: number;
252
266
  valid_prefix_size: number;
@@ -582,4 +596,4 @@ declare function openHosted(path: string): Promise<Database>;
582
596
  */
583
597
  declare function createHosted(path: string): Promise<Database>;
584
598
 
585
- export { openWithOptions as A, platformLibraryFileName as B, type CheckReport as C, Database as D, resolveLibrary as E, GraphDirection as G, type InferenceOptions as I, type JsonInput as J, LibraryNotFoundError as L, type MemoryAdmissionStats as M, type NativeLibrary as N, OpenMode as O, type PullProgress as P, type RestoreOptions as R, type StableSnapshotReport as S, THREADING_SERIALIZED as T, type Uint64Like as U, type VacuumReport as V, type WriteIntent as W, type Capabilities as a, type CompactReport as b, InferenceMode as c, type InferenceStatus as d, type LibrarySource as e, NATIVE_STACK_SIZE as f, type OpenOptions as g, type PendingWorkStatus as h, Profile as i, type ReplayGeneratedEnrichmentsResult as j, type ResolvedLibrary as k, SUPPORTED_ABI_VERSION as l, type Status as m, Storage as n, type StorageStatus as o, type TTLCleanupOptions as p, TxnStatus as q, UnsupportedPlatformError as r, create as s, createHosted as t, createWithOptions as u, embeddedPlatformPackageName as v, open as w, openHosted as x, openReadonly as y, openStatusOnly as z };
599
+ export { openReadonly as A, openStatusOnly as B, type CheckReport as C, Database as D, openWithOptions as E, platformLibraryFileName as F, GraphDirection as G, resolveLibrary as H, type InferenceOptions as I, type JsonInput as J, LibraryNotFoundError as L, type MemoryAdmissionStats as M, type NativeLibrary as N, OpenMode as O, type PullProgress as P, type RestoreOptions as R, type StableSnapshotReport as S, THREADING_SERIALIZED as T, type Uint64Like as U, type VacuumReport as V, type WriteIntent as W, type Capabilities as a, type CompactReport as b, InferenceMode as c, type InferenceStatus as d, type LibrarySource as e, type LiveByteAccounting as f, type LiveByteCategory as g, NATIVE_STACK_SIZE as h, type OpenOptions as i, type PendingWorkStatus as j, Profile as k, type ReplayGeneratedEnrichmentsResult as l, type ResolvedLibrary as m, SUPPORTED_ABI_VERSION as n, type Status as o, Storage as p, type StorageStatus as q, type TTLCleanupOptions as r, TxnStatus as s, UnsupportedPlatformError as t, create as u, createHosted as v, createWithOptions as w, embeddedPlatformPackageName as x, open as y, openHosted as z };
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CheckReport, S as StableSnapshotReport, R as RestoreOptions, N as NativeLibrary, I as InferenceOptions, J as JsonInput, P as PullProgress, D as Database, U as Uint64Like } from './database-D9gL3wnT.cjs';
2
- export { a as Capabilities, b as CompactReport, G as GraphDirection, c as InferenceMode, d as InferenceStatus, L as LibraryNotFoundError, e as LibrarySource, f as MIN_THREAD_STACK_SIZE, M as MemoryAdmissionStats, O as OpenMode, g as OpenOptions, h as PendingWorkStatus, i as Profile, j as ReplayGeneratedEnrichmentsResult, k as ResolvedLibrary, l as SUPPORTED_ABI_VERSION, m as Status, n as Storage, o as StorageStatus, T as THREADING_SERIALIZED, p as TTLCleanupOptions, q as TxnStatus, r as UnsupportedPlatformError, V as VacuumReport, W as WriteIntent, s as create, t as createHosted, u as createWithOptions, v as embeddedPlatformPackageName, w as open, x as openHosted, y as openReadonly, z as openStatusOnly, A as openWithOptions, B as platformLibraryFileName, E as resolveLibrary } from './database-D9gL3wnT.cjs';
1
+ import { C as CheckReport, S as StableSnapshotReport, R as RestoreOptions, N as NativeLibrary, I as InferenceOptions, J as JsonInput, P as PullProgress, D as Database, U as Uint64Like } from './database-CDvUfb8Q.cjs';
2
+ export { a as Capabilities, b as CompactReport, G as GraphDirection, c as InferenceMode, d as InferenceStatus, L as LibraryNotFoundError, e as LibrarySource, f as LiveByteAccounting, g as LiveByteCategory, h as MIN_THREAD_STACK_SIZE, M as MemoryAdmissionStats, O as OpenMode, i as OpenOptions, j as PendingWorkStatus, k as Profile, l as ReplayGeneratedEnrichmentsResult, m as ResolvedLibrary, n as SUPPORTED_ABI_VERSION, o as Status, p as Storage, q as StorageStatus, T as THREADING_SERIALIZED, r as TTLCleanupOptions, s as TxnStatus, t as UnsupportedPlatformError, V as VacuumReport, W as WriteIntent, u as create, v as createHosted, w as createWithOptions, x as embeddedPlatformPackageName, y as open, z as openHosted, A as openReadonly, B as openStatusOnly, E as openWithOptions, F as platformLibraryFileName, H as resolveLibrary } from './database-CDvUfb8Q.cjs';
3
3
  import 'koffi';
4
4
 
5
5
  /** Thrown by validateAbi() when the loaded libantfly does not match the header this binding was written against. */
@@ -53,8 +53,9 @@ declare enum ErrorCode {
53
53
  */
54
54
  Unsupported = 8,
55
55
  /**
56
- * A bounded drain such as runUntilIdle detected a managed index making no
57
- * forward progress and gave up.
56
+ * Derived work stalled or failed. A batch may already have committed its
57
+ * primary write: inspect the error detail and pending-work diagnostics.
58
+ * Do not replay a batch reported as committed.
58
59
  */
59
60
  Stalled = 9,
60
61
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CheckReport, S as StableSnapshotReport, R as RestoreOptions, N as NativeLibrary, I as InferenceOptions, J as JsonInput, P as PullProgress, D as Database, U as Uint64Like } from './database-D9gL3wnT.js';
2
- export { a as Capabilities, b as CompactReport, G as GraphDirection, c as InferenceMode, d as InferenceStatus, L as LibraryNotFoundError, e as LibrarySource, f as MIN_THREAD_STACK_SIZE, M as MemoryAdmissionStats, O as OpenMode, g as OpenOptions, h as PendingWorkStatus, i as Profile, j as ReplayGeneratedEnrichmentsResult, k as ResolvedLibrary, l as SUPPORTED_ABI_VERSION, m as Status, n as Storage, o as StorageStatus, T as THREADING_SERIALIZED, p as TTLCleanupOptions, q as TxnStatus, r as UnsupportedPlatformError, V as VacuumReport, W as WriteIntent, s as create, t as createHosted, u as createWithOptions, v as embeddedPlatformPackageName, w as open, x as openHosted, y as openReadonly, z as openStatusOnly, A as openWithOptions, B as platformLibraryFileName, E as resolveLibrary } from './database-D9gL3wnT.js';
1
+ import { C as CheckReport, S as StableSnapshotReport, R as RestoreOptions, N as NativeLibrary, I as InferenceOptions, J as JsonInput, P as PullProgress, D as Database, U as Uint64Like } from './database-CDvUfb8Q.js';
2
+ export { a as Capabilities, b as CompactReport, G as GraphDirection, c as InferenceMode, d as InferenceStatus, L as LibraryNotFoundError, e as LibrarySource, f as LiveByteAccounting, g as LiveByteCategory, h as MIN_THREAD_STACK_SIZE, M as MemoryAdmissionStats, O as OpenMode, i as OpenOptions, j as PendingWorkStatus, k as Profile, l as ReplayGeneratedEnrichmentsResult, m as ResolvedLibrary, n as SUPPORTED_ABI_VERSION, o as Status, p as Storage, q as StorageStatus, T as THREADING_SERIALIZED, r as TTLCleanupOptions, s as TxnStatus, t as UnsupportedPlatformError, V as VacuumReport, W as WriteIntent, u as create, v as createHosted, w as createWithOptions, x as embeddedPlatformPackageName, y as open, z as openHosted, A as openReadonly, B as openStatusOnly, E as openWithOptions, F as platformLibraryFileName, H as resolveLibrary } from './database-CDvUfb8Q.js';
3
3
  import 'koffi';
4
4
 
5
5
  /** Thrown by validateAbi() when the loaded libantfly does not match the header this binding was written against. */
@@ -53,8 +53,9 @@ declare enum ErrorCode {
53
53
  */
54
54
  Unsupported = 8,
55
55
  /**
56
- * A bounded drain such as runUntilIdle detected a managed index making no
57
- * forward progress and gave up.
56
+ * Derived work stalled or failed. A batch may already have committed its
57
+ * primary write: inspect the error detail and pending-work diagnostics.
58
+ * Do not replay a batch reported as committed.
58
59
  */
59
60
  Stalled = 9,
60
61
  /**
package/dist/kysely.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Dialect, Driver, PostgresQueryCompiler, PostgresAdapter, Kysely, MigrationLockOptions, DatabaseIntrospector } from 'kysely';
2
- import { D as Database } from './database-D9gL3wnT.cjs';
2
+ import { D as Database } from './database-CDvUfb8Q.cjs';
3
3
  import 'koffi';
4
4
 
5
5
  declare class AntflyAdapter extends PostgresAdapter {
package/dist/kysely.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Dialect, Driver, PostgresQueryCompiler, PostgresAdapter, Kysely, MigrationLockOptions, DatabaseIntrospector } from 'kysely';
2
- import { D as Database } from './database-D9gL3wnT.js';
2
+ import { D as Database } from './database-CDvUfb8Q.js';
3
3
  import 'koffi';
4
4
 
5
5
  declare class AntflyAdapter extends PostgresAdapter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antfly/embedded",
3
- "version": "0.3.0-rc.7",
3
+ "version": "0.3.0-rc.9",
4
4
  "description": "TypeScript/Node binding for local Antfly databases and inference (libantfly C ABI)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -75,9 +75,9 @@
75
75
  "win32"
76
76
  ],
77
77
  "optionalDependencies": {
78
- "@antfly/embedded-darwin-arm64": "0.3.0-rc.7",
79
- "@antfly/embedded-linux-arm64": "0.3.0-rc.7",
80
- "@antfly/embedded-linux-x64": "0.3.0-rc.7"
78
+ "@antfly/embedded-darwin-arm64": "0.3.0-rc.9",
79
+ "@antfly/embedded-linux-arm64": "0.3.0-rc.9",
80
+ "@antfly/embedded-linux-x64": "0.3.0-rc.9"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "kysely": "^0.29.6"