Skip to content

Commit 72a4814

Browse files
antfubotclaude
andauthored
chore: update deps (#479)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a96cda8 commit 72a4814

729 files changed

Lines changed: 19207 additions & 6634 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎alias.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ const tsconfig = JSON.parse(raw)
140140
tsconfig.compilerOptions.paths = Object.fromEntries(
141141
Object.entries(alias)
142142
.filter(([key]) => !key.endsWith('.css'))
143-
.map(([key, value]) => [key, [`./${relative(root, value)}`]]),
143+
.map(([key, value]) => [
144+
key,
145+
[`./${relative(root, value)}`],
146+
]),
144147
)
145148
const newRaw = JSON.stringify(tsconfig, null, 2)
146149
if (newRaw !== raw)

‎bump.config.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export default defineConfig({
1313
*/
1414
execute: async (operation) => {
1515
await syncStarterVersion(operation.state.newVersion)
16-
await x('pnpm', ['install', '--frozen-lockfile=false'], { nodeOptions: { stdio: 'inherit', cwd: process.cwd() } })
16+
await x('pnpm', ['install', '--frozen-lockfile=false'], {
17+
nodeOptions: {
18+
stdio: 'inherit',
19+
cwd: process.cwd(),
20+
},
21+
})
1722
},
1823
})

‎design/build-shadow-css.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,19 @@ export async function buildShadowCss(options: BuildShadowCssOptions): Promise<Bu
9898
const generator = await createGenerator(config)
9999

100100
const tokens = new Set<string>()
101-
for (const file of [...files, ...designFiles]) {
101+
for (const file of [
102+
...files,
103+
...designFiles,
104+
]) {
102105
const content = await fs.readFile(file, 'utf-8')
103106
await generator.applyExtractors(content, file, tokens)
104107
}
105108

106109
// Hand-written stylesheets may use `--at-apply`. Run each through the
107110
// configured transformers before merging them in the caller's order.
108-
const userStylePaths = typeof userStylePath === 'string' ? [userStylePath] : (userStylePath ?? [])
111+
const userStylePaths = typeof userStylePath === 'string'
112+
? [userStylePath]
113+
: (userStylePath ?? [])
109114
const userStyles: string[] = []
110115
for (const userStylePath of userStylePaths) {
111116
const userStyle = new MagicString(await fs.readFile(userStylePath, 'utf-8').catch(() => ''))

‎design/design.ts‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ export function button({ variant = 'primary', size = 'md', class: extra }: Butto
2727
link: 'inline-flex items-center gap-1.5 color-active hover:underline underline-offset-2',
2828
}
2929
const sizeClass = size === 'sm'
30-
? (variant === 'primary' ? 'text-sm px-2.5! py-1!' : 'text-sm')
31-
: size === 'lg' ? 'text-base px-4! py-2!' : ''
30+
? (variant === 'primary'
31+
? 'text-sm px-2.5! py-1!'
32+
: 'text-sm')
33+
: size === 'lg'
34+
? 'text-base px-4! py-2!'
35+
: ''
3236
return cx(variantClass[variant], sizeClass, extra)
3337
}
3438

@@ -37,8 +41,12 @@ export type IconButtonSize = 'md' | 'sm'
3741
export interface IconButtonProps { variant?: IconButtonVariant, size?: IconButtonSize, class?: string }
3842

3943
export function iconButton({ variant = 'outline', size = 'md', class: extra }: IconButtonProps = {}): string {
40-
const base = variant === 'ghost' ? 'btn-icon' : 'btn-icon-square'
41-
const sizeClass = size === 'sm' ? 'w-7! h-7! text-sm' : ''
44+
const base = variant === 'ghost'
45+
? 'btn-icon'
46+
: 'btn-icon-square'
47+
const sizeClass = size === 'sm'
48+
? 'w-7! h-7! text-sm'
49+
: ''
4250
return cx(base, sizeClass, extra)
4351
}
4452

‎design/dock-icon.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ const ICONIFY_ID = /^(?:i-)?([\w-]+):([\w-]+)$/
2828
* await dockIconSvg('ph:git-branch-duotone') // → '<svg ...>...</svg>'
2929
*/
3030
export async function dockIconSvg(name: string | { light: string, dark: string } | undefined): Promise<string | undefined> {
31-
const id = typeof name === 'string' ? name : name?.light
31+
const id = typeof name === 'string'
32+
? name
33+
: name?.light
3234
if (!id)
3335
return undefined
3436
const match = id.match(ICONIFY_ID)

‎design/uno.config.ts‎

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,24 @@ export function createDesignConfig(options: CreateDesignConfigOptions = {}) {
4444
return defineConfig({
4545
presets: [
4646
presetAnthonyDesign({ primary: '#3a6a45' }),
47-
...(Array.isArray(base) ? base : [base]),
47+
...(Array.isArray(base)
48+
? base
49+
: [base]),
4850
presetIcons({ scale: 1.1 }),
4951
],
50-
transformers: [transformerDirectives(), transformerVariantGroup()],
52+
transformers: [
53+
transformerDirectives(),
54+
transformerVariantGroup(),
55+
],
5156
/**
5257
* The shared class-helper builders (`design/design.ts`) assemble their class
5358
* chains at runtime, so every app scans that one file (it carries
5459
* `@unocss-include`) for extraction regardless of its own framework globs.
5560
*/
5661
content: {
57-
filesystem: [fileURLToPath(new URL('./design.ts', import.meta.url))],
62+
filesystem: [
63+
fileURLToPath(new URL('./design.ts', import.meta.url)),
64+
],
5865
/**
5966
* Restates UnoCSS's default pipeline exclude. Without it, `mergeConfigs`
6067
* leaves `exclude: []`, and UnoCSS 66.11 then treats every module as
@@ -68,11 +75,17 @@ export function createDesignConfig(options: CreateDesignConfigOptions = {}) {
6875
* Wind leaves bare `border`/`border-b` at currentColor; restore the subtle
6976
* shared border color (matching `border-base`) for unqualified borders.
7077
*/
71-
preflights: [{ getCSS: () => '*,::before,::after{border-color:#8882}' }],
78+
preflights: [
79+
{
80+
getCSS: () => '*,::before,::after{border-color:#8882}',
81+
},
82+
],
7283
theme: {
7384
// Stable palette for status marks and preview content that intentionally
7485
// keeps the default accent when the surrounding panel adopts a theme.
75-
colors: { devframe: resolvePrimary('#3a6a45') },
86+
colors: {
87+
devframe: resolvePrimary('#3a6a45'),
88+
},
7689
},
7790
shortcuts: {
7891
/** Fixed semantic colors stay independent of the panel's primary accent. */
@@ -193,7 +206,9 @@ export function rewireBakedPrimaryColors(css: string, primaryRamp: Record<string
193206
const rgb = hex && hexToRgbTriplet(hex)
194207
if (!rgb)
195208
continue
196-
const varName = stop === 'DEFAULT' ? '--colors-primary-DEFAULT' : `--colors-primary-${stop}`
209+
const varName = stop === 'DEFAULT'
210+
? '--colors-primary-DEFAULT'
211+
: `--colors-primary-${stop}`
197212
out = out.replace(
198213
new RegExp(String.raw`rgb\(${rgb}(?!\d)`, 'g'),
199214
`rgb(from var(${varName}, ${hex}) r g b`,

‎docs/app/app.config.ts‎

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,31 @@ export default defineAppConfig({
2020
label: 'Adapters',
2121
sections: ['adapters', 'frameworks'],
2222
},
23-
{ label: 'Add-ons', sections: ['add-ons'], link: 'section' as const },
24-
{ label: 'Ecosystem', sections: ['ecosystem'], link: 'section' as const },
25-
{ label: 'Reference', sections: ['references'], link: 'section' as const },
26-
{ label: 'Errors', sections: ['errors'], link: 'section' as const },
27-
{ label: 'Blog', sections: ['posts'], link: 'section' as const },
23+
{
24+
label: 'Add-ons',
25+
sections: ['add-ons'],
26+
link: 'section' as const,
27+
},
28+
{
29+
label: 'Ecosystem',
30+
sections: ['ecosystem'],
31+
link: 'section' as const,
32+
},
33+
{
34+
label: 'Reference',
35+
sections: ['references'],
36+
link: 'section' as const,
37+
},
38+
{
39+
label: 'Errors',
40+
sections: ['errors'],
41+
link: 'section' as const,
42+
},
43+
{
44+
label: 'Blog',
45+
sections: ['posts'],
46+
link: 'section' as const,
47+
},
2848
{
2949
label: `v${devframePkg.version}`,
3050
to: '/migrations',
@@ -126,7 +146,10 @@ export default defineAppConfig({
126146
'/guide/security',
127147
],
128148
},
129-
{ title: 'Agentic', items: ['/guide/agent-native'] },
149+
{
150+
title: 'Agentic',
151+
items: ['/guide/agent-native'],
152+
},
130153
{
131154
title: 'Compose a hub',
132155
items: [

‎docs/app/components/AssistantChat.vue‎

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ const { messages, status, error, sendMessage, regenerate, stop } = useChat({
2121
transport: new DefaultChatTransport({ api: '/api/assistant' }),
2222
})
2323
24-
const plugins = [highlight()]
24+
const plugins = [
25+
highlight(),
26+
]
2527
2628
// Suggestions grouped by category, shown before the first message.
2729
const questions = computed(() => assistant?.faqQuestions ?? [])
@@ -58,7 +60,9 @@ async function copyConversation() {
5860
const text = messages.value
5961
.map((message) => {
6062
const content = message.parts.filter(isTextUIPart).map(part => part.text).join('\n')
61-
return `${message.role === 'user' ? 'User' : 'Assistant'}:\n${content}`
63+
return `${message.role === 'user'
64+
? 'User'
65+
: 'Assistant'}:\n${content}`
6266
})
6367
.join('\n\n')
6468
await navigator.clipboard.writeText(text)
@@ -76,12 +80,23 @@ function toolMeta(part: ToolUIPart | DynamicToolUIPart) {
7680
const streaming = isToolStreaming(part)
7781
const input = part.input as Record<string, string> | undefined
7882
if (name === 'search_docs') {
79-
return { icon: 'i-lucide-text-search', text: streaming ? 'Searching the docs' : 'Searched the docs', suffix: input?.query }
83+
return {
84+
icon: 'i-lucide-text-search',
85+
text: streaming ? 'Searching the docs' : 'Searched the docs',
86+
suffix: input?.query,
87+
}
8088
}
8189
if (name === 'get_page') {
82-
return { icon: 'i-lucide-book-open', text: streaming ? 'Reading a page' : 'Read a page', suffix: input?.path }
90+
return {
91+
icon: 'i-lucide-book-open',
92+
text: streaming ? 'Reading a page' : 'Read a page',
93+
suffix: input?.path,
94+
}
95+
}
96+
return {
97+
icon: 'i-lucide-wrench',
98+
text: name.replace(/_/g, ' '),
8399
}
84-
return { icon: 'i-lucide-wrench', text: name.replace(/_/g, ' ') }
85100
}
86101
87102
/** Live tool rows show while the answer streams; once done they collapse into one "Used N sources" row. */
@@ -100,8 +115,11 @@ function messageSources(message: UIMessage) {
100115
for (const part of message.parts) {
101116
if (isToolUIPart(part) && getToolName(part) === 'get_page') {
102117
const path = (part.input as { path?: string } | undefined)?.path
103-
if (path)
104-
paths.add(path.startsWith('/') ? path : `/${path}`)
118+
if (path) {
119+
paths.add(path.startsWith('/')
120+
? path
121+
: `/${path}`)
122+
}
105123
}
106124
}
107125
return [...paths]
@@ -113,7 +131,9 @@ function messageToolCount(message: UIMessage) {
113131
114132
function sourcesLabel(message: UIMessage) {
115133
const count = messageSources(message).length || messageToolCount(message)
116-
return `Used ${count} source${count === 1 ? '' : 's'}`
134+
return `Used ${count} source${count === 1
135+
? ''
136+
: 's'}`
117137
}
118138
</script>
119139

‎docs/app/components/BrandAssetCard.vue‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ async function copySvg(): Promise<void> {
2828
2929
function downloadSvg(): void {
3030
triggerDownload(
31-
URL.createObjectURL(new Blob([withXmlns(props.svg)], { type: 'image/svg+xml;charset=utf-8' })),
31+
URL.createObjectURL(new Blob([
32+
withXmlns(props.svg),
33+
], { type: 'image/svg+xml;charset=utf-8' })),
3234
`${props.file}.svg`,
3335
)
3436
}

‎docs/app/components/OgImage/OgImageDocs.satori.vue‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const { seo, docs } = useAppConfig()
2020
const site = useSiteConfig()
2121
2222
const siteName = seo?.siteName || site.name || ''
23-
const host = site.url ? site.url.replace(/^https?:\/\//, '').replace(/\/$/, '') : ''
23+
const host = site.url
24+
? site.url.replace(/^https?:\/\//, '').replace(/\/$/, '')
25+
: ''
2426
const accent = docs?.ogImage?.accent || '#fafafa'
2527
</script>
2628

0 commit comments

Comments
 (0)