feat: cherry-pick docx-io, registry files, railway.json from PR#190; …#4846
feat: cherry-pick docx-io, registry files, railway.json from PR#190; …#4846arthrod wants to merge 1 commit intoudecode:mainfrom
Conversation
…fix pnpm syntax and HeadingOptions export Amp-Thread-ID: https://ampcode.com/threads/T-019caab6-c2d7-7129-95ca-102efd3c3af6 Co-authored-by: Amp <amp@ampcode.com>
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c39acf07a2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| author: payload.author, | ||
| date: payload.date, | ||
| startToken: `${DOCX_INSERTION_START_TOKEN_PREFIX}${rawPayload}${DOCX_INSERTION_TOKEN_SUFFIX}`, | ||
| endToken: `${DOCX_INSERTION_END_TOKEN_PREFIX}${payload.id}${DOCX_INSERTION_TOKEN_SUFFIX}`, |
There was a problem hiding this comment.
Encode reconstructed tracked-change end tokens
parseDocxTrackedChanges rebuilds endToken with raw payload.id ([[DOCX_INS_END:${payload.id}]]) instead of encoding it, but export emits end tokens with encodeURIComponent(id) (see buildSuggestionEndToken). If a suggestion ID contains reserved characters (e.g. /, :, space), import searches for the wrong token string, so applyTrackedChangeSuggestions cannot locate the end marker and skips that change (the deletion branch has the same issue).
Useful? React with 👍 / 👎.
…fix pnpm syntax and HeadingOptions export
Amp-Thread-ID: https://ampcode.com/threads/T-019caab6-c2d7-7129-95ca-102efd3c3af6
Checklist
pnpm typecheckpnpm lint:fixpnpm testpnpm brlpnpm changeset