mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
refactor(sandbox): scope enforcement to agent bash tool only
This commit is contained in:
1 parent
c976420faa
commit
af01ddf4de
30 files changed
+899
-3815
No files matched your search
@@ -3,18 +3,16 @@ import { writeFileAtomic } from '../../utils/fs-safe'
|
||||
import { buildGhEnvPluginSource } from '../opencode-gh-env-plugin'
|
||||
import { buildSandboxPluginSource } from '../opencode-sandbox-plugin'
|
||||
|
||||
export type ManagedOpenCodePlugin = {
|
||||
type ManagedOpenCodePlugin = {
|
||||
filename: string
|
||||
buildSource: () => string
|
||||
}
|
||||
|
||||
export const MANAGED_OPENCODE_PLUGINS: readonly ManagedOpenCodePlugin[] = [
|
||||
const MANAGED_OPENCODE_PLUGINS: readonly ManagedOpenCodePlugin[] = [
|
||||
{ filename: 'ocm-gh-env.js', buildSource: buildGhEnvPluginSource },
|
||||
{ filename: 'ocm-sandbox.js', buildSource: buildSandboxPluginSource },
|
||||
]
|
||||
|
||||
export const TRUSTED_OPENCODE_PLUGIN_FILENAMES: readonly string[] = MANAGED_OPENCODE_PLUGINS.map((plugin) => plugin.filename)
|
||||
|
||||
export function getOpenCodePluginDir(configHome: string): string {
|
||||
return join(configHome, 'opencode', 'plugin')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user