feat: add secure multi-runtime controls

Make agent backends configurable and governable with encrypted credentials, explicit context sharing, and tool approval boundaries.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
lofyer
2026-07-30 10:52:35 +08:00
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent 1b6178b841
commit 698a15ad14
27 changed files with 2465 additions and 91 deletions
+23
View File
@@ -0,0 +1,23 @@
import { describe, expect, it } from 'vitest'
import { ContinueAgentRuntime } from './continue-runtime'
describe('ContinueAgentRuntime', () => {
it('does not launch the CLI for an already-cancelled request', async () => {
const runtime = new ContinueAgentRuntime({
command: 'command-that-must-not-run',
defaultWorkspace: process.cwd()
})
const controller = new AbortController()
controller.abort(new Error('cancelled'))
const stream = runtime.run(
{
requestId: '3f496642-f47d-4e0a-8944-a32c77b0d6ef',
conversationId: 'conversation-1',
prompt: 'test'
},
controller.signal
)
await expect(stream.next()).rejects.toThrow('cancelled')
})
})