Skip to content

Commit

Permalink
Merge branch 'main' into mastra-1974
Browse files Browse the repository at this point in the history
  • Loading branch information
NikAiyer authored Feb 21, 2025
2 parents 9c13ff7 + 150653f commit 53a8192
Show file tree
Hide file tree
Showing 258 changed files with 7,901 additions and 1,751 deletions.
5 changes: 0 additions & 5 deletions .changeset/famous-glasses-repeat.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/fifty-moons-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'mastra': patch
'create-mastra': patch
---

Remove cli postinstall script
7 changes: 7 additions & 0 deletions .changeset/huge-regions-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@mastra/client-js': patch
'@mastra/deployer': patch
'@mastra/speech-playai': patch
---

Fix build errors by changing contracts
5 changes: 5 additions & 0 deletions .changeset/lovely-results-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mastra/core': minor
---

Add MastraVoice class
202 changes: 106 additions & 96 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@mastra/deployer-cloudflare": "0.1.1",
"@mastra/deployer-netlify": "0.1.1",
"@mastra/deployer-vercel": "0.1.1",
"@mastra/client-js": "0.1.1",
"@mastra/deployer-cloudflare": "0.1.2",
"@mastra/deployer-netlify": "0.1.2",
"@mastra/deployer-vercel": "0.1.2",
"docs": "0.1.1",
"examples-agent": "0.0.1-alpha.4",
"examples-assistant-ui": "0.0.0",
"examples-using-a-workflow": "0.0.1-alpha.2",
"examples-bird-checker": "0.0.1-alpha.2",
"examples-hierarchical-multi-agent": "0.0.1-alpha.2",
"examples-multi-agent-workflow": "0.0.1-alpha.2",
"examples-system-prompt": "0.0.1-alpha.2",
"examples-using-a-tool": "0.0.1-alpha.2",
"examples-using-a-workflow": "0.0.1",
"examples-bird-checker": "0.0.1",
"examples-hierarchical-multi-agent": "0.0.1",
"examples-multi-agent-workflow": "0.0.1",
"examples-system-prompt": "0.0.1",
"examples-using-a-tool": "0.0.1",
"examples-answer-relevancy": "0.0.0",
"examples-bias": "0.0.0",
"examples-completeness": "0.0.0",
Expand All @@ -31,99 +31,109 @@
"examples-textual-difference": "0.0.0",
"examples-tone-consistency": "0.0.0",
"examples-toxicity": "0.0.0",
"examples-adjust-chunk-delimiters": "0.0.1-alpha.3",
"examples-adjust-chunk-size": "0.0.1-alpha.3",
"examples-basic-rag": "0.0.1-alpha.3",
"examples-chunk-html": "0.0.1-alpha.3",
"examples-chunk-json": "0.0.1-alpha.3",
"examples-chunk-markdown": "0.0.1-alpha.3",
"examples-chunk-text": "0.0.1-alpha.3",
"examples-cleanup-rag": "0.0.1-alpha.3",
"examples-cot-rag": "0.0.1-alpha.3",
"examples-cot-workflow-rag": "0.0.1-alpha.3",
"examples-embed-chunk-array": "0.0.1-alpha.3",
"examples-embed-text-chunk": "0.0.1-alpha.3",
"embed-text-with-cohere": "0.0.1-alpha.3",
"examples-filter-rag": "0.0.1-alpha.3",
"examples-graph-rag": "0.0.1-alpha.3",
"examples-hybrid-vector-search": "0.0.1-alpha.3",
"examples-insert-embedding-in-pgvector": "0.0.1-alpha.3",
"examples-insert-embedding-in-pinecone": "0.0.1-alpha.4",
"examples-metadata-extraction": "0.0.1-alpha.3",
"examples-rerank": "0.0.1-alpha.3",
"examples-rerank-rag": "0.0.1-alpha.3",
"examples-retrieve-results": "0.0.1-alpha.4",
"examples-calling-agent-from-workflow": "0.0.1-alpha.2",
"examples-create-workflow": "0.0.1-alpha.2",
"examples-tool-as-workflow-step": "0.0.1-alpha.2",
"workflow-with-branching-paths": "0.0.1-alpha.2",
"workflow-with-cyclical-deps": "0.0.1-alpha.2",
"workflow-with-parallel-steps": "0.0.1-alpha.2",
"workflow-with-sequential-steps": "0.0.1-alpha.2",
"examples-bird-checker-with-express": "0.0.1-alpha.2",
"examples-bird-checker-with-nextjs": "0.0.1-alpha.2",
"examples-bird-checker-with-nextjs-and-eval": "0.0.1-alpha.2",
"examples-crypto-chatbot": "0.0.1-alpha.2",
"examples-adjust-chunk-delimiters": "0.0.1",
"examples-adjust-chunk-size": "0.0.1",
"examples-basic-rag": "0.0.1",
"examples-chunk-html": "0.0.1",
"examples-chunk-json": "0.0.1",
"examples-chunk-markdown": "0.0.1",
"examples-chunk-text": "0.0.1",
"examples-cleanup-rag": "0.0.1",
"examples-cot-rag": "0.0.1",
"examples-cot-workflow-rag": "0.0.1",
"examples-embed-chunk-array": "0.0.1",
"examples-embed-text-chunk": "0.0.1",
"embed-text-with-cohere": "0.0.1",
"examples-filter-rag": "0.0.1",
"examples-graph-rag": "0.0.1",
"examples-hybrid-vector-search": "0.0.1",
"examples-insert-embedding-in-pgvector": "0.0.1",
"examples-insert-embedding-in-pinecone": "0.0.1",
"examples-metadata-extraction": "0.0.1",
"examples-rerank": "0.0.1",
"examples-rerank-rag": "0.0.1",
"examples-retrieve-results": "0.0.1",
"examples-calling-agent-from-workflow": "0.0.1",
"examples-create-workflow": "0.0.1",
"examples-tool-as-workflow-step": "0.0.1",
"examples-workflow-with-branching-paths": "0.0.1",
"examples-workflow-with-cyclical-deps": "0.0.1",
"examples-workflow-with-parallel-steps": "0.0.1",
"examples-workflow-with-sequential-steps": "0.0.1",
"examples-bird-checker-with-express": "0.0.1",
"examples-bird-checker-with-nextjs": "0.0.1",
"examples-bird-checker-with-nextjs-and-eval": "0.0.1",
"examples-crypto-chatbot": "0.0.1",
"@mastra/dane": "0.0.2-alpha.117",
"examples-integrations": "0.0.1-alpha.3",
"memory-todo-agent": "0.1.1",
"memory-with-context": "0.0.1-alpha.2",
"memory-with-libsql": "0.0.1-alpha.2",
"memory-with-pg": "1.0.1-alpha.65",
"memory-with-upstash": "1.0.1-alpha.47",
"examples-openapi-spec-writer": "0.0.1-alpha.4",
"examples-quick-start": "0.0.1-alpha.2",
"examples-stock-price-tool": "0.0.1-alpha.2",
"examples-travel-app": "0.0.1-alpha.2",
"examples-weather-agent": "0.0.1-alpha.2",
"examples-integrations": "0.0.1",
"memory-todo-agent": "0.1.2",
"memory-with-context": "0.0.1",
"memory-with-libsql": "0.0.1",
"memory-with-pg": "1.0.1",
"memory-with-upstash": "1.0.1",
"examples-openapi-spec-writer": "0.0.1",
"examples-quick-start": "0.0.1",
"examples-stock-price-tool": "0.0.1",
"examples-travel-app": "0.0.1",
"examples-weather-agent": "0.0.1",
"examples-workflow-ai-recruiter": "0.0.1-alpha.2",
"workflow-with-inline-steps": "0.0.1-alpha.2",
"examples-workflow-with-memory": "0.0.1-alpha.2",
"examples-workflow-with-memory": "0.0.1",
"examples-workflow-with-separate-steps": "0.0.1-alpha.2",
"examples-yc-directory": "1.0.1-alpha.2",
"@mastra/composio": "0.1.1",
"@mastra/firecrawl": "1.1.1",
"@mastra/github": "1.1.1",
"@mastra/ragie": "1.1.1",
"@mastra/stabilityai": "1.1.1",
"@mastra/composio": "0.1.2",
"@mastra/firecrawl": "1.1.2",
"@mastra/github": "1.1.2",
"@mastra/ragie": "1.1.2",
"@mastra/stabilityai": "1.1.2",
"@internal/lint": "0.0.0",
"mastra": "0.2.1",
"mastra": "0.2.3",
"@mastra/playground": "0.0.1",
"@mastra/core": "0.2.1",
"create-mastra": "0.1.1",
"@mastra/deployer": "0.1.1",
"@mastra/evals": "0.1.1",
"@mastra/loggers": "0.1.1",
"@mastra/mcp": "0.1.1",
"@mastra/memory": "0.1.1",
"@mastra/core": "0.3.0",
"create-mastra": "0.1.3",
"@mastra/deployer": "0.1.2",
"@mastra/evals": "0.1.2",
"@mastra/loggers": "0.1.2",
"@mastra/mcp": "0.2.1",
"@mastra/memory": "0.1.2",
"@mastra/memory-integration-tests": "0.1.0",
"@mastra/rag": "0.1.1",
"@mastra/speech-azure": "0.1.1",
"@mastra/speech-deepgram": "0.1.1",
"@mastra/speech-elevenlabs": "0.1.1",
"@mastra/speech-google": "0.1.1",
"@mastra/speech-ibm": "0.1.1",
"@mastra/speech-murf": "0.1.1",
"@mastra/speech-openai": "0.1.1",
"@mastra/speech-playai": "0.1.1",
"@mastra/speech-replicate": "0.1.1",
"@mastra/speech-speechify": "0.1.1",
"@mastra/store-pg": "0.0.1",
"@mastra/store-upstash": "0.0.1",
"@mastra/astra": "0.1.1",
"@mastra/chroma": "0.1.1",
"@mastra/pg": "0.1.1",
"@mastra/pinecone": "0.1.1",
"@mastra/qdrant": "0.1.1",
"@mastra/upstash": "0.1.1",
"@mastra/vectorize": "0.1.1",
"@mastra/vector-astra": "0.1.1",
"@mastra/vector-chroma": "0.1.1",
"@mastra/vector-pg": "0.1.1",
"@mastra/vector-pinecone": "0.1.1",
"@mastra/vector-qdrant": "0.1.1",
"@mastra/vector-upstash": "0.1.1",
"@mastra/vector-vectorize": "0.1.1"
"@mastra/rag": "0.1.2",
"@mastra/speech-azure": "0.1.2",
"@mastra/speech-deepgram": "0.1.2",
"@mastra/speech-elevenlabs": "0.1.2",
"@mastra/speech-google": "0.1.2",
"@mastra/speech-ibm": "0.1.2",
"@mastra/speech-murf": "0.1.2",
"@mastra/speech-openai": "0.1.2",
"@mastra/speech-playai": "0.1.2",
"@mastra/speech-replicate": "0.1.2",
"@mastra/speech-speechify": "0.1.2",
"@mastra/store-pg": "0.0.2",
"@mastra/store-upstash": "0.0.2",
"@mastra/astra": "0.1.2",
"@mastra/chroma": "0.1.2",
"@mastra/pg": "0.1.2",
"@mastra/pinecone": "0.1.2",
"@mastra/qdrant": "0.1.2",
"@mastra/upstash": "0.1.2",
"@mastra/vectorize": "0.1.2",
"@mastra/vector-astra": "0.1.2",
"@mastra/vector-chroma": "0.1.2",
"@mastra/vector-pg": "0.1.2",
"@mastra/vector-pinecone": "0.1.2",
"@mastra/vector-qdrant": "0.1.2",
"@mastra/vector-upstash": "0.1.2",
"@mastra/vector-vectorize": "0.1.2",
"examples-agent": "0.0.1"
},
"changesets": []
"changesets": [
"fifty-moons-yawn",
"huge-regions-attend",
"lovely-results-open",
"quiet-cities-lead",
"ripe-garlics-give",
"rude-laws-jog",
"ten-badgers-relax",
"tiny-worms-turn"
]
}
6 changes: 6 additions & 0 deletions .changeset/quiet-cities-lead.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'mastra': patch
---

