@kb-labs/core-platform 1.0.0 → 1.2.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.
Files changed (29) hide show
  1. package/dist/adapters/index.d.cts +5 -5
  2. package/dist/adapters/index.d.ts +5 -5
  3. package/dist/artifacts-CrJhdBm-.d.cts +74 -0
  4. package/dist/artifacts-CrJhdBm-.d.ts +74 -0
  5. package/dist/{artifacts-BUghvkUU.d.cts → database-CJ5eZJB8.d.ts} +61 -14
  6. package/dist/{artifacts-Bd-1UVTw.d.ts → database-DUeYQUg-.d.cts} +61 -14
  7. package/dist/index.d.cts +10 -8
  8. package/dist/index.d.ts +10 -8
  9. package/dist/{artifacts-DrVnkLzu.d.cts → invoke-BzOIin5Z.d.cts} +427 -74
  10. package/dist/{artifacts-DrVnkLzu.d.ts → invoke-BzOIin5Z.d.ts} +427 -74
  11. package/dist/{log-reader-uOHBLBax.d.ts → log-reader-B8HGaAKp.d.ts} +1 -1
  12. package/dist/{log-reader-BVohbSMB.d.cts → log-reader-DwHla8Sz.d.cts} +1 -1
  13. package/dist/noop/adapters/index.d.cts +16 -63
  14. package/dist/noop/adapters/index.d.ts +16 -63
  15. package/dist/noop/index.cjs +34 -33
  16. package/dist/noop/index.cjs.map +1 -1
  17. package/dist/noop/index.d.cts +4 -4
  18. package/dist/noop/index.d.ts +4 -4
  19. package/dist/noop/index.js +33 -33
  20. package/dist/noop/index.js.map +1 -1
  21. package/dist/serializable/index.cjs.map +1 -1
  22. package/dist/serializable/index.d.cts +2 -0
  23. package/dist/serializable/index.d.ts +2 -0
  24. package/dist/serializable/index.js.map +1 -1
  25. package/dist/{snapshot-provider--COac4P-.d.ts → snapshot-provider-BeZmFkse.d.cts} +49 -99
  26. package/dist/{snapshot-provider-nE9wuc1C.d.cts → snapshot-provider-CNO_x3lV.d.ts} +49 -99
  27. package/package.json +14 -14
  28. package/dist/database-DGV6a1nj.d.cts +0 -427
  29. package/dist/database-DGV6a1nj.d.ts +0 -427
@@ -1,8 +1,8 @@
1
- export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, t as AttachWorkspaceRequest, y as CaptureSnapshotRequest, C as CreateEnvironmentRequest, n as EnvironmentDescriptor, m as EnvironmentEndpoint, l as EnvironmentLease, p as EnvironmentProviderCapabilities, k as EnvironmentResources, j as EnvironmentStatus, o as EnvironmentStatusResult, h as ExecuteOptions, E as ExecutionRequest, g as ExecutionResult, i as IEnvironmentProvider, f as IExecutionBackend, I as ILogPersistence, x as ISnapshotProvider, q as IWorkspaceProvider, L as LogPersistenceConfig, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, B as RestoreSnapshotResult, z as SnapshotDescriptor, F as SnapshotGarbageCollectRequest, G as SnapshotGarbageCollectResult, H as SnapshotProviderCapabilities, S as SnapshotStatus, D as SnapshotStatusResult, u as WorkspaceAttachment, s as WorkspaceDescriptor, r as WorkspaceMount, w as WorkspaceProviderCapabilities, W as WorkspaceStatus, v as WorkspaceStatusResult } from '../snapshot-provider-nE9wuc1C.cjs';
2
- import { L as LogRecord, a as LogQuery } from '../artifacts-DrVnkLzu.cjs';
3
- export { A as AnalyticsContext, b as AnalyticsEvent, a5 as ArtifactMeta, a6 as ArtifactWriteOptions, B as BufferStatus, e as DailyStats, D as DlqStatus, $ as EventHandler, E as EventsQuery, c as EventsResponse, d as EventsStats, I as IAnalytics, a4 as IArtifacts, O as ICache, P as IConfig, N as IEmbeddings, _ as IEventBus, a1 as IInvoke, i as ILLM, J as ILLMRouter, X as ILogBuffer, W as ILogger, Q as IStorage, f as IVectorStore, a2 as InvokeRequest, a3 as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, x as LLMMessage, j as LLMOptions, r as LLMProtocolCapabilities, G as LLMResolution, k as LLMResponse, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, y as LLMToolCallOptions, z as LLMToolCallResponse, Y as LogLevel, S as StatsQuery, R as StorageMetadata, T as TIER_ORDER, a0 as Unsubscribe, U as UseLLMOptions, h as VectorFilter, V as VectorRecord, g as VectorSearchResult, Z as generateLogId, K as isTierHigher, M as isTierLower } from '../artifacts-DrVnkLzu.cjs';
4
- export { B as BaseDocument, D as DocumentFilter, c as DocumentUpdate, F as FilterOperators, d as FindOptions, g as IDatabaseProvider, b as IDocumentDatabase, e as IKeyValueDatabase, I as ISQLDatabase, f as ITimeSeriesDatabase, S as SQLQueryResult, a as SQLTransaction, T as TimeSeriesPoint } from '../database-DGV6a1nj.cjs';
5
- export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from '../log-reader-BVohbSMB.cjs';
1
+ export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, q as AttachWorkspaceRequest, v as CaptureSnapshotRequest, C as CreateEnvironmentRequest, k as EnvironmentDescriptor, j as EnvironmentEndpoint, i as EnvironmentLease, m as EnvironmentProviderCapabilities, h as EnvironmentResources, E as EnvironmentStatus, l as EnvironmentStatusResult, g as IEnvironmentProvider, I as ILogPersistence, u as ISnapshotProvider, n as IWorkspaceProvider, L as LogPersistenceConfig, f as LogRetentionPolicy, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, x as RestoreSnapshotResult, w as SnapshotDescriptor, z as SnapshotGarbageCollectRequest, B as SnapshotGarbageCollectResult, D as SnapshotProviderCapabilities, S as SnapshotStatus, y as SnapshotStatusResult, r as WorkspaceAttachment, p as WorkspaceDescriptor, o as WorkspaceMount, t as WorkspaceProviderCapabilities, W as WorkspaceStatus, s as WorkspaceStatusResult } from '../snapshot-provider-BeZmFkse.cjs';
2
+ import { L as LogRecord, a as LogQuery } from '../invoke-BzOIin5Z.cjs';
3
+ export { A as AnalyticsContext, b as AnalyticsEvent, _ as BaseDocument, B as BufferStatus, e as DailyStats, D as DlqStatus, $ as DocumentFilter, a0 as DocumentUpdate, ac as EventHandler, E as EventsQuery, c as EventsResponse, d as EventsStats, a1 as FilterOperators, a2 as FindOptions, I as IAnalytics, O as ICache, P as IConfig, a6 as IDatabaseProvider, Z as IDocumentDatabase, N as IEmbeddings, ab as IEventBus, ae as IInvoke, a3 as IKeyValueDatabase, i as ILLM, J as ILLMRouter, a8 as ILogBuffer, a7 as ILogger, W as ISQLDatabase, Q as IStorage, a4 as ITimeSeriesDatabase, f as IVectorStore, af as InvokeRequest, ag as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, x as LLMMessage, j as LLMOptions, r as LLMProtocolCapabilities, G as LLMResolution, k as LLMResponse, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, y as LLMToolCallOptions, z as LLMToolCallResponse, a9 as LogLevel, X as SQLQueryResult, Y as SQLTransaction, S as StatsQuery, R as StorageMetadata, T as TIER_ORDER, a5 as TimeSeriesPoint, ad as Unsubscribe, U as UseLLMOptions, h as VectorFilter, V as VectorRecord, g as VectorSearchResult, aa as generateLogId, K as isTierHigher, M as isTierLower } from '../invoke-BzOIin5Z.cjs';
4
+ export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from '../log-reader-DwHla8Sz.cjs';
5
+ export { A as ArtifactMeta, a as ArtifactWriteOptions, I as IArtifacts } from '../artifacts-CrJhdBm-.cjs';
6
6
 
