esim-cli 2026.1202.215 → 2026.1202.217
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/esim.js +4 -15
- package/dist/index.js +4 -15
- package/package.json +1 -1
package/dist/esim.js
CHANGED
|
@@ -14939,7 +14939,7 @@ var catalog = [
|
|
|
14939
14939
|
{ operationId: "GetCivilPetition", name: "get-civil-petition", method: "GET", path: "/api/countries/{nation}/civil-war", spec: "battle.yaml", write: false, retry: "unsafe", description: "GetCivilPetition", parameters: [{ name: "nation", in: "path", required: true, schema: { type: "integer" } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "population", "supporters"], properties: { id: { type: "integer", format: "int64" }, population: { type: "integer" }, supporters: { type: "integer" }, closesAt: { type: "string", format: "date-time" }, battle: { type: "integer", format: "int64" } } } } }, responseFields: ["id", "population", "supporters", "closesAt", "battle"] },
|
|
14940
14940
|
{ operationId: "ActCivilPetition", name: "act-civil-petition", method: "POST", path: "/api/countries/{nation}/civil-war", spec: "battle.yaml", write: true, retry: "unsafe", description: "ActCivilPetition", parameters: [{ name: "nation", in: "path", required: true, schema: { type: "integer" } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", required: ["petition"], properties: { petition: { type: "integer", format: "int64", minimum: 0, description: "Zero creates a new petition." } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "population", "supporters"], properties: { id: { type: "integer", format: "int64" }, population: { type: "integer" }, supporters: { type: "integer" }, closesAt: { type: "string", format: "date-time" }, battle: { type: "integer", format: "int64" } } } } }, responseFields: ["id", "population", "supporters", "closesAt", "battle"] },
|
|
14941
14941
|
{ operationId: "GetPrizePreferences", name: "get-prize-preferences", method: "GET", path: "/api/me/prize-preferences", spec: "battle.yaml", write: false, retry: "unsafe", description: "GetPrizePreferences", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["rewards"], properties: { rewards: { type: "array", minItems: 10, maxItems: 10, uniqueItems: true, items: { type: "string" } } } } } }, responseFields: ["rewards"] },
|
|
14942
|
-
{ operationId: "SavePrizePreferences", name: "save-prize-preferences", method: "PUT", path: "/api/me/prize-preferences", spec: "battle.yaml", write: true, retry: "natural", description: "Saves the personal reward order.
|
|
14942
|
+
{ operationId: "SavePrizePreferences", name: "save-prize-preferences", method: "PUT", path: "/api/me/prize-preferences", spec: "battle.yaml", write: true, retry: "natural", description: "Saves the personal reward order. Each tournament uses the latest order saved when settlement reads it.", parameters: [{ name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["rewards"], properties: { rewards: { type: "array", minItems: 10, maxItems: 10, uniqueItems: true, items: { type: "string" } } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["rewards"], properties: { rewards: { type: "array", minItems: 10, maxItems: 10, uniqueItems: true, items: { type: "string" } } } } } }, responseFields: ["rewards"] },
|
|
14943
14943
|
{ operationId: "ListWars", name: "list-wars", method: "GET", path: "/api/wars", spec: "battle.yaml", write: false, retry: "unsafe", description: "Public. Lists wars and diplomacy proposals, newest first.", parameters: [{ name: "country", in: "query", schema: { type: "integer", minimum: 0 } }, { name: "votable", in: "query", description: "Requires a citizen session and limits proposals to those the caller can vote on.", schema: { type: "boolean" } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["wars", "proposals"], properties: { wars: { type: "array", items: { type: "object", required: ["id", "attacker", "defender", "startedAt", "peacePending"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, attacker: { type: "integer" }, defender: { type: "integer" }, startedAt: { type: "string", format: "date-time" }, endedAt: { type: "string", format: "date-time" }, endReason: { type: "string", enum: ["peace", "conquest"] }, activeBattleId: { type: "integer", format: "int64", minimum: 1 }, peacePending: { type: "boolean" } } } }, proposals: { type: "array", items: { type: "object", required: ["id", "kind", "proposer", "targetCountry", "author", "createdAt", "closesAt", "status", "yes", "no", "costOnApproval"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, authorSummary: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, costOnApproval: { type: "integer", format: "int64", minimum: 0, description: "Gold in minor units debited from the proposer's treasury when the proposal is approved. Declarations cost a fixed fee; peace is free." }, id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["declare", "peace"] }, proposer: { type: "integer" }, targetCountry: { type: "integer" }, author: { type: "integer", format: "int64", minimum: 1 }, warId: { type: "integer", format: "int64", minimum: 1 }, createdAt: { type: "string", format: "date-time" }, closesAt: { type: "string", format: "date-time" }, status: { type: "string", enum: ["ACTIVE", "ACCEPTED_SUCCESS", "ACCEPTED_FAILED", "REJECTED"] }, yes: { type: "integer", minimum: 0 }, no: { type: "integer", minimum: 0 } } } } } } } }, responseFields: ["wars", "proposals"] },
|
|
14944
14944
|
{ operationId: "ProposeWar", name: "propose-war", method: "POST", path: "/api/wars/proposals", spec: "battle.yaml", write: true, retry: "unsafe", description: "ProposeWar", parameters: [{ name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", required: ["kind", "targetCountry"], properties: { kind: { type: "string", enum: ["declare", "peace"] }, targetCountry: { type: "integer", minimum: 0 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", required: ["id", "kind", "proposer", "targetCountry", "author", "createdAt", "closesAt", "status", "yes", "no", "costOnApproval"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, authorSummary: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, costOnApproval: { type: "integer", format: "int64", minimum: 0, description: "Gold in minor units debited from the proposer's treasury when the proposal is approved. Declarations cost a fixed fee; peace is free." }, id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["declare", "peace"] }, proposer: { type: "integer" }, targetCountry: { type: "integer" }, author: { type: "integer", format: "int64", minimum: 1 }, warId: { type: "integer", format: "int64", minimum: 1 }, createdAt: { type: "string", format: "date-time" }, closesAt: { type: "string", format: "date-time" }, status: { type: "string", enum: ["ACTIVE", "ACCEPTED_SUCCESS", "ACCEPTED_FAILED", "REJECTED"] }, yes: { type: "integer", minimum: 0 }, no: { type: "integer", minimum: 0 } } } } }, responseFields: ["lawId", "authorSummary", "costOnApproval", "id", "kind", "proposer", "targetCountry", "author", "warId", "createdAt", "closesAt", "status", "yes", "no"] },
|
|
14945
14945
|
{ operationId: "ListWarTargets", name: "list-war-targets", method: "GET", path: "/api/wars/targets", spec: "battle.yaml", write: false, retry: "unsafe", description: "List regions controlled by active war opponents, with the authenticated citizen's current ability to start an attack.", parameters: [{ name: "cursor", in: "query", description: "Opaque cursor returned by the preceding page for the same filters.", schema: { type: "string", minLength: 1, maxLength: 512 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "country", in: "query", description: "Filter by the target region's controlling country.", schema: { type: "integer", minimum: 0 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["region", "adjacent", "war", "canStart"], properties: { region: { type: "object", additionalProperties: false, required: ["land", "owner"], properties: { land: { type: "integer", minimum: 0 }, homeNation: { type: "integer", minimum: 0 }, owner: { type: "integer", minimum: 0 } } }, adjacent: { type: "array", items: { type: "object", additionalProperties: false, required: ["land", "owner"], properties: { land: { type: "integer", minimum: 0 }, homeNation: { type: "integer", minimum: 0 }, owner: { type: "integer", minimum: 0 } } } }, war: { type: "integer", format: "int64" }, battle: { type: "integer", format: "int64" }, canStart: { type: "boolean" }, errorCode: { type: "string" }, reason: { type: "string" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
|
|
@@ -17702,7 +17702,7 @@ var prizeRows = (keys) => keys.map((key, index) => ({ rank: index + 1, reward: k
|
|
|
17702
17702
|
var prizeHelp = [
|
|
17703
17703
|
"Country tournaments and the RW Tournament have a prize pool: ten packs, one of each reward, for every participating country.",
|
|
17704
17704
|
"Citizens with damage pick in order of their damage in the event; each takes the first reward in their order that nobody above them in their country took.",
|
|
17705
|
-
"
|
|
17705
|
+
"Each tournament uses your latest saved order when it settles, even if settlement happens after the event ends.",
|
|
17706
17706
|
"Damage bonuses last 72 hours from the end of the event; when several are active, the highest applies. Military unit cups and duels have no prize pool."
|
|
17707
17707
|
];
|
|
17708
17708
|
var confirmBattle = (args) => [`esim battle show ${Number(args.id)}`];
|
|
@@ -19193,18 +19193,7 @@ ${dropRule(result.kind === "practice")}`;
|
|
|
19193
19193
|
output: { rewards: "Saved order: rank, reward key, prize and what it delivers", changed: "Preference order change", alreadyDone: "The reward order already matched" },
|
|
19194
19194
|
async run(ctx, args) {
|
|
19195
19195
|
const before = await ctx.call("get-prize-preferences");
|
|
19196
|
-
|
|
19197
|
-
try {
|
|
19198
|
-
result = await ctx.call("save-prize-preferences", {}, { rewards: String(args.rewards).split(",") });
|
|
19199
|
-
} catch (error) {
|
|
19200
|
-
if (!(error instanceof CommandError) || error.error !== "prize_preferences_locked")
|
|
19201
|
-
throw error;
|
|
19202
|
-
throw new CommandError(3, error.error, "Prize preferences are locked for the last five minutes of the RW Tournament; your saved order still applies.", "", undefined, {
|
|
19203
|
-
...error.details,
|
|
19204
|
-
context: { savedOrder: before.rewards.join(",") },
|
|
19205
|
-
next: [{ run: "esim battle prizes" }]
|
|
19206
|
-
});
|
|
19207
|
-
}
|
|
19196
|
+
const result = await ctx.call("save-prize-preferences", {}, { rewards: String(args.rewards).split(",") });
|
|
19208
19197
|
if ("alreadyDone" in result)
|
|
19209
19198
|
return { rewards: prizeRows(before.rewards), alreadyDone: true };
|
|
19210
19199
|
const reordered = change(before.rewards, result.rewards);
|
|
@@ -38619,7 +38608,7 @@ ${command.summary}
|
|
|
38619
38608
|
}
|
|
38620
38609
|
|
|
38621
38610
|
// version.ts
|
|
38622
|
-
var version2 = "2026.1202.
|
|
38611
|
+
var version2 = "2026.1202.217";
|
|
38623
38612
|
var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
|
|
38624
38613
|
var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
|
|
38625
38614
|
var releaseUrl = (release) => `https://github.com/CorrectRoadH/open-esim/releases/download/cli-v${release}`;
|
package/dist/index.js
CHANGED
|
@@ -14935,7 +14935,7 @@ var catalog = [
|
|
|
14935
14935
|
{ operationId: "GetCivilPetition", name: "get-civil-petition", method: "GET", path: "/api/countries/{nation}/civil-war", spec: "battle.yaml", write: false, retry: "unsafe", description: "GetCivilPetition", parameters: [{ name: "nation", in: "path", required: true, schema: { type: "integer" } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "population", "supporters"], properties: { id: { type: "integer", format: "int64" }, population: { type: "integer" }, supporters: { type: "integer" }, closesAt: { type: "string", format: "date-time" }, battle: { type: "integer", format: "int64" } } } } }, responseFields: ["id", "population", "supporters", "closesAt", "battle"] },
|
|
14936
14936
|
{ operationId: "ActCivilPetition", name: "act-civil-petition", method: "POST", path: "/api/countries/{nation}/civil-war", spec: "battle.yaml", write: true, retry: "unsafe", description: "ActCivilPetition", parameters: [{ name: "nation", in: "path", required: true, schema: { type: "integer" } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", required: ["petition"], properties: { petition: { type: "integer", format: "int64", minimum: 0, description: "Zero creates a new petition." } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "population", "supporters"], properties: { id: { type: "integer", format: "int64" }, population: { type: "integer" }, supporters: { type: "integer" }, closesAt: { type: "string", format: "date-time" }, battle: { type: "integer", format: "int64" } } } } }, responseFields: ["id", "population", "supporters", "closesAt", "battle"] },
|
|
14937
14937
|
{ operationId: "GetPrizePreferences", name: "get-prize-preferences", method: "GET", path: "/api/me/prize-preferences", spec: "battle.yaml", write: false, retry: "unsafe", description: "GetPrizePreferences", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["rewards"], properties: { rewards: { type: "array", minItems: 10, maxItems: 10, uniqueItems: true, items: { type: "string" } } } } } }, responseFields: ["rewards"] },
|
|
14938
|
-
{ operationId: "SavePrizePreferences", name: "save-prize-preferences", method: "PUT", path: "/api/me/prize-preferences", spec: "battle.yaml", write: true, retry: "natural", description: "Saves the personal reward order.
|
|
14938
|
+
{ operationId: "SavePrizePreferences", name: "save-prize-preferences", method: "PUT", path: "/api/me/prize-preferences", spec: "battle.yaml", write: true, retry: "natural", description: "Saves the personal reward order. Each tournament uses the latest order saved when settlement reads it.", parameters: [{ name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["rewards"], properties: { rewards: { type: "array", minItems: 10, maxItems: 10, uniqueItems: true, items: { type: "string" } } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["rewards"], properties: { rewards: { type: "array", minItems: 10, maxItems: 10, uniqueItems: true, items: { type: "string" } } } } } }, responseFields: ["rewards"] },
|
|
14939
14939
|
{ operationId: "ListWars", name: "list-wars", method: "GET", path: "/api/wars", spec: "battle.yaml", write: false, retry: "unsafe", description: "Public. Lists wars and diplomacy proposals, newest first.", parameters: [{ name: "country", in: "query", schema: { type: "integer", minimum: 0 } }, { name: "votable", in: "query", description: "Requires a citizen session and limits proposals to those the caller can vote on.", schema: { type: "boolean" } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["wars", "proposals"], properties: { wars: { type: "array", items: { type: "object", required: ["id", "attacker", "defender", "startedAt", "peacePending"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, attacker: { type: "integer" }, defender: { type: "integer" }, startedAt: { type: "string", format: "date-time" }, endedAt: { type: "string", format: "date-time" }, endReason: { type: "string", enum: ["peace", "conquest"] }, activeBattleId: { type: "integer", format: "int64", minimum: 1 }, peacePending: { type: "boolean" } } } }, proposals: { type: "array", items: { type: "object", required: ["id", "kind", "proposer", "targetCountry", "author", "createdAt", "closesAt", "status", "yes", "no", "costOnApproval"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, authorSummary: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, costOnApproval: { type: "integer", format: "int64", minimum: 0, description: "Gold in minor units debited from the proposer's treasury when the proposal is approved. Declarations cost a fixed fee; peace is free." }, id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["declare", "peace"] }, proposer: { type: "integer" }, targetCountry: { type: "integer" }, author: { type: "integer", format: "int64", minimum: 1 }, warId: { type: "integer", format: "int64", minimum: 1 }, createdAt: { type: "string", format: "date-time" }, closesAt: { type: "string", format: "date-time" }, status: { type: "string", enum: ["ACTIVE", "ACCEPTED_SUCCESS", "ACCEPTED_FAILED", "REJECTED"] }, yes: { type: "integer", minimum: 0 }, no: { type: "integer", minimum: 0 } } } } } } } }, responseFields: ["wars", "proposals"] },
|
|
14940
14940
|
{ operationId: "ProposeWar", name: "propose-war", method: "POST", path: "/api/wars/proposals", spec: "battle.yaml", write: true, retry: "unsafe", description: "ProposeWar", parameters: [{ name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", required: ["kind", "targetCountry"], properties: { kind: { type: "string", enum: ["declare", "peace"] }, targetCountry: { type: "integer", minimum: 0 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", required: ["id", "kind", "proposer", "targetCountry", "author", "createdAt", "closesAt", "status", "yes", "no", "costOnApproval"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, authorSummary: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, costOnApproval: { type: "integer", format: "int64", minimum: 0, description: "Gold in minor units debited from the proposer's treasury when the proposal is approved. Declarations cost a fixed fee; peace is free." }, id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["declare", "peace"] }, proposer: { type: "integer" }, targetCountry: { type: "integer" }, author: { type: "integer", format: "int64", minimum: 1 }, warId: { type: "integer", format: "int64", minimum: 1 }, createdAt: { type: "string", format: "date-time" }, closesAt: { type: "string", format: "date-time" }, status: { type: "string", enum: ["ACTIVE", "ACCEPTED_SUCCESS", "ACCEPTED_FAILED", "REJECTED"] }, yes: { type: "integer", minimum: 0 }, no: { type: "integer", minimum: 0 } } } } }, responseFields: ["lawId", "authorSummary", "costOnApproval", "id", "kind", "proposer", "targetCountry", "author", "warId", "createdAt", "closesAt", "status", "yes", "no"] },
|
|
14941
14941
|
{ operationId: "ListWarTargets", name: "list-war-targets", method: "GET", path: "/api/wars/targets", spec: "battle.yaml", write: false, retry: "unsafe", description: "List regions controlled by active war opponents, with the authenticated citizen's current ability to start an attack.", parameters: [{ name: "cursor", in: "query", description: "Opaque cursor returned by the preceding page for the same filters.", schema: { type: "string", minLength: 1, maxLength: 512 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "country", in: "query", description: "Filter by the target region's controlling country.", schema: { type: "integer", minimum: 0 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["region", "adjacent", "war", "canStart"], properties: { region: { type: "object", additionalProperties: false, required: ["land", "owner"], properties: { land: { type: "integer", minimum: 0 }, homeNation: { type: "integer", minimum: 0 }, owner: { type: "integer", minimum: 0 } } }, adjacent: { type: "array", items: { type: "object", additionalProperties: false, required: ["land", "owner"], properties: { land: { type: "integer", minimum: 0 }, homeNation: { type: "integer", minimum: 0 }, owner: { type: "integer", minimum: 0 } } } }, war: { type: "integer", format: "int64" }, battle: { type: "integer", format: "int64" }, canStart: { type: "boolean" }, errorCode: { type: "string" }, reason: { type: "string" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
|
|
@@ -17698,7 +17698,7 @@ var prizeRows = (keys) => keys.map((key, index) => ({ rank: index + 1, reward: k
|
|
|
17698
17698
|
var prizeHelp = [
|
|
17699
17699
|
"Country tournaments and the RW Tournament have a prize pool: ten packs, one of each reward, for every participating country.",
|
|
17700
17700
|
"Citizens with damage pick in order of their damage in the event; each takes the first reward in their order that nobody above them in their country took.",
|
|
17701
|
-
"
|
|
17701
|
+
"Each tournament uses your latest saved order when it settles, even if settlement happens after the event ends.",
|
|
17702
17702
|
"Damage bonuses last 72 hours from the end of the event; when several are active, the highest applies. Military unit cups and duels have no prize pool."
|
|
17703
17703
|
];
|
|
17704
17704
|
var confirmBattle = (args) => [`esim battle show ${Number(args.id)}`];
|
|
@@ -19189,18 +19189,7 @@ ${dropRule(result.kind === "practice")}`;
|
|
|
19189
19189
|
output: { rewards: "Saved order: rank, reward key, prize and what it delivers", changed: "Preference order change", alreadyDone: "The reward order already matched" },
|
|
19190
19190
|
async run(ctx, args) {
|
|
19191
19191
|
const before = await ctx.call("get-prize-preferences");
|
|
19192
|
-
|
|
19193
|
-
try {
|
|
19194
|
-
result = await ctx.call("save-prize-preferences", {}, { rewards: String(args.rewards).split(",") });
|
|
19195
|
-
} catch (error) {
|
|
19196
|
-
if (!(error instanceof CommandError) || error.error !== "prize_preferences_locked")
|
|
19197
|
-
throw error;
|
|
19198
|
-
throw new CommandError(3, error.error, "Prize preferences are locked for the last five minutes of the RW Tournament; your saved order still applies.", "", undefined, {
|
|
19199
|
-
...error.details,
|
|
19200
|
-
context: { savedOrder: before.rewards.join(",") },
|
|
19201
|
-
next: [{ run: "esim battle prizes" }]
|
|
19202
|
-
});
|
|
19203
|
-
}
|
|
19192
|
+
const result = await ctx.call("save-prize-preferences", {}, { rewards: String(args.rewards).split(",") });
|
|
19204
19193
|
if ("alreadyDone" in result)
|
|
19205
19194
|
return { rewards: prizeRows(before.rewards), alreadyDone: true };
|
|
19206
19195
|
const reordered = change(before.rewards, result.rewards);
|
|
@@ -38625,7 +38614,7 @@ ${command.summary}
|
|
|
38625
38614
|
}
|
|
38626
38615
|
|
|
38627
38616
|
// version.ts
|
|
38628
|
-
var version2 = "2026.1202.
|
|
38617
|
+
var version2 = "2026.1202.217";
|
|
38629
38618
|
var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
|
|
38630
38619
|
var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
|
|
38631
38620
|
var releaseVersion = /^\d+\.\d+\.\d+$/;
|