@trymirai/uzu 0.1.39 → 0.1.42
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 +30 -6
- package/bridging/chatModel.d.mts +15 -0
- package/bridging/chatModel.d.mts.map +1 -0
- package/bridging/chatModel.d.ts +15 -0
- package/bridging/chatModel.d.ts.map +1 -0
- package/bridging/chatModel.js +33 -0
- package/bridging/chatModel.js.map +1 -0
- package/bridging/chatModel.mjs +29 -0
- package/bridging/chatModel.mjs.map +1 -0
- package/bridging/chatSession.d.mts +10 -0
- package/bridging/chatSession.d.mts.map +1 -0
- package/bridging/chatSession.d.ts +10 -0
- package/bridging/chatSession.d.ts.map +1 -0
- package/bridging/{session.js → chatSession.js} +7 -7
- package/bridging/chatSession.js.map +1 -0
- package/bridging/{session.mjs → chatSession.mjs} +5 -5
- package/bridging/chatSession.mjs.map +1 -0
- package/bridging/engine.d.mts +10 -10
- package/bridging/engine.d.mts.map +1 -1
- package/bridging/engine.d.ts +10 -10
- package/bridging/engine.d.ts.map +1 -1
- package/bridging/engine.js +42 -44
- package/bridging/engine.js.map +1 -1
- package/bridging/engine.mjs +43 -45
- package/bridging/engine.mjs.map +1 -1
- package/bridging/modelType.d.mts +2 -1
- package/bridging/modelType.d.mts.map +1 -1
- package/bridging/modelType.d.ts +2 -1
- package/bridging/modelType.d.ts.map +1 -1
- package/bridging/modelType.js +14 -2
- package/bridging/modelType.js.map +1 -1
- package/bridging/modelType.mjs +12 -1
- package/bridging/modelType.mjs.map +1 -1
- package/error.d.mts +1 -1
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -1
- package/error.d.ts.map +1 -1
- package/error.js +2 -2
- package/error.js.map +1 -1
- package/error.mjs +2 -2
- package/error.mjs.map +1 -1
- package/index.d.mts +5 -5
- package/index.d.mts.map +1 -1
- package/index.d.ts +5 -5
- package/index.d.ts.map +1 -1
- package/index.js +11 -12
- package/index.js.map +1 -1
- package/index.mjs +5 -5
- package/index.mjs.map +1 -1
- package/interactors/{modelInteractor.d.mts → chatModelInteractor.d.mts} +15 -15
- package/interactors/chatModelInteractor.d.mts.map +1 -0
- package/interactors/{modelInteractor.d.ts → chatModelInteractor.d.ts} +15 -15
- package/interactors/chatModelInteractor.d.ts.map +1 -0
- package/interactors/{modelInteractor.js → chatModelInteractor.js} +13 -13
- package/interactors/chatModelInteractor.js.map +1 -0
- package/interactors/{modelInteractor.mjs → chatModelInteractor.mjs} +11 -11
- package/interactors/chatModelInteractor.mjs.map +1 -0
- package/interactors/chatModelsInteractor.d.mts +12 -0
- package/interactors/chatModelsInteractor.d.mts.map +1 -0
- package/interactors/chatModelsInteractor.d.ts +12 -0
- package/interactors/chatModelsInteractor.d.ts.map +1 -0
- package/interactors/{modelsInteractor.js → chatModelsInteractor.js} +6 -6
- package/interactors/chatModelsInteractor.js.map +1 -0
- package/interactors/{modelsInteractor.mjs → chatModelsInteractor.mjs} +4 -4
- package/interactors/chatModelsInteractor.mjs.map +1 -0
- package/interactors/chatSessionInteractor.d.mts +24 -0
- package/interactors/chatSessionInteractor.d.mts.map +1 -0
- package/interactors/chatSessionInteractor.d.ts +24 -0
- package/interactors/chatSessionInteractor.d.ts.map +1 -0
- package/interactors/{sessionInteractor.js → chatSessionInteractor.js} +8 -8
- package/interactors/chatSessionInteractor.js.map +1 -0
- package/interactors/{sessionInteractor.mjs → chatSessionInteractor.mjs} +6 -6
- package/interactors/chatSessionInteractor.mjs.map +1 -0
- package/interactors/downloadInteractor.d.mts +3 -3
- package/interactors/downloadInteractor.d.mts.map +1 -1
- package/interactors/downloadInteractor.d.ts +3 -3
- package/interactors/downloadInteractor.d.ts.map +1 -1
- package/interactors/downloadInteractor.js.map +1 -1
- package/interactors/downloadInteractor.mjs.map +1 -1
- package/interactors/engineInteractor.d.mts +5 -8
- package/interactors/engineInteractor.d.mts.map +1 -1
- package/interactors/engineInteractor.d.ts +5 -8
- package/interactors/engineInteractor.d.ts.map +1 -1
- package/interactors/engineInteractor.js +8 -12
- package/interactors/engineInteractor.js.map +1 -1
- package/interactors/engineInteractor.mjs +8 -12
- package/interactors/engineInteractor.mjs.map +1 -1
- package/napi/uzu.d.ts +18 -32
- package/napi/uzu.js +4 -6
- package/napi/uzu.mjs +2 -3
- package/napi/uzu.node +0 -0
- package/package.json +1 -1
- package/src/bridging/chatModel.ts +54 -0
- package/src/bridging/{session.ts → chatSession.ts} +6 -6
- package/src/bridging/engine.ts +47 -47
- package/src/bridging/modelType.ts +13 -1
- package/src/error.ts +2 -2
- package/src/index.ts +5 -5
- package/src/interactors/{modelInteractor.ts → chatModelInteractor.ts} +22 -22
- package/src/interactors/{modelsInteractor.ts → chatModelsInteractor.ts} +8 -8
- package/src/interactors/{sessionInteractor.ts → chatSessionInteractor.ts} +19 -15
- package/src/interactors/downloadInteractor.ts +3 -3
- package/src/interactors/engineInteractor.ts +9 -20
- package/src/napi/uzu.d.ts +18 -32
- package/src/napi/uzu.js +4 -6
- package/src/napi/uzu.mjs +2 -3
- package/src/napi/uzu.node +0 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/bridging/model.d.mts +0 -18
- package/bridging/model.d.mts.map +0 -1
- package/bridging/model.d.ts +0 -18
- package/bridging/model.d.ts.map +0 -1
- package/bridging/model.js +0 -27
- package/bridging/model.js.map +0 -1
- package/bridging/model.mjs +0 -23
- package/bridging/model.mjs.map +0 -1
- package/bridging/session.d.mts +0 -10
- package/bridging/session.d.mts.map +0 -1
- package/bridging/session.d.ts +0 -10
- package/bridging/session.d.ts.map +0 -1
- package/bridging/session.js.map +0 -1
- package/bridging/session.mjs.map +0 -1
- package/interactors/modelInteractor.d.mts.map +0 -1
- package/interactors/modelInteractor.d.ts.map +0 -1
- package/interactors/modelInteractor.js.map +0 -1
- package/interactors/modelInteractor.mjs.map +0 -1
- package/interactors/modelsInteractor.d.mts +0 -12
- package/interactors/modelsInteractor.d.mts.map +0 -1
- package/interactors/modelsInteractor.d.ts +0 -12
- package/interactors/modelsInteractor.d.ts.map +0 -1
- package/interactors/modelsInteractor.js.map +0 -1
- package/interactors/modelsInteractor.mjs.map +0 -1
- package/interactors/sessionInteractor.d.mts +0 -24
- package/interactors/sessionInteractor.d.mts.map +0 -1
- package/interactors/sessionInteractor.d.ts +0 -24
- package/interactors/sessionInteractor.d.ts.map +0 -1
- package/interactors/sessionInteractor.js.map +0 -1
- package/interactors/sessionInteractor.mjs.map +0 -1
- package/src/bridging/model.ts +0 -58
|
@@ -1,32 +1,32 @@
|
|
|
1
|
+
import { ChatModel } from '../bridging/chatModel';
|
|
1
2
|
import { Config } from '../bridging/config';
|
|
2
3
|
import { ContextLength } from '../bridging/contextLength';
|
|
3
4
|
import { DownloadProgressUpdate } from '../bridging/downloadProgressUpdate';
|
|
4
5
|
import { DownloadPhase } from '../bridging/downloadState';
|
|
5
6
|
import { Message } from '../bridging/message';
|
|
6
|
-
import { Model } from '../bridging/model';
|
|
7
7
|
import { ModelType } from '../bridging/modelType';
|
|
8
8
|
import { Output } from '../bridging/output';
|
|
9
9
|
import { PrefillStepSize } from '../bridging/prefillStepSize';
|
|
10
10
|
import { Preset } from '../bridging/preset';
|
|
11
11
|
import { RunConfig } from '../bridging/runConfig';
|
|
12
12
|
import { SamplingSeed } from '../bridging/samplingSeed';
|
|
13
|
+
import { ChatModelsInteractor } from './chatModelsInteractor';
|
|
14
|
+
import { ChatSessionInteractor } from './chatSessionInteractor';
|
|
13
15
|
import { DownloadInteractor } from './downloadInteractor';
|
|
14
16
|
import { Interactor, InteractorEntity } from './interactor';
|
|
15
|
-
import { ModelsInteractor } from './modelsInteractor';
|
|
16
|
-
import { SessionInteractor } from './sessionInteractor';
|
|
17
17
|
|
|
18
|
-
export class
|
|
19
|
-
readonly modelsInteractor:
|
|
20
|
-
readonly entity: InteractorEntity<
|
|
18
|
+
export class ChatModelInteractor implements Interactor<ChatModel> {
|
|
19
|
+
readonly modelsInteractor: ChatModelsInteractor;
|
|
20
|
+
readonly entity: InteractorEntity<ChatModel>;
|
|
21
21
|
readonly config: Config;
|
|
22
22
|
|
|
23
|
-
constructor(modelsInteractor:
|
|
23
|
+
constructor(modelsInteractor: ChatModelsInteractor, model: InteractorEntity<ChatModel>, config: Config) {
|
|
24
24
|
this.modelsInteractor = modelsInteractor;
|
|
25
25
|
this.entity = model;
|
|
26
26
|
this.config = config;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
async finalize(): Promise<
|
|
29
|
+
async finalize(): Promise<ChatModel> {
|
|
30
30
|
return await this.entity;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,13 +36,13 @@ export class ModelInteractor implements Interactor<Model> {
|
|
|
36
36
|
const handlePromise = (async () => {
|
|
37
37
|
const model = await this.finalize();
|
|
38
38
|
const engine = await this.modelsInteractor.engineInteractor.finalize();
|
|
39
|
-
const handle = engine.downloadHandle(model);
|
|
39
|
+
const handle = engine.downloadHandle(model.repoId);
|
|
40
40
|
return handle;
|
|
41
41
|
})();
|
|
42
42
|
return new DownloadInteractor(this, handlePromise);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
download(callback?: (progressUpdate: DownloadProgressUpdate) => void):
|
|
45
|
+
download(callback?: (progressUpdate: DownloadProgressUpdate) => void): ChatModelInteractor {
|
|
46
46
|
const modelPromise = (async () => {
|
|
47
47
|
const downloadInteractor = this.downloading();
|
|
48
48
|
const handle = await downloadInteractor.finalize();
|
|
@@ -59,34 +59,34 @@ export class ModelInteractor implements Interactor<Model> {
|
|
|
59
59
|
}
|
|
60
60
|
return this.finalize();
|
|
61
61
|
})();
|
|
62
|
-
return new
|
|
62
|
+
return new ChatModelInteractor(this.modelsInteractor, modelPromise, this.config);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/* Config */
|
|
66
66
|
|
|
67
|
-
preset(preset: Preset):
|
|
67
|
+
preset(preset: Preset): ChatModelInteractor {
|
|
68
68
|
const config = this.config.withPreset(preset);
|
|
69
|
-
return new
|
|
69
|
+
return new ChatModelInteractor(this.modelsInteractor, this.entity, config);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
prefillStepSize(prefillStepSize: PrefillStepSize):
|
|
72
|
+
prefillStepSize(prefillStepSize: PrefillStepSize): ChatModelInteractor {
|
|
73
73
|
const config = this.config.withPrefillStepSize(prefillStepSize);
|
|
74
|
-
return new
|
|
74
|
+
return new ChatModelInteractor(this.modelsInteractor, this.entity, config);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
contextLength(contextLength: ContextLength):
|
|
77
|
+
contextLength(contextLength: ContextLength): ChatModelInteractor {
|
|
78
78
|
const config = this.config.withContextLength(contextLength);
|
|
79
|
-
return new
|
|
79
|
+
return new ChatModelInteractor(this.modelsInteractor, this.entity, config);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
samplingSeed(samplingSeed: SamplingSeed):
|
|
82
|
+
samplingSeed(samplingSeed: SamplingSeed): ChatModelInteractor {
|
|
83
83
|
const config = this.config.withSamplingSeed(samplingSeed);
|
|
84
|
-
return new
|
|
84
|
+
return new ChatModelInteractor(this.modelsInteractor, this.entity, config);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/* Session */
|
|
88
88
|
|
|
89
|
-
session():
|
|
89
|
+
session(): ChatSessionInteractor {
|
|
90
90
|
const sessionPromise = (async () => {
|
|
91
91
|
const engine = await this.modelsInteractor.engineInteractor.finalize();
|
|
92
92
|
|
|
@@ -95,10 +95,10 @@ export class ModelInteractor implements Interactor<Model> {
|
|
|
95
95
|
model = await this.download().finalize();
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
const session = engine.
|
|
98
|
+
const session = engine.chatSession(model, this.config);
|
|
99
99
|
return session;
|
|
100
100
|
})();
|
|
101
|
-
return new
|
|
101
|
+
return new ChatSessionInteractor(this, sessionPromise, RunConfig.default());
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
async reply(text: string, progress: (partialOutput: Output) => boolean = () => true): Promise<Output> {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
+
import { ChatModel } from '../bridging/chatModel';
|
|
1
2
|
import { Config } from '../bridging/config';
|
|
2
|
-
import { Model } from '../bridging/model';
|
|
3
3
|
import { EngineErrorCode, unwrapOrThrow } from '../error';
|
|
4
|
+
import { ChatModelInteractor } from './chatModelInteractor';
|
|
4
5
|
import { EngineInteractor } from './engineInteractor';
|
|
5
6
|
import { Interactor, InteractorEntity } from './interactor';
|
|
6
|
-
import { ModelInteractor } from './modelInteractor';
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class ChatModelsInteractor implements Interactor<ChatModel[]> {
|
|
9
9
|
readonly engineInteractor: EngineInteractor;
|
|
10
|
-
readonly entity: InteractorEntity<
|
|
10
|
+
readonly entity: InteractorEntity<ChatModel[]>;
|
|
11
11
|
|
|
12
|
-
constructor(engineInteractor: EngineInteractor, models: InteractorEntity<
|
|
12
|
+
constructor(engineInteractor: EngineInteractor, models: InteractorEntity<ChatModel[]>) {
|
|
13
13
|
this.engineInteractor = engineInteractor;
|
|
14
14
|
this.entity = models;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
async finalize(): Promise<
|
|
17
|
+
async finalize(): Promise<ChatModel[]> {
|
|
18
18
|
return await this.entity;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
get(repoId: string):
|
|
21
|
+
get(repoId: string): ChatModelInteractor {
|
|
22
22
|
const modelPromise = (async () => {
|
|
23
23
|
const models = await this.finalize();
|
|
24
24
|
const model = models.find((model) => model.repoId === repoId);
|
|
25
25
|
return unwrapOrThrow(model, EngineErrorCode.ModelNotFound);
|
|
26
26
|
})();
|
|
27
|
-
return new
|
|
27
|
+
return new ChatModelInteractor(this, modelPromise, Config.default());
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,48 +1,52 @@
|
|
|
1
|
+
import { ChatSession } from '../bridging/chatSession';
|
|
1
2
|
import { Input } from '../bridging/input';
|
|
2
3
|
import { Message } from '../bridging/message';
|
|
3
4
|
import { Output } from '../bridging/output';
|
|
4
5
|
import { RunConfig } from '../bridging/runConfig';
|
|
5
6
|
import { SamplingMethod } from '../bridging/samplingMethod';
|
|
6
7
|
import { SamplingPolicy } from '../bridging/samplingPolicy';
|
|
7
|
-
import {
|
|
8
|
+
import { ChatModelInteractor } from './chatModelInteractor';
|
|
8
9
|
import { Interactor, InteractorEntity } from './interactor';
|
|
9
|
-
import { ModelInteractor } from './modelInteractor';
|
|
10
10
|
|
|
11
|
-
export class
|
|
12
|
-
readonly modelInteractor:
|
|
13
|
-
readonly entity: InteractorEntity<
|
|
11
|
+
export class ChatSessionInteractor implements Interactor<ChatSession> {
|
|
12
|
+
readonly modelInteractor: ChatModelInteractor;
|
|
13
|
+
readonly entity: InteractorEntity<ChatSession>;
|
|
14
14
|
readonly config: RunConfig;
|
|
15
15
|
|
|
16
|
-
constructor(
|
|
16
|
+
constructor(
|
|
17
|
+
modelInteractor: ChatModelInteractor,
|
|
18
|
+
session: InteractorEntity<ChatSession>,
|
|
19
|
+
config: RunConfig,
|
|
20
|
+
) {
|
|
17
21
|
this.modelInteractor = modelInteractor;
|
|
18
22
|
this.entity = session;
|
|
19
23
|
this.config = config;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
|
-
async finalize(): Promise<
|
|
26
|
+
async finalize(): Promise<ChatSession> {
|
|
23
27
|
return await this.entity;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
/* Config */
|
|
27
31
|
|
|
28
|
-
tokensLimit(tokensLimit: number):
|
|
32
|
+
tokensLimit(tokensLimit: number): ChatSessionInteractor {
|
|
29
33
|
const config = this.config.withTokensLimit(tokensLimit);
|
|
30
|
-
return new
|
|
34
|
+
return new ChatSessionInteractor(this.modelInteractor, this.entity, config);
|
|
31
35
|
}
|
|
32
36
|
|
|
33
|
-
enableThinking(enableThinking: boolean):
|
|
37
|
+
enableThinking(enableThinking: boolean): ChatSessionInteractor {
|
|
34
38
|
const config = this.config.withEnableThinking(enableThinking);
|
|
35
|
-
return new
|
|
39
|
+
return new ChatSessionInteractor(this.modelInteractor, this.entity, config);
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
samplingPolicy(samplingPolicy: SamplingPolicy):
|
|
42
|
+
samplingPolicy(samplingPolicy: SamplingPolicy): ChatSessionInteractor {
|
|
39
43
|
const config = this.config.withSamplingPolicy(samplingPolicy);
|
|
40
|
-
return new
|
|
44
|
+
return new ChatSessionInteractor(this.modelInteractor, this.entity, config);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
samplingMethod(samplingMethod: SamplingMethod):
|
|
47
|
+
samplingMethod(samplingMethod: SamplingMethod): ChatSessionInteractor {
|
|
44
48
|
const config = this.config.withSamplingPolicy(SamplingPolicy.custom(samplingMethod));
|
|
45
|
-
return new
|
|
49
|
+
return new ChatSessionInteractor(this.modelInteractor, this.entity, config);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
/* Run */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DownloadHandle } from '../bridging/downloadHandle';
|
|
2
2
|
import { DownloadProgressUpdate } from '../bridging/downloadProgressUpdate';
|
|
3
|
+
import { ChatModelInteractor } from './chatModelInteractor';
|
|
3
4
|
import { Interactor, InteractorEntity } from './interactor';
|
|
4
|
-
import { ModelInteractor } from './modelInteractor';
|
|
5
5
|
|
|
6
6
|
export class DownloadInteractor implements Interactor<DownloadHandle> {
|
|
7
|
-
readonly modelInteractor:
|
|
7
|
+
readonly modelInteractor: ChatModelInteractor;
|
|
8
8
|
readonly entity: InteractorEntity<DownloadHandle>;
|
|
9
9
|
|
|
10
|
-
constructor(modelInteractor:
|
|
10
|
+
constructor(modelInteractor: ChatModelInteractor, handle: InteractorEntity<DownloadHandle>) {
|
|
11
11
|
this.modelInteractor = modelInteractor;
|
|
12
12
|
this.entity = handle;
|
|
13
13
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { Engine } from '../bridging/engine';
|
|
2
|
-
import { ModelKind } from '../bridging/model';
|
|
3
2
|
import { ModelType } from '../bridging/modelType';
|
|
3
|
+
import { ChatModelInteractor } from './chatModelInteractor';
|
|
4
|
+
import { ChatModelsInteractor } from './chatModelsInteractor';
|
|
4
5
|
import { Interactor, InteractorEntity } from './interactor';
|
|
5
|
-
import { ModelInteractor } from './modelInteractor';
|
|
6
|
-
import { ModelsInteractor } from './modelsInteractor';
|
|
7
6
|
|
|
8
7
|
export class EngineInteractor implements Interactor<Engine> {
|
|
9
8
|
readonly entity: InteractorEntity<Engine>;
|
|
10
9
|
readonly modelTypeFilter: ModelType[] | null;
|
|
11
|
-
readonly modelKindFilter: ModelKind[] | null;
|
|
12
10
|
|
|
13
|
-
constructor(
|
|
14
|
-
engine: InteractorEntity<Engine>,
|
|
15
|
-
modelTypeFilter: ModelType[] | null = null,
|
|
16
|
-
modelKindFilter: ModelKind[] | null = null,
|
|
17
|
-
) {
|
|
11
|
+
constructor(engine: InteractorEntity<Engine>, modelTypeFilter: ModelType[] | null = null) {
|
|
18
12
|
this.entity = engine;
|
|
19
13
|
this.modelTypeFilter = modelTypeFilter;
|
|
20
|
-
this.modelKindFilter = modelKindFilter;
|
|
21
14
|
}
|
|
22
15
|
|
|
23
16
|
async finalize(): Promise<Engine> {
|
|
@@ -27,23 +20,19 @@ export class EngineInteractor implements Interactor<Engine> {
|
|
|
27
20
|
/* Models */
|
|
28
21
|
|
|
29
22
|
filterTypes(types: ModelType[] | null): EngineInteractor {
|
|
30
|
-
return new EngineInteractor(this.entity, types
|
|
23
|
+
return new EngineInteractor(this.entity, types);
|
|
31
24
|
}
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
return new EngineInteractor(this.entity, this.modelTypeFilter, kinds);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
models(): ModelsInteractor {
|
|
26
|
+
chatModels(): ChatModelsInteractor {
|
|
38
27
|
const modelsPromise = (async () => {
|
|
39
28
|
const engine = await this.finalize();
|
|
40
|
-
return await engine.
|
|
29
|
+
return await engine.chatModels(this.modelTypeFilter);
|
|
41
30
|
})();
|
|
42
|
-
return new
|
|
31
|
+
return new ChatModelsInteractor(this, modelsPromise);
|
|
43
32
|
}
|
|
44
33
|
|
|
45
|
-
|
|
46
|
-
const models = this.
|
|
34
|
+
chatModel(repoId: string): ChatModelInteractor {
|
|
35
|
+
const models = this.chatModels();
|
|
47
36
|
return models.get(repoId);
|
|
48
37
|
}
|
|
49
38
|
}
|
package/src/napi/uzu.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
3
|
+
export declare class ChatSession {
|
|
4
|
+
run(input: Input, config: RunConfig, progress?: (arg: Output) => boolean | undefined | null): Output
|
|
5
|
+
}
|
|
6
|
+
|
|
4
7
|
export declare class Engine {
|
|
5
|
-
getCloudModels(): Promise<Array<CloudModel>>
|
|
6
|
-
fetchCloudModels(): Promise<Array<CloudModel>>
|
|
7
|
-
/** Returns a `DownloadHandle` for the given model identifier. */
|
|
8
|
-
downloadHandle(repoId: string): ModelDownloadHandle
|
|
9
|
-
getLocalModels(): Array<LocalModel>
|
|
10
|
-
getState(repoId: string): ModelDownloadState
|
|
11
8
|
activate(apiKey: string): Promise<LicenseStatus>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
getChatModels(types: Array<ModelType>): Promise<Array<ChatModel>>
|
|
10
|
+
getModelDownloadState(repoId: string): ModelDownloadState
|
|
11
|
+
createModelDownloadHandle(repoId: string): ModelDownloadHandle
|
|
15
12
|
constructor()
|
|
16
|
-
|
|
13
|
+
createChatSession(model: ChatModel, config: Config): ChatSession
|
|
14
|
+
registerLicenseStatusHandler(callback?: (arg: LicenseStatus) => void | undefined | null): void
|
|
15
|
+
registerModelDownloadStateHandler(callback?: (arg0: string, arg1: ModelDownloadState) => void | undefined | null): void
|
|
16
|
+
registerChatModelsHandler(callback?: (arg: Array<ChatModel>) => void | undefined | null): void
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export declare class ModelDownloadHandle {
|
|
@@ -38,8 +38,13 @@ export declare class ProgressUpdate {
|
|
|
38
38
|
progress: number
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export
|
|
42
|
-
|
|
41
|
+
export interface ChatModel {
|
|
42
|
+
readonly repoId: string
|
|
43
|
+
readonly type: ModelType
|
|
44
|
+
readonly name: string
|
|
45
|
+
readonly vendor: string
|
|
46
|
+
readonly quantization?: string
|
|
47
|
+
readonly outputParserRegex?: string
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
export interface ClassificationFeature {
|
|
@@ -47,13 +52,6 @@ export interface ClassificationFeature {
|
|
|
47
52
|
values: Array<string>
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
export interface CloudModel {
|
|
51
|
-
readonly repoId: string
|
|
52
|
-
readonly name: string
|
|
53
|
-
readonly vendor: string
|
|
54
|
-
readonly outputParserRegex?: string
|
|
55
|
-
}
|
|
56
|
-
|
|
57
55
|
export interface Config {
|
|
58
56
|
preset: Preset
|
|
59
57
|
prefillStepSize: PrefillStepSize
|
|
@@ -88,18 +86,6 @@ export type LicenseStatus =
|
|
|
88
86
|
| { type: 'Timeout' }
|
|
89
87
|
| { type: 'HttpError', code: number }
|
|
90
88
|
|
|
91
|
-
export interface LocalModel {
|
|
92
|
-
readonly identifier: string
|
|
93
|
-
readonly repoId: string
|
|
94
|
-
readonly family: string
|
|
95
|
-
readonly vendor: string
|
|
96
|
-
readonly name: string
|
|
97
|
-
readonly size: string
|
|
98
|
-
readonly quantization?: string
|
|
99
|
-
readonly outputParserRegex?: string
|
|
100
|
-
readonly state: ModelDownloadState
|
|
101
|
-
}
|
|
102
|
-
|
|
103
89
|
export interface Message {
|
|
104
90
|
role: Role
|
|
105
91
|
content: string
|
package/src/napi/uzu.js
CHANGED
|
@@ -21,20 +21,19 @@ try {
|
|
|
21
21
|
|
|
22
22
|
// Re-export all runtime exports
|
|
23
23
|
const {
|
|
24
|
+
ChatSession,
|
|
24
25
|
Engine,
|
|
25
26
|
ModelDownloadHandle,
|
|
26
27
|
ProgressStream,
|
|
27
28
|
ProgressUpdate,
|
|
28
|
-
Session,
|
|
29
29
|
FinishReason,
|
|
30
30
|
ModelDownloadPhase,
|
|
31
31
|
ModelType,
|
|
32
32
|
Role,
|
|
33
33
|
version,
|
|
34
|
+
ChatModel,
|
|
34
35
|
ClassificationFeature,
|
|
35
|
-
CloudModel,
|
|
36
36
|
Config,
|
|
37
|
-
LocalModel,
|
|
38
37
|
Message,
|
|
39
38
|
ModelDownloadState,
|
|
40
39
|
Output,
|
|
@@ -58,20 +57,19 @@ const {
|
|
|
58
57
|
} = nativeBinding;
|
|
59
58
|
|
|
60
59
|
module.exports = {
|
|
60
|
+
ChatSession,
|
|
61
61
|
Engine,
|
|
62
62
|
ModelDownloadHandle,
|
|
63
63
|
ProgressStream,
|
|
64
64
|
ProgressUpdate,
|
|
65
|
-
Session,
|
|
66
65
|
FinishReason,
|
|
67
66
|
ModelDownloadPhase,
|
|
68
67
|
ModelType,
|
|
69
68
|
Role,
|
|
70
69
|
version,
|
|
70
|
+
ChatModel,
|
|
71
71
|
ClassificationFeature,
|
|
72
|
-
CloudModel,
|
|
73
72
|
Config,
|
|
74
|
-
LocalModel,
|
|
75
73
|
Message,
|
|
76
74
|
ModelDownloadState,
|
|
77
75
|
Output,
|
package/src/napi/uzu.mjs
CHANGED
|
@@ -21,20 +21,19 @@ try {
|
|
|
21
21
|
|
|
22
22
|
// Re-export all runtime exports as named exports
|
|
23
23
|
export const {
|
|
24
|
+
ChatSession,
|
|
24
25
|
Engine,
|
|
25
26
|
ModelDownloadHandle,
|
|
26
27
|
ProgressStream,
|
|
27
28
|
ProgressUpdate,
|
|
28
|
-
Session,
|
|
29
29
|
FinishReason,
|
|
30
30
|
ModelDownloadPhase,
|
|
31
31
|
ModelType,
|
|
32
32
|
Role,
|
|
33
33
|
version,
|
|
34
|
+
ChatModel,
|
|
34
35
|
ClassificationFeature,
|
|
35
|
-
CloudModel,
|
|
36
36
|
Config,
|
|
37
|
-
LocalModel,
|
|
38
37
|
Message,
|
|
39
38
|
ModelDownloadState,
|
|
40
39
|
Output,
|
package/src/napi/uzu.node
CHANGED
|
Binary file
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.42';
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.42";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.42";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.42';
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/bridging/model.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CloudModel as NapiCloudModel, LocalModel as NapiLocalModel } from "../napi/uzu.mjs";
|
|
2
|
-
import { ModelType } from "./modelType.mjs";
|
|
3
|
-
export declare enum ModelKind {
|
|
4
|
-
Text = "text"
|
|
5
|
-
}
|
|
6
|
-
export declare class Model {
|
|
7
|
-
readonly repoId: string;
|
|
8
|
-
readonly type: ModelType;
|
|
9
|
-
readonly kind: ModelKind;
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly vendor: string;
|
|
12
|
-
readonly quantization: string | null;
|
|
13
|
-
readonly isThinking: boolean;
|
|
14
|
-
private constructor();
|
|
15
|
-
static fromNapiLocalModel(napiLocalModel: NapiLocalModel): Model;
|
|
16
|
-
static fromNapiCloudModel(napiCloudModel: NapiCloudModel): Model;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=model.d.mts.map
|
package/bridging/model.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;OAC9D,EAAE,SAAS,EAAE;AAEpB,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,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B,OAAO;IAkBP,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;IAYhE,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;CAWnE"}
|
package/bridging/model.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CloudModel as NapiCloudModel, LocalModel as NapiLocalModel } from "../napi/uzu.js";
|
|
2
|
-
import { ModelType } from "./modelType.js";
|
|
3
|
-
export declare enum ModelKind {
|
|
4
|
-
Text = "text"
|
|
5
|
-
}
|
|
6
|
-
export declare class Model {
|
|
7
|
-
readonly repoId: string;
|
|
8
|
-
readonly type: ModelType;
|
|
9
|
-
readonly kind: ModelKind;
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly vendor: string;
|
|
12
|
-
readonly quantization: string | null;
|
|
13
|
-
readonly isThinking: boolean;
|
|
14
|
-
private constructor();
|
|
15
|
-
static fromNapiLocalModel(napiLocalModel: NapiLocalModel): Model;
|
|
16
|
-
static fromNapiCloudModel(napiCloudModel: NapiCloudModel): Model;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=model.d.ts.map
|
package/bridging/model.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;OAC9D,EAAE,SAAS,EAAE;AAEpB,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,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B,OAAO;IAkBP,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;IAYhE,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,KAAK;CAWnE"}
|
package/bridging/model.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Model = exports.ModelKind = void 0;
|
|
4
|
-
const modelType_1 = require("./modelType.js");
|
|
5
|
-
var ModelKind;
|
|
6
|
-
(function (ModelKind) {
|
|
7
|
-
ModelKind["Text"] = "text";
|
|
8
|
-
})(ModelKind || (exports.ModelKind = ModelKind = {}));
|
|
9
|
-
class Model {
|
|
10
|
-
constructor(repoId, type, kind, name, vendor, quantization, isThinking) {
|
|
11
|
-
this.repoId = repoId;
|
|
12
|
-
this.type = type;
|
|
13
|
-
this.kind = kind;
|
|
14
|
-
this.name = name;
|
|
15
|
-
this.vendor = vendor;
|
|
16
|
-
this.quantization = quantization;
|
|
17
|
-
this.isThinking = isThinking;
|
|
18
|
-
}
|
|
19
|
-
static fromNapiLocalModel(napiLocalModel) {
|
|
20
|
-
return new Model(napiLocalModel.repoId, modelType_1.ModelType.Local, ModelKind.Text, napiLocalModel.name, napiLocalModel.vendor, napiLocalModel.quantization ?? null, napiLocalModel.outputParserRegex !== undefined);
|
|
21
|
-
}
|
|
22
|
-
static fromNapiCloudModel(napiCloudModel) {
|
|
23
|
-
return new Model(napiCloudModel.repoId, modelType_1.ModelType.Cloud, ModelKind.Text, napiCloudModel.name, napiCloudModel.vendor, null, napiCloudModel.outputParserRegex !== undefined);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.Model = Model;
|
|
27
|
-
//# sourceMappingURL=model.js.map
|
package/bridging/model.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":";;;AACA,8CAAwC;AAExC,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,0BAAa,CAAA;AACjB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAED,MAAa,KAAK;IASd,YACI,MAAc,EACd,IAAe,EACf,IAAe,EACf,IAAY,EACZ,MAAc,EACd,YAA2B,EAC3B,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,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CACZ,cAAc,CAAC,MAAM,EACrB,qBAAS,CAAC,KAAK,EACf,SAAS,CAAC,IAAI,EACd,cAAc,CAAC,IAAI,EACnB,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,YAAY,IAAI,IAAI,EACnC,cAAc,CAAC,iBAAiB,KAAK,SAAS,CACjD,CAAC;IACN,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,cAA8B;QACpD,OAAO,IAAI,KAAK,CACZ,cAAc,CAAC,MAAM,EACrB,qBAAS,CAAC,KAAK,EACf,SAAS,CAAC,IAAI,EACd,cAAc,CAAC,IAAI,EACnB,cAAc,CAAC,MAAM,EACrB,IAAI,EACJ,cAAc,CAAC,iBAAiB,KAAK,SAAS,CACjD,CAAC;IACN,CAAC;CACJ;AAlDD,sBAkDC"}
|
package/bridging/model.mjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ModelType } from "./modelType.mjs";
|
|
2
|
-
export var ModelKind;
|
|
3
|
-
(function (ModelKind) {
|
|
4
|
-
ModelKind["Text"] = "text";
|
|
5
|
-
})(ModelKind || (ModelKind = {}));
|
|
6
|
-
export class Model {
|
|
7
|
-
constructor(repoId, type, kind, name, vendor, quantization, isThinking) {
|
|
8
|
-
this.repoId = repoId;
|
|
9
|
-
this.type = type;
|
|
10
|
-
this.kind = kind;
|
|
11
|
-
this.name = name;
|
|
12
|
-
this.vendor = vendor;
|
|
13
|
-
this.quantization = quantization;
|
|
14
|
-
this.isThinking = isThinking;
|
|
15
|
-
}
|
|
16
|
-
static fromNapiLocalModel(napiLocalModel) {
|
|
17
|
-
return new Model(napiLocalModel.repoId, ModelType.Local, ModelKind.Text, napiLocalModel.name, napiLocalModel.vendor, napiLocalModel.quantization ?? null, napiLocalModel.outputParserRegex !== undefined);
|
|
18
|
-
}
|
|
19
|
-
static fromNapiCloudModel(napiCloudModel) {
|
|
20
|
-
return new Model(napiCloudModel.repoId, ModelType.Cloud, ModelKind.Text, napiCloudModel.name, napiCloudModel.vendor, null, napiCloudModel.outputParserRegex !== undefined);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=model.mjs.map
|
package/bridging/model.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.mjs","sourceRoot":"","sources":["../src/bridging/model.ts"],"names":[],"mappings":"OACO,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAN,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,0BAAa,CAAA;AACjB,CAAC,EAFW,SAAS,KAAT,SAAS,QAEpB;AAED,MAAM,OAAO,KAAK;IASd,YACI,MAAc,EACd,IAAe,EACf,IAAe,EACf,IAAY,EACZ,MAAc,EACd,YAA2B,EAC3B,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,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,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,YAAY,IAAI,IAAI,EACnC,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,IAAI,EACJ,cAAc,CAAC,iBAAiB,KAAK,SAAS,CACjD,CAAC;IACN,CAAC;CACJ"}
|
package/bridging/session.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Session as NapiSession } from "../napi/uzu.mjs";
|
|
2
|
-
import { Input } from "./input.mjs";
|
|
3
|
-
import { Output } from "./output.mjs";
|
|
4
|
-
import { RunConfig } from "./runConfig.mjs";
|
|
5
|
-
export declare class Session {
|
|
6
|
-
private readonly napiSession;
|
|
7
|
-
constructor(napiSession: NapiSession);
|
|
8
|
-
run(input: Input, config?: RunConfig, progress?: (partialOutput: Output) => boolean): Output;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=session.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.mts","sourceRoot":"","sources":["../src/bridging/session.ts"],"names":[],"mappings":"OAAO,EAAwB,OAAO,IAAI,WAAW,EAAE;OAChD,EAAE,KAAK,EAAE;OACT,EAAE,MAAM,EAAE;OACV,EAAE,SAAS,EAAE;AAEpB,qBAAa,OAAO;IAChB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;gBAE9B,WAAW,EAAE,WAAW;IAIpC,GAAG,CACC,KAAK,EAAE,KAAK,EACZ,MAAM,GAAE,SAA+B,EACvC,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAC1D,MAAM;CAOZ"}
|
package/bridging/session.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Session as NapiSession } from "../napi/uzu.js";
|
|
2
|
-
import { Input } from "./input.js";
|
|
3
|
-
import { Output } from "./output.js";
|
|
4
|
-
import { RunConfig } from "./runConfig.js";
|
|
5
|
-
export declare class Session {
|
|
6
|
-
private readonly napiSession;
|
|
7
|
-
constructor(napiSession: NapiSession);
|
|
8
|
-
run(input: Input, config?: RunConfig, progress?: (partialOutput: Output) => boolean): Output;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/bridging/session.ts"],"names":[],"mappings":"OAAO,EAAwB,OAAO,IAAI,WAAW,EAAE;OAChD,EAAE,KAAK,EAAE;OACT,EAAE,MAAM,EAAE;OACV,EAAE,SAAS,EAAE;AAEpB,qBAAa,OAAO;IAChB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;gBAE9B,WAAW,EAAE,WAAW;IAIpC,GAAG,CACC,KAAK,EAAE,KAAK,EACZ,MAAM,GAAE,SAA+B,EACvC,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAC1D,MAAM;CAOZ"}
|
package/bridging/session.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../src/bridging/session.ts"],"names":[],"mappings":";;;AAEA,wCAAkC;AAClC,8CAAwC;AAExC,MAAa,OAAO;IAGhB,YAAY,WAAwB;QAChC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED,GAAG,CACC,KAAY,EACZ,SAAoB,qBAAS,CAAC,OAAO,EAAE,EACvC,WAA+C,GAAG,EAAE,CAAC,IAAI;QAEzD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,CAAC,aAAyB,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7F,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;QAC7E,OAAO,eAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;CACJ;AAlBD,0BAkBC"}
|
package/bridging/session.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.mjs","sourceRoot":"","sources":["../src/bridging/session.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EAAE,SAAS,EAAE;AAEpB,MAAM,OAAO,OAAO;IAGhB,YAAY,WAAwB;QAChC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED,GAAG,CACC,KAAY,EACZ,SAAoB,SAAS,CAAC,OAAO,EAAE,EACvC,WAA+C,GAAG,EAAE,CAAC,IAAI;QAEzD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,CAAC,aAAyB,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7F,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;QAC7E,OAAO,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modelInteractor.d.mts","sourceRoot":"","sources":["../src/interactors/modelInteractor.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE;OACV,EAAE,aAAa,EAAE;OACjB,EAAE,sBAAsB,EAAE;OAE1B,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE;OAET,EAAE,MAAM,EAAE;OACV,EAAE,eAAe,EAAE;OACnB,EAAE,MAAM,EAAE;OAEV,EAAE,YAAY,EAAE;OAChB,EAAE,kBAAkB,EAAE;OACtB,EAAE,UAAU,EAAE,gBAAgB,EAAE;OAChC,EAAE,gBAAgB,EAAE;OACpB,EAAE,iBAAiB,EAAE;AAE5B,qBAAa,eAAgB,YAAW,UAAU,CAAC,KAAK,CAAC;IACrD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM;IAMxF,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC;IAMhC,WAAW,IAAI,kBAAkB;IAUjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,IAAI,GAAG,eAAe;IAsBtF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAKvC,eAAe,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe;IAKlE,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe;IAK5D,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,eAAe;IAOzD,OAAO,IAAI,iBAAiB;IAetB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI/F,eAAe,CACjB,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAC1D,OAAO,CAAC,MAAM,CAAC;CAGrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modelInteractor.d.ts","sourceRoot":"","sources":["../src/interactors/modelInteractor.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE;OACV,EAAE,aAAa,EAAE;OACjB,EAAE,sBAAsB,EAAE;OAE1B,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE;OAET,EAAE,MAAM,EAAE;OACV,EAAE,eAAe,EAAE;OACnB,EAAE,MAAM,EAAE;OAEV,EAAE,YAAY,EAAE;OAChB,EAAE,kBAAkB,EAAE;OACtB,EAAE,UAAU,EAAE,gBAAgB,EAAE;OAChC,EAAE,gBAAgB,EAAE;OACpB,EAAE,iBAAiB,EAAE;AAE5B,qBAAa,eAAgB,YAAW,UAAU,CAAC,KAAK,CAAC;IACrD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM;IAMxF,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC;IAMhC,WAAW,IAAI,kBAAkB;IAUjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,IAAI,GAAG,eAAe;IAsBtF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAKvC,eAAe,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe;IAKlE,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe;IAK5D,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,eAAe;IAOzD,OAAO,IAAI,iBAAiB;IAetB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI/F,eAAe,CACjB,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAC1D,OAAO,CAAC,MAAM,CAAC;CAGrB"}
|