@theholocron/holocron-plugin-discord 5.0.0-alpha.497 → 5.0.0-alpha.499

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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AuthError, DiscussionPatch, DiscussionPost, DuplicateDiscussion, EnsureDiscussionInput, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsMember, NotificationsOnboardingLayout, NotificationsPinnedLayout, NotificationsReaction, NotificationsServerLayout, NotificationsSignIn, NotificationsWelcomeLayout, PluginToken, ResolveTokenInput, ServerInspection, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
1
+ import { AuthError, DiscussionPatch, DiscussionPost, DuplicateDiscussion, EmojiCheck, EnsureDiscussionInput, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsMember, NotificationsOnboardingLayout, NotificationsPinnedLayout, NotificationsReaction, NotificationsServerLayout, NotificationsSignIn, NotificationsWelcomeLayout, PluginToken, ResolveTokenInput, ServerInspection, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
2
2
  import { DiscordBotClient, DiscordClient, DiscordClientOptions, DiscordOAuthClient, DiscordWebhookInfo, createDiscordClient, parseWebhookUrl } from "@theholocron/discord-client";
3
3
  /** Resolves the Discord webhook URL from `--token`, `HOLOCRON_DISCORD_WEBHOOK`, `DISCORD_WEBHOOK_URL` or the keyring, and throws an `AuthError` when none is set. */
4
4
  export declare const resolveToken: import("@theholocron/cli").TokenResolver;
@@ -45,6 +45,8 @@ export declare class DiscordNotifications implements Notifications {
45
45
  private readonly bot;
46
46
  /** Builds the OAuth client for one redirect URI; needs the application's client secret. */
47
47
  private readonly oauth;
48
+ /** Reads the bytes at a public URL (an emoji on Discord's CDN). Tests pass their own. */
49
+ private readonly fetchImage;
48
50
  /** The capability this class provides, always `"notifications"`. */
49
51
  readonly key: "notifications";
50
52
  /** The provider name, `"discord"`. */
@@ -55,7 +57,9 @@ export declare class DiscordNotifications implements Notifications {
55
57
  /** Memoized thunk — resolves the bot token on first provisioning call, never on `send()`. */
56
58
  bot?: () => DiscordBotClient,
57
59
  /** Builds the OAuth client for one redirect URI; needs the application's client secret. */
58
- oauth?: (redirectUri: string) => Promise<DiscordOAuthClient>);
60
+ oauth?: (redirectUri: string) => Promise<DiscordOAuthClient>,
61
+ /** Reads the bytes at a public URL (an emoji on Discord's CDN). Tests pass their own. */
62
+ fetchImage?: (url: string) => Promise<Uint8Array>);
59
63
  /**
60
64
  * Sign a member in with Discord to learn which GitHub account they own. Asks only for `identify` and
61
65
  * `connections`, reads the account Discord has verified, and revokes the token before returning: nothing
@@ -298,13 +302,37 @@ export declare class DiscordNotifications implements Notifications {
298
302
  }): Promise<EnsuredResource>;
299
303
  /**
300
304
  * Finds the server emoji with this name or makes it from `image` (a `data:` URI). One that exists is left exactly as it
301
- * is: never replaced, renamed or deleted, and the image is not compared with it. Making one needs Create Guild
302
- * Expressions; without it the error says so and carries the link that invites the bot again asking for it.
305
+ * is (not replaced, renamed or deleted, and the image is not compared with it) unless `replace` is set, which `setup`
306
+ * does only for an emoji {@link DiscordNotifications.checkEmoji} found different. Making one
307
+ * needs Create Guild Expressions; without it the error says so and carries the link that invites the bot again asking
308
+ * for it.
309
+ *
310
+ * With `replace`, Discord has no way to change an emoji's image, so a new one is made. Names are unique per server, so
311
+ * the new emoji is made first under a temporary name (`<name>_new`), the old one deleted, and the new one renamed: a
312
+ * failure before the delete leaves the old emoji as it was (the new one is removed again), and one after it leaves the
313
+ * new emoji under the temporary name, which the error gives. The new emoji has a new id, so the caller must read ids
314
+ * again (forum default reactions and starter reactions are looked up by name each time, so `setup`'s channel step
315
+ * does). Reactions made with the old emoji disappear with it. Deleting an emoji the bot did not make needs Manage
316
+ * Guild Expressions; a 403 says so with the invite link.
303
317
  */
304
318
  ensureEmoji(input: {
305
319
  name: string;
306
320
  image: string;
321
+ replace?: boolean;
307
322
  }): Promise<EnsuredResource>;
323
+ /**
324
+ * Whether the server emoji with this name shows `image`. Discord returns no hash of an emoji's picture, so the copy
325
+ * on its CDN (`cdn.discordapp.com/emojis/<id>.png`, the lossless size of the upload) is read and both pictures are
326
+ * decoded and compared pixel by pixel with a small tolerance, which also absorbs Discord re-encoding the upload.
327
+ * Read-only. Anything that stops the comparison (the layout's image is not a PNG, the CDN does not answer, a
328
+ * picture that cannot be decoded) is `unknown` with the reason, never `different`.
329
+ */
330
+ checkEmoji(input: {
331
+ name: string;
332
+ image: string;
333
+ }): Promise<EmojiCheck>;
334
+ /** A 403 on an emoji write becomes an error naming the permission with the link that asks for it; anything else passes through. */
335
+ private emojiRefused;
308
336
  /** The server emoji with this name, or an error naming it and the two ways to get one. */
309
337
  private emojiNamed;
310
338
  /** A layout reaction as Discord's default reaction takes it: the emoji id of a server emoji, or the Unicode character; never both. */
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { AuthError, ElevationRequiredError, ProviderApiError, connectionProbe, createResolveToken, layoutEmojis, parseReaction, tokenExpectations } from "@theholocron/cli";
2
2
  import { errorMessage } from "@theholocron/misc-utils";
3
3
  import { ApplicationFlag, ChannelType, MessageFlag, createDiscordBotClient, createDiscordClient, createDiscordOAuthClient, findVerifiedConnection, parseWebhookUrl, permissionNames, permissions } from "@theholocron/discord-client";
4
+ import { inflateSync } from "node:zlib";
4
5
  // src/bot-needs.ts
5
6
  /** What the bot needs in the server to do everything `setup` does. The invite link asks for exactly these. */
6
7
  const BOT_NEEDS = [
@@ -36,6 +37,14 @@ function botNeeds(layout) {
36
37
  ...makesEmoji ? ["CreateGuildExpressions"] : []
37
38
  ];
38
39
  }
40
+ /**
41
+ * What `setup notifications` also needs to replace an emoji whose picture changed: Manage Guild Expressions (Discord's "Manage Expressions"), which
42
+ * deleting an emoji someone else made takes (Create Guild Expressions covers only the bot's own). It is not part of
43
+ * {@link botNeeds}, since whether emoji are replaced is a choice of one run, not of the layout.
44
+ */
45
+ function replaceNeeds(layout) {
46
+ return [...botNeeds(layout), "ManageGuildExpressions"];
47
+ }
39
48
  // src/probes/token/expectations.ts
40
49
  /** The name the probe's row uses for being a member of the configured server, beside the permission names. */
41
50
  const GUILD = "guild";
@@ -122,6 +131,160 @@ const tokens = [
122
131
  verifiable: false
123
132
  }
124
133
  ];
