From 4fa40ecd5647e76c6822c1988a406221f31904f7 Mon Sep 17 00:00:00 2001 From: Carmit Hershman Date: Tue, 5 May 2026 18:15:55 +0300 Subject: [PATCH 1/3] chore: update .gitignore and README for plugin versioning - Added .npmrc to .gitignore to exclude npm configuration files. - Updated README to specify the version of the opencode-jfrog-plugin as @jfrog/opencode-jfrog-plugin@0.0.1. --- .gitignore | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ef7b37c..63fafec 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ coverage/ .eslintcache .bun/ .bun.lockb -.memory/ \ No newline at end of file +.memory/ +.npmrc \ No newline at end of file diff --git a/README.md b/README.md index 9164418..31d96f0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Preferably set the plugin globally for all their developers using the Opencode r The plugin configuration looks like this: ``` "plugin": [ - "opencode-jfrog-plugin" + "@jfrog/opencode-jfrog-plugin@0.0.1" ], ``` From f584555ce685193f44ba95cc9dd7ad18ce8931ee Mon Sep 17 00:00:00 2001 From: Carmit Hershman Date: Wed, 6 May 2026 09:38:11 +0300 Subject: [PATCH 2/3] fix: bump version to 0.0.2 and improve error handling in plugin - Updated package version from 0.0.1 to 0.0.2 in package.json. - Enhanced error handling in the plugin by ensuring toast notifications are only shown when there are errors in responses. --- package.json | 2 +- src/index.ts | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index d3dcc50..974324a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jfrog/opencode-jfrog-plugin", - "version": "0.0.1", + "version": "0.0.2", "description": "JFrog Plugin for seamless integration to Opencode", "author": { "name": "JFrog", diff --git a/src/index.ts b/src/index.ts index ab5ea0c..4f8a029 100644 --- a/src/index.ts +++ b/src/index.ts @@ -369,17 +369,19 @@ const jfrogOpencodePlugin: Plugin = async ({ client, $, directory }) => { responses.push(pkgMngrResponse); } log('pkgMngrResponse=' + pkgMngrResponse?.message); - - await client.tui.showToast({ - body: { - message: responses - .filter((s) => !s.success) - .map((s) => s.message) - .join('\n\n'), - variant: 'error', - duration: 10000, - }, - }); + // print if there are any errors + if (responses.filter((s) => !s.success).length > 0) { + await client.tui.showToast({ + body: { + message: responses + .filter((s) => !s.success) + .map((s) => s.message) + .join('\n\n'), + variant: 'error', + duration: 10000, + }, + }); + } } }, }; From f50833e2ce23ee7b50d4c5368c3f0991e472cde5 Mon Sep 17 00:00:00 2001 From: Carmit Hershman Date: Wed, 6 May 2026 09:39:15 +0300 Subject: [PATCH 3/3] chore: update README to reflect plugin version bump to 0.0.2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31d96f0..642f040 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Preferably set the plugin globally for all their developers using the Opencode r The plugin configuration looks like this: ``` "plugin": [ - "@jfrog/opencode-jfrog-plugin@0.0.1" + "@jfrog/opencode-jfrog-plugin@0.0.2" ], ```