@celljs/ta-rooms 4.24.0 → 4.25.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-rooms",
3
- "version": "4.24.0",
3
+ "version": "4.25.0",
4
4
  "description": "A pi package for Ta: rooms shared with other Ta through the relay, end to end: who asks to join and the owner's answer, your rooms and their members, your Ta friends, and links that invite",
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-protocol": "4.24.0",
31
- "@celljs/ta-relay": "4.24.0",
32
- "@celljs/ta-web": "4.24.0",
30
+ "@celljs/ta-protocol": "4.25.0",
31
+ "@celljs/ta-relay": "4.25.0",
32
+ "@celljs/ta-web": "4.25.0",
33
33
  "@types/react": "^19.3.0"
34
34
  },
35
35
  "publishConfig": {
package/web/index.js CHANGED
@@ -62,6 +62,8 @@ var RelayCloseCode;
62
62
  RelayCloseCode2[RelayCloseCode2["CLOSED_BY_HOST"] = 4410] = "CLOSED_BY_HOST";
63
63
  RelayCloseCode2[RelayCloseCode2["FULL"] = 4429] = "FULL";
64
64
  RelayCloseCode2[RelayCloseCode2["TIMEOUT"] = 4408] = "TIMEOUT";
65
+ RelayCloseCode2[RelayCloseCode2["BLOCKED"] = 4451] = "BLOCKED";
66
+ RelayCloseCode2[RelayCloseCode2["SIGN_IN"] = 4452] = "SIGN_IN";
65
67
  })(RelayCloseCode || (RelayCloseCode = {}));
66
68
  var RELAY_ROOM_PATH = "/r";
67
69
  var RELAY_HUB_MAX_VALUE = 96 * 1024;
@@ -350,7 +352,7 @@ var RelayHubUtil;
350
352
  return (_a2 = fragment.get(name)) !== null && _a2 !== undefined ? _a2 : "";
351
353
  });
352
354
  if (!/^https?:$/.test(url.protocol) || url.pathname !== RELAY_ROOM_PATH || fragment.get("v") !== "1" || !RELAY_ID.test(room) || !/^[A-Za-z0-9_-]{43}$/.test(invite) || !/^[A-Za-z0-9_-]{22}$/.test(owner)) {
353
- throw new Error("Not a link inviting into a room of Ta.");
355
+ throw new Error("Not a link inviting into a group chat of Ta.");
354
356
  }
355
357
  const kind = (_a = fragment.get("c")) !== null && _a !== undefined ? _a : "";
356
358
  return {
@@ -667,6 +669,10 @@ var RoomAppUtil;
667
669
  return text.replace(/</g, "&lt;").replace(/>/g, "&gt;");
668
670
  }
669
671
  RoomAppUtil2.quote = quote;
