Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
refactor: replace marked-terminal with custom CLI renderer for markdown parsing
Salman Qureshi22ad05eb1792
diff --git a/package-lock.json b/package-lock.jsonindex 0b659445..e7fe5172 100644--- a/package-lock.json+++ b/package-lock.json@@ -20,8 +20,7 @@"grammy": "^1.42.0","ink": "^5.2.0","js-tiktoken": "^1.0.19",- "marked": "^15.0.12",- "marked-terminal": "^7.3.0",+ "marked": "^14.1.4","node-cron": "^3.0.3","pino": "^9.6.0","react": "^18.3.1",@@ -32,7 +31,6 @@"mercury": "dist/index.js"},"devDependencies": {- "@types/marked-terminal": "^6.1.1","@types/node": "^22.13.0","@types/node-cron": "^3.0.11","@types/react": "^18.3.0",@@ -152,15 +150,6 @@"node": ">=14.13.1"}},- "node_modules/@colors/colors": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",- "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==",- "optional": true,- "engines": {- "node": ">=0.1.90"- }- },"node_modules/@esbuild/aix-ppc64": {"version": "0.27.7","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",@@ -983,23 +972,6 @@"win32"]},- "node_modules/@sindresorhus/is": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",- "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sindresorhus/is?sponsor=1"- }- },- "node_modules/@types/cardinal": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/@types/cardinal/-/cardinal-2.1.1.tgz",- "integrity": "sha512-/xCVwg8lWvahHsV2wXZt4i64H1sdL+sN1Uoq7fAc8/FA6uYHjuIveDwPwvGUYp4VZiv85dVl6J/Bum3NDAOm8g==",- "dev": true- },"node_modules/@types/chai": {"version": "5.2.3","resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",@@ -1027,30 +999,6 @@"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==","dev": true},- "node_modules/@types/marked-terminal": {- "version": "6.1.1",- "resolved": "https://registry.npmjs.org/@types/marked-terminal/-/marked-terminal-6.1.1.tgz",- "integrity": "sha512-DfoUqkmFDCED7eBY9vFUhJ9fW8oZcMAK5EwRDQ9drjTbpQa+DnBTQQCwWhTFVf4WsZ6yYcJTI8D91wxTWXRZZQ==",- "dev": true,- "dependencies": {- "@types/cardinal": "^2.1",- "@types/node": "*",- "chalk": "^5.3.0",- "marked": ">=6.0.0 <12"- }- },- "node_modules/@types/marked-terminal/node_modules/marked": {- "version": "11.2.0",- "resolved": "https://registry.npmjs.org/marked/-/marked-11.2.0.tgz",- "integrity": "sha512-HR0m3bvu0jAPYiIvLUUQtdg1g6D247//lvcekpHO1WMvbwDlwSkZAX9Lw4F4YHE1T0HaaNve0tuAWuV1UJ6vtw==",- "dev": true,- "bin": {- "marked": "bin/marked.js"- },- "engines": {- "node": ">= 18"- }- },"node_modules/@types/node": {"version": "22.19.17","resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz",@@ -1277,7 +1225,8 @@"node_modules/any-promise": {"version": "1.3.0","resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",- "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "dev": true},"node_modules/assertion-error": {"version": "2.0.1",@@ -1377,14 +1326,6 @@"url": "https://github.com/chalk/chalk?sponsor=1"}},- "node_modules/char-regex": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz",- "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",- "engines": {- "node": ">=10"- }- },"node_modules/check-error": {"version": "2.1.3","resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",@@ -1434,114 +1375,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/cli-highlight": {- "version": "2.1.11",- "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz",- "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==",- "dependencies": {- "chalk": "^4.0.0",- "highlight.js": "^10.7.1",- "mz": "^2.4.0",- "parse5": "^5.1.1",- "parse5-htmlparser2-tree-adapter": "^6.0.0",- "yargs": "^16.0.0"- },- "bin": {- "highlight": "bin/highlight"- },- "engines": {- "node": ">=8.0.0",- "npm": ">=5.0.0"- }- },- "node_modules/cli-highlight/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/cli-highlight/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/cli-table3": {- "version": "0.6.5",- "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz",- "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==",- "dependencies": {- "string-width": "^4.2.0"- },- "engines": {- "node": "10.* || >= 12.*"- },- "optionalDependencies": {- "@colors/colors": "1.5.0"- }- },- "node_modules/cli-table3/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/cli-table3/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "node_modules/cli-table3/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "engines": {- "node": ">=8"- }- },- "node_modules/cli-table3/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cli-table3/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/cli-truncate": {"version": "4.0.0","resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",@@ -1572,91 +1405,6 @@"url": "https://github.com/chalk/slice-ansi?sponsor=1"}},- "node_modules/cliui": {- "version": "7.0.4",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",- "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",- "dependencies": {- "string-width": "^4.2.0",- "strip-ansi": "^6.0.0",- "wrap-ansi": "^7.0.0"- }- },- "node_modules/cliui/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/cliui/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "node_modules/cliui/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/wrap-ansi": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },"node_modules/code-excerpt": {"version": "4.0.0","resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",@@ -1668,22 +1416,6 @@"node": "^12.20.0 || ^14.13.1 || >=16.0.0"}},- "node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/commander": {"version": "13.1.0","resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",@@ -1775,11 +1507,6 @@"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz","integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="},- "node_modules/emojilib": {- "version": "2.4.0",- "resolved": "https://registry.npmjs.org/emojilib/-/emojilib-2.4.0.tgz",- "integrity": "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw=="- },"node_modules/environment": {"version": "1.1.0","resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",@@ -1843,14 +1570,6 @@"@esbuild/win32-x64": "0.27.7"}},- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "engines": {- "node": ">=6"- }- },"node_modules/escape-string-regexp": {"version": "2.0.0","resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",@@ -1927,14 +1646,6 @@"node": "^8.16.0 || ^10.6.0 || >=11.0.0"}},- "node_modules/get-caller-file": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",- "engines": {- "node": "6.* || 8.* || >= 10.*"- }- },"node_modules/get-east-asian-width": {"version": "1.5.0","resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.5.0.tgz",@@ -1960,22 +1671,6 @@"node": "^12.20.0 || >=14.13.1"}},- "node_modules/has-flag": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/highlight.js": {- "version": "10.7.3",- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",- "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==",- "engines": {- "node": "*"- }- },"node_modules/indent-string": {"version": "5.0.0","resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",@@ -2156,9 +1851,9 @@}},"node_modules/marked": {- "version": "15.0.12",- "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz",- "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==",+ "version": "14.1.4",+ "resolved": "https://registry.npmjs.org/marked/-/marked-14.1.4.tgz",+ "integrity": "sha512-vkVZ8ONmUdPnjCKc5uTRvmkRbx4EAi2OkTOXmfTDhZz3OFqMNBM1oTTWwTr4HY4uAEojhzPf+Fy8F1DWa3Sndg==","bin": {"marked": "bin/marked.js"},@@ -2166,26 +1861,6 @@"node": ">= 18"}},- "node_modules/marked-terminal": {- "version": "7.3.0",- "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-7.3.0.tgz",- "integrity": "sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==",- "dependencies": {- "ansi-escapes": "^7.0.0",- "ansi-regex": "^6.1.0",- "chalk": "^5.4.1",- "cli-highlight": "^2.1.11",- "cli-table3": "^0.6.5",- "node-emoji": "^2.2.0",- "supports-hyperlinks": "^3.1.0"- },- "engines": {- "node": ">=16.0.0"- },- "peerDependencies": {- "marked": ">=1 <16"- }- },"node_modules/mimic-fn": {"version": "2.1.0","resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",@@ -2215,6 +1890,7 @@"version": "2.7.0","resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz","integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "dev": true,"dependencies": {"any-promise": "^1.0.0","object-assign": "^4.0.1",@@ -2249,20 +1925,6 @@"node": ">=6.0.0"}},- "node_modules/node-emoji": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-2.2.0.tgz",- "integrity": "sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==",- "dependencies": {- "@sindresorhus/is": "^4.6.0",- "char-regex": "^1.0.2",- "emojilib": "^2.4.0",- "skin-tone": "^2.0.0"- },- "engines": {- "node": ">=18"- }- },"node_modules/node-fetch": {"version": "2.7.0","resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",@@ -2286,6 +1948,7 @@"version": "4.1.1","resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz","integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "dev": true,"engines": {"node": ">=0.10.0"}@@ -2312,24 +1975,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/parse5": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz",- "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug=="- },- "node_modules/parse5-htmlparser2-tree-adapter": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz",- "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==",- "dependencies": {- "parse5": "^6.0.1"- }- },- "node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="- },"node_modules/patch-console": {"version": "2.0.0","resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",@@ -2562,14 +2207,6 @@"node": ">= 12.13.0"}},- "node_modules/require-directory": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/resolve-from": {"version": "5.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",@@ -2670,17 +2307,6 @@"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz","integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="},- "node_modules/skin-tone": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/skin-tone/-/skin-tone-2.0.0.tgz",- "integrity": "sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==",- "dependencies": {- "unicode-emoji-modifier-base": "^1.0.0"- },- "engines": {- "node": ">=8"- }- },"node_modules/slice-ansi": {"version": "7.1.2","resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",@@ -2846,32 +2472,6 @@"node": ">= 6"}},- "node_modules/supports-color": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dependencies": {- "has-flag": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/supports-hyperlinks": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-3.2.0.tgz",- "integrity": "sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==",- "dependencies": {- "has-flag": "^4.0.0",- "supports-color": "^7.0.0"- },- "engines": {- "node": ">=14.18"- },- "funding": {- "url": "https://github.com/chalk/supports-hyperlinks?sponsor=1"- }- },"node_modules/swr": {"version": "2.4.1","resolved": "https://registry.npmjs.org/swr/-/swr-2.4.1.tgz",@@ -2888,6 +2488,7 @@"version": "3.3.1","resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz","integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "dev": true,"dependencies": {"any-promise": "^1.0.0"}@@ -2896,6 +2497,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz","integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "dev": true,"dependencies": {"thenify": ">= 3.1.0 < 4"},@@ -3085,14 +2687,6 @@"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==","dev": true},- "node_modules/unicode-emoji-modifier-base": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/unicode-emoji-modifier-base/-/unicode-emoji-modifier-base-1.0.0.tgz",- "integrity": "sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==",- "engines": {- "node": ">=4"- }- },"node_modules/use-sync-external-store": {"version": "1.6.0","resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",@@ -3814,14 +3408,6 @@}}},- "node_modules/y18n": {- "version": "5.0.8",- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",- "engines": {- "node": ">=10"- }- },"node_modules/yaml": {"version": "2.8.3","resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",@@ -3836,76 +3422,6 @@"url": "https://github.com/sponsors/eemeli"}},- "node_modules/yargs": {- "version": "16.2.0",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",- "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",- "dependencies": {- "cliui": "^7.0.2",- "escalade": "^3.1.1",- "get-caller-file": "^2.0.5",- "require-directory": "^2.1.1",- "string-width": "^4.2.0",- "y18n": "^5.0.5",- "yargs-parser": "^20.2.2"- },- "engines": {- "node": ">=10"- }- },- "node_modules/yargs-parser": {- "version": "20.2.9",- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",- "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",- "engines": {- "node": ">=10"- }- },- "node_modules/yargs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "node_modules/yargs/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/yoga-layout": {"version": "3.2.1","resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",@@ -3995,12 +3511,6 @@"is-fullwidth-code-point": "^4.0.0"}},- "@colors/colors": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",- "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==",- "optional": true- },"@esbuild/aix-ppc64": {"version": "0.27.7","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",@@ -4421,17 +3931,6 @@"dev": true,"optional": true},- "@sindresorhus/is": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",- "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw=="- },- "@types/cardinal": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/@types/cardinal/-/cardinal-2.1.1.tgz",- "integrity": "sha512-/xCVwg8lWvahHsV2wXZt4i64H1sdL+sN1Uoq7fAc8/FA6uYHjuIveDwPwvGUYp4VZiv85dVl6J/Bum3NDAOm8g==",- "dev": true- },"@types/chai": {"version": "5.2.3","resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",@@ -4459,26 +3958,6 @@"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==","dev": true},- "@types/marked-terminal": {- "version": "6.1.1",- "resolved": "https://registry.npmjs.org/@types/marked-terminal/-/marked-terminal-6.1.1.tgz",- "integrity": "sha512-DfoUqkmFDCED7eBY9vFUhJ9fW8oZcMAK5EwRDQ9drjTbpQa+DnBTQQCwWhTFVf4WsZ6yYcJTI8D91wxTWXRZZQ==",- "dev": true,- "requires": {- "@types/cardinal": "^2.1",- "@types/node": "*",- "chalk": "^5.3.0",- "marked": ">=6.0.0 <12"- },- "dependencies": {- "marked": {- "version": "11.2.0",- "resolved": "https://registry.npmjs.org/marked/-/marked-11.2.0.tgz",- "integrity": "sha512-HR0m3bvu0jAPYiIvLUUQtdg1g6D247//lvcekpHO1WMvbwDlwSkZAX9Lw4F4YHE1T0HaaNve0tuAWuV1UJ6vtw==",- "dev": true- }- }- },"@types/node": {"version": "22.19.17","resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz",@@ -4633,7 +4112,8 @@"any-promise": {"version": "1.3.0","resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",- "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "dev": true},"assertion-error": {"version": "2.0.1",@@ -4689,11 +4169,6 @@"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz","integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="},- "char-regex": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz",- "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw=="- },"check-error": {"version": "2.1.3","resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",@@ -4722,82 +4197,6 @@"restore-cursor": "^4.0.0"}},- "cli-highlight": {- "version": "2.1.11",- "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz",- "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==",- "requires": {- "chalk": "^4.0.0",- "highlight.js": "^10.7.1",- "mz": "^2.4.0",- "parse5": "^5.1.1",- "parse5-htmlparser2-tree-adapter": "^6.0.0",- "yargs": "^16.0.0"- },- "dependencies": {- "ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "requires": {- "color-convert": "^2.0.1"- }- },- "chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "requires": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- }- }- }- },- "cli-table3": {- "version": "0.6.5",- "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz",- "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==",- "requires": {- "@colors/colors": "1.5.0",- "string-width": "^4.2.0"- },- "dependencies": {- "ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="- },- "emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="- },- "string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "requires": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- }- },- "strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "requires": {- "ansi-regex": "^5.0.1"- }- }- }- },"cli-truncate": {"version": "4.0.0","resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",@@ -4818,69 +4217,6 @@}}},- "cliui": {- "version": "7.0.4",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",- "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",- "requires": {- "string-width": "^4.2.0",- "strip-ansi": "^6.0.0",- "wrap-ansi": "^7.0.0"- },- "dependencies": {- "ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="- },- "ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "requires": {- "color-convert": "^2.0.1"- }- },- "emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="- },- "string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "requires": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- }- },- "strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "requires": {- "ansi-regex": "^5.0.1"- }- },- "wrap-ansi": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "requires": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- }- }- }- },"code-excerpt": {"version": "4.0.0","resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",@@ -4889,19 +4225,6 @@"convert-to-spaces": "^2.0.1"}},- "color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "requires": {- "color-name": "~1.1.4"- }- },- "color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"commander": {"version": "13.1.0","resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",@@ -4964,11 +4287,6 @@"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz","integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="},- "emojilib": {- "version": "2.4.0",- "resolved": "https://registry.npmjs.org/emojilib/-/emojilib-2.4.0.tgz",- "integrity": "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw=="- },"environment": {"version": "1.1.0","resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",@@ -5019,11 +4337,6 @@"@esbuild/win32-x64": "0.27.7"}},- "escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="- },"escape-string-regexp": {"version": "2.0.0","resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",@@ -5074,11 +4387,6 @@"dev": true,"optional": true},- "get-caller-file": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="- },"get-east-asian-width": {"version": "1.5.0","resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.5.0.tgz",@@ -5095,16 +4403,6 @@"node-fetch": "^2.7.0"}},- "has-flag": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="- },- "highlight.js": {- "version": "10.7.3",- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",- "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A=="- },"indent-string": {"version": "5.0.0","resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",@@ -5227,23 +4525,9 @@}},"marked": {- "version": "15.0.12",- "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz",- "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA=="- },- "marked-terminal": {- "version": "7.3.0",- "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-7.3.0.tgz",- "integrity": "sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==",- "requires": {- "ansi-escapes": "^7.0.0",- "ansi-regex": "^6.1.0",- "chalk": "^5.4.1",- "cli-highlight": "^2.1.11",- "cli-table3": "^0.6.5",- "node-emoji": "^2.2.0",- "supports-hyperlinks": "^3.1.0"- }+ "version": "14.1.4",+ "resolved": "https://registry.npmjs.org/marked/-/marked-14.1.4.tgz",+ "integrity": "sha512-vkVZ8ONmUdPnjCKc5uTRvmkRbx4EAi2OkTOXmfTDhZz3OFqMNBM1oTTWwTr4HY4uAEojhzPf+Fy8F1DWa3Sndg=="},"mimic-fn": {"version": "2.1.0",@@ -5271,6 +4555,7 @@"version": "2.7.0","resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz","integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "dev": true,"requires": {"any-promise": "^1.0.0","object-assign": "^4.0.1",@@ -5290,17 +4575,6 @@"uuid": "8.3.2"}},- "node-emoji": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-2.2.0.tgz",- "integrity": "sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==",- "requires": {- "@sindresorhus/is": "^4.6.0",- "char-regex": "^1.0.2",- "emojilib": "^2.4.0",- "skin-tone": "^2.0.0"- }- },"node-fetch": {"version": "2.7.0","resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",@@ -5312,7 +4586,8 @@"object-assign": {"version": "4.1.1","resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "dev": true},"on-exit-leak-free": {"version": "2.1.2",@@ -5327,26 +4602,6 @@"mimic-fn": "^2.1.0"}},- "parse5": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz",- "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug=="- },- "parse5-htmlparser2-tree-adapter": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz",- "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==",- "requires": {- "parse5": "^6.0.1"- },- "dependencies": {- "parse5": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="- }- }- },"patch-console": {"version": "2.0.0","resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",@@ -5482,11 +4737,6 @@"resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz","integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg=="},- "require-directory": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="- },"resolve-from": {"version": "5.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",@@ -5566,14 +4816,6 @@"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz","integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="},- "skin-tone": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/skin-tone/-/skin-tone-2.0.0.tgz",- "integrity": "sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==",- "requires": {- "unicode-emoji-modifier-base": "^1.0.0"- }- },"slice-ansi": {"version": "7.1.2","resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",@@ -5696,23 +4938,6 @@}}},- "supports-color": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "requires": {- "has-flag": "^4.0.0"- }- },- "supports-hyperlinks": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-3.2.0.tgz",- "integrity": "sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==",- "requires": {- "has-flag": "^4.0.0",- "supports-color": "^7.0.0"- }- },"swr": {"version": "2.4.1","resolved": "https://registry.npmjs.org/swr/-/swr-2.4.1.tgz",@@ -5726,6 +4951,7 @@"version": "3.3.1","resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz","integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "dev": true,"requires": {"any-promise": "^1.0.0"}@@ -5734,6 +4960,7 @@"version": "1.6.0","resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz","integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "dev": true,"requires": {"thenify": ">= 3.1.0 < 4"}@@ -5856,11 +5083,6 @@"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==","dev": true},- "unicode-emoji-modifier-base": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/unicode-emoji-modifier-base/-/unicode-emoji-modifier-base-1.0.0.tgz",- "integrity": "sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g=="- },"use-sync-external-store": {"version": "1.6.0","resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",@@ -6197,70 +5419,11 @@"integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==","requires": {}},- "y18n": {- "version": "5.0.8",- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="- },"yaml": {"version": "2.8.3","resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz","integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg=="},- "yargs": {- "version": "16.2.0",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",- "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",- "requires": {- "cliui": "^7.0.2",- "escalade": "^3.1.1",- "get-caller-file": "^2.0.5",- "require-directory": "^2.1.1",- "string-width": "^4.2.0",- "y18n": "^5.0.5",- "yargs-parser": "^20.2.2"- },- "dependencies": {- "ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="- },- "emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="- },- "string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "requires": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- }- },- "strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "requires": {- "ansi-regex": "^5.0.1"- }- }- }- },- "yargs-parser": {- "version": "20.2.9",- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",- "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="- },"yoga-layout": {"version": "3.2.1","resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",diff --git a/package.json b/package.jsonindex fac610a4..0210154b 100644--- a/package.json+++ b/package.json@@ -36,8 +36,7 @@"grammy": "^1.42.0","ink": "^5.2.0","js-tiktoken": "^1.0.19",- "marked": "^15.0.12",- "marked-terminal": "^7.3.0",+ "marked": "^14.1.4","node-cron": "^3.0.3","pino": "^9.6.0","react": "^18.3.1",@@ -45,7 +44,6 @@"zod": "^3.25.76"},"devDependencies": {- "@types/marked-terminal": "^6.1.1","@types/node": "^22.13.0","@types/node-cron": "^3.0.11","@types/react": "^18.3.0",diff --git a/src/utils/markdown.ts b/src/utils/markdown.tsindex a2574fd4..9d24edda 100644--- a/src/utils/markdown.ts+++ b/src/utils/markdown.ts@@ -1,16 +1,132 @@import { Marked } from 'marked';-import { markedTerminal } from 'marked-terminal';-import type { MarkedExtension } from 'marked';+import type { Tokens, MarkedExtension } from 'marked';+import chalk from 'chalk';-// eslint-disable-next-line @typescript-eslint/no-explicit-any-const terminalRenderer = markedTerminal({ width: 80, text: ' ' } as any) as unknown as MarkedExtension;+const cliExtension: MarkedExtension = {+ renderer: {+ heading({ text, depth }: Tokens.Heading) {+ if (depth === 1) return `\n${chalk.bold.cyan(text)}\n`;+ if (depth === 2) return `\n${chalk.bold.cyan(` ■ ${text}`)}\n`;+ return `\n${chalk.bold(` ■ ${text}`)}\n`;+ },-const marked = new Marked(terminalRenderer);+ paragraph({ tokens }: Tokens.Paragraph) {+ const p = (this as any).parser;+ if (p && tokens) return p.parseInline(tokens) + '\n';+ return '' + '\n';+ },++ strong({ text }: Tokens.Strong) {+ return chalk.bold(text);+ },++ em({ text }: Tokens.Em) {+ return chalk.italic(text);+ },++ del({ text }: Tokens.Del) {+ return chalk.dim.strikethrough(text);+ },++ codespan({ text }: Tokens.Codespan) {+ return chalk.yellow(text);+ },++ code({ text, lang }: Tokens.Code) {+ const lines = text+ .split('\n')+ .map((l) => `${chalk.dim(' ')}${chalk.yellow(l)}`)+ .join('\n');+ const langStr = lang ? chalk.dim(` [${lang}]`) : '';+ return `\n${langStr}\n${lines}\n`;+ },++ list({ ordered, items }: Tokens.List) {+ const p = (this as any).parser;+ const lines: string[] = [];+ items?.forEach((item, i) => {+ const bullet = ordered ? `${i + 1}.` : '•';+ let content = item.text;+ if (p && item.tokens) content = p.parseInline(item.tokens);+ lines.push(` ${chalk.dim(bullet)} ${content}`);+ });+ return `\n${lines.join('\n')}\n`;+ },++ listitem({ text }: Tokens.ListItem) {+ return text;+ },++ blockquote({ text, tokens }: Tokens.Blockquote) {+ const p = (this as any).parser;+ let content = text;+ if (p && tokens) content = p.parseInline(tokens);+ const lines = content+ .split('\n')+ .map((l) => `${chalk.dim('│ ')}${chalk.gray(l)}`)+ .join('\n');+ return `\n${lines}\n`;+ },++ hr() {+ return chalk.dim('─'.repeat(50)) + '\n';+ },++ link({ text, href }: Tokens.Link) {+ return `${chalk.blue.underline(text)} ${chalk.dim(`(${href})`)}`;+ },++ image({ href, title }: Tokens.Image) {+ const label = title || href;+ return chalk.blue(`🖼 ${label}`);+ },++ table({ header, rows }: Tokens.Table) {+ const p = (this as any).parser;+ const headers = header.map((h) => {+ const text = h.tokens ? p?.parseInline(h.tokens) ?? h.text : h.text;+ return chalk.bold(text);+ });+ const colWidths = header.map((h, i) => {+ const contentWidths = rows.map((row) => {+ const cell = row[i];+ const t = typeof cell === 'object' && 'tokens' in cell+ ? p?.parseInline(cell.tokens) ?? cell.text+ : String(cell);+ return t.length;+ });+ return Math.max(h.text.length, ...contentWidths) + 2;+ });++ const headerLine = headers+ .map((h, i) => h.padEnd(colWidths[i]))+ .join(chalk.dim(' │ '));+ const separator = colWidths.map((w) => '─'.repeat(w)).join(chalk.dim('─┼─'));++ const dataLines = rows.map((row) =>+ row+ .map((cell, i) => {+ const t = typeof cell === 'object' && 'tokens' in cell+ ? p?.parseInline(cell.tokens) ?? cell.text+ : String(cell);+ return t.padEnd(colWidths[i]);+ })+ .join(chalk.dim(' │ '))+ );++ return `\n${headerLine}\n${chalk.dim(separator)}\n${dataLines.join('\n')}\n`;+ },+ },+};++const cliMarked = new Marked(cliExtension);export function renderMarkdown(text: string): string {try {- const result = marked.parse(text);- if (typeof result === 'string') return result;+ const result = cliMarked.parse(text, { async: false });+ if (typeof result === 'string') {+ return result.replace(/\n{3,}/g, '\n\n').trim();+ }return text;} catch {return text;