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/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const status_1 = require("./status");
|
|
|
10
10
|
const showLogs_1 = require("./showLogs");
|
|
11
11
|
const showConfig_1 = require("./showConfig");
|
|
12
12
|
const setConfig_1 = require("./setConfig");
|
|
13
|
+
const grantBrowserAccess_1 = require("./grantBrowserAccess");
|
|
13
14
|
const program = new commander_1.Command();
|
|
14
15
|
program
|
|
15
16
|
.name('omnikey')
|
|
@@ -79,4 +80,18 @@ program
|
|
|
79
80
|
const port = Number(options.port) || 7071;
|
|
80
81
|
await (0, daemon_1.startDaemon)(port);
|
|
81
82
|
});
|
|
83
|
+
program
|
|
84
|
+
.command('grant-browser-access')
|
|
85
|
+
.description('Set up authenticated browser tab access for web fetch. ' +
|
|
86
|
+
'Detects installed browsers, selects a profile, and configures a remote debugging port (CDP). ' +
|
|
87
|
+
'On macOS you can also choose AppleScript mode instead.')
|
|
88
|
+
.action(async () => {
|
|
89
|
+
await (0, grantBrowserAccess_1.grantBrowserAccess)();
|
|
90
|
+
});
|
|
91
|
+
program
|
|
92
|
+
.command('browser open')
|
|
93
|
+
.description('Reopen the browser with the Omnikey debug profile')
|
|
94
|
+
.action(async () => {
|
|
95
|
+
await (0, grantBrowserAccess_1.reopenBrowserDebugProfile)();
|
|
96
|
+
});
|
|
82
97
|
program.parseAsync(process.argv);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.28",
|
|
8
8
|
"description": "CLI for onboarding users to Omnikey AI and configuring OPENAI_API_KEY. Use Yarn for install/build.",
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=14.0.0",
|
|
@@ -27,25 +27,26 @@
|
|
|
27
27
|
"author": "Gurinder Rawala",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"@anthropic-ai/sdk": "^0.80.0",
|
|
31
|
+
"@google-cloud/storage": "^7.19.0",
|
|
32
|
+
"@google/genai": "^1.46.0",
|
|
32
33
|
"axios": "^1.13.5",
|
|
34
|
+
"commander": "^11.0.0",
|
|
33
35
|
"cors": "^2.8.5",
|
|
34
36
|
"cuid": "^3.0.0",
|
|
35
37
|
"dotenv": "^17.2.3",
|
|
36
38
|
"express": "^4.21.2",
|
|
39
|
+
"inquirer": "^9.0.0",
|
|
37
40
|
"jsonwebtoken": "^9.0.3",
|
|
38
41
|
"openai": "^6.16.0",
|
|
39
|
-
"@anthropic-ai/sdk": "^0.80.0",
|
|
40
|
-
"@google/genai": "^1.46.0",
|
|
41
42
|
"pg": "^8.18.0",
|
|
42
43
|
"pg-hstore": "^2.3.4",
|
|
44
|
+
"playwright-core": "^1.50.0",
|
|
43
45
|
"sequelize": "^6.37.7",
|
|
44
46
|
"sqlite3": "^5.1.6",
|
|
45
47
|
"winston": "^3.19.0",
|
|
46
48
|
"ws": "^8.18.0",
|
|
47
|
-
"zod": "^4.3.6"
|
|
48
|
-
"playwright-core": "^1.50.0"
|
|
49
|
+
"zod": "^4.3.6"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/inquirer": "^9.0.9",
|