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" ], ``` 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, + }, + }); + } } }, };