aifastdb 0.2.1

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 (53) hide show
  1. package/aidb.win32-x64-msvc.node +0 -0
  2. package/aifastdb.win32-x64-msvc.node +0 -0
  3. package/dist/client.d.ts +140 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +270 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/connectme-adapter.d.ts +76 -0
  8. package/dist/connectme-adapter.d.ts.map +1 -0
  9. package/dist/connectme-adapter.js +456 -0
  10. package/dist/connectme-adapter.js.map +1 -0
  11. package/dist/family-tree.d.ts +482 -0
  12. package/dist/family-tree.d.ts.map +1 -0
  13. package/dist/family-tree.js +676 -0
  14. package/dist/family-tree.js.map +1 -0
  15. package/dist/family-types.d.ts +228 -0
  16. package/dist/family-types.d.ts.map +1 -0
  17. package/dist/family-types.js +108 -0
  18. package/dist/family-types.js.map +1 -0
  19. package/dist/index.d.ts +25 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +70 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/memory-manager.d.ts +82 -0
  24. package/dist/memory-manager.d.ts.map +1 -0
  25. package/dist/memory-manager.js +273 -0
  26. package/dist/memory-manager.js.map +1 -0
  27. package/dist/native.d.ts +352 -0
  28. package/dist/native.d.ts.map +1 -0
  29. package/dist/native.js +35 -0
  30. package/dist/native.js.map +1 -0
  31. package/dist/query-builder.d.ts +143 -0
  32. package/dist/query-builder.d.ts.map +1 -0
  33. package/dist/query-builder.js +240 -0
  34. package/dist/query-builder.js.map +1 -0
  35. package/dist/social-graph.d.ts +392 -0
  36. package/dist/social-graph.d.ts.map +1 -0
  37. package/dist/social-graph.js +545 -0
  38. package/dist/social-graph.js.map +1 -0
  39. package/dist/social-types.d.ts +379 -0
  40. package/dist/social-types.d.ts.map +1 -0
  41. package/dist/social-types.js +34 -0
  42. package/dist/social-types.js.map +1 -0
  43. package/dist/types.d.ts +475 -0
  44. package/dist/types.d.ts.map +1 -0
  45. package/dist/types.js +161 -0
  46. package/dist/types.js.map +1 -0
  47. package/dist/vibe-synapse.d.ts +174 -0
  48. package/dist/vibe-synapse.d.ts.map +1 -0
  49. package/dist/vibe-synapse.js +509 -0
  50. package/dist/vibe-synapse.js.map +1 -0
  51. package/package.json +61 -0
  52. package/vibebase.node +0 -0
  53. package/vibebase.win32-x64-msvc.node +0 -0
