ep_disable_reset_authorship_colours 0.0.60 → 0.0.61

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 +60 -0
  2. package/package.json +1 -1
package/AGENTS.md ADDED
@@ -0,0 +1,60 @@
1
+ # Agent Guide — ep_disable_reset_authorship_colours
2
+
3
+ Disable The reset authorship colours button.
4
+
5
+ ## Tech stack
6
+
7
+ * Etherpad plugin framework (hooks declared in `ep.json`)
8
+
9
+ ## Project structure
10
+
11
+ ```
12
+ ep_disable_reset_authorship_colours/
13
+ ├── AGENTS.md
14
+ ├── CONTRIBUTING.md
15
+ ├── LICENSE.md
16
+ ├── ep.json
17
+ ├── index.js
18
+ ├── package.json
19
+ ├── static/
20
+ │ ├── js/
21
+ │ ├── tests/
22
+ ```
23
+
24
+ ## Helpers used
25
+
26
+ _None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
27
+
28
+
29
+ ## Helpers NOT used
30
+
31
+ _To be audited in the helpers-adoption sweep (Phase 4)._
32
+
33
+
34
+ ## Running tests locally
35
+
36
+ `ep_disable_reset_authorship_colours` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_disable_reset_authorship_colours`:
37
+
38
+ ```bash
39
+ # Backend (Mocha) — harness boots its own server
40
+ pnpm --filter ep_etherpad-lite run test
41
+
42
+ # Playwright — needs `pnpm run dev` in a second terminal
43
+ pnpm --filter ep_etherpad-lite run test-ui
44
+ ```
45
+
46
+ ## Standing rules for agent edits
47
+
48
+ * PRs target `main`. Linear commits, no merge commits.
49
+ * Every bug fix includes a regression test in the same commit.
50
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
51
+ * 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`.)
52
+ * No nested interactive elements (no `<button>` inside `<a>`).
53
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
54
+
55
+ ## Quick reference: hooks declared in `ep.json`
56
+
57
+ * Server: `clientVars`
58
+ * Client: `postAceInit`
59
+
60
+ 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_disable_reset_authorship_colours",
3
3
  "description": "Disable The reset authorship colours button",
4
- "version": "0.0.60",
4
+ "version": "0.0.61",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/ether/ep_disable_reset_authorship_colours.git"