mastra 1.12.3-alpha.2 → 1.13.0-alpha.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/analytics/index.d.ts +4 -1
  3. package/dist/analytics/index.d.ts.map +1 -1
  4. package/dist/analytics/index.js +1 -1
  5. package/dist/{chunk-4LIWEXTL.js → chunk-ETYJ6TCR.js} +5 -5
  6. package/dist/{chunk-4LIWEXTL.js.map → chunk-ETYJ6TCR.js.map} +1 -1
  7. package/dist/{chunk-W6CPGIEC.js → chunk-NGAJT6UU.js} +45 -35
  8. package/dist/chunk-NGAJT6UU.js.map +1 -0
  9. package/dist/commands/create/create.js +2 -2
  10. package/dist/commands/dev/dev.d.ts.map +1 -1
  11. package/dist/commands/start/start.d.ts.map +1 -1
  12. package/dist/docs/SKILL.md +1 -1
  13. package/dist/docs/assets/SOURCE_MAP.json +4 -4
  14. package/dist/docs/references/reference-cli-mastra.md +3 -1
  15. package/dist/index.js +24 -18
  16. package/dist/index.js.map +1 -1
  17. package/dist/studio/assets/CommitMono-400-Regular-DzkyLZ26.woff2 +0 -0
  18. package/dist/studio/assets/CommitMono-700-Regular-DmOSN4kd.woff2 +0 -0
  19. package/dist/studio/assets/MonaSans-VariableFont_wdth-wght-CX-7s9jm.ttf +0 -0
  20. package/dist/studio/assets/{core-6wS-0QHJ.js → core-BzYMe5yj.js} +1 -1
  21. package/dist/studio/assets/index-xUhJgtXe.js +2 -0
  22. package/dist/studio/assets/{main-u3Mm9Iww.js → main-sC9rndCz.js} +228 -236
  23. package/dist/studio/assets/python-DhUJRlN_.js +1 -0
  24. package/dist/studio/assets/style-BfrtpaHt.css +1 -0
  25. package/dist/studio/index.html +2 -2
  26. package/dist/studio/routes-manifest.json +1 -0
  27. package/package.json +6 -6
  28. package/dist/chunk-W6CPGIEC.js.map +0 -1
  29. package/dist/studio/assets/GeistMonoVF-BHyMa335.woff +0 -0
  30. package/dist/studio/assets/InterVariable-H_M6nIbt.ttf +0 -0
  31. package/dist/studio/assets/TASAExplorerVF-FO8P5krV.woff2 +0 -0
  32. package/dist/studio/assets/index-Csek62So.js +0 -2
  33. package/dist/studio/assets/style-BuDAcwVe.css +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # mastra
2
2
 
