@jsm-mit/tigi-sharded-package 0.1.0 → 0.2.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/dist/chat.js ADDED
@@ -0,0 +1,87 @@
1
+ // The chat with a driver (U-43, core.md C-15): one room per driver in chat-sharded, made by
2
+ // the core through the group's coordinator; the recipient is the owner of the driver
3
+ // canister, and every Tigi account may open a chat there. The fronts talk to the chat
4
+ // themselves with `@jsm-mit/chat-sharded-package` — this package only says WHERE.
5
+ import { Principal } from "@icp-sdk/core/principal";
6
+ import { transportAsync } from "./group/canister-actor.js";
7
+ import { TigiGroup } from "./group/group.js";
8
+ /** A room id of chat-sharded: at most 50 characters, never '/' or '|'. */
9
+ export const MAX_ROOM_ID_CHARS = 50;
10
+ export const DRIVER_ROOM_PREFIX = "drv-";
11
+ /** The chat config of the core is asked again after this long. */
12
+ export const CHAT_CONFIG_TTL_MS = 60_000;
13
+ /**
14
+ * C-15: the room of a driver — the core's `ChatRoomFunctions.driverRoomId`, the same rule:
15
+ * "drv-<canister>" for a canister with one driver (`driverKey` = ""),
16
+ * "drv-<canister>-<driverKey>" otherwise; undefined when longer than 50 characters or
17
+ * holding '/' or '|'. The core makes rooms for the canisters of its registry only (one
18
+ * driver each), so a simulated driver has no room (MVP).
19
+ */
20
+ export function driverRoomId(driverCanisterId, driverKey = "") {
21
+ const base = DRIVER_ROOM_PREFIX + driverCanisterId;
22
+ const id = driverKey === "" ? base : `${base}-${driverKey}`;
23
+ if (id.length > MAX_ROOM_ID_CHARS || id.includes("/") || id.includes("|"))
24
+ return undefined;
25
+ return id;
26
+ }
27
+ /**
28
+ * The chat of the environment as the core names it (`getChatConfig`), kept for
29
+ * `CHAT_CONFIG_TTL_MS` per group.
30
+ */
31
+ const configs = new WeakMap();
32
+ /** @internal */
33
+ export async function chatConfigOfAsyncUnsafe(group) {
34
+ const known = configs.get(group);
35
+ if (known && Date.now() - known.atMs < CHAT_CONFIG_TTL_MS)
36
+ return known.value;
37
+ const answer = await transportAsync(async () => (await group.coreAsync()).getChatConfig());
38
+ const config = answer[0];
39
+ const value = config === undefined ? undefined : { chatCoordinatorId: config.chatCoordinatorId.toText(), projectId: config.projectId };
40
+ configs.set(group, { atMs: Date.now(), value });
41
+ return value;
42
+ }
43
+ /** @internal — the place of a driver's room, or undefined (no chat here, no room for this driver). */
44
+ export async function driverChatPlaceAsyncUnsafe(group, driverCanisterId, driverKey) {
45
+ const roomId = driverRoomId(driverCanisterId, driverKey);
46
+ if (roomId === undefined || driverKey !== "")
47
+ return undefined;
48
+ const config = await chatConfigOfAsyncUnsafe(group);
49
+ if (config === undefined)
50
+ return undefined;
51
+ return { chatCoordinatorId: config.chatCoordinatorId, projectId: config.projectId, roomId };
52
+ }
53
+ /**
54
+ * The chat places of the group, for the fronts — the driver's front (its own room: the
55
+ * chats of its riders) and anybody that knows a driver canister. The rider's front takes
56
+ * the place of its ride from `RideRequest.getChatPlaceAsyncUnsafe` instead.
57
+ */
58
+ export class ChatPlacesActor {
59
+ group;
60
+ constructor(coordinatorId, identity, options = {}) {
61
+ this.group = TigiGroup.of(coordinatorId, identity, options);
62
+ }
63
+ /**
64
+ * The chat of this environment: the chat group's coordinator and the project.
65
+ * @returns undefined when the environment has no chat yet
66
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
67
+ */
68
+ async getChatConfigAsyncUnsafe() {
69
+ return chatConfigOfAsyncUnsafe(this.group);
70
+ }
71
+ /**
72
+ * FK-20: the room of a driver canister (one driver, `driverKey` = ""). The driver's front
73
+ * lists the chats of this room as their recipient and shows only the current rider's.
74
+ * @returns undefined when the environment has no chat yet or the driver has no room
75
+ * @throws Error with message `CanisterError` (errorKey `InvalidData`) — not a principal
76
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
77
+ */
78
+ async getDriverChatPlaceAsyncUnsafe(driverCanisterId, driverKey = "") {
79
+ try {
80
+ Principal.fromText(driverCanisterId);
81
+ }
82
+ catch {
83
+ throw new Error("CanisterError", { cause: { errorKey: "InvalidData", errorMessage: "not a canister id", logs: [] } });
84
+ }
85
+ return driverChatPlaceAsyncUnsafe(this.group, driverCanisterId, driverKey);
86
+ }
87
+ }
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { MAINNET_HOST, STOPPED_RETRY_ATTEMPTS, canisterError, errorKeyOf, isCani
2
2
  export { RidesActor, RideRequest, refusalKeyOf, REFRESH_WAIT_MS, REQUEST_POLL_MS, RIDE_POLL_MS, RIDE_POLL_NEAR_MS, SEARCH_RADIUS_METERS, WIDE_RADIUS_METERS, WIDEN_AFTER_MS, type RequestRideArgs, } from "./actors/rides-actor.js";
3
3
  export { ProfilesActor, RIDES_PAGE } from "./actors/profiles-actor.js";
4
4
  export { TestManagerActor, SIMULATED_DRIVERS } from "./actors/test-manager-actor.js";
5
+ export { ChatPlacesActor, CHAT_CONFIG_TTL_MS, DRIVER_ROOM_PREFIX, MAX_ROOM_ID_CHARS, driverRoomId } from "./chat.js";
5
6
  export { cellsWithin, decodeGeohashCenter, distanceMeters, encodeGeohash } from "./geo.js";
6
7
  export type * from "./interfaces.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,QAAQ,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,KAAK,eAAe,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3F,mBAAmB,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,QAAQ,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,KAAK,eAAe,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3F,mBAAmB,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -4,9 +4,12 @@
4
4
  //
5
5
  // The rider (night 1, step 7): `RidesActor` (a request in every worker in range, merged
6
6
  // offers, one choice at a time, the ride in the driver canister), `ProfilesActor` (the
7
- // account and the history in the core), `TestManagerActor` (simulated drivers, ×10).
7
+ // account, the rating and the history in the core), `TestManagerActor` (simulated drivers,
8
+ // ×10). The chat (U-43): `ChatPlacesActor` and `RideRequest.getChatPlaceAsyncUnsafe` say
9
+ // WHERE a driver's room is; the fronts use `@jsm-mit/chat-sharded-package` for the messages.
8
10
  export { MAINNET_HOST, STOPPED_RETRY_ATTEMPTS, canisterError, errorKeyOf, isCanisterStoppedError, retrySettings, } from "./group/canister-actor.js";
9
11
  export { RidesActor, RideRequest, refusalKeyOf, REFRESH_WAIT_MS, REQUEST_POLL_MS, RIDE_POLL_MS, RIDE_POLL_NEAR_MS, SEARCH_RADIUS_METERS, WIDE_RADIUS_METERS, WIDEN_AFTER_MS, } from "./actors/rides-actor.js";
10
12
  export { ProfilesActor, RIDES_PAGE } from "./actors/profiles-actor.js";
11
13
  export { TestManagerActor, SIMULATED_DRIVERS } from "./actors/test-manager-actor.js";
14
+ export { ChatPlacesActor, CHAT_CONFIG_TTL_MS, DRIVER_ROOM_PREFIX, MAX_ROOM_ID_CHARS, driverRoomId } from "./chat.js";
12
15
  export { cellsWithin, decodeGeohashCenter, distanceMeters, encodeGeohash } from "./geo.js";
@@ -146,4 +146,23 @@ export interface SpawnResult {
146
146
  registered: number;
147
147
  problems: string[];
148
148
  }
149
+ /** PF-4: the signed-in user's rating as a rider (C-16), from the core. */
150
+ export interface MyRatingView {
151
+ /** The average of the stars, e.g. 4.87 (show "★ 4,87"). */
152
+ average: number;
153
+ /** How many ratings. */
154
+ count: number;
155
+ sum: number;
156
+ }
157
+ /**
158
+ * U-43, C-15: where the chat with a driver is — what `@jsm-mit/chat-sharded-package` needs:
159
+ * `new ChatsActor(chatCoordinatorId, identity).openChatAsyncUnsafe({ projectId, roomId })`.
160
+ * One room per driver; its recipient is the driver (the owner of the driver canister).
161
+ */
162
+ export interface ChatPlace {
163
+ /** The chat group's coordinator (its address). */
164
+ chatCoordinatorId: string;
165
+ projectId: string;
166
+ roomId: string;
167
+ }
149
168
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,YAAY,EAAE,GAAG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AED,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IACzB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB,kDAAkD;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsm-mit/tigi-sharded-package",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "The one package of the Tigi network group: takes the coordinator's id and hides the coordinator, the core and the workers — for a consumer the group is one canister; plus the rider's few driver-canister endpoints (U-14).",
5
5
  "homepage": "https://github.com/JSM-Tigi/tigi-sharded/tree/master/package#readme",
6
6
  "repository": {
@@ -54,7 +54,7 @@
54
54
  "tigiSharded": {
55
55
  "repo": "tigi-sharded",
56
56
  "repoUrl": "https://github.com/JSM-Tigi/tigi-sharded",
57
- "commit": "c891268dc31d69e26e3c4235c12a77a71f90d95e"
57
+ "commit": "57f965916bd67e1de8b3e478b7244d8a4abfc18b"
58
58
  },
59
59
  "tigiDriverRust": {
60
60
  "repo": "tigi-driver-rust",