@fugood/bricks-project 2.21.2 → 2.21.4
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/compile/action-name-map.ts +20 -0
- package/compile/index.ts +1 -0
- package/package.json +1 -1
- package/tools/postinstall.ts +1 -2
- package/types/canvas.ts +1 -1
- package/types/generators.ts +179 -6
- package/utils/event-props.ts +32 -0
|
@@ -533,6 +533,14 @@ export const templateActionNameMap = {
|
|
|
533
533
|
name: 'GENERATOR_MCP_NAME',
|
|
534
534
|
variables: 'GENERATOR_MCP_VARIABLES',
|
|
535
535
|
},
|
|
536
|
+
GENERATOR_MCP_LIST_PROMPTS: {
|
|
537
|
+
requestId: 'GENERATOR_MCP_REQUEST_ID',
|
|
538
|
+
},
|
|
539
|
+
GENERATOR_MCP_GET_PROMPT: {
|
|
540
|
+
requestId: 'GENERATOR_MCP_REQUEST_ID',
|
|
541
|
+
name: 'GENERATOR_MCP_NAME',
|
|
542
|
+
variables: 'GENERATOR_MCP_VARIABLES',
|
|
543
|
+
},
|
|
536
544
|
},
|
|
537
545
|
GENERATOR_TTS: {
|
|
538
546
|
GENERATOR_TTS_GENERATE: {
|
|
@@ -543,6 +551,7 @@ export const templateActionNameMap = {
|
|
|
543
551
|
GENERATOR_ONNX_LLM_INFER: {
|
|
544
552
|
prompt: 'GENERATOR_ONNX_LLM_PROMPT',
|
|
545
553
|
chat: 'GENERATOR_ONNX_LLM_CHAT',
|
|
554
|
+
images: 'GENERATOR_ONNX_LLM_IMAGES',
|
|
546
555
|
},
|
|
547
556
|
},
|
|
548
557
|
GENERATOR_ONNX_STT: {
|
|
@@ -676,6 +685,17 @@ export const templateActionNameMap = {
|
|
|
676
685
|
fileSearchCitationCount: 'GENERATOR_ASSISTANT_FILE_SEARCH_CITATION_COUNT',
|
|
677
686
|
fileSearchInsertMethod: 'GENERATOR_ASSISTANT_FILE_SEARCH_INSERT_METHOD',
|
|
678
687
|
},
|
|
688
|
+
GENERATOR_ASSISTANT_INIT_MCP_PROMPT: {
|
|
689
|
+
mcpClientName: 'GENERATOR_ASSISTANT_MCP_CLIENT_NAME',
|
|
690
|
+
mcpPromptName: 'GENERATOR_ASSISTANT_MCP_PROMPT_NAME',
|
|
691
|
+
mcpArguments: 'GENERATOR_ASSISTANT_MCP_ARGUMENTS',
|
|
692
|
+
firstMessageAsSystem: 'GENERATOR_ASSISTANT_FIRST_MESSAGE_AS_SYSTEM',
|
|
693
|
+
},
|
|
694
|
+
GENERATOR_ASSISTANT_ADD_MCP_PROMPT_MESSAGE: {
|
|
695
|
+
mcpClientName: 'GENERATOR_ASSISTANT_MCP_CLIENT_NAME',
|
|
696
|
+
mcpPromptName: 'GENERATOR_ASSISTANT_MCP_PROMPT_NAME',
|
|
697
|
+
mcpArguments: 'GENERATOR_ASSISTANT_MCP_ARGUMENTS',
|
|
698
|
+
},
|
|
679
699
|
GENERATOR_ASSISTANT_UPDATE_MESSAGE_AT_INDEX: {
|
|
680
700
|
index: 'GENERATOR_ASSISTANT_INDEX',
|
|
681
701
|
content: 'GENERATOR_ASSISTANT_CONTENT',
|
package/compile/index.ts
CHANGED
|
@@ -856,6 +856,7 @@ export const compile = async (app: Application) => {
|
|
|
856
856
|
fonts: app.fonts,
|
|
857
857
|
...compileApplicationSettings(app.settings),
|
|
858
858
|
test_map: app.metadata?.TEMP_test_map || {},
|
|
859
|
+
automation_map: app.metadata?.TEMP_automation_map || {},
|
|
859
860
|
}
|
|
860
861
|
return config
|
|
861
862
|
}
|
package/package.json
CHANGED
package/tools/postinstall.ts
CHANGED
|
@@ -51,8 +51,7 @@ const handleMcpConfigOverride = async (mcpConfigPath: string) => {
|
|
|
51
51
|
console.log(`Updated ${mcpConfigPath}`)
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (await exists(`${cwd}/.
|
|
55
|
-
await $`mkdir -p ${cwd}/.cursor`
|
|
54
|
+
if (await exists(`${cwd}/.cursor/rules/instructions.mdc`)) {
|
|
56
55
|
const cursorMcpConfigPath = `${cwd}/.cursor/mcp.json`
|
|
57
56
|
await handleMcpConfigOverride(cursorMcpConfigPath)
|
|
58
57
|
}
|
package/types/canvas.ts
CHANGED
|
@@ -14,7 +14,7 @@ interface CanvasDef {
|
|
|
14
14
|
showingTimeout?: number | DataLink
|
|
15
15
|
/* Canvas ID for change next canvas on showing timeout */
|
|
16
16
|
nextCanvasId?: string | DataLink | (() => Canvas)
|
|
17
|
-
/*
|
|
17
|
+
/* Background color of Canvas */
|
|
18
18
|
backgroundColor?: string | DataLink
|
|
19
19
|
/* Dismiss keyboard on press */
|
|
20
20
|
dismissKeyboardOnPress?: boolean | DataLink
|
package/types/generators.ts
CHANGED
|
@@ -4327,12 +4327,15 @@ Default property:
|
|
|
4327
4327
|
"name": "bricks-foundation-mcp-server-default",
|
|
4328
4328
|
"version": "1.0.0",
|
|
4329
4329
|
"resources": [],
|
|
4330
|
-
"tools": []
|
|
4330
|
+
"tools": [],
|
|
4331
|
+
"prompts": []
|
|
4331
4332
|
}
|
|
4332
4333
|
*/
|
|
4333
4334
|
property?: {
|
|
4334
4335
|
/* Enable MCP server. If enabled and Listening is false, the generator can still provide application-scoped resources. */
|
|
4335
4336
|
enabled?: boolean | DataLink
|
|
4337
|
+
/* Application-scoped generator key, key cannot be the same with other application-scoped generators */
|
|
4338
|
+
globalGeneratorKey?: string | DataLink
|
|
4336
4339
|
/* Start MCP server */
|
|
4337
4340
|
listening?: boolean | DataLink
|
|
4338
4341
|
/* HTTP server port */
|
|
@@ -4429,6 +4432,49 @@ Default property:
|
|
|
4429
4432
|
}
|
|
4430
4433
|
>
|
|
4431
4434
|
| DataLink
|
|
4435
|
+
/* Prompts
|
|
4436
|
+
Type:
|
|
4437
|
+
`static`: Return static data
|
|
4438
|
+
`detect-data-change`: Watch data target change to return data,
|
|
4439
|
+
please update data with ({ id: string, content: string | object }),
|
|
4440
|
+
and ensure the id is same with request id
|
|
4441
|
+
`script`: Not implemented yet */
|
|
4442
|
+
prompts?:
|
|
4443
|
+
| Array<
|
|
4444
|
+
| DataLink
|
|
4445
|
+
| {
|
|
4446
|
+
enabled?: boolean | DataLink
|
|
4447
|
+
name?: string | DataLink
|
|
4448
|
+
description?: string | DataLink
|
|
4449
|
+
arguments?: {} | DataLink
|
|
4450
|
+
type?: 'static' | 'detect-data-change' | 'script' | DataLink
|
|
4451
|
+
staticData?: any
|
|
4452
|
+
dataChangeConfig?:
|
|
4453
|
+
| DataLink
|
|
4454
|
+
| {
|
|
4455
|
+
target?: string | DataLink
|
|
4456
|
+
timeout?: number | DataLink
|
|
4457
|
+
payload?: any
|
|
4458
|
+
}
|
|
4459
|
+
scriptConfig?:
|
|
4460
|
+
| DataLink
|
|
4461
|
+
| {
|
|
4462
|
+
code?: string | DataLink
|
|
4463
|
+
timeout?: number | DataLink
|
|
4464
|
+
members?:
|
|
4465
|
+
| Array<
|
|
4466
|
+
| DataLink
|
|
4467
|
+
| {
|
|
4468
|
+
handler?: string | DataLink
|
|
4469
|
+
varName?: string | DataLink
|
|
4470
|
+
}
|
|
4471
|
+
>
|
|
4472
|
+
| DataLink
|
|
4473
|
+
payload?: any
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
>
|
|
4477
|
+
| DataLink
|
|
4432
4478
|
}
|
|
4433
4479
|
events?: {
|
|
4434
4480
|
/* Listening of HTTP server */
|
|
@@ -4443,6 +4489,8 @@ Default property:
|
|
|
4443
4489
|
onRequestResource?: Array<EventAction>
|
|
4444
4490
|
/* On call tool (Request: { name: string, params: object }) */
|
|
4445
4491
|
onCallTool?: Array<EventAction>
|
|
4492
|
+
/* On get prompt (Request: { name: string, arguments: object }) */
|
|
4493
|
+
onGetPrompt?: Array<EventAction>
|
|
4446
4494
|
}
|
|
4447
4495
|
outlets?: {
|
|
4448
4496
|
/* Whether the HTTP server is listening */
|
|
@@ -4455,6 +4503,8 @@ Default property:
|
|
|
4455
4503
|
lastResourceRequest?: () => Data
|
|
4456
4504
|
/* Last tool call ({ name: string, params: object }) */
|
|
4457
4505
|
lastToolCall?: () => Data
|
|
4506
|
+
/* Last prompt get ({ name: string, arguments: object }) */
|
|
4507
|
+
lastPromptGet?: () => Data
|
|
4458
4508
|
}
|
|
4459
4509
|
}
|
|
4460
4510
|
|
|
@@ -4478,6 +4528,7 @@ export type GeneratorMCPServer = Generator &
|
|
|
4478
4528
|
| 'connectedRemotes'
|
|
4479
4529
|
| 'lastResourceRequest'
|
|
4480
4530
|
| 'lastToolCall'
|
|
4531
|
+
| 'lastPromptGet'
|
|
4481
4532
|
value: any
|
|
4482
4533
|
}
|
|
4483
4534
|
}>
|
|
@@ -4569,6 +4620,38 @@ export type GeneratorMCPActionCallTool = ActionWithParams & {
|
|
|
4569
4620
|
>
|
|
4570
4621
|
}
|
|
4571
4622
|
|
|
4623
|
+
/* List prompts */
|
|
4624
|
+
export type GeneratorMCPActionListPrompts = ActionWithParams & {
|
|
4625
|
+
__actionName: 'GENERATOR_MCP_LIST_PROMPTS'
|
|
4626
|
+
params?: Array<{
|
|
4627
|
+
input: 'requestId'
|
|
4628
|
+
value?: string | DataLink | EventProperty
|
|
4629
|
+
mapping?: string
|
|
4630
|
+
}>
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
/* Request prompt */
|
|
4634
|
+
export type GeneratorMCPActionGetPrompt = ActionWithParams & {
|
|
4635
|
+
__actionName: 'GENERATOR_MCP_GET_PROMPT'
|
|
4636
|
+
params?: Array<
|
|
4637
|
+
| {
|
|
4638
|
+
input: 'requestId'
|
|
4639
|
+
value?: string | DataLink | EventProperty
|
|
4640
|
+
mapping?: string
|
|
4641
|
+
}
|
|
4642
|
+
| {
|
|
4643
|
+
input: 'name'
|
|
4644
|
+
value?: string | DataLink | EventProperty
|
|
4645
|
+
mapping?: string
|
|
4646
|
+
}
|
|
4647
|
+
| {
|
|
4648
|
+
input: 'variables'
|
|
4649
|
+
value?: {} | DataLink | EventProperty
|
|
4650
|
+
mapping?: string
|
|
4651
|
+
}
|
|
4652
|
+
>
|
|
4653
|
+
}
|
|
4654
|
+
|
|
4572
4655
|
interface GeneratorMCPDef {
|
|
4573
4656
|
/*
|
|
4574
4657
|
Default property:
|
|
@@ -4584,6 +4667,7 @@ Default property:
|
|
|
4584
4667
|
"version": "1.0.0",
|
|
4585
4668
|
"ignoreResourceInList": [],
|
|
4586
4669
|
"ignoreToolInList": [],
|
|
4670
|
+
"ignorePromptInList": [],
|
|
4587
4671
|
"requestTimeout": 60000
|
|
4588
4672
|
}
|
|
4589
4673
|
*/
|
|
@@ -4606,8 +4690,10 @@ Default property:
|
|
|
4606
4690
|
sendHeaders?: {} | DataLink
|
|
4607
4691
|
/* Bearer token for authentication */
|
|
4608
4692
|
bearerToken?: string | DataLink
|
|
4609
|
-
/* Generator
|
|
4693
|
+
/* Generator MCP Server ID for direct link */
|
|
4610
4694
|
generatorId?: string | DataLink
|
|
4695
|
+
/* Application-scoped key of Generator MCP Server for direct link (If ID is not provided) */
|
|
4696
|
+
generatorKey?: string | DataLink
|
|
4611
4697
|
/* Name of the MCP client */
|
|
4612
4698
|
name?: string | DataLink
|
|
4613
4699
|
/* Version of the MCP client */
|
|
@@ -4616,6 +4702,8 @@ Default property:
|
|
|
4616
4702
|
ignoreResourceInList?: Array<string | DataLink> | DataLink
|
|
4617
4703
|
/* Ignore tools in list response */
|
|
4618
4704
|
ignoreToolInList?: Array<string | DataLink> | DataLink
|
|
4705
|
+
/* Ignore prompts in list response */
|
|
4706
|
+
ignorePromptInList?: Array<string | DataLink> | DataLink
|
|
4619
4707
|
/* Request timeout in milliseconds */
|
|
4620
4708
|
requestTimeout?: number | DataLink
|
|
4621
4709
|
}
|
|
@@ -4646,6 +4734,14 @@ Default property:
|
|
|
4646
4734
|
onCallTool?: Array<EventAction>
|
|
4647
4735
|
/* On call tool error */
|
|
4648
4736
|
onCallToolError?: Array<EventAction>
|
|
4737
|
+
/* On list prompts */
|
|
4738
|
+
onListPrompts?: Array<EventAction>
|
|
4739
|
+
/* On list prompts error */
|
|
4740
|
+
onListPromptsError?: Array<EventAction>
|
|
4741
|
+
/* On get prompt */
|
|
4742
|
+
onGetPrompt?: Array<EventAction>
|
|
4743
|
+
/* On get prompt error */
|
|
4744
|
+
onGetPromptError?: Array<EventAction>
|
|
4649
4745
|
}
|
|
4650
4746
|
outlets?: {
|
|
4651
4747
|
/* Connection state */
|
|
@@ -4670,6 +4766,14 @@ Default property:
|
|
|
4670
4766
|
callToolResponse?: () => Data
|
|
4671
4767
|
/* Call tool error */
|
|
4672
4768
|
callToolError?: () => Data
|
|
4769
|
+
/* List prompts response */
|
|
4770
|
+
listPromptsResponse?: () => Data
|
|
4771
|
+
/* List prompts error */
|
|
4772
|
+
listPromptsError?: () => Data
|
|
4773
|
+
/* Get prompt response */
|
|
4774
|
+
getPromptResponse?: () => Data
|
|
4775
|
+
/* Request prompt error */
|
|
4776
|
+
getPromptError?: () => Data
|
|
4673
4777
|
/* Last error */
|
|
4674
4778
|
lastError?: () => Data
|
|
4675
4779
|
}
|
|
@@ -4701,6 +4805,10 @@ export type GeneratorMCP = Generator &
|
|
|
4701
4805
|
| 'listToolsError'
|
|
4702
4806
|
| 'callToolResponse'
|
|
4703
4807
|
| 'callToolError'
|
|
4808
|
+
| 'listPromptsResponse'
|
|
4809
|
+
| 'listPromptsError'
|
|
4810
|
+
| 'getPromptResponse'
|
|
4811
|
+
| 'getPromptError'
|
|
4704
4812
|
| 'lastError'
|
|
4705
4813
|
value: any
|
|
4706
4814
|
}
|
|
@@ -4886,6 +4994,11 @@ export type GeneratorOnnxLLMActionInfer = ActionWithParams & {
|
|
|
4886
4994
|
value?: Array<any> | DataLink | EventProperty
|
|
4887
4995
|
mapping?: string
|
|
4888
4996
|
}
|
|
4997
|
+
| {
|
|
4998
|
+
input: 'images'
|
|
4999
|
+
value?: Array<any> | DataLink | EventProperty
|
|
5000
|
+
mapping?: string
|
|
5001
|
+
}
|
|
4889
5002
|
>
|
|
4890
5003
|
}
|
|
4891
5004
|
|
|
@@ -4922,12 +5035,17 @@ Default property:
|
|
|
4922
5035
|
/* LLM model */
|
|
4923
5036
|
model?:
|
|
4924
5037
|
| 'Custom'
|
|
5038
|
+
| 'onnx-community/gemma-3-1b-it-ONNX'
|
|
4925
5039
|
| 'BricksDisplay/phi-1_5'
|
|
4926
5040
|
| 'BricksDisplay/phi-1_5-q4'
|
|
4927
|
-
| '
|
|
4928
|
-
| '
|
|
4929
|
-
| '
|
|
4930
|
-
| '
|
|
5041
|
+
| 'onnx-community/Phi-3.5-vision-instruct'
|
|
5042
|
+
| 'onnx-community/Phi-3-vision-128k-instruct'
|
|
5043
|
+
| 'onnx-community/Phi-4-mini-instruct-ONNX-MHA'
|
|
5044
|
+
| 'onnx-community/Qwen2.5-0.5B'
|
|
5045
|
+
| 'onnx-community/Qwen2.5-0.5B-Instruct'
|
|
5046
|
+
| 'onnx-community/Qwen2.5-1.5B'
|
|
5047
|
+
| 'onnx-community/Qwen2.5-1.5B-Instruct'
|
|
5048
|
+
| 'onnx-community/Qwen2-VL-2B-Instruct'
|
|
4931
5049
|
| 'stablelm-2-1_6b'
|
|
4932
5050
|
| 'BricksDisplay/stablelm-2-1_6b-q4'
|
|
4933
5051
|
| 'stablelm-2-zephyr-1_6b'
|
|
@@ -5000,6 +5118,12 @@ Default property:
|
|
|
5000
5118
|
Choose model from https://huggingface.co/models?pipeline_tag=text2text-generation&library=transformers.js
|
|
5001
5119
|
or https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending */
|
|
5002
5120
|
customModel?: string | DataLink
|
|
5121
|
+
/* Prompt to inference */
|
|
5122
|
+
prompt?: string | DataLink
|
|
5123
|
+
/* Messages to inference */
|
|
5124
|
+
messages?: Array<DataLink | {}> | DataLink
|
|
5125
|
+
/* Images with message to inference */
|
|
5126
|
+
images?: Array<string | DataLink> | DataLink
|
|
5003
5127
|
/* Max new tokens to generate */
|
|
5004
5128
|
maxNewTokens?: number | DataLink
|
|
5005
5129
|
/* Temperature */
|
|
@@ -6823,6 +6947,55 @@ export type GeneratorAssistantActionAddMessage = ActionWithParams & {
|
|
|
6823
6947
|
>
|
|
6824
6948
|
}
|
|
6825
6949
|
|
|
6950
|
+
/* Initialize messages from MCP prompt */
|
|
6951
|
+
export type GeneratorAssistantActionInitMcpPrompt = ActionWithParams & {
|
|
6952
|
+
__actionName: 'GENERATOR_ASSISTANT_INIT_MCP_PROMPT'
|
|
6953
|
+
params?: Array<
|
|
6954
|
+
| {
|
|
6955
|
+
input: 'mcpClientName'
|
|
6956
|
+
value?: string | DataLink | EventProperty
|
|
6957
|
+
mapping?: string
|
|
6958
|
+
}
|
|
6959
|
+
| {
|
|
6960
|
+
input: 'mcpPromptName'
|
|
6961
|
+
value?: string | DataLink | EventProperty
|
|
6962
|
+
mapping?: string
|
|
6963
|
+
}
|
|
6964
|
+
| {
|
|
6965
|
+
input: 'mcpArguments'
|
|
6966
|
+
value?: {} | DataLink | EventProperty
|
|
6967
|
+
mapping?: string
|
|
6968
|
+
}
|
|
6969
|
+
| {
|
|
6970
|
+
input: 'firstMessageAsSystem'
|
|
6971
|
+
value?: boolean | DataLink | EventProperty
|
|
6972
|
+
mapping?: string
|
|
6973
|
+
}
|
|
6974
|
+
>
|
|
6975
|
+
}
|
|
6976
|
+
|
|
6977
|
+
/* Add messages from MCP prompt */
|
|
6978
|
+
export type GeneratorAssistantActionAddMcpPromptMessage = ActionWithParams & {
|
|
6979
|
+
__actionName: 'GENERATOR_ASSISTANT_ADD_MCP_PROMPT_MESSAGE'
|
|
6980
|
+
params?: Array<
|
|
6981
|
+
| {
|
|
6982
|
+
input: 'mcpClientName'
|
|
6983
|
+
value?: string | DataLink | EventProperty
|
|
6984
|
+
mapping?: string
|
|
6985
|
+
}
|
|
6986
|
+
| {
|
|
6987
|
+
input: 'mcpPromptName'
|
|
6988
|
+
value?: string | DataLink | EventProperty
|
|
6989
|
+
mapping?: string
|
|
6990
|
+
}
|
|
6991
|
+
| {
|
|
6992
|
+
input: 'mcpArguments'
|
|
6993
|
+
value?: {} | DataLink | EventProperty
|
|
6994
|
+
mapping?: string
|
|
6995
|
+
}
|
|
6996
|
+
>
|
|
6997
|
+
}
|
|
6998
|
+
|
|
6826
6999
|
/* Update a message at a specific index */
|
|
6827
7000
|
export type GeneratorAssistantActionUpdateMessageAtIndex = ActionWithParams & {
|
|
6828
7001
|
__actionName: 'GENERATOR_ASSISTANT_UPDATE_MESSAGE_AT_INDEX'
|
package/utils/event-props.ts
CHANGED
|
@@ -644,9 +644,25 @@ export const templateEventPropsMap = {
|
|
|
644
644
|
'GENERATOR_MCP_SERVER_SESSION_ID', // type: string
|
|
645
645
|
],
|
|
646
646
|
onRequestResource: [
|
|
647
|
+
'GENERATOR_MCP_SERVER_REQUEST_ID', // type: string
|
|
648
|
+
'GENERATOR_MCP_SERVER_REQUEST_NAME', // type: string
|
|
649
|
+
'GENERATOR_MCP_SERVER_REQUEST_URI', // type: string
|
|
650
|
+
'GENERATOR_MCP_SERVER_REQUEST_VARIABLES', // type: object
|
|
651
|
+
'GENERATOR_MCP_SERVER_REQUEST_TIMEOUT', // type: number
|
|
647
652
|
'GENERATOR_MCP_SERVER_REQUEST', // type: object
|
|
648
653
|
],
|
|
649
654
|
onCallTool: [
|
|
655
|
+
'GENERATOR_MCP_SERVER_REQUEST_ID', // type: string
|
|
656
|
+
'GENERATOR_MCP_SERVER_REQUEST_NAME', // type: string
|
|
657
|
+
'GENERATOR_MCP_SERVER_REQUEST_VARIABLES', // type: object
|
|
658
|
+
'GENERATOR_MCP_SERVER_REQUEST_TIMEOUT', // type: number
|
|
659
|
+
'GENERATOR_MCP_SERVER_REQUEST', // type: object
|
|
660
|
+
],
|
|
661
|
+
onGetPrompt: [
|
|
662
|
+
'GENERATOR_MCP_SERVER_REQUEST_ID', // type: string
|
|
663
|
+
'GENERATOR_MCP_SERVER_REQUEST_NAME', // type: string
|
|
664
|
+
'GENERATOR_MCP_SERVER_REQUEST_VARIABLES', // type: object
|
|
665
|
+
'GENERATOR_MCP_SERVER_REQUEST_TIMEOUT', // type: number
|
|
650
666
|
'GENERATOR_MCP_SERVER_REQUEST', // type: object
|
|
651
667
|
],
|
|
652
668
|
},
|
|
@@ -694,6 +710,22 @@ export const templateEventPropsMap = {
|
|
|
694
710
|
'GENERATOR_MCP_REQUEST_ID', // type: string
|
|
695
711
|
'GENERATOR_MCP_ERROR_MESSAGE', // type: string
|
|
696
712
|
],
|
|
713
|
+
onListPrompts: [
|
|
714
|
+
'GENERATOR_MCP_REQUEST_ID', // type: string
|
|
715
|
+
'GENERATOR_MCP_RESPONSE', // type: object
|
|
716
|
+
],
|
|
717
|
+
onListPromptsError: [
|
|
718
|
+
'GENERATOR_MCP_REQUEST_ID', // type: string
|
|
719
|
+
'GENERATOR_MCP_ERROR_MESSAGE', // type: string
|
|
720
|
+
],
|
|
721
|
+
onGetPrompt: [
|
|
722
|
+
'GENERATOR_MCP_REQUEST_ID', // type: string
|
|
723
|
+
'GENERATOR_MCP_RESPONSE', // type: object
|
|
724
|
+
],
|
|
725
|
+
onGetPromptError: [
|
|
726
|
+
'GENERATOR_MCP_REQUEST_ID', // type: string
|
|
727
|
+
'GENERATOR_MCP_ERROR_MESSAGE', // type: string
|
|
728
|
+
],
|
|
697
729
|
},
|
|
698
730
|
GENERATOR_TTS: {
|
|
699
731
|
onContextStateChange: [
|