@trymirai/uzu 0.1.23 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,7 +25,7 @@ Add the `uzu` dependency to your project's `package.json`:
25
25
 
26
26
  ```json
27
27
  "dependencies": {
28
- "@trymirai/uzu": "0.1.23"
28
+ "@trymirai/uzu": "0.1.25"
29
29
  }
30
30
  ```
31
31
 
@@ -11,6 +11,8 @@ export declare class Model {
11
11
  readonly type: ModelType;
12
12
  readonly kind: ModelKind;
13
13
  readonly name: string;
14
+ readonly vendor: string;
15
+ readonly isThinking: boolean;
14
16
  private constructor();
15
17
  static fromNapiLocalModel(napiLocalModel: NapiLocalModel): Model;
16
18
  static fromNapiCloudModel(napiCloudModel: NapiCloudModel): Model;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.mts","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,UAAU,IAAI,cAAc,EAAE;AAErE,oBAAY,SAAS;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,oBAAY,SAAS;IACjB,IAAI,SAAS;CAChB;AAED,qBAAa,KAAK;IACd,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,OAAO;IAOP,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;IAIhE,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;CAGnE"}
1
+ {"version":3,"file":"model.d.mts","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,UAAU,IAAI,cAAc,EAAE;AAErE,oBAAY,SAAS;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,oBAAY,SAAS;IACjB,IAAI,SAAS;CAChB;AAED,qBAAa,KAAK;IACd,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B,OAAO;IAgBP,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;IAWhE,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;CAUnE"}
@@ -11,6 +11,8 @@ export declare class Model {
11
11
  readonly type: ModelType;
12
12
  readonly kind: ModelKind;
13
13
  readonly name: string;
14
+ readonly vendor: string;
15
+ readonly isThinking: boolean;
14
16
  private constructor();
15
17
  static fromNapiLocalModel(napiLocalModel: NapiLocalModel): Model;
16
18
  static fromNapiCloudModel(napiCloudModel: NapiCloudModel): Model;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,UAAU,IAAI,cAAc,EAAE;AAErE,oBAAY,SAAS;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,oBAAY,SAAS;IACjB,IAAI,SAAS;CAChB;AAED,qBAAa,KAAK;IACd,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,OAAO;IAOP,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;IAIhE,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;CAGnE"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,UAAU,IAAI,cAAc,EAAE;AAErE,oBAAY,SAAS;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,oBAAY,SAAS;IACjB,IAAI,SAAS;CAChB;AAED,qBAAa,KAAK;IACd,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B,OAAO;IAgBP,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;IAWhE,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;CAUnE"}
package/bridging/model.js CHANGED
@@ -11,17 +11,19 @@ var ModelKind;
11
11
  ModelKind["Text"] = "text";
12
12
  })(ModelKind || (exports.ModelKind = ModelKind = {}));
13
13
  class Model {
14
- constructor(repoId, type, kind, name) {
14
+ constructor(repoId, type, kind, name, vendor, isThinking) {
15
15
  this.repoId = repoId;
16
16
  this.type = type;
17
17
  this.kind = kind;
18
18
  this.name = name;
19
+ this.vendor = vendor;
20
+ this.isThinking = isThinking;
19
21
  }
20
22
  static fromNapiLocalModel(napiLocalModel) {
21
- return new Model(napiLocalModel.identifier, ModelType.Local, ModelKind.Text, napiLocalModel.name);
23
+ return new Model(napiLocalModel.identifier, ModelType.Local, ModelKind.Text, napiLocalModel.name, napiLocalModel.vendor, napiLocalModel.outputParserRegex !== undefined);
22
24
  }
23
25
  static fromNapiCloudModel(napiCloudModel) {
24
- return new Model(napiCloudModel.repoId, ModelType.Cloud, ModelKind.Text, napiCloudModel.name);
26
+ return new Model(napiCloudModel.repoId, ModelType.Cloud, ModelKind.Text, napiCloudModel.name, napiCloudModel.vendor, napiCloudModel.outputParserRegex !== undefined);
25
27
  }
26
28
  }
27
29
  exports.Model = Model;
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,4BAAe,CAAA;AACnB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,0BAAa,CAAA;AACjB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAED,MAAa,KAAK;IAMd,YAAoB,MAAc,EAAE,IAAe,EAAE,IAAe,EAAE,IAAY;QAC9E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IACtG,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAClG,CAAC;CACJ;AApBD,sBAoBC"}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,4BAAe,CAAA;AACnB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,0BAAa,CAAA;AACjB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAED,MAAa,KAAK;IAQd,YACI,MAAc,EACd,IAAe,EACf,IAAe,EACf,IAAY,EACZ,MAAc,EACd,UAAmB;QAEnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CACZ,cAAc,CAAC,UAAU,EACzB,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,IAAI,EACd,cAAc,CAAC,IAAI,EACnB,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,iBAAiB,KAAK,SAAS,CACjD,CAAC;IACN,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CACZ,cAAc,CAAC,MAAM,EACrB,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,IAAI,EACd,cAAc,CAAC,IAAI,EACnB,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,iBAAiB,KAAK,SAAS,CACjD,CAAC;IACN,CAAC;CACJ;AA7CD,sBA6CC"}
@@ -8,17 +8,19 @@ export var ModelKind;
8
8
  ModelKind["Text"] = "text";
