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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user