@decocms/runtime 0.27.0 → 0.28.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/drizzle.d.ts CHANGED
@@ -3,14 +3,14 @@ import * as drizzleOrm from 'drizzle-orm';
3
3
  export { drizzleOrm as orm };
4
4
  import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
5
5
  export * from 'drizzle-orm/sqlite-core';
6
- import { D as DefaultEnv } from './index-COMJ3oN7.js';
6
+ import { D as DefaultEnv } from './index-DjDlgN1G.js';
7
7
  import '@cloudflare/workers-types';
8
8
  import 'zod';
9
9
  import '@mastra/core';
10
10
  import '@mastra/core/di';
11
11
  import '@mastra/core/workflows';
12
12
  import './resources.js';
13
- import './mcp-Dbqp-p04.js';
13
+ import './mcp-DZsyjtAW.js';
14
14
  import '@decocms/bindings/connection';
15
15
  import '@decocms/bindings';
16
16
 
@@ -4,7 +4,7 @@ import { ToolExecutionContext, ToolAction, Tool, Workflow as Workflow$1 } from '
4
4
  import { RuntimeContext } from '@mastra/core/di';
5
5
  import { createWorkflow, Step as Step$1, ExecuteFunction, DefaultEngineType } from '@mastra/core/workflows';
6
6
  import { ResourceCreateInputSchema, ResourceUpdateInputSchema, ResourceDeleteInputSchema } from './resources.js';
7
- import { Q as QueryResult } from './mcp-Dbqp-p04.js';
7
+ import { Q as QueryResult } from './mcp-DZsyjtAW.js';
8
8
  import { MCPConnection } from '@decocms/bindings/connection';
9
9
  import '@decocms/bindings';
10
10
 
@@ -1,8 +1,8 @@
1
1
  import * as _mastra_core from '@mastra/core';
2
- import { D as DefaultEnv, S as StreamableTool } from './index-COMJ3oN7.js';
2
+ import { D as DefaultEnv, S as StreamableTool } from './index-DjDlgN1G.js';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { M as MCPClientFetchStub } from './mcp-Dbqp-p04.js';
5
+ import { M as MCPClientFetchStub } from './mcp-DZsyjtAW.js';
6
6
 
7
7
  type BaseResourceDataSchema = z.ZodObject<{
8
8
  name: z.ZodString;
@@ -277,11 +277,11 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
277
277
  success: z.ZodBoolean;
278
278
  uri: z.ZodString;
279
279
  }, "strip", z.ZodTypeAny, {
280
- uri: string;
281
280
  success: boolean;
282
- }, {
283
281
  uri: string;
282
+ }, {
284
283
  success: boolean;
284
+ uri: string;
285
285
  }>;
286
286
  readonly opt: true;
