@narumitw/pi-sync 0.49.11 → 0.49.12

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.
@@ -3,15 +3,15 @@
3
3
  import {
4
4
  runCancellableOperation,
5
5
  showRemoteSelectionReview
6
- } from "./chunk-D3S54OXI.js";
6
+ } from "./chunk-D3S54OXI.ts";
7
7
  import {
8
8
  errorMessage,
9
9
  safeTerminalText
10
- } from "./chunk-W64NEHXT.js";
10
+ } from "./chunk-W64NEHXT.ts";
11
11
  import {
12
12
  loadConfig,
13
13
  syncConfigReviewIdentity
14
- } from "./chunk-APZVBSM6.js";
14
+ } from "./chunk-APZVBSM6.ts";
15
15
 
16
16
  // src/sync-resolution-ui.ts
17
17
  import { defineMenu, runMenu } from "@narumitw/pi-tui-kit";
@@ -2,20 +2,20 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  withLock
5
- } from "./chunk-LJDSHNS3.js";
5
+ } from "./chunk-LJDSHNS3.ts";
6
6
  import {
7
7
  sessionStorageRoot
8
- } from "./chunk-EWX3TPLQ.js";
8
+ } from "./chunk-EWX3TPLQ.ts";
9
9
  import {
10
10
  agentDir
11
- } from "./chunk-APZVBSM6.js";
11
+ } from "./chunk-APZVBSM6.ts";
12
12
  import {
13
13
  stateDir
14
- } from "./chunk-F5QL2GPY.js";
14
+ } from "./chunk-F5QL2GPY.ts";
15
15
  import {
16
16
  assertWithinRoot,
17
17
  isPathInside
18
- } from "./chunk-YQ6UW7IF.js";
18
+ } from "./chunk-YQ6UW7IF.ts";
19
19
 
20
20
  // src/snapshot-transaction.ts
21
21
  import { randomUUID } from "node:crypto";
@@ -6,10 +6,10 @@ import {
6
6
  syncSetupStorageReview,
7
7
  updateLocalConfig,
8
8
  validateConfigName
9
- } from "./chunk-APZVBSM6.js";
9
+ } from "./chunk-APZVBSM6.ts";
10
10
  import {
11
11
  normalizeSyncInclude
12
- } from "./chunk-YQ6UW7IF.js";
12
+ } from "./chunk-YQ6UW7IF.ts";
13
13
 
14
14
  // src/settings-management.ts
15
15
  var SyncSetupReviewChangedError = class extends Error {
@@ -6,10 +6,10 @@ import {
6
6
  normalizeGitRemote,
7
7
  normalizeGitRemoteIdentity,
8
8
  stateDir
9
- } from "./chunk-F5QL2GPY.js";
9
+ } from "./chunk-F5QL2GPY.ts";
10
10
  import {
11
11
  normalizeSyncInclude
12
- } from "./chunk-YQ6UW7IF.js";
12
+ } from "./chunk-YQ6UW7IF.ts";
13
13
 
14
14
  // src/config-file.ts
15
15
  import { randomUUID } from "node:crypto";
@@ -2,11 +2,11 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  setSyncSetupCompletions
5
- } from "./chunk-4U6AFLJB.js";
5
+ } from "./chunk-4U6AFLJB.ts";
6
6
  import {
7
7
  SetupPullRequiresUiError,
8
8
  safeTerminalText
9
- } from "./chunk-W64NEHXT.js";
9
+ } from "./chunk-W64NEHXT.ts";
10
10
  import {
11
11
  configuredSyncSetupNames,
12
12
  loadConfig,
@@ -14,7 +14,7 @@ import {
14
14
  syncConfigReviewIdentity,
15
15
  syncSetupReviewIdentity,
16
16
  updateLocalConfig
17
- } from "./chunk-APZVBSM6.js";
17
+ } from "./chunk-APZVBSM6.ts";
18
18
 
19
19
  // src/setup-switch.ts
