@fugood/bricks-project 2.22.0-beta.23 → 2.22.0-beta.25
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 +1 -0
- package/package.json +2 -2
- package/types/generators.ts +19 -1
- package/utils/data.ts +27 -0
- package/utils/event-props.ts +2 -0
|
@@ -669,6 +669,7 @@ export const templateActionNameMap = {
|
|
|
669
669
|
parallelToolCalls: 'GENERATOR_LLM_PARALLEL_TOOL_CALLS',
|
|
670
670
|
toolChoice: 'GENERATOR_LLM_TOOL_CHOICE',
|
|
671
671
|
enableThinking: 'GENERATOR_LLM_ENABLE_THINKING',
|
|
672
|
+
useReasoningFormat: 'GENERATOR_LLM_USE_REASONING_FORMAT',
|
|
672
673
|
prompt: 'GENERATOR_LLM_PROMPT',
|
|
673
674
|
promptMediaPaths: 'GENERATOR_LLM_PROMPT_MEDIA_PATHS',
|
|
674
675
|
promptTemplateData: 'GENERATOR_LLM_PROMPT_TEMPLATE_DATA',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.22.0-beta.
|
|
3
|
+
"version": "2.22.0-beta.25",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"lodash": "^4.17.4",
|
|
15
15
|
"uuid": "^8.3.1"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "258a8b72376abac00d53dc39ca93e58ffcea3445"
|
|
18
18
|
}
|
package/types/generators.ts
CHANGED
|
@@ -4387,6 +4387,7 @@ Default property:
|
|
|
4387
4387
|
| DataLink
|
|
4388
4388
|
/* Tools
|
|
4389
4389
|
Type:
|
|
4390
|
+
`static`: Return static data
|
|
4390
4391
|
`detect-data-change`: Watch data target change to return data,
|
|
4391
4392
|
please update data with ({ id: string, content: string | object }),
|
|
4392
4393
|
and ensure the id is same with request id.
|
|
@@ -4401,7 +4402,8 @@ Default property:
|
|
|
4401
4402
|
name?: string | DataLink
|
|
4402
4403
|
description?: string | DataLink
|
|
4403
4404
|
params?: {} | DataLink
|
|
4404
|
-
type?: 'detect-data-change' | 'script' | DataLink
|
|
4405
|
+
type?: 'static' | 'detect-data-change' | 'script' | DataLink
|
|
4406
|
+
staticData?: any
|
|
4405
4407
|
dataChangeConfig?:
|
|
4406
4408
|
| DataLink
|
|
4407
4409
|
| {
|
|
@@ -4674,6 +4676,8 @@ Default property:
|
|
|
4674
4676
|
}
|
|
4675
4677
|
*/
|
|
4676
4678
|
property?: {
|
|
4679
|
+
/* Application-scoped generator key, key cannot be the same with other application-scoped generators */
|
|
4680
|
+
globalGeneratorKey?: string | DataLink
|
|
4677
4681
|
/* Initialize the MCP client on start */
|
|
4678
4682
|
init?: boolean | DataLink
|
|
4679
4683
|
/* Type of the MCP connection, e.g. sse or direct-link (generator) */
|
|
@@ -6332,6 +6336,11 @@ export type GeneratorLLMActionCompletion = ActionWithParams & {
|
|
|
6332
6336
|
value?: boolean | DataLink | EventProperty
|
|
6333
6337
|
mapping?: string
|
|
6334
6338
|
}
|
|
6339
|
+
| {
|
|
6340
|
+
input: 'useReasoningFormat'
|
|
6341
|
+
value?: string | DataLink | EventProperty
|
|
6342
|
+
mapping?: string
|
|
6343
|
+
}
|
|
6335
6344
|
| {
|
|
6336
6345
|
input: 'prompt'
|
|
6337
6346
|
value?: string | DataLink | EventProperty
|
|
@@ -6557,6 +6566,7 @@ Default property:
|
|
|
6557
6566
|
"completionPrompt": "",
|
|
6558
6567
|
"completionPromptTemplateType": "${}",
|
|
6559
6568
|
"completionEnableThinking": true,
|
|
6569
|
+
"completionUseReasoningFormat": "auto",
|
|
6560
6570
|
"completionStopWords": [
|
|
6561
6571
|
"</s>",
|
|
6562
6572
|
"<|end|>",
|
|
@@ -6708,6 +6718,10 @@ Default property:
|
|
|
6708
6718
|
}
|
|
6709
6719
|
/* Enable thinking */
|
|
6710
6720
|
completionEnableThinking?: boolean | DataLink
|
|
6721
|
+
/* Use reasoning format for enhanced response structure
|
|
6722
|
+
`auto` - Auto-determine the reasoning format of the model
|
|
6723
|
+
`none` - Disable reasoning format */
|
|
6724
|
+
completionUseReasoningFormat?: 'auto' | 'none' | DataLink
|
|
6711
6725
|
/* Stop words */
|
|
6712
6726
|
completionStopWords?: Array<string | DataLink> | DataLink
|
|
6713
6727
|
/* Number of tokens to predict */
|
|
@@ -6798,6 +6812,8 @@ Default property:
|
|
|
6798
6812
|
completionLastToken?: () => Data
|
|
6799
6813
|
/* Completion result */
|
|
6800
6814
|
completionResult?: () => Data
|
|
6815
|
+
/* Reasoning content from model responses */
|
|
6816
|
+
completionReasoningContent?: () => Data
|
|
6801
6817
|
/* Full context (Prompt + Completion) */
|
|
6802
6818
|
completionFullContext?: () => Data
|
|
6803
6819
|
/* Inference result details */
|
|
@@ -6837,6 +6853,7 @@ export type GeneratorLLM = Generator &
|
|
|
6837
6853
|
| 'completionLastFormattedPrompt'
|
|
6838
6854
|
| 'completionLastToken'
|
|
6839
6855
|
| 'completionResult'
|
|
6856
|
+
| 'completionReasoningContent'
|
|
6840
6857
|
| 'completionFullContext'
|
|
6841
6858
|
| 'completionResultDetails'
|
|
6842
6859
|
value: any
|
|
@@ -8305,6 +8322,7 @@ Default property:
|
|
|
8305
8322
|
| DataLink
|
|
8306
8323
|
| {
|
|
8307
8324
|
generatorId?: string | DataLink
|
|
8325
|
+
generatorKey?: string | DataLink
|
|
8308
8326
|
name?: string | DataLink
|
|
8309
8327
|
enabled?: boolean | DataLink
|
|
8310
8328
|
}
|
package/utils/data.ts
CHANGED
|
@@ -76,6 +76,9 @@ type SystemDataName =
|
|
|
76
76
|
| 'isViewDebugModeEnabled'
|
|
77
77
|
| 'language'
|
|
78
78
|
| 'aiFilters'
|
|
79
|
+
| 'systemOpenAIApiKey'
|
|
80
|
+
| 'systemAnthropicApiKey'
|
|
81
|
+
| 'systemGeminiApiKey'
|
|
79
82
|
|
|
80
83
|
type SystemDataInfo = {
|
|
81
84
|
name: SystemDataName
|
|
@@ -441,6 +444,30 @@ export const systemDataList: Array<SystemDataInfo> = [
|
|
|
441
444
|
type: 'array',
|
|
442
445
|
value: [],
|
|
443
446
|
},
|
|
447
|
+
{
|
|
448
|
+
name: 'systemOpenAIApiKey',
|
|
449
|
+
id: 'PROPERTY_BANK_DATA_NODE_a1b2c3d4-5e6f-7890-abcd-ef1234567890',
|
|
450
|
+
title: 'SYSTEM: OpenAI API Key',
|
|
451
|
+
description: 'System OpenAI API Key (only available if application enabled)',
|
|
452
|
+
type: 'string',
|
|
453
|
+
value: '',
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
name: 'systemAnthropicApiKey',
|
|
457
|
+
id: 'PROPERTY_BANK_DATA_NODE_b2c3d4e5-6f78-9012-bcde-f23456789012',
|
|
458
|
+
title: 'SYSTEM: Anthropic API Key',
|
|
459
|
+
description: 'System Anthropic API Key (only available if application enabled)',
|
|
460
|
+
type: 'string',
|
|
461
|
+
value: '',
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: 'systemGeminiApiKey',
|
|
465
|
+
id: 'PROPERTY_BANK_DATA_NODE_c3d4e5f6-7890-1234-cdef-345678901234',
|
|
466
|
+
title: 'SYSTEM: Gemini API Key',
|
|
467
|
+
description: 'System Gemini API Key (only available if application enabled)',
|
|
468
|
+
type: 'string',
|
|
469
|
+
value: '',
|
|
470
|
+
},
|
|
444
471
|
]
|
|
445
472
|
|
|
446
473
|
export const useSystemData = (name: SystemDataName): Data => {
|
package/utils/event-props.ts
CHANGED
|
@@ -812,12 +812,14 @@ export const templateEventPropsMap = {
|
|
|
812
812
|
onCompletion: [
|
|
813
813
|
'GENERATOR_LLM_COMPLETION_SESSION_KEY', // type: string
|
|
814
814
|
'GENERATOR_LLM_COMPLETION_RESULT', // type: string
|
|
815
|
+
'GENERATOR_LLM_COMPLETION_REASONING_CONTENT', // type: string
|
|
815
816
|
'GENERATOR_LLM_COMPLETION_FULL_CONTEXT', // type: string
|
|
816
817
|
'GENERATOR_LLM_COMPLETION_RESULT_DETAILS', // type: object
|
|
817
818
|
],
|
|
818
819
|
onCompletionFinished: [
|
|
819
820
|
'GENERATOR_LLM_COMPLETION_SESSION_KEY', // type: string
|
|
820
821
|
'GENERATOR_LLM_COMPLETION_RESULT', // type: string
|
|
822
|
+
'GENERATOR_LLM_COMPLETION_REASONING_CONTENT', // type: string
|
|
821
823
|
'GENERATOR_LLM_COMPLETION_TOOL_CALLS', // type: array
|
|
822
824
|
'GENERATOR_LLM_COMPLETION_FULL_CONTEXT', // type: string
|
|
823
825
|
'GENERATOR_LLM_COMPLETION_IS_CONTEXT_FULL', // type: bool
|