@bbearai/core 0.9.9 → 0.9.10

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.js CHANGED
@@ -1464,7 +1464,7 @@ var BugBearClient = class {
1464
1464
  report_source: "widget_feedback",
1465
1465
  reporter_name: testerInfo?.name || null,
1466
1466
  reporter_email: testerInfo?.email || null
1467
- });
1467
+ }).select("id").single();
1468
1468
  if (error) {
1469
1469
  console.error("BugBear: Failed to submit widget feedback", formatPgError(error));
1470
1470
  return { success: false, error: error.message || "Failed to save feedback" };
@@ -1757,8 +1757,9 @@ var BugBearClient = class {
1757
1757
  )
1758
1758
  `).eq("id", assignmentId).single();
1759
1759
  if (error || !data) return null;
1760
- const testCase = data.test_case;
1761
- const rpt = data.original_report;
1760
+ const row = data;
1761
+ const testCase = row.test_case;
1762
+ const rpt = row.original_report;
1762
1763
  const originalReport = rpt ? {
1763
1764
  id: rpt.id,
1764
1765
  title: rpt.title,
@@ -1768,7 +1769,7 @@ var BugBearClient = class {
1768
1769
  resolutionNotes: rpt.resolution_notes || void 0,
1769
1770
  route: rpt.app_context?.currentRoute || void 0
1770
1771
  } : void 0;
1771
- if (!testCase && !data.is_verification) {
1772
+ if (!testCase && !row.is_verification) {
1772
1773
  console.error("BugBear: Assignment returned without test_case");
1773
1774
  return null;
1774
1775
  }
@@ -1778,8 +1779,8 @@ var BugBearClient = class {
1778
1779
  status: data.status,
1779
1780
  startedAt: data.started_at,
1780
1781
  durationSeconds: data.duration_seconds,
1781
- isVerification: data.is_verification || false,
1782
- originalReportId: data.original_report_id,
1782
+ isVerification: row.is_verification || false,
1783
+ originalReportId: row.original_report_id ?? void 0,
1783
1784
  originalReport,
1784
1785
  testCase: testCase ? {
1785
1786
  id: testCase.id,
@@ -1800,8 +1801,8 @@ var BugBearClient = class {
1800
1801
  description: track.description
1801
1802
  } : void 0
1802
1803
  } : {
1803
- id: data.original_report_id || data.id,
1804
- title: rpt?.title || (data.notes?.replace(/^Verification:\s*/i, "") || "Bug Verification"),
1804
+ id: row.original_report_id || data.id,
1805
+ title: rpt?.title || (row.notes?.replace(/^Verification:\s*/i, "") || "Bug Verification"),
1805
1806
  testKey: "VERIFY",
1806
1807
  description: rpt?.description || "Verify that the reported bug has been fixed",
1807
1808
  steps: [],
@@ -2251,6 +2252,7 @@ var BugBearClient = class {
2251
2252
  originalBugId: row.original_bug_id || void 0,
2252
2253
  originalBugTitle: row.original_bug_title || void 0,
2253
2254
  resolutionNotes: row.resolution_notes || void 0,
2255
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Supabase JSON column
2254
2256
  fixCommitSha: row.code_context?.fix?.commit_sha || void 0,
2255
2257
  fixCommitMessage: row.code_context?.fix?.commit_message || void 0,
2256
2258
  fixFilesChanged: row.code_context?.fix?.files_changed || void 0
package/dist/index.mjs CHANGED
@@ -1418,7 +1418,7 @@ var BugBearClient = class {
1418
1418
  report_source: "widget_feedback",
1419
1419
  reporter_name: testerInfo?.name || null,
1420
1420
  reporter_email: testerInfo?.email || null
1421
- });
1421
+ }).select("id").single();
1422
1422
  if (error) {
1423
1423
  console.error("BugBear: Failed to submit widget feedback", formatPgError(error));
1424
1424
  return { success: false, error: error.message || "Failed to save feedback" };
@@ -1711,8 +1711,9 @@ var BugBearClient = class {
1711
1711
  )
1712
1712
  `).eq("id", assignmentId).single();
1713
1713
  if (error || !data) return null;
1714
- const testCase = data.test_case;
1715
- const rpt = data.original_report;
1714
+ const row = data;
1715
+ const testCase = row.test_case;
1716
+ const rpt = row.original_report;
1716
1717
  const originalReport = rpt ? {
1717
1718
  id: rpt.id,
1718
1719
  title: rpt.title,
@@ -1722,7 +1723,7 @@ var BugBearClient = class {
1722
1723
  resolutionNotes: rpt.resolution_notes || void 0,
1723
1724
  route: rpt.app_context?.currentRoute || void 0
1724
1725
  } : void 0;
1725
- if (!testCase && !data.is_verification) {
1726
+ if (!testCase && !row.is_verification) {
1726
1727
  console.error("BugBear: Assignment returned without test_case");
1727
1728
  return null;
1728
1729
  }
@@ -1732,8 +1733,8 @@ var BugBearClient = class {
1732
1733
  status: data.status,
1733
1734
  startedAt: data.started_at,
1734
1735
  durationSeconds: data.duration_seconds,
1735
- isVerification: data.is_verification || false,
1736
- originalReportId: data.original_report_id,
1736
+ isVerification: row.is_verification || false,
1737
+ originalReportId: row.original_report_id ?? void 0,
1737
1738
  originalReport,
1738
1739
  testCase: testCase ? {
1739
1740
  id: testCase.id,
@@ -1754,8 +1755,8 @@ var BugBearClient = class {
1754
1755
  description: track.description
1755
1756
  } : void 0
1756
1757
  } : {
1757
- id: data.original_report_id || data.id,
1758
- title: rpt?.title || (data.notes?.replace(/^Verification:\s*/i, "") || "Bug Verification"),
1758
+ id: row.original_report_id || data.id,
1759
+ title: rpt?.title || (row.notes?.replace(/^Verification:\s*/i, "") || "Bug Verification"),
1759
1760
  testKey: "VERIFY",
1760
1761
  description: rpt?.description || "Verify that the reported bug has been fixed",
1761
1762
  steps: [],
@@ -2205,6 +2206,7 @@ var BugBearClient = class {
2205
2206
  originalBugId: row.original_bug_id || void 0,
2206
2207
  originalBugTitle: row.original_bug_title || void 0,
2207
2208
  resolutionNotes: row.resolution_notes || void 0,
2209
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Supabase JSON column
2208
2210
  fixCommitSha: row.code_context?.fix?.commit_sha || void 0,
2209
2211
  fixCommitMessage: row.code_context?.fix?.commit_message || void 0,
2210
2212
  fixFilesChanged: row.code_context?.fix?.files_changed || void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbearai/core",
3
- "version": "0.9.9",
3
+ "version": "0.9.10",
4
4
  "description": "Core utilities and types for BugBear QA platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",