@lovrabet/lovrabet-cli 2.0.13-beta.2 → 2.0.13-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -0
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -3
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a49_0x54f7(){const _0x1b6db6=['154UJhaVC','accessKey','delete','12114870jDuvjz','2226264vWIqSD','sql','function','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','getOne','36389041aeAosR','execute','3ZhPrwA','isArray','batchCreate','11wQhxRq','update','6570868pgGfVc','12gbAMTU','dataset_','bff','36CMrarz','41245oDouGK','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','\x22.\x20','5517386iwAdng','804NGOxwf','20681FGEjWN','env','models','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.'];a49_0x54f7=function(){return _0x1b6db6;};return a49_0x54f7();}(function(_0x13cfb8,_0x1da6a0){const _0x42fe12=a49_0x1ff4,_0x89eea9=_0x13cfb8();while(!![]){try{const _0x1c5f5f=parseInt(_0x42fe12(0x1c6))/0x1*(parseInt(_0x42fe12(0x1ca))/0x2)+-parseInt(_0x42fe12(0x1d5))/0x3*(-parseInt(_0x42fe12(0x1da))/0x4)+parseInt(_0x42fe12(0x1c1))/0x5*(-parseInt(_0x42fe12(0x1c5))/0x6)+-parseInt(_0x42fe12(0x1c4))/0x7+-parseInt(_0x42fe12(0x1ce))/0x8*(-parseInt(_0x42fe12(0x1c0))/0x9)+-parseInt(_0x42fe12(0x1cd))/0xa*(-parseInt(_0x42fe12(0x1d8))/0xb)+-parseInt(_0x42fe12(0x1db))/0xc*(parseInt(_0x42fe12(0x1d3))/0xd);if(_0x1c5f5f===_0x1da6a0)break;else _0x89eea9['push'](_0x89eea9['shift']());}catch(_0x334c9b){_0x89eea9['push'](_0x89eea9['shift']());}}}(a49_0x54f7,0xd3aec));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x450718){const _0x1884a7=a49_0x1ff4;_client=createClient({'appCode':_0x450718['appCode'],'env':_0x450718[_0x1884a7(0x1c7)],'authMode':_0x450718['authMode'],..._0x450718['accessKey']?{'accessKey':_0x450718[_0x1884a7(0x1cb)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function a49_0x1ff4(_0x455612,_0x12f939){_0x455612=_0x455612-0x1be;const _0x54f7b9=a49_0x54f7();let _0x1ff4b8=_0x54f7b9[_0x455612];return _0x1ff4b8;}export async function executeData(_0x8e1a7a,_0x4617b3,_0x4cccc0){const _0x370e5f=a49_0x1ff4,_0x3ee683=ensureClient(),_0xa42836=_0x370e5f(0x1be)+_0x8e1a7a,_0x479f36=_0x3ee683[_0x370e5f(0x1c8)][_0xa42836];if(!_0x479f36||typeof _0x479f36[_0x4617b3]!==_0x370e5f(0x1d0))throw new Error(_0x370e5f(0x1c2)+_0x4617b3+_0x370e5f(0x1c3)+_0x370e5f(0x1c9));if(_0x4617b3===_0x370e5f(0x1d7))return _0x479f36[_0x370e5f(0x1d7)](parseBatchCreateItemsFromParams(_0x4cccc0));const _0x2c0ea4=_0x4cccc0!==undefined&&_0x4cccc0!==null&&!Array[_0x370e5f(0x1d6)](_0x4cccc0)?_0x4cccc0:{};switch(_0x4617b3){case _0x370e5f(0x1d2):{const _0x22f9e0=_0x2c0ea4['id'];if(_0x22f9e0===undefined||_0x22f9e0===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x479f36['getOne'](_0x22f9e0);}case _0x370e5f(0x1d9):{const {id:_0x405b45,..._0x4adc7a}=_0x2c0ea4;if(_0x405b45===undefined||_0x405b45===null)throw new Error(_0x370e5f(0x1d1));return _0x479f36[_0x370e5f(0x1d9)](_0x405b45,_0x4adc7a);}case'delete':{const _0x11d696=_0x2c0ea4['id'];if(_0x11d696===undefined||_0x11d696===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x479f36[_0x370e5f(0x1cc)](_0x11d696);}default:return _0x479f36[_0x4617b3](_0x2c0ea4);}}export async function executeSdkSql(_0x4d2ea6,_0x24b4be){const _0xbd0fa2=a49_0x1ff4,_0x27c8cd=ensureClient();return _0x27c8cd[_0xbd0fa2(0x1cf)][_0xbd0fa2(0x1d4)]({'sqlCode':_0x4d2ea6,'params':_0x24b4be});}export async function executeSdkBff(_0x593260,_0x30d98c){const _0x4f4576=a49_0x1ff4,_0x3b531d=ensureClient();return _0x3b531d[_0x4f4576(0x1bf)][_0x4f4576(0x1d4)]({'scriptName':_0x593260,'params':_0x30d98c});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x33ccce=a50_0x2a6d;(function(_0x207a65,_0x45037a){const _0x51380f=a50_0x2a6d,_0x5c0e0e=_0x207a65();while(!![]){try{const _0x24ab49=parseInt(_0x51380f(0x148))/0x1+-parseInt(_0x51380f(0x146))/0x2+parseInt(_0x51380f(0x145))/0x3*(parseInt(_0x51380f(0x149))/0x4)+-parseInt(_0x51380f(0x14b))/0x5+-parseInt(_0x51380f(0x151))/0x6*(-parseInt(_0x51380f(0x152))/0x7)+-parseInt(_0x51380f(0x147))/0x8+parseInt(_0x51380f(0x14d))/0x9;if(_0x24ab49===_0x45037a)break;else _0x5c0e0e['push'](_0x5c0e0e['shift']());}catch(_0x50d1c8){_0x5c0e0e['push'](_0x5c0e0e['shift']());}}}(a50_0x5329,0x92e72));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a50_0x2a6d(_0x3ccbe5,_0x891a03){_0x3ccbe5=_0x3ccbe5-0x145;const _0x5329f3=a50_0x5329();let _0x2a6d38=_0x5329f3[_0x3ccbe5];return _0x2a6d38;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a50_0x33ccce(0x14e)+PRODUCT_CONFIG[a50_0x33ccce(0x14c)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a50_0x33ccce(0x150),'configMissingHint':a50_0x33ccce(0x14f)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a50_0x33ccce(0x14c)]+a50_0x33ccce(0x14a)});function a50_0x5329(){const _0x5eb14b=['\x20auth\x20login`.','48jKmwnN','382466osFuEB','676254TEcXMy','1908822yjcCPG','1275208yhhwBL','982877FklVAh','4NtTXmJ','\x20file.','2173780CFurHT','newConfigFileName','4543947IjYNTF','Configure\x20accessKey\x20in\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20'];a50_0x5329=function(){return _0x5eb14b;};return a50_0x5329();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29b8fd,_0x5643d4){var _0x1a539a=a51_0x17ab,_0x10f4e0=_0x29b8fd();while(!![]){try{var _0x287195=-parseInt(_0x1a539a(0xcf))/0x1+parseInt(_0x1a539a(0xca))/0x2*(-parseInt(_0x1a539a(0xcd))/0x3)+-parseInt(_0x1a539a(0xc8))/0x4*(parseInt(_0x1a539a(0xc9))/0x5)+parseInt(_0x1a539a(0xd0))/0x6+parseInt(_0x1a539a(0xce))/0x7+-parseInt(_0x1a539a(0xcc))/0x8+-parseInt(_0x1a539a(0xd1))/0x9*(-parseInt(_0x1a539a(0xcb))/0xa);if(_0x287195===_0x5643d4)break;else _0x10f4e0['push'](_0x10f4e0['shift']());}catch(_0x2b7cb3){_0x10f4e0['push'](_0x10f4e0['shift']());}}}(a51_0x5e5e,0xb0dfa));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a51_0x22680f}from'@lovrabet/cli-framework';function a51_0x5e5e(){var _0x282d41=['4371456HFYTzb','15266349QKlYvH','16YSRyBZ','62240xBenDw','3500hXLMhN','10vAfCEK','7137200TDfDIG','1821ErqtZs','9853865dqzdzF','1103866whoahp'];a51_0x5e5e=function(){return _0x282d41;};return a51_0x5e5e();}function a51_0x17ab(_0x56b124,_0x41f0b9){_0x56b124=_0x56b124-0xc8;var _0x5e5e72=a51_0x5e5e();var _0x17ab36=_0x5e5e72[_0x56b124];return _0x17ab36;}export function buildAllFlags(_0x35773e){return a51_0x22680f(_0x35773e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x548f17,_0x5051d5){const _0x26845a=a52_0x2ff1,_0x1bdf9c=_0x548f17();while(!![]){try{const _0x5d873f=-parseInt(_0x26845a(0x76))/0x1+parseInt(_0x26845a(0x7b))/0x2*(-parseInt(_0x26845a(0x75))/0x3)+parseInt(_0x26845a(0x78))/0x4*(-parseInt(_0x26845a(0x74))/0x5)+-parseInt(_0x26845a(0x70))/0x6+-parseInt(_0x26845a(0x7c))/0x7*(parseInt(_0x26845a(0x73))/0x8)+parseInt(_0x26845a(0x79))/0x9*(-parseInt(_0x26845a(0x7a))/0xa)+-parseInt(_0x26845a(0x71))/0xb*(-parseInt(_0x26845a(0x7d))/0xc);if(_0x5d873f===_0x5051d5)break;else _0x1bdf9c['push'](_0x1bdf9c['shift']());}catch(_0x4748c3){_0x1bdf9c['push'](_0x1bdf9c['shift']());}}}(a52_0x467d,0x293ba));function a52_0x467d(){const _0x405221=['3oSjuLQ','319521DyQYac','description','72KlvxUM','5715lbRoVe','3650bdDszi','260410BoQIEl','14ZaXoUI','372YcMBgi','144216MZjyEP','472175uxsDOW','body','950408ZVMMsj','60735VPzahM'];a52_0x467d=function(){return _0x405221;};return a52_0x467d();}function a52_0x2ff1(_0x4bb612,_0x33892f){_0x4bb612=_0x4bb612-0x70;const _0x467d00=a52_0x467d();let _0x2ff12f=_0x467d00[_0x4bb612];return _0x2ff12f;}export function dryRun(_0xebbd56,_0x3618d4){const _0x557a08={'method':_0xebbd56,'url':_0x3618d4},_0x202e64={'body'(_0x27f491){const _0x2de5a1=a52_0x2ff1;return _0x557a08[_0x2de5a1(0x72)]=_0x27f491,_0x202e64;},'description'(_0xa41ef2){const _0x188bcd=a52_0x2ff1;return _0x557a08[_0x188bcd(0x77)]=_0xa41ef2,_0x202e64;},'build'(){return{..._0x557a08};}};return _0x202e64;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a53_0x44d3(){const _0x1fa1a5=['validateFlags','689157VlwLzQ','928GuznXg','16688hnBVjB','869MeGdXs','28791keQtzC','5vJdBuQ','48ofPwrq','6YAXLDF','17168508AHzeEd','18920GpUqoy','2886942rbWslr','674964oIwmDm'];a53_0x44d3=function(){return _0x1fa1a5;};return a53_0x44d3();}const a53_0x421279=a53_0x530d;(function(_0x467a89,_0x1ff90e){const _0x344194=a53_0x530d,_0xd8fbed=_0x467a89();while(!![]){try{const _0x552d8d=parseInt(_0x344194(0x167))/0x1*(-parseInt(_0x344194(0x16b))/0x2)+parseInt(_0x344194(0x16c))/0x3*(-parseInt(_0x344194(0x170))/0x4)+-parseInt(_0x344194(0x16a))/0x5*(parseInt(_0x344194(0x16f))/0x6)+-parseInt(_0x344194(0x172))/0x7+-parseInt(_0x344194(0x166))/0x8*(-parseInt(_0x344194(0x169))/0x9)+-parseInt(_0x344194(0x16e))/0xa*(parseInt(_0x344194(0x168))/0xb)+parseInt(_0x344194(0x16d))/0xc;if(_0x552d8d===_0x1ff90e)break;else _0xd8fbed['push'](_0xd8fbed['shift']());}catch(_0xad0252){_0xd8fbed['push'](_0xd8fbed['shift']());}}}(a53_0x44d3,0x51b83));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a53_0x530d(_0x180190,_0x4daacc){_0x180190=_0x180190-0x166;const _0x44d392=a53_0x44d3();let _0x530d3e=_0x44d392[_0x180190];return _0x530d3e;}export const validateFlags=helpers[a53_0x421279(0x171)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x484e80=a54_0xeebf;(function(_0x5f4fbe,_0x2efbcc){const _0x2d4431=a54_0xeebf,_0xe2fdbd=_0x5f4fbe();while(!![]){try{const _0x5e8172=parseInt(_0x2d4431(0xfd))/0x1+-parseInt(_0x2d4431(0xfb))/0x2+parseInt(_0x2d4431(0xf3))/0x3+parseInt(_0x2d4431(0xf9))/0x4+parseInt(_0x2d4431(0xfc))/0x5+-parseInt(_0x2d4431(0xfe))/0x6+-parseInt(_0x2d4431(0xf6))/0x7*(-parseInt(_0x2d4431(0xf2))/0x8);if(_0x5e8172===_0x2efbcc)break;else _0xe2fdbd['push'](_0xe2fdbd['shift']());}catch(_0x26ce3e){_0xe2fdbd['push'](_0xe2fdbd['shift']());}}}(a54_0x4949,0x57569));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a54_0x4949(){const _0x3b7d45=['Requires\x20appcode\x20(set\x20via\x20','1962032lKmCyN','1014927EfjfJd','get','\x20or\x20--appcode).','7CyWGxw','newConfigFileName','generateFullHelp','195276PXaIJz','generateServiceHelp','818888GcYwFR','3571765dTbBbQ','41183ETVJTQ','3724422JdnfEv'];a54_0x4949=function(){return _0x3b7d45;};return a54_0x4949();}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2a302a=>serviceGroups[a54_0x484e80(0xf4)](_0x2a302a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a54_0x484e80(0xf1)+PRODUCT_CONFIG[a54_0x484e80(0xf7)]+a54_0x484e80(0xf5)});export function generateCommandHelp(_0x453528){return generators['generateCommandHelp'](_0x453528);}function a54_0xeebf(_0x10d9db,_0xa597e1){_0x10d9db=_0x10d9db-0xf1;const _0x494959=a54_0x4949();let _0xeebfee=_0x494959[_0x10d9db];return _0xeebfee;}export const generateServiceHelp=generators[a54_0x484e80(0xfa)];export const generateFullHelp=generators[a54_0x484e80(0xf8)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3bd25b,_0x1df476){var _0x47ccc1=a55_0x43a8,_0x2a37f7=_0x3bd25b();while(!![]){try{var _0x3bd1ad=-parseInt(_0x47ccc1(0x1e5))/0x1+parseInt(_0x47ccc1(0x1ec))/0x2+-parseInt(_0x47ccc1(0x1ea))/0x3+-parseInt(_0x47ccc1(0x1e4))/0x4*(parseInt(_0x47ccc1(0x1eb))/0x5)+parseInt(_0x47ccc1(0x1e7))/0x6+-parseInt(_0x47ccc1(0x1e8))/0x7*(parseInt(_0x47ccc1(0x1e6))/0x8)+parseInt(_0x47ccc1(0x1e9))/0x9;if(_0x3bd1ad===_0x1df476)break;else _0x2a37f7['push'](_0x2a37f7['shift']());}catch(_0xff7a23){_0x2a37f7['push'](_0x2a37f7['shift']());}}}(a55_0x2205,0x613f3));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a55_0x43a8(_0x41855f,_0x3eed0e){_0x41855f=_0x41855f-0x1e4;var _0x22057c=a55_0x2205();var _0x43a849=_0x22057c[_0x41855f];return _0x43a849;}function a55_0x2205(){var _0x39e71a=['18467019qyPrxT','897735aOQkFl','15QGhcKQ','994422uNPVBY','1061792pKyHdb','762227quXqUg','1675768vCzEjV','755874CHRXMs','14nBmaXJ'];a55_0x2205=function(){return _0x39e71a;};return a55_0x2205();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a56_0x5716(_0x5ce914,_0x4020f2){_0x5ce914=_0x5ce914-0xc8;const _0x15b978=a56_0x15b9();let _0x571605=_0x15b978[_0x5ce914];return _0x571605;}(function(_0x43ff27,_0x41904a){const _0x4aa3ee=a56_0x5716,_0x1c77ee=_0x43ff27();while(!![]){try{const _0x412576=-parseInt(_0x4aa3ee(0xcd))/0x1+parseInt(_0x4aa3ee(0xcc))/0x2+parseInt(_0x4aa3ee(0xd0))/0x3+parseInt(_0x4aa3ee(0xce))/0x4+parseInt(_0x4aa3ee(0xc9))/0x5*(-parseInt(_0x4aa3ee(0xcf))/0x6)+parseInt(_0x4aa3ee(0xcb))/0x7*(parseInt(_0x4aa3ee(0xc8))/0x8)+-parseInt(_0x4aa3ee(0xd1))/0x9*(parseInt(_0x4aa3ee(0xca))/0xa);if(_0x412576===_0x41904a)break;else _0x1c77ee['push'](_0x1c77ee['shift']());}catch(_0x3bff44){_0x1c77ee['push'](_0x1c77ee['shift']());}}}(a56_0x15b9,0x27a57));function a56_0x15b9(){const _0x4deeff=['20835arJZdD','23816EgWTPL','2725ZuUClD','1870eDhICo','763zEBkWZ','392008pONdrX','109664qLbRYf','1063380SHyEKS','3174CiuKZS','620769PSYJNK'];a56_0x15b9=function(){return _0x4deeff;};return a56_0x15b9();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a57_0x5b27(_0xd3a90c,_0xbdfd95){_0xd3a90c=_0xd3a90c-0x1e5;const _0x3558a1=a57_0x3558();let _0x5b2722=_0x3558a1[_0xd3a90c];return _0x5b2722;}function a57_0x3558(){const _0x358073=['slice','2819576lbsJqo','sticky','7TJsKAL','app','indexOf','has','nonInteractive','alias','dryRun','boolean','replace','keys','version','2055096nYWPpd','6050175ZRILOL','string','push','2057492hccAtC','toLowerCase','format','159586ycopys','length','toUpperCase','get','15sVwHpr','number','non-interactive','dry-run','help','original','5762058rbvevW','corrected','env','16990119TTOOWM','set','add','yes','type','name'];a57_0x3558=function(){return _0x358073;};return a57_0x3558();}(function(_0x9ce827,_0x47ec72){const _0x450cfe=a57_0x5b27,_0x237a8d=_0x9ce827();while(!![]){try{const _0x804365=-parseInt(_0x450cfe(0x1e7))/0x1*(parseInt(_0x450cfe(0x20b))/0x2)+parseInt(_0x450cfe(0x204))/0x3+-parseInt(_0x450cfe(0x208))/0x4+parseInt(_0x450cfe(0x205))/0x5+-parseInt(_0x450cfe(0x1ed))/0x6+-parseInt(_0x450cfe(0x1f9))/0x7*(parseInt(_0x450cfe(0x1f7))/0x8)+parseInt(_0x450cfe(0x1f0))/0x9;if(_0x804365===_0x47ec72)break;else _0x237a8d['push'](_0x237a8d['shift']());}catch(_0x54dca4){_0x237a8d['push'](_0x237a8d['shift']());}}}(a57_0x3558,0xb9410));function toKebab(_0xa5f92e){const _0x5270a9=a57_0x5b27;return _0xa5f92e['replace'](/_/g,'-')[_0x5270a9(0x201)](/-([A-Z]+)/g,(_0x300bc6,_0xb93f4)=>'-'+_0xb93f4[_0x5270a9(0x209)]())['replace'](/([a-z0-9])([A-Z])/g,(_0xbf0fd4,_0x48d0da,_0x2004f9)=>_0x48d0da+'-'+_0x2004f9)[_0x5270a9(0x209)]();}function buildKnownFlags(_0x165a92){const _0x245cb8=a57_0x5b27,_0x516b6e=new Set();for(const _0x104d5e of _0x165a92){_0x516b6e[_0x245cb8(0x1f2)](_0x104d5e[_0x245cb8(0x1f5)]),_0x516b6e['add'](toCamelCase(_0x104d5e['name']));}for(const _0x2f5dba of[_0x245cb8(0x1ea),_0x245cb8(0x1ff),_0x245cb8(0x1f3),_0x245cb8(0x20a)]){_0x516b6e['add'](_0x2f5dba);}for(const _0x2c6208 of[_0x245cb8(0x1eb),_0x245cb8(0x1ef),'appcode',_0x245cb8(0x1fa),_0x245cb8(0x1fd),_0x245cb8(0x1e9),'ci','global',_0x245cb8(0x203)]){_0x516b6e[_0x245cb8(0x1f2)](_0x2c6208);}return _0x516b6e;}function buildFlagTypeMap(_0x378486){const _0x502c08=a57_0x5b27,_0x4a941b=new Map();for(const _0x539a57 of _0x378486){_0x4a941b[_0x502c08(0x1f1)](_0x539a57[_0x502c08(0x1f5)],_0x539a57['type']),_0x4a941b['set'](toCamelCase(_0x539a57['name']),_0x539a57[_0x502c08(0x1f4)]);}return _0x4a941b;}function toCamelCase(_0x2f9178){const _0x58e8b6=a57_0x5b27;return _0x2f9178['replace'](/-([a-z])/g,(_0x492e10,_0x3b841b)=>_0x3b841b[_0x58e8b6(0x1e5)]());}function aliasHandler(_0x5b8c8a,_0x3c891a){const _0x2cbb4e=a57_0x5b27,_0x24164a=[];for(const _0x54c16a of Object[_0x2cbb4e(0x202)](_0x5b8c8a)){if(_0x3c891a['has'](_0x54c16a))continue;const _0x32d2a4=toKebab(_0x54c16a);_0x32d2a4!==_0x54c16a&&_0x3c891a['has'](_0x32d2a4)&&_0x24164a['push']({'original':_0x54c16a,'corrected':_0x32d2a4,'handler':_0x2cbb4e(0x1fe)});}return _0x24164a;}function stickyHandler(_0x161198,_0x1f8f2a,_0x431d1c){const _0x442710=a57_0x5b27,_0x467e1c=[];for(const [_0x1b7780,_0x1ab736]of Object['entries'](_0x161198)){if(_0x1ab736!==!![])continue;for(let _0x5de544=_0x1b7780['length']-0x1;_0x5de544>0x0;_0x5de544--){const _0x4b7d9f=_0x1b7780['slice'](0x0,_0x5de544),_0x33b495=_0x1b7780[_0x442710(0x1f6)](_0x5de544),_0x283e25=toKebab(_0x4b7d9f),_0x4221a1=toCamelCase(_0x4b7d9f),_0xe20805=_0x1f8f2a['has'](_0x4b7d9f)?_0x4b7d9f:_0x1f8f2a[_0x442710(0x1fc)](_0x283e25)?_0x283e25:_0x1f8f2a[_0x442710(0x1fc)](_0x4221a1)?_0x4221a1:null;if(!_0xe20805)continue;const _0x2a7f27=_0x431d1c[_0x442710(0x1e6)](_0xe20805)??_0x442710(0x206);let _0x289862;if(_0x2a7f27===_0x442710(0x1e8)){const _0x123db4=Number(_0x33b495);if(isNaN(_0x123db4)||_0x33b495==='')continue;_0x289862=_0x123db4;}else{if(_0x2a7f27===_0x442710(0x200))continue;else{if(_0x33b495==='')continue;_0x289862=_0x33b495;}}_0x467e1c[_0x442710(0x207)]({'original':_0x1b7780,'corrected':_0xe20805+'='+_0x289862,'handler':_0x442710(0x1f8)});break;}}return _0x467e1c;}export function correctFlags(_0x140e15,_0x505fd4){const _0x39c924=a57_0x5b27,_0x108dc3=buildKnownFlags(_0x505fd4),_0x3efc28=buildFlagTypeMap(_0x505fd4),_0x506a23=aliasHandler(_0x140e15,_0x108dc3),_0x268c50=stickyHandler(_0x140e15,_0x108dc3,_0x3efc28),_0x41810e=[..._0x506a23,..._0x268c50];if(_0x41810e[_0x39c924(0x20c)]===0x0)return{'flags':_0x140e15,'corrections':[]};const _0x2cb007={..._0x140e15},_0x313512=new Set();for(const _0x657d26 of _0x506a23){_0x2cb007[_0x657d26[_0x39c924(0x1ee)]]=_0x140e15[_0x657d26['original']],_0x313512['add'](_0x657d26[_0x39c924(0x1ec)]);}for(const _0x172093 of _0x268c50){const _0x3848c9=_0x172093['corrected'][_0x39c924(0x1fb)]('='),_0x5c9c01=_0x172093[_0x39c924(0x1ee)]['slice'](0x0,_0x3848c9),_0x37e852=_0x172093[_0x39c924(0x1ee)][_0x39c924(0x1f6)](_0x3848c9+0x1),_0x323af6=_0x3efc28[_0x39c924(0x1e6)](_0x5c9c01)??_0x39c924(0x206);_0x323af6===_0x39c924(0x1e8)?_0x2cb007[_0x5c9c01]=Number(_0x37e852):_0x2cb007[_0x5c9c01]=_0x37e852,_0x313512['add'](_0x172093['original']);}for(const _0x52b43d of _0x313512){delete _0x2cb007[_0x52b43d];}return{'flags':_0x2cb007,'corrections':_0x41810e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fde81,_0xea17a8){var _0x4c31f1=a58_0x3f0a,_0x106fb3=_0x1fde81();while(!![]){try{var _0x9c2db0=-parseInt(_0x4c31f1(0xe2))/0x1+-parseInt(_0x4c31f1(0xe0))/0x2*(-parseInt(_0x4c31f1(0xdf))/0x3)+-parseInt(_0x4c31f1(0xde))/0x4+parseInt(_0x4c31f1(0xe1))/0x5+parseInt(_0x4c31f1(0xdb))/0x6+parseInt(_0x4c31f1(0xdd))/0x7*(parseInt(_0x4c31f1(0xe3))/0x8)+-parseInt(_0x4c31f1(0xdc))/0x9;if(_0x9c2db0===_0xea17a8)break;else _0x106fb3['push'](_0x106fb3['shift']());}catch(_0x5cdb4d){_0x106fb3['push'](_0x106fb3['shift']());}}}(a58_0x5baa,0xa09de));function a58_0x3f0a(_0x204290,_0x2bb0d8){_0x204290=_0x204290-0xdb;var _0x5baadd=a58_0x5baa();var _0x3f0a0f=_0x5baadd[_0x204290];return _0x3f0a0f;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a58_0x5baa(){var _0x313e8a=['83364pKPKVh','4865408gDkCBU','1283610Wmesct','10407105oVnMMH','7hZuooz','116084FifxVl','642mfOpCU','8108mXFsSw','1184745eNFvWq'];a58_0x5baa=function(){return _0x313e8a;};return a58_0x5baa();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3640c9,_0x17da16){const _0x423a1d=a59_0x27c2,_0x34e40e=_0x3640c9();while(!![]){try{const _0x1b1221=-parseInt(_0x423a1d(0x7f))/0x1+-parseInt(_0x423a1d(0x81))/0x2*(parseInt(_0x423a1d(0x77))/0x3)+parseInt(_0x423a1d(0x79))/0x4+-parseInt(_0x423a1d(0x89))/0x5+parseInt(_0x423a1d(0x7a))/0x6*(parseInt(_0x423a1d(0x8b))/0x7)+-parseInt(_0x423a1d(0x88))/0x8+parseInt(_0x423a1d(0x87))/0x9;if(_0x1b1221===_0x17da16)break;else _0x34e40e['push'](_0x34e40e['shift']());}catch(_0x3b63fd){_0x34e40e['push'](_0x34e40e['shift']());}}}(a59_0x4d05,0xb7aa4));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x5ac588,_0x4867fe,_0x251aed){const _0x3ed6d5=a59_0x27c2,_0xd885b5=buildConfirmationContext(_0x5ac588,_0x4867fe,_0x251aed),_0x31525f=['⚠\x20\x20High-risk\x20operation:\x20'+_0xd885b5['commandLabel']];return _0xd885b5[_0x3ed6d5(0x8a)]&&_0x31525f[_0x3ed6d5(0x7d)](_0x3ed6d5(0x80)+_0xd885b5[_0x3ed6d5(0x8a)]),_0xd885b5[_0x3ed6d5(0x82)]&&_0x31525f[_0x3ed6d5(0x7d)]('\x20\x20\x20Affected:\x20'+_0xd885b5[_0x3ed6d5(0x82)]),_0x31525f['push'](_0x3ed6d5(0x84)),_0x31525f;}function a59_0x4d05(){const _0x28a181=['params=','6709932UDXdDA','11715400IFFgmg','313105EaEFve','description','427zQSTNs','989781DYETty','command','5606780qJZPfF','133530UjxBbB','stringify','join','push','id=','895533DeQlqw','\x20\x20\x20','2qrWJlK','affectedRecords','name','\x20\x20\x20Continue?\x20[y/N]\x20','code'];a59_0x4d05=function(){return _0x28a181;};return a59_0x4d05();}export function reconstructCommandArgv(_0xcdd318,_0x2681e1){const _0x20f9f2=a59_0x27c2,_0x18d425=[CLI_BIN_NAME,_0xcdd318['service'],_0xcdd318[_0x20f9f2(0x78)]];for(const [_0x9558b2,_0x2b2b95]of Object['entries'](_0x2681e1)){if(_0x2b2b95===!![])_0x18d425[_0x20f9f2(0x7d)]('--'+_0x9558b2);else _0x2b2b95!==![]&&_0x2b2b95!==undefined&&_0x2b2b95!==''&&_0x18d425[_0x20f9f2(0x7d)]('--'+_0x9558b2+'\x20'+JSON[_0x20f9f2(0x7b)](_0x2b2b95));}return _0x18d425[_0x20f9f2(0x7d)]('--yes'),_0x18d425['join']('\x20');}function buildConfirmationContext(_0x429c9f,_0x34539b,_0x114fce){const _0x8696be=a59_0x27c2,_0x443fda=extractAffectedRecords(_0x114fce);return{'commandLabel':_0x34539b,'description':_0x429c9f[_0x8696be(0x8a)],'affectedRecords':_0x443fda};}function a59_0x27c2(_0x50056f,_0x529dc8){_0x50056f=_0x50056f-0x77;const _0x4d05b5=a59_0x4d05();let _0x27c202=_0x4d05b5[_0x50056f];return _0x27c202;}function extractAffectedRecords(_0x52d92f){const _0x4ae7c5=a59_0x27c2,_0x2e2066=[];if(_0x52d92f[_0x4ae7c5(0x85)])_0x2e2066[_0x4ae7c5(0x7d)]('code='+_0x52d92f[_0x4ae7c5(0x85)]);if(_0x52d92f['id'])_0x2e2066[_0x4ae7c5(0x7d)](_0x4ae7c5(0x7e)+_0x52d92f['id']);if(_0x52d92f[_0x4ae7c5(0x83)])_0x2e2066[_0x4ae7c5(0x7d)]('name='+_0x52d92f[_0x4ae7c5(0x83)]);if(_0x52d92f['params'])_0x2e2066[_0x4ae7c5(0x7d)](_0x4ae7c5(0x86)+_0x52d92f['params']);return _0x2e2066['length']>0x0?_0x2e2066[_0x4ae7c5(0x7c)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ec12a,_0x5bc232){const _0x42d2a8=a60_0x55a2,_0x411ca8=_0x2ec12a();while(!![]){try{const _0x286f88=-parseInt(_0x42d2a8(0xa6))/0x1+parseInt(_0x42d2a8(0x9f))/0x2+parseInt(_0x42d2a8(0xa3))/0x3*(parseInt(_0x42d2a8(0xa9))/0x4)+parseInt(_0x42d2a8(0xa1))/0x5*(-parseInt(_0x42d2a8(0x9e))/0x6)+-parseInt(_0x42d2a8(0xa5))/0x7*(parseInt(_0x42d2a8(0xab))/0x8)+parseInt(_0x42d2a8(0x9d))/0x9+parseInt(_0x42d2a8(0xaa))/0xa*(parseInt(_0x42d2a8(0xa8))/0xb);if(_0x286f88===_0x5bc232)break;else _0x411ca8['push'](_0x411ca8['shift']());}catch(_0x56aeb1){_0x411ca8['push'](_0x411ca8['shift']());}}}(a60_0x2d69,0x5fa6c));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a60_0x2d69(){const _0x203ef5=['message','98120cSelgJ','validation','4710AzmRBZ','description','3047737SrSFLF','411335rNlPFg','string','891gMXprn','760cydXld','150yacUaz','8ramsGY','trim','3386502lJnBjQ','6LtOwuv','1164690ZGbiCR'];a60_0x2d69=function(){return _0x203ef5;};return a60_0x2d69();}function a60_0x55a2(_0x19a513,_0x36366d){_0x19a513=_0x19a513-0x9c;const _0x2d6970=a60_0x2d69();let _0x55a229=_0x2d6970[_0x19a513];return _0x55a229;}export function mapUserFacingExecuteError(_0x1b56c1){const _0x154691=a60_0x55a2;if(_0x1b56c1 instanceof LovrabetError)return CliErrors[_0x154691(0xa2)](userFacingLovrabetMessage(_0x1b56c1));return _0x1b56c1;}function userFacingLovrabetMessage(_0x538f36){const _0x42e7d1=a60_0x55a2,_0x48b2f5=_0x538f36[_0x42e7d1(0xa4)];if(_0x48b2f5!==undefined&&_0x48b2f5!==null){if(typeof _0x48b2f5===_0x42e7d1(0xa7)&&_0x48b2f5['trim']())return _0x48b2f5[_0x42e7d1(0x9c)]();try{return JSON['stringify'](_0x48b2f5);}catch{}}return _0x538f36[_0x42e7d1(0xa0)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x46b808=a61_0x128c;(function(_0x216537,_0x46cf1f){const _0xd8e0f1=a61_0x128c,_0x30d0a6=_0x216537();while(!![]){try{const _0x19159d=-parseInt(_0xd8e0f1(0x162))/0x1+parseInt(_0xd8e0f1(0x152))/0x2+-parseInt(_0xd8e0f1(0x179))/0x3+parseInt(_0xd8e0f1(0x160))/0x4*(-parseInt(_0xd8e0f1(0x161))/0x5)+-parseInt(_0xd8e0f1(0x17a))/0x6+-parseInt(_0xd8e0f1(0x143))/0x7+-parseInt(_0xd8e0f1(0x15d))/0x8*(-parseInt(_0xd8e0f1(0x171))/0x9);if(_0x19159d===_0x46cf1f)break;else _0x30d0a6['push'](_0x30d0a6['shift']());}catch(_0x104ee5){_0x30d0a6['push'](_0x30d0a6['shift']());}}}(a61_0x3b02,0x88ddc));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x355255){const _0xce815d=a61_0x128c;return void _0x355255,AUTH_MODE[_0xce815d(0x165)];}function a61_0x128c(_0x214ff3,_0x2dc9a3){_0x214ff3=_0x214ff3-0x142;const _0x3b0287=a61_0x3b02();let _0x128c46=_0x3b0287[_0x214ff3];return _0x128c46;}export function createPipelineEnv(_0x42c93b,_0x2bdae5){const _0x27b5d7=a61_0x128c,_0x58c9a9=typeof _0x2bdae5['app']==='string'&&_0x2bdae5['app'][_0x27b5d7(0x154)]();return{'rawFlags':_0x2bdae5,'appCode':_0x42c93b[_0x27b5d7(0x149)]||productEnv(_0x27b5d7(0x142))||(_0x58c9a9?undefined:readAppCodeFromConfig()),'appCodeSource':_0x42c93b[_0x27b5d7(0x169)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x2bdae5),'defaultFormat':_0x42c93b[_0x27b5d7(0x147)],'defaultPageSize':_0x42c93b[_0x27b5d7(0x14b)],'defaultVerbose':_0x42c93b[_0x27b5d7(0x14e)],'riskLevel':_0x42c93b[_0x27b5d7(0x148)],'accessKey':_0x42c93b[_0x27b5d7(0x16e)],'env':_0x42c93b[_0x27b5d7(0x14a)],'mergedCli':{'defaultApp':_0x42c93b[_0x27b5d7(0x151)],'currentApp':_0x42c93b[_0x27b5d7(0x16c)],'appCode':_0x42c93b['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a61_0x46b808(0x146)](_0x38625d=>PIPELINE_FLAG_NAMES[a61_0x46b808(0x173)](_0x38625d[a61_0x46b808(0x153)]))[a61_0x46b808(0x178)](({name:_0x464e9f,type:_0x3f9829,description:_0x309516})=>({'name':_0x464e9f,'type':_0x3f9829,'description':_0x309516})),'formatOutput':formatOutput,'getCommandLabel'(_0x19ed54){const _0x13b8e2=a61_0x46b808;return CLI_BIN_NAME+'\x20'+_0x19ed54[_0x13b8e2(0x145)]+'\x20'+_0x19ed54[_0x13b8e2(0x166)];},'riskPolicy':{'onViolation'(_0x1fcd22){const _0x211b30=a61_0x46b808;console[_0x211b30(0x155)](_0x1fcd22);},'createError'(_0x4f2c9f){const _0x392819=a61_0x46b808;return CliErrors[_0x392819(0x163)](_0x4f2c9f);}},async 'prepare'(_0x5aa51a,_0x1b6466){const _0x564931=a61_0x46b808,_0x3ce539=resolveAuthMode(_0x1b6466);if(_0x5aa51a[_0x564931(0x14f)]!==![]){if(!_0x1b6466['accessKey'])throw CliErrors[_0x564931(0x156)](_0x564931(0x176)+PRODUCT_CONFIG[_0x564931(0x168)]+_0x564931(0x167)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x3404b4}=await import(_0x564931(0x164));_0x3404b4(_0x1b6466[_0x564931(0x16e)]);}let _0x4b6b78='';if(_0x5aa51a[_0x564931(0x170)]!==![]){_0x4b6b78=_0x1b6466[_0x564931(0x149)]??'',_0x4b6b78=await resolveExplicitAppName(_0x5aa51a,_0x1b6466,_0x4b6b78);if(!_0x4b6b78)throw CliErrors[_0x564931(0x16d)](_0x564931(0x15f)+PRODUCT_CONFIG[_0x564931(0x168)]+'.');}if(_0x4b6b78){const {initSdkClient:_0x1d90b8}=await import('../core/sdk-client.js');_0x1d90b8({'appCode':_0x4b6b78,'env':_0x1b6466[_0x564931(0x14a)]??_0x564931(0x14c),'accessKey':_0x1b6466[_0x564931(0x16e)],'authMode':_0x3ce539});}return{'defaults':{'booleans':{'verbose':_0x1b6466[_0x564931(0x177)]},'numbers':{'pagesize':_0x1b6466['defaultPageSize']}},'extras':{'appCode':_0x4b6b78,'cookie':'','apiDomain':_0x1b6466['apiDomain'],'apiDir':'','accessKey':_0x1b6466[_0x564931(0x16e)],'envName':_0x1b6466[_0x564931(0x14a)],'mergedCli':_0x1b6466['mergedCli']}};},async 'confirmHighRisk'({def:_0x52d568,env:_0x5b7b77,flags:_0x2a166f,commandLabel:_0x2b7198}){const _0x50ebf8=a61_0x46b808;if(_0x5b7b77[_0x50ebf8(0x16b)]){const _0x23430e=reconstructCommandArgv(_0x52d568,_0x2a166f);throw CliErrors[_0x50ebf8(0x172)](_0x50ebf8(0x15e)+_0x2b7198+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x50ebf8(0x14d)+_0x23430e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x52d568,_0x2b7198,_0x2a166f),'createCancelledError':_0x35536e=>CliErrors[_0x50ebf8(0x163)](_0x35536e)});},'mapDryRunError'(_0x5e05f3){return mapUserFacingExecuteError(_0x5e05f3);},'mapExecuteError'(_0x1b4bfd){return mapUserFacingExecuteError(_0x1b4bfd);},async 'finalize'(){const _0x5f35a6=a61_0x46b808,{clearActiveAK:_0x1419a8}=await import(_0x5f35a6(0x164));_0x1419a8();}};function a61_0x3b02(){const _0xc9dd40=['rawFlags','Unknown\x20app:\x20','8CZeeYR','High-risk\x20operation\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','273396OuMZHk','20jlNMKP','892389SeJCLw','cancelled','../core/api-client.js','ClientAk','command','\x20or\x20pass\x20','newConfigFileName','appCodeSource','Run\x20`','isNonInteractive','currentApp','configMissing','accessKey','find','requiresAppCode','15641073sgLEgf','validation','has','app','appName','Set\x20accessKey\x20in\x20','defaultVerbose','map','84060UolSon','3129114gwlaEG','APPCODE','1024793TpcqkP','items','service','filter','format','riskLevel','appCode','env','pageSize','production','\x20\x20To\x20proceed:\x20','verbose','requiresAuth','local-alias','defaultApp','1368860qarlHi','name','trim','error','authRequired','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','string','appcode','../commands/app/remote-source.js'];a61_0x3b02=function(){return _0xc9dd40;};return a61_0x3b02();}async function resolveExplicitAppName(_0xcff0ec,_0x34b0a5,_0x5b77bb){const _0x2bb9d4=a61_0x46b808;if(_0xcff0ec[_0x2bb9d4(0x170)]===![])return _0x5b77bb;const _0x3a66e1=typeof _0x34b0a5[_0x2bb9d4(0x15b)][_0x2bb9d4(0x174)]===_0x2bb9d4(0x158)?_0x34b0a5[_0x2bb9d4(0x15b)][_0x2bb9d4(0x174)][_0x2bb9d4(0x154)]():'';if(!_0x3a66e1)return _0x5b77bb;const _0x1659e6=typeof _0x34b0a5[_0x2bb9d4(0x15b)][_0x2bb9d4(0x159)]==='string'&&_0x34b0a5['rawFlags']['appcode'][_0x2bb9d4(0x154)]()||productEnv('APPCODE');if(_0x1659e6||_0x34b0a5[_0x2bb9d4(0x169)]===_0x2bb9d4(0x150))return _0x5b77bb;const {getRemoteAppList:_0x2c9638}=await import(_0x2bb9d4(0x15a)),_0x3d0b9e=await _0x2c9638({'env':_0x34b0a5['env']??_0x2bb9d4(0x14c),'accessKey':_0x34b0a5[_0x2bb9d4(0x16e)]}),_0x32bc1b=_0x3d0b9e[_0x2bb9d4(0x144)][_0x2bb9d4(0x16f)](_0x3803d4=>_0x3803d4[_0x2bb9d4(0x175)]===_0x3a66e1),_0x402267=_0x32bc1b?.[_0x2bb9d4(0x149)]?.['trim']();if(_0x402267)return _0x402267;throw CliErrors['validation'](_0x2bb9d4(0x15c)+_0x3a66e1,_0x2bb9d4(0x16a)+CLI_BIN_NAME+_0x2bb9d4(0x157)+_0x3a66e1+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x2bb9d4(0x168)]+'.');}export async function runCommand(_0x45c7a0,_0x40906d){await runCommandWithAdapter(_0x45c7a0,_0x40906d,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x227c18,_0x5b33f3){const _0x5714e4=a62_0x35f0,_0x4b8a38=_0x227c18();while(!![]){try{const _0x20ec44=parseInt(_0x5714e4(0x6d))/0x1+parseInt(_0x5714e4(0x68))/0x2+-parseInt(_0x5714e4(0x6a))/0x3+-parseInt(_0x5714e4(0x6c))/0x4+parseInt(_0x5714e4(0x6b))/0x5*(-parseInt(_0x5714e4(0x70))/0x6)+parseInt(_0x5714e4(0x6f))/0x7*(-parseInt(_0x5714e4(0x67))/0x8)+-parseInt(_0x5714e4(0x69))/0x9*(-parseInt(_0x5714e4(0x6e))/0xa);if(_0x20ec44===_0x5b33f3)break;else _0x4b8a38['push'](_0x4b8a38['shift']());}catch(_0x2d82cf){_0x4b8a38['push'](_0x4b8a38['shift']());}}}(a62_0x2c6a,0x92e17));import{buildSchemaPayload as a62_0x34efc1}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a62_0x35f0(_0x360bd9,_0x63992a){_0x360bd9=_0x360bd9-0x66;const _0x2c6ac0=a62_0x2c6a();let _0x35f0ea=_0x2c6ac0[_0x360bd9];return _0x35f0ea;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a62_0x2c6a(){const _0x2b6073=['7aEfKsu','30goFLth','../commands/registry.js','8257064JGrnXF','1336938ybCVgS','9zCiyJr','1746876sVDTWl','935015Wmtcas','2988140cZrUaP','328668IFQaWt','29009610OVmksX'];a62_0x2c6a=function(){return _0x2b6073;};return a62_0x2c6a();}export async function buildSchemaPayload(){const _0x595f06=a62_0x35f0,{serviceRegistry:_0x53afc7,findDefinition:_0x4a097d}=await import(_0x595f06(0x66));return a62_0x34efc1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x53afc7,'buildAllFlags':buildAllFlags,'findDefinition':_0x4a097d});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7e5cf7,_0x57c85a){var _0x2e69e8=a63_0x41e0,_0x6924ea=_0x7e5cf7();while(!![]){try{var _0x5028cb=parseInt(_0x2e69e8(0x9d))/0x1*(-parseInt(_0x2e69e8(0x98))/0x2)+parseInt(_0x2e69e8(0x9b))/0x3*(parseInt(_0x2e69e8(0x9c))/0x4)+parseInt(_0x2e69e8(0x9a))/0x5+-parseInt(_0x2e69e8(0x97))/0x6+-parseInt(_0x2e69e8(0x96))/0x7*(-parseInt(_0x2e69e8(0x9f))/0x8)+parseInt(_0x2e69e8(0x95))/0x9*(-parseInt(_0x2e69e8(0x99))/0xa)+parseInt(_0x2e69e8(0x9e))/0xb;if(_0x5028cb===_0x57c85a)break;else _0x6924ea['push'](_0x6924ea['shift']());}catch(_0x703bdb){_0x6924ea['push'](_0x6924ea['shift']());}}}(a63_0x416a,0x8be2b));function a63_0x41e0(_0x4d44fc,_0x34369a){_0x4d44fc=_0x4d44fc-0x95;var _0x416a69=a63_0x416a();var _0x41e016=_0x416a69[_0x4d44fc];return _0x41e016;}function a63_0x416a(){var _0x3a9f7f=['3065120QvIhUh','246459pVuqal','52ubocYG','1001733OSgEto','10271899fNnNkK','1584536yGStuq','45jpufcz','7IQNUsu','5768310GoITMg','2jddKIb','553600MolrJO'];a63_0x416a=function(){return _0x3a9f7f;};return a63_0x416a();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a64_0x50a4(_0x4938e2,_0x2f7090){_0x4938e2=_0x4938e2-0x98;const _0x63cab7=a64_0x63ca();let _0x50a44f=_0x63cab7[_0x4938e2];return _0x50a44f;}(function(_0x44eb26,_0x4c1ddf){const _0x42f978=a64_0x50a4,_0x5195cf=_0x44eb26();while(!![]){try{const _0x1faf01=parseInt(_0x42f978(0xa1))/0x1*(parseInt(_0x42f978(0x9f))/0x2)+parseInt(_0x42f978(0xa2))/0x3+-parseInt(_0x42f978(0x9d))/0x4+-parseInt(_0x42f978(0x9c))/0x5*(-parseInt(_0x42f978(0xa4))/0x6)+parseInt(_0x42f978(0xa0))/0x7*(-parseInt(_0x42f978(0x9a))/0x8)+parseInt(_0x42f978(0x9b))/0x9*(parseInt(_0x42f978(0x99))/0xa)+-parseInt(_0x42f978(0xa3))/0xb*(parseInt(_0x42f978(0x98))/0xc);if(_0x1faf01===_0x4c1ddf)break;else _0x5195cf['push'](_0x5195cf['shift']());}catch(_0x6d55ce){_0x5195cf['push'](_0x5195cf['shift']());}}}(a64_0x63ca,0x6373d));import{jsx as a64_0x2823d7,jsxs as a64_0x28ff17}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a64_0x63ca(){const _0x357358=['2758tPfKIg','604933cIomMB','178rzINlt','2389683HtspAt','22KEEaac','1461162FopmtB','column','green','4556460yFVynW','10DMaYrf','8SKaOVU','3029742mERteE','5rYaoBb','1476008hMibbI','\x20to\x20view\x20available\x20commands.'];a64_0x63ca=function(){return _0x357358;};return a64_0x63ca();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x2c95bb=a64_0x50a4,{exit:_0x32151b}=useApp();return useEffect(()=>{_0x32151b();},[_0x32151b]),a64_0x28ff17(Box,{'flexDirection':_0x2c95bb(0xa5),'marginTop':0x1,'marginBottom':0x1,'children':[a64_0x2823d7(Box,{'children':a64_0x2823d7(Text,{'bold':!![],'color':_0x2c95bb(0xa6),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a64_0x28ff17(Box,{'marginTop':0x1,'children':[a64_0x2823d7(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a64_0x2823d7(Text,{'bold':!![],'color':_0x2c95bb(0xa6),'children':CLI_BIN_NAME+'\x20--help'}),a64_0x2823d7(Text,{'dimColor':!![],'children':_0x2c95bb(0x9e)})]})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x54abcb=a65_0xc070;(function(_0x1bcd9b,_0x3a59c3){const _0x3d6ca4=a65_0xc070,_0xf746f9=_0x1bcd9b();while(!![]){try{const _0x3486f0=-parseInt(_0x3d6ca4(0x148))/0x1*(parseInt(_0x3d6ca4(0x147))/0x2)+parseInt(_0x3d6ca4(0x13e))/0x3*(-parseInt(_0x3d6ca4(0x14c))/0x4)+parseInt(_0x3d6ca4(0x143))/0x5+-parseInt(_0x3d6ca4(0x141))/0x6*(parseInt(_0x3d6ca4(0x146))/0x7)+-parseInt(_0x3d6ca4(0x144))/0x8+parseInt(_0x3d6ca4(0x13c))/0x9+parseInt(_0x3d6ca4(0x14a))/0xa*(parseInt(_0x3d6ca4(0x138))/0xb);if(_0x3486f0===_0x3a59c3)break;else _0xf746f9['push'](_0xf746f9['shift']());}catch(_0xba1fad){_0xf746f9['push'](_0xf746f9['shift']());}}}(a65_0x3b26,0x6c8e3));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a65_0x37f03f}from'../constant/distribution.js';function a65_0x3b26(){const _0x4ec1dc=['inherit','12TLmdTS','pipe','status','572zsKNPP','stdout','unknown','npx','2610342ttaBmD','stderr','349077dkjDXC','skipNpxSkillsEnvSuffix','trim','6NRihVX','join','1127115XMtcHN','1688776gtHcst','toString','2879639excrEC','5142SrGdfx','5HOadhc','exit\x20','175690ZDTeaa'];a65_0x3b26=function(){return _0x4ec1dc;};return a65_0x3b26();}function a65_0xc070(_0x3aac79,_0x4b76d1){_0x3aac79=_0x3aac79-0x136;const _0x3b26d1=a65_0x3b26();let _0xc07083=_0x3b26d1[_0x3aac79];return _0xc07083;}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a65_0x37f03f;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a65_0x54abcb(0x13f)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x541ce8,_0x27e3e8=LOVRABET_SKILL_SOURCE,_0x544a3c){const _0x1b9765=a65_0x54abcb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5020f4=_0x544a3c?.['stdio']??_0x1b9765(0x14b),_0x27ef8c=resolveNpmBin(_0x1b9765(0x13b)),_0x3d53b2=['skills','add',_0x27e3e8,'-g','-y'],_0x26e84d=[_0x27ef8c,..._0x3d53b2][_0x1b9765(0x142)]('\x20');console['log']('*\x20'+_0x26e84d);const _0x6c1d13=spawnSync(_0x27ef8c,_0x3d53b2,{'cwd':_0x541ce8,'stdio':_0x5020f4,'env':process.env,'shell':![]});if(_0x6c1d13[_0x1b9765(0x137)]===0x0)return{'ok':!![],'status':0x0};let _0x1aab21=_0x1b9765(0x149)+(_0x6c1d13[_0x1b9765(0x137)]??_0x1b9765(0x13a));if(_0x5020f4===_0x1b9765(0x136)){const _0x5f5354=_0x6c1d13[_0x1b9765(0x13d)]?_0x6c1d13[_0x1b9765(0x13d)][_0x1b9765(0x145)]()[_0x1b9765(0x140)]():'',_0x48eb40=_0x6c1d13[_0x1b9765(0x139)]?_0x6c1d13[_0x1b9765(0x139)]['toString']()[_0x1b9765(0x140)]():'';if(_0x5f5354)_0x1aab21=_0x5f5354;else{if(_0x48eb40)_0x1aab21=_0x48eb40;}}return{'ok':![],'status':_0x6c1d13[_0x1b9765(0x137)]??null,'error':_0x1aab21};}
|