@hanzo/browser-extension 1.9.35 → 1.9.46
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/dist/safari/Hanzo AI/Hanzo AI.xcodeproj/project.pbxproj +1059 -0
- package/dist/safari/Hanzo AI/Hanzo AI.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-128@1x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-128@2x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-16@1x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-16@2x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-256@1x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-256@2x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-32@1x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-32@2x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-512@1x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-512@2x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/AppIcon.appiconset/universal-icon-1024@1x.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/Contents.json +6 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/LargeIcon.imageset/Contents.json +21 -0
- package/dist/safari/Hanzo AI/Shared (App)/Assets.xcassets/LargeIcon.imageset/icon128.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Resources/Base.lproj/Main.html +20 -0
- package/dist/safari/Hanzo AI/Shared (App)/Resources/Icon.png +0 -0
- package/dist/safari/Hanzo AI/Shared (App)/Resources/Script.js +24 -0
- package/dist/safari/Hanzo AI/Shared (App)/Resources/Style.css +61 -0
- package/dist/safari/Hanzo AI/Shared (App)/ViewController.swift +81 -0
- package/dist/safari/Hanzo AI/Shared (Extension)/SafariWebExtensionHandler.swift +42 -0
- package/dist/safari/Hanzo AI/iOS (App)/AppDelegate.swift +24 -0
- package/dist/safari/Hanzo AI/iOS (App)/Base.lproj/LaunchScreen.storyboard +36 -0
- package/dist/safari/Hanzo AI/iOS (App)/Base.lproj/Main.storyboard +38 -0
- package/dist/safari/Hanzo AI/iOS (App)/Info.plist +27 -0
- package/dist/safari/Hanzo AI/iOS (App)/SceneDelegate.swift +18 -0
- package/dist/safari/Hanzo AI/iOS (Extension)/Info.plist +13 -0
- package/dist/safari/Hanzo AI/macOS (App)/AppDelegate.swift +21 -0
- package/dist/safari/Hanzo AI/macOS (App)/Base.lproj/Main.storyboard +124 -0
- package/dist/safari/Hanzo AI/macOS (App)/Info.plist +8 -0
- package/dist/safari/Hanzo AI/macOS (Extension)/Info.plist +13 -0
- package/package.json +20 -14
- package/src/answer/AnswerEngine.tsx +180 -348
- 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 +69 -0
- package/src/answer/Source.tsx +26 -0
- package/src/answer/Stories.tsx +27 -0
- package/src/answer/WidgetView.tsx +136 -0
- package/src/manifest.json +4 -1
- package/src/newtab.css +187 -35
- package/src/onboarding.css +78 -0
- package/src/onboarding.html +45 -0
- package/src/popup.html +29 -1
- package/src/sidebar.css +0 -40
- package/src/sidebar.html +5 -11
- package/LICENSE +0 -12
- package/src/chat-widget.tsx +0 -96
- package/src/gui-primitives.tsx +0 -116
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19085" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
|
|
3
|
+
<dependencies>
|
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19085"/>
|
|
5
|
+
<plugIn identifier="com.apple.WebKit2IBPlugin" version="19085"/>
|
|
6
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
7
|
+
</dependencies>
|
|
8
|
+
<scenes>
|
|
9
|
+
<!--Application-->
|
|
10
|
+
<scene sceneID="JPo-4y-FX3">
|
|
11
|
+
<objects>
|
|
12
|
+
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
|
13
|
+
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
|
|
14
|
+
<items>
|
|
15
|
+
<menuItem title="Hanzo AI" id="1Xt-HY-uBw">
|
|
16
|
+
<modifierMask key="keyEquivalentModifierMask"/>
|
|
17
|
+
<menu key="submenu" title="Hanzo AI" systemMenu="apple" id="uQy-DD-JDr">
|
|
18
|
+
<items>
|
|
19
|
+
<menuItem title="About Hanzo AI" id="5kV-Vb-QxS">
|
|
20
|
+
<modifierMask key="keyEquivalentModifierMask"/>
|
|
21
|
+
<connections>
|
|
22
|
+
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
|
|
23
|
+
</connections>
|
|
24
|
+
</menuItem>
|
|
25
|
+
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
|
|
26
|
+
<menuItem title="Hide Hanzo AI" keyEquivalent="h" id="Olw-nP-bQN">
|
|
27
|
+
<connections>
|
|
28
|
+
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
|
|
29
|
+
</connections>
|
|
30
|
+
</menuItem>
|
|
31
|
+
<menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO">
|
|
32
|
+
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
|
|
33
|
+
<connections>
|
|
34
|
+
<action selector="hideOtherApplications:" target="Ady-hI-5gd" id="VT4-aY-XCT"/>
|
|
35
|
+
</connections>
|
|
36
|
+
</menuItem>
|
|
37
|
+
<menuItem title="Show All" id="Kd2-mp-pUS">
|
|
38
|
+
<modifierMask key="keyEquivalentModifierMask"/>
|
|
39
|
+
<connections>
|
|
40
|
+
<action selector="unhideAllApplications:" target="Ady-hI-5gd" id="Dhg-Le-xox"/>
|
|
41
|
+
</connections>
|
|
42
|
+
</menuItem>
|
|
43
|
+
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
|
|
44
|
+
<menuItem title="Quit Hanzo AI" keyEquivalent="q" id="4sb-4s-VLi">
|
|
45
|
+
<connections>
|
|
46
|
+
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
|
|
47
|
+
</connections>
|
|
48
|
+
</menuItem>
|
|
49
|
+
</items>
|
|
50
|
+
</menu>
|
|
51
|
+
</menuItem>
|
|
52
|
+
<menuItem title="Help" id="wpr-3q-Mcd">
|
|
53
|
+
<modifierMask key="keyEquivalentModifierMask"/>
|
|
54
|
+
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
|
|
55
|
+
<items>
|
|
56
|
+
<menuItem title="Hanzo AI Help" keyEquivalent="?" id="FKE-Sm-Kum">
|
|
57
|
+
<connections>
|
|
58
|
+
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
|
|
59
|
+
</connections>
|
|
60
|
+
</menuItem>
|
|
61
|
+
</items>
|
|
62
|
+
</menu>
|
|
63
|
+
</menuItem>
|
|
64
|
+
</items>
|
|
65
|
+
</menu>
|
|
66
|
+
<connections>
|
|
67
|
+
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
|
|
68
|
+
</connections>
|
|
69
|
+
</application>
|
|
70
|
+
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModuleProvider="target"/>
|
|
71
|
+
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
|
|
72
|
+
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
73
|
+
</objects>
|
|
74
|
+
<point key="canvasLocation" x="76" y="-134"/>
|
|
75
|
+
</scene>
|
|
76
|
+
<!--Window Controller-->
|
|
77
|
+
<scene sceneID="R2V-B0-nI4">
|
|
78
|
+
<objects>
|
|
79
|
+
<windowController showSeguePresentationStyle="single" id="B8D-0N-5wS" sceneMemberID="viewController">
|
|
80
|
+
<window key="window" title="Hanzo AI" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" releasedWhenClosed="NO" animationBehavior="default" id="IQv-IB-iLA">
|
|
81
|
+
<windowStyleMask key="styleMask" titled="YES" closable="YES"/>
|
|
82
|
+
<windowCollectionBehavior key="collectionBehavior" fullScreenNone="YES"/>
|
|
83
|
+
<rect key="contentRect" x="196" y="240" width="425" height="325"/>
|
|
84
|
+
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
|
|
85
|
+
<connections>
|
|
86
|
+
<outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
|
|
87
|
+
</connections>
|
|
88
|
+
</window>
|
|
89
|
+
<connections>
|
|
90
|
+
<segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
|
|
91
|
+
</connections>
|
|
92
|
+
</windowController>
|
|
93
|
+
<customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
94
|
+
</objects>
|
|
95
|
+
<point key="canvasLocation" x="75" y="250"/>
|
|
96
|
+
</scene>
|
|
97
|
+
<!--View Controller-->
|
|
98
|
+
<scene sceneID="hIz-AP-VOD">
|
|
99
|
+
<objects>
|
|
100
|
+
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
|
101
|
+
<view key="view" id="m2S-Jp-Qdl">
|
|
102
|
+
<rect key="frame" x="0.0" y="0.0" width="425" height="325"/>
|
|
103
|
+
<autoresizingMask key="autoresizingMask"/>
|
|
104
|
+
<subviews>
|
|
105
|
+
<wkWebView wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eOr-cG-IQY">
|
|
106
|
+
<rect key="frame" x="0.0" y="0.0" width="425" height="325"/>
|
|
107
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
108
|
+
<wkWebViewConfiguration key="configuration">
|
|
109
|
+
<audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/>
|
|
110
|
+
<wkPreferences key="preferences"/>
|
|
111
|
+
</wkWebViewConfiguration>
|
|
112
|
+
</wkWebView>
|
|
113
|
+
</subviews>
|
|
114
|
+
</view>
|
|
115
|
+
<connections>
|
|
116
|
+
<outlet property="webView" destination="eOr-cG-IQY" id="GFe-mU-dBY"/>
|
|
117
|
+
</connections>
|
|
118
|
+
</viewController>
|
|
119
|
+
<customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
120
|
+
</objects>
|
|
121
|
+
<point key="canvasLocation" x="75" y="655"/>
|
|
122
|
+
</scene>
|
|
123
|
+
</scenes>
|
|
124
|
+
</document>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SFSafariWebExtensionConverterVersion</key>
|
|
6
|
+
<string>26.5</string>
|
|
7
|
+
</dict>
|
|
8
|
+
</plist>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSExtension</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>NSExtensionPointIdentifier</key>
|
|
8
|
+
<string>com.apple.Safari.web-extension</string>
|
|
9
|
+
<key>NSExtensionPrincipalClass</key>
|
|
10
|
+
<string>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</plist>
|
package/package.json
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/browser-extension",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.46",
|
|
4
4
|
"description": "Hanzo AI Browser Extension",
|
|
5
5
|
"main": "dist/background.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "node src/build.js",
|
|
8
|
+
"watch": "node src/build.js --watch",
|
|
9
|
+
"test": "vitest run",
|
|
10
|
+
"test:watch": "vitest",
|
|
11
|
+
"test:e2e": "playwright test --config=e2e/playwright.config.ts",
|
|
12
|
+
"check:bundle-budget": "node scripts/check-bundle-budgets.mjs"
|
|
13
|
+
},
|
|
6
14
|
"dependencies": {
|
|
7
|
-
"@hanzo/ai": "^0.
|
|
15
|
+
"@hanzo/ai": "^0.3.1",
|
|
16
|
+
"@hanzo/data": "^1.2.1",
|
|
17
|
+
"@hanzo/event": "^0.3.11",
|
|
18
|
+
"@hanzo/gui": "^7.3.0",
|
|
19
|
+
"@hanzo/ui": "^8.0.34",
|
|
8
20
|
"@hanzo/usage": "^0.1.6",
|
|
21
|
+
"@hanzogui/config": "^7.3.0",
|
|
9
22
|
"@supabase/supabase-js": "^2.50.3",
|
|
10
23
|
"axios": "^1.10.0",
|
|
11
24
|
"chalk": "^4.1.2",
|
|
12
25
|
"commander": "^11.1.0",
|
|
26
|
+
"react-native-web": "^0.21.2",
|
|
13
27
|
"webextension-polyfill": "0.12.0",
|
|
14
28
|
"ws": "^8.18.3"
|
|
15
29
|
},
|
|
@@ -21,8 +35,8 @@
|
|
|
21
35
|
"@types/ws": "^8.18.1",
|
|
22
36
|
"esbuild": "^0.25.8",
|
|
23
37
|
"jsdom": "^26.1.0",
|
|
24
|
-
"react": "^
|
|
25
|
-
"react-dom": "^
|
|
38
|
+
"react": "^19.2.8",
|
|
39
|
+
"react-dom": "^19.2.8",
|
|
26
40
|
"typescript": "^5.8.3",
|
|
27
41
|
"vitest": "^3.2.6",
|
|
28
42
|
"ws": "^8.18.3"
|
|
@@ -39,13 +53,5 @@
|
|
|
39
53
|
"src",
|
|
40
54
|
"images",
|
|
41
55
|
"manifest.json"
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
"build": "node src/build.js",
|
|
45
|
-
"watch": "node src/build.js --watch",
|
|
46
|
-
"test": "vitest run",
|
|
47
|
-
"test:watch": "vitest",
|
|
48
|
-
"test:e2e": "playwright test --config=e2e/playwright.config.ts",
|
|
49
|
-
"check:bundle-budget": "node scripts/check-bundle-budgets.mjs"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
56
|
+
]
|
|
57
|
+
}
|