Release Notes
Changed
- Project renamed to
pbotcli. The Cargo workspace crates under crates/
moved from planebotcli-* to pbotcli-* (cache, cli, client, core, format,
html, resolve, types); the CLI binary is now pbotcli (the pbot alias is
unchanged); the GitHub repository is github.com/Liewzheng/pbotcli (git
remote pbotcli); and the cargo-dist user-agent, homepage, and
description metadata now lives on the pbotcli-cli package so cargo-dist's
Homebrew publish job finds the values it needs.
- Installer artefacts on the release page were renamed to match the new
package name: the shell installers are pbotcli-cli-installer.sh /
.ps1, the drag-and-drop .dmg keeps its per-target shape
(pbotcli-<target>.dmg), the Debian packages are
pbotcli-cli_<version>_<arch>.deb, and the Windows MSI is
pbotcli-cli-<version>-x86_64.msi (matches cargo-wix 0.3.9's
target/wix/<package>-<version>-<arch>.msi output). README's download
links were updated to point at the renamed artefacts, and the post-merge
git push <remote> :refs/tags/v1.4.2 v1.4.2 housekeeping instruction now
names the pbotcli remote.
Added
pbot skill show / pbot skill path / pbot skill version print the AI skill (skill/SKILL.md) that ships with this build — vendored at compile time via include_str!, no network round-trip, no side-channel install. pbot skill show --json emits a one-line { path, version, skill_md } object so installers / CI can parse it. Pair with the existing version-lint workflow — skill and CLI versions can no longer be out of sync in any direction.
pbot comment create and pbot comment update accept --body-file <PATH> and --body-md-file <PATH> for bodies that don't fit on the command line (a single argument is hard-capped near 130 KB on Linux by MAX_ARG_STRLEN); pass - to read the body from stdin. The four body flags are mutually exclusive — passing any two is a parse-time error and never hits the API. The new flags reuse the existing pbotcli_html::body_to_html / md_to_html path, so --body-file is byte-identical to --body "$(cat PATH)" (verified in mock_e2e.rs against a sample containing backticks, <, & and Chinese, and against an  image for the markdown form).
- New
build-linux-deb job in release.yml (runs alongside the existing
build-windows-msi / build-mac-dmg jobs) builds Debian packages for both
x86_64-unknown-linux-gnu (amd64, on ubuntu-22.04) and
aarch64-unknown-linux-gnu (arm64, on ubuntu-22.04-arm) via nfpm
(goreleaser's static single-binary packager). cargo-dist 0.32/0.33 don't
ship .deb natively, so we drive nfpm directly — same pattern as the .msi
and .dmg installer jobs. The .deb artifacts land on the GitHub release
page; README's Linux section gained an
apt install ./pbotcli-cli_<version>_<arch>.deb snippet.
- Homebrew (macOS / Linux) install:
brew install Liewzheng/tap/pbotcli. The
formula (pbotcli.rb) is published to github.com/Liewzheng/homebrew-tap
by a new publish-homebrew-formula job in release.yml driven by
cargo-dist 0.32; the formula only reaches the tap once the maintainer tags
v1.5.0 (the first run also needs the HOMEBREW_TAP_TOKEN Actions secret
in place, otherwise the new publish job fails to authenticate).
Fixed
pbot doc show <doc> without -p <project> no longer surfaces a bare
Error: Resource not found (HTTP 404). that reads as "my UUID/name is
wrong". The v1 API only serves project-scoped pages, so omitting -p
hits a workspace-level route the server does not provide; the command
now keeps the 404 message and adds a hint naming -p <project> (exit
code 3 is unchanged). doc show --help no longer promises a
workspace-level lookup that the API cannot serve; the project-scoped
path is byte-for-byte unchanged.
doc create / doc update --content-md no longer skip an image reference in
silence. A src that the scanner cannot accept — a path with spaces that is
not wrapped in <…>, a "title" suffix, an empty src — used to leave the
literal  text on the page while the command exited 0; each one now
prints a warning: line, and --dry-run lists them under unprocessed and
counts them in its summary. Angle-wrapped local paths ()
and %XX escapes (file:///tmp/a%20b.png) are now uploaded instead of being
reported as a missing file.
pbot whoami renders a service-principal credential instead of a block of
blanks. User kept only the person fields, so an SP — which the server
describes with name and type: "service_principal" — came back as an id
plus four empty rows. The table now shows the resolved name and the type
when the server sends one, and omits the display_name / first_name /
last_name / email rows when all four are empty; --json gains name and
type and changes no existing key. Scripts that parse the table should read
--json instead, which is the stable interface.
- The skill's "Images in comments" section told agents to embed extra images
with a raw <img src='<uuid>'/> tag, which --body-md escapes into literal
text and would print on the page as words. It now says to repeat the
markdown image syntax , once per image.
- Windows
.msi installer restored. The v1.4.x release intentionally
dropped msi because cargo-dist 0.32's plan step could not detect
[package.metadata.wix] GUIDs in pbotcli-cli's Cargo.toml. Instead
of waiting on a cargo-dist fix, the release workflow now has a dedicated
build-windows-msi job (windows-latest) that installs cargo-wix
and runs cargo wix --package pbotcli-cli --nocapture directly
(cargo-wix 0.3.9 writes to target/wix/, where the verify step
expects the file; --output msi was previously tried and removed
because it wrote to msi/ and silently produced no upload).
The MSI artefact lands on the GitHub release alongside the other
cargo-dist installers; README's Windows section is restored to link
to pbotcli-cli-<version>-x86_64.msi.
- The v1.4.2 release's first
Release workflow run errored on
windows-latest with ParserError: Missing '(' after 'if' —
the default shell on windows-latest is PowerShell, which doesn't
parse if [ … ]; then … fi. Three steps in build-windows-msi
(Install cargo-wix, Generate MSI, Verify MSI was produced)
now declare shell: bash explicitly so the bash conditionals
parse correctly. Post-merge housekeeping: the v1.4.2 tag
currently sits at the broken commit; once this PR is merged,
re-tag v1.4.2 against the new main HEAD (git tag -d v1.4.2 && git tag v1.4.2 && git push pbotcli :refs/tags/v1.4.2 v1.4.2) so the Release workflow re-runs against the fixed
workflow.
- v1.4.2's
Release workflow re-run failed at the cargo wix step
with [2] (Generic): There are no WXS files to create an installer
— cargo-wix 0.3.9 reads wix/main.wxs from the package root and
pbotcli-cli didn't have one. Added a hand-written minimal v3
WiX template at crates/pbotcli-cli/wix/main.wxs
(Product, single Component for pbotcli.exe, single Feature,
perMachine InstallScope, hardcoded stable UpgradeCode +
path-guid UUIDs) and added a Build pbotcli-cli (x86_64-pc-windows-msvc, release) step before cargo wix so
the binary lands at the path the template expects
(target/x86_64-pc-windows-msvc/release/pbotcli.exe).
- The
Release workflow re-ran failed at the cargo wix step with
CNDL0104: Not a valid source file; ... An XML comment cannot contain '--', and '-' cannot be the last character (line 17 of
wix/main.wxs). The comment block mentioned the cargo build CLI
flags literally (--release --target), and WiX 3's strict-XML
parser terminates any XML comment at the first --. Rewrote the
comment without the literal sequence.
- The
Release workflow re-ran failed again with
error CNDL0150 : Undefined preprocessor variable '$(var.CargoPkgVersion)'
(line 29 of wix/main.wxs). cargo-wix 0.3.9 defines only
$(var.Version) (sourced from src/templates/main.wxs.mustache line
68, populated via -dVersion=… in src/create.rs line 539). The
previous attempts $(env.CARGO_PKG_VERSION) (shell-style, invalid
WiX) and $(var.CargoPkgVersion) (cargo-wix 0.3.9 doesn't define
it) both fail with the same CNDL0150. Switched to $(var.Version).
- The
Release workflow re-ran failed a third time with
main.wxs(27) : error CNDL0199 : The Wix element has an incorrect namespace of 'http://schemas.microsoft.com/wix/2006/main'. … Please make the Wix element look like the following: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">. The
http://schemas.microsoft.com/wix/2006/main namespace is not what
WiX 3 (and therefore cargo-wix 0.3.9) uses; the correct one is
http://schemas.microsoft.com/wix/2006/wi. Switched the xmlns=
attribute on <Wix> to match.
skill/SKILL.md frontmatter version bumped from 1.4.0 to
1.4.2 and the matching callout / did the 'stale' check guidance
updated to match. The release was at 1.4.2 (msi workflow +
cargo-wix build fix landed via PRs #28 / #30 / #32 / #33 / #34 /
#35 + commit 1b8832d); the skill frontmatter had drifted through
those releases because no skill bump rode along, and v1.4.2's
version-lint CI run flagged the drift. Bringing skill in sync with
binary closes the drift loop opened by PLANECLI-67 / PR #28.
- The Linux
.deb installer now actually builds and reaches the release
page. nfpm pkg was invoked with --name, --version, --maintainer,
--description, --license, --depends, --section, --priority,
--chdir and --output — all unknown to nfpm 2.43.1, whose CLI only
exposes -f, --config, -p, --packager and -t, --target; the metadata
now lives in packaging/nfpm.yaml and the job runs
cd deb-payload && nfpm pkg -f ../packaging/nfpm.yaml -p deb -t ../<output>
(nfpm resolves contents[].src against the process cwd). Separately, the
job sat in its own workflow file while release.yml's host job listed it
under needs: — GitHub Actions only resolves needs: within one file, so
every Release run failed with a workflow-file error and published no
artifacts at all. The job moved into release.yml.
build-windows-msi's Swatinem/rust-cache path was
pbotcli-cli -> target, naming a directory that doesn't exist at the
repo root (the crate lives under crates/), so its cache never
populated. Corrected to . -> target — the documented
<workspace-root> -> <target-dir> form for a repo-root workspace, which
is where cargo build actually writes.
Install pbotcli-cli 1.5.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Liewzheng/pbotcli/releases/download/v1.5.0/pbotcli-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Liewzheng/pbotcli/releases/download/v1.5.0/pbotcli-cli-installer.ps1 | iex"
Install prebuilt binaries via Homebrew
brew install Liewzheng/tap/pbotcli
Download pbotcli-cli 1.5.0