@lovrabet/lovrabet-cli 2.2.7-beta.1 → 2.3.0-beta.1
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 -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.d.ts +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/init.d.ts +12 -0
- package/lib/commands/config/init.js +1 -0
- package/lib/commands/config/shared.d.ts +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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.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.js +1 -1
- 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.js +1 -1
- 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.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/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.d.ts +11 -0
- package/lib/config/domain-config.js +1 -0
- package/lib/config/schema.d.ts +7 -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.d.ts +4 -0
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.d.ts +10 -3
- 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.d.ts +52 -14
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.d.ts +15 -0
- package/lib/constant/region.js +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.d.ts +2 -0
- package/lib/constant/url.js +1 -1
- package/lib/context.d.ts +2 -6
- 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.d.ts +2 -0
- 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.d.ts +3 -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/postinstall.js +1 -1
- package/lib/runtime/confirmation.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/builtin-skill.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/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.d.ts +15 -0
- package/lib/utils/access-key-redaction.js +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.d.ts +12 -0
- package/lib/utils/cli-version-check.js +1 -0
- package/lib/utils/cli-version-policy.d.ts +12 -0
- package/lib/utils/cli-version-policy.js +1 -0
- 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.d.ts +2 -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/skills/lovrabet/SKILL.md +11 -12
- package/skills/lovrabet/guides/troubleshooting.md +12 -8
- package/skills/lovrabet/references/lovrabet-app.md +1 -1
- package/skills/lovrabet/references/lovrabet-auth.md +7 -25
- package/skills/lovrabet/references/lovrabet-config-commands.md +42 -5
- package/skills/lovrabet/references/lovrabet-config.md +25 -5
- package/skills/lovrabet.manifest.json +3 -3
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x199351,_0x1059bb){const _0x162f4b=a105_0x1ec5,_0x184996=_0x199351();while(!![]){try{const _0x2dcc54=parseInt(_0x162f4b(0x1a4))/0x1+-parseInt(_0x162f4b(0x192))/0x2+parseInt(_0x162f4b(0x194))/0x3+-parseInt(_0x162f4b(0x1a3))/0x4+parseInt(_0x162f4b(0x180))/0x5*(parseInt(_0x162f4b(0x19e))/0x6)+-parseInt(_0x162f4b(0x19c))/0x7*(parseInt(_0x162f4b(0x182))/0x8)+-parseInt(_0x162f4b(0x1a2))/0x9*(-parseInt(_0x162f4b(0x1a5))/0xa);if(_0x2dcc54===_0x1059bb)break;else _0x184996['push'](_0x184996['shift']());}catch(_0x443bfd){_0x184996['push'](_0x184996['shift']());}}}(a105_0x2388,0xa3de9));import{createClient}from'@lovrabet/sdk';function a105_0x2388(){const _0x189b26=['Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','accessKey','dataset_','sql','28fwacDY','column','5616174FOxVym','validation','appCode','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','79749LTgIYt','1682436aUVRCZ','872110HgBwUd','590JrkTWq','batchCreate',']\x20must\x20be\x20an\x20object.','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','5MbnJzf','function','857752CDegcK','field','update','data\x20aggregate\x20--params.aggregate[','execute','isArray','getOne','runtimeDomain','env','aggregate','delete','models','invokeSource','object','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','2539516WgzbqT','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','1378542sIuuJD','string','authMode','bff'];a105_0x2388=function(){return _0x189b26;};return a105_0x2388();}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a105_0x1ec5(_0x2c601e,_0x124cd6){_0x2c601e=_0x2c601e-0x17f;const _0x238832=a105_0x2388();let _0x1ec5bf=_0x238832[_0x2c601e];return _0x1ec5bf;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x1ac4f8){const _0x11547b=a105_0x1ec5;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x1ac4f8[_0x11547b(0x1a0)],'env':_0x1ac4f8[_0x11547b(0x18a)],'runtimeDomain':_0x1ac4f8[_0x11547b(0x189)],'authMode':_0x1ac4f8[_0x11547b(0x196)],..._0x1ac4f8[_0x11547b(0x199)]?{'accessKey':_0x1ac4f8[_0x11547b(0x199)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x11547b(0x18e)]}}});}catch(_0x3b52b3){clearSdkClient();throw _0x3b52b3;}}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(_0x2398cf){const _0x581ee7=a105_0x1ec5,_0x4ed94d=_0x2398cf['aggregate'];if(_0x4ed94d===undefined)return _0x2398cf;if(!Array[_0x581ee7(0x187)](_0x4ed94d))throw CliErrors[_0x581ee7(0x19f)](_0x581ee7(0x1a1));return{..._0x2398cf,'aggregate':_0x4ed94d['map']((_0x3b0993,_0x1b4594)=>{const _0x51bd9a=_0x581ee7;if(!_0x3b0993||typeof _0x3b0993!==_0x51bd9a(0x18f)||Array[_0x51bd9a(0x187)](_0x3b0993))throw CliErrors[_0x51bd9a(0x19f)](_0x51bd9a(0x185)+_0x1b4594+_0x51bd9a(0x1a7));const _0x1c37de=_0x3b0993[_0x51bd9a(0x19d)]??_0x3b0993[_0x51bd9a(0x183)];if(typeof _0x1c37de!==_0x51bd9a(0x195)||_0x1c37de['trim']()==='')throw CliErrors[_0x51bd9a(0x19f)]('data\x20aggregate\x20--params.aggregate['+_0x1b4594+_0x51bd9a(0x191));const _0x30b01f={..._0x3b0993,'column':_0x1c37de};return delete _0x30b01f[_0x51bd9a(0x183)],_0x30b01f;})};}export async function executeData(_0x432de0,_0x413811,_0x52e89b){const _0x1feda6=a105_0x1ec5,_0x5169a6=ensureClient(),_0x1fd47e=_0x1feda6(0x19a)+_0x432de0,_0x4075b6=_0x5169a6[_0x1feda6(0x18d)][_0x1fd47e];if(!_0x4075b6||typeof _0x4075b6[_0x413811]!==_0x1feda6(0x181))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x413811+'\x22.\x20'+_0x1feda6(0x198));if(_0x413811===_0x1feda6(0x1a6))return _0x4075b6[_0x1feda6(0x1a6)](parseBatchCreateItemsFromParams(_0x52e89b));const _0x4137ff=_0x52e89b!==undefined&&_0x52e89b!==null&&!Array[_0x1feda6(0x187)](_0x52e89b)?_0x52e89b:{};switch(_0x413811){case'getOne':{const _0x53d654=_0x4137ff['id'];if(_0x53d654===undefined||_0x53d654===null)throw new Error(_0x1feda6(0x17f));return _0x4075b6[_0x1feda6(0x188)](_0x53d654);}case'update':{const {id:_0x4c7623,..._0x4b78d1}=_0x4137ff;if(_0x4c7623===undefined||_0x4c7623===null)throw new Error(_0x1feda6(0x193));return _0x4075b6[_0x1feda6(0x184)](_0x4c7623,_0x4b78d1);}case _0x1feda6(0x18c):{const _0x46499d=_0x4137ff['id'];if(_0x46499d===undefined||_0x46499d===null)throw new Error(_0x1feda6(0x190));return _0x4075b6[_0x1feda6(0x18c)](_0x46499d);}case _0x1feda6(0x18b):return _0x4075b6[_0x1feda6(0x18b)](normalizeAggregateParams(_0x4137ff));default:return _0x4075b6[_0x413811](_0x4137ff);}}export async function executeSdkSql(_0x2542e8,_0x26f377){const _0x48742b=a105_0x1ec5,_0x5ccd38=ensureClient();return _0x5ccd38[_0x48742b(0x19b)][_0x48742b(0x186)]({'sqlCode':_0x2542e8,'params':_0x26f377});}export async function executeSdkBff(_0x5acdfb,_0x124d9d){const _0x6d9f5=a105_0x1ec5,_0x1e52c5=ensureClient();return _0x1e52c5[_0x6d9f5(0x197)]['execute']({'scriptName':_0x5acdfb,'params':_0x124d9d});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a106_0x18d836=a106_0x1b95;(function(_0x43bf0a,_0x4768fe){const _0xc7051a=a106_0x1b95,_0xfb6151=_0x43bf0a();while(!![]){try{const _0x12f70d=parseInt(_0xc7051a(0x111))/0x1+parseInt(_0xc7051a(0x117))/0x2*(-parseInt(_0xc7051a(0x10f))/0x3)+-parseInt(_0xc7051a(0x115))/0x4+parseInt(_0xc7051a(0x110))/0x5+-parseInt(_0xc7051a(0x108))/0x6*(parseInt(_0xc7051a(0x10a))/0x7)+parseInt(_0xc7051a(0x113))/0x8*(parseInt(_0xc7051a(0x114))/0x9)+-parseInt(_0xc7051a(0x116))/0xa*(-parseInt(_0xc7051a(0x10e))/0xb);if(_0x12f70d===_0x4768fe)break;else _0xfb6151['push'](_0xfb6151['shift']());}catch(_0x4040fd){_0xfb6151['push'](_0xfb6151['shift']());}}}(a106_0x43b1,0x5c365));function a106_0x43b1(){const _0x3e8dcf=['newConfigFileName','12XVDQTL','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','897848PWGOsN','\x20file.','Set\x20appcode\x20via\x20--appcode\x20or\x20','Configure\x20accessKey\x20in\x20','47894KFgJeH','105GVlZHF','863355rWiGAJ','586211XqByNt','\x20or\x20run\x20`','256UGDgEY','92241SHXZuE','754772GzDzfv','780aZVsNo','34488JrcWEs','rate_limited'];a106_0x43b1=function(){return _0x3e8dcf;};return a106_0x43b1();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a106_0x1b95(_0x17bc58,_0x3e32e8){_0x17bc58=_0x17bc58-0x106;const _0x43b1d3=a106_0x43b1();let _0x1b95c4=_0x43b1d3[_0x17bc58];return _0x1b95c4;}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a106_0x18d836(0x10d)+PRODUCT_CONFIG[a106_0x18d836(0x107)]+a106_0x18d836(0x112)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a106_0x18d836(0x10c)+PRODUCT_CONFIG[a106_0x18d836(0x107)]+'.','notInProjectHint':a106_0x18d836(0x109)+PRODUCT_CONFIG[a106_0x18d836(0x107)]+a106_0x18d836(0x10b)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x285f4f,_0x53d773)=>new CliError(a106_0x18d836(0x106),0x2,_0x285f4f,_0x53d773)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x520c73,_0x4d18dc){var _0x5ad08d=a107_0x2074,_0x3903a3=_0x520c73();while(!![]){try{var _0x3fd7e1=-parseInt(_0x5ad08d(0x168))/0x1+-parseInt(_0x5ad08d(0x16b))/0x2+parseInt(_0x5ad08d(0x16a))/0x3*(-parseInt(_0x5ad08d(0x16c))/0x4)+parseInt(_0x5ad08d(0x16d))/0x5+parseInt(_0x5ad08d(0x16e))/0x6+-parseInt(_0x5ad08d(0x167))/0x7+parseInt(_0x5ad08d(0x169))/0x8;if(_0x3fd7e1===_0x4d18dc)break;else _0x3903a3['push'](_0x3903a3['shift']());}catch(_0x222168){_0x3903a3['push'](_0x3903a3['shift']());}}}(a107_0x4aae,0x64b81));function a107_0x2074(_0x296952,_0x541105){_0x296952=_0x296952-0x167;var _0x4aaef9=a107_0x4aae();var _0x207431=_0x4aaef9[_0x296952];return _0x207431;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a107_0x4aae(){var _0x1aebe8=['1629089uNAkBQ','29399FgNrMD','6205744zVQrPB','90LcMVwr','399074LeTzwV','109528zaGQcU','523400ikIRxR','4891620bKetKv'];a107_0x4aae=function(){return _0x1aebe8;};return a107_0x4aae();}import{buildAllFlags as a107_0x359fa4}from'@lovrabet/cli-framework';export function buildAllFlags(_0xaaf1a3){return a107_0x359fa4(_0xaaf1a3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a108_0x37dc(_0x23ed39,_0x6ca80c){_0x23ed39=_0x23ed39-0x16b;const _0x3d4908=a108_0x3d49();let _0x37dc22=_0x3d4908[_0x23ed39];return _0x37dc22;}(function(_0x4f73dd,_0x359a24){const _0x4a39a7=a108_0x37dc,_0x120729=_0x4f73dd();while(!![]){try{const _0x1ab522=-parseInt(_0x4a39a7(0x16d))/0x1*(parseInt(_0x4a39a7(0x16b))/0x2)+-parseInt(_0x4a39a7(0x174))/0x3+parseInt(_0x4a39a7(0x16e))/0x4*(parseInt(_0x4a39a7(0x172))/0x5)+parseInt(_0x4a39a7(0x173))/0x6*(parseInt(_0x4a39a7(0x170))/0x7)+parseInt(_0x4a39a7(0x176))/0x8+parseInt(_0x4a39a7(0x175))/0x9+parseInt(_0x4a39a7(0x16c))/0xa;if(_0x1ab522===_0x359a24)break;else _0x120729['push'](_0x120729['shift']());}catch(_0x5615fe){_0x120729['push'](_0x120729['shift']());}}}(a108_0x3d49,0xcc14a));function a108_0x3d49(){const _0x28fc47=['13GABEWI','126632pPMvKA','body','1379biHoMM','description','165bvgPNR','6558urFqFL','1635060iTpCFC','3725073slGmSn','6296856kqortl','249826SahyYt','5437640yWBiso'];a108_0x3d49=function(){return _0x28fc47;};return a108_0x3d49();}export function dryRun(_0x2dee89,_0x198bc5){const _0x5dbcf6={'method':_0x2dee89,'url':_0x198bc5},_0x502345={'body'(_0x1145b9){const _0x33bd95=a108_0x37dc;return _0x5dbcf6[_0x33bd95(0x16f)]=_0x1145b9,_0x502345;},'description'(_0x1ffae3){const _0x35bd94=a108_0x37dc;return _0x5dbcf6[_0x35bd94(0x171)]=_0x1ffae3,_0x502345;},'build'(){return{..._0x5dbcf6};}};return _0x502345;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x1737cd=a109_0x2c0d;(function(_0xa244e7,_0xb91355){const _0x5f5294=a109_0x2c0d,_0x51638b=_0xa244e7();while(!![]){try{const _0x2f7af2=-parseInt(_0x5f5294(0x19a))/0x1*(parseInt(_0x5f5294(0x19d))/0x2)+-parseInt(_0x5f5294(0x19c))/0x3*(parseInt(_0x5f5294(0x19b))/0x4)+-parseInt(_0x5f5294(0x1a1))/0x5*(parseInt(_0x5f5294(0x1a4))/0x6)+parseInt(_0x5f5294(0x19f))/0x7*(-parseInt(_0x5f5294(0x19e))/0x8)+parseInt(_0x5f5294(0x1a5))/0x9*(-parseInt(_0x5f5294(0x198))/0xa)+-parseInt(_0x5f5294(0x1a2))/0xb+parseInt(_0x5f5294(0x199))/0xc*(parseInt(_0x5f5294(0x1a0))/0xd);if(_0x2f7af2===_0xb91355)break;else _0x51638b['push'](_0x51638b['shift']());}catch(_0x4a881e){_0x51638b['push'](_0x51638b['shift']());}}}(a109_0x5c41,0xb5fde));import{createFlagHelpers}from'@lovrabet/cli-framework';function a109_0x2c0d(_0x69ef98,_0x5c838e){_0x69ef98=_0x69ef98-0x198;const _0x5c41e5=a109_0x5c41();let _0x2c0d0e=_0x5c41e5[_0x69ef98];return _0x2c0d0e;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a109_0x5c41(){const _0x4498a2=['15jBLeUp','11916245JAcmAY','validateFlags','2301354IGkKvt','9qMBAdc','11427980kuXvOA','719016PGlCkV','857ZBStce','778920YdEUTG','3FyUJcF','516lJpfmZ','4480TRDNkS','16674hUGtEf','1274hZAIDz'];a109_0x5c41=function(){return _0x4498a2;};return a109_0x5c41();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a109_0x1737cd(0x1a3)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x414406,_0x268014){const _0x6ad465=a110_0x63b2,_0x3003d3=_0x414406();while(!![]){try{const _0x357d64=parseInt(_0x6ad465(0x154))/0x1*(parseInt(_0x6ad465(0x14c))/0x2)+-parseInt(_0x6ad465(0x158))/0x3+-parseInt(_0x6ad465(0x15a))/0x4+-parseInt(_0x6ad465(0x155))/0x5*(parseInt(_0x6ad465(0x14a))/0x6)+parseInt(_0x6ad465(0x14d))/0x7+parseInt(_0x6ad465(0x14f))/0x8+parseInt(_0x6ad465(0x15c))/0x9*(parseInt(_0x6ad465(0x14e))/0xa);if(_0x357d64===_0x268014)break;else _0x3003d3['push'](_0x3003d3['shift']());}catch(_0x3a829c){_0x3003d3['push'](_0x3003d3['shift']());}}}(a110_0x326d,0xa6bf8));import{createHelpGenerators}from'@lovrabet/cli-framework';function a110_0x326d(){const _0x59e284=['has','331292RXwOHu','1807246QjRHEa','10hMpvaA','758712vCkxDd','generateServiceHelp','generateFullHelp','newConfigFileName','map','2ISOVRg','5JsUolX','\x20or\x20--appcode).','filter','3574173VtNIHn','generateCommandHelp','2771064ePKrst','service','21229119hcnCdw','2855658jsuTfS'];a110_0x326d=function(){return _0x59e284;};return a110_0x326d();}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';function a110_0x63b2(_0x1266dc,_0x3f0862){_0x1266dc=_0x1266dc-0x14a;const _0x326db6=a110_0x326d();let _0x63b28a=_0x326db6[_0x1266dc];return _0x63b28a;}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x548d78=a110_0x63b2;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[_0x548d78(0x152)]+_0x548d78(0x156)});}export function generateCommandHelp(_0x324972){const _0x5e620f=a110_0x63b2;return createGenerators()[_0x5e620f(0x159)](_0x324972);}export function generateServiceHelp(_0xa275f1){const _0x2dac6f=a110_0x63b2;return createGenerators()[_0x2dac6f(0x150)](_0xa275f1);}export function generateFullHelp(){const _0x589f5a=a110_0x63b2;return createGenerators()[_0x589f5a(0x151)]();}function getAnyServiceEntry(_0x1dde58){const _0x32890c=getServiceEntry(_0x1dde58);if(_0x32890c)return _0x32890c;try{return getDynamicServiceEntry(_0x1dde58);}catch{return undefined;}}function getAnyServiceDefinitions(_0x25b0c2){const _0x4daaea=serviceGroups['get'](_0x25b0c2);if(_0x4daaea)return _0x4daaea;try{return getDynamicServiceDefinitions(_0x25b0c2);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x43e36f=a110_0x63b2,_0x561ced=new Set(serviceRegistry[_0x43e36f(0x153)](_0x5b6792=>_0x5b6792[_0x43e36f(0x15b)]));try{return listDynamicServiceEntries()[_0x43e36f(0x157)](_0x5279c2=>!_0x561ced[_0x43e36f(0x14b)](_0x5279c2[_0x43e36f(0x15b)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x159c3b,_0x1e944e){var _0x6c1c9d=a111_0x1226,_0x43d2e0=_0x159c3b();while(!![]){try{var _0x2a2d2d=parseInt(_0x6c1c9d(0x91))/0x1*(parseInt(_0x6c1c9d(0x98))/0x2)+-parseInt(_0x6c1c9d(0x96))/0x3*(parseInt(_0x6c1c9d(0x95))/0x4)+-parseInt(_0x6c1c9d(0x99))/0x5*(-parseInt(_0x6c1c9d(0x94))/0x6)+parseInt(_0x6c1c9d(0x90))/0x7+parseInt(_0x6c1c9d(0x92))/0x8+-parseInt(_0x6c1c9d(0x97))/0x9+-parseInt(_0x6c1c9d(0x93))/0xa*(parseInt(_0x6c1c9d(0x9a))/0xb);if(_0x2a2d2d===_0x1e944e)break;else _0x43d2e0['push'](_0x43d2e0['shift']());}catch(_0x1ea385){_0x43d2e0['push'](_0x43d2e0['shift']());}}}(a111_0x2e98,0x310ce));export{runCommand}from'../framework/runner.js';function a111_0x2e98(){var _0x14ddb4=['44bhlDIW','2594221xAKiKy','271PqmyyT','2411888xCFzeQ','753910ezfnNc','6aDoBJo','5028LDtkDb','297rPqJuf','1881819VARPLQ','886Tuaibp','219330PMfJmP'];a111_0x2e98=function(){return _0x14ddb4;};return a111_0x2e98();}function a111_0x1226(_0x306738,_0xa18863){_0x306738=_0x306738-0x90;var _0x2e98ab=a111_0x2e98();var _0x1226e1=_0x2e98ab[_0x306738];return _0x1226e1;}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';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50ef51,_0x543698){const _0x1c8d3b=a112_0x59b3,_0x457116=_0x50ef51();while(!![]){try{const _0xb7ee92=-parseInt(_0x1c8d3b(0xd9))/0x1*(parseInt(_0x1c8d3b(0xda))/0x2)+parseInt(_0x1c8d3b(0xdf))/0x3*(parseInt(_0x1c8d3b(0xdb))/0x4)+-parseInt(_0x1c8d3b(0xe1))/0x5*(parseInt(_0x1c8d3b(0xe0))/0x6)+-parseInt(_0x1c8d3b(0xe2))/0x7+-parseInt(_0x1c8d3b(0xdc))/0x8+parseInt(_0x1c8d3b(0xde))/0x9+parseInt(_0x1c8d3b(0xe3))/0xa;if(_0xb7ee92===_0x543698)break;else _0x457116['push'](_0x457116['shift']());}catch(_0x3d466b){_0x457116['push'](_0x457116['shift']());}}}(a112_0x344c,0xcf75b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a112_0x59b3(_0x4b4df0,_0x20a189){_0x4b4df0=_0x4b4df0-0xd6;const _0x344c05=a112_0x344c();let _0x59b3ee=_0x344c05[_0x4b4df0];return _0x59b3ee;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a112_0x344c(){const _0x4d86ca=['10MyKxfS','8391957AKMqmb','38242120ooSyGz','error','update','url','message','22DZnEef','104456LzOEOQ','1891024VaYAzV','13469736WYpWwz','format','12242781fLZivu','6LxDkiM','3746082yFToER'];a112_0x344c=function(){return _0x4d86ca;};return a112_0x344c();}export function formatOutput(_0x4f6b71,_0x17de62){const _0x5b4506=a112_0x59b3,_0x575a61=_0x4f6b71['_notice'],{_notice:_0x24163a,..._0x133adc}=_0x4f6b71;void _0x24163a,baseFormatOutput(_0x133adc,_0x17de62),_0x17de62[_0x5b4506(0xdd)]==='pretty'&&printPrettyNotice(_0x575a61);}function printPrettyNotice(_0x29d451){const _0x22cf6a=a112_0x59b3;if(!_0x29d451?.[_0x22cf6a(0xd6)])return;console[_0x22cf6a(0xe4)](_0x29d451['update'][_0x22cf6a(0xd8)]+'\x20('+_0x29d451[_0x22cf6a(0xd6)][_0x22cf6a(0xd7)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1590ac,_0x33d9e7){const _0x531ead=a113_0x2551,_0x10fb49=_0x1590ac();while(!![]){try{const _0x3e0c88=-parseInt(_0x531ead(0x148))/0x1+-parseInt(_0x531ead(0x128))/0x2+-parseInt(_0x531ead(0x133))/0x3*(parseInt(_0x531ead(0x13e))/0x4)+parseInt(_0x531ead(0x140))/0x5*(parseInt(_0x531ead(0x143))/0x6)+parseInt(_0x531ead(0x131))/0x7+-parseInt(_0x531ead(0x130))/0x8*(parseInt(_0x531ead(0x12c))/0x9)+-parseInt(_0x531ead(0x139))/0xa*(-parseInt(_0x531ead(0x149))/0xb);if(_0x3e0c88===_0x33d9e7)break;else _0x10fb49['push'](_0x10fb49['shift']());}catch(_0x5e6f70){_0x10fb49['push'](_0x10fb49['shift']());}}}(a113_0x2316,0x50cbb));export function toKebab(_0x3eaf17){const _0x53bbe3=a113_0x2551;return _0x3eaf17['replace'](/_/g,'-')[_0x53bbe3(0x14f)](/-([A-Z]+)/g,(_0x47995f,_0x3ccf2a)=>'-'+_0x3ccf2a[_0x53bbe3(0x138)]())[_0x53bbe3(0x14f)](/([a-z0-9])([A-Z])/g,(_0x4c0063,_0x2a9f6f,_0x3eb04f)=>_0x2a9f6f+'-'+_0x3eb04f)[_0x53bbe3(0x138)]();}function buildKnownFlags(_0x16a591){const _0x2784ae=a113_0x2551,_0x74c979=new Set();for(const _0x305746 of _0x16a591){_0x74c979[_0x2784ae(0x14e)](_0x305746[_0x2784ae(0x141)]),_0x74c979[_0x2784ae(0x14e)](toCamelCase(_0x305746[_0x2784ae(0x141)]));}for(const _0x197203 of[_0x2784ae(0x144),_0x2784ae(0x136),_0x2784ae(0x14a),_0x2784ae(0x134)]){_0x74c979[_0x2784ae(0x14e)](_0x197203);}for(const _0x50a4e0 of['help',_0x2784ae(0x12a),_0x2784ae(0x12e),_0x2784ae(0x137),'nonInteractive','non-interactive','ci',_0x2784ae(0x12b),_0x2784ae(0x12f)]){_0x74c979[_0x2784ae(0x14e)](_0x50a4e0);}return _0x74c979;}function a113_0x2551(_0x7480f1,_0x4971a3){_0x7480f1=_0x7480f1-0x128;const _0x23168b=a113_0x2316();let _0x2551ff=_0x23168b[_0x7480f1];return _0x2551ff;}function a113_0x2316(){const _0x15d46d=['2108855NYThiw','indexOf','3tsmMxJ','format','string','dryRun','app','toLowerCase','36130UBTKBu','sticky','toUpperCase','corrected','get','1407004TyhTDl','keys','5QcjrYN','name','push','2851782grkYVR','dry-run','set','number','has','95274izniMl','2233ganPrm','yes','slice','original','length','add','replace','947576SAbZYM','boolean','env','global','27QiYRwH','alias','appcode','version','688664clUJjl'];a113_0x2316=function(){return _0x15d46d;};return a113_0x2316();}function buildFlagTypeMap(_0x13acc5){const _0x59d5b1=a113_0x2551,_0x493cd0=new Map();for(const _0x5dcb2d of _0x13acc5){_0x493cd0['set'](_0x5dcb2d[_0x59d5b1(0x141)],_0x5dcb2d['type']),_0x493cd0[_0x59d5b1(0x145)](toCamelCase(_0x5dcb2d[_0x59d5b1(0x141)]),_0x5dcb2d['type']);}return _0x493cd0;}function toCamelCase(_0xcb000a){const _0x1cd3b9=a113_0x2551;return _0xcb000a[_0x1cd3b9(0x14f)](/-([a-z])/g,(_0x1c5a69,_0x25a360)=>_0x25a360[_0x1cd3b9(0x13b)]());}function aliasHandler(_0x28a7bb,_0x3203bd){const _0x122ef2=a113_0x2551,_0xe0a3d1=[];for(const _0x3ce87a of Object[_0x122ef2(0x13f)](_0x28a7bb)){if(_0x3203bd[_0x122ef2(0x147)](_0x3ce87a))continue;const _0x56288e=toKebab(_0x3ce87a);_0x56288e!==_0x3ce87a&&_0x3203bd['has'](_0x56288e)&&_0xe0a3d1[_0x122ef2(0x142)]({'original':_0x3ce87a,'corrected':_0x56288e,'handler':_0x122ef2(0x12d)});}return _0xe0a3d1;}function stickyHandler(_0x302928,_0x1de46f,_0x31b475){const _0x5068b0=a113_0x2551,_0x4882f9=[];for(const [_0x1de192,_0x29285a]of Object['entries'](_0x302928)){if(_0x29285a!==!![])continue;for(let _0x5bbeb4=_0x1de192[_0x5068b0(0x14d)]-0x1;_0x5bbeb4>0x0;_0x5bbeb4--){const _0x12dbf7=_0x1de192[_0x5068b0(0x14b)](0x0,_0x5bbeb4),_0xdc16ad=_0x1de192[_0x5068b0(0x14b)](_0x5bbeb4),_0x2cbb61=toKebab(_0x12dbf7),_0x3a0536=toCamelCase(_0x12dbf7),_0x28e406=_0x1de46f['has'](_0x12dbf7)?_0x12dbf7:_0x1de46f[_0x5068b0(0x147)](_0x2cbb61)?_0x2cbb61:_0x1de46f['has'](_0x3a0536)?_0x3a0536:null;if(!_0x28e406)continue;const _0x21b5ac=_0x31b475[_0x5068b0(0x13d)](_0x28e406)??'string';let _0xa77959;if(_0x21b5ac===_0x5068b0(0x146)){const _0x54cdfe=Number(_0xdc16ad);if(isNaN(_0x54cdfe)||_0xdc16ad==='')continue;_0xa77959=_0x54cdfe;}else{if(_0x21b5ac===_0x5068b0(0x129))continue;else{if(_0xdc16ad==='')continue;_0xa77959=_0xdc16ad;}}_0x4882f9[_0x5068b0(0x142)]({'original':_0x1de192,'corrected':_0x28e406+'='+_0xa77959,'handler':_0x5068b0(0x13a)});break;}}return _0x4882f9;}export function correctFlags(_0x26c7e3,_0x4efae7){const _0xb8454e=a113_0x2551,_0x260d1e=buildKnownFlags(_0x4efae7),_0x407f46=buildFlagTypeMap(_0x4efae7),_0x53f6a3=aliasHandler(_0x26c7e3,_0x260d1e),_0x10a7f4=stickyHandler(_0x26c7e3,_0x260d1e,_0x407f46),_0x501ddb=[..._0x53f6a3,..._0x10a7f4];if(_0x501ddb['length']===0x0)return{'flags':_0x26c7e3,'corrections':[]};const _0x2584f0={..._0x26c7e3},_0x3d452c=new Set();for(const _0x30332e of _0x53f6a3){_0x2584f0[_0x30332e[_0xb8454e(0x13c)]]=_0x26c7e3[_0x30332e['original']],_0x3d452c[_0xb8454e(0x14e)](_0x30332e[_0xb8454e(0x14c)]);}for(const _0x3865cd of _0x10a7f4){const _0x138b4e=_0x3865cd[_0xb8454e(0x13c)][_0xb8454e(0x132)]('='),_0x347584=_0x3865cd[_0xb8454e(0x13c)]['slice'](0x0,_0x138b4e),_0x53336d=_0x3865cd['corrected']['slice'](_0x138b4e+0x1),_0x41389c=_0x407f46[_0xb8454e(0x13d)](_0x347584)??_0xb8454e(0x135);_0x41389c===_0xb8454e(0x146)?_0x2584f0[_0x347584]=Number(_0x53336d):_0x2584f0[_0x347584]=_0x53336d,_0x3d452c[_0xb8454e(0x14e)](_0x3865cd[_0xb8454e(0x14c)]);}for(const _0x19ed38 of _0x3d452c){delete _0x2584f0[_0x19ed38];}return{'flags':_0x2584f0,'corrections':_0x501ddb};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xbcad22,_0x4c07d2){const _0x2575d2=a114_0x3466,_0x68a35a=_0xbcad22();while(!![]){try{const _0xab77b1=-parseInt(_0x2575d2(0x1ed))/0x1+-parseInt(_0x2575d2(0x1f5))/0x2+parseInt(_0x2575d2(0x1f4))/0x3+-parseInt(_0x2575d2(0x1e4))/0x4+parseInt(_0x2575d2(0x1fc))/0x5*(parseInt(_0x2575d2(0x1f3))/0x6)+parseInt(_0x2575d2(0x1e5))/0x7+parseInt(_0x2575d2(0x1e9))/0x8*(parseInt(_0x2575d2(0x1ec))/0x9);if(_0xab77b1===_0x4c07d2)break;else _0x68a35a['push'](_0x68a35a['shift']());}catch(_0x1aff43){_0x68a35a['push'](_0x68a35a['shift']());}}}(a114_0x4807,0xe1d52));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT','MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x546f04){const _0x18cda6=a114_0x3466;if(typeof _0x546f04!==_0x18cda6(0x1e6))return undefined;const _0x2d73f6=_0x546f04[_0x18cda6(0x1ee)]();return _0x2d73f6||undefined;}function buildRetryHint(_0x3cd974){const _0x24bf04=a114_0x3466,_0x315c00=nonEmptyString(_0x3cd974),_0x447627=_0x315c00?/^\d+$/[_0x24bf04(0x1f2)](_0x315c00)?_0x24bf04(0x1eb)+_0x315c00+_0x24bf04(0x1e3):_0x24bf04(0x1f7)+_0x315c00+'.':_0x24bf04(0x1ef);return _0x447627+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}function a114_0x4807(){const _0x5d9e37=['trim','Retry\x20after\x20a\x20short\x20delay.','rateLimited','Retry-After','test','42iBbLOn','1022289ZKJTsi','3650832mGZvLI','isInteger','Retry\x20after\x20','toLowerCase','has','retryAfter','get','1043025BAOqZh','errorCode','message','status','retry-after','\x20seconds\x20before\x20retrying.','1802000FtccCE','12821403dmhUBz','string','toUpperCase','object','6496bNswKQ','function','Wait\x20','6525uwVGnw','1020401uNkvdK'];a114_0x4807=function(){return _0x5d9e37;};return a114_0x4807();}function a114_0x3466(_0x5be14b,_0xec4aeb){_0x5be14b=_0x5be14b-0x1e2;const _0x480759=a114_0x4807();let _0x3466e7=_0x480759[_0x5be14b];return _0x3466e7;}export function createRateLimitError(_0x6baae7){const _0xea54d4=a114_0x3466,_0x112b6e=nonEmptyString(_0x6baae7[_0xea54d4(0x1fd)])?.[_0xea54d4(0x1e7)](),_0x19749e=Number(_0x6baae7[_0xea54d4(0x1ff)])===0x1ad||_0x112b6e!==undefined&&RATE_LIMIT_ERROR_CODES[_0xea54d4(0x1f9)](_0x112b6e);if(!_0x19749e)return undefined;return CliErrors[_0xea54d4(0x1f0)](nonEmptyString(_0x6baae7[_0xea54d4(0x1fe)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x6baae7[_0xea54d4(0x1fa)]));}export function readRetryAfter(_0x17e17b){const _0x5655d0=a114_0x3466;if(!_0x17e17b||typeof _0x17e17b!=='object')return undefined;const _0x381a58=_0x17e17b[_0x5655d0(0x1fb)];if(typeof _0x381a58===_0x5655d0(0x1ea)){const _0x45a4a1=_0x381a58['call'](_0x17e17b,_0x5655d0(0x1f1))??_0x381a58['call'](_0x17e17b,_0x5655d0(0x1e2));return nonEmptyString(_0x45a4a1);}for(const [_0x300766,_0x7d0338]of Object['entries'](_0x17e17b)){if(_0x300766[_0x5655d0(0x1f8)]()===_0x5655d0(0x1e2))return nonEmptyString(_0x7d0338)??(typeof _0x7d0338==='number'?String(_0x7d0338):undefined);}return undefined;}export function readRetryAfterSeconds(_0x3f9d1f){const _0x1b3529=a114_0x3466;if(!_0x3f9d1f||typeof _0x3f9d1f!==_0x1b3529(0x1e8)||Array['isArray'](_0x3f9d1f))return undefined;const _0x5f2b49=_0x3f9d1f['retryAfterSeconds'];if(typeof _0x5f2b49==='number')return Number[_0x1b3529(0x1f6)](_0x5f2b49)&&_0x5f2b49>=0x0?String(_0x5f2b49):undefined;const _0x3913b7=nonEmptyString(_0x5f2b49);return _0x3913b7&&/^\d+$/[_0x1b3529(0x1f2)](_0x3913b7)?_0x3913b7:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115_0x37c4d5=a115_0x3744;(function(_0x41dd30,_0x22e2e0){const _0x2e6fd1=a115_0x3744,_0x108d74=_0x41dd30();while(!![]){try{const _0x416d69=parseInt(_0x2e6fd1(0x1ea))/0x1+parseInt(_0x2e6fd1(0x1f5))/0x2+-parseInt(_0x2e6fd1(0x1f6))/0x3+parseInt(_0x2e6fd1(0x204))/0x4+parseInt(_0x2e6fd1(0x1fd))/0x5+-parseInt(_0x2e6fd1(0x1e4))/0x6+-parseInt(_0x2e6fd1(0x1ef))/0x7*(-parseInt(_0x2e6fd1(0x202))/0x8);if(_0x416d69===_0x22e2e0)break;else _0x108d74['push'](_0x108d74['shift']());}catch(_0xef77f0){_0x108d74['push'](_0x108d74['shift']());}}}(a115_0x477a,0x3c131));import{CliErrors}from'../errors.js';function a115_0x3744(_0x562193,_0x460a65){_0x562193=_0x562193-0x1e2;const _0x477a1c=a115_0x477a();let _0x374450=_0x477a1c[_0x562193];return _0x374450;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a115_0x37c4d5(0x1f7),a115_0x37c4d5(0x1e9),'order-by',a115_0x37c4d5(0x200),a115_0x37c4d5(0x1fb),a115_0x37c4d5(0x1f4),a115_0x37c4d5(0x1e2),a115_0x37c4d5(0x1fc),'pagesize']);function a115_0x477a(){const _0x166f8a=['add','Example:\x20','currentpage','15748OuOvDU','873966lbMXwB','where','Run\x20`','filter','\x20for\x20`','current-page','page-size','568020eVDWGG','stringify','entries','orderby','active','396072GwjHMQ','\x20--help`\x20to\x20see\x20accepted\x20flags.','1921444DcQoKl','page','flags','1970778PWIEcZ','version','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','command','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','select','214502aRuspk','name','data','\x20data\x20filter`.','asc','7VeZVtw','service','validation'];a115_0x477a=function(){return _0x166f8a;};return a115_0x477a();}export function assertKnownCommandFlags(_0x3c7ea2,_0x930d7){const _0x3575e9=a115_0x37c4d5,_0x4b13da=new Set([_0x3575e9(0x1e5)]);for(const _0x951f1a of GLOBAL_FLAGS){_0x4b13da[_0x3575e9(0x1f2)](_0x951f1a[_0x3575e9(0x1eb)]),_0x4b13da[_0x3575e9(0x1f2)](toKebab(_0x951f1a['meowKey']));}for(const _0x408e46 of _0x3c7ea2[_0x3575e9(0x1e3)]??[]){_0x4b13da[_0x3575e9(0x1f2)](_0x408e46[_0x3575e9(0x1eb)]);}for(const [_0x4ed38e,_0x352310]of Object[_0x3575e9(0x1ff)](_0x930d7)){const _0x4c006a=toKebab(_0x4ed38e);if(_0x4b13da['has'](_0x4c006a))continue;if(_0x352310===![]&&_0x4b13da['has']('no-'+_0x4c006a))continue;if(_0x3c7ea2[_0x3575e9(0x1f0)]===_0x3575e9(0x1ec)&&_0x3c7ea2['command']===_0x3575e9(0x1f9)&&FILTER_BODY_FIELDS['has'](_0x4c006a))throw CliErrors[_0x3575e9(0x1f1)]('--'+_0x4c006a+_0x3575e9(0x1e6)+CLI_BIN_NAME+_0x3575e9(0x1ed),_0x3575e9(0x1e8)+(_0x3575e9(0x1f3)+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON[_0x3575e9(0x1fe)]({'where':{'status':{'$eq':_0x3575e9(0x201)}},'orderBy':[{'id':_0x3575e9(0x1ee)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x3575e9(0x1f1)]('Unknown\x20flag\x20--'+_0x4c006a+_0x3575e9(0x1fa)+CLI_BIN_NAME+'\x20'+_0x3c7ea2[_0x3575e9(0x1f0)]+'\x20'+_0x3c7ea2[_0x3575e9(0x1e7)]+'`.',_0x3575e9(0x1f8)+CLI_BIN_NAME+'\x20'+_0x3c7ea2[_0x3575e9(0x1f0)]+'\x20'+_0x3c7ea2[_0x3575e9(0x1e7)]+_0x3575e9(0x203));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x401268,_0xc9dd54){var _0x4bb335=a116_0x43aa,_0x25132b=_0x401268();while(!![]){try{var _0x3883d9=parseInt(_0x4bb335(0x1f9))/0x1+parseInt(_0x4bb335(0x1f7))/0x2*(parseInt(_0x4bb335(0x1fa))/0x3)+parseInt(_0x4bb335(0x1fb))/0x4+parseInt(_0x4bb335(0x1fc))/0x5*(-parseInt(_0x4bb335(0x1f8))/0x6)+-parseInt(_0x4bb335(0x1f4))/0x7+parseInt(_0x4bb335(0x1f5))/0x8+parseInt(_0x4bb335(0x1f6))/0x9*(parseInt(_0x4bb335(0x1f3))/0xa);if(_0x3883d9===_0xc9dd54)break;else _0x25132b['push'](_0x25132b['shift']());}catch(_0x1d1b65){_0x25132b['push'](_0x25132b['shift']());}}}(a116_0xd117,0xa29b5));function a116_0x43aa(_0x255515,_0x26dde6){_0x255515=_0x255515-0x1f3;var _0xd11708=a116_0xd117();var _0x43aaa7=_0xd11708[_0x255515];return _0x43aaa7;}function a116_0xd117(){var _0x3993b1=['5010jRzYhg','1005562RmlDeV','27scTWQs','2936532XtOwPg','5330wYUsmL','899630sUOrHV','8616062HkGVuV','7598792cAiywR','9tpJewZ','1668qLhXnb'];a116_0xd117=function(){return _0x3993b1;};return a116_0xd117();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c2d35,_0x421d51){const _0x519c09=a117_0x1031,_0x56d845=_0x2c2d35();while(!![]){try{const _0x465ce2=parseInt(_0x519c09(0x107))/0x1+parseInt(_0x519c09(0xfd))/0x2+-parseInt(_0x519c09(0x116))/0x3+-parseInt(_0x519c09(0x118))/0x4*(-parseInt(_0x519c09(0x100))/0x5)+-parseInt(_0x519c09(0x119))/0x6*(parseInt(_0x519c09(0x111))/0x7)+parseInt(_0x519c09(0xf6))/0x8+-parseInt(_0x519c09(0x10d))/0x9*(parseInt(_0x519c09(0xf7))/0xa);if(_0x465ce2===_0x421d51)break;else _0x56d845['push'](_0x56d845['shift']());}catch(_0x7b5403){_0x56d845['push'](_0x56d845['shift']());}}}(a117_0x199b,0x8e62e));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x552f00,_0x3bfb72,_0x5f2b94){const _0x73ea9d=a117_0x1031,_0x3e198f=buildConfirmationContext(_0x552f00,_0x3bfb72,_0x5f2b94),_0x52c79d=['⚠\x20\x20High-risk\x20operation:\x20'+_0x3e198f[_0x73ea9d(0x101)]];return _0x3e198f[_0x73ea9d(0x117)]&&_0x52c79d[_0x73ea9d(0x110)](_0x73ea9d(0x108)+_0x3e198f['description']),_0x3e198f[_0x73ea9d(0xf9)]&&_0x52c79d['push'](_0x73ea9d(0xfa)+_0x3e198f[_0x73ea9d(0xf9)]),_0x52c79d[_0x73ea9d(0x110)](_0x73ea9d(0xfb)),_0x52c79d;}function a117_0x1031(_0x8180,_0x4215a5){_0x8180=_0x8180-0xf6;const _0x199bcc=a117_0x199b();let _0x10312c=_0x199bcc[_0x8180];return _0x10312c;}export function reconstructCommandArgv(_0x196c5c,_0x31e012){const _0x5cb2d4=a117_0x1031,_0x156e96=[CLI_BIN_NAME,_0x196c5c[_0x5cb2d4(0x105)],_0x196c5c[_0x5cb2d4(0x112)]];for(const [_0x806c66,_0x323893]of Object['entries'](_0x31e012)){if(_0x323893===!![])_0x156e96[_0x5cb2d4(0x110)]('--'+_0x806c66);else _0x323893!==![]&&_0x323893!==undefined&&_0x323893!==''&&_0x156e96[_0x5cb2d4(0x110)]('--'+_0x806c66+'\x20'+JSON[_0x5cb2d4(0x10c)](_0x323893));}return _0x156e96[_0x5cb2d4(0x110)]('--yes'),_0x156e96['join']('\x20');}function buildConfirmationContext(_0x4e541b,_0x94c701,_0x1b03fd){const _0x36150d=a117_0x1031,_0x16328e=extractAffectedRecords(_0x1b03fd);return{'commandLabel':_0x94c701,'description':_0x4e541b[_0x36150d(0x117)],'affectedRecords':_0x16328e};}function a117_0x199b(){const _0x26ee07=['6zCbBCL','length','name','schedule-id','7642776hTHXed','410ZVeNmf','scheduled-at','affectedRecords','\x20\x20\x20Affected:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','code=','424798rlzgAf','join','schedule-id=','5nYovsg','commandLabel','title=','code','channel','service','cron=','1081958SBaHrN','\x20\x20\x20','kind','params','cron','stringify','196029vqcKdZ','name=','title','push','5065606STDVgP','command','id=','scheduled-at=','kind=','1173252iAIKDO','description','1365092jCCxUU'];a117_0x199b=function(){return _0x26ee07;};return a117_0x199b();}function extractAffectedRecords(_0x56654f){const _0x31f92f=a117_0x1031,_0x288f83=[];if(_0x56654f['code'])_0x288f83[_0x31f92f(0x110)](_0x31f92f(0xfc)+_0x56654f[_0x31f92f(0x103)]);if(_0x56654f['id'])_0x288f83['push'](_0x31f92f(0x113)+_0x56654f['id']);if(_0x56654f[_0x31f92f(0x11c)])_0x288f83[_0x31f92f(0x110)](_0x31f92f(0xff)+_0x56654f[_0x31f92f(0x11c)]);if(_0x56654f[_0x31f92f(0x11b)])_0x288f83[_0x31f92f(0x110)](_0x31f92f(0x10e)+_0x56654f[_0x31f92f(0x11b)]);if(_0x56654f[_0x31f92f(0x10f)])_0x288f83['push'](_0x31f92f(0x102)+_0x56654f[_0x31f92f(0x10f)]);if(_0x56654f[_0x31f92f(0x109)])_0x288f83[_0x31f92f(0x110)](_0x31f92f(0x115)+_0x56654f['kind']);if(_0x56654f[_0x31f92f(0x10b)])_0x288f83['push'](_0x31f92f(0x106)+_0x56654f[_0x31f92f(0x10b)]);if(_0x56654f[_0x31f92f(0xf8)])_0x288f83['push'](_0x31f92f(0x114)+_0x56654f[_0x31f92f(0xf8)]);if(_0x56654f[_0x31f92f(0x104)])_0x288f83['push']('channel='+_0x56654f[_0x31f92f(0x104)]);if(_0x56654f[_0x31f92f(0x10a)])_0x288f83[_0x31f92f(0x110)]('params='+_0x56654f[_0x31f92f(0x10a)]);return _0x288f83[_0x31f92f(0x11a)]>0x0?_0x288f83[_0x31f92f(0xfe)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ebcfc,_0x1f7333){const _0x2d9d65=a118_0x6220,_0x1c0e39=_0x3ebcfc();while(!![]){try{const _0x6d73e=-parseInt(_0x2d9d65(0x1f3))/0x1+-parseInt(_0x2d9d65(0x1ee))/0x2+-parseInt(_0x2d9d65(0x1eb))/0x3*(-parseInt(_0x2d9d65(0x1ec))/0x4)+-parseInt(_0x2d9d65(0x1e7))/0x5+parseInt(_0x2d9d65(0x1ed))/0x6+-parseInt(_0x2d9d65(0x1f1))/0x7+parseInt(_0x2d9d65(0x1ef))/0x8;if(_0x6d73e===_0x1f7333)break;else _0x1c0e39['push'](_0x1c0e39['shift']());}catch(_0x340752){_0x1c0e39['push'](_0x1c0e39['shift']());}}}(a118_0x143c,0x9ad24));function a118_0x6220(_0x546771,_0x3acacf){_0x546771=_0x546771-0x1e4;const _0x143c4b=a118_0x143c();let _0x6220ce=_0x143c4b[_0x546771];return _0x6220ce;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a118_0x143c(){const _0xd95e41=['string','616447ufyUmS','response','validation','headers','5791695tSlDDu','trim','message','code','3312357sjSlzm','4dZTwWL','4097274McbCrn','930976cqokyo','10797168EOEBtm','status','1835554mmXbyS'];a118_0x143c=function(){return _0xd95e41;};return a118_0x143c();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x19180f){const _0x566ce2=a118_0x6220;if(_0x19180f instanceof LovrabetError){const _0x2542c1=userFacingLovrabetMessage(_0x19180f),_0x37736d=_0x19180f,_0x5a101f=createRateLimitError({'status':_0x37736d[_0x566ce2(0x1f0)],'errorCode':_0x37736d[_0x566ce2(0x1ea)],'message':_0x2542c1,'retryAfter':readRetryAfter(_0x37736d[_0x566ce2(0x1e4)]?.[_0x566ce2(0x1e6)])??readRetryAfterSeconds(_0x37736d[_0x566ce2(0x1e4)])});return _0x5a101f??CliErrors[_0x566ce2(0x1e5)](_0x2542c1);}return _0x19180f;}function userFacingLovrabetMessage(_0x29380d){const _0x5b3ee9=a118_0x6220,_0x49f6a4=_0x29380d['description'];if(_0x49f6a4!==undefined&&_0x49f6a4!==null){if(typeof _0x49f6a4===_0x5b3ee9(0x1f2)&&_0x49f6a4[_0x5b3ee9(0x1e8)]())return _0x49f6a4[_0x5b3ee9(0x1e8)]();try{return JSON['stringify'](_0x49f6a4);}catch{}}return _0x29380d[_0x5b3ee9(0x1e9)];}
|
|
@@ -48,8 +48,10 @@ export interface PipelineEnv {
|
|
|
48
48
|
appCode: string | undefined;
|
|
49
49
|
/** Source used to resolve `appCode`, used to revalidate explicit `--app`. */
|
|
50
50
|
appCodeSource?: CLIConfig["appCodeSource"];
|
|
51
|
-
/**
|
|
51
|
+
/** Platform API origin resolved from explicit config or Region. */
|
|
52
52
|
apiDomain: string;
|
|
53
|
+
/** Final Runtime engine origin resolved from explicit config or Region. */
|
|
54
|
+
runtimeDomain: string;
|
|
53
55
|
/** `true` when running in CI or when `--non-interactive` was supplied. */
|
|
54
56
|
isNonInteractive: boolean;
|
|
55
57
|
/** Default format from the config file (falls through to --format). */
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x49297f,_0x19d886){const _0x35e8f3=a116_0x4bb6,_0x981d4d=_0x49297f();while(!![]){try{const _0x589f9b=parseInt(_0x35e8f3(0xec))/0x1+parseInt(_0x35e8f3(0x104))/0x2+-parseInt(_0x35e8f3(0xe4))/0x3+-parseInt(_0x35e8f3(0xf5))/0x4*(-parseInt(_0x35e8f3(0xef))/0x5)+parseInt(_0x35e8f3(0x105))/0x6*(parseInt(_0x35e8f3(0xf0))/0x7)+-parseInt(_0x35e8f3(0xf1))/0x8+-parseInt(_0x35e8f3(0x10b))/0x9;if(_0x589f9b===_0x19d886)break;else _0x981d4d['push'](_0x981d4d['shift']());}catch(_0x1b178c){_0x981d4d['push'](_0x981d4d['shift']());}}}(a116_0x2d52,0xb5328));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a116_0x4bb6(_0x5f2222,_0x327f8c){_0x5f2222=_0x5f2222-0xda;const _0x2d5241=a116_0x2d52();let _0x4bb662=_0x2d5241[_0x5f2222];return _0x4bb662;}function a116_0x2d52(){const _0x11172c=['execute','riskLevel','4zdBbQJ','update','../commands/app/remote-source.js','string','defaultApp','appCodeSource','map','command','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','../core/sdk-client.js','production','APPCODE','appcode','pretty','app','392654zaBnTM','18QEyNGQ','env','format','appcode\x20\x22','cancelled','mergedCli','7175097pfMxQm','local-alias','confirmHighRisk','items','Run\x20`','service','requiresAppCode','ClientAk','nonInteractive','defaultVerbose','rawFlags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','authRequired','Set\x20accessKey\x20in\x20','formatOutput','.appcode\x20to\x20','resolve','requiresAuth','Unknown\x20app:\x20','validation','appCode','_notice','name','object','trim','configMissing','newConfigFileName','doctor','2352879qqNgew','filter','isNonInteractive','../core/api-client.js','ACCESS_KEY','apiDomain','accessKey','\x20or\x20pass\x20','1177529jbJkgs','includes','High-risk\x20operation\x20`','4006775bIMHUK','1881467kMcGAx','5262752CoJefX','currentApp'];a116_0x2d52=function(){return _0x11172c;};return a116_0x2d52();}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(_0x17dc13){const _0xcb2c62=a116_0x4bb6;return void _0x17dc13,AUTH_MODE[_0xcb2c62(0x112)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1b5d75,_0x535114){const _0x5d1ae6=a116_0x4bb6,_0xe52d4b=typeof _0x535114[_0x5d1ae6(0x103)]===_0x5d1ae6(0xf8)&&_0x535114['app']['trim']();return{'rawFlags':_0x535114,'appCode':_0x1b5d75[_0x5d1ae6(0xdc)]||productEnv(_0x5d1ae6(0x100))||(_0xe52d4b?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1b5d75['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x535114),'defaultFormat':_0x1b5d75[_0x5d1ae6(0x107)],'defaultPageSize':_0x1b5d75['pageSize'],'defaultVerbose':_0x1b5d75['verbose'],'riskLevel':_0x1b5d75[_0x5d1ae6(0xf4)],'accessKey':_0x1b5d75['accessKey'],'env':_0x1b5d75[_0x5d1ae6(0x106)],'mergedCli':{'defaultApp':_0x1b5d75[_0x5d1ae6(0xf9)],'currentApp':_0x1b5d75[_0x5d1ae6(0xf2)],'appCode':_0x1b5d75['appCode']}};}export function createLovrabetRunnerAdapter(_0x387aba={}){const _0x4ef83f=a116_0x4bb6,_0x49149d={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4ef83f(0xe5)](_0x3fde3f=>PIPELINE_FLAG_NAMES['has'](_0x3fde3f[_0x4ef83f(0xde)]))[_0x4ef83f(0xfb)](({name:_0x8347b2,type:_0x4f9679,description:_0x3f487a})=>({'name':_0x8347b2,'type':_0x4f9679,'description':_0x3f487a})),'formatOutput':_0x387aba[_0x4ef83f(0x119)]??formatOutput,'getCommandLabel'(_0xf248a5){const _0xe275b4=_0x4ef83f;return CLI_BIN_NAME+'\x20'+_0xf248a5[_0xe275b4(0x110)]+'\x20'+_0xf248a5[_0xe275b4(0xfc)];},'riskPolicy':{'onViolation'(_0x58589d){console['error'](_0x58589d);},'createError'(_0x590b56){const _0x132913=_0x4ef83f;return CliErrors[_0x132913(0x109)](_0x590b56);}},async 'prepare'(_0x1b4af5,_0x2f7f11){const _0x454c81=_0x4ef83f,_0x3ac5a6=resolveAuthMode(_0x2f7f11);if(_0x1b4af5[_0x454c81(0x11c)]!==![]){if(!_0x2f7f11['accessKey'])throw CliErrors[_0x454c81(0x117)](_0x454c81(0x118)+PRODUCT_CONFIG[_0x454c81(0xe2)]+_0x454c81(0xeb)+productEnvName(_0x454c81(0xe8))+'.');const {setActiveAK:_0x378bec}=await import(_0x454c81(0xe7));_0x378bec(_0x2f7f11['accessKey']);}let _0x334482='';if(_0x1b4af5[_0x454c81(0x111)]!==![]){_0x334482=_0x2f7f11[_0x454c81(0xdc)]??'',_0x334482=await resolveExplicitAppName(_0x1b4af5,_0x2f7f11,_0x334482);if(!_0x334482){await assertSelectedAppNameIsRuntimeAccessible(_0x1b4af5,_0x2f7f11);throw CliErrors[_0x454c81(0xe1)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1b4af5,_0x2f7f11,_0x334482);}if(_0x334482){const {initSdkClient:_0x12eaef}=await import(_0x454c81(0xfe));_0x12eaef({'appCode':_0x334482,'env':_0x2f7f11[_0x454c81(0x106)]??_0x454c81(0xff),'accessKey':_0x2f7f11[_0x454c81(0xea)],'authMode':_0x3ac5a6}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2f7f11[_0x454c81(0x114)]},'numbers':{'pagesize':_0x2f7f11['defaultPageSize']}},'extras':{'appCode':_0x334482,'cookie':'','apiDomain':_0x2f7f11[_0x454c81(0xe9)],'apiDir':'','accessKey':_0x2f7f11[_0x454c81(0xea)],'envName':_0x2f7f11[_0x454c81(0x106)],'mergedCli':_0x2f7f11[_0x454c81(0x10a)]}};},'confirmHighRisk':_0x387aba[_0x4ef83f(0x10d)]??(async({def:_0xe32b55,env:_0x4872f4,flags:_0x4f80b5,commandLabel:_0x213de})=>{const _0x349d48=_0x4ef83f;if(_0x4872f4[_0x349d48(0xe6)]){const _0x3e3978=reconstructCommandArgv(_0xe32b55,_0x4f80b5);throw CliErrors[_0x349d48(0xdb)](_0x349d48(0xee)+_0x213de+_0x349d48(0x116)+('\x20\x20To\x20proceed:\x20'+_0x3e3978));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xe32b55,_0x213de,_0x4f80b5),'createCancelledError':_0x5dbd9b=>CliErrors[_0x349d48(0x109)](_0x5dbd9b)});}),'mapDryRunError'(_0xb83d88){return mapUserFacingExecuteError(_0xb83d88);},'mapExecuteError'(_0xc26be6){return mapUserFacingExecuteError(_0xc26be6);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x49149d;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x5e820b=a116_0x4bb6;try{if(sdkClientInitialized){const {clearSdkClient:_0x4e11f0}=await import(_0x5e820b(0xfe));_0x4e11f0();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x3870fa}=await import(_0x5e820b(0xe7));_0x3870fa();}}async function resolveExplicitAppName(_0x48e056,_0x4d8302,_0x3e6a48){const _0x326c00=a116_0x4bb6;if(_0x48e056[_0x326c00(0x111)]===![])return _0x3e6a48;const _0x44276a=typeof _0x4d8302[_0x326c00(0x115)][_0x326c00(0x103)]===_0x326c00(0xf8)?_0x4d8302[_0x326c00(0x115)][_0x326c00(0x103)][_0x326c00(0xe0)]():'';if(!_0x44276a)return _0x3e6a48;const _0xab4b9c=typeof _0x4d8302[_0x326c00(0x115)][_0x326c00(0x101)]==='string'&&_0x4d8302[_0x326c00(0x115)][_0x326c00(0x101)][_0x326c00(0xe0)]()||productEnv('APPCODE');if(_0xab4b9c||_0x4d8302[_0x326c00(0xfa)]===_0x326c00(0x10c))return _0x3e6a48;const {getRemoteAppList:_0x45078b}=await import(_0x326c00(0xf7)),_0x2d1193=await _0x45078b({'env':_0x4d8302[_0x326c00(0x106)]??_0x326c00(0xff),'accessKey':_0x4d8302['accessKey']}),_0x45efef=findAppByName(_0x2d1193[_0x326c00(0x10e)],_0x44276a);if(_0x45efef&&!isRuntimeAccessibleApp(_0x45efef))throw runtimeInaccessibleAppError(_0x45efef,'\x22'+_0x44276a+'\x22');const _0x44c2f6=_0x45efef?.[_0x326c00(0xdc)]?.[_0x326c00(0xe0)]();if(_0x44c2f6)return _0x44c2f6;throw CliErrors[_0x326c00(0xdb)](_0x326c00(0xda)+_0x44276a,_0x326c00(0x10f)+CLI_BIN_NAME+_0x326c00(0xfd)+_0x44276a+_0x326c00(0x11a)+PRODUCT_CONFIG[_0x326c00(0xe2)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5b8b0b,_0x5479c1){const _0x58e648=a116_0x4bb6;if(_0x5b8b0b[_0x58e648(0x111)]===![]||!_0x5479c1['accessKey'])return;const _0xd293dc=(typeof _0x5479c1[_0x58e648(0x115)][_0x58e648(0x103)]===_0x58e648(0xf8)&&_0x5479c1[_0x58e648(0x115)][_0x58e648(0x103)][_0x58e648(0xe0)]()?_0x5479c1[_0x58e648(0x115)]['app']:_0x5479c1[_0x58e648(0x10a)]?.[_0x58e648(0xf2)]??_0x5479c1['mergedCli']?.[_0x58e648(0xf9)])?.[_0x58e648(0xe0)]();if(!_0xd293dc)return;const {getRemoteAppList:_0x13f11b}=await import(_0x58e648(0xf7)),_0x559860=await _0x13f11b({'env':_0x5479c1[_0x58e648(0x106)]??'production','accessKey':_0x5479c1[_0x58e648(0xea)]}),_0x4fefe4=findAppByName(_0x559860[_0x58e648(0x10e)],_0xd293dc);if(_0x4fefe4&&!isRuntimeAccessibleApp(_0x4fefe4))throw runtimeInaccessibleAppError(_0x4fefe4,'\x22'+_0xd293dc+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5b75cb,_0x2cd533,_0x3816ef){const _0x77ef5f=a116_0x4bb6;if(_0x5b75cb[_0x77ef5f(0x111)]===![]||!_0x2cd533[_0x77ef5f(0xea)])return;const {getRemoteAppList:_0x206b84}=await import(_0x77ef5f(0xf7)),_0x23d533=await _0x206b84({'env':_0x2cd533[_0x77ef5f(0x106)]??_0x77ef5f(0xff),'accessKey':_0x2cd533[_0x77ef5f(0xea)]}),_0x473a98=findAppByCode(_0x23d533[_0x77ef5f(0x10e)],_0x3816ef);if(_0x473a98&&!isRuntimeAccessibleApp(_0x473a98))throw runtimeInaccessibleAppError(_0x473a98,_0x77ef5f(0x108)+_0x3816ef+'\x22');}export async function runCommand(_0x401a43,_0x5032d9,_0x1dc083=terminalRunnerAdapter){const _0x41e24d=a116_0x4bb6;assertKnownCommandFlags(_0x401a43,_0x5032d9[_0x41e24d(0x115)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x401a43)?withUpdateNotice(_0x401a43):_0x401a43,_0x5032d9,_0x1dc083);}function shouldAttachUpdateNotice(_0x59e018){const _0x2fd204=a116_0x4bb6;return![_0x2fd204(0xf6),'schema',_0x2fd204(0xe3)][_0x2fd204(0xed)](_0x59e018[_0x2fd204(0x110)]);}function withUpdateNotice(_0x1512e3){return{..._0x1512e3,async 'execute'(_0xc7cc63){const _0xe53848=a116_0x4bb6,_0x45b123=shouldResolveUpdateNotice(_0xc7cc63)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0xe53848(0x11b)](null),_0x353e61=await _0x1512e3[_0xe53848(0xf3)](_0xc7cc63);return attachUpdateNotice(_0x353e61,await _0x45b123);}};}function shouldResolveUpdateNotice(_0x5ccfac){const _0x1b3953=a116_0x4bb6;return _0x5ccfac['format']===_0x1b3953(0x102)&&!_0x5ccfac[_0x1b3953(0x113)];}function attachUpdateNotice(_0x2fb66e,_0x15a552){const _0x4f534c=a116_0x4bb6;if(!_0x15a552||!_0x2fb66e||typeof _0x2fb66e!=='object')return _0x2fb66e;const _0x22b1c3=_0x2fb66e,_0x2dc43a=typeof _0x22b1c3['_notice']===_0x4f534c(0xdf)&&_0x22b1c3[_0x4f534c(0xdd)]!==null?_0x22b1c3[_0x4f534c(0xdd)]:{};return{..._0x22b1c3,'_notice':{..._0x2dc43a,'update':_0x15a552}};}
|
|
1
|
+
(function(_0x101f80,_0x11e9c9){const _0x1c9627=a119_0x5dd7,_0x30d66a=_0x101f80();while(!![]){try{const _0x4ce46a=-parseInt(_0x1c9627(0x211))/0x1+-parseInt(_0x1c9627(0x201))/0x2*(-parseInt(_0x1c9627(0x1ee))/0x3)+parseInt(_0x1c9627(0x1fd))/0x4*(parseInt(_0x1c9627(0x203))/0x5)+-parseInt(_0x1c9627(0x1ef))/0x6*(-parseInt(_0x1c9627(0x229))/0x7)+-parseInt(_0x1c9627(0x1fb))/0x8+-parseInt(_0x1c9627(0x234))/0x9+parseInt(_0x1c9627(0x1f0))/0xa;if(_0x4ce46a===_0x11e9c9)break;else _0x30d66a['push'](_0x30d66a['shift']());}catch(_0x526776){_0x30d66a['push'](_0x30d66a['shift']());}}}(a119_0x5bc8,0xd5cc7));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';function a119_0x5bc8(){const _0x2c32d8=['requiresAppCode','rawFlags','cli-skill','defaultPageSize','catch','6055744WBAVuz','mergedCli','1724lXAGev','includes','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','../core/api-client.js','5938VHZnNl','newConfigFileName','14195VLNREt','env','filter','command','string','ClientAk','map','authRequired','isNonInteractive','Unknown\x20app:\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','currentApp','trim','pretty','793623sxYuJv','cancelled','\x20\x20To\x20proceed:\x20','install','ACCESS_KEY','Set\x20accessKey\x20in\x20','High-risk\x20operation\x20`','execute','resolve','\x20or\x20pass\x20','_notice','service','object','format','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','appcode','Run\x20`','app','schema','production','../commands/app/remote-source.js','items','accessKey','formatOutput','1141CzjxmT','local-alias','update','riskLevel','validation','APPCODE','configMissing','name','apiDomain','../core/sdk-client.js','verbose','15732990kOvbgi','339JUhlUk','57924GoUAjn','10417120ibOXEH','appCode','doctor','requiresAuth','nonInteractive','appCodeSource'];a119_0x5bc8=function(){return _0x2c32d8;};return a119_0x5bc8();}import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}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{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x125587){const _0xffc938=a119_0x5dd7;return void _0x125587,AUTH_MODE[_0xffc938(0x208)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x3fc418,_0x13ecd7){const _0x4b8430=a119_0x5dd7,_0x1eafab=typeof _0x13ecd7['app']===_0x4b8430(0x207)&&_0x13ecd7[_0x4b8430(0x222)][_0x4b8430(0x20f)]();return{'rawFlags':_0x13ecd7,'appCode':_0x3fc418[_0x4b8430(0x1f1)]||productEnv(_0x4b8430(0x22e))||(_0x1eafab?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3fc418[_0x4b8430(0x1f5)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x13ecd7),'defaultFormat':_0x3fc418[_0x4b8430(0x21e)],'defaultPageSize':_0x3fc418['pageSize'],'defaultVerbose':_0x3fc418[_0x4b8430(0x233)],'riskLevel':_0x3fc418[_0x4b8430(0x22c)],'accessKey':_0x3fc418['accessKey'],'env':_0x3fc418['env'],'mergedCli':{'defaultApp':_0x3fc418['defaultApp'],'currentApp':_0x3fc418['currentApp'],'appCode':_0x3fc418[_0x4b8430(0x1f1)]}};}export function createLovrabetRunnerAdapter(_0x1d913a={}){const _0x362489=a119_0x5dd7,_0x3decb4={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x362489(0x205)](_0x49f34d=>PIPELINE_FLAG_NAMES['has'](_0x49f34d[_0x362489(0x230)]))[_0x362489(0x209)](({name:_0x5fa286,type:_0x510caa,description:_0x4ca71e})=>({'name':_0x5fa286,'type':_0x510caa,'description':_0x4ca71e})),'formatOutput':_0x1d913a[_0x362489(0x228)]??formatOutput,'getCommandLabel'(_0x5e11d0){const _0x1ca845=_0x362489;return CLI_BIN_NAME+'\x20'+_0x5e11d0[_0x1ca845(0x21c)]+'\x20'+_0x5e11d0[_0x1ca845(0x206)];},'riskPolicy':{'onViolation'(_0x406d51){console['error'](_0x406d51);},'createError'(_0x5c0778){const _0x40a510=_0x362489;return CliErrors[_0x40a510(0x212)](_0x5c0778);}},async 'prepare'(_0x1fab8b,_0x23ea5f){const _0x448cce=_0x362489,_0x339718=resolveAuthMode(_0x23ea5f);if(_0x1fab8b[_0x448cce(0x1f3)]!==![]){if(!_0x23ea5f['accessKey'])throw CliErrors[_0x448cce(0x20a)](_0x448cce(0x216)+PRODUCT_CONFIG[_0x448cce(0x202)]+_0x448cce(0x21a)+productEnvName(_0x448cce(0x215))+'.');const {setActiveAK:_0xb83e05}=await import(_0x448cce(0x200));_0xb83e05(_0x23ea5f[_0x448cce(0x227)]);}let _0x510d3d='';if(_0x1fab8b['requiresAppCode']!==![]){_0x510d3d=_0x23ea5f['appCode']??'',_0x510d3d=await resolveExplicitAppName(_0x1fab8b,_0x23ea5f,_0x510d3d);if(!_0x510d3d){await assertSelectedAppNameIsRuntimeAccessible(_0x1fab8b,_0x23ea5f);throw CliErrors[_0x448cce(0x22f)](_0x448cce(0x20d)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1fab8b,_0x23ea5f,_0x510d3d);}if(_0x510d3d){const {initSdkClient:_0x59e00d}=await import('../core/sdk-client.js');_0x59e00d({'appCode':_0x510d3d,'env':_0x23ea5f[_0x448cce(0x204)]??'production','runtimeDomain':_0x23ea5f['runtimeDomain'],'accessKey':_0x23ea5f['accessKey'],'authMode':_0x339718}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x23ea5f['defaultVerbose']},'numbers':{'pagesize':_0x23ea5f[_0x448cce(0x1f9)]}},'extras':{'appCode':_0x510d3d,'cookie':'','apiDomain':_0x23ea5f[_0x448cce(0x231)],'apiDir':'','accessKey':_0x23ea5f['accessKey'],'envName':_0x23ea5f['env'],'mergedCli':_0x23ea5f['mergedCli']}};},'confirmHighRisk':_0x1d913a['confirmHighRisk']??(async({def:_0x22f72b,env:_0x27a284,flags:_0x2769f2,commandLabel:_0x4c372d})=>{const _0xd68979=_0x362489;if(_0x27a284[_0xd68979(0x20b)]){const _0x178fd5=reconstructCommandArgv(_0x22f72b,_0x2769f2);throw CliErrors[_0xd68979(0x22d)](_0xd68979(0x217)+_0x4c372d+_0xd68979(0x1ff)+(_0xd68979(0x213)+_0x178fd5));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x22f72b,_0x4c372d,_0x2769f2),'createCancelledError':_0x2a2681=>CliErrors[_0xd68979(0x212)](_0x2a2681)});}),'mapDryRunError'(_0x8fe8db){return mapUserFacingExecuteError(_0x8fe8db);},'mapExecuteError'(_0x398e62){return mapUserFacingExecuteError(_0x398e62);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x3decb4;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x5e8734=a119_0x5dd7;try{if(sdkClientInitialized){const {clearSdkClient:_0x1bf2ba}=await import(_0x5e8734(0x232));_0x1bf2ba();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x519914}=await import(_0x5e8734(0x200));_0x519914();}}async function resolveExplicitAppName(_0x3985e7,_0x4336f1,_0x3bb550){const _0xb05e5b=a119_0x5dd7;if(_0x3985e7[_0xb05e5b(0x1f6)]===![])return _0x3bb550;const _0x20db17=typeof _0x4336f1[_0xb05e5b(0x1f7)]['app']===_0xb05e5b(0x207)?_0x4336f1['rawFlags'][_0xb05e5b(0x222)][_0xb05e5b(0x20f)]():'';if(!_0x20db17)return _0x3bb550;const _0x36c555=typeof _0x4336f1['rawFlags'][_0xb05e5b(0x220)]===_0xb05e5b(0x207)&&_0x4336f1['rawFlags'][_0xb05e5b(0x220)][_0xb05e5b(0x20f)]()||productEnv(_0xb05e5b(0x22e));if(_0x36c555||_0x4336f1['appCodeSource']===_0xb05e5b(0x22a))return _0x3bb550;const {getRemoteAppList:_0x390be9}=await import(_0xb05e5b(0x225)),_0x491d8a=await _0x390be9({'env':_0x4336f1[_0xb05e5b(0x204)]??_0xb05e5b(0x224),'accessKey':_0x4336f1['accessKey']}),_0x467747=findAppByName(_0x491d8a[_0xb05e5b(0x226)],_0x20db17);if(_0x467747&&!isRuntimeAccessibleApp(_0x467747))throw runtimeInaccessibleAppError(_0x467747,'\x22'+_0x20db17+'\x22');const _0x4b0e17=_0x467747?.['appCode']?.['trim']();if(_0x4b0e17)return _0x4b0e17;throw CliErrors[_0xb05e5b(0x22d)](_0xb05e5b(0x20c)+_0x20db17,_0xb05e5b(0x221)+CLI_BIN_NAME+_0xb05e5b(0x21f)+_0x20db17+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0xb05e5b(0x202)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x35bb27,_0x4768c2){const _0x425430=a119_0x5dd7;if(_0x35bb27['requiresAppCode']===![]||!_0x4768c2[_0x425430(0x227)])return;const _0x52f8af=(typeof _0x4768c2[_0x425430(0x1f7)][_0x425430(0x222)]===_0x425430(0x207)&&_0x4768c2[_0x425430(0x1f7)][_0x425430(0x222)][_0x425430(0x20f)]()?_0x4768c2[_0x425430(0x1f7)]['app']:_0x4768c2['mergedCli']?.[_0x425430(0x20e)]??_0x4768c2[_0x425430(0x1fc)]?.['defaultApp'])?.['trim']();if(!_0x52f8af)return;const {getRemoteAppList:_0x50abae}=await import(_0x425430(0x225)),_0x2f1764=await _0x50abae({'env':_0x4768c2[_0x425430(0x204)]??'production','accessKey':_0x4768c2[_0x425430(0x227)]}),_0x1d6c8f=findAppByName(_0x2f1764[_0x425430(0x226)],_0x52f8af);if(_0x1d6c8f&&!isRuntimeAccessibleApp(_0x1d6c8f))throw runtimeInaccessibleAppError(_0x1d6c8f,'\x22'+_0x52f8af+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x54b849,_0x3c7c21,_0x58adae){const _0x4337d2=a119_0x5dd7;if(_0x54b849[_0x4337d2(0x1f6)]===![]||!_0x3c7c21[_0x4337d2(0x227)])return;const {getRemoteAppList:_0x3c6c6b}=await import(_0x4337d2(0x225)),_0x1c51a8=await _0x3c6c6b({'env':_0x3c7c21[_0x4337d2(0x204)]??'production','accessKey':_0x3c7c21[_0x4337d2(0x227)]}),_0x5c18ad=findAppByCode(_0x1c51a8[_0x4337d2(0x226)],_0x58adae);if(_0x5c18ad&&!isRuntimeAccessibleApp(_0x5c18ad))throw runtimeInaccessibleAppError(_0x5c18ad,'appcode\x20\x22'+_0x58adae+'\x22');}export async function runCommand(_0x40ef30,_0x33dc69,_0x19450b=terminalRunnerAdapter){const _0x424591=a119_0x5dd7;assertKnownCommandFlags(_0x40ef30,_0x33dc69[_0x424591(0x1f7)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x40ef30)?withVersionPolicy(_0x40ef30):_0x40ef30,_0x33dc69,_0x19450b);}function a119_0x5dd7(_0x459b76,_0x1dd859){_0x459b76=_0x459b76-0x1ee;const _0x5bc849=a119_0x5bc8();let _0x5dd718=_0x5bc849[_0x459b76];return _0x5dd718;}function shouldApplyVersionPolicy(_0xbb522a){const _0x200ca4=a119_0x5dd7;if([_0x200ca4(0x22b),_0x200ca4(0x223),_0x200ca4(0x1f2)][_0x200ca4(0x1fe)](_0xbb522a['service']))return![];return!(_0xbb522a[_0x200ca4(0x21c)]===_0x200ca4(0x1f8)&&_0xbb522a['command']===_0x200ca4(0x214));}function withVersionPolicy(_0x45de28){return{..._0x45de28,async 'execute'(_0x2219b1){const _0x8eeb0b=a119_0x5dd7,_0x540526=await checkCliVersion();assertCliVersionSupported(_0x540526);const _0x529dd0=shouldResolveUpdateNotice(_0x2219b1)?resolveLatestUpdateNotice(_0x540526)[_0x8eeb0b(0x1fa)](()=>null):Promise[_0x8eeb0b(0x219)](null),_0x42594c=await _0x45de28[_0x8eeb0b(0x218)](_0x2219b1);return attachUpdateNotice(_0x42594c,await _0x529dd0);}};}function shouldResolveUpdateNotice(_0x579853){const _0x3b845c=a119_0x5dd7;return _0x579853['format']===_0x3b845c(0x210)&&!_0x579853[_0x3b845c(0x1f4)];}function attachUpdateNotice(_0xfbe958,_0x462d58){const _0x2b500a=a119_0x5dd7;if(!_0x462d58||!_0xfbe958||typeof _0xfbe958!==_0x2b500a(0x21d))return _0xfbe958;const _0xd1be99=_0xfbe958,_0x59571d=typeof _0xd1be99[_0x2b500a(0x21b)]===_0x2b500a(0x21d)&&_0xd1be99[_0x2b500a(0x21b)]!==null?_0xd1be99[_0x2b500a(0x21b)]:{};return{..._0xd1be99,'_notice':{..._0x59571d,'update':_0x462d58}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x538b37,_0x4015d){const _0x3b56dd=a120_0x26dc,_0x204bee=_0x538b37();while(!![]){try{const _0x41dcf7=parseInt(_0x3b56dd(0xad))/0x1*(parseInt(_0x3b56dd(0xa5))/0x2)+-parseInt(_0x3b56dd(0xa6))/0x3*(-parseInt(_0x3b56dd(0xaf))/0x4)+-parseInt(_0x3b56dd(0xb4))/0x5*(parseInt(_0x3b56dd(0xb1))/0x6)+-parseInt(_0x3b56dd(0xb5))/0x7+-parseInt(_0x3b56dd(0xa1))/0x8*(parseInt(_0x3b56dd(0xae))/0x9)+-parseInt(_0x3b56dd(0xb0))/0xa*(parseInt(_0x3b56dd(0xa2))/0xb)+parseInt(_0x3b56dd(0xa9))/0xc;if(_0x41dcf7===_0x4015d)break;else _0x204bee['push'](_0x204bee['shift']());}catch(_0x32d38d){_0x204bee['push'](_0x204bee['shift']());}}}(a120_0x2282,0xd8f05));import{buildSchemaPayload as a120_0x260088}from'@lovrabet/cli-framework';function a120_0x2282(){const _0x5b40c9=['filter','requiresAuth','1ljGueG','2170431SkJjkY','1999640JEEbiw','10dfNwYF','9946254trLCNU','required','has','5DXUZsK','3181227tPrFDh','8AOUEYE','17145073sxIRii','auth','map','1067794BJRClq','9QxfGKN','services','../commands/registry.js','33203112INoUQw','service'];a120_0x2282=function(){return _0x5b40c9;};return a120_0x2282();}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a120_0x26dc(_0x5ee28b,_0x222a01){_0x5ee28b=_0x5ee28b-0xa1;const _0x2282a2=a120_0x2282();let _0x26dc06=_0x2282a2[_0x5ee28b];return _0x26dc06;}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 _0x2dc299=a120_0x26dc,{serviceRegistry:_0xc8c6ba,findDefinition:_0x1f19dc}=await import(_0x2dc299(0xa8)),_0x4c0cd1=new Set(_0xc8c6ba[_0x2dc299(0xa4)](_0x3d10e6=>_0x3d10e6[_0x2dc299(0xaa)])),_0x243e7b=listDynamicServiceEntries()[_0x2dc299(0xab)](_0x5dc940=>!_0x4c0cd1[_0x2dc299(0xb3)](_0x5dc940['service'])),_0x1f53bc=a120_0x260088({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xc8c6ba,_0x243e7b),'buildAllFlags':buildAllFlags,'findDefinition':(_0x47a654,_0x15b80a)=>_0x1f19dc(_0x47a654,_0x15b80a)??findDynamicServiceDefinition(_0x47a654,_0x15b80a)});return normalizeSchemaPayload(_0x1f53bc);}function normalizeSchemaPayload(_0x254f8b){const _0x5422a2=a120_0x26dc;return{..._0x254f8b,'schemaVersion':0x2,'services':_0x254f8b[_0x5422a2(0xa7)][_0x5422a2(0xa4)](_0x283a21=>({..._0x283a21,'commands':_0x283a21['commands'][_0x5422a2(0xa4)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3ff174){const _0x1e6216=a120_0x26dc,_0x498aaf=_0x3ff174;return{..._0x3ff174,'auth':_0x498aaf[_0x1e6216(0xa3)]??(_0x3ff174[_0x1e6216(0xac)]?_0x1e6216(0xb2):'none')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0xe94d(){const _0xb56cc2=['8OjqsLz','service','length','5zBjKeW','1281569gxMjxF','2595360rgevuC','1392364fSsgyF','findIndex','7294698eqZxYa','62375256acbhkZ','slice','6025732GIVdMU','12710789SIypMg'];a121_0xe94d=function(){return _0xb56cc2;};return a121_0xe94d();}function a121_0x3743(_0x97ee9,_0xa4f52){_0x97ee9=_0x97ee9-0x1db;const _0xe94dc0=a121_0xe94d();let _0x374346=_0xe94dc0[_0x97ee9];return _0x374346;}(function(_0x4a8efc,_0x79bbe7){const _0x4b13e0=a121_0x3743,_0x237e9e=_0x4a8efc();while(!![]){try{const _0x1cb17a=-parseInt(_0x4b13e0(0x1dc))/0x1+parseInt(_0x4b13e0(0x1de))/0x2+-parseInt(_0x4b13e0(0x1dd))/0x3+-parseInt(_0x4b13e0(0x1e3))/0x4*(parseInt(_0x4b13e0(0x1db))/0x5)+-parseInt(_0x4b13e0(0x1e0))/0x6+-parseInt(_0x4b13e0(0x1e4))/0x7+-parseInt(_0x4b13e0(0x1e5))/0x8*(-parseInt(_0x4b13e0(0x1e1))/0x9);if(_0x1cb17a===_0x79bbe7)break;else _0x237e9e['push'](_0x237e9e['shift']());}catch(_0x19e7ad){_0x237e9e['push'](_0x237e9e['shift']());}}}(a121_0xe94d,0xe5fd2));export function insertDynamicServicesAfterServiceTree(_0x418680,_0x5946a8){const _0x2c8bac=a121_0x3743;if(_0x5946a8[_0x2c8bac(0x1e7)]===0x0)return[..._0x418680];const _0x4a0673=_0x418680[_0x2c8bac(0x1df)](_0x44abf9=>_0x44abf9[_0x2c8bac(0x1e6)]===_0x2c8bac(0x1e6));if(_0x4a0673<0x0)return[..._0x418680,..._0x5946a8];return[..._0x418680[_0x2c8bac(0x1e2)](0x0,_0x4a0673+0x1),..._0x5946a8,..._0x418680[_0x2c8bac(0x1e2)](_0x4a0673+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a122_0x11b2(_0x4df938,_0xd5591c){_0x4df938=_0x4df938-0x1b2;var _0x3c063c=a122_0x3c06();var _0x11b2b1=_0x3c063c[_0x4df938];return _0x11b2b1;}function a122_0x3c06(){var _0xe13149=['1216egyAXZ','5093907bWJWnj','11399fWPRkA','13783980dWpeCg','36vsrgYt','119014AIEFuK','27csxZtQ','234TycxsY','35870340fxGzJP','4489912iMkYad','24435ZhjGHu'];a122_0x3c06=function(){return _0xe13149;};return a122_0x3c06();}(function(_0x3dc3c3,_0x13ed1d){var _0x36deb4=a122_0x11b2,_0xb42892=_0x3dc3c3();while(!![]){try{var _0x4d0460=-parseInt(_0x36deb4(0x1b3))/0x1*(parseInt(_0x36deb4(0x1b5))/0x2)+parseInt(_0x36deb4(0x1b2))/0x3+-parseInt(_0x36deb4(0x1bc))/0x4*(parseInt(_0x36deb4(0x1bb))/0x5)+parseInt(_0x36deb4(0x1b8))/0x6*(parseInt(_0x36deb4(0x1b6))/0x7)+-parseInt(_0x36deb4(0x1ba))/0x8*(parseInt(_0x36deb4(0x1b7))/0x9)+-parseInt(_0x36deb4(0x1b4))/0xa+parseInt(_0x36deb4(0x1b9))/0xb;if(_0x4d0460===_0x13ed1d)break;else _0xb42892['push'](_0xb42892['shift']());}catch(_0x2e0f79){_0xb42892['push'](_0xb42892['shift']());}}}(a122_0x3c06,0xd42b2));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
2
|
-
export declare const GIT_TAG = "v2.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.3.0-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.0-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "2206de6";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-21T15:31:18.078Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a123_0x4260(){const _0x204264=['2206de6','326450dDIXcd','9295783rzCHnN','332046OyqejK','v2.3.0-beta.1','879795liIWBn','20234654gKddWY','10vYfhSi','6dAMBUS','10232ImZsyK','2.3.0-beta.1','5922594LaZbpT','176SNjkwM','135mfgenz'];a123_0x4260=function(){return _0x204264;};return a123_0x4260();}const a123_0x338a42=a123_0x31c2;(function(_0x407363,_0x4eb18a){const _0x2bba6e=a123_0x31c2,_0x2c9b8d=_0x407363();while(!![]){try{const _0x5e2db6=-parseInt(_0x2bba6e(0xc2))/0x1*(parseInt(_0x2bba6e(0xc9))/0x2)+parseInt(_0x2bba6e(0xc7))/0x3*(parseInt(_0x2bba6e(0xc3))/0x4)+parseInt(_0x2bba6e(0xbf))/0x5+-parseInt(_0x2bba6e(0xc5))/0x6+parseInt(_0x2bba6e(0xca))/0x7+parseInt(_0x2bba6e(0xc6))/0x8*(-parseInt(_0x2bba6e(0xbd))/0x9)+parseInt(_0x2bba6e(0xc1))/0xa*(parseInt(_0x2bba6e(0xc0))/0xb);if(_0x5e2db6===_0x4eb18a)break;else _0x2c9b8d['push'](_0x2c9b8d['shift']());}catch(_0x44e3b4){_0x2c9b8d['push'](_0x2c9b8d['shift']());}}}(a123_0x4260,0xa61f3));export const VERSION=a123_0x338a42(0xc4);export const GIT_TAG=a123_0x338a42(0xbe);export const GIT_COMMIT=a123_0x338a42(0xc8);function a123_0x31c2(_0x5ac82b,_0x50c733){_0x5ac82b=_0x5ac82b-0xbd;const _0x426076=a123_0x4260();let _0x31c2b2=_0x426076[_0x5ac82b];return _0x31c2b2;}export const BUILD_TIME='2026-08-21T15:31:18.078Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cabaa,_0x4fe72c){const _0x1a5253=a124_0x52bf,_0x465651=_0x5cabaa();while(!![]){try{const _0x3665f2=parseInt(_0x1a5253(0x1ea))/0x1+parseInt(_0x1a5253(0x1ed))/0x2+parseInt(_0x1a5253(0x1ef))/0x3+parseInt(_0x1a5253(0x1e8))/0x4*(-parseInt(_0x1a5253(0x1eb))/0x5)+parseInt(_0x1a5253(0x1ec))/0x6+-parseInt(_0x1a5253(0x1e9))/0x7+-parseInt(_0x1a5253(0x1f4))/0x8*(-parseInt(_0x1a5253(0x1f2))/0x9);if(_0x3665f2===_0x4fe72c)break;else _0x465651['push'](_0x465651['shift']());}catch(_0x40912e){_0x465651['push'](_0x465651['shift']());}}}(a124_0xb9c0,0x8a53f));function a124_0x52bf(_0x4591a6,_0x1e2f83){_0x4591a6=_0x4591a6-0x1e7;const _0xb9c0dd=a124_0xb9c0();let _0x52bf52=_0xb9c0dd[_0x4591a6];return _0x52bf52;}import{jsx as a124_0x39561a,jsxs as a124_0x6ae5ab}from'react/jsx-runtime';function a124_0xb9c0(){const _0xc37432=['7631048aEAFlt','column','4xiLdNW','5049758lFzWpY','33708yFLLID','2449130CDzyOR','1431678ryJquq','165474xpDGXU','green','1406616oIBiOj','\x20--help','\x20to\x20view\x20available\x20commands.','9zUZSkK','\x20\x20Use\x20'];a124_0xb9c0=function(){return _0xc37432;};return a124_0xb9c0();}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x1f85de=a124_0x52bf,{exit:_0x58d043}=useApp();return useEffect(()=>{_0x58d043();},[_0x58d043]),a124_0x6ae5ab(Box,{'flexDirection':_0x1f85de(0x1e7),'marginTop':0x1,'marginBottom':0x1,'children':[a124_0x39561a(Box,{'children':a124_0x39561a(Text,{'bold':!![],'color':_0x1f85de(0x1ee),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x6ae5ab(Box,{'marginTop':0x1,'children':[a124_0x39561a(Text,{'dimColor':!![],'children':_0x1f85de(0x1f3)}),a124_0x39561a(Text,{'bold':!![],'color':_0x1f85de(0x1ee),'children':CLI_BIN_NAME+_0x1f85de(0x1f0)}),a124_0x39561a(Text,{'dimColor':!![],'children':_0x1f85de(0x1f1)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x433712,_0x2d1e5b){const _0x8da14a=a125_0xb102,_0x1a530d=_0x433712();while(!![]){try{const _0x18c6ce=-parseInt(_0x8da14a(0x136))/0x1+parseInt(_0x8da14a(0x13c))/0x2*(-parseInt(_0x8da14a(0x135))/0x3)+-parseInt(_0x8da14a(0x147))/0x4*(-parseInt(_0x8da14a(0x13d))/0x5)+-parseInt(_0x8da14a(0x148))/0x6*(parseInt(_0x8da14a(0x146))/0x7)+parseInt(_0x8da14a(0x143))/0x8+parseInt(_0x8da14a(0x14a))/0x9+-parseInt(_0x8da14a(0x142))/0xa;if(_0x18c6ce===_0x2d1e5b)break;else _0x1a530d['push'](_0x1a530d['shift']());}catch(_0x4a9278){_0x1a530d['push'](_0x1a530d['shift']());}}}(a125_0x32e2,0x5f972));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a125_0xb102(_0x3a6897,_0x6722f1){_0x3a6897=_0x3a6897-0x133;const _0x32e27e=a125_0x32e2();let _0xb10293=_0x32e27e[_0x3a6897];return _0xb10293;}function a125_0x32e2(){const _0xe78cb8=['Installation\x20failed','repairCommand','[BUILTIN_SKILL_INSTALL_','error','3949370JwysEg','2943144EdkUhd','already\x20current','SOURCE_INVALID','110978TKijop','189404tGgaot','150YCUEGr','\x20at\x20','6814782oUrRgH','installed','code','FAILED','36177qQQYrE','208118cETPht','log','skillVersion','warn','Lovrabet\x20Built-in\x20Skill\x20','changed','58sRvGvp','65ZxAiAy'];a125_0x32e2=function(){return _0xe78cb8;};return a125_0x32e2();}export async function runPostinstall(_0x28e229={}){const _0x458e70=a125_0xb102,_0x391b21=installBuiltinSkill(_0x28e229);if(_0x391b21['ok']){const _0x30b372=_0x391b21[_0x458e70(0x13b)]?_0x458e70(0x14b):_0x458e70(0x144),_0x470a17=_0x391b21['installedPath']?_0x458e70(0x149)+_0x391b21['installedPath']:'\x20via\x20skills@latest';return console[_0x458e70(0x137)](_0x458e70(0x13a)+_0x391b21[_0x458e70(0x138)]+'\x20'+_0x30b372+_0x470a17),_0x391b21;}const _0x1fb286=_0x458e70(0x140)+(_0x391b21[_0x458e70(0x133)]??_0x458e70(0x134))+']\x20'+(_0x391b21[_0x458e70(0x141)]??_0x458e70(0x13e))+'.\x20'+('Repair\x20with:\x20'+_0x391b21[_0x458e70(0x13f)]);if(_0x391b21[_0x458e70(0x133)]===_0x458e70(0x145))throw new Error(_0x1fb286);return console[_0x458e70(0x139)](_0x1fb286),_0x391b21;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x598e29,_0x11da4b){const _0x2ae3b2=a126_0x4cb8,_0xd3f25=_0x598e29();while(!![]){try{const _0xbd6033=-parseInt(_0x2ae3b2(0x152))/0x1+-parseInt(_0x2ae3b2(0x155))/0x2+parseInt(_0x2ae3b2(0x14f))/0x3+parseInt(_0x2ae3b2(0x159))/0x4*(-parseInt(_0x2ae3b2(0x156))/0x5)+-parseInt(_0x2ae3b2(0x147))/0x6+parseInt(_0x2ae3b2(0x14d))/0x7*(-parseInt(_0x2ae3b2(0x154))/0x8)+-parseInt(_0x2ae3b2(0x153))/0x9*(-parseInt(_0x2ae3b2(0x14c))/0xa);if(_0xbd6033===_0x11da4b)break;else _0xd3f25['push'](_0xd3f25['shift']());}catch(_0x5a3c4e){_0xd3f25['push'](_0xd3f25['shift']());}}}(a126_0x4126,0x527d8));const DESCRIPTION_MAX_LENGTH=0x1f4;function a126_0x4cb8(_0x1d4797,_0x3ea7dd){_0x1d4797=_0x1d4797-0x147;const _0x41261d=a126_0x4126();let _0x4cb883=_0x41261d[_0x1d4797];return _0x4cb883;}export function buildLovrabetConfirmationRequest(_0x250257,_0xd89777,_0x8b0092){const _0x71e4e2=a126_0x4cb8,_0x2ca960=normalizeText(_0x250257[_0x71e4e2(0x150)],DESCRIPTION_MAX_LENGTH),_0x287b7b=normalizeText(_0x250257[_0x71e4e2(0x15a)],DESCRIPTION_MAX_LENGTH);return{'operation':_0xd89777,'risk':requireWriteRisk(_0x250257),'description':_0x2ca960||_0x287b7b||_0x71e4e2(0x151),..._0x8b0092?{'signal':_0x8b0092}:{}};}function a126_0x4126(){const _0x5391b0=['replace','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','high-risk-write','10RaOyoX','28ebhEjA','slice','1977834QhjQlY','confirmationDescription','Run\x20this\x20write\x20operation','622423jhxKye','10459647rSEuRz','1222648BKqrkz','218684LfVOuk','360585HHXYti','string','trim','4LPnnXT','description','write','410250QukFUo'];a126_0x4126=function(){return _0x5391b0;};return a126_0x4126();}function requireWriteRisk(_0x2450ef){const _0x191488=a126_0x4cb8;if(_0x2450ef[_0x191488(0x14a)]===_0x191488(0x15b)||_0x2450ef[_0x191488(0x14a)]===_0x191488(0x14b))return _0x2450ef['risk'];throw new Error(_0x191488(0x149));}function normalizeText(_0x62d64d,_0x3a7666){const _0x95c10a=a126_0x4cb8;if(typeof _0x62d64d!==_0x95c10a(0x157))return'';return _0x62d64d['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x95c10a(0x148)](/\s+/g,'\x20')[_0x95c10a(0x158)]()[_0x95c10a(0x14e)](0x0,_0x3a7666);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a127_0x3a21(_0x9ba658,_0x54c2b2){_0x9ba658=_0x9ba658-0x165;const _0x2ade17=a127_0x2ade();let _0x3a2121=_0x2ade17[_0x9ba658];return _0x3a2121;}(function(_0x39fd52,_0x4061ee){const _0x4ed4f6=a127_0x3a21,_0x1736d4=_0x39fd52();while(!![]){try{const _0x3d76a1=parseInt(_0x4ed4f6(0x172))/0x1+parseInt(_0x4ed4f6(0x165))/0x2+parseInt(_0x4ed4f6(0x173))/0x3+-parseInt(_0x4ed4f6(0x174))/0x4*(parseInt(_0x4ed4f6(0x16a))/0x5)+-parseInt(_0x4ed4f6(0x171))/0x6+parseInt(_0x4ed4f6(0x168))/0x7*(parseInt(_0x4ed4f6(0x16b))/0x8)+-parseInt(_0x4ed4f6(0x16e))/0x9;if(_0x3d76a1===_0x4061ee)break;else _0x1736d4['push'](_0x1736d4['shift']());}catch(_0x38ccd3){_0x1736d4['push'](_0x1736d4['shift']());}}}(a127_0x2ade,0x19a15));export function canonicalLovrabetOperation(_0x386cc5){const _0x51c4d9=a127_0x3a21;return[_0x386cc5['service'],..._0x386cc5[_0x51c4d9(0x16c)][_0x51c4d9(0x166)]()[_0x51c4d9(0x169)](/\s+/)]['filter'](Boolean)[_0x51c4d9(0x170)]('.');}function a127_0x2ade(){const _0x2bce3d=['170420JzwthU','trim','risk','4200lpWUHK','split','252275OTuVJp','320lDiHxw','command','write','37764UXjNjx','lovrabet.write.completed','join','131328VSdvyL','45958rdKtQv','79056vfbmaY','4Hcsvvg','writeEventSubject','high-risk-write'];a127_0x2ade=function(){return _0x2bce3d;};return a127_0x2ade();}export function createLovrabetWriteMetadata(_0x5ac502,_0x2d6675,_0x20cf5f,_0x12fa64){const _0x51b46f=a127_0x3a21;if(_0x12fa64||_0x20cf5f['ok']!==!![]||_0x5ac502['risk']!==_0x51b46f(0x16d)&&_0x5ac502[_0x51b46f(0x167)]!==_0x51b46f(0x176))return undefined;const _0x1b5611=_0x5ac502[_0x51b46f(0x175)]?.(_0x20cf5f),_0x3f4617={'type':_0x51b46f(0x16f),'operation':_0x2d6675,'risk':_0x5ac502[_0x51b46f(0x167)],..._0x1b5611?{'subject':_0x1b5611}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x3f4617}};}
|