@kaddo/cli 3.126.0 → 3.126.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/core.js CHANGED
@@ -15946,7 +15946,7 @@ function renderIndex(title, concepts, childDirs, fromPath, root) {
15946
15946
  );
15947
15947
  if (childDirs.length > 0) {
15948
15948
  parts.push("## Sections");
15949
- for (const d of [...childDirs].sort()) parts.push(`- [${d}/](${relLink(fromPath, `${d}/index.md`)})`);
15949
+ for (const d of [...childDirs].sort()) parts.push(`- [${d.split("/").pop()}/](${relLink(fromPath, `${d}/index.md`)})`);
15950
15950
  parts.push("");
15951
15951
  }
15952
15952
  const byType = /* @__PURE__ */ new Map();
@@ -16081,11 +16081,12 @@ ${c.body ?? ""}`;
16081
16081
  }
16082
16082
  }
16083
16083
  let indexCount = 0;
16084
- for (const [d, cs] of dirs) {
16084
+ const allDirs = /* @__PURE__ */ new Set([...dirs.keys(), ...childDirs.keys()]);
16085
+ for (const d of allDirs) {
16085
16086
  if (d === ".") continue;
16086
16087
  const title = d.split("/").map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(" / ");
16087
- const kids = [...childDirs.get(d) ?? []].map((c) => c.split("/").pop());
16088
- files.set(`${d}/index.md`, renderIndex(title, cs, kids, `${d}/index.md`, false));
16088
+ const kids = [...childDirs.get(d) ?? []];
16089
+ files.set(`${d}/index.md`, renderIndex(title, dirs.get(d) ?? [], kids, `${d}/index.md`, false));
16089
16090
  indexCount++;
16090
16091
  }
16091
16092
  const rootConcepts = dirs.get(".") ?? [];
package/dist/index.js CHANGED
@@ -21898,7 +21898,7 @@ function renderIndex(title, concepts, childDirs, fromPath, root) {
21898
21898
  );
21899
21899
  if (childDirs.length > 0) {
21900
21900
  parts.push("## Sections");
21901
- for (const d of [...childDirs].sort()) parts.push(`- [${d}/](${relLink(fromPath, `${d}/index.md`)})`);
21901
+ for (const d of [...childDirs].sort()) parts.push(`- [${d.split("/").pop()}/](${relLink(fromPath, `${d}/index.md`)})`);
21902
21902
  parts.push("");
21903
21903
  }
21904
21904
  const byType = /* @__PURE__ */ new Map();
@@ -22033,11 +22033,12 @@ ${c.body ?? ""}`;
22033
22033
  }
22034
22034
  }
22035
22035
  let indexCount = 0;
22036
- for (const [d, cs] of dirs) {
22036
+ const allDirs = /* @__PURE__ */ new Set([...dirs.keys(), ...childDirs.keys()]);
22037
+ for (const d of allDirs) {
22037
22038
  if (d === ".") continue;
22038
22039
  const title = d.split("/").map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(" / ");
22039
- const kids = [...childDirs.get(d) ?? []].map((c) => c.split("/").pop());
22040
- files.set(`${d}/index.md`, renderIndex(title, cs, kids, `${d}/index.md`, false));
22040
+ const kids = [...childDirs.get(d) ?? []];
22041
+ files.set(`${d}/index.md`, renderIndex(title, dirs.get(d) ?? [], kids, `${d}/index.md`, false));
22041
22042
  indexCount++;
22042
22043
  }
22043
22044
  const rootConcepts = dirs.get(".") ?? [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaddo/cli",
3
- "version": "3.126.0",
3
+ "version": "3.126.1",
4
4
  "description": "Knowledge Driven Development toolkit",
5
5
  "license": "MIT",
6
6
  "repository": {