@hiveforge/hivemind-mcp 0.1.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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +175 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/graph/builder.d.ts +47 -0
  8. package/dist/graph/builder.d.ts.map +1 -0
  9. package/dist/graph/builder.js +182 -0
  10. package/dist/graph/builder.js.map +1 -0
  11. package/dist/graph/database.d.ts +71 -0
  12. package/dist/graph/database.d.ts.map +1 -0
  13. package/dist/graph/database.js +255 -0
  14. package/dist/graph/database.js.map +1 -0
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +53 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/parser/markdown.d.ts +29 -0
  20. package/dist/parser/markdown.d.ts.map +1 -0
  21. package/dist/parser/markdown.js +122 -0
  22. package/dist/parser/markdown.js.map +1 -0
  23. package/dist/search/engine.d.ts +48 -0
  24. package/dist/search/engine.d.ts.map +1 -0
  25. package/dist/search/engine.js +88 -0
  26. package/dist/search/engine.js.map +1 -0
  27. package/dist/server.d.ts +23 -0
  28. package/dist/server.d.ts.map +1 -0
  29. package/dist/server.js +504 -0
  30. package/dist/server.js.map +1 -0
  31. package/dist/types/index.d.ts +646 -0
  32. package/dist/types/index.d.ts.map +1 -0
  33. package/dist/types/index.js +133 -0
  34. package/dist/types/index.js.map +1 -0
  35. package/dist/vault/reader.d.ts +56 -0
  36. package/dist/vault/reader.d.ts.map +1 -0
  37. package/dist/vault/reader.js +185 -0
  38. package/dist/vault/reader.js.map +1 -0
  39. package/dist/vault/watcher.d.ts +33 -0
  40. package/dist/vault/watcher.d.ts.map +1 -0
  41. package/dist/vault/watcher.js +92 -0
  42. package/dist/vault/watcher.js.map +1 -0
  43. package/package.json +77 -0
