feat: add managed local tool environments
GoodBuddy can now provide managed Node.js and on-demand Python to local Skills and stdio MCP servers, or validate an explicitly selected custom interpreter. The Capabilities and tools settings page exposes source selection, diagnostics, installation progress, cancellation, and removal while new processes receive immutable PATH snapshots. Application settings migrate to v10. Local terminal and remote Host environments remain unchanged. Windows x64 native-source Node and Python paths are validated; OSS mirror publication, redistributed license resources, and the remaining native platform probes are recorded as release blockers. Release note: 新增工具执行环境,可为本机 Skills 和 stdio MCP 使用 GoodBuddy 托管的 Node.js、按需安装的 Python,或经过验证的自定义解释器。
This commit is contained in:
@@ -312,7 +312,13 @@ describe('OpenCodeRuntime embedded launcher', () => {
|
||||
const runtime = new OpenCodeRuntime(
|
||||
options({
|
||||
binaryPath: 'C:\\Configured\\opencode.exe',
|
||||
configPath
|
||||
configPath,
|
||||
launchEnvironmentProvider: () =>
|
||||
Object.freeze({
|
||||
PATH: 'C:\\GoodBuddy\\tools;C:\\Windows',
|
||||
OPENAI_API_KEY: 'must-not-leak',
|
||||
ELECTRON_RUN_AS_NODE: '1'
|
||||
})
|
||||
}),
|
||||
{
|
||||
spawn: spawnMock as unknown as typeof spawn,
|
||||
@@ -399,6 +405,12 @@ describe('OpenCodeRuntime embedded launcher', () => {
|
||||
'goodbuddy'
|
||||
)
|
||||
expect(spawnOptions?.env?.OPENCODE_SERVER_PASSWORD).toBeTruthy()
|
||||
expect(spawnOptions?.env?.PATH).toBe(
|
||||
'C:\\GoodBuddy\\tools;C:\\Windows'
|
||||
)
|
||||
expect(spawnOptions?.env).not.toHaveProperty(
|
||||
'ELECTRON_RUN_AS_NODE'
|
||||
)
|
||||
expect(
|
||||
Buffer.from(
|
||||
clientOptions?.headers?.Authorization?.slice(6) ?? '',
|
||||
|
||||
Reference in New Issue
Block a user