@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,586 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_io_insert_koin_koin_core, kotlin_design_system_builder_frontend_core_platform, kotlin_design_system_builder_frontend_core_application, kotlin_design_system_builder_frontend_core_workspace, kotlin_design_system_builder_frontend_core_domain) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
6
|
+
var module_0 = kotlin_io_insert_koin_koin_core.$_$.g;
|
|
7
|
+
var Companion_getInstance = kotlin_io_insert_koin_koin_core.$_$.b;
|
|
8
|
+
var Kind_Singleton_getInstance = kotlin_io_insert_koin_koin_core.$_$.a;
|
|
9
|
+
var emptyList = kotlin_kotlin.$_$.y7;
|
|
10
|
+
var getKClass = kotlin_kotlin.$_$.qf;
|
|
11
|
+
var BeanDefinition = kotlin_io_insert_koin_koin_core.$_$.c;
|
|
12
|
+
var SingleInstanceFactory = kotlin_io_insert_koin_koin_core.$_$.e;
|
|
13
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
14
|
+
var KoinDefinition = kotlin_io_insert_koin_koin_core.$_$.d;
|
|
15
|
+
var PlatformDelegateRegistry = kotlin_design_system_builder_frontend_core_platform.$_$.g;
|
|
16
|
+
var ProjectContextReader = kotlin_design_system_builder_frontend_core_application.$_$.p;
|
|
17
|
+
var WorkspaceFileSystem = kotlin_design_system_builder_frontend_core_workspace.$_$.i;
|
|
18
|
+
var ToolchainInstallerRegistry = kotlin_design_system_builder_frontend_core_platform.$_$.p;
|
|
19
|
+
var joinToString = kotlin_kotlin.$_$.r8;
|
|
20
|
+
var charSequenceLength = kotlin_kotlin.$_$.fd;
|
|
21
|
+
var _ToolchainId___get_value__impl__s7z1bd = kotlin_design_system_builder_frontend_core_platform.$_$.c1;
|
|
22
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tb;
|
|
23
|
+
var _ToolchainId___init__impl__eu7bv9 = kotlin_design_system_builder_frontend_core_platform.$_$.z;
|
|
24
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.nk;
|
|
25
|
+
var ToolchainInstallRequest = kotlin_design_system_builder_frontend_core_platform.$_$.m;
|
|
26
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.db;
|
|
27
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.vl;
|
|
28
|
+
var Failed = kotlin_design_system_builder_frontend_core_platform.$_$.n;
|
|
29
|
+
var Installed = kotlin_design_system_builder_frontend_core_platform.$_$.o;
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
31
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sd;
|
|
32
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
33
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
34
|
+
var ToolchainId__toString_impl_4s8lfn = kotlin_design_system_builder_frontend_core_platform.$_$.b1;
|
|
35
|
+
var ToolchainId__hashCode_impl_qjei8i = kotlin_design_system_builder_frontend_core_platform.$_$.a1;
|
|
36
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.y6;
|
|
37
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
38
|
+
var WorkspacePaths = kotlin_design_system_builder_frontend_core_platform.$_$.t;
|
|
39
|
+
var Failed_0 = kotlin_design_system_builder_frontend_core_application.$_$.n;
|
|
40
|
+
var Companion_instance = kotlin_design_system_builder_frontend_core_platform.$_$.e1;
|
|
41
|
+
var Found = kotlin_design_system_builder_frontend_core_application.$_$.o;
|
|
42
|
+
var listOf = kotlin_kotlin.$_$.e9;
|
|
43
|
+
var toString = kotlin_kotlin.$_$.we;
|
|
44
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
45
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
46
|
+
var toString_0 = kotlin_kotlin.$_$.bm;
|
|
47
|
+
var get_entries = kotlin_design_system_builder_frontend_core_domain.$_$.g;
|
|
48
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
49
|
+
var get_entries_0 = kotlin_design_system_builder_frontend_core_platform.$_$.a;
|
|
50
|
+
//endregion
|
|
51
|
+
//region block: pre-declaration
|
|
52
|
+
initMetadataForCoroutine($executeCOROUTINE$, CoroutineImpl);
|
|
53
|
+
initMetadataForClass(InstallToolchainUseCase, 'InstallToolchainUseCase', VOID, VOID, VOID, [1]);
|
|
54
|
+
initMetadataForClass(InstallToolchainCommand, 'InstallToolchainCommand');
|
|
55
|
+
initMetadataForClass(Installed_0, 'Installed');
|
|
56
|
+
initMetadataForClass(Failed_1, 'Failed');
|
|
57
|
+
initMetadataForClass(ListToolchainsUseCase, 'ListToolchainsUseCase');
|
|
58
|
+
initMetadataForCoroutine($executeCOROUTINE$_0, CoroutineImpl);
|
|
59
|
+
initMetadataForClass(DoctorToolchainsUseCase, 'DoctorToolchainsUseCase', VOID, VOID, VOID, [1]);
|
|
60
|
+
initMetadataForClass(ToolchainSummary, 'ToolchainSummary');
|
|
61
|
+
initMetadataForClass(DoctorToolchainsCommand, 'DoctorToolchainsCommand', DoctorToolchainsCommand);
|
|
62
|
+
initMetadataForClass(Checked, 'Checked');
|
|
63
|
+
initMetadataForClass(Failed_2, 'Failed');
|
|
64
|
+
initMetadataForClass(ToolchainDoctorEntry, 'ToolchainDoctorEntry');
|
|
65
|
+
//endregion
|
|
66
|
+
function toolchainApplicationModule() {
|
|
67
|
+
return module_0(VOID, toolchainApplicationModule$lambda);
|
|
68
|
+
}
|
|
69
|
+
function toolchainApplicationModule$lambda($this$module) {
|
|
70
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
71
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
72
|
+
var definition = toolchainApplicationModule$lambda$lambda;
|
|
73
|
+
var scopeQualifier = Companion_getInstance().u56_1;
|
|
74
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
75
|
+
var kind = Kind_Singleton_getInstance();
|
|
76
|
+
var secondaryTypes = emptyList();
|
|
77
|
+
var def = new BeanDefinition(scopeQualifier, getKClass(ListToolchainsUseCase), null, definition, kind, secondaryTypes);
|
|
78
|
+
var factory = new SingleInstanceFactory(def);
|
|
79
|
+
$this$module.k58(factory);
|
|
80
|
+
if (false || $this$module.e58_1) {
|
|
81
|
+
$this$module.m58(factory);
|
|
82
|
+
}
|
|
83
|
+
new KoinDefinition($this$module, factory);
|
|
84
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
85
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
86
|
+
var definition_0 = toolchainApplicationModule$lambda$lambda_0;
|
|
87
|
+
var scopeQualifier_0 = Companion_getInstance().u56_1;
|
|
88
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
89
|
+
var kind_0 = Kind_Singleton_getInstance();
|
|
90
|
+
var secondaryTypes_0 = emptyList();
|
|
91
|
+
var def_0 = new BeanDefinition(scopeQualifier_0, getKClass(DoctorToolchainsUseCase), null, definition_0, kind_0, secondaryTypes_0);
|
|
92
|
+
var factory_0 = new SingleInstanceFactory(def_0);
|
|
93
|
+
$this$module.k58(factory_0);
|
|
94
|
+
if (false || $this$module.e58_1) {
|
|
95
|
+
$this$module.m58(factory_0);
|
|
96
|
+
}
|
|
97
|
+
new KoinDefinition($this$module, factory_0);
|
|
98
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
99
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
100
|
+
var definition_1 = toolchainApplicationModule$lambda$lambda_1;
|
|
101
|
+
var scopeQualifier_1 = Companion_getInstance().u56_1;
|
|
102
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
103
|
+
var kind_1 = Kind_Singleton_getInstance();
|
|
104
|
+
var secondaryTypes_1 = emptyList();
|
|
105
|
+
var def_1 = new BeanDefinition(scopeQualifier_1, getKClass(InstallToolchainUseCase), null, definition_1, kind_1, secondaryTypes_1);
|
|
106
|
+
var factory_1 = new SingleInstanceFactory(def_1);
|
|
107
|
+
$this$module.k58(factory_1);
|
|
108
|
+
if (false || $this$module.e58_1) {
|
|
109
|
+
$this$module.m58(factory_1);
|
|
110
|
+
}
|
|
111
|
+
new KoinDefinition($this$module, factory_1);
|
|
112
|
+
return Unit_instance;
|
|
113
|
+
}
|
|
114
|
+
function toolchainApplicationModule$lambda$lambda($this$single, it) {
|
|
115
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
116
|
+
var tmp$ret$0 = $this$single.j59(getKClass(PlatformDelegateRegistry), null, null);
|
|
117
|
+
return new ListToolchainsUseCase(tmp$ret$0);
|
|
118
|
+
}
|
|
119
|
+
function toolchainApplicationModule$lambda$lambda_0($this$single, it) {
|
|
120
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
121
|
+
var tmp = $this$single.j59(getKClass(PlatformDelegateRegistry), null, null);
|
|
122
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
123
|
+
var tmp_0 = $this$single.j59(getKClass(ProjectContextReader), null, null);
|
|
124
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
125
|
+
var tmp$ret$2 = $this$single.j59(getKClass(WorkspaceFileSystem), null, null);
|
|
126
|
+
return new DoctorToolchainsUseCase(tmp, tmp_0, tmp$ret$2);
|
|
127
|
+
}
|
|
128
|
+
function toolchainApplicationModule$lambda$lambda_1($this$single, it) {
|
|
129
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
130
|
+
var tmp$ret$0 = $this$single.j59(getKClass(ToolchainInstallerRegistry), null, null);
|
|
131
|
+
return new InstallToolchainUseCase(tmp$ret$0);
|
|
132
|
+
}
|
|
133
|
+
function installableHint($this) {
|
|
134
|
+
var installable = joinToString($this.dbd_1.d67_1, VOID, VOID, VOID, VOID, VOID, InstallToolchainUseCase$installableHint$lambda);
|
|
135
|
+
var tmp;
|
|
136
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
137
|
+
if (charSequenceLength(installable) === 0) {
|
|
138
|
+
tmp = 'No toolchains can be installed by this client.';
|
|
139
|
+
} else {
|
|
140
|
+
tmp = 'Installable toolchains: ' + installable + '.';
|
|
141
|
+
}
|
|
142
|
+
return tmp;
|
|
143
|
+
}
|
|
144
|
+
function InstallToolchainUseCase$installableHint$lambda(it) {
|
|
145
|
+
return _ToolchainId___get_value__impl__s7z1bd(it.t64());
|
|
146
|
+
}
|
|
147
|
+
function $executeCOROUTINE$(_this__u8e3s4, command, resultContinuation) {
|
|
148
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
149
|
+
this.mbd_1 = _this__u8e3s4;
|
|
150
|
+
this.nbd_1 = command;
|
|
151
|
+
}
|
|
152
|
+
protoOf($executeCOROUTINE$).e9 = function () {
|
|
153
|
+
var suspendResult = this.y8_1;
|
|
154
|
+
$sm: do
|
|
155
|
+
try {
|
|
156
|
+
var tmp = this.w8_1;
|
|
157
|
+
switch (tmp) {
|
|
158
|
+
case 0:
|
|
159
|
+
this.x8_1 = 2;
|
|
160
|
+
var tmp_0 = this;
|
|
161
|
+
var tmp_1;
|
|
162
|
+
try {
|
|
163
|
+
tmp_1 = _ToolchainId___init__impl__eu7bv9(this.nbd_1.pbd_1);
|
|
164
|
+
} catch ($p) {
|
|
165
|
+
var tmp_2;
|
|
166
|
+
if ($p instanceof IllegalArgumentException) {
|
|
167
|
+
var error = $p;
|
|
168
|
+
return new Failed_1('' + error.message + ' ' + installableHint(this.mbd_1));
|
|
169
|
+
} else {
|
|
170
|
+
throw $p;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
tmp_0.obd_1 = tmp_1;
|
|
175
|
+
var tmp0_elvis_lhs = this.mbd_1.dbd_1.f67(this.obd_1);
|
|
176
|
+
var tmp_3;
|
|
177
|
+
if (tmp0_elvis_lhs == null) {
|
|
178
|
+
return new Failed_1("No installer is registered for toolchain '" + _ToolchainId___get_value__impl__s7z1bd(this.obd_1) + "'. " + installableHint(this.mbd_1));
|
|
179
|
+
} else {
|
|
180
|
+
tmp_3 = tmp0_elvis_lhs;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
var installer = tmp_3;
|
|
184
|
+
var request = new ToolchainInstallRequest(this.nbd_1.qbd_1, this.nbd_1.rbd_1);
|
|
185
|
+
this.w8_1 = 1;
|
|
186
|
+
suspendResult = installer.sbd(request, this);
|
|
187
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
188
|
+
return suspendResult;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
continue $sm;
|
|
192
|
+
case 1:
|
|
193
|
+
var result = suspendResult;
|
|
194
|
+
var tmp_4;
|
|
195
|
+
if (result instanceof Installed) {
|
|
196
|
+
tmp_4 = new Installed_0(this.obd_1, result.y66_1, result.z66_1);
|
|
197
|
+
} else {
|
|
198
|
+
if (result instanceof Failed) {
|
|
199
|
+
tmp_4 = new Failed_1(result.a67_1);
|
|
200
|
+
} else {
|
|
201
|
+
noWhenBranchMatchedException();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return tmp_4;
|
|
206
|
+
case 2:
|
|
207
|
+
throw this.z8_1;
|
|
208
|
+
}
|
|
209
|
+
} catch ($p) {
|
|
210
|
+
var e = $p;
|
|
211
|
+
if (this.x8_1 === 2) {
|
|
212
|
+
throw e;
|
|
213
|
+
} else {
|
|
214
|
+
this.w8_1 = this.x8_1;
|
|
215
|
+
this.z8_1 = e;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
while (true);
|
|
219
|
+
};
|
|
220
|
+
function InstallToolchainUseCase(registry) {
|
|
221
|
+
this.dbd_1 = registry;
|
|
222
|
+
}
|
|
223
|
+
protoOf(InstallToolchainUseCase).tbd = function (command, $completion) {
|
|
224
|
+
var tmp = new $executeCOROUTINE$(this, command, $completion);
|
|
225
|
+
tmp.y8_1 = Unit_instance;
|
|
226
|
+
tmp.z8_1 = null;
|
|
227
|
+
return tmp.e9();
|
|
228
|
+
};
|
|
229
|
+
function InstallToolchainCommand(toolchain, version, archive) {
|
|
230
|
+
version = version === VOID ? null : version;
|
|
231
|
+
archive = archive === VOID ? null : archive;
|
|
232
|
+
this.pbd_1 = toolchain;
|
|
233
|
+
this.qbd_1 = version;
|
|
234
|
+
this.rbd_1 = archive;
|
|
235
|
+
}
|
|
236
|
+
protoOf(InstallToolchainCommand).toString = function () {
|
|
237
|
+
return 'InstallToolchainCommand(toolchain=' + this.pbd_1 + ', version=' + this.qbd_1 + ', archive=' + this.rbd_1 + ')';
|
|
238
|
+
};
|
|
239
|
+
protoOf(InstallToolchainCommand).hashCode = function () {
|
|
240
|
+
var result = getStringHashCode(this.pbd_1);
|
|
241
|
+
result = imul(result, 31) + (this.qbd_1 == null ? 0 : getStringHashCode(this.qbd_1)) | 0;
|
|
242
|
+
result = imul(result, 31) + (this.rbd_1 == null ? 0 : getStringHashCode(this.rbd_1)) | 0;
|
|
243
|
+
return result;
|
|
244
|
+
};
|
|
245
|
+
protoOf(InstallToolchainCommand).equals = function (other) {
|
|
246
|
+
if (this === other)
|
|
247
|
+
return true;
|
|
248
|
+
if (!(other instanceof InstallToolchainCommand))
|
|
249
|
+
return false;
|
|
250
|
+
if (!(this.pbd_1 === other.pbd_1))
|
|
251
|
+
return false;
|
|
252
|
+
if (!(this.qbd_1 == other.qbd_1))
|
|
253
|
+
return false;
|
|
254
|
+
if (!(this.rbd_1 == other.rbd_1))
|
|
255
|
+
return false;
|
|
256
|
+
return true;
|
|
257
|
+
};
|
|
258
|
+
function Installed_0(toolchain, version, executable) {
|
|
259
|
+
this.ubd_1 = toolchain;
|
|
260
|
+
this.vbd_1 = version;
|
|
261
|
+
this.wbd_1 = executable;
|
|
262
|
+
}
|
|
263
|
+
protoOf(Installed_0).toString = function () {
|
|
264
|
+
return 'Installed(toolchain=' + ToolchainId__toString_impl_4s8lfn(this.ubd_1) + ', version=' + this.vbd_1 + ', executable=' + this.wbd_1 + ')';
|
|
265
|
+
};
|
|
266
|
+
protoOf(Installed_0).hashCode = function () {
|
|
267
|
+
var result = ToolchainId__hashCode_impl_qjei8i(this.ubd_1);
|
|
268
|
+
result = imul(result, 31) + getStringHashCode(this.vbd_1) | 0;
|
|
269
|
+
result = imul(result, 31) + getStringHashCode(this.wbd_1) | 0;
|
|
270
|
+
return result;
|
|
271
|
+
};
|
|
272
|
+
protoOf(Installed_0).equals = function (other) {
|
|
273
|
+
if (this === other)
|
|
274
|
+
return true;
|
|
275
|
+
if (!(other instanceof Installed_0))
|
|
276
|
+
return false;
|
|
277
|
+
if (!(this.ubd_1 === other.ubd_1))
|
|
278
|
+
return false;
|
|
279
|
+
if (!(this.vbd_1 === other.vbd_1))
|
|
280
|
+
return false;
|
|
281
|
+
if (!(this.wbd_1 === other.wbd_1))
|
|
282
|
+
return false;
|
|
283
|
+
return true;
|
|
284
|
+
};
|
|
285
|
+
function Failed_1(message) {
|
|
286
|
+
this.xbd_1 = message;
|
|
287
|
+
}
|
|
288
|
+
protoOf(Failed_1).toString = function () {
|
|
289
|
+
return 'Failed(message=' + this.xbd_1 + ')';
|
|
290
|
+
};
|
|
291
|
+
protoOf(Failed_1).hashCode = function () {
|
|
292
|
+
return getStringHashCode(this.xbd_1);
|
|
293
|
+
};
|
|
294
|
+
protoOf(Failed_1).equals = function (other) {
|
|
295
|
+
if (this === other)
|
|
296
|
+
return true;
|
|
297
|
+
if (!(other instanceof Failed_1))
|
|
298
|
+
return false;
|
|
299
|
+
if (!(this.xbd_1 === other.xbd_1))
|
|
300
|
+
return false;
|
|
301
|
+
return true;
|
|
302
|
+
};
|
|
303
|
+
function ListToolchainsUseCase(registry) {
|
|
304
|
+
this.ybd_1 = registry;
|
|
305
|
+
}
|
|
306
|
+
protoOf(ListToolchainsUseCase).b8n = function () {
|
|
307
|
+
// Inline function 'kotlin.collections.map' call
|
|
308
|
+
var this_0 = this.ybd_1.o64_1;
|
|
309
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
310
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
311
|
+
var _iterator__ex2g4s = this_0.l();
|
|
312
|
+
while (_iterator__ex2g4s.m()) {
|
|
313
|
+
var item = _iterator__ex2g4s.n();
|
|
314
|
+
var tmp$ret$0 = toSummary(item);
|
|
315
|
+
destination.j(tmp$ret$0);
|
|
316
|
+
}
|
|
317
|
+
return destination;
|
|
318
|
+
};
|
|
319
|
+
function resolveWorkspace($this) {
|
|
320
|
+
var context = $this.abe_1.j5s(null);
|
|
321
|
+
var tmp;
|
|
322
|
+
if (context instanceof Found) {
|
|
323
|
+
tmp = Companion_instance.x65($this.bbe_1.e5o(context.s5t_1.a5p_1));
|
|
324
|
+
} else {
|
|
325
|
+
if (context instanceof Failed_0) {
|
|
326
|
+
var workingDirectory = $this.bbe_1.v5n();
|
|
327
|
+
tmp = new WorkspacePaths($this.bbe_1.k4z(workingDirectory, '.sdds'), workingDirectory);
|
|
328
|
+
} else {
|
|
329
|
+
noWhenBranchMatchedException();
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return tmp;
|
|
333
|
+
}
|
|
334
|
+
function $executeCOROUTINE$_0(_this__u8e3s4, command, resultContinuation) {
|
|
335
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
336
|
+
this.kbe_1 = _this__u8e3s4;
|
|
337
|
+
this.lbe_1 = command;
|
|
338
|
+
}
|
|
339
|
+
protoOf($executeCOROUTINE$_0).e9 = function () {
|
|
340
|
+
var suspendResult = this.y8_1;
|
|
341
|
+
$sm: do
|
|
342
|
+
try {
|
|
343
|
+
var tmp = this.w8_1;
|
|
344
|
+
switch (tmp) {
|
|
345
|
+
case 0:
|
|
346
|
+
this.x8_1 = 4;
|
|
347
|
+
var platform = this.lbe_1.rbe_1;
|
|
348
|
+
var tmp_0;
|
|
349
|
+
if ((platform == null ? -1 : platform.o2_1) === -1) {
|
|
350
|
+
tmp_0 = this.kbe_1.zbd_1.o64_1;
|
|
351
|
+
} else {
|
|
352
|
+
var tmp0_elvis_lhs = this.kbe_1.zbd_1.s65(platform);
|
|
353
|
+
var tmp_1;
|
|
354
|
+
if (tmp0_elvis_lhs == null) {
|
|
355
|
+
return new Failed_2("No platform toolchain is registered for '" + platform.m5p_1 + "'.");
|
|
356
|
+
} else {
|
|
357
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
358
|
+
}
|
|
359
|
+
tmp_0 = listOf(tmp_1);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
var delegates = tmp_0;
|
|
363
|
+
this.mbe_1 = resolveWorkspace(this.kbe_1);
|
|
364
|
+
var tmp_2 = this;
|
|
365
|
+
var tmp1_safe_receiver = this.lbe_1.sbe_1;
|
|
366
|
+
var tmp_3;
|
|
367
|
+
if (tmp1_safe_receiver == null) {
|
|
368
|
+
tmp_3 = null;
|
|
369
|
+
} else {
|
|
370
|
+
tmp_3 = this.kbe_1.bbe_1.e5o(tmp1_safe_receiver);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
tmp_2.pbe_1 = tmp_3;
|
|
374
|
+
this.nbe_1 = ArrayList_init_$Create$(collectionSizeOrDefault(delegates, 10));
|
|
375
|
+
this.qbe_1 = delegates.l();
|
|
376
|
+
this.w8_1 = 1;
|
|
377
|
+
continue $sm;
|
|
378
|
+
case 1:
|
|
379
|
+
if (!this.qbe_1.m()) {
|
|
380
|
+
this.w8_1 = 3;
|
|
381
|
+
continue $sm;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
var item = this.qbe_1.n();
|
|
385
|
+
this.obe_1 = toSummary(item);
|
|
386
|
+
this.w8_1 = 2;
|
|
387
|
+
suspendResult = item.y65(this.mbe_1, this.pbe_1, this);
|
|
388
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
389
|
+
return suspendResult;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
continue $sm;
|
|
393
|
+
case 2:
|
|
394
|
+
var ARGUMENT = suspendResult;
|
|
395
|
+
var ARGUMENT_0 = new ToolchainDoctorEntry(this.obe_1, ARGUMENT);
|
|
396
|
+
this.nbe_1.j(ARGUMENT_0);
|
|
397
|
+
this.w8_1 = 1;
|
|
398
|
+
continue $sm;
|
|
399
|
+
case 3:
|
|
400
|
+
var ARGUMENT_1 = this.nbe_1;
|
|
401
|
+
return new Checked(this.mbe_1, ARGUMENT_1);
|
|
402
|
+
case 4:
|
|
403
|
+
throw this.z8_1;
|
|
404
|
+
}
|
|
405
|
+
} catch ($p) {
|
|
406
|
+
var e = $p;
|
|
407
|
+
if (this.x8_1 === 4) {
|
|
408
|
+
throw e;
|
|
409
|
+
} else {
|
|
410
|
+
this.w8_1 = this.x8_1;
|
|
411
|
+
this.z8_1 = e;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
while (true);
|
|
415
|
+
};
|
|
416
|
+
function DoctorToolchainsUseCase(registry, projectContextReader, fileSystem) {
|
|
417
|
+
this.zbd_1 = registry;
|
|
418
|
+
this.abe_1 = projectContextReader;
|
|
419
|
+
this.bbe_1 = fileSystem;
|
|
420
|
+
}
|
|
421
|
+
protoOf(DoctorToolchainsUseCase).tbe = function (command, $completion) {
|
|
422
|
+
var tmp = new $executeCOROUTINE$_0(this, command, $completion);
|
|
423
|
+
tmp.y8_1 = Unit_instance;
|
|
424
|
+
tmp.z8_1 = null;
|
|
425
|
+
return tmp.e9();
|
|
426
|
+
};
|
|
427
|
+
function ToolchainSummary(toolchain, platforms, capabilities) {
|
|
428
|
+
this.ube_1 = toolchain;
|
|
429
|
+
this.vbe_1 = platforms;
|
|
430
|
+
this.wbe_1 = capabilities;
|
|
431
|
+
}
|
|
432
|
+
protoOf(ToolchainSummary).toString = function () {
|
|
433
|
+
return 'ToolchainSummary(toolchain=' + ToolchainId__toString_impl_4s8lfn(this.ube_1) + ', platforms=' + toString(this.vbe_1) + ', capabilities=' + toString(this.wbe_1) + ')';
|
|
434
|
+
};
|
|
435
|
+
protoOf(ToolchainSummary).hashCode = function () {
|
|
436
|
+
var result = ToolchainId__hashCode_impl_qjei8i(this.ube_1);
|
|
437
|
+
result = imul(result, 31) + hashCode(this.vbe_1) | 0;
|
|
438
|
+
result = imul(result, 31) + hashCode(this.wbe_1) | 0;
|
|
439
|
+
return result;
|
|
440
|
+
};
|
|
441
|
+
protoOf(ToolchainSummary).equals = function (other) {
|
|
442
|
+
if (this === other)
|
|
443
|
+
return true;
|
|
444
|
+
if (!(other instanceof ToolchainSummary))
|
|
445
|
+
return false;
|
|
446
|
+
if (!(this.ube_1 === other.ube_1))
|
|
447
|
+
return false;
|
|
448
|
+
if (!equals(this.vbe_1, other.vbe_1))
|
|
449
|
+
return false;
|
|
450
|
+
if (!equals(this.wbe_1, other.wbe_1))
|
|
451
|
+
return false;
|
|
452
|
+
return true;
|
|
453
|
+
};
|
|
454
|
+
function DoctorToolchainsCommand(platform, toolOverride) {
|
|
455
|
+
platform = platform === VOID ? null : platform;
|
|
456
|
+
toolOverride = toolOverride === VOID ? null : toolOverride;
|
|
457
|
+
this.rbe_1 = platform;
|
|
458
|
+
this.sbe_1 = toolOverride;
|
|
459
|
+
}
|
|
460
|
+
protoOf(DoctorToolchainsCommand).toString = function () {
|
|
461
|
+
return 'DoctorToolchainsCommand(platform=' + toString_0(this.rbe_1) + ', toolOverride=' + this.sbe_1 + ')';
|
|
462
|
+
};
|
|
463
|
+
protoOf(DoctorToolchainsCommand).hashCode = function () {
|
|
464
|
+
var result = this.rbe_1 == null ? 0 : this.rbe_1.hashCode();
|
|
465
|
+
result = imul(result, 31) + (this.sbe_1 == null ? 0 : getStringHashCode(this.sbe_1)) | 0;
|
|
466
|
+
return result;
|
|
467
|
+
};
|
|
468
|
+
protoOf(DoctorToolchainsCommand).equals = function (other) {
|
|
469
|
+
if (this === other)
|
|
470
|
+
return true;
|
|
471
|
+
if (!(other instanceof DoctorToolchainsCommand))
|
|
472
|
+
return false;
|
|
473
|
+
if (!equals(this.rbe_1, other.rbe_1))
|
|
474
|
+
return false;
|
|
475
|
+
if (!(this.sbe_1 == other.sbe_1))
|
|
476
|
+
return false;
|
|
477
|
+
return true;
|
|
478
|
+
};
|
|
479
|
+
function Checked(workspace, entries) {
|
|
480
|
+
this.xbe_1 = workspace;
|
|
481
|
+
this.ybe_1 = entries;
|
|
482
|
+
}
|
|
483
|
+
protoOf(Checked).toString = function () {
|
|
484
|
+
return 'Checked(workspace=' + this.xbe_1.toString() + ', entries=' + toString(this.ybe_1) + ')';
|
|
485
|
+
};
|
|
486
|
+
protoOf(Checked).hashCode = function () {
|
|
487
|
+
var result = this.xbe_1.hashCode();
|
|
488
|
+
result = imul(result, 31) + hashCode(this.ybe_1) | 0;
|
|
489
|
+
return result;
|
|
490
|
+
};
|
|
491
|
+
protoOf(Checked).equals = function (other) {
|
|
492
|
+
if (this === other)
|
|
493
|
+
return true;
|
|
494
|
+
if (!(other instanceof Checked))
|
|
495
|
+
return false;
|
|
496
|
+
if (!this.xbe_1.equals(other.xbe_1))
|
|
497
|
+
return false;
|
|
498
|
+
if (!equals(this.ybe_1, other.ybe_1))
|
|
499
|
+
return false;
|
|
500
|
+
return true;
|
|
501
|
+
};
|
|
502
|
+
function Failed_2(message) {
|
|
503
|
+
this.zbe_1 = message;
|
|
504
|
+
}
|
|
505
|
+
protoOf(Failed_2).toString = function () {
|
|
506
|
+
return 'Failed(message=' + this.zbe_1 + ')';
|
|
507
|
+
};
|
|
508
|
+
protoOf(Failed_2).hashCode = function () {
|
|
509
|
+
return getStringHashCode(this.zbe_1);
|
|
510
|
+
};
|
|
511
|
+
protoOf(Failed_2).equals = function (other) {
|
|
512
|
+
if (this === other)
|
|
513
|
+
return true;
|
|
514
|
+
if (!(other instanceof Failed_2))
|
|
515
|
+
return false;
|
|
516
|
+
if (!(this.zbe_1 === other.zbe_1))
|
|
517
|
+
return false;
|
|
518
|
+
return true;
|
|
519
|
+
};
|
|
520
|
+
function ToolchainDoctorEntry(summary, status) {
|
|
521
|
+
this.abf_1 = summary;
|
|
522
|
+
this.bbf_1 = status;
|
|
523
|
+
}
|
|
524
|
+
protoOf(ToolchainDoctorEntry).toString = function () {
|
|
525
|
+
return 'ToolchainDoctorEntry(summary=' + this.abf_1.toString() + ', status=' + toString(this.bbf_1) + ')';
|
|
526
|
+
};
|
|
527
|
+
protoOf(ToolchainDoctorEntry).hashCode = function () {
|
|
528
|
+
var result = this.abf_1.hashCode();
|
|
529
|
+
result = imul(result, 31) + hashCode(this.bbf_1) | 0;
|
|
530
|
+
return result;
|
|
531
|
+
};
|
|
532
|
+
protoOf(ToolchainDoctorEntry).equals = function (other) {
|
|
533
|
+
if (this === other)
|
|
534
|
+
return true;
|
|
535
|
+
if (!(other instanceof ToolchainDoctorEntry))
|
|
536
|
+
return false;
|
|
537
|
+
if (!this.abf_1.equals(other.abf_1))
|
|
538
|
+
return false;
|
|
539
|
+
if (!equals(this.bbf_1, other.bbf_1))
|
|
540
|
+
return false;
|
|
541
|
+
return true;
|
|
542
|
+
};
|
|
543
|
+
function toSummary(_this__u8e3s4) {
|
|
544
|
+
var tmp = _this__u8e3s4.t64();
|
|
545
|
+
// Inline function 'kotlin.collections.filter' call
|
|
546
|
+
var tmp0 = get_entries();
|
|
547
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
548
|
+
var destination = ArrayList_init_$Create$_0();
|
|
549
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
550
|
+
while (_iterator__ex2g4s.m()) {
|
|
551
|
+
var element = _iterator__ex2g4s.n();
|
|
552
|
+
if (_this__u8e3s4.k66().t(element)) {
|
|
553
|
+
destination.j(element);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
var tmp_0 = destination;
|
|
557
|
+
// Inline function 'kotlin.collections.filter' call
|
|
558
|
+
var tmp0_0 = get_entries_0();
|
|
559
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
560
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
561
|
+
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
562
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
563
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
564
|
+
if (_this__u8e3s4.w65().t(element_0)) {
|
|
565
|
+
destination_0.j(element_0);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return new ToolchainSummary(tmp, tmp_0, destination_0);
|
|
569
|
+
}
|
|
570
|
+
//region block: exports
|
|
571
|
+
_.$_$ = _.$_$ || {};
|
|
572
|
+
_.$_$.a = DoctorToolchainsCommand;
|
|
573
|
+
_.$_$.b = Checked;
|
|
574
|
+
_.$_$.c = Failed_2;
|
|
575
|
+
_.$_$.d = DoctorToolchainsUseCase;
|
|
576
|
+
_.$_$.e = InstallToolchainCommand;
|
|
577
|
+
_.$_$.f = Failed_1;
|
|
578
|
+
_.$_$.g = Installed_0;
|
|
579
|
+
_.$_$.h = InstallToolchainUseCase;
|
|
580
|
+
_.$_$.i = ListToolchainsUseCase;
|
|
581
|
+
_.$_$.j = toolchainApplicationModule;
|
|
582
|
+
//endregion
|
|
583
|
+
return _;
|
|
584
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./projects-core-koin-core.js'), require('./design-system-builder-frontend-core-platform.js'), require('./design-system-builder-frontend-core-application.js'), require('./design-system-builder-frontend-core-workspace.js'), require('./design-system-builder-frontend-core-domain.js')));
|
|
585
|
+
|
|
586
|
+
//# sourceMappingURL=design-system-builder-frontend-feature-toolchain.js.map
|