From 627eaacb1165552b8f207ff7a5e3ea87017b6fe6 Mon Sep 17 00:00:00 2001 From: cte Date: Thu, 29 May 2025 10:10:30 -0700 Subject: [PATCH] Rename "Roo Code Nightly" to "Roo Code Next" --- .../{nightly-publish.yml => next-publish.yml} | 12 ++++++------ apps/{vscode-nightly => vscode-next}/.gitignore | 0 apps/{vscode-nightly => vscode-next}/esbuild.mjs | 12 ++++++------ apps/vscode-next/package.json | 14 ++++++++++++++ .../package.next.json} | 2 +- apps/vscode-next/package.nls.next.json | 7 +++++++ apps/vscode-nightly/package.json | 14 -------------- apps/vscode-nightly/package.nls.nightly.json | 7 ------- package.json | 4 ++-- packages/build/src/__tests__/index.test.ts | 8 ++++---- pnpm-lock.yaml | 2 +- .../icons/{icon-nightly.png => icon-next.png} | Bin turbo.json | 8 ++++---- webview-ui/package.json | 2 +- webview-ui/vite.config.ts | 14 +++++++------- 15 files changed, 53 insertions(+), 53 deletions(-) rename .github/workflows/{nightly-publish.yml => next-publish.yml} (87%) rename apps/{vscode-nightly => vscode-next}/.gitignore (100%) rename apps/{vscode-nightly => vscode-next}/esbuild.mjs (93%) create mode 100644 apps/vscode-next/package.json rename apps/{vscode-nightly/package.nightly.json => vscode-next/package.next.json} (62%) create mode 100644 apps/vscode-next/package.nls.next.json delete mode 100644 apps/vscode-nightly/package.json delete mode 100644 apps/vscode-nightly/package.nls.nightly.json rename src/assets/icons/{icon-nightly.png => icon-next.png} (100%) diff --git a/.github/workflows/nightly-publish.yml b/.github/workflows/next-publish.yml similarity index 87% rename from .github/workflows/nightly-publish.yml rename to .github/workflows/next-publish.yml index 14bb0212b1..38665cf9cb 100644 --- a/.github/workflows/nightly-publish.yml +++ b/.github/workflows/next-publish.yml @@ -1,4 +1,4 @@ -name: Nightly Publish +name: Publish Roo Code Next on: workflow_run: @@ -13,7 +13,7 @@ env: PNPM_VERSION: 10.8.1 jobs: - publish-nightly: + publish-next: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} @@ -36,7 +36,7 @@ jobs: cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Forge numeric Nightly version + - name: Forge numeric version id: version env: RUN_NUMBER: ${{ github.run_number }} @@ -48,15 +48,15 @@ jobs: node <<'EOF' const fs = require('fs'); const path = require('path'); - const pkgPath = path.join(__dirname, 'apps', 'vscode-nightly', 'package.nightly.json'); + const pkgPath = path.join(__dirname, 'apps', 'vscode-next', 'package.next.json'); const pkg = JSON.parse(fs.readFileSync(pkgPath,'utf8')); const [maj, min] = pkg.version.split('.'); pkg.version = `${maj}.${min}.${process.env.VERSION_NUMBER}`; fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2)); - console.log(`🔖 Nightly version set to ${pkg.version}`); + console.log(`🔖 Version set to ${pkg.version}`); EOF - name: Build VSIX - run: pnpm build:nightly # Produces bin/roo-code-nightly-0.0.[count].vsix + run: pnpm build:next # Produces bin/roo-code-next-0.0.[count].vsix - name: Publish to VS Code Marketplace env: VSCE_PAT: ${{ secrets.VSCE_PAT }} diff --git a/apps/vscode-nightly/.gitignore b/apps/vscode-next/.gitignore similarity index 100% rename from apps/vscode-nightly/.gitignore rename to apps/vscode-next/.gitignore diff --git a/apps/vscode-nightly/esbuild.mjs b/apps/vscode-next/esbuild.mjs similarity index 93% rename from apps/vscode-nightly/esbuild.mjs rename to apps/vscode-next/esbuild.mjs index d4302fc100..71f23d3629 100644 --- a/apps/vscode-nightly/esbuild.mjs +++ b/apps/vscode-next/esbuild.mjs @@ -9,12 +9,12 @@ const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) async function main() { - const name = "extension-nightly" + const name = "extension-next" const production = process.argv.includes("--production") const minify = production const sourcemap = !production - const overrideJson = JSON.parse(fs.readFileSync(path.join(__dirname, "package.nightly.json"), "utf8")) + const overrideJson = JSON.parse(fs.readFileSync(path.join(__dirname, "package.next.json"), "utf8")) console.log(`[${name}] name: ${overrideJson.name}`) console.log(`[${name}] version: ${overrideJson.version}`) @@ -35,7 +35,7 @@ async function main() { define: { "process.env.PKG_NAME": '"roo-code-nightly"', "process.env.PKG_VERSION": `"${overrideJson.version}"`, - "process.env.PKG_OUTPUT_CHANNEL": '"Roo-Code-Nightly"', + "process.env.PKG_OUTPUT_CHANNEL": '"Roo-Code-Next"', ...(gitSha ? { "process.env.PKG_SHA": `"${gitSha}"` } : {}), }, } @@ -108,13 +108,13 @@ async function main() { const nlsPkg = JSON.parse(fs.readFileSync(path.join(srcDir, "package.nls.json"), "utf8")) - const nlsNightlyPkg = JSON.parse( - fs.readFileSync(path.join(__dirname, "package.nls.nightly.json"), "utf8"), + const nlsNextPkg = JSON.parse( + fs.readFileSync(path.join(__dirname, "package.nls.next.json"), "utf8"), ) fs.writeFileSync( path.join(buildDir, "package.nls.json"), - JSON.stringify({ ...nlsPkg, ...nlsNightlyPkg }, null, 2), + JSON.stringify({ ...nlsPkg, ...nlsNextPkg }, null, 2), ) console.log(`[generatePackageJson] Generated package.nls.json`) diff --git a/apps/vscode-next/package.json b/apps/vscode-next/package.json new file mode 100644 index 0000000000..565f3478f0 --- /dev/null +++ b/apps/vscode-next/package.json @@ -0,0 +1,14 @@ +{ + "name": "@roo-code/vscode-next", + "description": "'Next' build for the Roo Code VSCode extension.", + "private": true, + "packageManager": "pnpm@10.8.1", + "scripts": { + "bundle:next": "node esbuild.mjs", + "vsix:next": "cd build && mkdirp ../../../bin && npx vsce package --no-dependencies --out ../../../bin", + "clean": "rimraf build .turbo" + }, + "devDependencies": { + "@roo-code/build": "workspace:^" + } +} diff --git a/apps/vscode-nightly/package.nightly.json b/apps/vscode-next/package.next.json similarity index 62% rename from apps/vscode-nightly/package.nightly.json rename to apps/vscode-next/package.next.json index 94bc2c8b67..6b60e45cce 100644 --- a/apps/vscode-nightly/package.nightly.json +++ b/apps/vscode-next/package.next.json @@ -1,6 +1,6 @@ { "name": "roo-code-nightly", "version": "0.0.1", - "icon": "assets/icons/icon-nightly.png", + "icon": "assets/icons/icon-next.png", "scripts": {} } diff --git a/apps/vscode-next/package.nls.next.json b/apps/vscode-next/package.nls.next.json new file mode 100644 index 0000000000..0a393c6e35 --- /dev/null +++ b/apps/vscode-next/package.nls.next.json @@ -0,0 +1,7 @@ +{ + "extension.displayName": "Roo Code Next", + "views.contextMenu.label": "Roo Code Next", + "views.terminalMenu.label": "Roo Code Next", + "views.activitybar.title": "Roo Code Next", + "configuration.title": "Roo Code Next" +} diff --git a/apps/vscode-nightly/package.json b/apps/vscode-nightly/package.json deleted file mode 100644 index 56872a2aeb..0000000000 --- a/apps/vscode-nightly/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@roo-code/vscode-nightly", - "description": "Nightly build for the Roo Code VSCode extension.", - "private": true, - "packageManager": "pnpm@10.8.1", - "scripts": { - "bundle:nightly": "node esbuild.mjs", - "vsix:nightly": "cd build && mkdirp ../../../bin && npx vsce package --no-dependencies --out ../../../bin", - "clean": "rimraf build .turbo" - }, - "devDependencies": { - "@roo-code/build": "workspace:^" - } -} diff --git a/apps/vscode-nightly/package.nls.nightly.json b/apps/vscode-nightly/package.nls.nightly.json deleted file mode 100644 index b76bbf4eb8..0000000000 --- a/apps/vscode-nightly/package.nls.nightly.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extension.displayName": "Roo Code Nightly", - "views.contextMenu.label": "Roo Code Nightly", - "views.terminalMenu.label": "Roo Code Nightly", - "views.activitybar.title": "Roo Code Nightly", - "configuration.title": "Roo Code Nightly" -} diff --git a/package.json b/package.json index 4580be5ce3..6c2acbb664 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,9 @@ "test": "turbo test --log-order grouped --output-logs new-only", "format": "turbo format --log-order grouped --output-logs new-only", "bundle": "turbo bundle --log-order grouped --output-logs new-only", - "bundle:nightly": "turbo bundle:nightly --log-order grouped --output-logs new-only", + "bundle:next": "turbo bundle:next --log-order grouped --output-logs new-only", "build": "turbo vsix --log-order grouped --output-logs new-only", - "build:nightly": "turbo vsix:nightly --log-order grouped --output-logs new-only", + "build:next": "turbo vsix:next --log-order grouped --output-logs new-only", "clean": "turbo clean --log-order grouped --output-logs new-only && rimraf dist out bin .vite-port .turbo", "changeset:version": "cp CHANGELOG.md src/CHANGELOG.md && changeset version && cp -vf src/CHANGELOG.md .", "knip": "knip --include files", diff --git a/packages/build/src/__tests__/index.test.ts b/packages/build/src/__tests__/index.test.ts index 0b38287cb0..d88294a030 100644 --- a/packages/build/src/__tests__/index.test.ts +++ b/packages/build/src/__tests__/index.test.ts @@ -109,10 +109,10 @@ describe("generatePackageJson", () => { }, overrideJson: { name: "roo-code-nightly", - displayName: "Roo Code Nightly", + displayName: "Roo Code Next", publisher: "RooVeterinaryInc", version: "0.0.1", - icon: "assets/icons/icon-nightly.png", + icon: "assets/icons/icon-next.png", scripts: {}, }, substitution: ["roo-cline", "roo-code-nightly"], @@ -120,11 +120,11 @@ describe("generatePackageJson", () => { expect(generatedPackageJson).toStrictEqual({ name: "roo-code-nightly", - displayName: "Roo Code Nightly", + displayName: "Roo Code Next", description: "%extension.description%", publisher: "RooVeterinaryInc", version: "0.0.1", - icon: "assets/icons/icon-nightly.png", + icon: "assets/icons/icon-next.png", contributes: { viewsContainers: { activitybar: [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2f15e13c7a..6586e526e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,7 +93,7 @@ importers: specifier: 5.8.3 version: 5.8.3 - apps/vscode-nightly: + apps/vscode-next: devDependencies: '@roo-code/build': specifier: workspace:^ diff --git a/src/assets/icons/icon-nightly.png b/src/assets/icons/icon-next.png similarity index 100% rename from src/assets/icons/icon-nightly.png rename to src/assets/icons/icon-next.png diff --git a/turbo.json b/turbo.json index ea05254302..691e103620 100644 --- a/turbo.json +++ b/turbo.json @@ -14,12 +14,12 @@ "outputs": ["dist/**"], "inputs": ["src/**", "package.json", "tsconfig.json", "tsup.config.ts"] }, - "build:nightly": {}, + "build:next": {}, "bundle": { "dependsOn": ["^build"], "cache": false }, - "bundle:nightly": { + "bundle:next": { "dependsOn": ["^build"], "cache": false }, @@ -27,8 +27,8 @@ "dependsOn": ["bundle", "@roo-code/vscode-webview#build"], "cache": false }, - "vsix:nightly": { - "dependsOn": ["bundle:nightly", "@roo-code/vscode-webview#build:nightly"], + "vsix:next": { + "dependsOn": ["bundle:next", "@roo-code/vscode-webview#build:next"], "cache": false }, "watch:bundle": { diff --git a/webview-ui/package.json b/webview-ui/package.json index 9a31a423f0..fde12329f4 100644 --- a/webview-ui/package.json +++ b/webview-ui/package.json @@ -10,7 +10,7 @@ "format": "prettier --write src", "dev": "vite", "build": "tsc -b && vite build", - "build:nightly": "tsc -b && vite build --mode nightly", + "build:next": "tsc -b && vite build --mode next", "preview": "vite preview", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", diff --git a/webview-ui/vite.config.ts b/webview-ui/vite.config.ts index c47a838afa..731ff9d561 100644 --- a/webview-ui/vite.config.ts +++ b/webview-ui/vite.config.ts @@ -67,16 +67,16 @@ export default defineConfig(({ mode }) => { // TODO: We can use `@roo-code/build` to generate `define` once the // monorepo is deployed. - if (mode === "nightly") { - outDir = "../apps/vscode-nightly/build/webview-ui/build" + if (mode === "next") { + outDir = "../apps/vscode-next/build/webview-ui/build" - const nightlyPkg = JSON.parse( - fs.readFileSync(path.join(__dirname, "..", "apps", "vscode-nightly", "package.nightly.json"), "utf8"), + const nextPkg = JSON.parse( + fs.readFileSync(path.join(__dirname, "..", "apps", "vscode-next", "package.next.json"), "utf8"), ) - define["process.env.PKG_NAME"] = JSON.stringify(nightlyPkg.name) - define["process.env.PKG_VERSION"] = JSON.stringify(nightlyPkg.version) - define["process.env.PKG_OUTPUT_CHANNEL"] = JSON.stringify("Roo-Code-Nightly") + define["process.env.PKG_NAME"] = JSON.stringify(nextPkg.name) + define["process.env.PKG_VERSION"] = JSON.stringify(nextPkg.version) + define["process.env.PKG_OUTPUT_CHANNEL"] = JSON.stringify("Roo-Code-Next") } const plugins: PluginOption[] = [react(), tailwindcss(), persistPortPlugin(), wasmPlugin()]