@decocms/runtime 0.28.0-beta.1 → 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.
@@ -1,11 +1,11 @@
1
- export { D as DeconfigClient, i as DeconfigResource, b as DeconfigResourceOptions, E as EnhancedResourcesTools, N as NotFoundError, h as RESOURCE_WATCH_BASE_PATHNAME, R as ResourcesBinding, d as ResourcesTools, U as UserInputError, W as WatchOptions, a as createDeconfigResource } from '../../index-DqyElLzZ.js';
1
+ export { D as DeconfigClient, i as DeconfigResource, b as DeconfigResourceOptions, E as EnhancedResourcesTools, N as NotFoundError, h as RESOURCE_WATCH_BASE_PATHNAME, R as ResourcesBinding, d as ResourcesTools, U as UserInputError, W as WatchOptions, a as createDeconfigResource } from '../../index-n3Qln2L7.js';
2
2
  import '@mastra/core';
3
- import '../../index-COMJ3oN7.js';
3
+ import '../../index-DjDlgN1G.js';
4
4
  import '@cloudflare/workers-types';
5
5
  import 'zod';
6
6
  import '@mastra/core/di';
7
7
  import '@mastra/core/workflows';
8
8
  import '../../resources.js';
9
- import '../../mcp-Dbqp-p04.js';
9
+ import '../../mcp-DZsyjtAW.js';
10
10
  import '@decocms/bindings/connection';
11
11
  import '@decocms/bindings';
@@ -1,10 +1,10 @@
1
1
  import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
- export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-DqyElLzZ.js';
3
+ export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-n3Qln2L7.js';
4
4
  import * as _mastra_core from '@mastra/core';
5
- import { c as createPrivateTool, a as createStreamableTool, S as StreamableTool } from '../index-COMJ3oN7.js';
5
+ import { c as createPrivateTool, a as createStreamableTool, S as StreamableTool } from '../index-DjDlgN1G.js';
6
6
  import { MCPConnection } from '@decocms/bindings/connection';
7
- import { M as MCPClientFetchStub } from '../mcp-Dbqp-p04.js';
7
+ import { M as MCPClientFetchStub } from '../mcp-DZsyjtAW.js';
8
8
  import { ToolBinder } from '@decocms/bindings';
9
9
  import '@cloudflare/workers-types';
10
10
  import '@mastra/core/di';
