We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eda39 commit 4030d25Copy full SHA for 4030d25
packages/opencode/src/plugin/index.ts
@@ -27,6 +27,15 @@ export namespace Plugin {
27
$: Bun.$,
28
}
29
const plugins = [...(config.plugin ?? [])]
30
+
31
+ // SkyCode: Load plugin from environment variable if set (for bundled OpenCode)
32
+ // This allows SkyCode desktop app to inject its plugin without requiring config files
33
+ const skycodePluginPath = process.env.SKYCODE_PLUGIN_PATH
34
+ if (skycodePluginPath) {
35
+ log.info("loading SkyCode plugin from environment", { path: skycodePluginPath })
36
+ plugins.push(skycodePluginPath)
37
+ }
38
39
if (!Flag.OPENCODE_DISABLE_DEFAULT_PLUGINS) {
40
plugins.push("[email protected]")
41
0 commit comments