aspect-sync 0.0.17 → 0.0.19

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
@@ -121,6 +121,7 @@ npx aspect-sync \
121
121
  | `--api-key <key>` | Aspect API key (or set `ASPECT_API_KEY` env var) | Yes | - |
122
122
  | `--api-url <url>` | Aspect API URL (or set `ASPECT_API_URL` env var) | No | `https://api.aspect.inc` |
123
123
  | `--concurrent <number>` | Max concurrent chunk uploads | No | `16` |
124
+ | `--batch-size <size>` | Run the migration in download→upload batches (e.g., `500GB`, `1TB`) so data is uploaded as soon as each batch finishes downloading. | No | Disabled |
124
125
  | `--keep-local` | Keep local files after upload (for debugging) | No | `false` |
125
126
  | `--check` | Run in check-only mode (list remote files and compare with Aspect without downloading/uploading) | No | `false` |
126
127
  | `--temp-dir <path>` | Base temporary directory for synced files | No | `~/.aspect/sync` |
package/dist/sync.js CHANGED
@@ -155,8 +155,8 @@ export class SyncOrchestrator {
155
155
  statusTracker.initBatchProgress(batches.length, allRemoteFiles.length, totalSize);
156
156
  // Step 7: Start CLI display
157
157
  cliDisplay.start();
158
- const THROTTLE_ASSET_EXISTENCE_CHECK_THRESHOLD = 2; // throttle after 5 in a row
159
- const THROTTLE_ASSET_EXISTENCE_CHECK_TIME = 1000; // throttle for 1 second
158
+ const THROTTLE_ASSET_EXISTENCE_CHECK_THRESHOLD = 3; // throttle after 3 in a row
159
+ const THROTTLE_ASSET_EXISTENCE_CHECK_TIME = 2000; // throttle for 1 second
160
160
  let throttleAssetExistenceCheckCount = 0; // how many times in a row we've done the asset existence check
161
161
  const summaryTotals = {
162
162
  totalFileCount: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspect-sync",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "CLI tool to sync files from external services to Aspect via rclone",
5
5
  "main": "dist/index.js",
6
6
  "bin": {