chore(deps): upgrade bun to 1.4.4 and migrate to bun fmt (#488)

- Upgrade Bun to 1.4.4 across Dockerfiles, CI workflows, and release configurations.
- Update @types/bun and bun-types.
- Remove eslint-plugin-prettier and update format script to use native bun fmt.
- Configure .prettierignore to exclude packages/webui/public and minified files.
This commit is contained in:
Yiling-J
2026-10-22 20:25:54 +08:00
committed by GitHub
parent 0d5fe48a3a
commit 5cf6d31794
19 changed files with 34 additions and 75 deletions
+3 -17
View File
@@ -2408,12 +2408,7 @@ export class AssetService {
}
const proxyType = (media?.proxyType || null) as
| 'image'
| 'video'
| 'audio'
| 'pdf'
| '3d'
| null
'image' | 'video' | 'audio' | 'pdf' | '3d' | null
result.push({
id: a.id,
@@ -2780,12 +2775,7 @@ export class AssetService {
if (!asset.media) return null
const proxyType = (asset.media?.proxyType || null) as
| 'image'
| 'video'
| 'audio'
| 'pdf'
| '3d'
| null
'image' | 'video' | 'audio' | 'pdf' | '3d' | null
let rawThumbKey: string | undefined
if (proxyType === 'image' && asset.media.thumbnail?.key) {
@@ -2864,11 +2854,7 @@ export class AssetService {
'GET',
)
const attachmentProxyType = (a.asset.media?.proxyType || null) as
| 'image'
| 'video'
| 'audio'
| 'pdf'
| null
'image' | 'video' | 'audio' | 'pdf' | null
attachments.push({
id: a.id,
assetId: a.asset.id,
+1 -3
View File
@@ -90,9 +90,7 @@ export class GotenbergService {
})
if (versionRes.ok) {
const vData = (await versionRes.json().catch(() => null)) as
| { version?: string }
| string
| null
{ version?: string } | string | null
if (vData && typeof vData === 'object' && 'version' in vData) {
version = String(vData.version)
} else if (typeof vData === 'string') {
+1 -2
View File
@@ -68,8 +68,7 @@ export async function resolveIntegrationConfig<TKey extends keyof PrismaJson.Set
})
const teamSettings = team?.settings as PrismaJson.Settings | null
const serviceSettings = teamSettings?.[def.settingsKey] as
| { url?: string; username?: string; password?: string }
| undefined
{ url?: string; username?: string; password?: string } | undefined
if (serviceSettings?.url?.trim()) {
return {
+1 -3
View File
@@ -41,9 +41,7 @@ export interface ProxyServerInfo {
}
export type ConnectionOutcome =
| { status: 'connected' }
| { status: 'needs-auth' }
| { status: 'error'; message: string }
{ status: 'connected' } | { status: 'needs-auth' } | { status: 'error'; message: string }
export interface CallToolOutcome {
ok: boolean
+1 -2
View File
@@ -351,8 +351,7 @@ export class McpService {
instructions?: string | null
} = {}
const impl = connection.serverVersion as
| { name?: string; title?: string; description?: string }
| undefined
{ name?: string; title?: string; description?: string } | undefined
if (impl && typeof impl === 'object') {
const reportedName = impl.title ?? impl.name
if (typeof reportedName === 'string' && reportedName.trim() !== '') {
@@ -1141,8 +1141,7 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
baseUrl: getBedrockBaseUrl(id),
reasoning: m.reasoning === true,
input: (m.modalities?.input?.includes('image') ? ['text', 'image'] : ['text']) as (
| 'text'
| 'image'
'text' | 'image'
)[],
cost: {
input: m.cost?.input || 0,