@burdenoff/cli-sdk 2026.1124.1 → 2026.1202.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 (242) hide show
  1. package/dist/chunk-BGNPGKJM.js +1 -0
  2. package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
  3. package/dist/chunk-N7EXKGE2.js +34 -0
  4. package/dist/core/index.cjs +9 -9
  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 +9 -9
  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-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
  13. package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
  14. package/dist/modules/adaptercloud/index.cjs +38 -38
  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 +2 -2
  18. package/dist/modules/artistrybase/index.cjs +50 -50
  19. package/dist/modules/artistrybase/index.d.cts +1 -1
  20. package/dist/modules/artistrybase/index.d.ts +1 -1
  21. package/dist/modules/artistrybase/index.js +2 -2
  22. package/dist/modules/assethandler/index.cjs +32 -32
  23. package/dist/modules/assethandler/index.d.cts +1 -1
  24. package/dist/modules/assethandler/index.d.ts +1 -1
  25. package/dist/modules/assethandler/index.js +2 -2
  26. package/dist/modules/atheletebridge/index.cjs +34 -34
  27. package/dist/modules/atheletebridge/index.d.cts +1 -1
  28. package/dist/modules/atheletebridge/index.d.ts +1 -1
  29. package/dist/modules/atheletebridge/index.js +2 -2
  30. package/dist/modules/auth/index.cjs +34 -34
  31. package/dist/modules/auth/index.d.cts +1 -1
  32. package/dist/modules/auth/index.d.ts +1 -1
  33. package/dist/modules/auth/index.js +4 -4
  34. package/dist/modules/billing/index.cjs +18 -18
  35. package/dist/modules/billing/index.d.cts +1 -1
  36. package/dist/modules/billing/index.d.ts +1 -1
  37. package/dist/modules/billing/index.js +2 -2
  38. package/dist/modules/brainyrich/index.cjs +45 -45
  39. package/dist/modules/brainyrich/index.d.cts +1 -1
  40. package/dist/modules/brainyrich/index.d.ts +1 -1
  41. package/dist/modules/brainyrich/index.js +2 -2
  42. package/dist/modules/buildmyiq/index.cjs +32 -32
  43. package/dist/modules/buildmyiq/index.d.cts +1 -1
  44. package/dist/modules/buildmyiq/index.d.ts +1 -1
  45. package/dist/modules/buildmyiq/index.js +2 -2
  46. package/dist/modules/channels/index.cjs +12 -12
  47. package/dist/modules/channels/index.d.cts +1 -1
  48. package/dist/modules/channels/index.d.ts +1 -1
  49. package/dist/modules/channels/index.js +2 -2
  50. package/dist/modules/collabkin/index.cjs +34 -34
  51. package/dist/modules/collabkin/index.d.cts +1 -1
  52. package/dist/modules/collabkin/index.d.ts +1 -1
  53. package/dist/modules/collabkin/index.js +2 -2
  54. package/dist/modules/comradecircle/index.cjs +41 -41
  55. package/dist/modules/comradecircle/index.d.cts +1 -1
  56. package/dist/modules/comradecircle/index.d.ts +1 -1
  57. package/dist/modules/comradecircle/index.js +2 -2
  58. package/dist/modules/conversations/index.cjs +32 -32
  59. package/dist/modules/conversations/index.d.cts +1 -1
  60. package/dist/modules/conversations/index.d.ts +1 -1
  61. package/dist/modules/conversations/index.js +2 -2
  62. package/dist/modules/coolandlovely/index.cjs +41 -41
  63. package/dist/modules/coolandlovely/index.d.cts +1 -1
  64. package/dist/modules/coolandlovely/index.d.ts +1 -1
  65. package/dist/modules/coolandlovely/index.js +2 -2
  66. package/dist/modules/cosmicintersection/index.cjs +43 -43
  67. package/dist/modules/cosmicintersection/index.d.cts +1 -1
  68. package/dist/modules/cosmicintersection/index.d.ts +1 -1
  69. package/dist/modules/cosmicintersection/index.js +2 -2
  70. package/dist/modules/crewfoundry/index.cjs +70 -70
  71. package/dist/modules/crewfoundry/index.d.cts +1 -1
  72. package/dist/modules/crewfoundry/index.d.ts +1 -1
  73. package/dist/modules/crewfoundry/index.js +2 -2
  74. package/dist/modules/devportal/index.cjs +23 -23
  75. package/dist/modules/devportal/index.d.cts +1 -1
  76. package/dist/modules/devportal/index.d.ts +1 -1
  77. package/dist/modules/devportal/index.js +2 -2
  78. package/dist/modules/ecoimpacthub/index.cjs +41 -41
  79. package/dist/modules/ecoimpacthub/index.d.cts +1 -1
  80. package/dist/modules/ecoimpacthub/index.d.ts +1 -1
  81. package/dist/modules/ecoimpacthub/index.js +2 -2
  82. package/dist/modules/eventfullymanaged/index.cjs +92 -92
  83. package/dist/modules/eventfullymanaged/index.d.cts +1 -1
  84. package/dist/modules/eventfullymanaged/index.d.ts +1 -1
  85. package/dist/modules/eventfullymanaged/index.js +2 -2
  86. package/dist/modules/export/index.cjs +14 -14
  87. package/dist/modules/export/index.d.cts +1 -1
  88. package/dist/modules/export/index.d.ts +1 -1
  89. package/dist/modules/export/index.js +2 -2
  90. package/dist/modules/files/index.cjs +11 -11
  91. package/dist/modules/files/index.d.cts +1 -1
  92. package/dist/modules/files/index.d.ts +1 -1
  93. package/dist/modules/files/index.js +2 -2
  94. package/dist/modules/fluidgrids/index.cjs +29 -29
  95. package/dist/modules/fluidgrids/index.d.cts +1 -1
  96. package/dist/modules/fluidgrids/index.d.ts +1 -1
  97. package/dist/modules/fluidgrids/index.js +3 -3
  98. package/dist/modules/ggnomad/index.cjs +21 -21
  99. package/dist/modules/ggnomad/index.d.cts +1 -1
  100. package/dist/modules/ggnomad/index.d.ts +1 -1
  101. package/dist/modules/ggnomad/index.js +2 -2
  102. package/dist/modules/govcitizenhub/index.cjs +35 -35
  103. package/dist/modules/govcitizenhub/index.d.cts +1 -1
  104. package/dist/modules/govcitizenhub/index.d.ts +1 -1
  105. package/dist/modules/govcitizenhub/index.js +2 -2
  106. package/dist/modules/groups/index.cjs +12 -12
  107. package/dist/modules/groups/index.d.cts +1 -1
  108. package/dist/modules/groups/index.d.ts +1 -1
  109. package/dist/modules/groups/index.js +2 -2
  110. package/dist/modules/headshotmarketing/index.cjs +165 -165
  111. package/dist/modules/headshotmarketing/index.d.cts +1 -1
  112. package/dist/modules/headshotmarketing/index.d.ts +1 -1
  113. package/dist/modules/headshotmarketing/index.js +2 -2
  114. package/dist/modules/health/index.d.cts +1 -1
  115. package/dist/modules/health/index.d.ts +1 -1
  116. package/dist/modules/hookmovies/index.cjs +43 -43
  117. package/dist/modules/hookmovies/index.d.cts +1 -1
  118. package/dist/modules/hookmovies/index.d.ts +1 -1
  119. package/dist/modules/hookmovies/index.js +2 -2
  120. package/dist/modules/housingvista/index.cjs +24 -24
  121. package/dist/modules/housingvista/index.d.cts +1 -1
  122. package/dist/modules/housingvista/index.d.ts +1 -1
  123. package/dist/modules/housingvista/index.js +2 -2
  124. package/dist/modules/integrations/index.cjs +27 -27
  125. package/dist/modules/integrations/index.d.cts +1 -1
  126. package/dist/modules/integrations/index.d.ts +1 -1
  127. package/dist/modules/integrations/index.js +2 -2
  128. package/dist/modules/intelwatchtower/index.cjs +37 -37
  129. package/dist/modules/intelwatchtower/index.d.cts +1 -1
  130. package/dist/modules/intelwatchtower/index.d.ts +1 -1
  131. package/dist/modules/intelwatchtower/index.js +2 -2
  132. package/dist/modules/kadaikodi/index.cjs +26 -26
  133. package/dist/modules/kadaikodi/index.d.cts +1 -1
  134. package/dist/modules/kadaikodi/index.d.ts +1 -1
  135. package/dist/modules/kadaikodi/index.js +2 -2
  136. package/dist/modules/labsofscience/index.cjs +44 -44
  137. package/dist/modules/labsofscience/index.d.cts +1 -1
  138. package/dist/modules/labsofscience/index.d.ts +1 -1
  139. package/dist/modules/labsofscience/index.js +2 -2
  140. package/dist/modules/manufacturedops/index.cjs +36 -36
  141. package/dist/modules/manufacturedops/index.d.cts +1 -1
  142. package/dist/modules/manufacturedops/index.d.ts +1 -1
  143. package/dist/modules/manufacturedops/index.js +2 -2
  144. package/dist/modules/movethewheels/index.cjs +78 -78
  145. package/dist/modules/movethewheels/index.d.cts +1 -1
  146. package/dist/modules/movethewheels/index.d.ts +1 -1
  147. package/dist/modules/movethewheels/index.js +2 -2
  148. package/dist/modules/mybodyshield/index.cjs +36 -36
  149. package/dist/modules/mybodyshield/index.d.cts +1 -1
  150. package/dist/modules/mybodyshield/index.d.ts +1 -1
  151. package/dist/modules/mybodyshield/index.js +2 -2
  152. package/dist/modules/notifications/index.cjs +5 -5
  153. package/dist/modules/notifications/index.d.cts +1 -1
  154. package/dist/modules/notifications/index.d.ts +1 -1
  155. package/dist/modules/notifications/index.js +1 -1
  156. package/dist/modules/organizations/index.cjs +5 -5
  157. package/dist/modules/organizations/index.d.cts +1 -1
  158. package/dist/modules/organizations/index.d.ts +1 -1
  159. package/dist/modules/organizations/index.js +1 -1
  160. package/dist/modules/planmagnet/index.cjs +272 -272
  161. package/dist/modules/planmagnet/index.d.cts +1 -1
  162. package/dist/modules/planmagnet/index.d.ts +1 -1
  163. package/dist/modules/planmagnet/index.js +2 -2
  164. package/dist/modules/products/index.cjs +19 -19
  165. package/dist/modules/products/index.d.cts +1 -1
  166. package/dist/modules/products/index.d.ts +1 -1
  167. package/dist/modules/products/index.js +2 -2
  168. package/dist/modules/proserviceworld/index.cjs +24 -24
  169. package/dist/modules/proserviceworld/index.d.cts +1 -1
  170. package/dist/modules/proserviceworld/index.d.ts +1 -1
  171. package/dist/modules/proserviceworld/index.js +2 -2
  172. package/dist/modules/rbac/index.cjs +8 -8
  173. package/dist/modules/rbac/index.d.cts +1 -1
  174. package/dist/modules/rbac/index.d.ts +1 -1
  175. package/dist/modules/rbac/index.js +2 -2
  176. package/dist/modules/sandbox/index.cjs +39 -39
  177. package/dist/modules/sandbox/index.d.cts +1 -1
  178. package/dist/modules/sandbox/index.d.ts +1 -1
  179. package/dist/modules/sandbox/index.js +1 -1
  180. package/dist/modules/scheduler/index.cjs +25 -25
  181. package/dist/modules/scheduler/index.d.cts +1 -1
  182. package/dist/modules/scheduler/index.d.ts +1 -1
  183. package/dist/modules/scheduler/index.js +2 -2
  184. package/dist/modules/security/index.cjs +14 -14
  185. package/dist/modules/security/index.d.cts +1 -1
  186. package/dist/modules/security/index.d.ts +1 -1
  187. package/dist/modules/security/index.js +2 -2
  188. package/dist/modules/semanticfed/index.cjs +44 -44
  189. package/dist/modules/semanticfed/index.d.cts +1 -1
  190. package/dist/modules/semanticfed/index.d.ts +1 -1
  191. package/dist/modules/semanticfed/index.js +1 -1
  192. package/dist/modules/semanticfed-sql/index.cjs +4 -4
  193. package/dist/modules/semanticfed-sql/index.d.cts +1 -1
  194. package/dist/modules/semanticfed-sql/index.d.ts +1 -1
  195. package/dist/modules/semanticfed-sql/index.js +1 -1
  196. package/dist/modules/store/index.cjs +21 -21
  197. package/dist/modules/store/index.d.cts +1 -1
  198. package/dist/modules/store/index.d.ts +1 -1
  199. package/dist/modules/store/index.js +2 -2
  200. package/dist/modules/subscriberbot/index.cjs +41 -41
  201. package/dist/modules/subscriberbot/index.d.cts +1 -1
  202. package/dist/modules/subscriberbot/index.d.ts +1 -1
  203. package/dist/modules/subscriberbot/index.js +2 -2
  204. package/dist/modules/support/index.cjs +8 -8
  205. package/dist/modules/support/index.d.cts +1 -1
  206. package/dist/modules/support/index.d.ts +1 -1
  207. package/dist/modules/support/index.js +2 -2
  208. package/dist/modules/tags/index.cjs +10 -10
  209. package/dist/modules/tags/index.d.cts +1 -1
  210. package/dist/modules/tags/index.d.ts +1 -1
  211. package/dist/modules/tags/index.js +2 -2
  212. package/dist/modules/technospam/index.cjs +44 -44
  213. package/dist/modules/technospam/index.d.cts +1 -1
  214. package/dist/modules/technospam/index.d.ts +1 -1
  215. package/dist/modules/technospam/index.js +2 -2
  216. package/dist/modules/theculturepost/index.cjs +32 -32
  217. package/dist/modules/theculturepost/index.d.cts +1 -1
  218. package/dist/modules/theculturepost/index.d.ts +1 -1
  219. package/dist/modules/theculturepost/index.js +2 -2
  220. package/dist/modules/theglobalfuel/index.cjs +30 -30
  221. package/dist/modules/theglobalfuel/index.d.cts +1 -1
  222. package/dist/modules/theglobalfuel/index.d.ts +1 -1
  223. package/dist/modules/theglobalfuel/index.js +2 -2
  224. package/dist/modules/timecampus/index.cjs +69 -69
  225. package/dist/modules/timecampus/index.d.cts +1 -1
  226. package/dist/modules/timecampus/index.d.ts +1 -1
  227. package/dist/modules/timecampus/index.js +4 -4
  228. package/dist/modules/tours/index.cjs +4 -4
  229. package/dist/modules/tours/index.d.cts +1 -1
  230. package/dist/modules/tours/index.d.ts +1 -1
  231. package/dist/modules/tours/index.js +2 -2
  232. package/dist/modules/vibecontrols/index.cjs +460 -460
  233. package/dist/modules/vibecontrols/index.d.cts +1 -1
  234. package/dist/modules/vibecontrols/index.d.ts +1 -1
  235. package/dist/modules/vibecontrols/index.js +5 -5
  236. package/dist/modules/workspaces/index.cjs +16 -16
  237. package/dist/modules/workspaces/index.d.cts +1 -1
  238. package/dist/modules/workspaces/index.d.ts +1 -1
  239. package/dist/modules/workspaces/index.js +2 -2
  240. package/package.json +6 -1
  241. package/dist/chunk-3ZVMC2AF.js +0 -1
  242. package/dist/chunk-ZT6KOG7N.js +0 -34
