Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@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);
}
}
}
V0.11.9
removeTags()
now checks if a tag starts with the given search value.
.
).removeTags(bot, "hello")
will remove hello
, helloAbc
, and helloX
.onAnyAction()
to onChannelAction()
.player.currentChannel()
to player.getCurrentChannel()
.player.currentContext()
to player.getCurrentContext()
.mod.apply()
to mod()
.
mod.
functions remain the same.mod.export()
still works.camelCase
instead of dot.case
.
aux.scene.color
is now auxChannelColor
aux.scene.user.player.color
is now auxChannelUserPlayerColor
aux.scene.user.builder.color
is now auxChannelUserBuilderColor
aux.inventory.height
to auxInventoryHeight
.aux.channel
to auxChannel
.aux.connectedSessions
to auxConnectedSessions
.aux.color
to auxColor
.aux.creator
to auxCreator
.aux.draggable
to auxDraggable
.aux.draggable.mode
to auxDraggableMode
.aux.stackable
to auxStackable
.aux.destroyable
to auxDestroyable
.aux.editable
to auxEditable
.aux.stroke.color
to auxStrokeColor
.aux.stroke.width
to auxStrokeWidth
.aux.line.to
to auxLineTo
.aux.line.width
to auxLineWidth
.aux.line.style
to auxLineStyle
.aux.line.color
to auxLineColor
.aux.label
to auxLabel
.aux.label.color
to auxLabelColor
.aux.label.size
to auxLabelSize
.aux.label.size.mode
to auxLabelSizeMode
.aux.label.anchor
to auxLabelAnchor
.aux.listening
to auxListening
.aux.shape
to auxShape
.aux.scale
to auxScale
.aux.scale.x
to auxScaleX
.aux.scale.y
to auxScaleY
.aux.scale.z
to auxScaleZ
.aux.image
to auxImage
.aux.iframe
to auxIframe
.aux.iframe.x
to auxIframeX
.aux.iframe.y
to auxIframeY
.aux.iframe.z
to auxIframeZ
.aux.iframe.size.x
to auxIframeSizeX
.aux.iframe.size.y
to auxIframeSizeY
.aux.iframe.rotation.x
to auxIframeRotationX
.aux.iframe.rotation.y
to auxIframeRotationY
.aux.iframe.rotation.z
to auxIframeRotationZ
.aux.iframe.element.width
to auxIframeElementWidth
.aux.iframe.scale
to auxIframeScale
.aux.progressBar
to auxProgressBar
.aux.progressBar.color
to auxProgressBarColor
.aux.progressBar.backgroundColor
to auxProgressBarBackgroundColor
.aux.progressBar.anchor
to auxProgressBarAnchor
.aux._selection
to _auxSelection
.aux._user
to _auxUser
.aux.user.active
to auxUserActive
.aux.version
to auxVersion
.aux._userChannel
to _auxUserChannel
.aux._userContext
to _auxUserContext
.aux._userInventoryContext
to _auxUserInventoryContext
.aux._userMenuContext
to _auxUserMenuContext
.aux._userSimulationsContext
to _auxUserChannelsContext
.aux._editingBot
to _auxEditingBot
.aux._selectionMode
to _auxSelectionMode
.aux.runningTasks
to auxRunningTasks
.aux.finishedTasks
to auxFinishedTasks
.aux.task.output
to auxTaskOutput
.aux.task.error
to auxTaskError
.aux.task.time
to auxTaskTime
.aux.task.shell
to auxTaskShell
.aux.task.backup
to auxTaskBackup
.aux.task.backup.type
to auxTaskBackupType
.aux.task.backup.url
to auxTaskBackupUrl
.aux.context
to auxContext
.aux.context.color
to auxContextColor
.aux.context.locked
to auxContextLocked
.aux.context.grid.scale
to auxContextGridScale
.aux.context.visualize
to auxContextVisualize
.aux.context.x
to auxContextX
.aux.context.y
to auxContextY
.aux.context.z
to auxContextZ
.aux.context.rotation.x
to auxContextRotationX
.aux.context.rotation.y
to auxContextRotationY
.aux.context.rotation.z
to auxContextRotationZ
.aux.context.surface.scale
to auxContextSurfaceScale
.aux.context.surface.size
to auxContextSurfaceSize
.aux.context.surface.minimized
to auxContextSurfaceMinimized
.aux.context.surface.defaultHeight
to auxContextSurfaceDefaultHeight
.aux.context.surface.movable
to auxContextSurfaceMovable
.aux.context.player.rotation.x
to auxContextPlayerRotationX
.aux.context.player.rotation.y
to auxContextPlayerRotationY
.aux.context.player.zoom
to auxContextPlayerZoom
.aux.context.devices.visible
to auxContextDevicesVisible
.aux.context.inventory.color
to auxContextInventoryColor
.aux.context.inventory.height
to auxContextInventoryHeight
.aux.context.inventory.pannable
to auxContextInventoryPannable
.aux.context.inventory.resizable
to auxContextInventoryResizable
.aux.context.inventory.rotatable
to auxContextInventoryRotatable
.aux.context.inventory.zoomable
to auxContextInventoryZoomable
.aux.context.inventory.visible
to auxContextInventoryVisible
.aux.context.pannable
to auxContextPannable
.aux.context.pannable.min.x
to auxContextPannableMinX
.aux.context.pannable.max.x
to auxContextPannableMaxX
.aux.context.pannable.min.y
to auxContextPannableMinY
.aux.context.pannable.max.y
to auxContextPannableMaxY
.aux.context.zoomable
to auxContextZoomable
.aux.context.zoomable.min
to auxContextZoomableMin
.aux.context.zoomable.max
to auxContextZoomableMax
.aux.context.rotatable
to auxContextRotatable
.stripe.publishableKey
to stripePublishableKey
.stripe.secretKey
to stripeSecretKey
.stripe.charges
to stripeCharges
.stripe.successfulCharges
to stripeSuccessfulCharges
.stripe.failedCharges
to stripeFailedCharges
.stripe.charge
to stripeCharge
.stripe.charge.receipt.url
to stripeChargeReceiptUrl
.stripe.charge.receipt.number
to stripeChargeReceiptNumber
.stripe.charge.description
to stripeChargeDescription
.stripe.outcome.networkStatus
to stripeOutcomeNetworkStatus
.stripe.outcome.reason
to stripeOutcomeReason
.stripe.outcome.riskLevel
to stripeOutcomeRiskLevel
.stripe.outcome.riskScore
to stripeOutcomeRiskScore
.stripe.outcome.rule
to stripeOutcomeRule
.stripe.outcome.sellerMessage
to stripeOutcomeSellerMessage
.stripe.outcome.type
to stripeOutcomeType
.stripe.errors
to stripeErrors
.stripe.error
to stripeError
.stripe.error.type
to stripeErrorType
.renameTagsFromDotCaseToCamelCase()
function to help with updating bots from the old tag style to the new tag style.
renameTagsFromDotCaseToCamelCase(bot)
bot
variable to all functions and formulas.
this
.getMod()
function to be able to get all the tags on a bot.
mod.export()
on the returned mod will save the tag code to JSON.
=123
, then mod.export(getMod(bot))
will return JSON containing tag: "=123"
instead of tag: 123
.tags
variable to all functions and formulas.
let tags = getMod(bot)
at the beginning of a script/formula.tags
variable has some caveats when used in formulas. Namely that the formulas won't be automatically updated when another tag referenced from the formula is updated. (Use getTag()
for full support)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 139 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.