@mushi-mushi/core 1.40.1 → 1.41.0

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.
@@ -1 +1 @@
1
- export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-GBfop58j.cjs';
1
+ export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-FrXu2B7i.cjs';
@@ -1 +1 @@
1
- export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-GBfop58j.js';
1
+ export { U as MushiPushSubscriptionJSON, Y as MushiReporterChannelUnavailable, am as MushiReporterChannels, _ as MushiReporterNotificationPrefs, $ as MushiReporterPrefsUpdate, a1 as MushiReporterReportDetail, a2 as MushiReporterTimelineItem, a3 as MushiReporterUpdates, an as reporterChannels, ao as subscribeBrowserPush } from './types-FrXu2B7i.js';
@@ -186,4 +186,5 @@ declare function reporterToastMessage(updates: {
186
186
  /** A typo screen for the email opt-in box; the server validates the address. */
187
187
  declare function isPlausibleReporterEmail(raw: string): boolean;
188
188
 
189
- export { REPORTER_CANONICAL_STATUSES, REPORTER_CATEGORIES, REPORTER_CLOSED_REASONS, REPORTER_LOCALES, REPORTER_MIN_DESCRIPTION, REPORTER_TIMELINE_KINDS, REPORTER_TOAST_INTERVAL_MS, type ReporterCanonicalStatus, type ReporterCategory, type ReporterClosedReason, type ReporterCopy, type ReporterLocale, type ReporterStatusInput, type ReporterStatusKey, type ReporterStatusView, type ReporterTimelineEntry, type ReporterTimelineKind, type ReporterTimelineParams, type ReporterTone, fillReporterTemplate, isPlausibleReporterEmail, isReporterConversation, isReporterIdea, reporterCanSend, reporterCategoryLabel, reporterChipToReport, reporterCopy, reporterRequiredLength, reporterShouldShowToast, reporterStatus, reporterTimelineEntryText, reporterTimelineText, reporterToastMessage, resolveReporterLocale };
189
+ export { REPORTER_CANONICAL_STATUSES, REPORTER_CATEGORIES, REPORTER_CLOSED_REASONS, REPORTER_LOCALES, REPORTER_MIN_DESCRIPTION, REPORTER_TIMELINE_KINDS, REPORTER_TOAST_INTERVAL_MS, fillReporterTemplate, isPlausibleReporterEmail, isReporterConversation, isReporterIdea, reporterCanSend, reporterCategoryLabel, reporterChipToReport, reporterCopy, reporterRequiredLength, reporterShouldShowToast, reporterStatus, reporterTimelineEntryText, reporterTimelineText, reporterToastMessage, resolveReporterLocale };
190
+ export type { ReporterCanonicalStatus, ReporterCategory, ReporterClosedReason, ReporterCopy, ReporterLocale, ReporterStatusInput, ReporterStatusKey, ReporterStatusView, ReporterTimelineEntry, ReporterTimelineKind, ReporterTimelineParams, ReporterTone };
@@ -186,4 +186,5 @@ declare function reporterToastMessage(updates: {
186
186
  /** A typo screen for the email opt-in box; the server validates the address. */
187
187
  declare function isPlausibleReporterEmail(raw: string): boolean;
188
188
 
189
- export { REPORTER_CANONICAL_STATUSES, REPORTER_CATEGORIES, REPORTER_CLOSED_REASONS, REPORTER_LOCALES, REPORTER_MIN_DESCRIPTION, REPORTER_TIMELINE_KINDS, REPORTER_TOAST_INTERVAL_MS, type ReporterCanonicalStatus, type ReporterCategory, type ReporterClosedReason, type ReporterCopy, type ReporterLocale, type ReporterStatusInput, type ReporterStatusKey, type ReporterStatusView, type ReporterTimelineEntry, type ReporterTimelineKind, type ReporterTimelineParams, type ReporterTone, fillReporterTemplate, isPlausibleReporterEmail, isReporterConversation, isReporterIdea, reporterCanSend, reporterCategoryLabel, reporterChipToReport, reporterCopy, reporterRequiredLength, reporterShouldShowToast, reporterStatus, reporterTimelineEntryText, reporterTimelineText, reporterToastMessage, resolveReporterLocale };
189
+ export { REPORTER_CANONICAL_STATUSES, REPORTER_CATEGORIES, REPORTER_CLOSED_REASONS, REPORTER_LOCALES, REPORTER_MIN_DESCRIPTION, REPORTER_TIMELINE_KINDS, REPORTER_TOAST_INTERVAL_MS, fillReporterTemplate, isPlausibleReporterEmail, isReporterConversation, isReporterIdea, reporterCanSend, reporterCategoryLabel, reporterChipToReport, reporterCopy, reporterRequiredLength, reporterShouldShowToast, reporterStatus, reporterTimelineEntryText, reporterTimelineText, reporterToastMessage, resolveReporterLocale };
190
+ export type { ReporterCanonicalStatus, ReporterCategory, ReporterClosedReason, ReporterCopy, ReporterLocale, ReporterStatusInput, ReporterStatusKey, ReporterStatusView, ReporterTimelineEntry, ReporterTimelineKind, ReporterTimelineParams, ReporterTone };
@@ -823,6 +823,13 @@ interface MushiPrivacyConfig {
823
823
  redactSelectors?: string[];
824
824
  /** Let reporters remove an attached screenshot before submitting. Defaults to true. */
825
825
  allowUserRemoveScreenshot?: boolean;
826
+ /**
827
+ * Screenshots show what people typed into form fields (inputs, textareas,
828
+ * selects, contenteditable). Off by default: every typed value is replaced
829
+ * with dots of the same length. Set `true` only when your forms hold no
830
+ * personal data. Passwords and card fields stay blacked out either way.
831
+ */
832
+ unmaskInputs?: boolean;
826
833
  }
827
834
  interface MushiProactiveConfig {
828
835
  rageClick?: boolean;
@@ -1545,6 +1552,13 @@ interface MushiAssistantReply {
1545
1552
  options?: string[];
1546
1553
  /** Server-assigned thread id so the next turn continues the conversation. */
1547
1554
  threadId?: string;
1555
+ /**
1556
+ * Always true from the server: the reply was written by an AI model (EU AI
1557
+ * Act Art. 50(2)). The widget marks each reply `data-ai-generated="true"`.
1558
+ */
1559
+ ai_generated?: boolean;
1560
+ /** The model that wrote the reply, when the server reports it. */
1561
+ model?: string;
1548
1562
  }
1549
1563
  interface MushiSDKInstance {
1550
1564
  /**
@@ -2121,6 +2135,11 @@ interface MushiReporterReport {
2121
2135
  severity?: string | null;
2122
2136
  /** Reporter-safe title (the summary, or the first line of the description). */
2123
2137
  title?: string | null;
2138
+ /**
2139
+ * True when an AI wrote `title` (the classifier's summary), not the
2140
+ * reporter. Widgets mark it (EU AI Act Art. 50(2)). Absent from older servers.
2141
+ */
2142
+ title_ai_generated?: boolean;
2124
2143
  /** The type the reporter picked (`user_category`), if any. */
2125
2144
  user_category?: string | null;
2126
2145
  /** Page path the report was filed on. */
@@ -2201,4 +2220,5 @@ interface MushiTesterReputation {
2201
2220
  total_points: number;
2202
2221
  }
2203
2222
 
2204
- export { type MushiReporterPrefsUpdate as $, type MushiDiscoverInventoryConfig as A, type MushiDiscoveryEventPayload as B, type MushiEventHandler as C, type MushiEventType as D, type MushiHallOfFameEntry as E, type MushiInitConfig as F, type MushiIntegrationsConfig as G, type MushiLeaderboardEntry as H, type MushiNetworkEntry as I, type MushiNotificationsConfig as J, type MushiOnDeviceClassifier as K, type MushiOnDeviceClassifierInput as L, type MushiApiClient as M, type MushiOnDeviceClassifierResult as N, type MushiPageContext as O, type MushiPerformanceMetrics as P, type MushiPreset as Q, type MushiPrivacyConfig as R, type MushiProactiveConfig as S, type MushiProductEventPayload as T, type MushiPushSubscriptionJSON as U, type MushiReportBuilder as V, type MushiReportCategory as W, type MushiReportStatus as X, type MushiReporterChannelUnavailable as Y, type MushiReporterComment as Z, type MushiReporterNotificationPrefs as _, type MushiConfig as a, type MushiReporterReport as a0, type MushiReporterReportDetail as a1, type MushiReporterTimelineItem as a2, type MushiReporterUpdates as a3, type MushiReputationResult as a4, type MushiRewardsConfig as a5, type MushiRuntimeSdkConfig as a6, type MushiRuntimeWidgetConfig as a7, type MushiSDKInstance as a8, type MushiSdkVersionInfo as a9, type MushiSelectedElement as aa, type MushiSentryConfig as ab, type MushiSentryContext as ac, type MushiSessionEventPayload as ad, type MushiTesterReputation as ae, type MushiTierResult as af, type MushiTimelineEntry as ag, type MushiTimelineKind as ah, type MushiTracePropagationConfig as ai, type MushiUrlMatcher as aj, type MushiWidgetAnchor as ak, type MushiWidgetConfig as al, type MushiReporterChannels as am, reporterChannels as an, subscribeBrowserPush as ao, type MushiPreFilterConfig as b, type MushiReport as c, type MushiOfflineConfig as d, type MushiEnvironment as e, type MushiAnalyticsConfig as f, type MushiPropertyValue as g, type MushiBreadcrumb as h, type MushiActivityEvent as i, type MushiApiCascadeConfig as j, type MushiApiResponse as k, type MushiAssistantConfig as l, type MushiAssistantReply as m, type MushiAssistantStep as n, type MushiBannerConfig as o, type MushiBannerLink as p, type MushiBetaChangelogEntry as q, type MushiBetaModeConfig as r, type MushiCaptureConfig as s, type MushiCaptureEventInput as t, type MushiCaptureExceptionOptions as u, type MushiConsoleEntry as v, type MushiCooldownConfig as w, type MushiCrossAppReport as x, type MushiCustomCategory as y, type MushiDiagnosticsResult as z };
2223
+ export { reporterChannels as an, subscribeBrowserPush as ao };
2224
+ export type { MushiReporterPrefsUpdate as $, MushiDiscoverInventoryConfig as A, MushiDiscoveryEventPayload as B, MushiEventHandler as C, MushiEventType as D, MushiHallOfFameEntry as E, MushiInitConfig as F, MushiIntegrationsConfig as G, MushiLeaderboardEntry as H, MushiNetworkEntry as I, MushiNotificationsConfig as J, MushiOnDeviceClassifier as K, MushiOnDeviceClassifierInput as L, MushiApiClient as M, MushiOnDeviceClassifierResult as N, MushiPageContext as O, MushiPerformanceMetrics as P, MushiPreset as Q, MushiPrivacyConfig as R, MushiProactiveConfig as S, MushiProductEventPayload as T, MushiPushSubscriptionJSON as U, MushiReportBuilder as V, MushiReportCategory as W, MushiReportStatus as X, MushiReporterChannelUnavailable as Y, MushiReporterComment as Z, MushiReporterNotificationPrefs as _, MushiConfig as a, MushiReporterReport as a0, MushiReporterReportDetail as a1, MushiReporterTimelineItem as a2, MushiReporterUpdates as a3, MushiReputationResult as a4, MushiRewardsConfig as a5, MushiRuntimeSdkConfig as a6, MushiRuntimeWidgetConfig as a7, MushiSDKInstance as a8, MushiSdkVersionInfo as a9, MushiSelectedElement as aa, MushiSentryConfig as ab, MushiSentryContext as ac, MushiSessionEventPayload as ad, MushiTesterReputation as ae, MushiTierResult as af, MushiTimelineEntry as ag, MushiTimelineKind as ah, MushiTracePropagationConfig as ai, MushiUrlMatcher as aj, MushiWidgetAnchor as ak, MushiWidgetConfig as al, MushiReporterChannels as am, MushiPreFilterConfig as b, MushiReport as c, MushiOfflineConfig as d, MushiEnvironment as e, MushiAnalyticsConfig as f, MushiPropertyValue as g, MushiBreadcrumb as h, MushiActivityEvent as i, MushiApiCascadeConfig as j, MushiApiResponse as k, MushiAssistantConfig as l, MushiAssistantReply as m, MushiAssistantStep as n, MushiBannerConfig as o, MushiBannerLink as p, MushiBetaChangelogEntry as q, MushiBetaModeConfig as r, MushiCaptureConfig as s, MushiCaptureEventInput as t, MushiCaptureExceptionOptions as u, MushiConsoleEntry as v, MushiCooldownConfig as w, MushiCrossAppReport as x, MushiCustomCategory as y, MushiDiagnosticsResult as z };
@@ -823,6 +823,13 @@ interface MushiPrivacyConfig {
823
823
  redactSelectors?: string[];
824
824
  /** Let reporters remove an attached screenshot before submitting. Defaults to true. */
825
825
  allowUserRemoveScreenshot?: boolean;
826
+ /**
827
+ * Screenshots show what people typed into form fields (inputs, textareas,
828
+ * selects, contenteditable). Off by default: every typed value is replaced
829
+ * with dots of the same length. Set `true` only when your forms hold no
830
+ * personal data. Passwords and card fields stay blacked out either way.
831
+ */
832
+ unmaskInputs?: boolean;
826
833
  }
827
834
  interface MushiProactiveConfig {
828
835
  rageClick?: boolean;
@@ -1545,6 +1552,13 @@ interface MushiAssistantReply {
1545
1552
  options?: string[];
1546
1553
  /** Server-assigned thread id so the next turn continues the conversation. */
1547
1554
  threadId?: string;
1555
+ /**
1556
+ * Always true from the server: the reply was written by an AI model (EU AI
1557
+ * Act Art. 50(2)). The widget marks each reply `data-ai-generated="true"`.
1558
+ */
1559
+ ai_generated?: boolean;
1560
+ /** The model that wrote the reply, when the server reports it. */
1561
+ model?: string;
1548
1562
  }
1549
1563
  interface MushiSDKInstance {
1550
1564
  /**
@@ -2121,6 +2135,11 @@ interface MushiReporterReport {
2121
2135
  severity?: string | null;
2122
2136
  /** Reporter-safe title (the summary, or the first line of the description). */
2123
2137
  title?: string | null;
2138
+ /**
2139
+ * True when an AI wrote `title` (the classifier's summary), not the
2140
+ * reporter. Widgets mark it (EU AI Act Art. 50(2)). Absent from older servers.
2141
+ */
2142
+ title_ai_generated?: boolean;
2124
2143
  /** The type the reporter picked (`user_category`), if any. */
2125
2144
  user_category?: string | null;
2126
2145
  /** Page path the report was filed on. */
@@ -2201,4 +2220,5 @@ interface MushiTesterReputation {
2201
2220
  total_points: number;
2202
2221
  }
2203
2222
 
2204
- export { type MushiReporterPrefsUpdate as $, type MushiDiscoverInventoryConfig as A, type MushiDiscoveryEventPayload as B, type MushiEventHandler as C, type MushiEventType as D, type MushiHallOfFameEntry as E, type MushiInitConfig as F, type MushiIntegrationsConfig as G, type MushiLeaderboardEntry as H, type MushiNetworkEntry as I, type MushiNotificationsConfig as J, type MushiOnDeviceClassifier as K, type MushiOnDeviceClassifierInput as L, type MushiApiClient as M, type MushiOnDeviceClassifierResult as N, type MushiPageContext as O, type MushiPerformanceMetrics as P, type MushiPreset as Q, type MushiPrivacyConfig as R, type MushiProactiveConfig as S, type MushiProductEventPayload as T, type MushiPushSubscriptionJSON as U, type MushiReportBuilder as V, type MushiReportCategory as W, type MushiReportStatus as X, type MushiReporterChannelUnavailable as Y, type MushiReporterComment as Z, type MushiReporterNotificationPrefs as _, type MushiConfig as a, type MushiReporterReport as a0, type MushiReporterReportDetail as a1, type MushiReporterTimelineItem as a2, type MushiReporterUpdates as a3, type MushiReputationResult as a4, type MushiRewardsConfig as a5, type MushiRuntimeSdkConfig as a6, type MushiRuntimeWidgetConfig as a7, type MushiSDKInstance as a8, type MushiSdkVersionInfo as a9, type MushiSelectedElement as aa, type MushiSentryConfig as ab, type MushiSentryContext as ac, type MushiSessionEventPayload as ad, type MushiTesterReputation as ae, type MushiTierResult as af, type MushiTimelineEntry as ag, type MushiTimelineKind as ah, type MushiTracePropagationConfig as ai, type MushiUrlMatcher as aj, type MushiWidgetAnchor as ak, type MushiWidgetConfig as al, type MushiReporterChannels as am, reporterChannels as an, subscribeBrowserPush as ao, type MushiPreFilterConfig as b, type MushiReport as c, type MushiOfflineConfig as d, type MushiEnvironment as e, type MushiAnalyticsConfig as f, type MushiPropertyValue as g, type MushiBreadcrumb as h, type MushiActivityEvent as i, type MushiApiCascadeConfig as j, type MushiApiResponse as k, type MushiAssistantConfig as l, type MushiAssistantReply as m, type MushiAssistantStep as n, type MushiBannerConfig as o, type MushiBannerLink as p, type MushiBetaChangelogEntry as q, type MushiBetaModeConfig as r, type MushiCaptureConfig as s, type MushiCaptureEventInput as t, type MushiCaptureExceptionOptions as u, type MushiConsoleEntry as v, type MushiCooldownConfig as w, type MushiCrossAppReport as x, type MushiCustomCategory as y, type MushiDiagnosticsResult as z };
2223
+ export { reporterChannels as an, subscribeBrowserPush as ao };
2224
+ export type { MushiReporterPrefsUpdate as $, MushiDiscoverInventoryConfig as A, MushiDiscoveryEventPayload as B, MushiEventHandler as C, MushiEventType as D, MushiHallOfFameEntry as E, MushiInitConfig as F, MushiIntegrationsConfig as G, MushiLeaderboardEntry as H, MushiNetworkEntry as I, MushiNotificationsConfig as J, MushiOnDeviceClassifier as K, MushiOnDeviceClassifierInput as L, MushiApiClient as M, MushiOnDeviceClassifierResult as N, MushiPageContext as O, MushiPerformanceMetrics as P, MushiPreset as Q, MushiPrivacyConfig as R, MushiProactiveConfig as S, MushiProductEventPayload as T, MushiPushSubscriptionJSON as U, MushiReportBuilder as V, MushiReportCategory as W, MushiReportStatus as X, MushiReporterChannelUnavailable as Y, MushiReporterComment as Z, MushiReporterNotificationPrefs as _, MushiConfig as a, MushiReporterReport as a0, MushiReporterReportDetail as a1, MushiReporterTimelineItem as a2, MushiReporterUpdates as a3, MushiReputationResult as a4, MushiRewardsConfig as a5, MushiRuntimeSdkConfig as a6, MushiRuntimeWidgetConfig as a7, MushiSDKInstance as a8, MushiSdkVersionInfo as a9, MushiSelectedElement as aa, MushiSentryConfig as ab, MushiSentryContext as ac, MushiSessionEventPayload as ad, MushiTesterReputation as ae, MushiTierResult as af, MushiTimelineEntry as ag, MushiTimelineKind as ah, MushiTracePropagationConfig as ai, MushiUrlMatcher as aj, MushiWidgetAnchor as ak, MushiWidgetConfig as al, MushiReporterChannels as am, MushiPreFilterConfig as b, MushiReport as c, MushiOfflineConfig as d, MushiEnvironment as e, MushiAnalyticsConfig as f, MushiPropertyValue as g, MushiBreadcrumb as h, MushiActivityEvent as i, MushiApiCascadeConfig as j, MushiApiResponse as k, MushiAssistantConfig as l, MushiAssistantReply as m, MushiAssistantStep as n, MushiBannerConfig as o, MushiBannerLink as p, MushiBetaChangelogEntry as q, MushiBetaModeConfig as r, MushiCaptureConfig as s, MushiCaptureEventInput as t, MushiCaptureExceptionOptions as u, MushiConsoleEntry as v, MushiCooldownConfig as w, MushiCrossAppReport as x, MushiCustomCategory as y, MushiDiagnosticsResult as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mushi-mushi/core",
3
- "version": "1.40.1",
4
- "description": "Mushi Mushi SDK types, API client, pre-filter. One place to improve AI-built apps: fix bugs, smooth user journeys and clean up the code.",
3
+ "version": "1.41.0",
4
+ "description": "The bug button for apps built with AI. Mushi Mushi SDK types, API client and pre-filter. Open source.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -107,14 +107,14 @@
107
107
  }
108
108
  ],
109
109
  "devDependencies": {
110
- "@size-limit/file": "^12.1.0",
110
+ "@size-limit/file": "^14.3.0",
111
111
  "eslint": "^10.6.0",
112
112
  "fake-indexeddb": "^6.0.0",
113
- "jsdom": "^30.1.3",
114
- "size-limit": "^12.1.0",
115
- "tsup": "^8.5.1",
113
+ "jsdom": "^31.0.1",
114
+ "size-limit": "^14.3.0",
115
+ "tsup": "^9.0.0",
116
116
  "typescript": "^6.0.3",
117
- "vitest": "^4.1.9",
117
+ "vitest": "^5.1.1",
118
118
  "@mushi-mushi/eslint-config": "0.0.0",
119
119
  "@mushi-mushi/tsconfig": "0.0.0"
120
120
  },