Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
10ad4f9
docs: setup new guide structure
notunderctrl Jun 14, 2025
2a9789a
refactor: remove unnecessary script
twlite Jun 14, 2025
4bb30cd
fix: llms plugin url
twlite Jun 14, 2025
a93e247
docs: update versioning
notunderctrl Jun 14, 2025
8518f35
docs: add getting started and advanced setup guides
notunderctrl Jun 14, 2025
aaa1a2c
docs: update styling + add chat input commands docs
notunderctrl Jun 14, 2025
131f781
docs: fix wording
notunderctrl Jun 14, 2025
ba67067
Update apps/website/docs/guide.old/01-getting-started/02-setup-comman…
twlite Jun 15, 2025
f43d487
Update apps/website/docs/guide.old/01-getting-started/02-setup-comman…
twlite Jun 15, 2025
3d05352
update prettier config
notunderctrl Aug 14, 2025
45b1977
Merge branch 'main' into rewrite-docs
notunderctrl Aug 14, 2025
08e293f
prettier format
notunderctrl Aug 14, 2025
4258569
update gh actions node version to 24
notunderctrl Aug 14, 2025
b99d5de
fix tsdown entry
notunderctrl Aug 14, 2025
9376e1e
update workflow + lint script to check-types
notunderctrl Aug 14, 2025
fa300e1
fix tooltips
notunderctrl Aug 14, 2025
4884fbe
add options autocomplete docs
notunderctrl Aug 14, 2025
d338b45
fix autocomplete choices wording
notunderctrl Aug 14, 2025
90d9768
add context menu command docs
notunderctrl Aug 14, 2025
9770553
add message commands docs
notunderctrl Aug 14, 2025
2c4928c
fix message command function name
notunderctrl Aug 15, 2025
7fa4a77
document prefix resolver for message commands
notunderctrl Aug 15, 2025
8bb6057
fix prettier formatting
notunderctrl Aug 15, 2025
91f16e8
update prefix resolver example
notunderctrl Aug 15, 2025
28f8fac
document `after` function
notunderctrl Aug 15, 2025
252c289
document commands category dir
notunderctrl Aug 15, 2025
78aac43
fix: entry build pattern for tsdown
notunderctrl Aug 15, 2025
3fa55d9
fix turbo build output for docs
notunderctrl Aug 15, 2025
879ed6b
fix command-scoped middleware + document middlewares
notunderctrl Aug 15, 2025
a8f7488
document discord.js events
notunderctrl Aug 16, 2025
884cc0f
add class links
notunderctrl Aug 16, 2025
eff1535
document custom events
notunderctrl Aug 16, 2025
b612e03
fix typo
notunderctrl Aug 16, 2025
fe64394
document v0 -> v1 migration
notunderctrl Aug 16, 2025
f2a91e1
document sharding
notunderctrl Aug 16, 2025
bc27565
setup community plugins page structure
notunderctrl Aug 16, 2025
816bbae
document file naming conventions
notunderctrl Aug 16, 2025
f0838d6
custom events doc tweaks
notunderctrl Aug 16, 2025
35f712d
update utilities tone
notunderctrl Aug 16, 2025
d1f7008
document plugins + utilities
notunderctrl Aug 16, 2025
83ed02a
update utilities naming
notunderctrl Aug 16, 2025
acdaab8
document `@commandkit/cache`
notunderctrl Aug 16, 2025
75b5ae2
document `@commandkit/ai`
notunderctrl Aug 16, 2025
15f7a4d
document `stopEvents()` function
notunderctrl Aug 16, 2025
f34b146
document `@commandkit/analytics`
notunderctrl Aug 16, 2025
3c35878
document feature flags
notunderctrl Aug 16, 2025
1713bbd
document `@commandkit/devtools`
notunderctrl Aug 16, 2025
2025fbc
document `@commandkit/i18n`
notunderctrl Aug 16, 2025
dbcf3d7
document `@commandkit/legacy` and `@commandkit/redis`
notunderctrl Aug 16, 2025
0c3972a
document creating a plugin
notunderctrl Aug 16, 2025
5a093db
document jsx components
notunderctrl Aug 17, 2025
c89d7bd
docs: add ai plugin architecture diagram
twlite Aug 17, 2025
af979e9
Update apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx
twlite Aug 17, 2025
c91f62c
Merge pull request #467 from underctrl-io/twlite-patch-1
twlite Aug 17, 2025
85b5d4d
Merge branch 'main' of https://github.com/underctrl-io/commandkit int…
twlite Aug 18, 2025
e10de86
update contributing.md
notunderctrl Aug 18, 2025
1220a05
prettier format
notunderctrl Aug 18, 2025
c90197e
docs: remove oudated callout
notunderctrl Aug 18, 2025
7fc7c54
feat: add EventHandler type
notunderctrl Aug 18, 2025
4474a31
fix broken link + codeblock titles
notunderctrl Aug 18, 2025
8e750ed
docgen + add publish-rc gh action
notunderctrl Aug 18, 2025
a3049bb
update versioning
notunderctrl Aug 18, 2025
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
52 changes: 52 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Code Quality

