blazen 0.1.161 → 0.5.1
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/blazen.workers.d.ts +2 -0
- package/blazen.workers.js +482 -0
- package/index.d.ts +564 -125
- package/index.js +36 -3
- package/package.json +39 -14
package/index.js
CHANGED
|
@@ -582,10 +582,22 @@ module.exports.AgentResult = nativeBinding.AgentResult
|
|
|
582
582
|
module.exports.JsAgentResult = nativeBinding.JsAgentResult
|
|
583
583
|
module.exports.AnthropicProvider = nativeBinding.AnthropicProvider
|
|
584
584
|
module.exports.JsAnthropicProvider = nativeBinding.JsAnthropicProvider
|
|
585
|
+
module.exports.ApiProtocol = nativeBinding.ApiProtocol
|
|
586
|
+
module.exports.JsApiProtocol = nativeBinding.JsApiProtocol
|
|
587
|
+
module.exports.AudioMusicProviderDefaults = nativeBinding.AudioMusicProviderDefaults
|
|
588
|
+
module.exports.JsAudioMusicProviderDefaults = nativeBinding.JsAudioMusicProviderDefaults
|
|
589
|
+
module.exports.AudioSpeechProviderDefaults = nativeBinding.AudioSpeechProviderDefaults
|
|
590
|
+
module.exports.JsAudioSpeechProviderDefaults = nativeBinding.JsAudioSpeechProviderDefaults
|
|
585
591
|
module.exports.AzureOpenAiProvider = nativeBinding.AzureOpenAiProvider
|
|
586
592
|
module.exports.JsAzureOpenAiProvider = nativeBinding.JsAzureOpenAiProvider
|
|
587
593
|
module.exports.BackgroundRemovalProvider = nativeBinding.BackgroundRemovalProvider
|
|
588
594
|
module.exports.JsBackgroundRemovalProvider = nativeBinding.JsBackgroundRemovalProvider
|
|
595
|
+
module.exports.BackgroundRemovalProviderDefaults = nativeBinding.BackgroundRemovalProviderDefaults
|
|
596
|
+
module.exports.JsBackgroundRemovalProviderDefaults = nativeBinding.JsBackgroundRemovalProviderDefaults
|
|
597
|
+
module.exports.BaseProvider = nativeBinding.BaseProvider
|
|
598
|
+
module.exports.JsBaseProvider = nativeBinding.JsBaseProvider
|
|
599
|
+
module.exports.BaseProviderDefaults = nativeBinding.BaseProviderDefaults
|
|
600
|
+
module.exports.JsBaseProviderDefaults = nativeBinding.JsBaseProviderDefaults
|
|
589
601
|
module.exports.BatchConfig = nativeBinding.BatchConfig
|
|
590
602
|
module.exports.JsBatchConfig = nativeBinding.JsBatchConfig
|
|
591
603
|
module.exports.BatchResult = nativeBinding.BatchResult
|
|
@@ -622,6 +634,8 @@ module.exports.CohereProvider = nativeBinding.CohereProvider
|
|
|
622
634
|
module.exports.JsCohereProvider = nativeBinding.JsCohereProvider
|
|
623
635
|
module.exports.CompletionModel = nativeBinding.CompletionModel
|
|
624
636
|
module.exports.JsCompletionModel = nativeBinding.JsCompletionModel
|
|
637
|
+
module.exports.CompletionProviderDefaults = nativeBinding.CompletionProviderDefaults
|
|
638
|
+
module.exports.JsCompletionProviderDefaults = nativeBinding.JsCompletionProviderDefaults
|
|
625
639
|
module.exports.ContentStore = nativeBinding.ContentStore
|
|
626
640
|
module.exports.JsContentStore = nativeBinding.JsContentStore
|
|
627
641
|
module.exports.Context = nativeBinding.Context
|
|
@@ -636,6 +650,8 @@ module.exports.DynamicEvent = nativeBinding.DynamicEvent
|
|
|
636
650
|
module.exports.JsDynamicEvent = nativeBinding.JsDynamicEvent
|
|
637
651
|
module.exports.EmbeddingModel = nativeBinding.EmbeddingModel
|
|
638
652
|
module.exports.JsEmbeddingModel = nativeBinding.JsEmbeddingModel
|
|
653
|
+
module.exports.EmbeddingProviderDefaults = nativeBinding.EmbeddingProviderDefaults
|
|
654
|
+
module.exports.JsEmbeddingProviderDefaults = nativeBinding.JsEmbeddingProviderDefaults
|
|
639
655
|
module.exports.EmbedProvider = nativeBinding.EmbedProvider
|
|
640
656
|
module.exports.JsEmbedProvider = nativeBinding.JsEmbedProvider
|
|
641
657
|
module.exports.EstimateCounter = nativeBinding.EstimateCounter
|
|
@@ -656,16 +672,18 @@ module.exports.GroqProvider = nativeBinding.GroqProvider
|
|
|
656
672
|
module.exports.JsGroqProvider = nativeBinding.JsGroqProvider
|
|
657
673
|
module.exports.HistoryEventKind = nativeBinding.HistoryEventKind
|
|
658
674
|
module.exports.JsHistoryEventKind = nativeBinding.JsHistoryEventKind
|
|
659
|
-
module.exports.HostDispatch = nativeBinding.HostDispatch
|
|
660
|
-
module.exports.JsHostDispatch = nativeBinding.JsHostDispatch
|
|
661
675
|
module.exports.HttpClient = nativeBinding.HttpClient
|
|
662
676
|
module.exports.JsHttpClient = nativeBinding.JsHttpClient
|
|
663
677
|
module.exports.HttpPeerClient = nativeBinding.HttpPeerClient
|
|
664
678
|
module.exports.JsHttpPeerClient = nativeBinding.JsHttpPeerClient
|
|
679
|
+
module.exports.ImageGenerationProviderDefaults = nativeBinding.ImageGenerationProviderDefaults
|
|
680
|
+
module.exports.JsImageGenerationProviderDefaults = nativeBinding.JsImageGenerationProviderDefaults
|
|
665
681
|
module.exports.ImageModel = nativeBinding.ImageModel
|
|
666
682
|
module.exports.JsImageModel = nativeBinding.JsImageModel
|
|
667
683
|
module.exports.ImageProvider = nativeBinding.ImageProvider
|
|
668
684
|
module.exports.JsImageProvider = nativeBinding.JsImageProvider
|
|
685
|
+
module.exports.ImageUpscaleProviderDefaults = nativeBinding.ImageUpscaleProviderDefaults
|
|
686
|
+
module.exports.JsImageUpscaleProviderDefaults = nativeBinding.JsImageUpscaleProviderDefaults
|
|
669
687
|
module.exports.InferenceChunk = nativeBinding.InferenceChunk
|
|
670
688
|
module.exports.JsInferenceChunk = nativeBinding.JsInferenceChunk
|
|
671
689
|
module.exports.InferenceChunkStream = nativeBinding.InferenceChunkStream
|
|
@@ -808,6 +826,8 @@ module.exports.SubWorkflowStep = nativeBinding.SubWorkflowStep
|
|
|
808
826
|
module.exports.JsSubWorkflowStep = nativeBinding.JsSubWorkflowStep
|
|
809
827
|
module.exports.ThreeDProvider = nativeBinding.ThreeDProvider
|
|
810
828
|
module.exports.JsThreeDProvider = nativeBinding.JsThreeDProvider
|
|
829
|
+
module.exports.ThreeDProviderDefaults = nativeBinding.ThreeDProviderDefaults
|
|
830
|
+
module.exports.JsThreeDProviderDefaults = nativeBinding.JsThreeDProviderDefaults
|
|
811
831
|
module.exports.TiktokenCounter = nativeBinding.TiktokenCounter
|
|
812
832
|
module.exports.JsTiktokenCounter = nativeBinding.JsTiktokenCounter
|
|
813
833
|
module.exports.TogetherProvider = nativeBinding.TogetherProvider
|
|
@@ -826,6 +846,8 @@ module.exports.TractEmbedModel = nativeBinding.TractEmbedModel
|
|
|
826
846
|
module.exports.JsTractEmbedModel = nativeBinding.JsTractEmbedModel
|
|
827
847
|
module.exports.Transcription = nativeBinding.Transcription
|
|
828
848
|
module.exports.JsTranscription = nativeBinding.JsTranscription
|
|
849
|
+
module.exports.TranscriptionProviderDefaults = nativeBinding.TranscriptionProviderDefaults
|
|
850
|
+
module.exports.JsTranscriptionProviderDefaults = nativeBinding.JsTranscriptionProviderDefaults
|
|
829
851
|
module.exports.TTSProvider = nativeBinding.TTSProvider
|
|
830
852
|
module.exports.JsTTSProvider = nativeBinding.JsTTSProvider
|
|
831
853
|
module.exports.TypedTool = nativeBinding.TypedTool
|
|
@@ -844,6 +866,10 @@ module.exports.ValkeyCheckpointStore = nativeBinding.ValkeyCheckpointStore
|
|
|
844
866
|
module.exports.JsValkeyCheckpointStore = nativeBinding.JsValkeyCheckpointStore
|
|
845
867
|
module.exports.VideoProvider = nativeBinding.VideoProvider
|
|
846
868
|
module.exports.JsVideoProvider = nativeBinding.JsVideoProvider
|
|
869
|
+
module.exports.VideoProviderDefaults = nativeBinding.VideoProviderDefaults
|
|
870
|
+
module.exports.JsVideoProviderDefaults = nativeBinding.JsVideoProviderDefaults
|
|
871
|
+
module.exports.VoiceCloningProviderDefaults = nativeBinding.VoiceCloningProviderDefaults
|
|
872
|
+
module.exports.JsVoiceCloningProviderDefaults = nativeBinding.JsVoiceCloningProviderDefaults
|
|
847
873
|
module.exports.VoiceProvider = nativeBinding.VoiceProvider
|
|
848
874
|
module.exports.JsVoiceProvider = nativeBinding.JsVoiceProvider
|
|
849
875
|
module.exports.WhisperCppProvider = nativeBinding.WhisperCppProvider
|
|
@@ -876,10 +902,14 @@ module.exports.computeImageCost = nativeBinding.computeImageCost
|
|
|
876
902
|
module.exports.computeTextSimhashSimilarity = nativeBinding.computeTextSimhashSimilarity
|
|
877
903
|
module.exports.computeVideoCost = nativeBinding.computeVideoCost
|
|
878
904
|
module.exports.countMessageTokens = nativeBinding.countMessageTokens
|
|
905
|
+
module.exports.DEFAULT_MODEL_PRICING_URL_BASE = nativeBinding.DEFAULT_MODEL_PRICING_URL_BASE
|
|
906
|
+
module.exports.DEFAULT_PRICING_URL = nativeBinding.DEFAULT_PRICING_URL
|
|
879
907
|
module.exports.defaultHttpClientConfig = nativeBinding.defaultHttpClientConfig
|
|
880
908
|
module.exports.envVarForProvider = nativeBinding.envVarForProvider
|
|
881
909
|
module.exports.estimateTokens = nativeBinding.estimateTokens
|
|
882
910
|
module.exports.extractInlineArtifacts = nativeBinding.extractInlineArtifacts
|
|
911
|
+
module.exports.fetchOneDefault = nativeBinding.fetchOneDefault
|
|
912
|
+
module.exports.fetchOneDefaultWithUrlBase = nativeBinding.fetchOneDefaultWithUrlBase
|
|
883
913
|
module.exports.fileInput = nativeBinding.fileInput
|
|
884
914
|
module.exports.FINISH_WORKFLOW_TOOL_NAME = nativeBinding.FINISH_WORKFLOW_TOOL_NAME
|
|
885
915
|
module.exports.finishWorkflowTool = nativeBinding.finishWorkflowTool
|
|
@@ -924,13 +954,16 @@ module.exports.ProviderId = nativeBinding.ProviderId
|
|
|
924
954
|
module.exports.JsProviderId = nativeBinding.JsProviderId
|
|
925
955
|
module.exports.RefLifetime = nativeBinding.RefLifetime
|
|
926
956
|
module.exports.JsRefLifetime = nativeBinding.JsRefLifetime
|
|
957
|
+
module.exports.refreshDefault = nativeBinding.refreshDefault
|
|
958
|
+
module.exports.refreshDefaultWithUrl = nativeBinding.refreshDefaultWithUrl
|
|
959
|
+
module.exports.refreshPricing = nativeBinding.refreshPricing
|
|
927
960
|
module.exports.registeredStepIds = nativeBinding.registeredStepIds
|
|
928
961
|
module.exports.registerEventDeserializer = nativeBinding.registerEventDeserializer
|
|
929
962
|
module.exports.registerFromModelInfo = nativeBinding.registerFromModelInfo
|
|
930
963
|
module.exports.registerPricing = nativeBinding.registerPricing
|
|
931
964
|
module.exports.registerStepBuilder = nativeBinding.registerStepBuilder
|
|
932
965
|
module.exports.resolveApiKey = nativeBinding.resolveApiKey
|
|
933
|
-
module.exports.
|
|
966
|
+
module.exports.resolvePeerToken = nativeBinding.resolvePeerToken
|
|
934
967
|
module.exports.resolveRetryStack = nativeBinding.resolveRetryStack
|
|
935
968
|
module.exports.runAgent = nativeBinding.runAgent
|
|
936
969
|
module.exports.runAgentWithCallback = nativeBinding.runAgentWithCallback
|
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blazen",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Blazen - Event-driven AI workflow framework for Node.js/TypeScript",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"import": "./index.js",
|
|
11
|
+
"require": "./index.js",
|
|
12
|
+
"default": "./index.js"
|
|
13
|
+
},
|
|
14
|
+
"./workers": {
|
|
15
|
+
"types": "./blazen.workers.d.ts",
|
|
16
|
+
"default": "./blazen.workers.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
7
20
|
"napi": {
|
|
8
21
|
"binaryName": "blazen",
|
|
9
22
|
"packageName": "@blazen-dev/blazen",
|
|
@@ -37,16 +50,28 @@
|
|
|
37
50
|
"files": [
|
|
38
51
|
"index.js",
|
|
39
52
|
"index.d.ts",
|
|
40
|
-
"error-classes.js"
|
|
53
|
+
"error-classes.js",
|
|
54
|
+
"blazen.workers.js",
|
|
55
|
+
"blazen.workers.d.ts"
|
|
41
56
|
],
|
|
42
|
-
"
|
|
43
|
-
"@biomejs/biome": "^2",
|
|
57
|
+
"dependencies": {
|
|
44
58
|
"@emnapi/core": "^1.10.0",
|
|
45
59
|
"@emnapi/runtime": "^1.10.0",
|
|
46
|
-
"@napi-rs/cli": "^3.0.0",
|
|
47
60
|
"@napi-rs/wasm-runtime": "^1.1.4",
|
|
48
|
-
"@tybys/wasm-util": "^0.10.2"
|
|
49
|
-
|
|
61
|
+
"@tybys/wasm-util": "^0.10.2"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@blazen-dev/blazen-wasm32-wasi": "^0.1.160"
|
|
65
|
+
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"@blazen-dev/blazen-wasm32-wasi": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@biomejs/biome": "^2",
|
|
73
|
+
"@napi-rs/cli": "^3.0.0",
|
|
74
|
+
"ava": "^8.0.0"
|
|
50
75
|
},
|
|
51
76
|
"engines": {
|
|
52
77
|
"node": ">= 18"
|
|
@@ -63,13 +88,13 @@
|
|
|
63
88
|
"verbose": true
|
|
64
89
|
},
|
|
65
90
|
"optionalDependencies": {
|
|
66
|
-
"@blazen-dev/blazen-linux-x64-gnu": "0.1
|
|
67
|
-
"@blazen-dev/blazen-linux-x64-musl": "0.1
|
|
68
|
-
"@blazen-dev/blazen-linux-arm64-gnu": "0.1
|
|
69
|
-
"@blazen-dev/blazen-linux-arm64-musl": "0.1
|
|
70
|
-
"@blazen-dev/blazen-darwin-arm64": "0.1
|
|
71
|
-
"@blazen-dev/blazen-win32-x64-msvc": "0.1
|
|
72
|
-
"@blazen-dev/blazen-wasm32-wasi": "0.1
|
|
91
|
+
"@blazen-dev/blazen-linux-x64-gnu": "0.5.1",
|
|
92
|
+
"@blazen-dev/blazen-linux-x64-musl": "0.5.1",
|
|
93
|
+
"@blazen-dev/blazen-linux-arm64-gnu": "0.5.1",
|
|
94
|
+
"@blazen-dev/blazen-linux-arm64-musl": "0.5.1",
|
|
95
|
+
"@blazen-dev/blazen-darwin-arm64": "0.5.1",
|
|
96
|
+
"@blazen-dev/blazen-win32-x64-msvc": "0.5.1",
|
|
97
|
+
"@blazen-dev/blazen-wasm32-wasi": "0.5.1"
|
|
73
98
|
},
|
|
74
99
|
"scripts": {
|
|
75
100
|
"build": "napi build --release --platform --features local-all,langfuse --js index.js && node scripts/post-build.mjs",
|