Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 13 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
}
}
},
};
Expand Down
Loading