shared-hosting-sync 0.1.1 → 0.1.4

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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4 — 27 October 2026
4
+
5
+ - Use persistent per-file sync records for fast local size and timestamp checks.
6
+ Unchanged syncs and previews no longer connect to the server.
7
+ - Add a confirmed, read-only Scan server / Initial sync action to seed matching
8
+ files before the first sync, with baseline status and setup guidance.
9
+ - Share sync records across CLI, dashboard, and watch; record successful uploads
10
+ individually, and keep failed uploads and in-flight edits pending for retry.
11
+
12
+ - Add a DevSync SVG logo to the dashboard header, About & Help, and browser tab.
13
+ - Show the running app version beside the logo in About & Help, loaded from package
14
+ metadata on startup and refreshed whenever Help opens.
15
+
16
+ ## 0.1.3 — 27 October 2026
17
+
18
+ - Add a styled console startup banner with app version and creator contact details,
19
+ terminal-aware colors, and a compact layout for narrow terminals.
20
+ - Add a dedicated dashboard About & Help section with creator details, the running
21
+ version, setup guidance, troubleshooting, and documentation links.
22
+ - Keep unfinished project setup intact while About & Help is open.
23
+
3
24
  ## 0.1.1 — 26 October 2026
4
25
 
5
26
  - Fix dashboard “Edit setup” so saved projects can change their local folder,
package/README.md CHANGED
@@ -342,9 +342,23 @@ Provision any server-side application secrets separately.
342
342
  aliases are not coordinated. Keep `DEVSYNC_HOME` on a local disk.
343
343
  - Plan, sync, and watch use the resolved server destination. Missing destinations
344
344
  fail before connecting; `/` is allowed only when explicitly configured.
345
- - Equal-size files are compared using streamed SHA-256 hashes of local and remote
346
- contents. This reads matching-size remote files over the connection, increasing
347
- download traffic during previews and syncs. `--force` bypasses content comparison.
345
+ - Sync, preview, and watch compare local file size, modification time, and change
346
+ time with the last successful sync records in SQLite. Matching records survive
347
+ restarts. Unchanged syncs and previews do not connect to the server.
348
+ - Upload records are saved only after successful uploads. Failed files and files
349
+ edited during an upload remain pending. Preview-only runs do not update records.
350
+ - Records belong to a source folder and destination (protocol, host, port, account,
351
+ and server folder). Changing either starts a separate baseline.
352
+ - If files already exist on the server, use **Scan server / Initial sync** in the
353
+ dashboard once before your first sync. It asks for confirmation, compares server
354
+ content using SHA-256 for equal-size files, and saves only matching files. It
355
+ uploads or deletes nothing; use Sync changes afterward for pending files.
356
+ Terminal equivalent: `devsync scan [label]` (or `--confirm` for automation).
357
+ - Without existing records, Sync uploads every eligible local file and starts
358
+ tracking successful uploads. Normal Sync trusts those records: it does not detect
359
+ direct server edits or remote deletions. Use Deploy all files to restore local
360
+ content, or explicitly scan again to rebuild the baseline. Local deletions are
361
+ never mirrored to the server. `--force` uploads all eligible files.
348
362
  - Upload failures remain visible in the saved project status and make one-time
349
363
  sync commands exit unsuccessfully. Directory and inspection errors are surfaced.
350
364
  - Settings and encrypted saved credentials live in `~/.devsync/`; set
@@ -394,6 +408,6 @@ Thank you for supporting the project!
394
408
 
395
409
  ## License
396
410
 
397
- MIT. See [LICENSE](LICENSE).
398
-
399
-
411
+ MIT. See [LICENSE](LICENSE).
412
+
413
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-hosting-sync",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Deploy and sync local projects to shared hosting over FTP, FTPS, or SFTP, with a CLI and local dashboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "scripts": {
50
50
  "start": "node src/cli.js",
51
51
  "release:check": "node scripts/release-check.js",
52
- "test": "node test/ignore.test.js && node --test --test-timeout=60000 --test-concurrency=1 test/uploader.test.js test/transport-ftp.test.js test/cli-deployment.test.js test/cli-onboarding.test.js test/onboarding.test.js test/ui-onboarding.test.js test/ui-deployments.test.js test/reliability.test.js test/protocols.test.js test/transport-sftp.test.js test/watcher.test.js test/envResolver.test.js test/db.test.js test/secrets.test.js",
52
+ "test": "node test/ignore.test.js && node --test --test-timeout=60000 --test-concurrency=1 test/uploader.test.js test/sync-state.test.js test/transport-ftp.test.js test/cli-deployment.test.js test/cli-onboarding.test.js test/onboarding.test.js test/ui-onboarding.test.js test/ui-deployments.test.js test/ui-sync.test.js test/reliability.test.js test/protocols.test.js test/transport-sftp.test.js test/watcher.test.js test/envResolver.test.js test/db.test.js test/secrets.test.js",
53
53
  "prepack": "npm test",
54
54
  "prepublishOnly": "npm test"
55
55
  },
package/src/arguments.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const VALUE_FLAGS = new Set(['transport', 'env-file', 'remote-path', 'host', 'username', 'port', 'label', 'path'])
2
- const BOOL_FLAGS = new Set(['dry-run', 'force', 'plan', 'sync', 'edit', 'browse', 'browser', 'help', 'version'])
2
+ const BOOL_FLAGS = new Set(['confirm', 'dry-run', 'force', 'plan', 'sync', 'edit', 'browse', 'browser', 'help', 'version'])
3
3
 
4
4
  export function parseArgs(argv) {
5
5
  let command