Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

265 B
Raw Blame
/** Prefer the first match, leaving full search selected when only fallbacks exist. */
export function defaultCommandResultIndex(items: readonly { kind: string }[]) {
  return items[0]?.kind === 'search' && items[1] && items[1].kind !== 'ask-ai'
    ? 1
    : 0;
}