From a239eba6ce6e63d7842880c3734e883df3974268 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 10 Apr 2026 10:24:44 +0300 Subject: [PATCH] chore(llm): update backend script to be aware of the changes --- .../src/assets/llm/skills/backend_scripting.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/server/src/assets/llm/skills/backend_scripting.md b/apps/server/src/assets/llm/skills/backend_scripting.md index 59ec934ece..f96d47d6c0 100644 --- a/apps/server/src/assets/llm/skills/backend_scripting.md +++ b/apps/server/src/assets/llm/skills/backend_scripting.md @@ -43,10 +43,19 @@ Backend scripts run in Node.js on the server. They have direct access to notes i - `api.getAppInfo()` - get application info ### Libraries -- `api.axios` - HTTP client - `api.dayjs` - date manipulation - `api.xml2js` - XML parser -- `api.cheerio` - HTML/XML parser +- `api.htmlParser` - HTML parser (node-html-parser), use `api.htmlParser.parse(html)` to parse +- `api.cheerio` - **DEPRECATED**, use `api.htmlParser` instead + +### HTTP Requests +Use the native `fetch()` API for HTTP requests: +```javascript +const response = await fetch('https://api.example.com/data'); +const data = await response.json(); +``` + +Note: `api.axios` was removed in 2026 due to a supply chain security incident. Use `fetch()` instead. ### Advanced - `api.transactional(func)` - wrap code in a database transaction