bring oc back

This commit is contained in:
2026-03-31 20:49:53 +00:00
parent 8f3951522c
commit 5e46938488
22 changed files with 1541 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import type { Plugin } from "@opencode-ai/plugin";
export const DirenvPlugin: Plugin = async ({ $ }) => {
return {
"shell.env": async (input, output) => {
try {
const exported = await $`direnv export json`
.cwd(input.cwd)
.quiet()
.json();
Object.assign(output.env, exported);
} catch {}
},
};
};