Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@casual-simulation/aux-vm-client
Advanced tools
A set of utilities required to securely run an AUX as a client.
A set of utilities required to run an AUX as a client.
npm install @casual-simulation/aux-vm-client
import { RemoteAuxChannel } from '@casual-simulation/aux-vm-client';
import { AuxUser, AuxConfig } from '@casual-simulation/aux-vm';
export class MyCustomChannel extends RemoteAuxChannel {
constructor(defaultHost: string, user: AuxUser, config: AuxConfig) {
super(defaultHost, user, config, {});
}
// Override the _handleServerEvents function
// to handle events sent from a remote device.
protected async _handleServerEvents(events: DeviceAction[]) {
await super._handleServerEvents(events);
let filtered = events.filter(
e => e.device.roles.indexOf(SERVER_ROLE) >= 0
);
let mapped = <BotAction[]>filtered.map(e => e.event);
if (filtered.length > 0) {
await this.sendEvents(mapped);
}
}
}
V3.3.0
casualos
, and provides functionality to query the CasualOS backend API.login
- Authenticates the cilent to a CasualOS backend.query
- Queries a CasualOS backend.repl
- A Read-eval-print-loop (REPL) that makes interacting with the CasualOS backend via JavaScript really easy.os.calculateViewportCoordinatesFromPosition(portal, position)
- Calculates the viewport coordinates from the given 3D position in the portal.
portal
is the portal that the request is from (one of grid
, miniGrid
, map
, or miniMap
).position
is the 3D position in the portal.(X: 0, Y: 0)
represents the center of the camera while (X: -1, Y: -1)
represents the lower left corner and (X: 1, Y: 1)
represents the upper right corner.os.calculateViewportCoordinatesFromScreenCoordinates(portal, coordinates)
- Calculates the viewport coordinates from the given 2D screen position.
portal
is the portal that the request is for (one of grid
, miniGrid
, map
, or miniMap
).position
is the 2D position on the screen.os.calculateScreenCoordinatesFromViewportCoordinates(portal, coordinates)
- Calculates the screen coordinates from the given 2D viewport coordinates.
portal
is the portal that the request is for (one of grid
, miniGrid
, map
, or miniMap
).position
is the 2D viewport coordinates that the screen coordinates should be found for.transient-input
support for Apple Vision Pro.
superUser
user role.
none
, and superUser
.superUser
role.none
role.superUser
role, a user has access to some operations that they would not normally have access to, including:
getUserInfo
for all userscreateAccount
listSessions
for all userslistRecords
for all users and studioslistStudios
for all userslistStudioMembers
for all studiosgetSubscriptions
for all users and studiossessionKey
and a connectionKey
in the local storage of their web browser to keep them logged in.sessionKey
and connectionKey
query params are specified in the URL, they will be used instead of the stored ones.updateSubscription
operation (POST /api/v2/subscriptions/update
) to allow super users to grant a subscription to users or studios.
miniGridPortal
did not support using os.focusOn()
with a position.FAQs
A set of utilities required to securely run an AUX as a client.
The npm package @casual-simulation/aux-vm-client receives a total of 79 weekly downloads. As such, @casual-simulation/aux-vm-client popularity was classified as not popular.
We found that @casual-simulation/aux-vm-client 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.