stoatx 0.2.0 → 0.2.1

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.mjs ADDED
@@ -0,0 +1,651 @@
1
+ // src/decorators/Stoat.ts
2
+ import "reflect-metadata";
3
+
4
+ // src/decorators/keys.ts
5
+ var METADATA_KEYS = {
6
+ IS_STOAT_CLASS: /* @__PURE__ */ Symbol("mally:stoat:isClass"),
7
+ SIMPLE_COMMANDS: /* @__PURE__ */ Symbol("mally:stoat:simpleCommands"),
8
+ GUARDS: "mally:command:guards"
9
+ };
10
+
11
+ // src/decorators/store.ts
12
+ var DecoratorStore = class _DecoratorStore {
13
+ constructor() {
14
+ /** Stoat classes with their SimpleCommand methods */
15
+ this.stoatClasses = /* @__PURE__ */ new Map();
16
+ /** Registered commands from @Stoat/@SimpleCommand decorators */
17
+ this.commands = [];
18
+ /** Whether the store has been initialized */
19
+ this.initialized = false;
20
+ }
21
+ static getInstance() {
22
+ if (!_DecoratorStore.instance) {
23
+ _DecoratorStore.instance = new _DecoratorStore();
24
+ }
25
+ return _DecoratorStore.instance;
26
+ }
27
+ /**
28
+ * Register a @Stoat decorated class
29
+ */
30
+ registerStoatClass(classConstructor) {
31
+ if (!this.stoatClasses.has(classConstructor)) {
32
+ const instance = new classConstructor();
33
+ this.stoatClasses.set(classConstructor, instance);
34
+ }
35
+ }
36
+ /**
37
+ * Get all registered Stoat classes with their instances
38
+ */
39
+ getStoatClasses() {
40
+ return this.stoatClasses;
41
+ }
42
+ /**
43
+ * Add a registered command
44
+ */
45
+ addCommand(command) {
46
+ this.commands.push(command);
47
+ }
48
+ /**
49
+ * Get all registered commands
50
+ */
51
+ getCommands() {
52
+ return this.commands;
53
+ }
54
+ /**
55
+ * Clear all registered classes (useful for testing)
56
+ */
57
+ clear() {
58
+ this.stoatClasses.clear();
59
+ this.commands = [];
60
+ this.initialized = false;
61
+ }
62
+ /**
63
+ * Mark as initialized
64
+ */
65
+ markInitialized() {
66
+ this.initialized = true;
67
+ }
68
+ /**
69
+ * Check if initialized
70
+ */
71
+ isInitialized() {
72
+ return this.initialized;
73
+ }
74
+ };
75
+ var decoratorStore = DecoratorStore.getInstance();
76
+
77
+ // src/decorators/Stoat.ts
78
+ function Stoat() {
79
+ return (target) => {
80
+ Reflect.defineMetadata(METADATA_KEYS.IS_STOAT_CLASS, true, target);
81
+ decoratorStore.registerStoatClass(target);
82
+ };
83
+ }
84
+ function isStoatClass(target) {
85
+ return Reflect.getMetadata(METADATA_KEYS.IS_STOAT_CLASS, target) === true;
86
+ }
87
+
88
+ // src/decorators/SimpleCommand.ts
89
+ import "reflect-metadata";
90
+ function SimpleCommand(options = {}) {
91
+ return (target, propertyKey, descriptor) => {
92
+ const constructor = target.constructor;
93
+ const existingCommands = Reflect.getMetadata(METADATA_KEYS.SIMPLE_COMMANDS, constructor) || [];
94
+ existingCommands.push({
95
+ methodName: String(propertyKey),
96
+ options
97
+ });
98
+ Reflect.defineMetadata(METADATA_KEYS.SIMPLE_COMMANDS, existingCommands, constructor);
99
+ return descriptor;
100
+ };
101
+ }
102
+ function getSimpleCommands(target) {
103
+ return Reflect.getMetadata(METADATA_KEYS.SIMPLE_COMMANDS, target) || [];
104
+ }
105
+
106
+ // src/decorators/Guard.ts
107
+ import "reflect-metadata";
108
+ function Guard(guardClass) {
109
+ return (target) => {
110
+ const existingGuards = Reflect.getMetadata(METADATA_KEYS.GUARDS, target) || [];
111
+ existingGuards.push(guardClass);
112
+ Reflect.defineMetadata(METADATA_KEYS.GUARDS, existingGuards, target);
113
+ };
114
+ }
115
+ function getGuards(target) {
116
+ return Reflect.getMetadata(METADATA_KEYS.GUARDS, target) || [];
117
+ }
118
+
119
+ // src/decorators/utils.ts
120
+ function buildSimpleCommandMetadata(options, methodName, category) {
121
+ return {
122
+ name: options.name ?? methodName.toLowerCase(),
123
+ description: options.description ?? "No description provided",
124
+ aliases: options.aliases ?? [],
125
+ permissions: options.permissions ?? [],
126
+ category: options.category ?? category ?? "uncategorized",
127
+ cooldown: options.cooldown ?? 0,
128
+ nsfw: options.nsfw ?? false,
129
+ ownerOnly: options.ownerOnly ?? false
130
+ };
131
+ }
132
+
133
+ // src/registry.ts
134
+ import * as path from "path";
135
+ import * as fs from "fs/promises";
136
+ import { pathToFileURL } from "url";
137
+ import { glob } from "tinyglobby";
138
+ var _CommandRegistry = class _CommandRegistry {
139
+ constructor(extensions = [".js", ".mjs", ".cjs"]) {
140
+ this.commands = /* @__PURE__ */ new Map();
141
+ this.aliases = /* @__PURE__ */ new Map();
142
+ this.processedStoatClasses = /* @__PURE__ */ new Set();
143
+ this.extensions = extensions;
144
+ }
145
+ /**
146
+ * Get the number of registered commands
147
+ */
148
+ get size() {
149
+ return this.commands.size;
150
+ }
151
+ /**
152
+ * Load commands from a directory using glob pattern matching
153
+ */
154
+ async loadFromDirectory(directory) {
155
+ const patterns = this.extensions.map((ext) => path.join(directory, "**", `*${ext}`).replace(/\\/g, "/"));
156
+ for (const pattern of patterns) {
157
+ const files = await glob(pattern, {
158
+ ignore: ["**/*.d.ts", "**/*.test.ts", "**/*.spec.ts"],
159
+ absolute: true
160
+ });
161
+ for (const file of files) {
162
+ await this.loadFile(file, directory);
163
+ }
164
+ }
165
+ console.log(`[Mally] Loaded ${this.commands.size} command(s)`);
166
+ }
167
+ /**
168
+ * Auto-discover command files across one or more roots.
169
+ */
170
+ async autoDiscover(options = {}) {
171
+ const roots = options.roots?.length ? options.roots : [process.cwd()];
172
+ const includePatterns = options.include?.length ? options.include : this.getDefaultAutoDiscoveryPatterns();
173
+ const patterns = roots.flatMap(
174
+ (root) => includePatterns.map((pattern) => path.join(root, pattern).replace(/\\/g, "/"))
175
+ );
176
+ const files = await glob(patterns, {
177
+ ignore: [..._CommandRegistry.DEFAULT_AUTO_DISCOVERY_IGNORES, ...options.ignore ?? []],
178
+ absolute: true
179
+ });
180
+ const uniqueFiles = [...new Set(files)];
181
+ let candidateFiles = 0;
182
+ for (const file of uniqueFiles) {
183
+ if (!await this.isLikelyCommandModule(file)) {
184
+ continue;
185
+ }
186
+ candidateFiles++;
187
+ const baseDir = roots.find((root) => {
188
+ const relative2 = path.relative(root, file);
189
+ return relative2 && !relative2.startsWith("..") && !path.isAbsolute(relative2);
190
+ }) ?? roots[0];
191
+ await this.loadFile(file, baseDir);
192
+ }
193
+ console.log(`[Mally] Auto-discovered ${candidateFiles} candidate file(s), loaded ${this.commands.size} command(s)`);
194
+ }
195
+ getDefaultAutoDiscoveryPatterns() {
196
+ return this.extensions.map((ext) => `**/*${ext}`);
197
+ }
198
+ async isLikelyCommandModule(filePath) {
199
+ try {
200
+ const source = await fs.readFile(filePath, "utf8");
201
+ return source.includes("Stoat") || source.includes("SimpleCommand") || source.includes("Command") || source.includes("mally:command");
202
+ } catch {
203
+ return true;
204
+ }
205
+ }
206
+ /**
207
+ * Register a command instance
208
+ */
209
+ register(instance, metadata, classConstructor, methodName) {
210
+ const name = metadata.name.toLowerCase();
211
+ if (this.commands.has(name)) {
212
+ console.warn(`[Mally] Duplicate command name: ${name}. Skipping...`);
213
+ return;
214
+ }
215
+ this.validateGuards(classConstructor, metadata.name);
216
+ this.commands.set(name, { instance, metadata, methodName, classConstructor });
217
+ for (const alias of metadata.aliases) {
218
+ const aliasLower = alias.toLowerCase();
219
+ if (this.aliases.has(aliasLower) || this.commands.has(aliasLower)) {
220
+ console.warn(`[Mally] Duplicate alias: ${aliasLower}. Skipping...`);
221
+ continue;
222
+ }
223
+ this.aliases.set(aliasLower, name);
224
+ }
225
+ }
226
+ /**
227
+ * Get a command by name or alias
228
+ */
229
+ get(name) {
230
+ const lowerName = name.toLowerCase();
231
+ const resolvedName = this.aliases.get(lowerName) ?? lowerName;
232
+ return this.commands.get(resolvedName);
233
+ }
234
+ /**
235
+ * Check if a command exists
236
+ */
237
+ has(name) {
238
+ const lowerName = name.toLowerCase();
239
+ return this.commands.has(lowerName) || this.aliases.has(lowerName);
240
+ }
241
+ /**
242
+ * Get all registered commands
243
+ */
244
+ getAll() {
245
+ return Array.from(this.commands.values());
246
+ }
247
+ /**
248
+ * Get all command metadata
249
+ */
250
+ getAllMetadata() {
251
+ return this.getAll().map((c) => c.metadata);
252
+ }
253
+ /**
254
+ * Get commands grouped by category
255
+ */
256
+ getByCategory() {
257
+ const categories = /* @__PURE__ */ new Map();
258
+ for (const cmd of this.commands.values()) {
259
+ const category = cmd.metadata.category;
260
+ const existing = categories.get(category) ?? [];
261
+ existing.push(cmd);
262
+ categories.set(category, existing);
263
+ }
264
+ return categories;
265
+ }
266
+ /**
267
+ * Clear all commands
268
+ */
269
+ clear() {
270
+ this.commands.clear();
271
+ this.aliases.clear();
272
+ this.processedStoatClasses.clear();
273
+ }
274
+ /**
275
+ * Iterate over commands
276
+ */
277
+ [Symbol.iterator]() {
278
+ return this.commands.entries();
279
+ }
280
+ /**
281
+ * Iterate over command values
282
+ */
283
+ values() {
284
+ return this.commands.values();
285
+ }
286
+ /**
287
+ * Iterate over command names
288
+ */
289
+ keys() {
290
+ return this.commands.keys();
291
+ }
292
+ /**
293
+ * Validate that all guards on a command implement the required methods
294
+ * @param commandClass
295
+ * @param commandName
296
+ * @private
297
+ */
298
+ validateGuards(commandClass, commandName) {
299
+ const guards = Reflect.getMetadata("mally:command:guards", commandClass) || [];
300
+ for (const GuardClass of guards) {
301
+ const guardInstance = new GuardClass();
302
+ if (typeof guardInstance.run !== "function") {
303
+ console.error(
304
+ `[Mally] FATAL: Guard "${GuardClass.name}" on command "${commandName}" does not have a run() method.`
305
+ );
306
+ process.exit(1);
307
+ }
308
+ if (typeof guardInstance.guardFail !== "function") {
309
+ console.error(
310
+ `[Mally] FATAL: Guard "${GuardClass.name}" on command "${commandName}" does not have a guardFail() method.`
311
+ );
312
+ console.error(`[Mally] All guards must implement guardFail() to handle failed checks.`);
313
+ process.exit(1);
314
+ }
315
+ }
316
+ }
317
+ /**
318
+ * Load commands from a single file
319
+ */
320
+ async loadFile(filePath, baseDir) {
321
+ try {
322
+ const knownStoatClasses = new Set(decoratorStore.getStoatClasses().keys());
323
+ const fileUrl = pathToFileURL(filePath).href;
324
+ await import(fileUrl);
325
+ const allStoatClasses = decoratorStore.getStoatClasses();
326
+ for (const [stoatClass, stoatInstance] of allStoatClasses.entries()) {
327
+ if (knownStoatClasses.has(stoatClass) || this.processedStoatClasses.has(stoatClass)) {
328
+ continue;
329
+ }
330
+ this.registerStoatClassCommands(stoatClass, stoatInstance, filePath, baseDir);
331
+ }
332
+ } catch (error) {
333
+ console.error(`[Mally] Failed to load command file: ${filePath}`, error);
334
+ }
335
+ }
336
+ registerStoatClassCommands(stoatClass, instance, filePath, baseDir) {
337
+ const simpleCommands = getSimpleCommands(stoatClass);
338
+ const category = this.getCategoryFromPath(filePath, baseDir);
339
+ if (simpleCommands.length === 0) {
340
+ console.warn(
341
+ `[Mally] Class ${stoatClass.name} is decorated with @Stoat but has no @SimpleCommand methods. Skipping...`
342
+ );
343
+ this.processedStoatClasses.add(stoatClass);
344
+ return;
345
+ }
346
+ for (const cmdDef of simpleCommands) {
347
+ const method = instance[cmdDef.methodName];
348
+ if (typeof method !== "function") {
349
+ console.warn(`[Mally] Method ${cmdDef.methodName} not found on ${stoatClass.name}. Skipping...`);
350
+ continue;
351
+ }
352
+ const metadata = buildSimpleCommandMetadata(cmdDef.options, cmdDef.methodName, category);
353
+ this.register(instance, metadata, stoatClass, cmdDef.methodName);
354
+ }
355
+ this.processedStoatClasses.add(stoatClass);
356
+ }
357
+ /**
358
+ * Derive category from file path relative to base directory
359
+ */
360
+ getCategoryFromPath(filePath, baseDir) {
361
+ const relative2 = path.relative(baseDir, filePath);
362
+ const parts = relative2.split(path.sep);
363
+ if (parts.length > 1) {
364
+ return parts[0];
365
+ }
366
+ return void 0;
367
+ }
368
+ };
369
+ _CommandRegistry.DEFAULT_AUTO_DISCOVERY_IGNORES = [
370
+ "**/node_modules/**",
371
+ "**/.git/**",
372
+ "**/*.d.ts",
373
+ "**/*.test.*",
374
+ "**/*.spec.*"
375
+ ];
376
+ var CommandRegistry = _CommandRegistry;
377
+
378
+ // src/handler.ts
379
+ import "reflect-metadata";
380
+ var MallyHandler = class {
381
+ constructor(options) {
382
+ this.cooldowns = /* @__PURE__ */ new Map();
383
+ this.client = options.client;
384
+ this.commandsDir = options.commandsDir;
385
+ this.discoveryOptions = options.discovery;
386
+ this.prefixResolver = options.prefix;
387
+ this.owners = new Set(options.owners ?? []);
388
+ this.registry = new CommandRegistry(options.extensions);
389
+ this.disableMentionPrefix = options.disableMentionPrefix ?? false;
390
+ }
391
+ /**
392
+ * Initialize the handler - load all commands
393
+ */
394
+ async init() {
395
+ if (this.commandsDir) {
396
+ await this.registry.loadFromDirectory(this.commandsDir);
397
+ return;
398
+ }
399
+ await this.registry.autoDiscover(this.discoveryOptions);
400
+ }
401
+ /**
402
+ * Parse a raw message into command context
403
+ */
404
+ async parseMessage(rawContent, message, meta) {
405
+ const prefix = await this.resolvePrefix(meta.serverId);
406
+ let usedPrefix = prefix;
407
+ let withoutPrefix = "";
408
+ if (rawContent.startsWith(prefix)) {
409
+ withoutPrefix = rawContent.slice(prefix.length).trim();
410
+ usedPrefix = prefix;
411
+ } else if (!this.disableMentionPrefix && rawContent.match(/^<@!?[\w]+>/)) {
412
+ const mentionMatch = rawContent.match(/^<@!?([\w]+)>\s*/);
413
+ if (mentionMatch) {
414
+ const mentionedId = mentionMatch[1];
415
+ const botId = this.client.user?.id;
416
+ if (botId && mentionedId === botId) {
417
+ usedPrefix = mentionMatch[0];
418
+ withoutPrefix = rawContent.slice(mentionMatch[0].length).trim();
419
+ } else {
420
+ }
421
+ }
422
+ }
423
+ if (!withoutPrefix) {
424
+ return null;
425
+ }
426
+ const [commandName, ...args] = withoutPrefix.split(/\s+/);
427
+ if (!commandName) {
428
+ return null;
429
+ }
430
+ return {
431
+ client: this.client,
432
+ content: rawContent,
433
+ authorId: meta.authorId,
434
+ channelId: meta.channelId,
435
+ serverId: meta.serverId,
436
+ args,
437
+ prefix: usedPrefix,
438
+ commandName: commandName.toLowerCase(),
439
+ reply: meta.reply,
440
+ message
441
+ };
442
+ }
443
+ /**
444
+ * Handle a message object using the configured message adapter
445
+ *
446
+ * @example
447
+ * ```ts
448
+ * // With message adapter configured
449
+ * client.on('messageCreate', (message) => {
450
+ * handler.handle(message);
451
+ * });
452
+ * ```
453
+ */
454
+ async handle(message) {
455
+ if (!message.channel || !message.author) {
456
+ return false;
457
+ }
458
+ if (message.author.bot) {
459
+ return false;
460
+ }
461
+ const rawContent = message.content;
462
+ const authorId = message.author.id;
463
+ const channelId = message.channel.id;
464
+ const serverId = message.server?.id;
465
+ const reply = async (content) => {
466
+ await message.channel.sendMessage(content);
467
+ };
468
+ return this.handleMessage(rawContent, message, {
469
+ authorId,
470
+ channelId,
471
+ serverId,
472
+ reply
473
+ });
474
+ }
475
+ /**
476
+ * Handle a raw message string with metadata
477
+ *
478
+ * @example
479
+ * ```ts
480
+ * // Manual usage without message adapter
481
+ * client.on('messageCreate', (message) => {
482
+ * handler.handleMessage(message.content, message, {
483
+ * authorId: message.author.id,
484
+ * channelId: message.channel.id,
485
+ * serverId: message.server?.id,
486
+ * reply: (content) => message.channel.sendMessage(content),
487
+ * });
488
+ * });
489
+ * ```
490
+ */
491
+ async handleMessage(rawContent, message, meta) {
492
+ const ctx = await this.parseMessage(rawContent, message, meta);
493
+ if (!ctx) {
494
+ return false;
495
+ }
496
+ return this.execute(ctx);
497
+ }
498
+ /**
499
+ * Execute a command with the given context
500
+ */
501
+ async execute(ctx) {
502
+ const registered = this.registry.get(ctx.commandName);
503
+ if (!registered) {
504
+ return false;
505
+ }
506
+ const { instance, metadata, methodName, classConstructor } = registered;
507
+ if (metadata.ownerOnly && !this.owners.has(ctx.authorId)) {
508
+ await ctx.reply("This command is owner-only.");
509
+ return false;
510
+ }
511
+ const guards = Reflect.getMetadata("mally:command:guards", classConstructor) || [];
512
+ for (const guardClass of guards) {
513
+ const guardInstance = new guardClass();
514
+ if (typeof guardInstance.run === "function") {
515
+ const guardResult = await guardInstance.run(ctx);
516
+ if (!guardResult) {
517
+ if (typeof guardInstance.guardFail === "function") {
518
+ await guardInstance.guardFail(ctx);
519
+ } else {
520
+ console.error("[Mally] Guard check failed but no guardFail method defined on", guardClass.name);
521
+ }
522
+ return false;
523
+ }
524
+ }
525
+ }
526
+ if (!this.checkCooldown(ctx.authorId, metadata)) {
527
+ const remaining = this.getRemainingCooldown(ctx.authorId, metadata);
528
+ if (typeof instance.onCooldown === "function") {
529
+ await instance.onCooldown(ctx, remaining);
530
+ } else {
531
+ await ctx.reply(`Please wait ${(remaining / 1e3).toFixed(1)} seconds before using this command again.`);
532
+ }
533
+ return false;
534
+ }
535
+ try {
536
+ await instance[methodName](ctx);
537
+ if (metadata.cooldown > 0) {
538
+ this.setCooldown(ctx.authorId, metadata);
539
+ }
540
+ return true;
541
+ } catch (error) {
542
+ if (typeof instance.onError === "function") {
543
+ await instance.onError(ctx, error);
544
+ } else {
545
+ console.error(`[Mally] Error in command ${metadata.name}:`, error);
546
+ await ctx.reply(`An error occurred: ${error.message}`);
547
+ }
548
+ return false;
549
+ }
550
+ }
551
+ /**
552
+ * Get the command registry
553
+ */
554
+ getRegistry() {
555
+ return this.registry;
556
+ }
557
+ /**
558
+ * Get a command by name or alias
559
+ */
560
+ getCommand(name) {
561
+ return this.registry.get(name);
562
+ }
563
+ /**
564
+ * Get all commands
565
+ */
566
+ getCommands() {
567
+ return this.registry.getAll();
568
+ }
569
+ /**
570
+ * Reload all commands
571
+ */
572
+ async reload() {
573
+ this.registry.clear();
574
+ this.cooldowns.clear();
575
+ if (this.commandsDir) {
576
+ await this.registry.loadFromDirectory(this.commandsDir);
577
+ return;
578
+ }
579
+ await this.registry.autoDiscover(this.discoveryOptions);
580
+ }
581
+ /**
582
+ * Check if a user is an owner
583
+ */
584
+ isOwner(userId) {
585
+ return this.owners.has(userId);
586
+ }
587
+ /**
588
+ * Add an owner
589
+ */
590
+ addOwner(userId) {
591
+ this.owners.add(userId);
592
+ }
593
+ /**
594
+ * Remove an owner
595
+ */
596
+ removeOwner(userId) {
597
+ this.owners.delete(userId);
598
+ }
599
+ /**
600
+ * Resolve the prefix for a context
601
+ */
602
+ async resolvePrefix(serverId) {
603
+ if (typeof this.prefixResolver === "function") {
604
+ return this.prefixResolver({ serverId });
605
+ }
606
+ return this.prefixResolver;
607
+ }
608
+ /**
609
+ * Check if user is on cooldown
610
+ */
611
+ checkCooldown(userId, metadata) {
612
+ if (metadata.cooldown <= 0) return true;
613
+ const commandCooldowns = this.cooldowns.get(metadata.name);
614
+ if (!commandCooldowns) return true;
615
+ const userCooldown = commandCooldowns.get(userId);
616
+ if (!userCooldown) return true;
617
+ return Date.now() >= userCooldown;
618
+ }
619
+ /**
620
+ * Get remaining cooldown time in ms
621
+ */
622
+ getRemainingCooldown(userId, metadata) {
623
+ const commandCooldowns = this.cooldowns.get(metadata.name);
624
+ if (!commandCooldowns) return 0;
625
+ const userCooldown = commandCooldowns.get(userId);
626
+ if (!userCooldown) return 0;
627
+ return Math.max(0, userCooldown - Date.now());
628
+ }
629
+ /**
630
+ * Set cooldown for a user
631
+ */
632
+ setCooldown(userId, metadata) {
633
+ if (!this.cooldowns.has(metadata.name)) {
634
+ this.cooldowns.set(metadata.name, /* @__PURE__ */ new Map());
635
+ }
636
+ const commandCooldowns = this.cooldowns.get(metadata.name);
637
+ commandCooldowns.set(userId, Date.now() + metadata.cooldown);
638
+ }
639
+ };
640
+ export {
641
+ CommandRegistry,
642
+ Guard,
643
+ METADATA_KEYS,
644
+ MallyHandler,
645
+ SimpleCommand,
646
+ Stoat,
647
+ buildSimpleCommandMetadata,
648
+ getGuards,
649
+ getSimpleCommands,
650
+ isStoatClass
651
+ };
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "stoatx",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A high-performance, decorator-based command handler for the Stoat ecosystem.",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/Arsabutispik/stoatx"
7
+ "url": "git+https://github.com/stoatx-ts/stoatx.git"
8
8
  },
9
+ "bugs": {
10
+ "url": "https://github.com/stoatx-ts/stoatx/issues"
11
+ },
12
+ "homepage": "https://github.com/stoatx-ts/stoatx#readme",
9
13
  "main": "./dist/index.js",
10
14
  "module": "./dist/index.mjs",
11
15
  "types": "./dist/index.d.ts",