commet 1.4.1 → 1.4.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/dist/index.js +10 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var import_commander11 = require("commander");
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "commet",
|
|
33
|
-
version: "1.4.
|
|
33
|
+
version: "1.4.3",
|
|
34
34
|
description: "Commet CLI - Manage your billing platform from the command line",
|
|
35
35
|
bin: {
|
|
36
36
|
commet: "./bin/commet"
|
|
@@ -440,18 +440,18 @@ async function askSkills() {
|
|
|
440
440
|
async function installSkills(projectRoot) {
|
|
441
441
|
const npx = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
442
442
|
return new Promise((resolve3) => {
|
|
443
|
-
(0, import_node_child_process.
|
|
443
|
+
const child = (0, import_node_child_process.spawn)(
|
|
444
444
|
npx,
|
|
445
445
|
["-y", "--loglevel=error", "skills", "add", "commet-labs/commet-skills"],
|
|
446
|
-
{ cwd: projectRoot }
|
|
447
|
-
(error) => {
|
|
448
|
-
if (error) {
|
|
449
|
-
console.log(import_chalk3.default.dim(" You can install them manually by running:"));
|
|
450
|
-
console.log(import_chalk3.default.dim(" npx skills add commet-labs/commet-skills"));
|
|
451
|
-
}
|
|
452
|
-
resolve3();
|
|
453
|
-
}
|
|
446
|
+
{ cwd: projectRoot, stdio: "inherit" }
|
|
454
447
|
);
|
|
448
|
+
child.on("close", (code) => {
|
|
449
|
+
if (code !== 0) {
|
|
450
|
+
console.log(import_chalk3.default.dim(" You can install them manually by running:"));
|
|
451
|
+
console.log(import_chalk3.default.dim(" npx skills add commet-labs/commet-skills"));
|
|
452
|
+
}
|
|
453
|
+
resolve3();
|
|
454
|
+
});
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
var createCommand = new import_commander.Command("create").description("Create a new Commet app from a template").argument("[name]", "Project name").option(
|
|
@@ -634,9 +634,7 @@ var createCommand = new import_commander.Command("create").description("Create a
|
|
|
634
634
|
}
|
|
635
635
|
linkProject(dest, selectedOrg.id, selectedOrg.name, auth.environment);
|
|
636
636
|
if (shouldInstallSkills) {
|
|
637
|
-
const skillsSpinner = (0, import_ora2.default)("Installing agent skills...").start();
|
|
638
637
|
await installSkills(dest);
|
|
639
|
-
skillsSpinner.succeed("Agent skills installed");
|
|
640
638
|
}
|
|
641
639
|
console.log(import_chalk3.default.green(`
|
|
642
640
|
\u2713 Created ${projectName}`));
|