social-agent-cli 1.1.1 → 1.1.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.
@@ -60,16 +60,16 @@ switch (command) {
60
60
  case "--config": {
61
61
  const promptFile = join(DATA_DIR, "social-mode-prompt.md");
62
62
  const configFile = join(DATA_DIR, "config.json");
63
- const target = args[0] === "api" ? configFile : promptFile;
64
63
 
65
- if (!existsSync(target)) {
66
- console.log(`Dosya bulunamadı: ${target}\nÖnce 'social-agent setup' çalıştır.`);
67
- process.exit(1);
64
+ if (args[0] === "api") {
65
+ console.log(`\n API ayarları: ${configFile}\n`);
66
+ } else {
67
+ console.log(`\n AI profil ayarları: ${promptFile}`);
68
+ console.log(` API ayarları: ${configFile}`);
69
+ console.log(` Knowledge: ${join(DATA_DIR, "knowledge/")}`);
70
+ console.log(` Maps: ${join(DATA_DIR, "maps/")}`);
71
+ console.log(` History: ${join(DATA_DIR, "history.json")}\n`);
68
72
  }
69
-
70
- const editor = process.env.EDITOR || "nano";
71
- const { spawnSync } = await import("node:child_process");
72
- spawnSync(editor, [target], { stdio: "inherit" });
73
73
  break;
74
74
  }
75
75
 
@@ -83,6 +83,13 @@ switch (command) {
83
83
  run("cli.ts", [command, ...args]);
84
84
  break;
85
85
 
86
+ case "--version":
87
+ case "-v": {
88
+ const pkg = JSON.parse(readFileSync(join(PKG_DIR, "package.json"), "utf-8"));
89
+ console.log(`social-agent-cli v${pkg.version}`);
90
+ break;
91
+ }
92
+
86
93
  case undefined:
87
94
  case "--help":
88
95
  case "-h":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-agent-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "AI-powered social media agent - free APIs + browser automation with self-healing selectors",
5
5
  "type": "module",
6
6
  "bin": {