UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

19 lines • 856 B
export function coldFlowOperations(flow) { const remove = (messageId) => ({ type: "message_remove", messageId }); switch (flow.type) { case "edit": return [{ type: "message_replace", messageId: flow.messageId, message: flow.message }]; // A context edit with no replacement (RULING-48 (1)). A future single-message delete command must map to this // same remove path, proven by a conformance test against it. case "context_edit_removal": return [remove(flow.messageId)]; case "compaction": return flow.removed.map(remove); case "branch": return [ ...flow.removed.map(remove), ...flow.installed.map((entry) => ({ type: "message_install", ...entry })), ]; } } //# sourceMappingURL=compact-cold-flows.js.map