@workglow/ai 0.0.58 → 0.0.60

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 (49) hide show
  1. package/dist/browser.js +72 -97
  2. package/dist/browser.js.map +12 -12
  3. package/dist/bun.js +72 -123
  4. package/dist/bun.js.map +12 -14
  5. package/dist/common.d.ts +2 -1
  6. package/dist/common.d.ts.map +1 -1
  7. package/dist/model/InMemoryModelRepository.d.ts +14 -0
  8. package/dist/model/InMemoryModelRepository.d.ts.map +1 -0
  9. package/dist/model/ModelRegistry.d.ts +12 -0
  10. package/dist/model/ModelRegistry.d.ts.map +1 -1
  11. package/dist/model/ModelRepository.d.ts +63 -65
  12. package/dist/model/ModelRepository.d.ts.map +1 -1
  13. package/dist/model/ModelSchema.d.ts +42 -0
  14. package/dist/model/ModelSchema.d.ts.map +1 -0
  15. package/dist/node.js +72 -123
  16. package/dist/node.js.map +12 -14
  17. package/dist/provider/AiProviderRegistry.d.ts +15 -3
  18. package/dist/provider/AiProviderRegistry.d.ts.map +1 -1
  19. package/dist/task/DownloadModelTask.d.ts +179 -19
  20. package/dist/task/DownloadModelTask.d.ts.map +1 -1
  21. package/dist/task/TextEmbeddingTask.d.ts +77 -9
  22. package/dist/task/TextEmbeddingTask.d.ts.map +1 -1
  23. package/dist/task/TextGenerationTask.d.ts +77 -9
  24. package/dist/task/TextGenerationTask.d.ts.map +1 -1
  25. package/dist/task/TextQuestionAnswerTask.d.ts +77 -9
  26. package/dist/task/TextQuestionAnswerTask.d.ts.map +1 -1
  27. package/dist/task/TextRewriterTask.d.ts +77 -9
  28. package/dist/task/TextRewriterTask.d.ts.map +1 -1
  29. package/dist/task/TextSummaryTask.d.ts +77 -9
  30. package/dist/task/TextSummaryTask.d.ts.map +1 -1
  31. package/dist/task/TextTranslationTask.d.ts +77 -9
  32. package/dist/task/TextTranslationTask.d.ts.map +1 -1
  33. package/dist/task/base/AiTask.d.ts +3 -3
  34. package/dist/task/base/AiTask.d.ts.map +1 -1
  35. package/dist/task/base/AiTaskSchemas.d.ts +43 -2
  36. package/dist/task/base/AiTaskSchemas.d.ts.map +1 -1
  37. package/dist/types.d.ts +0 -4
  38. package/dist/types.d.ts.map +1 -1
  39. package/package.json +9 -12
  40. package/dist/model/Model.d.ts +0 -26
  41. package/dist/model/Model.d.ts.map +0 -1
  42. package/dist/model/storage/InMemoryModelRepository.d.ts +0 -18
  43. package/dist/model/storage/InMemoryModelRepository.d.ts.map +0 -1
  44. package/dist/model/storage/IndexedDbModelRepository.d.ts +0 -18
  45. package/dist/model/storage/IndexedDbModelRepository.d.ts.map +0 -1
  46. package/dist/model/storage/PostgresModelRepository.d.ts +0 -19
  47. package/dist/model/storage/PostgresModelRepository.d.ts.map +0 -1
  48. package/dist/model/storage/SqliteModelRepository.d.ts +0 -18
  49. package/dist/model/storage/SqliteModelRepository.d.ts.map +0 -1
