Skip to content

feat(api): call WolfStar bot API via $api (legacy-style)#303

Draft
RedStar071 wants to merge 16 commits into
mainfrom
cursor/backport-structure-api-88be
Draft

feat(api): call WolfStar bot API via $api (legacy-style)#303
RedStar071 wants to merge 16 commits into
mainfrom
cursor/backport-structure-api-88be

fix(api): keep botApi crypto helpers server-only

7bfbb0d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 18, 2026 in 1s

71.14% (-0.39%) compared to 8babfde

View this Pull Request on Codecov

71.14% (-0.39%) compared to 8babfde

Details

Codecov Report

❌ Patch coverage is 55.20833% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.14%. Comparing base (8babfde) to head (7bfbb0d).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
shared/utils/fetch-cache-config.ts 64.00% 8 Missing and 10 partials ⚠️
server/utils/discord/index.ts 8.33% 9 Missing and 2 partials ⚠️
app/plugins/api.ts 22.22% 5 Missing and 2 partials ⚠️
server/utils/botApi.ts 77.77% 0 Missing and 4 partials ⚠️
app/plugins/payload-cache.client.ts 50.00% 2 Missing ⚠️
app/composables/useAuditLog.ts 66.66% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #303      +/-   ##
==========================================
- Coverage   71.53%   71.14%   -0.39%     
==========================================
  Files         167      169       +2     
  Lines        3302     3393      +91     
  Branches      702      730      +28     
==========================================
+ Hits         2362     2414      +52     
- Misses        447      468      +21     
- Partials      493      511      +18     
Files with missing lines Coverage Δ
package.json 100.00% <ø> (ø)
server/utils/runtimeConfig.ts 78.57% <ø> (ø)
app/composables/useAuditLog.ts 68.18% <66.66%> (-1.82%) ⬇️
app/plugins/payload-cache.client.ts 50.00% <50.00%> (ø)
server/utils/botApi.ts 77.77% <77.77%> (ø)
app/plugins/api.ts 50.00% <22.22%> (-30.00%) ⬇️
server/utils/discord/index.ts 34.28% <8.33%> (-1.60%) ⬇️
shared/utils/fetch-cache-config.ts 67.74% <64.00%> (-16.88%) ⬇️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.