ep_spellcheck 0.0.97 → 0.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/AGENTS.md +71 -0
  2. package/package.json +1 -1
package/AGENTS.md ADDED
@@ -0,0 +1,71 @@
1
+ # Agent Guide — ep_spellcheck
2
+
3
+ Add support to do 'Spell checking', with a toggle on/off option in Settings.
4
+
5
+ ## Tech stack
6
+
7
+ * Etherpad plugin framework (hooks declared in `ep.json`)
8
+ * EJS templates rendered server-side via `eejsBlock_*` hooks
9
+ * html10n for i18n (`locales/<lang>.json`, `data-l10n-id` in templates)
10
+
11
+ ## Project structure
12
+
13
+ ```
14
+ ep_spellcheck/
15
+ ├── AGENTS.md
16
+ ├── CONTRIBUTING.md
17
+ ├── ep.json
18
+ ├── locales/
19
+ │ ├── ar.json
20
+ │ ├── be-tarask.json
21
+ │ ├── bn.json
22
+ │ ├── br.json
23
+ │ ├── ca.json
24
+ │ ├── cs.json
25
+ │ └── ...
26
+ ├── package.json
27
+ ├── spellcheck.js
28
+ ├── static/
29
+ │ ├── js/
30
+ │ ├── tests/
31
+ ├── templates/
32
+ │ ├── spellcheck_entry.ejs
33
+ ```
34
+
35
+ ## Helpers used
36
+
37
+ _None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
38
+
39
+
40
+ ## Helpers NOT used
41
+
42
+ _To be audited in the helpers-adoption sweep (Phase 4)._
43
+
44
+
45
+ ## Running tests locally
46
+
47
+ `ep_spellcheck` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_spellcheck`:
48
+
49
+ ```bash
50
+ # Backend (Mocha) — harness boots its own server
51
+ pnpm --filter ep_etherpad-lite run test
52
+
53
+ # Playwright — needs `pnpm run dev` in a second terminal
54
+ pnpm --filter ep_etherpad-lite run test-ui
55
+ ```
56
+
57
+ ## Standing rules for agent edits
58
+
59
+ * PRs target `main`. Linear commits, no merge commits.
60
+ * Every bug fix includes a regression test in the same commit.
61
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
62
+ * No hardcoded `aria-label` on icon-only controls — etherpad's html10n auto-populates `aria-label` from the localized string when (a) the element has a `data-l10n-id` and (b) no author-supplied `aria-label` is present. Adding a hardcoded English `aria-label` blocks that and leaves it untranslated. (See `etherpad-lite/src/static/js/vendors/html10n.ts:665-678`.)
63
+ * No nested interactive elements (no `<button>` inside `<a>`).
64
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
65
+
66
+ ## Quick reference: hooks declared in `ep.json`
67
+
68
+ * Server: `eejsBlock_mySettings`, `eejsBlock_dd_view`
69
+ * Client: `postAceInit`
70
+
71
+ When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_spellcheck",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "keywords": [
5
5
  "spell",
6
6
  "check",