Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@casual-simulation/aux-vm
Advanced tools
A set of abstractions and common utilities required to run an AUX on any platform.
npm install @casual-simulation/aux-vm
import { BaseSimulation, AuxVM } from '@casual-simulation/aux-vm';
// Simulations are wrappers for an
// AuxVM + AuxChannel combo.
// They make all the capabilities of an AUX easy to access
// and understand.
export class MySimulation extends BaseSimulation {
constructor(
id: string, // The ID of the
config: { isBuilder: boolean; isPlayer: boolean }
) {
super(id, config, config => new MyAuxVM(config));
}
}
// An AUX VM is in charge of separating
// the consumer from the AUX Environment.
// Basically its a security barrier between an AUX and the consumer code.
// On Web Browsers, this is usually implemented via web workers and sandboxed iframes.
// On Node.js, this is implemented via a custom script sandbox.
// Below, you can implement your own VM.
export class MyAuxVM implements AuxVM {
// TODO: Implement
}
V0.11.24
_auxUserDimension
-> auxPagePortal
_auxUserInventoryDimension
-> auxInventoryPortal
_auxUserMenuDimension
-> auxMenuPortal
_auxUserUniverse
-> auxUniverse
auxDimensionColor
-> auxPortalColor
auxDimensionLocked
-> auxPortalLocked
auxDimensionRotatable
-> auxPortalRotatable
auxDimensionPannable
-> auxPortalPannable
auxDimensionPannableMaxX
-> auxPortalPannableMaxX
auxDimensionPannableMaxY
-> auxPortalPannableMaxY
auxDimensionPannableMinX
-> auxPortalPannableMinX
auxDimensionPannableMinY
-> auxPortalPannableMinY
auxDimensionZoomable
-> auxPortalZoomable
auxDimensionZoomableMax
-> auxPortalZoomableMax
auxDimensionZoomableMin
-> auxPortalZoomableMin
auxDimensionPlayerZoom
-> auxPortalPlayerZoom
auxDimensionPlayerRotationX
-> auxPortalPlayerRotationX
auxDimensionPlayerRotationY
-> auxPortalPlayerRotationY
auxDimensionGridScale
-> auxPortalGridScale
auxDimensionSurfaceScale
-> auxPortalSurfaceScale
auxDimensionInventoryHeight
-> auxInventoryPortalHeight
auxDimensionInventoryResizable
-> auxInventoryPortalResizable
auxDimensionInventoryColor
is now just auxPortalColor
aux._lastActiveTime
_auxSelection
aux.connected
_auxUser
auxUserUniversesDimension
auxDimensionConfig
player.isConnected()
player.isInDimension()
function has been updated to check whether the page portal is showing the given dimension.auxDimensionConfig
tag.
aux{type}PortalConfigBot
(like auxPagePortalConfigBot
) tags to specify the bot that should configure the portal.auxplayer.com/*{dimension}/{universe}
to get the sheet, you now have to specify the portals via URL query parameters. (e.g. auxplayer.com?auxUniverse={universe}&auxSheetPortal={dimension}
)auxSheetPortal
- Loads the sheet with the given dimension.auxPagePortal
- Loads the normal 3D view with the given dimension.auxMenuPortal
- Loads the menu with the given dimension.auxInventoryPortal
- Loads the inventory with the given dimension.casualos.com/{dimension}/{universe}
and it will redirect you to auxplayer.com?auxUniverse={universe}&auxPagePortal={dimension}
or auxplayer.com?auxUniverse={universe}&auxSheetPortal={dimension}
depending on if you include the *
for the dimension.player.getPortalDimension(portal)
function.
portal
is a string with the name of the portal. Can be one of the following options:
page
- Gets the auxPagePortal
tag.inventory
- Gets the auxInventoryPortal
tag.menu
- Gets the auxMenuPortal
tag.sheet
- Gets the auxSheetPortal
tag.universes
- Gets the auxUniversesPortal
tag."Portal"
to get that tag directly. (e.g. auxPagePortal
will return auxPagePortal
)player.getDimensionalDepth(dimension)
function.
dimension
is the dimension that should be searched for.0
means that the player bot is in the given dimension.1
means that the player bot is viewing the given dimension through a portal.-1
means that the player bot cannot access the given dimension at this moment.auxSheetPortal
tag on the player bot.auxInventoryPortal
to null or undefined
would not hide it.FAQs
A set of abstractions required to securely run an AUX.
The npm package @casual-simulation/aux-vm receives a total of 34 weekly downloads. As such, @casual-simulation/aux-vm popularity was classified as not popular.
We found that @casual-simulation/aux-vm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.