vcorp-chrome 1.6.0 → 1.7.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/extension/cloud.js +3 -3
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
package/extension/cloud.js
CHANGED
|
@@ -242,7 +242,7 @@ export async function connect() {
|
|
|
242
242
|
const mounted = await folders.names().catch(() => []);
|
|
243
243
|
sock.send(JSON.stringify({
|
|
244
244
|
type: 'hello', v: 1, deviceId: cfg.deviceId, sig,
|
|
245
|
-
version: chrome.runtime.getManifest().version, sites: policy.cleanAllowList(cfg.sites), auto: !!cfg.auto,
|
|
245
|
+
version: chrome.runtime.getManifest().version, sites: policy.cleanAllowList(cfg.sites), auto: !!cfg.auto, autoConfirm: !!cfg.autoConfirm,
|
|
246
246
|
folders: mounted,
|
|
247
247
|
}));
|
|
248
248
|
} catch { try { sock.close(); } catch { /* 已经废了 */ } }
|
|
@@ -568,7 +568,7 @@ async function openMount(folderId = '') {
|
|
|
568
568
|
async function reportFolders() {
|
|
569
569
|
const mounted = await folders.names().catch(() => []);
|
|
570
570
|
const cfg = await getCfg();
|
|
571
|
-
if (cfg && ws?.readyState === 1) send({ type: 'config', sites: allowOf(cfg), auto: !!cfg.auto, folders: mounted });
|
|
571
|
+
if (cfg && ws?.readyState === 1) send({ type: 'config', sites: allowOf(cfg), auto: !!cfg.auto, autoConfirm: !!cfg.autoConfirm, folders: mounted });
|
|
572
572
|
await chrome.storage.session.set({ folderTick: Date.now() }).catch(() => {});
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -848,7 +848,7 @@ async function patchCfg(patch) {
|
|
|
848
848
|
const next = { ...rest, ...patch };
|
|
849
849
|
await setCfg(next);
|
|
850
850
|
const mounted = await folders.names().catch(() => []);
|
|
851
|
-
send({ type: 'config', sites: allowOf(next), auto: !!next.auto, folders: mounted });
|
|
851
|
+
send({ type: 'config', sites: allowOf(next), auto: !!next.auto, autoConfirm: !!next.autoConfirm, folders: mounted });
|
|
852
852
|
return next;
|
|
853
853
|
}
|
|
854
854
|
|
package/extension/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "vcorp-chrome",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"description": "让 AI agent 操控你已登录的 Chrome。基于花叔的 huashu-chrome(MIT)修改。",
|
|
6
6
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq6xRqEwG4yTuHRG1Zah3j//T3B72XnazyZ+9fOCa5P4bBLPmNBN7YAGL5WnjtPVJefXT9r2Ol0qvNztayDG3dMjK6AZoWccgKa5rhxcvWgFUjanXtmBBQ0qgYwNhuEJSkdinLLtyUg6YmK7Mn72NWpfa/NfqNHdK5AHslvvtJ50iQAYmabl2Nd3vOJ9DxtLBt8a2DfoGPWizgEB3+gkqm2PB8LywwwoiGKd7acr1wZEWmWK9/s0YWdzIstjlvk5AO5XFn6EtEzW8tAAOwBka9239pcyj0kEogWctHLJn7p9VFru38r+I1USyGn6u9XQ68n9edWddxBYokETCqEMT9QIDAQAB",
|
|
7
7
|
"minimum_chrome_version": "116",
|