-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Roo Code Nightly #3761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Roo Code Nightly #3761
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
038f2c0
Roo Code Nightly
cte ffb15ea
Update nightly metadata
cte e1241d5
Merge branch 'cte/monorepo' into cte/roo-code-nightly
cte 7cec231
Build parity
cte f670539
Verify audio is present
cte 9260852
Got it working
cte 1ccb732
Merge branch 'cte/monorepo' into cte/roo-code-nightly
cte e57988a
Merge branch 'cte/monorepo' into cte/roo-code-nightly
cte 0855948
Merge branch 'cte/monorepo' into cte/roo-code-nightly
cte 498365c
Expose SHA in settings
cte 72c6040
Roo Code Nightly CI (#3789)
cte 0b99ae3
Merge branch 'cte/monorepo' into cte/roo-code-nightly
cte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| import * as esbuild from "esbuild" | ||
| import * as fs from "fs" | ||
| import * as path from "path" | ||
| import { fileURLToPath } from "url" | ||
|
|
||
| import { copyPaths, copyLocales, copyWasms, generatePackageJson } from "@roo-code/build" | ||
|
|
||
| const __filename = fileURLToPath(import.meta.url) | ||
| const __dirname = path.dirname(__filename) | ||
|
|
||
| async function main() { | ||
| const production = process.argv.includes("--production") | ||
| const minify = production | ||
| const sourcemap = !production | ||
|
|
||
| /** | ||
| * @type {import('esbuild').BuildOptions} | ||
| */ | ||
| const buildOptions = { | ||
| bundle: true, | ||
| minify, | ||
| sourcemap, | ||
| logLevel: "silent", | ||
| format: "cjs", | ||
| sourcesContent: false, | ||
| platform: "node", | ||
| define: { | ||
| "process.env.PKG_NAME": '"roo-code-nightly"', | ||
| "process.env.PKG_OUTPUT_CHANNEL": '"Roo-Code-Nightly"', | ||
| }, | ||
| } | ||
|
|
||
| const srcDir = path.join(__dirname, "..", "..", "src") | ||
| const buildDir = path.join(__dirname, "build") | ||
| const distDir = path.join(buildDir, "dist") | ||
|
|
||
| /** | ||
| * @type {import('esbuild').Plugin[]} | ||
| */ | ||
| const plugins = [ | ||
| { | ||
| name: "copy-src", | ||
| setup(build) { | ||
| build.onEnd(() => { | ||
| const paths = [ | ||
| ["LICENSE", "LICENSE"], | ||
| [".vscodeignore", ".vscodeignore"], | ||
| ["assets", "assets"], | ||
| ["integrations", "integrations"], | ||
| ["node_modules/vscode-material-icons/generated", "assets/vscode-material-icons"], | ||
| ["../webview-ui/audio", "webview-ui/audio"], | ||
| ] | ||
|
|
||
| copyPaths(paths, srcDir, buildDir) | ||
|
|
||
| let count = 0 | ||
|
|
||
| fs.readdirSync(path.join(srcDir)).forEach((file) => { | ||
| if (file.startsWith("package.nls")) { | ||
| fs.copyFileSync(path.join(srcDir, file), path.join(buildDir, file)) | ||
| count++ | ||
| } | ||
| }) | ||
|
|
||
| console.log(`[copy-src] Copied ${count} package.nls*.json files to ${buildDir}`) | ||
| }) | ||
| }, | ||
| }, | ||
| { | ||
| name: "generate-package-json", | ||
| setup(build) { | ||
| build.onEnd(() => { | ||
| const packageJson = JSON.parse(fs.readFileSync(path.join(srcDir, "package.json"), "utf8")) | ||
|
|
||
| const overrideJson = JSON.parse( | ||
| fs.readFileSync(path.join(__dirname, "package.nightly.json"), "utf8"), | ||
| ) | ||
|
|
||
| const generatedPackageJson = generatePackageJson({ | ||
| packageJson, | ||
| overrideJson, | ||
| substitution: ["roo-cline", "roo-code-nightly"], | ||
| }) | ||
|
|
||
| fs.writeFileSync(path.join(buildDir, "package.json"), JSON.stringify(generatedPackageJson, null, 2)) | ||
| console.log(`[generate-package-json] Generated package.json`) | ||
| }) | ||
| }, | ||
| }, | ||
| { | ||
| name: "copy-wasms", | ||
| setup(build) { | ||
| build.onEnd(() => { | ||
| copyWasms(srcDir, distDir) | ||
| }) | ||
| }, | ||
| }, | ||
| { | ||
| name: "copy-locales", | ||
| setup(build) { | ||
| build.onEnd(() => { | ||
| copyLocales(srcDir, distDir) | ||
| }) | ||
| }, | ||
| }, | ||
| ] | ||
|
|
||
| /** | ||
| * @type {import('esbuild').BuildOptions} | ||
| */ | ||
| const extensionBuildOptions = { | ||
| ...buildOptions, | ||
| plugins, | ||
| entryPoints: [path.join(srcDir, "extension.ts")], | ||
| outfile: path.join(distDir, "extension.js"), | ||
| external: ["vscode"], | ||
| } | ||
|
|
||
| /** | ||
| * @type {import('esbuild').BuildOptions} | ||
| */ | ||
| const workerBuildOptions = { | ||
| ...buildOptions, | ||
| entryPoints: [path.join(srcDir, "workers", "countTokens.ts")], | ||
| outdir: path.join(distDir, "workers"), | ||
| } | ||
|
|
||
| const [extensionBuildContext, workerBuildContext] = await Promise.all([ | ||
| esbuild.context(extensionBuildOptions), | ||
| esbuild.context(workerBuildOptions), | ||
| ]) | ||
|
|
||
| await Promise.all([ | ||
| extensionBuildContext.rebuild(), | ||
| extensionBuildContext.dispose(), | ||
|
|
||
| workerBuildContext.rebuild(), | ||
| workerBuildContext.dispose(), | ||
| ]) | ||
| } | ||
|
|
||
| main().catch((e) => { | ||
| console.error(e) | ||
| process.exit(1) | ||
| }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "root": true, | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "ecmaVersion": 6, | ||
| "sourceType": "module" | ||
| }, | ||
| "plugins": ["@typescript-eslint"], | ||
| "rules": { | ||
| "@typescript-eslint/naming-convention": [ | ||
| "warn", | ||
| { | ||
| "selector": "import", | ||
| "format": ["camelCase", "PascalCase"] | ||
| } | ||
| ], | ||
| "@typescript-eslint/semi": "off", | ||
| "no-unused-vars": "off", | ||
| "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }], | ||
| "eqeqeq": "warn", | ||
| "no-throw-literal": "warn", | ||
| "semi": "off" | ||
| }, | ||
| "ignorePatterns": ["dist"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "@roo-code/vscode-nightly", | ||
| "description": "Nightly build for the Roo Code VSCode extension.", | ||
| "private": true, | ||
| "packageManager": "[email protected]", | ||
| "scripts": { | ||
| "build": "rimraf build && pnpm --filter @roo-code/build build && node esbuild.mjs --production && pnpm --filter @roo-code/vscode-webview build --mode nightly", | ||
| "vsix": "pnpm build && cd build && mkdirp ../../../bin && npx vsce package --no-dependencies --out ../../../bin", | ||
| "clean": "rimraf build" | ||
| }, | ||
| "dependencies": { | ||
| "@roo-code/build": "workspace:^" | ||
| }, | ||
| "devDependencies": { | ||
| "@vscode/vsce": "3.3.2", | ||
| "esbuild": "^0.25.0", | ||
| "mkdirp": "^3.0.1", | ||
| "rimraf": "^6.0.1" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "name": "roo-code-nightly", | ||
| "displayName": "Roo Code Nightly", | ||
| "publisher": "RooVeterinaryInc", | ||
| "version": "0.0.1", | ||
| "icon": "assets/icons/icon-nightly.png", | ||
| "scripts": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "root": true, | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "ecmaVersion": 6, | ||
| "sourceType": "module" | ||
| }, | ||
| "plugins": ["@typescript-eslint"], | ||
| "rules": { | ||
| "@typescript-eslint/naming-convention": [ | ||
| "warn", | ||
| { | ||
| "selector": "import", | ||
| "format": ["camelCase", "PascalCase"] | ||
| } | ||
| ], | ||
| "@typescript-eslint/semi": "off", | ||
| "no-unused-vars": "off", | ||
| "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }], | ||
| "eqeqeq": "warn", | ||
| "no-throw-literal": "warn", | ||
| "semi": "off" | ||
| }, | ||
| "ignorePatterns": ["dist"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "name": "@roo-code/build", | ||
| "description": "ESBuild utilities for Roo Code.", | ||
| "private": true, | ||
| "type": "module", | ||
| "exports": "./dist/index.js", | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^22.15.20", | ||
| "vitest": "^3.1.3" | ||
| }, | ||
| "dependencies": { | ||
| "zod": "^3.24.2" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.