7
7
  /**
8
8
  * @module @kb-labs/core-platform/adapters/log-ring-buffer
@@ -1,8 +1,8 @@
1
- export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, t as AttachWorkspaceRequest, y as CaptureSnapshotRequest, C as CreateEnvironmentRequest, n as EnvironmentDescriptor, m as EnvironmentEndpoint, l as EnvironmentLease, p as EnvironmentProviderCapabilities, k as EnvironmentResources, j as EnvironmentStatus, o as EnvironmentStatusResult, h as ExecuteOptions, E as ExecutionRequest, g as ExecutionResult, i as IEnvironmentProvider, f as IExecutionBackend, I as ILogPersistence, x as ISnapshotProvider, q as IWorkspaceProvider, L as LogPersistenceConfig, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, B as RestoreSnapshotResult, z as SnapshotDescriptor, F as SnapshotGarbageCollectRequest, G as SnapshotGarbageCollectResult, H as SnapshotProviderCapabilities, S as SnapshotStatus, D as SnapshotStatusResult, u as WorkspaceAttachment, s as WorkspaceDescriptor, r as WorkspaceMount, w as WorkspaceProviderCapabilities, W as WorkspaceStatus, v as WorkspaceStatusResult } from '../snapshot-provider--COac4P-.js';
2
- import { L as LogRecord, a as LogQuery } from '../artifacts-DrVnkLzu.js';
3
- export { A as AnalyticsContext, b as AnalyticsEvent, a5 as ArtifactMeta, a6 as ArtifactWriteOptions, B as BufferStatus, e as DailyStats, D as DlqStatus, $ as EventHandler, E as EventsQuery, c as EventsResponse, d as EventsStats, I as IAnalytics, a4 as IArtifacts, O as ICache, P as IConfig, N as IEmbeddings, _ as IEventBus, a1 as IInvoke, i as ILLM, J as ILLMRouter, X as ILogBuffer, W as ILogger, Q as IStorage, f as IVectorStore, a2 as InvokeRequest, a3 as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, x as LLMMessage, j as LLMOptions, r as LLMProtocolCapabilities, G as LLMResolution, k as LLMResponse, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, y as LLMToolCallOptions, z as LLMToolCallResponse, Y as LogLevel, S as StatsQuery, R as StorageMetadata, T as TIER_ORDER, a0 as Unsubscribe, U as UseLLMOptions, h as VectorFilter, V as VectorRecord, g as VectorSearchResult, Z as generateLogId, K as isTierHigher, M as isTierLower } from '../artifacts-DrVnkLzu.js';
4
- export { B as BaseDocument, D as DocumentFilter, c as DocumentUpdate, F as FilterOperators, d as FindOptions, g as IDatabaseProvider, b as IDocumentDatabase, e as IKeyValueDatabase, I as ISQLDatabase, f as ITimeSeriesDatabase, S as SQLQueryResult, a as SQLTransaction, T as TimeSeriesPoint } from '../database-DGV6a1nj.js';
5
- export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from '../log-reader-uOHBLBax.js';
1
+ export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, q as AttachWorkspaceRequest, v as CaptureSnapshotRequest, C as CreateEnvironmentRequest, k as EnvironmentDescriptor, j as EnvironmentEndpoint, i as EnvironmentLease, m as EnvironmentProviderCapabilities, h as EnvironmentResources, E as EnvironmentStatus, l as EnvironmentStatusResult, g as IEnvironmentProvider, I as ILogPersistence, u as ISnapshotProvider, n as IWorkspaceProvider, L as LogPersistenceConfig, f as LogRetentionPolicy, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, x as RestoreSnapshotResult, w as SnapshotDescriptor, z as SnapshotGarbageCollectRequest, B as SnapshotGarbageCollectResult, D as SnapshotProviderCapabilities, S as SnapshotStatus, y as SnapshotStatusResult, r as WorkspaceAttachment, p as WorkspaceDescriptor, o as WorkspaceMount, t as WorkspaceProviderCapabilities, W as WorkspaceStatus, s as WorkspaceStatusResult } from '../snapshot-provider-CNO_x3lV.js';
2
+ import { L as LogRecord, a as LogQuery } from '../invoke-BzOIin5Z.js';
3
+ export { A as AnalyticsContext, b as AnalyticsEvent, _ as BaseDocument, B as BufferStatus, e as DailyStats, D as DlqStatus, $ as DocumentFilter, a0 as DocumentUpdate, ac as EventHandler, E as EventsQuery, c as EventsResponse, d as EventsStats, a1 as FilterOperators, a2 as FindOptions, I as IAnalytics, O as ICache, P as IConfig, a6 as IDatabaseProvider, Z as IDocumentDatabase, N as IEmbeddings, ab as IEventBus, ae as IInvoke, a3 as IKeyValueDatabase, i as ILLM, J as ILLMRouter, a8 as ILogBuffer, a7 as ILogger, W as ISQLDatabase, Q as IStorage, a4 as ITimeSeriesDatabase, f as IVectorStore, af as InvokeRequest, ag as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, x as LLMMessage, j as LLMOptions, r as LLMProtocolCapabilities, G as LLMResolution, k as LLMResponse, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, y as LLMToolCallOptions, z as LLMToolCallResponse, a9 as LogLevel, X as SQLQueryResult, Y as SQLTransaction, S as StatsQuery, R as StorageMetadata, T as TIER_ORDER, a5 as TimeSeriesPoint, ad as Unsubscribe, U as UseLLMOptions, h as VectorFilter, V as VectorRecord, g as VectorSearchResult, aa as generateLogId, K as isTierHigher, M as isTierLower } from '../invoke-BzOIin5Z.js';
4
+ export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from '../log-reader-B8HGaAKp.js';
5
+ export { A as ArtifactMeta, a as ArtifactWriteOptions, I as IArtifacts } from '../artifacts-CrJhdBm-.js';
6
6
 
7
7
  /**
8
8
  * @module @kb-labs/core-platform/adapters/log-ring-buffer
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @module @kb-labs/core-platform/adapters/artifacts
3
+ * Artifact storage interface.
4
+ */
5
+ /**
6
+ * Artifact metadata.
7
+ */
8
+ interface ArtifactMeta {
9
+ /** Artifact key/path */
10
+ key: string;
11
+ /** Content type (e.g., 'application/json') */
12
+ contentType?: string;
13
+ /** Size in bytes */
14
+ size?: number;
15
+ /** Creation timestamp */
16
+ createdAt?: Date;
17
+ /** Last modified timestamp */
18
+ updatedAt?: Date;
19
+ /** Custom metadata */
20
+ metadata?: Record<string, unknown>;
21
+ }
22
+ /**
23
+ * Artifact write options.
24
+ */
25
+ interface ArtifactWriteOptions {
26
+ /** Content type */
27
+ contentType?: string;
28
+ /** Custom metadata */
29
+ metadata?: Record<string, unknown>;
30
+ /** TTL in seconds (optional expiration) */
31
+ ttl?: number;
32
+ }
33
+ /**
34
+ * Artifact storage interface.
35
+ * Provides structured storage for plugin outputs.
36
+ */
37
+ interface IArtifacts {
38
+ /**
39
+ * Write an artifact.
40
+ * @param key - Artifact key/path
41
+ * @param data - Data to write (will be serialized)
42
+ * @param options - Write options
43
+ */
44
+ write(key: string, data: unknown, options?: ArtifactWriteOptions): Promise<void>;
45
+ /**
46
+ * Read an artifact.
47
+ * @param key - Artifact key/path
48
+ * @returns Artifact data or null if not found
49
+ */
50
+ read<T = unknown>(key: string): Promise<T | null>;
51
+ /**
52
+ * Check if artifact exists.
53
+ * @param key - Artifact key/path
54
+ */
55
+ exists(key: string): Promise<boolean>;
56
+ /**
57
+ * Delete an artifact.
58
+ * @param key - Artifact key/path
59
+ */
60
+ delete(key: string): Promise<void>;
61
+ /**
62
+ * List artifacts by prefix.
63
+ * @param prefix - Key prefix
64
+ * @returns List of artifact metadata
65
+ */
66
+ list(prefix: string): Promise<ArtifactMeta[]>;
67
+ /**
68
+ * Get artifact metadata.
69
+ * @param key - Artifact key/path
70
+ */
71
+ getMeta(key: string): Promise<ArtifactMeta | null>;
72
+ }
73
+
74
+ export type { ArtifactMeta as A, IArtifacts as I, ArtifactWriteOptions as a };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @module @kb-labs/core-platform/adapters/artifacts
3
+ * Artifact storage interface.
4
+ */
5
+ /**
6
+ * Artifact metadata.
7
+ */
8
+ interface ArtifactMeta {
9
+ /** Artifact key/path */
10
+ key: string;
11
+ /** Content type (e.g., 'application/json') */
12
+ contentType?: string;
13
+ /** Size in bytes */
14
+ size?: number;
15
+ /** Creation timestamp */
16
+ createdAt?: Date;
17
+ /** Last modified timestamp */
18
+ updatedAt?: Date;
19
+ /** Custom metadata */
20
+ metadata?: Record<string, unknown>;
21
+ }
22
+ /**
23
+ * Artifact write options.
24
+ */
25
+ interface ArtifactWriteOptions {
26
+ /** Content type */
27
+ contentType?: string;
28
+ /** Custom metadata */
29
+ metadata?: Record<string, unknown>;
30
+ /** TTL in seconds (optional expiration) */
31
+ ttl?: number;
32
+ }
33
+ /**
34
+ * Artifact storage interface.
35
+ * Provides structured storage for plugin outputs.
36
+ */
37
+ interface IArtifacts {
38
+ /**
39
+ * Write an artifact.
40
+ * @param key - Artifact key/path
41
+ * @param data - Data to write (will be serialized)
42
+ * @param options - Write options
43
+ */
44
+ write(key: string, data: unknown, options?: ArtifactWriteOptions): Promise<void>;
45
+ /**
46
+ * Read an artifact.
47
+ * @param key - Artifact key/path
48
+ * @returns Artifact data or null if not found
49
+ */
50
+ read<T = unknown>(key: string): Promise<T | null>;
51
+ /**
52
+ * Check if artifact exists.
53
+ * @param key - Artifact key/path
54
+ */
55
+ exists(key: string): Promise<boolean>;
56
+ /**
57
+ * Delete an artifact.
58
+ * @param key - Artifact key/path
59
+ */
60
+ delete(key: string): Promise<void>;
61
+ /**
62
+ * List artifacts by prefix.
63
+ * @param prefix - Key prefix
64
+ * @returns List of artifact metadata
65
+ */
66
+ list(prefix: string): Promise<ArtifactMeta[]>;
67
+ /**
68
+ * Get artifact metadata.
69
+ * @param key - Artifact key/path
70
+ */
71
+ getMeta(key: string): Promise<ArtifactMeta | null>;
72
+ }
73
+
74
+ export type { ArtifactMeta as A, IArtifacts as I, ArtifactWriteOptions as a };
@@ -1,4 +1,4 @@
1
- import { I as IAnalytics, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, i as ILLM, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, N as IEmbeddings, O as ICache, P as IConfig, Q as IStorage, R as StorageMetadata, W as ILogger, _ as IEventBus, $ as EventHandler, a0 as Unsubscribe, a1 as IInvoke, a2 as InvokeRequest, a3 as InvokeResponse, a4 as IArtifacts, a6 as ArtifactWriteOptions, a5 as ArtifactMeta } from './artifacts-DrVnkLzu.cjs';
1
+ import { I as IAnalytics, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, i as ILLM, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, N as IEmbeddings, O as ICache, P as IConfig, Q as IStorage, R as StorageMetadata, a7 as ILogger, ab as IEventBus, ac as EventHandler, ad as Unsubscribe, ae as IInvoke, af as InvokeRequest, ag as InvokeResponse, W as ISQLDatabase, X as SQLQueryResult, Y as SQLTransaction, Z as IDocumentDatabase, _ as BaseDocument, $ as DocumentFilter, a2 as FindOptions, a0 as DocumentUpdate, a3 as IKeyValueDatabase, a4 as ITimeSeriesDatabase, a5 as TimeSeriesPoint, a6 as IDatabaseProvider } from './invoke-BzOIin5Z.js';
2
2
 
