@mastra/deployer-vercel 1.1.36 → 1.1.37-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/studio/assets/{core-C7US7Gwx.js → core-BbWYOQb7.js} +1 -1
- package/dist/studio/assets/{index-CPfu_HQa.js → index-BqdlHSNB.js} +2 -2
- package/dist/studio/assets/{mastra-C6UVJT3B-Bn2X4uNg.js → main-Ddlvwwwj.js} +353 -424
- package/dist/studio/assets/style-D-K-o1wx.css +1 -0
- package/dist/studio/index.html +2 -2
- package/package.json +5 -5
- package/dist/studio/assets/registry-generator-74I3CDJ7-C_wXMSzK.js +0 -48
- package/dist/studio/assets/style-DSP1J1M5.css +0 -1
package/dist/studio/index.html
CHANGED
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
connectSSE();
|
|
86
86
|
})();
|
|
87
87
|
</script>
|
|
88
|
-
<script type="module" crossorigin src="./assets/index-
|
|
88
|
+
<script type="module" crossorigin src="./assets/index-BqdlHSNB.js"></script>
|
|
89
89
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-PPVm8Dsz.js">
|
|
90
|
-
<link rel="stylesheet" crossorigin href="./assets/style-
|
|
90
|
+
<link rel="stylesheet" crossorigin href="./assets/style-D-K-o1wx.css">
|
|
91
91
|
</head>
|
|
92
92
|
|
|
93
93
|
<body class="overflow-hidden">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-vercel",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.37-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"fs-extra": "^11.3.4",
|
|
30
|
-
"@mastra/deployer": "^1.
|
|
30
|
+
"@mastra/deployer": "^1.42.0-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/fs-extra": "^11.0.4",
|
|
34
34
|
"@types/node": "22.19.15",
|
|
35
35
|
"@vitest/coverage-v8": "4.1.5",
|
|
36
36
|
"@vitest/ui": "4.1.5",
|
|
37
|
-
"eslint": "^10.
|
|
37
|
+
"eslint": "^10.4.1",
|
|
38
38
|
"tsup": "^8.5.1",
|
|
39
39
|
"typescript": "^6.0.3",
|
|
40
40
|
"vitest": "4.1.5",
|
|
41
41
|
"@internal/lint": "0.0.103",
|
|
42
|
-
"@internal/playground": "1.12.
|
|
42
|
+
"@internal/playground": "1.12.3-alpha.0",
|
|
43
43
|
"@internal/types-builder": "0.0.78",
|
|
44
|
-
"@mastra/core": "1.
|
|
44
|
+
"@mastra/core": "1.42.0-alpha.0"
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://mastra.ai",
|
|
47
47
|
"repository": {
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import{p as u}from"./mastra-C6UVJT3B-Bn2X4uNg.js";import"./preload-helper-PPVm8Dsz.js";const l={};var v={};function g(r){return"getAttachmentCapabilities"in r&&typeof r.getAttachmentCapabilities=="function"}async function y(r,d,i="utf-8"){const n=Math.random().toString(36).substring(2,15),o=`${r}.${v.pid}.${Date.now()}.${n}.tmp`;try{await l.writeFile(o,d,i),await l.rename(o,r)}catch(c){try{await l.unlink(o)}catch{}throw c}}async function P(r){const d=[];for(const e of r)await e.shouldEnable()&&d.push(e);const i={},n={},o={},c=3;for(const e of d){let p=null;for(let t=1;t<=c;t++)try{p=await e.fetchProviders();break}catch{if(t<c){const s=Math.min(1e3*Math.pow(2,t-1),5e3);await new Promise(f=>setTimeout(f,s))}}if(!p)continue;const m=e.id==="models.dev",a=g(e)?e.getAttachmentCapabilities():void 0;for(const[t,s]of Object.entries(p)){const f=m?t:t===e.id?e.id:`${e.id}/${t}`;i[f]=s,n[f]=s.models.sort(),a?.[t]&&(o[f]=a[t])}}return{providers:i,models:n,attachmentCapabilities:o}}function M(r){return`/**
|
|
2
|
-
* THIS FILE IS AUTO-GENERATED - DO NOT EDIT
|
|
3
|
-
* Generated from model gateway providers
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Provider models mapping type
|
|
8
|
-
* This is derived from the JSON data and provides type-safe access
|
|
9
|
-
*/
|
|
10
|
-
export type ProviderModelsMap = {
|
|
11
|
-
${Object.entries(r).map(([i,n])=>{const o=n.map(m=>`'${m}'`),e=!/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(i)?`'${i}'`:i,p=` readonly ${e}: readonly [${o.join(", ")}];`;if(p.length>120){const m=n.map(a=>` '${a}',`).join(`
|
|
12
|
-
`);return` readonly ${e}: readonly [
|
|
13
|
-
${m}
|
|
14
|
-
];`}return p}).join(`
|
|
15
|
-
`)}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Union type of all registered provider IDs
|
|
20
|
-
*/
|
|
21
|
-
export type Provider = keyof ProviderModelsMap;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Provider models mapping interface
|
|
25
|
-
*/
|
|
26
|
-
export interface ProviderModels {
|
|
27
|
-
[key: string]: string[];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* OpenAI-compatible model ID type
|
|
32
|
-
* Dynamically derived from ProviderModelsMap
|
|
33
|
-
* Full provider/model paths (e.g., "openai/gpt-4o", "anthropic/claude-3-5-sonnet-20241022")
|
|
34
|
-
*/
|
|
35
|
-
export type ModelRouterModelId =
|
|
36
|
-
| {
|
|
37
|
-
[P in Provider]: \`\${P}/\${ProviderModelsMap[P][number]}\`;
|
|
38
|
-
}[Provider]
|
|
39
|
-
| \`mastra/\${ProviderModelsMap['openrouter'][number]}\`
|
|
40
|
-
| (string & {});
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Extract the model part from a ModelRouterModelId for a specific provider
|
|
44
|
-
* Dynamically derived from ProviderModelsMap
|
|
45
|
-
* Example: ModelForProvider<'openai'> = 'gpt-4o' | 'gpt-4-turbo' | ...
|
|
46
|
-
*/
|
|
47
|
-
export type ModelForProvider<P extends Provider> = ProviderModelsMap[P][number];
|
|
48
|
-
`}async function $(r,d,i,n,o){const c=u.dirname(r),e=u.dirname(d);await l.mkdir(c,{recursive:!0}),await l.mkdir(e,{recursive:!0}),await y(r,JSON.stringify({providers:i,models:n,version:"1.0.0"},null,2),"utf-8");const m=M(n);if(await y(d,m,"utf-8"),o&&Object.keys(o).length>0){const a=u.join(c,"capabilities");await l.mkdir(a,{recursive:!0});try{const t=await l.readdir(a);for(const s of t)s.endsWith(".json")&&await l.unlink(u.join(a,s))}catch{}for(const[t,s]of Object.entries(o)){const f=u.join(a,`${t}.json`);await y(f,JSON.stringify({attachment:s},null,2),"utf-8")}}}export{y as atomicWriteFile,P as fetchProvidersFromGateways,M as generateTypesContent,$ as writeRegistryFiles};
|