@lovrabet/lovrabet-cli 2.1.22-beta.1 → 2.1.22-beta.2
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/README.md +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.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/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- 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/cli-skill/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/common/local-file.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 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.d.ts +4 -0
- package/lib/commands/skill/commands/diagram.js +1 -0
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.d.ts +5 -0
- package/lib/commands/skill/diagram.js +1 -0
- package/lib/commands/skill/flags.d.ts +6 -0
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.d.ts +4 -0
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.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/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.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.d.ts +52 -0
- 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/rate-limit.js +1 -1
- package/lib/framework/raw-flags.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/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.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/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -1
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x272c70,_0x48a03d){const _0x1bee5a=a79_0x95d9,_0x2bd5c0=_0x272c70();while(!![]){try{const _0x3b55f0=parseInt(_0x1bee5a(0x1ce))/0x1*(parseInt(_0x1bee5a(0x1d0))/0x2)+parseInt(_0x1bee5a(0x1d5))/0x3+parseInt(_0x1bee5a(0x1d3))/0x4+-parseInt(_0x1bee5a(0x1d2))/0x5*(-parseInt(_0x1bee5a(0x1c9))/0x6)+parseInt(_0x1bee5a(0x1cf))/0x7+parseInt(_0x1bee5a(0x1c7))/0x8*(-parseInt(_0x1bee5a(0x1d1))/0x9)+-parseInt(_0x1bee5a(0x1c8))/0xa;if(_0x3b55f0===_0x48a03d)break;else _0x2bd5c0['push'](_0x2bd5c0['shift']());}catch(_0xcae0ff){_0x2bd5c0['push'](_0x2bd5c0['shift']());}}}(a79_0x18d2,0x50a16));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0xb5ec94){const _0x172a88=a79_0x95d9;if(cache['has'](_0xb5ec94))return cache['get'](_0xb5ec94);const _0x128024=await listDatasets(_0xb5ec94),_0x3e6335=new Map();for(const _0x1be5ed of _0x128024){const _0x181bcf=_0x1be5ed[_0x172a88(0x1c6)];_0x181bcf?.[_0x172a88(0x1cd)]!=null&&_0x3e6335[_0x172a88(0x1ca)](_0x181bcf['dbId'],_0x181bcf[_0x172a88(0x1cc)]??_0x172a88(0x1cb)+_0x181bcf[_0x172a88(0x1cd)]);}const _0x10a6b0=[..._0x3e6335[_0x172a88(0x1d4)]()]['map'](([_0xa78d73,_0x35edc8])=>({'dbId':_0xa78d73,'dbName':_0x35edc8}));return cache[_0x172a88(0x1ca)](_0xb5ec94,_0x10a6b0),_0x10a6b0;}function a79_0x95d9(_0x5d5c26,_0x2f216f){_0x5d5c26=_0x5d5c26-0x1c6;const _0x18d2b4=a79_0x18d2();let _0x95d979=_0x18d2b4[_0x5d5c26];return _0x95d979;}function a79_0x18d2(){const _0x5218bb=['40uFQDHq','15747460zYIlPf','102XXzGIW','set','db-','dbName','dbId','424171mlDVYM','1510880JcWxHN','2UagCpB','377289aguJqk','142945HMVugi','1480768ybyhOL','entries','1855191CBMHIH','dbtableConfig'];a79_0x18d2=function(){return _0x5218bb;};return a79_0x18d2();}export async function getDbName(_0x2180cc,_0x504ca8){const _0x2471ec=a79_0x95d9;try{const _0x48ed6b=await listDatabases(_0x2180cc);return _0x48ed6b['find'](_0x1aecd7=>_0x1aecd7[_0x2471ec(0x1cd)]===_0x504ca8)?.[_0x2471ec(0x1cc)];}catch{return undefined;}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x435bdf,_0x2f31e0){const _0x163dc1=a80_0xd399,_0x1ebee9=_0x435bdf();while(!![]){try{const _0x59ce6d=-parseInt(_0x163dc1(0xc4))/0x1+-parseInt(_0x163dc1(0xc7))/0x2+parseInt(_0x163dc1(0xc8))/0x3+-parseInt(_0x163dc1(0xbb))/0x4+-parseInt(_0x163dc1(0xaa))/0x5*(parseInt(_0x163dc1(0xaf))/0x6)+-parseInt(_0x163dc1(0xb6))/0x7*(parseInt(_0x163dc1(0xbd))/0x8)+parseInt(_0x163dc1(0xb8))/0x9*(parseInt(_0x163dc1(0xac))/0xa);if(_0x59ce6d===_0x2f31e0)break;else _0x1ebee9['push'](_0x1ebee9['shift']());}catch(_0x2e21e0){_0x1ebee9['push'](_0x1ebee9['shift']());}}}(a80_0x2191,0x61079));import{createClient}from'@lovrabet/sdk';function a80_0x2191(){const _0x18bae2=['delete','map','accessKey','appCode','595jqVhpF','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','6571116AvjwWv','\x22.\x20','authMode','1522920WAcShW','string','9480bKXNqT','bff',']\x20must\x20be\x20an\x20object.','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','update','function','field','239442imrmxi',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','validation','1476526qarRTZ','435921IGtSNR','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','invokeSource','models','data\x20aggregate\x20--params.aggregate[','getOne','object','column','aggregate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','env','1197715PsVdmV','trim','30pTchEI','execute','isArray','12MZGLrX','dataset_','batchCreate'];a80_0x2191=function(){return _0x18bae2;};return a80_0x2191();}function a80_0xd399(_0x3bf024,_0xb2037d){_0x3bf024=_0x3bf024-0xa4;const _0x2191be=a80_0x2191();let _0xd39971=_0x2191be[_0x3bf024];return _0xd39971;}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x4223f7){const _0x1254ba=a80_0xd399;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x4223f7[_0x1254ba(0xb5)],'env':_0x4223f7[_0x1254ba(0xa9)],'authMode':_0x4223f7[_0x1254ba(0xba)],..._0x4223f7[_0x1254ba(0xb4)]?{'accessKey':_0x4223f7[_0x1254ba(0xb4)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1254ba(0xca)]}}});}catch(_0x59ab47){clearSdkClient();throw _0x59ab47;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x483689){const _0x293aea=a80_0xd399,_0x8be84a=_0x483689[_0x293aea(0xa7)];if(_0x8be84a===undefined)return _0x483689;if(!Array[_0x293aea(0xae)](_0x8be84a))throw CliErrors[_0x293aea(0xc6)](_0x293aea(0xc0));return{..._0x483689,'aggregate':_0x8be84a[_0x293aea(0xb3)]((_0x481686,_0x3a6cf1)=>{const _0x39d3ad=_0x293aea;if(!_0x481686||typeof _0x481686!==_0x39d3ad(0xa5)||Array[_0x39d3ad(0xae)](_0x481686))throw CliErrors[_0x39d3ad(0xc6)](_0x39d3ad(0xcc)+_0x3a6cf1+_0x39d3ad(0xbf));const _0x478599=_0x481686[_0x39d3ad(0xa6)]??_0x481686['field'];if(typeof _0x478599!==_0x39d3ad(0xbc)||_0x478599[_0x39d3ad(0xab)]()==='')throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x3a6cf1+_0x39d3ad(0xc5));const _0x4e776c={..._0x481686,'column':_0x478599};return delete _0x4e776c[_0x39d3ad(0xc3)],_0x4e776c;})};}export async function executeData(_0x4eb9ec,_0x4ebdbd,_0x2fe297){const _0xcc6fa0=a80_0xd399,_0x280492=ensureClient(),_0x5db9b4=_0xcc6fa0(0xb0)+_0x4eb9ec,_0xd3a944=_0x280492[_0xcc6fa0(0xcb)][_0x5db9b4];if(!_0xd3a944||typeof _0xd3a944[_0x4ebdbd]!==_0xcc6fa0(0xc2))throw new Error(_0xcc6fa0(0xc9)+_0x4ebdbd+_0xcc6fa0(0xb9)+_0xcc6fa0(0xb7));if(_0x4ebdbd==='batchCreate')return _0xd3a944[_0xcc6fa0(0xb1)](parseBatchCreateItemsFromParams(_0x2fe297));const _0x1e74d9=_0x2fe297!==undefined&&_0x2fe297!==null&&!Array[_0xcc6fa0(0xae)](_0x2fe297)?_0x2fe297:{};switch(_0x4ebdbd){case'getOne':{const _0x44ca33=_0x1e74d9['id'];if(_0x44ca33===undefined||_0x44ca33===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0xd3a944[_0xcc6fa0(0xa4)](_0x44ca33);}case _0xcc6fa0(0xc1):{const {id:_0x2c2789,..._0x699753}=_0x1e74d9;if(_0x2c2789===undefined||_0x2c2789===null)throw new Error(_0xcc6fa0(0xa8));return _0xd3a944[_0xcc6fa0(0xc1)](_0x2c2789,_0x699753);}case'delete':{const _0x13698b=_0x1e74d9['id'];if(_0x13698b===undefined||_0x13698b===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0xd3a944[_0xcc6fa0(0xb2)](_0x13698b);}case'aggregate':return _0xd3a944[_0xcc6fa0(0xa7)](normalizeAggregateParams(_0x1e74d9));default:return _0xd3a944[_0x4ebdbd](_0x1e74d9);}}export async function executeSdkSql(_0x460553,_0xb18524){const _0x55d772=a80_0xd399,_0x3d9e23=ensureClient();return _0x3d9e23['sql'][_0x55d772(0xad)]({'sqlCode':_0x460553,'params':_0xb18524});}export async function executeSdkBff(_0x121f89,_0x2750c9){const _0x4c0819=a80_0xd399,_0x91bed2=ensureClient();return _0x91bed2[_0x4c0819(0xbe)][_0x4c0819(0xad)]({'scriptName':_0x121f89,'params':_0x2750c9});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a81_0x22f2eb=a81_0x2cfc;function a81_0x2cfc(_0x2e33bb,_0x409de0){_0x2e33bb=_0x2e33bb-0xd8;const _0x4db5c0=a81_0x4db5();let _0x2cfca9=_0x4db5c0[_0x2e33bb];return _0x2cfca9;}(function(_0x2f94cd,_0x441e85){const _0x176a52=a81_0x2cfc,_0x4e3057=_0x2f94cd();while(!![]){try{const _0x62528=parseInt(_0x176a52(0xe5))/0x1*(-parseInt(_0x176a52(0xe0))/0x2)+parseInt(_0x176a52(0xde))/0x3*(-parseInt(_0x176a52(0xe1))/0x4)+parseInt(_0x176a52(0xda))/0x5+-parseInt(_0x176a52(0xd9))/0x6*(parseInt(_0x176a52(0xe7))/0x7)+parseInt(_0x176a52(0xe4))/0x8+-parseInt(_0x176a52(0xdf))/0x9+-parseInt(_0x176a52(0xd8))/0xa*(-parseInt(_0x176a52(0xe8))/0xb);if(_0x62528===_0x441e85)break;else _0x4e3057['push'](_0x4e3057['shift']());}catch(_0x3058be){_0x4e3057['push'](_0x4e3057['shift']());}}}(a81_0x4db5,0x19831));function a81_0x4db5(){const _0x25085d=['Configure\x20accessKey\x20in\x20','\x20or\x20run\x20`','918800VTdMTz','13439LHzJOX','\x20auth\x20login`.','4228CoYbxq','1903duCIQK','\x20file.','27730dGgoqW','1926wTAnRi','955905afOzTk','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','rate_limited','newConfigFileName','3RAZeTc','1779075bSdJTv','22htUlbY','567500vRhquD'];a81_0x4db5=function(){return _0x25085d;};return a81_0x4db5();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a81_0x22f2eb(0xe2)+PRODUCT_CONFIG[a81_0x22f2eb(0xdd)]+a81_0x22f2eb(0xe3)+CLI_BIN_NAME+a81_0x22f2eb(0xe6),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a81_0x22f2eb(0xdb)+PRODUCT_CONFIG[a81_0x22f2eb(0xdd)]+a81_0x22f2eb(0xe9)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x2b40ee,_0x2ce378)=>new CliError(a81_0x22f2eb(0xdc),0x2,_0x2b40ee,_0x2ce378)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d8f25,_0x542be9){var _0x49fc86=a82_0x3501,_0x24c3d4=_0x2d8f25();while(!![]){try{var _0x26e8c0=-parseInt(_0x49fc86(0x84))/0x1+parseInt(_0x49fc86(0x7e))/0x2+parseInt(_0x49fc86(0x81))/0x3+parseInt(_0x49fc86(0x83))/0x4+parseInt(_0x49fc86(0x7c))/0x5*(parseInt(_0x49fc86(0x7f))/0x6)+parseInt(_0x49fc86(0x80))/0x7+parseInt(_0x49fc86(0x82))/0x8*(-parseInt(_0x49fc86(0x7d))/0x9);if(_0x26e8c0===_0x542be9)break;else _0x24c3d4['push'](_0x24c3d4['shift']());}catch(_0x9d712c){_0x24c3d4['push'](_0x24c3d4['shift']());}}}(a82_0x118f,0x8cbce));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a82_0x118f(){var _0xca79e0=['1044QVYlwQ','5223771iWhnGp','2909181NPHFhn','18002024vfyaoy','969368QxzzNP','426180EwmQCW','14975xgXfix','9TcjlAk','1546886YbdRkp'];a82_0x118f=function(){return _0xca79e0;};return a82_0x118f();}function a82_0x3501(_0x5fda61,_0x59772e){_0x5fda61=_0x5fda61-0x7c;var _0x118f4d=a82_0x118f();var _0x3501c=_0x118f4d[_0x5fda61];return _0x3501c;}import{buildAllFlags as a82_0xcd0181}from'@lovrabet/cli-framework';export function buildAllFlags(_0x37e18e){return a82_0xcd0181(_0x37e18e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x15fa(_0x2df7c9,_0x181308){_0x2df7c9=_0x2df7c9-0xd5;const _0x5bcd60=a83_0x5bcd();let _0x15fa1f=_0x5bcd60[_0x2df7c9];return _0x15fa1f;}(function(_0x7ad81d,_0x481e2a){const _0xa069fb=a83_0x15fa,_0x25de15=_0x7ad81d();while(!![]){try{const _0x178472=parseInt(_0xa069fb(0xd6))/0x1*(-parseInt(_0xa069fb(0xdd))/0x2)+parseInt(_0xa069fb(0xe1))/0x3*(-parseInt(_0xa069fb(0xd5))/0x4)+-parseInt(_0xa069fb(0xdf))/0x5+-parseInt(_0xa069fb(0xde))/0x6*(parseInt(_0xa069fb(0xd7))/0x7)+parseInt(_0xa069fb(0xda))/0x8+parseInt(_0xa069fb(0xd9))/0x9*(-parseInt(_0xa069fb(0xe0))/0xa)+-parseInt(_0xa069fb(0xd8))/0xb*(-parseInt(_0xa069fb(0xdb))/0xc);if(_0x178472===_0x481e2a)break;else _0x25de15['push'](_0x25de15['shift']());}catch(_0x7d1869){_0x25de15['push'](_0x25de15['shift']());}}}(a83_0x5bcd,0x48da7));function a83_0x5bcd(){const _0x4a41ed=['1190rZuEXc','3AMBAuD','2049692sCygcr','163vkdPhH','521276gubvbF','320133gPVFiK','33012XUSSnT','1997496caQcjW','924RkoZsU','description','3062ieyPKn','42bnTxCI','2362335bgwVuY'];a83_0x5bcd=function(){return _0x4a41ed;};return a83_0x5bcd();}export function dryRun(_0x1aef00,_0x4019ac){const _0x2a00c8={'method':_0x1aef00,'url':_0x4019ac},_0x58bf15={'body'(_0x424ff8){return _0x2a00c8['body']=_0x424ff8,_0x58bf15;},'description'(_0x4bbb25){const _0x20a377=a83_0x15fa;return _0x2a00c8[_0x20a377(0xdc)]=_0x4bbb25,_0x58bf15;},'build'(){return{..._0x2a00c8};}};return _0x58bf15;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x5d3e97=a84_0x452b;(function(_0x517c01,_0x1eb37b){const _0x29836f=a84_0x452b,_0x4262c9=_0x517c01();while(!![]){try{const _0xba43c4=-parseInt(_0x29836f(0x11b))/0x1+parseInt(_0x29836f(0x116))/0x2+-parseInt(_0x29836f(0x117))/0x3+parseInt(_0x29836f(0x113))/0x4*(parseInt(_0x29836f(0x118))/0x5)+parseInt(_0x29836f(0x11d))/0x6*(-parseInt(_0x29836f(0x119))/0x7)+-parseInt(_0x29836f(0x11c))/0x8+parseInt(_0x29836f(0x11a))/0x9;if(_0xba43c4===_0x1eb37b)break;else _0x4262c9['push'](_0x4262c9['shift']());}catch(_0x24b114){_0x4262c9['push'](_0x4262c9['shift']());}}}(a84_0x5200,0x78e3e));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a84_0x452b(_0x2d0960,_0x15f081){_0x2d0960=_0x2d0960-0x113;const _0x520070=a84_0x5200();let _0x452b86=_0x520070[_0x2d0960];return _0x452b86;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a84_0x5d3e97(0x114)];function a84_0x5200(){const _0x31e779=['2511507YGZqUr','5AdTAUE','126UWvVUm','14526117Kosegn','585912hJejeJ','3576856fwNNFR','144492HgQDwz','1916324NPeRiQ','parseFlags','validateFlags','1411472haWKUY'];a84_0x5200=function(){return _0x31e779;};return a84_0x5200();}export const validateFlags=helpers[a84_0x5d3e97(0x115)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x29f72d,_0x32cfd0){const _0x7916a4=a85_0x5d00,_0xcb38=_0x29f72d();while(!![]){try{const _0x32d1cc=parseInt(_0x7916a4(0xd6))/0x1+-parseInt(_0x7916a4(0xe2))/0x2+-parseInt(_0x7916a4(0xd8))/0x3*(parseInt(_0x7916a4(0xe6))/0x4)+-parseInt(_0x7916a4(0xdc))/0x5*(parseInt(_0x7916a4(0xdf))/0x6)+-parseInt(_0x7916a4(0xe4))/0x7*(parseInt(_0x7916a4(0xe9))/0x8)+parseInt(_0x7916a4(0xdd))/0x9+-parseInt(_0x7916a4(0xd4))/0xa*(-parseInt(_0x7916a4(0xe0))/0xb);if(_0x32d1cc===_0x32cfd0)break;else _0xcb38['push'](_0xcb38['shift']());}catch(_0x2de2d2){_0xcb38['push'](_0xcb38['shift']());}}}(a85_0x43bd,0xbda66));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a85_0x5d00(_0x23b973,_0x412206){_0x23b973=_0x23b973-0xd4;const _0x43bded=a85_0x43bd();let _0x5d00bf=_0x43bded[_0x23b973];return _0x5d00bf;}function a85_0x43bd(){const _0x45e1b3=['generateFullHelp','1503765CgGjRE','has','14409czrJEV','map','generateServiceHelp','\x20or\x20--appcode).','5218815ofOAAO','1367973kXGgKW','get','6PgnGkf','321882VpNfQa','filter','1945526cHqKAw','newConfigFileName','273nUatbc','generateCommandHelp','916qFLEDO','Requires\x20appcode\x20(set\x20via\x20','service','81256cJLKiO','900fOMass'];a85_0x43bd=function(){return _0x45e1b3;};return a85_0x43bd();}function createGenerators(){const _0x485d4e=a85_0x5d00;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x485d4e(0xe7)+PRODUCT_CONFIG[_0x485d4e(0xe3)]+_0x485d4e(0xdb)});}export function generateCommandHelp(_0x53a79b){const _0x933c42=a85_0x5d00;return createGenerators()[_0x933c42(0xe5)](_0x53a79b);}export function generateServiceHelp(_0x38c601){const _0x3af4e2=a85_0x5d00;return createGenerators()[_0x3af4e2(0xda)](_0x38c601);}export function generateFullHelp(){const _0x20b7b7=a85_0x5d00;return createGenerators()[_0x20b7b7(0xd5)]();}function getAnyServiceEntry(_0xd9daf){const _0x187e63=getServiceEntry(_0xd9daf);if(_0x187e63)return _0x187e63;try{return getDynamicServiceEntry(_0xd9daf);}catch{return undefined;}}function getAnyServiceDefinitions(_0x387acc){const _0x1b197e=a85_0x5d00,_0x2a8117=serviceGroups[_0x1b197e(0xde)](_0x387acc);if(_0x2a8117)return _0x2a8117;try{return getDynamicServiceDefinitions(_0x387acc);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x23799d=a85_0x5d00,_0xc9bc3c=new Set(serviceRegistry[_0x23799d(0xd9)](_0x2d73b3=>_0x2d73b3['service']));try{return listDynamicServiceEntries()[_0x23799d(0xe1)](_0x3510db=>!_0xc9bc3c[_0x23799d(0xd7)](_0x3510db[_0x23799d(0xe8)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a86_0x38eb(_0x250c9b,_0x1e4fe6){_0x250c9b=_0x250c9b-0x16f;var _0x325cc1=a86_0x325c();var _0x38eb72=_0x325cc1[_0x250c9b];return _0x38eb72;}(function(_0x3717e6,_0x7534ac){var _0x5dade5=a86_0x38eb,_0x1d2aad=_0x3717e6();while(!![]){try{var _0x59ef7f=parseInt(_0x5dade5(0x16f))/0x1*(-parseInt(_0x5dade5(0x173))/0x2)+parseInt(_0x5dade5(0x172))/0x3*(-parseInt(_0x5dade5(0x176))/0x4)+parseInt(_0x5dade5(0x17a))/0x5*(-parseInt(_0x5dade5(0x175))/0x6)+parseInt(_0x5dade5(0x171))/0x7+parseInt(_0x5dade5(0x179))/0x8*(parseInt(_0x5dade5(0x177))/0x9)+-parseInt(_0x5dade5(0x174))/0xa+-parseInt(_0x5dade5(0x170))/0xb*(-parseInt(_0x5dade5(0x178))/0xc);if(_0x59ef7f===_0x7534ac)break;else _0x1d2aad['push'](_0x1d2aad['shift']());}catch(_0x94d4b6){_0x1d2aad['push'](_0x1d2aad['shift']());}}}(a86_0x325c,0xcbb6b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a86_0x325c(){var _0x49fd95=['6590658itrnXh','2556724AgnnJj','27180abaFJT','11400xRgiVD','1240bGWutE','5hjKwGS','287081xkwJdr','47223pxfQDY','3570021AqkSri','6KwQzUc','10NKREEZ','4098320jxjUbH'];a86_0x325c=function(){return _0x49fd95;};return a86_0x325c();}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x595ac4,_0x50debe){const _0x1480c0=a87_0x4326,_0x3a9ed4=_0x595ac4();while(!![]){try{const _0x3818c8=parseInt(_0x1480c0(0x171))/0x1+parseInt(_0x1480c0(0x16a))/0x2*(-parseInt(_0x1480c0(0x16e))/0x3)+-parseInt(_0x1480c0(0x169))/0x4+parseInt(_0x1480c0(0x168))/0x5*(-parseInt(_0x1480c0(0x166))/0x6)+parseInt(_0x1480c0(0x16b))/0x7*(parseInt(_0x1480c0(0x16f))/0x8)+parseInt(_0x1480c0(0x164))/0x9*(-parseInt(_0x1480c0(0x16c))/0xa)+-parseInt(_0x1480c0(0x162))/0xb*(-parseInt(_0x1480c0(0x160))/0xc);if(_0x3818c8===_0x50debe)break;else _0x3a9ed4['push'](_0x3a9ed4['shift']());}catch(_0x4915bb){_0x3a9ed4['push'](_0x3a9ed4['shift']());}}}(a87_0x3d04,0x4a911));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a87_0x3d04(){const _0x433c30=['message','581317novnJh','pretty','12hlbGca','_notice','8184506TrzuGg','format','9JWAALc','update','90888AYzuXF','url','160hACKfb','155164ZtnOaV','15002ZDQRoE','273ZYmQDG','5066290VCVEbj','error','189iCGJPQ','99032mszdNt'];a87_0x3d04=function(){return _0x433c30;};return a87_0x3d04();}function a87_0x4326(_0x390122,_0x567cd7){_0x390122=_0x390122-0x15f;const _0x3d04f7=a87_0x3d04();let _0x432638=_0x3d04f7[_0x390122];return _0x432638;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x5aaadf,_0x59bd0a){const _0x5a11b6=a87_0x4326,_0x11b39c=_0x5aaadf[_0x5a11b6(0x161)],{_notice:_0x3bc0d4,..._0x2f2a6c}=_0x5aaadf;void _0x3bc0d4,baseFormatOutput(_0x2f2a6c,_0x59bd0a),_0x59bd0a[_0x5a11b6(0x163)]===_0x5a11b6(0x15f)&&printPrettyNotice(_0x11b39c);}function printPrettyNotice(_0x32a47e){const _0xfef768=a87_0x4326;if(!_0x32a47e?.[_0xfef768(0x165)])return;console[_0xfef768(0x16d)](_0x32a47e[_0xfef768(0x165)][_0xfef768(0x170)]+'\x20('+_0x32a47e[_0xfef768(0x165)][_0xfef768(0x167)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1708a2,_0x24eaf3){const _0x61bc19=a88_0x5795,_0x318e55=_0x1708a2();while(!![]){try{const _0xd80f8b=-parseInt(_0x61bc19(0x1f5))/0x1*(-parseInt(_0x61bc19(0x1f9))/0x2)+-parseInt(_0x61bc19(0x1fb))/0x3*(parseInt(_0x61bc19(0x1ff))/0x4)+-parseInt(_0x61bc19(0x213))/0x5+-parseInt(_0x61bc19(0x1f8))/0x6+-parseInt(_0x61bc19(0x1fa))/0x7*(-parseInt(_0x61bc19(0x1f6))/0x8)+-parseInt(_0x61bc19(0x20b))/0x9*(parseInt(_0x61bc19(0x205))/0xa)+parseInt(_0x61bc19(0x215))/0xb*(parseInt(_0x61bc19(0x1ee))/0xc);if(_0xd80f8b===_0x24eaf3)break;else _0x318e55['push'](_0x318e55['shift']());}catch(_0x469bef){_0x318e55['push'](_0x318e55['shift']());}}}(a88_0xa0e6,0x2ec5f));export function toKebab(_0x4daed9){const _0x308d98=a88_0x5795;return _0x4daed9[_0x308d98(0x1f1)](/_/g,'-')[_0x308d98(0x1f1)](/-([A-Z]+)/g,(_0x55997d,_0x58a1ac)=>'-'+_0x58a1ac[_0x308d98(0x204)]())[_0x308d98(0x1f1)](/([a-z0-9])([A-Z])/g,(_0x583d8a,_0x381170,_0xbd6e49)=>_0x381170+'-'+_0xbd6e49)[_0x308d98(0x204)]();}function a88_0xa0e6(){const _0x150362=['dry-run','add','get','nonInteractive','sticky','alias','1392650NRujkZ','non-interactive','964887aabAKm','indexOf','slice','84rtOrMT','appcode','format','replace','app','dryRun','push','1YNyRna','16BHfLWq','corrected','1617726VWbsxN','274878qMNwfN','924077IkyMDd','3NdrEIH','boolean','number','env','682008amfDqa','yes','type','entries','set','toLowerCase','830WNfrBA','version','original','has','length','global','11412hcZSjh','name'];a88_0xa0e6=function(){return _0x150362;};return a88_0xa0e6();}function buildKnownFlags(_0x41b229){const _0x49d5a5=a88_0x5795,_0x3b9811=new Set();for(const _0x1f017b of _0x41b229){_0x3b9811[_0x49d5a5(0x20e)](_0x1f017b[_0x49d5a5(0x20c)]),_0x3b9811[_0x49d5a5(0x20e)](toCamelCase(_0x1f017b[_0x49d5a5(0x20c)]));}for(const _0x16e71b of[_0x49d5a5(0x20d),_0x49d5a5(0x1f3),_0x49d5a5(0x200),_0x49d5a5(0x1f0)]){_0x3b9811[_0x49d5a5(0x20e)](_0x16e71b);}for(const _0x413fe6 of['help',_0x49d5a5(0x1fe),_0x49d5a5(0x1ef),_0x49d5a5(0x1f2),_0x49d5a5(0x210),_0x49d5a5(0x214),'ci',_0x49d5a5(0x20a),_0x49d5a5(0x206)]){_0x3b9811[_0x49d5a5(0x20e)](_0x413fe6);}return _0x3b9811;}function buildFlagTypeMap(_0x32e4b1){const _0x482363=a88_0x5795,_0x5ce934=new Map();for(const _0x3ca886 of _0x32e4b1){_0x5ce934[_0x482363(0x203)](_0x3ca886['name'],_0x3ca886[_0x482363(0x201)]),_0x5ce934['set'](toCamelCase(_0x3ca886[_0x482363(0x20c)]),_0x3ca886[_0x482363(0x201)]);}return _0x5ce934;}function toCamelCase(_0x4dfac7){const _0x4d8c58=a88_0x5795;return _0x4dfac7[_0x4d8c58(0x1f1)](/-([a-z])/g,(_0xa0ddc,_0x56a0dd)=>_0x56a0dd['toUpperCase']());}function a88_0x5795(_0x342337,_0x374750){_0x342337=_0x342337-0x1ec;const _0xa0e6e7=a88_0xa0e6();let _0x5795c5=_0xa0e6e7[_0x342337];return _0x5795c5;}function aliasHandler(_0x4d03ce,_0x4c2899){const _0xccd3a8=a88_0x5795,_0xbae036=[];for(const _0x1a86b3 of Object['keys'](_0x4d03ce)){if(_0x4c2899[_0xccd3a8(0x208)](_0x1a86b3))continue;const _0x14d7aa=toKebab(_0x1a86b3);_0x14d7aa!==_0x1a86b3&&_0x4c2899['has'](_0x14d7aa)&&_0xbae036[_0xccd3a8(0x1f4)]({'original':_0x1a86b3,'corrected':_0x14d7aa,'handler':_0xccd3a8(0x212)});}return _0xbae036;}function stickyHandler(_0x22e925,_0x54cc44,_0xf6af34){const _0x267e27=a88_0x5795,_0x5d96e9=[];for(const [_0x1a99f3,_0x3572af]of Object[_0x267e27(0x202)](_0x22e925)){if(_0x3572af!==!![])continue;for(let _0x4059f5=_0x1a99f3['length']-0x1;_0x4059f5>0x0;_0x4059f5--){const _0x2912b0=_0x1a99f3[_0x267e27(0x1ed)](0x0,_0x4059f5),_0x455772=_0x1a99f3['slice'](_0x4059f5),_0x1c92d8=toKebab(_0x2912b0),_0x1520fb=toCamelCase(_0x2912b0),_0x11a686=_0x54cc44[_0x267e27(0x208)](_0x2912b0)?_0x2912b0:_0x54cc44[_0x267e27(0x208)](_0x1c92d8)?_0x1c92d8:_0x54cc44['has'](_0x1520fb)?_0x1520fb:null;if(!_0x11a686)continue;const _0x259964=_0xf6af34[_0x267e27(0x20f)](_0x11a686)??'string';let _0x20f5a2;if(_0x259964===_0x267e27(0x1fd)){const _0x92f974=Number(_0x455772);if(isNaN(_0x92f974)||_0x455772==='')continue;_0x20f5a2=_0x92f974;}else{if(_0x259964===_0x267e27(0x1fc))continue;else{if(_0x455772==='')continue;_0x20f5a2=_0x455772;}}_0x5d96e9[_0x267e27(0x1f4)]({'original':_0x1a99f3,'corrected':_0x11a686+'='+_0x20f5a2,'handler':_0x267e27(0x211)});break;}}return _0x5d96e9;}export function correctFlags(_0x1056c1,_0x4c5eb6){const _0x4dabd2=a88_0x5795,_0x540393=buildKnownFlags(_0x4c5eb6),_0x1688e8=buildFlagTypeMap(_0x4c5eb6),_0x32d5f9=aliasHandler(_0x1056c1,_0x540393),_0x3bff7c=stickyHandler(_0x1056c1,_0x540393,_0x1688e8),_0x484c94=[..._0x32d5f9,..._0x3bff7c];if(_0x484c94[_0x4dabd2(0x209)]===0x0)return{'flags':_0x1056c1,'corrections':[]};const _0x94ced8={..._0x1056c1},_0x3b5f76=new Set();for(const _0x90eaf4 of _0x32d5f9){_0x94ced8[_0x90eaf4[_0x4dabd2(0x1f7)]]=_0x1056c1[_0x90eaf4[_0x4dabd2(0x207)]],_0x3b5f76[_0x4dabd2(0x20e)](_0x90eaf4[_0x4dabd2(0x207)]);}for(const _0x19dc53 of _0x3bff7c){const _0x2ea2dc=_0x19dc53[_0x4dabd2(0x1f7)][_0x4dabd2(0x1ec)]('='),_0x350320=_0x19dc53[_0x4dabd2(0x1f7)]['slice'](0x0,_0x2ea2dc),_0x5e3fca=_0x19dc53[_0x4dabd2(0x1f7)][_0x4dabd2(0x1ed)](_0x2ea2dc+0x1),_0x1e184a=_0x1688e8[_0x4dabd2(0x20f)](_0x350320)??'string';_0x1e184a==='number'?_0x94ced8[_0x350320]=Number(_0x5e3fca):_0x94ced8[_0x350320]=_0x5e3fca,_0x3b5f76[_0x4dabd2(0x20e)](_0x19dc53[_0x4dabd2(0x207)]);}for(const _0x58facc of _0x3b5f76){delete _0x94ced8[_0x58facc];}return{'flags':_0x94ced8,'corrections':_0x484c94};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x1719(_0x2e1058,_0x7f0507){_0x2e1058=_0x2e1058-0x78;const _0x4b817a=a89_0x4b81();let _0x1719f2=_0x4b817a[_0x2e1058];return _0x1719f2;}const a89_0x3326bd=a89_0x1719;function a89_0x4b81(){const _0x50ae72=['number','21UoTXEr','\x20seconds\x20before\x20retrying.','get','526796ngToyn','function','11344869kJGsWf','message','452484NRPmDR','724OzkROi','retryAfterSeconds','test','status','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','7884024ndQrky','14754WecfrG','call','378156jBDBBk','isInteger','errorCode','retryAfter','has','Retry\x20after\x20a\x20short\x20delay.','Retry-After','IP_RATE_LIMIT_EXCEEDED','EXCEED_MAX_QPS_LIMIT','retry-after','string','toUpperCase','5197185aNttPD','Retry\x20after\x20','object','Wait\x20'];a89_0x4b81=function(){return _0x50ae72;};return a89_0x4b81();}(function(_0x2dbc54,_0x553b75){const _0xaa4b89=a89_0x1719,_0x26de69=_0x2dbc54();while(!![]){try{const _0x2f0d66=-parseInt(_0xaa4b89(0x91))/0x1+parseInt(_0xaa4b89(0x84))/0x2+parseInt(_0xaa4b89(0x8f))/0x3*(-parseInt(_0xaa4b89(0x89))/0x4)+parseInt(_0xaa4b89(0x7c))/0x5+-parseInt(_0xaa4b89(0x88))/0x6*(-parseInt(_0xaa4b89(0x81))/0x7)+-parseInt(_0xaa4b89(0x8e))/0x8+parseInt(_0xaa4b89(0x86))/0x9;if(_0x2f0d66===_0x553b75)break;else _0x26de69['push'](_0x26de69['shift']());}catch(_0x26fb4a){_0x26de69['push'](_0x26de69['shift']());}}}(a89_0x4b81,0x82cf9));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a89_0x3326bd(0x78),'MAX_QPS_LIMIT',a89_0x3326bd(0x98)]);function nonEmptyString(_0x3829c4){const _0x4e7270=a89_0x3326bd;if(typeof _0x3829c4!==_0x4e7270(0x7a))return undefined;const _0xdf4b9a=_0x3829c4['trim']();return _0xdf4b9a||undefined;}function buildRetryHint(_0x175e1b){const _0x325e1a=a89_0x3326bd,_0x2644bc=nonEmptyString(_0x175e1b),_0x2e5584=_0x2644bc?/^\d+$/['test'](_0x2644bc)?_0x325e1a(0x7f)+_0x2644bc+_0x325e1a(0x82):_0x325e1a(0x7d)+_0x2644bc+'.':_0x325e1a(0x96);return _0x2e5584+_0x325e1a(0x8d);}export function createRateLimitError(_0x456988){const _0x223d44=a89_0x3326bd,_0x3628f4=nonEmptyString(_0x456988[_0x223d44(0x93)])?.[_0x223d44(0x7b)](),_0x391f3c=Number(_0x456988[_0x223d44(0x8c)])===0x1ad||_0x3628f4!==undefined&&RATE_LIMIT_ERROR_CODES[_0x223d44(0x95)](_0x3628f4);if(!_0x391f3c)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x456988[_0x223d44(0x87)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x456988[_0x223d44(0x94)]));}export function readRetryAfter(_0x1e2b72){const _0x547230=a89_0x3326bd;if(!_0x1e2b72||typeof _0x1e2b72!=='object')return undefined;const _0x1cc002=_0x1e2b72[_0x547230(0x83)];if(typeof _0x1cc002===_0x547230(0x85)){const _0x43ca53=_0x1cc002[_0x547230(0x90)](_0x1e2b72,_0x547230(0x97))??_0x1cc002[_0x547230(0x90)](_0x1e2b72,_0x547230(0x79));return nonEmptyString(_0x43ca53);}for(const [_0x27f25f,_0x585f6b]of Object['entries'](_0x1e2b72)){if(_0x27f25f['toLowerCase']()===_0x547230(0x79))return nonEmptyString(_0x585f6b)??(typeof _0x585f6b==='number'?String(_0x585f6b):undefined);}return undefined;}export function readRetryAfterSeconds(_0x22c690){const _0x3c7e65=a89_0x3326bd;if(!_0x22c690||typeof _0x22c690!==_0x3c7e65(0x7e)||Array['isArray'](_0x22c690))return undefined;const _0xc522ab=_0x22c690[_0x3c7e65(0x8a)];if(typeof _0xc522ab===_0x3c7e65(0x80))return Number[_0x3c7e65(0x92)](_0xc522ab)&&_0xc522ab>=0x0?String(_0xc522ab):undefined;const _0x25ed43=nonEmptyString(_0xc522ab);return _0x25ed43&&/^\d+$/[_0x3c7e65(0x8b)](_0x25ed43)?_0x25ed43:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a90_0x5d9adb=a90_0x1b78;function a90_0x1104(){const _0x1d525e=['552AmLhWS','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','version','validation','1055HiNIpR','active','stringify','orderby','no-','where','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','add','meowKey','order-by','select','83825eJDDWW','entries','Unknown\x20flag\x20--','4271022hhPDUK','Run\x20`','3106660jMudGS','data','page-size','currentpage','has','command','\x20data\x20filter`.','126370aehgkT','3sqrlFk','filter','service','62NJxSwM','42555095cfmETw','1251nrFKDr','3608824oEKEwb','Example:\x20'];a90_0x1104=function(){return _0x1d525e;};return a90_0x1104();}(function(_0x1630e1,_0x272cfb){const _0x1a1e1d=a90_0x1b78,_0x41faa6=_0x1630e1();while(!![]){try{const _0x4ecd85=parseInt(_0x1a1e1d(0x86))/0x1*(parseInt(_0x1a1e1d(0x7d))/0x2)+parseInt(_0x1a1e1d(0x7a))/0x3*(parseInt(_0x1a1e1d(0x80))/0x4)+-parseInt(_0x1a1e1d(0x72))/0x5+-parseInt(_0x1a1e1d(0x94))/0x6+-parseInt(_0x1a1e1d(0x91))/0x7*(parseInt(_0x1a1e1d(0x82))/0x8)+parseInt(_0x1a1e1d(0x7f))/0x9*(-parseInt(_0x1a1e1d(0x79))/0xa)+parseInt(_0x1a1e1d(0x7e))/0xb;if(_0x4ecd85===_0x272cfb)break;else _0x41faa6['push'](_0x41faa6['shift']());}catch(_0x3f86c2){_0x41faa6['push'](_0x41faa6['shift']());}}}(a90_0x1104,0xd8b11));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a90_0x5d9adb(0x8b),a90_0x5d9adb(0x90),a90_0x5d9adb(0x8f),a90_0x5d9adb(0x89),'current-page',a90_0x5d9adb(0x75),'page',a90_0x5d9adb(0x74),'pagesize']);function a90_0x1b78(_0x1f63db,_0x205e93){_0x1f63db=_0x1f63db-0x72;const _0x110457=a90_0x1104();let _0x1b7801=_0x110457[_0x1f63db];return _0x1b7801;}export function assertKnownCommandFlags(_0x639906,_0x2742e5){const _0x56bb59=a90_0x5d9adb,_0x3fd849=new Set([_0x56bb59(0x84)]);for(const _0x34ed92 of GLOBAL_FLAGS){_0x3fd849['add'](_0x34ed92['name']),_0x3fd849[_0x56bb59(0x8d)](toKebab(_0x34ed92[_0x56bb59(0x8e)]));}for(const _0x3b4465 of _0x639906['flags']??[]){_0x3fd849[_0x56bb59(0x8d)](_0x3b4465['name']);}for(const [_0x18f15b,_0x22c670]of Object[_0x56bb59(0x92)](_0x2742e5)){const _0x486f08=toKebab(_0x18f15b);if(_0x3fd849[_0x56bb59(0x76)](_0x486f08))continue;if(_0x22c670===![]&&_0x3fd849[_0x56bb59(0x76)](_0x56bb59(0x8a)+_0x486f08))continue;if(_0x639906[_0x56bb59(0x7c)]===_0x56bb59(0x73)&&_0x639906[_0x56bb59(0x77)]===_0x56bb59(0x7b)&&FILTER_BODY_FIELDS[_0x56bb59(0x76)](_0x486f08))throw CliErrors['validation']('--'+_0x486f08+_0x56bb59(0x8c)+CLI_BIN_NAME+_0x56bb59(0x78),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x56bb59(0x81)+CLI_BIN_NAME+_0x56bb59(0x83))+('\x27'+JSON[_0x56bb59(0x88)]({'where':{'status':{'$eq':_0x56bb59(0x87)}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x56bb59(0x85)](_0x56bb59(0x93)+_0x486f08+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x639906['service']+'\x20'+_0x639906['command']+'`.',_0x56bb59(0x95)+CLI_BIN_NAME+'\x20'+_0x639906[_0x56bb59(0x7c)]+'\x20'+_0x639906[_0x56bb59(0x77)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a91_0x422f(){var _0x3c8ab6=['2548377mpCUCs','13384tOJYyo','648100DBZmDM','272660KixfOp','1418466RDdJKr','2395100oEzOAU','25OXbNFC','8XvUQLX','3Wndhwk','779989LMaKho'];a91_0x422f=function(){return _0x3c8ab6;};return a91_0x422f();}function a91_0x46fe(_0xa8c70,_0x37fd6d){_0xa8c70=_0xa8c70-0xc9;var _0x422f05=a91_0x422f();var _0x46fea2=_0x422f05[_0xa8c70];return _0x46fea2;}(function(_0x2dd725,_0x104842){var _0x5adebb=a91_0x46fe,_0x393ffb=_0x2dd725();while(!![]){try{var _0x24e8e5=parseInt(_0x5adebb(0xcd))/0x1+-parseInt(_0x5adebb(0xce))/0x2*(parseInt(_0x5adebb(0xca))/0x3)+-parseInt(_0x5adebb(0xcf))/0x4*(-parseInt(_0x5adebb(0xd2))/0x5)+-parseInt(_0x5adebb(0xd0))/0x6+parseInt(_0x5adebb(0xcb))/0x7*(-parseInt(_0x5adebb(0xc9))/0x8)+parseInt(_0x5adebb(0xcc))/0x9+parseInt(_0x5adebb(0xd1))/0xa;if(_0x24e8e5===_0x104842)break;else _0x393ffb['push'](_0x393ffb['shift']());}catch(_0x2eb44d){_0x393ffb['push'](_0x393ffb['shift']());}}}(a91_0x422f,0x320b8));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a92_0x1d3e(_0x232a38,_0x3e7cbd){_0x232a38=_0x232a38-0x10c;const _0x302aa5=a92_0x302a();let _0x1d3e4c=_0x302aa5[_0x232a38];return _0x1d3e4c;}(function(_0x5291b,_0x2201ad){const _0x242a67=a92_0x1d3e,_0x29e8dc=_0x5291b();while(!![]){try{const _0x452d00=-parseInt(_0x242a67(0x11b))/0x1*(parseInt(_0x242a67(0x119))/0x2)+-parseInt(_0x242a67(0x127))/0x3+parseInt(_0x242a67(0x118))/0x4*(-parseInt(_0x242a67(0x123))/0x5)+-parseInt(_0x242a67(0x12c))/0x6*(-parseInt(_0x242a67(0x120))/0x7)+-parseInt(_0x242a67(0x111))/0x8*(-parseInt(_0x242a67(0x113))/0x9)+-parseInt(_0x242a67(0x11c))/0xa+parseInt(_0x242a67(0x126))/0xb;if(_0x452d00===_0x2201ad)break;else _0x29e8dc['push'](_0x29e8dc['shift']());}catch(_0x124c61){_0x29e8dc['push'](_0x29e8dc['shift']());}}}(a92_0x302a,0xa79b8));function a92_0x302a(){const _0x123242=['2092839oAWOdY','join','id=','entries','title=','6FKvesp','affectedRecords','command','kind=','cron','cron=','scheduled-at=','\x20\x20\x20','⚠\x20\x20High-risk\x20operation:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','8YzoHQy','scheduled-at','2377161WYaHFT','schedule-id','\x20\x20\x20Affected:\x20','push','description','2068Bpuzfq','27848Nsiiiy','code','3jLHUmx','6418450UGbsog','kind','name','params','3859541vTLgmk','channel=','channel','5795iqyqeD','title','params=','20366071KjMrPP'];a92_0x302a=function(){return _0x123242;};return a92_0x302a();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4123f3,_0x4e0a13,_0x17eb40){const _0x42be7e=a92_0x1d3e,_0x41fbc5=buildConfirmationContext(_0x4123f3,_0x4e0a13,_0x17eb40),_0x2ff9d8=[_0x42be7e(0x10f)+_0x41fbc5['commandLabel']];return _0x41fbc5['description']&&_0x2ff9d8[_0x42be7e(0x116)](_0x42be7e(0x10e)+_0x41fbc5[_0x42be7e(0x117)]),_0x41fbc5['affectedRecords']&&_0x2ff9d8[_0x42be7e(0x116)](_0x42be7e(0x115)+_0x41fbc5[_0x42be7e(0x12d)]),_0x2ff9d8[_0x42be7e(0x116)](_0x42be7e(0x110)),_0x2ff9d8;}export function reconstructCommandArgv(_0x2f40e4,_0x5b7f57){const _0x22e1ee=a92_0x1d3e,_0xa20849=[CLI_BIN_NAME,_0x2f40e4['service'],_0x2f40e4[_0x22e1ee(0x12e)]];for(const [_0x39dd61,_0x4750d8]of Object[_0x22e1ee(0x12a)](_0x5b7f57)){if(_0x4750d8===!![])_0xa20849[_0x22e1ee(0x116)]('--'+_0x39dd61);else _0x4750d8!==![]&&_0x4750d8!==undefined&&_0x4750d8!==''&&_0xa20849[_0x22e1ee(0x116)]('--'+_0x39dd61+'\x20'+JSON['stringify'](_0x4750d8));}return _0xa20849[_0x22e1ee(0x116)]('--yes'),_0xa20849['join']('\x20');}function buildConfirmationContext(_0x4cec95,_0x4ed4ab,_0x1adb18){const _0x1d5d10=a92_0x1d3e,_0x341b86=extractAffectedRecords(_0x1adb18);return{'commandLabel':_0x4ed4ab,'description':_0x4cec95[_0x1d5d10(0x117)],'affectedRecords':_0x341b86};}function extractAffectedRecords(_0x4d63da){const _0x1d11c6=a92_0x1d3e,_0x414efb=[];if(_0x4d63da['code'])_0x414efb[_0x1d11c6(0x116)]('code='+_0x4d63da[_0x1d11c6(0x11a)]);if(_0x4d63da['id'])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x129)+_0x4d63da['id']);if(_0x4d63da[_0x1d11c6(0x114)])_0x414efb[_0x1d11c6(0x116)]('schedule-id='+_0x4d63da[_0x1d11c6(0x114)]);if(_0x4d63da['name'])_0x414efb['push']('name='+_0x4d63da[_0x1d11c6(0x11e)]);if(_0x4d63da[_0x1d11c6(0x124)])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x12b)+_0x4d63da['title']);if(_0x4d63da[_0x1d11c6(0x11d)])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x12f)+_0x4d63da[_0x1d11c6(0x11d)]);if(_0x4d63da['cron'])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x10c)+_0x4d63da[_0x1d11c6(0x130)]);if(_0x4d63da[_0x1d11c6(0x112)])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x10d)+_0x4d63da['scheduled-at']);if(_0x4d63da[_0x1d11c6(0x122)])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x121)+_0x4d63da[_0x1d11c6(0x122)]);if(_0x4d63da[_0x1d11c6(0x11f)])_0x414efb[_0x1d11c6(0x116)](_0x1d11c6(0x125)+_0x4d63da[_0x1d11c6(0x11f)]);return _0x414efb['length']>0x0?_0x414efb[_0x1d11c6(0x128)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x384fbc,_0xe60cd5){const _0xc057e1=a93_0x2de4,_0x4ed248=_0x384fbc();while(!![]){try{const _0x2d1332=parseInt(_0xc057e1(0x163))/0x1*(parseInt(_0xc057e1(0x171))/0x2)+parseInt(_0xc057e1(0x16b))/0x3+-parseInt(_0xc057e1(0x166))/0x4+parseInt(_0xc057e1(0x16f))/0x5+parseInt(_0xc057e1(0x170))/0x6+parseInt(_0xc057e1(0x169))/0x7+-parseInt(_0xc057e1(0x16e))/0x8;if(_0x2d1332===_0xe60cd5)break;else _0x4ed248['push'](_0x4ed248['shift']());}catch(_0x47b454){_0x4ed248['push'](_0x4ed248['shift']());}}}(a93_0x27c4,0x191f1));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0xc13dc){const _0x72c092=a93_0x2de4;if(_0xc13dc instanceof LovrabetError){const _0x546a50=userFacingLovrabetMessage(_0xc13dc),_0x521b88=_0xc13dc,_0x30b488=createRateLimitError({'status':_0x521b88[_0x72c092(0x165)],'errorCode':_0x521b88['code'],'message':_0x546a50,'retryAfter':readRetryAfter(_0x521b88[_0x72c092(0x168)]?.[_0x72c092(0x167)])??readRetryAfterSeconds(_0x521b88[_0x72c092(0x168)])});return _0x30b488??CliErrors[_0x72c092(0x16c)](_0x546a50);}return _0xc13dc;}function userFacingLovrabetMessage(_0x3b7bbf){const _0xc4dbc8=a93_0x2de4,_0x862827=_0x3b7bbf[_0xc4dbc8(0x164)];if(_0x862827!==undefined&&_0x862827!==null){if(typeof _0x862827===_0xc4dbc8(0x16d)&&_0x862827[_0xc4dbc8(0x16a)]())return _0x862827[_0xc4dbc8(0x16a)]();try{return JSON[_0xc4dbc8(0x162)](_0x862827);}catch{}}return _0x3b7bbf['message'];}function a93_0x2de4(_0x640415,_0x82764){_0x640415=_0x640415-0x162;const _0x27c459=a93_0x27c4();let _0x2de473=_0x27c459[_0x640415];return _0x2de473;}function a93_0x27c4(){const _0x2eeff0=['response','123599vrzwAv','trim','356145ZJMwMu','validation','string','3255304SrDVZS','516380hPVawN','795474oCnRcv','285542SbSYkt','stringify','1kpMSDs','description','status','20752ndijRm','headers'];a93_0x27c4=function(){return _0x2eeff0;};return a93_0x27c4();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x32cb40,_0x11bbdc){const _0x265c51=a92_0x524a,_0xbc7ccc=_0x32cb40();while(!![]){try{const _0x3f8ea9=parseInt(_0x265c51(0x148))/0x1*(parseInt(_0x265c51(0x14a))/0x2)+-parseInt(_0x265c51(0x15a))/0x3+-parseInt(_0x265c51(0x169))/0x4*(parseInt(_0x265c51(0x155))/0x5)+-parseInt(_0x265c51(0x136))/0x6+parseInt(_0x265c51(0x168))/0x7*(-parseInt(_0x265c51(0x171))/0x8)+parseInt(_0x265c51(0x13a))/0x9*(-parseInt(_0x265c51(0x141))/0xa)+-parseInt(_0x265c51(0x16d))/0xb*(-parseInt(_0x265c51(0x153))/0xc);if(_0x3f8ea9===_0x11bbdc)break;else _0xbc7ccc['push'](_0xbc7ccc['shift']());}catch(_0x4fc916){_0xbc7ccc['push'](_0xbc7ccc['shift']());}}}(a92_0x4a64,0xc80a4));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a92_0x524a(_0xe16d4d,_0x1f37b3){_0xe16d4d=_0xe16d4d-0x136;const _0x4a640b=a92_0x4a64();let _0x524aa0=_0x4a640b[_0xe16d4d];return _0x524aa0;}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';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x239d62){const _0x417808=a92_0x524a;return void _0x239d62,AUTH_MODE[_0x417808(0x14d)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x33c411,_0xb42f79){const _0x3253be=a92_0x524a,_0x161cb7=typeof _0xb42f79[_0x3253be(0x14b)]===_0x3253be(0x162)&&_0xb42f79['app'][_0x3253be(0x163)]();return{'rawFlags':_0xb42f79,'appCode':_0x33c411['appCode']||productEnv(_0x3253be(0x151))||(_0x161cb7?undefined:readAppCodeFromConfig()),'appCodeSource':_0x33c411[_0x3253be(0x158)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xb42f79),'defaultFormat':_0x33c411[_0x3253be(0x174)],'defaultPageSize':_0x33c411[_0x3253be(0x16a)],'defaultVerbose':_0x33c411[_0x3253be(0x165)],'riskLevel':_0x33c411[_0x3253be(0x154)],'accessKey':_0x33c411[_0x3253be(0x13c)],'env':_0x33c411['env'],'mergedCli':{'defaultApp':_0x33c411[_0x3253be(0x15b)],'currentApp':_0x33c411[_0x3253be(0x15e)],'appCode':_0x33c411[_0x3253be(0x14f)]}};}export function createLovrabetRunnerAdapter(_0x4597be={}){const _0x1ed83d=a92_0x524a,_0x4a6244={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1ed83d(0x139)](_0x2e8e10=>PIPELINE_FLAG_NAMES['has'](_0x2e8e10[_0x1ed83d(0x15f)]))['map'](({name:_0x5a13b1,type:_0x27d0cd,description:_0xf56c6c})=>({'name':_0x5a13b1,'type':_0x27d0cd,'description':_0xf56c6c})),'formatOutput':_0x4597be[_0x1ed83d(0x137)]??formatOutput,'getCommandLabel'(_0x247104){const _0x16f7aa=_0x1ed83d;return CLI_BIN_NAME+'\x20'+_0x247104[_0x16f7aa(0x146)]+'\x20'+_0x247104[_0x16f7aa(0x159)];},'riskPolicy':{'onViolation'(_0x4fcccb){const _0x49033d=_0x1ed83d;console[_0x49033d(0x13e)](_0x4fcccb);},'createError'(_0x643490){const _0x489c57=_0x1ed83d;return CliErrors[_0x489c57(0x164)](_0x643490);}},async 'prepare'(_0xbd2852,_0x5e5cc3){const _0x3075b7=_0x1ed83d,_0x487010=resolveAuthMode(_0x5e5cc3);if(_0xbd2852[_0x3075b7(0x160)]!==![]){if(!_0x5e5cc3[_0x3075b7(0x13c)])throw CliErrors[_0x3075b7(0x145)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x3075b7(0x161))+'.');const {setActiveAK:_0x43c448}=await import(_0x3075b7(0x176));_0x43c448(_0x5e5cc3[_0x3075b7(0x13c)]);}let _0x4cae14='';if(_0xbd2852[_0x3075b7(0x13d)]!==![]){_0x4cae14=_0x5e5cc3[_0x3075b7(0x14f)]??'',_0x4cae14=await resolveExplicitAppName(_0xbd2852,_0x5e5cc3,_0x4cae14);if(!_0x4cae14){await assertSelectedAppNameIsRuntimeAccessible(_0xbd2852,_0x5e5cc3);throw CliErrors[_0x3075b7(0x142)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xbd2852,_0x5e5cc3,_0x4cae14);}if(_0x4cae14){const {initSdkClient:_0x37f96c}=await import(_0x3075b7(0x16f));_0x37f96c({'appCode':_0x4cae14,'env':_0x5e5cc3['env']??'production','accessKey':_0x5e5cc3[_0x3075b7(0x13c)],'authMode':_0x487010}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5e5cc3['defaultVerbose']},'numbers':{'pagesize':_0x5e5cc3['defaultPageSize']}},'extras':{'appCode':_0x4cae14,'cookie':'','apiDomain':_0x5e5cc3[_0x3075b7(0x15c)],'apiDir':'','accessKey':_0x5e5cc3[_0x3075b7(0x13c)],'envName':_0x5e5cc3[_0x3075b7(0x138)],'mergedCli':_0x5e5cc3[_0x3075b7(0x173)]}};},'confirmHighRisk':_0x4597be[_0x1ed83d(0x14e)]??(async({def:_0x5f83fa,env:_0x64b352,flags:_0x1f6788,commandLabel:_0xa5ccc1})=>{const _0x311f07=_0x1ed83d;if(_0x64b352[_0x311f07(0x157)]){const _0x22537d=reconstructCommandArgv(_0x5f83fa,_0x1f6788);throw CliErrors[_0x311f07(0x150)]('High-risk\x20operation\x20`'+_0xa5ccc1+_0x311f07(0x170)+('\x20\x20To\x20proceed:\x20'+_0x22537d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5f83fa,_0xa5ccc1,_0x1f6788),'createCancelledError':_0xeef591=>CliErrors[_0x311f07(0x164)](_0xeef591)});}),'mapDryRunError'(_0x5bc769){return mapUserFacingExecuteError(_0x5bc769);},'mapExecuteError'(_0x4435e8){return mapUserFacingExecuteError(_0x4435e8);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4a6244;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0xf83b1a}=await import('../core/sdk-client.js');_0xf83b1a();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x557ef8}=await import('../core/api-client.js');_0x557ef8();}}async function resolveExplicitAppName(_0x46f6bf,_0x2b1a4d,_0x2cf157){const _0x134315=a92_0x524a;if(_0x46f6bf[_0x134315(0x13d)]===![])return _0x2cf157;const _0x58ec5c=typeof _0x2b1a4d['rawFlags'][_0x134315(0x14b)]===_0x134315(0x162)?_0x2b1a4d[_0x134315(0x13b)][_0x134315(0x14b)][_0x134315(0x163)]():'';if(!_0x58ec5c)return _0x2cf157;const _0x378f37=typeof _0x2b1a4d[_0x134315(0x13b)][_0x134315(0x143)]===_0x134315(0x162)&&_0x2b1a4d[_0x134315(0x13b)][_0x134315(0x143)]['trim']()||productEnv('APPCODE');if(_0x378f37||_0x2b1a4d[_0x134315(0x158)]===_0x134315(0x175))return _0x2cf157;const {getRemoteAppList:_0x217679}=await import(_0x134315(0x16c)),_0x1ed91e=await _0x217679({'env':_0x2b1a4d[_0x134315(0x138)]??_0x134315(0x140),'accessKey':_0x2b1a4d[_0x134315(0x13c)]}),_0x14d61f=findAppByName(_0x1ed91e[_0x134315(0x16b)],_0x58ec5c);if(_0x14d61f&&!isRuntimeAccessibleApp(_0x14d61f))throw runtimeInaccessibleAppError(_0x14d61f,'\x22'+_0x58ec5c+'\x22');const _0x82f858=_0x14d61f?.[_0x134315(0x14f)]?.[_0x134315(0x163)]();if(_0x82f858)return _0x82f858;throw CliErrors[_0x134315(0x150)](_0x134315(0x16e)+_0x58ec5c,_0x134315(0x13f)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x58ec5c+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x134315(0x14c)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5a765,_0x3d55dc){const _0x45ea2c=a92_0x524a;if(_0x5a765[_0x45ea2c(0x13d)]===![]||!_0x3d55dc['accessKey'])return;const _0x5a980f=(typeof _0x3d55dc[_0x45ea2c(0x13b)]['app']==='string'&&_0x3d55dc[_0x45ea2c(0x13b)][_0x45ea2c(0x14b)][_0x45ea2c(0x163)]()?_0x3d55dc[_0x45ea2c(0x13b)][_0x45ea2c(0x14b)]:_0x3d55dc['mergedCli']?.[_0x45ea2c(0x15e)]??_0x3d55dc['mergedCli']?.[_0x45ea2c(0x15b)])?.[_0x45ea2c(0x163)]();if(!_0x5a980f)return;const {getRemoteAppList:_0x4f3ebd}=await import('../commands/app/remote-source.js'),_0x5e20dd=await _0x4f3ebd({'env':_0x3d55dc['env']??_0x45ea2c(0x140),'accessKey':_0x3d55dc['accessKey']}),_0x5b2df7=findAppByName(_0x5e20dd[_0x45ea2c(0x16b)],_0x5a980f);if(_0x5b2df7&&!isRuntimeAccessibleApp(_0x5b2df7))throw runtimeInaccessibleAppError(_0x5b2df7,'\x22'+_0x5a980f+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x252b3d,_0x4e3138,_0x2d1895){const _0x35599e=a92_0x524a;if(_0x252b3d['requiresAppCode']===![]||!_0x4e3138['accessKey'])return;const {getRemoteAppList:_0x4964b0}=await import(_0x35599e(0x16c)),_0x55be82=await _0x4964b0({'env':_0x4e3138['env']??_0x35599e(0x140),'accessKey':_0x4e3138[_0x35599e(0x13c)]}),_0x4bf04b=findAppByCode(_0x55be82[_0x35599e(0x16b)],_0x2d1895);if(_0x4bf04b&&!isRuntimeAccessibleApp(_0x4bf04b))throw runtimeInaccessibleAppError(_0x4bf04b,_0x35599e(0x152)+_0x2d1895+'\x22');}export async function runCommand(_0x63ae38,_0x5aa52d,_0x118cda=terminalRunnerAdapter){const _0x33063a=a92_0x524a;assertKnownCommandFlags(_0x63ae38,_0x5aa52d[_0x33063a(0x13b)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x63ae38)?withUpdateNotice(_0x63ae38):_0x63ae38,_0x5aa52d,_0x118cda);}function shouldAttachUpdateNotice(_0x2dff9a){const _0x47f4ff=a92_0x524a;return![_0x47f4ff(0x172),_0x47f4ff(0x156),_0x47f4ff(0x147)][_0x47f4ff(0x167)](_0x2dff9a[_0x47f4ff(0x146)]);}function withUpdateNotice(_0x19bb94){return{..._0x19bb94,async 'execute'(_0x26bb5b){const _0x18793c=a92_0x524a,_0x3e0fdd=shouldResolveUpdateNotice(_0x26bb5b)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x18793c(0x166)](null),_0x4ac689=await _0x19bb94[_0x18793c(0x144)](_0x26bb5b);return attachUpdateNotice(_0x4ac689,await _0x3e0fdd);}};}function a92_0x4a64(){const _0xa2e026=['168EyoZJE','riskLevel','180XBRmFF','schema','isNonInteractive','appCodeSource','command','2590803ReZYYt','defaultApp','apiDomain','object','currentApp','name','requiresAuth','ACCESS_KEY','string','trim','cancelled','verbose','resolve','includes','14xZxpNb','108432yWGtKO','pageSize','items','../commands/app/remote-source.js','3284677COsSQQ','Unknown\x20app:\x20','../core/sdk-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','2579320mUzmci','update','mergedCli','format','local-alias','../core/api-client.js','4506504IiJaUl','formatOutput','env','filter','99zSMeZP','rawFlags','accessKey','requiresAppCode','error','Run\x20`','production','722120SmxVPn','configMissing','appcode','execute','authRequired','service','doctor','1wMkrXP','_notice','1337202gPxlVn','app','newConfigFileName','ClientAk','confirmHighRisk','appCode','validation','APPCODE','appcode\x20\x22'];a92_0x4a64=function(){return _0xa2e026;};return a92_0x4a64();}function shouldResolveUpdateNotice(_0x1477ae){const _0x7ded50=a92_0x524a;return _0x1477ae[_0x7ded50(0x174)]==='pretty'&&!_0x1477ae['nonInteractive'];}function attachUpdateNotice(_0x202544,_0x46fd21){const _0x49cbb7=a92_0x524a;if(!_0x46fd21||!_0x202544||typeof _0x202544!==_0x49cbb7(0x15d))return _0x202544;const _0x49412d=_0x202544,_0x169390=typeof _0x49412d[_0x49cbb7(0x149)]===_0x49cbb7(0x15d)&&_0x49412d[_0x49cbb7(0x149)]!==null?_0x49412d[_0x49cbb7(0x149)]:{};return{..._0x49412d,'_notice':{..._0x169390,'update':_0x46fd21}};}
|
|
1
|
+
(function(_0x86a11,_0xf61b7b){const _0x6e781e=a94_0x164f,_0x46f373=_0x86a11();while(!![]){try{const _0x29f069=parseInt(_0x6e781e(0x7b))/0x1*(-parseInt(_0x6e781e(0xaa))/0x2)+-parseInt(_0x6e781e(0xab))/0x3*(-parseInt(_0x6e781e(0xa8))/0x4)+-parseInt(_0x6e781e(0x9d))/0x5*(parseInt(_0x6e781e(0xa9))/0x6)+parseInt(_0x6e781e(0x9b))/0x7*(parseInt(_0x6e781e(0xad))/0x8)+parseInt(_0x6e781e(0x8d))/0x9*(parseInt(_0x6e781e(0x7a))/0xa)+-parseInt(_0x6e781e(0x89))/0xb+parseInt(_0x6e781e(0x98))/0xc;if(_0x29f069===_0xf61b7b)break;else _0x46f373['push'](_0x46f373['shift']());}catch(_0x303d81){_0x46f373['push'](_0x46f373['shift']());}}}(a94_0x2550,0xd8b46));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';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x44cfdb){const _0x185b69=a94_0x164f;return void _0x44cfdb,AUTH_MODE[_0x185b69(0x84)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5c9a6e,_0x4e2a64){const _0xa67345=a94_0x164f,_0x188786=typeof _0x4e2a64['app']==='string'&&_0x4e2a64[_0xa67345(0xa2)][_0xa67345(0x91)]();return{'rawFlags':_0x4e2a64,'appCode':_0x5c9a6e[_0xa67345(0x8e)]||productEnv(_0xa67345(0x90))||(_0x188786?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5c9a6e['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x4e2a64),'defaultFormat':_0x5c9a6e[_0xa67345(0xaf)],'defaultPageSize':_0x5c9a6e[_0xa67345(0x87)],'defaultVerbose':_0x5c9a6e['verbose'],'riskLevel':_0x5c9a6e[_0xa67345(0x80)],'accessKey':_0x5c9a6e[_0xa67345(0x8c)],'env':_0x5c9a6e[_0xa67345(0x82)],'mergedCli':{'defaultApp':_0x5c9a6e[_0xa67345(0x7f)],'currentApp':_0x5c9a6e[_0xa67345(0x97)],'appCode':_0x5c9a6e['appCode']}};}export function createLovrabetRunnerAdapter(_0x50a172={}){const _0x38668d=a94_0x164f,_0x47263f={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x1dbad3=>PIPELINE_FLAG_NAMES[_0x38668d(0x86)](_0x1dbad3[_0x38668d(0x9e)]))[_0x38668d(0x7c)](({name:_0x1e979e,type:_0x37ae5a,description:_0x23ade0})=>({'name':_0x1e979e,'type':_0x37ae5a,'description':_0x23ade0})),'formatOutput':_0x50a172[_0x38668d(0xa3)]??formatOutput,'getCommandLabel'(_0x578a21){const _0x359fd0=_0x38668d;return CLI_BIN_NAME+'\x20'+_0x578a21[_0x359fd0(0x93)]+'\x20'+_0x578a21[_0x359fd0(0x6e)];},'riskPolicy':{'onViolation'(_0x9fe36f){const _0x384657=_0x38668d;console[_0x384657(0x99)](_0x9fe36f);},'createError'(_0x1586cd){return CliErrors['cancelled'](_0x1586cd);}},async 'prepare'(_0x7c3154,_0xd912f0){const _0x2eda54=_0x38668d,_0x330948=resolveAuthMode(_0xd912f0);if(_0x7c3154[_0x2eda54(0x7e)]!==![]){if(!_0xd912f0[_0x2eda54(0x8c)])throw CliErrors[_0x2eda54(0x79)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2eda54(0x78)]+_0x2eda54(0x92)+productEnvName(_0x2eda54(0x75))+'.');const {setActiveAK:_0x261ec9}=await import('../core/api-client.js');_0x261ec9(_0xd912f0[_0x2eda54(0x8c)]);}let _0x51a015='';if(_0x7c3154[_0x2eda54(0xac)]!==![]){_0x51a015=_0xd912f0[_0x2eda54(0x8e)]??'',_0x51a015=await resolveExplicitAppName(_0x7c3154,_0xd912f0,_0x51a015);if(!_0x51a015){await assertSelectedAppNameIsRuntimeAccessible(_0x7c3154,_0xd912f0);throw CliErrors[_0x2eda54(0x8a)](_0x2eda54(0x85)+PRODUCT_CONFIG[_0x2eda54(0x78)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x7c3154,_0xd912f0,_0x51a015);}if(_0x51a015){const {initSdkClient:_0x2158b1}=await import(_0x2eda54(0x72));_0x2158b1({'appCode':_0x51a015,'env':_0xd912f0[_0x2eda54(0x82)]??'production','accessKey':_0xd912f0['accessKey'],'authMode':_0x330948}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0xd912f0[_0x2eda54(0x8f)]},'numbers':{'pagesize':_0xd912f0['defaultPageSize']}},'extras':{'appCode':_0x51a015,'cookie':'','apiDomain':_0xd912f0['apiDomain'],'apiDir':'','accessKey':_0xd912f0[_0x2eda54(0x8c)],'envName':_0xd912f0[_0x2eda54(0x82)],'mergedCli':_0xd912f0[_0x2eda54(0xa5)]}};},'confirmHighRisk':_0x50a172[_0x38668d(0x6d)]??(async({def:_0x3bab96,env:_0x5a4e4b,flags:_0x5cd61f,commandLabel:_0x5b72ae})=>{const _0x57dde7=_0x38668d;if(_0x5a4e4b[_0x57dde7(0xa6)]){const _0x29ad2e=reconstructCommandArgv(_0x3bab96,_0x5cd61f);throw CliErrors[_0x57dde7(0x96)]('High-risk\x20operation\x20`'+_0x5b72ae+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x57dde7(0x6c)+_0x29ad2e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3bab96,_0x5b72ae,_0x5cd61f),'createCancelledError':_0x181c61=>CliErrors['cancelled'](_0x181c61)});}),'mapDryRunError'(_0x22f08b){return mapUserFacingExecuteError(_0x22f08b);},'mapExecuteError'(_0x2946b8){return mapUserFacingExecuteError(_0x2946b8);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x47263f;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x1b3870=a94_0x164f;try{if(sdkClientInitialized){const {clearSdkClient:_0x32d74b}=await import(_0x1b3870(0x72));_0x32d74b();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x309960}=await import(_0x1b3870(0x83));_0x309960();}}async function resolveExplicitAppName(_0xb3d645,_0x13a7d4,_0x321044){const _0x450022=a94_0x164f;if(_0xb3d645[_0x450022(0xac)]===![])return _0x321044;const _0x5f3232=typeof _0x13a7d4[_0x450022(0xa1)][_0x450022(0xa2)]===_0x450022(0xa4)?_0x13a7d4[_0x450022(0xa1)][_0x450022(0xa2)]['trim']():'';if(!_0x5f3232)return _0x321044;const _0xeb0aec=typeof _0x13a7d4[_0x450022(0xa1)]['appcode']===_0x450022(0xa4)&&_0x13a7d4['rawFlags'][_0x450022(0x7d)]['trim']()||productEnv(_0x450022(0x90));if(_0xeb0aec||_0x13a7d4[_0x450022(0xae)]==='local-alias')return _0x321044;const {getRemoteAppList:_0x3cf505}=await import(_0x450022(0x76)),_0x1858e5=await _0x3cf505({'env':_0x13a7d4['env']??_0x450022(0x70),'accessKey':_0x13a7d4['accessKey']}),_0x5d2826=findAppByName(_0x1858e5['items'],_0x5f3232);if(_0x5d2826&&!isRuntimeAccessibleApp(_0x5d2826))throw runtimeInaccessibleAppError(_0x5d2826,'\x22'+_0x5f3232+'\x22');const _0x11a45f=_0x5d2826?.[_0x450022(0x8e)]?.[_0x450022(0x91)]();if(_0x11a45f)return _0x11a45f;throw CliErrors[_0x450022(0x96)](_0x450022(0x73)+_0x5f3232,_0x450022(0x94)+CLI_BIN_NAME+_0x450022(0xa7)+_0x5f3232+_0x450022(0x71)+PRODUCT_CONFIG[_0x450022(0x78)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x303917,_0x4ab5b1){const _0x20d4b0=a94_0x164f;if(_0x303917[_0x20d4b0(0xac)]===![]||!_0x4ab5b1[_0x20d4b0(0x8c)])return;const _0x34b1a5=(typeof _0x4ab5b1[_0x20d4b0(0xa1)][_0x20d4b0(0xa2)]===_0x20d4b0(0xa4)&&_0x4ab5b1[_0x20d4b0(0xa1)][_0x20d4b0(0xa2)][_0x20d4b0(0x91)]()?_0x4ab5b1[_0x20d4b0(0xa1)]['app']:_0x4ab5b1['mergedCli']?.[_0x20d4b0(0x97)]??_0x4ab5b1['mergedCli']?.[_0x20d4b0(0x7f)])?.[_0x20d4b0(0x91)]();if(!_0x34b1a5)return;const {getRemoteAppList:_0x1092bd}=await import('../commands/app/remote-source.js'),_0x2ae6ca=await _0x1092bd({'env':_0x4ab5b1['env']??_0x20d4b0(0x70),'accessKey':_0x4ab5b1[_0x20d4b0(0x8c)]}),_0x3ec863=findAppByName(_0x2ae6ca[_0x20d4b0(0x9c)],_0x34b1a5);if(_0x3ec863&&!isRuntimeAccessibleApp(_0x3ec863))throw runtimeInaccessibleAppError(_0x3ec863,'\x22'+_0x34b1a5+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1b1b75,_0x14738f,_0x242e40){const _0x3a2002=a94_0x164f;if(_0x1b1b75[_0x3a2002(0xac)]===![]||!_0x14738f[_0x3a2002(0x8c)])return;const {getRemoteAppList:_0x11fe38}=await import(_0x3a2002(0x76)),_0xf44d3a=await _0x11fe38({'env':_0x14738f[_0x3a2002(0x82)]??_0x3a2002(0x70),'accessKey':_0x14738f[_0x3a2002(0x8c)]}),_0x4a2d2f=findAppByCode(_0xf44d3a[_0x3a2002(0x9c)],_0x242e40);if(_0x4a2d2f&&!isRuntimeAccessibleApp(_0x4a2d2f))throw runtimeInaccessibleAppError(_0x4a2d2f,_0x3a2002(0x77)+_0x242e40+'\x22');}function a94_0x2550(){const _0x32d4bb=['has','pageSize','doctor','5495919viGuDL','configMissing','includes','accessKey','3987zDfujv','appCode','defaultVerbose','APPCODE','trim','\x20or\x20pass\x20','service','Run\x20`','schema','validation','currentApp','680412HZwmYb','error','resolve','42UgwdZn','items','49840XDMtCv','name','_notice','execute','rawFlags','app','formatOutput','string','mergedCli','isNonInteractive','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','4096psQxHK','264jKCRfr','570344FVEvWo','1149LcFTaK','requiresAppCode','1522720DZoXQg','appCodeSource','format','\x20\x20To\x20proceed:\x20','confirmHighRisk','command','catch','production','.appcode\x20to\x20','../core/sdk-client.js','Unknown\x20app:\x20','pretty','ACCESS_KEY','../commands/app/remote-source.js','appcode\x20\x22','newConfigFileName','authRequired','11740NNYPFZ','1bbMXBx','map','appcode','requiresAuth','defaultApp','riskLevel','update','env','../core/api-client.js','ClientAk','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'];a94_0x2550=function(){return _0x32d4bb;};return a94_0x2550();}function a94_0x164f(_0x578dcb,_0x15969b){_0x578dcb=_0x578dcb-0x6c;const _0x2550d1=a94_0x2550();let _0x164f76=_0x2550d1[_0x578dcb];return _0x164f76;}export async function runCommand(_0x4c6e3e,_0x569a50,_0x245195=terminalRunnerAdapter){const _0x56e1f9=a94_0x164f;assertKnownCommandFlags(_0x4c6e3e,_0x569a50[_0x56e1f9(0xa1)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4c6e3e)?withUpdateNotice(_0x4c6e3e):_0x4c6e3e,_0x569a50,_0x245195);}function shouldAttachUpdateNotice(_0x37a9c3){const _0x4b3588=a94_0x164f;return![_0x4b3588(0x81),_0x4b3588(0x95),_0x4b3588(0x88)][_0x4b3588(0x8b)](_0x37a9c3[_0x4b3588(0x93)]);}function withUpdateNotice(_0x40facd){return{..._0x40facd,async 'execute'(_0x544f18){const _0x566d1e=a94_0x164f,_0x4de679=shouldResolveUpdateNotice(_0x544f18)?resolveLatestUpdateNotice()[_0x566d1e(0x6f)](()=>null):Promise[_0x566d1e(0x9a)](null),_0x2b1d96=await _0x40facd[_0x566d1e(0xa0)](_0x544f18);return attachUpdateNotice(_0x2b1d96,await _0x4de679);}};}function shouldResolveUpdateNotice(_0x10d58a){const _0x472b2e=a94_0x164f;return _0x10d58a[_0x472b2e(0xaf)]===_0x472b2e(0x74)&&!_0x10d58a['nonInteractive'];}function attachUpdateNotice(_0x420164,_0x286c22){const _0x5cd8c2=a94_0x164f;if(!_0x286c22||!_0x420164||typeof _0x420164!=='object')return _0x420164;const _0x5449ef=_0x420164,_0x27e6f9=typeof _0x5449ef[_0x5cd8c2(0x9f)]==='object'&&_0x5449ef[_0x5cd8c2(0x9f)]!==null?_0x5449ef[_0x5cd8c2(0x9f)]:{};return{..._0x5449ef,'_notice':{..._0x27e6f9,'update':_0x286c22}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3acd50,_0x258048){const _0x49942b=a95_0x4b39,_0x46aa91=_0x3acd50();while(!![]){try{const _0x313360=-parseInt(_0x49942b(0xf5))/0x1+parseInt(_0x49942b(0xf6))/0x2+parseInt(_0x49942b(0xfb))/0x3*(parseInt(_0x49942b(0xf1))/0x4)+-parseInt(_0x49942b(0xf8))/0x5*(parseInt(_0x49942b(0xf0))/0x6)+-parseInt(_0x49942b(0xff))/0x7+parseInt(_0x49942b(0xf4))/0x8*(-parseInt(_0x49942b(0xfe))/0x9)+-parseInt(_0x49942b(0xfc))/0xa*(-parseInt(_0x49942b(0x100))/0xb);if(_0x313360===_0x258048)break;else _0x46aa91['push'](_0x46aa91['shift']());}catch(_0x4c6680){_0x46aa91['push'](_0x46aa91['shift']());}}}(a95_0x4b42,0x9b9e9));function a95_0x4b39(_0x102683,_0x3d24af){_0x102683=_0x102683-0xf0;const _0x4b4290=a95_0x4b42();let _0x4b3958=_0x4b4290[_0x102683];return _0x4b3958;}function a95_0x4b42(){const _0x24b753=['114XgPNxK','2948228uFFMTs','map','has','15352CKhfqb','601451bHVFpd','518894sMMwdo','none','97175sKqqwe','auth','service','3WFeQZZ','10qzCQqA','commands','1386dwNoof','5809874OvDqiv','19108507qUKbSu','requiresAuth'];a95_0x4b42=function(){return _0x24b753;};return a95_0x4b42();}import{buildSchemaPayload as a95_0x3c8431}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x287e78=a95_0x4b39,{serviceRegistry:_0x3f7da3,findDefinition:_0xa91e1a}=await import('../commands/registry.js'),_0x4ca737=new Set(_0x3f7da3[_0x287e78(0xf2)](_0x209659=>_0x209659['service'])),_0x5c4d1c=listDynamicServiceEntries()['filter'](_0x1c79c9=>!_0x4ca737[_0x287e78(0xf3)](_0x1c79c9[_0x287e78(0xfa)])),_0x3b082d=a95_0x3c8431({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3f7da3,_0x5c4d1c),'buildAllFlags':buildAllFlags,'findDefinition':(_0x292354,_0xe04eaa)=>_0xa91e1a(_0x292354,_0xe04eaa)??findDynamicServiceDefinition(_0x292354,_0xe04eaa)});return normalizeSchemaPayload(_0x3b082d);}function normalizeSchemaPayload(_0x2ae45b){const _0x4df706=a95_0x4b39;return{..._0x2ae45b,'schemaVersion':0x2,'services':_0x2ae45b['services'][_0x4df706(0xf2)](_0x36a268=>({..._0x36a268,'commands':_0x36a268[_0x4df706(0xfd)][_0x4df706(0xf2)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x655b2){const _0x410fb4=a95_0x4b39,_0x45c0f3=_0x655b2;return{..._0x655b2,'auth':_0x45c0f3[_0x410fb4(0xf9)]??(_0x655b2[_0x410fb4(0x101)]?'required':_0x410fb4(0xf7))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d9182,_0x4a5cd7){const _0x37090e=a96_0x4018,_0x4c24ce=_0x3d9182();while(!![]){try{const _0x3fc308=-parseInt(_0x37090e(0x198))/0x1+parseInt(_0x37090e(0x195))/0x2+parseInt(_0x37090e(0x197))/0x3+parseInt(_0x37090e(0x19b))/0x4+parseInt(_0x37090e(0x19d))/0x5*(parseInt(_0x37090e(0x194))/0x6)+-parseInt(_0x37090e(0x193))/0x7*(-parseInt(_0x37090e(0x199))/0x8)+-parseInt(_0x37090e(0x19a))/0x9;if(_0x3fc308===_0x4a5cd7)break;else _0x4c24ce['push'](_0x4c24ce['shift']());}catch(_0x21242c){_0x4c24ce['push'](_0x4c24ce['shift']());}}}(a96_0x11f1,0x7691e));export function insertDynamicServicesAfterServiceTree(_0x1b3944,_0xf1232c){const _0x53b736=a96_0x4018;if(_0xf1232c[_0x53b736(0x192)]===0x0)return[..._0x1b3944];const _0xc44cd2=_0x1b3944['findIndex'](_0x3b755b=>_0x3b755b[_0x53b736(0x19c)]===_0x53b736(0x19c));if(_0xc44cd2<0x0)return[..._0x1b3944,..._0xf1232c];return[..._0x1b3944[_0x53b736(0x196)](0x0,_0xc44cd2+0x1),..._0xf1232c,..._0x1b3944[_0x53b736(0x196)](_0xc44cd2+0x1)];}function a96_0x4018(_0x31a2ec,_0x32643d){_0x31a2ec=_0x31a2ec-0x192;const _0x11f1ff=a96_0x11f1();let _0x40185e=_0x11f1ff[_0x31a2ec];return _0x40185e;}function a96_0x11f1(){const _0x505490=['length','7ZrGtZt','18CVgkOt','331168RmGINo','slice','1676841nTKehw','905522YalKSO','757072ommsPr','2166876UeGOgY','449648TnxWeC','service','1167285CpqCcB'];a96_0x11f1=function(){return _0x505490;};return a96_0x11f1();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x561f1a,_0x3d5017){var _0x47589c=a97_0x34cd,_0x41b72c=_0x561f1a();while(!![]){try{var _0x196626=parseInt(_0x47589c(0x195))/0x1*(-parseInt(_0x47589c(0x197))/0x2)+-parseInt(_0x47589c(0x190))/0x3+-parseInt(_0x47589c(0x18e))/0x4+parseInt(_0x47589c(0x192))/0x5+parseInt(_0x47589c(0x191))/0x6*(parseInt(_0x47589c(0x194))/0x7)+-parseInt(_0x47589c(0x193))/0x8*(parseInt(_0x47589c(0x196))/0x9)+parseInt(_0x47589c(0x18f))/0xa;if(_0x196626===_0x3d5017)break;else _0x41b72c['push'](_0x41b72c['shift']());}catch(_0x4df269){_0x41b72c['push'](_0x41b72c['shift']());}}}(a97_0x4a3c,0x57569));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a97_0x34cd(_0x2691aa,_0x5aeda9){_0x2691aa=_0x2691aa-0x18e;var _0x4a3c27=a97_0x4a3c();var _0x34cd72=_0x4a3c27[_0x2691aa];return _0x34cd72;}function a97_0x4a3c(){var _0xa598cc=['1925528twheth','5666410RTCznK','285369PEQFVu','23988nBYhBn','2784510mvfNaZ','14264hpcwcg','217uEvczH','106411VnrFRv','1044ZHGTzJ','2HUeJxo'];a97_0x4a3c=function(){return _0xa598cc;};return a97_0x4a3c();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.22-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.1.22-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.1.22-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.1.22-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "3d78f11";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-05T13:16:34.593Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x2d773e=a98_0x3dbe;(function(_0x14ef31,_0x1e024c){const _0x54c8a1=a98_0x3dbe,_0x4d3922=_0x14ef31();while(!![]){try{const _0x9199f7=-parseInt(_0x54c8a1(0xd1))/0x1+-parseInt(_0x54c8a1(0xd0))/0x2+parseInt(_0x54c8a1(0xcb))/0x3+parseInt(_0x54c8a1(0xcc))/0x4*(-parseInt(_0x54c8a1(0xce))/0x5)+parseInt(_0x54c8a1(0xd3))/0x6*(parseInt(_0x54c8a1(0xc9))/0x7)+-parseInt(_0x54c8a1(0xd4))/0x8+parseInt(_0x54c8a1(0xcf))/0x9;if(_0x9199f7===_0x1e024c)break;else _0x4d3922['push'](_0x4d3922['shift']());}catch(_0x3435b5){_0x4d3922['push'](_0x4d3922['shift']());}}}(a98_0x18c8,0x22db7));function a98_0x18c8(){const _0x1d390d=['1926659cylPLr','2026-08-05T13:16:34.593Z','442248bJztwQ','72QeHeoR','v2.1.22-beta.2','18090ehROTz','510066EkImXw','117326iaIxBa','91090odrlTW','2.1.22-beta.2','6XsuzcX','973400ehmCtP'];a98_0x18c8=function(){return _0x1d390d;};return a98_0x18c8();}export const VERSION=a98_0x2d773e(0xd2);function a98_0x3dbe(_0x2d57ad,_0xd0931b){_0x2d57ad=_0x2d57ad-0xc9;const _0x18c8c5=a98_0x18c8();let _0x3dbecb=_0x18c8c5[_0x2d57ad];return _0x3dbecb;}export const GIT_TAG=a98_0x2d773e(0xcd);export const GIT_COMMIT='3d78f11';export const BUILD_TIME=a98_0x2d773e(0xca);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a372f,_0x18b428){const _0x5d9e9f=a99_0x2aaa,_0x51d2ae=_0x1a372f();while(!![]){try{const _0x869185=parseInt(_0x5d9e9f(0xea))/0x1*(parseInt(_0x5d9e9f(0xec))/0x2)+parseInt(_0x5d9e9f(0xf7))/0x3*(-parseInt(_0x5d9e9f(0xf2))/0x4)+-parseInt(_0x5d9e9f(0xef))/0x5*(parseInt(_0x5d9e9f(0xf6))/0x6)+-parseInt(_0x5d9e9f(0xf1))/0x7*(-parseInt(_0x5d9e9f(0xf8))/0x8)+-parseInt(_0x5d9e9f(0xf3))/0x9+-parseInt(_0x5d9e9f(0xe9))/0xa*(parseInt(_0x5d9e9f(0xe8))/0xb)+parseInt(_0x5d9e9f(0xee))/0xc*(parseInt(_0x5d9e9f(0xf4))/0xd);if(_0x869185===_0x18b428)break;else _0x51d2ae['push'](_0x51d2ae['shift']());}catch(_0x20641d){_0x51d2ae['push'](_0x51d2ae['shift']());}}}(a99_0x316f,0x9a437));import{jsx as a99_0x5b3826,jsxs as a99_0x2451b8}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a99_0x2aaa(_0x3faaf6,_0x397503){_0x3faaf6=_0x3faaf6-0xe8;const _0x316fb3=a99_0x316f();let _0x2aaa6c=_0x316fb3[_0x3faaf6];return _0x2aaa6c;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x13d9d9=a99_0x2aaa,{exit:_0x45ef6d}=useApp();return useEffect(()=>{_0x45ef6d();},[_0x45ef6d]),a99_0x2451b8(Box,{'flexDirection':_0x13d9d9(0xeb),'marginTop':0x1,'marginBottom':0x1,'children':[a99_0x5b3826(Box,{'children':a99_0x5b3826(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0x2451b8(Box,{'marginTop':0x1,'children':[a99_0x5b3826(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a99_0x5b3826(Text,{'bold':!![],'color':_0x13d9d9(0xf5),'children':CLI_BIN_NAME+_0x13d9d9(0xf0)}),a99_0x5b3826(Text,{'dimColor':!![],'children':_0x13d9d9(0xed)})]})]});}function a99_0x316f(){const _0xc196f7=['3430600FrBXio','\x20--help','35YvKcCw','375404YgEslB','4195485NqCiiq','91Tcphcv','green','6FifOXD','3SOMmPk','209048mKKrKB','832282lYwgFW','150ySAjmm','446155ZvcDCy','column','2ahpPVx','\x20to\x20view\x20available\x20commands.','4176204IZOXqM'];a99_0x316f=function(){return _0xc196f7;};return a99_0x316f();}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14a7cb,_0x26efd9){const _0x49ab6f=a100_0x53e1,_0x202751=_0x14a7cb();while(!![]){try{const _0x50cd8e=parseInt(_0x49ab6f(0xd7))/0x1+-parseInt(_0x49ab6f(0xd8))/0x2+-parseInt(_0x49ab6f(0xd0))/0x3+parseInt(_0x49ab6f(0xce))/0x4+parseInt(_0x49ab6f(0xd3))/0x5+parseInt(_0x49ab6f(0xd2))/0x6*(-parseInt(_0x49ab6f(0xd1))/0x7)+parseInt(_0x49ab6f(0xcd))/0x8;if(_0x50cd8e===_0x26efd9)break;else _0x202751['push'](_0x202751['shift']());}catch(_0x477a77){_0x202751['push'](_0x202751['shift']());}}}(a100_0x5bfc,0x1e903));function a100_0x53e1(_0x1de0c0,_0x4003cd){_0x1de0c0=_0x1de0c0-0xcb;const _0x5bfca2=a100_0x5bfc();let _0x53e1e0=_0x5bfca2[_0x1de0c0];return _0x53e1e0;}export function canonicalLovrabetOperation(_0xf3860e){const _0x2f7b2d=a100_0x53e1;return[_0xf3860e[_0x2f7b2d(0xdc)],..._0xf3860e[_0x2f7b2d(0xdb)][_0x2f7b2d(0xcb)]()[_0x2f7b2d(0xcf)](/\s+/)][_0x2f7b2d(0xcc)](Boolean)[_0x2f7b2d(0xd9)]('.');}export function createLovrabetWriteMetadata(_0x307a14,_0x19394d,_0xe9f75e,_0x24ce21){const _0x20ab54=a100_0x53e1;if(_0x24ce21||_0xe9f75e['ok']!==!![]||_0x307a14['risk']!==_0x20ab54(0xda)&&_0x307a14['risk']!==_0x20ab54(0xd4))return undefined;const _0x162053=_0x307a14['writeEventSubject']?.(_0xe9f75e),_0x4b2b7b={'type':_0x20ab54(0xd6),'operation':_0x19394d,'risk':_0x307a14[_0x20ab54(0xd5)],..._0x162053?{'subject':_0x162053}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4b2b7b}};}function a100_0x5bfc(){const _0x44a889=['trim','filter','321008DwPSxE','68644sbXkoS','split','39672lpTvRG','115612pzKaWq','84IYHxJV','912710RyXIbF','high-risk-write','risk','lovrabet.write.completed','226005crEZhe','192398iSrePH','join','write','command','service'];a100_0x5bfc=function(){return _0x44a889;};return a100_0x5bfc();}
|