create-thally-docs 0.10.22 → 0.10.25

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  STABLE_SCAFFOLD_RELEASE
4
- } from "./chunk-TOQBJBQY.js";
4
+ } from "./chunk-T7N455IR.js";
5
5
 
6
6
  // src/starter-sync.ts
7
7
  import { createHash } from "crypto";
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStarterReleaseManifest
4
- } from "./chunk-AOFW6HBD.js";
4
+ } from "./chunk-2F7CFF5V.js";
5
5
  import {
6
6
  STABLE_SCAFFOLD_RELEASE
7
- } from "./chunk-TOQBJBQY.js";
7
+ } from "./chunk-T7N455IR.js";
8
8
 
9
9
  // src/download.ts
10
10
  import { Readable, Transform, pipeline } from "stream";
@@ -3,7 +3,7 @@ import {
3
3
  initGit,
4
4
  installDeps,
5
5
  scaffold
6
- } from "./chunk-6ZAVISTJ.js";
6
+ } from "./chunk-SBSYWX2B.js";
7
7
 
8
8
  // src/migrate/index.ts
9
9
  import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-ORUAMPNF.js";
6
6
  import {
7
7
  downloadStarter
8
- } from "./chunk-KYUIMJVE.js";
8
+ } from "./chunk-FW64PO5S.js";
9
9
 
10
10
  // src/scaffold.ts
11
11
  import { existsSync, mkdirSync, readdirSync } from "fs";
@@ -3,19 +3,19 @@
3
3
  // src/stable-scaffold-release.json
