Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@casual-simulation/crypto

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casual-simulation/crypto - npm Package Versions

1
9

3.1.11-alpha.3500062488

Diff

kallyngowdyyeti
published 3.1.11-alpha.3483057957 •

kallyngowdyyeti
published 3.0.15-alpha.2537844219 •

kallyngowdyyeti
published 3.0.14 •

Changelog

Source

V3.0.14

Date: 6/20/2022

:rocket: Improvements

  • Changed the circle bot form ignore lighting changes based on its orientation.
  • Added the formAddressAspectRatio tag to allow adjusting how formAddress images/videos are displayed on cube, circle, and sprite bot forms.
    • The aspect ratio should be the width of the image divided by the height of the image.
    • Negative aspect ratios can also be used to mirror the image horizontally.
  • Added the ability to create and join custom multimedia chat rooms.
    • Key features:
      • The ability to join multiple chat rooms at once.
      • The ability to display camera/screen feeds on 3D bots.
      • Notification of when remote users join/leave.
      • Notification of when users are speaking.
      • The ability to control the quality that video tracks stream at.
    • The following functions have been added:
      • os.joinRoom(roomName, options?)
      • os.leaveRoom(roomName, options?)
      • os.getRoomOptions(roomName)
      • os.setRoomOptions(roomName, options)
      • os.getRoomTrackOptions(roomName, trackAddress)
      • os.setRoomTrackOptions(roomName, trackAddress, options)
      • os.getRoomRemoteOptions(roomName, remoteId)
    • The following listeners have been added:
      • @onRoomJoined - Sent whenever a room has been joined via os.joinRoom()
      • @onRoomLeave - Sent whenever a room has been exited via os.leaveRoom()
      • @onRoomStreaming - Sent whenever the local user has been connected or reconnected to a room.
      • @onRoomStreamLost - Sent whenever the local user has been disconnected from a room.
      • @onRoomTrackSubscribed - Sent whenever an audio/video track has been discovered inside a room.
      • @onRoomTrackUnsubscribed - Sent whenever an audio/video track has been removed from a room.
      • @onRoomRemoteJoined - Sent whenever a remote user has joined a room.
      • @onRoomRemoteLeave - Sent whenever a remote user has left a room.
      • @onRoomSpeakersChanged - Sent whenever the list of speaking users has changed in a room.
      • @onRoomOptionsChanged - Sent whenever the local room options have been changed.
    • See the documentation for more detailed information.
    • Also check out the rooms-example appBundle for an example.
  • Added the os.listInstUpdates() and os.getInstStateFromUpdates(updates) functions.
    • These functions are useful for tracking the history of an instance and debugging potential data loss problems.
    • os.listInstUpdates() gets the list of updates that have occurred in the current instance.
    • os.getInstStateFromUpdates() gets the bot state that is produced by the given list of updates.

:bug: Bug Fixes

  • Fixed an issue where HTML updates could cause CasualOS to skip @onAnyAction calls for bot updates.
  • Fixed an issue where point-of-view mode would start the camera at the wrong rotation.
  • Fixed an issue where billboarded bots would rotate to match the roll of the camera in VR/AR.
  • Fixed an issue where using os.tip() with long words could cause the words to overflow the tooltip background.
  • Fixed an issue where removing a tag from the sheetPortal could cause the tag below it to become the dimension set in the sheetPortal.
kallyngowdyyeti
published 3.0.14-alpha.2511011009 •

kallyngowdyyeti
published 3.0.14-alpha.2505160566 •

kallyngowdyyeti
published 3.0.14-alpha.2499890262 •

kallyngowdyyeti
published 3.0.2-alpha.1884665520 •

kallyngowdyyeti
published 3.0.0 •

Changelog

Source

V3.0.0

Date: 2/10/2022

:rocket: Improvements

  • Added the os.openImageClassifier(options) and os.closeImageClassifier() functions.

    • These functions are useful for applying Machine Learning inside CasualOS to detect categories of things via the camera feed.
    • Currently, the image classifier is only able to consume models generated with Teachable Machine.
      1. To create a model, go to https://teachablemachine.withgoogle.com/ and click "Get Started".
      2. Create an "Image Project" and choose "Standard image model".
      3. Add or record photos in each class.
      4. Click "Train".
      5. Once training is done you can get a model URL by clicking "Export Model".
      6. Under "Tensorflow.js", choose "Upload (shareable link)" and click "Upload". You can also optionally save the project to Google Drive.
      7. Once uploaded, copy the shareable link.
      8. Create a bot with an @onClick tag and put the following code in it (replacing MY_MODEL_URL with the shareable link):
        await os.openImageClassifier({
            modelUrl: 'MY_MODEL_URL',
        });
        
    • options is an object with the following properties:
      • modelUrl - The sharable link that was generated from Teachable Machine.
      • modelJsonUrl - Is optional and can be used in advanced scenarios where you want to control where the model is stored.
      • modelMetadataUrl - Is optional and can be used in advanced scenarios where you want to control where the model is stored.
      • cameraType - Is optional and is the type of camera that should be preferred. Can be "front" or "rear".
  • Created the oai-1 appBundle.

    • This appBundle is currently a simple ab that can query the OpenAI GPT-3 API via a shout.

    • The ab has the following features:

      • A single manager bot in the oai-1 dimension and systemPortal as oai-1.manager.

      • @generateTextResponse is a listener that asks GPT-3 to respond to a given text prompt.

        • It takes the following parameters:

        • It returns a promise that contains a list of generated choices.

        • Example:

          let oai = getBot('system', 'oai-1.manager');
          const response = await oai.generateTextResponse({
              apiKey: 'myAPIKey',
              prompt: 'Write a tagline for an ice cream shop.',
          });
          
          if (response.choices.length > 0) {
              os.toast('Best choice: ' + response.choices[0]);
          } else {
              os.toast('No choices.');
          }
          

:bug: Bug Fixes

  • Fixed an issue with os.listData() where it was impossible to list data items unless a starting address was provided.
kallyngowdyyeti
published 3.0.0-alpha.1826142686 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc