@jfrog/opencode-jfrog-plugin 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +11 -9
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,8 +15,8 @@ import { pipeline } from "stream/promises";
|
|
|
15
15
|
import { dirname, join } from "path";
|
|
16
16
|
var LOG_FILE = join(process.cwd(), ".opencode", "event-log.txt");
|
|
17
17
|
var SKILLS_REGISTRY_URL = "https://releases.jfrog.io/artifactory/jfrog-skills";
|
|
18
|
-
var INSTRUCTIONS_REGISTRY_URL = "https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/JFROG-INTEGRATION-MANAGEMENT.md";
|
|
19
|
-
var SKILLS_TO_INSTALL_URL = "https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/JFROG-OPENCODE_SKILLS.json";
|
|
18
|
+
var INSTRUCTIONS_REGISTRY_URL = "https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/opencode-JFROG-INTEGRATION-MANAGEMENT-[RELEASE].md";
|
|
19
|
+
var SKILLS_TO_INSTALL_URL = "https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/opencode-JFROG-OPENCODE_SKILLS-[RELEASE].json";
|
|
20
20
|
var fetchAndSaveFile = async (url, destPath, log) => {
|
|
21
21
|
const dir = dirname(destPath);
|
|
22
22
|
log("Fetching file from " + url + " and saving to " + destPath);
|
|
@@ -250,15 +250,17 @@ var jfrogOpencodePlugin = async ({ client, $, directory }) => {
|
|
|
250
250
|
responses.push(pkgMngrResponse);
|
|
251
251
|
}
|
|
252
252
|
log("pkgMngrResponse=" + pkgMngrResponse?.message);
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
if (responses.filter((s) => !s.success).length > 0) {
|
|
254
|
+
await client.tui.showToast({
|
|
255
|
+
body: {
|
|
256
|
+
message: responses.filter((s) => !s.success).map((s) => s.message).join(`
|
|
256
257
|
|
|
257
258
|
`),
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
variant: "error",
|
|
260
|
+
duration: 1e4
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
}
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
};
|