@sddsjs/design-system-builder-cli 0.0.0-stage → 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/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var drop = kotlin_kotlin.$_$.vg;
|
|
6
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
7
|
+
var charArrayOf = kotlin_kotlin.$_$.bd;
|
|
8
|
+
var split = kotlin_kotlin.$_$.ei;
|
|
9
|
+
var charSequenceLength = kotlin_kotlin.$_$.fd;
|
|
10
|
+
var startsWith = kotlin_kotlin.$_$.gi;
|
|
11
|
+
var startsWith_0 = kotlin_kotlin.$_$.hi;
|
|
12
|
+
var charCodeAt = kotlin_kotlin.$_$.dd;
|
|
13
|
+
var isLetter = kotlin_kotlin.$_$.kh;
|
|
14
|
+
var trimEnd = kotlin_kotlin.$_$.oj;
|
|
15
|
+
var lastIndexOfAny = kotlin_kotlin.$_$.qh;
|
|
16
|
+
var take = kotlin_kotlin.$_$.si;
|
|
17
|
+
var indexOf = kotlin_kotlin.$_$.fh;
|
|
18
|
+
var RuntimeException = kotlin_kotlin.$_$.vk;
|
|
19
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
20
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.m2;
|
|
21
|
+
var captureStack = kotlin_kotlin.$_$.ad;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
23
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
24
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ud;
|
|
25
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
26
|
+
var emptyMap = kotlin_kotlin.$_$.z7;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.we;
|
|
28
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
29
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
30
|
+
var Collection = kotlin_kotlin.$_$.a6;
|
|
31
|
+
var isInterface = kotlin_kotlin.$_$.fe;
|
|
32
|
+
var isBlank = kotlin_kotlin.$_$.gh;
|
|
33
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
34
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ld;
|
|
35
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
36
|
+
//endregion
|
|
37
|
+
//region block: pre-declaration
|
|
38
|
+
initMetadataForClass(ProcessLaunchException, 'ProcessLaunchException', VOID, RuntimeException);
|
|
39
|
+
initMetadataForInterface(ProcessRunner, 'ProcessRunner', VOID, VOID, VOID, [1]);
|
|
40
|
+
initMetadataForClass(ProcessResult, 'ProcessResult');
|
|
41
|
+
initMetadataForClass(ProcessRequest, 'ProcessRequest');
|
|
42
|
+
//endregion
|
|
43
|
+
function isAbsolutePath(path) {
|
|
44
|
+
var tmp;
|
|
45
|
+
if (startsWith_0(path, _Char___init__impl__6a9atx(47)) || (path.length >= 3 && isLetter(charCodeAt(path, 0)) && charCodeAt(path, 1) === _Char___init__impl__6a9atx(58) && isPathSeparator(charCodeAt(path, 2)))) {
|
|
46
|
+
tmp = true;
|
|
47
|
+
} else {
|
|
48
|
+
var tmp_0;
|
|
49
|
+
if (startsWith(path, '\\\\')) {
|
|
50
|
+
// Inline function 'kotlin.let' call
|
|
51
|
+
var parts = split(drop(path, 2), charArrayOf([_Char___init__impl__6a9atx(92)]));
|
|
52
|
+
var tmp_1;
|
|
53
|
+
var tmp_2;
|
|
54
|
+
if (parts.o() >= 2) {
|
|
55
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
56
|
+
var this_0 = parts.p(0);
|
|
57
|
+
tmp_2 = charSequenceLength(this_0) > 0;
|
|
58
|
+
} else {
|
|
59
|
+
tmp_2 = false;
|
|
60
|
+
}
|
|
61
|
+
if (tmp_2) {
|
|
62
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
63
|
+
var this_1 = parts.p(1);
|
|
64
|
+
tmp_1 = charSequenceLength(this_1) > 0;
|
|
65
|
+
} else {
|
|
66
|
+
tmp_1 = false;
|
|
67
|
+
}
|
|
68
|
+
tmp_0 = tmp_1;
|
|
69
|
+
} else {
|
|
70
|
+
tmp_0 = false;
|
|
71
|
+
}
|
|
72
|
+
tmp = tmp_0;
|
|
73
|
+
}
|
|
74
|
+
return tmp;
|
|
75
|
+
}
|
|
76
|
+
function isPathSeparator(_this__u8e3s4) {
|
|
77
|
+
return _this__u8e3s4 === _Char___init__impl__6a9atx(47) || _this__u8e3s4 === _Char___init__impl__6a9atx(92);
|
|
78
|
+
}
|
|
79
|
+
function parentOfAbsolutePath(path) {
|
|
80
|
+
if (!isAbsolutePath(path))
|
|
81
|
+
return null;
|
|
82
|
+
var normalized = trimEnd(path, charArrayOf([_Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(92)]));
|
|
83
|
+
var rootLength_0 = rootLength(path, normalized);
|
|
84
|
+
if (normalized.length <= rootLength_0)
|
|
85
|
+
return null;
|
|
86
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
87
|
+
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(92)]);
|
|
88
|
+
var lastSeparator = lastIndexOfAny(normalized, tmp$ret$0);
|
|
89
|
+
var tmp;
|
|
90
|
+
if (lastSeparator < rootLength_0) {
|
|
91
|
+
tmp = take(path, rootLength_0);
|
|
92
|
+
} else {
|
|
93
|
+
tmp = take(normalized, lastSeparator);
|
|
94
|
+
}
|
|
95
|
+
return tmp;
|
|
96
|
+
}
|
|
97
|
+
function rootLength(path, normalized) {
|
|
98
|
+
var tmp;
|
|
99
|
+
if (startsWith(path, '\\\\')) {
|
|
100
|
+
var serverEnd = indexOf(path, _Char___init__impl__6a9atx(92), 2);
|
|
101
|
+
// Inline function 'kotlin.takeIf' call
|
|
102
|
+
var this_0 = indexOf(path, _Char___init__impl__6a9atx(92), serverEnd + 1 | 0);
|
|
103
|
+
var tmp_0;
|
|
104
|
+
if (this_0 >= 0) {
|
|
105
|
+
tmp_0 = this_0;
|
|
106
|
+
} else {
|
|
107
|
+
tmp_0 = null;
|
|
108
|
+
}
|
|
109
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
110
|
+
tmp = tmp0_elvis_lhs == null ? normalized.length : tmp0_elvis_lhs;
|
|
111
|
+
} else if (path.length >= 3 && charCodeAt(path, 1) === _Char___init__impl__6a9atx(58)) {
|
|
112
|
+
tmp = 3;
|
|
113
|
+
} else {
|
|
114
|
+
tmp = 1;
|
|
115
|
+
}
|
|
116
|
+
return tmp;
|
|
117
|
+
}
|
|
118
|
+
function ProcessLaunchException(message, cause) {
|
|
119
|
+
cause = cause === VOID ? null : cause;
|
|
120
|
+
RuntimeException_init_$Init$(message, cause, this);
|
|
121
|
+
captureStack(this, ProcessLaunchException);
|
|
122
|
+
}
|
|
123
|
+
function ProcessRunner() {
|
|
124
|
+
}
|
|
125
|
+
function ProcessResult(exitCode, output) {
|
|
126
|
+
this.k5o_1 = exitCode;
|
|
127
|
+
this.l5o_1 = output;
|
|
128
|
+
}
|
|
129
|
+
protoOf(ProcessResult).toString = function () {
|
|
130
|
+
return 'ProcessResult(exitCode=' + this.k5o_1 + ', output=' + this.l5o_1 + ')';
|
|
131
|
+
};
|
|
132
|
+
protoOf(ProcessResult).hashCode = function () {
|
|
133
|
+
var result = this.k5o_1;
|
|
134
|
+
result = imul(result, 31) + getStringHashCode(this.l5o_1) | 0;
|
|
135
|
+
return result;
|
|
136
|
+
};
|
|
137
|
+
protoOf(ProcessResult).equals = function (other) {
|
|
138
|
+
if (this === other)
|
|
139
|
+
return true;
|
|
140
|
+
if (!(other instanceof ProcessResult))
|
|
141
|
+
return false;
|
|
142
|
+
if (!(this.k5o_1 === other.k5o_1))
|
|
143
|
+
return false;
|
|
144
|
+
if (!(this.l5o_1 === other.l5o_1))
|
|
145
|
+
return false;
|
|
146
|
+
return true;
|
|
147
|
+
};
|
|
148
|
+
function ProcessRequest(executable, args, workingDirectory, environment, inheritStdio) {
|
|
149
|
+
environment = environment === VOID ? emptyMap() : environment;
|
|
150
|
+
inheritStdio = inheritStdio === VOID ? true : inheritStdio;
|
|
151
|
+
this.m5o_1 = executable;
|
|
152
|
+
this.n5o_1 = args;
|
|
153
|
+
this.o5o_1 = workingDirectory;
|
|
154
|
+
this.p5o_1 = environment;
|
|
155
|
+
this.q5o_1 = inheritStdio;
|
|
156
|
+
// Inline function 'kotlin.require' call
|
|
157
|
+
if (!isAbsolutePath(this.m5o_1)) {
|
|
158
|
+
var message = "Process executable must be an absolute path: '" + this.m5o_1 + "'.";
|
|
159
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
160
|
+
}
|
|
161
|
+
// Inline function 'kotlin.require' call
|
|
162
|
+
if (!isAbsolutePath(this.o5o_1)) {
|
|
163
|
+
var message_0 = "Process working directory must be an absolute path: '" + this.o5o_1 + "'.";
|
|
164
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
165
|
+
}
|
|
166
|
+
var tmp0 = this.p5o_1.d2();
|
|
167
|
+
var tmp$ret$4;
|
|
168
|
+
$l$block_0: {
|
|
169
|
+
// Inline function 'kotlin.collections.none' call
|
|
170
|
+
var tmp;
|
|
171
|
+
if (isInterface(tmp0, Collection)) {
|
|
172
|
+
tmp = tmp0.r();
|
|
173
|
+
} else {
|
|
174
|
+
tmp = false;
|
|
175
|
+
}
|
|
176
|
+
if (tmp) {
|
|
177
|
+
tmp$ret$4 = true;
|
|
178
|
+
break $l$block_0;
|
|
179
|
+
}
|
|
180
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
181
|
+
while (_iterator__ex2g4s.m()) {
|
|
182
|
+
var element = _iterator__ex2g4s.n();
|
|
183
|
+
if (isBlank(element)) {
|
|
184
|
+
tmp$ret$4 = false;
|
|
185
|
+
break $l$block_0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
tmp$ret$4 = true;
|
|
189
|
+
}
|
|
190
|
+
// Inline function 'kotlin.require' call
|
|
191
|
+
if (!tmp$ret$4) {
|
|
192
|
+
var message_1 = 'Process environment keys must not be blank.';
|
|
193
|
+
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
protoOf(ProcessRequest).toString = function () {
|
|
197
|
+
return 'ProcessRequest(executable=' + this.m5o_1 + ', args=' + toString(this.n5o_1) + ', workingDirectory=' + this.o5o_1 + ', environment=' + toString(this.p5o_1) + ', inheritStdio=' + this.q5o_1 + ')';
|
|
198
|
+
};
|
|
199
|
+
protoOf(ProcessRequest).hashCode = function () {
|
|
200
|
+
var result = getStringHashCode(this.m5o_1);
|
|
201
|
+
result = imul(result, 31) + hashCode(this.n5o_1) | 0;
|
|
202
|
+
result = imul(result, 31) + getStringHashCode(this.o5o_1) | 0;
|
|
203
|
+
result = imul(result, 31) + hashCode(this.p5o_1) | 0;
|
|
204
|
+
result = imul(result, 31) + getBooleanHashCode(this.q5o_1) | 0;
|
|
205
|
+
return result;
|
|
206
|
+
};
|
|
207
|
+
protoOf(ProcessRequest).equals = function (other) {
|
|
208
|
+
if (this === other)
|
|
209
|
+
return true;
|
|
210
|
+
if (!(other instanceof ProcessRequest))
|
|
211
|
+
return false;
|
|
212
|
+
if (!(this.m5o_1 === other.m5o_1))
|
|
213
|
+
return false;
|
|
214
|
+
if (!equals(this.n5o_1, other.n5o_1))
|
|
215
|
+
return false;
|
|
216
|
+
if (!(this.o5o_1 === other.o5o_1))
|
|
217
|
+
return false;
|
|
218
|
+
if (!equals(this.p5o_1, other.p5o_1))
|
|
219
|
+
return false;
|
|
220
|
+
if (!(this.q5o_1 === other.q5o_1))
|
|
221
|
+
return false;
|
|
222
|
+
return true;
|
|
223
|
+
};
|
|
224
|
+
//region block: exports
|
|
225
|
+
_.$_$ = _.$_$ || {};
|
|
226
|
+
_.$_$.a = ProcessLaunchException;
|
|
227
|
+
_.$_$.b = ProcessRequest;
|
|
228
|
+
_.$_$.c = ProcessResult;
|
|
229
|
+
_.$_$.d = ProcessRunner;
|
|
230
|
+
_.$_$.e = isAbsolutePath;
|
|
231
|
+
_.$_$.f = parentOfAbsolutePath;
|
|
232
|
+
//endregion
|
|
233
|
+
return _;
|
|
234
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js')));
|
|
235
|
+
|
|
236
|
+
//# sourceMappingURL=design-system-builder-frontend-core-process.js.map
|