3
3
  /**
4
4
  * @module @kb-labs/core-platform/noop/adapters/analytics
@@ -252,22 +252,69 @@ declare class NoOpInvoke implements IInvoke {
252
252
  }
253
253
 
254
254
  /**
255
- * @module @kb-labs/core-platform/noop/adapters/artifacts
256
- * In-memory implementation of IArtifacts.
255
+ * @module @kb-labs/core-platform/noop/adapters/database
256
+ * NoOp database implementations for testing.
257
+ *
258
+ * These adapters throw errors when called - they exist only to satisfy
259
+ * type requirements when database access is not configured.
257
260
  */
258
261
 
259
262
  /**
260
- * In-memory artifacts storage.
261
- * Useful for testing and development.
263
+ * NoOp SQL database - throws on all operations.
264
+ * Used when SQL database is not configured.
262
265
  */
263
- declare class MemoryArtifacts implements IArtifacts {
264
- private store;
265
- write(key: string, data: unknown, options?: ArtifactWriteOptions): Promise<void>;
266
- read<T = unknown>(key: string): Promise<T | null>;
267
- exists(key: string): Promise<boolean>;
268
- delete(key: string): Promise<void>;
269
- list(prefix: string): Promise<ArtifactMeta[]>;
270
- getMeta(key: string): Promise<ArtifactMeta | null>;
266
+ declare class NoOpSQLDatabase implements ISQLDatabase {
267
+ query<T = unknown>(_sql: string, _params?: unknown[]): Promise<SQLQueryResult<T>>;
268
+ transaction(): Promise<SQLTransaction>;
269
+ close(): Promise<void>;
270
+ }
271
+ /**
272
+ * NoOp document database - throws on all operations.
273
+ * Used when document database is not configured.
274
+ */
275
+ declare class NoOpDocumentDatabase implements IDocumentDatabase {
276
+ find<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>, _options?: FindOptions): Promise<T[]>;
277
+ findById<T extends BaseDocument>(_collection: string, _id: string): Promise<T | null>;
278
+ insertOne<T extends BaseDocument>(_collection: string, _document: Omit<T, 'id' | 'createdAt' | 'updatedAt'>): Promise<T>;
279
+ updateMany<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>, _update: DocumentUpdate<T>): Promise<number>;
280
+ updateById<T extends BaseDocument>(_collection: string, _id: string, _update: DocumentUpdate<T>): Promise<T | null>;
281
+ deleteMany<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>): Promise<number>;
282
+ deleteById(_collection: string, _id: string): Promise<boolean>;
283
+ count<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>): Promise<number>;
284
+ close(): Promise<void>;
285
+ }
286
+ /**
287
+ * NoOp key-value database - throws on all operations.
288
+ * Used when KV database is not configured.
289
+ */
290
+ declare class NoOpKVDatabase implements IKeyValueDatabase {
291
+ get(_key: string): Promise<string | null>;
292
+ set(_key: string, _value: string, _ttlMs?: number): Promise<void>;
293
+ delete(_key: string): Promise<boolean>;
294
+ exists(_key: string): Promise<boolean>;
295
+ keys(_pattern: string): Promise<string[]>;
296
+ close(): Promise<void>;
297
+ }
298
+ /**
299
+ * NoOp time-series database - throws on all operations.
300
+ * Used when time-series database is not configured.
301
+ */
302
+ declare class NoOpTimeSeriesDatabase implements ITimeSeriesDatabase {
303
+ write(_metric: string, _point: TimeSeriesPoint): Promise<void>;
304
+ writeBatch(_metric: string, _points: TimeSeriesPoint[]): Promise<void>;
305
+ query(_metric: string, _startTime: number, _endTime: number, _tags?: Record<string, string>): Promise<TimeSeriesPoint[]>;
306
+ close(): Promise<void>;
307
+ }
308
+ /**
309
+ * NoOp database provider - returns NoOp adapters for all database types.
310
+ * Used when databases are not configured.
311
+ */
312
+ declare class NoOpDatabaseProvider implements IDatabaseProvider {
313
+ getSQLDatabase(_name: string): Promise<ISQLDatabase>;
314
+ getDocumentDatabase(_name: string): Promise<IDocumentDatabase>;
315
+ getKeyValueDatabase(_name: string): Promise<IKeyValueDatabase>;
316
+ getTimeSeriesDatabase(_name: string): Promise<ITimeSeriesDatabase>;
317
+ close(): Promise<void>;
271
318
  }
