@burdenoff/cli-sdk 2026.1107.3 → 2026.1107.5

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 (209) hide show
  1. package/dist/{chunk-AQ5I53SK.js → chunk-2OISIPE6.js} +6 -4
  2. package/dist/chunk-N5KCAJXG.js +307 -0
  3. package/dist/{chunk-AQE5ZDEN.js → chunk-VL67DTWH.js} +1 -1
  4. package/dist/core/index.cjs +7 -5
  5. package/dist/core/index.d.cts +2 -2
  6. package/dist/core/index.d.ts +2 -2
  7. package/dist/core/index.js +1 -1
  8. package/dist/index.cjs +7 -5
  9. package/dist/index.d.cts +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/{module-DOIiVaXQ.d.cts → module-BwJmqefL.d.cts} +1 -0
  13. package/dist/{module-DOIiVaXQ.d.ts → module-BwJmqefL.d.ts} +1 -0
  14. package/dist/modules/adaptercloud/index.cjs +2 -2
  15. package/dist/modules/adaptercloud/index.d.cts +1 -1
  16. package/dist/modules/adaptercloud/index.d.ts +1 -1
  17. package/dist/modules/adaptercloud/index.js +1 -1
  18. package/dist/modules/artistrybase/index.d.cts +1 -1
  19. package/dist/modules/artistrybase/index.d.ts +1 -1
  20. package/dist/modules/artistrybase/index.js +1 -1
  21. package/dist/modules/assethandler/index.cjs +3 -3
  22. package/dist/modules/assethandler/index.d.cts +1 -1
  23. package/dist/modules/assethandler/index.d.ts +1 -1
  24. package/dist/modules/assethandler/index.js +1 -1
  25. package/dist/modules/atheletebridge/index.d.cts +1 -1
  26. package/dist/modules/atheletebridge/index.d.ts +1 -1
  27. package/dist/modules/atheletebridge/index.js +1 -1
  28. package/dist/modules/auth/index.d.cts +1 -1
  29. package/dist/modules/auth/index.d.ts +1 -1
  30. package/dist/modules/auth/index.js +1 -1
  31. package/dist/modules/billing/index.d.cts +1 -1
  32. package/dist/modules/billing/index.d.ts +1 -1
  33. package/dist/modules/billing/index.js +1 -1
  34. package/dist/modules/brainyrich/index.d.cts +1 -1
  35. package/dist/modules/brainyrich/index.d.ts +1 -1
  36. package/dist/modules/brainyrich/index.js +1 -1
  37. package/dist/modules/buildmyiq/index.d.cts +1 -1
  38. package/dist/modules/buildmyiq/index.d.ts +1 -1
  39. package/dist/modules/buildmyiq/index.js +1 -1
  40. package/dist/modules/channels/index.d.cts +1 -1
  41. package/dist/modules/channels/index.d.ts +1 -1
  42. package/dist/modules/channels/index.js +1 -1
  43. package/dist/modules/collabkin/index.d.cts +1 -1
  44. package/dist/modules/collabkin/index.d.ts +1 -1
  45. package/dist/modules/collabkin/index.js +1 -1
  46. package/dist/modules/comradecircle/index.cjs +3 -3
  47. package/dist/modules/comradecircle/index.d.cts +1 -1
  48. package/dist/modules/comradecircle/index.d.ts +1 -1
  49. package/dist/modules/comradecircle/index.js +1 -1
  50. package/dist/modules/conversations/index.cjs +3 -3
  51. package/dist/modules/conversations/index.d.cts +1 -1
  52. package/dist/modules/conversations/index.d.ts +1 -1
  53. package/dist/modules/conversations/index.js +1 -1
  54. package/dist/modules/coolandlovely/index.cjs +3 -3
  55. package/dist/modules/coolandlovely/index.d.cts +1 -1
  56. package/dist/modules/coolandlovely/index.d.ts +1 -1
  57. package/dist/modules/coolandlovely/index.js +1 -1
  58. package/dist/modules/cosmicintersection/index.cjs +2 -2
  59. package/dist/modules/cosmicintersection/index.d.cts +1 -1
  60. package/dist/modules/cosmicintersection/index.d.ts +1 -1
  61. package/dist/modules/cosmicintersection/index.js +1 -1
  62. package/dist/modules/crewfoundry/index.cjs +10 -10
  63. package/dist/modules/crewfoundry/index.d.cts +1 -1
  64. package/dist/modules/crewfoundry/index.d.ts +1 -1
  65. package/dist/modules/crewfoundry/index.js +1 -1
  66. package/dist/modules/devportal/index.d.cts +1 -1
  67. package/dist/modules/devportal/index.d.ts +1 -1
  68. package/dist/modules/devportal/index.js +1 -1
  69. package/dist/modules/ecoimpacthub/index.cjs +3 -3
  70. package/dist/modules/ecoimpacthub/index.d.cts +1 -1
  71. package/dist/modules/ecoimpacthub/index.d.ts +1 -1
  72. package/dist/modules/ecoimpacthub/index.js +1 -1
  73. package/dist/modules/eventfullymanaged/index.d.cts +1 -1
  74. package/dist/modules/eventfullymanaged/index.d.ts +1 -1
  75. package/dist/modules/eventfullymanaged/index.js +1 -1
  76. package/dist/modules/export/index.cjs +3 -3
  77. package/dist/modules/export/index.d.cts +1 -1
  78. package/dist/modules/export/index.d.ts +1 -1
  79. package/dist/modules/export/index.js +1 -1
  80. package/dist/modules/files/index.cjs +2 -2
  81. package/dist/modules/files/index.d.cts +1 -1
  82. package/dist/modules/files/index.d.ts +1 -1
  83. package/dist/modules/files/index.js +1 -1
  84. package/dist/modules/fluidgrids/index.d.cts +1 -1
  85. package/dist/modules/fluidgrids/index.d.ts +1 -1
  86. package/dist/modules/fluidgrids/index.js +1 -1
  87. package/dist/modules/ggnomad/index.cjs +1 -1
  88. package/dist/modules/ggnomad/index.d.cts +1 -1
  89. package/dist/modules/ggnomad/index.d.ts +1 -1
  90. package/dist/modules/ggnomad/index.js +1 -1
  91. package/dist/modules/govcitizenhub/index.cjs +3 -3
  92. package/dist/modules/govcitizenhub/index.d.cts +1 -1
  93. package/dist/modules/govcitizenhub/index.d.ts +1 -1
  94. package/dist/modules/govcitizenhub/index.js +1 -1
  95. package/dist/modules/groups/index.d.cts +1 -1
  96. package/dist/modules/groups/index.d.ts +1 -1
  97. package/dist/modules/groups/index.js +1 -1
  98. package/dist/modules/headshotmarketing/index.cjs +232 -144
  99. package/dist/modules/headshotmarketing/index.d.cts +1 -1
  100. package/dist/modules/headshotmarketing/index.d.ts +1 -1
  101. package/dist/modules/headshotmarketing/index.js +229 -141
  102. package/dist/modules/health/index.d.cts +1 -1
  103. package/dist/modules/health/index.d.ts +1 -1
  104. package/dist/modules/hookmovies/index.d.cts +1 -1
  105. package/dist/modules/hookmovies/index.d.ts +1 -1
  106. package/dist/modules/hookmovies/index.js +1 -1
  107. package/dist/modules/housingvista/index.d.cts +1 -1
  108. package/dist/modules/housingvista/index.d.ts +1 -1
  109. package/dist/modules/housingvista/index.js +1 -1
  110. package/dist/modules/integrations/index.cjs +2 -2
  111. package/dist/modules/integrations/index.d.cts +1 -1
  112. package/dist/modules/integrations/index.d.ts +1 -1
  113. package/dist/modules/integrations/index.js +1 -1
  114. package/dist/modules/intelwatchtower/index.cjs +5 -5
  115. package/dist/modules/intelwatchtower/index.d.cts +1 -1
  116. package/dist/modules/intelwatchtower/index.d.ts +1 -1
  117. package/dist/modules/intelwatchtower/index.js +1 -1
  118. package/dist/modules/kadaikodi/index.d.cts +1 -1
  119. package/dist/modules/kadaikodi/index.d.ts +1 -1
  120. package/dist/modules/kadaikodi/index.js +1 -1
  121. package/dist/modules/labsofscience/index.d.cts +1 -1
  122. package/dist/modules/labsofscience/index.d.ts +1 -1
  123. package/dist/modules/labsofscience/index.js +1 -1
  124. package/dist/modules/manufacturedops/index.d.cts +1 -1
  125. package/dist/modules/manufacturedops/index.d.ts +1 -1
  126. package/dist/modules/manufacturedops/index.js +1 -1
  127. package/dist/modules/movethewheels/index.cjs +122 -66
  128. package/dist/modules/movethewheels/index.d.cts +1 -1
  129. package/dist/modules/movethewheels/index.d.ts +1 -1
  130. package/dist/modules/movethewheels/index.js +123 -67
  131. package/dist/modules/mybodyshield/index.d.cts +1 -1
  132. package/dist/modules/mybodyshield/index.d.ts +1 -1
  133. package/dist/modules/mybodyshield/index.js +1 -1
  134. package/dist/modules/notifications/index.cjs +1 -1
  135. package/dist/modules/notifications/index.d.cts +1 -1
  136. package/dist/modules/notifications/index.d.ts +1 -1
  137. package/dist/modules/notifications/index.js +1 -1
  138. package/dist/modules/organizations/index.cjs +3 -3
  139. package/dist/modules/organizations/index.d.cts +1 -1
  140. package/dist/modules/organizations/index.d.ts +1 -1
  141. package/dist/modules/organizations/index.js +1 -1
  142. package/dist/modules/planmagnet/index.d.cts +1 -1
  143. package/dist/modules/planmagnet/index.d.ts +1 -1
  144. package/dist/modules/planmagnet/index.js +1 -1
  145. package/dist/modules/products/index.d.cts +1 -1
  146. package/dist/modules/products/index.d.ts +1 -1
  147. package/dist/modules/products/index.js +1 -1
  148. package/dist/modules/proserviceworld/index.d.cts +1 -1
  149. package/dist/modules/proserviceworld/index.d.ts +1 -1
  150. package/dist/modules/proserviceworld/index.js +1 -1
  151. package/dist/modules/rbac/index.d.cts +1 -1
  152. package/dist/modules/rbac/index.d.ts +1 -1
  153. package/dist/modules/rbac/index.js +1 -1
  154. package/dist/modules/sandbox/index.d.cts +1 -1
  155. package/dist/modules/sandbox/index.d.ts +1 -1
  156. package/dist/modules/sandbox/index.js +1 -1
  157. package/dist/modules/scheduler/index.cjs +2 -2
  158. package/dist/modules/scheduler/index.d.cts +1 -1
  159. package/dist/modules/scheduler/index.d.ts +1 -1
  160. package/dist/modules/scheduler/index.js +1 -1
  161. package/dist/modules/security/index.cjs +1 -1
  162. package/dist/modules/security/index.d.cts +1 -1
  163. package/dist/modules/security/index.d.ts +1 -1
  164. package/dist/modules/security/index.js +1 -1
  165. package/dist/modules/semanticfed/index.cjs +61 -41
  166. package/dist/modules/semanticfed/index.d.cts +1 -1
  167. package/dist/modules/semanticfed/index.d.ts +1 -1
  168. package/dist/modules/semanticfed/index.js +1 -287
  169. package/dist/modules/semanticfed-sql/index.cjs +21 -0
  170. package/dist/modules/semanticfed-sql/index.d.cts +7 -0
  171. package/dist/modules/semanticfed-sql/index.d.ts +7 -0
  172. package/dist/modules/semanticfed-sql/index.js +1 -0
  173. package/dist/modules/store/index.cjs +2 -2
  174. package/dist/modules/store/index.d.cts +1 -1
  175. package/dist/modules/store/index.d.ts +1 -1
  176. package/dist/modules/store/index.js +1 -1
  177. package/dist/modules/subscriberbot/index.d.cts +1 -1
  178. package/dist/modules/subscriberbot/index.d.ts +1 -1
  179. package/dist/modules/subscriberbot/index.js +1 -1
  180. package/dist/modules/support/index.d.cts +1 -1
  181. package/dist/modules/support/index.d.ts +1 -1
  182. package/dist/modules/support/index.js +1 -1
  183. package/dist/modules/tags/index.cjs +2 -2
  184. package/dist/modules/tags/index.d.cts +1 -1
  185. package/dist/modules/tags/index.d.ts +1 -1
  186. package/dist/modules/tags/index.js +1 -1
  187. package/dist/modules/technospam/index.cjs +2 -2
  188. package/dist/modules/technospam/index.d.cts +1 -1
  189. package/dist/modules/technospam/index.d.ts +1 -1
  190. package/dist/modules/technospam/index.js +1 -1
  191. package/dist/modules/theculturepost/index.d.cts +1 -1
  192. package/dist/modules/theculturepost/index.d.ts +1 -1
  193. package/dist/modules/theculturepost/index.js +1 -1
  194. package/dist/modules/theglobalfuel/index.d.cts +1 -1
  195. package/dist/modules/theglobalfuel/index.d.ts +1 -1
  196. package/dist/modules/theglobalfuel/index.js +1 -1
  197. package/dist/modules/timecampus/index.d.cts +1 -1
  198. package/dist/modules/timecampus/index.d.ts +1 -1
  199. package/dist/modules/timecampus/index.js +1 -1
  200. package/dist/modules/tours/index.d.cts +1 -1
  201. package/dist/modules/tours/index.d.ts +1 -1
  202. package/dist/modules/tours/index.js +1 -1
  203. package/dist/modules/vibecontrols/index.d.cts +1 -1
  204. package/dist/modules/vibecontrols/index.d.ts +1 -1
  205. package/dist/modules/vibecontrols/index.js +1 -1
  206. package/dist/modules/workspaces/index.d.cts +1 -1
  207. package/dist/modules/workspaces/index.d.ts +1 -1
  208. package/dist/modules/workspaces/index.js +1 -1
  209. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {o,p}from'../../chunk-AQ5I53SK.js';import {readFileSync}from'fs';var M=`
1
+ import {o,p}from'../../chunk-2OISIPE6.js';import {readFileSync}from'fs';var M=`
2
2
  query MybListPrograms(
3
3
  $memberId: ID
4
4
  $status: MybProgramStatus
@@ -23,4 +23,4 @@
23
23
  id channel enabled frequency
24
24
  }