on:
push:
branches:
- '**'
- '!renovate/*'

jobs:
check-types:
name: Check Types
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: pnpm/action-setup@v4
with:
version: '10.14.0'

- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Check TypeScript Types
run: pnpm dlx turbo check-types

prettier:
name: Prettier Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: pnpm/action-setup@v4
with:
version: '10.14.0'

- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Check Prettier Formatting
run: pnpm prettier:check
30 changes: 0 additions & 30 deletions .github/workflows/lint.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
registry-url: https://registry.npmjs.org

- name: Install dependencies
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/publish-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
registry-url: https://registry.npmjs.org

- name: Install dependencies
Expand All @@ -39,12 +39,30 @@ jobs:
"@commandkit/i18n:packages/i18n"
"@commandkit/devtools:packages/devtools"
"@commandkit/cache:packages/cache"
"@commandkit/analytics:packages/analytics"
"@commandkit/ai:packages/ai"
"@commandkit/queue:packages/queue"
"@commandkit/tasks:packages/tasks"
)

for entry in "${PACKAGES[@]}"; do
IFS=":" read -r name path <<< "$entry"
echo "Publishing $name..."
(pnpm --filter="$name" publish --no-git-checks --access public && echo "✅ Published $name") || echo "❌ Failed to publish $name"

VERSION=$(node -p "require('./$path/package.json').version")

if npm view "$name@$VERSION" version >/dev/null 2>&1; then
echo "📦 $name@$VERSION already exists on npm, skipping..."
else
if pnpm --filter="$name" publish --no-git-checks --access public; then
echo "✅ Published $name@$VERSION"
else
if npm view "$name@$VERSION" version >/dev/null 2>&1; then
echo "📦 $name@$VERSION was published by another process, skipping..."
else
echo "❌ Failed to publish $name@$VERSION"
exit 1
fi
fi
fi
done
104 changes: 104 additions & 0 deletions .github/workflows/publish-rc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Publish release candidate builds

on:
workflow_dispatch:
inputs:
rc_version:
description: 'Release candidate version number (e.g., 1 for -rc1, 2 for -rc2)'
required: true
type: string

jobs:
publish:
name: Publish release candidate builds
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
with:
version: '10.14.0'

- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Validate RC version input
run: |
if ! [[ "${{ github.event.inputs.rc_version }}" =~ ^[0-9]+$ ]]; then
echo "❌ RC version must be a positive integer"
exit 1
fi

- name: Update package versions
run: |
rc_suffix="-rc${{ github.event.inputs.rc_version }}"
echo "Adding suffix: $rc_suffix"

for dir in packages/*; do
[ -f "$dir/package.json" ] || continue
echo "Updating $dir/package.json..."
node -e "
const fs = require('fs');
const path = './$dir/package.json';
const pkg = require(path);
pkg.version += '$rc_suffix';
fs.writeFileSync(path, JSON.stringify(pkg, null, 2));
console.log('Updated ' + pkg.name + ' to version ' + pkg.version);
"
done

- name: Build packages
run: pnpm dlx turbo build --filter='./packages/*'

- name: Publish packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
PACKAGES=(
"commandkit:packages/commandkit"
"create-commandkit:packages/create-commandkit"
"@commandkit/legacy:packages/legacy"
"@commandkit/redis:packages/redis"
"@commandkit/i18n:packages/i18n"
"@commandkit/devtools:packages/devtools"
"@commandkit/cache:packages/cache"
"@commandkit/analytics:packages/analytics"
"@commandkit/ai:packages/ai"
"@commandkit/queue:packages/queue"
"@commandkit/tasks:packages/tasks"
)

for entry in "${PACKAGES[@]}"; do
IFS=":" read -r name path <<< "$entry"
echo "Publishing $name..."

VERSION=$(node -p "require('./$path/package.json').version")

if npm view "$name@$VERSION" version >/dev/null 2>&1; then
echo "📦 $name@$VERSION already exists on npm, skipping..."
else
if pnpm --filter="$name" publish --no-git-checks --access public --tag next; then
echo "✅ Published $name@$VERSION under 'next' tag"
else
if npm view "$name@$VERSION" version >/dev/null 2>&1; then
echo "📦 $name@$VERSION was published by another process, skipping..."
else
echo "❌ Failed to publish $name@$VERSION"
exit 1
fi
fi
fi
done

- name: Summary
run: |
echo "🎉 Release candidate build completed!"
echo "📋 Summary:"
echo " RC Version: ${{ github.event.inputs.rc_version }}"
echo " Tag: next"
echo " Suffix: -rc${{ github.event.inputs.rc_version }}"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules

**/website/docs/api-reference
**/website/docs/guide.old
**/website/versioned_docs
**/website/versioned_sidebars
.docusaurus
Expand Down
11 changes: 10 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,14 @@
"semi": true,
"endOfLine": "lf",
"useTabs": false,
"jsxSingleQuote": false
"jsxSingleQuote": false,
"overrides": [
{
"files": ["*.md", "*.mdx"],
"options": {
"proseWrap": "always",
"printWidth": 70
}
}
]
}
Loading