Allow column resizing on tracing UI
Fix UI issues in mastra dev agent chat page
5 changes: 5 additions & 0 deletions .changeset/ripe-garlics-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mastra/core': patch
---

Fixed a bug where masked tags don't work when a chunk includes other text (ex "o <start_tag" or "tag> w") in the maskStreamTags() util
5 changes: 5 additions & 0 deletions .changeset/rude-laws-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-mastra': patch
---

create-mastra version tag discovery
6 changes: 6 additions & 0 deletions .changeset/ten-badgers-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'create-mastra': patch
'mastra': patch
---

pass createVersionTag to create mastra deps
5 changes: 0 additions & 5 deletions .changeset/three-laws-stay.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/tiny-worms-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'mastra': patch
---

Fix resizer not showing when user has scrolled down the span details column
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mastra <img align="cener" alt="Project Status: Alpha" src="https://img.shields.io/badge/Status-Alpha-red"> <img align="cener" alt="Project Status: Alpha" src="https://img.shields.io/badge/Y%20Combinator-W25-orange?style=flat-square">
# Mastra <img align="cener" alt="Project Status: Beta" src="https://img.shields.io/badge/beta-status-blue"> <img align="cener" alt="Project Status: Alpha" src="https://img.shields.io/badge/Y%20Combinator-W25-orange?style=flat-square">