9
9
  })(ModelKind || (ModelKind = {}));
10
10
  export class Model {
11
- constructor(repoId, type, kind, name) {
11
+ constructor(repoId, type, kind, name, vendor, isThinking) {
12
12
  this.repoId = repoId;
13
13
  this.type = type;
14
14
  this.kind = kind;
15
15
  this.name = name;
16
+ this.vendor = vendor;
17
+ this.isThinking = isThinking;
16
18
  }
17
19
  static fromNapiLocalModel(napiLocalModel) {
18
- return new Model(napiLocalModel.identifier, ModelType.Local, ModelKind.Text, napiLocalModel.name);
20
+ return new Model(napiLocalModel.identifier, ModelType.Local, ModelKind.Text, napiLocalModel.name, napiLocalModel.vendor, napiLocalModel.outputParserRegex !== undefined);
19
21
  }
20
22
  static fromNapiCloudModel(napiCloudModel) {
21
- return new Model(napiCloudModel.repoId, ModelType.Cloud, ModelKind.Text, napiCloudModel.name);
23
+ return new Model(napiCloudModel.repoId, ModelType.Cloud, ModelKind.Text, napiCloudModel.name, napiCloudModel.vendor, napiCloudModel.outputParserRegex !== undefined);
22
24
  }
23
25
  }
24
26
  //# sourceMappingURL=model.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.mjs","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,4BAAe,CAAA;AACnB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAN,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,0BAAa,CAAA;AACjB,CAAC,EAFW,SAAS,KAAT,SAAS,QAEpB;AAED,MAAM,OAAO,KAAK;IAMd,YAAoB,MAAc,EAAE,IAAe,EAAE,IAAe,EAAE,IAAY;QAC9E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CAAC,c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kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CACZ,cAAc,CAAC,MAAM,EACrB,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,IAAI,EACd,cAAc,CAAC,IAAI,EACnB,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,iBAAiB,KAAK,SAAS,CACjD,CAAC;IACN,CAAC;CACJ"}
package/napi/uzu.d.ts CHANGED
@@ -51,6 +51,7 @@ export interface CloudModel {
51
51
  readonly repoId: string
52
52
  readonly name: string
53
53
  readonly vendor: string
54
+ readonly outputParserRegex?: string
54
55
  }
55
56
 
56
57
  export interface Config {
package/napi/uzu.node CHANGED
Binary file
package/package.json CHANGED
@@ -98,5 +98,5 @@
98
98
  },
99
99
  "type": "commonjs",
100
100
  "types": "./index.d.ts",
101
- "version": "0.1.23"
101
+ "version": "0.1.25"
102
102
  }
@@ -14,19 +14,44 @@ export class Model {
14
14
  readonly type: ModelType;
15
15
  readonly kind: ModelKind;
16
16
  readonly name: string;
17
+ readonly vendor: string;
18
+ readonly isThinking: boolean;
17
19
 
18
- private constructor(repoId: string, type: ModelType, kind: ModelKind, name: string) {
20
+ private constructor(
21
+ repoId: string,
22
+ type: ModelType,
23
+ kind: ModelKind,
24
+ name: string,
25
+ vendor: string,
26
+ isThinking: boolean,
27
+ ) {
19
28
  this.repoId = repoId;
20
29
  this.type = type;
21
30
  this.kind = kind;
22
31
  this.name = name;
32
+ this.vendor = vendor;
33
+ this.isThinking = isThinking;
23
34
  }
24
35
 
25
36
  static fromNapiLocalModel(napiLocalModel: NapiLocalModel): Model {
26
- return new Model(napiLocalModel.identifier, ModelType.Local, ModelKind.Text, napiLocalModel.name);
37
+ return new Model(
38
+ napiLocalModel.identifier,
39
+ ModelType.Local,
40
+ ModelKind.Text,
41
+ napiLocalModel.name,
42
+ napiLocalModel.vendor,
43
+ napiLocalModel.outputParserRegex !== undefined,
44
+ );
27
45
  }
28
46
 
29
47
  static fromNapiCloudModel(napiCloudModel: NapiCloudModel): Model {
30
- return new Model(napiCloudModel.repoId, ModelType.Cloud, ModelKind.Text, napiCloudModel.name);
48
+ return new Model(
49
+ napiCloudModel.repoId,
50
+ ModelType.Cloud,
51
+ ModelKind.Text,
52
+ napiCloudModel.name,
53
+ napiCloudModel.vendor,
54
+ napiCloudModel.outputParserRegex !== undefined,
55
+ );
31
56
  }
32
57
  }
package/src/napi/uzu.d.ts CHANGED
@@ -51,6 +51,7 @@ export interface CloudModel {
51
51
  readonly repoId: string
52
52
  readonly name: string
53
53
  readonly vendor: string
54
+ readonly outputParserRegex?: string
54
55
  }
55
56
 
56
57
  export interface Config {
package/src/napi/uzu.node CHANGED
Binary file
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.23';
1
+ export const VERSION = '0.1.25';
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.23";
1
+ export declare const VERSION = "0.1.25";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.23";
1
+ export declare const VERSION = "0.1.25";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.23';
4
+ exports.VERSION = '0.1.25';
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.23';
1
+ export const VERSION = '0.1.25';
2
2
  //# sourceMappingURL=version.mjs.map