mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(servers): harden pairing and run linked-server sessions in the UI
Replace the plaintext pairing exchange with a nonce and HMAC proof plus AES-256-GCM encrypted credentials, bumping links to v2. Track session ownership per linked server so activity, session picker, transcript, MCP and skills views work against remote servers. Share encrypted secret access, event routing and URL helpers across backend, shared and CLI.
This commit is contained in:
1 parent
c591c15743
commit
f566556fd6
77 files changed
+3170
-702
No files matched your search
@@ -221,7 +221,20 @@ describe('OpenCodeEventStream', () => {
|
||||
transport.resync()
|
||||
|
||||
expect(onResync).toHaveBeenCalledTimes(1)
|
||||
expect(onResync).toHaveBeenCalledWith(['/repo'])
|
||||
expect(onResync).toHaveBeenCalledWith(['/repo'], undefined)
|
||||
})
|
||||
|
||||
it('passes the server id of a remote resync to the global monitor', () => {
|
||||
const transport = new TestEventStreamTransport()
|
||||
const stream = new OpenCodeEventStream({ transport })
|
||||
const onResync = vi.fn()
|
||||
|
||||
stream.subscribeGlobalMonitor({ directories: ['/repo'], onEvent: vi.fn(), onResync })
|
||||
transport.openConnection()
|
||||
transport.connected()
|
||||
transport.resync({ timestamp: 1, serverId: 'srv_remote' })
|
||||
|
||||
expect(onResync).toHaveBeenCalledWith(['/repo'], 'srv_remote')
|
||||
})
|
||||
|
||||
it('reports visibility through the transport adapter', async () => {
|
||||
|
||||
Reference in new issue
Block a user