Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/browseros-agent/apps/agent/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ const config: CodegenConfig = {
preset: 'client',
config: {
documentMode: 'string',
// Pre-codegen-7 implicitly typed custom scalars as `any`,
// which let our app code use them as strings without casts.
// codegen 7's client-preset v6 narrowed unmapped scalars to
// `unknown`. Pin our two custom scalars back to `string` so
// call-sites that do `.endsWith(…)` / `new Date(…)` keep
// typechecking. JSON stays `any` for the same reason.
scalars: {
Cursor: 'string',
Datetime: 'string',
// biome-ignore lint/suspicious/noExplicitAny: matches previous behaviour
JSON: 'any',
},
},
},
'./generated/graphql/schema.graphql': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ export const ReasoningContent = memo(
)}
{...props}
>
<Streamdown {...props}>{children}</Streamdown>
{/* Don't forward Collapsible's HTMLAttributes into Streamdown —
streamdown@2 narrowed `dir` from `string` to a literal union
and the spread leaks Radix's incompatible type. */}
<Streamdown>{children}</Streamdown>
</CollapsibleContent>
),
)
Expand Down
10 changes: 5 additions & 5 deletions packages/browseros-agent/apps/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@browseros/server": "workspace:*",
"@hookform/resolvers": "^5.4.0",
"@lobehub/icons": "^2.48.0",
"@mdxeditor/editor": "^3.55.0",
"@mdxeditor/editor": "^4.0.4",
"@posthog/react": "^1.10.2",
"@radix-ui/react-alert-dialog": "^1.1.17",
"@radix-ui/react-checkbox": "^1.3.5",
Expand Down Expand Up @@ -79,7 +79,7 @@
"react-router": "^7.18.0",
"shiki": "^3.23.0",
"sonner": "^2.0.7",
"streamdown": "^1.6.11",
"streamdown": "^2.5.0",
"swr": "^2.4.1",
"tailwind-merge": "^3.6.0",
"tailwind-scrollbar-hide": "^4.0.0",
Expand All @@ -92,9 +92,9 @@
"devDependencies": {
"@0no-co/graphqlsp": "^1.17.3",
"@eslint/compat": "^2.1.0",
"@graphql-codegen/cli": "^6.3.1",
"@graphql-codegen/client-preset": "^5.3.0",
"@graphql-codegen/schema-ast": "^5.0.2",
"@graphql-codegen/cli": "^7.1.3",
"@graphql-codegen/client-preset": "^6.0.1",
"@graphql-codegen/schema-ast": "^6.0.1",
"@graphql-typed-document-node/core": "^3.2.0",
"@tailwindcss/typography": "^0.5.20",
"@tailwindcss/vite": "^4.3.1",
Expand Down
5 changes: 5 additions & 0 deletions packages/browseros-agent/apps/agent/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
@import "tailwind-scrollbar-hide/v4";
@plugin "@tailwindcss/typography";

/* streamdown@2 ships its own component classes that Tailwind needs
to scan for utilities. Without this, Tailwind purges classes that
streamdown emits at runtime (e.g. code-block layout). */
@source "../../../node_modules/streamdown/dist/*.js";

@custom-variant dark (&:is(.dark *));

/* Geist Sans Variable Font */
Expand Down
2 changes: 1 addition & 1 deletion packages/browseros-agent/apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"async-mutex": "^0.5.0",
"drizzle-kit": "^0.31.10",
"pino-pretty": "^13.1.3",
"puppeteer": "24.23.0",
"puppeteer": "^25.1.0",
"typescript": "^5.9.3"
},
"license": "AGPL-3.0-or-later"
Expand Down
Loading
Loading