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

@casual-simulation/aux-records

Package Overview
Dependencies
Maintainers
0
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casual-simulation/aux-records - npm Package Versions

1
1820

3.0.10

Diff

Changelog

Source

V3.0.10

Date: 5/6/2022

:rocket: Improvements

  • Improved the Records API to be able to return errors to allowed HTTP origins.

  • Improved os.meetCommand() to return a promise.

  • Added the ability to specify an options object with os.recordData(key, address, data, options) that can specify update and delete policies for the data.

    • These policies can be useful to restrict the set of users that can manipulate the recorded data.

    • options is an object with the following properties:

      let options: {
          /**
           * The HTTP Endpoint that should be queried.
           */
          endpoint?: string;
      
          /**
           * The policy that should be used for updating the record.
           * - true indicates that the value can be updated by anyone.
           * - An array of strings indicates the list of user IDs that are allowed to update the data.
           */
          updatePolicy?: true | string[];
      
          /**
           * The policy that should be used for deleting the record.
           * - true indicates that the value can be erased by anyone.
           * - An array of strings indicates the list of user IDs that are allowed to delete the data.
           * Note that even if a delete policy is used, the owner of the record can still erase any data in the record.
           */
          deletePolicy?: true | string[];
      };
      
  • Added the os.tip(message, pixelX?, pixelY?, duration?) and os.hideTips(tipIDs?) functions to make showing tooltips easy.

    • os.tip(message, pixelX?, pixelY?, duration?) can be used to show a tooltip and takes the following parameters:
      • message is the message that should be shown.
      • pixelX is optional and is the horizontal pixel position on the screen that the message should be shown at. If omitted, then the tooltip will be shown at the current mouse position or the last touch position. Additionally, omitting the position will cause the tooltip to only be shown when the mouse is near it. Moving the mouse away from the tooltip in this mode will cause the tooltip to be automatically hidden.
      • pixelY is optional and is the vertical pixel position on the screen that the message should be shown at. If omitted, then the tooltip will be shown at the current mouse position or the last touch position. Additionally, omitting the position will cause the tooltip to only be shown when the mouse is near it. Moving the mouse away from the tooltip in this mode will cause the tooltip to be automatically hidden.
      • duration is optional and is the number of seconds that the toast should be visible for.
      • Returns a promise that resolves with the ID of the newly created tooltip.
    • os.hideTips(tipIDs?) can be used to hide a tooltip and takes the following parameters:
      • tipIDs is optional and is the ID or array of IDs of tooltips that should be hidden. If omitted, then all tooltips will be hidden.
      • Returns a promise that resolves when the action has been completed.
  • Improved the menuPortal to use 60% of the screen width on large screens when the screen is taller than it is wide.

  • Improved the systemPortal to support system tag values that are set to non-string values such as booleans and integers.

  • Added WebXR hand tracking support.

    • Tested and verified on Meta Quest 2 headset.
    • Wrist portals have custom offsets for hands to try and minimize the blocking of hands during interaction.
    • Air tap interaction only currently. Air taps are when you tap your index finger and thumb together to perform a "tap/click" on what the pointer ray is targeting.

:bug: Bug Fixes

  • Fixed an issue where CasualOS would attempt to download records from the wrong origin if using a custom endpoint parameter.
kallyngowdyyeti
published 3.0.10-alpha.2282886558 •

kallyngowdyyeti
published 3.0.9-alpha.2235281564 •

kallyngowdyyeti
published 3.0.8-alpha.2229329602 •

kallyngowdyyeti
published 3.0.5 •

Changelog

Source

V3.0.5

Date: 4/26/2022

