mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix: remove duplicate workspace plugin route and improve logging
This commit is contained in:
1 parent
d07eb7f523
commit
4407ad15fb
3 files changed
+10
-12
No files matched your search
@@ -50,7 +50,9 @@ export function makeAdaptor(cfg: { url: string; token: string }, project: Manage
|
||||
export const OpencodeManagerWorkspacePlugin: Plugin = async ({ experimental_workspace }, options) => {
|
||||
try {
|
||||
const cfg = resolveConfig(options)
|
||||
pluginLogger.info(`plugin.init url=${cfg.url}`)
|
||||
pluginLogger.info(
|
||||
`plugin.init url=${cfg.url} env.OPENCODE_EXPERIMENTAL_WORKSPACES=${process.env.OPENCODE_EXPERIMENTAL_WORKSPACES ?? "unset"} env.OPENCODE_EXPERIMENTAL=${process.env.OPENCODE_EXPERIMENTAL ?? "unset"}`,
|
||||
)
|
||||
const client = new ManagerClient(cfg.url, cfg.token)
|
||||
const projects = await client.listProjects()
|
||||
pluginLogger.info(`plugin.init loaded ${projects.length} project(s)`)
|
||||
|
||||
Reference in new issue
Block a user