@lovrabet/lovrabet-cli 2.3.5-beta.2 → 2.3.5
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.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.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.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/access-error.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/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.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.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x6201(){const _0x3d995c=['body','19271vAFWvq','1319227RSOQOT','12905784EhaWXl','description','4ywtcoX','1188frDsMm','10467032NBBXNc','874145MCSnLv','2359710qZzpjf','2KlzEUQ','586926LNuYvL'];a112_0x6201=function(){return _0x3d995c;};return a112_0x6201();}(function(_0xc5a79a,_0x33ff7c){const _0x3e1318=a112_0x295d,_0x1b6e05=_0xc5a79a();while(!![]){try{const _0xf11740=parseInt(_0x3e1318(0x8d))/0x1*(parseInt(_0x3e1318(0x89))/0x2)+parseInt(_0x3e1318(0x8a))/0x3+-parseInt(_0x3e1318(0x84))/0x4*(parseInt(_0x3e1318(0x87))/0x5)+parseInt(_0x3e1318(0x85))/0x6*(-parseInt(_0x3e1318(0x8c))/0x7)+parseInt(_0x3e1318(0x86))/0x8+-parseInt(_0x3e1318(0x82))/0x9+parseInt(_0x3e1318(0x88))/0xa;if(_0xf11740===_0x33ff7c)break;else _0x1b6e05['push'](_0x1b6e05['shift']());}catch(_0xafa401){_0x1b6e05['push'](_0x1b6e05['shift']());}}}(a112_0x6201,0xdd068));function a112_0x295d(_0x6fd94e,_0x5f3dc1){_0x6fd94e=_0x6fd94e-0x82;const _0x6201c0=a112_0x6201();let _0x295dd2=_0x6201c0[_0x6fd94e];return _0x295dd2;}export function dryRun(_0x1ae884,_0x2975c6){const _0x557fd7={'method':_0x1ae884,'url':_0x2975c6},_0x5643ad={'body'(_0x2eaed0){const _0x133dbb=a112_0x295d;return _0x557fd7[_0x133dbb(0x8b)]=_0x2eaed0,_0x5643ad;},'description'(_0x1ab03e){const _0x52a400=a112_0x295d;return _0x557fd7[_0x52a400(0x83)]=_0x1ab03e,_0x5643ad;},'build'(){return{..._0x557fd7};}};return _0x5643ad;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x12ae4d=a113_0x4074;(function(_0x36e48b,_0x5a71e9){const _0x1fcbfb=a113_0x4074,_0x4e2878=_0x36e48b();while(!![]){try{const _0x3bb2ed=-parseInt(_0x1fcbfb(0x13a))/0x1*(-parseInt(_0x1fcbfb(0x13c))/0x2)+-parseInt(_0x1fcbfb(0x135))/0x3*(-parseInt(_0x1fcbfb(0x13e))/0x4)+parseInt(_0x1fcbfb(0x140))/0x5+-parseInt(_0x1fcbfb(0x139))/0x6+-parseInt(_0x1fcbfb(0x138))/0x7+-parseInt(_0x1fcbfb(0x137))/0x8+-parseInt(_0x1fcbfb(0x13f))/0x9*(parseInt(_0x1fcbfb(0x136))/0xa);if(_0x3bb2ed===_0x5a71e9)break;else _0x4e2878['push'](_0x4e2878['shift']());}catch(_0x9dd6cb){_0x4e2878['push'](_0x4e2878['shift']());}}}(a113_0x505e,0x8ea5a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a113_0x4074(_0x18b348,_0x4963eb){_0x18b348=_0x18b348-0x135;const _0x505e24=a113_0x505e();let _0x40742e=_0x505e24[_0x18b348];return _0x40742e;}export const parseFlags=helpers[a113_0x12ae4d(0x13b)];export const validateFlags=helpers[a113_0x12ae4d(0x13d)];function a113_0x505e(){const _0x27017d=['1673106HZQVac','validateFlags','3777188ctfFUd','477HZJhtz','4824625WiHxQh','3ITughY','98870WvDLsZ','5734992ebDwyY','6362601YSfPCw','69990LvjxWM','1ltwBKP','parseFlags'];a113_0x505e=function(){return _0x27017d;};return a113_0x505e();}
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x374048,_0x4c3894){const _0xd6aaa3=a114_0x2ae7,_0x51a0c8=_0x374048();while(!![]){try{const _0x50a411=parseInt(_0xd6aaa3(0x110))/0x1+parseInt(_0xd6aaa3(0x114))/0x2+parseInt(_0xd6aaa3(0x10f))/0x3*(parseInt(_0xd6aaa3(0x111))/0x4)+-parseInt(_0xd6aaa3(0x11e))/0x5+-parseInt(_0xd6aaa3(0x11a))/0x6*(-parseInt(_0xd6aaa3(0x113))/0x7)+-parseInt(_0xd6aaa3(0x112))/0x8+parseInt(_0xd6aaa3(0x119))/0x9;if(_0x50a411===_0x4c3894)break;else _0x51a0c8['push'](_0x51a0c8['shift']());}catch(_0x1b4f02){_0x51a0c8['push'](_0x51a0c8['shift']());}}}(a114_0x369d,0xe32dd));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 _0x25d7f2=a114_0x2ae7;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[_0x25d7f2(0x117)]+_0x25d7f2(0x116)});}export function generateCommandHelp(_0x54af1d){const _0x23b4cf=a114_0x2ae7;return createGenerators()[_0x23b4cf(0x11d)](_0x54af1d);}function a114_0x2ae7(_0x3df829,_0x4925ce){_0x3df829=_0x3df829-0x10e;const _0x369d77=a114_0x369d();let _0x2ae79c=_0x369d77[_0x3df829];return _0x2ae79c;}export function generateServiceHelp(_0x5bfcc1){const _0x4c2ebd=a114_0x2ae7;return createGenerators()[_0x4c2ebd(0x10e)](_0x5bfcc1);}export function generateFullHelp(){const _0x26a4c6=a114_0x2ae7;return createGenerators()[_0x26a4c6(0x11f)]();}function getAnyServiceEntry(_0x56c909){const _0x4850f2=getServiceEntry(_0x56c909);if(_0x4850f2)return _0x4850f2;try{return getDynamicServiceEntry(_0x56c909);}catch{return undefined;}}function getAnyServiceDefinitions(_0x187f8f){const _0x1db3d2=a114_0x2ae7,_0x8ef584=serviceGroups[_0x1db3d2(0x11b)](_0x187f8f);if(_0x8ef584)return _0x8ef584;try{return getDynamicServiceDefinitions(_0x187f8f);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x27fa0b=a114_0x2ae7,_0x1a7237=new Set(serviceRegistry['map'](_0x17c194=>_0x17c194[_0x27fa0b(0x11c)]));try{return listDynamicServiceEntries()[_0x27fa0b(0x118)](_0x5456d4=>!_0x1a7237[_0x27fa0b(0x115)](_0x5456d4[_0x27fa0b(0x11c)]));}catch{return[];}}function a114_0x369d(){const _0x4842a3=['get','service','generateCommandHelp','9128155mIZxjW','generateFullHelp','generateServiceHelp','24CCLSPa','678914ynrEyL','799768cwnIVw','14807448ItYwPM','294623VxPuZM','1181336lKUYSZ','has','\x20or\x20--appcode).','newConfigFileName','filter','11474910KACGwk','66nxGKdL'];a114_0x369d=function(){return _0x4842a3;};return a114_0x369d();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a115_0x2653(){var _0x592bd7=['105256ZlnHBH','3514060adpSKv','273bLaFTD','14593090sZGkXp','60222cBRmeM','18UdncYm','21IGNlVr','1178694dMPlcj','3826816NCABEo','267641YYmUek'];a115_0x2653=function(){return _0x592bd7;};return a115_0x2653();}(function(_0x15d210,_0x1847aa){var _0x32cd4f=a115_0x1311,_0x1acbdb=_0x15d210();while(!![]){try{var _0x374c4f=parseInt(_0x32cd4f(0x197))/0x1+parseInt(_0x32cd4f(0x19f))/0x2+-parseInt(_0x32cd4f(0x19e))/0x3*(parseInt(_0x32cd4f(0x198))/0x4)+parseInt(_0x32cd4f(0x199))/0x5+parseInt(_0x32cd4f(0x19c))/0x6*(-parseInt(_0x32cd4f(0x19a))/0x7)+-parseInt(_0x32cd4f(0x196))/0x8*(-parseInt(_0x32cd4f(0x19d))/0x9)+-parseInt(_0x32cd4f(0x19b))/0xa;if(_0x374c4f===_0x1847aa)break;else _0x1acbdb['push'](_0x1acbdb['shift']());}catch(_0x4cebbd){_0x1acbdb['push'](_0x1acbdb['shift']());}}}(a115_0x2653,0x75912));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a115_0x1311(_0x59083f,_0x595192){_0x59083f=_0x59083f-0x196;var _0x2653d9=a115_0x2653();var _0x131194=_0x2653d9[_0x59083f];return _0x131194;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ca6b2,_0x41804b){const _0x11a89b=a116_0x51ac,_0x51cb5c=_0x4ca6b2();while(!![]){try{const _0x4c3ce8=parseInt(_0x11a89b(0x1b5))/0x1*(parseInt(_0x11a89b(0x1ac))/0x2)+-parseInt(_0x11a89b(0x1b4))/0x3*(parseInt(_0x11a89b(0x1ba))/0x4)+parseInt(_0x11a89b(0x1b3))/0x5*(parseInt(_0x11a89b(0x1b8))/0x6)+parseInt(_0x11a89b(0x1af))/0x7*(-parseInt(_0x11a89b(0x1b2))/0x8)+-parseInt(_0x11a89b(0x1b1))/0x9+-parseInt(_0x11a89b(0x1b7))/0xa+parseInt(_0x11a89b(0x1ad))/0xb;if(_0x4c3ce8===_0x41804b)break;else _0x51cb5c['push'](_0x51cb5c['shift']());}catch(_0x155497){_0x51cb5c['push'](_0x51cb5c['shift']());}}}(a116_0x50d2,0x2dc28));function a116_0x51ac(_0x5d444b,_0x51e210){_0x5d444b=_0x5d444b-0x1ac;const _0x50d2c6=a116_0x50d2();let _0x51aca6=_0x50d2c6[_0x5d444b];return _0x51aca6;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a116_0x50d2(){const _0xa1e48=['pretty','4ziVtsu','format','613226WZdLzi','4550095qPIsXd','update','217924KMSIQA','url','1783566VKjOKU','40eKfhJc','30neclNS','506526cpJZcq','1hhaXqN','_notice','1245700UucqAw','114420gwMccD'];a116_0x50d2=function(){return _0xa1e48;};return a116_0x50d2();}export function formatOutput(_0x2bcc1f,_0x523570){const _0x4b8a35=a116_0x51ac,_0x5c990c=_0x2bcc1f[_0x4b8a35(0x1b6)],{_notice:_0x11398b,..._0x15e9d1}=_0x2bcc1f;void _0x11398b,baseFormatOutput(_0x15e9d1,_0x523570),_0x523570[_0x4b8a35(0x1bb)]===_0x4b8a35(0x1b9)&&printPrettyNotice(_0x5c990c);}function printPrettyNotice(_0x2029a2){const _0x277fbe=a116_0x51ac;if(!_0x2029a2?.[_0x277fbe(0x1ae)])return;console['error'](_0x2029a2[_0x277fbe(0x1ae)]['message']+'\x20('+_0x2029a2['update'][_0x277fbe(0x1b0)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17ddd9,_0x60bfbb){const _0x1dab2a=a117_0x3425,_0x341c3d=_0x17ddd9();while(!![]){try{const _0x1d35bc=-parseInt(_0x1dab2a(0xa6))/0x1+-parseInt(_0x1dab2a(0xa9))/0x2+parseInt(_0x1dab2a(0x8e))/0x3+parseInt(_0x1dab2a(0xa5))/0x4+parseInt(_0x1dab2a(0xab))/0x5*(-parseInt(_0x1dab2a(0xb2))/0x6)+parseInt(_0x1dab2a(0x9c))/0x7*(-parseInt(_0x1dab2a(0xb4))/0x8)+parseInt(_0x1dab2a(0x98))/0x9;if(_0x1d35bc===_0x60bfbb)break;else _0x341c3d['push'](_0x341c3d['shift']());}catch(_0x44a94c){_0x341c3d['push'](_0x341c3d['shift']());}}}(a117_0xf890,0x7db44));export function toKebab(_0x1af6ce){const _0xb6f147=a117_0x3425;return _0x1af6ce[_0xb6f147(0x94)](/_/g,'-')[_0xb6f147(0x94)](/-([A-Z]+)/g,(_0x1e9e43,_0x23cc7d)=>'-'+_0x23cc7d[_0xb6f147(0x95)]())[_0xb6f147(0x94)](/([a-z0-9])([A-Z])/g,(_0x3f3dcc,_0x5316b3,_0x5761c9)=>_0x5316b3+'-'+_0x5761c9)[_0xb6f147(0x95)]();}function buildKnownFlags(_0x20dfbf){const _0x30f116=a117_0x3425,_0x5317d2=new Set();for(const _0x29cdaa of _0x20dfbf){_0x5317d2['add'](_0x29cdaa[_0x30f116(0xa0)]),_0x5317d2['add'](toCamelCase(_0x29cdaa[_0x30f116(0xa0)]));}for(const _0x55e9a3 of[_0x30f116(0x92),'dryRun',_0x30f116(0x8f),_0x30f116(0x9a)]){_0x5317d2['add'](_0x55e9a3);}for(const _0x5851e5 of[_0x30f116(0xa1),_0x30f116(0x9e),_0x30f116(0xae),_0x30f116(0x93),_0x30f116(0xaa),'non-interactive','ci',_0x30f116(0xb0),_0x30f116(0x96)]){_0x5317d2[_0x30f116(0x90)](_0x5851e5);}return _0x5317d2;}function a117_0x3425(_0x2971f8,_0x1a9070){_0x2971f8=_0x2971f8-0x8d;const _0xf890c5=a117_0xf890();let _0x342565=_0xf890c5[_0x2971f8];return _0x342565;}function buildFlagTypeMap(_0xc870ff){const _0x1414e8=a117_0x3425,_0x340282=new Map();for(const _0x2ea32a of _0xc870ff){_0x340282[_0x1414e8(0x8d)](_0x2ea32a['name'],_0x2ea32a[_0x1414e8(0x99)]),_0x340282[_0x1414e8(0x8d)](toCamelCase(_0x2ea32a[_0x1414e8(0xa0)]),_0x2ea32a[_0x1414e8(0x99)]);}return _0x340282;}function toCamelCase(_0x1389ae){const _0x5f18f2=a117_0x3425;return _0x1389ae[_0x5f18f2(0x94)](/-([a-z])/g,(_0x46e00e,_0x8fc60f)=>_0x8fc60f[_0x5f18f2(0xa8)]());}function aliasHandler(_0x5dbd1b,_0x455147){const _0x150f13=a117_0x3425,_0x2dc57f=[];for(const _0x2e1ed1 of Object[_0x150f13(0xb3)](_0x5dbd1b)){if(_0x455147[_0x150f13(0xa3)](_0x2e1ed1))continue;const _0x10d9e2=toKebab(_0x2e1ed1);_0x10d9e2!==_0x2e1ed1&&_0x455147[_0x150f13(0xa3)](_0x10d9e2)&&_0x2dc57f[_0x150f13(0x9f)]({'original':_0x2e1ed1,'corrected':_0x10d9e2,'handler':_0x150f13(0xaf)});}return _0x2dc57f;}function stickyHandler(_0x343a59,_0x35b53d,_0x2446d1){const _0x3371ae=a117_0x3425,_0x5e7fd8=[];for(const [_0x45be6c,_0x5c5bea]of Object['entries'](_0x343a59)){if(_0x5c5bea!==!![])continue;for(let _0x120a58=_0x45be6c[_0x3371ae(0x9d)]-0x1;_0x120a58>0x0;_0x120a58--){const _0x1fee5b=_0x45be6c['slice'](0x0,_0x120a58),_0x1fbb8b=_0x45be6c[_0x3371ae(0x91)](_0x120a58),_0x348add=toKebab(_0x1fee5b),_0x582995=toCamelCase(_0x1fee5b),_0x55b1d3=_0x35b53d[_0x3371ae(0xa3)](_0x1fee5b)?_0x1fee5b:_0x35b53d[_0x3371ae(0xa3)](_0x348add)?_0x348add:_0x35b53d[_0x3371ae(0xa3)](_0x582995)?_0x582995:null;if(!_0x55b1d3)continue;const _0x4e01da=_0x2446d1['get'](_0x55b1d3)??_0x3371ae(0xa2);let _0x387ae8;if(_0x4e01da===_0x3371ae(0xac)){const _0xf32fe=Number(_0x1fbb8b);if(isNaN(_0xf32fe)||_0x1fbb8b==='')continue;_0x387ae8=_0xf32fe;}else{if(_0x4e01da===_0x3371ae(0xb1))continue;else{if(_0x1fbb8b==='')continue;_0x387ae8=_0x1fbb8b;}}_0x5e7fd8[_0x3371ae(0x9f)]({'original':_0x45be6c,'corrected':_0x55b1d3+'='+_0x387ae8,'handler':_0x3371ae(0xad)});break;}}return _0x5e7fd8;}export function correctFlags(_0x81bc50,_0x1e45aa){const _0x2abed0=a117_0x3425,_0x3e6725=buildKnownFlags(_0x1e45aa),_0x172734=buildFlagTypeMap(_0x1e45aa),_0x299f18=aliasHandler(_0x81bc50,_0x3e6725),_0x53b919=stickyHandler(_0x81bc50,_0x3e6725,_0x172734),_0x83ca8=[..._0x299f18,..._0x53b919];if(_0x83ca8[_0x2abed0(0x9d)]===0x0)return{'flags':_0x81bc50,'corrections':[]};const _0x5a9bff={..._0x81bc50},_0x3ab623=new Set();for(const _0x37934c of _0x299f18){_0x5a9bff[_0x37934c[_0x2abed0(0x97)]]=_0x81bc50[_0x37934c[_0x2abed0(0x9b)]],_0x3ab623['add'](_0x37934c[_0x2abed0(0x9b)]);}for(const _0x5e6858 of _0x53b919){const _0xfbc88b=_0x5e6858[_0x2abed0(0x97)][_0x2abed0(0xa7)]('='),_0x5bffe6=_0x5e6858[_0x2abed0(0x97)][_0x2abed0(0x91)](0x0,_0xfbc88b),_0x525d18=_0x5e6858[_0x2abed0(0x97)][_0x2abed0(0x91)](_0xfbc88b+0x1),_0x24e56f=_0x172734[_0x2abed0(0xa4)](_0x5bffe6)??_0x2abed0(0xa2);_0x24e56f===_0x2abed0(0xac)?_0x5a9bff[_0x5bffe6]=Number(_0x525d18):_0x5a9bff[_0x5bffe6]=_0x525d18,_0x3ab623[_0x2abed0(0x90)](_0x5e6858['original']);}for(const _0x34b045 of _0x3ab623){delete _0x5a9bff[_0x34b045];}return{'flags':_0x5a9bff,'corrections':_0x83ca8};}function a117_0xf890(){const _0x4df7c6=['number','sticky','appcode','alias','global','boolean','1184376fyBmxf','keys','40IjDANT','set','1952712OYTtDG','yes','add','slice','dry-run','app','replace','toLowerCase','version','corrected','19626399FheEiT','type','format','original','1260469zdWAuj','length','env','push','name','help','string','has','get','3000780cEikDV','817659XaWmZO','indexOf','toUpperCase','723904WjXjXT','nonInteractive','25hQvvAr'];a117_0xf890=function(){return _0x4df7c6;};return a117_0xf890();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x272600=a118_0x40ab;(function(_0x2ed308,_0x1b3525){const _0x8d3ddd=a118_0x40ab,_0x34d44b=_0x2ed308();while(!![]){try{const _0x537eee=parseInt(_0x8d3ddd(0xb3))/0x1+parseInt(_0x8d3ddd(0xba))/0x2*(parseInt(_0x8d3ddd(0xbb))/0x3)+parseInt(_0x8d3ddd(0xaf))/0x4+-parseInt(_0x8d3ddd(0xa5))/0x5*(-parseInt(_0x8d3ddd(0xb0))/0x6)+-parseInt(_0x8d3ddd(0xb4))/0x7+-parseInt(_0x8d3ddd(0xb1))/0x8*(parseInt(_0x8d3ddd(0xa9))/0x9)+parseInt(_0x8d3ddd(0xa0))/0xa*(parseInt(_0x8d3ddd(0xaa))/0xb);if(_0x537eee===_0x1b3525)break;else _0x34d44b['push'](_0x34d44b['shift']());}catch(_0x14721e){_0x34d44b['push'](_0x34d44b['shift']());}}}(a118_0x2b6b,0x9e271));function a118_0x2b6b(){const _0x3f3460=['retry-after','function','Retry\x20after\x20','number','errorCode','isInteger','1190zFRgtW','Wait\x20','retryAfter','EXCEED_MAX_QPS_LIMIT','call','6155AJkxOb','\x20seconds\x20before\x20retrying.','has','IP_RATE_LIMIT_EXCEEDED','3637692WRtaFg','68134dfGvPV','test','Retry\x20after\x20a\x20short\x20delay.','toLowerCase','Request\x20rate\x20limit\x20exceeded.','3326520DySQMh','2616ShyvjO','24XDvvSl','trim','623618cKiorW','6881826kmTIMq','string','entries','MAX_QPS_LIMIT','isArray','get','9154nXRhgb','75fMKAZr'];a118_0x2b6b=function(){return _0x3f3460;};return a118_0x2b6b();}import{CliErrors}from'../errors.js';function a118_0x40ab(_0x2406e6,_0x15dac0){_0x2406e6=_0x2406e6-0x9b;const _0x2b6b80=a118_0x2b6b();let _0x40ab35=_0x2b6b80[_0x2406e6];return _0x40ab35;}const RATE_LIMIT_ERROR_CODES=new Set([a118_0x272600(0xa3),a118_0x272600(0xb7),a118_0x272600(0xa8)]);function nonEmptyString(_0x403d8a){const _0x2b7d10=a118_0x272600;if(typeof _0x403d8a!==_0x2b7d10(0xb5))return undefined;const _0x40c493=_0x403d8a[_0x2b7d10(0xb2)]();return _0x40c493||undefined;}function buildRetryHint(_0x14b303){const _0x4ab1ef=a118_0x272600,_0x51d2a0=nonEmptyString(_0x14b303),_0x2497a4=_0x51d2a0?/^\d+$/[_0x4ab1ef(0xab)](_0x51d2a0)?_0x4ab1ef(0xa1)+_0x51d2a0+_0x4ab1ef(0xa6):_0x4ab1ef(0x9c)+_0x51d2a0+'.':_0x4ab1ef(0xac);return _0x2497a4+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x51cdb4){const _0xf65c9b=a118_0x272600,_0x2ed2b4=nonEmptyString(_0x51cdb4[_0xf65c9b(0x9e)])?.['toUpperCase'](),_0x3fbe55=Number(_0x51cdb4['status'])===0x1ad||_0x2ed2b4!==undefined&&RATE_LIMIT_ERROR_CODES[_0xf65c9b(0xa7)](_0x2ed2b4);if(!_0x3fbe55)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x51cdb4['message'])??_0xf65c9b(0xae),buildRetryHint(_0x51cdb4[_0xf65c9b(0xa2)]));}export function readRetryAfter(_0x2bd265){const _0x39727b=a118_0x272600;if(!_0x2bd265||typeof _0x2bd265!=='object')return undefined;const _0x709248=_0x2bd265[_0x39727b(0xb9)];if(typeof _0x709248===_0x39727b(0x9b)){const _0x30e8e9=_0x709248[_0x39727b(0xa4)](_0x2bd265,'Retry-After')??_0x709248[_0x39727b(0xa4)](_0x2bd265,_0x39727b(0xbc));return nonEmptyString(_0x30e8e9);}for(const [_0x1d6db6,_0x32d2f0]of Object[_0x39727b(0xb6)](_0x2bd265)){if(_0x1d6db6[_0x39727b(0xad)]()===_0x39727b(0xbc))return nonEmptyString(_0x32d2f0)??(typeof _0x32d2f0===_0x39727b(0x9d)?String(_0x32d2f0):undefined);}return undefined;}export function readRetryAfterSeconds(_0x59513e){const _0x5762e8=a118_0x272600;if(!_0x59513e||typeof _0x59513e!=='object'||Array[_0x5762e8(0xb8)](_0x59513e))return undefined;const _0xf489=_0x59513e['retryAfterSeconds'];if(typeof _0xf489==='number')return Number[_0x5762e8(0x9f)](_0xf489)&&_0xf489>=0x0?String(_0xf489):undefined;const _0x23c766=nonEmptyString(_0xf489);return _0x23c766&&/^\d+$/[_0x5762e8(0xab)](_0x23c766)?_0x23c766:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x581cf8=a119_0x4362;(function(_0x1a9a27,_0x532a6a){const _0x1f7751=a119_0x4362,_0x4c2258=_0x1a9a27();while(!![]){try{const _0x3032db=-parseInt(_0x1f7751(0xcd))/0x1*(-parseInt(_0x1f7751(0xd4))/0x2)+parseInt(_0x1f7751(0xd3))/0x3+-parseInt(_0x1f7751(0xdc))/0x4+-parseInt(_0x1f7751(0xca))/0x5+parseInt(_0x1f7751(0xe3))/0x6*(-parseInt(_0x1f7751(0xe1))/0x7)+parseInt(_0x1f7751(0xe7))/0x8+parseInt(_0x1f7751(0xce))/0x9;if(_0x3032db===_0x532a6a)break;else _0x4c2258['push'](_0x4c2258['shift']());}catch(_0x4890f0){_0x4c2258['push'](_0x4c2258['shift']());}}}(a119_0x73c4,0x7c13e));import{CliErrors}from'../errors.js';function a119_0x73c4(){const _0x46ca22=['add','4235994ShSbbI','filter','Unknown\x20flag\x20--','\x20for\x20`','3132640iMNteh','page','entries','\x20data\x20filter`.','pagesize','currentpage','2135020MYLaNO','version','select','1vRBNxj','2755728HBpbdE','Run\x20`','service','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','flags','2614152nySguS','1613770dAyXQx','has','data','stringify','name','Example:\x20','active','validation','2939264cBzdHM','command','no-','order-by','orderby','7mhGCxk'];a119_0x73c4=function(){return _0x46ca22;};return a119_0x73c4();}function a119_0x4362(_0x111f09,_0x5a295d){_0x111f09=_0x111f09-0xc9;const _0x73c4fc=a119_0x73c4();let _0x43620e=_0x73c4fc[_0x111f09];return _0x43620e;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where',a119_0x581cf8(0xcc),a119_0x581cf8(0xdf),a119_0x581cf8(0xe0),'current-page',a119_0x581cf8(0xc9),a119_0x581cf8(0xe8),'page-size',a119_0x581cf8(0xeb)]);export function assertKnownCommandFlags(_0x3bbf5d,_0x1b72dd){const _0xb2446a=a119_0x581cf8,_0x40aa23=new Set([_0xb2446a(0xcb)]);for(const _0x3c7339 of GLOBAL_FLAGS){_0x40aa23[_0xb2446a(0xe2)](_0x3c7339[_0xb2446a(0xd8)]),_0x40aa23[_0xb2446a(0xe2)](toKebab(_0x3c7339['meowKey']));}for(const _0x2d34f5 of _0x3bbf5d[_0xb2446a(0xd2)]??[]){_0x40aa23['add'](_0x2d34f5[_0xb2446a(0xd8)]);}for(const [_0x5461f4,_0x4000ed]of Object[_0xb2446a(0xe9)](_0x1b72dd)){const _0x56f6a7=toKebab(_0x5461f4);if(_0x40aa23['has'](_0x56f6a7))continue;if(_0x4000ed===![]&&_0x40aa23[_0xb2446a(0xd5)](_0xb2446a(0xde)+_0x56f6a7))continue;if(_0x3bbf5d[_0xb2446a(0xd0)]===_0xb2446a(0xd6)&&_0x3bbf5d[_0xb2446a(0xdd)]===_0xb2446a(0xe4)&&FILTER_BODY_FIELDS[_0xb2446a(0xd5)](_0x56f6a7))throw CliErrors[_0xb2446a(0xdb)]('--'+_0x56f6a7+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0xb2446a(0xea),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0xb2446a(0xd9)+CLI_BIN_NAME+_0xb2446a(0xd1))+('\x27'+JSON[_0xb2446a(0xd7)]({'where':{'status':{'$eq':_0xb2446a(0xda)}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors['validation'](_0xb2446a(0xe5)+_0x56f6a7+_0xb2446a(0xe6)+CLI_BIN_NAME+'\x20'+_0x3bbf5d[_0xb2446a(0xd0)]+'\x20'+_0x3bbf5d[_0xb2446a(0xdd)]+'`.',_0xb2446a(0xcf)+CLI_BIN_NAME+'\x20'+_0x3bbf5d['service']+'\x20'+_0x3bbf5d['command']+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x541441,_0x19c113){var _0x2fb5f0=a120_0x1fde,_0x12a610=_0x541441();while(!![]){try{var _0x107bf0=-parseInt(_0x2fb5f0(0x1d3))/0x1*(-parseInt(_0x2fb5f0(0x1d2))/0x2)+parseInt(_0x2fb5f0(0x1d9))/0x3*(-parseInt(_0x2fb5f0(0x1d6))/0x4)+-parseInt(_0x2fb5f0(0x1d4))/0x5*(parseInt(_0x2fb5f0(0x1d5))/0x6)+parseInt(_0x2fb5f0(0x1da))/0x7+-parseInt(_0x2fb5f0(0x1d1))/0x8*(-parseInt(_0x2fb5f0(0x1cf))/0x9)+-parseInt(_0x2fb5f0(0x1d8))/0xa*(parseInt(_0x2fb5f0(0x1d0))/0xb)+parseInt(_0x2fb5f0(0x1d7))/0xc;if(_0x107bf0===_0x19c113)break;else _0x12a610['push'](_0x12a610['shift']());}catch(_0xe7f4d8){_0x12a610['push'](_0x12a610['shift']());}}}(a120_0x53cb,0x955e2));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a120_0x1fde(_0x48197c,_0x2d7fbc){_0x48197c=_0x48197c-0x1cf;var _0x53cbd3=a120_0x53cb();var _0x1fde54=_0x53cbd3[_0x48197c];return _0x1fde54;}function a120_0x53cb(){var _0x388cc7=['38knCpPh','2998wauPaz','1017170wKTTeO','24xryCHd','4aZhfoy','25218072ApcNMa','22160wElZWY','1835529wfWAQk','1356369HmuHxL','2761461bofYyT','4609JRcVpx','16FcCjAx'];a120_0x53cb=function(){return _0x388cc7;};return a120_0x53cb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x414276,_0x22ec85){const _0x5b0b40=a121_0x12ea,_0x17ba43=_0x414276();while(!![]){try{const _0xdbf6c6=parseInt(_0x5b0b40(0xb0))/0x1*(parseInt(_0x5b0b40(0xbf))/0x2)+parseInt(_0x5b0b40(0xc3))/0x3*(parseInt(_0x5b0b40(0xb8))/0x4)+parseInt(_0x5b0b40(0xb5))/0x5*(-parseInt(_0x5b0b40(0xc2))/0x6)+parseInt(_0x5b0b40(0xb1))/0x7+parseInt(_0x5b0b40(0xcb))/0x8+parseInt(_0x5b0b40(0xbc))/0x9*(-parseInt(_0x5b0b40(0xb2))/0xa)+-parseInt(_0x5b0b40(0xcf))/0xb;if(_0xdbf6c6===_0x22ec85)break;else _0x17ba43['push'](_0x17ba43['shift']());}catch(_0x4b42ab){_0x17ba43['push'](_0x17ba43['shift']());}}}(a121_0x3eba,0x9ff3e));import{CLI_BIN_NAME}from'../constant/cli.js';function a121_0x3eba(){const _0x27fc1b=['8436cOohmA','830970cQdfib','description','title','kind','commandLabel','entries','code','cron=','7428672ycQwKd','--yes','affectedRecords','schedule-id','1952665qQHSaY','command','params=','cron','stringify','params','scheduled-at','423883xAkYMb','1191568VJMjvI','280mxkXCc','⚠\x20\x20High-risk\x20operation:\x20','kind=','3085FNKMXG','name','schedule-id=','16XfqeSF','code=','\x20\x20\x20','id=','299079WujNTK','channel','join','2obFimS','push','name='];a121_0x3eba=function(){return _0x27fc1b;};return a121_0x3eba();}import{isSensitiveFlagName}from'../utils/redaction.js';function a121_0x12ea(_0x602ec4,_0x2f9de3){_0x602ec4=_0x602ec4-0xaa;const _0x3ebab5=a121_0x3eba();let _0x12eabf=_0x3ebab5[_0x602ec4];return _0x12eabf;}export function buildConfirmationLines(_0x126087,_0x32e6f8,_0x736bcc){const _0x28bc55=a121_0x12ea,_0x40d201=buildConfirmationContext(_0x126087,_0x32e6f8,_0x736bcc),_0x4e646b=[_0x28bc55(0xb3)+_0x40d201[_0x28bc55(0xc7)]];return _0x40d201[_0x28bc55(0xc4)]&&_0x4e646b[_0x28bc55(0xc0)](_0x28bc55(0xba)+_0x40d201['description']),_0x40d201[_0x28bc55(0xcd)]&&_0x4e646b[_0x28bc55(0xc0)]('\x20\x20\x20Affected:\x20'+_0x40d201[_0x28bc55(0xcd)]),_0x4e646b[_0x28bc55(0xc0)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x4e646b;}export function reconstructCommandArgv(_0x275961,_0x5c3a58){const _0x2a02c0=a121_0x12ea,_0x1491c6=[CLI_BIN_NAME,_0x275961['service'],_0x275961[_0x2a02c0(0xaa)]];for(const [_0x33049b,_0x24da22]of Object[_0x2a02c0(0xc8)](_0x5c3a58)){if(_0x24da22===!![])_0x1491c6[_0x2a02c0(0xc0)]('--'+_0x33049b);else{if(isSensitiveFlagName(_0x33049b)&&_0x24da22!==![]&&_0x24da22!==undefined&&_0x24da22!=='')_0x1491c6['push']('--'+_0x33049b+'\x20[REDACTED]');else _0x24da22!==![]&&_0x24da22!==undefined&&_0x24da22!==''&&_0x1491c6['push']('--'+_0x33049b+'\x20'+JSON[_0x2a02c0(0xad)](_0x24da22));}}return _0x1491c6[_0x2a02c0(0xc0)](_0x2a02c0(0xcc)),_0x1491c6['join']('\x20');}function buildConfirmationContext(_0x2399fa,_0xb71cde,_0x170611){const _0x2feef5=a121_0x12ea,_0x385e93=extractAffectedRecords(_0x170611);return{'commandLabel':_0xb71cde,'description':_0x2399fa[_0x2feef5(0xc4)],'affectedRecords':_0x385e93};}function extractAffectedRecords(_0xbc041e){const _0x59f924=a121_0x12ea,_0x58cafd=[];if(_0xbc041e[_0x59f924(0xc9)])_0x58cafd[_0x59f924(0xc0)](_0x59f924(0xb9)+_0xbc041e[_0x59f924(0xc9)]);if(_0xbc041e['id'])_0x58cafd[_0x59f924(0xc0)](_0x59f924(0xbb)+_0xbc041e['id']);if(_0xbc041e[_0x59f924(0xce)])_0x58cafd[_0x59f924(0xc0)](_0x59f924(0xb7)+_0xbc041e[_0x59f924(0xce)]);if(_0xbc041e[_0x59f924(0xb6)])_0x58cafd[_0x59f924(0xc0)](_0x59f924(0xc1)+_0xbc041e[_0x59f924(0xb6)]);if(_0xbc041e[_0x59f924(0xc5)])_0x58cafd[_0x59f924(0xc0)]('title='+_0xbc041e[_0x59f924(0xc5)]);if(_0xbc041e['kind'])_0x58cafd['push'](_0x59f924(0xb4)+_0xbc041e[_0x59f924(0xc6)]);if(_0xbc041e[_0x59f924(0xac)])_0x58cafd[_0x59f924(0xc0)](_0x59f924(0xca)+_0xbc041e[_0x59f924(0xac)]);if(_0xbc041e[_0x59f924(0xaf)])_0x58cafd[_0x59f924(0xc0)]('scheduled-at='+_0xbc041e['scheduled-at']);if(_0xbc041e[_0x59f924(0xbd)])_0x58cafd['push']('channel='+_0xbc041e[_0x59f924(0xbd)]);if(_0xbc041e[_0x59f924(0xae)])_0x58cafd['push'](_0x59f924(0xab)+_0xbc041e[_0x59f924(0xae)]);return _0x58cafd['length']>0x0?_0x58cafd[_0x59f924(0xbe)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a122_0x5f1a(){const _0x23f5fd=['trim','1946676oAmrFX','status','Request\x20rejected\x20(HTTP\x20401).','850505OGSzOx','994735TaZqKe','1211715oGTbzu','2sYmMWQ','12QsddBv','apiError','response','4337168YUCDDn','validation','headers','320686oWFgat','code','stringify','message','3899016WgnDmR','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.'];a122_0x5f1a=function(){return _0x23f5fd;};return a122_0x5f1a();}(function(_0x2db03e,_0x26be2a){const _0x167daf=a122_0x32f7,_0x594fa5=_0x2db03e();while(!![]){try{const _0x25dfcd=-parseInt(_0x167daf(0x112))/0x1*(-parseInt(_0x167daf(0x10b))/0x2)+-parseInt(_0x167daf(0x119))/0x3+-parseInt(_0x167daf(0x10c))/0x4*(parseInt(_0x167daf(0x11c))/0x5)+parseInt(_0x167daf(0x116))/0x6+-parseInt(_0x167daf(0x11d))/0x7+parseInt(_0x167daf(0x10f))/0x8+parseInt(_0x167daf(0x11e))/0x9;if(_0x25dfcd===_0x26be2a)break;else _0x594fa5['push'](_0x594fa5['shift']());}catch(_0x2470cb){_0x594fa5['push'](_0x594fa5['shift']());}}}(a122_0x5f1a,0x54793));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x2da1e1){const _0x284c75=a122_0x32f7;if(_0x2da1e1 instanceof LovrabetError){const _0x470413=userFacingLovrabetMessage(_0x2da1e1),_0x396f3f=_0x2da1e1,_0x4e8239=createRateLimitError({'status':_0x396f3f[_0x284c75(0x11a)],'errorCode':_0x396f3f[_0x284c75(0x113)],'message':_0x470413,'retryAfter':readRetryAfter(_0x396f3f[_0x284c75(0x10e)]?.[_0x284c75(0x111)])??readRetryAfterSeconds(_0x396f3f['response'])});return createAccessError(_0x396f3f[_0x284c75(0x10e)],_0x396f3f['code'])??_0x4e8239??(Number(_0x396f3f[_0x284c75(0x11a)])===0x191?CliErrors[_0x284c75(0x10d)](_0x284c75(0x11b),_0x284c75(0x117)):CliErrors[_0x284c75(0x110)](_0x470413));}return _0x2da1e1;}function a122_0x32f7(_0x1554dc,_0x28853a){_0x1554dc=_0x1554dc-0x10b;const _0x5f1ab2=a122_0x5f1a();let _0x32f738=_0x5f1ab2[_0x1554dc];return _0x32f738;}function userFacingLovrabetMessage(_0x2d7c82){const _0x45cc2c=a122_0x32f7,_0x115729=_0x2d7c82['description'];if(_0x115729!==undefined&&_0x115729!==null){if(typeof _0x115729==='string'&&_0x115729[_0x45cc2c(0x118)]())return _0x115729[_0x45cc2c(0x118)]();try{return JSON[_0x45cc2c(0x114)](_0x115729);}catch{}}return _0x2d7c82[_0x45cc2c(0x115)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2b7be5,_0x1cbc06){const _0x31a43f=a123_0x44dc,_0x15c257=_0x2b7be5();while(!![]){try{const _0x1709bb=-parseInt(_0x31a43f(0xb3))/0x1*(parseInt(_0x31a43f(0x85))/0x2)+parseInt(_0x31a43f(0xa0))/0x3+parseInt(_0x31a43f(0xa9))/0x4*(-parseInt(_0x31a43f(0xb5))/0x5)+parseInt(_0x31a43f(0x8a))/0x6*(-parseInt(_0x31a43f(0x8b))/0x7)+-parseInt(_0x31a43f(0xb4))/0x8+parseInt(_0x31a43f(0xab))/0x9+parseInt(_0x31a43f(0xaa))/0xa*(parseInt(_0x31a43f(0x92))/0xb);if(_0x1709bb===_0x1cbc06)break;else _0x15c257['push'](_0x15c257['shift']());}catch(_0x22cdef){_0x15c257['push'](_0x15c257['shift']());}}}(a123_0x3a5d,0xee492));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a123_0x44dc(_0x20a29f,_0x1ee8a3){_0x20a29f=_0x20a29f-0x72;const _0x3a5de2=a123_0x3a5d();let _0x44dcc8=_0x3a5de2[_0x20a29f];return _0x44dcc8;}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';export function resolveAuthMode(_0x34c902){const _0x3f764c=a123_0x44dc;return void _0x34c902,AUTH_MODE[_0x3f764c(0x99)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x3b9fde,_0x41fc89){const _0x4c1f2a=a123_0x44dc,_0x3f0cb3=typeof _0x41fc89[_0x4c1f2a(0x83)]===_0x4c1f2a(0xa8)&&_0x41fc89[_0x4c1f2a(0x83)][_0x4c1f2a(0xb8)]();return{'rawFlags':_0x41fc89,'appCode':_0x3b9fde['appCode']||productEnv('APPCODE')||(_0x3f0cb3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3b9fde['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x41fc89),'defaultFormat':_0x3b9fde[_0x4c1f2a(0x91)],'defaultPageSize':_0x3b9fde[_0x4c1f2a(0x89)],'defaultVerbose':_0x3b9fde[_0x4c1f2a(0xad)],'riskLevel':_0x3b9fde['riskLevel'],'nativeToolAvailable':_0x3b9fde['nativeToolAvailable'],'accessKey':_0x3b9fde[_0x4c1f2a(0x9c)],'env':_0x3b9fde[_0x4c1f2a(0x81)],'mergedCli':{'defaultApp':_0x3b9fde['defaultApp'],'currentApp':_0x3b9fde['currentApp'],'appCode':_0x3b9fde[_0x4c1f2a(0x7c)]}};}export function createLovrabetRunnerAdapter(_0x253418={}){const _0x39eab9=a123_0x44dc,_0x2869f2={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x39eab9(0xb1)](_0x2ccbce=>PIPELINE_FLAG_NAMES[_0x39eab9(0x96)](_0x2ccbce[_0x39eab9(0x74)]))[_0x39eab9(0xa3)](({name:_0x73425,type:_0x3e51b5,description:_0x264d86})=>({'name':_0x73425,'type':_0x3e51b5,'description':_0x264d86})),'formatOutput':_0x253418[_0x39eab9(0x7d)]??formatOutput,'getCommandLabel'(_0x170d7f){const _0x3402f8=_0x39eab9;return CLI_BIN_NAME+'\x20'+_0x170d7f['service']+'\x20'+_0x170d7f[_0x3402f8(0xb9)];},'riskPolicy':{'onViolation'(_0x55c31d,{def:_0x176819,env:_0x23a7ef}){const _0x41095a=_0x39eab9;if(shouldRouteWriteToNativeTool(_0x176819,_0x23a7ef))return;console[_0x41095a(0xb0)](_0x55c31d);},'createError'(_0x4fa970,{def:_0x387c5f,env:_0x5a588a}){const _0x4de697=_0x39eab9;if(shouldRouteWriteToNativeTool(_0x387c5f,_0x5a588a))return CliErrors[_0x4de697(0x95)](CLI_BIN_NAME+'\x20'+_0x387c5f[_0x4de697(0x86)]+'\x20'+_0x387c5f[_0x4de697(0xb9)]);return CliErrors[_0x4de697(0x7a)](_0x4fa970);}},async 'prepare'(_0x9f9553,_0x489d23){const _0x2021ff=_0x39eab9,_0x2e3dec=resolveAuthMode(_0x489d23);if(_0x9f9553[_0x2021ff(0x7e)]!==![]){if(!_0x489d23[_0x2021ff(0x9c)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2021ff(0x8f)]+_0x2021ff(0xb6)+productEnvName(_0x2021ff(0xbe))+'.');const {setActiveAK:_0x500c2d}=await import(_0x2021ff(0x7f));_0x500c2d(_0x489d23[_0x2021ff(0x9c)]);}let _0x419a24='';if(_0x9f9553[_0x2021ff(0x9a)]!==![]){_0x419a24=_0x489d23[_0x2021ff(0x7c)]??'',_0x419a24=await resolveExplicitAppName(_0x9f9553,_0x489d23,_0x419a24);if(!_0x419a24){await assertSelectedAppNameIsRuntimeAccessible(_0x9f9553,_0x489d23);throw CliErrors[_0x2021ff(0xbd)](_0x2021ff(0xba)+PRODUCT_CONFIG[_0x2021ff(0x8f)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x9f9553,_0x489d23,_0x419a24);}if(_0x419a24){const {initSdkClient:_0x2d42bb}=await import(_0x2021ff(0x9b));_0x2d42bb({'appCode':_0x419a24,'env':_0x489d23[_0x2021ff(0x81)]??'production','runtimeDomain':_0x489d23[_0x2021ff(0x72)],'accessKey':_0x489d23['accessKey'],'authMode':_0x2e3dec}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x489d23[_0x2021ff(0x90)]},'numbers':{'pagesize':_0x489d23[_0x2021ff(0x76)]}},'extras':{'appCode':_0x419a24,'cookie':'','apiDomain':_0x489d23['apiDomain'],'apiDir':'','accessKey':_0x489d23[_0x2021ff(0x9c)],'envName':_0x489d23['env'],'mergedCli':_0x489d23[_0x2021ff(0xb2)]}};},'confirmHighRisk':_0x253418[_0x39eab9(0x93)]??(async({def:_0x56d0ec,env:_0x19609a,flags:_0x2eeef5,commandLabel:_0x4ee8ad})=>{const _0x48093b=_0x39eab9;if(_0x19609a[_0x48093b(0xaf)]){const _0x128ae8=reconstructCommandArgv(_0x56d0ec,_0x2eeef5);throw CliErrors[_0x48093b(0x9f)](_0x48093b(0x94)+_0x4ee8ad+_0x48093b(0x8e)+(_0x48093b(0xa5)+_0x128ae8));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x56d0ec,_0x4ee8ad,_0x2eeef5),'createCancelledError':_0x498ff3=>CliErrors['cancelled'](_0x498ff3)});}),'mapDryRunError'(_0x2841fb){return mapUserFacingExecuteError(_0x2841fb);},'mapExecuteError'(_0x194865){return mapUserFacingExecuteError(_0x194865);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x2869f2;}function shouldRouteWriteToNativeTool(_0x489f87,_0x4934ce){const _0xd8db09=a123_0x44dc;return _0x4934ce[_0xd8db09(0xa6)]===!![]&&(_0x489f87[_0xd8db09(0xae)]===_0xd8db09(0x73)||_0x489f87['risk']==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2933a1=a123_0x44dc;try{if(sdkClientInitialized){const {clearSdkClient:_0x56c513}=await import('../core/sdk-client.js');_0x56c513();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x284115}=await import(_0x2933a1(0x7f));_0x284115();}}async function resolveExplicitAppName(_0x354fa1,_0x4b3286,_0x377b26){const _0x5ace75=a123_0x44dc;if(_0x354fa1[_0x5ace75(0x9a)]===![])return _0x377b26;const _0x20b291=typeof _0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x83)]==='string'?_0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x83)][_0x5ace75(0xb8)]():'';if(!_0x20b291)return _0x377b26;const _0x3ed470=typeof _0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x8d)]===_0x5ace75(0xa8)&&_0x4b3286[_0x5ace75(0x79)][_0x5ace75(0x8d)][_0x5ace75(0xb8)]()||productEnv(_0x5ace75(0x88));if(_0x3ed470||_0x4b3286[_0x5ace75(0xb7)]===_0x5ace75(0xa4))return _0x377b26;const {getRemoteAppList:_0x4e74c8}=await import(_0x5ace75(0x77)),_0x31c87c=await _0x4e74c8({'env':_0x4b3286['env']??'production','accessKey':_0x4b3286['accessKey']}),_0x3c213b=findAppByName(_0x31c87c[_0x5ace75(0xa7)],_0x20b291);if(_0x3c213b&&!isRuntimeAccessibleApp(_0x3c213b))throw runtimeInaccessibleAppError(_0x3c213b,'\x22'+_0x20b291+'\x22');const _0x151e61=_0x3c213b?.[_0x5ace75(0x7c)]?.[_0x5ace75(0xb8)]();if(_0x151e61)return _0x151e61;throw CliErrors['validation'](_0x5ace75(0xa2)+_0x20b291,_0x5ace75(0x97)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x20b291+_0x5ace75(0x9e)+PRODUCT_CONFIG[_0x5ace75(0x8f)]+'.');}function a123_0x3a5d(){const _0x304ac5=['runtimeDomain','write','name','update','defaultPageSize','../commands/app/remote-source.js','appcode\x20\x22','rawFlags','cancelled','cli-skill','appCode','formatOutput','requiresAuth','../core/api-client.js','execute','env','resolve','app','pretty','49846qzGcuX','service','currentApp','APPCODE','pageSize','1591026PDdEKD','49GmFQua','object','appcode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','newConfigFileName','defaultVerbose','format','460834HAFoQq','confirmHighRisk','High-risk\x20operation\x20`','nativeToolRequired','has','Run\x20`','nonInteractive','ClientAk','requiresAppCode','../core/sdk-client.js','accessKey','catch','.appcode\x20to\x20','validation','1561890TZLWIT','_notice','Unknown\x20app:\x20','map','local-alias','\x20\x20To\x20proceed:\x20','nativeToolAvailable','items','string','692CIQzKK','1310jctXGm','1081395HdraEX','production','verbose','risk','isNonInteractive','error','filter','mergedCli','62LAeAZS','159208unEaLj','50045gYKcDv','\x20or\x20pass\x20','appCodeSource','trim','command','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','includes','doctor','configMissing','ACCESS_KEY','schema'];a123_0x3a5d=function(){return _0x304ac5;};return a123_0x3a5d();}async function assertSelectedAppNameIsRuntimeAccessible(_0x19f024,_0x6cc954){const _0x172a79=a123_0x44dc;if(_0x19f024[_0x172a79(0x9a)]===![]||!_0x6cc954[_0x172a79(0x9c)])return;const _0x3ab47c=(typeof _0x6cc954[_0x172a79(0x79)][_0x172a79(0x83)]===_0x172a79(0xa8)&&_0x6cc954[_0x172a79(0x79)][_0x172a79(0x83)][_0x172a79(0xb8)]()?_0x6cc954[_0x172a79(0x79)][_0x172a79(0x83)]:_0x6cc954[_0x172a79(0xb2)]?.[_0x172a79(0x87)]??_0x6cc954[_0x172a79(0xb2)]?.['defaultApp'])?.[_0x172a79(0xb8)]();if(!_0x3ab47c)return;const {getRemoteAppList:_0x263507}=await import(_0x172a79(0x77)),_0x1851f0=await _0x263507({'env':_0x6cc954[_0x172a79(0x81)]??'production','accessKey':_0x6cc954['accessKey']}),_0x41d499=findAppByName(_0x1851f0[_0x172a79(0xa7)],_0x3ab47c);if(_0x41d499&&!isRuntimeAccessibleApp(_0x41d499))throw runtimeInaccessibleAppError(_0x41d499,'\x22'+_0x3ab47c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xd7c417,_0x8d36c5,_0x13c5ac){const _0x55d1b7=a123_0x44dc;if(_0xd7c417[_0x55d1b7(0x9a)]===![]||!_0x8d36c5[_0x55d1b7(0x9c)])return;const {getRemoteAppList:_0x3e43ef}=await import('../commands/app/remote-source.js'),_0x24063f=await _0x3e43ef({'env':_0x8d36c5[_0x55d1b7(0x81)]??_0x55d1b7(0xac),'accessKey':_0x8d36c5[_0x55d1b7(0x9c)]}),_0x28fdc7=findAppByCode(_0x24063f[_0x55d1b7(0xa7)],_0x13c5ac);if(_0x28fdc7&&!isRuntimeAccessibleApp(_0x28fdc7))throw runtimeInaccessibleAppError(_0x28fdc7,_0x55d1b7(0x78)+_0x13c5ac+'\x22');}export async function runCommand(_0x2cf0f9,_0x203e48,_0x22bbf3=terminalRunnerAdapter){const _0x1ef6e3=a123_0x44dc;assertKnownCommandFlags(_0x2cf0f9,_0x203e48[_0x1ef6e3(0x79)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2cf0f9)?withVersionPolicy(_0x2cf0f9):_0x2cf0f9,_0x203e48,_0x22bbf3);}function shouldApplyVersionPolicy(_0x529979){const _0x498f94=a123_0x44dc;if([_0x498f94(0x75),_0x498f94(0xbf),_0x498f94(0xbc)][_0x498f94(0xbb)](_0x529979[_0x498f94(0x86)]))return![];return!(_0x529979[_0x498f94(0x86)]===_0x498f94(0x7b)&&_0x529979[_0x498f94(0xb9)]==='install');}function withVersionPolicy(_0x4a1510){return{..._0x4a1510,async 'execute'(_0x55c639){const _0x1e0cc4=a123_0x44dc,_0x2b9637=await checkCliVersion();assertCliVersionSupported(_0x2b9637);const _0x7253a2=shouldResolveUpdateNotice(_0x55c639)?resolveLatestUpdateNotice(_0x2b9637)[_0x1e0cc4(0x9d)](()=>null):Promise[_0x1e0cc4(0x82)](null),_0x2f3c66=await _0x4a1510[_0x1e0cc4(0x80)](_0x55c639);return attachUpdateNotice(_0x2f3c66,await _0x7253a2);}};}function shouldResolveUpdateNotice(_0x16b3b1){const _0x239854=a123_0x44dc;return _0x16b3b1[_0x239854(0x91)]===_0x239854(0x84)&&!_0x16b3b1[_0x239854(0x98)];}function attachUpdateNotice(_0x35d03c,_0xf7b625){const _0x4c11d7=a123_0x44dc;if(!_0xf7b625||!_0x35d03c||typeof _0x35d03c!==_0x4c11d7(0x8c))return _0x35d03c;const _0x5d5c0b=_0x35d03c,_0x468b12=typeof _0x5d5c0b[_0x4c11d7(0xa1)]===_0x4c11d7(0x8c)&&_0x5d5c0b[_0x4c11d7(0xa1)]!==null?_0x5d5c0b[_0x4c11d7(0xa1)]:{};return{..._0x5d5c0b,'_notice':{..._0x468b12,'update':_0xf7b625}};}
|
|
1
|
+
(function(_0x4cafd2,_0x189338){const _0x112c6d=a123_0x6457,_0x30e302=_0x4cafd2();while(!![]){try{const _0x38d3b2=-parseInt(_0x112c6d(0x19e))/0x1*(-parseInt(_0x112c6d(0x1bd))/0x2)+parseInt(_0x112c6d(0x1c7))/0x3*(parseInt(_0x112c6d(0x1d2))/0x4)+parseInt(_0x112c6d(0x1cd))/0x5+parseInt(_0x112c6d(0x1ba))/0x6+parseInt(_0x112c6d(0x1a3))/0x7*(parseInt(_0x112c6d(0x1d3))/0x8)+parseInt(_0x112c6d(0x1c3))/0x9*(-parseInt(_0x112c6d(0x1c6))/0xa)+parseInt(_0x112c6d(0x1ca))/0xb;if(_0x38d3b2===_0x189338)break;else _0x30e302['push'](_0x30e302['shift']());}catch(_0x3be840){_0x30e302['push'](_0x30e302['shift']());}}}(a123_0x1528,0x47460));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';export function resolveAuthMode(_0x3756fd){const _0x4ab1aa=a123_0x6457;return void _0x3756fd,AUTH_MODE[_0x4ab1aa(0x1b3)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x3e9c00,_0x515c96){const _0x2bd438=a123_0x6457,_0x3806c1=typeof _0x515c96['app']===_0x2bd438(0x1cc)&&_0x515c96['app'][_0x2bd438(0x1b6)]();return{'rawFlags':_0x515c96,'appCode':_0x3e9c00['appCode']||productEnv(_0x2bd438(0x1a5))||(_0x3806c1?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3e9c00['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x515c96),'defaultFormat':_0x3e9c00[_0x2bd438(0x1d7)],'defaultPageSize':_0x3e9c00[_0x2bd438(0x1e1)],'defaultVerbose':_0x3e9c00[_0x2bd438(0x1d9)],'riskLevel':_0x3e9c00[_0x2bd438(0x1d5)],'nativeToolAvailable':_0x3e9c00[_0x2bd438(0x1e0)],'accessKey':_0x3e9c00['accessKey'],'env':_0x3e9c00[_0x2bd438(0x1c5)],'mergedCli':{'defaultApp':_0x3e9c00['defaultApp'],'currentApp':_0x3e9c00[_0x2bd438(0x1a7)],'appCode':_0x3e9c00[_0x2bd438(0x1e7)]}};}export function createLovrabetRunnerAdapter(_0x5ec32b={}){const _0x4412bc=a123_0x6457,_0x2b969f={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4412bc(0x1aa)](_0x3e3cb8=>PIPELINE_FLAG_NAMES[_0x4412bc(0x1a1)](_0x3e3cb8[_0x4412bc(0x1e6)]))[_0x4412bc(0x1b0)](({name:_0x349af9,type:_0x1d2652,description:_0x43e16a})=>({'name':_0x349af9,'type':_0x1d2652,'description':_0x43e16a})),'formatOutput':_0x5ec32b[_0x4412bc(0x1e5)]??formatOutput,'getCommandLabel'(_0x2a1503){const _0x202091=_0x4412bc;return CLI_BIN_NAME+'\x20'+_0x2a1503[_0x202091(0x1ae)]+'\x20'+_0x2a1503[_0x202091(0x1e4)];},'riskPolicy':{'onViolation'(_0x50334c,{def:_0x29b7cc,env:_0x39b573}){const _0xb3bd8a=_0x4412bc;if(shouldRouteWriteToNativeTool(_0x29b7cc,_0x39b573))return;console[_0xb3bd8a(0x1da)](_0x50334c);},'createError'(_0x4fd76a,{def:_0x44af89,env:_0x2ea0c5}){const _0x2218b1=_0x4412bc;if(shouldRouteWriteToNativeTool(_0x44af89,_0x2ea0c5))return CliErrors[_0x2218b1(0x1af)](CLI_BIN_NAME+'\x20'+_0x44af89[_0x2218b1(0x1ae)]+'\x20'+_0x44af89[_0x2218b1(0x1e4)]);return CliErrors[_0x2218b1(0x1bf)](_0x4fd76a);}},async 'prepare'(_0x523aca,_0x2484c3){const _0x1c97cd=_0x4412bc,_0x282797=resolveAuthMode(_0x2484c3);if(_0x523aca[_0x1c97cd(0x1cb)]!==![]){if(!_0x2484c3[_0x1c97cd(0x1bb)])throw CliErrors['authRequired'](_0x1c97cd(0x1dd)+PRODUCT_CONFIG[_0x1c97cd(0x1ac)]+_0x1c97cd(0x1a8)+productEnvName(_0x1c97cd(0x1a2))+'.');const {setActiveAK:_0x49cd2b}=await import('../core/api-client.js');_0x49cd2b(_0x2484c3[_0x1c97cd(0x1bb)]);}let _0x3da829='';if(_0x523aca[_0x1c97cd(0x19d)]!==![]){_0x3da829=_0x2484c3[_0x1c97cd(0x1e7)]??'',_0x3da829=await resolveExplicitAppName(_0x523aca,_0x2484c3,_0x3da829);if(!_0x3da829){await assertSelectedAppNameIsRuntimeAccessible(_0x523aca,_0x2484c3);throw CliErrors['configMissing'](_0x1c97cd(0x1b8)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x523aca,_0x2484c3,_0x3da829);}if(_0x3da829){const {initSdkClient:_0x14676c}=await import(_0x1c97cd(0x1a9));_0x14676c({'appCode':_0x3da829,'env':_0x2484c3[_0x1c97cd(0x1c5)]??_0x1c97cd(0x1ab),'runtimeDomain':_0x2484c3[_0x1c97cd(0x1b1)],'accessKey':_0x2484c3[_0x1c97cd(0x1bb)],'authMode':_0x282797}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2484c3[_0x1c97cd(0x1df)]},'numbers':{'pagesize':_0x2484c3[_0x1c97cd(0x1e3)]}},'extras':{'appCode':_0x3da829,'cookie':'','apiDomain':_0x2484c3[_0x1c97cd(0x1c4)],'apiDir':'','accessKey':_0x2484c3[_0x1c97cd(0x1bb)],'envName':_0x2484c3[_0x1c97cd(0x1c5)],'mergedCli':_0x2484c3[_0x1c97cd(0x1c8)]}};},'confirmHighRisk':_0x5ec32b[_0x4412bc(0x1c2)]??(async({def:_0x2a970a,env:_0x2c6444,flags:_0x329e64,commandLabel:_0x59d66e})=>{const _0x56123b=_0x4412bc;if(_0x2c6444['isNonInteractive']){const _0x1fb72e=reconstructCommandArgv(_0x2a970a,_0x329e64);throw CliErrors[_0x56123b(0x1d0)](_0x56123b(0x1de)+_0x59d66e+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x56123b(0x1e2)+_0x1fb72e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2a970a,_0x59d66e,_0x329e64),'createCancelledError':_0x4c4591=>CliErrors[_0x56123b(0x1bf)](_0x4c4591)});}),'mapDryRunError'(_0x231a4a){return mapUserFacingExecuteError(_0x231a4a);},'mapExecuteError'(_0x438950){return mapUserFacingExecuteError(_0x438950);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x2b969f;}function shouldRouteWriteToNativeTool(_0x173753,_0x10da9b){const _0x30b26e=a123_0x6457;return _0x10da9b[_0x30b26e(0x1e0)]===!![]&&(_0x173753[_0x30b26e(0x1d4)]===_0x30b26e(0x1a0)||_0x173753[_0x30b26e(0x1d4)]===_0x30b26e(0x1b9));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x24c7b5=a123_0x6457;try{if(sdkClientInitialized){const {clearSdkClient:_0x226aef}=await import(_0x24c7b5(0x1a9));_0x226aef();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x264fe8}=await import('../core/api-client.js');_0x264fe8();}}async function resolveExplicitAppName(_0x50e03e,_0x5b5f41,_0x4bcfe2){const _0x4fb7f3=a123_0x6457;if(_0x50e03e['requiresAppCode']===![])return _0x4bcfe2;const _0x3a6ee5=typeof _0x5b5f41['rawFlags']['app']==='string'?_0x5b5f41[_0x4fb7f3(0x1db)][_0x4fb7f3(0x1c0)][_0x4fb7f3(0x1b6)]():'';if(!_0x3a6ee5)return _0x4bcfe2;const _0x1cb985=typeof _0x5b5f41[_0x4fb7f3(0x1db)][_0x4fb7f3(0x1be)]===_0x4fb7f3(0x1cc)&&_0x5b5f41[_0x4fb7f3(0x1db)][_0x4fb7f3(0x1be)][_0x4fb7f3(0x1b6)]()||productEnv(_0x4fb7f3(0x1a5));if(_0x1cb985||_0x5b5f41[_0x4fb7f3(0x1a6)]===_0x4fb7f3(0x1b4))return _0x4bcfe2;const {getRemoteAppList:_0x571dc5}=await import(_0x4fb7f3(0x1c9)),_0x1d464b=await _0x571dc5({'env':_0x5b5f41[_0x4fb7f3(0x1c5)]??_0x4fb7f3(0x1ab),'accessKey':_0x5b5f41['accessKey']}),_0xb63a1a=findAppByName(_0x1d464b[_0x4fb7f3(0x1b2)],_0x3a6ee5);if(_0xb63a1a&&!isRuntimeAccessibleApp(_0xb63a1a))throw runtimeInaccessibleAppError(_0xb63a1a,'\x22'+_0x3a6ee5+'\x22');const _0x1f7ef9=_0xb63a1a?.[_0x4fb7f3(0x1e7)]?.['trim']();if(_0x1f7ef9)return _0x1f7ef9;throw CliErrors['validation'](_0x4fb7f3(0x19f)+_0x3a6ee5,_0x4fb7f3(0x1b5)+CLI_BIN_NAME+_0x4fb7f3(0x1d6)+_0x3a6ee5+_0x4fb7f3(0x1ad)+PRODUCT_CONFIG[_0x4fb7f3(0x1ac)]+'.');}function a123_0x1528(){const _0x1dcd92=['32pAlmCZ','risk','riskLevel','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','format','object','verbose','error','rawFlags','defaultApp','Set\x20accessKey\x20in\x20','High-risk\x20operation\x20`','defaultVerbose','nativeToolAvailable','pageSize','\x20\x20To\x20proceed:\x20','defaultPageSize','command','formatOutput','name','appCode','appcode\x20\x22','requiresAppCode','1OkXLWy','Unknown\x20app:\x20','write','has','ACCESS_KEY','434742LvdBlf','catch','APPCODE','appCodeSource','currentApp','\x20or\x20pass\x20','../core/sdk-client.js','filter','production','newConfigFileName','.appcode\x20to\x20','service','nativeToolRequired','map','runtimeDomain','items','ClientAk','local-alias','Run\x20`','trim','pretty','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','high-risk-write','240192LVXPDM','accessKey','schema','180874sHTIiI','appcode','cancelled','app','_notice','confirmHighRisk','248256pcOzza','apiDomain','env','170TyCDUt','373173jJZkWv','mergedCli','../commands/app/remote-source.js','1848297LxSCJT','requiresAuth','string','447765pkMxak','execute','doctor','validation','nonInteractive','4ymSioa'];a123_0x1528=function(){return _0x1dcd92;};return a123_0x1528();}async function assertSelectedAppNameIsRuntimeAccessible(_0x2bd65d,_0x1598c7){const _0x43272e=a123_0x6457;if(_0x2bd65d[_0x43272e(0x19d)]===![]||!_0x1598c7['accessKey'])return;const _0x43797e=(typeof _0x1598c7[_0x43272e(0x1db)][_0x43272e(0x1c0)]===_0x43272e(0x1cc)&&_0x1598c7['rawFlags'][_0x43272e(0x1c0)][_0x43272e(0x1b6)]()?_0x1598c7[_0x43272e(0x1db)]['app']:_0x1598c7[_0x43272e(0x1c8)]?.['currentApp']??_0x1598c7[_0x43272e(0x1c8)]?.[_0x43272e(0x1dc)])?.[_0x43272e(0x1b6)]();if(!_0x43797e)return;const {getRemoteAppList:_0x361809}=await import(_0x43272e(0x1c9)),_0x5b6520=await _0x361809({'env':_0x1598c7[_0x43272e(0x1c5)]??_0x43272e(0x1ab),'accessKey':_0x1598c7[_0x43272e(0x1bb)]}),_0x15b60f=findAppByName(_0x5b6520[_0x43272e(0x1b2)],_0x43797e);if(_0x15b60f&&!isRuntimeAccessibleApp(_0x15b60f))throw runtimeInaccessibleAppError(_0x15b60f,'\x22'+_0x43797e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x7da2cf,_0x1f612c,_0xc69c1b){const _0x971ed3=a123_0x6457;if(_0x7da2cf[_0x971ed3(0x19d)]===![]||!_0x1f612c['accessKey'])return;const {getRemoteAppList:_0x56a252}=await import(_0x971ed3(0x1c9)),_0x329d04=await _0x56a252({'env':_0x1f612c[_0x971ed3(0x1c5)]??_0x971ed3(0x1ab),'accessKey':_0x1f612c['accessKey']}),_0x261186=findAppByCode(_0x329d04['items'],_0xc69c1b);if(_0x261186&&!isRuntimeAccessibleApp(_0x261186))throw runtimeInaccessibleAppError(_0x261186,_0x971ed3(0x1e8)+_0xc69c1b+'\x22');}export async function runCommand(_0x2da8ab,_0x1fe0b1,_0x21637b=terminalRunnerAdapter){const _0x155a7e=a123_0x6457;assertKnownCommandFlags(_0x2da8ab,_0x1fe0b1[_0x155a7e(0x1db)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2da8ab)?withVersionPolicy(_0x2da8ab):_0x2da8ab,_0x1fe0b1,_0x21637b);}function a123_0x6457(_0x39f7cb,_0x1403e0){_0x39f7cb=_0x39f7cb-0x19d;const _0x152898=a123_0x1528();let _0x64574a=_0x152898[_0x39f7cb];return _0x64574a;}function shouldApplyVersionPolicy(_0x1e57a5){const _0x585466=a123_0x6457;if(['update',_0x585466(0x1bc),_0x585466(0x1cf)]['includes'](_0x1e57a5[_0x585466(0x1ae)]))return![];return!(_0x1e57a5[_0x585466(0x1ae)]==='cli-skill'&&_0x1e57a5[_0x585466(0x1e4)]==='install');}function withVersionPolicy(_0x450e83){return{..._0x450e83,async 'execute'(_0x42b48e){const _0x122a13=a123_0x6457,_0x17dcd6=await checkCliVersion();assertCliVersionSupported(_0x17dcd6);const _0x2e5dc0=shouldResolveUpdateNotice(_0x42b48e)?resolveLatestUpdateNotice(_0x17dcd6)[_0x122a13(0x1a4)](()=>null):Promise['resolve'](null),_0x46d33a=await _0x450e83[_0x122a13(0x1ce)](_0x42b48e);return attachUpdateNotice(_0x46d33a,await _0x2e5dc0);}};}function shouldResolveUpdateNotice(_0x2c07d7){const _0x434b78=a123_0x6457;return _0x2c07d7[_0x434b78(0x1d7)]===_0x434b78(0x1b7)&&!_0x2c07d7[_0x434b78(0x1d1)];}function attachUpdateNotice(_0x1220ff,_0xb34867){const _0x48bd8f=a123_0x6457;if(!_0xb34867||!_0x1220ff||typeof _0x1220ff!==_0x48bd8f(0x1d8))return _0x1220ff;const _0x500dca=_0x1220ff,_0x4eda09=typeof _0x500dca['_notice']===_0x48bd8f(0x1d8)&&_0x500dca[_0x48bd8f(0x1c1)]!==null?_0x500dca[_0x48bd8f(0x1c1)]:{};return{..._0x500dca,'_notice':{..._0x4eda09,'update':_0xb34867}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x191627,_0x37d66b){const _0x4a402e=a124_0x3903,_0xadb905=_0x191627();while(!![]){try{const _0xa3e80d=-parseInt(_0x4a402e(0x190))/0x1*(-parseInt(_0x4a402e(0x195))/0x2)+-parseInt(_0x4a402e(0x18f))/0x3*(-parseInt(_0x4a402e(0x191))/0x4)+-parseInt(_0x4a402e(0x1a2))/0x5*(-parseInt(_0x4a402e(0x1a0))/0x6)+parseInt(_0x4a402e(0x19b))/0x7*(-parseInt(_0x4a402e(0x192))/0x8)+-parseInt(_0x4a402e(0x19e))/0x9+-parseInt(_0x4a402e(0x199))/0xa*(parseInt(_0x4a402e(0x19c))/0xb)+parseInt(_0x4a402e(0x19a))/0xc*(parseInt(_0x4a402e(0x1a3))/0xd);if(_0xa3e80d===_0x37d66b)break;else _0xadb905['push'](_0xadb905['shift']());}catch(_0x5cf79a){_0xadb905['push'](_0xadb905['shift']());}}}(a124_0x4f1d,0xadba0));import{buildSchemaPayload as a124_0x328212}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a124_0x3903(_0x200635,_0x58e56c){_0x200635=_0x200635-0x18f;const _0x4f1d23=a124_0x4f1d();let _0x3903ca=_0x4f1d23[_0x200635];return _0x3903ca;}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';function a124_0x4f1d(){const _0x56a47f=['12FmskYp','434595fAQEIp','2662faMucZ','requiresAuth','3971196SHRpQr','../commands/registry.js','3090246HXsFaQ','none','5tLuugX','6473818OMOsuJ','required','149271MDAcZJ','11tLbycq','52EjMVEd','48jmXbZm','services','map','117704YKFkUd','commands','auth','service','32310dycWUe'];a124_0x4f1d=function(){return _0x56a47f;};return a124_0x4f1d();}export async function buildSchemaPayload(){const _0x425ab5=a124_0x3903,{serviceRegistry:_0x13a717,findDefinition:_0x19bc8f}=await import(_0x425ab5(0x19f)),_0x44fcd2=new Set(_0x13a717[_0x425ab5(0x194)](_0x37c700=>_0x37c700[_0x425ab5(0x198)])),_0x555c0d=listDynamicServiceEntries()['filter'](_0x533aaf=>!_0x44fcd2['has'](_0x533aaf[_0x425ab5(0x198)])),_0x23ceb0=a124_0x328212({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x13a717,_0x555c0d),'buildAllFlags':buildAllFlags,'findDefinition':(_0x5f0f48,_0x1c45a1)=>_0x19bc8f(_0x5f0f48,_0x1c45a1)??findDynamicServiceDefinition(_0x5f0f48,_0x1c45a1)});return normalizeSchemaPayload(_0x23ceb0);}function normalizeSchemaPayload(_0x61fed5){const _0x1732c2=a124_0x3903;return{..._0x61fed5,'schemaVersion':0x2,'services':_0x61fed5[_0x1732c2(0x193)][_0x1732c2(0x194)](_0x1c74c1=>({..._0x1c74c1,'commands':_0x1c74c1[_0x1732c2(0x196)][_0x1732c2(0x194)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3040f7){const _0x2c8d53=a124_0x3903,_0x1319fb=_0x3040f7;return{..._0x3040f7,'auth':_0x1319fb[_0x2c8d53(0x197)]??(_0x3040f7[_0x2c8d53(0x19d)]?_0x2c8d53(0x1a4):_0x2c8d53(0x1a1))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c39a7,_0x6f1958){const _0x638b6b=a125_0x54cd,_0x153370=_0x4c39a7();while(!![]){try{const _0x5cebb4=parseInt(_0x638b6b(0x148))/0x1*(parseInt(_0x638b6b(0x14a))/0x2)+parseInt(_0x638b6b(0x145))/0x3+parseInt(_0x638b6b(0x14d))/0x4+-parseInt(_0x638b6b(0x144))/0x5*(-parseInt(_0x638b6b(0x149))/0x6)+parseInt(_0x638b6b(0x14b))/0x7+-parseInt(_0x638b6b(0x14c))/0x8+parseInt(_0x638b6b(0x14e))/0x9*(-parseInt(_0x638b6b(0x146))/0xa);if(_0x5cebb4===_0x6f1958)break;else _0x153370['push'](_0x153370['shift']());}catch(_0x59b23a){_0x153370['push'](_0x153370['shift']());}}}(a125_0xe023,0x65967));export function insertDynamicServicesAfterServiceTree(_0x437721,_0x27b341){const _0x33db70=a125_0x54cd;if(_0x27b341[_0x33db70(0x143)]===0x0)return[..._0x437721];const _0xc6085a=_0x437721[_0x33db70(0x14f)](_0x111b37=>_0x111b37[_0x33db70(0x147)]==='service');if(_0xc6085a<0x0)return[..._0x437721,..._0x27b341];return[..._0x437721['slice'](0x0,_0xc6085a+0x1),..._0x27b341,..._0x437721['slice'](_0xc6085a+0x1)];}function a125_0x54cd(_0x58a685,_0x3e0f14){_0x58a685=_0x58a685-0x143;const _0xe023d8=a125_0xe023();let _0x54cd54=_0xe023d8[_0x58a685];return _0x54cd54;}function a125_0xe023(){const _0x37de86=['service','84182shTmLc','642gqdkuQ','14BmmzSn','26159SDHtDi','4001440XikzwA','1441164iWVWXU','9pdXKCS','findIndex','length','95JQRrpM','2145657rPvHjH','7542710vmHCWj'];a125_0xe023=function(){return _0x37de86;};return a125_0xe023();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x349668,_0x34cb9c){var _0x63b04d=a126_0x5d4b,_0x554007=_0x349668();while(!![]){try{var _0x5df1f3=parseInt(_0x63b04d(0x114))/0x1*(-parseInt(_0x63b04d(0x112))/0x2)+parseInt(_0x63b04d(0x10b))/0x3+parseInt(_0x63b04d(0x111))/0x4+parseInt(_0x63b04d(0x110))/0x5*(-parseInt(_0x63b04d(0x10c))/0x6)+-parseInt(_0x63b04d(0x10d))/0x7+parseInt(_0x63b04d(0x10f))/0x8*(-parseInt(_0x63b04d(0x113))/0x9)+parseInt(_0x63b04d(0x10e))/0xa;if(_0x5df1f3===_0x34cb9c)break;else _0x554007['push'](_0x554007['shift']());}catch(_0xec6662){_0x554007['push'](_0x554007['shift']());}}}(a126_0x5b41,0xb9192));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a126_0x5d4b(_0x1ec999,_0x137446){_0x1ec999=_0x1ec999-0x10b;var _0x5b4119=a126_0x5b41();var _0x5d4b80=_0x5b4119[_0x1ec999];return _0x5d4b80;}function a126_0x5b41(){var _0x56c4c2=['1865883MJFCPh','1349232qQJyQw','5325579lyKltl','9939380QOfvXQ','4510200KwpOgU','10LIHhTL','5878328eCFhmN','2SagKpf','9jImRFu','553003lGgGTr'];a126_0x5b41=function(){return _0x56c4c2;};return a126_0x5b41();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.5
|
|
2
|
-
export declare const GIT_TAG = "v2.3.5
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.3.5";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.5";
|
|
3
|
+
export declare const GIT_COMMIT = "60ae1cf";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-16T06:30:06.935Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a127_0x3cee78=a127_0x5aa8;function a127_0x2f0b(){const _0x4387b6=['2.3.5','11iZVGUO','2382570JJVjFk','2008rVDfFG','417370WgzLeY','v2.3.5','60ae1cf','81534guRgro','686326VBvknM','2139991JhpbTh','1899PytMmV','2745648zzshXo','2026-10-16T06:30:06.935Z','1vAVOmH','125isGApK'];a127_0x2f0b=function(){return _0x4387b6;};return a127_0x2f0b();}function a127_0x5aa8(_0x9f1aa2,_0x174b58){_0x9f1aa2=_0x9f1aa2-0x1d9;const _0x2f0ba5=a127_0x2f0b();let _0x5aa8b7=_0x2f0ba5[_0x9f1aa2];return _0x5aa8b7;}(function(_0xae7404,_0x5a71c7){const _0x1b51d0=a127_0x5aa8,_0x540ea1=_0xae7404();while(!![]){try{const _0xc5b8f0=-parseInt(_0x1b51d0(0x1e7))/0x1*(-parseInt(_0x1b51d0(0x1e2))/0x2)+-parseInt(_0x1b51d0(0x1e4))/0x3*(parseInt(_0x1b51d0(0x1dd))/0x4)+parseInt(_0x1b51d0(0x1d9))/0x5*(parseInt(_0x1b51d0(0x1e1))/0x6)+-parseInt(_0x1b51d0(0x1e3))/0x7+parseInt(_0x1b51d0(0x1e5))/0x8+-parseInt(_0x1b51d0(0x1dc))/0x9+-parseInt(_0x1b51d0(0x1de))/0xa*(-parseInt(_0x1b51d0(0x1db))/0xb);if(_0xc5b8f0===_0x5a71c7)break;else _0x540ea1['push'](_0x540ea1['shift']());}catch(_0x200ab3){_0x540ea1['push'](_0x540ea1['shift']());}}}(a127_0x2f0b,0x2bda6));export const VERSION=a127_0x3cee78(0x1da);export const GIT_TAG=a127_0x3cee78(0x1df);export const GIT_COMMIT=a127_0x3cee78(0x1e0);export const BUILD_TIME=a127_0x3cee78(0x1e6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a128_0x1a02(_0x3104d0,_0x17714f){_0x3104d0=_0x3104d0-0x109;const _0x5f2719=a128_0x5f27();let _0x1a02ea=_0x5f2719[_0x3104d0];return _0x1a02ea;}const a128_0x1aec4e=a128_0x1a02;(function(_0x26b062,_0x58ffd7){const _0x128976=a128_0x1a02,_0x28d586=_0x26b062();while(!![]){try{const _0x495ae9=parseInt(_0x128976(0x120))/0x1*(parseInt(_0x128976(0x123))/0x2)+parseInt(_0x128976(0x114))/0x3*(-parseInt(_0x128976(0x117))/0x4)+-parseInt(_0x128976(0x11b))/0x5*(-parseInt(_0x128976(0x11c))/0x6)+parseInt(_0x128976(0x112))/0x7+-parseInt(_0x128976(0x125))/0x8+parseInt(_0x128976(0x10f))/0x9+-parseInt(_0x128976(0x111))/0xa*(parseInt(_0x128976(0x10c))/0xb);if(_0x495ae9===_0x58ffd7)break;else _0x28d586['push'](_0x28d586['shift']());}catch(_0x24678f){_0x28d586['push'](_0x28d586['shift']());}}}(a128_0x5f27,0x34eaa));export const ROUTING_CATALOG_DIGEST=a128_0x1aec4e(0x10a);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a128_0x1aec4e(0x122)];function a128_0x5f27(){const _0x60c3e1=['https://user-daily.lovrabet.ai','380886Qnbqhs','indonesia','https://skills-daily.lovrabet.ai','568377RZUxxP','https://skills-daily.lovrabet.com','50SSghxN','2481101eBljJL','Global','3qnFRlM','china','https://runtime.lovrabet.com','1368352dVbHgn','https://kb-service.lovrabet.com','https://user.lovrabet.ai','https://daily-api.lovrabet.com','2715olETNp','4206ppnscX','https://user-daily.lovrabet.com','https://skills.lovrabet.id','https://user.lovrabet.id','16249hXlRoT','https://kb-service.lovrabet.id','global','30JODRAE','Mainland\x20China','2480080fVqHKo','https://api.lovrabet.ai','https://api.lovrabet.com','https://skills.lovrabet.ai','https://daily-runtime.lovrabet.ai','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579'];a128_0x5f27=function(){return _0x60c3e1;};return a128_0x5f27();}export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a128_0x1aec4e(0x124),'aliases':[a128_0x1aec4e(0x115)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a128_0x1aec4e(0x127),'runtime':a128_0x1aec4e(0x116),'skill':'https://skills.lovrabet.com','kbService':a128_0x1aec4e(0x118)},'daily':{'user':a128_0x1aec4e(0x11d),'api':a128_0x1aec4e(0x11a),'runtime':'https://daily-runtime.lovrabet.com','skill':a128_0x1aec4e(0x110),'kbService':'https://kb-service-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a128_0x1aec4e(0x10d)],'serviceDomains':{'production':{'user':a128_0x1aec4e(0x11f),'api':'https://api.lovrabet.id','runtime':'https://runtime.lovrabet.id','skill':a128_0x1aec4e(0x11e),'kbService':a128_0x1aec4e(0x121)}}},'global':{'enabled':!![],'label':a128_0x1aec4e(0x113),'aliases':[],'serviceDomains':{'production':{'user':a128_0x1aec4e(0x119),'api':a128_0x1aec4e(0x126),'runtime':'https://runtime.lovrabet.ai','skill':a128_0x1aec4e(0x128)},'daily':{'user':a128_0x1aec4e(0x10b),'api':'https://daily-api.lovrabet.ai','runtime':a128_0x1aec4e(0x109),'skill':a128_0x1aec4e(0x10e)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a129_0x19b206=a129_0x1fb3;(function(_0x53d2b4,_0x5307a5){const _0x55c5ed=a129_0x1fb3,_0x455c42=_0x53d2b4();while(!![]){try{const _0x13632e=parseInt(_0x55c5ed(0xdd))/0x1*(-parseInt(_0x55c5ed(0xdc))/0x2)+-parseInt(_0x55c5ed(0xe7))/0x3+parseInt(_0x55c5ed(0xe3))/0x4*(parseInt(_0x55c5ed(0xde))/0x5)+parseInt(_0x55c5ed(0xda))/0x6*(-parseInt(_0x55c5ed(0xe5))/0x7)+parseInt(_0x55c5ed(0xe1))/0x8*(parseInt(_0x55c5ed(0xe9))/0x9)+-parseInt(_0x55c5ed(0xea))/0xa+parseInt(_0x55c5ed(0xe0))/0xb;if(_0x13632e===_0x5307a5)break;else _0x455c42['push'](_0x455c42['shift']());}catch(_0x19e31d){_0x455c42['push'](_0x455c42['shift']());}}}(a129_0x215a,0xeeb2e));function a129_0x215a(){const _0x1924c3=['2840KIbmMQ','skillDomain','45169828fASxmL','928ovwQkS','enterprise','4656xPHMLI','userDomain','35rvYIBT','kbServiceDomain','1327824WmxmdP','runtimeDomain','20403CmdYXs','18305870DYwvxb','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','lovrabet-routing/v1','1581906YKrWhx','apiDomain','27136ZKfKsY','34pXZTeX'];a129_0x215a=function(){return _0x1924c3;};return a129_0x215a();}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a129_0x19b206(0xd8);export const ENTERPRISE_ROUTING_PROTOCOL=a129_0x19b206(0xd9);export const ENTERPRISE_ROUTING_KIND=a129_0x19b206(0xe2);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a129_0x19b206(0xdb),a129_0x19b206(0xe8),a129_0x19b206(0xdf),a129_0x19b206(0xe6)];function a129_0x1fb3(_0x2ce1c2,_0x590e11){_0x2ce1c2=_0x2ce1c2-0xd8;const _0x215aa1=a129_0x215a();let _0x1fb3f1=_0x215aa1[_0x2ce1c2];return _0x1fb3f1;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x19b206(0xe4),a129_0x19b206(0xdb),a129_0x19b206(0xe8),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a130_0x527a(_0x2595e4,_0x4b571c){_0x2595e4=_0x2595e4-0x1ee;const _0x193c40=a130_0x193c();let _0x527a83=_0x193c40[_0x2595e4];return _0x527a83;}(function(_0x4e7897,_0x1d1f96){const _0x5c5c80=a130_0x527a,_0x38754e=_0x4e7897();while(!![]){try{const _0x515987=parseInt(_0x5c5c80(0x1ef))/0x1*(parseInt(_0x5c5c80(0x1fd))/0x2)+-parseInt(_0x5c5c80(0x1fc))/0x3*(-parseInt(_0x5c5c80(0x1f2))/0x4)+-parseInt(_0x5c5c80(0x1f1))/0x5+-parseInt(_0x5c5c80(0x1fa))/0x6+-parseInt(_0x5c5c80(0x1f5))/0x7*(-parseInt(_0x5c5c80(0x1f9))/0x8)+-parseInt(_0x5c5c80(0x1fb))/0x9*(-parseInt(_0x5c5c80(0x1ee))/0xa)+-parseInt(_0x5c5c80(0x1f8))/0xb*(parseInt(_0x5c5c80(0x1f6))/0xc);if(_0x515987===_0x1d1f96)break;else _0x38754e['push'](_0x38754e['shift']());}catch(_0x490266){_0x38754e['push'](_0x38754e['shift']());}}}(a130_0x193c,0x98a7f));import{jsx as a130_0x4ab440,jsxs as a130_0x426e76}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a130_0x193c(){const _0x1d5688=['column','8794840WvKCYN','828202MqrIZI','\x20--help','6221090DJATbj','1452IXLXDi','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','77UdevWz','84PEDBBT','green','1738055ptwyeM','148344IoaiRz','453504euxpug','9oULeKe','9417aMLcYS','2reXcIV'];a130_0x193c=function(){return _0x1d5688;};return a130_0x193c();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x5d3670=a130_0x527a,{exit:_0x59a270}=useApp();return useEffect(()=>{_0x59a270();},[_0x59a270]),a130_0x426e76(Box,{'flexDirection':_0x5d3670(0x1fe),'marginTop':0x1,'marginBottom':0x1,'children':[a130_0x4ab440(Box,{'children':a130_0x4ab440(Text,{'bold':!![],'color':_0x5d3670(0x1f7),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a130_0x426e76(Box,{'marginTop':0x1,'children':[a130_0x4ab440(Text,{'dimColor':!![],'children':_0x5d3670(0x1f3)}),a130_0x4ab440(Text,{'bold':!![],'color':_0x5d3670(0x1f7),'children':CLI_BIN_NAME+_0x5d3670(0x1f0)}),a130_0x4ab440(Text,{'dimColor':!![],'children':_0x5d3670(0x1f4)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1eb64e,_0x10c891){const _0x40425f=a131_0x278b,_0x53d415=_0x1eb64e();while(!![]){try{const _0x487254=parseInt(_0x40425f(0xc9))/0x1+-parseInt(_0x40425f(0xd1))/0x2+-parseInt(_0x40425f(0xc7))/0x3+parseInt(_0x40425f(0xc0))/0x4*(parseInt(_0x40425f(0xcd))/0x5)+parseInt(_0x40425f(0xd4))/0x6*(parseInt(_0x40425f(0xc1))/0x7)+parseInt(_0x40425f(0xc3))/0x8+parseInt(_0x40425f(0xc6))/0x9;if(_0x487254===_0x10c891)break;else _0x53d415['push'](_0x53d415['shift']());}catch(_0x57a65e){_0x53d415['push'](_0x53d415['shift']());}}}(a131_0x4bc0,0x606fa));function a131_0x278b(_0x2a3d8f,_0x52bdb1){_0x2a3d8f=_0x2a3d8f-0xc0;const _0x4bc02=a131_0x4bc0();let _0x278b7a=_0x4bc02[_0x2a3d8f];return _0x278b7a;}function a131_0x4bc0(){const _0x2544e7=['code','172158PcLDnZ','FAILED','4hXEXDk','119Kleosj','log','553264mzaoNs','Installation\x20failed','installedPath','504603qNAsVs','1132278Llzrpm','installed','106117ylhird','repairCommand','error','Repair\x20with:\x20','1045745EkHvnF','[BUILTIN_SKILL_INSTALL_','changed','skillVersion','311688yyyNes','Lovrabet\x20Built-in\x20Skill\x20'];a131_0x4bc0=function(){return _0x2544e7;};return a131_0x4bc0();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x16f9cf={}){const _0x124980=a131_0x278b,_0x6e77e2=installBuiltinSkill(_0x16f9cf);if(_0x6e77e2['ok']){const _0xc59012=_0x6e77e2[_0x124980(0xcf)]?_0x124980(0xc8):'already\x20current',_0x540cb9=_0x6e77e2[_0x124980(0xc5)]?'\x20at\x20'+_0x6e77e2['installedPath']:'\x20via\x20skills@latest';return console[_0x124980(0xc2)](_0x124980(0xd2)+_0x6e77e2[_0x124980(0xd0)]+'\x20'+_0xc59012+_0x540cb9),_0x6e77e2;}const _0x5870b0=_0x124980(0xce)+(_0x6e77e2[_0x124980(0xd3)]??_0x124980(0xd5))+']\x20'+(_0x6e77e2[_0x124980(0xcb)]??_0x124980(0xc4))+'.\x20'+(_0x124980(0xcc)+_0x6e77e2[_0x124980(0xca)]);if(_0x6e77e2['code']==='SOURCE_INVALID')throw new Error(_0x5870b0);return console['warn'](_0x5870b0),_0x6e77e2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a2188,_0x34cc36){const _0x1b00d5=a132_0x4724,_0x5c95ba=_0x3a2188();while(!![]){try{const _0x45315a=parseInt(_0x1b00d5(0x108))/0x1*(-parseInt(_0x1b00d5(0x112))/0x2)+parseInt(_0x1b00d5(0x117))/0x3*(parseInt(_0x1b00d5(0x10e))/0x4)+-parseInt(_0x1b00d5(0x116))/0x5*(parseInt(_0x1b00d5(0x119))/0x6)+-parseInt(_0x1b00d5(0x10f))/0x7*(-parseInt(_0x1b00d5(0x118))/0x8)+-parseInt(_0x1b00d5(0x10c))/0x9*(-parseInt(_0x1b00d5(0x10b))/0xa)+parseInt(_0x1b00d5(0x111))/0xb+-parseInt(_0x1b00d5(0x10d))/0xc;if(_0x45315a===_0x34cc36)break;else _0x5c95ba['push'](_0x5c95ba['shift']());}catch(_0x15d9fb){_0x5c95ba['push'](_0x5c95ba['shift']());}}}(a132_0x3968,0xeac19));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xa72b2b,_0x265566,_0x2072f8){const _0x25d512=a132_0x4724,_0x540d86=normalizeText(_0xa72b2b[_0x25d512(0x109)],DESCRIPTION_MAX_LENGTH),_0x47dc13=normalizeText(_0xa72b2b['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x265566,'risk':requireWriteRisk(_0xa72b2b),'description':_0x540d86||_0x47dc13||_0x25d512(0x115),..._0x2072f8?{'signal':_0x2072f8}:{}};}function a132_0x4724(_0x5c23d3,_0x34ec49){_0x5c23d3=_0x5c23d3-0x107;const _0x3968a3=a132_0x3968();let _0x4724dd=_0x3968a3[_0x5c23d3];return _0x4724dd;}function requireWriteRisk(_0x2e4c1e){const _0x61390a=a132_0x4724;if(_0x2e4c1e['risk']===_0x61390a(0x10a)||_0x2e4c1e[_0x61390a(0x11a)]==='high-risk-write')return _0x2e4c1e[_0x61390a(0x11a)];throw new Error(_0x61390a(0x113));}function normalizeText(_0x34e2ca,_0x52f358){const _0x6b9b29=a132_0x4724;if(typeof _0x34e2ca!==_0x6b9b29(0x114))return'';return _0x34e2ca[_0x6b9b29(0x107)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x6b9b29(0x107)](/\s+/g,'\x20')[_0x6b9b29(0x110)]()['slice'](0x0,_0x52f358);}function a132_0x3968(){const _0x1d431f=['9417501BkyEGD','23201952qHrNuF','248bYieXX','6094970BJIgIS','trim','15405797uiVKDY','12aJFkEF','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','string','Run\x20this\x20write\x20operation','79795WBOXrO','10245sObwSI','8gjhIGx','54MMphKZ','risk','replace','81778VthPnm','confirmationDescription','write','10dKIHyM'];a132_0x3968=function(){return _0x1d431f;};return a132_0x3968();}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe032f0,_0x21535c){const _0x41ffd4=a133_0x4370,_0x5adabd=_0xe032f0();while(!![]){try{const _0x473159=parseInt(_0x41ffd4(0x1af))/0x1*(parseInt(_0x41ffd4(0x1b2))/0x2)+parseInt(_0x41ffd4(0x1b8))/0x3+parseInt(_0x41ffd4(0x1b5))/0x4+-parseInt(_0x41ffd4(0x1ad))/0x5+-parseInt(_0x41ffd4(0x1ba))/0x6+-parseInt(_0x41ffd4(0x1bd))/0x7*(-parseInt(_0x41ffd4(0x1b1))/0x8)+-parseInt(_0x41ffd4(0x1be))/0x9*(parseInt(_0x41ffd4(0x1ae))/0xa);if(_0x473159===_0x21535c)break;else _0x5adabd['push'](_0x5adabd['shift']());}catch(_0x4c687f){_0x5adabd['push'](_0x5adabd['shift']());}}}(a133_0x4444,0x84c2d));export function canonicalLovrabetOperation(_0x5e7332){const _0x40ac46=a133_0x4370;return[_0x5e7332[_0x40ac46(0x1b7)],..._0x5e7332['command'][_0x40ac46(0x1bc)]()[_0x40ac46(0x1b4)](/\s+/)][_0x40ac46(0x1b0)](Boolean)[_0x40ac46(0x1b9)]('.');}function a133_0x4370(_0x594cd2,_0x746e4d){_0x594cd2=_0x594cd2-0x1ad;const _0x4444d4=a133_0x4444();let _0x437095=_0x4444d4[_0x594cd2];return _0x437095;}function a133_0x4444(){const _0x9f59e4=['88EYOIvO','41752ptItrT','high-risk-write','split','3632700jriuNN','risk','service','737190cufKja','join','1104858lXlNoj','write','trim','334453UmfYCV','12440718WejrgL','2125780aHYROs','10qRhKdK','41KmLTJz','filter'];a133_0x4444=function(){return _0x9f59e4;};return a133_0x4444();}export function createLovrabetWriteMetadata(_0xac589c,_0x25dd4e,_0x1b539f,_0x51de13){const _0x532c7b=a133_0x4370;if(_0x51de13||_0x1b539f['ok']!==!![]||_0xac589c['risk']!==_0x532c7b(0x1bb)&&_0xac589c[_0x532c7b(0x1b6)]!==_0x532c7b(0x1b3))return undefined;const _0x463db5=_0xac589c['writeEventSubject']?.(_0x1b539f),_0x415c65={'type':'lovrabet.write.completed','operation':_0x25dd4e,'risk':_0xac589c['risk'],..._0x463db5?{'subject':_0x463db5}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x415c65}};}
|