tibiaway-ai 1.0.2 → 1.0.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/installer.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tibiaway-ai",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Tu guía de Tibia powered by AI. Your path through Tibia, powered by AI.",
5
5
  "bin": {
6
6
  "tibiaway": "./bin/tibiaway.js",
package/src/installer.js CHANGED
@@ -4,6 +4,7 @@ import fetch from 'node-fetch';
4
4
  import { showBanner, success, error, info, highlight, separator, warn } from './utils/banner.js';
5
5
  import { setupCharacter } from './utils/character.js';
6
6
  import { setApiKey, getApiKey, setOllamaConfig, getOllamaConfig, getProvider, writeConfig, readConfig } from './utils/config.js';
7
+ import { handleSetupOpencode } from './commands/setup-opencode.js';
7
8
 
8
9
  const OLLAMA_MODELS = [
9
10
  { name: 'llama3.2 (Recomendado · 3 GB · rápido y equilibrado)', value: 'llama3.2' },
@@ -167,6 +168,10 @@ export async function runInstaller() {
167
168
  name: `${chalk.hex('#4ade80').bold('Ollama (local)')} ${chalk.hex('#888')('· Completamente gratis · Corre en tu PC · Sin internet')}`,
168
169
  value: 'ollama',
169
170
  },
171
+ {
172
+ name: `${chalk.hex('#60a5fa').bold('Plugin de OpenCode')} ${chalk.hex('#888')('· Sin API key · Usa el modelo de OpenCode · Un comando')}`,
173
+ value: 'opencode',
174
+ },
170
175
  ],
171
176
  },
172
177
  ]);
@@ -174,6 +179,11 @@ export async function runInstaller() {
174
179
  console.log('');
175
180
  separator();
176
181
 
182
+ if (provider === 'opencode') {
183
+ await handleSetupOpencode();
184
+ return;
185
+ }
186
+
177
187
  if (provider === 'anthropic') {
178
188
  await setupAnthropic(getApiKey());
179
189
  } else {