diff options
| author | James Murdza <[email protected]> | 2026-04-20 10:41:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-20 13:41:38 -0400 |
| commit | 3406f18746f0655281f4304b2bb938273ef0d742 (patch) | |
| tree | 204d495b34d683d20fd0f1e5d81c38631c3d7fa4 /packages/plugin/src | |
| parent | 7e576eea41cb45c7deecdc20f0a962f01a38c8e8 (diff) | |
| download | opencode-3406f18746f0655281f4304b2bb938273ef0d742.tar.gz opencode-3406f18746f0655281f4304b2bb938273ef0d742.zip | |
fix(plugin): add env parameter to WorkspaceAdaptor.create type (#23235)
Diffstat (limited to 'packages/plugin/src')
| -rw-r--r-- | packages/plugin/src/index.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index d53c23a89..9061ce367 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<WorkspaceInfo> - create(config: WorkspaceInfo, from?: WorkspaceInfo): Promise<void> + create( + config: WorkspaceInfo, + env: Record<string, string | undefined>, + from?: WorkspaceInfo, + ): Promise<void> remove(config: WorkspaceInfo): Promise<void> target(config: WorkspaceInfo): WorkspaceTarget | Promise<WorkspaceTarget> } |
