unite-lib 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 unite-lib contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -8,67 +8,6 @@ Assets and data library for **Pokémon Unite**: roster, names, images, moves, an
8
8
  npm install unite-lib
9
9
  ```
10
10
 
11
- ## Testing locally (consumir no seu projeto sem publicar no npm)
12
-
13
- Para testar a library em outro projeto na sua máquina sem publicar no npm:
14
-
15
- ### 1. Buildar a library
16
-
17
- Na pasta da **unite-lib**:
18
-
19
- ```bash
20
- cd unite-lib
21
- npm run build
22
- ```
23
-
24
- ### 2. Usar no seu projeto
25
-
26
- **Opção A — `npm link` (symlink, ótimo para desenvolvimento)**
27
-
28
- Na pasta da library:
29
-
30
- ```bash
31
- npm link
32
- ```
33
-
34
- No seu outro projeto (ex.: app que consome a library):
35
-
36
- ```bash
37
- cd /caminho/do/seu/projeto
38
- npm link unite-lib
39
- ```
40
-
41
- A partir daí, `import { pokemons, getPokemonName } from "unite-lib"` usa a versão local. Ao alterar a library, rode `npm run build` nela de novo; o projeto que a consome já aponta para o mesmo pacote.
42
-
43
- Para desfazer no projeto consumidor: `npm unlink unite-lib`.
44
-
45
- **Opção B — dependência `file:` (cópia/instalação a partir do caminho)**
46
-
47
- No `package.json` do seu projeto, adicione:
48
-
49
- ```json
50
- {
51
- "dependencies": {
52
- "unite-lib": "file:../unite-lib"
53
- }
54
- }
55
- ```
56
-
57
- Ajuste `../unite-lib` para o caminho relativo (ou absoluto) até a pasta da library. Depois:
58
-
59
- ```bash
60
- npm install
61
- ```
62
-
63
- Sempre que mudar a library, rode `npm run build` nela e, se quiser atualizar a cópia no consumidor, `npm install` de novo no projeto (ou use `npm update unite-lib`).
64
-
65
- ### Imagens ao testar localmente
66
-
67
- Os caminhos de imagem são relativos (ex.: `pokemons/roster-venusaur.png`). No consumidor você pode:
68
-
69
- - Usar **baseUrl** ao chamar `getImageUrl(pokemon, "main", { baseUrl: "http://localhost:3000/node_modules/unite-lib" })` se o bundler/servidor servir `node_modules`, ou
70
- - Apontar **baseUrl** para onde as pastas `pokemons/`, `moves/`, `maps/` estejam acessíveis no seu app.
71
-
72
11
  ## Usage
73
12
 
74
13
  ### Data and helpers
@@ -121,6 +60,99 @@ getPokemonName("venusaur", "es"); // "Venusaur"
121
60
 
122
61
  Supported locales: `en`, `pt-BR`, `ja-JP`, `fr`, `es`.
123
62
 
63
+ ## Content
64
+
65
+ The library includes data and images ready to use in Pokémon Unite apps, bots, and sites.
66
+
67
+ ### Roster (Pokémon)
68
+
69
+ Roster icons and stat images for the full active roster.
70
+
71
+ | Roster example | Stats example |
72
+ |----------------|----------------|
73
+ | ![Pikachu](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/pokemons/roster-pikachu.png) | ![Pikachu stats](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/pokemons/stat-pikachu.png) |
74
+ | ![Charizard](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/pokemons/roster-charizard.png) | ![Charizard stats](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/pokemons/stat-charizard.png) |
75
+ | ![Venusaur](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/pokemons/roster-venusaur.png) | ![Venusaur stats](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/pokemons/stat-venusaur.png) |
76
+
77
+ ### Moves
78
+
79
+ Move images (slot 1 and 2, variants 1 and 2) per Pokémon.
80
+
81
+ | Slot 1.1 | Slot 1.2 | Slot 2.1 | Slot 2.2 |
82
+ |----------|----------|----------|----------|
83
+ | ![Pikachu S11](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/moves/pikachu_s11.png) | ![Pikachu S12](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/moves/pikachu_s12.png) | ![Pikachu S21](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/moves/pikachu_s21.png) | ![Pikachu S22](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/moves/pikachu_s22.png) |
84
+
85
+ ### Maps
86
+
87
+ Game map images (Remoat Stadium, Theia Sky Ruins, Mer Stadium, etc.).
88
+
89
+ ![Map](https://raw.githubusercontent.com/cesaroeduardo/unite-lib/main/maps/groudon.png)
90
+
91
+ ---
92
+
93
+ ## Local development (testing without publishing to npm)
94
+
95
+ To test the library in another project on your machine without publishing to npm:
96
+
97
+ ### 1. Build the library
98
+
99
+ From the **unite-lib** folder:
100
+
101
+ ```bash
102
+ cd unite-lib
103
+ npm run build
104
+ ```
105
+
106
+ ### 2. Use in your project
107
+
108
+ **Option A — `npm link` (symlink, great for development)**
109
+
110
+ From the library folder:
111
+
112
+ ```bash
113
+ npm link
114
+ ```
115
+
116
+ In your other project (e.g. the app that consumes the library):
117
+
118
+ ```bash
119
+ cd /path/to/your/project
120
+ npm link unite-lib
121
+ ```
122
+
123
+ From then on, `import { pokemons, getPokemonName } from "unite-lib"` uses the local version. When you change the library, run `npm run build` again; the consuming project already points to the same package.
124
+
125
+ To undo in the consuming project: `npm unlink unite-lib`.
126
+
127
+ **Option B — `file:` dependency (install from path)**
128
+
129
+ In your project's `package.json`, add:
130
+
131
+ ```json
132
+ {
133
+ "dependencies": {
134
+ "unite-lib": "file:../unite-lib"
135
+ }
136
+ }
137
+ ```
138
+
139
+ Adjust `../unite-lib` to the relative (or absolute) path to the library folder. Then:
140
+
141
+ ```bash
142
+ npm install
143
+ ```
144
+
145
+ Whenever you change the library, run `npm run build` in it and, to refresh the copy in the consumer, run `npm install` again in the project (or use `npm update unite-lib`).
146
+
147
+ ### Images when testing locally
148
+
149
+ Image paths are relative (e.g. `pokemons/roster-venusaur.png`). In the consumer you can:
150
+
151
+ - Use **baseUrl** when calling `getImageUrl(pokemon, "main", { baseUrl: "http://localhost:3000/node_modules/unite-lib" })` if the bundler/server serves `node_modules`, or
152
+ - Point **baseUrl** to where the `pokemons/`, `moves/`, and `maps/` folders are available in your app.
153
+
154
+ ---
155
+
124
156
  ## CDN (browser)
125
157
 
126
158
  ```html
