@hasnatools/skills 0.1.35 → 0.1.37
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 +7 -5
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -23587,8 +23587,10 @@ async function setupCommand(promptArg, options = {}) {
|
|
|
23587
23587
|
console.log(keyValue("Scope", colors.primaryBold(isLocal ? "project" : "global")));
|
|
23588
23588
|
console.log(keyValue("Directory", path6(installDir)));
|
|
23589
23589
|
console.log();
|
|
23590
|
-
let projectPrompt
|
|
23591
|
-
if (
|
|
23590
|
+
let projectPrompt;
|
|
23591
|
+
if (typeof promptArg === "string" && promptArg.trim().length > 0) {
|
|
23592
|
+
projectPrompt = promptArg.trim();
|
|
23593
|
+
} else {
|
|
23592
23594
|
console.log(colors.dim("Describe your project and I'll recommend the best skills to install."));
|
|
23593
23595
|
console.log(colors.dim("Examples: 'SaaS application', 'Mobile app backend', 'Data analysis project'"));
|
|
23594
23596
|
console.log();
|
|
@@ -23598,11 +23600,11 @@ async function setupCommand(promptArg, options = {}) {
|
|
|
23598
23600
|
message: "What are you building?",
|
|
23599
23601
|
validate: (value) => value.length > 0 ? true : "Please describe your project"
|
|
23600
23602
|
});
|
|
23601
|
-
if (
|
|
23603
|
+
if (typeof response.prompt !== "string" || response.prompt.trim().length === 0) {
|
|
23602
23604
|
console.log(colors.dim("Setup cancelled"));
|
|
23603
23605
|
return;
|
|
23604
23606
|
}
|
|
23605
|
-
projectPrompt = response.prompt;
|
|
23607
|
+
projectPrompt = response.prompt.trim();
|
|
23606
23608
|
}
|
|
23607
23609
|
const fetchSpinner = ora({
|
|
23608
23610
|
text: "Fetching available skills...",
|
|
@@ -23740,7 +23742,7 @@ async function setupCommand(promptArg, options = {}) {
|
|
|
23740
23742
|
// src/index.ts
|
|
23741
23743
|
var indigo12 = colors.primary;
|
|
23742
23744
|
var program2 = new Command;
|
|
23743
|
-
program2.name("skills").description("CLI for skills.md - AI Agent Skills Marketplace").version("0.1.
|
|
23745
|
+
program2.name("skills").description("CLI for skills.md - AI Agent Skills Marketplace").version("0.1.37");
|
|
23744
23746
|
program2.command("init").description("Initialize skills.md in current project").option("-f, --force", "Force re-initialization (removes existing .skills/)").action((options) => {
|
|
23745
23747
|
initCommand({ force: options.force });
|
|
23746
23748
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasnatools/skills",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "CLI for skills.md - AI Agent Skills Marketplace",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"prompts": "^2.4.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
+
"bun-types": "^1.3.5",
|
|
25
26
|
"@types/node": "^20",
|
|
26
27
|
"@types/prompts": "^2.4.9",
|
|
27
28
|
"typescript": "^5"
|