@narumitw/pi-sync 0.71.1 → 0.71.2

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 (167) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/chunks/{agent-plan-A6CS3XXA.ts → agent-plan-RZYCE5OS.ts} +15 -15
  4. package/dist/chunks/{chunk-RFJWUIV5.ts → chunk-36CY6QDF.ts} +30 -31
  5. package/dist/chunks/chunk-36CY6QDF.ts.map +7 -0
  6. package/dist/chunks/{chunk-IFJXUHHC.ts → chunk-3LB5YP2P.ts} +3 -3
  7. package/dist/chunks/{chunk-MS6HLJFR.ts → chunk-3LGVYJFC.ts} +7 -7
  8. package/dist/chunks/{chunk-T22OVZSI.ts → chunk-4FEFBPVA.ts} +4 -4
  9. package/dist/chunks/{chunk-TAOYC2YG.ts → chunk-5O6O74G5.ts} +2 -2
  10. package/dist/chunks/{chunk-W3YS4Y2Q.ts → chunk-5UURT4LR.ts} +15 -6
  11. package/dist/chunks/chunk-5UURT4LR.ts.map +7 -0
  12. package/dist/chunks/{chunk-JPLT2DG6.ts → chunk-72AVEVDF.ts} +6 -6
  13. package/dist/chunks/{chunk-RRFW2UAD.ts → chunk-7FMAJ56J.ts} +4 -4
  14. package/dist/chunks/{chunk-QJTU5SCJ.ts → chunk-ABU7CXAG.ts} +2 -2
  15. package/dist/chunks/{chunk-D34Y5JSL.ts → chunk-BC4P223U.ts} +4 -4
  16. package/dist/chunks/{chunk-WT2722L4.ts → chunk-CH4KLBTH.ts} +6 -6
  17. package/dist/chunks/{chunk-QRSESWT2.ts → chunk-CXNCR2AE.ts} +2 -2
  18. package/dist/chunks/{chunk-AA2G3HTW.ts → chunk-DA5AW5JQ.ts} +3 -3
  19. package/dist/chunks/{chunk-ES4FIIHZ.ts → chunk-DN5GOY65.ts} +1 -1
  20. package/dist/chunks/{chunk-ES4FIIHZ.ts.map → chunk-DN5GOY65.ts.map} +2 -2
  21. package/dist/chunks/{chunk-3M3KQFSQ.ts → chunk-EEPH2FPC.ts} +2 -2
  22. package/dist/chunks/{chunk-V66NV2HZ.ts → chunk-G4DPBJAU.ts} +7 -7
  23. package/dist/chunks/{chunk-KDTDGAOM.ts → chunk-GKIBDRT3.ts} +2 -2
  24. package/dist/chunks/{chunk-WETDHZAD.ts → chunk-HUUQUCSX.ts} +3 -3
  25. package/dist/chunks/{chunk-YLVRV6NM.ts → chunk-IJECQD65.ts} +2 -2
  26. package/dist/chunks/{chunk-MTUR4H7S.ts → chunk-K4LJOMYD.ts} +9 -9
  27. package/dist/chunks/{chunk-FT45DX6E.ts → chunk-KFUZZROG.ts} +14 -14
  28. package/dist/chunks/{chunk-AVLYLWA7.ts → chunk-KZKBQ474.ts} +5 -5
  29. package/dist/chunks/{chunk-YV776ZPN.ts → chunk-LZGSJKKQ.ts} +4 -4
  30. package/dist/chunks/{chunk-DLA5RPFP.ts → chunk-M6C5UVNO.ts} +2 -2
  31. package/dist/chunks/{chunk-FIEW5453.ts → chunk-M7ZDYH7G.ts} +5 -5
  32. package/dist/chunks/{chunk-NFZMKZ2D.ts → chunk-MEXYSX5Y.ts} +2 -2
  33. package/dist/chunks/{chunk-2G6GTIWW.ts → chunk-N6ZK34AM.ts} +7 -7
  34. package/dist/chunks/{chunk-MHERAG42.ts → chunk-NOAQCRP6.ts} +6 -6
  35. package/dist/chunks/{chunk-INUH2UXN.ts → chunk-NOPE2X6N.ts} +2 -2
  36. package/dist/chunks/{chunk-U6CORBHU.ts → chunk-NP6NTBI2.ts} +2 -2
  37. package/dist/chunks/{chunk-NFW5HLKA.ts → chunk-PFVGR5PB.ts} +5 -5
  38. package/dist/chunks/{chunk-2BMTS5OW.ts → chunk-RLP6VXRF.ts} +3 -3
  39. package/dist/chunks/{chunk-A7KJUFLX.ts → chunk-SJRCMS56.ts} +15 -8
  40. package/dist/chunks/chunk-SJRCMS56.ts.map +7 -0
  41. package/dist/chunks/{chunk-GDA35HWZ.ts → chunk-TDYYLKSB.ts} +6 -6
  42. package/dist/chunks/{chunk-YVHXQZIH.ts → chunk-TS2REUA6.ts} +4 -4
  43. package/dist/chunks/{chunk-DH52CVRD.ts → chunk-V6FUEJJA.ts} +22 -22
  44. package/dist/chunks/{chunk-DH52CVRD.ts.map → chunk-V6FUEJJA.ts.map} +2 -2
  45. package/dist/chunks/{chunk-6VGQ6THO.ts → chunk-YATSYNIM.ts} +3 -3
  46. package/dist/chunks/{chunk-C2YD64T6.ts → chunk-YHOVBAQI.ts} +3 -3
  47. package/dist/chunks/{chunk-GC5XDUVA.ts → chunk-YUKFRKAE.ts} +7 -7
  48. package/dist/chunks/{chunk-OTI4XVCS.ts → chunk-ZNAA4FNG.ts} +2 -2
  49. package/dist/chunks/{chunk-ZWOKNJDT.ts → chunk-ZSH6DHQI.ts} +4 -4
  50. package/dist/chunks/{command-handler-SMARANCT.ts → command-handler-XB2GQIQ4.ts} +21 -21
  51. package/dist/chunks/{config-PUZS2ZBP.ts → config-JPCGGETF.ts} +6 -6
  52. package/dist/chunks/{conflict-artifacts-77PI6IXK.ts → conflict-artifacts-UUWACJBW.ts} +12 -12
  53. package/dist/chunks/{conflict-review-OO57TGMR.ts → conflict-review-GKFIWYCK.ts} +15 -15
  54. package/dist/chunks/{conflict-review-HHGVL5TP.ts → conflict-review-SACA5537.ts} +26 -26
  55. package/dist/chunks/{continuous-record-QIIFQNKP.ts → continuous-record-AP6LVXUJ.ts} +9 -9
  56. package/dist/chunks/{debug-tool-execution-AIQAGPMJ.ts → debug-tool-execution-HQ4ITDWB.ts} +11 -11
  57. package/dist/chunks/{diff-review-QRHOHG5C.ts → diff-review-LVIYNDLG.ts} +5 -5
  58. package/dist/chunks/{file-selection-ZEBPDRHG.ts → file-selection-4UE2RUOC.ts} +14 -14
  59. package/dist/chunks/{git-backend-I2IJ5ULJ.ts → git-backend-XOAHKZMR.ts} +8 -8
  60. package/dist/chunks/{initialization-XGYWRNPQ.ts → initialization-OVZUKZ6H.ts} +10 -10
  61. package/dist/chunks/{local-diff-review-OGZM3TA7.ts → local-diff-review-CJWITN2A.ts} +29 -29
  62. package/dist/chunks/{local-fields-PIKOEXWR.ts → local-fields-Z4RMLREX.ts} +6 -6
  63. package/dist/chunks/{manager-result-dispatcher-72YGSLHL.ts → manager-result-dispatcher-N2INFZFN.ts} +18 -18
  64. package/dist/chunks/{manager-ui-5SXPS4SE.ts → manager-ui-ROKHMOQF.ts} +28 -28
  65. package/dist/chunks/{merge-baseline-store-MI7SHGDH.ts → merge-baseline-store-M3HLNMAE.ts} +7 -7
  66. package/dist/chunks/{merge-journal-46QC5N7D.ts → merge-journal-37ED5KZY.ts} +11 -11
  67. package/dist/chunks/{remote-selection-ui-4BXJAZUD.ts → remote-selection-ui-CJ5ICXMF.ts} +17 -17
  68. package/dist/chunks/{s3-backend-ZRMOWH5R.ts → s3-backend-CBUPAAS4.ts} +13 -13
  69. package/dist/chunks/{session-push-55IV4IW3.ts → session-push-TNYJYIKE.ts} +16 -16
  70. package/dist/chunks/{setup-switch-DXDUBDQI.ts → setup-switch-QBW7RNRW.ts} +12 -12
  71. package/dist/chunks/{setup-wizard-ICPQERAE.ts → setup-wizard-IX67AV3T.ts} +14 -14
  72. package/dist/chunks/{snapshot-HDARHOQZ.ts → snapshot-I7EZP5Q7.ts} +5 -5
  73. package/dist/chunks/{snapshot-LZ6XKFA4.ts → snapshot-T26QGKIX.ts} +5 -5
  74. package/dist/chunks/{snapshot-transaction-LYR5OFLR.ts → snapshot-transaction-C2SEYO5T.ts} +11 -11
  75. package/dist/chunks/{sync-inspection-PMEXXLDK.ts → sync-inspection-HIGQPANV.ts} +10 -10
  76. package/dist/chunks/sync-inspection-T7COH3PW.ts +29 -0
  77. package/dist/chunks/sync-operations-E7SAZJEF.ts +69 -0
  78. package/dist/chunks/{sync-operations-VSMA5GSA.ts → sync-operations-XI7RJZWI.ts} +14 -14
  79. package/dist/chunks/{sync-state-72ZDKUQW.ts → sync-state-7R5EOJIY.ts} +7 -7
  80. package/dist/chunks/{sync-state-store-YTMAZQ3Z.ts → sync-state-store-ELTCECE4.ts} +5 -5
  81. package/dist/chunks/{webdav-backend-3AZOECVQ.ts → webdav-backend-EK5UCAQE.ts} +10 -10
  82. package/dist/index.ts +19 -19
  83. package/docs/daemon-migration.md +1 -1
  84. package/docs/merge-implementation-audit.md +2 -2
  85. package/package.json +1 -1
  86. package/skills/configure-pi-sync/references/configuration.md +1 -0
  87. package/src/engine/host.ts +1 -0
  88. package/src/engine/snapshot/snapshot-apply.ts +1 -1
  89. package/src/engine/snapshot/snapshot-transaction-policy.ts +1 -0
  90. package/src/engine/snapshot/snapshot-transaction.ts +7 -0
  91. package/src/engine/sync/sync-mutations.ts +14 -12
  92. package/src/runtime/local-host.ts +1 -0
  93. package/src/runtime/session-presence.ts +13 -4
  94. package/dist/chunks/chunk-A7KJUFLX.ts.map +0 -7
  95. package/dist/chunks/chunk-RFJWUIV5.ts.map +0 -7
  96. package/dist/chunks/chunk-W3YS4Y2Q.ts.map +0 -7
  97. package/dist/chunks/sync-inspection-N6TELULU.ts +0 -29
  98. package/dist/chunks/sync-operations-KKSIS2CI.ts +0 -69
  99. /package/dist/chunks/{agent-plan-A6CS3XXA.ts.map → agent-plan-RZYCE5OS.ts.map} +0 -0
  100. /package/dist/chunks/{chunk-IFJXUHHC.ts.map → chunk-3LB5YP2P.ts.map} +0 -0
  101. /package/dist/chunks/{chunk-MS6HLJFR.ts.map → chunk-3LGVYJFC.ts.map} +0 -0
  102. /package/dist/chunks/{chunk-T22OVZSI.ts.map → chunk-4FEFBPVA.ts.map} +0 -0
  103. /package/dist/chunks/{chunk-TAOYC2YG.ts.map → chunk-5O6O74G5.ts.map} +0 -0
  104. /package/dist/chunks/{chunk-JPLT2DG6.ts.map → chunk-72AVEVDF.ts.map} +0 -0
  105. /package/dist/chunks/{chunk-RRFW2UAD.ts.map → chunk-7FMAJ56J.ts.map} +0 -0
  106. /package/dist/chunks/{chunk-QJTU5SCJ.ts.map → chunk-ABU7CXAG.ts.map} +0 -0
  107. /package/dist/chunks/{chunk-D34Y5JSL.ts.map → chunk-BC4P223U.ts.map} +0 -0
  108. /package/dist/chunks/{chunk-WT2722L4.ts.map → chunk-CH4KLBTH.ts.map} +0 -0
  109. /package/dist/chunks/{chunk-QRSESWT2.ts.map → chunk-CXNCR2AE.ts.map} +0 -0
  110. /package/dist/chunks/{chunk-AA2G3HTW.ts.map → chunk-DA5AW5JQ.ts.map} +0 -0
  111. /package/dist/chunks/{chunk-3M3KQFSQ.ts.map → chunk-EEPH2FPC.ts.map} +0 -0
  112. /package/dist/chunks/{chunk-V66NV2HZ.ts.map → chunk-G4DPBJAU.ts.map} +0 -0
  113. /package/dist/chunks/{chunk-KDTDGAOM.ts.map → chunk-GKIBDRT3.ts.map} +0 -0
  114. /package/dist/chunks/{chunk-WETDHZAD.ts.map → chunk-HUUQUCSX.ts.map} +0 -0
  115. /package/dist/chunks/{chunk-YLVRV6NM.ts.map → chunk-IJECQD65.ts.map} +0 -0
  116. /package/dist/chunks/{chunk-MTUR4H7S.ts.map → chunk-K4LJOMYD.ts.map} +0 -0
  117. /package/dist/chunks/{chunk-FT45DX6E.ts.map → chunk-KFUZZROG.ts.map} +0 -0
  118. /package/dist/chunks/{chunk-AVLYLWA7.ts.map → chunk-KZKBQ474.ts.map} +0 -0
  119. /package/dist/chunks/{chunk-YV776ZPN.ts.map → chunk-LZGSJKKQ.ts.map} +0 -0
  120. /package/dist/chunks/{chunk-DLA5RPFP.ts.map → chunk-M6C5UVNO.ts.map} +0 -0
  121. /package/dist/chunks/{chunk-FIEW5453.ts.map → chunk-M7ZDYH7G.ts.map} +0 -0
  122. /package/dist/chunks/{chunk-NFZMKZ2D.ts.map → chunk-MEXYSX5Y.ts.map} +0 -0
  123. /package/dist/chunks/{chunk-2G6GTIWW.ts.map → chunk-N6ZK34AM.ts.map} +0 -0
  124. /package/dist/chunks/{chunk-MHERAG42.ts.map → chunk-NOAQCRP6.ts.map} +0 -0
  125. /package/dist/chunks/{chunk-INUH2UXN.ts.map → chunk-NOPE2X6N.ts.map} +0 -0
  126. /package/dist/chunks/{chunk-U6CORBHU.ts.map → chunk-NP6NTBI2.ts.map} +0 -0
  127. /package/dist/chunks/{chunk-NFW5HLKA.ts.map → chunk-PFVGR5PB.ts.map} +0 -0
  128. /package/dist/chunks/{chunk-2BMTS5OW.ts.map → chunk-RLP6VXRF.ts.map} +0 -0
  129. /package/dist/chunks/{chunk-GDA35HWZ.ts.map → chunk-TDYYLKSB.ts.map} +0 -0
  130. /package/dist/chunks/{chunk-YVHXQZIH.ts.map → chunk-TS2REUA6.ts.map} +0 -0
  131. /package/dist/chunks/{chunk-6VGQ6THO.ts.map → chunk-YATSYNIM.ts.map} +0 -0
  132. /package/dist/chunks/{chunk-C2YD64T6.ts.map → chunk-YHOVBAQI.ts.map} +0 -0
  133. /package/dist/chunks/{chunk-GC5XDUVA.ts.map → chunk-YUKFRKAE.ts.map} +0 -0
  134. /package/dist/chunks/{chunk-OTI4XVCS.ts.map → chunk-ZNAA4FNG.ts.map} +0 -0
  135. /package/dist/chunks/{chunk-ZWOKNJDT.ts.map → chunk-ZSH6DHQI.ts.map} +0 -0
  136. /package/dist/chunks/{command-handler-SMARANCT.ts.map → command-handler-XB2GQIQ4.ts.map} +0 -0
  137. /package/dist/chunks/{config-PUZS2ZBP.ts.map → config-JPCGGETF.ts.map} +0 -0
  138. /package/dist/chunks/{conflict-artifacts-77PI6IXK.ts.map → conflict-artifacts-UUWACJBW.ts.map} +0 -0
  139. /package/dist/chunks/{conflict-review-OO57TGMR.ts.map → conflict-review-GKFIWYCK.ts.map} +0 -0
  140. /package/dist/chunks/{conflict-review-HHGVL5TP.ts.map → conflict-review-SACA5537.ts.map} +0 -0
  141. /package/dist/chunks/{continuous-record-QIIFQNKP.ts.map → continuous-record-AP6LVXUJ.ts.map} +0 -0
  142. /package/dist/chunks/{debug-tool-execution-AIQAGPMJ.ts.map → debug-tool-execution-HQ4ITDWB.ts.map} +0 -0
  143. /package/dist/chunks/{diff-review-QRHOHG5C.ts.map → diff-review-LVIYNDLG.ts.map} +0 -0
  144. /package/dist/chunks/{file-selection-ZEBPDRHG.ts.map → file-selection-4UE2RUOC.ts.map} +0 -0
  145. /package/dist/chunks/{git-backend-I2IJ5ULJ.ts.map → git-backend-XOAHKZMR.ts.map} +0 -0
  146. /package/dist/chunks/{initialization-XGYWRNPQ.ts.map → initialization-OVZUKZ6H.ts.map} +0 -0
  147. /package/dist/chunks/{local-diff-review-OGZM3TA7.ts.map → local-diff-review-CJWITN2A.ts.map} +0 -0
  148. /package/dist/chunks/{local-fields-PIKOEXWR.ts.map → local-fields-Z4RMLREX.ts.map} +0 -0
  149. /package/dist/chunks/{manager-result-dispatcher-72YGSLHL.ts.map → manager-result-dispatcher-N2INFZFN.ts.map} +0 -0
  150. /package/dist/chunks/{manager-ui-5SXPS4SE.ts.map → manager-ui-ROKHMOQF.ts.map} +0 -0
  151. /package/dist/chunks/{merge-baseline-store-MI7SHGDH.ts.map → merge-baseline-store-M3HLNMAE.ts.map} +0 -0
  152. /package/dist/chunks/{merge-journal-46QC5N7D.ts.map → merge-journal-37ED5KZY.ts.map} +0 -0
  153. /package/dist/chunks/{remote-selection-ui-4BXJAZUD.ts.map → remote-selection-ui-CJ5ICXMF.ts.map} +0 -0
  154. /package/dist/chunks/{s3-backend-ZRMOWH5R.ts.map → s3-backend-CBUPAAS4.ts.map} +0 -0
  155. /package/dist/chunks/{session-push-55IV4IW3.ts.map → session-push-TNYJYIKE.ts.map} +0 -0
  156. /package/dist/chunks/{setup-switch-DXDUBDQI.ts.map → setup-switch-QBW7RNRW.ts.map} +0 -0
  157. /package/dist/chunks/{setup-wizard-ICPQERAE.ts.map → setup-wizard-IX67AV3T.ts.map} +0 -0
  158. /package/dist/chunks/{snapshot-HDARHOQZ.ts.map → snapshot-I7EZP5Q7.ts.map} +0 -0
  159. /package/dist/chunks/{snapshot-LZ6XKFA4.ts.map → snapshot-T26QGKIX.ts.map} +0 -0
  160. /package/dist/chunks/{snapshot-transaction-LYR5OFLR.ts.map → snapshot-transaction-C2SEYO5T.ts.map} +0 -0
  161. /package/dist/chunks/{sync-inspection-N6TELULU.ts.map → sync-inspection-HIGQPANV.ts.map} +0 -0
  162. /package/dist/chunks/{sync-inspection-PMEXXLDK.ts.map → sync-inspection-T7COH3PW.ts.map} +0 -0
  163. /package/dist/chunks/{sync-operations-KKSIS2CI.ts.map → sync-operations-E7SAZJEF.ts.map} +0 -0
  164. /package/dist/chunks/{sync-operations-VSMA5GSA.ts.map → sync-operations-XI7RJZWI.ts.map} +0 -0
  165. /package/dist/chunks/{sync-state-72ZDKUQW.ts.map → sync-state-7R5EOJIY.ts.map} +0 -0
  166. /package/dist/chunks/{sync-state-store-YTMAZQ3Z.ts.map → sync-state-store-ELTCECE4.ts.map} +0 -0
  167. /package/dist/chunks/{webdav-backend-3AZOECVQ.ts.map → webdav-backend-EK5UCAQE.ts.map} +0 -0
