feat(sync): add Claude home sync parity across providers
This commit is contained in:
18
src/sync/openclaw.ts
Normal file
18
src/sync/openclaw.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import path from "path"
|
||||
import type { ClaudeHomeConfig } from "../parsers/claude-home"
|
||||
import { warnUnsupportedOpenClawCommands } from "./commands"
|
||||
import { syncSkills } from "./skills"
|
||||
|
||||
export async function syncToOpenClaw(
|
||||
config: ClaudeHomeConfig,
|
||||
outputRoot: string,
|
||||
): Promise<void> {
|
||||
await syncSkills(config.skills, path.join(outputRoot, "skills"))
|
||||
warnUnsupportedOpenClawCommands(config)
|
||||
|
||||
if (Object.keys(config.mcpServers).length > 0) {
|
||||
console.warn(
|
||||
"Warning: OpenClaw MCP sync is skipped because the current official OpenClaw docs do not clearly document an MCP server config contract.",
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user