@@ -130,7 +162,7 @@ Supported locales: `en`, `pt-BR`, `ja-JP`, `fr`, `es`.
130
162
  </script>
131
163
  ```
132
164
 
133
- Asset URLs via jsDelivr (replace `@latest` with a version if needed):
165
+ Asset URLs via jsDelivr (substitua `@latest` por uma versão se quiser):
134
166
 
135
167
  - `https://cdn.jsdelivr.net/npm/unite-lib@latest/pokemons/roster-venusaur.png`
136
168
  - `https://cdn.jsdelivr.net/npm/unite-lib@latest/moves/venusaur_s11.png`
@@ -159,6 +191,8 @@ Asset URLs via jsDelivr (replace `@latest` with a version if needed):
159
191
  - **`pokemons/`** — Roster and stat images
160
192
  - **`moves/`** — Move images
161
193
  - **`maps/`** — Map images
194
+ - **`.cursor/skills/`** — [Cursor Agent Skills](https://docs.cursor.com/context/agent-skills) for use with AI agents in this repo (e.g. syncing roster from images in `pokemons/` and `moves/`).
195
+ - **`mcp/`** — [MCP server](mcp/README.md) (Model Context Protocol) para consumir a library em agentes de IA: tools para listar e buscar pokémons, moves, mapas, URLs de imagens e nomes localizados (Cursor, Claude Desktop, etc.).
162
196
 
163
197
  ## License
164
198
 
@@ -709,6 +709,31 @@ var pokemons = [
709
709
  ],
710
710
  "difficulty": 1
711
711
  },
