create-thally-docs 0.10.32 → 0.10.34

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/README.md CHANGED
@@ -68,7 +68,8 @@ into the customer-owned MDX registry. Simple interactive HTML blocks are moved
68
68
  into client components, and locale/root routing is normalized. Unsupported
69
69
  customizations remain visible as warnings rather than being silently dropped.
70
70
 
71
- After importing, the CLI runs static content checks and writes
71
+ After importing, the CLI automatically installs dependencies for fresh projects,
72
+ runs static content checks and a production build, and writes
72
73
  `migration-report.json`. A failed check or build returns a nonzero exit status;
73
74
  the imported files remain available for inspection. Warnings may include
74
75
  pre-existing source problems and compatibility limitations even when a build
@@ -76,14 +77,10 @@ passes. Review them before publishing. Use `--skip-validation` for an explicit
76
77
  import-only run; its report is marked unverified. An existing `--into` project
77
78
  without a build script is also reported as unverified.
78
79
 
79
- Dependency installation and production builds require explicit authorization:
80
- answer the interactive trust prompt or pass `--trust-source` for a source you
81
- have reviewed. `--yes` does not grant that authorization. Without it, files are
82
- imported and statically checked, but the build is skipped and the report stays
83
- unverified. MCP callers use `trustSource: true` only after the user authorizes
84
- execution. `--skip-validation` also skips installation, even with trust granted.
85
- Imported MDX and JSX/TSX are executable code; static migration analysis is not a
86
- sandbox. Review the imported files before installing or building them manually.
80
+ Migration is a local build workflow for projects you own or trust. Dependency
81
+ installation and builds execute project code, including imported MDX and
82
+ JSX/TSX; they are not sandboxed. No additional confirmation or execution flag
83
+ is needed. `--skip-validation` also skips dependency installation.
87
84
 
88
85
  A fresh migration leaves the destination repository unset. After creating the
89
86
  new repository, set `site.repoUrl` in `src/data/site.ts` to its root GitHub URL
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStarterReleaseManifest
4
- } from "./chunk-HYGEXPZG.js";
4
+ } from "./chunk-XEHZRIUK.js";
5
5
  import {
6
6
  STABLE_SCAFFOLD_RELEASE
7
- } from "./chunk-ZFCZE7M7.js";
7
+ } from "./chunk-YQY2ZOPB.js";
8
8
 
9
9
  // src/download.ts
10
10
  import { Readable, Transform, pipeline } from "stream";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-ORUAMPNF.js";
6
6
  import {
7
7
  downloadStarter
8
- } from "./chunk-FLSOVTVO.js";
8
+ } from "./chunk-ADDULHTZ.js";
9
9
 
10
10
  // src/scaffold.ts
11
11
  import { existsSync, mkdirSync, readdirSync } from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  readDocsJson,
6
6
  scaffold,
7
7
  writeDocsJson
8
- } from "./chunk-74SGZLEY.js";
8
+ } from "./chunk-F22HJVNY.js";
9
9
 
10
10
  // src/migrate/index.ts
11
11
  import { existsSync as existsSync3, mkdirSync, mkdtempSync, readFileSync as readFileSync3, rmSync, writeFileSync } from "fs";
