@thallylabs/migrate 0.2.37 → 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.
@@ -7,6 +7,8 @@ interface MigrationNavigationOccurrence {
7
7
  label: string;
8
8
  /** Structured source roles retain top-level tabs separately from sidebar groups. */
9
9
  kind?: 'tab' | 'group' | 'page';
10
+ /** Authored collection switchers retain their dropdown presentation. */
11
+ presentation?: 'dropdown';
10
12
  /** A localized collection never merges with a same-named collection in another language. */
11
13
  locale?: string;
12
14
  url?: string;
@@ -22,6 +24,10 @@ interface MigrationCapturedAsset {
22
24
  url: string;
23
25
  contentType: string;
24
26
  content: Uint8Array;
27
+ /** A trusted fetch boundary proved the original asset is already absent. */
28
+ unavailable?: {
29
+ status: 404 | 410;
30
+ };
25
31
  }
26
32
  interface MigrationCapture extends MigrationFetchResponse {
27
33
  /** Capture adapters expand only safe read-only states; no forms or API actions. */
@@ -70,6 +76,8 @@ interface UrlMigrationRecord {
70
76
  outcome: 'pending' | 'imported' | 'excluded' | 'failed' | 'alias';
71
77
  reason?: string;
72
78
  aliasOf?: string;
79
+ /** Observed redirect destination; external pages are links, never captured articles. */
80
+ redirectTo?: string;
73
81
  /** Publisher-declared Markdown representation of this exact same-origin article. */
74
82
  representationOf?: string;
75
83
  /** Complete inert API schema observed at a declared same-route Markdown representation. */
@@ -82,6 +90,8 @@ interface UrlMigrationRecord {
82
90
  page?: MigrationPage;
83
91
  pageSha256?: string;
84
92
  assets?: Array<MigrationJournalAsset>;
93
+ /** Proven source defects are retained for review without hiding import failures. */
94
+ warnings?: Array<UrlMigrationIssue>;
85
95
  version?: string;
86
96
  issues?: Array<UrlMigrationIssue>;
87
97
  }
@@ -105,7 +115,7 @@ interface UrlMigrationCheckpointDelta {
105
115
  navigation?: Array<MigrationNavigationOccurrence>;
106
116
  }
107
117
  interface UrlMigrationIssue {
108
- code: 'missing-page' | 'missing-anchor' | 'source-link-warning' | 'code-mismatch' | 'asset-failed' | 'unsafe-content' | 'unsupported-component' | 'navigation-missing' | 'collision';
118
+ code: 'missing-page' | 'missing-anchor' | 'source-link-warning' | 'source-asset-warning' | 'code-mismatch' | 'asset-failed' | 'unsafe-content' | 'unsupported-component' | 'navigation-missing' | 'collision';
109
119
  source: string;
110
120
  message: string;
111
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thallylabs/migrate",
3
- "version": "0.2.37",
3
+ "version": "0.2.39",
4
4
  "description": "Shared repository and live-site migration engine for Thally",
5
5
  "type": "module",
6
6
  "publishConfig": {