cc-claw 0.22.0 → 0.22.2
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/cli.js +5 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ var VERSION;
|
|
|
33
33
|
var init_version = __esm({
|
|
34
34
|
"src/version.ts"() {
|
|
35
35
|
"use strict";
|
|
36
|
-
VERSION = true ? "0.22.
|
|
36
|
+
VERSION = true ? "0.22.2" : (() => {
|
|
37
37
|
try {
|
|
38
38
|
return JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
|
|
39
39
|
} catch {
|
|
@@ -30530,7 +30530,7 @@ var init_telegram2 = __esm({
|
|
|
30530
30530
|
});
|
|
30531
30531
|
|
|
30532
30532
|
// src/skills/bootstrap.ts
|
|
30533
|
-
import { existsSync as existsSync29, readFileSync as readFileSync18, writeFileSync as writeFileSync8, copyFileSync as copyFileSync3 } from "fs";
|
|
30533
|
+
import { existsSync as existsSync29, readFileSync as readFileSync18, writeFileSync as writeFileSync8, copyFileSync as copyFileSync3, readdirSync as readdirSync15 } from "fs";
|
|
30534
30534
|
import { readdir as readdir6, readFile as readFile8, writeFile as writeFile6, copyFile } from "fs/promises";
|
|
30535
30535
|
import { join as join32, dirname as dirname5 } from "path";
|
|
30536
30536
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
@@ -30622,7 +30622,7 @@ function migrateSkillsToThreeTier() {
|
|
|
30622
30622
|
if (!existsSync29(SKILLS_PATH)) return;
|
|
30623
30623
|
let entries;
|
|
30624
30624
|
try {
|
|
30625
|
-
entries =
|
|
30625
|
+
entries = readdirSync15(SKILLS_PATH, { withFileTypes: true }).filter((e) => e.isDirectory() && !e.name.startsWith(".")).map((e) => e.name);
|
|
30626
30626
|
} catch {
|
|
30627
30627
|
return;
|
|
30628
30628
|
}
|
|
@@ -30645,9 +30645,8 @@ function migrateSkillsToThreeTier() {
|
|
|
30645
30645
|
const fmMatch = raw.match(/^---\s*\n([\s\S]*?)\n---/);
|
|
30646
30646
|
if (fmMatch) {
|
|
30647
30647
|
const fm = fmMatch[1];
|
|
30648
|
-
const
|
|
30649
|
-
|
|
30650
|
-
if (hasType && hasStatus) {
|
|
30648
|
+
const alreadyApproved = /^status:\s*approved/m.test(fm);
|
|
30649
|
+
if (alreadyApproved) {
|
|
30651
30650
|
skipped++;
|
|
30652
30651
|
continue;
|
|
30653
30652
|
}
|
package/package.json
CHANGED