@workglow/test 0.0.84 → 0.0.86
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/dist/browser.js +140 -106
- package/dist/browser.js.map +8 -8
- package/dist/bun.js +152 -118
- package/dist/bun.js.map +14 -14
- package/dist/node.js +152 -118
- package/dist/node.js.map +14 -14
- package/dist/test/rag/DocumentChunkRetrievalTask.test.d.ts.map +1 -0
- package/package.json +22 -17
- package/src/binding/README.md +1 -1
- package/src/test/rag/history_of_the_united_states.md +122 -0
- package/dist/binding/FsFolderTaskGraphRepository.d.ts +0 -15
- package/dist/binding/FsFolderTaskGraphRepository.d.ts.map +0 -1
- package/dist/binding/FsFolderTaskOutputRepository.d.ts +0 -15
- package/dist/binding/FsFolderTaskOutputRepository.d.ts.map +0 -1
- package/dist/binding/InMemoryTaskGraphRepository.d.ts +0 -15
- package/dist/binding/InMemoryTaskGraphRepository.d.ts.map +0 -1
- package/dist/binding/InMemoryTaskOutputRepository.d.ts +0 -15
- package/dist/binding/InMemoryTaskOutputRepository.d.ts.map +0 -1
- package/dist/binding/IndexedDbModelRepository.d.ts +0 -14
- package/dist/binding/IndexedDbModelRepository.d.ts.map +0 -1
- package/dist/binding/IndexedDbTaskGraphRepository.d.ts +0 -15
- package/dist/binding/IndexedDbTaskGraphRepository.d.ts.map +0 -1
- package/dist/binding/IndexedDbTaskOutputRepository.d.ts +0 -15
- package/dist/binding/IndexedDbTaskOutputRepository.d.ts.map +0 -1
- package/dist/binding/PostgresModelRepository.d.ts +0 -15
- package/dist/binding/PostgresModelRepository.d.ts.map +0 -1
- package/dist/binding/PostgresTaskGraphRepository.d.ts +0 -16
- package/dist/binding/PostgresTaskGraphRepository.d.ts.map +0 -1
- package/dist/binding/PostgresTaskOutputRepository.d.ts +0 -16
- package/dist/binding/PostgresTaskOutputRepository.d.ts.map +0 -1
- package/dist/binding/SqliteModelRepository.d.ts +0 -14
- package/dist/binding/SqliteModelRepository.d.ts.map +0 -1
- package/dist/binding/SqliteTaskGraphRepository.d.ts +0 -15
- package/dist/binding/SqliteTaskGraphRepository.d.ts.map +0 -1
- package/dist/binding/SqliteTaskOutputRepository.d.ts +0 -15
- package/dist/binding/SqliteTaskOutputRepository.d.ts.map +0 -1
- package/dist/browser.d.ts +0 -9
- package/dist/browser.d.ts.map +0 -1
- package/dist/bun.d.ts +0 -7
- package/dist/bun.d.ts.map +0 -1
- package/dist/common-server.d.ts +0 -15
- package/dist/common-server.d.ts.map +0 -1
- package/dist/common.d.ts +0 -9
- package/dist/common.d.ts.map +0 -1
- package/dist/node.d.ts +0 -7
- package/dist/node.d.ts.map +0 -1
- package/dist/samples/MediaPipeModelSamples.d.ts +0 -2
- package/dist/samples/MediaPipeModelSamples.d.ts.map +0 -1
- package/dist/samples/ONNXModelSamples.d.ts +0 -2
- package/dist/samples/ONNXModelSamples.d.ts.map +0 -1
- package/dist/samples/index.d.ts +0 -10
- package/dist/samples/index.d.ts.map +0 -1
- package/dist/test/ai-model/InMemoryModelRepository.test.d.ts +0 -7
- package/dist/test/ai-model/InMemoryModelRepository.test.d.ts.map +0 -1
- package/dist/test/ai-model/IndexedDbModelRepository.test.d.ts +0 -7
- package/dist/test/ai-model/IndexedDbModelRepository.test.d.ts.map +0 -1
- package/dist/test/ai-model/PostgresModelRepository.test.d.ts +0 -7
- package/dist/test/ai-model/PostgresModelRepository.test.d.ts.map +0 -1
- package/dist/test/ai-model/SqliteModelRepository.test.d.ts +0 -7
- package/dist/test/ai-model/SqliteModelRepository.test.d.ts.map +0 -1
- package/dist/test/ai-model/genericModelRepositoryTests.d.ts +0 -8
- package/dist/test/ai-model/genericModelRepositoryTests.d.ts.map +0 -1
- package/dist/test/ai-provider/AiProviderRegistry.test.d.ts +0 -7
- package/dist/test/ai-provider/AiProviderRegistry.test.d.ts.map +0 -1
- package/dist/test/ai-provider/DownloadModelAbort.test.d.ts +0 -7
- package/dist/test/ai-provider/DownloadModelAbort.test.d.ts.map +0 -1
- package/dist/test/ai-provider/HFTransformersBinding.test.d.ts +0 -7
- package/dist/test/ai-provider/HFTransformersBinding.test.d.ts.map +0 -1
- package/dist/test/ai-provider/TextEmbeddingTask.test.d.ts +0 -7
- package/dist/test/ai-provider/TextEmbeddingTask.test.d.ts.map +0 -1
- package/dist/test/ai-provider/TfMediaPipeBinding.test.d.ts +0 -7
- package/dist/test/ai-provider/TfMediaPipeBinding.test.d.ts.map +0 -1
- package/dist/test/ai-provider/VisionTasks.test.d.ts +0 -7
- package/dist/test/ai-provider/VisionTasks.test.d.ts.map +0 -1
- package/dist/test/ai-provider/ZeroShotTasks.test.d.ts +0 -7
- package/dist/test/ai-provider/ZeroShotTasks.test.d.ts.map +0 -1
- package/dist/test/helpers/SupabaseMockClient.d.ts +0 -12
- package/dist/test/helpers/SupabaseMockClient.d.ts.map +0 -1
- package/dist/test/job-queue/InMemoryJobQueue.test.d.ts +0 -7
- package/dist/test/job-queue/InMemoryJobQueue.test.d.ts.map +0 -1
- package/dist/test/job-queue/InMemoryPrefixedQueueStorage.test.d.ts +0 -7
- package/dist/test/job-queue/InMemoryPrefixedQueueStorage.test.d.ts.map +0 -1
- package/dist/test/job-queue/IndexedDbJobQueue.test.d.ts +0 -7
- package/dist/test/job-queue/IndexedDbJobQueue.test.d.ts.map +0 -1
- package/dist/test/job-queue/IndexedDbPrefixedQueueStorage.test.d.ts +0 -7
- package/dist/test/job-queue/IndexedDbPrefixedQueueStorage.test.d.ts.map +0 -1
- package/dist/test/job-queue/PostgresJobQueue.test.d.ts +0 -7
- package/dist/test/job-queue/PostgresJobQueue.test.d.ts.map +0 -1
- package/dist/test/job-queue/PostgresPrefixedQueueStorage.test.d.ts +0 -7
- package/dist/test/job-queue/PostgresPrefixedQueueStorage.test.d.ts.map +0 -1
- package/dist/test/job-queue/SqliteJobQueue.test.d.ts +0 -7
- package/dist/test/job-queue/SqliteJobQueue.test.d.ts.map +0 -1
- package/dist/test/job-queue/SqlitePrefixedQueueStorage.test.d.ts +0 -7
- package/dist/test/job-queue/SqlitePrefixedQueueStorage.test.d.ts.map +0 -1
- package/dist/test/job-queue/SupabaseJobQueue.test.d.ts +0 -7
- package/dist/test/job-queue/SupabaseJobQueue.test.d.ts.map +0 -1
- package/dist/test/job-queue/SupabasePrefixedQueueStorage.test.d.ts +0 -7
- package/dist/test/job-queue/SupabasePrefixedQueueStorage.test.d.ts.map +0 -1
- package/dist/test/job-queue/genericJobQueueTests.d.ts +0 -22
- package/dist/test/job-queue/genericJobQueueTests.d.ts.map +0 -1
- package/dist/test/job-queue/genericPrefixedQueueStorageTests.d.ts +0 -18
- package/dist/test/job-queue/genericPrefixedQueueStorageTests.d.ts.map +0 -1
- package/dist/test/job-queue/genericQueueStorageSubscriptionTests.d.ts +0 -29
- package/dist/test/job-queue/genericQueueStorageSubscriptionTests.d.ts.map +0 -1
- package/dist/test/storage-kv/FsFolderJsonKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/FsFolderJsonKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/FsFolderKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/FsFolderKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/InMemoryKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/InMemoryKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/IndexedDbKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/IndexedDbKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/PostgresKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/PostgresKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/SqliteKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/SqliteKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/SupabaseKvRepository.test.d.ts +0 -7
- package/dist/test/storage-kv/SupabaseKvRepository.test.d.ts.map +0 -1
- package/dist/test/storage-kv/genericKvRepositoryTests.d.ts +0 -9
- package/dist/test/storage-kv/genericKvRepositoryTests.d.ts.map +0 -1
- package/dist/test/storage-tabular/CachedTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/CachedTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/FsFolderTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/FsFolderTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/InMemoryTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/InMemoryTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/IndexedDbTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/IndexedDbTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/PostgresTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/PostgresTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/SqliteTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/SqliteTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/SupabaseTabularRepository.test.d.ts +0 -7
- package/dist/test/storage-tabular/SupabaseTabularRepository.test.d.ts.map +0 -1
- package/dist/test/storage-tabular/genericTabularRepositorySubscriptionTests.d.ts +0 -19
- package/dist/test/storage-tabular/genericTabularRepositorySubscriptionTests.d.ts.map +0 -1
- package/dist/test/storage-tabular/genericTabularRepositoryTests.d.ts +0 -127
- package/dist/test/storage-tabular/genericTabularRepositoryTests.d.ts.map +0 -1
- package/dist/test/storage-util/HybridSubscriptionManager.test.d.ts +0 -7
- package/dist/test/storage-util/HybridSubscriptionManager.test.d.ts.map +0 -1
- package/dist/test/storage-util/IndexedDbHybridSubscription.test.d.ts +0 -7
- package/dist/test/storage-util/IndexedDbHybridSubscription.test.d.ts.map +0 -1
- package/dist/test/storage-util/IndexedDbTable.migration.test.d.ts +0 -7
- package/dist/test/storage-util/IndexedDbTable.migration.test.d.ts.map +0 -1
- package/dist/test/task/ArrayTask.test.d.ts +0 -7
- package/dist/test/task/ArrayTask.test.d.ts.map +0 -1
- package/dist/test/task/ConditionalTask.test.d.ts +0 -7
- package/dist/test/task/ConditionalTask.test.d.ts.map +0 -1
- package/dist/test/task/DelayTask.test.d.ts +0 -7
- package/dist/test/task/DelayTask.test.d.ts.map +0 -1
- package/dist/test/task/FetchTask.test.d.ts +0 -7
- package/dist/test/task/FetchTask.test.d.ts.map +0 -1
- package/dist/test/task/GraphAsTask.test.d.ts +0 -2
- package/dist/test/task/GraphAsTask.test.d.ts.map +0 -1
- package/dist/test/task/JavaScriptTask.test.d.ts +0 -7
- package/dist/test/task/JavaScriptTask.test.d.ts.map +0 -1
- package/dist/test/task/LambdaTask.test.d.ts +0 -7
- package/dist/test/task/LambdaTask.test.d.ts.map +0 -1
- package/dist/test/task/MergeTask.test.d.ts +0 -7
- package/dist/test/task/MergeTask.test.d.ts.map +0 -1
- package/dist/test/task/OwnTask.test.d.ts +0 -2
- package/dist/test/task/OwnTask.test.d.ts.map +0 -1
- package/dist/test/task/SingleTask.test.d.ts +0 -7
- package/dist/test/task/SingleTask.test.d.ts.map +0 -1
- package/dist/test/task/SplitTask.test.d.ts +0 -7
- package/dist/test/task/SplitTask.test.d.ts.map +0 -1
- package/dist/test/task/TestTasks.d.ts +0 -387
- package/dist/test/task/TestTasks.d.ts.map +0 -1
- package/dist/test/task-graph/Pipeline.test.d.ts +0 -7
- package/dist/test/task-graph/Pipeline.test.d.ts.map +0 -1
- package/dist/test/task-graph/TaskGraph.test.d.ts +0 -7
- package/dist/test/task-graph/TaskGraph.test.d.ts.map +0 -1
- package/dist/test/task-graph/TaskGraphFormatSemantic.test.d.ts +0 -7
- package/dist/test/task-graph/TaskGraphFormatSemantic.test.d.ts.map +0 -1
- package/dist/test/task-graph/TaskGraphRunner.test.d.ts +0 -7
- package/dist/test/task-graph/TaskGraphRunner.test.d.ts.map +0 -1
- package/dist/test/task-graph/TaskSubGraphRunner.test.d.ts +0 -7
- package/dist/test/task-graph/TaskSubGraphRunner.test.d.ts.map +0 -1
- package/dist/test/task-graph/Workflow.test.d.ts +0 -7
- package/dist/test/task-graph/Workflow.test.d.ts.map +0 -1
- package/dist/test/task-graph-job-queue/InMemoryTaskGraphJobQueue.test.d.ts +0 -7
- package/dist/test/task-graph-job-queue/InMemoryTaskGraphJobQueue.test.d.ts.map +0 -1
- package/dist/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.d.ts +0 -7
- package/dist/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.d.ts.map +0 -1
- package/dist/test/task-graph-job-queue/SqliteTaskGraphJobQueue.test.d.ts +0 -7
- package/dist/test/task-graph-job-queue/SqliteTaskGraphJobQueue.test.d.ts.map +0 -1
- package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts +0 -23
- package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts.map +0 -1
- package/dist/test/task-graph-output-cache/FileTaskOutputRepository.test.d.ts +0 -7
- package/dist/test/task-graph-output-cache/FileTaskOutputRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-output-cache/InMemoryTaskOutputRepository.test.d.ts +0 -7
- package/dist/test/task-graph-output-cache/InMemoryTaskOutputRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-output-cache/IndexedDbTaskOutputRepository.test.d.ts +0 -7
- package/dist/test/task-graph-output-cache/IndexedDbTaskOutputRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-output-cache/SqliteTaskOutputRepository.test.d.ts +0 -7
- package/dist/test/task-graph-output-cache/SqliteTaskOutputRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-output-cache/genericTaskOutputRepositoryTests.d.ts +0 -8
- package/dist/test/task-graph-output-cache/genericTaskOutputRepositoryTests.d.ts.map +0 -1
- package/dist/test/task-graph-storage/FileTaskGraphRepository.test.d.ts +0 -7
- package/dist/test/task-graph-storage/FileTaskGraphRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-storage/InMemoryTaskGraphRepository.test.d.ts +0 -7
- package/dist/test/task-graph-storage/InMemoryTaskGraphRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-storage/IndexedDbTaskGraphRepository.test.d.ts +0 -7
- package/dist/test/task-graph-storage/IndexedDbTaskGraphRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-storage/SqliteTaskGraphRepository.test.d.ts +0 -7
- package/dist/test/task-graph-storage/SqliteTaskGraphRepository.test.d.ts.map +0 -1
- package/dist/test/task-graph-storage/genericTaskGraphRepositoryTests.d.ts +0 -8
- package/dist/test/task-graph-storage/genericTaskGraphRepositoryTests.d.ts.map +0 -1
- package/dist/test/util/EventEmitter.test.d.ts +0 -7
- package/dist/test/util/EventEmitter.test.d.ts.map +0 -1
- package/dist/test/util/SchemaUtils.test.d.ts +0 -7
- package/dist/test/util/SchemaUtils.test.d.ts.map +0 -1
- package/dist/test/util/arrayAsObjectProxy.test.d.ts +0 -7
- package/dist/test/util/arrayAsObjectProxy.test.d.ts.map +0 -1
- package/dist/test/util/compression.test.d.ts +0 -7
- package/dist/test/util/compression.test.d.ts.map +0 -1
- package/dist/test/util/directedAcyclicGraph.test.d.ts +0 -2
- package/dist/test/util/directedAcyclicGraph.test.d.ts.map +0 -1
- package/dist/test/util/directedGraph.test.d.ts +0 -2
- package/dist/test/util/directedGraph.test.d.ts.map +0 -1
- package/dist/test/util/graph.test.d.ts +0 -5
- package/dist/test/util/graph.test.d.ts.map +0 -1
- package/dist/test/util/readme.test.d.ts +0 -2
- package/dist/test/util/readme.test.d.ts.map +0 -1
- package/dist/types.d.ts +0 -7
- package/dist/types.d.ts.map +0 -1
package/dist/bun.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/binding/InMemoryTaskGraphRepository.ts
|
|
3
|
-
import {
|
|
3
|
+
import { InMemoryTabularStorage } from "@workglow/storage";
|
|
4
4
|
import {
|
|
5
5
|
TaskGraphPrimaryKeyNames,
|
|
6
6
|
TaskGraphSchema,
|
|
@@ -12,12 +12,12 @@ var MEMORY_TASK_GRAPH_REPOSITORY = createServiceToken("taskgraph.taskGraphReposi
|
|
|
12
12
|
class InMemoryTaskGraphRepository extends TaskGraphTabularRepository {
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
|
-
tabularRepository: new
|
|
15
|
+
tabularRepository: new InMemoryTabularStorage(TaskGraphSchema, TaskGraphPrimaryKeyNames)
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
// src/binding/InMemoryTaskOutputRepository.ts
|
|
20
|
-
import {
|
|
20
|
+
import { InMemoryTabularStorage as InMemoryTabularStorage2 } from "@workglow/storage";
|
|
21
21
|
import {
|
|
22
22
|
TaskOutputPrimaryKeyNames,
|
|
23
23
|
TaskOutputSchema,
|
|
@@ -29,7 +29,7 @@ var MEMORY_TASK_OUTPUT_REPOSITORY = createServiceToken2("taskgraph.taskOutputRep
|
|
|
29
29
|
class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
|
-
tabularRepository: new
|
|
32
|
+
tabularRepository: new InMemoryTabularStorage2(TaskOutputSchema, TaskOutputPrimaryKeyNames, ["createdAt"])
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -52,9 +52,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
52
52
|
tasks: ["TextEmbeddingTask"],
|
|
53
53
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
54
54
|
provider_config: {
|
|
55
|
-
|
|
55
|
+
task_engine: "text",
|
|
56
56
|
pipeline: "text-embedder",
|
|
57
|
-
|
|
57
|
+
model_path: "https://storage.googleapis.com/mediapipe-tasks/text_embedder/universal_sentence_encoder.tflite"
|
|
58
58
|
},
|
|
59
59
|
metadata: {}
|
|
60
60
|
},
|
|
@@ -65,9 +65,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
65
65
|
tasks: ["TextClassificationTask"],
|
|
66
66
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
67
67
|
provider_config: {
|
|
68
|
-
|
|
68
|
+
task_engine: "text",
|
|
69
69
|
pipeline: "text-classifier",
|
|
70
|
-
|
|
70
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/text_classifier/bert_classifier/float32/1/bert_classifier.tflite"
|
|
71
71
|
},
|
|
72
72
|
metadata: {}
|
|
73
73
|
},
|
|
@@ -78,9 +78,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
78
78
|
tasks: ["TextLanguageDetectionTask"],
|
|
79
79
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
80
80
|
provider_config: {
|
|
81
|
-
|
|
81
|
+
task_engine: "text",
|
|
82
82
|
pipeline: "text-language-detector",
|
|
83
|
-
|
|
83
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/language_detector/language_detector/float32/1/language_detector.tflite"
|
|
84
84
|
},
|
|
85
85
|
metadata: {}
|
|
86
86
|
},
|
|
@@ -91,9 +91,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
91
91
|
tasks: ["ImageClassificationTask"],
|
|
92
92
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
93
93
|
provider_config: {
|
|
94
|
-
|
|
94
|
+
task_engine: "vision",
|
|
95
95
|
pipeline: "vision-image-classifier",
|
|
96
|
-
|
|
96
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/image_classifier/efficientnet_lite0/float32/1/efficientnet_lite0.tflite"
|
|
97
97
|
},
|
|
98
98
|
metadata: {}
|
|
99
99
|
},
|
|
@@ -104,9 +104,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
104
104
|
tasks: ["ImageEmbeddingTask"],
|
|
105
105
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
106
106
|
provider_config: {
|
|
107
|
-
|
|
107
|
+
task_engine: "vision",
|
|
108
108
|
pipeline: "vision-image-embedder",
|
|
109
|
-
|
|
109
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/image_embedder/mobilenet_v3_small/float32/1/mobilenet_v3_small.tflite"
|
|
110
110
|
},
|
|
111
111
|
metadata: {}
|
|
112
112
|
},
|
|
@@ -117,9 +117,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
117
117
|
tasks: ["ObjectDetectionTask"],
|
|
118
118
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
119
119
|
provider_config: {
|
|
120
|
-
|
|
120
|
+
task_engine: "vision",
|
|
121
121
|
pipeline: "vision-object-detector",
|
|
122
|
-
|
|
122
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/object_detector/efficientdet_lite0/float32/1/efficientdet_lite0.tflite"
|
|
123
123
|
},
|
|
124
124
|
metadata: {}
|
|
125
125
|
},
|
|
@@ -130,9 +130,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
130
130
|
tasks: ["ImageSegmentationTask"],
|
|
131
131
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
132
132
|
provider_config: {
|
|
133
|
-
|
|
133
|
+
task_engine: "vision",
|
|
134
134
|
pipeline: "vision-image-segmenter",
|
|
135
|
-
|
|
135
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/image_segmenter/deeplab_v3/float32/1/deeplab_v3.tflite"
|
|
136
136
|
},
|
|
137
137
|
metadata: {}
|
|
138
138
|
},
|
|
@@ -143,9 +143,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
143
143
|
tasks: ["AudioClassificationTask"],
|
|
144
144
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
145
145
|
provider_config: {
|
|
146
|
-
|
|
146
|
+
task_engine: "audio",
|
|
147
147
|
pipeline: "audio-classifier",
|
|
148
|
-
|
|
148
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/audio_classifier/yamnet/float32/1/yamnet.tflite"
|
|
149
149
|
},
|
|
150
150
|
metadata: {}
|
|
151
151
|
},
|
|
@@ -156,9 +156,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
156
156
|
tasks: ["GestureRecognizerTask"],
|
|
157
157
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
158
158
|
provider_config: {
|
|
159
|
-
|
|
159
|
+
task_engine: "vision",
|
|
160
160
|
pipeline: "vision-gesture-recognizer",
|
|
161
|
-
|
|
161
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/1/gesture_recognizer.task"
|
|
162
162
|
},
|
|
163
163
|
metadata: {}
|
|
164
164
|
},
|
|
@@ -169,9 +169,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
169
169
|
tasks: ["HandLandmarkerTask"],
|
|
170
170
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
171
171
|
provider_config: {
|
|
172
|
-
|
|
172
|
+
task_engine: "vision",
|
|
173
173
|
pipeline: "vision-hand-landmarker",
|
|
174
|
-
|
|
174
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task"
|
|
175
175
|
},
|
|
176
176
|
metadata: {}
|
|
177
177
|
},
|
|
@@ -182,9 +182,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
182
182
|
tasks: ["FaceDetectorTask"],
|
|
183
183
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
184
184
|
provider_config: {
|
|
185
|
-
|
|
185
|
+
task_engine: "vision",
|
|
186
186
|
pipeline: "vision-face-detector",
|
|
187
|
-
|
|
187
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite"
|
|
188
188
|
},
|
|
189
189
|
metadata: {}
|
|
190
190
|
},
|
|
@@ -195,9 +195,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
195
195
|
tasks: ["FaceLandmarkerTask"],
|
|
196
196
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
197
197
|
provider_config: {
|
|
198
|
-
|
|
198
|
+
task_engine: "vision",
|
|
199
199
|
pipeline: "vision-face-landmarker",
|
|
200
|
-
|
|
200
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task"
|
|
201
201
|
},
|
|
202
202
|
metadata: {}
|
|
203
203
|
},
|
|
@@ -208,9 +208,9 @@ async function registerMediaPipeTfJsLocalModels() {
|
|
|
208
208
|
tasks: ["PoseLandmarkerTask"],
|
|
209
209
|
provider: TENSORFLOW_MEDIAPIPE,
|
|
210
210
|
provider_config: {
|
|
211
|
-
|
|
211
|
+
task_engine: "vision",
|
|
212
212
|
pipeline: "vision-pose-landmarker",
|
|
213
|
-
|
|
213
|
+
model_path: "https://storage.googleapis.com/mediapipe-models/pose_landmarker/pose_landmarker_lite/float16/1/pose_landmarker_lite.task"
|
|
214
214
|
},
|
|
215
215
|
metadata: {}
|
|
216
216
|
}
|
|
@@ -232,9 +232,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
232
232
|
provider: HF_TRANSFORMERS_ONNX,
|
|
233
233
|
provider_config: {
|
|
234
234
|
pipeline: "feature-extraction",
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
nativeDimensions: 384
|
|
235
|
+
model_path: "Xenova/all-MiniLM-L6-v2",
|
|
236
|
+
native_dimensions: 384
|
|
238
237
|
},
|
|
239
238
|
metadata: {}
|
|
240
239
|
},
|
|
@@ -246,9 +245,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
246
245
|
provider: HF_TRANSFORMERS_ONNX,
|
|
247
246
|
provider_config: {
|
|
248
247
|
pipeline: "feature-extraction",
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
nativeDimensions: 768
|
|
248
|
+
model_path: "Xenova/bge-base-en-v1.5",
|
|
249
|
+
native_dimensions: 768
|
|
252
250
|
},
|
|
253
251
|
metadata: {}
|
|
254
252
|
},
|
|
@@ -260,9 +258,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
260
258
|
provider: HF_TRANSFORMERS_ONNX,
|
|
261
259
|
provider_config: {
|
|
262
260
|
pipeline: "feature-extraction",
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
nativeDimensions: 384
|
|
261
|
+
model_path: "Xenova/gte-small",
|
|
262
|
+
native_dimensions: 384
|
|
266
263
|
},
|
|
267
264
|
metadata: {}
|
|
268
265
|
},
|
|
@@ -274,9 +271,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
274
271
|
provider: HF_TRANSFORMERS_ONNX,
|
|
275
272
|
provider_config: {
|
|
276
273
|
pipeline: "feature-extraction",
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
nativeDimensions: 128
|
|
274
|
+
model_path: "onnx-community/bert_uncased_L-2_H-128_A-2-ONNX",
|
|
275
|
+
native_dimensions: 128
|
|
280
276
|
},
|
|
281
277
|
metadata: {}
|
|
282
278
|
},
|
|
@@ -288,9 +284,34 @@ async function registerHuggingfaceLocalModels() {
|
|
|
288
284
|
provider: HF_TRANSFORMERS_ONNX,
|
|
289
285
|
provider_config: {
|
|
290
286
|
pipeline: "feature-extraction",
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
287
|
+
model_path: "Xenova/paraphrase-albert-base-v2",
|
|
288
|
+
native_dimensions: 768
|
|
289
|
+
},
|
|
290
|
+
metadata: {}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
model_id: "onnx:Qwen3-Embedding-0.6B:auto",
|
|
294
|
+
title: "Qwen3 Embedding 0.6B",
|
|
295
|
+
description: "onnx-community/Qwen3-Embedding-0.6B-ONNX",
|
|
296
|
+
tasks: ["TextEmbeddingTask"],
|
|
297
|
+
provider: HF_TRANSFORMERS_ONNX,
|
|
298
|
+
provider_config: {
|
|
299
|
+
pipeline: "feature-extraction",
|
|
300
|
+
model_path: "onnx-community/Qwen3-Embedding-0.6B-ONNX",
|
|
301
|
+
native_dimensions: 1024,
|
|
302
|
+
mrl: true
|
|
303
|
+
},
|
|
304
|
+
metadata: {}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
model_id: "onnx:onnx-community/NeuroBERT-NER-ONNX:q8",
|
|
308
|
+
title: "NeuroBERT NER",
|
|
309
|
+
description: "onnx-community/NeuroBERT-NER-ONNX",
|
|
310
|
+
tasks: ["TextNamedEntityRecognitionTask"],
|
|
311
|
+
provider: HF_TRANSFORMERS_ONNX,
|
|
312
|
+
provider_config: {
|
|
313
|
+
pipeline: "token-classification",
|
|
314
|
+
model_path: "onnx-community/NeuroBERT-NER-ONNX"
|
|
294
315
|
},
|
|
295
316
|
metadata: {}
|
|
296
317
|
},
|
|
@@ -298,11 +319,24 @@ async function registerHuggingfaceLocalModels() {
|
|
|
298
319
|
model_id: "onnx:Xenova/distilbert-base-uncased-distilled-squad:q8",
|
|
299
320
|
title: "distilbert-base-uncased-distilled-squad",
|
|
300
321
|
description: "Xenova/distilbert-base-uncased-distilled-squad quantized to 8bit",
|
|
301
|
-
tasks: ["
|
|
322
|
+
tasks: ["TextQuestionAnswerTask"],
|
|
323
|
+
provider: HF_TRANSFORMERS_ONNX,
|
|
324
|
+
provider_config: {
|
|
325
|
+
pipeline: "question-answering",
|
|
326
|
+
model_path: "Xenova/distilbert-base-uncased-distilled-squad"
|
|
327
|
+
},
|
|
328
|
+
metadata: {}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
model_id: "onnx:onnx-community/ModernBERT-finetuned-squad-ONNX",
|
|
332
|
+
title: "ModernBERT-finetuned-squad-ONNX",
|
|
333
|
+
description: "onnx-community/ModernBERT-finetuned-squad-ONNX quantized to int8",
|
|
334
|
+
tasks: ["TextQuestionAnswerTask"],
|
|
302
335
|
provider: HF_TRANSFORMERS_ONNX,
|
|
303
336
|
provider_config: {
|
|
304
337
|
pipeline: "question-answering",
|
|
305
|
-
|
|
338
|
+
model_path: "onnx-community/ModernBERT-finetuned-squad-ONNX",
|
|
339
|
+
dtype: "int8"
|
|
306
340
|
},
|
|
307
341
|
metadata: {}
|
|
308
342
|
},
|
|
@@ -314,8 +348,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
314
348
|
provider: HF_TRANSFORMERS_ONNX,
|
|
315
349
|
provider_config: {
|
|
316
350
|
pipeline: "text-generation",
|
|
317
|
-
|
|
318
|
-
|
|
351
|
+
model_path: "Xenova/gpt2",
|
|
352
|
+
dtype: "q8"
|
|
319
353
|
},
|
|
320
354
|
metadata: {}
|
|
321
355
|
},
|
|
@@ -327,10 +361,9 @@ async function registerHuggingfaceLocalModels() {
|
|
|
327
361
|
provider: HF_TRANSFORMERS_ONNX,
|
|
328
362
|
provider_config: {
|
|
329
363
|
pipeline: "text-generation",
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
useExternalDataFormat: true
|
|
364
|
+
model_path: "Xenova/Phi-3-mini-4k-instruct",
|
|
365
|
+
dtype: "q4f16",
|
|
366
|
+
use_external_data_format: true
|
|
334
367
|
},
|
|
335
368
|
metadata: {}
|
|
336
369
|
},
|
|
@@ -342,8 +375,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
342
375
|
provider: HF_TRANSFORMERS_ONNX,
|
|
343
376
|
provider_config: {
|
|
344
377
|
pipeline: "text-generation",
|
|
345
|
-
|
|
346
|
-
|
|
378
|
+
model_path: "Xenova/distilgpt2",
|
|
379
|
+
dtype: "q8"
|
|
347
380
|
},
|
|
348
381
|
metadata: {}
|
|
349
382
|
},
|
|
@@ -355,33 +388,21 @@ async function registerHuggingfaceLocalModels() {
|
|
|
355
388
|
provider: HF_TRANSFORMERS_ONNX,
|
|
356
389
|
provider_config: {
|
|
357
390
|
pipeline: "text2text-generation",
|
|
358
|
-
|
|
391
|
+
model_path: "Xenova/LaMini-Flan-T5-783M",
|
|
392
|
+
dtype: "q8"
|
|
359
393
|
},
|
|
360
394
|
metadata: {}
|
|
361
395
|
},
|
|
362
396
|
{
|
|
363
|
-
model_id: "onnx:
|
|
364
|
-
title: "LaMini-Flan-T5-783M",
|
|
365
|
-
description: "Xenova/LaMini-Flan-T5-783M quantized to 8bit",
|
|
366
|
-
tasks: ["TextGenerationTask", "TextRewriterTask"],
|
|
367
|
-
provider: HF_TRANSFORMERS_ONNX,
|
|
368
|
-
provider_config: {
|
|
369
|
-
pipeline: "text2text-generation",
|
|
370
|
-
modelPath: "Xenova/LaMini-Flan-T5-783M",
|
|
371
|
-
dType: "q8"
|
|
372
|
-
},
|
|
373
|
-
metadata: {}
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
model_id: "onnx:Falconsai/text_summarization:q8",
|
|
397
|
+
model_id: "onnx:Falconsai/text_summarization:fp32",
|
|
377
398
|
title: "text_summarization",
|
|
378
|
-
description: "Falconsai/text_summarization
|
|
399
|
+
description: "Falconsai/text_summarization",
|
|
379
400
|
tasks: ["TextSummaryTask"],
|
|
380
401
|
provider: HF_TRANSFORMERS_ONNX,
|
|
381
402
|
provider_config: {
|
|
382
403
|
pipeline: "summarization",
|
|
383
|
-
|
|
384
|
-
|
|
404
|
+
model_path: "Falconsai/text_summarization",
|
|
405
|
+
dtype: "fp32"
|
|
385
406
|
},
|
|
386
407
|
metadata: {}
|
|
387
408
|
},
|
|
@@ -393,9 +414,9 @@ async function registerHuggingfaceLocalModels() {
|
|
|
393
414
|
provider: HF_TRANSFORMERS_ONNX,
|
|
394
415
|
provider_config: {
|
|
395
416
|
pipeline: "translation",
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
417
|
+
model_path: "Xenova/nllb-200-distilled-600M",
|
|
418
|
+
language_style: "FLORES-200",
|
|
419
|
+
dtype: "q8"
|
|
399
420
|
},
|
|
400
421
|
metadata: {}
|
|
401
422
|
},
|
|
@@ -407,9 +428,9 @@ async function registerHuggingfaceLocalModels() {
|
|
|
407
428
|
provider: HF_TRANSFORMERS_ONNX,
|
|
408
429
|
provider_config: {
|
|
409
430
|
pipeline: "translation",
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
431
|
+
model_path: "Xenova/m2m100_418M",
|
|
432
|
+
language_style: "ISO-639",
|
|
433
|
+
dtype: "q8"
|
|
413
434
|
},
|
|
414
435
|
metadata: {}
|
|
415
436
|
},
|
|
@@ -421,9 +442,9 @@ async function registerHuggingfaceLocalModels() {
|
|
|
421
442
|
provider: HF_TRANSFORMERS_ONNX,
|
|
422
443
|
provider_config: {
|
|
423
444
|
pipeline: "translation",
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
445
|
+
model_path: "Xenova/m2m100_418M",
|
|
446
|
+
language_style: "ISO-639",
|
|
447
|
+
dtype: "q8"
|
|
427
448
|
},
|
|
428
449
|
metadata: {}
|
|
429
450
|
},
|
|
@@ -435,9 +456,9 @@ async function registerHuggingfaceLocalModels() {
|
|
|
435
456
|
provider: HF_TRANSFORMERS_ONNX,
|
|
436
457
|
provider_config: {
|
|
437
458
|
pipeline: "translation",
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
459
|
+
model_path: "Xenova/mbart-large-50-many-to-many-mmt",
|
|
460
|
+
language_style: "ISO-639_ISO-3166-1-alpha-2",
|
|
461
|
+
dtype: "q8"
|
|
441
462
|
},
|
|
442
463
|
metadata: {}
|
|
443
464
|
},
|
|
@@ -449,8 +470,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
449
470
|
provider: HF_TRANSFORMERS_ONNX,
|
|
450
471
|
provider_config: {
|
|
451
472
|
pipeline: "image-classification",
|
|
452
|
-
|
|
453
|
-
|
|
473
|
+
model_path: "Xenova/vit-base-patch16-224",
|
|
474
|
+
dtype: "q8"
|
|
454
475
|
},
|
|
455
476
|
metadata: {}
|
|
456
477
|
},
|
|
@@ -462,8 +483,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
462
483
|
provider: HF_TRANSFORMERS_ONNX,
|
|
463
484
|
provider_config: {
|
|
464
485
|
pipeline: "zero-shot-image-classification",
|
|
465
|
-
|
|
466
|
-
|
|
486
|
+
model_path: "Xenova/clip-vit-base-patch32",
|
|
487
|
+
dtype: "q8"
|
|
467
488
|
},
|
|
468
489
|
metadata: {}
|
|
469
490
|
},
|
|
@@ -475,8 +496,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
475
496
|
provider: HF_TRANSFORMERS_ONNX,
|
|
476
497
|
provider_config: {
|
|
477
498
|
pipeline: "object-detection",
|
|
478
|
-
|
|
479
|
-
|
|
499
|
+
model_path: "Xenova/detr-resnet-50",
|
|
500
|
+
dtype: "q8"
|
|
480
501
|
},
|
|
481
502
|
metadata: {}
|
|
482
503
|
},
|
|
@@ -488,8 +509,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
488
509
|
provider: HF_TRANSFORMERS_ONNX,
|
|
489
510
|
provider_config: {
|
|
490
511
|
pipeline: "zero-shot-object-detection",
|
|
491
|
-
|
|
492
|
-
|
|
512
|
+
model_path: "Xenova/owlvit-base-patch32",
|
|
513
|
+
dtype: "q8"
|
|
493
514
|
},
|
|
494
515
|
metadata: {}
|
|
495
516
|
},
|
|
@@ -501,8 +522,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
501
522
|
provider: HF_TRANSFORMERS_ONNX,
|
|
502
523
|
provider_config: {
|
|
503
524
|
pipeline: "image-segmentation",
|
|
504
|
-
|
|
505
|
-
|
|
525
|
+
model_path: "Xenova/segformer-b0-finetuned-ade-512-512",
|
|
526
|
+
dtype: "q8"
|
|
506
527
|
},
|
|
507
528
|
metadata: {}
|
|
508
529
|
},
|
|
@@ -514,8 +535,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
514
535
|
provider: HF_TRANSFORMERS_ONNX,
|
|
515
536
|
provider_config: {
|
|
516
537
|
pipeline: "image-to-text",
|
|
517
|
-
|
|
518
|
-
|
|
538
|
+
model_path: "Xenova/vit-gpt2-image-captioning",
|
|
539
|
+
dtype: "q8"
|
|
519
540
|
},
|
|
520
541
|
metadata: {}
|
|
521
542
|
},
|
|
@@ -527,8 +548,8 @@ async function registerHuggingfaceLocalModels() {
|
|
|
527
548
|
provider: HF_TRANSFORMERS_ONNX,
|
|
528
549
|
provider_config: {
|
|
529
550
|
pipeline: "background-removal",
|
|
530
|
-
|
|
531
|
-
|
|
551
|
+
model_path: "Xenova/modnet",
|
|
552
|
+
dtype: "q8"
|
|
532
553
|
},
|
|
533
554
|
metadata: {}
|
|
534
555
|
},
|
|
@@ -540,8 +561,21 @@ async function registerHuggingfaceLocalModels() {
|
|
|
540
561
|
provider: HF_TRANSFORMERS_ONNX,
|
|
541
562
|
provider_config: {
|
|
542
563
|
pipeline: "zero-shot-classification",
|
|
543
|
-
|
|
544
|
-
|
|
564
|
+
model_path: "Xenova/mobilebert-uncased-mnli",
|
|
565
|
+
dtype: "q8"
|
|
566
|
+
},
|
|
567
|
+
metadata: {}
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
model_id: "onnx:Xenova/bge-reranker-base:q8",
|
|
571
|
+
title: "BGE Reranker Base",
|
|
572
|
+
description: "Cross-encoder reranker model for relevance scoring",
|
|
573
|
+
tasks: ["TextClassificationTask", "RerankerTask"],
|
|
574
|
+
provider: HF_TRANSFORMERS_ONNX,
|
|
575
|
+
provider_config: {
|
|
576
|
+
pipeline: "text-classification",
|
|
577
|
+
model_path: "Xenova/bge-reranker-base",
|
|
578
|
+
dtype: "q8"
|
|
545
579
|
},
|
|
546
580
|
metadata: {}
|
|
547
581
|
}
|
|
@@ -587,7 +621,7 @@ async function register_TFMP_InMemoryQueue() {
|
|
|
587
621
|
await server.start();
|
|
588
622
|
}
|
|
589
623
|
// src/binding/FsFolderTaskGraphRepository.ts
|
|
590
|
-
import {
|
|
624
|
+
import { FsFolderTabularStorage } from "@workglow/storage";
|
|
591
625
|
import {
|
|
592
626
|
TaskGraphPrimaryKeyNames as TaskGraphPrimaryKeyNames2,
|
|
593
627
|
TaskGraphSchema as TaskGraphSchema2,
|
|
@@ -599,12 +633,12 @@ var FS_FOLDER_TASK_GRAPH_REPOSITORY = createServiceToken3("taskgraph.taskGraphRe
|
|
|
599
633
|
class FsFolderTaskGraphRepository extends TaskGraphTabularRepository2 {
|
|
600
634
|
constructor(folderPath) {
|
|
601
635
|
super({
|
|
602
|
-
tabularRepository: new
|
|
636
|
+
tabularRepository: new FsFolderTabularStorage(folderPath, TaskGraphSchema2, TaskGraphPrimaryKeyNames2)
|
|
603
637
|
});
|
|
604
638
|
}
|
|
605
639
|
}
|
|
606
640
|
// src/binding/IndexedDbTaskGraphRepository.ts
|
|
607
|
-
import {
|
|
641
|
+
import { IndexedDbTabularStorage } from "@workglow/storage";
|
|
608
642
|
import {
|
|
609
643
|
TaskGraphPrimaryKeyNames as TaskGraphPrimaryKeyNames3,
|
|
610
644
|
TaskGraphSchema as TaskGraphSchema3,
|
|
@@ -616,12 +650,12 @@ var IDB_TASK_GRAPH_REPOSITORY = createServiceToken4("taskgraph.taskGraphReposito
|
|
|
616
650
|
class IndexedDbTaskGraphRepository extends TaskGraphTabularRepository3 {
|
|
617
651
|
constructor(table = "task_graphs") {
|
|
618
652
|
super({
|
|
619
|
-
tabularRepository: new
|
|
653
|
+
tabularRepository: new IndexedDbTabularStorage(table, TaskGraphSchema3, TaskGraphPrimaryKeyNames3)
|
|
620
654
|
});
|
|
621
655
|
}
|
|
622
656
|
}
|
|
623
657
|
// src/binding/PostgresTaskGraphRepository.ts
|
|
624
|
-
import {
|
|
658
|
+
import { PostgresTabularStorage } from "@workglow/storage";
|
|
625
659
|
import {
|
|
626
660
|
TaskGraphPrimaryKeyNames as TaskGraphPrimaryKeyNames4,
|
|
627
661
|
TaskGraphSchema as TaskGraphSchema4,
|
|
@@ -633,12 +667,12 @@ var POSTGRES_TASK_GRAPH_REPOSITORY = createServiceToken5("taskgraph.taskGraphRep
|
|
|
633
667
|
class PostgresTaskGraphRepository extends TaskGraphTabularRepository4 {
|
|
634
668
|
constructor(db, table = "task_graphs") {
|
|
635
669
|
super({
|
|
636
|
-
tabularRepository: new
|
|
670
|
+
tabularRepository: new PostgresTabularStorage(db, table, TaskGraphSchema4, TaskGraphPrimaryKeyNames4)
|
|
637
671
|
});
|
|
638
672
|
}
|
|
639
673
|
}
|
|
640
674
|
// src/binding/SqliteTaskGraphRepository.ts
|
|
641
|
-
import {
|
|
675
|
+
import { SqliteTabularStorage } from "@workglow/storage";
|
|
642
676
|
import {
|
|
643
677
|
TaskGraphPrimaryKeyNames as TaskGraphPrimaryKeyNames5,
|
|
644
678
|
TaskGraphSchema as TaskGraphSchema5,
|
|
@@ -650,12 +684,12 @@ var SQLITE_TASK_GRAPH_REPOSITORY = createServiceToken6("taskgraph.taskGraphRepos
|
|
|
650
684
|
class SqliteTaskGraphRepository extends TaskGraphTabularRepository5 {
|
|
651
685
|
constructor(dbOrPath, table = "task_graphs") {
|
|
652
686
|
super({
|
|
653
|
-
tabularRepository: new
|
|
687
|
+
tabularRepository: new SqliteTabularStorage(dbOrPath, table, TaskGraphSchema5, TaskGraphPrimaryKeyNames5)
|
|
654
688
|
});
|
|
655
689
|
}
|
|
656
690
|
}
|
|
657
691
|
// src/binding/FsFolderTaskOutputRepository.ts
|
|
658
|
-
import {
|
|
692
|
+
import { FsFolderTabularStorage as FsFolderTabularStorage2 } from "@workglow/storage";
|
|
659
693
|
import {
|
|
660
694
|
TaskOutputPrimaryKeyNames as TaskOutputPrimaryKeyNames2,
|
|
661
695
|
TaskOutputSchema as TaskOutputSchema2,
|
|
@@ -667,12 +701,12 @@ var FS_FOLDER_TASK_OUTPUT_REPOSITORY = createServiceToken7("taskgraph.taskOutput
|
|
|
667
701
|
class FsFolderTaskOutputRepository extends TaskOutputTabularRepository2 {
|
|
668
702
|
constructor(folderPath) {
|
|
669
703
|
super({
|
|
670
|
-
tabularRepository: new
|
|
704
|
+
tabularRepository: new FsFolderTabularStorage2(folderPath, TaskOutputSchema2, TaskOutputPrimaryKeyNames2)
|
|
671
705
|
});
|
|
672
706
|
}
|
|
673
707
|
}
|
|
674
708
|
// src/binding/IndexedDbTaskOutputRepository.ts
|
|
675
|
-
import {
|
|
709
|
+
import { IndexedDbTabularStorage as IndexedDbTabularStorage2 } from "@workglow/storage";
|
|
676
710
|
import {
|
|
677
711
|
TaskOutputPrimaryKeyNames as TaskOutputPrimaryKeyNames3,
|
|
678
712
|
TaskOutputSchema as TaskOutputSchema3,
|
|
@@ -684,12 +718,12 @@ var IDB_TASK_OUTPUT_REPOSITORY = createServiceToken8("taskgraph.taskOutputReposi
|
|
|
684
718
|
class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository3 {
|
|
685
719
|
constructor(table = "task_outputs") {
|
|
686
720
|
super({
|
|
687
|
-
tabularRepository: new
|
|
721
|
+
tabularRepository: new IndexedDbTabularStorage2(table, TaskOutputSchema3, TaskOutputPrimaryKeyNames3, ["createdAt"])
|
|
688
722
|
});
|
|
689
723
|
}
|
|
690
724
|
}
|
|
691
725
|
// src/binding/PostgresTaskOutputRepository.ts
|
|
692
|
-
import {
|
|
726
|
+
import { PostgresTabularStorage as PostgresTabularStorage2 } from "@workglow/storage";
|
|
693
727
|
import {
|
|
694
728
|
TaskOutputPrimaryKeyNames as TaskOutputPrimaryKeyNames4,
|
|
695
729
|
TaskOutputSchema as TaskOutputSchema4,
|
|
@@ -701,12 +735,12 @@ var POSTGRES_TASK_OUTPUT_REPOSITORY = createServiceToken9("taskgraph.taskOutputR
|
|
|
701
735
|
class PostgresTaskOutputRepository extends TaskOutputTabularRepository4 {
|
|
702
736
|
constructor(db, table = "task_outputs") {
|
|
703
737
|
super({
|
|
704
|
-
tabularRepository: new
|
|
738
|
+
tabularRepository: new PostgresTabularStorage2(db, table, TaskOutputSchema4, TaskOutputPrimaryKeyNames4, ["createdAt"])
|
|
705
739
|
});
|
|
706
740
|
}
|
|
707
741
|
}
|
|
708
742
|
// src/binding/SqliteTaskOutputRepository.ts
|
|
709
|
-
import {
|
|
743
|
+
import { SqliteTabularStorage as SqliteTabularStorage2 } from "@workglow/storage";
|
|
710
744
|
import {
|
|
711
745
|
TaskOutputPrimaryKeyNames as TaskOutputPrimaryKeyNames5,
|
|
712
746
|
TaskOutputSchema as TaskOutputSchema5,
|
|
@@ -718,7 +752,7 @@ var SQLITE_TASK_OUTPUT_REPOSITORY = createServiceToken10("taskgraph.taskOutputRe
|
|
|
718
752
|
class SqliteTaskOutputRepository extends TaskOutputTabularRepository5 {
|
|
719
753
|
constructor(dbOrPath, table = "task_outputs") {
|
|
720
754
|
super({
|
|
721
|
-
tabularRepository: new
|
|
755
|
+
tabularRepository: new SqliteTabularStorage2(dbOrPath, table, TaskOutputSchema5, TaskOutputPrimaryKeyNames5, ["createdAt"])
|
|
722
756
|
});
|
|
723
757
|
}
|
|
724
758
|
}
|
|
@@ -749,4 +783,4 @@ export {
|
|
|
749
783
|
FS_FOLDER_TASK_GRAPH_REPOSITORY
|
|
750
784
|
};
|
|
751
785
|
|
|
752
|
-
//# debugId=
|
|
786
|
+
//# debugId=72FE9AFE82EC41AA64756E2164756E21
|