@@ -6,14 +6,14 @@ import {
6
6
  promptDirectoryRules,
7
7
  saveReviewedDraft,
8
8
  starterDirectoryRules
9
- } from "./chunk-YLVRV6NM.ts";
9
+ } from "./chunk-IJECQD65.ts";
10
10
  import {
11
11
  addStorageConnection,
12
12
  addSyncSetup,
13
13
  saveNewV3Settings,
14
14
  updateStorageConnection,
15
15
  updateSyncSetup
16
- } from "./chunk-U6CORBHU.ts";
16
+ } from "./chunk-NP6NTBI2.ts";
17
17
  import {
18
18
  AUTOMATIC_SYNC_DESCRIPTION,
19
19
  setSyncSetupCompletions
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-AMJRUXFT.ts";
24
24
  import {
25
25
  captureMutationOwner
26
- } from "./chunk-QJTU5SCJ.ts";
26
+ } from "./chunk-ABU7CXAG.ts";
27
27
  import {
28
28
  errorMessage
29
29
  } from "./chunk-4S5CGN4M.ts";
@@ -37,7 +37,7 @@ import {
37
37
  readLocalConfigObject,
38
38
  requiredString,
39
39
  validateConfigName
40
- } from "./chunk-AVLYLWA7.ts";
40
+ } from "./chunk-KZKBQ474.ts";
41
41
  import {
42
42
  throwIfAborted
43
43
  } from "./chunk-SPRHJBJC.ts";
