From d74c1ee747ee7a475dc735dc3e7fa6c483d886cc Mon Sep 17 00:00:00 2001 From: James Murdza Date: Fri, 17 Apr 2026 19:44:20 -0700 Subject: [PATCH] fix(plugin): add env parameter to WorkspaceAdaptor.create type Align the published plugin type with the control-plane signature in packages/opencode/src/control-plane/types.ts, which already declares `env` as the second parameter and is what the runtime invokes at packages/opencode/src/control-plane/workspace.ts:121. No runtime change. Closes #23233 --- packages/plugin/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index d53c23a891a6..9061ce367e0e 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -49,7 +49,11 @@ export type WorkspaceAdaptor = { name: string description: string configure(config: WorkspaceInfo): WorkspaceInfo | Promise - create(config: WorkspaceInfo, from?: WorkspaceInfo): Promise + create( + config: WorkspaceInfo, + env: Record, + from?: WorkspaceInfo, + ): Promise remove(config: WorkspaceInfo): Promise target(config: WorkspaceInfo): WorkspaceTarget | Promise }