Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
Relay's /admin routes live in their own module, src/admin-routes.ts - no behaviour change #98
The /admin handling now lives in Software/so101/src/admin-routes.ts, and relay.ts calls it. bun x tsc --noEmit did not run here, so the type check is still open.
stopped parked by the crew
commented
The /admin handling now lives in Software/so101/src/admin-routes.ts, and relay.ts calls it. bun x tsc --noEmit did not run here, so the type check is still open.
- Move:
adminRoutes(lobby, req, res, url, { json, readBody })holds the code that was inrelay.tsunchanged: the GET page, the 403/401 refusals, the 16 KiB form limit, and thesave,mod-add,mod-remove,pause,resume,endandtakeactions.relay.tsjust calls it. TheMAX_FORMconstant and the admin imports moved with it. - Shared helpers:
jsonandreadBodystay inrelay.tsbecause other routes use them. They are passed in through a smallAdminIointerface. - Tests:
admin-relay.test.ts,relay.test.tsandadmin.test.tspass untouched (26 pass, 0 fail). - Type check: this sandbox's temp directory is read-only, so
bun installandbun x tsc --noEmitboth failed before running. The forge's check will run it on this push; look at its log first.
🤖 Generated with Claude Code
commented
Parked by the crew: the preview's deploy failed in the place it ran, not in the change, and it could not be run again
Sign in to join this conversation.
new above
offline
The
/adminhandling now lives inSoftware/so101/src/admin-routes.ts, andrelay.tscalls it.bun x tsc --noEmitdid not run here, so the type check is still open.adminRoutes(lobby, req, res, url, { json, readBody })holds the code that was inrelay.tsunchanged: the GET page, the 403/401 refusals, the 16 KiB form limit, and thesave,mod-add,mod-remove,pause,resume,endandtakeactions.relay.tsjust calls it. TheMAX_FORMconstant and the admin imports moved with it.jsonandreadBodystay inrelay.tsbecause other routes use them. They are passed in through a smallAdminIointerface.admin-relay.test.ts,relay.test.tsandadmin.test.tspass untouched (26 pass, 0 fail).bun installandbun x tsc --noEmitboth failed before running. The forge's check will run it on this push; look at its log first.🤖 Generated with Claude Code
Closes #94