@burdenoff/cli-sdk 2026.1031.2 → 2026.1102.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/{chunk-REBBLQFS.js → chunk-AYNNSLCL.js} +360 -379
  2. package/dist/{chunk-SQSFZFQZ.js → chunk-W4JZR7RJ.js} +1 -1
  3. package/dist/{chunk-UAFYTYK6.js → chunk-YIY5IDXQ.js} +5 -5
  4. package/dist/core/index.cjs +4 -4
  5. package/dist/core/index.js +1 -1
  6. package/dist/index.cjs +4 -4
  7. package/dist/index.js +1 -1
  8. package/dist/modules/adaptercloud/index.js +1 -1
  9. package/dist/modules/artistrybase/index.js +1 -1
  10. package/dist/modules/assethandler/index.js +1 -1
  11. package/dist/modules/atheletebridge/index.js +1 -1
  12. package/dist/modules/auth/index.cjs +31 -31
  13. package/dist/modules/auth/index.js +1 -1
  14. package/dist/modules/billing/index.cjs +18 -18
  15. package/dist/modules/billing/index.js +22 -22
  16. package/dist/modules/brainyrich/index.js +1 -1
  17. package/dist/modules/buildmyiq/index.cjs +3 -3
  18. package/dist/modules/buildmyiq/index.js +1 -1
  19. package/dist/modules/channels/index.js +1 -1
  20. package/dist/modules/collabkin/index.js +1 -1
  21. package/dist/modules/comradecircle/index.js +1 -1
  22. package/dist/modules/conversations/index.js +1 -1
  23. package/dist/modules/coolandlovely/index.js +1 -1
  24. package/dist/modules/cosmicintersection/index.js +1 -1
  25. package/dist/modules/crewfoundry/index.js +1 -1
  26. package/dist/modules/devportal/index.cjs +41 -35
  27. package/dist/modules/devportal/index.js +49 -43
  28. package/dist/modules/ecoimpacthub/index.js +1 -1
  29. package/dist/modules/eventfullymanaged/index.cjs +4 -4
  30. package/dist/modules/eventfullymanaged/index.js +1 -1
  31. package/dist/modules/export/index.js +1 -1
  32. package/dist/modules/files/index.js +1 -1
  33. package/dist/modules/fluidgrids/index.js +1 -1
  34. package/dist/modules/ggnomad/index.cjs +16 -16
  35. package/dist/modules/ggnomad/index.js +21 -21
  36. package/dist/modules/govcitizenhub/index.js +1 -1
  37. package/dist/modules/groups/index.js +1 -1
  38. package/dist/modules/headshotmarketing/index.js +1 -1
  39. package/dist/modules/hookmovies/index.js +1 -1
  40. package/dist/modules/housingvista/index.js +1 -1
  41. package/dist/modules/integrations/index.js +1 -1
  42. package/dist/modules/intelwatchtower/index.js +1 -1
  43. package/dist/modules/kadaikodi/index.js +1 -1
  44. package/dist/modules/labsofscience/index.js +1 -1
  45. package/dist/modules/manufacturedops/index.js +1 -1
  46. package/dist/modules/movethewheels/index.js +1 -1
  47. package/dist/modules/mybodyshield/index.cjs +52 -28
  48. package/dist/modules/mybodyshield/index.js +71 -47
  49. package/dist/modules/notifications/index.js +1 -1
  50. package/dist/modules/organizations/index.js +1 -1
  51. package/dist/modules/planmagnet/index.js +1 -1
  52. package/dist/modules/products/index.js +1 -1
  53. package/dist/modules/proserviceworld/index.js +1 -1
  54. package/dist/modules/rbac/index.js +1 -1
  55. package/dist/modules/sandbox/index.cjs +27 -46
  56. package/dist/modules/sandbox/index.js +1 -1
  57. package/dist/modules/scheduler/index.js +1 -1
  58. package/dist/modules/security/index.cjs +3 -3
  59. package/dist/modules/security/index.js +1 -1
  60. package/dist/modules/semanticfed/index.js +1 -1
  61. package/dist/modules/store/index.cjs +46 -40
  62. package/dist/modules/store/index.js +45 -39
  63. package/dist/modules/subscriberbot/index.js +1 -1
  64. package/dist/modules/support/index.js +1 -1
  65. package/dist/modules/tags/index.cjs +2 -2
  66. package/dist/modules/tags/index.js +1 -1
  67. package/dist/modules/technospam/index.js +1 -1
  68. package/dist/modules/theculturepost/index.js +1 -1
  69. package/dist/modules/theglobalfuel/index.js +1 -1
  70. package/dist/modules/timecampus/index.cjs +3 -3
  71. package/dist/modules/timecampus/index.js +1 -1
  72. package/dist/modules/tours/index.js +1 -1
  73. package/dist/modules/vibecontrols/index.cjs +332 -332
  74. package/dist/modules/vibecontrols/index.js +4 -4
  75. package/dist/modules/workspaces/index.js +1 -1
  76. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var l=class extends Error{exitCode;hint;constructor(s,d){super(s),this.name="CliUserError",this.exitCode=d?.exitCode??1,this.hint=d?.hint;}},k=class extends l{constructor(s,d){super(s,{exitCode:2,hint:d?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},A=class extends Error{cause;constructor(s,d){super(s),this.name="CliInternalError",this.cause=d;}};var Y=null;function it(o){Y=o;}function T(){if(!Y)throw new A("vibecontrols module helpers used before setHelpersContext was called");return Y}function de(){let o=T();if(!o.auth.isAuthenticated())throw new k("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function i(o,s){return de(),T().gql.workspace.request(o,s)}function r(o){let s=o instanceof Error?o.message:String(o);throw new l(s)}function a(o,s,d){T().output.formatAndOutput(o,s,d);}function u(o){T().output.printSuccess(o);}function rt(o){return T().output.formatStatus(o)}function st(o){return T().output.formatDate(o)}function at(o,s){return T().output.truncate(o,s)}function J(o,s){return T().output.confirm(o,s)}function ct(){return T()}var C=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var l=class extends Error{exitCode;hint;constructor(i,d){super(i),this.name="CliUserError",this.exitCode=d?.exitCode??1,this.hint=d?.hint;}},k=class extends l{constructor(i,d){super(i,{exitCode:2,hint:d?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},x=class extends Error{cause;constructor(i,d){super(i),this.name="CliInternalError",this.cause=d;}};var Y=null;function nt(o){Y=o;}function $(){if(!Y)throw new x("vibecontrols module helpers used before setHelpersContext was called");return Y}function ie(){let o=$();if(!o.auth.isAuthenticated())throw new k("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function r(o,i){return ie(),$().gql.workspace.request(o,i)}function s(o){let i=o instanceof Error?o.message:String(o);throw new l(i)}function a(o,i,d){$().output.formatAndOutput(o,i,d);}function u(o){$().output.printSuccess(o);}function ot(o){return $().output.formatStatus(o)}function it(o){return $().output.formatDate(o)}function rt(o,i){return $().output.truncate(o,i)}function j(o,i){return $().output.confirm(o,i)}function st(){return $()}var C=`
2
2
  id name template mode status ttlSeconds
3
3
  expiresAt stoppedAt
4
4
  workspaceId createdAt updatedAt
5
- `,gt=`
5
+ `,lt=`
6
6
  query ListSandboxes($context: ContextInput!, $filter: SandboxFilterInput, $pagination: SandboxPaginationInput) {
7
7
  listSandboxes(context: $context, filter: $filter, pagination: $pagination) {
8
8
  items { ${C} } total hasMore
9
9
  }
10
10
  }
11
- `,mt=`
11
+ `,It=`
12
12
  query GetSandbox($context: ContextInput!, $id: ID!) {
13
13
  getSandbox(context: $context, id: $id) { ${C} }
14
14
  }
15
- `,St=`
15
+ `,gt=`
16
16
  mutation CreateSandbox($input: CreateSandboxInput!) {
17
17
  createSandbox(input: $input) { ${C} }
18
18
  }
19
- `,$t=`
19
+ `,mt=`
20
20
  mutation StopSandbox($context: ContextInput!, $id: ID!) {
21
21
  stopSandbox(context: $context, id: $id) { ${C} }
22
22
  }
23
- `,Tt=`
23
+ `,St=`
24
24
  mutation DeleteSandbox($context: ContextInput!, $id: ID!) {
25
25
  deleteSandbox(context: $context, id: $id)
26
26
  }
27
- `,Et=`
27
+ `,$t=`
28
28
  mutation ExtendSandboxTTL($context: ContextInput!, $id: ID!, $additionalSeconds: Int!) {
29
29
  extendSandboxTTL(context: $context, id: $id, additionalSeconds: $additionalSeconds) {
30
30
  ${C}
@@ -33,7 +33,7 @@
33
33
  `,M=`
34
34
  id name description template isDefault ttlSeconds
35
35
  workspaceId createdAt updatedAt
36
- `,ft=`
36
+ `,Tt=`
37
37
  query ListSandboxTemplates(
38
38
  $context: ContextInput!
39
39
  $template: SandboxTemplate
@@ -43,55 +43,55 @@
43
43
  items { ${M} } total hasMore
44
44
  }
45
45
  }
46
- `,xt=`
46
+ `,Et=`
47
47
  query GetSandboxTemplate($context: ContextInput!, $id: ID!) {
48
48
  getSandboxTemplate(context: $context, id: $id) { ${M} }
49
49
  }
50
- `,At=`
50
+ `,ft=`
51
51
  mutation CreateSandboxTemplate($input: CreateSandboxTemplateInput!) {
52
52
  createSandboxTemplate(input: $input) { ${M} }
53
53
  }
54
- `,bt=`
54
+ `,xt=`
55
55
  mutation UpdateSandboxTemplate($input: UpdateSandboxTemplateInput!) {
56
56
  updateSandboxTemplate(input: $input) { ${M} }
57
57
  }
58
- `,Dt=`
58
+ `,At=`
59
59
  mutation DeleteSandboxTemplate($context: ContextInput!, $id: ID!) {
60
60
  deleteSandboxTemplate(context: $context, id: $id)
61
61
  }
62
- `,_t=`
62
+ `,Dt=`
63
63
  query AvailableSandboxTags($query: String, $limit: Int) {
64
64
  availableSandboxTags(query: $query, limit: $limit) {
65
65
  id key label color
66
66
  }
67
67
  }
68
- `,Ct=`
68
+ `,bt=`
69
69
  query GetSandboxTags($input: GetSandboxTagsInput!) {
70
70
  getSandboxTags(input: $input) {
71
71
  id entityId entityType tagId source assignedAt assignedBy
72
72
  }
73
73
  }
74
- `,yt=`
74
+ `,Ct=`
75
75
  mutation CreateSandboxTag($input: CreateSandboxTagInput!) {
76
76
  createSandboxTag(input: $input) { id key label color }
77
77
  }
78
- `,kt=`
78
+ `,_t=`
79
79
  mutation TagSandbox($input: TagSandboxInput!) {
80
80
  tagSandbox(input: $input) {
81
81
  id entityId tagId source assignedAt
82
82
  }
83
83
  }
84
- `,Ot=`
84
+ `,yt=`
85
85
  mutation UntagSandbox($input: UntagSandboxInput!) {
86
86
  untagSandbox(input: $input)
87
87
  }
88
- `,Nt=`
88
+ `,kt=`
89
89
  mutation ReplaceSandboxTags($input: ReplaceSandboxTagsInput!) {
90
90
  replaceSandboxTags(input: $input) {
91
91
  id entityId tagId source assignedAt
92
92
  }
93
93
  }
94
- `,ht=`
94
+ `,Ot=`
95
95
  query ListAllSandboxes(
96
96
  $context: ContextInput!
97
97
  $filter: SandboxFilterInput
@@ -101,31 +101,31 @@
101
101
  items { ${C} } total hasMore
102
102
  }
103
103
  }
104
- `,vt=`
104
+ `,Nt=`
105
105
  query ListSandboxNodes($context: ContextInput!) {
106
106
  listSandboxNodes(context: $context) {
107
107
  name status allocatableCpu allocatableMemory sandboxPodCount labels
108
108
  }
109
109
  }
110
- `,Rt=`
110
+ `,ht=`
111
111
  query GetActiveSandboxes($context: ContextInput!) {
112
112
  getActiveSandboxes(context: $context) { ${C} }
113
113
  }
114
- `,wt=`
114
+ `,vt=`
115
115
  query GetRecentSandboxActivity($context: ContextInput!, $limit: Int) {
116
116
  getRecentSandboxActivity(context: $context, limit: $limit) {
117
117
  items { id action actorId status sandboxName sandboxId createdAt }
118
118
  total
119
119
  }
120
120
  }
121
- `,Lt=`
121
+ `,Rt=`
122
122
  query GetSandboxStats($context: ContextInput!) {
123
123
  getSandboxStats(context: $context) {
124
124
  activeSandboxes totalCreated totalDeleted runningNow provisioningNow
125
125
  stoppedNow expiredCount failedCount totalCpuUsed totalMemoryUsed
126
126
  }
127
127
  }
128
- `,Pt=`
128
+ `,Lt=`
129
129
  query GetSandboxLogs(
130
130
  $context: ContextInput!
131
131
  $id: ID!
@@ -134,7 +134,7 @@
134
134
  ) {
135
135
  getSandboxLogs(context: $context, id: $id, containerName: $containerName, tailLines: $tailLines)
136
136
  }
137
- `,Vt=`
137
+ `,wt=`
138
138
  query GetSandboxConfig($context: ContextInput!) {
139
139
  getSandboxConfig(context: $context) {
140
140
  id defaultTtlSeconds maxTtlSeconds allowedTemplates
@@ -143,7 +143,7 @@
143
143
  workspaceId updatedAt
144
144
  }
145
145
  }
146
- `,Ut=`
146
+ `,Pt=`
147
147
  mutation UpdateSandboxConfig($input: UpdateSandboxConfigInput!) {
148
148
  updateSandboxConfig(input: $input) {
149
149
  id defaultTtlSeconds maxTtlSeconds allowedTemplates
@@ -152,23 +152,4 @@
152
152
  workspaceId updatedAt
153
153
  }
154
154
  }
155
- `,Q=`
156
- id workspaceId format status requestedBy rowCount
157
- downloadUrl errorMessage expiresAt createdAt updatedAt
158
- `,Gt=`
159
- mutation ExportSandboxes($input: ExportSandboxesInput!) {
160
- exportSandboxes(input: $input) { ${Q} }
161
- }
162
- `,Bt=`
163
- query GetSandboxExportJob($workspaceId: ID!, $jobId: ID!, $context: ContextInput!) {
164
- getSandboxExportJob(workspaceId: $workspaceId, jobId: $jobId, context: $context) {
165
- ${Q}
166
- }
167
- }
168
- `,qt=`
169
- query ListSandboxExportJobs($workspaceId: ID!, $context: ContextInput!, $pagination: SandboxPaginationInput) {
170
- listSandboxExportJobs(workspaceId: $workspaceId, context: $context, pagination: $pagination) {
171
- ${Q}
172
- }
173
- }
174
- `;function c(){let o=ct().auth.read();if(!o?.workspaceId)throw new l("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function zt(o){let s=o.command("sandbox").description("Manage sandboxes");s.command("list").description("List sandboxes").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.template&&(t.template=e.template.toUpperCase());let g=(await i(gt,{context:c(),filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}})).listSandboxes.items;a(e,g,{headers:["ID","Name","Template","Mode","Status","TTL","Created"],rows:g.map(E=>[at(E.id,12),E.name,E.template,E.mode,rt(E.status),E.ttlSeconds?`${E.ttlSeconds}s`:"-",st(E.createdAt)])});}catch(t){r(t);}}),s.command("get").description("Get sandbox details").argument("<id>").option("-f, --format <format>","Output format").action(async(e,t)=>{try{let n=await i(mt,{context:c(),id:e});if(!n.getSandbox)throw new l("Sandbox not found");a(t,n.getSandbox);}catch(n){r(n);}}),s.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 e=>{try{let t=await i(St,{input:{name:e.name,template:e.template.toUpperCase(),mode:e.mode.toUpperCase(),ttlSeconds:e.ttl,context:c()}});u("Sandbox created"),a(e,t.createSandbox);}catch(t){r(t);}}),s.command("stop").description("Stop sandbox").argument("<id>").action(async e=>{try{await i($t,{context:c(),id:e}),u("Sandbox stopped");}catch(t){r(t);}}),s.command("delete").description("Delete sandbox").argument("<id>").option("--force","Skip confirmation").action(async(e,t)=>{try{if(!await J("Delete this sandbox?",t.force))return;await i(Tt,{context:c(),id:e}),u("Sandbox deleted");}catch(n){r(n);}}),s.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(e,t)=>{try{let n;if(t.seconds?n=t.seconds:t.minutes&&(n=t.minutes*60),!n)throw new l("Either --seconds or --minutes is required");let g=await i(Et,{context:c(),id:e,additionalSeconds:n});u(`Sandbox extended by ${n}s`),a(t,g.extendSandboxTTL);}catch(n){r(n);}});let d=s.command("templates").description("Manage sandbox templates");d.command("list").description("List sandbox templates").option("--template <kind>","Filter by template kind").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(ft,{context:c(),template:e.template?.toUpperCase(),pagination:{limit:e.limit,offset:0}});a(e,t.listSandboxTemplates.items);}catch(t){r(t);}}),d.command("get").description("Get template details").argument("<id>").option("-f, --format <format>","Output format").action(async(e,t)=>{try{let n=await i(xt,{context:c(),id:e});if(!n.getSandboxTemplate)throw new l("Template not found");a(t,n.getSandboxTemplate);}catch(n){r(n);}}),d.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 e=>{try{let t={name:e.name,template:e.template.toUpperCase(),context:c()};e.description&&(t.description=e.description),e.default&&(t.isDefault=!0),e.ttl!==void 0&&(t.ttlSeconds=e.ttl);let n=await i(At,{input:t});u("Template created"),a(e,n.createSandboxTemplate);}catch(t){r(t);}}),d.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(e,t)=>{try{let n={id:e,context:c()};t.name&&(n.name=t.name),t.description&&(n.description=t.description),t.default!==void 0&&(n.isDefault=t.default),t.ttl!==void 0&&(n.ttlSeconds=t.ttl);let g=await i(bt,{input:n});u("Template updated"),a(t,g.updateSandboxTemplate);}catch(n){r(n);}}),d.command("delete").description("Delete sandbox template").argument("<id>").option("--force","Skip confirmation").action(async(e,t)=>{try{if(!await J("Delete this template?",t.force))return;await i(Dt,{context:c(),id:e}),u("Template deleted");}catch(n){r(n);}});let y=s.command("tags").description("Manage sandbox tags");y.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 e=>{try{let t=await i(_t,{query:e.query,limit:e.limit});a(e,t.availableSandboxTags);}catch(t){r(t);}}),y.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 e=>{try{let t={label:e.label};e.color&&(t.color=e.color);let n=await i(yt,{input:t});u("Tag created"),a(e,n.createSandboxTag);}catch(t){r(t);}}),y.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 e=>{try{let t=await i(kt,{input:{sandboxId:e.sandbox,tagId:e.tag}});u("Tag attached"),a(e,t.tagSandbox);}catch(t){r(t);}}),y.command("detach").description("Detach a tag from a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tag <id>","Tag ID").action(async e=>{try{await i(Ot,{input:{sandboxId:e.sandbox,tagId:e.tag}}),u("Tag detached");}catch(t){r(t);}}),y.command("get").description("Get tags assigned to a sandbox").requiredOption("--sandbox <id>","Sandbox ID").option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(Ct,{input:{sandboxId:e.sandbox}});a(e,t.getSandboxTags);}catch(t){r(t);}}),y.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 e=>{try{let t=await i(Nt,{input:{sandboxId:e.sandbox,tagIds:e.tags}});u("Tags replaced"),a(e,t.replaceSandboxTags);}catch(t){r(t);}});let x=s.command("admin").description("Admin / observability ops");x.command("nodes").description("List sandbox nodes").option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(vt,{context:c()});a(e,t.listSandboxNodes);}catch(t){r(t);}}),x.command("all").description("List all sandboxes (admin)").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.template&&(t.template=e.template.toUpperCase());let n=await i(ht,{context:c(),filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});a(e,n.listAllSandboxes.items);}catch(t){r(t);}}),x.command("active").description("Get active sandboxes").option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(Rt,{context:c()});a(e,t.getActiveSandboxes);}catch(t){r(t);}}),x.command("activity").description("Get recent sandbox activity").option("--limit <n>","Max items",parseInt,20).option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(wt,{context:c(),limit:e.limit});a(e,t.getRecentSandboxActivity.items);}catch(t){r(t);}}),x.command("stats").description("Get sandbox stats").option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(Lt,{context:c()});a(e,t.getSandboxStats);}catch(t){r(t);}}),x.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(e,t)=>{try{let n=await i(Pt,{context:c(),id:e,containerName:t.container,tailLines:t.tail});process.stdout.write(n.getSandboxLogs);}catch(n){r(n);}});let et=x.command("config").description("Sandbox config");et.command("get").description("Get sandbox config").option("-f, --format <format>","Output format").action(async e=>{try{let t=await i(Vt,{context:c()});a(e,t.getSandboxConfig);}catch(t){r(t);}}),et.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 e=>{try{let t={context:c()};e.defaultTtl!==void 0&&(t.defaultTtlSeconds=e.defaultTtl),e.maxTtl!==void 0&&(t.maxTtlSeconds=e.maxTtl),e.maxPerUser!==void 0&&(t.maxConcurrentPerUser=e.maxPerUser),e.maxPerWorkspace!==void 0&&(t.maxConcurrentPerWorkspace=e.maxPerWorkspace);let n=await i(Ut,{input:t});u("Config updated"),a(e,n.updateSandboxConfig);}catch(t){r(t);}});let j=s.command("export").description("Sandbox export jobs");j.command("create").description("Create a sandbox export job").requiredOption("--format <fmt>","Format (CSV or JSON)").option("--include-usage","Include usage events").option("-f, --format-out <format>","Output format").action(async e=>{try{let t=c(),n={workspaceId:t.workspaceId,format:e.format.toUpperCase(),context:t};e.includeUsage&&(n.includeUsageEvents=!0);let g=await i(Gt,{input:n});u("Export job created"),a({format:e.formatOut},g.exportSandboxes);}catch(t){r(t);}}),j.command("get").description("Get sandbox export job").argument("<jobId>").option("-f, --format <format>","Output format").action(async(e,t)=>{try{let n=c(),g=await i(Bt,{workspaceId:n.workspaceId,jobId:e,context:n});a(t,g.getSandboxExportJob);}catch(n){r(n);}}),j.command("list").description("List sandbox export jobs").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t=c(),n=await i(qt,{workspaceId:t.workspaceId,context:t,pagination:{limit:e.limit,offset:0}});a(e,n.listSandboxExportJobs);}catch(t){r(t);}});}var le={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],register(o,s){it(s),zt(o);}},Jr=le;module.exports=Jr;
155
+ `;function c(){let o=st().auth.read();if(!o?.workspaceId)throw new l("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function Kt(o){let i=o.command("sandbox").description("Manage sandboxes");i.command("list").description("List sandboxes").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.template&&(t.template=e.template.toUpperCase());let y=(await r(lt,{context:c(),filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}})).listSandboxes.items;a(e,y,{headers:["ID","Name","Template","Mode","Status","TTL","Created"],rows:y.map(T=>[rt(T.id,12),T.name,T.template,T.mode,ot(T.status),T.ttlSeconds?`${T.ttlSeconds}s`:"-",it(T.createdAt)])});}catch(t){s(t);}}),i.command("get").description("Get sandbox details").argument("<id>").option("-f, --format <format>","Output format").action(async(e,t)=>{try{let n=await r(It,{context:c(),id:e});if(!n.getSandbox)throw new l("Sandbox not found");a(t,n.getSandbox);}catch(n){s(n);}}),i.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 e=>{try{let t=await r(gt,{input:{name:e.name,template:e.template.toUpperCase(),mode:e.mode.toUpperCase(),ttlSeconds:e.ttl,context:c()}});u("Sandbox created"),a(e,t.createSandbox);}catch(t){s(t);}}),i.command("stop").description("Stop sandbox").argument("<id>").action(async e=>{try{await r(mt,{context:c(),id:e}),u("Sandbox stopped");}catch(t){s(t);}}),i.command("delete").description("Delete sandbox").argument("<id>").option("--force","Skip confirmation").action(async(e,t)=>{try{if(!await j("Delete this sandbox?",t.force))return;await r(St,{context:c(),id:e}),u("Sandbox deleted");}catch(n){s(n);}}),i.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(e,t)=>{try{let n;if(t.seconds?n=t.seconds:t.minutes&&(n=t.minutes*60),!n)throw new l("Either --seconds or --minutes is required");let y=await r($t,{context:c(),id:e,additionalSeconds:n});u(`Sandbox extended by ${n}s`),a(t,y.extendSandboxTTL);}catch(n){s(n);}});let d=i.command("templates").description("Manage sandbox templates");d.command("list").description("List sandbox templates").option("--template <kind>","Filter by template kind").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(Tt,{context:c(),template:e.template?.toUpperCase(),pagination:{limit:e.limit,offset:0}});a(e,t.listSandboxTemplates.items);}catch(t){s(t);}}),d.command("get").description("Get template details").argument("<id>").option("-f, --format <format>","Output format").action(async(e,t)=>{try{let n=await r(Et,{context:c(),id:e});if(!n.getSandboxTemplate)throw new l("Template not found");a(t,n.getSandboxTemplate);}catch(n){s(n);}}),d.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 e=>{try{let t={name:e.name,template:e.template.toUpperCase(),context:c()};e.description&&(t.description=e.description),e.default&&(t.isDefault=!0),e.ttl!==void 0&&(t.ttlSeconds=e.ttl);let n=await r(ft,{input:t});u("Template created"),a(e,n.createSandboxTemplate);}catch(t){s(t);}}),d.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(e,t)=>{try{let n={id:e,context:c()};t.name&&(n.name=t.name),t.description&&(n.description=t.description),t.default!==void 0&&(n.isDefault=t.default),t.ttl!==void 0&&(n.ttlSeconds=t.ttl);let y=await r(xt,{input:n});u("Template updated"),a(t,y.updateSandboxTemplate);}catch(n){s(n);}}),d.command("delete").description("Delete sandbox template").argument("<id>").option("--force","Skip confirmation").action(async(e,t)=>{try{if(!await j("Delete this template?",t.force))return;await r(At,{context:c(),id:e}),u("Template deleted");}catch(n){s(n);}});let _=i.command("tags").description("Manage sandbox tags");_.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 e=>{try{let t=await r(Dt,{query:e.query,limit:e.limit});a(e,t.availableSandboxTags);}catch(t){s(t);}}),_.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 e=>{try{let t={label:e.label};e.color&&(t.color=e.color);let n=await r(Ct,{input:t});u("Tag created"),a(e,n.createSandboxTag);}catch(t){s(t);}}),_.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 e=>{try{let t=await r(_t,{input:{sandboxId:e.sandbox,tagId:e.tag}});u("Tag attached"),a(e,t.tagSandbox);}catch(t){s(t);}}),_.command("detach").description("Detach a tag from a sandbox").requiredOption("--sandbox <id>","Sandbox ID").requiredOption("--tag <id>","Tag ID").action(async e=>{try{await r(yt,{input:{sandboxId:e.sandbox,tagId:e.tag}}),u("Tag detached");}catch(t){s(t);}}),_.command("get").description("Get tags assigned to a sandbox").requiredOption("--sandbox <id>","Sandbox ID").option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(bt,{input:{sandboxId:e.sandbox}});a(e,t.getSandboxTags);}catch(t){s(t);}}),_.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 e=>{try{let t=await r(kt,{input:{sandboxId:e.sandbox,tagIds:e.tags}});u("Tags replaced"),a(e,t.replaceSandboxTags);}catch(t){s(t);}});let f=i.command("admin").description("Admin / observability ops");f.command("nodes").description("List sandbox nodes").option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(Nt,{context:c()});a(e,t.listSandboxNodes);}catch(t){s(t);}}),f.command("all").description("List all sandboxes (admin)").option("--status <status>","Filter by status").option("--template <template>","Filter by template").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>","Output format").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase()),e.template&&(t.template=e.template.toUpperCase());let n=await r(Ot,{context:c(),filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});a(e,n.listAllSandboxes.items);}catch(t){s(t);}}),f.command("active").description("Get active sandboxes").option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(ht,{context:c()});a(e,t.getActiveSandboxes);}catch(t){s(t);}}),f.command("activity").description("Get recent sandbox activity").option("--limit <n>","Max items",parseInt,20).option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(vt,{context:c(),limit:e.limit});a(e,t.getRecentSandboxActivity.items);}catch(t){s(t);}}),f.command("stats").description("Get sandbox stats").option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(Rt,{context:c()});a(e,t.getSandboxStats);}catch(t){s(t);}}),f.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(e,t)=>{try{let n=await r(Lt,{context:c(),id:e,containerName:t.container,tailLines:t.tail});process.stdout.write(n.getSandboxLogs);}catch(n){s(n);}});let Z=f.command("config").description("Sandbox config");Z.command("get").description("Get sandbox config").option("-f, --format <format>","Output format").action(async e=>{try{let t=await r(wt,{context:c()});a(e,t.getSandboxConfig);}catch(t){s(t);}}),Z.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 e=>{try{let t={context:c()};e.defaultTtl!==void 0&&(t.defaultTtlSeconds=e.defaultTtl),e.maxTtl!==void 0&&(t.maxTtlSeconds=e.maxTtl),e.maxPerUser!==void 0&&(t.maxConcurrentPerUser=e.maxPerUser),e.maxPerWorkspace!==void 0&&(t.maxConcurrentPerWorkspace=e.maxPerWorkspace);let n=await r(Pt,{input:t});u("Config updated"),a(e,n.updateSandboxConfig);}catch(t){s(t);}});}var ae={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],register(o,i){nt(i),Kt(o);}},Wr=ae;module.exports=Wr;
@@ -1 +1 @@
1
- import {Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Wc,Xc,Yc,_c,$c,ad,Zc,bd,dd,cd,ed,fd,gd,hd,id,jd,kd,ld,md}from'../../chunk-REBBLQFS.js';import {a,b,h,p,n,o,g,i,q,s}from'../../chunk-SQSFZFQZ.js';import {o as o$1}from'../../chunk-UAFYTYK6.js';function r(){let l=s().auth.read();if(!l?.workspaceId)throw new o$1("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:l.workspaceId}}function Q(l){let d=l.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$1=>{try{let t={};n$1.status&&(t.status=n$1.status.toUpperCase()),n$1.template&&(t.template=n$1.template.toUpperCase());let c=(await b(Nc,{context:r(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n$1.limit,offset:0}})).listSandboxes.items;h(n$1,c,{headers:["ID","Name","Template","Mode","Status","TTL","Created"],rows:c.map(m=>[p(m.id,12),m.name,m.template,m.mode,n(m.status),m.ttlSeconds?`${m.ttlSeconds}s`:"-",o(m.createdAt)])});}catch(t){g(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(Oc,{context:r(),id:n});if(!e.getSandbox)throw new o$1("Sandbox not found");h(t,e.getSandbox);}catch(e){g(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(Pc,{input:{name:n.name,template:n.template.toUpperCase(),mode:n.mode.toUpperCase(),ttlSeconds:n.ttl,context:r()}});i("Sandbox created"),h(n,t.createSandbox);}catch(t){g(t);}}),d.command("stop").description("Stop sandbox").argument("<id>").action(async n=>{try{await b(Qc,{context:r(),id:n}),i("Sandbox stopped");}catch(t){g(t);}}),d.command("delete").description("Delete sandbox").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await q("Delete this sandbox?",t.force))return;await b(Rc,{context:r(),id:n}),i("Sandbox deleted");}catch(e){g(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$1("Either --seconds or --minutes is required");let c=await b(Sc,{context:r(),id:n,additionalSeconds:e});i(`Sandbox extended by ${e}s`),h(t,c.extendSandboxTTL);}catch(e){g(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(Tc,{context:r(),template:n.template?.toUpperCase(),pagination:{limit:n.limit,offset:0}});h(n,t.listSandboxTemplates.items);}catch(t){g(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(Uc,{context:r(),id:n});if(!e.getSandboxTemplate)throw new o$1("Template not found");h(t,e.getSandboxTemplate);}catch(e){g(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:r()};n.description&&(t.description=n.description),n.default&&(t.isDefault=!0),n.ttl!==void 0&&(t.ttlSeconds=n.ttl);let e=await b(Vc,{input:t});i("Template created"),h(n,e.createSandboxTemplate);}catch(t){g(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:r()};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 c=await b(Wc,{input:e});i("Template updated"),h(t,c.updateSandboxTemplate);}catch(e){g(e);}}),f.command("delete").description("Delete sandbox template").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await q("Delete this template?",t.force))return;await b(Xc,{context:r(),id:n}),i("Template deleted");}catch(e){g(e);}});let u=d.command("tags").description("Manage sandbox tags");u.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(Yc,{query:n.query,limit:n.limit});h(n,t.availableSandboxTags);}catch(t){g(t);}}),u.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(_c,{input:t});i("Tag created"),h(n,e.createSandboxTag);}catch(t){g(t);}}),u.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($c,{input:{sandboxId:n.sandbox,tagId:n.tag}});i("Tag attached"),h(n,t.tagSandbox);}catch(t){g(t);}}),u.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(ad,{input:{sandboxId:n.sandbox,tagId:n.tag}}),i("Tag detached");}catch(t){g(t);}}),u.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(Zc,{input:{sandboxId:n.sandbox}});h(n,t.getSandboxTags);}catch(t){g(t);}}),u.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(bd,{input:{sandboxId:n.sandbox,tagIds:n.tags}});i("Tags replaced"),h(n,t.replaceSandboxTags);}catch(t){g(t);}});let p$1=d.command("admin").description("Admin / observability ops");p$1.command("nodes").description("List sandbox nodes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(dd,{context:r()});h(n,t.listSandboxNodes);}catch(t){g(t);}}),p$1.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(cd,{context:r(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n.limit,offset:0}});h(n,e.listAllSandboxes.items);}catch(t){g(t);}}),p$1.command("active").description("Get active sandboxes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(ed,{context:r()});h(n,t.getActiveSandboxes);}catch(t){g(t);}}),p$1.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(fd,{context:r(),limit:n.limit});h(n,t.getRecentSandboxActivity.items);}catch(t){g(t);}}),p$1.command("stats").description("Get sandbox stats").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(gd,{context:r()});h(n,t.getSandboxStats);}catch(t){g(t);}}),p$1.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(hd,{context:r(),id:n,containerName:t.container,tailLines:t.tail});process.stdout.write(e.getSandboxLogs);}catch(e){g(e);}});let S=p$1.command("config").description("Sandbox config");S.command("get").description("Get sandbox config").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(id,{context:r()});h(n,t.getSandboxConfig);}catch(t){g(t);}}),S.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:r()};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(jd,{input:t});i("Config updated"),h(n,e.updateSandboxConfig);}catch(t){g(t);}});let x=d.command("export").description("Sandbox export jobs");x.command("create").description("Create a sandbox export job").requiredOption("--format <fmt>","Format (CSV or JSON)").option("--include-usage","Include usage events").option("-f, --format-out <format>","Output format").action(async n=>{try{let t=r(),e={workspaceId:t.workspaceId,format:n.format.toUpperCase(),context:t};n.includeUsage&&(e.includeUsageEvents=!0);let c=await b(kd,{input:e});i("Export job created"),h({format:n.formatOut},c.exportSandboxes);}catch(t){g(t);}}),x.command("get").description("Get sandbox export job").argument("<jobId>").option("-f, --format <format>","Output format").action(async(n,t)=>{try{let e=r(),c=await b(ld,{workspaceId:e.workspaceId,jobId:n,context:e});h(t,c.getSandboxExportJob);}catch(e){g(e);}}),x.command("list").description("List sandbox export jobs").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>","Output format").action(async n=>{try{let t=r(),e=await b(md,{workspaceId:t.workspaceId,context:t,pagination:{limit:n.limit,offset:0}});h(n,e.listSandboxExportJobs);}catch(t){g(t);}});}var nt={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],register(l,d){a(d),Q(l);}},ct=nt;export{ct as default};
1
+ import {Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Wc,Xc,Yc,_c,$c,ad,Zc,bd,dd,cd,ed,fd,gd,hd,id,jd}from'../../chunk-AYNNSLCL.js';import {a,b,h,p,n,o,g,i,q,s as s$1}from'../../chunk-W4JZR7RJ.js';import {o as o$1}from'../../chunk-YIY5IDXQ.js';function s(){let p=s$1().auth.read();if(!p?.workspaceId)throw new o$1("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$1=>{try{let t={};n$1.status&&(t.status=n$1.status.toUpperCase()),n$1.template&&(t.template=n$1.template.toUpperCase());let u=(await b(Nc,{context:s(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n$1.limit,offset:0}})).listSandboxes.items;h(n$1,u,{headers:["ID","Name","Template","Mode","Status","TTL","Created"],rows:u.map(c=>[p(c.id,12),c.name,c.template,c.mode,n(c.status),c.ttlSeconds?`${c.ttlSeconds}s`:"-",o(c.createdAt)])});}catch(t){g(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(Oc,{context:s(),id:n});if(!e.getSandbox)throw new o$1("Sandbox not found");h(t,e.getSandbox);}catch(e){g(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(Pc,{input:{name:n.name,template:n.template.toUpperCase(),mode:n.mode.toUpperCase(),ttlSeconds:n.ttl,context:s()}});i("Sandbox created"),h(n,t.createSandbox);}catch(t){g(t);}}),d.command("stop").description("Stop sandbox").argument("<id>").action(async n=>{try{await b(Qc,{context:s(),id:n}),i("Sandbox stopped");}catch(t){g(t);}}),d.command("delete").description("Delete sandbox").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await q("Delete this sandbox?",t.force))return;await b(Rc,{context:s(),id:n}),i("Sandbox deleted");}catch(e){g(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$1("Either --seconds or --minutes is required");let u=await b(Sc,{context:s(),id:n,additionalSeconds:e});i(`Sandbox extended by ${e}s`),h(t,u.extendSandboxTTL);}catch(e){g(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(Tc,{context:s(),template:n.template?.toUpperCase(),pagination:{limit:n.limit,offset:0}});h(n,t.listSandboxTemplates.items);}catch(t){g(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(Uc,{context:s(),id:n});if(!e.getSandboxTemplate)throw new o$1("Template not found");h(t,e.getSandboxTemplate);}catch(e){g(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(Vc,{input:t});i("Template created"),h(n,e.createSandboxTemplate);}catch(t){g(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(Wc,{input:e});i("Template updated"),h(t,u.updateSandboxTemplate);}catch(e){g(e);}}),f.command("delete").description("Delete sandbox template").argument("<id>").option("--force","Skip confirmation").action(async(n,t)=>{try{if(!await q("Delete this template?",t.force))return;await b(Xc,{context:s(),id:n}),i("Template deleted");}catch(e){g(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(Yc,{query:n.query,limit:n.limit});h(n,t.availableSandboxTags);}catch(t){g(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(_c,{input:t});i("Tag created"),h(n,e.createSandboxTag);}catch(t){g(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($c,{input:{sandboxId:n.sandbox,tagId:n.tag}});i("Tag attached"),h(n,t.tagSandbox);}catch(t){g(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(ad,{input:{sandboxId:n.sandbox,tagId:n.tag}}),i("Tag detached");}catch(t){g(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(Zc,{input:{sandboxId:n.sandbox}});h(n,t.getSandboxTags);}catch(t){g(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(bd,{input:{sandboxId:n.sandbox,tagIds:n.tags}});i("Tags replaced"),h(n,t.replaceSandboxTags);}catch(t){g(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(dd,{context:s()});h(n,t.listSandboxNodes);}catch(t){g(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(cd,{context:s(),filter:Object.keys(t).length?t:void 0,pagination:{limit:n.limit,offset:0}});h(n,e.listAllSandboxes.items);}catch(t){g(t);}}),m.command("active").description("Get active sandboxes").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(ed,{context:s()});h(n,t.getActiveSandboxes);}catch(t){g(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(fd,{context:s(),limit:n.limit});h(n,t.getRecentSandboxActivity.items);}catch(t){g(t);}}),m.command("stats").description("Get sandbox stats").option("-f, --format <format>","Output format").action(async n=>{try{let t=await b(gd,{context:s()});h(n,t.getSandboxStats);}catch(t){g(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(hd,{context:s(),id:n,containerName:t.container,tailLines:t.tail});process.stdout.write(e.getSandboxLogs);}catch(e){g(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(id,{context:s()});h(n,t.getSandboxConfig);}catch(t){g(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(jd,{input:t});i("Config updated"),h(n,e.updateSandboxConfig);}catch(t){g(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
- import {a,b,h as h$1,p,n,o,g,i,s}from'../../chunk-SQSFZFQZ.js';import {o as o$1}from'../../chunk-UAFYTYK6.js';var C=`
1
+ import {a,b,h as h$1,p,n,o,g,i,s}from'../../chunk-W4JZR7RJ.js';import {o as o$1}from'../../chunk-YIY5IDXQ.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 }
@@ -38,13 +38,13 @@
38
38
  total hasMore
39
39
  }
40
40
  }
41
- `,P=`
41
+ `,L=`
42
42
  query GetSecret($id: ID!) {
43
43
  getSecret(id: $id) {
44
44
  id key name description type status isEphemeral expiresAt createdAt updatedAt
45
45
  }
46
46
  }
47
- `,L=`
47
+ `,P=`
48
48
  query DecryptSecret($id: ID!) {
49
49
  decryptSecret(id: $id) {
50
50
  id key value
@@ -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(S,{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??"-",y(i.status),C(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(b,{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??"-",y(i.status),C(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(P,{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(L,{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;
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(S,{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??"-",y(i.status),C(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(b,{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??"-",y(i.status),C(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 {a,b,h,p,n,o,g,i,s}from'../../chunk-SQSFZFQZ.js';import {o as o$1}from'../../chunk-UAFYTYK6.js';var T=`
1
+ import {a,b,h,p,n,o,g,i,s}from'../../chunk-W4JZR7RJ.js';import {o as o$1}from'../../chunk-YIY5IDXQ.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 }
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,h as h$1,p,g as g$1,i,d}from'../../chunk-SQSFZFQZ.js';import {o}from'../../chunk-UAFYTYK6.js';var h=`
1
+ import {a,b as b$1,h as h$1,p,g as g$1,i,d}from'../../chunk-W4JZR7RJ.js';import {o}from'../../chunk-YIY5IDXQ.js';var h=`
2
2
  query SemConnector($id: ID!) {
3
3
  semConnector(id: $id) {
4
4
  id name kind description isActive capabilities
@@ -1,63 +1,69 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var d=class extends Error{exitCode;hint;constructor(o,s){super(o),this.name="CliUserError",this.exitCode=s?.exitCode??1,this.hint=s?.hint;}};var l=class extends Error{cause;constructor(o,s){super(o),this.name="CliInternalError",this.cause=s;}};var h=null;function v(r){h=r;}function g(){if(!h)throw new l("vibecontrols module helpers used before setHelpersContext was called");return h}async function a(r,o){return g().gql.global.request(r,o)}function c(r){let o=r instanceof Error?r.message:String(r);throw new d(o)}function u(r,o,s){g().output.formatAndOutput(r,o,s);}function C(r){g().output.printSuccess(r);}function y(r){return g().output.formatStatus(r)}function w(r){return g().output.formatDate(r)}function f(r,o){return g().output.truncate(r,o)}var A=Y();function Y(){return `
2
- query SearchStore($input: BrowseStoreInput!) {
3
- browseStore(input: $input) {
4
- products { id name description price currency type status }
5
- totalCount hasMore
6
- }
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var u=class extends Error{exitCode;hint;constructor(o,s){super(o),this.name="CliUserError",this.exitCode=s?.exitCode??1,this.hint=s?.hint;}};var l=class extends Error{cause;constructor(o,s){super(o),this.name="CliInternalError",this.cause=s;}};var h=null;function R(r){h=r;}function g(){if(!h)throw new l("vibecontrols module helpers used before setHelpersContext was called");return h}async function a(r,o){return g().gql.global.request(r,o)}function c(r){let o=r instanceof Error?r.message:String(r);throw new u(o)}function p(r,o,s){g().output.formatAndOutput(r,o,s);}function w(r){g().output.printSuccess(r);}function C(r){return g().output.formatStatus(r)}function y(r){return g().output.formatDate(r)}function f(r,o){return g().output.truncate(r,o)}var k=`
2
+ id name slug description price currency type status downloads
3
+ publisher { id name isVerified }
4
+ `,x=`
5
+ id currency subtotal total itemCount isEmpty
6
+ items { id productId productName variantId workspaceId quantity unitPrice subtotal }
7
+ `,I=`
8
+ id status total currency purchasedAt billingAccountId createdAt lineItems
9
+ `,$=`
10
+ query SearchStore($input: BrowseStoreInput!) {
11
+ browseStore(input: $input) {
12
+ products { ${k} }
13
+ totalCount hasMore nextCursor
7
14
  }
8
- `}var O=`
15
+ }
16
+ `,D=`
9
17
  query MyCart {
10
- myCart {
11
- id currency subtotal total itemCount isEmpty
12
- items { id productId quantity }
13
- }
18
+ myCart { ${x} }
14
19
  }
15
- `,S=`
20
+ `,q=`
16
21
  mutation AddToCart($input: AddToCartInput!) {
17
22
  addToCart(input: $input) {
18
- id itemCount subtotal items { productId quantity }
23
+ cart { ${x} }
24
+ errors { code field message }
19
25
  }
20
26
  }
21
- `,R=`
22
- mutation RemoveFromCart($cartId: ID!, $itemId: ID!) {
23
- removeFromCart(cartId: $cartId, itemId: $itemId) {
24
- id itemCount subtotal
27
+ `,P=`
28
+ mutation RemoveFromCart($cartItemId: String!) {
29
+ removeFromCart(cartItemId: $cartItemId) {
30
+ cart { ${x} }
31
+ errors { code field message }
25
32
  }
26
33
  }
27
- `,D=`
28
- mutation CheckoutCart($cartId: ID!) {
29
- checkoutCart(cartId: $cartId) {
30
- success order { id total status }
34
+ `,L=`
35
+ mutation Checkout($input: CheckoutInput!) {
36
+ checkout(input: $input) {
37
+ success
38
+ order { ${I} }
39
+ errors { code field message }
31
40
  }
32
41
  }
33
- `,$=`
42
+ `,_=`
34
43
  query GetOrders($limit: Int, $offset: Int, $status: OrderStatus) {
35
- myOrders(limit: $limit, offset: $offset, status: $status) {
36
- id status total currency createdAt
37
- }
44
+ myOrders(limit: $limit, offset: $offset, status: $status) { ${I} }
38
45
  }
39
- `,P=`
40
- query GetOrder($id: ID!) {
41
- getOrder(id: $id) {
42
- id status total currency paidAt billingAccountId
43
- lineItems { productId quantity unitPrice }
44
- }
46
+ `,N=`
47
+ query GetStoreOrder($id: ID!) {
48
+ getStoreOrder(id: $id) { ${I} }
45
49
  }
46
- `,q=`
50
+ `,F=`
47
51
  query GetInstalledProducts {
48
52
  myStoreAppInstallations {
49
53
  items { id productId workspaceId status version installedAt }
50
54
  total hasMore
51
55
  }
52
56
  }
53
- `,L=`
54
- mutation UninstallProduct($installationId: ID!) {
55
- uninstallProduct(installationId: $installationId) { success }
57
+ `,G=`
58
+ mutation RecordAppUninstallation($productId: String!, $workspaceId: String!) {
59
+ recordAppUninstallation(productId: $productId, workspaceId: $workspaceId) {
60
+ id productId workspaceId status uninstalledAt
61
+ }
56
62
  }
57
- `,_=`
58
- query GetLicenses($entitlementId: ID!) {
59
- getLicenses(entitlementId: $entitlementId) {
60
- id status validFrom expiresAt
63
+ `,M=`
64
+ query EntitlementSeats($entitlementId: ID!) {
65
+ entitlementSeats(entitlementId: $entitlementId) {
66
+ id entitlementId assigneeUserId assigneeEmail role assignedAt revokedAt revocationReason
61
67
  }
62
68
  }
63
- `;function N(r){let o=r.command("store").description("Store: marketplace, cart, orders, installed apps");o.command("search").description("Search the store").argument("<query>").option("--type <t>").option("--category <c>").option("--limit <n>","Page size",e=>parseInt(e,10),20).option("-f, --format <format>").action(async(e,t)=>{try{let n={search:e};t.type&&(n.productType=t.type.toUpperCase()),t.category&&(n.categories=[t.category]);let p={filter:n,pagination:{limit:t.limit,offset:0},sortBy:"RELEVANCE"},I=await a(A,{input:p});u(t,I.browseStore.products,{headers:["ID","Name","Type","Price"],rows:I.browseStore.products.map(m=>[f(m.id,12),m.name,m.type??"-",`${m.price??"-"} ${m.currency??""}`.trim()])});}catch(n){c(n);}});let s=o.command("cart").description("Shopping cart");s.command("list").description("Show current cart").option("-f, --format <format>").action(async e=>{try{let t=await a(O);u(e,t.myCart);}catch(t){c(t);}}),s.command("add").description("Add a product to the cart").requiredOption("--product <id>").option("--quantity <n>","",e=>parseInt(e,10),1).option("--variant <id>").option("-f, --format <format>").action(async e=>{try{let t={productId:e.product,quantity:e.quantity,variantId:e.variant},n=await a(S,{input:t});C("Added to cart"),u(e,n.addToCart);}catch(t){c(t);}}),s.command("remove").description("Remove an item from the cart").requiredOption("--cart <id>").requiredOption("--item <id>").action(async e=>{try{await a(R,{cartId:e.cart,itemId:e.item}),C("Item removed from cart");}catch(t){c(t);}}),s.command("checkout").description("Check out the cart").argument("<cartId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await a(D,{cartId:e});n.checkoutCart.success&&C("Checkout complete"),u(t,n.checkoutCart);}catch(n){c(n);}});let k=o.command("orders").description("Orders");k.command("list").description("List orders").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t=await a($,{limit:e.limit,offset:0});u(e,t.myOrders,{headers:["ID","Status","Total","Currency","Created"],rows:t.myOrders.map(n=>[f(n.id,12),y(n.status),String(n.total??"-"),n.currency??"-",w(n.createdAt)])});}catch(t){c(t);}}),k.command("get").description("Get an order").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await a(P,{id:e});if(!n.getOrder)throw new d(`Order ${e} not found`);u(t,n.getOrder);}catch(n){c(n);}});let x=o.command("installed").description("Installed products");x.command("list").description("List the current user's installed store apps").option("-f, --format <format>").action(async e=>{try{let n=(await a(q)).myStoreAppInstallations.items;u(e,n,{headers:["InstallationID","ProductID","Workspace","Status","Version","Installed"],rows:n.map(p=>[f(p.id,12),f(p.productId,12),f(p.workspaceId,12),y(p.status),p.version??"-",w(p.installedAt)])});}catch(t){c(t);}}),x.command("uninstall").description("Uninstall a product by installation id").argument("<installationId>").action(async e=>{try{await a(L,{installationId:e}),C("Product uninstalled");}catch(t){c(t);}}),o.command("licenses").description("Licenses").command("list").description("List licenses for an entitlement").requiredOption("--entitlement <id>").option("-f, --format <format>").action(async e=>{try{let t=await a(_,{entitlementId:e.entitlement});u(e,t.getLicenses);}catch(t){c(t);}});}var Q={id:"store",version:"1.0.0",displayName:"Store",dependsOn:["auth"],register(r,o){v(o),N(r);}},ce=Q;module.exports=ce;
69
+ `;function T(r){if(r&&r.length>0)throw new u(r.map(o=>o.message).join("; "))}function W(r){let o=r.command("store").description("Store: marketplace, cart, orders, installed apps");o.command("search").description("Search the store").argument("<query>").option("--type <t>").option("--category <c>").option("--limit <n>","Page size",t=>parseInt(t,10),20).option("-f, --format <format>").action(async(t,e)=>{try{let n={search:t};e.type&&(n.type=e.type.toUpperCase()),e.category&&(n.categories=[e.category]);let d={filter:n,pagination:{limit:e.limit,offset:0},sortBy:"RELEVANCE"},v=await a($,{input:d});p(e,v.browseStore.products,{headers:["ID","Name","Type","Price"],rows:v.browseStore.products.map(m=>[f(m.id,12),m.name,m.type??"-",`${m.price??"-"} ${m.currency??""}`.trim()])});}catch(n){c(n);}});let s=o.command("cart").description("Shopping cart");s.command("list").description("Show current cart").option("-f, --format <format>").action(async t=>{try{let e=await a(D);p(t,e.myCart);}catch(e){c(e);}}),s.command("add").description("Add a product to the cart").requiredOption("--product <id>").option("--quantity <n>","",t=>parseInt(t,10),1).option("--variant <id>").option("--workspace <id>","Workspace the product is bought for").option("-f, --format <format>").action(async t=>{try{let e={productId:t.product,quantity:t.quantity,variantId:t.variant,workspaceId:t.workspace},n=await a(q,{input:e});T(n.addToCart.errors),w("Added to cart"),p(t,n.addToCart.cart);}catch(e){c(e);}}),s.command("remove").description("Remove an item from the cart").requiredOption("--item <id>","Cart item id (from `store cart list`)").action(async t=>{try{let e=await a(P,{cartItemId:t.item});T(e.removeFromCart.errors),w("Item removed from cart");}catch(e){c(e);}}),s.command("checkout").description("Check out your cart").option("--account <id>","Billing account to charge").option("--payment-method <id>").option("--workspace <id>").option("--notes <s>").option("-f, --format <format>").action(async t=>{try{let e={billingAccountId:t.account,paymentMethodId:t.paymentMethod,workspaceId:t.workspace,notes:t.notes},n=await a(L,{input:e});T(n.checkout.errors),n.checkout.success&&w("Checkout complete"),p(t,n.checkout);}catch(e){c(e);}});let b=o.command("orders").description("Orders");b.command("list").description("List orders").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=await a(_,{limit:t.limit,offset:0});p(t,e.myOrders,{headers:["ID","Status","Total","Currency","Created"],rows:e.myOrders.map(n=>[f(n.id,12),C(n.status),String(n.total??"-"),n.currency??"-",y(n.createdAt)])});}catch(e){c(e);}}),b.command("get").description("Get an order").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await a(N,{id:t});if(!n.getStoreOrder)throw new u(`Order ${t} not found`);p(e,n.getStoreOrder);}catch(n){c(n);}});let E=o.command("installed").description("Installed products");E.command("list").description("List the current user's installed store apps").option("-f, --format <format>").action(async t=>{try{let n=(await a(F)).myStoreAppInstallations.items;p(t,n,{headers:["InstallationID","ProductID","Workspace","Status","Version","Installed"],rows:n.map(d=>[f(d.id,12),f(d.productId,12),f(d.workspaceId,12),C(d.status),d.version??"-",y(d.installedAt)])});}catch(e){c(e);}}),E.command("uninstall").description("Record that a store product was uninstalled from a workspace").requiredOption("--product <id>").requiredOption("--workspace <id>").action(async t=>{try{await a(G,{productId:t.product,workspaceId:t.workspace}),w("Product uninstalled");}catch(e){c(e);}}),o.command("licenses").description("Licenses").command("list").description("List the license seats of an entitlement").requiredOption("--entitlement <id>").option("-f, --format <format>").action(async t=>{try{let e=await a(M,{entitlementId:t.entitlement});p(t,e.entitlementSeats);}catch(e){c(e);}});}var ee={id:"store",version:"1.0.0",displayName:"Store",dependsOn:["auth"],register(r,o){R(o),W(r);}},gt=ee;module.exports=gt;