@xiuper/mpp-core 0.0.2 → 1.0.1

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
@@ -19,25 +19,25 @@
19
19
  'use strict';
20
20
  //region block: imports
21
21
  var imul = Math.imul;
22
- var Long = kotlin_kotlin.$_$.sk;
23
- var protoOf = kotlin_kotlin.$_$.we;
24
- var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
22
+ var Long = kotlin_kotlin.$_$.wk;
23
+ var protoOf = kotlin_kotlin.$_$.ze;
24
+ var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
25
25
  var VOID = kotlin_kotlin.$_$.h;
26
- var THROW_CCE = kotlin_kotlin.$_$.zk;
27
- var initMetadataForClass = kotlin_kotlin.$_$.ud;
28
- var toString = kotlin_kotlin.$_$.af;
26
+ var THROW_CCE = kotlin_kotlin.$_$.dl;
27
+ var initMetadataForClass = kotlin_kotlin.$_$.xd;
28
+ var toString = kotlin_kotlin.$_$.df;
29
29
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
30
- var initMetadataForInterface = kotlin_kotlin.$_$.yd;
30
+ var initMetadataForInterface = kotlin_kotlin.$_$.be;
31
31
  var Unit_instance = kotlin_kotlin.$_$.h6;
32
32
  var JsonTransformingSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.w;
33
33
  var get_elementNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2;
34
34
  var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b1;
35
35
  var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.q;
36
36
  var asSequence = kotlin_kotlin.$_$.h7;
37
- var filterNot = kotlin_kotlin.$_$.wf;
37
+ var filterNot = kotlin_kotlin.$_$.zf;
38
38
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
39
39
  var contains = kotlin_kotlin.$_$.q7;
40
- var Pair = kotlin_kotlin.$_$.wk;
40
+ var Pair = kotlin_kotlin.$_$.al;
41
41
  //endregion
42
42
  //region block: pre-declaration
43
43
  initMetadataForCompanion(Companion);
@@ -51,8 +51,8 @@
51
51
  //endregion
52
52
  function Companion() {
53
53
  Companion_instance = this;
54
- this.n4f_1 = new Long(900000, 0);
55
- this.o4f_1 = new Long(60000, 0);
54
+ this.s4e_1 = new Long(900000, 0);
55
+ this.t4e_1 = new Long(60000, 0);
56
56
  }
57
57
  var Companion_instance;
58
58
  function Companion_getInstance() {
@@ -65,17 +65,17 @@
65
65
  requestTimeoutMillis = requestTimeoutMillis === VOID ? new Long(900000, 0) : requestTimeoutMillis;
66
66
  connectTimeoutMillis = connectTimeoutMillis === VOID ? new Long(60000, 0) : connectTimeoutMillis;
67
67
  socketTimeoutMillis = socketTimeoutMillis === VOID ? new Long(900000, 0) : socketTimeoutMillis;
68
- this.p4f_1 = requestTimeoutMillis;
69
- this.q4f_1 = connectTimeoutMillis;
70
- this.r4f_1 = socketTimeoutMillis;
68
+ this.u4e_1 = requestTimeoutMillis;
69
+ this.v4e_1 = connectTimeoutMillis;
70
+ this.w4e_1 = socketTimeoutMillis;
71
71
  }
72
72
  protoOf(ConnectionTimeoutConfig).toString = function () {
73
- return 'ConnectionTimeoutConfig(requestTimeoutMillis=' + this.p4f_1.toString() + ', connectTimeoutMillis=' + this.q4f_1.toString() + ', socketTimeoutMillis=' + this.r4f_1.toString() + ')';
73
+ return 'ConnectionTimeoutConfig(requestTimeoutMillis=' + this.u4e_1.toString() + ', connectTimeoutMillis=' + this.v4e_1.toString() + ', socketTimeoutMillis=' + this.w4e_1.toString() + ')';
74
74
  };
