@narumitw/pi-sync 0.60.1 → 0.60.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -5
- package/dist/chunks/{chunk-7AC2RX4M.ts → chunk-277VHM2P.ts} +2 -2
- package/dist/chunks/chunk-277VHM2P.ts.map +7 -0
- package/dist/chunks/{chunk-4RNCZZY7.ts → chunk-3YXBG7BQ.ts} +14 -10
- package/dist/chunks/{chunk-4RNCZZY7.ts.map → chunk-3YXBG7BQ.ts.map} +2 -2
- package/dist/chunks/{chunk-UBE6XWOM.ts → chunk-6W2SNZ5P.ts} +2 -2
- package/dist/chunks/chunk-6W2SNZ5P.ts.map +7 -0
- package/dist/chunks/{chunk-UZUUUY7C.ts → chunk-B53FS4RW.ts} +4 -4
- package/dist/chunks/{chunk-6LHIRS5R.ts → chunk-E7UJHMNW.ts} +5 -5
- package/dist/chunks/chunk-E7UJHMNW.ts.map +7 -0
- package/dist/chunks/{chunk-JZKCOM62.ts → chunk-EMRFVLZM.ts} +2 -2
- package/dist/chunks/chunk-EMRFVLZM.ts.map +7 -0
- package/dist/chunks/{chunk-BWWTOQOW.ts → chunk-FOMZEZER.ts} +100 -53
- package/dist/chunks/chunk-FOMZEZER.ts.map +7 -0
- package/dist/chunks/{chunk-NPT2G4FU.ts → chunk-HEB6YT64.ts} +2 -2
- package/dist/chunks/chunk-HEB6YT64.ts.map +7 -0
- package/dist/chunks/{chunk-J5COV5TY.ts → chunk-HLCML3OW.ts} +2 -2
- package/dist/chunks/{chunk-J5COV5TY.ts.map → chunk-HLCML3OW.ts.map} +1 -1
- package/dist/chunks/{chunk-ZMNVNECV.ts → chunk-KPWZNMKM.ts} +2 -2
- package/dist/chunks/chunk-KPWZNMKM.ts.map +7 -0
- package/dist/chunks/{chunk-YWEYRRQI.ts → chunk-LAXTCSX4.ts} +11 -11
- package/dist/chunks/chunk-LAXTCSX4.ts.map +7 -0
- package/dist/chunks/{chunk-BGGKHHO4.ts → chunk-MCUZFUHY.ts} +7 -7
- package/dist/chunks/{chunk-M7RHV3H6.ts → chunk-OA4NZLSL.ts} +2 -2
- package/dist/chunks/chunk-OA4NZLSL.ts.map +7 -0
- package/dist/chunks/{chunk-CEMFCWIU.ts → chunk-RNIEVDTR.ts} +2 -2
- package/dist/chunks/chunk-RNIEVDTR.ts.map +7 -0
- package/dist/chunks/{chunk-PDBTD2K6.ts → chunk-S3R3W3KF.ts} +2 -2
- package/dist/chunks/chunk-S3R3W3KF.ts.map +7 -0
- package/dist/chunks/{chunk-CZNBKIM5.ts → chunk-SMVKMYLK.ts} +2 -2
- package/dist/chunks/chunk-SMVKMYLK.ts.map +7 -0
- package/dist/chunks/{chunk-JKBUYCPC.ts → chunk-V4AMI3VL.ts} +2 -2
- package/dist/chunks/chunk-V4AMI3VL.ts.map +7 -0
- package/dist/chunks/{chunk-VZCWYXRS.ts → chunk-WP2M67XZ.ts} +2 -2
- package/dist/chunks/chunk-WP2M67XZ.ts.map +7 -0
- package/dist/chunks/{chunk-HNKLBM3U.ts → chunk-ZIL6PW5L.ts} +2 -2
- package/dist/chunks/chunk-ZIL6PW5L.ts.map +7 -0
- package/dist/chunks/{command-handler-FO4XBBHF.ts → command-handler-RTBEFZUX.ts} +19 -19
- package/dist/chunks/{command-handler-FO4XBBHF.ts.map → command-handler-RTBEFZUX.ts.map} +2 -2
- package/dist/chunks/{conflict-review-XBSME2ER.ts → conflict-review-YXROU42F.ts} +4 -4
- package/dist/chunks/{continuous-record-ZHUXVO4E.ts → continuous-record-3XDXDOMV.ts} +2 -2
- package/dist/chunks/continuous-record-3XDXDOMV.ts.map +7 -0
- package/dist/chunks/{continuous-storage-SQBAXACF.ts → continuous-storage-HLKCHF6Z.ts} +2 -2
- package/dist/chunks/continuous-storage-HLKCHF6Z.ts.map +7 -0
- package/dist/chunks/{file-selection-S6CNNNQI.ts → file-selection-DD6X4J2K.ts} +6 -6
- package/dist/chunks/manager-result-dispatcher-4PEUHK7F.ts +18 -0
- package/dist/chunks/{manager-ui-AY5ZU6B4.ts → manager-ui-TNAMQNEU.ts} +25 -25
- package/dist/chunks/manager-ui-TNAMQNEU.ts.map +7 -0
- package/dist/chunks/{remote-selection-ui-GZHPDQ4L.ts → remote-selection-ui-47H7V62F.ts} +8 -8
- package/dist/chunks/{setup-switch-M3BAFGJM.ts → setup-switch-SPZE7HIQ.ts} +8 -8
- package/dist/chunks/{setup-wizard-NFAWP4KF.ts → setup-wizard-5JYKAEIT.ts} +11 -11
- package/dist/chunks/{snapshot-D4SFDP5J.ts → snapshot-5HY3M2NL.ts} +2 -2
- package/dist/chunks/snapshot-5HY3M2NL.ts.map +7 -0
- package/dist/chunks/{snapshot-transaction-directory-TNKBQ3UQ.ts → snapshot-transaction-directory-OU2D7R7A.ts} +2 -2
- package/dist/chunks/snapshot-transaction-directory-OU2D7R7A.ts.map +7 -0
- package/dist/chunks/{state-directory-JZSZVVPX.ts → state-directory-XXHU73Z3.ts} +2 -2
- package/dist/chunks/{sync-inspection-BJ4KPPNO.ts → sync-inspection-5GQEB62G.ts} +5 -5
- package/dist/chunks/sync-inspection-5GQEB62G.ts.map +7 -0
- package/dist/chunks/{sync-operations-TLWER2TT.ts → sync-operations-65HDA67O.ts} +5 -5
- package/dist/chunks/{sync-operations-TLWER2TT.ts.map → sync-operations-65HDA67O.ts.map} +2 -2
- package/dist/chunks/{sync-state-FVCJJ7MY.ts → sync-state-2LMIXJ2C.ts} +2 -2
- package/dist/chunks/sync-state-2LMIXJ2C.ts.map +7 -0
- package/dist/index.ts +22 -22
- package/dist/index.ts.map +1 -1
- package/docs/daemon-migration.md +10 -6
- package/package.json +2 -2
- package/skills/configure-pi-sync/references/configuration.md +8 -4
- package/src/backends/backend-factory.ts +2 -2
- package/src/backends/backend-identity.ts +2 -2
- package/src/backends/backend-types.ts +1 -1
- package/src/backends/git/git-backend.ts +2 -2
- package/src/backends/git/git-config.ts +2 -2
- package/src/backends/git/git-runner.ts +2 -2
- package/src/backends/git/git-storage.ts +2 -2
- package/src/backends/s3/s3-backend.ts +2 -2
- package/src/backends/s3/s3-client.ts +6 -2
- package/src/backends/s3/s3-conditions.ts +2 -2
- package/src/backends/snapshot-pointer.ts +2 -2
- package/src/backends/sync-backend.ts +2 -2
- package/src/backends/webdav/webdav-backend.ts +2 -2
- package/src/backends/webdav/webdav-client.ts +2 -2
- package/src/backends/webdav/webdav-config.ts +2 -2
- package/src/commands/command-execution.ts +1 -1
- package/src/commands/command.ts +1 -1
- package/src/daemon/apply-gate.ts +1 -1
- package/src/daemon/pi-client.ts +105 -54
- package/src/daemon/recovery.ts +1 -1
- package/src/paths.ts +2 -2
- package/src/settings/config-errors.ts +2 -2
- package/src/settings/config-file.ts +2 -2
- package/src/settings/config.ts +2 -2
- package/src/settings/settings-management.ts +2 -2
- package/src/settings/settings-store.ts +2 -2
- package/src/settings/settings-types.ts +1 -1
- package/src/settings/settings-validation.ts +2 -2
- package/src/snapshot/session-paths.ts +2 -2
- package/src/snapshot/snapshot-apply.ts +2 -2
- package/src/snapshot/snapshot-case-replacement.ts +2 -2
- package/src/snapshot/snapshot-codec.ts +2 -2
- package/src/snapshot/snapshot-exclude-safety.ts +2 -2
- package/src/snapshot/snapshot-mutation-queues.ts +2 -2
- package/src/snapshot/snapshot-paths.ts +2 -2
- package/src/snapshot/snapshot-root-transition.ts +2 -2
- package/src/snapshot/snapshot-transaction-directory.ts +2 -2
- package/src/snapshot/snapshot-transaction-plan.ts +2 -2
- package/src/snapshot/snapshot-transaction.ts +2 -2
- package/src/snapshot/snapshot-types.ts +1 -1
- package/src/snapshot/snapshot.ts +2 -2
- package/src/state/json-file.ts +2 -2
- package/src/state/lock-policy.ts +2 -2
- package/src/state/lock.ts +2 -2
- package/src/state/lockfile-fs.ts +2 -2
- package/src/state/merge-baseline-store.ts +2 -2
- package/src/state/mutation-directory-sync.ts +2 -2
- package/src/state/operation-availability.ts +2 -2
- package/src/state/state-directory.ts +2 -2
- package/src/state/state-types.ts +1 -1
- package/src/state/sync-state-store.ts +2 -2
- package/src/sync/agent-candidate.ts +2 -2
- package/src/sync/agent-plan.ts +2 -2
- package/src/sync/agent-policy.ts +2 -2
- package/src/sync/agent-refusal-retry.ts +2 -2
- package/src/sync/agent-request.ts +2 -2
- package/src/sync/agent-runner.ts +2 -2
- package/src/sync/agent-store.ts +2 -2
- package/src/sync/agent-sync.ts +2 -2
- package/src/sync/apply-review.ts +2 -2
- package/src/sync/conflict-artifact-ownership.ts +2 -2
- package/src/sync/conflict-artifacts.ts +2 -2
- package/src/sync/conflict-groups.ts +2 -2
- package/src/sync/conflict-preview.ts +2 -2
- package/src/sync/conflict-resolution.ts +2 -2
- package/src/sync/conflict-retention.ts +2 -2
- package/src/sync/content-conflicts.ts +2 -2
- package/src/sync/continuous-errors.ts +2 -2
- package/src/sync/continuous-lease.ts +2 -2
- package/src/sync/continuous-record.ts +2 -2
- package/src/sync/continuous-storage.ts +2 -2
- package/src/sync/continuous-sync.ts +2 -2
- package/src/sync/continuous-watch.ts +2 -2
- package/src/sync/exclude-policy.ts +2 -2
- package/src/sync/field-migration.ts +2 -2
- package/src/sync/file-merge-planner.ts +6 -2
- package/src/sync/json-document.ts +2 -2
- package/src/sync/local-field-policy.ts +2 -2
- package/src/sync/local-fields.ts +2 -2
- package/src/sync/merge-apply.ts +2 -2
- package/src/sync/merge-journal.ts +2 -2
- package/src/sync/merge-transfer-error.ts +2 -2
- package/src/sync/merged-sync.ts +2 -2
- package/src/sync/mutation-owner.ts +2 -2
- package/src/sync/package-merge.ts +2 -2
- package/src/sync/partial-progress.ts +2 -2
- package/src/sync/remote-snapshot.ts +2 -2
- package/src/sync/session-merge.ts +2 -2
- package/src/sync/settings-conflicts.ts +2 -2
- package/src/sync/settings-merge.ts +2 -2
- package/src/sync/signals.ts +2 -2
- package/src/sync/startup-timings.ts +2 -2
- package/src/sync/sync-decision.ts +2 -2
- package/src/sync/sync-error-guidance.ts +2 -2
- package/src/sync/sync-errors.ts +2 -2
- package/src/sync/sync-inspection.ts +2 -2
- package/src/sync/sync-local.ts +6 -2
- package/src/sync/sync-mutations.ts +2 -2
- package/src/sync/sync-operations.ts +1 -1
- package/src/sync/sync-policy.ts +2 -2
- package/src/sync/sync-queries.ts +2 -2
- package/src/sync/sync-state.ts +2 -2
- package/src/sync/text-merge.ts +2 -2
- package/dist/chunks/chunk-6LHIRS5R.ts.map +0 -7
- package/dist/chunks/chunk-7AC2RX4M.ts.map +0 -7
- package/dist/chunks/chunk-BWWTOQOW.ts.map +0 -7
- package/dist/chunks/chunk-CEMFCWIU.ts.map +0 -7
- package/dist/chunks/chunk-CZNBKIM5.ts.map +0 -7
- package/dist/chunks/chunk-HNKLBM3U.ts.map +0 -7
- package/dist/chunks/chunk-JKBUYCPC.ts.map +0 -7
- package/dist/chunks/chunk-JZKCOM62.ts.map +0 -7
- package/dist/chunks/chunk-M7RHV3H6.ts.map +0 -7
- package/dist/chunks/chunk-NPT2G4FU.ts.map +0 -7
- package/dist/chunks/chunk-PDBTD2K6.ts.map +0 -7
- package/dist/chunks/chunk-UBE6XWOM.ts.map +0 -7
- package/dist/chunks/chunk-VZCWYXRS.ts.map +0 -7
- package/dist/chunks/chunk-YWEYRRQI.ts.map +0 -7
- package/dist/chunks/chunk-ZMNVNECV.ts.map +0 -7
- package/dist/chunks/continuous-record-ZHUXVO4E.ts.map +0 -7
- package/dist/chunks/continuous-storage-SQBAXACF.ts.map +0 -7
- package/dist/chunks/manager-result-dispatcher-I2AMCCE7.ts +0 -18
- package/dist/chunks/manager-ui-AY5ZU6B4.ts.map +0 -7
- package/dist/chunks/snapshot-D4SFDP5J.ts.map +0 -7
- package/dist/chunks/snapshot-transaction-directory-TNKBQ3UQ.ts.map +0 -7
- package/dist/chunks/sync-inspection-BJ4KPPNO.ts.map +0 -7
- package/dist/chunks/sync-state-FVCJJ7MY.ts.map +0 -7
- /package/dist/chunks/{chunk-UZUUUY7C.ts.map → chunk-B53FS4RW.ts.map} +0 -0
- /package/dist/chunks/{chunk-BGGKHHO4.ts.map → chunk-MCUZFUHY.ts.map} +0 -0
- /package/dist/chunks/{conflict-review-XBSME2ER.ts.map → conflict-review-YXROU42F.ts.map} +0 -0
- /package/dist/chunks/{file-selection-S6CNNNQI.ts.map → file-selection-DD6X4J2K.ts.map} +0 -0
- /package/dist/chunks/{manager-result-dispatcher-I2AMCCE7.ts.map → manager-result-dispatcher-4PEUHK7F.ts.map} +0 -0
- /package/dist/chunks/{remote-selection-ui-GZHPDQ4L.ts.map → remote-selection-ui-47H7V62F.ts.map} +0 -0
- /package/dist/chunks/{setup-switch-M3BAFGJM.ts.map → setup-switch-SPZE7HIQ.ts.map} +0 -0
- /package/dist/chunks/{setup-wizard-NFAWP4KF.ts.map → setup-wizard-5JYKAEIT.ts.map} +0 -0
- /package/dist/chunks/{state-directory-JZSZVVPX.ts.map → state-directory-XXHU73Z3.ts.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/state/sync-state-store";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/state/sync-state-store";
|
|
2
2
|
export {
|
|
3
3
|
ensureStateDir,
|
|
4
4
|
lockPath,
|
|
@@ -8,4 +8,4 @@ export {
|
|
|
8
8
|
syncStateFingerprint,
|
|
9
9
|
writeState,
|
|
10
10
|
writeStateForConfig,
|
|
11
|
-
} from "@narumitw/sync-daemon/engine/state/sync-state-store";
|
|
11
|
+
} from "@narumitw/pi-sync-daemon/engine/state/sync-state-store";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-candidate";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-candidate";
|
|
2
2
|
export {
|
|
3
3
|
applyAgentCandidate,
|
|
4
4
|
buildAgentEvidence,
|
|
5
5
|
digest,
|
|
6
6
|
parseAgentCandidate,
|
|
7
|
-
} from "@narumitw/sync-daemon/engine/sync/agent-candidate";
|
|
7
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/agent-candidate";
|
package/src/sync/agent-plan.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-plan";
|
|
2
|
-
export { resolveAgentPlan } from "@narumitw/sync-daemon/engine/sync/agent-plan";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-plan";
|
|
2
|
+
export { resolveAgentPlan } from "@narumitw/pi-sync-daemon/engine/sync/agent-plan";
|
package/src/sync/agent-policy.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-policy";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-policy";
|
|
2
2
|
export {
|
|
3
3
|
AGENT_INPUT_BYTES,
|
|
4
4
|
AGENT_MAX_ATTEMPTS,
|
|
@@ -7,4 +7,4 @@ export {
|
|
|
7
7
|
AGENT_OUTPUT_BYTES,
|
|
8
8
|
AGENT_TIMEOUT_MS,
|
|
9
9
|
startupTransferEnabled,
|
|
10
|
-
} from "@narumitw/sync-daemon/engine/sync/agent-policy";
|
|
10
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/agent-policy";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-refusal-retry";
|
|
2
|
-
export { confirmAgentRefusalRetry } from "@narumitw/sync-daemon/engine/sync/agent-refusal-retry";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-refusal-retry";
|
|
2
|
+
export { confirmAgentRefusalRetry } from "@narumitw/pi-sync-daemon/engine/sync/agent-refusal-retry";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-request";
|
|
2
|
-
export { AgentResolutionRequired } from "@narumitw/sync-daemon/engine/sync/agent-request";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-request";
|
|
2
|
+
export { AgentResolutionRequired } from "@narumitw/pi-sync-daemon/engine/sync/agent-request";
|
package/src/sync/agent-runner.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-runner";
|
|
2
|
-
export { resolverResources, runAgentResolver } from "@narumitw/sync-daemon/engine/sync/agent-runner";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-runner";
|
|
2
|
+
export { resolverResources, runAgentResolver } from "@narumitw/pi-sync-daemon/engine/sync/agent-runner";
|
package/src/sync/agent-store.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-store";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-store";
|
|
2
2
|
export {
|
|
3
3
|
readAgentCandidate,
|
|
4
4
|
replaceRefusedAgentCandidate,
|
|
5
5
|
saveAgentCandidate,
|
|
6
6
|
withAgentClaim,
|
|
7
|
-
} from "@narumitw/sync-daemon/engine/sync/agent-store";
|
|
7
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/agent-store";
|
package/src/sync/agent-sync.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/agent-sync";
|
|
2
|
-
export { withAgentSyncLock } from "@narumitw/sync-daemon/engine/sync/agent-sync";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/agent-sync";
|
|
2
|
+
export { withAgentSyncLock } from "@narumitw/pi-sync-daemon/engine/sync/agent-sync";
|
package/src/sync/apply-review.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/apply-review";
|
|
2
|
-
export { inspectCaseCleanup, revalidateCaseCleanup } from "@narumitw/sync-daemon/engine/sync/apply-review";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/apply-review";
|
|
2
|
+
export { inspectCaseCleanup, revalidateCaseCleanup } from "@narumitw/pi-sync-daemon/engine/sync/apply-review";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/conflict-artifact-ownership";
|
|
2
|
-
export { releaseConflictArtifacts } from "@narumitw/sync-daemon/engine/sync/conflict-artifact-ownership";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/conflict-artifact-ownership";
|
|
2
|
+
export { releaseConflictArtifacts } from "@narumitw/pi-sync-daemon/engine/sync/conflict-artifact-ownership";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/conflict-artifacts";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/conflict-artifacts";
|
|
2
2
|
export {
|
|
3
3
|
conflictArtifactFingerprint,
|
|
4
4
|
conflictDirectory,
|
|
5
5
|
conflictGroups,
|
|
6
6
|
readConflictArtifact,
|
|
7
7
|
saveConflictArtifact,
|
|
8
|
-
} from "@narumitw/sync-daemon/engine/sync/conflict-artifacts";
|
|
8
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/conflict-artifacts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/conflict-groups";
|
|
2
|
-
export { conflictGroups } from "@narumitw/sync-daemon/engine/sync/conflict-groups";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/conflict-groups";
|
|
2
|
+
export { conflictGroups } from "@narumitw/pi-sync-daemon/engine/sync/conflict-groups";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/conflict-preview";
|
|
2
|
-
export { CONFLICT_DISPLAY_BYTES, conflictPreview } from "@narumitw/sync-daemon/engine/sync/conflict-preview";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/conflict-preview";
|
|
2
|
+
export { CONFLICT_DISPLAY_BYTES, conflictPreview } from "@narumitw/pi-sync-daemon/engine/sync/conflict-preview";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/conflict-resolution";
|
|
2
|
-
export { resolveReviewedGroup } from "@narumitw/sync-daemon/engine/sync/conflict-resolution";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/conflict-resolution";
|
|
2
|
+
export { resolveReviewedGroup } from "@narumitw/pi-sync-daemon/engine/sync/conflict-resolution";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/conflict-retention";
|
|
2
|
-
export { pruneCompletedConflicts } from "@narumitw/sync-daemon/engine/sync/conflict-retention";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/conflict-retention";
|
|
2
|
+
export { pruneCompletedConflicts } from "@narumitw/pi-sync-daemon/engine/sync/conflict-retention";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/content-conflicts";
|
|
2
|
-
export { resolveContentConflicts, snapshotFile } from "@narumitw/sync-daemon/engine/sync/content-conflicts";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/content-conflicts";
|
|
2
|
+
export { resolveContentConflicts, snapshotFile } from "@narumitw/pi-sync-daemon/engine/sync/content-conflicts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/continuous-errors";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/continuous-errors";
|
|
2
2
|
export {
|
|
3
3
|
boundedRetryDelay,
|
|
4
4
|
ContinuousError,
|
|
5
5
|
continuousFailure,
|
|
6
6
|
retryAfter,
|
|
7
|
-
} from "@narumitw/sync-daemon/engine/sync/continuous-errors";
|
|
7
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/continuous-errors";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/continuous-lease";
|
|
2
|
-
export { acquireContinuousLease, continuousLeaseOwner } from "@narumitw/sync-daemon/engine/sync/continuous-lease";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/continuous-lease";
|
|
2
|
+
export { acquireContinuousLease, continuousLeaseOwner } from "@narumitw/pi-sync-daemon/engine/sync/continuous-lease";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/continuous-record";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/continuous-record";
|
|
2
2
|
export {
|
|
3
3
|
continuousStatusLines,
|
|
4
4
|
normalizeContinuousClock,
|
|
@@ -7,4 +7,4 @@ export {
|
|
|
7
7
|
reserveContinuousRequest,
|
|
8
8
|
updateContinuousRecord,
|
|
9
9
|
validateContinuousRecord,
|
|
10
|
-
} from "@narumitw/sync-daemon/engine/sync/continuous-record";
|
|
10
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/continuous-record";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/continuous-storage";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/continuous-storage";
|
|
2
2
|
export {
|
|
3
3
|
CONTINUOUS_RECORD_MAX_BYTES,
|
|
4
4
|
checkContinuousRoot,
|
|
@@ -9,4 +9,4 @@ export {
|
|
|
9
9
|
readContinuousPrivate,
|
|
10
10
|
readContinuousPrivateDocument,
|
|
11
11
|
writeContinuousPrivate,
|
|
12
|
-
} from "@narumitw/sync-daemon/engine/sync/continuous-storage";
|
|
12
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/continuous-storage";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/continuous-sync";
|
|
2
|
-
export { continuousEnabled, createContinuousSync } from "@narumitw/sync-daemon/engine/sync/continuous-sync";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/continuous-sync";
|
|
2
|
+
export { continuousEnabled, createContinuousSync } from "@narumitw/pi-sync-daemon/engine/sync/continuous-sync";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/continuous-watch";
|
|
2
|
-
export { watchContinuous } from "@narumitw/sync-daemon/engine/sync/continuous-watch";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/continuous-watch";
|
|
2
|
+
export { watchContinuous } from "@narumitw/pi-sync-daemon/engine/sync/continuous-watch";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/exclude-policy";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/exclude-policy";
|
|
2
2
|
export {
|
|
3
3
|
compileSyncExclude,
|
|
4
4
|
normalizeSyncExclude,
|
|
5
5
|
sameSyncExclude,
|
|
6
|
-
} from "@narumitw/sync-daemon/engine/sync/exclude-policy";
|
|
6
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/exclude-policy";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/field-migration";
|
|
2
|
-
export { confirmFieldMigration } from "@narumitw/sync-daemon/engine/sync/field-migration";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/field-migration";
|
|
2
|
+
export { confirmFieldMigration } from "@narumitw/pi-sync-daemon/engine/sync/field-migration";
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/file-merge-planner";
|
|
2
|
-
export {
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/file-merge-planner";
|
|
2
|
+
export {
|
|
3
|
+
collidingPaths,
|
|
4
|
+
mergePathIdentity,
|
|
5
|
+
planFileMerge,
|
|
6
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/file-merge-planner";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/json-document";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/json-document";
|
|
2
2
|
export {
|
|
3
3
|
jsonEqual,
|
|
4
4
|
parseJsonObjectDocument,
|
|
5
5
|
parseSettingsDocument,
|
|
6
6
|
renderSettingsMembers,
|
|
7
|
-
} from "@narumitw/sync-daemon/engine/sync/json-document";
|
|
7
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/json-document";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/local-field-policy";
|
|
2
|
-
export { normalizeLocalFields } from "@narumitw/sync-daemon/engine/sync/local-field-policy";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/local-field-policy";
|
|
2
|
+
export { normalizeLocalFields } from "@narumitw/pi-sync-daemon/engine/sync/local-field-policy";
|
package/src/sync/local-fields.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/local-fields";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/local-fields";
|
|
2
2
|
export {
|
|
3
3
|
normalizeLocalFields,
|
|
4
4
|
overlayLocalFields,
|
|
@@ -6,4 +6,4 @@ export {
|
|
|
6
6
|
sameLocalFields,
|
|
7
7
|
validatePortableSnapshot,
|
|
8
8
|
validateSnapshotFieldPolicy,
|
|
9
|
-
} from "@narumitw/sync-daemon/engine/sync/local-fields";
|
|
9
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/local-fields";
|
package/src/sync/merge-apply.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/merge-apply";
|
|
2
|
-
export { applyMergedSnapshot, preflightMergedTargets } from "@narumitw/sync-daemon/engine/sync/merge-apply";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/merge-apply";
|
|
2
|
+
export { applyMergedSnapshot, preflightMergedTargets } from "@narumitw/pi-sync-daemon/engine/sync/merge-apply";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/merge-journal";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/merge-journal";
|
|
2
2
|
export {
|
|
3
3
|
clearMergeJournal,
|
|
4
4
|
mergeJournalIdentity,
|
|
@@ -7,4 +7,4 @@ export {
|
|
|
7
7
|
requireNoMergeJournal,
|
|
8
8
|
retireMergeJournal,
|
|
9
9
|
writeMergeJournal,
|
|
10
|
-
} from "@narumitw/sync-daemon/engine/sync/merge-journal";
|
|
10
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/merge-journal";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/merge-transfer-error";
|
|
2
|
-
export { mergeTransferError } from "@narumitw/sync-daemon/engine/sync/merge-transfer-error";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/merge-transfer-error";
|
|
2
|
+
export { mergeTransferError } from "@narumitw/pi-sync-daemon/engine/sync/merge-transfer-error";
|
package/src/sync/merged-sync.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/merged-sync";
|
|
2
|
-
export { mergeSync } from "@narumitw/sync-daemon/engine/sync/merged-sync";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/merged-sync";
|
|
2
|
+
export { mergeSync } from "@narumitw/pi-sync-daemon/engine/sync/merged-sync";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/mutation-owner";
|
|
2
|
-
export { captureMutationOwner } from "@narumitw/sync-daemon/engine/sync/mutation-owner";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/mutation-owner";
|
|
2
|
+
export { captureMutationOwner } from "@narumitw/pi-sync-daemon/engine/sync/mutation-owner";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/package-merge";
|
|
2
|
-
export { mergePackageVersions } from "@narumitw/sync-daemon/engine/sync/package-merge";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/package-merge";
|
|
2
|
+
export { mergePackageVersions } from "@narumitw/pi-sync-daemon/engine/sync/package-merge";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/partial-progress";
|
|
2
|
-
export { acceptedMergeFiles, progressState } from "@narumitw/sync-daemon/engine/sync/partial-progress";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/partial-progress";
|
|
2
|
+
export { acceptedMergeFiles, progressState } from "@narumitw/pi-sync-daemon/engine/sync/partial-progress";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/remote-snapshot";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/remote-snapshot";
|
|
2
2
|
export {
|
|
3
3
|
formatRemoteSelectionStatus,
|
|
4
4
|
readRemoteSnapshot,
|
|
5
5
|
readSnapshotForHead,
|
|
6
6
|
requireCompatibleRemoteSelection,
|
|
7
|
-
} from "@narumitw/sync-daemon/engine/sync/remote-snapshot";
|
|
7
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/remote-snapshot";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/session-merge";
|
|
2
|
-
export { mergeSession, validateSession } from "@narumitw/sync-daemon/engine/sync/session-merge";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/session-merge";
|
|
2
|
+
export { mergeSession, validateSession } from "@narumitw/pi-sync-daemon/engine/sync/session-merge";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/settings-conflicts";
|
|
2
|
-
export { resolveSettingsConflicts } from "@narumitw/sync-daemon/engine/sync/settings-conflicts";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/settings-conflicts";
|
|
2
|
+
export { resolveSettingsConflicts } from "@narumitw/pi-sync-daemon/engine/sync/settings-conflicts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/settings-merge";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/settings-merge";
|
|
2
2
|
export {
|
|
3
3
|
COUPLED_FIELDS,
|
|
4
4
|
mergeAcceptedSettingsPackages,
|
|
5
5
|
mergeSettingsJson,
|
|
6
|
-
} from "@narumitw/sync-daemon/engine/sync/settings-merge";
|
|
6
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/settings-merge";
|
package/src/sync/signals.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/signals";
|
|
2
|
-
export { combineSignals, throwIfAborted } from "@narumitw/sync-daemon/engine/sync/signals";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/signals";
|
|
2
|
+
export { combineSignals, throwIfAborted } from "@narumitw/pi-sync-daemon/engine/sync/signals";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/startup-timings";
|
|
2
|
-
export { createStartupTimings } from "@narumitw/sync-daemon/engine/sync/startup-timings";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/startup-timings";
|
|
2
|
+
export { createStartupTimings } from "@narumitw/pi-sync-daemon/engine/sync/startup-timings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-decision";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-decision";
|
|
2
2
|
export {
|
|
3
3
|
createSyncDecision,
|
|
4
4
|
isSyncDecisionRequiredError,
|
|
5
5
|
SyncDecisionRequiredError,
|
|
6
|
-
} from "@narumitw/sync-daemon/engine/sync/sync-decision";
|
|
6
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/sync-decision";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-error-guidance";
|
|
2
|
-
export { syncErrorGuidance } from "@narumitw/sync-daemon/engine/sync/sync-error-guidance";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-error-guidance";
|
|
2
|
+
export { syncErrorGuidance } from "@narumitw/pi-sync-daemon/engine/sync/sync-error-guidance";
|
package/src/sync/sync-errors.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-errors";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-errors";
|
|
2
2
|
export {
|
|
3
3
|
errorMessage,
|
|
4
4
|
isSyncDecisionRequiredError,
|
|
5
5
|
SetupPullRequiresUiError,
|
|
6
6
|
SyncDecisionRequiredError,
|
|
7
|
-
} from "@narumitw/sync-daemon/engine/sync/sync-errors";
|
|
7
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/sync-errors";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { inspectSync as engineInspectSync } from "@narumitw/sync-daemon/engine/sync/sync-inspection";
|
|
1
|
+
import type { inspectSync as engineInspectSync } from "@narumitw/pi-sync-daemon/engine/sync/sync-inspection";
|
|
2
2
|
import { currentPiDaemonClient } from "../daemon/pi-client.js";
|
|
3
3
|
import { syncCheckConfigFingerprint } from "../settings/config.js";
|
|
4
4
|
import type { AnySyncConfig } from "../settings/settings-types.js";
|
|
5
5
|
|
|
6
|
-
export type { StartupObservation, SyncInspection } from "@narumitw/sync-daemon/engine/sync/sync-inspection";
|
|
6
|
+
export type { StartupObservation, SyncInspection } from "@narumitw/pi-sync-daemon/engine/sync/sync-inspection";
|
|
7
7
|
export const inspectSync: typeof engineInspectSync = async (config: AnySyncConfig, _options, signal) =>
|
|
8
8
|
(await currentPiDaemonClient().run(
|
|
9
9
|
"inspect",
|
package/src/sync/sync-local.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-local";
|
|
2
|
-
export {
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-local";
|
|
2
|
+
export {
|
|
3
|
+
backupLocal,
|
|
4
|
+
captureMutationOwner,
|
|
5
|
+
protectedSessionPaths,
|
|
6
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/sync-local";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-mutations";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-mutations";
|
|
2
2
|
export {
|
|
3
3
|
backupLocal,
|
|
4
4
|
PublicationStatePersistenceError,
|
|
@@ -7,4 +7,4 @@ export {
|
|
|
7
7
|
RollbackPublicationError,
|
|
8
8
|
rollback,
|
|
9
9
|
syncBoth,
|
|
10
|
-
} from "@narumitw/sync-daemon/engine/sync/sync-mutations";
|
|
10
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/sync-mutations";
|
|
@@ -10,7 +10,7 @@ async function transfer(
|
|
|
10
10
|
): Promise<SetupPullOutcome | undefined> {
|
|
11
11
|
const result = await remoteOperation(ctx, operation, options);
|
|
12
12
|
if (result === undefined || result === "applied" || result === "cancelled") return result;
|
|
13
|
-
throw new Error("Invalid transfer result from sync-daemon.");
|
|
13
|
+
throw new Error("Invalid transfer result from pi-sync-daemon.");
|
|
14
14
|
}
|
|
15
15
|
export const push = (ctx: ExtensionContext, options: CommandOptions) => transfer(ctx, "push", options);
|
|
16
16
|
export const pull = (ctx: ExtensionContext, options: CommandOptions) => transfer(ctx, "pull", options);
|
package/src/sync/sync-policy.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-policy";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-policy";
|
|
2
2
|
export {
|
|
3
3
|
BUILT_IN_SYNC_ROOTS,
|
|
4
4
|
canonicalSnapshotPathForConfig,
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
syncIncludeSelection,
|
|
32
32
|
syncSessionsSelected,
|
|
33
33
|
validateSnapshotSelection,
|
|
34
|
-
} from "@narumitw/sync-daemon/engine/sync/sync-policy";
|
|
34
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/sync-policy";
|
package/src/sync/sync-queries.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-queries";
|
|
2
|
-
export { diff, doctor, history, status } from "@narumitw/sync-daemon/engine/sync/sync-queries";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-queries";
|
|
2
|
+
export { diff, doctor, history, status } from "@narumitw/pi-sync-daemon/engine/sync/sync-queries";
|
package/src/sync/sync-state.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/sync-state";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/sync-state";
|
|
2
2
|
export {
|
|
3
3
|
canPullRemoteSessionsOnFirstSync,
|
|
4
4
|
canPullRemoteSettingsOnFirstSync,
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
snapshotHashesMatchState,
|
|
16
16
|
snapshotsMatch,
|
|
17
17
|
syncPolicyChanged,
|
|
18
|
-
} from "@narumitw/sync-daemon/engine/sync/sync-state";
|
|
18
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/sync-state";
|
package/src/sync/text-merge.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from "@narumitw/sync-daemon/engine/sync/text-merge";
|
|
1
|
+
export type * from "@narumitw/pi-sync-daemon/engine/sync/text-merge";
|
|
2
2
|
export {
|
|
3
3
|
edits,
|
|
4
4
|
isMergeTextPath,
|
|
@@ -7,4 +7,4 @@ export {
|
|
|
7
7
|
TEXT_LIMIT,
|
|
8
8
|
TEXT_MERGE_WORK_LIMIT,
|
|
9
9
|
text,
|
|
10
|
-
} from "@narumitw/sync-daemon/engine/sync/text-merge";
|
|
10
|
+
} from "@narumitw/pi-sync-daemon/engine/sync/text-merge";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/state/sync-state-store.ts", "../../src/ui/sync-attention.ts"],
|
|
4
|
-
"sourcesContent": ["export type * from \"@narumitw/sync-daemon/engine/state/sync-state-store\";\nexport {\n ensureStateDir,\n lockPath,\n readState,\n readStateForConfig,\n statePathForConfig,\n syncStateFingerprint,\n writeState,\n writeStateForConfig,\n} from \"@narumitw/sync-daemon/engine/state/sync-state-store\";\n", "import type { ExtensionContext } from \"@earendil-works/pi-coding-agent\";\nimport { truncateToWidth } from \"@earendil-works/pi-tui\";\nimport type { EditorStatusWidgetState } from \"@narumitw/pi-tui-kit/editor-status-widget\";\nimport { syncCheckConfigFingerprint, syncConfigReviewFingerprint } from \"../settings/config.js\";\nimport type { AnySyncConfig } from \"../settings/settings-types.js\";\nimport { sameSyncExclude } from \"../sync/exclude-policy.js\";\nimport type { StartupObservation } from \"../sync/sync-inspection.js\";\nimport { type RemoteSelectionDecision, sameSyncInclude } from \"../sync/sync-policy.js\";\nimport { setSyncStatus } from \"./sync-status.js\";\nimport { safeTerminalText } from \"./terminal-text.js\";\n\nconst WIDGET_KEY = \"sync:attention\";\n\nexport type SyncAttentionOrigin = \"sync\" | \"pull\" | \"push\";\n\nexport interface SyncAttentionState {\n decision: RemoteSelectionDecision;\n origin: SyncAttentionOrigin;\n offered: boolean;\n}\n\nexport function syncAttentionMatchesConfig(attention: SyncAttentionState, config: AnySyncConfig) {\n return (\n attention.decision.setupName === config.setupName &&\n attention.decision.configIdentity === syncConfigReviewFingerprint(config) &&\n sameSyncInclude(attention.decision.localInclude, config.include) &&\n sameSyncExclude(attention.decision.localExclude, config.exclude)\n );\n}\n\nexport interface SyncAttentionController {\n observe(observation: StartupObservation): void;\n observation(): StartupObservation | undefined;\n clearObservation(): void;\n notifyObservation(ctx: ExtensionContext): void;\n set(decision: RemoteSelectionDecision, origin: SyncAttentionOrigin): void;\n current(): SyncAttentionState | undefined;\n markOffered(): boolean;\n clear(ctx: ExtensionContext): void;\n reset(ctx: ExtensionContext): void;\n expand(): void;\n publish(ctx: ExtensionContext, signal?: AbortSignal): Promise<void>;\n}\n\nexport function createSyncAttentionController(): SyncAttentionController {\n let state: SyncAttentionState | undefined;\n let observation: StartupObservation | undefined;\n let generation = 0;\n let widgetState: EditorStatusWidgetState = { collapsed: false };\n\n return {\n observe(value) {\n generation++;\n observation = value;\n },\n observation() {\n return observation;\n },\n clearObservation() {\n generation++;\n observation = undefined;\n },\n notifyObservation(ctx) {\n if (ctx.hasUI && observation && observationNeedsAttention(observation)) {\n ctx.ui.notify(observationLines(observation).join(\"\\n\"), \"warning\");\n }\n },\n set(decision, origin) {\n generation++;\n state = { decision, origin, offered: false };\n },\n current() {\n return state;\n },\n markOffered() {\n if (!state || state.offered) return false;\n state = { ...state, offered: true };\n return true;\n },\n clear(ctx) {\n generation++;\n state = undefined;\n clearAttentionPresentation(ctx);\n },\n reset(ctx) {\n generation++;\n state = undefined;\n observation = undefined;\n widgetState = { collapsed: false };\n clearAttentionPresentation(ctx);\n },\n expand() {\n widgetState.collapsed = false;\n },\n async publish(ctx, signal) {\n const currentGeneration = ++generation;\n if (signal?.aborted || !ctx.hasUI) return;\n const classification = observation ? classifyObservation(observation) : \"none\";\n if (!state && (classification === \"none\" || classification === \"guidance\")) {\n clearAttentionPresentation(ctx);\n return;\n }\n if (!state && classification === \"status\") {\n ctx.ui.setWidget(WIDGET_KEY, undefined);\n setSyncStatus(ctx, observation?.inspection.remoteChanged ? \"sync \u21E3\" : \"sync \u21E1\", {\n activity: observation?.inspection.remoteChanged ? \"remote-change\" : \"local-change\",\n });\n return;\n }\n const setupName = safeTerminalText(state?.decision.setupName ?? observation?.setupName ?? \"\");\n if (ctx.mode !== \"tui\") {\n ctx.ui.setWidget(WIDGET_KEY, undefined);\n setSyncStatus(ctx, \"sync \u21D5\", { activity: \"review\" });\n return;\n }\n // Keep Kit outside the eager startup graph; module loading owns no cancellable resources.\n const { EditorStatusWidget } = await import(\"./attention-widget.js\").catch((error) => {\n if (generation === currentGeneration && !signal?.aborted) clearAttentionPresentation(ctx);\n throw error;\n });\n if (generation !== currentGeneration || signal?.aborted) return;\n setSyncStatus(ctx, \"sync \u21D5\", { activity: \"review\" });\n const presentationState = widgetState;\n ctx.ui.setWidget(\n WIDGET_KEY,\n (_tui, theme) =>\n new EditorStatusWidget({\n theme,\n name: \"Sync\",\n summary: \"Needs review\",\n state: presentationState,\n renderBody: (width) => [\n width === 0 ? \"\" : truncateToWidth(theme.fg(\"muted\", `Open /sync to review \u00B7 ${setupName}`), width, \"\u2026\"),\n ],\n }),\n );\n },\n };\n}\n\nexport function observationMatchesConfig(observation: StartupObservation, config: AnySyncConfig) {\n return observation.configIdentity === syncCheckConfigFingerprint(config);\n}\n\nexport function observationSummary(observation: StartupObservation) {\n const result = observation.inspection;\n if (result.emptyInclude) return \"No included content selected\";\n if (result.selectionState?.kind === \"different\") return \"Synced-content list differs; review needed\";\n if (result.firstSync)\n return result.head ? \"No sync baseline; review remote and local content\" : \"Remote empty; no sync baseline\";\n if (!result.head) return \"Remote snapshot missing; review needed\";\n if (observation.automaticTransfer && result.selectionState?.kind === \"legacy\")\n return \"Legacy remote has no authoritative content list; review /sync and choose an explicit direction to adopt policy\";\n if (result.localChanged && result.remoteChanged) return \"Local and remote changed since last sync; review needed\";\n if (result.remoteChanged) return \"Remote changed since last sync\";\n if (result.localChanged) return \"Local content changed since last sync\";\n if (result.selectionState?.kind === \"legacy\") return \"Legacy remote has no authoritative content list\";\n return \"No changes detected since last sync\";\n}\n\nexport type ObservationClassification = \"none\" | \"guidance\" | \"status\" | \"review\";\n\n/** Presentation only: never discard an observation or authorize a transfer here. */\nexport function classifyObservation(observation: StartupObservation): ObservationClassification {\n const result = observation.inspection;\n // Sync now exits before reading remote content when nothing is selected.\n if (result.emptyInclude) return \"guidance\";\n // Ordering is part of the existing transfer policy, not merely display order.\n if (result.selectionState?.kind === \"different\") return \"review\";\n if (result.firstSync) return result.head ? \"review\" : \"guidance\";\n if (!result.head || (result.localChanged && result.remoteChanged)) return \"review\";\n if (observation.automaticTransfer && result.selectionState?.kind === \"legacy\") return \"review\";\n if (result.localChanged || result.remoteChanged) return \"status\";\n // Legacy metadata alone requires no scope confirmation in transfer operations.\n return \"none\";\n}\n\nexport function observationNeedsAttention(observation: StartupObservation) {\n return classifyObservation(observation) === \"review\";\n}\n\nfunction observationLines(observation: StartupObservation) {\n return [\n `Pi Sync check \u00B7 ${safeTerminalText(observation.setupName)}`,\n observationSummary(observation),\n \"No startup transfer \u00B7 Run /sync to review\",\n ];\n}\n\nfunction clearAttentionPresentation(ctx: ExtensionContext) {\n if (!ctx.hasUI) return;\n setSyncStatus(ctx, undefined);\n ctx.ui.setWidget(WIDGET_KEY, undefined);\n}\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/settings/config.ts"],
|
|
4
|
-
"sourcesContent": ["export type * from \"@narumitw/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/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;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|