Skip to content

Commit 35b8766

Browse files
authored
chore(deps): refresh remaining workspace package versions (#1329)
* chore(deps): refresh remaining workspace package versions Brings puppeteer, @lobehub/icons, @mdxeditor/editor, streamdown, and the @graphql-codegen/* family up to their current lines. - streamdown: pin Tailwind @source so emitted classes survive the purge step; stop forwarding Collapsible's HTMLAttributes into Streamdown in reasoning.tsx since v2 narrowed the `dir` prop type. - graphql-codegen: pin Cursor/Datetime to `string` and JSON to `any` in the client-preset scalars map; codegen v7 narrowed unmapped scalars to `unknown` and our app code uses them positionally as strings. * chore(deps): drop @lobehub/icons re-pin * chore(deps): pin vite + plugin-react via overrides
1 parent 1b4f3f4 commit 35b8766

6 files changed

Lines changed: 350 additions & 794 deletions

File tree

packages/browseros-agent/apps/agent/codegen.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ const config: CodegenConfig = {
3333
preset: 'client',
3434
config: {
3535
documentMode: 'string',
36+
// Pre-codegen-7 implicitly typed custom scalars as `any`,
37+
// which let our app code use them as strings without casts.
38+
// codegen 7's client-preset v6 narrowed unmapped scalars to
39+
// `unknown`. Pin our two custom scalars back to `string` so
40+
// call-sites that do `.endsWith(…)` / `new Date(…)` keep
41+
// typechecking. JSON stays `any` for the same reason.
42+
scalars: {
43+
Cursor: 'string',
44+
Datetime: 'string',
45+
// biome-ignore lint/suspicious/noExplicitAny: matches previous behaviour
46+
JSON: 'any',
47+
},
3648
},
3749
},
3850
'./generated/graphql/schema.graphql': {

packages/browseros-agent/apps/agent/components/ai-elements/reasoning.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ export const ReasoningContent = memo(
171171
)}
172172
{...props}
173173
>
174-
<Streamdown {...props}>{children}</Streamdown>
174+
{/* Don't forward Collapsible's HTMLAttributes into Streamdown —
175+
streamdown@2 narrowed `dir` from `string` to a literal union
176+
and the spread leaks Radix's incompatible type. */}
177+
<Streamdown>{children}</Streamdown>
175178
</CollapsibleContent>
176179
),
177180
)

packages/browseros-agent/apps/agent/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@browseros/server": "workspace:*",
2424
"@hookform/resolvers": "^5.4.0",
2525
"@lobehub/icons": "^2.48.0",
26-
"@mdxeditor/editor": "^3.55.0",
26+
"@mdxeditor/editor": "^4.0.4",
2727
"@posthog/react": "^1.10.2",
2828
"@radix-ui/react-alert-dialog": "^1.1.17",
2929
"@radix-ui/react-checkbox": "^1.3.5",
@@ -79,7 +79,7 @@
7979
"react-router": "^7.18.0",
8080
"shiki": "^3.23.0",
8181
"sonner": "^2.0.7",
82-
"streamdown": "^1.6.11",
82+
"streamdown": "^2.5.0",
8383
"swr": "^2.4.1",
8484
"tailwind-merge": "^3.6.0",
8585
"tailwind-scrollbar-hide": "^4.0.0",
@@ -92,9 +92,9 @@
9292
"devDependencies": {
9393
"@0no-co/graphqlsp": "^1.17.3",
9494
"@eslint/compat": "^2.1.0",
95-
"@graphql-codegen/cli": "^6.3.1",
96-
"@graphql-codegen/client-preset": "^5.3.0",
97-
"@graphql-codegen/schema-ast": "^5.0.2",
95+
"@graphql-codegen/cli": "^7.1.3",
96+
"@graphql-codegen/client-preset": "^6.0.1",
97+
"@graphql-codegen/schema-ast": "^6.0.1",
9898
"@graphql-typed-document-node/core": "^3.2.0",
9999
"@tailwindcss/typography": "^0.5.20",
100100
"@tailwindcss/vite": "^4.3.1",

packages/browseros-agent/apps/agent/styles/global.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
@import "tailwind-scrollbar-hide/v4";
44
@plugin "@tailwindcss/typography";
55

6+
/* streamdown@2 ships its own component classes that Tailwind needs
7+
to scan for utilities. Without this, Tailwind purges classes that
8+
streamdown emits at runtime (e.g. code-block layout). */
9+
@source "../../../node_modules/streamdown/dist/*.js";
10+
611
@custom-variant dark (&:is(.dark *));
712

813
/* Geist Sans Variable Font */

packages/browseros-agent/apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"async-mutex": "^0.5.0",
109109
"drizzle-kit": "^0.31.10",
110110
"pino-pretty": "^13.1.3",
111-
"puppeteer": "24.23.0",
111+
"puppeteer": "^25.1.0",
112112
"typescript": "^5.9.3"
113113
},
114114
"license": "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)