ep_show_whitespace 0.0.57 → 0.0.59

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 +62 -0
  2. package/package.json +1 -1
package/AGENTS.md ADDED
@@ -0,0 +1,62 @@
1
+ # Agent Guide — ep_show_whitespace
2
+
3
+ Show trailing whitespace.
4
+
5
+ ## Tech stack
6
+
7
+ * Etherpad plugin framework (hooks declared in `ep.json`)
8
+ * EJS templates rendered server-side via `eejsBlock_*` hooks
9
+
10
+ ## Project structure
11
+
12
+ ```
13
+ ep_show_whitespace/
14
+ ├── AGENTS.md
15
+ ├── CONTRIBUTING.md
16
+ ├── LICENSE.md
17
+ ├── ep.json
18
+ ├── package.json
19
+ ├── static/
20
+ │ ├── css/
21
+ │ ├── js/
22
+ │ ├── tests/
23
+ ├── templates/
24
+ │ ├── editbarButtons.ejs
25
+ ```
26
+
27
+ ## Helpers used
28
+
29
+ _None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
30
+
31
+
32
+ ## Helpers NOT used
33
+
34
+ _To be audited in the helpers-adoption sweep (Phase 4)._
35
+
36
+
37
+ ## Running tests locally
38
+
39
+ `ep_show_whitespace` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_show_whitespace`:
40
+
41
+ ```bash
42
+ # Backend (Mocha) — harness boots its own server
43
+ pnpm --filter ep_etherpad-lite run test
44
+
45
+ # Playwright — needs `pnpm run dev` in a second terminal
46
+ pnpm --filter ep_etherpad-lite run test-ui
47
+ ```
48
+
49
+ ## Standing rules for agent edits
50
+
51
+ * PRs target `main`. Linear commits, no merge commits.
52
+ * Every bug fix includes a regression test in the same commit.
53
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
54
+ * 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`.)
55
+ * No nested interactive elements (no `<button>` inside `<a>`).
56
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
57
+
58
+ ## Quick reference: hooks declared in `ep.json`
59
+
60
+ * Client: `aceEditorCSS`, `aceEditEvent`
61
+
62
+ When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_show_whitespace",
3
3
  "description": "Show trailing whitespace",
4
- "version": "0.0.57",
4
+ "version": "0.0.59",
5
5
  "author": "johnyma22 (John McLear) <john@mclear.co.uk>",
6
6
  "repository": {
7
7
  "type": "git",