claudekit-cli 3.41.4-dev.8 → 3.41.4-dev.9
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 +22 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15328,7 +15328,9 @@ function parseFrontmatterFallback(content) {
|
|
|
15328
15328
|
}
|
|
15329
15329
|
function parseFrontmatter(content) {
|
|
15330
15330
|
try {
|
|
15331
|
-
const { data, content: body } = import_gray_matter3.default(content
|
|
15331
|
+
const { data, content: body } = import_gray_matter3.default(content, {
|
|
15332
|
+
engines: { javascript: { parse: () => ({}) } }
|
|
15333
|
+
});
|
|
15332
15334
|
const frontmatter = {};
|
|
15333
15335
|
const warnings = [];
|
|
15334
15336
|
if (data.name)
|
|
@@ -47852,9 +47854,10 @@ async function isActionPathAllowed(dirPath, projectId) {
|
|
|
47852
47854
|
if (projectId?.startsWith("discovered-")) {
|
|
47853
47855
|
try {
|
|
47854
47856
|
const encodedPath = projectId.slice("discovered-".length);
|
|
47855
|
-
const discoveredPath = Buffer.from(encodedPath, "base64url").toString("utf-8");
|
|
47856
|
-
if (
|
|
47857
|
+
const discoveredPath = resolve9(Buffer.from(encodedPath, "base64url").toString("utf-8"));
|
|
47858
|
+
if (discoveredPath === dirPath && (isPathInsideBase(discoveredPath, process.cwd()) || isPathInsideBase(discoveredPath, homedir14()))) {
|
|
47857
47859
|
return true;
|
|
47860
|
+
}
|
|
47858
47861
|
} catch {}
|
|
47859
47862
|
}
|
|
47860
47863
|
const registeredProjects = await ProjectsRegistryManager.listProjects();
|
|
@@ -55502,7 +55505,9 @@ function parsePhasesFromBody(body, dir, options2) {
|
|
|
55502
55505
|
function parsePlanFile(planFilePath, options2) {
|
|
55503
55506
|
const content = readFileSync6(planFilePath, "utf8");
|
|
55504
55507
|
const dir = dirname12(planFilePath);
|
|
55505
|
-
const { data: frontmatter, content: body } = import_gray_matter6.default(content
|
|
55508
|
+
const { data: frontmatter, content: body } = import_gray_matter6.default(content, {
|
|
55509
|
+
engines: { javascript: { parse: () => ({}) } }
|
|
55510
|
+
});
|
|
55506
55511
|
const phases = parsePhasesFromBody(body, dir, options2);
|
|
55507
55512
|
return { frontmatter, phases };
|
|
55508
55513
|
}
|
|
@@ -55535,7 +55540,9 @@ function validatePlanFile(filePath, strict = false) {
|
|
|
55535
55540
|
const issues = [];
|
|
55536
55541
|
const lines = content.split(`
|
|
55537
55542
|
`);
|
|
55538
|
-
const { data: frontmatter, content: body } = import_gray_matter7.default(content
|
|
55543
|
+
const { data: frontmatter, content: body } = import_gray_matter7.default(content, {
|
|
55544
|
+
engines: { javascript: { parse: () => ({}) } }
|
|
55545
|
+
});
|
|
55539
55546
|
if (!frontmatter || Object.keys(frontmatter).length === 0) {
|
|
55540
55547
|
issues.push({
|
|
55541
55548
|
line: 1,
|
|
@@ -55738,7 +55745,9 @@ function updatePhaseStatus(planFile, phaseId, newStatus) {
|
|
|
55738
55745
|
console.error("[!] plan.md is not in canonical format — skipping status update");
|
|
55739
55746
|
return;
|
|
55740
55747
|
}
|
|
55741
|
-
const { data: frontmatter, content: body } = import_gray_matter8.default(raw
|
|
55748
|
+
const { data: frontmatter, content: body } = import_gray_matter8.default(raw, {
|
|
55749
|
+
engines: { javascript: { parse: () => ({}) } }
|
|
55750
|
+
});
|
|
55742
55751
|
const statusDisplay = {
|
|
55743
55752
|
pending: "Pending",
|
|
55744
55753
|
"in-progress": "In Progress",
|
|
@@ -55793,7 +55802,9 @@ function phaseNameFilenameFromTableRow(body, phaseId, planDir) {
|
|
|
55793
55802
|
}
|
|
55794
55803
|
function updatePhaseFileFrontmatter(phaseFile, newStatus) {
|
|
55795
55804
|
const raw = readFileSync8(phaseFile, "utf8");
|
|
55796
|
-
const { data: frontmatter, content: body } = import_gray_matter8.default(raw
|
|
55805
|
+
const { data: frontmatter, content: body } = import_gray_matter8.default(raw, {
|
|
55806
|
+
engines: { javascript: { parse: () => ({}) } }
|
|
55807
|
+
});
|
|
55797
55808
|
const updated = { ...frontmatter, status: newStatus };
|
|
55798
55809
|
writeFileSync3(phaseFile, import_gray_matter8.default.stringify(body, updated), "utf8");
|
|
55799
55810
|
}
|
|
@@ -55804,7 +55815,9 @@ function addPhase(planFile, name, afterId) {
|
|
|
55804
55815
|
console.error("[!] plan.md is not in canonical format — cannot add phase");
|
|
55805
55816
|
throw new Error("Non-canonical plan.md — cannot add phase");
|
|
55806
55817
|
}
|
|
55807
|
-
const { data: frontmatter, content: body } = import_gray_matter8.default(raw
|
|
55818
|
+
const { data: frontmatter, content: body } = import_gray_matter8.default(raw, {
|
|
55819
|
+
engines: { javascript: { parse: () => ({}) } }
|
|
55820
|
+
});
|
|
55808
55821
|
const planDir = dirname14(planFile);
|
|
55809
55822
|
const existingIds = [];
|
|
55810
55823
|
for (const match of body.matchAll(/^\|\s*(\d+[a-z]?)\s*\|/gim)) {
|
|
@@ -58663,7 +58676,7 @@ var package_default;
|
|
|
58663
58676
|
var init_package = __esm(() => {
|
|
58664
58677
|
package_default = {
|
|
58665
58678
|
name: "claudekit-cli",
|
|
58666
|
-
version: "3.41.4-dev.
|
|
58679
|
+
version: "3.41.4-dev.9",
|
|
58667
58680
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
58668
58681
|
type: "module",
|
|
58669
58682
|
repository: {
|