@@ -1,155 +1,155 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var g=class extends Error{exitCode;hint;constructor(r,n){super(r),this.name="CliUserError",this.exitCode=n?.exitCode??1,this.hint=n?.hint;}},m=class extends g{constructor(r,n){super(r,{exitCode:2,hint:n?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},l=class extends Error{cause;constructor(r,n){super(r),this.name="CliInternalError",this.cause=n;}};var h=null;function x(o){h=o;}function f(){if(!h)throw new l("vibecontrols module helpers used before setHelpersContext was called");return h}function fe(){let o=f();if(!o.auth.isAuthenticated())throw new m("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function s(o,r){return fe(),f().gql.workspace.request(o,r)}function a(o){let r=o instanceof Error?o.message:String(o);throw new g(r)}function d(o,r,n){f().output.formatAndOutput(o,r,n);}function c(o){f().output.printSuccess(o);}function w(o){return f().output.formatDate(o)}function I(o,r){return f().output.truncate(o,r)}function k(){return f()}var A=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var u=class extends Error{exitCode;hint;constructor(o,t){super(o),this.name="CliUserError",this.exitCode=t?.exitCode??1,this.hint=t?.hint;}},f=class extends u{constructor(o,t){super(o,{exitCode:2,hint:t?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},g=class extends Error{cause;constructor(o,t){super(o),this.name="CliInternalError",this.cause=t;}};function E(r){if(r instanceof f||r instanceof u)return r;let o=C(r)&&C(r.response)?r.response:void 0,t=o?.errors,e=Array.isArray(t)?t[0]:void 0,i=(C(e)&&C(e.extensions)?e.extensions:void 0)?.code,d=o?.status;return i==="UNAUTHENTICATED"||d===401?new f("Authentication required."):i==="FORBIDDEN"||d===403?new u("Permission denied."):i==="BAD_USER_INPUT"||i==="GRAPHQL_VALIDATION_FAILED"||d===400?new u("Invalid request. Check the command arguments."):i==="NOT_FOUND"||d===404?new u("Requested resource was not found."):i==="RATE_LIMITED"||i==="TOO_MANY_REQUESTS"||d===429?new u("Request limit reached. Try again later."):new g("The request could not be completed. Try again later.")}var I=class extends Error{response;constructor(o,t){super(o),this.name="GqlRequestError",this.response=t;}};function C(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}var y=null;function T(r){y=r;}function m(){if(!y)throw new g("vibecontrols module helpers used before setHelpersContext was called");return y}function ve(){let r=m();if(!r.auth.isAuthenticated())throw new f("Authentication required.",{hint:`Run \`${r.productName} auth login\` to authenticate.`})}async function s(r,o){return ve(),m().gql.workspace.request(r,o)}function a(r){throw r instanceof f||r instanceof u||r instanceof g?r:r instanceof I||r!==null&&typeof r=="object"&&"response"in r?E(r):new g("The command could not be completed. Try again later.")}function p(r,o,t){m().output.formatAndOutput(r,o,t);}function c(r){m().output.printSuccess(r);}function x(r){return m().output.formatDate(r)}function v(r,o){return m().output.truncate(r,o)}function R(){return m()}var b=`
2
2
  query ListConversations($filter: ConversationFilter, $first: Int, $after: String) {
3
3
  conversations(filter: $filter, first: $first, after: $after) {
4
4
  edges { node { id title type description createdAt updatedAt unreadCount } }
5
5
  pageInfo { hasNextPage endCursor }
6
6
  }
7
7
  }
8
- `,T=`
8
+ `,O=`
9
9
  query GetConversation($id: ID!) {
10
10
  conversation(id: $id) {
11
11
  id title type description avatar settings
12
12
  createdAt updatedAt
13
13
  }
14
14
  }
15
- `,b=`
15
+ `,S=`
16
16
  mutation CreateConversation($input: CreateConversationInput!) {
17
17
  createConversation(input: $input) {
18
18
  conversation { id title type }
19
19
  }
20
20
  }
21
- `,R=`
21
+ `,N=`
22
22
  mutation DeleteConversation($id: ID!) {
23
23
  deleteConversation(id: $id) { success }
24
24
  }
25
- `,O=`
25
+ `,D=`
26
26
  mutation UpdateConversation($input: UpdateConversationInput!) {
27
27
  updateConversation(input: $input) {
28
28
  conversation { id title description }
29
29
  }
30
30
  }
31
- `,S=`
31
+ `,$=`
32
32
  mutation SendMessage($input: SendMessageInput!) {
33
33
  sendMessage(input: $input) {
34
34
  message { id content type createdAt }
35
35
  }
36
36
  }
37
- `;var N=`
37
+ `;var _=`
38
38
  mutation EditMessage($input: EditMessageInput!) {
39
39
  editMessage(input: $input) { id content isEdited editedAt }
40
40
  }
41
- `,D=`
41
+ `,P=`
42
42
  mutation DeleteMessage($id: ID!, $hard: Boolean) {
43
43
  deleteMessage(id: $id, hard: $hard) { success messageId }
44
44
  }
45
- `,$=`
45
+ `,q=`
46
46
  mutation ForwardMessage($messageId: ID!, $targetConversationId: ID!) {
47
47
  forwardMessage(messageId: $messageId, targetConversationId: $targetConversationId) {
48
48
  success message { id conversationId content createdAt }
49
49
  }
50
50
  }
51
- `,P=`
51
+ `,M=`
52
52
  mutation PinMessage($messageId: ID!) {
53
53
  pinMessage(messageId: $messageId) { id isPinned pinnedAt }
54
54
  }
55
- `,_=`
55
+ `,L=`
56
56
  mutation UnpinMessage($messageId: ID!) {
57
57
  unpinMessage(messageId: $messageId) { id isPinned }
58
58
  }
59
- `,q=`
59
+ `,U=`
60
60
  query SearchMessages($query: String!, $conversationId: ID, $first: Int) {
61
61
  searchMessages(query: $query, conversationId: $conversationId, first: $first) {
62
62
  edges { node { id conversationId authorId content type createdAt } }
63
63
  totalCount
64
64
  }
65
65
  }
66
- `,M=`
66
+ `,G=`
67
67
  query Draft($conversationId: ID!) {
68
68
  draft(conversationId: $conversationId) {
69
69
  id conversationId content parentMessageId createdAt updatedAt
70
70
  }
71
71
  }
72
- `,L=`
72
+ `,V=`
73
73
  mutation SaveDraft($input: SaveDraftInput!) {
74
74
  saveDraft(input: $input) { id conversationId content updatedAt }
75
75
  }
76
- `,U=`
76
+ `,j=`
77
77
  mutation DeleteDraft($conversationId: ID!) {
78
78
  deleteDraft(conversationId: $conversationId) { success conversationId }
79
79
  }
80
- `,V=`
80
+ `,F=`
81
81
  mutation AddReaction($messageId: ID!, $emoji: String!) {
82
82
  addReaction(messageId: $messageId, emoji: $emoji) {
83
83
  id messageId userId emoji createdAt
84
84
  }
85
85
  }
86
- `,G=`
86
+ `,W=`
87
87
  mutation RemoveReaction($messageId: ID!, $emoji: String!) {
88
88
  removeReaction(messageId: $messageId, emoji: $emoji) { success messageId emoji }
89
89
  }
90
- `,j=`
90
+ `,H=`
91
91
  mutation AddParticipant($input: AddParticipantInput!) {
92
92
  addParticipant(input: $input) { id conversationId userId createdAt }
93
93
  }
94
- `,F=`
94
+ `,B=`
95
95
  mutation RemoveParticipant($input: RemoveParticipantInput!) {
96
96
  removeParticipant(input: $input) { success conversationId userId }
97
97
  }
98
- `,W=`
98
+ `,z=`
99
99
  mutation UpdateParticipantRole($input: UpdateParticipantRoleInput!) {
100
100
  updateParticipantRole(input: $input) { id conversationId userId }
101
101
  }
102
- `,H=`
102
+ `,K=`
103
103
  mutation LeaveConversation($conversationId: ID!) {
104
104
  leaveConversation(conversationId: $conversationId) { success conversationId }
105
105
  }
106
- `,B=`
106
+ `,J=`
107
107
  mutation ArchiveConversation($id: ID!) {
108
108
  archiveConversation(id: $id) { id state }
109
109
  }
110
- `,z=`
110
+ `,Y=`
111
111
  mutation UnarchiveConversation($id: ID!) {
112
112
  unarchiveConversation(id: $id) { id state }
113
113
  }
114
- `,K=`
114
+ `,Q=`
115
115
  mutation MuteConversation($conversationId: ID!, $until: DateTime) {
116
116
  muteConversation(conversationId: $conversationId, until: $until) {
117
117
  id conversationId userId
118
118
  }
119
119
  }
120
- `,J=`
120
+ `,X=`
121
121
  mutation UnmuteConversation($conversationId: ID!) {
122
122
  unmuteConversation(conversationId: $conversationId) { id conversationId userId }
123
123
  }
124
- `,Y=`
124
+ `,Z=`
125
125
  mutation PinConversation($conversationId: ID!) {
126
126
  pinConversation(conversationId: $conversationId) { id conversationId userId }
127
127
  }
128
- `,Q=`
128
+ `,ee=`
129
129
  mutation UnpinConversation($conversationId: ID!) {
130
130
  unpinConversation(conversationId: $conversationId) { id conversationId userId }
131
131
  }
132
- `,X=`
132
+ `,te=`
133
133
  mutation MarkConversationAsRead($conversationId: ID!, $messageId: ID) {
134
134
  markConversationAsRead(conversationId: $conversationId, messageId: $messageId) {
135
135
  id conversationId userId
136
136
  }
137
137
  }
138
- `,Z=`
138
+ `,ne=`
139
139
  mutation CreateInviteLink($input: CreateInviteLinkInput!) {
140
140
  createInviteLink(input: $input) {
141
141
  code url currentUses maxUses expiresAt createdAt
142
142
  }
143
143
  }
144
- `,ee=`
144
+ `,re=`
145
145
  mutation JoinViaInviteLink($code: String!) {
146
146
  joinViaInviteLink(code: $code) { id conversationId userId createdAt }
147
147
  }
148
- `,te=`
148
+ `,oe=`
149
149
  query ValidateInviteLink($code: String!) {
150
150
  validateInviteLink(code: $code) {
151
151
  valid usesRemaining expiresAt
152
152
  conversation { id title type }
153
153
  }
154
154
  }
155
- `;function ne(o){let r=o.command("conversations").description("Conversation management");r.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let e={};n.type&&(e.type=n.type.toUpperCase());let i=(await s(A,{filter:Object.keys(e).length?e:void 0,first:n.limit})).conversations.edges.map(p=>p.node);d(n,i,{headers:["ID","Title","Type","Unread","Created"],rows:i.map(p=>[I(p.id,12),p.title??"-",p.type??"-",String(p.unreadCount??0),w(p.createdAt)])});}catch(e){a(e);}}),r.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(n,e)=>{try{let t=await s(T,{id:n});if(!t.conversation)throw new g(`Conversation ${n} not found`);d(e,t.conversation);}catch(t){a(t);}}),r.command("create").description("Create a conversation").requiredOption("--title <s>").requiredOption("--participants <ids>","Comma-separated participant userIds (required by schema)").option("--description <s>").option("--type <t>","DIRECT|GROUP|CHANNEL","GROUP").option("-f, --format <format>").action(async n=>{try{let e=k().auth.read();if(!e?.workspaceId)throw new g("No workspace set. Run: vibecontrols workspace set <id>");let t={title:n.title,description:n.description,type:(n.type??"GROUP").toUpperCase(),participantIds:n.participants.split(","),workspaceId:e.workspaceId},i=await s(b,{input:t});c("Conversation created"),d(n,i.createConversation.conversation);}catch(e){a(e);}}),r.command("update").description("Update a conversation").argument("<id>").option("--title <s>").option("--description <s>").option("-f, --format <format>").action(async(n,e)=>{try{let t={id:n};if(e.title&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),Object.keys(t).length===1)throw new g("No updates specified");let i=await s(O,{input:t});c("Conversation updated"),d(e,i.updateConversation.conversation);}catch(t){a(t);}}),r.command("delete").description("Delete a conversation").argument("<id>").action(async n=>{try{await s(R,{id:n}),c("Conversation deleted");}catch(e){a(e);}}),r.command("send").description("Send a message to a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>","Reply parent").option("-f, --format <format>").action(async(n,e)=>{try{let t={conversationId:n,content:{text:e.content},type:"TEXT",parentMessageId:e.parent},i=await s(S,{input:t});c("Message sent"),d(e,i.sendMessage.message);}catch(t){a(t);}}),Ie(r),ve(r),Ce(r),he(r),we(r),Ee(r);}function Ie(o){let r=o.command("messages").description("Message operations");r.command("edit").description("Edit a message").argument("<id>").requiredOption("--content <text>").option("--reason <s>").option("-f, --format <format>").action(async(n,e)=>{try{let t={id:n,content:{text:e.content}};e.reason&&(t.reason=e.reason);let i=await s(N,{input:t});c("Message edited"),d(e,i.editMessage);}catch(t){a(t);}}),r.command("delete").description("Delete a message").argument("<id>").option("--hard","Hard delete (default: soft)").action(async(n,e)=>{try{await s(D,{id:n,hard:e.hard??!1}),c("Message deleted");}catch(t){a(t);}}),r.command("forward").description("Forward a message to another conversation").argument("<messageId>").requiredOption("--to <targetConversationId>").option("-f, --format <format>").action(async(n,e)=>{try{let t=await s($,{messageId:n,targetConversationId:e.to});c("Message forwarded"),d(e,t.forwardMessage.message);}catch(t){a(t);}}),r.command("pin").description("Pin a message").argument("<messageId>").action(async n=>{try{await s(P,{messageId:n}),c("Message pinned");}catch(e){a(e);}}),r.command("unpin").description("Unpin a message").argument("<messageId>").action(async n=>{try{await s(_,{messageId:n}),c("Message unpinned");}catch(e){a(e);}}),r.command("search").description("Search messages").requiredOption("--query <s>").option("--conversation <id>","Restrict to a conversation").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let t=(await s(q,{query:n.query,conversationId:n.conversation,first:n.limit})).searchMessages.edges.map(i=>i.node);d(n,t,{headers:["ID","Conversation","Author","Created"],rows:t.map(i=>[I(i.id,12),I(i.conversationId??"-",12),I(i.authorId??"-",12),w(i.createdAt)])});}catch(e){a(e);}});}function ve(o){let r=o.command("drafts").description("Draft message operations");r.command("get").description("Get the actor\u2019s draft for a conversation").argument("<conversationId>").option("-f, --format <format>").action(async(n,e)=>{try{let t=await s(M,{conversationId:n});if(!t.draft){c("No draft saved");return}d(e,t.draft);}catch(t){a(t);}}),r.command("save").description("Save (upsert) a draft for a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>").option("-f, --format <format>").action(async(n,e)=>{try{let t={conversationId:n,content:{text:e.content}};e.parent&&(t.parentMessageId=e.parent);let i=await s(L,{input:t});c("Draft saved"),d(e,i.saveDraft);}catch(t){a(t);}}),r.command("delete").description("Delete the actor\u2019s draft for a conversation").argument("<conversationId>").action(async n=>{try{await s(U,{conversationId:n}),c("Draft deleted");}catch(e){a(e);}});}function Ce(o){let r=o.command("reactions").description("Reaction operations");r.command("add").description("Add an emoji reaction to a message").argument("<messageId>").requiredOption("--emoji <e>").option("-f, --format <format>").action(async(n,e)=>{try{let t=await s(V,{messageId:n,emoji:e.emoji});c("Reaction added"),d(e,t.addReaction);}catch(t){a(t);}}),r.command("remove").description("Remove an emoji reaction from a message").argument("<messageId>").requiredOption("--emoji <e>").action(async(n,e)=>{try{await s(G,{messageId:n,emoji:e.emoji}),c("Reaction removed");}catch(t){a(t);}});}function he(o){let r=o.command("participants").description("Participant operations");r.command("add").description("Add a participant to a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").option("-f, --format <format>").action(async(n,e)=>{try{let t={conversationId:n,userId:e.user};e.role&&(t.role=e.role.toUpperCase());let i=await s(j,{input:t});c("Participant added"),d(e,i.addParticipant);}catch(t){a(t);}}),r.command("remove").description("Remove a participant from a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--reason <s>").action(async(n,e)=>{try{let t={conversationId:n,userId:e.user};e.reason&&(t.reason=e.reason),await s(F,{input:t}),c("Participant removed");}catch(t){a(t);}}),r.command("role").description("Update a participant\u2019s role").argument("<conversationId>").requiredOption("--user <userId>").requiredOption("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").action(async(n,e)=>{try{await s(W,{input:{conversationId:n,userId:e.user,role:e.role.toUpperCase()}}),c("Participant role updated");}catch(t){a(t);}});}function we(o){let r=(e,t,i,p)=>{o.command(e).description(t).argument("<id>").action(async v=>{try{await s(i,{id:v}),c(p);}catch(C){a(C);}});},n=(e,t,i,p)=>{o.command(e).description(t).argument("<conversationId>").action(async v=>{try{await s(i,{conversationId:v}),c(p);}catch(C){a(C);}});};r("archive","Archive a conversation",B,"Archived"),r("unarchive","Unarchive a conversation",z,"Unarchived"),o.command("mute").description("Mute a conversation").argument("<conversationId>").option("--until <iso>","ISO timestamp; omit for indefinite").action(async(e,t)=>{try{await s(K,{conversationId:e,until:t.until}),c("Muted");}catch(i){a(i);}}),n("unmute","Unmute a conversation",J,"Unmuted"),n("pin","Pin a conversation",Y,"Pinned"),n("unpin","Unpin a conversation",Q,"Unpinned"),o.command("read").description("Mark a conversation as read").argument("<conversationId>").option("--message <messageId>","Mark read up to this message (defaults to latest)").action(async(e,t)=>{try{await s(X,{conversationId:e,messageId:t.message}),c("Marked as read");}catch(i){a(i);}}),n("leave","Leave a conversation",H,"Left conversation");}function Ee(o){let r=o.command("invites").description("Invite link operations");r.command("create").description("Create an invite link for a conversation").argument("<conversationId>").option("--max-uses <n>","Maximum number of uses",n=>parseInt(n,10)).option("--expires-at <iso>","ISO expiry timestamp").option("-f, --format <format>").action(async(n,e)=>{try{let t={conversationId:n};e.maxUses!==void 0&&(t.maxUses=e.maxUses),e.expiresAt&&(t.expiresAt=e.expiresAt);let i=await s(Z,{input:t});c("Invite link created"),d(e,i.createInviteLink);}catch(t){a(t);}}),r.command("join").description("Join a conversation via invite code").argument("<code>").action(async n=>{try{await s(ee,{code:n}),c("Joined via invite link");}catch(e){a(e);}}),r.command("validate").description("Validate an invite code").argument("<code>").option("-f, --format <format>").action(async(n,e)=>{try{let t=await s(te,{code:n});d(e,t.validateInviteLink);}catch(t){a(t);}});}var ye={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth","workspaces"],register(o,r){x(r),ne(o);}},Pt=ye;module.exports=Pt;
155
+ `;function ie(r){let o=r.command("conversations").description("Conversation management");o.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.type&&(e.type=t.type.toUpperCase());let i=(await s(b,{filter:Object.keys(e).length?e:void 0,first:t.limit})).conversations.edges.map(d=>d.node);p(t,i,{headers:["ID","Title","Type","Unread","Created"],rows:i.map(d=>[v(d.id,12),d.title??"-",d.type??"-",String(d.unreadCount??0),x(d.createdAt)])});}catch(e){a(e);}}),o.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(O,{id:t});if(!n.conversation)throw new u(`Conversation ${t} not found`);p(e,n.conversation);}catch(n){a(n);}}),o.command("create").description("Create a conversation").requiredOption("--title <s>").requiredOption("--participants <ids>","Comma-separated participant userIds (required by schema)").option("--description <s>").option("--type <t>","DIRECT|GROUP|CHANNEL","GROUP").option("-f, --format <format>").action(async t=>{try{let e=R().auth.read();if(!e?.workspaceId)throw new u("No workspace set. Run: vibecontrols workspace set <id>");let n={title:t.title,description:t.description,type:(t.type??"GROUP").toUpperCase(),participantIds:t.participants.split(","),workspaceId:e.workspaceId},i=await s(S,{input:n});c("Conversation created"),p(t,i.createConversation.conversation);}catch(e){a(e);}}),o.command("update").description("Update a conversation").argument("<id>").option("--title <s>").option("--description <s>").option("-f, --format <format>").action(async(t,e)=>{try{let n={id:t};if(e.title&&(n.title=e.title),e.description!==void 0&&(n.description=e.description),Object.keys(n).length===1)throw new u("No updates specified");let i=await s(D,{input:n});c("Conversation updated"),p(e,i.updateConversation.conversation);}catch(n){a(n);}}),o.command("delete").description("Delete a conversation").argument("<id>").action(async t=>{try{await s(N,{id:t}),c("Conversation deleted");}catch(e){a(e);}}),o.command("send").description("Send a message to a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>","Reply parent").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t,content:{text:e.content},type:"TEXT",parentMessageId:e.parent},i=await s($,{input:n});c("Message sent"),p(e,i.sendMessage.message);}catch(n){a(n);}}),he(o),we(o),Ee(o),ye(o),xe(o),ke(o);}function he(r){let o=r.command("messages").description("Message operations");o.command("edit").description("Edit a message").argument("<id>").requiredOption("--content <text>").option("--reason <s>").option("-f, --format <format>").action(async(t,e)=>{try{let n={id:t,content:{text:e.content}};e.reason&&(n.reason=e.reason);let i=await s(_,{input:n});c("Message edited"),p(e,i.editMessage);}catch(n){a(n);}}),o.command("delete").description("Delete a message").argument("<id>").option("--hard","Hard delete (default: soft)").action(async(t,e)=>{try{await s(P,{id:t,hard:e.hard??!1}),c("Message deleted");}catch(n){a(n);}}),o.command("forward").description("Forward a message to another conversation").argument("<messageId>").requiredOption("--to <targetConversationId>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(q,{messageId:t,targetConversationId:e.to});c("Message forwarded"),p(e,n.forwardMessage.message);}catch(n){a(n);}}),o.command("pin").description("Pin a message").argument("<messageId>").action(async t=>{try{await s(M,{messageId:t}),c("Message pinned");}catch(e){a(e);}}),o.command("unpin").description("Unpin a message").argument("<messageId>").action(async t=>{try{await s(L,{messageId:t}),c("Message unpinned");}catch(e){a(e);}}),o.command("search").description("Search messages").requiredOption("--query <s>").option("--conversation <id>","Restrict to a conversation").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await s(U,{query:t.query,conversationId:t.conversation,first:t.limit})).searchMessages.edges.map(i=>i.node);p(t,n,{headers:["ID","Conversation","Author","Created"],rows:n.map(i=>[v(i.id,12),v(i.conversationId??"-",12),v(i.authorId??"-",12),x(i.createdAt)])});}catch(e){a(e);}});}function we(r){let o=r.command("drafts").description("Draft message operations");o.command("get").description("Get the actor\u2019s draft for a conversation").argument("<conversationId>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(G,{conversationId:t});if(!n.draft){c("No draft saved");return}p(e,n.draft);}catch(n){a(n);}}),o.command("save").description("Save (upsert) a draft for a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t,content:{text:e.content}};e.parent&&(n.parentMessageId=e.parent);let i=await s(V,{input:n});c("Draft saved"),p(e,i.saveDraft);}catch(n){a(n);}}),o.command("delete").description("Delete the actor\u2019s draft for a conversation").argument("<conversationId>").action(async t=>{try{await s(j,{conversationId:t}),c("Draft deleted");}catch(e){a(e);}});}function Ee(r){let o=r.command("reactions").description("Reaction operations");o.command("add").description("Add an emoji reaction to a message").argument("<messageId>").requiredOption("--emoji <e>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(F,{messageId:t,emoji:e.emoji});c("Reaction added"),p(e,n.addReaction);}catch(n){a(n);}}),o.command("remove").description("Remove an emoji reaction from a message").argument("<messageId>").requiredOption("--emoji <e>").action(async(t,e)=>{try{await s(W,{messageId:t,emoji:e.emoji}),c("Reaction removed");}catch(n){a(n);}});}function ye(r){let o=r.command("participants").description("Participant operations");o.command("add").description("Add a participant to a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t,userId:e.user};e.role&&(n.role=e.role.toUpperCase());let i=await s(H,{input:n});c("Participant added"),p(e,i.addParticipant);}catch(n){a(n);}}),o.command("remove").description("Remove a participant from a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--reason <s>").action(async(t,e)=>{try{let n={conversationId:t,userId:e.user};e.reason&&(n.reason=e.reason),await s(B,{input:n}),c("Participant removed");}catch(n){a(n);}}),o.command("role").description("Update a participant\u2019s role").argument("<conversationId>").requiredOption("--user <userId>").requiredOption("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").action(async(t,e)=>{try{await s(z,{input:{conversationId:t,userId:e.user,role:e.role.toUpperCase()}}),c("Participant role updated");}catch(n){a(n);}});}function xe(r){let o=(e,n,i,d)=>{r.command(e).description(n).argument("<id>").action(async h=>{try{await s(i,{id:h}),c(d);}catch(w){a(w);}});},t=(e,n,i,d)=>{r.command(e).description(n).argument("<conversationId>").action(async h=>{try{await s(i,{conversationId:h}),c(d);}catch(w){a(w);}});};o("archive","Archive a conversation",J,"Archived"),o("unarchive","Unarchive a conversation",Y,"Unarchived"),r.command("mute").description("Mute a conversation").argument("<conversationId>").option("--until <iso>","ISO timestamp; omit for indefinite").action(async(e,n)=>{try{await s(Q,{conversationId:e,until:n.until}),c("Muted");}catch(i){a(i);}}),t("unmute","Unmute a conversation",X,"Unmuted"),t("pin","Pin a conversation",Z,"Pinned"),t("unpin","Unpin a conversation",ee,"Unpinned"),r.command("read").description("Mark a conversation as read").argument("<conversationId>").option("--message <messageId>","Mark read up to this message (defaults to latest)").action(async(e,n)=>{try{await s(te,{conversationId:e,messageId:n.message}),c("Marked as read");}catch(i){a(i);}}),t("leave","Leave a conversation",K,"Left conversation");}function ke(r){let o=r.command("invites").description("Invite link operations");o.command("create").description("Create an invite link for a conversation").argument("<conversationId>").option("--max-uses <n>","Maximum number of uses",t=>parseInt(t,10)).option("--expires-at <iso>","ISO expiry timestamp").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t};e.maxUses!==void 0&&(n.maxUses=e.maxUses),e.expiresAt&&(n.expiresAt=e.expiresAt);let i=await s(ne,{input:n});c("Invite link created"),p(e,i.createInviteLink);}catch(n){a(n);}}),o.command("join").description("Join a conversation via invite code").argument("<code>").action(async t=>{try{await s(re,{code:t}),c("Joined via invite link");}catch(e){a(e);}}),o.command("validate").description("Validate an invite code").argument("<code>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(oe,{code:t});p(e,n.validateInviteLink);}catch(n){a(n);}});}var Ae={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth","workspaces"],register(r,o){T(o),ie(r);}},Mt=Ae;module.exports=Mt;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-BNVKV_pI.cjs';
1
+ import { C as CliModule } from '../../module-DWSAfs3k.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-BNVKV_pI.js';
1
+ import { C as CliModule } from '../../module-DWSAfs3k.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,q as q$1,h as h$1,u,k as k$1}from'../../chunk-3ZVMC2AF.js';import {q as q$2}from'../../chunk-ZT6KOG7N.js';var l=`
1
+ import {a,b as b$1,i,r,q as q$1,h as h$1,u,k as k$1}from'../../chunk-BGNPGKJM.js';import {j as j$1}from'../../chunk-N7EXKGE2.js';var l=`
2
2
  query ListConversations($filter: ConversationFilter, $first: Int, $after: String) {
3
3
  conversations(filter: $filter, first: $first, after: $after) {
4
4
  edges { node { id title type description createdAt updatedAt unreadCount } }
@@ -152,4 +152,4 @@ import {a,b as b$1,i,r,q as q$1,h as h$1,u,k as k$1}from'../../chunk-3ZVMC2AF.js
152
152
  conversation { id title type }
153
153
  }
154
154
  }
155
- `;function Q(d){let o=d.command("conversations").description("Conversation management");o.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let t={};n.type&&(t.type=n.type.toUpperCase());let i$1=(await b$1(l,{filter:Object.keys(t).length?t:void 0,first:n.limit})).conversations.edges.map(p=>p.node);i(n,i$1,{headers:["ID","Title","Type","Unread","Created"],rows:i$1.map(p=>[r(p.id,12),p.title??"-",p.type??"-",String(p.unreadCount??0),q$1(p.createdAt)])});}catch(t){h$1(t);}}),o.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(R,{id:n});if(!e.conversation)throw new q$2(`Conversation ${n} not found`);i(t,e.conversation);}catch(e){h$1(e);}}),o.command("create").description("Create a conversation").requiredOption("--title <s>").requiredOption("--participants <ids>","Comma-separated participant userIds (required by schema)").option("--description <s>").option("--type <t>","DIRECT|GROUP|CHANNEL","GROUP").option("-f, --format <format>").action(async n=>{try{let t=u().auth.read();if(!t?.workspaceId)throw new q$2("No workspace set. Run: vibecontrols workspace set <id>");let e={title:n.title,description:n.description,type:(n.type??"GROUP").toUpperCase(),participantIds:n.participants.split(","),workspaceId:t.workspaceId},i$1=await b$1(N,{input:e});k$1("Conversation created"),i(n,i$1.createConversation.conversation);}catch(t){h$1(t);}}),o.command("update").description("Update a conversation").argument("<id>").option("--title <s>").option("--description <s>").option("-f, --format <format>").action(async(n,t)=>{try{let e={id:n};if(t.title&&(e.title=t.title),t.description!==void 0&&(e.description=t.description),Object.keys(e).length===1)throw new q$2("No updates specified");let i$1=await b$1(T,{input:e});k$1("Conversation updated"),i(t,i$1.updateConversation.conversation);}catch(e){h$1(e);}}),o.command("delete").description("Delete a conversation").argument("<id>").action(async n=>{try{await b$1(y,{id:n}),k$1("Conversation deleted");}catch(t){h$1(t);}}),o.command("send").description("Send a message to a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>","Reply parent").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,content:{text:t.content},type:"TEXT",parentMessageId:t.parent},i$1=await b$1(O,{input:e});k$1("Message sent"),i(t,i$1.sendMessage.message);}catch(e){h$1(e);}}),Z(o),tt(o),et(o),nt(o),ot(o),it(o);}function Z(d){let o=d.command("messages").description("Message operations");o.command("edit").description("Edit a message").argument("<id>").requiredOption("--content <text>").option("--reason <s>").option("-f, --format <format>").action(async(n,t)=>{try{let e={id:n,content:{text:t.content}};t.reason&&(e.reason=t.reason);let i$1=await b$1(S,{input:e});k$1("Message edited"),i(t,i$1.editMessage);}catch(e){h$1(e);}}),o.command("delete").description("Delete a message").argument("<id>").option("--hard","Hard delete (default: soft)").action(async(n,t)=>{try{await b$1($,{id:n,hard:t.hard??!1}),k$1("Message deleted");}catch(e){h$1(e);}}),o.command("forward").description("Forward a message to another conversation").argument("<messageId>").requiredOption("--to <targetConversationId>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(D,{messageId:n,targetConversationId:t.to});k$1("Message forwarded"),i(t,e.forwardMessage.message);}catch(e){h$1(e);}}),o.command("pin").description("Pin a message").argument("<messageId>").action(async n=>{try{await b$1(M,{messageId:n}),k$1("Message pinned");}catch(t){h$1(t);}}),o.command("unpin").description("Unpin a message").argument("<messageId>").action(async n=>{try{await b$1(_,{messageId:n}),k$1("Message unpinned");}catch(t){h$1(t);}}),o.command("search").description("Search messages").requiredOption("--query <s>").option("--conversation <id>","Restrict to a conversation").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let e=(await b$1(h,{query:n.query,conversationId:n.conversation,first:n.limit})).searchMessages.edges.map(i=>i.node);i(n,e,{headers:["ID","Conversation","Author","Created"],rows:e.map(i=>[r(i.id,12),r(i.conversationId??"-",12),r(i.authorId??"-",12),q$1(i.createdAt)])});}catch(t){h$1(t);}});}function tt(d){let o=d.command("drafts").description("Draft message operations");o.command("get").description("Get the actor\u2019s draft for a conversation").argument("<conversationId>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(x,{conversationId:n});if(!e.draft){k$1("No draft saved");return}i(t,e.draft);}catch(e){h$1(e);}}),o.command("save").description("Save (upsert) a draft for a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,content:{text:t.content}};t.parent&&(e.parentMessageId=t.parent);let i$1=await b$1(w,{input:e});k$1("Draft saved"),i(t,i$1.saveDraft);}catch(e){h$1(e);}}),o.command("delete").description("Delete the actor\u2019s draft for a conversation").argument("<conversationId>").action(async n=>{try{await b$1(P,{conversationId:n}),k$1("Draft deleted");}catch(t){h$1(t);}});}function et(d){let o=d.command("reactions").description("Reaction operations");o.command("add").description("Add an emoji reaction to a message").argument("<messageId>").requiredOption("--emoji <e>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(V,{messageId:n,emoji:t.emoji});k$1("Reaction added"),i(t,e.addReaction);}catch(e){h$1(e);}}),o.command("remove").description("Remove an emoji reaction from a message").argument("<messageId>").requiredOption("--emoji <e>").action(async(n,t)=>{try{await b$1(U,{messageId:n,emoji:t.emoji}),k$1("Reaction removed");}catch(e){h$1(e);}});}function nt(d){let o=d.command("participants").description("Participant operations");o.command("add").description("Add a participant to a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,userId:t.user};t.role&&(e.role=t.role.toUpperCase());let i$1=await b$1(k,{input:e});k$1("Participant added"),i(t,i$1.addParticipant);}catch(e){h$1(e);}}),o.command("remove").description("Remove a participant from a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--reason <s>").action(async(n,t)=>{try{let e={conversationId:n,userId:t.user};t.reason&&(e.reason=t.reason),await b$1(L,{input:e}),k$1("Participant removed");}catch(e){h$1(e);}}),o.command("role").description("Update a participant\u2019s role").argument("<conversationId>").requiredOption("--user <userId>").requiredOption("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").action(async(n,t)=>{try{await b$1(G,{input:{conversationId:n,userId:t.user,role:t.role.toUpperCase()}}),k$1("Participant role updated");}catch(e){h$1(e);}});}function ot(d){let o=(t,e,i,p)=>{d.command(t).description(e).argument("<id>").action(async I=>{try{await b$1(i,{id:I}),k$1(p);}catch(g){h$1(g);}});},n=(t,e,i,p)=>{d.command(t).description(e).argument("<conversationId>").action(async I=>{try{await b$1(i,{conversationId:I}),k$1(p);}catch(g){h$1(g);}});};o("archive","Archive a conversation",j,"Archived"),o("unarchive","Unarchive a conversation",b,"Unarchived"),d.command("mute").description("Mute a conversation").argument("<conversationId>").option("--until <iso>","ISO timestamp; omit for indefinite").action(async(t,e)=>{try{await b$1(F,{conversationId:t,until:e.until}),k$1("Muted");}catch(i){h$1(i);}}),n("unmute","Unmute a conversation",H,"Unmuted"),n("pin","Pin a conversation",K,"Pinned"),n("unpin","Unpin a conversation",J,"Unpinned"),d.command("read").description("Mark a conversation as read").argument("<conversationId>").option("--message <messageId>","Mark read up to this message (defaults to latest)").action(async(t,e)=>{try{await b$1(B,{conversationId:t,messageId:e.message}),k$1("Marked as read");}catch(i){h$1(i);}}),n("leave","Leave a conversation",q,"Left conversation");}function it(d){let o=d.command("invites").description("Invite link operations");o.command("create").description("Create an invite link for a conversation").argument("<conversationId>").option("--max-uses <n>","Maximum number of uses",n=>parseInt(n,10)).option("--expires-at <iso>","ISO expiry timestamp").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n};t.maxUses!==void 0&&(e.maxUses=t.maxUses),t.expiresAt&&(e.expiresAt=t.expiresAt);let i$1=await b$1(W,{input:e});k$1("Invite link created"),i(t,i$1.createInviteLink);}catch(e){h$1(e);}}),o.command("join").description("Join a conversation via invite code").argument("<code>").action(async n=>{try{await b$1(z,{code:n}),k$1("Joined via invite link");}catch(t){h$1(t);}}),o.command("validate").description("Validate an invite code").argument("<code>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(X,{code:n});i(t,e.validateInviteLink);}catch(e){h$1(e);}});}var at={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth","workspaces"],register(d,o){a(o),Q(d);}},ut=at;export{ut as default};
155
+ `;function Q(d){let o=d.command("conversations").description("Conversation management");o.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let t={};n.type&&(t.type=n.type.toUpperCase());let i$1=(await b$1(l,{filter:Object.keys(t).length?t:void 0,first:n.limit})).conversations.edges.map(p=>p.node);i(n,i$1,{headers:["ID","Title","Type","Unread","Created"],rows:i$1.map(p=>[r(p.id,12),p.title??"-",p.type??"-",String(p.unreadCount??0),q$1(p.createdAt)])});}catch(t){h$1(t);}}),o.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(R,{id:n});if(!e.conversation)throw new j$1(`Conversation ${n} not found`);i(t,e.conversation);}catch(e){h$1(e);}}),o.command("create").description("Create a conversation").requiredOption("--title <s>").requiredOption("--participants <ids>","Comma-separated participant userIds (required by schema)").option("--description <s>").option("--type <t>","DIRECT|GROUP|CHANNEL","GROUP").option("-f, --format <format>").action(async n=>{try{let t=u().auth.read();if(!t?.workspaceId)throw new j$1("No workspace set. Run: vibecontrols workspace set <id>");let e={title:n.title,description:n.description,type:(n.type??"GROUP").toUpperCase(),participantIds:n.participants.split(","),workspaceId:t.workspaceId},i$1=await b$1(N,{input:e});k$1("Conversation created"),i(n,i$1.createConversation.conversation);}catch(t){h$1(t);}}),o.command("update").description("Update a conversation").argument("<id>").option("--title <s>").option("--description <s>").option("-f, --format <format>").action(async(n,t)=>{try{let e={id:n};if(t.title&&(e.title=t.title),t.description!==void 0&&(e.description=t.description),Object.keys(e).length===1)throw new j$1("No updates specified");let i$1=await b$1(T,{input:e});k$1("Conversation updated"),i(t,i$1.updateConversation.conversation);}catch(e){h$1(e);}}),o.command("delete").description("Delete a conversation").argument("<id>").action(async n=>{try{await b$1(y,{id:n}),k$1("Conversation deleted");}catch(t){h$1(t);}}),o.command("send").description("Send a message to a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>","Reply parent").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,content:{text:t.content},type:"TEXT",parentMessageId:t.parent},i$1=await b$1(O,{input:e});k$1("Message sent"),i(t,i$1.sendMessage.message);}catch(e){h$1(e);}}),Z(o),tt(o),et(o),nt(o),ot(o),it(o);}function Z(d){let o=d.command("messages").description("Message operations");o.command("edit").description("Edit a message").argument("<id>").requiredOption("--content <text>").option("--reason <s>").option("-f, --format <format>").action(async(n,t)=>{try{let e={id:n,content:{text:t.content}};t.reason&&(e.reason=t.reason);let i$1=await b$1(S,{input:e});k$1("Message edited"),i(t,i$1.editMessage);}catch(e){h$1(e);}}),o.command("delete").description("Delete a message").argument("<id>").option("--hard","Hard delete (default: soft)").action(async(n,t)=>{try{await b$1($,{id:n,hard:t.hard??!1}),k$1("Message deleted");}catch(e){h$1(e);}}),o.command("forward").description("Forward a message to another conversation").argument("<messageId>").requiredOption("--to <targetConversationId>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(D,{messageId:n,targetConversationId:t.to});k$1("Message forwarded"),i(t,e.forwardMessage.message);}catch(e){h$1(e);}}),o.command("pin").description("Pin a message").argument("<messageId>").action(async n=>{try{await b$1(M,{messageId:n}),k$1("Message pinned");}catch(t){h$1(t);}}),o.command("unpin").description("Unpin a message").argument("<messageId>").action(async n=>{try{await b$1(_,{messageId:n}),k$1("Message unpinned");}catch(t){h$1(t);}}),o.command("search").description("Search messages").requiredOption("--query <s>").option("--conversation <id>","Restrict to a conversation").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let e=(await b$1(h,{query:n.query,conversationId:n.conversation,first:n.limit})).searchMessages.edges.map(i=>i.node);i(n,e,{headers:["ID","Conversation","Author","Created"],rows:e.map(i=>[r(i.id,12),r(i.conversationId??"-",12),r(i.authorId??"-",12),q$1(i.createdAt)])});}catch(t){h$1(t);}});}function tt(d){let o=d.command("drafts").description("Draft message operations");o.command("get").description("Get the actor\u2019s draft for a conversation").argument("<conversationId>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(x,{conversationId:n});if(!e.draft){k$1("No draft saved");return}i(t,e.draft);}catch(e){h$1(e);}}),o.command("save").description("Save (upsert) a draft for a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,content:{text:t.content}};t.parent&&(e.parentMessageId=t.parent);let i$1=await b$1(w,{input:e});k$1("Draft saved"),i(t,i$1.saveDraft);}catch(e){h$1(e);}}),o.command("delete").description("Delete the actor\u2019s draft for a conversation").argument("<conversationId>").action(async n=>{try{await b$1(P,{conversationId:n}),k$1("Draft deleted");}catch(t){h$1(t);}});}function et(d){let o=d.command("reactions").description("Reaction operations");o.command("add").description("Add an emoji reaction to a message").argument("<messageId>").requiredOption("--emoji <e>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(V,{messageId:n,emoji:t.emoji});k$1("Reaction added"),i(t,e.addReaction);}catch(e){h$1(e);}}),o.command("remove").description("Remove an emoji reaction from a message").argument("<messageId>").requiredOption("--emoji <e>").action(async(n,t)=>{try{await b$1(U,{messageId:n,emoji:t.emoji}),k$1("Reaction removed");}catch(e){h$1(e);}});}function nt(d){let o=d.command("participants").description("Participant operations");o.command("add").description("Add a participant to a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,userId:t.user};t.role&&(e.role=t.role.toUpperCase());let i$1=await b$1(k,{input:e});k$1("Participant added"),i(t,i$1.addParticipant);}catch(e){h$1(e);}}),o.command("remove").description("Remove a participant from a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--reason <s>").action(async(n,t)=>{try{let e={conversationId:n,userId:t.user};t.reason&&(e.reason=t.reason),await b$1(L,{input:e}),k$1("Participant removed");}catch(e){h$1(e);}}),o.command("role").description("Update a participant\u2019s role").argument("<conversationId>").requiredOption("--user <userId>").requiredOption("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").action(async(n,t)=>{try{await b$1(G,{input:{conversationId:n,userId:t.user,role:t.role.toUpperCase()}}),k$1("Participant role updated");}catch(e){h$1(e);}});}function ot(d){let o=(t,e,i,p)=>{d.command(t).description(e).argument("<id>").action(async I=>{try{await b$1(i,{id:I}),k$1(p);}catch(g){h$1(g);}});},n=(t,e,i,p)=>{d.command(t).description(e).argument("<conversationId>").action(async I=>{try{await b$1(i,{conversationId:I}),k$1(p);}catch(g){h$1(g);}});};o("archive","Archive a conversation",j,"Archived"),o("unarchive","Unarchive a conversation",b,"Unarchived"),d.command("mute").description("Mute a conversation").argument("<conversationId>").option("--until <iso>","ISO timestamp; omit for indefinite").action(async(t,e)=>{try{await b$1(F,{conversationId:t,until:e.until}),k$1("Muted");}catch(i){h$1(i);}}),n("unmute","Unmute a conversation",H,"Unmuted"),n("pin","Pin a conversation",K,"Pinned"),n("unpin","Unpin a conversation",J,"Unpinned"),d.command("read").description("Mark a conversation as read").argument("<conversationId>").option("--message <messageId>","Mark read up to this message (defaults to latest)").action(async(t,e)=>{try{await b$1(B,{conversationId:t,messageId:e.message}),k$1("Marked as read");}catch(i){h$1(i);}}),n("leave","Leave a conversation",q,"Left conversation");}function it(d){let o=d.command("invites").description("Invite link operations");o.command("create").description("Create an invite link for a conversation").argument("<conversationId>").option("--max-uses <n>","Maximum number of uses",n=>parseInt(n,10)).option("--expires-at <iso>","ISO expiry timestamp").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n};t.maxUses!==void 0&&(e.maxUses=t.maxUses),t.expiresAt&&(e.expiresAt=t.expiresAt);let i$1=await b$1(W,{input:e});k$1("Invite link created"),i(t,i$1.createInviteLink);}catch(e){h$1(e);}}),o.command("join").description("Join a conversation via invite code").argument("<code>").action(async n=>{try{await b$1(z,{code:n}),k$1("Joined via invite link");}catch(t){h$1(t);}}),o.command("validate").description("Validate an invite code").argument("<code>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(X,{code:n});i(t,e.validateInviteLink);}catch(e){h$1(e);}});}var at={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth","workspaces"],register(d,o){a(o),Q(d);}},ut=at;export{ut as default};