@workglow/test 0.0.52

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.
Files changed (196) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +87 -0
  3. package/dist/binding/FsFolderTaskGraphRepository.d.ts +15 -0
  4. package/dist/binding/FsFolderTaskGraphRepository.d.ts.map +1 -0
  5. package/dist/binding/FsFolderTaskOutputRepository.d.ts +15 -0
  6. package/dist/binding/FsFolderTaskOutputRepository.d.ts.map +1 -0
  7. package/dist/binding/InMemoryJobQueue.d.ts +11 -0
  8. package/dist/binding/InMemoryJobQueue.d.ts.map +1 -0
  9. package/dist/binding/InMemoryTaskGraphRepository.d.ts +15 -0
  10. package/dist/binding/InMemoryTaskGraphRepository.d.ts.map +1 -0
  11. package/dist/binding/InMemoryTaskOutputRepository.d.ts +15 -0
  12. package/dist/binding/InMemoryTaskOutputRepository.d.ts.map +1 -0
  13. package/dist/binding/IndexedDbJobQueue.d.ts +11 -0
  14. package/dist/binding/IndexedDbJobQueue.d.ts.map +1 -0
  15. package/dist/binding/IndexedDbTaskGraphRepository.d.ts +15 -0
  16. package/dist/binding/IndexedDbTaskGraphRepository.d.ts.map +1 -0
  17. package/dist/binding/IndexedDbTaskOutputRepository.d.ts +15 -0
  18. package/dist/binding/IndexedDbTaskOutputRepository.d.ts.map +1 -0
  19. package/dist/binding/PostgresJobQueue.d.ts +11 -0
  20. package/dist/binding/PostgresJobQueue.d.ts.map +1 -0
  21. package/dist/binding/PostgresTaskGraphRepository.d.ts +16 -0
  22. package/dist/binding/PostgresTaskGraphRepository.d.ts.map +1 -0
  23. package/dist/binding/PostgresTaskOutputRepository.d.ts +16 -0
  24. package/dist/binding/PostgresTaskOutputRepository.d.ts.map +1 -0
  25. package/dist/binding/SqliteJobQueue.d.ts +11 -0
  26. package/dist/binding/SqliteJobQueue.d.ts.map +1 -0
  27. package/dist/binding/SqliteTaskGraphRepository.d.ts +15 -0
  28. package/dist/binding/SqliteTaskGraphRepository.d.ts.map +1 -0
  29. package/dist/binding/SqliteTaskOutputRepository.d.ts +15 -0
  30. package/dist/binding/SqliteTaskOutputRepository.d.ts.map +1 -0
  31. package/dist/browser.d.ts +11 -0
  32. package/dist/browser.d.ts.map +1 -0
  33. package/dist/browser.js +293 -0
  34. package/dist/browser.js.map +18 -0
  35. package/dist/bun.d.ts +7 -0
  36. package/dist/bun.d.ts.map +1 -0
  37. package/dist/bun.js +436 -0
  38. package/dist/bun.js.map +26 -0
  39. package/dist/common-server.d.ts +19 -0
  40. package/dist/common-server.d.ts.map +1 -0
  41. package/dist/common.d.ts +9 -0
  42. package/dist/common.d.ts.map +1 -0
  43. package/dist/node.d.ts +7 -0
  44. package/dist/node.d.ts.map +1 -0
  45. package/dist/node.js +435 -0
  46. package/dist/node.js.map +26 -0
  47. package/dist/samples/MediaPipeModelSamples.d.ts +2 -0
  48. package/dist/samples/MediaPipeModelSamples.d.ts.map +1 -0
  49. package/dist/samples/ONNXModelSamples.d.ts +4 -0
  50. package/dist/samples/ONNXModelSamples.d.ts.map +1 -0
  51. package/dist/samples/index.d.ts +10 -0
  52. package/dist/samples/index.d.ts.map +1 -0
  53. package/dist/test/ai-model/InMemoryModelRepository.test.d.ts +7 -0
  54. package/dist/test/ai-model/InMemoryModelRepository.test.d.ts.map +1 -0
  55. package/dist/test/ai-model/IndexedDbModelRepository.test.d.ts +7 -0
  56. package/dist/test/ai-model/IndexedDbModelRepository.test.d.ts.map +1 -0
  57. package/dist/test/ai-model/PostgresModelRepository.test.d.ts +7 -0
  58. package/dist/test/ai-model/PostgresModelRepository.test.d.ts.map +1 -0
  59. package/dist/test/ai-model/SqliteModelRepository.test.d.ts +7 -0
  60. package/dist/test/ai-model/SqliteModelRepository.test.d.ts.map +1 -0
  61. package/dist/test/ai-model/genericModelRepositoryTests.d.ts +8 -0
  62. package/dist/test/ai-model/genericModelRepositoryTests.d.ts.map +1 -0
  63. package/dist/test/ai-provider/AiProviderRegistry.test.d.ts +7 -0
  64. package/dist/test/ai-provider/AiProviderRegistry.test.d.ts.map +1 -0
  65. package/dist/test/ai-provider/HFTransformersBinding.test.d.ts +7 -0
  66. package/dist/test/ai-provider/HFTransformersBinding.test.d.ts.map +1 -0
  67. package/dist/test/ai-provider/TfMediaPipeBinding.test.d.ts +7 -0
  68. package/dist/test/ai-provider/TfMediaPipeBinding.test.d.ts.map +1 -0
  69. package/dist/test/helpers/SupabaseMockClient.d.ts +12 -0
  70. package/dist/test/helpers/SupabaseMockClient.d.ts.map +1 -0
  71. package/dist/test/job-queue/InMemoryJobQueue.test.d.ts +7 -0
  72. package/dist/test/job-queue/InMemoryJobQueue.test.d.ts.map +1 -0
  73. package/dist/test/job-queue/IndexedDbJobQueue.test.d.ts +7 -0
  74. package/dist/test/job-queue/IndexedDbJobQueue.test.d.ts.map +1 -0
  75. package/dist/test/job-queue/PostgresJobQueue.test.d.ts +7 -0
  76. package/dist/test/job-queue/PostgresJobQueue.test.d.ts.map +1 -0
  77. package/dist/test/job-queue/SqliteJobQueue.test.d.ts +7 -0
  78. package/dist/test/job-queue/SqliteJobQueue.test.d.ts.map +1 -0
  79. package/dist/test/job-queue/SupabaseJobQueue.test.d.ts +7 -0
  80. package/dist/test/job-queue/SupabaseJobQueue.test.d.ts.map +1 -0
  81. package/dist/test/job-queue/genericJobQueueTests.d.ts +18 -0
  82. package/dist/test/job-queue/genericJobQueueTests.d.ts.map +1 -0
  83. package/dist/test/storage-kv/FsFolderJsonKvRepository.test.d.ts +7 -0
  84. package/dist/test/storage-kv/FsFolderJsonKvRepository.test.d.ts.map +1 -0
  85. package/dist/test/storage-kv/FsFolderKvRepository.test.d.ts +7 -0
  86. package/dist/test/storage-kv/FsFolderKvRepository.test.d.ts.map +1 -0
  87. package/dist/test/storage-kv/InMemoryKvRepository.test.d.ts +7 -0
  88. package/dist/test/storage-kv/InMemoryKvRepository.test.d.ts.map +1 -0
  89. package/dist/test/storage-kv/IndexedDbKvRepository.test.d.ts +7 -0
  90. package/dist/test/storage-kv/IndexedDbKvRepository.test.d.ts.map +1 -0
  91. package/dist/test/storage-kv/PostgresKvRepository.test.d.ts +7 -0
  92. package/dist/test/storage-kv/PostgresKvRepository.test.d.ts.map +1 -0
  93. package/dist/test/storage-kv/SqliteKvRepository.test.d.ts +7 -0
  94. package/dist/test/storage-kv/SqliteKvRepository.test.d.ts.map +1 -0
  95. package/dist/test/storage-kv/SupabaseKvRepository.test.d.ts +7 -0
  96. package/dist/test/storage-kv/SupabaseKvRepository.test.d.ts.map +1 -0
  97. package/dist/test/storage-kv/genericKvRepositoryTests.d.ts +9 -0
  98. package/dist/test/storage-kv/genericKvRepositoryTests.d.ts.map +1 -0
  99. package/dist/test/storage-tabular/CachedTabularRepository.test.d.ts +7 -0
  100. package/dist/test/storage-tabular/CachedTabularRepository.test.d.ts.map +1 -0
  101. package/dist/test/storage-tabular/FsFolderTabularRepository.test.d.ts +7 -0
  102. package/dist/test/storage-tabular/FsFolderTabularRepository.test.d.ts.map +1 -0
  103. package/dist/test/storage-tabular/InMemoryTabularRepository.test.d.ts +7 -0
  104. package/dist/test/storage-tabular/InMemoryTabularRepository.test.d.ts.map +1 -0
  105. package/dist/test/storage-tabular/IndexedDbTabularRepository.test.d.ts +7 -0
  106. package/dist/test/storage-tabular/IndexedDbTabularRepository.test.d.ts.map +1 -0
  107. package/dist/test/storage-tabular/PostgresTabularRepository.test.d.ts +7 -0
  108. package/dist/test/storage-tabular/PostgresTabularRepository.test.d.ts.map +1 -0
  109. package/dist/test/storage-tabular/SqliteTabularRepository.test.d.ts +7 -0
  110. package/dist/test/storage-tabular/SqliteTabularRepository.test.d.ts.map +1 -0
  111. package/dist/test/storage-tabular/SupabaseTabularRepository.test.d.ts +7 -0
  112. package/dist/test/storage-tabular/SupabaseTabularRepository.test.d.ts.map +1 -0
  113. package/dist/test/storage-tabular/genericTabularRepositoryTests.d.ts +90 -0
  114. package/dist/test/storage-tabular/genericTabularRepositoryTests.d.ts.map +1 -0
  115. package/dist/test/storage-util/IndexedDbTable.migration.test.d.ts +7 -0
  116. package/dist/test/storage-util/IndexedDbTable.migration.test.d.ts.map +1 -0
  117. package/dist/test/task/ArrayTask.test.d.ts +7 -0
  118. package/dist/test/task/ArrayTask.test.d.ts.map +1 -0
  119. package/dist/test/task/ConditionalTask.test.d.ts +7 -0
  120. package/dist/test/task/ConditionalTask.test.d.ts.map +1 -0
  121. package/dist/test/task/DelayTask.test.d.ts +7 -0
  122. package/dist/test/task/DelayTask.test.d.ts.map +1 -0
  123. package/dist/test/task/FetchTask.test.d.ts +7 -0
  124. package/dist/test/task/FetchTask.test.d.ts.map +1 -0
  125. package/dist/test/task/GraphAsTask.test.d.ts +2 -0
  126. package/dist/test/task/GraphAsTask.test.d.ts.map +1 -0
  127. package/dist/test/task/JavaScriptTask.test.d.ts +7 -0
  128. package/dist/test/task/JavaScriptTask.test.d.ts.map +1 -0
  129. package/dist/test/task/LambdaTask.test.d.ts +7 -0
  130. package/dist/test/task/LambdaTask.test.d.ts.map +1 -0
  131. package/dist/test/task/OwnTask.test.d.ts +2 -0
  132. package/dist/test/task/OwnTask.test.d.ts.map +1 -0
  133. package/dist/test/task/SingleTask.test.d.ts +7 -0
  134. package/dist/test/task/SingleTask.test.d.ts.map +1 -0
  135. package/dist/test/task/TestTasks.d.ts +387 -0
  136. package/dist/test/task/TestTasks.d.ts.map +1 -0
  137. package/dist/test/task-graph/Pipeline.test.d.ts +7 -0
  138. package/dist/test/task-graph/Pipeline.test.d.ts.map +1 -0
  139. package/dist/test/task-graph/TaskGraph.test.d.ts +7 -0
  140. package/dist/test/task-graph/TaskGraph.test.d.ts.map +1 -0
  141. package/dist/test/task-graph/TaskGraphFormatSemantic.test.d.ts +7 -0
  142. package/dist/test/task-graph/TaskGraphFormatSemantic.test.d.ts.map +1 -0
  143. package/dist/test/task-graph/TaskGraphRunner.test.d.ts +7 -0
  144. package/dist/test/task-graph/TaskGraphRunner.test.d.ts.map +1 -0
  145. package/dist/test/task-graph/TaskSubGraphRunner.test.d.ts +7 -0
  146. package/dist/test/task-graph/TaskSubGraphRunner.test.d.ts.map +1 -0
  147. package/dist/test/task-graph/Workflow.test.d.ts +7 -0
  148. package/dist/test/task-graph/Workflow.test.d.ts.map +1 -0
  149. package/dist/test/task-graph-job-queue/InMemoryTaskGraphJobQueue.test.d.ts +7 -0
  150. package/dist/test/task-graph-job-queue/InMemoryTaskGraphJobQueue.test.d.ts.map +1 -0
  151. package/dist/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.d.ts +7 -0
  152. package/dist/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.d.ts.map +1 -0
  153. package/dist/test/task-graph-job-queue/SqliteTaskGraphJobQueue.test.d.ts +7 -0
  154. package/dist/test/task-graph-job-queue/SqliteTaskGraphJobQueue.test.d.ts.map +1 -0
  155. package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts +23 -0
  156. package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts.map +1 -0
  157. package/dist/test/task-graph-output-cache/FileTaskOutputRepository.test.d.ts +7 -0
  158. package/dist/test/task-graph-output-cache/FileTaskOutputRepository.test.d.ts.map +1 -0
  159. package/dist/test/task-graph-output-cache/InMemoryTaskOutputRepository.test.d.ts +7 -0
  160. package/dist/test/task-graph-output-cache/InMemoryTaskOutputRepository.test.d.ts.map +1 -0
  161. package/dist/test/task-graph-output-cache/IndexedDbTaskOutputRepository.test.d.ts +7 -0
  162. package/dist/test/task-graph-output-cache/IndexedDbTaskOutputRepository.test.d.ts.map +1 -0
  163. package/dist/test/task-graph-output-cache/SqliteTaskOutputRepository.test.d.ts +7 -0
  164. package/dist/test/task-graph-output-cache/SqliteTaskOutputRepository.test.d.ts.map +1 -0
  165. package/dist/test/task-graph-output-cache/genericTaskOutputRepositoryTests.d.ts +8 -0
  166. package/dist/test/task-graph-output-cache/genericTaskOutputRepositoryTests.d.ts.map +1 -0
  167. package/dist/test/task-graph-storage/FileTaskGraphRepository.test.d.ts +7 -0
  168. package/dist/test/task-graph-storage/FileTaskGraphRepository.test.d.ts.map +1 -0
  169. package/dist/test/task-graph-storage/InMemoryTaskGraphRepository.test.d.ts +7 -0
  170. package/dist/test/task-graph-storage/InMemoryTaskGraphRepository.test.d.ts.map +1 -0
  171. package/dist/test/task-graph-storage/IndexedDbTaskGraphRepository.test.d.ts +7 -0
  172. package/dist/test/task-graph-storage/IndexedDbTaskGraphRepository.test.d.ts.map +1 -0
  173. package/dist/test/task-graph-storage/SqliteTaskGraphRepository.test.d.ts +7 -0
  174. package/dist/test/task-graph-storage/SqliteTaskGraphRepository.test.d.ts.map +1 -0
  175. package/dist/test/task-graph-storage/genericTaskGraphRepositoryTests.d.ts +8 -0
  176. package/dist/test/task-graph-storage/genericTaskGraphRepositoryTests.d.ts.map +1 -0
  177. package/dist/test/util/EventEmitter.test.d.ts +7 -0
  178. package/dist/test/util/EventEmitter.test.d.ts.map +1 -0
  179. package/dist/test/util/SchemaUtils.test.d.ts +7 -0
  180. package/dist/test/util/SchemaUtils.test.d.ts.map +1 -0
  181. package/dist/test/util/arrayAsObjectProxy.test.d.ts +7 -0
  182. package/dist/test/util/arrayAsObjectProxy.test.d.ts.map +1 -0
  183. package/dist/test/util/compression.test.d.ts +7 -0
  184. package/dist/test/util/compression.test.d.ts.map +1 -0
  185. package/dist/test/util/directedAcyclicGraph.test.d.ts +2 -0
  186. package/dist/test/util/directedAcyclicGraph.test.d.ts.map +1 -0
  187. package/dist/test/util/directedGraph.test.d.ts +2 -0
  188. package/dist/test/util/directedGraph.test.d.ts.map +1 -0
  189. package/dist/test/util/graph.test.d.ts +5 -0
  190. package/dist/test/util/graph.test.d.ts.map +1 -0
  191. package/dist/test/util/readme.test.d.ts +2 -0
  192. package/dist/test/util/readme.test.d.ts.map +1 -0
  193. package/dist/types.d.ts +7 -0
  194. package/dist/types.d.ts.map +1 -0
  195. package/package.json +93 -0
  196. package/src/binding/README.md +76 -0
