fix(openclaw): use sync plugin registration (#498)

Co-authored-by: Niemand Assistant <niemand@kessler.io>
This commit is contained in:
Martin Kessler
2026-04-08 14:13:43 -07:00
committed by GitHub
parent 042ee73239
commit 2c05c43dc8
2 changed files with 8 additions and 39 deletions

View File

@@ -231,9 +231,11 @@ describe("convertClaudeToOpenClaw", () => {
expect(nameLine).toBeDefined()
})
test("generateEntryPoint emits typed skills record", () => {
test("generateEntryPoint inlines command bodies for sync registration", () => {
const bundle = convertClaudeToOpenClaw(fixturePlugin, defaultOptions)
expect(bundle.entryPoint).toContain("const skills: Record<string, string> = {}")
expect(bundle.entryPoint).not.toContain("const skills: Record<string, string> = {}")
expect(bundle.entryPoint).toContain('text: "Plan the work. See ~/.openclaw/settings for config."')
expect(bundle.entryPoint).toContain("export default function register(api)")
})
test("plugin without MCP servers has no openclawConfig", () => {