pi-mono/packages/coding-agent/src
Petr Houška d1e8703375 fix(coding-agent): read and edit handle UTF-16 and non-UTF-8 files without corrupting them
One helper, tools/file-encoding.ts, detects UTF-16 by byte order mark
and decodes text for read (UTF-8 as before otherwise) and losslessly for
edit. Edit writes files back in the encoding they were read with; files
that are not valid UTF-8 are decoded as Latin-1 so ASCII edits splice
exactly their bytes, and non-ASCII edits, fuzzy matches and changes to
the byte after a non-ASCII byte are refused. EditOperations gains an
optional writeFileBytes for these files.

fixes #10349
fixes #5797
2026-11-05 23:46:22 +01:00
..
bun feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
cli feat(coding-agent): add pi auth login and logout 2026-11-05 12:07:14 +01:00
core fix(coding-agent): read and edit handle UTF-16 and non-UTF-8 files without corrupting them 2026-11-05 23:46:22 +01:00
experimental feat(coding-agent): remove the experimental server stack and the client, protocol, and server packages 2026-10-12 10:41:59 +00:00
extensions feat(coding-agent): add pi auth login and logout 2026-11-05 12:07:14 +01:00
modes fix(coding-agent): remove all extension overlays on /reload and session switch (#11853) 2026-11-05 23:30:54 +01:00
utils feat(coding-agent): add pi auth login and logout 2026-11-05 12:07:14 +01:00
cli.ts fix(coding-agent): keep remote harness dependencies development-only 2026-09-05 12:45:04 +02:00
config.ts feat(coding-agent): add PI_SELF_UPDATE_COMMAND and selfUpdateCommand for pi update (#11629) 2026-10-30 22:30:39 +01:00
index.ts feat(coding-agent): let Markdown transformers opt into more surfaces (#11756) 2026-11-03 23:10:47 +01:00
main.ts feat(coding-agent): add pi auth login and logout 2026-11-05 12:07:14 +01:00
migrations.ts fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
package-manager-cli.ts fix(coding-agent): only report packages as up to date when pi update checked them (#11711) 2026-11-02 21:49:07 +01:00
rpc-entry.ts feat(coding-agent): set AI_AGENT environment variable (#7493) 2026-08-03 13:45:32 +02:00