@flock/wirespec 0.19.0-RC.2 → 0.19.0-RC.3
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/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1570 -1570
- package/colormath-root-colormath.mjs +444 -444
- package/kotest-kotest-property.mjs +605 -1435
- package/kotest-kotest-property.mjs.map +1 -1
- package/kotest-property-arbs.mjs +0 -478
- package/kotest-property-arbs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2478 -2738
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4926 -4926
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-io-kotlinx-io-core.mjs +440 -440
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1792 -1792
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
- package/mordant-mordant.mjs +1362 -1362
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1541 -1541
- package/wirespec-src-compiler-emitters-java.mjs +387 -387
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +341 -341
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +371 -371
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +416 -416
- package/wirespec-src-compiler-emitters-scala.mjs +168 -168
- package/wirespec-src-compiler-emitters-typescript.mjs +471 -471
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +87 -87
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3672 -3672
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +512 -512
- package/wirespec-src-converter-openapi.mjs +772 -772
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +490 -572
- package/wirespec-src-integration-kotest.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +185 -185
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +1 -1
- package/wirespec-src-plugin-npm.mjs +40 -40
- package/wirespec-src-tools-generator.mjs +35 -35
package/clikt-clikt-mordant.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function CliktCommand(name) {
|
|
|
46
46
|
}
|
|
47
47
|
function installMordant(_this__u8e3s4, force) {
|
|
48
48
|
force = force === VOID ? false : force;
|
|
49
|
-
_this__u8e3s4.
|
|
49
|
+
_this__u8e3s4.k15(installMordant$lambda(force));
|
|
50
50
|
}
|
|
51
51
|
function get_terminal(_this__u8e3s4) {
|
|
52
52
|
// Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
|
|
@@ -57,10 +57,10 @@ function get_terminal(_this__u8e3s4) {
|
|
|
57
57
|
if (tmp0_elvis_lhs == null) {
|
|
58
58
|
// Inline function 'kotlin.also' call
|
|
59
59
|
var this_0 = Terminal_init_$Create$();
|
|
60
|
-
var tmp0 = last(selfAndAncestors(_this__u8e3s4)).
|
|
60
|
+
var tmp0 = last(selfAndAncestors(_this__u8e3s4)).i13_1;
|
|
61
61
|
// Inline function 'kotlin.collections.set' call
|
|
62
62
|
var key_0 = 'mordant_terminal';
|
|
63
|
-
tmp0.
|
|
63
|
+
tmp0.y2(key_0, this_0);
|
|
64
64
|
tmp_0 = this_0;
|
|
65
65
|
} else {
|
|
66
66
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -74,10 +74,10 @@ function installMordant$lambda$lambda(it) {
|
|
|
74
74
|
return new MordantHelpFormatter(it);
|
|
75
75
|
}
|
|
76
76
|
function installMordant$lambda$lambda_0(it) {
|
|
77
|
-
return MultiplatformSystem_instance.
|
|
77
|
+
return MultiplatformSystem_instance.g3z(it);
|
|
78
78
|
}
|
|
79
79
|
function installMordant$lambda$lambda_1(it) {
|
|
80
|
-
var tmp0_elvis_lhs = MultiplatformSystem_instance.
|
|
80
|
+
var tmp0_elvis_lhs = MultiplatformSystem_instance.i3z(it);
|
|
81
81
|
var tmp;
|
|
82
82
|
if (tmp0_elvis_lhs == null) {
|
|
83
83
|
throw new FileNotFound(it);
|
|
@@ -87,100 +87,100 @@ function installMordant$lambda$lambda_1(it) {
|
|
|
87
87
|
return tmp;
|
|
88
88
|
}
|
|
89
89
|
function installMordant$lambda$lambda_2(it) {
|
|
90
|
-
MultiplatformSystem_instance.
|
|
90
|
+
MultiplatformSystem_instance.h3z(it);
|
|
91
91
|
return Unit_instance;
|
|
92
92
|
}
|
|
93
93
|
function installMordant$lambda$lambda_3(context, message, trailingNewline, err) {
|
|
94
94
|
if (trailingNewline) {
|
|
95
|
-
get_terminal(context).
|
|
95
|
+
get_terminal(context).f49(message, VOID, VOID, VOID, VOID, err);
|
|
96
96
|
} else {
|
|
97
|
-
get_terminal(context).
|
|
97
|
+
get_terminal(context).d49(message, VOID, VOID, VOID, VOID, err);
|
|
98
98
|
}
|
|
99
99
|
return Unit_instance;
|
|
100
100
|
}
|
|
101
101
|
function installMordant$lambda($force) {
|
|
102
102
|
return function ($this$configureContext) {
|
|
103
103
|
var tmp;
|
|
104
|
-
if (!$force && !($this$configureContext.
|
|
104
|
+
if (!$force && !($this$configureContext.l15_1 == null)) {
|
|
105
105
|
return Unit_instance;
|
|
106
106
|
}
|
|
107
107
|
var tmp_0 = $this$configureContext;
|
|
108
|
-
tmp_0.
|
|
108
|
+
tmp_0.q15_1 = installMordant$lambda$lambda;
|
|
109
109
|
var tmp_1 = $this$configureContext;
|
|
110
|
-
tmp_1.
|
|
110
|
+
tmp_1.y15_1 = installMordant$lambda$lambda_0;
|
|
111
111
|
var tmp_2 = $this$configureContext;
|
|
112
|
-
tmp_2.
|
|
112
|
+
tmp_2.t15_1 = installMordant$lambda$lambda_1;
|
|
113
113
|
var tmp_3 = $this$configureContext;
|
|
114
|
-
tmp_3.
|
|
114
|
+
tmp_3.b16_1 = installMordant$lambda$lambda_2;
|
|
115
115
|
var tmp_4 = $this$configureContext;
|
|
116
|
-
tmp_4.
|
|
116
|
+
tmp_4.a16_1 = installMordant$lambda$lambda_3;
|
|
117
117
|
return Unit_instance;
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
function _get_terminal_$lambda_5keric($key) {
|
|
121
121
|
return function (it) {
|
|
122
|
-
var tmp = it.
|
|
122
|
+
var tmp = it.i13_1.q2($key);
|
|
123
123
|
return tmp instanceof Terminal ? tmp : null;
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function selfAndAncestors$lambda(it) {
|
|
127
|
-
return it.
|
|
127
|
+
return it.t12_1;
|
|
128
128
|
}
|
|
129
129
|
function NoOpCliktCommand(name) {
|
|
130
130
|
name = name === VOID ? null : name;
|
|
131
131
|
CliktCommand.call(this, name);
|
|
132
132
|
}
|
|
133
|
-
protoOf(NoOpCliktCommand).
|
|
133
|
+
protoOf(NoOpCliktCommand).t16 = function () {
|
|
134
134
|
};
|
|
135
135
|
function MordantHelpFormatter$formatHelp$lambda(this$0, $error, $prolog, $epilog, $parameters, $programName) {
|
|
136
136
|
return function ($this$verticalLayout) {
|
|
137
|
-
$this$verticalLayout.
|
|
138
|
-
$this$verticalLayout.
|
|
137
|
+
$this$verticalLayout.v45(1);
|
|
138
|
+
$this$verticalLayout.s45(this$0.y1b($error, $prolog, $epilog, $parameters, $programName));
|
|
139
139
|
return Unit_instance;
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
function MordantHelpFormatter$renderUsage$lambda($prog, $usageParts) {
|
|
143
143
|
return function ($this$definitionList) {
|
|
144
|
-
$this$definitionList.
|
|
145
|
-
$this$definitionList.
|
|
146
|
-
$this$definitionList.
|
|
144
|
+
$this$definitionList.p49($prog, Text_init_$Create$($usageParts, Whitespace_NORMAL_getInstance()));
|
|
145
|
+
$this$definitionList.j49_1 = true;
|
|
146
|
+
$this$definitionList.m49(1);
|
|
147
147
|
return Unit_instance;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
function MordantHelpFormatter$renderProlog$lambda($this$withPadding) {
|
|
151
|
-
$this$withPadding.
|
|
151
|
+
$this$withPadding.s47_1 = 2;
|
|
152
152
|
return Unit_instance;
|
|
153
153
|
}
|
|
154
154
|
function MordantHelpFormatter$renderParameters$lambda(this$0, $parameters) {
|
|
155
155
|
return function ($this$definitionList) {
|
|
156
|
-
var _iterator__ex2g4s = this$0.
|
|
156
|
+
var _iterator__ex2g4s = this$0.l1d($parameters).t();
|
|
157
157
|
while (_iterator__ex2g4s.u()) {
|
|
158
158
|
var section = _iterator__ex2g4s.v();
|
|
159
|
-
$this$definitionList.
|
|
159
|
+
$this$definitionList.p49(section.f1b_1, section.g1b_1);
|
|
160
160
|
}
|
|
161
161
|
return Unit_instance;
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
function MordantHelpFormatter$renderOptionGroup$lambda($this$withPadding) {
|
|
165
|
-
$this$withPadding.
|
|
166
|
-
$this$withPadding.
|
|
167
|
-
$this$withPadding.
|
|
165
|
+
$this$withPadding.p47_1 = 1;
|
|
166
|
+
$this$withPadding.s47_1 = 2;
|
|
167
|
+
$this$withPadding.r47_1 = 1;
|
|
168
168
|
return Unit_instance;
|
|
169
169
|
}
|
|
170
170
|
function MordantHelpFormatter$renderOptionGroup$lambda_0($markdown, this$0, $options) {
|
|
171
171
|
return function ($this$verticalLayout) {
|
|
172
|
-
$this$verticalLayout.
|
|
173
|
-
$this$verticalLayout.
|
|
172
|
+
$this$verticalLayout.u45($markdown);
|
|
173
|
+
$this$verticalLayout.u45(this$0.v1d($options));
|
|
174
174
|
return Unit_instance;
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
function MordantHelpFormatter$buildParameterList$lambda($rows, this$0) {
|
|
178
178
|
return function ($this$definitionList) {
|
|
179
|
-
$this$definitionList.
|
|
179
|
+
$this$definitionList.j49_1 = true;
|
|
180
180
|
var _iterator__ex2g4s = $rows.t();
|
|
181
181
|
while (_iterator__ex2g4s.u()) {
|
|
182
182
|
var row = _iterator__ex2g4s.v();
|
|
183
|
-
$this$definitionList.
|
|
183
|
+
$this$definitionList.q49(this$0.r1e(row), this$0.s1e(row));
|
|
184
184
|
}
|
|
185
185
|
return Unit_instance;
|
|
186
186
|
};
|
|
@@ -191,20 +191,20 @@ function MordantHelpFormatter(context, requiredOptionMarker, showDefaultValues,
|
|
|
191
191
|
showRequiredTag = showRequiredTag === VOID ? false : showRequiredTag;
|
|
192
192
|
AbstractHelpFormatter.call(this, context, requiredOptionMarker, showDefaultValues, showRequiredTag);
|
|
193
193
|
}
|
|
194
|
-
protoOf(MordantHelpFormatter).
|
|
195
|
-
return get_terminal(this.
|
|
194
|
+
protoOf(MordantHelpFormatter).j4b = function () {
|
|
195
|
+
return get_terminal(this.m1b_1).p42_1;
|
|
196
196
|
};
|
|
197
|
-
protoOf(MordantHelpFormatter).
|
|
197
|
+
protoOf(MordantHelpFormatter).e15 = function (error, prolog, epilog, parameters, programName) {
|
|
198
198
|
var widget = verticalLayout(MordantHelpFormatter$formatHelp$lambda(this, error, prolog, epilog, parameters, programName));
|
|
199
|
-
return get_terminal(this.
|
|
199
|
+
return get_terminal(this.m1b_1).g49(widget);
|
|
200
200
|
};
|
|
201
|
-
protoOf(MordantHelpFormatter).
|
|
202
|
-
return Text_init_$Create$(this.
|
|
201
|
+
protoOf(MordantHelpFormatter).a1c = function (parameters, error) {
|
|
202
|
+
return Text_init_$Create$(this.e1c(parameters, error));
|
|
203
203
|
};
|
|
204
|
-
protoOf(MordantHelpFormatter).
|
|
205
|
-
var title = this.
|
|
204
|
+
protoOf(MordantHelpFormatter).z1b = function (parameters, programName) {
|
|
205
|
+
var title = this.k4b(this.x1b().m1e());
|
|
206
206
|
var prog = title + ' ' + programName;
|
|
207
|
-
var usageParts = this.
|
|
207
|
+
var usageParts = this.i1c(parameters);
|
|
208
208
|
var tmp;
|
|
209
209
|
// Inline function 'kotlin.text.isEmpty' call
|
|
210
210
|
if (charSequenceLength(usageParts) === 0) {
|
|
@@ -214,77 +214,77 @@ protoOf(MordantHelpFormatter).r1c = function (parameters, programName) {
|
|
|
214
214
|
}
|
|
215
215
|
return tmp;
|
|
216
216
|
};
|
|
217
|
-
protoOf(MordantHelpFormatter).
|
|
218
|
-
var tmp = this.
|
|
217
|
+
protoOf(MordantHelpFormatter).b1c = function (prolog) {
|
|
218
|
+
var tmp = this.l4b(prolog);
|
|
219
219
|
return withPadding(tmp, false, MordantHelpFormatter$renderProlog$lambda);
|
|
220
220
|
};
|
|
221
|
-
protoOf(MordantHelpFormatter).
|
|
222
|
-
return this.
|
|
221
|
+
protoOf(MordantHelpFormatter).d1c = function (epilog) {
|
|
222
|
+
return this.l4b(epilog);
|
|
223
223
|
};
|
|
224
|
-
protoOf(MordantHelpFormatter).
|
|
224
|
+
protoOf(MordantHelpFormatter).c1c = function (parameters) {
|
|
225
225
|
return definitionList(MordantHelpFormatter$renderParameters$lambda(this, parameters));
|
|
226
226
|
};
|
|
227
|
-
protoOf(MordantHelpFormatter).
|
|
227
|
+
protoOf(MordantHelpFormatter).j1d = function (help, parameters) {
|
|
228
228
|
// Inline function 'kotlin.collections.map' call
|
|
229
229
|
// Inline function 'kotlin.collections.mapTo' call
|
|
230
230
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(parameters, 10));
|
|
231
231
|
var _iterator__ex2g4s = parameters.t();
|
|
232
232
|
while (_iterator__ex2g4s.u()) {
|
|
233
233
|
var item = _iterator__ex2g4s.v();
|
|
234
|
-
var tmp$ret$0 = this.
|
|
234
|
+
var tmp$ret$0 = this.o1d(item);
|
|
235
235
|
destination.x(tmp$ret$0);
|
|
236
236
|
}
|
|
237
237
|
var options = destination;
|
|
238
238
|
if (help == null)
|
|
239
|
-
return this.
|
|
240
|
-
var tmp = this.
|
|
239
|
+
return this.v1d(options);
|
|
240
|
+
var tmp = this.l4b(help);
|
|
241
241
|
var markdown = withPadding(tmp, false, MordantHelpFormatter$renderOptionGroup$lambda);
|
|
242
242
|
return verticalLayout(MordantHelpFormatter$renderOptionGroup$lambda_0(markdown, this, options));
|
|
243
243
|
};
|
|
244
|
-
protoOf(MordantHelpFormatter).
|
|
244
|
+
protoOf(MordantHelpFormatter).u1b = function (name) {
|
|
245
245
|
// Inline function 'kotlin.text.lowercase' call
|
|
246
246
|
// Inline function 'kotlin.js.asDynamic' call
|
|
247
247
|
return '<' + name.toLowerCase() + '>';
|
|
248
248
|
};
|
|
249
|
-
protoOf(MordantHelpFormatter).
|
|
250
|
-
return this.
|
|
249
|
+
protoOf(MordantHelpFormatter).t1d = function (name) {
|
|
250
|
+
return this.j4b().e42('danger').g3s(name);
|
|
251
251
|
};
|
|
252
|
-
protoOf(MordantHelpFormatter).
|
|
253
|
-
return this.
|
|
252
|
+
protoOf(MordantHelpFormatter).c1e = function (name) {
|
|
253
|
+
return this.j4b().e42('muted').g3s(name);
|
|
254
254
|
};
|
|
255
|
-
protoOf(MordantHelpFormatter).
|
|
256
|
-
return this.
|
|
255
|
+
protoOf(MordantHelpFormatter).s1b = function (name) {
|
|
256
|
+
return this.j4b().e42('info').g3s(name);
|
|
257
257
|
};
|
|
258
|
-
protoOf(MordantHelpFormatter).
|
|
259
|
-
return this.
|
|
258
|
+
protoOf(MordantHelpFormatter).v1b = function (name) {
|
|
259
|
+
return this.j4b().e42('info').g3s(name);
|
|
260
260
|
};
|
|
261
|
-
protoOf(MordantHelpFormatter).
|
|
262
|
-
return this.
|
|
261
|
+
protoOf(MordantHelpFormatter).w1b = function (name) {
|
|
262
|
+
return this.j4b().e42('info').g3s(name);
|
|
263
263
|
};
|
|
264
|
-
protoOf(MordantHelpFormatter).
|
|
265
|
-
return this.
|
|
264
|
+
protoOf(MordantHelpFormatter).k1d = function (title) {
|
|
265
|
+
return this.j4b().e42('warning').g3s(title);
|
|
266
266
|
};
|
|
267
|
-
protoOf(MordantHelpFormatter).
|
|
268
|
-
return this.
|
|
267
|
+
protoOf(MordantHelpFormatter).k4b = function (title) {
|
|
268
|
+
return this.j4b().e42('warning').g3s(title);
|
|
269
269
|
};
|
|
270
|
-
protoOf(MordantHelpFormatter).
|
|
271
|
-
return this.
|
|
270
|
+
protoOf(MordantHelpFormatter).g1c = function (title) {
|
|
271
|
+
return this.j4b().e42('danger').g3s(title);
|
|
272
272
|
};
|
|
273
|
-
protoOf(MordantHelpFormatter).
|
|
274
|
-
return this.
|
|
273
|
+
protoOf(MordantHelpFormatter).l1c = function (parameter) {
|
|
274
|
+
return this.j4b().e42('muted').g3s(parameter);
|
|
275
275
|
};
|
|
276
|
-
protoOf(MordantHelpFormatter).
|
|
277
|
-
return this.
|
|
276
|
+
protoOf(MordantHelpFormatter).e1e = function (metavar) {
|
|
277
|
+
return this.j4b().e42('warning').t3y(this.j4b().e42('muted')).g3s(metavar);
|
|
278
278
|
};
|
|
279
|
-
protoOf(MordantHelpFormatter).
|
|
279
|
+
protoOf(MordantHelpFormatter).r1e = function (row) {
|
|
280
280
|
var tmp;
|
|
281
281
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
282
|
-
var this_0 = row.
|
|
282
|
+
var this_0 = row.j1b_1;
|
|
283
283
|
if (this_0 == null || charSequenceLength(this_0) === 0) {
|
|
284
284
|
tmp = ' ';
|
|
285
285
|
} else {
|
|
286
286
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
287
|
-
var this_1 = drop(' ', ensureNotNull(row.
|
|
287
|
+
var this_1 = drop(' ', ensureNotNull(row.j1b_1).length);
|
|
288
288
|
var tmp_0;
|
|
289
289
|
// Inline function 'kotlin.text.isEmpty' call
|
|
290
290
|
if (charSequenceLength(this_1) === 0) {
|
|
@@ -293,18 +293,18 @@ protoOf(MordantHelpFormatter).j1f = function (row) {
|
|
|
293
293
|
tmp_0 = this_1;
|
|
294
294
|
}
|
|
295
295
|
var tmp$ret$3 = tmp_0;
|
|
296
|
-
tmp = plus(row.
|
|
296
|
+
tmp = plus(row.j1b_1, tmp$ret$3);
|
|
297
297
|
}
|
|
298
298
|
var termPrefix = tmp;
|
|
299
|
-
return Text_init_$Create$(termPrefix + row.
|
|
299
|
+
return Text_init_$Create$(termPrefix + row.h1b_1, Whitespace_PRE_WRAP_getInstance());
|
|
300
300
|
};
|
|
301
|
-
protoOf(MordantHelpFormatter).
|
|
302
|
-
return isBlank(row.
|
|
301
|
+
protoOf(MordantHelpFormatter).s1e = function (row) {
|
|
302
|
+
return isBlank(row.i1b_1) ? Text_init_$Create$('') : this.l4b(row.i1b_1);
|
|
303
303
|
};
|
|
304
|
-
protoOf(MordantHelpFormatter).
|
|
304
|
+
protoOf(MordantHelpFormatter).v1d = function (rows) {
|
|
305
305
|
return definitionList(MordantHelpFormatter$buildParameterList$lambda(rows, this));
|
|
306
306
|
};
|
|
307
|
-
protoOf(MordantHelpFormatter).
|
|
307
|
+
protoOf(MordantHelpFormatter).l4b = function (text) {
|
|
308
308
|
return Text_init_$Create$(replace(text, '\n\n', '\x85\x85'), Whitespace_NORMAL_getInstance());
|
|
309
309
|
};
|
|
310
310
|
//region block: exports
|