712
+ {
713
+ "name": "Zapdos",
714
+ "dex": 145,
715
+ "images": {
716
+ "main": "pokemons/roster-zapdos.png",
717
+ "big": "pokemons/roster-zapdos-2x.png",
718
+ "complete": "pokemons/stat-zapdos.png",
719
+ "move_s11": "moves/zapdos_s11.png",
720
+ "move_s21": "moves/zapdos_s21.png"
721
+ },
722
+ "active": true,
723
+ "battleType": BattleType.ATTACKER,
724
+ "stats": {
725
+ "offense": 5,
726
+ "endurance": 2,
727
+ "mobility": 1,
728
+ "scoring": 2,
729
+ "support": 2
730
+ },
731
+ "tags": [
732
+ Tag.ATTACKER,
733
+ Tag.RANGED
734
+ ],
735
+ "difficulty": 1
736
+ },
712
737
  {
713
738
  "name": "Dragonite",
714
739
  "dex": 149,
@@ -1787,8 +1812,7 @@ var pokemons = [
1787
1812
  "complete": "pokemons/stat-dhelmise.png",
1788
1813
  "move_s11": "moves/dhelmise_s11.png",
1789
1814
  "move_s12": "moves/dhelmise_s12.png",
1790
- "move_s21": "moves/dhelmise_s21.png",
1791
- "move_s22": "moves/dhelmise_s22.png"
1815
+ "move_s21": "moves/dhelmise_s21.png"
1792
1816
  },
1793
1817
  "active": true,
1794
1818
  "battleType": BattleType.ALLROUNDER,
@@ -2359,7 +2383,7 @@ for (const p of pokemons_default) {
2359
2383
  var en_default = names;
2360
2384
 
2361
2385
  // src/i18n/pt-BR.ts
2362
- var ptBR = { ...en_default };
2386
+ var ptBR = { ...en_default, zapdos: "Zapdos" };
2363
2387
  var pt_BR_default = ptBR;
2364
2388
 
2365
2389
  // src/i18n/ja-JP.ts
@@ -2389,6 +2413,7 @@ var jaJP = {
2389
2413
  lapras: "\u30E9\u30D7\u30E9\u30B9",
2390
2414
  vaporeon: "\u30B7\u30E3\u30EF\u30FC\u30BA",
2391
2415
  snorlax: "\u30AB\u30D3\u30B4\u30F3",
2416
+ zapdos: "\u30B5\u30F3\u30C0\u30FC",
2392
2417
  dragonite: "\u30AB\u30A4\u30EA\u30E5\u30FC",
2393
2418
  mewtwox: "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCX",
2394
2419
  mewtwoy: "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCY",
@@ -2480,6 +2505,7 @@ var fr = {
2480
2505
  lapras: "Lokhlass",
2481
2506
  vaporeon: "Aquali",
2482
2507
  snorlax: "Ronflex",
2508
+ zapdos: "\xC9lecthor",
2483
2509
  dragonite: "Dracolosse",
2484
2510
  mewtwox: "M\xE9ga-Mewtwo X",
2485
2511
  mewtwoy: "M\xE9ga-Mewtwo Y",
@@ -2571,6 +2597,7 @@ var es = {
2571
2597
  lapras: "Lapras",
2572
2598
  vaporeon: "Vaporeon",
2573
2599
  snorlax: "Snorlax",
2600
+ zapdos: "Zapdos",
2574
2601
  dragonite: "Dragonite",
2575
2602
  mewtwox: "Mega-Mewtwo X",
2576
2603
  mewtwoy: "Mega-Mewtwo Y",