75
75
  protoOf(ConnectionTimeoutConfig).hashCode = function () {
76
- var result = this.p4f_1.hashCode();
77
- result = imul(result, 31) + this.q4f_1.hashCode() | 0;
78
- result = imul(result, 31) + this.r4f_1.hashCode() | 0;
76
+ var result = this.u4e_1.hashCode();
77
+ result = imul(result, 31) + this.v4e_1.hashCode() | 0;
78
+ result = imul(result, 31) + this.w4e_1.hashCode() | 0;
79
79
  return result;
80
80
  };
81
81
  protoOf(ConnectionTimeoutConfig).equals = function (other) {
@@ -84,11 +84,11 @@
84
84
  if (!(other instanceof ConnectionTimeoutConfig))
85
85
  return false;
86
86
  var tmp0_other_with_cast = other instanceof ConnectionTimeoutConfig ? other : THROW_CCE();
87
- if (!this.p4f_1.equals(tmp0_other_with_cast.p4f_1))
87
+ if (!this.u4e_1.equals(tmp0_other_with_cast.u4e_1))
88
88
  return false;
89
- if (!this.q4f_1.equals(tmp0_other_with_cast.q4f_1))
89
+ if (!this.v4e_1.equals(tmp0_other_with_cast.v4e_1))
90
90
  return false;
91
- if (!this.r4f_1.equals(tmp0_other_with_cast.r4f_1))
91
+ if (!this.w4e_1.equals(tmp0_other_with_cast.w4e_1))
92
92
  return false;
93
93
  return true;
94
94
  };
@@ -98,13 +98,13 @@
98
98
  return function (_destruct__k2r9zo) {
99
99
  // Inline function 'kotlin.collections.component1' call
100
100
  var key = _destruct__k2r9zo.a1();
101
- return key === this$0.t4f_1;
101
+ return key === this$0.y4e_1;
102
102
  };
103
103
  }
104
104
  function AdditionalPropertiesFlatteningSerializer(tSerializer) {
105
105
  JsonTransformingSerializer.call(this, tSerializer);
106
- this.t4f_1 = 'additionalProperties';
107
- this.u4f_1 = get_elementNames(tSerializer.fv());
106
+ this.y4e_1 = 'additionalProperties';
107
+ this.z4e_1 = get_elementNames(tSerializer.fv());
108
108
  }
109
109
  protoOf(AdditionalPropertiesFlatteningSerializer).g1l = function (element) {
110
110
  var obj = get_jsonObject(element);
@@ -121,7 +121,7 @@
121
121
  var value = element_0.b1();
122
122
  builder.g1k(key, value);
123
123
  }
124
- var tmp0_safe_receiver = obj.cf(this.t4f_1);
124
+ var tmp0_safe_receiver = obj.cf(this.y4e_1);
125
125
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonObject(tmp0_safe_receiver);
126
126
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z();
127
127
  var tmp_0;
@@ -170,15 +170,15 @@
170
170
  var element_0 = _iterator__ex2g4s.r();
171
171
  // Inline function 'kotlin.collections.component1' call
172
172
  var key = element_0.a1();
173
- if (contains(this.u4f_1, key)) {
173
+ if (contains(this.z4e_1, key)) {
174
174
  first.h(element_0);
175
175
  } else {
176
176
  second.h(element_0);
177
177
  }
178
178
  }
179
179
  var _destruct__k2r9zo = new Pair(first, second);
180
- var known = _destruct__k2r9zo.si();
181
- var additional = _destruct__k2r9zo.ti();
180
+ var known = _destruct__k2r9zo.ii();
181
+ var additional = _destruct__k2r9zo.ji();
182
182
  // Inline function 'kotlinx.serialization.json.buildJsonObject' call
183
183
  var builder = new JsonObjectBuilder();
184
184
  // Inline function 'kotlin.collections.forEach' call
@@ -206,7 +206,7 @@
206
206
  builder_0.g1k(key_1, value_0);
207
207
  }
208
208
  var tmp$ret$13 = builder_0.s1i();
