7 Commits

Author SHA1 Message Date
Cohee
fd373fb821 Use file URL for import 2023-12-23 19:46:32 +02:00
Cohee
ea85cfcbdd Plugin cleanup and validation fixes 2023-12-23 19:03:13 +02:00
valadaptive
0162d54e5b Always use async import()
import() works with CommonJS and ESM modules, so we don't need two
different code paths.
2023-12-17 12:29:54 -05:00
valadaptive
7ae0e05946 Allow plugins to specify "exit" functions 2023-12-17 12:26:34 -05:00
valadaptive
4fcb7b5ea4 Rework plugin loading
Plugins must now provide an `info` export which includes their ID, name,
and a description (I'm flexible on the last two). The ID is used for the
API route--all plugin-registered API routes will be accessed through
`plugins/[plugin ID]`.
2023-12-17 12:21:05 -05:00
Cohee
940f701691 Don't try to load directories as files 2023-12-17 01:23:28 +02:00
Cohee
16795dd5cc Add server plugin loader 2023-12-16 22:21:40 +02:00