@@ -312,13 +312,13 @@ declare const ViewBinding: {
312
312
  prompt: z.ZodOptional<z.ZodString>;
313
313
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
314
314
  }, "strip", z.ZodTypeAny, {
315
- title: string;
316
315
  tools: string[];
316
+ title: string;
317
317
  icon: string;
318
- url?: string | undefined;
318
+ id?: string | undefined;
319
319
  name?: string | undefined;
320
+ url?: string | undefined;
320
321
  description?: string | undefined;
321
- id?: string | undefined;
322
322
  resourceName?: string | undefined;
323
323
  mimeTypePattern?: string | undefined;
324
324
  prompt?: string | undefined;
@@ -326,25 +326,25 @@ declare const ViewBinding: {
326
326
  }, {
327
327
  title: string;
328
328
  icon: string;
329
- url?: string | undefined;
329
+ id?: string | undefined;
330
330
  name?: string | undefined;
331
+ url?: string | undefined;
331
332
  description?: string | undefined;
332
- tools?: string[] | undefined;
333
- id?: string | undefined;
334
333
  resourceName?: string | undefined;
334
+ tools?: string[] | undefined;
335
335
  mimeTypePattern?: string | undefined;
336
336
  prompt?: string | undefined;
337
337
  installBehavior?: "open" | "none" | "autoPin" | undefined;
338
338
  }>, "many">;
339
339
  }, "strip", z.ZodTypeAny, {
340
340
  views: {
341
- title: string;
342
341
  tools: string[];
342
+ title: string;
343
343
  icon: string;
344
- url?: string | undefined;
344
+ id?: string | undefined;
345
345
  name?: string | undefined;
346
+ url?: string | undefined;
346
347
  description?: string | undefined;
347
- id?: string | undefined;
348
348
  resourceName?: string | undefined;
349
349
  mimeTypePattern?: string | undefined;
350
350
  prompt?: string | undefined;
@@ -354,12 +354,12 @@ declare const ViewBinding: {
354
354
  views: {
355
355
  title: string;
356
356
  icon: string;
357
- url?: string | undefined;
357
+ id?: string | undefined;
358
358
  name?: string | undefined;
359
+ url?: string | undefined;
359
360
  description?: string | undefined;
360
- tools?: string[] | undefined;
361
- id?: string | undefined;
362
361
  resourceName?: string | undefined;
362
+ tools?: string[] | undefined;
363
363
  mimeTypePattern?: string | undefined;
364
364
  prompt?: string | undefined;
365
365
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -391,13 +391,13 @@ declare const VIEW_BINDING: readonly [{
391
391
  prompt: z.ZodOptional<z.ZodString>;
392
392
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
393
393
  }, "strip", z.ZodTypeAny, {
394
- title: string;
395
394
  tools: string[];
395
+ title: string;
396
396
  icon: string;
397
- url?: string | undefined;
397
+ id?: string | undefined;
398
398
  name?: string | undefined;
399
+ url?: string | undefined;
399
400
  description?: string | undefined;
400
- id?: string | undefined;
401
401
  resourceName?: string | undefined;
402
402
  mimeTypePattern?: string | undefined;
403
403
  prompt?: string | undefined;
@@ -405,25 +405,25 @@ declare const VIEW_BINDING: readonly [{
405
405
  }, {
406
406
  title: string;
407
407
  icon: string;
408
- url?: string | undefined;
408
+ id?: string | undefined;
409
409
  name?: string | undefined;
410
+ url?: string | undefined;
410
411
  description?: string | undefined;
411
- tools?: string[] | undefined;
412
- id?: string | undefined;
413
412
  resourceName?: string | undefined;
413
+ tools?: string[] | undefined;
414
414
  mimeTypePattern?: string | undefined;
415
415
  prompt?: string | undefined;
416
416
  installBehavior?: "open" | "none" | "autoPin" | undefined;
417
417
  }>, "many">;
418
418
  }, "strip", z.ZodTypeAny, {
419
419
  views: {
420
- title: string;
421
420
  tools: string[];
421
+ title: string;
422
422
  icon: string;
423
- url?: string | undefined;
423
+ id?: string | undefined;
424
424
  name?: string | undefined;
425
+ url?: string | undefined;
425
426
  description?: string | undefined;
426
- id?: string | undefined;
427
427
  resourceName?: string | undefined;
428
428
  mimeTypePattern?: string | undefined;
429
429
  prompt?: string | undefined;
@@ -433,12 +433,12 @@ declare const VIEW_BINDING: readonly [{
433
433
  views: {
434
434
  title: string;
435
435
  icon: string;
436
- url?: string | undefined;
436
+ id?: string | undefined;
437
437
  name?: string | undefined;
438
+ url?: string | undefined;
438
439
  description?: string | undefined;
439
- tools?: string[] | undefined;
440
- id?: string | undefined;
441
440
  resourceName?: string | undefined;
441
+ tools?: string[] | undefined;
442
442
  mimeTypePattern?: string | undefined;
443
443
  prompt?: string | undefined;
444
444
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -459,13 +459,13 @@ declare const listViewsSchema: z.ZodObject<{
459
459
  prompt: z.ZodOptional<z.ZodString>;
460
460
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
461
461
  }, "strip", z.ZodTypeAny, {
462
- title: string;
463
462
  tools: string[];
463
+ title: string;
464
464
  icon: string;
465
- url?: string | undefined;
465
+ id?: string | undefined;
466
466
  name?: string | undefined;
467
+ url?: string | undefined;
467
468
  description?: string | undefined;
468
- id?: string | undefined;
469
469
  resourceName?: string | undefined;
470
470
  mimeTypePattern?: string | undefined;
471
471
  prompt?: string | undefined;
@@ -473,25 +473,25 @@ declare const listViewsSchema: z.ZodObject<{
473
473
  }, {
474
474
  title: string;
475
475
  icon: string;
476
- url?: string | undefined;
476
+ id?: string | undefined;
477
477
  name?: string | undefined;
478
+ url?: string | undefined;
478
479
  description?: string | undefined;
479
- tools?: string[] | undefined;
480
- id?: string | undefined;
481
480
  resourceName?: string | undefined;
481
+ tools?: string[] | undefined;
482
482
  mimeTypePattern?: string | undefined;
483
483
  prompt?: string | undefined;
484
484
  installBehavior?: "open" | "none" | "autoPin" | undefined;
485
485
  }>, "many">;
486
486
  }, "strip", z.ZodTypeAny, {
487
487
  views: {
488
- title: string;
489
488
  tools: string[];
489
+ title: string;
490
490
  icon: string;
491
- url?: string | undefined;
491
+ id?: string | undefined;
492
492
  name?: string | undefined;
493
+ url?: string | undefined;
493
494
  description?: string | undefined;
494
- id?: string | undefined;
495
495
  resourceName?: string | undefined;
496
496
  mimeTypePattern?: string | undefined;
497
497
  prompt?: string | undefined;
@@ -501,12 +501,12 @@ declare const listViewsSchema: z.ZodObject<{
501
501
  views: {
502
502
  title: string;
503
503
  icon: string;
504
- url?: string | undefined;
504
+ id?: string | undefined;
505
505
  name?: string | undefined;
506
+ url?: string | undefined;
506
507
  description?: string | undefined;
507
- tools?: string[] | undefined;
508
- id?: string | undefined;
509
508
  resourceName?: string | undefined;
509
+ tools?: string[] | undefined;
510
510
  mimeTypePattern?: string | undefined;
511
511
  prompt?: string | undefined;
512
512
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -751,11 +751,11 @@ declare const DeleteOutputSchema: z.ZodObject<{
751
751
  success: z.ZodBoolean;
752
752
  uri: z.ZodString;
753
753
  }, "strip", z.ZodTypeAny, {
754
- uri: string;
755
754
  success: boolean;
756
- }, {
757
755
  uri: string;
756
+ }, {
758
757
  success: boolean;
758
+ uri: string;
759
759
  }>;
760
760
  /**
761
761
  * Factory function to create item schema for a specific resource type
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;
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.28.0-beta.1",
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": "workspace:*",
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",