smart_ide/docs/repo/service-repos-devtools.md
4NK 3f1894e21f Remove AnythingLLM VS Code extension; add Carbonyl service (upstream submodule)
- Delete extensions/anythingllm-workspaces; document migration to anythingllm-devtools
- Add services/carbonyl: shallow submodule fathyb/carbonyl, run-carbonyl.sh (Docker/native)
- Add scripts/open-carbonyl-preview-test.sh and smart_ide.preview_urls.test in example conf
- Docs: service-carbonyl, carbonyl-terminal-browser, architecture index updates
2026-04-03 22:13:34 +02:00

41 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# repos-devtools-server (`services/repos-devtools-server/`)
API HTTP locale sur **`127.0.0.1`** pour des opérations Git sous **`REPOS_DEVTOOLS_ROOT`** (défaut souvent `/home/ncantu/code` — à adapter sur chaque poste).
Après un **`POST /repos-clone`** réussi, si le dépôt na pas **`.4nkaiignore`**, le serveur copie **`templates/4nkaiignore.default`** à la racine du clone. La réponse inclut **`fourNkAiIgnoreTemplateWrote`**.
## Variables denvironnement
| Variable | Obligatoire | Description |
|----------|-------------|-------------|
| `REPOS_DEVTOOLS_TOKEN` | oui | `Authorization: Bearer <token>` sur chaque requête. |
| `REPOS_DEVTOOLS_ROOT` | non | Racine des clones. |
| `REPOS_DEVTOOLS_HOST` | non | Adresse découte (défaut `127.0.0.1`). |
| `REPOS_DEVTOOLS_PORT` | non | Port (défaut `37140`). |
## Endpoints
- `POST /repos-clone` — JSON `{ "url": "<git>", "branch": "test" }` (`branch` optionnel).
- `GET /repos-list`
- `POST /repos-load` — JSON `{ "name": "<folder>" }`
## Exécution
```bash
cd services/repos-devtools-server
npm install
npm run build
export REPOS_DEVTOOLS_TOKEN='…'
npm start
```
Unité systemd utilisateur possible : `systemctl --user daemon-reload && systemctl --user restart repos-devtools-server.service` après installation dune unité locale.
## Templates
Maintenir **`templates/4nkaiignore.default`** aligné avec `services/anythingllm-devtools/templates/4nkaiignore.default`.
## Spécification HTTP
[API/repos-devtools-server.md](../API/repos-devtools-server.md)