create-thally-docs 0.10.57 → 0.10.59

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.
@@ -5,7 +5,7 @@ import {
5
5
  readDocsJson,
6
6
  scaffold,
7
7
  writeDocsJson
8
- } from "./chunk-45YUNA3U.js";
8
+ } from "./chunk-THI3OQRL.js";
9
9
 
10
10
  // src/migrate/index.ts
11
11
  import { existsSync as existsSync3, mkdirSync, mkdtempSync, readFileSync as readFileSync3, rmSync, writeFileSync } from "fs";
@@ -13,6 +13,7 @@ import { tmpdir } from "os";
13
13
  import { dirname, isAbsolute, join as join3, relative as relative2, resolve, sep } from "path";
14
14
  import {
15
15
  cloneGitHubRepository,
16
+ hydrateRemoteApiSpecs,
16
17
  migrateRepository,
17
18
  migrateUrl,
18
19
  parseGitHubRepositoryUrl,
@@ -157,13 +158,34 @@ function forEachNonFencedLine(content, visit) {
157
158
  if (!fence) visit(line, index + 1);
158
159
  }
159
160
  }
161
+ function renderedHeadingText(source) {
162
+ let visible = "";
163
+ let inTag = false;
164
+ let quote = null;
165
+ for (let index = 0; index < source.length; index++) {
166
+ const character = source[index];
167
+ if (!inTag) {
168
+ if (character === "<") inTag = true;
169
+ else visible += character;
170
+ continue;
171
+ }
172
+ if (quote) {
173
+ if (character === quote && source[index - 1] !== "\\") quote = null;
174
+ } else if (character === '"' || character === "'") {
175
+ quote = character;
176
+ } else if (character === ">") {
177
+ inTag = false;
178
+ }
179
+ }
180
+ return visible;
181
+ }
160
182
  function extractHeadingAnchors(content) {
161
183
  const anchors = /* @__PURE__ */ new Set();
162
184
  const occurrences = /* @__PURE__ */ new Map();
163
185
  forEachNonFencedLine(content, (line) => {
164
186
  const heading = /^ {0,3}#{1,6}\s+(.+?)\s*#*\s*$/.exec(line);
165
187
  if (heading) {
166
- const base = slugify(heading[1]);
188
+ const base = slugify(renderedHeadingText(heading[1]));
167
189
  const occurrence = (occurrences.get(base) ?? 0) + 1;
168
190
  occurrences.set(base, occurrence);
169
191
  anchors.add(occurrence === 1 ? base : `${base}-${occurrence}`);
@@ -555,7 +577,8 @@ async function discoverMigration(options) {
555
577
  docsDir: options.docsDir ?? (source.docsDir || void 0),
556
578
  platform: options.platform
557
579
  });
558
- return cloneWarnings.length > 0 ? { ...bundle, warnings: [...cloneWarnings, ...bundle.warnings] } : bundle;
580
+ const hydrated = await hydrateRemoteApiSpecs(bundle, options.fetcher);
581
+ return cloneWarnings.length > 0 ? { ...hydrated, warnings: [...cloneWarnings, ...hydrated.warnings] } : hydrated;
559
582
  } finally {
560
583
  rmSync(temporaryRoot, { recursive: true, force: true });
561
584
  }
@@ -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-28.9729212c.c28e9504",
6
+ id: "2026-09-28.b0612637.c9291377",
7
7
  source: {
8
8
  repository: "thallylabs/starter",
9
- commitSha: "9729212cf5ab3455cfdbd2fc284da5d4126068f9",
10
- treeSha: "7f28f290c40006051a02de92672ec936b898105f",
11
- archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/9729212cf5ab3455cfdbd2fc284da5d4126068f9",
9
+ commitSha: "b0612637313a7e032742f9be2a6fae2c886420bf",
10
+ treeSha: "a241556c50f660d6e3c7c864886b645c480d2044",
11
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/b0612637313a7e032742f9be2a6fae2c886420bf",
12
12
  manifestPath: "starter-release.json",
13
- manifestSha256: "0ced61d232d02d73ec46ed9334ce660b2bfdad6cc0476ab93f6e64b90eac6214"
13
+ manifestSha256: "41ec28a22acb6ec724af665a8db7879ea03ea2b4aa7d74828d7ad7afb9f41c06"
14
14
  },
15
15
  runtime: {
16
16
  repository: "thallylabs/thally",
17
- commitSha: "c28e9504e473e6ee3e502f35968568b821479520",
18
- treeSha: "8fbb42629955add398fdfd9236999d3e3f3cd29a",
17
+ commitSha: "c929137720df1226134f560773a43accbbcdb742",
18
+ treeSha: "e2958e51167e6cbf2873658ddd50f776cf2c4ab1",
19
19
  contentSource: "assets",
20
20
  identityContractVersion: 1
21
21
  },
@@ -24,6 +24,26 @@ 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-28.9729212c.c28e9504",
30
+ source: {
31
+ repository: "thallylabs/starter",
32
+ commitSha: "9729212cf5ab3455cfdbd2fc284da5d4126068f9",
33
+ treeSha: "7f28f290c40006051a02de92672ec936b898105f",
34
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/9729212cf5ab3455cfdbd2fc284da5d4126068f9",
35
+ manifestPath: "starter-release.json",
36
+ manifestSha256: "0ced61d232d02d73ec46ed9334ce660b2bfdad6cc0476ab93f6e64b90eac6214"
37
+ },
38
+ runtime: {
39
+ repository: "thallylabs/thally",
40
+ commitSha: "c28e9504e473e6ee3e502f35968568b821479520",
41
+ treeSha: "8fbb42629955add398fdfd9236999d3e3f3cd29a",
42
+ contentSource: "assets",
43
+ identityContractVersion: 1
44
+ },
45
+ starterVersion: 2
46
+ },
27
47
  {
28
48
  schemaVersion: 1,
29
49
  id: "2026-09-28.974e64cc.4715564f",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  STABLE_SCAFFOLD_RELEASE
4
- } from "./chunk-YX3DTSOG.js";
4
+ } from "./chunk-HCLGCJOH.js";
5
5
 
