Skip to content

Commit c648836

Browse files
webui: fix circular dependencies in barrel exports
1 parent 5f5c2a3 commit c648836

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

tools/server/webui/src/lib/services/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getAuthHeaders, getJsonHeaders } from '$lib/utils';
1+
import { getAuthHeaders, getJsonHeaders } from '$lib/utils/api-headers';
22
import { AttachmentType } from '$lib/enums';
33
import { config } from '$lib/stores/settings.svelte';
44
import { ensureMcpClient } from '$lib/services/mcp-singleton';

tools/server/webui/src/lib/services/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { base } from '$app/paths';
22
import { ServerModelStatus } from '$lib/enums';
3-
import { getJsonHeaders } from '$lib/utils';
3+
import { getJsonHeaders } from '$lib/utils/api-headers';
44

55
/**
66
* ModelsService - Stateless service for model management API communication

tools/server/webui/src/lib/services/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getAuthHeaders } from '$lib/utils';
1+
import { getAuthHeaders } from '$lib/utils/api-headers';
22

33
/**
44
* PropsService - Server properties management

tools/server/webui/src/lib/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
// API utilities
11-
export { getAuthHeaders, getJsonHeaders } from './api-headers';
1211
export { validateApiKey } from './api-key-validation';
1312

1413
// Attachment utilities

tools/server/webui/src/routes/+page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PageLoad } from './$types';
2-
import { validateApiKey } from '$lib/utils';
2+
import { validateApiKey } from '$lib/utils/api-key-validation';
33

44
export const load: PageLoad = async ({ fetch }) => {
55
await validateApiKey(fetch);

tools/server/webui/src/routes/chat/[id]/+page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PageLoad } from './$types';
2-
import { validateApiKey } from '$lib/utils';
2+
import { validateApiKey } from '$lib/utils/api-key-validation';
33

44
export const load: PageLoad = async ({ fetch }) => {
55
await validateApiKey(fetch);

0 commit comments

Comments
 (0)