@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.
Files changed (65) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +1796 -1796
  2. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
  3. package/Xiuper-mpp-codegraph.js +240 -240
  4. package/kaml.js +639 -639
  5. package/koog-agents-agents-core.js +4606 -4606
  6. package/koog-agents-agents-tools.js +41 -41
  7. package/koog-agents-agents-utils.js +52 -52
  8. package/koog-http-client-http-client-core.js +4 -4
  9. package/koog-http-client-http-client-ktor.js +166 -166
  10. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
  11. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
  12. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
  13. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
  14. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
  15. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
  16. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
  17. package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
  18. package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
  19. package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
  20. package/koog-prompt-prompt-llm.js +120 -120
  21. package/koog-prompt-prompt-markdown.js +30 -30
  22. package/koog-prompt-prompt-model.js +1055 -1055
  23. package/koog-prompt-prompt-structure.js +342 -342
  24. package/koog-utils.js +10 -10
  25. package/kotlin-kotlin-stdlib.js +453 -411
  26. package/kotlin-kotlin-stdlib.js.map +1 -1
  27. package/kotlin-logging.js +116 -116
  28. package/kotlin-sdk-kotlin-sdk-client.js +260 -260
  29. package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
  30. package/kotlinx-atomicfu.js +5 -5
  31. package/kotlinx-coroutines-core.js +532 -654
  32. package/kotlinx-coroutines-core.js.map +1 -1
  33. package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
  34. package/kotlinx-io-kotlinx-io-core.js +605 -605
  35. package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
  36. package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
  37. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  38. package/ktor-ktor-client-content-negotiation.js +163 -163
  39. package/ktor-ktor-client-core.js +2237 -2235
  40. package/ktor-ktor-client-core.js.map +1 -1
  41. package/ktor-ktor-events.js +15 -15
  42. package/ktor-ktor-http-cio.js +725 -725
  43. package/ktor-ktor-http.js +805 -805
  44. package/ktor-ktor-io.js +766 -766
  45. package/ktor-ktor-network.js +285 -285
  46. package/ktor-ktor-serialization-kotlinx-json.js +1 -1
  47. package/ktor-ktor-serialization-kotlinx.js +130 -130
  48. package/ktor-ktor-serialization.js +68 -68
  49. package/ktor-ktor-server-cio.js +724 -724
  50. package/ktor-ktor-server-core.js +1793 -1793
  51. package/ktor-ktor-server-sse.js +125 -125
  52. package/ktor-ktor-sse.js +40 -40
  53. package/ktor-ktor-utils.js +690 -690
  54. package/ktor-ktor-websockets.js +49 -49
  55. package/markdown.js +1561 -1561
  56. package/okio-parent-okio.js +368 -368
  57. package/package.json +1 -1
  58. package/snakeyaml-engine-kmp.js +2005 -2005
  59. package/urlencoder-urlencoder-lib.js +43 -43
  60. package/xiuper-mpp-core.d.ts +45 -7
  61. package/xiuper-mpp-core.js +22405 -18664
  62. package/xiuper-mpp-core.js.map +1 -1
  63. package/autodev-mpp-core.d.ts +0 -1312
  64. package/autodev-mpp-core.js +0 -86483
  65. 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.$_$.ok;
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.$_$.dd;
28
- var protoOf = kotlin_kotlin.$_$.we;
29
- var initMetadataForClass = kotlin_kotlin.$_$.ud;
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.$_$.yd;
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.$_$.md;
38
- var FunctionAdapter = kotlin_kotlin.$_$.zc;
39
- var isInterface = kotlin_kotlin.$_$.je;
40
- var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
41
- var hashCode = kotlin_kotlin.$_$.td;
42
- var CoroutineImpl = kotlin_kotlin.$_$.tc;
43
- var THROW_CCE = kotlin_kotlin.$_$.zk;
44
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.dc;
45
- var initMetadataForLambda = kotlin_kotlin.$_$.zd;
46
- var initMetadataForCoroutine = kotlin_kotlin.$_$.wd;
47
- var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
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.z60(contentType, converter, configuration);
64
+ this.e60(contentType, converter, configuration);
65
65
  tmp_0 = Unit_instance;
66
66
  } else {
67
- tmp_0 = $super.z60.call(this, contentType, converter, configuration);
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().q4i_1 : defaultCharset;
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().q4i_1 : defaultCharset;
107
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.cf(HttpHeaders_getInstance().g59_1)).p();
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().si();
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.b61_1 = function_0;
118
+ this.g60_1 = function_0;
119
119
  }
120
120
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
121
- return this.b61_1(value, $completion);
121
+ return this.g60_1(value, $completion);
122
122
  };
123
123
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
124
- return this.b61_1;
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.k61_1 = $$this$unsafeFlow;
146
- this.l61_1 = $charset;
147
- this.m61_1 = $typeInfo;
148
- this.n61_1 = $body;
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.p61_1 = this.k61_1;
169
+ tmp_0.u60_1 = this.p60_1;
170
170
  var tmp_1 = this;
171
- tmp_1.q61_1 = this.o61_1;
172
- this.r61_1 = this.p61_1;
173
- this.s61_1 = this.q61_1;
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.t61_1 = this.s61_1;
176
- this.u61_1 = this.t61_1;
175
+ tmp_2.y60_1 = this.x60_1;
176
+ this.z60_1 = this.y60_1;
177
177
  this.x9_1 = 1;
178
- suspendResult = this.u61_1.w61(this.l61_1, this.m61_1, this.n61_1, 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.v61_1 = suspendResult;
185
+ this.a61_1 = suspendResult;
186
186
  this.x9_1 = 2;
187
- suspendResult = this.r61_1.b2l(this.v61_1, 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.k61_1, this.l61_1, this.m61_1, this.n61_1, completion);
211
- i.o61_1 = value;
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.f62_1 = _this__u8e3s4;
225
- this.g62_1 = collector;
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.h62_1 = this.g62_1;
237
- this.i62_1 = this.h62_1;
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.i62_1, this.f62_1.k62_1, this.f62_1.l62_1, this.f62_1.m62_1, null);
240
- suspendResult = this.f62_1.j62_1.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), 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.j62_1 = $this;
264
- this.k62_1 = $charset;
265
- this.l62_1 = $typeInfo;
266
- this.m62_1 = $body;
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.v62_1 = $body;
278
+ this.a62_1 = $body;
279
279
  CoroutineImpl.call(this, resultContinuation);
280
280
  }
281
- protoOf(deserialize$slambda).x62 = function (it, $completion) {
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.x62((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
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.w62_1 == null) || this.v62_1.l4i();
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.v62_1, completion);
309
- i.w62_1 = it;
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.x62(it, $completion);
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.v60_1 = _this__u8e3s4;
323
- this.w60_1 = body;
324
- this.x60_1 = typeInfo;
325
- this.y60_1 = charset;
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.v60_1);
337
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.y60_1, this.x60_1, this.w60_1);
338
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.w60_1, null), 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.w60_1.l4i()) {
351
- tmp_1 = this.w60_1;
350
+ if (!this.b60_1.q4h()) {
351
+ tmp_1 = this.b60_1;
352
352
  } else {
353
- var tmp0_safe_receiver = this.x60_1.t55_1;
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.x60_1.toString());
357
+ throw new ContentConvertException('No suitable converter found for ' + this.c60_1.toString());
358
358
  }
359
359
  }
360
360
  }