@thallylabs/migrate 0.2.38 → 0.2.39

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
@@ -15,6 +15,12 @@ SVG validator, or `@thallylabs/migrate/url-migration` for the URL runner, render
15
15
  and their types. These independent entries avoid tracing repository cloning and
16
16
  filesystem discovery into application routes. The root entry remains compatible.
17
17
 
18
+ `inferUrlMigrationScope` identifies a documentation mount from same-origin declared
19
+ indexes and sidebar evidence. New URL runs infer this boundary before discovery;
20
+ an explicit `scopePath` remains authoritative. Deep article seeds do not widen a
21
+ mounted documentation tree to its marketing origin. Mintlify configuration page
22
+ IDs resolve against that mount, while ordinary HTML links keep URL semantics.
23
+
18
24
  The returned `checkpoint` is JSON-safe. `onRecord` lets a host persist a completed
19
25
  page before acknowledging it; `onCheckpoint` emits bounded deltas, including
20
26
  pending discoveries and checkpoint identity fields. Merge delta records by URL,
@@ -27,7 +33,7 @@ capture and returns committed progress. Failed pages retry on resume by default.
27
33
  Page limits support 1–10,000 pages (default 1,000). This interface limit does not
28
34
  establish that an arbitrary site can be imported completely. Every inventory
29
35
  entry has an explicit outcome; pending/failed pages, missing anchors, technical
30
- payload differences, unavailable assets and unsupported interactive components
36
+ payload differences, failed asset acquisition and unsupported interactive components
31
37
  make validation partial. Raster/PDF assets require matching MIME and signatures;
32
38
  SVG must pass the exported `isPassiveSvg` policy: static drawing elements with
33
39
  only in-document references, no scripts, external resources, styles or animations.
@@ -36,7 +42,15 @@ Responsive `picture`/`source`/`img` choices retain their descriptors, media
36
42
  conditions, sizing and literal alt text. Every candidate is localized; shared
37
43
  asset URLs are fetched once and identical payloads count once toward the byte
38
44
  budget, including resumed journals. Complete static tab panels are preserved as
39
- alternatives; empty/lazy panels still require a capture provider.
45
+ alternatives; empty/lazy panels still require a capture provider. Complete local
46
+ OpenAPI operations can represent deferred API schemas. Supported native video
47
+ and YouTube embeds retain their original public media URLs, recorded in source
48
+ warnings; videos are not downloaded. A trusted host may report an original asset
49
+ as already absent (HTTP 404/410): its absolute source URL and a warning are
50
+ preserved. Timeouts, unsafe downloads and other acquisition errors still block
51
+ validation. Observed external redirects remain navigation links; the engine does
52
+ not capture their destination sites. External sidebar entries are preserved as
53
+ portable sidebar shortcuts.
40
54
  Observed locale metadata and URL prefixes are projected onto the runtime layout:
41
55
  primary-language files are unprefixed and secondary-language files retain their
42
56
  locale prefix. A single-language localized site uses that language as primary.
@@ -44,7 +58,7 @@ Missing primary counterparts and projected path collisions require review; the
44
58
  engine does not invent translations. Fresh HTML captures also observe `html lang`; conflicting or unsupported
45
59
  language evidence requires review. Capture adapters can supply `locale` when
46
60
  no language is declared in HTML or identified by the scoped URL path.
47
- The `url-evidence-v2` converter rejects earlier journals: replay retained raw
61
+ The `url-evidence-v5` converter rejects earlier journals: replay retained raw
48
62
  captures into a new journal rather than relabelling previously hashed pages.
49
63
 
50
64
  `stopReason` distinguishes a resumable `capture-limit` from hard `page-limit`
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MigrationPage, a as MigrationAsset, b as MigrationNavigationGroup, R as RenderedMigrationFile, c as MigrationWarning, d as MigrationFetcher, e as MigrationPlatform, f as MigrationBundle, g as MigrationDocsConfig } from './url-migration-peVzTLjL.js';
2
- export { h as MigrationCapture, i as MigrationCaptureProvider, j as MigrationCaptureState, k as MigrationCapturedAsset, l as MigrationEvidence, m as MigrationFetchRequest, n as MigrationFetchResponse, o as MigrationJournalAsset, p as MigrationNavigationOccurrence, q as MigrationNavigationTab, U as UrlMigrationCheckpoint, r as UrlMigrationCheckpointDelta, s as UrlMigrationIssue, t as UrlMigrationRecord, u as UrlMigrationRun, v as UrlMigrationRunOptions, w as UrlMigrationValidation, x as classifyMigrationResponse, y as mergeMigrationConfig, z as renderMigrationFiles, A as runUrlMigration, B as validateUrlMigration } from './url-migration-peVzTLjL.js';
1
+ import { M as MigrationPage, a as MigrationAsset, b as MigrationNavigationGroup, R as RenderedMigrationFile, c as MigrationWarning, d as MigrationFetcher, e as MigrationPlatform, f as MigrationBundle, g as MigrationDocsConfig } from './url-run-BOZvcGs1.js';
2
+ export { h as MigrationCapture, i as MigrationCaptureProvider, j as MigrationCaptureState, k as MigrationCapturedAsset, l as MigrationEvidence, m as MigrationFetchRequest, n as MigrationFetchResponse, o as MigrationJournalAsset, p as MigrationNavigationOccurrence, q as MigrationNavigationTab, U as UrlMigrationCheckpoint, r as UrlMigrationCheckpointDelta, s as UrlMigrationIssue, t as UrlMigrationRecord, u as UrlMigrationRun, v as UrlMigrationRunOptions, w as UrlMigrationValidation, x as classifyMigrationResponse, y as mergeMigrationConfig, z as renderMigrationFiles, A as runUrlMigration, B as validateUrlMigration } from './url-run-BOZvcGs1.js';
3
3
  export { isPassiveSvg } from './svg-policy.js';
4
4
 
5
5
  /**