20
20
  var SETUP_SWITCH_ACTION_OPTIONS = [
@@ -3,25 +3,25 @@
3
3
  import {
4
4
  SyncSetupReviewChangedError,
5
5
  updateSyncSetup
6
- } from "./chunk-4F3W4CSC.js";
6
+ } from "./chunk-4F3W4CSC.ts";
7
7
  import {
8
8
  createSyncBackend,
9
9
  readSnapshotForHead
10
- } from "./chunk-FR6CVXAL.js";
10
+ } from "./chunk-FR6CVXAL.ts";
11
11
  import {
12
12
  errorMessage,
13
13
  safeTerminalText
14
- } from "./chunk-W64NEHXT.js";
14
+ } from "./chunk-W64NEHXT.ts";
15
15
  import {
16
16
  loadConfig,
17
17
  loadPartialConfig,
18
18
  syncConfigReviewFingerprint
19
- } from "./chunk-APZVBSM6.js";
19
+ } from "./chunk-APZVBSM6.ts";
20
20
  import {
21
21
  compareSyncInclude,
22
22
  inspectRemoteSelection,
23
23
  sameSyncInclude
24
- } from "./chunk-YQ6UW7IF.js";
24
+ } from "./chunk-YQ6UW7IF.ts";
25
25
 
26
26
  // src/remote-selection-ui.ts
27
27
  import { defineMenu, runMenu } from "@narumitw/pi-tui-kit";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  agentDir,
5
5
  configuredSessionDir
6
- } from "./chunk-APZVBSM6.js";
6
+ } from "./chunk-APZVBSM6.ts";
7
7
  import {
8
8
  DEFAULT_SYNC_INCLUDE,
9
9
  canonicalSnapshotPathForConfig,
@@ -20,7 +20,7 @@ import {
20
20
  snapshotSelectionInclude,
21
21
  syncIncludeSelection,
22
22
  toPosix
23
- } from "./chunk-YQ6UW7IF.js";
23
+ } from "./chunk-YQ6UW7IF.ts";
24
24
 
25
25
  // src/snapshot.ts
26
26
  import { createHash, randomUUID } from "node:crypto";
@@ -2,30 +2,30 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  safeTerminalText
5
- } from "./chunk-W64NEHXT.js";
5
+ } from "./chunk-W64NEHXT.ts";
6
6
  import {
7
7
  syncConfigReviewFingerprint
8
- } from "./chunk-APZVBSM6.js";
8
+ } from "./chunk-APZVBSM6.ts";
9
9
  import {
10
10
  inspectRemoteSelection,
11
11
  remoteSelectionMismatch,
12
12
  sameSyncInclude,
13
13
  snapshotSelectionInclude
14
- } from "./chunk-YQ6UW7IF.js";
14
+ } from "./chunk-YQ6UW7IF.ts";
15
15
 
16
16
  // src/backend-factory.ts
17
17
  var createSyncBackend = async (config) => {
18
18
  switch (config.backend.type) {
19
19
  case "s3": {
20
- const { S3SyncBackend } = await import("./s3-backend-3QZGO2EF.js");
20
+ const { S3SyncBackend } = await import("./s3-backend-3QZGO2EF.ts");
21
21
  return new S3SyncBackend(config.backend);
22
22
  }
23
23
  case "webdav": {
24
- const { WebDavSyncBackend } = await import("./webdav-backend-ZD5RHRIU.js");
24
+ const { WebDavSyncBackend } = await import("./webdav-backend-ZD5RHRIU.ts");
25
25
  return new WebDavSyncBackend(config.backend);
26
26
  }
27
27
  case "git": {
28
- const { GitSyncBackend } = await import("./git-backend-E3UOUUOM.js");
28
+ const { GitSyncBackend } = await import("./git-backend-E3UOUUOM.ts");
29
29
  return new GitSyncBackend(config.backend);
30
30
  }
31
31
  }
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  snapshotSelectionInclude
5
- } from "./chunk-YQ6UW7IF.js";
5
+ } from "./chunk-YQ6UW7IF.ts";
6
6
 
7
7
  // src/snapshot-codec.ts
8
8
  import { Readable, Writable } from "node:stream";
@@ -2,14 +2,14 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  safeTerminalText
5
- } from "./chunk-W64NEHXT.js";
5
+ } from "./chunk-W64NEHXT.ts";
6
6
  import {
7
7
  syncConfigReviewFingerprint
8
- } from "./chunk-APZVBSM6.js";
8
+ } from "./chunk-APZVBSM6.ts";
9
9
  import {
10
10
  compareSyncInclude,
11
11
  sameSyncInclude
12
- } from "./chunk-YQ6UW7IF.js";
12
+ } from "./chunk-YQ6UW7IF.ts";
13
13
 
14
14
  // src/sync-attention.ts
15
15
  import { truncateToWidth } from "@earendil-works/pi-tui";
