@xiuper/mpp-core 0.0.2 → 0.2.0
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/Kotlin-DateTime-library-kotlinx-datetime.js +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
|
@@ -21,30 +21,30 @@
|
|
|
21
21
|
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
|
-
var Exception = kotlin_kotlin.$_$.
|
|
24
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.h;
|
|
26
26
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.a2;
|
|
27
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
27
|
+
var captureStack = kotlin_kotlin.$_$.gd;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
29
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
31
31
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.u;
|
|
32
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
32
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
33
33
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
34
34
|
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.i2;
|
|
35
35
|
var forName = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
36
36
|
var isSupported = kotlin_io_ktor_ktor_io.$_$.c1;
|
|
37
|
-
var equals = kotlin_kotlin.$_$.
|
|
38
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
39
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
40
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
41
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
42
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
43
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
44
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
45
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
47
|
-
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
37
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
38
|
+
var FunctionAdapter = kotlin_kotlin.$_$.cd;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
40
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
42
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
43
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
44
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
45
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
46
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
47
|
+
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
48
48
|
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
49
49
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
50
50
|
//endregion
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
configuration = tmp;
|
|
62
62
|
var tmp_0;
|
|
63
63
|
if ($super === VOID) {
|
|
64
|
-
this.
|
|
64
|
+
this.e60(contentType, converter, configuration);
|
|
65
65
|
tmp_0 = Unit_instance;
|
|
66
66
|
} else {
|
|
67
|
-
tmp_0 = $super.
|
|
67
|
+
tmp_0 = $super.e60.call(this, contentType, converter, configuration);
|
|
68
68
|
}
|
|
69
69
|
return tmp_0;
|
|
70
70
|
}
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
return tmp.fa();
|
|
94
94
|
}
|
|
95
95
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
96
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
96
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v4h_1 : defaultCharset;
|
|
97
97
|
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
98
98
|
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
99
99
|
}
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
function Configuration() {
|
|
104
104
|
}
|
|
105
105
|
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
106
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
107
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.cf(HttpHeaders_getInstance().
|
|
106
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v4h_1 : defaultCharset;
|
|
107
|
+
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.cf(HttpHeaders_getInstance().l58_1)).p();
|
|
108
108
|
while (_iterator__ex2g4s.q()) {
|
|
109
|
-
var charset = _iterator__ex2g4s.r().
|
|
109
|
+
var charset = _iterator__ex2g4s.r().ii();
|
|
110
110
|
if (charset === '*')
|
|
111
111
|
return defaultCharset;
|
|
112
112
|
else if (isSupported(Charsets_getInstance(), charset))
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
117
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
118
|
-
this.
|
|
118
|
+
this.g60_1 = function_0;
|
|
119
119
|
}
|
|
120
120
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
|
|
121
|
-
return this.
|
|
121
|
+
return this.g60_1(value, $completion);
|
|
122
122
|
};
|
|
123
123
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
|
|
124
|
-
return this.
|
|
124
|
+
return this.g60_1;
|
|
125
125
|
};
|
|
126
126
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
127
127
|
var tmp;
|
|
@@ -142,10 +142,10 @@
|
|
|
142
142
|
return hashCode(this.v3());
|
|
143
143
|
};
|
|
144
144
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
145
|
+
this.p60_1 = $$this$unsafeFlow;
|
|
146
|
+
this.q60_1 = $charset;
|
|
147
|
+
this.r60_1 = $typeInfo;
|
|
148
|
+
this.s60_1 = $body;
|
|
149
149
|
CoroutineImpl.call(this, resultContinuation);
|
|
150
150
|
}
|
|
151
151
|
protoOf(deserialize$o$collect$slambda).j2w = function (value, $completion) {
|
|
@@ -166,25 +166,25 @@
|
|
|
166
166
|
case 0:
|
|
167
167
|
this.y9_1 = 3;
|
|
168
168
|
var tmp_0 = this;
|
|
169
|
-
tmp_0.
|
|
169
|
+
tmp_0.u60_1 = this.p60_1;
|
|
170
170
|
var tmp_1 = this;
|
|
171
|
-
tmp_1.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
171
|
+
tmp_1.v60_1 = this.t60_1;
|
|
172
|
+
this.w60_1 = this.u60_1;
|
|
173
|
+
this.x60_1 = this.v60_1;
|
|
174
174
|
var tmp_2 = this;
|
|
175
|
-
tmp_2.
|
|
176
|
-
this.
|
|
175
|
+
tmp_2.y60_1 = this.x60_1;
|
|
176
|
+
this.z60_1 = this.y60_1;
|
|
177
177
|
this.x9_1 = 1;
|
|
178
|
-
suspendResult = this.
|
|
178
|
+
suspendResult = this.z60_1.b61(this.q60_1, this.r60_1, this.s60_1, this);
|
|
179
179
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
180
180
|
return suspendResult;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
continue $sm;
|
|
184
184
|
case 1:
|
|
185
|
-
this.
|
|
185
|
+
this.a61_1 = suspendResult;
|
|
186
186
|
this.x9_1 = 2;
|
|
187
|
-
suspendResult = this.
|
|
187
|
+
suspendResult = this.w60_1.b2l(this.a61_1, this);
|
|
188
188
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
189
189
|
return suspendResult;
|
|
190
190
|
}
|
|
@@ -207,8 +207,8 @@
|
|
|
207
207
|
while (true);
|
|
208
208
|
};
|
|
209
209
|
protoOf(deserialize$o$collect$slambda).k2w = function (value, completion) {
|
|
210
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
211
|
-
i.
|
|
210
|
+
var i = new deserialize$o$collect$slambda(this.p60_1, this.q60_1, this.r60_1, this.s60_1, completion);
|
|
211
|
+
i.t60_1 = value;
|
|
212
212
|
return i;
|
|
213
213
|
};
|
|
214
214
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
}
|
|
222
222
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
223
223
|
CoroutineImpl.call(this, resultContinuation);
|
|
224
|
-
this.
|
|
225
|
-
this.
|
|
224
|
+
this.k61_1 = _this__u8e3s4;
|
|
225
|
+
this.l61_1 = collector;
|
|
226
226
|
}
|
|
227
227
|
protoOf($collectCOROUTINE$).fa = function () {
|
|
228
228
|
var suspendResult = this.z9_1;
|
|
@@ -233,11 +233,11 @@
|
|
|
233
233
|
case 0:
|
|
234
234
|
this.y9_1 = 2;
|
|
235
235
|
var tmp_0 = this;
|
|
236
|
-
tmp_0.
|
|
237
|
-
this.
|
|
236
|
+
tmp_0.m61_1 = this.l61_1;
|
|
237
|
+
this.n61_1 = this.m61_1;
|
|
238
238
|
this.x9_1 = 1;
|
|
239
|
-
var tmp_1 = deserialize$o$collect$slambda_0(this.
|
|
240
|
-
suspendResult = this.
|
|
239
|
+
var tmp_1 = deserialize$o$collect$slambda_0(this.n61_1, this.k61_1.p61_1, this.k61_1.q61_1, this.k61_1.r61_1, null);
|
|
240
|
+
suspendResult = this.k61_1.o61_1.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
241
241
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
242
242
|
return suspendResult;
|
|
243
243
|
}
|
|
@@ -260,10 +260,10 @@
|
|
|
260
260
|
while (true);
|
|
261
261
|
};
|
|
262
262
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
263
|
+
this.o61_1 = $this;
|
|
264
|
+
this.p61_1 = $charset;
|
|
265
|
+
this.q61_1 = $typeInfo;
|
|
266
|
+
this.r61_1 = $body;
|
|
267
267
|
}
|
|
268
268
|
protoOf(deserialize$$inlined$map$1).c2l = function (collector, $completion) {
|
|
269
269
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -275,17 +275,17 @@
|
|
|
275
275
|
return this.c2l(collector, $completion);
|
|
276
276
|
};
|
|
277
277
|
function deserialize$slambda($body, resultContinuation) {
|
|
278
|
-
this.
|
|
278
|
+
this.a62_1 = $body;
|
|
279
279
|
CoroutineImpl.call(this, resultContinuation);
|
|
280
280
|
}
|
|
281
|
-
protoOf(deserialize$slambda).
|
|
281
|
+
protoOf(deserialize$slambda).c62 = function (it, $completion) {
|
|
282
282
|
var tmp = this.k2w(it, $completion);
|
|
283
283
|
tmp.z9_1 = Unit_instance;
|
|
284
284
|
tmp.aa_1 = null;
|
|
285
285
|
return tmp.fa();
|
|
286
286
|
};
|
|
287
287
|
protoOf(deserialize$slambda).ra = function (p1, $completion) {
|
|
288
|
-
return this.
|
|
288
|
+
return this.c62((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
289
289
|
};
|
|
290
290
|
protoOf(deserialize$slambda).fa = function () {
|
|
291
291
|
var suspendResult = this.z9_1;
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
var tmp = this.x9_1;
|
|
295
295
|
if (tmp === 0) {
|
|
296
296
|
this.y9_1 = 1;
|
|
297
|
-
return !(this.
|
|
297
|
+
return !(this.b62_1 == null) || this.a62_1.q4h();
|
|
298
298
|
} else if (tmp === 1) {
|
|
299
299
|
throw this.aa_1;
|
|
300
300
|
}
|
|
@@ -305,24 +305,24 @@
|
|
|
305
305
|
while (true);
|
|
306
306
|
};
|
|
307
307
|
protoOf(deserialize$slambda).k2w = function (it, completion) {
|
|
308
|
-
var i = new deserialize$slambda(this.
|
|
309
|
-
i.
|
|
308
|
+
var i = new deserialize$slambda(this.a62_1, completion);
|
|
309
|
+
i.b62_1 = it;
|
|
310
310
|
return i;
|
|
311
311
|
};
|
|
312
312
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
313
313
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
314
314
|
var l = function (it, $completion) {
|
|
315
|
-
return i.
|
|
315
|
+
return i.c62(it, $completion);
|
|
316
316
|
};
|
|
317
317
|
l.$arity = 1;
|
|
318
318
|
return l;
|
|
319
319
|
}
|
|
320
320
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
321
321
|
CoroutineImpl.call(this, resultContinuation);
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
322
|
+
this.a60_1 = _this__u8e3s4;
|
|
323
|
+
this.b60_1 = body;
|
|
324
|
+
this.c60_1 = typeInfo;
|
|
325
|
+
this.d60_1 = charset;
|
|
326
326
|
}
|
|
327
327
|
protoOf($deserializeCOROUTINE$).fa = function () {
|
|
328
328
|
var suspendResult = this.z9_1;
|
|
@@ -333,9 +333,9 @@
|
|
|
333
333
|
case 0:
|
|
334
334
|
this.y9_1 = 2;
|
|
335
335
|
this.x9_1 = 1;
|
|
336
|
-
var this_0 = asFlow(this.
|
|
337
|
-
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.
|
|
338
|
-
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.
|
|
336
|
+
var this_0 = asFlow(this.a60_1);
|
|
337
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.d60_1, this.c60_1, this.b60_1);
|
|
338
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.b60_1, null), this);
|
|
339
339
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
340
340
|
return suspendResult;
|
|
341
341
|
}
|
|
@@ -347,14 +347,14 @@
|
|
|
347
347
|
if (!(result == null)) {
|
|
348
348
|
tmp_1 = result;
|
|
349
349
|
} else {
|
|
350
|
-
if (!this.
|
|
351
|
-
tmp_1 = this.
|
|
350
|
+
if (!this.b60_1.q4h()) {
|
|
351
|
+
tmp_1 = this.b60_1;
|
|
352
352
|
} else {
|
|
353
|
-
var tmp0_safe_receiver = this.
|
|
353
|
+
var tmp0_safe_receiver = this.c60_1.y54_1;
|
|
354
354
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qc()) === true) {
|
|
355
355
|
tmp_1 = NullBody_instance;
|
|
356
356
|
} else {
|
|
357
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
357
|
+
throw new ContentConvertException('No suitable converter found for ' + this.c60_1.toString());
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|