@@ -0,0 +1,646 @@
1
+ import { z } from 'zod';
2
+ export declare const NoteStatusSchema: z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>;
3
+ export type NoteStatus = z.infer<typeof NoteStatusSchema>;
4
+ export declare const NoteTypeSchema: z.ZodEnum<["character", "location", "event", "faction", "system", "asset", "lore"]>;
5
+ export type NoteType = z.infer<typeof NoteTypeSchema>;
6
+ export declare const ImportanceSchema: z.ZodEnum<["major", "minor", "background"]>;
7
+ export type Importance = z.infer<typeof ImportanceSchema>;
8
+ export declare const BaseFrontmatterSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ type: z.ZodEnum<["character", "location", "event", "faction", "system", "asset", "lore"]>;
11
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
12
+ title: z.ZodOptional<z.ZodString>;
13
+ world: z.ZodOptional<z.ZodString>;
14
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
15
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
16
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
17
+ created: z.ZodOptional<z.ZodString>;
18
+ updated: z.ZodOptional<z.ZodString>;
19
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "character" | "location" | "event" | "faction" | "system" | "asset" | "lore";
22
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
23
+ id: string;
24
+ tags: string[];
25
+ aliases: string[];
26
+ title?: string | undefined;
27
+ world?: string | undefined;
28
+ importance?: "major" | "minor" | "background" | undefined;
29
+ created?: string | undefined;
30
+ updated?: string | undefined;
31
+ canon_authority?: "high" | "medium" | "low" | undefined;
32
+ }, {
33
+ type: "character" | "location" | "event" | "faction" | "system" | "asset" | "lore";
34
+ id: string;
35
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
36
+ title?: string | undefined;
37
+ world?: string | undefined;
38
+ importance?: "major" | "minor" | "background" | undefined;
39
+ tags?: string[] | undefined;
40
+ aliases?: string[] | undefined;
41
+ created?: string | undefined;
42
+ updated?: string | undefined;
43
+ canon_authority?: "high" | "medium" | "low" | undefined;
44
+ }>;
45
+ export type BaseFrontmatter = z.infer<typeof BaseFrontmatterSchema>;
46
+ export declare const CharacterFrontmatterSchema: z.ZodObject<{
47
+ id: z.ZodString;
48
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
49
+ title: z.ZodOptional<z.ZodString>;
50
+ world: z.ZodOptional<z.ZodString>;
51
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
52
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
53
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
54
+ created: z.ZodOptional<z.ZodString>;
55
+ updated: z.ZodOptional<z.ZodString>;
56
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
57
+ } & {
58
+ type: z.ZodLiteral<"character">;
59
+ name: z.ZodString;
60
+ age: z.ZodOptional<z.ZodNumber>;
61
+ gender: z.ZodOptional<z.ZodString>;
62
+ race: z.ZodOptional<z.ZodString>;
63
+ appearance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
64
+ personality: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
65
+ relationships: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
66
+ assets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ type: "character";
69
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
70
+ id: string;
71
+ tags: string[];
72
+ aliases: string[];
73
+ name: string;
74
+ title?: string | undefined;
75
+ world?: string | undefined;
76
+ importance?: "major" | "minor" | "background" | undefined;
77
+ created?: string | undefined;
78
+ updated?: string | undefined;
79
+ canon_authority?: "high" | "medium" | "low" | undefined;
80
+ age?: number | undefined;
81
+ gender?: string | undefined;
82
+ race?: string | undefined;
83
+ appearance?: Record<string, any> | undefined;
84
+ personality?: Record<string, any> | undefined;
85
+ relationships?: Record<string, any>[] | undefined;
86
+ assets?: string[] | undefined;
87
+ }, {
88
+ type: "character";
89
+ id: string;
90
+ name: string;
91
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
92
+ title?: string | undefined;
93
+ world?: string | undefined;
94
+ importance?: "major" | "minor" | "background" | undefined;
95
+ tags?: string[] | undefined;
96
+ aliases?: string[] | undefined;
97
+ created?: string | undefined;
98
+ updated?: string | undefined;
99
+ canon_authority?: "high" | "medium" | "low" | undefined;
100
+ age?: number | undefined;
101
+ gender?: string | undefined;
102
+ race?: string | undefined;
103
+ appearance?: Record<string, any> | undefined;
104
+ personality?: Record<string, any> | undefined;
105
+ relationships?: Record<string, any>[] | undefined;
106
+ assets?: string[] | undefined;
107
+ }>;
108
+ export type CharacterFrontmatter = z.infer<typeof CharacterFrontmatterSchema>;
109
+ export declare const LocationFrontmatterSchema: z.ZodObject<{
110
+ id: z.ZodString;
111
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
112
+ title: z.ZodOptional<z.ZodString>;
113
+ world: z.ZodOptional<z.ZodString>;
114
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
115
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
116
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
117
+ created: z.ZodOptional<z.ZodString>;
118
+ updated: z.ZodOptional<z.ZodString>;
119
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
120
+ } & {
121
+ type: z.ZodLiteral<"location">;
122
+ name: z.ZodString;
123
+ region: z.ZodOptional<z.ZodString>;
124
+ category: z.ZodOptional<z.ZodString>;
125
+ parent: z.ZodOptional<z.ZodString>;
126
+ hierarchy_level: z.ZodOptional<z.ZodEnum<["continent", "region", "settlement", "building", "room"]>>;
127
+ children: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
128
+ climate: z.ZodOptional<z.ZodString>;
129
+ terrain: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ inhabitants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
+ connections: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
132
+ assets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "location";
135
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
136
+ id: string;
137
+ tags: string[];
138
+ aliases: string[];
139
+ name: string;
140
+ title?: string | undefined;
141
+ world?: string | undefined;
142
+ importance?: "major" | "minor" | "background" | undefined;
143
+ created?: string | undefined;
144
+ updated?: string | undefined;
145
+ canon_authority?: "high" | "medium" | "low" | undefined;
146
+ assets?: string[] | undefined;
147
+ region?: string | undefined;
148
+ category?: string | undefined;
149
+ parent?: string | undefined;
150
+ hierarchy_level?: "region" | "continent" | "settlement" | "building" | "room" | undefined;
151
+ children?: string[] | undefined;
152
+ climate?: string | undefined;
153
+ terrain?: string[] | undefined;
154
+ inhabitants?: string[] | undefined;
155
+ connections?: Record<string, any>[] | undefined;
156
+ }, {
157
+ type: "location";
158
+ id: string;
159
+ name: string;
160
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
161
+ title?: string | undefined;
162
+ world?: string | undefined;
163
+ importance?: "major" | "minor" | "background" | undefined;
164
+ tags?: string[] | undefined;
165
+ aliases?: string[] | undefined;
166
+ created?: string | undefined;
167
+ updated?: string | undefined;
168
+ canon_authority?: "high" | "medium" | "low" | undefined;
169
+ assets?: string[] | undefined;
170
+ region?: string | undefined;
171
+ category?: string | undefined;
172
+ parent?: string | undefined;
173
+ hierarchy_level?: "region" | "continent" | "settlement" | "building" | "room" | undefined;
174
+ children?: string[] | undefined;
175
+ climate?: string | undefined;
176
+ terrain?: string[] | undefined;
177
+ inhabitants?: string[] | undefined;
178
+ connections?: Record<string, any>[] | undefined;
179
+ }>;
180
+ export type LocationFrontmatter = z.infer<typeof LocationFrontmatterSchema>;
181
+ export declare const EventFrontmatterSchema: z.ZodObject<{
182
+ id: z.ZodString;
183
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
184
+ title: z.ZodOptional<z.ZodString>;
185
+ world: z.ZodOptional<z.ZodString>;
186
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
187
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
188
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
189
+ created: z.ZodOptional<z.ZodString>;
190
+ updated: z.ZodOptional<z.ZodString>;
191
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
192
+ } & {
193
+ type: z.ZodLiteral<"event">;
194
+ name: z.ZodString;
195
+ date: z.ZodOptional<z.ZodString>;
196
+ date_start: z.ZodOptional<z.ZodString>;
197
+ date_end: z.ZodOptional<z.ZodString>;
198
+ date_display: z.ZodOptional<z.ZodString>;
199
+ event_type: z.ZodOptional<z.ZodString>;
200
+ participants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
202
+ factions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
203
+ outcome: z.ZodOptional<z.ZodString>;
204
+ consequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
205
+ timeline: z.ZodOptional<z.ZodString>;
206
+ previous_event: z.ZodOptional<z.ZodString>;
207
+ next_event: z.ZodOptional<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ type: "event";
210
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
211
+ id: string;
212
+ tags: string[];
213
+ aliases: string[];
214
+ name: string;
215
+ title?: string | undefined;
216
+ world?: string | undefined;
217
+ importance?: "major" | "minor" | "background" | undefined;
218
+ created?: string | undefined;
219
+ updated?: string | undefined;
220
+ canon_authority?: "high" | "medium" | "low" | undefined;
221
+ date?: string | undefined;
222
+ date_start?: string | undefined;
223
+ date_end?: string | undefined;
224
+ date_display?: string | undefined;
225
+ event_type?: string | undefined;
226
+ participants?: string[] | undefined;
227
+ locations?: string[] | undefined;
228
+ factions?: string[] | undefined;
229
+ outcome?: string | undefined;
230
+ consequences?: string[] | undefined;
231
+ timeline?: string | undefined;
232
+ previous_event?: string | undefined;
233
+ next_event?: string | undefined;
234
+ }, {
235
+ type: "event";
236
+ id: string;
237
+ name: string;
238
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
239
+ title?: string | undefined;
240
+ world?: string | undefined;
241
+ importance?: "major" | "minor" | "background" | undefined;
242
+ tags?: string[] | undefined;
243
+ aliases?: string[] | undefined;
244
+ created?: string | undefined;
245
+ updated?: string | undefined;
246
+ canon_authority?: "high" | "medium" | "low" | undefined;
247
+ date?: string | undefined;
248
+ date_start?: string | undefined;
249
+ date_end?: string | undefined;
250
+ date_display?: string | undefined;
251
+ event_type?: string | undefined;
252
+ participants?: string[] | undefined;
253
+ locations?: string[] | undefined;
254
+ factions?: string[] | undefined;
255
+ outcome?: string | undefined;
256
+ consequences?: string[] | undefined;
257
+ timeline?: string | undefined;
258
+ previous_event?: string | undefined;
259
+ next_event?: string | undefined;
260
+ }>;
261
+ export type EventFrontmatter = z.infer<typeof EventFrontmatterSchema>;
262
+ export declare const FactionFrontmatterSchema: z.ZodObject<{
263
+ id: z.ZodString;
264
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
265
+ title: z.ZodOptional<z.ZodString>;
266
+ world: z.ZodOptional<z.ZodString>;
267
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
268
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
269
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
270
+ created: z.ZodOptional<z.ZodString>;
271
+ updated: z.ZodOptional<z.ZodString>;
272
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
273
+ } & {
274
+ type: z.ZodLiteral<"faction">;
275
+ name: z.ZodString;
276
+ faction_type: z.ZodOptional<z.ZodEnum<["house", "guild", "organization", "government", "military", "religion", "other"]>>;
277
+ leader: z.ZodOptional<z.ZodString>;
278
+ members: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
+ headquarters: z.ZodOptional<z.ZodString>;
280
+ founded: z.ZodOptional<z.ZodString>;
281
+ goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
283
+ allies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
284
+ rivals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: "faction";
287
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
288
+ id: string;
289
+ tags: string[];
290
+ aliases: string[];
291
+ name: string;
292
+ title?: string | undefined;
293
+ world?: string | undefined;
294
+ importance?: "major" | "minor" | "background" | undefined;
295
+ created?: string | undefined;
296
+ updated?: string | undefined;
297
+ canon_authority?: "high" | "medium" | "low" | undefined;
298
+ faction_type?: "house" | "guild" | "organization" | "government" | "military" | "religion" | "other" | undefined;
299
+ leader?: string | undefined;
300
+ members?: string[] | undefined;
301
+ headquarters?: string | undefined;
302
+ founded?: string | undefined;
303
+ goals?: string[] | undefined;
304
+ resources?: string[] | undefined;
305
+ allies?: string[] | undefined;
306
+ rivals?: string[] | undefined;
307
+ }, {
308
+ type: "faction";
309
+ id: string;
310
+ name: string;
311
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
312
+ title?: string | undefined;
313
+ world?: string | undefined;
314
+ importance?: "major" | "minor" | "background" | undefined;
315
+ tags?: string[] | undefined;
316
+ aliases?: string[] | undefined;
317
+ created?: string | undefined;
318
+ updated?: string | undefined;
319
+ canon_authority?: "high" | "medium" | "low" | undefined;
320
+ faction_type?: "house" | "guild" | "organization" | "government" | "military" | "religion" | "other" | undefined;
321
+ leader?: string | undefined;
322
+ members?: string[] | undefined;
323
+ headquarters?: string | undefined;
324
+ founded?: string | undefined;
325
+ goals?: string[] | undefined;
326
+ resources?: string[] | undefined;
327
+ allies?: string[] | undefined;
328
+ rivals?: string[] | undefined;
329
+ }>;
330
+ export type FactionFrontmatter = z.infer<typeof FactionFrontmatterSchema>;
331
+ export declare const LoreFrontmatterSchema: z.ZodObject<{
332
+ id: z.ZodString;
333
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
334
+ title: z.ZodOptional<z.ZodString>;
335
+ world: z.ZodOptional<z.ZodString>;
336
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
337
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
338
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
339
+ created: z.ZodOptional<z.ZodString>;
340
+ updated: z.ZodOptional<z.ZodString>;
341
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
342
+ } & {
343
+ type: z.ZodLiteral<"lore">;
344
+ name: z.ZodString;
345
+ category: z.ZodOptional<z.ZodEnum<["mythology", "history", "magic", "technology", "culture", "religion", "other"]>>;
346
+ related_entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
347
+ source: z.ZodOptional<z.ZodEnum<["in-world", "meta", "player-knowledge"]>>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ type: "lore";
350
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
351
+ id: string;
352
+ tags: string[];
353
+ aliases: string[];
354
+ name: string;
355
+ title?: string | undefined;
356
+ world?: string | undefined;
357
+ importance?: "major" | "minor" | "background" | undefined;
358
+ created?: string | undefined;
359
+ updated?: string | undefined;
360
+ canon_authority?: "high" | "medium" | "low" | undefined;
361
+ category?: "religion" | "other" | "mythology" | "history" | "magic" | "technology" | "culture" | undefined;
362
+ related_entities?: string[] | undefined;
363
+ source?: "in-world" | "meta" | "player-knowledge" | undefined;
364
+ }, {
365
+ type: "lore";
366
+ id: string;
367
+ name: string;
368
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
369
+ title?: string | undefined;
370
+ world?: string | undefined;
371
+ importance?: "major" | "minor" | "background" | undefined;
372
+ tags?: string[] | undefined;
373
+ aliases?: string[] | undefined;
374
+ created?: string | undefined;
375
+ updated?: string | undefined;
376
+ canon_authority?: "high" | "medium" | "low" | undefined;
377
+ category?: "religion" | "other" | "mythology" | "history" | "magic" | "technology" | "culture" | undefined;
378
+ related_entities?: string[] | undefined;
379
+ source?: "in-world" | "meta" | "player-knowledge" | undefined;
380
+ }>;
381
+ export type LoreFrontmatter = z.infer<typeof LoreFrontmatterSchema>;
382
+ export declare const AssetFrontmatterSchema: z.ZodObject<{
383
+ id: z.ZodString;
384
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>>;
385
+ title: z.ZodOptional<z.ZodString>;
386
+ world: z.ZodOptional<z.ZodString>;
387
+ importance: z.ZodOptional<z.ZodEnum<["major", "minor", "background"]>>;
388
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
389
+ aliases: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
390
+ created: z.ZodOptional<z.ZodString>;
391
+ updated: z.ZodOptional<z.ZodString>;
392
+ canon_authority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
393
+ } & {
394
+ type: z.ZodLiteral<"asset">;
395
+ asset_type: z.ZodDefault<z.ZodEnum<["image", "audio", "video", "document"]>>;
396
+ file_path: z.ZodString;
397
+ file_format: z.ZodOptional<z.ZodString>;
398
+ depicts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
399
+ generation_date: z.ZodOptional<z.ZodString>;
400
+ generator: z.ZodOptional<z.ZodString>;
401
+ workflow_id: z.ZodOptional<z.ZodString>;
402
+ prompt: z.ZodOptional<z.ZodString>;
403
+ negative_prompt: z.ZodOptional<z.ZodString>;
404
+ model: z.ZodOptional<z.ZodString>;
405
+ seed: z.ZodOptional<z.ZodNumber>;
406
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
407
+ approved_by: z.ZodOptional<z.ZodString>;
408
+ approval_date: z.ZodOptional<z.ZodString>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ type: "asset";
411
+ status: "draft" | "pending" | "canon" | "non-canon" | "archived";
412
+ id: string;
413
+ tags: string[];
414
+ aliases: string[];
415
+ asset_type: "image" | "audio" | "video" | "document";
416
+ file_path: string;
417
+ title?: string | undefined;
418
+ world?: string | undefined;
419
+ importance?: "major" | "minor" | "background" | undefined;
420
+ created?: string | undefined;
421
+ updated?: string | undefined;
422
+ canon_authority?: "high" | "medium" | "low" | undefined;
423
+ file_format?: string | undefined;
424
+ depicts?: string[] | undefined;
425
+ generation_date?: string | undefined;
426
+ generator?: string | undefined;
427
+ workflow_id?: string | undefined;
428
+ prompt?: string | undefined;
429
+ negative_prompt?: string | undefined;
430
+ model?: string | undefined;
431
+ seed?: number | undefined;
432
+ parameters?: Record<string, any> | undefined;
433
+ approved_by?: string | undefined;
434
+ approval_date?: string | undefined;
435
+ }, {
436
+ type: "asset";
437
+ id: string;
438
+ file_path: string;
439
+ status?: "draft" | "pending" | "canon" | "non-canon" | "archived" | undefined;
440
+ title?: string | undefined;
441
+ world?: string | undefined;
442
+ importance?: "major" | "minor" | "background" | undefined;
443
+ tags?: string[] | undefined;
444
+ aliases?: string[] | undefined;
445
+ created?: string | undefined;
446
+ updated?: string | undefined;
447
+ canon_authority?: "high" | "medium" | "low" | undefined;
448
+ asset_type?: "image" | "audio" | "video" | "document" | undefined;
449
+ file_format?: string | undefined;
450
+ depicts?: string[] | undefined;
451
+ generation_date?: string | undefined;
452
+ generator?: string | undefined;
453
+ workflow_id?: string | undefined;
454
+ prompt?: string | undefined;
455
+ negative_prompt?: string | undefined;
456
+ model?: string | undefined;
457
+ seed?: number | undefined;
458
+ parameters?: Record<string, any> | undefined;
459
+ approved_by?: string | undefined;
460
+ approval_date?: string | undefined;
461
+ }>;
462
+ export type AssetFrontmatter = z.infer<typeof AssetFrontmatterSchema>;
463
+ export interface VaultNote {
464
+ id: string;
465
+ filePath: string;
466
+ fileName: string;
467
+ frontmatter: BaseFrontmatter;
468
+ content: string;
469
+ links: string[];
470
+ headings: Heading[];
471
+ stats: {
472
+ size: number;
473
+ created: Date;
474
+ modified: Date;
475
+ };
476
+ }
477
+ export interface Heading {
478
+ level: number;
479
+ text: string;
480
+ position: number;
481
+ }
482
+ export interface GraphNode {
483
+ id: string;
484
+ type: NoteType;
485
+ status: NoteStatus;
486
+ title: string;
487
+ content: string;
488
+ properties: Record<string, any>;
489
+ filePath: string;
490
+ created: Date;
491
+ updated: Date;
492
+ }
493
+ export interface GraphEdge {
494
+ id: string;
495
+ sourceId: string;
496
+ targetId: string;
497
+ relationType?: string;
498
+ properties?: Record<string, any>;
499
+ bidirectional: boolean;
500
+ }
501
+ export interface KnowledgeGraph {
502
+ nodes: Map<string, GraphNode>;
503
+ edges: Map<string, GraphEdge>;
504
+ adjacencyList: Map<string, Set<string>>;
505
+ }
506
+ export interface SearchQuery {
507
+ query: string;
508
+ filters?: {
509
+ type?: NoteType[];
510
+ status?: NoteStatus[];
511
+ importance?: Importance[];
512
+ tags?: string[];
513
+ world?: string;
514
+ };
515
+ limit?: number;
516
+ offset?: number;
517
+ }
518
+ export interface SearchResult {
519
+ id: string;
520
+ type: NoteType;
521
+ title: string;
522
+ snippet: string;
523
+ score: number;
524
+ metadata: {
525
+ filePath: string;
526
+ status: NoteStatus;
527
+ importance?: Importance;
528
+ };
529
+ }
530
+ export interface HybridSearchResult {
531
+ results: SearchResult[];
532
+ scores: {
533
+ keyword: number;
534
+ semantic: number;
535
+ graph: number;
536
+ combined: number;
537
+ };
538
+ executionTime: number;
539
+ }
540
+ export declare const QueryCharacterArgsSchema: z.ZodObject<{
541
+ id: z.ZodString;
542
+ includeContent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
543
+ contentLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ id: string;
546
+ includeContent: boolean;
547
+ contentLimit: number;
548
+ }, {
549
+ id: string;
550
+ includeContent?: boolean | undefined;
551
+ contentLimit?: number | undefined;
552
+ }>;
553
+ export type QueryCharacterArgs = z.infer<typeof QueryCharacterArgsSchema>;
554
+ export declare const QueryLocationArgsSchema: z.ZodObject<{
555
+ id: z.ZodString;
556
+ includeContent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
557
+ contentLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ id: string;
560
+ includeContent: boolean;
561
+ contentLimit: number;
562
+ }, {
563
+ id: string;
564
+ includeContent?: boolean | undefined;
565
+ contentLimit?: number | undefined;
566
+ }>;
567
+ export type QueryLocationArgs = z.infer<typeof QueryLocationArgsSchema>;
568
+ export declare const SearchVaultArgsSchema: z.ZodObject<{
569
+ query: z.ZodString;
570
+ filters: z.ZodOptional<z.ZodObject<{
571
+ type: z.ZodOptional<z.ZodArray<z.ZodEnum<["character", "location", "event", "faction", "system", "asset", "lore"]>, "many">>;
572
+ status: z.ZodOptional<z.ZodArray<z.ZodEnum<["draft", "pending", "canon", "non-canon", "archived"]>, "many">>;
573
+ importance: z.ZodOptional<z.ZodArray<z.ZodEnum<["major", "minor", "background"]>, "many">>;
574
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
575
+ world: z.ZodOptional<z.ZodString>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ type?: ("character" | "location" | "event" | "faction" | "system" | "asset" | "lore")[] | undefined;
578
+ status?: ("draft" | "pending" | "canon" | "non-canon" | "archived")[] | undefined;
579
+ world?: string | undefined;
580
+ importance?: ("major" | "minor" | "background")[] | undefined;
581
+ tags?: string[] | undefined;
582
+ }, {
583
+ type?: ("character" | "location" | "event" | "faction" | "system" | "asset" | "lore")[] | undefined;
584
+ status?: ("draft" | "pending" | "canon" | "non-canon" | "archived")[] | undefined;
585
+ world?: string | undefined;
586
+ importance?: ("major" | "minor" | "background")[] | undefined;
587
+ tags?: string[] | undefined;
588
+ }>>;
589
+ limit: z.ZodDefault<z.ZodNumber>;
590
+ includeContent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
591
+ contentLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ includeContent: boolean;
594
+ contentLimit: number;
595
+ query: string;
596
+ limit: number;
597
+ filters?: {
598
+ type?: ("character" | "location" | "event" | "faction" | "system" | "asset" | "lore")[] | undefined;
599
+ status?: ("draft" | "pending" | "canon" | "non-canon" | "archived")[] | undefined;
600
+ world?: string | undefined;
601
+ importance?: ("major" | "minor" | "background")[] | undefined;
602
+ tags?: string[] | undefined;
603
+ } | undefined;
604
+ }, {
605
+ query: string;
606
+ includeContent?: boolean | undefined;
607
+ contentLimit?: number | undefined;
608
+ filters?: {
609
+ type?: ("character" | "location" | "event" | "faction" | "system" | "asset" | "lore")[] | undefined;
610
+ status?: ("draft" | "pending" | "canon" | "non-canon" | "archived")[] | undefined;
611
+ world?: string | undefined;
612
+ importance?: ("major" | "minor" | "background")[] | undefined;
613
+ tags?: string[] | undefined;
614
+ } | undefined;
615
+ limit?: number | undefined;
616
+ }>;
617
+ export type SearchVaultArgs = z.infer<typeof SearchVaultArgsSchema>;
618
+ export interface VaultConfig {
619
+ path: string;
620
+ watchForChanges?: boolean;
621
+ debounceMs?: number;
622
+ excludePatterns?: string[];
623
+ }
624
+ export interface ServerConfig {
625
+ transport: 'stdio' | 'http' | 'sse';
626
+ port?: number;
627
+ host?: string;
628
+ apiKey?: string;
629
+ }
630
+ export interface IndexConfig {
631
+ strategy: 'full' | 'incremental';
632
+ batchSize?: number;
633
+ enableVectorSearch?: boolean;
634
+ enableFullTextSearch?: boolean;
635
+ }
636
+ export interface HivemindConfig {
637
+ vault: VaultConfig;
638
+ server: ServerConfig;
639
+ indexing?: IndexConfig;
640
+ embedding?: {
641
+ model: string;
642
+ provider: 'openai' | 'local';
643
+ apiKey?: string;
644
+ };
645
+ }
646
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gBAAgB,mEAAiE,CAAC;AAC/F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc,qFAAmF,CAAC;AAC/G,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,gBAAgB,6CAA2C,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC;AA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