create-thally-docs 0.10.32 → 0.10.33
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 +6 -9
- package/dist/{chunk-74SGZLEY.js → chunk-5TBIIZHQ.js} +1 -1
- package/dist/{chunk-FLSOVTVO.js → chunk-DPYULA35.js} +2 -2
- package/dist/{chunk-HYGEXPZG.js → chunk-HOQBNMQ4.js} +1 -1
- package/dist/{chunk-ZFCZE7M7.js → chunk-I2OURFVJ.js} +27 -7
- package/dist/{chunk-E5URHAYU.js → chunk-V5PERCVX.js} +5 -8
- package/dist/index.js +8 -19
- package/dist/migrate/index.d.ts +0 -2
- package/dist/migrate/index.js +5 -5
- package/dist/release.js +1 -1
- package/dist/scaffold.js +4 -4
- package/dist/starter-sync.js +2 -2
- package/dist/starter-update.js +3 -3
- package/package.json +1 -1
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
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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-
|
|
4
|
+
} from "./chunk-HOQBNMQ4.js";
|
|
5
5
|
import {
|
|
6
6
|
STABLE_SCAFFOLD_RELEASE
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I2OURFVJ.js";
|
|
8
8
|
|
|
9
9
|
// src/download.ts
|
|
10
10
|
import { Readable, Transform, pipeline } from "stream";
|
|
@@ -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.
|
|
6
|
+
id: "2026-09-07.7a2c2638.b4a79ee4",
|
|
7
7
|
source: {
|
|
8
8
|
repository: "thallylabs/starter",
|
|
9
|
-
commitSha: "
|
|
10
|
-
treeSha: "
|
|
11
|
-
archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/
|
|
9
|
+
commitSha: "7a2c26389fcba84afe9cfeb91d68d96d007061bf",
|
|
10
|
+
treeSha: "fca330f03c39c6e7733411d0d7bc74223a7847a2",
|
|
11
|
+
archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/7a2c26389fcba84afe9cfeb91d68d96d007061bf",
|
|
12
12
|
manifestPath: "starter-release.json",
|
|
13
|
-
manifestSha256: "
|
|
13
|
+
manifestSha256: "e7cd79509dd39a35c9de23c6f67a0f4d98b1177c0dd6df252c1db909448490a5"
|
|
14
14
|
},
|
|
15
15
|
runtime: {
|
|
16
16
|
repository: "thallylabs/thally",
|
|
17
|
-
commitSha: "
|
|
18
|
-
treeSha: "
|
|
17
|
+
commitSha: "b4a79ee4055a86b06a38c2e8f8a1f13db9fdf06a",
|
|
18
|
+
treeSha: "ee790f51e68fe6bec5eb475e12035f0350951bd5",
|
|
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-07.e15b143d.9b3be068",
|
|
30
|
+
source: {
|
|
31
|
+
repository: "thallylabs/starter",
|
|
32
|
+
commitSha: "e15b143d39935f3d6e5fe6127bffc2c3a7591318",
|
|
33
|
+
treeSha: "fff5cb413f83c8da17d2e4ec3df933d29a5613de",
|
|
34
|
+
archiveUrl: "https://codeload.github.com/thallylabs/starter/tar.gz/e15b143d39935f3d6e5fe6127bffc2c3a7591318",
|
|
35
|
+
manifestPath: "starter-release.json",
|
|
36
|
+
manifestSha256: "07fb1d733700c547874b88eaefcbfc4decef6acd204c765deb81ae3462ee66ba"
|
|
37
|
+
},
|
|
38
|
+
runtime: {
|
|
39
|
+
repository: "thallylabs/thally",
|
|
40
|
+
commitSha: "9b3be06826c9bc3a8b6402b25e597b3b7cc80cfe",
|
|
41
|
+
treeSha: "1a87aa11c382e3d8d88785b85af37e1b823dad86",
|
|
42
|
+
contentSource: "assets",
|
|
43
|
+
identityContractVersion: 1
|
|
44
|
+
},
|
|
45
|
+
starterVersion: 2
|
|
46
|
+
},
|
|
27
47
|
{
|
|
28
48
|
schemaVersion: 1,
|
|
29
49
|
id: "2026-09-07.06a4aca7.ad30d29f",
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
readDocsJson,
|
|
6
6
|
scaffold,
|
|
7
7
|
writeDocsJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5TBIIZHQ.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,
|
|
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.
|
|
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,
|
|
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,
|
package/dist/index.js
CHANGED
|
@@ -3,23 +3,22 @@ import {
|
|
|
3
3
|
migrateDocs,
|
|
4
4
|
parseFrontmatter,
|
|
5
5
|
runCheck
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-V5PERCVX.js";
|
|
7
7
|
import {
|
|
8
8
|
logo,
|
|
9
9
|
scaffold,
|
|
10
10
|
slugify,
|
|
11
11
|
success
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5TBIIZHQ.js";
|
|
13
13
|
import "./chunk-ORUAMPNF.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-DPYULA35.js";
|
|
15
|
+
import "./chunk-HOQBNMQ4.js";
|
|
16
|
+
import "./chunk-I2OURFVJ.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
|
|
382
|
+
const confirm2 = await input2({
|
|
384
383
|
message: " Proceed? (Y/n):",
|
|
385
384
|
default: "Y"
|
|
386
385
|
});
|
|
387
|
-
if (
|
|
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
|
}
|
package/dist/migrate/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/migrate/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
migrateDocs
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-V5PERCVX.js";
|
|
5
|
+
import "../chunk-5TBIIZHQ.js";
|
|
6
6
|
import "../chunk-ORUAMPNF.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-DPYULA35.js";
|
|
8
|
+
import "../chunk-HOQBNMQ4.js";
|
|
9
|
+
import "../chunk-I2OURFVJ.js";
|
|
10
10
|
export {
|
|
11
11
|
migrateDocs
|
|
12
12
|
};
|
package/dist/release.js
CHANGED
package/dist/scaffold.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
scaffold
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5TBIIZHQ.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-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-DPYULA35.js";
|
|
12
|
+
import "./chunk-HOQBNMQ4.js";
|
|
13
13
|
import {
|
|
14
14
|
STABLE_SCAFFOLD_RELEASE
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I2OURFVJ.js";
|
|
16
16
|
export {
|
|
17
17
|
STABLE_SCAFFOLD_RELEASE,
|
|
18
18
|
STARTER_ARCHIVE_ROOT,
|
package/dist/starter-sync.js
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
planStarterRuntimeSync,
|
|
9
9
|
readStarterReleaseManifest,
|
|
10
10
|
starterManifestSha256
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HOQBNMQ4.js";
|
|
12
|
+
import "./chunk-I2OURFVJ.js";
|
|
13
13
|
export {
|
|
14
14
|
applyStarterRuntimeSyncPlan,
|
|
15
15
|
classifyStarterPath,
|
package/dist/starter-update.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
downloadStarter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DPYULA35.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-
|
|
12
|
+
} from "./chunk-HOQBNMQ4.js";
|
|
13
13
|
import {
|
|
14
14
|
STABLE_SCAFFOLD_RELEASE,
|
|
15
15
|
SUPPORTED_SCAFFOLD_RELEASES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I2OURFVJ.js";
|
|
17
17
|
|
|
18
18
|
// src/starter-update.ts
|
|
19
19
|
import {
|