commandkit 1.2.1 → 1.2.2
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/README.md +1 -1
- package/cache.cjs +2 -0
- package/cache.d.ts +1 -0
- package/dist/{ActionRow-Bt9qi0Mb.d.ts → ActionRow-DSh9roc5.d.ts} +2 -3
- package/dist/{Button-DxJLcZIU.d.ts → Button-BPsE5ju0.d.ts} +5 -6
- package/dist/{ButtonKit-BfcyvWfj.d.ts → ButtonKit-CNPmVg3h.d.ts} +2 -3
- package/dist/{ChannelSelectMenuKit-DYkudikb.d.ts → ChannelSelectMenuKit-CcOdaLQ6.d.ts} +3 -4
- package/dist/CommandTree-qu-8oAEV.d.ts +55 -0
- package/dist/CommandsRouter-Co225Ae5.d.ts +242 -0
- package/dist/{EventInterceptor-D9JKMcfi.d.ts → EventInterceptor-wg378vJp.d.ts} +1 -2
- package/dist/{EventsRouter-EuuSu6NH.d.ts → EventsRouter-Bt63ZuEF.d.ts} +21 -2
- package/dist/{MentionableSelectMenuKit-Mu4xqP6B.d.ts → MentionableSelectMenuKit-8_Nkgn_a.d.ts} +3 -4
- package/dist/{MessageCommandParser-DPCbHXCS.d.ts → MessageCommandParser-BYbxHOSK.d.ts} +7 -2
- package/dist/{Modal-v9rrcMl-.d.ts → Modal-DbWK6VmV.d.ts} +5 -6
- package/dist/{ModalKit-XJSM65SV.d.ts → ModalKit-CnmUVpw-.d.ts} +2 -3
- package/dist/{RoleSelectMenuKit-CCjcp3HY.d.ts → RoleSelectMenuKit-Bei7DHqD.d.ts} +3 -4
- package/dist/{SelectMenu-CY0vvoSu.d.ts → SelectMenu-Bce_PClo.d.ts} +8 -9
- package/dist/{StringSelectMenuKit-G5nBTicX.d.ts → StringSelectMenuKit-CBeB9HqT.d.ts} +3 -4
- package/dist/TreeArtifact-D6FZ5SVd.d.ts +27 -0
- package/dist/{UserSelectMenuKit-D3SO_fXA.d.ts → UserSelectMenuKit-DZmeZ_Tp.d.ts} +3 -4
- package/dist/analytics/analytics-engine.d.ts +1 -1
- package/dist/analytics/analytics-engine.js +1 -1
- package/dist/analytics/analytics-provider.d.ts +1 -1
- package/dist/analytics/constants.js +0 -1
- package/dist/analytics/constants.js.map +1 -1
- package/dist/analytics/utils.js +1 -1
- package/dist/{analytics-engine-DnRsHBId.d.ts → analytics-engine-Bz1p7ud3.d.ts} +178 -30
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/AppCommandRunner.js +1 -1
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/commands/Context.js +1 -1
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +79 -71
- package/dist/app/commands/MessageCommandParser.js.map +1 -1
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +0 -1
- package/dist/app/commands/helpers.js.map +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +3 -3
- package/dist/app/events/EventWorkerContext.js +0 -1
- package/dist/app/events/EventWorkerContext.js.map +1 -1
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppCommandHandler.js +1 -1
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.js +1 -1
- package/dist/app/index.d.ts +5 -5
- package/dist/app/index.js +1 -1
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js.map +1 -1
- package/dist/app/middlewares/permissions.d.ts +1 -2
- package/dist/app/middlewares/permissions.js +1 -1
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.js +1 -1
- package/dist/app/router/CommandTree.d.ts +2 -0
- package/dist/app/router/CommandTree.js +1 -0
- package/dist/app/router/CommandsRouter.d.ts +2 -2
- package/dist/app/router/CommandsRouter.js +445 -24
- package/dist/app/router/CommandsRouter.js.map +1 -1
- package/dist/app/router/EventsRouter.d.ts +2 -2
- package/dist/app/router/EventsRouter.js +56 -3
- package/dist/app/router/EventsRouter.js.map +1 -1
- package/dist/app/router/TreeArtifact.d.ts +2 -0
- package/dist/app/router/TreeArtifact.js +87 -0
- package/dist/app/router/TreeArtifact.js.map +1 -0
- package/dist/app/router/index.d.ts +6 -3
- package/dist/app/router/index.js +8 -1
- package/dist/checkbox-DoR0Pcxm.d.ts +27 -0
- package/dist/cli/app-process.d.ts +2 -3
- package/dist/cli/app-process.js +15 -4
- package/dist/cli/app-process.js.map +1 -1
- package/dist/cli/build.d.ts +4 -9
- package/dist/cli/build.js +33 -5
- package/dist/cli/build.js.map +1 -1
- package/dist/cli/common.d.ts +3 -6
- package/dist/cli/common.js +2 -2
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/development.d.ts +5 -6
- package/dist/cli/development.js +12 -12
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.js.map +1 -1
- package/dist/cli/generators.js +0 -1
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.js +5 -5
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +1 -3
- package/dist/cli/init.js +37 -12
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/production.d.ts +1 -3
- package/dist/cli/production.js +4 -4
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +0 -1
- package/dist/cli/type-checker.js.map +1 -1
- package/dist/cli/utils.d.ts +0 -1
- package/dist/cli/utils.js.map +1 -1
- package/dist/{commandkit-Bh7C1_c7.js → commandkit-DNbfLwyR.js} +786 -200
- package/dist/commandkit-DNbfLwyR.js.map +1 -0
- package/dist/commandkit.d.ts +1 -1
- package/dist/commandkit.js +1 -1
- package/dist/{common-CCvvgnxi.d.ts → common-CIbPzguv.d.ts} +2 -3
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +1 -0
- package/dist/components/common/EventInterceptor.js.map +1 -1
- package/dist/components/common/element.d.ts +1 -1
- package/dist/components/common/element.js +1 -1
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/display/common.d.ts +0 -1
- package/dist/components/display/common.js +1 -1
- package/dist/components/display/container.d.ts +1 -1
- package/dist/components/display/container.js +1 -1
- package/dist/components/display/file.d.ts +1 -1
- package/dist/components/display/file.js +0 -1
- package/dist/components/display/file.js.map +1 -1
- package/dist/components/display/index.d.ts +9 -8
- package/dist/components/display/index.js +1 -1
- package/dist/components/display/label.d.ts +1 -1
- package/dist/components/display/label.js +1 -1
- package/dist/components/display/media-gallery.d.ts +1 -1
- package/dist/components/display/media-gallery.js +1 -1
- package/dist/components/display/poll.d.ts +1 -1
- package/dist/components/display/poll.js +4 -10
- package/dist/components/display/poll.js.map +1 -1
- package/dist/components/display/section.d.ts +1 -1
- package/dist/components/display/section.js +1 -1
- package/dist/components/display/separator.d.ts +1 -1
- package/dist/components/display/separator.js +0 -1
- package/dist/components/display/separator.js.map +1 -1
- package/dist/components/display/text-display.d.ts +1 -1
- package/dist/components/display/text-display.js +0 -1
- package/dist/components/display/text-display.js.map +1 -1
- package/dist/components/index.d.ts +26 -23
- package/dist/components/index.js +6 -1
- package/dist/components/interactive/action-row/ActionRow.d.ts +1 -1
- package/dist/components/interactive/action-row/ActionRow.js +0 -1
- package/dist/components/interactive/action-row/ActionRow.js.map +1 -1
- package/dist/components/interactive/button/Button.d.ts +1 -1
- package/dist/components/interactive/button/Button.js +1 -1
- package/dist/components/interactive/button/ButtonKit.d.ts +1 -1
- package/dist/components/interactive/button/ButtonKit.js +1 -1
- package/dist/components/interactive/checkbox/checkbox.d.ts +2 -0
- package/dist/components/interactive/checkbox/checkbox.js +6 -0
- package/dist/components/interactive/modal/Modal.d.ts +1 -1
- package/dist/components/interactive/modal/Modal.js +1 -1
- package/dist/components/interactive/modal/ModalKit.d.ts +1 -1
- package/dist/components/interactive/modal/ModalKit.js +1 -1
- package/dist/components/interactive/radio/radio.d.ts +2 -0
- package/dist/components/interactive/radio/radio.js +5 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -1
- package/dist/components/interactive/select-menu/SelectMenu.js +1 -1
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -1
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +1 -1
- package/dist/components/interactive/select-menu/common.d.ts +1 -1
- package/dist/config/config.d.ts +1 -2
- package/dist/config/config.js +1 -1
- package/dist/config/default.d.ts +1 -2
- package/dist/config/default.js +1 -1
- package/dist/config/loader.d.ts +1 -2
- package/dist/config/loader.js +1 -1
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +1 -1
- package/dist/config/utils.js.map +1 -1
- package/dist/{constants-DqtJY0t-.d.ts → constants-B7AfnOFa.d.ts} +1 -1
- package/dist/{constants-DwxpkIeH.d.ts → constants-kWgE3L9F.d.ts} +15 -2
- package/dist/{container-CYojOA9d.d.ts → container-NVgblXmw.d.ts} +1 -2
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/async-context.js +1 -1
- package/dist/context/environment.d.ts +1 -1
- package/dist/context/environment.js +1 -1
- package/dist/{element-DeLvTMfZ.d.ts → element-BMZYAAQ-.d.ts} +3 -4
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/events/CommandKitEventsChannel.js +3 -2
- package/dist/events/CommandKitEventsChannel.js.map +1 -1
- package/dist/{file-DLO1zEcH.d.ts → file-DYAmr697.d.ts} +1 -2
- package/dist/flags/FlagProvider.d.ts +1 -1
- package/dist/flags/FlagProvider.js +1 -0
- package/dist/flags/FlagProvider.js.map +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/feature-flags.js +1 -1
- package/dist/flags/store.d.ts +1 -1
- package/dist/flags/store.js +0 -1
- package/dist/flags/store.js.map +1 -1
- package/dist/{helpers-zmC44Mcu.d.ts → helpers-vlnRvNJv.d.ts} +1 -2
- package/dist/index-CAFaKBs_.d.ts +8 -0
- package/dist/index-COt7nfC9.d.ts +2 -0
- package/dist/index-DvqHpiuh.d.ts +16 -0
- package/dist/index.d.ts +37 -31
- package/dist/index.js +14 -2
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js.map +1 -1
- package/dist/kv/dotprops.js.map +1 -1
- package/dist/kv/kv.d.ts +0 -1
- package/dist/kv/kv.js +1 -1
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +1 -2
- package/dist/kv/serde.js +27 -27
- package/dist/kv/serde.js.map +1 -1
- package/dist/{label-DqGRqodo.d.ts → label-DClaYktn.d.ts} +1 -2
- package/dist/logger/DefaultLogger.d.ts +0 -1
- package/dist/logger/DefaultLogger.js +1 -1
- package/dist/logger/Logger.d.ts +0 -1
- package/dist/logger/Logger.js +1 -1
- package/dist/logger/NoopLogger.d.ts +0 -1
- package/dist/logger/NoopLogger.js.map +1 -1
- package/dist/{media-gallery-Ca8es-eB.d.ts → media-gallery-z2Snzz-u.d.ts} +1 -2
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/CompilerPlugin.js +2 -2
- package/dist/plugins/CompilerPlugin.js.map +1 -1
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/PluginCommon.js +1 -1
- package/dist/plugins/PluginCommon.js.map +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.js +2 -2
- package/dist/plugins/RuntimePlugin.js.map +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +1 -1
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/types.d.ts +1 -1
- package/dist/{poll-DQ6DX_Tt.d.ts → poll-D2QDStsw.d.ts} +4 -14
- package/dist/radio-CJH_N4lq.d.ts +20 -0
- package/dist/{section-Q8nwx_-q.d.ts → section-DrFBT5b-.d.ts} +1 -2
- package/dist/{separator-B8P-kdIK.d.ts → separator-BVm3w6yd.d.ts} +1 -2
- package/dist/{signals-CBXwugBW.d.ts → signals-DRMDrCOn.d.ts} +1 -1
- package/dist/{text-display-CL9C2yMc.d.ts → text-display-BG0nNqy3.d.ts} +1 -2
- package/dist/{types-DZy7U-Ld.d.ts → types-ur7SvktF.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/colors.d.ts +1 -3
- package/dist/utils/colors.js +0 -1
- package/dist/utils/colors.js.map +1 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +19 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +1 -1
- package/dist/utils/error-codes.js +15 -0
- package/dist/utils/error-codes.js.map +1 -1
- package/dist/utils/resolve-file-url.js +2 -2
- package/dist/utils/resolve-file-url.js.map +1 -1
- package/dist/utils/types-package.d.ts +6 -2
- package/dist/utils/types-package.js +31 -38
- package/dist/utils/types-package.js.map +1 -1
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- package/dist/utils/useful-stuff/mutex.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.js +4 -1
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.js +1 -1
- package/dist/utils/warning.d.ts +1 -5
- package/dist/utils/warning.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +17 -17
- package/dist/CommandsRouter-DiNoF0dq.d.ts +0 -145
- package/dist/commandkit-Bh7C1_c7.js.map +0 -1
- package/dist/index-BIsCUWAs.d.ts +0 -1
- package/dist/index-CwHYpK-f.d.ts +0 -1
- package/dist/index-DHrsNvX1.d.ts +0 -1
- /package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-C_NdSu1c.js} +0 -0
package/dist/kv/kv.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv.js","names":[],"sources":["../../src/kv/kv.ts"],"sourcesContent":["import { DatabaseSync, StatementSync } from 'node:sqlite';\nimport { deserializer, serializer } from './serde';\nimport { getNestedValue, setNestedValue } from './dotprops';\n\nexport type { SerializedValue } from './serde';\n\n/**\n * Mathematical operators supported by the KV math method\n */\nexport type KvMathOperator = '+' | '-' | '*' | '/' | '^' | '%';\n\n/**\n * Configuration options for the KV store\n */\nexport interface KvOptions {\n /** Enable Write-Ahead Logging for better performance and durability */\n enableWAL?: boolean;\n /** Namespace for the key-value store table */\n namespace?: string;\n}\n\n/**\n * A key-value store implementation using SQLite\n *\n * This class provides a simple, persistent key-value storage solution\n * with support for namespaces, automatic cleanup, iteration, expiration, and JSON serialization.\n *\n * @example\n * ```typescript\n * const kv = new KV('data.db');\n *\n * // Store any JSON-serializable data\n * kv.set('user:123', { name: 'John', age: 30 });\n * kv.set('counter', 42);\n * kv.set('active', true);\n * kv.set('dates', [new Date(), new Date()]);\n *\n * // Use dot notation for nested properties\n * kv.set('user:123.name', 'John');\n * kv.set('user:123.settings.theme', 'dark');\n *\n * // Retrieve data\n * const user = kv.get('user:123'); // { name: 'John', age: 30, settings: { theme: 'dark' } }\n * const name = kv.get('user:123.name'); // 'John'\n * ```\n */\nexport class KV implements Disposable, AsyncDisposable {\n private db: DatabaseSync;\n private statements: Record<string, StatementSync> = {};\n\n /**\n * Creates a new KV store instance\n *\n * @param path - Database file path, buffer, URL, or existing DatabaseSync instance\n * @param options - Configuration options for the KV store\n */\n public constructor(\n path: string | Buffer | URL | DatabaseSync,\n private options: KvOptions = {\n enableWAL: true,\n namespace: 'commandkit_kv',\n },\n ) {\n this.db =\n path instanceof DatabaseSync\n ? path\n : new DatabaseSync(path, { open: true });\n\n if (options.enableWAL) {\n this.db.exec(/* sql */ `PRAGMA journal_mode = WAL;`);\n }\n\n const namespace = this.options.namespace ?? 'commandkit_kv';\n\n this.db.exec(/* sql */ `\n CREATE TABLE IF NOT EXISTS ${namespace} (\n key TEXT PRIMARY KEY,\n value TEXT,\n expires_at INTEGER\n )\n `);\n\n this.statements = {\n get: this.db.prepare(\n /* sql */ `SELECT value, expires_at FROM ${namespace} WHERE key = ?`,\n ),\n set: this.db.prepare(\n /* sql */ `INSERT OR REPLACE INTO ${namespace} (key, value, expires_at) VALUES (?, ?, ?)`,\n ),\n setex: this.db.prepare(\n /* sql */ `INSERT OR REPLACE INTO ${namespace} (key, value, expires_at) VALUES (?, ?, ?)`,\n ),\n delete: this.db.prepare(\n /* sql */ `DELETE FROM ${namespace} WHERE key = ?`,\n ),\n has: this.db.prepare(\n /* sql */ `SELECT COUNT(*) FROM ${namespace} WHERE key = ? AND (expires_at IS NULL OR expires_at > ?)`,\n ),\n keys: this.db.prepare(\n /* sql */ `SELECT key FROM ${namespace} WHERE expires_at IS NULL OR expires_at > ?`,\n ),\n values: this.db.prepare(\n /* sql */ `SELECT value FROM ${namespace} WHERE expires_at IS NULL OR expires_at > ?`,\n ),\n clear: this.db.prepare(/* sql */ `DELETE FROM ${namespace}`),\n count: this.db.prepare(\n /* sql */ `SELECT COUNT(*) FROM ${namespace} WHERE expires_at IS NULL OR expires_at > ?`,\n ),\n all: this.db.prepare(\n /* sql */ `SELECT key, value FROM ${namespace} WHERE expires_at IS NULL OR expires_at > ?`,\n ),\n expire: this.db.prepare(\n /* sql */ `UPDATE ${namespace} SET expires_at = ? WHERE key = ?`,\n ),\n ttl: this.db.prepare(\n /* sql */ `SELECT expires_at FROM ${namespace} WHERE key = ?`,\n ),\n namespaces: this.db.prepare(\n /* sql */ `SELECT name FROM sqlite_master WHERE type = 'table' AND name NOT LIKE 'sqlite_%'`,\n ),\n begin: this.db.prepare(/* sql */ `BEGIN TRANSACTION`),\n commit: this.db.prepare(/* sql */ `COMMIT`),\n rollback: this.db.prepare(/* sql */ `ROLLBACK`),\n };\n }\n\n /**\n * Gets the current timestamp in milliseconds\n */\n private getCurrentTime(): number {\n return Date.now();\n }\n\n /**\n * Checks if the database connection is open\n *\n * @returns `true` if the database is open, `false` otherwise\n */\n public isOpen(): boolean {\n return this.db.isOpen;\n }\n\n /**\n * Gets the underlying SQLite database instance\n *\n * @returns The DatabaseSync instance\n */\n public getDatabase(): DatabaseSync {\n return this.db;\n }\n\n /**\n * Closes the database connection\n */\n public close(): void {\n if (this.db.isOpen) this.db.close();\n }\n\n /**\n * Disposable implementation - closes the database when disposed\n */\n public [Symbol.dispose]() {\n this.close();\n }\n\n /**\n * AsyncDisposable implementation - closes the database when disposed\n */\n public async [Symbol.asyncDispose]() {\n this.close();\n }\n\n /**\n * Retrieves a value by key\n *\n * @param key - The key to retrieve (supports dot notation for nested properties)\n * @returns The value associated with the key, or `undefined` if not found or expired\n *\n * @example\n * ```typescript\n * // Store an object\n * kv.set('user:123', { name: 'John', age: 30, settings: { theme: 'dark' } });\n *\n * // Get the entire object\n * const user = kv.get('user:123');\n * // { name: 'John', age: 30, settings: { theme: 'dark' } }\n *\n * // Get nested properties using dot notation\n * const name = kv.get('user:123.name'); // 'John'\n * const theme = kv.get('user:123.settings.theme'); // 'dark'\n * ```\n */\n public get<T = any>(key: string): T | undefined {\n const result = this.statements.get.get(key);\n\n if (!result) return undefined;\n\n // Check if the key has expired\n if (\n result.expires_at &&\n Number(result.expires_at) <= this.getCurrentTime()\n ) {\n this.delete(key);\n return undefined;\n }\n\n const serialized = JSON.parse(result.value as string);\n const deserialized = deserializer(serialized);\n\n // Handle dot notation for nested properties\n if (key.includes('.')) {\n return getNestedValue(deserialized, key.split('.').slice(1).join('.'));\n }\n\n return deserialized;\n }\n\n /**\n * Sets a key-value pair\n *\n * @param key - The key to set (supports dot notation for nested properties)\n * @param value - The value to associate with the key (any JSON-serializable type)\n *\n * @example\n * ```typescript\n * // Store primitive values\n * kv.set('counter', 42);\n * kv.set('active', true);\n * kv.set('name', 'John');\n *\n * // Store objects\n * kv.set('user:123', { name: 'John', age: 30 });\n *\n * // Store arrays\n * kv.set('tags', ['javascript', 'typescript', 'sqlite']);\n *\n * // Store dates\n * kv.set('created', new Date());\n *\n * // Store maps and sets\n * kv.set('permissions', new Map([['admin', true], ['user', false]]));\n * kv.set('unique_ids', new Set([1, 2, 3, 4, 5]));\n *\n * // Use dot notation for nested properties\n * kv.set('user:123.settings.theme', 'dark');\n * kv.set('user:123.settings.notifications', true);\n * ```\n */\n public set(key: string, value: any): void {\n let serializedValue: string;\n\n if (key.includes('.')) {\n // Handle dot notation for nested properties\n const [baseKey, ...pathParts] = key.split('.');\n const path = pathParts.join('.');\n\n // Get existing value or create new object\n const existing = this.get(baseKey) || {};\n setNestedValue(existing, path, value);\n\n const serialized = serializer(existing);\n serializedValue = JSON.stringify(serialized);\n\n this.statements.set.run(baseKey, serializedValue, null);\n } else {\n const serialized = serializer(value);\n serializedValue = JSON.stringify(serialized);\n\n this.statements.set.run(key, serializedValue, null);\n }\n }\n\n /**\n * Sets a key-value pair with expiration\n *\n * @param key - The key to set (supports dot notation for nested properties)\n * @param value - The value to associate with the key (any JSON-serializable type)\n * @param ttl - Time to live in milliseconds\n *\n * @example\n * ```typescript\n * // Set with 1 hour expiration\n * kv.setex('session:123', { userId: 123, token: 'abc123' }, 60 * 60 * 1000);\n *\n * // Set with 5 minutes expiration\n * kv.setex('temp:data', { cached: true, timestamp: Date.now() }, 5 * 60 * 1000);\n *\n * // Use dot notation with expiration\n * kv.setex('user:123.temp_settings', { theme: 'light' }, 30 * 60 * 1000);\n * ```\n */\n public setex(key: string, value: any, ttl: number): void {\n const expiresAt = this.getCurrentTime() + ttl;\n let serializedValue: string;\n\n if (key.includes('.')) {\n // Handle dot notation for nested properties\n const [baseKey, ...pathParts] = key.split('.');\n const path = pathParts.join('.');\n\n // Get existing value or create new object\n const existing = this.get(baseKey) || {};\n setNestedValue(existing, path, value);\n\n const serialized = serializer(existing);\n serializedValue = JSON.stringify(serialized);\n\n this.statements.setex.run(baseKey, serializedValue, expiresAt);\n } else {\n const serialized = serializer(value);\n serializedValue = JSON.stringify(serialized);\n\n this.statements.setex.run(key, serializedValue, expiresAt);\n }\n }\n\n /**\n * Performs mathematical operations on numeric values in the KV store\n *\n * @param key - The key to perform math operation on (supports dot notation for nested properties)\n * @param operator - The mathematical operator to apply\n * @param value - The value to use in the operation\n * @returns The updated value after the mathematical operation\n * @throws Error if the existing value is not numeric or if the operation is invalid\n *\n * @example\n * ```typescript\n * // Initialize a counter\n * kv.set('counter', 10);\n *\n * // Increment by 5\n * const result1 = kv.math('counter', '+', 5); // 15\n *\n * // Multiply by 2\n * const result2 = kv.math('counter', '*', 2); // 30\n *\n * // Use with bigint\n * kv.set('big_counter', BigInt(1000));\n * const result3 = kv.math('big_counter', '+', BigInt(500)); // 1500n\n *\n * // Use with dot notation\n * kv.set('user:123', { score: 100, level: 5 });\n * const result4 = kv.math('user:123.score', '+', 50); // 150\n * ```\n */\n public math(\n key: string,\n operator: KvMathOperator,\n value: number | bigint,\n ): number | bigint {\n const existingValue = this.get(key);\n\n if (existingValue === undefined) {\n throw new Error(`Key '${key}' does not exist`);\n }\n\n if (\n typeof existingValue !== 'number' &&\n typeof existingValue !== 'bigint'\n ) {\n throw new Error(\n `Value at key '${key}' is not numeric. Expected number or bigint, got ${typeof existingValue}`,\n );\n }\n\n // Handle mixed number/bigint operations by converting to bigint\n const isBigIntOperation =\n typeof existingValue === 'bigint' || typeof value === 'bigint';\n\n const existing = isBigIntOperation\n ? typeof existingValue === 'bigint'\n ? existingValue\n : BigInt(existingValue)\n : (existingValue as number);\n const operand = isBigIntOperation\n ? typeof value === 'bigint'\n ? value\n : BigInt(value)\n : (value as number);\n\n let result: number | bigint;\n\n switch (operator) {\n case '+':\n result = (existing as any) + (operand as any);\n break;\n case '-':\n result = (existing as any) - (operand as any);\n break;\n case '*':\n result = (existing as any) * (operand as any);\n break;\n case '/':\n if (operand === 0 || operand === 0n) {\n throw new Error('Division by zero');\n }\n result = (existing as any) / (operand as any);\n break;\n case '^':\n if (isBigIntOperation && operand < 0n) {\n throw new Error(\n 'Exponentiation with negative exponent is not supported for bigint',\n );\n }\n result = (existing as any) ** (operand as any);\n break;\n case '%':\n if (operand === 0 || operand === 0n) {\n throw new Error('Modulo by zero');\n }\n result = (existing as any) % (operand as any);\n break;\n default:\n throw new Error(`Invalid operator: ${operator}`);\n }\n\n // Update the value in the store\n this.set(key, result);\n\n return result;\n }\n\n /**\n * Sets expiration for an existing key\n *\n * @param key - The key to set expiration for\n * @param ttl - Time to live in milliseconds\n * @returns `true` if the key exists and expiration was set, `false` otherwise\n *\n * @example\n * ```typescript\n * kv.set('user:123', { name: 'John', age: 30 });\n *\n * // Set 30 minute expiration\n * if (kv.expire('user:123', 30 * 60 * 1000)) {\n * console.log('Expiration set successfully');\n * }\n * ```\n */\n public expire(key: string, ttl: number): boolean {\n if (!this.has(key)) return false;\n\n const expiresAt = this.getCurrentTime() + ttl;\n this.statements.expire.run(expiresAt, key);\n return true;\n }\n\n /**\n * Gets the time to live for a key\n *\n * @param key - The key to check\n * @returns Time to live in milliseconds, or `-1` if the key doesn't exist, or `-2` if the key has no expiration\n *\n * @example\n * ```typescript\n * const ttl = kv.ttl('user:123');\n * if (ttl > 0) {\n * console.log(`Key expires in ${ttl}ms`);\n * } else if (ttl === -2) {\n * console.log('Key has no expiration');\n * } else {\n * console.log('Key does not exist');\n * }\n * ```\n */\n public ttl(key: string): number {\n const result = this.statements.ttl.get(key);\n\n if (!result) return -1; // Key doesn't exist\n\n if (!result.expires_at) return -2; // No expiration\n\n const remaining = Number(result.expires_at) - this.getCurrentTime();\n return remaining > 0 ? remaining : -1; // Expired or doesn't exist\n }\n\n /**\n * Deletes a key-value pair\n *\n * @param key - The key to delete\n *\n * @example\n * ```typescript\n * kv.delete('user:123');\n * kv.delete('user:123.settings.theme'); // Delete nested property\n * ```\n */\n public delete(key: string): void {\n this.statements.delete.run(key);\n }\n\n /**\n * Checks if a key exists and is not expired\n *\n * @param key - The key to check\n * @returns `true` if the key exists and is not expired, `false` otherwise\n *\n * @example\n * ```typescript\n * if (kv.has('user:123')) {\n * console.log('User exists and is not expired');\n * }\n *\n * if (kv.has('user:123.settings.theme')) {\n * console.log('Theme setting exists');\n * }\n * ```\n */\n public has(key: string): boolean {\n const result = this.statements.has.get(key, this.getCurrentTime());\n\n return (\n result?.count !== undefined &&\n result.count !== null &&\n Number(result.count) > 0\n );\n }\n\n /**\n * Gets all keys in the current namespace (excluding expired keys)\n *\n * @returns Array of all non-expired keys\n *\n * @example\n * ```typescript\n * const keys = kv.keys();\n * console.log('All keys:', keys);\n * ```\n */\n public keys(): string[] {\n const result = this.statements.keys.all(this.getCurrentTime());\n\n return result.map((row) => row.key as string);\n }\n\n /**\n * Gets all values in the current namespace (excluding expired keys)\n *\n * @returns Array of all non-expired values\n *\n * @example\n * ```typescript\n * const values = kv.values();\n * console.log('All values:', values);\n * ```\n */\n public values(): any[] {\n const result = this.statements.values.all(this.getCurrentTime());\n\n return result.map((row) => {\n const serialized = JSON.parse(row.value as string);\n return deserializer(serialized);\n });\n }\n\n /**\n * Gets the total number of key-value pairs in the current namespace (excluding expired keys)\n *\n * @returns The count of non-expired key-value pairs\n *\n * @example\n * ```typescript\n * const count = kv.count();\n * console.log(`Total entries: ${count}`);\n * ```\n */\n public count(): number {\n const result = this.statements.count.get(this.getCurrentTime());\n\n return Number(result?.count ?? 0);\n }\n\n /**\n * Removes all key-value pairs from the current namespace\n *\n * @example\n * ```typescript\n * kv.clear(); // Removes all entries in current namespace\n * ```\n */\n public clear(): void {\n this.statements.clear.run();\n }\n\n /**\n * Gets all key-value pairs as an object (excluding expired keys)\n *\n * @returns Object with all non-expired key-value pairs\n *\n * @example\n * ```typescript\n * const all = kv.all();\n * console.log('All entries:', all);\n * // Output: { 'key1': value1, 'key2': value2 }\n * ```\n */\n public all(): Record<string, any> {\n const result = this.statements.all.all(this.getCurrentTime());\n\n return Object.fromEntries(\n result.map((row) => {\n const serialized = JSON.parse(row.value as string);\n return [row.key as string, deserializer(serialized)];\n }),\n );\n }\n\n /**\n * Gets all available namespaces (tables) in the database\n *\n * @returns Array of namespace names\n *\n * @example\n * ```typescript\n * const namespaces = kv.namespaces();\n * console.log('Available namespaces:', namespaces);\n * ```\n */\n public namespaces(): string[] {\n const result = this.statements.namespaces.all();\n\n return result.map((row) => row.name as string);\n }\n\n /**\n * Gets the current namespace name\n *\n * @returns The current namespace string\n */\n public getCurrentNamespace(): string {\n return this.options.namespace ?? 'commandkit_kv';\n }\n\n /**\n * Creates a new KV instance with a different namespace\n *\n * @param namespace - The namespace to use for the new instance\n * @returns A new KV instance with the specified namespace\n *\n * @example\n * ```typescript\n * const userKv = kv.namespace('users');\n * const configKv = kv.namespace('config');\n *\n * userKv.set('123', { name: 'John', age: 30 });\n * configKv.set('theme', 'dark');\n * ```\n */\n public namespace(namespace: string): KV {\n return new KV(this.db, {\n enableWAL: this.options.enableWAL,\n namespace,\n });\n }\n\n /**\n * Iterator implementation for iterating over all non-expired key-value pairs\n *\n * @returns Iterator yielding [key, value] tuples\n *\n * @example\n * ```typescript\n * for (const [key, value] of kv) {\n * console.log(`${key}:`, value);\n * }\n *\n * // Or using spread operator\n * const entries = [...kv];\n * ```\n */\n public *[Symbol.iterator](): Iterator<[string, any]> {\n const result = this.statements.all.iterate(this.getCurrentTime());\n\n for (const row of result) {\n const serialized = JSON.parse(row.value as string);\n yield [row.key as string, deserializer(serialized)];\n }\n }\n\n /**\n * Executes a function within a transaction\n *\n * @param fn - Function to execute within the transaction (can be async)\n * @returns The result of the function\n *\n * @example\n * ```typescript\n * // Synchronous transaction\n * kv.transaction(() => {\n * kv.set('user:123', { name: 'John', age: 30 });\n * kv.set('user:456', { name: 'Jane', age: 25 });\n * // If any operation fails, all changes are rolled back\n * });\n *\n * // Async transaction\n * await kv.transaction(async () => {\n * kv.set('user:123', { name: 'John', age: 30 });\n * await someAsyncOperation();\n * kv.set('user:456', { name: 'Jane', age: 25 });\n * // If any operation fails, all changes are rolled back\n * });\n * ```\n */\n public async transaction<T>(fn: () => T | Promise<T>): Promise<T> {\n try {\n // Begin transaction\n this.statements.begin.run();\n\n // Execute the function\n const result = await fn();\n\n // Commit transaction\n this.statements.commit.run();\n\n return result;\n } catch (error) {\n // Rollback transaction on error\n this.statements.rollback.run();\n throw error;\n }\n }\n}\n\n/**\n * Opens a new KV instance\n *\n * @param path - Database file path, buffer, URL, or existing DatabaseSync instance\n * @param options - Configuration options for the KV store\n * @returns A new KV instance\n */\nexport function openKV(\n path: string | Buffer | URL | DatabaseSync = 'commandkit_kv.db',\n options: KvOptions = { enableWAL: true, namespace: 'commandkit_kv' },\n): KV {\n return new KV(path, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,IAAa,KAAb,MAAa,GAA0C;CACrD,AAAQ;CACR,AAAQ,aAA4C,EAAE;;;;;;;CAQtD,AAAO,YACP,MACA,AAAE,UAA2B;EAC3B,WAAW;EACX,WAAW;EACZ,EACD;EAJE;AAKA,OAAK,KACL,gBAAO,2BACP,OACA,IAAI,yBAAM,MAAa,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package/dist/kv/serde.d.ts
CHANGED
package/dist/kv/serde.js
CHANGED
|
@@ -4,80 +4,80 @@ const require_kv_constants = require('./constants.js');
|
|
|
4
4
|
//#region src/kv/serde.ts
|
|
5
5
|
function serializer(value) {
|
|
6
6
|
if (value === null) return {
|
|
7
|
-
t:
|
|
7
|
+
t: 6,
|
|
8
8
|
v: null
|
|
9
9
|
};
|
|
10
10
|
if (value === void 0) return {
|
|
11
|
-
t:
|
|
11
|
+
t: 7,
|
|
12
12
|
v: void 0
|
|
13
13
|
};
|
|
14
14
|
if (typeof value === "string") return {
|
|
15
|
-
t:
|
|
15
|
+
t: 0,
|
|
16
16
|
v: value
|
|
17
17
|
};
|
|
18
18
|
if (typeof value === "number") return {
|
|
19
|
-
t:
|
|
19
|
+
t: 1,
|
|
20
20
|
v: value
|
|
21
21
|
};
|
|
22
22
|
if (typeof value === "boolean") return {
|
|
23
|
-
t:
|
|
23
|
+
t: 2,
|
|
24
24
|
v: value
|
|
25
25
|
};
|
|
26
26
|
if (typeof value === "bigint") return {
|
|
27
|
-
t:
|
|
27
|
+
t: 5,
|
|
28
28
|
v: value.toString()
|
|
29
29
|
};
|
|
30
30
|
if (value instanceof Date) return {
|
|
31
|
-
t:
|
|
31
|
+
t: 4,
|
|
32
32
|
v: value.toISOString()
|
|
33
33
|
};
|
|
34
34
|
if (Array.isArray(value)) return {
|
|
35
|
-
t:
|
|
35
|
+
t: 8,
|
|
36
36
|
v: value
|
|
37
37
|
};
|
|
38
38
|
if (value instanceof Map) return {
|
|
39
|
-
t:
|
|
39
|
+
t: 9,
|
|
40
40
|
v: Array.from(value.entries())
|
|
41
41
|
};
|
|
42
42
|
if (value instanceof Set) return {
|
|
43
|
-
t:
|
|
43
|
+
t: 10,
|
|
44
44
|
v: Array.from(value)
|
|
45
45
|
};
|
|
46
46
|
if (Buffer.isBuffer(value)) return {
|
|
47
|
-
t:
|
|
47
|
+
t: 11,
|
|
48
48
|
v: value.toString("base64")
|
|
49
49
|
};
|
|
50
50
|
if (value instanceof RegExp) return {
|
|
51
|
-
t:
|
|
51
|
+
t: 12,
|
|
52
52
|
v: {
|
|
53
53
|
source: value.source,
|
|
54
54
|
flags: value.flags
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
if (typeof value === "object") return {
|
|
58
|
-
t:
|
|
58
|
+
t: 3,
|
|
59
59
|
v: value
|
|
60
60
|
};
|
|
61
61
|
return {
|
|
62
|
-
t:
|
|
62
|
+
t: 0,
|
|
63
63
|
v: String(value)
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
function deserializer(serialized) {
|
|
67
67
|
switch (serialized.t) {
|
|
68
|
-
case
|
|
69
|
-
case
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case
|
|
73
|
-
case
|
|
74
|
-
case
|
|
75
|
-
case
|
|
76
|
-
case
|
|
77
|
-
case
|
|
78
|
-
case
|
|
79
|
-
case
|
|
80
|
-
case
|
|
68
|
+
case 6: return null;
|
|
69
|
+
case 7: return;
|
|
70
|
+
case 0: return serialized.v;
|
|
71
|
+
case 1: return serialized.v;
|
|
72
|
+
case 2: return serialized.v;
|
|
73
|
+
case 5: return BigInt(serialized.v);
|
|
74
|
+
case 4: return new Date(serialized.v);
|
|
75
|
+
case 8: return serialized.v;
|
|
76
|
+
case 9: return new Map(serialized.v);
|
|
77
|
+
case 10: return new Set(serialized.v);
|
|
78
|
+
case 11: return Buffer.from(serialized.v, "base64");
|
|
79
|
+
case 12: return new RegExp(serialized.v.source, serialized.v.flags);
|
|
80
|
+
case 3: return serialized.v;
|
|
81
81
|
default: return serialized.v;
|
|
82
82
|
}
|
|
83
83
|
}
|
package/dist/kv/serde.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serde.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"serde.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LabelBuilder, LabelBuilderData } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/display/label.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The label properties for the label component.
|
|
@@ -25,4 +24,4 @@ interface LabelProps extends Omit<LabelBuilderData, 'component' | 'type'> {
|
|
|
25
24
|
declare function Label(props: LabelProps): LabelBuilder;
|
|
26
25
|
//#endregion
|
|
27
26
|
export { LabelProps as n, Label as t };
|
|
28
|
-
//# sourceMappingURL=label-
|
|
27
|
+
//# sourceMappingURL=label-DClaYktn.d.ts.map
|
package/dist/logger/Logger.d.ts
CHANGED
package/dist/logger/Logger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../commandkit-
|
|
2
|
+
const require_commandkit = require('../commandkit-DNbfLwyR.js');
|
|
3
3
|
|
|
4
4
|
exports.Logger = require_commandkit.Logger;
|
|
5
5
|
exports.createLogger = require_commandkit.createLogger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoopLogger.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"NoopLogger.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MediaGalleryBuilder, MediaGalleryItemBuilder } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/display/media-gallery.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Represents the properties for a media gallery component.
|
|
@@ -45,4 +44,4 @@ interface MediaGalleryItemProps {
|
|
|
45
44
|
declare function MediaGalleryItem(props: MediaGalleryItemProps): MediaGalleryItemBuilder;
|
|
46
45
|
//#endregion
|
|
47
46
|
export { MediaGalleryProps as i, MediaGalleryItem as n, MediaGalleryItemProps as r, MediaGallery as t };
|
|
48
|
-
//# sourceMappingURL=media-gallery-
|
|
47
|
+
//# sourceMappingURL=media-gallery-z2Snzz-u.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { G as
|
|
1
|
+
import { G as CompilerPlugin, J as isCompilerPlugin, K as PluginTransformParameters, q as TransformedResult } from "../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CompilerPlugin, PluginTransformParameters, TransformedResult, isCompilerPlugin };
|
|
@@ -9,7 +9,7 @@ var CompilerPlugin = class extends require_plugins_PluginCommon.PluginCommon {
|
|
|
9
9
|
/**
|
|
10
10
|
* The type of the plugin, which is Compiler.
|
|
11
11
|
*/
|
|
12
|
-
type =
|
|
12
|
+
type = "compiler";
|
|
13
13
|
/**
|
|
14
14
|
* Called when transformation is requested to this plugin
|
|
15
15
|
* @param params The parameters for the transformation
|
|
@@ -25,7 +25,7 @@ var CompilerPlugin = class extends require_plugins_PluginCommon.PluginCommon {
|
|
|
25
25
|
* @returns Boolean indicating whether the object is a CompilerPlugin.
|
|
26
26
|
*/
|
|
27
27
|
function isCompilerPlugin(plugin) {
|
|
28
|
-
return plugin instanceof CompilerPlugin || require_plugins_PluginCommon.isPlugin(plugin) && plugin.type ===
|
|
28
|
+
return plugin instanceof CompilerPlugin || require_plugins_PluginCommon.isPlugin(plugin) && plugin.type === "compiler";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompilerPlugin.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"CompilerPlugin.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as isPlugin, L as PluginCommon, R as PluginOptions, z as PluginType } from "../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { PluginCommon, PluginOptions, PluginType, isPlugin };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
2
|
let node_crypto = require("node:crypto");
|
|
4
3
|
|
|
5
4
|
//#region src/plugins/PluginCommon.ts
|
|
@@ -17,6 +16,7 @@ let PluginType = /* @__PURE__ */ function(PluginType) {
|
|
|
17
16
|
* Base class for CommandKit plugins.
|
|
18
17
|
*/
|
|
19
18
|
var PluginCommon = class {
|
|
19
|
+
options;
|
|
20
20
|
/**
|
|
21
21
|
* Unique identifier for the plugin instance.
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginCommon.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"PluginCommon.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as RuntimePlugin, et as isRuntimePlugin } from "../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { RuntimePlugin, isRuntimePlugin };
|
|
@@ -6,7 +6,7 @@ const require_plugins_PluginCommon = require('./PluginCommon.js');
|
|
|
6
6
|
* CommandKit plugin that runs at the runtime.
|
|
7
7
|
*/
|
|
8
8
|
var RuntimePlugin = class extends require_plugins_PluginCommon.PluginCommon {
|
|
9
|
-
type =
|
|
9
|
+
type = "runtime";
|
|
10
10
|
preload = /* @__PURE__ */ new Set();
|
|
11
11
|
/**
|
|
12
12
|
* Called before commands are loaded
|
|
@@ -116,7 +116,7 @@ var RuntimePlugin = class extends require_plugins_PluginCommon.PluginCommon {
|
|
|
116
116
|
async willEmitEvent(ctx, event) {}
|
|
117
117
|
};
|
|
118
118
|
function isRuntimePlugin(plugin) {
|
|
119
|
-
return plugin instanceof RuntimePlugin || require_plugins_PluginCommon.isPlugin(plugin) && plugin.type ===
|
|
119
|
+
return plugin instanceof RuntimePlugin || require_plugins_PluginCommon.isPlugin(plugin) && plugin.type === "runtime";
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimePlugin.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"RuntimePlugin.js","names":[],"sources":[],"mappings":""}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as RuntimePlugin, G as CompilerPlugin, H as CompilerPluginRuntime, I as CommandKitPluginRuntime, J as isCompilerPlugin, K as PluginTransformParameters, Q as TemplateHandler, U as CommonDirectiveTransformer, V as CommonPluginRuntime, W as CommonDirectiveTransformerOptions, X as CommandKitPlugin, Y as CommandKitEventDispatch, Z as MaybeFalsey, et as isRuntimePlugin, q as TransformedResult } from "../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin };
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../commandkit-
|
|
2
|
+
const require_commandkit = require('../commandkit-DNbfLwyR.js');
|
|
3
3
|
const require_plugins_CompilerPlugin = require('./CompilerPlugin.js');
|
|
4
4
|
const require_plugins_RuntimePlugin = require('./RuntimePlugin.js');
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as CommandKitPluginRuntime } from "../../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CommandKitPluginRuntime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../../commandkit-
|
|
2
|
+
const require_commandkit = require('../../commandkit-DNbfLwyR.js');
|
|
3
3
|
|
|
4
4
|
exports.CommandKitPluginRuntime = require_commandkit.CommandKitPluginRuntime;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as CompilerPluginRuntime } from "../../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CompilerPluginRuntime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../../commandkit-
|
|
2
|
+
const require_commandkit = require('../../commandkit-DNbfLwyR.js');
|
|
3
3
|
|
|
4
4
|
exports.CompilerPluginRuntime = require_commandkit.CompilerPluginRuntime;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as CommonDirectiveTransformer, W as CommonDirectiveTransformerOptions } from "../../../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CommonDirectiveTransformer, CommonDirectiveTransformerOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../../../commandkit-
|
|
2
|
+
const require_commandkit = require('../../../commandkit-DNbfLwyR.js');
|
|
3
3
|
|
|
4
4
|
exports.CommonDirectiveTransformer = require_commandkit.CommonDirectiveTransformer;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { G as
|
|
2
|
-
|
|
1
|
+
import { G as CompilerPlugin, K as PluginTransformParameters, Z as MaybeFalsey, q as TransformedResult } from "../../../analytics-engine-Bz1p7ud3.js";
|
|
3
2
|
//#region src/plugins/plugin-runtime/builtin/MacroPlugin.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Macro plugin enables the use of `"use macro"` directive in the code.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_commandkit = require('../../../commandkit-
|
|
2
|
+
const require_commandkit = require('../../../commandkit-DNbfLwyR.js');
|
|
3
3
|
|
|
4
4
|
exports.MacroPlugin = require_commandkit.MacroPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as CommonPluginRuntime } from "../../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CommonPluginRuntime };
|
package/dist/plugins/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as TemplateHandler, X as CommandKitPlugin, Y as CommandKitEventDispatch, Z as MaybeFalsey } from "../analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PollAnswerData, PollData, PollQuestionMedia } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/display/poll.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The poll properties for the poll component.
|
|
@@ -33,10 +32,7 @@ type PollChildrenType = PollChild<PollQuestionProps, PollChildType.Question> | P
|
|
|
33
32
|
* </Poll>;
|
|
34
33
|
* ```
|
|
35
34
|
*/
|
|
36
|
-
declare function Poll({
|
|
37
|
-
children,
|
|
38
|
-
...props
|
|
39
|
-
}: PollProps): PollData;
|
|
35
|
+
declare function Poll({ children, ...props }: PollProps): PollData;
|
|
40
36
|
/**
|
|
41
37
|
* The poll question properties for the poll question component.
|
|
42
38
|
*/
|
|
@@ -56,10 +52,7 @@ interface PollQuestionProps extends Omit<PollQuestionMedia, 'text'> {
|
|
|
56
52
|
* const question = <PollQuestion>What's your favorite programming language?</PollQuestion>;
|
|
57
53
|
* ```
|
|
58
54
|
*/
|
|
59
|
-
declare function PollQuestion({
|
|
60
|
-
children,
|
|
61
|
-
...props
|
|
62
|
-
}: PollQuestionProps): PollChild<PollQuestionMedia, PollChildType.Question>;
|
|
55
|
+
declare function PollQuestion({ children, ...props }: PollQuestionProps): PollChild<PollQuestionMedia, PollChildType.Question>;
|
|
63
56
|
/**
|
|
64
57
|
* The poll answer properties for the poll answer component.
|
|
65
58
|
*/
|
|
@@ -79,10 +72,7 @@ interface PollAnswerProps extends Omit<PollAnswerData, 'text'> {
|
|
|
79
72
|
* const answer = <PollAnswer emoji="🟦">TypeScript</PollAnswer>;
|
|
80
73
|
* ```
|
|
81
74
|
*/
|
|
82
|
-
declare function PollAnswer({
|
|
83
|
-
children,
|
|
84
|
-
...props
|
|
85
|
-
}: PollAnswerProps): PollChild<PollAnswerData, PollChildType.Answer>;
|
|
75
|
+
declare function PollAnswer({ children, ...props }: PollAnswerProps): PollChild<PollAnswerData, PollChildType.Answer>;
|
|
86
76
|
//#endregion
|
|
87
77
|
export { PollProps as a, PollChildrenType as i, PollAnswer as n, PollQuestion as o, PollAnswerProps as r, PollQuestionProps as s, Poll as t };
|
|
88
|
-
//# sourceMappingURL=poll-
|
|
78
|
+
//# sourceMappingURL=poll-D2QDStsw.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { t as MaybeArray } from "./types-ur7SvktF.js";
|
|
2
|
+
import { RadioGroupBuilder, RadioGroupComponentData, RadioGroupOptionBuilder } from "discord.js";
|
|
3
|
+
//#region src/components/interactive/radio/radio.d.ts
|
|
4
|
+
interface RadioGroupProps extends Omit<RadioGroupComponentData, 'type' | 'options'> {
|
|
5
|
+
id?: number;
|
|
6
|
+
customId: string;
|
|
7
|
+
children?: MaybeArray<RadioGroupOptionBuilder>;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function RadioGroup(props: RadioGroupProps): RadioGroupBuilder;
|
|
11
|
+
interface RadioGroupOptionProps {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
default?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function RadioGroupOption(props: RadioGroupOptionProps): RadioGroupOptionBuilder;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { RadioGroupProps as i, RadioGroupOption as n, RadioGroupOptionProps as r, RadioGroup as t };
|
|
20
|
+
//# sourceMappingURL=radio-CJH_N4lq.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonBuilder, SectionBuilder, TextDisplayBuilder, ThumbnailBuilder } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/display/section.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Represents the properties for a section component.
|
|
@@ -41,4 +40,4 @@ interface ThumbnailProps {
|
|
|
41
40
|
declare function Thumbnail(props: ThumbnailProps): ThumbnailBuilder;
|
|
42
41
|
//#endregion
|
|
43
42
|
export { ThumbnailProps as i, SectionProps as n, Thumbnail as r, Section as t };
|
|
44
|
-
//# sourceMappingURL=section-
|
|
43
|
+
//# sourceMappingURL=section-DrFBT5b-.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SeparatorBuilder, SeparatorComponentData } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/display/separator.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Represents the properties for a separator component.
|
|
@@ -18,4 +17,4 @@ interface SeparatorProps extends Omit<SeparatorComponentData, 'type'> {}
|
|
|
18
17
|
declare function Separator(props: SeparatorProps): SeparatorBuilder;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { SeparatorProps as n, Separator as t };
|
|
21
|
-
//# sourceMappingURL=separator-
|
|
20
|
+
//# sourceMappingURL=separator-BVm3w6yd.d.ts.map
|
|
@@ -35,4 +35,4 @@ declare function redirect(): never;
|
|
|
35
35
|
declare function stopEvents(): never;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { stopMiddlewares as i, rethrow as n, stopEvents as r, redirect as t };
|
|
38
|
-
//# sourceMappingURL=signals-
|
|
38
|
+
//# sourceMappingURL=signals-DRMDrCOn.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TextDisplayBuilder, TextDisplayComponentData } from "discord.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/display/text-display.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Represents a type that can be encoded as a string.
|
|
@@ -29,4 +28,4 @@ interface TextDisplayProps extends Omit<TextDisplayComponentData, 'type' | 'cont
|
|
|
29
28
|
declare function TextDisplay(props: TextDisplayProps): TextDisplayBuilder;
|
|
30
29
|
//#endregion
|
|
31
30
|
export { TextDisplay as n, TextDisplayProps as r, StringEncodable as t };
|
|
32
|
-
//# sourceMappingURL=text-display-
|
|
31
|
+
//# sourceMappingURL=text-display-BG0nNqy3.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _n as EventHandler, fn as CommandContext, gn as CommandMetadataFunction, hn as CommandMetadata, mn as CommandKitOptions, pn as CommandData } from "./analytics-engine-Bz1p7ud3.js";
|
|
2
2
|
export { CommandContext, CommandData, CommandKitOptions, CommandMetadata, CommandMetadataFunction, EventHandler };
|
package/dist/utils/colors.d.ts
CHANGED
package/dist/utils/colors.js
CHANGED
package/dist/utils/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"colors.js","names":[],"sources":[],"mappings":""}
|