@workglow/test 0.0.57 → 0.0.59

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 (54) hide show
  1. package/dist/binding/IndexedDbModelRepository.d.ts +17 -0
  2. package/dist/binding/IndexedDbModelRepository.d.ts.map +1 -0
  3. package/dist/binding/PostgresModelRepository.d.ts +18 -0
  4. package/dist/binding/PostgresModelRepository.d.ts.map +1 -0
  5. package/dist/binding/SqliteModelRepository.d.ts +17 -0
  6. package/dist/binding/SqliteModelRepository.d.ts.map +1 -0
  7. package/dist/browser.d.ts +0 -2
  8. package/dist/browser.d.ts.map +1 -1
  9. package/dist/browser.js +207 -189
  10. package/dist/browser.js.map +7 -9
  11. package/dist/bun.js +203 -213
  12. package/dist/bun.js.map +7 -11
  13. package/dist/common-server.d.ts +0 -4
  14. package/dist/common-server.d.ts.map +1 -1
  15. package/dist/node.js +203 -213
  16. package/dist/node.js.map +7 -11
  17. package/dist/samples/MediaPipeModelSamples.d.ts.map +1 -1
  18. package/dist/samples/ONNXModelSamples.d.ts +0 -2
  19. package/dist/samples/ONNXModelSamples.d.ts.map +1 -1
  20. package/dist/samples/index.d.ts.map +1 -1
  21. package/dist/test/ai-model/IndexedDbModelRepository.test.d.ts.map +1 -1
  22. package/dist/test/helpers/SupabaseMockClient.d.ts.map +1 -1
  23. package/dist/test/job-queue/InMemoryPrefixedQueueStorage.test.d.ts +7 -0
  24. package/dist/test/job-queue/InMemoryPrefixedQueueStorage.test.d.ts.map +1 -0
  25. package/dist/test/job-queue/IndexedDbPrefixedQueueStorage.test.d.ts +7 -0
  26. package/dist/test/job-queue/IndexedDbPrefixedQueueStorage.test.d.ts.map +1 -0
  27. package/dist/test/job-queue/PostgresPrefixedQueueStorage.test.d.ts +7 -0
  28. package/dist/test/job-queue/PostgresPrefixedQueueStorage.test.d.ts.map +1 -0
  29. package/dist/test/job-queue/SqlitePrefixedQueueStorage.test.d.ts +7 -0
  30. package/dist/test/job-queue/SqlitePrefixedQueueStorage.test.d.ts.map +1 -0
  31. package/dist/test/job-queue/SupabasePrefixedQueueStorage.test.d.ts +7 -0
  32. package/dist/test/job-queue/SupabasePrefixedQueueStorage.test.d.ts.map +1 -0
  33. package/dist/test/job-queue/genericJobQueueTests.d.ts +8 -4
  34. package/dist/test/job-queue/genericJobQueueTests.d.ts.map +1 -1
  35. package/dist/test/job-queue/genericPrefixedQueueStorageTests.d.ts +18 -0
  36. package/dist/test/job-queue/genericPrefixedQueueStorageTests.d.ts.map +1 -0
  37. package/dist/test/job-queue/genericQueueStorageSubscriptionTests.d.ts +29 -0
  38. package/dist/test/job-queue/genericQueueStorageSubscriptionTests.d.ts.map +1 -0
  39. package/dist/test/storage-tabular/genericTabularRepositorySubscriptionTests.d.ts +17 -0
  40. package/dist/test/storage-tabular/genericTabularRepositorySubscriptionTests.d.ts.map +1 -0
  41. package/dist/test/storage-tabular/genericTabularRepositoryTests.d.ts +38 -1
  42. package/dist/test/storage-tabular/genericTabularRepositoryTests.d.ts.map +1 -1
  43. package/dist/test/task-graph-job-queue/IndexedDbTaskGraphJobQueue.test.d.ts.map +1 -1
  44. package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts +3 -3
  45. package/dist/test/task-graph-job-queue/genericTaskGraphJobQueueTests.d.ts.map +1 -1
  46. package/package.json +17 -17
  47. package/dist/binding/InMemoryJobQueue.d.ts +0 -11
  48. package/dist/binding/InMemoryJobQueue.d.ts.map +0 -1
  49. package/dist/binding/IndexedDbJobQueue.d.ts +0 -11
  50. package/dist/binding/IndexedDbJobQueue.d.ts.map +0 -1
  51. package/dist/binding/PostgresJobQueue.d.ts +0 -11
  52. package/dist/binding/PostgresJobQueue.d.ts.map +0 -1
  53. package/dist/binding/SqliteJobQueue.d.ts +0 -11
  54. package/dist/binding/SqliteJobQueue.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"MediaPipeModelSamples.d.ts","sourceRoot":"","sources":["../../src/samples/MediaPipeModelSamples.ts"],"names":[],"mappings":"AA4BA,wBAAsB,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC,CAoBtE"}
