patchcord 0.3.47 → 0.3.48

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.
Files changed (2) hide show
  1. package/bin/patchcord.mjs +1 -32
  2. package/package.json +1 -1
package/bin/patchcord.mjs CHANGED
@@ -258,38 +258,7 @@ if (!cmd || cmd === "install" || cmd === "agent") {
258
258
  const toolLabel = isZed ? "Zed" : isWindsurf ? "Windsurf" : "Gemini CLI";
259
259
  console.log(`\n ${yellow}Note: ${toolLabel} uses global config — applies to all projects.${r}`);
260
260
  } else {
261
- // Detect if this looks like a project folder
262
- const isHome = cwd === HOME || cwd === HOME + "/";
263
- const hasGit = existsSync(join(cwd, ".git"));
264
- const hasProjectFile = [
265
- "package.json", "Cargo.toml", "go.mod", "pyproject.toml", "pom.xml",
266
- "build.gradle", "Makefile", "CMakeLists.txt", ".sln", "Gemfile",
267
- "composer.json", "mix.exs", "Pipfile", "requirements.txt", "setup.py",
268
- ].some(f => existsSync(join(cwd, f)));
269
- const isRoot = cwd === "/" || cwd === "C:\\" || cwd === "C:/";
270
- const isTmp = cwd.startsWith("/tmp") || cwd.includes("/temp");
271
-
272
- if (isHome || isRoot) {
273
- console.log(`\n ${red}⚠ This is your home directory, not a project folder!${r}`);
274
- console.log(` ${yellow}The config will only work for the project folder where it's created.${r}`);
275
- console.log(` ${yellow}cd into your project first, then run npx patchcord@latest again.${r}\n`);
276
- const force = (await ask(` ${dim}Set up here anyway? (y/N):${r} `)).trim().toLowerCase();
277
- if (force !== "y" && force !== "yes") {
278
- rl.close();
279
- process.exit(0);
280
- }
281
- } else if (!hasGit && !hasProjectFile && !isTmp) {
282
- console.log(`\n ${yellow}⚠ This doesn't look like a project folder${r} ${dim}(no .git or project files)${r}`);
283
- console.log(` ${dim}${cwd}${r}`);
284
- console.log(` ${dim}Make sure you're in the right folder — the agent only works here.${r}`);
285
- const proceed = (await ask(` ${dim}Continue? (y/N):${r} `)).trim().toLowerCase();
286
- if (proceed !== "y" && proceed !== "yes") {
287
- rl.close();
288
- process.exit(0);
289
- }
290
- } else {
291
- console.log(`\n${dim}Project:${r} ${bold}${cwd}${r}`);
292
- }
261
+ console.log(`\n${dim}Project:${r} ${bold}${cwd}${r}`);
293
262
  }
294
263
 
295
264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.47",
3
+ "version": "0.3.48",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",