25
25
  }
26
- `;function R(e){let n=e.command("notifications").description("Notification inbox & preferences");n.command("list").description("List the current user's notifications").option("--unread","Only unread").option("--channel <c>","Filter by channel").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let r={};t.unread&&(r.isRead=!1),t.channel&&(r.channel=t.channel.toUpperCase());let l=await d(v,{filter:Object.keys(r).length?r:void 0,limit:t.limit,offset:0});h(t,l.notifications.items,{headers:["ID","Title","Channel","Status","Read","When"],rows:l.notifications.items.map(s=>[g(s.id,12),g(s.title??"-",40),s.channel??"-",T(s.status),String(!!s.isRead),E(s.createdAt)])});}catch(r){f(r);}}),n.command("read").description("Mark a notification as read").argument("<id>").action(async t=>{try{await d(A,{id:t}),C("Notification marked read");}catch(r){f(r);}});let i=n.command("preferences").description("Notification preferences");i.command("get").description("Show current user's notification preferences").option("--user <id>","Override user id").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let r=w().auth.read(),l=t.user??r?.workspaceId??"",s=l?{userId:l}:{},x=await d(O,{filter:Object.keys(s).length?s:void 0,limit:t.limit});h(t,x.notificationPreferences.items,{headers:["ID","Channel","Enabled","Frequency","Scope"],rows:x.notificationPreferences.items.map(p=>[g(p.id,12),p.channel,String(p.enabled),p.frequency??"-",p.scope??"-"])});}catch(r){f(r);}}),i.command("set").description("Set a notification preference").requiredOption("--channel <c>","EMAIL|SMS|IN_APP|PUSH|WEBHOOK").requiredOption("--enabled <bool>","true or false").option("--frequency <f>","IMMEDIATE|HOURLY|DAILY|WEEKLY","IMMEDIATE").option("--scope <s>","GLOBAL|WORKSPACE|VIBE","GLOBAL").option("--topic <id>").option("--user <id>").action(async t=>{try{let r={channel:t.channel.toUpperCase(),enabled:t.enabled==="true",frequency:(t.frequency??"IMMEDIATE").toUpperCase(),scope:(t.scope??"GLOBAL").toUpperCase(),topicId:t.topic,userId:t.user??w().auth.read()?.workspaceId};await d(S,{input:r}),C("Preference saved");}catch(r){f(r);}});}var U={id:"notifications",version:"1.0.0",displayName:"Notifications",dependsOn:["auth"],register(e,n){b(n),R(e);}},Ze=U;module.exports=Ze;
26
+ `;function R(e){let n=e.command("notifications").description("Notification inbox & preferences");n.command("list").description("List the current user's notifications").option("--unread","Only unread").option("--channel <c>","Filter by channel").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let r={};t.unread&&(r.isRead=!1),t.channel&&(r.channel=t.channel.toUpperCase());let l=await d(v,{filter:Object.keys(r).length?r:void 0,limit:t.limit,offset:0});h(t,l.notifications.items,{headers:["ID","Title","Channel","Status","Read","When"],rows:l.notifications.items.map(s=>[g(s.id,12),g(s.title??"-",40),s.channel??"-",T(s.status),String(!!s.isRead),E(s.createdAt)])});}catch(r){f(r);}}),n.command("read").description("Mark a notification as read").argument("<id>").action(async t=>{try{await d(A,{id:t}),C("Notification marked read");}catch(r){f(r);}});let i=n.command("preferences").description("Notification preferences");i.command("get").description("Show current user's notification preferences").option("--user <id>","Override user id").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let r=w().auth.read(),l=t.user??r?.workspaceId??"",s=l?{userId:l}:{},k=await d(O,{filter:Object.keys(s).length?s:void 0,limit:t.limit});h(t,k.notificationPreferences.items,{headers:["ID","Channel","Enabled","Frequency","Scope"],rows:k.notificationPreferences.items.map(p=>[g(p.id,12),p.channel,String(p.enabled),p.frequency??"-",p.scope??"-"])});}catch(r){f(r);}}),i.command("set").description("Set a notification preference").requiredOption("--channel <c>","EMAIL|SMS|IN_APP|PUSH|WEBHOOK").requiredOption("--enabled <bool>","true or false").option("--frequency <f>","IMMEDIATE|HOURLY|DAILY|WEEKLY","IMMEDIATE").option("--scope <s>","GLOBAL|WORKSPACE|VIBE","GLOBAL").option("--topic <id>").option("--user <id>").action(async t=>{try{let r={channel:t.channel.toUpperCase(),enabled:t.enabled==="true",frequency:(t.frequency??"IMMEDIATE").toUpperCase(),scope:(t.scope??"GLOBAL").toUpperCase(),topicId:t.topic,userId:t.user??w().auth.read()?.workspaceId};await d(S,{input:r}),C("Preference saved");}catch(r){f(r);}});}var U={id:"notifications",version:"1.0.0",displayName:"Notifications",dependsOn:["auth"],register(e,n){b(n),R(e);}},Ze=U;module.exports=Ze;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,c,i,r,p,q,h as h$1,k,u}from'../../chunk-AQE5ZDEN.js';import'../../chunk-AQ5I53SK.js';var h=`
1
+ import {a,c,i,r,p,q,h as h$1,k,u}from'../../chunk-VL67DTWH.js';import'../../chunk-2OISIPE6.js';var h=`
2
2
  query ListNotifications($filter: NotificationFilterInput, $limit: Int, $offset: Int) {
3
3
  notifications(filter: $filter, limit: $limit, offset: $offset) {
4
4
  items { id title message channel status isRead createdAt }
@@ -15,7 +15,7 @@
15
15
  hasMore
16
16
  }
17
17
  }
