63 lines
1.4 KiB
Markdown
63 lines
1.4 KiB
Markdown
# Prime Bootstrap v0
|
|
|
|
## 1) Environment
|
|
```bash
|
|
source /srv/prime-core/scripts/prime-env.sh
|
|
export PRIME_VAULT_KEY='set-a-strong-random-value'
|
|
```
|
|
|
|
## 2) Validate
|
|
```bash
|
|
prime status
|
|
prime dispatch planning "design backup policy"
|
|
prime dispatch coding "implement hello endpoint"
|
|
```
|
|
|
|
## 3) Backup/Restore
|
|
```bash
|
|
prime backup-now
|
|
prime restore <commit-id>
|
|
```
|
|
|
|
## 4) OAuth broker stubs
|
|
Current `prime_core/oauth.py` is a stub interface (start/callback) and encrypted token vault.
|
|
Replace `auth.example` URLs and token exchange with provider-specific OAuth implementations.
|
|
|
|
## 5) Queue worker + approvals
|
|
```bash
|
|
prime queue add planning "design X"
|
|
prime queue run-once
|
|
prime queue list
|
|
prime queue approve <task-id>
|
|
prime queue deny <task-id> --reason "optional reason"
|
|
```
|
|
Worker service:
|
|
```bash
|
|
sudo systemctl status prime-worker.service
|
|
```
|
|
|
|
## 6) Telegram notifications
|
|
Set in local runtime secrets (`.secrets/runtime.env`):
|
|
- `TELEGRAM_BOT_TOKEN`
|
|
- `TELEGRAM_CHAT_ID`
|
|
|
|
Worker sends alerts for:
|
|
- blocked approval tasks
|
|
- failed tasks
|
|
|
|
## 7) Telegram control plane (beyond request/response)
|
|
Prime now includes:
|
|
- `prime-telegram-control.service` (inbound command channel)
|
|
- `prime-autonomy-loop.service` (goal-driven autonomous queue seeding)
|
|
|
|
Telegram commands:
|
|
- `status`
|
|
- `queue list`
|
|
- `queue add <task_type> <task>`
|
|
- `queue approve <id>`
|
|
- `queue deny <id> [reason]`
|
|
- `run once`
|
|
- `mode autonomous on|off`
|
|
- `goals show`
|
|
- `goals add <text>`
|