:rocket: Improvements

  • Added the ability to specify which auth site records should be loaded/retrieved from.
    • This is useful for saving or getting records from another CasualOS instance.
    • The following functions have been updated to support an optional endpoint parameter:
      • os.recordData(key, address, data, endpoint?)
      • os.getData(recordName, address, endpoint?)
      • os.listData(recordName, startingAddress?, endpoint?)
      • os.eraseData(key, address, endpoint?)
      • os.recordManualApprovalData(key, address, data, endpoint?)
      • os.getManualApprovalData(recordName, address, endpoint?)
      • os.listManualApprovalData(recordName, startingAddress?, endpoint?)
      • os.eraseManualApprovalData(key, address, endpoint?)
      • os.recordFile(key, data, options?, endpoint?)
      • os.eraseFile(key, url, endpoint?)
      • os.recordEvent(key, eventName, endpoint?)
      • os.countEvents(recordName, eventName, endpoint?)
  • Improved the sheetPortal and and multi-line editor to support editing tags that contain object values.
  • Updated the Terms of Service, Acceptable Use Policy, and Privacy Policy to make it clearer which websites they apply to.
  • Improved how lines are rendered to use an implementation built into three.js.
    • This makes bot strokes that are scaled appear correct.
    • This change also makes lines and strokes appear the same size on screen no matter the zoom level of the camera. This can make it easier to identify bots when zoomed out a lot.
  • Added the ability to allow/deny login with phone numbers based on regex rules defined in a DynamoDB table.
  • Added the os.getSubjectlessPublicRecordKey(recordName) function to make it possible to create a record key that allow publishing record data without being logged in.
    • All record keys are now split into two categories: subjectfull keys and subjectless keys.
    • subjectfull keys require login in order to publish data are are the default type of key.
    • subjectless keys do not require login in order to publish data.
    • When publishing data with a subjectless key, all users are treated as anonymous. In effect, this makes the owner of the record fully responsible for the content that they publish.
  • Added the os.meetFunction(functionName, ...args) function to allow querying the current meet portal meeting state.
    • functionName is the name of the function that should be triggered from the Jitsi Meet API.
    • args is the list of arguments that should be provided to the function.
    • Returns a promise that resolves with the result of the function call.
  • Added the @onMeetEntered and @onMeetExited shouts which are triggered whenever the current user starts/stops participating in a meet.
    • Unlike @onMeetLoaded, @onMeetEntered is only triggered after the user clicks the "Join" button from the meeting waiting room.
    • See the documentation for more detailed information.
  • Added the meetPortalJWT tag to the meetPortalBot to allow using JSON Web Tokens for authenticating moderators in meetings.
    • See the Jitsi FAQ for more information on how to setup a moderator for a meeting: https://developer.8x8.com/jaas/docs/faq#how-can-i-set-a-user-as-moderator-for-a-meeting
  • Added the botPortal tag that when set to a bot ID on the configBot will show the JSON data for that bot.
    • Additionally, the botPortalAnchorPoint and botPortalStyle tags can be set on the botPortalBot similarly to how meetPortalAnchorPoint can be set on the meetPortalBot.
  • Added the systemTagName tag that, when set on the config bot, specifies the tag that should be used when finding bots to include in the systemPortal.
    • For example, setting systemTagName to "test" will cause the systemPortal to search for bots that have a test tag instead of a system tag.

:bug: Bug Fixes

  • Fixed an issue where accessing certain properties on globalThis would cause an error to occur.
  • Fixed an issue where it was not possible to change the current meetPortal while it was already open.
  • Fixed an issue where using os.replaceDragBot() with bots that contained an array in its tags would cause an error.
  • Fixed an issue where videos in formAddress would not automatically play on Chrome web browsers.
kallyngowdyyeti
published 3.0.5-alpha.2222886363 •

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 •

kallyngowdyyeti
published 2.0.34 •

Changelog

Source

V2.0.34

Date: 1/31/2022

:rocket: Improvements

  • Improved the systemPortal to show all tags that are on the bot when the pinned tags section is closed.
    • This makes it easier to manage when adding new tags while the pinned tags section is closed.

:bug: Bug Fixes

  • Fixed an issue with os.recordEvent() where trying to save events in DynamoDB would fail.
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