pepe-http 0.34.0 → 0.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,184 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
+ ## [0.35.1](https://github.com/omarmhaimdat/pepe/compare/v0.35.0...v0.35.1) - 2026-10-11
10
+
11
+ ### Fixed
12
+
13
+ - *(update)* a pepe from npm or PyPI is told to update through them ([#160](https://github.com/omarmhaimdat/pepe/pull/160))
14
+
15
+ The daily update notice and `pepe self-update` told every copy the
16
+ installer had not put in place to run `pepe self-update`, which is the
17
+ wrong tool for the npm and PyPI packages: each version of those runs the
18
+ pepe of that version, so the package is what gets updated. The install
19
+ method detection now recognises both by where the binary lives (under
20
+ `node_modules`, or in the `pepe-http` cache the PyPI package keeps on
21
+ each platform) and says `npm update -g pepe-http` or `pipx upgrade
22
+ pepe-http`, with a test for the paths on macOS, Linux and Windows.
23
+
24
+ The skill file and `llms.txt` list the two packages among the ways to
25
+ install, as the install page already does.
26
+
27
+ This is a `fix`, so release-plz opens the release pull request; merging
28
+ that is what publishes pepe-http to PyPI for the first time (through the
29
+ plain `publish-pypi` job from #159) and validates npm's trusted
30
+ publisher.
31
+
32
+
33
+
34
+ ### Other
35
+
36
+ - *(pypi)* the publish as a plain job in release.yml, so trusted publishing can match it ([#159](https://github.com/omarmhaimdat/pepe/pull/159))
37
+
38
+ - npm through trusted publishing, and the PyPI publisher's workflow name ([#158](https://github.com/omarmhaimdat/pepe/pull/158))
39
+
40
+ Two fixes from the v0.35.0 release run, whose npm and PyPI jobs failed
41
+ while everything else shipped.
42
+
43
+ **npm.** The change moving `publish-npm` to npm's trusted publishing was
44
+ pushed to the packaging branch after #154 had been merged, so master
45
+ still had the token-based job and no `NPM_TOKEN`, hence `ENEEDAUTH`.
46
+ This lands it: the job gets `id-token: write`, updates npm (trusted
47
+ publishing wants 11.5.1 or newer), and publishes with no secret. The
48
+ trusted publisher on npmjs.com already names `release.yml`.
49
+
50
+ **PyPI.** `publish-pypi.yml` is a reusable workflow called from
51
+ `release.yml`, and PyPI reads the calling workflow's name off the OIDC
52
+ token, so a publisher set to `publish-pypi.yml` can never match (the
53
+ run's error says exactly that). The publisher on pypi.org must name
54
+ `release.yml`; the workflow's comment now says so. No code change is
55
+ needed for that job: once the publisher is corrected, the failed job can
56
+ be rerun on its own.
57
+
58
+
59
+ - *(roadmap)* what 1.0 means and what comes before it ([#155](https://github.com/omarmhaimdat/pepe/pull/155))
60
+
61
+ A section in ROADMAP.md naming what 1.0 freezes: the reports'
62
+ `schema_version` and fields, the exit codes, every flag's name and
63
+ meaning, `pepe.toml`'s keys, the MCP tools' names and inputs, and the
64
+ install lines. Then the boxes to tick before the tag: a month without a
65
+ schema or flag change on master, the data-driven requests flag (the one
66
+ still likely to shape the config file), and a release note that states
67
+ the freeze.
68
+
69
+
70
+ ## [0.35.0](https://github.com/omarmhaimdat/pepe/compare/v0.34.0...v0.35.0) - 2026-10-11
71
+
72
+ ### Added
73
+
74
+ - *(install)* pepe-http on npm and PyPI ([#154](https://github.com/omarmhaimdat/pepe/pull/154))
75
+
76
+ pepe installs from npm and from PyPI, both as `pepe-http`, both giving
77
+ the command `pepe`.
78
+
79
+ ```bash
80
+ npm install -g pepe-http # or: npx pepe-http -n 100 https://example.com
81
+ pipx install pepe-http # or: pip install pepe-http
82
+ ```
83
+
84
+ ## The name
85
+
86
+ `pepe-cli` is taken on both registries (on npm by ttoss/pepe, on PyPI by
87
+ a protein-embedding tool), and `pepe` itself is taken on PyPI.
88
+ `pepe-http` is free on both, says what pepe is, and reads the same
89
+ everywhere: `npx pepe-http`, `pipx install pepe-http`, the command
90
+ `pepe`. The Python module is `pepe_http` to match.
91
+
92
+ ## npm
93
+
94
+ dist's built-in npm installer: `installers` gains `"npm"`, `npm-package
95
+ = "pepe-http"` (no scope), and `publish-jobs` gains `"npm"`. `dist
96
+ generate` (0.33.0, the pinned version) regenerated
97
+ `.github/workflows/release.yml`; since `allow-dirty = ["ci"]` keeps dist
98
+ from touching the file, I ran it with that line off and then put back
99
+ the two hand edits the setting protects: Dependabot's
100
+ `actions/checkout@v7` (dist writes v6) and `contents: write` on the
101
+ action job. The diff of release.yml is additions only: the `publish-npm`
102
+ job, the `custom-publish-pypi` job, and both in `announce`. `dist plan`
103
+ lists `pepe-npm-package.tar.gz`. The npm package takes `description` and
104
+ `homepage` from Cargo.toml.
105
+
106
+ ## PyPI
107
+
108
+ There is no dist installer for PyPI, so `packaging/pypi/` is a small
109
+ pure-Python package: `pepe_http/__init__.py`, with `__main__.py`,
110
+ `pyproject.toml`, `README.md` and the root `LICENSE` copied. Standard
111
+ library only, Python 3.9+. On first run it maps the platform to a
112
+ release target (macOS arm64/x86_64, Linux x86_64/aarch64 musl, Windows
113
+ x86_64; Windows on ARM gets the x86_64 build), downloads
114
+ `pepe-<triple>.tar.xz`/`.zip` and its `.sha256` from the GitHub release
115
+ of the package's own version, refuses a mismatch, reads only the
116
+ `pepe`/`pepe.exe` member out of the archive, writes it next to its place
117
+ and moves it in, under `~/.cache/pepe-http`
118
+ (`~/Library/Caches/pepe-http` on macOS, `%LOCALAPPDATA%\pepe-http\Cache`
119
+ on Windows; `PEPE_HTTP_CACHE_DIR` overrides), then `os.execv`s it (on
120
+ Windows, a subprocess whose exit code is passed on). Every later run
121
+ only runs it.
122
+
123
+ The version lives in `pepe_http.__version__` (what `pyproject.toml`
124
+ reads through `dynamic`), so it works from a checkout too;
125
+ `.github/workflows/publish-pypi.yml`, a custom dist publish job like
126
+ `publish-homebrew.yml`, sets it from the release tag, builds with
127
+ `python -m build`, installs the wheel and runs `pepe --version` against
128
+ the release the host job has just created, and publishes with
129
+ `pypa/gh-action-pypi-publish@release/v1` under `id-token: write`
130
+ (trusted publishing, no token).
131
+
132
+
133
+
134
+ ### Other
135
+
136
+ - main.rs split by mode, the help in order of use, usage errors that say what to do ([#153](https://github.com/omarmhaimdat/pepe/pull/153))
137
+
138
+ Three things in one pass over the same files.
139
+
140
+ **The split.** `src/main.rs` was 2,100 lines with every mode's runner in
141
+ it. It is now the dispatch alone (270 lines); the modes are in
142
+ `src/modes/`, one file each (run, ping, ramp, compare, api, flow,
143
+ replay, logs), what they share in `modes/mod.rs`, and the terminal
144
+ handling (raw mode, Ctrl-C, the way out when the terminal stops reading)
145
+ in `src/terminal.rs`. A pure move: no behaviour changed.
146
+
147
+ **The help.** `pepe --help` lists the commands in the order people reach
148
+ for them: ping, ramp, compare, api, flow, replay, logs, then schema and
149
+ mcp, then self-update and completions. Man pages, completions and the
150
+ reference page regenerated.
151
+
152
+ **The errors.** Every usage error names the flag and says what to give
153
+ instead. Before and after:
154
+
155
+ ```
156
+ Duration must have a unit (s, m, h). Examples: 10s, 5m, 2h
157
+ -z "10" is not a duration: a number and a unit, as in 10s, 5m or 2h
158
+
159
+ Concurrency cannot be greater than the number of requests. -c 50 -n 10
160
+ -c 50 is more than the 10 requests of -n: lower -c, raise -n, or run for a time instead with -z 30s
161
+
162
+ Invalid header "Nope": expected 'Name: value'
163
+ header "Nope": a header is Name: value, as in -H 'Accept: application/json'
164
+ ```
165
+
166
+ Same for the timeout, the method, the proxy, the rate, `--trace-header`,
167
+ `--every` and `--warmup`. A pepe with nothing to run and no terminal
168
+ says so in one line instead of printing the whole help.
169
+
170
+ `cargo test`, clippy with `-D warnings`, and the site check pass.
171
+
172
+
173
+ - *(site)* the front page in the docs' style ([#152](https://github.com/omarmhaimdat/pepe/pull/152))
174
+
175
+ pepe.mhaimdat.com was a page of its own, a terminal in monospace, beside
176
+ a documentation site that looked nothing like it. It is now one site in
177
+ one style: the front page opens like the docs' overview (logo, name, one
178
+ sentence, three buttons), then the install line with a tab per platform,
179
+ the home recording, a card per mode, the three benchmark numbers and a
180
+ footer, using the docs' stylesheet and script, light and dark.
181
+
182
+ The four dashboard screenshots the old page showed are removed with it
183
+ (the recordings show the same); the publish job's URL check no longer
184
+ lists them. Checked in the browser at phone and desktop widths.
185
+
186
+
9
187
  ## [0.34.0](https://github.com/omarmhaimdat/pepe/compare/v0.33.0...v0.34.0) - 2026-10-11
10
188
 
11
189
  ### Added
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "pepe-http",
22
- "version": "0.34.0"
22
+ "version": "0.35.1"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.34.0"
51
+ "version": "0.35.1"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/omarmhaimdat/pepe/releases/download/v0.34.0"
3
+ "https://github.com/omarmhaimdat/pepe/releases/download/v0.35.1"
4
4
  ],
5
5
  "author": "Omar MHAIMDAT",
6
6
  "bin": {
@@ -119,7 +119,7 @@
119
119
  "zipExt": ".tar.xz"
120
120
  }
121
121
  },
122
- "version": "0.34.0",
122
+ "version": "0.35.1",
123
123
  "volta": {
124
124
  "node": "18.14.1",
125
125
  "npm": "9.5.0"