6
6
  // src/starter-sync.ts
7
7
  import { createHash } from "crypto";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-XYRM4GAT.js";
6
6
  import {
7
7
  downloadStarter
8
- } from "./chunk-AQACEZTT.js";
8
+ } from "./chunk-YGOSZNE7.js";
9
9
 
10
10
  // src/scaffold.ts
11
11
  import { existsSync, mkdirSync, readdirSync } from "fs";
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStarterReleaseManifest
4
- } from "./chunk-H57USRQO.js";
4
+ } from "./chunk-JBOFGGFQ.js";
5
5
  import {
6
6
  STABLE_SCAFFOLD_RELEASE
7
- } from "./chunk-YX3DTSOG.js";
7
+ } from "./chunk-HCLGCJOH.js";
8
8
 
9
9
  // src/download.ts
10
10
  import { Readable, Transform, pipeline } from "stream";
package/dist/index.js CHANGED
@@ -3,17 +3,17 @@ import {
3
3
  migrateDocs,
4
4
  parseFrontmatter,
5
5
  runCheck
6
- } from "./chunk-MCC5PVLL.js";
6
+ } from "./chunk-GAO436L2.js";
7
7
  import {
8
8
  logo,
9
9
  scaffold,
10
10
  slugify,
11
11
  success
12
- } from "./chunk-45YUNA3U.js";
12
+ } from "./chunk-THI3OQRL.js";
13
13
  import "./chunk-XYRM4GAT.js";
14
- import "./chunk-AQACEZTT.js";
15
- import "./chunk-H57USRQO.js";
16
- import "./chunk-YX3DTSOG.js";
14
+ import "./chunk-YGOSZNE7.js";
15
+ import "./chunk-JBOFGGFQ.js";
16
+ import "./chunk-HCLGCJOH.js";
17
17
 
18
18
  // src/index.ts
19
19
  import { existsSync as existsSync2, readdirSync } from "fs";
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  migrateDocs
4
- } from "../chunk-MCC5PVLL.js";
5
- import "../chunk-45YUNA3U.js";
4
+ } from "../chunk-GAO436L2.js";
5
+ import "../chunk-THI3OQRL.js";
6
6
  import "../chunk-XYRM4GAT.js";
7
- import "../chunk-AQACEZTT.js";
8
- import "../chunk-H57USRQO.js";
9
- import "../chunk-YX3DTSOG.js";
7
+ import "../chunk-YGOSZNE7.js";
8
+ import "../chunk-JBOFGGFQ.js";
9
+ import "../chunk-HCLGCJOH.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-YX3DTSOG.js";
6
+ } from "./chunk-HCLGCJOH.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-45YUNA3U.js";
4
+ } from "./chunk-THI3OQRL.js";
5
5
  import "./chunk-XYRM4GAT.js";
6
6
  import {
7
7
  STARTER_ARCHIVE_ROOT,
8
8
  STARTER_COMMIT_SHA,
9
9
  STARTER_REPOSITORY,
10
10
  validateStarterArchiveEntry
11
- } from "./chunk-AQACEZTT.js";
12
- import "./chunk-H57USRQO.js";
11
+ } from "./chunk-YGOSZNE7.js";
12
+ import "./chunk-JBOFGGFQ.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE
15
- } from "./chunk-YX3DTSOG.js";
15
+ } from "./chunk-HCLGCJOH.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-H57USRQO.js";
12
- import "./chunk-YX3DTSOG.js";
11
+ } from "./chunk-JBOFGGFQ.js";
12
+ import "./chunk-HCLGCJOH.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-AQACEZTT.js";
4
+ } from "./chunk-YGOSZNE7.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-H57USRQO.js";
12
+ } from "./chunk-JBOFGGFQ.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE,
15
15
  SUPPORTED_SCAFFOLD_RELEASES
16
- } from "./chunk-YX3DTSOG.js";
16
+ } from "./chunk-HCLGCJOH.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.57",
3
+ "version": "0.10.59",
4
4
  "description": "Scaffold an open-source Thally docs site for people, search engines, and AI tools.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -44,8 +44,8 @@
44
44
  "dependencies": {
45
45
  "@anthropic-ai/sdk": "^0.36.0",
46
46
  "@inquirer/prompts": "^7.0.0",
47
- "@thallylabs/core": "0.2.8",
48
- "@thallylabs/migrate": "0.2.9",
47
+ "@thallylabs/core": "0.2.9",
48
+ "@thallylabs/migrate": "0.2.10",
49
49
  "p-limit": "^6.1.0",
50
50
  "tar": "^7.5.22",
51
51
  "yaml": "^2.6.0"