Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

436 B
Raw Blame
/** Shared snapshot wire primitives; no retention state or policy. */

export function isPlainObject(value: unknown): value is Record<string, unknown> {
  return !!value && typeof value === "object" && !Array.isArray(value);
}

export type RetainedOutputItem = {
  item: Record<string, unknown>;
  sourceBytes: number;
};

export function jsonBlock(event: Record<string, unknown>): string {
  return `data: ${JSON.stringify(event)}`;
}