3
+ ## 1.13.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed analytics user tracking to use a private persistent ID instead of the device hostname, so unique user counts are not merged across machines with common names. ([#17695](https://github.com/mastra-ai/mastra/pull/17695))
8
+
9
+ - dependencies updates: ([#17841](https://github.com/mastra-ai/mastra/pull/17841))
10
+ - Updated dependency [`tinyglobby@^0.2.17` ↗︎](https://www.npmjs.com/package/tinyglobby/v/0.2.17) (from `^0.2.16`, in `dependencies`)
11
+
12
+ - Updated Mastra Studio font bundle. Studio now uses Inter for both display and body text, shipped as a 352KB variable `.woff2` (down from the 862KB Inter TTF). Code now uses Commit Mono (regular + bold `.woff2`) instead of Geist Mono. The legacy TasaExplorer display font has been removed. All bundled fonts are SIL OFL licensed. All faces use `font-display: swap`. Net Studio font payload: ~948KB → ~489KB. ([#16265](https://github.com/mastra-ai/mastra/pull/16265))
13
+
14
+ - The mastra dev and mastra start commands now pass the anonymous analytics ID and command name to the server so aggregated model token usage telemetry can be attributed to the same anonymous install. Opt out by setting MASTRA_TELEMETRY_DISABLED=1. ([#17750](https://github.com/mastra-ai/mastra/pull/17750))
15
+
16
+ - Updated dependencies [[`a5662c4`](https://github.com/mastra-ai/mastra/commit/a5662c466f56652f16a467d16e566c9c0aa0ee7f), [`575f815`](https://github.com/mastra-ai/mastra/commit/575f815c5c3567b71c0b83cbb7fa98c8253a9d9c), [`8377e5a`](https://github.com/mastra-ai/mastra/commit/8377e5a6c2f232977b25a4e64dda99df9070ca6b), [`306909a`](https://github.com/mastra-ai/mastra/commit/306909a693de77d709b38706e2673c9547d24a28), [`5191af8`](https://github.com/mastra-ai/mastra/commit/5191af80c799eea25357c545fc05d91b3883531d), [`43bd3d4`](https://github.com/mastra-ai/mastra/commit/43bd3d421987463fdf35386a45199c49499ed069), [`e6fa79e`](https://github.com/mastra-ai/mastra/commit/e6fa79ec72a2ddffdd25e85270398951e9d552a4), [`904bcdf`](https://github.com/mastra-ai/mastra/commit/904bcdf7b8004aa7be823f9f70ca63580e47e470), [`7f5ee1d`](https://github.com/mastra-ai/mastra/commit/7f5ee1dca46daee8d2817f2ebe49e6335da81956), [`1e9aab5`](https://github.com/mastra-ai/mastra/commit/1e9aab50ff11e6e88fde4d7cbf512c44a9fe8d61), [`bf8eb6d`](https://github.com/mastra-ai/mastra/commit/bf8eb6d0ec213a403eb9265a594ad283c44ab3dc), [`493a328`](https://github.com/mastra-ai/mastra/commit/493a328f4346a1deeb9f1e2e44c8f2a3a4d7591b), [`029a414`](https://github.com/mastra-ai/mastra/commit/029a4141719793bd3e898a39eb5a0466a55f5f3a), [`7f5ee1d`](https://github.com/mastra-ai/mastra/commit/7f5ee1dca46daee8d2817f2ebe49e6335da81956), [`b147b29`](https://github.com/mastra-ai/mastra/commit/b147b2907f0cd1aa812efe6d6e3f58d22e66fc88), [`d371ac1`](https://github.com/mastra-ai/mastra/commit/d371ac1d9820afaaf7cfdbc380a475946a994d8f), [`cf182b7`](https://github.com/mastra-ai/mastra/commit/cf182b7fb495767946d9840ef29f19cfa906f31f), [`a049c2a`](https://github.com/mastra-ai/mastra/commit/a049c2a9dfb41d0ee2e7a28874a88cd64fd5669f), [`b147b29`](https://github.com/mastra-ai/mastra/commit/b147b2907f0cd1aa812efe6d6e3f58d22e66fc88), [`2a96528`](https://github.com/mastra-ai/mastra/commit/2a9652848dfa3c5a2426f952e9d93554c26fd90f), [`2656d9c`](https://github.com/mastra-ai/mastra/commit/2656d9c2976d4f3354253bfbbbf9b88a1b2bbf34), [`63e3fe1`](https://github.com/mastra-ai/mastra/commit/63e3fe13cc1ea96f91d7c68aea92f400faf9e4da), [`1d4ce8d`](https://github.com/mastra-ai/mastra/commit/1d4ce8daaa54511f325c1b609d31b8e54009d677), [`8c68372`](https://github.com/mastra-ai/mastra/commit/8c68372e85fe0b066ec12c58bd29ffb93e54c552)]:
17
+ - @mastra/deployer@1.42.0-alpha.4
18
+ - @mastra/core@1.42.0-alpha.4
19
+
20
+ ## 1.12.3-alpha.3
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [[`34839c1`](https://github.com/mastra-ai/mastra/commit/34839c1910b6964bf59ed0cee58844efebbb684e), [`053735a`](https://github.com/mastra-ai/mastra/commit/053735a75c2c18e23ce34d9468007efa4a45f4c4), [`34839c1`](https://github.com/mastra-ai/mastra/commit/34839c1910b6964bf59ed0cee58844efebbb684e), [`34839c1`](https://github.com/mastra-ai/mastra/commit/34839c1910b6964bf59ed0cee58844efebbb684e), [`a952852`](https://github.com/mastra-ai/mastra/commit/a952852c971a21fb646cd907c75fcf4443cdc963)]:
25
+ - @mastra/core@1.42.0-alpha.3
26
+ - @mastra/deployer@1.42.0-alpha.3
27
+
3
28
  ## 1.12.3-alpha.2
4
29
 
5
30
  ### Patch Changes
@@ -12,13 +12,16 @@ export declare class PosthogAnalytics {
12
12
  apiKey: string;
13
13
  host: string;
14
14
  });
15
+ private getOrCreateAnalyticsConfig;
15
16
  private writeCliConfig;
16
17
  private initializePostHog;
17
18
  private static isTelemetryEnabled;
18
- private getDistinctId;
19
+ private createDistinctId;
20
+ private isHostnameDerivedDistinctId;
19
21
  private getSystemProperties;
20
22
  private getDurationMs;
21
23
  private captureSessionStart;
24
+ getDistinctId(): string;
22
25
  trackEvent(eventName: string, properties?: Record<string, any>): void;
23
26
  trackCommand(options: {
24
27
  command: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/analytics/index.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,KAAK,CAAC;AAIhD,wBAAgB,YAAY,IAAI,gBAAgB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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,UAAU,CAAC;KACrB,GAAG,IAAI;IAsCF,qBAAqB,CAAC,CAAC,EAAE,EAC7B,OAAO,EACP,IAAI,EACJ,SAAS,EACT,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9B,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;KACrB,GAAG,OAAO,CAAC,CAAC,CAAC;IA+BR,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUlD"}
@@ -1,4 +1,4 @@
1
- export { PosthogAnalytics, getAnalytics, setAnalytics } from '../chunk-W6CPGIEC.js';
1
+ export { PosthogAnalytics, getAnalytics, setAnalytics } from '../chunk-NGAJT6UU.js';
2
2
  import '../chunk-4Z57PBTZ.js';
3
3
  import '../chunk-EXG3XKBK.js';
4
4
  import '../chunk-L2SGSIJI.js';
@@ -1,4 +1,4 @@
1
- import { createMastraDir, writeIndexFile, createComponentsDir, writeAPIKey, writeCodeSample, DepsService, getAPIKey, installMastraDocsMCPServer, writeAgentsMarkdown, writeClaudeMarkdown, gitInit, readPackageName, writeObservabilityEnv, getAnalytics, getPackageManager, LLM_PROVIDERS, resolveCurrentOrg, isGitInitialized, interactivePrompt, getPackageManagerAddCommand, getModelIdentifier } from './chunk-W6CPGIEC.js';
1
+ import { createMastraDir, writeIndexFile, createComponentsDir, writeAPIKey, writeCodeSample, DepsService, getAPIKey, installMastraDocsMCPServer, writeAgentsMarkdown, writeClaudeMarkdown, gitInit, readPackageName, writeObservabilityEnv, getAnalytics, getPackageManager, LLM_PROVIDERS, resolveCurrentOrg, isGitInitialized, interactivePrompt, getPackageManagerAddCommand, getModelIdentifier } from './chunk-NGAJT6UU.js';
2
2
  import { getToken } from './chunk-EXG3XKBK.js';
3
3
  import { MASTRA_PLATFORM_API_URL, platformFetch, authHeaders } from './chunk-L2SGSIJI.js';
4
4
  import fsSync from 'fs';
@@ -16,7 +16,7 @@ import { execa } from 'execa';
16
16
  // package.json
17
17
  var package_default = {
18
18
  name: "mastra",
19
- version: "1.12.3-alpha.2",
19
+ version: "1.13.0-alpha.4",
20
20
  license: "Apache-2.0",
21
21
  description: "cli for mastra",
22
22
  type: "module",
@@ -88,7 +88,7 @@ var package_default = {
88
88
  "serve-handler": "^6.1.7",
89
89
  "shell-quote": "^1.8.3",
90
90
  "strip-json-comments": "^5.0.3",
91
- tinyglobby: "^0.2.16",
91
+ tinyglobby: "^0.2.17",
92
92
  "yocto-spinner": "^1.1.0"
93
93
  },
94
94
  devDependencies: {
@@ -1253,5 +1253,5 @@ async function createFromTemplate(args) {
1253
1253
  }
1254
1254
 
1255
1255
  export { create, createLogger, init, logger, package_default };
1256
- //# sourceMappingURL=chunk-4LIWEXTL.js.map
1257
- //# sourceMappingURL=chunk-4LIWEXTL.js.map
1256
+ //# sourceMappingURL=chunk-ETYJ6TCR.js.map
1257
+ //# sourceMappingURL=chunk-ETYJ6TCR.js.map