mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
Major changes: - Migrate browser-extension to use web-ui package (85% code reduction) - Add JailJS content script with ES6+ transform support - Expose DOM constructors (Event, KeyboardEvent, etc.) to JailJS - Support top-level await by wrapping code in async IIFE - Add returnFile() support in JailJS execution - Refactor KeyStore into pluggable storage-adapter pattern - Make ChatPanel configurable with sandboxUrlProvider and additionalTools - Update jailjs to 0.1.1 Files deleted (33 duplicate files): - All browser-extension components, dialogs, state, tools, utils - Now using web-ui versions via @mariozechner/pi-web-ui Files added: - packages/browser-extension/src/content.ts (JailJS content script) - packages/web-ui/src/state/storage-adapter.ts - packages/web-ui/src/state/key-store.ts Browser extension now has only 5 source files (down from 38).
47 lines
No EOL
1.3 KiB
JSON
47 lines
No EOL
1.3 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "pi-ai",
|
|
"description": "Use @mariozechner/pi-ai to summarize and highlight the page you are reading.",
|
|
"version": "0.5.43",
|
|
"action": {
|
|
"default_title": "Click to open side panel"
|
|
},
|
|
"background": {
|
|
"service_worker": "background.js",
|
|
"type": "module"
|
|
},
|
|
"icons": {
|
|
"16": "icon-16.png",
|
|
"48": "icon-48.png",
|
|
"128": "icon-128.png"
|
|
},
|
|
"side_panel": {
|
|
"default_path": "sidepanel.html"
|
|
},
|
|
"permissions": [
|
|
"storage",
|
|
"activeTab",
|
|
"sidePanel",
|
|
"scripting"
|
|
],
|
|
"host_permissions": [
|
|
"https://*/*",
|
|
"http://localhost/*",
|
|
"http://127.0.0.1/*"
|
|
],
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["https://*/*", "http://localhost/*", "http://127.0.0.1/*"],
|
|
"js": ["content.js"],
|
|
"run_at": "document_idle",
|
|
"all_frames": false
|
|
}
|
|
],
|
|
"sandbox": {
|
|
"pages": ["sandbox.html"]
|
|
},
|
|
"content_security_policy": {
|
|
"extension_pages": "script-src 'self'; object-src 'self'",
|
|
"sandbox": "sandbox allow-scripts allow-modals; script-src 'self' 'unsafe-inline' 'unsafe-eval' https: http:; script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' https: http:; connect-src * data: blob:; img-src * data: blob:; style-src 'self' 'unsafe-inline' https: http:; font-src * data:; worker-src blob:; child-src blob: https: http:; object-src 'none'"
|
|
}
|
|
} |