@celljs/ta-extensions 4.18.0 → 4.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/web/index.js +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-extensions",
3
- "version": "4.18.0",
3
+ "version": "4.20.0",
4
4
  "description": "A pi package for Ta: the page of extensions, where the user makes one by saying what it should do, and hands extensions on or takes them in as one file",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -27,9 +27,9 @@
27
27
  "watch": "tsc -b -w --preserveWatchOutput"
28
28
  },
29
29
  "devDependencies": {
30
- "@celljs/ta-harness": "4.18.0",
31
- "@celljs/ta-protocol": "4.18.0",
32
- "@celljs/ta-web": "4.18.0",
30
+ "@celljs/ta-harness": "4.20.0",
31
+ "@celljs/ta-protocol": "4.20.0",
32
+ "@celljs/ta-web": "4.20.0",
33
33
  "@types/react": "^19.3.0"
34
34
  },
35
35
  "publishConfig": {
package/web/index.js CHANGED
@@ -863,6 +863,8 @@ class MarketStore {
863
863
  var TaAccessServer = Symbol("TaAccessServer");
864
864
  var TA_SIGN_IN_PATH = "/sign-in";
865
865
  var TA_DEVICE_SIGN_IN_PATH = `${TA_SIGN_IN_PATH}/device`;
866
+ // ../ta-protocol/esm/common/account-protocol.js
867
+ var TaAccountServer = Symbol("TaAccountServer");
866
868
  // ../ta-protocol/esm/common/ta-extension-host.js
867
869
  var TA_WEBHOOK_MAX_BYTES = 256 * 1024;
868
870
  var TA_HOST_EVENT = "ta:host";
@@ -915,6 +917,22 @@ var TaHostUtil;
915
917
  }
916
918
  TaHostUtil2.role = role;
917
919
  })(TaHostUtil || (TaHostUtil = {}));
920
+ var TA_DOUBLE_LOOK = {
921
+ name: "@celljs/ta-web",
922
+ key: "assistant.species",
923
+ given: ["trex", "triceratops", "stegosaurus", "brachiosaurus", "velociraptor", "ankylosaurus", "pteranodon", "parasaurolophus"]
924
+ };
925
+ var TaDoubleLookUtil;
926
+ (function(TaDoubleLookUtil2) {
927
+ function given(id) {
928
+ let hash = 2166136261;
929
+ for (let i = 0;i < id.length; i++) {
930
+ hash = Math.imul(hash ^ id.charCodeAt(i), 16777619);
931
+ }
932
+ return TA_DOUBLE_LOOK.given[(hash >>> 0) % TA_DOUBLE_LOOK.given.length];
933
+ }
934
+ TaDoubleLookUtil2.given = given;
935
+ })(TaDoubleLookUtil || (TaDoubleLookUtil = {}));
918
936
  var TA_ASK_ENTRY = "ta-ask";
919
937
  var TaAskUtil;
920
938
  (function(TaAskUtil2) {
@@ -2005,6 +2023,7 @@ var TaRelayServer = Symbol("TaRelayServer");
2005
2023
  var TaRemoteServer = Symbol("TaRemoteServer");
2006
2024
  // ../ta-protocol/esm/common/room-protocol.js
2007
2025
  var TaRoomServer = Symbol("TaRoomServer");
2026
+ var TA_PICTURE = { key: "picture:", maxChars: 16 * 1024 };
2008
2027
  var TaRoomWatchUtil;
2009
2028
  (function(TaRoomWatchUtil2) {
2010
2029
  function of(messages, state) {