@@ -430,7 +430,7 @@ thally check: ${errors.length} error(s), ${warnings.length} warning(s)`);
430
430
  }
431
431
 
432
432
  // src/migrate/validate.ts
433
- async function validateMigration(projectDir, skip = false, trustSource = false, installationFailed = false) {
433
+ async function validateMigration(projectDir, skip = false, installationFailed = false) {
434
434
  const result = { content: "skipped", build: "skipped", messages: [], diagnostics: [] };
435
435
  if (skip) {
436
436
  result.messages.push("Validation was explicitly skipped; this import is not verified.");
@@ -450,10 +450,6 @@ async function validateMigration(projectDir, skip = false, trustSource = false,
450
450
  result.messages.push("Dependency installation failed; production build was not attempted. Review the installation output before retrying.");
451
451
  return result;
452
452
  }
453
- if (trustSource !== true) {
454
- result.messages.push("Production build skipped: source execution was not authorized. Review the imported code before running npm install and npm run build, or explicitly authorize a trusted migration with --trust-source.");
455
- return result;
456
- }
457
453
  const packagePath = join2(projectDir, "package.json");
458
454
  try {
459
455
  const manifest = existsSync2(packagePath) ? JSON.parse(readFileSync2(packagePath, "utf8")) : void 0;
@@ -564,7 +560,8 @@ async function migrateDocs(options) {
564
560
  }
565
561
  console.log(` \u2713 Imported ${bundle.pages.length} pages and ${bundle.assets.length} assets from ${bundle.platform}.`);
566
562
  let installationFailed = false;
567
- if (!options.into && options.trustSource === true && !options.skipValidation) {
563
+ if (!options.skipValidation) console.log(" Migration validation runs project code locally, including imported MDX and components.");
564
+ if (!options.into && !options.skipValidation) {
568
565
  try {
569
566
  installDeps(projectDir);
570
567
  } catch {
@@ -572,7 +569,7 @@ async function migrateDocs(options) {
572
569
  }
573
570
  }
574
571
  console.log("\n Validating imported documentation...");
575
- const validation = await validateMigration(projectDir, options.skipValidation, options.trustSource === true, installationFailed);
572
+ const validation = await validateMigration(projectDir, options.skipValidation, installationFailed);
576
573
  const reportPath = projectPath(projectDir, "migration-report.json");
577
574
  writeFileSync(reportPath, `${JSON.stringify({
578
575
  version: 1,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  STABLE_SCAFFOLD_RELEASE
4
- } from "./chunk-ZFCZE7M7.js";
4
+ } from "./chunk-YQY2ZOPB.js";
5
5
 
6
6
  // src/starter-sync.ts
7
7
  import { createHash } from "crypto";
@@ -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-07.e15b143d.9b3be068",
6
+ id: "2026-09-07.37997a1a.5cd96660",
7
7
  source: {
8
8
  repository: "thallylabs/starter",
9
- commitSha: "e15b143d39935f3d6e5fe6127bffc2c3a7591318",
10
- treeSha: "fff5cb413f83c8da17d2e4ec3df933d29a5613de",
11
- archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/e15b143d39935f3d6e5fe6127bffc2c3a7591318",
9
+ commitSha: "37997a1af33699674aab5e47d1f3d16b8f452bf9",
10
+ treeSha: "ef5e5f331a603b0774654c1595a30b5a1fcc0d17",
11
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/37997a1af33699674aab5e47d1f3d16b8f452bf9",
12
12
  manifestPath: "starter-release.json",
13
- manifestSha256: "07fb1d733700c547874b88eaefcbfc4decef6acd204c765deb81ae3462ee66ba"
13
+ manifestSha256: "e539ce09f9b998a6bc1c6fe344aa70769ef72d8fad13f3cdc0d3d8724e7c4ec9"
14
14
  },
15
15
  runtime: {
16
16
  repository: "thallylabs/thally",
17
- commitSha: "9b3be06826c9bc3a8b6402b25e597b3b7cc80cfe",
18
- treeSha: "1a87aa11c382e3d8d88785b85af37e1b823dad86",
17
+ commitSha: "5cd96660ca25510be9a243b827178dd70850e46c",
18
+ treeSha: "bf2741be9d3f56b93226b0a6a852ee31cdc6154c",
19
19
  contentSource: "assets",
20
20
  identityContractVersion: 1
21
21
  },
@@ -24,6 +24,46 @@ 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-07.7a2c2638.b4a79ee4",
30
+ source: {
31
+ repository: "thallylabs/starter",
32
+ commitSha: "7a2c26389fcba84afe9cfeb91d68d96d007061bf",
33
+ treeSha: "fca330f03c39c6e7733411d0d7bc74223a7847a2",
34
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/7a2c26389fcba84afe9cfeb91d68d96d007061bf",
35
+ manifestPath: "starter-release.json",
36
+ manifestSha256: "e7cd79509dd39a35c9de23c6f67a0f4d98b1177c0dd6df252c1db909448490a5"
37
+ },
38
+ runtime: {
39
+ repository: "thallylabs/thally",
40
+ commitSha: "b4a79ee4055a86b06a38c2e8f8a1f13db9fdf06a",
41
+ treeSha: "ee790f51e68fe6bec5eb475e12035f0350951bd5",
42
+ contentSource: "assets",
43
+ identityContractVersion: 1
44
+ },
45
+ starterVersion: 2
46
+ },
47
+ {
48
+ schemaVersion: 1,
49
+ id: "2026-09-07.e15b143d.9b3be068",
50
+ source: {
51
+ repository: "thallylabs/starter",
52
+ commitSha: "e15b143d39935f3d6e5fe6127bffc2c3a7591318",
53
+ treeSha: "fff5cb413f83c8da17d2e4ec3df933d29a5613de",
54
+ archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/e15b143d39935f3d6e5fe6127bffc2c3a7591318",
55
+ manifestPath: "starter-release.json",
56
+ manifestSha256: "07fb1d733700c547874b88eaefcbfc4decef6acd204c765deb81ae3462ee66ba"
57
+ },
58
+ runtime: {
59
+ repository: "thallylabs/thally",
60
+ commitSha: "9b3be06826c9bc3a8b6402b25e597b3b7cc80cfe",
61
+ treeSha: "1a87aa11c382e3d8d88785b85af37e1b823dad86",
62
+ contentSource: "assets",
63
+ identityContractVersion: 1
64
+ },
65
+ starterVersion: 2
66
+ },
27
67
  {
28
68
  schemaVersion: 1,
29
69
  id: "2026-09-07.06a4aca7.ad30d29f",
package/dist/index.js CHANGED
@@ -3,23 +3,22 @@ import {
3
3
  migrateDocs,
4
4
  parseFrontmatter,
5
5
  runCheck
6
- } from "./chunk-E5URHAYU.js";
6
+ } from "./chunk-NGT3LREI.js";
7
7
  import {
8
8
  logo,
9
9
  scaffold,
10
10
  slugify,
11
11
  success
12
- } from "./chunk-74SGZLEY.js";
12
+ } from "./chunk-F22HJVNY.js";
13
13
  import "./chunk-ORUAMPNF.js";
