theus-cli 0.1.2 → 0.1.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.
- package/LICENSE +78 -0
- package/README.md +46 -32
- package/cli.js +31575 -36873
- package/package.json +3 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
LICENCIA COMERCIAL PROPIETARIA DE THEUS
|
|
2
|
+
Copyright (c) 2026 Marketrix / Theus (theus.pe). Todos los derechos reservados.
|
|
3
|
+
|
|
4
|
+
1. TITULARIDAD
|
|
5
|
+
Este software, denominado "Theus CLI" o "Theus", incluyendo su codigo
|
|
6
|
+
fuente, binarios, bundles compilados, documentacion, marcas, logotipos,
|
|
7
|
+
arte y demas materiales asociados (en conjunto, el "Software"), es
|
|
8
|
+
propiedad exclusiva de Marketrix ("el Titular"), operador del dominio
|
|
9
|
+
comercial theus.pe.
|
|
10
|
+
|
|
11
|
+
2. LICENCIA LIMITADA DE USO
|
|
12
|
+
Sujeto al cumplimiento de estos terminos y, cuando corresponda, al pago
|
|
13
|
+
del plan de suscripcion vigente contratado a traves de theus.pe, el
|
|
14
|
+
Titular concede al usuario una licencia limitada, personal, revocable,
|
|
15
|
+
no exclusiva, no transferible y no sublicenciable para instalar y
|
|
16
|
+
ejecutar el Software con fines de uso del producto Theus.
|
|
17
|
+
|
|
18
|
+
3. RESTRICCIONES
|
|
19
|
+
Salvo autorizacion previa, expresa y por escrito del Titular, el usuario
|
|
20
|
+
NO puede:
|
|
21
|
+
a) copiar, distribuir, publicar, alquilar, prestar, vender o revender el
|
|
22
|
+
Software, en todo o en parte;
|
|
23
|
+
b) modificar, traducir, adaptar o crear obras derivadas del Software;
|
|
24
|
+
c) realizar ingenieria inversa, descompilar o desensamblar el Software,
|
|
25
|
+
salvo en la medida en que la ley aplicable lo permita de forma
|
|
26
|
+
imperativa;
|
|
27
|
+
d) eliminar, ocultar o alterar avisos de derechos de autor, marcas o
|
|
28
|
+
atribuciones incluidos en el Software;
|
|
29
|
+
e) usar el Software para construir un producto o servicio que compita
|
|
30
|
+
con Theus;
|
|
31
|
+
f) usar las marcas "Theus", "theus.pe" o el arte asociado fuera del uso
|
|
32
|
+
normal del producto.
|
|
33
|
+
|
|
34
|
+
4. SUSCRIPCIONES Y SERVICIOS
|
|
35
|
+
Determinadas funciones del Software dependen de servicios en linea del
|
|
36
|
+
Titular (por ejemplo, el gateway de modelos y la consola de theus.pe) y
|
|
37
|
+
pueden requerir una suscripcion de pago activa. El Titular puede
|
|
38
|
+
modificar, suspender o descontinuar dichos servicios conforme a los
|
|
39
|
+
terminos comerciales publicados en theus.pe.
|
|
40
|
+
|
|
41
|
+
5. CODIGO DE TERCEROS
|
|
42
|
+
El Software puede incluir componentes de terceros sujetos a sus propias
|
|
43
|
+
licencias. Nada en esta licencia limita los derechos que dichas
|
|
44
|
+
licencias otorgan sobre esos componentes; sus avisos se conservan en los
|
|
45
|
+
archivos correspondientes.
|
|
46
|
+
|
|
47
|
+
6. PROPIEDAD INTELECTUAL
|
|
48
|
+
El Software se licencia, no se vende. El Titular conserva todos los
|
|
49
|
+
derechos, titulos e intereses sobre el Software que no se conceden
|
|
50
|
+
expresamente en esta licencia.
|
|
51
|
+
|
|
52
|
+
7. SIN GARANTIAS
|
|
53
|
+
EL SOFTWARE SE ENTREGA "TAL CUAL" Y "SEGUN DISPONIBILIDAD", SIN
|
|
54
|
+
GARANTIAS DE NINGUN TIPO, EXPRESAS O IMPLICITAS, INCLUYENDO SIN
|
|
55
|
+
LIMITACION GARANTIAS DE COMERCIABILIDAD, IDONEIDAD PARA UN PROPOSITO
|
|
56
|
+
PARTICULAR Y NO INFRACCION.
|
|
57
|
+
|
|
58
|
+
8. LIMITACION DE RESPONSABILIDAD
|
|
59
|
+
EN LA MAXIMA MEDIDA PERMITIDA POR LA LEY, EL TITULAR NO SERA RESPONSABLE
|
|
60
|
+
POR DANOS INDIRECTOS, INCIDENTALES, ESPECIALES, PUNITIVOS O
|
|
61
|
+
CONSECUENTES, NI POR PERDIDA DE DATOS, LUCRO CESANTE O INTERRUPCION DE
|
|
62
|
+
NEGOCIO, DERIVADOS DEL USO O LA IMPOSIBILIDAD DE USO DEL SOFTWARE.
|
|
63
|
+
|
|
64
|
+
9. TERMINACION
|
|
65
|
+
Esta licencia termina automaticamente si el usuario incumple cualquiera
|
|
66
|
+
de sus terminos o si finaliza la suscripcion que la habilita. Al
|
|
67
|
+
terminar, el usuario debe cesar todo uso del Software y eliminar las
|
|
68
|
+
copias en su poder.
|
|
69
|
+
|
|
70
|
+
10. LEY APLICABLE
|
|
71
|
+
Esta licencia se rige por las leyes de la Republica del Peru. Cualquier
|
|
72
|
+
controversia se somete a la jurisdiccion de los tribunales de Lima,
|
|
73
|
+
Peru.
|
|
74
|
+
|
|
75
|
+
Para licencias corporativas, redistribucion u otros permisos, contacta al
|
|
76
|
+
Titular a traves de theus.pe.
|
|
77
|
+
|
|
78
|
+
THEUS — HECHO EN PERU · AD ASTRA PER ASPERA
|
package/README.md
CHANGED
|
@@ -21,59 +21,60 @@ Esto ya no es un documento de estudio ni una propuesta de rebrand. Este reposito
|
|
|
21
21
|
## Instalacion para usuarios
|
|
22
22
|
|
|
23
23
|
Requisito de runtime: **Bun**. Theus se compila y se ejecuta con Bun (`cli.js` es
|
|
24
|
-
un bundle con target `bun`, no corre bajo Node).
|
|
25
|
-
|
|
24
|
+
un bundle con target `bun`, no corre bajo Node). El instalador oficial instala
|
|
25
|
+
Bun por ti si falta (descargando el binario oficial y verificando su checksum
|
|
26
|
+
SHA-256).
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
curl -fsSL https://bun.sh/install | bash
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Opcion A — npm (global)
|
|
28
|
+
### Opcion A — instalador oficial (recomendada)
|
|
32
29
|
|
|
33
30
|
```bash
|
|
34
|
-
|
|
31
|
+
curl -fsSL https://theus.pe/install.sh | bash
|
|
35
32
|
theus --version
|
|
36
33
|
```
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```
|
|
35
|
+
El instalador detecta tu plataforma (macOS/Linux, x64/arm64), descarga el
|
|
36
|
+
tarball del ultimo release de `MarketrixPE/theuscode` verificando su SHA-256,
|
|
37
|
+
lo instala en `~/.theus/app` y enlaza el comando `theus` en tu PATH. Si aun no
|
|
38
|
+
hay release publicado, cae automaticamente a instalar desde el codigo fuente
|
|
39
|
+
(clona el repo y compila el bundle localmente).
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
Variables opcionales del instalador:
|
|
46
42
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
| Variable | Efecto |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `THEUS_INSTALL_MODE` | `auto` (def), `release` o `source` |
|
|
46
|
+
| `THEUS_VERSION` | tag del release, p.ej. `v0.1.3` (def: `latest`) |
|
|
47
|
+
| `THEUS_REF` / `THEUS_COMMIT` | rama y commit fijado para modo `source` |
|
|
48
|
+
| `THEUS_HOME` | carpeta de instalacion (def: `~/.theus/app`) |
|
|
49
|
+
| `THEUS_BIN_DIR` | donde enlazar `theus` (def: primer dir escribible del PATH) |
|
|
52
50
|
|
|
53
|
-
|
|
51
|
+
Uso normal despues de instalar:
|
|
54
52
|
|
|
55
53
|
```bash
|
|
56
|
-
|
|
54
|
+
cd /ruta/de/tu/proyecto
|
|
55
|
+
theus
|
|
57
56
|
```
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
> `#!/usr/bin/env bun`. `npm install -g` crea el enlace `theus` apuntando a ese
|
|
61
|
-
> bundle; necesitas Bun en el PATH para ejecutarlo.
|
|
58
|
+
Para actualizar, vuelve a ejecutar el instalador (es idempotente).
|
|
62
59
|
|
|
63
|
-
### Opcion B —
|
|
60
|
+
### Opcion B — manual, desde un release
|
|
64
61
|
|
|
65
|
-
|
|
62
|
+
Descarga el tarball y el archivo de checksums desde
|
|
63
|
+
`https://github.com/MarketrixPE/theuscode/releases`, verifica e instala:
|
|
66
64
|
|
|
67
65
|
```bash
|
|
68
|
-
curl -
|
|
66
|
+
curl -fsSLO https://github.com/MarketrixPE/theuscode/releases/latest/download/theus-cli.tar.gz
|
|
67
|
+
curl -fsSLO https://github.com/MarketrixPE/theuscode/releases/latest/download/SHA256SUMS
|
|
68
|
+
shasum -a 256 -c SHA256SUMS --ignore-missing # (en Linux: sha256sum -c)
|
|
69
|
+
mkdir -p ~/.theus && tar -xzf theus-cli.tar.gz -C ~/.theus && mv ~/.theus/theus-cli ~/.theus/app
|
|
70
|
+
ln -sf ~/.theus/app/bin/theus ~/.local/bin/theus
|
|
69
71
|
```
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
`THEUS_BIN_DIR`. El script vive en `scripts/install.sh`.
|
|
73
|
-
|
|
74
|
-
### Opcion C — desde el repositorio (desarrollo)
|
|
73
|
+
### Opcion C — manual, desde el repositorio (desarrollo)
|
|
75
74
|
|
|
76
75
|
```bash
|
|
76
|
+
git clone https://github.com/MarketrixPE/theuscode.git
|
|
77
|
+
cd theuscode
|
|
77
78
|
bun install
|
|
78
79
|
bun run build # genera cli.js self-contained
|
|
79
80
|
./cli.js --version # o: bun run dev
|
|
@@ -86,6 +87,12 @@ bundle compilado:
|
|
|
86
87
|
ln -sf "$(pwd)/cli.js" /usr/local/bin/theus
|
|
87
88
|
```
|
|
88
89
|
|
|
90
|
+
> Nota: la publicacion en npm (`npm install -g theus-cli`) esta preparada en
|
|
91
|
+
> `package.json` pero el paquete aun no esta publicado en el registry. Los
|
|
92
|
+
> releases se generan con `bun run release` (`scripts/release.ts`) y el
|
|
93
|
+
> workflow `.github/workflows/release.yml` los publica al pushear un tag
|
|
94
|
+
> `vX.Y.Z`.
|
|
95
|
+
|
|
89
96
|
## Conectar un modelo
|
|
90
97
|
|
|
91
98
|
Theus lee primero variables `THEUS_*`. Puedes apuntar a Ollama, LM Studio, LiteLLM, OpenRouter, un gateway propio o cualquier servidor OpenAI-compatible.
|
|
@@ -170,6 +177,11 @@ theus login
|
|
|
170
177
|
|
|
171
178
|
Ese comando abre `https://theus.pe/cai/oauth/authorize`, recibe el callback local, intercambia `code` por token OAuth y crea una API key Theus para configurar la terminal. La ruta de suscripcion dentro del CLI tambien apunta a `https://theus.pe/cai/oauth/authorize`; no debe abrir dominios externos como flujo principal de producto.
|
|
172
179
|
|
|
180
|
+
Al completarse, `theus login` instala tambien el proveedor oficial
|
|
181
|
+
`theus-official` en `~/.theus/providers.json` con base
|
|
182
|
+
`https://theus.pe/v1` y modelo `theus-router-auto`. Asi el usuario puede
|
|
183
|
+
entrar con `theus` y enviar prompts sin exportar variables manuales.
|
|
184
|
+
|
|
173
185
|
Variables utiles:
|
|
174
186
|
|
|
175
187
|
| Variable | Uso |
|
|
@@ -184,6 +196,8 @@ Variables utiles:
|
|
|
184
196
|
| `THEUS_DISABLE_TOOLS=1` | Desactiva tool-calling para endpoints simples |
|
|
185
197
|
| `THEUS_NO_PROJECT_INTELLIGENCE=1` | No levanta indice/API/dashboard |
|
|
186
198
|
| `THEUS_NO_OPEN_DASHBOARD=1` | Levanta API sin abrir el navegador |
|
|
199
|
+
| `THEUS_START_MENU=1` | Muestra el menu visual de arranque antes del prompt |
|
|
200
|
+
| `THEUS_NO_START_MENU=1` | Fuerza saltar el menu visual incluso si se pidio |
|
|
187
201
|
| `PROJECT_API_PORT=65235` | Fija el puerto local |
|
|
188
202
|
| `INDEX_MAX_FILES=2500` | Limite de archivos indexados |
|
|
189
203
|
| `THEUS_ENABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL=1` | Opt-in para marketplace oficial |
|