@celljs/ta-extensions 4.19.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.
- package/package.json +4 -4
- package/web/index.js +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-extensions",
|
|
3
|
-
"version": "4.
|
|
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.
|
|
31
|
-
"@celljs/ta-protocol": "4.
|
|
32
|
-
"@celljs/ta-web": "4.
|
|
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
|
@@ -917,6 +917,22 @@ var TaHostUtil;
|
|
|
917
917
|
}
|
|
918
918
|
TaHostUtil2.role = role;
|
|
919
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 = {}));
|
|
920
936
|
var TA_ASK_ENTRY = "ta-ask";
|
|
921
937
|
var TaAskUtil;
|
|
922
938
|
(function(TaAskUtil2) {
|
|
@@ -2007,6 +2023,7 @@ var TaRelayServer = Symbol("TaRelayServer");
|
|
|
2007
2023
|
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
2008
2024
|
// ../ta-protocol/esm/common/room-protocol.js
|
|
2009
2025
|
var TaRoomServer = Symbol("TaRoomServer");
|
|
2026
|
+
var TA_PICTURE = { key: "picture:", maxChars: 16 * 1024 };
|
|
2010
2027
|
var TaRoomWatchUtil;
|
|
2011
2028
|
(function(TaRoomWatchUtil2) {
|
|
2012
2029
|
function of(messages, state) {
|