272
319
 
273
- export { ConsoleLogger as C, MockLLM as M, NoOpLogger as N, MemoryCache as a, MockEmbeddings as b, MemoryVectorStore as c, MemoryStorage as d, NoOpAnalytics as e, NoOpEventBus as f, NoOpConfig as g, MemoryEventBus as h, NoOpInvoke as i, MemoryArtifacts as j };
320
+ export { ConsoleLogger as C, MockLLM as M, NoOpLogger as N, MemoryCache as a, MockEmbeddings as b, MemoryVectorStore as c, MemoryStorage as d, NoOpAnalytics as e, NoOpEventBus as f, NoOpConfig as g, MemoryEventBus as h, NoOpInvoke as i, NoOpSQLDatabase as j, NoOpDocumentDatabase as k, NoOpKVDatabase as l, NoOpTimeSeriesDatabase as m, NoOpDatabaseProvider as n };
@@ -1,4 +1,4 @@
1
- import { I as IAnalytics, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, i as ILLM, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, N as IEmbeddings, O as ICache, P as IConfig, Q as IStorage, R as StorageMetadata, W as ILogger, _ as IEventBus, $ as EventHandler, a0 as Unsubscribe, a1 as IInvoke, a2 as InvokeRequest, a3 as InvokeResponse, a4 as IArtifacts, a6 as ArtifactWriteOptions, a5 as ArtifactMeta } from './artifacts-DrVnkLzu.js';
1
+ import { I as IAnalytics, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, i as ILLM, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, N as IEmbeddings, O as ICache, P as IConfig, Q as IStorage, R as StorageMetadata, a7 as ILogger, ab as IEventBus, ac as EventHandler, ad as Unsubscribe, ae as IInvoke, af as InvokeRequest, ag as InvokeResponse, W as ISQLDatabase, X as SQLQueryResult, Y as SQLTransaction, Z as IDocumentDatabase, _ as BaseDocument, $ as DocumentFilter, a2 as FindOptions, a0 as DocumentUpdate, a3 as IKeyValueDatabase, a4 as ITimeSeriesDatabase, a5 as TimeSeriesPoint, a6 as IDatabaseProvider } from './invoke-BzOIin5Z.cjs';
2
2
 
