docs(skill): split setup into AGENTIC-MANUAL.md; keep SKILL.md lean
The SKILL.md body loads into context on every activation, so one-time install/ setup prose was wasted context once emcli is running. Move it out: - New AGENTIC-MANUAL.md: get-the-files bootstrap, binary install (incl. options and build-from-source, folding in the old references/install.md), EMCLI_KEY, account discovery. Fetched only during first-time setup. - SKILL.md trimmed (182→~145 lines) to the recurring path: security model, a short "Files & first run" pointer + per-session preflight, the list/get/ack/send workflow, JSON envelope, command table, enforcement, do/don't. - Remove references/install.md (folded in); fix RELEASING.md pointer. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
# Installing the emcli binary
|
||||
|
||||
The skill's `scripts/install.sh` downloads a prebuilt binary from the project's release assets.
|
||||
|
||||
## Quick install
|
||||
|
||||
```bash
|
||||
bash scripts/install.sh
|
||||
```
|
||||
|
||||
It detects your OS (`linux`/`darwin`/`windows`) and architecture (`amd64`/`arm64`), downloads the
|
||||
matching asset, verifies its SHA-256 checksum when a `checksums.txt` is published, makes it
|
||||
executable, and confirms it runs.
|
||||
|
||||
## Options (environment variables)
|
||||
|
||||
| Variable | Default | Purpose |
|
||||
|---|---|---|
|
||||
| `EMCLI_VERSION` | `v0.4.0` | Release tag to fetch |
|
||||
| `EMCLI_BASE_URL` | `https://gitea.dcglab.co.uk/steve/emcli` | Repo base URL |
|
||||
| `EMCLI_INSTALL_DIR` | `$HOME/.local/bin` | Install location |
|
||||
|
||||
Example — install a specific version to a system directory:
|
||||
|
||||
```bash
|
||||
EMCLI_VERSION=v0.4.0 EMCLI_INSTALL_DIR=/usr/local/bin bash scripts/install.sh
|
||||
```
|
||||
|
||||
## Release asset naming
|
||||
|
||||
The release publishes one binary per platform plus a checksum file:
|
||||
|
||||
```
|
||||
emcli_0.4.0_linux_amd64
|
||||
emcli_0.4.0_linux_arm64
|
||||
emcli_0.4.0_darwin_amd64
|
||||
emcli_0.4.0_darwin_arm64
|
||||
emcli_0.4.0_windows_amd64.exe
|
||||
checksums.txt # sha256, one "<sum> <asset>" line per asset
|
||||
```
|
||||
|
||||
> `v0.4.0` and these assets are placeholders until the first tagged release exists. Update
|
||||
> `EMCLI_VERSION` (or the default in `install.sh`) once a real release is cut.
|
||||
|
||||
## Building from source instead
|
||||
|
||||
If you have Go and prefer to build rather than download:
|
||||
|
||||
```bash
|
||||
git clone https://gitea.dcglab.co.uk/steve/emcli
|
||||
cd emcli
|
||||
CGO_ENABLED=0 go build -o emcli ./cmd/emcli
|
||||
# then move ./emcli onto your PATH
|
||||
```
|
||||
|
||||
## After installing
|
||||
|
||||
`emcli` needs the `EMCLI_KEY` environment variable (a base64-encoded 32-byte AES key) to touch its
|
||||
database. For agent use, the **orchestrator provides this** — the agent should not generate or read
|
||||
it. A human setting up emcli for the first time generates one with
|
||||
`head -c 32 /dev/urandom | base64` and saves it securely. See the project User Manual for full admin
|
||||
setup.
|
||||
Reference in New Issue
Block a user