pepe-http 0.45.0 → 0.47.0
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 +125 -0
- package/completions/_pepe +540 -0
- package/completions/_pepe.ps1 +386 -0
- package/completions/pepe.bash +1290 -15
- package/completions/pepe.fish +272 -15
- package/man/pepe-slack.1 +32 -0
- package/man/pepe.1 +7 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,131 @@ 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.47.0](https://github.com/omarmhaimdat/pepe/compare/v0.46.0...v0.47.0) - 2026-10-18
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- *(slack)* stylish, informative messages with Pepe's face, a checklist for pepe slack connect, and webhook cards ([#203](https://github.com/omarmhaimdat/pepe/pull/203))
|
|
14
|
+
|
|
15
|
+
A redesign of everything Slack-facing, plus the F3 page.
|
|
16
|
+
|
|
17
|
+
## Slack messages (`src/webhook/layout.rs`)
|
|
18
|
+
|
|
19
|
+
Each message has a colour down its side, and Pepe the pepper is its
|
|
20
|
+
avatar.
|
|
21
|
+
|
|
22
|
+
**While a run goes** (edited every 10 s):
|
|
23
|
+
- what is being sent, how hard, from which machine and by whom;
|
|
24
|
+
- a progress bar with time left;
|
|
25
|
+
- throughput and p50 · p99, each with a sparkline of the last minute;
|
|
26
|
+
- errors by status and cause;
|
|
27
|
+
- a count of anomalies, each also posted as a reply in the thread.
|
|
28
|
+
|
|
29
|
+
**At the end**, the same message becomes the verdict:
|
|
30
|
+
- a summary sentence: how much was sent, how fast, what failed, and the
|
|
31
|
+
first thing that changed;
|
|
32
|
+
- latency p50, p95, p99 and max;
|
|
33
|
+
- sparklines over the whole run;
|
|
34
|
+
- where the time went: waiting, connecting, reading;
|
|
35
|
+
- the answers by status code;
|
|
36
|
+
- each `--fail-if` with ✓ or ✗ and the measured value;
|
|
37
|
+
- for a saved test, the significant changes against its last recorded
|
|
38
|
+
run, with a warning when the two runs weren't set up alike;
|
|
39
|
+
- findings, worst first, with the first body of each kind of failure.
|
|
40
|
+
|
|
41
|
+
**Under the verdict:** a thread reply that's also shown in the channel.
|
|
42
|
+
It carries the result in one line with Pepe proud, worried or on fire,
|
|
43
|
+
plus the `mention` when the run failed.
|
|
44
|
+
|
|
45
|
+
## Pepe's faces
|
|
46
|
+
|
|
47
|
+
- `site/build-avatars.py` draws 512 px PNGs straight from the mascot's
|
|
48
|
+
sprite in `src/ui/mascot.rs`. It uses only the Python standard library,
|
|
49
|
+
and CI checks the images are current.
|
|
50
|
+
- They're served from the site, which already publishes
|
|
51
|
+
`site/img/*.png`.
|
|
52
|
+
- The app manifest now asks for `chat:write.customize`, which Slack
|
|
53
|
+
requires for custom avatars. Apps made with 0.46 need `pepe slack
|
|
54
|
+
connect` run again; the docs say so.
|
|
55
|
+
|
|
56
|
+
## `pepe slack connect`
|
|
57
|
+
|
|
58
|
+
At a terminal, it's a checklist redrawn in place:
|
|
59
|
+
- Pepe's sprite beside the title.
|
|
60
|
+
- The prefilled app page opens in the browser. If no browser opens, the
|
|
61
|
+
link is copied to the clipboard and shown as a clickable link instead of
|
|
62
|
+
a wall of encoded text.
|
|
63
|
+
- The token is shown as dots and checked with a spinner. A rejected
|
|
64
|
+
token gets a clear error and the field clears for another try.
|
|
65
|
+
- The channel is picked with the arrow keys from a list filtered as you
|
|
66
|
+
type, showing member counts, whether it's private, and whether pepe is
|
|
67
|
+
already in it.
|
|
68
|
+
- At the end:
|
|
69
|
+
- the test message's permalink;
|
|
70
|
+
- Pepe's icon saved for the app;
|
|
71
|
+
- commands to try.
|
|
72
|
+
|
|
73
|
+
Outside a terminal, or with `--token` and `--channel`, it still asks
|
|
74
|
+
nothing and reports one step per line.
|
|
75
|
+
|
|
76
|
+
## F3 webhook page
|
|
77
|
+
|
|
78
|
+
Each webhook is a framed card. Its title shows where it goes (Slack and
|
|
79
|
+
the channel, Discord, Teams, Google Chat, or JSON and the host). Its
|
|
80
|
+
corner shows the last delivery: sent and how long ago, or the error.
|
|
81
|
+
|
|
82
|
+
## Checked
|
|
83
|
+
|
|
84
|
+
- `cargo test`: 389 pass, including new tests for sparklines, the
|
|
85
|
+
progress bar, the time split and status codes. Clippy is clean, and the
|
|
86
|
+
docs and avatar checks pass.
|
|
87
|
+
- Against a fake Slack API, two saved-test runs with `--slack` (one with
|
|
88
|
+
`--fail-if` crossed, one passing). Each produced, in order:
|
|
89
|
+
1. a start post with Pepe's waiting face;
|
|
90
|
+
2. a live edit with the bar and sparklines;
|
|
91
|
+
3. the verdict, with thresholds, the comparison and findings;
|
|
92
|
+
4. the result reply with the proud or worried face, shown in the
|
|
93
|
+
channel.
|
|
94
|
+
- The connect wizard and the F3 cards were driven in a pseudo-terminal
|
|
95
|
+
and the screens replayed: wrong token, then right token, filtered
|
|
96
|
+
channel pick, summary.
|
|
97
|
+
|
|
98
|
+
**Not checked against a real Slack workspace**: whether the avatars, the
|
|
99
|
+
colour bars and the `<!date>` timestamps look in Slack the way the
|
|
100
|
+
payload intends.
|
|
101
|
+
|
|
102
|
+
Next, in its own PR on top of this once it's merged: buttons to stop,
|
|
103
|
+
run again and edit and run, through `pepe slack serve` with Socket Mode,
|
|
104
|
+
for saved tests only and allowed users.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## [0.46.0](https://github.com/omarmhaimdat/pepe/compare/v0.45.0...v0.46.0) - 2026-10-17
|
|
108
|
+
|
|
109
|
+
### Added
|
|
110
|
+
|
|
111
|
+
- *(slack)* --slack keeps one Slack message up to date as a run goes, and pepe slack connect sets it up from the terminal ([#201](https://github.com/omarmhaimdat/pepe/pull/201))
|
|
112
|
+
|
|
113
|
+
Part 2 of the webhooks work: Slack, live, set up from the terminal.
|
|
114
|
+
Nothing is hosted; the app belongs to the user's own workspace.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
pepe slack connect # once per machine
|
|
118
|
+
pepe -z 10m -c 50 --slack https://api.example.com/health
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## `pepe slack connect`
|
|
122
|
+
|
|
123
|
+
1. Opens Slack's "create an app" page with the manifest in the link:
|
|
124
|
+
name, permissions (`chat:write`, `chat:write.public`, `channels:read`,
|
|
125
|
+
`channels:join`, `groups:read`). The user picks a workspace, then clicks
|
|
126
|
+
**Create**, **Install** and **Allow**.
|
|
127
|
+
2. Takes the pasted bot token, shown as dots, and checks it right away
|
|
128
|
+
with `auth.test`.
|
|
129
|
+
3. Picks the channel by name or part of one, joins it, posts a test
|
|
130
|
+
message, and saves the token and channel to `slack.toml` beside the
|
|
131
|
+
settings. The file is `0600`, readable only by the user.
|
|
132
|
+
|
|
133
|
+
|
|
9
134
|
## [0.45.0](https://github.com/omarmhaimdat/pepe/compare/v0.44.0...v0.45.0) - 2026-10-17
|
|
10
135
|
|
|
11
136
|
### Added
|