{"_id":"@crushro/pi-agent-beautify","name":"@crushro/pi-agent-beautify","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@crushro/pi-agent-beautify","version":"0.2.0","description":"Terminal visual polish for pi coding agent: natural multi-level headings, tool-panel code blocks, user message accent bar, clipboard image chips, and CJK Markdown bold/emphasis auto-formatting","type":"module","keywords":["pi-package","pi","extension","beautify","markdown","terminal"],"license":"MIT","pi":{"extensions":["./src/index.ts"]},"peerDependencies":{"@earendil-works/pi-ai":"*","@earendil-works/pi-coding-agent":"*","@earendil-works/pi-tui":"*"},"devDependencies":{"@types/node":"^25.9.1","typescript":"^6.0.3"},"scripts":{"typecheck":"tsc --noEmit","pack":"npm pack","prepublishOnly":"npm pack --dry-run"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ustc21xyx/pi-agent-beautify.git"},"bugs":{"url":"https://github.com/ustc21xyx/pi-agent-beautify/issues"},"homepage":"https://github.com/ustc21xyx/pi-agent-beautify#readme","gitHead":"d82f670cbeab726d06e5f59ee3f7a7d464e24f33","_id":"@crushro/pi-agent-beautify@0.2.0","_nodeVersion":"26.4.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-EWUmnvJ1Uo/NiLWtR024/1O2gIso/OjUMXN9leSJQYuoMktI+MaIc6pGmD6xKWD5QAhfdEnMeLnL/EzSExdXGg==","shasum":"12850429714241130954756952154d80e85c1e47","tarball":"https://registry.npmjs.org/@crushro/pi-agent-beautify/-/pi-agent-beautify-0.2.0.tgz","fileCount":5,"unpackedSize":37838,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG/1Xax7lmlXvSfpOh9YikeZnNtzqWgccuGKj2rRG0lsAiEAo9o+srNWFv0OKl6k2urzVdrNPSynexSQ/zAKSwI03w8="}]},"_npmUser":{"name":"crushro","email":"xyx2021@mail.ustc.edu.cn"},"directories":{},"maintainers":[{"name":"crushro","email":"xyx2021@mail.ustc.edu.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-agent-beautify_0.2.0_1786813925370_0.034324627300395205"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-15T17:12:05.171Z","0.2.0":"2026-08-15T17:12:05.504Z","modified":"2026-08-15T17:12:05.775Z"},"maintainers":[{"name":"crushro","email":"xyx2021@mail.ustc.edu.cn"}],"description":"Terminal visual polish for pi coding agent: natural multi-level headings, tool-panel code blocks, user message accent bar, clipboard image chips, and CJK Markdown bold/emphasis auto-formatting","homepage":"https://github.com/ustc21xyx/pi-agent-beautify#readme","keywords":["pi-package","pi","extension","beautify","markdown","terminal"],"repository":{"type":"git","url":"git+https://github.com/ustc21xyx/pi-agent-beautify.git"},"bugs":{"url":"https://github.com/ustc21xyx/pi-agent-beautify/issues"},"license":"MIT","readme":"# pi-agent-beautify\n\nTerminal visual polish for [pi coding agent](https://pi.dev).  \nForked and extended from [@smoose/pi-beautify](https://github.com/smoosex/pi-beautify).\n\n## Features\n\n### 1. Natural multi-level headings\n\nUpstream pi-tui hides `#` / `##` for H1/H2, but still prints raw `###`… for deeper levels.\n\nThis extension:\n\n- hides raw `#` markers for **all** levels (H1–H6)\n- adds a clear hierarchy with markers, weight, indent, and rule lines\n\n### 2. Code blocks with tool-panel background\n\n- no raw ` ``` ` fence lines\n- no box-drawing characters on code lines (copy stays clean)\n- uses the same background as pi tool-execution panels (`toolPendingBg`)\n- `text` / `plain` / `plaintext` fences also get the panel background for emphasis\n\n### 3. Clipboard image chips\n\nClipboard `pi-clipboard-*` paths render as compact `[image1]` chips in the editor, then expand back to real paths before submit.\n\n### 4. User message accent bar\n\nUser prompts get a soft blue left stripe (`▎`, theme `borderAccent` / blue) so they read clearly against assistant output — similar to modern chat UIs.\n\n### 5. CJK Markdown emphasis & bold fix\n\nUnder the CommonMark specification, bold/italic delimiters (`**`, `*`, `~~`) fail to close when preceded by CJK/ASCII punctuation (like `）` or `)`) and directly followed by CJK characters without whitespace (e.g. `**概念（Concept）**是`).\n\nThis extension automatically hooks into Pi's `pi.registerMarkdownTransformer()` to repair these delimiter boundaries display-side:\n- Fixes bold, italic, and strikethrough next to CJK punctuation/brackets.\n- Fully display-only: never modifies the underlying LLM prompt context or session history.\n- Automatically protects code blocks (```...```), inline code (`...`), and LaTeX math expressions.\n\n## Install\n\n### npm (recommended)\n\n```bash\npi install npm:@crushro/pi-agent-beautify\n# pin a version\npi install npm:@crushro/pi-agent-beautify@0.2.0\n```\n\n### GitHub\n\n```bash\npi install git:github.com/ustc21xyx/pi-agent-beautify\n# or\npi install https://github.com/ustc21xyx/pi-agent-beautify\n```\n\n### Local path (development)\n\n```bash\npi install /path/to/pi-agent-beautify\npi install ./pi-agent-beautify\n```\n\nTry without writing settings:\n\n```bash\npi -e npm:@crushro/pi-agent-beautify\npi -e /path/to/pi-agent-beautify\n```\n\nReload with `/reload` or restart pi after install.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-55b97c21eb47534662b6e5156092026a"}