@ttctl/cli 0.0.0 → 0.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/README.md +44 -9
  2. package/dist/commands/applications/index.d.ts +21 -0
  3. package/dist/commands/applications/index.d.ts.map +1 -0
  4. package/dist/commands/applications/index.js +87 -0
  5. package/dist/commands/applications/index.js.map +1 -0
  6. package/dist/commands/applications/list.d.ts +55 -0
  7. package/dist/commands/applications/list.d.ts.map +1 -0
  8. package/dist/commands/applications/list.js +106 -0
  9. package/dist/commands/applications/list.js.map +1 -0
  10. package/dist/commands/applications/shared.d.ts +14 -0
  11. package/dist/commands/applications/shared.d.ts.map +1 -0
  12. package/dist/commands/applications/shared.js +19 -0
  13. package/dist/commands/applications/shared.js.map +1 -0
  14. package/dist/commands/applications/show.d.ts +51 -0
  15. package/dist/commands/applications/show.d.ts.map +1 -0
  16. package/dist/commands/applications/show.js +154 -0
  17. package/dist/commands/applications/show.js.map +1 -0
  18. package/dist/commands/applications/stats.d.ts +42 -0
  19. package/dist/commands/applications/stats.d.ts.map +1 -0
  20. package/dist/commands/applications/stats.js +69 -0
  21. package/dist/commands/applications/stats.js.map +1 -0
  22. package/dist/commands/auth/index.d.ts +17 -0
  23. package/dist/commands/auth/index.d.ts.map +1 -0
  24. package/dist/commands/auth/index.js +69 -0
  25. package/dist/commands/auth/index.js.map +1 -0
  26. package/dist/commands/auth/init.d.ts +98 -0
  27. package/dist/commands/auth/init.d.ts.map +1 -0
  28. package/dist/commands/auth/init.js +387 -0
  29. package/dist/commands/auth/init.js.map +1 -0
  30. package/dist/commands/auth/signin.d.ts +81 -0
  31. package/dist/commands/auth/signin.d.ts.map +1 -0
  32. package/dist/commands/auth/signin.js +145 -0
  33. package/dist/commands/auth/signin.js.map +1 -0
  34. package/dist/commands/auth/signout.d.ts +133 -0
  35. package/dist/commands/auth/signout.d.ts.map +1 -0
  36. package/dist/commands/auth/signout.js +172 -0
  37. package/dist/commands/auth/signout.js.map +1 -0
  38. package/dist/commands/auth/status.d.ts +62 -0
  39. package/dist/commands/auth/status.d.ts.map +1 -0
  40. package/dist/commands/auth/status.js +98 -0
  41. package/dist/commands/auth/status.js.map +1 -0
  42. package/dist/commands/availability/allocated-hours.d.ts +27 -0
  43. package/dist/commands/availability/allocated-hours.d.ts.map +1 -0
  44. package/dist/commands/availability/allocated-hours.js +61 -0
  45. package/dist/commands/availability/allocated-hours.js.map +1 -0
  46. package/dist/commands/availability/index.d.ts +30 -0
  47. package/dist/commands/availability/index.d.ts.map +1 -0
  48. package/dist/commands/availability/index.js +124 -0
  49. package/dist/commands/availability/index.js.map +1 -0
  50. package/dist/commands/availability/shared.d.ts +11 -0
  51. package/dist/commands/availability/shared.d.ts.map +1 -0
  52. package/dist/commands/availability/shared.js +30 -0
  53. package/dist/commands/availability/shared.js.map +1 -0
  54. package/dist/commands/availability/show.d.ts +32 -0
  55. package/dist/commands/availability/show.d.ts.map +1 -0
  56. package/dist/commands/availability/show.js +86 -0
  57. package/dist/commands/availability/show.js.map +1 -0
  58. package/dist/commands/availability/working-hours.d.ts +53 -0
  59. package/dist/commands/availability/working-hours.d.ts.map +1 -0
  60. package/dist/commands/availability/working-hours.js +151 -0
  61. package/dist/commands/availability/working-hours.js.map +1 -0
  62. package/dist/commands/contracts/index.d.ts +69 -0
  63. package/dist/commands/contracts/index.d.ts.map +1 -0
  64. package/dist/commands/contracts/index.js +198 -0
  65. package/dist/commands/contracts/index.js.map +1 -0
  66. package/dist/commands/engagements/breaks.d.ts +81 -0
  67. package/dist/commands/engagements/breaks.d.ts.map +1 -0
  68. package/dist/commands/engagements/breaks.js +229 -0
  69. package/dist/commands/engagements/breaks.js.map +1 -0
  70. package/dist/commands/engagements/index.d.ts +29 -0
  71. package/dist/commands/engagements/index.d.ts.map +1 -0
  72. package/dist/commands/engagements/index.js +172 -0
  73. package/dist/commands/engagements/index.js.map +1 -0
  74. package/dist/commands/engagements/list.d.ts +49 -0
  75. package/dist/commands/engagements/list.d.ts.map +1 -0
  76. package/dist/commands/engagements/list.js +95 -0
  77. package/dist/commands/engagements/list.js.map +1 -0
  78. package/dist/commands/engagements/shared.d.ts +10 -0
  79. package/dist/commands/engagements/shared.d.ts.map +1 -0
  80. package/dist/commands/engagements/shared.js +31 -0
  81. package/dist/commands/engagements/shared.js.map +1 -0
  82. package/dist/commands/engagements/show.d.ts +19 -0
  83. package/dist/commands/engagements/show.d.ts.map +1 -0
  84. package/dist/commands/engagements/show.js +150 -0
  85. package/dist/commands/engagements/show.js.map +1 -0
  86. package/dist/commands/engagements/stats.d.ts +24 -0
  87. package/dist/commands/engagements/stats.d.ts.map +1 -0
  88. package/dist/commands/engagements/stats.js +51 -0
  89. package/dist/commands/engagements/stats.js.map +1 -0
  90. package/dist/commands/jobs/index.d.ts +49 -0
  91. package/dist/commands/jobs/index.d.ts.map +1 -0
  92. package/dist/commands/jobs/index.js +304 -0
  93. package/dist/commands/jobs/index.js.map +1 -0
  94. package/dist/commands/jobs/interest.d.ts +65 -0
  95. package/dist/commands/jobs/interest.d.ts.map +1 -0
  96. package/dist/commands/jobs/interest.js +172 -0
  97. package/dist/commands/jobs/interest.js.map +1 -0
  98. package/dist/commands/jobs/list.d.ts +81 -0
  99. package/dist/commands/jobs/list.d.ts.map +1 -0
  100. package/dist/commands/jobs/list.js +157 -0
  101. package/dist/commands/jobs/list.js.map +1 -0
  102. package/dist/commands/jobs/search.d.ts +71 -0
  103. package/dist/commands/jobs/search.d.ts.map +1 -0
  104. package/dist/commands/jobs/search.js +163 -0
  105. package/dist/commands/jobs/search.js.map +1 -0
  106. package/dist/commands/jobs/shared.d.ts +79 -0
  107. package/dist/commands/jobs/shared.d.ts.map +1 -0
  108. package/dist/commands/jobs/shared.js +133 -0
  109. package/dist/commands/jobs/shared.js.map +1 -0
  110. package/dist/commands/jobs/show.d.ts +20 -0
  111. package/dist/commands/jobs/show.d.ts.map +1 -0
  112. package/dist/commands/jobs/show.js +135 -0
  113. package/dist/commands/jobs/show.js.map +1 -0
  114. package/dist/commands/payments/index.d.ts +34 -0
  115. package/dist/commands/payments/index.d.ts.map +1 -0
  116. package/dist/commands/payments/index.js +160 -0
  117. package/dist/commands/payments/index.js.map +1 -0
  118. package/dist/commands/payments/methods.d.ts +17 -0
  119. package/dist/commands/payments/methods.d.ts.map +1 -0
  120. package/dist/commands/payments/methods.js +79 -0
  121. package/dist/commands/payments/methods.js.map +1 -0
  122. package/dist/commands/payments/payouts.d.ts +44 -0
  123. package/dist/commands/payments/payouts.d.ts.map +1 -0
  124. package/dist/commands/payments/payouts.js +147 -0
  125. package/dist/commands/payments/payouts.js.map +1 -0
  126. package/dist/commands/payments/rate.d.ts +48 -0
  127. package/dist/commands/payments/rate.d.ts.map +1 -0
  128. package/dist/commands/payments/rate.js +229 -0
  129. package/dist/commands/payments/rate.js.map +1 -0
  130. package/dist/commands/payments/shared.d.ts +10 -0
  131. package/dist/commands/payments/shared.d.ts.map +1 -0
  132. package/dist/commands/payments/shared.js +27 -0
  133. package/dist/commands/payments/shared.js.map +1 -0
  134. package/dist/commands/profile/basic/index.d.ts +18 -0
  135. package/dist/commands/profile/basic/index.d.ts.map +1 -0
  136. package/dist/commands/profile/basic/index.js +79 -0
  137. package/dist/commands/profile/basic/index.js.map +1 -0
  138. package/dist/commands/profile/basic/photo-show.d.ts +28 -0
  139. package/dist/commands/profile/basic/photo-show.d.ts.map +1 -0
  140. package/dist/commands/profile/basic/photo-show.js +112 -0
  141. package/dist/commands/profile/basic/photo-show.js.map +1 -0
  142. package/dist/commands/profile/basic/photo-upload.d.ts +10 -0
  143. package/dist/commands/profile/basic/photo-upload.d.ts.map +1 -0
  144. package/dist/commands/profile/basic/photo-upload.js +61 -0
  145. package/dist/commands/profile/basic/photo-upload.js.map +1 -0
  146. package/dist/commands/profile/basic/set.d.ts +54 -0
  147. package/dist/commands/profile/basic/set.d.ts.map +1 -0
  148. package/dist/commands/profile/basic/set.js +174 -0
  149. package/dist/commands/profile/basic/set.js.map +1 -0
  150. package/dist/commands/profile/basic/show.d.ts +95 -0
  151. package/dist/commands/profile/basic/show.d.ts.map +1 -0
  152. package/dist/commands/profile/basic/show.js +310 -0
  153. package/dist/commands/profile/basic/show.js.map +1 -0
  154. package/dist/commands/profile/certifications/index.d.ts +31 -0
  155. package/dist/commands/profile/certifications/index.d.ts.map +1 -0
  156. package/dist/commands/profile/certifications/index.js +298 -0
  157. package/dist/commands/profile/certifications/index.js.map +1 -0
  158. package/dist/commands/profile/education/index.d.ts +28 -0
  159. package/dist/commands/profile/education/index.d.ts.map +1 -0
  160. package/dist/commands/profile/education/index.js +287 -0
  161. package/dist/commands/profile/education/index.js.map +1 -0
  162. package/dist/commands/profile/employment/index.d.ts +40 -0
  163. package/dist/commands/profile/employment/index.d.ts.map +1 -0
  164. package/dist/commands/profile/employment/index.js +364 -0
  165. package/dist/commands/profile/employment/index.js.map +1 -0
  166. package/dist/commands/profile/external/_shared.d.ts +35 -0
  167. package/dist/commands/profile/external/_shared.d.ts.map +1 -0
  168. package/dist/commands/profile/external/_shared.js +59 -0
  169. package/dist/commands/profile/external/_shared.js.map +1 -0
  170. package/dist/commands/profile/external/advanced-wizard-show.d.ts +15 -0
  171. package/dist/commands/profile/external/advanced-wizard-show.d.ts.map +1 -0
  172. package/dist/commands/profile/external/advanced-wizard-show.js +82 -0
  173. package/dist/commands/profile/external/advanced-wizard-show.js.map +1 -0
  174. package/dist/commands/profile/external/custom-requirements-set.d.ts +32 -0
  175. package/dist/commands/profile/external/custom-requirements-set.d.ts.map +1 -0
  176. package/dist/commands/profile/external/custom-requirements-set.js +116 -0
  177. package/dist/commands/profile/external/custom-requirements-set.js.map +1 -0
  178. package/dist/commands/profile/external/custom-requirements-show.d.ts +16 -0
  179. package/dist/commands/profile/external/custom-requirements-show.d.ts.map +1 -0
  180. package/dist/commands/profile/external/custom-requirements-show.js +84 -0
  181. package/dist/commands/profile/external/custom-requirements-show.js.map +1 -0
  182. package/dist/commands/profile/external/index.d.ts +20 -0
  183. package/dist/commands/profile/external/index.d.ts.map +1 -0
  184. package/dist/commands/profile/external/index.js +102 -0
  185. package/dist/commands/profile/external/index.js.map +1 -0
  186. package/dist/commands/profile/external/readiness.d.ts +15 -0
  187. package/dist/commands/profile/external/readiness.d.ts.map +1 -0
  188. package/dist/commands/profile/external/readiness.js +104 -0
  189. package/dist/commands/profile/external/readiness.js.map +1 -0
  190. package/dist/commands/profile/external/recommendations.d.ts +17 -0
  191. package/dist/commands/profile/external/recommendations.d.ts.map +1 -0
  192. package/dist/commands/profile/external/recommendations.js +97 -0
  193. package/dist/commands/profile/external/recommendations.js.map +1 -0
  194. package/dist/commands/profile/external/update.d.ts +32 -0
  195. package/dist/commands/profile/external/update.d.ts.map +1 -0
  196. package/dist/commands/profile/external/update.js +118 -0
  197. package/dist/commands/profile/external/update.js.map +1 -0
  198. package/dist/commands/profile/index.d.ts +16 -0
  199. package/dist/commands/profile/index.d.ts.map +1 -0
  200. package/dist/commands/profile/index.js +81 -0
  201. package/dist/commands/profile/index.js.map +1 -0
  202. package/dist/commands/profile/industries/index.d.ts +36 -0
  203. package/dist/commands/profile/industries/index.d.ts.map +1 -0
  204. package/dist/commands/profile/industries/index.js +230 -0
  205. package/dist/commands/profile/industries/index.js.map +1 -0
  206. package/dist/commands/profile/portfolio/add.d.ts +43 -0
  207. package/dist/commands/profile/portfolio/add.d.ts.map +1 -0
  208. package/dist/commands/profile/portfolio/add.js +181 -0
  209. package/dist/commands/profile/portfolio/add.js.map +1 -0
  210. package/dist/commands/profile/portfolio/highlight.d.ts +11 -0
  211. package/dist/commands/profile/portfolio/highlight.d.ts.map +1 -0
  212. package/dist/commands/profile/portfolio/highlight.js +31 -0
  213. package/dist/commands/profile/portfolio/highlight.js.map +1 -0
  214. package/dist/commands/profile/portfolio/index.d.ts +16 -0
  215. package/dist/commands/profile/portfolio/index.d.ts.map +1 -0
  216. package/dist/commands/profile/portfolio/index.js +121 -0
  217. package/dist/commands/profile/portfolio/index.js.map +1 -0
  218. package/dist/commands/profile/portfolio/list.d.ts +83 -0
  219. package/dist/commands/profile/portfolio/list.d.ts.map +1 -0
  220. package/dist/commands/profile/portfolio/list.js +189 -0
  221. package/dist/commands/profile/portfolio/list.js.map +1 -0
  222. package/dist/commands/profile/portfolio/remove.d.ts +9 -0
  223. package/dist/commands/profile/portfolio/remove.d.ts.map +1 -0
  224. package/dist/commands/profile/portfolio/remove.js +24 -0
  225. package/dist/commands/profile/portfolio/remove.js.map +1 -0
  226. package/dist/commands/profile/portfolio/reorder.d.ts +17 -0
  227. package/dist/commands/profile/portfolio/reorder.d.ts.map +1 -0
  228. package/dist/commands/profile/portfolio/reorder.js +135 -0
  229. package/dist/commands/profile/portfolio/reorder.js.map +1 -0
  230. package/dist/commands/profile/portfolio/shared.d.ts +8 -0
  231. package/dist/commands/profile/portfolio/shared.d.ts.map +1 -0
  232. package/dist/commands/profile/portfolio/shared.js +10 -0
  233. package/dist/commands/profile/portfolio/shared.js.map +1 -0
  234. package/dist/commands/profile/portfolio/update.d.ts +18 -0
  235. package/dist/commands/profile/portfolio/update.d.ts.map +1 -0
  236. package/dist/commands/profile/portfolio/update.js +77 -0
  237. package/dist/commands/profile/portfolio/update.js.map +1 -0
  238. package/dist/commands/profile/portfolio/upload.d.ts +8 -0
  239. package/dist/commands/profile/portfolio/upload.d.ts.map +1 -0
  240. package/dist/commands/profile/portfolio/upload.js +131 -0
  241. package/dist/commands/profile/portfolio/upload.js.map +1 -0
  242. package/dist/commands/profile/resume/cancel-upload.d.ts +9 -0
  243. package/dist/commands/profile/resume/cancel-upload.d.ts.map +1 -0
  244. package/dist/commands/profile/resume/cancel-upload.js +30 -0
  245. package/dist/commands/profile/resume/cancel-upload.js.map +1 -0
  246. package/dist/commands/profile/resume/index.d.ts +15 -0
  247. package/dist/commands/profile/resume/index.d.ts.map +1 -0
  248. package/dist/commands/profile/resume/index.js +42 -0
  249. package/dist/commands/profile/resume/index.js.map +1 -0
  250. package/dist/commands/profile/resume/upload.d.ts +16 -0
  251. package/dist/commands/profile/resume/upload.d.ts.map +1 -0
  252. package/dist/commands/profile/resume/upload.js +65 -0
  253. package/dist/commands/profile/resume/upload.js.map +1 -0
  254. package/dist/commands/profile/reviews/_shared.d.ts +9 -0
  255. package/dist/commands/profile/reviews/_shared.d.ts.map +1 -0
  256. package/dist/commands/profile/reviews/_shared.js +15 -0
  257. package/dist/commands/profile/reviews/_shared.js.map +1 -0
  258. package/dist/commands/profile/reviews/approve-item.d.ts +30 -0
  259. package/dist/commands/profile/reviews/approve-item.d.ts.map +1 -0
  260. package/dist/commands/profile/reviews/approve-item.js +82 -0
  261. package/dist/commands/profile/reviews/approve-item.js.map +1 -0
  262. package/dist/commands/profile/reviews/approve-section.d.ts +15 -0
  263. package/dist/commands/profile/reviews/approve-section.d.ts.map +1 -0
  264. package/dist/commands/profile/reviews/approve-section.js +67 -0
  265. package/dist/commands/profile/reviews/approve-section.js.map +1 -0
  266. package/dist/commands/profile/reviews/index.d.ts +19 -0
  267. package/dist/commands/profile/reviews/index.d.ts.map +1 -0
  268. package/dist/commands/profile/reviews/index.js +71 -0
  269. package/dist/commands/profile/reviews/index.js.map +1 -0
  270. package/dist/commands/profile/reviews/list.d.ts +17 -0
  271. package/dist/commands/profile/reviews/list.d.ts.map +1 -0
  272. package/dist/commands/profile/reviews/list.js +96 -0
  273. package/dist/commands/profile/reviews/list.js.map +1 -0
  274. package/dist/commands/profile/reviews/submit-for-review.d.ts +16 -0
  275. package/dist/commands/profile/reviews/submit-for-review.d.ts.map +1 -0
  276. package/dist/commands/profile/reviews/submit-for-review.js +65 -0
  277. package/dist/commands/profile/reviews/submit-for-review.js.map +1 -0
  278. package/dist/commands/profile/shared.d.ts +46 -0
  279. package/dist/commands/profile/shared.d.ts.map +1 -0
  280. package/dist/commands/profile/shared.js +111 -0
  281. package/dist/commands/profile/shared.js.map +1 -0
  282. package/dist/commands/profile/skills/index.d.ts +29 -0
  283. package/dist/commands/profile/skills/index.d.ts.map +1 -0
  284. package/dist/commands/profile/skills/index.js +475 -0
  285. package/dist/commands/profile/skills/index.js.map +1 -0
  286. package/dist/commands/profile/visas/add.d.ts +19 -0
  287. package/dist/commands/profile/visas/add.d.ts.map +1 -0
  288. package/dist/commands/profile/visas/add.js +37 -0
  289. package/dist/commands/profile/visas/add.js.map +1 -0
  290. package/dist/commands/profile/visas/index.d.ts +13 -0
  291. package/dist/commands/profile/visas/index.d.ts.map +1 -0
  292. package/dist/commands/profile/visas/index.js +69 -0
  293. package/dist/commands/profile/visas/index.js.map +1 -0
  294. package/dist/commands/profile/visas/list.d.ts +40 -0
  295. package/dist/commands/profile/visas/list.d.ts.map +1 -0
  296. package/dist/commands/profile/visas/list.js +115 -0
  297. package/dist/commands/profile/visas/list.js.map +1 -0
  298. package/dist/commands/profile/visas/remove.d.ts +8 -0
  299. package/dist/commands/profile/visas/remove.d.ts.map +1 -0
  300. package/dist/commands/profile/visas/remove.js +23 -0
  301. package/dist/commands/profile/visas/remove.js.map +1 -0
  302. package/dist/commands/profile/visas/shared.d.ts +11 -0
  303. package/dist/commands/profile/visas/shared.d.ts.map +1 -0
  304. package/dist/commands/profile/visas/shared.js +16 -0
  305. package/dist/commands/profile/visas/shared.js.map +1 -0
  306. package/dist/commands/profile/visas/update.d.ts +13 -0
  307. package/dist/commands/profile/visas/update.d.ts.map +1 -0
  308. package/dist/commands/profile/visas/update.js +44 -0
  309. package/dist/commands/profile/visas/update.js.map +1 -0
  310. package/dist/commands/timesheet/index.d.ts +24 -0
  311. package/dist/commands/timesheet/index.d.ts.map +1 -0
  312. package/dist/commands/timesheet/index.js +98 -0
  313. package/dist/commands/timesheet/index.js.map +1 -0
  314. package/dist/commands/timesheet/list.d.ts +40 -0
  315. package/dist/commands/timesheet/list.d.ts.map +1 -0
  316. package/dist/commands/timesheet/list.js +79 -0
  317. package/dist/commands/timesheet/list.js.map +1 -0
  318. package/dist/commands/timesheet/shared.d.ts +10 -0
  319. package/dist/commands/timesheet/shared.d.ts.map +1 -0
  320. package/dist/commands/timesheet/shared.js +35 -0
  321. package/dist/commands/timesheet/shared.js.map +1 -0
  322. package/dist/commands/timesheet/show.d.ts +19 -0
  323. package/dist/commands/timesheet/show.d.ts.map +1 -0
  324. package/dist/commands/timesheet/show.js +109 -0
  325. package/dist/commands/timesheet/show.js.map +1 -0
  326. package/dist/commands/timesheet/submit.d.ts +50 -0
  327. package/dist/commands/timesheet/submit.d.ts.map +1 -0
  328. package/dist/commands/timesheet/submit.js +151 -0
  329. package/dist/commands/timesheet/submit.js.map +1 -0
  330. package/dist/crash-handlers.d.ts +67 -0
  331. package/dist/crash-handlers.d.ts.map +1 -0
  332. package/dist/crash-handlers.js +78 -0
  333. package/dist/crash-handlers.js.map +1 -0
  334. package/dist/errors.d.ts +45 -0
  335. package/dist/errors.d.ts.map +1 -0
  336. package/dist/errors.js +57 -0
  337. package/dist/errors.js.map +1 -0
  338. package/dist/index.d.ts +8 -0
  339. package/dist/index.d.ts.map +1 -0
  340. package/dist/index.js +15 -0
  341. package/dist/index.js.map +1 -0
  342. package/dist/lib/config-context.d.ts +41 -0
  343. package/dist/lib/config-context.d.ts.map +1 -0
  344. package/dist/lib/config-context.js +74 -0
  345. package/dist/lib/config-context.js.map +1 -0
  346. package/dist/lib/dry-run.d.ts +70 -0
  347. package/dist/lib/dry-run.d.ts.map +1 -0
  348. package/dist/lib/dry-run.js +114 -0
  349. package/dist/lib/dry-run.js.map +1 -0
  350. package/dist/lib/empty-state-cta.d.ts +63 -0
  351. package/dist/lib/empty-state-cta.d.ts.map +1 -0
  352. package/dist/lib/empty-state-cta.js +88 -0
  353. package/dist/lib/empty-state-cta.js.map +1 -0
  354. package/dist/lib/envelopes.d.ts +540 -0
  355. package/dist/lib/envelopes.d.ts.map +1 -0
  356. package/dist/lib/envelopes.js +598 -0
  357. package/dist/lib/envelopes.js.map +1 -0
  358. package/dist/lib/error-routing.d.ts +49 -0
  359. package/dist/lib/error-routing.d.ts.map +1 -0
  360. package/dist/lib/error-routing.js +72 -0
  361. package/dist/lib/error-routing.js.map +1 -0
  362. package/dist/lib/format-helpers.d.ts +65 -0
  363. package/dist/lib/format-helpers.d.ts.map +1 -0
  364. package/dist/lib/format-helpers.js +79 -0
  365. package/dist/lib/format-helpers.js.map +1 -0
  366. package/dist/lib/format-overrides.d.ts +81 -0
  367. package/dist/lib/format-overrides.d.ts.map +1 -0
  368. package/dist/lib/format-overrides.js +55 -0
  369. package/dist/lib/format-overrides.js.map +1 -0
  370. package/dist/lib/freetext.d.ts +83 -0
  371. package/dist/lib/freetext.d.ts.map +1 -0
  372. package/dist/lib/freetext.js +182 -0
  373. package/dist/lib/freetext.js.map +1 -0
  374. package/dist/lib/kill-switch-hook.d.ts +49 -0
  375. package/dist/lib/kill-switch-hook.d.ts.map +1 -0
  376. package/dist/lib/kill-switch-hook.js +34 -0
  377. package/dist/lib/kill-switch-hook.js.map +1 -0
  378. package/dist/lib/output.d.ts +173 -0
  379. package/dist/lib/output.d.ts.map +1 -0
  380. package/dist/lib/output.js +177 -0
  381. package/dist/lib/output.js.map +1 -0
  382. package/dist/lib/pagination.d.ts +49 -0
  383. package/dist/lib/pagination.d.ts.map +1 -0
  384. package/dist/lib/pagination.js +36 -0
  385. package/dist/lib/pagination.js.map +1 -0
  386. package/dist/program.d.ts +80 -0
  387. package/dist/program.d.ts.map +1 -0
  388. package/dist/program.js +273 -0
  389. package/dist/program.js.map +1 -0
  390. package/package.json +35 -13
  391. package/index.js +0 -7