@@ -31,19 +31,87 @@ export declare const TextSummaryInputSchema: {
31
31
  readonly "x-replicate": true;
32
32
  readonly format?: string | undefined;
33
33
  readonly oneOf: readonly [{
34
- readonly title: "Model";
35
- readonly description: `The model ${string}`;
36
- } & {
37
- readonly format: "model:TextSummaryTask";
38
- readonly type: "string";
39
- }, {
40
- readonly type: "array";
41
- readonly items: {
34
+ readonly oneOf: readonly [{
42
35
  readonly title: "Model";
43
36
  readonly description: `The model ${string}`;
44
37
  } & {
45
- readonly format: "model:TextSummaryTask";
38
+ readonly format: import(".").TypeModelSemantic;
46
39
  readonly type: "string";
40
+ }, {
41
+ readonly type: "object";
42
+ readonly properties: {
43
+ readonly model_id: {
44
+ readonly type: "string";
45
+ };
46
+ readonly tasks: {
47
+ readonly type: "array";
48
+ readonly items: {
49
+ readonly type: "string";
50
+ };
51
+ };
52
+ readonly title: {
53
+ readonly type: "string";
54
+ };
55
+ readonly description: {
56
+ readonly type: "string";
57
+ };
58
+ readonly provider: {
59
+ readonly type: "string";
60
+ };
61
+ readonly providerConfig: {
62
+ readonly type: "object";
63
+ readonly default: {};
64
+ };
65
+ readonly metadata: {
66
+ readonly type: "object";
67
+ readonly default: {};
68
+ };
69
+ };
70
+ readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
71
+ readonly additionalProperties: false;
72
+ }];
73
+ }, {
74
+ readonly type: "array";
75
+ readonly items: {
76
+ readonly oneOf: readonly [{
77
+ readonly title: "Model";
78
+ readonly description: `The model ${string}`;
79
+ } & {
80
+ readonly format: import(".").TypeModelSemantic;
81
+ readonly type: "string";
82
+ }, {
83
+ readonly type: "object";
84
+ readonly properties: {
85
+ readonly model_id: {
86
+ readonly type: "string";
87
+ };
88
+ readonly tasks: {
89
+ readonly type: "array";
90
+ readonly items: {
91
+ readonly type: "string";
92
+ };
93
+ };
94
+ readonly title: {
95
+ readonly type: "string";
96
+ };
97
+ readonly description: {
98
+ readonly type: "string";
99
+ };
100
+ readonly provider: {
101
+ readonly type: "string";
102
+ };
103
+ readonly providerConfig: {
104
+ readonly type: "object";
105
+ readonly default: {};
106
+ };
107
+ readonly metadata: {
108
+ readonly type: "object";
109
+ readonly default: {};
110
+ };
111
+ };
112
+ readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
113
+ readonly additionalProperties: false;
114
+ }];
47
115
  };
48
116
  }];
49
117
  readonly title: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"TextSummaryTask.d.ts","sourceRoot":"","sources":["../../src/task/TextSummaryTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYA,CAAC;AAEpC,eAAO,MAAM,uBAAu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AAC7E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E;;GAEG;AAEH,qBAAa,eAAgB,SAAQ,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IACtF,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAkB;IACrC,OAAc,WAAW,SACgD;WAC3D,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAU,OAAO,oBAAoB,EAAE,SAAS,kBAAkB;;EAEzF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,CAAC,CAAC;KAC9F;CACF"}
@@ -75,19 +75,87 @@ export declare const TextTranslationInputSchema: {
75
75
  readonly "x-replicate": true;
76
76
  readonly format?: string | undefined;
77
77
  readonly oneOf: readonly [{
78
- readonly title: "Model";
79
- readonly description: `The model ${string}`;
80
- } & {
81
- readonly format: "model:TextTranslationTask";
82
- readonly type: "string";
83
- }, {
84
- readonly type: "array";
85
- readonly items: {
78
+ readonly oneOf: readonly [{
86
79
  readonly title: "Model";
87
80
  readonly description: `The model ${string}`;
88
81
  } & {
89
- readonly format: "model:TextTranslationTask";
82
+ readonly format: import(".").TypeModelSemantic;
90
83
  readonly type: "string";
84
+ }, {
85
+ readonly type: "object";
86
+ readonly properties: {
87
+ readonly model_id: {
88
+ readonly type: "string";
89
+ };
90
+ readonly tasks: {
91
+ readonly type: "array";
92
+ readonly items: {
93
+ readonly type: "string";
94
+ };
95
+ };
96
+ readonly title: {
97
+ readonly type: "string";
98
+ };
99
+ readonly description: {
100
+ readonly type: "string";
101
+ };
102
+ readonly provider: {
103
+ readonly type: "string";
104
+ };
105
+ readonly providerConfig: {
106
+ readonly type: "object";
107
+ readonly default: {};
108
+ };
109
+ readonly metadata: {
110
+ readonly type: "object";
111
+ readonly default: {};
112
+ };
113
+ };
114
+ readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
115
+ readonly additionalProperties: false;
116
+ }];
117
+ }, {
118
+ readonly type: "array";
119
+ readonly items: {
120
+ readonly oneOf: readonly [{
121
+ readonly title: "Model";
122
+ readonly description: `The model ${string}`;
123
+ } & {
124
+ readonly format: import(".").TypeModelSemantic;
125
+ readonly type: "string";
126
+ }, {
127
+ readonly type: "object";
128
+ readonly properties: {
129
+ readonly model_id: {
130
+ readonly type: "string";
131
+ };
132
+ readonly tasks: {
133
+ readonly type: "array";
134
+ readonly items: {
135
+ readonly type: "string";
136
+ };
137
+ };
138
+ readonly title: {
139
+ readonly type: "string";
140
+ };
141
+ readonly description: {
142
+ readonly type: "string";
143
+ };
144
+ readonly provider: {
145
+ readonly type: "string";
146
+ };
147
+ readonly providerConfig: {
148
+ readonly type: "object";
149
+ readonly default: {};
150
+ };
151
+ readonly metadata: {
152
+ readonly type: "object";
153
+ readonly default: {};
154
+ };
155
+ };
156
+ readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
157
+ readonly additionalProperties: false;
158
+ }];
91
159
  };
92
160
  }];
93
161
  readonly title: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"TextTranslationTask.d.ts","sourceRoot":"","sources":["../../src/task/TextTranslationTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAWvC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC;AAEpC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBL,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACrF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEvF;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,MAAM,CAC7C,wBAAwB,EACxB,yBAAyB,CAC1B;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAmB;IACzC,OAAc,KAAK,SAAsB;IACzC,OAAc,WAAW,SAAwE;WACnF,WAAW,IAAI,cAAc;WAG7B,YAAY,IAAI,cAAc;CAG7C;AAID;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,wBAAwB,EAAE,SAAS,kBAAkB;;;EAE3F,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,eAAe,EAAE,cAAc,CAC7B,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,CACnB,CAAC;KACH;CACF"}
@@ -9,12 +9,12 @@
9
9
  import { Job } from "@workglow/job-queue";
10
10
  import { JobQueueTask, JobQueueTaskConfig, TaskInput, type TaskOutput } from "@workglow/task-graph";
11
11
  import { AiJobInput } from "../../job/AiJob";
12
- import type { Model } from "../../model/Model";
12
+ import type { ModelRecord } from "../../model/ModelSchema";
13
13
  export interface AiSingleTaskInput extends TaskInput {
14
14
  model: string;
15
15
  }
16
16
  export interface AiArrayTaskInput extends TaskInput {
17
- model: string | string[];
17
+ model: string | ModelRecord | (string | ModelRecord)[];
18
18
  }
19
19
  /**
20
20
  * A base class for AI related tasks that run in a job queue.
@@ -42,7 +42,7 @@ export declare class AiTask<Input extends AiArrayTaskInput = AiArrayTaskInput, O
42
42
  * @returns Promise<Job> - The created job
43
43
  */
44
44
  createJob(input: Input, queueName?: string): Promise<Job<AiJobInput<Input>, Output>>;
45
- protected getModelForInput(input: AiSingleTaskInput): Promise<Model>;
45
+ protected getModelForInput(input: AiSingleTaskInput): Promise<ModelRecord>;
46
46
  protected getDefaultQueueName(input: Input): Promise<string | undefined>;
47
47
  /**
48
48
  * Validates that a model name really exists
@@ -1 +1 @@
1
- {"version":3,"file":"AiTask.d.ts","sourceRoot":"","sources":["../../../src/task/base/AiTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EACL,YAAY,EACZ,kBAAkB,EAElB,SAAS,EACT,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAS,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAS/C,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC1B;AAED;;;GAGG;AACH,qBAAa,MAAM,CACjB,KAAK,SAAS,gBAAgB,GAAG,gBAAgB,EACjD,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,CACtD,SAAQ,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,OAAc,IAAI,EAAE,MAAM,CAAY;IACtC,OAAO,CAAC,UAAU,CAAC,CAAiC;IAEpD;;;OAGG;gBACS,KAAK,GAAE,KAAmB,EAAE,MAAM,GAAE,MAAqB;IAWrE;;;;;OAKG;cACsB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAiB9E;;;;;OAKG;IACY,SAAS,CACtB,KAAK,EAAE,KAAK,EACZ,SAAS,CA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OAAO,CAAC,UAAU,CAAC,CAAuC;IAE1D;;;OAGG;gBACS,KAAK,GAAE,KAAmB,EAAE,MAAM,GAAE,MAAqB;IAWrE;;;;;OAKG;cACsB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAiB9E;;;;;OAKG;IACY,SAAS,CACtB,KAAK,EAAE,KAAK,EACZ,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;cAc1B,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC;cAcvD,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAQvF;;;;;OAKG;IACG,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;IA8C7C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;CA2BhD"}
@@ -113,13 +113,54 @@ export type TTypeModel = DataPortSchemaNonBoolean & {
113
113
  readonly type: "string";
114
114
  readonly format: TypeModelSemantic;
115
115
  };
116
- export declare function TypeModel<S extends TypeModelSemantic = "model", O extends Record<string, unknown> = {}>(semantic?: S, options?: O): {
116
+ export declare function TypeModelAsString<S extends TypeModelSemantic = "model", O extends Record<string, unknown> = {}>(semantic?: S, options?: O): {
117
117
  readonly title: "Model";
118
118
  readonly description: `The model ${string}`;
119
119
  } & O & {
120
- readonly format: S;
120
+ readonly format: TypeModelSemantic;
121
121
  readonly type: "string";
122
122
  };
123
+ export declare function TypeModel<S extends TypeModelSemantic = "model", O extends Record<string, unknown> = {}>(semantic?: S, options?: O): {
124
+ readonly oneOf: readonly [{
125
+ readonly title: "Model";
126
+ readonly description: `The model ${string}`;
127
+ } & O & {
128
+ readonly format: TypeModelSemantic;
129
+ readonly type: "string";
130
+ }, {
131
+ readonly type: "object";
132
+ readonly properties: {
133
+ readonly model_id: {
134
+ readonly type: "string";
135
+ };
136
+ readonly tasks: {
137
+ readonly type: "array";
138
+ readonly items: {
139
+ readonly type: "string";
140
+ };
141
+ };
142
+ readonly title: {
143
+ readonly type: "string";
144
+ };
145
+ readonly description: {
146
+ readonly type: "string";
147
+ };
148
+ readonly provider: {
149
+ readonly type: "string";
150
+ };
151
+ readonly providerConfig: {
152
+ readonly type: "object";
153
+ readonly default: {};
154
+ };
155
+ readonly metadata: {
156
+ readonly type: "object";
157
+ readonly default: {};
158
+ };
159
+ };
160
+ readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "providerConfig", "metadata"];
161
+ readonly additionalProperties: false;
162
+ }];
163
+ };
123
164
  export declare const TypeReplicateArray: <T extends DataPortSchemaNonBoolean>(type: T, annotations?: Record<string, unknown>) => {
124
165
  readonly "x-replicate": true;
125
166
  readonly format?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"AiTaskSchemas.d.ts","sourceRoot":"","sources":["../../../src/task/base/AiTaskSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACH,wBAAwB,EACxB,UAAU,EAGV,UAAU,EACb,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,WAAW,GACX,UAAU,GACV,iBAAiB,CAAC;AAKtB,QAAA,MAAM,uBAAuB;;;;;;;;;;;CA2ES,CAAC;AAEvC,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC;AAErE,eAAO,MAAM,gBAAgB,GAAI,cAAa,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmExC,CAAC;AAEnC,eAAO,MAAM,YAA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* SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  export * from "./common";
7
- export * from "./model/storage/IndexedDbModelRepository";
8
- export * from "./model/storage/InMemoryModelRepository";
9
- export * from "./model/storage/PostgresModelRepository";
10
- export * from "./model/storage/SqliteModelRepository";
11
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAEzB,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workglow/ai",
3
3
  "type": "module",
4
- "version": "0.0.58",
4
+ "version": "0.0.60",
5
5
  "description": "Core AI functionality for Workglow, including task execution, model management, and AI pipeline orchestration.",
6
6
  "scripts": {
7
7
  "watch": "concurrently -c 'auto' 'bun:watch-*'",
@@ -36,11 +36,10 @@
36
36
  "access": "public"
37
37
  },
38
38
  "peerDependencies": {
39
- "@workglow/job-queue": "0.0.58",
40
- "@workglow/storage": "0.0.58",
41
- "@workglow/task-graph": "0.0.58",
42
- "@workglow/util": "0.0.58",
43
- "pg": "^8.16.3"
39
+ "@workglow/job-queue": "0.0.60",
40
+ "@workglow/storage": "0.0.60",
41
+ "@workglow/task-graph": "0.0.60",
42
+ "@workglow/util": "0.0.60"
44
43
  },
45
44
  "peerDependenciesMeta": {
46
45
  "@workglow/job-queue": {
@@ -57,11 +56,9 @@
57
56
  }
58
57
  },
59
58
  "devDependencies": {
60
- "@workglow/job-queue": "0.0.58",
61
- "@workglow/storage": "0.0.58",
62
- "@workglow/task-graph": "0.0.58",
63
- "@workglow/util": "0.0.58",
64
- "@types/pg": "^8.15.5",
65
- "pg": "^8.16.3"
59
+ "@workglow/job-queue": "0.0.60",
60
+ "@workglow/storage": "0.0.60",
61
+ "@workglow/task-graph": "0.0.60",
62
+ "@workglow/util": "0.0.60"
66
63
  }
67
64
  }
@@ -1,26 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export type ModelPrimaryKey = {
7
- name: string;
8
- };
9
- export type ModelDetail = {
10
- url: string;
11
- provider: string;
12
- availableOnBrowser: boolean;
13
- availableOnServer: boolean;
14
- quantization?: string;
15
- pipeline?: string;
16
- normalize?: boolean;
17
- nativeDimensions?: number;
18
- usingDimensions?: number;
19
- contextWindow?: number;
20
- numParameters?: number;
21
- languageStyle?: string;
22
- device?: string;
23
- use_external_data_format?: boolean;
24
- };
25
- export type Model = ModelPrimaryKey & ModelDetail;
26
- //# sourceMappingURL=Model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../src/model/Model.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,eAAe,GAAG,WAAW,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { InMemoryTabularRepository } from "@workglow/storage";
7
- import { ModelPrimaryKeyNames, ModelRepository, ModelSchema, Task2ModelPrimaryKeyNames, Task2ModelSchema } from "../ModelRepository";
8
- /**
9
- * In-memory implementation of a model repository.
10
- * Provides storage and retrieval for models and task-to-model mappings.
11
- */
12
- export declare class InMemoryModelRepository extends ModelRepository {
13
- modelTabularRepository: InMemoryTabularRepository<typeof ModelSchema, typeof ModelPrimaryKeyNames>;
14
- task2ModelTabularRepository: InMemoryTabularRepository<typeof Task2ModelSchema, typeof Task2ModelPrimaryKeyNames>;
15
- type: "InMemoryModelRepository";
16
- constructor();
17
- }
18
- //# sourceMappingURL=InMemoryModelRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InMemoryModelRepository.d.ts","sourceRoot":"","sources":["../../../src/model/storage/InMemoryModelRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACH,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,eAAe;IAC1D,sBAAsB,EAAE,yBAAyB,CAC/C,OAAO,WAAW,EAClB,OAAO,oBAAoB,CAC5B,CAAC;IACF,2BAA2B,EAAE,yBAAyB,CACpD,OAAO,gBAAgB,EACvB,OAAO,yBAAyB,CACjC,CAAC;IACK,IAAI,EAAG,yBAAyB,CAAU;;CAUlD"}
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { IndexedDbTabularRepository } from "@workglow/storage";
7
- import { ModelPrimaryKeyNames, ModelRepository, ModelSchema, Task2ModelPrimaryKeyNames, Task2ModelSchema } from "../ModelRepository";
8
- /**
9
- * IndexedDB implementation of a model repository.
10
- * Provides storage and retrieval for models and task-to-model mappings.
11
- */
12
- export declare class IndexedDbModelRepository extends ModelRepository {
13
- modelTabularRepository: IndexedDbTabularRepository<typeof ModelSchema, typeof ModelPrimaryKeyNames>;
14
- task2ModelTabularRepository: IndexedDbTabularRepository<typeof Task2ModelSchema, typeof Task2ModelPrimaryKeyNames>;
15
- type: "IndexedDbModelRepository";
16
- constructor(tableModels?: string, tableTask2Models?: string);
17
- }
18
- //# sourceMappingURL=IndexedDbModelRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IndexedDbModelRepository.d.ts","sourceRoot":"","sources":["../../../src/model/storage/IndexedDbModelRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EACH,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBAAa,wBAAyB,SAAQ,eAAe;IAC3D,sBAAsB,EAAE,0BAA0B,CAChD,OAAO,WAAW,EAClB,OAAO,oBAAoB,CAC5B,CAAC;IACF,2BAA2B,EAAE,0BAA0B,CACrD,OAAO,gBAAgB,EACvB,OAAO,yBAAyB,CACjC,CAAC;IACK,IAAI,EAAG,0BAA0B,CAAU;gBAEtC,WAAW,GAAE,MAAiB,EAAE,gBAAgB,GAAE,MAAsB;CAcrF"}
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { PostgresTabularRepository } from "@workglow/storage";
7
- import { Pool } from "pg";
8
- import { ModelPrimaryKeyNames, ModelRepository, ModelSchema, Task2ModelPrimaryKeyNames, Task2ModelSchema } from "../ModelRepository";
9
- /**
10
- * PostgreSQL implementation of a model repository.
11
- * Provides storage and retrieval for models and task-to-model mappings using PostgreSQL.
12
- */
13
- export declare class PostgresModelRepository extends ModelRepository {
14
- type: "PostgresModelRepository";
15
- modelTabularRepository: PostgresTabularRepository<typeof ModelSchema, typeof ModelPrimaryKeyNames>;
16
- task2ModelTabularRepository: PostgresTabularRepository<typeof Task2ModelSchema, typeof Task2ModelPrimaryKeyNames>;
17
- constructor(db: Pool, tableModels?: string, tableTask2Models?: string);
18
- }
19
- //# sourceMappingURL=PostgresModelRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostgresModelRepository.d.ts","sourceRoot":"","sources":["../../../src/model/storage/PostgresModelRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EACH,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,eAAe;IACnD,IAAI,EAAG,yBAAyB,CAAU;IACjD,sBAAsB,EAAE,yBAAyB,CAC/C,OAAO,WAAW,EAClB,OAAO,oBAAoB,CAC5B,CAAC;IACF,2BAA2B,EAAE,yBAAyB,CACpD,OAAO,gBAAgB,EACvB,OAAO,yBAAyB,CACjC,CAAC;gBAGA,EAAE,EAAE,IAAI,EACR,WAAW,GAAE,MAAkB,EAC/B,gBAAgB,GAAE,MAAyB;CAiB9C"}
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { SqliteTabularRepository } from "@workglow/storage";
7
- import { ModelPrimaryKeyNames, ModelRepository, ModelSchema, Task2ModelPrimaryKeyNames, Task2ModelSchema } from "../ModelRepository";
8
- /**
9
- * SQLite implementation of a model repository.
10
- * Provides storage and retrieval for models and task-to-model mappings using SQLite.
11
- */
12
- export declare class SqliteModelRepository extends ModelRepository {
13
- type: "SqliteModelRepository";
14
- modelTabularRepository: SqliteTabularRepository<typeof ModelSchema, typeof ModelPrimaryKeyNames>;
15
- task2ModelTabularRepository: SqliteTabularRepository<typeof Task2ModelSchema, typeof Task2ModelPrimaryKeyNames>;
16
- constructor(dbOrPath: string, tableModels?: string, tableTask2Models?: string);
17
- }
18
- //# sourceMappingURL=SqliteModelRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SqliteModelRepository.d.ts","sourceRoot":"","sources":["../../../src/model/storage/SqliteModelRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EACH,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IACjD,IAAI,EAAG,uBAAuB,CAAU;IAC/C,sBAAsB,EAAE,uBAAuB,CAAC,OAAO,WAAW,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACjG,2BAA2B,EAAE,uBAAuB,CAClD,OAAO,gBAAgB,EACvB,OAAO,yBAAyB,CACjC,CAAC;gBAEA,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE,MAAkB,EAC/B,gBAAgB,GAAE,MAAyB;CAiB9C"}