@@ -45,15 +45,15 @@ import {
45
45
  normalizeWebDavPath,
46
46
  normalizeWebDavUrl,
47
47
  validateWebDavCredentials
48
- } from "./chunk-TAOYC2YG.ts";
48
+ } from "./chunk-5O6O74G5.ts";
49
49
  import {
50
50
  normalizeGitBranch,
51
51
  normalizeGitDirectory,
52
52
  normalizeGitRemote
53
- } from "./chunk-NFZMKZ2D.ts";
53
+ } from "./chunk-MEXYSX5Y.ts";
54
54
  import {
55
55
  DEFAULT_SYNC_INCLUDE
56
- } from "./chunk-OTI4XVCS.ts";
56
+ } from "./chunk-ZNAA4FNG.ts";
57
57
 
58
58
  // src/commands/setup-completions.ts
59
59
  async function refreshTargetCompletions() {
@@ -288,7 +288,7 @@ async function finishSetup(ctx, name, message, join, signal) {
288
288
  if (signal?.aborted) return;
289
289
  ctx.ui.notify(message, "info");
290
290
  if (!join) return;
291
- const { showRemoteSelectionReview } = await import("./remote-selection-ui-4BXJAZUD.ts");
291
+ const { showRemoteSelectionReview } = await import("./remote-selection-ui-CJ5ICXMF.ts");
292
292
  if (signal?.aborted) return;
293
293
  await showRemoteSelectionReview(ctx, name, signal, void 0, { origin: "settings" });
294
294
  }
@@ -1028,4 +1028,4 @@ export {
1028
1028
  showAddWebDavStorageProfile,
1029
1029
  showEditWebDavStorageProfile
1030
1030
  };
1031
- //# sourceMappingURL=chunk-MTUR4H7S.ts.map
1031
+ //# sourceMappingURL=chunk-K4LJOMYD.ts.map
@@ -5,35 +5,35 @@ import {
5
5
  assertLocalRecoveryCleared,
6
6
  reconcileInterruptedTransfer,
7
7
  recoverLocalTransactions
8
- } from "./chunk-MS6HLJFR.ts";
8
+ } from "./chunk-3LGVYJFC.ts";
9
9
  import {
10
10
  engineContext
11
- } from "./chunk-W3YS4Y2Q.ts";
11
+ } from "./chunk-5UURT4LR.ts";
12
12
  import {
13
13
  startupTransferEnabled
14
14
  } from "./chunk-2YHXXWUF.ts";
