@bbearai/core 0.9.4 → 0.9.5
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/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +8 -4
- package/dist/index.mjs +8 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1389,8 +1389,9 @@ declare class BugBearClient {
|
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Get issue counts for the tester (Open, Done, Reopened)
|
|
1391
1391
|
* Used by the widget HomeScreen cards
|
|
1392
|
+
* @param mineOnly - If true (default), only counts the tester's own reports. If false, counts all project reports.
|
|
1392
1393
|
*/
|
|
1393
|
-
getIssueCounts(): Promise<{
|
|
1394
|
+
getIssueCounts(mineOnly?: boolean): Promise<{
|
|
1394
1395
|
open: number;
|
|
1395
1396
|
done: number;
|
|
1396
1397
|
reopened: number;
|
|
@@ -1399,8 +1400,9 @@ declare class BugBearClient {
|
|
|
1399
1400
|
* Get issues for the tester by category.
|
|
1400
1401
|
* Returns enriched data: done issues include verification proof,
|
|
1401
1402
|
* reopened issues include original bug context.
|
|
1403
|
+
* @param mineOnly - If true (default), only returns the tester's own reports. If false, returns all project reports.
|
|
1402
1404
|
*/
|
|
1403
|
-
getIssues(category: 'open' | 'done' | 'reopened'): Promise<TesterIssue[]>;
|
|
1405
|
+
getIssues(category: 'open' | 'done' | 'reopened', mineOnly?: boolean): Promise<TesterIssue[]>;
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Reopen a done issue that the tester believes isn't actually fixed.
|
|
1406
1408
|
* Transitions the report from a done status back to 'confirmed'.
|
package/dist/index.d.ts
CHANGED
|
@@ -1389,8 +1389,9 @@ declare class BugBearClient {
|
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Get issue counts for the tester (Open, Done, Reopened)
|
|
1391
1391
|
* Used by the widget HomeScreen cards
|
|
1392
|
+
* @param mineOnly - If true (default), only counts the tester's own reports. If false, counts all project reports.
|
|
1392
1393
|
*/
|
|
1393
|
-
getIssueCounts(): Promise<{
|
|
1394
|
+
getIssueCounts(mineOnly?: boolean): Promise<{
|
|
1394
1395
|
open: number;
|
|
1395
1396
|
done: number;
|
|
1396
1397
|
reopened: number;
|
|
@@ -1399,8 +1400,9 @@ declare class BugBearClient {
|
|
|
1399
1400
|
* Get issues for the tester by category.
|
|
1400
1401
|
* Returns enriched data: done issues include verification proof,
|
|
1401
1402
|
* reopened issues include original bug context.
|
|
1403
|
+
* @param mineOnly - If true (default), only returns the tester's own reports. If false, returns all project reports.
|
|
1402
1404
|
*/
|
|
1403
|
-
getIssues(category: 'open' | 'done' | 'reopened'): Promise<TesterIssue[]>;
|
|
1405
|
+
getIssues(category: 'open' | 'done' | 'reopened', mineOnly?: boolean): Promise<TesterIssue[]>;
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Reopen a done issue that the tester believes isn't actually fixed.
|
|
1406
1408
|
* Transitions the report from a done status back to 'confirmed'.
|
package/dist/index.js
CHANGED
|
@@ -2037,14 +2037,16 @@ var BugBearClient = class {
|
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Get issue counts for the tester (Open, Done, Reopened)
|
|
2039
2039
|
* Used by the widget HomeScreen cards
|
|
2040
|
+
* @param mineOnly - If true (default), only counts the tester's own reports. If false, counts all project reports.
|
|
2040
2041
|
*/
|
|
2041
|
-
async getIssueCounts() {
|
|
2042
|
+
async getIssueCounts(mineOnly = true) {
|
|
2042
2043
|
try {
|
|
2043
2044
|
const testerInfo = await this.getTesterInfo();
|
|
2044
2045
|
if (!testerInfo) return { open: 0, done: 0, reopened: 0 };
|
|
2045
2046
|
const { data, error } = await this.supabase.rpc("get_tester_issue_counts", {
|
|
2046
2047
|
p_project_id: this.config.projectId,
|
|
2047
|
-
p_tester_id: testerInfo.id
|
|
2048
|
+
p_tester_id: testerInfo.id,
|
|
2049
|
+
p_mine_only: mineOnly
|
|
2048
2050
|
});
|
|
2049
2051
|
if (error) {
|
|
2050
2052
|
console.error("BugBear: Failed to fetch issue counts", formatPgError(error));
|
|
@@ -2064,15 +2066,17 @@ var BugBearClient = class {
|
|
|
2064
2066
|
* Get issues for the tester by category.
|
|
2065
2067
|
* Returns enriched data: done issues include verification proof,
|
|
2066
2068
|
* reopened issues include original bug context.
|
|
2069
|
+
* @param mineOnly - If true (default), only returns the tester's own reports. If false, returns all project reports.
|
|
2067
2070
|
*/
|
|
2068
|
-
async getIssues(category) {
|
|
2071
|
+
async getIssues(category, mineOnly = true) {
|
|
2069
2072
|
try {
|
|
2070
2073
|
const testerInfo = await this.getTesterInfo();
|
|
2071
2074
|
if (!testerInfo) return [];
|
|
2072
2075
|
const { data, error } = await this.supabase.rpc("get_tester_issues", {
|
|
2073
2076
|
p_project_id: this.config.projectId,
|
|
2074
2077
|
p_tester_id: testerInfo.id,
|
|
2075
|
-
p_category: category
|
|
2078
|
+
p_category: category,
|
|
2079
|
+
p_mine_only: mineOnly
|
|
2076
2080
|
});
|
|
2077
2081
|
if (error) {
|
|
2078
2082
|
console.error("BugBear: Failed to fetch issues", formatPgError(error));
|
package/dist/index.mjs
CHANGED
|
@@ -1991,14 +1991,16 @@ var BugBearClient = class {
|
|
|
1991
1991
|
/**
|
|
1992
1992
|
* Get issue counts for the tester (Open, Done, Reopened)
|
|
1993
1993
|
* Used by the widget HomeScreen cards
|
|
1994
|
+
* @param mineOnly - If true (default), only counts the tester's own reports. If false, counts all project reports.
|
|
1994
1995
|
*/
|
|
1995
|
-
async getIssueCounts() {
|
|
1996
|
+
async getIssueCounts(mineOnly = true) {
|
|
1996
1997
|
try {
|
|
1997
1998
|
const testerInfo = await this.getTesterInfo();
|
|
1998
1999
|
if (!testerInfo) return { open: 0, done: 0, reopened: 0 };
|
|
1999
2000
|
const { data, error } = await this.supabase.rpc("get_tester_issue_counts", {
|
|
2000
2001
|
p_project_id: this.config.projectId,
|
|
2001
|
-
p_tester_id: testerInfo.id
|
|
2002
|
+
p_tester_id: testerInfo.id,
|
|
2003
|
+
p_mine_only: mineOnly
|
|
2002
2004
|
});
|
|
2003
2005
|
if (error) {
|
|
2004
2006
|
console.error("BugBear: Failed to fetch issue counts", formatPgError(error));
|
|
@@ -2018,15 +2020,17 @@ var BugBearClient = class {
|
|
|
2018
2020
|
* Get issues for the tester by category.
|
|
2019
2021
|
* Returns enriched data: done issues include verification proof,
|
|
2020
2022
|
* reopened issues include original bug context.
|
|
2023
|
+
* @param mineOnly - If true (default), only returns the tester's own reports. If false, returns all project reports.
|
|
2021
2024
|
*/
|
|
2022
|
-
async getIssues(category) {
|
|
2025
|
+
async getIssues(category, mineOnly = true) {
|
|
2023
2026
|
try {
|
|
2024
2027
|
const testerInfo = await this.getTesterInfo();
|
|
2025
2028
|
if (!testerInfo) return [];
|
|
2026
2029
|
const { data, error } = await this.supabase.rpc("get_tester_issues", {
|
|
2027
2030
|
p_project_id: this.config.projectId,
|
|
2028
2031
|
p_tester_id: testerInfo.id,
|
|
2029
|
-
p_category: category
|
|
2032
|
+
p_category: category,
|
|
2033
|
+
p_mine_only: mineOnly
|
|
2030
2034
|
});
|
|
2031
2035
|
if (error) {
|
|
2032
2036
|
console.error("BugBear: Failed to fetch issues", formatPgError(error));
|