@voidwire/lore 0.7.0 → 0.7.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.
package/cli.ts CHANGED
@@ -510,7 +510,7 @@ function handleAbout(args: string[]): void {
510
510
  const totalCount =
511
511
  result.commits.count +
512
512
  result.captures.count +
513
- result.tasks.count +
513
+ result.flux.count +
514
514
  result.teachings.count +
515
515
  result.sessions.count;
516
516
 
@@ -1048,7 +1048,7 @@ Options:
1048
1048
  Sources queried:
1049
1049
  commits Git commits for project
1050
1050
  captures Quick captures in project context
1051
- tasks Development tasks for project
1051
+ flux Flux items for project
1052
1052
  teachings Teachings from project
1053
1053
  sessions Claude Code sessions for project
1054
1054
 
@@ -1057,7 +1057,7 @@ Output (JSON):
1057
1057
  "project": "name",
1058
1058
  "commits": [...],
1059
1059
  "captures": [...],
1060
- "tasks": [...],
1060
+ "flux": [...],
1061
1061
  "teachings": [...],
1062
1062
  "sessions": [...]
1063
1063
  }
package/index.ts CHANGED
@@ -97,5 +97,8 @@ export {
97
97
  type HybridSearchOptions,
98
98
  } from "./lib/semantic";
99
99
 
100
+ // Types
101
+ export { LoreType, LORE_TYPES, isValidLoreType } from "./lib/types";
102
+
100
103
  // Real-time indexing
101
104
  export { indexAndEmbed } from "./lib/realtime";
package/lib/about.ts CHANGED
@@ -16,7 +16,7 @@ export interface AboutResult {
16
16
  project: string;
17
17
  commits: ListResult;
18
18
  captures: ListResult;
19
- tasks: ListResult;
19
+ flux: ListResult;
20
20
  teachings: ListResult;
21
21
  sessions: ListResult;
22
22
  }
@@ -29,7 +29,7 @@ export interface AboutResult {
29
29
  const ABOUT_SOURCES: Source[] = [
30
30
  "commits",
31
31
  "captures",
32
- "tasks",
32
+ "flux",
33
33
  "teachings",
34
34
  "sessions",
35
35
  ];
@@ -65,7 +65,7 @@ export function about(
65
65
  project,
66
66
  commits: results[0],
67
67
  captures: results[1],
68
- tasks: results[2],
68
+ flux: results[2],
69
69
  teachings: results[3],
70
70
  sessions: results[4],
71
71
  };
@@ -85,8 +85,8 @@ export function formatBriefAbout(result: AboutResult): string {
85
85
  if (result.captures.count > 0) {
86
86
  sections.push(formatBriefList(result.captures));
87
87
  }
88
- if (result.tasks.count > 0) {
89
- sections.push(formatBriefList(result.tasks));
88
+ if (result.flux.count > 0) {
89
+ sections.push(formatBriefList(result.flux));
90
90
  }
91
91
  if (result.teachings.count > 0) {
92
92
  sections.push(formatBriefList(result.teachings));
package/lib/list.ts CHANGED
@@ -12,7 +12,7 @@ import { existsSync } from "fs";
12
12
  // Source types - data sources that can be listed
13
13
  export type Source =
14
14
  | "development"
15
- | "tasks"
15
+ | "flux"
16
16
  | "events"
17
17
  | "blogs"
18
18
  | "commits"
@@ -34,7 +34,7 @@ export type Source =
34
34
 
35
35
  export const SOURCES: Source[] = [
36
36
  "development",
37
- "tasks",
37
+ "flux",
38
38
  "events",
39
39
  "blogs",
40
40
  "commits",
@@ -70,7 +70,7 @@ const PERSONAL_SUBTYPES: Partial<Record<Source, string>> = {
70
70
  const PROJECT_FIELD: Record<string, string> = {
71
71
  commits: "project",
72
72
  sessions: "project",
73
- tasks: "project",
73
+ flux: "project",
74
74
  insights: "topic",
75
75
  captures: "topic",
76
76
  teachings: "topic",
package/lib/realtime.ts CHANGED
@@ -113,7 +113,7 @@ function getSourceForEvent(event: CaptureEvent): string {
113
113
  case "learning":
114
114
  return "learnings";
115
115
  case "task":
116
- return "tasks";
116
+ return "flux";
117
117
  case "note":
118
118
  return "captures";
119
119
  default:
package/lib/types.ts ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * lib/types.ts - Core type definitions for lore
3
+ */
4
+
5
+ /**
6
+ * Capture type vocabulary
7
+ * Single source of truth for --type filter validation
8
+ */
9
+ export enum LoreType {
10
+ Gotcha = "gotcha",
11
+ Decision = "decision",
12
+ Pattern = "pattern",
13
+ Learning = "learning",
14
+ Preference = "preference",
15
+ Term = "term",
16
+ Style = "style",
17
+ Teaching = "teaching",
18
+ Task = "task",
19
+ Todo = "todo",
20
+ Idea = "idea",
21
+ }
22
+
23
+ /**
24
+ * Valid type values for runtime checking
25
+ */
26
+ export const LORE_TYPES = Object.values(LoreType);
27
+
28
+ /**
29
+ * Check if a string is a valid LoreType
30
+ */
31
+ export function isValidLoreType(value: string): value is LoreType {
32
+ return LORE_TYPES.includes(value as LoreType);
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidwire/lore",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Unified knowledge CLI - Search, list, and capture your indexed knowledge",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -49,6 +49,8 @@
49
49
  "bun-types": "1.3.5"
50
50
  },
51
51
  "scripts": {
52
+ "build": "tsc --noEmit false --outDir dist --declaration",
53
+ "typecheck": "tsc --noEmit",
52
54
  "test": "bun test"
53
55
  }
54
56
  }