@@ -3,12 +3,12 @@
3
3
  import {
4
4
  ensureStateDir,
5
5
  lockPath
6
- } from "./chunk-APZVBSM6.js";
6
+ } from "./chunk-APZVBSM6.ts";
7
7
  import {
8
8
  LOCKFILE_FS_ADAPTER,
9
9
  LOCK_GUARD_STALE_MS,
10
10
  LOCK_GUARD_UPDATE_MS
11
- } from "./chunk-F5QL2GPY.js";
11
+ } from "./chunk-F5QL2GPY.ts";
12
12
 
13
13
  // src/lock.ts
14
14
  import { randomUUID } from "node:crypto";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  filterSnapshotForConfigPolicy,
5
5
  isSessionPath
6
- } from "./chunk-EWX3TPLQ.js";
6
+ } from "./chunk-EWX3TPLQ.ts";
7
7
  import {
8
8
  canonicalSnapshotPathForConfig,
9
9
  customIncludePathsByLower,
@@ -11,7 +11,7 @@ import {
11
11
  isConfiguredSnapshotPath,
12
12
  normalizeSyncInclude,
13
13
  toPosix
14
- } from "./chunk-YQ6UW7IF.js";
14
+ } from "./chunk-YQ6UW7IF.ts";
15
15
 
16
16
  // src/sync-state.ts
17
17
  function hasLocalChanges(local, state, config) {
@@ -2,13 +2,13 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  fileHashMap
5
- } from "./chunk-RGJ6SOYR.js";
5
+ } from "./chunk-RGJ6SOYR.ts";
6
6
  import {
7
7
  agentDir
8
- } from "./chunk-APZVBSM6.js";
8
+ } from "./chunk-APZVBSM6.ts";
9
9
  import {
10
10
  inspectRemoteSelection
11
- } from "./chunk-YQ6UW7IF.js";
11
+ } from "./chunk-YQ6UW7IF.ts";
12
12
 
13
13
  // src/sync-errors.ts
14
14
  var SetupPullRequiresUiError = class extends Error {
@@ -2,19 +2,19 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  updateSyncSetup
5
- } from "./chunk-4F3W4CSC.js";
5
+ } from "./chunk-4F3W4CSC.ts";
6
6
  import {
7
7
  agentDir,
8
8
  loadConfig,
9
9
  localConfigPath
10
- } from "./chunk-APZVBSM6.js";
11
- import "./chunk-F5QL2GPY.js";
10
+ } from "./chunk-APZVBSM6.ts";
11
+ import "./chunk-F5QL2GPY.ts";
12
12
  import {
13
13
  BUILT_IN_SYNC_ROOTS,
14
14
  isSafeCustomIncludePath,
15
15
  normalizeSyncInclude,
16
16
  syncIncludeSelection
17
- } from "./chunk-YQ6UW7IF.js";
17
+ } from "./chunk-YQ6UW7IF.ts";
18
18
 
19
19
  // src/file-selection.ts
20
20
  import fs from "node:fs/promises";
@@ -7,16 +7,16 @@ import {
7
7
  normalizeGitRemoteIdentity,
8
8
  stateDir,
9
9
  validateGitNamespace
10
- } from "./chunk-F5QL2GPY.js";
10
+ } from "./chunk-F5QL2GPY.ts";
11
11
  import {
12
12
  SyncBackendConflictError,
13
13
  SyncBackendPublicationOutcomeUnknownError
14
- } from "./chunk-5MQ76BK5.js";
14
+ } from "./chunk-5MQ76BK5.ts";
15
15
  import {
16
16
  portableSnapshotSelection,
17
17
  posixJoin,
18
18
  snapshotSelectionInclude
19
- } from "./chunk-YQ6UW7IF.js";
19
+ } from "./chunk-YQ6UW7IF.ts";
20
20
 
21
21
  // src/git-backend.ts
22
22
  import { createHash as createHash2, randomUUID } from "node:crypto";