134
+ // src/emoji-picture.ts
135
+ const SIGNATURE = [
136
+ 137,
137
+ 80,
138
+ 78,
139
+ 71,
140
+ 13,
141
+ 10,
142
+ 26,
143
+ 10
144
+ ];
145
+ /** Samples per pixel for each PNG colour type we read (8 bits each): grey, RGB, palette, grey+alpha, RGBA. */
146
+ const SAMPLES = {
147
+ 0: 1,
148
+ 2: 3,
149
+ 3: 1,
150
+ 4: 2,
151
+ 6: 4
152
+ };
153
+ /**
154
+ * Reads a PNG into RGBA. Only what an emoji is: 8 bits per sample, not interlaced, any of the five colour types.
155
+ * Anything else throws, and so does a damaged file; the caller treats a throw as "cannot compare".
156
+ */
157
+ function decodePng(bytes) {
158
+ if (bytes.length < 8 || SIGNATURE.some((b, i) => bytes[i] !== b)) throw new Error("not a PNG");
159
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
160
+ let width = 0;
161
+ let height = 0;
162
+ let colorType = -1;
163
+ let palette = /* @__PURE__ */ new Uint8Array(0);
164
+ let alphas = /* @__PURE__ */ new Uint8Array(0);
165
+ const parts = [];
166
+ for (let at = 8; at + 8 <= bytes.length;) {
167
+ const length = view.getUint32(at);
168
+ const type = String.fromCharCode(...bytes.subarray(at + 4, at + 8));
169
+ const body = bytes.subarray(at + 8, at + 8 + length);
170
+ if (body.length < length) throw new Error("truncated PNG");
171
+ if (type === "IHDR") {
172
+ width = view.getUint32(at + 8);
173
+ height = view.getUint32(at + 12);
174
+ if (body[8] !== 8) throw new Error(`unsupported bit depth ${body[8]}`);
175
+ colorType = body[9];
176
+ if (body[12] !== 0) throw new Error("interlaced PNGs are not supported");
177
+ } else if (type === "PLTE") palette = body;
178
+ else if (type === "tRNS") alphas = body;
179
+ else if (type === "IDAT") parts.push(body);
180
+ else if (type === "IEND") break;
181
+ at += 12 + length;
182
+ }
183
+ const samples = SAMPLES[colorType];
184
+ if (!samples || width === 0 || height === 0 || parts.length === 0) throw new Error("unsupported or damaged PNG");
185
+ if ((colorType === 0 || colorType === 2) && alphas.length > 0) throw new Error("PNG colour key is not supported");
186
+ const raw = inflateSync(Buffer.concat(parts));
187
+ const stride = width * samples;
188
+ if (raw.length < (stride + 1) * height) throw new Error("truncated PNG data");
189
+ const rows = new Uint8Array(stride * height);
190
+ for (let y = 0; y < height; y++) {
191
+ const filter = raw[y * (stride + 1)];
192
+ for (let x = 0; x < stride; x++) {
193
+ const value = raw[y * (stride + 1) + 1 + x];
194
+ const left = x >= samples ? rows[y * stride + x - samples] : 0;
195
+ const up = y > 0 ? rows[(y - 1) * stride + x] : 0;
196
+ const upLeft = y > 0 && x >= samples ? rows[(y - 1) * stride + x - samples] : 0;
197
+ rows[y * stride + x] = value + predictor(filter, left, up, upLeft) & 255;
198
+ }
199
+ }
200
+ const data = new Uint8Array(width * height * 4);
201
+ for (let i = 0; i < width * height; i++) {
202
+ const s = i * samples;
203
+ const o = i * 4;
204
+ if (colorType === 6) data.set(rows.subarray(s, s + 4), o);
205
+ else if (colorType === 2) data.set([
206
+ rows[s],
207
+ rows[s + 1],
208
+ rows[s + 2],
209
+ 255
210
+ ], o);
211
+ else if (colorType === 0) data.set([
212
+ rows[s],
213
+ rows[s],
214
+ rows[s],
215
+ 255
216
+ ], o);
217
+ else if (colorType === 4) data.set([
218
+ rows[s],
219
+ rows[s],
220
+ rows[s],
221
+ rows[s + 1]
222
+ ], o);
223
+ else {
224
+ const p = rows[s] * 3;
225
+ if (p + 2 >= palette.length) throw new Error("PNG palette index out of range");
226
+ data.set([
227
+ palette[p],
228
+ palette[p + 1],
229
+ palette[p + 2],
230
+ alphas[rows[s]] ?? 255
231
+ ], o);
232
+ }
233
+ }
234
+ return {
235
+ width,
236
+ height,
237
+ data
238
+ };
239
+ }
240
+ function predictor(filter, left, up, upLeft) {
241
+ if (filter === 0) return 0;
242
+ if (filter === 1) return left;
243
+ if (filter === 2) return up;
244
+ if (filter === 3) return left + up >> 1;
245
+ if (filter === 4) {
246
+ const p = left + up - upLeft;
247
+ const pa = Math.abs(p - left);
248
+ const pb = Math.abs(p - up);
249
+ const pc = Math.abs(p - upLeft);
250
+ return pa <= pb && pa <= pc ? left : pb <= pc ? up : upLeft;
251
+ }
252
+ throw new Error(`unknown PNG filter ${filter}`);
253
+ }
254
+ /** A pixel counts as different when a channel is further apart than this (of 255), so re-encoding noise is not a change. */
255
+ const CHANNEL_TOLERANCE = 24;
256
+ /** Pixels this transparent have colours that mean nothing, and a half-covered edge pixel's colour is unreliable. */
257
+ const OPAQUE_ENOUGH = 32;
258
+ /** The share of pixels that may differ before the pictures are called different (a recolour moves far more). */
259
+ const DIFFERENT_SHARE = .005;
260
+ /**
261
+ * Whether two pictures show the same thing: equal size, and at most half a percent of pixels further apart than
262
+ * the tolerance (alpha always compared, colour only where both pixels are visible). A different size is different.
263
+ */
264
+ function samePixels(a, b) {
265
+ if (a.width !== b.width || a.height !== b.height) return false;
266
+ let differing = 0;
267
+ for (let i = 0; i < a.width * a.height; i++) {
268
+ const o = i * 4;
269
+ let far = Math.abs(a.data[o + 3] - b.data[o + 3]) > CHANNEL_TOLERANCE;
270
+ if (!far && a.data[o + 3] >= OPAQUE_ENOUGH && b.data[o + 3] >= OPAQUE_ENOUGH) far = [
271
+ 0,
272
+ 1,
273
+ 2
274
+ ].some((c) => Math.abs(a.data[o + c] - b.data[o + c]) > CHANNEL_TOLERANCE);
275
+ if (far) differing++;
276
+ }
277
+ return differing / (a.width * a.height) <= DIFFERENT_SHARE;
278
+ }
279
+ /** The bytes of a `data:` URI, and its media type; throws for anything else. */
280
+ function readDataUri(uri) {
281
+ const match = /^data:([^;,]+);base64,(.*)$/s.exec(uri);
282
+ if (!match) throw new Error("not a base64 data: URI");
283
+ return {
284
+ mime: match[1],
285
+ bytes: Buffer.from(match[2], "base64")
286
+ };
287
+ }
125
288
  // src/capabilities/discussions.ts
