ep_webrtc 2.5.42 → 2.5.43

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 +74 -0
  2. package/package.json +1 -1
package/AGENTS.md ADDED
@@ -0,0 +1,74 @@
1
+ # Agent Guide — ep_webrtc
2
+
3
+ WebRTC based audio/video chat to Etherpad.
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_webrtc/
15
+ ├── AGENTS.md
16
+ ├── CONTRIBUTING.md
17
+ ├── ep.json
18
+ ├── index.js
19
+ ├── locales/
20
+ │ ├── ar.json
21
+ │ ├── bn.json
22
+ │ ├── ca.json
23
+ │ ├── cs.json
24
+ │ ├── cy.json
25
+ │ ├── da.json
26
+ │ └── ...
27
+ ├── package.json
28
+ ├── static/
29
+ │ ├── css/
30
+ │ ├── fonts/
31
+ │ ├── js/
32
+ │ ├── tests/
33
+ ├── templates/
34
+ │ ├── settings.ejs
35
+ │ ├── styles.html
36
+ ```
37
+
38
+ ## Helpers used
39
+
40
+ _None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
41
+
42
+
43
+ ## Helpers NOT used
44
+
45
+ _To be audited in the helpers-adoption sweep (Phase 4)._
46
+
47
+
48
+ ## Running tests locally
49
+
50
+ `ep_webrtc` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_webrtc`:
51
+
52
+ ```bash
53
+ # Backend (Mocha) — harness boots its own server
54
+ pnpm --filter ep_etherpad-lite run test
55
+
56
+ # Playwright — needs `pnpm run dev` in a second terminal
57
+ pnpm --filter ep_etherpad-lite run test-ui
58
+ ```
59
+
60
+ ## Standing rules for agent edits
61
+
62
+ * PRs target `main`. Linear commits, no merge commits.
63
+ * Every bug fix includes a regression test in the same commit.
64
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
65
+ * 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`.)
66
+ * No nested interactive elements (no `<button>` inside `<a>`).
67
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
68
+
69
+ ## Quick reference: hooks declared in `ep.json`
70
+
71
+ * Server: `clientVars`, `handleMessage`, `init_ep_webrtc`, `loadSettings`, `socketio`, `eejsBlock_mySettings`, `eejsBlock_styles`
72
+ * Client: `handleClientMessage_RTC_MESSAGE`, `postAceInit`, `userJoinOrUpdate`, `userLeave`
73
+
74
+ When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git@github.com:ether/ep_webrtc.git",
6
6
  "type": "git"
7
7
  },
8
- "version": "2.5.42",
8
+ "version": "2.5.43",
9
9
  "description": "WebRTC based audio/video chat to Etherpad",
10
10
  "author": "John McLear <john@mclear.co.uk>",
11
11
  "contributors": [],