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