social-agent-cli 1.0.2 → 1.0.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/bin/social-agent.js +55 -29
  2. package/package.json +1 -1
@@ -54,6 +54,23 @@ switch (command) {
54
54
  run("install.ts");
55
55
  break;
56
56
 
57
+ case "config":
58
+ case "--config": {
59
+ const promptFile = join(DATA_DIR, "social-mode-prompt.md");
60
+ const configFile = join(DATA_DIR, "config.json");
61
+ const target = args[0] === "api" ? configFile : promptFile;
62
+
63
+ if (!existsSync(target)) {
64
+ console.log(`Dosya bulunamadı: ${target}\nÖnce 'social-agent setup' çalıştır.`);
65
+ process.exit(1);
66
+ }
67
+
68
+ const editor = process.env.EDITOR || "nano";
69
+ const { spawnSync } = await import("node:child_process");
70
+ spawnSync(editor, [target], { stdio: "inherit" });
71
+ break;
72
+ }
73
+
57
74
  case "login":
58
75
  case "learn":
59
76
  case "run":
@@ -67,43 +84,52 @@ switch (command) {
67
84
  case undefined:
68
85
  case "--help":
69
86
  case "-h":
87
+ case "help":
70
88
  console.log(`
71
- social-agent - AI destekli sosyal medya otomasyon aracı
89
+ social-agent v1.0 - AI-powered social media automation
90
+
91
+ Setup:
92
+ social-agent setup First-time setup wizard
93
+ social-agent config Edit AI personality & preferences
94
+ social-agent config api Edit API keys (config.json)
95
+
96
+ Browser Platforms (X, LinkedIn, Instagram, Facebook):
97
+ social-agent login <platform> Select Chrome profile & verify login
98
+ social-agent learn "<task>" <platform> Teach AI a new action
99
+ social-agent run <platform> "<cmd>" Execute with natural language
72
100
 
73
- Kurulum:
74
- social-agent setup İlk kurulum (isim, profil, platformlar)
101
+ API Platforms (Mastodon, Bluesky, Telegram):
102
+ social-agent post "<text>" --platforms mastodon,bluesky
75
103
 
76
- Komutlar:
77
- social-agent login <platform> Chrome profil seç ve giriş yap
78
- social-agent learn "<görev>" <platform> AI ile aksiyon öğret
79
- social-agent run <platform> "<komut>" Doğal dil ile çalıştır
80
- social-agent post "<metin>" --platforms x,mastodon Post at
81
- social-agent status Bağlı platformları göster
82
- social-agent history Post geçmişi
104
+ Info:
105
+ social-agent status Show connected platforms
106
+ social-agent history Show action history
107
+ social-agent help This help message
83
108
 
84
- Örnekler:
85
- social-agent setup
109
+ Examples:
86
110
  social-agent login x
87
- social-agent learn "tweet beğenmeyi öğren" x
88
- social-agent run x "şu tweeti beğen: https://x.com/..."
89
- social-agent run linkedin "3 insana bağlantı isteği gönder"
90
- social-agent post "Yeni özellik!" --platforms x,mastodon
91
-
92
- Ayarlar:
93
- ~/.social-agent/ Data dizini
94
- ~/.social-agent/config.json Platform API ayarları
95
- ~/.social-agent/social-mode-prompt.md AI asistan profili (düzenlenebilir)
96
- ~/.social-agent/knowledge/ Platform bilgileri
97
- ~/.social-agent/maps/ Öğrenilmiş aksiyonlar
98
- ~/.social-agent/history.json Post geçmişi
99
-
100
- Claude Code entegrasyonu:
101
- claude-social Sosyal medya farkındalıklı mod
102
- /social Elle post oluştur
111
+ social-agent learn x → learn to post (default)
112
+ social-agent learn "learn to like tweets" x → learn liking
113
+ social-agent run x "like this tweet: https://..."
114
+ social-agent run x "like and retweet: https://..."
115
+ social-agent run linkedin "send 3 connection requests"
116
+ social-agent post "New feature!" --platforms mastodon
117
+
118
+ Data:
119
+ ~/.social-agent/ All data lives here
120
+ ~/.social-agent/social-mode-prompt.md AI personality (edit with: social-agent config)
121
+ ~/.social-agent/config.json API keys (edit with: social-agent config api)
122
+ ~/.social-agent/knowledge/ Platform knowledge files
123
+ ~/.social-agent/maps/ Learned action maps
124
+ ~/.social-agent/history.json Action log
125
+
126
+ Claude Code:
127
+ claude-social Social-aware mode (suggests posts at milestones)
128
+ /social Create post from current work context
103
129
  `);
104
130
  break;
105
131
 
106
132
  default:
107
- console.log(`Bilinmeyen komut: ${command}. --help ile kullanımı gör.`);
133
+ console.log(`Unknown command: ${command}\nRun 'social-agent help' for usage.`);
108
134
  process.exit(1);
109
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-agent-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI-powered social media agent - free APIs + browser automation with self-healing selectors",
5
5
  "type": "module",
6
6
  "bin": {