omnikey-cli 1.0.27 → 1.0.28
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/README.md +50 -0
- package/backend-dist/agent/agentServer.js +5 -1
- package/backend-dist/bucket-adapter/index.js +59 -0
- package/backend-dist/config.js +11 -0
- package/backend-dist/index.js +15 -2
- package/backend-dist/web-search/browser-playwright.js +191 -80
- package/backend-dist/web-search/web-search-provider.js +15 -7
- package/dist/grantBrowserAccess.js +789 -0
- package/dist/index.js +15 -0
- package/package.json +8 -7
- package/src/grantBrowserAccess.ts +936 -0
- package/src/index.ts +19 -0
package/src/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { statusCmd } from './status';
|
|
|
9
9
|
import { showLogs } from './showLogs';
|
|
10
10
|
import { showConfig } from './showConfig';
|
|
11
11
|
import { setConfig } from './setConfig';
|
|
12
|
+
import { grantBrowserAccess, reopenBrowserDebugProfile } from './grantBrowserAccess';
|
|
12
13
|
|
|
13
14
|
const program = new Command();
|
|
14
15
|
|
|
@@ -90,4 +91,22 @@ program
|
|
|
90
91
|
await startDaemon(port);
|
|
91
92
|
});
|
|
92
93
|
|
|
94
|
+
program
|
|
95
|
+
.command('grant-browser-access')
|
|
96
|
+
.description(
|
|
97
|
+
'Set up authenticated browser tab access for web fetch. ' +
|
|
98
|
+
'Detects installed browsers, selects a profile, and configures a remote debugging port (CDP). ' +
|
|
99
|
+
'On macOS you can also choose AppleScript mode instead.',
|
|
100
|
+
)
|
|
101
|
+
.action(async () => {
|
|
102
|
+
await grantBrowserAccess();
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
program
|
|
106
|
+
.command('browser open')
|
|
107
|
+
.description('Reopen the browser with the Omnikey debug profile')
|
|
108
|
+
.action(async () => {
|
|
109
|
+
await reopenBrowserDebugProfile();
|
|
110
|
+
});
|
|
111
|
+
|
|
93
112
|
program.parseAsync(process.argv);
|