feat(backends): add configurable external CLI args and timeouts
This commit is contained in:
@@ -19,7 +19,7 @@ describe('createConfiguredExternalBackend', () => {
|
||||
...base,
|
||||
backends: {
|
||||
...base.backends,
|
||||
codex: { enabled: true, path: '/usr/bin/codex' },
|
||||
codex: { enabled: true, path: '/usr/bin/codex', args: [], timeout_ms: 120000 },
|
||||
},
|
||||
};
|
||||
const backend = createConfiguredExternalBackend(cfg);
|
||||
@@ -31,7 +31,7 @@ describe('createConfiguredExternalBackend', () => {
|
||||
...base,
|
||||
backends: {
|
||||
...base.backends,
|
||||
gemini: { enabled: true, path: '/usr/bin/gemini' },
|
||||
gemini: { enabled: true, path: '/usr/bin/gemini', args: [], timeout_ms: 120000 },
|
||||
},
|
||||
};
|
||||
const backend = createConfiguredExternalBackend(cfg);
|
||||
@@ -43,8 +43,8 @@ describe('createConfiguredExternalBackend', () => {
|
||||
...base,
|
||||
backends: {
|
||||
...base.backends,
|
||||
codex: { enabled: true, path: '/usr/bin/codex' },
|
||||
gemini: { enabled: true, path: '/usr/bin/gemini' },
|
||||
codex: { enabled: true, path: '/usr/bin/codex', args: [], timeout_ms: 120000 },
|
||||
gemini: { enabled: true, path: '/usr/bin/gemini', args: [], timeout_ms: 120000 },
|
||||
},
|
||||
};
|
||||
const configured = createConfiguredExternalBackends(cfg);
|
||||
|
||||
Reference in New Issue
Block a user