@@ -0,0 +1,298 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import { DateInputError, parseDateInput, profile } from "@ttctl/core";
4
+ import { Command, Option } from "commander";
5
+ import { emitAddSuccess, emitErrorAndExit, emitRemoveSuccess, emitUpdateSuccess } from "../../../lib/envelopes.js";
6
+ import { OUTPUT_FORMATS, emitResult } from "../../../lib/output.js";
7
+ import { loadAuthTokenOrExit, presentSubDomainError } from "../shared.js";
8
+ /**
9
+ * Build the `ttctl profile certifications` command tree.
10
+ *
11
+ * The canonical sub-domain name is `certifications`; the CLI registers
12
+ * `certs` as a Commander.js alias so users can type either form. Per
13
+ * project policy (see issue #72), aliases are CLI-only — MCP tool names
14
+ * use ONLY the canonical name.
15
+ *
16
+ * Five leaves:
17
+ * - `add --name --issuer [--issued --expires]`
18
+ * - `update <id> [field-flags]`
19
+ * - `remove <id>`
20
+ * - `show <id> [-o text|json|table]`
21
+ * - `highlight <id>`
22
+ *
23
+ * Date input flags accept ISO-8601 (`2023-01-15`) or year-only (`2023`).
24
+ * Certifications store month + year (separate Int fields) so the helper
25
+ * preserves the month component and ignores any provided day.
26
+ */
27
+ export function buildProfileCertificationsCommand() {
28
+ const certs = new Command("certifications")
29
+ .alias("certs")
30
+ .description("View and update the certifications section of your profile");
31
+ certs
32
+ .command("add")
33
+ .description("Add a new certification entry to your profile")
34
+ .requiredOption("--name <text>", "certification name (mapped to certificate)")
35
+ .requiredOption("--issuer <text>", "issuing organization (mapped to institution)")
36
+ .option("--issued <date>", "issue date — ISO-8601 (YYYY-MM-DD) or year (YYYY)")
37
+ .option("--expires <date>", "expiration date — ISO-8601 or year")
38
+ .option("--link <url>", "credential URL (optional)")
39
+ .option("--number <text>", "credential ID / certificate number (optional)")
40
+ .addOption(new Option("-o, --output <format>", "output format")
41
+ .choices(OUTPUT_FORMATS)
42
+ .default("pretty"))
43
+ .action(async (options) => {
44
+ await runAdd(options);
45
+ });
46
+ certs
47
+ .command("update")
48
+ .description("Update an existing certification entry by id")
49
+ .argument("<id>", "certification id (V1-Certification-NNN)")
50
+ .option("--name <text>", "certification name")
51
+ .option("--issuer <text>", "issuing organization")
52
+ .option("--issued <date>", "issue date — ISO-8601 or year")
53
+ .option("--expires <date>", "expiration date — ISO-8601 or year")
54
+ .option("--link <url>", "credential URL")
55
+ .option("--number <text>", "credential ID / certificate number")
56
+ .option("--highlight <bool>", "set highlight flag (true|false)")
57
+ .addOption(new Option("-o, --output <format>", "output format")
58
+ .choices(OUTPUT_FORMATS)
59
+ .default("pretty"))
60
+ .action(async (id, options) => {
61
+ await runUpdate(id, options);
62
+ });
63
+ certs
64
+ .command("remove")
65
+ .description("Remove a certification entry by id")
66
+ .argument("<id>", "certification id")
67
+ .addOption(new Option("-o, --output <format>", "output format")
68
+ .choices(OUTPUT_FORMATS)
69
+ .default("pretty"))
70
+ .action(async (id, options) => {
71
+ await runRemove(id, options.output);
72
+ });
73
+ certs
74
+ .command("show")
75
+ .description("Show a single certification entry by id")
76
+ .argument("<id>", "certification id")
77
+ .addOption(new Option("-o, --output <format>", "output format")
78
+ .choices(OUTPUT_FORMATS)
79
+ .default("pretty"))
80
+ .action(async (id, options) => {
81
+ await runShow(id, options.output);
82
+ });
83
+ certs
84
+ .command("highlight")
85
+ .description("Toggle highlight on a certification entry")
86
+ .argument("<id>", "certification id")
87
+ .option("--off", "un-highlight (default is to highlight)", false)
88
+ .addOption(new Option("-o, --output <format>", "output format")
89
+ .choices(OUTPUT_FORMATS)
90
+ .default("pretty"))
91
+ .action(async (id, options) => {
92
+ await runHighlight(id, !options.off, options.output);
93
+ });
94
+ return certs;
95
+ }
96
+ async function runAdd(options) {
97
+ const fields = {
98
+ certificate: options.name,
99
+ institution: options.issuer,
100
+ };
101
+ applyDateFlags(fields, options, "profile certifications add", options.output);
102
+ if (options.link !== undefined)
103
+ fields.link = options.link;
104
+ if (options.number !== undefined)
105
+ fields.number = options.number;
106
+ const token = await loadAuthTokenOrExit("profile certifications add", options.output);
107
+ let result;
108
+ try {
109
+ result = await profile.certifications.add(token, fields);
110
+ }
111
+ catch (err) {
112
+ presentSubDomainError("profile certifications add", err, options.output);
113
+ }
114
+ emitAddSuccess({
115
+ operation: "profile.certifications.add",
116
+ format: options.output,
117
+ created: result,
118
+ prettySummary: `${result.certificate} — ${result.institution} (id ${result.id})`,
119
+ prettyEntity: formatCertificationText,
120
+ });
121
+ }
122
+ async function runUpdate(id, options) {
123
+ const fields = {};
124
+ if (options.name !== undefined)
125
+ fields.certificate = options.name;
126
+ if (options.issuer !== undefined)
127
+ fields.institution = options.issuer;
128
+ if (options.link !== undefined)
129
+ fields.link = options.link;
130
+ if (options.number !== undefined)
131
+ fields.number = options.number;
132
+ if (options.highlight !== undefined) {
133
+ if (options.highlight !== "true" && options.highlight !== "false") {
134
+ emitErrorAndExit({
135
+ operation: "profile.certifications.update",
136
+ format: options.output,
137
+ errors: [
138
+ {
139
+ code: "VALIDATION_ERROR",
140
+ field: "highlight",
141
+ message: '--highlight expects "true" or "false"',
142
+ },
143
+ ],
144
+ prettySummary: 'profile certifications update failed (VALIDATION_ERROR): --highlight expects "true" or "false"',
145
+ });
146
+ }
147
+ fields.highlight = options.highlight === "true";
148
+ }
149
+ applyDateFlags(fields, options, "profile certifications update", options.output);
150
+ if (Object.keys(fields).length === 0) {
151
+ emitErrorAndExit({
152
+ operation: "profile.certifications.update",
153
+ format: options.output,
154
+ errors: [{ code: "VALIDATION_ERROR", message: "at least one field flag is required" }],
155
+ prettySummary: "profile certifications update failed (VALIDATION_ERROR): at least one field flag is required",
156
+ });
157
+ }
158
+ const token = await loadAuthTokenOrExit("profile certifications update", options.output);
159
+ let result;
160
+ try {
161
+ result = await profile.certifications.update(token, id, fields);
162
+ }
163
+ catch (err) {
164
+ presentSubDomainError("profile certifications update", err, options.output);
165
+ }
166
+ emitUpdateSuccess({
167
+ operation: "profile.certifications.update",
168
+ format: options.output,
169
+ updated: result,
170
+ prettySummary: `${result.certificate} — ${result.institution} (id ${result.id})`,
171
+ prettyEntity: formatCertificationText,
172
+ });
173
+ }
174
+ async function runRemove(id, format) {
175
+ const token = await loadAuthTokenOrExit("profile certifications remove", format);
176
+ let removedId;
177
+ try {
178
+ removedId = await profile.certifications.remove(token, id);
179
+ }
180
+ catch (err) {
181
+ presentSubDomainError("profile certifications remove", err, format);
182
+ }
183
+ emitRemoveSuccess({
184
+ operation: "profile.certifications.remove",
185
+ format,
186
+ id: removedId,
187
+ });
188
+ }
189
+ async function runShow(id, format) {
190
+ const token = await loadAuthTokenOrExit("profile certifications show", format);
191
+ let result;
192
+ try {
193
+ result = await profile.certifications.show(token, id);
194
+ }
195
+ catch (err) {
196
+ presentSubDomainError("profile certifications show", err, format);
197
+ }
198
+ emitResult(result, format, { pretty: formatCertificationText, table: formatCertificationTable });
199
+ }
200
+ async function runHighlight(id, value, format) {
201
+ const token = await loadAuthTokenOrExit("profile certifications highlight", format);
202
+ let result;
203
+ try {
204
+ result = await profile.certifications.highlight(token, id, value);
205
+ }
206
+ catch (err) {
207
+ presentSubDomainError("profile certifications highlight", err, format);
208
+ }
209
+ emitUpdateSuccess({
210
+ operation: "profile.certifications.highlight",
211
+ format,
212
+ updated: result,
213
+ prettySummary: `${result.id} highlight set to ${result.highlight.toString()}`,
214
+ prettyEntity: (entity) => `highlight: ${entity.highlight.toString()}`,
215
+ });
216
+ }
217
+ /**
218
+ * Map `--issued` / `--expires` flag strings to `validFromMonth` /
219
+ * `validFromYear` / `validToMonth` / `validToYear` Ints. Year-only inputs
220
+ * default month to `1` per the issue's "January 1st" rule. ISO-8601
221
+ * inputs preserve the parsed month and ignore the day component.
222
+ *
223
+ * Routes errors through the envelope ABI (#128).
224
+ */
225
+ function applyDateFlags(fields, options, commandLabel, format) {
226
+ try {
227
+ if (options.issued !== undefined) {
228
+ const parsed = parseDateInput(options.issued, "issued");
229
+ fields.validFromMonth = parsed.month;
230
+ fields.validFromYear = parsed.year;
231
+ }
232
+ if (options.expires !== undefined) {
233
+ const parsed = parseDateInput(options.expires, "expires");
234
+ fields.validToMonth = parsed.month;
235
+ fields.validToYear = parsed.year;
236
+ }
237
+ }
238
+ catch (err) {
239
+ if (err instanceof DateInputError) {
240
+ emitErrorAndExit({
241
+ operation: commandLabel.replace(/ /g, "."),
242
+ format,
243
+ errors: [{ code: err.code, message: err.message }],
244
+ prettySummary: `${commandLabel} failed (${err.code}): ${err.message}`,
245
+ });
246
+ }
247
+ throw err;
248
+ }
249
+ }
250
+ /**
251
+ * Pretty-print a Certification row. Pure — no I/O.
252
+ */
253
+ export function formatCertificationText(c) {
254
+ const lines = [`${c.certificate} — ${c.institution}`];
255
+ lines.push(` ${formatValidityRange(c.validFromMonth, c.validFromYear, c.validToMonth, c.validToYear)}`);
256
+ if (c.number)
257
+ lines.push(` cred-id: ${c.number}`);
258
+ if (c.link)
259
+ lines.push(` ${c.link}`);
260
+ if (c.highlight)
261
+ lines.push(` highlighted`);
262
+ lines.push(` id: ${c.id}`);
263
+ return lines.join("\n");
264
+ }
265
+ /**
266
+ * Pretty-print a Certification row as a key/value table.
267
+ */
268
+ export function formatCertificationTable(c) {
269
+ const rows = [
270
+ ["id", c.id],
271
+ ["certificate", c.certificate],
272
+ ["institution", c.institution],
273
+ ["valid", formatValidityRange(c.validFromMonth, c.validFromYear, c.validToMonth, c.validToYear)],
274
+ ["number", c.number ?? ""],
275
+ ["link", c.link ?? ""],
276
+ ["highlight", c.highlight.toString()],
277
+ ];
278
+ return rows.map(([k, v]) => `${k}\t${v}`).join("\n");
279
+ }
280
+ function formatValidityRange(fromMonth, fromYear, toMonth, toYear) {
281
+ const fromStr = formatMonthYear(fromMonth, fromYear);
282
+ const toStr = formatMonthYear(toMonth, toYear);
283
+ if (fromStr === "—" && toStr === "—")
284
+ return "—";
285
+ if (toStr === "—")
286
+ return `${fromStr}–no expiry`;
287
+ if (fromStr === "—")
288
+ return `?–${toStr}`;
289
+ return `${fromStr}–${toStr}`;
290
+ }
291
+ function formatMonthYear(month, year) {
292
+ if (year === null)
293
+ return "—";
294
+ if (month === null)
295
+ return year.toString();
296
+ return `${month.toString().padStart(2, "0")}/${year.toString()}`;
297
+ }
298
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/profile/certifications/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MA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AAC,CAAC,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;AACnE,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { profile } from "@ttctl/core";
2
+ import { Command } from "commander";
3
+ /**
4
+ * Build the `ttctl profile education` command tree.
5
+ *
6
+ * Five leaves:
7
+ * - `add --institution --degree [--from --to]`
8
+ * - `update <id> [field-flags]`
9
+ * - `remove <id>`
10
+ * - `show <id> [-o text|json|table]`
11
+ * - `highlight <id>`
12
+ *
13
+ * Date input flags (`--from`, `--to`) accept ISO-8601 (`2023-01-15`) or
14
+ * year-only (`2023`); the date helper at `core/src/lib/date.ts` enforces
15
+ * format and rejects impossible calendar dates. Education stores year
16
+ * only, so the month/day are dropped before sending to the API.
17
+ */
18
+ export declare function buildProfileEducationCommand(): Command;
19
+ /**
20
+ * Pretty-print an Education row. Pure — no I/O. Years render as "YYYY"
21
+ * or "YYYY–YYYY" or "YYYY–present"; missing years collapse to a hyphen.
22
+ */
23
+ export declare function formatEducationText(e: profile.education.Education): string;
24
+ /**
25
+ * Pretty-print an Education row as a key/value table.
26
+ */
27
+ export declare function formatEducationTable(e: profile.education.Education): string;
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/profile/education/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkC,OAAO,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAO5C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CAoFtD;AAqLD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,SAAS,GAAG,MAAM,CAQ1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,SAAS,GAAG,MAAM,CAY3E"}
@@ -0,0 +1,287 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import { DateInputError, parseDateInput, profile } from "@ttctl/core";
4
+ import { Command, Option } from "commander";
5
+ import { emitAddSuccess, emitErrorAndExit, emitRemoveSuccess, emitUpdateSuccess } from "../../../lib/envelopes.js";
6
+ import { OUTPUT_FORMATS, emitResult } from "../../../lib/output.js";
7
+ import { loadAuthTokenOrExit, presentSubDomainError } from "../shared.js";
8
+ /**
9
+ * Build the `ttctl profile education` command tree.
10
+ *
11
+ * Five leaves:
12
+ * - `add --institution --degree [--from --to]`
13
+ * - `update <id> [field-flags]`
14
+ * - `remove <id>`
15
+ * - `show <id> [-o text|json|table]`
16
+ * - `highlight <id>`
17
+ *
18
+ * Date input flags (`--from`, `--to`) accept ISO-8601 (`2023-01-15`) or
19
+ * year-only (`2023`); the date helper at `core/src/lib/date.ts` enforces
20
+ * format and rejects impossible calendar dates. Education stores year
21
+ * only, so the month/day are dropped before sending to the API.
22
+ */
23
+ export function buildProfileEducationCommand() {
24
+ const education = new Command("education").description("View and update the education section of your profile");
25
+ education
26
+ .command("add")
27
+ .description("Add a new education entry to your profile")
28
+ .requiredOption("--institution <name>", "school / university name")
29
+ .requiredOption("--degree <type>", "degree (e.g. BSc, MSc, PhD)")
30
+ .option("--from <date>", "start date — ISO-8601 (YYYY-MM-DD) or year (YYYY)")
31
+ .option("--to <date>", "end date — ISO-8601 (YYYY-MM-DD) or year (YYYY)")
32
+ .option("--field-of-study <text>", "field of study (optional)")
33
+ .option("--location <text>", "city / country (optional)")
34
+ .option("--title <text>", "thesis or program title (optional)")
35
+ .addOption(new Option("-o, --output <format>", "output format")
36
+ .choices(OUTPUT_FORMATS)
37
+ .default("pretty"))
38
+ .action(async (options) => {
39
+ await runAdd(options);
40
+ });
41
+ education
42
+ .command("update")
43
+ .description("Update an existing education entry by id")
44
+ .argument("<id>", "education id (V1-Education-NNN)")
45
+ .option("--institution <name>", "school / university name")
46
+ .option("--degree <type>", "degree")
47
+ .option("--from <date>", "start date — ISO-8601 or YYYY")
48
+ .option("--to <date>", "end date — ISO-8601 or YYYY")
49
+ .option("--field-of-study <text>", "field of study")
50
+ .option("--location <text>", "city / country")
51
+ .option("--title <text>", "thesis or program title")
52
+ .option("--highlight <bool>", "set highlight flag (true|false)")
53
+ .addOption(new Option("-o, --output <format>", "output format")
54
+ .choices(OUTPUT_FORMATS)
55
+ .default("pretty"))
56
+ .action(async (id, options) => {
57
+ await runUpdate(id, options);
58
+ });
59
+ education
60
+ .command("remove")
61
+ .description("Remove an education entry by id")
62
+ .argument("<id>", "education id")
63
+ .addOption(new Option("-o, --output <format>", "output format")
64
+ .choices(OUTPUT_FORMATS)
65
+ .default("pretty"))
66
+ .action(async (id, options) => {
67
+ await runRemove(id, options.output);
68
+ });
69
+ education
70
+ .command("show")
71
+ .description("Show a single education entry by id")
72
+ .argument("<id>", "education id")
73
+ .addOption(new Option("-o, --output <format>", "output format")
74
+ .choices(OUTPUT_FORMATS)
75
+ .default("pretty"))
76
+ .action(async (id, options) => {
77
+ await runShow(id, options.output);
78
+ });
79
+ education
80
+ .command("highlight")
81
+ .description("Toggle highlight on an education entry")
82
+ .argument("<id>", "education id")
83
+ .option("--off", "un-highlight (default is to highlight)", false)
84
+ .addOption(new Option("-o, --output <format>", "output format")
85
+ .choices(OUTPUT_FORMATS)
86
+ .default("pretty"))
87
+ .action(async (id, options) => {
88
+ await runHighlight(id, !options.off, options.output);
89
+ });
90
+ return education;
91
+ }
92
+ async function runAdd(options) {
93
+ const fields = {
94
+ institution: options.institution,
95
+ degree: options.degree,
96
+ };
97
+ applyDateFlags(fields, options, "profile education add", options.output);
98
+ applyOptionalStrings(fields, options);
99
+ const token = await loadAuthTokenOrExit("profile education add", options.output);
100
+ let result;
101
+ try {
102
+ result = await profile.education.add(token, fields);
103
+ }
104
+ catch (err) {
105
+ presentSubDomainError("profile education add", err, options.output);
106
+ }
107
+ emitAddSuccess({
108
+ operation: "profile.education.add",
109
+ format: options.output,
110
+ created: result,
111
+ prettySummary: `${result.degree} — ${result.institution} (id ${result.id})`,
112
+ prettyEntity: formatEducationText,
113
+ });
114
+ }
115
+ async function runUpdate(id, options) {
116
+ const fields = {};
117
+ if (options.institution !== undefined)
118
+ fields.institution = options.institution;
119
+ if (options.degree !== undefined)
120
+ fields.degree = options.degree;
121
+ if (options.fieldOfStudy !== undefined)
122
+ fields.fieldOfStudy = options.fieldOfStudy;
123
+ if (options.location !== undefined)
124
+ fields.location = options.location;
125
+ if (options.title !== undefined)
126
+ fields.title = options.title;
127
+ if (options.highlight !== undefined) {
128
+ if (options.highlight !== "true" && options.highlight !== "false") {
129
+ emitErrorAndExit({
130
+ operation: "profile.education.update",
131
+ format: options.output,
132
+ errors: [
133
+ {
134
+ code: "VALIDATION_ERROR",
135
+ field: "highlight",
136
+ message: '--highlight expects "true" or "false"',
137
+ },
138
+ ],
139
+ prettySummary: 'profile education update failed (VALIDATION_ERROR): --highlight expects "true" or "false"',
140
+ });
141
+ }
142
+ fields.highlight = options.highlight === "true";
143
+ }
144
+ applyDateFlags(fields, options, "profile education update", options.output);
145
+ if (Object.keys(fields).length === 0) {
146
+ emitErrorAndExit({
147
+ operation: "profile.education.update",
148
+ format: options.output,
149
+ errors: [{ code: "VALIDATION_ERROR", message: "at least one field flag is required" }],
150
+ prettySummary: "profile education update failed (VALIDATION_ERROR): at least one field flag is required",
151
+ });
152
+ }
153
+ const token = await loadAuthTokenOrExit("profile education update", options.output);
154
+ let result;
155
+ try {
156
+ result = await profile.education.update(token, id, fields);
157
+ }
158
+ catch (err) {
159
+ presentSubDomainError("profile education update", err, options.output);
160
+ }
161
+ emitUpdateSuccess({
162
+ operation: "profile.education.update",
163
+ format: options.output,
164
+ updated: result,
165
+ prettySummary: `${result.degree} — ${result.institution} (id ${result.id})`,
166
+ prettyEntity: formatEducationText,
167
+ });
168
+ }
169
+ async function runRemove(id, format) {
170
+ const token = await loadAuthTokenOrExit("profile education remove", format);
171
+ let removedId;
172
+ try {
173
+ removedId = await profile.education.remove(token, id);
174
+ }
175
+ catch (err) {
176
+ presentSubDomainError("profile education remove", err, format);
177
+ }
178
+ emitRemoveSuccess({
179
+ operation: "profile.education.remove",
180
+ format,
181
+ id: removedId,
182
+ });
183
+ }
184
+ async function runShow(id, format) {
185
+ const token = await loadAuthTokenOrExit("profile education show", format);
186
+ let result;
187
+ try {
188
+ result = await profile.education.show(token, id);
189
+ }
190
+ catch (err) {
191
+ presentSubDomainError("profile education show", err, format);
192
+ }
193
+ emitResult(result, format, { pretty: formatEducationText, table: formatEducationTable });
194
+ }
195
+ async function runHighlight(id, value, format) {
196
+ const token = await loadAuthTokenOrExit("profile education highlight", format);
197
+ let result;
198
+ try {
199
+ result = await profile.education.highlight(token, id, value);
200
+ }
201
+ catch (err) {
202
+ presentSubDomainError("profile education highlight", err, format);
203
+ }
204
+ emitUpdateSuccess({
205
+ operation: "profile.education.highlight",
206
+ format,
207
+ updated: result,
208
+ prettySummary: `${result.id} highlight set to ${result.highlight.toString()}`,
209
+ prettyEntity: (entity) => `highlight: ${entity.highlight.toString()}`,
210
+ });
211
+ }
212
+ /**
213
+ * Map `--from` / `--to` flag strings to `yearFrom` / `yearTo` Ints (year
214
+ * only, dropping any provided month/day per Education's GraphQL field
215
+ * shape). The date helper validates ISO-8601 and year-only formats and
216
+ * surfaces malformed input as `DateInputError` — routed through the
217
+ * envelope ABI (#128).
218
+ */
219
+ function applyDateFlags(fields, options, commandLabel, format) {
220
+ try {
221
+ if (options.from !== undefined)
222
+ fields.yearFrom = parseDateInput(options.from, "from").year;
223
+ if (options.to !== undefined)
224
+ fields.yearTo = parseDateInput(options.to, "to").year;
225
+ }
226
+ catch (err) {
227
+ if (err instanceof DateInputError) {
228
+ emitErrorAndExit({
229
+ operation: commandLabel.replace(/ /g, "."),
230
+ format,
231
+ errors: [{ code: err.code, message: err.message }],
232
+ prettySummary: `${commandLabel} failed (${err.code}): ${err.message}`,
233
+ });
234
+ }
235
+ throw err;
236
+ }
237
+ }
238
+ function applyOptionalStrings(fields, options) {
239
+ if (options.fieldOfStudy !== undefined)
240
+ fields.fieldOfStudy = options.fieldOfStudy;
241
+ if (options.location !== undefined)
242
+ fields.location = options.location;
243
+ if (options.title !== undefined)
244
+ fields.title = options.title;
245
+ }
246
+ /**
247
+ * Pretty-print an Education row. Pure — no I/O. Years render as "YYYY"
248
+ * or "YYYY–YYYY" or "YYYY–present"; missing years collapse to a hyphen.
249
+ */
250
+ export function formatEducationText(e) {
251
+ const lines = [`${e.degree}${e.fieldOfStudy ? `, ${e.fieldOfStudy}` : ""} — ${e.institution}`];
252
+ if (e.location)
253
+ lines.push(` ${e.location}`);
254
+ lines.push(` ${formatYearRange(e.yearFrom, e.yearTo)}`);
255
+ if (e.title)
256
+ lines.push(` ${e.title}`);
257
+ if (e.highlight)
258
+ lines.push(` highlighted`);
259
+ lines.push(` id: ${e.id}`);
260
+ return lines.join("\n");
261
+ }
262
+ /**
263
+ * Pretty-print an Education row as a key/value table.
264
+ */
265
+ export function formatEducationTable(e) {
266
+ const rows = [
267
+ ["id", e.id],
268
+ ["institution", e.institution],
269
+ ["degree", e.degree],
270
+ ["field_of_study", e.fieldOfStudy ?? ""],
271
+ ["location", e.location ?? ""],
272
+ ["title", e.title ?? ""],
273
+ ["years", formatYearRange(e.yearFrom, e.yearTo)],
274
+ ["highlight", e.highlight.toString()],
275
+ ];
276
+ return rows.map(([k, v]) => `${k}\t${v}`).join("\n");
277
+ }
278
+ function formatYearRange(from, to) {
279
+ if (from === null && to === null)
280
+ return "—";
281
+ if (from !== null && to === null)
282
+ return `${from.toString()}–present`;
283
+ if (from === null && to !== null)
284
+ return `?–${to.toString()}`;
285
+ return `${(from ?? 0).toString()}–${(to ?? 0).toString()}`;
286
+ }
287
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/profile/education/index.ts"],"names":[],"m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