@narumitw/pi-sync 0.61.0 → 0.63.0

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 (278) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +46 -25
  3. package/dist/chunks/{chunk-277VHM2P.ts → chunk-27F5W7DX.ts} +7 -3
  4. package/dist/chunks/chunk-27F5W7DX.ts.map +7 -0
  5. package/dist/chunks/{chunk-ZIL6PW5L.ts → chunk-6YKOHBSC.ts} +2 -2
  6. package/dist/chunks/{chunk-OA4NZLSL.ts → chunk-APZVJAEW.ts} +4 -3
  7. package/dist/chunks/chunk-CKUGCBHP.ts +114 -0
  8. package/dist/chunks/chunk-CKUGCBHP.ts.map +7 -0
  9. package/dist/chunks/chunk-EJDDRS6O.ts +17 -0
  10. package/dist/chunks/chunk-EJDDRS6O.ts.map +7 -0
  11. package/dist/chunks/{chunk-JVFCVPPD.ts → chunk-EXDWEFIJ.ts} +87 -147
  12. package/dist/chunks/chunk-EXDWEFIJ.ts.map +7 -0
  13. package/dist/chunks/{chunk-4SR3ZYHA.ts → chunk-GELYN4UC.ts} +2 -2
  14. package/dist/chunks/{chunk-2ZGV5KNC.ts → chunk-HSCAFOT5.ts} +15 -12
  15. package/dist/chunks/chunk-HSCAFOT5.ts.map +7 -0
  16. package/dist/chunks/{chunk-YQSFJLJ3.ts → chunk-IBXEM35O.ts} +4 -3
  17. package/dist/chunks/{chunk-2JHAN3ZO.ts → chunk-JREGWM2B.ts} +3 -3
  18. package/dist/chunks/chunk-MANNB4WZ.ts +36 -0
  19. package/dist/chunks/chunk-MANNB4WZ.ts.map +7 -0
  20. package/dist/chunks/{chunk-EMRFVLZM.ts → chunk-NXWHPVXR.ts} +2 -2
  21. package/dist/chunks/{chunk-SMVKMYLK.ts → chunk-P4GI7LTT.ts} +2 -2
  22. package/dist/chunks/{chunk-ZVGRZD4C.ts → chunk-R3SAMXB6.ts} +2 -2
  23. package/dist/chunks/{chunk-4KTJLJSJ.ts → chunk-S6FUUWV5.ts} +148 -21
  24. package/dist/chunks/chunk-S6FUUWV5.ts.map +7 -0
  25. package/dist/chunks/{chunk-PJMM75W5.ts → chunk-SXCH4Q5O.ts} +41 -23
  26. package/dist/chunks/chunk-SXCH4Q5O.ts.map +7 -0
  27. package/dist/chunks/{chunk-RNIEVDTR.ts → chunk-T3LABNHF.ts} +2 -2
  28. package/dist/chunks/{chunk-E3YLRLJM.ts → chunk-UGS6RYDZ.ts} +14 -12
  29. package/dist/chunks/chunk-UGS6RYDZ.ts.map +7 -0
  30. package/dist/chunks/{chunk-S3R3W3KF.ts → chunk-UMPA5S7X.ts} +2 -2
  31. package/dist/chunks/{chunk-EMVZL4PH.ts → chunk-V76KCWHO.ts} +7 -5
  32. package/dist/chunks/{chunk-EMVZL4PH.ts.map → chunk-V76KCWHO.ts.map} +1 -1
  33. package/dist/chunks/{chunk-S7F4FOAS.ts → chunk-VQ47JBLF.ts} +5 -5
  34. package/dist/chunks/{chunk-WP2M67XZ.ts → chunk-WBIOSK76.ts} +2 -2
  35. package/dist/chunks/chunk-WFBHWYI6.ts +18 -0
  36. package/dist/chunks/chunk-WFBHWYI6.ts.map +7 -0
  37. package/dist/chunks/{chunk-HEB6YT64.ts → chunk-ZO52JM4H.ts} +2 -2
  38. package/dist/chunks/{command-handler-K4XJOGYC.ts → command-handler-VINMQ7ZM.ts} +26 -43
  39. package/dist/chunks/command-handler-VINMQ7ZM.ts.map +7 -0
  40. package/dist/chunks/{conflict-review-IGKY2TOJ.ts → conflict-review-PCDFRIVB.ts} +4 -4
  41. package/dist/chunks/{continuous-record-3XDXDOMV.ts → continuous-record-3SKJ6I3V.ts} +2 -2
  42. package/dist/chunks/{continuous-storage-HLKCHF6Z.ts → continuous-storage-3EU6I7Z3.ts} +2 -2
  43. package/dist/chunks/{file-selection-MGGVOKM7.ts → file-selection-KID23GAD.ts} +21 -14
  44. package/dist/chunks/file-selection-KID23GAD.ts.map +7 -0
  45. package/dist/chunks/manager-result-dispatcher-GDB74IOP.ts +20 -0
  46. package/dist/chunks/{manager-ui-KYQ5AZJS.ts → manager-ui-YHDECYKI.ts} +454 -167
  47. package/dist/chunks/manager-ui-YHDECYKI.ts.map +7 -0
  48. package/dist/chunks/remote-selection-ui-GPITNEBF.ts +19 -0
  49. package/dist/chunks/{setup-switch-D6K6PBPC.ts → setup-switch-L54X5U5I.ts} +7 -7
  50. package/dist/chunks/{setup-wizard-4DYUDHJR.ts → setup-wizard-YO4MCPUF.ts} +15 -11
  51. package/dist/chunks/{setup-wizard-4DYUDHJR.ts.map → setup-wizard-YO4MCPUF.ts.map} +1 -1
  52. package/dist/chunks/{snapshot-5HY3M2NL.ts → snapshot-ZUJJZCFW.ts} +2 -2
  53. package/dist/chunks/{snapshot-transaction-directory-OU2D7R7A.ts → snapshot-transaction-directory-F46JWRAU.ts} +2 -2
  54. package/dist/chunks/{state-directory-XXHU73Z3.ts → state-directory-CMAIF34J.ts} +2 -2
  55. package/dist/chunks/{sync-inspection-J3CRBORL.ts → sync-inspection-H2WX5SUT.ts} +5 -5
  56. package/dist/chunks/{sync-operations-BVWYYKH3.ts → sync-operations-2MZAYHL2.ts} +13 -9
  57. package/dist/chunks/sync-operations-2MZAYHL2.ts.map +7 -0
  58. package/dist/chunks/{sync-state-2LMIXJ2C.ts → sync-state-QIT64TKV.ts} +2 -2
  59. package/dist/daemon/LICENSE +21 -0
  60. package/dist/daemon/dist/build-version.js +8 -0
  61. package/dist/daemon/dist/child-sdk.mjs +17 -0
  62. package/dist/daemon/dist/cli.js +169 -0
  63. package/dist/daemon/dist/client.js +909 -0
  64. package/dist/daemon/dist/consent.js +383 -0
  65. package/dist/daemon/dist/document.js +6 -0
  66. package/dist/daemon/dist/endpoint.js +91 -0
  67. package/dist/daemon/dist/engine/backends/backend-factory.js +16 -0
  68. package/dist/daemon/dist/engine/backends/backend-identity.js +38 -0
  69. package/dist/daemon/dist/engine/backends/backend-types.js +1 -0
  70. package/dist/daemon/dist/engine/backends/git/git-backend.js +746 -0
  71. package/dist/daemon/dist/engine/backends/git/git-config.js +118 -0
  72. package/dist/daemon/dist/engine/backends/git/git-runner.js +232 -0
  73. package/dist/daemon/dist/engine/backends/git/git-storage.js +252 -0
  74. package/dist/daemon/dist/engine/backends/s3/s3-backend.js +444 -0
  75. package/dist/daemon/dist/engine/backends/s3/s3-client.js +352 -0
  76. package/dist/daemon/dist/engine/backends/s3/s3-conditions.js +66 -0
  77. package/dist/daemon/dist/engine/backends/snapshot-pointer.js +22 -0
  78. package/dist/daemon/dist/engine/backends/sync-backend.js +23 -0
  79. package/dist/daemon/dist/engine/backends/webdav/webdav-backend.js +542 -0
  80. package/dist/daemon/dist/engine/backends/webdav/webdav-client.js +326 -0
  81. package/dist/daemon/dist/engine/backends/webdav/webdav-config.js +73 -0
  82. package/dist/daemon/dist/engine/commands/command-types.js +1 -0
  83. package/dist/daemon/dist/engine/host.js +16 -0
  84. package/dist/daemon/dist/engine/ignore/effective-ignore-policy.js +33 -0
  85. package/dist/daemon/dist/engine/ignore/ignore-edit.js +102 -0
  86. package/dist/daemon/dist/engine/ignore/ignore-initialization.js +252 -0
  87. package/dist/daemon/dist/engine/ignore/ignore-migration-prompt.js +139 -0
  88. package/dist/daemon/dist/engine/ignore/ignore-settings.js +393 -0
  89. package/dist/daemon/dist/engine/ignore/ignore-source.js +250 -0
  90. package/dist/daemon/dist/engine/paths.js +71 -0
  91. package/dist/daemon/dist/engine/settings/config-errors.js +4 -0
  92. package/dist/daemon/dist/engine/settings/config-file.js +736 -0
  93. package/dist/daemon/dist/engine/settings/config.js +344 -0
  94. package/dist/daemon/dist/engine/settings/settings-management.js +199 -0
  95. package/dist/daemon/dist/engine/settings/settings-store.js +41 -0
  96. package/dist/daemon/dist/engine/settings/settings-types.js +1 -0
  97. package/dist/daemon/dist/engine/settings/settings-validation.js +384 -0
  98. package/dist/daemon/dist/engine/snapshot/session-paths.js +165 -0
  99. package/dist/daemon/dist/engine/snapshot/snapshot-apply.js +348 -0
  100. package/dist/daemon/dist/engine/snapshot/snapshot-bounds.js +20 -0
  101. package/dist/daemon/dist/engine/snapshot/snapshot-case-replacement.js +82 -0
  102. package/dist/daemon/dist/engine/snapshot/snapshot-codec.js +61 -0
  103. package/dist/daemon/dist/engine/snapshot/snapshot-entry-projection.js +78 -0
  104. package/dist/daemon/dist/engine/snapshot/snapshot-exclude-safety.js +262 -0
  105. package/dist/daemon/dist/engine/snapshot/snapshot-mutation-queues.js +133 -0
  106. package/dist/daemon/dist/engine/snapshot/snapshot-paths.js +11 -0
  107. package/dist/daemon/dist/engine/snapshot/snapshot-payload.js +10 -0
  108. package/dist/daemon/dist/engine/snapshot/snapshot-reviewed-preimages.js +60 -0
  109. package/dist/daemon/dist/engine/snapshot/snapshot-root-transition.js +138 -0
  110. package/dist/daemon/dist/engine/snapshot/snapshot-transaction-directory.js +16 -0
  111. package/dist/daemon/dist/engine/snapshot/snapshot-transaction-images.js +387 -0
  112. package/dist/daemon/dist/engine/snapshot/snapshot-transaction-plan.js +68 -0
  113. package/dist/daemon/dist/engine/snapshot/snapshot-transaction-policy.js +296 -0
  114. package/dist/daemon/dist/engine/snapshot/snapshot-transaction-stage.js +303 -0
  115. package/dist/daemon/dist/engine/snapshot/snapshot-transaction-verification.js +78 -0
  116. package/dist/daemon/dist/engine/snapshot/snapshot-transaction.js +855 -0
  117. package/dist/daemon/dist/engine/snapshot/snapshot-types.js +9 -0
  118. package/dist/daemon/dist/engine/snapshot/snapshot.js +678 -0
  119. package/dist/daemon/dist/engine/state/json-file.js +49 -0
  120. package/dist/daemon/dist/engine/state/lock-policy.js +2 -0
  121. package/dist/daemon/dist/engine/state/lock.js +259 -0
  122. package/dist/daemon/dist/engine/state/lockfile-fs.js +13 -0
  123. package/dist/daemon/dist/engine/state/merge-baseline-store.js +198 -0
  124. package/dist/daemon/dist/engine/state/mutation-directory-sync.js +34 -0
  125. package/dist/daemon/dist/engine/state/operation-availability.js +40 -0
  126. package/dist/daemon/dist/engine/state/state-directory.js +227 -0
  127. package/dist/daemon/dist/engine/state/state-types.js +1 -0
  128. package/dist/daemon/dist/engine/state/sync-state-store.js +54 -0
  129. package/dist/daemon/dist/engine/sync/agent-candidate.js +207 -0
  130. package/dist/daemon/dist/engine/sync/agent-plan.js +85 -0
  131. package/dist/daemon/dist/engine/sync/agent-policy.js +10 -0
  132. package/dist/daemon/dist/engine/sync/agent-refusal-retry.js +39 -0
  133. package/dist/daemon/dist/engine/sync/agent-request.js +13 -0
  134. package/dist/daemon/dist/engine/sync/agent-runner.js +183 -0
  135. package/dist/daemon/dist/engine/sync/agent-store.js +177 -0
  136. package/dist/daemon/dist/engine/sync/agent-sync.js +139 -0
  137. package/dist/daemon/dist/engine/sync/apply-review.js +52 -0
  138. package/dist/daemon/dist/engine/sync/conflict-artifact-ownership.js +53 -0
  139. package/dist/daemon/dist/engine/sync/conflict-artifacts.js +158 -0
  140. package/dist/daemon/dist/engine/sync/conflict-groups.js +76 -0
  141. package/dist/daemon/dist/engine/sync/conflict-preview.js +53 -0
  142. package/dist/daemon/dist/engine/sync/conflict-resolution.js +53 -0
  143. package/dist/daemon/dist/engine/sync/conflict-retention.js +61 -0
  144. package/dist/daemon/dist/engine/sync/conflict-review.js +73 -0
  145. package/dist/daemon/dist/engine/sync/content-conflicts.js +70 -0
  146. package/dist/daemon/dist/engine/sync/continuous-errors.js +66 -0
  147. package/dist/daemon/dist/engine/sync/continuous-lease.js +206 -0
  148. package/dist/daemon/dist/engine/sync/continuous-record.js +199 -0
  149. package/dist/daemon/dist/engine/sync/continuous-storage.js +59 -0
  150. package/dist/daemon/dist/engine/sync/continuous-sync.js +538 -0
  151. package/dist/daemon/dist/engine/sync/continuous-watch.js +140 -0
  152. package/dist/daemon/dist/engine/sync/exclude-policy.js +86 -0
  153. package/dist/daemon/dist/engine/sync/field-migration.js +20 -0
  154. package/dist/daemon/dist/engine/sync/file-merge-planner.js +123 -0
  155. package/dist/daemon/dist/engine/sync/initialization.js +80 -0
  156. package/dist/daemon/dist/engine/sync/json-document.js +172 -0
  157. package/dist/daemon/dist/engine/sync/local-field-policy.js +26 -0
  158. package/dist/daemon/dist/engine/sync/local-fields.js +196 -0
  159. package/dist/daemon/dist/engine/sync/merge-acceptance.js +29 -0
  160. package/dist/daemon/dist/engine/sync/merge-apply.js +532 -0
  161. package/dist/daemon/dist/engine/sync/merge-journal.js +314 -0
  162. package/dist/daemon/dist/engine/sync/merge-transfer-error.js +64 -0
  163. package/dist/daemon/dist/engine/sync/merged-sync.js +666 -0
  164. package/dist/daemon/dist/engine/sync/mutation-owner.js +18 -0
  165. package/dist/daemon/dist/engine/sync/package-merge.js +82 -0
  166. package/dist/daemon/dist/engine/sync/partial-progress.js +41 -0
  167. package/dist/daemon/dist/engine/sync/remote-snapshot.js +119 -0
  168. package/dist/daemon/dist/engine/sync/resolver-stream.js +34 -0
  169. package/dist/daemon/dist/engine/sync/session-merge.js +178 -0
  170. package/dist/daemon/dist/engine/sync/session-push.js +47 -0
  171. package/dist/daemon/dist/engine/sync/settings-conflicts.js +56 -0
  172. package/dist/daemon/dist/engine/sync/settings-merge.js +93 -0
  173. package/dist/daemon/dist/engine/sync/signals.js +8 -0
  174. package/dist/daemon/dist/engine/sync/startup-timings.js +44 -0
  175. package/dist/daemon/dist/engine/sync/sync-decision.js +81 -0
  176. package/dist/daemon/dist/engine/sync/sync-error-guidance.js +55 -0
  177. package/dist/daemon/dist/engine/sync/sync-errors.js +18 -0
  178. package/dist/daemon/dist/engine/sync/sync-inspection.js +42 -0
  179. package/dist/daemon/dist/engine/sync/sync-loaders.js +8 -0
  180. package/dist/daemon/dist/engine/sync/sync-local.js +40 -0
  181. package/dist/daemon/dist/engine/sync/sync-mutations.js +754 -0
  182. package/dist/daemon/dist/engine/sync/sync-operations.js +3 -0
  183. package/dist/daemon/dist/engine/sync/sync-policy.js +646 -0
  184. package/dist/daemon/dist/engine/sync/sync-queries.js +212 -0
  185. package/dist/daemon/dist/engine/sync/sync-state.js +124 -0
  186. package/dist/daemon/dist/engine/sync/text-merge.js +124 -0
  187. package/dist/daemon/dist/engine/sync/transfer-freshness.js +82 -0
  188. package/dist/daemon/dist/engine/types.js +2 -0
  189. package/dist/daemon/dist/engine/ui/merge-review.js +7 -0
  190. package/dist/daemon/dist/engine/ui/merged-sync-summary.js +86 -0
  191. package/dist/daemon/dist/engine/ui/sync-format.js +165 -0
  192. package/dist/daemon/dist/engine/ui/sync-status.js +30 -0
  193. package/dist/daemon/dist/engine/ui/terminal-text.js +9 -0
  194. package/dist/daemon/dist/engine/ui/transfer-changes.js +24 -0
  195. package/dist/daemon/dist/engine/ui/transfer-review.js +19 -0
  196. package/dist/daemon/dist/engine-service.js +441 -0
  197. package/dist/daemon/dist/identity.js +241 -0
  198. package/dist/daemon/dist/idle-exit.js +77 -0
  199. package/dist/daemon/dist/index.js +4 -0
  200. package/dist/daemon/dist/lifecycle-log.js +53 -0
  201. package/dist/daemon/dist/lifecycle.js +21 -0
  202. package/dist/daemon/dist/model-signature.js +7 -0
  203. package/dist/daemon/dist/monitor.js +324 -0
  204. package/dist/daemon/dist/participant-admission.js +30 -0
  205. package/dist/daemon/dist/protocol.js +104 -0
  206. package/dist/daemon/dist/resolver-host.js +78 -0
  207. package/dist/daemon/dist/server.js +994 -0
  208. package/dist/daemon/dist/service-host.js +175 -0
  209. package/dist/daemon/dist/upgrade-repair.js +55 -0
  210. package/dist/daemon/package.json +3 -0
  211. package/dist/index.ts +40 -37
  212. package/dist/index.ts.map +4 -4
  213. package/dist/package.json +6 -0
  214. package/docs/daemon-migration.md +27 -16
  215. package/package.json +9 -3
  216. package/skills/configure-pi-sync/SKILL.md +24 -46
  217. package/skills/configure-pi-sync/references/configuration.md +62 -22
  218. package/src/commands/command-execution.ts +13 -9
  219. package/src/commands/command-types.ts +1 -0
  220. package/src/daemon/pi-client.ts +4 -2
  221. package/src/settings/config.ts +2 -0
  222. package/src/sync/automatic-sync.ts +9 -2
  223. package/src/sync/setup-switch.ts +38 -15
  224. package/src/sync/startup-check.ts +7 -4
  225. package/src/sync/sync-operations.ts +18 -10
  226. package/src/ui/excluded-paths-ui.ts +6 -3
  227. package/src/ui/file-selection.ts +7 -2
  228. package/src/ui/ignore-file-guidance.ts +7 -0
  229. package/src/ui/ignore-file-ui.ts +97 -0
  230. package/src/ui/ignore-migration-prompt.ts +65 -0
  231. package/src/ui/manager-state.ts +40 -14
  232. package/src/ui/manager-ui.ts +41 -19
  233. package/src/ui/remote-selection-ui.ts +88 -28
  234. package/src/ui/settings-review.ts +26 -0
  235. package/src/ui/settings-ui.ts +378 -224
  236. package/src/ui/setup/setup-actions.ts +16 -4
  237. package/src/ui/setup/setup-prompts.ts +55 -9
  238. package/src/ui/setup/setup-switcher.ts +24 -11
  239. package/src/ui/storage-connections-ui.ts +50 -20
  240. package/src/ui/sync-setups-ui.ts +65 -30
  241. package/dist/chunks/chunk-277VHM2P.ts.map +0 -7
  242. package/dist/chunks/chunk-2ZGV5KNC.ts.map +0 -7
  243. package/dist/chunks/chunk-4KTJLJSJ.ts.map +0 -7
  244. package/dist/chunks/chunk-E3YLRLJM.ts.map +0 -7
  245. package/dist/chunks/chunk-ECYCNZOE.ts +0 -12
  246. package/dist/chunks/chunk-ECYCNZOE.ts.map +0 -7
  247. package/dist/chunks/chunk-JVFCVPPD.ts.map +0 -7
  248. package/dist/chunks/chunk-PJMM75W5.ts.map +0 -7
  249. package/dist/chunks/command-handler-K4XJOGYC.ts.map +0 -7
  250. package/dist/chunks/file-selection-MGGVOKM7.ts.map +0 -7
  251. package/dist/chunks/manager-result-dispatcher-4VJVDEUD.ts +0 -19
  252. package/dist/chunks/manager-ui-KYQ5AZJS.ts.map +0 -7
  253. package/dist/chunks/remote-selection-ui-W3KOZM3W.ts +0 -18
  254. package/dist/chunks/sync-operations-BVWYYKH3.ts.map +0 -7
  255. /package/dist/chunks/{chunk-ZIL6PW5L.ts.map → chunk-6YKOHBSC.ts.map} +0 -0
  256. /package/dist/chunks/{chunk-OA4NZLSL.ts.map → chunk-APZVJAEW.ts.map} +0 -0
  257. /package/dist/chunks/{chunk-4SR3ZYHA.ts.map → chunk-GELYN4UC.ts.map} +0 -0
  258. /package/dist/chunks/{chunk-YQSFJLJ3.ts.map → chunk-IBXEM35O.ts.map} +0 -0
  259. /package/dist/chunks/{chunk-2JHAN3ZO.ts.map → chunk-JREGWM2B.ts.map} +0 -0
  260. /package/dist/chunks/{chunk-EMRFVLZM.ts.map → chunk-NXWHPVXR.ts.map} +0 -0
  261. /package/dist/chunks/{chunk-SMVKMYLK.ts.map → chunk-P4GI7LTT.ts.map} +0 -0
  262. /package/dist/chunks/{chunk-ZVGRZD4C.ts.map → chunk-R3SAMXB6.ts.map} +0 -0
  263. /package/dist/chunks/{chunk-RNIEVDTR.ts.map → chunk-T3LABNHF.ts.map} +0 -0
  264. /package/dist/chunks/{chunk-S3R3W3KF.ts.map → chunk-UMPA5S7X.ts.map} +0 -0
  265. /package/dist/chunks/{chunk-S7F4FOAS.ts.map → chunk-VQ47JBLF.ts.map} +0 -0
  266. /package/dist/chunks/{chunk-WP2M67XZ.ts.map → chunk-WBIOSK76.ts.map} +0 -0
  267. /package/dist/chunks/{chunk-HEB6YT64.ts.map → chunk-ZO52JM4H.ts.map} +0 -0
  268. /package/dist/chunks/{conflict-review-IGKY2TOJ.ts.map → conflict-review-PCDFRIVB.ts.map} +0 -0
  269. /package/dist/chunks/{continuous-record-3XDXDOMV.ts.map → continuous-record-3SKJ6I3V.ts.map} +0 -0
  270. /package/dist/chunks/{continuous-storage-HLKCHF6Z.ts.map → continuous-storage-3EU6I7Z3.ts.map} +0 -0
  271. /package/dist/chunks/{manager-result-dispatcher-4VJVDEUD.ts.map → manager-result-dispatcher-GDB74IOP.ts.map} +0 -0
  272. /package/dist/chunks/{remote-selection-ui-W3KOZM3W.ts.map → remote-selection-ui-GPITNEBF.ts.map} +0 -0
  273. /package/dist/chunks/{setup-switch-D6K6PBPC.ts.map → setup-switch-L54X5U5I.ts.map} +0 -0
  274. /package/dist/chunks/{snapshot-5HY3M2NL.ts.map → snapshot-ZUJJZCFW.ts.map} +0 -0
  275. /package/dist/chunks/{snapshot-transaction-directory-OU2D7R7A.ts.map → snapshot-transaction-directory-F46JWRAU.ts.map} +0 -0
  276. /package/dist/chunks/{state-directory-XXHU73Z3.ts.map → state-directory-CMAIF34J.ts.map} +0 -0
  277. /package/dist/chunks/{sync-inspection-J3CRBORL.ts.map → sync-inspection-H2WX5SUT.ts.map} +0 -0
  278. /package/dist/chunks/{sync-state-2LMIXJ2C.ts.map → sync-state-QIT64TKV.ts.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @narumitw/pi-sync
2
2
 
3
+ ## 0.63.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5dfa289: Use local `.syncignore` rules for new TUI setups. Keep existing setup policies until the user reviews and confirms migration. Review the scope before transferring, upgrade peers before publishing version 6 snapshots, and edit existing rule files locally. Setup, migration, and rule-file switching do not start or authorize a transfer, and exclusions do not erase retained history. The bundled configuration skill can edit an explicitly identified local rule file on request; it no longer edits private JSON settings.
8
+
9
+ ### Patch Changes
10
+
11
+ - 25777f7: Read Git history manifests in bounded batches to reduce subprocess launches. Keep the same history preview and validate all retained publications in the original order.
12
+ - e3f2537: Keep the `/sync help` route from loading the interactive ignore-file editor or a second Pi TUI runtime from the extension install.
13
+ - Updated dependencies [1cbb470]
14
+ - @narumitw/pi-tui-kit@0.71.0
15
+
16
+ ## 0.62.0
17
+
18
+ ### Minor Changes
19
+
20
+ - d27317a: Prepare Pi Sync's local ignore-file policy, including recoverable default-file creation, settings review, and versioned snapshot compatibility checks. Existing setups are not migrated automatically. The new setup flow and first-open migration prompt remain disabled. Settings can show an existing rule file for manual editing; the daemon does not replace it. Settings shows the active settings path in RPC and explains which setup actions are unavailable while ignore-file transfers are disabled.
21
+ - 5b9146b: Let the `configure-pi-sync` skill apply and verify requested local settings edits, such as adding exclusions, through the running Pi Sync daemon without starting a transfer.
22
+
23
+ ### Patch Changes
24
+
25
+ - 5262897: Ship the daemon with Pi Sync so npm installs no longer require the standalone daemon package. The daemon still runs in a separate Node.js process with the same ownership and upgrade rules. If you only install Pi Sync, run `node <pi-sync-package>/dist/daemon/dist/cli.js` to use the daemon CLI. Standalone daemon releases do not update the bundled copy; update Pi Sync to get a newer bundled build.
26
+ - 4073de5: Fix Windows recovery when NTFS changes a restored file's creation time during rename. Keep exact content, file ID, spelling, and pre-rename ownership checks, and preserve existing recovery journal formats. Make the daemon build use the Node compiler entrypoint instead of spawning a Windows command script.
27
+
3
28
  ## 0.61.0
4
29
 
5
30
  ### Minor Changes
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Pi Sync synchronizes selected Pi settings and content across machines through Git, WebDAV, Cloudflare R2, or another S3-compatible store.
6
6
  Reusable storage connections hold credentials, while named sync setups define exactly what to sync, where to store it, and whether to sync automatically. Pi owns the interface; the separate [@narumitw/pi-sync-daemon service](https://github.com/narumiruna/pi-extensions/tree/main/packages/pi-sync-daemon) owns execution.
7
7
 
8
- > **Experimental daemon migration:** this checkout requires the new, independently published dependency. Close or upgrade older Pi processes and review ownership before real-data use. See [migration and release restrictions](./docs/daemon-migration.md).
8
+ > **Experimental daemon migration:** close or upgrade older Pi processes and review ownership before real-data use. See [migration and release restrictions](./docs/daemon-migration.md).
9
9
 
10
10
  ## ✨ Features
11
11
 
@@ -17,10 +17,12 @@ Reusable storage connections hold credentials, while named sync setups define ex
17
17
  - Writes settings atomically, preserves unknown fields, rejects stale edits, and fails closed on unsafe configuration.
18
18
  - Offers default-off Autonomous sync for eligible startup and Sync now transfers without another transfer confirmation, with model-assisted conflict resolution and a separate Continuous sync opt-in.
19
19
  - Shares one detached synchronization service across Pi clients, with a generated split UI client runtime.
20
- - Bundles a manual-only skill for configuration questions and safe setup guidance.
20
+ - Bundles an on-demand skill for configuration questions and scoped edits to a known local ignore file.
21
21
 
22
22
  ## 📦 Install
23
23
 
24
+ Use Node.js 22.19.0 or later for the daemon, the same minimum as the standalone package. The Pi Sync npm package includes the daemon code; no separate daemon installation is needed. The daemon still runs as a separate process.
25
+
24
26
  ```bash
25
27
  pi install npm:@narumitw/pi-sync
26
28
  ```
@@ -31,7 +33,7 @@ Try without installing permanently:
31
33
  pi -e npm:@narumitw/pi-sync
32
34
  ```
33
35
 
34
- Build the generated runtime and try a local checkout:
36
+ Build and try a local checkout from the repository root:
35
37
 
36
38
  ```bash
37
39
  npm install
@@ -41,13 +43,11 @@ npm --workspace @narumitw/pi-sync run build
41
43
  pi -e ./packages/pi-sync
42
44
  ```
43
45
 
44
- The package declares `dist/index.ts`, so an unbuilt checkout must run the build before Pi loads the package directory.
46
+ Pi loads `dist/index.ts` from the package directory, so build Kit and complete the local daemon build before building Pi Sync. The runtime-only daemon output from Git installation preparation is not enough for this build.
45
47
 
46
48
  Extensions run with Pi's permissions, so install only packages from sources you trust.
47
49
 
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).
50
+ Update Pi Sync to get a newer bundled daemon. Updating the standalone package does not change the copy in Pi Sync. Revoke retained unattended permission before updating, then use `/reload` in open Pi sessions. If the upgrade is blocked or the old owner's exit is uncertain, follow the [daemon upgrade guide](./docs/daemon-migration.md#ownership-and-upgrade).
51
51
 
52
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.
53
53
 
@@ -61,10 +61,10 @@ All new setups default to storage path `./`: the Git repository root, the WebDAV
61
61
  Git also suggests branch `main`.
62
62
  Use different folders or prefixes for independent setups sharing a WebDAV collection or bucket; existing settings and paths are unchanged.
63
63
  If another configured setup already uses the chosen location, setup asks for a different path before the content selection and review; Git requires a different branch, even when the directory differs.
64
- New setups default to the Pi agent directory. All eligible files are selected except `sessions/`, `bin/`, and `npm/`; you can review and change these rules before starting a transfer. Sessions require explicit opt-in. Automatic sync is off unless you enable it. Choose **Join an existing remote** to save with both options off and then review its policy, without transferring files. Selected-path setups remain available for compatibility.
64
+ With ignore-file support available, new TUI setups start with eligible files in the Pi agent directory and use `.syncignore` to exclude paths. Sessions require separate opt-in and must also be allowed by the rules. Automatic sync starts off. Choose **Join an existing remote** to save with sessions and automatic sync off, then review the remote policy. Existing setups keep their policy unless you migrate them.
65
65
  Before saving, review the exact destination, scope and rules, automatic-sync choice, and hidden-credential summary. R2/S3 always asks for an existing bucket; an example bucket name is not a default.
66
66
 
67
- Invalid fields ask for a correction without restarting setup. A temporary local save failure keeps the review for another Save; changed settings require reopening and reviewing the current values. Saving only changes local settings, not remote data. A connection saved through **Add a new storage connection…** remains saved if you later cancel the setup.
67
+ Invalid fields ask for a correction without restarting setup. A temporary local save failure keeps the review for another Save; changed settings require reopening and reviewing the current values. Saving writes local settings and may create a starter rule file. It does not start a transfer or grant permission for one. A connection saved through **Add a new storage connection…** remains saved if you later cancel the setup.
68
68
 
69
69
  Buckets and remote repositories must already exist.
70
70
  Git uses existing non-interactive SSH or credential-helper configuration and never stores Git credentials.
@@ -90,7 +90,7 @@ The summary distinguishes cached observations, recorded background state, and th
90
90
  After Pi Sync detects an included-content mismatch, the manager shows **Sync status: Review needed** and puts **Review synced content (recommended)** first.
91
91
  **Sync now** remains unavailable until you review the mismatch.
92
92
  Opening the manager does not make another remote request.
93
- **Settings** opens **Pi Sync Settings** directly: one searchable flat list with 17 rows and no category navigation or headings. **Included paths**, **Excluded paths**, and **Compare included paths** keep content policy together; comparison covers include/exclude rules, not file contents. **Storage location** edits only the current setup's bucket, branch, or path; it does not change the connection or included content. **Manage sync setups** and **Manage storage connections** open the existing catalogs. Connections hold reusable server addresses and sign-in details, and edits show every affected setup. Make another setup current before changing its preferences. Each description identifies the setup, device-wide, or shared-connection scope. Simple preferences report saving and durable save results; Back does not undo saved changes. Complex editors and risky changes retain their reviews. RPC reports the manual settings path and preserves catalog management without opening the TUI preference editor.
93
+ **Settings** opens **Pi Sync Settings** directly as one searchable list. It shows the content-policy controls for the current setup. For an ignore-file setup, **Compare sync policies** compares policy, not file contents, and cannot apply a remote policy. Legacy setups retain their existing content-list review. **Storage location** edits only the current setup's bucket, branch, or path; it does not change the connection or included content. **Manage sync setups** and **Manage storage connections** open the existing catalogs. Connections hold reusable server addresses and sign-in details, and edits show every affected setup. Make another setup current before changing its preferences. Each description identifies the setup, device-wide, or shared-connection scope. Simple preferences report saving and durable save results; Back does not undo saved changes. Complex editors and risky changes retain their reviews. RPC reports the manual settings path and preserves catalog management without opening the TUI preference editor.
94
94
 
95
95
  With Continuous sync configured, **Diagnostics** first opens a scrollable local report containing scheduler ownership, request limits, accounting, and recovery guidance. Back returns without running backend checks; continuing retains a separate backend-check confirmation. RPC presents bounded report pages. `/sync doctor` remains the direct configuration and backend-check route. S3/R2 performs a read-only request: success does not prove write access or snapshot validity, and an ambiguous 404 does not prove a bucket is missing. Check the indicated credentials, address, bucket, or path before retrying. Git checks remote reads and the local cache, not write access. WebDAV uses an isolated write/cleanup probe and repairs the active snapshot's history entry if missing. **History** opens the snapshot list directly for reviewed rollback. Recorded unresolved groups have a separate **Review unresolved conflicts** action.
96
96
 
@@ -104,7 +104,7 @@ Unless Autonomous sync or another explicit transfer authorization applies, a mer
104
104
 
105
105
  **View details** is optional. It shows the complete add/update/delete lists and unresolved paths in an exact scrolling review, or bounded pages in RPC. The review cannot apply changes. Back or Escape returns to confirmation with **No** selected; Ctrl+C cancels the whole TUI flow. RPC offers No first but the client controls visual selection, and protocol cancellation from details returns to confirmation. Session replacement or shutdown closes the flow; local files and remote state are rechecked before transfer.
106
106
 
107
- Unresolved paths stay unchanged on each side. A backup and recovery journal protect the transfer; resources do not reload automatically. Remote snapshot publication is shown separately because it can occur without file-content changes. File lists on the main screen are shortened when needed; details retain every path. `--yes` and automatic-transfer policy are unchanged. Interactive TUI Push and Pull use the same safe-default scrollable confirmation with exact directional add/update/remove counts and paths. Loaded sessions are excluded from local change counts. Pull and rollback also list case-variant path cleanup; changed aliases invalidate approval. Push describes changes to the active immutable snapshot, not physical deletion of retained history. RPC and History rollback keep their existing confirmation protocols, with the complete directional summary. Local bytes, settings, baseline, and remote head are rechecked before applying a reviewed transfer.
107
+ Unresolved paths stay unchanged on each side. A backup and recovery journal protect the transfer; resources do not reload automatically. Remote snapshot publication is shown separately because it can occur without file-content changes. File lists on the main screen are shortened when needed; details retain every path. `--yes` does not bypass a required policy-transition review. Automatic transfers require their own authorization and a compatible policy. Interactive TUI Push and Pull use the same safe-default scrollable confirmation with exact directional add/update/remove counts and paths. Loaded sessions are excluded from local change counts. Pull and rollback also list case-variant path cleanup; changed aliases invalidate approval. Push describes changes to the active immutable snapshot, not physical deletion of retained history. RPC and History rollback keep their existing confirmation protocols, with the complete directional summary. Local bytes, settings, baseline, and remote head are rechecked before applying a reviewed transfer.
108
108
 
109
109
  ### Restore sync access
110
110
 
@@ -172,9 +172,9 @@ Print and JSON modes do not support `/sync` because UI output is not observable
172
172
 
173
173
  Run `/sync` → **Set up sync** to create the canonical private user file at `<getAgentDir()>/pi-sync.json` (normally `~/.pi/agent/pi-sync.json`).
174
174
  Use **Settings** to manage an existing setup.
175
- Missing settings stay unconfigured without creating files or locks.
175
+ Missing settings stay unconfigured without creating files or locks. Legacy and ignore-file setups can share a settings document. Reviewed migration and rule-file switching require the canonical `pi-sync.json`; they do not promote `pi-sync.local.json` themselves.
176
176
 
177
- Directory scope selects all eligible files, applies `exclude`, then restores matches from `reinclude`. Pi login credentials, project trust, and Pi Sync's own state stay local regardless of those rules. Folder-wide sync may include private files that the secret scan cannot identify. Review the content before transferring to a trusted destination. Existing setups keep their selected paths and are not migrated automatically. See [Agent-directory scope](./skills/configure-pi-sync/references/configuration.md#agent-directory-scope) for formats, precedence, and recovery.
177
+ Legacy directory scope selects all eligible files, applies `exclude`, then restores matches from `reinclude`. Pi login credentials, project trust, and Pi Sync's own state stay local regardless of those rules. Folder-wide sync may include private files that the secret scan cannot identify. Review the content before transferring to a trusted destination. Existing setups keep their selected paths and are not migrated automatically. See [Agent-directory scope](./skills/configure-pi-sync/references/configuration.md#agent-directory-scope) for formats, precedence, and recovery.
178
178
 
179
179
  ### Debug startup timings
180
180
 
@@ -212,6 +212,10 @@ Ordinary **Sync now** reuses a cached refusal. Use **Retry refused model result
212
212
 
213
213
  ### Continuous sync
214
214
 
215
+ When any setup in the document uses an ignore file, first enable the automatic modes you want, then use **Settings → Review automatic transfers** to authorize those modes for the current policy. Saving or switching a setup does not grant permission or start a transfer. Settings and rule-file changes require a new review; work after the last Pi exits still requires its own authorization.
216
+
217
+ Removing the last ignore-file setup does not resume Continuous sync in the already attached sessions. To resume it if enabled, close `/sync` and run `/reload` in an attached TUI session, or close and reopen one Pi client.
218
+
215
219
  **Settings → Continuous sync** controls separate per-setup `sync.continuous`, default **Off**. Autonomous sync must also be enabled. A separate review authorizes recurring network access, model costs and automatic transfers while Pi is open. Upgrade all Pi processes sharing the agent directory before enabling it. Monitoring starts after the `/sync` command or manager closes, and replaces the duplicate one-shot startup transfer.
216
220
 
217
221
  Selected-file hints are coalesced after one quiet second. A 60–66 second remote/local check covers missed events. Temporary failures and proven pre-publication edit races use bounded backoff. Removing flagged secret content or repairing unsupported conflicts permits a fresh inspection; unchanged blocks do not repeatedly call the model. One daemon owns monitoring for each shared canonical agent directory; each computer remains a separate replica. Busy sessions and foreground commands release ownership after draining work. After the last registered live client PID for the canonical agent directory exits, the service starts a fixed 30-second grace period unless a valid active-setup after-exit grant keeps it running, then drains work before safe exit. Live passive, disconnected, publishing, and orderly retired PIDs still count; `/reload`, `/new`, fork, and resume do not end shared ownership while their Pi process is alive. A client arriving before shutdown becomes final cancels automatic exit. A valid explicit after-exit grant for the active setup keeps the service running without expanding existing transfer or model permissions; see [Daemon lifetime and unattended permission](./skills/configure-pi-sync/references/configuration.md#daemon-lifetime-and-unattended-permission). Resources never reload automatically.
@@ -232,9 +236,9 @@ Successful transfers show one summary. They do not reload resources, activate ex
232
236
 
233
237
  **Settings → Merge settings fields** controls the per-setup `sync.mergeSettings` opt-in, default **Off**. It combines independent global `settings.json` fields, not arbitrary JSON or keybindings. Missing/corrupt ancestors, unsupported syntax, and incompatible fields retain whole-transfer review. Sensitive accepted content is cached privately under the denied state root; disabling does not delete evidence.
234
238
 
235
- **Settings → Machine-local fields** edits explicit `sync.localFields` root field names for global `settings.json` (default none). Excluded values and absence stay local; future portable snapshots omit them. An explicit array requires at least settings version 4 and snapshot version 2; directory scope keeps settings version 7 and snapshot version 5. Nonempty rules require `settings.json` in `sync.include` only for selected-path setups. All receiving machines must configure compatible rules. Additions/removals require a separately confirmed force-direction migration, even with `--yes`; old remote history is **not erased**. See [settings merge and local fields](./skills/configure-pi-sync/references/configuration.md#settings-field-merge-and-machine-local-fields) for formats, compatibility and recovery.
239
+ **Settings → Machine-local fields** edits explicit `sync.localFields` root field names for global `settings.json` (default none). Excluded values and absence stay local; future portable snapshots omit them. An explicit array requires at least settings version 4 and snapshot version 2; legacy directory scope keeps settings version 7 or later and snapshot version 5; ignore-file setups use settings version 8 and snapshot version 6. Nonempty rules require `settings.json` in `sync.include` only for selected-path setups. All receiving machines must configure compatible rules. Additions/removals require a separately confirmed force-direction migration, even with `--yes`; old remote history is **not erased**. See [settings merge and local fields](./skills/configure-pi-sync/references/configuration.md#settings-field-merge-and-machine-local-fields) for formats, compatibility and recovery.
236
240
 
237
- **Settings → Content merge / partial progress** controls independent `sync.mergeContent` and `sync.partialSync` opt-ins, both default **Off**. Saving opts into at least settings version 5; partial publications use snapshot version 3 for selected paths, version 4 with selected-path exclusions, or version 5 for directory scope. Older readers must refuse unsupported formats. Supported Markdown/plain-text resources merge bounded independent line edits without Git or conflict markers. Diff grids and hunk comparisons share an eight-million-work-unit budget across the operation and its retries; exhausted paths remain conflicts for review. Same-session reconciliation only accepts validated complete byte-prefix extensions; divergent histories and the loaded session require review. A syntactically clean text merge is **not a semantic correctness guarantee**.
241
+ **Settings → Content merge / partial progress** controls independent `sync.mergeContent` and `sync.partialSync` opt-ins, both default **Off**. Saving opts into at least settings version 5; partial publications use snapshot version 3 for selected paths, version 4 with selected-path exclusions, version 5 for legacy directory scope, or version 6 for ignore-file policy. Older readers must refuse unsupported formats. Supported Markdown/plain-text resources merge bounded independent line edits without Git or conflict markers. Diff grids and hunk comparisons share an eight-million-work-unit budget across the operation and its retries; exhausted paths remain conflicts for review. Same-session reconciliation only accepts validated complete byte-prefix extensions; divergent histories and the loaded session require review. A syntactically clean text merge is **not a semantic correctness guarantee**.
238
242
 
239
243
  Partial sync keeps each side's unresolved versions, preserves their previous accepted hashes/ancestors, and advances only independent paths. Resource/collision dependency groups are withheld together, including local-only files, never represented as deletion. The conditional **Review unresolved conflicts** action, or `/sync conflicts`, opens exact private versions on request and resolves one freshly validated whole group. Automatic pushes, non-forced push/pull, and rollback refuse unresolved groups; use group review or an explicit manual push/pull force direction instead. Artifacts remain below the denied state root, with stable conflict identity and at most 32 proven-completed records retained; unresolved or unrecognized evidence is never automatically pruned. Failed attempts release only newly created artifacts whose inode/content ownership and lack of state/journal references are verified. See [content merge and partial recovery](./docs/content-merge-audit.md).
240
244
 
@@ -276,7 +280,7 @@ A minimal Git setup uses an existing private remote and keeps automatic sync off
276
280
  }
277
281
  ```
278
282
 
279
- Setup saves are atomic and private (`0600` on POSIX), preserve unknown fields, and coordinate across pi-sync processes.
283
+ The existing daemon settings writer uses a private same-directory temporary file and rename (`0600` on POSIX), preserves unknown fields, and coordinates cooperating Pi Sync processes. The lock does not cover external editors.
280
284
  Do not save from a lock-unaware editor during a pi-sync settings operation.
281
285
  Malformed, invalid, unsupported, symlinked, or concurrently changed documents remain untouched.
282
286
  Version 1, version 2, and non-empty unversioned settings require manual recovery rather than automatic migration.
@@ -284,15 +288,26 @@ Version 1, version 2, and non-empty unversioned settings require manual recovery
284
288
  Adding `sessions` can upload prompts, tool output, paths, images, and secrets; interactive flows require a privacy acknowledgement.
285
289
  Startup checks report included-content differences without changing anything. Transfers retain their existing included-content policy checks instead of silently expanding local scope.
286
290
 
291
+ ### Ignore-file policy
292
+
293
+ These routes require ignore-file support in the running daemon. In TUI, eligible legacy setups can review migration the first time you open `/sync`. **Not now** keeps your existing policy and defers the prompt for that setup. To review it later, use **Settings → Migrate to ignore file…**. Check which local and remote paths enter or leave scope. Directory-wide rules can also include files created later. Use `/sync files` to check current local scope and review the transfer itself before approving it. An ignore file is not a secret scanner.
294
+
295
+ An existing valid rule file is reused as-is. After confirmation, the daemon can create a missing default `.syncignore` on Linux, macOS, and Windows without overwriting an existing file. If automatic creation is unavailable on your filesystem, follow the displayed path and starter rules: create a regular UTF-8 file there without replacing an existing file, then reopen the setup or migration review. **Settings → Ignore file** shows the current path and lets you review a switch to another existing file. Edit the file manually; there is no in-app rule save. Edits affect every setup that uses that file. Setup, migration, switching the file, and editing rules do not authorize or trigger a transfer.
296
+
297
+ The starter excludes `/sessions/` even if you opt into session sync. To sync sessions, both opt in and adjust the rule. Pi credentials, trust, Pi Sync settings and state, and rule files stay local regardless of the rules. Excluded files stay untouched locally, including on rollback. New publications omit excluded paths; retained snapshots and backups are **not erased**.
298
+
299
+ Upgrade all peers to compatible Pi Sync clients and daemons before the first version 6 snapshot publication. The remote stores a policy fingerprint, not the filename or rules. Configure matching rules and session opt-in on each device before pulling. For an existing remote with a different policy, review an explicit direction; background sync cannot make that transition. See [Ignore-file policy and recovery](./skills/configure-pi-sync/references/configuration.md#ignore-file-policy) for starter rules, matching, and safe recovery.
300
+
301
+ ### Legacy path rules
302
+
287
303
  For selected-path setups, **Settings → Excluded paths** edits `sync.exclude` rules that win over `include`; saving opts into at least settings version 6 and snapshot version 4. For directory scope, **Settings → Agent directory scope** also edits `reinclude` and session opt-in. Excluded local files remain untouched, including on rollback. New publications omit matching remote paths, but old history is **not erased**. Removing rules can expose or replace content. See [Excluded paths](./skills/configure-pi-sync/references/configuration.md#excluded-paths) for syntax, review, and recovery.
288
304
 
289
305
  Read the [settings reference](./skills/configure-pi-sync/references/configuration.md) for complete S3/R2, Git, and WebDAV examples, backend fields, content policy, legacy paths, and recovery steps.
290
306
 
291
307
  ## 🧠 Skills
292
308
 
293
- Run `/skill:configure-pi-sync` before asking Pi about storage choices, included content, automatic controls, or settings recovery.
294
- The [configuration skill](./skills/configure-pi-sync/SKILL.md) is manual-only and provides guidance only: it does not inspect private settings, collect credentials, edit files, execute diagnostics, or sync content.
295
- Enter credentials in the existing masked TUI and perform settings changes and reviewed transfers through `/sync` yourself.
309
+ Run `/skill:configure-pi-sync` for configuration guidance. To request a rule edit, name the existing local file shown in **Settings → Ignore file** and the exact change. The [configuration skill](./skills/configure-pi-sync/SKILL.md) loads only on request and does not read or write private Pi Sync settings.
310
+ Use `/sync` for initial setup, masked credential entry, and changes or transfers that require a separate review. The skill does not run diagnostics, check remote connectivity, or start a transfer.
296
311
  The skill's instructions are not a permission sandbox for the agent's other tools.
297
312
  Read the [settings reference](./skills/configure-pi-sync/references/configuration.md) directly when no agent assistance is needed.
298
313
 
@@ -325,7 +340,13 @@ show `sync recovering`. If cleanup remains uncertain, review
325
340
  [daemon recovery](./docs/daemon-migration.md#write-coordination-and-disconnection)
326
341
  before retrying.
327
342
 
328
- 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).
343
+ Use the [daemon CLI](./docs/daemon-migration.md#daemon-cli) for explicit `stop` or `restart`; these are not `/sync daemon` actions. For example, with only Pi Sync installed:
344
+
345
+ ```bash
346
+ node "/path/to/installed/pi-sync/dist/daemon/dist/cli.js" status --root "/path/to/agent-directory"
347
+ ```
348
+
349
+ Use the directory containing the installed Pi Sync `package.json` and the agent directory of the owner you want to inspect. `status` does not start a service. `stop` drains the service; reload Pi to reattach afterward. CLI `start` without clients follows the same 30-second grace policy. If ownership, consent, or cleanup is uncertain, follow the [recovery guide](./docs/daemon-migration.md#diagnostics-and-rollback) instead of forcing a restart. Print/JSON never launch a service.
329
350
 
330
351
  All routes support TUI and RPC; RPC settings and included-content screens are read-only.
331
352
  Print and JSON modes reject `/sync`.
@@ -333,7 +354,7 @@ Unknown commands or flags, trailing values, and missing setup/snapshot values ar
333
354
 
334
355
  - `--setup <name>` targets a setup without switching it on `config`, `files`, `status`, `diff`, `conflicts`, `doctor`, `push`, `pull`, `sync`, `history`, and `rollback`.
335
356
  - `--yes` (alias: `-y`) skips confirmation on `push`, `pull`, `sync`, `rollback`, and `migrate-state`; use only after reviewing the affected content.
336
- - `--force` lets `push` or `pull` accept content conflicts without disabling backend concurrency protection. It is also accepted by `sync`, which still requires a direction choice for divergent content, and by `rollback` for compatibility. Explicit forced directions can also resolve an interrupted merge after a fresh review, archiving its old journal instead of restoring old bytes.
357
+ - `--force` lets `push` or `pull` accept content conflicts without disabling backend concurrency protection. It is also accepted by `sync`, which still requires a direction choice for divergent content, and by `rollback` for compatibility. For legacy path policies, explicit forced directions can also resolve an interrupted merge after a fresh review, archiving its old journal instead of restoring old bytes.
337
358
  - `--stale` is accepted only by `unlock` and is required to remove a stale lock.
338
359
 
339
360
  Push and rollback publish data externally; pull and rollback can replace or delete local managed files.
@@ -366,7 +387,7 @@ Before pull or rollback, pi-sync writes a backup under `<agent-dir>/pi-sync/back
366
387
  Snapshot apply and recovery require canonical agent and session paths. Preflight refuses parent aliases it detects because Pi's file queue uses different keys for existing and missing aliases. Node's path-based writes and deletes cannot prevent another process from replacing a parent directory after a check. Use directories you control, and pause tools that move or replace their directories during sync. Preserve any pending recovery evidence; an unresolved startup recovery barrier still blocks transfers. Old journals recorded under an alias require manual review because their exact root and target paths remain pinned. Changing the agent path alone does not authorize recovery or rewriting those journals.
367
388
  Apply preflights paths and checksums, journals mutations, and restores prior state only when current bytes match verified preimages or planned postimages. Unknown intermediate directory states and newer edits require review rather than a blind rollback. An interruption after replacement is armed can require manual recovery even if installation never ran; a later deletion of installed content is not treated as an unfinished remove.
368
389
  The file queue coordinates one Pi runtime, not separate processes or lock-unaware editors. Hash-based journals cannot distinguish a later write of identical recorded bytes; they do not provide a cross-process compare-and-swap.
369
- Merged transfers instead retain a private publication/apply/baseline journal and roll forward only when the active remote candidate and every changed local preimage/postimage can be verified. A crash or uncertain publication is reconciled through `/sync sync` without blind republishing. If newer local or remote changes prevent reconciliation, preserve the evidence, review `/sync diff`, and explicitly choose `push --force` or `pull --force`; the chosen direction archives the old journal. Disabling automatic transfer does not undo completed transfers. Do not downgrade while a merge or snapshot recovery journal is pending.
390
+ Merged transfers instead retain a private publication/apply/baseline journal and roll forward only when the active remote candidate and every changed local preimage/postimage can be verified. A crash or uncertain publication is reconciled through `/sync sync` without blind republishing. If newer local or remote changes prevent reconciliation, preserve the evidence and review `/sync diff`. With a legacy policy, an explicitly reviewed `push --force` or `pull --force` can archive the old journal. With an ignore-file policy, keep the originating setup and exact rule source; a mismatch blocks replay and force direction does not bypass pending recovery. Follow the [ignore-file recovery guidance](./skills/configure-pi-sync/references/configuration.md#ignore-file-policy). Disabling automatic transfer does not undo completed transfers. Do not downgrade while a merge or snapshot recovery journal is pending.
370
391
 
371
392
  Removing a local setup or connection never deletes remote data.
372
393
 
@@ -411,10 +432,10 @@ packages/pi-sync/
411
432
  │ ├── backends/ # Public backend contract forwarders
412
433
  │ ├── state/ # Public state contract forwarders
413
434
  │ └── ui/ # Manager, settings, reviews, and setup flows
414
- ├── dist/ # Generated Jiti runtime
435
+ ├── dist/ # Published Jiti runtime and separate daemon files
415
436
  ├── scripts/build-runtime.mjs # Runtime builder
416
437
  ├── docs/ # Operational audits and settings link compatibility
417
- ├── skills/configure-pi-sync/ # Manual-only guidance and authoritative settings reference
438
+ ├── skills/configure-pi-sync/ # Local rule edits and authoritative settings reference
418
439
  └── test/ # Behavior and lifecycle coverage
419
440
  ```
420
441
 
@@ -422,7 +443,7 @@ The [exclude policy safety audit](./docs/exclude-policy-audit.md) maps implement
422
443
 
423
444
  The generated runtime is built from `src/index.ts` and does not import back into `src`.
424
445
  Internal modules use direct imports from their owners; `src/sync.ts` and `src/types.ts` retain compatibility exports.
425
- Engine implementation lives in the non-extension `@narumitw/pi-sync-daemon` dependency; Pi uses its documented exports, without an in-process transfer fallback. First-use UI and setup implementations remain lazy.
446
+ Repository and Git source installs use the daemon workspace's documented exports; the npm runtime maps the same exports to `dist/daemon/`. Transfers still run in the daemon, with no in-process fallback. First-use UI and setup implementations remain lazy.
426
447
 
427
448
  ## 🔎 Keywords
428
449
 
@@ -9,24 +9,28 @@ import {
9
9
  loadConfig,
10
10
  loadConfigForCheck,
11
11
  loadPartialConfig,
12
+ loadSettingsConfig,
12
13
  sessionTokenWarnings,
13
14
  syncCheckConfigFingerprint,
14
15
  syncConfigReviewFingerprint,
15
16
  syncConfigReviewIdentity,
16
17
  syncSessionsWarnings,
18
+ syncSettingsConfigFingerprint,
17
19
  syncSetupReviewIdentity,
18
20
  syncSetupStorageReview
19
- } from "@narumitw/pi-sync-daemon/engine/settings/config";
21
+ } from "#pi-sync-daemon/engine/settings/config";
20
22
 
21
23
  export {
24
+ configFromSettings,
22
25
  loadConfig,
23
26
  loadConfigForCheck,
24
27
  loadPartialConfig,
28
+ loadSettingsConfig,
25
29
  sessionTokenWarnings,
26
30
  syncCheckConfigFingerprint,
27
31
  syncConfigReviewFingerprint,
28
32
  syncConfigReviewIdentity,
29
33
  syncSessionsWarnings,
30
- syncSetupReviewIdentity
34
+ syncSettingsConfigFingerprint
31
35
  };
32
- //# sourceMappingURL=chunk-277VHM2P.ts.map
36
+ //# sourceMappingURL=chunk-27F5W7DX.ts.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/settings/config.ts"],
4
+ "sourcesContent": ["export type * from \"@narumitw/pi-sync-daemon/engine/settings/config\";\nexport {\n configFromSettings,\n isEnabled,\n isExplicitlyEnabled,\n loadConfig,\n loadConfigForCheck,\n loadPartialConfig,\n loadSettingsConfig,\n sessionTokenWarnings,\n syncCheckConfigFingerprint,\n syncConfigReviewFingerprint,\n syncConfigReviewIdentity,\n syncSessionsWarnings,\n syncSettingsConfigFingerprint,\n syncSetupReviewIdentity,\n syncSetupStorageReview,\n} from \"@narumitw/pi-sync-daemon/engine/settings/config\";\n"],
5
+ "mappings": ";;;;AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
6
+ "names": []
7
+ }
@@ -7,7 +7,7 @@ import {
7
7
  isSyncDecisionRequiredError,
8
8
  SetupPullRequiresUiError,
9
9
  SyncDecisionRequiredError
10
- } from "@narumitw/pi-sync-daemon/engine/sync/sync-errors";
10
+ } from "#pi-sync-daemon/engine/sync/sync-errors";
11
11
 
12
12
  export {
13
13
  errorMessage,
@@ -15,4 +15,4 @@ export {
15
15
  SetupPullRequiresUiError,
16
16
  SyncDecisionRequiredError
17
17
  };
18
- //# sourceMappingURL=chunk-ZIL6PW5L.ts.map
18
+ //# sourceMappingURL=chunk-6YKOHBSC.ts.map
@@ -17,7 +17,7 @@ import {
17
17
  validateConfigName,
18
18
  validateSettingsDocument,
19
19
  validateUniqueRemoteSyncSetups
20
- } from "@narumitw/pi-sync-daemon/engine/settings/settings-validation";
20
+ } from "#pi-sync-daemon/engine/settings/settings-validation";
21
21
 
22
22
  export {
23
23
  effectiveSyncSetupRemoteIdentity,
@@ -28,6 +28,7 @@ export {
28
28
  normalizeStoragePath,
29
29
  ownRecord,
30
30
  requiredString,
31
- validateConfigName
31
+ validateConfigName,
32
+ validateSettingsDocument
32
33
  };
33
- //# sourceMappingURL=chunk-OA4NZLSL.ts.map
34
+ //# sourceMappingURL=chunk-APZVJAEW.ts.map
@@ -0,0 +1,114 @@
1
+ // @generated by scripts/build-runtime.mjs; do not edit.
2
+ // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
+
4
+ // src/ui/cancellable-operation.ts
5
+ import { BorderedLoader } from "@earendil-works/pi-coding-agent";
6
+ import { isKeyRelease, Key, matchesKey, truncateToWidth } from "@earendil-works/pi-tui";
7
+ import { formatInteractionHints, runCustomInteraction } from "@narumitw/pi-tui-kit";
8
+ async function runCancellableOperation(ctx, message, route, runRoute, options = {}) {
9
+ const result = await runCancellableTask(
10
+ ctx,
11
+ message,
12
+ (signal, onCommit, onDialog) => runRoute(route, signal, onCommit, options.target, onDialog),
13
+ options
14
+ );
15
+ return result.kind === "completed" ? result.value ?? { kind: "failed" } : result;
16
+ }
17
+ async function runCancellableTask(ctx, message, task, options = {}) {
18
+ const {
19
+ commitAware = false,
20
+ cancelAcrossDialogs = false,
21
+ cancelledMessage = "Check cancelled; no settings or files were changed.",
22
+ signal,
23
+ isCurrent = () => true
24
+ } = options;
25
+ if (signal?.aborted || !isCurrent()) return { kind: "closed" };
26
+ if (ctx.mode !== "tui") return { kind: "completed", value: await task(signal) };
27
+ let commitStarted = false;
28
+ let taskResult;
29
+ const interaction = await runCustomInteraction(ctx, {
30
+ signal,
31
+ isCurrent: () => !signal?.aborted && isCurrent(),
32
+ create: ({ tui, theme, keybindings, signal: interactionSignal, complete }) => {
33
+ const loader = new BorderedLoader(tui, theme, message, { cancellable: false });
34
+ const cancelHint = formatInteractionHints(keybindings, [
35
+ {
36
+ keys: [...keybindings.getKeys("tui.select.cancel").filter((key) => !hasControlCharacter(key)), "ctrl+c"],
37
+ label: "cancel"
38
+ }
39
+ ]);
40
+ const cancel = (data) => {
41
+ if (isKeyRelease(data)) return false;
42
+ if (!matchesKey(data, Key.ctrl("c")) && !keybindings.matches(data, "tui.select.cancel")) return false;
43
+ if (commitStarted) {
44
+ ctx.ui.notify("Applying or publishing has started and cannot be cancelled safely.", "warning");
45
+ } else complete({ cancelled: true });
46
+ return true;
47
+ };
48
+ let activeDialogs = 0;
49
+ const unsubscribe = cancelAcrossDialogs ? ctx.ui.onTerminalInput((data) => {
50
+ if (isKeyRelease(data)) return;
51
+ if (activeDialogs > 0 && !matchesKey(data, Key.ctrl("c"))) return;
52
+ return cancel(data) ? { consume: true } : void 0;
53
+ }) : void 0;
54
+ let pendingTask;
55
+ try {
56
+ pendingTask = task(
57
+ interactionSignal,
58
+ commitAware ? () => commitStarted = true : void 0,
59
+ cancelAcrossDialogs ? (active) => {
60
+ activeDialogs += active ? 1 : -1;
61
+ } : void 0
62
+ );
63
+ } catch (error) {
64
+ unsubscribe?.();
65
+ loader.dispose();
66
+ throw error;
67
+ }
68
+ const operation = pendingTask.then(
69
+ (result) => {
70
+ taskResult = result;
71
+ complete({});
72
+ },
73
+ (error) => complete({ error })
74
+ );
75
+ return {
76
+ render(width) {
77
+ if (width <= 0) return [];
78
+ const safeWidth = Math.max(1, width);
79
+ const lines = loader.render(safeWidth);
80
+ const bottomBorder = lines.at(-1);
81
+ return [
82
+ ...lines.slice(0, -1),
83
+ truncateToWidth(theme.fg("dim", cancelHint), safeWidth, ""),
84
+ ...bottomBorder === void 0 ? [] : [bottomBorder]
85
+ ];
86
+ },
87
+ invalidate: () => loader.invalidate(),
88
+ handleInput: cancel,
89
+ dispose() {
90
+ unsubscribe?.();
91
+ loader.dispose();
92
+ },
93
+ waitForPending: () => operation
94
+ };
95
+ }
96
+ });
97
+ if (interaction.kind === "error") throw interaction.error;
98
+ if (interaction.kind !== "completed") return { kind: "closed" };
99
+ if (interaction.value.cancelled) {
100
+ if (cancelledMessage) ctx.ui.notify(cancelledMessage, "info");
101
+ return { kind: "cancelled" };
102
+ }
103
+ if (interaction.value.error) throw interaction.value.error;
104
+ return { kind: "completed", value: taskResult };
105
+ }
106
+ function hasControlCharacter(value) {
107
+ return /[\u0000-\u001f\u007f-\u009f]/u.test(value);
108
+ }
109
+
110
+ export {
111
+ runCancellableOperation,
112
+ runCancellableTask
113
+ };
114
+ //# sourceMappingURL=chunk-CKUGCBHP.ts.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ui/cancellable-operation.ts"],
4
+ "sourcesContent": ["import { BorderedLoader, type ExtensionContext } from \"@earendil-works/pi-coding-agent\";\nimport { isKeyRelease, Key, matchesKey, truncateToWidth } from \"@earendil-works/pi-tui\";\nimport { formatInteractionHints, runCustomInteraction } from \"@narumitw/pi-tui-kit\";\nimport type { SetupPullOutcome } from \"../sync/setup-switch.js\";\nimport type { SyncDecision } from \"../sync/sync-decision.js\";\nimport type { RemoteSelectionDecision } from \"../sync/sync-policy.js\";\n\nexport type RunRouteResult =\n | { kind: \"completed\"; outcome?: SetupPullOutcome }\n | { kind: \"decision-required\"; decision: SyncDecision }\n | { kind: \"remote-selection-required\"; decision: RemoteSelectionDecision }\n | { kind: \"failed\" };\n\nexport type RunRoute = (\n route: string,\n signal?: AbortSignal,\n onCommit?: () => void,\n target?: string,\n onDialog?: (active: boolean) => void,\n retryRefusal?: boolean,\n) => Promise<RunRouteResult | undefined>;\n\nexport type CancellableOperationResult = RunRouteResult | { kind: \"closed\" } | { kind: \"cancelled\" };\n\ninterface CancellableOperationOptions {\n commitAware?: boolean;\n cancelAcrossDialogs?: boolean;\n cancelledMessage?: string | null;\n target?: string;\n signal?: AbortSignal;\n isCurrent?: () => boolean;\n}\n\nexport async function runCancellableOperation(\n ctx: ExtensionContext,\n message: string,\n route: string,\n runRoute: RunRoute,\n options: CancellableOperationOptions = {},\n): Promise<CancellableOperationResult> {\n const result = await runCancellableTask(\n ctx,\n message,\n (signal, onCommit, onDialog) => runRoute(route, signal, onCommit, options.target, onDialog),\n options,\n );\n return result.kind === \"completed\" ? (result.value ?? { kind: \"failed\" }) : result;\n}\n\nexport type CancellableTaskResult<Value> =\n | { kind: \"completed\"; value: Value }\n | { kind: \"closed\" }\n | { kind: \"cancelled\" };\n\n/** Keep non-route work under the same cancellation and drain owner as transfers. */\nexport async function runCancellableTask<Value>(\n ctx: ExtensionContext,\n message: string,\n task: (\n signal: AbortSignal | undefined,\n onCommit?: () => void,\n onDialog?: (active: boolean) => void,\n ) => Promise<Value>,\n options: Omit<CancellableOperationOptions, \"target\"> = {},\n): Promise<CancellableTaskResult<Value>> {\n const {\n commitAware = false,\n cancelAcrossDialogs = false,\n cancelledMessage = \"Check cancelled; no settings or files were changed.\",\n signal,\n isCurrent = () => true,\n } = options;\n if (signal?.aborted || !isCurrent()) return { kind: \"closed\" };\n if (ctx.mode !== \"tui\") return { kind: \"completed\", value: await task(signal) };\n let commitStarted = false;\n let taskResult!: Value;\n const interaction = await runCustomInteraction<{ cancelled?: boolean; error?: unknown }, ExtensionContext>(ctx, {\n signal,\n isCurrent: () => !signal?.aborted && isCurrent(),\n create: ({ tui, theme, keybindings, signal: interactionSignal, complete }) => {\n const loader = new BorderedLoader(tui, theme, message, { cancellable: false });\n const cancelHint = formatInteractionHints(keybindings, [\n {\n keys: [...keybindings.getKeys(\"tui.select.cancel\").filter((key) => !hasControlCharacter(key)), \"ctrl+c\"],\n label: \"cancel\",\n },\n ]);\n const cancel = (data: string) => {\n // Raw terminal listeners run before Pi filters Kitty key releases.\n if (isKeyRelease(data)) return false;\n if (!matchesKey(data, Key.ctrl(\"c\")) && !keybindings.matches(data, \"tui.select.cancel\")) return false;\n if (commitStarted) {\n ctx.ui.notify(\"Applying or publishing has started and cannot be cancelled safely.\", \"warning\");\n } else complete({ cancelled: true });\n return true;\n };\n // Pi dialogs replace this loader and restore the normal editor. Defer\n // ordinary keys while they are open; retain raw cancellation afterward.\n // Ctrl+C remains the root flow's hard-cancel path regardless of focus.\n let activeDialogs = 0;\n const unsubscribe = cancelAcrossDialogs\n ? ctx.ui.onTerminalInput((data) => {\n if (isKeyRelease(data)) return;\n if (activeDialogs > 0 && !matchesKey(data, Key.ctrl(\"c\"))) return;\n return cancel(data) ? { consume: true } : undefined;\n })\n : undefined;\n let pendingTask: Promise<Value>;\n try {\n pendingTask = task(\n interactionSignal,\n commitAware ? () => (commitStarted = true) : undefined,\n cancelAcrossDialogs\n ? (active) => {\n activeDialogs += active ? 1 : -1;\n }\n : undefined,\n );\n } catch (error) {\n unsubscribe?.();\n loader.dispose();\n throw error;\n }\n const operation = pendingTask.then(\n (result) => {\n taskResult = result;\n complete({});\n },\n (error: unknown) => complete({ error }),\n );\n return {\n render(width: number) {\n if (width <= 0) return [];\n const safeWidth = Math.max(1, width);\n const lines = loader.render(safeWidth);\n const bottomBorder = lines.at(-1);\n return [\n ...lines.slice(0, -1),\n truncateToWidth(theme.fg(\"dim\", cancelHint), safeWidth, \"\"),\n ...(bottomBorder === undefined ? [] : [bottomBorder]),\n ];\n },\n invalidate: () => loader.invalidate(),\n handleInput: cancel,\n dispose() {\n unsubscribe?.();\n loader.dispose();\n },\n waitForPending: () => operation,\n };\n },\n });\n if (interaction.kind === \"error\") throw interaction.error;\n if (interaction.kind !== \"completed\") return { kind: \"closed\" };\n if (interaction.value.cancelled) {\n if (cancelledMessage) ctx.ui.notify(cancelledMessage, \"info\");\n return { kind: \"cancelled\" };\n }\n if (interaction.value.error) throw interaction.value.error;\n return { kind: \"completed\", value: taskResult };\n}\n\nfunction hasControlCharacter(value: string) {\n // biome-ignore lint/suspicious/noControlCharactersInRegex: Unsafe key labels must be omitted.\n return /[\\u0000-\\u001f\\u007f-\\u009f]/u.test(value);\n}\n"],
5
+ "mappings": ";;;;AAAA,SAAS,sBAA6C;AACtD,SAAS,cAAc,KAAK,YAAY,uBAAuB;AAC/D,SAAS,wBAAwB,4BAA4B;AA+B7D,eAAsB,wBACpB,KACA,SACA,OACA,UACA,UAAuC,CAAC,GACH;AACrC,QAAM,SAAS,MAAM;AAAA,IACnB;AAAA,IACA;AAAA,IACA,CAAC,QAAQ,UAAU,aAAa,SAAS,OAAO,QAAQ,UAAU,QAAQ,QAAQ,QAAQ;AAAA,IAC1F;AAAA,EACF;AACA,SAAO,OAAO,SAAS,cAAe,OAAO,SAAS,EAAE,MAAM,SAAS,IAAK;AAC9E;AAQA,eAAsB,mBACpB,KACA,SACA,MAKA,UAAuD,CAAC,GACjB;AACvC,QAAM;AAAA,IACJ,cAAc;AAAA,IACd,sBAAsB;AAAA,IACtB,mBAAmB;AAAA,IACnB;AAAA,IACA,YAAY,MAAM;AAAA,EACpB,IAAI;AACJ,MAAI,QAAQ,WAAW,CAAC,UAAU,EAAG,QAAO,EAAE,MAAM,SAAS;AAC7D,MAAI,IAAI,SAAS,MAAO,QAAO,EAAE,MAAM,aAAa,OAAO,MAAM,KAAK,MAAM,EAAE;AAC9E,MAAI,gBAAgB;AACpB,MAAI;AACJ,QAAM,cAAc,MAAM,qBAAiF,KAAK;AAAA,IAC9G;AAAA,IACA,WAAW,MAAM,CAAC,QAAQ,WAAW,UAAU;AAAA,IAC/C,QAAQ,CAAC,EAAE,KAAK,OAAO,aAAa,QAAQ,mBAAmB,SAAS,MAAM;AAC5E,YAAM,SAAS,IAAI,eAAe,KAAK,OAAO,SAAS,EAAE,aAAa,MAAM,CAAC;AAC7E,YAAM,aAAa,uBAAuB,aAAa;AAAA,QACrD;AAAA,UACE,MAAM,CAAC,GAAG,YAAY,QAAQ,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,GAAG,CAAC,GAAG,QAAQ;AAAA,UACvG,OAAO;AAAA,QACT;AAAA,MACF,CAAC;AACD,YAAM,SAAS,CAAC,SAAiB;AAE/B,YAAI,aAAa,IAAI,EAAG,QAAO;AAC/B,YAAI,CAAC,WAAW,MAAM,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,YAAY,QAAQ,MAAM,mBAAmB,EAAG,QAAO;AAChG,YAAI,eAAe;AACjB,cAAI,GAAG,OAAO,sEAAsE,SAAS;AAAA,QAC/F,MAAO,UAAS,EAAE,WAAW,KAAK,CAAC;AACnC,eAAO;AAAA,MACT;AAIA,UAAI,gBAAgB;AACpB,YAAM,cAAc,sBAChB,IAAI,GAAG,gBAAgB,CAAC,SAAS;AAC/B,YAAI,aAAa,IAAI,EAAG;AACxB,YAAI,gBAAgB,KAAK,CAAC,WAAW,MAAM,IAAI,KAAK,GAAG,CAAC,EAAG;AAC3D,eAAO,OAAO,IAAI,IAAI,EAAE,SAAS,KAAK,IAAI;AAAA,MAC5C,CAAC,IACD;AACJ,UAAI;AACJ,UAAI;AACF,sBAAc;AAAA,UACZ;AAAA,UACA,cAAc,MAAO,gBAAgB,OAAQ;AAAA,UAC7C,sBACI,CAAC,WAAW;AACV,6BAAiB,SAAS,IAAI;AAAA,UAChC,IACA;AAAA,QACN;AAAA,MACF,SAAS,OAAO;AACd,sBAAc;AACd,eAAO,QAAQ;AACf,cAAM;AAAA,MACR;AACA,YAAM,YAAY,YAAY;AAAA,QAC5B,CAAC,WAAW;AACV,uBAAa;AACb,mBAAS,CAAC,CAAC;AAAA,QACb;AAAA,QACA,CAAC,UAAmB,SAAS,EAAE,MAAM,CAAC;AAAA,MACxC;AACA,aAAO;AAAA,QACL,OAAO,OAAe;AACpB,cAAI,SAAS,EAAG,QAAO,CAAC;AACxB,gBAAM,YAAY,KAAK,IAAI,GAAG,KAAK;AACnC,gBAAM,QAAQ,OAAO,OAAO,SAAS;AACrC,gBAAM,eAAe,MAAM,GAAG,EAAE;AAChC,iBAAO;AAAA,YACL,GAAG,MAAM,MAAM,GAAG,EAAE;AAAA,YACpB,gBAAgB,MAAM,GAAG,OAAO,UAAU,GAAG,WAAW,EAAE;AAAA,YAC1D,GAAI,iBAAiB,SAAY,CAAC,IAAI,CAAC,YAAY;AAAA,UACrD;AAAA,QACF;AAAA,QACA,YAAY,MAAM,OAAO,WAAW;AAAA,QACpC,aAAa;AAAA,QACb,UAAU;AACR,wBAAc;AACd,iBAAO,QAAQ;AAAA,QACjB;AAAA,QACA,gBAAgB,MAAM;AAAA,MACxB;AAAA,IACF;AAAA,EACF,CAAC;AACD,MAAI,YAAY,SAAS,QAAS,OAAM,YAAY;AACpD,MAAI,YAAY,SAAS,YAAa,QAAO,EAAE,MAAM,SAAS;AAC9D,MAAI,YAAY,MAAM,WAAW;AAC/B,QAAI,iBAAkB,KAAI,GAAG,OAAO,kBAAkB,MAAM;AAC5D,WAAO,EAAE,MAAM,YAAY;AAAA,EAC7B;AACA,MAAI,YAAY,MAAM,MAAO,OAAM,YAAY,MAAM;AACrD,SAAO,EAAE,MAAM,aAAa,OAAO,WAAW;AAChD;AAEA,SAAS,oBAAoB,OAAe;AAE1C,SAAO,gCAAgC,KAAK,KAAK;AACnD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ // @generated by scripts/build-runtime.mjs; do not edit.
2
+ // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
+ import {
4
+ safeTerminalText
5
+ } from "./chunk-2JNFEZ3V.ts";
6
+
7
+ // src/ui/ignore-file-guidance.ts
8
+ import { resolve } from "node:path";
9
+ import { getAgentDir } from "@earendil-works/pi-coding-agent";
10
+ function manualIgnoreFileGuidance(filename) {
11
+ return `Edit existing ignore rules manually: ${safeTerminalText(resolve(getAgentDir(), filename))}. Edits apply to every setup using this local file on its next sync; they do not rewrite remote history.`;
12
+ }
13
+
14
+ export {
15
+ manualIgnoreFileGuidance
16
+ };
17
+ //# sourceMappingURL=chunk-EJDDRS6O.ts.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ui/ignore-file-guidance.ts"],
4
+ "sourcesContent": ["import { resolve } from \"node:path\";\nimport { getAgentDir } from \"@earendil-works/pi-coding-agent\";\nimport { safeTerminalText } from \"./terminal-text.js\";\n\nexport function manualIgnoreFileGuidance(filename: string) {\n return `Edit existing ignore rules manually: ${safeTerminalText(resolve(getAgentDir(), filename))}. Edits apply to every setup using this local file on its next sync; they do not rewrite remote history.`;\n}\n"],
5
+ "mappings": ";;;;;;;AAAA,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAGrB,SAAS,yBAAyB,UAAkB;AACzD,SAAO,wCAAwC,iBAAiB,QAAQ,YAAY,GAAG,QAAQ,CAAC,CAAC;AACnG;",
6
+ "names": []
7
+ }