From 94954b80208e263d43a2916194a40e5f8b56a656 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Mon, 24 Feb 2025 14:25:37 +0100 Subject: [PATCH 1/7] add support for * imports --- packages/cli/src/commands/dev/DevBundler.ts | 4 +-- packages/deployer/src/build/analyze.ts | 28 +++++++++++++-------- packages/deployer/src/index.ts | 2 +- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/packages/cli/src/commands/dev/DevBundler.ts b/packages/cli/src/commands/dev/DevBundler.ts index ef1654b997..df49efc233 100644 --- a/packages/cli/src/commands/dev/DevBundler.ts +++ b/packages/cli/src/commands/dev/DevBundler.ts @@ -1,5 +1,3 @@ -import { MastraBundler } from '@mastra/core/bundler'; -import type { getWatcher } from '@mastra/deployer'; import { FileService } from '@mastra/deployer'; import { createWatcher, getWatcherInputOptions, writeTelemetryConfig } from '@mastra/deployer/build'; import { Bundler } from '@mastra/deployer/bundler'; @@ -40,7 +38,7 @@ export class DevBundler extends Bundler { }); } - async watch(entryFile: string, outputDirectory: string): ReturnType { + async watch(entryFile: string, outputDirectory: string): ReturnType { const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); diff --git a/packages/deployer/src/build/analyze.ts b/packages/deployer/src/build/analyze.ts index 9c8f01125e..3882aaffb6 100644 --- a/packages/deployer/src/build/analyze.ts +++ b/packages/deployer/src/build/analyze.ts @@ -113,18 +113,24 @@ async function bundleExternals(depsToOptimize: Map, outputDir: const name = dep.replaceAll('/', '-'); reverseVirtualReferenceMap.set(name, dep); - // temporary fix for * import of telemetry, move ast checks??? - if (dep === '@mastra/core/telemetry' && exports.length === 1 && exports[0] === '*') { - virtualDependencies.set(dep, { - name, - virtual: `export * as telemetry from '${dep}';`, - }); - } else { - virtualDependencies.set(dep, { - name, - virtual: `export { ${exports.join(', ')} } from '${dep}';`, - }); + const virtualFile: string[] = []; + let exportStringBuilder = []; + for (const local of exports) { + if (local === '*') { + virtualFile.push(`export * from '${dep}';`); + } else { + exportStringBuilder.push(local); + } + } + + if (exportStringBuilder.length > 0) { + virtualFile.push(`export { ${exportStringBuilder.join(', ')} } from '${dep}';`); } + + virtualDependencies.set(dep, { + name, + virtual: virtualFile.join('\n'), + }); } const bundler = await rollup({ diff --git a/packages/deployer/src/index.ts b/packages/deployer/src/index.ts index d78c2b5791..72a5c2c0d9 100644 --- a/packages/deployer/src/index.ts +++ b/packages/deployer/src/index.ts @@ -1,3 +1,3 @@ export * from './deploy'; -export { getBundler, getWatcher, Deps, FileService } from './build'; +export { Deps, FileService } from './build'; export { getDeployer } from './build/deployer'; From 65306802c345cef019ff2b99e43a7643bbbd21a3 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Mon, 24 Feb 2025 14:26:22 +0100 Subject: [PATCH 2/7] update version --- .changeset/curvy-wombats-clap.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/curvy-wombats-clap.md diff --git a/.changeset/curvy-wombats-clap.md b/.changeset/curvy-wombats-clap.md new file mode 100644 index 0000000000..5e6f116d85 --- /dev/null +++ b/.changeset/curvy-wombats-clap.md @@ -0,0 +1,6 @@ +--- +'@mastra/deployer': patch +'mastra': patch +--- + +Enable \* imports in analyze bundle From aba809dbdc6ed6329151325edc940b5e64f277f3 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Fri, 21 Feb 2025 13:14:55 +0100 Subject: [PATCH 3/7] Move all licenses to MIT (#1993) Mistakes have been made, let's make sure all packages have MIT license --- .changeset/every-melons-pull.md | 48 ++++++++++++++++++++ LICENSE | 65 +++++++++------------------ client-sdks/client-js/LICENSE | 65 +++++++++------------------ client-sdks/client-js/package.json | 2 +- deployers/cloudflare/LICENSE | 21 +++++++++ deployers/cloudflare/package.json | 2 +- deployers/netlify/LICENSE | 21 +++++++++ deployers/netlify/package.json | 2 +- deployers/vercel/LICENSE | 21 +++++++++ deployers/vercel/package.json | 2 +- examples/dane/LICENSE | 21 +++++++++ examples/dane/package.json | 2 +- integrations/composio/LICENSE | 21 +++++++++ integrations/composio/package.json | 2 +- integrations/firecrawl/LICENSE | 21 +++++++++ integrations/firecrawl/package.json | 2 +- integrations/github/LICENSE | 21 +++++++++ integrations/github/package.json | 2 +- integrations/ragie/LICENSE | 21 +++++++++ integrations/ragie/package.json | 2 +- integrations/stabilityai/LICENSE | 21 +++++++++ integrations/stabilityai/package.json | 2 +- package.json | 6 ++- packages/cli/LICENSE | 21 +++++++++ packages/core/LICENSE | 2 +- packages/create-mastra/LICENSE | 21 +++++++++ packages/create-mastra/package.json | 3 +- packages/deployer/LICENSE | 21 +++++++++ packages/deployer/package.json | 2 +- packages/evals/LICENSE | 21 +++++++++ packages/evals/package.json | 2 +- packages/loggers/LICENSE | 21 +++++++++ packages/loggers/package.json | 2 +- packages/mcp/LICENSE | 21 +++++++++ packages/mcp/package.json | 2 +- packages/memory/LICENSE | 21 +++++++++ packages/memory/package.json | 2 +- packages/rag/LICENSE | 21 +++++++++ packages/rag/package.json | 2 +- speech/azure/LICENSE | 21 +++++++++ speech/azure/package.json | 3 +- speech/deepgram/LICENSE | 21 +++++++++ speech/deepgram/package.json | 3 +- speech/elevenlabs/LICENSE | 21 +++++++++ speech/elevenlabs/package.json | 3 +- speech/google/LICENSE | 21 +++++++++ speech/google/package.json | 3 +- speech/ibm/LICENSE | 21 +++++++++ speech/ibm/package.json | 3 +- speech/murf/LICENSE | 21 +++++++++ speech/murf/package.json | 3 +- speech/openai/LICENSE | 21 +++++++++ speech/openai/package.json | 3 +- speech/playai/LICENSE | 21 +++++++++ speech/playai/package.json | 3 +- speech/replicate/LICENSE | 21 +++++++++ speech/replicate/package.json | 3 +- speech/speechify/LICENSE | 21 +++++++++ speech/speechify/package.json | 3 +- storage/pg/LICENSE | 21 +++++++++ storage/pg/package.json | 3 +- storage/upstash/LICENSE | 21 +++++++++ storage/upstash/package.json | 3 +- stores/astra/LICENSE | 21 +++++++++ stores/astra/package.json | 3 +- stores/chroma/LICENSE | 21 +++++++++ stores/chroma/package.json | 3 +- stores/pg/LICENSE | 21 +++++++++ stores/pg/package.json | 3 +- stores/pinecone/LICENSE | 21 +++++++++ stores/pinecone/package.json | 3 +- stores/qdrant/LICENSE | 21 +++++++++ stores/qdrant/package.json | 3 +- stores/upstash/LICENSE | 21 +++++++++ stores/upstash/package.json | 3 +- stores/vectorize/LICENSE | 21 +++++++++ stores/vectorize/package.json | 3 +- vector-stores/astra/LICENSE | 21 +++++++++ vector-stores/astra/package.json | 3 +- vector-stores/chroma/LICENSE | 21 +++++++++ vector-stores/chroma/package.json | 3 +- vector-stores/pg/LICENSE | 21 +++++++++ vector-stores/pg/package.json | 3 +- vector-stores/pinecone/LICENSE | 21 +++++++++ vector-stores/pinecone/package.json | 3 +- vector-stores/qdrant/LICENSE | 21 +++++++++ vector-stores/qdrant/package.json | 3 +- vector-stores/upstash/LICENSE | 21 +++++++++ vector-stores/upstash/package.json | 3 +- vector-stores/vectorize/LICENSE | 21 +++++++++ vector-stores/vectorize/package.json | 3 +- 91 files changed, 1068 insertions(+), 134 deletions(-) create mode 100644 .changeset/every-melons-pull.md create mode 100644 deployers/cloudflare/LICENSE create mode 100644 deployers/netlify/LICENSE create mode 100644 deployers/vercel/LICENSE create mode 100644 examples/dane/LICENSE create mode 100644 integrations/composio/LICENSE create mode 100644 integrations/firecrawl/LICENSE create mode 100644 integrations/github/LICENSE create mode 100644 integrations/ragie/LICENSE create mode 100644 integrations/stabilityai/LICENSE create mode 100644 packages/cli/LICENSE create mode 100644 packages/create-mastra/LICENSE create mode 100644 packages/deployer/LICENSE create mode 100644 packages/evals/LICENSE create mode 100644 packages/loggers/LICENSE create mode 100644 packages/mcp/LICENSE create mode 100644 packages/memory/LICENSE create mode 100644 packages/rag/LICENSE create mode 100644 speech/azure/LICENSE create mode 100644 speech/deepgram/LICENSE create mode 100644 speech/elevenlabs/LICENSE create mode 100644 speech/google/LICENSE create mode 100644 speech/ibm/LICENSE create mode 100644 speech/murf/LICENSE create mode 100644 speech/openai/LICENSE create mode 100644 speech/playai/LICENSE create mode 100644 speech/replicate/LICENSE create mode 100644 speech/speechify/LICENSE create mode 100644 storage/pg/LICENSE create mode 100644 storage/upstash/LICENSE create mode 100644 stores/astra/LICENSE create mode 100644 stores/chroma/LICENSE create mode 100644 stores/pg/LICENSE create mode 100644 stores/pinecone/LICENSE create mode 100644 stores/qdrant/LICENSE create mode 100644 stores/upstash/LICENSE create mode 100644 stores/vectorize/LICENSE create mode 100644 vector-stores/astra/LICENSE create mode 100644 vector-stores/chroma/LICENSE create mode 100644 vector-stores/pg/LICENSE create mode 100644 vector-stores/pinecone/LICENSE create mode 100644 vector-stores/qdrant/LICENSE create mode 100644 vector-stores/upstash/LICENSE create mode 100644 vector-stores/vectorize/LICENSE diff --git a/.changeset/every-melons-pull.md b/.changeset/every-melons-pull.md new file mode 100644 index 0000000000..22b42a3ef8 --- /dev/null +++ b/.changeset/every-melons-pull.md @@ -0,0 +1,48 @@ +--- +'@mastra/stabilityai': patch +'@mastra/vector-vectorize': patch +'@mastra/firecrawl': patch +'create-mastra': patch +'@mastra/vector-pinecone': patch +'@mastra/client-js': patch +'@mastra/composio': patch +'@mastra/vector-upstash': patch +'@mastra/deployer-cloudflare': patch +'@mastra/vector-chroma': patch +'@mastra/vector-qdrant': patch +'@mastra/github': patch +'@mastra/vector-astra': patch +'@mastra/ragie': patch +'@mastra/deployer-netlify': patch +'@mastra/deployer': patch +'@mastra/speech-elevenlabs': patch +'@mastra/deployer-vercel': patch +'@mastra/loggers': patch +'@mastra/speech-replicate': patch +'@mastra/speech-speechify': patch +'@mastra/vectorize': patch +'@mastra/vector-pg': patch +'@mastra/memory': patch +'@mastra/speech-deepgram': patch +'@mastra/store-upstash': patch +'@mastra/pinecone': patch +'@mastra/evals': patch +'@mastra/upstash': patch +'@mastra/core': patch +'@mastra/speech-google': patch +'@mastra/speech-openai': patch +'@mastra/speech-playai': patch +'@mastra/chroma': patch +'@mastra/qdrant': patch +'mastra': patch +'@mastra/mcp': patch +'@mastra/rag': patch +'@mastra/speech-azure': patch +'@mastra/astra': patch +'@mastra/speech-murf': patch +'@mastra/speech-ibm': patch +'@mastra/store-pg': patch +'@mastra/pg': patch +--- + +Fix licensing diff --git a/LICENSE b/LICENSE index 682d649ce7..a45a376fb0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,44 +1,21 @@ -Elastic License 2.0 (ELv2) - -**Acceptance** -By using the software, you agree to all of the terms and conditions below. - -**Copyright License** -The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below - -**Limitations** -You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. - -You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. - -You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law. - -**Patents** -The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. - -**Notices** -You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. - -If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. - -**No Other Rights** -These terms do not imply any licenses other than those expressly granted in these terms. - -**Termination** -If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. - -**No Liability** -As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. - -**Definitions** -The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it. - -_you_ refers to the individual or entity agreeing to these terms. - -_your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. - -_your licenses_ are all the licenses granted to you for the software under these terms. - -_use_ means anything you do with the software requiring one of your licenses. - -_trademark_ means trademarks, service marks, and similar rights. +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/client-sdks/client-js/LICENSE b/client-sdks/client-js/LICENSE index 682d649ce7..a45a376fb0 100644 --- a/client-sdks/client-js/LICENSE +++ b/client-sdks/client-js/LICENSE @@ -1,44 +1,21 @@ -Elastic License 2.0 (ELv2) - -**Acceptance** -By using the software, you agree to all of the terms and conditions below. - -**Copyright License** -The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below - -**Limitations** -You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. - -You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. - -You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law. - -**Patents** -The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. - -**Notices** -You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. - -If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. - -**No Other Rights** -These terms do not imply any licenses other than those expressly granted in these terms. - -**Termination** -If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. - -**No Liability** -As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. - -**Definitions** -The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it. - -_you_ refers to the individual or entity agreeing to these terms. - -_your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. - -_your licenses_ are all the licenses granted to you for the software under these terms. - -_use_ means anything you do with the software requiring one of your licenses. - -_trademark_ means trademarks, service marks, and similar rights. +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/client-sdks/client-js/package.json b/client-sdks/client-js/package.json index f4f6c599b7..32e6055ecf 100644 --- a/client-sdks/client-js/package.json +++ b/client-sdks/client-js/package.json @@ -15,7 +15,7 @@ "./package.json": "./package.json" }, "repository": "github:mastra-ai/client-js", - "license": "ISC", + "license": "MIT", "scripts": { "build": "tsup-node src/index.ts --format esm --dts --clean --treeshake", "dev": "tsup-node src/index.ts --format esm --dts --clean --treeshake --watch", diff --git a/deployers/cloudflare/LICENSE b/deployers/cloudflare/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/deployers/cloudflare/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/deployers/cloudflare/package.json b/deployers/cloudflare/package.json index 74d2f7398d..5f4f3fc513 100644 --- a/deployers/cloudflare/package.json +++ b/deployers/cloudflare/package.json @@ -23,7 +23,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "@mastra/deployer": "workspace:^", diff --git a/deployers/netlify/LICENSE b/deployers/netlify/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/deployers/netlify/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/deployers/netlify/package.json b/deployers/netlify/package.json index b45fae3f4e..e037bbb819 100644 --- a/deployers/netlify/package.json +++ b/deployers/netlify/package.json @@ -19,7 +19,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "@mastra/deployer": "workspace:^", diff --git a/deployers/vercel/LICENSE b/deployers/vercel/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/deployers/vercel/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/deployers/vercel/package.json b/deployers/vercel/package.json index 7c0a0aa72c..1ae4d345b4 100644 --- a/deployers/vercel/package.json +++ b/deployers/vercel/package.json @@ -19,7 +19,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "@mastra/deployer": "workspace:^", diff --git a/examples/dane/LICENSE b/examples/dane/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/examples/dane/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/examples/dane/package.json b/examples/dane/package.json index b77905a709..18bf8a837c 100644 --- a/examples/dane/package.json +++ b/examples/dane/package.json @@ -19,7 +19,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "description": "", "devDependencies": { "@types/node": "^22.10.2", diff --git a/integrations/composio/LICENSE b/integrations/composio/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/integrations/composio/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/integrations/composio/package.json b/integrations/composio/package.json index c6ba0449df..61834dc893 100644 --- a/integrations/composio/package.json +++ b/integrations/composio/package.json @@ -63,7 +63,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "composio-core": "^0.3.2", diff --git a/integrations/firecrawl/LICENSE b/integrations/firecrawl/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/integrations/firecrawl/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/integrations/firecrawl/package.json b/integrations/firecrawl/package.json index 3a91a825f1..f046e12595 100644 --- a/integrations/firecrawl/package.json +++ b/integrations/firecrawl/package.json @@ -63,7 +63,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@hey-api/client-fetch": "^0.3.3", "@mastra/core": "workspace:^", diff --git a/integrations/github/LICENSE b/integrations/github/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/integrations/github/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/integrations/github/package.json b/integrations/github/package.json index d56bc02777..b39cc0869f 100644 --- a/integrations/github/package.json +++ b/integrations/github/package.json @@ -65,7 +65,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@hey-api/client-fetch": "^0.3.3", "@mastra/core": "workspace:^", diff --git a/integrations/ragie/LICENSE b/integrations/ragie/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/integrations/ragie/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/integrations/ragie/package.json b/integrations/ragie/package.json index a1cbd5f7ee..9e532c0e66 100644 --- a/integrations/ragie/package.json +++ b/integrations/ragie/package.json @@ -63,7 +63,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@hey-api/client-fetch": "^0.3.3", "@mastra/core": "workspace:^", diff --git a/integrations/stabilityai/LICENSE b/integrations/stabilityai/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/integrations/stabilityai/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/integrations/stabilityai/package.json b/integrations/stabilityai/package.json index 3dbb593b93..11f37074ea 100644 --- a/integrations/stabilityai/package.json +++ b/integrations/stabilityai/package.json @@ -63,7 +63,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "axios": "^1.7.9", diff --git a/package.json b/package.json index c09a4caacc..fa72d8acdc 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ "typecheck": "pnpm -r typecheck", "dev:services:up": "docker compose -f .dev/docker-compose.yaml up -d", "dev:services:down": "docker compose -f .dev/docker-compose.yaml down", - "setup": "pnpm install --ignore-scripts && pnpm run build:cli && pnpm install --shamefully-hoist" + "setup": "pnpm install --ignore-scripts && pnpm run build:cli && pnpm install --shamefully-hoist", + "update-licenses": "tsx scripts/update-licenses.ts" }, "lint-staged": { "*.{js,ts,tsx,md,json,graphql,gql}": [ @@ -67,5 +68,6 @@ "resolutions": { "typescript": "^5.7.3" }, - "packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af" + "packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af", + "license": "MIT" } diff --git a/packages/cli/LICENSE b/packages/cli/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/cli/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/core/LICENSE b/packages/core/LICENSE index fef243cc39..a45a376fb0 100644 --- a/packages/core/LICENSE +++ b/packages/core/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Ehindero Israel +Copyright (c) Meta Platforms, Inc. and affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/create-mastra/LICENSE b/packages/create-mastra/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/create-mastra/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/create-mastra/package.json b/packages/create-mastra/package.json index 5587f9dcbb..5274bb91ce 100644 --- a/packages/create-mastra/package.json +++ b/packages/create-mastra/package.json @@ -61,5 +61,6 @@ }, "engines": { "node": ">=20" - } + }, + "license": "MIT" } diff --git a/packages/deployer/LICENSE b/packages/deployer/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/deployer/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/deployer/package.json b/packages/deployer/package.json index c24d57ceee..3866f4c1ac 100644 --- a/packages/deployer/package.json +++ b/packages/deployer/package.json @@ -39,7 +39,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@babel/core": "^7.26.7", "@babel/helper-module-imports": "^7.25.9", diff --git a/packages/evals/LICENSE b/packages/evals/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/evals/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/evals/package.json b/packages/evals/package.json index cba7c3e308..89295c3cc9 100644 --- a/packages/evals/package.json +++ b/packages/evals/package.json @@ -41,7 +41,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "compromise": "^14.14.3", diff --git a/packages/loggers/LICENSE b/packages/loggers/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/loggers/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/loggers/package.json b/packages/loggers/package.json index 3a96cdc7b1..fe09450923 100644 --- a/packages/loggers/package.json +++ b/packages/loggers/package.json @@ -34,7 +34,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^" }, diff --git a/packages/mcp/LICENSE b/packages/mcp/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/mcp/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/mcp/package.json b/packages/mcp/package.json index a4a710b39d..0a306b88d2 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -22,7 +22,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "@modelcontextprotocol/sdk": "^1.1.1", diff --git a/packages/memory/LICENSE b/packages/memory/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/memory/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/memory/package.json b/packages/memory/package.json index 28820a0799..53336355d2 100644 --- a/packages/memory/package.json +++ b/packages/memory/package.json @@ -36,7 +36,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@mastra/core": "workspace:^", "@upstash/redis": "^1.34.3", diff --git a/packages/rag/LICENSE b/packages/rag/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/packages/rag/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/rag/package.json b/packages/rag/package.json index a34cd2a316..2d15c31e03 100644 --- a/packages/rag/package.json +++ b/packages/rag/package.json @@ -21,7 +21,7 @@ "lint": "eslint ." }, "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@llamaindex/core": "^0.4.10", "@llamaindex/env": "^0.1.20", diff --git a/speech/azure/LICENSE b/speech/azure/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/azure/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/azure/package.json b/speech/azure/package.json index 176244f061..856ba7c2de 100644 --- a/speech/azure/package.json +++ b/speech/azure/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/deepgram/LICENSE b/speech/deepgram/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/deepgram/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/deepgram/package.json b/speech/deepgram/package.json index c05ae4ee56..18d034d8ce 100644 --- a/speech/deepgram/package.json +++ b/speech/deepgram/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/elevenlabs/LICENSE b/speech/elevenlabs/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/elevenlabs/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/elevenlabs/package.json b/speech/elevenlabs/package.json index 5813c3bd1a..5d439d0a3e 100644 --- a/speech/elevenlabs/package.json +++ b/speech/elevenlabs/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/google/LICENSE b/speech/google/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/google/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/google/package.json b/speech/google/package.json index 272ee8f033..5f51bc8b0e 100644 --- a/speech/google/package.json +++ b/speech/google/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/ibm/LICENSE b/speech/ibm/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/ibm/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/ibm/package.json b/speech/ibm/package.json index 079d7dc44c..bcf7ced0ae 100644 --- a/speech/ibm/package.json +++ b/speech/ibm/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/murf/LICENSE b/speech/murf/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/murf/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/murf/package.json b/speech/murf/package.json index c827fc2597..51218eec0f 100644 --- a/speech/murf/package.json +++ b/speech/murf/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/openai/LICENSE b/speech/openai/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/openai/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/openai/package.json b/speech/openai/package.json index e1e871e104..dff59f94ea 100644 --- a/speech/openai/package.json +++ b/speech/openai/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/playai/LICENSE b/speech/playai/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/playai/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/playai/package.json b/speech/playai/package.json index f197c6e40c..2e99e37185 100644 --- a/speech/playai/package.json +++ b/speech/playai/package.json @@ -29,5 +29,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/replicate/LICENSE b/speech/replicate/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/replicate/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/replicate/package.json b/speech/replicate/package.json index dfd5e3d65b..3be3d88bdf 100644 --- a/speech/replicate/package.json +++ b/speech/replicate/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/speech/speechify/LICENSE b/speech/speechify/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/speech/speechify/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/speech/speechify/package.json b/speech/speechify/package.json index 9a52371f2e..746a7893b9 100644 --- a/speech/speechify/package.json +++ b/speech/speechify/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/storage/pg/LICENSE b/storage/pg/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/storage/pg/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/storage/pg/package.json b/storage/pg/package.json index 1d8c381530..c2cc78363c 100644 --- a/storage/pg/package.json +++ b/storage/pg/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/storage/upstash/LICENSE b/storage/upstash/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/storage/upstash/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/storage/upstash/package.json b/storage/upstash/package.json index 5fa8acf9d5..0fbcf61305 100644 --- a/storage/upstash/package.json +++ b/storage/upstash/package.json @@ -28,5 +28,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^2.1.8" - } + }, + "license": "MIT" } diff --git a/stores/astra/LICENSE b/stores/astra/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/astra/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/astra/package.json b/stores/astra/package.json index dfaed62d8a..64985f1cf4 100644 --- a/stores/astra/package.json +++ b/stores/astra/package.json @@ -29,5 +29,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/stores/chroma/LICENSE b/stores/chroma/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/chroma/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/chroma/package.json b/stores/chroma/package.json index 03c1497fa0..20b3a38a48 100644 --- a/stores/chroma/package.json +++ b/stores/chroma/package.json @@ -29,5 +29,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/stores/pg/LICENSE b/stores/pg/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/pg/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/pg/package.json b/stores/pg/package.json index d017eb584a..3a0ed37c3c 100644 --- a/stores/pg/package.json +++ b/stores/pg/package.json @@ -36,5 +36,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/stores/pinecone/LICENSE b/stores/pinecone/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/pinecone/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/pinecone/package.json b/stores/pinecone/package.json index af5d542ff9..ba074f55de 100644 --- a/stores/pinecone/package.json +++ b/stores/pinecone/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/stores/qdrant/LICENSE b/stores/qdrant/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/qdrant/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/qdrant/package.json b/stores/qdrant/package.json index 56f9af0665..4f760a2a85 100644 --- a/stores/qdrant/package.json +++ b/stores/qdrant/package.json @@ -29,5 +29,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/stores/upstash/LICENSE b/stores/upstash/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/upstash/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/upstash/package.json b/stores/upstash/package.json index b2f3f68630..7bb2d56789 100644 --- a/stores/upstash/package.json +++ b/stores/upstash/package.json @@ -32,5 +32,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/stores/vectorize/LICENSE b/stores/vectorize/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/stores/vectorize/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/stores/vectorize/package.json b/stores/vectorize/package.json index edd860a186..4c384796e3 100644 --- a/stores/vectorize/package.json +++ b/stores/vectorize/package.json @@ -29,5 +29,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.5" - } + }, + "license": "MIT" } diff --git a/vector-stores/astra/LICENSE b/vector-stores/astra/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/astra/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/astra/package.json b/vector-stores/astra/package.json index ea588d6947..a521f394d5 100644 --- a/vector-stores/astra/package.json +++ b/vector-stores/astra/package.json @@ -28,5 +28,6 @@ "@types/node": "^22.13.1", "tsup": "^8.0.1", "typescript": "^5.7.3" - } + }, + "license": "MIT" } diff --git a/vector-stores/chroma/LICENSE b/vector-stores/chroma/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/chroma/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/chroma/package.json b/vector-stores/chroma/package.json index 880f2869e6..12846ec6bd 100644 --- a/vector-stores/chroma/package.json +++ b/vector-stores/chroma/package.json @@ -28,5 +28,6 @@ "@types/node": "^22.13.1", "tsup": "^8.0.1", "typescript": "^5.7.3" - } + }, + "license": "MIT" } diff --git a/vector-stores/pg/LICENSE b/vector-stores/pg/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/pg/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/pg/package.json b/vector-stores/pg/package.json index 5adbf5c7a1..1daf872b90 100644 --- a/vector-stores/pg/package.json +++ b/vector-stores/pg/package.json @@ -30,5 +30,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/vector-stores/pinecone/LICENSE b/vector-stores/pinecone/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/pinecone/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/pinecone/package.json b/vector-stores/pinecone/package.json index c28ddb1cdf..8c5213b1bb 100644 --- a/vector-stores/pinecone/package.json +++ b/vector-stores/pinecone/package.json @@ -28,5 +28,6 @@ "@types/node": "^22.13.1", "tsup": "^8.0.1", "typescript": "^5.7.3" - } + }, + "license": "MIT" } diff --git a/vector-stores/qdrant/LICENSE b/vector-stores/qdrant/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/qdrant/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/qdrant/package.json b/vector-stores/qdrant/package.json index 31651c0b54..20a1573247 100644 --- a/vector-stores/qdrant/package.json +++ b/vector-stores/qdrant/package.json @@ -28,5 +28,6 @@ "@types/node": "^22.13.1", "tsup": "^8.0.1", "typescript": "^5.7.3" - } + }, + "license": "MIT" } diff --git a/vector-stores/upstash/LICENSE b/vector-stores/upstash/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/upstash/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/upstash/package.json b/vector-stores/upstash/package.json index 146eea6e4b..b696a35b07 100644 --- a/vector-stores/upstash/package.json +++ b/vector-stores/upstash/package.json @@ -29,5 +29,6 @@ "tsup": "^8.0.1", "typescript": "^5.7.3", "vitest": "^3.0.4" - } + }, + "license": "MIT" } diff --git a/vector-stores/vectorize/LICENSE b/vector-stores/vectorize/LICENSE new file mode 100644 index 0000000000..a45a376fb0 --- /dev/null +++ b/vector-stores/vectorize/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vector-stores/vectorize/package.json b/vector-stores/vectorize/package.json index a4e143f4a7..15e4d11634 100644 --- a/vector-stores/vectorize/package.json +++ b/vector-stores/vectorize/package.json @@ -28,5 +28,6 @@ "@types/node": "^22.13.1", "tsup": "^8.0.1", "typescript": "^5.7.3" - } + }, + "license": "MIT" } From 8907057b046e205b085d4348cfbaf960a5f2a09f Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Fri, 21 Feb 2025 15:07:32 +0100 Subject: [PATCH 4/7] Add support to require --- client-sdks/client-js/package.json | 12 ++++--- deployers/cloudflare/package.json | 22 ++++++++++--- deployers/netlify/package.json | 2 +- deployers/vercel/package.json | 2 +- integrations/composio/package.json | 6 +++- integrations/firecrawl/package.json | 6 +++- integrations/github/package.json | 6 +++- integrations/ragie/package.json | 8 +++-- integrations/stabilityai/package.json | 6 +++- packages/core/package.json | 26 ++++++++++++++- packages/core/tsup.config.ts | 2 +- packages/deployer/package.json | 46 +++++++++++++++++++++------ packages/evals/package.json | 18 ++++++++++- packages/loggers/package.json | 14 +++++++- packages/mcp/package.json | 6 +++- packages/memory/package.json | 14 +++++++- packages/rag/package.json | 6 +++- speech/azure/package.json | 6 +++- speech/deepgram/package.json | 6 +++- speech/elevenlabs/package.json | 6 +++- speech/google/package.json | 6 +++- speech/ibm/package.json | 6 +++- speech/murf/package.json | 6 +++- speech/openai/package.json | 6 +++- speech/playai/package.json | 6 +++- speech/replicate/package.json | 6 +++- speech/speechify/package.json | 6 +++- storage/pg/package.json | 6 +++- storage/upstash/package.json | 6 +++- stores/astra/package.json | 6 +++- stores/chroma/package.json | 6 +++- stores/pg/package.json | 6 +++- stores/pinecone/package.json | 6 +++- stores/qdrant/package.json | 6 +++- stores/upstash/package.json | 6 +++- stores/vectorize/package.json | 6 +++- vector-stores/astra/package.json | 6 +++- vector-stores/chroma/package.json | 6 +++- vector-stores/pg/package.json | 6 +++- vector-stores/pinecone/package.json | 6 +++- vector-stores/qdrant/package.json | 6 +++- vector-stores/upstash/package.json | 6 +++- vector-stores/vectorize/package.json | 6 +++- 43 files changed, 299 insertions(+), 59 deletions(-) diff --git a/client-sdks/client-js/package.json b/client-sdks/client-js/package.json index 32e6055ecf..3d7c5d8309 100644 --- a/client-sdks/client-js/package.json +++ b/client-sdks/client-js/package.json @@ -8,8 +8,12 @@ "exports": { ".": { "import": { - "types": "./dist/index.d.mts", - "default": "./dist/index.mjs" + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" @@ -17,8 +21,8 @@ "repository": "github:mastra-ai/client-js", "license": "MIT", "scripts": { - "build": "tsup-node src/index.ts --format esm --dts --clean --treeshake", - "dev": "tsup-node src/index.ts --format esm --dts --clean --treeshake --watch", + "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake", + "dev": "pnpm build --watch", "test": "vitest run" }, "dependencies": { diff --git a/deployers/cloudflare/package.json b/deployers/cloudflare/package.json index 5f4f3fc513..c1781ef75c 100644 --- a/deployers/cloudflare/package.json +++ b/deployers/cloudflare/package.json @@ -7,17 +7,29 @@ "types": "dist/index.d.ts", "exports": { ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } }, "./secrets-manager": { - "types": "./dist/secrets-manager/index.d.ts", - "default": "./dist/secrets-manager/index.js" + "import": { + "types": "./dist/secrets-manager/index.d.ts", + "default": "./dist/secrets-manager/index.js" + }, + "require": { + "types": "./dist/secrets-manager/index.d.cts", + "default": "./dist/secrets-manager/index.cjs" + } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts src/secrets-manager/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts src/secrets-manager/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/deployers/netlify/package.json b/deployers/netlify/package.json index e037bbb819..613597dffc 100644 --- a/deployers/netlify/package.json +++ b/deployers/netlify/package.json @@ -13,7 +13,7 @@ "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/deployers/vercel/package.json b/deployers/vercel/package.json index 1ae4d345b4..845e6a5772 100644 --- a/deployers/vercel/package.json +++ b/deployers/vercel/package.json @@ -13,7 +13,7 @@ "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/integrations/composio/package.json b/integrations/composio/package.json index 61834dc893..7f3879aebf 100644 --- a/integrations/composio/package.json +++ b/integrations/composio/package.json @@ -13,13 +13,17 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "analyze": "size-limit --why", - "build": "tsup src/index.ts --format esm --dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake", "build:watch": "pnpm build --watch", "lint": "dts lint", "size": "size-limit", diff --git a/integrations/firecrawl/package.json b/integrations/firecrawl/package.json index f046e12595..b587e32eaf 100644 --- a/integrations/firecrawl/package.json +++ b/integrations/firecrawl/package.json @@ -12,13 +12,17 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "analyze": "size-limit --why", - "build": "tsup src/index.ts --format esm --dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake", "build:watch": "pnpm build --watch", "lint": "dts lint", "size": "size-limit", diff --git a/integrations/github/package.json b/integrations/github/package.json index b39cc0869f..f6ad6e9716 100644 --- a/integrations/github/package.json +++ b/integrations/github/package.json @@ -13,13 +13,17 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "analyze": "size-limit --why", - "build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup src/index.ts --format esm --dts --clean --treeshake", + "build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup src/index.ts --format esm,cjs --dts --clean --treeshake", "build:watch": "pnpm build --watch", "lint": "dts lint", "size": "size-limit", diff --git a/integrations/ragie/package.json b/integrations/ragie/package.json index 9e532c0e66..e9ffe963ea 100644 --- a/integrations/ragie/package.json +++ b/integrations/ragie/package.json @@ -12,14 +12,18 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "analyze": "size-limit --why", - "build": "tsup src/index.ts --format esm --dts --clean --treeshake", - "build:dev": "tsup src/index.ts --format esm --dts --clean --treeshake --watch", + "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake", + "build:dev": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake --watch", "lint": "dts lint", "size": "size-limit", "start": "dts watch", diff --git a/integrations/stabilityai/package.json b/integrations/stabilityai/package.json index 11f37074ea..a6b6a6b573 100644 --- a/integrations/stabilityai/package.json +++ b/integrations/stabilityai/package.json @@ -13,13 +13,17 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "analyze": "size-limit --why", - "build": "tsup src/index.ts --format esm --dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake", "build:watch": "pnpm build --watch", "lint": "dts lint", "size": "size-limit", diff --git a/packages/core/package.json b/packages/core/package.json index b13a06c59b..efe607fe95 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -13,36 +13,60 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.cjs" } }, "./*": { "import": { "types": "./dist/*/index.d.ts", "default": "./dist/*/index.js" + }, + "require": { + "types": "./dist/*/index.d.ts", + "default": "./dist/*/index.cjs" } }, "./vector/libsql": { "import": { "types": "./dist/vector/libsql/index.d.ts", "default": "./dist/vector/libsql/index.js" + }, + "require": { + "types": "./dist/vector/libsql/index.d.ts", + "default": "./dist/vector/libsql/index.cjs" } }, "./utils": { "import": { "types": "./dist/utils.d.ts", "default": "./dist/utils.js" + }, + "require": { + "types": "./dist/utils.d.ts", + "default": "./dist/utils.cjs" } }, "./base": { "import": { "types": "./dist/base.d.ts", "default": "./dist/base.js" + }, + "require": { + "types": "./dist/base.d.ts", + "default": "./dist/base.cjs" } }, "./telemetry/otel-vendor": { "import": { "types": "./dist/telemetry/otel-vendor.d.ts", "default": "./dist/telemetry/otel-vendor.js" + }, + "require": { + "types": "./dist/telemetry/otel-vendor.d.ts", + "default": "./dist/telemetry/otel-vendor.cjs" } }, "./package.json": "./package.json" @@ -52,7 +76,7 @@ "check": "tsc --noEmit", "analyze": "size-limit --why", "lint": "eslint .", - "build": "tsup --config tsup.config.ts", + "build": "tsup --config tsup.config.ts --format esm,cjs", "build:watch": "pnpm build --watch", "size": "size-limit", "test": "vitest run" diff --git a/packages/core/tsup.config.ts b/packages/core/tsup.config.ts index da519f6ff8..4d4f177ede 100644 --- a/packages/core/tsup.config.ts +++ b/packages/core/tsup.config.ts @@ -47,7 +47,7 @@ export default defineConfig({ 'src/vector/libsql/index.ts', 'src/telemetry/otel-vendor.ts', ], - format: 'esm', + format: ['esm', 'cjs'], clean: true, dts: true, treeshake: { diff --git a/packages/deployer/package.json b/packages/deployer/package.json index 3866f4c1ac..9dc592df80 100644 --- a/packages/deployer/package.json +++ b/packages/deployer/package.json @@ -10,28 +10,56 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./server": { - "types": "./dist/server/index.d.ts", - "default": "./dist/server/index.js" + "import": { + "types": "./dist/server/index.d.ts", + "default": "./dist/server/index.js" + }, + "require": { + "types": "./dist/server/index.d.cts", + "default": "./dist/server/index.cjs" + } }, "./build": { - "types": "./dist/build/index.d.ts", - "default": "./dist/build/index.js" + "import": { + "types": "./dist/build/index.d.ts", + "default": "./dist/build/index.js" + }, + "require": { + "types": "./dist/build/index.d.cts", + "default": "./dist/build/index.cjs" + } }, "./bundler": { - "types": "./dist/bundler/index.d.ts", - "default": "./dist/bundler/index.js" + "import": { + "types": "./dist/bundler/index.d.ts", + "default": "./dist/bundler/index.js" + }, + "require": { + "types": "./dist/bundler/index.d.cts", + "default": "./dist/bundler/index.cjs" + } }, "./analyze": { - "types": "./dist/build/analyze.d.ts", - "default": "./dist/build/analyze.js" + "import": { + "types": "./dist/build/analyze.d.ts", + "default": "./dist/build/analyze.js" + }, + "require": { + "types": "./dist/build/analyze.d.cts", + "default": "./dist/build/analyze.cjs" + } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts src/build/index.ts src/server/index.ts src/build/bundler.ts src/build/analyze.ts src/bundler/index.ts --format esm --clean --experimental-dts --treeshake --publicDir", + "build": "tsup src/index.ts src/build/index.ts src/server/index.ts src/build/bundler.ts src/build/analyze.ts src/bundler/index.ts --format esm,cjs --clean --experimental-dts --treeshake --publicDir", "build:watch": "pnpm build --watch", "pull:openapispec": "node src/server/openapi.script.js", "test": "vitest run", diff --git a/packages/evals/package.json b/packages/evals/package.json index 89295c3cc9..b30aa63719 100644 --- a/packages/evals/package.json +++ b/packages/evals/package.json @@ -10,31 +10,47 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./judge": { "import": { "types": "./dist/metrics/judge/index.d.ts", "default": "./dist/metrics/judge/index.js" + }, + "require": { + "types": "./dist/metrics/judge/index.d.cts", + "default": "./dist/metrics/judge/index.cjs" } }, "./nlp": { "import": { "types": "./dist/metrics/nlp/index.d.ts", "default": "./dist/metrics/nlp/index.js" + }, + "require": { + "types": "./dist/metrics/nlp/index.d.cts", + "default": "./dist/metrics/nlp/index.cjs" } }, "./llm": { "import": { "types": "./dist/metrics/llm/index.d.ts", "default": "./dist/metrics/llm/index.js" + }, + "require": { + "types": "./dist/metrics/llm/index.d.cts", + "default": "./dist/metrics/llm/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "check": "tsc --noEmit", - "build": "pnpm check && tsup src/index.ts src/metrics/judge/index.ts src/metrics/llm/index.ts src/metrics/nlp/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "pnpm check && tsup src/index.ts src/metrics/judge/index.ts src/metrics/llm/index.ts src/metrics/nlp/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest", "lint": "eslint ." diff --git a/packages/loggers/package.json b/packages/loggers/package.json index fe09450923..26ffb85ffd 100644 --- a/packages/loggers/package.json +++ b/packages/loggers/package.json @@ -10,24 +10,36 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./file": { "import": { "types": "./dist/file/index.d.ts", "default": "./dist/file/index.js" + }, + "require": { + "types": "./dist/file/index.d.cts", + "default": "./dist/file/index.cjs" } }, "./upstash": { "import": { "types": "./dist/upstash/index.d.ts", "default": "./dist/upstash/index.js" + }, + "require": { + "types": "./dist/upstash/index.d.cts", + "default": "./dist/upstash/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/file/index.ts src/upstash/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/file/index.ts src/upstash/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run", "lint": "eslint ." diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 0a306b88d2..7e01a78ae1 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run", "lint": "eslint ." diff --git a/packages/memory/package.json b/packages/memory/package.json index 53336355d2..8e8db43912 100644 --- a/packages/memory/package.json +++ b/packages/memory/package.json @@ -10,25 +10,37 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./kv-upstash": { "import": { "types": "./dist/kv/upstash.d.ts", "default": "./dist/kv/upstash.js" + }, + "require": { + "types": "./dist/kv/upstash.d.cts", + "default": "./dist/kv/upstash.cjs" } }, "./postgres": { "import": { "types": "./dist/postgres/index.d.ts", "default": "./dist/postgres/index.js" + }, + "require": { + "types": "./dist/postgres/index.d.cts", + "default": "./dist/postgres/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { "check": "tsc --noEmit", - "build": "pnpm run check && tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "pnpm run check && tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test:integration": "cd integration-tests && pnpm run test", "test": "pnpm test:integration", diff --git a/packages/rag/package.json b/packages/rag/package.json index 2d15c31e03..ef2772c583 100644 --- a/packages/rag/package.json +++ b/packages/rag/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "buld:watch": "pnpm build --watch", "test": "vitest run", "lint": "eslint ." diff --git a/speech/azure/package.json b/speech/azure/package.json index 856ba7c2de..22e4a06eb5 100644 --- a/speech/azure/package.json +++ b/speech/azure/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/deepgram/package.json b/speech/deepgram/package.json index 18d034d8ce..8acc6b00c5 100644 --- a/speech/deepgram/package.json +++ b/speech/deepgram/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/elevenlabs/package.json b/speech/elevenlabs/package.json index 5d439d0a3e..54999dbbff 100644 --- a/speech/elevenlabs/package.json +++ b/speech/elevenlabs/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "tsup build --watch", "test": "vitest run" }, diff --git a/speech/google/package.json b/speech/google/package.json index 5f51bc8b0e..b19ae8f037 100644 --- a/speech/google/package.json +++ b/speech/google/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/ibm/package.json b/speech/ibm/package.json index bcf7ced0ae..080eeb99b2 100644 --- a/speech/ibm/package.json +++ b/speech/ibm/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/murf/package.json b/speech/murf/package.json index 51218eec0f..3b106cc13e 100644 --- a/speech/murf/package.json +++ b/speech/murf/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/openai/package.json b/speech/openai/package.json index dff59f94ea..d4734d279f 100644 --- a/speech/openai/package.json +++ b/speech/openai/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/playai/package.json b/speech/playai/package.json index 2e99e37185..2dab07ee7d 100644 --- a/speech/playai/package.json +++ b/speech/playai/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/replicate/package.json b/speech/replicate/package.json index 3be3d88bdf..533d41c978 100644 --- a/speech/replicate/package.json +++ b/speech/replicate/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/speech/speechify/package.json b/speech/speechify/package.json index 746a7893b9..f0de555dfb 100644 --- a/speech/speechify/package.json +++ b/speech/speechify/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/storage/pg/package.json b/storage/pg/package.json index c2cc78363c..28eef890f5 100644 --- a/storage/pg/package.json +++ b/storage/pg/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "test": "echo deprecated" }, "dependencies": { diff --git a/storage/upstash/package.json b/storage/upstash/package.json index 0fbcf61305..4ec00e5ac7 100644 --- a/storage/upstash/package.json +++ b/storage/upstash/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "test": "echo deprecated" }, "dependencies": { diff --git a/stores/astra/package.json b/stores/astra/package.json index 64985f1cf4..0f0b0fd0b1 100644 --- a/stores/astra/package.json +++ b/stores/astra/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/stores/chroma/package.json b/stores/chroma/package.json index 20b3a38a48..a8e4331816 100644 --- a/stores/chroma/package.json +++ b/stores/chroma/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/stores/pg/package.json b/stores/pg/package.json index 3a0ed37c3c..6b970ff55f 100644 --- a/stores/pg/package.json +++ b/stores/pg/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "pretest": "docker compose up -d && (for i in $(seq 1 30); do docker compose exec -T db pg_isready -U postgres && break || (sleep 1; [ $i -eq 30 ] && exit 1); done)", "test": "vitest run", diff --git a/stores/pinecone/package.json b/stores/pinecone/package.json index ba074f55de..6c238fc8f5 100644 --- a/stores/pinecone/package.json +++ b/stores/pinecone/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/stores/qdrant/package.json b/stores/qdrant/package.json index 4f760a2a85..85cbc78504 100644 --- a/stores/qdrant/package.json +++ b/stores/qdrant/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/stores/upstash/package.json b/stores/upstash/package.json index 7bb2d56789..3d1e8eae76 100644 --- a/stores/upstash/package.json +++ b/stores/upstash/package.json @@ -10,6 +10,10 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" @@ -18,7 +22,7 @@ "pretest": "docker compose up -d", "test": "vitest run", "posttest": "docker compose down", - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch" }, "dependencies": { diff --git a/stores/vectorize/package.json b/stores/vectorize/package.json index 4c384796e3..627dc0328c 100644 --- a/stores/vectorize/package.json +++ b/stores/vectorize/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "vitest run" }, diff --git a/vector-stores/astra/package.json b/vector-stores/astra/package.json index a521f394d5..15b3fd24d6 100644 --- a/vector-stores/astra/package.json +++ b/vector-stores/astra/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo deprecated" }, diff --git a/vector-stores/chroma/package.json b/vector-stores/chroma/package.json index 12846ec6bd..3cfb6792a2 100644 --- a/vector-stores/chroma/package.json +++ b/vector-stores/chroma/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo deprecated" }, diff --git a/vector-stores/pg/package.json b/vector-stores/pg/package.json index 1daf872b90..73d6b821a6 100644 --- a/vector-stores/pg/package.json +++ b/vector-stores/pg/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo deprecated" }, diff --git a/vector-stores/pinecone/package.json b/vector-stores/pinecone/package.json index 8c5213b1bb..2842d59671 100644 --- a/vector-stores/pinecone/package.json +++ b/vector-stores/pinecone/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo deprecated" }, diff --git a/vector-stores/qdrant/package.json b/vector-stores/qdrant/package.json index 20a1573247..79c8cc291d 100644 --- a/vector-stores/qdrant/package.json +++ b/vector-stores/qdrant/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo deprecated" }, diff --git a/vector-stores/upstash/package.json b/vector-stores/upstash/package.json index b696a35b07..8de95dbfdf 100644 --- a/vector-stores/upstash/package.json +++ b/vector-stores/upstash/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo deprecated" }, diff --git a/vector-stores/vectorize/package.json b/vector-stores/vectorize/package.json index 15e4d11634..dc0279f67f 100644 --- a/vector-stores/vectorize/package.json +++ b/vector-stores/vectorize/package.json @@ -10,12 +10,16 @@ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "scripts": { - "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake", + "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake", "build:watch": "pnpm build --watch", "test": "echo \"deprecated\"" }, From 87357303fdbbe59e55e6e59b182cd8e12cfab617 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Fri, 21 Feb 2025 15:08:43 +0100 Subject: [PATCH 5/7] add version --- .changeset/hot-mice-invent.md | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .changeset/hot-mice-invent.md diff --git a/.changeset/hot-mice-invent.md b/.changeset/hot-mice-invent.md new file mode 100644 index 0000000000..4c7f5908ad --- /dev/null +++ b/.changeset/hot-mice-invent.md @@ -0,0 +1,46 @@ +--- +'@mastra/stabilityai': patch +'@mastra/vector-vectorize': patch +'@mastra/firecrawl': patch +'@mastra/vector-pinecone': patch +'@mastra/client-js': patch +'@mastra/composio': patch +'@mastra/vector-upstash': patch +'@mastra/deployer-cloudflare': patch +'@mastra/vector-chroma': patch +'@mastra/vector-qdrant': patch +'@mastra/github': patch +'@mastra/vector-astra': patch +'@mastra/ragie': patch +'@mastra/deployer-netlify': patch +'@mastra/deployer': patch +'@mastra/speech-elevenlabs': patch +'@mastra/deployer-vercel': patch +'@mastra/loggers': patch +'@mastra/speech-replicate': patch +'@mastra/speech-speechify': patch +'@mastra/vectorize': patch +'@mastra/vector-pg': patch +'@mastra/memory': patch +'@mastra/speech-deepgram': patch +'@mastra/store-upstash': patch +'@mastra/pinecone': patch +'@mastra/evals': patch +'@mastra/upstash': patch +'@mastra/core': patch +'@mastra/speech-google': patch +'@mastra/speech-openai': patch +'@mastra/speech-playai': patch +'@mastra/chroma': patch +'@mastra/qdrant': patch +'@mastra/mcp': patch +'@mastra/rag': patch +'@mastra/speech-azure': patch +'@mastra/astra': patch +'@mastra/speech-murf': patch +'@mastra/speech-ibm': patch +'@mastra/store-pg': patch +'@mastra/pg': patch +--- + +Add support for commonjs (require) From 8fc95d7d1c3b9d40148bdd9fe8e8cf5bc8187879 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Mon, 24 Feb 2025 16:35:36 +0100 Subject: [PATCH 6/7] SAVEPOINT --- packages/core/package.json | 12 +++--- packages/deployer/src/build/analyze.ts | 8 ++++ .../src/build/babel/capture-imports.ts | 42 ++++++++++++++++++ packages/deployer/src/build/bundle.ts | 2 + packages/deployer/src/build/bundler.ts | 43 ++++++++++++------- packages/deployer/src/bundler/index.ts | 1 + 6 files changed, 86 insertions(+), 22 deletions(-) create mode 100644 packages/deployer/src/build/babel/capture-imports.ts diff --git a/packages/core/package.json b/packages/core/package.json index efe607fe95..03c98a3736 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -15,7 +15,7 @@ "default": "./dist/index.js" }, "require": { - "types": "./dist/index.d.ts", + "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, @@ -25,7 +25,7 @@ "default": "./dist/*/index.js" }, "require": { - "types": "./dist/*/index.d.ts", + "types": "./dist/*/index.d.cts", "default": "./dist/*/index.cjs" } }, @@ -35,7 +35,7 @@ "default": "./dist/vector/libsql/index.js" }, "require": { - "types": "./dist/vector/libsql/index.d.ts", + "types": "./dist/vector/libsql/index.d.cts", "default": "./dist/vector/libsql/index.cjs" } }, @@ -45,7 +45,7 @@ "default": "./dist/utils.js" }, "require": { - "types": "./dist/utils.d.ts", + "types": "./dist/utils.d.cts", "default": "./dist/utils.cjs" } }, @@ -55,7 +55,7 @@ "default": "./dist/base.js" }, "require": { - "types": "./dist/base.d.ts", + "types": "./dist/base.d.cts", "default": "./dist/base.cjs" } }, @@ -65,7 +65,7 @@ "default": "./dist/telemetry/otel-vendor.js" }, "require": { - "types": "./dist/telemetry/otel-vendor.d.ts", + "types": "./dist/telemetry/otel-vendor.d.cts", "default": "./dist/telemetry/otel-vendor.cjs" } }, diff --git a/packages/deployer/src/build/analyze.ts b/packages/deployer/src/build/analyze.ts index 3882aaffb6..79c13ce395 100644 --- a/packages/deployer/src/build/analyze.ts +++ b/packages/deployer/src/build/analyze.ts @@ -59,6 +59,12 @@ async function analyze( }, } satisfies Plugin, json(), + commonjs({ + strictRequires: 'debug', + transformMixedEsModules: true, + ignoreTryCatch: false, + extensions: ['.js', '.ts'], + }), esbuild({ target: 'node20', platform, @@ -79,6 +85,8 @@ async function analyze( }); await optimizerBundler.close(); + debugger; + console.log(output[0].code, output[0].importedBindings); const depsToOptimize = new Map(Object.entries(output[0].importedBindings)); for (const dep of depsToOptimize.keys()) { diff --git a/packages/deployer/src/build/babel/capture-imports.ts b/packages/deployer/src/build/babel/capture-imports.ts new file mode 100644 index 0000000000..337432a097 --- /dev/null +++ b/packages/deployer/src/build/babel/capture-imports.ts @@ -0,0 +1,42 @@ +import babel from '@babel/core'; + +import { isNodeBuiltin } from '../isNodeBuiltin'; + +export function captureImports(dependencies: Map) { + const t = babel.types; + + return { + name: 'capture-imports', + visitor: { + ImportDeclaration(path) { + const source = path.node.source.value; + + // do not capture node builtins + if (isNodeBuiltin(source)) { + return; + } + + if (!dependencies.has(source)) { + dependencies.set(source, [] as [string, string][]); + } + + const bindings = dependencies.get(source)!; + if (path.node.specifiers) { + const specifiers = path.node.specifiers; + for (const specifier of specifiers) { + if (t.isImportNamespaceSpecifier(specifier)) { + bindings.push(['*', specifier.local.name]); + } else if (t.isImportDefaultSpecifier(specifier)) { + bindings.push(['default', specifier.local.name]); + } else { + bindings.push([ + t.isStringLiteral(specifier.imported) ? `"${specifier.imported.value}"` : specifier.imported.name, + specifier.local.name, + ]); + } + } + } + }, + }, + } as babel.PluginObj; +} diff --git a/packages/deployer/src/build/bundle.ts b/packages/deployer/src/build/bundle.ts index 4bcd4bb028..46ff1355e9 100644 --- a/packages/deployer/src/build/bundle.ts +++ b/packages/deployer/src/build/bundle.ts @@ -42,6 +42,8 @@ function getOptions(inputOptions: NormalizedInputOptions, platform: 'node' | 'br browser: true, }); + debugger; + return { logLevel: 'silent', ...inputOptions, diff --git a/packages/deployer/src/build/bundler.ts b/packages/deployer/src/build/bundler.ts index cf51118f77..bd4abc7af6 100644 --- a/packages/deployer/src/build/bundler.ts +++ b/packages/deployer/src/build/bundler.ts @@ -1,4 +1,5 @@ import alias from '@rollup/plugin-alias'; +import commonjs from '@rollup/plugin-commonjs'; import json from '@rollup/plugin-json'; import nodeResolve from '@rollup/plugin-node-resolve'; import { fileURLToPath } from 'node:url'; @@ -29,6 +30,8 @@ export async function getInputOptions( browser: true, }); + debugger; + return { logLevel: process.env.MASTRA_BUNDLER_DEBUG === 'true' ? 'debug' : 'silent', treeshake: true, @@ -68,22 +71,6 @@ export async function getInputOptions( { find: /^\#mastra$/, replacement: entryFile.replaceAll('\\', '/') }, ], }), - nodeResolvePlugin, - // for debugging - // { - // name: 'logger', - // //@ts-ignore - // resolveId(id, ...args) { - // console.log({ id, args }); - // }, - // // @ts-ignore - // transform(code, id) { - // if (code.includes('class Duplexify ')) { - // console.log({ duplex: id }); - // } - // }, - // }, - json(), esbuild({ target: 'node20', platform, @@ -92,6 +79,30 @@ export async function getInputOptions( 'process.env.NODE_ENV': JSON.stringify('production'), }, }), + commonjs({ + include: /src/, + extensions: ['.js', '.ts'], + ignore: id => { + console.log({ id }); + return false; + }, + }), + nodeResolvePlugin, + // for debugging + { + name: 'logger', + //@ts-ignore + resolveId(id, ...args) { + console.log({ id, args }); + }, + // @ts-ignore + // transform(code, id) { + // if (code.includes('class Duplexify ')) { + // console.log({ duplex: id }); + // } + // }, + }, + json(), removeDeployer(entryFile), // treeshake unused imports esbuild({ diff --git a/packages/deployer/src/bundler/index.ts b/packages/deployer/src/bundler/index.ts index 44a7512475..cce3aa9a02 100644 --- a/packages/deployer/src/bundler/index.ts +++ b/packages/deployer/src/bundler/index.ts @@ -133,6 +133,7 @@ export abstract class Bundler extends MastraBundler { inputOptions.input = { index: serverFile }; } + console.log(serverFile); const bundler = await this.createBundler(inputOptions, { dir: bundleLocation }); await bundler.write(); From 6595d9f7939b67ad81f5c8ffc3c7568ac3974251 Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Mon, 24 Feb 2025 16:50:31 +0100 Subject: [PATCH 7/7] SAVEPOINT --- packages/deployer/src/build/analyze.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/deployer/src/build/analyze.ts b/packages/deployer/src/build/analyze.ts index 79c13ce395..d110b9b0a7 100644 --- a/packages/deployer/src/build/analyze.ts +++ b/packages/deployer/src/build/analyze.ts @@ -63,6 +63,10 @@ async function analyze( strictRequires: 'debug', transformMixedEsModules: true, ignoreTryCatch: false, + requireReturnsDefault(id) { + console.log({ id }); + return false; + }, extensions: ['.js', '.ts'], }), esbuild({