feat(profiles): add cliproxy api profile bridge

- add backend and CLI flows for creating routed API profiles from CLIProxy providers

- add dashboard bridge CTAs, metadata, and guided create dialog mode

- cover bridge routes and dialog behavior with focused tests

Refs #649
This commit is contained in:
Tam Nhu Tran committed 2026-03-19 10:24:28 -04:00
1 parent 1f284132ce
commit 287691fa04
26 files changed
+1804 -465

No files matched your search

@@ -55,6 +55,14 @@ describe('api-command arg parser', () => {
expect(parsed.errors).toEqual([]);
});
test('parses --cliproxy-provider for routed API profile creation', () => {
const parsed = parseApiCommandArgs(['my-api', '--cliproxy-provider', 'Gemini']);
expect(parsed.name).toBe('my-api');
expect(parsed.cliproxyProvider).toBe('gemini');
expect(parsed.errors).toEqual([]);
});
test('validates invalid --target values', () => {
const parsed = parseApiCommandArgs(['my-api', '--target', 'invalid-target']);