@nulab/bee 1.1.1 → 1.2.0

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 (251) hide show
  1. package/dist/activities-BPTHt_MD.mjs +69 -0
  2. package/dist/activities-CRiEq51-.mjs +72 -0
  3. package/dist/activities-DyOMqdsM.mjs +69 -0
  4. package/dist/activity-labels-CLFpxp8o.mjs +34 -0
  5. package/dist/add-Br-_TLRp.mjs +55 -0
  6. package/dist/add-CTmmy2t9.mjs +26 -0
  7. package/dist/add-user-BVWFcbH7.mjs +26 -0
  8. package/dist/api-DhA8avDD.mjs +134 -0
  9. package/dist/attachments-CnL8t9tK.mjs +50 -0
  10. package/dist/attachments-D8IoJjYE.mjs +50 -0
  11. package/dist/attachments-DfgEkAY2.mjs +46 -0
  12. package/dist/auth-5TJGBPxi.mjs +13 -0
  13. package/dist/bee-command-v0qvZeth.mjs +57 -0
  14. package/dist/browse-vgF6nz7X.mjs +304 -0
  15. package/dist/category-BZ7XdVgx.mjs +11 -0
  16. package/dist/clone-DAWVtVbZ.mjs +43 -0
  17. package/dist/close-cTyZPv77.mjs +37 -0
  18. package/dist/comment-CkYJYFrF.mjs +115 -0
  19. package/dist/comment-DzRBQNv8.mjs +102 -0
  20. package/dist/comments-SnOZ-EUJ.mjs +47 -0
  21. package/dist/common-options-BuYWxYdO.mjs +45 -0
  22. package/dist/completion-yX2VOQSl.mjs +113 -0
  23. package/dist/count-BI7ld4k5.mjs +50 -0
  24. package/dist/count-Bw0mVlxC.mjs +40 -0
  25. package/dist/count-CH_LN4k6.mjs +51 -0
  26. package/dist/count-CHzDiMV3.mjs +25 -0
  27. package/dist/count-DvmYzPD_.mjs +46 -0
  28. package/dist/create-BHjwacOk.mjs +47 -0
  29. package/dist/create-BXWATibN.mjs +41 -0
  30. package/dist/create-BtLVFmbR.mjs +29 -0
  31. package/dist/create-CoF2bahH.mjs +29 -0
  32. package/dist/create-DhAOhro9.mjs +60 -0
  33. package/dist/create-DtMLv7Wq.mjs +26 -0
  34. package/dist/create-PtahSFdG.mjs +66 -0
  35. package/dist/create-Y4vo2zwX.mjs +44 -0
  36. package/dist/create-vwRKZ3Lm.mjs +31 -0
  37. package/dist/dashboard-CYYU5Yii.mjs +97 -0
  38. package/dist/delete-BCAPHs-g.mjs +25 -0
  39. package/dist/delete-BHNt5SWa.mjs +24 -0
  40. package/dist/delete-BlmanW0H.mjs +25 -0
  41. package/dist/delete-Bxk14ntp.mjs +24 -0
  42. package/dist/delete-C05oMZEW.mjs +24 -0
  43. package/dist/delete-CMwkcSiA.mjs +25 -0
  44. package/dist/delete-CTeH7nzL.mjs +29 -0
  45. package/dist/delete-D2yDBhZc.mjs +24 -0
  46. package/dist/delete-HMOfvtv3.mjs +25 -0
  47. package/dist/document-vTiqLew9.mjs +14 -0
  48. package/dist/edit-BBvSbt0m.mjs +22 -0
  49. package/dist/edit-BfCZ2Abi.mjs +50 -0
  50. package/dist/edit-CN1gdpjd.mjs +37 -0
  51. package/dist/edit-C_KbKopB.mjs +36 -0
  52. package/dist/edit-D5Z45NVj.mjs +27 -0
  53. package/dist/edit-DKQw-XXP.mjs +27 -0
  54. package/dist/edit-DRxr4r-r.mjs +60 -0
  55. package/dist/edit-DxsP-aPX.mjs +43 -0
  56. package/dist/edit-Otc7XHU7.mjs +52 -0
  57. package/dist/file-DwPTUKOI.mjs +17 -0
  58. package/dist/format-DHAR0n3J.mjs +9 -0
  59. package/dist/history-DpjqxFkX.mjs +55 -0
  60. package/dist/index.mjs +33 -37918
  61. package/dist/issue-BRzJy3k1.mjs +18 -0
  62. package/dist/issue-type-Byzh4yLx.mjs +11 -0
  63. package/dist/list-B3A5SDEm.mjs +35 -0
  64. package/dist/list-BMKaJoe_.mjs +64 -0
  65. package/dist/list-BOMbpS4m.mjs +46 -0
  66. package/dist/list-BmZ_JbLB.mjs +104 -0
  67. package/dist/list-BpUUxxwQ.mjs +46 -0
  68. package/dist/list-CgIebllW.mjs +94 -0
  69. package/dist/list-D0Z__0nw.mjs +42 -0
  70. package/dist/list-D3FkO9gb.mjs +56 -0
  71. package/dist/list-D7WLdHvX.mjs +42 -0
  72. package/dist/list-DAr3urtu.mjs +53 -0
  73. package/dist/list-DqpWd9aR.mjs +59 -0
  74. package/dist/list-VO_PbRjC.mjs +50 -0
  75. package/dist/list-b6ByzUFt.mjs +79 -0
  76. package/dist/list-jpQ28gU2.mjs +56 -0
  77. package/dist/list-y93EXyDj.mjs +42 -0
  78. package/dist/login-BnJYzdR3.mjs +228 -0
  79. package/dist/logout-YMnSRLLF.mjs +56 -0
  80. package/dist/me-CLPAe7X2.mjs +36 -0
  81. package/dist/milestone-Dc3alfp9.mjs +11 -0
  82. package/dist/notification-CsOuC8Uk.mjs +11 -0
  83. package/dist/output-DBvfyU1J.mjs +39 -0
  84. package/dist/pr-BBe07JUp.mjs +15 -0
  85. package/dist/project-Dilo1T5e.mjs +16 -0
  86. package/dist/read-BS2G4sNq.mjs +17 -0
  87. package/dist/read-CyCASx6U.mjs +17 -0
  88. package/dist/read-all-CjgMJ2to.mjs +16 -0
  89. package/dist/refresh-DDU2ZLnc.mjs +54 -0
  90. package/dist/registry-D8DfbunX.mjs +2 -0
  91. package/dist/registry-PlBmfTR4.mjs +35 -0
  92. package/dist/remove-BSDJvkVJ.mjs +17 -0
  93. package/dist/remove-user-CShNCvf8.mjs +26 -0
  94. package/dist/reopen-BIRhcmsI.mjs +28 -0
  95. package/dist/repo-B2K8y0mD.mjs +10 -0
  96. package/dist/role-labels-CLA2wmjO.mjs +11 -0
  97. package/dist/space-BgZeUqoH.mjs +6 -0
  98. package/dist/{shared/bee.CHtg3F43.mjs → src-BWaxjrq_.mjs} +143 -175
  99. package/dist/src-CP4YLIAh.mjs +1008 -0
  100. package/dist/src-CTD9-bSB.mjs +22760 -0
  101. package/dist/star-Sgb-e2CQ.mjs +11 -0
  102. package/dist/status-BkFMW8Jh.mjs +53 -0
  103. package/dist/status-CaGqMXh7.mjs +64 -0
  104. package/dist/status-DDFyQrRZ.mjs +11 -0
  105. package/dist/status-nI4Dpcoo.mjs +58 -0
  106. package/dist/stdin-C-vjNi9T.mjs +17 -0
  107. package/dist/switch-CMLfVGDN.mjs +34 -0
  108. package/dist/tags-DuMJZyBL.mjs +29 -0
  109. package/dist/team-DfQn8Tf5.mjs +6 -0
  110. package/dist/token-BmkUX9vc.mjs +28 -0
  111. package/dist/tree-CozBqPbN.mjs +46 -0
  112. package/dist/user-DMyFmoP3.mjs +11 -0
  113. package/dist/users-BSGqsGSy.mjs +51 -0
  114. package/dist/view-Bj99sk7O.mjs +48 -0
  115. package/dist/view-Bs8o0c7i.mjs +36 -0
  116. package/dist/view-C1ECwTMN.mjs +54 -0
  117. package/dist/view-COBYBfu7.mjs +38 -0
  118. package/dist/view-CZHT-HiE.mjs +36 -0
  119. package/dist/view-D1RuQJV6.mjs +76 -0
  120. package/dist/view-DBO75WzR.mjs +54 -0
  121. package/dist/view-DJHrnN8j.mjs +62 -0
  122. package/dist/view-DLx6qQt9.mjs +51 -0
  123. package/dist/watching-D22YYxOT.mjs +12 -0
  124. package/dist/wiki-B-DQUuIX.mjs +16 -0
  125. package/package.json +14 -11
  126. package/dist/chunks/activities.mjs +0 -75
  127. package/dist/chunks/activities2.mjs +0 -75
  128. package/dist/chunks/activities3.mjs +0 -75
  129. package/dist/chunks/add-user.mjs +0 -38
  130. package/dist/chunks/add.mjs +0 -63
  131. package/dist/chunks/add2.mjs +0 -39
  132. package/dist/chunks/api.mjs +0 -174
  133. package/dist/chunks/attachments.mjs +0 -47
  134. package/dist/chunks/attachments2.mjs +0 -47
  135. package/dist/chunks/attachments3.mjs +0 -48
  136. package/dist/chunks/browse.mjs +0 -269
  137. package/dist/chunks/clone.mjs +0 -60
  138. package/dist/chunks/close.mjs +0 -50
  139. package/dist/chunks/comment.mjs +0 -125
  140. package/dist/chunks/comment2.mjs +0 -111
  141. package/dist/chunks/comments.mjs +0 -57
  142. package/dist/chunks/completion.mjs +0 -113
  143. package/dist/chunks/count.mjs +0 -68
  144. package/dist/chunks/count2.mjs +0 -69
  145. package/dist/chunks/count3.mjs +0 -59
  146. package/dist/chunks/count4.mjs +0 -35
  147. package/dist/chunks/count5.mjs +0 -52
  148. package/dist/chunks/create.mjs +0 -60
  149. package/dist/chunks/create2.mjs +0 -88
  150. package/dist/chunks/create3.mjs +0 -64
  151. package/dist/chunks/create4.mjs +0 -74
  152. package/dist/chunks/create5.mjs +0 -56
  153. package/dist/chunks/create6.mjs +0 -37
  154. package/dist/chunks/create7.mjs +0 -45
  155. package/dist/chunks/create8.mjs +0 -49
  156. package/dist/chunks/create9.mjs +0 -49
  157. package/dist/chunks/dashboard.mjs +0 -84
  158. package/dist/chunks/delete.mjs +0 -48
  159. package/dist/chunks/delete2.mjs +0 -46
  160. package/dist/chunks/delete3.mjs +0 -46
  161. package/dist/chunks/delete4.mjs +0 -49
  162. package/dist/chunks/delete5.mjs +0 -50
  163. package/dist/chunks/delete6.mjs +0 -50
  164. package/dist/chunks/delete7.mjs +0 -62
  165. package/dist/chunks/delete8.mjs +0 -53
  166. package/dist/chunks/delete9.mjs +0 -48
  167. package/dist/chunks/edit.mjs +0 -56
  168. package/dist/chunks/edit2.mjs +0 -78
  169. package/dist/chunks/edit3.mjs +0 -65
  170. package/dist/chunks/edit4.mjs +0 -51
  171. package/dist/chunks/edit5.mjs +0 -43
  172. package/dist/chunks/edit6.mjs +0 -54
  173. package/dist/chunks/edit7.mjs +0 -50
  174. package/dist/chunks/edit8.mjs +0 -50
  175. package/dist/chunks/history.mjs +0 -56
  176. package/dist/chunks/index.mjs +0 -15
  177. package/dist/chunks/index10.mjs +0 -18
  178. package/dist/chunks/index11.mjs +0 -13
  179. package/dist/chunks/index12.mjs +0 -13
  180. package/dist/chunks/index13.mjs +0 -13
  181. package/dist/chunks/index14.mjs +0 -8
  182. package/dist/chunks/index15.mjs +0 -13
  183. package/dist/chunks/index16.mjs +0 -13
  184. package/dist/chunks/index17.mjs +0 -14
  185. package/dist/chunks/index2.mjs +0 -18
  186. package/dist/chunks/index3.mjs +0 -20
  187. package/dist/chunks/index4.mjs +0 -15
  188. package/dist/chunks/index5.mjs +0 -13
  189. package/dist/chunks/index6.mjs +0 -17
  190. package/dist/chunks/index7.mjs +0 -8
  191. package/dist/chunks/index8.mjs +0 -8
  192. package/dist/chunks/index9.mjs +0 -13
  193. package/dist/chunks/list.mjs +0 -52
  194. package/dist/chunks/list10.mjs +0 -44
  195. package/dist/chunks/list11.mjs +0 -49
  196. package/dist/chunks/list12.mjs +0 -45
  197. package/dist/chunks/list13.mjs +0 -45
  198. package/dist/chunks/list14.mjs +0 -54
  199. package/dist/chunks/list15.mjs +0 -46
  200. package/dist/chunks/list2.mjs +0 -103
  201. package/dist/chunks/list3.mjs +0 -85
  202. package/dist/chunks/list4.mjs +0 -79
  203. package/dist/chunks/list5.mjs +0 -77
  204. package/dist/chunks/list6.mjs +0 -45
  205. package/dist/chunks/list7.mjs +0 -48
  206. package/dist/chunks/list8.mjs +0 -46
  207. package/dist/chunks/list9.mjs +0 -53
  208. package/dist/chunks/login.mjs +0 -218
  209. package/dist/chunks/logout.mjs +0 -76
  210. package/dist/chunks/me.mjs +0 -48
  211. package/dist/chunks/read-all.mjs +0 -29
  212. package/dist/chunks/read.mjs +0 -29
  213. package/dist/chunks/read2.mjs +0 -27
  214. package/dist/chunks/refresh.mjs +0 -76
  215. package/dist/chunks/remove-user.mjs +0 -38
  216. package/dist/chunks/remove.mjs +0 -27
  217. package/dist/chunks/reopen.mjs +0 -42
  218. package/dist/chunks/status.mjs +0 -64
  219. package/dist/chunks/status2.mjs +0 -61
  220. package/dist/chunks/status3.mjs +0 -66
  221. package/dist/chunks/switch.mjs +0 -55
  222. package/dist/chunks/tags.mjs +0 -41
  223. package/dist/chunks/token.mjs +0 -42
  224. package/dist/chunks/tree.mjs +0 -61
  225. package/dist/chunks/users.mjs +0 -48
  226. package/dist/chunks/view.mjs +0 -58
  227. package/dist/chunks/view2.mjs +0 -95
  228. package/dist/chunks/view3.mjs +0 -68
  229. package/dist/chunks/view4.mjs +0 -70
  230. package/dist/chunks/view5.mjs +0 -61
  231. package/dist/chunks/view6.mjs +0 -52
  232. package/dist/chunks/view7.mjs +0 -48
  233. package/dist/chunks/view8.mjs +0 -61
  234. package/dist/chunks/view9.mjs +0 -48
  235. package/dist/shared/bee.084B_7FC.mjs +0 -27
  236. package/dist/shared/bee.BTBGpv4K.mjs +0 -34
  237. package/dist/shared/bee.BXiuAfjJ.mjs +0 -10
  238. package/dist/shared/bee.Btmq3TXs.mjs +0 -19
  239. package/dist/shared/bee.C--ZWPxf.mjs +0 -14
  240. package/dist/shared/bee.C4p7W8_P.mjs +0 -18
  241. package/dist/shared/bee.CAARNIp6.mjs +0 -49
  242. package/dist/shared/bee.CirccSk2.mjs +0 -51
  243. package/dist/shared/bee.CktwmH8R.mjs +0 -25
  244. package/dist/shared/bee.CzKcWSES.mjs +0 -42
  245. package/dist/shared/bee.DFnSWb6q.mjs +0 -396
  246. package/dist/shared/bee.DoTvz3uW.mjs +0 -13
  247. package/dist/shared/bee.KteAW2rM.mjs +0 -73
  248. package/dist/shared/bee.RsR9yniy.mjs +0 -131
  249. package/dist/shared/bee.a05kNWpn.mjs +0 -32
  250. package/dist/shared/bee.n5MYN4a6.mjs +0 -12
  251. package/dist/shared/bee.q93n012-.mjs +0 -14
