hookstride-cli 0.3.2__py3-none-any.whl → 0.3.3__py3-none-any.whl

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.

Potentially problematic release.


This version of hookstride-cli might be problematic. Click here for more details.

@@ -1,3 +1,3 @@
1
1
  """Hookstride developer CLI."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.3"
@@ -1,7 +1,11 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: hookstride-cli
3
- Version: 0.3.2
4
- Summary: Manage Hookstride projects and destinations, inspect webhook activity and billing.
3
+ Version: 0.3.3
4
+ Summary: Manage webhook delivery, monitor events, and automate Hookstride workflows from your terminal.
5
+ Project-URL: Homepage, https://hookstride.com
6
+ Project-URL: Documentation, https://hookstride.com/docs
7
+ Project-URL: Support, https://hookstride.com/support
8
+ Project-URL: Service status, https://status.hookstride.com
5
9
  License: Proprietary
6
10
  Requires-Python: >=3.11
7
11
  Requires-Dist: click<9,>=8.1
@@ -13,12 +17,17 @@ Description-Content-Type: text/markdown
13
17
 
14
18
  # Hookstride CLI
15
19
 
16
- Hookstride CLI lets you manage projects and webhook destinations, inspect delivery activity, and view billing records. It includes an interactive console with the same selected-project commands.
20
+ Hookstride CLI is the command-line interface for [Hookstride](https://hookstride.com), a hosted webhook delivery and routing platform. Manage projects and destinations, inspect delivery activity, and automate supported workflows from your terminal.
17
21
 
18
- Version 0.3.2 adds queue metrics, redacted JSON exports and explicitly confirmed actions, and fixes missing-argument console exits. It also supports signed test-event sending, optional delivery-status polling, and project/destination management. Upgrade an older installation to use the new commands with a compatible backend. Billing and credential management remain outside the confirmed-action interface. Check [PyPI](https://pypi.org/project/hookstride-cli/) for package availability.
22
+ - **Deliver:** send signed events, monitor delivery results, and replay eligible events.
23
+ - **Manage:** configure projects, destinations, incoming connections, team access, and alerts through authorized commands.
24
+ - **Observe:** inspect delivery attempts, queue health, pipeline readiness, and redacted JSON exports.
25
+ - **Develop:** preview verified incoming webhooks on a local HTTP receiver where local forwarding is enabled.
26
+ - **Automate:** use structured JSON output and explicit confirmation for supported actions.
19
27
 
20
- ## Installation
28
+ Feature availability depends on your account permissions and the connected API. Local forwarding is a restricted preview, not a generally available production feature.
21
29
 
30
+ ## Installation
22
31
 
23
32
  Requires Python 3.11 or later.
24
33
 
@@ -125,17 +134,17 @@ The command securely prompts for a project delivery API key (`whrk_`). It cannot
125
134
  Control API token (`whrctl_`); these credentials have different permissions.
126
135
 
127
136
  ```bash
128
- hookstride --env production projects use PROJECT_UUID
129
- hookstride --env production events send DESTINATION_UUID --wait
130
- hookstride --env production events show EVENT_UUID
137
+ hookstride --env dev projects use PROJECT_UUID
138
+ hookstride --env dev events send DESTINATION_UUID --wait
139
+ hookstride --env dev events show EVENT_UUID
131
140
  ```
132
141
 
133
- The event type defaults to `webhook.test`, with a harmless JSON payload:
142
+ Use a dedicated test destination that you control. The default event type is `webhook.test`, with the following JSON payload:
134
143
  `{"message":"Hookstride CLI delivery test","source":"cli"}`.
135
144
  To send a different JSON object without placing its contents in shell history:
136
145
 
137
146
  ```bash
138
- hookstride --env production events send DESTINATION_UUID --type demo.delivery --payload-file ./demo-payload.json --wait
147
+ hookstride --env dev events send DESTINATION_UUID --type demo.delivery --payload-file ./demo-payload.json --wait
139
148
  ```
140
149
 
141
150
  To avoid the hidden prompt, set `HOOKSTRIDE_PRODUCTION_API_KEY` or
@@ -148,7 +157,6 @@ A non-delivered event can be examined using `events show` with the usual Control
148
157
  ## Environments and local settings
149
158
 
150
159
  The CLI connects to the production API by default: `https://api.hookstride.com`.
151
- A new release must be published to PyPI before existing installations receive this change.
152
160
 
153
161
  To inspect the development API explicitly, select it:
154
162
 
@@ -162,21 +170,23 @@ Project selections are stored separately by environment in `~/.config/hookstride
162
170
 
163
171
  ## Documentation
164
172
 
165
- Documentation: https://hookstride.com
173
+ - [Website](https://hookstride.com)
174
+ - [Documentation](https://hookstride.com/docs)
175
+ - [Service status](https://status.hookstride.com)
176
+ - [Support](https://hookstride.com/support)
166
177
 
167
178
  ## Capability boundaries
168
179
 
169
180
  The CLI supports project/destination creation and updates, event submission and
170
181
  inspection, incoming configuration inspection, billing history and statistics.
171
- Version 0.3.2 adds JSON exports and confirmed configuration, replay, team and
172
- alert actions. Use the dashboard for CSV exports, purchasing, credential
182
+ JSON exports and confirmed configuration, replay, team and alert actions are also supported. Use the dashboard for CSV exports, purchasing, credential
173
183
  management, MFA/ownership controls and Support tickets. Billing output
174
184
  preserves the actual recorded currency; it does not
175
185
  convert historical payments into display estimates. `status` checks API and
176
- dependency readiness. Version 0.3.2 adds `status --pipeline` for the
186
+ dependency readiness. Use `status --pipeline` for the
177
187
  worker-readiness check. Neither mode proves signed delivery or historical uptime.
178
188
 
179
- ### Delivery metrics — version 0.3.2
189
+ ### Delivery metrics
180
190
 
181
191
  Inspect the dashboard's queue-health measurements:
182
192
 
@@ -190,10 +200,9 @@ waiting events; the current queue includes all accepted dates. `stats` retains
190
200
  its existing lifetime response and labels its denominator as delivered/all,
191
201
  including pending events. Neither command measures service uptime or quota usage.
192
202
  The interactive console supports `metrics --days 7` and `show metrics` too.
193
- This command needs version 0.3.2 or later and a backend with the delivery-metrics
194
- endpoint. Select `--env dev` when using a separate development project/token.
203
+ This command requires API support for delivery metrics. Select `--env dev` when using a separate development project/token.
195
204
 
196
- ### JSON event export — version 0.3.2
205
+ ### JSON event export
197
206
 
198
207
  ```bash
199
208
  hookstride --project PROJECT_UUID --json events export --status failed > ./failed-events.json
@@ -204,10 +213,9 @@ recorded attempts. JSON is limited to 200 matching events; the response retains
204
213
  `truncated` and `limit`, and the CLI reports truncation on stderr. Narrow status,
205
214
  `--origin` or `--type` filters when needed. CSV remains available in the dashboard.
206
215
 
207
- ## Confirmed actions — version 0.3.2
216
+ ## Confirmed actions
208
217
 
209
- The CLI exposes the same role-scoped, reviewed actions as Support,
210
- without making AI calls. Inspect what this backend permits:
218
+ The CLI supports role-scoped actions with an explicit preview and confirmation flow. Inspect what this backend permits:
211
219
 
212
220
  ```bash
213
221
  hookstride --project PROJECT_UUID actions list
@@ -263,28 +271,14 @@ commands containing them are never retained in console history. Resource
263
271
  creation can return a one-time signing secret outside chat: save it privately
264
272
  and do not pipe creation output into logs or public artifacts.
265
273
 
266
- ## Server-gated preview: local webhook forwarding
267
-
268
- Version 0.3.2 includes the opt-in listener from issue #163. **The server feature
269
- remains disabled by default; inclusion of the command does not enable it in
270
- production.** Use a separately configured development backend for verification.
271
- Older installations must be upgraded to receive the command.
272
-
273
- The backend requires the new ingress migration and both
274
- `WEBHOOK_INGRESS_ENABLED=1` and `WEBHOOK_LOCAL_FORWARDING_ENABLED=1`. Local
275
- forwarding is disabled by default. Enable it only after reviewing this change;
276
- do not change production ingress/egress security gates to test it. An operator
277
- must schedule `python manage.py prune_local_sessions` regularly (for example,
278
- every minute); it removes at most 500 expired, revoked or idle sessions per run.
279
- It does not delete incoming events, destinations, or billing records.
274
+ ## Local webhook forwarding (restricted preview)
280
275
 
281
- From a source checkout, install the CLI's locked development dependencies:
276
+ Forward newly verified incoming webhooks to a local development receiver. This feature requires a compatible API with local forwarding enabled for your environment. Installing the CLI does not grant access to the preview. Use an authorized development project and a dedicated test source.
282
277
 
283
278
  ```bash
284
- uv sync --frozen --group dev --project cli
285
- uv run --project cli hookstride --env dev projects list
286
- uv run --project cli hookstride --env dev projects use PROJECT_UUID
287
- uv run --project cli hookstride --env dev incoming sources
279
+ hookstride --env dev projects list
280
+ hookstride --env dev projects use PROJECT_UUID
281
+ hookstride --env dev incoming sources
288
282
  ```
289
283
 
290
284
  Use an MFA-verified Control API token where the account role requires MFA, as
@@ -300,7 +294,7 @@ source if its payloads must not be copied to a development machine.
300
294
  Start your local HTTP receiver on **127.0.0.1**, then run:
301
295
 
302
296
  ```bash
303
- hookstride listen 8000 --path /webhooks
297
+ hookstride --env dev listen 8000 --path /webhooks
304
298
  ```
305
299
 
306
300
  The project must have been explicitly selected already. An interactive terminal
@@ -311,7 +305,6 @@ source. For scripts or the interactive console, supply it explicitly:
311
305
  hookstride --env dev --project PROJECT_UUID listen 8000 --path /webhooks --source SOURCE_UUID
312
306
  ```
313
307
 
314
- For source-checkout testing, prefix these examples with `uv run --project cli`.
315
308
  A custom development API may be selected with the existing global `--api-url`;
316
309
  remote origins require HTTPS. The local receiver URL is always
317
310
  `http://127.0.0.1:8000/webhooks`. Paths cannot select a different host, include
@@ -319,7 +312,7 @@ queries/fragments or contain traversal. Proxy environment variables are ignored
319
312
  for the receiver, redirects are never followed, receiver requests time out after
320
313
  five seconds, and receiver response bodies are never read or printed.
321
314
 
322
- The console shows connection/reconnection state, stable event IDs, attempts,
315
+ The listener shows connection/reconnection state, stable event IDs, attempts,
323
316
  forwarding results and bounded failure messages. It never prints provider
324
317
  credentials, management tokens, request payloads, or receiver response bodies.
325
318
  Listener commands/paths are not added to console command history. `--json` is
@@ -364,7 +357,7 @@ receivers must atomically deduplicate by envelope `id` before applying side
364
357
  effects. Do not claim exactly-once behavior.
365
358
 
366
359
  Poll requests return immediately with up to five events; empty results are
367
- paced client-side every two seconds so synchronous API workers remain free. The
360
+ paced client-side every two seconds to avoid unnecessary requests. The
368
361
  CLI reconnects with capped backoff. A session lasts at most one hour (`--ttl 60` through
369
362
  `--ttl 3600`), and expires after two idle minutes. The same creating Control token
370
363
  is checked on every API request, and every poll rechecks token/MFA, membership,
@@ -398,8 +391,7 @@ subscribes only to future events.
398
391
  events during the gap will not be replayed.
399
392
  - HTTP 401/403: check the environment's Control token, revocation/expiry, MFA and
400
393
  developer membership. Delivery API keys cannot create or read sessions.
401
- - HTTP 404: check project/source selection and the backend's feature flags and
402
- migration. HTTP 410 means the temporary session stopped or expired.
394
+ - HTTP 404: check project/source selection and whether local forwarding is available in your environment. HTTP 410 means the temporary session stopped or expired.
403
395
  - Queue full or retry-limit feedback: fix the receiver, then start a new session.
404
396
  Unforwarded events from the old session are not moved into a new one.
405
397
  - Local connection errors: bind the receiver to `127.0.0.1`, confirm the port and
@@ -407,6 +399,4 @@ subscribes only to future events.
407
399
  are failures. Check your receiver's own development logs; Hookstride does not
408
400
  display its response content.
409
401
 
410
- Production release and remote Coolify staging verification remain separate
411
- release gates. Do not send synthetic provider events to production/customer
412
- sources or destinations to verify this preview.
402
+ Use only dedicated development sources and receivers for testing. Do not send synthetic provider events to production or customer integrations.
@@ -0,0 +1,8 @@
1
+ hookstride_cli/__init__.py,sha256=kLScCS1SlXcRlKoJUasnLYGcayBkHsO3orsJvzRCV-Q,55
2
+ hookstride_cli/console.py,sha256=jDQb6EDq2Kj2j44HRwDMZ_0LRrg9pLCRn71DTFFZsLA,21819
3
+ hookstride_cli/listen.py,sha256=DSWggoiRQ-JJ2qz7H1Bg0XWN1IwSE8cQVo99q7eE19M,9853
4
+ hookstride_cli/main.py,sha256=t9Q_s17QWAvEWw2JvlA8mBl-t_AG9HFYGWPOV5OzvCA,51069
5
+ hookstride_cli-0.3.3.dist-info/METADATA,sha256=GHwvmmDfP0J3A7u0R2K4tdKXhkj-YXpnMAig9OKbuXg,19477
6
+ hookstride_cli-0.3.3.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
7
+ hookstride_cli-0.3.3.dist-info/entry_points.txt,sha256=E9bqvnCFVO-lYULID8x-HTp0gYnfrYprB2R8n-DKy6Q,56
8
+ hookstride_cli-0.3.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- hookstride_cli/__init__.py,sha256=WJPwsRw0A8VLr9F9jvjwS4EW4B32TxxR4XpqTTSaTyQ,55
2
- hookstride_cli/console.py,sha256=jDQb6EDq2Kj2j44HRwDMZ_0LRrg9pLCRn71DTFFZsLA,21819
3
- hookstride_cli/listen.py,sha256=DSWggoiRQ-JJ2qz7H1Bg0XWN1IwSE8cQVo99q7eE19M,9853
4
- hookstride_cli/main.py,sha256=t9Q_s17QWAvEWw2JvlA8mBl-t_AG9HFYGWPOV5OzvCA,51069
5
- hookstride_cli-0.3.2.dist-info/METADATA,sha256=cUfMEpPCs34g-KC4MjiH7Xq_7sOAfE_7kzrp1f7eOUs,19871
6
- hookstride_cli-0.3.2.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
7
- hookstride_cli-0.3.2.dist-info/entry_points.txt,sha256=E9bqvnCFVO-lYULID8x-HTp0gYnfrYprB2R8n-DKy6Q,56
8
- hookstride_cli-0.3.2.dist-info/RECORD,,