@narumitw/pi-sync 0.61.0 → 0.62.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.
- package/CHANGELOG.md +12 -0
- package/README.md +24 -17
- package/dist/chunks/{chunk-EMVZL4PH.ts → chunk-3E3TR3JE.ts} +4 -4
- package/dist/chunks/{chunk-JVFCVPPD.ts → chunk-6PFZUEUG.ts} +41 -18
- package/dist/chunks/chunk-6PFZUEUG.ts.map +7 -0
- package/dist/chunks/{chunk-ZIL6PW5L.ts → chunk-6YKOHBSC.ts} +2 -2
- package/dist/chunks/{chunk-OA4NZLSL.ts → chunk-APZVJAEW.ts} +4 -3
- package/dist/chunks/{chunk-4SR3ZYHA.ts → chunk-GELYN4UC.ts} +2 -2
- package/dist/chunks/{chunk-S7F4FOAS.ts → chunk-GSCZ4VXV.ts} +5 -5
- package/dist/chunks/{chunk-YQSFJLJ3.ts → chunk-IBXEM35O.ts} +4 -3
- package/dist/chunks/{chunk-E3YLRLJM.ts → chunk-INECVQNR.ts} +10 -10
- package/dist/chunks/{chunk-2JHAN3ZO.ts → chunk-JREGWM2B.ts} +3 -3
- package/dist/chunks/{chunk-277VHM2P.ts → chunk-MNYRU5U5.ts} +5 -2
- package/dist/chunks/{chunk-277VHM2P.ts.map → chunk-MNYRU5U5.ts.map} +2 -2
- package/dist/chunks/{chunk-2ZGV5KNC.ts → chunk-NHFGAZEC.ts} +11 -8
- package/dist/chunks/chunk-NHFGAZEC.ts.map +7 -0
- package/dist/chunks/{chunk-EMRFVLZM.ts → chunk-NXWHPVXR.ts} +2 -2
- package/dist/chunks/{chunk-SMVKMYLK.ts → chunk-P4GI7LTT.ts} +2 -2
- package/dist/chunks/{chunk-PJMM75W5.ts → chunk-PWESMTH6.ts} +6 -6
- package/dist/chunks/{chunk-ZVGRZD4C.ts → chunk-R3SAMXB6.ts} +2 -2
- package/dist/chunks/{chunk-RNIEVDTR.ts → chunk-T3LABNHF.ts} +2 -2
- package/dist/chunks/{chunk-S3R3W3KF.ts → chunk-UMPA5S7X.ts} +2 -2
- package/dist/chunks/{chunk-WP2M67XZ.ts → chunk-WBIOSK76.ts} +2 -2
- package/dist/chunks/{chunk-4KTJLJSJ.ts → chunk-ZB3GNX3P.ts} +11 -11
- package/dist/chunks/{chunk-HEB6YT64.ts → chunk-ZO52JM4H.ts} +2 -2
- package/dist/chunks/{command-handler-K4XJOGYC.ts → command-handler-6ATREPG7.ts} +16 -16
- package/dist/chunks/command-handler-6ATREPG7.ts.map +7 -0
- package/dist/chunks/{conflict-review-IGKY2TOJ.ts → conflict-review-MAOGTIAI.ts} +4 -4
- package/dist/chunks/{continuous-record-3XDXDOMV.ts → continuous-record-3SKJ6I3V.ts} +2 -2
- package/dist/chunks/{continuous-storage-HLKCHF6Z.ts → continuous-storage-3EU6I7Z3.ts} +2 -2
- package/dist/chunks/{file-selection-MGGVOKM7.ts → file-selection-QR2KZVGD.ts} +10 -10
- package/dist/chunks/manager-result-dispatcher-MC6EQOQY.ts +19 -0
- package/dist/chunks/{manager-ui-KYQ5AZJS.ts → manager-ui-AOFUNXAJ.ts} +547 -135
- package/dist/chunks/manager-ui-AOFUNXAJ.ts.map +7 -0
- package/dist/chunks/remote-selection-ui-4BTP2OJR.ts +18 -0
- package/dist/chunks/{setup-switch-D6K6PBPC.ts → setup-switch-Y6AMFFNK.ts} +7 -7
- package/dist/chunks/{setup-wizard-4DYUDHJR.ts → setup-wizard-5G426MOZ.ts} +10 -10
- package/dist/chunks/{snapshot-5HY3M2NL.ts → snapshot-ZUJJZCFW.ts} +2 -2
- package/dist/chunks/{snapshot-transaction-directory-OU2D7R7A.ts → snapshot-transaction-directory-F46JWRAU.ts} +2 -2
- package/dist/chunks/{state-directory-XXHU73Z3.ts → state-directory-CMAIF34J.ts} +2 -2
- package/dist/chunks/{sync-inspection-J3CRBORL.ts → sync-inspection-ITZ6Z4DE.ts} +5 -5
- package/dist/chunks/{sync-operations-BVWYYKH3.ts → sync-operations-NMVKF7SE.ts} +13 -9
- package/dist/chunks/sync-operations-NMVKF7SE.ts.map +7 -0
- package/dist/chunks/{sync-state-2LMIXJ2C.ts → sync-state-QIT64TKV.ts} +2 -2
- package/dist/daemon/LICENSE +21 -0
- package/dist/daemon/dist/build-version.js +8 -0
- package/dist/daemon/dist/child-sdk.mjs +17 -0
- package/dist/daemon/dist/cli.js +169 -0
- package/dist/daemon/dist/client.js +909 -0
- package/dist/daemon/dist/consent.js +265 -0
- package/dist/daemon/dist/document.js +6 -0
- package/dist/daemon/dist/endpoint.js +91 -0
- package/dist/daemon/dist/engine/backends/backend-factory.js +16 -0
- package/dist/daemon/dist/engine/backends/backend-identity.js +38 -0
- package/dist/daemon/dist/engine/backends/backend-types.js +1 -0
- package/dist/daemon/dist/engine/backends/git/git-backend.js +715 -0
- package/dist/daemon/dist/engine/backends/git/git-config.js +118 -0
- package/dist/daemon/dist/engine/backends/git/git-runner.js +232 -0
- package/dist/daemon/dist/engine/backends/git/git-storage.js +252 -0
- package/dist/daemon/dist/engine/backends/s3/s3-backend.js +444 -0
- package/dist/daemon/dist/engine/backends/s3/s3-client.js +352 -0
- package/dist/daemon/dist/engine/backends/s3/s3-conditions.js +66 -0
- package/dist/daemon/dist/engine/backends/snapshot-pointer.js +22 -0
- package/dist/daemon/dist/engine/backends/sync-backend.js +23 -0
- package/dist/daemon/dist/engine/backends/webdav/webdav-backend.js +542 -0
- package/dist/daemon/dist/engine/backends/webdav/webdav-client.js +326 -0
- package/dist/daemon/dist/engine/backends/webdav/webdav-config.js +73 -0
- package/dist/daemon/dist/engine/commands/command-types.js +1 -0
- package/dist/daemon/dist/engine/host.js +16 -0
- package/dist/daemon/dist/engine/ignore/effective-ignore-policy.js +33 -0
- package/dist/daemon/dist/engine/ignore/ignore-edit.js +102 -0
- package/dist/daemon/dist/engine/ignore/ignore-initialization.js +186 -0
- package/dist/daemon/dist/engine/ignore/ignore-migration-prompt.js +139 -0
- package/dist/daemon/dist/engine/ignore/ignore-settings.js +322 -0
- package/dist/daemon/dist/engine/ignore/ignore-source.js +250 -0
- package/dist/daemon/dist/engine/paths.js +71 -0
- package/dist/daemon/dist/engine/settings/config-errors.js +4 -0
- package/dist/daemon/dist/engine/settings/config-file.js +736 -0
- package/dist/daemon/dist/engine/settings/config.js +301 -0
- package/dist/daemon/dist/engine/settings/settings-management.js +193 -0
- package/dist/daemon/dist/engine/settings/settings-store.js +41 -0
- package/dist/daemon/dist/engine/settings/settings-types.js +1 -0
- package/dist/daemon/dist/engine/settings/settings-validation.js +384 -0
- package/dist/daemon/dist/engine/snapshot/session-paths.js +160 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-apply.js +348 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-bounds.js +20 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-case-replacement.js +82 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-codec.js +61 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-entry-projection.js +78 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-exclude-safety.js +262 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-mutation-queues.js +133 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-paths.js +11 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-payload.js +10 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-reviewed-preimages.js +60 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-root-transition.js +138 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction-directory.js +16 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction-images.js +387 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction-plan.js +68 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction-policy.js +276 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction-stage.js +303 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction-verification.js +78 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-transaction.js +813 -0
- package/dist/daemon/dist/engine/snapshot/snapshot-types.js +9 -0
- package/dist/daemon/dist/engine/snapshot/snapshot.js +678 -0
- package/dist/daemon/dist/engine/state/json-file.js +49 -0
- package/dist/daemon/dist/engine/state/lock-policy.js +2 -0
- package/dist/daemon/dist/engine/state/lock.js +259 -0
- package/dist/daemon/dist/engine/state/lockfile-fs.js +13 -0
- package/dist/daemon/dist/engine/state/merge-baseline-store.js +198 -0
- package/dist/daemon/dist/engine/state/mutation-directory-sync.js +34 -0
- package/dist/daemon/dist/engine/state/operation-availability.js +40 -0
- package/dist/daemon/dist/engine/state/state-directory.js +227 -0
- package/dist/daemon/dist/engine/state/state-types.js +1 -0
- package/dist/daemon/dist/engine/state/sync-state-store.js +54 -0
- package/dist/daemon/dist/engine/sync/agent-candidate.js +207 -0
- package/dist/daemon/dist/engine/sync/agent-plan.js +84 -0
- package/dist/daemon/dist/engine/sync/agent-policy.js +10 -0
- package/dist/daemon/dist/engine/sync/agent-refusal-retry.js +39 -0
- package/dist/daemon/dist/engine/sync/agent-request.js +13 -0
- package/dist/daemon/dist/engine/sync/agent-runner.js +183 -0
- package/dist/daemon/dist/engine/sync/agent-store.js +177 -0
- package/dist/daemon/dist/engine/sync/agent-sync.js +132 -0
- package/dist/daemon/dist/engine/sync/apply-review.js +52 -0
- package/dist/daemon/dist/engine/sync/conflict-artifact-ownership.js +53 -0
- package/dist/daemon/dist/engine/sync/conflict-artifacts.js +158 -0
- package/dist/daemon/dist/engine/sync/conflict-groups.js +76 -0
- package/dist/daemon/dist/engine/sync/conflict-preview.js +53 -0
- package/dist/daemon/dist/engine/sync/conflict-resolution.js +53 -0
- package/dist/daemon/dist/engine/sync/conflict-retention.js +61 -0
- package/dist/daemon/dist/engine/sync/conflict-review.js +73 -0
- package/dist/daemon/dist/engine/sync/content-conflicts.js +70 -0
- package/dist/daemon/dist/engine/sync/continuous-errors.js +66 -0
- package/dist/daemon/dist/engine/sync/continuous-lease.js +206 -0
- package/dist/daemon/dist/engine/sync/continuous-record.js +199 -0
- package/dist/daemon/dist/engine/sync/continuous-storage.js +59 -0
- package/dist/daemon/dist/engine/sync/continuous-sync.js +521 -0
- package/dist/daemon/dist/engine/sync/continuous-watch.js +140 -0
- package/dist/daemon/dist/engine/sync/exclude-policy.js +86 -0
- package/dist/daemon/dist/engine/sync/field-migration.js +20 -0
- package/dist/daemon/dist/engine/sync/file-merge-planner.js +123 -0
- package/dist/daemon/dist/engine/sync/initialization.js +80 -0
- package/dist/daemon/dist/engine/sync/json-document.js +172 -0
- package/dist/daemon/dist/engine/sync/local-field-policy.js +26 -0
- package/dist/daemon/dist/engine/sync/local-fields.js +196 -0
- package/dist/daemon/dist/engine/sync/merge-apply.js +529 -0
- package/dist/daemon/dist/engine/sync/merge-journal.js +295 -0
- package/dist/daemon/dist/engine/sync/merge-transfer-error.js +64 -0
- package/dist/daemon/dist/engine/sync/merged-sync.js +674 -0
- package/dist/daemon/dist/engine/sync/mutation-owner.js +18 -0
- package/dist/daemon/dist/engine/sync/package-merge.js +82 -0
- package/dist/daemon/dist/engine/sync/partial-progress.js +41 -0
- package/dist/daemon/dist/engine/sync/remote-snapshot.js +104 -0
- package/dist/daemon/dist/engine/sync/resolver-stream.js +34 -0
- package/dist/daemon/dist/engine/sync/session-merge.js +178 -0
- package/dist/daemon/dist/engine/sync/session-push.js +33 -0
- package/dist/daemon/dist/engine/sync/settings-conflicts.js +56 -0
- package/dist/daemon/dist/engine/sync/settings-merge.js +93 -0
- package/dist/daemon/dist/engine/sync/signals.js +8 -0
- package/dist/daemon/dist/engine/sync/startup-timings.js +44 -0
- package/dist/daemon/dist/engine/sync/sync-decision.js +81 -0
- package/dist/daemon/dist/engine/sync/sync-error-guidance.js +55 -0
- package/dist/daemon/dist/engine/sync/sync-errors.js +18 -0
- package/dist/daemon/dist/engine/sync/sync-inspection.js +42 -0
- package/dist/daemon/dist/engine/sync/sync-loaders.js +8 -0
- package/dist/daemon/dist/engine/sync/sync-local.js +40 -0
- package/dist/daemon/dist/engine/sync/sync-mutations.js +733 -0
- package/dist/daemon/dist/engine/sync/sync-operations.js +3 -0
- package/dist/daemon/dist/engine/sync/sync-policy.js +621 -0
- package/dist/daemon/dist/engine/sync/sync-queries.js +212 -0
- package/dist/daemon/dist/engine/sync/sync-state.js +129 -0
- package/dist/daemon/dist/engine/sync/text-merge.js +124 -0
- package/dist/daemon/dist/engine/types.js +2 -0
- package/dist/daemon/dist/engine/ui/merge-review.js +7 -0
- package/dist/daemon/dist/engine/ui/merged-sync-summary.js +86 -0
- package/dist/daemon/dist/engine/ui/sync-format.js +165 -0
- package/dist/daemon/dist/engine/ui/sync-status.js +30 -0
- package/dist/daemon/dist/engine/ui/terminal-text.js +9 -0
- package/dist/daemon/dist/engine/ui/transfer-changes.js +24 -0
- package/dist/daemon/dist/engine/ui/transfer-review.js +19 -0
- package/dist/daemon/dist/engine-service.js +344 -0
- package/dist/daemon/dist/identity.js +241 -0
- package/dist/daemon/dist/idle-exit.js +77 -0
- package/dist/daemon/dist/index.js +4 -0
- package/dist/daemon/dist/lifecycle-log.js +53 -0
- package/dist/daemon/dist/lifecycle.js +21 -0
- package/dist/daemon/dist/model-signature.js +7 -0
- package/dist/daemon/dist/monitor.js +272 -0
- package/dist/daemon/dist/participant-admission.js +30 -0
- package/dist/daemon/dist/protocol.js +104 -0
- package/dist/daemon/dist/resolver-host.js +78 -0
- package/dist/daemon/dist/server.js +953 -0
- package/dist/daemon/dist/service-host.js +174 -0
- package/dist/daemon/dist/upgrade-repair.js +55 -0
- package/dist/daemon/package.json +3 -0
- package/dist/index.ts +21 -21
- package/dist/package.json +6 -0
- package/docs/daemon-migration.md +27 -16
- package/package.json +9 -3
- package/skills/configure-pi-sync/SKILL.md +38 -13
- package/skills/configure-pi-sync/references/configuration.md +2 -2
- package/src/commands/command-execution.ts +1 -1
- package/src/settings/config.ts +1 -0
- package/src/sync/sync-operations.ts +18 -10
- package/src/ui/excluded-paths-ui.ts +4 -1
- package/src/ui/ignore-file-ui.ts +271 -0
- package/src/ui/ignore-migration-prompt.ts +65 -0
- package/src/ui/manager-state.ts +27 -13
- package/src/ui/manager-ui.ts +38 -19
- package/src/ui/remote-selection-ui.ts +41 -8
- package/src/ui/settings-review.ts +26 -0
- package/src/ui/settings-ui.ts +316 -213
- package/src/ui/storage-connections-ui.ts +20 -12
- package/src/ui/sync-setups-ui.ts +45 -27
- package/dist/chunks/chunk-2ZGV5KNC.ts.map +0 -7
- package/dist/chunks/chunk-JVFCVPPD.ts.map +0 -7
- package/dist/chunks/command-handler-K4XJOGYC.ts.map +0 -7
- package/dist/chunks/manager-result-dispatcher-4VJVDEUD.ts +0 -19
- package/dist/chunks/manager-ui-KYQ5AZJS.ts.map +0 -7
- package/dist/chunks/remote-selection-ui-W3KOZM3W.ts +0 -18
- package/dist/chunks/sync-operations-BVWYYKH3.ts.map +0 -7
- /package/dist/chunks/{chunk-EMVZL4PH.ts.map → chunk-3E3TR3JE.ts.map} +0 -0
- /package/dist/chunks/{chunk-ZIL6PW5L.ts.map → chunk-6YKOHBSC.ts.map} +0 -0
- /package/dist/chunks/{chunk-OA4NZLSL.ts.map → chunk-APZVJAEW.ts.map} +0 -0
- /package/dist/chunks/{chunk-4SR3ZYHA.ts.map → chunk-GELYN4UC.ts.map} +0 -0
- /package/dist/chunks/{chunk-S7F4FOAS.ts.map → chunk-GSCZ4VXV.ts.map} +0 -0
- /package/dist/chunks/{chunk-YQSFJLJ3.ts.map → chunk-IBXEM35O.ts.map} +0 -0
- /package/dist/chunks/{chunk-E3YLRLJM.ts.map → chunk-INECVQNR.ts.map} +0 -0
- /package/dist/chunks/{chunk-2JHAN3ZO.ts.map → chunk-JREGWM2B.ts.map} +0 -0
- /package/dist/chunks/{chunk-EMRFVLZM.ts.map → chunk-NXWHPVXR.ts.map} +0 -0
- /package/dist/chunks/{chunk-SMVKMYLK.ts.map → chunk-P4GI7LTT.ts.map} +0 -0
- /package/dist/chunks/{chunk-PJMM75W5.ts.map → chunk-PWESMTH6.ts.map} +0 -0
- /package/dist/chunks/{chunk-ZVGRZD4C.ts.map → chunk-R3SAMXB6.ts.map} +0 -0
- /package/dist/chunks/{chunk-RNIEVDTR.ts.map → chunk-T3LABNHF.ts.map} +0 -0
- /package/dist/chunks/{chunk-S3R3W3KF.ts.map → chunk-UMPA5S7X.ts.map} +0 -0
- /package/dist/chunks/{chunk-WP2M67XZ.ts.map → chunk-WBIOSK76.ts.map} +0 -0
- /package/dist/chunks/{chunk-4KTJLJSJ.ts.map → chunk-ZB3GNX3P.ts.map} +0 -0
- /package/dist/chunks/{chunk-HEB6YT64.ts.map → chunk-ZO52JM4H.ts.map} +0 -0
- /package/dist/chunks/{conflict-review-IGKY2TOJ.ts.map → conflict-review-MAOGTIAI.ts.map} +0 -0
- /package/dist/chunks/{continuous-record-3XDXDOMV.ts.map → continuous-record-3SKJ6I3V.ts.map} +0 -0
- /package/dist/chunks/{continuous-storage-HLKCHF6Z.ts.map → continuous-storage-3EU6I7Z3.ts.map} +0 -0
- /package/dist/chunks/{file-selection-MGGVOKM7.ts.map → file-selection-QR2KZVGD.ts.map} +0 -0
- /package/dist/chunks/{manager-result-dispatcher-4VJVDEUD.ts.map → manager-result-dispatcher-MC6EQOQY.ts.map} +0 -0
- /package/dist/chunks/{remote-selection-ui-W3KOZM3W.ts.map → remote-selection-ui-4BTP2OJR.ts.map} +0 -0
- /package/dist/chunks/{setup-switch-D6K6PBPC.ts.map → setup-switch-Y6AMFFNK.ts.map} +0 -0
- /package/dist/chunks/{setup-wizard-4DYUDHJR.ts.map → setup-wizard-5G426MOZ.ts.map} +0 -0
- /package/dist/chunks/{snapshot-5HY3M2NL.ts.map → snapshot-ZUJJZCFW.ts.map} +0 -0
- /package/dist/chunks/{snapshot-transaction-directory-OU2D7R7A.ts.map → snapshot-transaction-directory-F46JWRAU.ts.map} +0 -0
- /package/dist/chunks/{state-directory-XXHU73Z3.ts.map → state-directory-CMAIF34J.ts.map} +0 -0
- /package/dist/chunks/{sync-inspection-J3CRBORL.ts.map → sync-inspection-ITZ6Z4DE.ts.map} +0 -0
- /package/dist/chunks/{sync-state-2LMIXJ2C.ts.map → sync-state-QIT64TKV.ts.map} +0 -0
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
SyncDecisionRequiredError,
|
|
10
10
|
errorMessage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6YKOHBSC.ts";
|
|
12
12
|
import {
|
|
13
13
|
RemoteSelectionMismatchError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R3SAMXB6.ts";
|
|
15
15
|
import {
|
|
16
16
|
safeTerminalText
|
|
17
17
|
} from "./chunk-2JNFEZ3V.ts";
|
|
@@ -32,19 +32,19 @@ import {
|
|
|
32
32
|
MAX_SETTINGS_BYTES,
|
|
33
33
|
modelSignature,
|
|
34
34
|
waitForDaemonExit
|
|
35
|
-
} from "
|
|
36
|
-
import { configureEngineHost } from "
|
|
35
|
+
} from "#pi-sync-daemon";
|
|
36
|
+
import { configureEngineHost } from "#pi-sync-daemon/engine/host";
|
|
37
37
|
import {
|
|
38
38
|
peekLocalConfigDocument
|
|
39
|
-
} from "
|
|
40
|
-
import { validateSettingsDocument } from "
|
|
41
|
-
import { sessionDirFromContext } from "
|
|
39
|
+
} from "#pi-sync-daemon/engine/settings/config-file";
|
|
40
|
+
import { validateSettingsDocument } from "#pi-sync-daemon/engine/settings/settings-validation";
|
|
41
|
+
import { sessionDirFromContext } from "#pi-sync-daemon/engine/snapshot/session-paths";
|
|
42
42
|
|
|
43
43
|
// src/daemon/apply-gate.ts
|
|
44
44
|
import { randomUUID } from "node:crypto";
|
|
45
45
|
import path from "node:path";
|
|
46
46
|
import { withFileMutationQueue } from "@earendil-works/pi-coding-agent";
|
|
47
|
-
import { withTargetQueues } from "
|
|
47
|
+
import { withTargetQueues } from "#pi-sync-daemon/engine/snapshot/snapshot-mutation-queues";
|
|
48
48
|
var PiApplyGate = class {
|
|
49
49
|
constructor(validate) {
|
|
50
50
|
this.validate = validate;
|
|
@@ -248,7 +248,7 @@ function createQueueReleaseUI(show, warn) {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
// src/daemon/recovery.ts
|
|
251
|
-
import { DaemonConnection, findDaemon } from "
|
|
251
|
+
import { DaemonConnection, findDaemon } from "#pi-sync-daemon";
|
|
252
252
|
var recoveries = /* @__PURE__ */ new Set();
|
|
253
253
|
function alive(pid) {
|
|
254
254
|
try {
|
|
@@ -1082,4 +1082,4 @@ export {
|
|
|
1082
1082
|
withPiDaemonClient,
|
|
1083
1083
|
remoteOperation
|
|
1084
1084
|
};
|
|
1085
|
-
//# sourceMappingURL=chunk-
|
|
1085
|
+
//# sourceMappingURL=chunk-INECVQNR.ts.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
import {
|
|
4
4
|
syncErrorGuidance
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IBXEM35O.ts";
|
|
6
6
|
import {
|
|
7
7
|
normalizeDirectoryRules
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R3SAMXB6.ts";
|
|
9
9
|
import {
|
|
10
10
|
safeTerminalText
|
|
11
11
|
} from "./chunk-2JNFEZ3V.ts";
|
|
@@ -136,4 +136,4 @@ export {
|
|
|
136
136
|
directoryScopeLines,
|
|
137
137
|
saveReviewedDraft
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=chunk-
|
|
139
|
+
//# sourceMappingURL=chunk-JREGWM2B.ts.map
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
loadConfig,
|
|
10
10
|
loadConfigForCheck,
|
|
11
11
|
loadPartialConfig,
|
|
12
|
+
loadSettingsConfig,
|
|
12
13
|
sessionTokenWarnings,
|
|
13
14
|
syncCheckConfigFingerprint,
|
|
14
15
|
syncConfigReviewFingerprint,
|
|
@@ -16,12 +17,14 @@ import {
|
|
|
16
17
|
syncSessionsWarnings,
|
|
17
18
|
syncSetupReviewIdentity,
|
|
18
19
|
syncSetupStorageReview
|
|
19
|
-
} from "
|
|
20
|
+
} from "#pi-sync-daemon/engine/settings/config";
|
|
20
21
|
|
|
21
22
|
export {
|
|
23
|
+
configFromSettings,
|
|
22
24
|
loadConfig,
|
|
23
25
|
loadConfigForCheck,
|
|
24
26
|
loadPartialConfig,
|
|
27
|
+
loadSettingsConfig,
|
|
25
28
|
sessionTokenWarnings,
|
|
26
29
|
syncCheckConfigFingerprint,
|
|
27
30
|
syncConfigReviewFingerprint,
|
|
@@ -29,4 +32,4 @@ export {
|
|
|
29
32
|
syncSessionsWarnings,
|
|
30
33
|
syncSetupReviewIdentity
|
|
31
34
|
};
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-MNYRU5U5.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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 sessionTokenWarnings,\n syncCheckConfigFingerprint,\n syncConfigReviewFingerprint,\n syncConfigReviewIdentity,\n syncSessionsWarnings,\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,OACK;",
|
|
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 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,OACK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,24 +7,24 @@ import {
|
|
|
7
7
|
promptDirectoryRules,
|
|
8
8
|
saveReviewedDraft,
|
|
9
9
|
summarizeDirectoryRules
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JREGWM2B.ts";
|
|
11
11
|
import {
|
|
12
12
|
localConfigPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IBXEM35O.ts";
|
|
14
14
|
import {
|
|
15
15
|
captureMutationOwner
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GELYN4UC.ts";
|
|
17
17
|
import {
|
|
18
18
|
updateSyncSetup
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NXWHPVXR.ts";
|
|
20
20
|
import {
|
|
21
21
|
normalizeSyncExclude,
|
|
22
22
|
sameSyncExclude
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZO52JM4H.ts";
|
|
24
24
|
import {
|
|
25
25
|
loadConfig,
|
|
26
26
|
syncCheckConfigFingerprint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MNYRU5U5.ts";
|
|
28
28
|
import {
|
|
29
29
|
safeTerminalText
|
|
30
30
|
} from "./chunk-2JNFEZ3V.ts";
|
|
@@ -113,6 +113,8 @@ async function showExcludedPaths(ctx, setupName, signal) {
|
|
|
113
113
|
setupName,
|
|
114
114
|
(setup) => {
|
|
115
115
|
validate();
|
|
116
|
+
if (setup.sync.pathPolicy === "ignore-file")
|
|
117
|
+
throw new Error("Edit the ignore file to change this setup's policy.");
|
|
116
118
|
return { ...setup, sync: { ...setup.sync, exclude } };
|
|
117
119
|
},
|
|
118
120
|
{ expectedConfigFingerprint: syncCheckConfigFingerprint(config), upgradeExclude: true, signal }
|
|
@@ -227,7 +229,8 @@ async function showDirectoryScope(ctx, config, signal) {
|
|
|
227
229
|
config.setupName,
|
|
228
230
|
(setup) => {
|
|
229
231
|
validate();
|
|
230
|
-
if (setup.sync.scope !== "agent-directory"
|
|
232
|
+
if (setup.sync.scope !== "agent-directory" || setup.sync.pathPolicy === "ignore-file")
|
|
233
|
+
throw new Error("Sync scope changed during review.");
|
|
231
234
|
return {
|
|
232
235
|
...setup,
|
|
233
236
|
sync: {
|
|
@@ -271,4 +274,4 @@ export {
|
|
|
271
274
|
directoryScopeSummary,
|
|
272
275
|
showDirectoryScope
|
|
273
276
|
};
|
|
274
|
-
//# sourceMappingURL=chunk-
|
|
277
|
+
//# sourceMappingURL=chunk-NHFGAZEC.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ui/excluded-paths-ui.ts"],
|
|
4
|
+
"sourcesContent": ["import type { ExtensionCommandContext } from \"@earendil-works/pi-coding-agent\";\nimport { defineMenu, runMenu } from \"@narumitw/pi-tui-kit\";\nimport { loadConfig, syncCheckConfigFingerprint } from \"../settings/config.js\";\nimport { localConfigPath } from \"../settings/config-file.js\";\nimport { updateSyncSetup } from \"../settings/settings-management.js\";\nimport type { AnySyncConfig } from \"../settings/settings-types.js\";\nimport { normalizeSyncExclude, sameSyncExclude } from \"../sync/exclude-policy.js\";\nimport { captureMutationOwner } from \"../sync/sync-local.js\";\nimport {\n acknowledgeSessions,\n type DirectoryRulesDraft,\n directoryScopeLines,\n formatDirectoryRules,\n promptDirectoryRules,\n summarizeDirectoryRules,\n} from \"./setup/directory-rules.js\";\nimport { saveReviewedDraft } from \"./setup/setup-review.js\";\nimport { safeTerminalText } from \"./terminal-text.js\";\n\n/** Transactional draft; Pi owns editor input/paste and Kit owns review/cancellation. */\nexport async function showExcludedPaths(ctx: ExtensionCommandContext, setupName: string, signal?: AbortSignal) {\n const validate = captureMutationOwner(ctx, signal);\n const isCurrent = () => {\n try {\n validate();\n return true;\n } catch {\n return false;\n }\n };\n validate();\n const config = await loadConfig(setupName);\n validate();\n if (config.scope === \"agent-directory\") return showDirectoryScope(ctx, config, signal);\n if (ctx.mode !== \"tui\") {\n if (ctx.hasUI)\n ctx.ui.notify(\n [\n `Excluded paths: ${(config.exclude ?? []).map(safeTerminalText).join(\", \") || \"none\"}`,\n `Edit sync.exclude in ${safeTerminalText(localConfigPath())}; an explicit array requires settings version 6 or later.`,\n ].join(\"\\n\"),\n \"info\",\n );\n return;\n }\n let draft = JSON.stringify(config.exclude ?? []);\n while (isCurrent()) {\n const entered = await ctx.ui.input(\"Excluded paths \u00B7 JSON array \u00B7 empty input keeps draft\", draft, { signal });\n if (!isCurrent() || entered === undefined) return;\n const input = entered || draft;\n draft = input;\n let exclude: string[];\n try {\n const parsed: unknown = JSON.parse(input);\n if (!Array.isArray(parsed)) throw new Error(\"Enter a JSON string array.\");\n exclude = normalizeSyncExclude(parsed);\n } catch {\n ctx.ui.notify(\"Invalid exclude array or unsupported pattern. No settings changed.\", \"error\");\n continue;\n }\n if (sameSyncExclude(exclude, config.exclude)) return;\n let choice: \"save\" | \"discard\" | \"edit\" | undefined;\n const menu = defineMenu<undefined, \"review\", \"choose\", ExtensionCommandContext>({\n start: \"review\",\n screens: {\n review: () => ({\n kind: \"actions\",\n title: \"Review excluded paths\",\n lines: [\n `Setup: ${safeTerminalText(config.setupName)}`,\n \"Draft only. Save requires at least settings version 6 and uses snapshot version 4 for this allowlist setup.\",\n \"Excluded local files stay untouched. New snapshots omit matching remote files; old history is NOT erased.\",\n \"Removing rules can expose local content or allow pull to replace it. Review a force push to publish policy changes.\",\n \"Previously excluded:\",\n ...(config.exclude?.length ? config.exclude.map((rule) => `- ${safeTerminalText(rule)}`) : [\"(none)\"]),\n \"Proposed excluded paths:\",\n ...(exclude.length ? exclude.map((rule) => `+ ${safeTerminalText(rule)}`) : [\"(none)\"]),\n ],\n items: [\n { id: \"save\", label: \"Save changes\", action: \"choose\" },\n { id: \"discard\", label: \"Discard changes\", action: \"choose\" },\n { id: \"edit\", label: \"Continue editing\", action: \"choose\" },\n ],\n hint: \"close\",\n }),\n },\n actions: {\n choose: async ({ itemId }) => {\n choice = itemId === \"save\" ? \"save\" : itemId === \"edit\" ? \"edit\" : \"discard\";\n return { kind: \"close\" };\n },\n },\n });\n await runMenu(ctx, menu, { getState: () => undefined, signal, isCurrent });\n if (!isCurrent()) return;\n if (choice === \"edit\") continue;\n if (choice !== \"save\") return;\n try {\n await updateSyncSetup(\n setupName,\n (setup) => {\n validate();\n if (setup.sync.pathPolicy === \"ignore-file\")\n throw new Error(\"Edit the ignore file to change this setup's policy.\");\n return { ...setup, sync: { ...setup.sync, exclude } };\n },\n { expectedConfigFingerprint: syncCheckConfigFingerprint(config), upgradeExclude: true, signal },\n );\n if (isCurrent()) ctx.ui.notify(\"Excluded paths saved. Applies to subsequent sync; no transfer started.\", \"info\");\n } catch (error) {\n if (isCurrent())\n ctx.ui.notify(\n `Excluded paths not saved: ${safeTerminalText(error instanceof Error ? error.message : String(error))}`,\n \"error\",\n );\n }\n return;\n }\n}\n\nexport function directoryScopeSummary(config: AnySyncConfig) {\n return [\n `Setup: ${safeTerminalText(config.setupName)} \u00B7 Scope: Pi agent directory`,\n `Excluded paths: ${summarizeDirectoryRules(config.exclude)}`,\n `Re-included paths: ${summarizeDirectoryRules(config.reinclude)}`,\n `Session opt-in: ${config.include.includes(\"sessions\") ? \"On (path rules still apply)\" : \"Off\"}`,\n \"Pi credentials and project trust always stay local.\",\n ];\n}\n\nexport async function showDirectoryScope(ctx: ExtensionCommandContext, config: AnySyncConfig, signal?: AbortSignal) {\n const validate = captureMutationOwner(ctx, signal);\n const isCurrent = () => {\n try {\n validate();\n return true;\n } catch {\n return false;\n }\n };\n if (!isCurrent()) return;\n if (ctx.mode !== \"tui\") {\n if (ctx.hasUI)\n ctx.ui.notify(\n [\n ...directoryScopeSummary(config),\n `Edit sync.exclude, sync.reinclude, and sync.sessions in ${safeTerminalText(localConfigPath())}.`,\n ].join(\"\\n\"),\n \"info\",\n );\n return;\n }\n const original: DirectoryRulesDraft = {\n exclude: config.exclude ?? [],\n reinclude: config.reinclude ?? [],\n sessions: config.include.includes(\"sessions\"),\n };\n const draft: DirectoryRulesDraft = { ...original };\n const change = () => ({\n exclude: !sameSyncExclude(draft.exclude, original.exclude),\n reinclude: !sameSyncExclude(draft.reinclude, original.reinclude),\n sessions: draft.sessions !== original.sessions,\n });\n const menu = defineMenu<undefined, \"draft\", \"exclude\" | \"reinclude\" | \"sessions\" | \"review\", ExtensionCommandContext>(\n {\n start: \"draft\",\n screens: {\n draft: () => ({\n kind: \"actions\",\n title: `Agent directory scope \u00B7 ${safeTerminalText(config.setupName)}`,\n lines: [\n \"Changes stay in this draft until you review and save. Back discards the draft.\",\n \"Session opt-in does not change path rules. Edit the rules separately to select which sessions can sync.\",\n ],\n items: [\n { id: \"exclude\", label: `Edit excluded paths\u2026 (${draft.exclude.length})`, action: \"exclude\" },\n { id: \"reinclude\", label: `Edit re-included paths\u2026 (${draft.reinclude.length})`, action: \"reinclude\" },\n {\n id: \"sessions\",\n label: `Session opt-in: ${draft.sessions ? \"On \u2192 Off\" : \"Off \u2192 On\"}`,\n action: \"sessions\",\n },\n { id: \"review\", label: \"Review changes\u2026\", action: \"review\" },\n ],\n hint: \"back\",\n }),\n },\n actions: {\n exclude: async ({ signal: actionSignal }) => editRules(\"exclude\", actionSignal),\n reinclude: async ({ signal: actionSignal }) => editRules(\"reinclude\", actionSignal),\n sessions: async ({ signal: actionSignal }) => {\n if (!draft.sessions && !(await acknowledgeSessions(ctx, actionSignal))) return { kind: \"stay\" };\n if (actionSignal.aborted || !isCurrent()) return { kind: \"close\" };\n draft.sessions = !draft.sessions;\n return { kind: \"stay\" };\n },\n review: async ({ signal: actionSignal }) => {\n const changed = change();\n if (!changed.exclude && !changed.reinclude && !changed.sessions) return { kind: \"close\" };\n try {\n validate();\n const saved = await saveReviewedDraft(\n ctx,\n \"Review agent directory scope\",\n [\n `Setup: ${safeTerminalText(config.setupName)}`,\n \"\",\n ...directoryScopeLines(draft),\n \"\",\n ...formatDirectoryRules(\"Previously excluded\", original.exclude),\n ...formatDirectoryRules(\"Previously re-included\", original.reinclude),\n `Previous session opt-in: ${original.sessions ? \"On\" : \"Off\"}`,\n \"Changing rules can expose or replace files. Existing remote history is not erased.\",\n \"A remote policy mismatch blocks transfer until reviewed. Saving does not start a transfer.\",\n ],\n \"Save changes\",\n (saveSignal) =>\n updateSyncSetup(\n config.setupName,\n (setup) => {\n validate();\n if (setup.sync.scope !== \"agent-directory\" || setup.sync.pathPolicy === \"ignore-file\")\n throw new Error(\"Sync scope changed during review.\");\n return {\n ...setup,\n sync: {\n ...setup.sync,\n ...(changed.exclude ? { exclude: draft.exclude } : {}),\n ...(changed.reinclude ? { reinclude: draft.reinclude } : {}),\n ...(changed.sessions ? { sessions: draft.sessions } : {}),\n },\n };\n },\n { expectedConfigFingerprint: syncCheckConfigFingerprint(config), signal: saveSignal },\n ),\n actionSignal,\n );\n if (saved && !actionSignal.aborted && isCurrent())\n ctx.ui.notify(\"Agent directory rules saved. Applies to subsequent sync; no transfer started.\", \"info\");\n } catch (error) {\n if (!actionSignal.aborted && isCurrent())\n ctx.ui.notify(\n `Agent directory rules not saved: ${safeTerminalText(error instanceof Error ? error.message : String(error))}`,\n \"error\",\n );\n }\n return { kind: \"close\" };\n },\n },\n },\n );\n const result = await runMenu(ctx, menu, { getState: () => undefined, signal, isCurrent });\n if (result.kind === \"error\" && isCurrent()) throw result.error;\n\n async function editRules(kind: \"exclude\" | \"reinclude\", actionSignal: AbortSignal) {\n const rules = await promptDirectoryRules(ctx, kind, draft[kind], actionSignal, validate);\n if (actionSignal.aborted || !isCurrent()) return { kind: \"close\" as const };\n if (rules) draft[kind] = rules;\n return { kind: \"stay\" as const };\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY,eAAe;AAmBpC,eAAsB,kBAAkB,KAA8B,WAAmB,QAAsB;AAC7G,QAAM,WAAW,qBAAqB,KAAK,MAAM;AACjD,QAAM,YAAY,MAAM;AACtB,QAAI;AACF,eAAS;AACT,aAAO;AAAA,IACT,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF;AACA,WAAS;AACT,QAAM,SAAS,MAAM,WAAW,SAAS;AACzC,WAAS;AACT,MAAI,OAAO,UAAU,kBAAmB,QAAO,mBAAmB,KAAK,QAAQ,MAAM;AACrF,MAAI,IAAI,SAAS,OAAO;AACtB,QAAI,IAAI;AACN,UAAI,GAAG;AAAA,QACL;AAAA,UACE,oBAAoB,OAAO,WAAW,CAAC,GAAG,IAAI,gBAAgB,EAAE,KAAK,IAAI,KAAK,MAAM;AAAA,UACpF,wBAAwB,iBAAiB,gBAAgB,CAAC,CAAC;AAAA,QAC7D,EAAE,KAAK,IAAI;AAAA,QACX;AAAA,MACF;AACF;AAAA,EACF;AACA,MAAI,QAAQ,KAAK,UAAU,OAAO,WAAW,CAAC,CAAC;AAC/C,SAAO,UAAU,GAAG;AAClB,UAAM,UAAU,MAAM,IAAI,GAAG,MAAM,+DAAyD,OAAO,EAAE,OAAO,CAAC;AAC7G,QAAI,CAAC,UAAU,KAAK,YAAY,OAAW;AAC3C,UAAM,QAAQ,WAAW;AACzB,YAAQ;AACR,QAAI;AACJ,QAAI;AACF,YAAM,SAAkB,KAAK,MAAM,KAAK;AACxC,UAAI,CAAC,M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S,IAAI,CAAC;AAAA,oBACzD;AAAA,kBACF;AAAA,gBACF;AAAA,gBACA,EAAE,2BAA2B,2BAA2B,MAAM,GAAG,QAAQ,WAAW;AAAA,cACtF;AAAA,cACF;AAAA,YACF;AACA,gBAAI,SAAS,CAAC,aAAa,WAAW,UAAU;AAC9C,kBAAI,GAAG,OAAO,iFAAiF,MAAM;AAAA,UACzG,SAAS,OAAO;AACd,gBAAI,CAAC,aAAa,WAAW,UAAU;AACrC,kBAAI,GAAG;AAAA,gBACL,oCAAoC,iBAAiB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC,CAAC;AAAA,gBAC5G;AAAA,cACF;AAAA,UACJ;AACA,iBAAO,EAAE,MAAM,QAAQ;AAAA,QACzB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACA,QAAM,SAAS,MAAM,QAAQ,KAAK,MAAM,EAAE,UAAU,MAAM,QAAW,QAAQ,UAAU,CAAC;AACxF,MAAI,OAAO,SAAS,WAAW,UAAU,EAAG,OAAM,OAAO;AAEzD,iBAAe,UAAU,MAA+B,cAA2B;AACjF,UAAM,QAAQ,MAAM,qBAAqB,KAAK,MAAM,MAAM,IAAI,GAAG,cAAc,QAAQ;AACvF,QAAI,aAAa,WAAW,CAAC,UAAU,EAAG,QAAO,EAAE,MAAM,QAAiB;AAC1E,QAAI,MAAO,OAAM,IAAI,IAAI;AACzB,WAAO,EAAE,MAAM,OAAgB;AAAA,EACjC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
saveNewV3Settings,
|
|
12
12
|
updateStorageConnection,
|
|
13
13
|
updateSyncSetup
|
|
14
|
-
} from "
|
|
14
|
+
} from "#pi-sync-daemon/engine/settings/settings-management";
|
|
15
15
|
|
|
16
16
|
export {
|
|
17
17
|
addStorageConnection,
|
|
@@ -23,4 +23,4 @@ export {
|
|
|
23
23
|
updateStorageConnection,
|
|
24
24
|
updateSyncSetup
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
26
|
+
//# sourceMappingURL=chunk-NXWHPVXR.ts.map
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
sessionDirForApply,
|
|
12
12
|
sessionDirFromContext,
|
|
13
13
|
snapshotOptionsForContext
|
|
14
|
-
} from "
|
|
14
|
+
} from "#pi-sync-daemon/engine/snapshot/session-paths";
|
|
15
15
|
|
|
16
16
|
export {
|
|
17
17
|
agentDir,
|
|
18
18
|
snapshotOptionsForContext
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-P4GI7LTT.ts.map
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
import {
|
|
4
4
|
normalizeOnSwitch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-APZVJAEW.ts";
|
|
6
6
|
import {
|
|
7
7
|
configuredSyncSetupNames,
|
|
8
8
|
updateLocalConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WBIOSK76.ts";
|
|
10
10
|
import {
|
|
11
11
|
setSyncSetupCompletions
|
|
12
12
|
} from "./chunk-HLCML3OW.ts";
|
|
13
13
|
import {
|
|
14
14
|
throwIfAborted
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UMPA5S7X.ts";
|
|
16
16
|
import {
|
|
17
17
|
loadConfig,
|
|
18
18
|
syncConfigReviewIdentity,
|
|
19
19
|
syncSetupReviewIdentity
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MNYRU5U5.ts";
|
|
21
21
|
import {
|
|
22
22
|
SetupPullRequiresUiError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6YKOHBSC.ts";
|
|
24
24
|
import {
|
|
25
25
|
safeTerminalText
|
|
26
26
|
} from "./chunk-2JNFEZ3V.ts";
|
|
@@ -128,4 +128,4 @@ export {
|
|
|
128
128
|
saveOnSwitch,
|
|
129
129
|
useSyncSetup
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-PWESMTH6.ts.map
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
syncSelectionHasContent,
|
|
40
40
|
syncSessionsSelected,
|
|
41
41
|
validateSnapshotSelection
|
|
42
|
-
} from "
|
|
42
|
+
} from "#pi-sync-daemon/engine/sync/sync-policy";
|
|
43
43
|
|
|
44
44
|
export {
|
|
45
45
|
BUILT_IN_SYNC_ROOTS,
|
|
@@ -57,4 +57,4 @@ export {
|
|
|
57
57
|
syncSelectionHasContent,
|
|
58
58
|
syncSessionsSelected
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-R3SAMXB6.ts.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
stateDir,
|
|
9
9
|
stateDirectoryMigrationNotice,
|
|
10
10
|
withStateDirectoryAccess
|
|
11
|
-
} from "
|
|
11
|
+
} from "#pi-sync-daemon/engine/state/state-directory";
|
|
12
12
|
|
|
13
13
|
export {
|
|
14
14
|
legacyStateDir,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
stateDirectoryMigrationNotice,
|
|
18
18
|
withStateDirectoryAccess
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-T3LABNHF.ts.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
|
|
4
4
|
// src/sync/signals.ts
|
|
5
|
-
import { combineSignals, throwIfAborted } from "
|
|
5
|
+
import { combineSignals, throwIfAborted } from "#pi-sync-daemon/engine/sync/signals";
|
|
6
6
|
|
|
7
7
|
export {
|
|
8
8
|
combineSignals,
|
|
9
9
|
throwIfAborted
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-UMPA5S7X.ts.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readLocalConfigObject,
|
|
11
11
|
requireSettings,
|
|
12
12
|
updateLocalConfig
|
|
13
|
-
} from "
|
|
13
|
+
} from "#pi-sync-daemon/engine/settings/settings-store";
|
|
14
14
|
|
|
15
15
|
export {
|
|
16
16
|
configuredSyncSetupNames,
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
requireSettings,
|
|
21
21
|
updateLocalConfig
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-WBIOSK76.ts.map
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
ownRecord,
|
|
9
9
|
requiredString,
|
|
10
10
|
validateConfigName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-APZVJAEW.ts";
|
|
12
12
|
import {
|
|
13
13
|
automaticSyncSummary
|
|
14
14
|
} from "./chunk-ECYCNZOE.ts";
|
|
15
15
|
import {
|
|
16
16
|
configuredSyncSetupNames,
|
|
17
17
|
readLocalConfigObject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WBIOSK76.ts";
|
|
19
19
|
import {
|
|
20
20
|
AUTOMATIC_SYNC_DESCRIPTION,
|
|
21
21
|
setSyncSetupCompletions
|
|
@@ -26,23 +26,23 @@ import {
|
|
|
26
26
|
promptDirectoryRules,
|
|
27
27
|
saveReviewedDraft,
|
|
28
28
|
starterDirectoryRules
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JREGWM2B.ts";
|
|
30
30
|
import {
|
|
31
31
|
throwIfAborted
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UMPA5S7X.ts";
|
|
33
33
|
import {
|
|
34
34
|
addStorageConnection,
|
|
35
35
|
addSyncSetup,
|
|
36
36
|
saveNewV3Settings,
|
|
37
37
|
updateStorageConnection,
|
|
38
38
|
updateSyncSetup
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NXWHPVXR.ts";
|
|
40
40
|
import {
|
|
41
41
|
errorMessage
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6YKOHBSC.ts";
|
|
43
43
|
import {
|
|
44
44
|
DEFAULT_SYNC_INCLUDE
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-R3SAMXB6.ts";
|
|
46
46
|
import {
|
|
47
47
|
safeTerminalText
|
|
48
48
|
} from "./chunk-2JNFEZ3V.ts";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
normalizeGitRemote,
|
|
60
60
|
normalizeGitRemoteIdentity,
|
|
61
61
|
validateGitNamespace
|
|
62
|
-
} from "
|
|
62
|
+
} from "#pi-sync-daemon/engine/backends/git/git-config";
|
|
63
63
|
|
|
64
64
|
// src/ui/setup/text-input.ts
|
|
65
65
|
async function requiredExistingBucket(ctx, example, signal) {
|
|
@@ -276,7 +276,7 @@ async function finishSetup(ctx, name, message, join, signal) {
|
|
|
276
276
|
if (signal?.aborted) return;
|
|
277
277
|
ctx.ui.notify(message, "info");
|
|
278
278
|
if (!join) return;
|
|
279
|
-
const { showRemoteSelectionReview } = await import("./remote-selection-ui-
|
|
279
|
+
const { showRemoteSelectionReview } = await import("./remote-selection-ui-4BTP2OJR.ts");
|
|
280
280
|
if (signal?.aborted) return;
|
|
281
281
|
await showRemoteSelectionReview(ctx, name, signal, void 0, { origin: "settings" });
|
|
282
282
|
}
|
|
@@ -781,7 +781,7 @@ import {
|
|
|
781
781
|
normalizeWebDavUrl,
|
|
782
782
|
validateWebDavCredentials,
|
|
783
783
|
validateWebDavNamespace
|
|
784
|
-
} from "
|
|
784
|
+
} from "#pi-sync-daemon/engine/backends/webdav/webdav-config";
|
|
785
785
|
|
|
786
786
|
// src/ui/setup/webdav-ui.ts
|
|
787
787
|
async function showWebDavSetup(ctx, targetName, signal) {
|
|
@@ -1024,4 +1024,4 @@ export {
|
|
|
1024
1024
|
showAddWebDavStorageProfile,
|
|
1025
1025
|
showEditWebDavStorageProfile
|
|
1026
1026
|
};
|
|
1027
|
-
//# sourceMappingURL=chunk-
|
|
1027
|
+
//# sourceMappingURL=chunk-ZB3GNX3P.ts.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
compileSyncExclude,
|
|
7
7
|
normalizeSyncExclude,
|
|
8
8
|
sameSyncExclude
|
|
9
|
-
} from "
|
|
9
|
+
} from "#pi-sync-daemon/engine/sync/exclude-policy";
|
|
10
10
|
|
|
11
11
|
export {
|
|
12
12
|
normalizeSyncExclude,
|
|
13
13
|
sameSyncExclude
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-ZO52JM4H.ts.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
localConfigTemplate,
|
|
8
8
|
readLocalConfigObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WBIOSK76.ts";
|
|
10
10
|
import {
|
|
11
11
|
observationMatchesConfig,
|
|
12
12
|
readStateForConfig,
|
|
13
13
|
syncAttentionMatchesConfig,
|
|
14
14
|
syncStateFingerprint
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GSCZ4VXV.ts";
|
|
16
16
|
import {
|
|
17
17
|
parseOptions,
|
|
18
18
|
resolveSyncCommand,
|
|
@@ -26,21 +26,21 @@ import {
|
|
|
26
26
|
createLocalConfigDocument,
|
|
27
27
|
localConfigPath,
|
|
28
28
|
syncErrorGuidance
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IBXEM35O.ts";
|
|
30
30
|
import {
|
|
31
31
|
piDaemonClient,
|
|
32
32
|
remoteOperation
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-INECVQNR.ts";
|
|
34
34
|
import {
|
|
35
35
|
combineSignals,
|
|
36
36
|
throwIfAborted
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-UMPA5S7X.ts";
|
|
38
|
+
import "./chunk-ZO52JM4H.ts";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig,
|
|
41
41
|
sessionTokenWarnings,
|
|
42
42
|
syncSessionsWarnings
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MNYRU5U5.ts";
|
|
44
44
|
import {
|
|
45
45
|
setSyncStatus
|
|
46
46
|
} from "./chunk-H7VOTY5N.ts";
|
|
@@ -48,12 +48,12 @@ import {
|
|
|
48
48
|
SetupPullRequiresUiError,
|
|
49
49
|
errorMessage,
|
|
50
50
|
isSyncDecisionRequiredError
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6YKOHBSC.ts";
|
|
52
52
|
import {
|
|
53
53
|
RemoteSelectionMismatchError,
|
|
54
54
|
formatRemoteSelectionMismatch,
|
|
55
55
|
syncSessionsSelected
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-R3SAMXB6.ts";
|
|
57
57
|
import {
|
|
58
58
|
safeTerminalText
|
|
59
59
|
} from "./chunk-2JNFEZ3V.ts";
|
|
@@ -187,7 +187,7 @@ Use pi-sync-daemon status/stop/restart --root <agent-directory> for explicit lif
|
|
|
187
187
|
await showConfig(ctx, options);
|
|
188
188
|
return { kind: "completed" };
|
|
189
189
|
case "files": {
|
|
190
|
-
const { showFileSelection } = await import("./file-selection-
|
|
190
|
+
const { showFileSelection } = await import("./file-selection-QR2KZVGD.ts");
|
|
191
191
|
throwIfAborted(options.signal);
|
|
192
192
|
await showFileSelection(ctx, options.setup, options.signal);
|
|
193
193
|
return { kind: "completed" };
|
|
@@ -205,7 +205,7 @@ Use pi-sync-daemon status/stop/restart --root <agent-directory> for explicit lif
|
|
|
205
205
|
return { kind: "completed" };
|
|
206
206
|
}
|
|
207
207
|
case "conflicts": {
|
|
208
|
-
const { showConflicts } = await import("./conflict-review-
|
|
208
|
+
const { showConflicts } = await import("./conflict-review-MAOGTIAI.ts");
|
|
209
209
|
throwIfAborted(options.signal);
|
|
210
210
|
await showConflicts(ctx, options);
|
|
211
211
|
return { kind: "completed" };
|
|
@@ -232,7 +232,7 @@ Use pi-sync-daemon status/stop/restart --root <agent-directory> for explicit lif
|
|
|
232
232
|
const operations = await loaders.operations();
|
|
233
233
|
throwIfAborted(options.signal);
|
|
234
234
|
const outcome = await operations.syncBoth(ctx, options);
|
|
235
|
-
return { kind: "completed", ...retryRefusal && outcome ? { outcome } : {} };
|
|
235
|
+
return { kind: "completed", ...retryRefusal && outcome && outcome !== "archived" ? { outcome } : {} };
|
|
236
236
|
}
|
|
237
237
|
case "history": {
|
|
238
238
|
const operations = await loaders.operations();
|
|
@@ -291,7 +291,7 @@ async function initConfig(ctx, signal) {
|
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
if (ctx.mode === "tui") {
|
|
294
|
-
const { showSetupWizard } = await import("./setup-wizard-
|
|
294
|
+
const { showSetupWizard } = await import("./setup-wizard-5G426MOZ.ts");
|
|
295
295
|
throwIfAborted(signal);
|
|
296
296
|
await showSetupWizard(ctx, signal);
|
|
297
297
|
return;
|
|
@@ -415,7 +415,7 @@ async function handleCommand(rawArgs, ctx, sessionSignal, loaders, attention, on
|
|
|
415
415
|
if (!rawArgs.trim()) {
|
|
416
416
|
attention.expand();
|
|
417
417
|
try {
|
|
418
|
-
const { showSyncManager } = await import("./manager-ui-
|
|
418
|
+
const { showSyncManager } = await import("./manager-ui-AOFUNXAJ.ts");
|
|
419
419
|
if (sessionSignal.aborted) return;
|
|
420
420
|
await showSyncManager(ctx, run, sessionSignal, {
|
|
421
421
|
getAttention: () => attention.current(),
|
|
@@ -517,7 +517,7 @@ function directSelectionOrigin(rawArgs) {
|
|
|
517
517
|
async function resolveSelectionAttention(ctx, attention, signal, loaders, options = {}) {
|
|
518
518
|
const current = attention.current();
|
|
519
519
|
if (!current || signal.aborted) return;
|
|
520
|
-
const { dispatchManagerResult } = await import("./manager-result-dispatcher-
|
|
520
|
+
const { dispatchManagerResult } = await import("./manager-result-dispatcher-MC6EQOQY.ts");
|
|
521
521
|
if (signal.aborted || attention.current() !== current) return;
|
|
522
522
|
await dispatchManagerResult(
|
|
523
523
|
ctx,
|
|
@@ -548,4 +548,4 @@ export {
|
|
|
548
548
|
handleCommand,
|
|
549
549
|
resolveSelectionAttention
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=command-handler-
|
|
551
|
+
//# sourceMappingURL=command-handler-6ATREPG7.ts.map
|