@burdenoff/cli-sdk 2026.504.1
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 +60 -0
- package/dist/chunk-KTKHJORN.js +1 -0
- package/dist/chunk-MRONTCXQ.js +879 -0
- package/dist/chunk-RNWXATAC.js +32 -0
- package/dist/core/index.cjs +32 -0
- package/dist/core/index.d.cts +57 -0
- package/dist/core/index.d.ts +57 -0
- package/dist/core/index.js +1 -0
- package/dist/index.cjs +32 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/module-Bv5zhYt2.d.cts +166 -0
- package/dist/module-Bv5zhYt2.d.ts +166 -0
- package/dist/modules/auth/index.cjs +183 -0
- package/dist/modules/auth/index.d.cts +7 -0
- package/dist/modules/auth/index.d.ts +7 -0
- package/dist/modules/auth/index.js +160 -0
- package/dist/modules/billing/index.cjs +105 -0
- package/dist/modules/billing/index.d.cts +7 -0
- package/dist/modules/billing/index.d.ts +7 -0
- package/dist/modules/billing/index.js +105 -0
- package/dist/modules/channels/index.cjs +70 -0
- package/dist/modules/channels/index.d.cts +7 -0
- package/dist/modules/channels/index.d.ts +7 -0
- package/dist/modules/channels/index.js +70 -0
- package/dist/modules/conversations/index.cjs +37 -0
- package/dist/modules/conversations/index.d.cts +7 -0
- package/dist/modules/conversations/index.d.ts +7 -0
- package/dist/modules/conversations/index.js +37 -0
- package/dist/modules/devportal/index.cjs +133 -0
- package/dist/modules/devportal/index.d.cts +7 -0
- package/dist/modules/devportal/index.d.ts +7 -0
- package/dist/modules/devportal/index.js +133 -0
- package/dist/modules/export/index.cjs +37 -0
- package/dist/modules/export/index.d.cts +7 -0
- package/dist/modules/export/index.d.ts +7 -0
- package/dist/modules/export/index.js +37 -0
- package/dist/modules/files/index.cjs +49 -0
- package/dist/modules/files/index.d.cts +7 -0
- package/dist/modules/files/index.d.ts +7 -0
- package/dist/modules/files/index.js +49 -0
- package/dist/modules/groups/index.cjs +67 -0
- package/dist/modules/groups/index.d.cts +7 -0
- package/dist/modules/groups/index.d.ts +7 -0
- package/dist/modules/groups/index.js +67 -0
- package/dist/modules/health/index.cjs +1 -0
- package/dist/modules/health/index.d.cts +7 -0
- package/dist/modules/health/index.d.ts +7 -0
- package/dist/modules/health/index.js +1 -0
- package/dist/modules/integrations/index.cjs +44 -0
- package/dist/modules/integrations/index.d.cts +7 -0
- package/dist/modules/integrations/index.d.ts +7 -0
- package/dist/modules/integrations/index.js +44 -0
- package/dist/modules/notifications/index.cjs +26 -0
- package/dist/modules/notifications/index.d.cts +7 -0
- package/dist/modules/notifications/index.d.ts +7 -0
- package/dist/modules/notifications/index.js +26 -0
- package/dist/modules/organizations/index.cjs +53 -0
- package/dist/modules/organizations/index.d.cts +7 -0
- package/dist/modules/organizations/index.d.ts +7 -0
- package/dist/modules/organizations/index.js +53 -0
- package/dist/modules/products/index.cjs +102 -0
- package/dist/modules/products/index.d.cts +7 -0
- package/dist/modules/products/index.d.ts +7 -0
- package/dist/modules/products/index.js +102 -0
- package/dist/modules/rbac/index.cjs +63 -0
- package/dist/modules/rbac/index.d.cts +7 -0
- package/dist/modules/rbac/index.d.ts +7 -0
- package/dist/modules/rbac/index.js +63 -0
- package/dist/modules/sandbox/index.cjs +33 -0
- package/dist/modules/sandbox/index.d.cts +7 -0
- package/dist/modules/sandbox/index.d.ts +7 -0
- package/dist/modules/sandbox/index.js +1 -0
- package/dist/modules/scheduler/index.cjs +32 -0
- package/dist/modules/scheduler/index.d.cts +7 -0
- package/dist/modules/scheduler/index.d.ts +7 -0
- package/dist/modules/scheduler/index.js +32 -0
- package/dist/modules/security/index.cjs +69 -0
- package/dist/modules/security/index.d.cts +7 -0
- package/dist/modules/security/index.d.ts +7 -0
- package/dist/modules/security/index.js +69 -0
- package/dist/modules/store/index.cjs +63 -0
- package/dist/modules/store/index.d.cts +7 -0
- package/dist/modules/store/index.d.ts +7 -0
- package/dist/modules/store/index.js +63 -0
- package/dist/modules/support/index.cjs +45 -0
- package/dist/modules/support/index.d.cts +7 -0
- package/dist/modules/support/index.d.ts +7 -0
- package/dist/modules/support/index.js +45 -0
- package/dist/modules/tags/index.cjs +54 -0
- package/dist/modules/tags/index.d.cts +7 -0
- package/dist/modules/tags/index.d.ts +7 -0
- package/dist/modules/tags/index.js +54 -0
- package/dist/modules/tours/index.cjs +48 -0
- package/dist/modules/tours/index.d.cts +7 -0
- package/dist/modules/tours/index.d.ts +7 -0
- package/dist/modules/tours/index.js +48 -0
- package/dist/modules/vibecontrols/index.cjs +844 -0
- package/dist/modules/vibecontrols/index.d.cts +7 -0
- package/dist/modules/vibecontrols/index.d.ts +7 -0
- package/dist/modules/vibecontrols/index.js +2 -0
- package/dist/modules/workspaces/index.cjs +90 -0
- package/dist/modules/workspaces/index.d.cts +7 -0
- package/dist/modules/workspaces/index.d.ts +7 -0
- package/dist/modules/workspaces/index.js +77 -0
- package/package.json +104 -0
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @burdenoff/cli-sdk
|
|
2
|
+
|
|
3
|
+
Modular CLI SDK shared across all Burdenoff product CLIs. Each module exports a `CliModule` contract; product CLIs (`vibecontrols-cli`, `botlit-cli`, `fluidgrids-cli`, etc.) become thin shells that pick which modules to mount.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add @burdenoff/cli-sdk commander graphql graphql-request
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`commander`, `graphql`, `graphql-request` are peer deps — your shell installs them directly.
|
|
12
|
+
|
|
13
|
+
## Use
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
#!/usr/bin/env node
|
|
17
|
+
import { createProgram, buildContext } from '@burdenoff/cli-sdk/core';
|
|
18
|
+
import authModule from '@burdenoff/cli-sdk/modules/auth';
|
|
19
|
+
import vibecontrolsModule from '@burdenoff/cli-sdk/modules/vibecontrols';
|
|
20
|
+
|
|
21
|
+
const ctx = buildContext({
|
|
22
|
+
productName: 'vibecontrols',
|
|
23
|
+
productVersion: '1.0.0',
|
|
24
|
+
defaults: {
|
|
25
|
+
configDirName: 'vibecontrols-cli',
|
|
26
|
+
oidcClientId: 'burdenoff_cli_vibecontrols',
|
|
27
|
+
workspaceEndpointDefault: 'http://localhost:4003/workspaces/graphql',
|
|
28
|
+
globalEndpointDefault: 'http://localhost:4000/global/graphql',
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const program = createProgram(ctx, [authModule, vibecontrolsModule], {
|
|
33
|
+
name: 'vibecontrols',
|
|
34
|
+
version: '1.0.0',
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
program.parseAsync(process.argv);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Module contract
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
export interface CliModule {
|
|
44
|
+
id: string;
|
|
45
|
+
version: string;
|
|
46
|
+
displayName: string;
|
|
47
|
+
dependsOn?: readonly string[];
|
|
48
|
+
register(program: Command, ctx: CLIContext): void;
|
|
49
|
+
api?: (ctx: CLIContext) => unknown;
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
See `src/core/module.ts` for the full type.
|
|
54
|
+
|
|
55
|
+
## Develop
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
bun install
|
|
59
|
+
bun run sanity # format + lint + typecheck + build + test
|
|
60
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b as b$1,o,p,q as q$1}from'./chunk-RNWXATAC.js';var r=null;function T(t){r=t;}function e(){if(!r)throw new q$1("vibecontrols module helpers used before setHelpersContext was called");return r}function c(){let t=e();if(!t.auth.isAuthenticated())throw new p(`Authentication required. Run \`${t.productName} auth login\`.`)}async function q(t,n){return c(),e().gql.workspace.request(t,n)}async function w(t,n){return e().gql.global.request(t,n)}async function b(t,n){return e().gql.global.request(t,n)}function A(){e().gql.reset();}function v(t){let n=t instanceof Error?t.message:String(t);throw new o(n)}function I(t,n,p){e().output.formatAndOutput(t,n,p);}function k(t){e().output.printSuccess(t);}function E(t){e().output.printError(t);}function O(t){e().output.printInfo(t);}function S(t){e().output.printWarning(t);}function D(t){e().output.printJson(t);}function y(t){return e().output.formatStatus(t)}function N(t){return e().output.formatDate(t)}function R(t,n){return e().output.truncate(t,n)}function W(t,n){return e().output.confirm(t,n)}function F(t,n){e().output.printTable(t,n);}function L(){return e()}function V(){return e().auth.read()}function P(t){e().auth.write(t);}function _(){e().auth.clear();}function K(){return e().config.read()}function G(t){return e().config.get(t)}function Y(t,n){e().config.set(t,n);}function j(){return e().config.path()}var H=b$1;function J(){return e().config.resolveOIDC()}function B(t){return t?t.expiresAt?Date.now()>=t.expiresAt:false:e().auth.isTokenExpired()}export{J as A,B,T as a,q as b,w as c,b as d,A as e,v as f,I as g,k as h,E as i,O as j,S as k,D as l,y as m,N as n,R as o,W as p,F as q,L as r,V as s,P as t,_ as u,K as v,G as w,Y as x,j as y,H as z};
|