social-agent-cli 1.0.1 → 1.0.2
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/install.ts +70 -16
- package/package.json +1 -1
package/install.ts
CHANGED
|
@@ -195,34 +195,88 @@ Bu dosyayı düzenlemek için: ${promptPath}
|
|
|
195
195
|
console.log(" ⚠ /social komutunu ~/.claude/commands/social.md'ye oluşturmalısın");
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
// 9.
|
|
198
|
+
// 9. Platform Login & Learn
|
|
199
|
+
console.log(`
|
|
200
|
+
╔═══════════════════════════════════════╗
|
|
201
|
+
║ TEMEL KURULUM TAMAM! ║
|
|
202
|
+
╚═══════════════════════════════════════╝
|
|
203
|
+
`);
|
|
204
|
+
|
|
205
|
+
const browserPlatforms = [
|
|
206
|
+
{ key: "x", name: "X (Twitter)", url: "https://x.com" },
|
|
207
|
+
{ key: "linkedin", name: "LinkedIn", url: "https://www.linkedin.com" },
|
|
208
|
+
{ key: "instagram", name: "Instagram", url: "https://www.instagram.com" },
|
|
209
|
+
{ key: "facebook", name: "Facebook", url: "https://www.facebook.com" },
|
|
210
|
+
];
|
|
211
|
+
|
|
212
|
+
console.log(" Şimdi browser platformlarını kuralım.\n");
|
|
213
|
+
|
|
214
|
+
for (const platform of browserPlatforms) {
|
|
215
|
+
const wantLogin = await ask(rl, `${platform.name} kurmak ister misin? (e/h)`, "h");
|
|
216
|
+
|
|
217
|
+
if (wantLogin.toLowerCase() !== "e") continue;
|
|
218
|
+
|
|
219
|
+
console.log(`\n [${platform.key}] Chrome açılacak, hesabına giriş yap.`);
|
|
220
|
+
|
|
221
|
+
// Login
|
|
222
|
+
try {
|
|
223
|
+
execSync(`social-agent login ${platform.key}`, { stdio: "inherit" });
|
|
224
|
+
} catch {
|
|
225
|
+
console.log(` ⚠ ${platform.name} login atlandı.`);
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// Learn
|
|
230
|
+
const wantLearn = await ask(rl, `${platform.name}'da post atmayı öğreteyim mi? (e/h)`, "e");
|
|
231
|
+
if (wantLearn.toLowerCase() === "e") {
|
|
232
|
+
console.log(` [${platform.key}] AI post atma akışını öğreniyor...`);
|
|
233
|
+
try {
|
|
234
|
+
execSync(`social-agent learn ${platform.key}`, { stdio: "inherit" });
|
|
235
|
+
} catch {
|
|
236
|
+
console.log(` ⚠ ${platform.name} öğrenme atlandı. Sonra yapabilirsin: social-agent learn ${platform.key}`);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
console.log(` ✓ ${platform.name} hazır!\n`);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// 10. Özet
|
|
199
244
|
rl.close();
|
|
200
245
|
|
|
201
246
|
console.log(`
|
|
202
247
|
╔═══════════════════════════════════════╗
|
|
203
|
-
║
|
|
248
|
+
║ HER ŞEY HAZIR! ║
|
|
204
249
|
╚═══════════════════════════════════════╝
|
|
205
250
|
|
|
206
|
-
Merhaba ${name}! Social Agent
|
|
251
|
+
Merhaba ${name}! Social Agent kuruldu.
|
|
252
|
+
|
|
253
|
+
Nasıl kullanılır:
|
|
254
|
+
─────────────────
|
|
255
|
+
|
|
256
|
+
Post at:
|
|
257
|
+
social-agent run x "şu mesajı tweetle: Yeni proje yayında!"
|
|
258
|
+
social-agent run linkedin "şu mesajı paylaş: Yeni proje!"
|
|
259
|
+
social-agent post "Mesaj" --platforms mastodon
|
|
207
260
|
|
|
208
|
-
|
|
261
|
+
Beğen / Takip et / Bağlantı isteği:
|
|
262
|
+
social-agent run x "şu tweeti beğen: https://x.com/user/status/123"
|
|
263
|
+
social-agent run x "şu kişiyi takip et: @username"
|
|
264
|
+
social-agent run linkedin "3 insana bağlantı isteği gönder"
|
|
209
265
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
npx tsx cli.ts login linkedin
|
|
266
|
+
Yeni aksiyon öğret:
|
|
267
|
+
social-agent learn "retweet yapmayı öğren" x
|
|
268
|
+
social-agent learn "yorum yapmayı öğren" linkedin
|
|
214
269
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
270
|
+
Geçmiş ve durum:
|
|
271
|
+
social-agent history
|
|
272
|
+
social-agent status
|
|
218
273
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
npx tsx cli.ts run x "şu tweeti beğen: URL"
|
|
274
|
+
Claude Code ile:
|
|
275
|
+
claude-social → çalışırken AI milestone'larda post önerir
|
|
276
|
+
/social → elle post oluştur (git + konuşma analizi)
|
|
223
277
|
|
|
224
278
|
Profil ayarlarını düzenle:
|
|
225
|
-
|
|
279
|
+
nano ~/.social-agent/social-mode-prompt.md
|
|
226
280
|
`);
|
|
227
281
|
}
|
|
228
282
|
|