social-agent-cli 3.0.0 → 3.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-agent-cli",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "AI-powered social media agent - free APIs + browser automation with self-healing selectors",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,7 +15,7 @@ export class BrowserDriver {
15
15
  constructor(private platform: string, private homeUrl: string) {}
16
16
 
17
17
  private cmd(command: string, timeout = 15000): string {
18
- const profileFlag = this.profilePath ? `--profile "${this.profilePath}"` : "";
18
+ const profileFlag = this.profilePath ? `--profile "${this.profilePath}" --headed` : "--auto-connect";
19
19
  try {
20
20
  return execSync(`agent-browser ${profileFlag} ${command}`, {
21
21
  encoding: "utf-8",
@@ -62,7 +62,9 @@ export class BrowserDriver {
62
62
  */
63
63
  async login(): Promise<void> {
64
64
  await this.setupProfile(true);
65
- this.cmd(`--headed open "${this.homeUrl}"`, 30000);
65
+ // Login için --profile ile --headed aç
66
+ const profileFlag = `--profile "${this.profilePath}" --headed`;
67
+ execSync(`agent-browser ${profileFlag} open "${this.homeUrl}"`, { stdio: "pipe", timeout: 30000 });
66
68
 
67
69
  console.log(`\n[${this.platform}] Tarayıcı açıldı: ${this.homeUrl}`);
68
70
  const { createInterface } = await import("node:readline");