wolbarg 0.5.3 → 0.5.4
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 +1 -1
- package/dist/index.cjs +874 -373
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +874 -373
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -49,7 +49,7 @@ declare const meta: {
|
|
|
49
49
|
* Schema is intentionally extensible for future providers (Postgres, cloud).
|
|
50
50
|
*/
|
|
51
51
|
/** Public operation names recorded as telemetry events. */
|
|
52
|
-
type TelemetryOperation = "remember" | "recall" | "forget" | "compress" | "rememberBatch" | "recallBatch" | "export" | "import" | "checkpoint" | "rollback" | "error" | "startup" | "shutdown" | "ingest" | "history" | "stats" | "clear" | "deleteCheckpoint" | "listCheckpoints" | "getCheckpoint" | "linkMemories" | "getRelated" | "graphQuery" | "rememberFromMessages";
|
|
52
|
+
type TelemetryOperation = "remember" | "update" | "recall" | "forget" | "compress" | "rememberBatch" | "recallBatch" | "export" | "import" | "checkpoint" | "rollback" | "error" | "startup" | "shutdown" | "ingest" | "history" | "stats" | "clear" | "deleteCheckpoint" | "listCheckpoints" | "getCheckpoint" | "linkMemories" | "getRelated" | "graphQuery" | "rememberFromMessages";
|
|
53
53
|
type TelemetryStatus = "ok" | "error" | "cancelled";
|
|
54
54
|
type TelemetryLogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
|
|
55
55
|
/** Stage-level latency breakdown recorded on each event. */
|
|
@@ -282,7 +282,7 @@ interface MmrConfig {
|
|
|
282
282
|
}
|
|
283
283
|
/** Retrieval pipeline defaults applied when constructing Wolbarg. */
|
|
284
284
|
interface RetrievalConfig {
|
|
285
|
-
/** Default over-fetch multiplier for candidate generation. Defaults to 4. */
|
|
285
|
+
/** Default over-fetch multiplier for candidate generation. Defaults to 2 (no filters) or 4 (with metadata filters). */
|
|
286
286
|
overFetchFactor?: number;
|
|
287
287
|
/** Default hybrid fusion weights. */
|
|
288
288
|
hybrid?: HybridConfig;
|
|
@@ -1426,7 +1426,7 @@ declare class Wolbarg<HasLlm extends boolean = false> {
|
|
|
1426
1426
|
declare function wolbarg$1(options: WolbargOptions): Wolbarg;
|
|
1427
1427
|
|
|
1428
1428
|
/** Published SDK semver — keep in sync with package.json `version`. */
|
|
1429
|
-
declare const SDK_VERSION = "0.5.
|
|
1429
|
+
declare const SDK_VERSION = "0.5.4";
|
|
1430
1430
|
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Operation-scoped errors with reason + suggestion for developer experience.
|
|
@@ -1609,6 +1609,10 @@ declare class SqliteStorageProvider implements StorageProvider {
|
|
|
1609
1609
|
private vectorDimensions;
|
|
1610
1610
|
private vectorBackend;
|
|
1611
1611
|
private sqliteVecLoaded;
|
|
1612
|
+
/** Tracks nesting depth for {@link withTransaction} so we can use savepoints. */
|
|
1613
|
+
private transactionDepth;
|
|
1614
|
+
/** Incrementing counter for deterministic savepoint names. */
|
|
1615
|
+
private savepointCounter;
|
|
1612
1616
|
/** Hot in-process ANN for blob backend (sqlite-vec unavailable platforms). */
|
|
1613
1617
|
private memoryIndex;
|
|
1614
1618
|
private memoryIndexDirty;
|
|
@@ -2009,6 +2013,7 @@ declare class Neo4jGraphProvider implements GraphProvider {
|
|
|
2009
2013
|
private requireDriver;
|
|
2010
2014
|
private withSession;
|
|
2011
2015
|
private run;
|
|
2016
|
+
private runOnSession;
|
|
2012
2017
|
private ensureMemoryNode;
|
|
2013
2018
|
linkMemories(fromId: string, toId: string, relation: string, metadata?: Record<string, unknown>): Promise<void>;
|
|
2014
2019
|
unlinkMemories(fromId: string, toId: string, relation?: string): Promise<void>;
|
|
@@ -2102,6 +2107,8 @@ declare class SqliteTelemetryProvider implements TelemetryProvider {
|
|
|
2102
2107
|
private flushing;
|
|
2103
2108
|
private closed;
|
|
2104
2109
|
private openPromise;
|
|
2110
|
+
private warnedQueueDrop;
|
|
2111
|
+
private warnedFlushFailure;
|
|
2105
2112
|
constructor(options: SqliteTelemetryProviderOptions);
|
|
2106
2113
|
open(): Promise<void>;
|
|
2107
2114
|
close(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare const meta: {
|
|
|
49
49
|
* Schema is intentionally extensible for future providers (Postgres, cloud).
|
|
50
50
|
*/
|
|
51
51
|
/** Public operation names recorded as telemetry events. */
|
|
52
|
-
type TelemetryOperation = "remember" | "recall" | "forget" | "compress" | "rememberBatch" | "recallBatch" | "export" | "import" | "checkpoint" | "rollback" | "error" | "startup" | "shutdown" | "ingest" | "history" | "stats" | "clear" | "deleteCheckpoint" | "listCheckpoints" | "getCheckpoint" | "linkMemories" | "getRelated" | "graphQuery" | "rememberFromMessages";
|
|
52
|
+
type TelemetryOperation = "remember" | "update" | "recall" | "forget" | "compress" | "rememberBatch" | "recallBatch" | "export" | "import" | "checkpoint" | "rollback" | "error" | "startup" | "shutdown" | "ingest" | "history" | "stats" | "clear" | "deleteCheckpoint" | "listCheckpoints" | "getCheckpoint" | "linkMemories" | "getRelated" | "graphQuery" | "rememberFromMessages";
|
|
53
53
|
type TelemetryStatus = "ok" | "error" | "cancelled";
|
|
54
54
|
type TelemetryLogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
|
|
55
55
|
/** Stage-level latency breakdown recorded on each event. */
|
|
@@ -282,7 +282,7 @@ interface MmrConfig {
|
|
|
282
282
|
}
|
|
283
283
|
/** Retrieval pipeline defaults applied when constructing Wolbarg. */
|
|
284
284
|
interface RetrievalConfig {
|
|
285
|
-
/** Default over-fetch multiplier for candidate generation. Defaults to 4. */
|
|
285
|
+
/** Default over-fetch multiplier for candidate generation. Defaults to 2 (no filters) or 4 (with metadata filters). */
|
|
286
286
|
overFetchFactor?: number;
|
|
287
287
|
/** Default hybrid fusion weights. */
|
|
288
288
|
hybrid?: HybridConfig;
|
|
@@ -1426,7 +1426,7 @@ declare class Wolbarg<HasLlm extends boolean = false> {
|
|
|
1426
1426
|
declare function wolbarg$1(options: WolbargOptions): Wolbarg;
|
|
1427
1427
|
|
|
1428
1428
|
/** Published SDK semver — keep in sync with package.json `version`. */
|
|
1429
|
-
declare const SDK_VERSION = "0.5.
|
|
1429
|
+
declare const SDK_VERSION = "0.5.4";
|
|
1430
1430
|
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Operation-scoped errors with reason + suggestion for developer experience.
|
|
@@ -1609,6 +1609,10 @@ declare class SqliteStorageProvider implements StorageProvider {
|
|
|
1609
1609
|
private vectorDimensions;
|
|
1610
1610
|
private vectorBackend;
|
|
1611
1611
|
private sqliteVecLoaded;
|
|
1612
|
+
/** Tracks nesting depth for {@link withTransaction} so we can use savepoints. */
|
|
1613
|
+
private transactionDepth;
|
|
1614
|
+
/** Incrementing counter for deterministic savepoint names. */
|
|
1615
|
+
private savepointCounter;
|
|
1612
1616
|
/** Hot in-process ANN for blob backend (sqlite-vec unavailable platforms). */
|
|
1613
1617
|
private memoryIndex;
|
|
1614
1618
|
private memoryIndexDirty;
|
|
@@ -2009,6 +2013,7 @@ declare class Neo4jGraphProvider implements GraphProvider {
|
|
|
2009
2013
|
private requireDriver;
|
|
2010
2014
|
private withSession;
|
|
2011
2015
|
private run;
|
|
2016
|
+
private runOnSession;
|
|
2012
2017
|
private ensureMemoryNode;
|
|
2013
2018
|
linkMemories(fromId: string, toId: string, relation: string, metadata?: Record<string, unknown>): Promise<void>;
|
|
2014
2019
|
unlinkMemories(fromId: string, toId: string, relation?: string): Promise<void>;
|
|
@@ -2102,6 +2107,8 @@ declare class SqliteTelemetryProvider implements TelemetryProvider {
|
|
|
2102
2107
|
private flushing;
|
|
2103
2108
|
private closed;
|
|
2104
2109
|
private openPromise;
|
|
2110
|
+
private warnedQueueDrop;
|
|
2111
|
+
private warnedFlushFailure;
|
|
2105
2112
|
constructor(options: SqliteTelemetryProviderOptions);
|
|
2106
2113
|
open(): Promise<void>;
|
|
2107
2114
|
close(): Promise<void>;
|