Repository navigation
v1.1.0
A CLI release for scripts, CI and AI coding agents. Every command can print JSON, exit codes now tell failures apart, apic check tests a live server against its contracts, apic send --dry-run previews a request without revealing secrets, and apic ships an agent skill. apic is also on Homebrew and has an MSIX for the Microsoft Store. The GUI and the contract format are unchanged, so existing projects need no migration.
Added
--jsonon every command. It can go before or after the subcommand, and the command then prints exactly one JSON document on stdout: its result, or{"error": {"kind", "message"}}on failure. Nothing is coloured, and warnings stay as text on stderr.send --jsonreturns the status, reason, time, headers and body, with JSON bodies as JSON values, other text as a string and binary bodies as base64. COMMAND.md lists what each command prints.apic checksends contracts and compares each live response with the documented ones. The status must be documented, and the body must match the example's shape: every example key present, JSON types equal, andnullmatching anything. Required response headers must be present. It takes-ffor one contract or a folder ending in/, or checks the whole project with no query, plus--env,--var,--statusand--timeout. Folder and project runs send only GET, HEAD and OPTIONS contracts unless--unsafeis given, and report the rest as skipped. A mismatch exits 5 and lists each difference with a JSON path.apic send --dry-runprints the requestsendwould build and sends nothing: the target server, method, URL, headers and body, or one line per multipart part. Every variable value shows as$name, so env files never leak into a terminal, a log or an agent's context. Undefined variables are listed, and the dry run refuses whereversendwould, with the same message.- An agent skill for AI coding agents.
skills/apic/SKILL.mdin the Agent Skills format teaches Claude Code, Codex, Antigravity, Cursor, pi and Hermes to find, preview, send and check contracts safely, without reading.apic/env/*.local.toml.apic skillprints it, andapic skill --installwrites it into the project's.agents/skills/apic/and.claude/skills/apic/. With--globalit goes to~/.agents,~/.claude,~/.gemini/configand~/.hermesinstead.npx skills add rizukirr/apicinstalls the same file. apic docs command|sending|contractprints COMMAND.md, SENDING.md or CONTRACT.md as built into the binary, so the reference always matches the installed version and works offline.
Changed
- Exit codes now tell failures apart: 1 for usage, setup and file errors, 2 when no contract or template matches a query or several do, 3 for an invalid contract (including
validatefailures), 4 for a network failure, and 5 for acheckmismatch. In 1.0.0 every failure exited 1, so scripts that test for a non-zero exit need no change.
Packaging
- Homebrew:
brew install rizukirr/tap/apicinstalls the CLI andbrew install --cask rizukirr/tap/apic-guithe desktop app on macOS, from therizukirr/homebrew-taptap. - Microsoft Store: the
msix.ymlworkflow builds an unsigned MSIX of the GUI for Store submission. The MSI stays for winget. - winget: submissions now set
LicenseandReleaseNotes, and the manifests carry aPrivacyUrl.