@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
package/ktor-ktor-server-sse.js
CHANGED
|
@@ -28,35 +28,35 @@
|
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
31
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
32
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
33
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
34
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
31
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
32
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
33
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
34
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
35
35
|
var writeStringUtf8 = kotlin_io_ktor_ktor_io.$_$.s;
|
|
36
|
-
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
37
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
36
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
37
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
38
38
|
var VOID = kotlin_kotlin.$_$.h;
|
|
39
39
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
40
40
|
var route = kotlin_io_ktor_ktor_server_core.$_$.g1;
|
|
41
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
41
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
42
42
|
var RoutingContext = kotlin_io_ktor_ktor_server_core.$_$.d1;
|
|
43
43
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
44
44
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
45
45
|
var header = kotlin_io_ktor_ktor_server_core.$_$.c1;
|
|
46
46
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
47
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
47
|
+
var arrayOf = kotlin_kotlin.$_$.rl;
|
|
48
48
|
var createKType = kotlin_kotlin.$_$.c;
|
|
49
49
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
50
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
50
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
51
51
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.s;
|
|
52
52
|
var createApplicationPlugin = kotlin_io_ktor_ktor_server_core.$_$.j;
|
|
53
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
54
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
53
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
55
55
|
var get_uri = kotlin_io_ktor_ktor_server_core.$_$.a1;
|
|
56
|
-
var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
56
|
+
var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
57
57
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.w;
|
|
58
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
59
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
58
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
59
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d2;
|
|
60
60
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.e1;
|
|
61
61
|
//endregion
|
|
62
62
|
//region block: pre-declaration
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
}
|
|
80
80
|
function $sendCOROUTINE$(_this__u8e3s4, event, resultContinuation) {
|
|
81
81
|
CoroutineImpl.call(this, resultContinuation);
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
82
|
+
this.gc8_1 = _this__u8e3s4;
|
|
83
|
+
this.hc8_1 = event;
|
|
84
84
|
}
|
|
85
85
|
protoOf($sendCOROUTINE$).fa = function () {
|
|
86
86
|
var suspendResult = this.z9_1;
|
|
@@ -91,44 +91,44 @@
|
|
|
91
91
|
case 0:
|
|
92
92
|
this.y9_1 = 6;
|
|
93
93
|
var tmp_0 = this;
|
|
94
|
-
tmp_0.
|
|
95
|
-
this.
|
|
94
|
+
tmp_0.ic8_1 = this.gc8_1.pc8_1;
|
|
95
|
+
this.jc8_1 = this.ic8_1;
|
|
96
96
|
var tmp_1 = this;
|
|
97
|
-
tmp_1.
|
|
97
|
+
tmp_1.kc8_1 = null;
|
|
98
98
|
this.x9_1 = 1;
|
|
99
|
-
suspendResult = this.
|
|
99
|
+
suspendResult = this.jc8_1.i32(this.kc8_1, this);
|
|
100
100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
101
101
|
return suspendResult;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
continue $sm;
|
|
105
105
|
case 1:
|
|
106
|
-
this.
|
|
106
|
+
this.lc8_1 = Unit_instance;
|
|
107
107
|
this.x9_1 = 2;
|
|
108
108
|
continue $sm;
|
|
109
109
|
case 2:
|
|
110
110
|
this.y9_1 = 5;
|
|
111
111
|
this.x9_1 = 3;
|
|
112
|
-
suspendResult = writeSSE(this.
|
|
112
|
+
suspendResult = writeSSE(this.gc8_1, this.gc8_1.mc8_1, this.hc8_1, this);
|
|
113
113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
114
114
|
return suspendResult;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
continue $sm;
|
|
118
118
|
case 3:
|
|
119
|
-
this.
|
|
119
|
+
this.lc8_1 = Unit_instance;
|
|
120
120
|
this.y9_1 = 6;
|
|
121
121
|
this.x9_1 = 4;
|
|
122
122
|
continue $sm;
|
|
123
123
|
case 4:
|
|
124
|
-
this.
|
|
124
|
+
this.lc8_1;
|
|
125
125
|
this.y9_1 = 6;
|
|
126
|
-
this.
|
|
126
|
+
this.jc8_1.k32(this.kc8_1);
|
|
127
127
|
return Unit_instance;
|
|
128
128
|
case 5:
|
|
129
129
|
this.y9_1 = 6;
|
|
130
130
|
var t = this.aa_1;
|
|
131
|
-
this.
|
|
131
|
+
this.jc8_1.k32(this.kc8_1);
|
|
132
132
|
throw t;
|
|
133
133
|
case 6:
|
|
134
134
|
throw this.aa_1;
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
};
|
|
147
147
|
function $closeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
148
148
|
CoroutineImpl.call(this, resultContinuation);
|
|
149
|
-
this.
|
|
149
|
+
this.yc8_1 = _this__u8e3s4;
|
|
150
150
|
}
|
|
151
151
|
protoOf($closeCOROUTINE$).fa = function () {
|
|
152
152
|
var suspendResult = this.z9_1;
|
|
@@ -157,44 +157,44 @@
|
|
|
157
157
|
case 0:
|
|
158
158
|
this.y9_1 = 6;
|
|
159
159
|
var tmp_0 = this;
|
|
160
|
-
tmp_0.
|
|
161
|
-
this.
|
|
160
|
+
tmp_0.zc8_1 = this.yc8_1.pc8_1;
|
|
161
|
+
this.ac9_1 = this.zc8_1;
|
|
162
162
|
var tmp_1 = this;
|
|
163
|
-
tmp_1.
|
|
163
|
+
tmp_1.bc9_1 = null;
|
|
164
164
|
this.x9_1 = 1;
|
|
165
|
-
suspendResult = this.
|
|
165
|
+
suspendResult = this.ac9_1.i32(this.bc9_1, this);
|
|
166
166
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
167
167
|
return suspendResult;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
continue $sm;
|
|
171
171
|
case 1:
|
|
172
|
-
this.
|
|
172
|
+
this.cc9_1 = Unit_instance;
|
|
173
173
|
this.x9_1 = 2;
|
|
174
174
|
continue $sm;
|
|
175
175
|
case 2:
|
|
176
176
|
this.y9_1 = 5;
|
|
177
177
|
this.x9_1 = 3;
|
|
178
|
-
suspendResult = this.
|
|
178
|
+
suspendResult = this.yc8_1.mc8_1.t4h(this);
|
|
179
179
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
180
180
|
return suspendResult;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
continue $sm;
|
|
184
184
|
case 3:
|
|
185
|
-
this.
|
|
185
|
+
this.cc9_1 = Unit_instance;
|
|
186
186
|
this.y9_1 = 6;
|
|
187
187
|
this.x9_1 = 4;
|
|
188
188
|
continue $sm;
|
|
189
189
|
case 4:
|
|
190
|
-
this.
|
|
190
|
+
this.cc9_1;
|
|
191
191
|
this.y9_1 = 6;
|
|
192
|
-
this.
|
|
192
|
+
this.ac9_1.k32(this.bc9_1);
|
|
193
193
|
return Unit_instance;
|
|
194
194
|
case 5:
|
|
195
195
|
this.y9_1 = 6;
|
|
196
196
|
var t = this.aa_1;
|
|
197
|
-
this.
|
|
197
|
+
this.ac9_1.k32(this.bc9_1);
|
|
198
198
|
throw t;
|
|
199
199
|
case 6:
|
|
200
200
|
throw this.aa_1;
|
|
@@ -212,9 +212,9 @@
|
|
|
212
212
|
};
|
|
213
213
|
function $writeSSECOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, event, resultContinuation) {
|
|
214
214
|
CoroutineImpl.call(this, resultContinuation);
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
215
|
+
this.vc7_1 = _this__u8e3s4;
|
|
216
|
+
this.wc7_1 = _this__u8e3s4_0;
|
|
217
|
+
this.xc7_1 = event;
|
|
218
218
|
}
|
|
219
219
|
protoOf($writeSSECOROUTINE$).fa = function () {
|
|
220
220
|
var suspendResult = this.z9_1;
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
case 0:
|
|
226
226
|
this.y9_1 = 3;
|
|
227
227
|
this.x9_1 = 1;
|
|
228
|
-
suspendResult = writeStringUtf8(this.
|
|
228
|
+
suspendResult = writeStringUtf8(this.wc7_1, this.xc7_1.toString() + '\r\n', this);
|
|
229
229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
230
230
|
return suspendResult;
|
|
231
231
|
}
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
continue $sm;
|
|
234
234
|
case 1:
|
|
235
235
|
this.x9_1 = 2;
|
|
236
|
-
suspendResult = this.
|
|
236
|
+
suspendResult = this.wc7_1.h4h(this);
|
|
237
237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
238
238
|
return suspendResult;
|
|
239
239
|
}
|
|
@@ -256,28 +256,28 @@
|
|
|
256
256
|
while (true);
|
|
257
257
|
};
|
|
258
258
|
function DefaultServerSSESession(output, call, coroutineContext) {
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
259
|
+
this.mc8_1 = output;
|
|
260
|
+
this.nc8_1 = call;
|
|
261
|
+
this.oc8_1 = coroutineContext;
|
|
262
|
+
this.pc8_1 = Mutex();
|
|
263
263
|
}
|
|
264
264
|
protoOf(DefaultServerSSESession).z1v = function () {
|
|
265
|
-
return this.
|
|
265
|
+
return this.oc8_1;
|
|
266
266
|
};
|
|
267
|
-
protoOf(DefaultServerSSESession).
|
|
267
|
+
protoOf(DefaultServerSSESession).dc9 = function (event, $completion) {
|
|
268
268
|
var tmp = new $sendCOROUTINE$(this, event, $completion);
|
|
269
269
|
tmp.z9_1 = Unit_instance;
|
|
270
270
|
tmp.aa_1 = null;
|
|
271
271
|
return tmp.fa();
|
|
272
272
|
};
|
|
273
|
-
protoOf(DefaultServerSSESession).
|
|
273
|
+
protoOf(DefaultServerSSESession).ec9 = function ($completion) {
|
|
274
274
|
var tmp = new $closeCOROUTINE$(this, $completion);
|
|
275
275
|
tmp.z9_1 = Unit_instance;
|
|
276
276
|
tmp.aa_1 = null;
|
|
277
277
|
return tmp.fa();
|
|
278
278
|
};
|
|
279
279
|
function sse(_this__u8e3s4, path, handler) {
|
|
280
|
-
var tmp = Companion_getInstance().
|
|
280
|
+
var tmp = Companion_getInstance().q5c_1;
|
|
281
281
|
route(_this__u8e3s4, path, tmp, sse$lambda(handler));
|
|
282
282
|
}
|
|
283
283
|
function sse_0(_this__u8e3s4, handler) {
|
|
@@ -287,8 +287,8 @@
|
|
|
287
287
|
return processSSE(_this__u8e3s4, null, handler);
|
|
288
288
|
}
|
|
289
289
|
function processSSE(_this__u8e3s4, serialize, handler) {
|
|
290
|
-
_this__u8e3s4.
|
|
291
|
-
_this__u8e3s4.
|
|
290
|
+
_this__u8e3s4.eb9(get_SSE());
|
|
291
|
+
_this__u8e3s4.pae(processSSE$slambda_0(handler, serialize, null));
|
|
292
292
|
}
|
|
293
293
|
function sse$lambda($handler) {
|
|
294
294
|
return function ($this$route) {
|
|
@@ -297,18 +297,18 @@
|
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
function processSSE$slambda($handler, $serialize, resultContinuation) {
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
300
|
+
this.nc9_1 = $handler;
|
|
301
|
+
this.oc9_1 = $serialize;
|
|
302
302
|
CoroutineImpl.call(this, resultContinuation);
|
|
303
303
|
}
|
|
304
|
-
protoOf(processSSE$slambda).
|
|
305
|
-
var tmp = this.
|
|
304
|
+
protoOf(processSSE$slambda).uc9 = function ($this$handle, $completion) {
|
|
305
|
+
var tmp = this.vc9($this$handle, $completion);
|
|
306
306
|
tmp.z9_1 = Unit_instance;
|
|
307
307
|
tmp.aa_1 = null;
|
|
308
308
|
return tmp.fa();
|
|
309
309
|
};
|
|
310
310
|
protoOf(processSSE$slambda).ra = function (p1, $completion) {
|
|
311
|
-
return this.
|
|
311
|
+
return this.uc9(p1 instanceof RoutingContext ? p1 : THROW_CCE(), $completion);
|
|
312
312
|
};
|
|
313
313
|
protoOf(processSSE$slambda).fa = function () {
|
|
314
314
|
var suspendResult = this.z9_1;
|
|
@@ -318,16 +318,16 @@
|
|
|
318
318
|
switch (tmp) {
|
|
319
319
|
case 0:
|
|
320
320
|
this.y9_1 = 2;
|
|
321
|
-
header(this.
|
|
322
|
-
header(this.
|
|
323
|
-
header(this.
|
|
324
|
-
header(this.
|
|
321
|
+
header(this.pc9_1.gb9_1.b64(), HttpHeaders_getInstance().c59_1, Text_getInstance().z57_1.toString());
|
|
322
|
+
header(this.pc9_1.gb9_1.b64(), HttpHeaders_getInstance().u58_1, 'no-store');
|
|
323
|
+
header(this.pc9_1.gb9_1.b64(), HttpHeaders_getInstance().v58_1, 'keep-alive');
|
|
324
|
+
header(this.pc9_1.gb9_1.b64(), 'X-Accel-Buffering', 'no');
|
|
325
325
|
var tmp_0 = this;
|
|
326
|
-
tmp_0.
|
|
326
|
+
tmp_0.qc9_1 = this.pc9_1.gb9_1;
|
|
327
327
|
var tmp_1 = this;
|
|
328
|
-
tmp_1.
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
328
|
+
tmp_1.rc9_1 = new SSEServerContent(this.pc9_1.gb9_1, this.nc9_1, this.oc9_1);
|
|
329
|
+
this.sc9_1 = this.qc9_1;
|
|
330
|
+
this.tc9_1 = this.rc9_1;
|
|
331
331
|
this.x9_1 = 1;
|
|
332
332
|
var tmp_2 = getKClass(SSEServerContent);
|
|
333
333
|
var tmp_3;
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
tmp_3 = tmp_4;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
suspendResult = this.
|
|
347
|
+
suspendResult = this.sc9_1.pah(this.tc9_1, new TypeInfo(tmp_2, tmp_3), this);
|
|
348
348
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
349
349
|
return suspendResult;
|
|
350
350
|
}
|
|
@@ -366,15 +366,15 @@
|
|
|
366
366
|
}
|
|
367
367
|
while (true);
|
|
368
368
|
};
|
|
369
|
-
protoOf(processSSE$slambda).
|
|
370
|
-
var i = new processSSE$slambda(this.
|
|
371
|
-
i.
|
|
369
|
+
protoOf(processSSE$slambda).vc9 = function ($this$handle, completion) {
|
|
370
|
+
var i = new processSSE$slambda(this.nc9_1, this.oc9_1, completion);
|
|
371
|
+
i.pc9_1 = $this$handle;
|
|
372
372
|
return i;
|
|
373
373
|
};
|
|
374
374
|
function processSSE$slambda_0($handler, $serialize, resultContinuation) {
|
|
375
375
|
var i = new processSSE$slambda($handler, $serialize, resultContinuation);
|
|
376
376
|
var l = function ($this$handle, $completion) {
|
|
377
|
-
return i.
|
|
377
|
+
return i.uc9($this$handle, $completion);
|
|
378
378
|
};
|
|
379
379
|
l.$arity = 1;
|
|
380
380
|
return l;
|
|
@@ -404,32 +404,32 @@
|
|
|
404
404
|
function SSEServerContent$writeTo$3$1($session, this$0) {
|
|
405
405
|
var tmp = this;
|
|
406
406
|
var tmp_0 = $session._v;
|
|
407
|
-
tmp.
|
|
408
|
-
this.
|
|
407
|
+
tmp.wc9_1 = tmp_0 instanceof DefaultServerSSESession ? tmp_0 : THROW_CCE();
|
|
408
|
+
this.xc9_1 = this$0.bca_1;
|
|
409
409
|
}
|
|
410
|
-
protoOf(SSEServerContent$writeTo$3$1).
|
|
411
|
-
return this.
|
|
410
|
+
protoOf(SSEServerContent$writeTo$3$1).dc9 = function (event, $completion) {
|
|
411
|
+
return this.wc9_1.dc9(event, $completion);
|
|
412
412
|
};
|
|
413
|
-
protoOf(SSEServerContent$writeTo$3$1).
|
|
414
|
-
return this.
|
|
413
|
+
protoOf(SSEServerContent$writeTo$3$1).ec9 = function ($completion) {
|
|
414
|
+
return this.wc9_1.ec9($completion);
|
|
415
415
|
};
|
|
416
416
|
protoOf(SSEServerContent$writeTo$3$1).z1v = function () {
|
|
417
|
-
return this.
|
|
417
|
+
return this.wc9_1.oc8_1;
|
|
418
418
|
};
|
|
419
419
|
function SSEServerContent$writeTo$slambda($session, $channel, this$0, resultContinuation) {
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
422
|
-
this.
|
|
420
|
+
this.lca_1 = $session;
|
|
421
|
+
this.mca_1 = $channel;
|
|
422
|
+
this.nca_1 = this$0;
|
|
423
423
|
CoroutineImpl.call(this, resultContinuation);
|
|
424
424
|
}
|
|
425
|
-
protoOf(SSEServerContent$writeTo$slambda).
|
|
425
|
+
protoOf(SSEServerContent$writeTo$slambda).rca = function ($this$coroutineScope, $completion) {
|
|
426
426
|
var tmp = this.y2q($this$coroutineScope, $completion);
|
|
427
427
|
tmp.z9_1 = Unit_instance;
|
|
428
428
|
tmp.aa_1 = null;
|
|
429
429
|
return tmp.fa();
|
|
430
430
|
};
|
|
431
431
|
protoOf(SSEServerContent$writeTo$slambda).ra = function (p1, $completion) {
|
|
432
|
-
return this.
|
|
432
|
+
return this.rca((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
433
433
|
};
|
|
434
434
|
protoOf(SSEServerContent$writeTo$slambda).fa = function () {
|
|
435
435
|
var suspendResult = this.z9_1;
|
|
@@ -439,19 +439,19 @@
|
|
|
439
439
|
switch (tmp) {
|
|
440
440
|
case 0:
|
|
441
441
|
this.y9_1 = 3;
|
|
442
|
-
this.
|
|
443
|
-
if (!(this.
|
|
444
|
-
this.
|
|
442
|
+
this.lca_1._v = new DefaultServerSSESession(this.mca_1, this.nca_1.zc9_1, this.oca_1.z1v());
|
|
443
|
+
if (!(this.nca_1.bca_1 == null)) {
|
|
444
|
+
this.lca_1._v = new SSEServerContent$writeTo$3$1(this.lca_1, this.nca_1);
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
this.
|
|
448
|
-
if (this.
|
|
449
|
-
this.
|
|
447
|
+
this.pca_1 = this.lca_1._v;
|
|
448
|
+
if (this.pca_1 == null) {
|
|
449
|
+
this.qca_1 = null;
|
|
450
450
|
this.x9_1 = 2;
|
|
451
451
|
continue $sm;
|
|
452
452
|
} else {
|
|
453
453
|
this.x9_1 = 1;
|
|
454
|
-
suspendResult = this.
|
|
454
|
+
suspendResult = this.nca_1.aca_1(this.pca_1, this);
|
|
455
455
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
456
456
|
return suspendResult;
|
|
457
457
|
}
|
|
@@ -460,11 +460,11 @@
|
|
|
460
460
|
|
|
461
461
|
case 1:
|
|
462
462
|
var tmp_0 = this;
|
|
463
|
-
tmp_0.
|
|
463
|
+
tmp_0.qca_1 = Unit_instance;
|
|
464
464
|
this.x9_1 = 2;
|
|
465
465
|
continue $sm;
|
|
466
466
|
case 2:
|
|
467
|
-
return this.
|
|
467
|
+
return this.qca_1;
|
|
468
468
|
case 3:
|
|
469
469
|
throw this.aa_1;
|
|
470
470
|
}
|
|
@@ -480,22 +480,22 @@
|
|
|
480
480
|
while (true);
|
|
481
481
|
};
|
|
482
482
|
protoOf(SSEServerContent$writeTo$slambda).y2q = function ($this$coroutineScope, completion) {
|
|
483
|
-
var i = new SSEServerContent$writeTo$slambda(this.
|
|
484
|
-
i.
|
|
483
|
+
var i = new SSEServerContent$writeTo$slambda(this.lca_1, this.mca_1, this.nca_1, completion);
|
|
484
|
+
i.oca_1 = $this$coroutineScope;
|
|
485
485
|
return i;
|
|
486
486
|
};
|
|
487
487
|
function SSEServerContent$writeTo$slambda_0($session, $channel, this$0, resultContinuation) {
|
|
488
488
|
var i = new SSEServerContent$writeTo$slambda($session, $channel, this$0, resultContinuation);
|
|
489
489
|
var l = function ($this$coroutineScope, $completion) {
|
|
490
|
-
return i.
|
|
490
|
+
return i.rca($this$coroutineScope, $completion);
|
|
491
491
|
};
|
|
492
492
|
l.$arity = 1;
|
|
493
493
|
return l;
|
|
494
494
|
}
|
|
495
495
|
function $writeToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
496
496
|
CoroutineImpl.call(this, resultContinuation);
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
497
|
+
this.acb_1 = _this__u8e3s4;
|
|
498
|
+
this.bcb_1 = channel;
|
|
499
499
|
}
|
|
500
500
|
protoOf($writeToCOROUTINE$).fa = function () {
|
|
501
501
|
var suspendResult = this.z9_1;
|
|
@@ -505,44 +505,44 @@
|
|
|
505
505
|
switch (tmp) {
|
|
506
506
|
case 0:
|
|
507
507
|
this.y9_1 = 9;
|
|
508
|
-
get_LOGGER().
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
508
|
+
get_LOGGER().m55('Starting sse session for ' + get_uri(this.acb_1.zc9_1.k66()));
|
|
509
|
+
this.ccb_1 = {_v: null};
|
|
510
|
+
this.dcb_1 = Unit_instance;
|
|
511
511
|
this.x9_1 = 1;
|
|
512
512
|
continue $sm;
|
|
513
513
|
case 1:
|
|
514
514
|
this.y9_1 = 6;
|
|
515
515
|
this.x9_1 = 2;
|
|
516
|
-
suspendResult = coroutineScope(SSEServerContent$writeTo$slambda_0(this.
|
|
516
|
+
suspendResult = coroutineScope(SSEServerContent$writeTo$slambda_0(this.ccb_1, this.bcb_1, this.acb_1, null), this);
|
|
517
517
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
518
518
|
return suspendResult;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
continue $sm;
|
|
522
522
|
case 2:
|
|
523
|
-
this.
|
|
523
|
+
this.dcb_1 = suspendResult;
|
|
524
524
|
this.y9_1 = 9;
|
|
525
525
|
this.x9_1 = 3;
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 3:
|
|
528
|
-
this.
|
|
528
|
+
this.ecb_1 = this.dcb_1;
|
|
529
529
|
this.y9_1 = 9;
|
|
530
|
-
this.
|
|
531
|
-
var tmp0_safe_receiver = this.
|
|
530
|
+
this.fcb_1 = this.acb_1.zc9_1.l66().s4w(get_heartbeatJobKey());
|
|
531
|
+
var tmp0_safe_receiver = this.fcb_1;
|
|
532
532
|
if (tmp0_safe_receiver == null)
|
|
533
533
|
null;
|
|
534
534
|
else {
|
|
535
535
|
tmp0_safe_receiver.k1x();
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
-
this.
|
|
539
|
-
if (this.
|
|
540
|
-
this.
|
|
538
|
+
this.gcb_1 = this.ccb_1._v;
|
|
539
|
+
if (this.gcb_1 == null) {
|
|
540
|
+
this.hcb_1 = null;
|
|
541
541
|
this.x9_1 = 5;
|
|
542
542
|
continue $sm;
|
|
543
543
|
} else {
|
|
544
544
|
this.x9_1 = 4;
|
|
545
|
-
suspendResult = this.
|
|
545
|
+
suspendResult = this.gcb_1.ec9(this);
|
|
546
546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
547
547
|
return suspendResult;
|
|
548
548
|
}
|
|
@@ -551,30 +551,30 @@
|
|
|
551
551
|
|
|
552
552
|
case 4:
|
|
553
553
|
var tmp_0 = this;
|
|
554
|
-
tmp_0.
|
|
554
|
+
tmp_0.hcb_1 = Unit_instance;
|
|
555
555
|
this.x9_1 = 5;
|
|
556
556
|
continue $sm;
|
|
557
557
|
case 5:
|
|
558
558
|
return Unit_instance;
|
|
559
559
|
case 6:
|
|
560
560
|
this.y9_1 = 9;
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
var tmp0_safe_receiver_0 = this.
|
|
561
|
+
this.icb_1 = this.aa_1;
|
|
562
|
+
this.jcb_1 = this.acb_1.zc9_1.l66().s4w(get_heartbeatJobKey());
|
|
563
|
+
var tmp0_safe_receiver_0 = this.jcb_1;
|
|
564
564
|
if (tmp0_safe_receiver_0 == null)
|
|
565
565
|
null;
|
|
566
566
|
else {
|
|
567
567
|
tmp0_safe_receiver_0.k1x();
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
this.
|
|
571
|
-
if (this.
|
|
572
|
-
this.
|
|
570
|
+
this.kcb_1 = this.ccb_1._v;
|
|
571
|
+
if (this.kcb_1 == null) {
|
|
572
|
+
this.lcb_1 = null;
|
|
573
573
|
this.x9_1 = 8;
|
|
574
574
|
continue $sm;
|
|
575
575
|
} else {
|
|
576
576
|
this.x9_1 = 7;
|
|
577
|
-
suspendResult = this.
|
|
577
|
+
suspendResult = this.kcb_1.ec9(this);
|
|
578
578
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
579
579
|
return suspendResult;
|
|
580
580
|
}
|
|
@@ -583,11 +583,11 @@
|
|
|
583
583
|
|
|
584
584
|
case 7:
|
|
585
585
|
var tmp_1 = this;
|
|
586
|
-
tmp_1.
|
|
586
|
+
tmp_1.lcb_1 = Unit_instance;
|
|
587
587
|
this.x9_1 = 8;
|
|
588
588
|
continue $sm;
|
|
589
589
|
case 8:
|
|
590
|
-
throw this.
|
|
590
|
+
throw this.icb_1;
|
|
591
591
|
case 9:
|
|
592
592
|
throw this.aa_1;
|
|
593
593
|
}
|
|
@@ -605,15 +605,15 @@
|
|
|
605
605
|
function SSEServerContent(call, handle, serialize) {
|
|
606
606
|
serialize = serialize === VOID ? null : serialize;
|
|
607
607
|
WriteChannelContent.call(this);
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
608
|
+
this.zc9_1 = call;
|
|
609
|
+
this.aca_1 = handle;
|
|
610
|
+
this.bca_1 = serialize;
|
|
611
|
+
this.cca_1 = Text_getInstance().z57_1;
|
|
612
612
|
}
|
|
613
|
-
protoOf(SSEServerContent).
|
|
614
|
-
return this.
|
|
613
|
+
protoOf(SSEServerContent).e5i = function () {
|
|
614
|
+
return this.cca_1;
|
|
615
615
|
};
|
|
616
|
-
protoOf(SSEServerContent).
|
|
616
|
+
protoOf(SSEServerContent).t5j = function (channel, $completion) {
|
|
617
617
|
var tmp = new $writeToCOROUTINE$(this, channel, $completion);
|
|
618
618
|
tmp.z9_1 = Unit_instance;
|
|
619
619
|
tmp.aa_1 = null;
|