adspower-browser 2.1.7-beta.3 → 2.1.7-beta.4

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/README.MD CHANGED
@@ -320,3 +320,8 @@ Native API references: [Apple Keychain UI control](https://developer.apple.com/d
320
320
  Deploy the matching frontend to both the authorization site and the desktop renderer site.
321
321
  The native client must forward the complete protocol URL through renderer-scheme.
322
322
  The connector's unAuth maps to ads logout. Build/package locally before testing; local changes do not update npm.
323
+
324
+ WorkBuddy authorization opens `/auth-cli.html` on `--loginhost` (the origin). Deploy the matching
325
+ `mix_fe_plus/public/auth-cli.html` alongside `favicon.svg` before distributing this CLI build.
326
+ The standalone page attempts the client protocol once, offers a user-click retry and links to
327
+ the official download page. It does not load the login SPA or write login attribution storage.
package/cli/authWorker.js CHANGED
@@ -191,9 +191,9 @@ async function createLoginReceiver(origin, onKey, onAccepted) {
191
191
  });
192
192
  const address = server.address();
193
193
  if (!address || typeof address === "string") throw new Error("Invalid receiver address");
194
- const url = new URL("/login", origin);
194
+ const url = new URL("/auth-cli.html", origin);
195
195
  url.searchParams.set("source", "workbuddy");
196
- url.hash = new URLSearchParams({ workbuddy_port: String(address.port), workbuddy_state: state }).toString();
196
+ url.hash = new URLSearchParams({ workbuddy_port: String(address.port), workbuddy_state: state, workbuddy_expires: String(Date.now() + 3e5) }).toString();
197
197
  return { url: url.href, close: () => {
198
198
  server.close();
199
199
  server.closeAllConnections();
package/cli/index.js CHANGED
@@ -772,6 +772,7 @@ var LOCAL_API_CONTRACTS = {
772
772
  category_id: { apiName: "category_id", location: "body" },
773
773
  profile_tag_ids: { apiName: "profile_tag_ids", location: "body" },
774
774
  fingerprint_config: { apiName: "fingerprint_config", location: "body" },
775
+ random_fingerprint: { apiName: "random_fingerprint", location: "body" },
775
776
  platform_account: { apiName: "platform_account", location: "body" }
776
777
  }
777
778
  },
@@ -800,6 +801,7 @@ var LOCAL_API_CONTRACTS = {
800
801
  category_id: { apiName: "category_id", location: "body" },
801
802
  profile_tag_ids: { apiName: "profile_tag_ids", location: "body" },
802
803
  fingerprint_config: { apiName: "fingerprint_config", location: "body" },
804
+ random_fingerprint: { apiName: "random_fingerprint", location: "body" },
803
805
  platform_account: { apiName: "platform_account", location: "body" },
804
806
  launch_args: { apiName: "launch_args", location: "body" },
805
807
  tags_update_type: { apiName: "tags_update_type", location: "body" }
@@ -2738,6 +2740,7 @@ var schemas = {
2738
2740
  category_id: import_zod.z.string().optional().describe("The category id of the browser, you can use the get-application-list tool to get the application list"),
2739
2741
  profile_tag_ids: import_zod.z.array(import_zod.z.string()).max(30).optional().describe('Tag IDs to assign to the profile, max 30 tags per profile. Example: ["tag1","tag2"]'),
2740
2742
  fingerprint_config: fingerprintConfigSchema.optional().default({ browser_kernel_config: { version: "latest", type: "chrome" } }),
2743
+ random_fingerprint: import_zod.z.enum(["0", "1"]).optional().describe('Random fingerprint: "0" disabled (API default), "1" enabled. Top-level profile parameter.'),
2741
2744
  platform_account: platformAccountSchema
2742
2745
  }).strict(),
2743
2746
  updateBrowserSchema: import_zod.z.object({
@@ -2760,6 +2763,7 @@ var schemas = {
2760
2763
  user_proxy_config: userProxyConfigSchema.optional(),
2761
2764
  proxyid: import_zod.z.string().optional().describe("Proxy ID"),
2762
2765
  fingerprint_config: fingerprintConfigSchema.optional(),
2766
+ random_fingerprint: import_zod.z.enum(["0", "1"]).optional().describe('Random fingerprint: "0" disabled (API default), "1" enabled. Top-level profile parameter.'),
2763
2767
  launch_args: import_zod.z.string().optional().describe("Browser startup parameters"),
2764
2768
  profile_tag_ids: import_zod.z.array(import_zod.z.string()).max(30).optional().describe('Tag IDs to set on the profile, max 30 tags per profile. Example: ["tag1","tag2"]'),
2765
2769
  tags_update_type: import_zod.z.enum(["1", "2"]).optional().describe('How to apply profile_tag_ids: "1" (default) replace all existing tags; "2" append tags (truncated to 30 total if exceeded)'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adspower-browser",
3
- "version": "2.1.7-beta.3",
3
+ "version": "2.1.7-beta.4",
4
4
  "main": "cli/index.js",
5
5
  "type": "commonjs",
6
6
  "bin": {