create-thally-docs 0.10.53 → 0.10.55

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-EHH4OP7W.js";
4
+ } from "./chunk-GHEWAGPJ.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-5TY2RFVK.js";
8
+ } from "./chunk-WH4YY5EW.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-23.03d99cfb.f870a2e2",
6
+ id: "2026-09-28.974e64cc.4715564f",
7
7
  source: {
8
8
  repository: "thallylabs/starter",
9
- commitSha: "03d99cfbcd7cf62b3a8381b29634c792f4c8fddd",
10
- treeSha: "e62a4a2d15e47dadde92fed14ef06a26409b0299",
11
- archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/03d99cfbcd7cf62b3a8381b29634c792f4c8fddd",
9
+ commitSha: "974e64cc151edff5b796e5a685e2c6be3cb7004e",
10
+ treeSha: "02a97be2240e7edab573c824ad7e806db4e807e1",
11
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/974e64cc151edff5b796e5a685e2c6be3cb7004e",
12
12
  manifestPath: "starter-release.json",
13
- manifestSha256: "d81925ddd3a9887456f34b3c899060537e971abee21c9c9e7634300a402ea546"
13
+ manifestSha256: "19df9b99d40fec2b204700c2df49b6f6159c398c416b7260d36b6a9985c7a922"
14
14
  },
15
15
  runtime: {
16
16
  repository: "thallylabs/thally",
17
- commitSha: "f870a2e27da6d099f996faf2d55e819c737e34c6",
18
- treeSha: "98e690c700a05bdc72d0ebdb5e0150fd46fd0ec3",
17
+ commitSha: "4715564fff1881f2a4a3276e2808df32496b5214",
18
+ treeSha: "8ff6fffe59e0588f3de406fea0c941b417ab4ac7",
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-23.03d99cfb.f870a2e2",
30
+ source: {
31
+ repository: "thallylabs/starter",
32
+ commitSha: "03d99cfbcd7cf62b3a8381b29634c792f4c8fddd",
33
+ treeSha: "e62a4a2d15e47dadde92fed14ef06a26409b0299",
34
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/03d99cfbcd7cf62b3a8381b29634c792f4c8fddd",
35
+ manifestPath: "starter-release.json",
36
+ manifestSha256: "d81925ddd3a9887456f34b3c899060537e971abee21c9c9e7634300a402ea546"
37
+ },
38
+ runtime: {
39
+ repository: "thallylabs/thally",
40
+ commitSha: "f870a2e27da6d099f996faf2d55e819c737e34c6",
41
+ treeSha: "98e690c700a05bdc72d0ebdb5e0150fd46fd0ec3",
42
+ contentSource: "assets",
43
+ identityContractVersion: 1
44
+ },
45
+ starterVersion: 2
46
+ },
27
47
  {
28
48
  schemaVersion: 1,
29
49
  id: "2026-09-23.a75486bf.3d39d80a",
@@ -5,7 +5,7 @@ import {
5
5
  readDocsJson,
6
6
  scaffold,
7
7
  writeDocsJson
8
- } from "./chunk-YFOGBPFV.js";
8
+ } from "./chunk-D5MH737V.js";
9
9
 
10
10
  // src/migrate/index.ts
11
11
  import { existsSync as existsSync3, mkdirSync, mkdtempSync, readFileSync as readFileSync3, rmSync, writeFileSync } from "fs";
@@ -144,56 +144,54 @@ function addOrphanToNav(projectDir, pageId) {
144
144
  }
145
145
  }
146
146
  var EXPLICIT_ID_ATTRIBUTE = /\bid=(?:"([^"]*)"|'([^']*)'|\{["']([^"'}]*)["']\})/g;
147
+ function forEachNonFencedLine(content, visit) {
148
+ let fence;
149
+ for (const [index, line] of content.split("\n").entries()) {
150
+ const marker = line.match(/^ {0,3}(`{3,}|~{3,})/);
151
+ if (marker) {
152
+ if (!fence) fence = marker[1];
153
+ else if (marker[1][0] === fence[0] && marker[1].length >= fence.length && /^\s*$/.test(line.slice(marker[0].length))) fence = void 0;
154
+ continue;
155
+ }
156
+ if (!fence) visit(line, index + 1);
157
+ }
158
+ }
147
159
  function extractHeadingAnchors(content) {
148
160
  const anchors = /* @__PURE__ */ new Set();
149
- for (const line of content.split("\n")) {
161
+ forEachNonFencedLine(content, (line) => {
150
162
  const heading = /^ {0,3}#{1,6}\s+(.+?)\s*#*\s*$/.exec(line);
151
163
  if (heading) anchors.add(slugify(heading[1]));
152
164
  for (const idMatch of line.matchAll(EXPLICIT_ID_ATTRIBUTE)) {
153
165
  const id = idMatch[1] ?? idMatch[2] ?? idMatch[3];
154
166
  if (id) anchors.add(id);
155
167
  }
156
- }
168
+ });
157
169
  return anchors;
158
170
  }
159
171
  function extractLinks(content) {
160
172
  const links = [];
161
- const lines = content.split("\n");
162
- let inFence = false;
163
- for (let i = 0; i < lines.length; i++) {
164
- if (/^\s*(```|~~~)/.test(lines[i])) {
165
- inFence = !inFence;
166
- continue;
167
- }
168
- if (inFence) continue;
169
- const line = lines[i].replace(/`[^`]*`/g, "");
173
+ forEachNonFencedLine(content, (rawLine, lineNumber) => {
174
+ const line = rawLine.replace(/`[^`]*`/g, "");
170
175
  for (const m of line.matchAll(/\[[^\]]*\]\(([^)\s]+)(?:\s+"[^"]*")?\)/g)) {
171
- links.push({ target: m[1], line: i + 1 });
176
+ links.push({ target: m[1], line: lineNumber });
172
177
  }
173
178
  for (const m of line.matchAll(/href=["']([^"']+)["']/g)) {
174
- links.push({ target: m[1], line: i + 1 });
179
+ links.push({ target: m[1], line: lineNumber });
175
180
  }
176
- }
181
+ });
177
182
  return links;
