@nulab/bee 1.0.0-rc.2 → 1.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chunks/activities.mjs +14 -11
  3. package/dist/chunks/activities2.mjs +6 -4
  4. package/dist/chunks/activities3.mjs +6 -4
  5. package/dist/chunks/add-user.mjs +6 -4
  6. package/dist/chunks/add.mjs +6 -4
  7. package/dist/chunks/add2.mjs +6 -4
  8. package/dist/chunks/api.mjs +6 -4
  9. package/dist/chunks/attachments.mjs +6 -4
  10. package/dist/chunks/attachments2.mjs +6 -4
  11. package/dist/chunks/attachments3.mjs +6 -4
  12. package/dist/chunks/browse.mjs +9 -7
  13. package/dist/chunks/clone.mjs +6 -4
  14. package/dist/chunks/close.mjs +6 -4
  15. package/dist/chunks/comment.mjs +8 -6
  16. package/dist/chunks/comment2.mjs +6 -4
  17. package/dist/chunks/comments.mjs +6 -4
  18. package/dist/chunks/completion.mjs +1 -1
  19. package/dist/chunks/count.mjs +6 -4
  20. package/dist/chunks/count2.mjs +6 -4
  21. package/dist/chunks/count3.mjs +6 -4
  22. package/dist/chunks/count4.mjs +12 -9
  23. package/dist/chunks/count5.mjs +6 -4
  24. package/dist/chunks/create.mjs +6 -4
  25. package/dist/chunks/create2.mjs +6 -4
  26. package/dist/chunks/create3.mjs +6 -4
  27. package/dist/chunks/create4.mjs +6 -4
  28. package/dist/chunks/create5.mjs +6 -4
  29. package/dist/chunks/create6.mjs +6 -4
  30. package/dist/chunks/create7.mjs +6 -4
  31. package/dist/chunks/create8.mjs +6 -4
  32. package/dist/chunks/create9.mjs +6 -4
  33. package/dist/chunks/dashboard.mjs +6 -4
  34. package/dist/chunks/delete.mjs +13 -10
  35. package/dist/chunks/delete2.mjs +7 -5
  36. package/dist/chunks/delete3.mjs +7 -5
  37. package/dist/chunks/delete4.mjs +7 -5
  38. package/dist/chunks/delete5.mjs +7 -5
  39. package/dist/chunks/delete6.mjs +7 -5
  40. package/dist/chunks/delete7.mjs +7 -5
  41. package/dist/chunks/delete8.mjs +7 -5
  42. package/dist/chunks/delete9.mjs +7 -5
  43. package/dist/chunks/edit.mjs +13 -10
  44. package/dist/chunks/edit2.mjs +6 -4
  45. package/dist/chunks/edit3.mjs +6 -4
  46. package/dist/chunks/edit4.mjs +6 -4
  47. package/dist/chunks/edit5.mjs +6 -4
  48. package/dist/chunks/edit6.mjs +6 -4
  49. package/dist/chunks/edit7.mjs +6 -4
  50. package/dist/chunks/edit8.mjs +6 -4
  51. package/dist/chunks/history.mjs +6 -4
  52. package/dist/chunks/index.mjs +1 -1
  53. package/dist/chunks/index10.mjs +1 -1
  54. package/dist/chunks/index11.mjs +1 -1
  55. package/dist/chunks/index12.mjs +1 -1
  56. package/dist/chunks/index13.mjs +1 -1
  57. package/dist/chunks/index14.mjs +1 -1
  58. package/dist/chunks/index15.mjs +1 -1
  59. package/dist/chunks/index16.mjs +1 -1
  60. package/dist/chunks/index17.mjs +1 -1
  61. package/dist/chunks/index2.mjs +1 -1
  62. package/dist/chunks/index3.mjs +1 -1
  63. package/dist/chunks/index4.mjs +1 -1
  64. package/dist/chunks/index5.mjs +1 -1
  65. package/dist/chunks/index6.mjs +1 -1
  66. package/dist/chunks/index7.mjs +1 -1
  67. package/dist/chunks/index8.mjs +1 -1
  68. package/dist/chunks/index9.mjs +1 -1
  69. package/dist/chunks/list.mjs +6 -4
  70. package/dist/chunks/list10.mjs +12 -9
  71. package/dist/chunks/list11.mjs +12 -9
  72. package/dist/chunks/list12.mjs +12 -9
  73. package/dist/chunks/list13.mjs +12 -9
  74. package/dist/chunks/list14.mjs +6 -4
  75. package/dist/chunks/list15.mjs +6 -4
  76. package/dist/chunks/list2.mjs +6 -4
  77. package/dist/chunks/list3.mjs +6 -4
  78. package/dist/chunks/list4.mjs +6 -4
  79. package/dist/chunks/list5.mjs +6 -4
  80. package/dist/chunks/list6.mjs +12 -9
  81. package/dist/chunks/list7.mjs +6 -4
  82. package/dist/chunks/list8.mjs +6 -4
  83. package/dist/chunks/list9.mjs +13 -10
  84. package/dist/chunks/login.mjs +5 -3
  85. package/dist/chunks/logout.mjs +20 -4
  86. package/dist/chunks/me.mjs +6 -4
  87. package/dist/chunks/read-all.mjs +6 -4
  88. package/dist/chunks/read.mjs +6 -4
  89. package/dist/chunks/read2.mjs +6 -4
  90. package/dist/chunks/refresh.mjs +5 -3
  91. package/dist/chunks/remove-user.mjs +6 -4
  92. package/dist/chunks/remove.mjs +6 -4
  93. package/dist/chunks/reopen.mjs +6 -4
  94. package/dist/chunks/status.mjs +2 -2
  95. package/dist/chunks/status2.mjs +6 -4
  96. package/dist/chunks/status3.mjs +6 -4
  97. package/dist/chunks/switch.mjs +2 -2
  98. package/dist/chunks/tags.mjs +12 -9
  99. package/dist/chunks/token.mjs +3 -3
  100. package/dist/chunks/tree.mjs +12 -9
  101. package/dist/chunks/users.mjs +12 -9
  102. package/dist/chunks/view.mjs +15 -12
  103. package/dist/chunks/view2.mjs +6 -4
  104. package/dist/chunks/view3.mjs +6 -4
  105. package/dist/chunks/view4.mjs +6 -4
  106. package/dist/chunks/view5.mjs +6 -4
  107. package/dist/chunks/view6.mjs +6 -4
  108. package/dist/chunks/view7.mjs +6 -4
  109. package/dist/chunks/view8.mjs +6 -4
  110. package/dist/chunks/view9.mjs +6 -4
  111. package/dist/index.mjs +61 -4
  112. package/dist/shared/{bee.B4OxR0DJ.mjs → bee.Bt1TK6yh.mjs} +5 -3
  113. package/dist/shared/bee.BtxMsVL4.mjs +35104 -0
  114. package/dist/shared/{bee.riolf-_Y.mjs → bee.DxRKWv6n.mjs} +9 -2
  115. package/dist/shared/{bee.BCBBmkOy.mjs → bee.OJ0vqxJN.mjs} +2 -2
  116. package/dist/shared/{bee.CQ3kBgas.mjs → bee.bmiIlr9W.mjs} +5 -0
  117. package/package.json +15 -15
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nulab Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -6,16 +6,18 @@ import * as v from 'valibot';
6
6
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
7
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
8
8
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
9
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
9
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
10
10
  import 'backlog-js';
