@iaforged/context-code 1.2.10 → 1.2.12

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.
@@ -14,14 +14,16 @@ const isBun = typeof Bun !== 'undefined'
14
14
  const bundledCli = join(__dirname, 'cli.js')
15
15
  const distCli = join(__dirname, 'dist', 'src', 'entrypoints', 'cli.js')
16
16
 
17
- // cli.js es un bundle de Bun — solo usarlo si realmente corremos en Bun
18
- if (isBun && existsSync(bundledCli)) {
19
- console.log('[DEBUG] Cargando bundle de Bun:', bundledCli)
20
- await import(pathToFileURL(bundledCli).href)
21
- } else if (existsSync(distCli)) {
22
- console.log('[DEBUG] Cargando dist de Node:', distCli)
23
- await import(pathToFileURL(distCli).href)
24
- } else {
25
- console.error('No se encontro el punto de entrada del CLI (cli.js o dist/src/entrypoints/cli.js)')
17
+ try {
18
+ if (isBun && existsSync(bundledCli)) {
19
+ await import(pathToFileURL(bundledCli).href)
20
+ } else if (existsSync(distCli)) {
21
+ await import(pathToFileURL(distCli).href)
22
+ } else {
23
+ console.error('No se encontro el punto de entrada del CLI (cli.js o dist/src/entrypoints/cli.js)')
24
+ process.exit(1)
25
+ }
26
+ } catch (e) {
27
+ console.error('Error al iniciar Context Code:', e)
26
28
  process.exit(1)
27
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iaforged/context-code",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "Context Code es un asistente de desarrollo para la terminal. Puede revisar tu proyecto, editar archivos, ejecutar comandos y apoyarte en tareas reales de programacion.",
5
5
  "author": "Context AI",
6
6
  "license": "MIT",