@fugood/bricks-project 2.21.0-beta.34 → 2.21.0-beta.35
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 +4 -2
- package/package.json +2 -2
- package/types/generators.ts +30 -8
|
@@ -590,8 +590,10 @@ export const templateActionNameMap = {
|
|
|
590
590
|
frequencyPenalty: 'GENERATOR_OPENAI_LLM_FREQUENCY_PENALTY',
|
|
591
591
|
presencePenalty: 'GENERATOR_OPENAI_LLM_PRESENCE_PENALTY',
|
|
592
592
|
stop: 'GENERATOR_OPENAI_LLM_STOP',
|
|
593
|
-
|
|
594
|
-
|
|
593
|
+
tools: 'GENERATOR_OPENAI_LLM_TOOLS',
|
|
594
|
+
toolChoice: 'GENERATOR_OPENAI_LLM_TOOL_CHOICE',
|
|
595
|
+
parallelToolCalls: 'GENERATOR_OPENAI_LLM_PARALLEL_TOOL_CALLS',
|
|
596
|
+
responseFormat: 'GENERATOR_OPENAI_LLM_RESPONSE_FORMAT',
|
|
595
597
|
},
|
|
596
598
|
},
|
|
597
599
|
GENERATOR_ASSISTANT: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.21.0-beta.
|
|
3
|
+
"version": "2.21.0-beta.35",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node scripts/build.js"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"lodash": "^4.17.4",
|
|
14
14
|
"uuid": "^8.3.1"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "d9e158d3bd0c035e376c2e20e8b07e2da459f4cf"
|
|
17
17
|
}
|
package/types/generators.ts
CHANGED
|
@@ -839,6 +839,10 @@ Default property:
|
|
|
839
839
|
| DataLink
|
|
840
840
|
/* Select download source with image version (use width, e.g. [250, 360]) */
|
|
841
841
|
sourceVersionAlternatives?: Array<number | DataLink> | DataLink
|
|
842
|
+
/* Allowlist patterns to filter media files (supports regex or plain text) */
|
|
843
|
+
allowlist?: Array<string | DataLink> | DataLink
|
|
844
|
+
/* Blocklist patterns to filter media files (supports regex or plain text) */
|
|
845
|
+
blocklist?: Array<string | DataLink> | DataLink
|
|
842
846
|
}
|
|
843
847
|
events?: {
|
|
844
848
|
/* Event of media box fetch error */
|
|
@@ -894,10 +898,10 @@ Default property:
|
|
|
894
898
|
downloadErrors?: () => Data
|
|
895
899
|
/* Media box info */
|
|
896
900
|
box?: () => Data
|
|
897
|
-
/* File sync result [ { "url": "/storage/emulated/0/Download/SyncFolder/Asset/1.png", "mediaType": "photo" // enum("photo", "video"), used to distingiush "id": "", } ] */
|
|
898
|
-
downloadFileUrls?: () => Data
|
|
899
901
|
/* Save Media Flow fetch result [ { "url": "https://d1kk0369g9vrck.cloudfront.net/box/5b431e29efd40c01e8b2019c/photo5b431e37efd40c01e8b201d1" "extension": "", // enum("jpg", "png", "mp4") "id": "5b431e37efd40c01e8b201d1", "md5": "6134ab412351651324" // md5 came from media resource api } ] */
|
|
900
902
|
result?: () => Data
|
|
903
|
+
/* File sync result [ { "url": "/storage/emulated/0/Download/SyncFolder/Asset/1.png", "mediaType": "photo" // enum("photo", "video"), used to distingiush "id": "", } ] */
|
|
904
|
+
downloadFileUrls?: () => Data
|
|
901
905
|
}
|
|
902
906
|
}
|
|
903
907
|
|
|
@@ -920,8 +924,8 @@ export type GeneratorMediaFlow = Generator &
|
|
|
920
924
|
| 'downloadProgress'
|
|
921
925
|
| 'downloadErrors'
|
|
922
926
|
| 'box'
|
|
923
|
-
| 'downloadFileUrls'
|
|
924
927
|
| 'result'
|
|
928
|
+
| 'downloadFileUrls'
|
|
925
929
|
value: any
|
|
926
930
|
}
|
|
927
931
|
}>
|
|
@@ -6601,7 +6605,7 @@ Default property:
|
|
|
6601
6605
|
type: 'string'
|
|
6602
6606
|
path: string
|
|
6603
6607
|
}
|
|
6604
|
-
|
|
6608
|
+
completionResultDetails: {
|
|
6605
6609
|
type: 'object'
|
|
6606
6610
|
path: string
|
|
6607
6611
|
}
|
|
@@ -6628,7 +6632,7 @@ Default property:
|
|
|
6628
6632
|
type: 'string'
|
|
6629
6633
|
path: string
|
|
6630
6634
|
}
|
|
6631
|
-
|
|
6635
|
+
completionResultDetails: {
|
|
6632
6636
|
type: 'object'
|
|
6633
6637
|
path: string
|
|
6634
6638
|
}
|
|
@@ -6762,13 +6766,23 @@ export type GeneratorOpenAILLMActionCompletion = ActionWithParams & {
|
|
|
6762
6766
|
mapping?: string
|
|
6763
6767
|
}
|
|
6764
6768
|
| {
|
|
6765
|
-
input: '
|
|
6769
|
+
input: 'tools'
|
|
6770
|
+
value?: {} | DataLink
|
|
6771
|
+
mapping?: string
|
|
6772
|
+
}
|
|
6773
|
+
| {
|
|
6774
|
+
input: 'toolChoice'
|
|
6775
|
+
value?: string | DataLink
|
|
6776
|
+
mapping?: string
|
|
6777
|
+
}
|
|
6778
|
+
| {
|
|
6779
|
+
input: 'parallelToolCalls'
|
|
6766
6780
|
value?: boolean | DataLink
|
|
6767
6781
|
mapping?: string
|
|
6768
6782
|
}
|
|
6769
6783
|
| {
|
|
6770
|
-
input: '
|
|
6771
|
-
value?:
|
|
6784
|
+
input: 'responseFormat'
|
|
6785
|
+
value?: {} | DataLink
|
|
6772
6786
|
mapping?: string
|
|
6773
6787
|
}
|
|
6774
6788
|
>
|
|
@@ -6873,6 +6887,10 @@ Default property:
|
|
|
6873
6887
|
type: 'string'
|
|
6874
6888
|
path: string
|
|
6875
6889
|
}
|
|
6890
|
+
completionDetails: {
|
|
6891
|
+
type: 'object'
|
|
6892
|
+
path: string
|
|
6893
|
+
}
|
|
6876
6894
|
}
|
|
6877
6895
|
}
|
|
6878
6896
|
>
|
|
@@ -6884,6 +6902,10 @@ Default property:
|
|
|
6884
6902
|
type: 'string'
|
|
6885
6903
|
path: string
|
|
6886
6904
|
}
|
|
6905
|
+
toolCalls: {
|
|
6906
|
+
type: 'array'
|
|
6907
|
+
path: string
|
|
6908
|
+
}
|
|
6887
6909
|
}
|
|
6888
6910
|
}
|
|
6889
6911
|
>
|