social-agent-cli 1.0.8 → 1.1.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.
Files changed (2) hide show
  1. package/install.ts +6 -14
  2. package/package.json +1 -1
package/install.ts CHANGED
@@ -30,9 +30,6 @@ async function main() {
30
30
  // 1. Kişisel bilgiler
31
31
  console.log(" 1. Kişisel Bilgiler\n ───────────────────");
32
32
  const name = await ask(rl, "Adın");
33
- const xHandle = await ask(rl, "X (Twitter) kullanıcı adın (@olmadan)");
34
- const linkedinHandle = await ask(rl, "LinkedIn kullanıcı adın (URL'deki /in/ sonrası)");
35
- const mastodonHandle = await ask(rl, "Mastodon kullanıcı adın (ör: user@mastodon.social, boş bırakılabilir)");
36
33
  const language = await ask(rl, "Post dili", "tr");
37
34
  const style = await ask(rl, "Post stili (developer/casual/professional)", "developer");
38
35
 
@@ -62,9 +59,6 @@ async function main() {
62
59
  const prompt = `Sen normal bir Claude Code asistanısın ama ek olarak sosyal medya farkındalığın var.
63
60
 
64
61
  Kullanıcının adı: ${name}
65
- X: @${xHandle}
66
- ${linkedinHandle ? `LinkedIn: /in/${linkedinHandle}` : ""}
67
- ${mastodonHandle ? `Mastodon: @${mastodonHandle}` : ""}
68
62
  Post dili: ${language}
69
63
  Post stili: ${style}
70
64
 
@@ -121,13 +115,14 @@ Bu dosyayı düzenlemek için: ${promptPath}
121
115
  const configPath = join(ROOT, "config.json");
122
116
  const config: any = {};
123
117
 
124
- if (mastodonHandle) {
125
- const [, instance] = mastodonHandle.split("@").filter(Boolean);
126
- if (instance) {
127
- const mastodonToken = await ask(rl, `Mastodon access token (${instance}/settings/applications'dan al)`);
118
+ const wantMastodon = await ask(rl, "Mastodon hesabın var mı? (e/h)", "h");
119
+ if (wantMastodon.toLowerCase() === "e") {
120
+ const mastodonInstance = await ask(rl, "Mastodon sunucu adresi (ör: mastodon.social)");
121
+ if (mastodonInstance) {
122
+ const mastodonToken = await ask(rl, `Access token (https://${mastodonInstance}/settings/applications'dan al)`);
128
123
  if (mastodonToken) {
129
124
  config.mastodon = {
130
- instanceUrl: `https://${instance}`,
125
+ instanceUrl: `https://${mastodonInstance}`,
131
126
  accessToken: mastodonToken,
132
127
  };
133
128
  }
@@ -234,10 +229,7 @@ Bu dosyayı düzenlemek için: ${promptPath}
234
229
  `);
235
230
 
236
231
  const browserPlatforms = [
237
- { key: "x", name: "X (Twitter)", url: "https://x.com" },
238
232
  { key: "linkedin", name: "LinkedIn", url: "https://www.linkedin.com" },
239
- { key: "instagram", name: "Instagram", url: "https://www.instagram.com" },
240
- { key: "facebook", name: "Facebook", url: "https://www.facebook.com" },
241
233
  ];
242
234
 
243
235
  console.log(" Şimdi browser platformlarını kuralım.\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-agent-cli",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "AI-powered social media agent - free APIs + browser automation with self-healing selectors",
5
5
  "type": "module",
6
6
  "bin": {