@voidwire/lore 1.8.2 → 1.8.5

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.
@@ -78,7 +78,6 @@ export async function findCandidates(
78
78
 
79
79
  return hybridSearch(content, {
80
80
  source,
81
- project: topic || undefined,
82
81
  limit: CANDIDATE_LIMIT,
83
82
  });
84
83
  }
@@ -2,7 +2,7 @@
2
2
  * lib/indexers/personal.ts - Personal data indexer
3
3
  *
4
4
  * Reads JSON files from the personal data directory and indexes
5
- * 8 types: book, person, movie, podcast, interest, habit, profile, preference.
5
+ * 8 types: book, contact, movie, podcast, interest, habit, profile, preference.
6
6
  *
7
7
  * Source: personal
8
8
  * Topic: (empty - type handles categorization)
@@ -31,16 +31,23 @@ Keep under 80 words. Output only the description, no headers or formatting.`;
31
31
 
32
32
  const ENRICH_PROMPTS: Record<string, string> = {
33
33
  person: `You are enriching a personal contact entry for search indexing.
34
- The "relationship" field is the EXACT relationship do NOT add other relationship types.
35
- Generate synonyms and alternative phrasings ONLY for the stated relationship.
36
- Example: relationship "uncle" → uncle, family member, relative, parent's brother, parent's sibling. NOT: cousin, nephew, aunt.
37
- Example: relationship "daughter" → daughter, child, kid, offspring, family member. NOT: son, niece, nephew.
34
+ Generate a natural language description that includes the person's name and their relationship.
35
+ Include synonyms for the relationship naturally in the sentence.
36
+ Example: {"name":"Mike","relationship":"uncle"}Mike is an uncle, a family member and relative on the parent's side.
37
+ Example: {"name":"Jade","relationship":"child"}Jade is a child, a kid and offspring in the family.
38
+ Example: {"name":"Sansa","relationship":"cat"} → Sansa is a cat, a pet and feline companion in the household.
38
39
  ${ENRICH_SHARED}`,
39
40
  book: `You are enriching a book entry for search indexing.
40
- Generate: genre, themes, and related topics based on the title.
41
+ Generate a natural language description starting with the book's title and author.
42
+ Include genre, themes, and related topics naturally in the sentence.
43
+ Example: {"title":"The Odyssey","author":"Homer"} → The Odyssey by Homer is an epic poem exploring journey, homecoming, fate, and loyalty through Greek mythology.
44
+ Example: {"title":"Dune","author":"Frank Herbert"} → Dune by Frank Herbert is a sci-fi novel about power, ecology, religion, and survival on a desert planet.
41
45
  ${ENRICH_SHARED}`,
42
46
  movie: `You are enriching a movie entry for search indexing.
43
- Generate: genre, themes, and related topics based on the title.
47
+ Generate a natural language description starting with the movie's title.
48
+ Include genre, themes, and related topics naturally in the sentence.
49
+ Example: {"title":"The Matrix","year":1999} → The Matrix (1999) is a sci-fi action film exploring reality, free will, and technology through cyberpunk themes.
50
+ Example: {"title":"Pan's Labyrinth","year":2006} → Pan's Labyrinth (2006) is a dark fantasy drama about childhood, political oppression, and magical escape during the Spanish Civil War.
44
51
  ${ENRICH_SHARED}`,
45
52
  interest: `You are enriching a personal interest entry for search indexing.
46
53
  Generate: related activities, domains, synonyms, and common alternative phrasings.
@@ -152,7 +159,7 @@ export async function indexPersonal(ctx: IndexerContext): Promise<void> {
152
159
  title: person.name,
153
160
  content,
154
161
  topic: "",
155
- type: "person",
162
+ type: "contact",
156
163
  timestamp: peopleTs,
157
164
  metadata: { name: person.name },
158
165
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidwire/lore",
3
- "version": "1.8.2",
3
+ "version": "1.8.5",
4
4
  "description": "Unified knowledge CLI - Search, list, and capture your indexed knowledge",
5
5
  "type": "module",
6
6
  "main": "./index.ts",