3
3
  /**
4
4
  * @module @kb-labs/core-platform/noop/adapters/analytics
@@ -252,22 +252,69 @@ declare class NoOpInvoke implements IInvoke {
252
252
  }
253
253
 
254
254
  /**
255
- * @module @kb-labs/core-platform/noop/adapters/artifacts
256
- * In-memory implementation of IArtifacts.
255
+ * @module @kb-labs/core-platform/noop/adapters/database
256
+ * NoOp database implementations for testing.
257
+ *
258
+ * These adapters throw errors when called - they exist only to satisfy
259
+ * type requirements when database access is not configured.
257
260
  */
258
261
 
259
262
  /**
260
- * In-memory artifacts storage.
261
- * Useful for testing and development.
263
+ * NoOp SQL database - throws on all operations.
264
+ * Used when SQL database is not configured.
262
265
  */
263
- declare class MemoryArtifacts implements IArtifacts {
264
- private store;
265
- write(key: string, data: unknown, options?: ArtifactWriteOptions): Promise<void>;
266
- read<T = unknown>(key: string): Promise<T | null>;
267
- exists(key: string): Promise<boolean>;
268
- delete(key: string): Promise<void>;
269
- list(prefix: string): Promise<ArtifactMeta[]>;
270
- getMeta(key: string): Promise<ArtifactMeta | null>;
266
+ declare class NoOpSQLDatabase implements ISQLDatabase {
267
+ query<T = unknown>(_sql: string, _params?: unknown[]): Promise<SQLQueryResult<T>>;
268
+ transaction(): Promise<SQLTransaction>;
269
+ close(): Promise<void>;
270
+ }
271
+ /**
272
+ * NoOp document database - throws on all operations.
273
+ * Used when document database is not configured.
274
+ */
275
+ declare class NoOpDocumentDatabase implements IDocumentDatabase {
276
+ find<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>, _options?: FindOptions): Promise<T[]>;
277
+ findById<T extends BaseDocument>(_collection: string, _id: string): Promise<T | null>;
278
+ insertOne<T extends BaseDocument>(_collection: string, _document: Omit<T, 'id' | 'createdAt' | 'updatedAt'>): Promise<T>;
279
+ updateMany<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>, _update: DocumentUpdate<T>): Promise<number>;
280
+ updateById<T extends BaseDocument>(_collection: string, _id: string, _update: DocumentUpdate<T>): Promise<T | null>;
281
+ deleteMany<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>): Promise<number>;
282
+ deleteById(_collection: string, _id: string): Promise<boolean>;
283
+ count<T extends BaseDocument>(_collection: string, _filter: DocumentFilter<T>): Promise<number>;
284
+ close(): Promise<void>;
285
+ }
286
+ /**
287
+ * NoOp key-value database - throws on all operations.
288
+ * Used when KV database is not configured.
289
+ */
290
+ declare class NoOpKVDatabase implements IKeyValueDatabase {
291
+ get(_key: string): Promise<string | null>;
292
+ set(_key: string, _value: string, _ttlMs?: number): Promise<void>;
293
+ delete(_key: string): Promise<boolean>;
294
+ exists(_key: string): Promise<boolean>;
295
+ keys(_pattern: string): Promise<string[]>;
296
+ close(): Promise<void>;
297
+ }
298
+ /**
299
+ * NoOp time-series database - throws on all operations.
300
+ * Used when time-series database is not configured.
301
+ */
302
+ declare class NoOpTimeSeriesDatabase implements ITimeSeriesDatabase {
303
+ write(_metric: string, _point: TimeSeriesPoint): Promise<void>;
304
+ writeBatch(_metric: string, _points: TimeSeriesPoint[]): Promise<void>;
305
+ query(_metric: string, _startTime: number, _endTime: number, _tags?: Record<string, string>): Promise<TimeSeriesPoint[]>;
306
+ close(): Promise<void>;
307
+ }
308
+ /**
309
+ * NoOp database provider - returns NoOp adapters for all database types.
310
+ * Used when databases are not configured.
311
+ */
312
+ declare class NoOpDatabaseProvider implements IDatabaseProvider {
313
+ getSQLDatabase(_name: string): Promise<ISQLDatabase>;
314
+ getDocumentDatabase(_name: string): Promise<IDocumentDatabase>;
315
+ getKeyValueDatabase(_name: string): Promise<IKeyValueDatabase>;
316
+ getTimeSeriesDatabase(_name: string): Promise<ITimeSeriesDatabase>;
317
+ close(): Promise<void>;
271
318
  }
