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.

498 B
Raw Blame
import { handleAiUsageLimitError } from '@app/features/paywall/ai-usage-limit-handling';
import type { AgentSession } from '@core/agent-session/AgentSession';

/** Deliver a foreground session action and present any typed quota refusal. */
export async function issueSessionAction(
  session: Pick<AgentSession, 'issue'>,
  ...args: Parameters<AgentSession['issue']>
) {
  const result = await session.issue(...args);
  if (result.isErr()) handleAiUsageLimitError(result.error);
  return result;
}