@bctrl/cli 0.1.6 → 0.1.8

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 (61) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +113 -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/commands/ai/index.js +10 -11
  12. package/dist/commands/api-key/index.js +3 -8
  13. package/dist/commands/auth/device-login.d.ts +6 -0
  14. package/dist/commands/auth/device-login.js +19 -0
  15. package/dist/commands/auth/login.d.ts +11 -0
  16. package/dist/commands/auth/login.js +140 -20
  17. package/dist/commands/auth/logout.d.ts +2 -0
  18. package/dist/commands/auth/logout.js +19 -2
  19. package/dist/commands/auth/status.d.ts +1 -0
  20. package/dist/commands/auth/status.js +22 -5
  21. package/dist/commands/auth/token.js +6 -0
  22. package/dist/commands/browser-extension/index.js +7 -15
  23. package/dist/commands/file/index.js +8 -7
  24. package/dist/commands/help/index.js +5 -4
  25. package/dist/commands/notification-recipient/index.d.ts +3 -0
  26. package/dist/commands/notification-recipient/index.js +72 -0
  27. package/dist/commands/proxy/index.js +6 -4
  28. package/dist/commands/run/index.js +31 -32
  29. package/dist/commands/runtime/index.js +185 -106
  30. package/dist/commands/shared/help.d.ts +26 -3
  31. package/dist/commands/shared/help.js +87 -23
  32. package/dist/commands/shared/io.d.ts +1 -0
  33. package/dist/commands/shared/io.js +4 -2
  34. package/dist/commands/shared/operation.d.ts +50 -3
  35. package/dist/commands/shared/operation.js +171 -25
  36. package/dist/commands/shared/output.js +3 -7
  37. package/dist/commands/space/index.js +35 -32
  38. package/dist/commands/space/list.js +6 -5
  39. package/dist/commands/subaccount/index.js +12 -14
  40. package/dist/commands/usage/index.js +9 -5
  41. package/dist/commands/vault/index.js +15 -21
  42. package/dist/config/auth-store.d.ts +75 -9
  43. package/dist/config/auth-store.js +133 -27
  44. package/dist/config/config.d.ts +2 -2
  45. package/dist/config/config.js +9 -17
  46. package/dist/config/paths.d.ts +16 -0
  47. package/dist/config/paths.js +34 -0
  48. package/dist/config/pending-auth.d.ts +19 -0
  49. package/dist/config/pending-auth.js +72 -0
  50. package/dist/config/secret-store.d.ts +24 -0
  51. package/dist/config/secret-store.js +123 -0
  52. package/dist/factory.js +2 -1
  53. package/dist/generated/help.d.ts +7424 -2768
  54. package/dist/generated/help.js +10116 -4014
  55. package/dist/generated/openapi-routes.d.ts +52 -8
  56. package/dist/generated/openapi-routes.js +20 -9
  57. package/dist/generated/openapi-types.d.ts +2688 -883
  58. package/dist/root.js +2 -0
  59. package/dist/version.d.ts +1 -0
  60. package/dist/version.js +4 -0
  61. package/package.json +58 -47
@@ -95,6 +95,22 @@ export declare const CLI_OPENAPI_ROUTES: {
95
95
  readonly method: "get";
96
96
  readonly path: "/help";
97
97
  };