@@ -0,0 +1,293 @@
1
+ // src/binding/InMemoryTaskGraphRepository.ts
2
+ import { InMemoryTabularRepository } from "@workglow/storage";
3
+ import {
4
+ TaskGraphPrimaryKeyNames,
5
+ TaskGraphSchema,
6
+ TaskGraphTabularRepository
7
+ } from "@workglow/task-graph";
8
+ import { createServiceToken } from "@workglow/util";
9
+ var MEMORY_TASK_GRAPH_REPOSITORY = createServiceToken("taskgraph.taskGraphRepository.inMemory");
10
+
11
+ class InMemoryTaskGraphRepository extends TaskGraphTabularRepository {
12
+ constructor() {
13
+ super({
14
+ tabularRepository: new InMemoryTabularRepository(TaskGraphSchema, TaskGraphPrimaryKeyNames)
15
+ });
16
+ }
17
+ }
18
+ // src/binding/InMemoryTaskOutputRepository.ts
19
+ import { InMemoryTabularRepository as InMemoryTabularRepository2 } from "@workglow/storage";
20
+ import {
21
+ TaskOutputPrimaryKeyNames,
22
+ TaskOutputSchema,
23
+ TaskOutputTabularRepository
24
+ } from "@workglow/task-graph";
25
+ import { createServiceToken as createServiceToken2 } from "@workglow/util";
26
+ var MEMORY_TASK_OUTPUT_REPOSITORY = createServiceToken2("taskgraph.taskOutputRepository.inMemory");
27
+
28
+ class InMemoryTaskOutputRepository extends TaskOutputTabularRepository {
29
+ constructor() {
30
+ super({
31
+ tabularRepository: new InMemoryTabularRepository2(TaskOutputSchema, TaskOutputPrimaryKeyNames, ["createdAt"])
32
+ });
33
+ }
34
+ }
35
+ // src/samples/index.ts
36
+ import { AiJob } from "@workglow/ai";
37
+ import { TENSORFLOW_MEDIAPIPE as TENSORFLOW_MEDIAPIPE2 } from "@workglow/ai-provider";
38
+ import { ConcurrencyLimiter, JobQueue } from "@workglow/job-queue";
39
+ import { InMemoryQueueStorage } from "@workglow/storage";
40
+ import { getTaskQueueRegistry } from "@workglow/task-graph";
41
+
42
+ // src/samples/MediaPipeModelSamples.ts
43
+ import { getGlobalModelRepository } from "@workglow/ai";
44
+ import { TENSORFLOW_MEDIAPIPE } from "@workglow/ai-provider";
45
+ async function addMediaPipeModel(info, tasks) {
46
+ const name = "mediapipe:" + info.name;
47
+ const model = Object.assign({
48
+ provider: TENSORFLOW_MEDIAPIPE,
49
+ quantization: null,
50
+ normalize: true,
51
+ contextWindow: 4096,
52
+ availableOnBrowser: true,
53
+ availableOnServer: false,
54
+ parameters: null,
55
+ languageStyle: null,
56
+ usingDimensions: info.nativeDimensions ?? null
57
+ }, info, { name });
58
+ await getGlobalModelRepository().addModel(model);
59
+ await Promise.allSettled(tasks.map((task) => getGlobalModelRepository().connectTaskToModel(task, name)));
60
+ }
61
+ async function registerMediaPipeTfJsLocalModels() {
62
+ await addMediaPipeModel({
63
+ name: "Universal Sentence Encoder",
64
+ pipeline: "text_embedder",
65
+ nativeDimensions: 100,
66
+ url: "https://storage.googleapis.com/mediapipe-tasks/text_embedder/universal_sentence_encoder.tflite"
67
+ }, ["TextEmbeddingTask"]);
68
+ await addMediaPipeModel({
69
+ name: "Text Encoder",
70
+ pipeline: "text_embedder",
71
+ nativeDimensions: 100,
72
+ url: "https://huggingface.co/keras-sd/text-encoder-tflite/resolve/main/text_encoder.tflite?download=true"
73
+ }, ["TextEmbeddingTask"]);
74
+ }
75
+ // src/samples/ONNXModelSamples.ts
76
+ import { getGlobalModelRepository as getGlobalModelRepository2 } from "@workglow/ai";
77
+ import { HF_TRANSFORMERS_ONNX, QUANTIZATION_DATA_TYPES } from "@workglow/ai-provider";
78
+ async function addONNXModel(info, tasks) {
79
+ const model = Object.assign({
80
+ name: "onnx:" + info.url + ":" + (info.quantization ?? QUANTIZATION_DATA_TYPES.q8),
81
+ provider: HF_TRANSFORMERS_ONNX,
82
+ quantization: QUANTIZATION_DATA_TYPES.q8,
83
+ normalize: true,
84
+ contextWindow: 4096,
85
+ availableOnBrowser: true,
86
+ availableOnServer: true,
87
+ parameters: null,
88
+ languageStyle: null,
89
+ usingDimensions: info.nativeDimensions ?? null
90
+ }, info);
91
+ await getGlobalModelRepository2().addModel(model);
92
+ await Promise.allSettled(tasks.map((task) => getGlobalModelRepository2().connectTaskToModel(task, model.name)));
93
+ }
94
+ async function registerHuggingfaceLocalModels() {
95
+ await addONNXModel({
96
+ pipeline: "feature-extraction",
97
+ nativeDimensions: 384,
98
+ url: "Supabase/gte-small"
99
+ }, ["TextEmbeddingTask"]);
100
+ await addONNXModel({
101
+ pipeline: "feature-extraction",
102
+ nativeDimensions: 768,
103
+ url: "Xenova/bge-base-en-v1.5"
104
+ }, ["TextEmbeddingTask"]);
105
+ await addONNXModel({
106
+ pipeline: "feature-extraction",
107
+ nativeDimensions: 384,
108
+ url: "Xenova/all-MiniLM-L6-v2"
109
+ }, ["TextEmbeddingTask"]);
110
+ await addONNXModel({
111
+ pipeline: "feature-extraction",
112
+ nativeDimensions: 1024,
113
+ url: "WhereIsAI/UAE-Large-V1"
114
+ }, ["TextEmbeddingTask"]);
115
+ await addONNXModel({
116
+ pipeline: "feature-extraction",
117
+ nativeDimensions: 384,
118
+ url: "Xenova/bge-small-en-v1.5"
119
+ }, ["TextEmbeddingTask"]);
120
+ await addONNXModel({
121
+ pipeline: "question-answering",
122
+ url: "Xenova/distilbert-base-uncased-distilled-squad"
123
+ }, ["TextQuestionAnsweringTask"]);
124
+ await addONNXModel({
125
+ pipeline: "zero-shot-classification",
126
+ url: "Xenova/distilbert-base-uncased-mnli"
127
+ }, ["TextClassificationTask"]);
128
+ await addONNXModel({
129
+ pipeline: "fill-mask",
130
+ url: "answerdotai/ModernBERT-base"
131
+ }, ["TextClassificationTask"]);
132
+ await addONNXModel({
133
+ pipeline: "feature-extraction",
134
+ nativeDimensions: 768,
135
+ url: "Xenova/multi-qa-mpnet-base-dot-v1"
136
+ }, ["TextEmbeddingTask"]);
137
+ await addONNXModel({
138
+ pipeline: "text-generation",
139
+ url: "Xenova/gpt2"
140
+ }, ["TextGenerationTask"]);
141
+ await addONNXModel({
142
+ pipeline: "text-generation",
143
+ url: "Xenova/Phi-3-mini-4k-instruct",
144
+ device: "webgpu",
145
+ quantization: QUANTIZATION_DATA_TYPES.q4,
146
+ use_external_data_format: true
147
+ }, ["TextGenerationTask"]);
148
+ await addONNXModel({
149
+ name: "onnx:Xenova/Phi-3-mini-4k-instruct:q4f16",
150
+ pipeline: "text-generation",
151
+ url: "Xenova/Phi-3-mini-4k-instruct_fp16",
152
+ device: "webgpu",
153
+ quantization: QUANTIZATION_DATA_TYPES.q4,
154
+ use_external_data_format: true
155
+ }, ["TextGenerationTask"]);
156
+ await addONNXModel({
157
+ name: "onnx:onnx-community/DeepSeek-R1-Distill-Qwen-1.5B:fp16",
158
+ pipeline: "text-generation",
159
+ url: "onnx-community/DeepSeek-R1-Distill-Qwen-1.5B-ONNX",
160
+ device: "webgpu",
161
+ quantization: QUANTIZATION_DATA_TYPES.fp16,
162
+ use_external_data_format: true
163
+ }, ["TextGenerationTask"]);
164
+ await addONNXModel({
165
+ pipeline: "text-generation",
166
+ url: "Xenova/distilgpt2"
167
+ }, ["TextGenerationTask"]);
168
+ await addONNXModel({
169
+ pipeline: "text2text-generation",
170
+ url: "Xenova/flan-t5-small"
171
+ }, ["TextGenerationTask"]);
172
+ await addONNXModel({
173
+ pipeline: "text2text-generation",
174
+ url: "Xenova/LaMini-Flan-T5-783M"
175
+ }, ["TextGenerationTask", "TextRewriterTask"]);
176
+ await addONNXModel({
177
+ pipeline: "summarization",
178
+ url: "Falconsai/text_summarization",
179
+ quantization: QUANTIZATION_DATA_TYPES.fp32
180
+ }, ["TextSummaryTask"]);
181
+ await addONNXModel({
182
+ pipeline: "translation",
183
+ url: "Xenova/nllb-200-distilled-600M",
184
+ languageStyle: "FLORES-200"
185
+ }, ["TextTranslationTask"]);
186
+ await addONNXModel({
187
+ pipeline: "translation",
188
+ url: "Xenova/m2m100_418M",
189
+ languageStyle: "ISO-639"
190
+ }, ["TextTranslationTask"]);
191
+ await addONNXModel({
192
+ pipeline: "translation",
193
+ url: "Xenova/mbart-large-50-many-to-many-mmt",
194
+ languageStyle: "ISO-639_ISO-3166-1-alpha-2"
195
+ }, ["TextTranslationTask"]);
196
+ }
197
+
198
+ // src/samples/index.ts
199
+ async function register_HFT_InMemoryQueue() {
200
+ const jobQueue = new JobQueue("HF_TRANSFORMERS_ONNX", AiJob, {
201
+ storage: new InMemoryQueueStorage("HF_TRANSFORMERS_ONNX"),
202
+ limiter: new ConcurrencyLimiter(1, 10)
203
+ });
204
+ getTaskQueueRegistry().registerQueue(jobQueue);
205
+ jobQueue.start();
206
+ }
207
+ async function register_TFMP_InMemoryQueue() {
208
+ const jobQueue = new JobQueue(TENSORFLOW_MEDIAPIPE2, AiJob, {
209
+ storage: new InMemoryQueueStorage(TENSORFLOW_MEDIAPIPE2),
210
+ limiter: new ConcurrencyLimiter(1, 10)
211
+ });
212
+ getTaskQueueRegistry().registerQueue(jobQueue);
213
+ jobQueue.start();
214
+ }
215
+ // src/binding/IndexedDbJobQueue.ts
216
+ import { JobQueue as JobQueue2 } from "@workglow/job-queue";
217
+ import { IndexedDbQueueStorage } from "@workglow/storage";
218
+ import { createServiceToken as createServiceToken3 } from "@workglow/util";
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
+ }
226
+ }
227
+ // src/binding/IndexedDbTaskGraphRepository.ts
228
+ import { IndexedDbTabularRepository } from "@workglow/storage";
229
+ import {
230
+ TaskGraphPrimaryKeyNames as TaskGraphPrimaryKeyNames2,
231
+ TaskGraphSchema as TaskGraphSchema2,
232
+ TaskGraphTabularRepository as TaskGraphTabularRepository2
233
+ } from "@workglow/task-graph";
234
+ import { createServiceToken as createServiceToken4 } from "@workglow/util";
235
+ var IDB_TASK_GRAPH_REPOSITORY = createServiceToken4("taskgraph.taskGraphRepository.indexedDb");
236
+
237
+ class IndexedDbTaskGraphRepository extends TaskGraphTabularRepository2 {
238
+ constructor(table = "task_graphs") {
239
+ super({
240
+ tabularRepository: new IndexedDbTabularRepository(table, TaskGraphSchema2, TaskGraphPrimaryKeyNames2)
241
+ });
242
+ }
243
+ }
244
+ // src/binding/IndexedDbTaskOutputRepository.ts
245
+ import { IndexedDbTabularRepository as IndexedDbTabularRepository2 } from "@workglow/storage";
246
+ import {
247
+ TaskOutputPrimaryKeyNames as TaskOutputPrimaryKeyNames2,
248
+ TaskOutputSchema as TaskOutputSchema2,
249
+ TaskOutputTabularRepository as TaskOutputTabularRepository2
250
+ } from "@workglow/task-graph";
251
+ import { createServiceToken as createServiceToken5 } from "@workglow/util";
252
+ var IDB_TASK_OUTPUT_REPOSITORY = createServiceToken5("taskgraph.taskOutputRepository.indexedDb");
253
+
254
+ class IndexedDbTaskOutputRepository extends TaskOutputTabularRepository2 {
255
+ constructor(table = "task_outputs") {
256
+ super({
257
+ tabularRepository: new IndexedDbTabularRepository2(table, TaskOutputSchema2, TaskOutputPrimaryKeyNames2, ["createdAt"])
258
+ });
259
+ }
260
+ }
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
+ export {
274
+ register_TFMP_InMemoryQueue,
275
+ register_HFT_InMemoryQueue,
276
+ registerMediaPipeTfJsLocalModels,
277
+ registerHuggingfaceLocalModels,
278
+ addONNXModel,
279
+ MEMORY_TASK_OUTPUT_REPOSITORY,
280
+ MEMORY_TASK_GRAPH_REPOSITORY,
281
+ IndexedDbTaskOutputRepository,
282
+ IndexedDbTaskGraphRepository,
283
+ IndexedDbJobQueue,
284
+ InMemoryTaskOutputRepository,
285
+ InMemoryTaskGraphRepository,
286
+ InMemoryJobQueue,
287
+ IN_MEMORY_JOB_QUEUE,
288
+ INDEXED_DB_JOB_QUEUE,
289
+ IDB_TASK_OUTPUT_REPOSITORY,
290
+ IDB_TASK_GRAPH_REPOSITORY
291
+ };
292
+
293
+ //# debugId=E2AF6D56E368E09464756E2164756E21
@@ -0,0 +1,18 @@
1
+ {
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/IndexedDbJobQueue.ts", "../src/binding/IndexedDbTaskGraphRepository.ts", "../src/binding/IndexedDbTaskOutputRepository.ts", "../src/binding/InMemoryJobQueue.ts"],
4
+ "sourcesContent": [
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
+ "/**\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, JobQueue } 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() {\n const jobQueue = new JobQueue<AiJobInput<TaskInput>, TaskOutput>(\n \"HF_TRANSFORMERS_ONNX\",\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage: new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(\"HF_TRANSFORMERS_ONNX\"),\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n getTaskQueueRegistry().registerQueue(jobQueue);\n jobQueue.start();\n}\n\nexport async function register_TFMP_InMemoryQueue() {\n const jobQueue = new JobQueue<AiJobInput<TaskInput>, TaskOutput>(\n TENSORFLOW_MEDIAPIPE,\n AiJob<AiJobInput<TaskInput>, TaskOutput>,\n {\n storage: new InMemoryQueueStorage<AiJobInput<TaskInput>, TaskOutput>(TENSORFLOW_MEDIAPIPE),\n limiter: new ConcurrencyLimiter(1, 10),\n }\n );\n getTaskQueueRegistry().registerQueue(jobQueue);\n jobQueue.start();\n}\n",
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
+ "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
+ "/**\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"
14
+ ],
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;AAC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BACrB,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;;AC3BA,qBAAmC;AACnC,iCAAS;AACT,+BAAS;AAEF,IAAM,sBAAsB,oBAA4C,mBAAmB;AAAA;AAE3F,MAAM,yBAAoD,UAAkB;AAAA,EACjF,WAAW,CACT,WACA,QACA,SACA;AAAA,IACA,QAAQ,YAAY,IAAI,sBAA2B,SAAS;AAAA,IAC5D,MAAM,WAAW,QAAQ,OAAO;AAAA;AAEpC;",
16
+ "debugId": "E2AF6D56E368E09464756E2164756E21",
17
+ "names": []
18
+ }
package/dist/bun.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from "./common-server";
7
+ //# sourceMappingURL=bun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../src/bun.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iBAAiB,CAAC"}