@voltro/plugin-leaderboards 0.87.0 → 0.88.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 (44) hide show
  1. package/CHANGELOG.md +169 -6
  2. package/THIRD-PARTY-NOTICES.md +647 -51
  3. package/dist/administration.js +1 -2
  4. package/dist/bracketAdmission.js +6 -7
  5. package/dist/bracketAdmissionPolicy.js +1 -2
  6. package/dist/bracketInstallation.js +3 -4
  7. package/dist/bracketMatchPorts.js +1 -2
  8. package/dist/bracketMatches.js +10 -11
  9. package/dist/brackets.js +1 -2
  10. package/dist/bucketStore.js +1 -2
  11. package/dist/buckets.js +1 -2
  12. package/dist/errors.js +1 -2
  13. package/dist/glicko2.js +1 -2
  14. package/dist/inspect.js +1 -2
  15. package/dist/json.js +1 -2
  16. package/dist/leaderboard.js +1 -2
  17. package/dist/leagueSchedule.js +1 -2
  18. package/dist/leagues.js +1 -2
  19. package/dist/openskill.js +1 -2
  20. package/dist/plugin.js +1 -2
  21. package/dist/portLifetime.js +3 -4
  22. package/dist/ports.js +1 -2
  23. package/dist/rankQuery.js +1 -2
  24. package/dist/ranking.js +1 -2
  25. package/dist/rating.js +1 -2
  26. package/dist/ratingPools.js +1 -2
  27. package/dist/ratingStore.js +1 -2
  28. package/dist/ratingStrategies.js +1 -2
  29. package/dist/records.js +1 -2
  30. package/dist/rpc.js +1 -2
  31. package/dist/score.js +1 -2
  32. package/dist/service.js +1 -2
  33. package/dist/subjectFences.js +1 -2
  34. package/dist/tables.entity.js +1 -2
  35. package/dist/testing.js +1 -2
  36. package/dist/tournamentInstallation.js +1 -2
  37. package/dist/tournamentPrizes.js +1 -2
  38. package/dist/tournamentStage.js +1 -2
  39. package/dist/tournamentStagePorts.js +1 -2
  40. package/dist/tournamentWorkflow.js +1 -2
  41. package/dist/tournamentWorkflowSchemas.js +1 -2
  42. package/dist/tournaments.js +1 -2
  43. package/dist/web.js +1 -2
  44. package/package.json +8 -8
@@ -6,7 +6,7 @@ import { assertPortBindingKeys as o, capturePortMethods as s, capturePortPrivacy
6
6
  import { Effect as m } from "effect";
7
7
  import { fileURLToPath as h } from "node:url";
8
8
  import { isAbsolute as g } from "node:path";
9
- //#region src/tournamentInstallation.ts
9
+ // src/tournamentInstallation.ts
10
10
  var _ = [
11
11
  "create",
12
12
  "report",
@@ -164,5 +164,4 @@ var _ = [
164
164
  })
165
165
  });
166
166
  };
167
- //#endregion
168
167
  export { y as makeTournamentInstallation };
@@ -2,7 +2,7 @@ import { leaderboardError as e } from "./errors.js";
2
2
  import { Effect as t } from "effect";
3
3
  import { systemSubject as n } from "@voltro/protocol";
4
4
  import { createHash as r } from "node:crypto";
5
- //#region src/tournamentPrizes.ts
5
+ // src/tournamentPrizes.ts
6
6
  var i = (r, i) => {
7
7
  if (!r || typeof r.inbox != "function" || !i || typeof i.templateId != "string" || !i.templateId || i.expiresInMs !== void 0 && (!Number.isSafeInteger(i.expiresInMs) || i.expiresInMs < 1)) throw e("invalid_input");
8
8
  let a = Object.freeze([...i.attachments ?? []].map((e) => Object.freeze({ ...e }))), o = i.now ?? Date.now, s = n("tournament-prizes");
@@ -30,5 +30,4 @@ var i = (r, i) => {
30
30
  expiresAt: null
31
31
  }), { discard: !0 })), t.mapError(() => e("unavailable")));
32
32
  };
