mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Wait for OpenCode plugin activation before integration calls
This commit is contained in:
1 parent
eba86dc3fc
commit
226e13b3d1
9 files changed
+60
-216
No files matched your search
@@ -49,7 +49,7 @@ export type {
|
||||
V2Event,
|
||||
} from '@opencode/client'
|
||||
|
||||
export { ClientError, isIntegrationNotFoundError, isMcpServerNotFoundError, isSessionNotFoundError, isWorktreeError } from '@opencode/client'
|
||||
export { ClientError, isMcpServerNotFoundError, isSessionNotFoundError, isWorktreeError } from '@opencode/client'
|
||||
|
||||
export { assistantText, sessionIDFromEvent, toolContentText } from './content'
|
||||
|
||||
@@ -236,6 +236,10 @@ export function openCodeLocation(directory: string | undefined): OpenCodeLocatio
|
||||
return directory ? { location: { directory } } : undefined
|
||||
}
|
||||
|
||||
export async function awaitOpenCodePlugins(api: Pick<OpenCodeApi, 'provider'>): Promise<void> {
|
||||
await api.provider.list()
|
||||
}
|
||||
|
||||
interface OpenCodeErrorStatusByTag {
|
||||
[tag: string]: number
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user