1
+ {"version":3,"file":"MediaPipeModelSamples.d.ts","sourceRoot":"","sources":["../../src/samples/MediaPipeModelSamples.ts"],"names":[],"mappings":"AAGA,wBAAsB,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC,CA0BtE"}
@@ -1,4 +1,2 @@
1
- import { Model } from "@workglow/ai";
2
- export declare function addONNXModel(info: Partial<Model>, tasks: string[]): Promise<void>;
3
1
  export declare function registerHuggingfaceLocalModels(): Promise<void>;
4
2
  //# sourceMappingURL=ONNXModelSamples.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ONNXModelSamples.d.ts","sourceRoot":"","sources":["../../src/samples/ONNXModelSamples.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,EAAE,MAAM,cAAc,CAAC;AAG/D,wBAAsB,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,iBAqBvE;AAED,wBAAsB,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC,CAoLpE"}
1
+ {"version":3,"file":"ONNXModelSamples.d.ts","sourceRoot":"","sources":["../../src/samples/ONNXModelSamples.ts"],"names":[],"mappings":"AAGA,wBAAsB,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC,CA0JpE"}
@@ -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,kBAW/C;AAED,wBAAsB,2BAA2B,kBAWhD"}
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":"IndexedDbModelRepository.test.d.ts","sourceRoot":"","sources":["../../../src/test/ai-model/IndexedDbModelRepository.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,qBAAqB,CAAC"}
1
+ {"version":3,"file":"IndexedDbModelRepository.test.d.ts","sourceRoot":"","sources":["../../../src/test/ai-model/IndexedDbModelRepository.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,qBAAqB,CAAC"}
@@ -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,CA0ezD"}
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,CAgiBzD"}
@@ -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 {};
7
+ //# sourceMappingURL=InMemoryPrefixedQueueStorage.test.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import "fake-indexeddb/auto";
7
+ //# sourceMappingURL=IndexedDbPrefixedQueueStorage.test.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=PostgresPrefixedQueueStorage.test.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=SqlitePrefixedQueueStorage.test.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=SupabasePrefixedQueueStorage.test.d.ts.map
@@ -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, JobQueueOptions } from "@workglow/job-queue";
6
+ import { IJobExecuteContext, ILimiter, Job } from "@workglow/job-queue";
7
7
  import { IQueueStorage } from "@workglow/storage";
8
8
  export interface TInput {
9
- [key: string]: any;
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
- [key: string]: any;
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(storage: (queueName: string, options?: JobQueueOptions<TInput, TOutput>) => IQueueStorage<TInput, TOutput>, limiter?: (queueName: string, maxExecutions: number, windowSizeInSeconds: number) => ILimiter): void;
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,EAGH,eAAe,EAIhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,MAAM,WAAW,MAAM;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AACD,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;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,OAAO,EAAE,CACP,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,KACvC,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,KAAK,QAAQ,QA+5B9F"}
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"}
@@ -86,5 +86,42 @@ export declare const NullableSearchSchema: {
86
86
  };
87
87
  readonly additionalProperties: false;
88
88
  };
89
- export declare function runGenericTabularRepositoryTests(createCompoundPkRepository: () => Promise<ITabularRepository<typeof CompoundSchema, typeof CompoundPrimaryKeyNames>>, createSearchableRepository?: () => Promise<ITabularRepository<typeof SearchSchema, typeof SearchPrimaryKeyNames>>): void;
89
+ export declare const AllTypesPrimaryKeyNames: readonly ["id"];
90
+ export declare const AllTypesSchema: {
91
+ readonly type: "object";
92
+ readonly properties: {
93
+ readonly id: {
94
+ readonly type: "string";
95
+ };
96
+ readonly textField: {
97
+ readonly type: "string";
98
+ };
99
+ readonly numberField: {
100
+ readonly type: "number";
101
+ };
102
+ readonly integerField: {
103
+ readonly type: "integer";
104
+ };
105
+ readonly booleanField: {
106
+ readonly type: "boolean";
107
+ };
108
+ readonly arrayField: {
109
+ readonly type: "array";
110
+ readonly items: {
111
+ readonly type: "string";
112
+ };
113
+ };
114
+ readonly objectField: {
115
+ readonly type: "object";
116
+ readonly default: {};
117
+ };
118
+ readonly nestedObjectField: {
119
+ readonly type: "object";
120
+ readonly default: {};
121
+ };
122
+ };
123
+ readonly required: readonly ["id", "textField", "numberField", "integerField", "booleanField", "arrayField", "objectField", "nestedObjectField"];
124
+ readonly additionalProperties: false;
125
+ };
126
+ export declare function runGenericTabularRepositoryTests(createCompoundPkRepository: () => Promise<ITabularRepository<typeof CompoundSchema, typeof CompoundPrimaryKeyNames>>, createSearchableRepository?: () => Promise<ITabularRepository<typeof SearchSchema, typeof SearchPrimaryKeyNames>>, createAllTypesRepository?: () => Promise<ITabularRepository<typeof AllTypesSchema, typeof AllTypesPrimaryKeyNames>>): void;
90
127
  //# sourceMappingURL=genericTabularRepositoryTests.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"genericTabularRepositoryTests.d.ts","sourceRoot":"","sources":["../../../src/test/storage-tabular/genericTabularRepositoryTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIvD,eAAO,MAAM,uBAAuB,2BAA4B,CAAC;AACjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;CAUc,CAAC;AAE1C,eAAO,MAAM,qBAAqB,iBAAkB,CAAC;AACrD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAagB,CAAC;AAE1C,eAAO,MAAM,6BAA6B,iBAAkB,CAAC;AAC7D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWQ,CAAC;AAE1C,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,MAAM,OAAO,CACvC,kBAAkB,CAAC,OAAO,cAAc,EAAE,OAAO,uBAAuB,CAAC,CAC1E,EACD,0BAA0B,CAAC,EAAE,MAAM,OAAO,CACxC,kBAAkB,CAAC,OAAO,YAAY,EAAE,OAAO,qBAAqB,CAAC,CACtE,QAyxBF"}