18
- `,b=`
18
+ `,v=`
19
19
  query MyOrganizationInvites($status: InviteStatus, $limit: Int, $offset: Int) {
20
20
  myOrganizationInvites(status: $status, limit: $limit, offset: $offset) {
21
21
  items {
@@ -32,7 +32,7 @@
32
32
  hasMore
33
33
  }
34
34
  }
35
- `,v=`
35
+ `,b=`
36
36
  mutation AcceptOrganizationInvite($inviteId: ID!) {
37
37
  acceptOrganizationInvite(inviteId: $inviteId) {
38
38
  id
@@ -50,4 +50,4 @@
50
50
  respondedAt
51
51
  }
52
52
  }
53
- `;function E(e){let t=e.command("organizations").description("Organization membership & invites");t.command("list").description("List organizations the current user is a member of").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let o=await p(I,{limit:n.limit,offset:0});f(n,o.myOrganizations.items,{headers:["ID","Name","Slug","TenantID","Status","Created"],rows:o.myOrganizations.items.map(i=>[d(i.id,12),i.name,i.slug,d(i.tenantId,12),h(i.status),w(i.createdAt)])});}catch(o){l(o);}});let s=t.command("invites").description("Manage org invites");s.command("list").description("List pending org invites for the current user").option("--status <s>","Filter by invite status","PENDING").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let o=await p(b,{status:n.status?.toUpperCase(),limit:n.limit,offset:0});f(n,o.myOrganizationInvites.items,{headers:["InviteID","OrgID","Email","Role","Status","Expires"],rows:o.myOrganizationInvites.items.map(i=>[d(i.id,12),d(i.organizationId,12),i.email,i.role,h(i.status),w(i.expiresAt)])});}catch(o){l(o);}}),s.command("accept").description("Accept an organization invite").argument("<inviteId>").action(async n=>{try{await p(v,{inviteId:n}),m("Invite accepted");}catch(o){l(o);}}),s.command("decline").description("Decline an organization invite").argument("<inviteId>").action(async n=>{try{await p(T,{inviteId:n}),m("Invite declined");}catch(o){l(o);}});}var G={id:"organizations",version:"1.0.0",displayName:"Organizations",dependsOn:["auth"],register(e,t){y(t),E(e);}},Je=G;module.exports=Je;
53
+ `;function E(e){let t=e.command("organizations").description("Organization membership & invites");t.command("list").description("List organizations the current user is a member of").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let o=await p(I,{limit:n.limit,offset:0});f(n,o.myOrganizations.items,{headers:["ID","Name","Slug","TenantID","Status","Created"],rows:o.myOrganizations.items.map(i=>[d(i.id,12),i.name,i.slug,d(i.tenantId,12),h(i.status),w(i.createdAt)])});}catch(o){l(o);}});let s=t.command("invites").description("Manage org invites");s.command("list").description("List pending org invites for the current user").option("--status <s>","Filter by invite status","PENDING").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let o=await p(v,{status:n.status?.toUpperCase(),limit:n.limit,offset:0});f(n,o.myOrganizationInvites.items,{headers:["InviteID","OrgID","Email","Role","Status","Expires"],rows:o.myOrganizationInvites.items.map(i=>[d(i.id,12),d(i.organizationId,12),i.email,i.role,h(i.status),w(i.expiresAt)])});}catch(o){l(o);}}),s.command("accept").description("Accept an organization invite").argument("<inviteId>").action(async n=>{try{await p(b,{inviteId:n}),m("Invite accepted");}catch(o){l(o);}}),s.command("decline").description("Decline an organization invite").argument("<inviteId>").action(async n=>{try{await p(T,{inviteId:n}),m("Invite declined");}catch(o){l(o);}});}var G={id:"organizations",version:"1.0.0",displayName:"Organizations",dependsOn:["auth"],register(e,t){y(t),E(e);}},Je=G;module.exports=Je;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,c,i,r,p,q,h,k}from'../../chunk-AQE5ZDEN.js';import'../../chunk-AQ5I53SK.js';var f=`
1
+ import {a,c,i,r,p,q,h,k}from'../../chunk-VL67DTWH.js';import'../../chunk-2OISIPE6.js';var f=`
2
2
  query MyOrganizations($limit: Int, $offset: Int) {
3
3
  myOrganizations(limit: $limit, offset: $offset) {
4
4
  items {
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,h as h$1,k as k$1,v as v$1,r}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var I="pageInfo { hasNextPage endCursor } totalCount",k=`
1
+ import {a,b as b$1,i,h as h$1,k as k$1,v as v$1,r}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';var I="pageInfo { hasNextPage endCursor } totalCount",k=`
2
2
  id key name description status methodology ownerId programId
3
3
  startDate endDate tags createdAt updatedAt workspaceId
4
4
  `,X=`
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,c,i,r,p,h as h$1,k as k$1}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var b=`
1
+ import {a,c,i,r,p,h as h$1,k as k$1}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';var b=`
2
2
  query ListProducts($filter: PlatformProductFilterInput, $limit: Int, $offset: Int) {
3
3
  platformProducts(filter: $filter, limit: $limit, offset: $offset) {
4
4
  items { id name slug status logoUrl appUrl }
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1,d}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var P=`
1
+ import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1,d}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';var P=`
2
2
  query PswClient($id: ID!) {
3
3
  pswClient(id: $id) {
4
4
  id name type status industry contactName contactEmail contactPhone
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,i,r,h as h$1,k,p,u,b,c}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var h=`
1
+ import {a,i,r,h as h$1,k,p,u,b,c}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';var h=`
2
2
  query ListRoles($filter: RoleFilterInput, $pagination: PaginationInput, $scopeId: String!) {
3
3
  roles(filter: $filter, pagination: $pagination, scopeId: $scopeId) {
4
4
  id
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1 +1 @@
1
- import {Kc,Lc,Mc,Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Xc,Yc,Zc,Wc,_c,ad,$c,bd,cd,dd,ed,fd,gd}from'../../chunk-ZGT7IIOP.js';import {a,b,i,r,p,q,h,k,s as s$1,u}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';function s(){let p=u().auth.read();if(!p?.workspaceId)throw new o("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:p.workspaceId}}function $(p$1){let d=p$1.command("sandbox").description("Manage sandboxes");d.command("list").description("List sandboxes").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t={};n.status&&(t.status=n.status.toUpperCase()),n.template&&(t.template=n.template.toUpperCase());let u=(await b(Kc,{context:s(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n.limit,offset:0}})).listSandboxes.items;i(n,u,{headers:["ID","Name","Template","Mode","Status","TTL","Created"],rows:u.map(c=>[r(c.id,12),c.name,c.template,c.mode,p(c.status),c.ttlSeconds?`${c.ttlSeconds}s`:"-",q(c.createdAt)])});}catch(t){h(t);}}),d.command("get").description("Get sandbox details").argument("<id>").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=await b(Lc,{context:s(),id:n});if(!e.getSandbox)throw new o("Sandbox not found");i(t,e.getSandbox);}catch(e){h(e);}}),d.command("create").description("Create sandbox").requiredOption("--name <name>","Sandbox name").option("--template <template>","Template type","VIBECONTROLS").option("--mode <mode>","Mode (DEPLOYMENT or JOB)","DEPLOYMENT").option("--ttl <seconds>","TTL in seconds",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Mc,{input:{name:n.name,template:n.template.toUpperCase(),mode:n.mode.toUpperCase(),ttlSeconds:n.ttl,context:s()}});k("Sandbox created"),i(n,t.createSandbox);}catch(t){h(t);}}),d.command("stop").description("Stop sandbox").argument("<id>").action(async n=>{try{await b(Nc,{context:s(),id:n}),k("Sandbox stopped");}catch(t){h(t);}}),d.command("delete").description("Delete sandbox").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await s$1("Delete this sandbox?",t.force))return;await b(Oc,{context:s(),id:n}),k("Sandbox deleted");}catch(e){h(e);}}),d.command("extend").description("Extend sandbox TTL").argument("<id>").option("--seconds <n>","Extend by seconds",parseInt).option("--minutes <n>","Extend by minutes",parseInt).option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e;if(t.seconds?e=t.seconds:t.minutes&&(e=t.minutes*60),!e)throw new o("Either --seconds or --minutes is required");let u=await b(Pc,{context:s(),id:n,additionalSeconds:e});k(`Sandbox extended by ${e}s`),i(t,u.extendSandboxTTL);}catch(e){h(e);}});let f=d.command("templates").description("Manage sandbox templates");f.command("list").description("List sandbox templates").option("--template <kind>","Filter by template kind").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Qc,{context:s(),template:n.template?.toUpperCase(),pagination:{limit:n.limit,offset:0}});i(n,t.listSandboxTemplates.items);}catch(t){h(t);}}),f.command("get").description("Get template details").argument("<id>").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=await b(Rc,{context:s(),id:n});if(!e.getSandboxTemplate)throw new o("Template not found");i(t,e.getSandboxTemplate);}catch(e){h(e);}}),f.command("create").description("Create sandbox template").requiredOption("--name <name>","Template name").requiredOption("--template <kind>","Template kind").option("--description <desc>","Description").option("--default","Mark as default").option("--ttl <seconds>","Default TTL",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t={name:n.name,template:n.template.toUpperCase(),context:s()};n.description&&(t.description=n.description),n.default&&(t.isDefault=!0),n.ttl!==void 0&&(t.ttlSeconds=n.ttl);let e=await b(Sc,{input:t});k("Template created"),i(n,e.createSandboxTemplate);}catch(t){h(t);}}),f.command("update").description("Update sandbox template").argument("<id>").option("--name <name>","New name").option("--description <desc>","New description").option("--default","Mark as default").option("--ttl <seconds>","New default TTL",parseInt).option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={id:n,context:s()};t.name&&(e.name=t.name),t.description&&(e.description=t.description),t.default!==void 0&&(e.isDefault=t.default),t.ttl!==void 0&&(e.ttlSeconds=t.ttl);let u=await b(Tc,{input:e});k("Template updated"),i(t,u.updateSandboxTemplate);}catch(e){h(e);}}),f.command("delete").description("Delete sandbox template").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await s$1("Delete this template?",t.force))return;await b(Uc,{context:s(),id:n}),k("Template deleted");}catch(e){h(e);}});let l=d.command("tags").description("Manage sandbox tags");l.command("list").description("List available sandbox tags").option("--query <q>","Search query").option("--limit <n>","Page size",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Vc,{query:n.query,limit:n.limit});i(n,t.availableSandboxTags);}catch(t){h(t);}}),l.command("create").description("Create a new sandbox tag").requiredOption("--label <label>","Tag label").option("--color <color>","Tag color").option("-f, --format <format>","Output format").action(async n=>{try{let t={label:n.label};n.color&&(t.color=n.color);let e=await b(Xc,{input:t});k("Tag created"),i(n,e.createSandboxTag);}catch(t){h(t);}}),l.command("attach").description("Attach a tag to a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tag <id>","Tag ID").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Yc,{input:{sandboxId:n.sandbox,tagId:n.tag}});k("Tag attached"),i(n,t.tagSandbox);}catch(t){h(t);}}),l.command("detach").description("Detach a tag from a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tag <id>","Tag ID").action(async n=>{try{await b(Zc,{input:{sandboxId:n.sandbox,tagId:n.tag}}),k("Tag detached");}catch(t){h(t);}}),l.command("get").description("Get tags assigned to a sandbox").requiredOption("--sandbox <id>","Sandbox ID").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Wc,{input:{sandboxId:n.sandbox}});i(n,t.getSandboxTags);}catch(t){h(t);}}),l.command("replace").description("Replace all tags on a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tags <ids...>","Tag IDs (space separated)").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(_c,{input:{sandboxId:n.sandbox,tagIds:n.tags}});k("Tags replaced"),i(n,t.replaceSandboxTags);}catch(t){h(t);}});let m=d.command("admin").description("Admin / observability ops");m.command("nodes").description("List sandbox nodes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(ad,{context:s()});i(n,t.listSandboxNodes);}catch(t){h(t);}}),m.command("all").description("List all sandboxes (admin)").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t={};n.status&&(t.status=n.status.toUpperCase()),n.template&&(t.template=n.template.toUpperCase());let e=await b($c,{context:s(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n.limit,offset:0}});i(n,e.listAllSandboxes.items);}catch(t){h(t);}}),m.command("active").description("Get active sandboxes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(bd,{context:s()});i(n,t.getActiveSandboxes);}catch(t){h(t);}}),m.command("activity").description("Get recent sandbox activity").option("--limit <n>","Max items",parseInt,20).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(cd,{context:s(),limit:n.limit});i(n,t.getRecentSandboxActivity.items);}catch(t){h(t);}}),m.command("stats").description("Get sandbox stats").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(dd,{context:s()});i(n,t.getSandboxStats);}catch(t){h(t);}}),m.command("logs").description("Get logs for a sandbox container").argument("<id>").requiredOption("--container <name>","Container name").option("--tail <n>","Tail lines",parseInt,100).action(async(n,t)=>{try{let e=await b(ed,{context:s(),id:n,containerName:t.container,tailLines:t.tail});process.stdout.write(e.getSandboxLogs);}catch(e){h(e);}});let b$1=m.command("config").description("Sandbox config");b$1.command("get").description("Get sandbox config").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(fd,{context:s()});i(n,t.getSandboxConfig);}catch(t){h(t);}}),b$1.command("set").description("Update sandbox config").option("--default-ttl <seconds>","Default TTL",parseInt).option("--max-ttl <seconds>","Max TTL",parseInt).option("--max-per-user <n>","Max concurrent per user",parseInt).option("--max-per-workspace <n>","Max concurrent per workspace",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t={context:s()};n.defaultTtl!==void 0&&(t.defaultTtlSeconds=n.defaultTtl),n.maxTtl!==void 0&&(t.maxTtlSeconds=n.maxTtl),n.maxPerUser!==void 0&&(t.maxConcurrentPerUser=n.maxPerUser),n.maxPerWorkspace!==void 0&&(t.maxConcurrentPerWorkspace=n.maxPerWorkspace);let e=await b(gd,{input:t});k("Config updated"),i(n,e.updateSandboxConfig);}catch(t){h(t);}});}var K={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],register(p,d){a(d),$(p);}},it=K;export{it as default};
1
+ import {Kc,Lc,Mc,Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Xc,Yc,Zc,Wc,_c,ad,$c,bd,cd,dd,ed,fd,gd}from'../../chunk-ZGT7IIOP.js';import {a,b,i,r,p,q,h,k,s as s$1,u}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';function s(){let p=u().auth.read();if(!p?.workspaceId)throw new o("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:p.workspaceId}}function $(p$1){let d=p$1.command("sandbox").description("Manage sandboxes");d.command("list").description("List sandboxes").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t={};n.status&&(t.status=n.status.toUpperCase()),n.template&&(t.template=n.template.toUpperCase());let u=(await b(Kc,{context:s(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n.limit,offset:0}})).listSandboxes.items;i(n,u,{headers:["ID","Name","Template","Mode","Status","TTL","Created"],rows:u.map(c=>[r(c.id,12),c.name,c.template,c.mode,p(c.status),c.ttlSeconds?`${c.ttlSeconds}s`:"-",q(c.createdAt)])});}catch(t){h(t);}}),d.command("get").description("Get sandbox details").argument("<id>").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=await b(Lc,{context:s(),id:n});if(!e.getSandbox)throw new o("Sandbox not found");i(t,e.getSandbox);}catch(e){h(e);}}),d.command("create").description("Create sandbox").requiredOption("--name <name>","Sandbox name").option("--template <template>","Template type","VIBECONTROLS").option("--mode <mode>","Mode (DEPLOYMENT or JOB)","DEPLOYMENT").option("--ttl <seconds>","TTL in seconds",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Mc,{input:{name:n.name,template:n.template.toUpperCase(),mode:n.mode.toUpperCase(),ttlSeconds:n.ttl,context:s()}});k("Sandbox created"),i(n,t.createSandbox);}catch(t){h(t);}}),d.command("stop").description("Stop sandbox").argument("<id>").action(async n=>{try{await b(Nc,{context:s(),id:n}),k("Sandbox stopped");}catch(t){h(t);}}),d.command("delete").description("Delete sandbox").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await s$1("Delete this sandbox?",t.force))return;await b(Oc,{context:s(),id:n}),k("Sandbox deleted");}catch(e){h(e);}}),d.command("extend").description("Extend sandbox TTL").argument("<id>").option("--seconds <n>","Extend by seconds",parseInt).option("--minutes <n>","Extend by minutes",parseInt).option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e;if(t.seconds?e=t.seconds:t.minutes&&(e=t.minutes*60),!e)throw new o("Either --seconds or --minutes is required");let u=await b(Pc,{context:s(),id:n,additionalSeconds:e});k(`Sandbox extended by ${e}s`),i(t,u.extendSandboxTTL);}catch(e){h(e);}});let f=d.command("templates").description("Manage sandbox templates");f.command("list").description("List sandbox templates").option("--template <kind>","Filter by template kind").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Qc,{context:s(),template:n.template?.toUpperCase(),pagination:{limit:n.limit,offset:0}});i(n,t.listSandboxTemplates.items);}catch(t){h(t);}}),f.command("get").description("Get template details").argument("<id>").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=await b(Rc,{context:s(),id:n});if(!e.getSandboxTemplate)throw new o("Template not found");i(t,e.getSandboxTemplate);}catch(e){h(e);}}),f.command("create").description("Create sandbox template").requiredOption("--name <name>","Template name").requiredOption("--template <kind>","Template kind").option("--description <desc>","Description").option("--default","Mark as default").option("--ttl <seconds>","Default TTL",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t={name:n.name,template:n.template.toUpperCase(),context:s()};n.description&&(t.description=n.description),n.default&&(t.isDefault=!0),n.ttl!==void 0&&(t.ttlSeconds=n.ttl);let e=await b(Sc,{input:t});k("Template created"),i(n,e.createSandboxTemplate);}catch(t){h(t);}}),f.command("update").description("Update sandbox template").argument("<id>").option("--name <name>","New name").option("--description <desc>","New description").option("--default","Mark as default").option("--ttl <seconds>","New default TTL",parseInt).option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e={id:n,context:s()};t.name&&(e.name=t.name),t.description&&(e.description=t.description),t.default!==void 0&&(e.isDefault=t.default),t.ttl!==void 0&&(e.ttlSeconds=t.ttl);let u=await b(Tc,{input:e});k("Template updated"),i(t,u.updateSandboxTemplate);}catch(e){h(e);}}),f.command("delete").description("Delete sandbox template").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await s$1("Delete this template?",t.force))return;await b(Uc,{context:s(),id:n}),k("Template deleted");}catch(e){h(e);}});let l=d.command("tags").description("Manage sandbox tags");l.command("list").description("List available sandbox tags").option("--query <q>","Search query").option("--limit <n>","Page size",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Vc,{query:n.query,limit:n.limit});i(n,t.availableSandboxTags);}catch(t){h(t);}}),l.command("create").description("Create a new sandbox tag").requiredOption("--label <label>","Tag label").option("--color <color>","Tag color").option("-f, --format <format>","Output format").action(async n=>{try{let t={label:n.label};n.color&&(t.color=n.color);let e=await b(Xc,{input:t});k("Tag created"),i(n,e.createSandboxTag);}catch(t){h(t);}}),l.command("attach").description("Attach a tag to a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tag <id>","Tag ID").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Yc,{input:{sandboxId:n.sandbox,tagId:n.tag}});k("Tag attached"),i(n,t.tagSandbox);}catch(t){h(t);}}),l.command("detach").description("Detach a tag from a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tag <id>","Tag ID").action(async n=>{try{await b(Zc,{input:{sandboxId:n.sandbox,tagId:n.tag}}),k("Tag detached");}catch(t){h(t);}}),l.command("get").description("Get tags assigned to a sandbox").requiredOption("--sandbox <id>","Sandbox ID").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(Wc,{input:{sandboxId:n.sandbox}});i(n,t.getSandboxTags);}catch(t){h(t);}}),l.command("replace").description("Replace all tags on a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tags <ids...>","Tag IDs (space separated)").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(_c,{input:{sandboxId:n.sandbox,tagIds:n.tags}});k("Tags replaced"),i(n,t.replaceSandboxTags);}catch(t){h(t);}});let m=d.command("admin").description("Admin / observability ops");m.command("nodes").description("List sandbox nodes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(ad,{context:s()});i(n,t.listSandboxNodes);}catch(t){h(t);}}),m.command("all").description("List all sandboxes (admin)").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t={};n.status&&(t.status=n.status.toUpperCase()),n.template&&(t.template=n.template.toUpperCase());let e=await b($c,{context:s(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n.limit,offset:0}});i(n,e.listAllSandboxes.items);}catch(t){h(t);}}),m.command("active").description("Get active sandboxes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(bd,{context:s()});i(n,t.getActiveSandboxes);}catch(t){h(t);}}),m.command("activity").description("Get recent sandbox activity").option("--limit <n>","Max items",parseInt,20).option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(cd,{context:s(),limit:n.limit});i(n,t.getRecentSandboxActivity.items);}catch(t){h(t);}}),m.command("stats").description("Get sandbox stats").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(dd,{context:s()});i(n,t.getSandboxStats);}catch(t){h(t);}}),m.command("logs").description("Get logs for a sandbox container").argument("<id>").requiredOption("--container <name>","Container name").option("--tail <n>","Tail lines",parseInt,100).action(async(n,t)=>{try{let e=await b(ed,{context:s(),id:n,containerName:t.container,tailLines:t.tail});process.stdout.write(e.getSandboxLogs);}catch(e){h(e);}});let b$1=m.command("config").description("Sandbox config");b$1.command("get").description("Get sandbox config").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(fd,{context:s()});i(n,t.getSandboxConfig);}catch(t){h(t);}}),b$1.command("set").description("Update sandbox config").option("--default-ttl <seconds>","Default TTL",parseInt).option("--max-ttl <seconds>","Max TTL",parseInt).option("--max-per-user <n>","Max concurrent per user",parseInt).option("--max-per-workspace <n>","Max concurrent per workspace",parseInt).option("-f, --format <format>","Output format").action(async n=>{try{let t={context:s()};n.defaultTtl!==void 0&&(t.defaultTtlSeconds=n.defaultTtl),n.maxTtl!==void 0&&(t.maxTtlSeconds=n.maxTtl),n.maxPerUser!==void 0&&(t.maxConcurrentPerUser=n.maxPerUser),n.maxPerWorkspace!==void 0&&(t.maxConcurrentPerWorkspace=n.maxPerWorkspace);let e=await b(gd,{input:t});k("Config updated"),i(n,e.updateSandboxConfig);}catch(t){h(t);}});}var K={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],register(p,d){a(d),$(p);}},it=K;export{it as default};
@@ -1,4 +1,4 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var l=class extends Error{exitCode;hint;constructor(c,s){super(c),this.name="CliUserError",this.exitCode=s?.exitCode??1,this.hint=s?.hint;}},m=class extends l{constructor(c,s){super(c,{exitCode:2,hint:s?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(c,s){super(c),this.name="CliInternalError",this.cause=s;}};var x=null;function v(r){x=r;}function g(){if(!x)throw new f("vibecontrols module helpers used before setHelpersContext was called");return x}function le(){let r=g();if(!r.auth.isAuthenticated())throw new m("Authentication required.",{hint:`Run \`${r.productName} auth login\` to authenticate.`})}async function o(r,c){return le(),g().gql.workspace.request(r,c)}function i(r){let c=r instanceof Error?r.message:String(r);throw new l(c)}function d(r,c,s){g().output.formatAndOutput(r,c,s);}function u(r){g().output.printSuccess(r);}function b(r){return g().output.formatStatus(r)}function E(r){return g().output.formatDate(r)}function C(r,c){return g().output.truncate(r,c)}function O(){return g()}var D=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var l=class extends Error{exitCode;hint;constructor(c,s){super(c),this.name="CliUserError",this.exitCode=s?.exitCode??1,this.hint=s?.hint;}},m=class extends l{constructor(c,s){super(c,{exitCode:2,hint:s?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(c,s){super(c),this.name="CliInternalError",this.cause=s;}};var x=null;function v(r){x=r;}function g(){if(!x)throw new f("vibecontrols module helpers used before setHelpersContext was called");return x}function le(){let r=g();if(!r.auth.isAuthenticated())throw new m("Authentication required.",{hint:`Run \`${r.productName} auth login\` to authenticate.`})}async function o(r,c){return le(),g().gql.workspace.request(r,c)}function i(r){let c=r instanceof Error?r.message:String(r);throw new l(c)}function d(r,c,s){g().output.formatAndOutput(r,c,s);}function u(r){g().output.printSuccess(r);}function b(r){return g().output.formatStatus(r)}function E(r){return g().output.formatDate(r)}function y(r,c){return g().output.truncate(r,c)}function O(){return g()}var D=`
2
2
  query ListScheduledJobs($workspaceId: ID!, $filter: JobFilterInput, $pagination: SchedulerPaginationInput) {
3
3
  scheduledJobs(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
4
4
  jobs { id name status scheduleType nextExecutionAt createdAt }
@@ -139,4 +139,4 @@
139
139
  query GetScheduledJobTags($input: GetScheduledJobTagsInput!) {
140
140
  getScheduledJobTags(input: $input) { id entityId tagId source }
141
141
  }
142
- `;function w(){let r=O().auth.read();if(!r?.workspaceId)throw new l("No workspace set. Run: vibecontrols workspace set <id>");return r.workspaceId}function Z(r){let c=r.command("scheduler").description("Scheduled jobs & executions"),s=c.command("jobs").description("Manage scheduled jobs");s.command("list").description("List scheduled jobs").option("--status <s>").option("--type <t>","CRON|INTERVAL|ONCE").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.type&&(t.scheduleType=e.type.toUpperCase());let n=await o(D,{workspaceId:w(),filter:Object.keys(t).length?t:void 0,pagination:{first:e.limit}});d(e,n.scheduledJobs.jobs,{headers:["ID","Name","Status","Type","NextRun","Created"],rows:n.scheduledJobs.jobs.map(a=>[C(a.id,12),a.name,b(a.status),a.scheduleType??"-",E(a.nextExecutionAt),E(a.createdAt)])});}catch(t){i(t);}}),s.command("get").description("Get a scheduled job").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(A,{id:e});if(!n.scheduledJob)throw new l(`Job ${e} not found`);d(t,n.scheduledJob);}catch(n){i(n);}}),s.command("create").description("Create a scheduled job").requiredOption("--name <name>").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").option("--cron <expr>","Cron expression (for CRON)").option("--interval-seconds <n>","",e=>parseInt(e,10)).option("--executor <e>","WEBHOOK|GRAPHQL|INTERNAL_API|NATS_TOPIC","WEBHOOK").option("--executor-config <json>","Executor config JSON","{}").option("-f, --format <format>").action(async e=>{try{let t={INTERVAL:"FIXED_INTERVAL",ONCE:"ONE_TIME"},n=e.type.toUpperCase(),a={name:e.name,scheduleType:t[n]??n,cronExpression:e.cron,intervalSeconds:e.intervalSeconds,executorType:(e.executor??"WEBHOOK").toUpperCase(),executorConfig:JSON.parse(e.executorConfig??"{}")},I=await o($,{workspaceId:w(),input:a});u(`Job created: ${I.createScheduledJob.name}`),d(e,I.createScheduledJob);}catch(t){i(t);}}),s.command("delete").description("Delete a scheduled job").argument("<id>").action(async e=>{try{await o(L,{id:e}),u("Job deleted");}catch(t){i(t);}});let ee=c.command("executions").description("Job execution history");s.command("pause").description("Pause a scheduled job").argument("<id>").action(async e=>{try{await o(_,{id:e}),u("Job paused");}catch(t){i(t);}}),s.command("resume").description("Resume a paused scheduled job").argument("<id>").action(async e=>{try{await o(P,{id:e}),u("Job resumed");}catch(t){i(t);}}),s.command("activate").description("Activate a draft or disabled schedule").argument("<id>").action(async e=>{try{await o(N,{id:e}),u("Schedule activated");}catch(t){i(t);}}),s.command("archive").description("Archive a scheduled job").argument("<id>").action(async e=>{try{await o(J,{id:e}),u("Schedule archived");}catch(t){i(t);}}),s.command("disable").description("Disable a schedule (with optional reason)").argument("<id>").option("--reason <r>").action(async(e,t)=>{try{await o(U,{id:e,reason:t.reason??null}),u("Schedule disabled");}catch(n){i(n);}}),s.command("clone").description("Clone a schedule (optionally to another workspace; overrides JSON)").argument("<sourceId>").option("--workspace <id>").option("--overrides <json>","Overrides JSON for CreateScheduledJobInput").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(q,{sourceId:e,newWorkspaceId:t.workspace??null,overrides:t.overrides?JSON.parse(t.overrides):null});u(`Cloned: ${n.cloneSchedule.id}`),d(t,n.cloneSchedule);}catch(n){i(n);}}),s.command("execute-now").description("Execute a scheduled job immediately").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(H,{id:e});u("Execution dispatched"),d(t,n.executeJobNow);}catch(n){i(n);}}),s.command("preview").description("Preview upcoming execution times without creating a job").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").option("--cron <expr>").option("--rrule <r>").option("--interval <n>","",e=>parseInt(e,10)).option("--interval-unit <u>","SECONDS|MINUTES|HOURS|DAYS").option("--count <n>","",e=>parseInt(e,10),5).option("--start <iso>").option("--end <iso>").option("--timezone <tz>").option("-f, --format <format>").action(async e=>{try{let t=await o(j,{scheduleType:e.type.toUpperCase(),cronExpression:e.cron??null,rrule:e.rrule??null,interval:e.interval??null,intervalUnit:e.intervalUnit??null,count:e.count??null,startDate:e.start??null,endDate:e.end??null,timezone:e.timezone??null});d(e,t.previewSchedule);}catch(t){i(t);}});let y=s.command("tags").description("Scheduled-job tag assignments");y.command("add").description("Tag a scheduled job").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").action(async e=>{try{let t={entityId:e.entity,tagId:e.tag};e.source&&(t.source=e.source),await o(K,{input:t}),u("Tagged");}catch(t){i(t);}}),y.command("remove").description("Remove a tag from a scheduled job").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async e=>{try{await o(Y,{input:{entityId:e.entity,tagId:e.tag}}),u("Tag removed");}catch(t){i(t);}}),y.command("replace").description("Replace all tags on a scheduled job").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async e=>{try{let t=await o(Q,{input:{entityId:e.entity,tagIds:e.tags.split(",")}});u("Tags replaced"),d(e,t.replaceScheduledJobTags);}catch(t){i(t);}}),y.command("list").description("List tags on a scheduled job").requiredOption("--entity <id>").option("-f, --format <format>").action(async e=>{try{let t=await o(X,{input:{entityId:e.entity}});d(e,t.getScheduledJobTags);}catch(t){i(t);}});let h=c.command("templates").description("Schedule templates");h.command("list").description("List schedule templates in the active workspace").option("--category <c>").option("--public","Only public templates").option("-f, --format <format>").action(async e=>{try{let t={};e.category&&(t.category=e.category),e.public!==void 0&&(t.isPublic=e.public);let n=await o(W,{workspaceId:w(),filter:Object.keys(t).length?t:void 0,pagination:{first:100}});d(e,n.scheduleTemplates.templates);}catch(t){i(t);}}),h.command("get").description("Get a schedule template").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(G,{id:e});if(!n.scheduleTemplate)throw new l(`Template ${e} not found`);d(t,n.scheduleTemplate);}catch(n){i(n);}}),h.command("create").description("Create a schedule template").requiredOption("--name <name>").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").requiredOption("--executor <e>","WEBHOOK|INTERNAL_API|NATS_TOPIC|GRAPHQL").requiredOption("--schedule-config <json>").requiredOption("--executor-config <json>").option("--description <d>").option("--category <c>").option("--public","Make template public").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,scheduleType:e.type.toUpperCase(),executorType:e.executor.toUpperCase(),scheduleConfig:JSON.parse(e.scheduleConfig),executorConfig:JSON.parse(e.executorConfig)};e.description&&(t.description=e.description),e.category&&(t.category=e.category),e.public!==void 0&&(t.isPublic=e.public);let n=await o(M,{workspaceId:w(),input:t});u("Template created"),d(e,n.createScheduleTemplate);}catch(t){i(t);}}),h.command("update").description("Update a schedule template").argument("<id>").option("--name <name>").option("--description <d>").option("--category <c>").option("--public","Toggle public").option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name!==void 0&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.category!==void 0&&(n.category=t.category),t.public!==void 0&&(n.isPublic=t.public),Object.keys(n).length===0)throw new l("Provide at least one field to update");let a=await o(B,{id:e,input:n});u("Template updated"),d(t,a.updateScheduleTemplate);}catch(n){i(n);}}),h.command("delete").description("Delete a schedule template").argument("<id>").action(async e=>{try{await o(V,{id:e}),u("Template deleted");}catch(t){i(t);}});let T=c.command("versions").description("Schedule version history");T.command("list").description("List version history for a schedule").argument("<scheduleId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(F,{scheduleId:e});d(t,n.scheduleVersionHistory,{headers:["ID","Version","ChangedBy","Reason","CreatedAt"],rows:n.scheduleVersionHistory.map(a=>[C(a.id,12),String(a.version),a.changedBy,a.changeReason??"-",E(a.createdAt)])});}catch(n){i(n);}}),T.command("restore").description("Restore a schedule to a prior version").requiredOption("--schedule <id>").requiredOption("--version <id>").option("-f, --format <format>").action(async e=>{try{let t=await o(z,{scheduleId:e.schedule,versionId:e.version});u("Version restored"),d(e,t.restoreScheduleVersion);}catch(t){i(t);}}),ee.command("list").description("List executions for a job").argument("<jobId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(R,{jobId:e,pagination:{first:t.limit}});d(t,n.jobExecutions.executions,{headers:["ID","Status","Started","Duration","Success"],rows:n.jobExecutions.executions.map(a=>[C(a.id,12),b(a.status),E(a.startedAt),String(a.duration??"-"),String(!!a.success)])});}catch(n){i(n);}});}var fe={id:"scheduler",version:"1.0.0",displayName:"Scheduler",dependsOn:["auth","workspaces"],register(r,c){v(c),Z(r);}},It=fe;module.exports=It;
142
+ `;function C(){let r=O().auth.read();if(!r?.workspaceId)throw new l("No workspace set. Run: vibecontrols workspace set <id>");return r.workspaceId}function Z(r){let c=r.command("scheduler").description("Scheduled jobs & executions"),s=c.command("jobs").description("Manage scheduled jobs");s.command("list").description("List scheduled jobs").option("--status <s>").option("--type <t>","CRON|INTERVAL|ONCE").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.type&&(t.scheduleType=e.type.toUpperCase());let n=await o(D,{workspaceId:C(),filter:Object.keys(t).length?t:void 0,pagination:{first:e.limit}});d(e,n.scheduledJobs.jobs,{headers:["ID","Name","Status","Type","NextRun","Created"],rows:n.scheduledJobs.jobs.map(a=>[y(a.id,12),a.name,b(a.status),a.scheduleType??"-",E(a.nextExecutionAt),E(a.createdAt)])});}catch(t){i(t);}}),s.command("get").description("Get a scheduled job").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(A,{id:e});if(!n.scheduledJob)throw new l(`Job ${e} not found`);d(t,n.scheduledJob);}catch(n){i(n);}}),s.command("create").description("Create a scheduled job").requiredOption("--name <name>").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").option("--cron <expr>","Cron expression (for CRON)").option("--interval-seconds <n>","",e=>parseInt(e,10)).option("--executor <e>","WEBHOOK|GRAPHQL|INTERNAL_API|NATS_TOPIC","WEBHOOK").option("--executor-config <json>","Executor config JSON","{}").option("-f, --format <format>").action(async e=>{try{let t={INTERVAL:"FIXED_INTERVAL",ONCE:"ONE_TIME"},n=e.type.toUpperCase(),a={name:e.name,scheduleType:t[n]??n,cronExpression:e.cron,intervalSeconds:e.intervalSeconds,executorType:(e.executor??"WEBHOOK").toUpperCase(),executorConfig:JSON.parse(e.executorConfig??"{}")},I=await o($,{workspaceId:C(),input:a});u(`Job created: ${I.createScheduledJob.name}`),d(e,I.createScheduledJob);}catch(t){i(t);}}),s.command("delete").description("Delete a scheduled job").argument("<id>").action(async e=>{try{await o(L,{id:e}),u("Job deleted");}catch(t){i(t);}});let ee=c.command("executions").description("Job execution history");s.command("pause").description("Pause a scheduled job").argument("<id>").action(async e=>{try{await o(_,{id:e}),u("Job paused");}catch(t){i(t);}}),s.command("resume").description("Resume a paused scheduled job").argument("<id>").action(async e=>{try{await o(P,{id:e}),u("Job resumed");}catch(t){i(t);}}),s.command("activate").description("Activate a draft or disabled schedule").argument("<id>").action(async e=>{try{await o(N,{id:e}),u("Schedule activated");}catch(t){i(t);}}),s.command("archive").description("Archive a scheduled job").argument("<id>").action(async e=>{try{await o(J,{id:e}),u("Schedule archived");}catch(t){i(t);}}),s.command("disable").description("Disable a schedule (with optional reason)").argument("<id>").option("--reason <r>").action(async(e,t)=>{try{await o(U,{id:e,reason:t.reason??null}),u("Schedule disabled");}catch(n){i(n);}}),s.command("clone").description("Clone a schedule (optionally to another workspace; overrides JSON)").argument("<sourceId>").option("--workspace <id>").option("--overrides <json>","Overrides JSON for CreateScheduledJobInput").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(q,{sourceId:e,newWorkspaceId:t.workspace??null,overrides:t.overrides?JSON.parse(t.overrides):null});u(`Cloned: ${n.cloneSchedule.id}`),d(t,n.cloneSchedule);}catch(n){i(n);}}),s.command("execute-now").description("Execute a scheduled job immediately").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(H,{id:e});u("Execution dispatched"),d(t,n.executeJobNow);}catch(n){i(n);}}),s.command("preview").description("Preview upcoming execution times without creating a job").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").option("--cron <expr>").option("--rrule <r>").option("--interval <n>","",e=>parseInt(e,10)).option("--interval-unit <u>","SECONDS|MINUTES|HOURS|DAYS").option("--count <n>","",e=>parseInt(e,10),5).option("--start <iso>").option("--end <iso>").option("--timezone <tz>").option("-f, --format <format>").action(async e=>{try{let t=await o(j,{scheduleType:e.type.toUpperCase(),cronExpression:e.cron??null,rrule:e.rrule??null,interval:e.interval??null,intervalUnit:e.intervalUnit??null,count:e.count??null,startDate:e.start??null,endDate:e.end??null,timezone:e.timezone??null});d(e,t.previewSchedule);}catch(t){i(t);}});let w=s.command("tags").description("Scheduled-job tag assignments");w.command("add").description("Tag a scheduled job").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").action(async e=>{try{let t={entityId:e.entity,tagId:e.tag};e.source&&(t.source=e.source),await o(K,{input:t}),u("Tagged");}catch(t){i(t);}}),w.command("remove").description("Remove a tag from a scheduled job").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async e=>{try{await o(Y,{input:{entityId:e.entity,tagId:e.tag}}),u("Tag removed");}catch(t){i(t);}}),w.command("replace").description("Replace all tags on a scheduled job").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async e=>{try{let t=await o(Q,{input:{entityId:e.entity,tagIds:e.tags.split(",")}});u("Tags replaced"),d(e,t.replaceScheduledJobTags);}catch(t){i(t);}}),w.command("list").description("List tags on a scheduled job").requiredOption("--entity <id>").option("-f, --format <format>").action(async e=>{try{let t=await o(X,{input:{entityId:e.entity}});d(e,t.getScheduledJobTags);}catch(t){i(t);}});let h=c.command("templates").description("Schedule templates");h.command("list").description("List schedule templates in the active workspace").option("--category <c>").option("--public","Only public templates").option("-f, --format <format>").action(async e=>{try{let t={};e.category&&(t.category=e.category),e.public!==void 0&&(t.isPublic=e.public);let n=await o(W,{workspaceId:C(),filter:Object.keys(t).length?t:void 0,pagination:{first:100}});d(e,n.scheduleTemplates.templates);}catch(t){i(t);}}),h.command("get").description("Get a schedule template").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(G,{id:e});if(!n.scheduleTemplate)throw new l(`Template ${e} not found`);d(t,n.scheduleTemplate);}catch(n){i(n);}}),h.command("create").description("Create a schedule template").requiredOption("--name <name>").requiredOption("--type <t>","CRON|FIXED_INTERVAL|ONE_TIME|RRULE|WINDOWED").requiredOption("--executor <e>","WEBHOOK|INTERNAL_API|NATS_TOPIC|GRAPHQL").requiredOption("--schedule-config <json>").requiredOption("--executor-config <json>").option("--description <d>").option("--category <c>").option("--public","Make template public").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,scheduleType:e.type.toUpperCase(),executorType:e.executor.toUpperCase(),scheduleConfig:JSON.parse(e.scheduleConfig),executorConfig:JSON.parse(e.executorConfig)};e.description&&(t.description=e.description),e.category&&(t.category=e.category),e.public!==void 0&&(t.isPublic=e.public);let n=await o(M,{workspaceId:C(),input:t});u("Template created"),d(e,n.createScheduleTemplate);}catch(t){i(t);}}),h.command("update").description("Update a schedule template").argument("<id>").option("--name <name>").option("--description <d>").option("--category <c>").option("--public","Toggle public").option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name!==void 0&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.category!==void 0&&(n.category=t.category),t.public!==void 0&&(n.isPublic=t.public),Object.keys(n).length===0)throw new l("Provide at least one field to update");let a=await o(B,{id:e,input:n});u("Template updated"),d(t,a.updateScheduleTemplate);}catch(n){i(n);}}),h.command("delete").description("Delete a schedule template").argument("<id>").action(async e=>{try{await o(V,{id:e}),u("Template deleted");}catch(t){i(t);}});let T=c.command("versions").description("Schedule version history");T.command("list").description("List version history for a schedule").argument("<scheduleId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(F,{scheduleId:e});d(t,n.scheduleVersionHistory,{headers:["ID","Version","ChangedBy","Reason","CreatedAt"],rows:n.scheduleVersionHistory.map(a=>[y(a.id,12),String(a.version),a.changedBy,a.changeReason??"-",E(a.createdAt)])});}catch(n){i(n);}}),T.command("restore").description("Restore a schedule to a prior version").requiredOption("--schedule <id>").requiredOption("--version <id>").option("-f, --format <format>").action(async e=>{try{let t=await o(z,{scheduleId:e.schedule,versionId:e.version});u("Version restored"),d(e,t.restoreScheduleVersion);}catch(t){i(t);}}),ee.command("list").description("List executions for a job").argument("<jobId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,t)=>{try{let n=await o(R,{jobId:e,pagination:{first:t.limit}});d(t,n.jobExecutions.executions,{headers:["ID","Status","Started","Duration","Success"],rows:n.jobExecutions.executions.map(a=>[y(a.id,12),b(a.status),E(a.startedAt),String(a.duration??"-"),String(!!a.success)])});}catch(n){i(n);}});}var fe={id:"scheduler",version:"1.0.0",displayName:"Scheduler",dependsOn:["auth","workspaces"],register(r,c){v(c),Z(r);}},It=fe;module.exports=It;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b,i,r,p,q as q$1,h as h$1,k as k$1,u}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var C=`
1
+ import {a,b,i,r,p,q as q$1,h as h$1,k as k$1,u}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';var C=`
2
2
  query ListScheduledJobs($workspaceId: ID!, $filter: JobFilterInput, $pagination: SchedulerPaginationInput) {
3
3
  scheduledJobs(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
4
4
  jobs { id name status scheduleType nextExecutionAt createdAt }
@@ -72,4 +72,4 @@
72
72
  id key updatedAt
73
73
  }
74
74
  }
