unite-lib 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +96 -62
  3. package/package.json +1 -1
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](pokemons/roster-pikachu.png) | ![Pikachu stats](pokemons/stat-pikachu.png) |
74
+ | ![Charizard](pokemons/roster-charizard.png) | ![Charizard stats](pokemons/stat-charizard.png) |
75
+ | ![Venusaur](pokemons/roster-venusaur.png) | ![Venusaur stats](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](moves/pikachu_s11.png) | ![Pikachu S12](moves/pikachu_s12.png) | ![Pikachu S21](moves/pikachu_s21.png) | ![Pikachu S22](moves/pikachu_s22.png) |
84
+
85
+ ### Maps
86
+
87
+ Game map images (Remoat Stadium, Theia Sky Ruins, Mer Stadium, etc.).
88
+
89
+ ![Map](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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unite-lib",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Assets and data library for Pokémon Unite — names, images, moves, maps. Use via npm or CDN.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",