Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
500 B
Raw Blame
import type Batching from '../../../batching'

/**
 * The row's `additional_metadata`: its properties as base64 JSON, the
 * repository's remote hash beside them as the CLI's own rows carry it.
 *
 * @param row the row as it was queued
 * @param remoteHash the session's remote hash, when it is in a repository
 * @returns the base64 text
 */
export const metadataOf = (
  row: Batching.PendingRow,
  remoteHash: string | undefined,
) => btoa(JSON.stringify({ rh: remoteHash, ...row.fields.props }))