Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions apps/test-bot/commandkit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import { devtools } from '@commandkit/devtools';
import { cache } from '@commandkit/cache';
import { ai } from '@commandkit/ai';
import { tasks, setDriver } from '@commandkit/tasks';
import { BullMQDriver } from '@commandkit/tasks/bullmq';
import { SQLiteDriver } from '@commandkit/tasks/sqlite';
import { workflow } from '@commandkit/workflow';

noBuildOnly(() => {
setDriver(
new BullMQDriver({
maxRetriesPerRequest: null,
}),
);
setDriver(new SQLiteDriver());
// setDriver(
// new BullMQDriver({
// maxRetriesPerRequest: null,
// }),
// );
})();

export default defineConfig({
Expand Down
3 changes: 1 addition & 2 deletions apps/test-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
"@commandkit/workflow": "workspace:*",
"commandkit": "workspace:*",
"discord.js": "catalog:discordjs",
"dotenv": "^16.4.7",
"ms": "^2.1.3",
"workflow": "catalog:workflow",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/ms": "^2.1.0",
"cross-env": "^10.1.0",
"tsx": "^4.7.0"
"tsx": "^4.21.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ communicate through a well-defined event system.
Other official plugins include
[`@commandkit/i18n`](../05-official-plugins/05-commandkit-i18n.mdx)
for localization and
[`@commandkit/analytics`](../05-official-plugins/06-commandkit-analytics.mdx)
[`@commandkit/analytics`](../05-official-plugins/02-commandkit-analytics.mdx)
for usage tracking.

### AI-powered command execution
Expand Down
5 changes: 4 additions & 1 deletion apps/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const config: Config = {
url: 'https://commandkit.dev',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
Expand Down Expand Up @@ -208,6 +207,10 @@ const config: Config = {
],
markdown: {
mermaid: true,
hooks: {
onBrokenMarkdownLinks: 'warn',
onBrokenMarkdownImages: 'warn',
},
},
themes: ['@docusaurus/theme-mermaid'],
};
Expand Down
40 changes: 20 additions & 20 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@
"check-types": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.8.1",
"@docusaurus/plugin-sitemap": "3.8.1",
"@docusaurus/plugin-vercel-analytics": "3.8.1",
"@docusaurus/preset-classic": "3.8.1",
"@docusaurus/theme-common": "^3.8.1",
"@docusaurus/theme-mermaid": "^3.8.1",
"@docusaurus/theme-search-algolia": "3.8.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"@docusaurus/core": "3.9.2",
"@docusaurus/plugin-sitemap": "3.9.2",
"@docusaurus/plugin-vercel-analytics": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@docusaurus/theme-common": "^3.9.2",
"@docusaurus/theme-mermaid": "^3.9.2",
"@docusaurus/theme-search-algolia": "3.9.2",
"@mdx-js/react": "^3.1.1",
"clsx": "^2.1.1",
"gray-matter": "^4.0.3",
"lucide-react": "0.545.0",
"prism-react-renderer": "^2.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"lucide-react": "0.575.0",
"prism-react-renderer": "^2.4.1",
"react": "^19.2.4",
"react-dom": "^19.2.4"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.8.1",
"@docusaurus/remark-plugin-npm2yarn": "3.8.1",
"@docusaurus/tsconfig": "3.8.1",
"@docusaurus/types": "3.8.1",
"@tailwindcss/postcss": "^4.1.7",
"autoprefixer": "^10.4.20",
"postcss": "^8.5.3",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/remark-plugin-npm2yarn": "3.9.2",
"@docusaurus/tsconfig": "3.9.2",
"@docusaurus/types": "3.9.2",
"@tailwindcss/postcss": "^4.2.1",
"autoprefixer": "^10.4.27",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.16",
"typescript": "catalog:build"
},
Expand Down
102 changes: 40 additions & 62 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,82 +16,60 @@
"format": "prettier --experimental-cli --write . --ignore-path=.prettierignore"
},
"devDependencies": {
"@types/node": "^22.10.2",
"prettier": "^3.6.0",
"tsx": "^4.7.0",
"turbo": "^2.5.3"
"@types/node": "^25.3.2",
"prettier": "^3.8.1",
"tsx": "^4.21.0",
"turbo": "^2.8.12"
},
"packageManager": "pnpm@10.15.0",
"pnpm": {
"onlyBuiltDependencies": [
"@swc/core",
"@tailwindcss/oxide",
"core-js",
"core-js-pure"
],
"overrides": {
"undici@>=6.0.0 <6.21.1": ">=6.21.1",
"esbuild@<=0.24.2": ">=0.25.0",
"vite@>=6.0.0 <=6.0.8": ">=6.0.9",
"prismjs@<1.30.0": ">=1.30.0",
"@babel/runtime-corejs3@<7.26.10": ">=7.26.10",
"@babel/runtime@<7.26.10": ">=7.26.10",
"@babel/helpers@<7.26.10": ">=7.26.10",
"vite@>=6.2.0 <6.2.3": ">=6.2.3",
"vite@>=6.2.0 <6.2.4": ">=6.2.4",
"vite@>=6.2.0 <6.2.5": ">=6.2.5",
"image-size@>=1.1.0 <1.2.1": ">=1.2.1",
"estree-util-value-to-estree@<3.3.3": ">=3.3.3",
"vite@>=6.2.0 <6.2.6": ">=6.2.6",
"http-proxy-middleware@>=1.3.0 <2.0.9": ">=2.0.9",
"http-proxy-middleware@>=1.3.0 <2.0.8": ">=2.0.8",
"undici@>=6.0.0 <6.21.2": ">=6.21.2",
"webpack-dev-server@<=5.2.0": ">=5.2.1",
"on-headers@<1.1.0": ">=1.1.0",
"form-data@>=4.0.0 <4.0.4": ">=4.0.4",
"tmp@<=0.2.3": ">=0.2.4",
"mermaid@>=11.1.0 <11.10.0": ">=11.10.0",
"mermaid@>=11.0.0-alpha.1 <11.10.0": ">=11.10.0",
"devalue@<5.3.2": ">=5.3.2",
"vite@>=7.0.0 <=7.0.6": ">=7.0.7",
"vite@>=7.1.0 <=7.1.4": ">=7.1.5",
"axios@<1.12.0": ">=1.12.0",
"vite@>=7.0.0 <=7.0.7": ">=7.0.8",
"tar@=7.5.1": ">=7.5.2",
"js-yaml@<3.14.2": "^3.14.2",
"js-yaml@>=4.0.0 <4.1.1": ">=4.1.1",
"glob@>=10.2.0 <10.5.0": ">=10.5.0",
"glob@>=11.0.0 <11.1.0": ">=11.1.0",
"body-parser@>=2.2.0 <2.2.1": ">=2.2.1",
"node-forge@<1.3.2": ">=1.3.2",
"mdast-util-to-hast@>=13.0.0 <13.2.1": ">=13.2.1",
"jws@<3.2.3": ">=3.2.3",
"qs@<6.14.1": ">=6.14.1",
"hono@<4.11.4": ">=4.11.4",
"devalue@>=5.1.0 <5.6.2": ">=5.6.2",
"devalue@>=5.3.0 <=5.6.1": ">=5.6.2",
"tar@<=7.5.2": ">=7.5.3",
"tar@<=7.5.3": ">=7.5.4",
"lodash-es@>=4.0.0 <=4.17.22": ">=4.17.23",
"lodash@>=4.0.0 <=4.17.22": ">=4.17.23",
"seroval@<=1.4.0": ">=1.4.1",
"seroval@<1.4.1": ">=1.4.1",
"diff@<4.0.4": ">=4.0.4",
"diff@>=6.0.0 <8.0.3": ">=8.0.3",
"undici@<6.23.0": ">=6.23.0",
"hono@<4.11.7": ">=4.11.7",
"tar@<7.5.7": ">=7.5.7",
"next@>=15.6.0-canary.0 <16.1.5": ">=16.1.5",
"next@>=16.0.0-beta.0 <16.1.5": ">=16.1.5",
"next@>=16.1.0-canary.0 <16.1.5": ">=16.1.5",
"next@>=16.0.0-beta.0 <16.0.11": ">=16.0.11"
},
"onlyBuiltDependencies": [
"@swc/core",
"@tailwindcss/oxide",
"core-js",
"core-js-pure"
]
"@isaacs/brace-expansion@<=5.0.0": ">=5.0.1",
"webpack@>=5.49.0 <=5.104.0": ">=5.104.1",
"webpack@>=5.49.0 <5.104.0": ">=5.104.0",
"qs@<6.14.1": ">=6.14.1",
"fast-xml-parser@>=5.0.9 <=5.3.3": ">=5.3.4",
"qs@>=6.7.0 <=6.14.1": ">=6.14.2",
"axios@>=1.0.0 <=1.13.4": ">=1.13.5",
"tar@<=7.5.2": ">=7.5.3",
"hono@<4.11.10": ">=4.11.10",
"devalue@<=5.6.2": ">=5.6.3",
"tar@<7.5.8": ">=7.5.8",
"ajv@<6.14.0": ">=6.14.0",
"ajv@>=7.0.0-alpha.0 <8.18.0": ">=8.18.0",
"minimatch@<3.1.3": ">=3.1.3",
"minimatch@>=5.0.0 <5.1.7": ">=5.1.7",
"minimatch@>=9.0.0 <9.0.6": ">=9.0.6",
"minimatch@>=10.0.0 <10.2.1": ">=10.2.1",
"rollup@>=4.0.0 <4.59.0": ">=4.59.0",
"minimatch@>=5.0.0 <5.1.8": ">=5.1.8",
"minimatch@>=9.0.0 <9.0.7": ">=9.0.7",
"minimatch@>=10.0.0 <10.2.3": ">=10.2.3",
"minimatch@<3.1.4": ">=3.1.4",
"fast-xml-parser@<5.3.8": ">=5.3.8",
"fast-xml-parser@>=5.0.0 <5.3.5": ">=5.3.5",
"fast-xml-parser@>=5.0.0 <5.3.6": ">=5.3.6",
"serialize-javascript@<=7.0.2": ">=7.0.3"
}
},
"dependencies": {
"@turbo/gen": "^2.8.0",
"fs-extra": "^11.3.0",
"@turbo/gen": "^2.8.12",
"fs-extra": "^11.3.3",
"klaw-sync": "^7.0.0",
"typescript": "catalog:build",
"yaml": "^2.8.0"
"yaml": "^2.8.2"
}
}
2 changes: 1 addition & 1 deletion packages/ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "catalog:build"
},
"dependencies": {
"ai": "^6.0.79",
"ai": "^6.0.105",
"zod": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@umami/node": "^0.4.0",
"commandkit": "workspace:*",
"posthog-node": "^4.18.0",
"posthog-node": "^5.26.0",
"tsconfig": "workspace:*",
"typescript": "catalog:build"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"devDependencies": {
"@types/ms": "^2.0.0",
"commandkit": "workspace:*",
"ioredis": "^5.8.1",
"ioredis": "^5.10.0",
"tsconfig": "workspace:*",
"typescript": "catalog:build"
},
Expand Down
19 changes: 8 additions & 11 deletions packages/commandkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,26 +173,23 @@
"dependencies": {
"@rollup/plugin-json": "^6.1.0",
"chokidar": "^4.0.3",
"commander": "^13.0.0",
"directive-to-hof": "^0.0.2",
"dotenv": "^16.4.7",
"commander": "^14.0.3",
"directive-to-hof": "^0.0.3",
"ms": "^2.1.3",
"ora": "^8.0.1",
"ora": "^9.3.0",
"picocolors": "^1.1.1",
"rfdc": "^1.3.1",
"rimraf": "^6.0.0",
"rimraf": "^6.1.3",
"tsdown": "catalog:build",
"use-macro": "^1.1.0"
},
"devDependencies": {
"@types/ms": "^2.0.0",
"@types/node": "^22.10.2",
"@types/yargs": "^17.0.32",
"@types/ms": "^2.1.0",
"@types/node": "^25.3.2",
"discord.js": "catalog:discordjs",
"tsconfig": "workspace:*",
"tsx": "^4.19.2",
"tsx": "^4.21.0",
"typescript": "catalog:build",
"vitest": "^3.0.5"
"vitest": "^4.0.18"
},
"engines": {
"node": ">=24"
Expand Down
5 changes: 2 additions & 3 deletions packages/commandkit/src/cli/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ export async function bootstrapCommandkitCLI(
// imports are lazily loaded when the cli is used, instead of loading it with the lib itself
const { Command } = await import('commander');
const { bootstrapDevelopmentServer } = await import('./development');
const { bootstrapProductionServer, createProductionBuild } = await import(
'./production'
);
const { bootstrapProductionServer, createProductionBuild } =
await import('./production');
const { generateCommand, generateEvent } = await import('./generators');
const { version } = await import('../version');
const { showInformation } = await import('./information');
Expand Down
6 changes: 4 additions & 2 deletions packages/commandkit/src/components/display/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import { applyId } from './common';
/**
* Represents the properties for a container component.
*/
export interface ContainerProps
extends Omit<ContainerComponentData, 'type' | 'components' | 'accentColor'> {
export interface ContainerProps extends Omit<
ContainerComponentData,
'type' | 'components' | 'accentColor'
> {
accentColor?: ColorResolvable;
children?: ComponentBuilder[];
}
Expand Down
6 changes: 4 additions & 2 deletions packages/commandkit/src/components/display/label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import { applyId } from './common';
/**
* The label properties for the label component.
*/
export interface LabelProps
extends Omit<LabelBuilderData, 'component' | 'type'> {
export interface LabelProps extends Omit<
LabelBuilderData,
'component' | 'type'
> {
/**
* The component that will be wrapped by the label component.
*/
Expand Down
5 changes: 3 additions & 2 deletions packages/commandkit/src/components/display/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import {
/**
* The poll properties for the poll component.
*/
export interface PollProps
extends Partial<Omit<PollData, 'question' | 'answers'>> {
export interface PollProps extends Partial<
Omit<PollData, 'question' | 'answers'>
> {
/**
* The poll children components (question and answers).
*/
Expand Down
6 changes: 4 additions & 2 deletions packages/commandkit/src/components/display/text-display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export type StringEncodable = string | number | boolean;
* This interface extends the TextDisplayComponentData type from discord.js,
* excluding the 'type' and 'content' properties.
*/
export interface TextDisplayProps
extends Omit<TextDisplayComponentData, 'type' | 'content'> {
export interface TextDisplayProps extends Omit<
TextDisplayComponentData,
'type' | 'content'
> {
children?: StringEncodable | StringEncodable[];
content?: string;
}
Expand Down
6 changes: 4 additions & 2 deletions packages/commandkit/src/components/interactive/modal/Modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ export function ParagraphInput(
return TextInput({ ...props, style: TextInputStyle.Paragraph });
}

export interface FileUploadProps
extends Omit<FileUploadComponentData, 'type' | 'required'> {
export interface FileUploadProps extends Omit<
FileUploadComponentData,
'type' | 'required'
> {
id?: number;
required?: boolean;
}
Expand Down
Loading