@voidwire/lore 0.1.7 → 0.1.8

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 (2) hide show
  1. package/lib/prismis.ts +5 -0
  2. package/package.json +1 -1
package/lib/prismis.ts CHANGED
@@ -35,6 +35,7 @@ const PRISMIS_CONFIG_PATH = join(
35
35
 
36
36
  export interface PrismisSearchOptions {
37
37
  limit?: number;
38
+ source?: string;
38
39
  }
39
40
 
40
41
  interface PrismisConfig {
@@ -175,6 +176,10 @@ export async function searchPrismis(
175
176
  compact: "true",
176
177
  });
177
178
 
179
+ if (options.source) {
180
+ params.set("source", options.source);
181
+ }
182
+
178
183
  const response = await fetch(`${apiBase}/api/search?${params}`, {
179
184
  headers: {
180
185
  "X-API-Key": config.apiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidwire/lore",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Unified knowledge CLI - Search, list, and capture your indexed knowledge",
5
5
  "type": "module",
6
6
  "main": "./index.ts",