Skip to content

Plunger 0.7.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 12:54
· 43 commits to main since this release

Agents get answers they can use and cannot fail on quietly, requests can be organised in groups, and every change is written to a log the database is derived from.

Changed

  • A workflow's steps are drawn as a flow: a card per step on a rail of connected dots, the dots coloured by the last or running run (a diamond is a step that can be skipped, a square one that can end the run), the values a step hands to later ones written on the connector, and the values the workflow needs from outside listed on top.
  • The Variables window explains itself with a help icon instead of a paragraph.
  • Variables are no longer a tab in every request, because they are shared by all requests, the command line and agents. Tools > Variables opens them in a window, and each request shows only the ones it uses under the URL (Uses base = https://..., token = [secret]). A request opened from the history shows the values it was sent with (non-secret ones; a secret is never kept) (#191).
  • The Auth tab is gone: Authorization is a header (Authorization: Bearer {{token}}). A Bearer token saved in the old tab becomes the secret variable bearer and is no longer added to every request behind your back. Ctrl+1 to Ctrl+4 now open Params, Headers, Body and Options (#192).

Added

  • A response says how fast it started (ttfb_ms) and where a redirect went: final_url and redirects (each hop's status and destination), absent when there were none (#94).
  • A binary response gives its sha256 and a sniffed detected_type (png, pdf, zip, ...), so an agent can check a download without receiving the bytes (#99).
  • include_headers (all, none or relevant) on send_request and --include-headers on plunger send; the relevant ones are location, link, retry-after, content type and disposition, etag, rate-limit headers and the names of cookies (#104).
  • plunger send --out FILE writes the whole body to a file (raw bytes for a binary one) and prints the result with body_file (#139).
  • Export a request as Python (requests) and as HTTPie, from File > Copy as and File > Export request (#136, #137).
  • The audit log is moved aside as audit.<seq>.log when it passes 20 MB, and the new file starts with a snapshot that names the hash it continues, so plunger audit verify still passes on each file.
  • A tab without a name is titled by the last two path segments (users/42, not 42) (#127), and a tab restored after a restart still says how its history request went (#164).
  • An audit log: every change to the history, saved requests, workflows and agent variables is first written as a line of audit.log (who, when, what; no secrets, no response bodies), each line hash-chained to the one before, and applied to the database from it. plunger audit verify finds an edited, removed or reordered line (exit 4), audit show lists the changes, audit head prints the newest hash, and audit rebuild recreates the database from the log. An existing database starts its log with a snapshot (#199, #200).
  • Groups for saved requests and workflows, like Postman's folders: Jira, or Jira/Issues for one level under it. The sidebar shows a collapsible header per group, and a row's right-click menu has Move to group (existing groups, no group, or a new name). Over MCP, save_request and save_workflow take group, list_saved_requests and list_workflows take a group filter (a group includes what is under it), and a new set_group tool moves one without re-sending it. On the command line: --group on save and workflow save, saved --group G, workflow list --group G, saved group <name> <group> and workflow group <name> <group> (#194).
  • Placeholders can have a default, {{priority|Medium}}, and can be optional, {{epic?}}: with no value, an optional one is left out of a JSON body (the member or array item goes) and is empty elsewhere. One request can create an issue with an optional assignee, labels and epic (#184).
  • Workflow steps can accept several statuses ("expect_status": [200, 404]) and can be conditional: skip_if leaves a step out and stop_if ends the run successfully, with {{a}} == b, {{a}} != b or a truthy value, and {{previous_status}} for the status before (#188).
  • A workflow extract can be "scope": "run", kept for that run only, and run_workflow takes cleanup: true (--cleanup on the command line) to remove the variables a run stored, so values from old runs do not pile up (#189).
  • select filters also take !=, [?(@.status!='Done')] (#183).
  • File > Copy as and File > Export request can write a request as a JavaScript fetch call that runs in Node.js 18+. A JSON body becomes JSON.stringify({...}), and {{variables}} stay as placeholders.
  • select and extract understand a filter, [?(@.name=='Done')] (equality only), so an item can be found by name in one call (#183). With select, the response headers are left out (#182), a path through a null is null instead of a problem (#187), and when a path cannot be read the whole response is returned with the reason instead of nothing (#186).

Fixed

  • An agent's common mistakes are understood or refused by name instead of failing oddly or being ignored: headers as a list of {name, value} objects or "Name: value" strings (#89); json given as a string that holds a JSON object; an unknown field such as retries is refused with the list of real ones; a form value that is a file path (@C:/x.txt) is refused with how to upload (#108); a timeout_secs outside 1 to 600 and a non-standard method are noted in problems; the undefined-variable message tells an agent what it can do rather than pointing at the window.
  • Under the URL, a placeholder that is optional ({{who?}}) or has a default ({{x|dflt}}) is no longer shown as undefined.
  • A value could change the shape of a request outside a JSON body. In a header, a line break started another header; in a form body, & or = added fields; in a URL path, ? or # began a query or fragment. A header value with a line break is now refused, form values are percent-encoded and path values keep ?, #, spaces and control characters from changing the URL (#190).
  • A raw body sent with a JSON content type (how an agent sends "labels": {{labels}}, which is not a JSON value it could pass as json) is filled in as JSON: values are escaped and optional members can be left out. --json on the command line accepts a body with such placeholders (#190).
  • An object that an optional placeholder leaves empty is removed with it ("assignee": {"name": "{{who?}}"}).
  • A {{variable}} inside a JSON body string is now JSON-escaped. A value with a newline, a quote or a control character made the server refuse the body, and a backslash could silently turn into a different character (C:\temp arrived as a tab and emp). A value outside a string is inserted as JSON, so a variable can be a number or a whole array or object. A value you pre-escaped as a workaround is now escaped again: pass the real text (#180).
  • save_request kept neither select nor timeout_secs (nor follow_redirects, insecure_tls), so the next send of the saved request used the defaults. They are saved, shown by get_saved_request and used when it is sent by name. Fields that cannot be kept (variables, use_saved_bearer, extract, max_body_chars) are listed in not_saved, and a select that could not work is refused when saving (#181).
  • Help > Documentation and Help > Report an issue did nothing since 0.6.0 (the toolkit upgrade dropped the feature that opens the browser). They open the browser again.

Full Changelog: v0.6.0...v0.7.0