@fugood/bricks-project 2.21.0-beta.34 → 2.21.0-beta.36

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.
@@ -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
- functionCallEnabled: 'GENERATOR_OPENAI_LLM_FUNCTION_CALL_ENABLED',
594
- functionCallSchema: 'GENERATOR_OPENAI_LLM_FUNCTION_CALL_SCHEMA',
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.34",
3
+ "version": "2.21.0-beta.36",
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": "8a64292b4f84242e10cde574f33c88ceefc7754e"
16
+ "gitHead": "4bc1b9a249bce22b5c2b6662c8bed6f9a4716ed5"
17
17
  }
@@ -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
  }>
@@ -3606,8 +3610,8 @@ Default property:
3606
3610
  {
3607
3611
  "init": false,
3608
3612
  "httpMethod": "GET",
3609
- "attributePath": "textContent",
3610
- "timeout": 10000
3613
+ "timeout": 10000,
3614
+ "attributePath": "textContent"
3611
3615
  }
3612
3616
  */
3613
3617
  property?: {
@@ -3627,12 +3631,22 @@ Default property:
3627
3631
  userAgent?: string | DataLink
3628
3632
  /* Headers of crawler request */
3629
3633
  headers?: {} | DataLink
3634
+ /* Timeout of crawler request */
3635
+ timeout?: number | DataLink
3630
3636
  /* CSS Query Selector of selected element */
3631
3637
  selector?: string | DataLink
3632
3638
  /* Attribute path of HTMLElement */
3633
3639
  attributePath?: string | DataLink
3634
- /* Timeout of crawler request */
3635
- timeout?: number | DataLink
3640
+ /* Multiple selectors and attribute paths. */
3641
+ selectorList?:
3642
+ | Array<
3643
+ | DataLink
3644
+ | {
3645
+ selector?: string | DataLink
3646
+ attributePath?: string | DataLink
3647
+ }
3648
+ >
3649
+ | DataLink
3636
3650
  }
3637
3651
  events?: {
3638
3652
  /* Event of crawling start */
@@ -3641,8 +3655,10 @@ Default property:
3641
3655
  onEnd?: Array<EventAction>
3642
3656
  }
3643
3657
  outlets?: {
3644
- /* Response for CRAWLER request */
3658
+ /* Response for CRAWLER request (selector) */
3645
3659
  response?: () => Data
3660
+ /* Responses for CRAWLER request (selectorList) */
3661
+ responseList?: () => Data
3646
3662
  /* The error response of CRAWLER request, it will save to property bank */
3647
3663
  error?: () => Data
3648
3664
  }
@@ -3662,7 +3678,7 @@ export type GeneratorWebCrawler = Generator &
3662
3678
  | SwitchCondData
3663
3679
  | {
3664
3680
  __typename: 'SwitchCondInnerStateOutlet'
3665
- outlet: 'response' | 'error'
3681
+ outlet: 'response' | 'responseList' | 'error'
3666
3682
  value: any
3667
3683
  }
3668
3684
  }>
@@ -4693,6 +4709,11 @@ export type GeneratorThermalPrinterActionPrint = ActionWithParams & {
4693
4709
  >
4694
4710
  }
4695
4711
 
4712
+ /* Check thermal printer status */
4713
+ export type GeneratorThermalPrinterActionCheckStatus = Action & {
4714
+ __actionName: 'GENERATOR_THERMAL_PRINTER_CHECK_STATUS'
4715
+ }
4716
+
4696
4717
  interface GeneratorThermalPrinterDef {
4697
4718
  /*
4698
4719
  Default property:
@@ -4715,7 +4736,7 @@ Default property:
4715
4736
  lang?: 'ANK' | 'CHINESE' | 'TAIWAN' | 'KOREAN' | 'THAI' | 'SOUTHASIA' | DataLink
4716
4737
  /* The timeout of scanning */
4717
4738
  scanTimeout?: number | DataLink
4718
- /* State update interval */
4739
+ /* State update interval, 0 means no update automatically */
4719
4740
  stateUpdateInterval?: number | DataLink
4720
4741
  /* Enable page mode on printing */
4721
4742
  pageMode?: boolean | DataLink
@@ -6535,6 +6556,8 @@ Default property:
6535
6556
  completionDryPenaltyLastN?: number | DataLink
6536
6557
  /* Specify an array of sequence breakers for DRY sampling. Only a JSON array of strings is accepted. Default: `['\n', ':', '"', '*']` */
6537
6558
  completionDrySequenceBreakers?: Array<string | DataLink> | DataLink
6559
+ /* Top n sigma sampling as described in academic paper "Top-nσ: Not All Logits Are You Need" https://arxiv.org/pdf/2411.07641. Default: `-1.0` (Disabled) */
6560
+ completionTopNSigma?: number | DataLink
6538
6561
  /* Use Mirostat sampling. Top K, Nucleus, Tail Free and Locally Typical samplers are ignored if used. */
6539
6562
  completionMirostat?: number | DataLink
6540
6563
  /* Mirostat target entropy, parameter tau */
@@ -6601,7 +6624,7 @@ Default property:
6601
6624
  type: 'string'
6602
6625
  path: string
6603
6626
  }
6604
- completionDetails: {
6627
+ completionResultDetails: {
6605
6628
  type: 'object'
6606
6629
  path: string
6607
6630
  }
@@ -6628,7 +6651,7 @@ Default property:
6628
6651
  type: 'string'
6629
6652
  path: string
6630
6653
  }
6631
- completionDetails: {
6654
+ completionResultDetails: {
6632
6655
  type: 'object'
6633
6656
  path: string
6634
6657
  }
@@ -6762,13 +6785,23 @@ export type GeneratorOpenAILLMActionCompletion = ActionWithParams & {
6762
6785
  mapping?: string
6763
6786
  }
6764
6787
  | {
6765
- input: 'functionCallEnabled'
6788
+ input: 'tools'
6789
+ value?: {} | DataLink
6790
+ mapping?: string
6791
+ }
6792
+ | {
6793
+ input: 'toolChoice'
6794
+ value?: string | DataLink
6795
+ mapping?: string
6796
+ }
6797
+ | {
6798
+ input: 'parallelToolCalls'
6766
6799
  value?: boolean | DataLink
6767
6800
  mapping?: string
6768
6801
  }
6769
6802
  | {
6770
- input: 'functionCallSchema'
6771
- value?: Array<any> | DataLink
6803
+ input: 'responseFormat'
6804
+ value?: {} | DataLink
6772
6805
  mapping?: string
6773
6806
  }
6774
6807
  >
@@ -6873,6 +6906,10 @@ Default property:
6873
6906
  type: 'string'
6874
6907
  path: string
6875
6908
  }
6909
+ completionDetails: {
6910
+ type: 'object'
6911
+ path: string
6912
+ }
6876
6913
  }
6877
6914
  }
6878
6915
  >
@@ -6884,6 +6921,10 @@ Default property:
6884
6921
  type: 'string'
6885
6922
  path: string
6886
6923
  }
6924
+ toolCalls: {
6925
+ type: 'array'
6926
+ path: string
6927
+ }
6887
6928
  }
6888
6929
  }
6889
6930
  >