aihub-code 0.2.0__py3-none-any.whl
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.
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aihub-code
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: AI Hub Code para Termux: cliente de terminal (chat, tarefas, memória, projetos) do backend AI Hub
|
|
5
|
+
License: Proprietary
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Provides-Extra: term
|
|
9
|
+
Requires-Dist: websocket-client>=1.6; extra == "term"
|
|
10
|
+
|
|
11
|
+
# AI Hub Code no Termux
|
|
12
|
+
|
|
13
|
+
Cliente de linha de comando (Python, só biblioteca padrão) do backend AI Hub Code.
|
|
14
|
+
|
|
15
|
+
## Instalar sem GitHub (pip)
|
|
16
|
+
Pacote `aihub-code` (só biblioteca padrão; `[term]` acrescenta o terminal remoto):
|
|
17
|
+
```sh
|
|
18
|
+
pkg install -y python
|
|
19
|
+
pip install "aihub-code[term]" # quando publicado no PyPI
|
|
20
|
+
# ou, sem PyPI, a partir de um arquivo .whl que você baixou/copiou:
|
|
21
|
+
pip install "aihub_code-0.2.0-py3-none-any.whl[term]"
|
|
22
|
+
aihub setup && aihub login
|
|
23
|
+
```
|
|
24
|
+
Gerar o `.whl` (no repositório): `cd termux && python3 -m pip install build && python3 -m build --wheel`.
|
|
25
|
+
|
|
26
|
+
## Instalar pelo GitHub
|
|
27
|
+
```sh
|
|
28
|
+
pkg install -y git python
|
|
29
|
+
git clone https://github.com/creelyzinho/ai-hub && cd ai-hub && git checkout claude/ai-hub-remove-ccr
|
|
30
|
+
sh termux/install.sh
|
|
31
|
+
aihub setup # busca os dados públicos de login no backend
|
|
32
|
+
aihub login # e-mail e senha (a senha não é salva)
|
|
33
|
+
```
|
|
34
|
+
Se `aihub setup` disser que o backend não publicou os dados de login, use:
|
|
35
|
+
`aihub setup --supabase-url https://<projeto>.supabase.co --supabase-key <chave PUBLICÁVEL>` (nunca a chave secreta).
|
|
36
|
+
|
|
37
|
+
## Comandos
|
|
38
|
+
| Comando | O que faz |
|
|
39
|
+
|---|---|
|
|
40
|
+
| `aihub` (sem argumentos) | abre a interface interativa estilo Claude Code: avatar, resposta em streaming, `/help` lista os `/comandos` (`/avatar` mostra a logo grande) |
|
|
41
|
+
| `aihub chat [texto]` | conversa (sem texto abre o modo interativo; `--model`, `--project`, `--no-save`) |
|
|
42
|
+
| `aihub tasks new <meta>` / `list` / `show` / `run` / `watch` / `cancel` / `pause` / `resume` `<id>` | tarefas dos agentes (id aceita prefixo) |
|
|
43
|
+
| `aihub notify` | avisa pelo Termux:API quando uma tarefa termina |
|
|
44
|
+
| `aihub memory list/add/search/rm` | memória persistente (`--kind`, `--project`) |
|
|
45
|
+
| `aihub projects list/add/rm` | projetos |
|
|
46
|
+
| `aihub term` | terminal remoto no Codespace (sair: Ctrl+]) |
|
|
47
|
+
| `aihub status`, `models`, `history`, `whoami`, `logout` | utilitários |
|
|
48
|
+
|
|
49
|
+
## Segurança
|
|
50
|
+
- Só fala com `https://*.vyntrica.com` (backend) e `https://*.supabase.co` (login).
|
|
51
|
+
- Tokens em `~/.config/aihub-code/session.json` (modo 0600); a senha nunca é gravada.
|
|
52
|
+
- Só modelos gratuitos aprovados no backend; o cliente não escolhe provedores pagos.
|
|
53
|
+
- Testes: `python3 -m unittest tests.test_termux_client -v`
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
aihub.py,sha256=mSuJ9NwRv5Q1rnakYkiA9dhTQ_1rLqfeF6DT0kT1cnI,53914
|
|
2
|
+
aihub_code-0.2.0.dist-info/METADATA,sha256=C0zjaIv2iEZMqOCtghYA8KTol_b2M7sIsEmdILZWLWM,2543
|
|
3
|
+
aihub_code-0.2.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
4
|
+
aihub_code-0.2.0.dist-info/entry_points.txt,sha256=1o81k7bQFUjvDqE_11w1_Zk-BUf84_foQNzOSdq4phE,36
|
|
5
|
+
aihub_code-0.2.0.dist-info/top_level.txt,sha256=vIvTtSIN73xv46BpYM-ctVGnyOiUQ9EWP_6ngvdIlvw,6
|
|
6
|
+
aihub_code-0.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aihub
|