15
15
  import {
16
16
  withLock
17
- } from "./chunk-T22OVZSI.ts";
17
+ } from "./chunk-4FEFBPVA.ts";
18
18
  import {
19
19
  captureMutationOwner
20
- } from "./chunk-QJTU5SCJ.ts";
20
+ } from "./chunk-ABU7CXAG.ts";
21
21
  import {
22
22
  loadConfigForCheck,
23
23
  syncCheckConfigFingerprint
24
- } from "./chunk-AVLYLWA7.ts";
24
+ } from "./chunk-KZKBQ474.ts";
25
25
  import {
26
26
  withStateDirectoryAccess
27
- } from "./chunk-NFZMKZ2D.ts";
27
+ } from "./chunk-MEXYSX5Y.ts";
28
28
  import {
29
29
  snapshotOptionsForContext
30
- } from "./chunk-RRFW2UAD.ts";
30
+ } from "./chunk-7FMAJ56J.ts";
31
31
  import {
32
32
  engineHost
33
- } from "./chunk-ES4FIIHZ.ts";
33
+ } from "./chunk-DN5GOY65.ts";
34
34
 
35
35
  // src/sync/sync-operations.ts
36
- var engine = () => import("./sync-operations-KKSIS2CI.ts");
36
+ var engine = () => import("./sync-operations-E7SAZJEF.ts");
37
37
  async function withTransfer(ctx, kind, options, run) {
38
38
  const signal = options.signal ?? new AbortController().signal;
39
39
  signal.throwIfAborted();
@@ -81,7 +81,7 @@ async function syncBoth(ctx, options) {
81
81
  };
82
82
  const config = await loadConfigForCheck(void 0, input.signal);
83
83
  validate(config);
84
- const { inspectSync } = await import("./sync-inspection-N6TELULU.ts");
84
+ const { inspectSync } = await import("./sync-inspection-T7COH3PW.ts");
85
85
  validate();
86
86
  const inspection = await inspectSync(config, snapshotOptionsForContext(owned, config), input.signal);
87
87
  validate(await loadConfigForCheck(void 0, input.signal));
@@ -97,7 +97,7 @@ async function rollback(ctx, options) {
97
97
  }
98
98
  async function shutdownPush(ctx, options) {
99
99
  await withTransfer(ctx, "shutdown", options, async (owned, input, operations) => {
100
- const { pushSessionsOnShutdown } = await import("./session-push-55IV4IW3.ts");
100
+ const { pushSessionsOnShutdown } = await import("./session-push-TNYJYIKE.ts");
101
101
  input.signal?.throwIfAborted();
102
102
  await pushSessionsOnShutdown(owned, input, { operations: async () => operations });
103
103
  });
@@ -110,8 +110,8 @@ async function diff(ctx, options) {
110
110
  return;
111
111
  }
112
112
  const [{ openDiffReview }, { showSyncDiffReview }] = await Promise.all([
113
- import("./local-diff-review-OGZM3TA7.ts"),
114
- import("./diff-review-QRHOHG5C.ts")
113
+ import("./local-diff-review-CJWITN2A.ts"),
114
+ import("./diff-review-LVIYNDLG.ts")
115
115
  ]);
116
116
  options.signal?.throwIfAborted();
117
117
  return showSyncDiffReview(
@@ -160,4 +160,4 @@ export {
160
160
  diff,
161
161
  history
162
162
  };
163
- //# sourceMappingURL=chunk-FT45DX6E.ts.map
163
+ //# sourceMappingURL=chunk-KFUZZROG.ts.map
@@ -7,14 +7,14 @@ import {
7
7
  normalizeWebDavPath,
8
8
  normalizeWebDavUrl,
9
9
  validateWebDavCredentials
10
- } from "./chunk-TAOYC2YG.ts";
10
+ } from "./chunk-5O6O74G5.ts";
11
11
  import {
12
12
  normalizeGitBranch,
13
13
  normalizeGitDirectory,
14
14
  normalizeGitRemote,
15
15
  normalizeGitRemoteIdentity,
16
16
  stateDir
17
- } from "./chunk-NFZMKZ2D.ts";
17
+ } from "./chunk-MEXYSX5Y.ts";
18
18
  import {
19
19
  normalizeLocalFields
20
20
  } from "./chunk-QIL27OLJ.ts";
@@ -24,12 +24,12 @@ import {
24
24
  normalizeSyncInclude,
25
25
  syncDirectoryPolicyKey,
26
26
  syncSessionsSelected
27
- } from "./chunk-OTI4XVCS.ts";
27
+ } from "./chunk-ZNAA4FNG.ts";
28
28
  import {
29
29
  engineHost,
30
30
  getEngineRoot,
31
31
  retiredIgnorePolicy
32
- } from "./chunk-ES4FIIHZ.ts";
32
+ } from "./chunk-DN5GOY65.ts";
33
33
 
