upgrade to biome 2 for server shared

This commit is contained in:
Nate Kelley 2025-10-09 10:07:34 -06:00
parent 30b7d30753
commit a5b8a98c52
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
21 changed files with 95 additions and 105 deletions

View File

@ -1,19 +1,7 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../../biome.json"],
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"extends": ["../../biome2.json"],
"files": {
"include": ["src/**/*"]
},
"overrides": [
{
"include": ["**/scripts/**/*", "**/script/**/*"],
"linter": {
"rules": {
"suspicious": {
"noConsoleLog": "off"
}
}
}
}
]
"includes": ["src/**/*"]
}
}

View File

@ -130,6 +130,7 @@
"@buster/database": "workspace:*",
"@buster/typescript-config": "workspace:*",
"@buster/vitest-config": "workspace:*",
"@biomejs/biome": "2.2.5",
"zod": "catalog:"
},
"devDependencies": {

View File

@ -1,5 +1,5 @@
import { AssetTypeSchema } from '@buster/database/schema-types';
import type { AssetType } from '@buster/database/schema-types';
import { AssetTypeSchema } from '@buster/database/schema-types';
import type { z } from 'zod';
export const BaseAssetTypeSchema = AssetTypeSchema.exclude(['chat', 'collection']);

View File

@ -1,3 +1,3 @@
export * from './errors';
export * from './requests';
export * from './responses';
export * from './errors';

View File

@ -1,29 +1,28 @@
// Re-export message schemas from database package to maintain backward compatibility
// Using /types entry point to avoid triggering database connection
export {
type ChatListItem,
type ChatMessageReasoning_status,
type ChatMessageReasoningMessage,
type ChatMessageReasoningMessage_File,
type ChatMessageReasoningMessage_Files,
type ChatMessageReasoningMessage_Pill,
type ChatMessageReasoningMessage_PillContainer,
type ChatMessageReasoningMessage_Pills,
type ChatMessageReasoningMessage_Text,
type ChatMessageResponseMessage,
type ChatMessageResponseMessage_File,
type ChatMessageResponseMessage_FileMetadata,
type ChatMessageResponseMessage_Text,
type ReasoningFileType,
type ReasoningMessage_ThoughtFileType,
ReasoningMessageSchema,
type ResponseMessageFileType,
ResponseMessageSchema,
StatusSchema,
} from '@buster/database/schema-types';
export * from './chat.types';
export * from './chat-errors.types';
export * from './chat-message.types';
export * from './requests';
export * from './responses';
// Re-export message schemas from database package to maintain backward compatibility
// Using /types entry point to avoid triggering database connection
export {
StatusSchema,
ResponseMessageSchema,
ReasoningMessageSchema,
type ChatMessageReasoning_status,
type ChatMessageResponseMessage,
type ChatMessageReasoningMessage,
type ChatMessageReasoningMessage_Text,
type ChatMessageReasoningMessage_Files,
type ChatMessageReasoningMessage_Pills,
type ChatMessageReasoningMessage_File,
type ChatMessageReasoningMessage_Pill,
type ChatMessageReasoningMessage_PillContainer,
type ChatMessageResponseMessage_FileMetadata,
type ChatMessageResponseMessage_Text,
type ChatMessageResponseMessage_File,
type ReasoningFileType,
type ResponseMessageFileType,
type ReasoningMessage_ThoughtFileType,
type ChatListItem,
} from '@buster/database/schema-types';

View File

@ -1,5 +1,5 @@
export * from './dashboard-response.types';
export * from './dashboard.types';
export * from './dashboard-list.types';
export * from './requests.types';
export * from './dashboard-grid';
export * from './dashboard-list.types';
export * from './dashboard-response.types';
export * from './requests.types';

View File

@ -1,3 +1,4 @@
// Export all dataset-related schemas and types
export * from './schemas';
export * from './sample-types';
export * from './schemas';

View File

@ -1,27 +1,27 @@
// Export all deploy schemas and types
export {
// Schemas
DeployModelSchema,
type DeployDoc,
DeployDocSchema,
LogsConfigSchema,
LogsWritebackConfigSchema,
UnifiedDeployRequestSchema,
UnifiedDeployResponseSchema,
ModelDeployResultSchema,
DocDeployResultSchema,
LogsWritebackResultSchema,
DeploymentItemSchema,
DeploymentFailureSchema,
// Types
type DeployModel,
type DeployDoc,
type LogsConfig,
type LogsWritebackConfig,
type UnifiedDeployRequest,
type UnifiedDeployResponse,
type ModelDeployResult,
type DocDeployResult,
type LogsWritebackResult,
type DeploymentItem,
// Schemas
DeployModelSchema,
type DeploymentFailure,
DeploymentFailureSchema,
type DeploymentItem,
DeploymentItemSchema,
type DocDeployResult,
DocDeployResultSchema,
type LogsConfig,
LogsConfigSchema,
type LogsWritebackConfig,
LogsWritebackConfigSchema,
type LogsWritebackResult,
LogsWritebackResultSchema,
type ModelDeployResult,
ModelDeployResultSchema,
type UnifiedDeployRequest,
UnifiedDeployRequestSchema,
type UnifiedDeployResponse,
UnifiedDeployResponseSchema,
} from './schemas';

View File

@ -1,3 +1,3 @@
export * from './types';
export * from './requests';
export * from './responses';
export * from './types';

View File

@ -2,14 +2,12 @@
// Export access controls with specific namespace to avoid conflicts
export * as AccessControls from './access-controls';
// Export common types as namespace to avoid conflicts with metrics re-exports
export * as common from './common';
// Export other modules
export * from './assets';
export * from './auth';
export * from './chats';
// Export common types as namespace to avoid conflicts with metrics re-exports
export * as common from './common';
export * from './dashboards';
export * from './datasets';
// Export deploy module as namespace to avoid conflicts with datasets
@ -17,6 +15,9 @@ export * as deploy from './deploy';
export * from './dictionary';
export * from './docs';
export * from './github';
export * from './healthcheck';
export * from './library';
export * from './logs-writeback';
export * from './message';
export * from './metadata';
export * from './metrics';
@ -29,13 +30,10 @@ export * from './security';
// Export share module (has some naming conflicts with chats and metrics)
// TODO: Resolve naming conflicts properly
export * from './share';
export * from './shortcuts';
export * from './slack';
export * from './sql';
export * from './teams';
export * from './title';
export * from './type-utilities';
export * from './user';
export * from './shortcuts';
export * from './healthcheck';
export * from './sql';
export * from './logs-writeback';
export * from './library';

View File

@ -18,7 +18,7 @@ export interface GetMetadataResponse {
// Re-export trigger task types for use in server
export type {
ColumnProfile,
GetTableStatisticsInput,
GetTableStatisticsOutput,
ColumnProfile,
} from './trigger-task-types';

View File

@ -1,10 +1,10 @@
export * from './annotationInterfaces';
export * from './axisInterfaces';
export * from './chartConfigProps';
export * from './chatConfig.defaults';
export * from './columnInterfaces';
export * from './columnLabelInterfaces';
export * from './configColors';
export * from './enum';
export * from './etcInterfaces';
export * from './tickInterfaces';
export * from './chatConfig.defaults';
export * from './configColors';

View File

@ -1,7 +1,7 @@
export * from './metric.types';
export * from './metadata.type';
export * from './charts';
export * from './download.types';
export * from './metadata.type';
export * from './metric.types';
export * from './metrics-list.types';
export * from './requests.types';
export * from './responses.types';
export * from './download.types';

View File

@ -1,6 +1,6 @@
export * from './organization.types';
export * from './roles.types';
export * from './user.types';
export * from './status.types';
export * from './requests';
export * from './responses';
export * from './roles.types';
export * from './status.types';
export * from './user.types';

View File

@ -1,5 +1,5 @@
export * from './report-elements';
export * from './reports.types';
export * from './reports.types';
export * from './requests';
export * from './responses';
export * from './reports.types';
export * from './report-elements';

View File

@ -1,6 +1,6 @@
export * from './assets';
export * from './individual-permissions';
export * from './requests';
export * from './responses';
export * from './share-interfaces.types';
export * from './verification.types';
export * from './requests';
export * from './individual-permissions';
export * from './assets';
export * from './responses';

View File

@ -1,18 +1,18 @@
// Export request types and schemas
export {
shortcutNameSchema,
createShortcutRequestSchema,
updateShortcutRequestSchema,
type CreateShortcutRequest,
createShortcutRequestSchema,
shortcutNameSchema,
type UpdateShortcutRequest,
updateShortcutRequestSchema,
} from './requests.types';
// Export response types and schemas
export {
shortcutSchema,
listShortcutsResponseSchema,
shortcutErrorSchema,
type Shortcut,
type ListShortcutsResponse,
listShortcutsResponseSchema,
type Shortcut,
type ShortcutError,
shortcutErrorSchema,
shortcutSchema,
} from './responses.types';

View File

@ -1,3 +1,3 @@
export * from './teams.types';
export * from './responses';
export * from './requests';
export * from './responses';
export * from './teams.types';

View File

@ -8,10 +8,10 @@ import {
import { z } from 'zod';
export {
PaginationSchema,
SearchPaginationSchema,
type PaginationMetadata,
PaginationSchema,
type SearchPaginationMetadata,
SearchPaginationSchema,
} from '@buster/database/schema-types';
export type Pagination = PaginationMetadata;

View File

@ -1,7 +1,7 @@
export * from '../teams/teams.types';
export * from './favorites.types';
export * from './request.types';
export * from './responses.types';
export * from './users.types';
export * from '../teams/teams.types';
export * from './sharing-setting.types';
export * from './favorites.types';
export * from './suggested-prompts.types';
export * from './users.types';

View File

@ -1342,6 +1342,9 @@ importers:
packages/server-shared:
dependencies:
'@biomejs/biome':
specifier: 2.2.5
version: 2.2.5
'@buster/database':
specifier: workspace:*
version: link:../database