esim-cli 2026.1201.200 → 2026.1201.201

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 CHANGED
@@ -15324,7 +15324,8 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15324
15324
  { operationId: "getCountry", name: "get-country", method: "GET", path: "/api/countries/{id}", spec: "world.yaml", write: false, retry: "unsafe", description: "Public country summary and controlled land IDs.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { allOf: [{ type: "object", required: ["id", "leader", "treasury", "tax", "taxCategories", "population", "landCount"], properties: { id: { type: "integer", minimum: 0 }, leader: { anyOf: [{ type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, { type: "null" }] }, leaderName: { type: "string" }, treasury: { type: "integer", format: "int64", minimum: 0 }, tax: { type: "integer", minimum: 0 }, taxCategories: { type: "object", additionalProperties: { type: "object", additionalProperties: false, required: ["vatPercent", "importPercent"], properties: { vatPercent: { type: "integer", minimum: 0 }, importPercent: { type: "integer", minimum: 0 }, incomePercent: { type: "integer", minimum: 0, maximum: 50 }, productionPercent: { type: "integer", minimum: 0, maximum: 100 } } } }, minimumWage: { type: "integer", format: "int64", minimum: 0, description: "Statutory minimum wage in hundredths of the national currency." }, population: { type: "integer", format: "int64", minimum: 0 }, landCount: { type: "integer", minimum: 0 } } }, { type: "object", required: ["lands"], properties: { defenceMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, defenceMinisterName: { type: "string" }, financeMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, financeMinisterName: { type: "string" }, lands: { type: "array", items: { type: "integer", minimum: 0 } } } }] } } }, responseFields: ["id", "leader", "leaderName", "treasury", "tax", "taxCategories", "minimumWage", "population", "landCount", "defenceMinister", "defenceMinisterName", "financeMinister", "financeMinisterName", "lands"] },
15325
15325
  { operationId: "getCountryTreasury", name: "get-country-treasury", method: "GET", path: "/api/countries/{id}/treasury", spec: "world.yaml", write: false, retry: "unsafe", description: "Public treasury balances, building stock and taxes from the preceding game day.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["balances", "buildingStock", "yesterdayTaxes"], properties: { balances: { type: "array", description: "Gold first, then positive national currency balances in descending amount order. Amounts are in hundredths of each asset, including pending credits.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, buildingStock: { type: "array", description: "Current catalog counts per building product. Mapping Primera's star groups to the current catalog is unverified.", items: { type: "object", required: ["product", "quantity"], properties: { product: { type: "string", enum: ["DEFENSE_SYSTEM", "HOSPITAL"] }, quantity: { type: "integer", format: "int64", minimum: 0 } } } }, yesterdayTaxes: { type: "object", required: ["day", "totals", "byType"], properties: { day: { description: "Previous game day. Zero if the current game day is the first.", type: "integer", minimum: 0 }, totals: { type: "array", description: "Individual asset totals in hundredths. Different currencies are never added together.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, byType: { type: "array", items: { type: "object", required: ["type", "asset", "amount"], properties: { type: { type: "string", enum: ["income", "vat", "import", "marketCombined"], description: "Legacy market postings did not distinguish VAT from import tax." }, asset: { type: "string" }, amount: { type: "integer", format: "int64", minimum: 0 } } } } } } } } } }, responseFields: ["balances", "buildingStock", "yesterdayTaxes"] },
15326
15326
  { operationId: "listWorldEvents", name: "list-world-events", method: "GET", path: "/api/world/events", spec: "world.yaml", write: false, retry: "unsafe", description: "Public world announcements, newest first. With country, only events that involve it as attacker, defender, the event's own country, or the current or rightful owner of the event's region.", parameters: [{ name: "category", in: "query", schema: { type: "string", enum: ["military", "political"] } }, { name: "country", in: "query", description: "Local country ID; the Primera events page country filter.", schema: { type: "integer", minimum: 0 } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "day", "occurredAt", "category"], properties: { battleId: { type: "integer", format: "int64", minimum: 1 }, fieldBuildingProposal: { type: "object", additionalProperties: false, required: ["land", "id"], properties: { land: { type: "integer", minimum: 0 }, id: { type: "integer", format: "int64", minimum: 1 }, nation: { type: "integer", minimum: 0 }, kind: { type: "string", enum: ["hospital", "defense_system"] }, quality: { type: "integer", description: "Number of buildings of this kind in the deployment.", minimum: 1, maximum: 5 }, round: { type: "integer", minimum: 1, maximum: 15 } } }, id: { type: "integer", format: "int64", minimum: 1 }, day: { type: "integer", minimum: 1 }, occurredAt: { type: "string", format: "date-time" }, category: { type: "string", enum: ["military", "political"] }, message: { type: "string", description: "Legacy event display text." }, kind: { type: "string", enum: ["citizen_joined", "president_elected", "practice_started", "sailor_week_announced", "field_building_proposed", "war_declared", "battle_started", "battle_ended", "resistance_started"] }, params: { type: "object", additionalProperties: false, properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, countryId: { type: "integer", minimum: 0 }, regionId: { type: "integer", minimum: 0 }, attackerId: { type: "integer", minimum: 0 }, defenderId: { type: "integer", minimum: 0 }, winnerId: { type: "integer", minimum: 0 }, startsAt: { type: "string", format: "date-time" }, endsAt: { type: "string", format: "date-time" }, building: { type: "string", enum: ["hospital", "defense_system"] }, count: { type: "integer", minimum: 1 }, round: { type: "integer", minimum: 1 } } } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15327
- { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] }
15327
+ { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] },
15328
+ { operationId: "getWorldOnline", name: "get-world-online", method: "GET", path: "/api/world/online", spec: "world.yaml", write: false, retry: "unsafe", description: "Public aggregate count of real registered players with recorded session or API token activity in the last five minutes.", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["count"], properties: { count: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["count"] }
15328
15329
  ];
15329
15330
 
15330
15331
  // operation-model.ts
@@ -38071,7 +38072,7 @@ function saveCredentials(store, credentials) {
38071
38072
  }
38072
38073
 
38073
38074
  // version.ts
38074
- var version2 = "2026.1201.200";
38075
+ var version2 = "2026.1201.201";
38075
38076
  var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
38076
38077
  var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
38077
38078
  var releaseUrl = (release) => `https://github.com/CorrectRoadH/open-esim/releases/download/cli-v${release}`;
package/dist/index.js CHANGED
@@ -15320,7 +15320,8 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15320
15320
  { operationId: "getCountry", name: "get-country", method: "GET", path: "/api/countries/{id}", spec: "world.yaml", write: false, retry: "unsafe", description: "Public country summary and controlled land IDs.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { allOf: [{ type: "object", required: ["id", "leader", "treasury", "tax", "taxCategories", "population", "landCount"], properties: { id: { type: "integer", minimum: 0 }, leader: { anyOf: [{ type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, { type: "null" }] }, leaderName: { type: "string" }, treasury: { type: "integer", format: "int64", minimum: 0 }, tax: { type: "integer", minimum: 0 }, taxCategories: { type: "object", additionalProperties: { type: "object", additionalProperties: false, required: ["vatPercent", "importPercent"], properties: { vatPercent: { type: "integer", minimum: 0 }, importPercent: { type: "integer", minimum: 0 }, incomePercent: { type: "integer", minimum: 0, maximum: 50 }, productionPercent: { type: "integer", minimum: 0, maximum: 100 } } } }, minimumWage: { type: "integer", format: "int64", minimum: 0, description: "Statutory minimum wage in hundredths of the national currency." }, population: { type: "integer", format: "int64", minimum: 0 }, landCount: { type: "integer", minimum: 0 } } }, { type: "object", required: ["lands"], properties: { defenceMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, defenceMinisterName: { type: "string" }, financeMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, financeMinisterName: { type: "string" }, lands: { type: "array", items: { type: "integer", minimum: 0 } } } }] } } }, responseFields: ["id", "leader", "leaderName", "treasury", "tax", "taxCategories", "minimumWage", "population", "landCount", "defenceMinister", "defenceMinisterName", "financeMinister", "financeMinisterName", "lands"] },
15321
15321
  { operationId: "getCountryTreasury", name: "get-country-treasury", method: "GET", path: "/api/countries/{id}/treasury", spec: "world.yaml", write: false, retry: "unsafe", description: "Public treasury balances, building stock and taxes from the preceding game day.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["balances", "buildingStock", "yesterdayTaxes"], properties: { balances: { type: "array", description: "Gold first, then positive national currency balances in descending amount order. Amounts are in hundredths of each asset, including pending credits.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, buildingStock: { type: "array", description: "Current catalog counts per building product. Mapping Primera's star groups to the current catalog is unverified.", items: { type: "object", required: ["product", "quantity"], properties: { product: { type: "string", enum: ["DEFENSE_SYSTEM", "HOSPITAL"] }, quantity: { type: "integer", format: "int64", minimum: 0 } } } }, yesterdayTaxes: { type: "object", required: ["day", "totals", "byType"], properties: { day: { description: "Previous game day. Zero if the current game day is the first.", type: "integer", minimum: 0 }, totals: { type: "array", description: "Individual asset totals in hundredths. Different currencies are never added together.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, byType: { type: "array", items: { type: "object", required: ["type", "asset", "amount"], properties: { type: { type: "string", enum: ["income", "vat", "import", "marketCombined"], description: "Legacy market postings did not distinguish VAT from import tax." }, asset: { type: "string" }, amount: { type: "integer", format: "int64", minimum: 0 } } } } } } } } } }, responseFields: ["balances", "buildingStock", "yesterdayTaxes"] },
15322
15322
  { operationId: "listWorldEvents", name: "list-world-events", method: "GET", path: "/api/world/events", spec: "world.yaml", write: false, retry: "unsafe", description: "Public world announcements, newest first. With country, only events that involve it as attacker, defender, the event's own country, or the current or rightful owner of the event's region.", parameters: [{ name: "category", in: "query", schema: { type: "string", enum: ["military", "political"] } }, { name: "country", in: "query", description: "Local country ID; the Primera events page country filter.", schema: { type: "integer", minimum: 0 } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "day", "occurredAt", "category"], properties: { battleId: { type: "integer", format: "int64", minimum: 1 }, fieldBuildingProposal: { type: "object", additionalProperties: false, required: ["land", "id"], properties: { land: { type: "integer", minimum: 0 }, id: { type: "integer", format: "int64", minimum: 1 }, nation: { type: "integer", minimum: 0 }, kind: { type: "string", enum: ["hospital", "defense_system"] }, quality: { type: "integer", description: "Number of buildings of this kind in the deployment.", minimum: 1, maximum: 5 }, round: { type: "integer", minimum: 1, maximum: 15 } } }, id: { type: "integer", format: "int64", minimum: 1 }, day: { type: "integer", minimum: 1 }, occurredAt: { type: "string", format: "date-time" }, category: { type: "string", enum: ["military", "political"] }, message: { type: "string", description: "Legacy event display text." }, kind: { type: "string", enum: ["citizen_joined", "president_elected", "practice_started", "sailor_week_announced", "field_building_proposed", "war_declared", "battle_started", "battle_ended", "resistance_started"] }, params: { type: "object", additionalProperties: false, properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, countryId: { type: "integer", minimum: 0 }, regionId: { type: "integer", minimum: 0 }, attackerId: { type: "integer", minimum: 0 }, defenderId: { type: "integer", minimum: 0 }, winnerId: { type: "integer", minimum: 0 }, startsAt: { type: "string", format: "date-time" }, endsAt: { type: "string", format: "date-time" }, building: { type: "string", enum: ["hospital", "defense_system"] }, count: { type: "integer", minimum: 1 }, round: { type: "integer", minimum: 1 } } } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15323
- { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] }
15323
+ { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] },
15324
+ { operationId: "getWorldOnline", name: "get-world-online", method: "GET", path: "/api/world/online", spec: "world.yaml", write: false, retry: "unsafe", description: "Public aggregate count of real registered players with recorded session or API token activity in the last five minutes.", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["count"], properties: { count: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["count"] }
15324
15325
  ];
15325
15326
 
15326
15327
  // operation-model.ts
@@ -38077,7 +38078,7 @@ function saveCredentials(store, credentials) {
38077
38078
  }
38078
38079
 
38079
38080
  // version.ts
38080
- var version2 = "2026.1201.200";
38081
+ var version2 = "2026.1201.201";
38081
38082
  var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
38082
38083
  var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
38083
38084
  var releaseVersion = /^\d+\.\d+\.\d+$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esim-cli",
3
- "version": "2026.1201.200",
3
+ "version": "2026.1201.201",
4
4
  "description": "Command-line client and agent project for Open E-Sim",
5
5
  "type": "module",
6
6
  "license": "MIT",