@@ -0,0 +1,379 @@
1
+ /**
2
+ * Social Graph Types for AiFastDb
3
+ *
4
+ * Provides TypeScript interfaces for social network operations:
5
+ * - Person and friend management
6
+ * - Tag and organization relationships
7
+ * - Item and attribute matching
8
+ * - Path finding and network analysis
9
+ */
10
+ /** Entity in the knowledge graph */
11
+ export interface Entity {
12
+ id: string;
13
+ name: string;
14
+ entity_type: string;
15
+ properties: Record<string, unknown>;
16
+ memory_refs: string[];
17
+ embedding?: number[];
18
+ created_at: number;
19
+ updated_at: number;
20
+ }
21
+ /** Relation between entities */
22
+ export interface Relation {
23
+ id: string;
24
+ source: string;
25
+ target: string;
26
+ relation_type: string;
27
+ weight: number;
28
+ bidirectional: boolean;
29
+ metadata: Record<string, unknown>;
30
+ created_at: number;
31
+ }
32
+ /** Input for creating a person */
33
+ export interface PersonInput {
34
+ id?: string;
35
+ name: string;
36
+ avatar?: string;
37
+ description?: string;
38
+ phone?: string;
39
+ email?: string;
40
+ wechat?: string;
41
+ properties?: Record<string, unknown>;
42
+ }
43
+ /** Filter for querying persons */
44
+ export interface PersonFilter {
45
+ name?: string;
46
+ tags?: string[];
47
+ attributes?: Record<string, string>;
48
+ limit?: number;
49
+ }
50
+ /** Configuration for friend relationship */
51
+ export interface FriendConfig {
52
+ relationType?: 'friend' | 'knows' | 'colleague' | 'classmate' | 'family' | 'mentor';
53
+ weight?: number;
54
+ bidirectional?: boolean;
55
+ since?: string;
56
+ via?: string;
57
+ metadata?: Record<string, unknown>;
58
+ }
59
+ /** Input for creating a tag */
60
+ export interface TagInput {
61
+ id?: string;
62
+ name: string;
63
+ tagType?: 'tag' | 'company' | 'organization' | 'skill' | 'interest';
64
+ description?: string;
65
+ color?: string;
66
+ parentTags?: string[];
67
+ properties?: Record<string, unknown>;
68
+ }
69
+ /** Input for creating an item */
70
+ export interface ItemInput {
71
+ id?: string;
72
+ name: string;
73
+ category: 'vehicle' | 'phone' | 'computer' | 'camera' | 'watch' | 'headphone' | 'game_console' | string;
74
+ brand?: string;
75
+ model?: string;
76
+ properties?: Record<string, unknown>;
77
+ }
78
+ /** Result of shared item discovery */
79
+ export interface SharedItemResult {
80
+ item: Entity;
81
+ owners: Entity[];
82
+ ownerCount: number;
83
+ }
84
+ /** Result of item-based person matching */
85
+ export interface ItemMatchResult {
86
+ person: Entity;
87
+ sharedItems: Entity[];
88
+ matchScore: number;
89
+ matchDetails: ItemMatchDetail[];
90
+ }
91
+ /** Detail of an item match */
92
+ export interface ItemMatchDetail {
93
+ item: Entity;
94
+ relationType: string;
95
+ }
96
+ /** Input for creating an attribute */
97
+ export interface AttributeInput {
98
+ id?: string;
99
+ category: 'zodiac' | 'mbti' | 'school' | 'city' | 'hobby' | 'industry' | 'age_group' | string;
100
+ value: string;
101
+ properties?: Record<string, unknown>;
102
+ }
103
+ /** Configuration for attribute matching */
104
+ export interface AttributeMatchConfig {
105
+ categoryWeights?: Record<string, number>;
106
+ minMatchCount?: number;
107
+ includeCategories?: string[];
108
+ excludeCategories?: string[];
109
+ }
110
+ /** Default attribute weights */
111
+ export declare const DEFAULT_ATTRIBUTE_WEIGHTS: Record<string, number>;
112
+ /** Result of shared attribute discovery */
113
+ export interface SharedAttributeResult {
114
+ attribute: Entity;
115
+ category: string;
116
+ persons: Entity[];
117
+ personCount: number;
118
+ }
119
+ /** Detail of an attribute match */
120
+ export interface SharedAttributeDetail {
121
+ attribute: Entity;
122
+ category: string;
123
+ weight: number;
124
+ }
125
+ /** Result of attribute-based person matching */
126
+ export interface AttributeMatchResult {
127
+ person: Entity;
128
+ sharedAttributes: SharedAttributeDetail[];
129
+ matchScore: number;
130
+ compatibilityAnalysis?: string;
131
+ }
132
+ /** Result of compatibility analysis */
133
+ export interface CompatibilityResult {
134
+ overallScore: number;
135
+ sharedAttributes: SharedAttributeDetail[];
136
+ complementaryAttributes: string[];
137
+ analysis: string;
138
+ }
139
+ /** Result of path finding */
140
+ export interface PathResult {
141
+ path: Entity[];
142
+ hops: number;
143
+ intermediaries: Entity[];
144
+ relationChain: Relation[];
145
+ }
146
+ /** Result of finding all paths */
147
+ export interface AllPathsResult {
148
+ paths: PathResult[];
149
+ shortestHops: number;
150
+ }
151
+ /** Options for path finding */
152
+ export interface PathOptions {
153
+ maxHops?: number;
154
+ relationTypes?: string[];
155
+ bidirectionalSearch?: boolean;
156
+ }
157
+ /** N-degree contacts result */
158
+ export interface DegreeContacts {
159
+ degree1: Entity[];
160
+ degree2: Entity[];
161
+ degree3: Entity[];
162
+ }
163
+ /** Relationship strength between two people */
164
+ export interface RelationshipStrength {
165
+ directStrength: number;
166
+ mutualFriendsCount: number;
167
+ mutualTagsCount: number;
168
+ mutualItemsCount: number;
169
+ mutualAttributesCount: number;
170
+ shortestPathLength: number;
171
+ overallScore: number;
172
+ }
173
+ /** Reason for connection suggestion */
174
+ export type SuggestionReason = {
175
+ type: 'mutual_friend';
176
+ count: number;
177
+ } | {
178
+ type: 'mutual_tag';
179
+ tagName: string;
180
+ } | {
181
+ type: 'second_degree';
182
+ } | {
183
+ type: 'similar_profile';
184
+ } | {
185
+ type: 'shared_item';
186
+ itemName: string;
187
+ } | {
188
+ type: 'same_brand';
189
+ brand: string;
190
+ } | {
191
+ type: 'same_school';
192
+ school: string;
193
+ } | {
194
+ type: 'same_city';
195
+ city: string;
196
+ } | {
197
+ type: 'same_zodiac';
198
+ zodiac: string;
199
+ } | {
200
+ type: 'same_hobby';
201
+ hobby: string;
202
+ } | {
203
+ type: 'same_industry';
204
+ industry: string;
205
+ } | {
206
+ type: 'same_mbti';
207
+ mbti: string;
208
+ } | {
209
+ type: 'high_compatibility';
210
+ score: number;
211
+ };
212
+ /** Connection suggestion */
213
+ export interface ConnectionSuggestion {
214
+ person: Entity;
215
+ score: number;
216
+ reasons: SuggestionReason[];
217
+ via?: Entity;
218
+ }
219
+ /** Configuration for connection suggestions */
220
+ export interface SuggestionConfig {
221
+ friendWeight?: number;
222
+ tagWeight?: number;
223
+ itemWeight?: number;
224
+ attributeWeight?: number;
225
+ pathWeight?: number;
226
+ attributeConfig?: AttributeMatchConfig;
227
+ excludeExistingFriends?: boolean;
228
+ minScore?: number;
229
+ maxResults?: number;
230
+ }
231
+ /** Default suggestion weights */
232
+ export declare const DEFAULT_SUGGESTION_CONFIG: Required<Omit<SuggestionConfig, 'attributeConfig'>>;
233
+ /** Network statistics for a person */
234
+ export interface NetworkStats {
235
+ totalFriends: number;
236
+ totalTags: number;
237
+ totalItems: number;
238
+ totalAttributes: number;
239
+ networkReach2hop: number;
240
+ networkReach3hop: number;
241
+ avgPathLength: number;
242
+ clusteringCoefficient: number;
243
+ }
244
+ /** ConnectMe person format */
245
+ export interface ConnectMePerson {
246
+ _id: string;
247
+ name: string;
248
+ avatar?: string;
249
+ phone?: string;
250
+ email?: string;
251
+ wechat?: string;
252
+ description?: string;
253
+ tags?: Array<{
254
+ _id: string;
255
+ name: string;
256
+ }>;
257
+ items?: Array<{
258
+ _id: string;
259
+ name: string;
260
+ category: string;
261
+ brand?: string;
262
+ model?: string;
263
+ }>;
264
+ attributes?: {
265
+ zodiac?: string;
266
+ mbti?: string;
267
+ school?: string;
268
+ city?: string;
269
+ hobbies?: string[];
270
+ industry?: string;
271
+ age_group?: string;
272
+ };
273
+ }
274
+ /** ConnectMe tag format */
275
+ export interface ConnectMeTag {
276
+ _id: string;
277
+ name: string;
278
+ description?: string;
279
+ color?: string;
280
+ parent_tags?: Array<{
281
+ _id: string;
282
+ name: string;
283
+ }>;
284
+ child_tags?: Array<{
285
+ _id: string;
286
+ name: string;
287
+ }>;
288
+ connections?: string[];
289
+ connection_count?: number;
290
+ }
291
+ /** ConnectMe company format */
292
+ export interface ConnectMeCompany {
293
+ _id: string;
294
+ name: string;
295
+ description?: string;
296
+ website?: string;
297
+ }
298
+ /** ConnectMe organization format */
299
+ export interface ConnectMeOrganization {
300
+ _id: string;
301
+ name: string;
302
+ description?: string;
303
+ type?: string;
304
+ }
305
+ /** ConnectMe data bundle */
306
+ export interface ConnectMeData {
307
+ persons: ConnectMePerson[];
308
+ tags: ConnectMeTag[];
309
+ companies?: ConnectMeCompany[];
310
+ organizations?: ConnectMeOrganization[];
311
+ }
312
+ /** Import result */
313
+ export interface ImportResult {
314
+ persons: {
315
+ created: number;
316
+ updated: number;
317
+ failed: number;
318
+ };
319
+ tags: {
320
+ created: number;
321
+ updated: number;
322
+ failed: number;
323
+ };
324
+ relations: {
325
+ created: number;
326
+ failed: number;
327
+ };
328
+ items?: {
329
+ created: number;
330
+ failed: number;
331
+ };
332
+ attributes?: {
333
+ created: number;
334
+ failed: number;
335
+ };
336
+ }
337
+ /** Export options */
338
+ export interface ExportOptions {
339
+ includeItems?: boolean;
340
+ includeAttributes?: boolean;
341
+ includeFriendRelations?: boolean;
342
+ }
343
+ /** Birthday match type */
344
+ export type BirthdayMatchType = 'exact' | 'same_day_month' | 'same_month';
345
+ /** Birthday match result */
346
+ export interface BirthdayMatchResult {
347
+ /** The person entity */
348
+ person: Entity;
349
+ /** Birthday in YYYY-MM-DD format */
350
+ birthday: string;
351
+ /** Type of match */
352
+ matchType: BirthdayMatchType;
353
+ }
354
+ /** Birthday statistics */
355
+ export interface BirthdayStats {
356
+ /** Total number of people with birthdays set */
357
+ totalWithBirthday: number;
358
+ /** Most common month-day birthdays: [date, count] */
359
+ mostCommonDates: Array<[string, number]>;
360
+ /** Count by month (1-12) */
361
+ byMonth: Record<number, number>;
362
+ }
363
+ /** Birthday suggestion reason */
364
+ export type BirthdaySuggestionReason = {
365
+ type: 'same_birthday_exact';
366
+ birthday: string;
367
+ } | {
368
+ type: 'same_birthday_day_month';
369
+ monthDay: string;
370
+ };
371
+ /** Update SuggestionReason to include birthday */
372
+ export type ExtendedSuggestionReason = SuggestionReason | {
373
+ type: 'same_birthday';
374
+ birthday: string;
375
+ } | {
376
+ type: 'same_birthday_month_day';
377
+ monthDay: string;
378
+ };
379
+ //# sourceMappingURL=social-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-types.d.ts","sourceRoot":"","sources":["../ts/social-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,oCAAoC;AACpC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,gCAAgC;AAChC,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD,kCAAkC;AAClC,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,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AAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE1E,4BAA4B;AAC5B,MAAM,WAAW,mBAAmB;IAClC,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,SAAS,EAAE,iBAAiB,CAAC;CAC9B;AAED,0BAA0B;AAC1B,MAAM,WAAW,aAAa;IAC5B,gDAAgD;IAChD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,eAAe,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED,iCAAiC;AACjC,MAAM,MAAM,wBAAwB,GAChC;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,yBAAyB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,kDAAkD;AAClD,MAAM,MAAM,wBAAwB,GAChC,gBAAgB,GAChB;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,yBAAyB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * Social Graph Types for AiFastDb
4
+ *
5
+ * Provides TypeScript interfaces for social network operations:
6
+ * - Person and friend management
7
+ * - Tag and organization relationships
8
+ * - Item and attribute matching
9
+ * - Path finding and network analysis
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DEFAULT_SUGGESTION_CONFIG = exports.DEFAULT_ATTRIBUTE_WEIGHTS = void 0;
13
+ /** Default attribute weights */
14
+ exports.DEFAULT_ATTRIBUTE_WEIGHTS = {
15
+ school: 0.9,
16
+ city: 0.7,
17
+ industry: 0.8,
18
+ hobby: 0.6,
19
+ zodiac: 0.3,
20
+ mbti: 0.4,
21
+ age_group: 0.5,
22
+ };
23
+ /** Default suggestion weights */
24
+ exports.DEFAULT_SUGGESTION_CONFIG = {
25
+ friendWeight: 0.3,
26
+ tagWeight: 0.2,
27
+ itemWeight: 0.15,
28
+ attributeWeight: 0.25,
29
+ pathWeight: 0.1,
30
+ excludeExistingFriends: true,
31
+ minScore: 0,
32
+ maxResults: 20,
33
+ };
34
+ //# sourceMappingURL=social-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-types.js","sourceRoot":"","sources":["../ts/social-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAsIH,gCAAgC;AACnB,QAAA,yBAAyB,GAA2B;IAC/D,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;IACT,QAAQ,EAAE,GAAG;IACb,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;IACT,SAAS,EAAE,GAAG;CACf,CAAC;AAqHF,iCAAiC;AACpB,QAAA,yBAAyB,GAAwD;IAC5F,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,GAAG;IACd,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,IAAI;IACrB,UAAU,EAAE,GAAG;IACf,sBAAsB,EAAE,IAAI;IAC5B,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,EAAE;CACf,CAAC"}