agents-anywhere 0.7.2 → 0.7.3

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/dist/cli.js +36 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1104,7 +1104,42 @@ async function initCommand(repoDir, options) {
1104
1104
  }
1105
1105
  if (fs4.existsSync(import_node_path5.default.join(targetDir, "agents-anywhere.json"))) {
1106
1106
  warn(`Config repo already exists at ${targetDir}`);
1107
- info("Run `agents-anywhere link` to connect your agents.");
1107
+ let hasRemote = false;
1108
+ try {
1109
+ const remote = (0, import_node_child_process2.execSync)("git remote get-url origin", {
1110
+ cwd: targetDir,
1111
+ encoding: "utf-8",
1112
+ stdio: ["pipe", "pipe", "pipe"]
1113
+ }).trim();
1114
+ info(`Remote: ${remote}`);
1115
+ hasRemote = true;
1116
+ } catch {
1117
+ warn("No git remote configured.");
1118
+ }
1119
+ if (process.stdin.isTTY) {
1120
+ const shouldRelink = await (0, import_confirm.default)({
1121
+ message: "Re-link agents and sync MCP configs?",
1122
+ default: true
1123
+ });
1124
+ if (shouldRelink) {
1125
+ heading("Linking agent configs...");
1126
+ for (const agent of installed) {
1127
+ const results = linkAgent(agent.definition, targetDir);
1128
+ const linked = results.filter(
1129
+ (r) => r.action === "linked" || r.action === "backed-up-and-linked"
1130
+ );
1131
+ if (linked.length > 0) {
1132
+ success(`${agent.definition.name} \u2014 ${linked.length} item(s) linked`);
1133
+ } else {
1134
+ info(`${agent.definition.name} \u2014 already linked`);
1135
+ }
1136
+ }
1137
+ syncMCPToAllAgents(targetDir, installed);
1138
+ }
1139
+ if (!hasRemote) {
1140
+ await promptGitHubRepo(targetDir);
1141
+ }
1142
+ }
1108
1143
  return;
1109
1144
  }
1110
1145
  const primary = await promptPrimaryAgent(installed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-anywhere",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Manage your AI coding agent configs in one place. One MCP config for every tool. Sync between devices with git.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",