Emdash plugin v0 1 - #40
Open
diogoascarneiro wants to merge 6 commits into
Open
Conversation
…nt versioning group Add `@cloudflare/polystella-emdash` package for native EmDash integration with deployment policy validation, plugin declarations, settings, override storage, and deterministic catalog reconciliation helpers. Update all documentation, workflows, and examples to reference six packages instead of five. Add EmDash to independent versioning group alongside core, adapters, and providers. Update CI to verify EmDash build artifacts. Update PR
…in UI, and route handlers Add content-editor panel for translating saved entry fields, catalog page for managing temporary UI-string overrides with runtime toggle and deterministic JSON export, and settings page for enabling deployment-allowlisted collections. Add private routes for content translation, catalog CRUD, override export, and settings persistence. Add Workers AI binding translator dependency. Export admin UI from `@cloudflare/polystella-emdash/admin` subpath.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
polystella-docs | 371215f | Commit Preview URL Branch Preview URL |
Sep 04 2026, 03:03 PM |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
Contributor
Scope checkThis PR changes 6,451 lines across 38 files. PolyStella is maintained by a small team, so smaller focused PRs are more likely to be reviewed. If this scope is intentional, no action is required. |
@cloudflare/polystella-adapters
@cloudflare/polystella-astro
@cloudflare/polystella-cli
@cloudflare/polystella-core
@cloudflare/polystella-emdash
@cloudflare/polystella
@cloudflare/polystella-providers
commit: |
…LI host, and update all references Extract `check-ui`, `sync-ui`, and `translate-ui` command handlers from `packages/astro/src/cli/` and `packages/astro/src/i18n/` into new `@cloudflare/polystella-cli` package. Add `packages/cli/src/run-command.ts` dispatcher, config loader, glossary loader, drift detection, sync logic, and translate-ui orchestration. Add `packages/emdash/dist/cli.js` executable hosting the same commands. Update
…th EmDash overrides Add `polystellaEmdashAstro()` integration that registers virtual module `polystella:catalog`, middleware for `Astro.locals.t` and `Astro.locals.lhref`, and 60-second cached overlay of enabled EmDash overrides on bundled dictionaries. Export `@cloudflare/polystella-emdash/astro` and `@cloudflare/polystella-emdash/client` ambient types. Add `packages/emdash/src/astro.ts` integration factory, `packages/emdash/src/runtime
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.
What does this PR do?
Adds
@cloudflare/polystella-emdash, a native EmDash0.36.xintegration and PolyStella’s sixth independently versioned public package.content:read, preserves tokens and Portable Text structure, and updates through EmDash’s normal API using_rev.This is a trusted configuration-installed native plugin. It runs in-process; EmDash capabilities limit provided
ctx.*services but are not a sandbox.Known EmDash limitations are handled conservatively: translation uses the latest saved entry, deployment allowlists remain authoritative, stale writes return
409, and unsafe bulk conditional override clearing is not exposed.Closes #
Type of change
PolyStella invariants touched
Checklist
CONTRIBUTING.mdpnpm testpasses, or I have explained why it was not runpnpm typecheckpasses, or I have explained why it was not runAI-generated code disclosure
Screenshots / logs / test output
pnpm test: 1,344 tests passed.pnpm typecheck: all six public packages built and passed strict typechecking.pnpm check:packages: all six packages and public exports passed clean-consumer checks.pnpm check:baseline: passed.pnpm format:check: passed.pnpm audit:prod: passed.git diff --check: passed.