2b76ae8497
- Validate UUID format; log created/duplicate/rejected - Tests for 201, 409, 422; update agent-integration and work-plan - Docs: neutral IDE wording (no product-specific editor names)
81 lines
2.3 KiB
Markdown
81 lines
2.3 KiB
Markdown
# Multi-root workspace: три репозитория
|
|
|
|
Как работать в одном multi-root workspace над **ssh-monitor**, **RDP-login-monitor** и **security-alert-center** одновременно (VS Code или совместимый редактор).
|
|
|
|
---
|
|
|
|
## 1. Расположение репозиториев (пример)
|
|
|
|
| Имя в workspace | Путь (пример Windows) | Remote |
|
|
|-----------------|----------------------|--------|
|
|
| `ssh-monitor` | `D:\Soft\Git\ssh-monitor` | git.kalinamall.ru |
|
|
| `rdp-monitor` | `D:\Soft\Git\RDP-login-monitor` | git.kalinamall.ru |
|
|
| `security-alert-center` | `D:\Soft\Git\security-alert-center` | git.kalinamall.ru |
|
|
|
|
Пути подставьте свои.
|
|
|
|
---
|
|
|
|
## 2. Файл workspace
|
|
|
|
Создайте `security-monitors.code-workspace`:
|
|
|
|
```json
|
|
{
|
|
"folders": [
|
|
{
|
|
"path": "D:/Soft/Git/ssh-monitor",
|
|
"name": "ssh-monitor"
|
|
},
|
|
{
|
|
"path": "D:/Soft/Git/RDP-login-monitor",
|
|
"name": "rdp-monitor"
|
|
},
|
|
{
|
|
"path": "D:/Soft/Git/security-alert-center",
|
|
"name": "security-alert-center"
|
|
}
|
|
],
|
|
"settings": {
|
|
"files.eol": "\n"
|
|
}
|
|
}
|
|
```
|
|
|
|
Открыть: **File → Open Workspace from File**.
|
|
|
|
---
|
|
|
|
## 3. Порядок работ по фазам
|
|
|
|
| Фаза | Где править |
|
|
|------|-------------|
|
|
| 0 — ТЗ | `security-alert-center/docs/` |
|
|
| 1 — MVP SAC | `security-alert-center/backend`, `frontend` |
|
|
| 2 — UseSAC | `ssh-monitor`, `RDP-login-monitor` + мелкие правки SAC при необходимости |
|
|
|
|
---
|
|
|
|
## 4. Соглашения
|
|
|
|
- Контракт событий: `security-alert-center/docs/event-schema-v1.json` — **единственный источник истины**.
|
|
- Изменение схемы → обновить ТЗ + версию `schema_version` + оба агента.
|
|
- Коммиты в три репо **раздельные**; связь через теги/версии в README (см. [roadmap.md](roadmap.md)).
|
|
|
|
---
|
|
|
|
## 5. Remote для SAC
|
|
|
|
После создания репозитория на git.kalinamall.ru:
|
|
|
|
```bash
|
|
git remote add origin https://git.kalinamall.ru/PapaTramp/security-alert-center.git
|
|
git push -u origin main
|
|
```
|
|
|
|
---
|
|
|
|
## См. также
|
|
|
|
- [work-plan.md](work-plan.md) фаза 0.6
|