@hanzo/browser-extension 1.9.49 → 1.9.52
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/LICENSE +12 -0
- package/images/icon128.png +0 -0
- package/images/icon16.png +0 -0
- package/images/icon48.png +0 -0
- package/manifest.json +7 -57
- package/package.json +49 -33
- package/src/ai-worker.js +571 -0
- package/src/answer/AnswerEngine.tsx +385 -0
- package/src/answer/Composer.tsx +147 -0
- package/src/answer/Mark.tsx +14 -0
- package/src/answer/Models.tsx +118 -0
- package/src/answer/Rail.tsx +95 -0
- package/src/answer/Source.tsx +26 -0
- package/src/answer/Stories.tsx +27 -0
- package/src/answer/WidgetView.tsx +136 -0
- package/src/callback.html +17 -0
- package/src/icon128.png +0 -0
- package/src/icon16.png +0 -0
- package/src/icon32.png +0 -0
- package/src/icon48.png +0 -0
- package/src/manifest-firefox.json +85 -0
- package/src/manifest.json +84 -0
- package/src/newtab.css +997 -0
- package/src/newtab.html +13 -0
- package/src/onboarding.css +78 -0
- package/src/onboarding.html +45 -0
- package/src/package.json +41 -0
- package/src/popup.css +761 -0
- package/src/popup.html +405 -0
- package/src/sidebar.css +1752 -0
- package/src/sidebar.html +449 -0
- package/src/webgpu.d.ts +131 -0
- package/README.md +0 -43
- package/cli.js +0 -233
- package/content-script.js +0 -550
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Mark } from "./Mark.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The left rail: mark, new thread, links, sign-in.
|
|
6
|
+
*
|
|
7
|
+
* COLLAPSED IS AN ICON RAIL, NOT AN ABSENCE — the `collapsible="icon"` behaviour of
|
|
8
|
+
* @hanzo/ui primitives/sidebar. A collapsed rail still shows the brand and the way
|
|
9
|
+
* back; hiding it outright left the surface with no affordance at all.
|
|
10
|
+
*
|
|
11
|
+
* The labels are ALWAYS RENDERED and hidden in CSS, never branched on in JS, so the
|
|
12
|
+
* rail can widen without React re-rendering its contents.
|
|
13
|
+
*
|
|
14
|
+
* Collapse is an EXPLICIT, remembered choice — the rail never springs open under the
|
|
15
|
+
* pointer. That is the model console and hanzo.app both settled on, and while the
|
|
16
|
+
* rail opened on hover the mark had no job of its own and the collapse toggle was
|
|
17
|
+
* hidden, so hover was the ONLY way back: an affordance you cannot see. Collapsed,
|
|
18
|
+
* the mark IS the expand control. Presentational: every action is injected.
|
|
19
|
+
*/
|
|
20
|
+
export interface RailProps {
|
|
21
|
+
collapsed: boolean;
|
|
22
|
+
toggle: () => void;
|
|
23
|
+
newThread: () => void;
|
|
24
|
+
signIn: () => void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function Rail({ collapsed, toggle, newThread, signIn }: RailProps) {
|
|
28
|
+
return (
|
|
29
|
+
<aside className="ae-sidebar">
|
|
30
|
+
<div className="ae-side-top">
|
|
31
|
+
<button
|
|
32
|
+
className="ae-brand"
|
|
33
|
+
onClick={collapsed ? toggle : newThread}
|
|
34
|
+
title={collapsed ? "Expand sidebar" : "Hanzo"}
|
|
35
|
+
aria-label={collapsed ? "Expand sidebar" : "Hanzo"}
|
|
36
|
+
{...(collapsed ? { "aria-expanded": false } : {})}
|
|
37
|
+
>
|
|
38
|
+
<Mark size={22} />
|
|
39
|
+
<span>Hanzo</span>
|
|
40
|
+
</button>
|
|
41
|
+
<button
|
|
42
|
+
className="ae-collapse"
|
|
43
|
+
onClick={toggle}
|
|
44
|
+
title={collapsed ? "Expand sidebar" : "Collapse sidebar"}
|
|
45
|
+
aria-label={collapsed ? "Expand sidebar" : "Collapse sidebar"}
|
|
46
|
+
aria-expanded={!collapsed}
|
|
47
|
+
>
|
|
48
|
+
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">
|
|
49
|
+
<path
|
|
50
|
+
d="M6 3v10M3 3h10v10H3z"
|
|
51
|
+
fill="none"
|
|
52
|
+
stroke="currentColor"
|
|
53
|
+
strokeWidth="1.3"
|
|
54
|
+
/>
|
|
55
|
+
</svg>
|
|
56
|
+
</button>
|
|
57
|
+
</div>
|
|
58
|
+
<button className="ae-new" onClick={newThread} title="New thread">
|
|
59
|
+
<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true">
|
|
60
|
+
<path
|
|
61
|
+
d="M8 3v10M3 8h10"
|
|
62
|
+
fill="none"
|
|
63
|
+
stroke="currentColor"
|
|
64
|
+
strokeWidth="1.5"
|
|
65
|
+
/>
|
|
66
|
+
</svg>
|
|
67
|
+
<span>New thread</span>
|
|
68
|
+
</button>
|
|
69
|
+
<nav className="ae-nav">
|
|
70
|
+
<a href="https://hanzo.chat" target="_blank" rel="noreferrer">
|
|
71
|
+
Threads
|
|
72
|
+
</a>
|
|
73
|
+
<a href="https://docs.hanzo.ai" target="_blank" rel="noreferrer">
|
|
74
|
+
Docs
|
|
75
|
+
</a>
|
|
76
|
+
<a href="https://hanzo.ai" target="_blank" rel="noreferrer">
|
|
77
|
+
About
|
|
78
|
+
</a>
|
|
79
|
+
</nav>
|
|
80
|
+
<div className="ae-side-bottom">
|
|
81
|
+
<button className="ae-signin" onClick={signIn} title="Sign in">
|
|
82
|
+
<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true">
|
|
83
|
+
<path
|
|
84
|
+
d="M6 3H3v10h3M10 5l3 3-3 3M13 8H6"
|
|
85
|
+
fill="none"
|
|
86
|
+
stroke="currentColor"
|
|
87
|
+
strokeWidth="1.4"
|
|
88
|
+
/>
|
|
89
|
+
</svg>
|
|
90
|
+
<span className="ae-signin-label">Sign in — free to start</span>
|
|
91
|
+
</button>
|
|
92
|
+
</div>
|
|
93
|
+
</aside>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SearchSource } from '@hanzo/ai';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One cited source, numbered to match its marker in the answer body.
|
|
6
|
+
* Falls back to the raw URL when the host will not parse, and to a dot when the
|
|
7
|
+
* site serves no favicon — a citation always renders.
|
|
8
|
+
*/
|
|
9
|
+
export function Source({ source, index }: { source: SearchSource; index: number }) {
|
|
10
|
+
let host: string;
|
|
11
|
+
try {
|
|
12
|
+
host = new URL(source.url).hostname.replace(/^www\./, '');
|
|
13
|
+
} catch {
|
|
14
|
+
host = source.url;
|
|
15
|
+
}
|
|
16
|
+
return (
|
|
17
|
+
<a className="ae-source" href={source.url} target="_blank" rel="noreferrer" title={source.title}>
|
|
18
|
+
<span className="ae-source-head">
|
|
19
|
+
<span className="ae-source-idx">{index + 1}</span>
|
|
20
|
+
{source.favicon ? <img src={source.favicon} alt="" width="14" height="14" /> : <span className="ae-dot" />}
|
|
21
|
+
<span className="ae-source-host">{host}</span>
|
|
22
|
+
</span>
|
|
23
|
+
<span className="ae-source-title">{source.title}</span>
|
|
24
|
+
</a>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NewsItem } from './news.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Top stories — the idle state of the answer surface. Renders nothing at all
|
|
6
|
+
* when the feed is empty, so a failed fetch leaves a clean page rather than an
|
|
7
|
+
* empty frame.
|
|
8
|
+
*/
|
|
9
|
+
export function Stories({ items, limit = 6 }: { items: NewsItem[]; limit?: number }) {
|
|
10
|
+
if (!items.length) return null;
|
|
11
|
+
return (
|
|
12
|
+
<div className="ae-news">
|
|
13
|
+
<div className="ae-news-head">Top stories</div>
|
|
14
|
+
<div className="ae-news-grid">
|
|
15
|
+
{items.slice(0, limit).map((n) => (
|
|
16
|
+
<a key={n.url} className="ae-news-item" href={n.url} target="_blank" rel="noreferrer">
|
|
17
|
+
<span className="ae-news-title">{n.title}</span>
|
|
18
|
+
<span className="ae-news-meta">
|
|
19
|
+
{n.source}
|
|
20
|
+
{typeof n.points === 'number' ? ` · ${n.points} pts` : ''}
|
|
21
|
+
</span>
|
|
22
|
+
</a>
|
|
23
|
+
))}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Widget } from './widget.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Renders a generative result widget.
|
|
6
|
+
*
|
|
7
|
+
* NAMED WidgetView, not Widget, because widget.ts sits beside it and macOS is
|
|
8
|
+
* case-insensitive: `./Widget.js` resolves to `widget.ts` there, so the schema
|
|
9
|
+
* module shadowed this one and the build failed on a missing export. Two modules
|
|
10
|
+
* in one directory differing only by case cannot both be imported.
|
|
11
|
+
*
|
|
12
|
+
* Presentational and total: every kind in the union has a branch, and every value
|
|
13
|
+
* arrives as a React child, so it is ESCAPED by construction. There is no
|
|
14
|
+
* dangerouslySetInnerHTML here and there must never be one — the content is written
|
|
15
|
+
* by a model that reads the open web, so treating any of it as markup hands whoever
|
|
16
|
+
* wrote that web page a path into this extension's origin.
|
|
17
|
+
*/
|
|
18
|
+
export function WidgetView({ widget }: { widget: Widget }) {
|
|
19
|
+
switch (widget.kind) {
|
|
20
|
+
case 'comparison':
|
|
21
|
+
return (
|
|
22
|
+
<section className="ae-widget ae-widget-comparison">
|
|
23
|
+
{widget.title && <h3 className="ae-widget-title">{widget.title}</h3>}
|
|
24
|
+
{/* Its own scroll container: a wide table must never make the PAGE
|
|
25
|
+
scroll sideways. */}
|
|
26
|
+
<div className="ae-widget-scroll">
|
|
27
|
+
<table className="ae-widget-table">
|
|
28
|
+
<thead>
|
|
29
|
+
<tr>
|
|
30
|
+
{widget.columns.map((c, i) => (
|
|
31
|
+
<th key={i} scope={i === 0 ? 'row' : 'col'}>
|
|
32
|
+
{c}
|
|
33
|
+
</th>
|
|
34
|
+
))}
|
|
35
|
+
</tr>
|
|
36
|
+
</thead>
|
|
37
|
+
<tbody>
|
|
38
|
+
{widget.rows.map((row, i) => (
|
|
39
|
+
<tr key={i}>
|
|
40
|
+
{row.map((cell, j) =>
|
|
41
|
+
j === 0 ? (
|
|
42
|
+
<th key={j} scope="row">
|
|
43
|
+
{cell}
|
|
44
|
+
</th>
|
|
45
|
+
) : (
|
|
46
|
+
<td key={j}>{cell}</td>
|
|
47
|
+
),
|
|
48
|
+
)}
|
|
49
|
+
</tr>
|
|
50
|
+
))}
|
|
51
|
+
</tbody>
|
|
52
|
+
</table>
|
|
53
|
+
</div>
|
|
54
|
+
</section>
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
case 'steps':
|
|
58
|
+
return (
|
|
59
|
+
<section className="ae-widget ae-widget-steps">
|
|
60
|
+
{widget.title && <h3 className="ae-widget-title">{widget.title}</h3>}
|
|
61
|
+
<ol className="ae-widget-steplist">
|
|
62
|
+
{widget.steps.map((s, i) => (
|
|
63
|
+
<li key={i}>{s}</li>
|
|
64
|
+
))}
|
|
65
|
+
</ol>
|
|
66
|
+
</section>
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
case 'stats':
|
|
70
|
+
return (
|
|
71
|
+
<section className="ae-widget ae-widget-stats">
|
|
72
|
+
{widget.title && <h3 className="ae-widget-title">{widget.title}</h3>}
|
|
73
|
+
<div className="ae-widget-statgrid">
|
|
74
|
+
{widget.stats.map((s, i) => (
|
|
75
|
+
<div className="ae-widget-stat" key={i}>
|
|
76
|
+
<span className="ae-widget-statvalue">{s.value}</span>
|
|
77
|
+
<span className="ae-widget-statlabel">{s.label}</span>
|
|
78
|
+
</div>
|
|
79
|
+
))}
|
|
80
|
+
</div>
|
|
81
|
+
</section>
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
case 'timeline':
|
|
85
|
+
return (
|
|
86
|
+
<section className="ae-widget ae-widget-timeline">
|
|
87
|
+
{widget.title && <h3 className="ae-widget-title">{widget.title}</h3>}
|
|
88
|
+
<ol className="ae-widget-events">
|
|
89
|
+
{widget.events.map((e, i) => (
|
|
90
|
+
<li key={i}>
|
|
91
|
+
<span className="ae-widget-when">{e.when}</span>
|
|
92
|
+
<span className="ae-widget-what">{e.what}</span>
|
|
93
|
+
</li>
|
|
94
|
+
))}
|
|
95
|
+
</ol>
|
|
96
|
+
</section>
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
case 'entity':
|
|
100
|
+
return (
|
|
101
|
+
<section className="ae-widget ae-widget-entity">
|
|
102
|
+
<h3 className="ae-widget-title">{widget.title}</h3>
|
|
103
|
+
{widget.subtitle && <p className="ae-widget-subtitle">{widget.subtitle}</p>}
|
|
104
|
+
<dl className="ae-widget-facts">
|
|
105
|
+
{widget.facts.map((f, i) => (
|
|
106
|
+
<React.Fragment key={i}>
|
|
107
|
+
<dt>{f.label}</dt>
|
|
108
|
+
<dd>{f.value}</dd>
|
|
109
|
+
</React.Fragment>
|
|
110
|
+
))}
|
|
111
|
+
</dl>
|
|
112
|
+
</section>
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
case 'definition':
|
|
116
|
+
return (
|
|
117
|
+
<section className="ae-widget ae-widget-definition">
|
|
118
|
+
<h3 className="ae-widget-title">{widget.term}</h3>
|
|
119
|
+
<p className="ae-widget-meaning">{widget.meaning}</p>
|
|
120
|
+
{widget.example && <pre className="ae-widget-example">{widget.example}</pre>}
|
|
121
|
+
</section>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** Renders every widget an answer produced, or nothing. */
|
|
127
|
+
export function Widgets({ widgets }: { widgets: Widget[] }) {
|
|
128
|
+
if (!widgets.length) return null;
|
|
129
|
+
return (
|
|
130
|
+
<div className="ae-widgets">
|
|
131
|
+
{widgets.map((w, i) => (
|
|
132
|
+
<WidgetView key={i} widget={w} />
|
|
133
|
+
))}
|
|
134
|
+
</div>
|
|
135
|
+
);
|
|
136
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Hanzo AI — Signing in...</title>
|
|
6
|
+
<style>
|
|
7
|
+
body { background: #000; color: #fff; font-family: system-ui, sans-serif; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; }
|
|
8
|
+
.msg { text-align: center; opacity: 0.7; }
|
|
9
|
+
</style>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div class="msg">
|
|
13
|
+
<p>Signing in to Hanzo AI...</p>
|
|
14
|
+
<p><small>This tab will close automatically.</small></p>
|
|
15
|
+
</div>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/src/icon128.png
ADDED
|
Binary file
|
package/src/icon16.png
ADDED
|
Binary file
|
package/src/icon32.png
ADDED
|
Binary file
|
package/src/icon48.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Hanzo AI",
|
|
4
|
+
"version": "1.9.34",
|
|
5
|
+
"description": "AI answer engine, search, and dev assistant — Hanzo AI in a new tab, address-bar search, source-cited answers, realtime news, WebGPU AI, and MCP.",
|
|
6
|
+
"permissions": [
|
|
7
|
+
"activeTab",
|
|
8
|
+
"identity",
|
|
9
|
+
"storage",
|
|
10
|
+
"tabs",
|
|
11
|
+
"webNavigation",
|
|
12
|
+
"scripting",
|
|
13
|
+
"cookies",
|
|
14
|
+
"nativeMessaging",
|
|
15
|
+
"alarms"
|
|
16
|
+
],
|
|
17
|
+
"host_permissions": [
|
|
18
|
+
"http://localhost/*",
|
|
19
|
+
"https://localhost/*",
|
|
20
|
+
"https://claude.ai/*",
|
|
21
|
+
"https://chatgpt.com/*",
|
|
22
|
+
"<all_urls>"
|
|
23
|
+
],
|
|
24
|
+
"content_security_policy": {
|
|
25
|
+
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
|
|
26
|
+
},
|
|
27
|
+
"content_scripts": [
|
|
28
|
+
{
|
|
29
|
+
"matches": [
|
|
30
|
+
"<all_urls>"
|
|
31
|
+
],
|
|
32
|
+
"js": [
|
|
33
|
+
"content-script.js"
|
|
34
|
+
],
|
|
35
|
+
"run_at": "document_idle"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"background": {
|
|
39
|
+
"scripts": [
|
|
40
|
+
"background.js"
|
|
41
|
+
],
|
|
42
|
+
"type": "module"
|
|
43
|
+
},
|
|
44
|
+
"action": {
|
|
45
|
+
"default_popup": "popup.html",
|
|
46
|
+
"default_icon": {
|
|
47
|
+
"16": "icon16.png",
|
|
48
|
+
"48": "icon48.png",
|
|
49
|
+
"128": "icon128.png"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"chrome_url_overrides": {
|
|
53
|
+
"newtab": "newtab.html"
|
|
54
|
+
},
|
|
55
|
+
"omnibox": {
|
|
56
|
+
"keyword": "hanzo"
|
|
57
|
+
},
|
|
58
|
+
"sidebar_action": {
|
|
59
|
+
"default_title": "Hanzo AI",
|
|
60
|
+
"default_panel": "sidebar.html",
|
|
61
|
+
"default_icon": {
|
|
62
|
+
"16": "icon16.png",
|
|
63
|
+
"48": "icon48.png"
|
|
64
|
+
},
|
|
65
|
+
"open_at_install": false
|
|
66
|
+
},
|
|
67
|
+
"web_accessible_resources": [
|
|
68
|
+
{
|
|
69
|
+
"resources": [
|
|
70
|
+
"ai-worker.js",
|
|
71
|
+
"models/*"
|
|
72
|
+
],
|
|
73
|
+
"matches": [
|
|
74
|
+
"<all_urls>"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"browser_specific_settings": {
|
|
79
|
+
"gecko": {
|
|
80
|
+
"id": "hanzo-ai@hanzo.ai",
|
|
81
|
+
"strict_min_version": "109.0"
|
|
82
|
+
},
|
|
83
|
+
"gecko_android": {}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Hanzo AI",
|
|
4
|
+
"version": "1.9.34",
|
|
5
|
+
"description": "AI answer engine, search, and dev assistant — Hanzo AI in a new tab, address-bar search, source-cited answers, realtime news, WebGPU AI, and MCP.",
|
|
6
|
+
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxfXGh0lPUT5m04GKfjUwrLsV6pLaK3VcZuFRPogqAir2tzyLYnQPRtHynue9yvDyguIVnlkwvcwfDOYZrvH76zbw4s6onPBG8HqTKO6LQ9K3kdO1qBBkMMjdOgULQ1MrWThEbpU7NSTiwLYpEta/jAvrKRCAeKIlQE8p6htZmPy9aRUZuae66JgLcAlzD2vviX9sVB1asFABJVswL1RgZ55/8IzZaUrFjzOo9OHK4hmEOtudzkML+5silsAYdC+1BZugph2x94ai17YmZTCL1XyUa5Ke4q80cj+i9rOTgzhZs+mruyhL/AvNVOXilsgqCdNqSz77naWzC3pVGbxOewIDAQAB",
|
|
7
|
+
"permissions": [
|
|
8
|
+
"activeTab",
|
|
9
|
+
"identity",
|
|
10
|
+
"storage",
|
|
11
|
+
"tabs",
|
|
12
|
+
"webNavigation",
|
|
13
|
+
"scripting",
|
|
14
|
+
"cookies",
|
|
15
|
+
"debugger",
|
|
16
|
+
"alarms",
|
|
17
|
+
"nativeMessaging"
|
|
18
|
+
],
|
|
19
|
+
"host_permissions": [
|
|
20
|
+
"http://localhost/*",
|
|
21
|
+
"https://localhost/*",
|
|
22
|
+
"https://claude.ai/*",
|
|
23
|
+
"https://chatgpt.com/*",
|
|
24
|
+
"<all_urls>"
|
|
25
|
+
],
|
|
26
|
+
"content_security_policy": {
|
|
27
|
+
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
|
|
28
|
+
},
|
|
29
|
+
"content_scripts": [
|
|
30
|
+
{
|
|
31
|
+
"matches": [
|
|
32
|
+
"<all_urls>"
|
|
33
|
+
],
|
|
34
|
+
"js": [
|
|
35
|
+
"content-script.js"
|
|
36
|
+
],
|
|
37
|
+
"run_at": "document_idle"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"background": {
|
|
41
|
+
"service_worker": "background.js",
|
|
42
|
+
"type": "module"
|
|
43
|
+
},
|
|
44
|
+
"action": {
|
|
45
|
+
"default_popup": "popup.html",
|
|
46
|
+
"default_icon": {
|
|
47
|
+
"16": "icon16.png",
|
|
48
|
+
"48": "icon48.png",
|
|
49
|
+
"128": "icon128.png"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"icons": {
|
|
53
|
+
"16": "icon16.png",
|
|
54
|
+
"48": "icon48.png",
|
|
55
|
+
"128": "icon128.png"
|
|
56
|
+
},
|
|
57
|
+
"omnibox": {
|
|
58
|
+
"keyword": "hanzo"
|
|
59
|
+
},
|
|
60
|
+
"chrome_url_overrides": {
|
|
61
|
+
"newtab": "newtab.html"
|
|
62
|
+
},
|
|
63
|
+
"chrome_settings_overrides": {
|
|
64
|
+
"search_provider": {
|
|
65
|
+
"name": "Hanzo",
|
|
66
|
+
"keyword": "hanzo",
|
|
67
|
+
"search_url": "https://hanzo.chat/?q={searchTerms}",
|
|
68
|
+
"favicon_url": "https://hanzo.ai/favicon.ico",
|
|
69
|
+
"encoding": "UTF-8",
|
|
70
|
+
"is_default": true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"web_accessible_resources": [
|
|
74
|
+
{
|
|
75
|
+
"resources": [
|
|
76
|
+
"ai-worker.js",
|
|
77
|
+
"models/*"
|
|
78
|
+
],
|
|
79
|
+
"matches": [
|
|
80
|
+
"<all_urls>"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|