@jsm-mit/tigi-sharded-package 0.20.0 → 0.21.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/declarations/worker/worker.did +2 -0
- package/declarations/worker/worker.did.d.ts +2 -0
- package/declarations/worker/worker.did.js +2 -0
- package/dist/actors/rides-actor.d.ts +17 -1
- package/dist/actors/rides-actor.d.ts.map +1 -1
- package/dist/actors/rides-actor.js +33 -8
- package/dist/actors/scheduled-ride.d.ts +2 -0
- package/dist/actors/scheduled-ride.d.ts.map +1 -1
- package/dist/actors/scheduled-ride.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -3
|
@@ -162,6 +162,7 @@ type ScheduledRideArgs =
|
|
|
162
162
|
record {
|
|
163
163
|
destination: Geo;
|
|
164
164
|
maxRadiusMeters: nat32;
|
|
165
|
+
onlyCanister: opt principal;
|
|
165
166
|
pickup: Geo;
|
|
166
167
|
pickupAtNs: nat64;
|
|
167
168
|
requestId: RequestId;
|
|
@@ -287,6 +288,7 @@ type RequestStateView =
|
|
|
287
288
|
type RequestRideArgs =
|
|
288
289
|
record {
|
|
289
290
|
destination: Geo;
|
|
291
|
+
onlyCanister: opt principal;
|
|
290
292
|
pickup: Geo;
|
|
291
293
|
radiusMeters: nat32;
|
|
292
294
|
realDriversOnly: opt bool;
|
|
@@ -248,6 +248,7 @@ export interface RequestRef { 'requestId' : RequestId }
|
|
|
248
248
|
export interface RequestRideArgs {
|
|
249
249
|
'destination' : Geo,
|
|
250
250
|
'requestId' : RequestId,
|
|
251
|
+
'onlyCanister' : [] | [Principal],
|
|
251
252
|
'realDriversOnly' : [] | [boolean],
|
|
252
253
|
'pickup' : Geo,
|
|
253
254
|
'radiusMeters' : number,
|
|
@@ -326,6 +327,7 @@ export interface RouteLine { 'ride' : string, 'toPickup' : string }
|
|
|
326
327
|
export interface ScheduledRideArgs {
|
|
327
328
|
'destination' : Geo,
|
|
328
329
|
'requestId' : RequestId,
|
|
330
|
+
'onlyCanister' : [] | [Principal],
|
|
329
331
|
'maxRadiusMeters' : number,
|
|
330
332
|
'pickup' : Geo,
|
|
331
333
|
'pickupAtNs' : bigint,
|
|
@@ -372,6 +372,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
372
372
|
const RequestRideArgs = IDL.Record({
|
|
373
373
|
'destination' : Geo,
|
|
374
374
|
'requestId' : RequestId,
|
|
375
|
+
'onlyCanister' : IDL.Opt(IDL.Principal),
|
|
375
376
|
'realDriversOnly' : IDL.Opt(IDL.Bool),
|
|
376
377
|
'pickup' : Geo,
|
|
377
378
|
'radiusMeters' : IDL.Nat32,
|
|
@@ -380,6 +381,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
380
381
|
const ScheduledRideArgs = IDL.Record({
|
|
381
382
|
'destination' : Geo,
|
|
382
383
|
'requestId' : RequestId,
|
|
384
|
+
'onlyCanister' : IDL.Opt(IDL.Principal),
|
|
383
385
|
'maxRadiusMeters' : IDL.Nat32,
|
|
384
386
|
'pickup' : Geo,
|
|
385
387
|
'pickupAtNs' : IDL.Nat64,
|
|
@@ -7,6 +7,12 @@ import { ScheduledRide } from "./scheduled-ride.js";
|
|
|
7
7
|
/** U-29: the rider's radius, and the radius after `WIDEN_AFTER_MS` without offers. */
|
|
8
8
|
export declare const SEARCH_RADIUS_METERS = 3000;
|
|
9
9
|
export declare const WIDE_RADIUS_METERS = 6000;
|
|
10
|
+
/**
|
|
11
|
+
* ZO-27 (own site, stage 7, user 2026-11-18): a request narrowed to one driver canister starts
|
|
12
|
+
* at 6 km and widens to 15 km — a company has few drivers.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ONLY_SEARCH_RADIUS_METERS = 6000;
|
|
15
|
+
export declare const ONLY_WIDE_RADIUS_METERS = 15000;
|
|
10
16
|
/** ZO-8: no offer from any worker this long after the request → 6 km. */
|
|
11
17
|
export declare const WIDEN_AFTER_MS = 25000;
|
|
12
18
|
/** ZO-11: the rhythm a front polls `getAsyncUnsafe` in while the request is open. */
|
|
@@ -33,6 +39,8 @@ interface RequestState {
|
|
|
33
39
|
sawOffer: boolean;
|
|
34
40
|
/** ZO-23: kept for the widening and "Szukaj ponownie". */
|
|
35
41
|
realDriversOnly?: boolean;
|
|
42
|
+
/** ZO-27: kept for the widening, the resumed request and "Szukaj ponownie". */
|
|
43
|
+
driverCanister?: string;
|
|
36
44
|
accepted?: {
|
|
37
45
|
worker: string;
|
|
38
46
|
canister: string;
|
|
@@ -51,7 +59,14 @@ export interface RequestRideArgs {
|
|
|
51
59
|
* canisters (the Test Manager's switch). Left out = everyone, as before.
|
|
52
60
|
*/
|
|
53
61
|
realDriversOnly?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* ZO-27 (own site, stage 7): only this driver canister's drivers are asked (a company's page
|
|
64
|
+
* frames the order). Left out = every driver. A filter, not a protection.
|
|
65
|
+
*/
|
|
66
|
+
driverCanister?: string;
|
|
54
67
|
}
|
|
68
|
+
/** ZO-27: a driver canister id checked before any call. */
|
|
69
|
+
export declare function checkedDriverCanister(id: string | undefined): string | undefined;
|
|
55
70
|
/**
|
|
56
71
|
* The refusal key of a worker's answer (WO-N9): `ALREADY_OPEN`, `NOT_MY_AREA`, `FULL`,
|
|
57
72
|
* `CLOSED`, `ORDERING`, `DRIVER_NOT_FREE`, `NOT_COMPLETED`, `EXPIRED`, `BLOCKED`; undefined
|
|
@@ -93,6 +108,7 @@ export declare class RidesActor {
|
|
|
93
108
|
destination: Geo;
|
|
94
109
|
pickupAtMs: number;
|
|
95
110
|
riderName?: string;
|
|
111
|
+
driverCanister?: string;
|
|
96
112
|
}): Promise<ScheduledRide>;
|
|
97
113
|
/**
|
|
98
114
|
* A ride at a chosen time again from its token (`ScheduledRide.token`).
|
|
@@ -287,7 +303,7 @@ export declare class RideRequest {
|
|
|
287
303
|
private mergeAsync;
|
|
288
304
|
/** ZO-15: the other workers close their copy (`otherOfferChosen`); tried again on the next poll if one fails. */
|
|
289
305
|
private closeOthersAsync;
|
|
290
|
-
/** ZO-8: 6 km in the workers of the new cells and in the old ones (the same `requestId`). */
|
|
306
|
+
/** ZO-8: 6 km (ZO-27 narrowed: 15 km) in the workers of the new cells and in the old ones (the same `requestId`). */
|
|
291
307
|
private widenAsync;
|
|
292
308
|
private onOfferAsyncUnsafe;
|
|
293
309
|
private acceptedAsyncUnsafe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rides-actor.d.ts","sourceRoot":"","sources":["../../src/actors/rides-actor.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,EAAgJ,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC7M,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAA2B,KAAK,GAAG,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAa,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEpJ,OAAO,EAAE,aAAa,EAAkH,MAAM,qBAAqB,CAAC;AAGpK,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAC1C,eAAO,MAAM,kBAAkB,OAAQ,CAAC;AACxC,yEAAyE;AACzE,eAAO,MAAM,cAAc,QAAS,CAAC;AACrC,qFAAqF;AACrF,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAS,CAAC;AACtC,+GAA+G;AAC/G,eAAO,MAAM,YAAY,OAAQ,CAAC;AAClC,eAAO,MAAM,iBAAiB,OAAQ,CAAC;AAEvC,wFAAwF;AACxF,UAAU,YAAY;IAClB,CAAC,EAAE,CAAC,CAAC;IACL,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,G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/** U-29: the rider's radius, and the radius after `WIDEN_AFTER_MS` without offers. */
|
|
17
17
|
export const SEARCH_RADIUS_METERS = 3_000;
|
|
18
18
|
export const WIDE_RADIUS_METERS = 6_000;
|
|
19
|
+
/**
|
|
20
|
+
* ZO-27 (own site, stage 7, user 2026-11-18): a request narrowed to one driver canister starts
|
|
21
|
+
* at 6 km and widens to 15 km — a company has few drivers.
|
|
22
|
+
*/
|
|
23
|
+
export const ONLY_SEARCH_RADIUS_METERS = 6_000;
|
|
24
|
+
export const ONLY_WIDE_RADIUS_METERS = 15_000;
|
|
19
25
|
/** ZO-8: no offer from any worker this long after the request → 6 km. */
|
|
20
26
|
export const WIDEN_AFTER_MS = 25_000;
|
|
21
27
|
/** ZO-11: the rhythm a front polls `getAsyncUnsafe` in while the request is open. */
|
|
@@ -28,6 +34,21 @@ export const REFRESH_WAIT_MS = 25_000;
|
|
|
28
34
|
/** K-3, PR-21: the rhythm of `getRideAsyncUnsafe`; `RIDE_POLL_NEAR_MS` when the driver is under 2 min away. */
|
|
29
35
|
export const RIDE_POLL_MS = 2_000;
|
|
30
36
|
export const RIDE_POLL_NEAR_MS = 1_000;
|
|
37
|
+
/** ZO-27: the first and the widened radius of a request. */
|
|
38
|
+
function radiiOf(state) {
|
|
39
|
+
return state.driverCanister === undefined ? { start: SEARCH_RADIUS_METERS, wide: WIDE_RADIUS_METERS } : { start: ONLY_SEARCH_RADIUS_METERS, wide: ONLY_WIDE_RADIUS_METERS };
|
|
40
|
+
}
|
|
41
|
+
/** ZO-27: a driver canister id checked before any call. */
|
|
42
|
+
export function checkedDriverCanister(id) {
|
|
43
|
+
if (id === undefined)
|
|
44
|
+
return undefined;
|
|
45
|
+
try {
|
|
46
|
+
return Principal.fromText(id).toText();
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
throw canisterError("InvalidData", "driverCanister: not a canister id");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
31
52
|
/**
|
|
32
53
|
* The refusal key of a worker's answer (WO-N9): `ALREADY_OPEN`, `NOT_MY_AREA`, `FULL`,
|
|
33
54
|
* `CLOSED`, `ORDERING`, `DRIVER_NOT_FREE`, `NOT_COMPLETED`, `EXPIRED`, `BLOCKED`; undefined
|
|
@@ -78,6 +99,7 @@ export class RidesActor {
|
|
|
78
99
|
async requestRideAsyncUnsafe(args) {
|
|
79
100
|
if (!isValidGeo(args.pickup) || !isValidGeo(args.destination))
|
|
80
101
|
throw canisterError("InvalidData", "pickup / destination out of range");
|
|
102
|
+
const driverCanister = checkedDriverCanister(args.driverCanister);
|
|
81
103
|
const riderName = args.riderName ?? (await this.riderNameAsyncUnsafe());
|
|
82
104
|
const state = {
|
|
83
105
|
v: 1,
|
|
@@ -91,9 +113,10 @@ export class RidesActor {
|
|
|
91
113
|
othersClosed: false,
|
|
92
114
|
sawOffer: false,
|
|
93
115
|
...(args.realDriversOnly ? { realDriversOnly: true } : {}),
|
|
116
|
+
...(driverCanister !== undefined ? { driverCanister } : {}),
|
|
94
117
|
};
|
|
95
118
|
const request = new RideRequest(this.group, this.identity, this.options, state, () => this.simulatorIdAsync());
|
|
96
|
-
await request.placeAsyncUnsafe(
|
|
119
|
+
await request.placeAsyncUnsafe(radiiOf(state).start);
|
|
97
120
|
return request;
|
|
98
121
|
}
|
|
99
122
|
/**
|
|
@@ -111,8 +134,9 @@ export class RidesActor {
|
|
|
111
134
|
throw canisterError("InvalidData", "TOO_SOON: at least 1 h ahead");
|
|
112
135
|
if (ahead > SCHEDULED_MAX_AHEAD_MS)
|
|
113
136
|
throw canisterError("InvalidData", "TOO_FAR: at most 7 days ahead");
|
|
137
|
+
const driverCanister = checkedDriverCanister(args.driverCanister);
|
|
114
138
|
const riderName = args.riderName ?? (await this.riderNameAsyncUnsafe());
|
|
115
|
-
const state = { v: 1, kind: "scheduled", requestId: globalThis.crypto.randomUUID(), pickup: args.pickup, destination: args.destination, riderName, pickupAtMs: args.pickupAtMs, workers: [] };
|
|
139
|
+
const state = { v: 1, kind: "scheduled", requestId: globalThis.crypto.randomUUID(), pickup: args.pickup, destination: args.destination, riderName, pickupAtMs: args.pickupAtMs, workers: [], ...(driverCanister !== undefined ? { driverCanister } : {}) };
|
|
116
140
|
const ride = this.scheduledOf(state);
|
|
117
141
|
await ride.placeAsyncUnsafe(await workersForAsync(this.group, args.pickup, SCHEDULED_RADIUS_METERS, false));
|
|
118
142
|
return ride;
|
|
@@ -236,7 +260,7 @@ export class RideRequest {
|
|
|
236
260
|
const workers = (await workersForAsync(this.group, this.state.pickup, radiusMeters, fresh)).filter((worker) => !tried.has(worker));
|
|
237
261
|
const results = await Promise.allSettled(workers.map(async (worker) => {
|
|
238
262
|
tried.add(worker);
|
|
239
|
-
await this.group.onWorkerAsyncUnsafe(worker, (actor) => actor.requestRide({ requestId: this.state.requestId, pickup: this.state.pickup, destination: this.state.destination, riderName: this.state.riderName, radiusMeters, realDriversOnly: this.state.realDriversOnly ? [true] : [] }));
|
|
263
|
+
await this.group.onWorkerAsyncUnsafe(worker, (actor) => actor.requestRide({ requestId: this.state.requestId, pickup: this.state.pickup, destination: this.state.destination, riderName: this.state.riderName, radiusMeters, realDriversOnly: this.state.realDriversOnly ? [true] : [], onlyCanister: this.state.driverCanister !== undefined ? [Principal.fromText(this.state.driverCanister)] : [] }));
|
|
240
264
|
return worker;
|
|
241
265
|
}));
|
|
242
266
|
let staleMap = false;
|
|
@@ -261,7 +285,7 @@ export class RideRequest {
|
|
|
261
285
|
// ZO-2, ZO-N9: one open request per rider across the workers — a worker that already
|
|
262
286
|
// holds another one refuses; the fresh copies are closed again.
|
|
263
287
|
const blocking = errors.find((error) => refusalKeyOf(error) === "ALREADY_OPEN" || refusalKeyOf(error) === "BLOCKED");
|
|
264
|
-
if (blocking !== undefined && radiusMeters ===
|
|
288
|
+
if (blocking !== undefined && radiusMeters === radiiOf(this.state).start) {
|
|
265
289
|
await Promise.allSettled(placed.map((worker) => this.group.onWorkerAsyncUnsafe(worker, (actor) => actor.giveUp({ requestId: this.state.requestId }))));
|
|
266
290
|
throw blocking;
|
|
267
291
|
}
|
|
@@ -290,7 +314,7 @@ export class RideRequest {
|
|
|
290
314
|
if (snapshot.phase === "searching" && !this.state.widened && !this.state.sawOffer && Date.now() - this.state.createdMs >= WIDEN_AFTER_MS) {
|
|
291
315
|
await this.widenAsync();
|
|
292
316
|
snapshot.widened = true;
|
|
293
|
-
snapshot.radiusMeters =
|
|
317
|
+
snapshot.radiusMeters = radiiOf(this.state).wide;
|
|
294
318
|
}
|
|
295
319
|
this.lastSnapshot = snapshot;
|
|
296
320
|
return snapshot;
|
|
@@ -434,9 +458,10 @@ export class RideRequest {
|
|
|
434
458
|
othersClosed: false,
|
|
435
459
|
sawOffer: false,
|
|
436
460
|
...(this.state.realDriversOnly ? { realDriversOnly: true } : {}),
|
|
461
|
+
...(this.state.driverCanister !== undefined ? { driverCanister: this.state.driverCanister } : {}),
|
|
437
462
|
};
|
|
438
463
|
const request = new RideRequest(this.group, this.identity, this.options, state, this.simulatorIdAsync);
|
|
439
|
-
await request.placeAsyncUnsafe(
|
|
464
|
+
await request.placeAsyncUnsafe(radiiOf(state).start);
|
|
440
465
|
return request;
|
|
441
466
|
}
|
|
442
467
|
/**
|
|
@@ -659,11 +684,11 @@ export class RideRequest {
|
|
|
659
684
|
const results = await Promise.allSettled(others.map((worker) => this.group.onWorkerAsyncUnsafe(worker, (actor) => actor.closeRequest({ requestId: this.state.requestId, reason: { otherOfferChosen: null } }))));
|
|
660
685
|
this.state.othersClosed = results.every((result) => result.status === "fulfilled");
|
|
661
686
|
}
|
|
662
|
-
/** ZO-8: 6 km in the workers of the new cells and in the old ones (the same `requestId`). */
|
|
687
|
+
/** ZO-8: 6 km (ZO-27 narrowed: 15 km) in the workers of the new cells and in the old ones (the same `requestId`). */
|
|
663
688
|
async widenAsync() {
|
|
664
689
|
this.state.widened = true;
|
|
665
690
|
try {
|
|
666
|
-
await this.placeAsyncUnsafe(
|
|
691
|
+
await this.placeAsyncUnsafe(radiiOf(this.state).wide);
|
|
667
692
|
}
|
|
668
693
|
catch {
|
|
669
694
|
// The 3 km request still stands; the next poll shows what there is.
|
|
@@ -21,6 +21,8 @@ export interface ScheduledState {
|
|
|
21
21
|
pickupAtMs: number;
|
|
22
22
|
workers: string[];
|
|
23
23
|
othersClosed?: boolean;
|
|
24
|
+
/** ZT-23 (own site, stage 7): only this driver canister's bases are asked. */
|
|
25
|
+
driverCanister?: string;
|
|
24
26
|
}
|
|
25
27
|
/** ZT-12: one offer for a ride at a chosen time (no pin: the base is never shown, ZT-1). */
|
|
26
28
|
export interface ScheduledOfferView {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-ride.d.ts","sourceRoot":"","sources":["../../src/actors/scheduled-ride.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG7E,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAC9C,+CAA+C;AAC/C,eAAO,MAAM,sBAAsB,QAAc,CAAC;AAClD,eAAO,MAAM,sBAAsB,QAAuB,CAAC;AAC3D,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,QAAc,CAAC;AAC5C,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,OAAQ,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC3B,CAAC,EAAE,CAAC,CAAC;IACL,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC;IACZ,WAAW,EAAE,GAAG,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAA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AE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM;IAGpL,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,MAAM,IAAI,GAAG,CAEvB;IAED,IAAW,WAAW,IAAI,GAAG,CAE5B;IAED,8FAA8F;IAC9F,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,kGAAkG;IACrF,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B/D;;;;OAIG;IACU,cAAc,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAqEzD;;;;OAIG;IACU,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IASvE,4BAA4B;IACf,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9D,kFAAkF;IACrE,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;CAKlD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAI9D"}
|
|
@@ -57,6 +57,7 @@ export class ScheduledRide {
|
|
|
57
57
|
riderName: this.state.riderName,
|
|
58
58
|
pickupAtNs: BigInt(this.state.pickupAtMs) * 1000000n,
|
|
59
59
|
maxRadiusMeters: SCHEDULED_RADIUS_METERS,
|
|
60
|
+
onlyCanister: this.state.driverCanister !== undefined ? [Principal.fromText(this.state.driverCanister)] : [],
|
|
60
61
|
}));
|
|
61
62
|
return worker;
|
|
62
63
|
}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MAINNET_HOST, STOPPED_RETRY_ATTEMPTS, canisterError, errorKeyOf, isCanisterStoppedError, isMethodMissingError, retrySettings, type GroupOptions, type LogEntry, } from "./group/canister-actor.js";
|
|
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";
|
|
2
|
+
export { RidesActor, RideRequest, refusalKeyOf, REFRESH_WAIT_MS, REQUEST_POLL_MS, RIDE_POLL_MS, RIDE_POLL_NEAR_MS, SEARCH_RADIUS_METERS, WIDE_RADIUS_METERS, ONLY_SEARCH_RADIUS_METERS, ONLY_WIDE_RADIUS_METERS, checkedDriverCanister, WIDEN_AFTER_MS, type RequestRideArgs, } from "./actors/rides-actor.js";
|
|
3
3
|
export { ScheduledRide, RESCUE_BEFORE_MS, SCHEDULED_MAX_AHEAD_MS, SCHEDULED_MIN_AHEAD_MS, SCHEDULED_POLL_MS, SCHEDULED_RADIUS_METERS, type ScheduledOfferView, type ScheduledPhase, type ScheduledSnapshot, } from "./actors/scheduled-ride.js";
|
|
4
4
|
export { ProfilesActor, RIDES_PAGE } from "./actors/profiles-actor.js";
|
|
5
5
|
export { TestManagerActor, SIMULATED_DRIVERS } from "./actors/test-manager-actor.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,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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B,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAClJ,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,mBAAmB,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// The driver's own canister (U-45): `DriverCanistersActor` (the demo lease, its extension,
|
|
11
11
|
// "mine", the one-time claim code and the claim from the canister's own front).
|
|
12
12
|
export { MAINNET_HOST, STOPPED_RETRY_ATTEMPTS, canisterError, errorKeyOf, isCanisterStoppedError, isMethodMissingError, retrySettings, } from "./group/canister-actor.js";
|
|
13
|
-
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";
|
|
13
|
+
export { RidesActor, RideRequest, refusalKeyOf, REFRESH_WAIT_MS, REQUEST_POLL_MS, RIDE_POLL_MS, RIDE_POLL_NEAR_MS, SEARCH_RADIUS_METERS, WIDE_RADIUS_METERS, ONLY_SEARCH_RADIUS_METERS, ONLY_WIDE_RADIUS_METERS, checkedDriverCanister, WIDEN_AFTER_MS, } from "./actors/rides-actor.js";
|
|
14
14
|
export { ScheduledRide, RESCUE_BEFORE_MS, SCHEDULED_MAX_AHEAD_MS, SCHEDULED_MIN_AHEAD_MS, SCHEDULED_POLL_MS, SCHEDULED_RADIUS_METERS, } from "./actors/scheduled-ride.js";
|
|
15
15
|
export { ProfilesActor, RIDES_PAGE } from "./actors/profiles-actor.js";
|
|
16
16
|
export { TestManagerActor, SIMULATED_DRIVERS } from "./actors/test-manager-actor.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsm-mit/tigi-sharded-package",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.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": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"test-split": "bash scripts/run-tests-local.sh tests/test-split.ts",
|
|
41
41
|
"test-claim": "bash scripts/run-tests-local.sh tests/test-claim.ts",
|
|
42
42
|
"test-scheduled": "bash scripts/run-tests-local.sh tests/test-scheduled.ts",
|
|
43
|
+
"test-only-canister": "bash scripts/run-tests-local.sh tests/test-only-canister.ts",
|
|
43
44
|
"test-finishing": "bash scripts/run-tests-local.sh tests/test-finishing.ts",
|
|
44
45
|
"test-route-line": "bash scripts/run-tests-local.sh tests/test-route-line.ts",
|
|
45
46
|
"test-ride-history": "bash scripts/run-tests-local.sh tests/test-ride-history.ts",
|
|
@@ -61,11 +62,11 @@
|
|
|
61
62
|
"tigiSharded": {
|
|
62
63
|
"repo": "tigi-sharded",
|
|
63
64
|
"repoUrl": "https://github.com/JSM-Tigi/tigi-sharded",
|
|
64
|
-
"commit": "
|
|
65
|
+
"commit": "58883799d2a99a518856833720534b33e9b39334"
|
|
65
66
|
},
|
|
66
67
|
"tigiDriverRust": {
|
|
67
68
|
"repo": "tigi-driver-rust",
|
|
68
69
|
"repoUrl": "https://github.com/JSM-Tigi/tigi-driver-rust",
|
|
69
|
-
"commit": "
|
|
70
|
+
"commit": "6374cc6a4c2ff4f200ca2da389e1685c62eac31d"
|
|
70
71
|
}
|
|
71
72
|
}
|