@zimtsui/iterflow 0.0.5 → 0.0.7
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 +24 -31
- package/build/opteva.d.ts +38 -41
- package/build/opteva.js +159 -67
- package/build/opteva.js.map +1 -1
- package/build/test.d.ts +1 -0
- package/build/test.js +281 -0
- package/build/test.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ import { Opposition, Optimization, Rejection } from '@zimtsui/iterflow';
|
|
|
13
13
|
import OpenAI from 'openai';
|
|
14
14
|
declare const openai: OpenAI;
|
|
15
15
|
|
|
16
|
-
export async function *optimize(problem: string): Optimization<string> {
|
|
16
|
+
export async function *optimize(problem: string): Optimization.Raw<string> {
|
|
17
17
|
const messages: OpenAI.ChatCompletionMessageParam[] = [
|
|
18
18
|
{
|
|
19
19
|
role: 'system',
|
|
@@ -28,7 +28,7 @@ export async function *optimize(problem: string): Optimization<string> {
|
|
|
28
28
|
const completion = await openai.chat.completions.create({ model: 'gpt-4o', messages });
|
|
29
29
|
messages.push(completion.choices[0]!.message);
|
|
30
30
|
if (completion.choices[0]!.message.content! === 'OPPOSE')
|
|
31
|
-
return yield
|
|
31
|
+
return yield new Opposition('My answer is correct.');
|
|
32
32
|
else
|
|
33
33
|
return yield completion.choices[0]!.message.content!;
|
|
34
34
|
} catch (e) {
|
|
@@ -48,8 +48,8 @@ import { Evaluation, Rejection, Opposition } from '@zimtsui/iterflow';
|
|
|
48
48
|
import OpenAI from 'openai';
|
|
49
49
|
declare const openai: OpenAI;
|
|
50
50
|
|
|
51
|
-
export async function *evaluate(problem: string): Evaluation<string> {
|
|
52
|
-
let draft = yield
|
|
51
|
+
export async function *evaluate(problem: string): Evaluation.Raw<string> {
|
|
52
|
+
let draft = yield new Evaluation.FirstYield();
|
|
53
53
|
const messages: OpenAI.ChatCompletionMessageParam[] = [
|
|
54
54
|
{
|
|
55
55
|
role: 'system',
|
|
@@ -63,28 +63,18 @@ export async function *evaluate(problem: string): Evaluation<string> {
|
|
|
63
63
|
for (;;) try {
|
|
64
64
|
const completion = await openai.chat.completions.create({ model: 'gpt-4o', messages });
|
|
65
65
|
messages.push(completion.choices[0]!.message);
|
|
66
|
-
if (completion.choices[0]!.message.content === 'ACCEPT')
|
|
67
|
-
else
|
|
68
|
-
draft = yield draft;
|
|
66
|
+
if (completion.choices[0]!.message.content === 'ACCEPT') draft = yield draft;
|
|
67
|
+
else draft = yield new Rejection(completion.choices[0]!.message.content!);
|
|
69
68
|
messages.push({
|
|
70
69
|
role: 'user',
|
|
71
|
-
content: `The answer is
|
|
70
|
+
content: `The answer is updated: ${draft}\n\nPlease examine it again.`,
|
|
72
71
|
});
|
|
73
72
|
} catch (e) {
|
|
74
|
-
if (e instanceof
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
content: `The answer is revised: ${draft}\n\nPlease examine it again.`,
|
|
80
|
-
});
|
|
81
|
-
} catch (e) {
|
|
82
|
-
if (e instanceof Opposition) {} else throw e;
|
|
83
|
-
messages.push({
|
|
84
|
-
role: 'user',
|
|
85
|
-
content: `Your rejection is opposed: ${e.message}\n\nPlease examine it again.`,
|
|
86
|
-
});
|
|
87
|
-
}
|
|
73
|
+
if (e instanceof Opposition) {} else throw e;
|
|
74
|
+
messages.push({
|
|
75
|
+
role: 'user',
|
|
76
|
+
content: `Your rejection is opposed: ${e.message}\n\nPlease examine it again.`,
|
|
77
|
+
});
|
|
88
78
|
}
|
|
89
79
|
}
|
|
90
80
|
```
|
|
@@ -95,21 +85,21 @@ export async function *evaluate(problem: string): Evaluation<string> {
|
|
|
95
85
|
import { Optimization, Evaluation, opteva, Rejection } from '@zimtsui/iterflow';
|
|
96
86
|
import { optimize } from './optimize.ts';
|
|
97
87
|
import { evaluate } from './evaluate.ts';
|
|
98
|
-
const evaluate1: (problem: string) => Evaluation<string, string> = evaluate;
|
|
99
|
-
declare const evaluate2: (problem: string) => Evaluation<string, number>;
|
|
100
|
-
declare const evaluate3: (problem: string) => Evaluation<number, number>;
|
|
88
|
+
const evaluate1: (problem: string) => Evaluation.Raw<string, string> = evaluate;
|
|
89
|
+
declare const evaluate2: (problem: string) => Evaluation.Raw<string, number>;
|
|
90
|
+
declare const evaluate3: (problem: string) => Evaluation.Raw<number, number>;
|
|
101
91
|
|
|
102
92
|
export async function workflow(problem: string): Promise<number> {
|
|
103
93
|
await using optimization = Optimization.Cache.from(optimize(problem));
|
|
104
|
-
await using snapshot0 = Optimization.Snapshot.from(optimization);
|
|
105
94
|
await using evaluation1 = await Evaluation.Initialized.from(evaluate1(problem));
|
|
106
95
|
await using evaluation2 = await Evaluation.Initialized.from(evaluate2(problem));
|
|
107
96
|
await using evaluation3 = await Evaluation.Initialized.from(evaluate3(problem));
|
|
108
97
|
for (;;) try {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
98
|
+
let snapshotString = Optimization.Snapshot.from(optimization);
|
|
99
|
+
snapshotString = await opteva(snapshotString, evaluation1);
|
|
100
|
+
let snapshotNumber = await opteva(snapshotString, evaluation2);
|
|
101
|
+
snapshotNumber = await opteva(snapshotNumber, evaluation3);
|
|
102
|
+
return await snapshotNumber.next().then(r => r.value);
|
|
113
103
|
} catch (e) {
|
|
114
104
|
if (e instanceof Rejection) {} else throw e;
|
|
115
105
|
}
|
|
@@ -122,6 +112,9 @@ export async function workflow(problem: string): Promise<number> {
|
|
|
122
112
|
classDiagram
|
|
123
113
|
|
|
124
114
|
Optimization <|.. Optimization.Cache
|
|
125
|
-
|
|
115
|
+
Optimization.Raw <|.. Optimization
|
|
126
116
|
class Optimization.Snapshot
|
|
117
|
+
|
|
118
|
+
Evaluation.Raw <|.. Evaluation
|
|
119
|
+
class Evaluation.Initialized
|
|
127
120
|
```
|
package/build/opteva.d.ts
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { Rejection, Opposition } from './exceptions.ts';
|
|
2
|
-
export interface Optimization<draft> extends AsyncGenerator<draft, never, never> {
|
|
3
|
-
next(...values: [] | [never]): Promise<
|
|
4
|
-
|
|
5
|
-
* @throws {@link Opposition}
|
|
6
|
-
*/
|
|
7
|
-
throw(e: Rejection): Promise<IteratorResult<draft, never>>;
|
|
2
|
+
export interface Optimization<draft> extends AsyncGenerator<Awaited<draft> | Opposition, never, never> {
|
|
3
|
+
next(...values: [] | [never]): Promise<IteratorYieldResult<Awaited<draft>>>;
|
|
4
|
+
throw(e: Rejection): Promise<IteratorYieldResult<Awaited<draft> | Opposition>>;
|
|
8
5
|
}
|
|
9
6
|
export declare namespace Optimization {
|
|
10
|
-
interface
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
interface Raw<draft> extends AsyncGenerator<Awaited<draft> | Opposition, never, never> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @param raw0 Ownership transferred.
|
|
11
|
+
*/
|
|
12
|
+
function ensure<draft>(raw0: Optimization.Raw<draft>): Optimization<draft>;
|
|
13
|
+
interface Cache<draft> extends AsyncGenerator<Awaited<draft> | Opposition, never, void> {
|
|
14
|
+
next(...values: [] | [void]): Promise<IteratorYieldResult<Awaited<draft>>>;
|
|
15
|
+
throw(e: Rejection): Promise<IteratorYieldResult<Awaited<draft> | Opposition>>;
|
|
16
16
|
}
|
|
17
17
|
namespace Cache {
|
|
18
|
+
interface Raw<draft> extends AsyncGenerator<Awaited<draft> | Opposition, never, void> {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @param raw0 Ownership transferred.
|
|
22
|
+
*/
|
|
23
|
+
function ensure<draft>(raw0: Optimization.Cache.Raw<draft>): Optimization.Cache<draft>;
|
|
18
24
|
/**
|
|
19
25
|
* @param raw0 Ownership transferred.
|
|
20
26
|
*/
|
|
21
|
-
function from<draft>(raw0: Optimization<draft>): Optimization.Cache<draft>;
|
|
27
|
+
function from<draft>(raw0: Optimization.Raw<draft>): Optimization.Cache<draft>;
|
|
22
28
|
}
|
|
23
|
-
interface Snapshot<draft> extends AsyncGenerator<draft, never, void> {
|
|
24
|
-
next(...values: [] | [void]): Promise<
|
|
29
|
+
interface Snapshot<draft> extends AsyncGenerator<Awaited<draft> | Opposition, never, void> {
|
|
30
|
+
next(...values: [] | [void]): Promise<IteratorYieldResult<Awaited<draft>>>;
|
|
25
31
|
/**
|
|
26
32
|
* @throws {@link Rejection}
|
|
27
33
|
*/
|
|
28
|
-
throw(e: Rejection): Promise<
|
|
34
|
+
throw(e: Rejection): Promise<IteratorYieldResult<Opposition>>;
|
|
29
35
|
}
|
|
30
36
|
namespace Snapshot {
|
|
31
37
|
/**
|
|
@@ -35,41 +41,32 @@ export declare namespace Optimization {
|
|
|
35
41
|
/**
|
|
36
42
|
* @param opt Ownership NOT transferred.
|
|
37
43
|
*/
|
|
38
|
-
function recover<input, output>(opt: Optimization.Snapshot<input>, draft: output): Optimization.Snapshot<output>;
|
|
44
|
+
function recover<input, output>(opt: Optimization.Snapshot<input>, draft: Awaited<output>): Optimization.Snapshot<output>;
|
|
39
45
|
}
|
|
40
46
|
}
|
|
41
|
-
export interface Evaluation<input, output = input> extends AsyncGenerator<output, never, input> {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
next(...values: []): Promise<IteratorResult<output, never>>;
|
|
46
|
-
/**
|
|
47
|
-
* @throws {@link Rejection}
|
|
48
|
-
*/
|
|
49
|
-
next(...values: [input]): Promise<IteratorResult<output, never>>;
|
|
50
|
-
/**
|
|
51
|
-
* @throws {@link Rejection}
|
|
52
|
-
*/
|
|
53
|
-
throw(e: Opposition): Promise<IteratorResult<output, never>>;
|
|
47
|
+
export interface Evaluation<input, output = input> extends AsyncGenerator<Awaited<output> | Rejection, never, input> {
|
|
48
|
+
next(...values: []): Promise<IteratorYieldResult<Evaluation.FirstYield>>;
|
|
49
|
+
next(...values: [input]): Promise<IteratorYieldResult<Awaited<output> | Rejection>>;
|
|
50
|
+
throw(e: Opposition): Promise<IteratorYieldResult<Awaited<output> | Rejection>>;
|
|
54
51
|
}
|
|
55
52
|
export declare namespace Evaluation {
|
|
53
|
+
interface Raw<input, output = input> extends AsyncGenerator<Awaited<output> | Rejection | FirstYield, never, input> {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @param raw0 Ownership transferred.
|
|
57
|
+
*/
|
|
58
|
+
function ensure<input, output = input>(raw0: Evaluation.Raw<input, output>): Evaluation<input, output>;
|
|
56
59
|
class FirstYield {
|
|
57
60
|
}
|
|
58
|
-
interface Initialized<input, output = input> extends AsyncGenerator<output, never, input> {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*/
|
|
62
|
-
next(...values: [input]): Promise<IteratorResult<output, never>>;
|
|
63
|
-
/**
|
|
64
|
-
* @throws {@link Rejection}
|
|
65
|
-
*/
|
|
66
|
-
throw(e: Opposition): Promise<IteratorResult<output, never>>;
|
|
61
|
+
interface Initialized<input, output = input> extends AsyncGenerator<Awaited<output> | Rejection, never, input> {
|
|
62
|
+
next(...values: [input]): Promise<IteratorResult<Awaited<output> | Rejection, never>>;
|
|
63
|
+
throw(e: Opposition): Promise<IteratorResult<Awaited<output> | Rejection, never>>;
|
|
67
64
|
}
|
|
68
65
|
namespace Initialized {
|
|
69
66
|
/**
|
|
70
|
-
* @param
|
|
67
|
+
* @param raw0 Ownership transferred.
|
|
71
68
|
*/
|
|
72
|
-
function from<input, output = input>(
|
|
69
|
+
function from<input, output = input>(raw0: Evaluation.Raw<input, output>): Promise<Evaluation.Initialized<input, output>>;
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
/**
|
package/build/opteva.js
CHANGED
|
@@ -53,47 +53,111 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
53
53
|
import { Rejection, Opposition } from "./exceptions.js";
|
|
54
54
|
export var Optimization;
|
|
55
55
|
(function (Optimization) {
|
|
56
|
+
/**
|
|
57
|
+
* @param raw0 Ownership transferred.
|
|
58
|
+
*/
|
|
59
|
+
function ensure(raw0) {
|
|
60
|
+
return {
|
|
61
|
+
async next(...values) {
|
|
62
|
+
const result = await raw0.next(...values);
|
|
63
|
+
if (result.done)
|
|
64
|
+
throw new Error(undefined, { cause: result });
|
|
65
|
+
const output = result.value;
|
|
66
|
+
if (output instanceof Opposition)
|
|
67
|
+
throw new Error(undefined, { cause: output });
|
|
68
|
+
return { value: output, done: false };
|
|
69
|
+
},
|
|
70
|
+
async throw(e) {
|
|
71
|
+
const result = await raw0.throw(e);
|
|
72
|
+
if (result.done)
|
|
73
|
+
throw new Error();
|
|
74
|
+
return { value: result.value, done: false };
|
|
75
|
+
},
|
|
76
|
+
return(value) {
|
|
77
|
+
return raw0.return(value);
|
|
78
|
+
},
|
|
79
|
+
[Symbol.asyncIterator]() {
|
|
80
|
+
return this;
|
|
81
|
+
},
|
|
82
|
+
[Symbol.asyncDispose]() {
|
|
83
|
+
return raw0?.[Symbol.asyncDispose]();
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
Optimization.ensure = ensure;
|
|
56
88
|
let Cache;
|
|
57
89
|
(function (Cache) {
|
|
58
90
|
/**
|
|
59
91
|
* @param raw0 Ownership transferred.
|
|
60
92
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
93
|
+
function ensure(raw0) {
|
|
94
|
+
return {
|
|
95
|
+
async next(...values) {
|
|
96
|
+
const result = await raw0.next(...values);
|
|
97
|
+
if (result.done)
|
|
98
|
+
throw new Error(undefined, { cause: result });
|
|
99
|
+
const output = result.value;
|
|
100
|
+
if (output instanceof Opposition)
|
|
101
|
+
throw new Error(undefined, { cause: output });
|
|
102
|
+
return { value: output, done: false };
|
|
103
|
+
},
|
|
104
|
+
async throw(e) {
|
|
105
|
+
const result = await raw0.throw(e);
|
|
106
|
+
if (result.done)
|
|
107
|
+
throw new Error(undefined, { cause: result });
|
|
108
|
+
return { value: result.value, done: false };
|
|
109
|
+
},
|
|
110
|
+
return(value) {
|
|
111
|
+
return raw0.return(value);
|
|
112
|
+
},
|
|
113
|
+
[Symbol.asyncIterator]() {
|
|
114
|
+
return this;
|
|
115
|
+
},
|
|
116
|
+
[Symbol.asyncDispose]() {
|
|
117
|
+
return raw0?.[Symbol.asyncDispose]();
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
Cache.ensure = ensure;
|
|
122
|
+
/**
|
|
123
|
+
* @param raw0 Ownership transferred.
|
|
124
|
+
*/
|
|
125
|
+
function from(raw0) {
|
|
126
|
+
/**
|
|
127
|
+
* @param raw0 Ownership transferred.
|
|
128
|
+
*/
|
|
129
|
+
async function* from(raw0) {
|
|
130
|
+
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
131
|
+
try {
|
|
132
|
+
const raw = __addDisposableResource(env_1, Optimization.ensure(raw0), true);
|
|
133
|
+
let draft = await raw.next().then(r => r.value);
|
|
134
|
+
let output = draft;
|
|
135
|
+
for (;;)
|
|
76
136
|
try {
|
|
77
|
-
|
|
78
|
-
output =
|
|
137
|
+
yield output;
|
|
138
|
+
output = draft;
|
|
79
139
|
}
|
|
80
140
|
catch (e) {
|
|
81
|
-
if (e instanceof
|
|
141
|
+
if (e instanceof Rejection) { }
|
|
82
142
|
else
|
|
83
143
|
throw e;
|
|
84
|
-
output =
|
|
144
|
+
output = await raw.throw(e).then(r => r.value);
|
|
145
|
+
if (output instanceof Opposition) { }
|
|
146
|
+
else
|
|
147
|
+
draft = output;
|
|
85
148
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
149
|
+
}
|
|
150
|
+
catch (e_1) {
|
|
151
|
+
env_1.error = e_1;
|
|
152
|
+
env_1.hasError = true;
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
const result_1 = __disposeResources(env_1);
|
|
156
|
+
if (result_1)
|
|
157
|
+
await result_1;
|
|
158
|
+
}
|
|
96
159
|
}
|
|
160
|
+
return Optimization.Cache.ensure(from(Optimization.ensure(raw0)));
|
|
97
161
|
}
|
|
98
162
|
Cache.from = from;
|
|
99
163
|
})(Cache = Optimization.Cache || (Optimization.Cache = {}));
|
|
@@ -108,7 +172,9 @@ export var Optimization;
|
|
|
108
172
|
return opt.next(...values);
|
|
109
173
|
},
|
|
110
174
|
async throw(e) {
|
|
111
|
-
await opt.throw(e).then(r => r.value);
|
|
175
|
+
const output = await opt.throw(e).then(r => r.value);
|
|
176
|
+
if (output instanceof Opposition)
|
|
177
|
+
return { value: output, done: false };
|
|
112
178
|
throw e;
|
|
113
179
|
},
|
|
114
180
|
return(value) {
|
|
@@ -147,24 +213,71 @@ export var Optimization;
|
|
|
147
213
|
})(Optimization || (Optimization = {}));
|
|
148
214
|
export var Evaluation;
|
|
149
215
|
(function (Evaluation) {
|
|
216
|
+
/**
|
|
217
|
+
* @param raw0 Ownership transferred.
|
|
218
|
+
*/
|
|
219
|
+
function ensure(raw0) {
|
|
220
|
+
async function next(...values) {
|
|
221
|
+
if (values.length) {
|
|
222
|
+
const result = await raw0.next(...values);
|
|
223
|
+
if (result.done)
|
|
224
|
+
throw new Error(undefined, { cause: result });
|
|
225
|
+
const output = result.value;
|
|
226
|
+
if (output instanceof Evaluation.FirstYield)
|
|
227
|
+
throw new Error(undefined, { cause: output });
|
|
228
|
+
return { value: result.value, done: false };
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
const result = await raw0.next();
|
|
232
|
+
if (result.done)
|
|
233
|
+
throw new Error(undefined, { cause: result });
|
|
234
|
+
const output = result.value;
|
|
235
|
+
if (output instanceof Evaluation.FirstYield)
|
|
236
|
+
return { value: output, done: false };
|
|
237
|
+
throw new Error(undefined, { cause: output });
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return {
|
|
241
|
+
next,
|
|
242
|
+
async throw(e) {
|
|
243
|
+
const result = await raw0.throw(e);
|
|
244
|
+
if (result.done)
|
|
245
|
+
throw new Error(undefined, { cause: result });
|
|
246
|
+
const output = result.value;
|
|
247
|
+
if (output instanceof Evaluation.FirstYield)
|
|
248
|
+
throw new Error(undefined, { cause: output });
|
|
249
|
+
return { value: output, done: false };
|
|
250
|
+
},
|
|
251
|
+
async return(value) {
|
|
252
|
+
const result = await raw0.return(value);
|
|
253
|
+
if (result.done)
|
|
254
|
+
return { value: await value, done: true };
|
|
255
|
+
const output = result.value;
|
|
256
|
+
if (output instanceof Evaluation.FirstYield)
|
|
257
|
+
throw new Error(undefined, { cause: output });
|
|
258
|
+
return { value: output, done: false };
|
|
259
|
+
},
|
|
260
|
+
[Symbol.asyncIterator]() {
|
|
261
|
+
return this;
|
|
262
|
+
},
|
|
263
|
+
[Symbol.asyncDispose]() {
|
|
264
|
+
return raw0?.[Symbol.asyncDispose]();
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
Evaluation.ensure = ensure;
|
|
150
269
|
class FirstYield {
|
|
151
270
|
}
|
|
152
271
|
Evaluation.FirstYield = FirstYield;
|
|
153
272
|
let Initialized;
|
|
154
273
|
(function (Initialized) {
|
|
155
274
|
/**
|
|
156
|
-
* @param
|
|
275
|
+
* @param raw0 Ownership transferred.
|
|
157
276
|
*/
|
|
158
|
-
async function from(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
catch (e) {
|
|
163
|
-
if (e instanceof Evaluation.FirstYield)
|
|
164
|
-
return eva;
|
|
165
|
-
else
|
|
166
|
-
throw e;
|
|
167
|
-
}
|
|
277
|
+
async function from(raw0) {
|
|
278
|
+
const eva = Evaluation.ensure(raw0);
|
|
279
|
+
await eva.next().then(r => r.value);
|
|
280
|
+
return eva;
|
|
168
281
|
}
|
|
169
282
|
Initialized.from = from;
|
|
170
283
|
})(Initialized = Evaluation.Initialized || (Evaluation.Initialized = {}));
|
|
@@ -174,33 +287,12 @@ export var Evaluation;
|
|
|
174
287
|
*/
|
|
175
288
|
export async function opteva(opt, eva) {
|
|
176
289
|
const draft = await opt.next().then(r => r.value);
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return Optimization.Snapshot.recover(opt, output);
|
|
180
|
-
}
|
|
181
|
-
catch (e) {
|
|
182
|
-
if (e instanceof Rejection) { }
|
|
290
|
+
for (let output = await eva.next(draft).then(r => r.value);;) {
|
|
291
|
+
if (output instanceof Rejection) { }
|
|
183
292
|
else
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
await opt.throw(rejection); // Either Opposition or Rejection thrown outgoing from opt.
|
|
188
|
-
}
|
|
189
|
-
catch (e) {
|
|
190
|
-
if (e instanceof Opposition) { }
|
|
191
|
-
else
|
|
192
|
-
throw e;
|
|
193
|
-
try {
|
|
194
|
-
const output = await eva.throw(e).then(r => r.value);
|
|
195
|
-
return Optimization.Snapshot.recover(opt, output);
|
|
196
|
-
}
|
|
197
|
-
catch (e) {
|
|
198
|
-
if (e instanceof Rejection) { }
|
|
199
|
-
else
|
|
200
|
-
throw e;
|
|
201
|
-
rejection = e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
293
|
+
return Optimization.Snapshot.recover(opt, output);
|
|
294
|
+
const input = await opt.throw(output).then(r => r.value);
|
|
295
|
+
output = await eva.throw(input).then(r => r.value);
|
|
204
296
|
}
|
|
205
297
|
}
|
|
206
298
|
//# sourceMappingURL=opteva.js.map
|
package/build/opteva.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opteva.js","sourceRoot":"","sources":["../src/opteva.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAO,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC3F,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACzD,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;AACL,CAAC"}
|
package/build/test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/test.js
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
2
|
+
if (value !== null && value !== void 0) {
|
|
3
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
4
|
+
var dispose, inner;
|
|
5
|
+
if (async) {
|
|
6
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
7
|
+
dispose = value[Symbol.asyncDispose];
|
|
8
|
+
}
|
|
9
|
+
if (dispose === void 0) {
|
|
10
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
11
|
+
dispose = value[Symbol.dispose];
|
|
12
|
+
if (async) inner = dispose;
|
|
13
|
+
}
|
|
14
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
15
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
16
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
17
|
+
}
|
|
18
|
+
else if (async) {
|
|
19
|
+
env.stack.push({ async: true });
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
24
|
+
return function (env) {
|
|
25
|
+
function fail(e) {
|
|
26
|
+
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
27
|
+
env.hasError = true;
|
|
28
|
+
}
|
|
29
|
+
var r, s = 0;
|
|
30
|
+
function next() {
|
|
31
|
+
while (r = env.stack.pop()) {
|
|
32
|
+
try {
|
|
33
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
34
|
+
if (r.dispose) {
|
|
35
|
+
var result = r.dispose.call(r.value);
|
|
36
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
37
|
+
}
|
|
38
|
+
else s |= 1;
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
fail(e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
45
|
+
if (env.hasError) throw env.error;
|
|
46
|
+
}
|
|
47
|
+
return next();
|
|
48
|
+
};
|
|
49
|
+
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
50
|
+
var e = new Error(message);
|
|
51
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
|
+
});
|
|
53
|
+
import test from 'ava';
|
|
54
|
+
import { Evaluation, Optimization, Opposition, Rejection, opteva, } from "./exports.js";
|
|
55
|
+
test('Evaluation.Initialized.from rejects evaluators that miss the sentinel first yield', async (t) => {
|
|
56
|
+
async function* raw() {
|
|
57
|
+
yield 'not-a-sentinel';
|
|
58
|
+
throw new Error('unreachable');
|
|
59
|
+
}
|
|
60
|
+
const error = await t.throwsAsync(async () => {
|
|
61
|
+
await Evaluation.Initialized.from(raw());
|
|
62
|
+
});
|
|
63
|
+
t.true(error instanceof Error);
|
|
64
|
+
if (error instanceof Error)
|
|
65
|
+
t.is(error.cause, 'not-a-sentinel');
|
|
66
|
+
});
|
|
67
|
+
test('Optimization.Cache.from replays the latest accepted draft and preserves it after opposition', async (t) => {
|
|
68
|
+
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
69
|
+
try {
|
|
70
|
+
const seenRejections = [];
|
|
71
|
+
async function* raw() {
|
|
72
|
+
let draft = 'draft-1';
|
|
73
|
+
for (;;)
|
|
74
|
+
try {
|
|
75
|
+
yield draft;
|
|
76
|
+
}
|
|
77
|
+
catch (e) {
|
|
78
|
+
if (!(e instanceof Rejection))
|
|
79
|
+
throw e;
|
|
80
|
+
seenRejections.push(e.message);
|
|
81
|
+
if (e.message === 'revise')
|
|
82
|
+
draft = 'draft-2';
|
|
83
|
+
else if (e.message === 'wrong')
|
|
84
|
+
yield new Opposition('keep draft-2');
|
|
85
|
+
else
|
|
86
|
+
throw e;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const cache = __addDisposableResource(env_1, Optimization.Cache.from(raw()), true);
|
|
90
|
+
t.is(await cache.next().then(r => r.value), 'draft-1');
|
|
91
|
+
t.is(await cache.next().then(r => r.value), 'draft-1');
|
|
92
|
+
t.is(await cache.throw(new Rejection('revise')).then(r => r.value), 'draft-2');
|
|
93
|
+
t.is(await cache.next().then(r => r.value), 'draft-2');
|
|
94
|
+
const opposition = await cache.throw(new Rejection('wrong')).then(r => r.value);
|
|
95
|
+
t.true(opposition instanceof Opposition);
|
|
96
|
+
if (opposition instanceof Opposition)
|
|
97
|
+
t.is(opposition.message, 'keep draft-2');
|
|
98
|
+
t.is(await cache.next().then(r => r.value), 'draft-2');
|
|
99
|
+
t.deepEqual(seenRejections, ['revise', 'wrong']);
|
|
100
|
+
}
|
|
101
|
+
catch (e_1) {
|
|
102
|
+
env_1.error = e_1;
|
|
103
|
+
env_1.hasError = true;
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
const result_1 = __disposeResources(env_1);
|
|
107
|
+
if (result_1)
|
|
108
|
+
await result_1;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
test('Optimization.Snapshot.from rethrows revisions and only returns oppositions', async (t) => {
|
|
112
|
+
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
113
|
+
try {
|
|
114
|
+
async function* raw() {
|
|
115
|
+
let draft = 'draft-1';
|
|
116
|
+
for (;;)
|
|
117
|
+
try {
|
|
118
|
+
yield draft;
|
|
119
|
+
}
|
|
120
|
+
catch (e) {
|
|
121
|
+
if (!(e instanceof Rejection))
|
|
122
|
+
throw e;
|
|
123
|
+
if (e.message === 'revise')
|
|
124
|
+
draft = 'draft-2';
|
|
125
|
+
else if (e.message === 'wrong')
|
|
126
|
+
yield new Opposition('keep draft-2');
|
|
127
|
+
else
|
|
128
|
+
throw e;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const cache = __addDisposableResource(env_2, Optimization.Cache.from(raw()), true);
|
|
132
|
+
const snapshot = Optimization.Snapshot.from(cache);
|
|
133
|
+
t.is(await snapshot.next().then(r => r.value), 'draft-1');
|
|
134
|
+
const revision = new Rejection('revise');
|
|
135
|
+
let thrown;
|
|
136
|
+
try {
|
|
137
|
+
await snapshot.throw(revision);
|
|
138
|
+
}
|
|
139
|
+
catch (e) {
|
|
140
|
+
thrown = e;
|
|
141
|
+
}
|
|
142
|
+
t.is(thrown, revision);
|
|
143
|
+
t.is(await snapshot.next().then(r => r.value), 'draft-2');
|
|
144
|
+
const opposition = await snapshot.throw(new Rejection('wrong')).then(r => r.value);
|
|
145
|
+
t.true(opposition instanceof Opposition);
|
|
146
|
+
if (opposition instanceof Opposition)
|
|
147
|
+
t.is(opposition.message, 'keep draft-2');
|
|
148
|
+
}
|
|
149
|
+
catch (e_2) {
|
|
150
|
+
env_2.error = e_2;
|
|
151
|
+
env_2.hasError = true;
|
|
152
|
+
}
|
|
153
|
+
finally {
|
|
154
|
+
const result_2 = __disposeResources(env_2);
|
|
155
|
+
if (result_2)
|
|
156
|
+
await result_2;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
test('opteva returns a recovered snapshot when the evaluator accepts immediately', async (t) => {
|
|
160
|
+
const env_3 = { stack: [], error: void 0, hasError: false };
|
|
161
|
+
try {
|
|
162
|
+
async function* optimize() {
|
|
163
|
+
yield 'draft';
|
|
164
|
+
throw new Error('unreachable');
|
|
165
|
+
}
|
|
166
|
+
async function* evaluate() {
|
|
167
|
+
const draft = yield new Evaluation.FirstYield();
|
|
168
|
+
yield draft.length;
|
|
169
|
+
throw new Error('unreachable');
|
|
170
|
+
}
|
|
171
|
+
const optimization = __addDisposableResource(env_3, Optimization.Cache.from(optimize()), true);
|
|
172
|
+
const evaluation = __addDisposableResource(env_3, await Evaluation.Initialized.from(evaluate()), true);
|
|
173
|
+
const snapshot = await opteva(Optimization.Snapshot.from(optimization), evaluation);
|
|
174
|
+
t.is(await snapshot.next().then(r => r.value), 5);
|
|
175
|
+
t.is(await snapshot.next().then(r => r.value), 5);
|
|
176
|
+
}
|
|
177
|
+
catch (e_3) {
|
|
178
|
+
env_3.error = e_3;
|
|
179
|
+
env_3.hasError = true;
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
const result_3 = __disposeResources(env_3);
|
|
183
|
+
if (result_3)
|
|
184
|
+
await result_3;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
test('opteva surfaces a rejection after optimizer revision and succeeds on the next attempt', async (t) => {
|
|
188
|
+
const env_4 = { stack: [], error: void 0, hasError: false };
|
|
189
|
+
try {
|
|
190
|
+
async function* optimize() {
|
|
191
|
+
let draft = 'draft-1';
|
|
192
|
+
for (;;)
|
|
193
|
+
try {
|
|
194
|
+
yield draft;
|
|
195
|
+
}
|
|
196
|
+
catch (e) {
|
|
197
|
+
if (!(e instanceof Rejection))
|
|
198
|
+
throw e;
|
|
199
|
+
if (e.message === 'too short')
|
|
200
|
+
draft = 'draft-2';
|
|
201
|
+
else
|
|
202
|
+
throw e;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
async function* evaluate() {
|
|
206
|
+
let draft = yield new Evaluation.FirstYield();
|
|
207
|
+
draft = yield new Rejection('too short');
|
|
208
|
+
yield draft.toUpperCase();
|
|
209
|
+
throw new Error('unreachable');
|
|
210
|
+
}
|
|
211
|
+
const optimization = __addDisposableResource(env_4, Optimization.Cache.from(optimize()), true);
|
|
212
|
+
const evaluation = __addDisposableResource(env_4, await Evaluation.Initialized.from(evaluate()), true);
|
|
213
|
+
let rejection;
|
|
214
|
+
try {
|
|
215
|
+
await opteva(Optimization.Snapshot.from(optimization), evaluation);
|
|
216
|
+
}
|
|
217
|
+
catch (e) {
|
|
218
|
+
rejection = e;
|
|
219
|
+
}
|
|
220
|
+
t.true(rejection instanceof Rejection);
|
|
221
|
+
if (rejection instanceof Rejection)
|
|
222
|
+
t.is(rejection.message, 'too short');
|
|
223
|
+
const snapshot = await opteva(Optimization.Snapshot.from(optimization), evaluation);
|
|
224
|
+
t.is(await snapshot.next().then(r => r.value), 'DRAFT-2');
|
|
225
|
+
}
|
|
226
|
+
catch (e_4) {
|
|
227
|
+
env_4.error = e_4;
|
|
228
|
+
env_4.hasError = true;
|
|
229
|
+
}
|
|
230
|
+
finally {
|
|
231
|
+
const result_4 = __disposeResources(env_4);
|
|
232
|
+
if (result_4)
|
|
233
|
+
await result_4;
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
test('opteva resolves optimizer opposition through evaluator.throw without restarting', async (t) => {
|
|
237
|
+
const env_5 = { stack: [], error: void 0, hasError: false };
|
|
238
|
+
try {
|
|
239
|
+
async function* optimize() {
|
|
240
|
+
for (;;)
|
|
241
|
+
try {
|
|
242
|
+
yield 'candidate';
|
|
243
|
+
}
|
|
244
|
+
catch (e) {
|
|
245
|
+
if (!(e instanceof Rejection))
|
|
246
|
+
throw e;
|
|
247
|
+
if (e.message === 'wrong')
|
|
248
|
+
yield new Opposition('candidate is valid');
|
|
249
|
+
else
|
|
250
|
+
throw e;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
async function* evaluate() {
|
|
254
|
+
const draft = yield new Evaluation.FirstYield();
|
|
255
|
+
try {
|
|
256
|
+
yield new Rejection('wrong');
|
|
257
|
+
}
|
|
258
|
+
catch (e) {
|
|
259
|
+
if (!(e instanceof Opposition))
|
|
260
|
+
throw e;
|
|
261
|
+
yield `${draft}:${e.message}`;
|
|
262
|
+
throw new Error('unreachable');
|
|
263
|
+
}
|
|
264
|
+
throw new Error('unreachable');
|
|
265
|
+
}
|
|
266
|
+
const optimization = __addDisposableResource(env_5, Optimization.Cache.from(optimize()), true);
|
|
267
|
+
const evaluation = __addDisposableResource(env_5, await Evaluation.Initialized.from(evaluate()), true);
|
|
268
|
+
const snapshot = await opteva(Optimization.Snapshot.from(optimization), evaluation);
|
|
269
|
+
t.is(await snapshot.next().then(r => r.value), 'candidate:candidate is valid');
|
|
270
|
+
}
|
|
271
|
+
catch (e_5) {
|
|
272
|
+
env_5.error = e_5;
|
|
273
|
+
env_5.hasError = true;
|
|
274
|
+
}
|
|
275
|
+
finally {
|
|
276
|
+
const result_5 = __disposeResources(env_5);
|
|
277
|
+
if (result_5)
|
|
278
|
+
await result_5;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
//# sourceMappingURL=test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EACH,UAAU,EACV,YAAY,EACZ,UAAU,EACV,SAAS,EACT,MAAM,GACT,MAAM,cAAc,CAAC;AAEtB,IAAI,CAAC,mFAAmF,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAChG,KAAK,SAAU,CAAC,CAAA,GAAG;QACf,MAAM,gBAAgB,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,KAAK,GAAG,MA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AAC,aAAa,CAAC,CAAC;QACnC,CAAC;QAED,MAAY,YAAY,kCAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAA,CAAC;QAC/D,MAAY,UAAU,kCAAG,MAAM,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAA,CAAC;QAEvE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,CAAC;QAEpF,CAAC,CAAC,EAAE,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,8BAA8B,CAAC,CAAC;;;;;;;;;;;CAClF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../../../usr/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.error.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/exceptions.ts","../src/opteva.ts","../src/exports.ts"],"fileIdsList":[[81,82],[81]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"21524e01f352b6f9d3e835d9ee01f14888746464959bbf18d35fdcf4075b0652","signature":"17432b7db89c1f48cf82c7ecf1ae9750aa7d4fe1d0ab02a1ee66fd731cf11d40"},{"version":"7400d9c2294fa213998d9ca59901aea9da7eacd38ef24265eae5a02c6686fe19","signature":"6c6a7cb23f11b308b0bb3afb441a2cf84ca87f353c0558e40ad69f5734687cbe"},"ff70d9bb166642a653426b9e6327550cee5813121372e8cbbf6e9d299b100df1"],"root":[[81,83]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"experimentalDecorators":true,"module":200,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"outDir":"./","rewriteRelativeImportExtensions":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[83,1],[82,2]],"latestChangedDtsFile":"./exports.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../../../usr/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.error.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../usr/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/exceptions.ts","../src/opteva.ts","../src/exports.ts","../node_modules/ava/types/assertions.d.cts","../node_modules/ava/types/subscribable.d.cts","../node_modules/ava/types/try-fn.d.cts","../node_modules/ava/types/test-fn.d.cts","../node_modules/ava/entrypoints/main.d.mts","../src/test.ts","../node_modules/@types/estree/index.d.ts"],"fileIdsList":[[84,85,86,87],[84,85,86],[87],[81,82],[81],[83,88]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"21524e01f352b6f9d3e835d9ee01f14888746464959bbf18d35fdcf4075b0652","signature":"17432b7db89c1f48cf82c7ecf1ae9750aa7d4fe1d0ab02a1ee66fd731cf11d40"},{"version":"4174465a103eaacd4cd6d44e45ac6c0ce71a470e3248b75ab47f5a4b10e384ab","signature":"2beebd3829ea4902e758e5eda3ce7681e4b8f4327e8a5432211ec49017ec36ed"},"ff70d9bb166642a653426b9e6327550cee5813121372e8cbbf6e9d299b100df1",{"version":"d8750101c0f4631f1632897699ef075c5fc684df5eeee3832c993c948b334dbe","impliedFormat":1},{"version":"00b72e597dcd6ff7bf772918c78c41dc7c68e239af658cf452bff645ebdc485d","impliedFormat":1},{"version":"17b183b69a3dd3cca2505cee7ff70501c574343ad49a385c9acb5b5299e1ba73","impliedFormat":1},{"version":"65971ae48adee73c3f604209b64a4e34e319d7ce25c2ea452cc15b05a2b43db5","impliedFormat":1},{"version":"de8391b91c499acbc09df8d9ba114dc8c44456d54e81ed01211c32a1d6ad94fb","impliedFormat":99},{"version":"fa0825aaad64c246abccb0e5b0f92a6fe1c26df824b34042ae077972cf8fbeac","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1}],"root":[[81,83],89],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"experimentalDecorators":true,"module":200,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"outDir":"./","rewriteRelativeImportExtensions":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[88,1],[87,2],[86,3],[83,4],[82,5],[89,6]],"latestChangedDtsFile":"./test.d.ts","version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc -b ./src/tsconfig.json",
|
|
11
11
|
"clean": "rm -rf ./build",
|
|
12
|
+
"test": "ava ./build/test.js",
|
|
12
13
|
"prepublishOnly": "npm run clean && npm run build"
|
|
13
14
|
},
|
|
14
15
|
"author": "Zim",
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
"@opentelemetry/api": "^1.9.0"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
21
|
+
"ava": "^7.0.0",
|
|
20
22
|
"openai": "^6.29.0"
|
|
21
23
|
},
|
|
22
|
-
"version": "0.0.
|
|
24
|
+
"version": "0.0.7"
|
|
23
25
|
}
|