mastra 0.10.13-alpha.0 → 0.10.13-alpha.2

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,4 +1,6 @@
1
1
  type CLI_ORIGIN = 'mastra-cloud' | 'oss';
2
+ declare function getAnalytics(): PosthogAnalytics | null;
3
+ declare function setAnalytics(instance: PosthogAnalytics): void;
2
4
  declare class PosthogAnalytics {
3
5
  private sessionId;
4
6
  private client?;
@@ -15,6 +17,7 @@ declare class PosthogAnalytics {
15
17
  private getDistinctId;
16
18
  private getSystemProperties;
17
19
  private captureSessionStart;
20
+ trackEvent(eventName: string, properties?: Record<string, any>): void;
18
21
  trackCommand(options: {
19
22
  command: string;
20
23
  args?: Record<string, unknown>;
@@ -32,4 +35,4 @@ declare class PosthogAnalytics {
32
35
  shutdown(): Promise<void>;
33
36
  }
34
37
 
35
- export { type CLI_ORIGIN, PosthogAnalytics };
38
+ export { type CLI_ORIGIN, PosthogAnalytics, getAnalytics, setAnalytics };
@@ -1 +1 @@
1
- export { PosthogAnalytics } from '../chunk-7OXWUU2Q.js';
1
+ export { PosthogAnalytics, getAnalytics, setAnalytics } from '../chunk-US7IPLZ2.js';