34
34
  // src/engine/settings/config.ts
35
35
  import { createHash } from "node:crypto";
@@ -1411,4 +1411,4 @@ export {
1411
1411
  isEnabled,
1412
1412
  isExplicitlyEnabled
1413
1413
  };
1414
- //# sourceMappingURL=chunk-AVLYLWA7.ts.map
1414
+ //# sourceMappingURL=chunk-KZKBQ474.ts.map
@@ -2,15 +2,15 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  sameRemoteHead
5
- } from "./chunk-MHERAG42.ts";
5
+ } from "./chunk-NOAQCRP6.ts";
6
6
  import {
7
7
  fileHashMap,
8
8
  sameHashes,
9
9
  stateHashMapForConfig
10
- } from "./chunk-D34Y5JSL.ts";
10
+ } from "./chunk-BC4P223U.ts";
11
11
  import {
12
12
  createSnapshot
13
- } from "./chunk-WETDHZAD.ts";
13
+ } from "./chunk-HUUQUCSX.ts";
14
14
 
15
15
  // src/engine/sync/directional-conflict.ts
16
16
  var DirectionalDestinationConflict = class extends Error {
@@ -46,4 +46,4 @@ export {
46
46
  needsDirectionalForce,
47
47
  recheckDirectionalReview
48
48
  };
49
- //# sourceMappingURL=chunk-YV776ZPN.ts.map
49
+ //# sourceMappingURL=chunk-LZGSJKKQ.ts.map
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  sameSnapshotSelection
5
- } from "./chunk-OTI4XVCS.ts";
5
+ } from "./chunk-ZNAA4FNG.ts";
6
6
 
