Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
985311f
Add two-phase remote site import
adamziel Mar 27, 2026
4dfcb6e
Fix lint errors after rebase
adamziel Mar 27, 2026
9f5d51d
Support wp.com imports without secrets
adamziel Mar 31, 2026
607cc00
Fix CLI dist module type
adamziel Mar 31, 2026
3694f85
Fix CLI build output for site import
adamziel Mar 31, 2026
abf6834
Fix import URL normalization
adamziel Mar 31, 2026
14a4a66
Handle importer JSON stream output
adamziel Mar 31, 2026
71f8bd6
Fix filtered import progress display
adamziel Apr 1, 2026
c588af3
Stream importer progress and add abort
adamziel Apr 1, 2026
89eab7e
Repair unresumable file index state
adamziel Apr 1, 2026
403b2d0
Improve importer progress streaming
adamziel Apr 1, 2026
7c0e761
Refine importer timer updates
adamziel Apr 1, 2026
c59091e
Accumulate importer byte progress
adamziel Apr 1, 2026
bd22fb0
Fix importer state mounts
adamziel Apr 1, 2026
11f90d3
Run importer with native PHP
adamziel Apr 1, 2026
6a0c22c
Fix flatten source directory
adamziel Apr 1, 2026
da4b2dd
Restore files-sync state for skipped files
adamziel Apr 1, 2026
af8a4bb
Fix imported site SQLite startup
adamziel Apr 2, 2026
a27b066
Propagate JSPI flags through the CLI daemon
adamziel Apr 2, 2026
a7426dd
Repair stale completed site imports
adamziel Apr 2, 2026
28b7bce
Fix import repair test typing
adamziel Apr 2, 2026
b728477
Fix import repair test lint
adamziel Apr 2, 2026
52b780b
Lock db apply to SQLite rewrites
adamziel Apr 2, 2026
cad783d
Prefer importer new-site-url when available
adamziel Apr 2, 2026
7e274c6
Use importer new-site-url for db apply
adamziel Apr 2, 2026
a65e863
Fix imported site server startup
adamziel Apr 2, 2026
fe46fa9
Use importer flatten flow for repairs
adamziel Apr 2, 2026
7f2062d
Skip SQLite setup for imported sites and pass runtime constants to Pl…
adamziel Apr 2, 2026
61a9081
Add auto-login to import URLs, cumulative progress, and total file count
adamziel Apr 2, 2026
8a9bfd0
Reuse stored import secrets and pass --no-adaptive to all remote impo…
adamziel Apr 2, 2026
7ca405b
Pass --no-adaptive to flat-document-root and apply-runtime importer c…
adamziel Apr 2, 2026
1ce2aa8
Clean up import progress messages to avoid repetition
adamziel Apr 2, 2026
0025c82
Drop phase from progress output and suppress resuming events
adamziel Apr 2, 2026
e566b1d
Remove --on-fs-root-nonempty=preserve-local from files-sync commands
adamziel Apr 2, 2026
c5783e1
Fall back to downloading WP-CLI when bundled phar is missing
adamziel Apr 2, 2026
3d7101b
Download SQLite integration plugin when bundled files are missing
adamziel Apr 2, 2026
a592598
Fix WP-CLI download fallback to avoid circular dependency
adamziel Apr 2, 2026
f513ca5
Intercept process.exit from Playground CLI during server startup
adamziel Apr 2, 2026
a1fb9b8
Update Playground packages to 3.1.18 and improve server start error r…
adamziel Apr 7, 2026
3cfd43b
Fix lint and CodeQL issues
adamziel Apr 7, 2026
cbd2734
Mock PHP detection in migration-client test for CI environments
adamziel Apr 7, 2026
943e346
Skip sqlite3-dependent import tests when sqlite3 CLI is unavailable
adamziel Apr 7, 2026
f0cccaa
Merge remote-tracking branch 'origin/trunk' into adamziel/stream-impo…
adamziel Apr 7, 2026
6435ddd
Trigger CI re-run
adamziel Apr 7, 2026
a265e32
fixup! Merge remote-tracking branch 'origin/trunk' into adamziel/stre…
adamziel Apr 7, 2026
989fcc9
Fix CI test failures on Windows and Mac
adamziel Apr 7, 2026
d1248a9
Refactor native importer rewrite test to avoid PHP dependency
adamziel Apr 7, 2026
472b23c
Merge trunk into adamziel/stream-import-flow
adamziel Apr 8, 2026
3860b27
Use PHP WASM for active_plugins serialization roundtrip
adamziel Apr 8, 2026
d8a4211
Use PHP WASM to extract constants from imported runtime.php
adamziel Apr 8, 2026
e7cc266
Make all importer progress counters cumulative across restarts
adamziel Apr 8, 2026
726c45c
Fix auto-login for imported sites
adamziel Apr 8, 2026
8e73b2a
Truncate spinner progress text to terminal width
adamziel Apr 8, 2026
4f5b3b8
Stabilize file count display format during import progress
adamziel Apr 8, 2026
df58310
Skip unnecessary WP.com API calls during import resume
adamziel Apr 8, 2026
76c1684
Fix structured file count extraction from importer progress records
adamziel Apr 8, 2026
a36bf0a
Map importer field names to structured progress counters
adamziel Apr 8, 2026
8797ea3
Fix auto-login URLs to use /studio-auto-login endpoint with redirect_to
adamziel Apr 8, 2026
65bc091
Drop per-request files_completed from downloaded-files counter
adamziel Apr 8, 2026
575b949
Show progress for database download and apply phases
adamziel Apr 8, 2026
cf85b88
Only show file count when total is known, lock totals once set
adamziel Apr 8, 2026
1a6680f
Stop accumulating file and byte counts across importer restarts
adamziel Apr 8, 2026
171f2ec
Consume importer's download-list-based files_done and files_total
adamziel Apr 8, 2026
c7b7e40
Consolidate files_imported into files_done
adamziel Apr 8, 2026
7ac283c
Hold high-water mark for files_done and downloadedBytes
adamziel Apr 8, 2026
0c4946c
Fix lost file counts and show phase-aware progress label
adamziel Apr 8, 2026
d2a1af0
Suppress debug messages like 'Waiting for server response'
adamziel Apr 8, 2026
2d94ebb
Merge trunk into adamziel/stream-import-flow
adamziel Apr 8, 2026
cd909d1
Fix --filter=skipped-earlier crash on resume
adamziel Apr 8, 2026
61979f9
Track exact import progress and lengthen file sync requests
adamziel Apr 10, 2026
7630bbd
Upgrade ora to v9.3.0 to fix the disappearing lines bug
adamziel Apr 10, 2026
8739544
Lock progress label after streaming phase to prevent blink on restart
adamziel Apr 10, 2026
7c1bb3e
Mount /scripts for Atomic imports and strip production drop-ins
adamziel Apr 10, 2026
d64e8be
Move production drop-in removal and /scripts auto-detection into the …
adamziel Apr 10, 2026
74ac1c4
Rebuild importer.phar with paths_removed state persistence
adamziel Apr 10, 2026
9d4cd8c
Merge remote-tracking branch 'origin/trunk' into adamziel/stream-impo…
adamziel Apr 10, 2026
06fb925
Fix lint formatting and update test assertion after trunk merge
adamziel Apr 10, 2026
5f91a4d
Fix prettier formatting in test assertion
adamziel Apr 11, 2026
7a1ee46
Rename importer.phar to reprint.phar
adamziel Apr 11, 2026
f7a5bc4
Always ship reprint.phar bundled, remove download fallback
adamziel Apr 11, 2026
bcbd08a
Fix stale comment: reprint.phar is bundled, not downloaded
adamziel Apr 11, 2026
7121934
Rename streaming import command to pull-streaming
adamziel Apr 11, 2026
429d651
Fix wp-files not being bundled into CLI dist
adamziel Apr 11, 2026
0536fa2
Fix path traversal in getExtraDirectoryMountsFromImporterState
adamziel Apr 11, 2026
375afa1
Disable custom sqlite3 queries to deactivate plugins
adamziel Apr 11, 2026
d15fe24
Delete unused declarations
adamziel Apr 11, 2026
dd5ff2a
Document repairCompletedImportState with concrete failure scenarios
adamziel Apr 11, 2026
7fbb68b
Remove speculative corruption checks from repairCompletedImportState
adamziel Apr 11, 2026
eeeffa0
Stream stdout instead of buffering it during imports
adamziel Apr 11, 2026
ce768f5
Fix silent failures and SIGINT handler ordering
adamziel Apr 11, 2026
41580ca
Deduplicate server config, rename ImporterResult, document constants
adamziel Apr 11, 2026
36dad72
Tighten error handling, fix SIGINT ordering and php.exit cleanup
adamziel Apr 11, 2026
beb6d38
Remove native PHP code path from migration client
adamziel Apr 11, 2026
1501d55
Rename pull-streaming to pull-reprint and importer to reprint
adamziel Apr 11, 2026
a8990ba
Document runtime-start-options and the .ht.sqlite.php rename
adamziel Apr 11, 2026
11753a2
Retrigger CI
adamziel Apr 11, 2026
39cce38
Update reprint.phar to v0.1.39
adamziel Apr 12, 2026
03eb345
Add npm run update-reprint to download the latest reprint.phar
adamziel Apr 13, 2026
73d7391
Update reprint.phar to v0.1.40
adamziel Apr 13, 2026
a6ae0d6
Update reprint.phar – adds start.json with structured mount paths
adamziel Apr 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions apps/cli/commands/site/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,14 @@ export async function runCommand(
}

if ( deleteFiles ) {
if ( fs.existsSync( siteFolder ) ) {
const deleteTargets = [ siteFolder, site.technicalSiteDirectory ]
.filter( ( value ): value is string => Boolean( value ) )
.filter( ( value, index, values ) => values.indexOf( value ) === index )
.filter( ( value ) => fs.existsSync( value ) );

if ( deleteTargets.length > 0 ) {
logger.reportStart( LoggerAction.DELETE_FILES, __( 'Moving site files to trash…' ) );
await trash( siteFolder );
await trash( deleteTargets );
logger.reportSuccess( __( 'Site files moved to trash' ) );
} else {
logger.reportSuccess( __( 'Site files already removed' ) );
Expand Down
Loading
Loading