@@ -2,16 +2,16 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  dispatchManagerResult
5
- } from "./chunk-3GRWMWUZ.js";
6
- import "./chunk-D3S54OXI.js";
7
- import "./chunk-4F3W4CSC.js";
8
- import "./chunk-FR6CVXAL.js";
9
- import "./chunk-W64NEHXT.js";
10
- import "./chunk-RGJ6SOYR.js";
11
- import "./chunk-EWX3TPLQ.js";
12
- import "./chunk-APZVBSM6.js";
13
- import "./chunk-F5QL2GPY.js";
14
- import "./chunk-YQ6UW7IF.js";
5
+ } from "./chunk-3GRWMWUZ.ts";
6
+ import "./chunk-D3S54OXI.ts";
7
+ import "./chunk-4F3W4CSC.ts";
8
+ import "./chunk-FR6CVXAL.ts";
9
+ import "./chunk-W64NEHXT.ts";
10
+ import "./chunk-RGJ6SOYR.ts";
11
+ import "./chunk-EWX3TPLQ.ts";
12
+ import "./chunk-APZVBSM6.ts";
13
+ import "./chunk-F5QL2GPY.ts";
14
+ import "./chunk-YQ6UW7IF.ts";
15
15
  export {
16
16
  dispatchManagerResult
17
17
  };
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  dispatchManagerResult
5
- } from "./chunk-3GRWMWUZ.js";
5
+ } from "./chunk-3GRWMWUZ.ts";
6
6
  import {
7
7
  errorMessage,
8
8
  ownRecord,
@@ -10,7 +10,7 @@ import {
10
10
  requiredInput,
11
11
  runCancellableOperation,
12
12
  safeTerminalText as safeTerminalText2
13
- } from "./chunk-D3S54OXI.js";
13
+ } from "./chunk-D3S54OXI.ts";
14
14
  import {
15
15
  addStorageConnection,
16
16
  addSyncSetup,
@@ -19,31 +19,31 @@ import {
19
19
  saveNewV3Settings,
20
20
  updateStorageConnection,
21
21
  updateSyncSetup
22
- } from "./chunk-4F3W4CSC.js";
22
+ } from "./chunk-4F3W4CSC.ts";
23
23
  import {
24
24
  syncAttentionMatchesConfig
25
- } from "./chunk-JNOOSPEW.js";
25
+ } from "./chunk-JNOOSPEW.ts";
26
26
  import {
27
27
  SETUP_SWITCH_ACTION_OPTIONS,
28
28
  saveOnSwitch,
29
29
  setupSwitchActionFromLabel,
30
30
  setupSwitchActionLabel,
31
31
  useSyncSetup
32
- } from "./chunk-BHJUISB4.js";
32
+ } from "./chunk-BHJUISB4.ts";
33
33
  import {
34
34
  setSyncSetupCompletions
35
- } from "./chunk-4U6AFLJB.js";
36
- import "./chunk-FR6CVXAL.js";
35
+ } from "./chunk-4U6AFLJB.ts";
36
+ import "./chunk-FR6CVXAL.ts";
37
37
  import {
38
38
  inspectLock,
39
39
  isLockGuardHeld,
40
40
  isStaleLock
41
- } from "./chunk-LJDSHNS3.js";
41
+ } from "./chunk-LJDSHNS3.ts";
42
42
  import {
43
43
  safeTerminalText
44
- } from "./chunk-W64NEHXT.js";
45
- import "./chunk-RGJ6SOYR.js";
46
- import "./chunk-EWX3TPLQ.js";
44
+ } from "./chunk-W64NEHXT.ts";
45
+ import "./chunk-RGJ6SOYR.ts";
46
+ import "./chunk-EWX3TPLQ.ts";
47
47
  import {
48
48
  activeLocalConfigPath,
49
49
  configuredSyncSetupNames,
@@ -59,17 +59,17 @@ import {
59
59
  syncConfigReviewIdentity,
60
60
  validateWebDavCredentials,
61
61
  validateWebDavNamespace
62
- } from "./chunk-APZVBSM6.js";
62
+ } from "./chunk-APZVBSM6.ts";
63
63
  import {
64
64
  normalizeGitBranch,
65
65
  normalizeGitDirectory,
66
66
  normalizeGitRemote
67
- } from "./chunk-F5QL2GPY.js";
67
+ } from "./chunk-F5QL2GPY.ts";
68
68
  import {
69
69
  DEFAULT_SYNC_INCLUDE,
70
70
  compareSyncInclude,
71
71
  syncIncludeSelection
72
- } from "./chunk-YQ6UW7IF.js";
72
+ } from "./chunk-YQ6UW7IF.ts";
73
73
 
74
74
  // src/manager-ui.ts
75
75
  import { defineMenu as defineMenu4, runMenu as runMenu4 } from "@narumitw/pi-tui-kit";
@@ -384,7 +384,7 @@ function blockedSyncMenuItem(label, manager) {
384
384
  };
385
385
  }
