Skip to content

Commit ebcf745

Browse files
authored
Merge branch 'main' into chinese-docs-translation-sync
2 parents be82fef + b857bc0 commit ebcf745

File tree

2,114 files changed

+174065
-30749
lines changed

Some content is hidden

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

2,114 files changed

+174065
-30749
lines changed

.changeset/brave-beers-clean.md

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

.changeset/changelog-config.js

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

.changeset/late-eggs-enter.md

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

.changeset/public-cloths-shine.md

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

.changeset/wet-poems-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Fix @ mentions when editing messages

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 74 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,81 @@ name: Bug Report
22
description: File a bug report
33
type: "Bug"
44
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for contributing! Please search similar issues first to see if your bug is already known:
9+
https://github.com/Kilo-Org/kilocode/issues
10+
11+
- type: dropdown
12+
id: plugin-type
13+
attributes:
14+
label: Plugin Type
15+
description: Which plugin are you reporting this bug for?
16+
options:
17+
- VSCode Extension
18+
- JetBrains Plugin
19+
- Kilo Code CLI
20+
default: 0
21+
validations:
22+
required: true
23+
24+
- type: input
25+
id: version
26+
attributes:
27+
label: App Version
28+
description: What version of Kilo Code are you using? (e.g., v3.3.1)
29+
validations:
30+
required: true
31+
532
- type: textarea
633
id: description
734
attributes:
835
label: Description
9-
description: |
10-
Which app version are you using (e.g. v3.3.1)?
11-
Which API Provider are you using (e.g. Kilo, OpenRouter, Anthropic)?
12-
Which Model are you using (e.g. Claude 3.7 Sonnet)?
13-
Steps to reproduce?
14-
Relevant API request output?
15-
Additional context?
16-
Screenshots?
36+
description: Describe what went wrong. Please include as much information as possible.
37+
validations:
38+
required: true
39+
40+
- type: textarea
41+
id: steps
42+
attributes:
43+
label: Reproduction steps
44+
description: How can we trigger this bug? Please provider clear steps so we can reproduce.
45+
placeholder: |
46+
1.
47+
2.
48+
3.
49+
validations:
50+
required: true
51+
52+
- type: input
53+
id: provider
54+
attributes:
55+
label: Provider
56+
description: What provider were you using when the issue occurred?
57+
placeholder: "e.g., Kilo Code"
58+
validations:
59+
required: false
60+
61+
- type: input
62+
id: model
63+
attributes:
64+
label: Model
65+
description: What model were you using when the issue occurred?
66+
placeholder: "e.g., Claude Sonnet 4"
67+
validations:
68+
required: false
69+
70+
- type: textarea
71+
id: system-info
72+
attributes:
73+
label: System Information
74+
description: What operating system and hardware are you using?
75+
placeholder: |
76+
e.g.
77+
OS: Windows 11
78+
CPU: Intel Core i7-11700K
79+
GPU: NVIDIA GeForce RTX 3070
80+
RAM: 32GB DDR4
81+
validations:
82+
required: false

.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: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,19 @@ jobs:
108108
echo "Successfully created GitHub Release v${current_package_version}"
109109
110110
publish-jetbrains:
111+
needs: publish-extension
111112
runs-on: ubuntu-latest
113+
if: >
114+
( github.event_name == 'pull_request' &&
115+
github.event.pull_request.base.ref == 'main' &&
116+
contains(github.event.pull_request.title, 'Changeset version bump') ) ||
117+
github.event_name == 'workflow_dispatch'
112118
steps:
113119
- name: Checkout code
114120
uses: actions/checkout@v4
115121
with:
116-
submodules: recursive
117-
lfs: true
122+
submodules: recursive
123+
lfs: true
118124
- name: Install pnpm
119125
uses: pnpm/action-setup@v4
120126
with:
@@ -126,17 +132,19 @@ jobs:
126132
cache: "pnpm"
127133
- uses: actions/setup-java@v4
128134
with:
129-
distribution: 'jetbrains'
130-
java-version: '17'
135+
distribution: "jetbrains"
136+
java-version: "21"
137+
check-latest: false
138+
token: ${{ secrets.GITHUB_TOKEN }}
131139
- name: Install system dependencies
132140
run: |
133-
sudo apt-get update
134-
sudo apt-get install -y \
135-
libx11-dev \
136-
libxkbfile-dev \
137-
pkg-config \
138-
build-essential \
139-
python3
141+
sudo apt-get update
142+
sudo apt-get install -y \
143+
libx11-dev \
144+
libxkbfile-dev \
145+
pkg-config \
146+
build-essential \
147+
python3
140148
- name: Turbo cache setup
141149
uses: actions/cache@v4
142150
with:
@@ -146,24 +154,34 @@ jobs:
146154
${{ runner.os }}-turbo-
147155
- name: Install dependencies
148156
run: pnpm install
157+
- name: Create .env file
158+
run: echo "KILOCODE_POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
149159
- name: Build
150160
run: pnpm run jetbrains:bundle
151161
shell: bash
152162
- name: Get bundle name
153163
id: get_bundle_name
154164
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}"
155173
- name: Upload artifact
156174
uses: actions/upload-artifact@v4
157175
with:
158176
name: ${{ env.BUNDLE_NAME }}
159177
path: jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}
160178
- name: JetBrains Marketplace Publisher
161-
run: |
162-
curl \
163-
-X POST \
164-
-H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
165-
-F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
166-
-F "pluginId=28350" \
167-
-F "channel=stable" \
168-
-F "isHidden=false" \
169-
https://plugins.jetbrains.com/plugin/uploadPlugin
179+
run: |
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

0 commit comments

Comments
 (0)