272
319
 
273
- export { ConsoleLogger as C, MockLLM as M, NoOpLogger as N, MemoryCache as a, MockEmbeddings as b, MemoryVectorStore as c, MemoryStorage as d, NoOpAnalytics as e, NoOpEventBus as f, NoOpConfig as g, MemoryEventBus as h, NoOpInvoke as i, MemoryArtifacts as j };
320
+ export { ConsoleLogger as C, MockLLM as M, NoOpLogger as N, MemoryCache as a, MockEmbeddings as b, MemoryVectorStore as c, MemoryStorage as d, NoOpAnalytics as e, NoOpEventBus as f, NoOpConfig as g, MemoryEventBus as h, NoOpInvoke as i, NoOpSQLDatabase as j, NoOpDocumentDatabase as k, NoOpKVDatabase as l, NoOpTimeSeriesDatabase as m, NoOpDatabaseProvider as n };
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, t as AttachWorkspaceRequest, y as CaptureSnapshotRequest, C as CreateEnvironmentRequest, n as EnvironmentDescriptor, m as EnvironmentEndpoint, l as EnvironmentLease, p as EnvironmentProviderCapabilities, k as EnvironmentResources, j as EnvironmentStatus, o as EnvironmentStatusResult, h as ExecuteOptions, E as ExecutionRequest, g as ExecutionResult, i as IEnvironmentProvider, f as IExecutionBackend, I as ILogPersistence, x as ISnapshotProvider, q as IWorkspaceProvider, L as LogPersistenceConfig, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, B as RestoreSnapshotResult, z as SnapshotDescriptor, F as SnapshotGarbageCollectRequest, G as SnapshotGarbageCollectResult, H as SnapshotProviderCapabilities, S as SnapshotStatus, D as SnapshotStatusResult, u as WorkspaceAttachment, s as WorkspaceDescriptor, r as WorkspaceMount, w as WorkspaceProviderCapabilities, W as WorkspaceStatus, v as WorkspaceStatusResult } from './snapshot-provider-nE9wuc1C.cjs';
2
- import { i as ILLM, I as IAnalytics, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, x as LLMMessage, y as LLMToolCallOptions, z as LLMToolCallResponse, N as IEmbeddings, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, O as ICache, Q as IStorage, E as EventsQuery, c as EventsResponse, d as EventsStats, B as BufferStatus, D as DlqStatus, W as ILogger, P as IConfig, _ as IEventBus, a1 as IInvoke, a4 as IArtifacts } from './artifacts-DrVnkLzu.cjs';
3
- export { a5 as ArtifactMeta, a6 as ArtifactWriteOptions, $ as EventHandler, J as ILLMRouter, X as ILogBuffer, a2 as InvokeRequest, a3 as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, a7 as LLMRequestMetadata, G as LLMResolution, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, Y as LogLevel, a as LogQuery, L as LogRecord, T as TIER_ORDER, a0 as Unsubscribe, U as UseLLMOptions, K as isTierHigher, M as isTierLower } from './artifacts-DrVnkLzu.cjs';
4
- export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from './log-reader-BVohbSMB.cjs';
1
+ export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, q as AttachWorkspaceRequest, v as CaptureSnapshotRequest, C as CreateEnvironmentRequest, k as EnvironmentDescriptor, j as EnvironmentEndpoint, i as EnvironmentLease, m as EnvironmentProviderCapabilities, h as EnvironmentResources, E as EnvironmentStatus, l as EnvironmentStatusResult, g as IEnvironmentProvider, I as ILogPersistence, u as ISnapshotProvider, n as IWorkspaceProvider, L as LogPersistenceConfig, f as LogRetentionPolicy, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, x as RestoreSnapshotResult, w as SnapshotDescriptor, z as SnapshotGarbageCollectRequest, B as SnapshotGarbageCollectResult, D as SnapshotProviderCapabilities, S as SnapshotStatus, y as SnapshotStatusResult, r as WorkspaceAttachment, p as WorkspaceDescriptor, o as WorkspaceMount, t as WorkspaceProviderCapabilities, W as WorkspaceStatus, s as WorkspaceStatusResult } from './snapshot-provider-BeZmFkse.cjs';
2
+ import { i as ILLM, I as IAnalytics, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, x as LLMMessage, y as LLMToolCallOptions, z as LLMToolCallResponse, N as IEmbeddings, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, O as ICache, Q as IStorage, E as EventsQuery, c as EventsResponse, d as EventsStats, B as BufferStatus, D as DlqStatus, a7 as ILogger, P as IConfig, ab as IEventBus, ae as IInvoke, W as ISQLDatabase, Z as IDocumentDatabase } from './invoke-BzOIin5Z.cjs';
3
+ export { ac as EventHandler, J as ILLMRouter, a8 as ILogBuffer, af as InvokeRequest, ag as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, ah as LLMRequestMetadata, G as LLMResolution, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, a9 as LogLevel, a as LogQuery, L as LogRecord, T as TIER_ORDER, ad as Unsubscribe, U as UseLLMOptions, K as isTierHigher, M as isTierLower } from './invoke-BzOIin5Z.cjs';
4
+ export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from './log-reader-DwHla8Sz.cjs';
5
+ export { A as ArtifactMeta, a as ArtifactWriteOptions, I as IArtifacts } from './artifacts-CrJhdBm-.cjs';
5
6
  export { j as CronContext, C as CronExpression, k as CronHandler, i as CronJob, h as ICronManager, d as IJobScheduler, l as IResourceManager, I as IWorkflowEngine, J as JobDefinition, g as JobFilter, e as JobHandle, f as JobStatus, o as ResourceAvailability, n as ResourceSlot, m as ResourceType, R as RetryPolicy, T as TenantQuotas, c as WorkflowFilter, W as WorkflowOptions, a as WorkflowRun, b as WorkflowStepRun } from './resources-DaufJFad.cjs';
