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.
- package/install.ts +6 -14
- 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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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://${
|
|
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");
|