287
287
  }, {
@@ -402,12 +402,12 @@ declare const deconfigTools: readonly [{
402
402
  format: z.ZodOptional<z.ZodEnum<["base64", "byteArray", "plainString", "json"]>>;
403
403
  }, "strip", z.ZodTypeAny, {
404
404
  path: string;
405
- format?: "json" | "base64" | "byteArray" | "plainString" | undefined;
406
405
  branch?: string | undefined;
406
+ format?: "json" | "base64" | "byteArray" | "plainString" | undefined;
407
407
  }, {
408
408
  path: string;
409
- format?: "json" | "base64" | "byteArray" | "plainString" | undefined;
410
409
  branch?: string | undefined;
410
+ format?: "json" | "base64" | "byteArray" | "plainString" | undefined;
411
411
  }>;
412
412
  readonly outputSchema: z.ZodObject<{
413
413
  content: z.ZodAny;
@@ -447,16 +447,16 @@ declare const deconfigTools: readonly [{
447
447
  content: string | number[] | {
448
448
  base64: string;
449
449
  };
450
- metadata?: Record<string, any> | undefined;
451
450
  branch?: string | undefined;
451
+ metadata?: Record<string, any> | undefined;
452
452
  expectedCtime?: number | undefined;
453
453
  }, {
454
454
  path: string;
455
455
  content: string | number[] | {
456
456
  base64: string;
457
457
  };
458
- metadata?: Record<string, any> | undefined;
459
458
  branch?: string | undefined;
459
+ metadata?: Record<string, any> | undefined;
460
460
  expectedCtime?: number | undefined;
461
461
  }>;
462
462
  readonly outputSchema: z.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import '@cloudflare/workers-types';
2
2
  import 'zod';
3
- export { B as BindingsObject, r as Contract, D as DefaultEnv, s as Migration, n as RequestContext, o as UnauthorizedError, m as User, U as UserDefaultExport, l as WorkersMCPBindings, W as WorkspaceDB, t as WranglerConfig, q as proxyConnectionForId, w as withBindings, p as withRuntime } from './index-COMJ3oN7.js';
4
- export { C as CreateStubAPIOptions, c as createMCPFetchStub } from './mcp-Dbqp-p04.js';
3
+ export { B as BindingsObject, r as Contract, D as DefaultEnv, s as Migration, n as RequestContext, o as UnauthorizedError, m as User, U as UserDefaultExport, l as WorkersMCPBindings, W as WorkspaceDB, t as WranglerConfig, q as proxyConnectionForId, w as withBindings, p as withRuntime } from './index-DjDlgN1G.js';
4
+ export { C as CreateStubAPIOptions, c as createMCPFetchStub } from './mcp-DZsyjtAW.js';
5
5
  export { ToolBinder } from '@decocms/bindings';
6
6
  import '@mastra/core';
7
7
  import '@mastra/core/di';
package/dist/mastra.d.ts CHANGED
@@ -2,9 +2,9 @@ import '@mastra/core';
2
2
  import '@mastra/core/di';
3
3
  export { cloneStep, cloneWorkflow, createWorkflow } from '@mastra/core/workflows';
4
4
  import 'zod';
5
- export { A as AppContext, h as CreateMCPServerOptions, C as CreatedTool, E as ExecWithContext, F as Fetch, I as Integration, M as MCPServer, R as Resources, e as Step, S as StreamableTool, V as ViewExport, k as createMCPServer, c as createPrivateTool, b as createRuntimeContext, g as createStep, f as createStepFromTool, a as createStreamableTool, d as createTool, i as isStreamableTool, j as isWorkflow } from './index-COMJ3oN7.js';
5
+ export { A as AppContext, h as CreateMCPServerOptions, C as CreatedTool, E as ExecWithContext, F as Fetch, I as Integration, M as MCPServer, R as Resources, e as Step, S as StreamableTool, V as ViewExport, k as createMCPServer, c as createPrivateTool, b as createRuntimeContext, g as createStep, f as createStepFromTool, a as createStreamableTool, d as createTool, i as isStreamableTool, j as isWorkflow } from './index-DjDlgN1G.js';
6
6
  import './resources.js';
7
7
  import '@cloudflare/workers-types';
8
- import './mcp-Dbqp-p04.js';
8
+ import './mcp-DZsyjtAW.js';
9
9
  import '@decocms/bindings/connection';
10
10
  import '@decocms/bindings';
@@ -28,7 +28,7 @@ declare const QueryResult: z.ZodObject<{
28
28
  rows_read?: number | undefined;
29
29
  rows_written?: number | undefined;
30
30
  served_by_primary?: boolean | undefined;
31
- served_by_region?: "OC" | "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | undefined;
31
+ served_by_region?: "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | "OC" | undefined;
32
32
  size_after?: number | undefined;
33
33
  timings?: {
34
34
  sql_duration_ms?: number | undefined;
@@ -41,7 +41,7 @@ declare const QueryResult: z.ZodObject<{
41
41
  rows_read?: number | undefined;
42
42
  rows_written?: number | undefined;
43
43
  served_by_primary?: boolean | undefined;
44
- served_by_region?: "OC" | "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | undefined;
44
+ served_by_region?: "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | "OC" | undefined;
45
45
  size_after?: number | undefined;
46
46
  timings?: {
47
47
  sql_duration_ms?: number | undefined;
@@ -58,7 +58,7 @@ declare const QueryResult: z.ZodObject<{
58
58
  rows_read?: number | undefined;
59
59
  rows_written?: number | undefined;
60
60
  served_by_primary?: boolean | undefined;
61
- served_by_region?: "OC" | "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | undefined;
61
+ served_by_region?: "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | "OC" | undefined;
62
62
  size_after?: number | undefined;
63
63
  timings?: {
64
64
  sql_duration_ms?: number | undefined;
@@ -75,7 +75,7 @@ declare const QueryResult: z.ZodObject<{
75
75
  rows_read?: number | undefined;
76
76
  rows_written?: number | undefined;
77
77
  served_by_primary?: boolean | undefined;
78
- served_by_region?: "OC" | "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | undefined;
78
+ served_by_region?: "WNAM" | "ENAM" | "WEUR" | "EEUR" | "APAC" | "OC" | undefined;
79
79
  size_after?: number | undefined;
80
80
  timings?: {
81
81
  sql_duration_ms?: number | undefined;
@@ -1,8 +1,11 @@
1
1
  import * as zod from 'zod';
2
2
  import { Client as Client$1, ClientOptions } from '@modelcontextprotocol/sdk/client/index.js';
3
+ import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
4
+ import { WebSocketClientTransport } from '@modelcontextprotocol/sdk/client/websocket.js';
3
5
  import { RequestOptions } from '@modelcontextprotocol/sdk/shared/protocol.js';
4
6
  import { Implementation, ListToolsRequest } from '@modelcontextprotocol/sdk/types.js';
5
7
  import { MCPConnection } from '@decocms/bindings/connection';
8
+ import { HTTPClientTransport } from '@decocms/bindings/client';
6
9
 
7
10
  /**
8
11
  * WARNNING: This is a hack to prevent schema compilation errors.
@@ -224,6 +227,6 @@ declare const createServerClient: (mcpServer: {
224
227
  connection: MCPConnection;
225
228
  name?: string;
226
229
  }, signal?: AbortSignal, extraHeaders?: Record<string, string>) => Promise<ServerClient>;
227
- declare const createTransport: (connection: MCPConnection, signal?: AbortSignal, extraHeaders?: Record<string, string>) => any;
230
+ declare const createTransport: (connection: MCPConnection, signal?: AbortSignal, extraHeaders?: Record<string, string>) => WebSocketClientTransport | SSEClientTransport | HTTPClientTransport | null;
228
231
 
229
232
  export { type ServerClient, createServerClient, createTransport };
package/dist/proxy.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as CreateStubAPIOptions } from './mcp-Dbqp-p04.js';
1
+ import { C as CreateStubAPIOptions } from './mcp-DZsyjtAW.js';
2
2
  import 'zod';
3
3
  import '@decocms/bindings/connection';
4
4
  import '@decocms/bindings';
@@ -4,11 +4,11 @@ declare const ResourcesReadInputSchema: z.ZodObject<{
4
4
  name: z.ZodString;
5
5
  uri: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- uri: string;
8
7
  name: string;
9
- }, {
10
8
  uri: string;
9
+ }, {
11
10
  name: string;
11
+ uri: string;
12
12
  }>;
13
13
  declare const ResourcesReadOutputSchema: z.ZodObject<{
14
14
  name: z.ZodString;
@@ -25,24 +25,24 @@ declare const ResourcesReadOutputSchema: z.ZodObject<{
25
25
  type: z.ZodEnum<["text", "blob"]>;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  type: "text" | "blob";
28
+ name: string;
28
29
  data: string;
29
30
  uri: string;
30
- name: string;
31
+ description?: string | undefined;
31
32
  mimeType?: string | undefined;
32
33
  title?: string | undefined;
33
- description?: string | undefined;
34
34
  annotations?: Record<string, string> | undefined;
35
35
  thumbnail?: string | undefined;
36
36
  timestamp?: string | undefined;
37
37
  size?: number | undefined;
38
38
  }, {
39
39
  type: "text" | "blob";
40
+ name: string;
40
41
  data: string;
41
42
  uri: string;
42
- name: string;
43
+ description?: string | undefined;
43
44
  mimeType?: string | undefined;
44
45
  title?: string | undefined;
45
- description?: string | undefined;
46
46
  annotations?: Record<string, string> | undefined;
47
47
  thumbnail?: string | undefined;
48
48
  timestamp?: string | undefined;
@@ -76,21 +76,21 @@ declare const ResourceSearchOutputSchema: z.ZodObject<{
76
76
  size: z.ZodOptional<z.ZodNumber>;
77
77
  annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
78
78
  }, "strip", z.ZodTypeAny, {
79
- uri: string;
80
79
  name: string;
80
+ uri: string;
81
+ description?: string | undefined;
81
82
  mimeType?: string | undefined;
82
83
  title?: string | undefined;
83
- description?: string | undefined;
84
84
  annotations?: Record<string, string> | undefined;
85
85
  thumbnail?: string | undefined;
86
86
  timestamp?: string | undefined;
87
87
  size?: number | undefined;
88
88
  }, {
89
- uri: string;
90
89
  name: string;
90
+ uri: string;
91
+ description?: string | undefined;
91
92
  mimeType?: string | undefined;
92
93
  title?: string | undefined;
93
- description?: string | undefined;
94
94
  annotations?: Record<string, string> | undefined;
95
95
  thumbnail?: string | undefined;
96
96
  timestamp?: string | undefined;
@@ -100,11 +100,11 @@ declare const ResourceSearchOutputSchema: z.ZodObject<{
100
100
  nextCursor: z.ZodOptional<z.ZodString>;
101
101
  }, "strip", z.ZodTypeAny, {
102
102
  items: {
103
- uri: string;
104
103
  name: string;
104
+ uri: string;
105
+ description?: string | undefined;
105
106
  mimeType?: string | undefined;
106
107
  title?: string | undefined;
107
- description?: string | undefined;
108
108
  annotations?: Record<string, string> | undefined;
109
109
  thumbnail?: string | undefined;
110
110
  timestamp?: string | undefined;
@@ -114,11 +114,11 @@ declare const ResourceSearchOutputSchema: z.ZodObject<{
114
114
  nextCursor?: string | undefined;
115
115
  }, {
116
116
  items: {
117
- uri: string;
118
117
  name: string;
118
+ uri: string;
119
+ description?: string | undefined;
119
120
  mimeType?: string | undefined;
120
121
  title?: string | undefined;
121
- description?: string | undefined;
122
122
  annotations?: Record<string, string> | undefined;
123
123
  thumbnail?: string | undefined;
124
124
  timestamp?: string | undefined;
@@ -147,27 +147,27 @@ declare const ResourceCreateInputSchema: z.ZodObject<{
147
147
  }>;
148
148
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
149
149
  }, "strip", z.ZodTypeAny, {
150
+ name: string;
151
+ resourceName: string;
150
152
  content: {
151
153
  type: "text" | "blob";
152
154
  data: string;
153
155
  mimeType?: string | undefined;
154
156
  };
155
- name: string;
156
- resourceName: string;
157
- title?: string | undefined;
158
157
  description?: string | undefined;
159
158
  metadata?: Record<string, any> | undefined;
159
+ title?: string | undefined;
160
160
  }, {
161
+ name: string;
162
+ resourceName: string;
161
163
  content: {
162
164
  type: "text" | "blob";
163
165
  data: string;
164
166
  mimeType?: string | undefined;
165
167
  };
166
- name: string;
167
- resourceName: string;
168
- title?: string | undefined;
169
168
  description?: string | undefined;
170
169
  metadata?: Record<string, any> | undefined;
170
+ title?: string | undefined;
171
171
  }>;
172
172
  declare const ResourceCreateOutputSchema: z.ZodObject<{
173
173
  name: z.ZodString;
@@ -180,21 +180,21 @@ declare const ResourceCreateOutputSchema: z.ZodObject<{
180
180
  size: z.ZodOptional<z.ZodNumber>;
181
181
  annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
182
182
  }, "strip", z.ZodTypeAny, {
183
- uri: string;
184
183
  name: string;
184
+ uri: string;
185
+ description?: string | undefined;
185
186
  mimeType?: string | undefined;
186
187
  title?: string | undefined;
187
- description?: string | undefined;
188
188
  annotations?: Record<string, string> | undefined;
189
189
  thumbnail?: string | undefined;
190
190
  timestamp?: string | undefined;
191
191
  size?: number | undefined;
192
192
  }, {
193
- uri: string;
194
193
  name: string;
194
+ uri: string;
195
+ description?: string | undefined;
195
196
  mimeType?: string | undefined;
196
197
  title?: string | undefined;
197
- description?: string | undefined;
198
198
  annotations?: Record<string, string> | undefined;
199
199
  thumbnail?: string | undefined;
200
200
  timestamp?: string | undefined;
@@ -221,29 +221,29 @@ declare const ResourceUpdateInputSchema: z.ZodObject<{
221
221
  }>>;
222
222
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
223
223
  }, "strip", z.ZodTypeAny, {
224
- uri: string;
225
224
  name: string;
225
+ uri: string;
226
+ description?: string | undefined;
227
+ resourceName?: string | undefined;
228
+ metadata?: Record<string, any> | undefined;
226
229
  content?: {
227
230
  type: "text" | "blob";
228
231
  data: string;
229
232
  mimeType?: string | undefined;
230
233
  } | undefined;
231
234
  title?: string | undefined;
232
- description?: string | undefined;
233
- metadata?: Record<string, any> | undefined;
234
- resourceName?: string | undefined;
235
235
  }, {
236
- uri: string;
237
236
  name: string;
237
+ uri: string;
238
+ description?: string | undefined;
239
+ resourceName?: string | undefined;
240
+ metadata?: Record<string, any> | undefined;
238
241
  content?: {
239
242
  type: "text" | "blob";
240
243
  data: string;
241
244
  mimeType?: string | undefined;
242
245
  } | undefined;
243
246
  title?: string | undefined;
244
- description?: string | undefined;
245
- metadata?: Record<string, any> | undefined;
246
- resourceName?: string | undefined;
247
247
  }>;
248
248
  declare const ResourceUpdateOutputSchema: z.ZodObject<{
249
249
  name: z.ZodString;
@@ -256,21 +256,21 @@ declare const ResourceUpdateOutputSchema: z.ZodObject<{
256
256
  size: z.ZodOptional<z.ZodNumber>;
257
257
  annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
258
258
  }, "strip", z.ZodTypeAny, {
259
- uri: string;
260
259
  name: string;
260
+ uri: string;
261
+ description?: string | undefined;
261
262
  mimeType?: string | undefined;
262
263
  title?: string | undefined;
263
- description?: string | undefined;
264
264
  annotations?: Record<string, string> | undefined;
265
265
  thumbnail?: string | undefined;
266
266
  timestamp?: string | undefined;
267
267
  size?: number | undefined;
268
268
  }, {
269
- uri: string;
270
269
  name: string;
270
+ uri: string;
271
+ description?: string | undefined;
271
272
  mimeType?: string | undefined;
272
273
  title?: string | undefined;
273
- description?: string | undefined;
274
274
  annotations?: Record<string, string> | undefined;
275
275
  thumbnail?: string | undefined;
276
276
  timestamp?: string | undefined;
@@ -281,12 +281,12 @@ declare const ResourceDeleteInputSchema: z.ZodObject<{
281
281
  uri: z.ZodString;
282
282
  force: z.ZodOptional<z.ZodBoolean>;
283
283
  }, "strip", z.ZodTypeAny, {
284
- uri: string;
285
284
  name: string;
285
+ uri: string;
286
286
  force?: boolean | undefined;
287
287
  }, {
288
- uri: string;
289
288
  name: string;
289
+ uri: string;
290
290
  force?: boolean | undefined;
291
291
  }>;
292
292
  declare const ResourceDeleteOutputSchema: z.ZodObject<{
@@ -308,16 +308,16 @@ declare const ResourcesListOutputSchema: z.ZodObject<{
308
308
  hasDelete: z.ZodOptional<z.ZodBoolean>;
309
309
  }, "strip", z.ZodTypeAny, {
310
310
  name: string;
311
- title: string;
312
311
  description: string;
312
+ title: string;
313
313
  icon: string;
314
314
  hasCreate?: boolean | undefined;
315
315
  hasUpdate?: boolean | undefined;
316
316
  hasDelete?: boolean | undefined;
317
317
  }, {
318
318
  name: string;
319
- title: string;
320
319
  description: string;
320
+ title: string;
321
321
  icon: string;
322
322
  hasCreate?: boolean | undefined;
323
323
  hasUpdate?: boolean | undefined;
@@ -326,8 +326,8 @@ declare const ResourcesListOutputSchema: z.ZodObject<{
326
326
  }, "strip", z.ZodTypeAny, {
327
327
  resources: {
328
328
  name: string;
329
- title: string;
330
329
  description: string;
330
+ title: string;
331
331
  icon: string;
332
332
  hasCreate?: boolean | undefined;
333
333
  hasUpdate?: boolean | undefined;
@@ -336,8 +336,8 @@ declare const ResourcesListOutputSchema: z.ZodObject<{
336
336
  }, {
337
337
  resources: {
338
338
  name: string;
339
- title: string;
340
339
  description: string;
340
+ title: string;
341
341
  icon: string;
342
342
  hasCreate?: boolean | undefined;
343
343
  hasUpdate?: boolean | undefined;
package/dist/views.d.ts CHANGED
@@ -14,13 +14,13 @@ declare const ViewsListOutputSchema: z.ZodObject<{
14
14
  prompt: z.ZodOptional<z.ZodString>;
15
15
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- title: string;
18
17
  tools: string[];
18
+ title: string;
19
19
  icon: string;
20
- url?: string | undefined;
20
+ id?: string | undefined;
21
21
  name?: string | undefined;
22
+ url?: string | undefined;
22
23
  description?: string | undefined;
23
- id?: string | undefined;
24
24
  resourceName?: string | undefined;
25
25
  mimeTypePattern?: string | undefined;
26
26
  prompt?: string | undefined;
@@ -28,25 +28,25 @@ declare const ViewsListOutputSchema: z.ZodObject<{
28
28
  }, {
29
29
  title: string;
30
30
  icon: string;
31
- url?: string | undefined;
31
+ id?: string | undefined;
32
32
  name?: string | undefined;
33
+ url?: string | undefined;
33
34
  description?: string | undefined;
34
- tools?: string[] | undefined;
35
- id?: string | undefined;
36
35
  resourceName?: string | undefined;
36
+ tools?: string[] | undefined;
37
37
  mimeTypePattern?: string | undefined;
38
38
  prompt?: string | undefined;
39
39
  installBehavior?: "open" | "none" | "autoPin" | undefined;
40
40
  }>, "many">;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  views: {
43
- title: string;
44
43
  tools: string[];
44
+ title: string;
45
45
  icon: string;
46
- url?: string | undefined;
46
+ id?: string | undefined;
47
47
  name?: string | undefined;
48
+ url?: string | undefined;
48
49
  description?: string | undefined;
49
- id?: string | undefined;
50
50
  resourceName?: string | undefined;
51
51
  mimeTypePattern?: string | undefined;
52
52
  prompt?: string | undefined;
@@ -56,12 +56,12 @@ declare const ViewsListOutputSchema: z.ZodObject<{
56
56
  views: {
57
57
  title: string;
58
58
  icon: string;
59
- url?: string | undefined;
59
+ id?: string | undefined;
60
60
  name?: string | undefined;
61
+ url?: string | undefined;
61
62
  description?: string | undefined;
62
- tools?: string[] | undefined;
63
- id?: string | undefined;
64
63
  resourceName?: string | undefined;
64
+ tools?: string[] | undefined;
65
65
  mimeTypePattern?: string | undefined;
66
66
  prompt?: string | undefined;
67
67
  installBehavior?: "open" | "none" | "autoPin" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/runtime",
3
- "version": "0.27.0",
3
+ "version": "0.28.0-beta.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@cloudflare/workers-types": "^4.20250617.0",
11
11
  "@deco/mcp": "npm:@jsr/deco__mcp@0.5.5",
12
- "@decocms/bindings": "0.2.1-beta.1",
12
+ "@decocms/bindings": "^0.2.0",
13
13
  "@mastra/cloudflare-d1": "^0.13.4",
14
14
  "@mastra/core": "^0.20.2",
15
15
  "@modelcontextprotocol/sdk": "^1.19.1",
@@ -3,8 +3,8 @@ import type {
3
3
  LanguageModelV2CallOptions,
4
4
  ProviderV2,
5
5
  } from "@ai-sdk/provider";
6
- import { LanguageModelBinding } from "@decocms/bindings/llm";
7
- import { lazy, responseToStream } from "./utils";
6
+ import type { LanguageModelBinding } from "@decocms/bindings/llm";
7
+ import { lazy, responseToStream } from "./utils.ts";
8
8
 
9
9
  const toRegExp = (supportedUrls: Record<string, string[]>) => {
10
10
  return Object.fromEntries(
@@ -45,7 +45,7 @@ export const createProvider = (binding: LLMBindingClient): Provider => {
45
45
  const supportedUrls = lazy(() =>
46
46
  binding
47
47
  .LLM_METADATA({ modelId })
48
- .then((metadata) => toRegExp(metadata.supportedUrls)),
48
+ .then((metadata) => toRegExp(metadata.supportedUrls))
49
49
  );
50
50
 
51
51
  return {
@@ -1,4 +1,4 @@
1
- import { LanguageModelV2StreamPart } from "@ai-sdk/provider";
1
+ import type { LanguageModelV2StreamPart } from "@ai-sdk/provider";
2
2
 
3
3
  // Helper to convert the AI SDK stream to a Response
4
4
  export function streamToResponse(