7
7
  // src/engine/backends/sync-backend.ts
8
8
  var HISTORY_PREVIEW_LIMIT = 20;
@@ -47,4 +47,4 @@ export {
47
47
  verifyPreviousHeadInHistory,
48
48
  expectedRemoteHead
49
49
  };
50
- //# sourceMappingURL=chunk-DLA5RPFP.ts.map
50
+ //# sourceMappingURL=chunk-M6C5UVNO.ts.map
@@ -8,12 +8,12 @@ import {
8
8
  } from "./chunk-5WUWHDCJ.ts";
9
9
  import {
10
10
  SnapshotCaptureLimitError
11
- } from "./chunk-WETDHZAD.ts";
11
+ } from "./chunk-HUUQUCSX.ts";
12
12
  import {
13
13
  assertSnapshotExcludesDebugLog,
14
14
  requireLegacyTransferPolicy,
15
15
  validateSnapshotSelection
16
- } from "./chunk-OTI4XVCS.ts";
16
+ } from "./chunk-ZNAA4FNG.ts";
17
17
 
18
18
  // src/engine/snapshot/snapshot-codec.ts
19
19
  import { Readable, Writable } from "node:stream";
@@ -29,7 +29,7 @@ async function encodeSnapshot(snapshot) {
29
29
  assertSnapshotExcludesDebugLog(snapshot);
30
30
  validateSnapshotSelection(snapshot);
31
31
  if (snapshot.version >= 4) {
32
- const { validatePortableSnapshot } = await import("./local-fields-PIKOEXWR.ts");
32
+ const { validatePortableSnapshot } = await import("./local-fields-Z4RMLREX.ts");
33
33
  validatePortableSnapshot(snapshot);
34
34
  }
35
35
  return gzipAsync(Buffer.from(JSON.stringify(snapshot), "utf8"));
@@ -63,7 +63,7 @@ async function decodeSnapshot(buffer, options = {}) {
63
63
  assertSnapshotExcludesDebugLog(parsed);
64
64
  validateSnapshotSelection(parsed);
65
65
  if (parsed.version !== VERSION) {
66
- const { normalizeLocalFields, validatePortableSnapshot } = await import("./local-fields-PIKOEXWR.ts");
66
+ const { normalizeLocalFields, validatePortableSnapshot } = await import("./local-fields-Z4RMLREX.ts");
67
67
  validatePortableSnapshot(parsed);
68
68
  if (parsed.localFields !== void 0) parsed.localFields = normalizeLocalFields(parsed.localFields);
69
69
  } else if (parsed.localFields !== void 0) throw new Error("Portable field policy requires snapshot version 2.");
@@ -74,4 +74,4 @@ export {
74
74
  encodeSnapshot,
75
75
  decodeSnapshot
76
76
  };
77
- //# sourceMappingURL=chunk-FIEW5453.ts.map
77
+ //# sourceMappingURL=chunk-M7ZDYH7G.ts.map
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  getEngineRoot
5
- } from "./chunk-ES4FIIHZ.ts";
5
+ } from "./chunk-DN5GOY65.ts";
6
6
 
7
7
  // src/engine/backends/git/git-config.ts
8
8
  var DEFAULT_GIT_BRANCH = "pi-sync";
@@ -342,4 +342,4 @@ export {
342
342
  withStateDirectoryAccess,
343
343
  migrateLegacyStateDirectory
344
344
  };