75
- `;function w(){let r=I().auth.read();if(!r?.workspaceId)throw new c("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:r.workspaceId}}async function U(){if(process.stdin.isTTY)throw new c('Pipe the secret value via stdin (e.g. `echo -n "value" | vibecontrols security secrets set ...`).');let r=[];for await(let o of process.stdin)r.push(Buffer.isBuffer(o)?o:Buffer.from(o));return Buffer.concat(r).toString("utf8")}function G(r){let o=r.command("security").description("Security: vaults & secrets"),s=o.command("vaults").description("Vault management");s.command("list").description("List vaults").option("--scope <s>","WORKSPACE|GLOBAL|VIBE").option("--status <s>").option("--search <q>").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t={context:w()};e.scope&&(t.scope=e.scope.toUpperCase()),e.status&&(t.status=e.status.toUpperCase()),e.search&&(t.search=e.search);let n=await u(b,{filter:t,pagination:{limit:e.limit,offset:0}});d(e,n.getVaults.items,{headers:["ID","Name","Scope","Status","Created"],rows:n.getVaults.items.map(i=>[x(i.id,12),i.name,i.scope??"-",C(i.status),y(i.createdAt)])});}catch(t){p(t);}}),s.command("get").description("Get a vault").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await u(S,{id:e});if(!n.getVault)throw new c(`Vault ${e} not found`);d(t,n.getVault);}catch(n){p(n);}}),s.command("create").description("Create a vault").requiredOption("--name <name>").option("--description <s>").option("--scope <s>","WORKSPACE|GLOBAL|VIBE","WORKSPACE").option("--scope-id <id>","Scope id (defaults to current workspace)").option("--lock-after <minutes>","Auto-lock after N minutes",e=>parseInt(e,10)).option("-f, --format <format>").action(async e=>{try{let t=w(),n={context:t,name:e.name,description:e.description,scope:(e.scope??"WORKSPACE").toUpperCase(),scopeId:e.scopeId??t.workspaceId,lockAfterMinutes:e.lockAfter},i=await u(A,{input:n});l(`Vault created: ${i.createVault.name}`),d(e,i.createVault);}catch(t){p(t);}}),s.command("update").description("Update a vault").argument("<id>").option("--name <s>").option("--description <s>").option("--lock-after <minutes>","Auto-lock after N minutes",e=>parseInt(e,10)).option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.lockAfter!==void 0&&(n.lockAfterMinutes=t.lockAfter),!Object.keys(n).length)throw new c("No updates specified");let i=await u(O,{id:e,input:n});l("Vault updated"),d(t,i.updateVault);}catch(n){p(n);}}),s.command("delete").description("Delete a vault").argument("<id>").option("--archive","Archive instead of hard delete",false).action(async(e,t)=>{try{t.archive?(await u($,{id:e}),l("Vault archived")):(await u(R,{id:e}),l("Vault deleted"));}catch(n){p(n);}});let m=o.command("secrets").description("Secret management");m.command("list").description("List secrets in a vault").requiredOption("--vault <id>").option("--type <t>","Filter by secret type").option("--search <q>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={context:w()};e.type&&(t.type=e.type.toUpperCase()),e.search&&(t.search=e.search);let n=await u(D,{vaultId:e.vault,filter:t,pagination:{limit:e.limit,offset:0}});d(e,n.getSecrets.items,{headers:["ID","Key","Name","Type","Status","Created"],rows:n.getSecrets.items.map(i=>[x(i.id,12),i.key,i.name,i.type??"-",C(i.status),y(i.createdAt)])});}catch(t){p(t);}}),m.command("get").description("Get secret metadata (does NOT decrypt)").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await u(L,{id:e});if(!n.getSecret)throw new c(`Secret ${e} not found`);d(t,n.getSecret);}catch(n){p(n);}}),m.command("show").description("Decrypt and print a secret value (audited)").argument("<id>").action(async e=>{try{let t=await u(P,{id:e});process.stdout.write(t.decryptSecret.value);}catch(t){p(t);}}),m.command("set").description("Create a secret. Reads the value from stdin.").requiredOption("--vault <id>").requiredOption("--key <key>","Secret key (unique within vault)").requiredOption("--name <name>").option("--description <s>").option("--type <t>","API_KEY|PASSWORD|CERTIFICATE|TOKEN|OTHER","OTHER").option("--ephemeral","Mark as ephemeral").option("--expires <iso>").option("-f, --format <format>").action(async e=>{try{let t=await U(),n={context:w(),vaultId:e.vault,key:e.key,name:e.name,description:e.description,type:(e.type??"OTHER").toUpperCase(),isEphemeral:!!e.ephemeral,expiresAt:e.expires,value:t},i=await u(q,{input:n});l(`Secret created: ${i.createSecret.key}`),d(e,i.createSecret);}catch(t){p(t);}}),m.command("update").description("Update a secret. Pass --value via stdin to rotate.").argument("<id>").option("--name <s>").option("--description <s>").option("--rotate","Rotate value (reads new value from stdin)").option("--status <s>").option("-f, --format <format>").action(async(e,t)=>{try{if(t.rotate){let F=await U(),W=await u(N,{id:e,newValue:F});l("Secret rotated"),d(t,W.rotateSecret);return}let n={context:w()};if(t.name&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.status&&(n.status=t.status.toUpperCase()),Object.keys(n).length===1)throw new c("No updates specified (use --rotate to change value)");let i=await u(V,{id:e,input:n});l("Secret updated"),d(t,i.updateSecret);}catch(n){p(n);}}),m.command("delete").description("Delete a secret").argument("<id>").action(async e=>{try{await u(_,{id:e}),l("Secret deleted");}catch(t){p(t);}});}var ne={id:"security",version:"1.0.0",displayName:"Security",dependsOn:["auth","workspaces"],register(r,o){v(o),G(r);}},lt=ne;module.exports=lt;
75
+ `;function w(){let r=I().auth.read();if(!r?.workspaceId)throw new c("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:r.workspaceId}}async function U(){if(process.stdin.isTTY)throw new c('Pipe the secret value via stdin (e.g. `echo -n "value" | vibecontrols security secrets set ...`).');let r=[];for await(let o of process.stdin)r.push(Buffer.isBuffer(o)?o:Buffer.from(o));return Buffer.concat(r).toString("utf8")}function G(r){let o=r.command("security").description("Security: vaults & secrets"),s=o.command("vaults").description("Vault management");s.command("list").description("List vaults").option("--scope <s>","WORKSPACE|GLOBAL|VIBE").option("--status <s>").option("--search <q>").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t={context:w()};e.scope&&(t.scope=e.scope.toUpperCase()),e.status&&(t.status=e.status.toUpperCase()),e.search&&(t.search=e.search);let n=await u(b,{filter:t,pagination:{limit:e.limit,offset:0}});d(e,n.getVaults.items,{headers:["ID","Name","Scope","Status","Created"],rows:n.getVaults.items.map(i=>[x(i.id,12),i.name,i.scope??"-",C(i.status),y(i.createdAt)])});}catch(t){p(t);}}),s.command("get").description("Get a vault").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await u(S,{id:e});if(!n.getVault)throw new c(`Vault ${e} not found`);d(t,n.getVault);}catch(n){p(n);}}),s.command("create").description("Create a vault").requiredOption("--name <name>").option("--description <s>").option("--scope <s>","WORKSPACE|GLOBAL|VIBE","WORKSPACE").option("--scope-id <id>","Scope id (defaults to current workspace)").option("--lock-after <minutes>","Auto-lock after N minutes",e=>parseInt(e,10)).option("-f, --format <format>").action(async e=>{try{let t=w(),n={context:t,name:e.name,description:e.description,scope:(e.scope??"WORKSPACE").toUpperCase(),scopeId:e.scopeId??t.workspaceId,lockAfterMinutes:e.lockAfter},i=await u(A,{input:n});l(`Vault created: ${i.createVault.name}`),d(e,i.createVault);}catch(t){p(t);}}),s.command("update").description("Update a vault").argument("<id>").option("--name <s>").option("--description <s>").option("--lock-after <minutes>","Auto-lock after N minutes",e=>parseInt(e,10)).option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.lockAfter!==void 0&&(n.lockAfterMinutes=t.lockAfter),!Object.keys(n).length)throw new c("No updates specified");let i=await u(O,{id:e,input:n});l("Vault updated"),d(t,i.updateVault);}catch(n){p(n);}}),s.command("delete").description("Delete a vault").argument("<id>").option("--archive","Archive instead of hard delete",false).action(async(e,t)=>{try{t.archive?(await u($,{id:e}),l("Vault archived")):(await u(R,{id:e}),l("Vault deleted"));}catch(n){p(n);}});let m=o.command("secrets").description("Secret management");m.command("list").description("List secrets in a vault").requiredOption("--vault <id>").option("--type <t>","Filter by secret type").option("--search <q>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={context:w()};e.type&&(t.type=e.type.toUpperCase()),e.search&&(t.search=e.search);let n=await u(D,{vaultId:e.vault,filter:t,pagination:{limit:e.limit,offset:0}});d(e,n.getSecrets.items,{headers:["ID","Key","Name","Type","Status","Created"],rows:n.getSecrets.items.map(i=>[x(i.id,12),i.key,i.name,i.type??"-",C(i.status),y(i.createdAt)])});}catch(t){p(t);}}),m.command("get").description("Get secret metadata (does NOT decrypt)").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await u(L,{id:e});if(!n.getSecret)throw new c(`Secret ${e} not found`);d(t,n.getSecret);}catch(n){p(n);}}),m.command("show").description("Decrypt and print a secret value (audited)").argument("<id>").action(async e=>{try{let t=await u(P,{id:e});process.stdout.write(t.decryptSecret.value);}catch(t){p(t);}}),m.command("set").description("Create a secret. Reads the value from stdin.").requiredOption("--vault <id>").requiredOption("--key <key>","Secret key (unique within vault)").requiredOption("--name <name>").option("--description <s>").option("--type <t>","API_KEY|PASSWORD|CERTIFICATE|TOKEN|OTHER","OTHER").option("--ephemeral","Mark as ephemeral").option("--expires <iso>").option("-f, --format <format>").action(async e=>{try{let t=await U(),n={context:w(),vaultId:e.vault,key:e.key,name:e.name,description:e.description,type:(e.type??"OTHER").toUpperCase(),isEphemeral:!!e.ephemeral,expiresAt:e.expires,value:t},i=await u(q,{input:n});l(`Secret created: ${i.createSecret.key}`),d(e,i.createSecret);}catch(t){p(t);}}),m.command("update").description("Update a secret. Pass --value via stdin to rotate.").argument("<id>").option("--name <s>").option("--description <s>").option("--rotate","Rotate value (reads new value from stdin)").option("--status <s>").option("-f, --format <format>").action(async(e,t)=>{try{if(t.rotate){let W=await U(),F=await u(N,{id:e,newValue:W});l("Secret rotated"),d(t,F.rotateSecret);return}let n={context:w()};if(t.name&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.status&&(n.status=t.status.toUpperCase()),Object.keys(n).length===1)throw new c("No updates specified (use --rotate to change value)");let i=await u(V,{id:e,input:n});l("Secret updated"),d(t,i.updateSecret);}catch(n){p(n);}}),m.command("delete").description("Delete a secret").argument("<id>").action(async e=>{try{await u(_,{id:e}),l("Secret deleted");}catch(t){p(t);}});}var ne={id:"security",version:"1.0.0",displayName:"Security",dependsOn:["auth","workspaces"],register(r,o){v(o),G(r);}},lt=ne;module.exports=lt;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.cjs';
1
+ import { C as CliModule } from '../../module-BwJmqefL.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-DOIiVaXQ.js';
1
+ import { C as CliModule } from '../../module-BwJmqefL.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b,i,r,p,q as q$1,h,k as k$1,u}from'../../chunk-AQE5ZDEN.js';import {o}from'../../chunk-AQ5I53SK.js';var T=`
1
+ import {a,b,i,r,p,q as q$1,h,k as k$1,u}from'../../chunk-VL67DTWH.js';import {o}from'../../chunk-2OISIPE6.js';var T=`
2
2
  query GetVaults($filter: VaultFilterInput, $pagination: SecurityPaginationInput) {
3
3
  getVaults(filter: $filter, pagination: $pagination) {
4
4
  items { id name description scope status createdAt }