Documentation
¶
Overview ¶
Package migrate converts OpenClaw session history to Roger format.
OpenClaw stores sessions as event-sourced JSONL files (one event per line) in ~/.openclaw/agents/main/sessions/<sessionId>.jsonl with a sessions.json index mapping session keys to session IDs.
Roger stores sessions as flat JSONL files (one Message per line) in its own sessions directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateConfig ¶
MigrateConfig reads ~/.openclaw/openclaw.json, injects Roger-specific fields (e.g. coding-agent CLI subagent), and writes ~/.roger/config.json. Returns the output path. If the target file already exists it is not overwritten (returns path, nil).
func MigrateJobsFile ¶
MigrateJobsFile copies ~/.openclaw/cron/jobs.json to ~/.roger/cron/jobs.json if the target doesn't exist. Rewrites openclaw command references and paths to use roger equivalents. Returns the output path and whether a copy was made. Returns ("", false, nil) if the source doesn't exist or target already exists.
Types ¶
This section is empty.