11
11
  import 'node:http';
12
12
  import 'open';
13
13
  import 'node:child_process';
14
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
15
- import { e as collectNum, f as count, o as order, j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
14
+ import '../shared/bee.BtxMsVL4.mjs';
15
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
16
+ import { p as project, e as collectNum, f as count, o as order, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
16
17
  import '../shared/bee.Ds2l-nTJ.mjs';
17
18
  import '../shared/bee.CktwmH8R.mjs';
18
- import '../shared/bee.riolf-_Y.mjs';
19
+ import '../shared/bee.DxRKWv6n.mjs';
20
+ import 'node:module';
19
21
  import 'commander';
20
22
  import 'consola/utils';
21
23
  import 'node:fs';
@@ -43,29 +45,30 @@ const activities = new BeeCommand("activities").summary("List project activities
43
45
 
44
46
  For activity type IDs, see:
45
47
  https://developer.nulab.com/docs/backlog/api/2/get-project-recent-updates/#response-description`
46
- ).argument("<project>", "Project ID or project key").option(
48
+ ).addOption(project()).option(
47
49
  "--activity-type <id>",
48
50
  "Filter by activity type IDs (repeatable)",
49
51
  collectNum,
50
52
  []
51
53
  ).addOption(count()).addOption(order()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
52
- { description: "List recent activities", command: "bee project activities PROJECT_KEY" },
54
+ { description: "List recent activities", command: "bee project activities -p PROJECT_KEY" },
53
55
  {
54
56
  description: "Show only issue-related activities",
55
- command: "bee project activities PROJECT_KEY --activity-type 1 --activity-type 2 --activity-type 3"
57
+ command: "bee project activities -p PROJECT_KEY --activity-type 1 --activity-type 2 --activity-type 3"
56
58
  },
57
59
  {
58
60
  description: "Show last 50 activities",
59
- command: "bee project activities PROJECT_KEY --count 50"
61
+ command: "bee project activities -p PROJECT_KEY --count 50"
60
62
  },
61
63
  {
62
64
  description: "Output as JSON",
63
- command: "bee project activities PROJECT_KEY --json"
65
+ command: "bee project activities -p PROJECT_KEY --json"
64
66
  }
65
- ]).action(async (project, opts) => {
67
+ ]).action(async (opts, cmd) => {
68
+ await resolveOptions(cmd);
66
69
  const { client } = await getClient(opts.space);
67
70
  const activityTypeId = opts.activityType;
68
- const activityList = await client.getProjectActivities(project, {
71
+ const activityList = await client.getProjectActivities(opts.project, {
69
72
  activityTypeId,
70
73
  count: parseArg(v.optional(vInteger), opts.count, "--count"),
71
74
  order: opts.order
@@ -6,16 +6,18 @@ import * as v from 'valibot';
6
6
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
7
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
8
8
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
9
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
9
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
10
10
  import 'backlog-js';
11
11
  import 'node:http';
12
12
  import 'open';
13
13
  import 'node:child_process';
14
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
15
- import { e as collectNum, f as count, o as order, z as minId, A as maxId, j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
14
+ import '../shared/bee.BtxMsVL4.mjs';
15
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
16
+ import { e as collectNum, f as count, o as order, z as minId, A as maxId, j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
16
17
  import '../shared/bee.Ds2l-nTJ.mjs';
17
18
  import '../shared/bee.CktwmH8R.mjs';
18
- import '../shared/bee.riolf-_Y.mjs';
19
+ import '../shared/bee.DxRKWv6n.mjs';
20
+ import 'node:module';
19
21
  import 'commander';
20
22
  import 'consola/utils';
21
23
  import 'node:fs';
@@ -6,16 +6,18 @@ import * as v from 'valibot';
6
6
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
7
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
8
8
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
9
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
9
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
10
10
  import 'backlog-js';
11
11
  import 'node:http';
12
12
  import 'open';
13
13
  import 'node:child_process';
14
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
15
- import { e as collectNum, f as count, o as order, z as minId, A as maxId, j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
14
+ import '../shared/bee.BtxMsVL4.mjs';
15
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
16
+ import { e as collectNum, f as count, o as order, z as minId, A as maxId, j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
16
17
  import '../shared/bee.Ds2l-nTJ.mjs';
17
18
  import '../shared/bee.CktwmH8R.mjs';
18
- import '../shared/bee.riolf-_Y.mjs';
19
+ import '../shared/bee.DxRKWv6n.mjs';
20
+ import 'node:module';
19
21
  import 'commander';
20
22
  import 'consola/utils';
21
23
  import 'node:fs';
@@ -3,15 +3,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
5
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
6
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
6
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
7
7
  import 'backlog-js';
8
8
  import 'node:http';
9
9
  import 'open';
10
10
  import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
12
- import { p as project, R as RequiredOption, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { p as project, R as RequiredOption, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';
@@ -2,15 +2,17 @@ import consola from 'consola';
2
2
  import { U as UserError, p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
5
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
6
6
  import 'backlog-js';
7
7
  import 'node:http';
8
8
  import 'open';
9
9
  import 'node:child_process';
10
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
11
- import { C as issue, s as space } from '../shared/bee.B4OxR0DJ.mjs';
10
+ import '../shared/bee.BtxMsVL4.mjs';
11
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
12
+ import { C as issue, s as space } from '../shared/bee.Bt1TK6yh.mjs';
12
13
  import '../shared/bee.CktwmH8R.mjs';
13
- import '../shared/bee.riolf-_Y.mjs';
14
+ import '../shared/bee.DxRKWv6n.mjs';
15
+ import 'node:module';
14
16
  import 'commander';
15
17
  import 'consola/utils';
16
18
  import 'node:fs';
@@ -3,15 +3,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
5
  import '../shared/bee.BYqxm3yG.mjs';
6
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
6
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
7
7
  import 'backlog-js';
8
8
  import 'node:http';
9
9
  import 'open';
10
10
  import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
12
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';
@@ -3,15 +3,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
3
  import { U as UserError, a as vFiniteNumber } from '../shared/bee.BYqxm3yG.mjs';
4
4
  import 'node:stream/consumers';
5
5
  import * as v from 'valibot';
6
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
6
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
7
7
  import 'backlog-js';
8
8
  import 'node:http';
9
9
  import 'open';
10
10
  import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
12
- import { c as collect, s as space } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { c as collect, s as space } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';
@@ -5,16 +5,18 @@ import 'valibot';
5
5
  import '../shared/bee.BYqxm3yG.mjs';
6
6
  import { a as formatSize, f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
7
7
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
8
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
8
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
9
9
  import 'backlog-js';
10
10
  import 'node:http';
11
11
  import 'open';
12
12
  import 'node:child_process';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
14
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
13
+ import '../shared/bee.BtxMsVL4.mjs';
14
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
15
+ import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
15
16
  import '../shared/bee.Ds2l-nTJ.mjs';
16
17
  import '../shared/bee.CktwmH8R.mjs';
17
- import '../shared/bee.riolf-_Y.mjs';
18
+ import '../shared/bee.DxRKWv6n.mjs';
19
+ import 'node:module';
18
20
  import 'commander';
19
21
  import 'consola/utils';
20
22
  import 'node:fs';
@@ -5,16 +5,18 @@ import 'valibot';
5
5
  import '../shared/bee.BYqxm3yG.mjs';
6
6
  import { a as formatSize, f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
7
7
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
8
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
8
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
9
9
  import 'backlog-js';
10
10
  import 'node:http';
11
11
  import 'open';
12
12
  import 'node:child_process';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
14
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
13
+ import '../shared/bee.BtxMsVL4.mjs';
14
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
15
+ import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
15
16
  import '../shared/bee.Ds2l-nTJ.mjs';
16
17
  import '../shared/bee.CktwmH8R.mjs';
17
- import '../shared/bee.riolf-_Y.mjs';
18
+ import '../shared/bee.DxRKWv6n.mjs';
19
+ import 'node:module';
18
20
  import 'commander';
19
21
  import 'consola/utils';
20
22
  import 'node:fs';
@@ -5,16 +5,18 @@ import 'valibot';
5
5
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
6
6
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
7
7
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
8
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
8
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
9
9
  import 'backlog-js';
10
10
  import 'node:http';
11
11
  import 'open';
12
12
  import 'node:child_process';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
14
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
13
+ import '../shared/bee.BtxMsVL4.mjs';
14
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
15
+ import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
15
16
  import '../shared/bee.Ds2l-nTJ.mjs';
16
17
  import '../shared/bee.CktwmH8R.mjs';
17
- import '../shared/bee.riolf-_Y.mjs';
18
+ import '../shared/bee.DxRKWv6n.mjs';
19
+ import 'node:module';
18
20
  import 'commander';
19
21
  import 'consola/utils';
20
22
  import 'node:fs';
@@ -2,22 +2,24 @@ import consola from 'consola';
2
2
  import { p as parseArg, v as vInteger, U as UserError } from '../shared/bee.BYqxm3yG.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
5
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
6
6
  import 'backlog-js';
7
7
  import 'node:http';
8
8
  import { i as issueUrl, b as buildBacklogUrl, p as projectUrl, r as repositoryUrl, d as dashboardUrl, g as gitCommitUrl, a as gitTreeUrl, c as gitBlobUrl, o as openOrPrintUrl } from '../shared/bee.CzKcWSES.mjs';
9
9
  import { execFile } from 'node:child_process';
10
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
11
- import { p as project, n as noBrowser, s as space } from '../shared/bee.B4OxR0DJ.mjs';
10
+ import '../shared/bee.BtxMsVL4.mjs';
11
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
12
+ import { p as project, n as noBrowser, s as space } from '../shared/bee.Bt1TK6yh.mjs';
13
+ import 'node:fs';
14
+ import 'node:path';
15
+ import 'node:os';
12
16
  import '../shared/bee.BeQSH2t0.mjs';
13
17
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
18
+ import '../shared/bee.DxRKWv6n.mjs';
15
19
  import 'open';
20
+ import 'node:module';
16
21
  import 'commander';
17
22
  import 'consola/utils';
18
- import 'node:fs';
19
- import 'node:path';
20
- import 'node:os';
21
23
 
22
24
  const parseBacklogRemoteUrl = (url) => {
23
25
  const sshUrlMatch = url.match(
@@ -4,14 +4,16 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
4
4
  import 'node:stream/consumers';
5
5
  import 'valibot';
6
6
  import '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
7
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
8
8
  import 'backlog-js';
9
9
  import 'node:http';
10
10
  import 'open';
11
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
12
- import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';
@@ -4,15 +4,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
4
4
  import 'node:stream/consumers';
5
5
  import 'valibot';
6
6
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
7
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
8
8
  import 'backlog-js';
9
9
  import 'node:http';
10
10
  import 'open';
11
11
  import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
13
- import { t as notify, j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
12
+ import '../shared/bee.BtxMsVL4.mjs';
13
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
14
+ import { t as notify, j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
14
15
  import '../shared/bee.CktwmH8R.mjs';
15
- import '../shared/bee.riolf-_Y.mjs';
16
+ import '../shared/bee.DxRKWv6n.mjs';
17
+ import 'node:module';
16
18
  import 'commander';
17
19
  import 'consola/utils';
18
20
  import 'node:fs';
@@ -1,33 +1,35 @@
1
1
  import consola from 'consola';
2
2
  import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { t as notify, x as attachment, j as json, s as space, d as confirmOrExit } from '../shared/bee.B4OxR0DJ.mjs';
3
+ import { t as notify, x as attachment, j as json, s as space, d as confirmOrExit } from '../shared/bee.Bt1TK6yh.mjs';
4
4
  import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
5
5
  import 'valibot';
6
6
  import '../shared/bee.BYqxm3yG.mjs';
7
7
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
8
8
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
9
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
9
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
10
10
  import 'backlog-js';
11
11
  import 'node:http';
12
12
  import 'open';
13
13
  import 'node:child_process';
14
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
15
- import 'node:stream/consumers';
14
+ import '../shared/bee.BtxMsVL4.mjs';
15
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
16
16
  import 'node:fs';
17
17
  import 'node:path';
18
18
  import 'node:os';
19
+ import 'node:stream/consumers';
19
20
  import '../shared/bee.BeQSH2t0.mjs';
20
21
  import 'commander';
21
22
  import '../shared/bee.Ds2l-nTJ.mjs';
22
23
  import '../shared/bee.CktwmH8R.mjs';
23
- import '../shared/bee.riolf-_Y.mjs';
24
+ import '../shared/bee.DxRKWv6n.mjs';
25
+ import 'node:module';
24
26
  import 'consola/utils';
25
27
 
26
28
  const comment = new BeeCommand("comment").summary("Add a comment to an issue").description(
27
29
  `When input is piped, it is used as the body automatically.
28
30
 
29
31
  Use \`--list\`, \`--edit-last\`, or \`--delete-last\` for other comment operations.`
30
- ).argument("<issue>", "Issue ID or issue key").option("-b, --body <text>", "Comment body").addOption(notify()).addOption(attachment()).option("--list", "List comments on the issue").option("--edit-last", "Edit your most recent comment").option("--delete-last", "Delete your most recent comment").option("--yes", "Skip confirmation prompt for delete").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
32
+ ).argument("<issue>", "Issue ID or issue key").option("-b, --body <text>", "Comment body").addOption(notify()).addOption(attachment()).option("--list", "List comments on the issue").option("--edit-last", "Edit your most recent comment").option("--delete-last", "Delete your most recent comment").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
31
33
  {
32
34
  description: "Add a comment",
33
35
  command: 'bee issue comment PROJECT-123 -b "This is a comment"'
@@ -5,17 +5,19 @@ import 'valibot';
5
5
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
6
6
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
7
7
  import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
8
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
8
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
9
9
  import 'backlog-js';
10
10
  import 'node:http';
11
11
  import 'open';
12
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.CQ3kBgas.mjs';
14
- import { p as project, B as repo, t as notify, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
13
+ import '../shared/bee.BtxMsVL4.mjs';
14
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.bmiIlr9W.mjs';
15
+ import { p as project, B as repo, t as notify, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
15
16
  import 'node:stream/consumers';
16
17
  import '../shared/bee.Ds2l-nTJ.mjs';
17
18
  import '../shared/bee.CktwmH8R.mjs';
18
- import '../shared/bee.riolf-_Y.mjs';
19
+ import '../shared/bee.DxRKWv6n.mjs';
20
+ import 'node:module';
19
21
  import 'commander';
20
22
  import 'consola/utils';
21
23
  import 'node:fs';
@@ -4,15 +4,17 @@ import 'node:stream/consumers';
4
4
  import * as v from 'valibot';
5
5
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
6
6
  import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
7
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
7
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
8
8
  import 'backlog-js';
9
9
  import 'node:http';
10
10
  import 'open';
11
11
  import 'node:child_process';
12
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.CQ3kBgas.mjs';
13
- import { p as project, B as repo, z as minId, A as maxId, f as count, o as order, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
12
+ import '../shared/bee.BtxMsVL4.mjs';
13
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.bmiIlr9W.mjs';
14
+ import { p as project, B as repo, z as minId, A as maxId, f as count, o as order, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
14
15
  import '../shared/bee.CktwmH8R.mjs';
15
- import '../shared/bee.riolf-_Y.mjs';
16
+ import '../shared/bee.DxRKWv6n.mjs';
17
+ import 'node:module';
16
18
  import 'commander';
17
19
  import 'consola/utils';
18
20
  import 'node:fs';
@@ -2,7 +2,7 @@ import 'consola';
2
2
  import { U as UserError } from '../shared/bee.BYqxm3yG.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
- import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
5
+ import { B as BeeCommand } from '../shared/bee.bmiIlr9W.mjs';
6
6
  import 'commander';
7
7
  import 'consola/utils';
8
8
 
@@ -2,20 +2,22 @@ import consola from 'consola';
2
2
  import { P as PriorityId, a as PRIORITY_NAMES } from '../shared/bee.Btmq3TXs.mjs';
3
3
  import { r as resolveProjectIds } from '../shared/bee.PF8hrVKn.mjs';
4
4
  import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
5
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
5
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
6
6
  import 'backlog-js';
7
7
  import 'node:http';
8
8
  import 'open';
9
9
  import 'node:child_process';
10
+ import '../shared/bee.BtxMsVL4.mjs';
10
11
  import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
11
12
  import 'node:stream/consumers';
12
13
  import 'valibot';
13
14
  import '../shared/bee.BYqxm3yG.mjs';
14
15
  import { Option } from 'commander';
15
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
16
- import { g as assigneeList, e as collectNum, c as collect, k as keyword, j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
16
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
17
+ import { g as assigneeList, e as collectNum, c as collect, k as keyword, j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
17
18
  import '../shared/bee.CktwmH8R.mjs';
18
- import '../shared/bee.riolf-_Y.mjs';
19
+ import '../shared/bee.DxRKWv6n.mjs';
20
+ import 'node:module';
19
21
  import 'consola/utils';
20
22
  import 'node:fs';
21
23
  import 'node:path';
@@ -3,15 +3,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
5
  import '../shared/bee.BYqxm3yG.mjs';
6
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
6
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
7
7
  import 'backlog-js';
8
8
  import 'node:http';
9
9
  import 'open';
10
10
  import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
12
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';
@@ -5,15 +5,17 @@ import 'node:stream/consumers';
5
5
  import 'valibot';
6
6
  import '../shared/bee.BYqxm3yG.mjs';
7
7
  import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
8
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
8
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
9
9
  import 'backlog-js';
10
10
  import 'node:http';
11
11
  import 'open';
12
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.CQ3kBgas.mjs';
14
- import { p as project, B as repo, c as collect, g as assigneeList, e as collectNum, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
13
+ import '../shared/bee.BtxMsVL4.mjs';
14
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.bmiIlr9W.mjs';
15
+ import { p as project, B as repo, c as collect, g as assigneeList, e as collectNum, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
15
16
  import '../shared/bee.CktwmH8R.mjs';
16
- import '../shared/bee.riolf-_Y.mjs';
17
+ import '../shared/bee.DxRKWv6n.mjs';
18
+ import 'node:module';
17
19
  import 'commander';
18
20
  import 'consola/utils';
19
21
  import 'node:fs';
@@ -3,15 +3,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
5
  import '../shared/bee.BYqxm3yG.mjs';
6
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
6
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
7
7
  import 'backlog-js';
8
8
  import 'node:http';
9
9
  import 'open';
10
10
  import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
12
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';
@@ -19,12 +21,13 @@ import 'node:path';
19
21
  import 'node:os';
20
22
  import '../shared/bee.BeQSH2t0.mjs';
21
23
 
22
- const count = new BeeCommand("count").summary("Count wiki pages").description(`Counts all wiki pages regardless of tag or keyword.`).argument("<project>", "Project ID or project key").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
23
- { description: "Count wiki pages", command: "bee wiki count PROJECT" },
24
- { description: "Output as JSON", command: "bee wiki count PROJECT --json" }
25
- ]).action(async (project, opts) => {
24
+ 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([
25
+ { description: "Count wiki pages", command: "bee wiki count -p PROJECT" },
26
+ { description: "Output as JSON", command: "bee wiki count -p PROJECT --json" }
27
+ ]).action(async (opts, cmd) => {
28
+ await resolveOptions(cmd);
26
29
  const { client } = await getClient(opts.space);
27
- const result = await client.getWikisCount(project);
30
+ const result = await client.getWikisCount(opts.project);
28
31
  const json = opts.json === true ? "" : opts.json;
29
32
  outputResult(result, { json }, (data) => {
30
33
  consola.log(String(data.count));
@@ -3,15 +3,17 @@ import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
3
  import 'node:stream/consumers';
4
4
  import 'valibot';
5
5
  import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
6
- import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
6
+ import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
7
7
  import 'backlog-js';
8
8
  import 'node:http';
9
9
  import 'open';
10
10
  import 'node:child_process';
11
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
12
- import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
11
+ import '../shared/bee.BtxMsVL4.mjs';
12
+ import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
13
+ import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
13
14
  import '../shared/bee.CktwmH8R.mjs';
14
- import '../shared/bee.riolf-_Y.mjs';
15
+ import '../shared/bee.DxRKWv6n.mjs';
16
+ import 'node:module';
15
17
  import 'commander';
16
18
  import 'consola/utils';
17
19
  import 'node:fs';