209
- builder.g1k(this.t4f_1, tmp$ret$13);
209
+ builder.g1k(this.y4e_1, tmp$ret$13);
210
210
  }
211
211
  return builder.s1i();
212
212
  };
@@ -19,17 +19,17 @@
19
19
  'use strict';
20
20
  //region block: imports
21
21
  var KotlinLogging_instance = kotlin_io_github_oshai_kotlin_logging.$_$.b;
22
- var protoOf = kotlin_kotlin.$_$.we;
23
- var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
24
- var toString = kotlin_kotlin.$_$.af;
25
- var CoroutineImpl = kotlin_kotlin.$_$.tc;
26
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.dc;
27
- var initMetadataForCoroutine = kotlin_kotlin.$_$.wd;
22
+ var protoOf = kotlin_kotlin.$_$.ze;
23
+ var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
24
+ var toString = kotlin_kotlin.$_$.df;
25
+ var CoroutineImpl = kotlin_kotlin.$_$.wc;
26
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
27
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
28
28
  var Unit_instance = kotlin_kotlin.$_$.h6;
29
29
  var execute$default = kotlin_ai_koog_prompt_executor_model.$_$.c;
30
30
  var executeStreaming$default = kotlin_ai_koog_prompt_executor_model.$_$.b;
31
31
  var PromptExecutor = kotlin_ai_koog_prompt_executor_model.$_$.a;
32
- var initMetadataForClass = kotlin_kotlin.$_$.ud;
32
+ var initMetadataForClass = kotlin_kotlin.$_$.xd;
33
33
  var VOID = kotlin_kotlin.$_$.h;
34
34
  //endregion
35
35
  //region block: pre-declaration
@@ -39,7 +39,7 @@
39
39
  //endregion
40
40
  function Companion() {
41
41
  Companion_instance = this;
42
- this.i93_1 = KotlinLogging_instance.c3j('ai.koog.prompt.executor.llms.LLMPromptExecutor');
42
+ this.n92_1 = KotlinLogging_instance.h3i('ai.koog.prompt.executor.llms.LLMPromptExecutor');
43
43
  }
44
44
  var Companion_instance;
45
45
  function Companion_getInstance() {
@@ -64,10 +64,10 @@
64
64
  }
65
65
  function $executeCOROUTINE$(_this__u8e3s4, prompt, model, tools, resultContinuation) {
66
66
  CoroutineImpl.call(this, resultContinuation);
67
- this.r93_1 = _this__u8e3s4;
68
- this.s93_1 = prompt;
69
- this.t93_1 = model;
70
- this.u93_1 = tools;
67
+ this.w92_1 = _this__u8e3s4;
68
+ this.x92_1 = prompt;
69
+ this.y92_1 = model;
70
+ this.z92_1 = tools;
71
71
  }
72
72
  protoOf($executeCOROUTINE$).fa = function () {
73
73
  var suspendResult = this.z9_1;
@@ -77,10 +77,10 @@
77
77
  switch (tmp) {
78
78
  case 0:
79
79
  this.y9_1 = 2;
80
- var tmp_0 = Companion_getInstance().i93_1;
81
- tmp_0.o3i(SingleLLMPromptExecutor$execute$lambda(this.s93_1, this.u93_1, this.t93_1));
80
+ var tmp_0 = Companion_getInstance().n92_1;
81
+ tmp_0.t3h(SingleLLMPromptExecutor$execute$lambda(this.x92_1, this.z92_1, this.y92_1));
82
82
  this.x9_1 = 1;
83
- suspendResult = this.r93_1.v93_1.j4f(this.s93_1, this.t93_1, this.u93_1, this);
83
+ suspendResult = this.w92_1.a93_1.o4e(this.x92_1, this.y92_1, this.z92_1, this);
84
84
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
85
85
  return suspendResult;
86
86
  }
@@ -88,8 +88,8 @@
88
88
  continue $sm;
89
89
  case 1:
90
90
  var response = suspendResult;
91
- var tmp_1 = Companion_getInstance().i93_1;
92
- tmp_1.o3i(SingleLLMPromptExecutor$execute$lambda_0(response));
91
+ var tmp_1 = Companion_getInstance().n92_1;
92
+ tmp_1.t3h(SingleLLMPromptExecutor$execute$lambda_0(response));
93
93
  return response;
94
94
  case 2:
95
95
  throw this.aa_1;
@@ -107,22 +107,22 @@
107
107
  };