126
289
  /** Discord's cap on the text of one message. */
127
290
  const MAX_MESSAGE = 2e3;
@@ -540,6 +703,15 @@ function colorToInt(hex) {
540
703
  function colorToHex(color) {
541
704
  return `#${color.toString(16).padStart(6, "0")}`;
542
705
  }
706
+ const EMOJI_CDN = "https://cdn.discordapp.com/emojis";
707
+ /** Reads a public image: no credentials are sent, the answer must be a success and small. */
708
+ async function fetchPublicImage(url) {
709
+ const res = await fetch(url, { signal: AbortSignal.timeout(15e3) });
710
+ if (!res.ok) throw new Error(`the CDN answered ${res.status}`);
711
+ const bytes = new Uint8Array(await res.arrayBuffer());
712
+ if (bytes.length > 1048576) throw new Error("the CDN image is larger than 1 MiB");
713
+ return bytes;
714
+ }
543
715
  /** An error as one line: the message, plus Discord's own response body when there is one. */
544
716
  function reason(err) {
545
717
  return err instanceof ProviderApiError && err.details ? `${errorMessage(err)}: ${String(err.details).slice(0, 200)}` : errorMessage(err);
@@ -610,6 +782,7 @@ var DiscordNotifications = class DiscordNotifications {
610
782
  defaultWebhookUrl;
611
783
  bot;
612
784
  oauth;
785
+ fetchImage;
613
786
  /** The capability this class provides, always `"notifications"`. */
614
787
  key = "notifications";
615
788
  /** The provider name, `"discord"`. */
@@ -618,12 +791,13 @@ var DiscordNotifications = class DiscordNotifications {
618
791
  throw new Error("no Discord bot client configured");
619
792
  }, oauth = () => {
620
793
  throw new Error("no Discord OAuth client configured");
621
- }) {
794
+ }, fetchImage = fetchPublicImage) {
622
795
  this.client = client;
623
796
  this.opts = opts;
624
797
  this.defaultWebhookUrl = defaultWebhookUrl;
625
798
  this.bot = bot;
626
799
  this.oauth = oauth;
800
+ this.fetchImage = fetchImage;
627
801
  }
628
802
  /**
629
803
  * Sign a member in with Discord to learn which GitHub account they own. Asks only for `identify` and
@@ -1928,28 +2102,96 @@ var DiscordNotifications = class DiscordNotifications {
1928
2102
  }
1929
2103
  /**
1930
2104
  * Finds the server emoji with this name or makes it from `image` (a `data:` URI). One that exists is left exactly as it
1931
- * is: never replaced, renamed or deleted, and the image is not compared with it. Making one needs Create Guild
1932
- * Expressions; without it the error says so and carries the link that invites the bot again asking for it.
2105
+ * is (not replaced, renamed or deleted, and the image is not compared with it) unless `replace` is set, which `setup`
2106
+ * does only for an emoji {@link DiscordNotifications.checkEmoji} found different. Making one
2107
+ * needs Create Guild Expressions; without it the error says so and carries the link that invites the bot again asking
2108
+ * for it.
2109
+ *
2110
+ * With `replace`, Discord has no way to change an emoji's image, so a new one is made. Names are unique per server, so
2111
+ * the new emoji is made first under a temporary name (`<name>_new`), the old one deleted, and the new one renamed: a
2112
+ * failure before the delete leaves the old emoji as it was (the new one is removed again), and one after it leaves the
2113
+ * new emoji under the temporary name, which the error gives. The new emoji has a new id, so the caller must read ids
2114
+ * again (forum default reactions and starter reactions are looked up by name each time, so `setup`'s channel step
2115
+ * does). Reactions made with the old emoji disappear with it. Deleting an emoji the bot did not make needs Manage
2116
+ * Guild Expressions; a 403 says so with the invite link.
1933
2117
  */
1934
2118
  async ensureEmoji(input) {
1935
2119
  const bot = this.bot();
1936
- const have = (await bot.guilds.emojis(this.guild())).find((e) => e.id && e.name === input.name);
1937
- if (have?.id) return {
2120
+ const guild = this.guild();
2121
+ const all = await bot.guilds.emojis(guild);
2122
+ const have = all.find((e) => e.id && e.name === input.name);
2123
+ if (have?.id && !input.replace) return {
1938
2124
  id: have.id,
1939
2125
  created: false
1940
2126
  };
1941
- try {
2127
+ if (!have?.id) try {
1942
2128
  return {
1943
- id: (await bot.guilds.createEmoji(this.guild(), {
2129
+ id: (await bot.guilds.createEmoji(guild, {
1944
2130
  name: input.name,
1945
2131
  image: input.image
1946
2132
  })).id,
1947
2133
  created: true
1948
2134
  };
1949
2135
  } catch (err) {
1950
- if (err instanceof ProviderApiError && err.status === 403) throw new Error(`Discord refused: the bot lacks Create Guild Expressions, which making emoji \`:${input.name}:\` needs. Invite it again with it (updates its role in place): ${await this.inviteUrl()}`, { cause: err });
1951
- throw err;
2136
+ throw await this.emojiRefused(err, `making emoji \`:${input.name}:\``, "Create Guild Expressions");
1952
2137
  }
2138
+ const temporary = `${input.name.slice(0, 28)}_new`;
2139
+ if (all.find((e) => e.id && e.name === temporary)) throw new Error(`the server already has an emoji \`:${temporary}:\` (left by an earlier replace that did not finish?); delete or rename it, then run setup again. \`:${input.name}:\` was not touched`);
2140
+ let made;
2141
+ try {
2142
+ made = await bot.guilds.createEmoji(guild, {
2143
+ name: temporary,
2144
+ image: input.image
2145
+ });
2146
+ } catch (err) {
2147
+ throw await this.emojiRefused(err, `replacing emoji \`:${input.name}:\``, "Create Guild Expressions");
2148
+ }
2149
+ try {
2150
+ await bot.guilds.deleteEmoji(guild, have.id);
2151
+ } catch (err) {
2152
+ await bot.guilds.deleteEmoji(guild, made.id).catch(() => void 0);
2153
+ throw await this.emojiRefused(err, `deleting the old emoji \`:${input.name}:\` (the new one was removed again, nothing changed)`, "Manage Guild Expressions", replaceNeeds(this.opts.layout));
2154
+ }
2155
+ try {
2156
+ await bot.guilds.renameEmoji(guild, made.id, input.name);
2157
+ } catch (err) {
2158
+ throw new Error(`the old emoji \`:${input.name}:\` was deleted and the new one made, but renaming it failed (${reason(err)}); it is now \`:${temporary}:\` (id ${made.id}) -- rename it to \`${input.name}\` in the server's settings`, { cause: err });
2159
+ }
2160
+ return {
2161
+ id: made.id,
2162
+ created: false,
2163
+ updated: ["image"]
2164
+ };
2165
+ }
2166
+ /**
2167
+ * Whether the server emoji with this name shows `image`. Discord returns no hash of an emoji's picture, so the copy
2168
+ * on its CDN (`cdn.discordapp.com/emojis/<id>.png`, the lossless size of the upload) is read and both pictures are
2169
+ * decoded and compared pixel by pixel with a small tolerance, which also absorbs Discord re-encoding the upload.
2170
+ * Read-only. Anything that stops the comparison (the layout's image is not a PNG, the CDN does not answer, a
2171
+ * picture that cannot be decoded) is `unknown` with the reason, never `different`.
2172
+ */
2173
+ async checkEmoji(input) {
2174
+ const have = (await this.bot().guilds.emojis(this.guild())).find((e) => e.id && e.name === input.name);
2175
+ if (!have?.id) return { state: "missing" };
2176
+ try {
2177
+ const want = readDataUri(input.image);
2178
+ if (want.mime !== "image/png") return {
2179
+ state: "unknown",
2180
+ note: `the layout's image is ${want.mime}, not a PNG`
2181
+ };
2182
+ const served = await this.fetchImage(`${EMOJI_CDN}/${have.id}.png?size=128&quality=lossless`);
2183
+ return { state: samePixels(decodePng(want.bytes), decodePng(served)) ? "same" : "different" };
2184
+ } catch (err) {
2185
+ return {
2186
+ state: "unknown",
2187
+ note: reason(err)
2188
+ };
2189
+ }
2190
+ }
2191
+ /** A 403 on an emoji write becomes an error naming the permission with the link that asks for it; anything else passes through. */
2192
+ async emojiRefused(err, doing, permission, invite = this.needs()) {
2193
+ if (!(err instanceof ProviderApiError && err.status === 403)) return err;
2194
+ return new Error(`Discord refused: the bot lacks ${permission}, which ${doing} needs. Invite it again with it (updates its role in place): ${await this.inviteUrl(invite)}`, { cause: err });
1953
2195
  }
1954
2196
  /** The server emoji with this name, or an error naming it and the two ways to get one. */
1955
2197
  async emojiNamed(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-discord",
3
- "version": "5.0.0-alpha.497",
3
+ "version": "5.0.0-alpha.499",
4
4
  "description": "Holocron plugin for Discord. Implements the notifications capability via Discord incoming webhooks.",
5
5
  "keywords": [
6
6
  "discord",
@@ -41,19 +41,19 @@
41
41
  "tsx": "4.23.15",
42
42
  "typescript": "^5.9.3",
43
43
  "vitest": "^5.1.0",
44
- "@theholocron/discord-client": "^1.58.0-alpha.44",
44
+ "@theholocron/cli": "5.0.0-alpha.499",
45
+ "@theholocron/discord-client": "^1.58.0-alpha.45",
46
+ "@theholocron/http-client": "^1.58.0-alpha.45",
45
47
  "@theholocron/eslint-config": "^8.9.0-alpha.21",
46
- "@theholocron/cli": "5.0.0-alpha.497",
47
- "@theholocron/http-client": "^1.58.0-alpha.44",
48
48
  "@theholocron/misc-utils": "^1.17.0-alpha.5",
49
- "@theholocron/tsconfig": "^8.9.0-alpha.21",
50
49
  "@theholocron/tsdown-config": "^8.9.0-alpha.21",
51
- "@theholocron/vitest-config": "^8.9.0-alpha.21"
50
+ "@theholocron/vitest-config": "^8.9.0-alpha.21",
51
+ "@theholocron/tsconfig": "^8.9.0-alpha.21"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@theholocron/discord-client": "^1.50.0",
55
55
  "@theholocron/misc-utils": "^1.16.0",
56
- "@theholocron/cli": "5.0.0-alpha.497"
56
+ "@theholocron/cli": "5.0.0-alpha.499"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=22"