@@ -1,35 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import 'node:stream/consumers';
4
- import 'valibot';
5
- import '../index.mjs';
6
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
7
- import 'backlog-js';
8
- import 'node:http';
9
- import 'open';
10
- import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
12
- import { d as project, j as json, s as space, r as resolveOptions } from '../shared/bee.CHtg3F43.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'node:module';
17
- import 'commander';
18
- import 'consola/utils';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.CAARNIp6.mjs';
21
-
22
- const count = new BeeCommand("count").summary("Count wiki pages").description(`Counts all wiki pages regardless of tag or keyword.`).addOption(project()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
23
- { description: "Count wiki pages", command: "bee wiki count -p PROJECT" },
24
- { description: "Output as JSON", command: "bee wiki count -p PROJECT --json" }
25
- ]).action(async (opts, cmd) => {
26
- await resolveOptions(cmd);
27
- const { client } = await getClient(opts.space);
28
- const result = await client.getWikisCount(opts.project);
29
- const json = opts.json === true ? "" : opts.json;
30
- outputResult(result, { json }, (data) => {
31
- consola.log(String(data.count));
32
- });
33
- });
34
-
35
- export { count as default };
@@ -1,52 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import 'node:stream/consumers';
4
- import 'valibot';
5
- import { p as parseArg, v as vInteger } from '../index.mjs';
6
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
7
- import 'backlog-js';
8
- import 'node:http';
9
- import 'open';
10
- import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
12
- import { j as json, s as space } from '../shared/bee.CHtg3F43.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'node:module';
17
- import 'commander';
18
- import 'consola/utils';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.CAARNIp6.mjs';
21
-
22
- const count = new BeeCommand("count").summary("Count received stars").description(`Defaults to the authenticated user if no user ID is given.`).argument("[user]", "User ID").option("--since <yyyy-MM-dd>", "Count stars received on or after this date").option("--until <yyyy-MM-dd>", "Count stars received on or before this date").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
23
- { description: "Count your stars", command: "bee star count" },
24
- { description: "Count stars for a specific user", command: "bee star count 12345" },
25
- {
26
- description: "Count stars in a date range",
27
- command: "bee star count --since 2025-01-01 --until 2025-12-31"
28
- },
29
- { description: "Output as JSON", command: "bee star count --json" }
30
- ]).action(async (user, opts) => {
31
- const { client } = await getClient(opts.space);
32
- let userId;
33
- if (user) {
34
- userId = parseArg(vInteger, user, "user");
35
- } else {
36
- const myself = await client.getMyself();
37
- userId = myself.id;
38
- }
39
- const params = {};
40
- if (opts.since) {
41
- params.since = opts.since;
42
- }
43
- if (opts.until) {
44
- params.until = opts.until;
45
- }
46
- const result = await client.getUserStarsCount(userId, params);
47
- outputResult(result, opts, (data) => {
48
- consola.log(String(data.count));
49
- });
50
- });
51
-
52
- export { count as default };
@@ -1,60 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../index.mjs';
7
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import { p as projectUrl } from '../shared/bee.CzKcWSES.mjs';
11
- import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'commander';
17
- import 'open';
18
- import 'node:module';
19
- import 'consola/utils';
20
- import '../shared/bee.CktwmH8R.mjs';
21
- import '../shared/bee.CAARNIp6.mjs';
22
-
23
- const create = new BeeCommand("create").summary("Create a project").description(
24
- `Project key must consist of uppercase letters, numbers, and underscores. Omitted fields will be prompted interactively.`
25
- ).option("-k, --key <key>", "Project key").option("-n, --name <name>", "Project name").option("--chart-enabled", "Enable chart").option("--subtasking-enabled", "Enable subtasking").option(
26
- "--project-leader-can-edit-project-leader",
27
- "Allow project administrators to manage each other"
28
- ).option("--text-formatting-rule <rule>", "Formatting rules").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
29
- {
30
- description: "Create a project with key and name",
31
- command: 'bee project create --key TEST --name "Test Project"'
32
- },
33
- {
34
- description: "Create a project with markdown formatting",
35
- command: 'bee project create --key TEST --name "Test Project" --text-formatting-rule markdown'
36
- },
37
- {
38
- description: "Create a project interactively",
39
- command: "bee project create"
40
- }
41
- ]).action(async (opts) => {
42
- const { client, host } = await getClient(opts.space);
43
- const key = await promptRequired("Project key:", opts.key);
44
- const name = await promptRequired("Project name:", opts.name);
45
- const project = await client.postProject({
46
- key,
47
- name,
48
- chartEnabled: opts.chartEnabled ?? false,
49
- subtaskingEnabled: opts.subtaskingEnabled ?? false,
50
- projectLeaderCanEditProjectLeader: opts.projectLeaderCanEditProjectLeader,
51
- textFormattingRule: opts.textFormattingRule ?? "markdown"
52
- });
53
- const jsonArg = opts.json === true ? "" : opts.json;
54
- outputResult(project, { ...opts, json: jsonArg }, (data) => {
55
- consola.success(`Created project ${data.projectKey}: ${data.name}`);
56
- consola.info(projectUrl(host, data.projectKey));
57
- });
58
- });
59
-
60
- export { create as default };
@@ -1,88 +0,0 @@
1
- import consola from 'consola';
2
- import { a as PRIORITY_NAMES, P as PriorityId } from '../shared/bee.Btmq3TXs.mjs';
3
- import { r as resolveProjectIds } from '../shared/bee.084B_7FC.mjs';
4
- import { r as resolveUserId } from '../shared/bee.q93n012-.mjs';
5
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
6
- import 'backlog-js';
7
- import 'node:http';
8
- import { i as issueUrl } from '../shared/bee.CzKcWSES.mjs';
9
- import 'node:child_process';
10
- import { p as parseArg, a as vFiniteNumber, v as vInteger } from '../index.mjs';
11
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
12
- import { p as projectOptional, m as assignee, q as category, v as version, t as milestone, x as notify, y as attachment, j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
13
- import 'node:stream/consumers';
14
- import * as v from 'valibot';
15
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
16
- import '../shared/bee.CktwmH8R.mjs';
17
- import '../shared/bee.CAARNIp6.mjs';
18
- import 'open';
19
- import 'node:fs';
20
- import 'node:path';
21
- import 'node:os';
22
- import 'node:module';
23
- import 'commander';
24
- import 'consola/utils';
25
-
26
- const create = new BeeCommand("create").summary("Create an issue").description(
27
- `Omitted required fields will be prompted interactively. Priority accepts a name: \`high\`, \`normal\`, or \`low\`.`
28
- ).addOption(projectOptional()).option("-t, --title <text>", "Issue title").option("-T, --type <id>", "Issue type ID").option("-P, --priority <name>", "Priority").option("-d, --description <text>", "Issue description").addOption(assignee()).addOption(category()).addOption(version()).addOption(milestone()).option("--parent-issue <id>", "Parent issue ID").option("--start-date <date>", "Start date").option("--due-date <date>", "Due date").option("--estimated-hours <n>", "Estimated hours").option("--actual-hours <n>", "Actual hours").addOption(notify()).addOption(attachment()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
29
- {
30
- description: "Create an issue with required fields",
31
- command: 'bee issue create -p PROJECT --type 1 --priority normal -t "Fix login bug"'
32
- },
33
- {
34
- description: "Create an issue with description",
35
- command: 'bee issue create -p PROJECT --type 1 --priority normal -t "Title" -d "Details here"'
36
- },
37
- {
38
- description: "Create an issue assigned to yourself",
39
- command: 'bee issue create -p PROJECT --type 1 --priority high -t "Title" --assignee @me'
40
- },
41
- {
42
- description: "Output as JSON",
43
- command: 'bee issue create -p PROJECT --type 1 --priority normal -t "Title" --json'
44
- }
45
- ]).action(async (opts) => {
46
- const { client, host } = await getClient(opts.space);
47
- const project = await promptRequired("Project:", opts.project);
48
- const title = await promptRequired("Summary:", opts.title);
49
- const issueTypeId = await promptRequired("Issue type ID:", opts.type);
50
- const priority = await promptRequired("Priority:", opts.priority, {
51
- valueHint: `{${PRIORITY_NAMES.join("|")}}`
52
- });
53
- const priorityId = PriorityId[priority.toLowerCase()];
54
- if (priorityId === void 0) {
55
- throw new Error(`Unknown priority "${priority}". Valid values: ${PRIORITY_NAMES.join(", ")}`);
56
- }
57
- const [projectId] = await resolveProjectIds(client, [project]);
58
- const assigneeId = opts.assignee ? await resolveUserId(client, opts.assignee) : void 0;
59
- const categoryId = opts.category ?? [];
60
- const versionId = opts.version ?? [];
61
- const milestoneId = opts.milestone ?? [];
62
- const notifiedUserId = opts.notify ?? [];
63
- const attachmentId = opts.attachment ?? [];
64
- const issue = await client.postIssue({
65
- projectId,
66
- summary: title,
67
- issueTypeId: parseArg(vInteger, issueTypeId, "issueTypeId"),
68
- priorityId,
69
- description: opts.description,
70
- assigneeId,
71
- categoryId,
72
- versionId,
73
- milestoneId,
74
- parentIssueId: parseArg(v.optional(vInteger), opts.parentIssue, "--parent-issue"),
75
- startDate: opts.startDate,
76
- dueDate: opts.dueDate,
77
- estimatedHours: parseArg(v.optional(vFiniteNumber), opts.estimatedHours, "--estimated-hours"),
78
- actualHours: parseArg(v.optional(vFiniteNumber), opts.actualHours, "--actual-hours"),
79
- notifiedUserId,
80
- attachmentId
81
- });
82
- outputResult(issue, opts, (data) => {
83
- consola.success(`Created issue ${data.issueKey}: ${data.summary}`);
84
- consola.info(issueUrl(host, data.issueKey));
85
- });
86
- });
87
-
88
- export { create as default };
@@ -1,64 +0,0 @@
1
- import consola from 'consola';
2
- import { r as resolveProjectIds } from '../shared/bee.084B_7FC.mjs';
3
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
4
- import { p as projectOptional, j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
5
- import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
6
- import 'valibot';
7
- import '../index.mjs';
8
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
9
- import 'backlog-js';
10
- import 'node:http';
11
- import { f as documentUrl } from '../shared/bee.CzKcWSES.mjs';
12
- import 'node:child_process';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:stream/consumers';
15
- import 'node:fs';
16
- import 'node:path';
17
- import 'node:os';
18
- import 'commander';
19
- import 'open';
20
- import 'node:module';
21
- import 'consola/utils';
22
- import '../shared/bee.CktwmH8R.mjs';
23
- import '../shared/bee.CAARNIp6.mjs';
24
-
25
- const create = new BeeCommand("create").summary("Create a document").description(
26
- `Omitted required fields will be prompted interactively. When input is piped, it is used as the body automatically.`
27
- ).addOption(projectOptional()).option("-t, --title <text>", "Document title").option("-b, --body <text>", "Document body content").option("--emoji <emoji>", "Emoji for the document").option("--parent-id <id>", "Parent document ID for creating as a child document").option("--add-last", "Add document to the end of the list").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
28
- {
29
- description: "Create a document with title and body",
30
- command: 'bee document create -p PROJECT -t "Meeting Notes" -b "Content here"'
31
- },
32
- {
33
- description: "Create a document from stdin",
34
- command: 'echo "Content" | bee document create -p PROJECT -t "Notes"'
35
- },
36
- {
37
- description: "Create a child document",
38
- command: 'bee document create -p PROJECT -t "Sub Page" --parent-id 12345'
39
- },
40
- {
41
- description: "Output as JSON",
42
- command: 'bee document create -p PROJECT -t "Title" --json'
43
- }
44
- ]).action(async (opts) => {
45
- const { client, host } = await getClient(opts.space);
46
- const project = await promptRequired("Project:", opts.project);
47
- const title = await promptRequired("Title:", opts.title);
48
- const [projectId] = await resolveProjectIds(client, [project]);
49
- const body = await resolveStdinArg(opts.body);
50
- const doc = await client.addDocument({
51
- projectId,
52
- title,
53
- content: body,
54
- emoji: opts.emoji,
55
- parentId: opts.parentId,
56
- addLast: opts.addLast
57
- });
58
- outputResult(doc, opts, (data) => {
59
- consola.success(`Created document ${data.title} (ID: ${data.id})`);
60
- consola.info(documentUrl(host, project, data.id));
61
- });
62
- });
63
-
64
- export { create as default };
@@ -1,74 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, C as repo, m as assignee, x as notify, y as attachment, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
4
- import 'node:stream/consumers';
5
- import * as v from 'valibot';
6
- import { v as vInteger } from '../index.mjs';
7
- import { r as resolveUserId } from '../shared/bee.q93n012-.mjs';
8
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
9
- import 'backlog-js';
10
- import 'node:http';
11
- import { h as pullRequestUrl } from '../shared/bee.CzKcWSES.mjs';
12
- import 'node:child_process';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import 'commander';
18
- import 'open';
19
- import 'node:module';
20
- import 'consola/utils';
21
- import '../shared/bee.CktwmH8R.mjs';
22
- import '../shared/bee.CAARNIp6.mjs';
23
-
24
- const create = new BeeCommand("create").summary("Create a pull request").description(`Omitted required fields will be prompted interactively.`).addOption(project()).addOption(repo()).option("--base <branch>", "Base branch name").option("--head <branch>", "Head branch name").option("-t, --title <text>", "Pull request title").option("-b, --body <text>", "Pull request description").addOption(assignee()).option("--issue <key>", "Related issue ID or issue key").addOption(notify()).addOption(attachment()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT, ENV_REPO]).examples([
25
- {
26
- description: "Create a pull request",
27
- command: 'bee pr create -p PROJECT -R repo --base main --head feature -t "Add login" -b "Details"'
28
- },
29
- {
30
- description: "Create a pull request assigned to yourself",
31
- command: 'bee pr create -p PROJECT -R repo --base main --head feature -t "Title" -b "Desc" --assignee @me'
32
- },
33
- {
34
- description: "Create a pull request linked to an issue",
35
- command: 'bee pr create -p PROJECT -R repo --base main --head feature -t "Title" -b "Desc" --issue 123'
36
- }
37
- ]).action(async (opts, cmd) => {
38
- await resolveOptions(cmd);
39
- const { client, host } = await getClient(opts.space);
40
- const base = await promptRequired("Base branch:", opts.base);
41
- const head = await promptRequired("Head branch:", opts.head);
42
- const summary = await promptRequired("Summary:", opts.title);
43
- const description = await promptRequired("Body:", opts.body);
44
- const assigneeId = opts.assignee ? await resolveUserId(client, opts.assignee) : void 0;
45
- const notifiedUserId = opts.notify ?? [];
46
- const attachmentId = opts.attachment ?? [];
47
- let issueId;
48
- if (opts.issue) {
49
- const parsed = v.safeParse(vInteger, opts.issue);
50
- if (parsed.success) {
51
- issueId = parsed.output;
52
- } else {
53
- const issue = await client.getIssue(opts.issue);
54
- issueId = issue.id;
55
- }
56
- }
57
- const pullRequest = await client.postPullRequest(opts.project, opts.repo, {
58
- summary,
59
- description,
60
- base,
61
- branch: head,
62
- issueId,
63
- assigneeId,
64
- notifiedUserId,
65
- attachmentId
66
- });
67
- const json = opts.json === true ? "" : opts.json;
68
- outputResult(pullRequest, { json }, (data) => {
69
- consola.success(`Created pull request #${data.number}: ${data.summary}`);
70
- consola.info(pullRequestUrl(host, opts.project, opts.repo, data.number));
71
- });
72
- });
73
-
74
- export { create as default };
@@ -1,56 +0,0 @@
1
- import consola from 'consola';
2
- import { r as resolveProjectIds } from '../shared/bee.084B_7FC.mjs';
3
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
4
- import { p as projectOptional, j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
5
- import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
6
- import 'valibot';
7
- import '../index.mjs';
8
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
9
- import 'backlog-js';
10
- import 'node:http';
11
- import { w as wikiUrl } from '../shared/bee.CzKcWSES.mjs';
12
- import 'node:child_process';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:stream/consumers';
15
- import 'node:fs';
16
- import 'node:path';
17
- import 'node:os';
18
- import 'commander';
19
- import 'open';
20
- import 'node:module';
21
- import 'consola/utils';
22
- import '../shared/bee.CktwmH8R.mjs';
23
- import '../shared/bee.CAARNIp6.mjs';
24
-
25
- const create = new BeeCommand("create").summary("Create a wiki page").description(`When input is piped, it is used as the body automatically.`).addOption(projectOptional()).option("-n, --name <name>", "Wiki page name").option("-b, --body <text>", "Wiki page content").option("--mail-notify", "Send notification email").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
26
- {
27
- description: "Create a wiki page",
28
- command: 'bee wiki create -p PROJECT -n "Page Name" -b "Content"'
29
- },
30
- {
31
- description: "Create a wiki page from stdin",
32
- command: 'echo "Body" | bee wiki create -p PROJECT -n "Name"'
33
- },
34
- {
35
- description: "Create and send notification email",
36
- command: 'bee wiki create -p PROJECT -n "Name" -b "Content" --mail-notify'
37
- }
38
- ]).action(async (opts) => {
39
- const { client, host } = await getClient(opts.space);
40
- const project = await promptRequired("Project:", opts.project);
41
- const name = await promptRequired("Page name:", opts.name);
42
- const body = await resolveStdinArg(opts.body) ?? "";
43
- const [projectId] = await resolveProjectIds(client, [project]);
44
- const wiki = await client.postWiki({
45
- projectId,
46
- name,
47
- content: body,
48
- mailNotify: opts.mailNotify
49
- });
50
- outputResult(wiki, opts, (data) => {
51
- consola.success(`Created wiki page ${data.id}: ${data.name}`);
52
- consola.info(wikiUrl(host, data.id));
53
- });
54
- });
55
-
56
- export { create as default };
@@ -1,37 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../index.mjs';
7
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import { j as categoryUrl } from '../shared/bee.CzKcWSES.mjs';
11
- import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'commander';
17
- import 'open';
18
- import 'node:module';
19
- import 'consola/utils';
20
- import '../shared/bee.CktwmH8R.mjs';
21
- import '../shared/bee.CAARNIp6.mjs';
22
-
23
- const create = new BeeCommand("create").summary("Create a category").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Category name").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
24
- { description: "Create a category", command: 'bee category create -p PROJECT -n "Bug Report"' },
25
- { description: "Create interactively", command: "bee category create -p PROJECT" }
26
- ]).action(async (opts, cmd) => {
27
- await resolveOptions(cmd);
28
- const { client, host } = await getClient(opts.space);
29
- const name = await promptRequired("Category name:", opts.name);
30
- const category = await client.postCategories(opts.project, { name });
31
- outputResult(category, opts, (data) => {
32
- consola.success(`Created category ${data.name} (ID: ${data.id})`);
33
- consola.info(categoryUrl(host, data.id, data.projectId));
34
- });
35
- });
36
-
37
- export { create as default };
@@ -1,45 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../index.mjs';
7
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import { m as milestoneUrl } from '../shared/bee.CzKcWSES.mjs';
11
- import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'commander';
17
- import 'open';
18
- import 'node:module';
19
- import 'consola/utils';
20
- import '../shared/bee.CktwmH8R.mjs';
21
- import '../shared/bee.CAARNIp6.mjs';
22
-
23
- const create = new BeeCommand("create").summary("Create a milestone").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Milestone name").option("-d, --description <value>", "Milestone description").option("--start-date <yyyy-MM-dd>", "Start date").option("--release-due-date <yyyy-MM-dd>", "Release due date").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
24
- { description: "Create a milestone", command: 'bee milestone create -p PROJECT -n "v1.0.0"' },
25
- {
26
- description: "Create with dates",
27
- command: 'bee milestone create -p PROJECT -n "v1.0.0" --start-date 2026-04-01 --release-due-date 2026-06-30'
28
- }
29
- ]).action(async (opts, cmd) => {
30
- await resolveOptions(cmd);
31
- const { client, host } = await getClient(opts.space);
32
- const name = await promptRequired("Milestone name:", opts.name);
33
- const milestone = await client.postVersions(opts.project, {
34
- name,
35
- description: opts.description,
36
- startDate: opts.startDate,
37
- releaseDueDate: opts.releaseDueDate
38
- });
39
- outputResult(milestone, opts, (data) => {
40
- consola.success(`Created milestone ${data.name} (ID: ${data.id})`);
41
- consola.info(milestoneUrl(host, data.id));
42
- });
43
- });
44
-
45
- export { create as default };
@@ -1,49 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../index.mjs';
7
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import { k as issueTypeUrl } from '../shared/bee.CzKcWSES.mjs';
11
- import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'commander';
17
- import 'open';
18
- import 'node:module';
19
- import 'consola/utils';
20
- import '../shared/bee.CktwmH8R.mjs';
21
- import '../shared/bee.CAARNIp6.mjs';
22
-
23
- const create = new BeeCommand("create").summary("Create an issue type").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Issue type name").requiredOption(
24
- "--color <value>",
25
- "Display color {#e30000|#990000|#934981|#814fbc|#2779ca|#007e9a|#7ea800|#ff9200|#ff3265|#666665}"
26
- ).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
27
- {
28
- description: "Create an issue type",
29
- command: 'bee issue-type create -p PROJECT -n "Enhancement" --color "#2779ca"'
30
- },
31
- {
32
- description: "Create interactively",
33
- command: 'bee issue-type create -p PROJECT --color "#2779ca"'
34
- }
35
- ]).action(async (opts, cmd) => {
36
- await resolveOptions(cmd);
37
- const { client, host } = await getClient(opts.space);
38
- const name = await promptRequired("Issue type name:", opts.name);
39
- const issueType = await client.postIssueType(opts.project, {
40
- name,
41
- color: opts.color
42
- });
43
- outputResult(issueType, opts, (data) => {
44
- consola.success(`Created issue type ${data.name} (ID: ${data.id})`);
45
- consola.info(issueTypeUrl(host, data.id, data.projectId));
46
- });
47
- });
48
-
49
- export { create as default };
@@ -1,49 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../index.mjs';
7
- import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import { s as statusUrl } from '../shared/bee.CzKcWSES.mjs';
11
- import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
13
- import 'node:fs';
14
- import 'node:path';
15
- import 'node:os';
16
- import 'commander';
17
- import 'open';
18
- import 'node:module';
19
- import 'consola/utils';
20
- import '../shared/bee.CktwmH8R.mjs';
21
- import '../shared/bee.CAARNIp6.mjs';
22
-
23
- const create = new BeeCommand("create").summary("Create a status").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Status name").requiredOption(
24
- "--color <value>",
25
- "Display color {#ea2c00|#e87758|#e07b9a|#868cb7|#3b9dbd|#4caf93|#b0be3c|#eda62a|#f42858|#393939}"
26
- ).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
27
- {
28
- description: "Create a status",
29
- command: 'bee status create -p PROJECT -n "In Review" --color "#3b9dbd"'
30
- },
31
- {
32
- description: "Create interactively",
33
- command: 'bee status create -p PROJECT --color "#3b9dbd"'
34
- }
35
- ]).action(async (opts, cmd) => {
36
- await resolveOptions(cmd);
37
- const { client, host } = await getClient(opts.space);
38
- const name = await promptRequired("Status name:", opts.name);
39
- const status = await client.postProjectStatus(opts.project, {
40
- name,
41
- color: opts.color
42
- });
43
- outputResult(status, opts, (data) => {
44
- consola.success(`Created status ${data.name} (ID: ${data.id})`);
45
- consola.info(statusUrl(host, opts.project, data.id));
46
- });
47
- });
48
-
49
- export { create as default };