6
- import './database-DGV6a1nj.cjs';
7
7
 
8
8
  /**
9
9
  * @module @kb-labs/core-platform/wrappers/analytics-llm
@@ -572,8 +572,10 @@ interface IPlatformAdapters {
572
572
  readonly eventBus: IEventBus;
573
573
  /** Invoke adapter (cross-plugin invocation) */
574
574
  readonly invoke: IInvoke;
575
- /** Artifacts adapter (build outputs, generated files) */
576
- readonly artifacts: IArtifacts;
575
+ /** SQL database adapter (SQLite, PostgreSQL, etc.) */
576
+ readonly sqlDatabase: ISQLDatabase;
577
+ /** Document database adapter (MongoDB, etc.) */
578
+ readonly documentDatabase: IDocumentDatabase;
577
579
  }
578
580
 
579
- export { AnalyticsCache, AnalyticsEmbeddings, AnalyticsLLM, AnalyticsStorage, AnalyticsVectorStore, type CreateRunRequest, type FeedbackRecord, type FeedbackType, FileFeedbackStore, type FileFeedbackStoreOptions, FileHistoryStore, type FileHistoryStoreOptions, type HistoryFindOptions, type HistoryRecord, IAnalytics, IArtifacts, ICache, IConfig, IEmbeddings, IEventBus, type IFeedbackStore, type IHistoryStore, IInvoke, ILLM, ILogger, type IPlatformAdapters, IStorage, IVectorStore, LLMMessage, LLMOptions, LLMProtocolCapabilities, LLMResponse, LLMToolCallOptions, LLMToolCallResponse, MemoryFeedbackStore, MemoryHistoryStore, type RunEvent, type RunEventType, type RunRecord, type RunStatus, type RunStepDefinition, type RunStepRecord, type RunStepStatus, SYSTEM_LOG_FIELDS, ScopedAnalytics, TERMINAL_RUN_STATUSES, VectorFilter, VectorRecord, VectorSearchResult, createPrefixedLogger, createScopedAnalytics, isScopedAnalytics, unwrapScopedAnalytics };
581
+ export { AnalyticsCache, AnalyticsEmbeddings, AnalyticsLLM, AnalyticsStorage, AnalyticsVectorStore, type CreateRunRequest, type FeedbackRecord, type FeedbackType, FileFeedbackStore, type FileFeedbackStoreOptions, FileHistoryStore, type FileHistoryStoreOptions, type HistoryFindOptions, type HistoryRecord, IAnalytics, ICache, IConfig, IEmbeddings, IEventBus, type IFeedbackStore, type IHistoryStore, IInvoke, ILLM, ILogger, type IPlatformAdapters, IStorage, IVectorStore, LLMMessage, LLMOptions, LLMProtocolCapabilities, LLMResponse, LLMToolCallOptions, LLMToolCallResponse, MemoryFeedbackStore, MemoryHistoryStore, type RunEvent, type RunEventType, type RunRecord, type RunStatus, type RunStepDefinition, type RunStepRecord, type RunStepStatus, SYSTEM_LOG_FIELDS, ScopedAnalytics, TERMINAL_RUN_STATUSES, VectorFilter, VectorRecord, VectorSearchResult, createPrefixedLogger, createScopedAnalytics, isScopedAnalytics, unwrapScopedAnalytics };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, t as AttachWorkspaceRequest, y as CaptureSnapshotRequest, C as CreateEnvironmentRequest, n as EnvironmentDescriptor, m as EnvironmentEndpoint, l as EnvironmentLease, p as EnvironmentProviderCapabilities, k as EnvironmentResources, j as EnvironmentStatus, o as EnvironmentStatusResult, h as ExecuteOptions, E as ExecutionRequest, g as ExecutionResult, i as IEnvironmentProvider, f as IExecutionBackend, I as ILogPersistence, x as ISnapshotProvider, q as IWorkspaceProvider, L as LogPersistenceConfig, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, B as RestoreSnapshotResult, z as SnapshotDescriptor, F as SnapshotGarbageCollectRequest, G as SnapshotGarbageCollectResult, H as SnapshotProviderCapabilities, S as SnapshotStatus, D as SnapshotStatusResult, u as WorkspaceAttachment, s as WorkspaceDescriptor, r as WorkspaceMount, w as WorkspaceProviderCapabilities, W as WorkspaceStatus, v as WorkspaceStatusResult } from './snapshot-provider--COac4P-.js';
2
- import { i as ILLM, I as IAnalytics, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, x as LLMMessage, y as LLMToolCallOptions, z as LLMToolCallResponse, N as IEmbeddings, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, O as ICache, Q as IStorage, E as EventsQuery, c as EventsResponse, d as EventsStats, B as BufferStatus, D as DlqStatus, W as ILogger, P as IConfig, _ as IEventBus, a1 as IInvoke, a4 as IArtifacts } from './artifacts-DrVnkLzu.js';
3
- export { a5 as ArtifactMeta, a6 as ArtifactWriteOptions, $ as EventHandler, J as ILLMRouter, X as ILogBuffer, a2 as InvokeRequest, a3 as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, a7 as LLMRequestMetadata, G as LLMResolution, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, Y as LogLevel, a as LogQuery, L as LogRecord, T as TIER_ORDER, a0 as Unsubscribe, U as UseLLMOptions, K as isTierHigher, M as isTierLower } from './artifacts-DrVnkLzu.js';
4
- export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from './log-reader-uOHBLBax.js';
1
+ export { d as AdapterCapabilities, b as AdapterDependency, c as AdapterExtension, e as AdapterFactory, A as AdapterManifest, a as AdapterType, q as AttachWorkspaceRequest, v as CaptureSnapshotRequest, C as CreateEnvironmentRequest, k as EnvironmentDescriptor, j as EnvironmentEndpoint, i as EnvironmentLease, m as EnvironmentProviderCapabilities, h as EnvironmentResources, E as EnvironmentStatus, l as EnvironmentStatusResult, g as IEnvironmentProvider, I as ILogPersistence, u as ISnapshotProvider, n as IWorkspaceProvider, L as LogPersistenceConfig, f as LogRetentionPolicy, M as MaterializeWorkspaceRequest, R as RestoreSnapshotRequest, x as RestoreSnapshotResult, w as SnapshotDescriptor, z as SnapshotGarbageCollectRequest, B as SnapshotGarbageCollectResult, D as SnapshotProviderCapabilities, S as SnapshotStatus, y as SnapshotStatusResult, r as WorkspaceAttachment, p as WorkspaceDescriptor, o as WorkspaceMount, t as WorkspaceProviderCapabilities, W as WorkspaceStatus, s as WorkspaceStatusResult } from './snapshot-provider-CNO_x3lV.js';
2
+ import { i as ILLM, I as IAnalytics, r as LLMProtocolCapabilities, j as LLMOptions, k as LLMResponse, x as LLMMessage, y as LLMToolCallOptions, z as LLMToolCallResponse, N as IEmbeddings, f as IVectorStore, h as VectorFilter, g as VectorSearchResult, V as VectorRecord, O as ICache, Q as IStorage, E as EventsQuery, c as EventsResponse, d as EventsStats, B as BufferStatus, D as DlqStatus, a7 as ILogger, P as IConfig, ab as IEventBus, ae as IInvoke, W as ISQLDatabase, Z as IDocumentDatabase } from './invoke-BzOIin5Z.js';
3
+ export { ac as EventHandler, J as ILLMRouter, a8 as ILogBuffer, af as InvokeRequest, ag as InvokeResponse, H as LLMAdapterBinding, s as LLMCacheCapability, u as LLMCacheDecisionTrace, o as LLMCacheMode, m as LLMCachePolicy, p as LLMCacheScope, F as LLMCapability, l as LLMExecutionPolicy, ah as LLMRequestMetadata, G as LLMResolution, t as LLMStreamCapability, q as LLMStreamMode, n as LLMStreamPolicy, C as LLMTier, v as LLMTool, w as LLMToolCall, a9 as LogLevel, a as LogQuery, L as LogRecord, T as TIER_ORDER, ad as Unsubscribe, U as UseLLMOptions, K as isTierHigher, M as isTierLower } from './invoke-BzOIin5Z.js';
4
+ export { I as ILogReader, L as LogCapabilities, a as LogQueryOptions, b as LogQueryResult, c as LogSearchOptions, d as LogSearchResult, e as LogStats } from './log-reader-B8HGaAKp.js';
5
+ export { A as ArtifactMeta, a as ArtifactWriteOptions, I as IArtifacts } from './artifacts-CrJhdBm-.js';
5
6
  export { j as CronContext, C as CronExpression, k as CronHandler, i as CronJob, h as ICronManager, d as IJobScheduler, l as IResourceManager, I as IWorkflowEngine, J as JobDefinition, g as JobFilter, e as JobHandle, f as JobStatus, o as ResourceAvailability, n as ResourceSlot, m as ResourceType, R as RetryPolicy, T as TenantQuotas, c as WorkflowFilter, W as WorkflowOptions, a as WorkflowRun, b as WorkflowStepRun } from './resources-DaufJFad.js';
