refactor(opencode): roll out serviceUse proxy across 14 services + tests (#28576)
This commit is contained in:
parent
69eee26f30
commit
39ea816a72
48 changed files with 646 additions and 628 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import * as Log from "@opencode-ai/core/util/log"
|
||||
import { serviceUse } from "@/effect/service-use"
|
||||
import path from "path"
|
||||
import { pathToFileURL } from "url"
|
||||
import os from "os"
|
||||
|
|
@ -319,6 +320,8 @@ export interface Interface {
|
|||
|
||||
export class Service extends Context.Service<Service, Interface>()("@opencode/Config") {}
|
||||
|
||||
export const use = serviceUse(Service)
|
||||
|
||||
function globalConfigFile() {
|
||||
const candidates = ["opencode.jsonc", "opencode.json", "config.json"].map((file) =>
|
||||
path.join(Global.Path.config, file),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue