From 5e83223b323717cde393700b4e4adf8a5ed762a1 Mon Sep 17 00:00:00 2001 From: satoshi toyama Date: Thu, 24 Oct 2024 14:45:41 +0900 Subject: [PATCH 1/5] use first-party GitHub Action instead of runing biome ci --- .github/workflows/ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e22dc80..747a33da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: CI on: + - push - pull_request jobs: @@ -9,15 +10,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - - - name: Install dependencies - run: bun install - - - name: Check if codebase is up-to-date - run: | - bun run ci - git diff --compact-summary --exit-code || \ - (echo; echo "Unexpected git diff detected"; exit 1) + - name: Setup Biome + uses: biomejs/setup-biome@v2 + with: + version: latest + - name: Run Biome + run: biome ci . From 6385fbd08f8120ea34f4c54246b3136b43ec8b50 Mon Sep 17 00:00:00 2001 From: satoshi toyama Date: Thu, 24 Oct 2024 14:46:43 +0900 Subject: [PATCH 2/5] remove ci task --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index ceeed10c..b4e127ac 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "prebuild": "node prepare-font.js", "build": "next build", "start": "next start", - "ci": "bunx @biomejs/biome ci", "check": "bunx @biomejs/biome check --write", "lint": "next lint" }, From 6c5877a09e358e1a76e7414c41c2bf952e0f8a74 Mon Sep 17 00:00:00 2001 From: satoshi toyama Date: Thu, 24 Oct 2024 14:52:20 +0900 Subject: [PATCH 3/5] bump up biome --- app/globals.css | 191 +++++++++--------- bun.lockb | Bin 436708 -> 436708 bytes package.json | 4 +- .../agents/requests/components/markdown.css | 52 ++--- 4 files changed, 123 insertions(+), 124 deletions(-) diff --git a/app/globals.css b/app/globals.css index 67e76034..2555422a 100644 --- a/app/globals.css +++ b/app/globals.css @@ -3,103 +3,102 @@ @tailwind utilities; @layer base { - :root { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - - --primary: 240 5.9% 10%; - --primary-foreground: 0 0% 98%; - - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 0 0% 98%; - - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - --ring: 240 10% 3.9%; - - --radius: 0.5rem; - - - --rosepine_base: 246 24% 17%; - --rosepine_surface: 248 24% 20%; - --rosepine_overlay: 248 21% 26%; - --rosepine_muted: 249 12% 47%; - --rosepine_subtle: 248 15% 61%; - --rosepine_text: 245 50% 91%; - --rosepine_love: 343 76% 68%; - --rosepine_gold: 35 88% 72%; - --rosepine_rose: 2 66% 75%; - --rosepine_pine: 197 48% 47%; - --rosepine_foam: 189 43% 73%; - --rosepine_iris: 267 57% 78%; - --rosepine_highlightLow: 245 22% 20%; - --rosepine_highlightMed: 247 16% 30%; - --rosepine_highlightHigh: 249 15% 38%; - } - - .dark { - --background: 240 10% 3.9%; - --foreground: 0 0% 98%; - - --card: 240 10% 3.9%; - --card-foreground: 0 0% 98%; - - --popover: 240 10% 3.9%; - --popover-foreground: 0 0% 98%; - - --primary: 0 0% 98%; - --primary-foreground: 240 5.9% 10%; - - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - - --muted: 240 3.7% 15.9%; - --muted-foreground: 240 5% 64.9%; - - --accent: 240 3.7% 15.9%; - --accent-foreground: 0 0% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - --ring: 240 4.9% 83.9%; - - --black_100: 234 91% 5%; - --black_80: 218 58% 21%; - --black_70: 222 21% 40%; - --black_50: 222 21% 40%; - --black_40: 207 12% 57%; - --black_30: 207 19% 77%; - --black_-30: 192 73% 84%; - --black_-50: 210 58% 71%; - --black_-70: 202 52% 46%; - --green: 142 100% 68%; - - --white: 30 100% 98%; - } + :root { + --background: 0 0% 100%; + --foreground: 240 10% 3.9%; + + --card: 0 0% 100%; + --card-foreground: 240 10% 3.9%; + + --popover: 0 0% 100%; + --popover-foreground: 240 10% 3.9%; + + --primary: 240 5.9% 10%; + --primary-foreground: 0 0% 98%; + + --secondary: 240 4.8% 95.9%; + --secondary-foreground: 240 5.9% 10%; + + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; + + --accent: 240 4.8% 95.9%; + --accent-foreground: 240 5.9% 10%; + + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 0 0% 98%; + + --border: 240 5.9% 90%; + --input: 240 5.9% 90%; + --ring: 240 10% 3.9%; + + --radius: 0.5rem; + + --rosepine_base: 246 24% 17%; + --rosepine_surface: 248 24% 20%; + --rosepine_overlay: 248 21% 26%; + --rosepine_muted: 249 12% 47%; + --rosepine_subtle: 248 15% 61%; + --rosepine_text: 245 50% 91%; + --rosepine_love: 343 76% 68%; + --rosepine_gold: 35 88% 72%; + --rosepine_rose: 2 66% 75%; + --rosepine_pine: 197 48% 47%; + --rosepine_foam: 189 43% 73%; + --rosepine_iris: 267 57% 78%; + --rosepine_highlightLow: 245 22% 20%; + --rosepine_highlightMed: 247 16% 30%; + --rosepine_highlightHigh: 249 15% 38%; + } + + .dark { + --background: 240 10% 3.9%; + --foreground: 0 0% 98%; + + --card: 240 10% 3.9%; + --card-foreground: 0 0% 98%; + + --popover: 240 10% 3.9%; + --popover-foreground: 0 0% 98%; + + --primary: 0 0% 98%; + --primary-foreground: 240 5.9% 10%; + + --secondary: 240 3.7% 15.9%; + --secondary-foreground: 0 0% 98%; + + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; + + --accent: 240 3.7% 15.9%; + --accent-foreground: 0 0% 98%; + + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 0 0% 98%; + + --border: 240 3.7% 15.9%; + --input: 240 3.7% 15.9%; + --ring: 240 4.9% 83.9%; + + --black_100: 234 91% 5%; + --black_80: 218 58% 21%; + --black_70: 222 21% 40%; + --black_50: 222 21% 40%; + --black_40: 207 12% 57%; + --black_30: 207 19% 77%; + --black_-30: 192 73% 84%; + --black_-50: 210 58% 71%; + --black_-70: 202 52% 46%; + --green: 142 100% 68%; + + --white: 30 100% 98%; + } } @layer base { - .mask-fill { - -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0); /* 2つのマスクレイヤー */ - -webkit-mask-clip: padding-box, border-box; /* レイヤーごとの描画領域の範囲 */ - -webkit-mask-composite: destination-out; /* レイヤーが重なっていない領域を描画対象 */ - } + .mask-fill { + -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0); /* 2つのマスクレイヤー */ + -webkit-mask-clip: padding-box, border-box; /* レイヤーごとの描画領域の範囲 */ + -webkit-mask-composite: destination-out; /* レイヤーが重なっていない領域を描画対象 */ + } } diff --git a/bun.lockb b/bun.lockb index 9855fea552b8561a2a92bd70e4b3b5c0875efa71..b362bf8ff5b4634af60986e11d5879d4cf88f2fa 100755 GIT binary patch delta 1095 zcmaEIS?bAUsR?=t44>*|Nh!aZ@$cA+XFvLwKAG+IjSH>4URp6t{14CHb$=WEw)!!$ zc}xy@Z!*2ZgOLZ!I00jDctS-yV2lnJ;{=Ss;RRCzVdzYr;Kb72;>EbV#f$0ZN(Y-4 z2kdPbY&fUiFYR*(oUoqh{j_)2bmN#rCabc?&VD&%!SAeHwcUFs&f(^GV0ZlN=h*N3 zYsK6{qk0!X!~2BJ-(r)vDFZ-*Y%s*mi`jo~v}%%fy z6#rRa2 z+<4Jk<9Q{h z3Yg{n{`91(0Ct8yyJtJDvpJe8{#E10q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ZW7wa?4?^mTspKl}75Y^jl3 zR@EYPujf;WyY845ZdUb9uB-(zI>_Smx+S8k)ZpD1y65OFh`k|-v5?#Me<;* zTSaVNl+B{zIgejx9#Fr%d2-U_d;dQ$Pd^KC-k(pE-#(ZwE0NP&5jS&*{DV7--!x6x zlOj}H7I*CtTldrT>tkHsZCsJ7b$}t))c=PFPwv)z4sTMMP3~M!vr|o3g%r8+$j(zf zxXmfM<=XWQZ?VBX_gHaDvUv$xQ2m-%d(oez z9qEFuY%PZc%))LgKFmM4!AZM)#doIdE50+Aq%m4-myKh&{zlqD&lngI+2M=~Vhjuo zYi@~|9{lEak%iGv&tf{iH>;#6M8OQ80tui3d)<{BS-0fggB5_aZh*>MG~4X7|JvA@6Bx$zkQh{tD%pkXe4e?pQCI&P( Jc?DY|BLMD;z@GpB diff --git a/package.json b/package.json index b4e127ac..087cf1a2 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "prebuild": "node prepare-font.js", "build": "next build", "start": "next start", - "check": "bunx @biomejs/biome check --write", + "check": "bunx @biomejs/biome check --write .", "lint": "next lint" }, "packageManager": "bun@1.1.17", @@ -76,7 +76,7 @@ "valibot": "0.37.0" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.4", "@tailwindcss/typography": "0.5.15", "@types/node": "^22", "@types/react": "npm:types-react@rc", diff --git a/services/agents/requests/components/markdown.css b/services/agents/requests/components/markdown.css index d32e5d41..a657c2db 100644 --- a/services/agents/requests/components/markdown.css +++ b/services/agents/requests/components/markdown.css @@ -1,103 +1,103 @@ /** https://github.com/iandinwoodie/github-markdown-tailwindcss */ /* Additional vertical padding used by kbd tag. */ .py-05 { - padding-top: 0.125rem; - padding-bottom: 0.125rem; + padding-top: 0.125rem; + padding-bottom: 0.125rem; } .markdown { - @apply break-words text-base leading-normal text-[#FCFCFC]; + @apply break-words text-base leading-normal text-[#FCFCFC]; } .markdown > * + * { - @apply mb-4 mt-0; + @apply mb-4 mt-0; } .markdown li + li { - @apply mt-1; + @apply mt-1; } .markdown li > p + p { - @apply mt-6; + @apply mt-6; } .markdown strong { - @apply font-semibold; + @apply font-semibold; } .markdown a { - @apply font-semibold text-indigo-500; + @apply font-semibold text-indigo-500; } .markdown strong a { - @apply font-bold; + @apply font-bold; } .markdown h1 { - @apply mb-4 mt-6 border-b pb-2 text-3xl font-semibold leading-tight; + @apply mb-4 mt-6 border-b pb-2 text-3xl font-semibold leading-tight; } .markdown h2 { - @apply mb-4 mt-6 border-b pb-2 text-xl font-semibold leading-tight; + @apply mb-4 mt-6 border-b pb-2 text-xl font-semibold leading-tight; } .markdown h3 { - @apply mb-4 mt-6 text-lg font-semibold leading-snug; + @apply mb-4 mt-6 text-lg font-semibold leading-snug; } .markdown h4 { - @apply mb-4 mt-6 text-base font-semibold leading-none; + @apply mb-4 mt-6 text-base font-semibold leading-none; } .markdown h5 { - @apply mb-4 mt-6 text-sm font-semibold leading-tight; + @apply mb-4 mt-6 text-sm font-semibold leading-tight; } .markdown h6 { - @apply mb-4 mt-6 text-sm font-semibold leading-tight text-gray-600; + @apply mb-4 mt-6 text-sm font-semibold leading-tight text-gray-600; } .markdown blockquote { - @apply border-l-4 border-gray-300 pl-4 pr-4 text-base text-gray-600; + @apply border-l-4 border-gray-300 pl-4 pr-4 text-base text-gray-600; } .markdown code { - @apply py-05 inline rounded bg-gray-200 px-1 font-mono text-sm; + @apply py-05 inline rounded bg-gray-200 px-1 font-mono text-sm; } .markdown pre { - @apply rounded bg-gray-100 p-4; + @apply rounded bg-gray-100 p-4; } .markdown pre code { - @apply block overflow-visible rounded-none bg-transparent p-0; + @apply block overflow-visible rounded-none bg-transparent p-0; } .markdown ul { - @apply list-disc pl-8 text-base; + @apply list-disc pl-8 text-base; } .markdown ol { - @apply list-decimal pl-8 text-base; + @apply list-decimal pl-8 text-base; } .markdown kbd { - @apply py-05 inline-block rounded border px-1 align-middle font-mono text-xs font-normal shadow; + @apply py-05 inline-block rounded border px-1 align-middle font-mono text-xs font-normal shadow; } .markdown table { - @apply border-gray-600 text-base; + @apply border-gray-600 text-base; } .markdown th { - @apply border px-3 py-1; + @apply border px-3 py-1; } .markdown td { - @apply border px-3 py-1; + @apply border px-3 py-1; } /* Override pygments style background color. */ .markdown .highlight pre { - @apply bg-gray-100 !important; + @apply bg-gray-100 !important; } From 33fe99327188056f86f906ee90ec36ab64b31758 Mon Sep 17 00:00:00 2001 From: satoshi toyama Date: Thu, 24 Oct 2024 14:53:36 +0900 Subject: [PATCH 4/5] exact version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 747a33da..35e315aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Biome - uses: biomejs/setup-biome@v2 + uses: biomejs/setup-biome@v2.2.1 with: version: latest - name: Run Biome From b258fa2da28ed99dc19d611e7a7cbd733b2b4496 Mon Sep 17 00:00:00 2001 From: satoshi toyama Date: Thu, 24 Oct 2024 14:55:52 +0900 Subject: [PATCH 5/5] specify version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35e315aa..a95a26d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,6 @@ jobs: - name: Setup Biome uses: biomejs/setup-biome@v2.2.1 with: - version: latest + version: 1.9.4 - name: Run Biome run: biome ci .