Add listSkills and syncSkills support to opencode_k8s adapter

Implement skill sync handlers that were missing, matching the approach
used in the claude_k8s adapter. The adapter now surfaces available,
configured, and external skills from /paperclip/.claude/skills in K8s
pods, resolving desired skills from config and reporting missing ones.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-15 23:42:44 -04:00
parent 0837ee4255
commit 7c9fc77d48
3 changed files with 246 additions and 0 deletions
+3
View File
@@ -5,6 +5,7 @@ import { execute } from "./execute.js";
import { testEnvironment } from "./test.js";
import { sessionCodec } from "./session.js";
import { getConfigSchema } from "./config-schema.js";
import { listOpenCodeSkills, syncOpenCodeSkills } from "./skills.js";
export function createServerAdapter(): ServerAdapterModule {
return {
@@ -13,6 +14,8 @@ export function createServerAdapter(): ServerAdapterModule {
testEnvironment,
sessionCodec,
models,
listSkills: listOpenCodeSkills,
syncSkills: syncOpenCodeSkills,
supportsLocalAgentJwt: true,
agentConfigurationDoc,
getConfigSchema,