Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

608 B
Raw Blame
import type { AppId } from '../../../apps/registry';

export type AppSearchResult = {
  key: string;
  kind: 'builtin' | 'showpage';
  appId: AppId;
  title: string;
  searchTitle: string;
  sessionId?: string;
  /** The AI page icon's opaque cache token, when it has one (§7.1f). */
  iconVersion?: string | null;
};

export function filterAppSearchResults(results: AppSearchResult[], query: string): AppSearchResult[] {
  const normalized = query.trim().toLocaleLowerCase();
  if (!normalized) return [];
  return results.filter((result) => result.searchTitle.toLocaleLowerCase().includes(normalized));
}