@@ -24,10 +24,10 @@ import (
2424 "github.com/spf13/cobra"
2525)
2626
27- const version = "0.1.15 "
27+ const version = "0.1.16 "
2828const defaultChromeExtensionID = "bgjoihaepiejlfjinojjfgokghnodnhd"
2929const chromeWebStoreUpdateURL = "https://clients2.google.com/service/update2/crx"
30- const offlineExtensionPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnBLT95WWVnHYH0pOBRH/eP+BWtlKVmLE/RHkERUTI2+PGDSQrbWVabmTw4CZ3yhjko04dijSX2Az8cnp65xh23Dh5mP5TCtiP9LexRFJokd8EsyeFdtKamMYr0hF1ZUc1/8ZpLnetAU65ZMB9VzHQBqpJWeUwuIvecgfRtGklDgJMjnvcq5J6pttZrzWrI/2B0BNufwsTQfEt7qLtDFPHXmUdtZfQbc2EfYFvkXLDAXicYviiocedrsAGIKUxpyQegobhUFL+tNLOuXKBpZlLFQn3xgm5CyGZwN6bueiV/S7reigVTKAMQ8BX0eacT22e8r0UzjsjkugeHOIonIvtQIDAQAB"
30+ const betaExtensionPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnBLT95WWVnHYH0pOBRH/eP+BWtlKVmLE/RHkERUTI2+PGDSQrbWVabmTw4CZ3yhjko04dijSX2Az8cnp65xh23Dh5mP5TCtiP9LexRFJokd8EsyeFdtKamMYr0hF1ZUc1/8ZpLnetAU65ZMB9VzHQBqpJWeUwuIvecgfRtGklDgJMjnvcq5J6pttZrzWrI/2B0BNufwsTQfEt7qLtDFPHXmUdtZfQbc2EfYFvkXLDAXicYviiocedrsAGIKUxpyQegobhUFL+tNLOuXKBpZlLFQn3xgm5CyGZwN6bueiV/S7reigVTKAMQ8BX0eacT22e8r0UzjsjkugeHOIonIvtQIDAQAB"
3131
3232func main () {
3333 if err := run (os .Args [1 :]); err != nil {
@@ -135,20 +135,19 @@ func newSetupCommand() *cobra.Command {
135135 cmd .Flags ().StringVar (& extensionID , "extension-id" , defaultChromeExtensionID , "Chrome extension id for allowed_origins" )
136136 cmd .Flags ().StringVar (& binaryPath , "path" , "" , "native host binary target for the stable host link" )
137137 cmd .Flags ().StringVar (& externalExtensionOutput , "external-extension-output" , "" , "Chrome external extension JSON output path" )
138- cmd .AddCommand (newSetupReleaseCommand ())
138+ cmd .AddCommand (newSetupBetaCommand ())
139139 return cmd
140140}
141141
142- func newSetupReleaseCommand () * cobra.Command {
142+ func newSetupBetaCommand () * cobra.Command {
143143 extensionID := defaultChromeExtensionID
144144 var binaryPath string
145145 var zipPath string
146146 var noOpen bool
147147 cmd := & cobra.Command {
148- Use : "release" ,
149- Aliases : []string {"offline" },
150- Short : "Register the native host and prepare the latest release extension" ,
151- Args : cobra .NoArgs ,
148+ Use : "beta" ,
149+ Short : "Register the native host and prepare the beta extension package" ,
150+ Args : cobra .NoArgs ,
152151 RunE : func (cmd * cobra.Command , _ []string ) error {
153152 resolvedZIPPath := zipPath
154153 if resolvedZIPPath == "" {
@@ -192,8 +191,8 @@ func newSetupReleaseCommand() *cobra.Command {
192191 }
193192 }
194193 status := detectBrowserExtension (host .DefaultSocketDir , 700 * time .Millisecond )
195- status .InstallCommand = "open-browser-use setup offline "
196- status .UpgradeCommand = "open-browser-use setup offline "
194+ status .InstallCommand = "open-browser-use setup beta "
195+ status .UpgradeCommand = "open-browser-use setup beta "
197196 return renderManualSetupResult (cmd .OutOrStdout (), manualSetupResult {
198197 NativeManifestPath : manifestPath ,
199198 ExtensionID : effectiveExtensionID ,
@@ -340,7 +339,7 @@ func renderStartupStatus(writer io.Writer) error {
340339 fmt .Fprintln (writer , "Next steps:" )
341340 if status .needsInstall () {
342341 fmt .Fprintf (writer , " 1. Install the browser extension: %s\n " , status .InstallCommand )
343- fmt .Fprintln (writer , " If the Chrome Web Store item is unavailable, use: open-browser-use setup offline " )
342+ fmt .Fprintln (writer , " If the Chrome Web Store item is unavailable, use: open-browser-use setup beta " )
344343 fmt .Fprintln (writer , " 2. Restart Chrome if it asks you to enable the extension." )
345344 fmt .Fprintln (writer , " 3. Verify the connection: open-browser-use info" )
346345 return nil
@@ -452,8 +451,8 @@ type detectedExtension struct {
452451
453452func detectInstalledChromeExtension () (detectedExtension , bool ) {
454453 candidates := []string {defaultChromeExtensionID }
455- if offlineID , err := extensionIDFromPublicKey (offlineExtensionPublicKey ); err == nil && offlineID != defaultChromeExtensionID {
456- candidates = append (candidates , offlineID )
454+ if betaID , err := extensionIDFromPublicKey (betaExtensionPublicKey ); err == nil && betaID != defaultChromeExtensionID {
455+ candidates = append (candidates , betaID )
457456 }
458457 var best detectedExtension
459458 for _ , extensionID := range candidates {
@@ -1390,7 +1389,7 @@ func pinUnpackedExtensionKey(manifestPath string) (string, error) {
13901389 }
13911390 key , _ := manifest ["key" ].(string )
13921391 if strings .TrimSpace (key ) == "" {
1393- key = offlineExtensionPublicKey
1392+ key = betaExtensionPublicKey
13941393 manifest ["key" ] = key
13951394 updated , err := json .MarshalIndent (manifest , "" , " " )
13961395 if err != nil {
0 commit comments