@xiuper/mpp-core 0.0.2 → 3.0.0-alpha4
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
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
}(function (_, kotlin_kotlin, kotlin_io_modelcontextprotocol_kotlin_sdk_core, kotlin_org_jetbrains_kotlinx_kotlinx_collections_immutable, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_github_oshai_kotlin_logging, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_sse, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_utils) {
|
|
46
46
|
'use strict';
|
|
47
47
|
//region block: imports
|
|
48
|
-
var toList = kotlin_kotlin.$_$.
|
|
48
|
+
var toList = kotlin_kotlin.$_$.ib;
|
|
49
49
|
var ListRootsResult = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.i1;
|
|
50
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
50
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
51
51
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
52
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
53
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
52
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
53
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
54
54
|
var ListRootsRequest = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.h1;
|
|
55
55
|
var RequestHandlerExtra = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.a1;
|
|
56
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
56
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
57
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
58
58
|
var VOID = kotlin_kotlin.$_$.h;
|
|
59
59
|
var Protocol = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.z;
|
|
60
60
|
var InitializeRequest = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.e1;
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
var get_SUPPORTED_PROTOCOL_VERSIONS = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.k1;
|
|
63
63
|
var contains = kotlin_kotlin.$_$.r7;
|
|
64
64
|
var InitializedNotification = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.f1;
|
|
65
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
66
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
65
|
+
var CancellationException = kotlin_kotlin.$_$.fc;
|
|
66
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
67
67
|
var persistentMapOf = kotlin_org_jetbrains_kotlinx_kotlinx_collections_immutable.$_$.a;
|
|
68
68
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
69
69
|
var Defined_RootsList_getInstance = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.q;
|
|
70
70
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
71
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
71
|
+
var arrayOf = kotlin_kotlin.$_$.rl;
|
|
72
72
|
var createKType = kotlin_kotlin.$_$.c;
|
|
73
73
|
var Defined_Initialize_getInstance = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.c;
|
|
74
|
-
var equals = kotlin_kotlin.$_$.
|
|
74
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
75
75
|
var Defined_Ping_getInstance = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.i;
|
|
76
|
-
var toString = kotlin_kotlin.$_$.
|
|
76
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
77
77
|
var Defined_ToolsCall_getInstance = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.s;
|
|
78
78
|
var Defined_ToolsList_getInstance = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.t;
|
|
79
79
|
var Defined_ResourcesSubscribe_getInstance = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.n;
|
|
@@ -98,43 +98,43 @@
|
|
|
98
98
|
var JsonElement = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.o;
|
|
99
99
|
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.u;
|
|
100
100
|
var JsonPrimitive_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.t;
|
|
101
|
-
var isNumber = kotlin_kotlin.$_$.
|
|
101
|
+
var isNumber = kotlin_kotlin.$_$.oe;
|
|
102
102
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.r;
|
|
103
103
|
var CallToolRequest = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.b1;
|
|
104
104
|
var ListToolsRequest = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.j1;
|
|
105
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
105
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
106
106
|
var ProtocolOptions = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.y;
|
|
107
107
|
var ClientCapabilities = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.c1;
|
|
108
108
|
var KotlinLogging_instance = kotlin_io_github_oshai_kotlin_logging.$_$.b;
|
|
109
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
110
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
111
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
112
|
-
var substring = kotlin_kotlin.$_$.
|
|
113
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
109
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.jm;
|
|
110
|
+
var KProperty1 = kotlin_kotlin.$_$.wf;
|
|
111
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ud;
|
|
112
|
+
var substring = kotlin_kotlin.$_$.zi;
|
|
113
|
+
var startsWith = kotlin_kotlin.$_$.ni;
|
|
114
114
|
var Url = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
115
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
116
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
117
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
118
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
119
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
115
|
+
var FunctionAdapter = kotlin_kotlin.$_$.cd;
|
|
116
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
117
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
118
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
119
|
+
var charSequenceLength = kotlin_kotlin.$_$.ld;
|
|
120
120
|
var get_protocolWithAuthority = kotlin_io_ktor_ktor_http.$_$.l2;
|
|
121
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
122
|
-
var take = kotlin_kotlin.$_$.
|
|
123
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
124
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
125
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
121
|
+
var lastIndexOf = kotlin_kotlin.$_$.th;
|
|
122
|
+
var take = kotlin_kotlin.$_$.cj;
|
|
123
|
+
var removeSuffix = kotlin_kotlin.$_$.bi;
|
|
124
|
+
var endsWith = kotlin_kotlin.$_$.xg;
|
|
125
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
126
126
|
var ServerSentEvent = kotlin_io_ktor_ktor_sse.$_$.a;
|
|
127
|
-
var ensureActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
127
|
+
var ensureActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m2;
|
|
128
128
|
var sseSession = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
129
129
|
var sseSession_0 = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
130
|
-
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
131
|
-
var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
132
|
-
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
133
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
134
|
-
var Exception = kotlin_kotlin.$_$.
|
|
135
|
-
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.
|
|
130
|
+
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e2;
|
|
131
|
+
var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
132
|
+
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
133
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p2;
|
|
134
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
135
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
136
136
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
137
|
-
var url = kotlin_io_ktor_ktor_client_core.$_$.
|
|
137
|
+
var url = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
138
138
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
139
139
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
140
140
|
var append = kotlin_io_ktor_ktor_http.$_$.p1;
|
|
@@ -146,16 +146,16 @@
|
|
|
146
146
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
147
147
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.x;
|
|
148
148
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
149
|
-
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.
|
|
149
|
+
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
150
150
|
var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
151
151
|
var isSuccess = kotlin_io_ktor_ktor_http.$_$.d2;
|
|
152
152
|
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a4;
|
|
153
|
-
var cancelAndJoin = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
154
|
-
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
153
|
+
var cancelAndJoin = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
154
|
+
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i2;
|
|
155
155
|
var AbstractTransport = kotlin_io_modelcontextprotocol_kotlin_sdk_core.$_$.w;
|
|
156
|
-
var AtomicBoolean = kotlin_kotlin.$_$.
|
|
157
|
-
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
158
|
-
var lazy = kotlin_kotlin.$_$.
|
|
156
|
+
var AtomicBoolean = kotlin_kotlin.$_$.bc;
|
|
157
|
+
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w1;
|
|
158
|
+
var lazy = kotlin_kotlin.$_$.cm;
|
|
159
159
|
//endregion
|
|
160
160
|
//region block: pre-declaration
|
|
161
161
|
initMetadataForLambda(Client$slambda, CoroutineImpl, VOID, [2]);
|
|
@@ -179,27 +179,27 @@
|
|
|
179
179
|
}
|
|
180
180
|
var logger;
|
|
181
181
|
function handleListRoots($this, $completion) {
|
|
182
|
-
var rootList = toList($this.
|
|
182
|
+
var rootList = toList($this.fgu_1.kotlinx$atomicfu$value.l2());
|
|
183
183
|
return new ListRootsResult(rootList);
|
|
184
184
|
}
|
|
185
185
|
function Client$lambda(this$0) {
|
|
186
186
|
return function () {
|
|
187
|
-
return 'Initializing MCP client with capabilities: ' + this$0.
|
|
187
|
+
return 'Initializing MCP client with capabilities: ' + this$0.egu_1.toString();
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
function Client$slambda(this$0, resultContinuation) {
|
|
191
|
-
this.
|
|
191
|
+
this.ogu_1 = this$0;
|
|
192
192
|
CoroutineImpl.call(this, resultContinuation);
|
|
193
193
|
}
|
|
194
|
-
protoOf(Client$slambda).
|
|
195
|
-
var tmp = this.
|
|
194
|
+
protoOf(Client$slambda).rgu = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
195
|
+
var tmp = this.sgu(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
196
196
|
tmp.z9_1 = Unit_instance;
|
|
197
197
|
tmp.aa_1 = null;
|
|
198
198
|
return tmp.fa();
|
|
199
199
|
};
|
|
200
200
|
protoOf(Client$slambda).sa = function (p1, p2, $completion) {
|
|
201
201
|
var tmp = p1 instanceof ListRootsRequest ? p1 : THROW_CCE();
|
|
202
|
-
return this.
|
|
202
|
+
return this.rgu(tmp, p2 instanceof RequestHandlerExtra ? p2 : THROW_CCE(), $completion);
|
|
203
203
|
};
|
|
204
204
|
protoOf(Client$slambda).fa = function () {
|
|
205
205
|
var suspendResult = this.z9_1;
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
case 0:
|
|
211
211
|
this.y9_1 = 2;
|
|
212
212
|
this.x9_1 = 1;
|
|
213
|
-
suspendResult = handleListRoots(this.
|
|
213
|
+
suspendResult = handleListRoots(this.ogu_1, this);
|
|
214
214
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
215
215
|
return suspendResult;
|
|
216
216
|
}
|
|
@@ -232,24 +232,24 @@
|
|
|
232
232
|
}
|
|
233
233
|
while (true);
|
|
234
234
|
};
|
|
235
|
-
protoOf(Client$slambda).
|
|
236
|
-
var i = new Client$slambda(this.
|
|
237
|
-
i.
|
|
238
|
-
i.
|
|
235
|
+
protoOf(Client$slambda).sgu = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
236
|
+
var i = new Client$slambda(this.ogu_1, completion);
|
|
237
|
+
i.pgu_1 = _unused_var__etf5q3;
|
|
238
|
+
i.qgu_1 = _unused_var__etf5q3_0;
|
|
239
239
|
return i;
|
|
240
240
|
};
|
|
241
241
|
function Client$slambda_0(this$0, resultContinuation) {
|
|
242
242
|
var i = new Client$slambda(this$0, resultContinuation);
|
|
243
243
|
var l = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
244
|
-
return i.
|
|
244
|
+
return i.rgu(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
245
245
|
};
|
|
246
246
|
l.$arity = 2;
|
|
247
247
|
return l;
|
|
248
248
|
}
|
|
249
249
|
function $connectCOROUTINE$(_this__u8e3s4, transport, resultContinuation) {
|
|
250
250
|
CoroutineImpl.call(this, resultContinuation);
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
251
|
+
this.bgv_1 = _this__u8e3s4;
|
|
252
|
+
this.cgv_1 = transport;
|
|
253
253
|
}
|
|
254
254
|
protoOf($connectCOROUTINE$).fa = function () {
|
|
255
255
|
var suspendResult = this.z9_1;
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
case 0:
|
|
261
261
|
this.y9_1 = 7;
|
|
262
262
|
this.x9_1 = 1;
|
|
263
|
-
suspendResult = protoOf(Protocol).
|
|
263
|
+
suspendResult = protoOf(Protocol).xg8.call(this.bgv_1, this.cgv_1, this);
|
|
264
264
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
265
265
|
return suspendResult;
|
|
266
266
|
}
|
|
@@ -268,24 +268,24 @@
|
|
|
268
268
|
continue $sm;
|
|
269
269
|
case 1:
|
|
270
270
|
this.y9_1 = 5;
|
|
271
|
-
this.
|
|
271
|
+
this.dgv_1 = new InitializeRequest('2025-03-26', this.bgv_1.egu_1, this.bgv_1.bgu_1);
|
|
272
272
|
this.x9_1 = 2;
|
|
273
|
-
suspendResult = this.
|
|
273
|
+
suspendResult = this.bgv_1.eg9(this.dgv_1, VOID, this);
|
|
274
274
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
275
275
|
return suspendResult;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
continue $sm;
|
|
279
279
|
case 2:
|
|
280
|
-
this.
|
|
281
|
-
if (!contains(get_SUPPORTED_PROTOCOL_VERSIONS(), this.
|
|
282
|
-
throw IllegalStateException_init_$Create$("Server's protocol version is not supported: " + this.
|
|
280
|
+
this.egv_1 = suspendResult;
|
|
281
|
+
if (!contains(get_SUPPORTED_PROTOCOL_VERSIONS(), this.egv_1.lgl_1)) {
|
|
282
|
+
throw IllegalStateException_init_$Create$("Server's protocol version is not supported: " + this.egv_1.lgl_1);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
285
|
+
this.bgv_1.cgu_1 = this.egv_1.mgl_1;
|
|
286
|
+
this.bgv_1.dgu_1 = this.egv_1.ngl_1;
|
|
287
287
|
this.x9_1 = 3;
|
|
288
|
-
suspendResult = this.
|
|
288
|
+
suspendResult = this.bgv_1.fg9(new InitializedNotification(), this);
|
|
289
289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
290
290
|
return suspendResult;
|
|
291
291
|
}
|
|
@@ -302,9 +302,9 @@
|
|
|
302
302
|
this.y9_1 = 7;
|
|
303
303
|
var tmp_0 = this.aa_1;
|
|
304
304
|
if (tmp_0 instanceof Error) {
|
|
305
|
-
this.
|
|
305
|
+
this.fgv_1 = this.aa_1;
|
|
306
306
|
this.x9_1 = 6;
|
|
307
|
-
suspendResult = this.
|
|
307
|
+
suspendResult = this.bgv_1.ec9(this);
|
|
308
308
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
309
309
|
return suspendResult;
|
|
310
310
|
}
|
|
@@ -314,12 +314,12 @@
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
case 6:
|
|
317
|
-
var tmp_1 = this.
|
|
317
|
+
var tmp_1 = this.fgv_1;
|
|
318
318
|
if (!(tmp_1 instanceof CancellationException)) {
|
|
319
|
-
throw IllegalStateException_init_$Create$('Error connecting to transport: ' + this.
|
|
319
|
+
throw IllegalStateException_init_$Create$('Error connecting to transport: ' + this.fgv_1.message);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
throw this.
|
|
322
|
+
throw this.fgv_1;
|
|
323
323
|
case 7:
|
|
324
324
|
throw this.aa_1;
|
|
325
325
|
}
|
|
@@ -336,10 +336,10 @@
|
|
|
336
336
|
};
|
|
337
337
|
function $callToolCOROUTINE$(_this__u8e3s4, request, compatibility, options, resultContinuation) {
|
|
338
338
|
CoroutineImpl.call(this, resultContinuation);
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
339
|
+
this.ogv_1 = _this__u8e3s4;
|
|
340
|
+
this.pgv_1 = request;
|
|
341
|
+
this.qgv_1 = compatibility;
|
|
342
|
+
this.rgv_1 = options;
|
|
343
343
|
}
|
|
344
344
|
protoOf($callToolCOROUTINE$).fa = function () {
|
|
345
345
|
var suspendResult = this.z9_1;
|
|
@@ -349,16 +349,16 @@
|
|
|
349
349
|
switch (tmp) {
|
|
350
350
|
case 0:
|
|
351
351
|
this.y9_1 = 4;
|
|
352
|
-
if (this.
|
|
352
|
+
if (this.qgv_1) {
|
|
353
353
|
this.x9_1 = 2;
|
|
354
|
-
suspendResult = this.
|
|
354
|
+
suspendResult = this.ogv_1.dg9(this.pgv_1, this.rgv_1, this);
|
|
355
355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
356
356
|
return suspendResult;
|
|
357
357
|
}
|
|
358
358
|
continue $sm;
|
|
359
359
|
} else {
|
|
360
360
|
this.x9_1 = 1;
|
|
361
|
-
suspendResult = this.
|
|
361
|
+
suspendResult = this.ogv_1.dg9(this.pgv_1, this.rgv_1, this);
|
|
362
362
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
363
363
|
return suspendResult;
|
|
364
364
|
}
|
|
@@ -366,15 +366,15 @@
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
case 1:
|
|
369
|
-
this.
|
|
369
|
+
this.sgv_1 = suspendResult;
|
|
370
370
|
this.x9_1 = 3;
|
|
371
371
|
continue $sm;
|
|
372
372
|
case 2:
|
|
373
|
-
this.
|
|
373
|
+
this.sgv_1 = suspendResult;
|
|
374
374
|
this.x9_1 = 3;
|
|
375
375
|
continue $sm;
|
|
376
376
|
case 3:
|
|
377
|
-
return this.
|
|
377
|
+
return this.sgv_1;
|
|
378
378
|
case 4:
|
|
379
379
|
throw this.aa_1;
|
|
380
380
|
}
|
|
@@ -392,40 +392,40 @@
|
|
|
392
392
|
function Client(clientInfo, options) {
|
|
393
393
|
options = options === VOID ? new ClientOptions() : options;
|
|
394
394
|
Protocol.call(this, options);
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
395
|
+
this.bgu_1 = clientInfo;
|
|
396
|
+
this.cgu_1 = null;
|
|
397
|
+
this.dgu_1 = null;
|
|
398
|
+
this.egu_1 = options.vgv_1;
|
|
399
|
+
this.fgu_1 = atomic$ref$1(persistentMapOf());
|
|
400
400
|
var tmp = get_logger();
|
|
401
|
-
tmp.
|
|
402
|
-
if (!(this.
|
|
401
|
+
tmp.t3h(Client$lambda(this));
|
|
402
|
+
if (!(this.egu_1.pgn_1 == null)) {
|
|
403
403
|
var tmp2 = Defined_RootsList_getInstance();
|
|
404
404
|
// Inline function 'io.modelcontextprotocol.kotlin.sdk.shared.Protocol.setRequestHandler' call
|
|
405
405
|
var block = Client$slambda_0(this, null);
|
|
406
|
-
this.
|
|
406
|
+
this.wg8(createKType(getKClass(ListRootsRequest), arrayOf([]), false), tmp2, block);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
protoOf(Client).
|
|
409
|
+
protoOf(Client).xg8 = function (transport, $completion) {
|
|
410
410
|
var tmp = new $connectCOROUTINE$(this, transport, $completion);
|
|
411
411
|
tmp.z9_1 = Unit_instance;
|
|
412
412
|
tmp.aa_1 = null;
|
|
413
413
|
return tmp.fa();
|
|
414
414
|
};
|
|
415
|
-
protoOf(Client).
|
|
415
|
+
protoOf(Client).qg8 = function (method) {
|
|
416
416
|
if (equals(method, Defined_LoggingSetLevel_getInstance())) {
|
|
417
|
-
var tmp1_safe_receiver = this.
|
|
418
|
-
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
417
|
+
var tmp1_safe_receiver = this.cgu_1;
|
|
418
|
+
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.egp_1) == null) {
|
|
419
419
|
throw IllegalStateException_init_$Create$('Server does not support logging (required for ' + toString(method) + ')');
|
|
420
420
|
}
|
|
421
421
|
} else if (equals(method, Defined_PromptsGet_getInstance()) || (equals(method, Defined_PromptsList_getInstance()) || equals(method, Defined_CompletionComplete_getInstance()))) {
|
|
422
|
-
var tmp2_safe_receiver = this.
|
|
423
|
-
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
422
|
+
var tmp2_safe_receiver = this.cgu_1;
|
|
423
|
+
if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.fgp_1) == null) {
|
|
424
424
|
throw IllegalStateException_init_$Create$('Server does not support prompts (required for ' + toString(method) + ')');
|
|
425
425
|
}
|
|
426
426
|
} else if (equals(method, Defined_ResourcesList_getInstance()) || equals(method, Defined_ResourcesTemplatesList_getInstance()) || (equals(method, Defined_ResourcesRead_getInstance()) || (equals(method, Defined_ResourcesSubscribe_getInstance()) || equals(method, Defined_ResourcesUnsubscribe_getInstance())))) {
|
|
427
|
-
var tmp3_safe_receiver = this.
|
|
428
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
427
|
+
var tmp3_safe_receiver = this.cgu_1;
|
|
428
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.ggp_1;
|
|
429
429
|
var tmp;
|
|
430
430
|
if (tmp4_elvis_lhs == null) {
|
|
431
431
|
var message = 'Server does not support resources (required for ' + toString(method) + ')';
|
|
@@ -434,43 +434,43 @@
|
|
|
434
434
|
tmp = tmp4_elvis_lhs;
|
|
435
435
|
}
|
|
436
436
|
var resCaps = tmp;
|
|
437
|
-
if (equals(method, Defined_ResourcesSubscribe_getInstance()) && !(resCaps.
|
|
437
|
+
if (equals(method, Defined_ResourcesSubscribe_getInstance()) && !(resCaps.vgo_1 === true)) {
|
|
438
438
|
throw IllegalStateException_init_$Create$('Server does not support resource subscriptions (required for ' + toString(method) + ')');
|
|
439
439
|
}
|
|
440
440
|
} else if (equals(method, Defined_ToolsCall_getInstance()) || equals(method, Defined_ToolsList_getInstance())) {
|
|
441
|
-
var tmp5_safe_receiver = this.
|
|
442
|
-
if ((tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
441
|
+
var tmp5_safe_receiver = this.cgu_1;
|
|
442
|
+
if ((tmp5_safe_receiver == null ? null : tmp5_safe_receiver.hgp_1) == null) {
|
|
443
443
|
throw IllegalStateException_init_$Create$('Server does not support tools (required for ' + toString(method) + ')');
|
|
444
444
|
}
|
|
445
445
|
} else
|
|
446
446
|
equals(method, Defined_Initialize_getInstance()) || equals(method, Defined_Ping_getInstance());
|
|
447
447
|
};
|
|
448
|
-
protoOf(Client).
|
|
448
|
+
protoOf(Client).bg9 = function (method) {
|
|
449
449
|
if (equals(method, Defined_NotificationsRootsListChanged_getInstance())) {
|
|
450
|
-
var tmp1_safe_receiver = this.
|
|
451
|
-
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
450
|
+
var tmp1_safe_receiver = this.egu_1.pgn_1;
|
|
451
|
+
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kgn_1) === true)) {
|
|
452
452
|
throw IllegalStateException_init_$Create$('Client does not support roots list changed notifications (required for ' + toString(method) + ')');
|
|
453
453
|
}
|
|
454
454
|
} else
|
|
455
455
|
equals(method, Defined_NotificationsInitialized_getInstance()) || (equals(method, Defined_NotificationsCancelled_getInstance()) || equals(method, Defined_NotificationsProgress_getInstance()));
|
|
456
456
|
};
|
|
457
|
-
protoOf(Client).
|
|
457
|
+
protoOf(Client).cg9 = function (method) {
|
|
458
458
|
if (equals(method, Defined_SamplingCreateMessage_getInstance())) {
|
|
459
|
-
if (this.
|
|
459
|
+
if (this.egu_1.ogn_1 == null) {
|
|
460
460
|
throw IllegalStateException_init_$Create$('Client does not support sampling capability (required for ' + toString(method) + ')');
|
|
461
461
|
}
|
|
462
462
|
} else if (equals(method, Defined_RootsList_getInstance())) {
|
|
463
|
-
if (this.
|
|
463
|
+
if (this.egu_1.pgn_1 == null) {
|
|
464
464
|
throw IllegalStateException_init_$Create$('Client does not support roots capability (required for ' + toString(method) + ')');
|
|
465
465
|
}
|
|
466
466
|
} else if (equals(method, Defined_ElicitationCreate_getInstance())) {
|
|
467
|
-
if (this.
|
|
467
|
+
if (this.egu_1.qgn_1 == null) {
|
|
468
468
|
throw IllegalStateException_init_$Create$('Client does not support elicitation capability (required for ' + toString(method) + ')');
|
|
469
469
|
}
|
|
470
470
|
} else
|
|
471
471
|
equals(method, Defined_Ping_getInstance());
|
|
472
472
|
};
|
|
473
|
-
protoOf(Client).
|
|
473
|
+
protoOf(Client).wgv = function (name, arguments_0, compatibility, options, $completion) {
|
|
474
474
|
// Inline function 'kotlin.collections.mapValues' call
|
|
475
475
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
476
476
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(arguments_0.s()));
|
|
@@ -508,27 +508,27 @@
|
|
|
508
508
|
}
|
|
509
509
|
var jsonArguments = destination;
|
|
510
510
|
var request = new CallToolRequest(name, new JsonObject(jsonArguments));
|
|
511
|
-
return this.
|
|
511
|
+
return this.xgv(request, compatibility, options, $completion);
|
|
512
512
|
};
|
|
513
|
-
protoOf(Client).
|
|
513
|
+
protoOf(Client).xgv = function (request, compatibility, options, $completion) {
|
|
514
514
|
var tmp = new $callToolCOROUTINE$(this, request, compatibility, options, $completion);
|
|
515
515
|
tmp.z9_1 = Unit_instance;
|
|
516
516
|
tmp.aa_1 = null;
|
|
517
517
|
return tmp.fa();
|
|
518
518
|
};
|
|
519
|
-
protoOf(Client).
|
|
520
|
-
return this.
|
|
519
|
+
protoOf(Client).ygv = function (request, options, $completion) {
|
|
520
|
+
return this.dg9(request, options, $completion);
|
|
521
521
|
};
|
|
522
|
-
protoOf(Client).
|
|
522
|
+
protoOf(Client).zgv = function (request, options, $completion, $super) {
|
|
523
523
|
request = request === VOID ? new ListToolsRequest() : request;
|
|
524
524
|
options = options === VOID ? null : options;
|
|
525
|
-
return $super === VOID ? this.
|
|
525
|
+
return $super === VOID ? this.ygv(request, options, $completion) : $super.ygv.call(this, request, options, $completion);
|
|
526
526
|
};
|
|
527
527
|
function ClientOptions(capabilities, enforceStrictCapabilities) {
|
|
528
528
|
capabilities = capabilities === VOID ? new ClientCapabilities() : capabilities;
|
|
529
529
|
enforceStrictCapabilities = enforceStrictCapabilities === VOID ? true : enforceStrictCapabilities;
|
|
530
530
|
ProtocolOptions.call(this, enforceStrictCapabilities);
|
|
531
|
-
this.
|
|
531
|
+
this.vgv_1 = capabilities;
|
|
532
532
|
}
|
|
533
533
|
function logger$lambda() {
|
|
534
534
|
_init_properties_Client_kt__a2ryqz();
|
|
@@ -539,11 +539,11 @@
|
|
|
539
539
|
if (!properties_initialized_Client_kt_4npn83) {
|
|
540
540
|
properties_initialized_Client_kt_4npn83 = true;
|
|
541
541
|
var tmp = KotlinLogging_instance;
|
|
542
|
-
logger = tmp.
|
|
542
|
+
logger = tmp.f3i(logger$lambda);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
function _get_session__cmsix1($this) {
|
|
546
|
-
var tmp = $this.
|
|
546
|
+
var tmp = $this.kgw_1;
|
|
547
547
|
if (!(tmp == null))
|
|
548
548
|
return tmp;
|
|
549
549
|
else {
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function _get_scope__bi2zur($this) {
|
|
554
|
-
var tmp = $this.
|
|
554
|
+
var tmp = $this.lgw_1;
|
|
555
555
|
if (!(tmp == null))
|
|
556
556
|
return tmp;
|
|
557
557
|
else {
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function _get_baseUrl__6ouw37($this) {
|
|
562
|
-
var tmp0 = $this.
|
|
562
|
+
var tmp0 = $this.ngw_1;
|
|
563
563
|
var tmp = KProperty1;
|
|
564
564
|
// Inline function 'kotlin.getValue' call
|
|
565
565
|
getPropertyCallableRef('baseUrl', 1, tmp, SseClientTransport$_get_baseUrl_$ref_zecqdl(), null);
|
|
@@ -575,12 +575,12 @@
|
|
|
575
575
|
try {
|
|
576
576
|
var path = startsWith(eventData, '/') ? substring(eventData, 1) : eventData;
|
|
577
577
|
var endpointUrl = Url(_get_baseUrl__6ouw37($this) + '/' + path);
|
|
578
|
-
$this.
|
|
578
|
+
$this.jgw_1.n24(endpointUrl.toString());
|
|
579
579
|
} catch ($p) {
|
|
580
580
|
if ($p instanceof Error) {
|
|
581
581
|
var e = $p;
|
|
582
|
-
$this.
|
|
583
|
-
$this.
|
|
582
|
+
$this.rg9_1(e);
|
|
583
|
+
$this.jgw_1.x24(e);
|
|
584
584
|
throw e;
|
|
585
585
|
} else {
|
|
586
586
|
throw $p;
|
|
@@ -600,13 +600,13 @@
|
|
|
600
600
|
return tmp.fa();
|
|
601
601
|
}
|
|
602
602
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
603
|
-
this.
|
|
603
|
+
this.ygx_1 = function_0;
|
|
604
604
|
}
|
|
605
605
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
|
|
606
|
-
return this.
|
|
606
|
+
return this.ygx_1(value, $completion);
|
|
607
607
|
};
|
|
608
608
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
|
|
609
|
-
return this.
|
|
609
|
+
return this.ygx_1;
|
|
610
610
|
};
|
|
611
611
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
612
612
|
var tmp;
|
|
@@ -632,8 +632,8 @@
|
|
|
632
632
|
function SseClientTransport$baseUrl$delegate$lambda(this$0) {
|
|
633
633
|
return function () {
|
|
634
634
|
// Inline function 'kotlin.let' call
|
|
635
|
-
var url = _get_session__cmsix1(this$0).
|
|
636
|
-
var path = url.
|
|
635
|
+
var url = _get_session__cmsix1(this$0).i6z_1.k66().t66();
|
|
636
|
+
var path = url.r5h();
|
|
637
637
|
var tmp;
|
|
638
638
|
// Inline function 'kotlin.text.isEmpty' call
|
|
639
639
|
if (charSequenceLength(path) === 0) {
|
|
@@ -654,7 +654,7 @@
|
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
656
|
function SseClientTransport$start$slambda(this$0, resultContinuation) {
|
|
657
|
-
this.
|
|
657
|
+
this.hgy_1 = this$0;
|
|
658
658
|
CoroutineImpl.call(this, resultContinuation);
|
|
659
659
|
}
|
|
660
660
|
protoOf(SseClientTransport$start$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -675,7 +675,7 @@
|
|
|
675
675
|
case 0:
|
|
676
676
|
this.y9_1 = 2;
|
|
677
677
|
this.x9_1 = 1;
|
|
678
|
-
suspendResult = collectMessages(this.
|
|
678
|
+
suspendResult = collectMessages(this.hgy_1, this.igy_1, this);
|
|
679
679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
680
680
|
return suspendResult;
|
|
681
681
|
}
|
|
@@ -698,8 +698,8 @@
|
|
|
698
698
|
while (true);
|
|
699
699
|
};
|
|
700
700
|
protoOf(SseClientTransport$start$slambda).y2q = function ($this$launch, completion) {
|
|
701
|
-
var i = new SseClientTransport$start$slambda(this.
|
|
702
|
-
i.
|
|
701
|
+
var i = new SseClientTransport$start$slambda(this.hgy_1, completion);
|
|
702
|
+
i.igy_1 = $this$launch;
|
|
703
703
|
return i;
|
|
704
704
|
};
|
|
705
705
|
function SseClientTransport$start$slambda_0(this$0, resultContinuation) {
|
|
@@ -711,18 +711,18 @@
|
|
|
711
711
|
return l;
|
|
712
712
|
}
|
|
713
713
|
function SseClientTransport$collectMessages$slambda($this_collectMessages, this$0, resultContinuation) {
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
714
|
+
this.rgy_1 = $this_collectMessages;
|
|
715
|
+
this.sgy_1 = this$0;
|
|
716
716
|
CoroutineImpl.call(this, resultContinuation);
|
|
717
717
|
}
|
|
718
|
-
protoOf(SseClientTransport$collectMessages$slambda).
|
|
719
|
-
var tmp = this.
|
|
718
|
+
protoOf(SseClientTransport$collectMessages$slambda).g7w = function (event, $completion) {
|
|
719
|
+
var tmp = this.h7w(event, $completion);
|
|
720
720
|
tmp.z9_1 = Unit_instance;
|
|
721
721
|
tmp.aa_1 = null;
|
|
722
722
|
return tmp.fa();
|
|
723
723
|
};
|
|
724
724
|
protoOf(SseClientTransport$collectMessages$slambda).ra = function (p1, $completion) {
|
|
725
|
-
return this.
|
|
725
|
+
return this.g7w(p1 instanceof ServerSentEvent ? p1 : THROW_CCE(), $completion);
|
|
726
726
|
};
|
|
727
727
|
protoOf(SseClientTransport$collectMessages$slambda).fa = function () {
|
|
728
728
|
var suspendResult = this.z9_1;
|
|
@@ -732,26 +732,26 @@
|
|
|
732
732
|
switch (tmp) {
|
|
733
733
|
case 0:
|
|
734
734
|
this.y9_1 = 3;
|
|
735
|
-
ensureActive(this.
|
|
736
|
-
this.
|
|
737
|
-
if (this.
|
|
738
|
-
var error = IllegalStateException_init_$Create$('SSE error: ' + this.
|
|
739
|
-
this.
|
|
735
|
+
ensureActive(this.rgy_1);
|
|
736
|
+
this.ugy_1 = this.tgy_1.q62_1;
|
|
737
|
+
if (this.ugy_1 === 'error') {
|
|
738
|
+
var error = IllegalStateException_init_$Create$('SSE error: ' + this.tgy_1.p62_1);
|
|
739
|
+
this.sgy_1.rg9_1(error);
|
|
740
740
|
throw error;
|
|
741
741
|
} else {
|
|
742
|
-
if (this.
|
|
742
|
+
if (this.ugy_1 === 'open') {
|
|
743
743
|
this.x9_1 = 2;
|
|
744
744
|
continue $sm;
|
|
745
745
|
} else {
|
|
746
|
-
if (this.
|
|
747
|
-
var tmp0_elvis_lhs = this.
|
|
748
|
-
handleEndpoint(this.
|
|
746
|
+
if (this.ugy_1 === 'endpoint') {
|
|
747
|
+
var tmp0_elvis_lhs = this.tgy_1.p62_1;
|
|
748
|
+
handleEndpoint(this.sgy_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
749
749
|
this.x9_1 = 2;
|
|
750
750
|
continue $sm;
|
|
751
751
|
} else {
|
|
752
752
|
this.x9_1 = 1;
|
|
753
|
-
var tmp0_elvis_lhs_0 = this.
|
|
754
|
-
suspendResult = handleMessage(this.
|
|
753
|
+
var tmp0_elvis_lhs_0 = this.tgy_1.p62_1;
|
|
754
|
+
suspendResult = handleMessage(this.sgy_1, tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0, this);
|
|
755
755
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
756
756
|
return suspendResult;
|
|
757
757
|
}
|
|
@@ -779,22 +779,22 @@
|
|
|
779
779
|
}
|
|
780
780
|
while (true);
|
|
781
781
|
};
|
|
782
|
-
protoOf(SseClientTransport$collectMessages$slambda).
|
|
783
|
-
var i = new SseClientTransport$collectMessages$slambda(this.
|
|
784
|
-
i.
|
|
782
|
+
protoOf(SseClientTransport$collectMessages$slambda).h7w = function (event, completion) {
|
|
783
|
+
var i = new SseClientTransport$collectMessages$slambda(this.rgy_1, this.sgy_1, completion);
|
|
784
|
+
i.tgy_1 = event;
|
|
785
785
|
return i;
|
|
786
786
|
};
|
|
787
787
|
function SseClientTransport$collectMessages$slambda_0($this_collectMessages, this$0, resultContinuation) {
|
|
788
788
|
var i = new SseClientTransport$collectMessages$slambda($this_collectMessages, this$0, resultContinuation);
|
|
789
789
|
var l = function (event, $completion) {
|
|
790
|
-
return i.
|
|
790
|
+
return i.g7w(event, $completion);
|
|
791
791
|
};
|
|
792
792
|
l.$arity = 1;
|
|
793
793
|
return l;
|
|
794
794
|
}
|
|
795
795
|
function $startCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
796
796
|
CoroutineImpl.call(this, resultContinuation);
|
|
797
|
-
this.
|
|
797
|
+
this.dgz_1 = _this__u8e3s4;
|
|
798
798
|
}
|
|
799
799
|
protoOf($startCOROUTINE$).fa = function () {
|
|
800
800
|
var suspendResult = this.z9_1;
|
|
@@ -804,26 +804,26 @@
|
|
|
804
804
|
switch (tmp) {
|
|
805
805
|
case 0:
|
|
806
806
|
this.y9_1 = 9;
|
|
807
|
-
if (!this.
|
|
807
|
+
if (!this.dgz_1.igw_1.n9(false, true)) {
|
|
808
808
|
var message = 'SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.';
|
|
809
809
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
this.y9_1 = 6;
|
|
813
|
-
this.
|
|
814
|
-
if (this.
|
|
815
|
-
this.
|
|
813
|
+
this.fgz_1 = this.dgz_1.fgw_1;
|
|
814
|
+
if (this.fgz_1 == null) {
|
|
815
|
+
this.ggz_1 = null;
|
|
816
816
|
this.x9_1 = 2;
|
|
817
817
|
continue $sm;
|
|
818
818
|
} else {
|
|
819
819
|
var tmp_0 = this;
|
|
820
|
-
tmp_0.
|
|
821
|
-
this.
|
|
820
|
+
tmp_0.hgz_1 = this.fgz_1;
|
|
821
|
+
this.igz_1 = this.hgz_1;
|
|
822
822
|
var tmp_1 = this;
|
|
823
|
-
tmp_1.
|
|
824
|
-
this.
|
|
823
|
+
tmp_1.jgz_1 = this.igz_1;
|
|
824
|
+
this.kgz_1 = this.jgz_1;
|
|
825
825
|
this.x9_1 = 1;
|
|
826
|
-
suspendResult = sseSession(this.
|
|
826
|
+
suspendResult = sseSession(this.dgz_1.egw_1, this.kgz_1, this.dgz_1.ggw_1, VOID, VOID, this.dgz_1.hgw_1, this);
|
|
827
827
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
828
828
|
return suspendResult;
|
|
829
829
|
}
|
|
@@ -831,45 +831,45 @@
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
case 1:
|
|
834
|
-
this.
|
|
834
|
+
this.ggz_1 = suspendResult;
|
|
835
835
|
this.x9_1 = 2;
|
|
836
836
|
continue $sm;
|
|
837
837
|
case 2:
|
|
838
|
-
this.
|
|
839
|
-
if (this.
|
|
838
|
+
this.lgz_1 = this.ggz_1;
|
|
839
|
+
if (this.lgz_1 == null) {
|
|
840
840
|
this.x9_1 = 3;
|
|
841
|
-
suspendResult = sseSession_0(this.
|
|
841
|
+
suspendResult = sseSession_0(this.dgz_1.egw_1, this.dgz_1.ggw_1, VOID, VOID, this.dgz_1.hgw_1, this);
|
|
842
842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
843
843
|
return suspendResult;
|
|
844
844
|
}
|
|
845
845
|
continue $sm;
|
|
846
846
|
} else {
|
|
847
|
-
this.
|
|
847
|
+
this.mgz_1 = this.lgz_1;
|
|
848
848
|
this.x9_1 = 4;
|
|
849
849
|
continue $sm;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
case 3:
|
|
853
|
-
this.
|
|
853
|
+
this.mgz_1 = suspendResult;
|
|
854
854
|
this.x9_1 = 4;
|
|
855
855
|
continue $sm;
|
|
856
856
|
case 4:
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
var tmp_2 = this.
|
|
861
|
-
var tmp_3 = _get_scope__bi2zur(this.
|
|
862
|
-
var tmp_4 = new CoroutineName('SseMcpClientTransport.connect#' + hashCode(this.
|
|
863
|
-
tmp_2.
|
|
857
|
+
this.ngz_1 = this.mgz_1;
|
|
858
|
+
this.dgz_1.kgw_1 = this.ngz_1;
|
|
859
|
+
this.dgz_1.lgw_1 = CoroutineScope_0(_get_session__cmsix1(this.dgz_1).z1v().am(SupervisorJob()));
|
|
860
|
+
var tmp_2 = this.dgz_1;
|
|
861
|
+
var tmp_3 = _get_scope__bi2zur(this.dgz_1);
|
|
862
|
+
var tmp_4 = new CoroutineName('SseMcpClientTransport.connect#' + hashCode(this.dgz_1));
|
|
863
|
+
tmp_2.mgw_1 = launch(tmp_3, tmp_4, VOID, SseClientTransport$start$slambda_0(this.dgz_1, null));
|
|
864
864
|
this.x9_1 = 5;
|
|
865
|
-
suspendResult = this.
|
|
865
|
+
suspendResult = this.dgz_1.jgw_1.w21(this);
|
|
866
866
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
867
867
|
return suspendResult;
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
continue $sm;
|
|
871
871
|
case 5:
|
|
872
|
-
this.
|
|
872
|
+
this.egz_1 = suspendResult;
|
|
873
873
|
this.y9_1 = 9;
|
|
874
874
|
this.x9_1 = 8;
|
|
875
875
|
continue $sm;
|
|
@@ -877,9 +877,9 @@
|
|
|
877
877
|
this.y9_1 = 9;
|
|
878
878
|
var tmp_5 = this.aa_1;
|
|
879
879
|
if (tmp_5 instanceof Exception) {
|
|
880
|
-
this.
|
|
880
|
+
this.ogz_1 = this.aa_1;
|
|
881
881
|
this.x9_1 = 7;
|
|
882
|
-
suspendResult = closeResources(this.
|
|
882
|
+
suspendResult = closeResources(this.dgz_1, this);
|
|
883
883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
884
884
|
return suspendResult;
|
|
885
885
|
}
|
|
@@ -889,9 +889,9 @@
|
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
case 7:
|
|
892
|
-
this.
|
|
892
|
+
this.dgz_1.igw_1.m9(false);
|
|
893
893
|
var tmp_6 = this;
|
|
894
|
-
throw this.
|
|
894
|
+
throw this.ogz_1;
|
|
895
895
|
case 8:
|
|
896
896
|
this.y9_1 = 9;
|
|
897
897
|
return Unit_instance;
|
|
@@ -911,8 +911,8 @@
|
|
|
911
911
|
};
|
|
912
912
|
function $sendCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
913
913
|
CoroutineImpl.call(this, resultContinuation);
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
914
|
+
this.xgz_1 = _this__u8e3s4;
|
|
915
|
+
this.ygz_1 = message;
|
|
916
916
|
}
|
|
917
917
|
protoOf($sendCOROUTINE$).fa = function () {
|
|
918
918
|
var suspendResult = this.z9_1;
|
|
@@ -922,45 +922,45 @@
|
|
|
922
922
|
switch (tmp) {
|
|
923
923
|
case 0:
|
|
924
924
|
this.y9_1 = 6;
|
|
925
|
-
if (!this.
|
|
925
|
+
if (!this.xgz_1.igw_1.i9()) {
|
|
926
926
|
var message = 'SseClientTransport is not initialized!';
|
|
927
927
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
var tmp0_safe_receiver = this.
|
|
930
|
+
var tmp0_safe_receiver = this.xgz_1.mgw_1;
|
|
931
931
|
if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1w()) === true)) {
|
|
932
932
|
var message_0 = 'SseClientTransport is closed!';
|
|
933
933
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
if (!this.
|
|
936
|
+
if (!this.xgz_1.jgw_1.v1w()) {
|
|
937
937
|
var message_1 = 'Not connected!';
|
|
938
938
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
this.y9_1 = 5;
|
|
942
942
|
var tmp_0 = this;
|
|
943
|
-
tmp_0.
|
|
943
|
+
tmp_0.zgz_1 = this.xgz_1.egw_1;
|
|
944
944
|
var tmp_1 = this;
|
|
945
|
-
tmp_1.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
945
|
+
tmp_1.ah0_1 = this.xgz_1.jgw_1.f1z();
|
|
946
|
+
this.bh0_1 = this.zgz_1;
|
|
947
|
+
this.ch0_1 = this.ah0_1;
|
|
948
948
|
var tmp_2 = this;
|
|
949
|
-
tmp_2.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
952
|
-
this.
|
|
953
|
-
var $this$post = this.
|
|
954
|
-
url($this$post, this.
|
|
955
|
-
this.
|
|
956
|
-
append($this$post.
|
|
949
|
+
tmp_2.dh0_1 = this.bh0_1;
|
|
950
|
+
this.eh0_1 = this.dh0_1;
|
|
951
|
+
this.fh0_1 = new HttpRequestBuilder();
|
|
952
|
+
this.fh0_1.c65_1 = Companion_getInstance().r5c_1;
|
|
953
|
+
var $this$post = this.fh0_1;
|
|
954
|
+
url($this$post, this.ch0_1);
|
|
955
|
+
this.xgz_1.hgw_1($this$post);
|
|
956
|
+
append($this$post.d65_1, HttpHeaders_getInstance().c59_1, Application_getInstance().m56_1);
|
|
957
957
|
var tmp0 = get_McpJson();
|
|
958
|
-
var value = this.
|
|
958
|
+
var value = this.ygz_1;
|
|
959
959
|
var this_0 = tmp0.lz();
|
|
960
960
|
var this_1 = serializer(this_0, createKType(getKClass(JSONRPCMessage), arrayOf([]), false));
|
|
961
961
|
var body = tmp0.gw(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), value);
|
|
962
962
|
if (body == null) {
|
|
963
|
-
$this$post.
|
|
963
|
+
$this$post.e65_1 = NullBody_instance;
|
|
964
964
|
var tmp_3 = PrimitiveClasses_getInstance().fd();
|
|
965
965
|
var tmp_4;
|
|
966
966
|
try {
|
|
@@ -975,13 +975,13 @@
|
|
|
975
975
|
}
|
|
976
976
|
tmp_4 = tmp_5;
|
|
977
977
|
}
|
|
978
|
-
$this$post.
|
|
978
|
+
$this$post.o6b(new TypeInfo(tmp_3, tmp_4));
|
|
979
979
|
} else {
|
|
980
980
|
if (body instanceof OutgoingContent) {
|
|
981
|
-
$this$post.
|
|
982
|
-
$this$post.
|
|
981
|
+
$this$post.e65_1 = body;
|
|
982
|
+
$this$post.o6b(null);
|
|
983
983
|
} else {
|
|
984
|
-
$this$post.
|
|
984
|
+
$this$post.e65_1 = body;
|
|
985
985
|
var tmp_6 = PrimitiveClasses_getInstance().fd();
|
|
986
986
|
var tmp_7;
|
|
987
987
|
try {
|
|
@@ -996,29 +996,29 @@
|
|
|
996
996
|
}
|
|
997
997
|
tmp_7 = tmp_8;
|
|
998
998
|
}
|
|
999
|
-
$this$post.
|
|
999
|
+
$this$post.o6b(new TypeInfo(tmp_6, tmp_7));
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
|
-
this.
|
|
1003
|
+
this.fh0_1.c65_1 = Companion_getInstance().r5c_1;
|
|
1004
1004
|
var tmp_9 = this;
|
|
1005
|
-
tmp_9.
|
|
1005
|
+
tmp_9.gh0_1 = this.eh0_1;
|
|
1006
1006
|
var tmp_10 = this;
|
|
1007
|
-
tmp_10.
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1007
|
+
tmp_10.hh0_1 = this.fh0_1;
|
|
1008
|
+
this.ih0_1 = this.gh0_1;
|
|
1009
|
+
this.jh0_1 = this.hh0_1;
|
|
1010
1010
|
this.x9_1 = 1;
|
|
1011
|
-
suspendResult = (new HttpStatement(this.
|
|
1011
|
+
suspendResult = (new HttpStatement(this.jh0_1, this.ih0_1)).i7f(this);
|
|
1012
1012
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1013
1013
|
return suspendResult;
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
1016
|
continue $sm;
|
|
1017
1017
|
case 1:
|
|
1018
|
-
this.
|
|
1019
|
-
if (!isSuccess(this.
|
|
1018
|
+
this.kh0_1 = suspendResult;
|
|
1019
|
+
if (!isSuccess(this.kh0_1.f5i())) {
|
|
1020
1020
|
this.x9_1 = 4;
|
|
1021
|
-
suspendResult = bodyAsText(this.
|
|
1021
|
+
suspendResult = bodyAsText(this.kh0_1, VOID, this);
|
|
1022
1022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1023
1023
|
return suspendResult;
|
|
1024
1024
|
}
|
|
@@ -1037,14 +1037,14 @@
|
|
|
1037
1037
|
return Unit_instance;
|
|
1038
1038
|
case 4:
|
|
1039
1039
|
var text = suspendResult;
|
|
1040
|
-
var message_2 = 'Error POSTing to endpoint (HTTP ' + this.
|
|
1040
|
+
var message_2 = 'Error POSTing to endpoint (HTTP ' + this.kh0_1.f5i().toString() + '): ' + text;
|
|
1041
1041
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1042
1042
|
case 5:
|
|
1043
1043
|
this.y9_1 = 6;
|
|
1044
1044
|
var tmp_11 = this.aa_1;
|
|
1045
1045
|
if (tmp_11 instanceof Error) {
|
|
1046
1046
|
var e = this.aa_1;
|
|
1047
|
-
this.
|
|
1047
|
+
this.xgz_1.rg9_1(e);
|
|
1048
1048
|
throw e;
|
|
1049
1049
|
} else {
|
|
1050
1050
|
throw this.aa_1;
|
|
@@ -1066,8 +1066,8 @@
|
|
|
1066
1066
|
};
|
|
1067
1067
|
function $collectMessagesCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1068
1068
|
CoroutineImpl.call(this, resultContinuation);
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1069
|
+
this.wgw_1 = _this__u8e3s4;
|
|
1070
|
+
this.xgw_1 = _this__u8e3s4_0;
|
|
1071
1071
|
}
|
|
1072
1072
|
protoOf($collectMessagesCOROUTINE$).fa = function () {
|
|
1073
1073
|
var suspendResult = this.z9_1;
|
|
@@ -1083,8 +1083,8 @@
|
|
|
1083
1083
|
this.y9_1 = 4;
|
|
1084
1084
|
this.y9_1 = 3;
|
|
1085
1085
|
this.x9_1 = 2;
|
|
1086
|
-
var tmp_0 = _get_session__cmsix1(this.
|
|
1087
|
-
var tmp_1 = SseClientTransport$collectMessages$slambda_0(this.
|
|
1086
|
+
var tmp_0 = _get_session__cmsix1(this.wgw_1).d6z();
|
|
1087
|
+
var tmp_1 = SseClientTransport$collectMessages$slambda_0(this.xgw_1, this.wgw_1, null);
|
|
1088
1088
|
suspendResult = tmp_0.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1089
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1090
1090
|
return suspendResult;
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
|
|
1093
1093
|
continue $sm;
|
|
1094
1094
|
case 2:
|
|
1095
|
-
this.
|
|
1095
|
+
this.ygw_1 = suspendResult;
|
|
1096
1096
|
this.y9_1 = 8;
|
|
1097
1097
|
this.x9_1 = 6;
|
|
1098
1098
|
continue $sm;
|
|
@@ -1100,16 +1100,16 @@
|
|
|
1100
1100
|
this.y9_1 = 4;
|
|
1101
1101
|
var tmp_2 = this.aa_1;
|
|
1102
1102
|
if (tmp_2 instanceof CancellationException) {
|
|
1103
|
-
this.
|
|
1103
|
+
this.zgw_1 = this.aa_1;
|
|
1104
1104
|
var tmp_3 = this;
|
|
1105
|
-
throw this.
|
|
1105
|
+
throw this.zgw_1;
|
|
1106
1106
|
} else {
|
|
1107
1107
|
var tmp_4 = this.aa_1;
|
|
1108
1108
|
if (tmp_4 instanceof Error) {
|
|
1109
|
-
this.
|
|
1109
|
+
this.agx_1 = this.aa_1;
|
|
1110
1110
|
var tmp_5 = this;
|
|
1111
|
-
this.
|
|
1112
|
-
throw this.
|
|
1111
|
+
this.wgw_1.rg9_1(this.agx_1);
|
|
1112
|
+
throw this.agx_1;
|
|
1113
1113
|
} else {
|
|
1114
1114
|
throw this.aa_1;
|
|
1115
1115
|
}
|
|
@@ -1117,20 +1117,20 @@
|
|
|
1117
1117
|
|
|
1118
1118
|
case 4:
|
|
1119
1119
|
this.y9_1 = 8;
|
|
1120
|
-
this.
|
|
1120
|
+
this.bgx_1 = this.aa_1;
|
|
1121
1121
|
this.x9_1 = 5;
|
|
1122
|
-
suspendResult = closeResources(this.
|
|
1122
|
+
suspendResult = closeResources(this.wgw_1, this);
|
|
1123
1123
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1124
1124
|
return suspendResult;
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
1127
|
continue $sm;
|
|
1128
1128
|
case 5:
|
|
1129
|
-
throw this.
|
|
1129
|
+
throw this.bgx_1;
|
|
1130
1130
|
case 6:
|
|
1131
1131
|
this.y9_1 = 8;
|
|
1132
1132
|
this.x9_1 = 7;
|
|
1133
|
-
suspendResult = closeResources(this.
|
|
1133
|
+
suspendResult = closeResources(this.wgw_1, this);
|
|
1134
1134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1135
|
return suspendResult;
|
|
1136
1136
|
}
|
|
@@ -1154,8 +1154,8 @@
|
|
|
1154
1154
|
};
|
|
1155
1155
|
function $handleMessageCOROUTINE$(_this__u8e3s4, data, resultContinuation) {
|
|
1156
1156
|
CoroutineImpl.call(this, resultContinuation);
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1157
|
+
this.kgx_1 = _this__u8e3s4;
|
|
1158
|
+
this.lgx_1 = data;
|
|
1159
1159
|
}
|
|
1160
1160
|
protoOf($handleMessageCOROUTINE$).fa = function () {
|
|
1161
1161
|
var suspendResult = this.z9_1;
|
|
@@ -1168,12 +1168,12 @@
|
|
|
1168
1168
|
this.y9_1 = 2;
|
|
1169
1169
|
var tmp_0 = this;
|
|
1170
1170
|
var tmp0 = get_McpJson();
|
|
1171
|
-
var string = this.
|
|
1171
|
+
var string = this.lgx_1;
|
|
1172
1172
|
var this_0 = tmp0.lz();
|
|
1173
1173
|
var this_1 = serializer(this_0, createKType(getKClass(JSONRPCMessage), arrayOf([]), false));
|
|
1174
|
-
tmp_0.
|
|
1174
|
+
tmp_0.mgx_1 = tmp0.hw(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), string);
|
|
1175
1175
|
this.x9_1 = 1;
|
|
1176
|
-
suspendResult = this.
|
|
1176
|
+
suspendResult = this.kgx_1.tg9_1(this.mgx_1, this);
|
|
1177
1177
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1178
1178
|
return suspendResult;
|
|
1179
1179
|
}
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
var tmp_1 = this.aa_1;
|
|
1189
1189
|
if (tmp_1 instanceof SerializationException) {
|
|
1190
1190
|
var e = this.aa_1;
|
|
1191
|
-
this.
|
|
1191
|
+
this.kgx_1.rg9_1(e);
|
|
1192
1192
|
this.x9_1 = 4;
|
|
1193
1193
|
continue $sm;
|
|
1194
1194
|
} else {
|
|
@@ -1214,7 +1214,7 @@
|
|
|
1214
1214
|
};
|
|
1215
1215
|
function $closeResourcesCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1216
1216
|
CoroutineImpl.call(this, resultContinuation);
|
|
1217
|
-
this.
|
|
1217
|
+
this.vgx_1 = _this__u8e3s4;
|
|
1218
1218
|
}
|
|
1219
1219
|
protoOf($closeResourcesCOROUTINE$).fa = function () {
|
|
1220
1220
|
var suspendResult = this.z9_1;
|
|
@@ -1224,16 +1224,16 @@
|
|
|
1224
1224
|
switch (tmp) {
|
|
1225
1225
|
case 0:
|
|
1226
1226
|
this.y9_1 = 5;
|
|
1227
|
-
if (!this.
|
|
1227
|
+
if (!this.vgx_1.igw_1.n9(true, false))
|
|
1228
1228
|
return Unit_instance;
|
|
1229
|
-
this.
|
|
1230
|
-
if (this.
|
|
1231
|
-
this.
|
|
1229
|
+
this.wgx_1 = this.vgx_1.mgw_1;
|
|
1230
|
+
if (this.wgx_1 == null) {
|
|
1231
|
+
this.xgx_1 = null;
|
|
1232
1232
|
this.x9_1 = 2;
|
|
1233
1233
|
continue $sm;
|
|
1234
1234
|
} else {
|
|
1235
1235
|
this.x9_1 = 1;
|
|
1236
|
-
suspendResult = cancelAndJoin(this.
|
|
1236
|
+
suspendResult = cancelAndJoin(this.wgx_1, this);
|
|
1237
1237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1238
1238
|
return suspendResult;
|
|
1239
1239
|
}
|
|
@@ -1242,20 +1242,20 @@
|
|
|
1242
1242
|
|
|
1243
1243
|
case 1:
|
|
1244
1244
|
var tmp_0 = this;
|
|
1245
|
-
tmp_0.
|
|
1245
|
+
tmp_0.xgx_1 = Unit_instance;
|
|
1246
1246
|
this.x9_1 = 2;
|
|
1247
1247
|
continue $sm;
|
|
1248
1248
|
case 2:
|
|
1249
1249
|
this.y9_1 = 3;
|
|
1250
|
-
if (!(this.
|
|
1251
|
-
cancel(_get_session__cmsix1(this.
|
|
1250
|
+
if (!(this.vgx_1.kgw_1 == null)) {
|
|
1251
|
+
cancel(_get_session__cmsix1(this.vgx_1));
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
if (!(this.
|
|
1255
|
-
cancel(_get_scope__bi2zur(this.
|
|
1254
|
+
if (!(this.vgx_1.lgw_1 == null)) {
|
|
1255
|
+
cancel(_get_scope__bi2zur(this.vgx_1));
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
|
-
this.
|
|
1258
|
+
this.vgx_1.jgw_1.k1x();
|
|
1259
1259
|
this.y9_1 = 5;
|
|
1260
1260
|
this.x9_1 = 4;
|
|
1261
1261
|
continue $sm;
|
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
var tmp_1 = this.aa_1;
|
|
1265
1265
|
if (tmp_1 instanceof Error) {
|
|
1266
1266
|
var e = this.aa_1;
|
|
1267
|
-
this.
|
|
1267
|
+
this.vgx_1.rg9_1(e);
|
|
1268
1268
|
this.x9_1 = 4;
|
|
1269
1269
|
continue $sm;
|
|
1270
1270
|
} else {
|
|
@@ -1273,7 +1273,7 @@
|
|
|
1273
1273
|
|
|
1274
1274
|
case 4:
|
|
1275
1275
|
this.y9_1 = 5;
|
|
1276
|
-
this.
|
|
1276
|
+
this.vgx_1.qg9_1();
|
|
1277
1277
|
return Unit_instance;
|
|
1278
1278
|
case 5:
|
|
1279
1279
|
throw this.aa_1;
|
|
@@ -1299,31 +1299,31 @@
|
|
|
1299
1299
|
}
|
|
1300
1300
|
requestBuilder = tmp;
|
|
1301
1301
|
AbstractTransport.call(this);
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1302
|
+
this.egw_1 = client;
|
|
1303
|
+
this.fgw_1 = urlString;
|
|
1304
|
+
this.ggw_1 = reconnectionTime;
|
|
1305
|
+
this.hgw_1 = requestBuilder;
|
|
1306
|
+
this.igw_1 = new AtomicBoolean(false);
|
|
1307
|
+
this.jgw_1 = CompletableDeferred();
|
|
1308
|
+
this.mgw_1 = null;
|
|
1309
1309
|
var tmp_0 = this;
|
|
1310
|
-
tmp_0.
|
|
1310
|
+
tmp_0.ngw_1 = lazy(SseClientTransport$baseUrl$delegate$lambda(this));
|
|
1311
1311
|
}
|
|
1312
|
-
protoOf(SseClientTransport).
|
|
1312
|
+
protoOf(SseClientTransport).vfn = function ($completion) {
|
|
1313
1313
|
var tmp = new $startCOROUTINE$(this, $completion);
|
|
1314
1314
|
tmp.z9_1 = Unit_instance;
|
|
1315
1315
|
tmp.aa_1 = null;
|
|
1316
1316
|
return tmp.fa();
|
|
1317
1317
|
};
|
|
1318
|
-
protoOf(SseClientTransport).
|
|
1318
|
+
protoOf(SseClientTransport).ug5 = function (message, $completion) {
|
|
1319
1319
|
var tmp = new $sendCOROUTINE$(this, message, $completion);
|
|
1320
1320
|
tmp.z9_1 = Unit_instance;
|
|
1321
1321
|
tmp.aa_1 = null;
|
|
1322
1322
|
return tmp.fa();
|
|
1323
1323
|
};
|
|
1324
|
-
protoOf(SseClientTransport).
|
|
1324
|
+
protoOf(SseClientTransport).ec9 = function ($completion) {
|
|
1325
1325
|
// Inline function 'kotlin.check' call
|
|
1326
|
-
if (!this.
|
|
1326
|
+
if (!this.igw_1.i9()) {
|
|
1327
1327
|
var message = 'SseClientTransport is not initialized!';
|
|
1328
1328
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1329
1329
|
}
|