@narumitw/pi-sync 0.60.2 → 0.60.5

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +10 -0
  3. package/dist/chunks/{chunk-FOMZEZER.ts → chunk-6KIWZ4AY.ts} +360 -60
  4. package/dist/chunks/chunk-6KIWZ4AY.ts.map +7 -0
  5. package/dist/chunks/{chunk-B53FS4RW.ts → chunk-F64YWRXG.ts} +2 -2
  6. package/dist/chunks/{chunk-ENFHHB5O.ts → chunk-H7VOTY5N.ts} +55 -6
  7. package/dist/chunks/chunk-H7VOTY5N.ts.map +7 -0
  8. package/dist/chunks/{chunk-E7UJHMNW.ts → chunk-V2QIMC3U.ts} +2 -2
  9. package/dist/chunks/{chunk-3YXBG7BQ.ts → chunk-YVH5VJR4.ts} +2 -2
  10. package/dist/chunks/{command-handler-RTBEFZUX.ts → command-handler-TNPWFIPG.ts} +10 -8
  11. package/dist/chunks/command-handler-TNPWFIPG.ts.map +7 -0
  12. package/dist/chunks/{conflict-review-YXROU42F.ts → conflict-review-ETCSYJTH.ts} +3 -3
  13. package/dist/chunks/{manager-result-dispatcher-4PEUHK7F.ts → manager-result-dispatcher-2GFNWHDM.ts} +4 -4
  14. package/dist/chunks/{manager-ui-TNAMQNEU.ts → manager-ui-LFONXWQN.ts} +8 -8
  15. package/dist/chunks/{remote-selection-ui-47H7V62F.ts → remote-selection-ui-GFR6TDTX.ts} +3 -3
  16. package/dist/chunks/{sync-inspection-5GQEB62G.ts → sync-inspection-6VGR2UVZ.ts} +3 -3
  17. package/dist/chunks/{sync-operations-65HDA67O.ts → sync-operations-SAKAZL6Z.ts} +3 -3
  18. package/dist/index.ts +64 -41
  19. package/dist/index.ts.map +3 -3
  20. package/docs/agent-mode-verification.md +1 -1
  21. package/docs/agent-quality-verification.md +1 -1
  22. package/docs/continuous-sync-verification.md +1 -1
  23. package/docs/daemon-migration.md +88 -6
  24. package/docs/tui-contract.md +7 -1
  25. package/package.json +3 -3
  26. package/skills/configure-pi-sync/references/configuration.md +1 -0
  27. package/src/commands/command-execution.ts +1 -1
  28. package/src/commands/command-handler.ts +2 -0
  29. package/src/daemon/pi-client.ts +302 -57
  30. package/src/daemon/queue-release-ui.ts +88 -0
  31. package/src/sync-extension.ts +68 -43
  32. package/src/ui/sync-status.ts +67 -4
  33. package/dist/chunks/chunk-ENFHHB5O.ts.map +0 -7
  34. package/dist/chunks/chunk-FOMZEZER.ts.map +0 -7
  35. package/dist/chunks/command-handler-RTBEFZUX.ts.map +0 -7
  36. package/docs/settings.md +0 -90
  37. /package/dist/chunks/{chunk-B53FS4RW.ts.map → chunk-F64YWRXG.ts.map} +0 -0
  38. /package/dist/chunks/{chunk-E7UJHMNW.ts.map → chunk-V2QIMC3U.ts.map} +0 -0
  39. /package/dist/chunks/{chunk-3YXBG7BQ.ts.map → chunk-YVH5VJR4.ts.map} +0 -0
  40. /package/dist/chunks/{conflict-review-YXROU42F.ts.map → conflict-review-ETCSYJTH.ts.map} +0 -0
  41. /package/dist/chunks/{manager-result-dispatcher-4PEUHK7F.ts.map → manager-result-dispatcher-2GFNWHDM.ts.map} +0 -0
  42. /package/dist/chunks/{manager-ui-TNAMQNEU.ts.map → manager-ui-LFONXWQN.ts.map} +0 -0
  43. /package/dist/chunks/{remote-selection-ui-47H7V62F.ts.map → remote-selection-ui-GFR6TDTX.ts.map} +0 -0
  44. /package/dist/chunks/{sync-inspection-5GQEB62G.ts.map → sync-inspection-6VGR2UVZ.ts.map} +0 -0
  45. /package/dist/chunks/{sync-operations-65HDA67O.ts.map → sync-operations-SAKAZL6Z.ts.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @narumitw/pi-sync
2
2
 
3
+ ## 0.60.5
4
+
5
+ ### Patch Changes
6
+
7
+ - d96f85d: Retry lost file-queue release acknowledgements on the same daemon without
8
+ replaying transfers. Keep brief retries quiet and show a recovery status for
9
+ longer waits. The daemon client exposes an optional queue-release delivery
10
+ observer without changing the IPC protocol.
11
+ - Updated dependencies [d96f85d]
12
+ - @narumitw/pi-sync-daemon@0.6.0
13
+
14
+ ## 0.60.4
15
+
16
+ ### Patch Changes
17
+
18
+ - 1f44df7: On the first active connection after an update, Pi Sync can replace an older daemon only if compatible, authenticated IPC works and no retained unattended grant blocks the upgrade. The replacement waits for the old daemon to release its identity and exit. If any check fails, follow the [manual recovery guide](https://github.com/narumiruna/pi-extensions/blob/main/packages/pi-sync/docs/daemon-migration.md#ownership-and-upgrade). Passive and shutdown paths do not start a replacement. If an interactive session switch cannot upgrade the daemon, keep file protection when the old owner can still accept the session. Use `status` to find the pending or last recorded owner. When `repair-upgrade` successfully repairs a pending upgrade after verifying exit, it revokes all retained unattended grants and keeps the recovery records in one private archive across retries. It does not start a daemon.
19
+ - fdbd6d6: Restore one line per stage in daemon startup timing reports in the TUI and RPC notifications.
20
+ - Updated dependencies [1f44df7]
21
+ - Updated dependencies [df62c83]
22
+ - @narumitw/pi-sync-daemon@0.5.0
23
+ - @narumitw/pi-tui-kit@0.70.1
24
+
25
+ ## 0.60.3
26
+
27
+ ### Patch Changes
28
+
29
+ - b7d9e1c: Fix a hang after accepting a resource reload following a pull or rollback. Finish the sync operation and close its dialogs before reloading Pi.
30
+ - b4d548c: Treat an empty session path as absent instead of invalid, so `pi --no-session` runs stop reporting `Pi session paths must be absolute` on startup while still syncing nothing for that ephemeral session.
31
+ - 223b0ba: Restore a live Pi session after its heartbeat expires without reloading Pi. The
32
+ daemon distinguishes heartbeat expiry from deliberate disconnection and keeps
33
+ file-queue and session protection in place. Pi Sync reconnects to the same owner
34
+ without resubmitting interrupted operations, and checks participation before
35
+ reporting that it is connected.
36
+ - Updated dependencies [223b0ba]
37
+ - @narumitw/pi-sync-daemon@0.4.0
38
+
3
39
  ## 0.60.2
4
40
 
5
41
  ### Patch Changes
package/README.md CHANGED
@@ -45,6 +45,10 @@ The package declares `dist/index.ts`, so an unbuilt checkout must run the build
45
45
 
46
46
  Extensions run with Pi's permissions, so install only packages from sources you trust.
47
47
 
48
+ Revoke retained unattended permission before updating. After updating, use `/reload` in open Pi
49
+ sessions. If the upgrade is blocked or the old owner's exit is uncertain, follow the
50
+ [daemon upgrade guide](./docs/daemon-migration.md#ownership-and-upgrade).
51
+
48
52
  Use a Pi runtime that satisfies this package’s declared peer floor. Installing an extension dependency does not upgrade a separately installed Pi runtime. The declared Kit floor supplies exact scrolling/paginated review and configured-keybinding support.
49
53
 
50
54
  ## 🚀 Quick start
@@ -313,6 +317,12 @@ Read the [settings reference](./skills/configure-pi-sync/references/configuratio
313
317
  | `/sync migrate-state` | Migrate the legacy local state directory. |
314
318
  | `/sync unlock --stale` | Recover an abandoned local lock after guarded ownership checks. |
315
319
 
320
+ Brief interruptions to file-write queue acknowledgements recover in the
321
+ background when possible, without replaying a transfer. Longer waits can
322
+ show `sync recovering`. If cleanup remains uncertain, review
323
+ [daemon recovery](./docs/daemon-migration.md#write-coordination-and-disconnection)
324
+ before retrying.
325
+
316
326
  Use the installed CLI, `pi-sync-daemon stop --root <agent-directory>` or `pi-sync-daemon restart --root <agent-directory>`, for explicit service lifecycle control; these are not `/sync daemon` actions. Stop drains the service; reload Pi to reattach its session afterward. Explicit CLI start without clients also follows the 30-second grace policy. The next eligible interactive client or explicit command can restart only after the old owner's exit is proven; print/JSON never launch a service. Uncertain consent, failed revocation, or cleanup failure remains paused for the existing repair/revocation path, not silently cleared by automatic restart. No new setting, environment variable, or keep-alive flag is added. See [lifetime and recovery](./docs/daemon-migration.md).
317
327
 
318
328
  All routes support TUI and RPC; RPC settings and included-content screens are read-only.