diff --git a/CHANGELOG.md b/CHANGELOG.md index 62332ad..a5a86e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to the `indianopinion` npm package. The format follows - `io.sh` with jq prints an error from the API in the CLI's shape, `{"ok":false,"error":...,"message":...,"status":...}` plus `field`, `allowed`, `attempts_left`, `suggestion`, `options`, `scope` and `retry_after` when the API sends them, instead of the API's own body (WordPress's `{code, message, data}`). A body that is not JSON gives `http_`, as in the CLI. Without jq the body is still passed through unchanged (#29). - `brief --include coverage` returns the per-outlet framing as `coverage` (`[{outlet, framing, note}]`, the MCP `get_brief` shape) instead of under the REST name `stances`, in the CLI and in `io.sh`. With `--include`, `stances` is no longer in the output; without `--include` the REST payload is unchanged (#27). - `briefs --category` with a category that matches nothing no longer looks like a quiet day: when the category is not among those of the newest 100 briefs, the empty answer carries a `warning` and `categories_seen`, in the CLI and in `io.sh` with jq. The exit code stays 0, because the API keeps no list of categories to check against. README and SKILL.md say how `--category` matches and how to list the categories in use (#30). +- README: `npm i -g github:IndianOpinion/cli` installs the `main` branch, not "the newest release" as the comment said; a `#v0.2.2` line installs the tagged release. The registry package is still unpublished (#1). ## [0.2.2] - 2026-10-22 diff --git a/README.md b/README.md index 7049a91..f4ded51 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,16 @@ The package is not on the npm registry yet (the first publish is pending), so in repository or from the site: ```sh -npm i -g github:IndianOpinion/cli # this repository, the newest release +npm i -g github:IndianOpinion/cli#v0.2.2 # this repository, a release tag +npm i -g github:IndianOpinion/cli # this repository, the main branch npm i -g https://indianopinion.org/agents/cli/latest.tgz # the copy the site serves npx --yes github:IndianOpinion/cli briefs --q "monsoon" # run once without installing ``` +`github:IndianOpinion/cli` without a tag installs whatever is on `main`, which can be ahead of the +newest release; add `#v` (see [Releases](https://github.com/IndianOpinion/cli/releases)) +to install a tagged release. + Check a site download against `https://indianopinion.org/agents/cli/SHA256SUMS` or `latest.json` (`{version, url, sha256}`). After the first npm publish, `npm i -g indianopinion` and `npx --yes indianopinion` work too, and registry releases carry npm provenance that links each version @@ -159,7 +164,8 @@ to trust the workflow, because GitHub creates a missing environment on first use Each release after that: 1. Bump `version` in `package.json`, `VERSION` in `bin/indianopinion.mjs` and `IO_SH_VERSION` in - `io.sh` (the test workflow fails if they differ), and add a `CHANGELOG.md` entry. + `io.sh` (the test workflow fails if they differ), add a `CHANGELOG.md` entry, and update the + `github:IndianOpinion/cli#v` install line at the top of this README. 2. Merge to `main`, then create a GitHub release with the tag `v` on that `main` commit. 3. A reviewer of the `npm` environment approves the run. The `publish` workflow then checks that the tagged commit is on `main`, that the tag matches the version, and that a GitHub prerelease carries a