386
386
  async function showManagerAttention(ctx, attention, runRoute, signal, onSelectionResolved) {
387
- const { showRemoteSelectionReview } = await import("./remote-selection-ui-J6OW5DKZ.js");
387
+ const { showRemoteSelectionReview } = await import("./remote-selection-ui-J6OW5DKZ.ts");
388
388
  if (signal?.aborted) return "close";
389
389
  const review = await showRemoteSelectionReview(
390
390
  ctx,
@@ -1237,7 +1237,7 @@ async function showSyncSettings(ctx, runRoute, signal) {
1237
1237
  },
1238
1238
  "remote-include": async ({ signal: actionSignal }) => {
1239
1239
  const reviewSignal = signal ? AbortSignal.any([signal, actionSignal]) : actionSignal;
1240
- const { showRemoteSelectionReview } = await import("./remote-selection-ui-J6OW5DKZ.js");
1240
+ const { showRemoteSelectionReview } = await import("./remote-selection-ui-J6OW5DKZ.ts");
1241
1241
  if (reviewSignal.aborted) return { kind: "rejected" };
1242
1242
  const review = await showRemoteSelectionReview(ctx, setupName, reviewSignal, void 0, {
1243
1243
  origin: "settings",
@@ -2,15 +2,15 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  showRemoteSelectionReview
5
- } from "./chunk-D3S54OXI.js";
6
- import "./chunk-4F3W4CSC.js";
7
- import "./chunk-FR6CVXAL.js";
8
- import "./chunk-W64NEHXT.js";
9
- import "./chunk-RGJ6SOYR.js";
10
- import "./chunk-EWX3TPLQ.js";
11
- import "./chunk-APZVBSM6.js";
12
- import "./chunk-F5QL2GPY.js";
13
- import "./chunk-YQ6UW7IF.js";
5
+ } from "./chunk-D3S54OXI.ts";
6
+ import "./chunk-4F3W4CSC.ts";
7
+ import "./chunk-FR6CVXAL.ts";
8
+ import "./chunk-W64NEHXT.ts";
9
+ import "./chunk-RGJ6SOYR.ts";
10
+ import "./chunk-EWX3TPLQ.ts";
11
+ import "./chunk-APZVBSM6.ts";
12
+ import "./chunk-F5QL2GPY.ts";
13
+ import "./chunk-YQ6UW7IF.ts";
14
14
  export {
15
15
  showRemoteSelectionReview
16
16
  };
@@ -2,21 +2,21 @@
2
2
  // @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
3
3
  import {
4
4
  sessionTokenWarnings
5
- } from "./chunk-APZVBSM6.js";
5
+ } from "./chunk-APZVBSM6.ts";
6
6
  import {
7
7
  decodeSnapshot,
8
8
  encodeSnapshot
9
- } from "./chunk-HGV24P4T.js";
10
- import "./chunk-F5QL2GPY.js";
9
+ } from "./chunk-HGV24P4T.ts";
10
+ import "./chunk-F5QL2GPY.ts";
11
11
  import {
12
12
  SyncBackendConflictError,
13
13
  SyncBackendPublicationOutcomeUnknownError
14
- } from "./chunk-5MQ76BK5.js";
14
+ } from "./chunk-5MQ76BK5.ts";
15
15
  import {
16
16
  encodeKey,
17
17
  portableSnapshotSelection,
18
18
  posixJoin
19
- } from "./chunk-YQ6UW7IF.js";
19
+ } from "./chunk-YQ6UW7IF.ts";
20
20
 
21
21
  // src/s3-backend.ts
22
22
  import { createHash as createHash2 } from "node:crypto";