345
- //# sourceMappingURL=chunk-NFZMKZ2D.ts.map
345
+ //# sourceMappingURL=chunk-MEXYSX5Y.ts.map
@@ -3,11 +3,11 @@
3
3
  import {
4
4
  fileHashMap,
5
5
  sameHashes
6
- } from "./chunk-D34Y5JSL.ts";
6
+ } from "./chunk-BC4P223U.ts";
7
7
  import {
8
8
  statePathForConfig,
9
9
  syncStateFingerprint
10
- } from "./chunk-NFW5HLKA.ts";
10
+ } from "./chunk-PFVGR5PB.ts";
11
11
  import {
12
12
  readJsonIfExists,
13
13
  syncDirectory,
@@ -18,7 +18,7 @@ import {
18
18
  sameLocalFields,
19
19
  validatePortableSnapshot,
20
20
  validateSnapshotFieldPolicy
21
- } from "./chunk-C2YD64T6.ts";
21
+ } from "./chunk-YHOVBAQI.ts";
22
22
  import {
23
23
  planFileMerge
24
24
  } from "./chunk-ULNEZ53E.ts";
@@ -28,10 +28,10 @@ import {
28
28
  sameSnapshotSelection,
29
29
  syncDirectoryPolicyKey,
30
30
  validateSnapshotSelection
31
- } from "./chunk-OTI4XVCS.ts";
31
+ } from "./chunk-ZNAA4FNG.ts";
32
32
  import {
33
33
  retiredIgnorePolicy
34
- } from "./chunk-ES4FIIHZ.ts";
34
+ } from "./chunk-DN5GOY65.ts";
35
35
 
36
36
  // src/engine/sync/merge-journal.ts
37
37
  import { randomUUID } from "node:crypto";
@@ -119,7 +119,7 @@ async function readMergeJournal(config) {
119
119
  if (journal.progress) {
120
120
  const before = fileHashMap(journal.before);
121
121
  const after = fileHashMap(journal.after);
122
- const { readConflictArtifact } = await import("./conflict-artifacts-77PI6IXK.ts");
122
+ const { readConflictArtifact } = await import("./conflict-artifacts-UUWACJBW.ts");
123
123
  const backendIdentity = JSON.parse(journal.identity)[1];
124
124
  if (typeof backendIdentity !== "string") throw new Error("Invalid partial backend identity.");
125
125
  const byArtifact = /* @__PURE__ */ new Map();
@@ -185,4 +185,4 @@ export {
185
185
  sameMergeRecoveryHead,
186
186
  requireNoMergeJournal
187
187
  };
188
- //# sourceMappingURL=chunk-2G6GTIWW.ts.map
188
+ //# sourceMappingURL=chunk-N6ZK34AM.ts.map
@@ -2,27 +2,27 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  syncPolicyChanged
5
- } from "./chunk-D34Y5JSL.ts";
5
+ } from "./chunk-BC4P223U.ts";
6
6
  import {
7
7
  syncConfigReviewFingerprint
8
- } from "./chunk-AVLYLWA7.ts";
8
+ } from "./chunk-KZKBQ474.ts";
9
9
  import {
10
10
  throwIfAborted
11
11
  } from "./chunk-SPRHJBJC.ts";
12
12
  import {
13
13
  sameLocalFields,
14
14
  validatePortableSnapshot
15
- } from "./chunk-C2YD64T6.ts";
15
+ } from "./chunk-YHOVBAQI.ts";
16
16
  import {
17
17
  filterSnapshotForConfigPolicy,
18
18
  mergeRemotePreservedFiles
19
- } from "./chunk-WETDHZAD.ts";
19
+ } from "./chunk-HUUQUCSX.ts";
20
20
  import {
21
21
  inspectRemoteSelection,
22
22
  remoteSelectionMismatch,
23
23
  requireLegacyTransferPolicy,
24
24
  sameSnapshotSelection
25
- } from "./chunk-OTI4XVCS.ts";
25
+ } from "./chunk-ZNAA4FNG.ts";
26
26
 
27
27
  // src/engine/ui/terminal-text.ts
28
28
  var TERMINAL_CONTROLS = /[\p{Cc}\u061c\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff]/gu;
@@ -147,4 +147,4 @@ export {
147
147
  sameRemoteHead,
148
148
  inspectHeadSelection
149
149
  };
150
- //# sourceMappingURL=chunk-MHERAG42.ts.map
150
+ //# sourceMappingURL=chunk-NOAQCRP6.ts.map
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  encodeSnapshot
5
- } from "./chunk-FIEW5453.ts";
5
+ } from "./chunk-M7ZDYH7G.ts";
6
6
 
7
7
  // src/engine/backends/publication-encoding.ts
8
8
  function capturePublicationImage(snapshot) {
@@ -50,4 +50,4 @@ export {
50
50
  createLatestPointer,
51
51
  remoteHistoryEntry
52
52
  };
53
- //# sourceMappingURL=chunk-INUH2UXN.ts.map
53
+ //# sourceMappingURL=chunk-NOPE2X6N.ts.map
@@ -8,7 +8,7 @@ import {
8
8
  syncSetupStorageReview,
9
9
  updateLocalConfig,
10
10
  validateConfigName
11
- } from "./chunk-AVLYLWA7.ts";
11
+ } from "./chunk-KZKBQ474.ts";
12
12
 
13
13
  // src/engine/settings/settings-management.ts
14
14
  import { isDeepStrictEqual } from "node:util";
@@ -202,4 +202,4 @@ export {
202
202
  removeSyncSetup,
203
203
  removeStorageConnection
204
204
  };
205
- //# sourceMappingURL=chunk-U6CORBHU.ts.map
205
+ //# sourceMappingURL=chunk-NP6NTBI2.ts.map
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-ESUMO4TW.ts";
7
7
  import {
8
8
  backendIdentityCoordinates
9
- } from "./chunk-TAOYC2YG.ts";
9
+ } from "./chunk-5O6O74G5.ts";
10
10
  import {
11
11
  stateDir
12
- } from "./chunk-NFZMKZ2D.ts";
12
+ } from "./chunk-MEXYSX5Y.ts";
13
13
  import {
14
14
  retiredIgnorePolicy
15
- } from "./chunk-ES4FIIHZ.ts";
15
+ } from "./chunk-DN5GOY65.ts";
16
16
  import {
17
17
  safeName
18
18
  } from "./chunk-C66HLRRZ.ts";
