@rayul/kordis 0.2.0 → 0.2.1
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 +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1172,6 +1172,8 @@ import ora from "ora";
|
|
|
1172
1172
|
var jsonMode = false;
|
|
1173
1173
|
function setJsonMode(on) {
|
|
1174
1174
|
jsonMode = on;
|
|
1175
|
+
if (on) process.env["KORDIS_JSON"] = "1";
|
|
1176
|
+
else delete process.env["KORDIS_JSON"];
|
|
1175
1177
|
}
|
|
1176
1178
|
function isJsonMode() {
|
|
1177
1179
|
return jsonMode;
|
|
@@ -2107,7 +2109,7 @@ function zodFail(issues) {
|
|
|
2107
2109
|
// ../../packages/translators/src/skill/identity.ts
|
|
2108
2110
|
function buildSkillFile(input, outputPath) {
|
|
2109
2111
|
const body = input.body.trimStart();
|
|
2110
|
-
const fm = input.frontmatter;
|
|
2112
|
+
const fm = input.frontmatter["version"] === void 0 && input.version ? { ...input.frontmatter, version: input.version } : input.frontmatter;
|
|
2111
2113
|
const name = typeof fm["name"] === "string" ? fm["name"] : input.fullSlug.split("/")[1];
|
|
2112
2114
|
const frontmatter = ["---"];
|
|
2113
2115
|
for (const [k, v] of Object.entries(fm)) {
|
|
@@ -3493,6 +3495,11 @@ function diffCommand() {
|
|
|
3493
3495
|
printHuman("");
|
|
3494
3496
|
if (!diff.unified_diff) {
|
|
3495
3497
|
printHuman(c.dim("(no content changes between these versions)"));
|
|
3498
|
+
printHuman(
|
|
3499
|
+
c.dim(
|
|
3500
|
+
" \u2192 likely a metadata-only bump: description, deps, license, or version field"
|
|
3501
|
+
)
|
|
3502
|
+
);
|
|
3496
3503
|
return;
|
|
3497
3504
|
}
|
|
3498
3505
|
for (const line of diff.unified_diff.split("\n")) {
|