@lovrabet/lovrabet-cli 2.0.2 → 2.0.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.
Files changed (66) hide show
  1. package/LICENSE +184 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/auth/index.js +1 -1
  9. package/lib/commands/auth/prompt.js +1 -1
  10. package/lib/commands/bff/detail.js +1 -1
  11. package/lib/commands/bff/exec.js +1 -1
  12. package/lib/commands/bff/index.js +1 -1
  13. package/lib/commands/common/config-policy.js +1 -1
  14. package/lib/commands/common/constraints.js +1 -1
  15. package/lib/commands/common/flags.js +1 -1
  16. package/lib/commands/config/definitions.js +1 -1
  17. package/lib/commands/config/shared.js +1 -1
  18. package/lib/commands/data/index.js +1 -1
  19. package/lib/commands/dataset/detail.js +1 -1
  20. package/lib/commands/dataset/index.js +1 -1
  21. package/lib/commands/dataset/list.js +1 -1
  22. package/lib/commands/doctor.js +1 -1
  23. package/lib/commands/init.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -0
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/config/schema.js +1 -1
  32. package/lib/constant/auth-mode.js +1 -1
  33. package/lib/constant/cli.js +1 -1
  34. package/lib/constant/defaults.js +1 -1
  35. package/lib/constant/domain.js +1 -1
  36. package/lib/constant/env.js +1 -1
  37. package/lib/constant/output.js +1 -1
  38. package/lib/constant/risk.js +1 -1
  39. package/lib/constant/url.js +1 -0
  40. package/lib/context.js +1 -1
  41. package/lib/core/api-client.js +1 -1
  42. package/lib/core/db-resolver.js +1 -1
  43. package/lib/core/sdk-client.js +1 -1
  44. package/lib/errors.js +1 -1
  45. package/lib/framework/build-all-flags.js +1 -1
  46. package/lib/framework/dryrun.js +1 -1
  47. package/lib/framework/flags.js +1 -1
  48. package/lib/framework/help.js +1 -1
  49. package/lib/framework/index.js +1 -1
  50. package/lib/framework/output.js +1 -1
  51. package/lib/framework/preparse.js +1 -1
  52. package/lib/framework/response.js +1 -1
  53. package/lib/framework/runner-confirmation.js +1 -1
  54. package/lib/framework/runner-error.js +1 -1
  55. package/lib/framework/runner.js +1 -1
  56. package/lib/framework/schema-export.js +1 -1
  57. package/lib/framework/types.js +1 -1
  58. package/lib/help.js +1 -1
  59. package/lib/skills/npx-skills-add.js +1 -0
  60. package/lib/utils/apply-jq-filter.js +1 -1
  61. package/lib/utils/logger.js +1 -1
  62. package/lib/utils/params.js +1 -1
  63. package/lib/utils/platform.js +1 -0
  64. package/lib/utils/version.js +1 -1
  65. package/lib/utils/write-cli-side-channel.js +1 -1
  66. package/package.json +3 -2
