(state: RuntimeState, spec: string)
| 811 | } |
| 812 | |
| 813 | function defaultPluginOrigin(state: RuntimeState, spec: string): ConfigPlugin.Origin { |
| 814 | return { |
| 815 | spec, |
| 816 | scope: "local", |
| 817 | source: state.api.state.path.config || path.join(state.directory, ".opencode", "tui.json"), |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | function installCause(err: unknown) { |
| 822 | if (!err || typeof err !== "object") return |