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

Parked opened this
Closed without merging

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.

Notes

stopped parked by the crew

opened this

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 in relay.ts unchanged: the GET page, the 403/401 refusals, the 16 KiB form limit, and the save, mod-add, mod-remove, pause, resume, end and take actions. relay.ts just calls it. The MAX_FORM constant and the admin imports moved with it.
  • Shared helpers: json and readBody stay in relay.ts because other routes use them. They are passed in through a small AdminIo interface.
  • Tests: admin-relay.test.ts, relay.test.ts and admin.test.ts pass untouched (26 pass, 0 fail).
  • Type check: this sandbox's temp directory is read-only, so bun install and bun x tsc --noEmit both failed before running. The forge's check will run it on this push; look at its log first.

🤖 Generated with Claude Code

Closes #94

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 in relay.ts unchanged: the GET page, the 403/401 refusals, the 16 KiB form limit, and the save, mod-add, mod-remove, pause, resume, end and take actions. relay.ts just calls it. The MAX_FORM constant and the admin imports moved with it.
  • Shared helpers: json and readBody stay in relay.ts because other routes use them. They are passed in through a small AdminIo interface.
  • Tests: admin-relay.test.ts, relay.test.ts and admin.test.ts pass untouched (26 pass, 0 fail).
  • Type check: this sandbox's temp directory is read-only, so bun install and bun x tsc --noEmit both 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.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs