From 4edf5705300afa2e08ee148cd9c634cf6d5e7d19 Mon Sep 17 00:00:00 2001 From: ColemanRoo Date: Mon, 18 Nov 2024 21:31:15 -0600 Subject: [PATCH 1/2] Publish Roo Cline to AWS CodeArtifact; script to download and install latest Roo Cline Extension --- .github/workflows/npm-publish.yml | 46 ++++++++++++++++++++++++++++++ .gitignore | 2 ++ assets/icons/icon_Roo.png | Bin 0 -> 11161 bytes package.json | 19 ++++++++---- scripts/codeartifact-login.sh | 15 ++++++++++ scripts/install-cline-latest.sh | 20 +++++++++++++ 6 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/npm-publish.yml create mode 100644 assets/icons/icon_Roo.png create mode 100644 scripts/codeartifact-login.sh create mode 100755 scripts/install-cline-latest.sh diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000000..f2607495bb --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,46 @@ +name: Publish to NPM +on: + push: + branches: ["main"] + workflow_dispatch: + +env: + AWS_REGION: us-east-1 + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - id: install-aws-cli + uses: unfor19/install-aws-cli-action@v1 + with: + version: 2 # default + verbose: false # default + arch: amd64 # allowed values: amd64, arm64 + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1-node16 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ env.AWS_REGION }} + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: | + git config user.name github-actions + git config user.email github-actions@github.com + - run: | + npm run co:login + latest_published_version=$(npm show @roo-dev/roo-cline version) + current_package_version=$(node -p "require('./package.json').version") + echo "Latest published version: $latest_published_version" + echo "Current package version: $current_package_version" + if [ "$latest_published_version" == "$current_package_version" ]; then + echo "Latest version is already published to NPM" + else + npm install + npm run vsix + npm publish + echo "Successfully published to NPM" + fi diff --git a/.gitignore b/.gitignore index b943c9e909..404d9e2630 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ node_modules .vscode-test/ .DS_Store + +.npmrc \ No newline at end of file diff --git a/assets/icons/icon_Roo.png b/assets/icons/icon_Roo.png new file mode 100644 index 0000000000000000000000000000000000000000..14ee4f4e180376de6ecfe4fc0d409081feebfc43 GIT binary patch literal 11161 zcmV;KD`wP*P)LPk@=(Jt| z=Cq#unaRW78~{_a!-wY?4%apsjQ08{K1!=+t<_q+S;sgUOe|+|u!I5DqTw_~3umpf z@ti)+&NSJr4ch3YjxmPDtgQ4#fGPIBD^^Zg01OyDJlBl=s|SYFu?(-_d6oriKmdP=!Aq2hLH>F>DFXJNDrxmaj7#^0sAVRjD!p zyq&vTqtOmvST+SWwxfp8#sSM}XdnL$M7RNtb2xZ=H3H=@&v8W#hkYBPWmns4D|2@3 z+EweCC!agGCvZ&~o8M`;&TQmv#M5pTlbQQ?5S@k8G~z4YH*@eHhr{uJ z&S?0TR%d8~n;+6ZPlt!}Iv#$SUJ5Zr9xCgY+VdV_FDb~)&5q>UBLaYwVZ%CWYa7OD z^oEDE`l!zM7s)yNZTcQ{aXmaWvf4eLr`|Ke4}U_j!`e949%Eckv|&TB+LKik06m8c z>B3m7)3jRs7^5kgVb6T+iubEak{uRKJPM{L;y9gDQOm-uGm_zGB?k?bdfslge#V>h zllN@ebVzZ>0UD|TfF3;t$7zk$i7cxhA7zTxYjt|H#&=rub5TYkOc_%JvC*8*e2-RZ zVDiWDu%##p>^3VjS?aAEXMNq?pr5&SZ+6RZ5#maP4S?SL`j6rq@V4G$YHKh?hd7MW z?=cN(ApSAf0ykY?fdM_O0T5)P>rFB7fTCP5?>y5M zS73N%BRn^@QsDTN67d8RKTHs=10ob3!BSHN-_Eoh@70BGBm76!*q6!7E>PNM&;X## zFDb8FgTo$Zj!ihT`ASz>q8*8SR}5-^`>v{m&Pfj0p7tEp!FwxX;P)H@*u9#yjj_V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kQxMe7Fiv(+wnNKPV8eC>VQv&=g5Z-9lE~NYjpGFJbBbwhlm3}JW%pBu4}Si z$lJLKc$U2YPti`4I`#Tt9C$V5FdX*>qhSNj$3m@!FXTW|$k-bS zyu-EBc%9NdPACBU4N^!~Q{B)}<7jBlIQaHFr%B>jMP9zK+wdR3W(z983)ZjtbD= zMsu19hIJg}HB6~PV=Oht84qvE$_kuIPU)_x*iNklQgKLXb~RFylCo8cF^Jl_I-Ry% zJH4i|68DFT#y=BdGF1!nw^-uvMzY{vJ&yq$d|8>*VK&?B7_(^ZIE^-2YO4Pa7x*5JOdzG&00000NkvXXu0mjf`~esP literal 0 HcmV?d00001 diff --git a/package.json b/package.json index 0421765d22..89425b30fb 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "roo-cline", "displayName": "Roo Cline", "description": "Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.", - "version": "2.0.1", - "icon": "assets/icons/icon.png", + "version": "2.0.2", + "icon": "assets/icons/icon_Roo.png", "galleryBanner": { "color": "#617A91", "theme": "dark" @@ -12,7 +12,7 @@ "vscode": "1.93.1" }, "author": { - "name": "Cline Bot Inc." + "name": "Roo Vet" }, "repository": { "type": "git", @@ -131,7 +131,9 @@ "start:webview": "cd webview-ui && npm run start", "build:webview": "cd webview-ui && npm run build", "test:webview": "cd webview-ui && npm run test", - "publish:marketplace": "vsce publish && ovsx publish" + "publish:marketplace": "vsce publish && ovsx publish", + "co:login": "scripts/codeartifact-login.sh", + "install:cline": "scripts/install-cline-latest.sh" }, "devDependencies": { "@types/diff": "^5.2.1", @@ -181,5 +183,12 @@ "tree-sitter-wasms": "^0.1.11", "turndown": "^7.2.0", "web-tree-sitter": "^0.22.6" - } + }, + "publishConfig": { + "registry": "https://www.npmjs.com" + }, + "files": [ + "bin/roo-cline-2.0.2.vsix", + "assets/icons/icon_Roo.png" + ] } diff --git a/scripts/codeartifact-login.sh b/scripts/codeartifact-login.sh new file mode 100644 index 0000000000..a1f007eed9 --- /dev/null +++ b/scripts/codeartifact-login.sh @@ -0,0 +1,15 @@ +AWS_VERSION=$(aws --version 2>&1 | cut -d/ -f2 | cut -d. -f1) +echo "aws-cli/$AWS_VERSION" + +if [ "$AWS_VERSION" -lt 2 ]; then + echo "Skipping .npmrc generation because AWS CLI version is less than 2" +else + echo "Generating .npmrc" + REPO_ENDPOINT=$(aws codeartifact get-repository-endpoint --domain roo --repository roo-dev --format npm | jq -r '.repositoryEndpoint') + echo "registry=$REPO_ENDPOINT" > .npmrc + + CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain roo --query authorizationToken --output text) + + REPO_PATH=$(echo $REPO_ENDPOINT | sed 's/https://g') + echo "$REPO_PATH:_authToken=$CODEARTIFACT_AUTH_TOKEN" >> .npmrc +fi \ No newline at end of file diff --git a/scripts/install-cline-latest.sh b/scripts/install-cline-latest.sh new file mode 100755 index 0000000000..e80783a34b --- /dev/null +++ b/scripts/install-cline-latest.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Install roo-cline +echo "Installing roo-cline..." +npm install roo-cline + +# Get version of installed roo-cline +VERSION=$(npm list roo-cline | grep roo-cline@ | cut -d'@' -f2 | tail -n1) +echo "Installed version: $VERSION" + +# Install extension in Cursor +echo "Installing Cursor extension..." +echo $VERSION +cursor --install-extension "node_modules/roo-cline/bin/roo-cline-$VERSION.vsix" + +# Uninstall roo-cline +echo "Cleaning up..." +npm uninstall roo-cline + +echo "Done!" From f34c52fa37a5b0d689c6e703c69d98d3d77cca2c Mon Sep 17 00:00:00 2001 From: ColemanRoo Date: Mon, 18 Nov 2024 21:40:00 -0600 Subject: [PATCH 2/2] update package.json to remove unneeded prop --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index 89425b30fb..8ba3d51f82 100644 --- a/package.json +++ b/package.json @@ -184,9 +184,6 @@ "turndown": "^7.2.0", "web-tree-sitter": "^0.22.6" }, - "publishConfig": { - "registry": "https://www.npmjs.com" - }, "files": [ "bin/roo-cline-2.0.2.vsix", "assets/icons/icon_Roo.png"