tether-sync 0.2.0 → 0.6.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/bin/tether.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  npmInstall,
14
14
  prefixOf,
15
15
  tetherHome
16
- } from "./chunk-NDKBAHAG.js";
16
+ } from "./chunk-KG4OTE34.js";
17
17
 
18
18
  // packages/client/src/cli.js
19
19
  import path2 from "node:path";
@@ -172,7 +172,7 @@ async function resolveFlow(p, from, opts) {
172
172
  }
173
173
  const { results } = await daemon("resolve", { path: target, from, items: plan.items, choices });
174
174
  for (const r of results) {
175
- const extra = r.error ? ` ERROR: ${r.error}` : r.version ? ` -> v${r.version}` : r.keptAs ? ` (your copy: ${r.keptAs})` : r.released ? ` (left at ${r.released})` : "";
175
+ const extra = r.error ? ` ERROR: ${r.error}` : r.version ? ` -> v${r.version}${r.sent ? ` (${r.sent})` : ""}` : r.keptAs ? ` (your copy: ${r.keptAs})` : r.released ? ` (left at ${r.released})` : "";
176
176
  out(`${r.action.padEnd(9)} ${r.path}${extra}`);
177
177
  }
178
178
  if (results.some((r) => r.error)) process.exitCode = 1;
@@ -191,6 +191,7 @@ async function chooseGitMode(target, flag, canFollow) {
191
191
  out(`${target} is inside the git repository ${repo.root}.`);
192
192
  out("How should Tether treat it when git changes it?");
193
193
  out(" [1] keep managing it: git's changes (pull, checkout, switch, merge) may get reverted to Tether's version");
194
+ out(" (git is told to ignore Tether's copy, so git status stays clean and pulls are not blocked)");
194
195
  out(" [2] do not let Tether manage it");
195
196
  if (canFollow) out(" [3] manage it, and after a git pull, checkout, switch or merge accept git's version and publish it to Tether");
196
197
  else out(" (option 3, accepting git's changes, needs editor access)");
@@ -299,6 +300,7 @@ async function main(argv) {
299
300
  if (gitMode === "skip") return out("not pulled");
300
301
  const r = await daemon("pull", { shareId, dest, cwd: process.cwd(), gitMode });
301
302
  out(`pulled ${r.path} (${r.kind}${r.kind === "folder" ? `, ${r.files} files` : ""}, v${r.version}) as ${r.role}`);
303
+ if (r.note) out(`note: ${r.note}`);
302
304
  });
303
305
  program.command("status [path]").description("modes, pending changes, problems").option("-v, --verbose", "show every file and instance IDs").option("--json").action(async (p, o) => {
304
306
  const s = await daemon("status", { path: p ? path2.resolve(p) : void 0 });
package/bin/tetherd.js CHANGED
@@ -4,7 +4,7 @@
4
4
  process.removeAllListeners("warning");
5
5
  var i = process.argv.indexOf("--home");
6
6
  if (i > 0 && process.argv[i + 1]) process.env.TETHER_HOME = process.argv[i + 1];
7
- var { runDaemon } = await import("./daemon-KQ4ZTBYG.js");
7
+ var { runDaemon } = await import("./daemon-Z2NE3MNG.js");
8
8
  runDaemon().catch((e) => {
9
9
  if (e.code === "EADDRINUSE") {
10
10
  console.error("tetherd is already running");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tether-sync",
3
- "version": "0.2.0",
3
+ "version": "0.6.0",
4
4
  "description": "Keep files identical to a central source of truth, wherever they live on your machine.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,8 @@
21
21
  "dependencies": {
22
22
  "koffi": "^3.3.3",
23
23
  "commander": "^14.0.1",
24
- "diff": "^8.0.2"
24
+ "diff": "^8.0.2",
25
+ "firebase": "^12.19.0"
25
26
  },
26
27
  "keywords": [
27
28
  "sync",