@burdenoff/cli-sdk 2026.1201.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.
- package/dist/chunk-BGNPGKJM.js +1 -0
- package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
- package/dist/chunk-N7EXKGE2.js +34 -0
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{module-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
- package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
- package/dist/modules/adaptercloud/index.cjs +38 -38
- package/dist/modules/adaptercloud/index.d.cts +1 -1
- package/dist/modules/adaptercloud/index.d.ts +1 -1
- package/dist/modules/adaptercloud/index.js +2 -2
- package/dist/modules/artistrybase/index.cjs +50 -50
- package/dist/modules/artistrybase/index.d.cts +1 -1
- package/dist/modules/artistrybase/index.d.ts +1 -1
- package/dist/modules/artistrybase/index.js +2 -2
- package/dist/modules/assethandler/index.cjs +32 -32
- package/dist/modules/assethandler/index.d.cts +1 -1
- package/dist/modules/assethandler/index.d.ts +1 -1
- package/dist/modules/assethandler/index.js +2 -2
- package/dist/modules/atheletebridge/index.cjs +34 -34
- package/dist/modules/atheletebridge/index.d.cts +1 -1
- package/dist/modules/atheletebridge/index.d.ts +1 -1
- package/dist/modules/atheletebridge/index.js +2 -2
- package/dist/modules/auth/index.cjs +34 -34
- package/dist/modules/auth/index.d.cts +1 -1
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/index.js +4 -4
- package/dist/modules/billing/index.cjs +18 -18
- package/dist/modules/billing/index.d.cts +1 -1
- package/dist/modules/billing/index.d.ts +1 -1
- package/dist/modules/billing/index.js +2 -2
- package/dist/modules/brainyrich/index.cjs +45 -45
- package/dist/modules/brainyrich/index.d.cts +1 -1
- package/dist/modules/brainyrich/index.d.ts +1 -1
- package/dist/modules/brainyrich/index.js +2 -2
- package/dist/modules/buildmyiq/index.cjs +32 -32
- package/dist/modules/buildmyiq/index.d.cts +1 -1
- package/dist/modules/buildmyiq/index.d.ts +1 -1
- package/dist/modules/buildmyiq/index.js +2 -2
- package/dist/modules/channels/index.cjs +12 -12
- package/dist/modules/channels/index.d.cts +1 -1
- package/dist/modules/channels/index.d.ts +1 -1
- package/dist/modules/channels/index.js +2 -2
- package/dist/modules/collabkin/index.cjs +34 -34
- package/dist/modules/collabkin/index.d.cts +1 -1
- package/dist/modules/collabkin/index.d.ts +1 -1
- package/dist/modules/collabkin/index.js +2 -2
- package/dist/modules/comradecircle/index.cjs +41 -41
- package/dist/modules/comradecircle/index.d.cts +1 -1
- package/dist/modules/comradecircle/index.d.ts +1 -1
- package/dist/modules/comradecircle/index.js +2 -2
- package/dist/modules/conversations/index.cjs +32 -32
- package/dist/modules/conversations/index.d.cts +1 -1
- package/dist/modules/conversations/index.d.ts +1 -1
- package/dist/modules/conversations/index.js +2 -2
- package/dist/modules/coolandlovely/index.cjs +41 -41
- package/dist/modules/coolandlovely/index.d.cts +1 -1
- package/dist/modules/coolandlovely/index.d.ts +1 -1
- package/dist/modules/coolandlovely/index.js +2 -2
- package/dist/modules/cosmicintersection/index.cjs +43 -43
- package/dist/modules/cosmicintersection/index.d.cts +1 -1
- package/dist/modules/cosmicintersection/index.d.ts +1 -1
- package/dist/modules/cosmicintersection/index.js +2 -2
- package/dist/modules/crewfoundry/index.cjs +70 -70
- package/dist/modules/crewfoundry/index.d.cts +1 -1
- package/dist/modules/crewfoundry/index.d.ts +1 -1
- package/dist/modules/crewfoundry/index.js +2 -2
- package/dist/modules/devportal/index.cjs +23 -23
- package/dist/modules/devportal/index.d.cts +1 -1
- package/dist/modules/devportal/index.d.ts +1 -1
- package/dist/modules/devportal/index.js +2 -2
- package/dist/modules/ecoimpacthub/index.cjs +41 -41
- package/dist/modules/ecoimpacthub/index.d.cts +1 -1
- package/dist/modules/ecoimpacthub/index.d.ts +1 -1
- package/dist/modules/ecoimpacthub/index.js +2 -2
- package/dist/modules/eventfullymanaged/index.cjs +92 -92
- package/dist/modules/eventfullymanaged/index.d.cts +1 -1
- package/dist/modules/eventfullymanaged/index.d.ts +1 -1
- package/dist/modules/eventfullymanaged/index.js +2 -2
- package/dist/modules/export/index.cjs +14 -14
- package/dist/modules/export/index.d.cts +1 -1
- package/dist/modules/export/index.d.ts +1 -1
- package/dist/modules/export/index.js +2 -2
- package/dist/modules/files/index.cjs +11 -11
- package/dist/modules/files/index.d.cts +1 -1
- package/dist/modules/files/index.d.ts +1 -1
- package/dist/modules/files/index.js +2 -2
- package/dist/modules/fluidgrids/index.cjs +29 -29
- package/dist/modules/fluidgrids/index.d.cts +1 -1
- package/dist/modules/fluidgrids/index.d.ts +1 -1
- package/dist/modules/fluidgrids/index.js +3 -3
- package/dist/modules/ggnomad/index.cjs +21 -21
- package/dist/modules/ggnomad/index.d.cts +1 -1
- package/dist/modules/ggnomad/index.d.ts +1 -1
- package/dist/modules/ggnomad/index.js +2 -2
- package/dist/modules/govcitizenhub/index.cjs +35 -35
- package/dist/modules/govcitizenhub/index.d.cts +1 -1
- package/dist/modules/govcitizenhub/index.d.ts +1 -1
- package/dist/modules/govcitizenhub/index.js +2 -2
- package/dist/modules/groups/index.cjs +12 -12
- package/dist/modules/groups/index.d.cts +1 -1
- package/dist/modules/groups/index.d.ts +1 -1
- package/dist/modules/groups/index.js +2 -2
- package/dist/modules/headshotmarketing/index.cjs +165 -165
- package/dist/modules/headshotmarketing/index.d.cts +1 -1
- package/dist/modules/headshotmarketing/index.d.ts +1 -1
- package/dist/modules/headshotmarketing/index.js +2 -2
- package/dist/modules/health/index.d.cts +1 -1
- package/dist/modules/health/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.cjs +43 -43
- package/dist/modules/hookmovies/index.d.cts +1 -1
- package/dist/modules/hookmovies/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.js +2 -2
- package/dist/modules/housingvista/index.cjs +24 -24
- package/dist/modules/housingvista/index.d.cts +1 -1
- package/dist/modules/housingvista/index.d.ts +1 -1
- package/dist/modules/housingvista/index.js +2 -2
- package/dist/modules/integrations/index.cjs +27 -27
- package/dist/modules/integrations/index.d.cts +1 -1
- package/dist/modules/integrations/index.d.ts +1 -1
- package/dist/modules/integrations/index.js +2 -2
- package/dist/modules/intelwatchtower/index.cjs +37 -37
- package/dist/modules/intelwatchtower/index.d.cts +1 -1
- package/dist/modules/intelwatchtower/index.d.ts +1 -1
- package/dist/modules/intelwatchtower/index.js +2 -2
- package/dist/modules/kadaikodi/index.cjs +26 -26
- package/dist/modules/kadaikodi/index.d.cts +1 -1
- package/dist/modules/kadaikodi/index.d.ts +1 -1
- package/dist/modules/kadaikodi/index.js +2 -2
- package/dist/modules/labsofscience/index.cjs +44 -44
- package/dist/modules/labsofscience/index.d.cts +1 -1
- package/dist/modules/labsofscience/index.d.ts +1 -1
- package/dist/modules/labsofscience/index.js +2 -2
- package/dist/modules/manufacturedops/index.cjs +36 -36
- package/dist/modules/manufacturedops/index.d.cts +1 -1
- package/dist/modules/manufacturedops/index.d.ts +1 -1
- package/dist/modules/manufacturedops/index.js +2 -2
- package/dist/modules/movethewheels/index.cjs +78 -78
- package/dist/modules/movethewheels/index.d.cts +1 -1
- package/dist/modules/movethewheels/index.d.ts +1 -1
- package/dist/modules/movethewheels/index.js +2 -2
- package/dist/modules/mybodyshield/index.cjs +36 -36
- package/dist/modules/mybodyshield/index.d.cts +1 -1
- package/dist/modules/mybodyshield/index.d.ts +1 -1
- package/dist/modules/mybodyshield/index.js +2 -2
- package/dist/modules/notifications/index.cjs +5 -5
- package/dist/modules/notifications/index.d.cts +1 -1
- package/dist/modules/notifications/index.d.ts +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/organizations/index.cjs +5 -5
- package/dist/modules/organizations/index.d.cts +1 -1
- package/dist/modules/organizations/index.d.ts +1 -1
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/planmagnet/index.cjs +272 -272
- package/dist/modules/planmagnet/index.d.cts +1 -1
- package/dist/modules/planmagnet/index.d.ts +1 -1
- package/dist/modules/planmagnet/index.js +2 -2
- package/dist/modules/products/index.cjs +19 -19
- package/dist/modules/products/index.d.cts +1 -1
- package/dist/modules/products/index.d.ts +1 -1
- package/dist/modules/products/index.js +2 -2
- package/dist/modules/proserviceworld/index.cjs +24 -24
- package/dist/modules/proserviceworld/index.d.cts +1 -1
- package/dist/modules/proserviceworld/index.d.ts +1 -1
- package/dist/modules/proserviceworld/index.js +2 -2
- package/dist/modules/rbac/index.cjs +8 -8
- package/dist/modules/rbac/index.d.cts +1 -1
- package/dist/modules/rbac/index.d.ts +1 -1
- package/dist/modules/rbac/index.js +2 -2
- package/dist/modules/sandbox/index.cjs +39 -39
- package/dist/modules/sandbox/index.d.cts +1 -1
- package/dist/modules/sandbox/index.d.ts +1 -1
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.cjs +25 -25
- package/dist/modules/scheduler/index.d.cts +1 -1
- package/dist/modules/scheduler/index.d.ts +1 -1
- package/dist/modules/scheduler/index.js +2 -2
- package/dist/modules/security/index.cjs +14 -14
- package/dist/modules/security/index.d.cts +1 -1
- package/dist/modules/security/index.d.ts +1 -1
- package/dist/modules/security/index.js +2 -2
- package/dist/modules/semanticfed/index.cjs +44 -44
- package/dist/modules/semanticfed/index.d.cts +1 -1
- package/dist/modules/semanticfed/index.d.ts +1 -1
- package/dist/modules/semanticfed/index.js +1 -1
- package/dist/modules/semanticfed-sql/index.cjs +4 -4
- package/dist/modules/semanticfed-sql/index.d.cts +1 -1
- package/dist/modules/semanticfed-sql/index.d.ts +1 -1
- package/dist/modules/semanticfed-sql/index.js +1 -1
- package/dist/modules/store/index.cjs +21 -21
- package/dist/modules/store/index.d.cts +1 -1
- package/dist/modules/store/index.d.ts +1 -1
- package/dist/modules/store/index.js +2 -2
- package/dist/modules/subscriberbot/index.cjs +41 -41
- package/dist/modules/subscriberbot/index.d.cts +1 -1
- package/dist/modules/subscriberbot/index.d.ts +1 -1
- package/dist/modules/subscriberbot/index.js +2 -2
- package/dist/modules/support/index.cjs +8 -8
- package/dist/modules/support/index.d.cts +1 -1
- package/dist/modules/support/index.d.ts +1 -1
- package/dist/modules/support/index.js +2 -2
- package/dist/modules/tags/index.cjs +10 -10
- package/dist/modules/tags/index.d.cts +1 -1
- package/dist/modules/tags/index.d.ts +1 -1
- package/dist/modules/tags/index.js +2 -2
- package/dist/modules/technospam/index.cjs +44 -44
- package/dist/modules/technospam/index.d.cts +1 -1
- package/dist/modules/technospam/index.d.ts +1 -1
- package/dist/modules/technospam/index.js +2 -2
- package/dist/modules/theculturepost/index.cjs +32 -32
- package/dist/modules/theculturepost/index.d.cts +1 -1
- package/dist/modules/theculturepost/index.d.ts +1 -1
- package/dist/modules/theculturepost/index.js +2 -2
- package/dist/modules/theglobalfuel/index.cjs +30 -30
- package/dist/modules/theglobalfuel/index.d.cts +1 -1
- package/dist/modules/theglobalfuel/index.d.ts +1 -1
- package/dist/modules/theglobalfuel/index.js +2 -2
- package/dist/modules/timecampus/index.cjs +69 -69
- package/dist/modules/timecampus/index.d.cts +1 -1
- package/dist/modules/timecampus/index.d.ts +1 -1
- package/dist/modules/timecampus/index.js +4 -4
- package/dist/modules/tours/index.cjs +4 -4
- package/dist/modules/tours/index.d.cts +1 -1
- package/dist/modules/tours/index.d.ts +1 -1
- package/dist/modules/tours/index.js +2 -2
- package/dist/modules/vibecontrols/index.cjs +460 -460
- package/dist/modules/vibecontrols/index.d.cts +1 -1
- package/dist/modules/vibecontrols/index.d.ts +1 -1
- package/dist/modules/vibecontrols/index.js +5 -5
- package/dist/modules/workspaces/index.cjs +16 -16
- package/dist/modules/workspaces/index.d.cts +1 -1
- package/dist/modules/workspaces/index.d.ts +1 -1
- package/dist/modules/workspaces/index.js +2 -2
- package/package.json +6 -1
- package/dist/chunk-3ZVMC2AF.js +0 -1
- package/dist/chunk-ZT6KOG7N.js +0 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var
|
|
1
|
+
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var m=class extends Error{exitCode;hint;constructor(r,t){super(r),this.name="CliUserError",this.exitCode=t?.exitCode??1,this.hint=t?.hint;}},C=class extends m{constructor(r,t){super(r,{exitCode:2,hint:t?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},g=class extends Error{cause;constructor(r,t){super(r),this.name="CliInternalError",this.cause=t;}};function S(o){if(o instanceof C||o instanceof m)return o;let r=k(o)&&k(o.response)?o.response:void 0,t=r?.errors,e=Array.isArray(t)?t[0]:void 0,c=(k(e)&&k(e.extensions)?e.extensions:void 0)?.code,y=r?.status;return c==="UNAUTHENTICATED"||y===401?new C("Authentication required."):c==="FORBIDDEN"||y===403?new m("Permission denied."):c==="BAD_USER_INPUT"||c==="GRAPHQL_VALIDATION_FAILED"||y===400?new m("Invalid request. Check the command arguments."):c==="NOT_FOUND"||y===404?new m("Requested resource was not found."):c==="RATE_LIMITED"||c==="TOO_MANY_REQUESTS"||y===429?new m("Request limit reached. Try again later."):new g("The request could not be completed. Try again later.")}var T=class extends Error{response;constructor(r,t){super(r),this.name="GqlRequestError",this.response=t;}};function k(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}var A=null;function v(o){A=o;}function b(){if(!A)throw new g("vibecontrols module helpers used before setHelpersContext was called");return A}function jt(){let o=b();if(!o.auth.isAuthenticated())throw new C("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function a(o,r){return jt(),b().gql.workspace.request(o,r)}async function x(o,r){return b().gql.workspaceAuthOnly.request(o,r)}function i(o){throw o instanceof C||o instanceof m||o instanceof g?o:o instanceof T||o!==null&&typeof o=="object"&&"response"in o?S(o):new g("The command could not be completed. Try again later.")}function s(o,r,t){b().output.formatAndOutput(o,r,t);}function d(o){b().output.printSuccess(o);}function P(o){b().output.printWarning(o);}function E(o){return b().output.formatDate(o)}function p(o,r){return b().output.truncate(o,r)}var D=`
|
|
2
2
|
query TecCourse($id: ID!) {
|
|
3
3
|
tecCanonicalCourse(id: $id) {
|
|
4
4
|
id
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
`,$=`
|
|
14
14
|
query TecListCourses(
|
|
15
15
|
$level: TecCourseLevel
|
|
16
16
|
$status: TecCourseStatus
|
|
@@ -27,31 +27,31 @@
|
|
|
27
27
|
pageInfo { cursor hasMore }
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,L=`
|
|
31
31
|
mutation TecCreateCourse($input: TecCreateCourseInput!) {
|
|
32
32
|
tecCreateCourse(input: $input) {
|
|
33
33
|
id slug title topic summary level status estimatedMinutes instructorId
|
|
34
34
|
tags createdAt
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,M=`
|
|
38
38
|
mutation TecUpdateCourse($id: ID!, $input: TecUpdateCourseInput!) {
|
|
39
39
|
tecUpdateCourse(id: $id, input: $input) {
|
|
40
40
|
id slug title topic summary level status estimatedMinutes instructorId
|
|
41
41
|
tags updatedAt
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
`,N=`
|
|
45
45
|
mutation TecPublishCourse($id: ID!) {
|
|
46
46
|
tecPublishCourse(id: $id) {
|
|
47
47
|
id slug title status publishedAt updatedAt
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,U=`
|
|
51
51
|
mutation TecArchiveCourse($id: ID!) {
|
|
52
52
|
tecArchiveCourse(id: $id)
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,q=`
|
|
55
55
|
query TecListLessons($courseId: ID!, $pagination: PaginationInput) {
|
|
56
56
|
tecCanonicalLessons(courseId: $courseId, pagination: $pagination) {
|
|
57
57
|
items {
|
|
@@ -65,21 +65,21 @@
|
|
|
65
65
|
pageInfo { cursor hasMore }
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,_=`
|
|
69
69
|
mutation TecCreateLesson($input: TecCreateLessonInput!) {
|
|
70
70
|
tecCreateLesson(input: $input) {
|
|
71
71
|
id courseId title kind position estimatedMinutes isPreview content
|
|
72
72
|
createdAt
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,H=`
|
|
76
76
|
mutation TecUpdateLesson($id: ID!, $input: TecUpdateLessonInput!) {
|
|
77
77
|
tecUpdateLesson(id: $id, input: $input) {
|
|
78
78
|
id courseId title kind position estimatedMinutes isPreview content
|
|
79
79
|
updatedAt
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`,G=`
|
|
83
83
|
query TecListEnrollments(
|
|
84
84
|
$courseId: ID
|
|
85
85
|
$learnerId: ID
|
|
@@ -96,27 +96,27 @@
|
|
|
96
96
|
pageInfo { cursor hasMore }
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
`,
|
|
99
|
+
`,F=`
|
|
100
100
|
mutation TecEnroll($input: TecEnrollInput!) {
|
|
101
101
|
tecEnroll(input: $input) {
|
|
102
102
|
id courseId learnerId status progressPct lessonsCompleted startedAt createdAt
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
`,
|
|
105
|
+
`,j=`
|
|
106
106
|
mutation TecUpdateProgress($input: TecUpdateProgressInput!) {
|
|
107
107
|
tecUpdateProgress(input: $input) {
|
|
108
108
|
id courseId learnerId status progressPct lessonsCompleted
|
|
109
109
|
lastActiveAt completedAt updatedAt
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
112
|
+
`,B=`
|
|
113
113
|
query TecMentor($id: ID!) {
|
|
114
114
|
tecMentor(id: $id) {
|
|
115
115
|
id userId headline bio expertise hourlyRate currency status
|
|
116
116
|
isAcceptingMentees ratingAvg sessionsCount createdAt updatedAt workspaceId
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,W=`
|
|
120
120
|
query TecListMentors($status: TecMentorStatus, $pagination: PaginationInput) {
|
|
121
121
|
tecListMentors(status: $status, pagination: $pagination) {
|
|
122
122
|
items {
|
|
@@ -126,27 +126,27 @@
|
|
|
126
126
|
pageInfo { cursor hasMore }
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,z=`
|
|
130
130
|
mutation TecBecomeMentor($input: TecCreateMentorInput!) {
|
|
131
131
|
tecBecomeMentor(input: $input) {
|
|
132
132
|
id userId headline bio expertise hourlyRate currency status
|
|
133
133
|
isAcceptingMentees createdAt
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,V=`
|
|
137
137
|
mutation TecUpdateMentor($id: ID!, $input: TecUpdateMentorInput!) {
|
|
138
138
|
tecUpdateMentor(id: $id, input: $input) {
|
|
139
139
|
id userId headline bio expertise hourlyRate currency status
|
|
140
140
|
isAcceptingMentees updatedAt
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,K=`
|
|
144
144
|
mutation TecApproveMentor($id: ID!) {
|
|
145
145
|
tecApproveMentor(id: $id) {
|
|
146
146
|
id userId headline status updatedAt
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
`,
|
|
149
|
+
`,J=`
|
|
150
150
|
query TecListSessions($mentorId: ID, $menteeId: ID, $status: TecSessionStatus) {
|
|
151
151
|
tecListSessions(mentorId: $mentorId, menteeId: $menteeId, status: $status) {
|
|
152
152
|
items {
|
|
@@ -156,38 +156,38 @@
|
|
|
156
156
|
pageInfo { cursor hasMore }
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
159
|
+
`,Y=`
|
|
160
160
|
mutation TecBookSession($input: TecBookSessionInput!) {
|
|
161
161
|
tecBookSession(input: $input) {
|
|
162
162
|
id mentorId menteeId topic agenda status scheduledAt durationMinutes createdAt
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,Q=`
|
|
166
166
|
mutation TecConfirmSession($id: ID!, $meetingUrl: String) {
|
|
167
167
|
tecConfirmSession(id: $id, meetingUrl: $meetingUrl) {
|
|
168
168
|
id mentorId menteeId topic status scheduledAt meetingUrl updatedAt
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
`,
|
|
171
|
+
`,X=`
|
|
172
172
|
mutation TecCancelSession($id: ID!) {
|
|
173
173
|
tecCancelSession(id: $id) {
|
|
174
174
|
id mentorId menteeId topic status cancelledAt updatedAt
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,Z=`
|
|
178
178
|
mutation TecCompleteSession($id: ID!, $rating: Int, $feedback: String) {
|
|
179
179
|
tecCompleteSession(id: $id, rating: $rating, feedback: $feedback) {
|
|
180
180
|
id mentorId menteeId topic status rating feedback completedAt updatedAt
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
`,
|
|
183
|
+
`,tt=`
|
|
184
184
|
query TecHackathon($id: ID!) {
|
|
185
185
|
tecHackathon(id: $id) {
|
|
186
186
|
id slug title theme description status startAt endAt submissionDeadline
|
|
187
187
|
maxTeamSize prizePool currency tags createdAt updatedAt workspaceId
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,et=`
|
|
191
191
|
query TecListHackathons($status: TecHackathonStatus, $pagination: PaginationInput) {
|
|
192
192
|
tecListHackathons(status: $status, pagination: $pagination) {
|
|
193
193
|
items {
|
|
@@ -197,27 +197,27 @@
|
|
|
197
197
|
pageInfo { cursor hasMore }
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
`,
|
|
200
|
+
`,nt=`
|
|
201
201
|
mutation TecCreateHackathon($input: TecCreateHackathonInput!) {
|
|
202
202
|
tecCreateHackathon(input: $input) {
|
|
203
203
|
id slug title theme description status startAt endAt submissionDeadline
|
|
204
204
|
maxTeamSize prizePool currency tags createdAt
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,rt=`
|
|
208
208
|
mutation TecUpdateHackathon($id: ID!, $input: TecUpdateHackathonInput!) {
|
|
209
209
|
tecUpdateHackathon(id: $id, input: $input) {
|
|
210
210
|
id slug title theme description status startAt endAt submissionDeadline
|
|
211
211
|
maxTeamSize prizePool currency tags updatedAt
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
`,
|
|
214
|
+
`,ot=`
|
|
215
215
|
mutation TecOpenRegistration($id: ID!) {
|
|
216
216
|
tecOpenRegistration(id: $id) {
|
|
217
217
|
id slug title status updatedAt
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
`,
|
|
220
|
+
`,it=`
|
|
221
221
|
query TecListTeams($hackathonId: ID!) {
|
|
222
222
|
tecListTeams(hackathonId: $hackathonId) {
|
|
223
223
|
items {
|
|
@@ -227,33 +227,33 @@
|
|
|
227
227
|
pageInfo { cursor hasMore }
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
230
|
+
`,st=`
|
|
231
231
|
mutation TecRegisterTeam($input: TecRegisterTeamInput!) {
|
|
232
232
|
tecRegisterTeam(input: $input) {
|
|
233
233
|
id hackathonId name captainId memberIds status score createdAt
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
`,
|
|
236
|
+
`,at=`
|
|
237
237
|
mutation TecSubmitProject($input: TecSubmitProjectInput!) {
|
|
238
238
|
tecSubmitProject(input: $input) {
|
|
239
239
|
id hackathonId name status projectName projectUrl repoUrl pitch
|
|
240
240
|
submittedAt updatedAt
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,ct=`
|
|
244
244
|
mutation TecScoreTeam($id: ID!, $score: Int!, $winner: Boolean) {
|
|
245
245
|
tecScoreTeam(id: $id, score: $score, winner: $winner) {
|
|
246
246
|
id hackathonId name status score updatedAt
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`,ut=`
|
|
250
250
|
query TecProblem($id: ID!) {
|
|
251
251
|
tecProblem(id: $id) {
|
|
252
252
|
id slug title topic statement difficulty status points languages tags
|
|
253
253
|
starterCode publishedAt createdAt updatedAt workspaceId
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
`,
|
|
256
|
+
`,dt=`
|
|
257
257
|
query TecListProblems(
|
|
258
258
|
$difficulty: TecProblemDifficulty
|
|
259
259
|
$status: TecProblemStatus
|
|
@@ -273,27 +273,27 @@
|
|
|
273
273
|
pageInfo { cursor hasMore }
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
`,
|
|
276
|
+
`,pt=`
|
|
277
277
|
mutation TecCreateProblem($input: TecCreateProblemInput!) {
|
|
278
278
|
tecCreateProblem(input: $input) {
|
|
279
279
|
id slug title topic statement difficulty status points languages tags
|
|
280
280
|
starterCode createdAt
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
`,
|
|
283
|
+
`,mt=`
|
|
284
284
|
mutation TecUpdateProblem($id: ID!, $input: TecUpdateProblemInput!) {
|
|
285
285
|
tecUpdateProblem(id: $id, input: $input) {
|
|
286
286
|
id slug title topic statement difficulty status points languages tags
|
|
287
287
|
starterCode updatedAt
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
`,
|
|
290
|
+
`,lt=`
|
|
291
291
|
mutation TecPublishProblem($id: ID!) {
|
|
292
292
|
tecPublishProblem(id: $id) {
|
|
293
293
|
id slug title status publishedAt updatedAt
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`,ft=`
|
|
297
297
|
query TecListSubmissions(
|
|
298
298
|
$problemId: ID
|
|
299
299
|
$learnerId: ID
|
|
@@ -307,20 +307,20 @@
|
|
|
307
307
|
pageInfo { cursor hasMore }
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
`,
|
|
310
|
+
`,gt=`
|
|
311
311
|
mutation TecSubmitSolution($input: TecSubmitSolutionInput!) {
|
|
312
312
|
tecSubmitSolution(input: $input) {
|
|
313
313
|
id problemId learnerId language verdict pointsAwarded runtimeMs createdAt
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
`,
|
|
316
|
+
`,ht=`
|
|
317
317
|
mutation TecGradeSubmission($id: ID!, $verdict: TecSubmissionVerdict!, $runtimeMs: Int) {
|
|
318
318
|
tecGradeSubmission(id: $id, verdict: $verdict, runtimeMs: $runtimeMs) {
|
|
319
319
|
id problemId learnerId language verdict pointsAwarded runtimeMs
|
|
320
320
|
judgedAt updatedAt
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
`,
|
|
323
|
+
`,Ct=`
|
|
324
324
|
query TecListCertificates($courseId: ID, $learnerId: ID, $pagination: PaginationInput) {
|
|
325
325
|
tecCanonicalCertificates(courseId: $courseId, learnerId: $learnerId, pagination: $pagination) {
|
|
326
326
|
items {
|
|
@@ -333,20 +333,20 @@
|
|
|
333
333
|
pageInfo { cursor hasMore }
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
`,
|
|
336
|
+
`,It=`
|
|
337
337
|
mutation TecIssueCertificate($courseId: ID!, $learnerId: ID!, $score: Int!) {
|
|
338
338
|
tecIssueCertificate(courseId: $courseId, learnerId: $learnerId, score: $score) {
|
|
339
339
|
id courseId learnerId serial score status issuedAt createdAt
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
`,
|
|
342
|
+
`,bt=`
|
|
343
343
|
mutation TecRevokeCertificate($id: ID!, $reason: String) {
|
|
344
344
|
tecRevokeCertificate(id: $id, reason: $reason) {
|
|
345
345
|
id courseId learnerId serial score status revokedAt revokeReason updatedAt
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
`,
|
|
348
|
+
`,wt=`
|
|
349
349
|
query TecHealth {
|
|
350
350
|
tecHealth
|
|
351
351
|
}
|
|
352
|
-
`;function c(o){let r=Number.parseInt(o,10);if(Number.isNaN(r))throw new l(`Expected an integer but got "${o}"`);return r}function g(o){return o.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function h(o,r){let t=[];for(let e of o){let n=e[r];n&&t.push({...n,canonicalId:e.id});}return t}function I(o){o.hasMore&&o.cursor&&x(`More results available: rerun with --cursor ${o.cursor}`);}function Ct(o){let r=o.command("courses").description("Technospam courses");r.command("list").description("List courses").option("--level <l>","BEGINNER|INTERMEDIATE|ADVANCED|EXPERT").option("--status <s>","DRAFT|PUBLISHED|ARCHIVED").option("--limit <n>","Page size",c,50).option("--cursor <id>","Start after this course (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(R,{level:t.level?t.level.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=h(e.tecCanonicalCourses.items,"technospamCourse");s(t,n,{headers:["ID","Title","Level","Status","Minutes"],rows:n.map(p=>[d(p.id,12),p.title,p.level,p.status,String(p.estimatedMinutes??0)])}),I(e.tecCanonicalCourses.pageInfo);}catch(e){i(e);}}),r.command("get").description("Get a course by id").argument("<id>","Course ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(O,{id:t}),[p]=h(n.tecCanonicalCourse?[n.tecCanonicalCourse]:[],"technospamCourse");if(!p)throw new l(`Course ${t} not found`);s(e,p);}catch(n){i(n);}}),r.command("create").description("Create a course").requiredOption("--title <t>","Course title").requiredOption("--slug <slug>","URL slug").option("--topic <t>","Topic").option("--summary <s>","Summary").option("--level <l>","BEGINNER|INTERMEDIATE|ADVANCED|EXPERT","BEGINNER").option("--estimated-minutes <n>","Estimated minutes",c).option("--instructor-id <id>","Instructor user ID").option("--cover-file-id <id>","Cover image File ID").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title,slug:t.slug,level:(t.level??"BEGINNER").toUpperCase()};t.topic&&(e.topic=t.topic),t.summary&&(e.summary=t.summary),t.estimatedMinutes!==void 0&&(e.estimatedMinutes=t.estimatedMinutes),t.instructorId&&(e.instructorId=t.instructorId),t.coverFileId&&(e.coverFileId=t.coverFileId),t.tags&&(e.tags=g(t.tags));let n=await a(v,{input:e});u(`Course created: ${n.tecCreateCourse.title}`),s(t,n.tecCreateCourse);}catch(e){i(e);}}),r.command("update").description("Update a course").argument("<id>","Course ID").option("--title <t>","Course title").option("--topic <t>","Topic").option("--summary <s>","Summary").option("--level <l>","BEGINNER|INTERMEDIATE|ADVANCED|EXPERT").option("--estimated-minutes <n>","Estimated minutes",c).option("--instructor-id <id>","Instructor user ID").option("--cover-file-id <id>","Cover image File ID").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.topic!==void 0&&(n.topic=e.topic),e.summary!==void 0&&(n.summary=e.summary),e.level&&(n.level=e.level.toUpperCase()),e.estimatedMinutes!==void 0&&(n.estimatedMinutes=e.estimatedMinutes),e.instructorId&&(n.instructorId=e.instructorId),e.coverFileId&&(n.coverFileId=e.coverFileId),e.tags&&(n.tags=g(e.tags)),!Object.keys(n).length)throw new l("No updates specified");let p=await a(P,{id:t,input:n});u("Course updated"),s(e,p.tecUpdateCourse);}catch(n){i(n);}}),r.command("publish").description("Publish a course (DRAFT -> PUBLISHED)").argument("<id>","Course ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a($,{id:t});u(`Course published: ${n.tecPublishCourse.title}`),s(e,n.tecPublishCourse);}catch(n){i(n);}}),r.command("archive").description("Archive a course").argument("<id>","Course ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(D,{id:t});u(n.tecArchiveCourse?"Course archived":"Course not archived"),s(e,{archived:n.tecArchiveCourse});}catch(n){i(n);}});}function It(o){let r=o.command("lessons").description("Technospam course lessons");r.command("list").description("List lessons for a course").requiredOption("--course <id>","Course ID").option("--limit <n>","Page size",c,100).option("--cursor <id>","Start after this lesson (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(L,{courseId:t.course,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=h(e.tecCanonicalLessons.items,"technospamLesson");s(t,n,{headers:["ID","Title","Kind","Position","Minutes","Preview"],rows:n.map(p=>[d(p.id,12),p.title,p.kind,String(p.position),String(p.estimatedMinutes??0),p.isPreview?"yes":"no"])}),I(e.tecCanonicalLessons.pageInfo);}catch(e){i(e);}}),r.command("create").description("Create a lesson").requiredOption("--course <id>","Course ID").requiredOption("--title <t>","Lesson title").option("--kind <k>","ARTICLE|VIDEO|QUIZ|INTERACTIVE|PROJECT","ARTICLE").option("--content <s>","Lesson content").option("--position <n>","Order position",c).option("--estimated-minutes <n>","Estimated minutes",c).option("--file-id <id>","Attachment / video File ID").option("--preview","Mark as a free preview lesson").option("-f, --format <format>","Output format").action(async t=>{try{let e={courseId:t.course,title:t.title,kind:(t.kind??"ARTICLE").toUpperCase()};t.content&&(e.content=t.content),t.position!==void 0&&(e.position=t.position),t.estimatedMinutes!==void 0&&(e.estimatedMinutes=t.estimatedMinutes),t.fileId&&(e.fileId=t.fileId),t.preview&&(e.isPreview=!0);let n=await a(M,{input:e});u(`Lesson created: ${n.tecCreateLesson.title}`),s(t,n.tecCreateLesson);}catch(e){i(e);}}),r.command("update").description("Update a lesson").argument("<id>","Lesson ID").option("--title <t>","Lesson title").option("--kind <k>","ARTICLE|VIDEO|QUIZ|INTERACTIVE|PROJECT").option("--content <s>","Lesson content").option("--position <n>","Order position",c).option("--estimated-minutes <n>","Estimated minutes",c).option("--file-id <id>","Attachment / video File ID").option("--preview <bool>","true|false",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.kind&&(n.kind=e.kind.toUpperCase()),e.content!==void 0&&(n.content=e.content),e.position!==void 0&&(n.position=e.position),e.estimatedMinutes!==void 0&&(n.estimatedMinutes=e.estimatedMinutes),e.fileId&&(n.fileId=e.fileId),e.preview!==void 0&&(n.isPreview=e.preview),!Object.keys(n).length)throw new l("No updates specified");let p=await a(N,{id:t,input:n});u("Lesson updated"),s(e,p.tecUpdateLesson);}catch(n){i(n);}});}function bt(o){let r=o.command("enrollments").description("Technospam course enrollments");r.command("list").description("List enrollments").option("--course <id>","Filter by course ID").option("--learner <id>","Filter by learner ID").option("--limit <n>","Page size",c,50).option("--cursor <id>","Start after this enrollment (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(U,{courseId:t.course,learnerId:t.learner,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=h(e.tecCanonicalEnrollments.items,"technospamEnrollment");s(t,n,{headers:["ID","Course","Learner","Status","Progress %","Lessons"],rows:n.map(p=>[d(p.id,12),d(p.courseId,12),d(p.learnerId,12),p.status,String(p.progressPct),String(p.lessonsCompleted)])}),I(e.tecCanonicalEnrollments.pageInfo);}catch(e){i(e);}}),r.command("enroll").description("Enroll the calling user in a course").requiredOption("--course <id>","Course ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(q,{input:{courseId:t.course}});u(`Enrolled in course ${e.tecEnroll.courseId}`),s(t,e.tecEnroll);}catch(e){i(e);}}),r.command("update-progress").description("Update a learner's enrollment progress (auto-completes at 100%)").requiredOption("--enrollment <id>","Enrollment ID").requiredOption("--progress-pct <n>","Progress percent (0-100)",c).option("--lessons-completed <n>","Lessons completed count",c).option("-f, --format <format>","Output format").action(async t=>{try{let e={enrollmentId:t.enrollment,progressPct:t.progressPct};t.lessonsCompleted!==void 0&&(e.lessonsCompleted=t.lessonsCompleted);let n=await a(_,{input:e});u(`Progress updated to ${n.tecUpdateProgress.progressPct}%`),s(t,n.tecUpdateProgress);}catch(e){i(e);}});}function wt(o){let r=o.command("mentors").description("Technospam mentors");r.command("list").description("List mentors").option("--status <s>","PENDING|ACTIVE|PAUSED|INACTIVE").option("--limit <n>","Page size",c,50).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(G,{status:t.status?t.status.toUpperCase():void 0,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListMentors.items,{headers:["ID","Headline","Status","Rate","Rating","Accepting"],rows:e.tecListMentors.items.map(n=>[d(n.id,12),d(n.headline,30),n.status,String(n.hourlyRate??0),String(n.ratingAvg??0),n.isAcceptingMentees?"yes":"no"])});}catch(e){i(e);}}),r.command("get").description("Get a mentor by id").argument("<id>","Mentor ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(H,{id:t});if(!n.tecMentor)throw new l(`Mentor ${t} not found`);s(e,n.tecMentor);}catch(n){i(n);}}),r.command("become").description("Create the calling user's mentor profile").requiredOption("--headline <h>","Mentor headline").option("--bio <s>","Bio").option("--expertise <csv>","Comma-separated areas of expertise").option("--hourly-rate <n>","Hourly rate",c).option("--currency <c>","Currency code").option("-f, --format <format>","Output format").action(async t=>{try{let e={headline:t.headline};t.bio&&(e.bio=t.bio),t.expertise&&(e.expertise=g(t.expertise)),t.hourlyRate!==void 0&&(e.hourlyRate=t.hourlyRate),t.currency&&(e.currency=t.currency);let n=await a(F,{input:e});u(`Mentor profile created: ${n.tecBecomeMentor.headline}`),s(t,n.tecBecomeMentor);}catch(e){i(e);}}),r.command("update").description("Update a mentor profile").argument("<id>","Mentor ID").option("--headline <h>","Mentor headline").option("--bio <s>","Bio").option("--expertise <csv>","Comma-separated areas of expertise").option("--hourly-rate <n>","Hourly rate",c).option("--currency <c>","Currency code").option("--accepting <bool>","true|false (accepting mentees)",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.headline&&(n.headline=e.headline),e.bio!==void 0&&(n.bio=e.bio),e.expertise&&(n.expertise=g(e.expertise)),e.hourlyRate!==void 0&&(n.hourlyRate=e.hourlyRate),e.currency&&(n.currency=e.currency),e.accepting!==void 0&&(n.isAcceptingMentees=e.accepting),!Object.keys(n).length)throw new l("No updates specified");let p=await a(j,{id:t,input:n});u("Mentor updated"),s(e,p.tecUpdateMentor);}catch(n){i(n);}}),r.command("approve").description("Approve a pending mentor profile (PENDING -> ACTIVE)").argument("<id>","Mentor ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(B,{id:t});u(`Mentor approved: ${n.tecApproveMentor.status}`),s(e,n.tecApproveMentor);}catch(n){i(n);}});}function yt(o){let r=o.command("sessions").description("Technospam mentorship sessions");r.command("list").description("List mentorship sessions").option("--mentor <id>","Filter by mentor ID").option("--mentee <id>","Filter by mentee ID").option("--status <s>","REQUESTED|CONFIRMED|COMPLETED|CANCELLED|NO_SHOW").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(W,{mentorId:t.mentor,menteeId:t.mentee,status:t.status?t.status.toUpperCase():void 0});s(t,e.tecListSessions.items,{headers:["ID","Mentor","Mentee","Topic","Status","Scheduled"],rows:e.tecListSessions.items.map(n=>[d(n.id,12),d(n.mentorId,12),d(n.menteeId,12),d(n.topic,24),n.status,y(n.scheduledAt)])});}catch(e){i(e);}}),r.command("book").description("Book a 1:1 session with a mentor as the calling mentee").requiredOption("--mentor <id>","Mentor ID").requiredOption("--topic <t>","Session topic").requiredOption("--scheduled-at <iso>","Scheduled time (ISO date)").option("--agenda <s>","Agenda").option("--duration-minutes <n>","Duration (minutes)",c).option("-f, --format <format>","Output format").action(async t=>{try{let e={mentorId:t.mentor,topic:t.topic,scheduledAt:t.scheduledAt};t.agenda&&(e.agenda=t.agenda),t.durationMinutes!==void 0&&(e.durationMinutes=t.durationMinutes);let n=await a(z,{input:e});u(`Session booked: ${n.tecBookSession.topic}`),s(t,n.tecBookSession);}catch(e){i(e);}}),r.command("confirm").description("Confirm a requested session").argument("<id>","Session ID").option("--meeting-url <url>","Meeting URL").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(V,{id:t,meetingUrl:e.meetingUrl});u("Session confirmed"),s(e,n.tecConfirmSession);}catch(n){i(n);}}),r.command("cancel").description("Cancel a session").argument("<id>","Session ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(K,{id:t});u("Session cancelled"),s(e,n.tecCancelSession);}catch(n){i(n);}}),r.command("complete").description("Complete a session with optional rating and feedback").argument("<id>","Session ID").option("--rating <n>","Rating (1-5)",c).option("--feedback <s>","Feedback").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(J,{id:t,rating:e.rating,feedback:e.feedback});u("Session completed"),s(e,n.tecCompleteSession);}catch(n){i(n);}});}function Et(o){let r=o.command("hackathons").description("Technospam hackathons");r.command("list").description("List hackathons").option("--status <s>","DRAFT|REGISTRATION_OPEN|IN_PROGRESS|JUDGING|COMPLETED|CANCELLED").option("--limit <n>","Page size",c,50).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(Q,{status:t.status?t.status.toUpperCase():void 0,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListHackathons.items,{headers:["ID","Title","Status","Start","Prize"],rows:e.tecListHackathons.items.map(n=>[d(n.id,12),n.title,n.status,y(n.startAt),String(n.prizePool??0)])});}catch(e){i(e);}}),r.command("get").description("Get a hackathon by id").argument("<id>","Hackathon ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(Y,{id:t});if(!n.tecHackathon)throw new l(`Hackathon ${t} not found`);s(e,n.tecHackathon);}catch(n){i(n);}}),r.command("create").description("Create a hackathon").requiredOption("--title <t>","Hackathon title").requiredOption("--slug <slug>","URL slug").requiredOption("--start-at <iso>","Start time (ISO date)").requiredOption("--end-at <iso>","End time (ISO date)").option("--theme <t>","Theme").option("--description <s>","Description").option("--submission-deadline <iso>","Submission deadline (ISO date)").option("--max-team-size <n>","Max team size",c).option("--prize-pool <n>","Prize pool",c).option("--currency <c>","Currency code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title,slug:t.slug,startAt:t.startAt,endAt:t.endAt};t.theme&&(e.theme=t.theme),t.description&&(e.description=t.description),t.submissionDeadline&&(e.submissionDeadline=t.submissionDeadline),t.maxTeamSize!==void 0&&(e.maxTeamSize=t.maxTeamSize),t.prizePool!==void 0&&(e.prizePool=t.prizePool),t.currency&&(e.currency=t.currency),t.tags&&(e.tags=g(t.tags));let n=await a(X,{input:e});u(`Hackathon created: ${n.tecCreateHackathon.title}`),s(t,n.tecCreateHackathon);}catch(e){i(e);}}),r.command("update").description("Update a hackathon").argument("<id>","Hackathon ID").option("--title <t>","Hackathon title").option("--theme <t>","Theme").option("--description <s>","Description").option("--start-at <iso>","Start time (ISO date)").option("--end-at <iso>","End time (ISO date)").option("--submission-deadline <iso>","Submission deadline (ISO date)").option("--max-team-size <n>","Max team size",c).option("--prize-pool <n>","Prize pool",c).option("--currency <c>","Currency code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.theme!==void 0&&(n.theme=e.theme),e.description!==void 0&&(n.description=e.description),e.startAt&&(n.startAt=e.startAt),e.endAt&&(n.endAt=e.endAt),e.submissionDeadline&&(n.submissionDeadline=e.submissionDeadline),e.maxTeamSize!==void 0&&(n.maxTeamSize=e.maxTeamSize),e.prizePool!==void 0&&(n.prizePool=e.prizePool),e.currency&&(n.currency=e.currency),e.tags&&(n.tags=g(e.tags)),!Object.keys(n).length)throw new l("No updates specified");let p=await a(Z,{id:t,input:n});u("Hackathon updated"),s(e,p.tecUpdateHackathon);}catch(n){i(n);}}),r.command("open-registration").description("Open registration for a hackathon (DRAFT -> REGISTRATION_OPEN)").argument("<id>","Hackathon ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(tt,{id:t});u(`Registration open: ${n.tecOpenRegistration.status}`),s(e,n.tecOpenRegistration);}catch(n){i(n);}});}function Tt(o){let r=o.command("teams").description("Technospam hackathon teams");r.command("list").description("List teams for a hackathon").requiredOption("--hackathon <id>","Hackathon ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(et,{hackathonId:t.hackathon});s(t,e.tecListTeams.items,{headers:["ID","Name","Captain","Status","Score"],rows:e.tecListTeams.items.map(n=>[d(n.id,12),n.name,d(n.captainId,12),n.status,String(n.score??0)])});}catch(e){i(e);}}),r.command("register").description("Register a team for a hackathon with the calling user as captain").requiredOption("--hackathon <id>","Hackathon ID").requiredOption("--name <name>","Team name").option("--members <csv>","Comma-separated member user IDs").option("-f, --format <format>","Output format").action(async t=>{try{let e={hackathonId:t.hackathon,name:t.name};t.members&&(e.memberIds=g(t.members));let n=await a(nt,{input:e});u(`Team registered: ${n.tecRegisterTeam.name}`),s(t,n.tecRegisterTeam);}catch(e){i(e);}}),r.command("submit-project").description("Submit a team's project for judging").requiredOption("--team <id>","Team ID").requiredOption("--project-name <n>","Project name").option("--project-url <url>","Project URL").option("--repo-url <url>","Repository URL").option("--pitch <s>","Pitch").option("-f, --format <format>","Output format").action(async t=>{try{let e={teamId:t.team,projectName:t.projectName};t.projectUrl&&(e.projectUrl=t.projectUrl),t.repoUrl&&(e.repoUrl=t.repoUrl),t.pitch&&(e.pitch=t.pitch);let n=await a(rt,{input:e});u(`Project submitted: ${n.tecSubmitProject.status}`),s(t,n.tecSubmitProject);}catch(e){i(e);}}),r.command("score").description("Record a judge score for a team and optionally mark it WINNER").argument("<id>","Team ID").requiredOption("--score <n>","Score",c).option("--winner","Mark the team as winner").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ot,{id:t,score:e.score,winner:e.winner??void 0});u(`Team scored: ${n.tecScoreTeam.score}`),s(e,n.tecScoreTeam);}catch(n){i(n);}});}function kt(o){let r=o.command("problems").description("Technospam practice problems");r.command("list").description("List problems").option("--difficulty <d>","EASY|MEDIUM|HARD").option("--status <s>","DRAFT|PUBLISHED|ARCHIVED").option("--topic <t>","Filter by topic").option("--limit <n>","Page size",c,50).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(st,{difficulty:t.difficulty?t.difficulty.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,topic:t.topic,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListProblems.items,{headers:["ID","Title","Difficulty","Status","Points"],rows:e.tecListProblems.items.map(n=>[d(n.id,12),n.title,n.difficulty,n.status,String(n.points??0)])});}catch(e){i(e);}}),r.command("get").description("Get a problem by id").argument("<id>","Problem ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(it,{id:t});if(!n.tecProblem)throw new l(`Problem ${t} not found`);s(e,n.tecProblem);}catch(n){i(n);}}),r.command("create").description("Create a problem").requiredOption("--title <t>","Problem title").requiredOption("--slug <slug>","URL slug").option("--topic <t>","Topic").option("--statement <s>","Problem statement").option("--difficulty <d>","EASY|MEDIUM|HARD","EASY").option("--points <n>","Points",c).option("--languages <csv>","Comma-separated allowed languages").option("--starter-code <s>","Starter code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title,slug:t.slug,difficulty:(t.difficulty??"EASY").toUpperCase()};t.topic&&(e.topic=t.topic),t.statement&&(e.statement=t.statement),t.points!==void 0&&(e.points=t.points),t.languages&&(e.languages=g(t.languages)),t.starterCode&&(e.starterCode=t.starterCode),t.tags&&(e.tags=g(t.tags));let n=await a(at,{input:e});u(`Problem created: ${n.tecCreateProblem.title}`),s(t,n.tecCreateProblem);}catch(e){i(e);}}),r.command("update").description("Update a problem").argument("<id>","Problem ID").option("--title <t>","Problem title").option("--topic <t>","Topic").option("--statement <s>","Problem statement").option("--difficulty <d>","EASY|MEDIUM|HARD").option("--points <n>","Points",c).option("--languages <csv>","Comma-separated allowed languages").option("--starter-code <s>","Starter code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.topic!==void 0&&(n.topic=e.topic),e.statement!==void 0&&(n.statement=e.statement),e.difficulty&&(n.difficulty=e.difficulty.toUpperCase()),e.points!==void 0&&(n.points=e.points),e.languages&&(n.languages=g(e.languages)),e.starterCode!==void 0&&(n.starterCode=e.starterCode),e.tags&&(n.tags=g(e.tags)),!Object.keys(n).length)throw new l("No updates specified");let p=await a(ct,{id:t,input:n});u("Problem updated"),s(e,p.tecUpdateProblem);}catch(n){i(n);}}),r.command("publish").description("Publish a problem (DRAFT -> PUBLISHED)").argument("<id>","Problem ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ut,{id:t});u(`Problem published: ${n.tecPublishProblem.title}`),s(e,n.tecPublishProblem);}catch(n){i(n);}});}function St(o){let r=o.command("submissions").description("Technospam problem submissions");r.command("list").description("List submissions").option("--problem <id>","Filter by problem ID").option("--learner <id>","Filter by learner ID").option("--limit <n>","Page size",c,50).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(pt,{problemId:t.problem,learnerId:t.learner,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListSubmissions.items,{headers:["ID","Problem","Learner","Language","Verdict","Points"],rows:e.tecListSubmissions.items.map(n=>[d(n.id,12),d(n.problemId,12),d(n.learnerId,12),n.language,n.verdict,String(n.pointsAwarded??0)])});}catch(e){i(e);}}),r.command("submit").description("Submit a solution to a problem").requiredOption("--problem <id>","Problem ID").requiredOption("--language <l>","Language").requiredOption("--code <c>","Solution code").option("-f, --format <format>","Output format").action(async t=>{try{let e={problemId:t.problem,language:t.language,code:t.code},n=await a(dt,{input:e});u(`Solution submitted: ${n.tecSubmitSolution.verdict}`),s(t,n.tecSubmitSolution);}catch(e){i(e);}}),r.command("grade").description("Record the grader verdict for a submission").argument("<id>","Submission ID").requiredOption("--verdict <v>","PENDING|ACCEPTED|WRONG_ANSWER|TIME_LIMIT_EXCEEDED|RUNTIME_ERROR|COMPILE_ERROR").option("--runtime-ms <n>","Runtime in milliseconds",c).option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(mt,{id:t,verdict:e.verdict.toUpperCase(),runtimeMs:e.runtimeMs});u(`Submission graded: ${n.tecGradeSubmission.verdict}`),s(e,n.tecGradeSubmission);}catch(n){i(n);}});}function At(o){let r=o.command("certificates").description("Technospam completion certificates");r.command("list").description("List certificates").option("--course <id>","Filter by course ID").option("--learner <id>","Filter by learner ID").option("--limit <n>","Page size",c,50).option("--cursor <id>","Start after this certificate (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(lt,{courseId:t.course,learnerId:t.learner,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=h(e.tecCanonicalCertificates.items,"technospamCertificate");s(t,n,{headers:["ID","Serial","Course","Learner","Score","Status"],rows:n.map(p=>[d(p.id,12),p.serial,d(p.courseId,12),d(p.learnerId,12),String(p.score),p.status])}),I(e.tecCanonicalCertificates.pageInfo);}catch(e){i(e);}}),r.command("issue").description("Issue a verifiable completion certificate for a learner on a course").requiredOption("--course <id>","Course ID").requiredOption("--learner <id>","Learner ID").requiredOption("--score <n>","Score",c).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(gt,{courseId:t.course,learnerId:t.learner,score:t.score});u(`Certificate issued: ${e.tecIssueCertificate.serial}`),s(t,e.tecIssueCertificate);}catch(e){i(e);}}),r.command("revoke").description("Revoke a certificate").argument("<id>","Certificate ID").option("--reason <s>","Revocation reason").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ft,{id:t,reason:e.reason});u(`Certificate revoked: ${n.tecRevokeCertificate.status}`),s(e,n.tecRevokeCertificate);}catch(n){i(n);}});}function xt(o){o.command("health").description("Technospam service health check (public)").option("-f, --format <format>","Output format").action(async r=>{try{let t=await T(ht);u(t.tecHealth),s(r,{health:t.tecHealth});}catch(t){i(t);}});}var Ht={id:"technospam",version:"1.0.0",displayName:"Technospam",dependsOn:["auth","workspaces"],register(o,r){A(r);let t=o.command("technospam").description("Technospam developer-education platform");Ct(t),It(t),bt(t),wt(t),yt(t),Et(t),Tt(t),kt(t),St(t),At(t),xt(t);}},jn=Ht;module.exports=jn;
|
|
352
|
+
`;function u(o){let r=Number.parseInt(o,10);if(Number.isNaN(r))throw new m(`Expected an integer but got "${o}"`);return r}function f(o){return o.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function I(o,r){let t=[];for(let e of o){let n=e[r];n&&t.push({...n,canonicalId:e.id});}return t}function w(o){o.hasMore&&o.cursor&&P(`More results available: rerun with --cursor ${o.cursor}`);}function yt(o){let r=o.command("courses").description("Technospam courses");r.command("list").description("List courses").option("--level <l>","BEGINNER|INTERMEDIATE|ADVANCED|EXPERT").option("--status <s>","DRAFT|PUBLISHED|ARCHIVED").option("--limit <n>","Page size",u,50).option("--cursor <id>","Start after this course (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a($,{level:t.level?t.level.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=I(e.tecCanonicalCourses.items,"technospamCourse");s(t,n,{headers:["ID","Title","Level","Status","Minutes"],rows:n.map(c=>[p(c.id,12),c.title,c.level,c.status,String(c.estimatedMinutes??0)])}),w(e.tecCanonicalCourses.pageInfo);}catch(e){i(e);}}),r.command("get").description("Get a course by id").argument("<id>","Course ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(D,{id:t}),[c]=I(n.tecCanonicalCourse?[n.tecCanonicalCourse]:[],"technospamCourse");if(!c)throw new m(`Course ${t} not found`);s(e,c);}catch(n){i(n);}}),r.command("create").description("Create a course").requiredOption("--title <t>","Course title").requiredOption("--slug <slug>","URL slug").option("--topic <t>","Topic").option("--summary <s>","Summary").option("--level <l>","BEGINNER|INTERMEDIATE|ADVANCED|EXPERT","BEGINNER").option("--estimated-minutes <n>","Estimated minutes",u).option("--instructor-id <id>","Instructor user ID").option("--cover-file-id <id>","Cover image File ID").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title,slug:t.slug,level:(t.level??"BEGINNER").toUpperCase()};t.topic&&(e.topic=t.topic),t.summary&&(e.summary=t.summary),t.estimatedMinutes!==void 0&&(e.estimatedMinutes=t.estimatedMinutes),t.instructorId&&(e.instructorId=t.instructorId),t.coverFileId&&(e.coverFileId=t.coverFileId),t.tags&&(e.tags=f(t.tags));let n=await a(L,{input:e});d(`Course created: ${n.tecCreateCourse.title}`),s(t,n.tecCreateCourse);}catch(e){i(e);}}),r.command("update").description("Update a course").argument("<id>","Course ID").option("--title <t>","Course title").option("--topic <t>","Topic").option("--summary <s>","Summary").option("--level <l>","BEGINNER|INTERMEDIATE|ADVANCED|EXPERT").option("--estimated-minutes <n>","Estimated minutes",u).option("--instructor-id <id>","Instructor user ID").option("--cover-file-id <id>","Cover image File ID").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.topic!==void 0&&(n.topic=e.topic),e.summary!==void 0&&(n.summary=e.summary),e.level&&(n.level=e.level.toUpperCase()),e.estimatedMinutes!==void 0&&(n.estimatedMinutes=e.estimatedMinutes),e.instructorId&&(n.instructorId=e.instructorId),e.coverFileId&&(n.coverFileId=e.coverFileId),e.tags&&(n.tags=f(e.tags)),!Object.keys(n).length)throw new m("No updates specified");let c=await a(M,{id:t,input:n});d("Course updated"),s(e,c.tecUpdateCourse);}catch(n){i(n);}}),r.command("publish").description("Publish a course (DRAFT -> PUBLISHED)").argument("<id>","Course ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(N,{id:t});d(`Course published: ${n.tecPublishCourse.title}`),s(e,n.tecPublishCourse);}catch(n){i(n);}}),r.command("archive").description("Archive a course").argument("<id>","Course ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(U,{id:t});d(n.tecArchiveCourse?"Course archived":"Course not archived"),s(e,{archived:n.tecArchiveCourse});}catch(n){i(n);}});}function Tt(o){let r=o.command("lessons").description("Technospam course lessons");r.command("list").description("List lessons for a course").requiredOption("--course <id>","Course ID").option("--limit <n>","Page size",u,100).option("--cursor <id>","Start after this lesson (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(q,{courseId:t.course,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=I(e.tecCanonicalLessons.items,"technospamLesson");s(t,n,{headers:["ID","Title","Kind","Position","Minutes","Preview"],rows:n.map(c=>[p(c.id,12),c.title,c.kind,String(c.position),String(c.estimatedMinutes??0),c.isPreview?"yes":"no"])}),w(e.tecCanonicalLessons.pageInfo);}catch(e){i(e);}}),r.command("create").description("Create a lesson").requiredOption("--course <id>","Course ID").requiredOption("--title <t>","Lesson title").option("--kind <k>","ARTICLE|VIDEO|QUIZ|INTERACTIVE|PROJECT","ARTICLE").option("--content <s>","Lesson content").option("--position <n>","Order position",u).option("--estimated-minutes <n>","Estimated minutes",u).option("--file-id <id>","Attachment / video File ID").option("--preview","Mark as a free preview lesson").option("-f, --format <format>","Output format").action(async t=>{try{let e={courseId:t.course,title:t.title,kind:(t.kind??"ARTICLE").toUpperCase()};t.content&&(e.content=t.content),t.position!==void 0&&(e.position=t.position),t.estimatedMinutes!==void 0&&(e.estimatedMinutes=t.estimatedMinutes),t.fileId&&(e.fileId=t.fileId),t.preview&&(e.isPreview=!0);let n=await a(_,{input:e});d(`Lesson created: ${n.tecCreateLesson.title}`),s(t,n.tecCreateLesson);}catch(e){i(e);}}),r.command("update").description("Update a lesson").argument("<id>","Lesson ID").option("--title <t>","Lesson title").option("--kind <k>","ARTICLE|VIDEO|QUIZ|INTERACTIVE|PROJECT").option("--content <s>","Lesson content").option("--position <n>","Order position",u).option("--estimated-minutes <n>","Estimated minutes",u).option("--file-id <id>","Attachment / video File ID").option("--preview <bool>","true|false",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.kind&&(n.kind=e.kind.toUpperCase()),e.content!==void 0&&(n.content=e.content),e.position!==void 0&&(n.position=e.position),e.estimatedMinutes!==void 0&&(n.estimatedMinutes=e.estimatedMinutes),e.fileId&&(n.fileId=e.fileId),e.preview!==void 0&&(n.isPreview=e.preview),!Object.keys(n).length)throw new m("No updates specified");let c=await a(H,{id:t,input:n});d("Lesson updated"),s(e,c.tecUpdateLesson);}catch(n){i(n);}});}function Et(o){let r=o.command("enrollments").description("Technospam course enrollments");r.command("list").description("List enrollments").option("--course <id>","Filter by course ID").option("--learner <id>","Filter by learner ID").option("--limit <n>","Page size",u,50).option("--cursor <id>","Start after this enrollment (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(G,{courseId:t.course,learnerId:t.learner,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=I(e.tecCanonicalEnrollments.items,"technospamEnrollment");s(t,n,{headers:["ID","Course","Learner","Status","Progress %","Lessons"],rows:n.map(c=>[p(c.id,12),p(c.courseId,12),p(c.learnerId,12),c.status,String(c.progressPct),String(c.lessonsCompleted)])}),w(e.tecCanonicalEnrollments.pageInfo);}catch(e){i(e);}}),r.command("enroll").description("Enroll the calling user in a course").requiredOption("--course <id>","Course ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(F,{input:{courseId:t.course}});d(`Enrolled in course ${e.tecEnroll.courseId}`),s(t,e.tecEnroll);}catch(e){i(e);}}),r.command("update-progress").description("Update a learner's enrollment progress (auto-completes at 100%)").requiredOption("--enrollment <id>","Enrollment ID").requiredOption("--progress-pct <n>","Progress percent (0-100)",u).option("--lessons-completed <n>","Lessons completed count",u).option("-f, --format <format>","Output format").action(async t=>{try{let e={enrollmentId:t.enrollment,progressPct:t.progressPct};t.lessonsCompleted!==void 0&&(e.lessonsCompleted=t.lessonsCompleted);let n=await a(j,{input:e});d(`Progress updated to ${n.tecUpdateProgress.progressPct}%`),s(t,n.tecUpdateProgress);}catch(e){i(e);}});}function kt(o){let r=o.command("mentors").description("Technospam mentors");r.command("list").description("List mentors").option("--status <s>","PENDING|ACTIVE|PAUSED|INACTIVE").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(W,{status:t.status?t.status.toUpperCase():void 0,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListMentors.items,{headers:["ID","Headline","Status","Rate","Rating","Accepting"],rows:e.tecListMentors.items.map(n=>[p(n.id,12),p(n.headline,30),n.status,String(n.hourlyRate??0),String(n.ratingAvg??0),n.isAcceptingMentees?"yes":"no"])});}catch(e){i(e);}}),r.command("get").description("Get a mentor by id").argument("<id>","Mentor ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(B,{id:t});if(!n.tecMentor)throw new m(`Mentor ${t} not found`);s(e,n.tecMentor);}catch(n){i(n);}}),r.command("become").description("Create the calling user's mentor profile").requiredOption("--headline <h>","Mentor headline").option("--bio <s>","Bio").option("--expertise <csv>","Comma-separated areas of expertise").option("--hourly-rate <n>","Hourly rate",u).option("--currency <c>","Currency code").option("-f, --format <format>","Output format").action(async t=>{try{let e={headline:t.headline};t.bio&&(e.bio=t.bio),t.expertise&&(e.expertise=f(t.expertise)),t.hourlyRate!==void 0&&(e.hourlyRate=t.hourlyRate),t.currency&&(e.currency=t.currency);let n=await a(z,{input:e});d(`Mentor profile created: ${n.tecBecomeMentor.headline}`),s(t,n.tecBecomeMentor);}catch(e){i(e);}}),r.command("update").description("Update a mentor profile").argument("<id>","Mentor ID").option("--headline <h>","Mentor headline").option("--bio <s>","Bio").option("--expertise <csv>","Comma-separated areas of expertise").option("--hourly-rate <n>","Hourly rate",u).option("--currency <c>","Currency code").option("--accepting <bool>","true|false (accepting mentees)",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.headline&&(n.headline=e.headline),e.bio!==void 0&&(n.bio=e.bio),e.expertise&&(n.expertise=f(e.expertise)),e.hourlyRate!==void 0&&(n.hourlyRate=e.hourlyRate),e.currency&&(n.currency=e.currency),e.accepting!==void 0&&(n.isAcceptingMentees=e.accepting),!Object.keys(n).length)throw new m("No updates specified");let c=await a(V,{id:t,input:n});d("Mentor updated"),s(e,c.tecUpdateMentor);}catch(n){i(n);}}),r.command("approve").description("Approve a pending mentor profile (PENDING -> ACTIVE)").argument("<id>","Mentor ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(K,{id:t});d(`Mentor approved: ${n.tecApproveMentor.status}`),s(e,n.tecApproveMentor);}catch(n){i(n);}});}function St(o){let r=o.command("sessions").description("Technospam mentorship sessions");r.command("list").description("List mentorship sessions").option("--mentor <id>","Filter by mentor ID").option("--mentee <id>","Filter by mentee ID").option("--status <s>","REQUESTED|CONFIRMED|COMPLETED|CANCELLED|NO_SHOW").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(J,{mentorId:t.mentor,menteeId:t.mentee,status:t.status?t.status.toUpperCase():void 0});s(t,e.tecListSessions.items,{headers:["ID","Mentor","Mentee","Topic","Status","Scheduled"],rows:e.tecListSessions.items.map(n=>[p(n.id,12),p(n.mentorId,12),p(n.menteeId,12),p(n.topic,24),n.status,E(n.scheduledAt)])});}catch(e){i(e);}}),r.command("book").description("Book a 1:1 session with a mentor as the calling mentee").requiredOption("--mentor <id>","Mentor ID").requiredOption("--topic <t>","Session topic").requiredOption("--scheduled-at <iso>","Scheduled time (ISO date)").option("--agenda <s>","Agenda").option("--duration-minutes <n>","Duration (minutes)",u).option("-f, --format <format>","Output format").action(async t=>{try{let e={mentorId:t.mentor,topic:t.topic,scheduledAt:t.scheduledAt};t.agenda&&(e.agenda=t.agenda),t.durationMinutes!==void 0&&(e.durationMinutes=t.durationMinutes);let n=await a(Y,{input:e});d(`Session booked: ${n.tecBookSession.topic}`),s(t,n.tecBookSession);}catch(e){i(e);}}),r.command("confirm").description("Confirm a requested session").argument("<id>","Session ID").option("--meeting-url <url>","Meeting URL").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(Q,{id:t,meetingUrl:e.meetingUrl});d("Session confirmed"),s(e,n.tecConfirmSession);}catch(n){i(n);}}),r.command("cancel").description("Cancel a session").argument("<id>","Session ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(X,{id:t});d("Session cancelled"),s(e,n.tecCancelSession);}catch(n){i(n);}}),r.command("complete").description("Complete a session with optional rating and feedback").argument("<id>","Session ID").option("--rating <n>","Rating (1-5)",u).option("--feedback <s>","Feedback").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(Z,{id:t,rating:e.rating,feedback:e.feedback});d("Session completed"),s(e,n.tecCompleteSession);}catch(n){i(n);}});}function At(o){let r=o.command("hackathons").description("Technospam hackathons");r.command("list").description("List hackathons").option("--status <s>","DRAFT|REGISTRATION_OPEN|IN_PROGRESS|JUDGING|COMPLETED|CANCELLED").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(et,{status:t.status?t.status.toUpperCase():void 0,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListHackathons.items,{headers:["ID","Title","Status","Start","Prize"],rows:e.tecListHackathons.items.map(n=>[p(n.id,12),n.title,n.status,E(n.startAt),String(n.prizePool??0)])});}catch(e){i(e);}}),r.command("get").description("Get a hackathon by id").argument("<id>","Hackathon ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(tt,{id:t});if(!n.tecHackathon)throw new m(`Hackathon ${t} not found`);s(e,n.tecHackathon);}catch(n){i(n);}}),r.command("create").description("Create a hackathon").requiredOption("--title <t>","Hackathon title").requiredOption("--slug <slug>","URL slug").requiredOption("--start-at <iso>","Start time (ISO date)").requiredOption("--end-at <iso>","End time (ISO date)").option("--theme <t>","Theme").option("--description <s>","Description").option("--submission-deadline <iso>","Submission deadline (ISO date)").option("--max-team-size <n>","Max team size",u).option("--prize-pool <n>","Prize pool",u).option("--currency <c>","Currency code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title,slug:t.slug,startAt:t.startAt,endAt:t.endAt};t.theme&&(e.theme=t.theme),t.description&&(e.description=t.description),t.submissionDeadline&&(e.submissionDeadline=t.submissionDeadline),t.maxTeamSize!==void 0&&(e.maxTeamSize=t.maxTeamSize),t.prizePool!==void 0&&(e.prizePool=t.prizePool),t.currency&&(e.currency=t.currency),t.tags&&(e.tags=f(t.tags));let n=await a(nt,{input:e});d(`Hackathon created: ${n.tecCreateHackathon.title}`),s(t,n.tecCreateHackathon);}catch(e){i(e);}}),r.command("update").description("Update a hackathon").argument("<id>","Hackathon ID").option("--title <t>","Hackathon title").option("--theme <t>","Theme").option("--description <s>","Description").option("--start-at <iso>","Start time (ISO date)").option("--end-at <iso>","End time (ISO date)").option("--submission-deadline <iso>","Submission deadline (ISO date)").option("--max-team-size <n>","Max team size",u).option("--prize-pool <n>","Prize pool",u).option("--currency <c>","Currency code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.theme!==void 0&&(n.theme=e.theme),e.description!==void 0&&(n.description=e.description),e.startAt&&(n.startAt=e.startAt),e.endAt&&(n.endAt=e.endAt),e.submissionDeadline&&(n.submissionDeadline=e.submissionDeadline),e.maxTeamSize!==void 0&&(n.maxTeamSize=e.maxTeamSize),e.prizePool!==void 0&&(n.prizePool=e.prizePool),e.currency&&(n.currency=e.currency),e.tags&&(n.tags=f(e.tags)),!Object.keys(n).length)throw new m("No updates specified");let c=await a(rt,{id:t,input:n});d("Hackathon updated"),s(e,c.tecUpdateHackathon);}catch(n){i(n);}}),r.command("open-registration").description("Open registration for a hackathon (DRAFT -> REGISTRATION_OPEN)").argument("<id>","Hackathon ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ot,{id:t});d(`Registration open: ${n.tecOpenRegistration.status}`),s(e,n.tecOpenRegistration);}catch(n){i(n);}});}function xt(o){let r=o.command("teams").description("Technospam hackathon teams");r.command("list").description("List teams for a hackathon").requiredOption("--hackathon <id>","Hackathon ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(it,{hackathonId:t.hackathon});s(t,e.tecListTeams.items,{headers:["ID","Name","Captain","Status","Score"],rows:e.tecListTeams.items.map(n=>[p(n.id,12),n.name,p(n.captainId,12),n.status,String(n.score??0)])});}catch(e){i(e);}}),r.command("register").description("Register a team for a hackathon with the calling user as captain").requiredOption("--hackathon <id>","Hackathon ID").requiredOption("--name <name>","Team name").option("--members <csv>","Comma-separated member user IDs").option("-f, --format <format>","Output format").action(async t=>{try{let e={hackathonId:t.hackathon,name:t.name};t.members&&(e.memberIds=f(t.members));let n=await a(st,{input:e});d(`Team registered: ${n.tecRegisterTeam.name}`),s(t,n.tecRegisterTeam);}catch(e){i(e);}}),r.command("submit-project").description("Submit a team's project for judging").requiredOption("--team <id>","Team ID").requiredOption("--project-name <n>","Project name").option("--project-url <url>","Project URL").option("--repo-url <url>","Repository URL").option("--pitch <s>","Pitch").option("-f, --format <format>","Output format").action(async t=>{try{let e={teamId:t.team,projectName:t.projectName};t.projectUrl&&(e.projectUrl=t.projectUrl),t.repoUrl&&(e.repoUrl=t.repoUrl),t.pitch&&(e.pitch=t.pitch);let n=await a(at,{input:e});d(`Project submitted: ${n.tecSubmitProject.status}`),s(t,n.tecSubmitProject);}catch(e){i(e);}}),r.command("score").description("Record a judge score for a team and optionally mark it WINNER").argument("<id>","Team ID").requiredOption("--score <n>","Score",u).option("--winner","Mark the team as winner").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ct,{id:t,score:e.score,winner:e.winner??void 0});d(`Team scored: ${n.tecScoreTeam.score}`),s(e,n.tecScoreTeam);}catch(n){i(n);}});}function Ot(o){let r=o.command("problems").description("Technospam practice problems");r.command("list").description("List problems").option("--difficulty <d>","EASY|MEDIUM|HARD").option("--status <s>","DRAFT|PUBLISHED|ARCHIVED").option("--topic <t>","Filter by topic").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(dt,{difficulty:t.difficulty?t.difficulty.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,topic:t.topic,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListProblems.items,{headers:["ID","Title","Difficulty","Status","Points"],rows:e.tecListProblems.items.map(n=>[p(n.id,12),n.title,n.difficulty,n.status,String(n.points??0)])});}catch(e){i(e);}}),r.command("get").description("Get a problem by id").argument("<id>","Problem ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ut,{id:t});if(!n.tecProblem)throw new m(`Problem ${t} not found`);s(e,n.tecProblem);}catch(n){i(n);}}),r.command("create").description("Create a problem").requiredOption("--title <t>","Problem title").requiredOption("--slug <slug>","URL slug").option("--topic <t>","Topic").option("--statement <s>","Problem statement").option("--difficulty <d>","EASY|MEDIUM|HARD","EASY").option("--points <n>","Points",u).option("--languages <csv>","Comma-separated allowed languages").option("--starter-code <s>","Starter code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title,slug:t.slug,difficulty:(t.difficulty??"EASY").toUpperCase()};t.topic&&(e.topic=t.topic),t.statement&&(e.statement=t.statement),t.points!==void 0&&(e.points=t.points),t.languages&&(e.languages=f(t.languages)),t.starterCode&&(e.starterCode=t.starterCode),t.tags&&(e.tags=f(t.tags));let n=await a(pt,{input:e});d(`Problem created: ${n.tecCreateProblem.title}`),s(t,n.tecCreateProblem);}catch(e){i(e);}}),r.command("update").description("Update a problem").argument("<id>","Problem ID").option("--title <t>","Problem title").option("--topic <t>","Topic").option("--statement <s>","Problem statement").option("--difficulty <d>","EASY|MEDIUM|HARD").option("--points <n>","Points",u).option("--languages <csv>","Comma-separated allowed languages").option("--starter-code <s>","Starter code").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.title&&(n.title=e.title),e.topic!==void 0&&(n.topic=e.topic),e.statement!==void 0&&(n.statement=e.statement),e.difficulty&&(n.difficulty=e.difficulty.toUpperCase()),e.points!==void 0&&(n.points=e.points),e.languages&&(n.languages=f(e.languages)),e.starterCode!==void 0&&(n.starterCode=e.starterCode),e.tags&&(n.tags=f(e.tags)),!Object.keys(n).length)throw new m("No updates specified");let c=await a(mt,{id:t,input:n});d("Problem updated"),s(e,c.tecUpdateProblem);}catch(n){i(n);}}),r.command("publish").description("Publish a problem (DRAFT -> PUBLISHED)").argument("<id>","Problem ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(lt,{id:t});d(`Problem published: ${n.tecPublishProblem.title}`),s(e,n.tecPublishProblem);}catch(n){i(n);}});}function Rt(o){let r=o.command("submissions").description("Technospam problem submissions");r.command("list").description("List submissions").option("--problem <id>","Filter by problem ID").option("--learner <id>","Filter by learner ID").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(ft,{problemId:t.problem,learnerId:t.learner,pagination:{limit:t.limit,offset:t.offset}});s(t,e.tecListSubmissions.items,{headers:["ID","Problem","Learner","Language","Verdict","Points"],rows:e.tecListSubmissions.items.map(n=>[p(n.id,12),p(n.problemId,12),p(n.learnerId,12),n.language,n.verdict,String(n.pointsAwarded??0)])});}catch(e){i(e);}}),r.command("submit").description("Submit a solution to a problem").requiredOption("--problem <id>","Problem ID").requiredOption("--language <l>","Language").requiredOption("--code <c>","Solution code").option("-f, --format <format>","Output format").action(async t=>{try{let e={problemId:t.problem,language:t.language,code:t.code},n=await a(gt,{input:e});d(`Solution submitted: ${n.tecSubmitSolution.verdict}`),s(t,n.tecSubmitSolution);}catch(e){i(e);}}),r.command("grade").description("Record the grader verdict for a submission").argument("<id>","Submission ID").requiredOption("--verdict <v>","PENDING|ACCEPTED|WRONG_ANSWER|TIME_LIMIT_EXCEEDED|RUNTIME_ERROR|COMPILE_ERROR").option("--runtime-ms <n>","Runtime in milliseconds",u).option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(ht,{id:t,verdict:e.verdict.toUpperCase(),runtimeMs:e.runtimeMs});d(`Submission graded: ${n.tecGradeSubmission.verdict}`),s(e,n.tecGradeSubmission);}catch(n){i(n);}});}function vt(o){let r=o.command("certificates").description("Technospam completion certificates");r.command("list").description("List certificates").option("--course <id>","Filter by course ID").option("--learner <id>","Filter by learner ID").option("--limit <n>","Page size",u,50).option("--cursor <id>","Start after this certificate (pageInfo.cursor of the previous page)").option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(Ct,{courseId:t.course,learnerId:t.learner,pagination:{limit:t.limit,...t.cursor?{cursor:t.cursor}:{}}}),n=I(e.tecCanonicalCertificates.items,"technospamCertificate");s(t,n,{headers:["ID","Serial","Course","Learner","Score","Status"],rows:n.map(c=>[p(c.id,12),c.serial,p(c.courseId,12),p(c.learnerId,12),String(c.score),c.status])}),w(e.tecCanonicalCertificates.pageInfo);}catch(e){i(e);}}),r.command("issue").description("Issue a verifiable completion certificate for a learner on a course").requiredOption("--course <id>","Course ID").requiredOption("--learner <id>","Learner ID").requiredOption("--score <n>","Score",u).option("-f, --format <format>","Output format").action(async t=>{try{let e=await a(It,{courseId:t.course,learnerId:t.learner,score:t.score});d(`Certificate issued: ${e.tecIssueCertificate.serial}`),s(t,e.tecIssueCertificate);}catch(e){i(e);}}),r.command("revoke").description("Revoke a certificate").argument("<id>","Certificate ID").option("--reason <s>","Revocation reason").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await a(bt,{id:t,reason:e.reason});d(`Certificate revoked: ${n.tecRevokeCertificate.status}`),s(e,n.tecRevokeCertificate);}catch(n){i(n);}});}function Pt(o){o.command("health").description("Technospam service health check (public)").option("-f, --format <format>","Output format").action(async r=>{try{let t=await x(wt);d(t.tecHealth),s(r,{health:t.tecHealth});}catch(t){i(t);}});}var Bt={id:"technospam",version:"1.0.0",displayName:"Technospam",dependsOn:["auth","workspaces"],register(o,r){v(r);let t=o.command("technospam").description("Technospam developer-education platform");yt(t),Tt(t),Et(t),kt(t),St(t),At(t),xt(t),Ot(t),Rt(t),vt(t),Pt(t);}},Vn=Bt;module.exports=Vn;
|