@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.
- package/CHANGELOG.md +169 -6
- package/THIRD-PARTY-NOTICES.md +647 -51
- package/dist/administration.js +1 -2
- package/dist/bracketAdmission.js +6 -7
- package/dist/bracketAdmissionPolicy.js +1 -2
- package/dist/bracketInstallation.js +3 -4
- package/dist/bracketMatchPorts.js +1 -2
- package/dist/bracketMatches.js +10 -11
- package/dist/brackets.js +1 -2
- package/dist/bucketStore.js +1 -2
- package/dist/buckets.js +1 -2
- package/dist/errors.js +1 -2
- package/dist/glicko2.js +1 -2
- package/dist/inspect.js +1 -2
- package/dist/json.js +1 -2
- package/dist/leaderboard.js +1 -2
- package/dist/leagueSchedule.js +1 -2
- package/dist/leagues.js +1 -2
- package/dist/openskill.js +1 -2
- package/dist/plugin.js +1 -2
- package/dist/portLifetime.js +3 -4
- package/dist/ports.js +1 -2
- package/dist/rankQuery.js +1 -2
- package/dist/ranking.js +1 -2
- package/dist/rating.js +1 -2
- package/dist/ratingPools.js +1 -2
- package/dist/ratingStore.js +1 -2
- package/dist/ratingStrategies.js +1 -2
- package/dist/records.js +1 -2
- package/dist/rpc.js +1 -2
- package/dist/score.js +1 -2
- package/dist/service.js +1 -2
- package/dist/subjectFences.js +1 -2
- package/dist/tables.entity.js +1 -2
- package/dist/testing.js +1 -2
- package/dist/tournamentInstallation.js +1 -2
- package/dist/tournamentPrizes.js +1 -2
- package/dist/tournamentStage.js +1 -2
- package/dist/tournamentStagePorts.js +1 -2
- package/dist/tournamentWorkflow.js +1 -2
- package/dist/tournamentWorkflowSchemas.js +1 -2
- package/dist/tournaments.js +1 -2
- package/dist/web.js +1 -2
- 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
|
-
|
|
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 };
|
package/dist/tournamentPrizes.js
CHANGED
|
@@ -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
|
-
|
|
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 };
|
package/dist/tournamentStage.js
CHANGED
|
@@ -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
|
-
|
|
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 };
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/tournaments.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
102
|
-
"@voltro/database": "0.
|
|
103
|
-
"@voltro/protocol": "0.
|
|
104
|
-
"@voltro/client": "0.
|
|
105
|
-
"@voltro/plugin-licensing": "0.
|
|
106
|
-
"@voltro/runtime": "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
|
|
109
|
+
"effect": "4.1.0",
|
|
110
110
|
"react": "^19.0.0"
|
|
111
111
|
},
|
|
112
112
|
"publishConfig": {
|