Skip to content

Commit cf27601

Browse files
authored
Merge pull request #55 from SentienceAPI/sync-extension-v2.0.2
Sync Extension: v2.0.2
2 parents 7291c9f + 4d31322 commit cf27601

File tree

7 files changed

+553
-68
lines changed

7 files changed

+553
-68
lines changed

sentience-chrome/content.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// content.js - ISOLATED WORLD (Bridge between Main World and Background)
22
console.log('[Sentience Bridge] Loaded.');
33

4+
// Detect if we're in a child frame (for iframe support)
5+
const isChildFrame = window !== window.top;
6+
if (isChildFrame) {
7+
console.log('[Sentience Bridge] Running in child frame:', window.location.href);
8+
}
9+
410
// 1. Pass Extension ID to Main World (So API knows where to find resources)
511
document.documentElement.dataset.sentienceExtensionId = chrome.runtime.id;
612

@@ -94,7 +100,7 @@ function handleSnapshotRequest(data) {
94100
}
95101

96102
if (response?.success) {
97-
// console.log(`[Sentience Bridge] ✓ WASM processing complete in ${duration.toFixed(1)}ms`);
103+
console.log(`[Sentience Bridge] ✓ WASM processing complete in ${duration.toFixed(1)}ms`);
98104
window.postMessage({
99105
type: 'SENTIENCE_SNAPSHOT_RESULT',
100106
requestId: data.requestId,

sentience-chrome/injected_api.js

Lines changed: 486 additions & 11 deletions
Large diffs are not rendered by default.

sentience-chrome/manifest.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Sentience Semantic Visual Grounding Extractor",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"description": "Extract semantic visual grounding data from web pages",
66
"permissions": ["activeTab", "scripting"],
77
"host_permissions": ["<all_urls>"],
@@ -19,13 +19,15 @@
1919
{
2020
"matches": ["<all_urls>"],
2121
"js": ["content.js"],
22-
"run_at": "document_start"
22+
"run_at": "document_start",
23+
"all_frames": true
2324
},
2425
{
2526
"matches": ["<all_urls>"],
2627
"js": ["injected_api.js"],
2728
"run_at": "document_idle",
28-
"world": "MAIN"
29+
"world": "MAIN",
30+
"all_frames": true
2931
}
3032
],
3133
"content_security_policy": {

sentience-chrome/release.json

Lines changed: 48 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/272846250",
3-
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/272846250/assets",
4-
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/272846250/assets{?name,label}",
5-
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.0.1",
6-
"id": 272846250,
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,
77
"author": {
8-
"login": "rcholic",
9-
"id": 135060,
10-
"node_id": "MDQ6VXNlcjEzNTA2MA==",
11-
"avatar_url": "https://avatars.githubusercontent.com/u/135060?v=4",
8+
"login": "github-actions[bot]",
9+
"id": 41898282,
10+
"node_id": "MDM6Qm90NDE4OTgyODI=",
11+
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
1212
"gravatar_id": "",
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",
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",
2525
"user_view_type": "public",
2626
"site_admin": false
2727
},
28-
"node_id": "RE_kwDOQshiJ84QQ02q",
29-
"tag_name": "v2.0.1",
28+
"node_id": "RE_kwDOQshiJ84QRQfY",
29+
"tag_name": "v2.0.2",
3030
"target_commitish": "main",
31-
"name": "Release v2.0.1",
31+
"name": "Release v2.0.2",
3232
"draft": false,
3333
"immutable": false,
3434
"prerelease": false,
35-
"created_at": "2025-12-26T04:24:57Z",
36-
"updated_at": "2025-12-26T04:32:21Z",
37-
"published_at": "2025-12-26T04:31:58Z",
35+
"created_at": "2025-12-27T01:12:14Z",
36+
"updated_at": "2025-12-27T01:13:47Z",
37+
"published_at": "2025-12-27T01:13:15Z",
3838
"assets": [
3939
{
40-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333048763",
41-
"id": 333048763,
42-
"node_id": "RA_kwDOQshiJ84T2eu7",
40+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333313919",
41+
"id": 333313919,
42+
"node_id": "RA_kwDOQshiJ84T3fd_",
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": 67295,
69-
"digest": "sha256:0ebbd7b8993470d2b9909cb39760816b0509becfd872826ff3dc0627a24d02f7",
70-
"download_count": 0,
71-
"created_at": "2025-12-26T04:32:21Z",
72-
"updated_at": "2025-12-26T04:32:21Z",
73-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.1/extension-files.tar.gz"
68+
"size": 73449,
69+
"digest": "sha256:679e004e2be6d7ccab6030b2437353aeab74f0e5882608c3b38048ecffecff82",
70+
"download_count": 3,
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"
7474
},
7575
{
76-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333048765",
77-
"id": 333048765,
78-
"node_id": "RA_kwDOQshiJ84T2eu9",
76+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333313918",
77+
"id": 333313918,
78+
"node_id": "RA_kwDOQshiJ84T3fd-",
7979
"name": "extension-package.zip",
8080
"label": "",
8181
"uploader": {
@@ -101,15 +101,16 @@
101101
},
102102
"content_type": "application/zip",
103103
"state": "uploaded",
104-
"size": 70262,
105-
"digest": "sha256:69d2acf2b358cfe35bf0697813f5e75be60ab54f88854e7e810c2d390f8f911d",
104+
"size": 75594,
105+
"digest": "sha256:e44d1c2d30ada8912df9b1fe3c96a69b9a74a9c6bf89f7c21397d07ec75dda9c",
106106
"download_count": 0,
107-
"created_at": "2025-12-26T04:32:21Z",
108-
"updated_at": "2025-12-26T04:32:21Z",
109-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.1/extension-package.zip"
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"
110110
}
111111
],
112-
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.0.1",
113-
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.0.1",
114-
"body": ""
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
115116
}

tests/tracing/agent-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ describe('Agent Integration with Tracing', () => {
3535
beforeEach(() => {
3636
// Clean up and recreate test directory
3737
if (fs.existsSync(testDir)) {
38-
fs.rmSync(testDir, { recursive: true });
38+
fs.rmSync(testDir, { recursive: true, force: true });
3939
}
4040
fs.mkdirSync(testDir, { recursive: true });
4141
});
4242

4343
afterEach(() => {
4444
// Clean up test directory
4545
if (fs.existsSync(testDir)) {
46-
fs.rmSync(testDir, { recursive: true });
46+
fs.rmSync(testDir, { recursive: true, force: true });
4747
}
4848
});
4949

tests/tracing/jsonl-sink.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ describe('JsonlTraceSink', () => {
1313
beforeEach(() => {
1414
// Clean up test directory
1515
if (fs.existsSync(testDir)) {
16-
fs.rmSync(testDir, { recursive: true });
16+
fs.rmSync(testDir, { recursive: true, force: true });
1717
}
1818
});
1919

2020
afterEach(() => {
2121
// Clean up test directory
2222
if (fs.existsSync(testDir)) {
23-
fs.rmSync(testDir, { recursive: true });
23+
fs.rmSync(testDir, { recursive: true, force: true });
2424
}
2525
});
2626

tests/tracing/tracer.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ describe('Tracer', () => {
1616
beforeEach(() => {
1717
// Clean up and recreate test directory
1818
if (fs.existsSync(testDir)) {
19-
fs.rmSync(testDir, { recursive: true });
19+
fs.rmSync(testDir, { recursive: true, force: true });
2020
}
2121
fs.mkdirSync(testDir, { recursive: true });
2222
});
2323

2424
afterEach(() => {
2525
// Clean up test directory
26+
// Use force: true to handle Windows file locking issues
2627
if (fs.existsSync(testDir)) {
27-
fs.rmSync(testDir, { recursive: true });
28+
fs.rmSync(testDir, { recursive: true, force: true });
2829
}
2930
});
3031

0 commit comments

Comments
 (0)