@lovrabet/lovrabet-cli 2.3.2 → 2.3.3-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/approval/index.d.ts +15 -0
- package/lib/commands/approval/index.js +1 -0
- 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/init.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/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.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/region.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 +83 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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/positive-safe-integer.d.ts +5 -0
- package/lib/utils/positive-safe-integer.js +1 -0
- package/lib/utils/redaction.d.ts +17 -0
- package/lib/utils/redaction.js +1 -0
- 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 +1 -1
- package/skills/lovrabet/SKILL.md +3 -2
- package/skills/lovrabet/references/lovrabet-approval-workflow.md +73 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c09d5,_0x178710){var _0x40ae5a=a109_0x2c52,_0xeda100=_0x3c09d5();while(!![]){try{var _0x4536db=parseInt(_0x40ae5a(0x1f4))/0x1+-parseInt(_0x40ae5a(0x1f8))/0x2+parseInt(_0x40ae5a(0x1f9))/0x3+-parseInt(_0x40ae5a(0x1f6))/0x4+parseInt(_0x40ae5a(0x1f7))/0x5+parseInt(_0x40ae5a(0x1fa))/0x6+parseInt(_0x40ae5a(0x1f5))/0x7;if(_0x4536db===_0x178710)break;else _0xeda100['push'](_0xeda100['shift']());}catch(_0x45cd82){_0xeda100['push'](_0xeda100['shift']());}}}(a109_0x45bc,0xd995f));function a109_0x45bc(){var _0x57ef41=['411320AYKWZG','6464094Iouqcw','4887296TctrzT','2371700XfuVIv','3465596LEelFK','2456304PVxSYU','7307898XChaJY'];a109_0x45bc=function(){return _0x57ef41;};return a109_0x45bc();}function a109_0x2c52(_0x33b04e,_0x3923b3){_0x33b04e=_0x33b04e-0x1f4;var _0x45bc55=a109_0x45bc();var _0x2c527e=_0x45bc55[_0x33b04e];return _0x2c527e;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a109_0x5c26d6}from'@lovrabet/cli-framework';export function buildAllFlags(_0x37c1c7){return a109_0x5c26d6(_0x37c1c7,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a110_0x4b07(_0x27b24d,_0x4eb9b1){_0x27b24d=_0x27b24d-0x126;const _0x27afc0=a110_0x27af();let _0x4b07da=_0x27afc0[_0x27b24d];return _0x4b07da;}(function(_0x3b1b97,_0x3159cb){const _0x54d6bc=a110_0x4b07,_0x1f494a=_0x3b1b97();while(!![]){try{const _0x1bd982=parseInt(_0x54d6bc(0x12a))/0x1+parseInt(_0x54d6bc(0x12d))/0x2*(parseInt(_0x54d6bc(0x128))/0x3)+-parseInt(_0x54d6bc(0x12b))/0x4*(parseInt(_0x54d6bc(0x126))/0x5)+parseInt(_0x54d6bc(0x127))/0x6+parseInt(_0x54d6bc(0x129))/0x7*(parseInt(_0x54d6bc(0x12f))/0x8)+-parseInt(_0x54d6bc(0x12c))/0x9+-parseInt(_0x54d6bc(0x12e))/0xa;if(_0x1bd982===_0x3159cb)break;else _0x1f494a['push'](_0x1f494a['shift']());}catch(_0x49703c){_0x1f494a['push'](_0x1f494a['shift']());}}}(a110_0x27af,0x6438a));export function dryRun(_0x251aaa,_0x2edbc5){const _0x3382c0={'method':_0x251aaa,'url':_0x2edbc5},_0x2acb77={'body'(_0xff6643){return _0x3382c0['body']=_0xff6643,_0x2acb77;},'description'(_0x172e36){return _0x3382c0['description']=_0x172e36,_0x2acb77;},'build'(){return{..._0x3382c0};}};return _0x2acb77;}function a110_0x27af(){const _0x3d54fd=['20412SsqLiq','517647TPBwav','193808WkzfUd','5486706bbdcUE','79726DvzJlq','8420960LJZTle','2104BksnPJ','40XafhzS','4117536Otxhaw','21ufkTLu'];a110_0x27af=function(){return _0x3d54fd;};return a110_0x27af();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a111_0x2a1100=a111_0xa2af;(function(_0x595539,_0x4d7e22){const _0x26bde3=a111_0xa2af,_0x1da6df=_0x595539();while(!![]){try{const _0x336920=parseInt(_0x26bde3(0x119))/0x1*(parseInt(_0x26bde3(0x113))/0x2)+-parseInt(_0x26bde3(0x118))/0x3+parseInt(_0x26bde3(0x116))/0x4+parseInt(_0x26bde3(0x112))/0x5+-parseInt(_0x26bde3(0x110))/0x6+-parseInt(_0x26bde3(0x117))/0x7+-parseInt(_0x26bde3(0x114))/0x8*(-parseInt(_0x26bde3(0x111))/0x9);if(_0x336920===_0x4d7e22)break;else _0x1da6df['push'](_0x1da6df['shift']());}catch(_0x26ad4f){_0x1da6df['push'](_0x1da6df['shift']());}}}(a111_0x4e40,0x5df9e));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a111_0xa2af(_0x79440a,_0x170072){_0x79440a=_0x79440a-0x110;const _0x4e4015=a111_0x4e40();let _0xa2af40=_0x4e4015[_0x79440a];return _0xa2af40;}function a111_0x4e40(){const _0x208a64=['823176gmxOAD','2hVhfFM','1359522aCloWU','297eTwEAQ','322250kRIFpu','284186VBOWDn','53400KruFaI','validateFlags','2692592cMgyPP','2493078KtJSyq'];a111_0x4e40=function(){return _0x208a64;};return a111_0x4e40();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a111_0x2a1100(0x115)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c7b20,_0x430483){const _0x523068=a112_0x5c0d,_0x1580ef=_0x1c7b20();while(!![]){try{const _0x3f506e=parseInt(_0x523068(0x1f2))/0x1+-parseInt(_0x523068(0x1e7))/0x2*(-parseInt(_0x523068(0x1eb))/0x3)+parseInt(_0x523068(0x1f5))/0x4+parseInt(_0x523068(0x1f0))/0x5*(-parseInt(_0x523068(0x1ea))/0x6)+parseInt(_0x523068(0x1f1))/0x7*(-parseInt(_0x523068(0x1ec))/0x8)+parseInt(_0x523068(0x1e8))/0x9*(-parseInt(_0x523068(0x1ed))/0xa)+parseInt(_0x523068(0x1e9))/0xb;if(_0x3f506e===_0x430483)break;else _0x1580ef['push'](_0x1580ef['shift']());}catch(_0x28ee87){_0x1580ef['push'](_0x1580ef['shift']());}}}(a112_0x426c,0x3d515));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 createGenerators(){const _0x3fdea8=a112_0x5c0d;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x3fdea8(0x1ee)+PRODUCT_CONFIG['newConfigFileName']+_0x3fdea8(0x1f3)});}function a112_0x426c(){const _0x20e42a=['service','212614vYaZqM','112599VlWLVm','2725580YNbSnw','96mZJjIO','9RWqJbL','184CCpScF','100upgACR','Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp','78035bKrbXm','146524IeekBw','210153GsxEMu','\x20or\x20--appcode).','filter','1322244ZbaIqq','has'];a112_0x426c=function(){return _0x20e42a;};return a112_0x426c();}export function generateCommandHelp(_0x831d84){return createGenerators()['generateCommandHelp'](_0x831d84);}function a112_0x5c0d(_0x24837e,_0xcb8ce2){_0x24837e=_0x24837e-0x1e5;const _0x426c82=a112_0x426c();let _0x5c0daa=_0x426c82[_0x24837e];return _0x5c0daa;}export function generateServiceHelp(_0xb435f3){const _0x4107cd=a112_0x5c0d;return createGenerators()[_0x4107cd(0x1ef)](_0xb435f3);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x183c4b){const _0x81316b=getServiceEntry(_0x183c4b);if(_0x81316b)return _0x81316b;try{return getDynamicServiceEntry(_0x183c4b);}catch{return undefined;}}function getAnyServiceDefinitions(_0x26ea05){const _0x4affc1=serviceGroups['get'](_0x26ea05);if(_0x4affc1)return _0x4affc1;try{return getDynamicServiceDefinitions(_0x26ea05);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3886eb=a112_0x5c0d,_0x262cad=new Set(serviceRegistry['map'](_0x346648=>_0x346648[_0x3886eb(0x1e6)]));try{return listDynamicServiceEntries()[_0x3886eb(0x1f4)](_0x5ba2dc=>!_0x262cad[_0x3886eb(0x1e5)](_0x5ba2dc[_0x3886eb(0x1e6)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37cd52,_0x5496a7){var _0xcdf630=a113_0x1acf,_0x47b314=_0x37cd52();while(!![]){try{var _0x185441=parseInt(_0xcdf630(0x170))/0x1+parseInt(_0xcdf630(0x174))/0x2*(-parseInt(_0xcdf630(0x16d))/0x3)+-parseInt(_0xcdf630(0x16f))/0x4+-parseInt(_0xcdf630(0x175))/0x5+-parseInt(_0xcdf630(0x16e))/0x6*(-parseInt(_0xcdf630(0x171))/0x7)+-parseInt(_0xcdf630(0x172))/0x8*(parseInt(_0xcdf630(0x173))/0x9)+parseInt(_0xcdf630(0x176))/0xa;if(_0x185441===_0x5496a7)break;else _0x47b314['push'](_0x47b314['shift']());}catch(_0x34481){_0x47b314['push'](_0x47b314['shift']());}}}(a113_0x1f0d,0xbc717));function a113_0x1f0d(){var _0xa93637=['4239304dQowLG','997175myCvuB','442813dvWcSQ','21848KbLqMN','4419YsloDZ','4IhdZNZ','675300VOwrAF','30272960deiYeU','1739421WGdVNQ','42OiArqF'];a113_0x1f0d=function(){return _0xa93637;};return a113_0x1f0d();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a113_0x1acf(_0x19043f,_0x4f82b8){_0x19043f=_0x19043f-0x16d;var _0x1f0dbf=a113_0x1f0d();var _0x1acfff=_0x1f0dbf[_0x19043f];return _0x1acfff;}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(_0x268259,_0x11a434){const _0xfbbe02=a114_0x3ca6,_0x10fa87=_0x268259();while(!![]){try{const _0x3cccb9=-parseInt(_0xfbbe02(0x1c5))/0x1*(-parseInt(_0xfbbe02(0x1be))/0x2)+parseInt(_0xfbbe02(0x1bf))/0x3*(parseInt(_0xfbbe02(0x1c4))/0x4)+parseInt(_0xfbbe02(0x1c6))/0x5+-parseInt(_0xfbbe02(0x1c3))/0x6*(-parseInt(_0xfbbe02(0x1c7))/0x7)+-parseInt(_0xfbbe02(0x1bc))/0x8+parseInt(_0xfbbe02(0x1c2))/0x9*(-parseInt(_0xfbbe02(0x1bb))/0xa)+-parseInt(_0xfbbe02(0x1c0))/0xb;if(_0x3cccb9===_0x11a434)break;else _0x10fa87['push'](_0x10fa87['shift']());}catch(_0x509c72){_0x10fa87['push'](_0x10fa87['shift']());}}}(a114_0x1658,0x98a71));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a114_0x3ca6(_0x452320,_0x28f9a3){_0x452320=_0x452320-0x1ba;const _0x16584b=a114_0x1658();let _0x3ca6ed=_0x16584b[_0x452320];return _0x3ca6ed;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a114_0x1658(){const _0x1a4561=['error','220HbRtEd','8220088AjNSsl','_notice','2998ACpvWR','35301ZgGNGc','13784419qAPtKj','url','322533AuikbQ','6gfzviw','404ChmIBt','602DYGLQZ','5794410zESlXG','3112004QmSVGz','pretty'];a114_0x1658=function(){return _0x1a4561;};return a114_0x1658();}export function formatOutput(_0x1f69c6,_0x12aa60){const _0x3b97c9=a114_0x3ca6,_0x47732e=_0x1f69c6[_0x3b97c9(0x1bd)],{_notice:_0xc1ef6f,..._0x204659}=_0x1f69c6;void _0xc1ef6f,baseFormatOutput(_0x204659,_0x12aa60),_0x12aa60['format']===_0x3b97c9(0x1c8)&&printPrettyNotice(_0x47732e);}function printPrettyNotice(_0x3de1fa){const _0x835148=a114_0x3ca6;if(!_0x3de1fa?.['update'])return;console[_0x835148(0x1ba)](_0x3de1fa['update']['message']+'\x20('+_0x3de1fa['update'][_0x835148(0x1c1)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x480cca,_0x284722){const _0x27861d=a115_0x3e14,_0x14f057=_0x480cca();while(!![]){try{const _0x473f8a=-parseInt(_0x27861d(0xa0))/0x1+parseInt(_0x27861d(0xa7))/0x2*(-parseInt(_0x27861d(0xac))/0x3)+parseInt(_0x27861d(0xc3))/0x4*(parseInt(_0x27861d(0xc4))/0x5)+-parseInt(_0x27861d(0xb1))/0x6+-parseInt(_0x27861d(0xbb))/0x7*(-parseInt(_0x27861d(0xb9))/0x8)+parseInt(_0x27861d(0xa2))/0x9*(-parseInt(_0x27861d(0xbe))/0xa)+-parseInt(_0x27861d(0xc1))/0xb;if(_0x473f8a===_0x284722)break;else _0x14f057['push'](_0x14f057['shift']());}catch(_0x34a74d){_0x14f057['push'](_0x14f057['shift']());}}}(a115_0x5a84,0xefb47));export function toKebab(_0x5368af){const _0x3a21fa=a115_0x3e14;return _0x5368af[_0x3a21fa(0xa1)](/_/g,'-')[_0x3a21fa(0xa1)](/-([A-Z]+)/g,(_0x5ac9c4,_0x49b07b)=>'-'+_0x49b07b[_0x3a21fa(0xaf)]())[_0x3a21fa(0xa1)](/([a-z0-9])([A-Z])/g,(_0x1b9580,_0x23737e,_0x5d7166)=>_0x23737e+'-'+_0x5d7166)[_0x3a21fa(0xaf)]();}function buildKnownFlags(_0x765c9c){const _0x176ab4=a115_0x3e14,_0x12e95a=new Set();for(const _0x43ccb7 of _0x765c9c){_0x12e95a[_0x176ab4(0xbd)](_0x43ccb7[_0x176ab4(0xb2)]),_0x12e95a['add'](toCamelCase(_0x43ccb7[_0x176ab4(0xb2)]));}for(const _0x52ea89 of[_0x176ab4(0xbf),'dryRun',_0x176ab4(0xbc),_0x176ab4(0xb0)]){_0x12e95a['add'](_0x52ea89);}for(const _0x33d833 of[_0x176ab4(0xc2),_0x176ab4(0xa4),_0x176ab4(0xad),_0x176ab4(0xc0),'nonInteractive','non-interactive','ci','global',_0x176ab4(0xb7)]){_0x12e95a[_0x176ab4(0xbd)](_0x33d833);}return _0x12e95a;}function buildFlagTypeMap(_0x54cf6b){const _0x4ef090=a115_0x3e14,_0x4c7fd7=new Map();for(const _0x4ff81f of _0x54cf6b){_0x4c7fd7['set'](_0x4ff81f[_0x4ef090(0xb2)],_0x4ff81f['type']),_0x4c7fd7[_0x4ef090(0xba)](toCamelCase(_0x4ff81f[_0x4ef090(0xb2)]),_0x4ff81f[_0x4ef090(0xab)]);}return _0x4c7fd7;}function a115_0x3e14(_0x3f8e86,_0x5996d){_0x3f8e86=_0x3f8e86-0xa0;const _0x5a8480=a115_0x5a84();let _0x3e1434=_0x5a8480[_0x3f8e86];return _0x3e1434;}function toCamelCase(_0x297dd2){return _0x297dd2['replace'](/-([a-z])/g,(_0x1e980c,_0x2f8203)=>_0x2f8203['toUpperCase']());}function aliasHandler(_0x33df7a,_0x4efebd){const _0x565d1b=a115_0x3e14,_0x26b4ed=[];for(const _0x25352e of Object[_0x565d1b(0xa8)](_0x33df7a)){if(_0x4efebd[_0x565d1b(0xa3)](_0x25352e))continue;const _0x173406=toKebab(_0x25352e);_0x173406!==_0x25352e&&_0x4efebd[_0x565d1b(0xa3)](_0x173406)&&_0x26b4ed[_0x565d1b(0xa6)]({'original':_0x25352e,'corrected':_0x173406,'handler':'alias'});}return _0x26b4ed;}function stickyHandler(_0x1ea044,_0x57fc07,_0x5d90ae){const _0x682143=a115_0x3e14,_0x317f6d=[];for(const [_0x3d3acd,_0x3b4ddd]of Object['entries'](_0x1ea044)){if(_0x3b4ddd!==!![])continue;for(let _0x1a6f6a=_0x3d3acd['length']-0x1;_0x1a6f6a>0x0;_0x1a6f6a--){const _0x5e06ea=_0x3d3acd['slice'](0x0,_0x1a6f6a),_0x565150=_0x3d3acd['slice'](_0x1a6f6a),_0x4bd119=toKebab(_0x5e06ea),_0x3db687=toCamelCase(_0x5e06ea),_0x3a22d6=_0x57fc07[_0x682143(0xa3)](_0x5e06ea)?_0x5e06ea:_0x57fc07[_0x682143(0xa3)](_0x4bd119)?_0x4bd119:_0x57fc07[_0x682143(0xa3)](_0x3db687)?_0x3db687:null;if(!_0x3a22d6)continue;const _0x4b3875=_0x5d90ae[_0x682143(0xb3)](_0x3a22d6)??_0x682143(0xb5);let _0x4141a9;if(_0x4b3875===_0x682143(0xb8)){const _0x58cf64=Number(_0x565150);if(isNaN(_0x58cf64)||_0x565150==='')continue;_0x4141a9=_0x58cf64;}else{if(_0x4b3875===_0x682143(0xb6))continue;else{if(_0x565150==='')continue;_0x4141a9=_0x565150;}}_0x317f6d[_0x682143(0xa6)]({'original':_0x3d3acd,'corrected':_0x3a22d6+'='+_0x4141a9,'handler':_0x682143(0xa5)});break;}}return _0x317f6d;}function a115_0x5a84(){const _0x5def23=['corrected','string','boolean','version','number','2145464VljMKW','set','49eKFAOB','yes','add','920NzTgix','dry-run','app','5178030PNPnqT','help','2099308npyKfg','15CoxrPj','259190CKVwxP','replace','118467dSqLqq','has','env','sticky','push','46SKhvIl','keys','length','original','type','66243KnFoOL','appcode','slice','toLowerCase','format','126912sXbtyW','name','get'];a115_0x5a84=function(){return _0x5def23;};return a115_0x5a84();}export function correctFlags(_0x1db8b2,_0x4d2b3a){const _0x5d28fa=a115_0x3e14,_0x3aa996=buildKnownFlags(_0x4d2b3a),_0x3e6c66=buildFlagTypeMap(_0x4d2b3a),_0x4d83b6=aliasHandler(_0x1db8b2,_0x3aa996),_0xb0abf4=stickyHandler(_0x1db8b2,_0x3aa996,_0x3e6c66),_0x1c551f=[..._0x4d83b6,..._0xb0abf4];if(_0x1c551f[_0x5d28fa(0xa9)]===0x0)return{'flags':_0x1db8b2,'corrections':[]};const _0x4dfdc9={..._0x1db8b2},_0x3e43a7=new Set();for(const _0x2a3238 of _0x4d83b6){_0x4dfdc9[_0x2a3238[_0x5d28fa(0xb4)]]=_0x1db8b2[_0x2a3238[_0x5d28fa(0xaa)]],_0x3e43a7['add'](_0x2a3238['original']);}for(const _0x4a5e83 of _0xb0abf4){const _0x4cfd2e=_0x4a5e83[_0x5d28fa(0xb4)]['indexOf']('='),_0x143ad2=_0x4a5e83[_0x5d28fa(0xb4)][_0x5d28fa(0xae)](0x0,_0x4cfd2e),_0x4c0c77=_0x4a5e83[_0x5d28fa(0xb4)][_0x5d28fa(0xae)](_0x4cfd2e+0x1),_0x254a31=_0x3e6c66[_0x5d28fa(0xb3)](_0x143ad2)??_0x5d28fa(0xb5);_0x254a31===_0x5d28fa(0xb8)?_0x4dfdc9[_0x143ad2]=Number(_0x4c0c77):_0x4dfdc9[_0x143ad2]=_0x4c0c77,_0x3e43a7[_0x5d28fa(0xbd)](_0x4a5e83[_0x5d28fa(0xaa)]);}for(const _0x5908cf of _0x3e43a7){delete _0x4dfdc9[_0x5908cf];}return{'flags':_0x4dfdc9,'corrections':_0x1c551f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a116_0x4f05(_0x554c80,_0x461c55){_0x554c80=_0x554c80-0xb0;const _0x171297=a116_0x1712();let _0x4f0576=_0x171297[_0x554c80];return _0x4f0576;}const a116_0x52999=a116_0x4f05;(function(_0x3d4de4,_0x1c2399){const _0x2ca296=a116_0x4f05,_0x4c04ba=_0x3d4de4();while(!![]){try{const _0x33a639=parseInt(_0x2ca296(0xd3))/0x1+parseInt(_0x2ca296(0xd2))/0x2*(parseInt(_0x2ca296(0xc9))/0x3)+-parseInt(_0x2ca296(0xcc))/0x4+parseInt(_0x2ca296(0xb2))/0x5*(-parseInt(_0x2ca296(0xc3))/0x6)+-parseInt(_0x2ca296(0xb3))/0x7*(-parseInt(_0x2ca296(0xc6))/0x8)+-parseInt(_0x2ca296(0xb1))/0x9*(-parseInt(_0x2ca296(0xce))/0xa)+-parseInt(_0x2ca296(0xc5))/0xb;if(_0x33a639===_0x1c2399)break;else _0x4c04ba['push'](_0x4c04ba['shift']());}catch(_0x457ef2){_0x4c04ba['push'](_0x4c04ba['shift']());}}}(a116_0x1712,0xe9c52));import{CliErrors}from'../errors.js';function a116_0x1712(){const _0x1cda02=['12MIkoGX','\x20seconds\x20before\x20retrying.','18012643TRMMIv','56Rhcpnz','function','number','79113KpBZcF','object','call','733936Wwczgd','toLowerCase','910990wrXcMi','isArray','message','rateLimited','4UNTYzM','1318179JfBaJv','Retry-After','Retry\x20after\x20a\x20short\x20delay.','9KdZMQJ','1051465RayhMW','1737085PMgLBH','Retry\x20after\x20','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','retry-after','string','retryAfter','get','test','toUpperCase','trim','has','EXCEED_MAX_QPS_LIMIT','Request\x20rate\x20limit\x20exceeded.','errorCode','IP_RATE_LIMIT_EXCEEDED','status'];a116_0x1712=function(){return _0x1cda02;};return a116_0x1712();}const RATE_LIMIT_ERROR_CODES=new Set([a116_0x52999(0xbe),'MAX_QPS_LIMIT',a116_0x52999(0xc1)]);function nonEmptyString(_0x531443){const _0x3c15f6=a116_0x52999;if(typeof _0x531443!==_0x3c15f6(0xb7))return undefined;const _0x4e58d5=_0x531443[_0x3c15f6(0xbc)]();return _0x4e58d5||undefined;}function buildRetryHint(_0x31855d){const _0x13b3ef=a116_0x52999,_0x5d1422=nonEmptyString(_0x31855d),_0x531923=_0x5d1422?/^\d+$/[_0x13b3ef(0xba)](_0x5d1422)?'Wait\x20'+_0x5d1422+_0x13b3ef(0xc4):_0x13b3ef(0xb4)+_0x5d1422+'.':_0x13b3ef(0xb0);return _0x531923+_0x13b3ef(0xb5);}export function createRateLimitError(_0x45250f){const _0x1edd37=a116_0x52999,_0x4ce6af=nonEmptyString(_0x45250f[_0x1edd37(0xc0)])?.[_0x1edd37(0xbb)](),_0x5988cc=Number(_0x45250f[_0x1edd37(0xc2)])===0x1ad||_0x4ce6af!==undefined&&RATE_LIMIT_ERROR_CODES[_0x1edd37(0xbd)](_0x4ce6af);if(!_0x5988cc)return undefined;return CliErrors[_0x1edd37(0xd1)](nonEmptyString(_0x45250f[_0x1edd37(0xd0)])??_0x1edd37(0xbf),buildRetryHint(_0x45250f[_0x1edd37(0xb8)]));}export function readRetryAfter(_0x5f2d24){const _0x3ef420=a116_0x52999;if(!_0x5f2d24||typeof _0x5f2d24!==_0x3ef420(0xca))return undefined;const _0x35e06f=_0x5f2d24[_0x3ef420(0xb9)];if(typeof _0x35e06f===_0x3ef420(0xc7)){const _0x22aa4a=_0x35e06f[_0x3ef420(0xcb)](_0x5f2d24,_0x3ef420(0xd4))??_0x35e06f[_0x3ef420(0xcb)](_0x5f2d24,'retry-after');return nonEmptyString(_0x22aa4a);}for(const [_0x40876d,_0x25b7e5]of Object['entries'](_0x5f2d24)){if(_0x40876d[_0x3ef420(0xcd)]()===_0x3ef420(0xb6))return nonEmptyString(_0x25b7e5)??(typeof _0x25b7e5===_0x3ef420(0xc8)?String(_0x25b7e5):undefined);}return undefined;}export function readRetryAfterSeconds(_0x143966){const _0x412045=a116_0x52999;if(!_0x143966||typeof _0x143966!==_0x412045(0xca)||Array[_0x412045(0xcf)](_0x143966))return undefined;const _0x1782ad=_0x143966['retryAfterSeconds'];if(typeof _0x1782ad===_0x412045(0xc8))return Number['isInteger'](_0x1782ad)&&_0x1782ad>=0x0?String(_0x1782ad):undefined;const _0x50272f=nonEmptyString(_0x1782ad);return _0x50272f&&/^\d+$/[_0x412045(0xba)](_0x50272f)?_0x50272f:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x8a4c0d=a117_0x5afc;function a117_0x532b(){const _0x195603=['page-size','Run\x20`','asc','2643819olhnxv','orderby','page','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','4953935YthuGS','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','has','111176YzSUeO','2194576LBqLPf','\x20data\x20filter`.','pagesize','validation','add','data','command','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','current-page','873qXdwiG','stringify','name','Example:\x20','no-','3473180koJVKQ','8545362GfAfAK','where','service','currentpage','version','4EAflAi','71728zsqEZx','\x20--help`\x20to\x20see\x20accepted\x20flags.','entries'];a117_0x532b=function(){return _0x195603;};return a117_0x532b();}(function(_0x45dfa2,_0x3b25d0){const _0x3d1e91=a117_0x5afc,_0x469eaa=_0x45dfa2();while(!![]){try{const _0x7088f6=-parseInt(_0x3d1e91(0x14f))/0x1+parseInt(_0x3d1e91(0x150))/0x2+parseInt(_0x3d1e91(0x148))/0x3*(-parseInt(_0x3d1e91(0x141))/0x4)+parseInt(_0x3d1e91(0x13b))/0x5+-parseInt(_0x3d1e91(0x13c))/0x6+parseInt(_0x3d1e91(0x14c))/0x7+-parseInt(_0x3d1e91(0x142))/0x8*(-parseInt(_0x3d1e91(0x136))/0x9);if(_0x7088f6===_0x3b25d0)break;else _0x469eaa['push'](_0x469eaa['shift']());}catch(_0x4380cd){_0x469eaa['push'](_0x469eaa['shift']());}}}(a117_0x532b,0xe894f));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a117_0x5afc(_0x24a5d6,_0x1c495f){_0x24a5d6=_0x24a5d6-0x136;const _0x532b61=a117_0x532b();let _0x5afc2=_0x532b61[_0x24a5d6];return _0x5afc2;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a117_0x8a4c0d(0x13d),'select','order-by',a117_0x8a4c0d(0x149),a117_0x8a4c0d(0x158),a117_0x8a4c0d(0x13f),a117_0x8a4c0d(0x14a),a117_0x8a4c0d(0x145),a117_0x8a4c0d(0x152)]);export function assertKnownCommandFlags(_0x3b5b26,_0x120ce6){const _0x43b575=a117_0x8a4c0d,_0x2df09a=new Set([_0x43b575(0x140)]);for(const _0x311f20 of GLOBAL_FLAGS){_0x2df09a[_0x43b575(0x154)](_0x311f20[_0x43b575(0x138)]),_0x2df09a[_0x43b575(0x154)](toKebab(_0x311f20['meowKey']));}for(const _0xf928e6 of _0x3b5b26['flags']??[]){_0x2df09a[_0x43b575(0x154)](_0xf928e6[_0x43b575(0x138)]);}for(const [_0x2c3d39,_0x74be1d]of Object[_0x43b575(0x144)](_0x120ce6)){const _0x38fe97=toKebab(_0x2c3d39);if(_0x2df09a[_0x43b575(0x14e)](_0x38fe97))continue;if(_0x74be1d===![]&&_0x2df09a[_0x43b575(0x14e)](_0x43b575(0x13a)+_0x38fe97))continue;if(_0x3b5b26[_0x43b575(0x13e)]===_0x43b575(0x155)&&_0x3b5b26[_0x43b575(0x156)]==='filter'&&FILTER_BODY_FIELDS[_0x43b575(0x14e)](_0x38fe97))throw CliErrors[_0x43b575(0x153)]('--'+_0x38fe97+_0x43b575(0x157)+CLI_BIN_NAME+_0x43b575(0x151),_0x43b575(0x14d)+(_0x43b575(0x139)+CLI_BIN_NAME+_0x43b575(0x14b))+('\x27'+JSON[_0x43b575(0x137)]({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0x43b575(0x147)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x43b575(0x153)]('Unknown\x20flag\x20--'+_0x38fe97+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x3b5b26[_0x43b575(0x13e)]+'\x20'+_0x3b5b26[_0x43b575(0x156)]+'`.',_0x43b575(0x146)+CLI_BIN_NAME+'\x20'+_0x3b5b26[_0x43b575(0x13e)]+'\x20'+_0x3b5b26['command']+_0x43b575(0x143));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a118_0x34d7(_0x5be253,_0x4e937d){_0x5be253=_0x5be253-0x155;var _0x4918f4=a118_0x4918();var _0x34d745=_0x4918f4[_0x5be253];return _0x34d745;}(function(_0x6e82ac,_0x561fa6){var _0x2cef64=a118_0x34d7,_0x359f20=_0x6e82ac();while(!![]){try{var _0x4df81b=parseInt(_0x2cef64(0x15e))/0x1+-parseInt(_0x2cef64(0x156))/0x2+parseInt(_0x2cef64(0x15d))/0x3*(parseInt(_0x2cef64(0x159))/0x4)+parseInt(_0x2cef64(0x155))/0x5+-parseInt(_0x2cef64(0x158))/0x6*(parseInt(_0x2cef64(0x15b))/0x7)+parseInt(_0x2cef64(0x157))/0x8*(parseInt(_0x2cef64(0x15a))/0x9)+-parseInt(_0x2cef64(0x15c))/0xa;if(_0x4df81b===_0x561fa6)break;else _0x359f20['push'](_0x359f20['shift']());}catch(_0x36163e){_0x359f20['push'](_0x359f20['shift']());}}}(a118_0x4918,0x4aab2));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a118_0x4918(){var _0x44562f=['2379Eivacf','413304zeVxZf','201560RGtAyC','1021886cOqvXx','8hYwjkI','6crTjeP','1636WzlOSc','5367753ZwRfaZ','3410365FhqRor','703900jneqXy'];a118_0x4918=function(){return _0x44562f;};return a118_0x4918();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fde72,_0x477a30){const _0x42eee1=a119_0x2aa5,_0x52038a=_0x2fde72();while(!![]){try{const _0x14d2c2=-parseInt(_0x42eee1(0xf5))/0x1+-parseInt(_0x42eee1(0xf7))/0x2*(parseInt(_0x42eee1(0xde))/0x3)+-parseInt(_0x42eee1(0xda))/0x4*(-parseInt(_0x42eee1(0xdb))/0x5)+parseInt(_0x42eee1(0xfd))/0x6+-parseInt(_0x42eee1(0xdd))/0x7*(-parseInt(_0x42eee1(0xe5))/0x8)+-parseInt(_0x42eee1(0xe6))/0x9+parseInt(_0x42eee1(0xdc))/0xa;if(_0x14d2c2===_0x477a30)break;else _0x52038a['push'](_0x52038a['shift']());}catch(_0x5f440a){_0x52038a['push'](_0x52038a['shift']());}}}(a119_0x34ec,0xf3b10));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x2d6ed8,_0x2321fe,_0x49c33b){const _0x1912f6=a119_0x2aa5,_0x4a882c=buildConfirmationContext(_0x2d6ed8,_0x2321fe,_0x49c33b),_0x3e743d=[_0x1912f6(0xf0)+_0x4a882c[_0x1912f6(0xe1)]];return _0x4a882c['description']&&_0x3e743d[_0x1912f6(0xea)](_0x1912f6(0xf2)+_0x4a882c[_0x1912f6(0xef)]),_0x4a882c[_0x1912f6(0xe8)]&&_0x3e743d[_0x1912f6(0xea)](_0x1912f6(0xf6)+_0x4a882c[_0x1912f6(0xe8)]),_0x3e743d[_0x1912f6(0xea)](_0x1912f6(0xf4)),_0x3e743d;}export function reconstructCommandArgv(_0x5c837d,_0x234767){const _0x5bd1b2=a119_0x2aa5,_0x4ed7df=[CLI_BIN_NAME,_0x5c837d[_0x5bd1b2(0xfc)],_0x5c837d[_0x5bd1b2(0xe3)]];for(const [_0x17f5dc,_0x4b2608]of Object[_0x5bd1b2(0xd9)](_0x234767)){if(_0x4b2608===!![])_0x4ed7df['push']('--'+_0x17f5dc);else{if(isSensitiveFlagName(_0x17f5dc)&&_0x4b2608!==![]&&_0x4b2608!==undefined&&_0x4b2608!=='')_0x4ed7df[_0x5bd1b2(0xea)]('--'+_0x17f5dc+'\x20[REDACTED]');else _0x4b2608!==![]&&_0x4b2608!==undefined&&_0x4b2608!==''&&_0x4ed7df[_0x5bd1b2(0xea)]('--'+_0x17f5dc+'\x20'+JSON['stringify'](_0x4b2608));}}return _0x4ed7df[_0x5bd1b2(0xea)](_0x5bd1b2(0xfb)),_0x4ed7df[_0x5bd1b2(0xf1)]('\x20');}function a119_0x34ec(){const _0x2db13a=['cron','--yes','service','10023774DBXxnG','length','params=','schedule-id','entries','12396BUYjia','875cZWODo','12604540vMOJLS','203oapyEQ','87wBkREq','title=','kind=','commandLabel','cron=','command','scheduled-at=','35680HpnZKv','6936750hbTYtO','params','affectedRecords','id=','push','kind','code=','scheduled-at','channel=','description','⚠\x20\x20High-risk\x20operation:\x20','join','\x20\x20\x20','code','\x20\x20\x20Continue?\x20[y/N]\x20','567263RNXmtd','\x20\x20\x20Affected:\x20','87350oMdmmz','channel','title'];a119_0x34ec=function(){return _0x2db13a;};return a119_0x34ec();}function a119_0x2aa5(_0x4b5f76,_0x28dbcf){_0x4b5f76=_0x4b5f76-0xd7;const _0x34ec19=a119_0x34ec();let _0x2aa526=_0x34ec19[_0x4b5f76];return _0x2aa526;}function buildConfirmationContext(_0x7bfa40,_0x41b510,_0x3ead8d){const _0x3c6c2f=a119_0x2aa5,_0x26c15e=extractAffectedRecords(_0x3ead8d);return{'commandLabel':_0x41b510,'description':_0x7bfa40[_0x3c6c2f(0xef)],'affectedRecords':_0x26c15e};}function extractAffectedRecords(_0x311611){const _0x10f790=a119_0x2aa5,_0x4de982=[];if(_0x311611[_0x10f790(0xf3)])_0x4de982[_0x10f790(0xea)](_0x10f790(0xec)+_0x311611[_0x10f790(0xf3)]);if(_0x311611['id'])_0x4de982['push'](_0x10f790(0xe9)+_0x311611['id']);if(_0x311611[_0x10f790(0xd8)])_0x4de982[_0x10f790(0xea)]('schedule-id='+_0x311611[_0x10f790(0xd8)]);if(_0x311611['name'])_0x4de982[_0x10f790(0xea)]('name='+_0x311611['name']);if(_0x311611[_0x10f790(0xf9)])_0x4de982[_0x10f790(0xea)](_0x10f790(0xdf)+_0x311611[_0x10f790(0xf9)]);if(_0x311611[_0x10f790(0xeb)])_0x4de982[_0x10f790(0xea)](_0x10f790(0xe0)+_0x311611['kind']);if(_0x311611[_0x10f790(0xfa)])_0x4de982['push'](_0x10f790(0xe2)+_0x311611[_0x10f790(0xfa)]);if(_0x311611[_0x10f790(0xed)])_0x4de982[_0x10f790(0xea)](_0x10f790(0xe4)+_0x311611['scheduled-at']);if(_0x311611[_0x10f790(0xf8)])_0x4de982[_0x10f790(0xea)](_0x10f790(0xee)+_0x311611[_0x10f790(0xf8)]);if(_0x311611[_0x10f790(0xe7)])_0x4de982[_0x10f790(0xea)](_0x10f790(0xd7)+_0x311611[_0x10f790(0xe7)]);return _0x4de982[_0x10f790(0xfe)]>0x0?_0x4de982[_0x10f790(0xf1)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x21ca(){const _0x2f5175=['1956755QYtElI','598086EXoFFU','7QEAIIp','string','47402JxkMPF','response','trim','validation','stringify','headers','2228452rMSYtJ','message','4149448OGCrbY','515457gyDcyu','295435Vuytfg'];a120_0x21ca=function(){return _0x2f5175;};return a120_0x21ca();}(function(_0x223f13,_0x225ab4){const _0x46f2f=a120_0x499e,_0x404baf=_0x223f13();while(!![]){try{const _0xa0874a=parseInt(_0x46f2f(0x91))/0x1*(parseInt(_0x46f2f(0x93))/0x2)+-parseInt(_0x46f2f(0x8d))/0x3+parseInt(_0x46f2f(0x8a))/0x4+parseInt(_0x46f2f(0x8f))/0x5+-parseInt(_0x46f2f(0x90))/0x6+parseInt(_0x46f2f(0x8e))/0x7+-parseInt(_0x46f2f(0x8c))/0x8;if(_0xa0874a===_0x225ab4)break;else _0x404baf['push'](_0x404baf['shift']());}catch(_0x5b8f11){_0x404baf['push'](_0x404baf['shift']());}}}(a120_0x21ca,0x5973b));import{LovrabetError}from'@lovrabet/sdk';function a120_0x499e(_0x589b69,_0x2cf17f){_0x589b69=_0x589b69-0x89;const _0x21ca9c=a120_0x21ca();let _0x499e91=_0x21ca9c[_0x589b69];return _0x499e91;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0xc23aa6){const _0x3832a3=a120_0x499e;if(_0xc23aa6 instanceof LovrabetError){const _0x26ef35=userFacingLovrabetMessage(_0xc23aa6),_0x3b9f0b=_0xc23aa6,_0x32bab0=createRateLimitError({'status':_0x3b9f0b['status'],'errorCode':_0x3b9f0b['code'],'message':_0x26ef35,'retryAfter':readRetryAfter(_0x3b9f0b[_0x3832a3(0x94)]?.[_0x3832a3(0x89)])??readRetryAfterSeconds(_0x3b9f0b[_0x3832a3(0x94)])});return _0x32bab0??CliErrors[_0x3832a3(0x96)](_0x26ef35);}return _0xc23aa6;}function userFacingLovrabetMessage(_0x96db30){const _0x406bc4=a120_0x499e,_0x58e8bf=_0x96db30['description'];if(_0x58e8bf!==undefined&&_0x58e8bf!==null){if(typeof _0x58e8bf===_0x406bc4(0x92)&&_0x58e8bf[_0x406bc4(0x95)]())return _0x58e8bf[_0x406bc4(0x95)]();try{return JSON[_0x406bc4(0x97)](_0x58e8bf);}catch{}}return _0x96db30[_0x406bc4(0x8b)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a120_0x9fe9(_0x2d7b31,_0x350b9c){_0x2d7b31=_0x2d7b31-0x1f1;const _0x212451=a120_0x2124();let _0x9fe9a1=_0x212451[_0x2d7b31];return _0x9fe9a1;}(function(_0x5bf6f1,_0x387485){const _0x441d19=a120_0x9fe9,_0x2b8dce=_0x5bf6f1();while(!![]){try{const _0x17abe0=parseInt(_0x441d19(0x208))/0x1*(-parseInt(_0x441d19(0x227))/0x2)+-parseInt(_0x441d19(0x21c))/0x3+-parseInt(_0x441d19(0x20a))/0x4*(parseInt(_0x441d19(0x1ff))/0x5)+-parseInt(_0x441d19(0x209))/0x6*(-parseInt(_0x441d19(0x226))/0x7)+parseInt(_0x441d19(0x22a))/0x8+parseInt(_0x441d19(0x22d))/0x9*(parseInt(_0x441d19(0x223))/0xa)+parseInt(_0x441d19(0x203))/0xb*(parseInt(_0x441d19(0x207))/0xc);if(_0x17abe0===_0x387485)break;else _0x2b8dce['push'](_0x2b8dce['shift']());}catch(_0x50eaee){_0x2b8dce['push'](_0x2b8dce['shift']());}}}(a120_0x2124,0xa8de2));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,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';function a120_0x2124(){const _0x542c6f=['`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','3815289LbLvUM','currentApp','update','requiresAppCode','cancelled','install','schema','14990XZHWWw','env','format','16793kbzaHR','2HVbHHv','_notice','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','1131144tBhAyZ','High-risk\x20operation\x20`','apiDomain','927bWpnwV','nonInteractive','ClientAk','items','map','object','has','defaultVerbose','Unknown\x20app:\x20','command','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','mergedCli','appcode\x20\x22','requiresAuth','validation','name','nativeToolRequired','configMissing','filter','formatOutput','error','Set\x20accessKey\x20in\x20','appcode','app','string','production','../commands/app/remote-source.js','authRequired','local-alias','3855Ikfnlb','rawFlags','riskLevel','nativeToolAvailable','1127302KCXmgF','risk','.appcode\x20to\x20','appCode','228QtwEnt','10081cgFcje','1536CiJRmD','4584xcJfYt','service','pretty','write','\x20or\x20pass\x20','runtimeDomain','Run\x20`','newConfigFileName','../core/api-client.js','APPCODE','accessKey','high-risk-write','appCodeSource','defaultApp','catch','pageSize','trim'];a120_0x2124=function(){return _0x542c6f;};return a120_0x2124();}export function resolveAuthMode(_0x56f888){const _0x548695=a120_0x9fe9;return void _0x56f888,AUTH_MODE[_0x548695(0x22f)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2e899b,_0x71dbf2){const _0x25e02f=a120_0x9fe9,_0x5398f9=typeof _0x71dbf2[_0x25e02f(0x1f9)]==='string'&&_0x71dbf2['app'][_0x25e02f(0x21a)]();return{'rawFlags':_0x71dbf2,'appCode':_0x2e899b[_0x25e02f(0x206)]||productEnv(_0x25e02f(0x213))||(_0x5398f9?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2e899b[_0x25e02f(0x216)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x71dbf2),'defaultFormat':_0x2e899b[_0x25e02f(0x225)],'defaultPageSize':_0x2e899b[_0x25e02f(0x219)],'defaultVerbose':_0x2e899b['verbose'],'riskLevel':_0x2e899b[_0x25e02f(0x201)],'nativeToolAvailable':_0x2e899b[_0x25e02f(0x202)],'accessKey':_0x2e899b[_0x25e02f(0x214)],'env':_0x2e899b[_0x25e02f(0x224)],'mergedCli':{'defaultApp':_0x2e899b[_0x25e02f(0x217)],'currentApp':_0x2e899b['currentApp'],'appCode':_0x2e899b['appCode']}};}export function createLovrabetRunnerAdapter(_0x135eda={}){const _0x5bc992=a120_0x9fe9,_0x1f3c32={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x5bc992(0x1f4)](_0x4009f7=>PIPELINE_FLAG_NAMES[_0x5bc992(0x233)](_0x4009f7[_0x5bc992(0x1f1)]))[_0x5bc992(0x231)](({name:_0xd3c6d5,type:_0x40d4ee,description:_0x2b61d5})=>({'name':_0xd3c6d5,'type':_0x40d4ee,'description':_0x2b61d5})),'formatOutput':_0x135eda[_0x5bc992(0x1f5)]??formatOutput,'getCommandLabel'(_0x350c99){return CLI_BIN_NAME+'\x20'+_0x350c99['service']+'\x20'+_0x350c99['command'];},'riskPolicy':{'onViolation'(_0x5f3980,{def:_0x27585d,env:_0x168bdd}){const _0x342fee=_0x5bc992;if(shouldRouteWriteToNativeTool(_0x27585d,_0x168bdd))return;console[_0x342fee(0x1f6)](_0x5f3980);},'createError'(_0x4136fa,{def:_0x4774b3,env:_0x5d9dc5}){const _0x4e7ca5=_0x5bc992;if(shouldRouteWriteToNativeTool(_0x4774b3,_0x5d9dc5))return CliErrors[_0x4e7ca5(0x1f2)](CLI_BIN_NAME+'\x20'+_0x4774b3['service']+'\x20'+_0x4774b3[_0x4e7ca5(0x236)]);return CliErrors['cancelled'](_0x4136fa);}},async 'prepare'(_0x4f2e5e,_0x13e934){const _0x8aeb41=_0x5bc992,_0x563e88=resolveAuthMode(_0x13e934);if(_0x4f2e5e[_0x8aeb41(0x23a)]!==![]){if(!_0x13e934[_0x8aeb41(0x214)])throw CliErrors[_0x8aeb41(0x1fd)](_0x8aeb41(0x1f7)+PRODUCT_CONFIG[_0x8aeb41(0x211)]+_0x8aeb41(0x20e)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x47c00c}=await import(_0x8aeb41(0x212));_0x47c00c(_0x13e934['accessKey']);}let _0x4eb691='';if(_0x4f2e5e['requiresAppCode']!==![]){_0x4eb691=_0x13e934[_0x8aeb41(0x206)]??'',_0x4eb691=await resolveExplicitAppName(_0x4f2e5e,_0x13e934,_0x4eb691);if(!_0x4eb691){await assertSelectedAppNameIsRuntimeAccessible(_0x4f2e5e,_0x13e934);throw CliErrors[_0x8aeb41(0x1f3)](_0x8aeb41(0x229)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x4f2e5e,_0x13e934,_0x4eb691);}if(_0x4eb691){const {initSdkClient:_0x5e902d}=await import('../core/sdk-client.js');_0x5e902d({'appCode':_0x4eb691,'env':_0x13e934[_0x8aeb41(0x224)]??_0x8aeb41(0x1fb),'runtimeDomain':_0x13e934[_0x8aeb41(0x20f)],'accessKey':_0x13e934[_0x8aeb41(0x214)],'authMode':_0x563e88}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x13e934[_0x8aeb41(0x234)]},'numbers':{'pagesize':_0x13e934['defaultPageSize']}},'extras':{'appCode':_0x4eb691,'cookie':'','apiDomain':_0x13e934[_0x8aeb41(0x22c)],'apiDir':'','accessKey':_0x13e934[_0x8aeb41(0x214)],'envName':_0x13e934[_0x8aeb41(0x224)],'mergedCli':_0x13e934[_0x8aeb41(0x238)]}};},'confirmHighRisk':_0x135eda['confirmHighRisk']??(async({def:_0x390b1a,env:_0x591c9e,flags:_0x183f89,commandLabel:_0x393dba})=>{const _0x191dd5=_0x5bc992;if(_0x591c9e['isNonInteractive']){const _0x220def=reconstructCommandArgv(_0x390b1a,_0x183f89);throw CliErrors[_0x191dd5(0x23b)](_0x191dd5(0x22b)+_0x393dba+_0x191dd5(0x21b)+('\x20\x20To\x20proceed:\x20'+_0x220def));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x390b1a,_0x393dba,_0x183f89),'createCancelledError':_0x482794=>CliErrors[_0x191dd5(0x220)](_0x482794)});}),'mapDryRunError'(_0xd924f0){return mapUserFacingExecuteError(_0xd924f0);},'mapExecuteError'(_0xdd1840){return mapUserFacingExecuteError(_0xdd1840);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1f3c32;}function shouldRouteWriteToNativeTool(_0x59ee17,_0x4e4dc6){const _0x560676=a120_0x9fe9;return _0x4e4dc6[_0x560676(0x202)]===!![]&&(_0x59ee17[_0x560676(0x204)]===_0x560676(0x20d)||_0x59ee17[_0x560676(0x204)]===_0x560676(0x215));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2eb5d3=a120_0x9fe9;try{if(sdkClientInitialized){const {clearSdkClient:_0x34d25b}=await import('../core/sdk-client.js');_0x34d25b();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x59b635}=await import(_0x2eb5d3(0x212));_0x59b635();}}async function resolveExplicitAppName(_0x4538a1,_0xc8b3aa,_0x2146ae){const _0x3121fe=a120_0x9fe9;if(_0x4538a1[_0x3121fe(0x21f)]===![])return _0x2146ae;const _0x19390f=typeof _0xc8b3aa[_0x3121fe(0x200)][_0x3121fe(0x1f9)]===_0x3121fe(0x1fa)?_0xc8b3aa['rawFlags'][_0x3121fe(0x1f9)][_0x3121fe(0x21a)]():'';if(!_0x19390f)return _0x2146ae;const _0x517e00=typeof _0xc8b3aa[_0x3121fe(0x200)][_0x3121fe(0x1f8)]===_0x3121fe(0x1fa)&&_0xc8b3aa[_0x3121fe(0x200)][_0x3121fe(0x1f8)][_0x3121fe(0x21a)]()||productEnv(_0x3121fe(0x213));if(_0x517e00||_0xc8b3aa[_0x3121fe(0x216)]===_0x3121fe(0x1fe))return _0x2146ae;const {getRemoteAppList:_0x3f59bb}=await import(_0x3121fe(0x1fc)),_0x3d794c=await _0x3f59bb({'env':_0xc8b3aa[_0x3121fe(0x224)]??_0x3121fe(0x1fb),'accessKey':_0xc8b3aa[_0x3121fe(0x214)]}),_0x5854bf=findAppByName(_0x3d794c[_0x3121fe(0x230)],_0x19390f);if(_0x5854bf&&!isRuntimeAccessibleApp(_0x5854bf))throw runtimeInaccessibleAppError(_0x5854bf,'\x22'+_0x19390f+'\x22');const _0xc501ea=_0x5854bf?.['appCode']?.[_0x3121fe(0x21a)]();if(_0xc501ea)return _0xc501ea;throw CliErrors[_0x3121fe(0x23b)](_0x3121fe(0x235)+_0x19390f,_0x3121fe(0x210)+CLI_BIN_NAME+_0x3121fe(0x237)+_0x19390f+_0x3121fe(0x205)+PRODUCT_CONFIG[_0x3121fe(0x211)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x421d07,_0x2d62d8){const _0xa98032=a120_0x9fe9;if(_0x421d07[_0xa98032(0x21f)]===![]||!_0x2d62d8[_0xa98032(0x214)])return;const _0x448ada=(typeof _0x2d62d8[_0xa98032(0x200)]['app']===_0xa98032(0x1fa)&&_0x2d62d8['rawFlags'][_0xa98032(0x1f9)]['trim']()?_0x2d62d8[_0xa98032(0x200)][_0xa98032(0x1f9)]:_0x2d62d8[_0xa98032(0x238)]?.[_0xa98032(0x21d)]??_0x2d62d8[_0xa98032(0x238)]?.[_0xa98032(0x217)])?.['trim']();if(!_0x448ada)return;const {getRemoteAppList:_0x1d135d}=await import(_0xa98032(0x1fc)),_0xc7e9a2=await _0x1d135d({'env':_0x2d62d8[_0xa98032(0x224)]??_0xa98032(0x1fb),'accessKey':_0x2d62d8[_0xa98032(0x214)]}),_0x368843=findAppByName(_0xc7e9a2[_0xa98032(0x230)],_0x448ada);if(_0x368843&&!isRuntimeAccessibleApp(_0x368843))throw runtimeInaccessibleAppError(_0x368843,'\x22'+_0x448ada+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1bd6c4,_0x41702d,_0x1089a5){const _0x3a9caf=a120_0x9fe9;if(_0x1bd6c4[_0x3a9caf(0x21f)]===![]||!_0x41702d[_0x3a9caf(0x214)])return;const {getRemoteAppList:_0x4ff9f3}=await import('../commands/app/remote-source.js'),_0x55637f=await _0x4ff9f3({'env':_0x41702d[_0x3a9caf(0x224)]??_0x3a9caf(0x1fb),'accessKey':_0x41702d[_0x3a9caf(0x214)]}),_0xc4ba51=findAppByCode(_0x55637f[_0x3a9caf(0x230)],_0x1089a5);if(_0xc4ba51&&!isRuntimeAccessibleApp(_0xc4ba51))throw runtimeInaccessibleAppError(_0xc4ba51,_0x3a9caf(0x239)+_0x1089a5+'\x22');}export async function runCommand(_0x412e67,_0xfb4e3f,_0x1d76e5=terminalRunnerAdapter){const _0xee78a5=a120_0x9fe9;assertKnownCommandFlags(_0x412e67,_0xfb4e3f[_0xee78a5(0x200)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x412e67)?withVersionPolicy(_0x412e67):_0x412e67,_0xfb4e3f,_0x1d76e5);}function shouldApplyVersionPolicy(_0x2a08d0){const _0x583871=a120_0x9fe9;if([_0x583871(0x21e),_0x583871(0x222),'doctor']['includes'](_0x2a08d0['service']))return![];return!(_0x2a08d0[_0x583871(0x20b)]==='cli-skill'&&_0x2a08d0[_0x583871(0x236)]===_0x583871(0x221));}function withVersionPolicy(_0x5695e6){return{..._0x5695e6,async 'execute'(_0x574ef4){const _0x621005=a120_0x9fe9,_0x3645f5=await checkCliVersion();assertCliVersionSupported(_0x3645f5);const _0x78f22e=shouldResolveUpdateNotice(_0x574ef4)?resolveLatestUpdateNotice(_0x3645f5)[_0x621005(0x218)](()=>null):Promise['resolve'](null),_0x73c67c=await _0x5695e6['execute'](_0x574ef4);return attachUpdateNotice(_0x73c67c,await _0x78f22e);}};}function shouldResolveUpdateNotice(_0x1153ff){const _0x50811f=a120_0x9fe9;return _0x1153ff[_0x50811f(0x225)]===_0x50811f(0x20c)&&!_0x1153ff[_0x50811f(0x22e)];}function attachUpdateNotice(_0x245cd9,_0xf970ce){const _0x184633=a120_0x9fe9;if(!_0xf970ce||!_0x245cd9||typeof _0x245cd9!==_0x184633(0x232))return _0x245cd9;const _0xc2f99b=_0x245cd9,_0x15b4fb=typeof _0xc2f99b[_0x184633(0x228)]==='object'&&_0xc2f99b[_0x184633(0x228)]!==null?_0xc2f99b['_notice']:{};return{..._0xc2f99b,'_notice':{..._0x15b4fb,'update':_0xf970ce}};}
|
|
1
|
+
(function(_0x21a99a,_0x335939){const _0x25ee95=a121_0x4410,_0x4e6fbb=_0x21a99a();while(!![]){try{const _0x303324=parseInt(_0x25ee95(0x134))/0x1*(-parseInt(_0x25ee95(0x11d))/0x2)+parseInt(_0x25ee95(0x121))/0x3+-parseInt(_0x25ee95(0x125))/0x4+-parseInt(_0x25ee95(0x144))/0x5*(parseInt(_0x25ee95(0x11f))/0x6)+parseInt(_0x25ee95(0x13e))/0x7*(parseInt(_0x25ee95(0x12b))/0x8)+-parseInt(_0x25ee95(0x143))/0x9*(-parseInt(_0x25ee95(0x114))/0xa)+parseInt(_0x25ee95(0x135))/0xb;if(_0x303324===_0x335939)break;else _0x4e6fbb['push'](_0x4e6fbb['shift']());}catch(_0x3761b8){_0x4e6fbb['push'](_0x4e6fbb['shift']());}}}(a121_0x2b24,0x8d8e7));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,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';function a121_0x2b24(){const _0x457786=['`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','APPCODE','verbose','riskLevel','ClientAk','mergedCli','Run\x20`','27130EQAOZh','defaultPageSize','env','Set\x20accessKey\x20in\x20','items','update','command','execute','../core/sdk-client.js','639602ezVtxa','runtimeDomain','6873198QCPyyP','authRequired','708633kQotxH','error','write','map','1335984smgMvc','newConfigFileName','has','defaultVerbose','high-risk-write','formatOutput','7399976KQGokF','nativeToolAvailable','appCodeSource','.appcode\x20to\x20','Unknown\x20app:\x20','pretty','appCode','service','accessKey','1ylAaDu','5757499BnOINk','resolve','currentApp','configMissing','../core/api-client.js','requiresAuth','High-risk\x20operation\x20`','ACCESS_KEY','../commands/app/remote-source.js','7LAiyIa','requiresAppCode','name','trim','defaultApp','2304sZlaOn','5VnebWS','nonInteractive','object','local-alias','\x20or\x20pass\x20','install','cancelled','string','rawFlags','app','production','format','includes','validation','doctor','risk','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','_notice','catch','appcode'];a121_0x2b24=function(){return _0x457786;};return a121_0x2b24();}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';function a121_0x4410(_0x208649,_0x40c16f){_0x208649=_0x208649-0x111;const _0x2b243c=a121_0x2b24();let _0x4410d6=_0x2b243c[_0x208649];return _0x4410d6;}export function resolveAuthMode(_0x59d813){const _0x4d5275=a121_0x4410;return void _0x59d813,AUTH_MODE[_0x4d5275(0x111)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1aa7c4,_0x32b458){const _0x586d42=a121_0x4410,_0x2c20f7=typeof _0x32b458[_0x586d42(0x14d)]===_0x586d42(0x14b)&&_0x32b458['app'][_0x586d42(0x141)]();return{'rawFlags':_0x32b458,'appCode':_0x1aa7c4[_0x586d42(0x131)]||productEnv(_0x586d42(0x159))||(_0x2c20f7?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1aa7c4[_0x586d42(0x12d)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x32b458),'defaultFormat':_0x1aa7c4[_0x586d42(0x14f)],'defaultPageSize':_0x1aa7c4['pageSize'],'defaultVerbose':_0x1aa7c4[_0x586d42(0x15a)],'riskLevel':_0x1aa7c4[_0x586d42(0x15b)],'nativeToolAvailable':_0x1aa7c4[_0x586d42(0x12c)],'accessKey':_0x1aa7c4[_0x586d42(0x133)],'env':_0x1aa7c4[_0x586d42(0x116)],'mergedCli':{'defaultApp':_0x1aa7c4[_0x586d42(0x142)],'currentApp':_0x1aa7c4[_0x586d42(0x137)],'appCode':_0x1aa7c4['appCode']}};}export function createLovrabetRunnerAdapter(_0x35895d={}){const _0x378957=a121_0x4410,_0x470ee9={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2bb289=>PIPELINE_FLAG_NAMES[_0x378957(0x127)](_0x2bb289[_0x378957(0x140)]))[_0x378957(0x124)](({name:_0x3d2362,type:_0x43136c,description:_0x5e3342})=>({'name':_0x3d2362,'type':_0x43136c,'description':_0x5e3342})),'formatOutput':_0x35895d[_0x378957(0x12a)]??formatOutput,'getCommandLabel'(_0x5383d8){const _0x27156d=_0x378957;return CLI_BIN_NAME+'\x20'+_0x5383d8['service']+'\x20'+_0x5383d8[_0x27156d(0x11a)];},'riskPolicy':{'onViolation'(_0x39f6d7,{def:_0x54e1c6,env:_0x365b3e}){const _0x5c44ca=_0x378957;if(shouldRouteWriteToNativeTool(_0x54e1c6,_0x365b3e))return;console[_0x5c44ca(0x122)](_0x39f6d7);},'createError'(_0x4c8cd9,{def:_0x2fe3ed,env:_0x20e146}){const _0x510143=_0x378957;if(shouldRouteWriteToNativeTool(_0x2fe3ed,_0x20e146))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x2fe3ed['service']+'\x20'+_0x2fe3ed['command']);return CliErrors[_0x510143(0x14a)](_0x4c8cd9);}},async 'prepare'(_0x555134,_0x3ab963){const _0x384e34=_0x378957,_0x181635=resolveAuthMode(_0x3ab963);if(_0x555134[_0x384e34(0x13a)]!==![]){if(!_0x3ab963[_0x384e34(0x133)])throw CliErrors[_0x384e34(0x120)](_0x384e34(0x117)+PRODUCT_CONFIG[_0x384e34(0x126)]+_0x384e34(0x148)+productEnvName(_0x384e34(0x13c))+'.');const {setActiveAK:_0x1b73a2}=await import(_0x384e34(0x139));_0x1b73a2(_0x3ab963['accessKey']);}let _0x384804='';if(_0x555134[_0x384e34(0x13f)]!==![]){_0x384804=_0x3ab963[_0x384e34(0x131)]??'',_0x384804=await resolveExplicitAppName(_0x555134,_0x3ab963,_0x384804);if(!_0x384804){await assertSelectedAppNameIsRuntimeAccessible(_0x555134,_0x3ab963);throw CliErrors[_0x384e34(0x138)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x384e34(0x126)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x555134,_0x3ab963,_0x384804);}if(_0x384804){const {initSdkClient:_0x270e0f}=await import('../core/sdk-client.js');_0x270e0f({'appCode':_0x384804,'env':_0x3ab963[_0x384e34(0x116)]??_0x384e34(0x14e),'runtimeDomain':_0x3ab963[_0x384e34(0x11e)],'accessKey':_0x3ab963[_0x384e34(0x133)],'authMode':_0x181635}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x3ab963[_0x384e34(0x128)]},'numbers':{'pagesize':_0x3ab963[_0x384e34(0x115)]}},'extras':{'appCode':_0x384804,'cookie':'','apiDomain':_0x3ab963['apiDomain'],'apiDir':'','accessKey':_0x3ab963[_0x384e34(0x133)],'envName':_0x3ab963[_0x384e34(0x116)],'mergedCli':_0x3ab963[_0x384e34(0x112)]}};},'confirmHighRisk':_0x35895d['confirmHighRisk']??(async({def:_0x894a91,env:_0x1b45cc,flags:_0x2cd88b,commandLabel:_0x2fd64c})=>{const _0x2d1b7a=_0x378957;if(_0x1b45cc['isNonInteractive']){const _0x1bf059=reconstructCommandArgv(_0x894a91,_0x2cd88b);throw CliErrors[_0x2d1b7a(0x151)](_0x2d1b7a(0x13b)+_0x2fd64c+_0x2d1b7a(0x158)+('\x20\x20To\x20proceed:\x20'+_0x1bf059));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x894a91,_0x2fd64c,_0x2cd88b),'createCancelledError':_0x30aa45=>CliErrors[_0x2d1b7a(0x14a)](_0x30aa45)});}),'mapDryRunError'(_0xc83690){return mapUserFacingExecuteError(_0xc83690);},'mapExecuteError'(_0x4d0877){return mapUserFacingExecuteError(_0x4d0877);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x470ee9;}function shouldRouteWriteToNativeTool(_0x5bee25,_0x45b691){const _0x44ea45=a121_0x4410;return _0x45b691['nativeToolAvailable']===!![]&&(_0x5bee25[_0x44ea45(0x153)]===_0x44ea45(0x123)||_0x5bee25[_0x44ea45(0x153)]===_0x44ea45(0x129));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x986b6b=a121_0x4410;try{if(sdkClientInitialized){const {clearSdkClient:_0x27e4c2}=await import(_0x986b6b(0x11c));_0x27e4c2();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1294a3}=await import('../core/api-client.js');_0x1294a3();}}async function resolveExplicitAppName(_0x21e3fa,_0x2d0bc0,_0xa410c){const _0x3fb0b0=a121_0x4410;if(_0x21e3fa[_0x3fb0b0(0x13f)]===![])return _0xa410c;const _0xce8212=typeof _0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x14d)]===_0x3fb0b0(0x14b)?_0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x14d)][_0x3fb0b0(0x141)]():'';if(!_0xce8212)return _0xa410c;const _0x1fd64e=typeof _0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x157)]===_0x3fb0b0(0x14b)&&_0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x157)][_0x3fb0b0(0x141)]()||productEnv(_0x3fb0b0(0x159));if(_0x1fd64e||_0x2d0bc0[_0x3fb0b0(0x12d)]===_0x3fb0b0(0x147))return _0xa410c;const {getRemoteAppList:_0x13f5b9}=await import(_0x3fb0b0(0x13d)),_0x11f48f=await _0x13f5b9({'env':_0x2d0bc0[_0x3fb0b0(0x116)]??_0x3fb0b0(0x14e),'accessKey':_0x2d0bc0[_0x3fb0b0(0x133)]}),_0x50e76e=findAppByName(_0x11f48f[_0x3fb0b0(0x118)],_0xce8212);if(_0x50e76e&&!isRuntimeAccessibleApp(_0x50e76e))throw runtimeInaccessibleAppError(_0x50e76e,'\x22'+_0xce8212+'\x22');const _0x3c8415=_0x50e76e?.['appCode']?.[_0x3fb0b0(0x141)]();if(_0x3c8415)return _0x3c8415;throw CliErrors[_0x3fb0b0(0x151)](_0x3fb0b0(0x12f)+_0xce8212,_0x3fb0b0(0x113)+CLI_BIN_NAME+_0x3fb0b0(0x154)+_0xce8212+_0x3fb0b0(0x12e)+PRODUCT_CONFIG[_0x3fb0b0(0x126)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x18aaa7,_0x34ccc1){const _0x5e3def=a121_0x4410;if(_0x18aaa7[_0x5e3def(0x13f)]===![]||!_0x34ccc1[_0x5e3def(0x133)])return;const _0x51aa3b=(typeof _0x34ccc1[_0x5e3def(0x14c)][_0x5e3def(0x14d)]==='string'&&_0x34ccc1['rawFlags']['app'][_0x5e3def(0x141)]()?_0x34ccc1[_0x5e3def(0x14c)][_0x5e3def(0x14d)]:_0x34ccc1[_0x5e3def(0x112)]?.[_0x5e3def(0x137)]??_0x34ccc1[_0x5e3def(0x112)]?.[_0x5e3def(0x142)])?.[_0x5e3def(0x141)]();if(!_0x51aa3b)return;const {getRemoteAppList:_0x522f34}=await import('../commands/app/remote-source.js'),_0x543e7f=await _0x522f34({'env':_0x34ccc1[_0x5e3def(0x116)]??_0x5e3def(0x14e),'accessKey':_0x34ccc1['accessKey']}),_0x54cda6=findAppByName(_0x543e7f[_0x5e3def(0x118)],_0x51aa3b);if(_0x54cda6&&!isRuntimeAccessibleApp(_0x54cda6))throw runtimeInaccessibleAppError(_0x54cda6,'\x22'+_0x51aa3b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1c7310,_0x26a77c,_0x186f40){const _0x58bebd=a121_0x4410;if(_0x1c7310['requiresAppCode']===![]||!_0x26a77c[_0x58bebd(0x133)])return;const {getRemoteAppList:_0x27d6a3}=await import(_0x58bebd(0x13d)),_0x27a4fc=await _0x27d6a3({'env':_0x26a77c[_0x58bebd(0x116)]??'production','accessKey':_0x26a77c[_0x58bebd(0x133)]}),_0x8d8dec=findAppByCode(_0x27a4fc[_0x58bebd(0x118)],_0x186f40);if(_0x8d8dec&&!isRuntimeAccessibleApp(_0x8d8dec))throw runtimeInaccessibleAppError(_0x8d8dec,'appcode\x20\x22'+_0x186f40+'\x22');}export async function runCommand(_0x468215,_0x49e739,_0x1f53c6=terminalRunnerAdapter){const _0x18c44d=a121_0x4410;assertKnownCommandFlags(_0x468215,_0x49e739[_0x18c44d(0x14c)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x468215)?withVersionPolicy(_0x468215):_0x468215,_0x49e739,_0x1f53c6);}function shouldApplyVersionPolicy(_0x12344b){const _0x3a2960=a121_0x4410;if([_0x3a2960(0x119),'schema',_0x3a2960(0x152)][_0x3a2960(0x150)](_0x12344b['service']))return![];return!(_0x12344b[_0x3a2960(0x132)]==='cli-skill'&&_0x12344b[_0x3a2960(0x11a)]===_0x3a2960(0x149));}function withVersionPolicy(_0x259358){return{..._0x259358,async 'execute'(_0x3471b6){const _0x483c3c=a121_0x4410,_0x3405c8=await checkCliVersion();assertCliVersionSupported(_0x3405c8);const _0x5caa29=shouldResolveUpdateNotice(_0x3471b6)?resolveLatestUpdateNotice(_0x3405c8)[_0x483c3c(0x156)](()=>null):Promise[_0x483c3c(0x136)](null),_0x5eb24b=await _0x259358[_0x483c3c(0x11b)](_0x3471b6);return attachUpdateNotice(_0x5eb24b,await _0x5caa29);}};}function shouldResolveUpdateNotice(_0x3ec800){const _0x5944df=a121_0x4410;return _0x3ec800[_0x5944df(0x14f)]===_0x5944df(0x130)&&!_0x3ec800[_0x5944df(0x145)];}function attachUpdateNotice(_0x12bfff,_0x1cd55a){const _0x371669=a121_0x4410;if(!_0x1cd55a||!_0x12bfff||typeof _0x12bfff!=='object')return _0x12bfff;const _0x43dd87=_0x12bfff,_0x3e8142=typeof _0x43dd87[_0x371669(0x155)]===_0x371669(0x146)&&_0x43dd87[_0x371669(0x155)]!==null?_0x43dd87[_0x371669(0x155)]:{};return{..._0x43dd87,'_notice':{..._0x3e8142,'update':_0x1cd55a}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5585ab,_0x5b379b){const _0x3b7e1a=a122_0x40eb,_0x284a48=_0x5585ab();while(!![]){try{const _0x2760e4=-parseInt(_0x3b7e1a(0x9e))/0x1+parseInt(_0x3b7e1a(0x9c))/0x2*(parseInt(_0x3b7e1a(0xa1))/0x3)+-parseInt(_0x3b7e1a(0x9b))/0x4*(-parseInt(_0x3b7e1a(0xa3))/0x5)+parseInt(_0x3b7e1a(0x98))/0x6*(-parseInt(_0x3b7e1a(0xa0))/0x7)+-parseInt(_0x3b7e1a(0xa2))/0x8*(-parseInt(_0x3b7e1a(0xa4))/0x9)+parseInt(_0x3b7e1a(0xa7))/0xa+-parseInt(_0x3b7e1a(0x97))/0xb;if(_0x2760e4===_0x5b379b)break;else _0x284a48['push'](_0x284a48['shift']());}catch(_0x201542){_0x284a48['push'](_0x284a48['shift']());}}}(a122_0x43d5,0x62c77));function a122_0x40eb(_0x220937,_0x2ac74f){_0x220937=_0x220937-0x97;const _0x43d52e=a122_0x43d5();let _0x40ebd2=_0x43d52e[_0x220937];return _0x40ebd2;}import{buildSchemaPayload as a122_0x3418f7}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a122_0x43d5(){const _0x16d1ec=['filter','8549343GxWNoG','6lsaWdv','service','has','8UOVPel','12iqnZEK','none','205087HBzfGf','commands','478156YtGmbk','61647QgLMXl','8csDqdj','957655pdUgBO','1607274TUjWTf','../commands/registry.js','services','7702650Zxtgan','map'];a122_0x43d5=function(){return _0x16d1ec;};return a122_0x43d5();}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 _0x131230=a122_0x40eb,{serviceRegistry:_0x149364,findDefinition:_0x425723}=await import(_0x131230(0xa5)),_0x224c25=new Set(_0x149364[_0x131230(0xa8)](_0x1f3f15=>_0x1f3f15['service'])),_0xc11434=listDynamicServiceEntries()[_0x131230(0xa9)](_0xfe5028=>!_0x224c25[_0x131230(0x9a)](_0xfe5028[_0x131230(0x99)])),_0x4754f9=a122_0x3418f7({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x149364,_0xc11434),'buildAllFlags':buildAllFlags,'findDefinition':(_0x1e2184,_0x5ebe30)=>_0x425723(_0x1e2184,_0x5ebe30)??findDynamicServiceDefinition(_0x1e2184,_0x5ebe30)});return normalizeSchemaPayload(_0x4754f9);}function normalizeSchemaPayload(_0x5df6a3){const _0x2ade1c=a122_0x40eb;return{..._0x5df6a3,'schemaVersion':0x2,'services':_0x5df6a3[_0x2ade1c(0xa6)][_0x2ade1c(0xa8)](_0x28ab68=>({..._0x28ab68,'commands':_0x28ab68[_0x2ade1c(0x9f)][_0x2ade1c(0xa8)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x348db7){const _0x20a129=a122_0x40eb,_0x29a1d5=_0x348db7;return{..._0x348db7,'auth':_0x29a1d5['auth']??(_0x348db7['requiresAuth']?'required':_0x20a129(0x9d))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x1794(){const _0xb2eb23=['7838667mTrFXr','slice','6150NZddpb','19nURviq','22418eWbBnP','10574240JfrQSy','2219490IrfuDs','16laFgia','1180bFaRuj','4177033qNVeCN','1444140JPipTn','length','findIndex'];a123_0x1794=function(){return _0xb2eb23;};return a123_0x1794();}(function(_0x2118e0,_0x11723f){const _0x297625=a123_0x2069,_0x1cfc4b=_0x2118e0();while(!![]){try{const _0x19f581=parseInt(_0x297625(0x1c5))/0x1*(parseInt(_0x297625(0x1c6))/0x2)+-parseInt(_0x297625(0x1c8))/0x3+parseInt(_0x297625(0x1ca))/0x4*(parseInt(_0x297625(0x1c4))/0x5)+-parseInt(_0x297625(0x1cc))/0x6+parseInt(_0x297625(0x1cb))/0x7*(parseInt(_0x297625(0x1c9))/0x8)+parseInt(_0x297625(0x1cf))/0x9+-parseInt(_0x297625(0x1c7))/0xa;if(_0x19f581===_0x11723f)break;else _0x1cfc4b['push'](_0x1cfc4b['shift']());}catch(_0x2a50ba){_0x1cfc4b['push'](_0x1cfc4b['shift']());}}}(a123_0x1794,0x930a6));function a123_0x2069(_0x546385,_0x1f5812){_0x546385=_0x546385-0x1c4;const _0x17949c=a123_0x1794();let _0x206906=_0x17949c[_0x546385];return _0x206906;}export function insertDynamicServicesAfterServiceTree(_0x5b540f,_0x5b3137){const _0x1b541f=a123_0x2069;if(_0x5b3137[_0x1b541f(0x1cd)]===0x0)return[..._0x5b540f];const _0x563a09=_0x5b540f[_0x1b541f(0x1ce)](_0x2f7732=>_0x2f7732['service']==='service');if(_0x563a09<0x0)return[..._0x5b540f,..._0x5b3137];return[..._0x5b540f[_0x1b541f(0x1d0)](0x0,_0x563a09+0x1),..._0x5b3137,..._0x5b540f[_0x1b541f(0x1d0)](_0x563a09+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a124_0x55b4(_0x5dc3e8,_0x1d5840){_0x5dc3e8=_0x5dc3e8-0x104;var _0x5bb957=a124_0x5bb9();var _0x55b41f=_0x5bb957[_0x5dc3e8];return _0x55b41f;}(function(_0x5e62b4,_0x4b032a){var _0x2a1b74=a124_0x55b4,_0x27c52c=_0x5e62b4();while(!![]){try{var _0xb0a74f=-parseInt(_0x2a1b74(0x10c))/0x1+parseInt(_0x2a1b74(0x10a))/0x2*(-parseInt(_0x2a1b74(0x10b))/0x3)+parseInt(_0x2a1b74(0x10d))/0x4*(-parseInt(_0x2a1b74(0x104))/0x5)+-parseInt(_0x2a1b74(0x107))/0x6+-parseInt(_0x2a1b74(0x108))/0x7*(parseInt(_0x2a1b74(0x105))/0x8)+-parseInt(_0x2a1b74(0x106))/0x9+parseInt(_0x2a1b74(0x109))/0xa;if(_0xb0a74f===_0x4b032a)break;else _0x27c52c['push'](_0x27c52c['shift']());}catch(_0x7c7e3a){_0x27c52c['push'](_0x27c52c['shift']());}}}(a124_0x5bb9,0xdf6c8));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a124_0x5bb9(){var _0x361673=['4fCEbNW','4833925EvTjIp','7264OuOKQL','14378346etCxRO','763890SJpwdD','7357SEOasL','65146070ulYMST','808DlAkix','6210kiIUnu','1117181Ssshzr'];a124_0x5bb9=function(){return _0x361673;};return a124_0x5bb9();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.3-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.3-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "e62edc4";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-10T12:10:53.173Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x4080e7=a125_0x3520;(function(_0x20682e,_0x44de4b){const _0x11cb76=a125_0x3520,_0x9fc8eb=_0x20682e();while(!![]){try{const _0x36df3f=-parseInt(_0x11cb76(0x124))/0x1+parseInt(_0x11cb76(0x11e))/0x2+parseInt(_0x11cb76(0x122))/0x3+parseInt(_0x11cb76(0x126))/0x4+-parseInt(_0x11cb76(0x127))/0x5*(-parseInt(_0x11cb76(0x123))/0x6)+parseInt(_0x11cb76(0x11f))/0x7+-parseInt(_0x11cb76(0x120))/0x8;if(_0x36df3f===_0x44de4b)break;else _0x9fc8eb['push'](_0x9fc8eb['shift']());}catch(_0x554423){_0x9fc8eb['push'](_0x9fc8eb['shift']());}}}(a125_0x233c,0x9fe68));function a125_0x3520(_0x2942db,_0x19510f){_0x2942db=_0x2942db-0x11e;const _0x233c8a=a125_0x233c();let _0x352079=_0x233c8a[_0x2942db];return _0x352079;}function a125_0x233c(){const _0x565c32=['1278099OXVhqu','e62edc4','2402624GEqoOz','5AqUnDa','1489824dXlhBp','5865216KzsYmt','18669744vzZFFT','2026-09-10T12:10:53.173Z','3447660QsDOvO','5604558wYkenm'];a125_0x233c=function(){return _0x565c32;};return a125_0x233c();}export const VERSION='2.3.3-beta.1';export const GIT_TAG='v2.3.3-beta.1';export const GIT_COMMIT=a125_0x4080e7(0x125);export const BUILD_TIME=a125_0x4080e7(0x121);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x418e22=a126_0x47cb;function a126_0x47cb(_0x5c77c8,_0x209c64){_0x5c77c8=_0x5c77c8-0x106;const _0x228928=a126_0x2289();let _0x47cb2f=_0x228928[_0x5c77c8];return _0x47cb2f;}(function(_0x58dc44,_0x5a8640){const _0x15897a=a126_0x47cb,_0xa06882=_0x58dc44();while(!![]){try{const _0x1f6c1a=parseInt(_0x15897a(0x10b))/0x1+parseInt(_0x15897a(0x116))/0x2+-parseInt(_0x15897a(0x11f))/0x3+parseInt(_0x15897a(0x10d))/0x4*(parseInt(_0x15897a(0x11d))/0x5)+parseInt(_0x15897a(0x109))/0x6*(-parseInt(_0x15897a(0x11b))/0x7)+-parseInt(_0x15897a(0x11a))/0x8+-parseInt(_0x15897a(0x111))/0x9*(parseInt(_0x15897a(0x10e))/0xa);if(_0x1f6c1a===_0x5a8640)break;else _0xa06882['push'](_0xa06882['shift']());}catch(_0xb9be5){_0xa06882['push'](_0xa06882['shift']());}}}(a126_0x2289,0x4a98f));export const ROUTING_CATALOG_DIGEST=a126_0x418e22(0x10c);export const DEFAULT_REGION='cn';function a126_0x2289(){const _0x328413=['1237200JeRYbc','china','https://api.lovrabet.ai','indonesia','https://daily-api.lovrabet.com','12SnYzfh','https://skills.lovrabet.com','318039LNjamA','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','1216092TwhUJP','8860YDckLh','https://daily-runtime.lovrabet.com','https://skills-daily.lovrabet.com','666SBeKVJ','https://api.lovrabet.com','https://skills.lovrabet.ai','https://user.lovrabet.id','https://runtime.lovrabet.com','920812BMqZet','https://runtime.lovrabet.id','Indonesia','https://user-daily.lovrabet.com','2175472UTtZCs','1158647GtEIVA','https://user.lovrabet.com','10ysKKBl','https://api.lovrabet.id'];a126_0x2289=function(){return _0x328413;};return a126_0x2289();}export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a126_0x418e22(0x120)],'serviceDomains':{'production':{'user':a126_0x418e22(0x11c),'api':a126_0x418e22(0x112),'runtime':a126_0x418e22(0x115),'skill':a126_0x418e22(0x10a)},'daily':{'user':a126_0x418e22(0x119),'api':a126_0x418e22(0x108),'runtime':a126_0x418e22(0x10f),'skill':a126_0x418e22(0x110)}}},'id':{'enabled':!![],'label':a126_0x418e22(0x118),'aliases':[a126_0x418e22(0x107)],'serviceDomains':{'production':{'user':a126_0x418e22(0x114),'api':a126_0x418e22(0x11e),'runtime':a126_0x418e22(0x117),'skill':'https://skills.lovrabet.id'}}},'global':{'enabled':![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a126_0x418e22(0x106),'runtime':'https://runtime.lovrabet.ai','skill':a126_0x418e22(0x113)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a127_0x8f7ab9=a127_0x163d;(function(_0x44e1ea,_0x4792c7){const _0x598535=a127_0x163d,_0x37c366=_0x44e1ea();while(!![]){try{const _0x3853ec=parseInt(_0x598535(0x18f))/0x1*(-parseInt(_0x598535(0x19a))/0x2)+-parseInt(_0x598535(0x19f))/0x3*(-parseInt(_0x598535(0x19b))/0x4)+parseInt(_0x598535(0x193))/0x5*(-parseInt(_0x598535(0x19e))/0x6)+parseInt(_0x598535(0x191))/0x7+-parseInt(_0x598535(0x198))/0x8*(-parseInt(_0x598535(0x197))/0x9)+parseInt(_0x598535(0x19c))/0xa+parseInt(_0x598535(0x190))/0xb;if(_0x3853ec===_0x4792c7)break;else _0x37c366['push'](_0x37c366['shift']());}catch(_0x23fbcc){_0x37c366['push'](_0x37c366['shift']());}}}(a127_0x2222,0x89e52));function a127_0x163d(_0x1e008b,_0x2748c4){_0x1e008b=_0x1e008b-0x18e;const _0x222200=a127_0x2222();let _0x163d1b=_0x222200[_0x1e008b];return _0x163d1b;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a127_0x8f7ab9(0x19d);export const ENTERPRISE_ROUTING_PROTOCOL=a127_0x8f7ab9(0x18e);export const ENTERPRISE_ROUTING_KIND=a127_0x8f7ab9(0x196);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x8f7ab9(0x192),a127_0x8f7ab9(0x199),'runtimeDomain',a127_0x8f7ab9(0x194)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x8f7ab9(0x192),'apiDomain',a127_0x8f7ab9(0x195),a127_0x8f7ab9(0x194)];function a127_0x2222(){const _0x3239bb=['10965860zSjeon','51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c','24NuPZCv','32022SgDMcE','lovrabet-routing/v1','1087789VAPfos','7856475fPpfFQ','146034tCLcyh','userDomain','324470XwCNox','skillDomain','runtimeDomain','enterprise','144XRBOXz','2896ucdWNh','apiDomain','2Eqmdlp','28ptOVJT'];a127_0x2222=function(){return _0x3239bb;};return a127_0x2222();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d7409,_0x2da0cf){const _0x427111=a128_0x360a,_0x2385ac=_0x4d7409();while(!![]){try{const _0x259241=parseInt(_0x427111(0x1cc))/0x1*(parseInt(_0x427111(0x1cd))/0x2)+-parseInt(_0x427111(0x1c9))/0x3*(-parseInt(_0x427111(0x1cf))/0x4)+-parseInt(_0x427111(0x1d0))/0x5+-parseInt(_0x427111(0x1c5))/0x6*(parseInt(_0x427111(0x1cb))/0x7)+parseInt(_0x427111(0x1d1))/0x8+parseInt(_0x427111(0x1c2))/0x9*(parseInt(_0x427111(0x1c3))/0xa)+parseInt(_0x427111(0x1c6))/0xb*(-parseInt(_0x427111(0x1ca))/0xc);if(_0x259241===_0x2da0cf)break;else _0x2385ac['push'](_0x2385ac['shift']());}catch(_0xd59619){_0x2385ac['push'](_0x2385ac['shift']());}}}(a128_0x3f32,0x71a3f));import{jsx as a128_0x8e3029,jsxs as a128_0x2714ca}from'react/jsx-runtime';import{useEffect}from'react';function a128_0x360a(_0x300b69,_0x1b1ca6){_0x300b69=_0x300b69-0x1c2;const _0x3f32ec=a128_0x3f32();let _0x360a1a=_0x3f32ec[_0x300b69];return _0x360a1a;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x5caa91=a128_0x360a,{exit:_0x5476cd}=useApp();return useEffect(()=>{_0x5476cd();},[_0x5476cd]),a128_0x2714ca(Box,{'flexDirection':_0x5caa91(0x1ce),'marginTop':0x1,'marginBottom':0x1,'children':[a128_0x8e3029(Box,{'children':a128_0x8e3029(Text,{'bold':!![],'color':_0x5caa91(0x1c7),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a128_0x2714ca(Box,{'marginTop':0x1,'children':[a128_0x8e3029(Text,{'dimColor':!![],'children':_0x5caa91(0x1d2)}),a128_0x8e3029(Text,{'bold':!![],'color':_0x5caa91(0x1c7),'children':CLI_BIN_NAME+_0x5caa91(0x1c4)}),a128_0x8e3029(Text,{'dimColor':!![],'children':_0x5caa91(0x1c8)})]})]});}function a128_0x3f32(){const _0xd616a=['1781195fOlUrm','1923400qHVmEP','\x20\x20Use\x20','324nrhsHb','219540jAvRjZ','\x20--help','621546DRxUzh','13455145JzyEqV','green','\x20to\x20view\x20available\x20commands.','1208121WKmwie','12YeTAHE','35HOCQIR','1YtJCWM','1453354UGnDAK','column','8UxbmER'];a128_0x3f32=function(){return _0xd616a;};return a128_0x3f32();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16814c,_0x3a256f){const _0x5ee55f=a129_0x3857,_0x59f4c2=_0x16814c();while(!![]){try{const _0x3da7ba=parseInt(_0x5ee55f(0x183))/0x1*(-parseInt(_0x5ee55f(0x17f))/0x2)+-parseInt(_0x5ee55f(0x186))/0x3+parseInt(_0x5ee55f(0x17b))/0x4+-parseInt(_0x5ee55f(0x17e))/0x5*(parseInt(_0x5ee55f(0x18c))/0x6)+parseInt(_0x5ee55f(0x188))/0x7*(-parseInt(_0x5ee55f(0x178))/0x8)+-parseInt(_0x5ee55f(0x17d))/0x9+parseInt(_0x5ee55f(0x17a))/0xa;if(_0x3da7ba===_0x3a256f)break;else _0x59f4c2['push'](_0x59f4c2['shift']());}catch(_0x66d52){_0x59f4c2['push'](_0x59f4c2['shift']());}}}(a129_0x3f59,0x6eb31));function a129_0x3857(_0xea6c34,_0x4a5ac1){_0xea6c34=_0xea6c34-0x175;const _0x3f5914=a129_0x3f59();let _0x385725=_0x3f5914[_0xea6c34];return _0x385725;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a129_0x3f59(){const _0x184005=['already\x20current','FAILED','18jNEZzA','code','skillVersion','[BUILTIN_SKILL_INSTALL_','8152LkPdpl','SOURCE_INVALID','32450860VkgNnJ','356260RwLGFl','Lovrabet\x20Built-in\x20Skill\x20','2098971dgSrOD','1464515CBMiUC','5030hypZJJ','repairCommand','\x20at\x20','log','235hRPKIE','\x20via\x20skills@latest','warn','1879482GQHMZo','error','3787WzmgJK','installedPath'];a129_0x3f59=function(){return _0x184005;};return a129_0x3f59();}export async function runPostinstall(_0x2ad75a={}){const _0x24da4=a129_0x3857,_0x46e88f=installBuiltinSkill(_0x2ad75a);if(_0x46e88f['ok']){const _0x7cfe60=_0x46e88f['changed']?'installed':_0x24da4(0x18a),_0x8dbcd6=_0x46e88f[_0x24da4(0x189)]?_0x24da4(0x181)+_0x46e88f[_0x24da4(0x189)]:_0x24da4(0x184);return console[_0x24da4(0x182)](_0x24da4(0x17c)+_0x46e88f[_0x24da4(0x176)]+'\x20'+_0x7cfe60+_0x8dbcd6),_0x46e88f;}const _0x47aafb=_0x24da4(0x177)+(_0x46e88f[_0x24da4(0x175)]??_0x24da4(0x18b))+']\x20'+(_0x46e88f[_0x24da4(0x187)]??'Installation\x20failed')+'.\x20'+('Repair\x20with:\x20'+_0x46e88f[_0x24da4(0x180)]);if(_0x46e88f['code']===_0x24da4(0x179))throw new Error(_0x47aafb);return console[_0x24da4(0x185)](_0x47aafb),_0x46e88f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x462ad7,_0x3443a3){const _0x108ad4=a130_0x27f8,_0x191d96=_0x462ad7();while(!![]){try{const _0x1fe2d0=parseInt(_0x108ad4(0x1cb))/0x1+-parseInt(_0x108ad4(0x1c3))/0x2+parseInt(_0x108ad4(0x1c1))/0x3*(parseInt(_0x108ad4(0x1c7))/0x4)+-parseInt(_0x108ad4(0x1c6))/0x5+parseInt(_0x108ad4(0x1ce))/0x6*(parseInt(_0x108ad4(0x1cc))/0x7)+parseInt(_0x108ad4(0x1ca))/0x8+parseInt(_0x108ad4(0x1c0))/0x9;if(_0x1fe2d0===_0x3443a3)break;else _0x191d96['push'](_0x191d96['shift']());}catch(_0x12ddd6){_0x191d96['push'](_0x191d96['shift']());}}}(a130_0x2d60,0x9a191));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x5466bf,_0x4ac82a,_0x1bb13f){const _0x367523=a130_0x27f8,_0xe71137=normalizeText(_0x5466bf['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x25e830=normalizeText(_0x5466bf[_0x367523(0x1c5)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x4ac82a,'risk':requireWriteRisk(_0x5466bf),'description':_0xe71137||_0x25e830||_0x367523(0x1c8),..._0x1bb13f?{'signal':_0x1bb13f}:{}};}function a130_0x27f8(_0x370e46,_0x5b1ba6){_0x370e46=_0x370e46-0x1c0;const _0x2d60fb=a130_0x2d60();let _0x27f83d=_0x2d60fb[_0x370e46];return _0x27f83d;}function requireWriteRisk(_0x12c20f){const _0xfe967c=a130_0x27f8;if(_0x12c20f[_0xfe967c(0x1d0)]===_0xfe967c(0x1cf)||_0x12c20f[_0xfe967c(0x1d0)]===_0xfe967c(0x1c2))return _0x12c20f[_0xfe967c(0x1d0)];throw new Error(_0xfe967c(0x1d1));}function a130_0x2d60(){const _0x3082a4=['high-risk-write','1963080fzZqDo','slice','description','2432775fczgAQ','4xuMrfb','Run\x20this\x20write\x20operation','replace','4214944dlFLIm','72746cdKATn','581287qMsqIf','string','54qOONjw','write','risk','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','2103372YNupNc','1555767mPRUPP'];a130_0x2d60=function(){return _0x3082a4;};return a130_0x2d60();}function normalizeText(_0x2cc620,_0x1c3667){const _0x136dce=a130_0x27f8;if(typeof _0x2cc620!==_0x136dce(0x1cd))return'';return _0x2cc620[_0x136dce(0x1c9)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x136dce(0x1c9)](/\s+/g,'\x20')['trim']()[_0x136dce(0x1c4)](0x0,_0x1c3667);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43cb8f,_0x40135f){const _0x1bb4b1=a131_0x5ce2,_0x40d92e=_0x43cb8f();while(!![]){try{const _0x24a5fc=parseInt(_0x1bb4b1(0x1dc))/0x1*(parseInt(_0x1bb4b1(0x1d2))/0x2)+-parseInt(_0x1bb4b1(0x1cf))/0x3*(parseInt(_0x1bb4b1(0x1da))/0x4)+-parseInt(_0x1bb4b1(0x1e1))/0x5+-parseInt(_0x1bb4b1(0x1df))/0x6+parseInt(_0x1bb4b1(0x1e0))/0x7*(-parseInt(_0x1bb4b1(0x1e3))/0x8)+-parseInt(_0x1bb4b1(0x1de))/0x9*(-parseInt(_0x1bb4b1(0x1e2))/0xa)+parseInt(_0x1bb4b1(0x1d5))/0xb*(parseInt(_0x1bb4b1(0x1d6))/0xc);if(_0x24a5fc===_0x40135f)break;else _0x40d92e['push'](_0x40d92e['shift']());}catch(_0x256c11){_0x40d92e['push'](_0x40d92e['shift']());}}}(a131_0x5669,0x94ab1));export function canonicalLovrabetOperation(_0x43764d){const _0x45e6cc=a131_0x5ce2;return[_0x43764d[_0x45e6cc(0x1d4)],..._0x43764d[_0x45e6cc(0x1d3)][_0x45e6cc(0x1dd)]()[_0x45e6cc(0x1d8)](/\s+/)][_0x45e6cc(0x1d9)](Boolean)['join']('.');}function a131_0x5ce2(_0x453149,_0xac3cc5){_0x453149=_0x453149-0x1cf;const _0x5669a4=a131_0x5669();let _0x5ce2a5=_0x5669a4[_0x453149];return _0x5ce2a5;}function a131_0x5669(){const _0x10b3e1=['risk','686856uMAkOU','command','service','33429XCRIQI','8268rtHvIA','high-risk-write','split','filter','4iaIpOv','lovrabet.write.completed','1UuZhRC','trim','36eWYKPQ','452826iHMXgO','3101pSCQdz','4372560ldoFHB','22190Pmsyxa','384qhKAZu','2597949DCfyrS','writeEventSubject'];a131_0x5669=function(){return _0x10b3e1;};return a131_0x5669();}export function createLovrabetWriteMetadata(_0x2454c6,_0x5cec79,_0x1a8d96,_0x58c60a){const _0x53a23f=a131_0x5ce2;if(_0x58c60a||_0x1a8d96['ok']!==!![]||_0x2454c6[_0x53a23f(0x1d1)]!=='write'&&_0x2454c6[_0x53a23f(0x1d1)]!==_0x53a23f(0x1d7))return undefined;const _0x433e1c=_0x2454c6[_0x53a23f(0x1d0)]?.(_0x1a8d96),_0x3b61a0={'type':_0x53a23f(0x1db),'operation':_0x5cec79,'risk':_0x2454c6[_0x53a23f(0x1d1)],..._0x433e1c?{'subject':_0x433e1c}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x3b61a0}};}
|