@@ -6,16 +6,16 @@ import {
6
6
  setupSwitchActionFromLabel,
7
7
  setupSwitchActionLabel,
8
8
  useSyncSetup
9
- } from "./chunk-BHJUISB4.js";
10
- import "./chunk-4U6AFLJB.js";
9
+ } from "./chunk-BHJUISB4.ts";
10
+ import "./chunk-4U6AFLJB.ts";
11
11
  import {
12
12
  SetupPullRequiresUiError
13
- } from "./chunk-W64NEHXT.js";
14
- import "./chunk-RGJ6SOYR.js";
15
- import "./chunk-EWX3TPLQ.js";
16
- import "./chunk-APZVBSM6.js";
17
- import "./chunk-F5QL2GPY.js";
18
- import "./chunk-YQ6UW7IF.js";
13
+ } from "./chunk-W64NEHXT.ts";
14
+ import "./chunk-RGJ6SOYR.ts";
15
+ import "./chunk-EWX3TPLQ.ts";
16
+ import "./chunk-APZVBSM6.ts";
17
+ import "./chunk-F5QL2GPY.ts";
18
+ import "./chunk-YQ6UW7IF.ts";
19
19
  export {
20
20
  SETUP_SWITCH_ACTION_OPTIONS,
21
21
  SetupPullRequiresUiError,
@@ -15,14 +15,14 @@ import {
15
15
  snapshotIncludesSessions,
16
16
  snapshotTarget,
17
17
  snapshotWithoutSessions
18
- } from "./chunk-EWX3TPLQ.js";
19
- import "./chunk-APZVBSM6.js";
20
- import "./chunk-F5QL2GPY.js";
18
+ } from "./chunk-EWX3TPLQ.ts";
19
+ import "./chunk-APZVBSM6.ts";
20
+ import "./chunk-F5QL2GPY.ts";
21
21
  import {
22
22
  canonicalSnapshotPathForConfig,
23
23
  isConfiguredSnapshotPath,
24
24
  isDeniedPath
25
- } from "./chunk-YQ6UW7IF.js";
25
+ } from "./chunk-YQ6UW7IF.ts";
26
26
  export {
27
27
  canonicalSnapshotPathForConfig,
28
28
  collectFiles,
@@ -5,17 +5,17 @@ import {
5
5
  formatRemoteSelectionStatus,
6
6
  readSnapshotForHead,
7
7
  requireCompatibleRemoteSelection
8
- } from "./chunk-FR6CVXAL.js";
8
+ } from "./chunk-FR6CVXAL.ts";
9
9
  import {
10
10
  applySnapshotTransaction,
11
11
  recoverPendingSnapshotTransactions
12
- } from "./chunk-3NDD5QPM.js";
12
+ } from "./chunk-3NDD5QPM.ts";
13
13
  import {
14
14
  inspectLock,
15
15
  isLockGuardHeld,
16
16
  isStaleLock,
17
17
  withLock
18
- } from "./chunk-LJDSHNS3.js";
18
+ } from "./chunk-LJDSHNS3.ts";
19
19
  import {
20
20
  SyncDecisionRequiredError,
21
21
  countPreservedRemoteFiles,
@@ -27,7 +27,7 @@ import {
27
27
  formatSnapshotOnlyDiff,
28
28
  publicationCapabilityDescription,
29
29
  safeTerminalText
30
- } from "./chunk-W64NEHXT.js";
30
+ } from "./chunk-W64NEHXT.ts";
31
31
  import {
32
32
  canPullRemoteSessionsOnFirstSync,
33
33
  canPullRemoteSettingsOnFirstSync,
@@ -40,7 +40,7 @@ import {
40
40
  snapshotHashesMatchState,
41
41
  snapshotsMatch,
42
42
  syncPolicyChanged
43
- } from "./chunk-RGJ6SOYR.js";
43
+ } from "./chunk-RGJ6SOYR.ts";
44
44
  import {
45
45
  createSnapshot,
46
46
  filterSnapshotForConfigPolicy,
@@ -54,7 +54,7 @@ import {
54
54
  snapshotIncludesSessions,
55
55
  snapshotTarget,
56
56
  snapshotWithoutSessions
57
- } from "./chunk-EWX3TPLQ.js";
57
+ } from "./chunk-EWX3TPLQ.ts";
58
58
  import {
59
59
  agentDir,
60
60
  loadConfig,
@@ -64,16 +64,16 @@ import {
64
64
  syncConfigReviewIdentity,
65
65
  syncSessionsWarnings,
66
66
  writeStateForConfig
67
- } from "./chunk-APZVBSM6.js";
67
+ } from "./chunk-APZVBSM6.ts";
68
68
  import {
69
69
  encodeSnapshot
70
- } from "./chunk-HGV24P4T.js";
70
+ } from "./chunk-HGV24P4T.ts";
71
71
  import {
72
72
  stateDir
73
- } from "./chunk-F5QL2GPY.js";
73
+ } from "./chunk-F5QL2GPY.ts";
74
74
  import {
75
75
  expectedRemoteHead
76
- } from "./chunk-5MQ76BK5.js";
76
+ } from "./chunk-5MQ76BK5.ts";
77
77
  import {
78
78
  assertWithinRoot,
79
79
  includeFromSelectionConfig,
@@ -84,7 +84,7 @@ import {
84
84
  remoteSelectionMismatch,
85
85
  safeJoin,
86
86
  toPosix
87
- } from "./chunk-YQ6UW7IF.js";
87
+ } from "./chunk-YQ6UW7IF.ts";
88
88
 
89
89
  // src/sync-operations.ts
90
90
  import fs2 from "node:fs/promises";
