Add package records #527
Labels
area:auth
Everything related to the Auth Frontend. (Everything in aux-server/aux-web/aux-auth)
area:backend
Is related to the backend server. (Everything in aux-records and aux-server/aux-backend)
area:player
Is related to the player frontend. (Everything in aux-server/aux-web/aux-player)
area:runtime
Is related to the CasualOS runtime. (Everything in aux-runtime, aux-common, aux-vm, etc.)
enhancement
New feature or request
Package records are like NPM packages or ABs, but as an official record type. Like ABs, they are a way of easily sharing AUX files around. Unlike ABs, they are designed primarily around the use-case of sharing reusable library code. Every package is contained in a record, and every package has a name. Like other record types, packages can have markers which determine what can be done with them. Additionally, packages have versions which cannot be overwritten. Packages should also be able to mark scripts as "entry points", which are the scripts that should be called for different kinds of requests. For example, a script could be marked as the entry point for all web requests, while another script could be marked as the entry point for all RPC requests.
Finally, packages are designed to be used by scripts. Scripts can request that packages are loaded and get package metadata. However, the CasualOS player doesn't automatically load packages. Instead, that will be left up to user scripts.
Finally, because these will be a separate record type, it will be easier for us to provide global search across all packages.
The text was updated successfully, but these errors were encountered: