mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat: add workspace plugin for OpenCode TUI integration
- Add @opencode-manager/workspace-plugin package - Add API tokens management with scoped access control - Add workspace-plugin routes for project discovery - Add bearer token authentication for external access - Add proxy WebSocket support for remote workspaces - Add frontend UI for API token management - Update documentation with workspace plugin guide
This commit is contained in:
1 parent
0836e324a3
commit
d5342ecd91
118 files changed
+7831
-1715
No files matched your search
@@ -254,6 +254,8 @@ describe('OpenCodeServerManager - reloadConfig', () => {
|
||||
const mockPatchResult = { success: true }
|
||||
vi.mocked(patchOpenCodeConfig).mockResolvedValue(mockPatchResult)
|
||||
|
||||
const fetchSpy = vi.spyOn(globalThis, 'fetch').mockResolvedValue(new Response(null, { status: 200 }))
|
||||
|
||||
const { opencodeServerManager } = await import('../../src/services/opencode-single-server')
|
||||
|
||||
await opencodeServerManager.reloadConfig()
|
||||
@@ -263,5 +265,7 @@ describe('OpenCodeServerManager - reloadConfig', () => {
|
||||
'utf-8'
|
||||
)
|
||||
expect(patchOpenCodeConfig).toHaveBeenCalled()
|
||||
|
||||
fetchSpy.mockRestore()
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user