social-agent-cli 1.3.0 → 1.4.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.
- package/bin/social-agent.js +2 -2
- package/cli.ts +1 -5
- package/config.example.json +3 -14
- package/core/config.ts +0 -8
- package/install.ts +0 -11
- package/package.json +2 -3
- package/knowledge/bluesky.md +0 -1083
- package/knowledge/facebook.md +0 -603
- package/knowledge/instagram.md +0 -686
- package/knowledge/telegram.md +0 -824
package/bin/social-agent.js
CHANGED
|
@@ -113,8 +113,8 @@ switch (command) {
|
|
|
113
113
|
social-agent learn "<task>" <platform> Teach AI a new action
|
|
114
114
|
social-agent run <platform> "<cmd>" Execute with natural language
|
|
115
115
|
|
|
116
|
-
API Platforms (Mastodon
|
|
117
|
-
social-agent post "<text>" --platforms mastodon
|
|
116
|
+
API Platforms (Mastodon):
|
|
117
|
+
social-agent post "<text>" --platforms mastodon
|
|
118
118
|
|
|
119
119
|
Info:
|
|
120
120
|
social-agent status Show connected platforms
|
package/cli.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MastodonDriver } from "./platforms/mastodon.js";
|
|
2
|
-
import { BlueskyDriver } from "./platforms/bluesky.js";
|
|
3
2
|
import { BrowserDriver } from "./platforms/browser/driver.js";
|
|
4
3
|
import { loadConfig } from "./core/config.js";
|
|
5
4
|
import { runCommand } from "./ai/runner.js";
|
|
@@ -18,7 +17,6 @@ function getAllDrivers(): PlatformDriver[] {
|
|
|
18
17
|
|
|
19
18
|
// API-based (ücretsiz)
|
|
20
19
|
if (config.mastodon) drivers.push(new MastodonDriver());
|
|
21
|
-
if (config.bluesky) drivers.push(new BlueskyDriver());
|
|
22
20
|
|
|
23
21
|
// Browser-based (ücretli platformlar)
|
|
24
22
|
for (const [name, url] of Object.entries(BROWSER_PLATFORMS)) {
|
|
@@ -137,8 +135,6 @@ async function cmdStatus() {
|
|
|
137
135
|
|
|
138
136
|
// API platformları - config'de varsa göster
|
|
139
137
|
if (config.mastodon) console.log(` 🔗 mastodon (api) → ${config.mastodon.instanceUrl}`);
|
|
140
|
-
if (config.bluesky) console.log(` 🔗 bluesky (api) → ${config.bluesky.identifier}`);
|
|
141
|
-
if (config.telegram) console.log(` 🔗 telegram (api)`);
|
|
142
138
|
|
|
143
139
|
// Browser platformları - sadece login olmuşları göster
|
|
144
140
|
for (const [name] of Object.entries(BROWSER_PLATFORMS)) {
|
|
@@ -148,7 +144,7 @@ async function cmdStatus() {
|
|
|
148
144
|
}
|
|
149
145
|
}
|
|
150
146
|
|
|
151
|
-
const hasAny = config.mastodon ||
|
|
147
|
+
const hasAny = config.mastodon ||
|
|
152
148
|
Object.keys(BROWSER_PLATFORMS).some(p => getSavedProfile(p));
|
|
153
149
|
|
|
154
150
|
if (!hasAny) {
|
package/config.example.json
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mastodon": {
|
|
3
|
-
"instanceUrl": "https://mastodon.
|
|
4
|
-
"accessToken": "
|
|
5
|
-
},
|
|
6
|
-
"bluesky": {
|
|
7
|
-
"identifier": "kullanici.bsky.social",
|
|
8
|
-
"password": "app-password-buraya"
|
|
9
|
-
},
|
|
10
|
-
"telegram": {
|
|
11
|
-
"botToken": "123456:ABC-DEF...",
|
|
12
|
-
"chatId": "@kanal_adi"
|
|
13
|
-
},
|
|
14
|
-
"browser": {
|
|
15
|
-
"headless": true
|
|
3
|
+
"instanceUrl": "https://mastodon.social",
|
|
4
|
+
"accessToken": "erişim-belirteciniz"
|
|
16
5
|
},
|
|
17
6
|
"claude": {
|
|
18
|
-
"model": "
|
|
7
|
+
"model": "opus"
|
|
19
8
|
}
|
|
20
9
|
}
|
package/core/config.ts
CHANGED
|
@@ -18,14 +18,6 @@ export interface Config {
|
|
|
18
18
|
instanceUrl: string;
|
|
19
19
|
accessToken: string;
|
|
20
20
|
};
|
|
21
|
-
bluesky?: {
|
|
22
|
-
identifier: string;
|
|
23
|
-
password: string;
|
|
24
|
-
};
|
|
25
|
-
telegram?: {
|
|
26
|
-
botToken: string;
|
|
27
|
-
chatId: string;
|
|
28
|
-
};
|
|
29
21
|
browser?: {
|
|
30
22
|
chromePath?: string;
|
|
31
23
|
headless?: boolean;
|
package/install.ts
CHANGED
|
@@ -114,17 +114,6 @@ Gönderme komutları (HER ZAMAN bu komutları kullan, asla cd veya npx tsx kulla
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
const blueskyId = await ask(rl, "Bluesky hesabın var mı? (handle veya email, yoksa boş bırak)");
|
|
118
|
-
if (blueskyId) {
|
|
119
|
-
const blueskyPass = await ask(rl, "Bluesky app password (bsky.app/settings/app-passwords)");
|
|
120
|
-
if (blueskyPass) {
|
|
121
|
-
config.bluesky = {
|
|
122
|
-
identifier: blueskyId,
|
|
123
|
-
password: blueskyPass,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
117
|
config.claude = { model: "opus" };
|
|
129
118
|
|
|
130
119
|
writeFileSync(configPath, JSON.stringify(config, null, 2));
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "social-agent-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "AI-powered social media agent - free APIs + browser automation with self-healing selectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"social-agent": "./bin/social-agent.js"
|
|
8
|
-
"sa": "./bin/social-agent.js"
|
|
7
|
+
"social-agent": "./bin/social-agent.js"
|
|
9
8
|
},
|
|
10
9
|
"scripts": {
|
|
11
10
|
"postinstall": "node bin/postinstall.js",
|