@hasna/skills 0.1.40 → 0.1.41
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/bin/index.js +16 -4
- package/bin/mcp.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -1910,7 +1910,7 @@ var package_default;
|
|
|
1910
1910
|
var init_package = __esm(() => {
|
|
1911
1911
|
package_default = {
|
|
1912
1912
|
name: "@hasna/skills",
|
|
1913
|
-
version: "0.1.
|
|
1913
|
+
version: "0.1.41",
|
|
1914
1914
|
description: "Skills library for AI coding agents",
|
|
1915
1915
|
type: "module",
|
|
1916
1916
|
bin: {
|
|
@@ -42147,11 +42147,23 @@ function registerRegistry(parent) {
|
|
|
42147
42147
|
const registry2 = parent.command("registry").description("Generate registry artifacts for hosted skills services");
|
|
42148
42148
|
registry2.command("sync").description("Generate a deterministic registry sync artifact").option("--profile <profile>", "Registry profile: basic or all", "all").option("--output <path>", "Write artifact to a JSON file").option("--no-docs", "Exclude skill documentation content").option("--no-requirements", "Exclude extracted skill requirements").option("--no-validation", "Exclude validation results").option("--json", "Print artifact JSON to stdout", false).action((options) => handleRegistrySync(options));
|
|
42149
42149
|
}
|
|
42150
|
-
function
|
|
42150
|
+
async function writeJson2(value, space) {
|
|
42151
|
+
const text = `${JSON.stringify(value, null, space)}
|
|
42152
|
+
`;
|
|
42153
|
+
await new Promise((resolve, reject) => {
|
|
42154
|
+
process.stdout.write(text, (error48) => {
|
|
42155
|
+
if (error48)
|
|
42156
|
+
reject(error48);
|
|
42157
|
+
else
|
|
42158
|
+
resolve();
|
|
42159
|
+
});
|
|
42160
|
+
});
|
|
42161
|
+
}
|
|
42162
|
+
async function handleRegistrySync(options) {
|
|
42151
42163
|
if (options.profile !== "basic" && options.profile !== "all") {
|
|
42152
42164
|
const error48 = `Unknown registry profile: ${options.profile}. Available: basic, all`;
|
|
42153
42165
|
if (options.json)
|
|
42154
|
-
|
|
42166
|
+
await writeJson2({ error: error48 });
|
|
42155
42167
|
else
|
|
42156
42168
|
console.error(chalk11.red(error48));
|
|
42157
42169
|
process.exitCode = 1;
|
|
@@ -42168,7 +42180,7 @@ function handleRegistrySync(options) {
|
|
|
42168
42180
|
writeRegistrySyncArtifact(options.output, artifact);
|
|
42169
42181
|
}
|
|
42170
42182
|
if (options.json || !options.output) {
|
|
42171
|
-
|
|
42183
|
+
await writeJson2(artifact, 2);
|
|
42172
42184
|
return;
|
|
42173
42185
|
}
|
|
42174
42186
|
const invalid = artifact.summary.invalidSkillCount ?? "not checked";
|
package/bin/mcp.js
CHANGED
|
@@ -21797,7 +21797,7 @@ class StdioServerTransport {
|
|
|
21797
21797
|
// package.json
|
|
21798
21798
|
var package_default = {
|
|
21799
21799
|
name: "@hasna/skills",
|
|
21800
|
-
version: "0.1.
|
|
21800
|
+
version: "0.1.41",
|
|
21801
21801
|
description: "Skills library for AI coding agents",
|
|
21802
21802
|
type: "module",
|
|
21803
21803
|
bin: {
|
package/dist/index.js
CHANGED
|
@@ -18043,7 +18043,7 @@ import { dirname as dirname3, relative as relative2 } from "path";
|
|
|
18043
18043
|
// package.json
|
|
18044
18044
|
var package_default = {
|
|
18045
18045
|
name: "@hasna/skills",
|
|
18046
|
-
version: "0.1.
|
|
18046
|
+
version: "0.1.41",
|
|
18047
18047
|
description: "Skills library for AI coding agents",
|
|
18048
18048
|
type: "module",
|
|
18049
18049
|
bin: {
|