@voidwire/lore 0.5.4 → 0.5.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.
- package/lib/capture.ts +2 -5
- package/lib/list.ts +4 -3
- package/lib/projects.ts +5 -2
- package/lib/semantic.ts +6 -4
- package/package.json +1 -1
package/lib/capture.ts
CHANGED
|
@@ -74,10 +74,9 @@ export interface InsightInput {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export interface LearningInput {
|
|
77
|
-
topic: string; // "spanish", "guitar", "kubernetes"
|
|
77
|
+
topic: string; // "spanish", "guitar", "kubernetes" - the learning topic
|
|
78
78
|
persona: string; // "marcus", "elena", etc.
|
|
79
79
|
progress: string; // "Covered verb conjugations, struggles with subjunctive"
|
|
80
|
-
goal?: string; // "conversational in 3 months"
|
|
81
80
|
session_summary?: string; // Longer form session notes
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -152,10 +151,9 @@ interface LearningEvent {
|
|
|
152
151
|
type: "learning";
|
|
153
152
|
timestamp: string;
|
|
154
153
|
data: {
|
|
155
|
-
topic: string;
|
|
154
|
+
topic: string; // Learning topic (spanish, guitar, etc.)
|
|
156
155
|
persona: string;
|
|
157
156
|
progress: string;
|
|
158
|
-
goal?: string;
|
|
159
157
|
session_summary?: string;
|
|
160
158
|
};
|
|
161
159
|
}
|
|
@@ -358,7 +356,6 @@ export function captureLearning(input: LearningInput): CaptureResult {
|
|
|
358
356
|
topic: input.topic,
|
|
359
357
|
persona: input.persona,
|
|
360
358
|
progress: input.progress,
|
|
361
|
-
goal: input.goal,
|
|
362
359
|
session_summary: input.session_summary,
|
|
363
360
|
},
|
|
364
361
|
};
|
package/lib/list.ts
CHANGED
|
@@ -63,14 +63,15 @@ const PERSONAL_SUBTYPES: Partial<Record<Source, string>> = {
|
|
|
63
63
|
habits: "habit",
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// Maps source to metadata field
|
|
66
|
+
// Maps source to metadata field for --project filter
|
|
67
|
+
// Project-based domains use "project", topic-based domains use "topic"
|
|
67
68
|
const PROJECT_FIELD: Record<string, string> = {
|
|
68
69
|
commits: "project",
|
|
69
70
|
sessions: "project",
|
|
70
71
|
tasks: "project",
|
|
71
|
-
captures: "context",
|
|
72
|
-
teachings: "source",
|
|
73
72
|
insights: "project",
|
|
73
|
+
captures: "topic",
|
|
74
|
+
teachings: "topic",
|
|
74
75
|
learnings: "topic",
|
|
75
76
|
};
|
|
76
77
|
|
package/lib/projects.ts
CHANGED
|
@@ -9,12 +9,15 @@ import { Database } from "bun:sqlite";
|
|
|
9
9
|
import { homedir } from "os";
|
|
10
10
|
import { existsSync } from "fs";
|
|
11
11
|
|
|
12
|
+
// Project-based domains use "project", topic-based domains use "topic"
|
|
12
13
|
const PROJECT_FIELD: Record<string, string> = {
|
|
13
14
|
commits: "project",
|
|
14
15
|
sessions: "project",
|
|
15
16
|
tasks: "project",
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
insights: "project",
|
|
18
|
+
captures: "topic",
|
|
19
|
+
teachings: "topic",
|
|
20
|
+
learnings: "topic",
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
function getDatabasePath(): string {
|
package/lib/semantic.ts
CHANGED
|
@@ -36,15 +36,17 @@ export interface SemanticSearchOptions {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Maps source types to their project field name in metadata JSON.
|
|
40
|
-
*
|
|
39
|
+
* Maps source types to their project/topic field name in metadata JSON.
|
|
40
|
+
* Project-based domains use "project", topic-based domains use "topic".
|
|
41
41
|
*/
|
|
42
42
|
const PROJECT_FIELD: Record<string, string> = {
|
|
43
43
|
commits: "project",
|
|
44
44
|
sessions: "project",
|
|
45
45
|
tasks: "project",
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
insights: "project",
|
|
47
|
+
captures: "topic",
|
|
48
|
+
teachings: "topic",
|
|
49
|
+
learnings: "topic",
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
const MODEL_NAME = "nomic-ai/nomic-embed-text-v1.5";
|