Add OpenCode skill discovery #3154
Mergeddbalders(GitHub profile, opens in a new tab)merged 1 commit into
main fromrefs/pull/3154/headmerged by maria-rcks View on GitHubdbalders(GitHub profile, opens in a new tab) changed the title
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
- apps/server/src/provider/opencodeRuntime.ts line 712Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -537,8 +545,12 @@537545 Effect.map((result) => result.data ?? []),538546 );539547540- const loadOpenCodeInventory: OpenCodeRuntimeShape["loadOpenCodeInventory"] = (client) =>541- Effect.all([loadProviders(client), loadAgents(client)], { concurrency: "unbounded" }).pipe(542- Effect.map(([providerList, agents]) => ({ providerList, agents })),548+ const loadSkills = (client: OpencodeClient) =>549+ runOpenCodeSdk("app.skills", () => client.app.skills()).pipe(550+ Effect.map((result) => (result.data ?? []) as ReadonlyArray<OpenCodeSkill>),543551 );544552553+ const loadOpenCodeInventory: OpenCodeRuntimeShape["loadOpenCodeInventory"] = (client) =>554+ Effect.all([loadProviders(client), loadAgents(client), loadSkills(client)], {555+ concurrency: "unbounded",556+ }).pipe(Effect.map(([providerList, agents, skills]) => ({ providerList, agents, skills })));
- apps/server/src/provider/opencodeRuntime.ts line 728OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -692,3 +722,7 @@692722 runOpenCodeCommand({ binaryPath: input.binaryPath, args: ["agent", "list"], ...env }).pipe(693723 Effect.exit,694724 );725+ const runSkillsCli = () =>726+ runOpenCodeCommand({ binaryPath: input.binaryPath, args: ["debug", "skill"], ...env }).pipe(727+ Effect.exit,728+ );apps/server/src/provider/opencodeRuntime.ts line 744Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -692,8 +722,15 @@692722 runOpenCodeCommand({ binaryPath: input.binaryPath, args: ["agent", "list"], ...env }).pipe(693723 Effect.exit,694724 );725+ const runSkillsCli = () =>726+ runOpenCodeCommand({ binaryPath: input.binaryPath, args: ["debug", "skill"], ...env }).pipe(727+ Effect.exit,728+ );695729696- // First attempt — run both in parallel697- let [modelsResult, agentsResult] = yield* Effect.all([runModelsCli(), runAgentsCli()], {698- concurrency: "unbounded",699- });730+ // First attempt — run all inventory commands in parallel.731+ const [initialModelsResult, initialAgentsResult, skillsResult] = yield* Effect.all(732+ [runModelsCli(), runAgentsCli(), runSkillsCli()],733+ { concurrency: "unbounded" },734+ );735+ let modelsResult = initialModelsResult;736+ let agentsResult = initialAgentsResult;
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
UtkarshUsername(GitHub profile, opens in a new tab) approved these changes
maria-rcks merged thiscf251c3
maria-rcks closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
7e937713-cf10-4824-91f8-07299eac8159You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share