Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/stash

src/retriever.ts

14 lines · 451 B · TypeScript
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)
}