14
- import "./chunk-FLSOVTVO.js";
15
- import "./chunk-HYGEXPZG.js";
16
- import "./chunk-ZFCZE7M7.js";
14
+ import "./chunk-ADDULHTZ.js";
15
+ import "./chunk-XEHZRIUK.js";
16
+ import "./chunk-YQY2ZOPB.js";
17
17
 
18
18
  // src/index.ts
19
19
  import { existsSync as existsSync2, readdirSync } from "fs";
20
20
  import { createRequire } from "module";
21
21
  import { resolve as resolve2 } from "path";
22
- import { confirm as confirm2 } from "@inquirer/prompts";
23
22
 
24
23
  // src/prompts.ts
25
24
  import { confirm, input, select } from "@inquirer/prompts";
@@ -380,11 +379,11 @@ async function runTranslateCommand(locale, pages, force, apiKey, model, yes, pro
380
379
  }
381
380
  console.log("");
382
381
  if (!yes) {
383
- const confirm3 = await input2({
382
+ const confirm2 = await input2({
384
383
  message: " Proceed? (Y/n):",
385
384
  default: "Y"
386
385
  });
387
- if (confirm3.toLowerCase() === "n") {
386
+ if (confirm2.toLowerCase() === "n") {
388
387
  console.log("\n Aborted.");
389
388
  return;
390
389
  }
@@ -454,7 +453,6 @@ var commandFlags = {
454
453
  "--max-pages",
455
454
  "--platform",
456
455
  "--skip-validation",
457
- "--trust-source",
458
456
  "--yes",
459
457
  "-y"
460
458
  ]),
@@ -502,7 +500,6 @@ Options:
502
500
  --max-pages <count> Limit a public URL crawl to 1-1000 pages
503
501
  --platform <name> Use mintlify, docusaurus, or auto
504
502
  --skip-validation Import only; explicitly skip content and build verification
505
- --trust-source Allow installation and build execution of trusted source code
506
503
  --api-key <key> Anthropic API key for non-Markdown conversion
507
504
  -y, --yes Skip interactive prompts
508
505
  -h, --help Show this help
@@ -619,13 +616,6 @@ async function runMigrateCommand() {
619
616
  if (docsDir) console.log(` Docs dir: ${docsDir}`);
620
617
  console.log(` Platform: ${platform ?? "auto-detect"}`);
621
618
  console.log("");
622
- let trustSource = flags.includes("--trust-source");
623
- if (!trustSource && !yes && !flags.includes("--skip-validation") && process.stdin.isTTY && process.stdout.isTTY) {
624
- trustSource = await confirm2({
625
- message: "Installation and build validation execute imported code on this machine. Do you trust this source and authorize execution?",
626
- default: false
627
- });
628
- }
629
619
  const result = await migrateDocs({
630
620
  sourceUrl,
631
621
  projectDir,
@@ -636,8 +626,7 @@ async function runMigrateCommand() {
636
626
  maxPages,
637
627
  platform,
638
628
  yes,
639
- skipValidation: flags.includes("--skip-validation"),
640
- trustSource
629
+ skipValidation: flags.includes("--skip-validation")
641
630
  });
642
631
  if (result.validation.content === "failed" || result.validation.build === "failed") process.exitCode = 1;
643
632
  }
@@ -42,8 +42,6 @@ interface MigrateOptions {
42
42
  fetcher?: MigrationFetcher;
43
43
  /** Explicitly opt out of content/build gates; the report remains unverified. */
44
44
  skipValidation?: boolean;
45
- /** Explicitly allow local installation/build execution of reviewed source. Never implied by yes. */
46
- trustSource?: boolean;
47
45
  }
48
46
  interface MigrateResult {
49
47
  pagesWritten: number;
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  migrateDocs
4
- } from "../chunk-E5URHAYU.js";
5
- import "../chunk-74SGZLEY.js";
4
+ } from "../chunk-NGT3LREI.js";
5
+ import "../chunk-F22HJVNY.js";
6
6
  import "../chunk-ORUAMPNF.js";
7
- import "../chunk-FLSOVTVO.js";
8
- import "../chunk-HYGEXPZG.js";
9
- import "../chunk-ZFCZE7M7.js";
7
+ import "../chunk-ADDULHTZ.js";
8
+ import "../chunk-XEHZRIUK.js";
9
+ import "../chunk-YQY2ZOPB.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-ZFCZE7M7.js";
6
+ } from "./chunk-YQY2ZOPB.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-74SGZLEY.js";
4
+ } from "./chunk-F22HJVNY.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-FLSOVTVO.js";
12
- import "./chunk-HYGEXPZG.js";
11
+ } from "./chunk-ADDULHTZ.js";
12
+ import "./chunk-XEHZRIUK.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE
15
- } from "./chunk-ZFCZE7M7.js";
15
+ } from "./chunk-YQY2ZOPB.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-HYGEXPZG.js";
12
- import "./chunk-ZFCZE7M7.js";
11
+ } from "./chunk-XEHZRIUK.js";
12
+ import "./chunk-YQY2ZOPB.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-FLSOVTVO.js";
4
+ } from "./chunk-ADDULHTZ.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-HYGEXPZG.js";
12
+ } from "./chunk-XEHZRIUK.js";
13
13
  import {
14
14
  STABLE_SCAFFOLD_RELEASE,
15
15
  SUPPORTED_SCAFFOLD_RELEASES
16
- } from "./chunk-ZFCZE7M7.js";
16
+ } from "./chunk-YQY2ZOPB.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.32",
3
+ "version": "0.10.34",
4
4
  "description": "Scaffold an open-source Thally docs site for people, search engines, and AI tools.",
5
5
  "type": "module",
6
6
  "engines": {