6
- import './database-DGV6a1nj.js';
7
7
 
8
8
  /**
9
9
  * @module @kb-labs/core-platform/wrappers/analytics-llm
@@ -572,8 +572,10 @@ interface IPlatformAdapters {
572
572
  readonly eventBus: IEventBus;
573
573
  /** Invoke adapter (cross-plugin invocation) */
574
574
  readonly invoke: IInvoke;
575
- /** Artifacts adapter (build outputs, generated files) */
576
- readonly artifacts: IArtifacts;
575
+ /** SQL database adapter (SQLite, PostgreSQL, etc.) */
576
+ readonly sqlDatabase: ISQLDatabase;
577
+ /** Document database adapter (MongoDB, etc.) */
578
+ readonly documentDatabase: IDocumentDatabase;
577
579
  }
578
580
 
579
- export { AnalyticsCache, AnalyticsEmbeddings, AnalyticsLLM, AnalyticsStorage, AnalyticsVectorStore, type CreateRunRequest, type FeedbackRecord, type FeedbackType, FileFeedbackStore, type FileFeedbackStoreOptions, FileHistoryStore, type FileHistoryStoreOptions, type HistoryFindOptions, type HistoryRecord, IAnalytics, IArtifacts, ICache, IConfig, IEmbeddings, IEventBus, type IFeedbackStore, type IHistoryStore, IInvoke, ILLM, ILogger, type IPlatformAdapters, IStorage, IVectorStore, LLMMessage, LLMOptions, LLMProtocolCapabilities, LLMResponse, LLMToolCallOptions, LLMToolCallResponse, MemoryFeedbackStore, MemoryHistoryStore, type RunEvent, type RunEventType, type RunRecord, type RunStatus, type RunStepDefinition, type RunStepRecord, type RunStepStatus, SYSTEM_LOG_FIELDS, ScopedAnalytics, TERMINAL_RUN_STATUSES, VectorFilter, VectorRecord, VectorSearchResult, createPrefixedLogger, createScopedAnalytics, isScopedAnalytics, unwrapScopedAnalytics };
581
+ export { AnalyticsCache, AnalyticsEmbeddings, AnalyticsLLM, AnalyticsStorage, AnalyticsVectorStore, type CreateRunRequest, type FeedbackRecord, type FeedbackType, FileFeedbackStore, type FileFeedbackStoreOptions, FileHistoryStore, type FileHistoryStoreOptions, type HistoryFindOptions, type HistoryRecord, IAnalytics, ICache, IConfig, IEmbeddings, IEventBus, type IFeedbackStore, type IHistoryStore, IInvoke, ILLM, ILogger, type IPlatformAdapters, IStorage, IVectorStore, LLMMessage, LLMOptions, LLMProtocolCapabilities, LLMResponse, LLMToolCallOptions, LLMToolCallResponse, MemoryFeedbackStore, MemoryHistoryStore, type RunEvent, type RunEventType, type RunRecord, type RunStatus, type RunStepDefinition, type RunStepRecord, type RunStepStatus, SYSTEM_LOG_FIELDS, ScopedAnalytics, TERMINAL_RUN_STATUSES, VectorFilter, VectorRecord, VectorSearchResult, createPrefixedLogger, createScopedAnalytics, isScopedAnalytics, unwrapScopedAnalytics };