@kb-labs/core-platform 1.0.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 (56) hide show
  1. package/README.md +108 -0
  2. package/dist/adapters/index.cjs +26 -0
  3. package/dist/adapters/index.cjs.map +1 -0
  4. package/dist/adapters/index.d.cts +125 -0
  5. package/dist/adapters/index.d.ts +125 -0
  6. package/dist/adapters/index.js +21 -0
  7. package/dist/adapters/index.js.map +1 -0
  8. package/dist/artifacts-BUghvkUU.d.cts +273 -0
  9. package/dist/artifacts-Bd-1UVTw.d.ts +273 -0
  10. package/dist/artifacts-DrVnkLzu.d.cts +1374 -0
  11. package/dist/artifacts-DrVnkLzu.d.ts +1374 -0
  12. package/dist/core/index.cjs +4 -0
  13. package/dist/core/index.cjs.map +1 -0
  14. package/dist/core/index.d.cts +2 -0
  15. package/dist/core/index.d.ts +2 -0
  16. package/dist/core/index.js +3 -0
  17. package/dist/core/index.js.map +1 -0
  18. package/dist/database-DGV6a1nj.d.cts +427 -0
  19. package/dist/database-DGV6a1nj.d.ts +427 -0
  20. package/dist/index.cjs +1405 -0
  21. package/dist/index.cjs.map +1 -0
  22. package/dist/index.d.cts +579 -0
  23. package/dist/index.d.ts +579 -0
  24. package/dist/index.js +1381 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/log-reader-BVohbSMB.d.cts +314 -0
  27. package/dist/log-reader-uOHBLBax.d.ts +314 -0
  28. package/dist/noop/adapters/index.cjs +656 -0
  29. package/dist/noop/adapters/index.cjs.map +1 -0
  30. package/dist/noop/adapters/index.d.cts +71 -0
  31. package/dist/noop/adapters/index.d.ts +71 -0
  32. package/dist/noop/adapters/index.js +637 -0
  33. package/dist/noop/adapters/index.js.map +1 -0
  34. package/dist/noop/core/index.cjs +217 -0
  35. package/dist/noop/core/index.cjs.map +1 -0
  36. package/dist/noop/core/index.d.cts +94 -0
  37. package/dist/noop/core/index.d.ts +94 -0
  38. package/dist/noop/core/index.js +212 -0
  39. package/dist/noop/core/index.js.map +1 -0
  40. package/dist/noop/index.cjs +806 -0
  41. package/dist/noop/index.cjs.map +1 -0
  42. package/dist/noop/index.d.cts +36 -0
  43. package/dist/noop/index.d.ts +36 -0
  44. package/dist/noop/index.js +787 -0
  45. package/dist/noop/index.js.map +1 -0
  46. package/dist/resources-DaufJFad.d.cts +419 -0
  47. package/dist/resources-DaufJFad.d.ts +419 -0
  48. package/dist/serializable/index.cjs +162 -0
  49. package/dist/serializable/index.cjs.map +1 -0
  50. package/dist/serializable/index.d.cts +352 -0
  51. package/dist/serializable/index.d.ts +352 -0
  52. package/dist/serializable/index.js +152 -0
  53. package/dist/serializable/index.js.map +1 -0
  54. package/dist/snapshot-provider--COac4P-.d.ts +923 -0
  55. package/dist/snapshot-provider-nE9wuc1C.d.cts +923 -0
  56. package/package.json +92 -0
