note-connector 0.2.4 → 0.2.5

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.
@@ -40,11 +40,19 @@ function repoHasPython(root) {
40
40
  return fs.existsSync(path.join(root, "pyproject.toml")) && fs.existsSync(path.join(root, "src", "note_mcp"));
41
41
  }
42
42
  function cloneRepo(target) {
43
+ if (!commandExists("git")) {
44
+ throw new Error("git が見つかりません。git をインストールするか、\n" +
45
+ "手動で clone して repoPath を設定してください。\n" +
46
+ ` git clone ${DEFAULT_REPO} ${target}\n` +
47
+ ` note-connector config set repoPath ${target}`);
48
+ }
43
49
  console.log(`Cloning note-connector → ${target}`);
44
50
  fs.mkdirSync(path.dirname(target), { recursive: true });
45
51
  execFileSync("git", ["clone", "--depth", "1", DEFAULT_REPO, target], { stdio: "inherit" });
46
52
  }
47
53
  function updateRepo(repo) {
54
+ if (!commandExists("git"))
55
+ return;
48
56
  try {
49
57
  const result = spawnSync("git", ["pull", "--ff-only", "origin", "main"], {
50
58
  cwd: repo,
@@ -111,6 +119,9 @@ export async function setupDependencies() {
111
119
  if (!commandExists("tailscale") && config.tunnel.provider === "tailscale" && !config.tunnel.publicUrl) {
112
120
  warnings.push("Tailscale CLI がありません。tunnel.publicUrl を設定するか Tailscale をインストールしてください。");
113
121
  }
122
+ if (!commandExists("git")) {
123
+ warnings.push("git がありません。初回起動は動作しますが、更新を自動取得するには git をインストールしてください。");
124
+ }
114
125
  return {
115
126
  uvInstalled: true,
116
127
  repoReady: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note-connector",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },