@kb-labs/mind-entry 2.93.0 → 2.96.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 (98) hide show
  1. package/README.md +19 -208
  2. package/dist/cli/commands/ask.d.ts +31 -0
  3. package/dist/cli/commands/ask.js +88 -0
  4. package/dist/cli/commands/ask.js.map +1 -0
  5. package/dist/cli/commands/drop.d.ts +10 -0
  6. package/dist/cli/commands/drop.js +90 -0
  7. package/dist/cli/commands/drop.js.map +1 -0
  8. package/dist/cli/commands/explore.d.ts +26 -0
  9. package/dist/cli/commands/explore.js +96 -0
  10. package/dist/cli/commands/explore.js.map +1 -0
  11. package/dist/cli/commands/index.d.ts +11 -0
  12. package/dist/cli/commands/index.js +96 -0
  13. package/dist/cli/commands/index.js.map +1 -0
  14. package/dist/cli/commands/reindex.d.ts +11 -0
  15. package/dist/cli/commands/reindex.js +71 -0
  16. package/dist/cli/commands/reindex.js.map +1 -0
  17. package/dist/cli/commands/search.d.ts +25 -0
  18. package/dist/cli/commands/search.js +94 -0
  19. package/dist/cli/commands/search.js.map +1 -0
  20. package/dist/cli/commands/status.d.ts +17 -0
  21. package/dist/cli/commands/status.js +89 -0
  22. package/dist/cli/commands/status.js.map +1 -0
  23. package/dist/cli/commands/sync-add.d.ts +11 -0
  24. package/dist/cli/commands/sync-add.js +74 -0
  25. package/dist/cli/commands/sync-add.js.map +1 -0
  26. package/dist/cli/commands/sync-delete.d.ts +11 -0
  27. package/dist/cli/commands/sync-delete.js +90 -0
  28. package/dist/cli/commands/sync-delete.js.map +1 -0
  29. package/dist/cli/commands/sync-list.d.ts +13 -0
  30. package/dist/cli/commands/sync-list.js +80 -0
  31. package/dist/cli/commands/sync-list.js.map +1 -0
  32. package/dist/cli/commands/sync-status.d.ts +8 -0
  33. package/dist/cli/commands/sync-status.js +71 -0
  34. package/dist/cli/commands/sync-status.js.map +1 -0
  35. package/dist/cli/commands/sync-update.d.ts +11 -0
  36. package/dist/cli/commands/sync-update.js +74 -0
  37. package/dist/cli/commands/sync-update.js.map +1 -0
  38. package/dist/index.d.ts +2 -596
  39. package/dist/index.js +208 -1449
  40. package/dist/index.js.map +1 -1
  41. package/dist/manifest.d.ts +206 -0
  42. package/dist/manifest.js +261 -0
  43. package/dist/manifest.js.map +1 -0
  44. package/dist/rest/handlers/drop.d.ts +12 -0
  45. package/dist/rest/handlers/drop.js +59 -0
  46. package/dist/rest/handlers/drop.js.map +1 -0
  47. package/dist/rest/handlers/explore.d.ts +30 -0
  48. package/dist/rest/handlers/explore.js +59 -0
  49. package/dist/rest/handlers/explore.js.map +1 -0
  50. package/dist/rest/handlers/health.d.ts +11 -0
  51. package/dist/rest/handlers/health.js +58 -0
  52. package/dist/rest/handlers/health.js.map +1 -0
  53. package/dist/rest/handlers/index.d.ts +15 -0
  54. package/dist/rest/handlers/index.js +59 -0
  55. package/dist/rest/handlers/index.js.map +1 -0
  56. package/dist/rest/handlers/query.d.ts +36 -0
  57. package/dist/rest/handlers/query.js +59 -0
  58. package/dist/rest/handlers/query.js.map +1 -0
  59. package/dist/rest/handlers/reindex.d.ts +14 -0
  60. package/dist/rest/handlers/reindex.js +59 -0
  61. package/dist/rest/handlers/reindex.js.map +1 -0
  62. package/dist/rest/handlers/search.d.ts +31 -0
  63. package/dist/rest/handlers/search.js +59 -0
  64. package/dist/rest/handlers/search.js.map +1 -0
  65. package/dist/rest/handlers/status.d.ts +19 -0
  66. package/dist/rest/handlers/status.js +58 -0
  67. package/dist/rest/handlers/status.js.map +1 -0
  68. package/dist/rest/handlers/sync-add.d.ts +14 -0
  69. package/dist/rest/handlers/sync-add.js +59 -0
  70. package/dist/rest/handlers/sync-add.js.map +1 -0
  71. package/dist/rest/handlers/sync-delete.d.ts +14 -0
  72. package/dist/rest/handlers/sync-delete.js +59 -0
  73. package/dist/rest/handlers/sync-delete.js.map +1 -0
  74. package/dist/rest/handlers/sync-list.d.ts +15 -0
  75. package/dist/rest/handlers/sync-list.js +58 -0
  76. package/dist/rest/handlers/sync-list.js.map +1 -0
  77. package/dist/rest/handlers/sync-status.d.ts +14 -0
  78. package/dist/rest/handlers/sync-status.js +58 -0
  79. package/dist/rest/handlers/sync-status.js.map +1 -0
  80. package/dist/rest/handlers/sync-update.d.ts +14 -0
  81. package/dist/rest/handlers/sync-update.js +59 -0
  82. package/dist/rest/handlers/sync-update.js.map +1 -0
  83. package/package.json +15 -19
  84. package/dist/cli/commands/init.d.ts +0 -24
  85. package/dist/cli/commands/init.js +0 -115
  86. package/dist/cli/commands/init.js.map +0 -1
  87. package/dist/cli/commands/rag-index.d.ts +0 -20
  88. package/dist/cli/commands/rag-index.js +0 -364
  89. package/dist/cli/commands/rag-index.js.map +0 -1
  90. package/dist/cli/commands/rag-query.d.ts +0 -25
  91. package/dist/cli/commands/rag-query.js +0 -670
  92. package/dist/cli/commands/rag-query.js.map +0 -1
  93. package/dist/cli/commands/verify.d.ts +0 -15
  94. package/dist/cli/commands/verify.js +0 -92
  95. package/dist/cli/commands/verify.js.map +0 -1
  96. package/dist/manifest.v3.d.ts +0 -52
  97. package/dist/manifest.v3.js +0 -182
  98. package/dist/manifest.v3.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,596 +1,2 @@