package/LICENSE ADDED
@@ -0,0 +1,184 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and
27
+ configuration files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object
31
+ code, generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work (an example is provided in the Appendix
36
+ below).
37
+
38
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
39
+ is based on (or derived from) the Work and for which the editorial revisions,
40
+ annotations, elaborations, or other modifications represent, as a whole, an
41
+ original work of authorship. For the purposes of this License, Derivative Works
42
+ shall not include works that remain separable from, or merely link (or bind by
43
+ name) to the interfaces of, the Work and Derivative Works thereof.
44
+
45
+ "Contribution" shall mean any work of authorship, including the original
46
+ version of the Work and any modifications or additions to that Work or
47
+ Derivative Works thereof, that is intentionally submitted to Licensor for
48
+ inclusion in the Work by the copyright owner or by an individual or Legal
49
+ Entity authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal, or
51
+ written communication sent to the Licensor or its representatives, including
52
+ but not limited to communication on electronic mailing lists, source code
53
+ control systems, and issue tracking systems that are managed by, or on behalf
54
+ of, the Licensor for the purpose of discussing and improving the Work, but
55
+ excluding communication that is conspicuously marked or otherwise designated in
56
+ writing by the copyright owner as "Not a Contribution."
57
+
58
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
59
+ of whom a Contribution has been received by Licensor and subsequently
60
+ incorporated within the Work.
61
+
62
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
63
+ License, each Contributor hereby grants to You a perpetual, worldwide,
64
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
65
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
66
+ sublicense, and distribute the Work and such Derivative Works in Source or
67
+ Object form.
68
+
69
+ 3. Grant of Patent License. Subject to the terms and conditions of this
70
+ License, each Contributor hereby grants to You a perpetual, worldwide,
71
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
72
+ section) patent license to make, have made, use, offer to sell, sell, import,
73
+ and otherwise transfer the Work, where such license applies only to those
74
+ patent claims licensable by such Contributor that are necessarily infringed by
75
+ their Contribution(s) alone or by combination of their Contribution(s) with the
76
+ Work to which such Contribution(s) was submitted. If You institute patent
77
+ litigation against any entity (including a cross-claim or counterclaim in a
78
+ lawsuit) alleging that the Work or a Contribution incorporated within the Work
79
+ constitutes direct or contributory patent infringement, then any patent
80
+ licenses granted to You under this License for that Work shall terminate as of
81
+ the date such litigation is filed.
82
+
83
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
84
+ Derivative Works thereof in any medium, with or without modifications, and in
85
+ Source or Object form, provided that You meet the following conditions:
86
+
87
+ (a) You must give any other recipients of the Work or Derivative Works a copy
88
+ of this License; and
89
+
90
+ (b) You must cause any modified files to carry prominent notices stating that
91
+ You changed the files; and
92
+
93
+ (c) You must retain, in the Source form of any Derivative Works that You
94
+ distribute, all copyright, patent, trademark, and attribution notices from the
95
+ Source form of the Work, excluding those notices that do not pertain to any
96
+ part of the Derivative Works; and
97
+
98
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
99
+ any Derivative Works that You distribute must include a readable copy of the
100
+ attribution notices contained within such NOTICE file, excluding those notices
101
+ that do not pertain to any part of the Derivative Works, in at least one of the
102
+ following places: within a NOTICE text file distributed as part of the
103
+ Derivative Works; within the Source form or documentation, if provided along
104
+ with the Derivative Works; or, within a display generated by the Derivative
105
+ Works, if and wherever such third-party notices normally appear. The contents
106
+ of the NOTICE file are for informational purposes only and do not modify the
107
+ License. You may add Your own attribution notices within Derivative Works that
108
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
109
+ provided that such additional attribution notices cannot be construed as
110
+ modifying the License.
111
+
112
+ You may add Your own copyright statement to Your modifications and may provide
113
+ additional or different license terms and conditions for use, reproduction, or
114
+ distribution of Your modifications, or for any such Derivative Works as a
115
+ whole, provided Your use, reproduction, and distribution of the Work otherwise
116
+ complies with the conditions stated in this License.
117
+
118
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
119
+ Contribution intentionally submitted for inclusion in the Work by You to the
120
+ Licensor shall be under the terms and conditions of this License, without any
121
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
122
+ supersede or modify the terms of any separate license agreement you may have
123
+ executed with Licensor regarding such Contributions.
124
+
125
+ 6. Trademarks. This License does not grant permission to use the trade names,
126
+ trademarks, service marks, or product names of the Licensor, except as required
127
+ for reasonable and customary use in describing the origin of the Work and
128
+ reproducing the content of the NOTICE file.
129
+
130
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
131
+ writing, Licensor provides the Work (and each Contributor provides its
132
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
133
+ KIND, either express or implied, including, without limitation, any warranties
134
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
135
+ PARTICULAR PURPOSE. You are solely responsible for determining the
136
+ appropriateness of using or redistributing the Work and assume any risks
137
+ associated with Your exercise of permissions under this License.
138
+
139
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
140
+ tort (including negligence), contract, or otherwise, unless required by
141
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
142
+ writing, shall any Contributor be liable to You for damages, including any
143
+ direct, indirect, special, incidental, or consequential damages of any
144
+ character arising as a result of this License or out of the use or inability to
145
+ use the Work (including but not limited to damages for loss of goodwill, work
146
+ stoppage, computer failure or malfunction, or any and all other commercial
147
+ damages or losses), even if such Contributor has been advised of the
148
+ possibility of such damages.
149
+
150
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
151
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
152
+ acceptance of support, warranty, indemnity, or other liability obligations
153
+ and/or rights consistent with this License. However, in accepting such
154
+ obligations, You may act only on Your own behalf and on Your sole
155
+ responsibility, not on behalf of any other Contributor, and only if You agree
156
+ to indemnify, defend, and hold each Contributor harmless for any liability
157
+ incurred by, or claims asserted against, such Contributor by reason of your
158
+ accepting any such warranty or additional liability.
159
+
160
+ END OF TERMS AND CONDITIONS
161
+
162
+ APPENDIX: How to apply the Apache License to your work.
163
+
164
+ To apply the Apache License to your work, attach the following boilerplate
165
+ notice, with the fields enclosed by brackets "[]" replaced with your own
166
+ identifying information. (Don't include the brackets!) The text should be
167
+ enclosed in the appropriate comment syntax for the file format. We also
168
+ recommend that a file or class name and description of purpose be included on
169
+ the same "printed page" as the copyright notice for easier identification
170
+ within third-party archives.
171
+
172
+ Copyright [yyyy] [name of copyright owner]
173
+
174
+ Licensed under the Apache License, Version 2.0 (the "License");
175
+ you may not use this file except in compliance with the License.
176
+ You may obtain a copy of the License at
177
+
178
+ http://www.apache.org/licenses/LICENSE-2.0
179
+
180
+ Unless required by applicable law or agreed to in writing, software
181
+ distributed under the License is distributed on an "AS IS" BASIS,
182
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
183
+ See the License for the specific language governing permissions and
184
+ limitations under the License.
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x163bb4=a0_0x28b8;(function(_0xeda3c5,_0x1ae41d){const _0x4c270b=a0_0x28b8,_0x5bf534=_0xeda3c5();while(!![]){try{const _0x10b099=-parseInt(_0x4c270b(0xbd))/0x1*(parseInt(_0x4c270b(0xa5))/0x2)+parseInt(_0x4c270b(0x9a))/0x3+parseInt(_0x4c270b(0xb8))/0x4*(-parseInt(_0x4c270b(0xa2))/0x5)+parseInt(_0x4c270b(0xb9))/0x6+parseInt(_0x4c270b(0xab))/0x7+-parseInt(_0x4c270b(0xa3))/0x8+parseInt(_0x4c270b(0x9d))/0x9;if(_0x10b099===_0x1ae41d)break;else _0x5bf534['push'](_0x5bf534['shift']());}catch(_0x4f090b){_0x5bf534['push'](_0x5bf534['shift']());}}}(a0_0xe505,0x1c1c2));function a0_0x28b8(_0x1f7915,_0xf5a384){_0x1f7915=_0x1f7915-0x9a;const _0xe505d=a0_0xe505();let _0x28b849=_0xe505d[_0x1f7915];return _0x28b849;}import{jsx as a0_0x9ca2ff}from'react/jsx-runtime';import a0_0x3b5451 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x3b5451(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});function a0_0xe505(){const _0x1c28d4=['\x20->\x20--','flags','error','[preparse]\x20','exitCode','97892LuNqcS','645540ToJwSK','args','cancelled',':\x20--','6558dRksfo','414333NlbdQY','./framework/preparse.js','ExitPromptError','494775kDhsxE','Hint:\x20','stderr','exit','defaultCommand','45DUmkuo','31328KppKki','handler','38wmVnvv','\x0aCancelled.\x0a','write','help','input','assign','1142659GVReBK','ERR_USE_AFTER_CLOSE','corrected','hint','ERR_STREAM_DESTROYED','code','slice','catch'];a0_0xe505=function(){return _0x1c28d4;};return a0_0xe505();}void main()[a0_0x163bb4(0xb2)](handleError);async function main(){try{await run();}catch(_0x187513){handleError(_0x187513);}}async function run(){const _0xb96135=a0_0x163bb4;let _0x5827ca=cli['input'][0x0],_0x2fe9ce=cli[_0xb96135(0xa9)][0x1];const _0x50a8f8=cli[_0xb96135(0xb4)];try{const {correctFlags:_0x19d80c}=await import(_0xb96135(0x9b)),_0x296515=getAllDefinitions()['flatMap'](_0x389d75=>_0x389d75[_0xb96135(0xb4)]??[]),{flags:_0x599290,corrections:_0x256424}=_0x19d80c(_0x50a8f8,_0x296515);if(_0x256424['length']>0x0){for(const _0x364490 of _0x256424){process[_0xb96135(0x9f)][_0xb96135(0xa7)](_0xb96135(0xb6)+_0x364490[_0xb96135(0xa4)]+_0xb96135(0xbc)+_0x364490['original']+_0xb96135(0xb3)+_0x364490[_0xb96135(0xad)]+'\x0a');}Object[_0xb96135(0xaa)](_0x50a8f8,_0x599290);}}catch{}if(!_0x5827ca||!isKnownService(_0x5827ca)){const {waitUntilExit:_0x292a80}=render(a0_0x9ca2ff(Help,{}));await _0x292a80();return;}const _0x52607e=getServiceEntry(_0x5827ca);if(!_0x2fe9ce){if(_0x50a8f8[_0xb96135(0xa8)]){console['log'](generateServiceHelp(_0x5827ca));return;}if(_0x52607e[_0xb96135(0xa1)])_0x2fe9ce=_0x52607e[_0xb96135(0xa1)];else{console['log'](generateServiceHelp(_0x5827ca));return;}}const _0x1180bc=findDefinition(_0x5827ca,_0x2fe9ce);!_0x1180bc&&(console['log'](generateServiceHelp(_0x5827ca)),handleError(CliErrors['unknownCommand'](_0x5827ca+'\x20'+_0x2fe9ce)));if(_0x50a8f8[_0xb96135(0xa8)]){console['log'](generateCommandHelp(_0x1180bc));return;}const _0x93a9ad=buildConfigFromFlags(_0x50a8f8);await initGlobalEnvironment(_0x93a9ad);const _0x2bea84=createPipelineEnv(_0x93a9ad,_0x50a8f8);_0x2bea84[_0xb96135(0xba)]=cli[_0xb96135(0xa9)][_0xb96135(0xb1)](0x2),await runCommand(_0x1180bc,_0x2bea84);}function handleError(_0x68b876){const _0xa38ee7=a0_0x163bb4;if(_0x68b876 instanceof CliError){_0x68b876[_0xa38ee7(0xb0)]===_0xa38ee7(0xbb)&&(process[_0xa38ee7(0x9f)][_0xa38ee7(0xa7)](_0xa38ee7(0xa6)),process['exit'](0x0));console[_0xa38ee7(0xb5)]('Error:\x20'+_0x68b876['message']);if(_0x68b876[_0xa38ee7(0xae)])console[_0xa38ee7(0xb5)](_0xa38ee7(0x9e)+_0x68b876[_0xa38ee7(0xae)]);process[_0xa38ee7(0xa0)](_0x68b876[_0xa38ee7(0xb7)]);}isUserCancellation(_0x68b876)&&(process['stderr'][_0xa38ee7(0xa7)]('\x0aCancelled.\x0a'),process[_0xa38ee7(0xa0)](0x0)),console['error']('Unexpected\x20error:',_0x68b876),process[_0xa38ee7(0xa0)](0x1);}function isUserCancellation(_0x4d1f2c){const _0x573436=a0_0x163bb4;if(!(_0x4d1f2c instanceof Error))return![];if(_0x4d1f2c['name']===_0x573436(0x9c))return!![];if(_0x4d1f2c[_0x573436(0xb0)]===_0x573436(0xac))return!![];if(_0x4d1f2c[_0x573436(0xb0)]===_0x573436(0xaf))return!![];return![];}
2
+ function a0_0x5b7f(){const _0x409a44=['catch','\x0aCancelled.\x0a','6FRQIGP','62MGaQgm','Unexpected\x20error:','388JbHSEO','ExitPromptError','1161AYazjn','input','cancelled',':\x20--','error','11780760gqUKXW','hint','./framework/preparse.js','ERR_USE_AFTER_CLOSE','Hint:\x20','9904oRwgQo','log','24952UBAOYJ','help','[preparse]\x20','write','assign','exitCode','exit','defaultCommand','message','3754190OmAnjD','original','543EWTgbs','stderr','22oTtoFm','corrected','580671AGWOKN','\x20->\x20--','handler','flags','6070490EaNaif','name'];a0_0x5b7f=function(){return _0x409a44;};return a0_0x5b7f();}const a0_0x346722=a0_0x49b2;(function(_0x3deeca,_0x4cf1af){const _0x2604ea=a0_0x49b2,_0x30ce9e=_0x3deeca();while(!![]){try{const _0xb6a5c=parseInt(_0x2604ea(0xaa))/0x1*(parseInt(_0x2604ea(0x9c))/0x2)+-parseInt(_0x2604ea(0x8f))/0x3*(-parseInt(_0x2604ea(0x9e))/0x4)+parseInt(_0x2604ea(0xb5))/0x5*(parseInt(_0x2604ea(0x9b))/0x6)+parseInt(_0x2604ea(0x93))/0x7+parseInt(_0x2604ea(0xac))/0x8*(-parseInt(_0x2604ea(0xa0))/0x9)+-parseInt(_0x2604ea(0x97))/0xa*(-parseInt(_0x2604ea(0x91))/0xb)+-parseInt(_0x2604ea(0xa5))/0xc;if(_0xb6a5c===_0x4cf1af)break;else _0x30ce9e['push'](_0x30ce9e['shift']());}catch(_0x425d0f){_0x30ce9e['push'](_0x30ce9e['shift']());}}}(a0_0x5b7f,0xf14e5));import{jsx as a0_0x52dd65}from'react/jsx-runtime';import a0_0x1f1260 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x1f1260(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x346722(0x99)](handleError);function a0_0x49b2(_0x23047a,_0x5abb3a){_0x23047a=_0x23047a-0x8e;const _0x5b7f1d=a0_0x5b7f();let _0x49b2b7=_0x5b7f1d[_0x23047a];return _0x49b2b7;}async function main(){try{await run();}catch(_0xfcc216){handleError(_0xfcc216);}}async function run(){const _0x5766a0=a0_0x346722;let _0x5ad983=cli[_0x5766a0(0xa1)][0x0],_0x51504e=cli['input'][0x1];const _0x17c09a=cli[_0x5766a0(0x96)];try{const {correctFlags:_0x13274b}=await import(_0x5766a0(0xa7)),_0x4e09cc=getAllDefinitions()['flatMap'](_0x3c74da=>_0x3c74da[_0x5766a0(0x96)]??[]),{flags:_0x1934d3,corrections:_0x19f002}=_0x13274b(_0x17c09a,_0x4e09cc);if(_0x19f002['length']>0x0){for(const _0x4f0237 of _0x19f002){process['stderr'][_0x5766a0(0xaf)](_0x5766a0(0xae)+_0x4f0237[_0x5766a0(0x95)]+_0x5766a0(0xa3)+_0x4f0237[_0x5766a0(0x8e)]+_0x5766a0(0x94)+_0x4f0237[_0x5766a0(0x92)]+'\x0a');}Object[_0x5766a0(0xb0)](_0x17c09a,_0x1934d3);}}catch{}if(!_0x5ad983||!isKnownService(_0x5ad983)){const {waitUntilExit:_0x4a71fc}=render(a0_0x52dd65(Help,{}));await _0x4a71fc();return;}const _0x33109d=getServiceEntry(_0x5ad983);if(!_0x51504e){if(_0x17c09a[_0x5766a0(0xad)]){console[_0x5766a0(0xab)](generateServiceHelp(_0x5ad983));return;}if(_0x33109d[_0x5766a0(0xb3)])_0x51504e=_0x33109d[_0x5766a0(0xb3)];else{console['log'](generateServiceHelp(_0x5ad983));return;}}const _0x3fac09=findDefinition(_0x5ad983,_0x51504e);!_0x3fac09&&(console[_0x5766a0(0xab)](generateServiceHelp(_0x5ad983)),handleError(CliErrors['unknownCommand'](_0x5ad983+'\x20'+_0x51504e)));if(_0x17c09a[_0x5766a0(0xad)]){console[_0x5766a0(0xab)](generateCommandHelp(_0x3fac09));return;}const _0x15eb36=buildConfigFromFlags(_0x17c09a);await initGlobalEnvironment(_0x15eb36);const _0x4dcc40=createPipelineEnv(_0x15eb36,_0x17c09a);_0x4dcc40['args']=cli[_0x5766a0(0xa1)]['slice'](0x2),await runCommand(_0x3fac09,_0x4dcc40);}function handleError(_0x5006c9){const _0x207018=a0_0x346722;if(_0x5006c9 instanceof CliError){_0x5006c9['code']===_0x207018(0xa2)&&(process[_0x207018(0x90)][_0x207018(0xaf)](_0x207018(0x9a)),process[_0x207018(0xb2)](0x0));console[_0x207018(0xa4)]('Error:\x20'+_0x5006c9[_0x207018(0xb4)]);if(_0x5006c9[_0x207018(0xa6)])console[_0x207018(0xa4)](_0x207018(0xa9)+_0x5006c9[_0x207018(0xa6)]);process[_0x207018(0xb2)](_0x5006c9[_0x207018(0xb1)]);}isUserCancellation(_0x5006c9)&&(process[_0x207018(0x90)][_0x207018(0xaf)]('\x0aCancelled.\x0a'),process['exit'](0x0)),console[_0x207018(0xa4)](_0x207018(0x9d),_0x5006c9),process[_0x207018(0xb2)](0x1);}function isUserCancellation(_0x413f70){const _0x5d4d6d=a0_0x346722;if(!(_0x413f70 instanceof Error))return![];if(_0x413f70[_0x5d4d6d(0x98)]===_0x5d4d6d(0x9f))return!![];if(_0x413f70['code']===_0x5d4d6d(0xa8))return!![];if(_0x413f70['code']==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- (function(_0x2b0151,_0x3eb9a4){const _0x23adb6=a1_0x38e8,_0x5c52ff=_0x2b0151();while(!![]){try{const _0x4b59d1=-parseInt(_0x23adb6(0x128))/0x1+-parseInt(_0x23adb6(0x134))/0x2+parseInt(_0x23adb6(0x120))/0x3*(parseInt(_0x23adb6(0x11e))/0x4)+-parseInt(_0x23adb6(0x11b))/0x5+parseInt(_0x23adb6(0x127))/0x6*(-parseInt(_0x23adb6(0x130))/0x7)+-parseInt(_0x23adb6(0x129))/0x8*(parseInt(_0x23adb6(0x11f))/0x9)+parseInt(_0x23adb6(0x131))/0xa*(parseInt(_0x23adb6(0x123))/0xb);if(_0x4b59d1===_0x3eb9a4)break;else _0x5c52ff['push'](_0x5c52ff['shift']());}catch(_0x497616){_0x5c52ff['push'](_0x5c52ff['shift']());}}}(a1_0x2cfd,0xe035a));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a1_0x38e8(_0x8d2623,_0x1ec803){_0x8d2623=_0x8d2623-0x118;const _0x2cfd75=a1_0x2cfd();let _0x38e80b=_0x2cfd75[_0x8d2623];return _0x38e80b;}import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x23ecc5){const _0x39fd5b=a1_0x38e8,_0x409590=_0x23ecc5[_0x39fd5b(0x11a)](),_0x328e67=_0x409590[_0x39fd5b(0x118)](-0x6)||_0x39fd5b(0x137),_0x19ba10=createHash(_0x39fd5b(0x126))['update'](_0x409590)[_0x39fd5b(0x12f)](_0x39fd5b(0x12e))[_0x39fd5b(0x118)](0x0,0xc);return _0x39fd5b(0x135)+_0x328e67+'_'+_0x19ba10;}export function getAppCacheFilePath(_0x3d0132,_0x5bd255){const _0x2515aa=a1_0x38e8;return resolve(homedir(),_0x2515aa(0x136),_0x2515aa(0x133),_0x3d0132,fingerprintAccessKey(_0x5bd255),_0x2515aa(0x121));}export function readCachedAppList(_0x239eb2,_0x459b62){const _0x2135c7=a1_0x38e8;if(!_0x459b62?.[_0x2135c7(0x11a)]())return null;const _0x258a06=getAppCacheFilePath(_0x239eb2,_0x459b62);if(!existsSync(_0x258a06))return null;try{const _0x31eaaf=readFileSync(_0x258a06,_0x2135c7(0x12c));if(!_0x31eaaf[_0x2135c7(0x11a)]())return null;const _0x396204=JSON['parse'](_0x31eaaf);if(!Array['isArray'](_0x396204['items']))return null;return _0x396204;}catch{return null;}}function a1_0x2cfd(){const _0x43eae7=['digest','1199989rsZelG','757430AaXiId','appName','cache','3670642TGpwMF','ak_','.lovrabet','unknown','slice','items','trim','5083155ENliAh','stringify','.tmp','16yZOpAq','63CxzAte','180690ifBixo','my-apps.json','code','924XOIelZ','EXDEV','appCode','sha256','6bIDgyC','1447294SmrXnn','1387768bKPcvt','find','EPERM','utf8','EACCES','hex'];a1_0x2cfd=function(){return _0x43eae7;};return a1_0x2cfd();}export function writeCachedAppList(_0x47627a,_0x5ea36d,_0x479f60){const _0x3b364f=a1_0x38e8,_0x21aae4=getAppCacheFilePath(_0x47627a,_0x5ea36d),_0x1854cd=dirname(_0x21aae4);!existsSync(_0x1854cd)&&mkdirSync(_0x1854cd,{'recursive':!![]});const _0x434199=_0x21aae4+_0x3b364f(0x11d);try{writeFileSync(_0x434199,JSON[_0x3b364f(0x11c)](_0x479f60,null,0x2)+'\x0a',{'encoding':_0x3b364f(0x12c),'mode':0x180});try{renameSync(_0x434199,_0x21aae4);}catch(_0x63f3bb){if(_0x63f3bb[_0x3b364f(0x122)]===_0x3b364f(0x12b)||_0x63f3bb['code']===_0x3b364f(0x124)||_0x63f3bb[_0x3b364f(0x122)]===_0x3b364f(0x12d)){writeFileSync(_0x21aae4,JSON[_0x3b364f(0x11c)](_0x479f60,null,0x2)+'\x0a',{'encoding':_0x3b364f(0x12c)});try{unlinkSync(_0x434199);}catch{}}else throw _0x63f3bb;}}catch(_0xd439bf){try{unlinkSync(_0x434199);}catch{}throw _0xd439bf;}return _0x21aae4;}export function resolveCachedAppCode(_0x1a7b14,_0x1e5a2c,_0x4a8ed9){const _0xb58893=a1_0x38e8;if(!_0x1a7b14)return undefined;const _0x3afb0f=readCachedAppList(_0x1e5a2c,_0x4a8ed9),_0x5c792e=_0x3afb0f?.[_0xb58893(0x119)][_0xb58893(0x12a)](_0xdd561a=>_0xdd561a[_0xb58893(0x132)]===_0x1a7b14);return _0x5c792e?.[_0xb58893(0x125)]?.['trim']()||undefined;}
1
+ (function(_0x296d93,_0x56b5d5){const _0xc9314e=a1_0x3d6c,_0x36f5d5=_0x296d93();while(!![]){try{const _0x391616=-parseInt(_0xc9314e(0x120))/0x1*(-parseInt(_0xc9314e(0x135))/0x2)+parseInt(_0xc9314e(0x11f))/0x3*(parseInt(_0xc9314e(0x123))/0x4)+parseInt(_0xc9314e(0x119))/0x5*(parseInt(_0xc9314e(0x125))/0x6)+parseInt(_0xc9314e(0x126))/0x7+-parseInt(_0xc9314e(0x12e))/0x8*(parseInt(_0xc9314e(0x131))/0x9)+-parseInt(_0xc9314e(0x130))/0xa+-parseInt(_0xc9314e(0x11b))/0xb;if(_0x391616===_0x56b5d5)break;else _0x36f5d5['push'](_0x36f5d5['shift']());}catch(_0x4a8827){_0x36f5d5['push'](_0x36f5d5['shift']());}}}(a1_0x2ec0,0x1cc47));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a1_0x2ec0(){const _0x235244=['find','2600928QkvluH','items','EXDEV','trim','331869iZsOFd','185PMznrc','parse','my-apps.json','8ggqdpW','digest','251058TwVihd','140616pHIMVa','isArray','appName','sha256','utf8','.lovrabet','.tmp','ak_','203160pWNXpQ','code','1635600BgzDJg','9lBaddJ','stringify','slice','EPERM','1002HlEyHv','hex','25vbzKXD'];a1_0x2ec0=function(){return _0x235244;};return a1_0x2ec0();}import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x37d149){const _0xba5372=a1_0x3d6c,_0x159cdd=_0x37d149[_0xba5372(0x11e)](),_0x35a4ee=_0x159cdd[_0xba5372(0x133)](-0x6)||'unknown',_0x300c71=createHash(_0xba5372(0x129))['update'](_0x159cdd)[_0xba5372(0x124)](_0xba5372(0x118))[_0xba5372(0x133)](0x0,0xc);return _0xba5372(0x12d)+_0x35a4ee+'_'+_0x300c71;}export function getAppCacheFilePath(_0x29bd58,_0x1d7822){const _0x512c9b=a1_0x3d6c;return resolve(homedir(),_0x512c9b(0x12b),'cache',_0x29bd58,fingerprintAccessKey(_0x1d7822),_0x512c9b(0x122));}export function readCachedAppList(_0x2e59cc,_0x4ca7b1){const _0x1c3dfc=a1_0x3d6c;if(!_0x4ca7b1?.['trim']())return null;const _0x469260=getAppCacheFilePath(_0x2e59cc,_0x4ca7b1);if(!existsSync(_0x469260))return null;try{const _0x392400=readFileSync(_0x469260,'utf8');if(!_0x392400[_0x1c3dfc(0x11e)]())return null;const _0x396078=JSON[_0x1c3dfc(0x121)](_0x392400);if(!Array[_0x1c3dfc(0x127)](_0x396078[_0x1c3dfc(0x11c)]))return null;return _0x396078;}catch{return null;}}function a1_0x3d6c(_0x335fed,_0x23cd5e){_0x335fed=_0x335fed-0x118;const _0x2ec038=a1_0x2ec0();let _0x3d6c1f=_0x2ec038[_0x335fed];return _0x3d6c1f;}export function writeCachedAppList(_0x398a6b,_0x16aae5,_0x379554){const _0x45e6cc=a1_0x3d6c,_0x321d21=getAppCacheFilePath(_0x398a6b,_0x16aae5),_0x434624=dirname(_0x321d21);!existsSync(_0x434624)&&mkdirSync(_0x434624,{'recursive':!![]});const _0x5cfbec=_0x321d21+_0x45e6cc(0x12c);try{writeFileSync(_0x5cfbec,JSON['stringify'](_0x379554,null,0x2)+'\x0a',{'encoding':_0x45e6cc(0x12a),'mode':0x180});try{renameSync(_0x5cfbec,_0x321d21);}catch(_0xa48406){if(_0xa48406[_0x45e6cc(0x12f)]===_0x45e6cc(0x134)||_0xa48406['code']===_0x45e6cc(0x11d)||_0xa48406[_0x45e6cc(0x12f)]==='EACCES'){writeFileSync(_0x321d21,JSON[_0x45e6cc(0x132)](_0x379554,null,0x2)+'\x0a',{'encoding':_0x45e6cc(0x12a)});try{unlinkSync(_0x5cfbec);}catch{}}else throw _0xa48406;}}catch(_0x505c6d){try{unlinkSync(_0x5cfbec);}catch{}throw _0x505c6d;}return _0x321d21;}export function resolveCachedAppCode(_0x24bf4a,_0x48e93a,_0x9f99d7){const _0x13bdd2=a1_0x3d6c;if(!_0x24bf4a)return undefined;const _0x184a26=readCachedAppList(_0x48e93a,_0x9f99d7),_0x336a4f=_0x184a26?.['items'][_0x13bdd2(0x11a)](_0x5aa43d=>_0x5aa43d[_0x13bdd2(0x128)]===_0x24bf4a);return _0x336a4f?.['appCode']?.[_0x13bdd2(0x11e)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0x5650ef=a2_0xe973;function a2_0xe973(_0xf3e4c6,_0x40e9c3){_0xf3e4c6=_0xf3e4c6-0xde;const _0x3311e4=a2_0x3311();let _0xe9737=_0x3311e4[_0xf3e4c6];return _0xe9737;}(function(_0x5c6821,_0x500f5f){const _0x5b0320=a2_0xe973,_0x284cd4=_0x5c6821();while(!![]){try{const _0x27f8e1=-parseInt(_0x5b0320(0x113))/0x1+parseInt(_0x5b0320(0x108))/0x2+-parseInt(_0x5b0320(0xea))/0x3*(-parseInt(_0x5b0320(0xff))/0x4)+parseInt(_0x5b0320(0xe9))/0x5*(-parseInt(_0x5b0320(0xfc))/0x6)+-parseInt(_0x5b0320(0x118))/0x7*(-parseInt(_0x5b0320(0xf1))/0x8)+parseInt(_0x5b0320(0xf5))/0x9*(-parseInt(_0x5b0320(0x102))/0xa)+parseInt(_0x5b0320(0xee))/0xb*(parseInt(_0x5b0320(0xe5))/0xc);if(_0x27f8e1===_0x500f5f)break;else _0x284cd4['push'](_0x284cd4['shift']());}catch(_0x2b2fb1){_0x284cd4['push'](_0x284cd4['shift']());}}}(a2_0x3311,0xa9468));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a2_0x5650ef(0xe3),'type':a2_0x5650ef(0x11a),'description':a2_0x5650ef(0xe2),'default':![]};function collectFlags(_0x5b0081,_0x6181c5){const _0x28da5d=a2_0x5650ef,_0x1afbac={};for(const _0x18457a of _0x6181c5){const _0x4a0a48=_0x18457a[_0x28da5d(0x124)]===_0x28da5d(0x11a)?_0x5b0081[_0x28da5d(0x10f)](_0x18457a[_0x28da5d(0xf2)]):_0x5b0081['str'](_0x18457a[_0x28da5d(0xf2)]);if(_0x4a0a48!==''&&_0x4a0a48!==![])_0x1afbac[_0x18457a[_0x28da5d(0xf2)]]=_0x4a0a48;}if(_0x5b0081['nonInteractive'])_0x1afbac[_0x28da5d(0xdf)]=!![];return _0x1afbac;}const initDef={'service':a2_0x5650ef(0x100),'command':a2_0x5650ef(0x10d),'description':a2_0x5650ef(0x110),'risk':a2_0x5650ef(0x115),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x201791){return await runInit(collectFlags(_0x201791,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x5650ef(0x100),'command':'list','description':a2_0x5650ef(0x11b),'risk':a2_0x5650ef(0x116),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x5650ef(0xe6),'type':'string','description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x5650ef(0x123),'type':a2_0x5650ef(0x11a),'description':a2_0x5650ef(0x10a),'default':![]},{'name':'no-cache','type':a2_0x5650ef(0x11a),'description':a2_0x5650ef(0x112),'default':![]}],async 'execute'(_0x1f1e9d){const _0x27c57d=a2_0x5650ef,_0x13ab6f=_0x1f1e9d[_0x27c57d(0xed)]('env')||_0x1f1e9d[_0x27c57d(0xfb)]||getEnv()||_0x27c57d(0x111),_0x3c506d=_0x1f1e9d[_0x27c57d(0x10f)](_0x27c57d(0x123)),_0x522a87=_0x1f1e9d[_0x27c57d(0x10f)](_0x27c57d(0xeb)),{readRawConfigWithLayers:_0x4f02cb,resolveDefaultAppSource:_0x429a75}=await import(_0x27c57d(0x105)),{getRemoteAppList:_0x1480b0}=await import(_0x27c57d(0x11f)),{config:_0x147cab,layers:_0x4e5599}=_0x4f02cb(),_0x5a4631=_0x429a75(_0x4e5599),{defaultApp:_0x5f3923}=_0x147cab,_0x1bf337=await _0x1480b0({'env':_0x13ab6f,'accessKey':_0x1f1e9d[_0x27c57d(0x107)],'localOnly':_0x3c506d,'noCache':_0x522a87}),_0x1a096e=_0x1bf337[_0x27c57d(0xfd)][_0x27c57d(0x104)](_0x45c8e1=>{const _0x419910=_0x27c57d;return{'name':_0x45c8e1[_0x419910(0x103)],'appcode':_0x45c8e1['appCode'],'named':!![],'definedIn':_0x419910(0xe7),'isDefault':_0x45c8e1[_0x419910(0x103)]===_0x5f3923,...buildAppProfileListFields(_0x13ab6f),'source':_0x1bf337[_0x419910(0xf3)],'owner':_0x45c8e1[_0x419910(0x10e)]??null,'status':_0x45c8e1[_0x419910(0x117)]??null,'cachedAt':_0x1bf337[_0x419910(0xf0)]};});enrichAppListItemsWithMergedSelection(_0x1a096e,_0x1f1e9d['mergedCli']);if(_0x1a096e[_0x27c57d(0xe0)]===0x0)return{'ok':!![],'data':[],'message':_0x1bf337[_0x27c57d(0xf3)]==='cache'?_0x27c57d(0xec):_0x27c57d(0xf7)};const _0x27accd=_0x1a096e[_0x27c57d(0xe8)](_0x5539c2=>_0x5539c2['isCurrent']===!![]),_0x2de3a0=_0x5f3923??_0x27accd?.['name']??null,_0x4884f6={'env':_0x13ab6f,'source':_0x1bf337[_0x27c57d(0xf3)],'fetchedAt':_0x1bf337['fetchedAt'],'cachePath':_0x1bf337[_0x27c57d(0x120)],'globalPath':_0x4e5599['globalPath']??null,'projectPath':_0x4e5599[_0x27c57d(0x101)]??null,'defaultApp':_0x2de3a0,'defaultAppSource':_0x5f3923!=null?_0x5a4631:null};return{'ok':!![],'data':{'items':_0x1a096e,'meta':_0x4884f6}};}},pullDef={'service':a2_0x5650ef(0x100),'command':'pull','description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a2_0x5650ef(0x115),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x5650ef(0xe6),'type':a2_0x5650ef(0xde),'description':a2_0x5650ef(0x11e),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x5650ef(0x123),'type':a2_0x5650ef(0x11a),'description':a2_0x5650ef(0xe1),'default':![]},{'name':a2_0x5650ef(0xeb),'type':a2_0x5650ef(0x11a),'description':a2_0x5650ef(0x112),'default':![]}],async 'execute'(_0xf946e5){const _0x5ad420=a2_0x5650ef,_0x387633=_0xf946e5[_0x5ad420(0xed)]('env')||_0xf946e5[_0x5ad420(0xfb)]||getEnv()||_0x5ad420(0x111),_0x2ff1f9=_0xf946e5['bool'](_0x5ad420(0x123)),_0x30a0ac=_0xf946e5['bool'](_0x5ad420(0xeb)),{getRemoteAppList:_0x5e5409}=await import(_0x5ad420(0x11f)),_0x512a1b=await _0x5e5409({'env':_0x387633,'accessKey':_0xf946e5[_0x5ad420(0x107)],'localOnly':_0x2ff1f9,'noCache':_0x30a0ac});return{'ok':!![],'data':{'total':_0x512a1b['items'][_0x5ad420(0xe0)],'env':_0x387633,'source':_0x512a1b['source'],'fetchedAt':_0x512a1b['fetchedAt'],'cachePath':_0x512a1b['cachePath']},'message':_0x512a1b[_0x5ad420(0xf3)]===_0x5ad420(0xf8)?_0x5ad420(0x122)+_0x512a1b[_0x5ad420(0xfd)][_0x5ad420(0xe0)]+_0x5ad420(0x106)+_0x387633+'\x22.':_0x5ad420(0x11c)+_0x512a1b['items'][_0x5ad420(0xe0)]+'\x20app(s)\x20for\x20env=\x22'+_0x387633+'\x22.'};}},useDef={'service':a2_0x5650ef(0x100),'command':'use','description':'Switch\x20the\x20default\x20app','risk':a2_0x5650ef(0x115),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x5650ef(0xf2),'description':a2_0x5650ef(0x11d),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x15c687){const _0x5df870=a2_0x5650ef;if(!_0x15c687['args'][0x0])throw CliErrors[_0x5df870(0x109)](_0x5df870(0xfa),_0x5df870(0x114)+CLI_BIN_NAME+_0x5df870(0x121));},async 'execute'(_0x3998a1){const _0x267c44=a2_0x5650ef,_0x91f8ec=_0x3998a1['args'][0x0];if(!_0x91f8ec)throw CliErrors[_0x267c44(0x109)](_0x267c44(0xfa),_0x267c44(0x114)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x36055e}=await import(_0x267c44(0x105)),{readCachedAppList:_0x44276a}=await import(_0x267c44(0x119)),_0x24ba72=_0x36055e({}),_0x40a9f4=_0x44276a(_0x24ba72[_0x267c44(0xe6)],_0x24ba72[_0x267c44(0x107)]),_0x4de2e4=_0x40a9f4?.[_0x267c44(0xfd)][_0x267c44(0xe8)](_0x3e429b=>_0x3e429b[_0x267c44(0x103)]===_0x91f8ec);if(!_0x4de2e4&&_0x24ba72[_0x267c44(0xf4)]!==_0x91f8ec){const _0x24db8d=[..._0x40a9f4?.[_0x267c44(0xfd)][_0x267c44(0x104)](_0x32e6b9=>_0x32e6b9[_0x267c44(0x103)])??[]],_0x5ba75b=_0x24db8d[_0x267c44(0xe0)]===0x0?_0x267c44(0xf9)+CLI_BIN_NAME+_0x267c44(0xef):_0x267c44(0xfe)+Array['from'](new Set(_0x24db8d))['join'](',\x20');throw CliErrors['validation'](_0x267c44(0xf6)+_0x91f8ec+'\x22\x20not\x20found.',_0x5ba75b);}const _0x389770=_0x3998a1['bool'](_0x267c44(0xe3));let _0x3f7327;if(_0x389770)_0x3f7327={'global':!![]};else{const {isInProject:_0x514b3e}=await import(_0x267c44(0x105)),_0x47b83b=_0x514b3e();_0x3f7327=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x267c44(0xe4),'inProject':_0x47b83b}));}const _0x98a868=readConfig(_0x3f7327);return _0x98a868[_0x267c44(0xf4)]=_0x91f8ec,writeConfig(_0x98a868,_0x3f7327),{'ok':!![],'message':_0x267c44(0x10c)+_0x91f8ec+'\x22'+scopeLabel(_0x3f7327)+'.'};}},importDef={'service':a2_0x5650ef(0x100),'command':a2_0x5650ef(0x10b),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a2_0x5650ef(0x115),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x35982e){return await runInitImport(collectFlags(_0x35982e,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];function a2_0x3311(){const _0x29a613=['No\x20apps\x20found\x20on\x20the\x20platform.','cache','Use\x20`','Missing\x20app\x20name.','envName','1182PjNDZn','items','Available:\x20','698716KdVdBT','app','projectPath','761250bhdWxa','appName','map','../../context.js','\x20cached\x20app(s)\x20for\x20env=\x22','accessKey','52256ejbxoD','validation','Read\x20app\x20list\x20from\x20local\x20cache\x20only','import','Default\x20app\x20set\x20to\x20\x22','init','appOwnerName','bool','Initialize\x20.lovrabet.json\x20config\x20file','production','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','689591VSVllp','Usage:\x20','write','read','appPublishStatus','29848gMlDAx','../../commands/app/cache.js','boolean','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Refreshed\x20app\x20cache\x20with\x20','Remote\x20app\x20name\x20to\x20activate','Target\x20environment\x20(default:\x20current\x20env)','../../commands/app/remote-source.js','cachePath','\x20app\x20use\x20<name>\x20[--global]','Loaded\x20','local','type','string','nonInteractive','length','Read\x20from\x20local\x20cache\x20only','Use\x20global\x20config\x20scope','global','project-default','33468jslrwe','env','remote','find','7685vAqWmH','3YgmZnf','no-cache','No\x20cached\x20apps\x20found.','str','5962kThzyb','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','fetchedAt','664dLYieJ','name','source','defaultApp','45yqGLvb','App\x20\x22'];a2_0x3311=function(){return _0x29a613;};return a2_0x3311();}
1
+ const a2_0x1b69a4=a2_0x3991;(function(_0x2b8080,_0x3f6755){const _0x4a5be4=a2_0x3991,_0x41ef94=_0x2b8080();while(!![]){try{const _0x13089c=parseInt(_0x4a5be4(0x1a6))/0x1+-parseInt(_0x4a5be4(0x19c))/0x2+-parseInt(_0x4a5be4(0x18e))/0x3+-parseInt(_0x4a5be4(0x176))/0x4+parseInt(_0x4a5be4(0x1b7))/0x5*(parseInt(_0x4a5be4(0x1aa))/0x6)+parseInt(_0x4a5be4(0x1a3))/0x7+parseInt(_0x4a5be4(0x195))/0x8;if(_0x13089c===_0x3f6755)break;else _0x41ef94['push'](_0x41ef94['shift']());}catch(_0x6a86c9){_0x41ef94['push'](_0x41ef94['shift']());}}}(a2_0x50e9,0x5ed1a));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a2_0x50e9(){const _0x45dc9a=['529572kOoGRS','map','find','defaultApp','Available:\x20','no-cache','envName','4588213RKPCOD','global','source','713485htDFhK','Read\x20from\x20local\x20cache\x20only','type','Default\x20app\x20set\x20to\x20\x22','7158qQCGJO','app','string','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','\x20app(s)\x20for\x20env=\x22','local','../../commands/app/cache.js','../../context.js','\x20app\x20use\x20<name>\x20[--global]','No\x20cached\x20apps\x20found.','cachePath','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','read','535IJUQfA','Switch\x20the\x20default\x20app','\x22\x20not\x20found.','accessKey','items','nonInteractive','cache','args','2983856uXABzx','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','isCurrent','Usage:\x20','pull','Use\x20`','bool','No\x20apps\x20found\x20on\x20the\x20platform.','import','Missing\x20app\x20name.','App\x20\x22','Refreshed\x20app\x20cache\x20with\x20','length','remote','\x20cached\x20app(s)\x20for\x20env=\x22','projectPath','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','from','appCode','str','validation','write','appOwnerName','Initialize\x20.lovrabet.json\x20config\x20file','1462626QlidQg','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','init','appPublishStatus','../../commands/app/remote-source.js','Loaded\x20','project-default','3120600dIJFSg','boolean','production','appName','env','name','fetchedAt'];a2_0x50e9=function(){return _0x45dc9a;};return a2_0x50e9();}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a2_0x3991(_0x53bbb5,_0x1f4829){_0x53bbb5=_0x53bbb5-0x176;const _0x50e9e3=a2_0x50e9();let _0x3991ca=_0x50e9e3[_0x53bbb5];return _0x3991ca;}const GLOBAL_FLAG={'name':a2_0x1b69a4(0x1a4),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function collectFlags(_0x4f9bf1,_0x36b3aa){const _0x96dc67=a2_0x1b69a4,_0x5d4d50={};for(const _0x53e651 of _0x36b3aa){const _0x37afac=_0x53e651[_0x96dc67(0x1a8)]===_0x96dc67(0x196)?_0x4f9bf1[_0x96dc67(0x17c)](_0x53e651[_0x96dc67(0x19a)]):_0x4f9bf1[_0x96dc67(0x189)](_0x53e651[_0x96dc67(0x19a)]);if(_0x37afac!==''&&_0x37afac!==![])_0x5d4d50[_0x53e651[_0x96dc67(0x19a)]]=_0x37afac;}if(_0x4f9bf1[_0x96dc67(0x1bc)])_0x5d4d50[_0x96dc67(0x1bc)]=!![];return _0x5d4d50;}const initDef={'service':a2_0x1b69a4(0x1ab),'command':a2_0x1b69a4(0x190),'description':a2_0x1b69a4(0x18d),'risk':a2_0x1b69a4(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x26cea6){return await runInit(collectFlags(_0x26cea6,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':'list','description':a2_0x1b69a4(0x186),'risk':a2_0x1b69a4(0x1b6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x1b69a4(0x199),'type':a2_0x1b69a4(0x1ac),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x1b69a4(0x1af),'type':a2_0x1b69a4(0x196),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':a2_0x1b69a4(0x196),'description':a2_0x1b69a4(0x1b5),'default':![]}],async 'execute'(_0x4ed164){const _0x13aad5=a2_0x1b69a4,_0x29eb7d=_0x4ed164[_0x13aad5(0x189)](_0x13aad5(0x199))||_0x4ed164[_0x13aad5(0x1a2)]||getEnv()||_0x13aad5(0x197),_0x511d07=_0x4ed164[_0x13aad5(0x17c)](_0x13aad5(0x1af)),_0x3a55b0=_0x4ed164[_0x13aad5(0x17c)](_0x13aad5(0x1a1)),{readRawConfigWithLayers:_0x5a0d49,resolveDefaultAppSource:_0x44b013}=await import(_0x13aad5(0x1b1)),{getRemoteAppList:_0x1af75b}=await import('../../commands/app/remote-source.js'),{config:_0x2f8b4d,layers:_0x29a42d}=_0x5a0d49(),_0x8ee0e8=_0x44b013(_0x29a42d),{defaultApp:_0x2ba71}=_0x2f8b4d,_0x1357be=await _0x1af75b({'env':_0x29eb7d,'accessKey':_0x4ed164['accessKey'],'localOnly':_0x511d07,'noCache':_0x3a55b0}),_0x3164f0=_0x1357be[_0x13aad5(0x1bb)][_0x13aad5(0x19d)](_0x284291=>{const _0x4ad581=_0x13aad5;return{'name':_0x284291[_0x4ad581(0x198)],'appcode':_0x284291[_0x4ad581(0x188)],'named':!![],'definedIn':_0x4ad581(0x183),'isDefault':_0x284291['appName']===_0x2ba71,...buildAppProfileListFields(_0x29eb7d),'source':_0x1357be[_0x4ad581(0x1a5)],'owner':_0x284291[_0x4ad581(0x18c)]??null,'status':_0x284291[_0x4ad581(0x191)]??null,'cachedAt':_0x1357be[_0x4ad581(0x19b)]};});enrichAppListItemsWithMergedSelection(_0x3164f0,_0x4ed164['mergedCli']);if(_0x3164f0[_0x13aad5(0x182)]===0x0)return{'ok':!![],'data':[],'message':_0x1357be[_0x13aad5(0x1a5)]==='cache'?_0x13aad5(0x1b3):_0x13aad5(0x17d)};const _0x39ca9a=_0x3164f0[_0x13aad5(0x19e)](_0xa1a099=>_0xa1a099[_0x13aad5(0x178)]===!![]),_0x1c1b96=_0x2ba71??_0x39ca9a?.[_0x13aad5(0x19a)]??null,_0x52a04a={'env':_0x29eb7d,'source':_0x1357be[_0x13aad5(0x1a5)],'fetchedAt':_0x1357be[_0x13aad5(0x19b)],'cachePath':_0x1357be[_0x13aad5(0x1b4)],'globalPath':_0x29a42d['globalPath']??null,'projectPath':_0x29a42d[_0x13aad5(0x185)]??null,'defaultApp':_0x1c1b96,'defaultAppSource':_0x2ba71!=null?_0x8ee0e8:null};return{'ok':!![],'data':{'items':_0x3164f0,'meta':_0x52a04a}};}},pullDef={'service':a2_0x1b69a4(0x1ab),'command':a2_0x1b69a4(0x17a),'description':a2_0x1b69a4(0x1ad),'risk':a2_0x1b69a4(0x18b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x1b69a4(0x199),'type':a2_0x1b69a4(0x1ac),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x1b69a4(0x1af),'type':a2_0x1b69a4(0x196),'description':a2_0x1b69a4(0x1a7),'default':![]},{'name':'no-cache','type':a2_0x1b69a4(0x196),'description':a2_0x1b69a4(0x1b5),'default':![]}],async 'execute'(_0x15808d){const _0x1a5e58=a2_0x1b69a4,_0x1d7ee8=_0x15808d[_0x1a5e58(0x189)]('env')||_0x15808d['envName']||getEnv()||_0x1a5e58(0x197),_0x27f873=_0x15808d[_0x1a5e58(0x17c)]('local'),_0x48f78b=_0x15808d[_0x1a5e58(0x17c)](_0x1a5e58(0x1a1)),{getRemoteAppList:_0x94f8c0}=await import(_0x1a5e58(0x192)),_0x168856=await _0x94f8c0({'env':_0x1d7ee8,'accessKey':_0x15808d[_0x1a5e58(0x1ba)],'localOnly':_0x27f873,'noCache':_0x48f78b});return{'ok':!![],'data':{'total':_0x168856[_0x1a5e58(0x1bb)]['length'],'env':_0x1d7ee8,'source':_0x168856[_0x1a5e58(0x1a5)],'fetchedAt':_0x168856[_0x1a5e58(0x19b)],'cachePath':_0x168856[_0x1a5e58(0x1b4)]},'message':_0x168856['source']===_0x1a5e58(0x1bd)?_0x1a5e58(0x193)+_0x168856[_0x1a5e58(0x1bb)][_0x1a5e58(0x182)]+_0x1a5e58(0x184)+_0x1d7ee8+'\x22.':_0x1a5e58(0x181)+_0x168856['items'][_0x1a5e58(0x182)]+_0x1a5e58(0x1ae)+_0x1d7ee8+'\x22.'};}},useDef={'service':a2_0x1b69a4(0x1ab),'command':'use','description':a2_0x1b69a4(0x1b8),'risk':a2_0x1b69a4(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x65fafa){const _0x407e6e=a2_0x1b69a4;if(!_0x65fafa[_0x407e6e(0x1be)][0x0])throw CliErrors[_0x407e6e(0x18a)](_0x407e6e(0x17f),_0x407e6e(0x179)+CLI_BIN_NAME+_0x407e6e(0x1b2));},async 'execute'(_0x282d8a){const _0x42bf3c=a2_0x1b69a4,_0x39667b=_0x282d8a[_0x42bf3c(0x1be)][0x0];if(!_0x39667b)throw CliErrors[_0x42bf3c(0x18a)](_0x42bf3c(0x17f),'Usage:\x20'+CLI_BIN_NAME+_0x42bf3c(0x1b2));const {buildConfigFromFlags:_0x4f275f}=await import(_0x42bf3c(0x1b1)),{readCachedAppList:_0x20d0db}=await import(_0x42bf3c(0x1b0)),_0x33a50d=_0x4f275f({}),_0x55a337=_0x20d0db(_0x33a50d[_0x42bf3c(0x199)],_0x33a50d[_0x42bf3c(0x1ba)]),_0x2338e2=_0x55a337?.['items']['find'](_0x57621f=>_0x57621f['appName']===_0x39667b);if(!_0x2338e2&&_0x33a50d[_0x42bf3c(0x19f)]!==_0x39667b){const _0x42ee63=[..._0x55a337?.[_0x42bf3c(0x1bb)][_0x42bf3c(0x19d)](_0x3718c2=>_0x3718c2['appName'])??[]],_0x60f624=_0x42ee63[_0x42bf3c(0x182)]===0x0?_0x42bf3c(0x17b)+CLI_BIN_NAME+_0x42bf3c(0x18f):_0x42bf3c(0x1a0)+Array[_0x42bf3c(0x187)](new Set(_0x42ee63))['join'](',\x20');throw CliErrors[_0x42bf3c(0x18a)](_0x42bf3c(0x180)+_0x39667b+_0x42bf3c(0x1b9),_0x60f624);}const _0x1a4833=_0x282d8a[_0x42bf3c(0x17c)]('global');let _0x29a3aa;if(_0x1a4833)_0x29a3aa={'global':!![]};else{const {isInProject:_0x1163f5}=await import(_0x42bf3c(0x1b1)),_0x49102c=_0x1163f5();_0x29a3aa=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x42bf3c(0x194),'inProject':_0x49102c}));}const _0x3f5fc5=readConfig(_0x29a3aa);return _0x3f5fc5[_0x42bf3c(0x19f)]=_0x39667b,writeConfig(_0x3f5fc5,_0x29a3aa),{'ok':!![],'message':_0x42bf3c(0x1a9)+_0x39667b+'\x22'+scopeLabel(_0x29a3aa)+'.'};}},importDef={'service':'app','command':a2_0x1b69a4(0x17e),'description':a2_0x1b69a4(0x177),'risk':a2_0x1b69a4(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x16a0d9){return await runInitImport(collectFlags(_0x16a0d9,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- function a3_0xf5d8(_0xbe33d7,_0x565fd7){_0xbe33d7=_0xbe33d7-0x15b;const _0xb28ced=a3_0xb28c();let _0xf5d8ca=_0xb28ced[_0xbe33d7];return _0xf5d8ca;}function a3_0xb28c(){const _0x273cc3=['4947222igQRFY','errorCode','70OEpojv','tableData','2164701ZshOMA','4786632wbHHFi','utf-8','success','117TLWOhB','../../../mock/app-list.json','errorMsg','parse','1433226cyBhnw','7603605YiVvVw','2754856wuRwDC','data','5922IraYtJ'];a3_0xb28c=function(){return _0x273cc3;};return a3_0xb28c();}(function(_0x11bec9,_0x28a273){const _0x529fb9=a3_0xf5d8,_0x10545d=_0x11bec9();while(!![]){try{const _0x5d5a95=-parseInt(_0x529fb9(0x15d))/0x1*(-parseInt(_0x529fb9(0x160))/0x2)+-parseInt(_0x529fb9(0x162))/0x3+-parseInt(_0x529fb9(0x163))/0x4+-parseInt(_0x529fb9(0x16b))/0x5+parseInt(_0x529fb9(0x16a))/0x6+-parseInt(_0x529fb9(0x15e))/0x7+-parseInt(_0x529fb9(0x15b))/0x8*(-parseInt(_0x529fb9(0x166))/0x9);if(_0x5d5a95===_0x28a273)break;else _0x10545d['push'](_0x10545d['shift']());}catch(_0x583d74){_0x10545d['push'](_0x10545d['shift']());}}}(a3_0xb28c,0xbdb82));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x107ed3=a3_0xf5d8,_0x22a6d9=join(__dirname,_0x107ed3(0x167)),_0x177118=readFileSync(_0x22a6d9,_0x107ed3(0x164));return JSON[_0x107ed3(0x169)](_0x177118);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0xba24af=a3_0xf5d8,_0x39e6c9=getMockAppList();if(!_0x39e6c9[_0xba24af(0x165)])throw new Error('Mock\x20API\x20error:\x20'+_0x39e6c9[_0xba24af(0x168)]+'\x20('+_0x39e6c9[_0xba24af(0x15f)]+')');return _0x39e6c9[_0xba24af(0x15c)][_0xba24af(0x161)];}
1
+ (function(_0x19a290,_0x1ad996){const _0x59b5f9=a3_0xe52c,_0x14eca7=_0x19a290();while(!![]){try{const _0x3b5626=-parseInt(_0x59b5f9(0x96))/0x1+parseInt(_0x59b5f9(0x95))/0x2*(-parseInt(_0x59b5f9(0xa1))/0x3)+-parseInt(_0x59b5f9(0xa3))/0x4*(-parseInt(_0x59b5f9(0x93))/0x5)+-parseInt(_0x59b5f9(0x98))/0x6+-parseInt(_0x59b5f9(0x9b))/0x7*(-parseInt(_0x59b5f9(0xa4))/0x8)+-parseInt(_0x59b5f9(0xa2))/0x9*(-parseInt(_0x59b5f9(0x9c))/0xa)+parseInt(_0x59b5f9(0x9d))/0xb;if(_0x3b5626===_0x1ad996)break;else _0x14eca7['push'](_0x14eca7['shift']());}catch(_0x49e718){_0x14eca7['push'](_0x14eca7['shift']());}}}(a3_0x5b70,0x5673f));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a3_0x5b70(){const _0x28c170=['2jKezUV','330410eHTJPP','utf-8','1235466cdzdWs','parse','success','377188sFATTv','90iJIUXo','3004430FTsuPc','errorMsg','tableData','../../../mock/app-list.json','303078mZIDux','37629YCGwdd','13596wUguRq','40MFLdcR','errorCode','605abZHgs','Mock\x20API\x20error:\x20'];a3_0x5b70=function(){return _0x28c170;};return a3_0x5b70();}function loadMockAppList(){const _0x19acb7=a3_0xe52c,_0x7c80e7=join(__dirname,_0x19acb7(0xa0)),_0x3df190=readFileSync(_0x7c80e7,_0x19acb7(0x97));return JSON[_0x19acb7(0x99)](_0x3df190);}let _cached=null;function a3_0xe52c(_0x30a93a,_0x35fd3f){_0x30a93a=_0x30a93a-0x93;const _0x5b7063=a3_0x5b70();let _0xe52c6a=_0x5b7063[_0x30a93a];return _0xe52c6a;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x54420d=a3_0xe52c,_0xd2566c=getMockAppList();if(!_0xd2566c[_0x54420d(0x9a)])throw new Error(_0x54420d(0x94)+_0xd2566c[_0x54420d(0x9e)]+'\x20('+_0xd2566c[_0x54420d(0xa5)]+')');return _0xd2566c['data'][_0x54420d(0x9f)];}
@@ -1 +1 @@
1
- function a4_0x18eb(_0x5ae8d7,_0x48e477){_0x5ae8d7=_0x5ae8d7-0xe1;const _0x28aaeb=a4_0x28aa();let _0x18eb45=_0x28aaeb[_0x5ae8d7];return _0x18eb45;}(function(_0x5e8003,_0x3c32f0){const _0x2003ba=a4_0x18eb,_0x353b13=_0x5e8003();while(!![]){try{const _0xc1162f=-parseInt(_0x2003ba(0xea))/0x1*(parseInt(_0x2003ba(0xf0))/0x2)+parseInt(_0x2003ba(0xe9))/0x3+-parseInt(_0x2003ba(0xf2))/0x4*(-parseInt(_0x2003ba(0xf4))/0x5)+parseInt(_0x2003ba(0xef))/0x6*(-parseInt(_0x2003ba(0xec))/0x7)+parseInt(_0x2003ba(0xe5))/0x8*(-parseInt(_0x2003ba(0xe8))/0x9)+-parseInt(_0x2003ba(0xe3))/0xa+parseInt(_0x2003ba(0xed))/0xb*(parseInt(_0x2003ba(0xe6))/0xc);if(_0xc1162f===_0x3c32f0)break;else _0x353b13['push'](_0x353b13['shift']());}catch(_0x1a66b7){_0x353b13['push'](_0x353b13['shift']());}}}(a4_0x28aa,0x5ba24));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x3c03d9=a4_0x18eb,_0x2c48bf=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x3c03d9(0xf1)]()[_0x3c03d9(0xe2)]();return _0x2c48bf===_0x3c03d9(0xe7);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x3b5cdc){const _0x48cb3f=a4_0x18eb,{env:_0x20f123,accessKey:_0x180751,localOnly:localOnly=![],noCache:noCache=![]}=_0x3b5cdc,_0x4aa55b=readCachedAppList(_0x20f123,_0x180751),_0xb78880=_0x180751?.[_0x48cb3f(0xf1)]()?getAppCacheFilePath(_0x20f123,_0x180751):null;if(localOnly)return{'items':_0x4aa55b?.[_0x48cb3f(0xe1)]??[],'source':_0x48cb3f(0xee),'fetchedAt':_0x4aa55b?.[_0x48cb3f(0xf3)]??null,'cachePath':_0xb78880};try{const _0x3d28fa=await getRemoteAppItems(),_0x537def=shouldUseMockRemoteApps()?_0x48cb3f(0xe7):_0x48cb3f(0xeb),_0x2fc801=new Date()[_0x48cb3f(0xe4)](),_0x3e7b1f=_0x180751?.['trim']()?writeCachedAppList(_0x20f123,_0x180751,{'env':_0x20f123,'fetchedAt':_0x2fc801,'source':_0x537def,'items':_0x3d28fa}):null;return{'items':_0x3d28fa,'source':_0x537def,'fetchedAt':_0x2fc801,'cachePath':_0x3e7b1f};}catch(_0x530779){if(!noCache&&_0x4aa55b)return{'items':_0x4aa55b[_0x48cb3f(0xe1)],'source':_0x48cb3f(0xee),'fetchedAt':_0x4aa55b[_0x48cb3f(0xf3)],'cachePath':_0xb78880};throw _0x530779;}}function a4_0x28aa(){const _0x105379=['toISOString','48QhHzSp','12PyRhvc','mock','496908GJFprS','1618227gqiXJZ','165AqeBFI','remote','35ocRhbD','17657541fbHRAx','cache','857190brAuSD','4510YdvnIs','trim','4TfsuFj','fetchedAt','1688975qrgKgY','items','toLowerCase','6894310vdUoYu'];a4_0x28aa=function(){return _0x105379;};return a4_0x28aa();}
1
+ (function(_0x1c1e8f,_0x440502){const _0x519699=a4_0x3088,_0x2bc6db=_0x1c1e8f();while(!![]){try{const _0xd40e7b=-parseInt(_0x519699(0xf1))/0x1*(-parseInt(_0x519699(0xf7))/0x2)+-parseInt(_0x519699(0xf4))/0x3+-parseInt(_0x519699(0xee))/0x4+-parseInt(_0x519699(0xf8))/0x5*(parseInt(_0x519699(0xe9))/0x6)+-parseInt(_0x519699(0xef))/0x7*(-parseInt(_0x519699(0xea))/0x8)+parseInt(_0x519699(0xeb))/0x9*(parseInt(_0x519699(0xf0))/0xa)+parseInt(_0x519699(0xf5))/0xb;if(_0xd40e7b===_0x440502)break;else _0x2bc6db['push'](_0x2bc6db['shift']());}catch(_0xd6e974){_0x2bc6db['push'](_0x2bc6db['shift']());}}}(a4_0x1f85,0x89821));function a4_0x3088(_0x40dad5,_0x106a14){_0x40dad5=_0x40dad5-0xe8;const _0x1f85db=a4_0x1f85();let _0x3088df=_0x1f85db[_0x40dad5];return _0x3088df;}function a4_0x1f85(){const _0x31145c=['4328ZVvwWm','6741VxfLNv','mock','toLowerCase','412884fqSqPq','1246SYcWHQ','13340ECABdW','131581FxrlWZ','cache','trim','1874544dajJeH','7941714uUoIGt','remote','2RfmNVx','1355nidvnR','items','fetchedAt','14562NtWtPt'];a4_0x1f85=function(){return _0x31145c;};return a4_0x1f85();}import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x30885e=a4_0x3088,_0x46e08f=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x30885e(0xf3)]()[_0x30885e(0xed)]();return _0x46e08f===_0x30885e(0xec);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x20e255){const _0x1ba745=a4_0x3088,{env:_0x2f86d8,accessKey:_0x3f6de5,localOnly:localOnly=![],noCache:noCache=![]}=_0x20e255,_0xddb312=readCachedAppList(_0x2f86d8,_0x3f6de5),_0xb39e68=_0x3f6de5?.[_0x1ba745(0xf3)]()?getAppCacheFilePath(_0x2f86d8,_0x3f6de5):null;if(localOnly)return{'items':_0xddb312?.[_0x1ba745(0xf9)]??[],'source':_0x1ba745(0xf2),'fetchedAt':_0xddb312?.[_0x1ba745(0xe8)]??null,'cachePath':_0xb39e68};try{const _0xdc1b5c=await getRemoteAppItems(),_0x161bd8=shouldUseMockRemoteApps()?_0x1ba745(0xec):_0x1ba745(0xf6),_0x44cbfe=new Date()['toISOString'](),_0x839ee8=_0x3f6de5?.[_0x1ba745(0xf3)]()?writeCachedAppList(_0x2f86d8,_0x3f6de5,{'env':_0x2f86d8,'fetchedAt':_0x44cbfe,'source':_0x161bd8,'items':_0xdc1b5c}):null;return{'items':_0xdc1b5c,'source':_0x161bd8,'fetchedAt':_0x44cbfe,'cachePath':_0x839ee8};}catch(_0x423f60){if(!noCache&&_0xddb312)return{'items':_0xddb312['items'],'source':'cache','fetchedAt':_0xddb312[_0x1ba745(0xe8)],'cachePath':_0xb39e68};throw _0x423f60;}}
@@ -1 +1 @@
1
- (function(_0x36e60e,_0x13160a){const _0x6e8db=a5_0x22a5,_0x4bf63e=_0x36e60e();while(!![]){try{const _0x428a4d=parseInt(_0x6e8db(0xea))/0x1*(-parseInt(_0x6e8db(0xdd))/0x2)+-parseInt(_0x6e8db(0xdf))/0x3+parseInt(_0x6e8db(0xe1))/0x4*(parseInt(_0x6e8db(0xed))/0x5)+-parseInt(_0x6e8db(0xe7))/0x6+parseInt(_0x6e8db(0xdc))/0x7*(parseInt(_0x6e8db(0xe8))/0x8)+parseInt(_0x6e8db(0xe3))/0x9*(parseInt(_0x6e8db(0xeb))/0xa)+parseInt(_0x6e8db(0xec))/0xb;if(_0x428a4d===_0x13160a)break;else _0x4bf63e['push'](_0x4bf63e['shift']());}catch(_0x110c8e){_0x4bf63e['push'](_0x4bf63e['shift']());}}}(a5_0x24e6,0xb81e7));import{CLI_BIN_NAME}from'../../constant/cli.js';function a5_0x22a5(_0x52a1b8,_0x258394){_0x52a1b8=_0x52a1b8-0xda;const _0x24e6d2=a5_0x24e6();let _0x22a537=_0x24e6d2[_0x52a1b8];return _0x22a537;}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a5_0x24e6(){const _0x2f755e=['4368991yccFKy','14605SZiuSq','global','currentApp','isCurrent','133ixqPkE','50lcicvP','project','2433675YxiFTr','appCode','1516HUUHZA','name','117FIzVvH','trim','named','defaultApp','9004572SBVqFK','299056WBUEHy','appcode','18197iuHMbM','1005050oWyRjf'];a5_0x24e6=function(){return _0x2f755e;};return a5_0x24e6();}export function enrichAppListItemsWithMergedSelection(_0x3ed8a6,_0x2844e0){const _0xe74b77=a5_0x22a5;if(!_0x2844e0)return;const _0xa89667=!!(_0x2844e0[_0xe74b77(0xda)]??_0x2844e0[_0xe74b77(0xe6)]);for(const _0x4a34ce of _0x3ed8a6){_0x4a34ce[_0xe74b77(0xdb)]=![];}const _0x226c94=_0x2844e0[_0xe74b77(0xe0)]!=null?String(_0x2844e0['appCode'])[_0xe74b77(0xe4)]():'';if(_0xa89667){const _0x36dadc=_0x2844e0['currentApp']??_0x2844e0[_0xe74b77(0xe6)];if(_0x36dadc)for(const _0x119b96 of _0x3ed8a6){_0x119b96[_0xe74b77(0xe5)]===!![]&&_0x119b96[_0xe74b77(0xe2)]===_0x36dadc&&(_0x119b96[_0xe74b77(0xdb)]=!![]);}return;}if(!_0x226c94)return;for(const _0x5a9e25 of _0x3ed8a6){String(_0x5a9e25[_0xe74b77(0xe9)]??'')[_0xe74b77(0xe4)]()===_0x226c94&&(_0x5a9e25[_0xe74b77(0xdb)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x4d5341){const _0x34580b=a5_0x22a5;return formatScopeLabel(_0x4d5341['global']?_0x34580b(0xee):_0x34580b(0xde));}
1
+ (function(_0x41be64,_0x489fde){const _0x28c3bb=a5_0x430f,_0x1b8452=_0x41be64();while(!![]){try{const _0xfbb591=-parseInt(_0x28c3bb(0x1fb))/0x1*(-parseInt(_0x28c3bb(0x1f1))/0x2)+parseInt(_0x28c3bb(0x1f3))/0x3+-parseInt(_0x28c3bb(0x203))/0x4+parseInt(_0x28c3bb(0x1f4))/0x5+-parseInt(_0x28c3bb(0x202))/0x6+parseInt(_0x28c3bb(0x1fd))/0x7+-parseInt(_0x28c3bb(0x200))/0x8*(parseInt(_0x28c3bb(0x1f8))/0x9);if(_0xfbb591===_0x489fde)break;else _0x1b8452['push'](_0x1b8452['shift']());}catch(_0x255b16){_0x1b8452['push'](_0x1b8452['shift']());}}}(a5_0x390f,0xabfe1));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x30a87e,_0x1f991d){const _0x537cd0=a5_0x430f;if(!_0x1f991d)return;const _0x31ce4f=!!(_0x1f991d['currentApp']??_0x1f991d[_0x537cd0(0x1ff)]);for(const _0x38a674 of _0x30a87e){_0x38a674['isCurrent']=![];}const _0x3a01c1=_0x1f991d[_0x537cd0(0x1f5)]!=null?String(_0x1f991d[_0x537cd0(0x1f5)])[_0x537cd0(0x1fa)]():'';if(_0x31ce4f){const _0x57fd98=_0x1f991d[_0x537cd0(0x201)]??_0x1f991d[_0x537cd0(0x1ff)];if(_0x57fd98)for(const _0x2da891 of _0x30a87e){_0x2da891[_0x537cd0(0x1f6)]===!![]&&_0x2da891[_0x537cd0(0x1fe)]===_0x57fd98&&(_0x2da891[_0x537cd0(0x1f7)]=!![]);}return;}if(!_0x3a01c1)return;for(const _0x47dfd8 of _0x30a87e){String(_0x47dfd8[_0x537cd0(0x1f9)]??'')['trim']()===_0x3a01c1&&(_0x47dfd8['isCurrent']=!![]);}}function a5_0x430f(_0x2b7c55,_0x211cc){_0x2b7c55=_0x2b7c55-0x1f1;const _0x390f5d=a5_0x390f();let _0x430fc9=_0x390f5d[_0x2b7c55];return _0x430fc9;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x345138){const _0x1f73da=a5_0x430f;return formatScopeLabel(_0x345138[_0x1f73da(0x1f2)]?_0x1f73da(0x1f2):_0x1f73da(0x1fc));}function a5_0x390f(){const _0x2aa89c=['4830828gcbCZz','3721616WnLovq','1390482UHExfj','global','670038ZSrgHd','1896980QUjkyl','appCode','named','isCurrent','54DINpQg','appcode','trim','2oQCsxM','project','4224087eHSYCD','name','defaultApp','208856aytOnO','currentApp'];a5_0x390f=function(){return _0x2aa89c;};return a5_0x390f();}
@@ -1 +1 @@
1
- const a6_0x136f47=a6_0x6cbc;(function(_0x1c394c,_0x3622b8){const _0x2f5bde=a6_0x6cbc,_0x1cc5d6=_0x1c394c();while(!![]){try{const _0x5df8e8=-parseInt(_0x2f5bde(0x11b))/0x1*(parseInt(_0x2f5bde(0x128))/0x2)+parseInt(_0x2f5bde(0x130))/0x3*(parseInt(_0x2f5bde(0x135))/0x4)+parseInt(_0x2f5bde(0x137))/0x5*(parseInt(_0x2f5bde(0x139))/0x6)+-parseInt(_0x2f5bde(0x13a))/0x7+parseInt(_0x2f5bde(0x10b))/0x8*(parseInt(_0x2f5bde(0x11a))/0x9)+parseInt(_0x2f5bde(0x109))/0xa*(parseInt(_0x2f5bde(0x120))/0xb)+parseInt(_0x2f5bde(0x104))/0xc*(parseInt(_0x2f5bde(0x119))/0xd);if(_0x5df8e8===_0x3622b8)break;else _0x1cc5d6['push'](_0x1cc5d6['shift']());}catch(_0x52b995){_0x1cc5d6['push'](_0x1cc5d6['shift']());}}}(a6_0xfdfb,0x18fb4));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function a6_0x6cbc(_0x3d042d,_0x758d3c){_0x3d042d=_0x3d042d-0x103;const _0xfdfb1f=a6_0xfdfb();let _0x6cbc82=_0xfdfb1f[_0x3d042d];return _0x6cbc82;}function resolveAuthScopeFlags(_0x1cb7cd){const _0x189b2e=a6_0x6cbc;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1cb7cd[_0x189b2e(0x14b)](_0x189b2e(0x11e)),'explicitProject':_0x1cb7cd[_0x189b2e(0x14b)](_0x189b2e(0x10d)),'policy':_0x189b2e(0x118)}));}async function resolveAuthWriteInput(_0x51c916){const _0x52b4a8=a6_0x6cbc;let _0x3a106d=(_0x51c916[_0x52b4a8(0x134)](_0x52b4a8(0x141))||_0x51c916[_0x52b4a8(0x134)]('ak')||'')['trim']();const _0x586d96=(_0x51c916[_0x52b4a8(0x134)](_0x52b4a8(0x13e))||'')[_0x52b4a8(0x112)]();if(!_0x3a106d&&!_0x51c916['nonInteractive'])try{_0x3a106d=await promptAccessKey('');}catch(_0x48de8a){if(isAbortPrompt(_0x48de8a))throw CliErrors[_0x52b4a8(0x122)]();throw _0x48de8a;}if(!_0x3a106d)throw CliErrors['validation']('Missing\x20accessKey.',_0x52b4a8(0x11f)+CLI_BIN_NAME+_0x52b4a8(0x126));if(!ACCESS_KEY_PATTERN['test'](_0x3a106d))throw CliErrors[_0x52b4a8(0x13d)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x3a106d+'\x22',_0x52b4a8(0x136));if(!_0x586d96)return{'accessKey':_0x3a106d};const _0x586397=normalizeEnv(_0x586d96);return{'accessKey':_0x3a106d,'env':isDaily(_0x586397)?_0x52b4a8(0x144):isDev(_0x586397)?_0x52b4a8(0x12f):_0x52b4a8(0x142)};}export const authDefinitions=[{'service':a6_0x136f47(0x149),'command':a6_0x136f47(0x143),'description':a6_0x136f47(0x121),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x136f47(0x13f),'description':a6_0x136f47(0x111)},{'name':'ak','type':'string','description':a6_0x136f47(0x12e)},{'name':'global','type':a6_0x136f47(0x115),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a6_0x136f47(0x10d),'type':a6_0x136f47(0x115),'description':a6_0x136f47(0x108),'default':![]}],async 'execute'(_0x3c4e86){const _0x31673a=a6_0x136f47,_0xc5090c=await resolveAuthWriteInput(_0x3c4e86),_0x3cfe6b=resolveAuthScopeFlags(_0x3c4e86),_0x56d000=readScopedConfig(_0x3cfe6b);_0x56d000['accessKey']=_0xc5090c['accessKey'];_0xc5090c['env']&&(_0x56d000[_0x31673a(0x13e)]=_0xc5090c[_0x31673a(0x13e)]);writeScopedConfig(_0x56d000,_0x3cfe6b);const _0x511c47=_0x3cfe6b[_0x31673a(0x11e)]?_0x31673a(0x11e):_0x31673a(0x10d),_0x39e561=_0x56d000[_0x31673a(0x13e)]?_0x31673a(0x125)+_0x56d000['env']+'.':'';return{'ok':!![],'message':_0x31673a(0x116)+_0x511c47+'\x20config.'+_0x39e561+_0x31673a(0x12b)+CLI_BIN_NAME+_0x31673a(0x12a)};}},{'service':'auth','command':a6_0x136f47(0x117),'description':a6_0x136f47(0x113),'risk':a6_0x136f47(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x136f47(0x141),'type':'string','description':a6_0x136f47(0x111)},{'name':'ak','type':a6_0x136f47(0x13f),'description':a6_0x136f47(0x12e)},{'name':'env','type':a6_0x136f47(0x13f),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':'global','type':a6_0x136f47(0x115),'description':a6_0x136f47(0x107),'default':!![]},{'name':a6_0x136f47(0x10d),'type':a6_0x136f47(0x115),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5bd2bb){const _0x5036ae=a6_0x136f47,_0x9bf9e6=await resolveAuthWriteInput(_0x5bd2bb),_0x381710=resolveAuthScopeFlags(_0x5bd2bb),_0x28b6cb={'accessKey':_0x9bf9e6[_0x5036ae(0x10e)]};_0x9bf9e6[_0x5036ae(0x13e)]&&(_0x28b6cb['env']=_0x9bf9e6[_0x5036ae(0x13e)]);writeScopedConfig(_0x28b6cb,_0x381710);const _0x213e90=_0x381710['global']?_0x5036ae(0x11e):_0x5036ae(0x10d),_0x4c98a1=_0x28b6cb['env']?_0x5036ae(0x125)+_0x28b6cb[_0x5036ae(0x13e)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x213e90+_0x5036ae(0x13c)+_0x4c98a1+_0x5036ae(0x12b)+CLI_BIN_NAME+_0x5036ae(0x12a)};}},{'service':a6_0x136f47(0x149),'command':a6_0x136f47(0x132),'description':'Clear\x20accessKey\x20from\x20config','risk':a6_0x136f47(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x136f47(0x11e),'type':a6_0x136f47(0x115),'description':a6_0x136f47(0x13b),'default':!![]},{'name':a6_0x136f47(0x10d),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3ba611){const _0x57c01e=a6_0x136f47,_0x2cf53f=resolveAuthScopeFlags(_0x3ba611),_0x295fdb=readScopedConfig(_0x2cf53f),_0x4902df=!!_0x295fdb[_0x57c01e(0x10e)];delete _0x295fdb[_0x57c01e(0x10e)],writeScopedConfig(_0x295fdb,_0x2cf53f);const _0x328c2c=_0x2cf53f['global']?_0x57c01e(0x11e):_0x57c01e(0x10d);if(_0x4902df)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x328c2c+_0x57c01e(0x106)};return{'ok':!![],'message':_0x57c01e(0x123)+_0x328c2c+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':'auth','command':a6_0x136f47(0x145),'description':a6_0x136f47(0x12c),'risk':a6_0x136f47(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x136f47(0x11e),'type':a6_0x136f47(0x115),'description':a6_0x136f47(0x12d),'default':!![]},{'name':a6_0x136f47(0x10d),'type':a6_0x136f47(0x115),'description':a6_0x136f47(0x10c),'default':![]}],async 'execute'(_0xf05aeb){const _0x4ad069=a6_0x136f47,_0x32d97d=resolveAuthScopeFlags(_0xf05aeb),_0x57293f=readScopedConfig(_0x32d97d),_0x4d2b79=process.env.LOVRABET_ACCESS_KEY||undefined,_0x199819=_0x57293f[_0x4ad069(0x10e)]||undefined,_0x308d43=_0x4d2b79||_0x199819,_0x4eaec5=_0x4d2b79?_0x4ad069(0x110):_0x199819?(_0x32d97d[_0x4ad069(0x11e)]?_0x4ad069(0x11e):_0x4ad069(0x10d))+'\x20config':null,_0x428adb=[_0x4ad069(0x148)+AUTH_MODE[_0x4ad069(0x140)]];if(_0x308d43){const _0x434821=_0x308d43[_0x4ad069(0x138)]>0x8?''+_0x308d43[_0x4ad069(0x10f)](0x0,0x8)+'*'['repeat'](_0x308d43[_0x4ad069(0x138)]-0x8):_0x308d43;_0x428adb[_0x4ad069(0x133)]('AccessKey:\x20'+_0x434821+(_0x4eaec5?_0x4ad069(0x11c)+_0x4eaec5+')':''));}return!_0x308d43&&(_0x428adb['push'](''),_0x428adb['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x428adb[_0x4ad069(0x133)](''),_0x428adb['push'](_0x4ad069(0x131)+CLI_BIN_NAME+_0x4ad069(0x105)),_0x428adb[_0x4ad069(0x133)](''),_0x428adb[_0x4ad069(0x133)](_0x4ad069(0x114)),_0x428adb[_0x4ad069(0x133)](_0x4ad069(0x127)),_0x428adb[_0x4ad069(0x133)](''),_0x428adb[_0x4ad069(0x133)](_0x4ad069(0x14a)),_0x428adb[_0x4ad069(0x133)](_0x4ad069(0x147)),_0x428adb[_0x4ad069(0x133)](''),_0x428adb['push'](_0x4ad069(0x11d)+CLI_BIN_NAME+_0x4ad069(0x12a)),_0x428adb[_0x4ad069(0x133)](_0x4ad069(0x129)+CLI_BIN_NAME+_0x4ad069(0x124))),{'ok':!![],'message':_0x428adb[_0x4ad069(0x10a)]('\x0a')};}}];function a6_0xfdfb(){const _0x4d4ee1=['daily','status','write','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','Auth\x20mode:\x20','auth','Option\x20C:\x20environment\x20variable','bool','read','12ujGJwL','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20config.','Write\x20to\x20global\x20config\x20(default)','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','1036010sGvHFS','join','324320gAQrbJ','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','project','accessKey','slice','LOVRABET_ACCESS_KEY\x20env\x20var','AccessKey\x20(ak_xxx...)','trim','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','boolean','AccessKey\x20saved\x20to\x20','init','global-default','843375SkpUfy','36qlKcDF','2644gnJLpl','\x20(via\x20','Then\x20verify\x20with:\x20','global','Usage:\x20','11MzRCuc','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','cancelled','No\x20AccessKey\x20found\x20in\x20','\x20doctor','\x20Current\x20env:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','132dhRXZg','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','\x20auth\x20status','\x20Verify:\x20','Show\x20current\x20authentication\x20status','Read\x20from\x20global\x20config\x20(default)','Shorthand\x20for\x20--access-key','development','49287nvjoZM','Option\x20A:\x20','logout','push','str','16IcXUJc','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','10160AdGhHi','length','42QkXNcG','936236ZWlfFV','Clear\x20from\x20global\x20config\x20(default)','\x20scope.','validation','env','string','ClientAk','access-key','production','login'];a6_0xfdfb=function(){return _0x4d4ee1;};return a6_0xfdfb();}
1
+ const a6_0x297e7b=a6_0x5bf8;(function(_0x157e29,_0x5967d8){const _0x31df72=a6_0x5bf8,_0x53ef67=_0x157e29();while(!![]){try{const _0x2e9023=parseInt(_0x31df72(0x9e))/0x1+parseInt(_0x31df72(0x6e))/0x2*(parseInt(_0x31df72(0x7c))/0x3)+-parseInt(_0x31df72(0xab))/0x4*(parseInt(_0x31df72(0x77))/0x5)+-parseInt(_0x31df72(0x75))/0x6*(parseInt(_0x31df72(0x9c))/0x7)+parseInt(_0x31df72(0x6f))/0x8+parseInt(_0x31df72(0x8e))/0x9*(-parseInt(_0x31df72(0x82))/0xa)+-parseInt(_0x31df72(0x69))/0xb;if(_0x2e9023===_0x5967d8)break;else _0x53ef67['push'](_0x53ef67['shift']());}catch(_0x5f048d){_0x53ef67['push'](_0x53ef67['shift']());}}}(a6_0x9b49,0xbd0f2));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a6_0x5bf8(_0x54f73e,_0xbd6c7e){_0x54f73e=_0x54f73e-0x67;const _0x9b498f=a6_0x9b49();let _0x5bf8b1=_0x9b498f[_0x54f73e];return _0x5bf8b1;}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a6_0x9b49(){const _0x510c25=['AccessKey\x20(ak_xxx...)','AccessKey:\x20','trim','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','env','login','\x20scope.','push','6945862FFSkEW','access-key','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','write','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','26ofVbxP','11340944JmmrrN','validation','bool','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','join','4208214QQtLlZ','str','345cNniwd','\x20config.\x20Nothing\x20to\x20clear.','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20Lovrabet\x20User\x20Center:','Read\x20from\x20global\x20config\x20(default)','240369zegLVi','global-default','ClientAk','global','logout','auth','2723510HYKVmN','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','envName','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','AccessKey\x20cleared\x20from\x20','\x20config.','length','Option\x20A:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','boolean','Shorthand\x20for\x20--access-key','Clear\x20accessKey\x20from\x20config','45fOyRKt','\x20Current\x20env:\x20','No\x20AccessKey\x20found\x20in\x20','string','repeat','Create\x20one\x20in\x20Lovrabet\x20User\x20Center:\x20','accessKey','production','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','\x20auth\x20status','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','development','Auth\x20config\x20reinitialized\x20in\x20','7XKcqNw','LOVRABET_ACCESS_KEY\x20env\x20var','1542898QWHhsn','slice','Write\x20to\x20global\x20config\x20(default)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','status','\x20Verify:\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Show\x20current\x20authentication\x20status','Then\x20verify\x20with:\x20','Clear\x20from\x20global\x20config\x20(default)','AccessKey\x20saved\x20to\x20','project','read','30908sjDTQw'];a6_0x9b49=function(){return _0x510c25;};return a6_0x9b49();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x2f8c0a=a6_0x5bf8;writeCliSideChannelLine(_0x2f8c0a(0x7a)),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a');}function resolveAuthScopeFlags(_0x1f009a){const _0x234005=a6_0x5bf8;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1f009a[_0x234005(0x71)](_0x234005(0x7f)),'explicitProject':_0x1f009a[_0x234005(0x71)](_0x234005(0xa9)),'policy':_0x234005(0x7d)}));}async function resolveAuthWriteInput(_0x5d577a){const _0x243352=a6_0x5bf8;let _0x4403a9=(_0x5d577a[_0x243352(0x76)](_0x243352(0x6a))||_0x5d577a[_0x243352(0x76)]('ak')||'')[_0x243352(0xae)]();const _0x155881=(_0x5d577a[_0x243352(0x76)](_0x243352(0xb0))||'')[_0x243352(0xae)]();if(!_0x4403a9&&!_0x5d577a['nonInteractive'])try{showAccessKeyCreateHint(),_0x4403a9=await promptAccessKey('');}catch(_0x5d7828){if(isAbortPrompt(_0x5d7828))throw CliErrors['cancelled']();throw _0x5d7828;}if(!_0x4403a9)throw CliErrors[_0x243352(0x70)]('Missing\x20accessKey.',[_0x243352(0x93)+USER_ACCESS_KEY_CREATE_URL,'Then\x20run:\x20'+CLI_BIN_NAME+_0x243352(0xaf)][_0x243352(0x74)]('\x0a'));if(!ACCESS_KEY_PATTERN['test'](_0x4403a9))throw CliErrors[_0x243352(0x70)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x4403a9+'\x22',_0x243352(0xa4));if(!_0x155881)return{'accessKey':_0x4403a9};const _0x255175=normalizeEnv(_0x155881);return{'accessKey':_0x4403a9,'env':isDaily(_0x255175)?'daily':isDev(_0x255175)?_0x243352(0x9a):_0x243352(0x95)};}export const authDefinitions=[{'service':'auth','command':a6_0x297e7b(0xb1),'description':a6_0x297e7b(0x97),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x297e7b(0x6a),'type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0xac)},{'name':'ak','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0x8c)},{'name':a6_0x297e7b(0x7f),'type':'boolean','description':a6_0x297e7b(0xa0),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x99),'default':![]}],async 'execute'(_0x39afbf){const _0x4e8b55=a6_0x297e7b,_0x5a5287=await resolveAuthWriteInput(_0x39afbf),_0xe06e42=resolveAuthScopeFlags(_0x39afbf),_0x41fa59=readScopedConfig(_0xe06e42);_0x41fa59[_0x4e8b55(0x94)]=_0x5a5287[_0x4e8b55(0x94)];_0x5a5287['env']&&(_0x41fa59['env']=_0x5a5287[_0x4e8b55(0xb0)]);writeScopedConfig(_0x41fa59,_0xe06e42);const _0x70e72c=_0xe06e42[_0x4e8b55(0x7f)]?_0x4e8b55(0x7f):_0x4e8b55(0xa9),_0x5a4d84=_0x41fa59[_0x4e8b55(0xb0)]?_0x4e8b55(0x8f)+_0x41fa59['env']+'.':'';return{'ok':!![],'message':_0x4e8b55(0xa8)+_0x70e72c+_0x4e8b55(0x87)+_0x5a4d84+_0x4e8b55(0xa3)+CLI_BIN_NAME+_0x4e8b55(0x98)};}},{'service':'auth','command':'init','description':a6_0x297e7b(0x72),'risk':a6_0x297e7b(0x6c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0xac)},{'name':'ak','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0x8c)},{'name':'env','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0xa1)},{'name':a6_0x297e7b(0x7f),'type':'boolean','description':a6_0x297e7b(0xa0),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x99),'default':![]}],async 'execute'(_0x1b09ff){const _0x3a58eb=a6_0x297e7b,_0x3472c8=await resolveAuthWriteInput(_0x1b09ff),_0x1d977e=resolveAuthScopeFlags(_0x1b09ff),_0x33de10={'accessKey':_0x3472c8[_0x3a58eb(0x94)]};_0x3472c8[_0x3a58eb(0xb0)]&&(_0x33de10[_0x3a58eb(0xb0)]=_0x3472c8['env']);writeScopedConfig(_0x33de10,_0x1d977e);const _0xe4139c=_0x1d977e['global']?'global':_0x3a58eb(0xa9),_0x164d2a=_0x33de10[_0x3a58eb(0xb0)]?_0x3a58eb(0x8f)+_0x33de10['env']+'.':'';return{'ok':!![],'message':_0x3a58eb(0x9b)+_0xe4139c+_0x3a58eb(0x67)+_0x164d2a+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x297e7b(0x81),'command':a6_0x297e7b(0x80),'description':a6_0x297e7b(0x8d),'risk':a6_0x297e7b(0x6c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x297e7b(0x7f),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0xa7),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x96),'default':![]}],async 'execute'(_0x8c78ba){const _0x132191=a6_0x297e7b,_0x3d568a=resolveAuthScopeFlags(_0x8c78ba),_0x42bef2=readScopedConfig(_0x3d568a),_0x19c253=!!_0x42bef2['accessKey'];delete _0x42bef2[_0x132191(0x94)],writeScopedConfig(_0x42bef2,_0x3d568a);const _0x498d7a=_0x3d568a[_0x132191(0x7f)]?_0x132191(0x7f):_0x132191(0xa9);if(_0x19c253)return{'ok':!![],'message':_0x132191(0x86)+_0x498d7a+_0x132191(0x87)};return{'ok':!![],'message':_0x132191(0x90)+_0x498d7a+_0x132191(0x78)};}},{'service':a6_0x297e7b(0x81),'command':a6_0x297e7b(0xa2),'description':a6_0x297e7b(0xa5),'risk':a6_0x297e7b(0xaa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a6_0x297e7b(0x7b),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x8a),'default':![]}],async 'execute'(_0x47fc33){const _0x2fdd7a=a6_0x297e7b,_0x33707b=resolveAuthScopeFlags(_0x47fc33),_0x57e9fd=readScopedConfig(_0x33707b),_0x3c136c=process.env.LOVRABET_ACCESS_KEY||undefined,_0x18ff2a=_0x57e9fd[_0x2fdd7a(0x94)]||undefined,_0x42de09=_0x3c136c||_0x18ff2a,_0x236b1c=_0x3c136c?_0x2fdd7a(0x9d):_0x18ff2a?(_0x33707b[_0x2fdd7a(0x7f)]?'global':_0x2fdd7a(0xa9))+'\x20config':null,_0x1e9cb7=['Auth\x20mode:\x20'+AUTH_MODE[_0x2fdd7a(0x7e)]];if(_0x42de09){const _0x3200d4=_0x42de09[_0x2fdd7a(0x88)]>0x8?''+_0x42de09[_0x2fdd7a(0x9f)](0x0,0x8)+'*'[_0x2fdd7a(0x92)](_0x42de09[_0x2fdd7a(0x88)]-0x8):_0x42de09;_0x1e9cb7['push'](_0x2fdd7a(0xad)+_0x3200d4+(_0x236b1c?'\x20(via\x20'+_0x236b1c+')':''));}return!_0x42de09&&(_0x1e9cb7[_0x2fdd7a(0x68)](''),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x83)),_0x1e9cb7[_0x2fdd7a(0x68)](''),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x89)+CLI_BIN_NAME+_0x2fdd7a(0x79)),_0x1e9cb7[_0x2fdd7a(0x68)](''),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x73)),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x6b)),_0x1e9cb7['push'](''),_0x1e9cb7[_0x2fdd7a(0x68)]('Option\x20C:\x20environment\x20variable'),_0x1e9cb7['push'](_0x2fdd7a(0x6d)),_0x1e9cb7['push'](''),_0x1e9cb7['push'](_0x2fdd7a(0xa6)+CLI_BIN_NAME+_0x2fdd7a(0x98)),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x85)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x1e9cb7[_0x2fdd7a(0x74)]('\x0a')};}},{'service':a6_0x297e7b(0x81),'command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a6_0x297e7b(0xaa),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x456d39){const _0x4b044d=a6_0x297e7b,_0x4e0753=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4e0753,'meta':{'env':_0x456d39[_0x4b044d(0x84)]??_0x4b044d(0x95)}}};}}];
@@ -1 +1 @@
1
- (function(_0x5ce40c,_0x309a64){const _0x142570=a7_0x5186,_0x3dbb42=_0x5ce40c();while(!![]){try{const _0x2b418d=-parseInt(_0x142570(0x13f))/0x1+-parseInt(_0x142570(0x13d))/0x2*(-parseInt(_0x142570(0x12b))/0x3)+-parseInt(_0x142570(0x12d))/0x4+-parseInt(_0x142570(0x131))/0x5+-parseInt(_0x142570(0x130))/0x6*(parseInt(_0x142570(0x136))/0x7)+-parseInt(_0x142570(0x13b))/0x8+-parseInt(_0x142570(0x133))/0x9*(-parseInt(_0x142570(0x135))/0xa);if(_0x2b418d===_0x309a64)break;else _0x3dbb42['push'](_0x3dbb42['shift']());}catch(_0x75866b){_0x3dbb42['push'](_0x3dbb42['shift']());}}}(a7_0x2fcd,0xb90b4));function a7_0x5186(_0xb2007b,_0x42378d){_0xb2007b=_0xb2007b-0x12b;const _0x2fcd33=a7_0x2fcd();let _0x51868f=_0x2fcd33[_0xb2007b];return _0x51868f;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x2067c0=a7_0x5186;super('User\x20aborted\x20prompt'),this[_0x2067c0(0x12c)]=_0x2067c0(0x137);}}function a7_0x2fcd(){const _0x3c407b=['race','3ecoSrI','name','3288240JPxfNR','stdout','once','10698mXmdre','4063910VRTyTU','removeListener','171YnuKvZ','close','1869460WeCSzv','4291GfiSyr','AbortPrompt','question','SIGINT','\x20\x20AccessKey\x20(','230496YTdAIH','\x20\x20AccessKey:\x20','1110918wQDmmt','trim','592860GQEzBB','stdin'];a7_0x2fcd=function(){return _0x3c407b;};return a7_0x2fcd();}function createSafeRl(){const _0x26b76b=a7_0x5186,_0x56c3a4=createInterface({'input':process[_0x26b76b(0x140)],'output':process[_0x26b76b(0x12e)]});let _0x5d7241;const _0x146ed4=new Promise((_0x5c3e59,_0x425c4e)=>{const _0x159170=_0x26b76b;_0x5d7241=()=>{const _0x480fc3=a7_0x5186;_0x5d7241&&(_0x56c3a4[_0x480fc3(0x132)](_0x480fc3(0x139),_0x5d7241),_0x5d7241=undefined);try{_0x56c3a4[_0x480fc3(0x134)]();}catch{}_0x425c4e(new AbortPrompt());},_0x56c3a4[_0x159170(0x12f)]('SIGINT',_0x5d7241);}),_0x5d4162=()=>{const _0x5a5ac5=_0x26b76b;_0x5d7241&&(_0x56c3a4[_0x5a5ac5(0x132)]('SIGINT',_0x5d7241),_0x5d7241=undefined);try{_0x56c3a4['close']();}catch{}};return{'rl':_0x56c3a4,'abortPromise':_0x146ed4,'disposeSuccess':_0x5d4162};}export async function promptAccessKey(_0x47e3b4=''){const _0x4f59b5=a7_0x5186,{rl:_0x33eddf,abortPromise:_0x2e2c88,disposeSuccess:_0x5f10ff}=createSafeRl(),_0x6e7d02=new Promise(_0x15d9c6=>{const _0x26f047=a7_0x5186,_0x4111c6=_0x47e3b4?_0x26f047(0x13a)+_0x47e3b4+'):\x20':_0x26f047(0x13c);_0x33eddf[_0x26f047(0x138)](_0x4111c6,_0x5f7afc=>{const _0x381878=_0x26f047;_0x5f10ff(),_0x15d9c6(_0x5f7afc[_0x381878(0x13e)]()||_0x47e3b4);});});return Promise[_0x4f59b5(0x141)]([_0x6e7d02,_0x2e2c88]);}export function isAbortPrompt(_0x2e0fb7){const _0x4e872e=a7_0x5186;return _0x2e0fb7 instanceof Error&&_0x2e0fb7[_0x4e872e(0x12c)]==='AbortPrompt';}
1
+ (function(_0x2761fe,_0x17ec4c){const _0x4de4aa=a7_0x4926,_0x299ff9=_0x2761fe();while(!![]){try{const _0x278dbc=-parseInt(_0x4de4aa(0xc5))/0x1*(-parseInt(_0x4de4aa(0xbf))/0x2)+parseInt(_0x4de4aa(0xc1))/0x3+parseInt(_0x4de4aa(0xd2))/0x4*(-parseInt(_0x4de4aa(0xcc))/0x5)+-parseInt(_0x4de4aa(0xc3))/0x6+-parseInt(_0x4de4aa(0xc7))/0x7*(-parseInt(_0x4de4aa(0xc6))/0x8)+-parseInt(_0x4de4aa(0xbe))/0x9*(-parseInt(_0x4de4aa(0xd1))/0xa)+-parseInt(_0x4de4aa(0xc8))/0xb;if(_0x278dbc===_0x17ec4c)break;else _0x299ff9['push'](_0x299ff9['shift']());}catch(_0x5ba8bc){_0x299ff9['push'](_0x299ff9['shift']());}}}(a7_0x3454,0xb132f));function a7_0x4926(_0x7a96f7,_0x39b827){_0x7a96f7=_0x7a96f7-0xbc;const _0x345486=a7_0x3454();let _0x49265c=_0x345486[_0x7a96f7];return _0x49265c;}import{createInterface}from'node:readline';function a7_0x3454(){const _0xb4a273=['stdout','SIGINT','9qJJDAD','4AsrVxM','name','2777928LryNCc','removeListener','6022566sLCIQF','once','583883XaMAcT','630888gJNuAm','35vCnxuO','1895674dWPylA','AbortPrompt','question','AccessKey\x20(','5fPyyEn','race','AccessKey\x20(paste\x20ak_...):\x20','close','trim','2698170IwOmVt','3423848SsaDHV','):\x20'];a7_0x3454=function(){return _0xb4a273;};return a7_0x3454();}class AbortPrompt extends Error{constructor(){const _0x6c1769=a7_0x4926;super('User\x20aborted\x20prompt'),this[_0x6c1769(0xc0)]=_0x6c1769(0xc9);}}function createSafeRl(){const _0x341e2a=a7_0x4926,_0x10e7fb=createInterface({'input':process['stdin'],'output':process[_0x341e2a(0xbc)]});let _0x395afb;const _0x2ccbbf=new Promise((_0x2cbec8,_0x12d89b)=>{const _0x5226b8=_0x341e2a;_0x395afb=()=>{const _0x2907fb=a7_0x4926;_0x395afb&&(_0x10e7fb[_0x2907fb(0xc2)](_0x2907fb(0xbd),_0x395afb),_0x395afb=undefined);try{_0x10e7fb[_0x2907fb(0xcf)]();}catch{}_0x12d89b(new AbortPrompt());},_0x10e7fb[_0x5226b8(0xc4)](_0x5226b8(0xbd),_0x395afb);}),_0x51731e=()=>{const _0x5692b6=_0x341e2a;_0x395afb&&(_0x10e7fb[_0x5692b6(0xc2)](_0x5692b6(0xbd),_0x395afb),_0x395afb=undefined);try{_0x10e7fb[_0x5692b6(0xcf)]();}catch{}};return{'rl':_0x10e7fb,'abortPromise':_0x2ccbbf,'disposeSuccess':_0x51731e};}export async function promptAccessKey(_0xedfdbc=''){const _0x325985=a7_0x4926,{rl:_0x2876b5,abortPromise:_0xd02743,disposeSuccess:_0x2c4b81}=createSafeRl(),_0x170340=new Promise(_0x1bf376=>{const _0x2df23d=a7_0x4926,_0x32de91=_0xedfdbc?_0x2df23d(0xcb)+_0xedfdbc+_0x2df23d(0xd3):_0x2df23d(0xce);_0x2876b5[_0x2df23d(0xca)](_0x32de91,_0x44a52a=>{const _0x5a1cb9=_0x2df23d;_0x2c4b81(),_0x1bf376(_0x44a52a[_0x5a1cb9(0xd0)]()||_0xedfdbc);});});return Promise[_0x325985(0xcd)]([_0x170340,_0xd02743]);}export function isAbortPrompt(_0x39c116){const _0x1b13af=a7_0x4926;return _0x39c116 instanceof Error&&_0x39c116[_0x1b13af(0xc0)]===_0x1b13af(0xc9);}
@@ -1 +1 @@
1
- const a8_0x20ed31=a8_0x56c9;function a8_0x56c9(_0x2cc910,_0x9777ab){_0x2cc910=_0x2cc910-0x13d;const _0x3816fd=a8_0x3816();let _0x56c94e=_0x3816fd[_0x2cc910];return _0x56c94e;}(function(_0x448296,_0x96eb90){const _0x183db7=a8_0x56c9,_0x3372fb=_0x448296();while(!![]){try{const _0x52e189=-parseInt(_0x183db7(0x14d))/0x1+parseInt(_0x183db7(0x142))/0x2*(-parseInt(_0x183db7(0x14b))/0x3)+-parseInt(_0x183db7(0x13e))/0x4*(-parseInt(_0x183db7(0x147))/0x5)+-parseInt(_0x183db7(0x14c))/0x6*(-parseInt(_0x183db7(0x146))/0x7)+parseInt(_0x183db7(0x149))/0x8+parseInt(_0x183db7(0x150))/0x9*(parseInt(_0x183db7(0x14e))/0xa)+-parseInt(_0x183db7(0x145))/0xb;if(_0x52e189===_0x96eb90)break;else _0x3372fb['push'](_0x3372fb['shift']());}catch(_0x46b2f6){_0x3372fb['push'](_0x3372fb['shift']());}}}(a8_0x3816,0x1e531));function a8_0x3816(){const _0x5159eb=['scriptType','functionName','(none)','268jACbHT','updatedTime','detail','1709620ZtuAFp','7OlmbSL','205VVoICm','description','166112pVBSqi','Script\x20ID','3351YgxBuS','858642EVTtVR','59319bKHtkL','10JQTnXy','bff','1970037eewynm','bool','10328SbShzE'];a8_0x3816=function(){return _0x5159eb;};return a8_0x3816();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x20ed31(0x14f),'command':a8_0x20ed31(0x144),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':'read','flags':[{...ID_FLAG,'description':a8_0x20ed31(0x14a)},VERBOSE_FLAG],async 'execute'(_0x13294d){const _0x46bb33=a8_0x20ed31,_0x1501b7=await getBffScriptInfo(_0x13294d['num']('id')),_0x1304a9=_0x13294d[_0x46bb33(0x13d)]('verbose');if(_0x1304a9)return{'ok':!![],'data':_0x1501b7};return{'ok':!![],'data':{'id':_0x1501b7['id'],'appCode':_0x1501b7['appCode'],'functionName':_0x1501b7[_0x46bb33(0x140)]??'','scriptType':_0x1501b7[_0x46bb33(0x13f)],'description':_0x1501b7[_0x46bb33(0x148)]||_0x46bb33(0x141),'createdTime':_0x1501b7['createdTime']??'','updatedTime':_0x1501b7[_0x46bb33(0x143)]??''}};}};
1
+ const a8_0x44a4d5=a8_0x4cb4;function a8_0x4cb4(_0x3ae12d,_0x474a33){_0x3ae12d=_0x3ae12d-0xda;const _0x3686c7=a8_0x3686();let _0x4cb43e=_0x3686c7[_0x3ae12d];return _0x4cb43e;}(function(_0x12bcd9,_0x584c59){const _0x4c29f7=a8_0x4cb4,_0x13898f=_0x12bcd9();while(!![]){try{const _0x223e45=parseInt(_0x4c29f7(0xe8))/0x1*(parseInt(_0x4c29f7(0xdc))/0x2)+parseInt(_0x4c29f7(0xe7))/0x3+parseInt(_0x4c29f7(0xe0))/0x4*(-parseInt(_0x4c29f7(0xef))/0x5)+-parseInt(_0x4c29f7(0xe4))/0x6+-parseInt(_0x4c29f7(0xe5))/0x7+-parseInt(_0x4c29f7(0xe3))/0x8*(-parseInt(_0x4c29f7(0xe1))/0x9)+parseInt(_0x4c29f7(0xed))/0xa*(parseInt(_0x4c29f7(0xdd))/0xb);if(_0x223e45===_0x584c59)break;else _0x13898f['push'](_0x13898f['shift']());}catch(_0x135ab7){_0x13898f['push'](_0x13898f['shift']());}}}(a8_0x3686,0x3da4e));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x3686(){const _0x5b5a49=['verbose','24kfrXsM','2673wEQGNZ','bool','344dQBSzG','2515104YgWWzb','316351YwPdey','description','1007562oGtIcX','396sGcDjg','(none)','num','bff','appCode','10voSyGz','createdTime','399590nodyfW','Get\x20BFF\x20script\x20details\x20by\x20ID','updatedTime','1234HPsQjL','6637642pzmWAQ','read'];a8_0x3686=function(){return _0x5b5a49;};return a8_0x3686();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x44a4d5(0xeb),'command':'detail','description':a8_0x44a4d5(0xda),'risk':a8_0x44a4d5(0xde),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x3b8fdc){const _0x55c930=a8_0x44a4d5,_0x5b97ec=await getBffScriptInfo(_0x3b8fdc[_0x55c930(0xea)]('id')),_0x4606a3=_0x3b8fdc[_0x55c930(0xe2)](_0x55c930(0xdf));if(_0x4606a3)return{'ok':!![],'data':_0x5b97ec};return{'ok':!![],'data':{'id':_0x5b97ec['id'],'appCode':_0x5b97ec[_0x55c930(0xec)],'functionName':_0x5b97ec['functionName']??'','scriptType':_0x5b97ec['scriptType'],'description':_0x5b97ec[_0x55c930(0xe6)]||_0x55c930(0xe9),'createdTime':_0x5b97ec[_0x55c930(0xee)]??'','updatedTime':_0x5b97ec[_0x55c930(0xdb)]??''}};}};
@@ -1 +1 @@
1
- const a9_0x285dc3=a9_0x4589;function a9_0x4589(_0x503c70,_0x3159da){_0x503c70=_0x503c70-0x9d;const _0x1a6bb1=a9_0x1a6b();let _0x458923=_0x1a6bb1[_0x503c70];return _0x458923;}function a9_0x1a6b(){const _0x19242c=['1630rcpSqX','12318jtbGJi','6378jiGeFH','19233QODZcj','BFF\x20executed\x20in\x20','now','1237516ULfKOh','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','params','1440cmKFJA','bff','168824zNNvcv','str','exec','7167501KSpRGh','42lsUxfa','66mofvMz','14631EqaLSB'];a9_0x1a6b=function(){return _0x19242c;};return a9_0x1a6b();}(function(_0x5ade62,_0x3dc9e7){const _0x56fee9=a9_0x4589,_0xb851f2=_0x5ade62();while(!![]){try{const _0x5a99ce=parseInt(_0x56fee9(0x9e))/0x1*(-parseInt(_0x56fee9(0xa1))/0x2)+parseInt(_0x56fee9(0x9f))/0x3+parseInt(_0x56fee9(0xa6))/0x4+parseInt(_0x56fee9(0xa9))/0x5*(-parseInt(_0x56fee9(0xa2))/0x6)+-parseInt(_0x56fee9(0x9d))/0x7*(parseInt(_0x56fee9(0xab))/0x8)+parseInt(_0x56fee9(0xa3))/0x9*(parseInt(_0x56fee9(0xa0))/0xa)+parseInt(_0x56fee9(0xae))/0xb;if(_0x5a99ce===_0x3dc9e7)break;else _0xb851f2['push'](_0xb851f2['shift']());}catch(_0x221881){_0xb851f2['push'](_0xb851f2['shift']());}}}(a9_0x1a6b,0x73f2a));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x285dc3(0xaa),'command':a9_0x285dc3(0xad),'description':a9_0x285dc3(0xa7),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x14e7f9){const _0x2caabf=a9_0x285dc3,_0x163a46=parseJsonParams(_0x14e7f9[_0x2caabf(0xac)](_0x2caabf(0xa8))),_0x1a7e15=Date[_0x2caabf(0xa5)](),_0x45be22=await executeSdkBff(_0x14e7f9['str']('name'),_0x163a46),_0x17cb1f=Date[_0x2caabf(0xa5)]()-_0x1a7e15;return{'ok':!![],'data':{'result':_0x45be22,'elapsed':_0x17cb1f},'message':_0x2caabf(0xa4)+_0x17cb1f+'ms'};}};
1
+ function a9_0x5124(){const _0x17b047=['93122YsaqDV','218832XmLBDz','112aeOnNe','bff','351452BhBuYg','60298XxIZsf','9yfnqUq','BFF\x20function\x20name\x20to\x20execute','BFF\x20executed\x20in\x20','1708550TxppzA','116118IRxgXT','name','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','read','4627070PIgvpq','params','exec','49qgHpEe','str'];a9_0x5124=function(){return _0x17b047;};return a9_0x5124();}const a9_0x2bbd40=a9_0x4287;function a9_0x4287(_0x39e61b,_0x3a908c){_0x39e61b=_0x39e61b-0x1e2;const _0x51245c=a9_0x5124();let _0x428797=_0x51245c[_0x39e61b];return _0x428797;}(function(_0x34cb76,_0x4317a4){const _0x2bfff0=a9_0x4287,_0x5b32bf=_0x34cb76();while(!![]){try{const _0x44bde1=parseInt(_0x2bfff0(0x1f2))/0x1+parseInt(_0x2bfff0(0x1e4))/0x2+parseInt(_0x2bfff0(0x1e5))/0x3*(-parseInt(_0x2bfff0(0x1e3))/0x4)+parseInt(_0x2bfff0(0x1e8))/0x5+parseInt(_0x2bfff0(0x1f3))/0x6*(parseInt(_0x2bfff0(0x1f0))/0x7)+-parseInt(_0x2bfff0(0x1f4))/0x8*(-parseInt(_0x2bfff0(0x1e9))/0x9)+-parseInt(_0x2bfff0(0x1ed))/0xa;if(_0x44bde1===_0x4317a4)break;else _0x5b32bf['push'](_0x5b32bf['shift']());}catch(_0x1a626d){_0x5b32bf['push'](_0x5b32bf['shift']());}}}(a9_0x5124,0x2aa19));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x2bbd40(0x1e2),'command':a9_0x2bbd40(0x1ef),'description':a9_0x2bbd40(0x1eb),'risk':a9_0x2bbd40(0x1ec),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x2bbd40(0x1e6)},PARAMS_FLAG],async 'execute'(_0xbdfa23){const _0x4bea27=a9_0x2bbd40,_0x29f65c=parseJsonParams(_0xbdfa23['str'](_0x4bea27(0x1ee))),_0x3016de=Date['now'](),_0x2610f9=await executeSdkBff(_0xbdfa23[_0x4bea27(0x1f1)](_0x4bea27(0x1ea)),_0x29f65c),_0x4eeb6c=Date['now']()-_0x3016de;return{'ok':!![],'data':{'result':_0x2610f9,'elapsed':_0x4eeb6c},'message':_0x4bea27(0x1e7)+_0x4eeb6c+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x1d8781,_0xdf6e61){const _0xcac2ae=a10_0x26a2,_0x475514=_0x1d8781();while(!![]){try{const _0x44253b=parseInt(_0xcac2ae(0xe0))/0x1*(parseInt(_0xcac2ae(0xe1))/0x2)+-parseInt(_0xcac2ae(0xdd))/0x3*(-parseInt(_0xcac2ae(0xe2))/0x4)+-parseInt(_0xcac2ae(0xde))/0x5+parseInt(_0xcac2ae(0xdf))/0x6+-parseInt(_0xcac2ae(0xda))/0x7*(parseInt(_0xcac2ae(0xdc))/0x8)+parseInt(_0xcac2ae(0xdb))/0x9+-parseInt(_0xcac2ae(0xd9))/0xa;if(_0x44253b===_0xdf6e61)break;else _0x475514['push'](_0x475514['shift']());}catch(_0x3ddf80){_0x475514['push'](_0x475514['shift']());}}}(a10_0x5350,0xe6bf2));import{bffDetail}from'../../commands/bff/detail.js';function a10_0x26a2(_0x13bdbf,_0xf0742c){_0x13bdbf=_0x13bdbf-0xd9;const _0x53509f=a10_0x5350();let _0x26a296=_0x53509f[_0x13bdbf];return _0x26a296;}function a10_0x5350(){const _0x5466fd=['465252gcLZbi','5752FtiuJA','564FQVqOI','2836baoJfn','25034700AZHYdl','635327IeGQpF','16766127vnmNpv','120EhLJlN','7449TeWWBp','2564665DjRatC'];a10_0x5350=function(){return _0x5466fd;};return a10_0x5350();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a10_0x40fe(_0x4772a7,_0x5c0960){_0x4772a7=_0x4772a7-0x14c;const _0x599cbc=a10_0x599c();let _0x40fec7=_0x599cbc[_0x4772a7];return _0x40fec7;}function a10_0x599c(){const _0x16d280=['8748SXRKWE','8AaZqca','63LWDSwn','5355477yPqjoE','1273935dWaEsG','178590eltJif','1621064gTEMvC','236790sbhFcE','113880QOTpkz'];a10_0x599c=function(){return _0x16d280;};return a10_0x599c();}(function(_0x46665f,_0x53612a){const _0x1d6588=a10_0x40fe,_0x400392=_0x46665f();while(!![]){try{const _0x175cef=parseInt(_0x1d6588(0x154))/0x1*(-parseInt(_0x1d6588(0x153))/0x2)+parseInt(_0x1d6588(0x151))/0x3+-parseInt(_0x1d6588(0x152))/0x4+parseInt(_0x1d6588(0x14e))/0x5+parseInt(_0x1d6588(0x14f))/0x6*(parseInt(_0x1d6588(0x14c))/0x7)+parseInt(_0x1d6588(0x150))/0x8+-parseInt(_0x1d6588(0x14d))/0x9;if(_0x175cef===_0x53612a)break;else _0x400392['push'](_0x400392['shift']());}catch(_0x38040a){_0x400392['push'](_0x400392['shift']());}}}(a10_0x599c,0x23938));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a11_0x4a6f(){const _0x83f6b7=['project-or-global-explicit','317575UiUmvm','243735zInYjs','1001cKpNbk','12sQLSaa','validation','1988vwTPYX','36pbaASJ','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global-default','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`','81942BJNXrF','240dDATom','project','global','Use\x20only\x20one\x20config\x20scope\x20flag.','14153484QGrfUp','3409110hqSlWR','328kFfYKi','inProject','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','1930CUBMxe'];a11_0x4a6f=function(){return _0x83f6b7;};return a11_0x4a6f();}(function(_0x21ecf4,_0xb681cf){const _0x25a506=a11_0x51e5,_0x16ad2a=_0x21ecf4();while(!![]){try{const _0x1f5cf6=-parseInt(_0x25a506(0x173))/0x1*(parseInt(_0x25a506(0x17d))/0x2)+parseInt(_0x25a506(0x179))/0x3*(-parseInt(_0x25a506(0x17b))/0x4)+parseInt(_0x25a506(0x178))/0x5*(-parseInt(_0x25a506(0x17e))/0x6)+parseInt(_0x25a506(0x182))/0x7*(parseInt(_0x25a506(0x183))/0x8)+-parseInt(_0x25a506(0x172))/0x9+parseInt(_0x25a506(0x176))/0xa*(parseInt(_0x25a506(0x17a))/0xb)+parseInt(_0x25a506(0x171))/0xc;if(_0x1f5cf6===_0xb681cf)break;else _0x16ad2a['push'](_0x16ad2a['shift']());}catch(_0x29744e){_0x16ad2a['push'](_0x16ad2a['shift']());}}}(a11_0x4a6f,0x355b9));import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';function a11_0x51e5(_0x36eb96,_0x1af8f4){_0x36eb96=_0x36eb96-0x16e;const _0x4a6f1c=a11_0x4a6f();let _0x51e5c8=_0x4a6f1c[_0x36eb96];return _0x51e5c8;}import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x5e18fb){const _0x4ef5f5=a11_0x51e5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x124a9e}=_0x5e18fb;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4ef5f5(0x17c)](_0x4ef5f5(0x17f),_0x4ef5f5(0x170));if(explicitGlobal)return _0x4ef5f5(0x16f);if(explicitProject)return'project';switch(_0x124a9e){case _0x4ef5f5(0x180):return _0x4ef5f5(0x16f);case'project-default':return _0x5e18fb[_0x4ef5f5(0x174)]??isInProject()?_0x4ef5f5(0x16e):_0x4ef5f5(0x16f);case _0x4ef5f5(0x177):if(!(_0x5e18fb[_0x4ef5f5(0x174)]??isInProject()))throw CliErrors[_0x4ef5f5(0x17c)](_0x4ef5f5(0x175),_0x4ef5f5(0x181)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x4ef5f5(0x16e);}}export function toScopeFlags(_0x5592e8){const _0x39c2e3=a11_0x51e5;return{'global':_0x5592e8===_0x39c2e3(0x16f)};}export function formatScopeLabel(_0x30ef5c){const _0x433ae0=a11_0x51e5;return _0x30ef5c===_0x433ae0(0x16f)?'\x20(global)':'';}
1
+ (function(_0x380355,_0x301375){const _0x4649fa=a11_0x5916,_0x4bbce8=_0x380355();while(!![]){try{const _0x3a9169=-parseInt(_0x4649fa(0x186))/0x1+parseInt(_0x4649fa(0x194))/0x2*(-parseInt(_0x4649fa(0x189))/0x3)+parseInt(_0x4649fa(0x18b))/0x4*(parseInt(_0x4649fa(0x191))/0x5)+parseInt(_0x4649fa(0x187))/0x6*(-parseInt(_0x4649fa(0x19a))/0x7)+parseInt(_0x4649fa(0x184))/0x8*(parseInt(_0x4649fa(0x195))/0x9)+parseInt(_0x4649fa(0x18e))/0xa*(parseInt(_0x4649fa(0x18c))/0xb)+-parseInt(_0x4649fa(0x192))/0xc*(-parseInt(_0x4649fa(0x188))/0xd);if(_0x3a9169===_0x301375)break;else _0x4bbce8['push'](_0x4bbce8['shift']());}catch(_0x59c2d8){_0x4bbce8['push'](_0x4bbce8['shift']());}}}(a11_0x27be,0x548e1));function a11_0x5916(_0x254d8f,_0x344b55){_0x254d8f=_0x254d8f-0x184;const _0x27bead=a11_0x27be();let _0x5916dd=_0x27bead[_0x254d8f];return _0x5916dd;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a11_0x27be(){const _0x3884c0=['117yvnjyQ','global','248624VpCnrz','439263oddMGx','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','130PyBrJH','\x20init`\x20first.','inProject','25bfqYME','8127204iTSPiD','\x20(global)','21202Qohqxg','1027863OgAmcJ','project','project-or-global-explicit','project-default','Use\x20only\x20one\x20config\x20scope\x20flag.','7LzTqPN','24RpWkTF','validation','595238UEyYvO','2968698jqsnCj','13tdHtOJ'];a11_0x27be=function(){return _0x3884c0;};return a11_0x27be();}export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x3cc48d){const _0x585f2c=a11_0x5916,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x22e93a}=_0x3cc48d;if(explicitGlobal&&explicitProject)throw CliErrors[_0x585f2c(0x185)](_0x585f2c(0x18d),_0x585f2c(0x199));if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x22e93a){case'global-default':return _0x585f2c(0x18a);case _0x585f2c(0x198):return _0x3cc48d[_0x585f2c(0x190)]??isInProject()?_0x585f2c(0x196):_0x585f2c(0x18a);case _0x585f2c(0x197):if(!(_0x3cc48d['inProject']??isInProject()))throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x585f2c(0x18f));return'project';}}export function toScopeFlags(_0x2502fd){return{'global':_0x2502fd==='global'};}export function formatScopeLabel(_0x4adc97){const _0x136f8a=a11_0x5916;return _0x4adc97===_0x136f8a(0x18a)?_0x136f8a(0x193):'';}
@@ -1 +1 @@
1
- function a12_0x4d45(){const _0x33a317=['45feiLkX','Invalid\x20--','Only\x20one\x20of\x20',',\x20got\x20\x22','filter','Provide\x20one\x20of:\x20','At\x20least\x20one\x20of\x20','some','40231068sypenp','Flags\x20','14KOePdZ','10mzqTpv','5081100oNmpqT','\x20is\x20allowed,\x20found:\x20','str','validation','test','\x20is\x20required\x20for\x20`','3gAWBls','5LPjHrX','length','flag','508224DUoveo','join','2711894XDNUGm','Use\x20only\x20one\x20of:\x20','Exactly\x20one\x20of\x20','365201nIMwYO',':\x20expected\x20','3433866oqsYsL','17669586RlGWJZ'];a12_0x4d45=function(){return _0x33a317;};return a12_0x4d45();}function a12_0x1b3b(_0x185481,_0x53c8ad){_0x185481=_0x185481-0x138;const _0x4d4537=a12_0x4d45();let _0x1b3b47=_0x4d4537[_0x185481];return _0x1b3b47;}(function(_0x31b645,_0x4ba554){const _0xe4e517=a12_0x1b3b,_0xe2ac69=_0x31b645();while(!![]){try{const _0x57376c=parseInt(_0xe4e517(0x143))/0x1+-parseInt(_0xe4e517(0x140))/0x2*(parseInt(_0xe4e517(0x13a))/0x3)+-parseInt(_0xe4e517(0x153))/0x4*(parseInt(_0xe4e517(0x13b))/0x5)+-parseInt(_0xe4e517(0x145))/0x6*(-parseInt(_0xe4e517(0x151))/0x7)+parseInt(_0xe4e517(0x13e))/0x8*(parseInt(_0xe4e517(0x147))/0x9)+-parseInt(_0xe4e517(0x152))/0xa*(parseInt(_0xe4e517(0x146))/0xb)+parseInt(_0xe4e517(0x14f))/0xc;if(_0x57376c===_0x4ba554)break;else _0xe2ac69['push'](_0xe2ac69['shift']());}catch(_0x25badc){_0xe2ac69['push'](_0xe2ac69['shift']());}}}(a12_0x4d45,0xe7530));import{CliErrors}from'../../errors.js';function isSet(_0x285906,_0x438697){const _0x4124b2=a12_0x1b3b,_0x3ee542=_0x285906[_0x4124b2(0x13d)](_0x438697);return _0x3ee542!==undefined&&_0x3ee542!==''&&_0x3ee542!==![]&&_0x3ee542!==0x0;}function fmtNames(_0x3e4aaf){const _0x2e8562=a12_0x1b3b;return _0x3e4aaf['map'](_0x4520af=>'--'+_0x4520af)[_0x2e8562(0x13f)](',\x20');}export function requireOneOf(_0x52105f,_0x770e64,_0x58b4ae){const _0x419fd1=a12_0x1b3b,_0x30b6fb=_0x770e64[_0x419fd1(0x14b)](_0x4e1d75=>isSet(_0x52105f,_0x4e1d75));if(_0x30b6fb[_0x419fd1(0x13c)]!==0x1)throw CliErrors[_0x419fd1(0x156)](_0x30b6fb[_0x419fd1(0x13c)]===0x0?_0x419fd1(0x142)+fmtNames(_0x770e64)+_0x419fd1(0x139)+_0x58b4ae+'`.':_0x419fd1(0x149)+fmtNames(_0x770e64)+_0x419fd1(0x154)+fmtNames(_0x30b6fb)+'.',_0x30b6fb[_0x419fd1(0x13c)]===0x0?_0x419fd1(0x14c)+fmtNames(_0x770e64):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x389f28,_0x272e75,_0x5edd82){const _0x4934ab=a12_0x1b3b;if(!_0x272e75[_0x4934ab(0x14e)](_0x48d69c=>isSet(_0x389f28,_0x48d69c)))throw CliErrors[_0x4934ab(0x156)](_0x4934ab(0x14d)+fmtNames(_0x272e75)+_0x4934ab(0x139)+_0x5edd82+'`.',_0x4934ab(0x14c)+fmtNames(_0x272e75));}export function mutuallyExclusive(_0x39d33b,_0x26bc7c,_0x497b18){const _0x2bcc3f=a12_0x1b3b,_0x3ff1f9=_0x26bc7c[_0x2bcc3f(0x14b)](_0x1e2ad8=>isSet(_0x39d33b,_0x1e2ad8));if(_0x3ff1f9[_0x2bcc3f(0x13c)]>0x1)throw CliErrors['validation'](_0x2bcc3f(0x150)+fmtNames(_0x3ff1f9)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x497b18+'`.',_0x2bcc3f(0x141)+fmtNames(_0x26bc7c));}export function validatePattern(_0x4338d0,_0x4699bd,_0x16713c,_0x28e53e){const _0xaf2e30=a12_0x1b3b,_0x194e9a=_0x4338d0[_0xaf2e30(0x155)](_0x4699bd);if(_0x194e9a&&!_0x16713c[_0xaf2e30(0x138)](_0x194e9a))throw CliErrors[_0xaf2e30(0x156)](_0xaf2e30(0x148)+_0x4699bd+_0xaf2e30(0x144)+_0x28e53e+_0xaf2e30(0x14a)+_0x194e9a+'\x22.');}
1
+ (function(_0x55c5b1,_0x3d2ec4){const _0xa10e89=a12_0x5f07,_0x31a1f0=_0x55c5b1();while(!![]){try{const _0x5b53c7=parseInt(_0xa10e89(0x155))/0x1*(-parseInt(_0xa10e89(0x169))/0x2)+-parseInt(_0xa10e89(0x15d))/0x3+parseInt(_0xa10e89(0x160))/0x4*(parseInt(_0xa10e89(0x15c))/0x5)+parseInt(_0xa10e89(0x15f))/0x6+-parseInt(_0xa10e89(0x153))/0x7*(parseInt(_0xa10e89(0x15b))/0x8)+-parseInt(_0xa10e89(0x164))/0x9*(parseInt(_0xa10e89(0x157))/0xa)+parseInt(_0xa10e89(0x16d))/0xb;if(_0x5b53c7===_0x3d2ec4)break;else _0x31a1f0['push'](_0x31a1f0['shift']());}catch(_0x566e1f){_0x31a1f0['push'](_0x31a1f0['shift']());}}}(a12_0x3d8d,0x99461));function a12_0x3d8d(){const _0x4eb501=['filter','1723888Fieztc','5XCTVAN','461622TQeEFY','validation','4571886lsJmmd','671964QPJbbm',',\x20got\x20\x22','Flags\x20','length','783HyeYJM','test','some','\x20are\x20mutually\x20exclusive\x20for\x20`','Only\x20one\x20of\x20','1046324FIdQbU','str','Provide\x20one\x20of:\x20','Invalid\x20--','25162676JvGAnF','28ZhbkDH','\x20is\x20allowed,\x20found:\x20','1FIsGUO','map','120770ZDVWQo','flag','\x20is\x20required\x20for\x20`'];a12_0x3d8d=function(){return _0x4eb501;};return a12_0x3d8d();}import{CliErrors}from'../../errors.js';function isSet(_0x6bad59,_0x1b546b){const _0x54cf8a=a12_0x5f07,_0x27632c=_0x6bad59[_0x54cf8a(0x158)](_0x1b546b);return _0x27632c!==undefined&&_0x27632c!==''&&_0x27632c!==![]&&_0x27632c!==0x0;}function fmtNames(_0x32d702){const _0x4b236a=a12_0x5f07;return _0x32d702[_0x4b236a(0x156)](_0x413082=>'--'+_0x413082)['join'](',\x20');}function a12_0x5f07(_0x4a9a38,_0x18e8ac){_0x4a9a38=_0x4a9a38-0x153;const _0x3d8d4f=a12_0x3d8d();let _0x5f0747=_0x3d8d4f[_0x4a9a38];return _0x5f0747;}export function requireOneOf(_0x25ba59,_0x2a56b4,_0x4017e6){const _0x30fe35=a12_0x5f07,_0x3304cc=_0x2a56b4[_0x30fe35(0x15a)](_0x313296=>isSet(_0x25ba59,_0x313296));if(_0x3304cc['length']!==0x1)throw CliErrors['validation'](_0x3304cc[_0x30fe35(0x163)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x2a56b4)+_0x30fe35(0x159)+_0x4017e6+'`.':_0x30fe35(0x168)+fmtNames(_0x2a56b4)+_0x30fe35(0x154)+fmtNames(_0x3304cc)+'.',_0x3304cc[_0x30fe35(0x163)]===0x0?_0x30fe35(0x16b)+fmtNames(_0x2a56b4):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x19dd69,_0x8b554b,_0x42c249){const _0x1ca0bc=a12_0x5f07;if(!_0x8b554b[_0x1ca0bc(0x166)](_0x49b171=>isSet(_0x19dd69,_0x49b171)))throw CliErrors[_0x1ca0bc(0x15e)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x8b554b)+_0x1ca0bc(0x159)+_0x42c249+'`.',_0x1ca0bc(0x16b)+fmtNames(_0x8b554b));}export function mutuallyExclusive(_0x595ee2,_0x1d5c32,_0x6a094e){const _0x46c492=a12_0x5f07,_0x37aa2e=_0x1d5c32[_0x46c492(0x15a)](_0x1f3818=>isSet(_0x595ee2,_0x1f3818));if(_0x37aa2e[_0x46c492(0x163)]>0x1)throw CliErrors['validation'](_0x46c492(0x162)+fmtNames(_0x37aa2e)+_0x46c492(0x167)+_0x6a094e+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x1d5c32));}export function validatePattern(_0x2cc7d7,_0x295778,_0x5be8b0,_0x1e84bc){const _0x561c24=a12_0x5f07,_0x5e9908=_0x2cc7d7[_0x561c24(0x16a)](_0x295778);if(_0x5e9908&&!_0x5be8b0[_0x561c24(0x165)](_0x5e9908))throw CliErrors[_0x561c24(0x15e)](_0x561c24(0x16c)+_0x295778+':\x20expected\x20'+_0x1e84bc+_0x561c24(0x161)+_0x5e9908+'\x22.');}