672
+ function shown(text) {
673
+ return quote(text).replace(/!\[/g, "!\\[");
674
+ }
675
+ RoomAppUtil2.shown = shown;
670
676
  function fresh(lines, self, since, now, staleMs = ROOM_APP_STALE_MS) {
671
677
  return lines.filter((line) => {
672
678
  var _a;
@@ -1262,7 +1268,7 @@ var EN = {
1262
1268
  friendAdding: "Waiting for them to agree",
1263
1269
  removeFriend: "Remove",
1264
1270
  removeFriendTitle: "Remove {name} from your friends?",
1265
- removeFriendHint: "You are no longer friends on both sides: neither sees the other’s posts, nor what is shared with friends. The rooms you share stay as they are.",
1271
+ removeFriendHint: "You are no longer friends on both sides: neither sees the other’s posts, nor what is shared with friends. The group chats you share stay as they are.",
1266
1272
  addFriend: "Add friend",
1267
1273
  addFriendExpires: "Works for {days} more days",
1268
1274
  addFriendAction: "Add as friend",
@@ -2307,7 +2313,7 @@ function useRoomApps(room) {
2307
2313
  try {
2308
2314
  return read();
2309
2315
  } catch (error) {
2310
- console.error("An app of the rooms failed:", error);
2316
+ console.error("An app of the group chats failed:", error);
2311
2317
  return;
2312
2318
  }
2313
2319
  };
@@ -2643,10 +2649,10 @@ var EN2 = {
2643
2649
  mentionLabel: "Ask a double",
2644
2650
  mentionDetail: "Ask their double",
2645
2651
  answersHere: "Your double answers here",
2646
- answersHint: "When someone asks it with @, your double answers in this room. It only chats and reads the room, unless you let it do more for someone.",
2652
+ answersHint: "When someone asks it with @, your double answers in this group chat. It only chats and reads the group chat, unless you let it do more for someone.",
2647
2653
  permissions: "Let the double work for them",
2648
2654
  grantTitle: "Let your double work for {name}",
2649
- grantLead: "When {name} asks your double in a room, it may also do this on your computer:",
2655
+ grantLead: "When {name} asks your double in a group chat, it may also do this on your computer:",
2650
2656
  files: "Read and change files",
2651
2657
  filesHint: "Only inside the directory below.",
2652
2658
  commands: "Run commands",
@@ -2682,7 +2688,7 @@ var EN2 = {
2682
2688
  stop: "Stop",
2683
2689
  logTitle: "What your double did",
2684
2690
  logEmpty: "Nothing yet",
2685
- logEmptyHint: "What your double does for others in rooms is listed here",
2691
+ logEmptyHint: "What your double does for others in group chats is listed here",
2686
2692
  asked: "{name} asked",
2687
2693
  answered: "Answered",
2688
2694
  failed: "Failed",
@@ -2693,25 +2699,25 @@ var EN2 = {
2693
2699
  noGrants: "Your double only chats for others",
2694
2700
  log: "What your double did",
2695
2701
  noPermission: "Not yet set",
2696
- oldServer: "Update Ta on the computer to use doubles in rooms.",
2702
+ oldServer: "Update Ta on the computer to use doubles in group chats.",
2697
2703
  agentTag: "Agent",
2698
2704
  myAgent: "Your agent",
2699
2705
  agentOf: "{name}'s agent",
2700
2706
  agentsTitle: "Agents",
2701
2707
  inviteAgent: "Invite an agent",
2702
- inviteAgentLine: "One of your agents helps in the room",
2708
+ inviteAgentLine: "One of your agents helps in the group chat",
2703
2709
  pickAgentTitle: "Invite an agent to “{title}”",
2704
- pickAgentLead: "Anyone in the room asks it with @. When you ask, it works for you as usual, with its tools in its directory; when others ask, it only chats, as your double, unless you let it do more for them.",
2710
+ pickAgentLead: "Anyone in the group chat asks it with @. When you ask, it works for you as usual, with its tools in its directory; when others ask, it only chats, as your double, unless you let it do more for them.",
2705
2711
  noAgents: "No agents yet",
2706
2712
  noAgentsHint: "Make one in the side bar of your double first.",
2707
- inRoom: "In the room",
2713
+ inRoom: "In the group chat",
2708
2714
  joining: "Joining…",
2709
- joiningRoom: "{name} is joining the room…",
2715
+ joiningRoom: "{name} is joining the group chat…",
2710
2716
  inviteFailed: "Could not invite {name}: {error}",
2711
2717
  dismiss: "Ask to leave",
2712
2718
  dismissTitle: "Ask {name} to leave “{title}”?",
2713
- dismissHint: "It says goodbye in the room and answers nothing there any more.",
2714
- tryAlone: "Invite one of your agents: you can try the room on your own.",
2719
+ dismissHint: "It says goodbye in the group chat and answers nothing there any more.",
2720
+ tryAlone: "Invite one of your agents: you can try the group chat on your own.",
2715
2721
  agentAsked: "{name} asked {agent}",
2716
2722
  taskTag: "Task",
2717
2723
  taskSent: "Handed",
@@ -2728,9 +2734,9 @@ var EN2 = {
2728
2734
  taskWaitsFor: "Waiting for {name} to allow it",
2729
2735
  stopTask: "Stop the task",
2730
2736
  cancelTask: "Call it off",
2731
- openTaskRoom: "Open the room",
2737
+ openTaskRoom: "Open the group chat",
2732
2738
  forgetTask: "Delete",
2733
- forgetTaskHint: "Only the entry goes: what was said in the room stays.",
2739
+ forgetTaskHint: "Only the entry goes: what was said in the group chat stays.",
2734
2740
  taskResult: "A task for {name}'s double",
2735
2741
  taskLog: "{name} handed a task"
2736
2742
  };