Mastra is an opinionated Typescript framework that helps you build AI applications and features quickly. It gives you the set of primitives you need: workflows, agents, RAG, integrations and evals. You can run Mastra on your local machine, or deploy to a serverless cloud.

Expand Down
35 changes: 35 additions & 0 deletions client-sdks/client-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# @mastra/client-js

## 0.1.2-alpha.1

### Patch Changes

- Updated dependencies [fe0fd01]
- @mastra/core@0.4.0-alpha.1

## 0.1.2-alpha.0

### Patch Changes

- 5297264: Fix build errors by changing contracts
- Updated dependencies [2fc618f]
- @mastra/core@0.4.0-alpha.0

## 0.1.1

### Patch Changes

- Updated dependencies [f205ede]
- @mastra/core@0.3.0

## 0.1.0

### Patch Changes

- b9ef5fd: Add workflow watch and resume to client sdk

## 0.1.0-alpha.18

### Patch Changes

- b9ef5fd: Add workflow watch and resume to client sdk
2 changes: 1 addition & 1 deletion client-sdks/client-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mastra/client-js",
"version": "0.1.0-alpha.17",
"version": "0.1.2-alpha.1",
"description": "The official TypeScript library for the Mastra Client API",
"author": "",
"types": "dist/index.d.mts",
Expand Down
36 changes: 30 additions & 6 deletions client-sdks/client-js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,35 @@ export class MastraClient extends BaseResource {
...(page ? { page: String(page) } : {}),
...(perPage ? { perPage: String(perPage) } : {}),
...(_attribute?.length ? { attribute: _attribute } : {}),
};

const hasQueryParams = Object.keys(queryObj).length > 0;

const queryParams = hasQueryParams ? new URLSearchParams(queryObj) : '';
return this.request(`/api/telemetry?${queryParams}`);
} as const;

const searchParams = new URLSearchParams();
if (name) {
searchParams.set('name', name);
}
if (scope) {
searchParams.set('scope', scope);
}
if (page) {
searchParams.set('page', String(page));
}
if (perPage) {
searchParams.set('perPage', String(perPage));
}
if (_attribute) {
if (Array.isArray(_attribute)) {
for (const attr of _attribute) {
searchParams.append('attribute', attr);
}
} else {
searchParams.set('attribute', _attribute);
}
}

if (searchParams.size) {
return this.request(`/api/telemetry?${searchParams}`);
} else {
return this.request(`/api/telemetry`);
}
}
}
Loading

0 comments on commit 53a8192

Please # to comment.