@workglow/test 0.0.57 → 0.0.58
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.d.ts +0 -2
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +32 -42
- package/dist/browser.js.map +5 -7
- package/dist/bun.js +28 -66
- package/dist/bun.js.map +5 -9
- package/dist/common-server.d.ts +0 -4
- package/dist/common-server.d.ts.map +1 -1
- package/dist/node.js +28 -66
- package/dist/node.js.map +5 -9
- package/dist/samples/index.d.ts.map +1 -1
- package/dist/test/helpers/SupabaseMockClient.d.ts.map +1 -1
- package/dist/test/job-queue/InMemoryPrefixedQueueStorage.test.d.ts +7 -0
- package/dist/test/job-queue/InMemoryPrefixedQueueStorage.test.d.ts.map +1 -0
- package/dist/test/job-queue/IndexedDbPrefixedQueueStorage.test.d.ts +7 -0
- package/dist/test/job-queue/IndexedDbPrefixedQueueStorage.test.d.ts.map +1 -0
- package/dist/test/job-queue/PostgresPrefixedQueueStorage.test.d.ts +7 -0
- package/dist/test/job-queue/PostgresPrefixedQueueStorage.test.d.ts.map +1 -0
- package/dist/test/job-queue/SqlitePrefixedQueueStorage.test.d.ts +7 -0
- package/dist/test/job-queue/SqlitePrefixedQueueStorage.test.d.ts.map +1 -0
- package/dist/test/job-queue/SupabasePrefixedQueueStorage.test.d.ts +7 -0
- package/dist/test/job-queue/SupabasePrefixedQueueStorage.test.d.ts.map +1 -0
- package/dist/test/job-queue/genericJobQueueTests.d.ts +8 -4
- package/dist/test/job-queue/genericJobQueueTests.d.ts.map +1 -1
- package/dist/test/job-queue/genericPrefixedQueueStorageTests.d.ts +18 -0
- package/dist/test/job-queue/genericPrefixedQueueStorageTests.d.ts.map +1 -0
- package/dist/test/job-queue/genericQueueStorageSubscriptionTests.d.ts +29 -0
- package/dist/test/job-queue/genericQueueStorageSubscriptionTests.d.ts.map +1 -0
- package/dist/test/storage-tabular/genericTabularRepositorySubscriptionTests.d.ts +17 -0
- package/dist/test/storage-tabular/genericTabularRepositorySubscriptionTests.d.ts.map +1 -0
- package/dist/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.d.ts.map +1 -1
- package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts +3 -3
- package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts.map +1 -1
- package/package.json +17 -17
- package/dist/binding/InMemoryJobQueue.d.ts +0 -11
- package/dist/binding/InMemoryJobQueue.d.ts.map +0 -1
- package/dist/binding/IndexedDbJobQueue.d.ts +0 -11
- package/dist/binding/IndexedDbJobQueue.d.ts.map +0 -1
- package/dist/binding/PostgresJobQueue.d.ts +0 -11
- package/dist/binding/PostgresJobQueue.d.ts.map +0 -1
- package/dist/binding/SqliteJobQueue.d.ts +0 -11
- package/dist/binding/SqliteJobQueue.d.ts.map +0 -1
package/dist/browser.d.ts
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
export * from "./common";
|
|
7
|
-
export * from "./binding/IndexedDbJobQueue";
|
|
8
7
|
export * from "./binding/IndexedDbTaskGraphRepository";
|
|
9
8
|
export * from "./binding/IndexedDbTaskOutputRepository";
|
|
10
|
-
export * from "./binding/InMemoryJobQueue";
|
|
11
9
|
//# sourceMappingURL=browser.d.ts.map
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAEzB,cAAc,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAEzB,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC"}
|
package/dist/browser.js
CHANGED
|
@@ -35,7 +35,7 @@ class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {
|
|
|
35
35
|
// src/samples/index.ts
|
|
36
36
|
import { AiJob } from "@workglow/ai";
|
|
37
37
|
import { TENSORFLOW_MEDIAPIPE as TENSORFLOW_MEDIAPIPE2 } from "@workglow/ai-provider";
|
|
38
|
-
import { ConcurrencyLimiter,
|
|
38
|
+
import { ConcurrencyLimiter, JobQueueClient, JobQueueServer } from "@workglow/job-queue";
|
|
39
39
|
import { InMemoryQueueStorage } from "@workglow/storage";
|
|
40
40
|
import { getTaskQueueRegistry } from "@workglow/task-graph";
|
|
41
41
|
|
|
@@ -197,32 +197,38 @@ async function registerHuggingfaceLocalModels() {
|
|
|
197
197
|
|
|
198
198
|
// src/samples/index.ts
|
|
199
199
|
async function register_HFT_InMemoryQueue() {
|
|
200
|
-
const
|
|
201
|
-
|
|
200
|
+
const queueName = "HF_TRANSFORMERS_ONNX";
|
|
201
|
+
const storage = new InMemoryQueueStorage(queueName);
|
|
202
|
+
await storage.setupDatabase();
|
|
203
|
+
const server = new JobQueueServer(AiJob, {
|
|
204
|
+
storage,
|
|
205
|
+
queueName,
|
|
202
206
|
limiter: new ConcurrencyLimiter(1, 10)
|
|
203
207
|
});
|
|
204
|
-
|
|
205
|
-
|
|
208
|
+
const client = new JobQueueClient({
|
|
209
|
+
storage,
|
|
210
|
+
queueName
|
|
211
|
+
});
|
|
212
|
+
client.attach(server);
|
|
213
|
+
getTaskQueueRegistry().registerQueue({ server, client, storage });
|
|
214
|
+
await server.start();
|
|
206
215
|
}
|
|
207
216
|
async function register_TFMP_InMemoryQueue() {
|
|
208
|
-
const
|
|
209
|
-
|
|
217
|
+
const queueName = TENSORFLOW_MEDIAPIPE2;
|
|
218
|
+
const storage = new InMemoryQueueStorage(queueName);
|
|
219
|
+
await storage.setupDatabase();
|
|
220
|
+
const server = new JobQueueServer(AiJob, {
|
|
221
|
+
storage,
|
|
222
|
+
queueName,
|
|
210
223
|
limiter: new ConcurrencyLimiter(1, 10)
|
|
211
224
|
});
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
var INDEXED_DB_JOB_QUEUE = createServiceToken3("jobQueue.indexedDb");
|
|
220
|
-
|
|
221
|
-
class IndexedDbJobQueue extends JobQueue2 {
|
|
222
|
-
constructor(queueName, jobCls, options) {
|
|
223
|
-
options.storage ??= new IndexedDbQueueStorage(queueName);
|
|
224
|
-
super(queueName, jobCls, options);
|
|
225
|
-
}
|
|
225
|
+
const client = new JobQueueClient({
|
|
226
|
+
storage,
|
|
227
|
+
queueName
|
|
228
|
+
});
|
|
229
|
+
client.attach(server);
|
|
230
|
+
getTaskQueueRegistry().registerQueue({ server, client, storage });
|
|
231
|
+
await server.start();
|
|
226
232
|
}
|
|
227
233
|
// src/binding/IndexedDbTaskGraphRepository.ts
|
|
228
234
|
import { IndexedDbTabularRepository } from "@workglow/storage";
|
|
@@ -231,8 +237,8 @@ import {
|
|
|
231
237
|
TaskGraphSchema as TaskGraphSchema2,
|
|
232
238
|
TaskGraphTabularRepository as TaskGraphTabularRepository2
|
|
233
239
|
} from "@workglow/task-graph";
|
|
234
|
-
import { createServiceToken as
|
|
235
|
-
var IDB_TASK_GRAPH_REPOSITORY =
|
|
240
|
+
import { createServiceToken as createServiceToken3 } from "@workglow/util";
|
|
241
|
+
var IDB_TASK_GRAPH_REPOSITORY = createServiceToken3("taskgraph.taskGraphRepository.indexedDb");
|
|
236
242
|
|
|
237
243
|
class IndexedDbTaskGraphRepository extends TaskGraphTabularRepository2 {
|
|
238
244
|
constructor(table = "task_graphs") {
|
|
@@ -248,8 +254,8 @@ import {
|
|
|
248
254
|
TaskOutputSchema as TaskOutputSchema2,
|
|
249
255
|
TaskOutputTabularRepository as TaskOutputTabularRepository2
|
|
250
256
|
} from "@workglow/task-graph";
|
|
251
|
-
import { createServiceToken as
|
|
252
|
-
var IDB_TASK_OUTPUT_REPOSITORY =
|
|
257
|
+
import { createServiceToken as createServiceToken4 } from "@workglow/util";
|
|
258
|
+
var IDB_TASK_OUTPUT_REPOSITORY = createServiceToken4("taskgraph.taskOutputRepository.indexedDb");
|
|
253
259
|
|
|
254
260
|
class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository2 {
|
|
255
261
|
constructor(table = "task_outputs") {
|
|
@@ -258,18 +264,6 @@ class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository2 {
|
|
|
258
264
|
});
|
|
259
265
|
}
|
|
260
266
|
}
|
|
261
|
-
// src/binding/InMemoryJobQueue.ts
|
|
262
|
-
import { JobQueue as JobQueue3 } from "@workglow/job-queue";
|
|
263
|
-
import { InMemoryQueueStorage as InMemoryQueueStorage2 } from "@workglow/storage";
|
|
264
|
-
import { createServiceToken as createServiceToken6 } from "@workglow/util";
|
|
265
|
-
var IN_MEMORY_JOB_QUEUE = createServiceToken6("jobQueue.inMemory");
|
|
266
|
-
|
|
267
|
-
class InMemoryJobQueue extends JobQueue3 {
|
|
268
|
-
constructor(queueName, jobCls, options) {
|
|
269
|
-
options.storage ??= new InMemoryQueueStorage2(queueName);
|
|
270
|
-
super(queueName, jobCls, options);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
267
|
export {
|
|
274
268
|
register_TFMP_InMemoryQueue,
|
|
275
269
|
register_HFT_InMemoryQueue,
|
|
@@ -280,14 +274,10 @@ export {
|
|
|
280
274
|
MEMORY_TASK_GRAPH_REPOSITORY,
|
|
281
275
|
IndexedDbTaskOutputRepository,
|
|
282
276
|
IndexedDbTaskGraphRepository,
|
|
283
|
-
IndexedDbJobQueue,
|
|
284
277
|
InMemoryTaskOutputRepository,
|
|
285
278
|
InMemoryTaskGraphRepository,
|
|
286
|
-
InMemoryJobQueue,
|
|
287
|
-
IN_MEMORY_JOB_QUEUE,
|
|
288
|
-
INDEXED_DB_JOB_QUEUE,
|
|
289
279
|
IDB_TASK_OUTPUT_REPOSITORY,
|
|
290
280
|
IDB_TASK_GRAPH_REPOSITORY
|
|
291
281
|
};
|
|
292
282
|
|
|
293
|
-
//# debugId=
|
|
283
|
+
//# debugId=9A4896EB76265B4664756E2164756E21
|
package/dist/browser.js.map
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/binding/InMemoryTaskGraphRepository.ts", "../src/binding/InMemoryTaskOutputRepository.ts", "../src/samples/index.ts", "../src/samples/MediaPipeModelSamples.ts", "../src/samples/ONNXModelSamples.ts", "../src/binding/
|
|
3
|
+
"sources": ["../src/binding/InMemoryTaskGraphRepository.ts", "../src/binding/InMemoryTaskOutputRepository.ts", "../src/samples/index.ts", "../src/samples/MediaPipeModelSamples.ts", "../src/samples/ONNXModelSamples.ts", "../src/binding/IndexedDbTaskGraphRepository.ts", "../src/binding/IndexedDbTaskOutputRepository.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InMemoryTabularRepository } from \"@workglow/storage\";\nimport {\n TaskGraphPrimaryKeyNames,\n TaskGraphSchema,\n TaskGraphTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const MEMORY_TASK_GRAPH_REPOSITORY = createServiceToken<TaskGraphTabularRepository>(\n \"taskgraph.taskGraphRepository.inMemory\"\n);\n\n/**\n * In-memory implementation of a task graph repository.\n * Provides storage and retrieval for task graphs.\n */\nexport class InMemoryTaskGraphRepository extends TaskGraphTabularRepository {\n constructor() {\n super({\n tabularRepository: new InMemoryTabularRepository(TaskGraphSchema, TaskGraphPrimaryKeyNames),\n });\n }\n}\n",
|
|
6
6
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InMemoryTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const MEMORY_TASK_OUTPUT_REPOSITORY = createServiceToken<InMemoryTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.inMemory\"\n);\n\n/**\n * In-memory implementation of a task output repository.\n * Provides storage and retrieval for task outputs.\n */\nexport class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {\n constructor() {\n super({\n tabularRepository: new InMemoryTabularRepository(\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
7
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AiJob, AiJobInput } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\nimport { ConcurrencyLimiter,
|
|
7
|
+
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AiJob, AiJobInput } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\nimport { ConcurrencyLimiter, JobQueueClient, JobQueueServer } from \"@workglow/job-queue\";\nimport { InMemoryQueueStorage } from \"@workglow/storage\";\nimport { getTaskQueueRegistry, TaskInput, TaskOutput } from \"@workglow/task-graph\";\nexport * from \"./MediaPipeModelSamples\";\nexport * from \"./ONNXModelSamples\";\n\nexport async function register_HFT_InMemoryQueue(): Promise<void> {\n const queueName = \"HF_TRANSFORMERS_ONNX\";\n const storage = new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(queueName);\n await storage.setupDatabase();\n\n const server = new JobQueueServer<AiJobInput<TaskInput>, TaskOutput>(\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage,\n queueName,\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n\n const client = new JobQueueClient<AiJobInput<TaskInput>, TaskOutput>({\n storage,\n queueName,\n });\n\n client.attach(server);\n\n getTaskQueueRegistry().registerQueue({ server, client, storage });\n await server.start();\n}\n\nexport async function register_TFMP_InMemoryQueue(): Promise<void> {\n const queueName = TENSORFLOW_MEDIAPIPE;\n const storage = new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(queueName);\n await storage.setupDatabase();\n\n const server = new JobQueueServer<AiJobInput<TaskInput>, TaskOutput>(\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage,\n queueName,\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n\n const client = new JobQueueClient<AiJobInput<TaskInput>, TaskOutput>({\n storage,\n queueName,\n });\n\n client.attach(server);\n\n getTaskQueueRegistry().registerQueue({ server, client, storage });\n await server.start();\n}\n",
|
|
8
8
|
"import { getGlobalModelRepository, Model } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\n\nasync function addMediaPipeModel(info: Partial<Model>, tasks: string[]) {\n const name = \"mediapipe:\" + info.name;\n\n const model = Object.assign(\n {\n provider: TENSORFLOW_MEDIAPIPE,\n quantization: null,\n normalize: true,\n contextWindow: 4096,\n availableOnBrowser: true,\n availableOnServer: false,\n parameters: null,\n languageStyle: null,\n usingDimensions: info.nativeDimensions ?? null,\n },\n info,\n { name }\n ) as Model;\n\n await getGlobalModelRepository().addModel(model);\n await Promise.allSettled(\n tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, name))\n );\n}\n\nexport async function registerMediaPipeTfJsLocalModels(): Promise<void> {\n await addMediaPipeModel(\n {\n name: \"Universal Sentence Encoder\",\n pipeline: \"text_embedder\",\n nativeDimensions: 100,\n url: \"https://storage.googleapis.com/mediapipe-tasks/text_embedder/universal_sentence_encoder.tflite\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addMediaPipeModel(\n {\n name: \"Text Encoder\",\n pipeline: \"text_embedder\",\n nativeDimensions: 100,\n url: \"https://huggingface.co/keras-sd/text-encoder-tflite/resolve/main/text_encoder.tflite?download=true\",\n },\n [\"TextEmbeddingTask\"]\n );\n}\n",
|
|
9
9
|
"import { getGlobalModelRepository, Model } from \"@workglow/ai\";\nimport { HF_TRANSFORMERS_ONNX, QUANTIZATION_DATA_TYPES } from \"@workglow/ai-provider\";\n\nexport async function addONNXModel(info: Partial<Model>, tasks: string[]) {\n const model = Object.assign(\n {\n name: \"onnx:\" + info.url + \":\" + (info.quantization ?? QUANTIZATION_DATA_TYPES.q8),\n provider: HF_TRANSFORMERS_ONNX,\n quantization: QUANTIZATION_DATA_TYPES.q8,\n normalize: true,\n contextWindow: 4096,\n availableOnBrowser: true,\n availableOnServer: true,\n parameters: null,\n languageStyle: null,\n usingDimensions: info.nativeDimensions ?? null,\n },\n info\n ) as Model;\n\n await getGlobalModelRepository().addModel(model);\n await Promise.allSettled(\n tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, model.name))\n );\n}\n\nexport async function registerHuggingfaceLocalModels(): Promise<void> {\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Supabase/gte-small\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 768,\n url: \"Xenova/bge-base-en-v1.5\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Xenova/all-MiniLM-L6-v2\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 1024,\n url: \"WhereIsAI/UAE-Large-V1\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Xenova/bge-small-en-v1.5\",\n },\n [\"TextEmbeddingTask\"]\n );\n await addONNXModel(\n {\n pipeline: \"question-answering\",\n url: \"Xenova/distilbert-base-uncased-distilled-squad\",\n },\n [\"TextQuestionAnsweringTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"zero-shot-classification\",\n url: \"Xenova/distilbert-base-uncased-mnli\",\n },\n [\"TextClassificationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"fill-mask\",\n url: \"answerdotai/ModernBERT-base\",\n },\n [\"TextClassificationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 768,\n url: \"Xenova/multi-qa-mpnet-base-dot-v1\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/gpt2\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/Phi-3-mini-4k-instruct\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.q4,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n name: \"onnx:Xenova/Phi-3-mini-4k-instruct:q4f16\",\n pipeline: \"text-generation\",\n url: \"Xenova/Phi-3-mini-4k-instruct_fp16\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.q4,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n name: \"onnx:onnx-community/DeepSeek-R1-Distill-Qwen-1.5B:fp16\",\n pipeline: \"text-generation\",\n url: \"onnx-community/DeepSeek-R1-Distill-Qwen-1.5B-ONNX\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.fp16,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/distilgpt2\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text2text-generation\",\n url: \"Xenova/flan-t5-small\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text2text-generation\",\n url: \"Xenova/LaMini-Flan-T5-783M\",\n },\n [\"TextGenerationTask\", \"TextRewriterTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"summarization\",\n url: \"Falconsai/text_summarization\",\n quantization: QUANTIZATION_DATA_TYPES.fp32,\n },\n [\"TextSummaryTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/nllb-200-distilled-600M\",\n languageStyle: \"FLORES-200\",\n },\n [\"TextTranslationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/m2m100_418M\",\n languageStyle: \"ISO-639\",\n },\n [\"TextTranslationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/mbart-large-50-many-to-many-mmt\",\n languageStyle: \"ISO-639_ISO-3166-1-alpha-2\",\n },\n [\"TextTranslationTask\"]\n );\n}\n",
|
|
10
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { IndexedDbQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const INDEXED_DB_JOB_QUEUE =\n createServiceToken<JobQueue<any, any, any>>(\"jobQueue.indexedDb\");\n\nexport class IndexedDbJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage ??= new IndexedDbQueueStorage<I, O>(queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
11
10
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IndexedDbTabularRepository } from \"@workglow/storage\";\nimport {\n TaskGraphPrimaryKeyNames,\n TaskGraphSchema,\n TaskGraphTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IDB_TASK_GRAPH_REPOSITORY = createServiceToken<TaskGraphTabularRepository>(\n \"taskgraph.taskGraphRepository.indexedDb\"\n);\n\n/**\n * IndexedDB implementation of a task graph repository.\n * Provides storage and retrieval for task graphs using IndexedDB.\n */\nexport class IndexedDbTaskGraphRepository extends TaskGraphTabularRepository {\n constructor(table: string = \"task_graphs\") {\n super({\n tabularRepository: new IndexedDbTabularRepository(\n table,\n TaskGraphSchema,\n TaskGraphPrimaryKeyNames\n ),\n });\n }\n}\n",
|
|
12
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IndexedDbTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IDB_TASK_OUTPUT_REPOSITORY = createServiceToken<IndexedDbTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.indexedDb\"\n);\n\n/**\n * IndexedDB implementation of a task output repository.\n * Provides storage and retrieval for task outputs using IndexedDB.\n */\nexport class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(table: string = \"task_outputs\") {\n super({\n tabularRepository: new IndexedDbTabularRepository(\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n"
|
|
13
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { InMemoryQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IN_MEMORY_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.inMemory\");\n\nexport class InMemoryJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage ??= new InMemoryQueueStorage<I, O>(queueName);\n super(queueName, jobCls, options);\n }\n}\n"
|
|
11
|
+
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IndexedDbTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IDB_TASK_OUTPUT_REPOSITORY = createServiceToken<IndexedDbTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.indexedDb\"\n);\n\n/**\n * IndexedDB implementation of a task output repository.\n * Provides storage and retrieval for task outputs using IndexedDB.\n */\nexport class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(table: string = \"task_outputs\") {\n super({\n tabularRepository: new IndexedDbTabularRepository(\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n"
|
|
14
12
|
],
|
|
15
|
-
"mappings": ";AAMA;AACA;AAAA;AAAA;AAAA;AAAA;AAKA;AAEO,IAAM,+BAA+B,mBAC1C,wCACF;AAAA;AAMO,MAAM,oCAAoC,2BAA2B;AAAA,EAC1E,WAAW,GAAG;AAAA,IACZ,MAAM;AAAA,MACJ,mBAAmB,IAAI,0BAA0B,iBAAiB,wBAAwB;AAAA,IAC5F,CAAC;AAAA;AAEL;;ACtBA,sCAAS;AACT;AAAA;AAAA;AAAA;AAAA;AAKA,+BAAS;AAEF,IAAM,gCAAgC,oBAC3C,yCACF;AAAA;AAMO,MAAM,qCAAqC,4BAA4B;AAAA,EAC5E,WAA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2B,GAAkB;AAAA,EACjE,MAAM,YAAY;AAAA,EAClB,MAAM,UAAU,IAAI,qBAAwD,SAAS;AAAA,EACrF,MAAM,QAAQ,cAAc;AAAA,EAE5B,MAAM,SAAS,IAAI,eACjB,OACA;AAAA,IACE;AAAA,IACA;AAAA,IACA,SAAS,IAAI,mBAAmB,GAAG,EAAE;AAAA,EACvC,CACF;AAAA,EAEA,MAAM,SAAS,IAAI,eAAkD;AAAA,IACnE;AAAA,IACA;AAAA,EACF,CAAC;AAAA,EAED,OAAO,OAAO,MAAM;AAAA,EAEpB,qBAAqB,EAAE,cAAc,EAAE,QAAQ,QAAQ,QAAQ,CAAC;AAAA,EAChE,MAAM,OAAO,MAAM;AAAA;;AGvDrB;AACA;AAAA,8BACE;AAAA,qBACA;AAAA,gCACA;AAAA;AAEF,+BAAS;AAEF,IAAM,4BAA4B,oBACvC,yCACF;AAAA;AAMO,MAAM,qCAAqC,4BAA2B;AAAA,EAC3E,WAAW,CAAC,QAAgB,eAAe;AAAA,IACzC,MAAM;AAAA,MACJ,mBAAmB,IAAI,2BACrB,OACA,kBACA,yBACF;AAAA,IACF,CAAC;AAAA;AAEL;;AC1BA,uCAAS;AACT;AAAA,+BACE;AAAA,sBACA;AAAA,iCACA;AAAA;AAEF,+BAAS;AAEF,IAAM,6BAA6B,oBACxC,0CACF;AAAA;AAMO,MAAM,sCAAsC,6BAA4B;AAAA,EAC7E,WAAW,CAAC,QAAgB,gBAAgB;AAAA,IAC1C,MAAM;AAAA,MACJ,mBAAmB,IAAI,4BACrB,OACA,mBACA,4BACA,CAAC,WAAW,CACd;AAAA,IACF,CAAC;AAAA;AAEL;",
|
|
14
|
+
"debugId": "9A4896EB76265B4664756E2164756E21",
|
|
17
15
|
"names": []
|
|
18
16
|
}
|
package/dist/bun.js
CHANGED
|
@@ -36,7 +36,7 @@ class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {
|
|
|
36
36
|
// src/samples/index.ts
|
|
37
37
|
import { AiJob } from "@workglow/ai";
|
|
38
38
|
import { TENSORFLOW_MEDIAPIPE as TENSORFLOW_MEDIAPIPE2 } from "@workglow/ai-provider";
|
|
39
|
-
import { ConcurrencyLimiter,
|
|
39
|
+
import { ConcurrencyLimiter, JobQueueClient, JobQueueServer } from "@workglow/job-queue";
|
|
40
40
|
import { InMemoryQueueStorage } from "@workglow/storage";
|
|
41
41
|
import { getTaskQueueRegistry } from "@workglow/task-graph";
|
|
42
42
|
|
|
@@ -198,20 +198,38 @@ async function registerHuggingfaceLocalModels() {
|
|
|
198
198
|
|
|
199
199
|
// src/samples/index.ts
|
|
200
200
|
async function register_HFT_InMemoryQueue() {
|
|
201
|
-
const
|
|
202
|
-
|
|
201
|
+
const queueName = "HF_TRANSFORMERS_ONNX";
|
|
202
|
+
const storage = new InMemoryQueueStorage(queueName);
|
|
203
|
+
await storage.setupDatabase();
|
|
204
|
+
const server = new JobQueueServer(AiJob, {
|
|
205
|
+
storage,
|
|
206
|
+
queueName,
|
|
203
207
|
limiter: new ConcurrencyLimiter(1, 10)
|
|
204
208
|
});
|
|
205
|
-
|
|
206
|
-
|
|
209
|
+
const client = new JobQueueClient({
|
|
210
|
+
storage,
|
|
211
|
+
queueName
|
|
212
|
+
});
|
|
213
|
+
client.attach(server);
|
|
214
|
+
getTaskQueueRegistry().registerQueue({ server, client, storage });
|
|
215
|
+
await server.start();
|
|
207
216
|
}
|
|
208
217
|
async function register_TFMP_InMemoryQueue() {
|
|
209
|
-
const
|
|
210
|
-
|
|
218
|
+
const queueName = TENSORFLOW_MEDIAPIPE2;
|
|
219
|
+
const storage = new InMemoryQueueStorage(queueName);
|
|
220
|
+
await storage.setupDatabase();
|
|
221
|
+
const server = new JobQueueServer(AiJob, {
|
|
222
|
+
storage,
|
|
223
|
+
queueName,
|
|
211
224
|
limiter: new ConcurrencyLimiter(1, 10)
|
|
212
225
|
});
|
|
213
|
-
|
|
214
|
-
|
|
226
|
+
const client = new JobQueueClient({
|
|
227
|
+
storage,
|
|
228
|
+
queueName
|
|
229
|
+
});
|
|
230
|
+
client.attach(server);
|
|
231
|
+
getTaskQueueRegistry().registerQueue({ server, client, storage });
|
|
232
|
+
await server.start();
|
|
215
233
|
}
|
|
216
234
|
// src/binding/FsFolderTaskGraphRepository.ts
|
|
217
235
|
import { FsFolderTabularRepository } from "@workglow/storage";
|
|
@@ -349,54 +367,6 @@ class SqliteTaskOutputRepository extends TaskOutputTabularRepository5 {
|
|
|
349
367
|
});
|
|
350
368
|
}
|
|
351
369
|
}
|
|
352
|
-
// src/binding/IndexedDbJobQueue.ts
|
|
353
|
-
import { JobQueue as JobQueue2 } from "@workglow/job-queue";
|
|
354
|
-
import { IndexedDbQueueStorage } from "@workglow/storage";
|
|
355
|
-
import { createServiceToken as createServiceToken11 } from "@workglow/util";
|
|
356
|
-
var INDEXED_DB_JOB_QUEUE = createServiceToken11("jobQueue.indexedDb");
|
|
357
|
-
|
|
358
|
-
class IndexedDbJobQueue extends JobQueue2 {
|
|
359
|
-
constructor(queueName, jobCls, options) {
|
|
360
|
-
options.storage ??= new IndexedDbQueueStorage(queueName);
|
|
361
|
-
super(queueName, jobCls, options);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
// src/binding/InMemoryJobQueue.ts
|
|
365
|
-
import { JobQueue as JobQueue3 } from "@workglow/job-queue";
|
|
366
|
-
import { InMemoryQueueStorage as InMemoryQueueStorage2 } from "@workglow/storage";
|
|
367
|
-
import { createServiceToken as createServiceToken12 } from "@workglow/util";
|
|
368
|
-
var IN_MEMORY_JOB_QUEUE = createServiceToken12("jobQueue.inMemory");
|
|
369
|
-
|
|
370
|
-
class InMemoryJobQueue extends JobQueue3 {
|
|
371
|
-
constructor(queueName, jobCls, options) {
|
|
372
|
-
options.storage ??= new InMemoryQueueStorage2(queueName);
|
|
373
|
-
super(queueName, jobCls, options);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
// src/binding/PostgresJobQueue.ts
|
|
377
|
-
import { JobQueue as JobQueue4 } from "@workglow/job-queue";
|
|
378
|
-
import { PostgresQueueStorage } from "@workglow/storage";
|
|
379
|
-
import { createServiceToken as createServiceToken13 } from "@workglow/util";
|
|
380
|
-
var POSTGRES_JOB_QUEUE = createServiceToken13("jobQueue.postgres");
|
|
381
|
-
|
|
382
|
-
class PostgresJobQueue extends JobQueue4 {
|
|
383
|
-
constructor(db, queueName, jobCls, options) {
|
|
384
|
-
options.storage = new PostgresQueueStorage(db, queueName);
|
|
385
|
-
super(queueName, jobCls, options);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
// src/binding/SqliteJobQueue.ts
|
|
389
|
-
import { JobQueue as JobQueue5 } from "@workglow/job-queue";
|
|
390
|
-
import { SqliteQueueStorage } from "@workglow/storage";
|
|
391
|
-
import { createServiceToken as createServiceToken14 } from "@workglow/util";
|
|
392
|
-
var SQLITE_JOB_QUEUE = createServiceToken14("jobQueue.sqlite");
|
|
393
|
-
|
|
394
|
-
class SqliteJobQueue extends JobQueue5 {
|
|
395
|
-
constructor(db, queueName, jobCls, options) {
|
|
396
|
-
options.storage = new SqliteQueueStorage(db, queueName);
|
|
397
|
-
super(queueName, jobCls, options);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
370
|
export {
|
|
401
371
|
register_TFMP_InMemoryQueue,
|
|
402
372
|
register_HFT_InMemoryQueue,
|
|
@@ -405,26 +375,18 @@ export {
|
|
|
405
375
|
addONNXModel,
|
|
406
376
|
SqliteTaskOutputRepository,
|
|
407
377
|
SqliteTaskGraphRepository,
|
|
408
|
-
SqliteJobQueue,
|
|
409
378
|
SQLITE_TASK_OUTPUT_REPOSITORY,
|
|
410
379
|
SQLITE_TASK_GRAPH_REPOSITORY,
|
|
411
|
-
SQLITE_JOB_QUEUE,
|
|
412
380
|
PostgresTaskOutputRepository,
|
|
413
381
|
PostgresTaskGraphRepository,
|
|
414
|
-
PostgresJobQueue,
|
|
415
382
|
POSTGRES_TASK_OUTPUT_REPOSITORY,
|
|
416
383
|
POSTGRES_TASK_GRAPH_REPOSITORY,
|
|
417
|
-
POSTGRES_JOB_QUEUE,
|
|
418
384
|
MEMORY_TASK_OUTPUT_REPOSITORY,
|
|
419
385
|
MEMORY_TASK_GRAPH_REPOSITORY,
|
|
420
386
|
IndexedDbTaskOutputRepository,
|
|
421
387
|
IndexedDbTaskGraphRepository,
|
|
422
|
-
IndexedDbJobQueue,
|
|
423
388
|
InMemoryTaskOutputRepository,
|
|
424
389
|
InMemoryTaskGraphRepository,
|
|
425
|
-
InMemoryJobQueue,
|
|
426
|
-
IN_MEMORY_JOB_QUEUE,
|
|
427
|
-
INDEXED_DB_JOB_QUEUE,
|
|
428
390
|
IDB_TASK_OUTPUT_REPOSITORY,
|
|
429
391
|
IDB_TASK_GRAPH_REPOSITORY,
|
|
430
392
|
FsFolderTaskOutputRepository,
|
|
@@ -433,4 +395,4 @@ export {
|
|
|
433
395
|
FS_FOLDER_TASK_GRAPH_REPOSITORY
|
|
434
396
|
};
|
|
435
397
|
|
|
436
|
-
//# debugId=
|
|
398
|
+
//# debugId=58103859C7FB8F4B64756E2164756E21
|
package/dist/bun.js.map
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/binding/InMemoryTaskGraphRepository.ts", "../src/binding/InMemoryTaskOutputRepository.ts", "../src/samples/index.ts", "../src/samples/MediaPipeModelSamples.ts", "../src/samples/ONNXModelSamples.ts", "../src/binding/FsFolderTaskGraphRepository.ts", "../src/binding/IndexedDbTaskGraphRepository.ts", "../src/binding/PostgresTaskGraphRepository.ts", "../src/binding/SqliteTaskGraphRepository.ts", "../src/binding/FsFolderTaskOutputRepository.ts", "../src/binding/IndexedDbTaskOutputRepository.ts", "../src/binding/PostgresTaskOutputRepository.ts", "../src/binding/SqliteTaskOutputRepository.ts"
|
|
3
|
+
"sources": ["../src/binding/InMemoryTaskGraphRepository.ts", "../src/binding/InMemoryTaskOutputRepository.ts", "../src/samples/index.ts", "../src/samples/MediaPipeModelSamples.ts", "../src/samples/ONNXModelSamples.ts", "../src/binding/FsFolderTaskGraphRepository.ts", "../src/binding/IndexedDbTaskGraphRepository.ts", "../src/binding/PostgresTaskGraphRepository.ts", "../src/binding/SqliteTaskGraphRepository.ts", "../src/binding/FsFolderTaskOutputRepository.ts", "../src/binding/IndexedDbTaskOutputRepository.ts", "../src/binding/PostgresTaskOutputRepository.ts", "../src/binding/SqliteTaskOutputRepository.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InMemoryTabularRepository } from \"@workglow/storage\";\nimport {\n TaskGraphPrimaryKeyNames,\n TaskGraphSchema,\n TaskGraphTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const MEMORY_TASK_GRAPH_REPOSITORY = createServiceToken<TaskGraphTabularRepository>(\n \"taskgraph.taskGraphRepository.inMemory\"\n);\n\n/**\n * In-memory implementation of a task graph repository.\n * Provides storage and retrieval for task graphs.\n */\nexport class InMemoryTaskGraphRepository extends TaskGraphTabularRepository {\n constructor() {\n super({\n tabularRepository: new InMemoryTabularRepository(TaskGraphSchema, TaskGraphPrimaryKeyNames),\n });\n }\n}\n",
|
|
6
6
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InMemoryTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const MEMORY_TASK_OUTPUT_REPOSITORY = createServiceToken<InMemoryTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.inMemory\"\n);\n\n/**\n * In-memory implementation of a task output repository.\n * Provides storage and retrieval for task outputs.\n */\nexport class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {\n constructor() {\n super({\n tabularRepository: new InMemoryTabularRepository(\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
7
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AiJob, AiJobInput } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\nimport { ConcurrencyLimiter,
|
|
7
|
+
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AiJob, AiJobInput } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\nimport { ConcurrencyLimiter, JobQueueClient, JobQueueServer } from \"@workglow/job-queue\";\nimport { InMemoryQueueStorage } from \"@workglow/storage\";\nimport { getTaskQueueRegistry, TaskInput, TaskOutput } from \"@workglow/task-graph\";\nexport * from \"./MediaPipeModelSamples\";\nexport * from \"./ONNXModelSamples\";\n\nexport async function register_HFT_InMemoryQueue(): Promise<void> {\n const queueName = \"HF_TRANSFORMERS_ONNX\";\n const storage = new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(queueName);\n await storage.setupDatabase();\n\n const server = new JobQueueServer<AiJobInput<TaskInput>, TaskOutput>(\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage,\n queueName,\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n\n const client = new JobQueueClient<AiJobInput<TaskInput>, TaskOutput>({\n storage,\n queueName,\n });\n\n client.attach(server);\n\n getTaskQueueRegistry().registerQueue({ server, client, storage });\n await server.start();\n}\n\nexport async function register_TFMP_InMemoryQueue(): Promise<void> {\n const queueName = TENSORFLOW_MEDIAPIPE;\n const storage = new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(queueName);\n await storage.setupDatabase();\n\n const server = new JobQueueServer<AiJobInput<TaskInput>, TaskOutput>(\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage,\n queueName,\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n\n const client = new JobQueueClient<AiJobInput<TaskInput>, TaskOutput>({\n storage,\n queueName,\n });\n\n client.attach(server);\n\n getTaskQueueRegistry().registerQueue({ server, client, storage });\n await server.start();\n}\n",
|
|
8
8
|
"import { getGlobalModelRepository, Model } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\n\nasync function addMediaPipeModel(info: Partial<Model>, tasks: string[]) {\n const name = \"mediapipe:\" + info.name;\n\n const model = Object.assign(\n {\n provider: TENSORFLOW_MEDIAPIPE,\n quantization: null,\n normalize: true,\n contextWindow: 4096,\n availableOnBrowser: true,\n availableOnServer: false,\n parameters: null,\n languageStyle: null,\n usingDimensions: info.nativeDimensions ?? null,\n },\n info,\n { name }\n ) as Model;\n\n await getGlobalModelRepository().addModel(model);\n await Promise.allSettled(\n tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, name))\n );\n}\n\nexport async function registerMediaPipeTfJsLocalModels(): Promise<void> {\n await addMediaPipeModel(\n {\n name: \"Universal Sentence Encoder\",\n pipeline: \"text_embedder\",\n nativeDimensions: 100,\n url: \"https://storage.googleapis.com/mediapipe-tasks/text_embedder/universal_sentence_encoder.tflite\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addMediaPipeModel(\n {\n name: \"Text Encoder\",\n pipeline: \"text_embedder\",\n nativeDimensions: 100,\n url: \"https://huggingface.co/keras-sd/text-encoder-tflite/resolve/main/text_encoder.tflite?download=true\",\n },\n [\"TextEmbeddingTask\"]\n );\n}\n",
|
|
9
9
|
"import { getGlobalModelRepository, Model } from \"@workglow/ai\";\nimport { HF_TRANSFORMERS_ONNX, QUANTIZATION_DATA_TYPES } from \"@workglow/ai-provider\";\n\nexport async function addONNXModel(info: Partial<Model>, tasks: string[]) {\n const model = Object.assign(\n {\n name: \"onnx:\" + info.url + \":\" + (info.quantization ?? QUANTIZATION_DATA_TYPES.q8),\n provider: HF_TRANSFORMERS_ONNX,\n quantization: QUANTIZATION_DATA_TYPES.q8,\n normalize: true,\n contextWindow: 4096,\n availableOnBrowser: true,\n availableOnServer: true,\n parameters: null,\n languageStyle: null,\n usingDimensions: info.nativeDimensions ?? null,\n },\n info\n ) as Model;\n\n await getGlobalModelRepository().addModel(model);\n await Promise.allSettled(\n tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, model.name))\n );\n}\n\nexport async function registerHuggingfaceLocalModels(): Promise<void> {\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Supabase/gte-small\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 768,\n url: \"Xenova/bge-base-en-v1.5\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Xenova/all-MiniLM-L6-v2\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 1024,\n url: \"WhereIsAI/UAE-Large-V1\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Xenova/bge-small-en-v1.5\",\n },\n [\"TextEmbeddingTask\"]\n );\n await addONNXModel(\n {\n pipeline: \"question-answering\",\n url: \"Xenova/distilbert-base-uncased-distilled-squad\",\n },\n [\"TextQuestionAnsweringTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"zero-shot-classification\",\n url: \"Xenova/distilbert-base-uncased-mnli\",\n },\n [\"TextClassificationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"fill-mask\",\n url: \"answerdotai/ModernBERT-base\",\n },\n [\"TextClassificationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 768,\n url: \"Xenova/multi-qa-mpnet-base-dot-v1\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/gpt2\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/Phi-3-mini-4k-instruct\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.q4,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n name: \"onnx:Xenova/Phi-3-mini-4k-instruct:q4f16\",\n pipeline: \"text-generation\",\n url: \"Xenova/Phi-3-mini-4k-instruct_fp16\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.q4,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n name: \"onnx:onnx-community/DeepSeek-R1-Distill-Qwen-1.5B:fp16\",\n pipeline: \"text-generation\",\n url: \"onnx-community/DeepSeek-R1-Distill-Qwen-1.5B-ONNX\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.fp16,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/distilgpt2\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text2text-generation\",\n url: \"Xenova/flan-t5-small\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text2text-generation\",\n url: \"Xenova/LaMini-Flan-T5-783M\",\n },\n [\"TextGenerationTask\", \"TextRewriterTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"summarization\",\n url: \"Falconsai/text_summarization\",\n quantization: QUANTIZATION_DATA_TYPES.fp32,\n },\n [\"TextSummaryTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/nllb-200-distilled-600M\",\n languageStyle: \"FLORES-200\",\n },\n [\"TextTranslationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/m2m100_418M\",\n languageStyle: \"ISO-639\",\n },\n [\"TextTranslationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/mbart-large-50-many-to-many-mmt\",\n languageStyle: \"ISO-639_ISO-3166-1-alpha-2\",\n },\n [\"TextTranslationTask\"]\n );\n}\n",
|
|
10
10
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FsFolderTabularRepository } from \"@workglow/storage\";\nimport {\n TaskGraphPrimaryKeyNames,\n TaskGraphSchema,\n TaskGraphTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const FS_FOLDER_TASK_GRAPH_REPOSITORY = createServiceToken<TaskGraphTabularRepository>(\n \"taskgraph.taskGraphRepository.fsFolder\"\n);\n\n/**\n * File-based implementation of a task graph repository.\n * Provides storage and retrieval for task graphs using a file system.\n */\nexport class FsFolderTaskGraphRepository extends TaskGraphTabularRepository {\n constructor(folderPath: string) {\n super({\n tabularRepository: new FsFolderTabularRepository(\n folderPath,\n TaskGraphSchema,\n TaskGraphPrimaryKeyNames\n ),\n });\n }\n}\n",
|
|
@@ -14,13 +14,9 @@
|
|
|
14
14
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FsFolderTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const FS_FOLDER_TASK_OUTPUT_REPOSITORY = createServiceToken<FsFolderTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.fsFolder\"\n);\n\n/**\n * File system folder implementation of a task output repository.\n * Provides storage and retrieval for task outputs using the file system.\n */\nexport class FsFolderTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(folderPath: string) {\n super({\n tabularRepository: new FsFolderTabularRepository(\n folderPath,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames\n ),\n });\n }\n}\n",
|
|
15
15
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IndexedDbTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IDB_TASK_OUTPUT_REPOSITORY = createServiceToken<IndexedDbTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.indexedDb\"\n);\n\n/**\n * IndexedDB implementation of a task output repository.\n * Provides storage and retrieval for task outputs using IndexedDB.\n */\nexport class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(table: string = \"task_outputs\") {\n super({\n tabularRepository: new IndexedDbTabularRepository(\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
16
16
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { PostgresTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\nimport type { Pool } from \"pg\";\n\nexport const POSTGRES_TASK_OUTPUT_REPOSITORY = createServiceToken<PostgresTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.postgres\"\n);\n\n/**\n * PostgreSQL implementation of a task output repository.\n * Provides storage and retrieval for task outputs using PostgreSQL.\n */\nexport class PostgresTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(db: Pool, table: string = \"task_outputs\") {\n super({\n tabularRepository: new PostgresTabularRepository(\n db,\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
17
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { SqliteTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const SQLITE_TASK_OUTPUT_REPOSITORY = createServiceToken<SqliteTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.sqlite\"\n);\n\n/**\n * SQLite implementation of a task output repository.\n * Provides storage and retrieval for task outputs using SQLite.\n */\nexport class SqliteTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(dbOrPath: string, table: string = \"task_outputs\") {\n super({\n tabularRepository: new SqliteTabularRepository(\n dbOrPath,\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n"
|
|
18
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { IndexedDbQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const INDEXED_DB_JOB_QUEUE =\n createServiceToken<JobQueue<any, any, any>>(\"jobQueue.indexedDb\");\n\nexport class IndexedDbJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage ??= new IndexedDbQueueStorage<I, O>(queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
19
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { InMemoryQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IN_MEMORY_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.inMemory\");\n\nexport class InMemoryJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage ??= new InMemoryQueueStorage<I, O>(queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
20
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { PostgresQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const POSTGRES_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.postgres\");\n\nexport class PostgresJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n db: any,\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage = new PostgresQueueStorage<I, O>(db, queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
21
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { SqliteQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const SQLITE_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.sqlite\");\n\nexport class SqliteJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n db: any,\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage = new SqliteQueueStorage<I, O>(db, queueName);\n super(queueName, jobCls, options);\n }\n}\n"
|
|
17
|
+
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { SqliteTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const SQLITE_TASK_OUTPUT_REPOSITORY = createServiceToken<SqliteTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.sqlite\"\n);\n\n/**\n * SQLite implementation of a task output repository.\n * Provides storage and retrieval for task outputs using SQLite.\n */\nexport class SqliteTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(dbOrPath: string, table: string = \"task_outputs\") {\n super({\n tabularRepository: new SqliteTabularRepository(\n dbOrPath,\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n"
|
|
22
18
|
],
|
|
23
|
-
"mappings": ";;AAMA;AACA;AAAA;AAAA;AAAA;AAAA;AAKA;AAEO,IAAM,+BAA+B,mBAC1C,wCACF;AAAA;AAMO,MAAM,oCAAoC,2BAA2B;AAAA,EAC1E,WAAW,GAAG;AAAA,IACZ,MAAM;AAAA,MACJ,mBAAmB,IAAI,0BAA0B,iBAAiB,wBAAwB;AAAA,IAC5F,CAAC;AAAA;AAEL;;ACtBA,sCAAS;AACT;AAAA;AAAA;AAAA;AAAA;AAKA,+BAAS;AAEF,IAAM,gCAAgC,oBAC3C,yCACF;AAAA;AAMO,MAAM,qCAAqC,4BAA4B;AAA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AC7BA,oCAAS;AACT;AAAA,+BACE;AAAA,sBACA;AAAA,iCACA;AAAA;AAEF,+BAAS;AAEF,IAAM,gCAAgC,qBAC3C,uCACF;AAAA;AAMO,MAAM,mCAAmC,6BAA4B;AAAA,EAC1E,WAAW,CAAC,UAAkB,QAAgB,gBAAgB;AAAA,IAC5D,MAAM;AAAA,MACJ,mBAAmB,IAAI,yBACrB,UACA,OACA,mBACA,4BACA,CAAC,WAAW,CACd;AAAA,IACF,CAAC;AAAA;AAEL;",
|
|
20
|
+
"debugId": "58103859C7FB8F4B64756E2164756E21",
|
|
25
21
|
"names": []
|
|
26
22
|
}
|
package/dist/common-server.d.ts
CHANGED
|
@@ -12,8 +12,4 @@ export * from "./binding/FsFolderTaskOutputRepository";
|
|
|
12
12
|
export * from "./binding/IndexedDbTaskOutputRepository";
|
|
13
13
|
export * from "./binding/PostgresTaskOutputRepository";
|
|
14
14
|
export * from "./binding/SqliteTaskOutputRepository";
|
|
15
|
-
export * from "./binding/IndexedDbJobQueue";
|
|
16
|
-
export * from "./binding/InMemoryJobQueue";
|
|
17
|
-
export * from "./binding/PostgresJobQueue";
|
|
18
|
-
export * from "./binding/SqliteJobQueue";
|
|
19
15
|
//# sourceMappingURL=common-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-server.d.ts","sourceRoot":"","sources":["../src/common-server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAEzB,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC
|
|
1
|
+
{"version":3,"file":"common-server.d.ts","sourceRoot":"","sources":["../src/common-server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAEzB,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC"}
|
package/dist/node.js
CHANGED
|
@@ -35,7 +35,7 @@ class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {
|
|
|
35
35
|
// src/samples/index.ts
|
|
36
36
|
import { AiJob } from "@workglow/ai";
|
|
37
37
|
import { TENSORFLOW_MEDIAPIPE as TENSORFLOW_MEDIAPIPE2 } from "@workglow/ai-provider";
|
|
38
|
-
import { ConcurrencyLimiter,
|
|
38
|
+
import { ConcurrencyLimiter, JobQueueClient, JobQueueServer } from "@workglow/job-queue";
|
|
39
39
|
import { InMemoryQueueStorage } from "@workglow/storage";
|
|
40
40
|
import { getTaskQueueRegistry } from "@workglow/task-graph";
|
|
41
41
|
|
|
@@ -197,20 +197,38 @@ async function registerHuggingfaceLocalModels() {
|
|
|
197
197
|
|
|
198
198
|
// src/samples/index.ts
|
|
199
199
|
async function register_HFT_InMemoryQueue() {
|
|
200
|
-
const
|
|
201
|
-
|
|
200
|
+
const queueName = "HF_TRANSFORMERS_ONNX";
|
|
201
|
+
const storage = new InMemoryQueueStorage(queueName);
|
|
202
|
+
await storage.setupDatabase();
|
|
203
|
+
const server = new JobQueueServer(AiJob, {
|
|
204
|
+
storage,
|
|
205
|
+
queueName,
|
|
202
206
|
limiter: new ConcurrencyLimiter(1, 10)
|
|
203
207
|
});
|
|
204
|
-
|
|
205
|
-
|
|
208
|
+
const client = new JobQueueClient({
|
|
209
|
+
storage,
|
|
210
|
+
queueName
|
|
211
|
+
});
|
|
212
|
+
client.attach(server);
|
|
213
|
+
getTaskQueueRegistry().registerQueue({ server, client, storage });
|
|
214
|
+
await server.start();
|
|
206
215
|
}
|
|
207
216
|
async function register_TFMP_InMemoryQueue() {
|
|
208
|
-
const
|
|
209
|
-
|
|
217
|
+
const queueName = TENSORFLOW_MEDIAPIPE2;
|
|
218
|
+
const storage = new InMemoryQueueStorage(queueName);
|
|
219
|
+
await storage.setupDatabase();
|
|
220
|
+
const server = new JobQueueServer(AiJob, {
|
|
221
|
+
storage,
|
|
222
|
+
queueName,
|
|
210
223
|
limiter: new ConcurrencyLimiter(1, 10)
|
|
211
224
|
});
|
|
212
|
-
|
|
213
|
-
|
|
225
|
+
const client = new JobQueueClient({
|
|
226
|
+
storage,
|
|
227
|
+
queueName
|
|
228
|
+
});
|
|
229
|
+
client.attach(server);
|
|
230
|
+
getTaskQueueRegistry().registerQueue({ server, client, storage });
|
|
231
|
+
await server.start();
|
|
214
232
|
}
|
|
215
233
|
// src/binding/FsFolderTaskGraphRepository.ts
|
|
216
234
|
import { FsFolderTabularRepository } from "@workglow/storage";
|
|
@@ -348,54 +366,6 @@ class SqliteTaskOutputRepository extends TaskOutputTabularRepository5 {
|
|
|
348
366
|
});
|
|
349
367
|
}
|
|
350
368
|
}
|
|
351
|
-
// src/binding/IndexedDbJobQueue.ts
|
|
352
|
-
import { JobQueue as JobQueue2 } from "@workglow/job-queue";
|
|
353
|
-
import { IndexedDbQueueStorage } from "@workglow/storage";
|
|
354
|
-
import { createServiceToken as createServiceToken11 } from "@workglow/util";
|
|
355
|
-
var INDEXED_DB_JOB_QUEUE = createServiceToken11("jobQueue.indexedDb");
|
|
356
|
-
|
|
357
|
-
class IndexedDbJobQueue extends JobQueue2 {
|
|
358
|
-
constructor(queueName, jobCls, options) {
|
|
359
|
-
options.storage ??= new IndexedDbQueueStorage(queueName);
|
|
360
|
-
super(queueName, jobCls, options);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
// src/binding/InMemoryJobQueue.ts
|
|
364
|
-
import { JobQueue as JobQueue3 } from "@workglow/job-queue";
|
|
365
|
-
import { InMemoryQueueStorage as InMemoryQueueStorage2 } from "@workglow/storage";
|
|
366
|
-
import { createServiceToken as createServiceToken12 } from "@workglow/util";
|
|
367
|
-
var IN_MEMORY_JOB_QUEUE = createServiceToken12("jobQueue.inMemory");
|
|
368
|
-
|
|
369
|
-
class InMemoryJobQueue extends JobQueue3 {
|
|
370
|
-
constructor(queueName, jobCls, options) {
|
|
371
|
-
options.storage ??= new InMemoryQueueStorage2(queueName);
|
|
372
|
-
super(queueName, jobCls, options);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
// src/binding/PostgresJobQueue.ts
|
|
376
|
-
import { JobQueue as JobQueue4 } from "@workglow/job-queue";
|
|
377
|
-
import { PostgresQueueStorage } from "@workglow/storage";
|
|
378
|
-
import { createServiceToken as createServiceToken13 } from "@workglow/util";
|
|
379
|
-
var POSTGRES_JOB_QUEUE = createServiceToken13("jobQueue.postgres");
|
|
380
|
-
|
|
381
|
-
class PostgresJobQueue extends JobQueue4 {
|
|
382
|
-
constructor(db, queueName, jobCls, options) {
|
|
383
|
-
options.storage = new PostgresQueueStorage(db, queueName);
|
|
384
|
-
super(queueName, jobCls, options);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
// src/binding/SqliteJobQueue.ts
|
|
388
|
-
import { JobQueue as JobQueue5 } from "@workglow/job-queue";
|
|
389
|
-
import { SqliteQueueStorage } from "@workglow/storage";
|
|
390
|
-
import { createServiceToken as createServiceToken14 } from "@workglow/util";
|
|
391
|
-
var SQLITE_JOB_QUEUE = createServiceToken14("jobQueue.sqlite");
|
|
392
|
-
|
|
393
|
-
class SqliteJobQueue extends JobQueue5 {
|
|
394
|
-
constructor(db, queueName, jobCls, options) {
|
|
395
|
-
options.storage = new SqliteQueueStorage(db, queueName);
|
|
396
|
-
super(queueName, jobCls, options);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
369
|
export {
|
|
400
370
|
register_TFMP_InMemoryQueue,
|
|
401
371
|
register_HFT_InMemoryQueue,
|
|
@@ -404,26 +374,18 @@ export {
|
|
|
404
374
|
addONNXModel,
|
|
405
375
|
SqliteTaskOutputRepository,
|
|
406
376
|
SqliteTaskGraphRepository,
|
|
407
|
-
SqliteJobQueue,
|
|
408
377
|
SQLITE_TASK_OUTPUT_REPOSITORY,
|
|
409
378
|
SQLITE_TASK_GRAPH_REPOSITORY,
|
|
410
|
-
SQLITE_JOB_QUEUE,
|
|
411
379
|
PostgresTaskOutputRepository,
|
|
412
380
|
PostgresTaskGraphRepository,
|
|
413
|
-
PostgresJobQueue,
|
|
414
381
|
POSTGRES_TASK_OUTPUT_REPOSITORY,
|
|
415
382
|
POSTGRES_TASK_GRAPH_REPOSITORY,
|
|
416
|
-
POSTGRES_JOB_QUEUE,
|
|
417
383
|
MEMORY_TASK_OUTPUT_REPOSITORY,
|
|
418
384
|
MEMORY_TASK_GRAPH_REPOSITORY,
|
|
419
385
|
IndexedDbTaskOutputRepository,
|
|
420
386
|
IndexedDbTaskGraphRepository,
|
|
421
|
-
IndexedDbJobQueue,
|
|
422
387
|
InMemoryTaskOutputRepository,
|
|
423
388
|
InMemoryTaskGraphRepository,
|
|
424
|
-
InMemoryJobQueue,
|
|
425
|
-
IN_MEMORY_JOB_QUEUE,
|
|
426
|
-
INDEXED_DB_JOB_QUEUE,
|
|
427
389
|
IDB_TASK_OUTPUT_REPOSITORY,
|
|
428
390
|
IDB_TASK_GRAPH_REPOSITORY,
|
|
429
391
|
FsFolderTaskOutputRepository,
|
|
@@ -432,4 +394,4 @@ export {
|
|
|
432
394
|
FS_FOLDER_TASK_GRAPH_REPOSITORY
|
|
433
395
|
};
|
|
434
396
|
|
|
435
|
-
//# debugId=
|
|
397
|
+
//# debugId=FE60EA159DCDE9B164756E2164756E21
|
package/dist/node.js.map
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/binding/InMemoryTaskGraphRepository.ts", "../src/binding/InMemoryTaskOutputRepository.ts", "../src/samples/index.ts", "../src/samples/MediaPipeModelSamples.ts", "../src/samples/ONNXModelSamples.ts", "../src/binding/FsFolderTaskGraphRepository.ts", "../src/binding/IndexedDbTaskGraphRepository.ts", "../src/binding/PostgresTaskGraphRepository.ts", "../src/binding/SqliteTaskGraphRepository.ts", "../src/binding/FsFolderTaskOutputRepository.ts", "../src/binding/IndexedDbTaskOutputRepository.ts", "../src/binding/PostgresTaskOutputRepository.ts", "../src/binding/SqliteTaskOutputRepository.ts"
|
|
3
|
+
"sources": ["../src/binding/InMemoryTaskGraphRepository.ts", "../src/binding/InMemoryTaskOutputRepository.ts", "../src/samples/index.ts", "../src/samples/MediaPipeModelSamples.ts", "../src/samples/ONNXModelSamples.ts", "../src/binding/FsFolderTaskGraphRepository.ts", "../src/binding/IndexedDbTaskGraphRepository.ts", "../src/binding/PostgresTaskGraphRepository.ts", "../src/binding/SqliteTaskGraphRepository.ts", "../src/binding/FsFolderTaskOutputRepository.ts", "../src/binding/IndexedDbTaskOutputRepository.ts", "../src/binding/PostgresTaskOutputRepository.ts", "../src/binding/SqliteTaskOutputRepository.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InMemoryTabularRepository } from \"@workglow/storage\";\nimport {\n TaskGraphPrimaryKeyNames,\n TaskGraphSchema,\n TaskGraphTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const MEMORY_TASK_GRAPH_REPOSITORY = createServiceToken<TaskGraphTabularRepository>(\n \"taskgraph.taskGraphRepository.inMemory\"\n);\n\n/**\n * In-memory implementation of a task graph repository.\n * Provides storage and retrieval for task graphs.\n */\nexport class InMemoryTaskGraphRepository extends TaskGraphTabularRepository {\n constructor() {\n super({\n tabularRepository: new InMemoryTabularRepository(TaskGraphSchema, TaskGraphPrimaryKeyNames),\n });\n }\n}\n",
|
|
6
6
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InMemoryTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const MEMORY_TASK_OUTPUT_REPOSITORY = createServiceToken<InMemoryTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.inMemory\"\n);\n\n/**\n * In-memory implementation of a task output repository.\n * Provides storage and retrieval for task outputs.\n */\nexport class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {\n constructor() {\n super({\n tabularRepository: new InMemoryTabularRepository(\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
7
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AiJob, AiJobInput } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\nimport { ConcurrencyLimiter,
|
|
7
|
+
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { AiJob, AiJobInput } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\nimport { ConcurrencyLimiter, JobQueueClient, JobQueueServer } from \"@workglow/job-queue\";\nimport { InMemoryQueueStorage } from \"@workglow/storage\";\nimport { getTaskQueueRegistry, TaskInput, TaskOutput } from \"@workglow/task-graph\";\nexport * from \"./MediaPipeModelSamples\";\nexport * from \"./ONNXModelSamples\";\n\nexport async function register_HFT_InMemoryQueue(): Promise<void> {\n const queueName = \"HF_TRANSFORMERS_ONNX\";\n const storage = new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(queueName);\n await storage.setupDatabase();\n\n const server = new JobQueueServer<AiJobInput<TaskInput>, TaskOutput>(\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage,\n queueName,\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n\n const client = new JobQueueClient<AiJobInput<TaskInput>, TaskOutput>({\n storage,\n queueName,\n });\n\n client.attach(server);\n\n getTaskQueueRegistry().registerQueue({ server, client, storage });\n await server.start();\n}\n\nexport async function register_TFMP_InMemoryQueue(): Promise<void> {\n const queueName = TENSORFLOW_MEDIAPIPE;\n const storage = new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(queueName);\n await storage.setupDatabase();\n\n const server = new JobQueueServer<AiJobInput<TaskInput>, TaskOutput>(\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage,\n queueName,\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n\n const client = new JobQueueClient<AiJobInput<TaskInput>, TaskOutput>({\n storage,\n queueName,\n });\n\n client.attach(server);\n\n getTaskQueueRegistry().registerQueue({ server, client, storage });\n await server.start();\n}\n",
|
|
8
8
|
"import { getGlobalModelRepository, Model } from \"@workglow/ai\";\nimport { TENSORFLOW_MEDIAPIPE } from \"@workglow/ai-provider\";\n\nasync function addMediaPipeModel(info: Partial<Model>, tasks: string[]) {\n const name = \"mediapipe:\" + info.name;\n\n const model = Object.assign(\n {\n provider: TENSORFLOW_MEDIAPIPE,\n quantization: null,\n normalize: true,\n contextWindow: 4096,\n availableOnBrowser: true,\n availableOnServer: false,\n parameters: null,\n languageStyle: null,\n usingDimensions: info.nativeDimensions ?? null,\n },\n info,\n { name }\n ) as Model;\n\n await getGlobalModelRepository().addModel(model);\n await Promise.allSettled(\n tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, name))\n );\n}\n\nexport async function registerMediaPipeTfJsLocalModels(): Promise<void> {\n await addMediaPipeModel(\n {\n name: \"Universal Sentence Encoder\",\n pipeline: \"text_embedder\",\n nativeDimensions: 100,\n url: \"https://storage.googleapis.com/mediapipe-tasks/text_embedder/universal_sentence_encoder.tflite\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addMediaPipeModel(\n {\n name: \"Text Encoder\",\n pipeline: \"text_embedder\",\n nativeDimensions: 100,\n url: \"https://huggingface.co/keras-sd/text-encoder-tflite/resolve/main/text_encoder.tflite?download=true\",\n },\n [\"TextEmbeddingTask\"]\n );\n}\n",
|
|
9
9
|
"import { getGlobalModelRepository, Model } from \"@workglow/ai\";\nimport { HF_TRANSFORMERS_ONNX, QUANTIZATION_DATA_TYPES } from \"@workglow/ai-provider\";\n\nexport async function addONNXModel(info: Partial<Model>, tasks: string[]) {\n const model = Object.assign(\n {\n name: \"onnx:\" + info.url + \":\" + (info.quantization ?? QUANTIZATION_DATA_TYPES.q8),\n provider: HF_TRANSFORMERS_ONNX,\n quantization: QUANTIZATION_DATA_TYPES.q8,\n normalize: true,\n contextWindow: 4096,\n availableOnBrowser: true,\n availableOnServer: true,\n parameters: null,\n languageStyle: null,\n usingDimensions: info.nativeDimensions ?? null,\n },\n info\n ) as Model;\n\n await getGlobalModelRepository().addModel(model);\n await Promise.allSettled(\n tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, model.name))\n );\n}\n\nexport async function registerHuggingfaceLocalModels(): Promise<void> {\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Supabase/gte-small\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 768,\n url: \"Xenova/bge-base-en-v1.5\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Xenova/all-MiniLM-L6-v2\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 1024,\n url: \"WhereIsAI/UAE-Large-V1\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 384,\n url: \"Xenova/bge-small-en-v1.5\",\n },\n [\"TextEmbeddingTask\"]\n );\n await addONNXModel(\n {\n pipeline: \"question-answering\",\n url: \"Xenova/distilbert-base-uncased-distilled-squad\",\n },\n [\"TextQuestionAnsweringTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"zero-shot-classification\",\n url: \"Xenova/distilbert-base-uncased-mnli\",\n },\n [\"TextClassificationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"fill-mask\",\n url: \"answerdotai/ModernBERT-base\",\n },\n [\"TextClassificationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"feature-extraction\",\n nativeDimensions: 768,\n url: \"Xenova/multi-qa-mpnet-base-dot-v1\",\n },\n [\"TextEmbeddingTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/gpt2\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/Phi-3-mini-4k-instruct\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.q4,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n name: \"onnx:Xenova/Phi-3-mini-4k-instruct:q4f16\",\n pipeline: \"text-generation\",\n url: \"Xenova/Phi-3-mini-4k-instruct_fp16\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.q4,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n name: \"onnx:onnx-community/DeepSeek-R1-Distill-Qwen-1.5B:fp16\",\n pipeline: \"text-generation\",\n url: \"onnx-community/DeepSeek-R1-Distill-Qwen-1.5B-ONNX\",\n device: \"webgpu\",\n quantization: QUANTIZATION_DATA_TYPES.fp16,\n use_external_data_format: true,\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text-generation\",\n url: \"Xenova/distilgpt2\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text2text-generation\",\n url: \"Xenova/flan-t5-small\",\n },\n [\"TextGenerationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"text2text-generation\",\n url: \"Xenova/LaMini-Flan-T5-783M\",\n },\n [\"TextGenerationTask\", \"TextRewriterTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"summarization\",\n url: \"Falconsai/text_summarization\",\n quantization: QUANTIZATION_DATA_TYPES.fp32,\n },\n [\"TextSummaryTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/nllb-200-distilled-600M\",\n languageStyle: \"FLORES-200\",\n },\n [\"TextTranslationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/m2m100_418M\",\n languageStyle: \"ISO-639\",\n },\n [\"TextTranslationTask\"]\n );\n\n await addONNXModel(\n {\n pipeline: \"translation\",\n url: \"Xenova/mbart-large-50-many-to-many-mmt\",\n languageStyle: \"ISO-639_ISO-3166-1-alpha-2\",\n },\n [\"TextTranslationTask\"]\n );\n}\n",
|
|
10
10
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FsFolderTabularRepository } from \"@workglow/storage\";\nimport {\n TaskGraphPrimaryKeyNames,\n TaskGraphSchema,\n TaskGraphTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const FS_FOLDER_TASK_GRAPH_REPOSITORY = createServiceToken<TaskGraphTabularRepository>(\n \"taskgraph.taskGraphRepository.fsFolder\"\n);\n\n/**\n * File-based implementation of a task graph repository.\n * Provides storage and retrieval for task graphs using a file system.\n */\nexport class FsFolderTaskGraphRepository extends TaskGraphTabularRepository {\n constructor(folderPath: string) {\n super({\n tabularRepository: new FsFolderTabularRepository(\n folderPath,\n TaskGraphSchema,\n TaskGraphPrimaryKeyNames\n ),\n });\n }\n}\n",
|
|
@@ -14,13 +14,9 @@
|
|
|
14
14
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FsFolderTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const FS_FOLDER_TASK_OUTPUT_REPOSITORY = createServiceToken<FsFolderTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.fsFolder\"\n);\n\n/**\n * File system folder implementation of a task output repository.\n * Provides storage and retrieval for task outputs using the file system.\n */\nexport class FsFolderTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(folderPath: string) {\n super({\n tabularRepository: new FsFolderTabularRepository(\n folderPath,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames\n ),\n });\n }\n}\n",
|
|
15
15
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IndexedDbTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IDB_TASK_OUTPUT_REPOSITORY = createServiceToken<IndexedDbTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.indexedDb\"\n);\n\n/**\n * IndexedDB implementation of a task output repository.\n * Provides storage and retrieval for task outputs using IndexedDB.\n */\nexport class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(table: string = \"task_outputs\") {\n super({\n tabularRepository: new IndexedDbTabularRepository(\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
16
16
|
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { PostgresTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\nimport type { Pool } from \"pg\";\n\nexport const POSTGRES_TASK_OUTPUT_REPOSITORY = createServiceToken<PostgresTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.postgres\"\n);\n\n/**\n * PostgreSQL implementation of a task output repository.\n * Provides storage and retrieval for task outputs using PostgreSQL.\n */\nexport class PostgresTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(db: Pool, table: string = \"task_outputs\") {\n super({\n tabularRepository: new PostgresTabularRepository(\n db,\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n",
|
|
17
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { SqliteTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const SQLITE_TASK_OUTPUT_REPOSITORY = createServiceToken<SqliteTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.sqlite\"\n);\n\n/**\n * SQLite implementation of a task output repository.\n * Provides storage and retrieval for task outputs using SQLite.\n */\nexport class SqliteTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(dbOrPath: string, table: string = \"task_outputs\") {\n super({\n tabularRepository: new SqliteTabularRepository(\n dbOrPath,\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n"
|
|
18
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { IndexedDbQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const INDEXED_DB_JOB_QUEUE =\n createServiceToken<JobQueue<any, any, any>>(\"jobQueue.indexedDb\");\n\nexport class IndexedDbJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage ??= new IndexedDbQueueStorage<I, O>(queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
19
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { InMemoryQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const IN_MEMORY_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.inMemory\");\n\nexport class InMemoryJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage ??= new InMemoryQueueStorage<I, O>(queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
20
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { PostgresQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const POSTGRES_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.postgres\");\n\nexport class PostgresJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n db: any,\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage = new PostgresQueueStorage<I, O>(db, queueName);\n super(queueName, jobCls, options);\n }\n}\n",
|
|
21
|
-
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Job, JobConstructorParam, JobQueue, JobQueueOptions } from \"@workglow/job-queue\";\nimport { SqliteQueueStorage } from \"@workglow/storage\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const SQLITE_JOB_QUEUE = createServiceToken<JobQueue<any, any, any>>(\"jobQueue.sqlite\");\n\nexport class SqliteJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {\n constructor(\n db: any,\n queueName: string,\n jobCls: new (param: JobConstructorParam<I, O>) => C,\n options: JobQueueOptions<I, O>\n ) {\n options.storage = new SqliteQueueStorage<I, O>(db, queueName);\n super(queueName, jobCls, options);\n }\n}\n"
|
|
17
|
+
"/**\n * @license\n * Copyright 2025 Steven Roussey <sroussey@gmail.com>\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { SqliteTabularRepository } from \"@workglow/storage\";\nimport {\n TaskOutputPrimaryKeyNames,\n TaskOutputSchema,\n TaskOutputTabularRepository,\n} from \"@workglow/task-graph\";\nimport { createServiceToken } from \"@workglow/util\";\n\nexport const SQLITE_TASK_OUTPUT_REPOSITORY = createServiceToken<SqliteTaskOutputRepository>(\n \"taskgraph.taskOutputRepository.sqlite\"\n);\n\n/**\n * SQLite implementation of a task output repository.\n * Provides storage and retrieval for task outputs using SQLite.\n */\nexport class SqliteTaskOutputRepository extends TaskOutputTabularRepository {\n constructor(dbOrPath: string, table: string = \"task_outputs\") {\n super({\n tabularRepository: new SqliteTabularRepository(\n dbOrPath,\n table,\n TaskOutputSchema,\n TaskOutputPrimaryKeyNames,\n [\"createdAt\"]\n ),\n });\n }\n}\n"
|
|
22
18
|
],
|
|
23
|
-
"mappings": ";AAMA;A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,CAAC,WAAW,CACd;AAAA,IACF,CAAC;AAAA;AAEL;;AC3BA,sCAAS;AACT;AAAA,+BACE;AAAA,sBACA;AAAA,iCACA;AAAA;AAEF,+BAAS;AAGF,IAAM,kCAAkC,oBAC7C,yCACF;AAAA;AAMO,MAAM,qCAAqC,6BAA4B;AAAA,EAC5E,WAAW,CAAC,IAAU,QAAgB,gBAAgB;AAAA,IACpD,MAAM;AAAA,MACJ,mBAAmB,IAAI,2BACrB,IACA,OACA,mBACA,4BACA,CAAC,WAAW,CACd;AAAA,IACF,CAAC;AAAA;AAEL;;AC7BA,oCAAS;AACT;AAAA,+BACE;AAAA,sBACA;AAAA,iCACA;AAAA;AAEF,+BAAS;AAEF,IAAM,gCAAgC,qBAC3C,uCACF;AAAA;AAMO,MAAM,mCAAmC,6BAA4B;AAAA,EAC1E,WAAW,CAAC,UAAkB,QAAgB,gBAAgB;AAAA,IAC5D,MAAM;AAAA,MACJ,mBAAmB,IAAI,yBACrB,UACA,OACA,mBACA,4BACA,CAAC,WAAW,CACd;AAAA,IACF,CAAC;AAAA;AAEL;",
|
|
20
|
+
"debugId": "FE60EA159DCDE9B164756E2164756E21",
|
|
25
21
|
"names": []
|
|
26
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/samples/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AAEnC,wBAAsB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/samples/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AAEnC,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,CAuBhE;AAED,wBAAsB,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAuBjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupabaseMockClient.d.ts","sourceRoot":"","sources":["../../../src/test/helpers/SupabaseMockClient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"SupabaseMockClient.d.ts","sourceRoot":"","sources":["../../../src/test/helpers/SupabaseMockClient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,cAAc,CAyhBzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InMemoryPrefixedQueueStorage.test.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/InMemoryPrefixedQueueStorage.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndexedDbPrefixedQueueStorage.test.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/IndexedDbPrefixedQueueStorage.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresPrefixedQueueStorage.test.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/PostgresPrefixedQueueStorage.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SqlitePrefixedQueueStorage.test.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/SqlitePrefixedQueueStorage.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupabasePrefixedQueueStorage.test.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/SupabasePrefixedQueueStorage.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { IJobExecuteContext, ILimiter, Job
|
|
6
|
+
import { IJobExecuteContext, ILimiter, Job } from "@workglow/job-queue";
|
|
7
7
|
import { IQueueStorage } from "@workglow/storage";
|
|
8
8
|
export interface TInput {
|
|
9
|
-
|
|
9
|
+
readonly taskType?: string;
|
|
10
|
+
readonly data?: string;
|
|
11
|
+
readonly value?: string;
|
|
12
|
+
readonly [key: string]: unknown;
|
|
10
13
|
}
|
|
11
14
|
export interface TOutput {
|
|
12
|
-
|
|
15
|
+
readonly result?: string;
|
|
16
|
+
readonly [key: string]: unknown;
|
|
13
17
|
}
|
|
14
18
|
export declare class TestJob extends Job<TInput, TOutput> {
|
|
15
19
|
execute(input: TInput, context: IJobExecuteContext): Promise<TOutput>;
|
|
16
20
|
}
|
|
17
|
-
export declare function runGenericJobQueueTests(
|
|
21
|
+
export declare function runGenericJobQueueTests(storageFactory: (queueName: string) => IQueueStorage<TInput, TOutput>, limiterFactory?: (queueName: string, maxExecutions: number, windowSizeInSeconds: number) => ILimiter | Promise<ILimiter>): void;
|
|
18
22
|
//# sourceMappingURL=genericJobQueueTests.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genericJobQueueTests.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/genericJobQueueTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,kBAAkB,EAClB,QAAQ,EACR,GAAG,
|
|
1
|
+
{"version":3,"file":"genericJobQueueTests.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/genericJobQueueTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,kBAAkB,EAClB,QAAQ,EACR,GAAG,EAOJ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AACD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AAED,qBAAa,OAAQ,SAAQ,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAClC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;CAoDnF;AAED,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,EACrE,cAAc,CAAC,EAAE,CACf,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,KACxB,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAChC,IAAI,CAoxBN"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IQueueStorage, QueueStorageOptions } from "@workglow/storage";
|
|
7
|
+
/**
|
|
8
|
+
* Generic tests for queue storage with prefix filters
|
|
9
|
+
*/
|
|
10
|
+
interface TestInput {
|
|
11
|
+
readonly data: string;
|
|
12
|
+
}
|
|
13
|
+
interface TestOutput {
|
|
14
|
+
readonly result: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function runGenericPrefixedQueueStorageTests(storageFactory: (queueName: string, options?: QueueStorageOptions) => IQueueStorage<TestInput, TestOutput>): void;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=genericPrefixedQueueStorageTests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genericPrefixedQueueStorageTests.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/genericPrefixedQueueStorageTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAA2B,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIhG;;GAEG;AAEH,UAAU,SAAS;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,UAAU;IAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAWD,wBAAgB,mCAAmC,CACjD,cAAc,EAAE,CACd,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mBAAmB,KAC1B,aAAa,CAAC,SAAS,EAAE,UAAU,CAAC,QAynB1C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { IQueueStorage, QueueStorageOptions } from "@workglow/storage";
|
|
7
|
+
/**
|
|
8
|
+
* Generic tests for queue storage subscription functionality
|
|
9
|
+
*/
|
|
10
|
+
interface TestInput {
|
|
11
|
+
readonly data: string;
|
|
12
|
+
}
|
|
13
|
+
interface TestOutput {
|
|
14
|
+
readonly result: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function runGenericQueueStorageSubscriptionTests(storageFactory: (queueName: string, options?: QueueStorageOptions) => IQueueStorage<TestInput, TestOutput>, options?: {
|
|
17
|
+
/** Whether this storage implementation uses polling (needs longer waits) */
|
|
18
|
+
readonly usesPolling?: boolean;
|
|
19
|
+
/** Custom polling interval for polling-based implementations */
|
|
20
|
+
readonly pollingIntervalMs?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether this storage shares state across instances (e.g., database backends).
|
|
23
|
+
* InMemory doesn't share state - each instance has its own isolated job queue.
|
|
24
|
+
* Set to false to skip cross-instance prefix filter tests.
|
|
25
|
+
*/
|
|
26
|
+
readonly sharesStateAcrossInstances?: boolean;
|
|
27
|
+
}): void;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=genericQueueStorageSubscriptionTests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genericQueueStorageSubscriptionTests.d.ts","sourceRoot":"","sources":["../../../src/test/job-queue/genericQueueStorageSubscriptionTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,aAAa,EAIb,mBAAmB,EAEpB,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AAEH,UAAU,SAAS;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,UAAU;IAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAKD,wBAAgB,uCAAuC,CACrD,cAAc,EAAE,CACd,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mBAAmB,KAC1B,aAAa,CAAC,SAAS,EAAE,UAAU,CAAC,EACzC,OAAO,CAAC,EAAE;IACR,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,gEAAgE;IAChE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,0BAA0B,CAAC,EAAE,OAAO,CAAC;CAC/C,QAujBF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { ITabularRepository } from "@workglow/storage";
|
|
7
|
+
import { CompoundPrimaryKeyNames, CompoundSchema } from "./genericTabularRepositoryTests";
|
|
8
|
+
/**
|
|
9
|
+
* Generic tests for tabular repository subscription functionality
|
|
10
|
+
*/
|
|
11
|
+
export declare function runGenericTabularRepositorySubscriptionTests(createRepository: () => Promise<ITabularRepository<typeof CompoundSchema, typeof CompoundPrimaryKeyNames>>, options?: {
|
|
12
|
+
/** Whether this repository implementation uses polling (needs longer waits) */
|
|
13
|
+
readonly usesPolling?: boolean;
|
|
14
|
+
/** Custom polling interval for polling-based implementations */
|
|
15
|
+
readonly pollingIntervalMs?: number;
|
|
16
|
+
}): void;
|
|
17
|
+
//# sourceMappingURL=genericTabularRepositorySubscriptionTests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genericTabularRepositorySubscriptionTests.d.ts","sourceRoot":"","sources":["../../../src/test/storage-tabular/genericTabularRepositorySubscriptionTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAwB,MAAM,mBAAmB,CAAC;AAG7E,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAE1F;;GAEG;AAEH,wBAAgB,4CAA4C,CAC1D,gBAAgB,EAAE,MAAM,OAAO,CAC7B,kBAAkB,CAAC,OAAO,cAAc,EAAE,OAAO,uBAAuB,CAAC,CAC1E,EACD,OAAO,CAAC,EAAE;IACR,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,gEAAgE;IAChE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACrC,QAiQF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexedDbTaskGraphJobQueue.test.d.ts","sourceRoot":"","sources":["../../../src/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"IndexedDbTaskGraphJobQueue.test.d.ts","sourceRoot":"","sources":["../../../src/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,qBAAqB,CAAC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { IJobExecuteContext, Job
|
|
7
|
-
import { JobQueueTask, TaskInput, TaskOutput } from "@workglow/task-graph";
|
|
6
|
+
import { IJobExecuteContext, Job } from "@workglow/job-queue";
|
|
7
|
+
import { JobQueueTask, RegisteredQueue, TaskInput, TaskOutput } from "@workglow/task-graph";
|
|
8
8
|
import { DataPortSchema } from "@workglow/util";
|
|
9
9
|
export declare class TestJob extends Job<TaskInput, TaskOutput> {
|
|
10
10
|
execute(input: TaskInput, context: IJobExecuteContext): Promise<TaskOutput>;
|
|
@@ -19,5 +19,5 @@ export declare class TestJobTask extends JobQueueTask<{
|
|
|
19
19
|
static readonly inputSchema: () => DataPortSchema;
|
|
20
20
|
static readonly outputSchema: () => DataPortSchema;
|
|
21
21
|
}
|
|
22
|
-
export declare function runGenericTaskGraphJobQueueTests(
|
|
22
|
+
export declare function runGenericTaskGraphJobQueueTests(createQueue: () => Promise<RegisteredQueue<TaskInput, TaskOutput>>): void;
|
|
23
23
|
//# sourceMappingURL=genericTaskGraphJobQueueTests.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genericTaskGraphJobQueueTests.d.ts","sourceRoot":"","sources":["../../../src/test/task-graph-job-queue/genericTaskGraphJobQueueTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"genericTaskGraphJobQueueTests.d.ts","sourceRoot":"","sources":["../../../src/test/task-graph-job-queue/genericTaskGraphJobQueueTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAEL,YAAY,EACZ,eAAe,EACf,SAAS,EACT,UAAU,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,qBAAa,OAAQ,SAAQ,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/C,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC;CAGlF;AAED,qBAAa,WAAY,SAAQ,YAAY,CAAC;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;IACzF,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAiB;IAC7C,MAAM,CAAC,QAAQ,CAAC,WAAW,QAAO,cAAc,CAST;IACvC,MAAM,CAAC,QAAQ,CAAC,YAAY,QAAO,cAAc,CAQV;CACxC;AAED,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,GACjE,IAAI,CAqCN"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/test",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.58",
|
|
5
5
|
"description": "Testing utilities and test suites for Workglow packages, providing comprehensive testing infrastructure.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "concurrently -c 'auto' 'bun:watch-*'",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"src/**/*.md"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@workglow/ai": "0.0.
|
|
37
|
-
"@workglow/ai-provider": "0.0.
|
|
38
|
-
"@workglow/job-queue": "0.0.
|
|
39
|
-
"@workglow/storage": "0.0.
|
|
40
|
-
"@workglow/task-graph": "0.0.
|
|
41
|
-
"@workglow/tasks": "0.0.
|
|
42
|
-
"@workglow/util": "0.0.
|
|
43
|
-
"@workglow/sqlite": "0.0.
|
|
36
|
+
"@workglow/ai": "0.0.58",
|
|
37
|
+
"@workglow/ai-provider": "0.0.58",
|
|
38
|
+
"@workglow/job-queue": "0.0.58",
|
|
39
|
+
"@workglow/storage": "0.0.58",
|
|
40
|
+
"@workglow/task-graph": "0.0.58",
|
|
41
|
+
"@workglow/tasks": "0.0.58",
|
|
42
|
+
"@workglow/util": "0.0.58",
|
|
43
|
+
"@workglow/sqlite": "0.0.58",
|
|
44
44
|
"@electric-sql/pglite": "^0.3.11",
|
|
45
45
|
"pg": "^8.16.3",
|
|
46
46
|
"@supabase/supabase-js": "^2.86.2"
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@electric-sql/pglite": "^0.3.11",
|
|
76
|
-
"@workglow/ai": "0.0.
|
|
77
|
-
"@workglow/ai-provider": "0.0.
|
|
78
|
-
"@workglow/job-queue": "0.0.
|
|
79
|
-
"@workglow/sqlite": "0.0.
|
|
80
|
-
"@workglow/storage": "0.0.
|
|
81
|
-
"@workglow/task-graph": "0.0.
|
|
82
|
-
"@workglow/tasks": "0.0.
|
|
83
|
-
"@workglow/util": "0.0.
|
|
76
|
+
"@workglow/ai": "0.0.58",
|
|
77
|
+
"@workglow/ai-provider": "0.0.58",
|
|
78
|
+
"@workglow/job-queue": "0.0.58",
|
|
79
|
+
"@workglow/sqlite": "0.0.58",
|
|
80
|
+
"@workglow/storage": "0.0.58",
|
|
81
|
+
"@workglow/task-graph": "0.0.58",
|
|
82
|
+
"@workglow/tasks": "0.0.58",
|
|
83
|
+
"@workglow/util": "0.0.58",
|
|
84
84
|
"@supabase/supabase-js": "^2.86.2",
|
|
85
85
|
"@types/pg": "^8.15.5",
|
|
86
86
|
"fake-indexeddb": "^6.2.4",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Job, JobConstructorParam, JobQueue, JobQueueOptions } from "@workglow/job-queue";
|
|
7
|
-
export declare const IN_MEMORY_JOB_QUEUE: import("@workglow/util").ServiceToken<JobQueue<any, any, any>>;
|
|
8
|
-
export declare class InMemoryJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {
|
|
9
|
-
constructor(queueName: string, jobCls: new (param: JobConstructorParam<I, O>) => C, options: JobQueueOptions<I, O>);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=InMemoryJobQueue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryJobQueue.d.ts","sourceRoot":"","sources":["../../src/binding/InMemoryJobQueue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI1F,eAAO,MAAM,mBAAmB,gEAAmE,CAAC;AAEpG,qBAAa,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAE9E,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EACnD,OAAO,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;CAKjC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Job, JobConstructorParam, JobQueue, JobQueueOptions } from "@workglow/job-queue";
|
|
7
|
-
export declare const INDEXED_DB_JOB_QUEUE: import("@workglow/util").ServiceToken<JobQueue<any, any, any>>;
|
|
8
|
-
export declare class IndexedDbJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {
|
|
9
|
-
constructor(queueName: string, jobCls: new (param: JobConstructorParam<I, O>) => C, options: JobQueueOptions<I, O>);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=IndexedDbJobQueue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IndexedDbJobQueue.d.ts","sourceRoot":"","sources":["../../src/binding/IndexedDbJobQueue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI1F,eAAO,MAAM,oBAAoB,gEACkC,CAAC;AAEpE,qBAAa,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAE/E,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EACnD,OAAO,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;CAKjC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Job, JobConstructorParam, JobQueue, JobQueueOptions } from "@workglow/job-queue";
|
|
7
|
-
export declare const POSTGRES_JOB_QUEUE: import("@workglow/util").ServiceToken<JobQueue<any, any, any>>;
|
|
8
|
-
export declare class PostgresJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {
|
|
9
|
-
constructor(db: any, queueName: string, jobCls: new (param: JobConstructorParam<I, O>) => C, options: JobQueueOptions<I, O>);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=PostgresJobQueue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresJobQueue.d.ts","sourceRoot":"","sources":["../../src/binding/PostgresJobQueue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI1F,eAAO,MAAM,kBAAkB,gEAAmE,CAAC;AAEnG,qBAAa,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAE9E,EAAE,EAAE,GAAG,EACP,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EACnD,OAAO,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;CAKjC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Job, JobConstructorParam, JobQueue, JobQueueOptions } from "@workglow/job-queue";
|
|
7
|
-
export declare const SQLITE_JOB_QUEUE: import("@workglow/util").ServiceToken<JobQueue<any, any, any>>;
|
|
8
|
-
export declare class SqliteJobQueue<I, O, C extends Job<I, O>> extends JobQueue<I, O, C> {
|
|
9
|
-
constructor(db: any, queueName: string, jobCls: new (param: JobConstructorParam<I, O>) => C, options: JobQueueOptions<I, O>);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=SqliteJobQueue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SqliteJobQueue.d.ts","sourceRoot":"","sources":["../../src/binding/SqliteJobQueue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI1F,eAAO,MAAM,gBAAgB,gEAAiE,CAAC;AAE/F,qBAAa,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAE5E,EAAE,EAAE,GAAG,EACP,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EACnD,OAAO,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;CAKjC"}
|