@@ -16,11 +16,11 @@ import {
16
16
  snapshotHashesMatchState,
17
17
  snapshotsMatch,
18
18
  syncPolicyChanged
19
- } from "./chunk-RGJ6SOYR.js";
20
- import "./chunk-EWX3TPLQ.js";
21
- import "./chunk-APZVBSM6.js";
22
- import "./chunk-F5QL2GPY.js";
23
- import "./chunk-YQ6UW7IF.js";
19
+ } from "./chunk-RGJ6SOYR.ts";
20
+ import "./chunk-EWX3TPLQ.ts";
21
+ import "./chunk-APZVBSM6.ts";
22
+ import "./chunk-F5QL2GPY.ts";
23
+ import "./chunk-YQ6UW7IF.ts";
24
24
  export {
25
25
  canPullRemoteSessionsOnFirstSync,
26
26
  canPullRemoteSettingsOnFirstSync,
@@ -3,14 +3,14 @@
3
3
  import {
4
4
  decodeSnapshot,
5
5
  encodeSnapshot
6
- } from "./chunk-HGV24P4T.js";
6
+ } from "./chunk-HGV24P4T.ts";
7
7
  import {
8
8
  SyncBackendConflictError,
9
9
  SyncBackendPublicationOutcomeUnknownError
10
- } from "./chunk-5MQ76BK5.js";
10
+ } from "./chunk-5MQ76BK5.ts";
11
11
  import {
12
12
  portableSnapshotSelection
13
- } from "./chunk-YQ6UW7IF.js";
13
+ } from "./chunk-YQ6UW7IF.ts";
14
14
 
15
15
  // src/webdav-backend.ts
16
16
  import { createHash, randomUUID } from "node:crypto";
package/dist/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  createSyncAttentionController,
5
5
  syncAttentionMatchesConfig
6
- } from "./chunks/chunk-JNOOSPEW.js";
6
+ } from "./chunks/chunk-JNOOSPEW.ts";
7
7
  import {
8
8
  completeSyncArguments,
9
9
  parseOptions,
@@ -12,21 +12,21 @@ import {
12
12
  splitArgs,
13
13
  usage,
14
14
  validateCommandOptions
15
- } from "./chunks/chunk-4U6AFLJB.js";
15
+ } from "./chunks/chunk-4U6AFLJB.ts";
16
16
  import {
17
17
  recoverSnapshotTransactionsOnStartup
18
- } from "./chunks/chunk-3NDD5QPM.js";
18
+ } from "./chunks/chunk-3NDD5QPM.ts";
19
19
  import {
20
20
  unlock,
21
21
  withLock
22
- } from "./chunks/chunk-LJDSHNS3.js";
22
+ } from "./chunks/chunk-LJDSHNS3.ts";
23
23
  import {
24
24
  SetupPullRequiresUiError,
25
25
  errorMessage,
26
26
  isSyncDecisionRequiredError
27
- } from "./chunks/chunk-W64NEHXT.js";
28
- import "./chunks/chunk-RGJ6SOYR.js";
29
- import "./chunks/chunk-EWX3TPLQ.js";
27
+ } from "./chunks/chunk-W64NEHXT.ts";
28
+ import "./chunks/chunk-RGJ6SOYR.ts";
29
+ import "./chunks/chunk-EWX3TPLQ.ts";
30
30
  import {
31
31
  activeLocalConfigPath,
32
32
  configuredSyncSetupNames,
@@ -42,16 +42,16 @@ import {
42
42
  readStateForConfig,
43
43
  sessionTokenWarnings,
44
44
  syncSessionsWarnings
45
- } from "./chunks/chunk-APZVBSM6.js";
45
+ } from "./chunks/chunk-APZVBSM6.ts";
46
46
  import {
47
47
  migrateLegacyStateDirectory,
48
48
  stateDirectoryMigrationNotice,
49
49
  withStateDirectoryAccess
50
- } from "./chunks/chunk-F5QL2GPY.js";
50
+ } from "./chunks/chunk-F5QL2GPY.ts";
51
51
  import {
52
52
  RemoteSelectionMismatchError,
53
53
  formatRemoteSelectionMismatch
54
- } from "./chunks/chunk-YQ6UW7IF.js";
54
+ } from "./chunks/chunk-YQ6UW7IF.ts";
55
55
 
56
56
  // src/sync-extension.ts
57
57
  var STATUS_KEY = "sync";
