@workglow/ai 0.0.115 → 0.0.116

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.
@@ -3,7 +3,7 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { type BaseTabularStorage } from "@workglow/storage";
6
+ import { ITabularStorage } from "@workglow/storage";
7
7
  import { EventEmitter, EventParameters } from "@workglow/util";
8
8
  import { ModelPrimaryKeyNames, ModelRecord, ModelRecordSchema } from "./ModelSchema";
9
9
  /**
@@ -26,8 +26,8 @@ export declare class ModelRepository {
26
26
  /**
27
27
  * Repository for storing and managing Model instances
28
28
  */
29
- protected readonly modelTabularRepository: BaseTabularStorage<typeof ModelRecordSchema, typeof ModelPrimaryKeyNames>;
30
- constructor(modelTabularRepository: BaseTabularStorage<typeof ModelRecordSchema, typeof ModelPrimaryKeyNames>);
29
+ protected readonly modelTabularRepository: ITabularStorage<typeof ModelRecordSchema, typeof ModelPrimaryKeyNames>;
30
+ constructor(modelTabularRepository: ITabularStorage<typeof ModelRecordSchema, typeof ModelPrimaryKeyNames, ModelRecord>);
31
31
  /** Event emitter for repository events */
32
32
  protected events: EventEmitter<ModelEventListeners>;
33
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ModelRepository.d.ts","sourceRoot":"","sources":["../../src/model/ModelRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAErF;;GAEG;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,aAAa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,SAAS,CAAC;IAMpE;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;CAG9B"}
package/dist/node.js CHANGED
@@ -597,8 +597,6 @@ function schemaFormat(schema) {
597
597
  class AiTask extends JobQueueTask {
598
598
  static type = "AiTask";
599
599
  constructor(input = {}, config = {}) {
600
- const modelLabel = typeof input.model === "string" ? input.model : typeof input.model === "object" && input.model ? input.model.model_id || input.model.title || input.model.provider : undefined;
601
- config.title ||= `${new.target.type || new.target.name}${modelLabel ? " with model " + modelLabel : ""}`;
602
600
  super(input, config);
603
601
  this.jobClass = AiJob;
604
602
  }
@@ -6348,4 +6346,4 @@ export {
6348
6346
  AiJob
6349
6347
  };
6350
6348
 
6351
- //# debugId=4DDE9DBE1CD1221B64756E2164756E21
6349
+ //# debugId=BF02F8F5F2F168B964756E2164756E21