@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.
- package/LICENSE +21 -0
- package/dist/chunks/activities.mjs +14 -11
- package/dist/chunks/activities2.mjs +6 -4
- package/dist/chunks/activities3.mjs +6 -4
- package/dist/chunks/add-user.mjs +6 -4
- package/dist/chunks/add.mjs +6 -4
- package/dist/chunks/add2.mjs +6 -4
- package/dist/chunks/api.mjs +6 -4
- package/dist/chunks/attachments.mjs +6 -4
- package/dist/chunks/attachments2.mjs +6 -4
- package/dist/chunks/attachments3.mjs +6 -4
- package/dist/chunks/browse.mjs +9 -7
- package/dist/chunks/clone.mjs +6 -4
- package/dist/chunks/close.mjs +6 -4
- package/dist/chunks/comment.mjs +8 -6
- package/dist/chunks/comment2.mjs +6 -4
- package/dist/chunks/comments.mjs +6 -4
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/count.mjs +6 -4
- package/dist/chunks/count2.mjs +6 -4
- package/dist/chunks/count3.mjs +6 -4
- package/dist/chunks/count4.mjs +12 -9
- package/dist/chunks/count5.mjs +6 -4
- package/dist/chunks/create.mjs +6 -4
- package/dist/chunks/create2.mjs +6 -4
- package/dist/chunks/create3.mjs +6 -4
- package/dist/chunks/create4.mjs +6 -4
- package/dist/chunks/create5.mjs +6 -4
- package/dist/chunks/create6.mjs +6 -4
- package/dist/chunks/create7.mjs +6 -4
- package/dist/chunks/create8.mjs +6 -4
- package/dist/chunks/create9.mjs +6 -4
- package/dist/chunks/dashboard.mjs +6 -4
- package/dist/chunks/delete.mjs +13 -10
- package/dist/chunks/delete2.mjs +7 -5
- package/dist/chunks/delete3.mjs +7 -5
- package/dist/chunks/delete4.mjs +7 -5
- package/dist/chunks/delete5.mjs +7 -5
- package/dist/chunks/delete6.mjs +7 -5
- package/dist/chunks/delete7.mjs +7 -5
- package/dist/chunks/delete8.mjs +7 -5
- package/dist/chunks/delete9.mjs +7 -5
- package/dist/chunks/edit.mjs +13 -10
- package/dist/chunks/edit2.mjs +6 -4
- package/dist/chunks/edit3.mjs +6 -4
- package/dist/chunks/edit4.mjs +6 -4
- package/dist/chunks/edit5.mjs +6 -4
- package/dist/chunks/edit6.mjs +6 -4
- package/dist/chunks/edit7.mjs +6 -4
- package/dist/chunks/edit8.mjs +6 -4
- package/dist/chunks/history.mjs +6 -4
- package/dist/chunks/index.mjs +1 -1
- package/dist/chunks/index10.mjs +1 -1
- package/dist/chunks/index11.mjs +1 -1
- package/dist/chunks/index12.mjs +1 -1
- package/dist/chunks/index13.mjs +1 -1
- package/dist/chunks/index14.mjs +1 -1
- package/dist/chunks/index15.mjs +1 -1
- package/dist/chunks/index16.mjs +1 -1
- package/dist/chunks/index17.mjs +1 -1
- package/dist/chunks/index2.mjs +1 -1
- package/dist/chunks/index3.mjs +1 -1
- package/dist/chunks/index4.mjs +1 -1
- package/dist/chunks/index5.mjs +1 -1
- package/dist/chunks/index6.mjs +1 -1
- package/dist/chunks/index7.mjs +1 -1
- package/dist/chunks/index8.mjs +1 -1
- package/dist/chunks/index9.mjs +1 -1
- package/dist/chunks/list.mjs +6 -4
- package/dist/chunks/list10.mjs +12 -9
- package/dist/chunks/list11.mjs +12 -9
- package/dist/chunks/list12.mjs +12 -9
- package/dist/chunks/list13.mjs +12 -9
- package/dist/chunks/list14.mjs +6 -4
- package/dist/chunks/list15.mjs +6 -4
- package/dist/chunks/list2.mjs +6 -4
- package/dist/chunks/list3.mjs +6 -4
- package/dist/chunks/list4.mjs +6 -4
- package/dist/chunks/list5.mjs +6 -4
- package/dist/chunks/list6.mjs +12 -9
- package/dist/chunks/list7.mjs +6 -4
- package/dist/chunks/list8.mjs +6 -4
- package/dist/chunks/list9.mjs +13 -10
- package/dist/chunks/login.mjs +5 -3
- package/dist/chunks/logout.mjs +20 -4
- package/dist/chunks/me.mjs +6 -4
- package/dist/chunks/read-all.mjs +6 -4
- package/dist/chunks/read.mjs +6 -4
- package/dist/chunks/read2.mjs +6 -4
- package/dist/chunks/refresh.mjs +5 -3
- package/dist/chunks/remove-user.mjs +6 -4
- package/dist/chunks/remove.mjs +6 -4
- package/dist/chunks/reopen.mjs +6 -4
- package/dist/chunks/status.mjs +2 -2
- package/dist/chunks/status2.mjs +6 -4
- package/dist/chunks/status3.mjs +6 -4
- package/dist/chunks/switch.mjs +2 -2
- package/dist/chunks/tags.mjs +12 -9
- package/dist/chunks/token.mjs +3 -3
- package/dist/chunks/tree.mjs +12 -9
- package/dist/chunks/users.mjs +12 -9
- package/dist/chunks/view.mjs +15 -12
- package/dist/chunks/view2.mjs +6 -4
- package/dist/chunks/view3.mjs +6 -4
- package/dist/chunks/view4.mjs +6 -4
- package/dist/chunks/view5.mjs +6 -4
- package/dist/chunks/view6.mjs +6 -4
- package/dist/chunks/view7.mjs +6 -4
- package/dist/chunks/view8.mjs +6 -4
- package/dist/chunks/view9.mjs +6 -4
- package/dist/index.mjs +61 -4
- package/dist/shared/{bee.B4OxR0DJ.mjs → bee.Bt1TK6yh.mjs} +5 -3
- package/dist/shared/bee.BtxMsVL4.mjs +35104 -0
- package/dist/shared/{bee.riolf-_Y.mjs → bee.DxRKWv6n.mjs} +9 -2
- package/dist/shared/{bee.BCBBmkOy.mjs → bee.OJ0vqxJN.mjs} +2 -2
- package/dist/shared/{bee.CQ3kBgas.mjs → bee.bmiIlr9W.mjs} +5 -0
- package/package.json +15 -15
package/dist/chunks/list14.mjs
CHANGED
|
@@ -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.
|
|
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
|
|
14
|
-
import {
|
|
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.
|
|
18
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
19
|
+
import 'node:module';
|
|
18
20
|
import 'commander';
|
|
19
21
|
import 'consola/utils';
|
|
20
22
|
import 'node:fs';
|
package/dist/chunks/list15.mjs
CHANGED
|
@@ -4,16 +4,18 @@ import 'node:stream/consumers';
|
|
|
4
4
|
import 'valibot';
|
|
5
5
|
import '../shared/bee.BYqxm3yG.mjs';
|
|
6
6
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
13
|
-
import {
|
|
12
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
13
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
14
|
+
import { j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
14
15
|
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
15
16
|
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
-
import '../shared/bee.
|
|
17
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
18
|
+
import 'node:module';
|
|
17
19
|
import 'commander';
|
|
18
20
|
import 'consola/utils';
|
|
19
21
|
import 'node:fs';
|
package/dist/chunks/list2.mjs
CHANGED
|
@@ -2,21 +2,23 @@ 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.
|
|
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 * as v from 'valibot';
|
|
13
14
|
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
14
15
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
15
16
|
import { Option } from 'commander';
|
|
16
|
-
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.
|
|
17
|
-
import { g as assigneeList, e as collectNum, c as collect, k as keyword, o as order, f as count, h as offset, j as json, s as space } from '../shared/bee.
|
|
17
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
|
|
18
|
+
import { g as assigneeList, e as collectNum, c as collect, k as keyword, o as order, f as count, h as offset, j as json, s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
18
19
|
import '../shared/bee.CktwmH8R.mjs';
|
|
19
|
-
import '../shared/bee.
|
|
20
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
21
|
+
import 'node:module';
|
|
20
22
|
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
21
23
|
import 'consola/utils';
|
|
22
24
|
import 'node:fs';
|
package/dist/chunks/list3.mjs
CHANGED
|
@@ -7,16 +7,18 @@ import { safeParse } from 'valibot';
|
|
|
7
7
|
import { a as vFiniteNumber, p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
8
8
|
import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
|
|
9
9
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
10
|
-
import { g as getClient } from '../shared/bee.
|
|
10
|
+
import { g as getClient } from '../shared/bee.OJ0vqxJN.mjs';
|
|
11
11
|
import 'backlog-js';
|
|
12
12
|
import 'node:http';
|
|
13
13
|
import 'open';
|
|
14
14
|
import 'node:child_process';
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
15
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
16
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
|
|
17
|
+
import { p as project, k as keyword, o as order, f as count, h as offset, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
|
|
17
18
|
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
18
19
|
import '../shared/bee.CktwmH8R.mjs';
|
|
19
|
-
import '../shared/bee.
|
|
20
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
21
|
+
import 'node:module';
|
|
20
22
|
import 'commander';
|
|
21
23
|
import 'consola/utils';
|
|
22
24
|
import 'node:fs';
|
package/dist/chunks/list4.mjs
CHANGED
|
@@ -5,16 +5,18 @@ 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
7
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
8
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
14
|
-
import {
|
|
13
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
14
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
15
|
+
import { f as count, z as minId, A as maxId, o as order, 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.
|
|
18
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
19
|
+
import 'node:module';
|
|
18
20
|
import 'commander';
|
|
19
21
|
import 'consola/utils';
|
|
20
22
|
import 'node:fs';
|
package/dist/chunks/list5.mjs
CHANGED
|
@@ -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 { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
8
8
|
import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
|
|
9
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
15
|
-
import {
|
|
14
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
15
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.bmiIlr9W.mjs';
|
|
16
|
+
import { p as project, B as repo, c as collect, g as assigneeList, e as collectNum, f as count, h as offset, 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.
|
|
19
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
20
|
+
import 'node:module';
|
|
19
21
|
import 'commander';
|
|
20
22
|
import 'consola/utils';
|
|
21
23
|
import 'node:fs';
|
package/dist/chunks/list6.mjs
CHANGED
|
@@ -4,16 +4,18 @@ import 'node:stream/consumers';
|
|
|
4
4
|
import 'valibot';
|
|
5
5
|
import '../shared/bee.BYqxm3yG.mjs';
|
|
6
6
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
13
|
-
import {
|
|
12
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
13
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
|
|
14
|
+
import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
|
|
14
15
|
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
15
16
|
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
-
import '../shared/bee.
|
|
17
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
18
|
+
import 'node:module';
|
|
17
19
|
import 'commander';
|
|
18
20
|
import 'consola/utils';
|
|
19
21
|
import 'node:fs';
|
|
@@ -21,12 +23,13 @@ import 'node:path';
|
|
|
21
23
|
import 'node:os';
|
|
22
24
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
23
25
|
|
|
24
|
-
const list = new BeeCommand("list").summary("List repositories in a project").description(`Repositories are listed in the configured display order.`).
|
|
25
|
-
{ description: "List repositories in a project", command: "bee repo list PROJECT_KEY" },
|
|
26
|
-
{ description: "Output as JSON", command: "bee repo list PROJECT_KEY --json" }
|
|
27
|
-
]).action(async (
|
|
26
|
+
const list = new BeeCommand("list").summary("List repositories in a project").description(`Repositories are listed in the configured display order.`).addOption(project()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
27
|
+
{ description: "List repositories in a project", command: "bee repo list -p PROJECT_KEY" },
|
|
28
|
+
{ description: "Output as JSON", command: "bee repo list -p PROJECT_KEY --json" }
|
|
29
|
+
]).action(async (opts, cmd) => {
|
|
30
|
+
await resolveOptions(cmd);
|
|
28
31
|
const { client } = await getClient(opts.space);
|
|
29
|
-
const repos = await client.getGitRepositories(project);
|
|
32
|
+
const repos = await client.getGitRepositories(opts.project);
|
|
30
33
|
outputResult(repos, opts, (data) => {
|
|
31
34
|
if (data.length === 0) {
|
|
32
35
|
consola.info("No repositories found.");
|
package/dist/chunks/list7.mjs
CHANGED
|
@@ -4,16 +4,18 @@ 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 { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
13
|
-
import {
|
|
12
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
13
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
14
|
+
import { j as json, o as order, h as offset, f as count, s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
14
15
|
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
15
16
|
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
-
import '../shared/bee.
|
|
17
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
18
|
+
import 'node:module';
|
|
17
19
|
import 'commander';
|
|
18
20
|
import 'consola/utils';
|
|
19
21
|
import 'node:fs';
|
package/dist/chunks/list8.mjs
CHANGED
|
@@ -5,16 +5,18 @@ import 'valibot';
|
|
|
5
5
|
import '../shared/bee.BYqxm3yG.mjs';
|
|
6
6
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
7
7
|
import { R as ROLE_LABELS } from '../shared/bee.BXiuAfjJ.mjs';
|
|
8
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
14
|
-
import {
|
|
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.
|
|
18
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
19
|
+
import 'node:module';
|
|
18
20
|
import 'commander';
|
|
19
21
|
import 'consola/utils';
|
|
20
22
|
import 'node:fs';
|
package/dist/chunks/list9.mjs
CHANGED
|
@@ -4,16 +4,18 @@ import 'node:stream/consumers';
|
|
|
4
4
|
import 'valibot';
|
|
5
5
|
import '../shared/bee.BYqxm3yG.mjs';
|
|
6
6
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
13
|
-
import {
|
|
12
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
13
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.bmiIlr9W.mjs';
|
|
14
|
+
import { p as project, k as keyword, j as json, s as space, r as resolveOptions } from '../shared/bee.Bt1TK6yh.mjs';
|
|
14
15
|
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
15
16
|
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
-
import '../shared/bee.
|
|
17
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
18
|
+
import 'node:module';
|
|
17
19
|
import 'commander';
|
|
18
20
|
import 'consola/utils';
|
|
19
21
|
import 'node:fs';
|
|
@@ -21,17 +23,18 @@ import 'node:path';
|
|
|
21
23
|
import 'node:os';
|
|
22
24
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
23
25
|
|
|
24
|
-
const list = new BeeCommand("list").summary("List wiki pages").description(`Use \`--keyword\` to filter pages by name or content.`).
|
|
25
|
-
{ description: "List all wiki pages in a project", command: "bee wiki list PROJECT" },
|
|
26
|
+
const list = new BeeCommand("list").summary("List wiki pages").description(`Use \`--keyword\` to filter pages by name or content.`).addOption(project()).addOption(keyword()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
27
|
+
{ description: "List all wiki pages in a project", command: "bee wiki list -p PROJECT" },
|
|
26
28
|
{
|
|
27
29
|
description: "Search wiki pages by keyword",
|
|
28
|
-
command: 'bee wiki list PROJECT --keyword "setup"'
|
|
30
|
+
command: 'bee wiki list -p PROJECT --keyword "setup"'
|
|
29
31
|
},
|
|
30
|
-
{ description: "Output as JSON", command: "bee wiki list PROJECT --json" }
|
|
31
|
-
]).action(async (
|
|
32
|
+
{ description: "Output as JSON", command: "bee wiki list -p PROJECT --json" }
|
|
33
|
+
]).action(async (opts, cmd) => {
|
|
34
|
+
await resolveOptions(cmd);
|
|
32
35
|
const { client } = await getClient(opts.space);
|
|
33
36
|
const wikis = await client.getWikis({
|
|
34
|
-
projectIdOrKey: project,
|
|
37
|
+
projectIdOrKey: opts.project,
|
|
35
38
|
keyword: opts.keyword
|
|
36
39
|
});
|
|
37
40
|
const json = opts.json === true ? "" : opts.json;
|
package/dist/chunks/login.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import { s as space, a as promptRequired, u as updateConfig } from '../shared/bee.
|
|
2
|
+
import { s as space, a as promptRequired, u as updateConfig } from '../shared/bee.Bt1TK6yh.mjs';
|
|
3
3
|
import { r as readStdin } from '../shared/bee.C--ZWPxf.mjs';
|
|
4
4
|
import 'valibot';
|
|
5
5
|
import { U as UserError } from '../shared/bee.BYqxm3yG.mjs';
|
|
@@ -8,14 +8,16 @@ import { e as exchangeAuthorizationCode } from '../shared/bee.CktwmH8R.mjs';
|
|
|
8
8
|
import { createServer } from 'node:http';
|
|
9
9
|
import { e as openUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
10
10
|
import 'node:child_process';
|
|
11
|
-
import
|
|
12
|
-
import '
|
|
11
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
12
|
+
import { B as BeeCommand } from '../shared/bee.bmiIlr9W.mjs';
|
|
13
13
|
import 'node:fs';
|
|
14
14
|
import 'node:path';
|
|
15
15
|
import 'node:os';
|
|
16
|
+
import 'node:stream/consumers';
|
|
16
17
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
17
18
|
import 'commander';
|
|
18
19
|
import 'open';
|
|
20
|
+
import 'node:module';
|
|
19
21
|
import 'consola/utils';
|
|
20
22
|
|
|
21
23
|
const CALLBACK_TIMEOUT_MS = 3e5;
|
package/dist/chunks/logout.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import consola from 'consola';
|
|
|
2
2
|
import { U as UserError } from '../shared/bee.BYqxm3yG.mjs';
|
|
3
3
|
import 'node:stream/consumers';
|
|
4
4
|
import 'valibot';
|
|
5
|
-
import { s as space, l as loadConfig } from '../shared/bee.
|
|
6
|
-
import { r as removeSpace } from '../shared/bee.
|
|
7
|
-
import { B as BeeCommand } from '../shared/bee.
|
|
5
|
+
import { s as space, l as loadConfig } from '../shared/bee.Bt1TK6yh.mjs';
|
|
6
|
+
import { r as removeAllSpaces, a as removeSpace } from '../shared/bee.DxRKWv6n.mjs';
|
|
7
|
+
import { B as BeeCommand } from '../shared/bee.bmiIlr9W.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:path';
|
|
10
10
|
import 'node:os';
|
|
@@ -14,14 +14,30 @@ import 'consola/utils';
|
|
|
14
14
|
|
|
15
15
|
const logout = new BeeCommand("logout").summary("Remove authentication for a Backlog space").description(
|
|
16
16
|
`Removes stored credentials locally. Does not revoke API keys or OAuth tokens on the server.`
|
|
17
|
-
).addOption(space()).examples([
|
|
17
|
+
).addOption(space()).option("--all", "Log out of all spaces").examples([
|
|
18
18
|
{ description: "Select space via prompt", command: "bee auth logout" },
|
|
19
19
|
{
|
|
20
20
|
description: "Log out of a specific space",
|
|
21
21
|
command: "bee auth logout -s xxx.backlog.com"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
description: "Log out of all spaces",
|
|
25
|
+
command: "bee auth logout --all"
|
|
22
26
|
}
|
|
23
27
|
]).action(async (opts) => {
|
|
28
|
+
if (opts.all && opts.space) {
|
|
29
|
+
throw new UserError("Cannot use --all with --space.");
|
|
30
|
+
}
|
|
24
31
|
const config = loadConfig();
|
|
32
|
+
if (opts.all) {
|
|
33
|
+
if (config.spaces.length === 0) {
|
|
34
|
+
consola.info("No spaces are currently authenticated.");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
removeAllSpaces();
|
|
38
|
+
consola.success(`Logged out of ${config.spaces.length} space(s).`);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
25
41
|
let hostname = opts.space;
|
|
26
42
|
if (!hostname) {
|
|
27
43
|
if (config.spaces.length === 0) {
|
package/dist/chunks/me.mjs
CHANGED
|
@@ -6,16 +6,18 @@ import '../shared/bee.BYqxm3yG.mjs';
|
|
|
6
6
|
import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
|
|
7
7
|
import { p as printDefinitionList } from '../shared/bee.D6yQ6Pqf.mjs';
|
|
8
8
|
import { R as ROLE_LABELS } from '../shared/bee.BXiuAfjJ.mjs';
|
|
9
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
15
|
-
import {
|
|
14
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
15
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
16
|
+
import { 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.
|
|
19
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
20
|
+
import 'node:module';
|
|
19
21
|
import 'commander';
|
|
20
22
|
import 'consola/utils';
|
|
21
23
|
import 'node:fs';
|
package/dist/chunks/read-all.mjs
CHANGED
|
@@ -2,15 +2,17 @@ import consola from 'consola';
|
|
|
2
2
|
import 'node:stream/consumers';
|
|
3
3
|
import 'valibot';
|
|
4
4
|
import '../shared/bee.BYqxm3yG.mjs';
|
|
5
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
11
|
-
import {
|
|
10
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
12
|
+
import { s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
12
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
13
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
15
|
+
import 'node:module';
|
|
14
16
|
import 'commander';
|
|
15
17
|
import 'consola/utils';
|
|
16
18
|
import 'node:fs';
|
package/dist/chunks/read.mjs
CHANGED
|
@@ -2,15 +2,17 @@ import consola from 'consola';
|
|
|
2
2
|
import 'node:stream/consumers';
|
|
3
3
|
import 'valibot';
|
|
4
4
|
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
5
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
11
|
-
import {
|
|
10
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
12
|
+
import { s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
12
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
13
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
15
|
+
import 'node:module';
|
|
14
16
|
import 'commander';
|
|
15
17
|
import 'consola/utils';
|
|
16
18
|
import 'node:fs';
|
package/dist/chunks/read2.mjs
CHANGED
|
@@ -2,15 +2,17 @@ import consola from 'consola';
|
|
|
2
2
|
import 'node:stream/consumers';
|
|
3
3
|
import 'valibot';
|
|
4
4
|
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
5
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
11
|
-
import {
|
|
10
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
12
|
+
import { s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
12
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
13
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
15
|
+
import 'node:module';
|
|
14
16
|
import 'commander';
|
|
15
17
|
import 'consola/utils';
|
|
16
18
|
import 'node:fs';
|
package/dist/chunks/refresh.mjs
CHANGED
|
@@ -4,17 +4,19 @@ import 'node:stream/consumers';
|
|
|
4
4
|
import 'valibot';
|
|
5
5
|
import { Backlog } from 'backlog-js';
|
|
6
6
|
import { r as refreshAccessToken } from '../shared/bee.CktwmH8R.mjs';
|
|
7
|
-
import { s as space, l as loadConfig } from '../shared/bee.
|
|
8
|
-
import { f as findSpace, u as updateSpaceAuth } from '../shared/bee.
|
|
7
|
+
import { s as space, l as loadConfig } from '../shared/bee.Bt1TK6yh.mjs';
|
|
8
|
+
import { f as findSpace, u as updateSpaceAuth } from '../shared/bee.DxRKWv6n.mjs';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
import 'open';
|
|
11
11
|
import 'node:child_process';
|
|
12
|
-
import
|
|
12
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
13
|
+
import { B as BeeCommand } from '../shared/bee.bmiIlr9W.mjs';
|
|
13
14
|
import 'node:fs';
|
|
14
15
|
import 'node:path';
|
|
15
16
|
import 'node:os';
|
|
16
17
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
17
18
|
import 'commander';
|
|
19
|
+
import 'node:module';
|
|
18
20
|
import 'consola/utils';
|
|
19
21
|
|
|
20
22
|
const refresh = new BeeCommand("refresh").summary("Refresh OAuth token").description(
|
|
@@ -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.
|
|
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
|
|
12
|
-
import {
|
|
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.
|
|
15
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
16
|
+
import 'node:module';
|
|
15
17
|
import 'commander';
|
|
16
18
|
import 'consola/utils';
|
|
17
19
|
import 'node:fs';
|
package/dist/chunks/remove.mjs
CHANGED
|
@@ -2,15 +2,17 @@ import consola from 'consola';
|
|
|
2
2
|
import 'node:stream/consumers';
|
|
3
3
|
import 'valibot';
|
|
4
4
|
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
5
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
11
|
-
import {
|
|
10
|
+
import '../shared/bee.BtxMsVL4.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.bmiIlr9W.mjs';
|
|
12
|
+
import { s as space } from '../shared/bee.Bt1TK6yh.mjs';
|
|
12
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
13
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
15
|
+
import 'node:module';
|
|
14
16
|
import 'commander';
|
|
15
17
|
import 'consola/utils';
|
|
16
18
|
import 'node:fs';
|
package/dist/chunks/reopen.mjs
CHANGED
|
@@ -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 '../shared/bee.BYqxm3yG.mjs';
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
13
|
-
import {
|
|
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.
|
|
16
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
17
|
+
import 'node:module';
|
|
16
18
|
import 'commander';
|
|
17
19
|
import 'consola/utils';
|
|
18
20
|
import 'node:fs';
|
package/dist/chunks/status.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as space, l as loadConfig } from '../shared/bee.
|
|
1
|
+
import { s as space, l as loadConfig } from '../shared/bee.Bt1TK6yh.mjs';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import consola from 'consola';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import 'valibot';
|
|
6
6
|
import '../shared/bee.BYqxm3yG.mjs';
|
|
7
7
|
import { p as printDefinitionList } from '../shared/bee.D6yQ6Pqf.mjs';
|
|
8
|
-
import { B as BeeCommand } from '../shared/bee.
|
|
8
|
+
import { B as BeeCommand } from '../shared/bee.bmiIlr9W.mjs';
|
|
9
9
|
import 'node:fs';
|
|
10
10
|
import 'node:path';
|
|
11
11
|
import 'node:os';
|
package/dist/chunks/status2.mjs
CHANGED
|
@@ -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.
|
|
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
|
|
12
|
-
import {
|
|
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.
|
|
15
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
16
|
+
import 'node:module';
|
|
15
17
|
import 'commander';
|
|
16
18
|
import 'consola/utils';
|
|
17
19
|
import 'node:fs';
|
package/dist/chunks/status3.mjs
CHANGED
|
@@ -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 '../shared/bee.BYqxm3yG.mjs';
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
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
|
|
13
|
-
import {
|
|
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, 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.
|
|
16
|
+
import '../shared/bee.DxRKWv6n.mjs';
|
|
17
|
+
import 'node:module';
|
|
16
18
|
import 'commander';
|
|
17
19
|
import 'consola/utils';
|
|
18
20
|
import 'node:fs';
|
package/dist/chunks/switch.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import consola from 'consola';
|
|
|
2
2
|
import { U as UserError } from '../shared/bee.BYqxm3yG.mjs';
|
|
3
3
|
import 'node:stream/consumers';
|
|
4
4
|
import 'valibot';
|
|
5
|
-
import { s as space, l as loadConfig, b as writeConfig } from '../shared/bee.
|
|
6
|
-
import { B as BeeCommand } from '../shared/bee.
|
|
5
|
+
import { s as space, l as loadConfig, b as writeConfig } from '../shared/bee.Bt1TK6yh.mjs';
|
|
6
|
+
import { B as BeeCommand } from '../shared/bee.bmiIlr9W.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'node:os';
|