@@ -67,12 +67,12 @@ var AUTO_SYNC_OPTIONS = {
67
67
  function sync(pi, dependencies = {}) {
68
68
  const loaders = {
69
69
  setupSwitch: cachedModuleLoader(
70
- dependencies.loadSetupSwitch ?? (() => import("./chunks/setup-switch-X3W3FALZ.js"))
70
+ dependencies.loadSetupSwitch ?? (() => import("./chunks/setup-switch-X3W3FALZ.ts"))
71
71
  ),
72
- snapshot: cachedModuleLoader(dependencies.loadSnapshot ?? (() => import("./chunks/snapshot-WBSV4MQG.js"))),
73
- syncState: cachedModuleLoader(dependencies.loadSyncState ?? (() => import("./chunks/sync-state-36H7ULG2.js"))),
72
+ snapshot: cachedModuleLoader(dependencies.loadSnapshot ?? (() => import("./chunks/snapshot-WBSV4MQG.ts"))),
73
+ syncState: cachedModuleLoader(dependencies.loadSyncState ?? (() => import("./chunks/sync-state-36H7ULG2.ts"))),
74
74
  operations: cachedModuleLoader(
75
- dependencies.loadSyncOperations ?? (() => import("./chunks/sync-operations-MPAFVVHA.js"))
75
+ dependencies.loadSyncOperations ?? (() => import("./chunks/sync-operations-MPAFVVHA.ts"))
76
76
  )
77
77
  };
78
78
  const attention = createSyncAttentionController();
@@ -185,7 +185,7 @@ async function startSession(ctx, signal, loaders) {
185
185
  async function handleCommand(rawArgs, ctx, sessionSignal, loaders, attention) {
186
186
  if (!rawArgs.trim()) {
187
187
  try {
188
- const { showSyncManager } = await import("./chunks/manager-ui-7E25VWUP.js");
188
+ const { showSyncManager } = await import("./chunks/manager-ui-7E25VWUP.ts");
189
189
  if (sessionSignal.aborted) return;
190
190
  await showSyncManager(
191
191
  ctx,
@@ -269,7 +269,7 @@ function directSelectionOrigin(rawArgs) {
269
269
  async function resolveSelectionAttention(ctx, attention, signal, loaders, options = {}) {
270
270
  const current = attention.current();
271
271
  if (!current || signal.aborted) return;
272
- const { dispatchManagerResult } = await import("./chunks/manager-result-dispatcher-YKBLZ7KL.js");
272
+ const { dispatchManagerResult } = await import("./chunks/manager-result-dispatcher-YKBLZ7KL.ts");
273
273
  if (signal.aborted || attention.current() !== current) return;
274
274
  await dispatchManagerResult(
275
275
  ctx,
@@ -374,7 +374,7 @@ async function executeCommand(rawArgs, ctx, signal, loaders, onCommit, setup) {
374
374
  await showConfig(ctx, options);
375
375
  return { kind: "completed" };
376
376
  case "files": {
377
- const { showFileSelection } = await import("./chunks/file-selection-4UABOP44.js");
377
+ const { showFileSelection } = await import("./chunks/file-selection-4UABOP44.ts");
378
378
  throwIfAborted(options.signal);
379
379
  await showFileSelection(ctx, options.setup, options.signal);
380
380
  return { kind: "completed" };
@@ -540,7 +540,7 @@ async function initConfig(ctx, signal) {
540
540
  return;
541
541
  }
542
542
  if (ctx.mode === "tui") {
543
- const { showSetupWizard } = await import("./chunks/manager-ui-7E25VWUP.js");
543
+ const { showSetupWizard } = await import("./chunks/manager-ui-7E25VWUP.ts");
544
544
  throwIfAborted(signal);
545
545
  await showSetupWizard(ctx, signal);
546
546
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-sync",
3
- "version": "0.49.11",
3
+ "version": "0.49.12",
4
4
  "description": "Pi extension that syncs Pi configuration through Git, WebDAV, Cloudflare R2, or S3-compatible storage.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,15 +43,15 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@narumitw/pi-tui-kit": "^0.52.0",
46
- "fast-xml-parser": "^5.10.1",
46
+ "fast-xml-parser": "^5.11.0",
47
47
  "proper-lockfile": "^4.1.2"
48
48
  },
49
49
  "devDependencies": {
50
- "@biomejs/biome": "2.5.8",
50
+ "@biomejs/biome": "2.5.9",
51
51
  "@earendil-works/pi-coding-agent": "0.84.2",
52
52
  "@earendil-works/pi-tui": "0.84.2",
53
53
  "@types/proper-lockfile": "^4.1.4",
54
- "esbuild": "0.28.1",
54
+ "esbuild": "0.28.2",
55
55
  "typescript": "7.0.2"
56
56
  },
57
57
  "peerDependencies": {