diff --git a/.github/actions/setup-bun/action.yml b/.github/actions/setup-bun/action.yml index cba04facce..7584334a7b 100644 --- a/.github/actions/setup-bun/action.yml +++ b/.github/actions/setup-bun/action.yml @@ -3,20 +3,17 @@ description: "Setup Bun with caching and install dependencies" runs: using: "composite" steps: + - name: Mount Bun Cache + uses: useblacksmith/stickydisk@v1 + with: + key: ${{ github.repository }}-bun-cache + path: ~/.bun + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: bun-version-file: package.json - - name: Cache ~/.bun - id: cache-bun - uses: actions/cache@v4 - with: - path: ~/.bun - key: ${{ runner.os }}-bun-${{ hashFiles('package.json') }}-${{ hashFiles('bun.lockb', 'bun.lock') }} - restore-keys: | - ${{ runner.os }}-bun-${{ hashFiles('package.json') }}- - - name: Install dependencies run: bun install shell: bash diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index af7b608c90..66d6526c75 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -18,7 +18,7 @@ jobs: runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: write - pull-requests: read + pull-requests: write steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.prettierignore b/.prettierignore index aa3a7ce238..59c8662092 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -sst-env.d.ts \ No newline at end of file +sst-env.d.ts +packages/web/src/content/docs/** \ No newline at end of file diff --git a/bun.lock b/bun.lock index 2dfb456e8b..1d13af50be 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,6 @@ "devDependencies": { "@actions/artifact": "5.0.1", "@tsconfig/bun": "catalog:", - "baseline-browser-mapping": "2.9.18", "husky": "9.1.7", "prettier": "3.6.2", "semver": "^7.6.0", @@ -26,7 +25,6 @@ "name": "@opencode-ai/app", "version": "1.0.14", "dependencies": { - "@kilocode/kilo-i18n": "workspace:*", "@kilocode/sdk": "workspace:*", "@kobalte/core": "catalog:", "@opencode-ai/ui": "workspace:*", @@ -172,7 +170,7 @@ }, "packages/console/resource": { "name": "@opencode-ai/console-resource", - "version": "1.0.13", + "version": "1.0.14", "dependencies": { "@cloudflare/workers-types": "catalog:", }, @@ -444,7 +442,7 @@ }, "packages/script": { "name": "@opencode-ai/script", - "version": "1.0.13", + "version": "1.0.14", "devDependencies": { "@types/bun": "catalog:", }, diff --git a/github/package.json b/github/package.json index 46588b9b4c..f263ee2768 100644 --- a/github/package.json +++ b/github/package.json @@ -17,5 +17,5 @@ "@octokit/rest": "catalog:", "@kilocode/sdk": "workspace:*" }, - "version": "1.0.13" + "version": "1.0.14" } diff --git a/package.json b/package.json index e11eff3f98..401114222a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "name": "@kilocode/cli", + "name": "opencode", "description": "AI-powered development tool", "private": true, "type": "module", @@ -65,7 +65,6 @@ "devDependencies": { "@actions/artifact": "5.0.1", "@tsconfig/bun": "catalog:", - "baseline-browser-mapping": "2.9.18", "husky": "9.1.7", "prettier": "3.6.2", "semver": "^7.6.0", @@ -81,7 +80,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/Kilo-Org/kilo" + "url": "https://github.com/anomalyco/opencode" }, "license": "MIT", "prettier": { @@ -102,5 +101,5 @@ "patchedDependencies": { "ghostty-web@0.3.0": "patches/ghostty-web@0.3.0.patch" }, - "version": "1.0.13" + "version": "1.0.14" } diff --git a/packages/app/e2e/thinking-level.spec.ts b/packages/app/e2e/thinking-level.spec.ts new file mode 100644 index 0000000000..564ef3c1f3 --- /dev/null +++ b/packages/app/e2e/thinking-level.spec.ts @@ -0,0 +1,25 @@ +import { test, expect } from "./fixtures" +import { modelVariantCycleSelector } from "./utils" + +test("smoke model variant cycle updates label", async ({ page, gotoSession }) => { + await gotoSession() + + await page.addStyleTag({ + content: `${modelVariantCycleSelector} { display: inline-block !important; }`, + }) + + const button = page.locator(modelVariantCycleSelector) + const exists = (await button.count()) > 0 + test.skip(!exists, "current model has no variants") + if (!exists) return + + await expect(button).toBeVisible() + + const before = (await button.innerText()).trim() + await button.click() + await expect(button).not.toHaveText(before) + + const after = (await button.innerText()).trim() + await button.click() + await expect(button).not.toHaveText(after) +}) diff --git a/packages/app/e2e/utils.ts b/packages/app/e2e/utils.ts index 7657003539..d47fdb7e6b 100644 --- a/packages/app/e2e/utils.ts +++ b/packages/app/e2e/utils.ts @@ -12,6 +12,7 @@ export const terminalToggleKey = "Control+Backquote" export const promptSelector = '[data-component="prompt-input"]' export const terminalSelector = '[data-component="terminal"]' +export const modelVariantCycleSelector = '[data-action="model-variant-cycle"]' export function createSdk(directory?: string) { return createOpencodeClient({ baseUrl: serverUrl, directory, throwOnError: true }) diff --git a/packages/app/package.json b/packages/app/package.json index 365878e952..9d27059cd7 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -36,7 +36,6 @@ }, "dependencies": { "@kobalte/core": "catalog:", - "@kilocode/kilo-i18n": "workspace:*", "@kilocode/sdk": "workspace:*", "@opencode-ai/ui": "workspace:*", "@opencode-ai/util": "workspace:*", diff --git a/packages/app/src/components/dialog-select-model-unpaid.tsx b/packages/app/src/components/dialog-select-model-unpaid.tsx index 78c169777e..5914fe28bf 100644 --- a/packages/app/src/components/dialog-select-model-unpaid.tsx +++ b/packages/app/src/components/dialog-select-model-unpaid.tsx @@ -34,11 +34,8 @@ export const DialogSelectModelUnpaid: Component = () => { }) return ( - -
+ +
{language.t("dialog.model.unpaid.freeModels.title")}
{ )}
-
+
{language.t("dialog.model.unpaid.addMore.title")}
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 15bc514019..091b433859 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -1953,6 +1953,7 @@ export const PromptInput: Component = (props) => { keybind={command.keybind("model.variant.cycle")} >