@ichintansoni/skills-master 0.1.18 → 0.1.19
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/bin.js +11 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.1.
|
|
7
|
+
var version = "0.1.19";
|
|
8
8
|
|
|
9
9
|
// src/schema/projectConfig.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -72,6 +72,11 @@ import YAML from "yaml";
|
|
|
72
72
|
function toYaml(obj) {
|
|
73
73
|
return YAML.stringify(obj, { lineWidth: 0 }).trimEnd();
|
|
74
74
|
}
|
|
75
|
+
function quoted(value) {
|
|
76
|
+
const node = new YAML.Scalar(value);
|
|
77
|
+
node.type = "QUOTE_DOUBLE";
|
|
78
|
+
return node;
|
|
79
|
+
}
|
|
75
80
|
function frontmatterBlock(obj) {
|
|
76
81
|
return `---
|
|
77
82
|
${toYaml(obj)}
|
|
@@ -168,7 +173,11 @@ var claudeEmitter = {
|
|
|
168
173
|
const fm = {
|
|
169
174
|
name: skill.frontmatter.name,
|
|
170
175
|
description: skill.frontmatter.description,
|
|
171
|
-
...skill.frontmatter.license ? { license: skill.frontmatter.license } : {}
|
|
176
|
+
...skill.frontmatter.license ? { license: skill.frontmatter.license } : {},
|
|
177
|
+
metadata: {
|
|
178
|
+
version: quoted(xm.version),
|
|
179
|
+
"snapshot-date": quoted(xm.snapshot_date)
|
|
180
|
+
}
|
|
172
181
|
};
|
|
173
182
|
const files = [
|
|
174
183
|
{
|
package/package.json
CHANGED