Skip to content

Commit 205a06e

Browse files
authored
refactor(ui): adopt Astryx 0.6.2 components.math for Markdown math (#5543)
* chore(deps): bump @astryxdesign/* from 0.6.1 to 0.6.2 0.6.2 adds an opt-in Markdown math renderer (components.math), a TextInput IME fix for CJK input, ChatToolCalls a11y announcements, and a localized Spinner label. Upstream reworked Markdown.js parse plumbing for the math option (mathParseOptions / hasMathRenderer cache reset), so the settledText / transformSource patch hunks were re-applied by hand onto the new shape; all other patched files were byte-identical between 0.6.1 and 0.6.2. Generated-by: Devin * refactor(ui): render Markdown math through upstream components.math Replace the private-use TOKEN transport with Astryx 0.6.2's official math pipeline: components.math renders parsed math nodes through the same KaTeX configuration, and transformSource now translates the host delimiters into upstream grammar instead of smuggling tokens past the parser. \(…\) inline math is emitted as `$…$` guarded by zero-width spaces so adjacent digits or dollars cannot trip upstream's currency checks, and `\[…\]`/`$$…$$` emit `$$` lines that repeat the enclosing quote/list margin so containers still own them. Bare `$` outside code and link destinations is escaped, preserving the "shell variables and currency stay literal" contract that upstream's bare-$ pairing would otherwise break. Display math on a table-row line degrades to an inline span so `$$` lines never split a row. The regenerated patch adds one upstream fix: trimStreamingArtifacts' unclosed-marker scans ([, *, ~~) now skip completed inline math spans; previously a last-line formula containing those characters was trimmed or auto-closed as Markdown. Generated-by: Devin
1 parent 8dfc68d commit 205a06e

19 files changed

Lines changed: 683 additions & 212 deletions

‎LICENSE‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ License: MIT
253253

254254
Maka includes an ejected adaptation of Astryx ChatReasoning v0.1.9 in
255255
`packages/ui/src/astryx-chat-reasoning.tsx` and generated theme artifacts in
256-
`apps/desktop/src/renderer/astryx-theme/`, based on Astryx theme-neutral v0.6.1.
256+
`apps/desktop/src/renderer/astryx-theme/`, based on Astryx theme-neutral v0.6.2.
257257
Maka also redistributes
258-
`patches/@astryxdesign+core+0.6.1.patch`, which modifies the MIT-licensed Astryx
258+
`patches/@astryxdesign+core+0.6.2.patch`, which modifies the MIT-licensed Astryx
259259
core package. The following MIT License applies to that material:
260260

261261
MIT License

‎apps/desktop/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
},
7474
"devDependencies": {
7575
"@ant-design/icons-svg": "4.6.0",
76-
"@astryxdesign/core": "0.6.1",
77-
"@astryxdesign/theme-neutral": "0.6.1",
76+
"@astryxdesign/core": "0.6.2",
77+
"@astryxdesign/theme-neutral": "0.6.2",
7878
"@babel/parser": "7.29.7",
7979
"@fontsource-variable/geist": "^5.3.0",
8080
"@fontsource-variable/geist-mono": "^5.3.0",

‎apps/desktop/resources/licenses/npm/THIRD_PARTY_NOTICES.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ SOFTWARE.
677677

678678
================================================================================
679679

680-
Package: @astryxdesign/core@0.6.1
680+
Package: @astryxdesign/core@0.6.2
681681
Declared license: MIT
682682
Selected license: MIT
683683
Repository: git+https://github.com/facebook/astryx.git#packages/core
@@ -707,7 +707,7 @@ SOFTWARE.
707707

708708
================================================================================
709709

710-
Package: @astryxdesign/theme-neutral@0.6.1
710+
Package: @astryxdesign/theme-neutral@0.6.2
711711
Declared license: MIT
712712
Selected license: MIT
713713
Repository: git+https://github.com/facebook/astryx.git#packages/themes/neutral

‎apps/desktop/src/renderer/astryx-theme/maka.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @generated by `astryx theme build` — do not edit manually.
33
* Source: src/renderer/astryx-theme/makaTheme.ts
44
* Command: astryx theme build src/renderer/astryx-theme/makaTheme.ts --out src/renderer/astryx-theme/maka.css
5-
* CLI: @astryxdesign/cli@0.6.1
5+
* CLI: @astryxdesign/cli@0.6.2
66
* Core: @astryxdesign/core@0.1.0
77
*/
88

‎apps/desktop/src/renderer/astryx-theme/maka.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @generated by `astryx theme build` — do not edit manually.
33
* Source: src/renderer/astryx-theme/makaTheme.ts
44
* Command: astryx theme build src/renderer/astryx-theme/makaTheme.ts --out src/renderer/astryx-theme/maka.css
5-
* CLI: @astryxdesign/cli@0.6.1
5+
* CLI: @astryxdesign/cli@0.6.2
66
* Core: @astryxdesign/core@0.1.0
77
*/
88

‎apps/desktop/src/renderer/astryx-theme/maka.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @generated by `astryx theme build` — do not edit manually.
33
* Source: src/renderer/astryx-theme/makaTheme.ts
44
* Command: astryx theme build src/renderer/astryx-theme/makaTheme.ts --out src/renderer/astryx-theme/maka.css
5-
* CLI: @astryxdesign/cli@0.6.1
5+
* CLI: @astryxdesign/cli@0.6.2
66
* Core: @astryxdesign/core@0.1.0
77
*/
88

‎docs/astryx-surface-file-inventory.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Generated by `scripts/generate-astryx-surface-inventory.mjs`.
44
Each row is one on-disk product surface file. Regenerated inventory must stay in sync with disk (coverage gate).
5-
Generated against `@astryxdesign/core@0.6.1` (195 component exports).
5+
Generated against `@astryxdesign/core@0.6.2` (195 component exports).
66

77
Wiki bar: Design Conventions · API Use-the-System · Theming · Container Padding.
88

‎package-lock.json‎

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
},
112112
"devDependencies": {
113113
"@ai-sdk/provider-utils": "5.0.40",
114-
"@astryxdesign/cli": "0.6.1",
115-
"@astryxdesign/core": "0.6.1",
114+
"@astryxdesign/cli": "0.6.2",
115+
"@astryxdesign/core": "0.6.2",
116116
"@biomejs/biome": "2.5.13",
117117
"@electron/asar": "4.3.0",
118118
"@types/node": "^26.5.1",

‎packages/ui/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"test:dist": "node --test \"dist/**/*.test.js\""
2929
},
3030
"dependencies": {
31-
"@astryxdesign/core": "0.6.1",
31+
"@astryxdesign/core": "0.6.2",
3232
"@maka/core": "0.1.0",
3333
"clsx": "^2.1.1",
3434
"katex": "0.18.7",

0 commit comments

Comments
 (0)