@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/kotlin-logging.js
CHANGED
|
@@ -15,83 +15,83 @@
|
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
17
17
|
var VOID = kotlin_kotlin.$_$.h;
|
|
18
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
22
|
-
var Enum = kotlin_kotlin.$_$.
|
|
23
|
-
var toString = kotlin_kotlin.$_$.
|
|
24
|
-
var Exception = kotlin_kotlin.$_$.
|
|
25
|
-
var equals = kotlin_kotlin.$_$.
|
|
18
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
20
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
22
|
+
var Enum = kotlin_kotlin.$_$.qk;
|
|
23
|
+
var toString = kotlin_kotlin.$_$.km;
|
|
24
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
26
26
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
27
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
28
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
29
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
27
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
28
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
29
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
31
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
32
32
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
33
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
34
|
-
var split = kotlin_kotlin.$_$.
|
|
35
|
-
var substringBefore = kotlin_kotlin.$_$.
|
|
36
|
-
var substringAfterLast = kotlin_kotlin.$_$.
|
|
37
|
-
var contains = kotlin_kotlin.$_$.
|
|
33
|
+
var stackTraceToString = kotlin_kotlin.$_$.gm;
|
|
34
|
+
var split = kotlin_kotlin.$_$.mi;
|
|
35
|
+
var substringBefore = kotlin_kotlin.$_$.xi;
|
|
36
|
+
var substringAfterLast = kotlin_kotlin.$_$.si;
|
|
37
|
+
var contains = kotlin_kotlin.$_$.ng;
|
|
38
38
|
//endregion
|
|
39
39
|
//region block: pre-declaration
|
|
40
40
|
function trace(message) {
|
|
41
41
|
var tmp = Level_TRACE_getInstance();
|
|
42
|
-
return this.
|
|
42
|
+
return this.s3h(tmp, VOID, KLogger$trace$lambda(message));
|
|
43
43
|
}
|
|
44
44
|
function debug(message) {
|
|
45
45
|
var tmp = Level_DEBUG_getInstance();
|
|
46
|
-
return this.
|
|
46
|
+
return this.s3h(tmp, VOID, KLogger$debug$lambda(message));
|
|
47
47
|
}
|
|
48
48
|
function info(message) {
|
|
49
49
|
var tmp = Level_INFO_getInstance();
|
|
50
|
-
return this.
|
|
50
|
+
return this.s3h(tmp, VOID, KLogger$info$lambda(message));
|
|
51
51
|
}
|
|
52
52
|
function warn(message) {
|
|
53
53
|
var tmp = Level_WARN_getInstance();
|
|
54
|
-
return this.
|
|
54
|
+
return this.s3h(tmp, VOID, KLogger$warn$lambda(message));
|
|
55
55
|
}
|
|
56
56
|
function error(message) {
|
|
57
57
|
var tmp = Level_ERROR_getInstance();
|
|
58
|
-
return this.
|
|
58
|
+
return this.s3h(tmp, VOID, KLogger$error$lambda(message));
|
|
59
59
|
}
|
|
60
60
|
function debug_0(throwable, message) {
|
|
61
61
|
var tmp = Level_DEBUG_getInstance();
|
|
62
|
-
return this.
|
|
62
|
+
return this.s3h(tmp, VOID, KLogger$debug$lambda_0(message, throwable));
|
|
63
63
|
}
|
|
64
64
|
function warn_0(throwable, message) {
|
|
65
65
|
var tmp = Level_WARN_getInstance();
|
|
66
|
-
return this.
|
|
66
|
+
return this.s3h(tmp, VOID, KLogger$warn$lambda_0(message, throwable));
|
|
67
67
|
}
|
|
68
68
|
function error_0(throwable, message) {
|
|
69
69
|
var tmp = Level_ERROR_getInstance();
|
|
70
|
-
return this.
|
|
70
|
+
return this.s3h(tmp, VOID, KLogger$error$lambda_0(message, throwable));
|
|
71
71
|
}
|
|
72
72
|
function error_1(throwable, marker, message) {
|
|
73
73
|
var tmp = Level_ERROR_getInstance();
|
|
74
|
-
return this.
|
|
74
|
+
return this.b3i(tmp, marker, KLogger$error$lambda_1(message, throwable));
|
|
75
75
|
}
|
|
76
76
|
function at$default(level, marker, block, $super) {
|
|
77
77
|
marker = marker === VOID ? null : marker;
|
|
78
78
|
var tmp;
|
|
79
79
|
if ($super === VOID) {
|
|
80
|
-
this.
|
|
80
|
+
this.b3i(level, marker, block);
|
|
81
81
|
tmp = Unit_instance;
|
|
82
82
|
} else {
|
|
83
|
-
tmp = $super.
|
|
83
|
+
tmp = $super.b3i.call(this, level, marker, block);
|
|
84
84
|
}
|
|
85
85
|
return tmp;
|
|
86
86
|
}
|
|
87
87
|
function info_0(msg) {
|
|
88
|
-
return this.
|
|
88
|
+
return this.u3h(KLogger$info$lambda_0(msg));
|
|
89
89
|
}
|
|
90
90
|
function warn_1(msg) {
|
|
91
|
-
return this.
|
|
91
|
+
return this.v3h(KLogger$warn$lambda_1(msg));
|
|
92
92
|
}
|
|
93
93
|
function error_2(msg, t) {
|
|
94
|
-
return this.
|
|
94
|
+
return this.a3i(t, null, KLogger$error$lambda_2(msg));
|
|
95
95
|
}
|
|
96
96
|
initMetadataForInterface(KLogger, 'KLogger');
|
|
97
97
|
initMetadataForClass(KLoggingEventBuilder, 'KLoggingEventBuilder', KLoggingEventBuilder);
|
|
@@ -109,59 +109,59 @@
|
|
|
109
109
|
//endregion
|
|
110
110
|
function KLogger$trace$lambda($message) {
|
|
111
111
|
return function ($this$at) {
|
|
112
|
-
$this$at.
|
|
112
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
113
113
|
return Unit_instance;
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
function KLogger$debug$lambda($message) {
|
|
117
117
|
return function ($this$at) {
|
|
118
|
-
$this$at.
|
|
118
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
119
119
|
return Unit_instance;
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
function KLogger$info$lambda($message) {
|
|
123
123
|
return function ($this$at) {
|
|
124
|
-
$this$at.
|
|
124
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
125
125
|
return Unit_instance;
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
function KLogger$warn$lambda($message) {
|
|
129
129
|
return function ($this$at) {
|
|
130
|
-
$this$at.
|
|
130
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
131
131
|
return Unit_instance;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
function KLogger$error$lambda($message) {
|
|
135
135
|
return function ($this$at) {
|
|
136
|
-
$this$at.
|
|
136
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
137
137
|
return Unit_instance;
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
function KLogger$debug$lambda_0($message, $throwable) {
|
|
141
141
|
return function ($this$at) {
|
|
142
|
-
$this$at.
|
|
143
|
-
$this$at.
|
|
142
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
143
|
+
$this$at.n3h_1 = $throwable;
|
|
144
144
|
return Unit_instance;
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
function KLogger$warn$lambda_0($message, $throwable) {
|
|
148
148
|
return function ($this$at) {
|
|
149
|
-
$this$at.
|
|
150
|
-
$this$at.
|
|
149
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
150
|
+
$this$at.n3h_1 = $throwable;
|
|
151
151
|
return Unit_instance;
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
function KLogger$error$lambda_0($message, $throwable) {
|
|
155
155
|
return function ($this$at) {
|
|
156
|
-
$this$at.
|
|
157
|
-
$this$at.
|
|
156
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
157
|
+
$this$at.n3h_1 = $throwable;
|
|
158
158
|
return Unit_instance;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
function KLogger$error$lambda_1($message, $throwable) {
|
|
162
162
|
return function ($this$at) {
|
|
163
|
-
$this$at.
|
|
164
|
-
$this$at.
|
|
163
|
+
$this$at.m3h_1 = toStringSafe($message);
|
|
164
|
+
$this$at.n3h_1 = $throwable;
|
|
165
165
|
return Unit_instance;
|
|
166
166
|
};
|
|
167
167
|
}
|
|
@@ -183,19 +183,19 @@
|
|
|
183
183
|
function KLogger() {
|
|
184
184
|
}
|
|
185
185
|
function KLoggingEventBuilder() {
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
186
|
+
this.m3h_1 = null;
|
|
187
|
+
this.n3h_1 = null;
|
|
188
|
+
this.o3h_1 = null;
|
|
189
|
+
this.p3h_1 = null;
|
|
190
|
+
this.q3h_1 = null;
|
|
191
191
|
}
|
|
192
192
|
function KotlinLogging() {
|
|
193
193
|
}
|
|
194
|
-
protoOf(KotlinLogging).
|
|
195
|
-
return this.
|
|
194
|
+
protoOf(KotlinLogging).f3i = function (func) {
|
|
195
|
+
return this.h3i(KLoggerNameResolver_instance.g3i(func));
|
|
196
196
|
};
|
|
197
|
-
protoOf(KotlinLogging).
|
|
198
|
-
return KLoggerFactory_instance.
|
|
197
|
+
protoOf(KotlinLogging).h3i = function (name) {
|
|
198
|
+
return KLoggerFactory_instance.h3i(name);
|
|
199
199
|
};
|
|
200
200
|
var KotlinLogging_instance;
|
|
201
201
|
function KotlinLogging_getInstance() {
|
|
@@ -221,11 +221,11 @@
|
|
|
221
221
|
}
|
|
222
222
|
function Level(name, ordinal, levelInt, levelStr) {
|
|
223
223
|
Enum.call(this, name, ordinal);
|
|
224
|
-
this.
|
|
225
|
-
this.
|
|
224
|
+
this.k3i_1 = levelInt;
|
|
225
|
+
this.l3i_1 = levelStr;
|
|
226
226
|
}
|
|
227
227
|
protoOf(Level).toString = function () {
|
|
228
|
-
return this.
|
|
228
|
+
return this.l3i_1;
|
|
229
229
|
};
|
|
230
230
|
function Level_TRACE_getInstance() {
|
|
231
231
|
Level_initEntries();
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
var tmp_0;
|
|
256
256
|
if ($p instanceof Exception) {
|
|
257
257
|
var e = $p;
|
|
258
|
-
tmp_0 = DefaultErrorMessageProducer_instance.
|
|
258
|
+
tmp_0 = DefaultErrorMessageProducer_instance.m3i(e);
|
|
259
259
|
} else {
|
|
260
260
|
throw $p;
|
|
261
261
|
}
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
}
|
|
266
266
|
function DefaultErrorMessageProducer() {
|
|
267
267
|
}
|
|
268
|
-
protoOf(DefaultErrorMessageProducer).
|
|
268
|
+
protoOf(DefaultErrorMessageProducer).m3i = function (e) {
|
|
269
269
|
return 'Log message invocation failed: ' + e.toString();
|
|
270
270
|
};
|
|
271
271
|
var DefaultErrorMessageProducer_instance;
|
|
@@ -274,14 +274,14 @@
|
|
|
274
274
|
}
|
|
275
275
|
function FormattingAppender() {
|
|
276
276
|
}
|
|
277
|
-
protoOf(FormattingAppender).
|
|
277
|
+
protoOf(FormattingAppender).o3i = function (loggingEvent) {
|
|
278
278
|
// Inline function 'kotlin.let' call
|
|
279
|
-
var it = KotlinLoggingConfiguration_getInstance().
|
|
280
|
-
this.
|
|
279
|
+
var it = KotlinLoggingConfiguration_getInstance().q3i_1.s3i(loggingEvent);
|
|
280
|
+
this.n3i(loggingEvent, it);
|
|
281
281
|
};
|
|
282
282
|
function prefix($this, level, loggerName) {
|
|
283
283
|
var tmp;
|
|
284
|
-
if ($this.
|
|
284
|
+
if ($this.t3i_1) {
|
|
285
285
|
tmp = level.u2_1 + ': [' + loggerName + '] ';
|
|
286
286
|
} else {
|
|
287
287
|
tmp = '';
|
|
@@ -317,16 +317,16 @@
|
|
|
317
317
|
}
|
|
318
318
|
function DefaultMessageFormatter(includePrefix) {
|
|
319
319
|
includePrefix = includePrefix === VOID ? true : includePrefix;
|
|
320
|
-
this.
|
|
320
|
+
this.t3i_1 = includePrefix;
|
|
321
321
|
}
|
|
322
|
-
protoOf(DefaultMessageFormatter).
|
|
322
|
+
protoOf(DefaultMessageFormatter).s3i = function (loggingEvent) {
|
|
323
323
|
// Inline function 'kotlin.with' call
|
|
324
324
|
// Inline function 'kotlin.text.buildString' call
|
|
325
325
|
// Inline function 'kotlin.apply' call
|
|
326
326
|
var this_0 = StringBuilder_init_$Create$();
|
|
327
|
-
this_0.z8(prefix(this, loggingEvent.
|
|
328
|
-
var tmp0_safe_receiver = loggingEvent.
|
|
329
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
327
|
+
this_0.z8(prefix(this, loggingEvent.u3i_1, loggingEvent.w3i_1));
|
|
328
|
+
var tmp0_safe_receiver = loggingEvent.v3i_1;
|
|
329
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a3j();
|
|
330
330
|
if (tmp1_safe_receiver == null)
|
|
331
331
|
null;
|
|
332
332
|
else {
|
|
@@ -334,12 +334,12 @@
|
|
|
334
334
|
this_0.z8(tmp1_safe_receiver);
|
|
335
335
|
this_0.z8(' ');
|
|
336
336
|
}
|
|
337
|
-
this_0.z8(loggingEvent.
|
|
338
|
-
this_0.z8(throwableToString(this, loggingEvent.
|
|
337
|
+
this_0.z8(loggingEvent.x3i_1);
|
|
338
|
+
this_0.z8(throwableToString(this, loggingEvent.y3i_1));
|
|
339
339
|
return this_0.toString();
|
|
340
340
|
};
|
|
341
341
|
function KLoggingEvent_init_$Init$(level, marker, loggerName, eventBuilder, $this) {
|
|
342
|
-
KLoggingEvent.call($this, level, marker, loggerName, eventBuilder.
|
|
342
|
+
KLoggingEvent.call($this, level, marker, loggerName, eventBuilder.m3h_1, eventBuilder.n3h_1, eventBuilder.o3h_1);
|
|
343
343
|
return $this;
|
|
344
344
|
}
|
|
345
345
|
function KLoggingEvent_init_$Create$(level, marker, loggerName, eventBuilder) {
|
|
@@ -349,23 +349,23 @@
|
|
|
349
349
|
message = message === VOID ? null : message;
|
|
350
350
|
cause = cause === VOID ? null : cause;
|
|
351
351
|
payload = payload === VOID ? null : payload;
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
352
|
+
this.u3i_1 = level;
|
|
353
|
+
this.v3i_1 = marker;
|
|
354
|
+
this.w3i_1 = loggerName;
|
|
355
|
+
this.x3i_1 = message;
|
|
356
|
+
this.y3i_1 = cause;
|
|
357
|
+
this.z3i_1 = payload;
|
|
358
358
|
}
|
|
359
359
|
protoOf(KLoggingEvent).toString = function () {
|
|
360
|
-
return 'KLoggingEvent(level=' + this.
|
|
360
|
+
return 'KLoggingEvent(level=' + this.u3i_1.toString() + ', marker=' + toString(this.v3i_1) + ', loggerName=' + this.w3i_1 + ', message=' + this.x3i_1 + ', cause=' + toString(this.y3i_1) + ', payload=' + toString(this.z3i_1) + ')';
|
|
361
361
|
};
|
|
362
362
|
protoOf(KLoggingEvent).hashCode = function () {
|
|
363
|
-
var result = this.
|
|
364
|
-
result = imul(result, 31) + (this.
|
|
365
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
366
|
-
result = imul(result, 31) + (this.
|
|
367
|
-
result = imul(result, 31) + (this.
|
|
368
|
-
result = imul(result, 31) + (this.
|
|
363
|
+
var result = this.u3i_1.hashCode();
|
|
364
|
+
result = imul(result, 31) + (this.v3i_1 == null ? 0 : hashCode(this.v3i_1)) | 0;
|
|
365
|
+
result = imul(result, 31) + getStringHashCode(this.w3i_1) | 0;
|
|
366
|
+
result = imul(result, 31) + (this.x3i_1 == null ? 0 : getStringHashCode(this.x3i_1)) | 0;
|
|
367
|
+
result = imul(result, 31) + (this.y3i_1 == null ? 0 : hashCode(this.y3i_1)) | 0;
|
|
368
|
+
result = imul(result, 31) + (this.z3i_1 == null ? 0 : hashCode(this.z3i_1)) | 0;
|
|
369
369
|
return result;
|
|
370
370
|
};
|
|
371
371
|
protoOf(KLoggingEvent).equals = function (other) {
|
|
@@ -374,43 +374,43 @@
|
|
|
374
374
|
if (!(other instanceof KLoggingEvent))
|
|
375
375
|
return false;
|
|
376
376
|
var tmp0_other_with_cast = other instanceof KLoggingEvent ? other : THROW_CCE();
|
|
377
|
-
if (!this.
|
|
377
|
+
if (!this.u3i_1.equals(tmp0_other_with_cast.u3i_1))
|
|
378
378
|
return false;
|
|
379
|
-
if (!equals(this.
|
|
379
|
+
if (!equals(this.v3i_1, tmp0_other_with_cast.v3i_1))
|
|
380
380
|
return false;
|
|
381
|
-
if (!(this.
|
|
381
|
+
if (!(this.w3i_1 === tmp0_other_with_cast.w3i_1))
|
|
382
382
|
return false;
|
|
383
|
-
if (!(this.
|
|
383
|
+
if (!(this.x3i_1 == tmp0_other_with_cast.x3i_1))
|
|
384
384
|
return false;
|
|
385
|
-
if (!equals(this.
|
|
385
|
+
if (!equals(this.y3i_1, tmp0_other_with_cast.y3i_1))
|
|
386
386
|
return false;
|
|
387
|
-
if (!equals(this.
|
|
387
|
+
if (!equals(this.z3i_1, tmp0_other_with_cast.z3i_1))
|
|
388
388
|
return false;
|
|
389
389
|
return true;
|
|
390
390
|
};
|
|
391
391
|
function isLoggingEnabled(_this__u8e3s4) {
|
|
392
|
-
return _this__u8e3s4.v2_1 >= KotlinLoggingConfiguration_getInstance().
|
|
392
|
+
return _this__u8e3s4.v2_1 >= KotlinLoggingConfiguration_getInstance().p3i_1.v2_1;
|
|
393
393
|
}
|
|
394
394
|
function KLoggerDirect(name) {
|
|
395
|
-
this.
|
|
395
|
+
this.b3j_1 = name;
|
|
396
396
|
}
|
|
397
|
-
protoOf(KLoggerDirect).
|
|
398
|
-
if (this.
|
|
397
|
+
protoOf(KLoggerDirect).b3i = function (level, marker, block) {
|
|
398
|
+
if (this.c3j(level, marker)) {
|
|
399
399
|
// Inline function 'kotlin.apply' call
|
|
400
400
|
var this_0 = new KLoggingEventBuilder();
|
|
401
401
|
block(this_0);
|
|
402
402
|
// Inline function 'kotlin.run' call
|
|
403
403
|
if (level.v2_1 !== 5) {
|
|
404
|
-
KotlinLoggingConfiguration_getInstance().
|
|
404
|
+
KotlinLoggingConfiguration_getInstance().r3i_1.o3i(KLoggingEvent_init_$Create$(level, marker, this.b3j_1, this_0));
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
|
-
protoOf(KLoggerDirect).
|
|
408
|
+
protoOf(KLoggerDirect).c3j = function (level, marker) {
|
|
409
409
|
return isLoggingEnabled(level);
|
|
410
410
|
};
|
|
411
411
|
function KLoggerFactory() {
|
|
412
412
|
}
|
|
413
|
-
protoOf(KLoggerFactory).
|
|
413
|
+
protoOf(KLoggerFactory).h3i = function (name) {
|
|
414
414
|
return new KLoggerDirect(name);
|
|
415
415
|
};
|
|
416
416
|
var KLoggerFactory_instance;
|
|
@@ -420,8 +420,8 @@
|
|
|
420
420
|
function ConsoleOutputAppender() {
|
|
421
421
|
FormattingAppender.call(this);
|
|
422
422
|
}
|
|
423
|
-
protoOf(ConsoleOutputAppender).
|
|
424
|
-
switch (loggingEvent.
|
|
423
|
+
protoOf(ConsoleOutputAppender).n3i = function (loggingEvent, formattedMessage) {
|
|
424
|
+
switch (loggingEvent.u3i_1.v2_1) {
|
|
425
425
|
case 0:
|
|
426
426
|
console.log(formattedMessage);
|
|
427
427
|
break;
|
|
@@ -446,9 +446,9 @@
|
|
|
446
446
|
};
|
|
447
447
|
function KotlinLoggingConfiguration() {
|
|
448
448
|
KotlinLoggingConfiguration_instance = this;
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
449
|
+
this.p3i_1 = Level_INFO_getInstance();
|
|
450
|
+
this.q3i_1 = new DefaultMessageFormatter(true);
|
|
451
|
+
this.r3i_1 = new ConsoleOutputAppender();
|
|
452
452
|
}
|
|
453
453
|
var KotlinLoggingConfiguration_instance;
|
|
454
454
|
function KotlinLoggingConfiguration_getInstance() {
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
}
|
|
459
459
|
function KLoggerNameResolver() {
|
|
460
460
|
}
|
|
461
|
-
protoOf(KLoggerNameResolver).
|
|
461
|
+
protoOf(KLoggerNameResolver).g3i = function (func) {
|
|
462
462
|
var found = false;
|
|
463
463
|
var exception = Exception_init_$Create$();
|
|
464
464
|
var _iterator__ex2g4s = split(stackTraceToString(exception), ['\n']).p();
|
|
@@ -478,19 +478,19 @@
|
|
|
478
478
|
return KLoggerNameResolver_instance;
|
|
479
479
|
}
|
|
480
480
|
//region block: post-declaration
|
|
481
|
-
protoOf(KLoggerDirect).
|
|
482
|
-
protoOf(KLoggerDirect).
|
|
483
|
-
protoOf(KLoggerDirect).
|
|
484
|
-
protoOf(KLoggerDirect).
|
|
485
|
-
protoOf(KLoggerDirect).
|
|
486
|
-
protoOf(KLoggerDirect).
|
|
487
|
-
protoOf(KLoggerDirect).
|
|
488
|
-
protoOf(KLoggerDirect).
|
|
489
|
-
protoOf(KLoggerDirect).
|
|
490
|
-
protoOf(KLoggerDirect).
|
|
491
|
-
protoOf(KLoggerDirect).
|
|
492
|
-
protoOf(KLoggerDirect).
|
|
493
|
-
protoOf(KLoggerDirect).
|
|
481
|
+
protoOf(KLoggerDirect).s3h = at$default;
|
|
482
|
+
protoOf(KLoggerDirect).r3h = trace;
|
|
483
|
+
protoOf(KLoggerDirect).t3h = debug;
|
|
484
|
+
protoOf(KLoggerDirect).x3h = debug_0;
|
|
485
|
+
protoOf(KLoggerDirect).u3h = info;
|
|
486
|
+
protoOf(KLoggerDirect).c3i = info_0;
|
|
487
|
+
protoOf(KLoggerDirect).v3h = warn;
|
|
488
|
+
protoOf(KLoggerDirect).y3h = warn_0;
|
|
489
|
+
protoOf(KLoggerDirect).d3i = warn_1;
|
|
490
|
+
protoOf(KLoggerDirect).w3h = error;
|
|
491
|
+
protoOf(KLoggerDirect).z3h = error_0;
|
|
492
|
+
protoOf(KLoggerDirect).a3i = error_1;
|
|
493
|
+
protoOf(KLoggerDirect).e3i = error_2;
|
|
494
494
|
//endregion
|
|
495
495
|
//region block: init
|
|
496
496
|
KotlinLogging_instance = new KotlinLogging();
|