tibiaway-ai 1.0.7 → 1.0.8
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/README.md +98 -129
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,9 +13,44 @@
|
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
[](https://nodejs.org)
|
|
15
15
|
|
|
16
|
-
**TibiaWayAI** es un
|
|
16
|
+
**TibiaWayAI** es un asistente de IA para jugadores de Tibia. Sugiere hunting spots, calcula profit/waste/exp, recomienda quests, organiza sets e imbuements, explica mecánicas de bosses, lleva un diario de progreso y analiza screenshots.
|
|
17
17
|
|
|
18
|
-
Funciona como **CLI standalone** y como **plugin de OpenCode
|
|
18
|
+
Funciona como **CLI standalone** (Anthropic o Ollama) y como **plugin de OpenCode** (sin API key extra).
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Instalación
|
|
23
|
+
|
|
24
|
+
Un solo comando — el instalador te pregunta qué modo querés usar:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx tibiaway-ai
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
El instalador ofrece tres opciones:
|
|
31
|
+
|
|
32
|
+
| Opción | Requisito | Descripción |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| **Anthropic Claude** | API key de Anthropic | Mejor calidad de respuestas |
|
|
35
|
+
| **Ollama (local)** | [Ollama](https://ollama.com) instalado | Completamente gratis, sin internet |
|
|
36
|
+
| **Plugin de OpenCode** | [OpenCode](https://opencode.ai) | Sin API key extra, usa el modelo de OpenCode |
|
|
37
|
+
|
|
38
|
+
### Instalación global
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install -g tibiaway-ai
|
|
42
|
+
tibiaway setup
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Requisitos
|
|
48
|
+
|
|
49
|
+
- **Node.js** >= 18.0.0
|
|
50
|
+
- Según el modo elegido:
|
|
51
|
+
- **Anthropic**: API key de [console.anthropic.com](https://console.anthropic.com)
|
|
52
|
+
- **Ollama**: [ollama.com](https://ollama.com) con al menos un modelo descargado (`ollama pull llama3.2`)
|
|
53
|
+
- **OpenCode**: [OpenCode](https://opencode.ai) instalado
|
|
19
54
|
|
|
20
55
|
---
|
|
21
56
|
|
|
@@ -45,98 +80,68 @@ con objetivo de máxima exp/h, te recomiendo estos spots:
|
|
|
45
80
|
|
|
46
81
|
---
|
|
47
82
|
|
|
48
|
-
##
|
|
83
|
+
## Comandos CLI
|
|
49
84
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
85
|
+
| Comando | Descripción |
|
|
86
|
+
|---|---|
|
|
87
|
+
| `tibiaway hunt` | Sugiere hunting spots para tu vocación y level |
|
|
88
|
+
| `tibiaway profit` | Calcula profit, waste y exp/hora |
|
|
89
|
+
| `tibiaway quest` | Recomienda quests según tus objetivos |
|
|
90
|
+
| `tibiaway set` | Arma tu equipment con imbuements |
|
|
91
|
+
| `tibiaway boss <nombre>` | Mecánicas y estrategia de cualquier boss |
|
|
92
|
+
| `tibiaway diary` | Diario de progreso |
|
|
93
|
+
| `tibiaway diary add` | Agrega una entrada al diario |
|
|
94
|
+
| `tibiaway diary show` | Muestra el historial |
|
|
95
|
+
| `tibiaway diary summary` | Resumen de progreso con IA |
|
|
96
|
+
| `tibiaway analyze <archivo>` | Analiza screenshots o notas (.png, .jpg, .txt) |
|
|
97
|
+
| `tibiaway sync` | Actualiza tu perfil desde tibiadata.com |
|
|
98
|
+
| `tibiaway setup` | Reconfigurar proveedor de IA o personaje |
|
|
99
|
+
| `tibiaway help` | Muestra todos los comandos |
|
|
53
100
|
|
|
54
101
|
---
|
|
55
102
|
|
|
56
|
-
##
|
|
103
|
+
## Plugin para OpenCode
|
|
57
104
|
|
|
58
|
-
|
|
105
|
+
TibiaWayAI se instala como agente y comandos en OpenCode con el mismo comando de siempre:
|
|
59
106
|
|
|
60
107
|
```bash
|
|
61
108
|
npx tibiaway-ai
|
|
109
|
+
# → elige "Plugin OpenCode"
|
|
62
110
|
```
|
|
63
111
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm install -g tibiaway-ai
|
|
68
|
-
tibiaway setup
|
|
69
|
-
```
|
|
112
|
+
Esto copia el agente y los comandos a `~/.config/opencode/` (o `.opencode/` local) y vincula tu personaje automáticamente.
|
|
70
113
|
|
|
71
|
-
###
|
|
114
|
+
### Comandos disponibles en OpenCode
|
|
72
115
|
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
116
|
+
```
|
|
117
|
+
/hunt → Busca spots de caza
|
|
118
|
+
/profit → Calcula profit de sesión
|
|
119
|
+
/quest → Recomienda quests
|
|
120
|
+
/set → Arma tu equipment
|
|
121
|
+
/boss → Mecánicas de boss
|
|
122
|
+
/diary → Gestiona el diario
|
|
123
|
+
/analyze → Analiza screenshots
|
|
124
|
+
/sync → Refresca el perfil del agente
|
|
78
125
|
```
|
|
79
126
|
|
|
80
|
-
|
|
81
|
-
1. Configurar tu API key de Anthropic
|
|
82
|
-
2. Vincular tu personaje de Tibia (sincronización automática con tibiadata.com)
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## Comandos
|
|
87
|
-
|
|
88
|
-
| Comando | Descripción | Ejemplo |
|
|
89
|
-
|---|---|---|
|
|
90
|
-
| `tibiaway hunt` | Sugiere hunting spots para tu vocación y level | `tibiaway hunt` |
|
|
91
|
-
| `tibiaway profit` | Calcula profit, waste y exp/hora | `tibiaway profit` |
|
|
92
|
-
| `tibiaway quest` | Recomienda quests según tus objetivos | `tibiaway quest` |
|
|
93
|
-
| `tibiaway set` | Arma tu equipment con imbuements | `tibiaway set` |
|
|
94
|
-
| `tibiaway boss <nombre>` | Mecánicas y estrategia de cualquier boss | `tibiaway boss "Ferumbras"` |
|
|
95
|
-
| `tibiaway diary` | Diario de progreso | `tibiaway diary` |
|
|
96
|
-
| `tibiaway diary add` | Agrega una entrada al diario | `tibiaway diary add` |
|
|
97
|
-
| `tibiaway diary show` | Muestra el historial | `tibiaway diary show` |
|
|
98
|
-
| `tibiaway diary summary` | Resumen de progreso con IA | `tibiaway diary summary` |
|
|
99
|
-
| `tibiaway analyze <archivo>` | Analiza screenshots o notas | `tibiaway analyze ./loot.png` |
|
|
100
|
-
| `tibiaway sync` | Actualiza tu perfil desde tibiadata.com | `tibiaway sync` |
|
|
101
|
-
| `tibiaway setup` | Configuración inicial | `tibiaway setup` |
|
|
102
|
-
| `tibiaway help` | Muestra todos los comandos | `tibiaway help` |
|
|
103
|
-
|
|
104
|
-
### Ejemplos de uso
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
# Buscar el mejor spot para tu nivel y vocación
|
|
108
|
-
tibiaway hunt
|
|
109
|
-
|
|
110
|
-
# Calcular si tu sesión fue rentable
|
|
111
|
-
tibiaway profit
|
|
112
|
-
|
|
113
|
-
# Planear tu próxima quest
|
|
114
|
-
tibiaway quest
|
|
115
|
-
|
|
116
|
-
# Aprender mecánicas de un boss antes de enfrentarlo
|
|
117
|
-
tibiaway boss "The Pale Count"
|
|
127
|
+
### Sincronización de personaje en OpenCode
|
|
118
128
|
|
|
119
|
-
|
|
120
|
-
tibiaway analyze ./screenshot_2025.png
|
|
129
|
+
El agente lee `~/.tibiaway/config.json` al inicio de cada sesión y detecta tu personaje automáticamente. Para refrescar el contexto durante una conversación:
|
|
121
130
|
|
|
122
|
-
|
|
123
|
-
|
|
131
|
+
```
|
|
132
|
+
/sync
|
|
124
133
|
```
|
|
125
134
|
|
|
126
135
|
---
|
|
127
136
|
|
|
128
137
|
## ¿Cómo funciona el sync de personaje?
|
|
129
138
|
|
|
130
|
-
TibiaWayAI se conecta a la API pública de [TibiaData](https://tibiadata.com)
|
|
139
|
+
TibiaWayAI se conecta a la API pública de [TibiaData](https://tibiadata.com) — sin IA, sin API key:
|
|
131
140
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
3. Se consulta `https://api.tibiadata.com/v4/character/[nombre]`
|
|
137
|
-
4. Se muestran tus datos: nombre, vocación, level, world y guild
|
|
138
|
-
5. Confirmas si es tu personaje
|
|
139
|
-
6. Todo se guarda en `~/.tibiaway/config.json`
|
|
141
|
+
1. Se ingresa el nombre del personaje
|
|
142
|
+
2. Se consulta `https://api.tibiadata.com/v4/character/[nombre]`
|
|
143
|
+
3. Se muestran los datos: nombre, vocación, level, world y guild
|
|
144
|
+
4. Se confirma y se guarda en `~/.tibiaway/config.json`
|
|
140
145
|
|
|
141
146
|
**Actualizar tu perfil:**
|
|
142
147
|
|
|
@@ -145,10 +150,12 @@ tibiaway sync
|
|
|
145
150
|
# ✓ Perfil actualizado: Draken Fireblade | Level 347 | Elder Druid
|
|
146
151
|
```
|
|
147
152
|
|
|
148
|
-
**Estructura del
|
|
153
|
+
**Estructura del archivo de configuración** (`~/.tibiaway/config.json`):
|
|
149
154
|
|
|
150
155
|
```json
|
|
151
156
|
{
|
|
157
|
+
"provider": "anthropic",
|
|
158
|
+
"anthropic_api_key": "sk-ant-...",
|
|
152
159
|
"character": {
|
|
153
160
|
"name": "Draken Fireblade",
|
|
154
161
|
"vocation": "Elder Druid",
|
|
@@ -156,46 +163,12 @@ tibiaway sync
|
|
|
156
163
|
"world": "Antica",
|
|
157
164
|
"guild": "The Tibia Gods"
|
|
158
165
|
},
|
|
159
|
-
"anthropic_api_key": "sk-ant-...",
|
|
160
|
-
"language": "español",
|
|
161
166
|
"diary": [],
|
|
162
167
|
"last_sync": "2025-05-17T12:00:00.000Z"
|
|
163
168
|
}
|
|
164
169
|
```
|
|
165
170
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
## Plugin para OpenCode
|
|
169
|
-
|
|
170
|
-
TibiaWayAI incluye definiciones de agente y comandos compatibles con OpenCode.
|
|
171
|
-
|
|
172
|
-
### Instalar el agente
|
|
173
|
-
|
|
174
|
-
```bash
|
|
175
|
-
# Copia el agente a tu configuración de OpenCode
|
|
176
|
-
cp agents/tibiaway.md ~/.config/opencode/agents/
|
|
177
|
-
|
|
178
|
-
# O para uso local (solo este proyecto)
|
|
179
|
-
cp agents/tibiaway.md .opencode/agents/
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Instalar los comandos
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
cp commands/*.md ~/.config/opencode/commands/
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### Usar en OpenCode
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
/hunt → Busca spots de caza
|
|
192
|
-
/profit → Calcula profit de sesión
|
|
193
|
-
/quest → Recomienda quests
|
|
194
|
-
/set → Arma tu equipment
|
|
195
|
-
/boss → Mecánicas de boss
|
|
196
|
-
/diary → Gestiona el diario
|
|
197
|
-
/analyze → Analiza screenshots
|
|
198
|
-
```
|
|
171
|
+
Para Ollama, en lugar de `anthropic_api_key` se guardan `ollama_model` y `ollama_url`.
|
|
199
172
|
|
|
200
173
|
---
|
|
201
174
|
|
|
@@ -204,37 +177,38 @@ cp commands/*.md ~/.config/opencode/commands/
|
|
|
204
177
|
```
|
|
205
178
|
tibiaway-ai/
|
|
206
179
|
├── bin/
|
|
207
|
-
│ └── tibiaway.js # Punto de entrada CLI
|
|
180
|
+
│ └── tibiaway.js # Punto de entrada CLI
|
|
208
181
|
├── src/
|
|
209
|
-
│ ├── installer.js #
|
|
210
|
-
│ ├── standalone.js #
|
|
211
|
-
│ ├── tibia-api.js # Wrapper API pública tibiadata.com
|
|
182
|
+
│ ├── installer.js # Instalación interactiva (3 modos)
|
|
183
|
+
│ ├── standalone.js # Router de comandos CLI
|
|
212
184
|
│ ├── commands/
|
|
213
|
-
│ │ ├── hunt.js
|
|
214
|
-
│ │ ├── profit.js
|
|
215
|
-
│ │ ├── quest.js
|
|
216
|
-
│ │ ├── set.js
|
|
217
|
-
│ │ ├── boss.js
|
|
218
|
-
│ │ ├── diary.js
|
|
219
|
-
│ │ ├── analyze.js
|
|
220
|
-
│ │
|
|
185
|
+
│ │ ├── hunt.js
|
|
186
|
+
│ │ ├── profit.js
|
|
187
|
+
│ │ ├── quest.js
|
|
188
|
+
│ │ ├── set.js
|
|
189
|
+
│ │ ├── boss.js
|
|
190
|
+
│ │ ├── diary.js
|
|
191
|
+
│ │ ├── analyze.js
|
|
192
|
+
│ │ ├── sync.js
|
|
193
|
+
│ │ └── setup-opencode.js # Setup del plugin OpenCode
|
|
221
194
|
│ └── utils/
|
|
222
195
|
│ ├── banner.js # Banner ASCII y helpers de UI
|
|
223
196
|
│ ├── config.js # Config en ~/.tibiaway/config.json
|
|
224
197
|
│ ├── character.js # Gestión del perfil de personaje
|
|
225
|
-
│ └── api.js # Wrapper Anthropic
|
|
198
|
+
│ └── api.js # Wrapper Anthropic + Ollama
|
|
226
199
|
├── agents/
|
|
227
200
|
│ └── tibiaway.md # Definición del agente OpenCode
|
|
228
|
-
├── commands/ #
|
|
201
|
+
├── commands/ # Slash commands para OpenCode
|
|
229
202
|
│ ├── hunt.md
|
|
230
203
|
│ ├── profit.md
|
|
231
204
|
│ ├── quest.md
|
|
232
205
|
│ ├── set.md
|
|
233
206
|
│ ├── boss.md
|
|
234
207
|
│ ├── diary.md
|
|
235
|
-
│
|
|
208
|
+
│ ├── analyze.md
|
|
209
|
+
│ └── sync.md
|
|
236
210
|
├── web/
|
|
237
|
-
│ └── index.html # Landing page
|
|
211
|
+
│ └── index.html # Landing page
|
|
238
212
|
├── package.json
|
|
239
213
|
└── README.md
|
|
240
214
|
```
|
|
@@ -248,11 +222,6 @@ tibiaway-ai/
|
|
|
248
222
|
| `ANTHROPIC_API_KEY` | API key de Anthropic (alternativa a la configuración guardada) |
|
|
249
223
|
| `DEBUG` | Si está definida, muestra errores detallados |
|
|
250
224
|
|
|
251
|
-
```bash
|
|
252
|
-
export ANTHROPIC_API_KEY=sk-ant-tu-key-aqui
|
|
253
|
-
tibiaway hunt
|
|
254
|
-
```
|
|
255
|
-
|
|
256
225
|
---
|
|
257
226
|
|
|
258
227
|
## Contributing
|
|
@@ -280,5 +249,5 @@ MIT © TibiaWayAI
|
|
|
280
249
|
|
|
281
250
|
---
|
|
282
251
|
|
|
283
|
-
*TibiaWayAI no está afiliado con CipSoft GmbH ni con Tibia oficialmente.*
|
|
252
|
+
*TibiaWayAI no está afiliado con CipSoft GmbH ni con Tibia oficialmente.*
|
|
284
253
|
*Tibia® es una marca registrada de CipSoft GmbH.*
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tibiaway-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Tu guía de Tibia powered by AI. Your path through Tibia, powered by AI.",
|
|
5
5
|
"bin": {
|
|
6
|
-
"tibiaway": "
|
|
7
|
-
"tibiaway-ai": "
|
|
6
|
+
"tibiaway": "bin/tibiaway.js",
|
|
7
|
+
"tibiaway-ai": "bin/tibiaway.js"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"engines": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
],
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
|
-
"url": "https://github.com/tibiawayai/tibiaway-ai"
|
|
45
|
+
"url": "git+https://github.com/tibiawayai/tibiaway-ai.git"
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://tibiawayai.com",
|
|
48
48
|
"bugs": {
|