@fugood/bricks-project 2.23.0-beta.28 → 2.23.0-beta.31

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.
@@ -359,6 +359,22 @@ export const templateActionNameMap = {
359
359
  variables: 'GENERATOR_GRAPHQL_VARIABLES',
360
360
  },
361
361
  },
362
+ GENERATOR_HTTP: {
363
+ GENERATOR_HTTP_RUN_REQUEST: {
364
+ url: 'GENERATOR_HTTP_URL',
365
+ method: 'GENERATOR_HTTP_METHOD',
366
+ headers: 'GENERATOR_HTTP_HEADERS',
367
+ body: 'GENERATOR_HTTP_BODY',
368
+ timeout: 'GENERATOR_HTTP_TIMEOUT',
369
+ mode: 'GENERATOR_HTTP_MODE',
370
+ credentials: 'GENERATOR_HTTP_CREDENTIALS',
371
+ redirect: 'GENERATOR_HTTP_REDIRECT',
372
+ referrer: 'GENERATOR_HTTP_REFERRER',
373
+ resType: 'GENERATOR_HTTP_RES_TYPE',
374
+ eventStream: 'GENERATOR_HTTP_EVENT_STREAM',
375
+ eventName: 'GENERATOR_HTTP_EVENT_NAME',
376
+ },
377
+ },
362
378
 
363
379
  GENERATOR_WEB_SOCKET: {
364
380
  GENERATOR_WEB_SOCKET_EMIT: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.23.0-beta.28",
3
+ "version": "2.23.0-beta.31",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "bun scripts/build.js"
@@ -14,5 +14,5 @@
14
14
  "lodash": "^4.17.4",
15
15
  "uuid": "^8.3.1"
16
16
  },
17
- "gitHead": "70dc90287c23f791bc1ed079b80586071e439d15"
17
+ "gitHead": "c0cfcde7d913f7393bf60db376925d3eaa4c1d61"
18
18
  }
@@ -412,7 +412,10 @@ Default property:
412
412
  "sttEnabled": true,
413
413
  "sttLivePolicy": "only-in-use",
414
414
  "ttsEnabled": false,
415
- "ttsLivePolicy": "only-in-use"
415
+ "ttsLivePolicy": "only-in-use",
416
+ "mcpResourceAnnotationEnabled": false,
417
+ "mcpResourceAnnotationKeyword": "@resource:",
418
+ "mcpResourceAnnotationFallback": ""
416
419
  }
417
420
  */
418
421
  property?: {
@@ -490,6 +493,12 @@ Default property:
490
493
  }
491
494
  >
492
495
  | DataLink
496
+ /* Enable MCP resource annotation in messages. When enabled, users can use keyboard shortcuts to include MCP resources using the format: @resource:<server-name>:<resource-uri> */
497
+ mcpResourceAnnotationEnabled?: boolean | DataLink
498
+ /* MCP resource annotation keyword (Default: @resource:) */
499
+ mcpResourceAnnotationKeyword?: string | DataLink
500
+ /* Fallback text when MCP server or resource is not found. If empty, an error will be thrown. */
501
+ mcpResourceAnnotationFallback?: string | DataLink
493
502
  }
494
503
  events?: {
495
504
  /* Error event */
@@ -11,8 +11,81 @@ import type {
11
11
  } from '../common'
12
12
 
13
13
  /* Run HTTP request with defined properties */
14
- export type GeneratorHTTPActionRunRequest = Action & {
14
+ export type GeneratorHTTPActionRunRequest = ActionWithParams & {
15
15
  __actionName: 'GENERATOR_HTTP_RUN_REQUEST'
16
+ params?: Array<
17
+ | {
18
+ input: 'url'
19
+ value?: string | DataLink | EventProperty
20
+ mapping?: string
21
+ }
22
+ | {
23
+ input: 'method'
24
+ value?:
25
+ | 'GET'
26
+ | 'POST'
27
+ | 'PUT'
28
+ | 'DELETE'
29
+ | 'HEAD'
30
+ | 'PATCH'
31
+ | 'OPTIONS'
32
+ | 'CONNECT'
33
+ | 'TRACE'
34
+ | DataLink
35
+ | EventProperty
36
+ mapping?: string
37
+ }
38
+ | {
39
+ input: 'headers'
40
+ value?: {} | DataLink | EventProperty
41
+ mapping?: string
42
+ }
43
+ | {
44
+ input: 'body'
45
+ value?: any | EventProperty
46
+ mapping?: string
47
+ }
48
+ | {
49
+ input: 'timeout'
50
+ value?: number | DataLink | EventProperty
51
+ mapping?: string
52
+ }
53
+ | {
54
+ input: 'mode'
55
+ value?: 'same-origin' | 'no-cors' | 'cors' | DataLink | EventProperty
56
+ mapping?: string
57
+ }
58
+ | {
59
+ input: 'credentials'
60
+ value?: 'include' | 'same-origin' | 'omit' | DataLink | EventProperty
61
+ mapping?: string
62
+ }
63
+ | {
64
+ input: 'redirect'
65
+ value?: 'manual' | 'follow' | 'error' | DataLink | EventProperty
66
+ mapping?: string
67
+ }
68
+ | {
69
+ input: 'referrer'
70
+ value?: 'no-referrer' | 'client' | DataLink | EventProperty
71
+ mapping?: string
72
+ }
73
+ | {
74
+ input: 'resType'
75
+ value?: 'json' | 'text' | 'xml' | 'csv' | DataLink | EventProperty
76
+ mapping?: string
77
+ }
78
+ | {
79
+ input: 'eventStream'
80
+ value?: boolean | DataLink | EventProperty
81
+ mapping?: string
82
+ }
83
+ | {
84
+ input: 'eventName'
85
+ value?: string | DataLink | EventProperty
86
+ mapping?: string
87
+ }
88
+ >
16
89
  }
17
90
 
18
91
  /* Abort HTTP request or SSE */