(file: string, ctx: { directory: string })
| 47 | export class Service extends Context.Service<Service, Interface>()("@opencode/TuiConfig") {} |
| 48 | |
| 49 | function pluginScope(file: string, ctx: { directory: string }): ConfigPlugin.Scope { |
| 50 | if (Filesystem.contains(ctx.directory, file)) return "local" |
| 51 | // if (ctx.worktree !== "/" && Filesystem.contains(ctx.worktree, file)) return "local" |
| 52 | return "global" |
| 53 | } |
| 54 | |
| 55 | function normalize(raw: Record<string, unknown>) { |
| 56 | const data = { ...raw } |