@lovrabet/lovrabet-cli 2.1.16 → 2.1.18-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -0
- 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/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/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/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/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.js +1 -1
- package/lib/help.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/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3eaf85,_0x8649a6){const _0x250da3=a83_0x4022,_0x31a5c6=_0x3eaf85();while(!![]){try{const _0x4bb4b0=parseInt(_0x250da3(0x199))/0x1*(parseInt(_0x250da3(0x1a0))/0x2)+-parseInt(_0x250da3(0x19a))/0x3*(parseInt(_0x250da3(0x192))/0x4)+-parseInt(_0x250da3(0x1a3))/0x5*(-parseInt(_0x250da3(0x196))/0x6)+-parseInt(_0x250da3(0x18f))/0x7*(parseInt(_0x250da3(0x194))/0x8)+parseInt(_0x250da3(0x1a2))/0x9*(parseInt(_0x250da3(0x191))/0xa)+-parseInt(_0x250da3(0x190))/0xb+parseInt(_0x250da3(0x198))/0xc;if(_0x4bb4b0===_0x8649a6)break;else _0x31a5c6['push'](_0x31a5c6['shift']());}catch(_0x2740d6){_0x31a5c6['push'](_0x31a5c6['shift']());}}}(a83_0x1e4d,0xa91c4));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';function a83_0x4022(_0x3c604f,_0x3910ce){_0x3c604f=_0x3c604f-0x18f;const _0x1e4d45=a83_0x1e4d();let _0x402290=_0x1e4d45[_0x3c604f];return _0x402290;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x4c700b=a83_0x4022;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x4c700b(0x19f)+PRODUCT_CONFIG['newConfigFileName']+_0x4c700b(0x19c)});}export function generateCommandHelp(_0x5affe5){const _0x9c05a=a83_0x4022;return createGenerators()[_0x9c05a(0x19b)](_0x5affe5);}export function generateServiceHelp(_0x34c2e7){return createGenerators()['generateServiceHelp'](_0x34c2e7);}export function generateFullHelp(){const _0x41cb09=a83_0x4022;return createGenerators()[_0x41cb09(0x195)]();}function getAnyServiceEntry(_0x47fbca){const _0x51a489=getServiceEntry(_0x47fbca);if(_0x51a489)return _0x51a489;try{return getDynamicServiceEntry(_0x47fbca);}catch{return undefined;}}function getAnyServiceDefinitions(_0x2f8f7f){const _0x4a9872=a83_0x4022,_0x43fc46=serviceGroups[_0x4a9872(0x19d)](_0x2f8f7f);if(_0x43fc46)return _0x43fc46;try{return getDynamicServiceDefinitions(_0x2f8f7f);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x36548b=a83_0x4022,_0x3c6aa6=new Set(serviceRegistry[_0x36548b(0x193)](_0x4cf36f=>_0x4cf36f[_0x36548b(0x19e)]));try{return listDynamicServiceEntries()[_0x36548b(0x197)](_0x5a2cb5=>!_0x3c6aa6[_0x36548b(0x1a1)](_0x5a2cb5[_0x36548b(0x19e)]));}catch{return[];}}function a83_0x1e4d(){const _0x236d8d=['generateFullHelp','6kVyKZF','filter','19789956UKYDWM','632iwRSPy','42mcrbOO','generateCommandHelp','\x20or\x20--appcode).','get','service','Requires\x20appcode\x20(set\x20via\x20','322YZQgBw','has','180CSrkwv','5721635KFiwHJ','21Temdkz','13421793wrqhzZ','310710TxeBKp','360484mLwwZt','map','912344TctdyA'];a83_0x1e4d=function(){return _0x236d8d;};return a83_0x1e4d();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe7e314,_0x319efd){var _0xd60d51=a84_0x1ed7,_0x101f71=_0xe7e314();while(!![]){try{var _0x57c23f=-parseInt(_0xd60d51(0xf4))/0x1+-parseInt(_0xd60d51(0xf5))/0x2+-parseInt(_0xd60d51(0xf3))/0x3*(parseInt(_0xd60d51(0xf0))/0x4)+-parseInt(_0xd60d51(0xf2))/0x5*(-parseInt(_0xd60d51(0xee))/0x6)+parseInt(_0xd60d51(0xec))/0x7*(-parseInt(_0xd60d51(0xed))/0x8)+-parseInt(_0xd60d51(0xf1))/0x9+parseInt(_0xd60d51(0xef))/0xa;if(_0x57c23f===_0x319efd)break;else _0x101f71['push'](_0x101f71['shift']());}catch(_0x471850){_0x101f71['push'](_0x101f71['shift']());}}}(a84_0x345d,0x3c1ee));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a84_0x345d(){var _0x39cea1=['240472EJEvFj','79248GVvBKt','12572810QqLPej','7556PRewlt','1638702HTSBAa','95gkiLNC','447QffBZl','346534lJWcjP','2042AdvwWN','105zUCgoJ'];a84_0x345d=function(){return _0x39cea1;};return a84_0x345d();}function a84_0x1ed7(_0x24a693,_0x2c3d84){_0x24a693=_0x24a693-0xec;var _0x345d3a=a84_0x345d();var _0x1ed7de=_0x345d3a[_0x24a693];return _0x1ed7de;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a85_0x4709(_0x4f931c,_0x39a942){_0x4f931c=_0x4f931c-0x16d;const _0xb8fe9a=a85_0xb8fe();let _0x470968=_0xb8fe9a[_0x4f931c];return _0x470968;}(function(_0x10f660,_0x802df){const _0x36b588=a85_0x4709,_0x2c1141=_0x10f660();while(!![]){try{const _0x26329a=parseInt(_0x36b588(0x17c))/0x1+parseInt(_0x36b588(0x179))/0x2+-parseInt(_0x36b588(0x172))/0x3*(-parseInt(_0x36b588(0x17b))/0x4)+-parseInt(_0x36b588(0x170))/0x5+parseInt(_0x36b588(0x174))/0x6*(-parseInt(_0x36b588(0x177))/0x7)+-parseInt(_0x36b588(0x16d))/0x8+-parseInt(_0x36b588(0x171))/0x9*(-parseInt(_0x36b588(0x17a))/0xa);if(_0x26329a===_0x802df)break;else _0x2c1141['push'](_0x2c1141['shift']());}catch(_0x258e61){_0x2c1141['push'](_0x2c1141['shift']());}}}(a85_0xb8fe,0x24a06));function a85_0xb8fe(){const _0x5ae389=['205424VIQjeJ','message','887928rTZZdH','error','url','1398540kxNZXV','9ctnGDK','1299quwHFt','pretty','6NtuAhu','update','format','1129114HBLJly','_notice','141982CxprQG','1614780vgMvZC','2440cmmmgG'];a85_0xb8fe=function(){return _0x5ae389;};return a85_0xb8fe();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1bf2d1,_0x329964){const _0x39b330=a85_0x4709,_0x1d5365=_0x1bf2d1[_0x39b330(0x178)],{_notice:_0x25e898,..._0x330480}=_0x1bf2d1;void _0x25e898,baseFormatOutput(_0x330480,_0x329964),_0x329964[_0x39b330(0x176)]===_0x39b330(0x173)&&printPrettyNotice(_0x1d5365);}function printPrettyNotice(_0x15dd3a){const _0x2e9f77=a85_0x4709;if(!_0x15dd3a?.[_0x2e9f77(0x175)])return;console[_0x2e9f77(0x16e)](_0x15dd3a[_0x2e9f77(0x175)][_0x2e9f77(0x17d)]+'\x20('+_0x15dd3a[_0x2e9f77(0x175)][_0x2e9f77(0x16f)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27bc05,_0x6922fd){const _0x3ef365=a86_0x65f2,_0x319909=_0x27bc05();while(!![]){try{const _0x5e700e=-parseInt(_0x3ef365(0x1f1))/0x1+-parseInt(_0x3ef365(0x1d9))/0x2*(-parseInt(_0x3ef365(0x203))/0x3)+-parseInt(_0x3ef365(0x1e3))/0x4*(-parseInt(_0x3ef365(0x1df))/0x5)+parseInt(_0x3ef365(0x1dc))/0x6*(-parseInt(_0x3ef365(0x1fe))/0x7)+-parseInt(_0x3ef365(0x1e8))/0x8*(-parseInt(_0x3ef365(0x202))/0x9)+parseInt(_0x3ef365(0x1e0))/0xa*(-parseInt(_0x3ef365(0x1ec))/0xb)+parseInt(_0x3ef365(0x1fb))/0xc*(parseInt(_0x3ef365(0x1da))/0xd);if(_0x5e700e===_0x6922fd)break;else _0x319909['push'](_0x319909['shift']());}catch(_0x52af26){_0x319909['push'](_0x319909['shift']());}}}(a86_0x230e,0xbc274));function toKebab(_0x4ddc70){const _0x5bcf61=a86_0x65f2;return _0x4ddc70[_0x5bcf61(0x1e7)](/_/g,'-')[_0x5bcf61(0x1e7)](/-([A-Z]+)/g,(_0x2bea75,_0x3cf1b0)=>'-'+_0x3cf1b0[_0x5bcf61(0x1eb)]())[_0x5bcf61(0x1e7)](/([a-z0-9])([A-Z])/g,(_0x3b7b25,_0x303b4f,_0x416127)=>_0x303b4f+'-'+_0x416127)[_0x5bcf61(0x1eb)]();}function buildKnownFlags(_0x4e60be){const _0x4c4116=a86_0x65f2,_0x122368=new Set();for(const _0x144152 of _0x4e60be){_0x122368['add'](_0x144152[_0x4c4116(0x1db)]),_0x122368[_0x4c4116(0x1f5)](toCamelCase(_0x144152['name']));}for(const _0x3a99da of[_0x4c4116(0x200),_0x4c4116(0x1d7),_0x4c4116(0x1ee),_0x4c4116(0x1fc)]){_0x122368[_0x4c4116(0x1f5)](_0x3a99da);}for(const _0x7c5ff4 of[_0x4c4116(0x1e6),_0x4c4116(0x1e2),_0x4c4116(0x1fa),_0x4c4116(0x1f8),_0x4c4116(0x1f4),_0x4c4116(0x1f0),'ci',_0x4c4116(0x1ff),_0x4c4116(0x1dd)]){_0x122368[_0x4c4116(0x1f5)](_0x7c5ff4);}return _0x122368;}function buildFlagTypeMap(_0x1ccb77){const _0x1ccd22=a86_0x65f2,_0x2c34fe=new Map();for(const _0x15b425 of _0x1ccb77){_0x2c34fe[_0x1ccd22(0x1ea)](_0x15b425[_0x1ccd22(0x1db)],_0x15b425[_0x1ccd22(0x1e4)]),_0x2c34fe[_0x1ccd22(0x1ea)](toCamelCase(_0x15b425[_0x1ccd22(0x1db)]),_0x15b425[_0x1ccd22(0x1e4)]);}return _0x2c34fe;}function toCamelCase(_0x8a9e29){const _0x21a03d=a86_0x65f2;return _0x8a9e29['replace'](/-([a-z])/g,(_0x19df12,_0x3a9ab8)=>_0x3a9ab8[_0x21a03d(0x1ed)]());}function aliasHandler(_0x29f1d0,_0x3a431c){const _0x2d9ec7=a86_0x65f2,_0x37c6cf=[];for(const _0x2ca770 of Object[_0x2d9ec7(0x201)](_0x29f1d0)){if(_0x3a431c[_0x2d9ec7(0x1d6)](_0x2ca770))continue;const _0x48b4ed=toKebab(_0x2ca770);_0x48b4ed!==_0x2ca770&&_0x3a431c[_0x2d9ec7(0x1d6)](_0x48b4ed)&&_0x37c6cf[_0x2d9ec7(0x1f7)]({'original':_0x2ca770,'corrected':_0x48b4ed,'handler':_0x2d9ec7(0x1e5)});}return _0x37c6cf;}function a86_0x230e(){const _0x4ac8d0=['number','push','app','slice','appcode','16773396oLLeFQ','format','indexOf','14ogBjdV','global','dry-run','keys','588114VNwVjb','598341pViXfN','has','dryRun','original','6DlTSzY','26SahbOc','name','2487270CVxJXs','version','boolean','5DQHHQD','10GWLrjj','string','env','552308TAbtnu','type','alias','help','replace','40Epjgat','corrected','set','toLowerCase','15858249BTjFzB','toUpperCase','yes','length','non-interactive','817289TVpTFV','entries','get','nonInteractive','add'];a86_0x230e=function(){return _0x4ac8d0;};return a86_0x230e();}function a86_0x65f2(_0x16a29f,_0x548624){_0x16a29f=_0x16a29f-0x1d6;const _0x230e19=a86_0x230e();let _0x65f2c2=_0x230e19[_0x16a29f];return _0x65f2c2;}function stickyHandler(_0xe50185,_0x409b75,_0x4c87a7){const _0x1cac2a=a86_0x65f2,_0x339b3b=[];for(const [_0x3744f2,_0x2d7270]of Object[_0x1cac2a(0x1f2)](_0xe50185)){if(_0x2d7270!==!![])continue;for(let _0x4f2a8b=_0x3744f2[_0x1cac2a(0x1ef)]-0x1;_0x4f2a8b>0x0;_0x4f2a8b--){const _0x54769f=_0x3744f2['slice'](0x0,_0x4f2a8b),_0x1d58e2=_0x3744f2[_0x1cac2a(0x1f9)](_0x4f2a8b),_0x2614b5=toKebab(_0x54769f),_0x2364a9=toCamelCase(_0x54769f),_0x59d3fa=_0x409b75[_0x1cac2a(0x1d6)](_0x54769f)?_0x54769f:_0x409b75[_0x1cac2a(0x1d6)](_0x2614b5)?_0x2614b5:_0x409b75[_0x1cac2a(0x1d6)](_0x2364a9)?_0x2364a9:null;if(!_0x59d3fa)continue;const _0x5ae002=_0x4c87a7[_0x1cac2a(0x1f3)](_0x59d3fa)??_0x1cac2a(0x1e1);let _0x47ed75;if(_0x5ae002===_0x1cac2a(0x1f6)){const _0x3d28f1=Number(_0x1d58e2);if(isNaN(_0x3d28f1)||_0x1d58e2==='')continue;_0x47ed75=_0x3d28f1;}else{if(_0x5ae002===_0x1cac2a(0x1de))continue;else{if(_0x1d58e2==='')continue;_0x47ed75=_0x1d58e2;}}_0x339b3b[_0x1cac2a(0x1f7)]({'original':_0x3744f2,'corrected':_0x59d3fa+'='+_0x47ed75,'handler':'sticky'});break;}}return _0x339b3b;}export function correctFlags(_0x534ac1,_0xb790f3){const _0x11784f=a86_0x65f2,_0x34b42e=buildKnownFlags(_0xb790f3),_0x48add6=buildFlagTypeMap(_0xb790f3),_0xaa4650=aliasHandler(_0x534ac1,_0x34b42e),_0x2d92c5=stickyHandler(_0x534ac1,_0x34b42e,_0x48add6),_0xf626c1=[..._0xaa4650,..._0x2d92c5];if(_0xf626c1[_0x11784f(0x1ef)]===0x0)return{'flags':_0x534ac1,'corrections':[]};const _0x59bb44={..._0x534ac1},_0x9f0486=new Set();for(const _0x291b35 of _0xaa4650){_0x59bb44[_0x291b35['corrected']]=_0x534ac1[_0x291b35['original']],_0x9f0486[_0x11784f(0x1f5)](_0x291b35[_0x11784f(0x1d8)]);}for(const _0x1d2c4d of _0x2d92c5){const _0x4a2fb6=_0x1d2c4d[_0x11784f(0x1e9)][_0x11784f(0x1fd)]('='),_0x5a5211=_0x1d2c4d[_0x11784f(0x1e9)][_0x11784f(0x1f9)](0x0,_0x4a2fb6),_0xe8df11=_0x1d2c4d[_0x11784f(0x1e9)][_0x11784f(0x1f9)](_0x4a2fb6+0x1),_0x184816=_0x48add6[_0x11784f(0x1f3)](_0x5a5211)??_0x11784f(0x1e1);_0x184816===_0x11784f(0x1f6)?_0x59bb44[_0x5a5211]=Number(_0xe8df11):_0x59bb44[_0x5a5211]=_0xe8df11,_0x9f0486[_0x11784f(0x1f5)](_0x1d2c4d[_0x11784f(0x1d8)]);}for(const _0x3a5747 of _0x9f0486){delete _0x59bb44[_0x3a5747];}return{'flags':_0x59bb44,'corrections':_0xf626c1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a87_0x3c00(_0x47306c,_0x49fedf){_0x47306c=_0x47306c-0x1ba;const _0x232910=a87_0x2329();let _0x3c0078=_0x232910[_0x47306c];return _0x3c0078;}const a87_0x5d39e2=a87_0x3c00;(function(_0x1cb3a9,_0x95d2dc){const _0x22e1a8=a87_0x3c00,_0x19b458=_0x1cb3a9();while(!![]){try{const _0x1970d8=-parseInt(_0x22e1a8(0x1d2))/0x1*(parseInt(_0x22e1a8(0x1be))/0x2)+-parseInt(_0x22e1a8(0x1c4))/0x3*(-parseInt(_0x22e1a8(0x1bf))/0x4)+-parseInt(_0x22e1a8(0x1d3))/0x5+parseInt(_0x22e1a8(0x1bd))/0x6+parseInt(_0x22e1a8(0x1d6))/0x7+parseInt(_0x22e1a8(0x1cf))/0x8*(parseInt(_0x22e1a8(0x1d9))/0x9)+parseInt(_0x22e1a8(0x1ce))/0xa;if(_0x1970d8===_0x95d2dc)break;else _0x19b458['push'](_0x19b458['shift']());}catch(_0x4dca5a){_0x19b458['push'](_0x19b458['shift']());}}}(a87_0x2329,0x65994));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a87_0x5d39e2(0x1d8),'MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x2a30d9){const _0x1eb0a9=a87_0x5d39e2;if(typeof _0x2a30d9!==_0x1eb0a9(0x1bc))return undefined;const _0xaffef0=_0x2a30d9[_0x1eb0a9(0x1cd)]();return _0xaffef0||undefined;}function buildRetryHint(_0x280c80){const _0x59f52e=a87_0x5d39e2,_0x15d75d=nonEmptyString(_0x280c80),_0x586e3a=_0x15d75d?/^\d+$/[_0x59f52e(0x1bb)](_0x15d75d)?_0x59f52e(0x1c9)+_0x15d75d+_0x59f52e(0x1d5):'Retry\x20after\x20'+_0x15d75d+'.':_0x59f52e(0x1d0);return _0x586e3a+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}function a87_0x2329(){const _0x2d4ec8=['3139272pKwwjr','1592lRkBqr','4zEWizg','retryAfterSeconds','errorCode','Request\x20rate\x20limit\x20exceeded.','message','797556kXpCOR','Retry-After','retry-after','number','object','Wait\x20','toUpperCase','function','has','trim','90290lUnOig','3278744Vexfum','Retry\x20after\x20a\x20short\x20delay.','status','1006CzDxjB','3076885sfxcYl','rateLimited','\x20seconds\x20before\x20retrying.','1501654wdldqw','isInteger','EXCEED_MAX_QPS_LIMIT','18NPVARP','call','test','string'];a87_0x2329=function(){return _0x2d4ec8;};return a87_0x2329();}export function createRateLimitError(_0x29627a){const _0x490b4d=a87_0x5d39e2,_0x49d389=nonEmptyString(_0x29627a[_0x490b4d(0x1c1)])?.[_0x490b4d(0x1ca)](),_0x2364a4=Number(_0x29627a[_0x490b4d(0x1d1)])===0x1ad||_0x49d389!==undefined&&RATE_LIMIT_ERROR_CODES[_0x490b4d(0x1cc)](_0x49d389);if(!_0x2364a4)return undefined;return CliErrors[_0x490b4d(0x1d4)](nonEmptyString(_0x29627a[_0x490b4d(0x1c3)])??_0x490b4d(0x1c2),buildRetryHint(_0x29627a['retryAfter']));}export function readRetryAfter(_0xdae903){const _0x7c8141=a87_0x5d39e2;if(!_0xdae903||typeof _0xdae903!==_0x7c8141(0x1c8))return undefined;const _0x4bc69a=_0xdae903['get'];if(typeof _0x4bc69a===_0x7c8141(0x1cb)){const _0x587441=_0x4bc69a[_0x7c8141(0x1ba)](_0xdae903,_0x7c8141(0x1c5))??_0x4bc69a[_0x7c8141(0x1ba)](_0xdae903,_0x7c8141(0x1c6));return nonEmptyString(_0x587441);}for(const [_0x1d2525,_0x2db0d3]of Object['entries'](_0xdae903)){if(_0x1d2525['toLowerCase']()===_0x7c8141(0x1c6))return nonEmptyString(_0x2db0d3)??(typeof _0x2db0d3===_0x7c8141(0x1c7)?String(_0x2db0d3):undefined);}return undefined;}export function readRetryAfterSeconds(_0x4585c8){const _0x1153a6=a87_0x5d39e2;if(!_0x4585c8||typeof _0x4585c8!==_0x1153a6(0x1c8)||Array['isArray'](_0x4585c8))return undefined;const _0x2cfc76=_0x4585c8[_0x1153a6(0x1c0)];if(typeof _0x2cfc76===_0x1153a6(0x1c7))return Number[_0x1153a6(0x1d7)](_0x2cfc76)&&_0x2cfc76>=0x0?String(_0x2cfc76):undefined;const _0x481b6b=nonEmptyString(_0x2cfc76);return _0x481b6b&&/^\d+$/[_0x1153a6(0x1bb)](_0x481b6b)?_0x481b6b:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1110d9,_0x20ed61){var _0x1f273f=a88_0x42fa,_0x29eac2=_0x1110d9();while(!![]){try{var _0x26aade=parseInt(_0x1f273f(0x13a))/0x1+-parseInt(_0x1f273f(0x133))/0x2*(-parseInt(_0x1f273f(0x135))/0x3)+-parseInt(_0x1f273f(0x139))/0x4*(parseInt(_0x1f273f(0x131))/0x5)+parseInt(_0x1f273f(0x138))/0x6+parseInt(_0x1f273f(0x136))/0x7+-parseInt(_0x1f273f(0x132))/0x8+-parseInt(_0x1f273f(0x137))/0x9*(parseInt(_0x1f273f(0x134))/0xa);if(_0x26aade===_0x20ed61)break;else _0x29eac2['push'](_0x29eac2['shift']());}catch(_0x3cabb6){_0x29eac2['push'](_0x29eac2['shift']());}}}(a88_0x2803,0x427fb));function a88_0x42fa(_0x206c26,_0x4c321e){_0x206c26=_0x206c26-0x131;var _0x280358=a88_0x2803();var _0x42faae=_0x280358[_0x206c26];return _0x42faae;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a88_0x2803(){var _0x11c134=['11690pHepCn','1103568fEkRpB','484654LkLXae','1659670doMVPN','6JPNxvR','1057637JaXIve','9xKgWmj','2838390JusoIm','932PQSakh','12236pAAWoD'];a88_0x2803=function(){return _0x11c134;};return a88_0x2803();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a9cb1,_0x5b9330){const _0x546599=a89_0x534d,_0x3adcdb=_0x4a9cb1();while(!![]){try{const _0x16b5fb=-parseInt(_0x546599(0x1cf))/0x1+-parseInt(_0x546599(0x1ce))/0x2+-parseInt(_0x546599(0x1d8))/0x3+-parseInt(_0x546599(0x1c4))/0x4+parseInt(_0x546599(0x1da))/0x5*(-parseInt(_0x546599(0x1d4))/0x6)+-parseInt(_0x546599(0x1d9))/0x7*(-parseInt(_0x546599(0x1dc))/0x8)+-parseInt(_0x546599(0x1e3))/0x9*(-parseInt(_0x546599(0x1cd))/0xa);if(_0x16b5fb===_0x5b9330)break;else _0x3adcdb['push'](_0x3adcdb['shift']());}catch(_0x1d5619){_0x3adcdb['push'](_0x3adcdb['shift']());}}}(a89_0x52e7,0xcc1ca));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2ef976,_0x33aafd,_0x25b9f5){const _0xa05821=a89_0x534d,_0x236b47=buildConfirmationContext(_0x2ef976,_0x33aafd,_0x25b9f5),_0x3f5ac2=[_0xa05821(0x1c6)+_0x236b47[_0xa05821(0x1d7)]];return _0x236b47['description']&&_0x3f5ac2[_0xa05821(0x1c8)](_0xa05821(0x1e9)+_0x236b47[_0xa05821(0x1e6)]),_0x236b47[_0xa05821(0x1c9)]&&_0x3f5ac2[_0xa05821(0x1c8)]('\x20\x20\x20Affected:\x20'+_0x236b47[_0xa05821(0x1c9)]),_0x3f5ac2['push'](_0xa05821(0x1cc)),_0x3f5ac2;}export function reconstructCommandArgv(_0x255022,_0x4f374d){const _0x11fe5f=a89_0x534d,_0x2f1f5e=[CLI_BIN_NAME,_0x255022[_0x11fe5f(0x1e8)],_0x255022[_0x11fe5f(0x1cb)]];for(const [_0x50e74f,_0x9f6972]of Object['entries'](_0x4f374d)){if(_0x9f6972===!![])_0x2f1f5e[_0x11fe5f(0x1c8)]('--'+_0x50e74f);else _0x9f6972!==![]&&_0x9f6972!==undefined&&_0x9f6972!==''&&_0x2f1f5e['push']('--'+_0x50e74f+'\x20'+JSON['stringify'](_0x9f6972));}return _0x2f1f5e['push'](_0x11fe5f(0x1ca)),_0x2f1f5e[_0x11fe5f(0x1e0)]('\x20');}function a89_0x534d(_0x3d3b7a,_0x225976){_0x3d3b7a=_0x3d3b7a-0x1c4;const _0x52e771=a89_0x52e7();let _0x534dd0=_0x52e771[_0x3d3b7a];return _0x534dd0;}function buildConfirmationContext(_0x51b87e,_0x42b398,_0x54bbb0){const _0xe90802=extractAffectedRecords(_0x54bbb0);return{'commandLabel':_0x42b398,'description':_0x51b87e['description'],'affectedRecords':_0xe90802};}function extractAffectedRecords(_0x3d2ceb){const _0x18fcce=a89_0x534d,_0x4efaf6=[];if(_0x3d2ceb[_0x18fcce(0x1d5)])_0x4efaf6[_0x18fcce(0x1c8)]('code='+_0x3d2ceb[_0x18fcce(0x1d5)]);if(_0x3d2ceb['id'])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1df)+_0x3d2ceb['id']);if(_0x3d2ceb[_0x18fcce(0x1e4)])_0x4efaf6['push']('schedule-id='+_0x3d2ceb[_0x18fcce(0x1e4)]);if(_0x3d2ceb[_0x18fcce(0x1c5)])_0x4efaf6['push'](_0x18fcce(0x1d0)+_0x3d2ceb[_0x18fcce(0x1c5)]);if(_0x3d2ceb[_0x18fcce(0x1d3)])_0x4efaf6['push'](_0x18fcce(0x1e7)+_0x3d2ceb[_0x18fcce(0x1d3)]);if(_0x3d2ceb[_0x18fcce(0x1db)])_0x4efaf6['push'](_0x18fcce(0x1e2)+_0x3d2ceb[_0x18fcce(0x1db)]);if(_0x3d2ceb[_0x18fcce(0x1de)])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1d2)+_0x3d2ceb[_0x18fcce(0x1de)]);if(_0x3d2ceb['scheduled-at'])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1c7)+_0x3d2ceb['scheduled-at']);if(_0x3d2ceb[_0x18fcce(0x1e5)])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1dd)+_0x3d2ceb[_0x18fcce(0x1e5)]);if(_0x3d2ceb[_0x18fcce(0x1e1)])_0x4efaf6['push'](_0x18fcce(0x1d6)+_0x3d2ceb[_0x18fcce(0x1e1)]);return _0x4efaf6[_0x18fcce(0x1d1)]>0x0?_0x4efaf6[_0x18fcce(0x1e0)](',\x20'):undefined;}function a89_0x52e7(){const _0x38af8e=['123685OTnBmU','kind','40jxpvDG','channel=','cron','id=','join','params','kind=','460179aZlmOO','schedule-id','channel','description','title=','service','\x20\x20\x20','1592532EMcSDS','name','⚠\x20\x20High-risk\x20operation:\x20','scheduled-at=','push','affectedRecords','--yes','command','\x20\x20\x20Continue?\x20[y/N]\x20','1010kELnHx','3021574utLDiu','1121185LyHkyB','name=','length','cron=','title','246vJYXpW','code','params=','commandLabel','2079216SVVbxI','572887yeJTVr'];a89_0x52e7=function(){return _0x38af8e;};return a89_0x52e7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xcea7da,_0x52a5c6){const _0x8fd658=a90_0x4bd3,_0x30beea=_0xcea7da();while(!![]){try{const _0x7a1a3a=parseInt(_0x8fd658(0xef))/0x1*(parseInt(_0x8fd658(0xe5))/0x2)+parseInt(_0x8fd658(0xe9))/0x3*(parseInt(_0x8fd658(0xeb))/0x4)+parseInt(_0x8fd658(0xf3))/0x5*(parseInt(_0x8fd658(0xee))/0x6)+-parseInt(_0x8fd658(0xea))/0x7*(-parseInt(_0x8fd658(0xf8))/0x8)+parseInt(_0x8fd658(0xec))/0x9+-parseInt(_0x8fd658(0xe7))/0xa+-parseInt(_0x8fd658(0xf5))/0xb*(parseInt(_0x8fd658(0xe8))/0xc);if(_0x7a1a3a===_0x52a5c6)break;else _0x30beea['push'](_0x30beea['shift']());}catch(_0x363d5b){_0x30beea['push'](_0x30beea['shift']());}}}(a90_0x258b,0xeafc7));function a90_0x4bd3(_0x2d7acb,_0x1aacbe){_0x2d7acb=_0x2d7acb-0xe5;const _0x258bda=a90_0x258b();let _0x4bd34=_0x258bda[_0x2d7acb];return _0x4bd34;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x7cc4b4){const _0x115f71=a90_0x4bd3;if(_0x7cc4b4 instanceof LovrabetError){const _0x4da3f8=userFacingLovrabetMessage(_0x7cc4b4),_0x2925c4=_0x7cc4b4,_0x128db3=createRateLimitError({'status':_0x2925c4['status'],'errorCode':_0x2925c4[_0x115f71(0xf4)],'message':_0x4da3f8,'retryAfter':readRetryAfter(_0x2925c4[_0x115f71(0xf1)]?.['headers'])??readRetryAfterSeconds(_0x2925c4[_0x115f71(0xf1)])});return _0x128db3??CliErrors[_0x115f71(0xed)](_0x4da3f8);}return _0x7cc4b4;}function a90_0x258b(){const _0x41754f=['validation','10703766slznIl','55eHknqm','message','response','description','5uZSpQG','code','9460DySfdP','string','trim','34664FpvKID','66914qVHwCS','stringify','10154500wEflOW','63636ynjJrA','654ERswRi','1463rBgsFl','11212AYbJLl','12580074gQrwjx'];a90_0x258b=function(){return _0x41754f;};return a90_0x258b();}function userFacingLovrabetMessage(_0x5f01af){const _0x455fcf=a90_0x4bd3,_0x4d3259=_0x5f01af[_0x455fcf(0xf2)];if(_0x4d3259!==undefined&&_0x4d3259!==null){if(typeof _0x4d3259===_0x455fcf(0xf6)&&_0x4d3259['trim']())return _0x4d3259[_0x455fcf(0xf7)]();try{return JSON[_0x455fcf(0xe6)](_0x4d3259);}catch{}}return _0x5f01af[_0x455fcf(0xf0)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0x1c15c6=a90_0x1df7;(function(_0x1fa9eb,_0x5ee893){const _0x5889a4=a90_0x1df7,_0x32ba40=_0x1fa9eb();while(!![]){try{const _0x153235=parseInt(_0x5889a4(0xa2))/0x1+-parseInt(_0x5889a4(0xab))/0x2+-parseInt(_0x5889a4(0xa1))/0x3*(parseInt(_0x5889a4(0xb4))/0x4)+-parseInt(_0x5889a4(0xc1))/0x5*(parseInt(_0x5889a4(0x8a))/0x6)+-parseInt(_0x5889a4(0xa5))/0x7*(-parseInt(_0x5889a4(0xaf))/0x8)+parseInt(_0x5889a4(0x91))/0x9+parseInt(_0x5889a4(0x9d))/0xa;if(_0x153235===_0x5ee893)break;else _0x32ba40['push'](_0x32ba40['shift']());}catch(_0x184846){_0x32ba40['push'](_0x32ba40['shift']());}}}(a90_0x5f0e,0xac281));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xbb3c8f){return void _0xbb3c8f,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2af7cb,_0x55ca3e){const _0x35286b=a90_0x1df7,_0x1c96ea=typeof _0x55ca3e['app']===_0x35286b(0xc0)&&_0x55ca3e[_0x35286b(0xad)][_0x35286b(0x95)]();return{'rawFlags':_0x55ca3e,'appCode':_0x2af7cb['appCode']||productEnv('APPCODE')||(_0x1c96ea?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2af7cb[_0x35286b(0xc2)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x55ca3e),'defaultFormat':_0x2af7cb['format'],'defaultPageSize':_0x2af7cb[_0x35286b(0xb2)],'defaultVerbose':_0x2af7cb['verbose'],'riskLevel':_0x2af7cb[_0x35286b(0xc5)],'accessKey':_0x2af7cb[_0x35286b(0x9e)],'env':_0x2af7cb[_0x35286b(0x94)],'mergedCli':{'defaultApp':_0x2af7cb[_0x35286b(0xa3)],'currentApp':_0x2af7cb[_0x35286b(0x9a)],'appCode':_0x2af7cb[_0x35286b(0xbf)]}};}function a90_0x1df7(_0x3b8e87,_0x434a2f){_0x3b8e87=_0x3b8e87-0x89;const _0x5f0e73=a90_0x5f0e();let _0x1df73f=_0x5f0e73[_0x3b8e87];return _0x1df73f;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x35422c=>PIPELINE_FLAG_NAMES[a90_0x1c15c6(0xa6)](_0x35422c[a90_0x1c15c6(0xbb)]))[a90_0x1c15c6(0xa0)](({name:_0x357c49,type:_0x407544,description:_0xe110bb})=>({'name':_0x357c49,'type':_0x407544,'description':_0xe110bb})),'formatOutput':formatOutput,'getCommandLabel'(_0x475884){const _0x38aa8e=a90_0x1c15c6;return CLI_BIN_NAME+'\x20'+_0x475884[_0x38aa8e(0x89)]+'\x20'+_0x475884[_0x38aa8e(0x8f)];},'riskPolicy':{'onViolation'(_0x38aa1b){const _0x49ff41=a90_0x1c15c6;console[_0x49ff41(0xb9)](_0x38aa1b);},'createError'(_0x57b719){const _0x34f230=a90_0x1c15c6;return CliErrors[_0x34f230(0xbe)](_0x57b719);}},async 'prepare'(_0x5e4315,_0x1cd08c){const _0x28cfa5=a90_0x1c15c6,_0xdc001=resolveAuthMode(_0x1cd08c);if(_0x5e4315['requiresAuth']!==![]){if(!_0x1cd08c[_0x28cfa5(0x9e)])throw CliErrors['authRequired'](_0x28cfa5(0xac)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x28cfa5(0x8c))+'.');const {setActiveAK:_0x10309d}=await import(_0x28cfa5(0xa9));_0x10309d(_0x1cd08c[_0x28cfa5(0x9e)]);}let _0x142229='';if(_0x5e4315['requiresAppCode']!==![]){_0x142229=_0x1cd08c['appCode']??'',_0x142229=await resolveExplicitAppName(_0x5e4315,_0x1cd08c,_0x142229);if(!_0x142229){await assertSelectedAppNameIsRuntimeAccessible(_0x5e4315,_0x1cd08c);throw CliErrors[_0x28cfa5(0xaa)](_0x28cfa5(0x9c)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x5e4315,_0x1cd08c,_0x142229);}if(_0x142229){const {initSdkClient:_0x4d41f1}=await import(_0x28cfa5(0xb8));_0x4d41f1({'appCode':_0x142229,'env':_0x1cd08c[_0x28cfa5(0x94)]??'production','accessKey':_0x1cd08c['accessKey'],'authMode':_0xdc001}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1cd08c[_0x28cfa5(0x8b)]},'numbers':{'pagesize':_0x1cd08c[_0x28cfa5(0x98)]}},'extras':{'appCode':_0x142229,'cookie':'','apiDomain':_0x1cd08c[_0x28cfa5(0x90)],'apiDir':'','accessKey':_0x1cd08c['accessKey'],'envName':_0x1cd08c[_0x28cfa5(0x94)],'mergedCli':_0x1cd08c[_0x28cfa5(0x96)]}};},async 'confirmHighRisk'({def:_0x3554ef,env:_0x449235,flags:_0x3a74fc,commandLabel:_0x152b28}){const _0x4e0256=a90_0x1c15c6;if(_0x449235[_0x4e0256(0xc4)]){const _0x555059=reconstructCommandArgv(_0x3554ef,_0x3a74fc);throw CliErrors[_0x4e0256(0xb3)](_0x4e0256(0xb6)+_0x152b28+_0x4e0256(0xb1)+('\x20\x20To\x20proceed:\x20'+_0x555059));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3554ef,_0x152b28,_0x3a74fc),'createCancelledError':_0x39b344=>CliErrors[_0x4e0256(0xbe)](_0x39b344)});},'mapDryRunError'(_0x537800){return mapUserFacingExecuteError(_0x537800);},'mapExecuteError'(_0x2b1bbe){return mapUserFacingExecuteError(_0x2b1bbe);},async 'finalize'(){const _0x4f2fa0=a90_0x1c15c6;try{if(sdkClientInitialized){const {clearSdkClient:_0x5ca80f}=await import(_0x4f2fa0(0xb8));_0x5ca80f();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x5af8a5}=await import('../core/api-client.js');_0x5af8a5();}}};async function resolveExplicitAppName(_0x5996ac,_0x1a22b1,_0x2006ce){const _0x2e0451=a90_0x1c15c6;if(_0x5996ac[_0x2e0451(0x8d)]===![])return _0x2006ce;const _0x24ea8d=typeof _0x1a22b1[_0x2e0451(0xa8)][_0x2e0451(0xad)]===_0x2e0451(0xc0)?_0x1a22b1[_0x2e0451(0xa8)]['app'][_0x2e0451(0x95)]():'';if(!_0x24ea8d)return _0x2006ce;const _0xf95f67=typeof _0x1a22b1[_0x2e0451(0xa8)]['appcode']===_0x2e0451(0xc0)&&_0x1a22b1[_0x2e0451(0xa8)][_0x2e0451(0xb5)][_0x2e0451(0x95)]()||productEnv(_0x2e0451(0x93));if(_0xf95f67||_0x1a22b1[_0x2e0451(0xc2)]===_0x2e0451(0x92))return _0x2006ce;const {getRemoteAppList:_0x4731cc}=await import(_0x2e0451(0xc3)),_0x3b2b15=await _0x4731cc({'env':_0x1a22b1['env']??_0x2e0451(0x97),'accessKey':_0x1a22b1['accessKey']}),_0x1121a3=findAppByName(_0x3b2b15[_0x2e0451(0x99)],_0x24ea8d);if(_0x1121a3&&!isRuntimeAccessibleApp(_0x1121a3))throw runtimeInaccessibleAppError(_0x1121a3,'\x22'+_0x24ea8d+'\x22');const _0x301ee5=_0x1121a3?.[_0x2e0451(0xbf)]?.[_0x2e0451(0x95)]();if(_0x301ee5)return _0x301ee5;throw CliErrors[_0x2e0451(0xb3)](_0x2e0451(0xb0)+_0x24ea8d,_0x2e0451(0xba)+CLI_BIN_NAME+_0x2e0451(0x9f)+_0x24ea8d+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x2e0451(0x8e)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5e6ef4,_0x2e98af){const _0x363c68=a90_0x1c15c6;if(_0x5e6ef4[_0x363c68(0x8d)]===![]||!_0x2e98af[_0x363c68(0x9e)])return;const _0x47eaf8=(typeof _0x2e98af[_0x363c68(0xa8)][_0x363c68(0xad)]==='string'&&_0x2e98af['rawFlags'][_0x363c68(0xad)][_0x363c68(0x95)]()?_0x2e98af['rawFlags'][_0x363c68(0xad)]:_0x2e98af[_0x363c68(0x96)]?.[_0x363c68(0x9a)]??_0x2e98af[_0x363c68(0x96)]?.[_0x363c68(0xa3)])?.[_0x363c68(0x95)]();if(!_0x47eaf8)return;const {getRemoteAppList:_0x121b52}=await import('../commands/app/remote-source.js'),_0x2672b3=await _0x121b52({'env':_0x2e98af['env']??'production','accessKey':_0x2e98af['accessKey']}),_0x3a2452=findAppByName(_0x2672b3[_0x363c68(0x99)],_0x47eaf8);if(_0x3a2452&&!isRuntimeAccessibleApp(_0x3a2452))throw runtimeInaccessibleAppError(_0x3a2452,'\x22'+_0x47eaf8+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xf47976,_0x17d6bd,_0x36094f){const _0x10440a=a90_0x1c15c6;if(_0xf47976[_0x10440a(0x8d)]===![]||!_0x17d6bd[_0x10440a(0x9e)])return;const {getRemoteAppList:_0x718b3d}=await import(_0x10440a(0xc3)),_0x3db41e=await _0x718b3d({'env':_0x17d6bd[_0x10440a(0x94)]??_0x10440a(0x97),'accessKey':_0x17d6bd[_0x10440a(0x9e)]}),_0x3d3bd7=findAppByCode(_0x3db41e[_0x10440a(0x99)],_0x36094f);if(_0x3d3bd7&&!isRuntimeAccessibleApp(_0x3d3bd7))throw runtimeInaccessibleAppError(_0x3d3bd7,_0x10440a(0xbd)+_0x36094f+'\x22');}export async function runCommand(_0x282d28,_0x56770b){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x282d28)?withUpdateNotice(_0x282d28):_0x282d28,_0x56770b,runnerAdapter);}function a90_0x5f0e(){const _0x2d5f16=['newConfigFileName','command','apiDomain','9336735gKFuIR','local-alias','APPCODE','env','trim','mergedCli','production','defaultPageSize','items','currentApp','update','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','15214650jSSUhg','accessKey','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','map','3fReuzd','105679cOHYRT','defaultApp','_notice','3566206geiszS','has','execute','rawFlags','../core/api-client.js','configMissing','2280890RVZsKG','Set\x20accessKey\x20in\x20','app','includes','8TACJlK','Unknown\x20app:\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','pageSize','validation','4263572lQCXsi','appcode','High-risk\x20operation\x20`','nonInteractive','../core/sdk-client.js','error','Run\x20`','name','format','appcode\x20\x22','cancelled','appCode','string','5BLOAoS','appCodeSource','../commands/app/remote-source.js','isNonInteractive','riskLevel','service','1575156eeffUe','defaultVerbose','ACCESS_KEY','requiresAppCode'];a90_0x5f0e=function(){return _0x2d5f16;};return a90_0x5f0e();}function shouldAttachUpdateNotice(_0x1c6bc6){const _0x232b5c=a90_0x1c15c6;return![_0x232b5c(0x9b),'schema','doctor'][_0x232b5c(0xae)](_0x1c6bc6[_0x232b5c(0x89)]);}function withUpdateNotice(_0x3f5246){return{..._0x3f5246,async 'execute'(_0x640048){const _0x346083=a90_0x1df7,_0x20794=shouldResolveUpdateNotice(_0x640048)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x1f808f=await _0x3f5246[_0x346083(0xa7)](_0x640048);return attachUpdateNotice(_0x1f808f,await _0x20794);}};}function shouldResolveUpdateNotice(_0x5b325f){const _0x3f625e=a90_0x1c15c6;return _0x5b325f[_0x3f625e(0xbc)]==='pretty'&&!_0x5b325f[_0x3f625e(0xb7)];}function attachUpdateNotice(_0x29e9ce,_0x4bd55f){const _0x5a0da6=a90_0x1c15c6;if(!_0x4bd55f||!_0x29e9ce||typeof _0x29e9ce!=='object')return _0x29e9ce;const _0x244b6c=_0x29e9ce,_0x5a238f=typeof _0x244b6c[_0x5a0da6(0xa4)]==='object'&&_0x244b6c['_notice']!==null?_0x244b6c[_0x5a0da6(0xa4)]:{};return{..._0x244b6c,'_notice':{..._0x5a238f,'update':_0x4bd55f}};}
|
|
1
|
+
const a91_0x55155e=a91_0xe260;(function(_0x1a2342,_0x199a3e){const _0x43d584=a91_0xe260,_0x1f70d2=_0x1a2342();while(!![]){try{const _0xcd9633=parseInt(_0x43d584(0x223))/0x1*(-parseInt(_0x43d584(0x22c))/0x2)+-parseInt(_0x43d584(0x205))/0x3+parseInt(_0x43d584(0x20c))/0x4*(parseInt(_0x43d584(0x229))/0x5)+parseInt(_0x43d584(0x21e))/0x6+-parseInt(_0x43d584(0x208))/0x7*(-parseInt(_0x43d584(0x1f5))/0x8)+-parseInt(_0x43d584(0x1fe))/0x9+-parseInt(_0x43d584(0x1fc))/0xa;if(_0xcd9633===_0x199a3e)break;else _0x1f70d2['push'](_0x1f70d2['shift']());}catch(_0x31c169){_0x1f70d2['push'](_0x1f70d2['shift']());}}}(a91_0x3a3b,0x9ee6c));function a91_0xe260(_0x257abf,_0x3d3e36){_0x257abf=_0x257abf-0x1ec;const _0x3a3b22=a91_0x3a3b();let _0xe2603=_0x3a3b22[_0x257abf];return _0xe2603;}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x2d65f1){const _0x5a8a33=a91_0xe260;return void _0x2d65f1,AUTH_MODE[_0x5a8a33(0x228)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1e83dd,_0x49da95){const _0xa03955=a91_0xe260,_0x20958b=typeof _0x49da95[_0xa03955(0x213)]==='string'&&_0x49da95[_0xa03955(0x213)]['trim']();return{'rawFlags':_0x49da95,'appCode':_0x1e83dd['appCode']||productEnv(_0xa03955(0x1f4))||(_0x20958b?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1e83dd['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x49da95),'defaultFormat':_0x1e83dd[_0xa03955(0x222)],'defaultPageSize':_0x1e83dd[_0xa03955(0x214)],'defaultVerbose':_0x1e83dd[_0xa03955(0x21c)],'riskLevel':_0x1e83dd[_0xa03955(0x1fb)],'accessKey':_0x1e83dd[_0xa03955(0x1f8)],'env':_0x1e83dd[_0xa03955(0x20b)],'mergedCli':{'defaultApp':_0x1e83dd['defaultApp'],'currentApp':_0x1e83dd[_0xa03955(0x217)],'appCode':_0x1e83dd[_0xa03955(0x220)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a91_0x55155e(0x210)](_0x86c8a7=>PIPELINE_FLAG_NAMES[a91_0x55155e(0x1f3)](_0x86c8a7['name']))[a91_0x55155e(0x1ed)](({name:_0x1352e3,type:_0x1dbb48,description:_0x25ae73})=>({'name':_0x1352e3,'type':_0x1dbb48,'description':_0x25ae73})),'formatOutput':formatOutput,'getCommandLabel'(_0xcdc5da){const _0x6ea999=a91_0x55155e;return CLI_BIN_NAME+'\x20'+_0xcdc5da[_0x6ea999(0x1f7)]+'\x20'+_0xcdc5da[_0x6ea999(0x1ff)];},'riskPolicy':{'onViolation'(_0x3c68bb){const _0x359816=a91_0x55155e;console[_0x359816(0x22a)](_0x3c68bb);},'createError'(_0x540c69){const _0x2e1001=a91_0x55155e;return CliErrors[_0x2e1001(0x1ec)](_0x540c69);}},async 'prepare'(_0xd64a80,_0x4198ea){const _0x80bfa8=a91_0x55155e,_0x13046d=resolveAuthMode(_0x4198ea);if(_0xd64a80['requiresAuth']!==![]){if(!_0x4198ea[_0x80bfa8(0x1f8)])throw CliErrors[_0x80bfa8(0x20e)](_0x80bfa8(0x1f6)+PRODUCT_CONFIG[_0x80bfa8(0x212)]+_0x80bfa8(0x211)+productEnvName(_0x80bfa8(0x22d))+'.');const {setActiveAK:_0x3a178f}=await import('../core/api-client.js');_0x3a178f(_0x4198ea['accessKey']);}let _0x56fdc9='';if(_0xd64a80[_0x80bfa8(0x21f)]!==![]){_0x56fdc9=_0x4198ea['appCode']??'',_0x56fdc9=await resolveExplicitAppName(_0xd64a80,_0x4198ea,_0x56fdc9);if(!_0x56fdc9){await assertSelectedAppNameIsRuntimeAccessible(_0xd64a80,_0x4198ea);throw CliErrors['configMissing'](_0x80bfa8(0x21a)+PRODUCT_CONFIG[_0x80bfa8(0x212)]+'.');}await assertAppCodeIsRuntimeAccessible(_0xd64a80,_0x4198ea,_0x56fdc9);}if(_0x56fdc9){const {initSdkClient:_0x109d09}=await import(_0x80bfa8(0x20a));_0x109d09({'appCode':_0x56fdc9,'env':_0x4198ea[_0x80bfa8(0x20b)]??_0x80bfa8(0x215),'accessKey':_0x4198ea[_0x80bfa8(0x1f8)],'authMode':_0x13046d}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4198ea['defaultVerbose']},'numbers':{'pagesize':_0x4198ea[_0x80bfa8(0x1f1)]}},'extras':{'appCode':_0x56fdc9,'cookie':'','apiDomain':_0x4198ea['apiDomain'],'apiDir':'','accessKey':_0x4198ea[_0x80bfa8(0x1f8)],'envName':_0x4198ea['env'],'mergedCli':_0x4198ea[_0x80bfa8(0x207)]}};},async 'confirmHighRisk'({def:_0x1ca688,env:_0x10df0c,flags:_0x17b060,commandLabel:_0x5466d0}){const _0x47a4f8=a91_0x55155e;if(_0x10df0c[_0x47a4f8(0x201)]){const _0x4643c7=reconstructCommandArgv(_0x1ca688,_0x17b060);throw CliErrors[_0x47a4f8(0x204)](_0x47a4f8(0x1ef)+_0x5466d0+_0x47a4f8(0x1f9)+(_0x47a4f8(0x1ee)+_0x4643c7));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1ca688,_0x5466d0,_0x17b060),'createCancelledError':_0x38aa32=>CliErrors['cancelled'](_0x38aa32)});},'mapDryRunError'(_0x4c832b){return mapUserFacingExecuteError(_0x4c832b);},'mapExecuteError'(_0x2d97f3){return mapUserFacingExecuteError(_0x2d97f3);},async 'finalize'(){const _0x2300e9=a91_0x55155e;try{if(sdkClientInitialized){const {clearSdkClient:_0x54ab61}=await import(_0x2300e9(0x20a));_0x54ab61();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x2ecb09}=await import('../core/api-client.js');_0x2ecb09();}}};async function resolveExplicitAppName(_0x4d5977,_0x49ea34,_0x5ea8eb){const _0x1b8ff3=a91_0x55155e;if(_0x4d5977[_0x1b8ff3(0x21f)]===![])return _0x5ea8eb;const _0x34fcfe=typeof _0x49ea34[_0x1b8ff3(0x224)]['app']===_0x1b8ff3(0x221)?_0x49ea34[_0x1b8ff3(0x224)][_0x1b8ff3(0x213)][_0x1b8ff3(0x219)]():'';if(!_0x34fcfe)return _0x5ea8eb;const _0x351cd2=typeof _0x49ea34[_0x1b8ff3(0x224)][_0x1b8ff3(0x21b)]==='string'&&_0x49ea34[_0x1b8ff3(0x224)][_0x1b8ff3(0x21b)][_0x1b8ff3(0x219)]()||productEnv(_0x1b8ff3(0x1f4));if(_0x351cd2||_0x49ea34[_0x1b8ff3(0x227)]===_0x1b8ff3(0x22b))return _0x5ea8eb;const {getRemoteAppList:_0x1be920}=await import('../commands/app/remote-source.js'),_0x31864d=await _0x1be920({'env':_0x49ea34[_0x1b8ff3(0x20b)]??_0x1b8ff3(0x215),'accessKey':_0x49ea34[_0x1b8ff3(0x1f8)]}),_0x5f45bd=findAppByName(_0x31864d[_0x1b8ff3(0x218)],_0x34fcfe);if(_0x5f45bd&&!isRuntimeAccessibleApp(_0x5f45bd))throw runtimeInaccessibleAppError(_0x5f45bd,'\x22'+_0x34fcfe+'\x22');const _0x5a5c26=_0x5f45bd?.[_0x1b8ff3(0x220)]?.[_0x1b8ff3(0x219)]();if(_0x5a5c26)return _0x5a5c26;throw CliErrors['validation'](_0x1b8ff3(0x1fd)+_0x34fcfe,_0x1b8ff3(0x206)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x34fcfe+_0x1b8ff3(0x203)+PRODUCT_CONFIG[_0x1b8ff3(0x212)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x29b919,_0x31dbfd){const _0x32918f=a91_0x55155e;if(_0x29b919[_0x32918f(0x21f)]===![]||!_0x31dbfd[_0x32918f(0x1f8)])return;const _0x2bf3a=(typeof _0x31dbfd[_0x32918f(0x224)][_0x32918f(0x213)]==='string'&&_0x31dbfd['rawFlags'][_0x32918f(0x213)][_0x32918f(0x219)]()?_0x31dbfd[_0x32918f(0x224)][_0x32918f(0x213)]:_0x31dbfd[_0x32918f(0x207)]?.[_0x32918f(0x217)]??_0x31dbfd['mergedCli']?.[_0x32918f(0x209)])?.[_0x32918f(0x219)]();if(!_0x2bf3a)return;const {getRemoteAppList:_0x400193}=await import(_0x32918f(0x216)),_0x532671=await _0x400193({'env':_0x31dbfd[_0x32918f(0x20b)]??_0x32918f(0x215),'accessKey':_0x31dbfd[_0x32918f(0x1f8)]}),_0x9ec9f2=findAppByName(_0x532671[_0x32918f(0x218)],_0x2bf3a);if(_0x9ec9f2&&!isRuntimeAccessibleApp(_0x9ec9f2))throw runtimeInaccessibleAppError(_0x9ec9f2,'\x22'+_0x2bf3a+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1f9019,_0x5d469b,_0x23a30e){const _0x47b27b=a91_0x55155e;if(_0x1f9019[_0x47b27b(0x21f)]===![]||!_0x5d469b[_0x47b27b(0x1f8)])return;const {getRemoteAppList:_0x5a9ee8}=await import(_0x47b27b(0x216)),_0x1c768b=await _0x5a9ee8({'env':_0x5d469b[_0x47b27b(0x20b)]??'production','accessKey':_0x5d469b[_0x47b27b(0x1f8)]}),_0x55b3ca=findAppByCode(_0x1c768b['items'],_0x23a30e);if(_0x55b3ca&&!isRuntimeAccessibleApp(_0x55b3ca))throw runtimeInaccessibleAppError(_0x55b3ca,_0x47b27b(0x1fa)+_0x23a30e+'\x22');}export async function runCommand(_0x10bc5a,_0x1dbb2b){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x10bc5a)?withUpdateNotice(_0x10bc5a):_0x10bc5a,_0x1dbb2b,runnerAdapter);}function shouldAttachUpdateNotice(_0x258d5e){const _0xf77c73=a91_0x55155e;return![_0xf77c73(0x226),_0xf77c73(0x200),_0xf77c73(0x21d)][_0xf77c73(0x20f)](_0x258d5e[_0xf77c73(0x1f7)]);}function a91_0x3a3b(){const _0x47849b=['execute','.appcode\x20to\x20','validation','408738lHSfsn','Run\x20`','mergedCli','21pxewrW','defaultApp','../core/sdk-client.js','env','4oZQRqc','resolve','authRequired','includes','filter','\x20or\x20pass\x20','newConfigFileName','app','pageSize','production','../commands/app/remote-source.js','currentApp','items','trim','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','verbose','doctor','6170808qmusev','requiresAppCode','appCode','string','format','91893fbYyir','rawFlags','_notice','update','appCodeSource','ClientAk','2646725KzmHmo','error','local-alias','6bfDQWD','ACCESS_KEY','cancelled','map','\x20\x20To\x20proceed:\x20','High-risk\x20operation\x20`','object','defaultPageSize','nonInteractive','has','APPCODE','495736GYVqzN','Set\x20accessKey\x20in\x20','service','accessKey','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','appcode\x20\x22','riskLevel','886380lfDOgp','Unknown\x20app:\x20','5330619tKhhaC','command','schema','isNonInteractive'];a91_0x3a3b=function(){return _0x47849b;};return a91_0x3a3b();}function withUpdateNotice(_0x5878d1){return{..._0x5878d1,async 'execute'(_0x4279d2){const _0x25513a=a91_0xe260,_0xe568a7=shouldResolveUpdateNotice(_0x4279d2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x25513a(0x20d)](null),_0x2734d6=await _0x5878d1[_0x25513a(0x202)](_0x4279d2);return attachUpdateNotice(_0x2734d6,await _0xe568a7);}};}function shouldResolveUpdateNotice(_0x49a93f){const _0x4e1065=a91_0x55155e;return _0x49a93f[_0x4e1065(0x222)]==='pretty'&&!_0x49a93f[_0x4e1065(0x1f2)];}function attachUpdateNotice(_0x1350d8,_0x13a9d1){const _0x328040=a91_0x55155e;if(!_0x13a9d1||!_0x1350d8||typeof _0x1350d8!==_0x328040(0x1f0))return _0x1350d8;const _0x4e35af=_0x1350d8,_0x295990=typeof _0x4e35af[_0x328040(0x225)]===_0x328040(0x1f0)&&_0x4e35af[_0x328040(0x225)]!==null?_0x4e35af['_notice']:{};return{..._0x4e35af,'_notice':{..._0x295990,'update':_0x13a9d1}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cdec3,_0x36b7f4){const _0x533171=a92_0x27df,_0x4fe5e5=_0x4cdec3();while(!![]){try{const _0x2744f3=parseInt(_0x533171(0x176))/0x1+parseInt(_0x533171(0x17b))/0x2*(-parseInt(_0x533171(0x179))/0x3)+parseInt(_0x533171(0x16a))/0x4+parseInt(_0x533171(0x16b))/0x5*(-parseInt(_0x533171(0x16c))/0x6)+-parseInt(_0x533171(0x177))/0x7+parseInt(_0x533171(0x173))/0x8*(-parseInt(_0x533171(0x175))/0x9)+parseInt(_0x533171(0x174))/0xa*(parseInt(_0x533171(0x17c))/0xb);if(_0x2744f3===_0x36b7f4)break;else _0x4fe5e5['push'](_0x4fe5e5['shift']());}catch(_0xd2fc74){_0x4fe5e5['push'](_0x4fe5e5['shift']());}}}(a92_0x3de9,0xc4e33));import{buildSchemaPayload as a92_0x124942}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a92_0x3de9(){const _0x2cae48=['../commands/registry.js','map','24nCpbjI','23091020RFxXLf','2035881QCmhdM','946934UPfObP','506072GERoQn','filter','3217248VbxROf','requiresAuth','2TjBcqp','11xkGviG','2635640xyWWXS','20otPvsv','1927734gqfeqG','service','required','has','none'];a92_0x3de9=function(){return _0x2cae48;};return a92_0x3de9();}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 a92_0x27df(_0x4ad50c,_0x4083cc){_0x4ad50c=_0x4ad50c-0x16a;const _0x3de957=a92_0x3de9();let _0x27dff1=_0x3de957[_0x4ad50c];return _0x27dff1;}export async function buildSchemaPayload(){const _0x50e7e7=a92_0x27df,{serviceRegistry:_0x219095,findDefinition:_0x233d5f}=await import(_0x50e7e7(0x171)),_0x28c5ac=new Set(_0x219095['map'](_0x55445a=>_0x55445a[_0x50e7e7(0x16d)])),_0x13097e=listDynamicServiceEntries()[_0x50e7e7(0x178)](_0xb65083=>!_0x28c5ac[_0x50e7e7(0x16f)](_0xb65083[_0x50e7e7(0x16d)])),_0xaa1983=a92_0x124942({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x219095,_0x13097e),'buildAllFlags':buildAllFlags,'findDefinition':(_0x42c7bb,_0x1258bd)=>_0x233d5f(_0x42c7bb,_0x1258bd)??findDynamicServiceDefinition(_0x42c7bb,_0x1258bd)});return normalizeSchemaPayload(_0xaa1983);}function normalizeSchemaPayload(_0x57c6ec){const _0xe38edf=a92_0x27df;return{..._0x57c6ec,'schemaVersion':0x2,'services':_0x57c6ec['services'][_0xe38edf(0x172)](_0x1353a8=>({..._0x1353a8,'commands':_0x1353a8['commands']['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x207532){const _0x873e7d=a92_0x27df,_0x45d932=_0x207532;return{..._0x207532,'auth':_0x45d932['auth']??(_0x207532[_0x873e7d(0x17a)]?_0x873e7d(0x16e):_0x873e7d(0x170))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c9556,_0x3d62da){const _0x3e67af=a93_0x68b8,_0x4ac166=_0x2c9556();while(!![]){try{const _0x48d446=parseInt(_0x3e67af(0x1f2))/0x1+-parseInt(_0x3e67af(0x1f5))/0x2+parseInt(_0x3e67af(0x1fb))/0x3*(parseInt(_0x3e67af(0x1f4))/0x4)+parseInt(_0x3e67af(0x1f3))/0x5+parseInt(_0x3e67af(0x1f9))/0x6*(-parseInt(_0x3e67af(0x1f1))/0x7)+-parseInt(_0x3e67af(0x1f7))/0x8+parseInt(_0x3e67af(0x1fa))/0x9;if(_0x48d446===_0x3d62da)break;else _0x4ac166['push'](_0x4ac166['shift']());}catch(_0x44406a){_0x4ac166['push'](_0x4ac166['shift']());}}}(a93_0x16a4,0x3c1fa));function a93_0x16a4(){const _0x94dee5=['slice','790888DHYRxC','service','18XHJTEZ','1513422GwRvNE','3252ahaFKR','length','95949FdIzFR','440070llkpaK','670305pRgaFc','268CcXSeP','857338KGAGAV'];a93_0x16a4=function(){return _0x94dee5;};return a93_0x16a4();}function a93_0x68b8(_0x511b5c,_0xd47127){_0x511b5c=_0x511b5c-0x1f1;const _0x16a49c=a93_0x16a4();let _0x68b8dd=_0x16a49c[_0x511b5c];return _0x68b8dd;}export function insertDynamicServicesAfterServiceTree(_0x2b9a18,_0x387261){const _0x445fb6=a93_0x68b8;if(_0x387261[_0x445fb6(0x1fc)]===0x0)return[..._0x2b9a18];const _0x2757fe=_0x2b9a18['findIndex'](_0x40ad3c=>_0x40ad3c[_0x445fb6(0x1f8)]===_0x445fb6(0x1f8));if(_0x2757fe<0x0)return[..._0x2b9a18,..._0x387261];return[..._0x2b9a18[_0x445fb6(0x1f6)](0x0,_0x2757fe+0x1),..._0x387261,..._0x2b9a18[_0x445fb6(0x1f6)](_0x2757fe+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a94_0x4d87(){var _0x2292e3=['1833975ZyZAVR','351498Ypdpax','19230930lGPjCO','3874906TnXJfT','8yOzjoe','47010cooVrM','6HxHQqP','136PXVHgY','914230QPeWnX','329772wDCizU'];a94_0x4d87=function(){return _0x2292e3;};return a94_0x4d87();}(function(_0x226445,_0xdbf32){var _0x24f634=a94_0x373f,_0x1b407f=_0x226445();while(!![]){try{var _0x66a431=-parseInt(_0x24f634(0xd9))/0x1+-parseInt(_0x24f634(0xd7))/0x2+parseInt(_0x24f634(0xd3))/0x3*(-parseInt(_0x24f634(0xd5))/0x4)+parseInt(_0x24f634(0xd6))/0x5*(parseInt(_0x24f634(0xd4))/0x6)+-parseInt(_0x24f634(0xdb))/0x7*(parseInt(_0x24f634(0xd2))/0x8)+-parseInt(_0x24f634(0xd8))/0x9+parseInt(_0x24f634(0xda))/0xa;if(_0x66a431===_0xdbf32)break;else _0x1b407f['push'](_0x1b407f['shift']());}catch(_0x568d7e){_0x1b407f['push'](_0x1b407f['shift']());}}}(a94_0x4d87,0x491b2));function a94_0x373f(_0x3f6b8f,_0x5d05df){_0x3f6b8f=_0x3f6b8f-0xd2;var _0x4d87ac=a94_0x4d87();var _0x373f4d=_0x4d87ac[_0x3f6b8f];return _0x373f4d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x49984c=a95_0x2802;(function(_0x2a5ffc,_0x1a1d50){const _0x3f073e=a95_0x2802,_0x15455a=_0x2a5ffc();while(!![]){try{const _0x355434=parseInt(_0x3f073e(0xf8))/0x1+parseInt(_0x3f073e(0xfe))/0x2*(-parseInt(_0x3f073e(0xf7))/0x3)+parseInt(_0x3f073e(0xfa))/0x4+parseInt(_0x3f073e(0x100))/0x5+parseInt(_0x3f073e(0x101))/0x6*(-parseInt(_0x3f073e(0x104))/0x7)+parseInt(_0x3f073e(0x103))/0x8*(-parseInt(_0x3f073e(0xff))/0x9)+-parseInt(_0x3f073e(0xfc))/0xa*(-parseInt(_0x3f073e(0x102))/0xb);if(_0x355434===_0x1a1d50)break;else _0x15455a['push'](_0x15455a['shift']());}catch(_0x16b560){_0x15455a['push'](_0x15455a['shift']());}}}(a95_0x5dd6,0x28af5));function a95_0x5dd6(){const _0x28993c=['v2.1.18-beta.1','847060txmAcr','969f480','2023870hnGTFA','2026-07-28T08:58:10.443Z','4742BHsqpZ','522oPgdyX','912295EeCxnK','16908eFXHFu','11WixxsD','29608TCqNSu','595hjIigR','345ndcNUC','296887wUfpMN'];a95_0x5dd6=function(){return _0x28993c;};return a95_0x5dd6();}export const VERSION='2.1.18-beta.1';export const GIT_TAG=a95_0x49984c(0xf9);function a95_0x2802(_0x56c5a8,_0x2c29c9){_0x56c5a8=_0x56c5a8-0xf7;const _0x5dd627=a95_0x5dd6();let _0x2802b8=_0x5dd627[_0x56c5a8];return _0x2802b8;}export const GIT_COMMIT=a95_0x49984c(0xfb);export const BUILD_TIME=a95_0x49984c(0xfd);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bc73a,_0x1faac0){const _0x34c6d5=a96_0x584c,_0x5bb04d=_0x5bc73a();while(!![]){try{const _0x10601e=-parseInt(_0x34c6d5(0x12e))/0x1+-parseInt(_0x34c6d5(0x134))/0x2+parseInt(_0x34c6d5(0x131))/0x3*(-parseInt(_0x34c6d5(0x135))/0x4)+-parseInt(_0x34c6d5(0x138))/0x5+parseInt(_0x34c6d5(0x130))/0x6*(-parseInt(_0x34c6d5(0x137))/0x7)+-parseInt(_0x34c6d5(0x133))/0x8+-parseInt(_0x34c6d5(0x12d))/0x9*(-parseInt(_0x34c6d5(0x139))/0xa);if(_0x10601e===_0x1faac0)break;else _0x5bb04d['push'](_0x5bb04d['shift']());}catch(_0x133432){_0x5bb04d['push'](_0x5bb04d['shift']());}}}(a96_0x3b9c,0x2f164));import{jsx as a96_0x16ddd4,jsxs as a96_0x2fd043}from'react/jsx-runtime';function a96_0x3b9c(){const _0x3ab635=['\x20--help','253278gUCfev','3942OcIHBu','\x20to\x20view\x20available\x20commands.','2712944IZlBlb','2696ljxeZx','732prWUWc','green','28jdaCDU','1337290nMXFXu','302450mjxeIK','423UNRXZX','211409zQXnYk'];a96_0x3b9c=function(){return _0x3ab635;};return a96_0x3b9c();}function a96_0x584c(_0x13ae6f,_0xf8c3c5){_0x13ae6f=_0x13ae6f-0x12d;const _0x3b9cb2=a96_0x3b9c();let _0x584cda=_0x3b9cb2[_0x13ae6f];return _0x584cda;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x8452e9=a96_0x584c,{exit:_0x173019}=useApp();return useEffect(()=>{_0x173019();},[_0x173019]),a96_0x2fd043(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a96_0x16ddd4(Box,{'children':a96_0x16ddd4(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a96_0x2fd043(Box,{'marginTop':0x1,'children':[a96_0x16ddd4(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a96_0x16ddd4(Text,{'bold':!![],'color':_0x8452e9(0x136),'children':CLI_BIN_NAME+_0x8452e9(0x12f)}),a96_0x16ddd4(Text,{'dimColor':!![],'children':_0x8452e9(0x132)})]})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x58ca(_0x26762f,_0x4d148b){_0x26762f=_0x26762f-0x1b7;const _0xb46d5d=a97_0xb46d();let _0x58cac0=_0xb46d5d[_0x26762f];return _0x58cac0;}const a97_0x5d31bd=a97_0x58ca;(function(_0x5175c7,_0x748323){const _0x9ca356=a97_0x58ca,_0x4e090a=_0x5175c7();while(!![]){try{const _0x3988a8=-parseInt(_0x9ca356(0x1bc))/0x1+parseInt(_0x9ca356(0x1c2))/0x2+parseInt(_0x9ca356(0x1b9))/0x3+-parseInt(_0x9ca356(0x1c5))/0x4*(parseInt(_0x9ca356(0x1b8))/0x5)+-parseInt(_0x9ca356(0x1ba))/0x6+-parseInt(_0x9ca356(0x1c9))/0x7*(-parseInt(_0x9ca356(0x1c6))/0x8)+parseInt(_0x9ca356(0x1cb))/0x9;if(_0x3988a8===_0x748323)break;else _0x4e090a['push'](_0x4e090a['shift']());}catch(_0x5b0a19){_0x4e090a['push'](_0x4e090a['shift']());}}}(a97_0xb46d,0xb3a17));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a97_0x1bc37a}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a97_0x1bc37a;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a97_0x5d31bd(0x1bb)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x45fa7b,_0x3f2d20=LOVRABET_SKILL_SOURCE,_0x4370f5){const _0x536425=a97_0x5d31bd;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x510514=_0x4370f5?.['stdio']??'inherit',_0x4c20fc=resolveNpmBin(_0x536425(0x1c7)),_0x5ddb15=['skills','add',_0x3f2d20,'-g','-y'],_0x211a42=[_0x4c20fc,..._0x5ddb15][_0x536425(0x1c1)]('\x20');console[_0x536425(0x1c0)]('*\x20'+_0x211a42);const _0x35c250=spawnSync(_0x4c20fc,_0x5ddb15,{'cwd':_0x45fa7b,'stdio':_0x510514,'env':process.env,'shell':![]});if(_0x35c250['status']===0x0)return{'ok':!![],'status':0x0};let _0x3e8f77=_0x536425(0x1ca)+(_0x35c250['status']??_0x536425(0x1be));if(_0x510514===_0x536425(0x1bd)){const _0x5ccd61=_0x35c250['stderr']?_0x35c250[_0x536425(0x1c4)][_0x536425(0x1b7)]()[_0x536425(0x1c3)]():'',_0x3fcd5f=_0x35c250[_0x536425(0x1c8)]?_0x35c250['stdout'][_0x536425(0x1b7)]()[_0x536425(0x1c3)]():'';if(_0x5ccd61)_0x3e8f77=_0x5ccd61;else{if(_0x3fcd5f)_0x3e8f77=_0x3fcd5f;}}return{'ok':![],'status':_0x35c250[_0x536425(0x1bf)]??null,'error':_0x3e8f77};}function a97_0xb46d(){const _0xd57ad6=['710168RBEdav','144HpGBTR','npx','stdout','450100AtkGkN','exit\x20','2122866uqvgiQ','toString','15lFrRzT','1045242DUHQpt','3501618HhrBtS','skipNpxSkillsEnvSuffix','806440TpaKzq','pipe','unknown','status','log','join','1833496rKKGWf','trim','stderr'];a97_0xb46d=function(){return _0xd57ad6;};return a97_0xb46d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x3807dc=a98_0x23d9;function a98_0x36e8(){const _0x3544e8=['.git','.hg','8izYwUW','203446jOgGdX','410gTPNsq','22857xAeJoc','12bnBTDB','build','10027866ytoflH','8ufMtRP','.turbo','lovrabet.skill.json','387135diHgKt','14937659CsmioE','.cache','10759567UzYApN','5543195KzNLeD','568JFCkLA','SKILL.md','node_modules','.svn','.next'];a98_0x36e8=function(){return _0x3544e8;};return a98_0x36e8();}(function(_0x1b3481,_0x249ce1){const _0x51c596=a98_0x23d9,_0x43bbea=_0x1b3481();while(!![]){try{const _0x5c3f2a=-parseInt(_0x51c596(0x10a))/0x1*(-parseInt(_0x51c596(0x104))/0x2)+parseInt(_0x51c596(0x106))/0x3*(-parseInt(_0x51c596(0xfc))/0x4)+parseInt(_0x51c596(0xfb))/0x5+parseInt(_0x51c596(0x109))/0x6+-parseInt(_0x51c596(0xfa))/0x7*(-parseInt(_0x51c596(0x103))/0x8)+-parseInt(_0x51c596(0x10d))/0x9*(parseInt(_0x51c596(0x105))/0xa)+-parseInt(_0x51c596(0x10e))/0xb*(parseInt(_0x51c596(0x107))/0xc);if(_0x5c3f2a===_0x249ce1)break;else _0x43bbea['push'](_0x43bbea['shift']());}catch(_0x19bb11){_0x43bbea['push'](_0x43bbea['shift']());}}}(a98_0x36e8,0xe2665));export const METADATA_FILE=a98_0x3807dc(0x10c);export const SKILL_FILE=a98_0x3807dc(0xfd);function a98_0x23d9(_0xc77066,_0x237a7c){_0xc77066=_0xc77066-0xfa;const _0x36e8bd=a98_0x36e8();let _0x23d9aa=_0x36e8bd[_0xc77066];return _0x23d9aa;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);export const IGNORED_DIR_NAMES=new Set([a98_0x3807dc(0x101),a98_0x3807dc(0x102),a98_0x3807dc(0xff),a98_0x3807dc(0xfe),a98_0x3807dc(0x100),'dist',a98_0x3807dc(0x108),'coverage',a98_0x3807dc(0x10b),a98_0x3807dc(0x10f)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cbdd8,_0x2a11be){const _0x126c4b=a99_0x22f9,_0x2be957=_0x2cbdd8();while(!![]){try{const _0x3c1b9e=-parseInt(_0x126c4b(0x1f4))/0x1*(-parseInt(_0x126c4b(0x1ea))/0x2)+parseInt(_0x126c4b(0x1f3))/0x3*(parseInt(_0x126c4b(0x1ed))/0x4)+parseInt(_0x126c4b(0x1f1))/0x5+parseInt(_0x126c4b(0x1ef))/0x6+parseInt(_0x126c4b(0x1f8))/0x7+parseInt(_0x126c4b(0x1f0))/0x8+-parseInt(_0x126c4b(0x1ec))/0x9;if(_0x3c1b9e===_0x2a11be)break;else _0x2be957['push'](_0x2be957['shift']());}catch(_0xfaabc5){_0x2be957['push'](_0x2be957['shift']());}}}(a99_0x2993,0xb52f6));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';function a99_0x22f9(_0x25d673,_0x2d7367){_0x25d673=_0x25d673-0x1ea;const _0x299307=a99_0x2993();let _0x22f96a=_0x299307[_0x25d673];return _0x22f96a;}import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';function a99_0x2993(){const _0x1e0864=['validation','endsWith','split','7949011lmGQFk','Unsafe\x20Skill\x20file\x20path:\x20','stringify','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','from','158PcwWBs','isSymbolicLink','32581134pgovHI','826552WwYlUF','startsWith','3514332HyOkqc','932576EfkNLN','2395930ENklce','utf8','21XwaVdT','7579Urwaat'];a99_0x2993=function(){return _0x1e0864;};return a99_0x2993();}export function resolveManagedFilePath(_0x2a8ff9,_0x530c40){const _0x3d5ba5=a99_0x22f9,_0x41447d=normalizeSkillRelativePath(_0x530c40),_0x35328e=realOrResolved(_0x2a8ff9),_0x212c8d=resolve(_0x35328e,..._0x41447d[_0x3d5ba5(0x1f7)]('/'));if(!isPathInside(_0x212c8d,_0x35328e))throw CliErrors[_0x3d5ba5(0x1f5)](_0x3d5ba5(0x1f9)+_0x530c40);return ensureNoSymlinkInManagedPath(_0x35328e,_0x41447d),_0x212c8d;}export function ensureNoSymlinkInManagedPath(_0xfb2fcf,_0x448d08){const _0x24c85f=a99_0x22f9;let _0x10a770=_0xfb2fcf;for(const _0xb2cb4a of _0x448d08['split']('/')){_0x10a770=resolve(_0x10a770,_0xb2cb4a);const _0x17d9cb=lstatIfPresent(_0x10a770);if(_0x17d9cb?.[_0x24c85f(0x1eb)]())throw CliErrors[_0x24c85f(0x1f5)](_0x24c85f(0x1fb)+_0x448d08);}}export function isDanglingSymlink(_0x17af92){const _0x595a55=a99_0x22f9;try{return lstatSync(_0x17af92)[_0x595a55(0x1eb)]();}catch{return![];}}export function resolveSymlinkTarget(_0x26a9ee){const _0x730614=readlinkSync(_0x26a9ee);return isAbsolute(_0x730614)?_0x730614:resolve(dirname(_0x26a9ee),_0x730614);}export function isPathInside(_0xb6d8dc,_0x4dd801){const _0x562749=a99_0x22f9,_0x21a9be=_0xb6d8dc[_0x562749(0x1f6)](sep)?_0xb6d8dc:''+_0xb6d8dc+sep,_0x34d959=_0x4dd801[_0x562749(0x1f6)](sep)?_0x4dd801:''+_0x4dd801+sep;return _0xb6d8dc===_0x4dd801||_0x21a9be[_0x562749(0x1ee)](_0x34d959);}export function realOrResolved(_0x2e7bca){try{return realpathSync(_0x2e7bca);}catch{return resolve(_0x2e7bca);}}export function lstatIfPresent(_0x197163){try{return lstatSync(_0x197163);}catch{return undefined;}}export function writeTextAtomic(_0x36bc0a,_0xdf5b12,_0x592867){const _0x9b28d1=a99_0x22f9;writeBytesAtomic(_0x36bc0a,Buffer[_0x9b28d1(0x1fc)](_0xdf5b12,_0x9b28d1(0x1f2)),_0x592867);}export function writeBytesAtomic(_0xc7b84d,_0x261162,_0x3dbdc9){const _0x5cc4bc=_0xc7b84d+'.tmp';try{writeFileSync(_0x5cc4bc,_0x261162,{'mode':_0x3dbdc9}),renameSync(_0x5cc4bc,_0xc7b84d);}catch(_0x3e6c94){try{rmSync(_0x5cc4bc,{'force':!![]});}catch{}throw _0x3e6c94;}}export function writeJsonAtomic(_0x573d8c,_0x3d392f){const _0xa5fbc4=a99_0x22f9;writeTextAtomic(_0x573d8c,JSON[_0xa5fbc4(0x1fa)](_0x3d392f,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2387b1,_0x3e689b){const _0x34fc33=a100_0x57c8,_0x1a0037=_0x2387b1();while(!![]){try{const _0x1375e4=-parseInt(_0x34fc33(0x133))/0x1+-parseInt(_0x34fc33(0x132))/0x2*(-parseInt(_0x34fc33(0x136))/0x3)+-parseInt(_0x34fc33(0x137))/0x4*(parseInt(_0x34fc33(0x131))/0x5)+parseInt(_0x34fc33(0x130))/0x6*(-parseInt(_0x34fc33(0x139))/0x7)+-parseInt(_0x34fc33(0x135))/0x8*(parseInt(_0x34fc33(0x138))/0x9)+parseInt(_0x34fc33(0x12e))/0xa+parseInt(_0x34fc33(0x134))/0xb*(parseInt(_0x34fc33(0x12c))/0xc);if(_0x1375e4===_0x3e689b)break;else _0x1a0037['push'](_0x1a0037['shift']());}catch(_0x11ad17){_0x1a0037['push'](_0x1a0037['shift']());}}}(a100_0x29a4,0x1c8d4));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x25eaea){const _0x273083=a100_0x57c8;return createHash(_0x273083(0x12f))['update'](_0x25eaea)[_0x273083(0x12d)](_0x273083(0x12a));}export function fileHash(_0x46053b){return bufferSha256(fileContent(_0x46053b));}export function bufferSha256(_0x5c1046){const _0x50e7a4=a100_0x57c8;return createHash(_0x50e7a4(0x12f))[_0x50e7a4(0x128)](_0x5c1046)[_0x50e7a4(0x12d)]('hex');}function a100_0x29a4(){const _0x3da6cd=['46204HBlKBT','18edBuai','308jXNoJG','update','path','hex','size','12QfDNWR','digest','1295660HBGEWc','sha256','2712THdncf','100gbKsWW','74IfJvtp','132159UwlKlc','3249015wXVRrG','103112XOiDaB','8178yHyxoI'];a100_0x29a4=function(){return _0x3da6cd;};return a100_0x29a4();}function a100_0x57c8(_0x558ad0,_0x29b25b){_0x558ad0=_0x558ad0-0x128;const _0x29a43a=a100_0x29a4();let _0x57c8fd=_0x29a43a[_0x558ad0];return _0x57c8fd;}export function fileTreeHash(_0x4d01b6){const _0x4502ef=a100_0x57c8,_0x58c1e2=createHash(_0x4502ef(0x12f));for(const _0x2b0a4c of normalizeManifestFiles(_0x4d01b6)){_0x58c1e2[_0x4502ef(0x128)](_0x2b0a4c[_0x4502ef(0x129)]),_0x58c1e2[_0x4502ef(0x128)]('\x00'),_0x58c1e2['update'](_0x2b0a4c[_0x4502ef(0x12f)]),_0x58c1e2[_0x4502ef(0x128)]('\x00'),_0x58c1e2['update'](String(_0x2b0a4c[_0x4502ef(0x12b)])),_0x58c1e2['update']('\x00');}return _0x58c1e2[_0x4502ef(0x12d)](_0x4502ef(0x12a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x245d3a,_0x56d9c6){const _0x1ad0e=a101_0x151c,_0x3b9442=_0x245d3a();while(!![]){try{const _0x57e9fe=-parseInt(_0x1ad0e(0x1d5))/0x1*(parseInt(_0x1ad0e(0x1d1))/0x2)+parseInt(_0x1ad0e(0x1b5))/0x3+parseInt(_0x1ad0e(0x1c1))/0x4+parseInt(_0x1ad0e(0x1ab))/0x5*(-parseInt(_0x1ad0e(0x1cd))/0x6)+-parseInt(_0x1ad0e(0x1a6))/0x7*(parseInt(_0x1ad0e(0x1cc))/0x8)+-parseInt(_0x1ad0e(0x1be))/0x9*(parseInt(_0x1ad0e(0x1d0))/0xa)+parseInt(_0x1ad0e(0x1bf))/0xb*(parseInt(_0x1ad0e(0x1b6))/0xc);if(_0x57e9fe===_0x56d9c6)break;else _0x3b9442['push'](_0x3b9442['shift']());}catch(_0x4e8675){_0x3b9442['push'](_0x3b9442['shift']());}}}(a101_0x5e2d,0x3ad48));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a101_0x12ef64 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';function a101_0x5e2d(){const _0x39a021=['Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','815463LAZYKs','12YUYvVk','validation','unchanged','removed','personal','builtin','get','managedRoot','128556kPZpTt','4908497jTLrSV','trim','1597768PbaFFr','env','appCode','created','skillCode','has','contentHash','length','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','metadata-mismatch','updated','1730072zPKQNV','2610066JIKcVL','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','skill','140iYkQpf','712nThVCC','values','accessKey','scopes','71hcrsZP','dir','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','isSymbolicLink','company','7kxaSSg','set','filter','map','scope','5iblsZO','name','startsWith','isDirectory','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','skipped','push','external-symlink','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'];a101_0x5e2d=function(){return _0x39a021;};return a101_0x5e2d();}import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a101_0x12ef64;export function linkEffectiveRuntimeSkills(_0x85caa6,_0x26a467,_0x1c3d26={}){const _0x270839=a101_0x151c,_0x320ba9=new Map();for(const _0x46e574 of _0x85caa6){const _0x11d205=_0x46e574[_0x270839(0x1cf)][_0x270839(0x1c5)];if(!_0x11d205)continue;const _0x351113=_0x320ba9[_0x270839(0x1bc)](_0x11d205);(!_0x351113||_0x46e574[_0x270839(0x1aa)]===_0x270839(0x1ba))&&_0x320ba9[_0x270839(0x1a7)](_0x11d205,_0x46e574);}const _0x3df0d6=[],_0x165a74=resolveSkillSyncPaths(_0x1c3d26);for(const _0x256de9 of _0x320ba9[_0x270839(0x1d2)]()){const _0x361825=requireSkillCode(_0x256de9['skill']),_0x5990a8=_0x26a467+'--'+_0x361825;for(const _0x1a9326 of runtimeAgentSkillRoots(_0x165a74)){_0x3df0d6[_0x270839(0x1b1)](ensureManagedSymlink(resolve(_0x1a9326,_0x5990a8),_0x256de9[_0x270839(0x1d6)],_0x165a74[_0x270839(0x1bd)]));}}return _0x3df0d6;}export function pruneStaleRuntimeSkillLinks(_0x59e3ef,_0x267761,_0xfb08ca={},_0x592721){const _0x31949c=a101_0x151c,_0x21aafd=resolveSkillSyncPaths(_0xfb08ca),_0x415fbe=new Set([..._0x267761]['map'](_0x1470af=>_0x1470af[_0x31949c(0x1c0)]())[_0x31949c(0x1a8)](Boolean)),_0x52d7fa=_0x592721?new Set([..._0x592721][_0x31949c(0x1a9)](_0x425d7a=>_0x425d7a[_0x31949c(0x1c0)]())['filter'](Boolean)):undefined,_0xb10f46=[];for(const _0xa185f5 of runtimeAgentSkillRoots(_0x21aafd)){for(const _0x3f14fb of managedAppSkillLinkPaths(_0xa185f5,_0x59e3ef)){const _0x396ea0=basename(_0x3f14fb)['slice']((_0x59e3ef+'--')[_0x31949c(0x1c8)]);if(_0x52d7fa&&!_0x52d7fa['has'](_0x396ea0))continue;if(_0x415fbe['has'](_0x396ea0))continue;_0xb10f46['push'](removeManagedSkillLink(_0x3f14fb,_0x21aafd[_0x31949c(0x1bd)]));}}return _0xb10f46;}export function pruneStaleRuntimeSkillCache(_0x30e981,_0x9855e5={}){const _0x12c40c=a101_0x151c,_0x35f9ed=new Set([..._0x30e981['activeSkillCodes']][_0x12c40c(0x1a9)](_0x26f789=>_0x26f789[_0x12c40c(0x1c0)]())[_0x12c40c(0x1a8)](Boolean)),_0x4bc2bc=_0x30e981['pruneSkillCodes']?new Set([..._0x30e981['pruneSkillCodes']]['map'](_0x2ef328=>_0x2ef328[_0x12c40c(0x1c0)]())[_0x12c40c(0x1a8)](Boolean)):undefined,_0x511e8e=_0x30e981[_0x12c40c(0x1d4)]??[_0x12c40c(0x1ba),_0x12c40c(0x1d9)],_0x19f6da=resolve(getRuntimeSkillCacheRoot(_0x30e981[_0x12c40c(0x1c2)],_0x30e981[_0x12c40c(0x1d3)],_0x9855e5),safePathSegment(_0x30e981['appCode'],_0x12c40c(0x1c3))),_0x47b1a2=[];for(const _0x5da3ba of _0x511e8e){const _0x15a5e7=resolve(_0x19f6da,_0x5da3ba);if(!existsSync(_0x15a5e7))continue;for(const _0xead56 of readdirSync(_0x15a5e7,{'withFileTypes':!![]})){if(!_0xead56['isDirectory']())continue;const _0xc957e4=_0xead56[_0x12c40c(0x1ac)];if(_0x4bc2bc&&!_0x4bc2bc['has'](_0xc957e4))continue;if(_0x35f9ed[_0x12c40c(0x1c6)](_0xc957e4))continue;const _0x161377=resolve(_0x15a5e7,_0xc957e4),_0x2534ce=readMetadataIfPresent(resolve(_0x161377,METADATA_FILE));if(_0x2534ce?.[_0x12c40c(0x1c3)]!==_0x30e981[_0x12c40c(0x1c3)]||_0x2534ce['scope']!==_0x5da3ba||_0x2534ce['skillCode']!==_0xc957e4){_0x47b1a2[_0x12c40c(0x1b1)]({'path':_0x161377,'action':_0x12c40c(0x1b0),'reason':_0x12c40c(0x1ca)});continue;}removeSync(_0x161377),_0x47b1a2['push']({'path':_0x161377,'action':_0x12c40c(0x1b9)});}}return _0x47b1a2;}export function linkGlobalRuntimeSkills(_0x1ac744,_0x19d108={}){const _0x118d6d=a101_0x151c,_0x2ac260=resolveSkillSyncPaths(_0x19d108),_0x27c8ab=[];for(const _0x4cdf3f of _0x1ac744){if(_0x4cdf3f[_0x118d6d(0x1aa)]!==_0x118d6d(0x1bb))throw CliErrors['validation']('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x4cdf3f[_0x118d6d(0x1aa)]);const _0x231c2d=requireSkillCode(_0x4cdf3f[_0x118d6d(0x1cf)]),_0x5510bd=copyManagedSkillDirectory(_0x4cdf3f['dir'],resolve(_0x2ac260['agentsSkillsDir'],_0x231c2d));_0x27c8ab[_0x118d6d(0x1b1)]({..._0x5510bd,'contentHash':_0x4cdf3f[_0x118d6d(0x1c7)]});}return _0x27c8ab;}function a101_0x151c(_0x2fc6d1,_0x4182b1){_0x2fc6d1=_0x2fc6d1-0x1a6;const _0x5e2d43=a101_0x5e2d();let _0x151cf0=_0x5e2d43[_0x2fc6d1];return _0x151cf0;}function ensureManagedSymlink(_0x24f536,_0x59cf03,_0x5e5079){const _0x509a90=a101_0x151c;mkdirSync(dirname(_0x24f536),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x24f536)||isDanglingSymlink(_0x24f536)){const _0x44c6ca=lstatSync(_0x24f536);if(!_0x44c6ca['isSymbolicLink']())throw CliErrors[_0x509a90(0x1b7)](_0x509a90(0x1b3)+_0x24f536);const _0xffb0e6=resolveSymlinkTarget(_0x24f536);if(!isPathInside(realOrResolved(_0xffb0e6),realOrResolved(_0x5e5079)))throw CliErrors[_0x509a90(0x1b7)](_0x509a90(0x1ce)+_0x24f536);if(realOrResolved(_0xffb0e6)===realOrResolved(_0x59cf03))return{'path':_0x24f536,'target':_0x59cf03,'action':_0x509a90(0x1b8)};return unlinkSync(_0x24f536),symlinkSync(_0x59cf03,_0x24f536,'dir'),{'path':_0x24f536,'target':_0x59cf03,'action':'updated'};}return symlinkSync(_0x59cf03,_0x24f536,_0x509a90(0x1d6)),{'path':_0x24f536,'target':_0x59cf03,'action':_0x509a90(0x1c4)};}function managedAppSkillLinkPaths(_0x2f4e7c,_0x20710b){const _0x212c8d=a101_0x151c;if(!existsSync(_0x2f4e7c))return[];const _0x3f57c1=_0x20710b+'--';return readdirSync(_0x2f4e7c,{'withFileTypes':!![]})[_0x212c8d(0x1a8)](_0x4a1cba=>_0x4a1cba['name'][_0x212c8d(0x1ad)](_0x3f57c1))[_0x212c8d(0x1a9)](_0x5a503a=>resolve(_0x2f4e7c,_0x5a503a[_0x212c8d(0x1ac)]));}function removeManagedSkillLink(_0x3d7c14,_0x2475a4){const _0x15b479=a101_0x151c,_0x3cbecc=lstatIfPresent(_0x3d7c14);if(!_0x3cbecc?.[_0x15b479(0x1d8)]())return{'path':_0x3d7c14,'action':_0x15b479(0x1b0),'reason':'not-managed-symlink'};const _0x543423=resolveSymlinkTarget(_0x3d7c14);if(!isPathInside(realOrResolved(_0x543423),realOrResolved(_0x2475a4)))return{'path':_0x3d7c14,'action':_0x15b479(0x1b0),'reason':_0x15b479(0x1b2)};return unlinkSync(_0x3d7c14),{'path':_0x3d7c14,'action':_0x15b479(0x1b9)};}export function copyManagedSkillDirectory(_0x24fefd,_0x107022){const _0x1bf83c=a101_0x151c,_0x486c40=resolve(_0x107022,METADATA_FILE),_0x47cc95=existsSync(_0x107022);if(_0x47cc95){const _0x8dcda0=lstatSync(_0x107022);if(_0x8dcda0[_0x1bf83c(0x1d8)]())throw CliErrors[_0x1bf83c(0x1b7)](_0x1bf83c(0x1c9)+_0x107022);if(!_0x8dcda0[_0x1bf83c(0x1ae)]())throw CliErrors['validation'](_0x1bf83c(0x1af)+_0x107022);const _0x525b79=readMetadataIfPresent(_0x486c40);if(_0x525b79?.['scope']!==_0x1bf83c(0x1bb))throw CliErrors['validation'](_0x1bf83c(0x1d7)+_0x107022);}ensureDirSync(dirname(_0x107022));const _0x1be41a=_0x47cc95?readMetadataIfPresent(_0x486c40)?.['contentHash']:undefined,_0x5321d2=readMetadataIfPresent(resolve(_0x24fefd,METADATA_FILE))?.[_0x1bf83c(0x1c7)];return _0x47cc95&&removeSync(_0x107022),copySkillDirectory(_0x24fefd,_0x107022),{'path':_0x107022,'target':_0x24fefd,'action':!_0x47cc95?'created':_0x1be41a===_0x5321d2?'unchanged':_0x1bf83c(0x1cb)};}function copySkillDirectory(_0xd6326e,_0x4d93d1){copySync(_0xd6326e,_0x4d93d1,{'dereference':![],'overwrite':!![],'filter'(_0x337259){const _0x184bc9=a101_0x151c;if(lstatSync(_0x337259)[_0x184bc9(0x1d8)]())throw CliErrors[_0x184bc9(0x1b7)](_0x184bc9(0x1b4)+_0x337259);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33150c,_0x5b1568){const _0x2aa0d=a102_0x132e,_0x1b6ac4=_0x33150c();while(!![]){try{const _0x19464c=-parseInt(_0x2aa0d(0x1db))/0x1*(parseInt(_0x2aa0d(0x1d4))/0x2)+parseInt(_0x2aa0d(0x1d6))/0x3+parseInt(_0x2aa0d(0x1e0))/0x4*(parseInt(_0x2aa0d(0x1e6))/0x5)+parseInt(_0x2aa0d(0x1de))/0x6*(-parseInt(_0x2aa0d(0x1cf))/0x7)+parseInt(_0x2aa0d(0x1c9))/0x8*(-parseInt(_0x2aa0d(0x1c8))/0x9)+parseInt(_0x2aa0d(0x1ca))/0xa+-parseInt(_0x2aa0d(0x1e7))/0xb*(parseInt(_0x2aa0d(0x1cd))/0xc);if(_0x19464c===_0x5b1568)break;else _0x1b6ac4['push'](_0x1b6ac4['shift']());}catch(_0x100729){_0x1b6ac4['push'](_0x1b6ac4['shift']());}}}(a102_0x1346,0x2cc96));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a102_0x1346(){const _0x1d3b9b=['env','80599raTsuQ','from','isSymbolicLink','293310JFjrOU','cacheDir','587348ALutOk','trim','isArray','scope','builtin','includes','10KCkvOI','5198083EmgpIb','local','map','sort','cache','source','metadataPath','get','push','name','linkedPaths','startsWith','linkedPath','52506gWMozX','136EffmxU','2478630DmJmSk','code','skillMdPath','12REVQOu','localeCompare','7feOiNi','dir','values','has','tags','2pSMtWU','filter','1029372hiiIhz','skillCode','link','appCode'];a102_0x1346=function(){return _0x1d3b9b;};return a102_0x1346();}import{readMetadataIfPresent}from'./metadata.js';function a102_0x132e(_0x46f89d,_0x2c6c5f){_0x46f89d=_0x46f89d-0x1be;const _0x1346e0=a102_0x1346();let _0x132ee8=_0x1346e0[_0x46f89d];return _0x132ee8;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x5696f9,_0xd4f6e9={}){const _0x130bf4=a102_0x132e,_0xe41249=safePathSegment(_0x5696f9[_0x130bf4(0x1d9)],_0x130bf4(0x1d9)),_0x26832e=normalizeRuntimeSkillScopes(_0x5696f9['scopes']),_0x5affff=new Set(_0x26832e),_0x11afc6=_0x5696f9['code']?.[_0x130bf4(0x1e1)](),_0x5384c7=new Map(),_0x406172=resolve(getRuntimeSkillCacheRoot(_0x5696f9[_0x130bf4(0x1da)],_0x5696f9['accessKey'],_0xd4f6e9),_0xe41249);for(const _0xa82896 of _0x26832e){for(const _0x5de5dc of localSkillEntryDirs(resolve(_0x406172,_0xa82896))){collectLocalRuntimeSkill(_0x5384c7,_0x5de5dc,{'appCode':_0xe41249,'scopes':_0x5affff,'code':_0x11afc6,'source':_0x130bf4(0x1bf)});}}const _0x88d6aa=resolveSkillSyncPaths(_0xd4f6e9);for(const _0x4d8604 of runtimeAgentSkillRoots(_0x88d6aa)){for(const _0x3cf59b of localSkillLinkCandidates(_0x4d8604,_0xe41249,_0x5affff)){collectLocalRuntimeSkill(_0x5384c7,_0x3cf59b,{'appCode':_0xe41249,'scopes':_0x5affff,'code':_0x11afc6,'source':_0x130bf4(0x1d8),'linkedPath':_0x3cf59b});}}return Array[_0x130bf4(0x1dc)](_0x5384c7[_0x130bf4(0x1d1)]())[_0x130bf4(0x1be)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x214648){const _0xcdf682=a102_0x132e;if(!existsSync(_0x214648))return[];return readdirSync(_0x214648,{'withFileTypes':!![]})[_0xcdf682(0x1d5)](_0x2221b4=>_0x2221b4['isDirectory']()||_0x2221b4[_0xcdf682(0x1dd)]())[_0xcdf682(0x1e9)](_0x580074=>resolve(_0x214648,_0x580074[_0xcdf682(0x1c4)]));}function localSkillLinkCandidates(_0x2d0a06,_0x366328,_0x24657b){const _0x549236=a102_0x132e;if(!existsSync(_0x2d0a06))return[];const _0x21c23e=_0x366328+'--';return readdirSync(_0x2d0a06,{'withFileTypes':!![]})['filter'](_0x3f1980=>_0x3f1980['isDirectory']()||_0x3f1980[_0x549236(0x1dd)]())[_0x549236(0x1d5)](_0x2e70c0=>_0x2e70c0[_0x549236(0x1c4)][_0x549236(0x1c6)](_0x21c23e)||_0x24657b['has'](_0x549236(0x1e4)))[_0x549236(0x1e9)](_0x256191=>resolve(_0x2d0a06,_0x256191[_0x549236(0x1c4)]));}function collectLocalRuntimeSkill(_0x44f154,_0x44e653,_0x4fc0a9){const _0xb35d52=a102_0x132e,_0x38845e=resolve(_0x44e653,METADATA_FILE),_0x10377d=readMetadataIfPresent(_0x38845e);if(!_0x10377d)return;if(_0x10377d['appCode']!==_0x4fc0a9['appCode'])return;if(!isRuntimeSkillScope(_0x10377d[_0xb35d52(0x1e3)])||!_0x4fc0a9['scopes'][_0xb35d52(0x1d2)](_0x10377d[_0xb35d52(0x1e3)]))return;const _0x23b67c=_0x10377d[_0xb35d52(0x1d7)]?.[_0xb35d52(0x1e1)]();if(!_0x23b67c)return;if(_0x4fc0a9[_0xb35d52(0x1cb)]&&_0x23b67c!==_0x4fc0a9['code'])return;const _0x1f7f9a=_0x10377d[_0xb35d52(0x1e3)]+':'+_0x23b67c,_0x19cb55=_0x4fc0a9['linkedPath']?[_0x4fc0a9[_0xb35d52(0x1c7)]]:[],_0x46edea=_0x44f154[_0xb35d52(0x1c2)](_0x1f7f9a);if(_0x46edea){_0x4fc0a9['source']===_0xb35d52(0x1bf)&&(_0x46edea[_0xb35d52(0x1d0)]=_0x44e653,_0x46edea[_0xb35d52(0x1df)]=_0x44e653,_0x46edea[_0xb35d52(0x1cc)]=resolve(_0x44e653,SKILL_FILE),_0x46edea[_0xb35d52(0x1c1)]=_0x38845e);for(const _0x1f2255 of _0x19cb55){!_0x46edea[_0xb35d52(0x1c5)][_0xb35d52(0x1e5)](_0x1f2255)&&_0x46edea[_0xb35d52(0x1c5)][_0xb35d52(0x1c3)](_0x1f2255);}_0x46edea[_0xb35d52(0x1c5)][_0xb35d52(0x1be)]();return;}_0x44f154['set'](_0x1f7f9a,{..._0x10377d,'tags':Array[_0xb35d52(0x1e2)](_0x10377d[_0xb35d52(0x1d3)])?_0x10377d[_0xb35d52(0x1d3)]:[],'scope':_0x10377d[_0xb35d52(0x1e3)],'source':_0xb35d52(0x1e8),'dir':_0x44e653,'cacheDir':_0x4fc0a9[_0xb35d52(0x1c0)]===_0xb35d52(0x1bf)?_0x44e653:undefined,'skillMdPath':resolve(_0x44e653,SKILL_FILE),'metadataPath':_0x38845e,'linkedPaths':_0x19cb55});}function compareLocalRuntimeSkills(_0x49367e,_0x4de45b){const _0x1a44dd=a102_0x132e,_0x17b506={'personal':0x0,'company':0x1,'builtin':0x2};return _0x17b506[_0x49367e[_0x1a44dd(0x1e3)]]-_0x17b506[_0x4de45b['scope']]||_0x49367e[_0x1a44dd(0x1d7)]['localeCompare'](_0x4de45b[_0x1a44dd(0x1d7)])||_0x49367e['dir'][_0x1a44dd(0x1ce)](_0x4de45b[_0x1a44dd(0x1d0)]);}
|