@fugood/bricks-project 2.23.0-beta.31 → 2.23.0-beta.37
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.
|
@@ -371,6 +371,7 @@ export const templateActionNameMap = {
|
|
|
371
371
|
redirect: 'GENERATOR_HTTP_REDIRECT',
|
|
372
372
|
referrer: 'GENERATOR_HTTP_REFERRER',
|
|
373
373
|
resType: 'GENERATOR_HTTP_RES_TYPE',
|
|
374
|
+
resSelector: 'GENERATOR_HTTP_RES_SELECTOR',
|
|
374
375
|
eventStream: 'GENERATOR_HTTP_EVENT_STREAM',
|
|
375
376
|
eventName: 'GENERATOR_HTTP_EVENT_NAME',
|
|
376
377
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.23.0-beta.
|
|
3
|
+
"version": "2.23.0-beta.37",
|
|
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": "
|
|
17
|
+
"gitHead": "6c1b834d1a19275da4864fb97e6f24695644c712"
|
|
18
18
|
}
|
|
@@ -507,6 +507,12 @@ Default property:
|
|
|
507
507
|
onLogs?: Array<EventAction>
|
|
508
508
|
/* Messages update event */
|
|
509
509
|
onMessagesUpdate?: Array<EventAction>
|
|
510
|
+
/* Heatup finished event */
|
|
511
|
+
onHeatupFinished?: Array<EventAction>
|
|
512
|
+
/* Generating event (triggered when assistant starts generating response) */
|
|
513
|
+
onGenerating?: Array<EventAction>
|
|
514
|
+
/* Finished event (triggered when assistant finishes generating response) */
|
|
515
|
+
onFinished?: Array<EventAction>
|
|
510
516
|
}
|
|
511
517
|
outlets?: {
|
|
512
518
|
/* Whether the assistant is heating up */
|
package/types/generators/Http.ts
CHANGED
|
@@ -42,7 +42,7 @@ export type GeneratorHTTPActionRunRequest = ActionWithParams & {
|
|
|
42
42
|
}
|
|
43
43
|
| {
|
|
44
44
|
input: 'body'
|
|
45
|
-
value?:
|
|
45
|
+
value?: {} | DataLink | EventProperty
|
|
46
46
|
mapping?: string
|
|
47
47
|
}
|
|
48
48
|
| {
|
|
@@ -75,6 +75,11 @@ export type GeneratorHTTPActionRunRequest = ActionWithParams & {
|
|
|
75
75
|
value?: 'json' | 'text' | 'xml' | 'csv' | DataLink | EventProperty
|
|
76
76
|
mapping?: string
|
|
77
77
|
}
|
|
78
|
+
| {
|
|
79
|
+
input: 'resSelector'
|
|
80
|
+
value?: string | DataLink | EventProperty
|
|
81
|
+
mapping?: string
|
|
82
|
+
}
|
|
78
83
|
| {
|
|
79
84
|
input: 'eventStream'
|
|
80
85
|
value?: boolean | DataLink | EventProperty
|
|
@@ -137,9 +142,11 @@ Default property:
|
|
|
137
142
|
referrer?: 'no-referrer' | 'client' | DataLink
|
|
138
143
|
/* HTTP request body, it will transform depends on `headers.Content-Type` (`application/json`, `application/x-www-form-urlencoded` or `multipart/form-data`)
|
|
139
144
|
The multipart schema like `{ file: { uri: File, type: File MIME, name: File Name }, field: "value" }` */
|
|
140
|
-
body?:
|
|
145
|
+
body?: {} | DataLink
|
|
141
146
|
/* HTTP response type */
|
|
142
147
|
resType?: 'json' | 'text' | 'xml' | 'csv' | DataLink
|
|
148
|
+
/* Response selector path to extract specific data from parsed response (e.g., "data.items" for JSON, "root.element" for XML) */
|
|
149
|
+
resSelector?: string | DataLink
|
|
143
150
|
/* Receive event stream (SSE) */
|
|
144
151
|
eventStream?: boolean | DataLink
|
|
145
152
|
/* Event name to listen on SSE */
|
package/utils/event-props.ts
CHANGED
|
@@ -961,6 +961,13 @@ export const templateEventPropsMap = {
|
|
|
961
961
|
onMessagesUpdate: [
|
|
962
962
|
'GENERATOR_ASSISTANT_MESSAGES', // type: array
|
|
963
963
|
],
|
|
964
|
+
onHeatupFinished: [],
|
|
965
|
+
onGenerating: [],
|
|
966
|
+
onFinished: [
|
|
967
|
+
'GENERATOR_ASSISTANT_MESSAGES', // type: array
|
|
968
|
+
'GENERATOR_ASSISTANT_LAST_MESSAGE', // type: object
|
|
969
|
+
'GENERATOR_ASSISTANT_IS_ERROR', // type: bool
|
|
970
|
+
],
|
|
964
971
|
},
|
|
965
972
|
GENERATOR_VECTOR_STORE: {
|
|
966
973
|
onError: [
|