feedbackbasket-cli 0.3.2 → 0.3.4

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.
@@ -4,7 +4,9 @@ import { AuthManager } from '../auth/manager.js';
4
4
  import { loadConfig } from '../config/config.js';
5
5
  import { errAuth } from '../output/errors.js';
6
6
  import { brand, divider } from '../output/theme.js';
7
- function resolveProjectId(optProject) {
7
+ function resolveProjectId(optProject, all) {
8
+ if (all)
9
+ return undefined;
8
10
  if (optProject)
9
11
  return optProject;
10
12
  const config = loadConfig();
@@ -17,6 +19,7 @@ export function createBugsCommand(getWriter) {
17
19
  .command('list')
18
20
  .description('List bug reports with severity classification')
19
21
  .option('--project <id>', 'Filter by project ID')
22
+ .option('--all', 'Show bugs across all projects (ignore default project)')
20
23
  .option('--severity <level>', 'Filter by severity (high, medium, low)')
21
24
  .option('--status <status>', 'Filter by status')
22
25
  .option('--search <query>', 'Search bug content')
@@ -27,7 +30,7 @@ export function createBugsCommand(getWriter) {
27
30
  const writer = getWriter();
28
31
  const client = requireClient();
29
32
  const result = await client.getBugReports({
30
- projectId: resolveProjectId(opts.project),
33
+ projectId: resolveProjectId(opts.project, opts.all),
31
34
  status: opts.status,
32
35
  severity: opts.severity,
33
36
  search: opts.search,
@@ -57,12 +60,13 @@ export function createBugsCommand(getWriter) {
57
60
  });
58
61
  bugs
59
62
  .command('stats')
63
+ .option('--all', 'Show stats across all projects')
60
64
  .description('Show bug statistics summary')
61
65
  .option('--project <id>', 'Filter by project ID')
62
66
  .action(async (opts) => {
63
67
  const writer = getWriter();
64
68
  const client = requireClient();
65
- const stats = await client.getBugStats({ projectId: opts.project });
69
+ const stats = await client.getBugStats({ projectId: resolveProjectId(opts.project, opts.all) });
66
70
  if (!writer.isMachineOutput()) {
67
71
  renderBugStats(stats);
68
72
  }
@@ -110,7 +114,8 @@ function renderBugList(bugs) {
110
114
  const sev = severityColor[bug.severity](`[${bug.severity.toUpperCase()}]`);
111
115
  const status = brand.muted(`[${bug.status}]`);
112
116
  const content = bug.content.length > 75 ? bug.content.slice(0, 72) + '...' : bug.content;
113
- console.log(`${sev} ${status} ${brand.muted(bug.id)}`);
117
+ const proj = bug.project ? brand.primary(bug.project.name) : '';
118
+ console.log(`${sev} ${status} ${proj} ${brand.muted(bug.id)}`);
114
119
  console.log(` ${content}`);
115
120
  if (bug.aiSummary) {
116
121
  console.log(` ${brand.hint(bug.aiSummary)}`);
@@ -4,7 +4,9 @@ import { AuthManager } from '../auth/manager.js';
4
4
  import { loadConfig } from '../config/config.js';
5
5
  import { errAuth } from '../output/errors.js';
6
6
  import { brand } from '../output/theme.js';
7
- function resolveProjectId(optProject) {
7
+ function resolveProjectId(optProject, all) {
8
+ if (all)
9
+ return undefined;
8
10
  if (optProject)
9
11
  return optProject;
10
12
  const config = loadConfig();
@@ -29,6 +31,7 @@ export function createFeedbackCommand(getWriter) {
29
31
  .command('list')
30
32
  .description('List feedback with optional filters')
31
33
  .option('--project <id>', 'Filter by project ID')
34
+ .option('--all', 'Show feedback across all projects (ignore default project)')
32
35
  .option('--category <category>', 'Filter by category (BUG, FEATURE_REQUEST, IMPROVEMENT, QUESTION)')
33
36
  .option('--status <status>', 'Filter by status (OPEN, UNDER_REVIEW, PLANNED, IN_PROGRESS, COMPLETE, CLOSED)')
34
37
  .option('--sentiment <sentiment>', 'Filter by sentiment (POSITIVE, NEGATIVE, NEUTRAL)')
@@ -40,7 +43,7 @@ export function createFeedbackCommand(getWriter) {
40
43
  const writer = getWriter();
41
44
  const client = requireClient();
42
45
  const result = await client.getFeedback({
43
- projectId: resolveProjectId(opts.project),
46
+ projectId: resolveProjectId(opts.project, opts.all),
44
47
  category: opts.category,
45
48
  status: opts.status,
46
49
  sentiment: opts.sentiment,
@@ -146,7 +149,8 @@ function renderFeedbackList(items) {
146
149
  const priority = priorityLabel(item.aiPriorityScore);
147
150
  const content = item.content.length > 80 ? item.content.slice(0, 77) + '...' : item.content;
148
151
  const status = brand.muted(`[${item.status}]`);
149
- console.log(`${cat} ${priority} ${status} ${brand.muted(item.id)}`);
152
+ const proj = item.project ? brand.primary(item.project.name) : '';
153
+ console.log(`${cat} ${priority} ${status} ${proj} ${brand.muted(item.id)}`);
150
154
  console.log(` ${content}`);
151
155
  if (item.aiSummary) {
152
156
  console.log(` ${brand.hint(item.aiSummary)}`);
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.3.2";
2
- export declare const USER_AGENT = "FeedbackBasket-CLI/0.3.2";
1
+ export declare const VERSION = "0.3.4";
2
+ export declare const USER_AGENT = "FeedbackBasket-CLI/0.3.4";
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.3.2';
1
+ export const VERSION = '0.3.4';
2
2
  export const USER_AGENT = `FeedbackBasket-CLI/${VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feedbackbasket-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Command-line interface for FeedbackBasket — manage feedback from your terminal",
5
5
  "type": "module",
6
6
  "main": "dist/src/cli.js",