Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(deps): patch mdast-util-gfm-autolink-literal

Steven Enamakel40e5563712d4
diff --git a/app/patches/[email protected] b/app/patches/[email protected]
new file mode 100644
index 0000000000..286f060b89
--- /dev/null
+++ b/app/patches/[email protected]
@@ -0,0 +1,16 @@
+diff --git a/lib/index.js b/lib/index.js
+index c5ca771c24dd914e342f791716a822431ee32b3a..1d4d1be8d965e25c70d55814c470590bf5f56431 100644
+--- a/lib/index.js
++++ b/lib/index.js
+@@ -132,7 +132,10 @@ function transformGfmAutolinkLiterals(tree) {
+ tree,
+ [
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
+- [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]
++ // OpenHuman patch: no lookbehind — WebKit < 16.4 cannot parse one and
++ // the module fails to load. `findEmail` enforces the same boundary via
++ // `previous(match, true)`.
++ [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]
+ ],
+ {ignore: ['link', 'linkReference']}
+ )
diff --git a/package.json b/package.json
index a50e9cc5c9..a748dc56c9 100644
--- a/package.json
+++ b/package.json
@@ -85,7 +85,8 @@
},
"pnpm": {
"patchedDependencies": {
- "@assistant-ui/[email protected]": "app/patches/@[email protected]"
+ "@assistant-ui/[email protected]": "app/patches/@[email protected]",
}
}
}