Repository navigation
Conversation
Add an `attachment` sub-app with `attach`/`ls` commands, backed by a
three-step upload flow (register for a presigned S3 URL, PUT the binary,
PATCH is_uploaded and verify the write — see ADRs 0003 and 0007).
Duplicate asset names are rejected unless the user confirms.
`wi create`/`wi update` gain repeatable `-i/--image` flags that upload an
image and append it to the description. The img src stores only the
asset UUID — the web editor resolves it via getAssetSrc, so storing a
full path breaks image rendering ("Error loading image").
The v2 app upload endpoint (ISSUE_DESCRIPTION) is preferred and
automatically falls back to v1 when the server rejects API-token auth;
asset UUIDs stay interchangeable across both paths.
comment create/update wrapped the whole body in a single p tag; the editor collapses whitespace inside a paragraph, so multi-line comments (numbered items, link lists) rendered as one long line. Blank lines now split into separate paragraphs, single newlines become br tags.
The API stores comment HTML verbatim and does not auto-link URLs — only the web editor does — so links posted via the CLI rendered as plain text. Bare http(s) URLs now become anchors; trailing sentence punctuation stays outside the link, and URLs already inside an anchor are left alone.
The editor stores HTML and does not parse markdown, so `branch` and fenced blocks posted via the CLI showed literal backticks. Inline code becomes an escaped code tag (never linkified); fenced blocks become pre-wrapped code and keep their own paragraph.
- attach: check the local file before resolving the work item, so a bad path fails before the config or the network is touched. - _guess_mime: know .md/.markdown/.log where the platform MIME database lacks them (the uv-managed Python on macOS has no .md entry). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013dQcgZHVdyPjyJMov9Ljba
Add `planecli attachment get` (aliases `download`, `dl`). SELECTOR picks an attachment by id or exact file name; a name shared by several attachments needs an id, or --all to save every match with repeated names suffixed (image-2.png). --dir/-o choose the target, --force overwrites existing files, --json prints the saved paths. The v1 detail endpoint answers with a redirect to a presigned storage URL; the redirect is followed by hand so the API key stays on the API host, and the body streams to a .part file renamed on success. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HcDT5cKbMgPEE4tTPZqhKs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
planecli attachment get(aliasesdownload,dl) to download work item attachments:--allis given.image.png) fails and lists the ids, unless--allis given.--allsaves every match with repeated names suffixed (image-2.png).--force.-osaves exactly one attachment.--jsonprints[{id, name, type, size, path}]with absolute paths.The v1 detail endpoint answers with a redirect to a presigned storage URL. The CLI follows that redirect itself, so the API key is only sent to the API host. The body streams to a
.partfile that is renamed on success.New commits on top of #12
cf8115cfix(attachments): makes feat(attachments): work item attachments and inline description images #12's tests pass without a Plane config (details in a comment on feat(attachments): work item attachments and inline description images #12)b7fae24feat(attachments): download work item attachments, with tests and README/skill docsTest plan
uv run ruff check src/uv run pytest tests/: 221 passed🤖 Generated with Claude Code
https://claude.ai/code/session_013dQcgZHVdyPjyJMov9Ljba