@hadoku/service-kernel 0.1.7 → 0.1.9

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.
@@ -57,8 +57,10 @@ export interface CreditCount {
57
57
  export declare function creditCounts(releases: readonly ReleaseNotes[]): CreditCount[];
58
58
  export declare const CREDITS_TITLE = "Credits & attribution";
59
59
  /**
60
- * The credits post's text: everyone the notes credit, most first, with their count, then the people
61
- * `earlier` names (credited before there were release notes). Null when it would name nobody.
60
+ * The credits post's text: a plain numbered list of everyone the notes credit, most first, with
61
+ * their count, then one line thanking the people `earlier` names, who helped before the release
62
+ * notes credited anyone. Plain text throughout (the operator, 2026-11-09: "doesn't need extra
63
+ * heading or making everything bold"). Null when it would name nobody.
62
64
  */
63
65
  export declare function creditsBody(releases: readonly ReleaseNotes[], earlier: readonly string[]): string | null;
64
66
  export interface AnnounceOptions {
@@ -10,9 +10,9 @@
10
10
  * shows each as ***__name__*** (bold, italic, underlined) and pings nobody: the operator, 2026-11-09,
11
11
  * "we should not do discord @ mentions anymore".
12
12
  *
13
- * Under the newest notes stands one credits post, "Credits & attribution": everyone the notes have
14
- * ever credited, most credits first, and the people the app's earlier-credits file names, who helped
15
- * before there were release notes. Each release deletes the previous release's credits post and
13
+ * Under the newest notes stands one credits post, "Credits & attribution": a plain numbered list of
14
+ * everyone the notes have ever credited, most credits first, then a line thanking the people the
15
+ * app's earlier-credits file names, who helped before there were release notes. Each release deletes the previous release's credits post and
16
16
  * posts its own after its notes, so the credits are always the newest post.
17
17
  *
18
18
  * `secret` is the app's webhook secret (empty = skip, never an error); a failed post never blocks
@@ -163,21 +163,28 @@ export function creditCounts(releases) {
163
163
  return [...counts.values()].sort((a, b) => b.count - a.count || a.name.toLowerCase().localeCompare(b.name.toLowerCase()));
164
164
  }
165
165
  export const CREDITS_TITLE = 'Credits & attribution';
166
+ /** Names joined the way the operator writes them: `a`, `a and b`, `a, b, and c`. */
167
+ function listed(names) {
168
+ if (names.length <= 2)
169
+ return names.join(' and ');
170
+ return `${names.slice(0, -1).join(', ')}, and ${names.at(-1)}`;
171
+ }
166
172
  /**
167
- * The credits post's text: everyone the notes credit, most first, with their count, then the people
168
- * `earlier` names (credited before there were release notes). Null when it would name nobody.
173
+ * The credits post's text: a plain numbered list of everyone the notes credit, most first, with
174
+ * their count, then one line thanking the people `earlier` names, who helped before the release
175
+ * notes credited anyone. Plain text throughout (the operator, 2026-11-09: "doesn't need extra
176
+ * heading or making everything bold"). Null when it would name nobody.
169
177
  */
170
178
  export function creditsBody(releases, earlier) {
171
179
  const counts = creditCounts(releases);
172
180
  if (counts.length === 0 && earlier.length === 0)
173
181
  return null;
174
- const sections = [];
175
- if (counts.length > 0) {
176
- sections.push(['## In the release notes', ...counts.map((c, i) => `${i + 1}. ${creditMark(c.name)} — ${c.count}`)].join('\n'));
177
- }
182
+ const parts = [];
183
+ if (counts.length > 0)
184
+ parts.push(counts.map((c, i) => `${i + 1}. ${c.name} — ${c.count}`).join('\n'));
178
185
  if (earlier.length > 0)
179
- sections.push(['## Before the release notes', earlier.map(creditMark).join(', ')].join('\n'));
180
- return sections.join('\n');
186
+ parts.push(`Extra thanks to ${listed(earlier)}, who contributed many things before the release notes started crediting anyone.`);
187
+ return parts.join('\n\n');
181
188
  }
182
189
  /**
183
190
  * The signed ArchiveBot request for one release's notes: its idempotency key is the release's own,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/service-kernel",
3
- "version": "0.1.7",
4
- "gitHead": "6e5c08714648a3a0cb50946f8194f656d998beb0",
3
+ "version": "0.1.9",
4
+ "gitHead": "1e3e14b488da97502666167519c09c2fce436406",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The server parts any game keeps: edge auth and the tier gate, base path and bundle check, health and the busy probe, lifecycle, the JSON logger, the state directory, telemetry and capacity, per-caller limits, the browser relays, the erase registry, and createGameServer, which boots a game from its config and plugins. Knows no game; the app binds its service id, prefix and env names. MIT; imports only node built-ins, express, socket.io and @wolffm/*.",
@@ -56,8 +56,8 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.68",
60
- "@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.68",
59
+ "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.69",
60
+ "@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.69",
61
61
  "express": "^5.1.0",
62
62
  "socket.io": "^4.8.3"
63
63
  },