33
- //#endregion
34
33
  export { a as tournamentInboxNotice, i as tournamentInboxPrize };
@@ -7,7 +7,7 @@ import { readBracketAdmissionWindow as l } from "./bracketAdmission.js";
7
7
  import { Effect as u, Layer as d, Schema as f } from "effect";
8
8
  import { Subject as p } from "@voltro/protocol";
9
9
  import { createHash as m } from "node:crypto";
10
- //#region src/tournamentStage.ts
10
+ // src/tournamentStage.ts
11
11
  var h = (e) => {
12
12
  if (!e || !Array.isArray(e.matches) || e.matches.length > 127 || new Set(e.matches.map((e) => e.id)).size !== e.matches.length) throw t("unavailable");
13
13
  for (let n of e.matches) if (!n || typeof n.id != "string" || !n.id.length || n.id.length > 120 || !Number.isSafeInteger(n.round) || n.round < 1 || n.round > 128 || ![
@@ -147,5 +147,4 @@ var h = (e) => {
147
147
  })
148
148
  });
149
149
  }, b = (e, t) => d.succeed(c, y(e, t));
150
- //#endregion
151
150
  export { y as dataStoreTournamentStages, g as myBracketMatches, v as resolveTournamentStageOptions, h as summarizeTournamentStatus, _ as tournamentBracketView, b as tournamentStageLayer };
@@ -1,5 +1,4 @@
1
1
  import { Context as e } from "effect";
2
- //#region src/tournamentStagePorts.ts
2
+ // src/tournamentStagePorts.ts
3
3
  var t = class extends e.Service()("@voltro/TournamentStagePort") {};
4
- //#endregion
5
4
  export { t as TournamentStagePort };
@@ -8,7 +8,7 @@ import { Effect as d, Schema as f } from "effect";
8
8
  import { Subject as p } from "@voltro/protocol";
9
9
  import { fileURLToPath as m } from "node:url";
10
10
  import { sleepUntil as h, step as g } from "@voltro/workflow";
11
- //#region src/tournamentWorkflow.ts
11
+ // src/tournamentWorkflow.ts
12
12
  var _ = m(new URL("./tournament-app", "" + import.meta.url)), v = (e) => (i) => {
13
13
  let a, o;
14
14
  try {
@@ -97,5 +97,4 @@ var _ = m(new URL("./tournament-app", "" + import.meta.url)), v = (e) => (i) =>
97
97
  catch: () => t("unavailable")
98
98
  })));
99
99
  });
100
- //#endregion
101
100
  export { _ as leaderboardsTournamentSources, x as reportTournamentResult, v as tournamentAdvanceExecutor, b as tournamentStageExecutor };
@@ -1,5 +1,5 @@
1
1
  import { Schema as e } from "effect";
2
- //#region src/tournamentWorkflowSchemas.ts
2
+ // src/tournamentWorkflowSchemas.ts
3
3
  var t = e.String.pipe(e.check(e.isMinLength(1)), e.check(e.isMaxLength(120)), e.check(e.makeFilter((e) => e.trim() === e && e.isWellFormed() && !/[\u0000-\u001f\u007f]/.test(e)))), n = e.Int.pipe(e.check(e.isBetween({
4
4
  minimum: 0,
5
5
  maximum: 864e13
@@ -50,5 +50,4 @@ var t = e.String.pipe(e.check(e.isMinLength(1)), e.check(e.isMaxLength(120)), e.
50
50
  maximum: 256
51
51
  })))
52
52
  }).pipe(e.check(e.makeFilter((e) => e.registrationOpensAt < e.registrationClosesAt && e.registrationClosesAt <= e.checkInOpensAt && e.checkInOpensAt < e.checkInClosesAt))), s = e.Struct({ notified: e.Boolean });
53
- //#endregion
54
53
  export { r as TournamentAdvancePayload, s as TournamentStageNotification, i as TournamentStagePayload, o as TournamentStageWindow, a as TournamentWorkflowSummary };
@@ -1,7 +1,7 @@
1
1
  import { leaderboardError as e } from "./errors.js";
2
2
  import { leaderboardIdentifier as t } from "./leaderboard.js";
