@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.
Files changed (107) hide show
  1. package/README.md +60 -0
  2. package/dist/chunk-KTKHJORN.js +1 -0
  3. package/dist/chunk-MRONTCXQ.js +879 -0
  4. package/dist/chunk-RNWXATAC.js +32 -0
  5. package/dist/core/index.cjs +32 -0
  6. package/dist/core/index.d.cts +57 -0
  7. package/dist/core/index.d.ts +57 -0
  8. package/dist/core/index.js +1 -0
  9. package/dist/index.cjs +32 -0
  10. package/dist/index.d.cts +4 -0
  11. package/dist/index.d.ts +4 -0
  12. package/dist/index.js +1 -0
  13. package/dist/module-Bv5zhYt2.d.cts +166 -0
  14. package/dist/module-Bv5zhYt2.d.ts +166 -0
  15. package/dist/modules/auth/index.cjs +183 -0
  16. package/dist/modules/auth/index.d.cts +7 -0
  17. package/dist/modules/auth/index.d.ts +7 -0
  18. package/dist/modules/auth/index.js +160 -0
  19. package/dist/modules/billing/index.cjs +105 -0
  20. package/dist/modules/billing/index.d.cts +7 -0
  21. package/dist/modules/billing/index.d.ts +7 -0
  22. package/dist/modules/billing/index.js +105 -0
  23. package/dist/modules/channels/index.cjs +70 -0
  24. package/dist/modules/channels/index.d.cts +7 -0
  25. package/dist/modules/channels/index.d.ts +7 -0
  26. package/dist/modules/channels/index.js +70 -0
  27. package/dist/modules/conversations/index.cjs +37 -0
  28. package/dist/modules/conversations/index.d.cts +7 -0
  29. package/dist/modules/conversations/index.d.ts +7 -0
  30. package/dist/modules/conversations/index.js +37 -0
  31. package/dist/modules/devportal/index.cjs +133 -0
  32. package/dist/modules/devportal/index.d.cts +7 -0
  33. package/dist/modules/devportal/index.d.ts +7 -0
  34. package/dist/modules/devportal/index.js +133 -0
  35. package/dist/modules/export/index.cjs +37 -0
  36. package/dist/modules/export/index.d.cts +7 -0
  37. package/dist/modules/export/index.d.ts +7 -0
  38. package/dist/modules/export/index.js +37 -0
  39. package/dist/modules/files/index.cjs +49 -0
  40. package/dist/modules/files/index.d.cts +7 -0
  41. package/dist/modules/files/index.d.ts +7 -0
  42. package/dist/modules/files/index.js +49 -0
  43. package/dist/modules/groups/index.cjs +67 -0
  44. package/dist/modules/groups/index.d.cts +7 -0
  45. package/dist/modules/groups/index.d.ts +7 -0
  46. package/dist/modules/groups/index.js +67 -0
  47. package/dist/modules/health/index.cjs +1 -0
  48. package/dist/modules/health/index.d.cts +7 -0
  49. package/dist/modules/health/index.d.ts +7 -0
  50. package/dist/modules/health/index.js +1 -0
  51. package/dist/modules/integrations/index.cjs +44 -0
  52. package/dist/modules/integrations/index.d.cts +7 -0
  53. package/dist/modules/integrations/index.d.ts +7 -0
  54. package/dist/modules/integrations/index.js +44 -0
  55. package/dist/modules/notifications/index.cjs +26 -0
  56. package/dist/modules/notifications/index.d.cts +7 -0
  57. package/dist/modules/notifications/index.d.ts +7 -0
  58. package/dist/modules/notifications/index.js +26 -0
  59. package/dist/modules/organizations/index.cjs +53 -0
  60. package/dist/modules/organizations/index.d.cts +7 -0
  61. package/dist/modules/organizations/index.d.ts +7 -0
  62. package/dist/modules/organizations/index.js +53 -0
  63. package/dist/modules/products/index.cjs +102 -0
  64. package/dist/modules/products/index.d.cts +7 -0
  65. package/dist/modules/products/index.d.ts +7 -0
  66. package/dist/modules/products/index.js +102 -0
  67. package/dist/modules/rbac/index.cjs +63 -0
  68. package/dist/modules/rbac/index.d.cts +7 -0
  69. package/dist/modules/rbac/index.d.ts +7 -0
  70. package/dist/modules/rbac/index.js +63 -0
  71. package/dist/modules/sandbox/index.cjs +33 -0
  72. package/dist/modules/sandbox/index.d.cts +7 -0
  73. package/dist/modules/sandbox/index.d.ts +7 -0
  74. package/dist/modules/sandbox/index.js +1 -0
  75. package/dist/modules/scheduler/index.cjs +32 -0
  76. package/dist/modules/scheduler/index.d.cts +7 -0
  77. package/dist/modules/scheduler/index.d.ts +7 -0
  78. package/dist/modules/scheduler/index.js +32 -0
  79. package/dist/modules/security/index.cjs +69 -0
  80. package/dist/modules/security/index.d.cts +7 -0
  81. package/dist/modules/security/index.d.ts +7 -0
  82. package/dist/modules/security/index.js +69 -0
  83. package/dist/modules/store/index.cjs +63 -0
  84. package/dist/modules/store/index.d.cts +7 -0
  85. package/dist/modules/store/index.d.ts +7 -0
  86. package/dist/modules/store/index.js +63 -0
  87. package/dist/modules/support/index.cjs +45 -0
  88. package/dist/modules/support/index.d.cts +7 -0
  89. package/dist/modules/support/index.d.ts +7 -0
  90. package/dist/modules/support/index.js +45 -0
  91. package/dist/modules/tags/index.cjs +54 -0
  92. package/dist/modules/tags/index.d.cts +7 -0
  93. package/dist/modules/tags/index.d.ts +7 -0
  94. package/dist/modules/tags/index.js +54 -0
  95. package/dist/modules/tours/index.cjs +48 -0
  96. package/dist/modules/tours/index.d.cts +7 -0
  97. package/dist/modules/tours/index.d.ts +7 -0
  98. package/dist/modules/tours/index.js +48 -0
  99. package/dist/modules/vibecontrols/index.cjs +844 -0
  100. package/dist/modules/vibecontrols/index.d.cts +7 -0
  101. package/dist/modules/vibecontrols/index.d.ts +7 -0
  102. package/dist/modules/vibecontrols/index.js +2 -0
  103. package/dist/modules/workspaces/index.cjs +90 -0
  104. package/dist/modules/workspaces/index.d.cts +7 -0
  105. package/dist/modules/workspaces/index.d.ts +7 -0
  106. package/dist/modules/workspaces/index.js +77 -0
  107. 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};