Skip to content

Commit 8d7644c

Browse files
authored
chore: sync extension files from sentience-chrome v2.0.3
1 parent 907d3c9 commit 8d7644c

File tree

6 files changed

+204
-206
lines changed

6 files changed

+204
-206
lines changed

latest_release.json

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
2-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/272959448",
3-
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/272959448/assets",
4-
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/272959448/assets{?name,label}",
5-
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.0.2",
6-
"id": 272959448,
2+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273025127",
3+
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273025127/assets",
4+
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273025127/assets{?name,label}",
5+
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.0.3",
6+
"id": 273025127,
77
"author": {
8-
"login": "github-actions[bot]",
9-
"id": 41898282,
10-
"node_id": "MDM6Qm90NDE4OTgyODI=",
11-
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
8+
"login": "rcholic",
9+
"id": 135060,
10+
"node_id": "MDQ6VXNlcjEzNTA2MA==",
11+
"avatar_url": "https://avatars.githubusercontent.com/u/135060?v=4",
1212
"gravatar_id": "",
13-
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
14-
"html_url": "https://github.com/apps/github-actions",
15-
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
16-
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
17-
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
18-
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
19-
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
20-
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
21-
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
22-
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
23-
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
24-
"type": "Bot",
13+
"url": "https://api.github.com/users/rcholic",
14+
"html_url": "https://github.com/rcholic",
15+
"followers_url": "https://api.github.com/users/rcholic/followers",
16+
"following_url": "https://api.github.com/users/rcholic/following{/other_user}",
17+
"gists_url": "https://api.github.com/users/rcholic/gists{/gist_id}",
18+
"starred_url": "https://api.github.com/users/rcholic/starred{/owner}{/repo}",
19+
"subscriptions_url": "https://api.github.com/users/rcholic/subscriptions",
20+
"organizations_url": "https://api.github.com/users/rcholic/orgs",
21+
"repos_url": "https://api.github.com/users/rcholic/repos",
22+
"events_url": "https://api.github.com/users/rcholic/events{/privacy}",
23+
"received_events_url": "https://api.github.com/users/rcholic/received_events",
24+
"type": "User",
2525
"user_view_type": "public",
2626
"site_admin": false
2727
},
28-
"node_id": "RE_kwDOQshiJ84QRQfY",
29-
"tag_name": "v2.0.2",
28+
"node_id": "RE_kwDOQshiJ84QRghn",
29+
"tag_name": "v2.0.3",
3030
"target_commitish": "main",
31-
"name": "Release v2.0.2",
31+
"name": "Release v2.0.3",
3232
"draft": false,
3333
"immutable": false,
3434
"prerelease": false,
3535
"created_at": "2025-12-27T01:12:14Z",
36-
"updated_at": "2025-12-27T01:13:47Z",
37-
"published_at": "2025-12-27T01:13:15Z",
36+
"updated_at": "2025-12-27T22:46:31Z",
37+
"published_at": "2025-12-27T22:46:13Z",
3838
"assets": [
3939
{
40-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333313919",
41-
"id": 333313919,
42-
"node_id": "RA_kwDOQshiJ84T3fd_",
40+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333567799",
41+
"id": 333567799,
42+
"node_id": "RA_kwDOQshiJ84T4dc3",
4343
"name": "extension-files.tar.gz",
4444
"label": "",
4545
"uploader": {
@@ -65,17 +65,17 @@
6565
},
6666
"content_type": "application/gzip",
6767
"state": "uploaded",
68-
"size": 73449,
69-
"digest": "sha256:679e004e2be6d7ccab6030b2437353aeab74f0e5882608c3b38048ecffecff82",
70-
"download_count": 2,
71-
"created_at": "2025-12-27T01:13:16Z",
72-
"updated_at": "2025-12-27T01:13:16Z",
73-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.2/extension-files.tar.gz"
68+
"size": 73434,
69+
"digest": "sha256:ca93cdaf875792eb22333f7ba5b13dd129552f388900e624422e73959338d8fb",
70+
"download_count": 0,
71+
"created_at": "2025-12-27T22:46:31Z",
72+
"updated_at": "2025-12-27T22:46:31Z",
73+
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.3/extension-files.tar.gz"
7474
},
7575
{
76-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333313918",
77-
"id": 333313918,
78-
"node_id": "RA_kwDOQshiJ84T3fd-",
76+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333567800",
77+
"id": 333567800,
78+
"node_id": "RA_kwDOQshiJ84T4dc4",
7979
"name": "extension-package.zip",
8080
"label": "",
8181
"uploader": {
@@ -101,16 +101,15 @@
101101
},
102102
"content_type": "application/zip",
103103
"state": "uploaded",
104-
"size": 75594,
105-
"digest": "sha256:e44d1c2d30ada8912df9b1fe3c96a69b9a74a9c6bf89f7c21397d07ec75dda9c",
104+
"size": 75584,
105+
"digest": "sha256:291750ec174d9aadade298d2a2aa1057d08a138e2650c97cd93d56b6bcbee713",
106106
"download_count": 0,
107-
"created_at": "2025-12-27T01:13:16Z",
108-
"updated_at": "2025-12-27T01:13:16Z",
109-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.2/extension-package.zip"
107+
"created_at": "2025-12-27T22:46:31Z",
108+
"updated_at": "2025-12-27T22:46:31Z",
109+
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.3/extension-package.zip"
110110
}
111111
],
112-
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.0.2",
113-
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.0.2",
114-
"body": "## What's Changed\r\n* Close gaps during migration from Servo + Chrome to extension migrations by @rcholic in https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/pull/17\r\n\r\n\r\n**Full Changelog**: https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/compare/v2.0.1...v2.0.2",
115-
"mentions_count": 1
112+
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.0.3",
113+
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.0.3",
114+
"body": ""
116115
}

sentience/extension/background.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ async function handleScreenshotCapture(_tabId, options = {}) {
144144
async function handleSnapshotProcessing(rawData, options = {}) {
145145
const MAX_ELEMENTS = 10000; // Safety limit to prevent hangs
146146
const startTime = performance.now();
147-
147+
148148
try {
149149
// Safety check: limit element count to prevent hangs
150150
if (!Array.isArray(rawData)) {
151151
throw new Error('rawData must be an array');
152152
}
153-
153+
154154
if (rawData.length > MAX_ELEMENTS) {
155155
console.warn(`[Sentience Background] ⚠️ Large dataset: ${rawData.length} elements. Limiting to ${MAX_ELEMENTS} to prevent hangs.`);
156156
rawData = rawData.slice(0, MAX_ELEMENTS);
@@ -186,7 +186,7 @@ async function handleSnapshotProcessing(rawData, options = {}) {
186186
// Add timeout protection (18 seconds - less than content.js timeout)
187187
analyzedElements = await Promise.race([
188188
wasmPromise,
189-
new Promise((_, reject) =>
189+
new Promise((_, reject) =>
190190
setTimeout(() => reject(new Error('WASM processing timeout (>18s)')), 18000)
191191
)
192192
]);

sentience/extension/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function handleSnapshotRequest(data) {
8484
if (responded) return; // Already responded via timeout
8585
responded = true;
8686
clearTimeout(timeoutId);
87-
87+
8888
const duration = performance.now() - startTime;
8989

9090
// Handle Chrome extension errors (e.g., background script crashed)

0 commit comments

Comments
 (0)