From efeaccbc06b6c49c5b2e72348eec149db5d25070 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Sat, 29 Aug 2026 10:40:02 +1000 Subject: [PATCH] Configure and run prettier --- .prettierignore | 13 + CLAUDE.md | 210 ++- README.md | 6 +- bin/puppet/colony_setup.js | 244 +-- bin/puppet/station_setup.js | 44 +- docker-compose.deployed.yml | 29 +- docker-compose.yml | 1 - etc-docker/README.md | 9 +- info/license.md | 791 ++++----- v2-api/argumentMap.json | 5 +- v2-api/index.ts | 270 ++-- v2-api/package-lock.json | 2138 ++++++++++++------------- v2-api/package.json | 38 +- v2-api/tsconfig.json | 14 +- var/wrapper.html | 238 +-- var/www/public/resources.json | 1180 ++++++++++---- var/www/public/starmap/css/layout.css | 2 +- var/www/public/starmap/index.html | 435 ++--- 18 files changed, 3144 insertions(+), 2523 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..7f9ded15 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +app/ +assets/ +bin/puppet/ship_add.js +data/ +homepage/ +lacuna/ +log/ +memcached/ +missions/ +node_modules/ +super-ui/ +var/www/public/chiselchat/ +var/www/public/starmap/js/ diff --git a/CLAUDE.md b/CLAUDE.md index 898c83e9..9f1f710d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,21 +4,29 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project overview -Perl backend for **The Lacuna Expanse**, a space-empire strategy MMO. Built on Moose (OO), DBIx::Class (ORM), and Plack/PSGI with a JSON::RPC::Dispatcher API layer. +Perl backend for **The Lacuna Expanse**, a space-empire strategy MMO. Built on Moose (OO), DBIx::Class (ORM), and +Plack/PSGI with a JSON::RPC::Dispatcher API layer. ## Repo layout / submodules -`app`, `assets`, `homepage`, `super-ui`, and `missions` are git submodules (see `.gitmodules`), each pointing to `gitea.allosaurus-chromatic.ts.net/tlecommunity/*`. +`app`, `assets`, `homepage`, `super-ui`, and `missions` are git submodules (see `.gitmodules`), each pointing to +`gitea.allosaurus-chromatic.ts.net/tlecommunity/*`. ## Development environment -Docker Compose is the supported way to run this stack; there is no cpanfile/Makefile.PL — Perl dependencies are pinned as `cpanm --notest ` lines directly in `docker/build-server/Dockerfile` (Perl 5.24, ~100 modules: Moose, DBIx::Class, Plack, Test::Class::Moose, Test::Most, GD::SecurityImage, etc.). Treat that Dockerfile as the dependency source of truth. +Docker Compose is the supported way to run this stack; there is no cpanfile/Makefile.PL — Perl dependencies are pinned +as `cpanm --notest ` lines directly in `docker/build-server/Dockerfile` (Perl 5.24, ~100 modules: Moose, +DBIx::Class, Plack, Test::Class::Moose, Test::Most, GD::SecurityImage, etc.). Treat that Dockerfile as the dependency +source of truth. Setup: -1. Copy `etc-docker/*` into a new (gitignored) `etc/` directory — `etc/lacuna.conf` (DB creds, beanstalk, captcha config), `etc/log4perl.conf`, `etc/nginx.conf`. See `etc-docker/README.md`. + +1. Copy `etc-docker/*` into a new (gitignored) `etc/` directory — `etc/lacuna.conf` (DB creds, beanstalk, captcha + config), `etc/log4perl.conf`, `etc/nginx.conf`. See `etc-docker/README.md`. 2. `docker compose up` Services defined in `docker-compose.yml` (dev; `docker-compose.deployed.yml` is the prod variant): + - `lacuna-mysql-server` — mysql:5.7, root password `lacuna`, port 3306 - `lacuna-memcached` — session/cache store - `lacuna-beanstalkd` (+ `-console` on 2080) — job queue @@ -30,105 +38,211 @@ Services defined in `docker-compose.yml` (dev; `docker-compose.deployed.yml` is - `lacuna-server-{building,ship,captcha}-scheduler` — Perl scheduler processes - `lacuna-server-script-scheduler` — ofelia-based cron, driven by `etc-docker/schedule.ini` -Inside `lacuna-server`, `bin/startdev.sh` runs `perl generate_docs.pl` then `plackup --env development --app lacuna.psgi`. Production instead uses `start_server -- starman --workers 7 ... lacuna.psgi` (see `bin/start_lacuna.sh`). +Inside `lacuna-server`, `bin/startdev.sh` runs `perl generate_docs.pl` then +`plackup --env development --app lacuna.psgi`. Production instead uses +`start_server -- starman --workers 7 ... lacuna.psgi` (see `bin/start_lacuna.sh`). -`bin/setup/server/*.sh` and `bin/setup/install-pm.sh` are legacy CentOS-era bare-metal setup scripts predating Docker — historical/reference only, not the recommended path. +`bin/setup/server/*.sh` and `bin/setup/install-pm.sh` are legacy CentOS-era bare-metal setup scripts predating Docker — +historical/reference only, not the recommended path. ## Testing -Tests are plain `Test::More`/prove style (no `.proverc`; `Test::Class::Moose` is installed but not actually used as a base class). They are **integration tests that hit a live server over HTTP**, not isolated unit tests — via `t/TestHelper.pm` (LWP::UserAgent, plus helpers like `generate_test_empire`, `build_infrastructure`, `clear_all_test_empires`). `t/TestHelper.pm::post` sends its JSON-RPC calls to `$LACUNA_TEST_SERVER_URL` (default `http://localhost:5000/` — the plackup server *inside* the `lacuna-server` container), **not** `Lacuna->config->get('server_url')` (which points at the deployed server). So the suite must run inside `lacuna-server` with the compose stack up. +Tests are plain `Test::More`/prove style (no `.proverc`; `Test::Class::Moose` is installed but not actually used as a +base class). They are **integration tests that hit a live server over HTTP**, not isolated unit tests — via +`t/TestHelper.pm` (LWP::UserAgent, plus helpers like `generate_test_empire`, `build_infrastructure`, +`clear_all_test_empires`). `t/TestHelper.pm::post` sends its JSON-RPC calls to `$LACUNA_TEST_SERVER_URL` (default +`http://localhost:5000/` — the plackup server _inside_ the `lacuna-server` container), **not** +`Lacuna->config->get('server_url')` (which points at the deployed server). So the suite must run inside `lacuna-server` +with the compose stack up. - Full suite: `docker compose run --rm lacuna-server ./run_tests.sh` - Single file: `docker compose run --rm lacuna-server ./run_tests.sh t/010_Empire.t` -- `bin/run_tests.sh` just sets `LACUNA_TEST_SERVER_URL`, `cd`s to the server root and runs `prove -Ilib -It` (the `-It` makes `use TestHelper` resolve regardless of each file's own `use lib` line; note that the container's workdir is `bin/` so you don't need to have bin/ in your commands or set the working directory yourself). -- Test locations: `t/*.t` (numbered, e.g. `t/010_Empire.t`), `t/bugs/*.t` (regression tests, e.g. `t/bugs/0003_PurchaseTooManyShips.t`), `t/long_running/` (excluded from the default `bin/run_tests.sh` run — slow), `t/middleware/` +- `bin/run_tests.sh` just sets `LACUNA_TEST_SERVER_URL`, `cd`s to the server root and runs `prove -Ilib -It` (the `-It` + makes `use TestHelper` resolve regardless of each file's own `use lib` line; note that the container's workdir is + `bin/` so you don't need to have bin/ in your commands or set the working directory yourself). +- Test locations: `t/*.t` (numbered, e.g. `t/010_Empire.t`), `t/bugs/*.t` (regression tests, e.g. + `t/bugs/0003_PurchaseTooManyShips.t`), `t/long_running/` (excluded from the default `bin/run_tests.sh` run — slow), + `t/middleware/` No `.perltidyrc`/`.perlcriticrc` — no enforced style/lint tooling. ## Architecture -- **`lib/Lacuna.pm`** — app singleton. Loads `etc/lacuna.conf` via `Config::JSON`; exposes `Lacuna->db`, `->config`, `->cache`, `->queue`. Uses `Module::Find::useall` to load the whole namespace. -- **`lib/L.pm`, `lib/LD.pm`, `lib/LR.pm`** — REPL/one-liner dev shortcuts, not runtime app code. `L` is a `Lacuna` subclass for one-liners (`perl -ML -E '...'`); `LD` AUTOLOADs onto `Lacuna->db` (`LD->empire(2)`); `LR` dispatches into `Lacuna::RPC::*` to simulate API calls from the command line (`LR->call(Empire => view_profile => ...)`). +- **`lib/Lacuna.pm`** — app singleton. Loads `etc/lacuna.conf` via `Config::JSON`; exposes `Lacuna->db`, `->config`, + `->cache`, `->queue`. Uses `Module::Find::useall` to load the whole namespace. +- **`lib/L.pm`, `lib/LD.pm`, `lib/LR.pm`** — REPL/one-liner dev shortcuts, not runtime app code. `L` is a `Lacuna` + subclass for one-liners (`perl -ML -E '...'`); `LD` AUTOLOADs onto `Lacuna->db` (`LD->empire(2)`); `LR` dispatches + into `Lacuna::RPC::*` to simulate API calls from the command line (`LR->call(Empire => view_profile => ...)`). ### DB layer -`lib/Lacuna/DB.pm` extends `DBIx::Class::Schema` and auto-loads Result classes via `load_namespaces`. Convenience finders (`Lacuna->db->empire`, `->body`, `->building`, ...) wrap `resultset(...)->find/search`. +`lib/Lacuna/DB.pm` extends `DBIx::Class::Schema` and auto-loads Result classes via `load_namespaces`. Convenience +finders (`Lacuna->db->empire`, `->body`, `->building`, ...) wrap `resultset(...)->find/search`. -Result classes live under `lib/Lacuna/DB/Result/`: `Empire.pm`, `Building.pm` + `Building/*` (per building type), `Map.pm`/`Map/*`, `Ships.pm`/`Ships/*`, `Fleet/*`, `Spies.pm`, `Alliance.pm`, `Propositions/*`, `Laws/*`, `Log/*`. +Result classes live under `lib/Lacuna/DB/Result/`: `Empire.pm`, `Building.pm` + `Building/*` (per building type), +`Map.pm`/`Map/*`, `Ships.pm`/`Ships/*`, `Fleet/*`, `Spies.pm`, `Alliance.pm`, `Propositions/*`, `Laws/*`, `Log/*`. -`Lacuna::DB::Result::Building` is the abstract base, using DBIx::Class `DynamicSubclass` — the `class` DB column picks the blessed subclass. It defines shared columns/timers plus overridable `use constant` defaults (`time_to_build`, `*_consumption`, `*_production`, `controller_class`, ...). Concrete buildings (e.g. `lib/Lacuna/DB/Result/Building/Energy/Fission.pm`) extend an intermediate category class and override constants/hooks via Moose `before`/`around` — a template-method pattern. `controller_class` points each building at its matching RPC class. +`Lacuna::DB::Result::Building` is the abstract base, using DBIx::Class `DynamicSubclass` — the `class` DB column picks +the blessed subclass. It defines shared columns/timers plus overridable `use constant` defaults (`time_to_build`, +`*_consumption`, `*_production`, `controller_class`, ...). Concrete buildings (e.g. +`lib/Lacuna/DB/Result/Building/Energy/Fission.pm`) extend an intermediate category class and override constants/hooks +via Moose `before`/`around` — a template-method pattern. `controller_class` points each building at its matching RPC +class. -To add a new building, follow the checklist in `info/add_a_building.txt` (DB::Result class, entry in `Lacuna::DB::Result::Building` class types, RPC class, pod file linked in `docs/Buildings.pod`, entry in `bin/lacuna.psgi`, `Lacuna::DB::Result::Medals`, `var/www/public/resources.json`, images, and — if buildable — `Lacuna::Constants::BUILDABLE_CLASSES`; plus `SPACE_STATION_MODULES` if it's a station module). +To add a new building, follow the checklist in `info/add_a_building.txt` (DB::Result class, entry in +`Lacuna::DB::Result::Building` class types, RPC class, pod file linked in `docs/Buildings.pod`, entry in +`bin/lacuna.psgi`, `Lacuna::DB::Result::Medals`, `var/www/public/resources.json`, images, and — if buildable — +`Lacuna::Constants::BUILDABLE_CLASSES`; plus `SPACE_STATION_MODULES` if it's a station module). ### RPC/API layer -`Lacuna::RPC` extends `JSON::RPC::Dispatcher::App`. It resolves sessions (`get_session`, via `Lacuna::Session`), checks body/building/sitter permissions, and rate-limits via `Lacuna->cache`. +`Lacuna::RPC` extends `JSON::RPC::Dispatcher::App`. It resolves sessions (`get_session`, via `Lacuna::Session`), checks +body/building/sitter permissions, and rate-limits via `Lacuna->cache`. -`lib/Lacuna/RPC/*.pm` = top-level game endpoints (`Empire`, `Body`, `Map`, `Alliance`, `Chat`, `Stats`, ...). `lib/Lacuna/RPC/Building/*.pm` (156 files) = one thin controller per building type, declaring `app_url`/`model_class` and inheriting generic behavior from `lib/Lacuna/RPC/Building.pm`. RPC methods take `($self, $session_id, ...)`, whitelist themselves via `register_rpc_method_names`, and return a hashref including `status => $self->format_status($session)`. +`lib/Lacuna/RPC/*.pm` = top-level game endpoints (`Empire`, `Body`, `Map`, `Alliance`, `Chat`, `Stats`, ...). +`lib/Lacuna/RPC/Building/*.pm` (156 files) = one thin controller per building type, declaring `app_url`/`model_class` +and inheriting generic behavior from `lib/Lacuna/RPC/Building.pm`. RPC methods take `($self, $session_id, ...)`, +whitelist themselves via `register_rpc_method_names`, and return a hashref including +`status => $self->format_status($session)`. -Separate from the JSON-RPC API, `lib/Lacuna/Web.pm` (extends `Plack::Component`) does simple path-based dispatch (`/foo/bar` → `www_foo_bar`) for HTML-facing endpoints under `lib/Lacuna/Web/*.pm` (`Admin`, `Pay`, `Chat`, `Facebook`, `Announcement`, ...). +Separate from the JSON-RPC API, `lib/Lacuna/Web.pm` (extends `Plack::Component`) does simple path-based dispatch +(`/foo/bar` → `www_foo_bar`) for HTML-facing endpoints under `lib/Lacuna/Web/*.pm` (`Admin`, `Pay`, `Chat`, `Facebook`, +`Announcement`, ...). `bin/lacuna.psgi` is where RPC/Web modules get mounted into the Plack app. ### AI subsystem -`lib/Lacuna/AI.pm` — base NPC-empire behavior (colony build-out from a plan list, hourly ticks, spy training, fleet building, attacks via `start_attack`/`attack_with_ships`, repairs). Concrete factions in `lib/Lacuna/AI/{Cult,DeLambert,Diablotin,Jackpot,Saben,Trelvestian}.pm` subclass it with faction-specific tuning. +`lib/Lacuna/AI.pm` — base NPC-empire behavior (colony build-out from a plan list, hourly ticks, spy training, fleet +building, attacks via `start_attack`/`attack_with_ships`, repairs). Concrete factions in +`lib/Lacuna/AI/{Cult,DeLambert,Diablotin,Jackpot,Saben,Trelvestian}.pm` subclass it with faction-specific tuning. ### Support modules - `Lacuna::Cache` — Memcached::libmemcached wrapper (JSON-serializing get/set/increment/delete, reconnect-on-failure) -- `Lacuna::Constants` — game-wide constants (`INFLATION`, `GROWTH`, `FOOD_TYPES`, `ORE_TYPES`, `BUILDABLE_CLASSES`, `SPACE_STATION_MODULES`) +- `Lacuna::Constants` — game-wide constants (`INFLATION`, `GROWTH`, `FOOD_TYPES`, `ORE_TYPES`, `BUILDABLE_CLASSES`, + `SPACE_STATION_MODULES`) - `Lacuna::Queue` / `Lacuna::Queue::Job` — Beanstalk-backed background job queue - `Lacuna::Session` — player session objects backed by the DB ### Docs and test data -- `docs/*.pod` — one file per game building/resource entity (148 files), mirroring `lib/Lacuna/RPC/Building/*.pm` naming. Keep in sync when adding/renaming a building. -- `bin/puppet/*.js` — plain JSON data files (not Puppeteer) consumed by companion Perl scripts (`ships_insert.pl`, `station_setup.pl`, `setup_colony.pl`) to bulk-seed ships/buildings/stations for testing. +- `docs/*.pod` — one file per game building/resource entity (148 files), mirroring `lib/Lacuna/RPC/Building/*.pm` + naming. Keep in sync when adding/renaming a building. +- `bin/puppet/*.js` — plain JSON data files (not Puppeteer) consumed by companion Perl scripts (`ships_insert.pl`, + `station_setup.pl`, `setup_colony.pl`) to bulk-seed ships/buildings/stations for testing. ## Ruby on Rails -In `lacuna/` is a new Ruby on Rails app which is intended to ultimately replace the Perl code. It interacts with the same database and schema however only does read-only operations. The perl code is the source of truth for game rules and functionality. +In `lacuna/` is a new Ruby on Rails app which is intended to ultimately replace the Perl code. It interacts with the +same database and schema however only does read-only operations. The perl code is the source of truth for game rules and +functionality. -**Parity requirement**: for any endpoint the Rails app re-implements, its JSON response must match the equivalent Perl RPC response field-for-field (same keys, same value types, same absent-vs-empty semantics — see "Perl quirks that must be mirrored exactly" below). The Perl implementation is the spec; when porting a method, read the actual Perl source (don't work from paraphrase/memory) and treat any divergence as a bug unless it's an explicitly documented gap (see "Known, deliberate parity gaps"). +**Parity requirement**: for any endpoint the Rails app re-implements, its JSON response must match the equivalent Perl +RPC response field-for-field (same keys, same value types, same absent-vs-empty semantics — see "Perl quirks that must +be mirrored exactly" below). The Perl implementation is the spec; when porting a method, read the actual Perl source +(don't work from paraphrase/memory) and treat any divergence as a bug unless it's an explicitly documented gap (see +"Known, deliberate parity gaps"). ### App structure -Rails 8.1, API-only (`config.api_only = true`), Minitest (`minitest-rails`) — **no RSpec, no FactoryBot**; use plain Rails fixtures (`lacuna/test/fixtures/*.yml`). - -- `lacuna/app/models/` — one `ApplicationRecord` per DB table, `self.table_name` pointed at the existing Perl/DBIx::Class table name (often not the Rails-conventional pluralized name, e.g. `Body.table_name = 'body'`, `Empire.table_name = 'empire'`). Associations and business-logic methods (e.g. `Body#get_status`, `Empire#get_status`) are added incrementally as endpoints get ported — most models still have no associations beyond a bare `table_name` and an `annotaterb`-generated schema comment. -- `lacuna/app/controllers/` — thin controllers; one per RPC namespace (`EmpireController`, `BodyController`), mirroring `lib/Lacuna/RPC/*.pm`. Heavy logic lives on the models (matching where Perl puts it: `Lacuna::DB::Result::*`), not in controllers. +Rails 8.1, API-only (`config.api_only = true`), Minitest (`minitest-rails`) — **no RSpec, no FactoryBot**; use plain +Rails fixtures (`lacuna/test/fixtures/*.yml`). + +- `lacuna/app/models/` — one `ApplicationRecord` per DB table, `self.table_name` pointed at the existing + Perl/DBIx::Class table name (often not the Rails-conventional pluralized name, e.g. `Body.table_name = 'body'`, + `Empire.table_name = 'empire'`). Associations and business-logic methods (e.g. `Body#get_status`, `Empire#get_status`) + are added incrementally as endpoints get ported — most models still have no associations beyond a bare `table_name` + and an `annotaterb`-generated schema comment. +- `lacuna/app/controllers/` — thin controllers; one per RPC namespace (`EmpireController`, `BodyController`), mirroring + `lib/Lacuna/RPC/*.pm`. Heavy logic lives on the models (matching where Perl puts it: `Lacuna::DB::Result::*`), not in + controllers. - `lacuna/app/lib/` — small cross-cutting helpers with no natural model home (`LacunaDateFormat`, `LacunaServerInfo`). -- `lacuna/config/routes.rb` — POST-only routes namespaced per RPC controller (`namespace :empire do post :get_status end`), mirroring the JSON-RPC method names Perl registers via `register_rpc_method_names`. There is no `GET`-based REST convention here — this mirrors Perl's JSON-RPC dispatch, not typical Rails resource routing. -- `lacuna/app/models/session.rb` — a plain Ruby object (**not** ActiveRecord), reading the session hash Perl's `Lacuna::Session` writes to the shared memcached instance (`"session:"` key). Rails never writes sessions, only reads them. +- `lacuna/config/routes.rb` — POST-only routes namespaced per RPC controller + (`namespace :empire do post :get_status end`), mirroring the JSON-RPC method names Perl registers via + `register_rpc_method_names`. There is no `GET`-based REST convention here — this mirrors Perl's JSON-RPC dispatch, not + typical Rails resource routing. +- `lacuna/app/models/session.rb` — a plain Ruby object (**not** ActiveRecord), reading the session hash Perl's + `Lacuna::Session` writes to the shared memcached instance (`"session:"` key). Rails never writes sessions, only + reads them. ### Shared infrastructure with the Perl app -Both apps run in the same `docker compose` stack and talk to the **same** MySQL DB and **same** memcached instance (see `docker-compose.yml`'s `lacuna-mysql-server`/`lacuna-memcached` services, and `lacuna/config/database.yml` / `lacuna/config/initializers/memcached.rb`). `etc-docker/`/`etc/` (the Perl app's `Config::JSON` config) is **not** mounted into the `lacuna-rails` container — any server-level constant Perl reads from that file (version, map_size, rpc_limit) has to be hand-synced into a Rails constant instead (see `LacunaServerInfo`) with a comment pointing at the Perl source of truth. +Both apps run in the same `docker compose` stack and talk to the **same** MySQL DB and **same** memcached instance (see +`docker-compose.yml`'s `lacuna-mysql-server`/`lacuna-memcached` services, and `lacuna/config/database.yml` / +`lacuna/config/initializers/memcached.rb`). `etc-docker/`/`etc/` (the Perl app's `Config::JSON` config) is **not** +mounted into the `lacuna-rails` container — any server-level constant Perl reads from that file (version, map_size, +rpc_limit) has to be hand-synced into a Rails constant instead (see `LacunaServerInfo`) with a comment pointing at the +Perl source of truth. ### Perl quirks that must be mirrored exactly -- **Empty vs. absent keys**: Perl builds output hashes by `push @{$out->{some_key}}, ...` inside a loop — if the loop never executes, `some_key` is **absent** from the JSON entirely, not present with an empty array/hash. Naively pre-seeding Rails output hashes with `key => []` breaks parity; build them lazily (`(out[:key] ||= []) << ...`) instead. -- **`session.current_empire` already is Perl's "real empire"**: `Lacuna::RPC::format_status`'s `$real_empire` is always `session->empire` (built from the cached `empire_id`, the actual logged-in identity) — Perl's `current_empire` gets reassigned per-request to a sat body's owner, but that reassignment is a Perl-only, per-request-mutation concept Rails doesn't have. Don't build a separate "real empire" accessor — `Session#current_empire` in Rails already plays that role everywhere Perl uses `$real_empire`. -- **A DB column literally named `class` crashes ActiveRecord** — not just a `.class` call, but *any* attribute access on that model (`.id`, `.name`, ...), with `ActiveRecord::DangerousAttributeError`, because Rails 8 generates all of a model's attribute methods together on first access and `class` is hardcoded into `ActiveRecord::AttributeMethods.dangerous_attribute_methods`. Fix: `self.ignored_columns = ['class']` plus a small raw-SQL reader (see `Body#perl_class` / `Building#perl_class`) — and any `.where(class: ...)` must become a raw SQL condition (`.where('class = ?', val)`, qualifying the table name if the query joins another table that also has a `class` column, e.g. `building.class` vs `body.class`). `Body`/`Building`/`Ship` all have this shape (`class`/`class`/`type` columns); `self.inheritance_column = nil` is also needed to stop Rails treating them as Rails-STI discriminators. -- **No real Rails STI**: the `class` column holds one of ~70+ fully-qualified Perl leaf class names (`Planet::P1..P40`, `Planet::GasGiant::G1..G5`, `Planet::Station`, `Asteroid::A1..A26`). This doesn't map onto Rails STI conventions — subclass detection is done by string-matching on `perl_class` (mirroring Perl's `isa` checks), not real Ruby subclasses. -- **Per-leaf-class constants aren't hand-transcribed** — where Perl encodes data as `use constant` on ~70 leaf classes (body image name, ore/water concentrations) or a resultset's static config hash (`Lacuna::DB::Result::Medals`' `MEDALS`), Rails reads a JSON file generated by a one-off Perl dump script instead: `config/medals.json` and `config/body_class_info.json`, produced by `bin/dump_body_class_info.pl` (run inside the `lacuna-server` container: `perl -Ilib bin/dump_body_class_info.pl`). Regenerate via the script if the Perl source changes — don't hand-edit the JSON. -- **Aggregate resource fields aren't columns**: `food_stored`/`food_hour`/`ore_stored`/`ore_hour` are Perl methods that sum many per-type columns (`bread_stored`, `rutile_hour`, ...) minus a consumption column — there's no single `food_stored`/`ore_stored` DB column. Water/energy/waste, by contrast, are single-resource-type and *are* plain columns. Check the Perl source before assuming a `get_status` field maps to a column. +- **Empty vs. absent keys**: Perl builds output hashes by `push @{$out->{some_key}}, ...` inside a loop — if the loop + never executes, `some_key` is **absent** from the JSON entirely, not present with an empty array/hash. Naively + pre-seeding Rails output hashes with `key => []` breaks parity; build them lazily (`(out[:key] ||= []) << ...`) + instead. +- **`session.current_empire` already is Perl's "real empire"**: `Lacuna::RPC::format_status`'s `$real_empire` is always + `session->empire` (built from the cached `empire_id`, the actual logged-in identity) — Perl's `current_empire` gets + reassigned per-request to a sat body's owner, but that reassignment is a Perl-only, per-request-mutation concept Rails + doesn't have. Don't build a separate "real empire" accessor — `Session#current_empire` in Rails already plays that + role everywhere Perl uses `$real_empire`. +- **A DB column literally named `class` crashes ActiveRecord** — not just a `.class` call, but _any_ attribute access on + that model (`.id`, `.name`, ...), with `ActiveRecord::DangerousAttributeError`, because Rails 8 generates all of a + model's attribute methods together on first access and `class` is hardcoded into + `ActiveRecord::AttributeMethods.dangerous_attribute_methods`. Fix: `self.ignored_columns = ['class']` plus a small + raw-SQL reader (see `Body#perl_class` / `Building#perl_class`) — and any `.where(class: ...)` must become a raw SQL + condition (`.where('class = ?', val)`, qualifying the table name if the query joins another table that also has a + `class` column, e.g. `building.class` vs `body.class`). `Body`/`Building`/`Ship` all have this shape + (`class`/`class`/`type` columns); `self.inheritance_column = nil` is also needed to stop Rails treating them as + Rails-STI discriminators. +- **No real Rails STI**: the `class` column holds one of ~70+ fully-qualified Perl leaf class names (`Planet::P1..P40`, + `Planet::GasGiant::G1..G5`, `Planet::Station`, `Asteroid::A1..A26`). This doesn't map onto Rails STI conventions — + subclass detection is done by string-matching on `perl_class` (mirroring Perl's `isa` checks), not real Ruby + subclasses. +- **Per-leaf-class constants aren't hand-transcribed** — where Perl encodes data as `use constant` on ~70 leaf classes + (body image name, ore/water concentrations) or a resultset's static config hash (`Lacuna::DB::Result::Medals`' + `MEDALS`), Rails reads a JSON file generated by a one-off Perl dump script instead: `config/medals.json` and + `config/body_class_info.json`, produced by `bin/dump_body_class_info.pl` (run inside the `lacuna-server` container: + `perl -Ilib bin/dump_body_class_info.pl`). Regenerate via the script if the Perl source changes — don't hand-edit the + JSON. +- **Aggregate resource fields aren't columns**: `food_stored`/`food_hour`/`ore_stored`/`ore_hour` are Perl methods that + sum many per-type columns (`bread_stored`, `rutile_hour`, ...) minus a consumption column — there's no single + `food_stored`/`ore_stored` DB column. Water/energy/waste, by contrast, are single-resource-type and _are_ plain + columns. Check the Perl source before assuming a `get_status` field maps to a column. ### Known, deliberate parity gaps (documented in code where relevant) -- Perl's `tick` (resource recalculation, triggered on most RPC calls) is **not** replicated — Rails reads whatever is currently stored. Output can drift from a freshly-ticked Perl response if nothing has re-ticked the Perl-side row recently. +- Perl's `tick` (resource recalculation, triggered on most RPC calls) is **not** replicated — Rails reads whatever is + currently stored. Output can drift from a freshly-ticked Perl response if nothing has re-ticked the Perl-side row + recently. - `format_status`'s `server.announcement`/`server.promotions` (cache-flag- and `Promotion`-table-driven) are omitted. -- Two rare planet leaf classes (P33, P35) compose Perl roles (`Lacuna::Role::Planet::{Weather,GeoChaos}`) that wrap their base water/ore constants in a time-varying sine cycle keyed off body id/orbit — not ported; Rails reports their static base constant instead. +- Two rare planet leaf classes (P33, P35) compose Perl roles (`Lacuna::Role::Planet::{Weather,GeoChaos}`) that wrap + their base water/ore constants in a time-varying sine cycle keyed off body id/orbit — not ported; Rails reports their + static base constant instead. ### Testing approach: golden fixtures captured from the live Perl server -There's no live cross-service comparison at test time (Rails' test DB and Perl's dev DB aren't the same database). Instead, parity is established once, manually, then frozen: - -1. Create a throwaway test empire directly against the shared dev DB — `perl -Ilib bin/make_rails_test_empire.pl ""` (run inside the `lacuna-server` container; mirrors `t/TestHelper.pm`'s `generate_test_empire`, working around a pre-existing `probes` table / MySQL 5.7 reserved-word incompatibility in `Empire#found` by inserting the empire directly and letting the caller seed a home planet/session). -2. Hit the real Perl JSON-RPC endpoint with that session (`curl -X POST http://localhost:3050/ -d '{"jsonrpc":"2.0","id":1,"method":"get_status","params":[...]}'`) and save the `result` payload as `lacuna/test/fixtures/files//*_golden.json`. -3. Transcribe the *exact* underlying DB row values (raw `SELECT *` from MySQL, not values you intended to set — Perl's own background ticking/scheduling can silently mutate rows between when you seed and when you capture) into matching Rails AR fixtures (`lacuna/test/fixtures/*.yml`, one file per literal table name, e.g. `body.yml` not `bodies.yml`). -4. Assert Rails' controller JSON response equals the golden JSON exactly, ignoring only genuinely non-deterministic fields (`server.time`, `empire.rpc_count`, `body.surface_version`/`needs_surface_refresh`) — see `test/support/golden_status_assertions.rb`'s `DEFAULT_IGNORE_PATHS`. Prefer exact equality over subset matching; the point is to catch missing/extra keys, not just spot-check values. -5. Document the golden/fixture pairing in a README next to the golden JSON (see `lacuna/test/fixtures/files/get_status/README.md`) — they must be updated together. - -Gotcha: `ActionDispatch::IntegrationTest` already defines a `body` method of its own, which shadows the `body(:label)` fixture accessor Rails would otherwise generate for `test/fixtures/body.yml` — reference known fixture IDs directly in controller/integration tests instead of relying on the accessor for that specific table. +There's no live cross-service comparison at test time (Rails' test DB and Perl's dev DB aren't the same database). +Instead, parity is established once, manually, then frozen: + +1. Create a throwaway test empire directly against the shared dev DB — + `perl -Ilib bin/make_rails_test_empire.pl ""` (run inside the `lacuna-server` container; mirrors + `t/TestHelper.pm`'s `generate_test_empire`, working around a pre-existing `probes` table / MySQL 5.7 reserved-word + incompatibility in `Empire#found` by inserting the empire directly and letting the caller seed a home + planet/session). +2. Hit the real Perl JSON-RPC endpoint with that session + (`curl -X POST http://localhost:3050/ -d '{"jsonrpc":"2.0","id":1,"method":"get_status","params":[...]}'`) + and save the `result` payload as `lacuna/test/fixtures/files//*_golden.json`. +3. Transcribe the _exact_ underlying DB row values (raw `SELECT *` from MySQL, not values you intended to set — Perl's + own background ticking/scheduling can silently mutate rows between when you seed and when you capture) into matching + Rails AR fixtures (`lacuna/test/fixtures/*.yml`, one file per literal table name, e.g. `body.yml` not `bodies.yml`). +4. Assert Rails' controller JSON response equals the golden JSON exactly, ignoring only genuinely non-deterministic + fields (`server.time`, `empire.rpc_count`, `body.surface_version`/`needs_surface_refresh`) — see + `test/support/golden_status_assertions.rb`'s `DEFAULT_IGNORE_PATHS`. Prefer exact equality over subset matching; the + point is to catch missing/extra keys, not just spot-check values. +5. Document the golden/fixture pairing in a README next to the golden JSON (see + `lacuna/test/fixtures/files/get_status/README.md`) — they must be updated together. + +Gotcha: `ActionDispatch::IntegrationTest` already defines a `body` method of its own, which shadows the `body(:label)` +fixture accessor Rails would otherwise generate for `test/fixtures/body.yml` — reference known fixture IDs directly in +controller/integration tests instead of relying on the accessor for that specific table. diff --git a/README.md b/README.md index ec82bc0d..a95f42f0 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ # TLE Community Server -The files contained herein are represent the code that drives the server for the -game called "The Lacuna Expanse". +The files contained herein are represent the code that drives the server for the game called "The Lacuna Expanse". This code is distributed under the terms set forth in [info/license.md](info/license.md). For more information about The Lacuna Expanse visit http://www.lacunaexpanse.com/ -For more information about The Lacuna Expanse Developers Program visit -http://www.lacunaexpanse.com/developers +For more information about The Lacuna Expanse Developers Program visit http://www.lacunaexpanse.com/developers diff --git a/bin/puppet/colony_setup.js b/bin/puppet/colony_setup.js index d34d8ac6..ba78b27e 100644 --- a/bin/puppet/colony_setup.js +++ b/bin/puppet/colony_setup.js @@ -1,123 +1,123 @@ [ - { "class" : "Lacuna::DB::Result::Building::Permanent::BlackHoleGenerator", "level" : "30", "x" : "-5", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::GratchsGauntlet", "level" : "30", "x" : "-5", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-5", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-5", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-5", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-5", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-5", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-5", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-5", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-5", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-5", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::Shipyard", "level" : "30", "x" : "-4", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::Shipyard", "level" : "30", "x" : "-4", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-4", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-4", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-4", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-4", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-4", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-4", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-4", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-4", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-4", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::Shipyard", "level" : "30", "x" : "-3", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::Shipyard", "level" : "30", "x" : "-3", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-3", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-3", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-3", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::Shipyard", "level" : "30", "x" : "-2", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::Shipyard", "level" : "30", "x" : "-2", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-2", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SAW", "level" : "30", "x" : "-2", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::LCOTi", "level" : "30", "x" : "-1", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::LCOTb", "level" : "30", "x" : "-1", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::LCOTc", "level" : "30", "x" : "-1", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::Intelligence", "level" : "30", "x" : "-1", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::Observatory", "level" : "30", "x" : "-1", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Development", "level" : "30", "x" : "-1", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-1", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-1", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-1", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-1", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "-1", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::LCOTh", "level" : "30", "x" : "0", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::LCOTa", "level" : "30", "x" : "0", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::LCOTd", "level" : "30", "x" : "0", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::Security", "level" : "30", "x" : "0", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::Archaeology", "level" : "30", "x" : "0", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::PlanetaryCommand", "level" : "30", "x" : "0", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "0", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "0", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "0", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "0", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "0", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::LCOTg", "level" : "30", "x" : "1", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::LCOTf", "level" : "30", "x" : "1", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::LCOTe", "level" : "30", "x" : "1", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::Espionage", "level" : "30", "x" : "1", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::Transporter", "level" : "30", "x" : "1", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Trade", "level" : "30", "x" : "1", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "1", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "1", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "1", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "1", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "1", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::Waste::Sequestration", "level" : "30", "x" : "2", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::PilotTraining", "level" : "30", "x" : "2", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::MunitionsLab", "level" : "30", "x" : "2", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::Propulsion", "level" : "30", "x" : "2", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::CloakingLab", "level" : "30", "x" : "2", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Oversight", "level" : "30", "x" : "2", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "2", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "2", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "2", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "2", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "2", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::TheftTraining", "level" : "30", "x" : "3", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::PoliticsTraining", "level" : "30", "x" : "3", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::MayhemTraining", "level" : "30", "x" : "3", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::IntelTraining", "level" : "30", "x" : "3", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::CitadelOfKnope", "level" : "30", "x" : "3", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::OracleOfAnid", "level" : "30", "x" : "3", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "3", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "3", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "3", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "3", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "3", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::Ravine", "level" : "30", "x" : "4", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::SpaceJunkPark", "level" : "30", "x" : "4", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::GreatBallOfJunk", "level" : "30", "x" : "4", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::KalavianRuins", "level" : "30", "x" : "4", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::GeoThermalVent", "level" : "30", "x" : "4", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::Volcano", "level" : "30", "x" : "4", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::AlgaePond", "level" : "30", "x" : "4", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "4", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "4", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "4", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "4", "y" : "5" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::InterDimensionalRift", "level" : "30", "x" : "5", "y" : "-5" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::PyramidJunkSculpture", "level" : "30", "x" : "5", "y" : "-4" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::MetalJunkArches", "level" : "30", "x" : "5", "y" : "-3" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::JunkHengeSculpture", "level" : "30", "x" : "5", "y" : "-2" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::CrashedShipSite", "level" : "30", "x" : "5", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::NaturalSpring", "level" : "30", "x" : "5", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::MalcudField", "level" : "30", "x" : "5", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Permanent::PantheonOfHagness", "level" : "30", "x" : "5", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "5", "y" : "3" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "5", "y" : "4" }, - { "class" : "Lacuna::DB::Result::Building::SpacePort", "level" : "30", "x" : "5", "y" : "5" } -] + { class: 'Lacuna::DB::Result::Building::Permanent::BlackHoleGenerator', level: '30', x: '-5', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::Permanent::GratchsGauntlet', level: '30', x: '-5', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-5', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-5', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-5', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-5', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-5', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-5', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-5', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-5', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-5', y: '5' }, + { class: 'Lacuna::DB::Result::Building::Shipyard', level: '30', x: '-4', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::Shipyard', level: '30', x: '-4', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-4', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-4', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-4', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-4', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-4', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-4', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-4', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-4', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-4', y: '5' }, + { class: 'Lacuna::DB::Result::Building::Shipyard', level: '30', x: '-3', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::Shipyard', level: '30', x: '-3', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-3', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-3', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-3', y: '5' }, + { class: 'Lacuna::DB::Result::Building::Shipyard', level: '30', x: '-2', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::Shipyard', level: '30', x: '-2', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-2', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SAW', level: '30', x: '-2', y: '5' }, + { class: 'Lacuna::DB::Result::Building::LCOTi', level: '30', x: '-1', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::LCOTb', level: '30', x: '-1', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::LCOTc', level: '30', x: '-1', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::Intelligence', level: '30', x: '-1', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::Observatory', level: '30', x: '-1', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Development', level: '30', x: '-1', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-1', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-1', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-1', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-1', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '-1', y: '5' }, + { class: 'Lacuna::DB::Result::Building::LCOTh', level: '30', x: '0', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::LCOTa', level: '30', x: '0', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::LCOTd', level: '30', x: '0', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::Security', level: '30', x: '0', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::Archaeology', level: '30', x: '0', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::PlanetaryCommand', level: '30', x: '0', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '0', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '0', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '0', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '0', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '0', y: '5' }, + { class: 'Lacuna::DB::Result::Building::LCOTg', level: '30', x: '1', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::LCOTf', level: '30', x: '1', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::LCOTe', level: '30', x: '1', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::Espionage', level: '30', x: '1', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::Transporter', level: '30', x: '1', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Trade', level: '30', x: '1', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '1', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '1', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '1', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '1', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '1', y: '5' }, + { class: 'Lacuna::DB::Result::Building::Waste::Sequestration', level: '30', x: '2', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::PilotTraining', level: '30', x: '2', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::MunitionsLab', level: '30', x: '2', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::Propulsion', level: '30', x: '2', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::CloakingLab', level: '30', x: '2', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Oversight', level: '30', x: '2', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '2', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '2', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '2', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '2', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '2', y: '5' }, + { class: 'Lacuna::DB::Result::Building::TheftTraining', level: '30', x: '3', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::PoliticsTraining', level: '30', x: '3', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::MayhemTraining', level: '30', x: '3', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::IntelTraining', level: '30', x: '3', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::Permanent::CitadelOfKnope', level: '30', x: '3', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Permanent::OracleOfAnid', level: '30', x: '3', y: '0' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '3', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '3', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '3', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '3', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '3', y: '5' }, + { class: 'Lacuna::DB::Result::Building::Permanent::Ravine', level: '30', x: '4', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::Permanent::SpaceJunkPark', level: '30', x: '4', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::Permanent::GreatBallOfJunk', level: '30', x: '4', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::Permanent::KalavianRuins', level: '30', x: '4', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::Permanent::GeoThermalVent', level: '30', x: '4', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Permanent::Volcano', level: '30', x: '4', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Permanent::AlgaePond', level: '30', x: '4', y: '1' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '4', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '4', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '4', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '4', y: '5' }, + { class: 'Lacuna::DB::Result::Building::Permanent::InterDimensionalRift', level: '30', x: '5', y: '-5' }, + { class: 'Lacuna::DB::Result::Building::Permanent::PyramidJunkSculpture', level: '30', x: '5', y: '-4' }, + { class: 'Lacuna::DB::Result::Building::Permanent::MetalJunkArches', level: '30', x: '5', y: '-3' }, + { class: 'Lacuna::DB::Result::Building::Permanent::JunkHengeSculpture', level: '30', x: '5', y: '-2' }, + { class: 'Lacuna::DB::Result::Building::Permanent::CrashedShipSite', level: '30', x: '5', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Permanent::NaturalSpring', level: '30', x: '5', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Permanent::MalcudField', level: '30', x: '5', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Permanent::PantheonOfHagness', level: '30', x: '5', y: '2' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '5', y: '3' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '5', y: '4' }, + { class: 'Lacuna::DB::Result::Building::SpacePort', level: '30', x: '5', y: '5' }, +]; diff --git a/bin/puppet/station_setup.js b/bin/puppet/station_setup.js index 11bb9084..06d9e1de 100644 --- a/bin/puppet/station_setup.js +++ b/bin/puppet/station_setup.js @@ -1,23 +1,23 @@ [ - { "class" : "Lacuna::DB::Result::Building::Module::StationCommand", "level" : "7", "x" : "0", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Module::Parliament", "level" : "7", "x" : "-1", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Module::ArtMuseum", "level" : "7", "x" : "-3", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Module::CulinaryInstitute","level" : "7", "x" : "-5", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Module::IBS", "level" : "7", "x" : "-1", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Module::OperaHouse", "level" : "7", "x" : "-4", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Module::PoliceStation", "level" : "7", "x" : "0", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-5", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-4", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-3", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-2", "y" : "0" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-5", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-4", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-3", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-2", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "-1", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "0", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "1", "y" : "-1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "0", "y" : "2" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "1", "y" : "1" }, - { "class" : "Lacuna::DB::Result::Building::Module::Warehouse", "level" : "7", "x" : "1", "y" : "2" } -] + { class: 'Lacuna::DB::Result::Building::Module::StationCommand', level: '7', x: '0', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Module::Parliament', level: '7', x: '-1', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Module::ArtMuseum', level: '7', x: '-3', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Module::CulinaryInstitute', level: '7', x: '-5', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Module::IBS', level: '7', x: '-1', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Module::OperaHouse', level: '7', x: '-4', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Module::PoliceStation', level: '7', x: '0', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-5', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-4', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-3', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-2', y: '0' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-5', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-4', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-3', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-2', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '-1', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '0', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '1', y: '-1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '0', y: '2' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '1', y: '1' }, + { class: 'Lacuna::DB::Result::Building::Module::Warehouse', level: '7', x: '1', y: '2' }, +]; diff --git a/docker-compose.deployed.yml b/docker-compose.deployed.yml index 03cb67cd..16bcc4f6 100644 --- a/docker-compose.deployed.yml +++ b/docker-compose.deployed.yml @@ -4,7 +4,6 @@ volumes: v2-api-node_modules: services: - ######################## ## BEANSTALKD CONSOLE ## ######################## @@ -80,24 +79,24 @@ services: container_name: lacuna-tailscale hostname: lacuna environment: - - TS_AUTHKEY=${TAILSCALE_AUTHKEY:?error} - - TS_EXTRA_ARGS=--advertise-tags=tag:container - - TS_SERVE_CONFIG=/config/lacuna.json - - TS_STATE_DIR=/var/lib/tailscale - - TS_USERSPACE=false - - TS_ENABLE_HEALTH_CHECK=true + - TS_AUTHKEY=${TAILSCALE_AUTHKEY:?error} + - TS_EXTRA_ARGS=--advertise-tags=tag:container + - TS_SERVE_CONFIG=/config/lacuna.json + - TS_STATE_DIR=/var/lib/tailscale + - TS_USERSPACE=false + - TS_ENABLE_HEALTH_CHECK=true healthcheck: - test: ['CMD', 'wget', '--spider', '-q', 'http://127.0.0.1:9002/healthz'] - interval: 10s - timeout: 3s + test: ['CMD', 'wget', '--spider', '-q', 'http://127.0.0.1:9002/healthz'] + interval: 10s + timeout: 3s volumes: - - ./data-tailscale:/var/lib/tailscale - - ./etc-docker/tailscale:/config + - ./data-tailscale:/var/lib/tailscale + - ./etc-docker/tailscale:/config devices: - - /dev/net/tun:/dev/net/tun + - /dev/net/tun:/dev/net/tun cap_add: - - net_admin - - sys_module + - net_admin + - sys_module restart: unless-stopped lacuna-nginx: diff --git a/docker-compose.yml b/docker-compose.yml index 0eaba7c9..a9c79cbf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,6 @@ volumes: v2-api-node_modules: services: - ######################## ## BEANSTALKD CONSOLE ## ######################## diff --git a/etc-docker/README.md b/etc-docker/README.md index 8c511c15..74c25cee 100644 --- a/etc-docker/README.md +++ b/etc-docker/README.md @@ -1,3 +1,6 @@ -# Docker-based Configuration File Templates - -This directory contains a number of files **example** configuration files for if you were setting up the Lacuna server using Docker and Docker Compose. To use, create an `etc` directory and copy all these files into it. These files should be fine to use out of the box, however, if you're feeling brave, you may make changes to these files as they will not appear in the git repository. +# Docker-based Configuration File Templates + +This directory contains a number of files **example** configuration files for if you were setting up the Lacuna server +using Docker and Docker Compose. To use, create an `etc` directory and copy all these files into it. These files should +be fine to use out of the box, however, if you're feeling brave, you may make changes to these files as they will not +appear in the git repository. diff --git a/info/license.md b/info/license.md index 6a366447..2980cf8a 100644 --- a/info/license.md +++ b/info/license.md @@ -1,72 +1,52 @@ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 -Copyright (C) 2007 Free Software Foundation, Inc. -Everyone is permitted to copy and distribute verbatim copies -of this license document, but changing it is not allowed. +Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute +verbatim copies of this license document, but changing it is not allowed. Preamble -The GNU General Public License is a free, copyleft license for -software and other kinds of works. - -The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - -When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - -Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - -Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the +works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all +versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use +the GNU General Public License for most of our software; it applies also to any other work released this way by its +authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make +sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive +source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and +that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. +Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: +responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients +the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must +show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer +you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. +For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems +will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although +the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the +software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely +where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we stand ready to extend this provision to those +domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict +development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger +that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. -The precise terms and conditions for copying, distribution and -modification follow. +The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS @@ -74,142 +54,102 @@ modification follow. "This License" refers to version 3 of the GNU General Public License. -"Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - -"The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - -To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - -A "covered work" means either the unmodified Program or a work based -on the Program. - -To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - -To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". +"Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, +other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work +"based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily +liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. +Propagation includes copying, distribution (with or without modification), making available to the public, and in some +countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction +with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and +prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no +warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this +License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. -The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - -A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - -The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - -The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - -The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - -The Corresponding Source for a work in source code form is that -same work. +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means +any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, +or, in the case of interfaces specified for a particular programming language, one that is widely used among developers +working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in +the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to +enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is +available to the public in source code form. A "Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a +compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and +(for an executable work) run the object code and to modify the work, including scripts to control those activities. +However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs +which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding +Source includes interface definition files associated with source files for the work, and the source code for shared +libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data +communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the +Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. -All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - -You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided +the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. +The output from running a covered work is covered by this License only if the output, given its content, constitutes a +covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license +otherwise remains in force. You may convey covered works to others for the sole purpose of having them make +modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do not control copyright. Those thus making or running +the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that +prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not +allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. -No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling +obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or +restricting circumvention of such measures. -When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the +extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you +disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, +your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. -You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating +that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices +of the absence of any warranty; and give all recipients a copy of this License along with the Program. -You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for +a fee. 5. Conveying Modified Source Versions. -You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source +code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. @@ -232,22 +172,16 @@ terms of section 4, provided that you also meet all of these conditions: interfaces that do not display Appropriate Legal Notices, your work need not make them do so. -A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of +the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or +distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the +access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. -You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the @@ -290,77 +224,55 @@ in one of these ways: Source of the work are being offered to the general public at no charge under subsection 6d. -A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - -A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - -"Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - -If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - -The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, +need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used +for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In +determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a +particular product received by a particular user, "normally used" refers to a typical or common use of that class of +product, regardless of the status of the particular user or of the way in which the particular user actually uses, or +expects or is expected to use, the product. A product is a consumer product regardless of whether the product has +substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of +the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information +required to install and execute modified versions of a covered work in that User Product from a modified version of its +Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code +is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the +conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to +the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding +Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not +apply if neither you nor any third party retains the ability to install modified object code on the User Product (for +example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support +service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product +in which it has been modified or installed. Access to a network may be denied when the modification itself materially +and adversely affects the operation of the network or violates the rules and protocols for communication across the +network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format +that is publicly documented (and with an implementation available to the public in source code form), and must require +no special password or key for unpacking, reading or copying. 7. Additional Terms. -"Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - -When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of +its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were +included in this License, to the extent that they are valid under applicable law. If additional permissions apply only +to part of the Program, that part may be used separately under those permissions, but the entire Program remains +governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or +from any part of it. (Additional permissions may be written to require their own removal in certain cases when you +modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have +or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by +the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or @@ -385,251 +297,179 @@ that material) supplement the terms of this License with terms: any liability that these contractual assumptions directly impose on those licensors and authors. -All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the +Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with +a term that is a further restriction, you may remove that term. If a license document contains a further restriction but +permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of +that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a +statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as +exceptions; the above requirements apply either way. 8. Termination. -You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - -However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - -Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to +propagate or modify it is void, and will automatically terminate your rights under this License (including any patent +licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated +(a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) +permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days +after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you +of the violation by some reasonable means, this is the first time you have received notice of violation of this License +(for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or +rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not +qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. -You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a +covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not +require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered +work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. -Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - -An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, +modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third +parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or +subdividing an organization, or merging organizations. If propagation of a covered work results from an entity +transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work +the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with +reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For +example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, +and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent +claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. -A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - -A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - -In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - -If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - -A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the +Program is based. The work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already +acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or +selling its contributor version, but do not include claims that would be infringed only as a consequence of further +modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent +sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential +patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its +contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not +to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). +To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent +against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not +available for anyone to copy, free of charge and under the terms of this License, through a publicly available network +server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or +(2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a +manner consistent with the requirements of this License, to extend the patent license to downstream recipients. +"Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in +a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in +that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring +conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing +them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is +automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, +or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You +may not convey a covered work if you are a party to an arrangement with a third party that is in the business of +distributing software, under which you make payment to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a +discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from +those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered +work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to +infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. -If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this +License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to +satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence +you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further +conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License +would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. -Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work +licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the +resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special +requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply +to the combination as such. 14. Revised Versions of this License. -The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to +time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new +problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the +GNU General Public License "or any later version" applies to it, you have the option of following the terms and +conditions either of that numbered version or of any later version published by the Free Software Foundation. If the +Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. -If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, +that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the +Program. -Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. +Later license versions may give you additional or different permissions. However, no additional obligations are imposed +on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING +THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU +ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO +MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, +INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO +LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM +TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. 17. Interpretation of Sections 15 and 16. -If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to +their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil +liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program +in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs -If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve +this is to make it free software which everyone can redistribute and change under these terms. -To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to +most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer +to where the full notice is found. Copyright (C) @@ -649,26 +489,21 @@ the "copyright" line and a pointer to where the full notice is found. Also add information on how to contact you by electronic and paper mail. -If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of +course, your program's commands might be different; for a GUI interface, you would use an "about box". -You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see +You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for +the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . -The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is +a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If +this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/v2-api/argumentMap.json b/v2-api/argumentMap.json index 09f17573..5ac036b8 100644 --- a/v2-api/argumentMap.json +++ b/v2-api/argumentMap.json @@ -8952,10 +8952,7 @@ } ] }, - "namedOnlyArgumentHash": [ - "/body/get_body_status", - "/empire/create" - ], + "namedOnlyArgumentHash": ["/body/get_body_status", "/empire/create"], "namedOnlyFirstPosition": [ "/blackholegenerator/generate_singularity", "/body/get_buildable_locations", diff --git a/v2-api/index.ts b/v2-api/index.ts index 15210355..b8f87479 100644 --- a/v2-api/index.ts +++ b/v2-api/index.ts @@ -5,28 +5,28 @@ import cors from 'cors'; import argumentMap from './argumentMap.json' with { type: 'json' }; const errorCodes = [ - 1000, // Name not available. - 1001, // Invalid password. - 1002, // Object does not exist. - 1003, // Too much information. - 1004, // Password incorrect. - 1005, // Contains invalid characters. - 1006, // Session expired. - 1007, // Overspend. - 1008, // Underspend. - 1009, // Invalid range. - 1010, // Insufficient privileges. - 1011, // Not enough resources in storage. - 1012, // Not enough resources in production. - 1013, // Missing prerequisites. - 1014, // Captcha not valid. - 1015, // Restricted for sitter logins. - 1016, // Needs to solve a captcha. - 1017, // Pending Parliamentary Vote - 1018, // Already Voted - 1100, // Empire not founded. - 1101, // Empire not founded, and you tried to create it, but had the wrong password. - 1200, // Game Over. + 1000, // Name not available. + 1001, // Invalid password. + 1002, // Object does not exist. + 1003, // Too much information. + 1004, // Password incorrect. + 1005, // Contains invalid characters. + 1006, // Session expired. + 1007, // Overspend. + 1008, // Underspend. + 1009, // Invalid range. + 1010, // Insufficient privileges. + 1011, // Not enough resources in storage. + 1012, // Not enough resources in production. + 1013, // Missing prerequisites. + 1014, // Captcha not valid. + 1015, // Restricted for sitter logins. + 1016, // Needs to solve a captcha. + 1017, // Pending Parliamentary Vote + 1018, // Already Voted + 1100, // Empire not founded. + 1101, // Empire not founded, and you tried to create it, but had the wrong password. + 1200, // Game Over. ] as const; type ReqModule = string; @@ -34,25 +34,25 @@ type ReqMethod = string; type MethodRef = `/${ReqModule}/${ReqMethod}`; type Argument = { - name: string; - required: boolean; + name: string; + required: boolean; }; type RPCRequest = { - id: number; - jsonrpc: '2.0'; - method: ReqMethod; - params: any; + id: number; + jsonrpc: '2.0'; + method: ReqMethod; + params: any; }; type RPCError = { - jsonrpc: '2.0'; - id: number; - error: { - code: typeof errorCodes[number]; - message: string; - data?: any; - }; + jsonrpc: '2.0'; + id: number; + error: { + code: (typeof errorCodes)[number]; + message: string; + data?: any; + }; }; // Maps each /module/method the v2 API serves to its legacy positional Perl RPC argument order, @@ -68,7 +68,7 @@ const namedArgumentMapper: Record = argumentMap.positiona const namedOnlyFirstPositionSet: Set = new Set(argumentMap.namedOnlyFirstPosition as MethodRef[]); const namedOnlyArgumentHashSet: Set = new Set(argumentMap.namedOnlyArgumentHash as MethodRef[]); -const port = 5999 +const port = 5999; const app = express(); app.set('trust proxy', 'uniquelocal'); @@ -78,117 +78,117 @@ app.use(morgan('common', { immediate: true })); app.use(bodyParser.json()); app.post('/v2/:module/:method', async (req, res) => { - const { module: reqModule, method: reqMethod } = req.params; - const methodRef: MethodRef = `/${reqModule}/${reqMethod}`; - const token = req.headers['authorization']?.startsWith('Token') ? - req.headers['authorization'].split(' ')[1] : - undefined; - - const prepareBody = (data: any): RPCRequest | RPCError => { - console.log('handling body', data); - const body: RPCRequest = { - id: 1, - jsonrpc: '2.0', - method: reqMethod, - params: null, - }; - - if (data['jsonrpc']) { - body.id = data['id']; - body.params = data['params']; - } else if (Array.isArray(data) || (typeof data === 'object' && data !== null)) { - body.params = data; - } - - // Every method the v2 API serves must be accounted for in the generated argument map - - // either as a positional conversion or as a known named-only passthrough. A method - // reaching neither means it wasn't found in the OpenAPI spec / Perl backend when the map - // was generated (or the spec and backend have drifted since) - fail loudly rather than - // guess at an unverified argument order. - if (!namedArgumentMapper[methodRef] && !namedOnlyFirstPositionSet.has(methodRef) && !namedOnlyArgumentHashSet.has(methodRef)) { - return { - id: 1, - jsonrpc: '2.0', - error: { - code: 1002, - message: `Method ${methodRef} is not recognized by the v2 API's argument map.`, - data: { methodRef }, - }, - }; - } + const { module: reqModule, method: reqMethod } = req.params; + const methodRef: MethodRef = `/${reqModule}/${reqMethod}`; + const token = req.headers['authorization']?.startsWith('Token') + ? req.headers['authorization'].split(' ')[1] + : undefined; + + const prepareBody = (data: any): RPCRequest | RPCError => { + console.log('handling body', data); + const body: RPCRequest = { + id: 1, + jsonrpc: '2.0', + method: reqMethod, + params: null, + }; - // Use the mapping to convert named args into legacy positional arguments - // This quasi-proxy approach allows us to maintain backwards compatibility with - // previous iterations of the game/scripts as well as inject some validation when helpful. - if (!Array.isArray(body.params) && !!namedArgumentMapper[methodRef]) { - const newArgList = [...namedArgumentMapper[methodRef]]; - - for (const arg of newArgList) { - if (arg.required && typeof body.params[arg.name] === 'undefined' || body.params[arg.name] === null) { - return { - id: 1, - jsonrpc: '2.0', - error: { - code: 1002, - message: `Parameter ${arg.name} required by v2 API but not provided.`, - data: { - methodRef, - schema: newArgList, - }, - }, - }; - } - } - - body.params = [...newArgList.map(({name}) => body.params[name])]; - } + if (data['jsonrpc']) { + body.id = data['id']; + body.params = data['params']; + } else if (Array.isArray(data) || (typeof data === 'object' && data !== null)) { + body.params = data; + } - // The legacy backend's dispatcher only accepts a hashref/hash-style method's (namedOnly) - // single argument when it arrives as a one-element params array - sending the named - // object directly as `params` makes it flatten the object's key/value pairs into - // positional args instead, which crashes those methods (confirmed via curl against - // /map/get_star_map: bare-object params throws "Can't use string (...) as a HASH ref"). - // However that said.. - if (namedOnlyFirstPositionSet.has(methodRef) && !Array.isArray(body.params) && body.params !== null) { - body.params = [token ? { session_id: token, ...body.params } : body.params]; - } + // Every method the v2 API serves must be accounted for in the generated argument map - + // either as a positional conversion or as a known named-only passthrough. A method + // reaching neither means it wasn't found in the OpenAPI spec / Perl backend when the map + // was generated (or the spec and backend have drifted since) - fail loudly rather than + // guess at an unverified argument order. + if ( + !namedArgumentMapper[methodRef] && + !namedOnlyFirstPositionSet.has(methodRef) && + !namedOnlyArgumentHashSet.has(methodRef) + ) { + return { + id: 1, + jsonrpc: '2.0', + error: { + code: 1002, + message: `Method ${methodRef} is not recognized by the v2 API's argument map.`, + data: { methodRef }, + }, + }; + } - // .. there are cases when we need to support a bare hash being passed in as well! - else if (namedOnlyArgumentHashSet.has(methodRef) && !Array.isArray(body.params) && body.params !== null) { - body.params = token ? { session_id: token, ...body.params } : body.params; - } + // Use the mapping to convert named args into legacy positional arguments + // This quasi-proxy approach allows us to maintain backwards compatibility with + // previous iterations of the game/scripts as well as inject some validation when helpful. + if (!Array.isArray(body.params) && !!namedArgumentMapper[methodRef]) { + const newArgList = [...namedArgumentMapper[methodRef]]; - else if (methodRef !== '/empire/login' && !!token && body.params !== null) { - body.params = Array.isArray(body.params) ? - [token, ...body.params] : - { session_id: token, ...body.params}; + for (const arg of newArgList) { + if ((arg.required && typeof body.params[arg.name] === 'undefined') || body.params[arg.name] === null) { + return { + id: 1, + jsonrpc: '2.0', + error: { + code: 1002, + message: `Parameter ${arg.name} required by v2 API but not provided.`, + data: { + methodRef, + schema: newArgList, + }, + }, + }; } + } - return body; + body.params = [...newArgList.map(({ name }) => body.params[name])]; } - const body = prepareBody(req.body ?? {}); - - if ('error' in body) { - console.error('Processing/validation error', body); - return res.status(500).json(body); + // The legacy backend's dispatcher only accepts a hashref/hash-style method's (namedOnly) + // single argument when it arrives as a one-element params array - sending the named + // object directly as `params` makes it flatten the object's key/value pairs into + // positional args instead, which crashes those methods (confirmed via curl against + // /map/get_star_map: bare-object params throws "Can't use string (...) as a HASH ref"). + // However that said.. + if (namedOnlyFirstPositionSet.has(methodRef) && !Array.isArray(body.params) && body.params !== null) { + body.params = [token ? { session_id: token, ...body.params } : body.params]; } - console.log(`hitting /${reqModule} with:`, body); - const response = await fetch(`http://lacuna-server:5000/${reqModule}`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(body), - }); - const result = await response.json(); - console.log('status', response.status); - console.log('result', result); + // .. there are cases when we need to support a bare hash being passed in as well! + else if (namedOnlyArgumentHashSet.has(methodRef) && !Array.isArray(body.params) && body.params !== null) { + body.params = token ? { session_id: token, ...body.params } : body.params; + } else if (methodRef !== '/empire/login' && !!token && body.params !== null) { + body.params = Array.isArray(body.params) ? [token, ...body.params] : { session_id: token, ...body.params }; + } - res.status(response.status).json(result); + return body; + }; + + const body = prepareBody(req.body ?? {}); + + if ('error' in body) { + console.error('Processing/validation error', body); + return res.status(500).json(body); + } + + console.log(`hitting /${reqModule} with:`, body); + const response = await fetch(`http://lacuna-server:5000/${reqModule}`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify(body), + }); + const result = await response.json(); + console.log('status', response.status); + console.log('result', result); + + res.status(response.status).json(result); }); app.listen(port, () => { - console.log(`TLE Community v2 API app listening on port ${port}`) + console.log(`TLE Community v2 API app listening on port ${port}`); }); diff --git a/v2-api/package-lock.json b/v2-api/package-lock.json index b652f0e5..dc89b85b 100644 --- a/v2-api/package-lock.json +++ b/v2-api/package-lock.json @@ -1,1073 +1,1073 @@ { - "name": "lacuna-v2-api", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "lacuna-v2-api", - "version": "1.0.0", - "dependencies": { - "body-parser": "^2.2.0", - "cors": "^2.8.5", - "express": "^5.1.0", - "morgan": "^1.10.1" - }, - "devDependencies": { - "@types/cors": "^2.8.19", - "@types/express": "^5.0.3", - "@types/morgan": "^1.9.10", - "typescript": "^5.9.2" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.6", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", - "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/cors": { - "version": "2.8.19", - "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", - "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/express": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.3.tgz", - "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^5.0.0", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.7.tgz", - "integrity": "sha512-R+33OsgWw7rOhD1emjU7dzCDHucJrgJXMA5PYCzJxVil0dsyx5iBEPHqpPfiKNJQb7lZ1vxwoLR4Z87bBUpeGQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", - "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/morgan": { - "version": "1.9.10", - "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.10.tgz", - "integrity": "sha512-sS4A1zheMvsADRVfT0lYbJ4S9lmsey8Zo2F7cnbYjWHP67Q0AwMYuuzLlkIM2N8gAbb9cubhIVFwcIN2XyYCkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "24.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", - "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~7.10.0" - } - }, - "node_modules/@types/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/send": { - "version": "0.17.5", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.5.tgz", - "integrity": "sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.8", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.8.tgz", - "integrity": "sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "license": "MIT", - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "license": "MIT", - "dependencies": { - "safe-buffer": "5.1.2" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/basic-auth/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/body-parser": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", - "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==", - "license": "MIT", - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.6.3", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "license": "MIT", - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "license": "MIT", - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "license": "MIT" - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "license": "MIT" - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", - "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", - "license": "MIT", - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.2.0", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", - "cookie": "^0.7.1", - "cookie-signature": "^1.2.1", - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "finalhandler": "^2.1.0", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "merge-descriptors": "^2.0.0", - "mime-types": "^3.0.0", - "on-finished": "^2.4.1", - "once": "^1.4.0", - "parseurl": "^1.3.3", - "proxy-addr": "^2.0.7", - "qs": "^6.14.0", - "range-parser": "^1.2.1", - "router": "^2.2.0", - "send": "^1.1.0", - "serve-static": "^2.2.0", - "statuses": "^2.0.1", - "type-is": "^2.0.1", - "vary": "^1.1.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "license": "MIT", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-errors/node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "license": "MIT" - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mime-db": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz", - "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==", - "license": "MIT", - "dependencies": { - "mime-db": "^1.54.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/morgan": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz", - "integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==", - "license": "MIT", - "dependencies": { - "basic-auth": "~2.0.1", - "debug": "2.6.9", - "depd": "~2.0.0", - "on-finished": "~2.3.0", - "on-headers": "~1.1.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/morgan/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/morgan/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/morgan/node_modules/on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/on-headers": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", - "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "license": "MIT", - "engines": { - "node": ">=16" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "license": "MIT", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "license": "MIT", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/router": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", - "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "depd": "^2.0.0", - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "license": "MIT" - }, - "node_modules/send": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz", - "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==", - "license": "MIT", - "dependencies": { - "debug": "^4.3.5", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "mime-types": "^3.0.1", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/serve-static": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz", - "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==", - "license": "MIT", - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.2.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC" - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/type-is": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", - "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", - "license": "MIT", - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typescript": { - "version": "5.9.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", - "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", - "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", - "dev": true, - "license": "MIT" - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" + "name": "lacuna-v2-api", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "lacuna-v2-api", + "version": "1.0.0", + "dependencies": { + "body-parser": "^2.2.0", + "cors": "^2.8.5", + "express": "^5.1.0", + "morgan": "^1.10.1" + }, + "devDependencies": { + "@types/cors": "^2.8.19", + "@types/express": "^5.0.3", + "@types/morgan": "^1.9.10", + "typescript": "^5.9.2" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/cors": { + "version": "2.8.19", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", + "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/express": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.3.tgz", + "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^5.0.0", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.7.tgz", + "integrity": "sha512-R+33OsgWw7rOhD1emjU7dzCDHucJrgJXMA5PYCzJxVil0dsyx5iBEPHqpPfiKNJQb7lZ1vxwoLR4Z87bBUpeGQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/morgan": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.10.tgz", + "integrity": "sha512-sS4A1zheMvsADRVfT0lYbJ4S9lmsey8Zo2F7cnbYjWHP67Q0AwMYuuzLlkIM2N8gAbb9cubhIVFwcIN2XyYCkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", + "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.10.0" + } + }, + "node_modules/@types/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.5", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.5.tgz", + "integrity": "sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.8", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.8.tgz", + "integrity": "sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/basic-auth/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", + "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.0", + "http-errors": "^2.0.0", + "iconv-lite": "^0.6.3", + "on-finished": "^2.4.1", + "qs": "^6.14.0", + "raw-body": "^3.0.0", + "type-is": "^2.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/content-disposition": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", + "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", + "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.0", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/finalhandler": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", + "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-errors/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz", + "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/morgan": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz", + "integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==", + "license": "MIT", + "dependencies": { + "basic-auth": "~2.0.1", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-finished": "~2.3.0", + "on-headers": "~1.1.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/morgan/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/morgan/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/morgan/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", + "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", + "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", + "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.6.3", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/send": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz", + "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==", + "license": "MIT", + "dependencies": { + "debug": "^4.3.5", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "mime-types": "^3.0.1", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/serve-static": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz", + "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/type-is": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", + "license": "MIT", + "dependencies": { + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" } + } } diff --git a/v2-api/package.json b/v2-api/package.json index 41c12afd..83678ffc 100644 --- a/v2-api/package.json +++ b/v2-api/package.json @@ -1,21 +1,21 @@ { - "name": "lacuna-v2-api", - "version": "1.0.0", - "description": "Proxy util for TLE Community", - "author": "Natalie Rose (https://nataliethistime.com)", - "type": "module", - "private": true, - "main": "index.js", - "dependencies": { - "body-parser": "^2.2.0", - "cors": "^2.8.5", - "express": "^5.1.0", - "morgan": "^1.10.1" - }, - "devDependencies": { - "@types/cors": "^2.8.19", - "@types/express": "^5.0.3", - "@types/morgan": "^1.9.10", - "typescript": "^5.9.2" - } + "name": "lacuna-v2-api", + "version": "1.0.0", + "description": "Proxy util for TLE Community", + "author": "Natalie Rose (https://nataliethistime.com)", + "type": "module", + "private": true, + "main": "index.js", + "dependencies": { + "body-parser": "^2.2.0", + "cors": "^2.8.5", + "express": "^5.1.0", + "morgan": "^1.10.1" + }, + "devDependencies": { + "@types/cors": "^2.8.19", + "@types/express": "^5.0.3", + "@types/morgan": "^1.9.10", + "typescript": "^5.9.2" + } } diff --git a/v2-api/tsconfig.json b/v2-api/tsconfig.json index 52c38c73..022a1622 100644 --- a/v2-api/tsconfig.json +++ b/v2-api/tsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { - "noEmit": true, - "target": "esnext", - "module": "nodenext", - "rewriteRelativeImportExtensions": true, - "erasableSyntaxOnly": true, - "verbatimModuleSyntax": true + "noEmit": true, + "target": "esnext", + "module": "nodenext", + "rewriteRelativeImportExtensions": true, + "erasableSyntaxOnly": true, + "verbatimModuleSyntax": true } -} +} diff --git a/var/wrapper.html b/var/wrapper.html index 8b988bb4..a0628de5 100644 --- a/var/wrapper.html +++ b/var/wrapper.html @@ -1,120 +1,122 @@ - - -%s - -%s - - -%s - + + + %s + + %s + + + %s + diff --git a/var/www/public/resources.json b/var/www/public/resources.json index 01fd33e1..1a748cc7 100644 --- a/var/www/public/resources.json +++ b/var/www/public/resources.json @@ -1,273 +1,911 @@ { - "buildings" : { - "/operahouse" : { "description" : "A source of cultural influence for your space station.", "wiki" : "http://community.lacunaexpanse.com/wiki/opera-house" }, - "/artmuseum" : { "description" : "A source of cultural influence for your space station.", "wiki" : "http://community.lacunaexpanse.com/wiki/art-museum" }, - "/culinaryinstitute" : { "description" : "A source of cultural influence for your space station.", "wiki" : "http://community.lacunaexpanse.com/wiki/culinary-institute" }, - "/stationcommand" : { "description" : "The internal operations of a space station. Controls how big the station can be expanded.", "wiki" : "http://community.lacunaexpanse.com/wiki/station-command-center" }, - "/parliament" : { "description" : "The central government for the star systems that are controlled by a space station. Laws for the jurisdiction are made here.", "wiki" : "http://community.lacunaexpanse.com/wiki/parliament" }, - "/policestation" : { "description" : "The police station manages security on a Space Station. It can help defend the Station against spies as well as detect incoming ships.", "wiki" : "http://community.lacunaexpanse.com/wiki/police-station" }, - "/warehouse" : { "description" : "Resource storage for a space station.", "wiki" : "http://community.lacunaexpanse.com/wiki/warehouse" }, - "/ibs" : { "description" : "A means of spreading the culture and influence of a space station's government.", "wiki" : "http://community.lacunaexpanse.com/wiki/interstellar-broadcast-system" }, - "/ssla" : { "description" : "Allows the construction of Space Station Lab modules. Requires four plots, and this is the top left corner of the building.", "wiki" : "http://community.lacunaexpanse.com/wiki/space-station-lab" }, - "/sslb" : { "description" : "Infrastructure required to support Space Station Lab (A).", "wiki" : "http://community.lacunaexpanse.com/wiki/space-station-lab" }, - "/sslc" : { "description" : "Infrastructure required to support Space Station Lab (A).", "wiki" : "http://community.lacunaexpanse.com/wiki/space-station-lab" }, - "/ssld" : { "description" : "Infrastructure required to support Space Station Lab (A).", "wiki" : "http://community.lacunaexpanse.com/wiki/space-station-lab" }, - "/distributioncenter" : { "description" : "A tier two resource storage building. Allows keeping specific resources in reserve.", "wiki" : "http://community.lacunaexpanse.com/wiki/distribution-center" }, - "/saw" : { "description" : "A railgun system used to protect your planet from enemy ships.", "wiki" : "http://community.lacunaexpanse.com/wiki/shield-against-weapons" }, - "/atmosphericevaporator" : { "description" : "Produces water by condensing it from the air and soil.", "wiki" : "http://community.lacunaexpanse.com/wiki/atmospheric-evaporator" }, - "/greatballofjunk" : { "description" : "Eliminate waste and give your citizens something to be proud of at the same time.", "wiki" : "http://community.lacunaexpanse.com/wiki/great-ball-of-junk" }, - "/pyramidjunksculpture" : { "description" : "Eliminate waste and give your citizens something to be proud of at the same time.", "wiki" : "http://community.lacunaexpanse.com/wiki/pyramid-junk-sculpture" }, - "/spacejunkpark" : { "description" : "Eliminate waste and give your citizens something to be proud of at the same time.", "wiki" : "http://community.lacunaexpanse.com/wiki/space-junk-park" }, - "/junkhengesculpture" : { "description" : "Eliminate waste and give your citizens something to be proud of at the same time.", "wiki" : "http://community.lacunaexpanse.com/wiki/junk-henge-sculpture" }, - "/metaljunkarches" : { "description" : "Eliminate waste and give your citizens something to be proud of at the same time.", "wiki" : "http://community.lacunaexpanse.com/wiki/metal-junk-arches" }, - "/deployedbleeder" : { "description" : "Converts planet's resources directly into waste.", "wiki" : "http://community.lacunaexpanse.com/wiki/bleeder" }, - "/oracleofanid" : { "description" : "The all seeing Oracle can help detect enemy threats.", "wiki" : "http://community.lacunaexpanse.com/wiki/oracle-of-anid" }, - "/themepark" : { "description" : "Produces happiness for your citizens through food and entertainment.", "wiki" : "http://community.lacunaexpanse.com/wiki/theme-park" }, - "/geneticslab" : { "description" : "Allows genetic experiments on captured spies to improve your species.", "wiki" : "http://community.lacunaexpanse.com/wiki/genetics-lab" }, - "/massadshenge" : { "description" : "An ancient observatory.", "wiki" : "http://community.lacunaexpanse.com/wiki/massad-s-henge" }, - "/gratchsgauntlet" : { "description" : "The anti-espionage system of the Great Race.", "wiki" : "http://community.lacunaexpanse.com/wiki/gratch-s-gauntlet" }, - "/kasternskeep" : { "description" : "The place from which the Great Race commanded their armies.", "wiki" : "http://community.lacunaexpanse.com/wiki/kastern-s-keep" }, - "/hallsofvrbansk" : { "description" : "The source of ancient wisdom.", "wiki" : "http://community.lacunaexpanse.com/wiki/halls-of-vrbansk" }, - "/libraryofjith" : { "description" : "Where the Great Race kept records of their experiments.", "wiki" : "http://community.lacunaexpanse.com/wiki/library-of-jith" }, - "/thedillonforge" : { "description" : "Where raw ore formed into glyphs and the glyph buildings were born.", "wiki" : "http://community.lacunaexpanse.com/wiki/the-dillon-forge" }, - "/blackholegenerator" : { "description" : "An experimental singularity lab engineered by the Great Race.", "wiki" : "http://community.lacunaexpanse.com/wiki/black-hole-generator" }, - "/supplypod" : { "description" : "Used to hold emergency supplies on a damaged colony or on a fledgling colony.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, - "/subspacesupplydepot" : { "description" : "Helps give a fledgling colony a kickstart.", "wiki" : "http://community.lacunaexpanse.com/wiki/subspace-supply-depot" }, - "/pantheonofhagness" : { "description" : "Increases the number of available plots on your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/pantheon-of-hagness" }, - "/crashedshipsite" : { "description" : "Harvest technology from a crashed ship to make your own ships better.", "wiki" : "http://community.lacunaexpanse.com/wiki/crashed-ship-site" }, - "/citadelofknope" : { "description" : "Enhances defensive value of your colony against hostile ships and reduces damage taken from fissure debris.", "wiki" : "http://community.lacunaexpanse.com/wiki/citadel-of-knope" }, - "/ravine" : { "description" : "A natural place to store waste.", "wiki" : "http://community.lacunaexpanse.com/wiki/ravine" }, - "/fissure" : { "description" : "The first sign of a dying planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/fissure" }, - "/amalgusmeadow" : { "description" : "A wild meadow filled with wild amalgus beans.", "wiki" : "http://community.lacunaexpanse.com/wiki/amalgus-meadow" }, - "/dentonbrambles" : { "description" : "A thorny patch of brambles, who's roots happen to be the delicious denton roots.", "wiki" : "http://community.lacunaexpanse.com/wiki/denton-brambles" }, - "/malcudfield" : { "description" : "A natural source of food.", "wiki" : "http://community.lacunaexpanse.com/wiki/malcud-field" }, - "/lapisforest" : { "description" : "A natural source of food.", "wiki" : "http://community.lacunaexpanse.com/wiki/lapis-forest" }, - "/algaepond" : { "description" : "A natural source of food.", "wiki" : "http://community.lacunaexpanse.com/wiki/algae-pond" }, - "/beeldebannest" : { "description" : "A natural source of food.", "wiki" : "http://community.lacunaexpanse.com/wiki/beeldeban-nest" }, - "/geothermalvent" : { "description" : "A natural source of energy from the planet's core.", "wiki" : "http://community.lacunaexpanse.com/wiki/geo-thermal-vent" }, - "/naturalspring" : { "description" : "A natural source of water from the planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/natural-spring" }, - "/interdimensionalrift" : { "description" : "The Great Race somehow learned a technique to create a pocket of subspace with a door into our world. This allowed them to store lots of resources, without taking up much space.", "wiki" : "http://community.lacunaexpanse.com/wiki/interdimensional-rift" }, - "/templeofthedrajilites" : { "description" : "The Temple of a group of star gazers from the Great Race. It was their belief that through ritual they could see other worlds.", "wiki" : "http://community.lacunaexpanse.com/wiki/temple-of-the-drajilites" }, - "/sand" : { "description" : "Decoration for your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/patch-of-sand" }, - "/grove" : { "description" : "Decoration for your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/grove-of-trees" }, - "/lagoon" : { "description" : "Decoration for your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/lagoon" }, - "/kalavianruins" : { "description" : "Attracts tourists and creates a sense of wonder for locals, increasing the happiness of your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/kalavian-ruins" }, - "/essentiavein" : { "description" : "Produces trace amounts of Essentia.", "wiki" : "http://community.lacunaexpanse.com/wiki/essentia-vein" }, - "/volcano" : { "description" : "A natural source of ore.", "wiki" : "http://community.lacunaexpanse.com/wiki/volcano" }, - "/luxuryhousing" : { "description" : "Produces more happiness than the Entertainment District, but costs more too.", "wiki" : "http://community.lacunaexpanse.com/wiki/luxury-housing" }, - "/pilottraining" : { "description" : "Increases speed and stealth of new piloted ships, and enables building Fighters.", "wiki" : "http://community.lacunaexpanse.com/wiki/pilot-training-facility" }, - "/missioncommand" : { "description" : "Lists available missions in your zone. You can view one mission per level of the Mission Command.", "wiki" : "http://community.lacunaexpanse.com/wiki/mission-command" }, - "/cloakinglab" : { "description" : "Increases the stealth of new ships.", "wiki" : "http://community.lacunaexpanse.com/wiki/cloaking-lab" }, - "/munitionslab" : { "description" : "Enables you to build the Detonator, Snark, and Seeker robotic war ships.", "wiki" : "http://community.lacunaexpanse.com/wiki/munitions-lab" }, - "/crater" : { "description" : "Decoration for your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/crater" }, - "/rockyoutcrop" : { "description" : "Decoration for your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/rocky-outcropping" }, - "/lake" : { "description" : "Decoration for your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/lake" }, - "/beach1" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-1" }, - "/beach2" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-2" }, - "/beach3" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-3" }, - "/beach4" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-4" }, - "/beach5" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-5" }, - "/beach6" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-6" }, - "/beach7" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-7" }, - "/beach8" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-8" }, - "/beach9" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-9" }, - "/beach10" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-10" }, - "/beach11" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-11" }, - "/beach12" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-12" }, - "/beach13" : { "description" : "Decoration for your planet. Use with other beach tiles to create a beach front.", "wiki" : "http://community.lacunaexpanse.com/wiki/beach-13" }, - "/algae" : { "description" : "Produces algae to be used as food by your empire. It also produces a small amount of energy and can be built in any orbit. The higher the level of the cropper the more food and energy it produces.", "wiki" : "http://community.lacunaexpanse.com/wiki/algae-cropper" }, - "/apple" : { "description" : "Allows you to grow apples to feed your empire. You can only grow apples in orbit 3 (its goldilox zone). Food production increases for every level of the orchard. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/apple-orchard" }, - "/archaeology" : { "description" : "Allows you to search through specific types of ore to find Glyphs.", "wiki" : "http://community.lacunaexpanse.com/wiki/archaeology-ministry" }, - "/bean" : { "description" : "Allows you to grow beans to be used as food by your empire. You can only grow beans in orbit 4 (its goldilox zone). The higher the level of the plantation the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/amalgus-bean-plantation" }, - "/beeldeban" : { "description" : "Allows the raising of beeldeban to be used as food for your empire. The higher the building level the more food is produced.", "wiki" : "http://community.lacunaexpanse.com/wiki/beeldeban-herder" }, - "/bread" : { "description" : "Converts wheat from the Wheat Farm at a minimal loss into bread to be used as food by your empire. The conversion rate increases with every level of the Bakery.", "wiki" : "http://community.lacunaexpanse.com/wiki/bakery" }, - "/burger" : { "description" : "Converts fungus from the Malcud Fungus Farm and produces burgers, at a small loss, to food. The higher the building level the more food is converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/burger-packer" }, - "/capitol" : { "description" : "Provides protection from Insurrection, and produces happiness.", "wiki" : "http://community.lacunaexpanse.com/wiki/capitol" }, - "/cheese" : { "description" : "Converts milk from the Dairy Farm into cheese at a small loss to be used as food. The higher the building level the more food is converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/cheese-maker" }, - "/chip" : { "description" : "Converts roots from the Denton Root Farm and turns it into root chips as food for your empire at a minimal loss. The higher the level of the Chip Frier the more food it converts.", "wiki" : "http://community.lacunaexpanse.com/wiki/denton-root-chip-frier" }, - "/cider" : { "description" : "Allows you to convert apples from the Apple Orchard into cider with a small amount of loss. The amount of apples converted into cider increases with the level of the building.", "wiki" : "http://community.lacunaexpanse.com/wiki/apple-cider-bottler" }, - "/corn" : { "description" : "Produces corn to be used as food by your empire. The corn plantation can only be used in orbits 2 and 3. The higher the level of the plantation the more food is produced. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/corn-plantation" }, - "/cornmeal" : { "description" : "Converts corn from the Corn Plantation into corn meal at a small loss to be used as food. The higher the building level the more food is converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/corn-meal-grinder" }, - "/dairy" : { "description" : "Allows you to produce food via dairy cattle. It can only be used in orbit 3 (its goldilox zone). The higher the level of farm the more food it produces. Cows require certain minerals in their diet in order to produce lots of high quality milk. Therefore in order to have a dairy farm you're going to need a good supply of trona.", "wiki" : "http://community.lacunaexpanse.com/wiki/dairy-farm" }, - "/denton" : { "description" : "Produces roots to be used as food by your empire. The roots only grow in orbits 5 and 6 (its goldilox zone). The higher the level of the patch the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/denton-root-patch" }, - "/development" : { "description" : "Allows you to monitor your build queue and subsidize the construction of buildings through the use of Essentia. The higher the level of the building the more buildings you can have in your queue, however the queue still builds in series not in parallel. The number of projects that can be placed in the queue is the level of the ministry plus 1. ", "wiki" : "http://community.lacunaexpanse.com/wiki/development-ministry" }, - "/embassy" : { "description" : "Allows the formation of alliances. It is also a prerequisite to building the Space Station. Each level of the Embassy allows 2 more members to join the alliance. Each level of the embassy allows 1 stash exchange per day, and 10,000 more resources per exchange.", "wiki" : "http://community.lacunaexpanse.com/wiki/embassy" }, - "/energyreserve" : { "description" : "Stores your energy with a minimal amount of loss. Increasing the level of the building raises the amount of energy stored.", "wiki" : "http://community.lacunaexpanse.com/wiki/energy-reserve" }, - "/entertainment" : { "description" : "Increases your empire's happiness by providing a place for your citizens to unwind through activities such as casinos, restaurants, clubs and other amusements. The higher the building level the more happiness is produced. It can also be a source of essentia through its lottery system.", "wiki" : "http://community.lacunaexpanse.com/wiki/entertainment-district" }, - "/espionage" : { "description" : "Allows the construction of spy pods and spy shuttles at the shipyard. It also allows better training of your spies. The higher the building level, the more effective your spies will be applying their trade. ", "wiki" : "http://community.lacunaexpanse.com/wiki/espionage-ministry" }, - "/foodreserve" : { "description" : "Stores your food with a minimal amount of spoilage. It also gives you a report of the types of food you have stored. Increasing the level of this building increases the amount of food that can be stored.", "wiki" : "http://community.lacunaexpanse.com/wiki/food-reserve" }, - "/fission" : { "description" : "Produces energy by splitting atoms. This way of producing energy is very efficient on an waste per energy produced ratio. The higher the building level the more energy is produced. Splitting the atoms non-energenic particles doesn't produce much power, so you'll need radioactive ore to power your fission plant, such as uraninite or monazite.", "wiki" : "http://community.lacunaexpanse.com/wiki/fission-energy-plant" }, - "/fusion" : { "description" : "Produces energy by fusing atoms together. This type of energy is even more efficient than the Fission Energy Plant on a waste per energy produced ratio. Requires a high level University to construct. The higher the building level the more energy is produced. Unfortunately the fusion plant produces enormous amounts of heat as well which requires coolants such as molten lead or salt. Therefore you'll need a good supply of galena or halite to build one.", "wiki" : "http://community.lacunaexpanse.com/wiki/fusion-energy-plant" }, - "/gasgiantlab" : { "description" : "Does research on the gas giant ship which deploys into a gas giant platform. The gas giant platform allows settlement of a gas giant. The higher the building level the higher the level of the platform deployed from the gas giant ship.", "wiki" : "http://community.lacunaexpanse.com/wiki/gas-giant-lab" }, - "/gasgiantplatform" : { "description" : "Increases the available plots on a gas giant.", "wiki" : "http://community.lacunaexpanse.com/wiki/gas-giant-settlement-platform" }, - "/geo" : { "description" : "Produces energy with a minimal amount of waste by using the planets own processes such as wind, waves, solar and geo thermal. The higher the level of the building the more energy is produced.", "wiki" : "http://community.lacunaexpanse.com/wiki/geo-energy-plant" }, - "/hydrocarbon" : { "description" : "Produces large amounts of energy at the cost of producing large amounts of waste by burning hydrocarbons. It also uses significant amounts of ore in the production of this energy. The higher the building level the more energy is produced. Hydrocarbon energy is derived from burning hydrocarbons, so you'll need a good supply of kerogen, methane, or anthracite in order to power it.", "wiki" : "http://community.lacunaexpanse.com/wiki/hydrocarbon-energy-plant" }, - "/intelligence" : { "description" : "Trains spies. You may train 3 spies per level of this building. You may only construct 1 Intelligence Ministry on a planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/intelligence-ministry" }, - "/inteltraining" : { "description" : "Trains spies in the ways of intelligence gathering. You may only construct 1 Intel Training Facility on a planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/intel-training-facility" }, - "/lapis" : { "description" : "Produces lapis to be used as food by your empire. Lapis can only be grown in orbit 2 (its goldilox zone). The higher the level of the orchard the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/lapis-orchard" }, - "/malcud" : { "description" : "Produces fungus to be used as food by your empire. The Farm also consumes a small amount of waste and can be built in any orbit. The higher the level of the farm the more food is produced and waste consumed.", "wiki" : "http://community.lacunaexpanse.com/wiki/malcud-fungus-farm" }, - "/mayhemtraining" : { "description" : "Trains spies in the art of destruction. You may only construct 1 Mayhem Training Facility on a planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/mayhem-training-facility" }, - "/mercenariesguild" : { "description" : "A black market for buying and selling well trained spies.", "wiki" : "http://community.lacunaexpanse.com/wiki/mercenaries-guild" }, - "/mine" : { "description" : "Extracts mineral from your planet in the form of ore. The amounts of each mineral extracted depends on the concentration and composition of the planet. The higher the level of the mine the more ore is extracted.", "wiki" : "http://community.lacunaexpanse.com/wiki/mine" }, - "/miningministry" : { "description" : "Allows you to harvest resources from asteroids. Allows the construction of Mining Platform Ships. Every two levels allows an additional Mining Platform. Each level increases the output of all Mining Platforms controlled by the Ministry.", "wiki" : "http://community.lacunaexpanse.com/wiki/mining-ministry" }, - "/network19" : { "description" : "Your empire's source for up to the minute news in your region of the Expanse. Get updates on what other empire's are doing and what you'd prefer they weren't doing. The Network 19 feed can be manipulated through the use of of espionage and political policy. Well informed people are happy people so the network also produces happiness. The higher the building level the more of the expanse you can get news from and the more happiness is produced. ", "wiki" : "http://community.lacunaexpanse.com/wiki/network-19-affiliate" }, - "/observatory" : { "description" : "Allows the construction of probes and colony ships at the shipyard. It also provides a list of all your active probes and the stars they are observing. A higher building level allows more probes to be constructed.", "wiki" : "http://community.lacunaexpanse.com/wiki/observatory" }, - "/orerefinery" : { "description" : "Increases the amount of ore extracted from each terrestrial ore producing structure by purifying the ore and producing less waste. The higher the refinery level the higher the purification process and even greater amounts of ore are extracted. The ore refinery requires sufficient amounts of either sulfur or fluorite being produced in order to process ore.", "wiki" : "http://community.lacunaexpanse.com/wiki/ore-refinery" }, - "/orestorage" : { "description" : "Store the ore that is pulled from the Mine. The higher the level of the building the more ore can be stored.", "wiki" : "http://community.lacunaexpanse.com/wiki/ore-storage-tanks" }, - "/oversight" : { "description" : "Reduces the amount of time buildings take to upgrade through better project management. All buildings will be produced 3% faster per level of the Oversight Ministry.", "wiki" : "http://community.lacunaexpanse.com/wiki/oversight-ministry" }, - "/pancake" : { "description" : "Converts potatoes from the Potato Plantation into pancakes at a minimal loss to be used as food by your empire. The higher the level of the factory, the more food is converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/pancake-factory" }, - "/park" : { "description" : "A place for your people to gather and enjoy nature or hold large scale public events. The Park allows you to throw parties for your citizens to increase their happiness. The more varieties of foods you bring to the party the more happiness is produced.", "wiki" : "http://community.lacunaexpanse.com/wiki/park" }, - "/pie" : { "description" : "Converts lapis from the Lapis Orchard into pies at minimal loss to be used as food by your empire. The higher the level of the bakery, the more food is converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/pie-bakery" }, - "/planetarycommand" : { "description" : "Houses the central government for your empire. This is your \"flag in the ground\" that lets everyone know you've staked your claim to a planet. It provides some basic resources and and storage for those resources both of which increase with the level of this building. The planetary command also provides some critical reports on your planetary activities such as total resource production and total resource storage for the planet it's constructed on.", "wiki" : "http://community.lacunaexpanse.com/wiki/planetary-command-center" }, - "/politicstraining" : { "description" : "Trains spies in the dark art of social engineering. You may only construct 1 Politics Training Facility on a planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/politics-training-facility" }, - "/potato" : { "description" : "Allows you to grow potatoes to be used as food for you empire. The patch can only be used in orbits 3 and 4 (its goldilox zone). The higher the level of the patch the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/potato-patch" }, - "/propulsion" : { "description" : "Allows your ships to move faster through space by way of upgraded engines. The higher the building level the faster your ships move. All ships originating from this planet are affected. In order to produce high performance engines you'll need a good supply of structural minerals such as rutile, chromite, bauxite, magnetite, beryl, or goethite.", "wiki" : "http://community.lacunaexpanse.com/wiki/propulsion-system-factory" }, - "/security" : { "description" : "Increases the effectiveness of your counter-spies and allows you to detect foreign spies. The higher the building level the more training your counter-spies receive. The building will be able to detect foreign spies with a level equal to or lower than the building. It will also help detect incoming ships containing spies.", "wiki" : "http://community.lacunaexpanse.com/wiki/security-ministry" }, - "/shake" : { "description" : "Converts the beeldeban that are harvested in the Beeldeban Herder into protein shakes, at a small loss, to be used as food. The higher the level of the factory the more food is converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/beeldeban-protein-shake-factory" }, - "/shipyard" : { "description" : "Constructs ships. The types of ships that can be built in the Shipyard are dependent on some of the other buildings on your planet. The higher the building level the faster ships are produced. In addition, you may queue one ship per level of shipyard.", "wiki" : "http://community.lacunaexpanse.com/wiki/shipyard" }, - "/singularity" : { "description" : "Produces energy by pulling it from subspace. This is the cleanest and most powerful form of energy in the universe. This is extremely expensive to build and requires a very high level University to construct. The higher the building level the more energy is produced.", "wiki" : "http://community.lacunaexpanse.com/wiki/singularity-energy-plant" }, - "/soup" : { "description" : "Converts beans from the Amalgus Bean Plantation at a minimal loss into soup to be used as food for your empire. The higher the level of the cannery the more soup is produced.", "wiki" : "http://community.lacunaexpanse.com/wiki/soup-cannery" }, - "/spaceport" : { "description" : "Acts as the hangar and control tower for your ships. Here is where you can monitor your ships that are in transit. Be careful as the Space Port can only hold a limited number of ships, if there is no more room in the Space Port when a ship arrives or is built, it will be destroyed. The Space Port can hold double its level in ships and queue its level in ships. ", "wiki" : "http://community.lacunaexpanse.com/wiki/space-port" }, - "/stockpile" : { "description" : "Allows resource buildings to go above level 20. Provides storage.", "wiki" : "http://community.lacunaexpanse.com/wiki/stockpile" }, - "/syrup" : { "description" : "Takes algae from the Algae Cropper and converts it in to Syrup with a small loss to be used as food. The higher the level of the bottler the more food is produced.", "wiki" : "http://community.lacunaexpanse.com/wiki/syrup-bottler" }, - "/thefttraining" : { "description" : "Trains spies in the art of appropriation. You may only construct 1 Theft Training Facility on a planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/theft-training-facility" }, - "/terraforminglab" : { "description" : "The Terraforming Lab is where research is done on the production of terraforming platform ships. Terraforming platform ships deploy into terraforming platforms which allows you to colonize planets your species wouldn't normally be capable of colonizing. The level of the building determines the level of the platform that is deployed from the ship.", "wiki" : "http://community.lacunaexpanse.com/wiki/terraforming-lab" }, - "/terraformingplatform" : { "description" : "Increases the available build space on a planet that is not naturally inhabitable by your species.", "wiki" : "http://community.lacunaexpanse.com/wiki/terraforming-platform" }, - "/trade" : { "description" : "Allows access to the interstellar market. Through it you can set up trades for resources with other empires. This building is a prerequisite to building cargo ships, which carry your trade goods, in the shipyard. The higher the building level the more resources your cargo ships can carry.", "wiki" : "http://community.lacunaexpanse.com/wiki/trade-ministry" }, - "/transporter" : { "description" : "Allows the instant transport of resources to a destination, but requires Essentia. The transporter also allows conversion of resources through trading with the Lacunans. The higher the building level the more goods can be transported.", "wiki" : "http://community.lacunaexpanse.com/wiki/subspace-transporter" }, - "/university" : { "description" : "Is the key to growth for your empire. Other buildings can not be upgraded higher than the university building level plus 1. Your university's level is empire wide where construction level of buildings on other planets is concerned. Many of the more powerful buildings that can be constructed require a very high level University. The University is also a source of happiness for your empire. ", "wiki" : "http://community.lacunaexpanse.com/wiki/university" }, - "/wastedigester" : { "description" : "Converts waste into ore. The higher the building level the more ore is produced and waste consumed.", "wiki" : "http://community.lacunaexpanse.com/wiki/waste-digester" }, - "/wasteenergy" : { "description" : "Produces energy by burning your empire's waste. Producing energy this way is far less efficient than other types of energy production, but the benefit is that waste is reduced. The higher the building level the more energy is produced and waste consumed. In order to build and maintain the blast furnace you need a good supply of insulating ores such as zircon, beryl, and gypsum.", "wiki" : "http://community.lacunaexpanse.com/wiki/waste-energy-plant" }, - "/wasterecycling" : { "description" : "Allows you to manually convert large batches of waste into energy, ore and water. The more waste you convert, the longer it will take to make the resources you want. The higher the level of the building the faster the conversion will take place. You can also spend a small amount of Essentia to convert the waste instantly.", "wiki" : "http://community.lacunaexpanse.com/wiki/waste-recycling-center" }, - "/wasteexchanger" : { "description" : "The Waste Exchanger is a combination of a waste recycling center, waste sequestration well, and a waste treatment center. It tears apart waste at a molecular level and recombines it into useful resources.", "wiki" : "http://community.lacunaexpanse.com/wiki/waste-exchanger" }, - "/wastesequestration" : { "description" : "Stores waste. Waste that is not stored turns into pollution and lowers your empire's happiness. The higher the building level the more waste can be stored.", "wiki" : "http://community.lacunaexpanse.com/wiki/waste-sequestration-well" }, - "/wastetreatment" : { "description" : "Converts waste into water, ore, and energy. Waste treatment requires special chemical compounds derived from halite, sulfur, and trona.", "wiki" : "http://community.lacunaexpanse.com/wiki/waste-treatment-center" }, - "/waterproduction" : { "description" : "Converts energy and ore into water. This is especially useful on planets with low concentrations of water. A higher building level means more resources are converted.", "wiki" : "http://community.lacunaexpanse.com/wiki/water-production-plant" }, - "/waterpurification" : { "description" : "Produces water from the planet's sources. The higher the building level the more water it can purify.", "wiki" : "http://community.lacunaexpanse.com/wiki/water-purification-plant" }, - "/waterreclamation" : { "description" : "Converts waste into water. A higher building level means more resources are converted. If you don't have a good supply of halite or sulfur you cannot treat waste water.", "wiki" : "http://community.lacunaexpanse.com/wiki/water-reclamation-facility" }, - "/waterstorage" : { "description" : "Stores the water you've collected. A higher building level allows more water to be stored.", "wiki" : "http://community.lacunaexpanse.com/wiki/water-storage-tank" }, - "/wheat" : { "description" : "Allows you to grow wheat on your planet. You can only grow wheat on planets that are in orbits 2, 3 or 4 (the goldilox zone). The Farm will produce more wheat for each level it is increased. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/wheat-farm" }, - "/lcota" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure. Be sure to place it where all the plots around it are unoccupied, and on a planet where you have 9 available plots.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcotb" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcotc" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcotd" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcote" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcotf" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcotg" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcoth" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" }, - "/lcoti" : { "description" : "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", "wiki" : "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" } - }, - "ships" : { - "stake" : { "description" : "Allows you to claim a planet prior to your colony ship arriving.", "wiki" : "http://community.lacunaexpanse.com/wiki/stake" }, - "thud" : { "description" : "Temporarily destroys plots on a planet's surface.", "wiki" : "http://community.lacunaexpanse.com/wiki/thud" }, - "sweeper" : { "description" : "An upgraded Fighter whose primary role is offense rather than defense.", "wiki" : "http://community.lacunaexpanse.com/wiki/sweeper" }, - "supply_pod" : { "description" : "Can deliver resources and creates temporary storage for 24 hours on a remote planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, - "supply_pod2" : { "description" : "A larger version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, - "supply_pod3" : { "description" : "A very large version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, - "supply_pod4" : { "description" : "A huge version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, - "placebo" : { "description" : "Use to fake an attack on another player.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, - "placebo2" : { "description" : "A faster and more stealthed version of the Placebo.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, - "placebo3" : { "description" : "A faster and more stealthed version of the Placebo II.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, - "placebo4" : { "description" : "A faster and more stealthed version of the Placebo III.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, - "placebo5" : { "description" : "A faster and more stealthed version of the Placebo IV.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, - "placebo6" : { "description" : "A faster and more stealthed version of the Placebo V.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, - "probe" : { "description" : "Allows you to view the bodies of a system if sent to a star. Probes are shared among members of the same alliance.", "wiki" : "http://community.lacunaexpanse.com/wiki/probe" }, - "colony_ship" : { "description" : "Use to create a new colony for your empire.", "wiki" : "http://community.lacunaexpanse.com/wiki/colony-ship" }, - "short_range_colony_ship" : { "description" : "Use to create a new colony for your empire. Very fast, but with a limited range. Useful within your own, or very close, star systems.", "wiki" : "http://community.lacunaexpanse.com/wiki/short-range-colony-ship" }, - "spy_pod" : { "description" : "Stealthy one way transport for a spy.", "wiki" : "http://community.lacunaexpanse.com/wiki/spy-pod" }, - "cargo_ship" : { "description" : "Medium transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/cargo-ship" }, - "space_station" : { "description" : "The base hull upon which you can build space station modules to build a complete space station.", "wiki" : "http://community.lacunaexpanse.com/wiki/space-station" }, - "smuggler_ship" : { "description" : "Stealthy transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/smuggler-ship" }, - "mining_platform_ship" : { "description" : "Allows the gathering of resources from asteroids.", "wiki" : "http://community.lacunaexpanse.com/wiki/mining-platform-ship" }, - "terraforming_platform_ship" : { "description" : "Allows you to settle planets your species could not normally colonize.", "wiki" : "http://community.lacunaexpanse.com/wiki/terraforming-platform-ship" }, - "gas_giant_settlement_ship" : { "description" : "Allows you to settle gas giants.", "wiki" : "http://community.lacunaexpanse.com/wiki/gas-giant-settlement-ship" }, - "scow" : { "description" : "Robotic waste transport ship. Can be used to dispose of waste in space.", "wiki" : "http://community.lacunaexpanse.com/wiki/scow" }, - "scow_fast" : { "description" : "Much faster than a normal scow. Robotic waste transport ship. Can be used to dispose of waste in space.", "wiki" : "http://community.lacunaexpanse.com/wiki/scow" }, - "scow_large" : { "description" : "Much larger and a bit slower than a normal scow. Robotic waste transport ship. Can be used to dispose of waste in space.", "wiki" : "http://community.lacunaexpanse.com/wiki/scow" }, - "scow_mega" : { "description" : "Incredibly larger and slower than a normal scow. Almost useless as an attack. Robotic waste transport ship. Can be used to dispose of waste in space.", "wiki" : "http://community.lacunaexpanse.com/wiki/scow" }, - "bleeder" : { "description" : "Robotic war ship. Once deployed on enemy planet, starts stealing resources and converting them into waste.", "wiki" : "http://community.lacunaexpanse.com/wiki/bleeder" }, - "dory" : { "description" : "Small transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/dory" }, - "barge" : { "description" : "Versatile transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/barge" }, - "galleon" : { "description" : "Fast medium transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/galleon" }, - "hulk" : { "description" : "Extra large transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/hulk" }, - "hulk_fast" : { "description" : "Extra large transport ship slightly bigger and much faster than a Hulk. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/hulk" }, - "hulk_huge" : { "description" : "Incredibly large and very slow transport ship, useful for supply chains. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/hulk" }, - "fissure_sealer" : { "description" : "Large slow ship, used to attempt sealing fissures on uninhabited planets.", "wiki" : "http://community.lacunaexpanse.com/wiki/fissure-sealer" }, - "freighter" : { "description" : "Large transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/freighter" }, - "snark" : { "description" : "Single-use robotic bombardment weapon, that can be used to damage buildings on remote planets.", "wiki" : "http://community.lacunaexpanse.com/wiki/snark" }, - "snark2" : { "description" : "An improved version of the Snark, which has four warheads", "wiki" : "http://community.lacunaexpanse.com/wiki/snark" }, - "snark3" : { "description" : "An improved version of the Snark, which has nine warheads", "wiki" : "http://community.lacunaexpanse.com/wiki/snark" }, - "drone" : { "description" : "Single use robotic defense weapon, that can stop enemy attacks before they reach your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/drone" }, - "fighter" : { "description" : "Piloted defense ship that can stop enemy attacks before they reach your planet. Can also be sent to defend other bodies.", "wiki" : "http://community.lacunaexpanse.com/wiki/fighter" }, - "spy_shuttle" : { "description" : "Stealthy transport for up to four spies, that can orbit the target body waiting to pick the spies back up.", "wiki" : "http://community.lacunaexpanse.com/wiki/spy-shuttle" }, - "observatory_seeker" : { "description" : "Variant of the Snark that attacks an Observatory.", "wiki" : "http://community.lacunaexpanse.com/wiki/observatory-seeker" }, - "security_ministry_seeker" : { "description" : "Variant of the Snark that attacks a Security Ministry.", "wiki" : "http://community.lacunaexpanse.com/wiki/security-ministry-seeker" }, - "spaceport_seeker" : { "description" : "Variant of the Snark that attacks a SpacePort.", "wiki" : "http://community.lacunaexpanse.com/wiki/spaceport-seeker" }, - "excavator" : { "description" : "Robotic explorer that searches remote bodies looking for artifacts.", "wiki" : "http://community.lacunaexpanse.com/wiki/excavator" }, - "detonator" : { "description" : "Variant of the Snark that detonates in an electromagnetic pulse, which can be used to destroy probes, mining platforms, or excavators.", "wiki" : "http://community.lacunaexpanse.com/wiki/detonator" }, - "surveyor" : { "description" : "Robotic explorer that snaps a photograph of the surface of a remote planet, and also identifies the buildings in the photograph.", "wiki" : "http://community.lacunaexpanse.com/wiki/surveyor" }, - "scanner" : { "description" : "Robotic explorer that snaps a photograph of the surface of a remote planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/scanner" } - }, - "tips" : [ - "Water Purification Plants are cheap, but slow. If you can afford them, Water Production Plants produce more water.", - "You need at least 3 food types to keep your people happy.", - "Building a Development Ministry will let you queue multiple buildings at once.", - "Buildings are built in series. So if you already have a building upgrading that will take 20 minutes, and you add a building that takes 15 seconds, the second building will take 20:15.", - "Buildings have both a cost and an upkeep. Cost is what it costs to build/upgrade the building. Upkeep is what it costs per hour to run the building.", - "If you have at least 4 food types, every time you build something you'll gain happiness.", - "You can use Essentia in the Development Ministry to auto-complete your entire build queue.", - "If your waste overflows it will create pollution, and that will make your people unhappy.", - "A good build strategy is to upgrade your storage first, then your resource generators, then your University.", - "Try to make sure your resource production will completely fill your available storage at least once per day.", - "If you run out of resources, your people will not be happy.", - "Construction and upgrades produce bulk waste all at once. Be sure you can store it, or the pollution it generates will make your citizens unhappy.", - "Though the planet map shows 121 spaces for buildings, each planet is limited to a certain number of plots. You can see how many plots are remaining in the Planetary Command Center.", - "In order to manage waste or recycle it, you must first store it. Build a Waste Sequestration Well to store waste.", - "Waste can be a very valuable resource. Build waste management buildings like Waste Reclamation, Waste Treatement, or Waste Digesters to turn it into useful resources.", - "You can use Essentia in the Waste Recycling Plant to instantly complete the recycling process.", - "We recommend at least 2 of each type of storage on every planet.", - "If you invite your friends to the game, and a few of them sign up, you'll start getting special buildings as rewards.", - "You can use Essentia in the Shipyard to auto-complete your entire build queue.", - "Knowledge gained from the University is permanent. Even if you demolish the University you still have the knowledge.", - "While you are waiting for your building upgrades to complete, build and send out probes to see what's around you.", - "Building an Oversight Ministry will speed up all of your building build/upgrade times.", - "You can win free Essentia in the Lottery at the Entertainment District.", - "Both the cost and production of buildings rise expontentially. Production rises slightly slower than cost however.", - "As an isolationist you are immune to attack. You are no longer an isolationist if you colonize a second planet, or build an Espionage Ministry or Munitions Lab.", - "Most ships are one use only, meaning once you send them you cannot get them back. Exceptions to this are trade ships like Dories and Cargo Ships.", - "Looking to the future you may want to upgrade your existing energy plants with newer technology as it becomes available.", - "You can use Essentia in the Intelligence Ministry to train spies instantly.", - "It costs 100,000 happiness to colonize your second planet, but it gets much more difficult for each subsequent colony.", - "You can use Essentia in the Park to speed along parties.", - "The University is global. The level of University you built on one planet affects all your planets. The University is the only building that has this ability.", - "As soon as a colony ship arrives at a new planet it begins functioning. Be prepared to deal with it when the ship arrives.", - "When choosing a planet to colonize things to consider are its size, distance from your other colonies, distance from asteroids, ore composition, and water composition.", - "Make sure you have some dories available when you colonize a planet so you can ship resources to the new colony to give it a head start.", - "You can use Essentia in the Subspace Transporter to do instant 1:1 trades of any resource.", - "Spies are the primary form of combat in the game. Send spies to other people's planets and you'll be able to gather information, sabotage infastructure, and steal resources from them.", - "Though you can lose colonies to spies, you cannot ever lose your home planet.", - "Some ores are only found in abundance on asteroids.", - "Resource buildings can only go to level 20, while all other buildings can go to level 30.", - "Glyphs enable you to build incredibly powerful buildings that aren't part of the normal technology tree.", - "You can use Essentia in the Archaeology Ministry to search for glyphs instantly.", - "Drones, Fighters, and Sweepers defend your planet from other players ships.", - "Spies defend your planet from other players spies.", - "Glyph buildings take up no plots.", - "Higher level Spaceports can tell you more information about ships that are coming in from other players.", - "A higher level Security Ministry increases the chance of catching enemy spies as they come and go from your planet.", - "A higher level Security Ministry allows you to see more detail about the enemy spies that are on your planet.", - "You can make a new planet your home planet by building a Capitol building." - ], - "writ_templates" : [ - { "title" : "Non-Agression Mandate", "description" : "Planets in this jurisdiction may not attack anyone inside the jurisdiction." }, - { "title" : "No Munitions", "description" : "Planets in this jurisdiction, except for members of ______ alliance are not allowed to build a Munitions Lab. If you are found with one the penalty shall be _______." }, - { "title" : "No Operatives", "description" : "Planets in this jurisdiction, except for members of ______ alliance are not allowed to build an Espionage Ministry. If you are found with one the penalty shall be _______." }, - { "title" : "Defense Mandate", "description" : "Planets in this jurisdiction are required to come to the aid of the other planets in this jurisdiction when under attack from both foreign and domestic enemies." }, - { "title" : "Confederacy with ______", "description" : "_______ alliance declares a mutual confederation with _______ alliance." }, - { "title" : "NAP with ______", "description" : "_______ alliance declares a non-aggression pact with _______ alliance." }, - { "title" : "Declaration of War", "description" : "_______ alliance declares war on ______ alliance. All citizens in this jurisdiction are required to supply the war effort with all available ships, operatives, and aid packages." }, - { "title" : "Censure of ______", "description" : "We, the members of _______ alliance, hereby declare a formal reprimand of _______ for __________________." }, - { "title" : "Glyph Heresy", "description" : "_______ alliance hereby denounces the existence of the Great Race. Anyone in our jurisdiction found using glyph technology shall be treated cruelly and without mercy." } - ] + "buildings": { + "/operahouse": { + "description": "A source of cultural influence for your space station.", + "wiki": "http://community.lacunaexpanse.com/wiki/opera-house" + }, + "/artmuseum": { + "description": "A source of cultural influence for your space station.", + "wiki": "http://community.lacunaexpanse.com/wiki/art-museum" + }, + "/culinaryinstitute": { + "description": "A source of cultural influence for your space station.", + "wiki": "http://community.lacunaexpanse.com/wiki/culinary-institute" + }, + "/stationcommand": { + "description": "The internal operations of a space station. Controls how big the station can be expanded.", + "wiki": "http://community.lacunaexpanse.com/wiki/station-command-center" + }, + "/parliament": { + "description": "The central government for the star systems that are controlled by a space station. Laws for the jurisdiction are made here.", + "wiki": "http://community.lacunaexpanse.com/wiki/parliament" + }, + "/policestation": { + "description": "The police station manages security on a Space Station. It can help defend the Station against spies as well as detect incoming ships.", + "wiki": "http://community.lacunaexpanse.com/wiki/police-station" + }, + "/warehouse": { + "description": "Resource storage for a space station.", + "wiki": "http://community.lacunaexpanse.com/wiki/warehouse" + }, + "/ibs": { + "description": "A means of spreading the culture and influence of a space station's government.", + "wiki": "http://community.lacunaexpanse.com/wiki/interstellar-broadcast-system" + }, + "/ssla": { + "description": "Allows the construction of Space Station Lab modules. Requires four plots, and this is the top left corner of the building.", + "wiki": "http://community.lacunaexpanse.com/wiki/space-station-lab" + }, + "/sslb": { + "description": "Infrastructure required to support Space Station Lab (A).", + "wiki": "http://community.lacunaexpanse.com/wiki/space-station-lab" + }, + "/sslc": { + "description": "Infrastructure required to support Space Station Lab (A).", + "wiki": "http://community.lacunaexpanse.com/wiki/space-station-lab" + }, + "/ssld": { + "description": "Infrastructure required to support Space Station Lab (A).", + "wiki": "http://community.lacunaexpanse.com/wiki/space-station-lab" + }, + "/distributioncenter": { + "description": "A tier two resource storage building. Allows keeping specific resources in reserve.", + "wiki": "http://community.lacunaexpanse.com/wiki/distribution-center" + }, + "/saw": { + "description": "A railgun system used to protect your planet from enemy ships.", + "wiki": "http://community.lacunaexpanse.com/wiki/shield-against-weapons" + }, + "/atmosphericevaporator": { + "description": "Produces water by condensing it from the air and soil.", + "wiki": "http://community.lacunaexpanse.com/wiki/atmospheric-evaporator" + }, + "/greatballofjunk": { + "description": "Eliminate waste and give your citizens something to be proud of at the same time.", + "wiki": "http://community.lacunaexpanse.com/wiki/great-ball-of-junk" + }, + "/pyramidjunksculpture": { + "description": "Eliminate waste and give your citizens something to be proud of at the same time.", + "wiki": "http://community.lacunaexpanse.com/wiki/pyramid-junk-sculpture" + }, + "/spacejunkpark": { + "description": "Eliminate waste and give your citizens something to be proud of at the same time.", + "wiki": "http://community.lacunaexpanse.com/wiki/space-junk-park" + }, + "/junkhengesculpture": { + "description": "Eliminate waste and give your citizens something to be proud of at the same time.", + "wiki": "http://community.lacunaexpanse.com/wiki/junk-henge-sculpture" + }, + "/metaljunkarches": { + "description": "Eliminate waste and give your citizens something to be proud of at the same time.", + "wiki": "http://community.lacunaexpanse.com/wiki/metal-junk-arches" + }, + "/deployedbleeder": { + "description": "Converts planet's resources directly into waste.", + "wiki": "http://community.lacunaexpanse.com/wiki/bleeder" + }, + "/oracleofanid": { + "description": "The all seeing Oracle can help detect enemy threats.", + "wiki": "http://community.lacunaexpanse.com/wiki/oracle-of-anid" + }, + "/themepark": { + "description": "Produces happiness for your citizens through food and entertainment.", + "wiki": "http://community.lacunaexpanse.com/wiki/theme-park" + }, + "/geneticslab": { + "description": "Allows genetic experiments on captured spies to improve your species.", + "wiki": "http://community.lacunaexpanse.com/wiki/genetics-lab" + }, + "/massadshenge": { + "description": "An ancient observatory.", + "wiki": "http://community.lacunaexpanse.com/wiki/massad-s-henge" + }, + "/gratchsgauntlet": { + "description": "The anti-espionage system of the Great Race.", + "wiki": "http://community.lacunaexpanse.com/wiki/gratch-s-gauntlet" + }, + "/kasternskeep": { + "description": "The place from which the Great Race commanded their armies.", + "wiki": "http://community.lacunaexpanse.com/wiki/kastern-s-keep" + }, + "/hallsofvrbansk": { + "description": "The source of ancient wisdom.", + "wiki": "http://community.lacunaexpanse.com/wiki/halls-of-vrbansk" + }, + "/libraryofjith": { + "description": "Where the Great Race kept records of their experiments.", + "wiki": "http://community.lacunaexpanse.com/wiki/library-of-jith" + }, + "/thedillonforge": { + "description": "Where raw ore formed into glyphs and the glyph buildings were born.", + "wiki": "http://community.lacunaexpanse.com/wiki/the-dillon-forge" + }, + "/blackholegenerator": { + "description": "An experimental singularity lab engineered by the Great Race.", + "wiki": "http://community.lacunaexpanse.com/wiki/black-hole-generator" + }, + "/supplypod": { + "description": "Used to hold emergency supplies on a damaged colony or on a fledgling colony.", + "wiki": "http://community.lacunaexpanse.com/wiki/supply-pod" + }, + "/subspacesupplydepot": { + "description": "Helps give a fledgling colony a kickstart.", + "wiki": "http://community.lacunaexpanse.com/wiki/subspace-supply-depot" + }, + "/pantheonofhagness": { + "description": "Increases the number of available plots on your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/pantheon-of-hagness" + }, + "/crashedshipsite": { + "description": "Harvest technology from a crashed ship to make your own ships better.", + "wiki": "http://community.lacunaexpanse.com/wiki/crashed-ship-site" + }, + "/citadelofknope": { + "description": "Enhances defensive value of your colony against hostile ships and reduces damage taken from fissure debris.", + "wiki": "http://community.lacunaexpanse.com/wiki/citadel-of-knope" + }, + "/ravine": { + "description": "A natural place to store waste.", + "wiki": "http://community.lacunaexpanse.com/wiki/ravine" + }, + "/fissure": { + "description": "The first sign of a dying planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/fissure" + }, + "/amalgusmeadow": { + "description": "A wild meadow filled with wild amalgus beans.", + "wiki": "http://community.lacunaexpanse.com/wiki/amalgus-meadow" + }, + "/dentonbrambles": { + "description": "A thorny patch of brambles, who's roots happen to be the delicious denton roots.", + "wiki": "http://community.lacunaexpanse.com/wiki/denton-brambles" + }, + "/malcudfield": { + "description": "A natural source of food.", + "wiki": "http://community.lacunaexpanse.com/wiki/malcud-field" + }, + "/lapisforest": { + "description": "A natural source of food.", + "wiki": "http://community.lacunaexpanse.com/wiki/lapis-forest" + }, + "/algaepond": { + "description": "A natural source of food.", + "wiki": "http://community.lacunaexpanse.com/wiki/algae-pond" + }, + "/beeldebannest": { + "description": "A natural source of food.", + "wiki": "http://community.lacunaexpanse.com/wiki/beeldeban-nest" + }, + "/geothermalvent": { + "description": "A natural source of energy from the planet's core.", + "wiki": "http://community.lacunaexpanse.com/wiki/geo-thermal-vent" + }, + "/naturalspring": { + "description": "A natural source of water from the planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/natural-spring" + }, + "/interdimensionalrift": { + "description": "The Great Race somehow learned a technique to create a pocket of subspace with a door into our world. This allowed them to store lots of resources, without taking up much space.", + "wiki": "http://community.lacunaexpanse.com/wiki/interdimensional-rift" + }, + "/templeofthedrajilites": { + "description": "The Temple of a group of star gazers from the Great Race. It was their belief that through ritual they could see other worlds.", + "wiki": "http://community.lacunaexpanse.com/wiki/temple-of-the-drajilites" + }, + "/sand": { + "description": "Decoration for your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/patch-of-sand" + }, + "/grove": { + "description": "Decoration for your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/grove-of-trees" + }, + "/lagoon": { + "description": "Decoration for your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/lagoon" + }, + "/kalavianruins": { + "description": "Attracts tourists and creates a sense of wonder for locals, increasing the happiness of your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/kalavian-ruins" + }, + "/essentiavein": { + "description": "Produces trace amounts of Essentia.", + "wiki": "http://community.lacunaexpanse.com/wiki/essentia-vein" + }, + "/volcano": { + "description": "A natural source of ore.", + "wiki": "http://community.lacunaexpanse.com/wiki/volcano" + }, + "/luxuryhousing": { + "description": "Produces more happiness than the Entertainment District, but costs more too.", + "wiki": "http://community.lacunaexpanse.com/wiki/luxury-housing" + }, + "/pilottraining": { + "description": "Increases speed and stealth of new piloted ships, and enables building Fighters.", + "wiki": "http://community.lacunaexpanse.com/wiki/pilot-training-facility" + }, + "/missioncommand": { + "description": "Lists available missions in your zone. You can view one mission per level of the Mission Command.", + "wiki": "http://community.lacunaexpanse.com/wiki/mission-command" + }, + "/cloakinglab": { + "description": "Increases the stealth of new ships.", + "wiki": "http://community.lacunaexpanse.com/wiki/cloaking-lab" + }, + "/munitionslab": { + "description": "Enables you to build the Detonator, Snark, and Seeker robotic war ships.", + "wiki": "http://community.lacunaexpanse.com/wiki/munitions-lab" + }, + "/crater": { + "description": "Decoration for your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/crater" + }, + "/rockyoutcrop": { + "description": "Decoration for your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/rocky-outcropping" + }, + "/lake": { "description": "Decoration for your planet.", "wiki": "http://community.lacunaexpanse.com/wiki/lake" }, + "/beach1": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-1" + }, + "/beach2": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-2" + }, + "/beach3": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-3" + }, + "/beach4": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-4" + }, + "/beach5": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-5" + }, + "/beach6": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-6" + }, + "/beach7": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-7" + }, + "/beach8": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-8" + }, + "/beach9": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-9" + }, + "/beach10": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-10" + }, + "/beach11": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-11" + }, + "/beach12": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-12" + }, + "/beach13": { + "description": "Decoration for your planet. Use with other beach tiles to create a beach front.", + "wiki": "http://community.lacunaexpanse.com/wiki/beach-13" + }, + "/algae": { + "description": "Produces algae to be used as food by your empire. It also produces a small amount of energy and can be built in any orbit. The higher the level of the cropper the more food and energy it produces.", + "wiki": "http://community.lacunaexpanse.com/wiki/algae-cropper" + }, + "/apple": { + "description": "Allows you to grow apples to feed your empire. You can only grow apples in orbit 3 (its goldilox zone). Food production increases for every level of the orchard. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/apple-orchard" + }, + "/archaeology": { + "description": "Allows you to search through specific types of ore to find Glyphs.", + "wiki": "http://community.lacunaexpanse.com/wiki/archaeology-ministry" + }, + "/bean": { + "description": "Allows you to grow beans to be used as food by your empire. You can only grow beans in orbit 4 (its goldilox zone). The higher the level of the plantation the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/amalgus-bean-plantation" + }, + "/beeldeban": { + "description": "Allows the raising of beeldeban to be used as food for your empire. The higher the building level the more food is produced.", + "wiki": "http://community.lacunaexpanse.com/wiki/beeldeban-herder" + }, + "/bread": { + "description": "Converts wheat from the Wheat Farm at a minimal loss into bread to be used as food by your empire. The conversion rate increases with every level of the Bakery.", + "wiki": "http://community.lacunaexpanse.com/wiki/bakery" + }, + "/burger": { + "description": "Converts fungus from the Malcud Fungus Farm and produces burgers, at a small loss, to food. The higher the building level the more food is converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/burger-packer" + }, + "/capitol": { + "description": "Provides protection from Insurrection, and produces happiness.", + "wiki": "http://community.lacunaexpanse.com/wiki/capitol" + }, + "/cheese": { + "description": "Converts milk from the Dairy Farm into cheese at a small loss to be used as food. The higher the building level the more food is converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/cheese-maker" + }, + "/chip": { + "description": "Converts roots from the Denton Root Farm and turns it into root chips as food for your empire at a minimal loss. The higher the level of the Chip Frier the more food it converts.", + "wiki": "http://community.lacunaexpanse.com/wiki/denton-root-chip-frier" + }, + "/cider": { + "description": "Allows you to convert apples from the Apple Orchard into cider with a small amount of loss. The amount of apples converted into cider increases with the level of the building.", + "wiki": "http://community.lacunaexpanse.com/wiki/apple-cider-bottler" + }, + "/corn": { + "description": "Produces corn to be used as food by your empire. The corn plantation can only be used in orbits 2 and 3. The higher the level of the plantation the more food is produced. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/corn-plantation" + }, + "/cornmeal": { + "description": "Converts corn from the Corn Plantation into corn meal at a small loss to be used as food. The higher the building level the more food is converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/corn-meal-grinder" + }, + "/dairy": { + "description": "Allows you to produce food via dairy cattle. It can only be used in orbit 3 (its goldilox zone). The higher the level of farm the more food it produces. Cows require certain minerals in their diet in order to produce lots of high quality milk. Therefore in order to have a dairy farm you're going to need a good supply of trona.", + "wiki": "http://community.lacunaexpanse.com/wiki/dairy-farm" + }, + "/denton": { + "description": "Produces roots to be used as food by your empire. The roots only grow in orbits 5 and 6 (its goldilox zone). The higher the level of the patch the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/denton-root-patch" + }, + "/development": { + "description": "Allows you to monitor your build queue and subsidize the construction of buildings through the use of Essentia. The higher the level of the building the more buildings you can have in your queue, however the queue still builds in series not in parallel. The number of projects that can be placed in the queue is the level of the ministry plus 1. ", + "wiki": "http://community.lacunaexpanse.com/wiki/development-ministry" + }, + "/embassy": { + "description": "Allows the formation of alliances. It is also a prerequisite to building the Space Station. Each level of the Embassy allows 2 more members to join the alliance. Each level of the embassy allows 1 stash exchange per day, and 10,000 more resources per exchange.", + "wiki": "http://community.lacunaexpanse.com/wiki/embassy" + }, + "/energyreserve": { + "description": "Stores your energy with a minimal amount of loss. Increasing the level of the building raises the amount of energy stored.", + "wiki": "http://community.lacunaexpanse.com/wiki/energy-reserve" + }, + "/entertainment": { + "description": "Increases your empire's happiness by providing a place for your citizens to unwind through activities such as casinos, restaurants, clubs and other amusements. The higher the building level the more happiness is produced. It can also be a source of essentia through its lottery system.", + "wiki": "http://community.lacunaexpanse.com/wiki/entertainment-district" + }, + "/espionage": { + "description": "Allows the construction of spy pods and spy shuttles at the shipyard. It also allows better training of your spies. The higher the building level, the more effective your spies will be applying their trade. ", + "wiki": "http://community.lacunaexpanse.com/wiki/espionage-ministry" + }, + "/foodreserve": { + "description": "Stores your food with a minimal amount of spoilage. It also gives you a report of the types of food you have stored. Increasing the level of this building increases the amount of food that can be stored.", + "wiki": "http://community.lacunaexpanse.com/wiki/food-reserve" + }, + "/fission": { + "description": "Produces energy by splitting atoms. This way of producing energy is very efficient on an waste per energy produced ratio. The higher the building level the more energy is produced. Splitting the atoms non-energenic particles doesn't produce much power, so you'll need radioactive ore to power your fission plant, such as uraninite or monazite.", + "wiki": "http://community.lacunaexpanse.com/wiki/fission-energy-plant" + }, + "/fusion": { + "description": "Produces energy by fusing atoms together. This type of energy is even more efficient than the Fission Energy Plant on a waste per energy produced ratio. Requires a high level University to construct. The higher the building level the more energy is produced. Unfortunately the fusion plant produces enormous amounts of heat as well which requires coolants such as molten lead or salt. Therefore you'll need a good supply of galena or halite to build one.", + "wiki": "http://community.lacunaexpanse.com/wiki/fusion-energy-plant" + }, + "/gasgiantlab": { + "description": "Does research on the gas giant ship which deploys into a gas giant platform. The gas giant platform allows settlement of a gas giant. The higher the building level the higher the level of the platform deployed from the gas giant ship.", + "wiki": "http://community.lacunaexpanse.com/wiki/gas-giant-lab" + }, + "/gasgiantplatform": { + "description": "Increases the available plots on a gas giant.", + "wiki": "http://community.lacunaexpanse.com/wiki/gas-giant-settlement-platform" + }, + "/geo": { + "description": "Produces energy with a minimal amount of waste by using the planets own processes such as wind, waves, solar and geo thermal. The higher the level of the building the more energy is produced.", + "wiki": "http://community.lacunaexpanse.com/wiki/geo-energy-plant" + }, + "/hydrocarbon": { + "description": "Produces large amounts of energy at the cost of producing large amounts of waste by burning hydrocarbons. It also uses significant amounts of ore in the production of this energy. The higher the building level the more energy is produced. Hydrocarbon energy is derived from burning hydrocarbons, so you'll need a good supply of kerogen, methane, or anthracite in order to power it.", + "wiki": "http://community.lacunaexpanse.com/wiki/hydrocarbon-energy-plant" + }, + "/intelligence": { + "description": "Trains spies. You may train 3 spies per level of this building. You may only construct 1 Intelligence Ministry on a planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/intelligence-ministry" + }, + "/inteltraining": { + "description": "Trains spies in the ways of intelligence gathering. You may only construct 1 Intel Training Facility on a planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/intel-training-facility" + }, + "/lapis": { + "description": "Produces lapis to be used as food by your empire. Lapis can only be grown in orbit 2 (its goldilox zone). The higher the level of the orchard the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/lapis-orchard" + }, + "/malcud": { + "description": "Produces fungus to be used as food by your empire. The Farm also consumes a small amount of waste and can be built in any orbit. The higher the level of the farm the more food is produced and waste consumed.", + "wiki": "http://community.lacunaexpanse.com/wiki/malcud-fungus-farm" + }, + "/mayhemtraining": { + "description": "Trains spies in the art of destruction. You may only construct 1 Mayhem Training Facility on a planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/mayhem-training-facility" + }, + "/mercenariesguild": { + "description": "A black market for buying and selling well trained spies.", + "wiki": "http://community.lacunaexpanse.com/wiki/mercenaries-guild" + }, + "/mine": { + "description": "Extracts mineral from your planet in the form of ore. The amounts of each mineral extracted depends on the concentration and composition of the planet. The higher the level of the mine the more ore is extracted.", + "wiki": "http://community.lacunaexpanse.com/wiki/mine" + }, + "/miningministry": { + "description": "Allows you to harvest resources from asteroids. Allows the construction of Mining Platform Ships. Every two levels allows an additional Mining Platform. Each level increases the output of all Mining Platforms controlled by the Ministry.", + "wiki": "http://community.lacunaexpanse.com/wiki/mining-ministry" + }, + "/network19": { + "description": "Your empire's source for up to the minute news in your region of the Expanse. Get updates on what other empire's are doing and what you'd prefer they weren't doing. The Network 19 feed can be manipulated through the use of of espionage and political policy. Well informed people are happy people so the network also produces happiness. The higher the building level the more of the expanse you can get news from and the more happiness is produced. ", + "wiki": "http://community.lacunaexpanse.com/wiki/network-19-affiliate" + }, + "/observatory": { + "description": "Allows the construction of probes and colony ships at the shipyard. It also provides a list of all your active probes and the stars they are observing. A higher building level allows more probes to be constructed.", + "wiki": "http://community.lacunaexpanse.com/wiki/observatory" + }, + "/orerefinery": { + "description": "Increases the amount of ore extracted from each terrestrial ore producing structure by purifying the ore and producing less waste. The higher the refinery level the higher the purification process and even greater amounts of ore are extracted. The ore refinery requires sufficient amounts of either sulfur or fluorite being produced in order to process ore.", + "wiki": "http://community.lacunaexpanse.com/wiki/ore-refinery" + }, + "/orestorage": { + "description": "Store the ore that is pulled from the Mine. The higher the level of the building the more ore can be stored.", + "wiki": "http://community.lacunaexpanse.com/wiki/ore-storage-tanks" + }, + "/oversight": { + "description": "Reduces the amount of time buildings take to upgrade through better project management. All buildings will be produced 3% faster per level of the Oversight Ministry.", + "wiki": "http://community.lacunaexpanse.com/wiki/oversight-ministry" + }, + "/pancake": { + "description": "Converts potatoes from the Potato Plantation into pancakes at a minimal loss to be used as food by your empire. The higher the level of the factory, the more food is converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/pancake-factory" + }, + "/park": { + "description": "A place for your people to gather and enjoy nature or hold large scale public events. The Park allows you to throw parties for your citizens to increase their happiness. The more varieties of foods you bring to the party the more happiness is produced.", + "wiki": "http://community.lacunaexpanse.com/wiki/park" + }, + "/pie": { + "description": "Converts lapis from the Lapis Orchard into pies at minimal loss to be used as food by your empire. The higher the level of the bakery, the more food is converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/pie-bakery" + }, + "/planetarycommand": { + "description": "Houses the central government for your empire. This is your \"flag in the ground\" that lets everyone know you've staked your claim to a planet. It provides some basic resources and and storage for those resources both of which increase with the level of this building. The planetary command also provides some critical reports on your planetary activities such as total resource production and total resource storage for the planet it's constructed on.", + "wiki": "http://community.lacunaexpanse.com/wiki/planetary-command-center" + }, + "/politicstraining": { + "description": "Trains spies in the dark art of social engineering. You may only construct 1 Politics Training Facility on a planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/politics-training-facility" + }, + "/potato": { + "description": "Allows you to grow potatoes to be used as food for you empire. The patch can only be used in orbits 3 and 4 (its goldilox zone). The higher the level of the patch the more food it produces. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/potato-patch" + }, + "/propulsion": { + "description": "Allows your ships to move faster through space by way of upgraded engines. The higher the building level the faster your ships move. All ships originating from this planet are affected. In order to produce high performance engines you'll need a good supply of structural minerals such as rutile, chromite, bauxite, magnetite, beryl, or goethite.", + "wiki": "http://community.lacunaexpanse.com/wiki/propulsion-system-factory" + }, + "/security": { + "description": "Increases the effectiveness of your counter-spies and allows you to detect foreign spies. The higher the building level the more training your counter-spies receive. The building will be able to detect foreign spies with a level equal to or lower than the building. It will also help detect incoming ships containing spies.", + "wiki": "http://community.lacunaexpanse.com/wiki/security-ministry" + }, + "/shake": { + "description": "Converts the beeldeban that are harvested in the Beeldeban Herder into protein shakes, at a small loss, to be used as food. The higher the level of the factory the more food is converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/beeldeban-protein-shake-factory" + }, + "/shipyard": { + "description": "Constructs ships. The types of ships that can be built in the Shipyard are dependent on some of the other buildings on your planet. The higher the building level the faster ships are produced. In addition, you may queue one ship per level of shipyard.", + "wiki": "http://community.lacunaexpanse.com/wiki/shipyard" + }, + "/singularity": { + "description": "Produces energy by pulling it from subspace. This is the cleanest and most powerful form of energy in the universe. This is extremely expensive to build and requires a very high level University to construct. The higher the building level the more energy is produced.", + "wiki": "http://community.lacunaexpanse.com/wiki/singularity-energy-plant" + }, + "/soup": { + "description": "Converts beans from the Amalgus Bean Plantation at a minimal loss into soup to be used as food for your empire. The higher the level of the cannery the more soup is produced.", + "wiki": "http://community.lacunaexpanse.com/wiki/soup-cannery" + }, + "/spaceport": { + "description": "Acts as the hangar and control tower for your ships. Here is where you can monitor your ships that are in transit. Be careful as the Space Port can only hold a limited number of ships, if there is no more room in the Space Port when a ship arrives or is built, it will be destroyed. The Space Port can hold double its level in ships and queue its level in ships. ", + "wiki": "http://community.lacunaexpanse.com/wiki/space-port" + }, + "/stockpile": { + "description": "Allows resource buildings to go above level 20. Provides storage.", + "wiki": "http://community.lacunaexpanse.com/wiki/stockpile" + }, + "/syrup": { + "description": "Takes algae from the Algae Cropper and converts it in to Syrup with a small loss to be used as food. The higher the level of the bottler the more food is produced.", + "wiki": "http://community.lacunaexpanse.com/wiki/syrup-bottler" + }, + "/thefttraining": { + "description": "Trains spies in the art of appropriation. You may only construct 1 Theft Training Facility on a planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/theft-training-facility" + }, + "/terraforminglab": { + "description": "The Terraforming Lab is where research is done on the production of terraforming platform ships. Terraforming platform ships deploy into terraforming platforms which allows you to colonize planets your species wouldn't normally be capable of colonizing. The level of the building determines the level of the platform that is deployed from the ship.", + "wiki": "http://community.lacunaexpanse.com/wiki/terraforming-lab" + }, + "/terraformingplatform": { + "description": "Increases the available build space on a planet that is not naturally inhabitable by your species.", + "wiki": "http://community.lacunaexpanse.com/wiki/terraforming-platform" + }, + "/trade": { + "description": "Allows access to the interstellar market. Through it you can set up trades for resources with other empires. This building is a prerequisite to building cargo ships, which carry your trade goods, in the shipyard. The higher the building level the more resources your cargo ships can carry.", + "wiki": "http://community.lacunaexpanse.com/wiki/trade-ministry" + }, + "/transporter": { + "description": "Allows the instant transport of resources to a destination, but requires Essentia. The transporter also allows conversion of resources through trading with the Lacunans. The higher the building level the more goods can be transported.", + "wiki": "http://community.lacunaexpanse.com/wiki/subspace-transporter" + }, + "/university": { + "description": "Is the key to growth for your empire. Other buildings can not be upgraded higher than the university building level plus 1. Your university's level is empire wide where construction level of buildings on other planets is concerned. Many of the more powerful buildings that can be constructed require a very high level University. The University is also a source of happiness for your empire. ", + "wiki": "http://community.lacunaexpanse.com/wiki/university" + }, + "/wastedigester": { + "description": "Converts waste into ore. The higher the building level the more ore is produced and waste consumed.", + "wiki": "http://community.lacunaexpanse.com/wiki/waste-digester" + }, + "/wasteenergy": { + "description": "Produces energy by burning your empire's waste. Producing energy this way is far less efficient than other types of energy production, but the benefit is that waste is reduced. The higher the building level the more energy is produced and waste consumed. In order to build and maintain the blast furnace you need a good supply of insulating ores such as zircon, beryl, and gypsum.", + "wiki": "http://community.lacunaexpanse.com/wiki/waste-energy-plant" + }, + "/wasterecycling": { + "description": "Allows you to manually convert large batches of waste into energy, ore and water. The more waste you convert, the longer it will take to make the resources you want. The higher the level of the building the faster the conversion will take place. You can also spend a small amount of Essentia to convert the waste instantly.", + "wiki": "http://community.lacunaexpanse.com/wiki/waste-recycling-center" + }, + "/wasteexchanger": { + "description": "The Waste Exchanger is a combination of a waste recycling center, waste sequestration well, and a waste treatment center. It tears apart waste at a molecular level and recombines it into useful resources.", + "wiki": "http://community.lacunaexpanse.com/wiki/waste-exchanger" + }, + "/wastesequestration": { + "description": "Stores waste. Waste that is not stored turns into pollution and lowers your empire's happiness. The higher the building level the more waste can be stored.", + "wiki": "http://community.lacunaexpanse.com/wiki/waste-sequestration-well" + }, + "/wastetreatment": { + "description": "Converts waste into water, ore, and energy. Waste treatment requires special chemical compounds derived from halite, sulfur, and trona.", + "wiki": "http://community.lacunaexpanse.com/wiki/waste-treatment-center" + }, + "/waterproduction": { + "description": "Converts energy and ore into water. This is especially useful on planets with low concentrations of water. A higher building level means more resources are converted.", + "wiki": "http://community.lacunaexpanse.com/wiki/water-production-plant" + }, + "/waterpurification": { + "description": "Produces water from the planet's sources. The higher the building level the more water it can purify.", + "wiki": "http://community.lacunaexpanse.com/wiki/water-purification-plant" + }, + "/waterreclamation": { + "description": "Converts waste into water. A higher building level means more resources are converted. If you don't have a good supply of halite or sulfur you cannot treat waste water.", + "wiki": "http://community.lacunaexpanse.com/wiki/water-reclamation-facility" + }, + "/waterstorage": { + "description": "Stores the water you've collected. A higher building level allows more water to be stored.", + "wiki": "http://community.lacunaexpanse.com/wiki/water-storage-tank" + }, + "/wheat": { + "description": "Allows you to grow wheat on your planet. You can only grow wheat on planets that are in orbits 2, 3 or 4 (the goldilox zone). The Farm will produce more wheat for each level it is increased. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", + "wiki": "http://community.lacunaexpanse.com/wiki/wheat-farm" + }, + "/lcota": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure. Be sure to place it where all the plots around it are unoccupied, and on a planet where you have 9 available plots.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcotb": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcotc": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcotd": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcote": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcotf": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcotg": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcoth": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + }, + "/lcoti": { + "description": "A self contained city that produces all it's own resources and waste management. It also produces a lot extra for you to use to support your other infrastructure.", + "wiki": "http://community.lacunaexpanse.com/wiki/lost-city-of-tyleon" + } + }, + "ships": { + "stake": { + "description": "Allows you to claim a planet prior to your colony ship arriving.", + "wiki": "http://community.lacunaexpanse.com/wiki/stake" + }, + "thud": { + "description": "Temporarily destroys plots on a planet's surface.", + "wiki": "http://community.lacunaexpanse.com/wiki/thud" + }, + "sweeper": { + "description": "An upgraded Fighter whose primary role is offense rather than defense.", + "wiki": "http://community.lacunaexpanse.com/wiki/sweeper" + }, + "supply_pod": { + "description": "Can deliver resources and creates temporary storage for 24 hours on a remote planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/supply-pod" + }, + "supply_pod2": { + "description": "A larger version of the Supply Pod.", + "wiki": "http://community.lacunaexpanse.com/wiki/supply-pod" + }, + "supply_pod3": { + "description": "A very large version of the Supply Pod.", + "wiki": "http://community.lacunaexpanse.com/wiki/supply-pod" + }, + "supply_pod4": { + "description": "A huge version of the Supply Pod.", + "wiki": "http://community.lacunaexpanse.com/wiki/supply-pod" + }, + "placebo": { + "description": "Use to fake an attack on another player.", + "wiki": "http://community.lacunaexpanse.com/wiki/placebo" + }, + "placebo2": { + "description": "A faster and more stealthed version of the Placebo.", + "wiki": "http://community.lacunaexpanse.com/wiki/placebo" + }, + "placebo3": { + "description": "A faster and more stealthed version of the Placebo II.", + "wiki": "http://community.lacunaexpanse.com/wiki/placebo" + }, + "placebo4": { + "description": "A faster and more stealthed version of the Placebo III.", + "wiki": "http://community.lacunaexpanse.com/wiki/placebo" + }, + "placebo5": { + "description": "A faster and more stealthed version of the Placebo IV.", + "wiki": "http://community.lacunaexpanse.com/wiki/placebo" + }, + "placebo6": { + "description": "A faster and more stealthed version of the Placebo V.", + "wiki": "http://community.lacunaexpanse.com/wiki/placebo" + }, + "probe": { + "description": "Allows you to view the bodies of a system if sent to a star. Probes are shared among members of the same alliance.", + "wiki": "http://community.lacunaexpanse.com/wiki/probe" + }, + "colony_ship": { + "description": "Use to create a new colony for your empire.", + "wiki": "http://community.lacunaexpanse.com/wiki/colony-ship" + }, + "short_range_colony_ship": { + "description": "Use to create a new colony for your empire. Very fast, but with a limited range. Useful within your own, or very close, star systems.", + "wiki": "http://community.lacunaexpanse.com/wiki/short-range-colony-ship" + }, + "spy_pod": { + "description": "Stealthy one way transport for a spy.", + "wiki": "http://community.lacunaexpanse.com/wiki/spy-pod" + }, + "cargo_ship": { + "description": "Medium transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/cargo-ship" + }, + "space_station": { + "description": "The base hull upon which you can build space station modules to build a complete space station.", + "wiki": "http://community.lacunaexpanse.com/wiki/space-station" + }, + "smuggler_ship": { + "description": "Stealthy transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/smuggler-ship" + }, + "mining_platform_ship": { + "description": "Allows the gathering of resources from asteroids.", + "wiki": "http://community.lacunaexpanse.com/wiki/mining-platform-ship" + }, + "terraforming_platform_ship": { + "description": "Allows you to settle planets your species could not normally colonize.", + "wiki": "http://community.lacunaexpanse.com/wiki/terraforming-platform-ship" + }, + "gas_giant_settlement_ship": { + "description": "Allows you to settle gas giants.", + "wiki": "http://community.lacunaexpanse.com/wiki/gas-giant-settlement-ship" + }, + "scow": { + "description": "Robotic waste transport ship. Can be used to dispose of waste in space.", + "wiki": "http://community.lacunaexpanse.com/wiki/scow" + }, + "scow_fast": { + "description": "Much faster than a normal scow. Robotic waste transport ship. Can be used to dispose of waste in space.", + "wiki": "http://community.lacunaexpanse.com/wiki/scow" + }, + "scow_large": { + "description": "Much larger and a bit slower than a normal scow. Robotic waste transport ship. Can be used to dispose of waste in space.", + "wiki": "http://community.lacunaexpanse.com/wiki/scow" + }, + "scow_mega": { + "description": "Incredibly larger and slower than a normal scow. Almost useless as an attack. Robotic waste transport ship. Can be used to dispose of waste in space.", + "wiki": "http://community.lacunaexpanse.com/wiki/scow" + }, + "bleeder": { + "description": "Robotic war ship. Once deployed on enemy planet, starts stealing resources and converting them into waste.", + "wiki": "http://community.lacunaexpanse.com/wiki/bleeder" + }, + "dory": { + "description": "Small transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/dory" + }, + "barge": { + "description": "Versatile transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/barge" + }, + "galleon": { + "description": "Fast medium transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/galleon" + }, + "hulk": { + "description": "Extra large transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/hulk" + }, + "hulk_fast": { + "description": "Extra large transport ship slightly bigger and much faster than a Hulk. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/hulk" + }, + "hulk_huge": { + "description": "Incredibly large and very slow transport ship, useful for supply chains. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/hulk" + }, + "fissure_sealer": { + "description": "Large slow ship, used to attempt sealing fissures on uninhabited planets.", + "wiki": "http://community.lacunaexpanse.com/wiki/fissure-sealer" + }, + "freighter": { + "description": "Large transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", + "wiki": "http://community.lacunaexpanse.com/wiki/freighter" + }, + "snark": { + "description": "Single-use robotic bombardment weapon, that can be used to damage buildings on remote planets.", + "wiki": "http://community.lacunaexpanse.com/wiki/snark" + }, + "snark2": { + "description": "An improved version of the Snark, which has four warheads", + "wiki": "http://community.lacunaexpanse.com/wiki/snark" + }, + "snark3": { + "description": "An improved version of the Snark, which has nine warheads", + "wiki": "http://community.lacunaexpanse.com/wiki/snark" + }, + "drone": { + "description": "Single use robotic defense weapon, that can stop enemy attacks before they reach your planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/drone" + }, + "fighter": { + "description": "Piloted defense ship that can stop enemy attacks before they reach your planet. Can also be sent to defend other bodies.", + "wiki": "http://community.lacunaexpanse.com/wiki/fighter" + }, + "spy_shuttle": { + "description": "Stealthy transport for up to four spies, that can orbit the target body waiting to pick the spies back up.", + "wiki": "http://community.lacunaexpanse.com/wiki/spy-shuttle" + }, + "observatory_seeker": { + "description": "Variant of the Snark that attacks an Observatory.", + "wiki": "http://community.lacunaexpanse.com/wiki/observatory-seeker" + }, + "security_ministry_seeker": { + "description": "Variant of the Snark that attacks a Security Ministry.", + "wiki": "http://community.lacunaexpanse.com/wiki/security-ministry-seeker" + }, + "spaceport_seeker": { + "description": "Variant of the Snark that attacks a SpacePort.", + "wiki": "http://community.lacunaexpanse.com/wiki/spaceport-seeker" + }, + "excavator": { + "description": "Robotic explorer that searches remote bodies looking for artifacts.", + "wiki": "http://community.lacunaexpanse.com/wiki/excavator" + }, + "detonator": { + "description": "Variant of the Snark that detonates in an electromagnetic pulse, which can be used to destroy probes, mining platforms, or excavators.", + "wiki": "http://community.lacunaexpanse.com/wiki/detonator" + }, + "surveyor": { + "description": "Robotic explorer that snaps a photograph of the surface of a remote planet, and also identifies the buildings in the photograph.", + "wiki": "http://community.lacunaexpanse.com/wiki/surveyor" + }, + "scanner": { + "description": "Robotic explorer that snaps a photograph of the surface of a remote planet.", + "wiki": "http://community.lacunaexpanse.com/wiki/scanner" + } + }, + "tips": [ + "Water Purification Plants are cheap, but slow. If you can afford them, Water Production Plants produce more water.", + "You need at least 3 food types to keep your people happy.", + "Building a Development Ministry will let you queue multiple buildings at once.", + "Buildings are built in series. So if you already have a building upgrading that will take 20 minutes, and you add a building that takes 15 seconds, the second building will take 20:15.", + "Buildings have both a cost and an upkeep. Cost is what it costs to build/upgrade the building. Upkeep is what it costs per hour to run the building.", + "If you have at least 4 food types, every time you build something you'll gain happiness.", + "You can use Essentia in the Development Ministry to auto-complete your entire build queue.", + "If your waste overflows it will create pollution, and that will make your people unhappy.", + "A good build strategy is to upgrade your storage first, then your resource generators, then your University.", + "Try to make sure your resource production will completely fill your available storage at least once per day.", + "If you run out of resources, your people will not be happy.", + "Construction and upgrades produce bulk waste all at once. Be sure you can store it, or the pollution it generates will make your citizens unhappy.", + "Though the planet map shows 121 spaces for buildings, each planet is limited to a certain number of plots. You can see how many plots are remaining in the Planetary Command Center.", + "In order to manage waste or recycle it, you must first store it. Build a Waste Sequestration Well to store waste.", + "Waste can be a very valuable resource. Build waste management buildings like Waste Reclamation, Waste Treatement, or Waste Digesters to turn it into useful resources.", + "You can use Essentia in the Waste Recycling Plant to instantly complete the recycling process.", + "We recommend at least 2 of each type of storage on every planet.", + "If you invite your friends to the game, and a few of them sign up, you'll start getting special buildings as rewards.", + "You can use Essentia in the Shipyard to auto-complete your entire build queue.", + "Knowledge gained from the University is permanent. Even if you demolish the University you still have the knowledge.", + "While you are waiting for your building upgrades to complete, build and send out probes to see what's around you.", + "Building an Oversight Ministry will speed up all of your building build/upgrade times.", + "You can win free Essentia in the Lottery at the Entertainment District.", + "Both the cost and production of buildings rise expontentially. Production rises slightly slower than cost however.", + "As an isolationist you are immune to attack. You are no longer an isolationist if you colonize a second planet, or build an Espionage Ministry or Munitions Lab.", + "Most ships are one use only, meaning once you send them you cannot get them back. Exceptions to this are trade ships like Dories and Cargo Ships.", + "Looking to the future you may want to upgrade your existing energy plants with newer technology as it becomes available.", + "You can use Essentia in the Intelligence Ministry to train spies instantly.", + "It costs 100,000 happiness to colonize your second planet, but it gets much more difficult for each subsequent colony.", + "You can use Essentia in the Park to speed along parties.", + "The University is global. The level of University you built on one planet affects all your planets. The University is the only building that has this ability.", + "As soon as a colony ship arrives at a new planet it begins functioning. Be prepared to deal with it when the ship arrives.", + "When choosing a planet to colonize things to consider are its size, distance from your other colonies, distance from asteroids, ore composition, and water composition.", + "Make sure you have some dories available when you colonize a planet so you can ship resources to the new colony to give it a head start.", + "You can use Essentia in the Subspace Transporter to do instant 1:1 trades of any resource.", + "Spies are the primary form of combat in the game. Send spies to other people's planets and you'll be able to gather information, sabotage infastructure, and steal resources from them.", + "Though you can lose colonies to spies, you cannot ever lose your home planet.", + "Some ores are only found in abundance on asteroids.", + "Resource buildings can only go to level 20, while all other buildings can go to level 30.", + "Glyphs enable you to build incredibly powerful buildings that aren't part of the normal technology tree.", + "You can use Essentia in the Archaeology Ministry to search for glyphs instantly.", + "Drones, Fighters, and Sweepers defend your planet from other players ships.", + "Spies defend your planet from other players spies.", + "Glyph buildings take up no plots.", + "Higher level Spaceports can tell you more information about ships that are coming in from other players.", + "A higher level Security Ministry increases the chance of catching enemy spies as they come and go from your planet.", + "A higher level Security Ministry allows you to see more detail about the enemy spies that are on your planet.", + "You can make a new planet your home planet by building a Capitol building." + ], + "writ_templates": [ + { + "title": "Non-Agression Mandate", + "description": "Planets in this jurisdiction may not attack anyone inside the jurisdiction." + }, + { + "title": "No Munitions", + "description": "Planets in this jurisdiction, except for members of ______ alliance are not allowed to build a Munitions Lab. If you are found with one the penalty shall be _______." + }, + { + "title": "No Operatives", + "description": "Planets in this jurisdiction, except for members of ______ alliance are not allowed to build an Espionage Ministry. If you are found with one the penalty shall be _______." + }, + { + "title": "Defense Mandate", + "description": "Planets in this jurisdiction are required to come to the aid of the other planets in this jurisdiction when under attack from both foreign and domestic enemies." + }, + { + "title": "Confederacy with ______", + "description": "_______ alliance declares a mutual confederation with _______ alliance." + }, + { + "title": "NAP with ______", + "description": "_______ alliance declares a non-aggression pact with _______ alliance." + }, + { + "title": "Declaration of War", + "description": "_______ alliance declares war on ______ alliance. All citizens in this jurisdiction are required to supply the war effort with all available ships, operatives, and aid packages." + }, + { + "title": "Censure of ______", + "description": "We, the members of _______ alliance, hereby declare a formal reprimand of _______ for __________________." + }, + { + "title": "Glyph Heresy", + "description": "_______ alliance hereby denounces the existence of the Great Race. Anyone in our jurisdiction found using glyph technology shall be treated cruelly and without mercy." + } + ] } - diff --git a/var/www/public/starmap/css/layout.css b/var/www/public/starmap/css/layout.css index e24a910f..f2f2ba33 100644 --- a/var/www/public/starmap/css/layout.css +++ b/var/www/public/starmap/css/layout.css @@ -1,5 +1,5 @@ body { - font-family:"Lucida Console", Times, serif; + font-family: 'Lucida Console', Times, serif; font-size: 16px; margin: 50px; max-width: 1500px; diff --git a/var/www/public/starmap/index.html b/var/www/public/starmap/index.html index d80bb010..9314f680 100644 --- a/var/www/public/starmap/index.html +++ b/var/www/public/starmap/index.html @@ -1,84 +1,100 @@ - + - - + + Lacuna Alliance Starmap - + - - + +

Lacuna Alliance Starmap

-
-
+
+
-
-
+
+
-

+

-

Click and drag on either map to zoom in or out. Click on two points to calculate distance. Reset Map

+

+ Click and drag on either map to zoom in or out. Click on two points to calculate distance. + Reset Map +

Show:

-

This map would not be possible if not for the work by Empire Name of the Sea of Goats

- +

This map would not be possible if not for the work by Empire Name of the Sea of Goats

+
- - - + getData(); + }); + + -- 2.51.2