feat(activity): multi-service config, make help default, install-cli
Bare make lists targets. make install-cli installs the activity tool via uv. Named activity-core backends live in ~/.config/activity/services.json with list/add/use/default/which; -s/--service selects one call without changing the default; --activity-url is a one-shot override.
This commit is contained in:
parent
9f4993d9e7
commit
192942244e
8 changed files with 755 additions and 49 deletions
|
|
@ -294,21 +294,32 @@ morning review without AI tooling. Canon: `docs/repo-automation-review-cli.md`
|
|||
(ACTIVITY-WP-0028).
|
||||
|
||||
```bash
|
||||
# Install once (from activity-core checkout)
|
||||
uv tool install -e .
|
||||
# or: uv run activity …
|
||||
# From activity-core checkout — list make targets with bare `make`
|
||||
make
|
||||
make install-cli # installs `activity` via uv tool (userspace)
|
||||
|
||||
# Point the CLI at one or more activity-core deployments
|
||||
activity service add railiance \
|
||||
--url https://activity.coulomb.social \
|
||||
--hub-url http://127.0.0.1:18000 \
|
||||
--make-default
|
||||
activity service list
|
||||
activity service use local # switch default
|
||||
activity runs -s railiance --since today # one-shot, no default change
|
||||
|
||||
cd ~/freedom-intelligence
|
||||
activity status
|
||||
activity inbox
|
||||
activity runs --since today # needs ACTIVITY_CORE_URL for live ops API
|
||||
activity ack briefs/2026/08/2026-08-06.md
|
||||
```
|
||||
|
||||
| Env | Purpose |
|
||||
| --- | ------- |
|
||||
| `ACTIVITY_CORE_URL` | Ops API (e.g. `https://activity.coulomb.social` or ClusterIP) |
|
||||
| `STATE_HUB_URL` | Hub progress for completion events |
|
||||
| Mechanism | Purpose |
|
||||
| --------- | ------- |
|
||||
| `activity service …` | Named backends in `~/.config/activity/services.json` |
|
||||
| `-s` / `--service` | Use a named backend for this call only |
|
||||
| `--activity-url` | One-shot API URL (highest precedence) |
|
||||
| `ACTIVITY_CORE_URL` | Env fallback when no service/flag |
|
||||
| `STATE_HUB_URL` | Hub progress (env or per-service `state_hub_url`) |
|
||||
| `ACTIVITY_REVIEW_STATE_DIR` | Override local checkpoint dir |
|
||||
|
||||
Org-wide tools (`make automation-status`, prod SSH helper) remain for fleet view.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue