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.

358 B
Raw Blame
import { throwOnErr } from '@core/util/result';
import { storageServiceClient } from '@service-storage/client';

export async function saveCodeDocument(
  documentId: string,
  text: string
): Promise<void> {
  await throwOnErr(() =>
    storageServiceClient.simpleSave({
      documentId,
      file: new Blob([text], { type: 'text/plain' }),
    })
  );
}