 SimoandCursor
|
53b350057d
|
fix(test): mock @/lib/db in send-currency tests for pre-push
Co-authored-by: Cursor <[email protected]>
|
2026-08-01 13:30:16 +02:00 |
|
openhands
|
dacc4cadfd
|
chore(deps): upgrade to typescript 7 bridge and clean up pnpm v11 workspace configs
|
2026-07-27 23:14:00 +02:00 |
|
openhands
|
af9f11d934
|
fix: resolve all Biome lint warnings
- Replace 'as any' with proper CurrencyDb type in send-currency test
- Fix noTemplateCurlyInString warnings in deploy-workflow-contract test
|
2026-07-27 17:33:07 +02:00 |
|
openhands
|
17847545dd
|
Improvements: remove dead config, fix ESM, add URL validation, unify types, add missing logging
- Remove .prettierrc (dead config, Biome replaces Prettier)
- Rename lighthouserc.json to lighthouserc.cjs with module.exports for ESM compat
- Add logger.warn to empty catch blocks in auth, register, site-settings, prisma-cache, redis, security, rate-limit
- Unify ActionResult type: action-helper.ts uses 'ok' consistent with safe-action-shared.ts
- Add noUnusedLocals + noUnusedParameters to tsconfig + fix 25 pre-existing unused vars
- Replace barrel export src/types/index.ts with direct @/types/common imports
- Make trustHost conditional (development only) in auth.ts
- Add pre-flight URL validation to update-Nitrov3.sh to catch image.library.url misconfigurations
- Improve NITRO_IMAGE_LIBRARY_URL content validation in pre-flight & post-compute checks
|
2026-07-26 20:28:11 +02:00 |
|
openhands
|
ac3c42f308
|
test: add action-helper, send-currency, permission-ranks, catalog-tree, and audit test suites (77 files, 405 tests)
|
2026-07-25 18:25:33 +02:00 |
|
openhands
|
df38dccbf1
|
style: format code biome
|
2026-07-13 21:57:41 +02:00 |
|
Simo
|
8fca407f0f
|
Add RCON client + SendCurrency service (AtomCMS-faithful)
- rcon.ts: Node net.Socket transport speaking AtomCMS's exact protocol (raw
JSON {"key","data"} over rcon_ip:rcon_port, fire-and-forget) with a bounded
timeout + backoff retry; typed commands matching RconService EXACTLY
(sendgift `itemid`, disconnect `username`, no-data => data:null, givepoints
numeric `type`, forwarduser, setmotto/setrank/alertuser, give*). Injectable
transport keeps command shapes unit-testable.
- send-currency.ts: mirrors the SendCurrency action — RCON deliver, else DB
fallback (credits -> users.credits; duckets/diamonds/points -> users_currency
by type 0/5/101).
- env: RCON_HOST/PORT/TIMEOUT/RETRIES. vitest: SKIP_ENV_VALIDATION for unit tests.
Verified: tsc exit 0, vitest 39/39, next build exit 0. Live TCP test deferred
(needs a running emulator).
|
2026-06-27 16:37:42 +02:00 |
|