@@ -48,7 +48,7 @@ async function writeStateForConfig(config, state, snapshot, validate = () => {
48
48
  }) {
49
49
  validate();
50
50
  if (snapshot) {
51
- const { stageMergeBaseline } = await import("./merge-baseline-store-MI7SHGDH.ts");
51
+ const { stageMergeBaseline } = await import("./merge-baseline-store-M3HLNMAE.ts");
52
52
  validate();
53
53
  await stageMergeBaseline(config, snapshot, state);
54
54
  validate();
@@ -81,4 +81,4 @@ export {
81
81
  lockPath,
82
82
  ensureStateDir
83
83
  };
84
- //# sourceMappingURL=chunk-NFW5HLKA.ts.map
84
+ //# sourceMappingURL=chunk-PFVGR5PB.ts.map
@@ -2,11 +2,11 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  mergeJournalIdentity
5
- } from "./chunk-2G6GTIWW.ts";
5
+ } from "./chunk-N6ZK34AM.ts";
6
6
  import {
7
7
  statePathForConfig,
8
8
  syncStateFingerprint
9
- } from "./chunk-NFW5HLKA.ts";
9
+ } from "./chunk-PFVGR5PB.ts";
10
10
  import {
11
11
  syncDirectory,
12
12
  writeJson
@@ -226,4 +226,4 @@ export {
226
226
  saveConflictArtifact,
227
227
  readConflictArtifact
228
228
  };
229
- //# sourceMappingURL=chunk-2BMTS5OW.ts.map
229
+ //# sourceMappingURL=chunk-RLP6VXRF.ts.map
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  withLock
5
- } from "./chunk-T22OVZSI.ts";
5
+ } from "./chunk-4FEFBPVA.ts";
6
6
  import {
7
7
  syncDirectory,
8
8
  writeJson
@@ -10,24 +10,24 @@ import {
10
10
  import {
11
11
  pendingTransactionEntries,
12
12
  transactionRoot
13
- } from "./chunk-QRSESWT2.ts";
13
+ } from "./chunk-CXNCR2AE.ts";
14
14
  import {
15
15
  stateDir
16
- } from "./chunk-NFZMKZ2D.ts";
16
+ } from "./chunk-MEXYSX5Y.ts";
17
17
  import {
18
18
  MAX_AGENT_DIRECTORY_BYTES,
19
19
  agentDirectoryConfiguredSessionDir,
20
20
  agentDirectorySessionDirFromSettings,
21
21
  readAgentDirectorySettings,
22
22
  scanAgentDirectoryInventory
23
- } from "./chunk-WETDHZAD.ts";
23
+ } from "./chunk-HUUQUCSX.ts";
24
24
  import {
25
25
  agentDir,
26
26
  assertUnexcludedTargets,
27
27
  configuredSessionDir,
28
28
  expandSessionDir,
29
29
  sessionStorageRoot
30
- } from "./chunk-RRFW2UAD.ts";
30
+ } from "./chunk-7FMAJ56J.ts";
31
31
  import {
32
32
  mergePathIdentity
33
33
  } from "./chunk-ULNEZ53E.ts";
@@ -41,13 +41,13 @@ import {
41
41
  sameSyncExclude,
42
42
  selectionForSnapshot,
43
43
  syncDirectoryPolicyKey
44
- } from "./chunk-OTI4XVCS.ts";
44
+ } from "./chunk-ZNAA4FNG.ts";
45
45
  import {
46
46
  engineHost,
47
47
  retiredIgnorePolicy,
48
48
  withEngineMutationQueue,
49
49
  withSessionWriteProtection
50
- } from "./chunk-ES4FIIHZ.ts";
50
+ } from "./chunk-DN5GOY65.ts";
51
51
  import {
52
52
  assertWithinRoot,
53
53
  isDeniedPath,
@@ -1459,6 +1459,11 @@ async function applySnapshotTransaction(plan, options = {}, skipped = []) {
1459
1459
  await withSessionWriteProtection(
1460
1460
  writes.map(({ target }) => target),
1461
1461
  async () => {
1462
+ if (writes.length) {
1463
+ options.validateMutation?.();
1464
+ options.signal?.throwIfAborted();
1465
+ options.onApplyStart?.();
1466
+ }
1462
1467
  await retireRemovalIntent(
1463
1468
  transaction.directory,
1464
1469
  transaction.journal,
@@ -2039,10 +2044,12 @@ async function removeOwnedTarget(directory, entry, journal, options, { apply, re
2039
2044
  if (current.scoped) {
2040
2045
  if (current.value !== verified.value) throw new Error("Transaction removal image changed.");
2041
2046
  await assertUnexcludedTargets(journal.root, [entry.target], options);
2047
+ if (apply) options.onApplyStart?.();
2042
2048
  await removeScopedImage(entry.target, current.scoped, options);
2043
2049
  } else {
2044
2050
  options.validateMutation?.();
2045
2051
  options.signal?.throwIfAborted();
2052
+ if (apply) options.onApplyStart?.();
2046
2053
  await fs8.rm(entry.target, { recursive: true, force: true });
2047
2054
  }
2048
2055
  await syncDirectory(path11.dirname(entry.target));
@@ -2117,4 +2124,4 @@ export {
2117
2124
  recoverSnapshotTransactionsOnStartup,
2118
2125
  recoverPendingSnapshotTransactions
2119
2126
  };
2120
- //# sourceMappingURL=chunk-A7KJUFLX.ts.map
2127
+ //# sourceMappingURL=chunk-SJRCMS56.ts.map