@bctrl/cli 0.1.5 → 0.1.7
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 +15 -0
- package/README.md +109 -95
- package/dist/api/auth.d.ts +10 -1
- package/dist/api/auth.js +10 -1
- package/dist/api/client.d.ts +2 -1
- package/dist/api/client.js +37 -37
- package/dist/api/device-auth.d.ts +39 -0
- package/dist/api/device-auth.js +93 -0
- package/dist/api/errors.d.ts +1 -0
- package/dist/api/errors.js +8 -0
- package/dist/bin/bctrl.js +0 -0
- package/dist/commands/ai/index.js +10 -11
- package/dist/commands/api-key/index.js +3 -8
- package/dist/commands/auth/device-login.d.ts +6 -0
- package/dist/commands/auth/device-login.js +19 -0
- package/dist/commands/auth/login.d.ts +11 -0
- package/dist/commands/auth/login.js +140 -20
- package/dist/commands/auth/logout.d.ts +2 -0
- package/dist/commands/auth/logout.js +19 -2
- package/dist/commands/auth/status.d.ts +1 -0
- package/dist/commands/auth/status.js +22 -5
- package/dist/commands/auth/token.js +6 -0
- package/dist/commands/browser-extension/index.js +7 -15
- package/dist/commands/file/index.js +8 -7
- package/dist/commands/help/index.js +5 -4
- package/dist/commands/notification-recipient/index.d.ts +3 -0
- package/dist/commands/notification-recipient/index.js +72 -0
- package/dist/commands/proxy/index.js +6 -4
- package/dist/commands/run/index.js +31 -32
- package/dist/commands/runtime/index.js +186 -107
- package/dist/commands/shared/help.d.ts +26 -3
- package/dist/commands/shared/help.js +87 -23
- package/dist/commands/shared/io.d.ts +1 -0
- package/dist/commands/shared/io.js +4 -2
- package/dist/commands/shared/operation.d.ts +50 -3
- package/dist/commands/shared/operation.js +171 -25
- package/dist/commands/shared/output.js +3 -7
- package/dist/commands/space/index.js +35 -32
- package/dist/commands/space/list.js +6 -5
- package/dist/commands/subaccount/index.js +13 -15
- package/dist/commands/usage/index.js +9 -5
- package/dist/commands/vault/index.js +15 -21
- package/dist/config/auth-store.d.ts +75 -9
- package/dist/config/auth-store.js +133 -27
- package/dist/config/config.d.ts +2 -2
- package/dist/config/config.js +9 -17
- package/dist/config/paths.d.ts +16 -0
- package/dist/config/paths.js +34 -0
- package/dist/config/pending-auth.d.ts +19 -0
- package/dist/config/pending-auth.js +72 -0
- package/dist/config/secret-store.d.ts +24 -0
- package/dist/config/secret-store.js +123 -0
- package/dist/factory.js +2 -1
- package/dist/generated/help.d.ts +7218 -2535
- package/dist/generated/help.js +10057 -3928
- package/dist/generated/openapi-routes.d.ts +52 -8
- package/dist/generated/openapi-routes.js +20 -9
- package/dist/generated/openapi-types.d.ts +2729 -849
- package/dist/root.js +2 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +56 -47
package/dist/root.js
CHANGED
|
@@ -5,6 +5,7 @@ import { createAuthCommand } from './commands/auth/index.js';
|
|
|
5
5
|
import { createBrowserExtensionCommand } from './commands/browser-extension/index.js';
|
|
6
6
|
import { createFileCommand } from './commands/file/index.js';
|
|
7
7
|
import { createHelpCommand } from './commands/help/index.js';
|
|
8
|
+
import { createNotificationRecipientCommand } from './commands/notification-recipient/index.js';
|
|
8
9
|
import { createProxyCommand } from './commands/proxy/index.js';
|
|
9
10
|
import { createRunCommand } from './commands/run/index.js';
|
|
10
11
|
import { createRuntimeCommand } from './commands/runtime/index.js';
|
|
@@ -32,6 +33,7 @@ export function createRootCommand(factory) {
|
|
|
32
33
|
command.addCommand(createBrowserExtensionCommand(factory));
|
|
33
34
|
command.addCommand(createFileCommand(factory));
|
|
34
35
|
command.addCommand(createHelpCommand(factory));
|
|
36
|
+
command.addCommand(createNotificationRecipientCommand(factory));
|
|
35
37
|
command.addCommand(createRunCommand(factory));
|
|
36
38
|
command.addCommand(createRuntimeCommand(factory));
|
|
37
39
|
command.addCommand(createProxyCommand(factory));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CLI_VERSION: string;
|
package/dist/version.js
ADDED
package/package.json
CHANGED
|
@@ -1,47 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bctrl/cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "BCTRL command-line interface",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bctrl/cli",
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "BCTRL command-line interface",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/bctrlhq/cli.git"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"bctrl": "./dist/bin/bctrl.js"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"bctrl",
|
|
24
|
+
"cli",
|
|
25
|
+
"browser-automation",
|
|
26
|
+
"agents"
|
|
27
|
+
],
|
|
28
|
+
"author": "",
|
|
29
|
+
"license": "ISC",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22.14.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@napi-rs/keyring": "^1.3.0",
|
|
35
|
+
"commander": "^14.0.3",
|
|
36
|
+
"env-paths": "^4.0.0",
|
|
37
|
+
"handlebars": "^4.7.9",
|
|
38
|
+
"jq-web": "^0.6.2",
|
|
39
|
+
"zod": "^4.4.3"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "^25.7.0",
|
|
43
|
+
"tsx": "^4.21.0",
|
|
44
|
+
"typescript": "^6.0.3"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
48
|
+
"build": "pnpm run clean && tsc -p tsconfig.json",
|
|
49
|
+
"generate:cli-reference": "tsx scripts/generate-cli-reference.ts",
|
|
50
|
+
"check:cli-reference": "tsx scripts/generate-cli-reference.ts --check",
|
|
51
|
+
"dev": "tsx src/bin/bctrl.ts",
|
|
52
|
+
"test": "tsx --test \"tests/**/*.test.ts\"",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"typecheck:tests": "tsc --noEmit -p tests/tsconfig.json"
|
|
55
|
+
}
|
|
56
|
+
}
|