Skip to content

Commit 673567c

Browse files
authored
Merge branch 'main' into RateLimitMinorFix
2 parents 642cec5 + 0237b51 commit 673567c

File tree

1,543 files changed

+137083
-17885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,543 files changed

+137083
-17885
lines changed

.changeset/changelog-config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.changeset/gentle-yaks-pay.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/public-emus-flow.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ body:
1616
options:
1717
- VSCode Extension
1818
- JetBrains Plugin
19+
- Kilo Code CLI
1920
default: 0
2021
validations:
2122
required: true

.github/copilot-instructions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ let j = 3
5353

5454
### Kilocode specific file
5555

56-
if the filename or directory name contains kilocode no marking with comments is required
56+
- if the filename or directory name contains kilocode no marking with comments is required
57+
- if the file lives inside of the jetbrains/ or cli/ root folder, no marking with comments is required
5758

5859
### New Files
5960

.github/workflows/build-cli.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build CLI package
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
workflow_dispatch:
8+
env:
9+
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
10+
NODE_VERSION: 20.19.2
11+
PNPM_VERSION: 10.8.1
12+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
13+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
14+
jobs:
15+
build-cli:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: ${{ env.PNPM_VERSION }}
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ env.NODE_VERSION }}
28+
cache: "pnpm"
29+
- name: Turbo cache setup
30+
uses: actions/cache@v4
31+
with:
32+
path: .turbo
33+
key: ${{ runner.os }}-turbo-${{ github.sha }}
34+
restore-keys: |
35+
${{ runner.os }}-turbo-
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Create .env file
39+
run: echo "KILOCODE_POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
40+
working-directory: cli
41+
- name: Build
42+
run: pnpm run cli:bundle
43+
shell: bash
44+
- name: NPM Pack
45+
run: npm pack
46+
working-directory: cli/dist
47+
- name: Upload artifact
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: tarball
51+
path: cli/dist/*.tgz

.github/workflows/code-qa.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ jobs:
161161
- uses: actions/setup-java@v4
162162
with:
163163
distribution: 'jetbrains'
164-
java-version: '17'
164+
java-version: '21'
165+
check-latest: false
166+
token: ${{ secrets.GITHUB_TOKEN }}
165167
- name: Install system dependencies
166168
run: |
167169
sudo apt-get update
@@ -182,4 +184,31 @@ jobs:
182184
run: pnpm install
183185
- name: Build
184186
run: pnpm run jetbrains:build
185-
shell: bash
187+
shell: bash
188+
189+
test-cli:
190+
runs-on: ubuntu-latest
191+
steps:
192+
- name: Checkout code
193+
uses: actions/checkout@v4
194+
- name: Install pnpm
195+
uses: pnpm/action-setup@v4
196+
with:
197+
version: ${{ env.PNPM_VERSION }}
198+
- name: Setup Node.js
199+
uses: actions/setup-node@v4
200+
with:
201+
node-version: ${{ env.NODE_VERSION }}
202+
cache: "pnpm"
203+
- name: Turbo cache setup
204+
uses: actions/cache@v4
205+
with:
206+
path: .turbo
207+
key: ${{ runner.os }}-turbo-${{ github.sha }}
208+
restore-keys: |
209+
${{ runner.os }}-turbo-
210+
- name: Install dependencies
211+
run: pnpm install
212+
- name: Run unit tests
213+
working-directory: cli
214+
run: pnpm test

.github/workflows/marketplace-publish.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
echo "Successfully created GitHub Release v${current_package_version}"
109109
110110
publish-jetbrains:
111+
needs: publish-extension
111112
runs-on: ubuntu-latest
112113
if: >
113114
( github.event_name == 'pull_request' &&
@@ -132,7 +133,9 @@ jobs:
132133
- uses: actions/setup-java@v4
133134
with:
134135
distribution: "jetbrains"
135-
java-version: "17"
136+
java-version: "21"
137+
check-latest: false
138+
token: ${{ secrets.GITHUB_TOKEN }}
136139
- name: Install system dependencies
137140
run: |
138141
sudo apt-get update
@@ -159,18 +162,26 @@ jobs:
159162
- name: Get bundle name
160163
id: get_bundle_name
161164
run: echo "BUNDLE_NAME=$(node jetbrains/plugin/scripts/get_bundle_name.js)" >> $GITHUB_ENV
165+
- name: Attach to GitHub Release
166+
env:
167+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
168+
run: |
169+
current_package_version=$(node -p "require('./src/package.json').version")
170+
gh release upload "v${current_package_version}" \
171+
"jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}#JetBrains Plugin"
172+
echo "Successfully attached JetBrains plugin to GitHub Release v${current_package_version}"
162173
- name: Upload artifact
163174
uses: actions/upload-artifact@v4
164175
with:
165176
name: ${{ env.BUNDLE_NAME }}
166177
path: jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}
167178
- name: JetBrains Marketplace Publisher
168179
run: |
169-
curl \
170-
-X POST \
171-
-H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
172-
-F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
173-
-F "pluginId=28350" \
174-
-F "channel=stable" \
175-
-F "isHidden=false" \
176-
https://plugins.jetbrains.com/plugin/uploadPlugin
180+
curl \
181+
-X POST \
182+
-H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
183+
-F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
184+
-F "pluginId=28350" \
185+
-F "channel=stable" \
186+
-F "isHidden=false" \
187+
https://plugins.jetbrains.com/plugin/uploadPlugin

.github/workflows/storybook-playwright-snapshot.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
name: Storybook Playwright Snapshot
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
inputs:
10+
should_run:
11+
description: "Run the full Storybook Playwright snapshot workflow"
12+
required: false
13+
default: false
14+
type: boolean
715

816
# Cancel in-progress jobs when new workflow is triggered
917
concurrency:
@@ -23,6 +31,13 @@ jobs:
2331
storybook-playwright-snapshot:
2432
runs-on: ubuntu-latest
2533
timeout-minutes: 45
34+
if: |
35+
${{
36+
inputs.should_run == true ||
37+
contains(github.event.head_commit.message, '[storybook]') ||
38+
contains(github.event.head_commit.message, '[chromatic]') ||
39+
contains(github.event.head_commit.message, '[screnshot')
40+
}}
2641
2742
steps:
2843
- name: Checkout repository

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ qdrant_storage/
6565

6666
# allow multiple local clones with different workspaces with different colors
6767
# to make it easier to work on features in parallel
68-
*.code-workspace
68+
*.code-workspace

0 commit comments

Comments
 (0)