178
183
  }
179
184
  function extractImageRefs(content) {
180
185
  const refs = [];
181
- const lines = content.split("\n");
182
- let inFence = false;
183
- for (let i = 0; i < lines.length; i++) {
184
- if (/^\s*(```|~~~)/.test(lines[i])) {
185
- inFence = !inFence;
186
- continue;
187
- }
188
- if (inFence) continue;
189
- const line = lines[i].replace(/`[^`]*`/g, "");
186
+ forEachNonFencedLine(content, (rawLine, lineNumber) => {
187
+ const line = rawLine.replace(/`[^`]*`/g, "");
190
188
  for (const m of line.matchAll(/!\[[^\]]*\]\(([^)\s]+)(?:\s+"[^"]*")?\)/g)) {
191
- refs.push({ target: m[1], line: i + 1 });
189
+ refs.push({ target: m[1], line: lineNumber });
192
190
  }
193
191
  for (const m of line.matchAll(/\bsrc=["']([^"']+)["']/g)) {
194
- refs.push({ target: m[1], line: i + 1 });
192
+ refs.push({ target: m[1], line: lineNumber });
195
193
  }
196
- }
194
+ });
197
195
  return refs;
198
196
  }
199
197
  function localizedPage(pageId, secondaryLocales) {
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStarterReleaseManifest
4
- } from "./chunk-GI5TSGSK.js";
4
+ } from "./chunk-AUF4NC7X.js";
5
5
  import {
6
6
  STABLE_SCAFFOLD_RELEASE
7
- } from "./chunk-EHH4OP7W.js";
7
+ } from "./chunk-GHEWAGPJ.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-5DNAAGM6.js";
6
+ } from "./chunk-PJXWW3KP.js";
7
7
  import {
8
8
  logo,
9
9
  scaffold,
10
10
  slugify,
11
11
  success
12
- } from "./chunk-YFOGBPFV.js";
12
+ } from "./chunk-D5MH737V.js";
13
13
  import "./chunk-XYRM4GAT.js";
14
- import "./chunk-5TY2RFVK.js";
15
- import "./chunk-GI5TSGSK.js";
16
- import "./chunk-EHH4OP7W.js";
14
+ import "./chunk-WH4YY5EW.js";
15
+ import "./chunk-AUF4NC7X.js";
16
+ import "./chunk-GHEWAGPJ.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-5DNAAGM6.js";
5
- import "../chunk-YFOGBPFV.js";
4
+ } from "../chunk-PJXWW3KP.js";
5
+ import "../chunk-D5MH737V.js";
6
6
  import "../chunk-XYRM4GAT.js";
7
- import "../chunk-5TY2RFVK.js";
8
- import "../chunk-GI5TSGSK.js";
9
- import "../chunk-EHH4OP7W.js";
7
+ import "../chunk-WH4YY5EW.js";
8
+ import "../chunk-AUF4NC7X.js";
9
+ import "../chunk-GHEWAGPJ.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-EHH4OP7W.js";
6
+ } from "./chunk-GHEWAGPJ.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-YFOGBPFV.js";
4
+ } from "./chunk-D5MH737V.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-5TY2RFVK.js";
12
- import "./chunk-GI5TSGSK.js";
11
+ } from "./chunk-WH4YY5EW.js";
12
+ import "./chunk-AUF4NC7X.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE
15
- } from "./chunk-EHH4OP7W.js";
15
+ } from "./chunk-GHEWAGPJ.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-GI5TSGSK.js";
12
- import "./chunk-EHH4OP7W.js";
11
+ } from "./chunk-AUF4NC7X.js";
12
+ import "./chunk-GHEWAGPJ.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-5TY2RFVK.js";
4
+ } from "./chunk-WH4YY5EW.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-GI5TSGSK.js";
12
+ } from "./chunk-AUF4NC7X.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE,
15
15
  SUPPORTED_SCAFFOLD_RELEASES
16
- } from "./chunk-EHH4OP7W.js";
16
+ } from "./chunk-GHEWAGPJ.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.53",
3
+ "version": "0.10.55",
4
4
  "description": "Scaffold an open-source Thally docs site for people, search engines, and AI tools.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -45,7 +45,7 @@
45
45
  "@anthropic-ai/sdk": "^0.36.0",
46
46
  "@inquirer/prompts": "^7.0.0",
47
47
  "@thallylabs/core": "0.2.8",
48
- "@thallylabs/migrate": "0.2.7",
48
+ "@thallylabs/migrate": "0.2.8",
49
49
  "p-limit": "^6.1.0",
50
50
  "tar": "^7.5.22",
51
51
  "yaml": "^2.6.0"