social-agent-cli 3.0.0 → 3.0.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.
package/package.json
CHANGED
|
@@ -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
|
-
|
|
65
|
+
// Login için --profile ile --headed aç
|
|
66
|
+
const profileFlag = `--profile "${this.profilePath}" --headed`;
|
|
67
|
+
execSync(`agent-browser ${profileFlag} open "${this.homeUrl}"`, { stdio: "inherit", 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");
|