@burdenoff/cli-sdk 2026.627.1 → 2026.627.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/artistrybase/index.cjs +334 -0
- package/dist/modules/artistrybase/index.d.cts +7 -0
- package/dist/modules/artistrybase/index.d.ts +7 -0
- package/dist/modules/artistrybase/index.js +334 -0
- package/dist/modules/assethandler/index.cjs +255 -0
- package/dist/modules/assethandler/index.d.cts +7 -0
- package/dist/modules/assethandler/index.d.ts +7 -0
- package/dist/modules/assethandler/index.js +255 -0
- package/dist/modules/brainyrich/index.cjs +340 -0
- package/dist/modules/brainyrich/index.d.cts +7 -0
- package/dist/modules/brainyrich/index.d.ts +7 -0
- package/dist/modules/brainyrich/index.js +340 -0
- package/dist/modules/buildmyiq/index.cjs +231 -0
- package/dist/modules/buildmyiq/index.d.cts +7 -0
- package/dist/modules/buildmyiq/index.d.ts +7 -0
- package/dist/modules/buildmyiq/index.js +231 -0
- package/dist/modules/collabkin/index.cjs +208 -0
- package/dist/modules/collabkin/index.d.cts +7 -0
- package/dist/modules/collabkin/index.d.ts +7 -0
- package/dist/modules/collabkin/index.js +208 -0
- package/dist/modules/comradecircle/index.cjs +281 -0
- package/dist/modules/comradecircle/index.d.cts +7 -0
- package/dist/modules/comradecircle/index.d.ts +7 -0
- package/dist/modules/comradecircle/index.js +281 -0
- package/dist/modules/eventfullymanaged/index.cjs +247 -0
- package/dist/modules/eventfullymanaged/index.d.cts +7 -0
- package/dist/modules/eventfullymanaged/index.d.ts +7 -0
- package/dist/modules/eventfullymanaged/index.js +247 -0
- package/dist/modules/headshotmarketing/index.cjs +1083 -0
- package/dist/modules/headshotmarketing/index.d.cts +7 -0
- package/dist/modules/headshotmarketing/index.d.ts +7 -0
- package/dist/modules/headshotmarketing/index.js +1083 -0
- package/dist/modules/movethewheels/index.cjs +565 -0
- package/dist/modules/movethewheels/index.d.cts +7 -0
- package/dist/modules/movethewheels/index.d.ts +7 -0
- package/dist/modules/movethewheels/index.js +565 -0
- package/dist/modules/planmagnet/index.cjs +795 -0
- package/dist/modules/planmagnet/index.d.cts +7 -0
- package/dist/modules/planmagnet/index.d.ts +7 -0
- package/dist/modules/planmagnet/index.js +795 -0
- package/dist/modules/proserviceworld/index.cjs +193 -0
- package/dist/modules/proserviceworld/index.d.cts +7 -0
- package/dist/modules/proserviceworld/index.d.ts +7 -0
- package/dist/modules/proserviceworld/index.js +193 -0
- package/dist/modules/timecampus/index.cjs +444 -0
- package/dist/modules/timecampus/index.d.cts +7 -0
- package/dist/modules/timecampus/index.d.ts +7 -0
- package/dist/modules/timecampus/index.js +444 -0
- package/package.json +1 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var l=class extends Error{exitCode;hint;constructor(n,t){super(n),this.name="CliUserError",this.exitCode=t?.exitCode??1,this.hint=t?.hint;}},h=class extends l{constructor(n,t){super(n,{exitCode:2,hint:t?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},C=class extends Error{cause;constructor(n,t){super(n),this.name="CliInternalError",this.cause=t;}};var y=null;function T(s){y=s;}function I(){if(!y)throw new C("vibecontrols module helpers used before setHelpersContext was called");return y}function St(){let s=I();if(!s.auth.isAuthenticated())throw new h(`Authentication required. Run \`${s.productName} auth login\`.`)}async function a(s,n){return St(),I().gql.workspace.request(s,n)}async function w(s,n){return I().gql.workspaceAuthOnly.request(s,n)}function r(s){let n=s instanceof Error?s.message:String(s);throw new l(n)}function i(s,n,t){I().output.formatAndOutput(s,n,t);}function c(s){I().output.printSuccess(s);}function E(s){return I().output.formatDate(s)}function d(s,n){return I().output.truncate(s,n)}var A=`
|
|
2
|
+
query ComradecircleCircle($id: ID!) {
|
|
3
|
+
comCircle(id: $id) {
|
|
4
|
+
id name slug description topic status visibility tags memberCount
|
|
5
|
+
createdAt updatedAt workspaceId
|
|
6
|
+
avatar { id }
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`,k=`
|
|
10
|
+
query ComradecircleListCircles(
|
|
11
|
+
$pagination: PaginationInput
|
|
12
|
+
$status: ComCircleStatus
|
|
13
|
+
$visibility: ComCircleVisibility
|
|
14
|
+
) {
|
|
15
|
+
comListCircles(pagination: $pagination, status: $status, visibility: $visibility) {
|
|
16
|
+
items {
|
|
17
|
+
id name slug status visibility memberCount tags topic createdAt
|
|
18
|
+
}
|
|
19
|
+
pageInfo { cursor hasMore }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`,x=`
|
|
23
|
+
mutation ComradecircleCreateCircle($input: ComCreateCircleInput!) {
|
|
24
|
+
comCreateCircle(input: $input) {
|
|
25
|
+
id name slug description topic status visibility tags memberCount createdAt
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`,P=`
|
|
29
|
+
mutation ComradecircleUpdateCircle($id: ID!, $input: ComUpdateCircleInput!) {
|
|
30
|
+
comUpdateCircle(id: $id, input: $input) {
|
|
31
|
+
id name slug description topic status visibility tags updatedAt
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`,O=`
|
|
35
|
+
mutation ComradecircleArchiveCircle($id: ID!) {
|
|
36
|
+
comArchiveCircle(id: $id)
|
|
37
|
+
}
|
|
38
|
+
`,L=`
|
|
39
|
+
query ComradecircleListChannels($circleId: ID!) {
|
|
40
|
+
comListChannels(circleId: $circleId) {
|
|
41
|
+
id circleId name slug description type visibility position isArchived
|
|
42
|
+
createdAt updatedAt workspaceId
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`,R=`
|
|
46
|
+
mutation ComradecircleCreateChannel($input: ComCreateChannelInput!) {
|
|
47
|
+
comCreateChannel(input: $input) {
|
|
48
|
+
id circleId name slug description type visibility position isArchived createdAt
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`,S=`
|
|
52
|
+
mutation ComradecircleUpdateChannel($id: ID!, $input: ComUpdateChannelInput!) {
|
|
53
|
+
comUpdateChannel(id: $id, input: $input) {
|
|
54
|
+
id circleId name slug description type visibility position isArchived updatedAt
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,$=`
|
|
58
|
+
query ComradecircleListMemberships(
|
|
59
|
+
$circleId: ID
|
|
60
|
+
$pagination: PaginationInput
|
|
61
|
+
$status: ComMembershipStatus
|
|
62
|
+
) {
|
|
63
|
+
comListMemberships(circleId: $circleId, pagination: $pagination, status: $status) {
|
|
64
|
+
items {
|
|
65
|
+
id circleId memberId role status joinedAt createdAt updatedAt workspaceId
|
|
66
|
+
}
|
|
67
|
+
pageInfo { cursor hasMore }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`,D=`
|
|
71
|
+
mutation ComradecircleJoinCircle($circleId: ID!) {
|
|
72
|
+
comJoinCircle(circleId: $circleId) {
|
|
73
|
+
id circleId memberId role status joinedAt createdAt
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`,N=`
|
|
77
|
+
mutation ComradecircleLeaveCircle($circleId: ID!) {
|
|
78
|
+
comLeaveCircle(circleId: $circleId)
|
|
79
|
+
}
|
|
80
|
+
`,U=`
|
|
81
|
+
mutation ComradecircleSetMemberRole($membershipId: ID!, $role: ComMemberRole!) {
|
|
82
|
+
comSetMemberRole(membershipId: $membershipId, role: $role) {
|
|
83
|
+
id circleId memberId role status updatedAt
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`,M=`
|
|
87
|
+
query ComradecirclePost($id: ID!) {
|
|
88
|
+
comPost(id: $id) {
|
|
89
|
+
id channelId authorId body status tags attachmentFileIds isPinned
|
|
90
|
+
commentCount reactionCount createdAt updatedAt workspaceId
|
|
91
|
+
author { id }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`,_=`
|
|
95
|
+
query ComradecircleListPosts(
|
|
96
|
+
$channelId: ID
|
|
97
|
+
$pagination: PaginationInput
|
|
98
|
+
$status: ComPostStatus
|
|
99
|
+
) {
|
|
100
|
+
comListPosts(channelId: $channelId, pagination: $pagination, status: $status) {
|
|
101
|
+
items {
|
|
102
|
+
id channelId authorId status tags isPinned commentCount reactionCount createdAt
|
|
103
|
+
}
|
|
104
|
+
pageInfo { cursor hasMore }
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,q=`
|
|
108
|
+
mutation ComradecircleCreatePost($input: ComCreatePostInput!) {
|
|
109
|
+
comCreatePost(input: $input) {
|
|
110
|
+
id channelId authorId body status tags attachmentFileIds isPinned createdAt
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`,F=`
|
|
114
|
+
mutation ComradecircleUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
|
|
115
|
+
comUpdatePost(id: $id, input: $input) {
|
|
116
|
+
id channelId authorId body status tags isPinned updatedAt
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`,V=`
|
|
120
|
+
mutation ComradecircleRemovePost($id: ID!) {
|
|
121
|
+
comRemovePost(id: $id)
|
|
122
|
+
}
|
|
123
|
+
`,H=`
|
|
124
|
+
mutation ComradecircleReactToPost($postId: ID!, $type: ComReactionType!) {
|
|
125
|
+
comReactToPost(postId: $postId, type: $type) {
|
|
126
|
+
id channelId reactionCount status updatedAt
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
`,W=`
|
|
130
|
+
query ComradecircleListComments($postId: ID!) {
|
|
131
|
+
comListComments(postId: $postId) {
|
|
132
|
+
id postId parentId authorId body isHidden createdAt updatedAt workspaceId
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`,j=`
|
|
136
|
+
mutation ComradecircleAddComment($input: ComCreateCommentInput!) {
|
|
137
|
+
comAddComment(input: $input) {
|
|
138
|
+
id postId parentId authorId body isHidden createdAt
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
`,G=`
|
|
142
|
+
query ComradecircleEvent($id: ID!) {
|
|
143
|
+
comEvent(id: $id) {
|
|
144
|
+
id circleId hostId title description mode status location joinUrl capacity
|
|
145
|
+
rsvpCount startsAt endsAt tags createdAt updatedAt workspaceId
|
|
146
|
+
host { id }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
`,B=`
|
|
150
|
+
query ComradecircleListEvents(
|
|
151
|
+
$circleId: ID
|
|
152
|
+
$pagination: PaginationInput
|
|
153
|
+
$status: ComEventStatus
|
|
154
|
+
) {
|
|
155
|
+
comListEvents(circleId: $circleId, pagination: $pagination, status: $status) {
|
|
156
|
+
items {
|
|
157
|
+
id circleId hostId title mode status location capacity rsvpCount
|
|
158
|
+
startsAt endsAt createdAt
|
|
159
|
+
}
|
|
160
|
+
pageInfo { cursor hasMore }
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
`,J=`
|
|
164
|
+
mutation ComradecircleCreateEvent($input: ComCreateEventInput!) {
|
|
165
|
+
comCreateEvent(input: $input) {
|
|
166
|
+
id circleId hostId title description mode status location joinUrl capacity
|
|
167
|
+
startsAt endsAt tags createdAt
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`,z=`
|
|
171
|
+
mutation ComradecircleUpdateEvent($id: ID!, $input: ComUpdateEventInput!) {
|
|
172
|
+
comUpdateEvent(id: $id, input: $input) {
|
|
173
|
+
id circleId title description mode status location joinUrl capacity
|
|
174
|
+
startsAt endsAt tags updatedAt
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
`,Y=`
|
|
178
|
+
mutation ComradecircleTransitionEvent($id: ID!, $status: ComEventStatus!) {
|
|
179
|
+
comTransitionEvent(id: $id, status: $status) {
|
|
180
|
+
id title status startsAt endsAt updatedAt
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`,K=`
|
|
184
|
+
mutation ComradecircleRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
|
|
185
|
+
comRsvpEvent(eventId: $eventId, status: $status, note: $note) {
|
|
186
|
+
id eventId memberId status note createdAt updatedAt
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`,Q=`
|
|
190
|
+
query ComradecirclePoll($id: ID!) {
|
|
191
|
+
comPoll(id: $id) {
|
|
192
|
+
id circleId question status isAnonymous allowMultiple closesAt
|
|
193
|
+
createdAt updatedAt workspaceId
|
|
194
|
+
options { id pollId label position voteCount }
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
`,X=`
|
|
198
|
+
query ComradecircleListPolls($circleId: ID!, $status: ComPollStatus) {
|
|
199
|
+
comListPolls(circleId: $circleId, status: $status) {
|
|
200
|
+
id circleId question status isAnonymous allowMultiple closesAt createdAt
|
|
201
|
+
options { id label position voteCount }
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
`,Z=`
|
|
205
|
+
mutation ComradecircleCreatePoll($input: ComCreatePollInput!) {
|
|
206
|
+
comCreatePoll(input: $input) {
|
|
207
|
+
id circleId question status isAnonymous allowMultiple closesAt createdAt
|
|
208
|
+
options { id label position voteCount }
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
`,tt=`
|
|
212
|
+
mutation ComradecircleClosePoll($id: ID!) {
|
|
213
|
+
comClosePoll(id: $id) {
|
|
214
|
+
id circleId question status closesAt updatedAt
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
`,et=`
|
|
218
|
+
mutation ComradecircleVotePoll($pollId: ID!, $optionId: ID!) {
|
|
219
|
+
comVotePoll(pollId: $pollId, optionId: $optionId) {
|
|
220
|
+
id pollId label position voteCount
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`,ot=`
|
|
224
|
+
query ComradecircleProfile($memberId: ID!) {
|
|
225
|
+
comProfile(memberId: $memberId) {
|
|
226
|
+
id memberId displayName headline bio presence discoverable interests skills
|
|
227
|
+
createdAt updatedAt workspaceId
|
|
228
|
+
avatar { id }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
`,nt=`
|
|
232
|
+
query ComradecircleListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
|
|
233
|
+
comListProfiles(discoverable: $discoverable, pagination: $pagination) {
|
|
234
|
+
items {
|
|
235
|
+
id memberId displayName headline presence discoverable interests skills createdAt
|
|
236
|
+
}
|
|
237
|
+
pageInfo { cursor hasMore }
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
`,rt=`
|
|
241
|
+
mutation ComradecircleUpsertProfile($input: ComUpsertProfileInput!) {
|
|
242
|
+
comUpsertProfile(input: $input) {
|
|
243
|
+
id memberId displayName headline bio presence discoverable interests skills updatedAt
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
`,it=`
|
|
247
|
+
query ComradecircleMyFeed($pagination: PaginationInput) {
|
|
248
|
+
comMyFeed(pagination: $pagination) {
|
|
249
|
+
items {
|
|
250
|
+
id channelId authorId status tags isPinned commentCount reactionCount createdAt
|
|
251
|
+
}
|
|
252
|
+
pageInfo { cursor hasMore }
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
`,st=`
|
|
256
|
+
query ComradecircleMyFollows($targetType: ComFollowTargetType) {
|
|
257
|
+
comMyFollows(targetType: $targetType) {
|
|
258
|
+
id followerId targetId targetType muted createdAt updatedAt workspaceId
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`,at=`
|
|
262
|
+
mutation ComradecircleFollow($input: ComFollowInput!) {
|
|
263
|
+
comFollow(input: $input) {
|
|
264
|
+
id followerId targetId targetType muted createdAt
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
`,ct=`
|
|
268
|
+
mutation ComradecircleUnfollow($input: ComFollowInput!) {
|
|
269
|
+
comUnfollow(input: $input)
|
|
270
|
+
}
|
|
271
|
+
`,dt=`
|
|
272
|
+
mutation ComradecircleMuteFollow($id: ID!, $muted: Boolean!) {
|
|
273
|
+
comMuteFollow(id: $id, muted: $muted) {
|
|
274
|
+
id followerId targetId targetType muted updatedAt
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
`,lt=`
|
|
278
|
+
query ComradecircleHealth {
|
|
279
|
+
comHealth
|
|
280
|
+
}
|
|
281
|
+
`;function m(s){let n=Number.parseInt(s,10);if(Number.isNaN(n))throw new l(`Expected an integer but got "${s}"`);return n}function u(s){return s.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function pt(s){let n=s.command("circles").description("Comradecircle circles");n.command("list").description("List circles").option("--status <s>","ACTIVE|ARCHIVED|SUSPENDED").option("--visibility <v>","PUBLIC|PRIVATE|SECRET").option("--limit <n>","Page size",m,50).option("--offset <n>","Offset",m,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(k,{pagination:{limit:t.limit,offset:t.offset},status:t.status?t.status.toUpperCase():void 0,visibility:t.visibility?t.visibility.toUpperCase():void 0});i(t,e.comListCircles.items,{headers:["ID","Name","Slug","Status","Visibility","Members"],rows:e.comListCircles.items.map(o=>[d(o.id,12),o.name,o.slug,o.status,o.visibility,String(o.memberCount??0)])});}catch(e){r(e);}}),n.command("get").description("Get a circle by id").argument("<id>","Circle ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(A,{id:t});if(!o.comCircle)throw new l(`Circle ${t} not found`);i(e,o.comCircle);}catch(o){r(o);}}),n.command("create").description("Create a circle").requiredOption("--name <name>","Circle name").requiredOption("--slug <slug>","URL slug").option("--description <s>","Description").option("--topic <s>","Topic").option("--visibility <v>","PUBLIC|PRIVATE|SECRET","PUBLIC").option("--tags <csv>","Comma-separated tags").option("--avatar-file-id <id>","Avatar file ID").option("-f, --format <format>","Output format").action(async t=>{try{let e={name:t.name,slug:t.slug,visibility:(t.visibility??"PUBLIC").toUpperCase()};t.description&&(e.description=t.description),t.topic&&(e.topic=t.topic),t.tags&&(e.tags=u(t.tags)),t.avatarFileId&&(e.avatarFileId=t.avatarFileId);let o=await a(x,{input:e});c(`Circle created: ${o.comCreateCircle.name}`),i(t,o.comCreateCircle);}catch(e){r(e);}}),n.command("update").description("Update a circle").argument("<id>","Circle ID").option("--name <name>","Circle name").option("--description <s>","Description").option("--topic <s>","Topic").option("--visibility <v>","PUBLIC|PRIVATE|SECRET").option("--tags <csv>","Comma-separated tags").option("--avatar-file-id <id>","Avatar file ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o={};if(e.name&&(o.name=e.name),e.description!==void 0&&(o.description=e.description),e.topic!==void 0&&(o.topic=e.topic),e.visibility&&(o.visibility=e.visibility.toUpperCase()),e.tags&&(o.tags=u(e.tags)),e.avatarFileId&&(o.avatarFileId=e.avatarFileId),!Object.keys(o).length)throw new l("No updates specified");let f=await a(P,{id:t,input:o});c("Circle updated"),i(e,f.comUpdateCircle);}catch(o){r(o);}}),n.command("archive").description("Archive a circle").argument("<id>","Circle ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(O,{id:t});c(`Circle archived: ${o.comArchiveCircle}`),i(e,{archived:o.comArchiveCircle});}catch(o){r(o);}});}function mt(s){let n=s.command("channels").description("Comradecircle channels");n.command("list").description("List channels in a circle").requiredOption("--circle <id>","Circle ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(L,{circleId:t.circle});i(t,e.comListChannels,{headers:["ID","Name","Slug","Type","Visibility","Position"],rows:e.comListChannels.map(o=>[d(o.id,12),o.name,o.slug,o.type,o.visibility,String(o.position??0)])});}catch(e){r(e);}}),n.command("create").description("Create a channel").requiredOption("--circle <id>","Circle ID").requiredOption("--name <name>","Channel name").requiredOption("--slug <slug>","URL slug").option("--description <s>","Description").option("--type <t>","TEXT|VOICE|FORUM|ANNOUNCEMENT","TEXT").option("--visibility <v>","CIRCLE|PRIVATE","CIRCLE").option("--position <n>","Position",m).option("-f, --format <format>","Output format").action(async t=>{try{let e={circleId:t.circle,name:t.name,slug:t.slug,type:(t.type??"TEXT").toUpperCase(),visibility:(t.visibility??"CIRCLE").toUpperCase()};t.description&&(e.description=t.description),t.position!==void 0&&(e.position=t.position);let o=await a(R,{input:e});c(`Channel created: ${o.comCreateChannel.name}`),i(t,o.comCreateChannel);}catch(e){r(e);}}),n.command("update").description("Update a channel").argument("<id>","Channel ID").option("--name <name>","Channel name").option("--description <s>","Description").option("--type <t>","TEXT|VOICE|FORUM|ANNOUNCEMENT").option("--visibility <v>","CIRCLE|PRIVATE").option("--position <n>","Position",m).option("--archived <bool>","true|false",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o={};if(e.name&&(o.name=e.name),e.description!==void 0&&(o.description=e.description),e.type&&(o.type=e.type.toUpperCase()),e.visibility&&(o.visibility=e.visibility.toUpperCase()),e.position!==void 0&&(o.position=e.position),e.archived!==void 0&&(o.isArchived=e.archived),!Object.keys(o).length)throw new l("No updates specified");let f=await a(S,{id:t,input:o});c("Channel updated"),i(e,f.comUpdateChannel);}catch(o){r(o);}});}function ut(s){let n=s.command("memberships").description("Comradecircle circle memberships");n.command("list").description("List memberships").option("--circle <id>","Filter by circle ID").option("--status <s>","ACTIVE|PENDING|LEFT|BANNED").option("--limit <n>","Page size",m,50).option("--offset <n>","Offset",m,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a($,{circleId:t.circle,pagination:{limit:t.limit,offset:t.offset},status:t.status?t.status.toUpperCase():void 0});i(t,e.comListMemberships.items,{headers:["ID","Circle","Member","Role","Status"],rows:e.comListMemberships.items.map(o=>[d(o.id,12),d(o.circleId,12),d(o.memberId,12),o.role,o.status])});}catch(e){r(e);}}),n.command("join").description("Join a circle as the calling member").requiredOption("--circle <id>","Circle ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(D,{circleId:t.circle});c(`Joined circle ${e.comJoinCircle.circleId}`),i(t,e.comJoinCircle);}catch(e){r(e);}}),n.command("leave").description("Leave a circle").requiredOption("--circle <id>","Circle ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(N,{circleId:t.circle});c(`Left circle: ${e.comLeaveCircle}`),i(t,{left:e.comLeaveCircle});}catch(e){r(e);}}),n.command("set-role").description("Set a member role").argument("<membershipId>","Membership ID").requiredOption("--role <r>","OWNER|ADMIN|MODERATOR|MEMBER").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(U,{membershipId:t,role:e.role.toUpperCase()});c(`Role set to ${o.comSetMemberRole.role}`),i(e,o.comSetMemberRole);}catch(o){r(o);}});}function ft(s){let n=s.command("posts").description("Comradecircle posts");n.command("list").description("List posts").option("--channel <id>","Filter by channel ID").option("--status <s>","DRAFT|PUBLISHED|HIDDEN|REMOVED").option("--limit <n>","Page size",m,50).option("--offset <n>","Offset",m,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(_,{channelId:t.channel,pagination:{limit:t.limit,offset:t.offset},status:t.status?t.status.toUpperCase():void 0});i(t,e.comListPosts.items,{headers:["ID","Channel","Author","Status","Pinned","Comments","Reactions"],rows:e.comListPosts.items.map(o=>[d(o.id,12),d(o.channelId,12),d(o.authorId,12),o.status,o.isPinned?"yes":"no",String(o.commentCount??0),String(o.reactionCount??0)])});}catch(e){r(e);}}),n.command("get").description("Get a post by id").argument("<id>","Post ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(M,{id:t});if(!o.comPost)throw new l(`Post ${t} not found`);i(e,o.comPost);}catch(o){r(o);}}),n.command("create").description("Create a post").requiredOption("--channel <id>","Channel ID").requiredOption("--body <text>","Post body").option("--status <s>","DRAFT|PUBLISHED|HIDDEN|REMOVED","PUBLISHED").option("--tags <csv>","Comma-separated tags").option("--attachments <csv>","Comma-separated attachment file IDs").option("-f, --format <format>","Output format").action(async t=>{try{let e={channelId:t.channel,body:t.body,status:(t.status??"PUBLISHED").toUpperCase()};t.tags&&(e.tags=u(t.tags)),t.attachments&&(e.attachmentFileIds=u(t.attachments));let o=await a(q,{input:e});c(`Post created: ${o.comCreatePost.id}`),i(t,o.comCreatePost);}catch(e){r(e);}}),n.command("update").description("Update a post").argument("<id>","Post ID").option("--body <text>","Post body").option("--status <s>","DRAFT|PUBLISHED|HIDDEN|REMOVED").option("--pinned <bool>","true|false",t=>t==="true").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o={};if(e.body&&(o.body=e.body),e.status&&(o.status=e.status.toUpperCase()),e.pinned!==void 0&&(o.isPinned=e.pinned),e.tags&&(o.tags=u(e.tags)),!Object.keys(o).length)throw new l("No updates specified");let f=await a(F,{id:t,input:o});c("Post updated"),i(e,f.comUpdatePost);}catch(o){r(o);}}),n.command("remove").description("Remove a post").argument("<id>","Post ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(V,{id:t});c(`Post removed: ${o.comRemovePost}`),i(e,{removed:o.comRemovePost});}catch(o){r(o);}}),n.command("react").description("Toggle a reaction on a post").argument("<postId>","Post ID").requiredOption("--type <t>","LIKE|LOVE|CELEBRATE|INSIGHTFUL|SUPPORT|LAUGH").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(H,{postId:t,type:e.type.toUpperCase()});c(`Reaction toggled on post ${o.comReactToPost.id}`),i(e,o.comReactToPost);}catch(o){r(o);}});}function gt(s){let n=s.command("comments").description("Comradecircle post comments");n.command("list").description("List comments on a post").requiredOption("--post <id>","Post ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(W,{postId:t.post});i(t,e.comListComments,{headers:["ID","Author","Body","Parent","Hidden"],rows:e.comListComments.map(o=>[d(o.id,12),d(o.authorId,12),d(o.body,40),o.parentId?d(o.parentId,12):"-",o.isHidden?"yes":"no"])});}catch(e){r(e);}}),n.command("add").description("Add a comment to a post").requiredOption("--post <id>","Post ID").requiredOption("--body <text>","Comment body").option("--parent <id>","Parent comment ID (for replies)").option("-f, --format <format>","Output format").action(async t=>{try{let e={postId:t.post,body:t.body};t.parent&&(e.parentId=t.parent);let o=await a(j,{input:e});c(`Comment added: ${o.comAddComment.id}`),i(t,o.comAddComment);}catch(e){r(e);}});}function Ct(s){let n=s.command("events").description("Comradecircle events");n.command("list").description("List events").option("--circle <id>","Filter by circle ID").option("--status <s>","SCHEDULED|LIVE|COMPLETED|CANCELLED").option("--limit <n>","Page size",m,50).option("--offset <n>","Offset",m,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(B,{circleId:t.circle,pagination:{limit:t.limit,offset:t.offset},status:t.status?t.status.toUpperCase():void 0});i(t,e.comListEvents.items,{headers:["ID","Title","Mode","Status","Starts","RSVPs"],rows:e.comListEvents.items.map(o=>[d(o.id,12),o.title,o.mode,o.status,E(o.startsAt),String(o.rsvpCount??0)])});}catch(e){r(e);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(G,{id:t});if(!o.comEvent)throw new l(`Event ${t} not found`);i(e,o.comEvent);}catch(o){r(o);}}),n.command("create").description("Create an event").requiredOption("--circle <id>","Circle ID").requiredOption("--title <t>","Event title").requiredOption("--starts-at <iso>","Start time (ISO date)").option("--description <s>","Description").option("--mode <m>","ONLINE|IN_PERSON|HYBRID","ONLINE").option("--location <s>","Location").option("--join-url <url>","Join URL").option("--capacity <n>","Capacity",m).option("--ends-at <iso>","End time (ISO date)").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={circleId:t.circle,title:t.title,startsAt:t.startsAt,mode:(t.mode??"ONLINE").toUpperCase()};t.description&&(e.description=t.description),t.location&&(e.location=t.location),t.joinUrl&&(e.joinUrl=t.joinUrl),t.capacity!==void 0&&(e.capacity=t.capacity),t.endsAt&&(e.endsAt=t.endsAt),t.tags&&(e.tags=u(t.tags));let o=await a(J,{input:e});c(`Event created: ${o.comCreateEvent.title}`),i(t,o.comCreateEvent);}catch(e){r(e);}}),n.command("update").description("Update an event").argument("<id>","Event ID").option("--title <t>","Event title").option("--description <s>","Description").option("--mode <m>","ONLINE|IN_PERSON|HYBRID").option("--location <s>","Location").option("--join-url <url>","Join URL").option("--capacity <n>","Capacity",m).option("--starts-at <iso>","Start time (ISO date)").option("--ends-at <iso>","End time (ISO date)").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o={};if(e.title&&(o.title=e.title),e.description!==void 0&&(o.description=e.description),e.mode&&(o.mode=e.mode.toUpperCase()),e.location!==void 0&&(o.location=e.location),e.joinUrl!==void 0&&(o.joinUrl=e.joinUrl),e.capacity!==void 0&&(o.capacity=e.capacity),e.startsAt&&(o.startsAt=e.startsAt),e.endsAt&&(o.endsAt=e.endsAt),e.tags&&(o.tags=u(e.tags)),!Object.keys(o).length)throw new l("No updates specified");let f=await a(z,{id:t,input:o});c("Event updated"),i(e,f.comUpdateEvent);}catch(o){r(o);}}),n.command("transition").description("Advance an event through its lifecycle").argument("<id>","Event ID").requiredOption("--status <s>","SCHEDULED|LIVE|COMPLETED|CANCELLED").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(Y,{id:t,status:e.status.toUpperCase()});c(`Event transitioned to ${o.comTransitionEvent.status}`),i(e,o.comTransitionEvent);}catch(o){r(o);}}),n.command("rsvp").description("RSVP to an event as the calling member").argument("<eventId>","Event ID").requiredOption("--status <s>","GOING|INTERESTED|NOT_GOING|WAITLISTED").option("--note <s>","RSVP note").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(K,{eventId:t,status:e.status.toUpperCase(),note:e.note});c(`RSVP saved: ${o.comRsvpEvent.status}`),i(e,o.comRsvpEvent);}catch(o){r(o);}});}function It(s){let n=s.command("polls").description("Comradecircle polls");n.command("list").description("List polls in a circle").requiredOption("--circle <id>","Circle ID").option("--status <s>","OPEN|CLOSED").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(X,{circleId:t.circle,status:t.status?t.status.toUpperCase():void 0});i(t,e.comListPolls,{headers:["ID","Question","Status","Anonymous","Multiple"],rows:e.comListPolls.map(o=>[d(o.id,12),d(o.question,40),o.status,o.isAnonymous?"yes":"no",o.allowMultiple?"yes":"no"])});}catch(e){r(e);}}),n.command("get").description("Get a poll by id").argument("<id>","Poll ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(Q,{id:t});if(!o.comPoll)throw new l(`Poll ${t} not found`);i(e,o.comPoll);}catch(o){r(o);}}),n.command("create").description("Create a poll").requiredOption("--circle <id>","Circle ID").requiredOption("--question <q>","Poll question").requiredOption("--options <csv>","Comma-separated option labels").option("--allow-multiple","Allow multiple selections").option("--anonymous","Anonymous voting").option("--closes-at <iso>","Close time (ISO date)").option("-f, --format <format>","Output format").action(async t=>{try{let e=u(t.options);if(e.length===0)throw new l("--options must contain at least one option");let o={circleId:t.circle,question:t.question,options:e,allowMultiple:t.allowMultiple??!1,isAnonymous:t.anonymous??!1};t.closesAt&&(o.closesAt=t.closesAt);let f=await a(Z,{input:o});c(`Poll created: ${f.comCreatePoll.id}`),i(t,f.comCreatePoll);}catch(e){r(e);}}),n.command("close").description("Close a poll").argument("<id>","Poll ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(tt,{id:t});c(`Poll closed: ${o.comClosePoll.status}`),i(e,o.comClosePoll);}catch(o){r(o);}}),n.command("vote").description("Cast a vote for a poll option").argument("<pollId>","Poll ID").requiredOption("--option <id>","Option ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(et,{pollId:t,optionId:e.option});c(`Voted: ${o.comVotePoll.label} (${o.comVotePoll.voteCount})`),i(e,o.comVotePoll);}catch(o){r(o);}});}function ht(s){let n=s.command("profiles").description("Comradecircle member profiles");n.command("list").description("List member profiles").option("--discoverable <bool>","true|false",t=>t==="true").option("--limit <n>","Page size",m,50).option("--offset <n>","Offset",m,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(nt,{discoverable:t.discoverable,pagination:{limit:t.limit,offset:t.offset}});i(t,e.comListProfiles.items,{headers:["ID","Member","Display Name","Headline","Presence","Discoverable"],rows:e.comListProfiles.items.map(o=>[d(o.id,12),d(o.memberId,12),o.displayName,d(o.headline??"-",30),o.presence??"-",o.discoverable?"yes":"no"])});}catch(e){r(e);}}),n.command("get").description("Get a member profile by member id").argument("<memberId>","Member ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(ot,{memberId:t});if(!o.comProfile)throw new l(`Profile for member ${t} not found`);i(e,o.comProfile);}catch(o){r(o);}}),n.command("upsert").description("Create or update the calling member's profile").requiredOption("--display-name <name>","Display name").option("--headline <s>","Headline").option("--bio <s>","Bio").option("--presence <p>","ONLINE|AWAY|BUSY|OFFLINE").option("--discoverable <bool>","true|false",t=>t==="true").option("--interests <csv>","Comma-separated interests").option("--skills <csv>","Comma-separated skills").option("--avatar-file-id <id>","Avatar file ID").option("-f, --format <format>","Output format").action(async t=>{try{let e={displayName:t.displayName};t.headline&&(e.headline=t.headline),t.bio&&(e.bio=t.bio),t.presence&&(e.presence=t.presence.toUpperCase()),t.discoverable!==void 0&&(e.discoverable=t.discoverable),t.interests&&(e.interests=u(t.interests)),t.skills&&(e.skills=u(t.skills)),t.avatarFileId&&(e.avatarFileId=t.avatarFileId);let o=await a(rt,{input:e});c(`Profile saved: ${o.comUpsertProfile.displayName}`),i(t,o.comUpsertProfile);}catch(e){r(e);}});}function yt(s){let n=s.command("feed").description("Comradecircle home feed & follows");n.command("home").description("The calling member's unified home feed").option("--limit <n>","Page size",m,50).option("--offset <n>","Offset",m,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(it,{pagination:{limit:t.limit,offset:t.offset}});i(t,e.comMyFeed.items,{headers:["ID","Channel","Author","Status","Comments","Reactions"],rows:e.comMyFeed.items.map(o=>[d(o.id,12),d(o.channelId,12),d(o.authorId,12),o.status,String(o.commentCount??0),String(o.reactionCount??0)])});}catch(e){r(e);}}),n.command("follows").description("List the calling member's follows").option("--target-type <t>","CIRCLE|CHANNEL|MEMBER").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(st,{targetType:t.targetType?t.targetType.toUpperCase():void 0});i(t,e.comMyFollows,{headers:["ID","Target","Target Type","Muted"],rows:e.comMyFollows.map(o=>[d(o.id,12),d(o.targetId,12),o.targetType,o.muted?"yes":"no"])});}catch(e){r(e);}}),n.command("follow").description("Follow a target (circle, channel, or member)").requiredOption("--target-id <id>","Target ID").requiredOption("--target-type <t>","CIRCLE|CHANNEL|MEMBER").option("-f, --format <format>","Output format").action(async t=>{try{let e={targetId:t.targetId,targetType:t.targetType.toUpperCase()},o=await a(at,{input:e});c(`Following ${o.comFollow.targetType} ${o.comFollow.targetId}`),i(t,o.comFollow);}catch(e){r(e);}}),n.command("unfollow").description("Unfollow a target").requiredOption("--target-id <id>","Target ID").requiredOption("--target-type <t>","CIRCLE|CHANNEL|MEMBER").option("-f, --format <format>","Output format").action(async t=>{try{let e={targetId:t.targetId,targetType:t.targetType.toUpperCase()},o=await a(ct,{input:e});c(`Unfollowed: ${o.comUnfollow}`),i(t,{unfollowed:o.comUnfollow});}catch(e){r(e);}}),n.command("mute").description("Mute or unmute a follow").argument("<id>","Follow ID").requiredOption("--muted <bool>","true|false",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let o=await a(dt,{id:t,muted:e.muted});c(`Follow ${o.comMuteFollow.muted?"muted":"unmuted"}`),i(e,o.comMuteFollow);}catch(o){r(o);}});}function wt(s){s.command("health").description("Comradecircle service health check (public)").option("-f, --format <format>","Output format").action(async n=>{try{let t=await w(lt);c(t.comHealth),i(n,{health:t.comHealth});}catch(t){r(t);}});}var $t={id:"comradecircle",version:"1.0.0",displayName:"Comradecircle",dependsOn:["auth","workspaces"],register(s,n){T(n);let t=s.command("comradecircle").description("Comradecircle community circles");pt(t),mt(t),ut(t),ft(t),gt(t),Ct(t),It(t),ht(t),yt(t),wt(t);}},Lo=$t;module.exports=Lo;
|