@burdenoff/cli-sdk 2026.1102.1 → 2026.1102.2
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/dist/chunk-O6UCQ5IT.js +1 -0
- package/dist/{chunk-AYNNSLCL.js → chunk-ZGT7IIOP.js} +409 -418
- package/dist/modules/adaptercloud/index.cjs +4 -4
- package/dist/modules/adaptercloud/index.js +2 -2
- package/dist/modules/artistrybase/index.js +2 -2
- package/dist/modules/assethandler/index.cjs +2 -2
- package/dist/modules/assethandler/index.js +2 -2
- package/dist/modules/atheletebridge/index.cjs +8 -8
- package/dist/modules/atheletebridge/index.js +2 -2
- package/dist/modules/auth/index.cjs +37 -37
- package/dist/modules/auth/index.js +33 -29
- package/dist/modules/billing/index.cjs +1 -1
- package/dist/modules/billing/index.js +2 -2
- package/dist/modules/brainyrich/index.cjs +44 -28
- package/dist/modules/brainyrich/index.js +47 -31
- package/dist/modules/buildmyiq/index.js +2 -2
- package/dist/modules/channels/index.cjs +3 -3
- package/dist/modules/channels/index.js +2 -2
- package/dist/modules/collabkin/index.cjs +4 -4
- package/dist/modules/collabkin/index.js +2 -2
- package/dist/modules/comradecircle/index.cjs +6 -6
- package/dist/modules/comradecircle/index.js +2 -2
- package/dist/modules/conversations/index.cjs +7 -7
- package/dist/modules/conversations/index.js +2 -2
- package/dist/modules/coolandlovely/index.cjs +2 -2
- package/dist/modules/coolandlovely/index.js +2 -2
- package/dist/modules/cosmicintersection/index.cjs +6 -6
- package/dist/modules/cosmicintersection/index.js +2 -2
- package/dist/modules/crewfoundry/index.js +2 -2
- package/dist/modules/devportal/index.cjs +2 -2
- package/dist/modules/devportal/index.js +2 -2
- package/dist/modules/ecoimpacthub/index.cjs +5 -5
- package/dist/modules/ecoimpacthub/index.js +2 -2
- package/dist/modules/eventfullymanaged/index.cjs +12 -12
- package/dist/modules/eventfullymanaged/index.js +2 -2
- package/dist/modules/export/index.cjs +4 -4
- package/dist/modules/export/index.js +2 -2
- package/dist/modules/files/index.cjs +3 -3
- package/dist/modules/files/index.js +4 -4
- package/dist/modules/fluidgrids/index.cjs +16 -16
- package/dist/modules/fluidgrids/index.js +3 -3
- package/dist/modules/ggnomad/index.cjs +4 -4
- package/dist/modules/ggnomad/index.js +2 -2
- package/dist/modules/govcitizenhub/index.cjs +4 -4
- package/dist/modules/govcitizenhub/index.js +2 -2
- package/dist/modules/groups/index.cjs +4 -4
- package/dist/modules/groups/index.js +2 -2
- package/dist/modules/headshotmarketing/index.js +2 -2
- package/dist/modules/hookmovies/index.cjs +6 -6
- package/dist/modules/hookmovies/index.js +2 -2
- package/dist/modules/housingvista/index.cjs +3 -3
- package/dist/modules/housingvista/index.js +2 -2
- package/dist/modules/integrations/index.cjs +5 -5
- package/dist/modules/integrations/index.js +2 -2
- package/dist/modules/intelwatchtower/index.cjs +5 -5
- package/dist/modules/intelwatchtower/index.js +2 -2
- package/dist/modules/kadaikodi/index.cjs +2 -2
- package/dist/modules/kadaikodi/index.js +2 -2
- package/dist/modules/labsofscience/index.cjs +3 -3
- package/dist/modules/labsofscience/index.js +2 -2
- package/dist/modules/manufacturedops/index.cjs +2 -2
- package/dist/modules/manufacturedops/index.js +2 -2
- package/dist/modules/movethewheels/index.js +2 -2
- package/dist/modules/notifications/index.cjs +2 -2
- package/dist/modules/notifications/index.js +2 -2
- package/dist/modules/organizations/index.js +2 -2
- package/dist/modules/planmagnet/index.js +2 -2
- package/dist/modules/products/index.cjs +4 -4
- package/dist/modules/products/index.js +2 -2
- package/dist/modules/proserviceworld/index.cjs +2 -2
- package/dist/modules/proserviceworld/index.js +2 -2
- package/dist/modules/rbac/index.js +2 -2
- package/dist/modules/sandbox/index.cjs +17 -17
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.cjs +2 -2
- package/dist/modules/scheduler/index.js +2 -2
- package/dist/modules/security/index.cjs +3 -3
- package/dist/modules/security/index.js +2 -2
- package/dist/modules/semanticfed/index.cjs +3 -3
- package/dist/modules/semanticfed/index.js +2 -2
- package/dist/modules/store/index.cjs +3 -3
- package/dist/modules/store/index.js +2 -2
- package/dist/modules/subscriberbot/index.cjs +1 -1
- package/dist/modules/subscriberbot/index.js +2 -2
- package/dist/modules/support/index.cjs +2 -2
- package/dist/modules/support/index.js +2 -2
- package/dist/modules/tags/index.js +2 -2
- package/dist/modules/technospam/index.cjs +2 -2
- package/dist/modules/technospam/index.js +2 -2
- package/dist/modules/theculturepost/index.js +2 -2
- package/dist/modules/theglobalfuel/index.cjs +2 -2
- package/dist/modules/theglobalfuel/index.js +2 -2
- package/dist/modules/timecampus/index.js +2 -2
- package/dist/modules/tours/index.cjs +2 -2
- package/dist/modules/tours/index.js +2 -2
- package/dist/modules/vibecontrols/index.cjs +563 -567
- package/dist/modules/vibecontrols/index.js +5 -4
- package/dist/modules/workspaces/index.cjs +4 -4
- package/dist/modules/workspaces/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-W4JZR7RJ.js +0 -1
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
total hasMore
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`,B=`
|
|
67
67
|
query GetProject($id: ID!) {
|
|
68
68
|
project(id: $id) {
|
|
69
69
|
id name description workspaceId status createdAt updatedAt
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,K=`
|
|
73
73
|
mutation CreateProject($input: CreateProjectInput!) {
|
|
74
74
|
createProject(input: $input) {
|
|
75
75
|
id name workspaceId status
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
`,
|
|
78
|
+
`,V=`
|
|
79
79
|
mutation AcceptInvitation($id: ID!) {
|
|
80
80
|
acceptInvitation(id: $id) {
|
|
81
81
|
id status workspaceId
|
|
@@ -87,4 +87,4 @@
|
|
|
87
87
|
id action userId actorType resourceType resourceId description timestamp
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
`;function ce(n,i){let o;try{o=JSON.parse(i);}catch{throw new u(`${n} must be valid JSON`)}if(!o||typeof o!="object"||Array.isArray(o))throw new u(`${n} must be a JSON object`);return o}function H(n){n.command("get").description("Get a workspace by id").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let r=await y(q,{id:e});if(!r.workspace)throw new u(`Workspace ${e} not found`);l(t,r.workspace);}catch(r){c(r);}}),n.command("create").description("Create a workspace (global layer)").requiredOption("--name <name>").requiredOption("--slug <slug>","URL-safe workspace identifier").option("--tenant <id>","Target tenant id (defaults to the organization tenant)").option("--organization <id>","Owning organization id").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,tenantId:e.tenant,organizationId:e.organization,slug:e.slug},r=await y(L,{input:t});g(`Workspace created: ${r.createWorkspace.name}`),l(e,r.createWorkspace);}catch(t){c(t);}}),n.command("update").description("Update a workspace").argument("<id>").option("--name <s>").option("--metadata <json>","Replace the workspace metadata (JSON object)").option("-f, --format <format>").action(async(e,t)=>{try{let r={};if(t.name&&(r.name=t.name),t.metadata!==void 0&&(r.metadata=ce("--metadata",t.metadata)),!Object.keys(r).length)throw new u("No updates specified");let a=await y(M,{id:e,input:r});g("Workspace updated"),l(t,a.updateWorkspace);}catch(r){c(r);}}),n.command("delete").description("Delete a workspace (workspace layer)").argument("<id>").action(async e=>{try{await f(j,{id:e}),g("Workspace deleted");}catch(t){c(t);}});let i=n.command("members").description("Workspace member management");i.command("list").description("List members of a workspace").requiredOption("--workspace <id>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t=await f(N,{workspaceId:e.workspace,pagination:{limit:e.limit,offset:0}});l(e,t.workspaceMembers.items,{headers:["ID","UserID","Role","Status","Joined"],rows:t.workspaceMembers.items.map(r=>[x(r.id,12),x(r.userId,12),r.role??"-",O(r.status),R(r.createdAt)])});}catch(t){c(t);}}),i.command("add").description("Add a member to a workspace").requiredOption("--workspace <id>").requiredOption("--user <userId>").option("--role <r>","MEMBER|ADMIN|OWNER","MEMBER").option("-f, --format <format>").action(async e=>{try{let t={workspaceId:e.workspace,userId:e.user,role:(e.role??"MEMBER").toUpperCase()},r=await f(F,{input:t});g("Member added"),l(e,r.addWorkspaceMember);}catch(t){c(t);}}),i.command("remove").description("Remove a member by membership id").argument("<membershipId>").action(async e=>{try{await f(U,{id:e}),g("Member removed");}catch(t){c(t);}}),i.command("role").description("Update member role").requiredOption("--workspace <id>").requiredOption("--user <userId>").requiredOption("--role <r>").action(async e=>{try{let t={workspaceId:e.workspace,userId:e.user,roles:[e.role.toUpperCase()]};await f(z,{input:t}),g("Member role updated");}catch(t){c(t);}});let o=n.command("projects").description("Workspace projects");o.command("list").description("List projects").option("--workspace <id>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.workspace&&(t.workspaceId=e.workspace);let r=await f(G,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});l(e,r.projects.items,{headers:["ID","Name","Workspace","Status","Created"],rows:r.projects.items.map(a=>[x(a.id,12),a.name,x(a.workspaceId,12),O(a.status),R(a.createdAt)])});}catch(t){c(t);}}),o.command("get").description("Get a project").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let r=await f(
|
|
90
|
+
`;function ce(n,i){let o;try{o=JSON.parse(i);}catch{throw new u(`${n} must be valid JSON`)}if(!o||typeof o!="object"||Array.isArray(o))throw new u(`${n} must be a JSON object`);return o}function H(n){n.command("get").description("Get a workspace by id").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let r=await y(q,{id:e});if(!r.workspace)throw new u(`Workspace ${e} not found`);l(t,r.workspace);}catch(r){c(r);}}),n.command("create").description("Create a workspace (global layer)").requiredOption("--name <name>").requiredOption("--slug <slug>","URL-safe workspace identifier").option("--tenant <id>","Target tenant id (defaults to the organization tenant)").option("--organization <id>","Owning organization id").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,tenantId:e.tenant,organizationId:e.organization,slug:e.slug},r=await y(L,{input:t});g(`Workspace created: ${r.createWorkspace.name}`),l(e,r.createWorkspace);}catch(t){c(t);}}),n.command("update").description("Update a workspace").argument("<id>").option("--name <s>").option("--metadata <json>","Replace the workspace metadata (JSON object)").option("-f, --format <format>").action(async(e,t)=>{try{let r={};if(t.name&&(r.name=t.name),t.metadata!==void 0&&(r.metadata=ce("--metadata",t.metadata)),!Object.keys(r).length)throw new u("No updates specified");let a=await y(M,{id:e,input:r});g("Workspace updated"),l(t,a.updateWorkspace);}catch(r){c(r);}}),n.command("delete").description("Delete a workspace (workspace layer)").argument("<id>").action(async e=>{try{await f(j,{id:e}),g("Workspace deleted");}catch(t){c(t);}});let i=n.command("members").description("Workspace member management");i.command("list").description("List members of a workspace").requiredOption("--workspace <id>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t=await f(N,{workspaceId:e.workspace,pagination:{limit:e.limit,offset:0}});l(e,t.workspaceMembers.items,{headers:["ID","UserID","Role","Status","Joined"],rows:t.workspaceMembers.items.map(r=>[x(r.id,12),x(r.userId,12),r.role??"-",O(r.status),R(r.createdAt)])});}catch(t){c(t);}}),i.command("add").description("Add a member to a workspace").requiredOption("--workspace <id>").requiredOption("--user <userId>").option("--role <r>","MEMBER|ADMIN|OWNER","MEMBER").option("-f, --format <format>").action(async e=>{try{let t={workspaceId:e.workspace,userId:e.user,role:(e.role??"MEMBER").toUpperCase()},r=await f(F,{input:t});g("Member added"),l(e,r.addWorkspaceMember);}catch(t){c(t);}}),i.command("remove").description("Remove a member by membership id").argument("<membershipId>").action(async e=>{try{await f(U,{id:e}),g("Member removed");}catch(t){c(t);}}),i.command("role").description("Update member role").requiredOption("--workspace <id>").requiredOption("--user <userId>").requiredOption("--role <r>").action(async e=>{try{let t={workspaceId:e.workspace,userId:e.user,roles:[e.role.toUpperCase()]};await f(z,{input:t}),g("Member role updated");}catch(t){c(t);}});let o=n.command("projects").description("Workspace projects");o.command("list").description("List projects").option("--workspace <id>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.workspace&&(t.workspaceId=e.workspace);let r=await f(G,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});l(e,r.projects.items,{headers:["ID","Name","Workspace","Status","Created"],rows:r.projects.items.map(a=>[x(a.id,12),a.name,x(a.workspaceId,12),O(a.status),R(a.createdAt)])});}catch(t){c(t);}}),o.command("get").description("Get a project").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let r=await f(B,{id:e});if(!r.project)throw new u(`Project ${e} not found`);l(t,r.project);}catch(r){c(r);}}),o.command("create").description("Create a project").requiredOption("--workspace <id>").requiredOption("--name <name>").option("--description <s>").option("-f, --format <format>").action(async e=>{try{let t={workspaceId:e.workspace,name:e.name,description:e.description},r=await f(K,{input:t});g("Project created"),l(e,r.createProject);}catch(t){c(t);}}),n.command("invite").description("Workspace invitations").command("accept").description("Accept a workspace invitation").argument("<invitationId>").action(async e=>{try{await f(V,{id:e}),g("Invitation accepted");}catch(t){c(t);}}),n.command("activity").description("Workspace activity log").requiredOption("--workspace <id>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t=await f(J,{workspaceId:e.workspace,limit:e.limit,offset:0});l(e,t.getWorkspaceActivities);}catch(t){c(t);}});}var ue={id:"workspaces",version:"1.0.0",displayName:"Workspaces",dependsOn:["auth"],register(n,i){D(i),_(n);let o=n.commands.find(s=>s.name()==="workspace");if(!o)throw new m("workspace command group missing after registerWorkspaceCommands");H(o);}},Rt=ue;module.exports=Rt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,
|
|
1
|
+
import {a,v as v$1,m,u,i,y,n,w,f,k,h as h$1,c,b,r,p,q as q$2}from'../../chunk-O6UCQ5IT.js';import {q as q$1,o,h,g}from'../../chunk-YIY5IDXQ.js';function P(i$1){let c=i$1.command("workspace").description("Workspace context");c.command("current").description("Show current workspace").option("-f, --format <format>","Output format").action(a=>{let r=v$1(),t=r?.workspaceId??null;if(!t){m(`No workspace set. Run: ${u().productName} workspace set <id>`);return}i(a,{workspaceId:t,organizationId:r?.organizationId??"-",hasWorkspaceToken:!!r?.workspaceToken},{headers:["Key","Value"],rows:[["Workspace ID",t],["Organization ID",r?.organizationId??"-"],["Has Workspace Token",String(!!r?.workspaceToken)]]});}),c.command("set").description("Set workspace ID and issue workspace token").argument("<id>","Workspace ID").action(async a=>{try{let r=v$1();if(!r?.accessToken)throw new o(`Not authenticated. Run: ${u().productName} auth login`);let t=y(),e;m("Looking up workspace details...");try{let m=(await h(t.globalEndpoint,r.accessToken)).find(J=>J.id===a);m?e=m.organizationId:(n("Workspace not in your accessible list \u2014 using stored organization id as fallback"),e=r.organizationId);}catch{n("Could not fetch workspace details \u2014 using stored organization id"),e=r.organizationId;}if(r.accessToken&&e){m("Issuing workspace token...");try{let o=await g(t.workspaceEndpoint,r.accessToken,a,e);w({...r,workspaceId:a,organizationId:e,workspaceToken:o.token,workspaceTokenExpiresAt:new Date(o.expiresAt).getTime()}),f(),k(`Workspace set to: ${a} (token issued)`);return}catch(o){n(`Workspace token failed: ${o instanceof Error?o.message:String(o)}`);}}w({...r,workspaceId:a,organizationId:e}),f(),k(`Workspace set to: ${a}`);}catch(r){h$1(r);}}),c.command("list").description("List available workspaces").option("-f, --format <format>","Output format").action(async a=>{try{let r=v$1();if(!r?.accessToken)throw new o(`Not authenticated. Run: ${u().productName} auth login`);let t=y(),e=await h(t.globalEndpoint,r.accessToken);i(a,e,{headers:["ID","Name","Slug","Organization ID"],rows:e.map(o=>[o.id,o.name,o.slug,o.organizationId])});}catch(r){h$1(r);}});}var $=`
|
|
2
2
|
query GetWorkspace($id: ID!) {
|
|
3
3
|
workspace(id: $id) {
|
|
4
4
|
id name slug type tenantId organizationId region status memberCount createdAt updatedAt
|
|
@@ -74,4 +74,4 @@ import {a,t,k,s,h,w,l,u,f,i,g as g$1,c,b,p,n,o as o$1}from'../../chunk-W4JZR7RJ.
|
|
|
74
74
|
id action userId actorType resourceType resourceId description timestamp
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
`;function G(i,c){let a;try{a=JSON.parse(c);}catch{throw new o(`${i} must be valid JSON`)}if(!a||typeof a!="object"||Array.isArray(a))throw new o(`${i} must be a JSON object`);return a}function B(i$1){i$1.command("get").description("Get a workspace by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o$1=await c($,{id:t});if(!o$1.workspace)throw new o(`Workspace ${t} not found`);
|
|
77
|
+
`;function G(i,c){let a;try{a=JSON.parse(c);}catch{throw new o(`${i} must be valid JSON`)}if(!a||typeof a!="object"||Array.isArray(a))throw new o(`${i} must be a JSON object`);return a}function B(i$1){i$1.command("get").description("Get a workspace by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o$1=await c($,{id:t});if(!o$1.workspace)throw new o(`Workspace ${t} not found`);i(e,o$1.workspace);}catch(o){h$1(o);}}),i$1.command("create").description("Create a workspace (global layer)").requiredOption("--name <name>").requiredOption("--slug <slug>","URL-safe workspace identifier").option("--tenant <id>","Target tenant id (defaults to the organization tenant)").option("--organization <id>","Owning organization id").option("-f, --format <format>").action(async t=>{try{let e={name:t.name,tenantId:t.tenant,organizationId:t.organization,slug:t.slug},o=await c(S,{input:e});k(`Workspace created: ${o.createWorkspace.name}`),i(t,o.createWorkspace);}catch(e){h$1(e);}}),i$1.command("update").description("Update a workspace").argument("<id>").option("--name <s>").option("--metadata <json>","Replace the workspace metadata (JSON object)").option("-f, --format <format>").action(async(t,e)=>{try{let o$1={};if(e.name&&(o$1.name=e.name),e.metadata!==void 0&&(o$1.metadata=G("--metadata",e.metadata)),!Object.keys(o$1).length)throw new o("No updates specified");let m=await c(j,{id:t,input:o$1});k("Workspace updated"),i(e,m.updateWorkspace);}catch(o){h$1(o);}}),i$1.command("delete").description("Delete a workspace (workspace layer)").argument("<id>").action(async t=>{try{await b(_,{id:t}),k("Workspace deleted");}catch(e){h$1(e);}});let c$1=i$1.command("members").description("Workspace member management");c$1.command("list").description("List members of a workspace").requiredOption("--workspace <id>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let e=await b(D,{workspaceId:t.workspace,pagination:{limit:t.limit,offset:0}});i(t,e.workspaceMembers.items,{headers:["ID","UserID","Role","Status","Joined"],rows:e.workspaceMembers.items.map(o=>[r(o.id,12),r(o.userId,12),o.role??"-",p(o.status),q$2(o.createdAt)])});}catch(e){h$1(e);}}),c$1.command("add").description("Add a member to a workspace").requiredOption("--workspace <id>").requiredOption("--user <userId>").option("--role <r>","MEMBER|ADMIN|OWNER","MEMBER").option("-f, --format <format>").action(async t=>{try{let e={workspaceId:t.workspace,userId:t.user,role:(t.role??"MEMBER").toUpperCase()},o=await b(x,{input:e});k("Member added"),i(t,o.addWorkspaceMember);}catch(e){h$1(e);}}),c$1.command("remove").description("Remove a member by membership id").argument("<membershipId>").action(async t=>{try{await b(v,{id:t}),k("Member removed");}catch(e){h$1(e);}}),c$1.command("role").description("Update member role").requiredOption("--workspace <id>").requiredOption("--user <userId>").requiredOption("--role <r>").action(async t=>{try{let e={workspaceId:t.workspace,userId:t.user,roles:[t.role.toUpperCase()]};await b(z,{input:e}),k("Member role updated");}catch(e){h$1(e);}});let a=i$1.command("projects").description("Workspace projects");a.command("list").description("List projects").option("--workspace <id>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let e={};t.workspace&&(e.workspaceId=t.workspace);let o=await b(N,{filter:Object.keys(e).length?e:void 0,pagination:{limit:t.limit,offset:0}});i(t,o.projects.items,{headers:["ID","Name","Workspace","Status","Created"],rows:o.projects.items.map(m=>[r(m.id,12),m.name,r(m.workspaceId,12),p(m.status),q$2(m.createdAt)])});}catch(e){h$1(e);}}),a.command("get").description("Get a project").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o$1=await b(K,{id:t});if(!o$1.project)throw new o(`Project ${t} not found`);i(e,o$1.project);}catch(o){h$1(o);}}),a.command("create").description("Create a project").requiredOption("--workspace <id>").requiredOption("--name <name>").option("--description <s>").option("-f, --format <format>").action(async t=>{try{let e={workspaceId:t.workspace,name:t.name,description:t.description},o=await b(L,{input:e});k("Project created"),i(t,o.createProject);}catch(e){h$1(e);}}),i$1.command("invite").description("Workspace invitations").command("accept").description("Accept a workspace invitation").argument("<invitationId>").action(async t=>{try{await b(q,{id:t}),k("Invitation accepted");}catch(e){h$1(e);}}),i$1.command("activity").description("Workspace activity log").requiredOption("--workspace <id>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let e=await b(U,{workspaceId:t.workspace,limit:t.limit,offset:0});i(t,e.getWorkspaceActivities);}catch(e){h$1(e);}});}var H={id:"workspaces",version:"1.0.0",displayName:"Workspaces",dependsOn:["auth"],register(i,c){a(c),P(i);let a$1=i.commands.find(r=>r.name()==="workspace");if(!a$1)throw new q$1("workspace command group missing after registerWorkspaceCommands");B(a$1);}},ut=H;export{ut as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/cli-sdk",
|
|
3
|
-
"version": "2026.1102.
|
|
3
|
+
"version": "2026.1102.2",
|
|
4
4
|
"description": "Modular CLI SDK shared across all Burdenoff product CLIs (vibecontrols, botlit, fluidgrids, bigconsole, healthybowl, devportal, workspaces). Each module exports CliModule contract; product CLIs become thin shells that pick which modules to mount.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
package/dist/chunk-W4JZR7RJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {b as b$1,o,p,q as q$1}from'./chunk-YIY5IDXQ.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.",{hint:`Run \`${t.productName} auth login\` to authenticate.`})}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.workspaceAuthOnly.request(t,n)}async function A(t,n){return e().gql.global.request(t,n)}function v(){e().gql.reset();}function I(t){let n=t instanceof Error?t.message:String(t);throw new o(n)}function k(t,n,p){e().output.formatAndOutput(t,n,p);}function E(t){e().output.printSuccess(t);}function O(t){e().output.printError(t);}function S(t){e().output.printInfo(t);}function D(t){e().output.printWarning(t);}function y(t){e().output.printJson(t);}function N(t){return e().output.formatStatus(t)}function R(t){return e().output.formatDate(t)}function W(t,n){return e().output.truncate(t,n)}function F(t,n){return e().output.confirm(t,n)}function L(t,n){e().output.printTable(t,n);}function V(){return e()}function P(){return e().auth.read()}function _(t){e().auth.write(t);}function K(){e().auth.clear();}function G(){return e().config.read()}function Y(t){return e().config.get(t)}function j(t,n){e().config.set(t,n);}function H(){return e().config.path()}var J=b$1;function B(){return e().config.resolveOIDC()}function U(t){return t?t.expiresAt?Date.now()>=t.expiresAt:false:e().auth.isTokenExpired()}export{J as A,B,U as C,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};
|