Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
/** 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)}`;
}