@casual-simulation/aux-records
Advanced tools
Changelog
V3.2.4
formDepthWrite
tag.formDepthTest
tag.Ctrl+B
to automatically focus the last visisted tag.os.showInput()
modal.admin
and member
.
admin
members can manage the Studio subscription and can add/remove members and create records.member
members can read/write data in records, but cannot manage permissions in records.Changelog
V3.2.3
Changelog
V3.2.2
ai.chat()
and ai.generateSkybox()
functions as an easy way to interface with OpenAI's Chat API and Blockade Lab's API.
ai.chat()
accepts two parameters:
message
- This is the message (string or object) or list of messages (objects) that the AI model should respond to.options
- Is optional and are the options that should be used for the operation.message
was a string. Otherwise, it will be an object.ai.generateSkybox()
accepts three parameters:
prompt
- This is the prompt that tells the AI what the generated skybox should look like.negativePrompt
- Is optional and tells the AI what the generated skybox should not look like.options
- Is optional and are the options that should be used for the operation.SERVER_CONFIG
properties:
openai
- This should be an object with the following properties:
apiKey
- The OpenAI API Key that should be used for requests.maxTokens
- The maximum number of tokens that can be used in a request. If omitted, then there is no limit.blockadeLabs
- This should be an object with the following properties:
apiKey
- The Blockade Labs API Key that should be used for requests.ai
- This should be an object with the following properties:
chat
- Optional. If omitted, then AI Chat features will be disabled. It should be an object with the following properties:
provider
- Set this to "openai"
. This tells the server to use OpenAI for ai.chat()
.defaultModel
- Set this to the model that should be used by default. For OpenAI, see this list of supported models.allowedModels
- The array of model names that are allowed to be used by ai.chat()
.allowedSubscriptionTiers
- The array of subscription tiers that enable ai.chat()
for a user. If a user is not subscribed to one of the listed tiers, then they will not be allowed to use ai.chat()
. Set this to true
to allow all users (even ones that are not subscribed).generateSkybox
- Optional. If omitted, then AI Skybox features will be disabled. It should be an object with the following properties:
provider
- Set this to "blockadeLabs"
. This tells the server to use Blockade Labs for ai.generateSkybox()
.allowedSubscriptionTiers
- The array of subscription tiers that enable ai.generateSkybox()
for a user. If a user is not subscribed to one of the listed tiers, then they will not be allowed to use ai.generateSkybox()
. Set this to true
to allow all users (even ones that are not subscribed).bytes.toBase64Url(data, mimeType?)
and bytes.fromBase64Url(url)
functions.
bytes.toBase64Url(data, mimeType?)
- Creates a Data URL using the given binary data or Base 64 string, and includes the given MIME Type in the output.
data
- Is a Uint8Array
or string
and is the data that should be included in the URL.mimeType
- Is optional, and is the MIME Type that the data represents.bytes.fromBase64Url(url)
- Creates a Blob
from the given data URL. The resulting blob will have a type
matching the MIME Type stored in the Data URL, and binary data equal to the decoded base 64.
url
- The string representing the data URL.Changelog
V3.2.19
implements
, interface
, let
, package
, private
, protected
, public
, static
, yield
keywords are no longer allowed to be used as identifiers.Infinity
, undefined
, etc.) are no longer allowed.0
.
0
and having every digit less than 8
let num = 0123; // This does not equal 123, but is actually 83 in decimal
preact/compat
for custom apps.
preact/compat
improves Preact compatibility with React behavior and features.os.appCompat
API.
preact/compat
.Suspense
, lazy()
, createPortal()
, forwardRef()
, memo()
, and PureComponent
.createRef()
and createContext()
to os.appHooks
.@onGridClick
, @onGridUp
, and @onGridDown
shouts to all loaded insts.