@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.
- package/context-bootstrap.js +11 -9
- package/package.json +1 -1
package/context-bootstrap.js
CHANGED
|
@@ -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
|
-
|
|
18
|
-
if (isBun && existsSync(bundledCli)) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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.
|
|
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",
|