3
3
  import { defineBracketAdmission as n } from "./bracketAdmissionPolicy.js";
4
- //#region src/tournaments.ts
4
+ // src/tournaments.ts
5
5
  var r = (n) => {
6
6
  let r = n?.attemptsPerEntry ?? 1, i = n?.joinRequired ?? !0;
7
7
  if (!n || !t(n.name) || !t(n.board) || !Number.isSafeInteger(n.startsAt) || n.startsAt < 0 || !Number.isSafeInteger(n.endsAt) || n.endsAt > 864e13 || n.endsAt <= n.startsAt || !Number.isSafeInteger(n.maxEntries) || n.maxEntries < 1 || n.maxEntries > 1e6 || !Number.isSafeInteger(r) || r < 1 || r > 2147483647 || typeof i != "boolean") throw e("invalid_input");
@@ -17,5 +17,4 @@ var r = (n) => {
17
17
  attemptsPerEntry: r
18
18
  });
19
19
  };
20
- //#endregion
21
20
  export { n as defineBracketAdmission, r as defineTournament };
package/dist/web.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { BASE_NAME as e } from "./rpc.js";
2
2
  import { pluginTag as t } from "@voltro/protocol";
3
3
  import { useAction as n, useSubscription as r } from "@voltro/client";
4
- //#region src/web.ts
4
+ // src/web.ts
5
5
  var i = (n, i = "app") => r(i, t(e, "myRating"), { pool: n }), a = (n, i = 10, a = "app", o = "global") => r(a, t(e, "top"), {
6
6
  board: n,
7
7
  limit: i,
@@ -13,5 +13,4 @@ var i = (n, i = "app") => r(i, t(e, "myRating"), { pool: n }), a = (n, i = 10, a
13
13
  board: n,
14
14
  limit: i
15
15
  }), l = (r = "app") => n(r, t(e, "joinTournament")), u = (n, i = "app") => r(i, t(e, "tournamentStatus"), { tournament: n }), d = (r = "app") => n(r, t(e, "registerBracket")), f = (r = "app") => n(r, t(e, "checkInBracket")), p = (n, i = "app") => r(i, t(e, "bracketStatus"), { tournamentId: n }), m = (r = "app") => n(r, t(e, "disputeBracket")), h = (n, i = "app") => r(i, t(e, "myBracketMatches"), { tournamentId: n }), g = (n, i = "app") => r(i, t(e, "bracketView"), { tournamentId: n });
16
- //#endregion
17
16
  export { p as useBracketAdmissionStatus, f as useCheckInBracket, m as useDisputeBracket, l as useJoinLeaderboardTournament, s as useLeaderboardAround, c as useLeaderboardHistory, o as useLeaderboardMe, a as useLeaderboardTop, u as useLeaderboardTournamentStatus, h as useMyBracketMatches, i as useMyLeaderboardRating, d as useRegisterBracket, g as useTournamentBracket };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-leaderboards",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Exact leaderboard score arithmetic, bounded snapshot ranking and pure rating foundations",
5
5
  "keywords": [
6
6
  "voltro",
@@ -98,15 +98,15 @@
98
98
  "node": ">=24.0.0"
99
99
  },
100
100
  "dependencies": {
101
- "@voltro/workflow": "0.87.0",
102
- "@voltro/database": "0.87.0",
103
- "@voltro/protocol": "0.87.0",
104
- "@voltro/client": "0.87.0",
105
- "@voltro/plugin-licensing": "0.87.0",
106
- "@voltro/runtime": "0.87.0"
101
+ "@voltro/workflow": "0.88.0",
102
+ "@voltro/database": "0.88.0",
103
+ "@voltro/protocol": "0.88.0",
104
+ "@voltro/client": "0.88.0",
105
+ "@voltro/plugin-licensing": "0.88.0",
106
+ "@voltro/runtime": "0.88.0"
107
107
  },
108
108
  "peerDependencies": {
109
- "effect": "4.0.1",
109
+ "effect": "4.1.0",
110
110
  "react": "^19.0.0"
111
111
  },
112
112
  "publishConfig": {