1
+ {"version":3,"file":"genericTabularRepositoryTests.d.ts","sourceRoot":"","sources":["../../../src/test/storage-tabular/genericTabularRepositoryTests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIvD,eAAO,MAAM,uBAAuB,2BAA4B,CAAC;AACjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;CAUc,CAAC;AAE1C,eAAO,MAAM,qBAAqB,iBAAkB,CAAC;AACrD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAagB,CAAC;AAE1C,eAAO,MAAM,6BAA6B,iBAAkB,CAAC;AAC7D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWQ,CAAC;AAE1C,eAAO,MAAM,uBAAuB,iBAAkB,CAAC;AACvD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBc,CAAC;AAE1C,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,MAAM,OAAO,CACvC,kBAAkB,CAAC,OAAO,cAAc,EAAE,OAAO,uBAAuB,CAAC,CAC1E,EACD,0BAA0B,CAAC,EAAE,MAAM,OAAO,CACxC,kBAAkB,CAAC,OAAO,YAAY,EAAE,OAAO,qBAAqB,CAAC,CACtE,EACD,wBAAwB,CAAC,EAAE,MAAM,OAAO,CACtC,kBAAkB,CAAC,OAAO,cAAc,EAAE,OAAO,uBAAuB,CAAC,CAC1E,QA28BF"}
@@ -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;AAKH,OAAO,qBAAqB,CAAC"}
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, JobQueue } from "@workglow/job-queue";
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(createJobQueue: () => Promise<JobQueue<TaskInput, TaskOutput>>): void;
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,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAwB,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACjG,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,cAAc,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,QAqC/D"}
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.57",
4
+ "version": "0.0.59",
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.57",
37
- "@workglow/ai-provider": "0.0.57",
38
- "@workglow/job-queue": "0.0.57",
39
- "@workglow/storage": "0.0.57",
40
- "@workglow/task-graph": "0.0.57",
41
- "@workglow/tasks": "0.0.57",
42
- "@workglow/util": "0.0.57",
43
- "@workglow/sqlite": "0.0.57",
36
+ "@workglow/ai": "0.0.59",
37
+ "@workglow/ai-provider": "0.0.59",
38
+ "@workglow/job-queue": "0.0.59",
39
+ "@workglow/storage": "0.0.59",
40
+ "@workglow/task-graph": "0.0.59",
41
+ "@workglow/tasks": "0.0.59",
42
+ "@workglow/util": "0.0.59",
43
+ "@workglow/sqlite": "0.0.59",
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.57",
77
- "@workglow/ai-provider": "0.0.57",
78
- "@workglow/job-queue": "0.0.57",
79
- "@workglow/sqlite": "0.0.57",
80
- "@workglow/storage": "0.0.57",
81
- "@workglow/task-graph": "0.0.57",
82
- "@workglow/tasks": "0.0.57",
83
- "@workglow/util": "0.0.57",
76
+ "@workglow/ai": "0.0.59",
77
+ "@workglow/ai-provider": "0.0.59",
78
+ "@workglow/job-queue": "0.0.59",
79
+ "@workglow/sqlite": "0.0.59",
80
+ "@workglow/storage": "0.0.59",
81
+ "@workglow/task-graph": "0.0.59",
82
+ "@workglow/tasks": "0.0.59",
83
+ "@workglow/util": "0.0.59",
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"}