1
- export { default as manifest } from './manifest.v3.js';
2
- import { PlatformServices } from '@kb-labs/sdk';
3
- import { MindConfigInput, MindConfig, MindSyncConfig } from '@kb-labs/mind-contracts';
4
- import { MindIndexStats, MindIntent, MindQueryResult } from '@kb-labs/mind-types';
5
- import { z } from 'zod';
6
- export { default as runInitCommand } from './cli/commands/init.js';
7
- export { default as runRagIndexCommand } from './cli/commands/rag-index.js';
8
- export { default as runRagQueryCommand } from './cli/commands/rag-query.js';
9
- export { default as runVerifyCommand } from './cli/commands/verify.js';
10
- import '@kb-labs/perm-presets';
11
- import '@kb-labs/shared-command-kit';
12
-
13
- declare const MIND_PRODUCT_ID = "mind";
14
- interface MindRuntimeService {
15
- index(scopeId: string): Promise<MindIndexStats>;
16
- query(options: {
17
- productId?: string;
18
- scopeId: string;
19
- text: string;
20
- intent?: MindIntent;
21
- limit?: number;
22
- profileId?: string;
23
- metadata?: Record<string, unknown>;
24
- }): Promise<MindQueryResult>;
25
- }
26
- interface MindRuntime {
27
- service: MindRuntimeService;
28
- config: MindConfigInput;
29
- }
30
- interface MindRuntimeOptions {
31
- cwd: string;
32
- config?: MindConfigInput | Record<string, unknown>;
33
- runtime?: {
34
- fetch?: typeof fetch;
35
- fs?: unknown;
36
- env?: (key: string) => string | undefined;
37
- log?: (level: 'debug' | 'info' | 'warn' | 'error', msg: string, meta?: Record<string, unknown>) => void;
38
- analytics?: {
39
- track(event: string, properties?: Record<string, unknown>): void;
40
- metric(name: string, value: number, tags?: Record<string, string>): void;
41
- };
42
- };
43
- platform?: PlatformServices;
44
- onProgress?: (event: {
45
- stage: string;
46
- details?: string;
47
- metadata?: Record<string, unknown>;
48
- timestamp: number;
49
- }) => void;
50
- }
51
- declare function createMindRuntime(options: MindRuntimeOptions): Promise<MindRuntime>;
52
-
53
- type AgentQueryMode = 'instant' | 'auto' | 'thinking';
54
- type AgentResponse = Record<string, unknown>;
55
- type AgentErrorResponse = {
56
- error: {
57
- code: string;
58
- message: string;
59
- recoverable: boolean;
60
- };
61
- meta: Record<string, unknown>;
62
- };
63
- interface RagIndexOptions {
64
- cwd: string;
65
- scopeId?: string;
66
- include?: string;
67
- exclude?: string;
68
- skipDeduplication?: boolean;
69
- platform?: PlatformServices;
70
- /**
71
- * Mind configuration (from ctx.config)
72
- * If provided, will be used instead of reading from file
73
- */
74
- config?: Record<string, unknown>;
75
- }
76
- /**
77
- * Information about which adapters were used during indexing
78
- */
79
- interface AdapterInfo {
80
- vectorStore: string;
81
- embeddings: string;
82
- storage: string;
83
- llm: string;
84
- cache: string;
85
- }
86
- interface RagIndexStats extends MindIndexStats {
87
- deletedFiles?: number;
88
- deletedChunks?: number;
89
- invalidChunks?: number;
90
- }
91
- interface RagIndexResult {
92
- scopeIds: string[];
93
- adapters: AdapterInfo;
94
- stats: RagIndexStats;
95
- }
96
- interface RagIndexOptionsWithRuntime extends RagIndexOptions {
97
- runtime?: Parameters<typeof createMindRuntime>[0]['runtime'];
98
- }
99
- declare function runRagIndex(options: RagIndexOptions | RagIndexOptionsWithRuntime): Promise<RagIndexResult>;
100
- interface RagQueryOptions {
101
- cwd: string;
102
- scopeId?: string;
103
- text: string;
104
- intent?: MindIntent;
105
- limit?: number;
106
- profileId?: string;
107
- runtime?: Parameters<typeof createMindRuntime>[0]['runtime'];
108
- onProgress?: (stage: string, details?: string) => void;
109
- platform?: PlatformServices;
110
- /**
111
- * Mind configuration (from ctx.config)
112
- * If provided, will be used instead of reading from file
113
- */
114
- config?: Record<string, unknown>;
115
- }
116
- interface RagQueryResult {
117
- scopeId: string;
118
- result: MindQueryResult;
119
- }
120
- declare function runRagQuery(options: RagQueryOptions): Promise<RagQueryResult>;
121
- interface AgentRagQueryOptions {
122
- cwd: string;
123
- scopeId?: string;
124
- text: string;
125
- mode?: AgentQueryMode;
126
- indexRevision?: string;
127
- engineConfigHash?: string;
128
- sourcesDigest?: string;
129
- debug?: boolean;
130
- runtime?: Parameters<typeof createMindRuntime>[0]['runtime'];
131
- broker?: {
132
- get: <T>(key: string) => Promise<T | null>;
133
- set: <T>(key: string, value: T, ttl?: number) => Promise<void>;
134
- delete: (key: string) => Promise<void>;
135
- };
136
- platform?: PlatformServices;
137
- /**
138
- * Mind configuration (from ctx.config)
139
- * If provided, will be used instead of reading from file
140
- */
141
- config?: Record<string, unknown>;
142
- }
143
- type AgentRagQueryResult = AgentResponse | AgentErrorResponse;
144
- /**
145
- * Run agent-optimized RAG query with orchestration.
146
- *
147
- * This function uses the orchestrator pipeline:
148
- * 1. Detect query complexity
149
- * 2. Decompose into sub-queries (auto/thinking modes)
150
- * 3. Gather chunks from mind-engine
151
- * 4. Check completeness (with retry in thinking mode)
152
- * 5. Synthesize agent-friendly response
153
- * 6. Compress if needed
154
- *
155
- * @returns AgentResponse | AgentErrorResponse - clean JSON for agents
156
- */
157
- declare function runAgentRagQuery(options: AgentRagQueryOptions): Promise<AgentRagQueryResult>;
158
-
159
- /**
160
- * Extract Mind configuration from context
161
- * Provides type-safe access to mind config with validation
162
- */
163
- declare function useConfig(ctx: {
164
- config?: unknown;
165
- }): MindConfig;
166
- /**
167
- * Try to extract Mind configuration from context
168
- * Returns null if config is not available or invalid
169
- */
170
- declare function tryUseConfig(ctx: {
171
- config?: unknown;
172
- }): MindConfig | null;
173
- /**
174
- * Get sync configuration from mind config
175
- * Returns defaults if sync config is not provided
176
- */
177
- declare function useSyncConfig(ctx: {
178
- config?: unknown;
179
- }): MindSyncConfig;
180
-
181
- /**
182
- * Analytics event types for Mind CLI
183
- * Centralized constants to prevent typos and enable type safety
184
- */
185
- /**
186
- * Event type prefixes by command
187
- */
188
- declare const ANALYTICS_PREFIX: {
189
- readonly QUERY: "mind.query";
190
- readonly FEED: "mind.feed";
191
- readonly UPDATE: "mind.update";
192
- readonly INIT: "mind.init";
193
- readonly PACK: "mind.pack";
194
- readonly VERIFY: "mind.verify";
195
- };
196
- /**
197
- * Event lifecycle suffixes
198
- */
199
- declare const ANALYTICS_SUFFIX: {
200
- readonly STARTED: "started";
201
- readonly FINISHED: "finished";
202
- };
203
- /**
204
- * Mind analytics event types
205
- */
206
- declare const ANALYTICS_EVENTS: {
207
- readonly QUERY_STARTED: "mind.query.started";
208
- readonly QUERY_FINISHED: "mind.query.finished";
209
- readonly FEED_STARTED: "mind.feed.started";
210
- readonly FEED_FINISHED: "mind.feed.finished";
211
- readonly UPDATE_STARTED: "mind.update.started";
212
- readonly UPDATE_FINISHED: "mind.update.finished";
213
- readonly INIT_STARTED: "mind.init.started";
214
- readonly INIT_FINISHED: "mind.init.finished";
215
- readonly PACK_STARTED: "mind.pack.started";
216
- readonly PACK_FINISHED: "mind.pack.finished";
217
- readonly VERIFY_STARTED: "mind.verify.started";
218
- readonly VERIFY_FINISHED: "mind.verify.finished";
219
- };
220
- /**
221
- * Type helper for analytics event types
222
- */
223
- type AnalyticsEventType = typeof ANALYTICS_EVENTS[keyof typeof ANALYTICS_EVENTS];
224
- /**
225
- * Actor configuration for Mind analytics
226
- */
227
- declare const ANALYTICS_ACTOR: {
228
- readonly type: "agent";
229
- readonly id: "mind-cli";
230
- };
231
-
232
- /**
233
- * @module @kb-labs/mind-cli/cli/schemas
234
- * Input/Output schemas for CLI commands
235
- */
236
-
237
- declare const InitInputSchema: z.ZodObject<{
238
- cwd: z.ZodOptional<z.ZodString>;
239
- force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
240
- json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
241
- verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
242
- quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
243
- }, "strip", z.ZodTypeAny, {
244
- force: boolean;
245
- json: boolean;
246
- verbose: boolean;
247
- quiet: boolean;
248
- cwd?: string | undefined;
249
- }, {
250
- cwd?: string | undefined;
251
- force?: boolean | undefined;
252
- json?: boolean | undefined;
253
- verbose?: boolean | undefined;
254
- quiet?: boolean | undefined;
255
- }>;
256
- type InitInput = z.infer<typeof InitInputSchema>;
257
- declare const InitOutputSchema: z.ZodObject<{
258
- ok: z.ZodBoolean;
259
- mindDir: z.ZodString;
260
- cwd: z.ZodString;
261
- }, "strip", z.ZodTypeAny, {
262
- cwd: string;
263
- ok: boolean;
264
- mindDir: string;
265
- }, {
266
- cwd: string;
267
- ok: boolean;
268
- mindDir: string;
269
- }>;
270
- type InitOutput = z.infer<typeof InitOutputSchema>;
271
- declare const UpdateInputSchema: z.ZodObject<{
272
- cwd: z.ZodOptional<z.ZodString>;
273
- since: z.ZodOptional<z.ZodString>;
274
- timeBudget: z.ZodOptional<z.ZodNumber>;
275
- json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
276
- verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
277
- quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
278
- }, "strip", z.ZodTypeAny, {
279
- json: boolean;
280
- verbose: boolean;
281
- quiet: boolean;
282
- cwd?: string | undefined;
283
- since?: string | undefined;
284
- timeBudget?: number | undefined;
285
- }, {
286
- cwd?: string | undefined;
287
- json?: boolean | undefined;
288
- verbose?: boolean | undefined;
289
- quiet?: boolean | undefined;
290
- since?: string | undefined;
291
- timeBudget?: number | undefined;
292
- }>;
293
- type UpdateInput = z.infer<typeof UpdateInputSchema>;
294
- declare const UpdateOutputSchema: z.ZodObject<{
295
- ok: z.ZodBoolean;
296
- updated: z.ZodNumber;
297
- duration: z.ZodNumber;
298
- }, "strip", z.ZodTypeAny, {
299
- ok: boolean;
300
- updated: number;
301
- duration: number;
302
- }, {
303
- ok: boolean;
304
- updated: number;
305
- duration: number;
306
- }>;
307
- type UpdateOutput = z.infer<typeof UpdateOutputSchema>;
308
- declare const PackInputSchema: z.ZodObject<{
309
- cwd: z.ZodOptional<z.ZodString>;
310
- intent: z.ZodString;
311
- product: z.ZodOptional<z.ZodString>;
312
- preset: z.ZodOptional<z.ZodString>;
313
- budget: z.ZodOptional<z.ZodNumber>;
314
- withBundle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
315
- out: z.ZodOptional<z.ZodString>;
316
- seed: z.ZodOptional<z.ZodNumber>;
317
- json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
318
- verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
319
- quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
320
- }, "strip", z.ZodTypeAny, {
321
- json: boolean;
322
- verbose: boolean;
323
- quiet: boolean;
324
- intent: string;
325
- withBundle: boolean;
326
- cwd?: string | undefined;
327
- product?: string | undefined;
328
- preset?: string | undefined;
329
- budget?: number | undefined;
330
- out?: string | undefined;
331
- seed?: number | undefined;
332
- }, {
333
- intent: string;
334
- cwd?: string | undefined;
335
- json?: boolean | undefined;
336
- verbose?: boolean | undefined;
337
- quiet?: boolean | undefined;
338
- product?: string | undefined;
339
- preset?: string | undefined;
340
- budget?: number | undefined;
341
- withBundle?: boolean | undefined;
342
- out?: string | undefined;
343
- seed?: number | undefined;
344
- }>;
345
- type PackInput = z.infer<typeof PackInputSchema>;
346
- declare const PackOutputSchema: z.ZodObject<{
347
- ok: z.ZodBoolean;
348
- packPath: z.ZodString;
349
- size: z.ZodNumber;
350
- }, "strip", z.ZodTypeAny, {
351
- ok: boolean;
352
- packPath: string;
353
- size: number;
354
- }, {
355
- ok: boolean;
356
- packPath: string;
357
- size: number;
358
- }>;
359
- type PackOutput = z.infer<typeof PackOutputSchema>;
360
- declare const FeedInputSchema: z.ZodObject<{
361
- cwd: z.ZodOptional<z.ZodString>;
362
- intent: z.ZodOptional<z.ZodString>;
363
- product: z.ZodOptional<z.ZodString>;
364
- preset: z.ZodOptional<z.ZodString>;
365
- budget: z.ZodOptional<z.ZodNumber>;
366
- withBundle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
367
- since: z.ZodOptional<z.ZodString>;
368
- timeBudget: z.ZodOptional<z.ZodNumber>;
369
- noUpdate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
370
- out: z.ZodOptional<z.ZodString>;
371
- seed: z.ZodOptional<z.ZodNumber>;
372
- json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
373
- verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
374
- quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
375
- }, "strip", z.ZodTypeAny, {
376
- json: boolean;
377
- verbose: boolean;
378
- quiet: boolean;
379
- withBundle: boolean;
380
- noUpdate: boolean;
381
- cwd?: string | undefined;
382
- since?: string | undefined;
383
- timeBudget?: number | undefined;
384
- intent?: string | undefined;
385
- product?: string | undefined;
386
- preset?: string | undefined;
387
- budget?: number | undefined;
388
- out?: string | undefined;
389
- seed?: number | undefined;
390
- }, {
391
- cwd?: string | undefined;
392
- json?: boolean | undefined;
393
- verbose?: boolean | undefined;
394
- quiet?: boolean | undefined;
395
- since?: string | undefined;
396
- timeBudget?: number | undefined;
397
- intent?: string | undefined;
398
- product?: string | undefined;
399
- preset?: string | undefined;
400
- budget?: number | undefined;
401
- withBundle?: boolean | undefined;
402
- out?: string | undefined;
403
- seed?: number | undefined;
404
- noUpdate?: boolean | undefined;
405
- }>;
406
- type FeedInput = z.infer<typeof FeedInputSchema>;
407
- declare const FeedOutputSchema: z.ZodObject<{
408
- ok: z.ZodBoolean;
409
- packPath: z.ZodString;
410
- updated: z.ZodNumber;
411
- duration: z.ZodNumber;
412
- }, "strip", z.ZodTypeAny, {
413
- ok: boolean;
414
- updated: number;
415
- duration: number;
416
- packPath: string;
417
- }, {
418
- ok: boolean;
419
- updated: number;
420
- duration: number;
421
- packPath: string;
422
- }>;
423
- type FeedOutput = z.infer<typeof FeedOutputSchema>;
424
- declare const QueryInputSchema: z.ZodObject<{
425
- cwd: z.ZodOptional<z.ZodString>;
426
- query: z.ZodEnum<["impact", "scope", "exports", "externals", "chain", "meta", "docs"]>;
427
- file: z.ZodOptional<z.ZodString>;
428
- path: z.ZodOptional<z.ZodString>;
429
- scope: z.ZodOptional<z.ZodString>;
430
- product: z.ZodOptional<z.ZodString>;
431
- tag: z.ZodOptional<z.ZodString>;
432
- type: z.ZodOptional<z.ZodString>;
433
- filter: z.ZodOptional<z.ZodString>;
434
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
435
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
436
- cacheMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ci", "local"]>>>;
437
- cacheTtl: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
438
- noCache: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
439
- paths: z.ZodDefault<z.ZodOptional<z.ZodEnum<["id", "absolute"]>>>;
440
- aiMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
441
- toon: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
442
- toonSidecar: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
443
- json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
444
- compact: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
445
- quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
446
- }, "strip", z.ZodTypeAny, {
447
- paths: "id" | "absolute";
448
- json: boolean;
449
- quiet: boolean;
450
- query: "scope" | "meta" | "impact" | "exports" | "externals" | "chain" | "docs";
451
- limit: number;
452
- depth: number;
453
- cacheMode: "ci" | "local";
454
- cacheTtl: number;
455
- noCache: boolean;
456
- aiMode: boolean;
457
- toon: boolean;
458
- toonSidecar: boolean;
459
- compact: boolean;
460
- scope?: string | undefined;
461
- cwd?: string | undefined;
462
- path?: string | undefined;
463
- type?: string | undefined;
464
- filter?: string | undefined;
465
- product?: string | undefined;
466
- file?: string | undefined;
467
- tag?: string | undefined;
468
- }, {
469
- query: "scope" | "meta" | "impact" | "exports" | "externals" | "chain" | "docs";
470
- scope?: string | undefined;
471
- paths?: "id" | "absolute" | undefined;
472
- cwd?: string | undefined;
473
- json?: boolean | undefined;
474
- quiet?: boolean | undefined;
475
- path?: string | undefined;
476
- type?: string | undefined;
477
- filter?: string | undefined;
478
- product?: string | undefined;
479
- file?: string | undefined;
480
- tag?: string | undefined;
481
- limit?: number | undefined;
482
- depth?: number | undefined;
483
- cacheMode?: "ci" | "local" | undefined;
484
- cacheTtl?: number | undefined;
485
- noCache?: boolean | undefined;
486
- aiMode?: boolean | undefined;
487
- toon?: boolean | undefined;
488
- toonSidecar?: boolean | undefined;
489
- compact?: boolean | undefined;
490
- }>;
491
- type QueryInput = z.infer<typeof QueryInputSchema>;
492
- declare const QueryOutputSchema: z.ZodObject<{
493
- ok: z.ZodBoolean;
494
- query: z.ZodString;
495
- result: z.ZodAny;
496
- toonPath: z.ZodOptional<z.ZodString>;
497
- }, "strip", z.ZodTypeAny, {
498
- ok: boolean;
499
- query: string;
500
- result?: any;
501
- toonPath?: string | undefined;
502
- }, {
503
- ok: boolean;
504
- query: string;
505
- result?: any;
506
- toonPath?: string | undefined;
507
- }>;
508
- type QueryOutput = z.infer<typeof QueryOutputSchema>;
509
- declare const VerifyInputSchema: z.ZodObject<{
510
- cwd: z.ZodOptional<z.ZodString>;
511
- json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
512
- quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
513
- }, "strip", z.ZodTypeAny, {
514
- json: boolean;
515
- quiet: boolean;
516
- cwd?: string | undefined;
517
- }, {
518
- cwd?: string | undefined;
519
- json?: boolean | undefined;
520
- quiet?: boolean | undefined;
521
- }>;
522
- type VerifyInput = z.infer<typeof VerifyInputSchema>;
523
- declare const VerifyOutputSchema: z.ZodObject<{
524
- ok: z.ZodBoolean;
525
- consistent: z.ZodBoolean;
526
- errors: z.ZodArray<z.ZodObject<{
527
- file: z.ZodString;
528
- message: z.ZodString;
529
- }, "strip", z.ZodTypeAny, {
530
- message: string;
531
- file: string;
532
- }, {
533
- message: string;
534
- file: string;
535
- }>, "many">;
536
- }, "strip", z.ZodTypeAny, {
537
- ok: boolean;
538
- consistent: boolean;
539
- errors: {
540
- message: string;
541
- file: string;
542
- }[];
543
- }, {
544
- ok: boolean;
545
- consistent: boolean;
546
- errors: {
547
- message: string;
548
- file: string;
549
- }[];
550
- }>;
551
- type VerifyOutput = z.infer<typeof VerifyOutputSchema>;
552
-
553
- declare const colors: {
554
- red: (text: string) => string;
555
- green: (text: string) => string;
556
- yellow: (text: string) => string;
557
- blue: (text: string) => string;
558
- cyan: (text: string) => string;
559
- gray: (text: string) => string;
560
- bold: (text: string) => string;
561
- dim: (text: string) => string;
562
- };
563
- declare const safeColors: {
564
- red: (text: string) => string;
565
- green: (text: string) => string;
566
- yellow: (text: string) => string;
567
- blue: (text: string) => string;
568
- cyan: (text: string) => string;
569
- gray: (text: string) => string;
570
- bold: (text: string) => string;
571
- dim: (text: string) => string;
572
- };
573
- declare const safeSymbols: {
574
- check: string;
575
- cross: string;
576
- arrow: string;
577
- bullet: string;
578
- info: string;
579
- warning: string;
580
- error: string;
581
- };
582
- declare class TimingTracker {
583
- private startTime;
584
- constructor();
585
- getElapsed(): number;
586
- getElapsedMs(): number;
587
- }
588
- declare function formatTiming(ms: number): string;
589
- declare function box(textOrTitle: string, maybeLines?: string[] | string): string;
590
- declare function keyValue(entries: Record<string, string | number>): string[];
591
- declare function keyValue(key: string, value: string | number): string;
592
- declare function createSpinner(text: string): {
593
- stop: (finalText?: string) => void;
594
- };
595
-
596
- export { ANALYTICS_ACTOR, ANALYTICS_EVENTS, ANALYTICS_PREFIX, ANALYTICS_SUFFIX, type AdapterInfo, type AgentRagQueryOptions, type AgentRagQueryResult, type AnalyticsEventType, type FeedInput, FeedInputSchema, type FeedOutput, FeedOutputSchema, type InitInput, InitInputSchema, type InitOutput, InitOutputSchema, MIND_PRODUCT_ID, type MindRuntime, type MindRuntimeOptions, type MindRuntimeService, type PackInput, PackInputSchema, type PackOutput, PackOutputSchema, type QueryInput, QueryInputSchema, type QueryOutput, QueryOutputSchema, type RagIndexOptions, type RagIndexOptionsWithRuntime, type RagIndexResult, type RagIndexStats, type RagQueryOptions, type RagQueryResult, TimingTracker, type UpdateInput, UpdateInputSchema, type UpdateOutput, UpdateOutputSchema, type VerifyInput, VerifyInputSchema, type VerifyOutput, VerifyOutputSchema, box, colors, createMindRuntime, createSpinner, formatTiming, keyValue, runAgentRagQuery, runRagIndex, runRagQuery, safeColors, safeSymbols, tryUseConfig, useConfig, useSyncConfig };
1
+ export { default as manifest } from './manifest.js';
2
+ import '@kb-labs/plugin-contracts';