@@ -0,0 +1,273 @@
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';
2
+
3
+ /**
4
+ * @module @kb-labs/core-platform/noop/adapters/analytics
5
+ * NoOp analytics implementation.
6
+ */
7
+
8
+ /**
9
+ * NoOp analytics - does nothing, safe for testing and development.
10
+ */
11
+ declare class NoOpAnalytics implements IAnalytics {
12
+ track(_event: string, _properties?: Record<string, unknown>): Promise<void>;
13
+ identify(_userId: string, _traits?: Record<string, unknown>): Promise<void>;
14
+ flush(): Promise<void>;
15
+ }
16
+
17
+ /**
18
+ * @module @kb-labs/core-platform/noop/adapters/vector-store
19
+ * In-memory vector store implementation.
20
+ */
21
+
22
+ /**
23
+ * In-memory vector store.
24
+ * Suitable for testing and development.
25
+ */
26
+ declare class MemoryVectorStore implements IVectorStore {
27
+ private vectors;
28
+ search(query: number[], limit: number, filter?: VectorFilter): Promise<VectorSearchResult[]>;
29
+ upsert(vectors: VectorRecord[]): Promise<void>;
30
+ delete(ids: string[]): Promise<void>;
31
+ count(): Promise<number>;
32
+ }
33
+
34
+ /**
35
+ * @module @kb-labs/core-platform/noop/adapters/llm
36
+ * Mock LLM implementation.
37
+ */
38
+
39
+ /**
40
+ * Mock LLM that returns placeholder responses.
41
+ * Useful for testing without API calls.
42
+ */
43
+ declare class MockLLM implements ILLM {
44
+ getProtocolCapabilities(): LLMProtocolCapabilities;
45
+ complete(prompt: string, options?: LLMOptions): Promise<LLMResponse>;
46
+ stream(prompt: string, options?: LLMOptions): AsyncIterable<string>;
47
+ }
48
+
49
+ /**
50
+ * @module @kb-labs/core-platform/noop/adapters/embeddings
51
+ * Mock embeddings implementation.
52
+ */
53
+
54
+ /**
55
+ * Mock embeddings that generates deterministic vectors based on text hash.
56
+ * Useful for testing without API calls.
57
+ */
58
+ declare class MockEmbeddings implements IEmbeddings {
59
+ readonly dimensions = 1536;
60
+ /**
61
+ * Simple hash function for deterministic embedding generation.
62
+ */
63
+ private hash;
64
+ /**
65
+ * Generate a deterministic vector based on text.
66
+ */
67
+ private generateVector;
68
+ embed(text: string): Promise<number[]>;
69
+ embedBatch(texts: string[]): Promise<number[][]>;
70
+ /**
71
+ * Get the dimensions of the embeddings.
72
+ * This method is needed for IPC/Unix Socket transport to access the dimensions property.
73
+ */
74
+ getDimensions(): Promise<number>;
75
+ }
76
+
77
+ /**
78
+ * @module @kb-labs/core-platform/noop/adapters/cache
79
+ * In-memory cache implementation.
80
+ */
81
+
82
+ /**
83
+ * In-memory cache with TTL support.
84
+ * Useful for testing and local development.
85
+ */
86
+ declare class MemoryCache implements ICache {
87
+ private store;
88
+ private sortedSets;
89
+ get<T>(key: string): Promise<T | null>;
90
+ set<T>(key: string, value: T, ttl?: number): Promise<void>;
91
+ delete(key: string): Promise<void>;
92
+ clear(pattern?: string): Promise<void>;
93
+ zadd(key: string, score: number, member: string): Promise<void>;
94
+ zrangebyscore(key: string, min: number, max: number): Promise<string[]>;
95
+ zrem(key: string, member: string): Promise<void>;
96
+ setIfNotExists<T>(key: string, value: T, ttl?: number): Promise<boolean>;
97
+ /**
98
+ * Get the current number of entries (for testing).
99
+ */
100
+ get size(): number;
101
+ }
102
+
103
+ /**
104
+ * @module @kb-labs/core-platform/noop/adapters/config
105
+ * NoOp config implementation.
106
+ */
107
+
108
+ /**
109
+ * NoOp config - returns undefined for all queries.
110
+ * Safe fallback when no config is loaded.
111
+ */
112
+ declare class NoOpConfig implements IConfig {
113
+ getConfig(_productId: string, _profileId?: string): Promise<any>;
114
+ getRawConfig(): Promise<any>;
115
+ }
116
+
117
+ /**
118
+ * @module @kb-labs/core-platform/noop/adapters/storage
119
+ * In-memory storage implementation.
120
+ */
121
+
122
+ /**
123
+ * In-memory storage for testing and local development.
124
+ * Data is lost when the process exits.
125
+ */
126
+ declare class MemoryStorage implements IStorage {
127
+ private store;
128
+ read(path: string): Promise<Buffer | null>;
129
+ write(path: string, data: Buffer): Promise<void>;
130
+ delete(path: string): Promise<void>;
131
+ list(prefix: string): Promise<string[]>;
132
+ exists(path: string): Promise<boolean>;
133
+ /**
134
+ * Get file metadata.
135
+ * Optional method - implements IStorage.stat().
136
+ */
137
+ stat(path: string): Promise<StorageMetadata | null>;
138
+ /**
139
+ * Copy file.
140
+ * Optional method - implements IStorage.copy().
141
+ */
142
+ copy(sourcePath: string, destPath: string): Promise<void>;
143
+ /**
144
+ * Move file.
145
+ * Optional method - implements IStorage.move().
146
+ */
147
+ move(sourcePath: string, destPath: string): Promise<void>;
148
+ /**
149
+ * List files with metadata.
150
+ * Optional method - implements IStorage.listWithMetadata().
151
+ */
152
+ listWithMetadata(prefix: string): Promise<StorageMetadata[]>;
153
+ /**
154
+ * Get the current number of stored files (for testing).
155
+ */
156
+ get size(): number;
157
+ /**
158
+ * Clear all storage (for testing).
159
+ */
160
+ clear(): void;
161
+ }
162
+
163
+ /**
164
+ * @module @kb-labs/core-platform/noop/adapters/logger
165
+ * Console-based logger implementation.
166
+ */
167
+
168
+ /**
169
+ * Log level type.
170
+ */
171
+ type LogLevel = 'silent' | 'error' | 'warn' | 'info' | 'debug' | 'trace';
172
+ /**
173
+ * Simple console logger with log level support.
174
+ * Respects KB_LOG_LEVEL environment variable.
175
+ * Outputs to console.log/warn/error/debug with JSON metadata.
176
+ */
177
+ declare class ConsoleLogger implements ILogger {
178
+ private bindings;
179
+ private level;
180
+ constructor(bindings?: Record<string, unknown>, level?: LogLevel);
181
+ private shouldLog;
182
+ private formatMeta;
183
+ info(message: string, meta?: Record<string, unknown>): void;
184
+ warn(message: string, meta?: Record<string, unknown>): void;
185
+ error(message: string, error?: Error, meta?: Record<string, unknown>): void;
186
+ fatal(message: string, error?: Error, meta?: Record<string, unknown>): void;
187
+ debug(message: string, meta?: Record<string, unknown>): void;
188
+ trace(message: string, meta?: Record<string, unknown>): void;
189
+ child(bindings: Record<string, unknown>): ILogger;
190
+ }
191
+ /**
192
+ * Silent logger that does nothing.
193
+ * Useful for tests where you want to suppress all logging.
194
+ */
195
+ declare class NoOpLogger implements ILogger {
196
+ info(_message: string, _meta?: Record<string, unknown>): void;
197
+ warn(_message: string, _meta?: Record<string, unknown>): void;
198
+ error(_message: string, _error?: Error, _meta?: Record<string, unknown>): void;
199
+ fatal(_message: string, _error?: Error, _meta?: Record<string, unknown>): void;
200
+ debug(_message: string, _meta?: Record<string, unknown>): void;
201
+ trace(_message: string, _meta?: Record<string, unknown>): void;
202
+ child(_bindings: Record<string, unknown>): ILogger;
203
+ }
204
+
205
+ /**
206
+ * @module @kb-labs/core-platform/noop/adapters/event-bus
207
+ * In-memory event bus implementation.
208
+ */
209
+
210
+ /**
211
+ * In-memory event bus using Map of handlers.
212
+ * Events are processed synchronously in order of subscription.
213
+ */
214
+ declare class MemoryEventBus implements IEventBus {
215
+ private handlers;
216
+ publish<T>(topic: string, event: T): Promise<void>;
217
+ subscribe<T>(topic: string, handler: EventHandler<T>): Unsubscribe;
218
+ /**
219
+ * Get the number of topics with subscribers (for testing).
220
+ */
221
+ get topicCount(): number;
222
+ /**
223
+ * Get the total number of handlers across all topics (for testing).
224
+ */
225
+ get handlerCount(): number;
226
+ /**
227
+ * Clear all subscriptions (for testing).
228
+ */
229
+ clear(): void;
230
+ }
231
+ /**
232
+ * No-op event bus that does nothing.
233
+ * Useful when event processing is not needed.
234
+ */
235
+ declare class NoOpEventBus implements IEventBus {
236
+ publish<T>(_topic: string, _event: T): Promise<void>;
237
+ subscribe<T>(_topic: string, _handler: EventHandler<T>): Unsubscribe;
238
+ }
239
+
240
+ /**
241
+ * @module @kb-labs/core-platform/noop/adapters/invoke
242
+ * NoOp implementation of IInvoke.
243
+ */
244
+
245
+ /**
246
+ * NoOp invoke implementation.
247
+ * Returns error for all calls - invoke requires runtime to be configured.
248
+ */
249
+ declare class NoOpInvoke implements IInvoke {
250
+ call<T = unknown>(_request: InvokeRequest): Promise<InvokeResponse<T>>;
251
+ isAvailable(_pluginId: string, _command?: string): Promise<boolean>;
252
+ }
253
+
254
+ /**
255
+ * @module @kb-labs/core-platform/noop/adapters/artifacts
256
+ * In-memory implementation of IArtifacts.
257
+ */
258
+
259
+ /**
260
+ * In-memory artifacts storage.
261
+ * Useful for testing and development.
262
+ */
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>;
271
+ }
272
+
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 };
@@ -0,0 +1,273 @@
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';
2
+
3
+ /**
4
+ * @module @kb-labs/core-platform/noop/adapters/analytics
5
+ * NoOp analytics implementation.
6
+ */
7
+
8
+ /**
9
+ * NoOp analytics - does nothing, safe for testing and development.
10
+ */
11
+ declare class NoOpAnalytics implements IAnalytics {
12
+ track(_event: string, _properties?: Record<string, unknown>): Promise<void>;
13
+ identify(_userId: string, _traits?: Record<string, unknown>): Promise<void>;
14
+ flush(): Promise<void>;
15
+ }
16
+
17
+ /**
18
+ * @module @kb-labs/core-platform/noop/adapters/vector-store
19
+ * In-memory vector store implementation.
20
+ */
21
+
22
+ /**
23
+ * In-memory vector store.
24
+ * Suitable for testing and development.
25
+ */
26
+ declare class MemoryVectorStore implements IVectorStore {
27
+ private vectors;
28
+ search(query: number[], limit: number, filter?: VectorFilter): Promise<VectorSearchResult[]>;
29
+ upsert(vectors: VectorRecord[]): Promise<void>;
30
+ delete(ids: string[]): Promise<void>;
31
+ count(): Promise<number>;
32
+ }
33
+
34
+ /**
35
+ * @module @kb-labs/core-platform/noop/adapters/llm
36
+ * Mock LLM implementation.
37
+ */
38
+
39
+ /**
40
+ * Mock LLM that returns placeholder responses.
41
+ * Useful for testing without API calls.
42
+ */
43
+ declare class MockLLM implements ILLM {
44
+ getProtocolCapabilities(): LLMProtocolCapabilities;
45
+ complete(prompt: string, options?: LLMOptions): Promise<LLMResponse>;
46
+ stream(prompt: string, options?: LLMOptions): AsyncIterable<string>;
47
+ }
48
+
49
+ /**
50
+ * @module @kb-labs/core-platform/noop/adapters/embeddings
51
+ * Mock embeddings implementation.
52
+ */
53
+
54
+ /**
55
+ * Mock embeddings that generates deterministic vectors based on text hash.
56
+ * Useful for testing without API calls.
57
+ */
58
+ declare class MockEmbeddings implements IEmbeddings {
59
+ readonly dimensions = 1536;
60
+ /**
61
+ * Simple hash function for deterministic embedding generation.
62
+ */
63
+ private hash;
64
+ /**
65
+ * Generate a deterministic vector based on text.
66
+ */
67
+ private generateVector;
68
+ embed(text: string): Promise<number[]>;
69
+ embedBatch(texts: string[]): Promise<number[][]>;
70
+ /**
71
+ * Get the dimensions of the embeddings.
72
+ * This method is needed for IPC/Unix Socket transport to access the dimensions property.
73
+ */
74
+ getDimensions(): Promise<number>;
75
+ }
76
+
77
+ /**
78
+ * @module @kb-labs/core-platform/noop/adapters/cache
79
+ * In-memory cache implementation.
80
+ */
81
+
82
+ /**
83
+ * In-memory cache with TTL support.
84
+ * Useful for testing and local development.
85
+ */
86
+ declare class MemoryCache implements ICache {
87
+ private store;
88
+ private sortedSets;
89
+ get<T>(key: string): Promise<T | null>;
90
+ set<T>(key: string, value: T, ttl?: number): Promise<void>;
91
+ delete(key: string): Promise<void>;
92
+ clear(pattern?: string): Promise<void>;
93
+ zadd(key: string, score: number, member: string): Promise<void>;
94
+ zrangebyscore(key: string, min: number, max: number): Promise<string[]>;
95
+ zrem(key: string, member: string): Promise<void>;
96
+ setIfNotExists<T>(key: string, value: T, ttl?: number): Promise<boolean>;
97
+ /**
98
+ * Get the current number of entries (for testing).
99
+ */
100
+ get size(): number;
101
+ }
102
+
103
+ /**
104
+ * @module @kb-labs/core-platform/noop/adapters/config
105
+ * NoOp config implementation.
106
+ */
107
+
108
+ /**
109
+ * NoOp config - returns undefined for all queries.
110
+ * Safe fallback when no config is loaded.
111
+ */
112
+ declare class NoOpConfig implements IConfig {
113
+ getConfig(_productId: string, _profileId?: string): Promise<any>;
114
+ getRawConfig(): Promise<any>;
115
+ }
116
+
117
+ /**
118
+ * @module @kb-labs/core-platform/noop/adapters/storage
119
+ * In-memory storage implementation.
120
+ */
121
+
122
+ /**
123
+ * In-memory storage for testing and local development.
124
+ * Data is lost when the process exits.
125
+ */
126
+ declare class MemoryStorage implements IStorage {
127
+ private store;
128
+ read(path: string): Promise<Buffer | null>;
129
+ write(path: string, data: Buffer): Promise<void>;
130
+ delete(path: string): Promise<void>;
131
+ list(prefix: string): Promise<string[]>;
132
+ exists(path: string): Promise<boolean>;
133
+ /**
134
+ * Get file metadata.
135
+ * Optional method - implements IStorage.stat().
136
+ */
137
+ stat(path: string): Promise<StorageMetadata | null>;
138
+ /**
139
+ * Copy file.
140
+ * Optional method - implements IStorage.copy().
141
+ */
142
+ copy(sourcePath: string, destPath: string): Promise<void>;
143
+ /**
144
+ * Move file.
145
+ * Optional method - implements IStorage.move().
146
+ */
147
+ move(sourcePath: string, destPath: string): Promise<void>;
148
+ /**
149
+ * List files with metadata.
150
+ * Optional method - implements IStorage.listWithMetadata().
151
+ */
152
+ listWithMetadata(prefix: string): Promise<StorageMetadata[]>;
153
+ /**
154
+ * Get the current number of stored files (for testing).
155
+ */
156
+ get size(): number;
157
+ /**
158
+ * Clear all storage (for testing).
159
+ */
160
+ clear(): void;
161
+ }
162
+
163
+ /**
164
+ * @module @kb-labs/core-platform/noop/adapters/logger
165
+ * Console-based logger implementation.
166
+ */
167
+
168
+ /**
169
+ * Log level type.
170
+ */
171
+ type LogLevel = 'silent' | 'error' | 'warn' | 'info' | 'debug' | 'trace';
172
+ /**
173
+ * Simple console logger with log level support.
174
+ * Respects KB_LOG_LEVEL environment variable.
175
+ * Outputs to console.log/warn/error/debug with JSON metadata.
176
+ */
177
+ declare class ConsoleLogger implements ILogger {
178
+ private bindings;
179
+ private level;
180
+ constructor(bindings?: Record<string, unknown>, level?: LogLevel);
181
+ private shouldLog;
182
+ private formatMeta;
183
+ info(message: string, meta?: Record<string, unknown>): void;
184
+ warn(message: string, meta?: Record<string, unknown>): void;
185
+ error(message: string, error?: Error, meta?: Record<string, unknown>): void;
186
+ fatal(message: string, error?: Error, meta?: Record<string, unknown>): void;
187
+ debug(message: string, meta?: Record<string, unknown>): void;
188
+ trace(message: string, meta?: Record<string, unknown>): void;
189
+ child(bindings: Record<string, unknown>): ILogger;
190
+ }
191
+ /**
192
+ * Silent logger that does nothing.
193
+ * Useful for tests where you want to suppress all logging.
194
+ */
195
+ declare class NoOpLogger implements ILogger {
196
+ info(_message: string, _meta?: Record<string, unknown>): void;
197
+ warn(_message: string, _meta?: Record<string, unknown>): void;
198
+ error(_message: string, _error?: Error, _meta?: Record<string, unknown>): void;
199
+ fatal(_message: string, _error?: Error, _meta?: Record<string, unknown>): void;
200
+ debug(_message: string, _meta?: Record<string, unknown>): void;
201
+ trace(_message: string, _meta?: Record<string, unknown>): void;
202
+ child(_bindings: Record<string, unknown>): ILogger;
203
+ }
204
+
205
+ /**
206
+ * @module @kb-labs/core-platform/noop/adapters/event-bus
207
+ * In-memory event bus implementation.
208
+ */
209
+
210
+ /**
211
+ * In-memory event bus using Map of handlers.
212
+ * Events are processed synchronously in order of subscription.
213
+ */
214
+ declare class MemoryEventBus implements IEventBus {
215
+ private handlers;
216
+ publish<T>(topic: string, event: T): Promise<void>;
217
+ subscribe<T>(topic: string, handler: EventHandler<T>): Unsubscribe;
218
+ /**
219
+ * Get the number of topics with subscribers (for testing).
220
+ */
221
+ get topicCount(): number;
222
+ /**
223
+ * Get the total number of handlers across all topics (for testing).
224
+ */
225
+ get handlerCount(): number;
226
+ /**
227
+ * Clear all subscriptions (for testing).
228
+ */
229
+ clear(): void;
230
+ }
231
+ /**
232
+ * No-op event bus that does nothing.
233
+ * Useful when event processing is not needed.
234
+ */
235
+ declare class NoOpEventBus implements IEventBus {
236
+ publish<T>(_topic: string, _event: T): Promise<void>;
237
+ subscribe<T>(_topic: string, _handler: EventHandler<T>): Unsubscribe;
238
+ }
239
+
240
+ /**
241
+ * @module @kb-labs/core-platform/noop/adapters/invoke
242
+ * NoOp implementation of IInvoke.
243
+ */
244
+
245
+ /**
246
+ * NoOp invoke implementation.
247
+ * Returns error for all calls - invoke requires runtime to be configured.
248
+ */
249
+ declare class NoOpInvoke implements IInvoke {
250
+ call<T = unknown>(_request: InvokeRequest): Promise<InvokeResponse<T>>;
251
+ isAvailable(_pluginId: string, _command?: string): Promise<boolean>;
252
+ }
253
+
254
+ /**
255
+ * @module @kb-labs/core-platform/noop/adapters/artifacts
256
+ * In-memory implementation of IArtifacts.
257
+ */
258
+
259
+ /**
260
+ * In-memory artifacts storage.
261
+ * Useful for testing and development.
262
+ */
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>;
271
+ }
272
+
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 };