Skip to content
Français

createKimiConversations

import { createKimiConversations } from "@elie-laloum/outpost";

Create the native store of Kimi Code, the default of createKimiHarness(). Each session directory under <CLI home>/sessions/<workspace bucket>, where the CLI home is $KIMI_CODE_HOME or ~/.kimi-code, is captured as one JSON bundle without its logs, tasks, cron, notify or lock files; only state.json version 2 is accepted. Restore places the session in the destination workspace’s bucket and rewrites state.json.

Complete example and detailed rules.

NativeConversationStore

export declare function createKimiConversations(): NativeConversationStore;