@iwonz/ywtc 4.0.0 → 4.1.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/CHANGELOG.md +27 -0
- package/README.md +47 -45
- package/dist/adapters/confluence.js +19 -4
- package/dist/adapters/confluence.js.map +1 -1
- package/dist/adapters/yandex.d.ts +7 -8
- package/dist/adapters/yandex.js +68 -22
- package/dist/adapters/yandex.js.map +1 -1
- package/dist/cli-arguments.d.ts +3 -2
- package/dist/cli-arguments.js +42 -37
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli.js +19 -142
- package/dist/cli.js.map +1 -1
- package/dist/clients/yandex-wiki.js +2 -6
- package/dist/clients/yandex-wiki.js.map +1 -1
- package/dist/consistency.d.ts +1 -1
- package/dist/consistency.js +6 -1
- package/dist/consistency.js.map +1 -1
- package/dist/content-model.d.ts +1 -0
- package/dist/content-model.js +118 -37
- package/dist/content-model.js.map +1 -1
- package/dist/conversion.d.ts +2 -0
- package/dist/conversion.js +42 -17
- package/dist/conversion.js.map +1 -1
- package/dist/domain.d.ts +22 -2
- package/dist/domain.js +10 -0
- package/dist/domain.js.map +1 -1
- package/dist/exclusive-lease.d.ts +14 -0
- package/dist/exclusive-lease.js +87 -0
- package/dist/exclusive-lease.js.map +1 -0
- package/dist/filesystem-export.d.ts +2 -0
- package/dist/filesystem-export.js +188 -167
- package/dist/filesystem-export.js.map +1 -1
- package/dist/graph.js +4 -4
- package/dist/graph.js.map +1 -1
- package/dist/http.js +1 -1
- package/dist/http.js.map +1 -1
- package/dist/interactive-config.js +55 -3
- package/dist/interactive-config.js.map +1 -1
- package/dist/interactive-init.d.ts +3 -3
- package/dist/interactive-init.js +7 -5
- package/dist/interactive-init.js.map +1 -1
- package/dist/interactive-migrate.d.ts +23 -0
- package/dist/interactive-migrate.js +578 -0
- package/dist/interactive-migrate.js.map +1 -0
- package/dist/issues.d.ts +1 -1
- package/dist/migration-command.d.ts +19 -0
- package/dist/migration-command.js +160 -0
- package/dist/migration-command.js.map +1 -0
- package/dist/migrator.js +439 -311
- package/dist/migrator.js.map +1 -1
- package/dist/report-catalog.d.ts +4 -0
- package/dist/report-catalog.js +4 -0
- package/dist/report-catalog.js.map +1 -1
- package/dist/report-contract.d.ts +6 -0
- package/dist/report-contract.js.map +1 -1
- package/dist/report-ui/index.html +19 -25
- package/dist/report.js +33 -22
- package/dist/report.js.map +1 -1
- package/dist/state.d.ts +16 -0
- package/dist/state.js +58 -32
- package/dist/state.js.map +1 -1
- package/dist/{init-prompts.d.ts → wizard-prompts.d.ts} +2 -2
- package/dist/{init-prompts.js → wizard-prompts.js} +3 -3
- package/dist/wizard-prompts.js.map +1 -0
- package/package.json +3 -7
- package/dist/init-prompts.js.map +0 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { Listr } from 'listr2';
|
|
2
|
+
import { readWorkspaceConfig, secretValues, validateProfileSecrets } from './config.js';
|
|
3
|
+
import { resolveDestinationLocator, resolveSourceLocator } from './locators.js';
|
|
4
|
+
import { createLogger } from './logger.js';
|
|
5
|
+
import { initializeWorkspace, resolveWorkspace, resolveWorkspacePath } from './workspace.js';
|
|
6
|
+
const color = process.stdout.isTTY && !process.env.NO_COLOR;
|
|
7
|
+
const paint = (code, value) => color ? `\u001b[${code}m${value}\u001b[0m` : value;
|
|
8
|
+
function heading(label) {
|
|
9
|
+
console.log(`\n${paint(36, '◆')} ${paint(1, label)}`);
|
|
10
|
+
}
|
|
11
|
+
function reportBearingError(error) {
|
|
12
|
+
return error instanceof Error
|
|
13
|
+
&& typeof error.reportPaths === 'object'
|
|
14
|
+
&& typeof error.stateFilename === 'string';
|
|
15
|
+
}
|
|
16
|
+
async function printAndMaybeOpenReport(paths, workdir, shouldOpen) {
|
|
17
|
+
const { openReportFile, reportAccessDetails } = await import('./report-catalog.js');
|
|
18
|
+
const access = reportAccessDetails(paths, workdir);
|
|
19
|
+
console.log(` Run ID ${access.runId}`);
|
|
20
|
+
console.log(` Report ${access.report}`);
|
|
21
|
+
console.log(` URL ${access.url}`);
|
|
22
|
+
console.log(` Open ${access.command}`);
|
|
23
|
+
if (!shouldOpen)
|
|
24
|
+
return;
|
|
25
|
+
try {
|
|
26
|
+
await openReportFile(paths.html);
|
|
27
|
+
console.log(` Opened ${access.url}`);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.log(` ${paint(33, 'Warning')} ${error instanceof Error ? error.message : String(error)}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export function readyMigrationCommand(command) {
|
|
34
|
+
if (!command.source || !command.destination) {
|
|
35
|
+
throw new Error('Migration requires source and destination. Use --interactive to configure them in a TTY wizard.');
|
|
36
|
+
}
|
|
37
|
+
const { interactive: _interactive, ...rest } = command;
|
|
38
|
+
return { ...rest, source: command.source, destination: command.destination };
|
|
39
|
+
}
|
|
40
|
+
export async function runMigrationCommand(command) {
|
|
41
|
+
const workspace = await resolveWorkspace(command.workdir ? { explicit: command.workdir } : {});
|
|
42
|
+
const initialized = await initializeWorkspace(workspace);
|
|
43
|
+
const config = readWorkspaceConfig(workspace.configFile);
|
|
44
|
+
const secrets = secretValues(config);
|
|
45
|
+
const source = resolveSourceLocator(config, command.source, command.sourceProfile);
|
|
46
|
+
const destination = resolveDestinationLocator({
|
|
47
|
+
config,
|
|
48
|
+
value: command.destination,
|
|
49
|
+
...(command.destinationProfile ? { profile: command.destinationProfile } : {}),
|
|
50
|
+
...(command.format ? { format: command.format } : {}),
|
|
51
|
+
cwd: process.cwd(),
|
|
52
|
+
});
|
|
53
|
+
validateProfileSecrets(config, [source.profile, ...(destination.type === 'remote' ? [destination.profile] : [])]);
|
|
54
|
+
const stateFilename = command.stateFilename ? resolveWorkspacePath(workspace, command.stateFilename) : undefined;
|
|
55
|
+
const logger = createLogger(secrets);
|
|
56
|
+
const { Migrator: MigratorImplementation } = await import('./migrator.js');
|
|
57
|
+
const migrator = new MigratorImplementation(config, logger);
|
|
58
|
+
const controller = new AbortController();
|
|
59
|
+
let signalCode;
|
|
60
|
+
const interrupt = () => { signalCode = 130; controller.abort(new Error('Interrupted by SIGINT')); };
|
|
61
|
+
const terminate = () => { signalCode = 143; controller.abort(new Error('Interrupted by SIGTERM')); };
|
|
62
|
+
process.once('SIGINT', interrupt);
|
|
63
|
+
process.once('SIGTERM', terminate);
|
|
64
|
+
heading('ywtc transfer');
|
|
65
|
+
console.log(` Workdir ${workspace.root} ${paint(90, `(${workspace.source})`)}`);
|
|
66
|
+
console.log(` Source ${command.source} ${paint(90, `[${source.profile.name}]`)}`);
|
|
67
|
+
console.log(` Destination ${command.destination}${destination.type === 'remote' ? ` ${paint(90, `[${destination.profile.name}]`)}` : ` ${paint(90, `[${destination.format}]`)}`}`);
|
|
68
|
+
console.log(` Scope ${command.scope}`);
|
|
69
|
+
console.log(` Source state ${command.sourceStatus}`);
|
|
70
|
+
console.log(` Comments ${command.comments ? 'enabled' : 'disabled'}`);
|
|
71
|
+
console.log(` Mode ${command.dryRun ? paint(33, 'dry-run · read-only') : paint(35, 'live')}`);
|
|
72
|
+
if (initialized.created.length > 0)
|
|
73
|
+
console.log(` Initialized ${initialized.created.join(', ')}`);
|
|
74
|
+
let result;
|
|
75
|
+
const tasks = new Listr([
|
|
76
|
+
{
|
|
77
|
+
title: 'Discover, transfer, and verify',
|
|
78
|
+
task: async (_context, task) => {
|
|
79
|
+
result = await migrator.run({
|
|
80
|
+
source,
|
|
81
|
+
destination,
|
|
82
|
+
scope: command.scope,
|
|
83
|
+
sourceStatus: command.sourceStatus,
|
|
84
|
+
comments: command.comments,
|
|
85
|
+
dryRun: command.dryRun,
|
|
86
|
+
archive: command.archive,
|
|
87
|
+
fresh: command.fresh,
|
|
88
|
+
concurrency: command.concurrency ?? config.concurrency,
|
|
89
|
+
runtimeDirectory: workspace.statesDirectory,
|
|
90
|
+
cacheDirectory: workspace.cacheDirectory,
|
|
91
|
+
reportsDirectory: workspace.reportsDirectory,
|
|
92
|
+
signal: controller.signal,
|
|
93
|
+
...(stateFilename ? { stateFilename } : {}),
|
|
94
|
+
onStatus: (message) => { task.output = message; },
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
], {
|
|
99
|
+
renderer: process.stdout.isTTY ? 'default' : 'simple',
|
|
100
|
+
rendererOptions: { collapseErrors: false, collapseSubtasks: false },
|
|
101
|
+
collectErrors: true,
|
|
102
|
+
});
|
|
103
|
+
try {
|
|
104
|
+
await tasks.run();
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
if (signalCode) {
|
|
108
|
+
heading('Transfer interrupted');
|
|
109
|
+
console.log(` Status cancelled by ${signalCode === 130 ? 'SIGINT' : 'SIGTERM'}`);
|
|
110
|
+
console.log(` Workdir ${workspace.root}`);
|
|
111
|
+
console.log(` Reports ${workspace.reportsDirectory}`);
|
|
112
|
+
if (reportBearingError(error))
|
|
113
|
+
await printAndMaybeOpenReport(error.reportPaths, workspace.root, command.openReport);
|
|
114
|
+
console.log(` Resume ywtc migrate --source "${command.source}" --destination "${command.destination}" --scope ${command.scope}${command.sourceStatus === 'all' ? '' : ` --source-status ${command.sourceStatus}`} --workdir "${workspace.root}"`);
|
|
115
|
+
return {
|
|
116
|
+
code: signalCode,
|
|
117
|
+
workspaceRoot: workspace.root,
|
|
118
|
+
...(reportBearingError(error) ? { reportPaths: error.reportPaths } : {}),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
if (reportBearingError(error)) {
|
|
122
|
+
heading('Transfer failed');
|
|
123
|
+
console.log(' Status failed');
|
|
124
|
+
console.log(` State ${error.stateFilename}`);
|
|
125
|
+
await printAndMaybeOpenReport(error.reportPaths, workspace.root, command.openReport);
|
|
126
|
+
}
|
|
127
|
+
throw error;
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
process.removeListener('SIGINT', interrupt);
|
|
131
|
+
process.removeListener('SIGTERM', terminate);
|
|
132
|
+
}
|
|
133
|
+
if (!result)
|
|
134
|
+
throw new Error('Transfer completed without a result');
|
|
135
|
+
heading(result.status === 'completed' ? 'Transfer complete' : 'Transfer finished');
|
|
136
|
+
console.log(` Status ${result.status}`);
|
|
137
|
+
console.log(` State ${result.stateFilename}`);
|
|
138
|
+
await printAndMaybeOpenReport(result.reportPaths, workspace.root, command.openReport);
|
|
139
|
+
console.log(` Source root + ${result.summary.selectedDescendants}/${result.summary.returnedDescendants} descendants · ${result.summary.excludedPages} excluded · depth ${result.summary.maximumDepth}`);
|
|
140
|
+
console.log(` Assets ${result.summary.pages} pages · ${result.summary.resources} files · ${result.summary.sourceBytes} known bytes${result.summary.bytesUnknown ? ` · ${result.summary.bytesUnknown} sizes unknown` : ''}`);
|
|
141
|
+
console.log(` Pages ${result.summary.complete} complete · ${result.summary.partial} partial · ${result.summary.failed} failed · ${result.summary.blocked} blocked · ${result.summary.conflicts} conflicts · ${result.summary.notStartedPages} not started`);
|
|
142
|
+
console.log(` Files ${result.summary.resourcesComplete} complete · ${result.summary.resourcesPartial} partial · ${result.summary.resourcesFailed} failed · ${result.summary.resourcesBlocked} blocked · ${result.summary.resourcesNotStarted} not started${result.summary.resourcesPlanned ? ` · ${result.summary.resourcesPlanned} planned` : ''} · ${result.summary.bytes} transferred bytes`);
|
|
143
|
+
console.log(` Causes ${result.summary.rootErrors} root errors · ${result.summary.dependentPages} dependent pages · ${result.summary.dependentFiles} dependent files · ${result.summary.dependentComments} dependent comment archives`);
|
|
144
|
+
console.log(` Content ${result.summary.links} links · ${result.summary.cycles} traversal cycles · inventory ${result.summary.inventoryComplete ? 'complete' : 'incomplete'}`);
|
|
145
|
+
console.log(` Comments ${result.summary.comments} entries · ${result.summary.commentThreads} threads · ${result.summary.commentParticipants} participants · ${result.summary.commentAttachments} files · ${result.summary.commentBytes} bytes`);
|
|
146
|
+
console.log(` Quality ${result.summary.errors} errors · ${result.summary.warnings} warnings · ${result.summary.degradations} degradations · ${result.summary.adaptations} adaptations · ${result.summary.normalizations} safe normalizations · ${result.summary.preservedExternalReferences} external references preserved`);
|
|
147
|
+
if (result.output)
|
|
148
|
+
console.log(` Output ${result.output}`);
|
|
149
|
+
if (result.archive)
|
|
150
|
+
console.log(` Archive ${result.archive}`);
|
|
151
|
+
if (result.hasErrors)
|
|
152
|
+
console.log(` Resume ywtc migrate --source "${command.source}" --destination "${command.destination}" --scope ${command.scope}${command.sourceStatus === 'all' ? '' : ` --source-status ${command.sourceStatus}`}`);
|
|
153
|
+
return {
|
|
154
|
+
code: result.hasErrors ? 1 : 0,
|
|
155
|
+
result,
|
|
156
|
+
reportPaths: result.reportPaths,
|
|
157
|
+
workspaceRoot: workspace.root,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=migration-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-command.js","sourceRoot":"","sources":["../src/migration-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,QAAQ,CAAC;AAE7B,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAE,sBAAsB,EAAC,MAAM,aAAa,CAAC;AACtF,OAAO,EAAC,yBAAyB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAgB3F,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC5D,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,IAAI,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC;AAElG,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,EAAE,EAAE,G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