98
+ readonly "notification-recipients.create": {
99
+ readonly method: "post";
100
+ readonly path: "/notification-recipients";
101
+ };
102
+ readonly "notification-recipients.delete": {
103
+ readonly method: "delete";
104
+ readonly path: "/notification-recipients/{recipientId}";
105
+ };
106
+ readonly "notification-recipients.list": {
107
+ readonly method: "get";
108
+ readonly path: "/notification-recipients";
109
+ };
110
+ readonly "notification-recipients.update": {
111
+ readonly method: "patch";
112
+ readonly path: "/notification-recipients/{recipientId}";
113
+ };
98
114
  readonly "proxies.create": {
99
115
  readonly method: "post";
100
116
  readonly path: "/proxies";
@@ -103,6 +119,10 @@ export declare const CLI_OPENAPI_ROUTES: {
103
119
  readonly method: "delete";
104
120
  readonly path: "/proxies/{proxyId}";
105
121
  };
122
+ readonly "proxies.geo.list": {
123
+ readonly method: "get";
124
+ readonly path: "/proxies/geo";
125
+ };
106
126
  readonly "proxies.get": {
107
127
  readonly method: "get";
108
128
  readonly path: "/proxies/{proxyId}";
@@ -111,6 +131,10 @@ export declare const CLI_OPENAPI_ROUTES: {
111
131
  readonly method: "get";
112
132
  readonly path: "/proxies";
113
133
  };
134
+ readonly "proxies.locations.list": {
135
+ readonly method: "get";
136
+ readonly path: "/proxies/locations";
137
+ };
114
138
  readonly "proxies.pools.get": {
115
139
  readonly method: "get";
116
140
  readonly path: "/proxies/pools/{poolId}";
@@ -203,6 +227,26 @@ export declare const CLI_OPENAPI_ROUTES: {
203
227
  readonly method: "get";
204
228
  readonly path: "/runtimes/{runtimeId}";
205
229
  };
230
+ readonly "runtimes.human-actions.cancel": {
231
+ readonly method: "post";
232
+ readonly path: "/runtimes/{runtimeId}/human-actions/cancel";
233
+ };
234
+ readonly "runtimes.human-actions.complete": {
235
+ readonly method: "post";
236
+ readonly path: "/runtimes/{runtimeId}/human-actions/complete";
237
+ };
238
+ readonly "runtimes.human-actions.create": {
239
+ readonly method: "post";
240
+ readonly path: "/runtimes/{runtimeId}/human-actions";
241
+ };
242
+ readonly "runtimes.human-actions.get": {
243
+ readonly method: "get";
244
+ readonly path: "/runtimes/{runtimeId}/human-actions";
245
+ };
246
+ readonly "runtimes.human-actions.wait": {
247
+ readonly method: "post";
248
+ readonly path: "/runtimes/{runtimeId}/human-actions/wait";
249
+ };
206
250
  readonly "runtimes.invocations.cancel": {
207
251
  readonly method: "post";
208
252
  readonly path: "/runtimes/{runtimeId}/invocations/{invocationId}/cancel";
@@ -305,7 +349,7 @@ export declare const CLI_OPENAPI_ROUTES: {
305
349
  };
306
350
  readonly "tool-calls.get": {
307
351
  readonly method: "get";
308
- readonly path: "/tool-calls/{id}";
352
+ readonly path: "/tool-calls/{toolCallId}";
309
353
  };
310
354
  readonly "tool-calls.list": {
311
355
  readonly method: "get";
@@ -317,11 +361,11 @@ export declare const CLI_OPENAPI_ROUTES: {
317
361
  };
318
362
  readonly "tools.delete": {
319
363
  readonly method: "delete";
320
- readonly path: "/tools/{id}";
364
+ readonly path: "/tools/{toolId}";
321
365
  };
322
366
  readonly "tools.get": {
323
367
  readonly method: "get";
324
- readonly path: "/tools/{id}";
368
+ readonly path: "/tools/{toolId}";
325
369
  };
326
370
  readonly "tools.list": {
327
371
  readonly method: "get";
@@ -329,11 +373,11 @@ export declare const CLI_OPENAPI_ROUTES: {
329
373
  };
330
374
  readonly "tools.test": {
331
375
  readonly method: "post";
332
- readonly path: "/tools/{id}/test";
376
+ readonly path: "/tools/{toolId}/test";
333
377
  };
334
378
  readonly "tools.update": {
335
379
  readonly method: "patch";
336
- readonly path: "/tools/{id}";
380
+ readonly path: "/tools/{toolId}";
337
381
  };
338
382
  readonly "toolsets.create": {
339
383
  readonly method: "post";
@@ -341,11 +385,11 @@ export declare const CLI_OPENAPI_ROUTES: {
341
385
  };
342
386
  readonly "toolsets.delete": {
343
387
  readonly method: "delete";
344
- readonly path: "/toolsets/{id}";
388
+ readonly path: "/toolsets/{toolsetId}";
345
389
  };
346
390
  readonly "toolsets.get": {
347
391
  readonly method: "get";
348
- readonly path: "/toolsets/{id}";
392
+ readonly path: "/toolsets/{toolsetId}";
349
393
  };
350
394
  readonly "toolsets.list": {
351
395
  readonly method: "get";
@@ -353,7 +397,7 @@ export declare const CLI_OPENAPI_ROUTES: {
353
397
  };
354
398
  readonly "toolsets.update": {
355
399
  readonly method: "patch";
356
- readonly path: "/toolsets/{id}";
400
+ readonly path: "/toolsets/{toolsetId}";
357
401
  };
358
402
  readonly "usage.get": {
359
403
  readonly method: "get";
@@ -1,4 +1,4 @@
1
- // Generated by scripts/generate/cli-contracts.mjs. Do not edit by hand.
1
+ // Generated by scripts/generate/cli-contracts.ts. Do not edit by hand.
2
2
  export const CLI_OPENAPI_ROUTES = {
3
3
  "ai.credentials.create": { method: "post", path: "/ai/credentials" },
4
4
  "ai.credentials.delete": { method: "delete", path: "/ai/credentials/{credentialId}" },
@@ -24,10 +24,16 @@ export const CLI_OPENAPI_ROUTES = {
24
24
  "files.update": { method: "patch", path: "/files/{fileId}" },
25
25
  "files.upload": { method: "post", path: "/files" },
26
26
  "help": { method: "get", path: "/help" },
27
+ "notification-recipients.create": { method: "post", path: "/notification-recipients" },
28
+ "notification-recipients.delete": { method: "delete", path: "/notification-recipients/{recipientId}" },
29
+ "notification-recipients.list": { method: "get", path: "/notification-recipients" },
30
+ "notification-recipients.update": { method: "patch", path: "/notification-recipients/{recipientId}" },
27
31
  "proxies.create": { method: "post", path: "/proxies" },
28
32
  "proxies.delete": { method: "delete", path: "/proxies/{proxyId}" },
33
+ "proxies.geo.list": { method: "get", path: "/proxies/geo" },
29
34
  "proxies.get": { method: "get", path: "/proxies/{proxyId}" },
30
35
  "proxies.list": { method: "get", path: "/proxies" },
36
+ "proxies.locations.list": { method: "get", path: "/proxies/locations" },
31
37
  "proxies.pools.get": { method: "get", path: "/proxies/pools/{poolId}" },
32
38
  "proxies.pools.list": { method: "get", path: "/proxies/pools" },
33
39
  "proxies.test": { method: "post", path: "/proxies/{proxyId}/test" },
@@ -51,6 +57,11 @@ export const CLI_OPENAPI_ROUTES = {
51
57
  "runtimes.files.stage": { method: "post", path: "/runtimes/{runtimeId}/files/stage" },
52
58
  "runtimes.files.upload": { method: "post", path: "/runtimes/{runtimeId}/files/upload" },
53
59
  "runtimes.get": { method: "get", path: "/runtimes/{runtimeId}" },
60
+ "runtimes.human-actions.cancel": { method: "post", path: "/runtimes/{runtimeId}/human-actions/cancel" },
61
+ "runtimes.human-actions.complete": { method: "post", path: "/runtimes/{runtimeId}/human-actions/complete" },
62
+ "runtimes.human-actions.create": { method: "post", path: "/runtimes/{runtimeId}/human-actions" },
63
+ "runtimes.human-actions.get": { method: "get", path: "/runtimes/{runtimeId}/human-actions" },
64
+ "runtimes.human-actions.wait": { method: "post", path: "/runtimes/{runtimeId}/human-actions/wait" },
54
65
  "runtimes.invocations.cancel": { method: "post", path: "/runtimes/{runtimeId}/invocations/{invocationId}/cancel" },
55
66
  "runtimes.invocations.create": { method: "post", path: "/runtimes/{runtimeId}/invocations" },
56
67
  "runtimes.invocations.wait": { method: "post", path: "/runtimes/{runtimeId}/invocations/{invocationId}/wait" },
@@ -76,19 +87,19 @@ export const CLI_OPENAPI_ROUTES = {
76
87
  "subaccounts.list": { method: "get", path: "/subaccounts" },
77
88
  "subaccounts.update": { method: "patch", path: "/subaccounts/{subaccountId}" },
78
89
  "subaccounts.usage.list": { method: "get", path: "/subaccounts/usage" },
79
- "tool-calls.get": { method: "get", path: "/tool-calls/{id}" },
90
+ "tool-calls.get": { method: "get", path: "/tool-calls/{toolCallId}" },
80
91
  "tool-calls.list": { method: "get", path: "/tool-calls" },
81
92
  "tools.create": { method: "post", path: "/tools" },
82
- "tools.delete": { method: "delete", path: "/tools/{id}" },
83
- "tools.get": { method: "get", path: "/tools/{id}" },
93
+ "tools.delete": { method: "delete", path: "/tools/{toolId}" },
94
+ "tools.get": { method: "get", path: "/tools/{toolId}" },
84
95
  "tools.list": { method: "get", path: "/tools" },
85
- "tools.test": { method: "post", path: "/tools/{id}/test" },
86
- "tools.update": { method: "patch", path: "/tools/{id}" },
96
+ "tools.test": { method: "post", path: "/tools/{toolId}/test" },
97
+ "tools.update": { method: "patch", path: "/tools/{toolId}" },
87
98
  "toolsets.create": { method: "post", path: "/toolsets" },
88
- "toolsets.delete": { method: "delete", path: "/toolsets/{id}" },
89
- "toolsets.get": { method: "get", path: "/toolsets/{id}" },
99
+ "toolsets.delete": { method: "delete", path: "/toolsets/{toolsetId}" },
100
+ "toolsets.get": { method: "get", path: "/toolsets/{toolsetId}" },
90
101
  "toolsets.list": { method: "get", path: "/toolsets" },
91
- "toolsets.update": { method: "patch", path: "/toolsets/{id}" },
102
+ "toolsets.update": { method: "patch", path: "/toolsets/{toolsetId}" },
92
103
  "usage.get": { method: "get", path: "/usage" },
93
104
  "vault.secrets.delete": { method: "delete", path: "/vault/secrets/{key}" },
94
105
  "vault.secrets.get": { method: "get", path: "/vault/secrets/{key}" },