@thallylabs/migrate 0.1.2 → 0.2.0

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
@@ -3,3 +3,9 @@
3
3
  The shared migration engine used by the Thally CLI, MCP server, and Thally
4
4
  Cloud. It imports documentation repositories and public documentation URLs
5
5
  into one canonical bundle before any caller writes files.
6
+
7
+ Repository migration includes dedicated Mintlify and Docusaurus adapters.
8
+ Mintlify configuration is projected from `docs.json`/`mint.json`. Docusaurus
9
+ sidebars are parsed as bounded, data-only JSON5—never executed—and preserve
10
+ explicit categories, autogenerated slices, document IDs/slugs, positions,
11
+ generated indexes, admonitions, tabs, and `static/` assets where supported.
package/dist/index.d.ts CHANGED
@@ -120,6 +120,14 @@ interface RepositoryMigrationOptions {
120
120
  sourceUrl: string;
121
121
  docsDir?: string;
122
122
  platform?: MigrationPlatform;
123
+ /** @internal Prefix used by additional Docusaurus docs-plugin instances. */
124
+ docusaurusRoutePrefix?: string;
125
+ /** @internal Prevent recursive discovery while importing one plugin root. */
126
+ docusaurusSkipPlugins?: boolean;
127
+ /** @internal Additional docs plugins default to autogenerated navigation. */
128
+ docusaurusSkipSidebar?: boolean;
129
+ /** @internal Static assets are shared across docs-plugin instances. */
130
+ docusaurusSkipAssets?: boolean;
123
131
  }
124
132
  /** Parse and validate a public GitHub repository URL. */
125
133
  declare function parseGitHubRepositoryUrl(rawUrl: string): GitHubRepositorySource;
@@ -167,7 +175,12 @@ declare function buildNavigationFromPages(pages: Array<MigrationPage>, options?:
167
175
 
168
176
  /** Markdown/MDX normalization that preserves every component Thally supports. */
169
177
 
170
- /** Normalize only syntax Thally cannot render; supported Mintlify JSX stays intact. */
178
+ interface MarkdownPageIdentity {
179
+ id: string;
180
+ navigationId: string;
181
+ locale?: string;
182
+ }
183
+ /** Normalize only syntax Thally cannot render; supported source JSX stays intact. */
171
184
  declare function normalizeMdx(body: string): string;
172
185
  /** Parse source Markdown or MDX into the canonical page representation. */
173
186
  declare function parseMarkdownPage(input: {
@@ -176,6 +189,8 @@ declare function parseMarkdownPage(input: {
176
189
  locale?: string;
177
190
  raw: string;
178
191
  source: string;
192
+ /** Resolve platform-specific routes from the already-parsed frontmatter. */
193
+ resolveIdentity?: (frontmatter: Record<string, unknown>, fallback: MarkdownPageIdentity) => MarkdownPageIdentity;
179
194
  }): MigrationPage | null;
180
195
 
181
196
  /** Render canonical migration bundles into a portable Thally repository tree. */
@@ -195,6 +210,8 @@ declare function renderMigrationFiles(bundle: MigrationBundle, options?: {
195
210
 
196
211
  interface UrlMigrationOptions {
197
212
  sourceUrl: string;
213
+ /** Explicit caller selection; omitted callers retain source auto-detection. */
214
+ platform?: MigrationPlatform;
198
215
  fetcher?: MigrationFetcher;
199
216
  maxPages?: number;
200
217
  concurrency?: number;