create-thally-docs 0.10.93 → 0.10.95

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.
@@ -26,6 +26,7 @@ import {
26
26
  importSourceRef,
27
27
  hydrateRemoteApiSpecs,
28
28
  migrateUrl,
29
+ runUrlMigration,
29
30
  parseGitHubRepositoryUrl,
30
31
  sourceRefOversizeReason
31
32
  } from "@thallylabs/migrate";
@@ -194,6 +195,7 @@ async function discoverMigration(options) {
194
195
  platform: options.platform,
195
196
  maxPages: options.maxPages
196
197
  };
198
+ if (options.urlMigration) return runUrlMigration({ ...discovery, fetcher: options.fetcher, ...options.urlMigration }).then((run) => run.bundle);
197
199
  return options.fetcher ? migrateUrl({ ...discovery, fetcher: options.fetcher }) : discoverUrl(discovery);
198
200
  }, "Public documentation discovered");
199
201
  }
@@ -308,6 +310,10 @@ async function migrateDocs(options) {
308
310
  }
309
311
  terminal.info("Validating imported documentation...");
310
312
  const validation = await validateMigration(projectDir, options.skipValidation, installationFailed);
313
+ if (bundle.urlMigrationValidation && bundle.urlMigrationValidation.status !== "passed") {
314
+ validation.content = "failed";
315
+ validation.messages.push(`Source evidence validation is ${bundle.urlMigrationValidation.status}; ${bundle.urlMigrationValidation.issues.length} issue(s) require review.`);
316
+ }
311
317
  const quarantinedPages = (bundle.quarantinedFiles ?? []).filter((file) => /\.mdx?$/i.test(file.path)).length;
312
318
  const reportPath = projectPath(projectDir, "migration-report.json");
313
319
  writeFileSync(reportPath, `${JSON.stringify({
@@ -322,7 +328,8 @@ async function migrateDocs(options) {
322
328
  quarantinedAssets: (bundle.quarantinedFiles?.length ?? 0) - quarantinedPages,
323
329
  droppedGatedPages: bundle.droppedGatedPages ?? 0,
324
330
  warnings: bundle.warnings,
325
- validation
331
+ validation,
332
+ ...bundle.urlMigrationValidation ? { sourceValidation: bundle.urlMigrationValidation } : {}
326
333
  }, null, 2)}
327
334
  `);
328
335
  for (const message of validation.messages) terminal.warn(message);
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  migrateDocs
4
- } from "./chunk-GVGWULQG.js";
4
+ } from "./chunk-LBDWCRKT.js";
5
5
  import {
6
6
  parseFrontmatter,
7
7
  runCheck
@@ -1,4 +1,4 @@
1
- import { MigrationPlatform, MigrationFetcher, SourceRefMapping, MigrationBundle, MigrationWarning } from '@thallylabs/migrate';
1
+ import { MigrationPlatform, MigrationFetcher, UrlMigrationRunOptions, SourceRefMapping, MigrationBundle, MigrationWarning } from '@thallylabs/migrate';
2
2
 
3
3
  /**
4
4
  * Validate authored navigation and links against the routes the runtime can
@@ -41,6 +41,8 @@ interface MigrateOptions {
41
41
  platform?: MigrationPlatform;
42
42
  /** Optional host fetch boundary; used by Thally Cloud adapters and tests. */
43
43
  fetcher?: MigrationFetcher;
44
+ /** Enable evidence-bearing browser capture, durable checkpoints and resume. */
45
+ urlMigration?: Omit<UrlMigrationRunOptions, 'sourceUrl'>;
44
46
  /** Explicitly opt out of content/build gates; the report remains unverified. */
45
47
  skipValidation?: boolean;
46
48
  /** Mintlify `sourceRef` repositories to import, from `--source-ref owner/repo=<path>`. */
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  migrateDocs
4
- } from "../chunk-GVGWULQG.js";
4
+ } from "../chunk-LBDWCRKT.js";
5
5
  import "../chunk-KDLP27DS.js";
6
6
  import "../chunk-HPYS4ZXZ.js";
7
7
  import "../chunk-UG3OXVLE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-thally-docs",
3
- "version": "0.10.93",
3
+ "version": "0.10.95",
4
4
  "description": "Scaffold an open-source Thally docs site for people, search engines, and AI tools.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -53,8 +53,8 @@
53
53
  "@anthropic-ai/sdk": "^0.36.0",
54
54
  "@clack/prompts": "^0.11.0",
55
55
  "@inquirer/prompts": "^7.0.0",
56
- "@thallylabs/core": "0.2.12",
57
- "@thallylabs/migrate": "0.2.27",
56
+ "@thallylabs/core": "0.2.14",
57
+ "@thallylabs/migrate": "0.2.28",
58
58
  "p-limit": "^6.1.0",
59
59
  "remark-mdx": "^3.1.1",
60
60
  "remark-parse": "^11.0.0",