Skip to content
← Public packages

@kody/stash

Keep searchable notes, reminders, and facts in this package's storage — no OAuth, API keys, or bot tokens.

src/retriever.ts

14 lines · 451 B · TypeScript
Raw
import { retrieve } from './lib/notes.ts'
export { retrieve }

/**
 * Retrieve stash notes in Kody retriever shape (delegates to search).
 *
 * @example
 * import retrieve from 'kody:@kody/stash/retriever'
 * const result = await retrieve({ query: 'thermostat schedule', limit: 3 })
 * // => { results: [{ id: '...', title: '...', score: 0.9 }] }
 */
export default async function retrieveStashNotes(input?: unknown) {
	return await retrieve(input)
}