4
4
  var stable_scaffold_release_default = {
5
5
  schemaVersion: 1,
6
- id: "2026-09-02.6754e995.53facc72",
6
+ id: "2026-09-02.814f1f54.cef2fe3b",
7
7
  source: {
8
8
  repository: "thallylabs/starter",
9
- commitSha: "6754e995627c5fd1346adff3b94df67a638786c8",
10
- treeSha: "cf5351fd09764f5bdb353f6d56aafb443ce33d0e",
11
- archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/6754e995627c5fd1346adff3b94df67a638786c8",
9
+ commitSha: "814f1f54f5a53a129c552941124d81307dc8b048",
10
+ treeSha: "03f37cd5e7c504f92b517f8b4194f4b9294ed4bf",
11
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/814f1f54f5a53a129c552941124d81307dc8b048",
12
12
  manifestPath: "starter-release.json",
13
- manifestSha256: "b2cc3721dbf7b6e6514c68824eeb475d958a7d6606151af0ad796fcdc2524c42"
13
+ manifestSha256: "46804f563d00e02783c0aa963e5c3dcf932ae11134e2c8f2843faff4fb4e1047"
14
14
  },
15
15
  runtime: {
16
16
  repository: "thallylabs/thally",
17
- commitSha: "53facc72c80f458188ade21d30ab60f7c7bf5527",
18
- treeSha: "78a77963d3e3ecfec079401db117e48151b71a06",
17
+ commitSha: "cef2fe3b11895cf6ce60d17177ac97200f975507",
18
+ treeSha: "0edafb000e3fb477f0f2eac93e262b4c07127851",
19
19
  contentSource: "assets",
20
20
  identityContractVersion: 1
21
21
  },
@@ -24,6 +24,66 @@ var stable_scaffold_release_default = {
24
24
 
25
25
  // src/previous-scaffold-releases.json
26
26
  var previous_scaffold_releases_default = [
27
+ {
28
+ schemaVersion: 1,
29
+ id: "2026-09-02.e29a6539.b84cbc74",
30
+ source: {
31
+ repository: "thallylabs/starter",
32
+ commitSha: "e29a653933aea5c38a24e773e2f174f1e7893930",
33
+ treeSha: "0b4bc19b79deb3f43a5a2f47de8954f74b0ebdf5",
34
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/e29a653933aea5c38a24e773e2f174f1e7893930",
35
+ manifestPath: "starter-release.json",
36
+ manifestSha256: "ccb4f7e8bf1c4e7b9ba5c5918b627289216e50de7c7500ad34225d1b9e906abd"
37
+ },
38
+ runtime: {
39
+ repository: "thallylabs/thally",
40
+ commitSha: "b84cbc74161e2103adf7e8abd79b79e09cb34106",
41
+ treeSha: "30f1d213cb5e4a4b8c61145277be129d6ff07063",
42
+ contentSource: "assets",
43
+ identityContractVersion: 1
44
+ },
45
+ starterVersion: 2
46
+ },
47
+ {
48
+ schemaVersion: 1,
49
+ id: "2026-09-02.35ae4423.8aec7e21",
50
+ source: {
51
+ repository: "thallylabs/starter",
52
+ commitSha: "35ae442319dac8db8b8fd07aa8edb092f571a5c2",
53
+ treeSha: "d32386bb2de59c0ce40880d0cc9cdadf3ccd8687",
54
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/35ae442319dac8db8b8fd07aa8edb092f571a5c2",
55
+ manifestPath: "starter-release.json",
56
+ manifestSha256: "f84917a7558af9058d1b97c8f6c443c5a9f86c4bcf54edc01ba62abce6a4e5d6"
57
+ },
58
+ runtime: {
59
+ repository: "thallylabs/thally",
60
+ commitSha: "8aec7e211bc5428b48fac34b8f80dc0168ec4d19",
61
+ treeSha: "3587a31f3b6faf9f38635ff04c15f1c06721159c",
62
+ contentSource: "assets",
63
+ identityContractVersion: 1
64
+ },
65
+ starterVersion: 2
66
+ },
67
+ {
68
+ schemaVersion: 1,
69
+ id: "2026-09-02.6754e995.53facc72",
70
+ source: {
71
+ repository: "thallylabs/starter",
72
+ commitSha: "6754e995627c5fd1346adff3b94df67a638786c8",
73
+ treeSha: "cf5351fd09764f5bdb353f6d56aafb443ce33d0e",
74
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/6754e995627c5fd1346adff3b94df67a638786c8",
75
+ manifestPath: "starter-release.json",
76
+ manifestSha256: "b2cc3721dbf7b6e6514c68824eeb475d958a7d6606151af0ad796fcdc2524c42"
77
+ },
78
+ runtime: {
79
+ repository: "thallylabs/thally",
80
+ commitSha: "53facc72c80f458188ade21d30ab60f7c7bf5527",
81
+ treeSha: "78a77963d3e3ecfec079401db117e48151b71a06",
82
+ contentSource: "assets",
83
+ identityContractVersion: 1
84
+ },
85
+ starterVersion: 2
86
+ },
27
87
  {
28
88
  schemaVersion: 1,
29
89
  id: "2026-08-31.9dd1433e.eec83f6d",
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  migrateDocs
4
- } from "./chunk-AE6RWHHU.js";
4
+ } from "./chunk-GS2JMPTA.js";
5
5
  import {
6
6
  logo,
7
7
  readDocsJson,
@@ -9,11 +9,11 @@ import {
9
9
  slugify,
10
10
  success,
11
11
  writeDocsJson
12
- } from "./chunk-6ZAVISTJ.js";
12
+ } from "./chunk-SBSYWX2B.js";
13
13
  import "./chunk-ORUAMPNF.js";
14
- import "./chunk-KYUIMJVE.js";
15
- import "./chunk-AOFW6HBD.js";
16
- import "./chunk-TOQBJBQY.js";
14
+ import "./chunk-FW64PO5S.js";
15
+ import "./chunk-2F7CFF5V.js";
16
+ import "./chunk-T7N455IR.js";
17
17
 
18
18
  // src/index.ts
19
19
  import { existsSync as existsSync3, readdirSync as readdirSync2 } from "fs";
@@ -297,8 +297,16 @@ function scanMdx(dir, results) {
297
297
  }
298
298
  function addOrphanToNav(projectDir, pageId) {
299
299
  const config = readDocsJson(projectDir);
300
- const tab = config.tabs.find((t) => !t.href && !t.api && t.groups && t.groups.length > 0);
301
- if (!tab?.groups) return;
300
+ const tab = config.tabs.find((candidate) => !candidate.href && !candidate.api && (candidate.pages?.length || candidate.groups?.length));
301
+ if (!tab) return;
302
+ if (tab.pages) {
303
+ if (!tab.pages.includes(pageId)) {
304
+ tab.pages.push(pageId);
305
+ writeDocsJson(projectDir, config);
306
+ }
307
+ return;
308
+ }
309
+ if (!tab.groups) return;
302
310
  const lastGroup = tab.groups[tab.groups.length - 1];
303
311
  const existing = lastGroup.pages.filter((p) => typeof p === "string");
304
312
  if (!existing.includes(pageId)) {
@@ -414,16 +422,18 @@ async function runCheck(projectDir, options) {
414
422
  const navPageIds = /* @__PURE__ */ new Set();
415
423
  const duplicates = /* @__PURE__ */ new Set();
416
424
  for (const tab of config.tabs) {
417
- if (tab.href && (!tab.groups || tab.groups.length === 0)) {
425
+ const hasNavigationNodes = Boolean(tab.pages?.length || tab.groups?.length);
426
+ if (tab.href && !hasNavigationNodes) {
418
427
  if (tab.href.startsWith("/")) navPageIds.add(tab.href.slice(1) || "introduction");
419
428
  continue;
420
429
  }
421
430
  if (tab.api && tab.api.navigation !== false) continue;
422
- if (!tab.groups || tab.groups.length === 0) {
431
+ if (!hasNavigationNodes) {
423
432
  issues.push({ severity: "error", message: `Tab "${tab.tab}" has no groups and no href \u2014 it will render empty` });
424
433
  continue;
425
434
  }
426
- collectNavPageIds(tab.groups.map((g) => g), navPageIds, duplicates);
435
+ collectNavPageIds(tab.pages ?? [], navPageIds, duplicates);
436
+ collectNavPageIds(tab.groups ?? [], navPageIds, duplicates);
427
437
  }
428
438
  for (const dup of duplicates) {
429
439
  issues.push({ severity: "warning", message: `[duplicate] "${dup}" appears more than once in docs.json` });
@@ -583,11 +593,11 @@ function getAllPageIds(config) {
583
593
  const skippedApiTabs = [];
584
594
  const hrefOnlyPages = [];
585
595
  for (const tab of config.tabs) {
586
- if (tab.api) {
596
+ if (tab.api && !tab.pages && !tab.groups) {
587
597
  skippedApiTabs.push(tab.tab);
588
598
  continue;
589
599
  }
590
- if (!tab.groups && tab.href) {
600
+ if (!tab.pages && !tab.groups && tab.href) {
591
601
  const pageId = tab.href.replace(/^\//, "");
592
602
  if (pageId && !seen.has(pageId)) {
593
603
  seen.add(pageId);
@@ -596,13 +606,10 @@ function getAllPageIds(config) {
596
606
  }
597
607
  continue;
598
608
  }
599
- if (!tab.groups) continue;
600
- for (const group of tab.groups) {
601
- for (const id of collectPageIds(group.pages)) {
602
- if (!seen.has(id)) {
603
- seen.add(id);
604
- ids.push(id);
605
- }
609
+ for (const id of collectPageIds([...tab.pages ?? [], ...tab.groups ?? []])) {
610
+ if (!seen.has(id)) {
611
+ seen.add(id);
612
+ ids.push(id);
606
613
  }
607
614
  }
608
615
  }
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  migrateDocs
4
- } from "../chunk-AE6RWHHU.js";
5
- import "../chunk-6ZAVISTJ.js";
4
+ } from "../chunk-GS2JMPTA.js";
5
+ import "../chunk-SBSYWX2B.js";
6
6
  import "../chunk-ORUAMPNF.js";
7
- import "../chunk-KYUIMJVE.js";
8
- import "../chunk-AOFW6HBD.js";
9
- import "../chunk-TOQBJBQY.js";
7
+ import "../chunk-FW64PO5S.js";
8
+ import "../chunk-2F7CFF5V.js";
9
+ import "../chunk-T7N455IR.js";
10
10
  export {
11
11
  migrateDocs
12
12
  };
package/dist/release.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  STABLE_SCAFFOLD_RELEASE,
4
4
  SUPPORTED_SCAFFOLD_RELEASES,
5
5
  isStableScaffoldRelease
6
- } from "./chunk-TOQBJBQY.js";
6
+ } from "./chunk-T7N455IR.js";
7
7
  export {
8
8
  STABLE_SCAFFOLD_RELEASE,
9
9
  SUPPORTED_SCAFFOLD_RELEASES,
package/dist/scaffold.js CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  scaffold
4
- } from "./chunk-6ZAVISTJ.js";
4
+ } from "./chunk-SBSYWX2B.js";
5
5
  import "./chunk-ORUAMPNF.js";
6
6
  import {
7
7
  STARTER_ARCHIVE_ROOT,
8
8
  STARTER_COMMIT_SHA,
9
9
  STARTER_REPOSITORY,
10
10
  validateStarterArchiveEntry
11
- } from "./chunk-KYUIMJVE.js";
12
- import "./chunk-AOFW6HBD.js";
11
+ } from "./chunk-FW64PO5S.js";
12
+ import "./chunk-2F7CFF5V.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE
15
- } from "./chunk-TOQBJBQY.js";
15
+ } from "./chunk-T7N455IR.js";
16
16
  export {
17
17
  STABLE_SCAFFOLD_RELEASE,
18
18
  STARTER_ARCHIVE_ROOT,
@@ -8,8 +8,8 @@ import {
8
8
  planStarterRuntimeSync,
9
9
  readStarterReleaseManifest,
10
10
  starterManifestSha256
11
- } from "./chunk-AOFW6HBD.js";
12
- import "./chunk-TOQBJBQY.js";
11
+ } from "./chunk-2F7CFF5V.js";
12
+ import "./chunk-T7N455IR.js";
13
13
  export {
14
14
  applyStarterRuntimeSyncPlan,
15
15
  classifyStarterPath,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  downloadStarter
4
- } from "./chunk-KYUIMJVE.js";
4
+ } from "./chunk-FW64PO5S.js";
5
5
  import {
6
6
  applyStarterRuntimeSyncPlan,
7
7
  mergeStarterOwnershipContracts,
@@ -9,11 +9,11 @@ import {
9
9
  planStarterRuntimeSync,
10
10
  readStarterReleaseManifest,
11
11
  starterManifestSha256
12
- } from "./chunk-AOFW6HBD.js";
12
+ } from "./chunk-2F7CFF5V.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE,
15
15
  SUPPORTED_SCAFFOLD_RELEASES
16
- } from "./chunk-TOQBJBQY.js";
16
+ } from "./chunk-T7N455IR.js";
17
17
 
18
18
  // src/starter-update.ts
19
19
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-thally-docs",
3
- "version": "0.10.22",
3
+ "version": "0.10.25",
4
4
  "description": "Scaffold the first documentation surface in a Thally product-knowledge pipeline.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@anthropic-ai/sdk": "^0.36.0",
46
46
  "@inquirer/prompts": "^7.0.0",
47
- "@thallylabs/migrate": "0.2.1",
47
+ "@thallylabs/migrate": "0.2.3",
48
48
  "gray-matter": "^4.0.3",
49
49
  "p-limit": "^6.1.0",
50
50
  "tar": "^7.5.22",