108
108
  function SingleLLMPromptExecutor(llmClient) {
109
109
  Companion_getInstance();
110
- this.v93_1 = llmClient;
110
+ this.a93_1 = llmClient;
111
111
  }
112
- protoOf(SingleLLMPromptExecutor).j4f = function (prompt, model, tools, $completion) {
112
+ protoOf(SingleLLMPromptExecutor).o4e = function (prompt, model, tools, $completion) {
113
113
  var tmp = new $executeCOROUTINE$(this, prompt, model, tools, $completion);
114
114
  tmp.z9_1 = Unit_instance;
115
115
  tmp.aa_1 = null;
116
116
  return tmp.fa();
117
117
  };
118
- protoOf(SingleLLMPromptExecutor).l4f = function (prompt, model, tools) {
119
- var tmp = Companion_getInstance().i93_1;
120
- tmp.o3i(SingleLLMPromptExecutor$executeStreaming$lambda(prompt, tools, model));
121
- return this.v93_1.l4f(prompt, model, tools);
118
+ protoOf(SingleLLMPromptExecutor).q4e = function (prompt, model, tools) {
119
+ var tmp = Companion_getInstance().n92_1;
120
+ tmp.t3h(SingleLLMPromptExecutor$executeStreaming$lambda(prompt, tools, model));
121
+ return this.a93_1.q4e(prompt, model, tools);
122
122
  };
123
123
  //region block: post-declaration
124
- protoOf(SingleLLMPromptExecutor).k4f = execute$default;
125
- protoOf(SingleLLMPromptExecutor).m4f = executeStreaming$default;
124
+ protoOf(SingleLLMPromptExecutor).p4e = execute$default;
125
+ protoOf(SingleLLMPromptExecutor).r4e = executeStreaming$default;
126
126
  //endregion
127
127
  //region block: exports
128
128
  _.$_$ = _.$_$ || {};
@@ -12,19 +12,19 @@
12
12
  }(function (_, kotlin_kotlin) {
13
13
  'use strict';
14
14
  //region block: imports
15
- var protoOf = kotlin_kotlin.$_$.we;
15
+ var protoOf = kotlin_kotlin.$_$.ze;
16
16
  var emptyList = kotlin_kotlin.$_$.m8;
17
17
  var VOID = kotlin_kotlin.$_$.h;
18
- var initMetadataForInterface = kotlin_kotlin.$_$.yd;
18
+ var initMetadataForInterface = kotlin_kotlin.$_$.be;
19
19
  //endregion
20
20
  //region block: pre-declaration
21
21
  function execute$default(prompt, model, tools, $completion, $super) {
22
22
  tools = tools === VOID ? emptyList() : tools;
23
- return $super === VOID ? this.j4f(prompt, model, tools, $completion) : $super.j4f.call(this, prompt, model, tools, $completion);
23
+ return $super === VOID ? this.o4e(prompt, model, tools, $completion) : $super.o4e.call(this, prompt, model, tools, $completion);
24
24
  }
25
25
  function executeStreaming$default(prompt, model, tools, $super) {
26
26
  tools = tools === VOID ? emptyList() : tools;
27
- return $super === VOID ? this.l4f(prompt, model, tools) : $super.l4f.call(this, prompt, model, tools);
27
+ return $super === VOID ? this.q4e(prompt, model, tools) : $super.q4e.call(this, prompt, model, tools);
28
28
  }
29
29
  initMetadataForInterface(PromptExecutor, 'PromptExecutor', VOID, VOID, VOID, [3, 2]);
30
30
  //endregion