@lovrabet/lovrabet-cli 2.1.7-beta.5 → 2.1.7
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/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.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/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/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.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-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/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/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/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4fce62,_0x27e24f){const _0x4ec020=a74_0x4731,_0x1ab090=_0x4fce62();while(!![]){try{const _0x42b620=parseInt(_0x4ec020(0xbd))/0x1+-parseInt(_0x4ec020(0xbb))/0x2*(parseInt(_0x4ec020(0xb7))/0x3)+parseInt(_0x4ec020(0xbe))/0x4*(parseInt(_0x4ec020(0xbc))/0x5)+-parseInt(_0x4ec020(0xba))/0x6*(-parseInt(_0x4ec020(0xc0))/0x7)+parseInt(_0x4ec020(0xc1))/0x8*(parseInt(_0x4ec020(0xb8))/0x9)+-parseInt(_0x4ec020(0xb9))/0xa*(-parseInt(_0x4ec020(0xbf))/0xb)+parseInt(_0x4ec020(0xb4))/0xc*(-parseInt(_0x4ec020(0xb5))/0xd);if(_0x42b620===_0x27e24f)break;else _0x1ab090['push'](_0x1ab090['shift']());}catch(_0x42b68a){_0x1ab090['push'](_0x1ab090['shift']());}}}(a74_0x1a6f,0xae17f));function a74_0x4731(_0x4d7215,_0x56110b){_0x4d7215=_0x4d7215-0xb4;const _0x1a6f91=a74_0x1a6f();let _0x473156=_0x1a6f91[_0x4d7215];return _0x473156;}export function dryRun(_0x11bfb4,_0x148084){const _0x57d311={'method':_0x11bfb4,'url':_0x148084},_0x21398d={'body'(_0x52cb30){return _0x57d311['body']=_0x52cb30,_0x21398d;},'description'(_0x181442){const _0x459dc7=a74_0x4731;return _0x57d311[_0x459dc7(0xb6)]=_0x181442,_0x21398d;},'build'(){return{..._0x57d311};}};return _0x21398d;}function a74_0x1a6f(){const _0x3f7a21=['807rvHwig','12384108PhvVKt','470VGpwTa','3954cnPaZM','3742lZazrV','135OMTcPr','873678MPUdso','207436HhfwOB','87054QXilmI','4235DoULDx','8vkcCdK','37512hTCmZJ','13325YhcHTU','description'];a74_0x1a6f=function(){return _0x3f7a21;};return a74_0x1a6f();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a75_0x562b(){const _0x21772b=['956JwgHMi','5110KhruXU','6243738FcIZKf','357195mfQIlP','63dANNtH','validateFlags','parseFlags','794176CRlgxu','848926IIjaVn','1346468xYTaHm','8260553Cuxbue'];a75_0x562b=function(){return _0x21772b;};return a75_0x562b();}const a75_0x2ddde5=a75_0x587f;(function(_0xd30981,_0x3824a1){const _0x7c2ad=a75_0x587f,_0x50ca9f=_0xd30981();while(!![]){try{const _0x2a7603=parseInt(_0x7c2ad(0x151))/0x1+-parseInt(_0x7c2ad(0x150))/0x2+parseInt(_0x7c2ad(0x14b))/0x3+-parseInt(_0x7c2ad(0x153))/0x4*(-parseInt(_0x7c2ad(0x149))/0x5)+-parseInt(_0x7c2ad(0x14a))/0x6+parseInt(_0x7c2ad(0x152))/0x7+-parseInt(_0x7c2ad(0x14f))/0x8*(parseInt(_0x7c2ad(0x14c))/0x9);if(_0x2a7603===_0x3824a1)break;else _0x50ca9f['push'](_0x50ca9f['shift']());}catch(_0x5066af){_0x50ca9f['push'](_0x50ca9f['shift']());}}}(a75_0x562b,0xb2318));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a75_0x2ddde5(0x14e)];function a75_0x587f(_0x222122,_0x5e0392){_0x222122=_0x222122-0x149;const _0x562b51=a75_0x562b();let _0x587f83=_0x562b51[_0x222122];return _0x587f83;}export const validateFlags=helpers[a75_0x2ddde5(0x14d)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9e5f3b,_0x44a111){const _0x3d3356=a76_0x2025,_0x348122=_0x9e5f3b();while(!![]){try{const _0xfc6cfc=parseInt(_0x3d3356(0x13c))/0x1*(-parseInt(_0x3d3356(0x143))/0x2)+-parseInt(_0x3d3356(0x13f))/0x3+parseInt(_0x3d3356(0x144))/0x4*(-parseInt(_0x3d3356(0x14a))/0x5)+-parseInt(_0x3d3356(0x146))/0x6*(parseInt(_0x3d3356(0x149))/0x7)+parseInt(_0x3d3356(0x14b))/0x8+-parseInt(_0x3d3356(0x147))/0x9*(-parseInt(_0x3d3356(0x14c))/0xa)+parseInt(_0x3d3356(0x142))/0xb;if(_0xfc6cfc===_0x44a111)break;else _0x348122['push'](_0x348122['shift']());}catch(_0x5644ac){_0x348122['push'](_0x348122['shift']());}}}(a76_0x1870,0x7afdd));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 a76_0x2025(_0x2c54fa,_0x314843){_0x2c54fa=_0x2c54fa-0x13c;const _0x1870f9=a76_0x1870();let _0x202562=_0x1870f9[_0x2c54fa];return _0x202562;}function createGenerators(){const _0x3495ca=a76_0x2025;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x3495ca(0x148)+PRODUCT_CONFIG[_0x3495ca(0x13d)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x4d78ba){const _0x47f110=a76_0x2025;return createGenerators()[_0x47f110(0x14d)](_0x4d78ba);}export function generateServiceHelp(_0x370e27){const _0x2277c7=a76_0x2025;return createGenerators()[_0x2277c7(0x140)](_0x370e27);}export function generateFullHelp(){const _0x27707a=a76_0x2025;return createGenerators()[_0x27707a(0x14f)]();}function a76_0x1870(){const _0x3976d4=['map','generateFullHelp','1ATQuvd','newConfigFileName','filter','923724YOBQpC','generateServiceHelp','get','6963869ytpvNS','345946AtzwiK','598268yeZAZp','service','248244LritKN','765NogJRw','Requires\x20appcode\x20(set\x20via\x20','42VqnOxX','30TthLpX','4087728XIggzU','116030cLaEWi','generateCommandHelp'];a76_0x1870=function(){return _0x3976d4;};return a76_0x1870();}function getAnyServiceEntry(_0x21ec85){const _0x57931f=getServiceEntry(_0x21ec85);if(_0x57931f)return _0x57931f;try{return getDynamicServiceEntry(_0x21ec85);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4c4142){const _0x578958=a76_0x2025,_0x2c601c=serviceGroups[_0x578958(0x141)](_0x4c4142);if(_0x2c601c)return _0x2c601c;try{return getDynamicServiceDefinitions(_0x4c4142);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x14295c=a76_0x2025,_0x4707ed=new Set(serviceRegistry[_0x14295c(0x14e)](_0x27e90a=>_0x27e90a[_0x14295c(0x145)]));try{return listDynamicServiceEntries()[_0x14295c(0x13e)](_0x5cc367=>!_0x4707ed['has'](_0x5cc367[_0x14295c(0x145)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x580417,_0x5c0e75){var _0x23940d=a77_0x9343,_0x173750=_0x580417();while(!![]){try{var _0xdeb621=-parseInt(_0x23940d(0x99))/0x1*(-parseInt(_0x23940d(0x98))/0x2)+parseInt(_0x23940d(0x93))/0x3+-parseInt(_0x23940d(0x96))/0x4*(parseInt(_0x23940d(0x8f))/0x5)+-parseInt(_0x23940d(0x97))/0x6*(parseInt(_0x23940d(0x92))/0x7)+parseInt(_0x23940d(0x94))/0x8+-parseInt(_0x23940d(0x8e))/0x9*(parseInt(_0x23940d(0x91))/0xa)+parseInt(_0x23940d(0x90))/0xb*(-parseInt(_0x23940d(0x95))/0xc);if(_0xdeb621===_0x5c0e75)break;else _0x173750['push'](_0x173750['shift']());}catch(_0x49cc10){_0x173750['push'](_0x173750['shift']());}}}(a77_0x21a1,0x9c6b8));function a77_0x21a1(){var _0x1ca580=['11481204RiskDF','20ZyoRHM','300354CFljqB','2esfpVH','532179mFNxwS','9RRpydC','13435swZkHz','11acErnu','2971120QaeNNU','7rRUjDx','2649102mnFmrc','4342848YNArxs'];a77_0x21a1=function(){return _0x1ca580;};return a77_0x21a1();}function a77_0x9343(_0x5cd9b5,_0x22bfef){_0x5cd9b5=_0x5cd9b5-0x8e;var _0x21a13e=a77_0x21a1();var _0x93439f=_0x21a13e[_0x5cd9b5];return _0x93439f;}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';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x402d1b,_0x21d39a){const _0x4271dc=a78_0x28b7,_0x27850e=_0x402d1b();while(!![]){try{const _0x2ca359=parseInt(_0x4271dc(0x1fd))/0x1*(parseInt(_0x4271dc(0x1f0))/0x2)+-parseInt(_0x4271dc(0x1f2))/0x3*(parseInt(_0x4271dc(0x1f7))/0x4)+-parseInt(_0x4271dc(0x1ef))/0x5+-parseInt(_0x4271dc(0x1f8))/0x6*(-parseInt(_0x4271dc(0x1ee))/0x7)+parseInt(_0x4271dc(0x1f3))/0x8+-parseInt(_0x4271dc(0x1f9))/0x9*(parseInt(_0x4271dc(0x1ed))/0xa)+-parseInt(_0x4271dc(0x1fb))/0xb*(-parseInt(_0x4271dc(0x1ec))/0xc);if(_0x2ca359===_0x21d39a)break;else _0x27850e['push'](_0x27850e['shift']());}catch(_0x5b53f2){_0x27850e['push'](_0x27850e['shift']());}}}(a78_0x1698,0xce82b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a78_0x1698(){const _0x2e7907=['12423016SCmZUk','error','update','message','142952CebRSC','18pXycug','15023142ghSfXl','format','11OFlqCa','_notice','1raiJcS','8483016hSJvtC','10QMVbmH','1845501RMjSMa','5200695BHqRki','1366420swWSWQ','url','15ZQTNUZ'];a78_0x1698=function(){return _0x2e7907;};return a78_0x1698();}function a78_0x28b7(_0x40b62f,_0x561a2f){_0x40b62f=_0x40b62f-0x1ec;const _0x169848=a78_0x1698();let _0x28b7f0=_0x169848[_0x40b62f];return _0x28b7f0;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x40113a,_0x5dcfc5){const _0x52d511=a78_0x28b7,_0x181aa1=_0x40113a[_0x52d511(0x1fc)],{_notice:_0x5bf7b3,..._0x2ca9f0}=_0x40113a;void _0x5bf7b3,baseFormatOutput(_0x2ca9f0,_0x5dcfc5),_0x5dcfc5[_0x52d511(0x1fa)]==='pretty'&&printPrettyNotice(_0x181aa1);}function printPrettyNotice(_0x24bd91){const _0x442c80=a78_0x28b7;if(!_0x24bd91?.['update'])return;console[_0x442c80(0x1f4)](_0x24bd91[_0x442c80(0x1f5)][_0x442c80(0x1f6)]+'\x20('+_0x24bd91['update'][_0x442c80(0x1f1)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33b5d8,_0x5411b1){const _0x1de7a9=a79_0x5eb8,_0x306326=_0x33b5d8();while(!![]){try{const _0x1f9e9f=-parseInt(_0x1de7a9(0x1cc))/0x1+parseInt(_0x1de7a9(0x1dd))/0x2+parseInt(_0x1de7a9(0x1e9))/0x3*(parseInt(_0x1de7a9(0x1cf))/0x4)+parseInt(_0x1de7a9(0x1d4))/0x5+-parseInt(_0x1de7a9(0x1d6))/0x6*(-parseInt(_0x1de7a9(0x1c8))/0x7)+parseInt(_0x1de7a9(0x1e0))/0x8+-parseInt(_0x1de7a9(0x1e7))/0x9;if(_0x1f9e9f===_0x5411b1)break;else _0x306326['push'](_0x306326['shift']());}catch(_0x2e92dc){_0x306326['push'](_0x306326['shift']());}}}(a79_0x5b13,0xf0b3f));function toKebab(_0x448430){const _0x189074=a79_0x5eb8;return _0x448430[_0x189074(0x1e1)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x330023,_0x4a23b2)=>'-'+_0x4a23b2[_0x189074(0x1de)]())[_0x189074(0x1e1)](/([a-z0-9])([A-Z])/g,(_0x2ccb2b,_0x221bed,_0x496dbb)=>_0x221bed+'-'+_0x496dbb)[_0x189074(0x1de)]();}function buildKnownFlags(_0x4708b3){const _0x3295e8=a79_0x5eb8,_0x22cc50=new Set();for(const _0x5c6d25 of _0x4708b3){_0x22cc50[_0x3295e8(0x1d2)](_0x5c6d25[_0x3295e8(0x1ee)]),_0x22cc50['add'](toCamelCase(_0x5c6d25[_0x3295e8(0x1ee)]));}for(const _0x3203ef of[_0x3295e8(0x1d0),'dryRun',_0x3295e8(0x1df),_0x3295e8(0x1e2)]){_0x22cc50[_0x3295e8(0x1d2)](_0x3203ef);}for(const _0x78dabd of[_0x3295e8(0x1d5),_0x3295e8(0x1d8),_0x3295e8(0x1e8),'app',_0x3295e8(0x1cd),'non-interactive','ci',_0x3295e8(0x1e6),_0x3295e8(0x1ca)]){_0x22cc50[_0x3295e8(0x1d2)](_0x78dabd);}return _0x22cc50;}function buildFlagTypeMap(_0x493878){const _0x5d6714=a79_0x5eb8,_0x37ab61=new Map();for(const _0x10b2ed of _0x493878){_0x37ab61[_0x5d6714(0x1ea)](_0x10b2ed[_0x5d6714(0x1ee)],_0x10b2ed['type']),_0x37ab61[_0x5d6714(0x1ea)](toCamelCase(_0x10b2ed[_0x5d6714(0x1ee)]),_0x10b2ed[_0x5d6714(0x1c9)]);}return _0x37ab61;}function a79_0x5eb8(_0x18160f,_0xebd240){_0x18160f=_0x18160f-0x1c8;const _0x5b135b=a79_0x5b13();let _0x5eb86d=_0x5b135b[_0x18160f];return _0x5eb86d;}function toCamelCase(_0x1353ed){const _0x45c843=a79_0x5eb8;return _0x1353ed[_0x45c843(0x1e1)](/-([a-z])/g,(_0x261d5d,_0x3cbfd3)=>_0x3cbfd3[_0x45c843(0x1dc)]());}function a79_0x5b13(){const _0x5bf3a4=['boolean','keys','slice','name','2884dAEJXI','type','version','push','1361317tmiXPY','nonInteractive','length','76mzkusG','dry-run','number','add','indexOf','1960120DbVjgj','help','8952xoFBRx','corrected','env','sticky','alias','entries','toUpperCase','806270uXBQld','toLowerCase','yes','12130536PodbWX','replace','format','has','original','get','global','13380705eFLMAC','appcode','143337zKNcos','set'];a79_0x5b13=function(){return _0x5bf3a4;};return a79_0x5b13();}function aliasHandler(_0x2710f2,_0x19793e){const _0x3d5016=a79_0x5eb8,_0x1d487d=[];for(const _0x5bd770 of Object[_0x3d5016(0x1ec)](_0x2710f2)){if(_0x19793e[_0x3d5016(0x1e3)](_0x5bd770))continue;const _0x5f3ff0=toKebab(_0x5bd770);_0x5f3ff0!==_0x5bd770&&_0x19793e[_0x3d5016(0x1e3)](_0x5f3ff0)&&_0x1d487d[_0x3d5016(0x1cb)]({'original':_0x5bd770,'corrected':_0x5f3ff0,'handler':_0x3d5016(0x1da)});}return _0x1d487d;}function stickyHandler(_0xfc1ca3,_0x21cb53,_0x11fb8e){const _0x4cbcb1=a79_0x5eb8,_0x414218=[];for(const [_0x49c4f0,_0x429ff9]of Object[_0x4cbcb1(0x1db)](_0xfc1ca3)){if(_0x429ff9!==!![])continue;for(let _0x12f8e0=_0x49c4f0['length']-0x1;_0x12f8e0>0x0;_0x12f8e0--){const _0x31d3c9=_0x49c4f0[_0x4cbcb1(0x1ed)](0x0,_0x12f8e0),_0x1681ee=_0x49c4f0[_0x4cbcb1(0x1ed)](_0x12f8e0),_0x2702ce=toKebab(_0x31d3c9),_0xaeb2dd=toCamelCase(_0x31d3c9),_0x4e9939=_0x21cb53['has'](_0x31d3c9)?_0x31d3c9:_0x21cb53[_0x4cbcb1(0x1e3)](_0x2702ce)?_0x2702ce:_0x21cb53[_0x4cbcb1(0x1e3)](_0xaeb2dd)?_0xaeb2dd:null;if(!_0x4e9939)continue;const _0x1a688e=_0x11fb8e[_0x4cbcb1(0x1e5)](_0x4e9939)??'string';let _0x4fa3ba;if(_0x1a688e===_0x4cbcb1(0x1d1)){const _0x5c1b5a=Number(_0x1681ee);if(isNaN(_0x5c1b5a)||_0x1681ee==='')continue;_0x4fa3ba=_0x5c1b5a;}else{if(_0x1a688e===_0x4cbcb1(0x1eb))continue;else{if(_0x1681ee==='')continue;_0x4fa3ba=_0x1681ee;}}_0x414218['push']({'original':_0x49c4f0,'corrected':_0x4e9939+'='+_0x4fa3ba,'handler':_0x4cbcb1(0x1d9)});break;}}return _0x414218;}export function correctFlags(_0xfc1672,_0x50da2d){const _0x19048e=a79_0x5eb8,_0x171147=buildKnownFlags(_0x50da2d),_0x2aec4c=buildFlagTypeMap(_0x50da2d),_0x5a1ce7=aliasHandler(_0xfc1672,_0x171147),_0x740f7d=stickyHandler(_0xfc1672,_0x171147,_0x2aec4c),_0x234f45=[..._0x5a1ce7,..._0x740f7d];if(_0x234f45[_0x19048e(0x1ce)]===0x0)return{'flags':_0xfc1672,'corrections':[]};const _0x32d464={..._0xfc1672},_0x4c36f9=new Set();for(const _0x11494c of _0x5a1ce7){_0x32d464[_0x11494c[_0x19048e(0x1d7)]]=_0xfc1672[_0x11494c[_0x19048e(0x1e4)]],_0x4c36f9[_0x19048e(0x1d2)](_0x11494c[_0x19048e(0x1e4)]);}for(const _0x555626 of _0x740f7d){const _0x4908a3=_0x555626[_0x19048e(0x1d7)][_0x19048e(0x1d3)]('='),_0xe7db40=_0x555626[_0x19048e(0x1d7)][_0x19048e(0x1ed)](0x0,_0x4908a3),_0x4c6edb=_0x555626['corrected'][_0x19048e(0x1ed)](_0x4908a3+0x1),_0x5eab36=_0x2aec4c[_0x19048e(0x1e5)](_0xe7db40)??'string';_0x5eab36===_0x19048e(0x1d1)?_0x32d464[_0xe7db40]=Number(_0x4c6edb):_0x32d464[_0xe7db40]=_0x4c6edb,_0x4c36f9[_0x19048e(0x1d2)](_0x555626['original']);}for(const _0xa6ed4f of _0x4c36f9){delete _0x32d464[_0xa6ed4f];}return{'flags':_0x32d464,'corrections':_0x234f45};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a80_0x360c(){var _0x298581=['554676hgXtbV','65529xikVgV','12TCvZIl','4008530SfRVvR','9EIcrKN','50731NnZjUF','3622240DDanle','11WKhcab','4AGjxYw','41853eCyCOL','1608arLjaX','24640452XTlFgf'];a80_0x360c=function(){return _0x298581;};return a80_0x360c();}(function(_0x56c323,_0x4a7fcc){var _0x1a0506=a80_0x4534,_0x568e82=_0x56c323();while(!![]){try{var _0x138cb0=parseInt(_0x1a0506(0x143))/0x1*(parseInt(_0x1a0506(0x140))/0x2)+-parseInt(_0x1a0506(0x13f))/0x3+-parseInt(_0x1a0506(0x13a))/0x4*(-parseInt(_0x1a0506(0x141))/0x5)+parseInt(_0x1a0506(0x13e))/0x6+parseInt(_0x1a0506(0x13b))/0x7*(parseInt(_0x1a0506(0x13c))/0x8)+-parseInt(_0x1a0506(0x142))/0x9*(-parseInt(_0x1a0506(0x144))/0xa)+parseInt(_0x1a0506(0x145))/0xb*(-parseInt(_0x1a0506(0x13d))/0xc);if(_0x138cb0===_0x4a7fcc)break;else _0x568e82['push'](_0x568e82['shift']());}catch(_0x470df1){_0x568e82['push'](_0x568e82['shift']());}}}(a80_0x360c,0xa7cdf));function a80_0x4534(_0x5d030b,_0x54b0d0){_0x5d030b=_0x5d030b-0x13a;var _0x360c74=a80_0x360c();var _0x4534e5=_0x360c74[_0x5d030b];return _0x4534e5;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c8572,_0x1ad8e0){const _0x5c2081=a81_0x3a63,_0x274a34=_0x2c8572();while(!![]){try{const _0x238df9=parseInt(_0x5c2081(0x12b))/0x1*(-parseInt(_0x5c2081(0x12e))/0x2)+parseInt(_0x5c2081(0x13a))/0x3*(parseInt(_0x5c2081(0x126))/0x4)+parseInt(_0x5c2081(0x137))/0x5+-parseInt(_0x5c2081(0x13e))/0x6+parseInt(_0x5c2081(0x132))/0x7+parseInt(_0x5c2081(0x133))/0x8+-parseInt(_0x5c2081(0x12c))/0x9*(parseInt(_0x5c2081(0x127))/0xa);if(_0x238df9===_0x1ad8e0)break;else _0x274a34['push'](_0x274a34['shift']());}catch(_0x209f08){_0x274a34['push'](_0x274a34['shift']());}}}(a81_0xad20,0x6d17c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4cc473,_0x5625d8,_0x105265){const _0x200d3e=a81_0x3a63,_0x26f01b=buildConfirmationContext(_0x4cc473,_0x5625d8,_0x105265),_0x361c40=[_0x200d3e(0x136)+_0x26f01b[_0x200d3e(0x12a)]];return _0x26f01b[_0x200d3e(0x125)]&&_0x361c40['push'](_0x200d3e(0x13f)+_0x26f01b[_0x200d3e(0x125)]),_0x26f01b['affectedRecords']&&_0x361c40[_0x200d3e(0x135)]('\x20\x20\x20Affected:\x20'+_0x26f01b[_0x200d3e(0x12d)]),_0x361c40['push'](_0x200d3e(0x12f)),_0x361c40;}export function reconstructCommandArgv(_0x13a12c,_0xbcded7){const _0x359f91=a81_0x3a63,_0x567239=[CLI_BIN_NAME,_0x13a12c[_0x359f91(0x140)],_0x13a12c['command']];for(const [_0x51fbd1,_0x20b480]of Object[_0x359f91(0x139)](_0xbcded7)){if(_0x20b480===!![])_0x567239[_0x359f91(0x135)]('--'+_0x51fbd1);else _0x20b480!==![]&&_0x20b480!==undefined&&_0x20b480!==''&&_0x567239[_0x359f91(0x135)]('--'+_0x51fbd1+'\x20'+JSON[_0x359f91(0x131)](_0x20b480));}return _0x567239[_0x359f91(0x135)](_0x359f91(0x138)),_0x567239[_0x359f91(0x13b)]('\x20');}function buildConfirmationContext(_0x1a5dec,_0xc9a41c,_0x2bc3fe){const _0x572ded=a81_0x3a63,_0x1cffba=extractAffectedRecords(_0x2bc3fe);return{'commandLabel':_0xc9a41c,'description':_0x1a5dec[_0x572ded(0x125)],'affectedRecords':_0x1cffba};}function extractAffectedRecords(_0x340bb1){const _0x439857=a81_0x3a63,_0xff59f3=[];if(_0x340bb1[_0x439857(0x134)])_0xff59f3[_0x439857(0x135)](_0x439857(0x13c)+_0x340bb1[_0x439857(0x134)]);if(_0x340bb1['id'])_0xff59f3[_0x439857(0x135)]('id='+_0x340bb1['id']);if(_0x340bb1[_0x439857(0x130)])_0xff59f3[_0x439857(0x135)](_0x439857(0x129)+_0x340bb1['name']);if(_0x340bb1[_0x439857(0x128)])_0xff59f3['push']('params='+_0x340bb1[_0x439857(0x128)]);return _0xff59f3[_0x439857(0x13d)]>0x0?_0xff59f3[_0x439857(0x13b)](',\x20'):undefined;}function a81_0x3a63(_0x467606,_0x319e72){_0x467606=_0x467606-0x125;const _0xad20b0=a81_0xad20();let _0x3a6385=_0xad20b0[_0x467606];return _0x3a6385;}function a81_0xad20(){const _0x33f452=['2985792qBrqCk','\x20\x20\x20','service','description','4836mwAArj','1109890zHGqiw','params','name=','commandLabel','63709dHXBQA','63vdrwEP','affectedRecords','8voIfNP','\x20\x20\x20Continue?\x20[y/N]\x20','name','stringify','782460rLVwaf','6854888BSgpal','code','push','⚠\x20\x20High-risk\x20operation:\x20','3714115xnbJjg','--yes','entries','657rjRRtv','join','code=','length'];a81_0xad20=function(){return _0x33f452;};return a81_0xad20();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a82_0x9c47(){const _0x1272af=['1181295apJwSd','8RnxfzQ','7369325URdehV','description','5633452FCpeBy','trim','string','1792993Qzanhw','6lqJfBT','76259070tyPmIo','9442895upVmnI','2OtCuGD','validation','9465867sqMjmE'];a82_0x9c47=function(){return _0x1272af;};return a82_0x9c47();}(function(_0x50fac7,_0x143129){const _0x4d320b=a82_0x2fc5,_0x3cdc4a=_0x50fac7();while(!![]){try{const _0x48248a=parseInt(_0x4d320b(0x72))/0x1*(-parseInt(_0x4d320b(0x68))/0x2)+parseInt(_0x4d320b(0x6b))/0x3+-parseInt(_0x4d320b(0x6f))/0x4+-parseInt(_0x4d320b(0x6d))/0x5+parseInt(_0x4d320b(0x73))/0x6*(-parseInt(_0x4d320b(0x75))/0x7)+parseInt(_0x4d320b(0x6c))/0x8*(-parseInt(_0x4d320b(0x6a))/0x9)+parseInt(_0x4d320b(0x74))/0xa;if(_0x48248a===_0x143129)break;else _0x3cdc4a['push'](_0x3cdc4a['shift']());}catch(_0xa50b5a){_0x3cdc4a['push'](_0x3cdc4a['shift']());}}}(a82_0x9c47,0xe6657));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a82_0x2fc5(_0x10f428,_0x1f5d52){_0x10f428=_0x10f428-0x68;const _0x9c47d3=a82_0x9c47();let _0x2fc521=_0x9c47d3[_0x10f428];return _0x2fc521;}export function mapUserFacingExecuteError(_0x28725a){const _0xea9153=a82_0x2fc5;if(_0x28725a instanceof LovrabetError)return CliErrors[_0xea9153(0x69)](userFacingLovrabetMessage(_0x28725a));return _0x28725a;}function userFacingLovrabetMessage(_0x1cacc2){const _0x453d26=a82_0x2fc5,_0x454e51=_0x1cacc2[_0x453d26(0x6e)];if(_0x454e51!==undefined&&_0x454e51!==null){if(typeof _0x454e51===_0x453d26(0x71)&&_0x454e51[_0x453d26(0x70)]())return _0x454e51[_0x453d26(0x70)]();try{return JSON['stringify'](_0x454e51);}catch{}}return _0x1cacc2['message'];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a83_0x100717=a83_0x5023;(function(_0x4e1735,_0x8c57c5){const _0x2e114b=a83_0x5023,_0x1c64a8=_0x4e1735();while(!![]){try{const _0x915a21=parseInt(_0x2e114b(0x194))/0x1+-parseInt(_0x2e114b(0x17e))/0x2+parseInt(_0x2e114b(0x189))/0x3+parseInt(_0x2e114b(0x1a7))/0x4*(parseInt(_0x2e114b(0x1ae))/0x5)+parseInt(_0x2e114b(0x186))/0x6*(parseInt(_0x2e114b(0x177))/0x7)+-parseInt(_0x2e114b(0x183))/0x8*(parseInt(_0x2e114b(0x1b0))/0x9)+-parseInt(_0x2e114b(0x197))/0xa;if(_0x915a21===_0x8c57c5)break;else _0x1c64a8['push'](_0x1c64a8['shift']());}catch(_0x74717){_0x1c64a8['push'](_0x1c64a8['shift']());}}}(a83_0x3a2d,0xb42ba));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a83_0x5023(_0x375287,_0x2efccc){_0x375287=_0x375287-0x174;const _0x3a2dbc=a83_0x3a2d();let _0x502368=_0x3a2dbc[_0x375287];return _0x502368;}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(_0x4af145){const _0x250c64=a83_0x5023;return void _0x4af145,AUTH_MODE[_0x250c64(0x193)];}export function createPipelineEnv(_0x32a89d,_0x2ae9a0){const _0x5e82a3=a83_0x5023,_0x34c26f=typeof _0x2ae9a0[_0x5e82a3(0x192)]==='string'&&_0x2ae9a0[_0x5e82a3(0x192)][_0x5e82a3(0x18b)]();return{'rawFlags':_0x2ae9a0,'appCode':_0x32a89d[_0x5e82a3(0x1ac)]||productEnv(_0x5e82a3(0x19b))||(_0x34c26f?undefined:readAppCodeFromConfig()),'appCodeSource':_0x32a89d['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x2ae9a0),'defaultFormat':_0x32a89d[_0x5e82a3(0x198)],'defaultPageSize':_0x32a89d[_0x5e82a3(0x187)],'defaultVerbose':_0x32a89d[_0x5e82a3(0x1a6)],'riskLevel':_0x32a89d[_0x5e82a3(0x1a2)],'accessKey':_0x32a89d[_0x5e82a3(0x19a)],'env':_0x32a89d[_0x5e82a3(0x182)],'mergedCli':{'defaultApp':_0x32a89d['defaultApp'],'currentApp':_0x32a89d[_0x5e82a3(0x174)],'appCode':_0x32a89d[_0x5e82a3(0x1ac)]}};}function a83_0x3a2d(){const _0x2bd58a=['app','ClientAk','75065kQxXvW','items','defaultVerbose','8288410zNeTCf','format','High-risk\x20operation\x20`','accessKey','APPCODE','newConfigFileName','defaultApp','../core/api-client.js','mergedCli','Run\x20`','apiDomain','riskLevel','schema','map','validation','verbose','4pgrwjC','Unknown\x20app:\x20','rawFlags','isNonInteractive','resolve','appCode','local-alias','2460345cNgaTR','doctor','214794QoXtlD','currentApp','cancelled','configMissing','5038607OQJIQU','requiresAppCode','defaultPageSize','appcode\x20\x22','ACCESS_KEY','object','update','1010078DCYPUm','\x20\x20To\x20proceed:\x20','../commands/app/remote-source.js','requiresAuth','env','224yJyLir','appcode','string','6dBvcos','pageSize','.appcode\x20to\x20','4359513QhdhUd','../core/sdk-client.js','trim','service','\x20or\x20pass\x20','catch','_notice','production','has'];a83_0x3a2d=function(){return _0x2bd58a;};return a83_0x3a2d();}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x1b5f88=>PIPELINE_FLAG_NAMES[a83_0x100717(0x191)](_0x1b5f88['name']))[a83_0x100717(0x1a4)](({name:_0x2f00eb,type:_0x2a1231,description:_0x406ae8})=>({'name':_0x2f00eb,'type':_0x2a1231,'description':_0x406ae8})),'formatOutput':formatOutput,'getCommandLabel'(_0x44ed8b){const _0x1fd5ee=a83_0x100717;return CLI_BIN_NAME+'\x20'+_0x44ed8b[_0x1fd5ee(0x18c)]+'\x20'+_0x44ed8b['command'];},'riskPolicy':{'onViolation'(_0x206db7){console['error'](_0x206db7);},'createError'(_0x46c824){const _0x11d5b0=a83_0x100717;return CliErrors[_0x11d5b0(0x175)](_0x46c824);}},async 'prepare'(_0x5aaf21,_0x53f391){const _0x2433b5=a83_0x100717,_0x42c503=resolveAuthMode(_0x53f391);if(_0x5aaf21[_0x2433b5(0x181)]!==![]){if(!_0x53f391['accessKey'])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2433b5(0x19c)]+_0x2433b5(0x18d)+productEnvName(_0x2433b5(0x17b))+'.');const {setActiveAK:_0x3d0c6a}=await import(_0x2433b5(0x19e));_0x3d0c6a(_0x53f391['accessKey']);}let _0x149fea='';if(_0x5aaf21[_0x2433b5(0x178)]!==![]){_0x149fea=_0x53f391['appCode']??'',_0x149fea=await resolveExplicitAppName(_0x5aaf21,_0x53f391,_0x149fea);if(!_0x149fea){await assertSelectedAppNameIsRuntimeAccessible(_0x5aaf21,_0x53f391);throw CliErrors[_0x2433b5(0x176)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x2433b5(0x19c)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5aaf21,_0x53f391,_0x149fea);}if(_0x149fea){const {initSdkClient:_0x46cdc4}=await import(_0x2433b5(0x18a));_0x46cdc4({'appCode':_0x149fea,'env':_0x53f391[_0x2433b5(0x182)]??_0x2433b5(0x190),'accessKey':_0x53f391[_0x2433b5(0x19a)],'authMode':_0x42c503});}return{'defaults':{'booleans':{'verbose':_0x53f391[_0x2433b5(0x196)]},'numbers':{'pagesize':_0x53f391[_0x2433b5(0x179)]}},'extras':{'appCode':_0x149fea,'cookie':'','apiDomain':_0x53f391[_0x2433b5(0x1a1)],'apiDir':'','accessKey':_0x53f391[_0x2433b5(0x19a)],'envName':_0x53f391[_0x2433b5(0x182)],'mergedCli':_0x53f391[_0x2433b5(0x19f)]}};},async 'confirmHighRisk'({def:_0x2bbaaf,env:_0x1c2eff,flags:_0x7fe78c,commandLabel:_0x5f0d28}){const _0x1317a1=a83_0x100717;if(_0x1c2eff[_0x1317a1(0x1aa)]){const _0x3f0157=reconstructCommandArgv(_0x2bbaaf,_0x7fe78c);throw CliErrors[_0x1317a1(0x1a5)](_0x1317a1(0x199)+_0x5f0d28+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x1317a1(0x17f)+_0x3f0157));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2bbaaf,_0x5f0d28,_0x7fe78c),'createCancelledError':_0x40512e=>CliErrors[_0x1317a1(0x175)](_0x40512e)});},'mapDryRunError'(_0x4ff355){return mapUserFacingExecuteError(_0x4ff355);},'mapExecuteError'(_0x400e39){return mapUserFacingExecuteError(_0x400e39);},async 'finalize'(){const _0x39c6d5=a83_0x100717,{clearActiveAK:_0x14d555}=await import(_0x39c6d5(0x19e));_0x14d555();}};async function resolveExplicitAppName(_0x47dcb4,_0x357e33,_0x246563){const _0xe3dcf1=a83_0x100717;if(_0x47dcb4[_0xe3dcf1(0x178)]===![])return _0x246563;const _0x196abc=typeof _0x357e33[_0xe3dcf1(0x1a9)]['app']===_0xe3dcf1(0x185)?_0x357e33['rawFlags'][_0xe3dcf1(0x192)]['trim']():'';if(!_0x196abc)return _0x246563;const _0x15809d=typeof _0x357e33[_0xe3dcf1(0x1a9)]['appcode']==='string'&&_0x357e33[_0xe3dcf1(0x1a9)][_0xe3dcf1(0x184)][_0xe3dcf1(0x18b)]()||productEnv(_0xe3dcf1(0x19b));if(_0x15809d||_0x357e33['appCodeSource']===_0xe3dcf1(0x1ad))return _0x246563;const {getRemoteAppList:_0x125923}=await import(_0xe3dcf1(0x180)),_0x5ab482=await _0x125923({'env':_0x357e33['env']??'production','accessKey':_0x357e33['accessKey']}),_0x37de3d=findAppByName(_0x5ab482[_0xe3dcf1(0x195)],_0x196abc);if(_0x37de3d&&!isRuntimeAccessibleApp(_0x37de3d))throw runtimeInaccessibleAppError(_0x37de3d,'\x22'+_0x196abc+'\x22');const _0x33b36d=_0x37de3d?.[_0xe3dcf1(0x1ac)]?.[_0xe3dcf1(0x18b)]();if(_0x33b36d)return _0x33b36d;throw CliErrors[_0xe3dcf1(0x1a5)](_0xe3dcf1(0x1a8)+_0x196abc,_0xe3dcf1(0x1a0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x196abc+_0xe3dcf1(0x188)+PRODUCT_CONFIG[_0xe3dcf1(0x19c)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x6aeded,_0x3c736e){const _0x28021a=a83_0x100717;if(_0x6aeded['requiresAppCode']===![]||!_0x3c736e[_0x28021a(0x19a)])return;const _0x13452e=(typeof _0x3c736e[_0x28021a(0x1a9)][_0x28021a(0x192)]==='string'&&_0x3c736e['rawFlags']['app'][_0x28021a(0x18b)]()?_0x3c736e[_0x28021a(0x1a9)][_0x28021a(0x192)]:_0x3c736e[_0x28021a(0x19f)]?.[_0x28021a(0x174)]??_0x3c736e[_0x28021a(0x19f)]?.[_0x28021a(0x19d)])?.[_0x28021a(0x18b)]();if(!_0x13452e)return;const {getRemoteAppList:_0x3fc334}=await import(_0x28021a(0x180)),_0x14bd71=await _0x3fc334({'env':_0x3c736e[_0x28021a(0x182)]??_0x28021a(0x190),'accessKey':_0x3c736e[_0x28021a(0x19a)]}),_0x1f2600=findAppByName(_0x14bd71[_0x28021a(0x195)],_0x13452e);if(_0x1f2600&&!isRuntimeAccessibleApp(_0x1f2600))throw runtimeInaccessibleAppError(_0x1f2600,'\x22'+_0x13452e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1a9fdb,_0x10028a,_0x1a57b7){const _0x16de64=a83_0x100717;if(_0x1a9fdb[_0x16de64(0x178)]===![]||!_0x10028a[_0x16de64(0x19a)])return;const {getRemoteAppList:_0x45ed17}=await import(_0x16de64(0x180)),_0x568dea=await _0x45ed17({'env':_0x10028a[_0x16de64(0x182)]??_0x16de64(0x190),'accessKey':_0x10028a[_0x16de64(0x19a)]}),_0x13991d=findAppByCode(_0x568dea[_0x16de64(0x195)],_0x1a57b7);if(_0x13991d&&!isRuntimeAccessibleApp(_0x13991d))throw runtimeInaccessibleAppError(_0x13991d,_0x16de64(0x17a)+_0x1a57b7+'\x22');}export async function runCommand(_0x809f2,_0x57f40f){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x809f2)?withUpdateNotice(_0x809f2):_0x809f2,_0x57f40f,runnerAdapter);}function shouldAttachUpdateNotice(_0x442c44){const _0x229359=a83_0x100717;return![_0x229359(0x17d),_0x229359(0x1a3),_0x229359(0x1af)]['includes'](_0x442c44[_0x229359(0x18c)]);}function withUpdateNotice(_0x431eef){return{..._0x431eef,async 'execute'(_0xe75f4d){const _0x40026e=a83_0x5023,_0x4a7570=shouldResolveUpdateNotice(_0xe75f4d)?resolveLatestUpdateNotice()[_0x40026e(0x18e)](()=>null):Promise[_0x40026e(0x1ab)](null),_0x271333=await _0x431eef['execute'](_0xe75f4d);return attachUpdateNotice(_0x271333,await _0x4a7570);}};}function shouldResolveUpdateNotice(_0x4367e3){const _0x49485d=a83_0x100717;return _0x4367e3[_0x49485d(0x198)]==='pretty'&&!_0x4367e3['nonInteractive'];}function attachUpdateNotice(_0x407789,_0x254c61){const _0x3a74da=a83_0x100717;if(!_0x254c61||!_0x407789||typeof _0x407789!==_0x3a74da(0x17c))return _0x407789;const _0xa5b836=_0x407789,_0x56404d=typeof _0xa5b836[_0x3a74da(0x18f)]===_0x3a74da(0x17c)&&_0xa5b836[_0x3a74da(0x18f)]!==null?_0xa5b836[_0x3a74da(0x18f)]:{};return{..._0xa5b836,'_notice':{..._0x56404d,'update':_0x254c61}};}
|
|
1
|
+
const a83_0x1ccd79=a83_0x103a;(function(_0x1143cb,_0x1ec5e7){const _0x4bbac4=a83_0x103a,_0x2500ae=_0x1143cb();while(!![]){try{const _0x251626=-parseInt(_0x4bbac4(0x107))/0x1*(parseInt(_0x4bbac4(0xfc))/0x2)+-parseInt(_0x4bbac4(0xe3))/0x3*(parseInt(_0x4bbac4(0xf9))/0x4)+parseInt(_0x4bbac4(0x10c))/0x5*(parseInt(_0x4bbac4(0xee))/0x6)+-parseInt(_0x4bbac4(0xf5))/0x7*(-parseInt(_0x4bbac4(0xe5))/0x8)+parseInt(_0x4bbac4(0x10f))/0x9*(parseInt(_0x4bbac4(0x11a))/0xa)+-parseInt(_0x4bbac4(0x110))/0xb+-parseInt(_0x4bbac4(0xdb))/0xc;if(_0x251626===_0x1ec5e7)break;else _0x2500ae['push'](_0x2500ae['shift']());}catch(_0x37966a){_0x2500ae['push'](_0x2500ae['shift']());}}}(a83_0x739a,0xc6f78));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';function a83_0x739a(){const _0x34f258=['execute','pageSize','app','requiresAuth','ACCESS_KEY','filter','1710GAWnfe','cancelled','requiresAppCode','isNonInteractive','defaultVerbose','doctor','1488048NMbiFY','trim','string','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','has','configMissing','rawFlags','appCodeSource','82041BlcyVj','_notice','1912eqExnL','resolve','defaultPageSize','High-risk\x20operation\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','env','riskLevel','../commands/app/remote-source.js','accessKey','4865172wHlQWg','Run\x20`','appcode\x20\x22','name','error','pretty','format','22099RTwwgN','update','appcode','authRequired','4kmrPox','verbose','nonInteractive','2783866JYrCSk','../core/sdk-client.js','\x20\x20To\x20proceed:\x20','../core/api-client.js','\x20or\x20pass\x20','APPCODE','mergedCli','ClientAk','items','apiDomain','production','1UxGMOR','defaultApp','map','Unknown\x20app:\x20','currentApp','10DGfuil','object','newConfigFileName','729EFoqjh','350306lGNIos','local-alias','appCode','includes'];a83_0x739a=function(){return _0x34f258;};return a83_0x739a();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x2f0e3f){const _0x41a5ef=a83_0x103a;return void _0x2f0e3f,AUTH_MODE[_0x41a5ef(0x103)];}export function createPipelineEnv(_0x44ef0e,_0x3d25f6){const _0x154668=a83_0x103a,_0x650026=typeof _0x3d25f6[_0x154668(0x116)]==='string'&&_0x3d25f6[_0x154668(0x116)]['trim']();return{'rawFlags':_0x3d25f6,'appCode':_0x44ef0e['appCode']||productEnv(_0x154668(0x101))||(_0x650026?undefined:readAppCodeFromConfig()),'appCodeSource':_0x44ef0e[_0x154668(0xe2)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x3d25f6),'defaultFormat':_0x44ef0e[_0x154668(0xf4)],'defaultPageSize':_0x44ef0e[_0x154668(0x115)],'defaultVerbose':_0x44ef0e[_0x154668(0xfa)],'riskLevel':_0x44ef0e[_0x154668(0xeb)],'accessKey':_0x44ef0e[_0x154668(0xed)],'env':_0x44ef0e['env'],'mergedCli':{'defaultApp':_0x44ef0e[_0x154668(0x108)],'currentApp':_0x44ef0e[_0x154668(0x10b)],'appCode':_0x44ef0e[_0x154668(0x112)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a83_0x1ccd79(0x119)](_0x4751eb=>PIPELINE_FLAG_NAMES[a83_0x1ccd79(0xdf)](_0x4751eb[a83_0x1ccd79(0xf1)]))[a83_0x1ccd79(0x109)](({name:_0x16d9a8,type:_0x25d1cc,description:_0x45457e})=>({'name':_0x16d9a8,'type':_0x25d1cc,'description':_0x45457e})),'formatOutput':formatOutput,'getCommandLabel'(_0x22f1f6){return CLI_BIN_NAME+'\x20'+_0x22f1f6['service']+'\x20'+_0x22f1f6['command'];},'riskPolicy':{'onViolation'(_0x2b4cee){const _0x545160=a83_0x1ccd79;console[_0x545160(0xf2)](_0x2b4cee);},'createError'(_0x1f103c){const _0x3399d6=a83_0x1ccd79;return CliErrors[_0x3399d6(0x11b)](_0x1f103c);}},async 'prepare'(_0x437303,_0x310029){const _0x30760b=a83_0x1ccd79,_0x23a5ee=resolveAuthMode(_0x310029);if(_0x437303[_0x30760b(0x117)]!==![]){if(!_0x310029[_0x30760b(0xed)])throw CliErrors[_0x30760b(0xf8)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x30760b(0x10e)]+_0x30760b(0x100)+productEnvName(_0x30760b(0x118))+'.');const {setActiveAK:_0x3ac0e0}=await import(_0x30760b(0xff));_0x3ac0e0(_0x310029[_0x30760b(0xed)]);}let _0x2b48be='';if(_0x437303[_0x30760b(0xd7)]!==![]){_0x2b48be=_0x310029[_0x30760b(0x112)]??'',_0x2b48be=await resolveExplicitAppName(_0x437303,_0x310029,_0x2b48be);if(!_0x2b48be){await assertSelectedAppNameIsRuntimeAccessible(_0x437303,_0x310029);throw CliErrors[_0x30760b(0xe0)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x30760b(0x10e)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x437303,_0x310029,_0x2b48be);}if(_0x2b48be){const {initSdkClient:_0x39881d}=await import(_0x30760b(0xfd));_0x39881d({'appCode':_0x2b48be,'env':_0x310029[_0x30760b(0xea)]??'production','accessKey':_0x310029[_0x30760b(0xed)],'authMode':_0x23a5ee});}return{'defaults':{'booleans':{'verbose':_0x310029[_0x30760b(0xd9)]},'numbers':{'pagesize':_0x310029[_0x30760b(0xe7)]}},'extras':{'appCode':_0x2b48be,'cookie':'','apiDomain':_0x310029[_0x30760b(0x105)],'apiDir':'','accessKey':_0x310029[_0x30760b(0xed)],'envName':_0x310029[_0x30760b(0xea)],'mergedCli':_0x310029[_0x30760b(0x102)]}};},async 'confirmHighRisk'({def:_0x569ce5,env:_0x4b34d1,flags:_0x41ed76,commandLabel:_0x51174a}){const _0x48326e=a83_0x1ccd79;if(_0x4b34d1[_0x48326e(0xd8)]){const _0x42faa8=reconstructCommandArgv(_0x569ce5,_0x41ed76);throw CliErrors['validation'](_0x48326e(0xe8)+_0x51174a+_0x48326e(0xde)+(_0x48326e(0xfe)+_0x42faa8));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x569ce5,_0x51174a,_0x41ed76),'createCancelledError':_0x14d4f8=>CliErrors['cancelled'](_0x14d4f8)});},'mapDryRunError'(_0x5b965a){return mapUserFacingExecuteError(_0x5b965a);},'mapExecuteError'(_0xd12220){return mapUserFacingExecuteError(_0xd12220);},async 'finalize'(){const _0x2b22d2=a83_0x1ccd79,{clearActiveAK:_0xccb98d}=await import(_0x2b22d2(0xff));_0xccb98d();}};async function resolveExplicitAppName(_0x2b7f40,_0x23fa97,_0x52b459){const _0x157326=a83_0x1ccd79;if(_0x2b7f40['requiresAppCode']===![])return _0x52b459;const _0x4c8d31=typeof _0x23fa97[_0x157326(0xe1)][_0x157326(0x116)]===_0x157326(0xdd)?_0x23fa97[_0x157326(0xe1)][_0x157326(0x116)][_0x157326(0xdc)]():'';if(!_0x4c8d31)return _0x52b459;const _0x42b769=typeof _0x23fa97[_0x157326(0xe1)]['appcode']===_0x157326(0xdd)&&_0x23fa97[_0x157326(0xe1)][_0x157326(0xf7)][_0x157326(0xdc)]()||productEnv(_0x157326(0x101));if(_0x42b769||_0x23fa97[_0x157326(0xe2)]===_0x157326(0x111))return _0x52b459;const {getRemoteAppList:_0x41e2bb}=await import(_0x157326(0xec)),_0x388021=await _0x41e2bb({'env':_0x23fa97['env']??_0x157326(0x106),'accessKey':_0x23fa97[_0x157326(0xed)]}),_0x429497=findAppByName(_0x388021['items'],_0x4c8d31);if(_0x429497&&!isRuntimeAccessibleApp(_0x429497))throw runtimeInaccessibleAppError(_0x429497,'\x22'+_0x4c8d31+'\x22');const _0x4e44a4=_0x429497?.[_0x157326(0x112)]?.[_0x157326(0xdc)]();if(_0x4e44a4)return _0x4e44a4;throw CliErrors['validation'](_0x157326(0x10a)+_0x4c8d31,_0x157326(0xef)+CLI_BIN_NAME+_0x157326(0xe9)+_0x4c8d31+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x157326(0x10e)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xa4a82b,_0x158f5d){const _0x1885fb=a83_0x1ccd79;if(_0xa4a82b[_0x1885fb(0xd7)]===![]||!_0x158f5d[_0x1885fb(0xed)])return;const _0x22484e=(typeof _0x158f5d[_0x1885fb(0xe1)][_0x1885fb(0x116)]===_0x1885fb(0xdd)&&_0x158f5d[_0x1885fb(0xe1)][_0x1885fb(0x116)][_0x1885fb(0xdc)]()?_0x158f5d[_0x1885fb(0xe1)][_0x1885fb(0x116)]:_0x158f5d[_0x1885fb(0x102)]?.[_0x1885fb(0x10b)]??_0x158f5d[_0x1885fb(0x102)]?.[_0x1885fb(0x108)])?.[_0x1885fb(0xdc)]();if(!_0x22484e)return;const {getRemoteAppList:_0x16cc76}=await import(_0x1885fb(0xec)),_0x43d1cd=await _0x16cc76({'env':_0x158f5d[_0x1885fb(0xea)]??_0x1885fb(0x106),'accessKey':_0x158f5d[_0x1885fb(0xed)]}),_0x2674f8=findAppByName(_0x43d1cd[_0x1885fb(0x104)],_0x22484e);if(_0x2674f8&&!isRuntimeAccessibleApp(_0x2674f8))throw runtimeInaccessibleAppError(_0x2674f8,'\x22'+_0x22484e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5763c3,_0x5da809,_0xafd154){const _0x553077=a83_0x1ccd79;if(_0x5763c3[_0x553077(0xd7)]===![]||!_0x5da809[_0x553077(0xed)])return;const {getRemoteAppList:_0x4cfdfd}=await import('../commands/app/remote-source.js'),_0x52eb36=await _0x4cfdfd({'env':_0x5da809[_0x553077(0xea)]??_0x553077(0x106),'accessKey':_0x5da809['accessKey']}),_0xc24dd7=findAppByCode(_0x52eb36[_0x553077(0x104)],_0xafd154);if(_0xc24dd7&&!isRuntimeAccessibleApp(_0xc24dd7))throw runtimeInaccessibleAppError(_0xc24dd7,_0x553077(0xf0)+_0xafd154+'\x22');}export async function runCommand(_0x39b4a2,_0xca0c0c){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x39b4a2)?withUpdateNotice(_0x39b4a2):_0x39b4a2,_0xca0c0c,runnerAdapter);}function a83_0x103a(_0x19f0df,_0x23c6f4){_0x19f0df=_0x19f0df-0xd7;const _0x739a63=a83_0x739a();let _0x103a3c=_0x739a63[_0x19f0df];return _0x103a3c;}function shouldAttachUpdateNotice(_0x5e9413){const _0x20aa09=a83_0x1ccd79;return![_0x20aa09(0xf6),'schema',_0x20aa09(0xda)][_0x20aa09(0x113)](_0x5e9413['service']);}function withUpdateNotice(_0x8eeb6d){return{..._0x8eeb6d,async 'execute'(_0x5b1cbb){const _0x2c5ea1=a83_0x103a,_0x37648c=shouldResolveUpdateNotice(_0x5b1cbb)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x2c5ea1(0xe6)](null),_0x5a33f7=await _0x8eeb6d[_0x2c5ea1(0x114)](_0x5b1cbb);return attachUpdateNotice(_0x5a33f7,await _0x37648c);}};}function shouldResolveUpdateNotice(_0x31fea8){const _0x56fbc=a83_0x1ccd79;return _0x31fea8[_0x56fbc(0xf4)]===_0x56fbc(0xf3)&&!_0x31fea8[_0x56fbc(0xfb)];}function attachUpdateNotice(_0x34b69f,_0x256631){const _0x20f8cf=a83_0x1ccd79;if(!_0x256631||!_0x34b69f||typeof _0x34b69f!==_0x20f8cf(0x10d))return _0x34b69f;const _0x283844=_0x34b69f,_0x495b3e=typeof _0x283844['_notice']===_0x20f8cf(0x10d)&&_0x283844['_notice']!==null?_0x283844[_0x20f8cf(0xe4)]:{};return{..._0x283844,'_notice':{..._0x495b3e,'update':_0x256631}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x387a47,_0x48963c){const _0x3373de=a84_0x2485,_0x574783=_0x387a47();while(!![]){try{const _0x578f7e=-parseInt(_0x3373de(0x8b))/0x1+-parseInt(_0x3373de(0x8c))/0x2*(-parseInt(_0x3373de(0x80))/0x3)+parseInt(_0x3373de(0x83))/0x4+parseInt(_0x3373de(0x8f))/0x5*(-parseInt(_0x3373de(0x81))/0x6)+parseInt(_0x3373de(0x84))/0x7+-parseInt(_0x3373de(0x8a))/0x8+parseInt(_0x3373de(0x85))/0x9;if(_0x578f7e===_0x48963c)break;else _0x574783['push'](_0x574783['shift']());}catch(_0x4e27db){_0x574783['push'](_0x574783['shift']());}}}(a84_0x3724,0xd5d4a));function a84_0x3724(){const _0x5e0c76=['668429JOCPok','1482GTuWfL','requiresAuth','auth','5poyDfq','services','2457VeZOhC','2611110mnJdUc','commands','5446264knnKck','6319796oKSNmZ','4390497bIiDcO','map','has','none','filter','11037136vmxCTe'];a84_0x3724=function(){return _0x5e0c76;};return a84_0x3724();}import{buildSchemaPayload as a84_0x4b99b4}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x234b76=a84_0x2485,{serviceRegistry:_0x270c16,findDefinition:_0x3aafb7}=await import('../commands/registry.js'),_0x35a370=new Set(_0x270c16[_0x234b76(0x86)](_0x5d71c9=>_0x5d71c9['service'])),_0x595669=listDynamicServiceEntries()[_0x234b76(0x89)](_0x430572=>!_0x35a370[_0x234b76(0x87)](_0x430572['service'])),_0x273715=a84_0x4b99b4({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x270c16,_0x595669),'buildAllFlags':buildAllFlags,'findDefinition':(_0xf3fbd6,_0x3e395a)=>_0x3aafb7(_0xf3fbd6,_0x3e395a)??findDynamicServiceDefinition(_0xf3fbd6,_0x3e395a)});return normalizeSchemaPayload(_0x273715);}function a84_0x2485(_0x4e3497,_0x52b791){_0x4e3497=_0x4e3497-0x7f;const _0x372457=a84_0x3724();let _0x248532=_0x372457[_0x4e3497];return _0x248532;}function normalizeSchemaPayload(_0xfbf559){const _0x520dc6=a84_0x2485;return{..._0xfbf559,'schemaVersion':0x2,'services':_0xfbf559[_0x520dc6(0x7f)][_0x520dc6(0x86)](_0xbd4ccf=>({..._0xbd4ccf,'commands':_0xbd4ccf[_0x520dc6(0x82)][_0x520dc6(0x86)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3b1ef6){const _0x50b71f=a84_0x2485,_0x4b7612=_0x3b1ef6;return{..._0x3b1ef6,'auth':_0x4b7612[_0x50b71f(0x8e)]??(_0x3b1ef6[_0x50b71f(0x8d)]?'required':_0x50b71f(0x88))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a85_0x365f(_0x3a9637,_0x4e72c5){_0x3a9637=_0x3a9637-0x195;const _0x1eccc9=a85_0x1ecc();let _0x365f49=_0x1eccc9[_0x3a9637];return _0x365f49;}(function(_0x2be890,_0x1ed8bf){const _0x58abb7=a85_0x365f,_0x27eba7=_0x2be890();while(!![]){try{const _0x56ab09=-parseInt(_0x58abb7(0x19d))/0x1*(-parseInt(_0x58abb7(0x19b))/0x2)+parseInt(_0x58abb7(0x199))/0x3*(-parseInt(_0x58abb7(0x197))/0x4)+parseInt(_0x58abb7(0x1a0))/0x5*(parseInt(_0x58abb7(0x1a1))/0x6)+-parseInt(_0x58abb7(0x196))/0x7+parseInt(_0x58abb7(0x19f))/0x8*(-parseInt(_0x58abb7(0x1a3))/0x9)+-parseInt(_0x58abb7(0x19a))/0xa+parseInt(_0x58abb7(0x195))/0xb;if(_0x56ab09===_0x1ed8bf)break;else _0x27eba7['push'](_0x27eba7['shift']());}catch(_0x304cff){_0x27eba7['push'](_0x27eba7['shift']());}}}(a85_0x1ecc,0xbfc06));export function insertDynamicServicesAfterServiceTree(_0x1b7788,_0x2cde00){const _0x25e6dd=a85_0x365f;if(_0x2cde00[_0x25e6dd(0x1a2)]===0x0)return[..._0x1b7788];const _0x141d34=_0x1b7788[_0x25e6dd(0x19c)](_0x26e4a4=>_0x26e4a4[_0x25e6dd(0x19e)]==='service');if(_0x141d34<0x0)return[..._0x1b7788,..._0x2cde00];return[..._0x1b7788[_0x25e6dd(0x198)](0x0,_0x141d34+0x1),..._0x2cde00,..._0x1b7788['slice'](_0x141d34+0x1)];}function a85_0x1ecc(){const _0x10882a=['5656532YMkJKh','3315764aDGoZo','slice','3UAUpCm','581490RoNecz','1149638VmRVcb','findIndex','1opsLeL','service','48Xcyyay','1724135ONDieD','6WSPpYE','length','2334303fjVuAI','34288496LwmMXL'];a85_0x1ecc=function(){return _0x10882a;};return a85_0x1ecc();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x212400,_0x36e918){var _0x5d2648=a86_0x3ae8,_0x3c26fa=_0x212400();while(!![]){try{var _0x32c1c0=parseInt(_0x5d2648(0x1e6))/0x1+parseInt(_0x5d2648(0x1e1))/0x2+-parseInt(_0x5d2648(0x1e3))/0x3*(parseInt(_0x5d2648(0x1e2))/0x4)+parseInt(_0x5d2648(0x1de))/0x5*(parseInt(_0x5d2648(0x1e5))/0x6)+-parseInt(_0x5d2648(0x1e4))/0x7+parseInt(_0x5d2648(0x1e0))/0x8+-parseInt(_0x5d2648(0x1df))/0x9;if(_0x32c1c0===_0x36e918)break;else _0x3c26fa['push'](_0x3c26fa['shift']());}catch(_0xf14ff1){_0x3c26fa['push'](_0x3c26fa['shift']());}}}(a86_0x692f,0x7c392));function a86_0x692f(){var _0x503461=['5AMCfhT','19779426XjbUdg','4830360CPnqvd','1897188zIvPUN','4fKxTCk','137799DollPd','5359487POMLpt','6013266VPLoWC','963506CULKHa'];a86_0x692f=function(){return _0x503461;};return a86_0x692f();}function a86_0x3ae8(_0x1da2c8,_0x800c0d){_0x1da2c8=_0x1da2c8-0x1de;var _0x692f47=a86_0x692f();var _0x3ae89c=_0x692f47[_0x1da2c8];return _0x3ae89c;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x5692(_0xe27640,_0x27a6f7){_0xe27640=_0xe27640-0x15e;const _0x14f534=a87_0x14f5();let _0x5692af=_0x14f534[_0xe27640];return _0x5692af;}const a87_0x3c420e=a87_0x5692;(function(_0x2190d7,_0x184c41){const _0x186b28=a87_0x5692,_0xfa3e10=_0x2190d7();while(!![]){try{const _0x31d1ab=parseInt(_0x186b28(0x169))/0x1*(-parseInt(_0x186b28(0x15e))/0x2)+parseInt(_0x186b28(0x167))/0x3*(parseInt(_0x186b28(0x166))/0x4)+parseInt(_0x186b28(0x162))/0x5*(-parseInt(_0x186b28(0x16b))/0x6)+parseInt(_0x186b28(0x160))/0x7*(parseInt(_0x186b28(0x164))/0x8)+parseInt(_0x186b28(0x163))/0x9+-parseInt(_0x186b28(0x15f))/0xa+-parseInt(_0x186b28(0x16c))/0xb*(parseInt(_0x186b28(0x161))/0xc);if(_0x31d1ab===_0x184c41)break;else _0xfa3e10['push'](_0xfa3e10['shift']());}catch(_0x260701){_0xfa3e10['push'](_0xfa3e10['shift']());}}}(a87_0x14f5,0xc30a5));export const VERSION=a87_0x3c420e(0x165);function a87_0x14f5(){const _0x327f87=['165tCsLJu','2TucFAq','9818080BgaTHi','40901Vqvgxl','21780fnSIFu','12435EDLONI','12305637QxyzVO','1088XzxBUT','2.1.7','8CuhYKd','46542QsDule','8063aee','208474uCpJPT','2026-07-07T11:04:05.382Z','426Qmmooi'];a87_0x14f5=function(){return _0x327f87;};return a87_0x14f5();}export const GIT_TAG='v2.1.7-beta.5';export const GIT_COMMIT=a87_0x3c420e(0x168);export const BUILD_TIME=a87_0x3c420e(0x16a);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f28d7,_0x4491a9){const _0xee2c44=a88_0x1841,_0x41bdf1=_0x1f28d7();while(!![]){try{const _0x1f458c=-parseInt(_0xee2c44(0x191))/0x1*(-parseInt(_0xee2c44(0x197))/0x2)+-parseInt(_0xee2c44(0x18e))/0x3*(-parseInt(_0xee2c44(0x192))/0x4)+parseInt(_0xee2c44(0x18c))/0x5*(-parseInt(_0xee2c44(0x196))/0x6)+parseInt(_0xee2c44(0x194))/0x7+parseInt(_0xee2c44(0x18a))/0x8+parseInt(_0xee2c44(0x195))/0x9*(-parseInt(_0xee2c44(0x18b))/0xa)+-parseInt(_0xee2c44(0x190))/0xb;if(_0x1f458c===_0x4491a9)break;else _0x41bdf1['push'](_0x41bdf1['shift']());}catch(_0x1bc0c9){_0x41bdf1['push'](_0x41bdf1['shift']());}}}(a88_0x2bf2,0x8dc90));import{jsx as a88_0x2de7db,jsxs as a88_0x50f2b5}from'react/jsx-runtime';import{useEffect}from'react';function a88_0x2bf2(){const _0x5a7cd6=['20016KSERdg','59802oKdkuF','60jQjZtp','1277272HQDIgW','2000BfkFJM','195yzBkHr','\x20to\x20view\x20available\x20commands.','101094OLoUvK','\x20--help','9774633VcmNsp','10667LBcHVt','100qEzPRQ','green','6865243HmpsvW'];a88_0x2bf2=function(){return _0x5a7cd6;};return a88_0x2bf2();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a88_0x1841(_0x3c55b1,_0x1e74d8){_0x3c55b1=_0x3c55b1-0x18a;const _0x2bf269=a88_0x2bf2();let _0x184114=_0x2bf269[_0x3c55b1];return _0x184114;}export function Help(){const _0xfdbb8b=a88_0x1841,{exit:_0x9c8101}=useApp();return useEffect(()=>{_0x9c8101();},[_0x9c8101]),a88_0x50f2b5(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a88_0x2de7db(Box,{'children':a88_0x2de7db(Text,{'bold':!![],'color':_0xfdbb8b(0x193),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a88_0x50f2b5(Box,{'marginTop':0x1,'children':[a88_0x2de7db(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a88_0x2de7db(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0xfdbb8b(0x18f)}),a88_0x2de7db(Text,{'dimColor':!![],'children':_0xfdbb8b(0x18d)})]})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x14ad66=a89_0x3259;function a89_0x4109(){const _0x22f9fb=['2176554hrXnPH','unknown','3493089VlsZUM','join','4369768IgUPdj','skills','stdout','stderr','8spQppT','add','3860260FSaYbo','2338056TditAY','status','skipNpxSkillsEnvSuffix','toString','trim','stdio','1086rhasoP','397YMnPOr','3585540ViHnny','npx','log','inherit','pipe'];a89_0x4109=function(){return _0x22f9fb;};return a89_0x4109();}(function(_0x52cd80,_0x28a642){const _0x59f502=a89_0x3259,_0x2cd171=_0x52cd80();while(!![]){try{const _0x417f7a=-parseInt(_0x59f502(0xbe))/0x1*(-parseInt(_0x59f502(0xbd))/0x2)+parseInt(_0x59f502(0xc6))/0x3+parseInt(_0x59f502(0xb4))/0x4*(-parseInt(_0x59f502(0xb6))/0x5)+-parseInt(_0x59f502(0xc4))/0x6+parseInt(_0x59f502(0xbf))/0x7+parseInt(_0x59f502(0xc8))/0x8+parseInt(_0x59f502(0xb7))/0x9;if(_0x417f7a===_0x28a642)break;else _0x2cd171['push'](_0x2cd171['shift']());}catch(_0x4e456f){_0x2cd171['push'](_0x2cd171['shift']());}}}(a89_0x4109,0xc1300));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a89_0x3259(_0x3bd289,_0x688c7d){_0x3bd289=_0x3bd289-0xb3;const _0x410902=a89_0x4109();let _0x3259d4=_0x410902[_0x3bd289];return _0x3259d4;}import{LOVRABET_SKILL_SOURCE as a89_0x48efe1}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a89_0x48efe1;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a89_0x14ad66(0xb9)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x464050,_0x375607=LOVRABET_SKILL_SOURCE,_0x2985de){const _0x5e49f5=a89_0x14ad66;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x37f1d4=_0x2985de?.[_0x5e49f5(0xbc)]??_0x5e49f5(0xc2),_0x4c15de=resolveNpmBin(_0x5e49f5(0xc0)),_0x40864d=[_0x5e49f5(0xc9),_0x5e49f5(0xb5),_0x375607,'-g','-y'],_0x1f0358=[_0x4c15de,..._0x40864d][_0x5e49f5(0xc7)]('\x20');console[_0x5e49f5(0xc1)]('*\x20'+_0x1f0358);const _0x15eed4=spawnSync(_0x4c15de,_0x40864d,{'cwd':_0x464050,'stdio':_0x37f1d4,'env':process.env,'shell':![]});if(_0x15eed4[_0x5e49f5(0xb8)]===0x0)return{'ok':!![],'status':0x0};let _0x100365='exit\x20'+(_0x15eed4['status']??_0x5e49f5(0xc5));if(_0x37f1d4===_0x5e49f5(0xc3)){const _0x88749a=_0x15eed4[_0x5e49f5(0xb3)]?_0x15eed4[_0x5e49f5(0xb3)][_0x5e49f5(0xba)]()['trim']():'',_0x216daa=_0x15eed4['stdout']?_0x15eed4[_0x5e49f5(0xca)][_0x5e49f5(0xba)]()[_0x5e49f5(0xbb)]():'';if(_0x88749a)_0x100365=_0x88749a;else{if(_0x216daa)_0x100365=_0x216daa;}}return{'ok':![],'status':_0x15eed4[_0x5e49f5(0xb8)]??null,'error':_0x100365};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a90_0x5a5a4f=a90_0x2df6;(function(_0x58cf5b,_0x3e007b){const _0x297ea4=a90_0x2df6,_0x3e0fec=_0x58cf5b();while(!![]){try{const _0x88282f=-parseInt(_0x297ea4(0xf9))/0x1*(parseInt(_0x297ea4(0xef))/0x2)+-parseInt(_0x297ea4(0xfb))/0x3+parseInt(_0x297ea4(0xf5))/0x4*(parseInt(_0x297ea4(0xf0))/0x5)+-parseInt(_0x297ea4(0xf6))/0x6*(-parseInt(_0x297ea4(0xf1))/0x7)+-parseInt(_0x297ea4(0xf3))/0x8*(-parseInt(_0x297ea4(0xfe))/0x9)+parseInt(_0x297ea4(0xfa))/0xa+-parseInt(_0x297ea4(0xff))/0xb;if(_0x88282f===_0x3e007b)break;else _0x3e0fec['push'](_0x3e0fec['shift']());}catch(_0x1a2b3a){_0x3e0fec['push'](_0x3e0fec['shift']());}}}(a90_0x4560,0x28627));export const METADATA_FILE=a90_0x5a5a4f(0xf2);export const SKILL_FILE='SKILL.md';function a90_0x4560(){const _0x3b2eab=['787028ymYyUA','.DS_Store','2ZToyPv','5bxjbbC','175hYiiWd','lovrabet.skill.json','72ohqlvl','.next','1192740YEGILa','10986xHsxtK','.turbo','.hg','12461pFaMll','409220JGZweI','486375dXnFgq','build','dist','26667WVIyrF'];a90_0x4560=function(){return _0x3b2eab;};return a90_0x4560();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a90_0x5a5a4f(0x100)]);function a90_0x2df6(_0x1d566e,_0x7167fb){_0x1d566e=_0x1d566e-0xef;const _0x456038=a90_0x4560();let _0x2df609=_0x456038[_0x1d566e];return _0x2df609;}export const IGNORED_DIR_NAMES=new Set(['.git',a90_0x5a5a4f(0xf8),'.svn','node_modules',a90_0x5a5a4f(0xf4),a90_0x5a5a4f(0xfd),a90_0x5a5a4f(0xfc),'coverage',a90_0x5a5a4f(0xf7),'.cache']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18311f,_0x171315){const _0x3cc238=a91_0x5140,_0x6125c9=_0x18311f();while(!![]){try{const _0x14932d=parseInt(_0x3cc238(0x165))/0x1*(parseInt(_0x3cc238(0x151))/0x2)+parseInt(_0x3cc238(0x159))/0x3*(parseInt(_0x3cc238(0x156))/0x4)+parseInt(_0x3cc238(0x162))/0x5*(parseInt(_0x3cc238(0x158))/0x6)+-parseInt(_0x3cc238(0x15d))/0x7*(parseInt(_0x3cc238(0x153))/0x8)+-parseInt(_0x3cc238(0x15f))/0x9+-parseInt(_0x3cc238(0x15c))/0xa*(parseInt(_0x3cc238(0x157))/0xb)+-parseInt(_0x3cc238(0x152))/0xc*(parseInt(_0x3cc238(0x164))/0xd);if(_0x14932d===_0x171315)break;else _0x6125c9['push'](_0x6125c9['shift']());}catch(_0x50a6de){_0x6125c9['push'](_0x6125c9['shift']());}}}(a91_0x53f0,0xbfdca));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x43f01f,_0x1a7f11){const _0x249be2=a91_0x5140,_0x2e101a=normalizeSkillRelativePath(_0x1a7f11),_0x395084=realOrResolved(_0x43f01f),_0x2b1f58=resolve(_0x395084,..._0x2e101a[_0x249be2(0x160)]('/'));if(!isPathInside(_0x2b1f58,_0x395084))throw CliErrors['validation'](_0x249be2(0x15a)+_0x1a7f11);return ensureNoSymlinkInManagedPath(_0x395084,_0x2e101a),_0x2b1f58;}export function ensureNoSymlinkInManagedPath(_0x2d9259,_0x1232a5){const _0x3b0a07=a91_0x5140;let _0x4b4d52=_0x2d9259;for(const _0x54f0d1 of _0x1232a5['split']('/')){_0x4b4d52=resolve(_0x4b4d52,_0x54f0d1);const _0x47afd9=lstatIfPresent(_0x4b4d52);if(_0x47afd9?.[_0x3b0a07(0x15b)]())throw CliErrors[_0x3b0a07(0x155)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x1232a5);}}export function isDanglingSymlink(_0x397678){try{return lstatSync(_0x397678)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0xd9ac5b){const _0x1d8bef=readlinkSync(_0xd9ac5b);return isAbsolute(_0x1d8bef)?_0x1d8bef:resolve(dirname(_0xd9ac5b),_0x1d8bef);}function a91_0x5140(_0x1345ff,_0x54835c){_0x1345ff=_0x1345ff-0x151;const _0x53f019=a91_0x53f0();let _0x5140f7=_0x53f019[_0x1345ff];return _0x5140f7;}export function isPathInside(_0x4c67a3,_0x20ffdd){const _0x5cb83d=a91_0x5140,_0x12351b=_0x4c67a3[_0x5cb83d(0x154)](sep)?_0x4c67a3:''+_0x4c67a3+sep,_0x4d4760=_0x20ffdd[_0x5cb83d(0x154)](sep)?_0x20ffdd:''+_0x20ffdd+sep;return _0x4c67a3===_0x20ffdd||_0x12351b[_0x5cb83d(0x163)](_0x4d4760);}function a91_0x53f0(){const _0x2468be=['Unsafe\x20Skill\x20file\x20path:\x20','isSymbolicLink','2883780wDGvWU','49QGiRia','.tmp','10816371sIjgvP','split','stringify','65425brNbNI','startsWith','2249rDdHfD','569jouNmi','4474oDElHL','11328YsLPDE','608216risGyT','endsWith','validation','4MWVkdU','22byveRM','372fVqXsZ','3527457pgdmbP'];a91_0x53f0=function(){return _0x2468be;};return a91_0x53f0();}export function realOrResolved(_0x1770f7){try{return realpathSync(_0x1770f7);}catch{return resolve(_0x1770f7);}}export function lstatIfPresent(_0x5f4749){try{return lstatSync(_0x5f4749);}catch{return undefined;}}export function writeTextAtomic(_0x29426c,_0x3eed58,_0xfb7032){writeBytesAtomic(_0x29426c,Buffer['from'](_0x3eed58,'utf8'),_0xfb7032);}export function writeBytesAtomic(_0x13d76f,_0x11d18a,_0x1a0757){const _0x4b46cf=a91_0x5140,_0x1722a2=_0x13d76f+_0x4b46cf(0x15e);try{writeFileSync(_0x1722a2,_0x11d18a,{'mode':_0x1a0757}),renameSync(_0x1722a2,_0x13d76f);}catch(_0x140698){try{rmSync(_0x1722a2,{'force':!![]});}catch{}throw _0x140698;}}export function writeJsonAtomic(_0x513587,_0x483e94){const _0x5c8b89=a91_0x5140;writeTextAtomic(_0x513587,JSON[_0x5c8b89(0x161)](_0x483e94,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fe24f,_0x256a86){const _0x751b40=a92_0x3bef,_0xc97673=_0x2fe24f();while(!![]){try{const _0x12ed37=parseInt(_0x751b40(0xde))/0x1*(parseInt(_0x751b40(0xdf))/0x2)+-parseInt(_0x751b40(0xdc))/0x3*(parseInt(_0x751b40(0xd7))/0x4)+-parseInt(_0x751b40(0xe2))/0x5*(parseInt(_0x751b40(0xe1))/0x6)+parseInt(_0x751b40(0xdd))/0x7+-parseInt(_0x751b40(0xd9))/0x8*(-parseInt(_0x751b40(0xd6))/0x9)+-parseInt(_0x751b40(0xe3))/0xa*(-parseInt(_0x751b40(0xe5))/0xb)+-parseInt(_0x751b40(0xd8))/0xc;if(_0x12ed37===_0x256a86)break;else _0xc97673['push'](_0xc97673['shift']());}catch(_0x558a57){_0xc97673['push'](_0xc97673['shift']());}}}(a92_0x5e7a,0x26c42));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x217b49){const _0x2b36d1=a92_0x3bef;return createHash(_0x2b36d1(0xe0))['update'](_0x217b49)[_0x2b36d1(0xdb)](_0x2b36d1(0xe4));}function a92_0x3bef(_0x9807b8,_0x55bc42){_0x9807b8=_0x9807b8-0xd6;const _0x5e7ab7=a92_0x5e7a();let _0x3bef2d=_0x5e7ab7[_0x9807b8];return _0x3bef2d;}export function fileHash(_0xd02a07){return bufferSha256(fileContent(_0xd02a07));}function a92_0x5e7a(){const _0xd9881f=['62513LIsNTO','10cBGrdH','sha256','48unqDss','191045NgaZjE','63120kQMCAT','hex','187sDjGhv','update','9iTRKYs','35752VbuGmc','2945316cpXAEx','1179088NGGIVs','path','digest','48jZFNtu','1999578nfuWrE'];a92_0x5e7a=function(){return _0xd9881f;};return a92_0x5e7a();}export function bufferSha256(_0x4a1ef6){const _0x365dab=a92_0x3bef;return createHash(_0x365dab(0xe0))['update'](_0x4a1ef6)[_0x365dab(0xdb)]('hex');}export function fileTreeHash(_0x58cfad){const _0x4f3fc9=a92_0x3bef,_0x30c58e=createHash(_0x4f3fc9(0xe0));for(const _0x4ffaab of normalizeManifestFiles(_0x58cfad)){_0x30c58e['update'](_0x4ffaab[_0x4f3fc9(0xda)]),_0x30c58e[_0x4f3fc9(0xe6)]('\x00'),_0x30c58e[_0x4f3fc9(0xe6)](_0x4ffaab[_0x4f3fc9(0xe0)]),_0x30c58e['update']('\x00'),_0x30c58e['update'](String(_0x4ffaab['size'])),_0x30c58e['update']('\x00');}return _0x30c58e[_0x4f3fc9(0xdb)](_0x4f3fc9(0xe4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xebd8a8,_0x40c1f3){const _0x11b413=a93_0x5f42,_0x5c4ac2=_0xebd8a8();while(!![]){try{const _0x55e75b=parseInt(_0x11b413(0x144))/0x1*(-parseInt(_0x11b413(0x134))/0x2)+-parseInt(_0x11b413(0x151))/0x3+parseInt(_0x11b413(0x150))/0x4*(parseInt(_0x11b413(0x138))/0x5)+-parseInt(_0x11b413(0x15b))/0x6+parseInt(_0x11b413(0x15c))/0x7+-parseInt(_0x11b413(0x14a))/0x8+parseInt(_0x11b413(0x14d))/0x9;if(_0x55e75b===_0x40c1f3)break;else _0x5c4ac2['push'](_0x5c4ac2['shift']());}catch(_0x175230){_0x5c4ac2['push'](_0x5c4ac2['shift']());}}}(a93_0x2b5c,0xb5784));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a93_0x5f3da9 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a93_0x5f3da9;function a93_0x5f42(_0x54ec5d,_0xbb4757){_0x54ec5d=_0x54ec5d-0x12f;const _0x2b5ca7=a93_0x2b5c();let _0x5f42a2=_0x2b5ca7[_0x54ec5d];return _0x5f42a2;}export function linkEffectiveRuntimeSkills(_0xa3ba78,_0x40f464,_0x10ec9e={}){const _0x31e314=a93_0x5f42,_0x2ef61b=new Map();for(const _0x5beb06 of _0xa3ba78){const _0x3c87b1=_0x5beb06[_0x31e314(0x156)][_0x31e314(0x13e)];if(!_0x3c87b1)continue;const _0x2b028f=_0x2ef61b['get'](_0x3c87b1);(!_0x2b028f||_0x5beb06[_0x31e314(0x140)]===_0x31e314(0x13a))&&_0x2ef61b[_0x31e314(0x146)](_0x3c87b1,_0x5beb06);}const _0x270d4d=[],_0x1bb601=resolveSkillSyncPaths(_0x10ec9e);for(const _0x1c2913 of _0x2ef61b['values']()){const _0x5a1ea9=requireSkillCode(_0x1c2913[_0x31e314(0x156)]),_0x29e9bc=_0x40f464+'--'+_0x5a1ea9;for(const _0x38236a of[_0x1bb601[_0x31e314(0x145)],_0x1bb601[_0x31e314(0x147)]]){_0x270d4d[_0x31e314(0x14f)](ensureManagedSymlink(resolve(_0x38236a,_0x29e9bc),_0x1c2913[_0x31e314(0x154)],_0x1bb601[_0x31e314(0x15f)]));}}return _0x270d4d;}export function pruneStaleRuntimeSkillLinks(_0x44dbbc,_0x52694b,_0x4880f1={},_0x3a0cd5){const _0x5c7afe=a93_0x5f42,_0x22dee5=resolveSkillSyncPaths(_0x4880f1),_0x200054=new Set([..._0x52694b][_0x5c7afe(0x135)](_0x101d26=>_0x101d26['trim']())[_0x5c7afe(0x143)](Boolean)),_0x50ff0d=_0x3a0cd5?new Set([..._0x3a0cd5][_0x5c7afe(0x135)](_0x412dd0=>_0x412dd0[_0x5c7afe(0x142)]())[_0x5c7afe(0x143)](Boolean)):undefined,_0x3395f8=[];for(const _0x44b297 of[_0x22dee5[_0x5c7afe(0x145)],_0x22dee5['claudeSkillsDir']]){for(const _0x2a585f of managedAppSkillLinkPaths(_0x44b297,_0x44dbbc)){const _0x378a47=basename(_0x2a585f)[_0x5c7afe(0x139)]((_0x44dbbc+'--')['length']);if(_0x50ff0d&&!_0x50ff0d[_0x5c7afe(0x136)](_0x378a47))continue;if(_0x200054['has'](_0x378a47))continue;_0x3395f8['push'](removeManagedSkillLink(_0x2a585f,_0x22dee5[_0x5c7afe(0x15f)]));}}return _0x3395f8;}export function pruneStaleRuntimeSkillCache(_0x3c267b,_0x60fe47={}){const _0x3d370c=a93_0x5f42,_0x42ad4f=new Set([..._0x3c267b[_0x3d370c(0x148)]]['map'](_0x161cc5=>_0x161cc5[_0x3d370c(0x142)]())[_0x3d370c(0x143)](Boolean)),_0x4accae=_0x3c267b[_0x3d370c(0x161)]?new Set([..._0x3c267b[_0x3d370c(0x161)]]['map'](_0x29087c=>_0x29087c[_0x3d370c(0x142)]())['filter'](Boolean)):undefined,_0x4c0079=_0x3c267b[_0x3d370c(0x13f)]??[_0x3d370c(0x13a),_0x3d370c(0x133)],_0x4de131=resolve(getRuntimeSkillCacheRoot(_0x3c267b[_0x3d370c(0x152)],_0x3c267b[_0x3d370c(0x131)],_0x60fe47),safePathSegment(_0x3c267b[_0x3d370c(0x159)],_0x3d370c(0x159))),_0x326748=[];for(const _0x1ca78d of _0x4c0079){const _0x37192c=resolve(_0x4de131,_0x1ca78d);if(!existsSync(_0x37192c))continue;for(const _0x265efd of readdirSync(_0x37192c,{'withFileTypes':!![]})){if(!_0x265efd[_0x3d370c(0x158)]())continue;const _0x331c1e=_0x265efd[_0x3d370c(0x12f)];if(_0x4accae&&!_0x4accae[_0x3d370c(0x136)](_0x331c1e))continue;if(_0x42ad4f['has'](_0x331c1e))continue;const _0x4ed469=resolve(_0x37192c,_0x331c1e),_0x1a994b=readMetadataIfPresent(resolve(_0x4ed469,METADATA_FILE));if(_0x1a994b?.['appCode']!==_0x3c267b[_0x3d370c(0x159)]||_0x1a994b[_0x3d370c(0x140)]!==_0x1ca78d||_0x1a994b[_0x3d370c(0x13e)]!==_0x331c1e){_0x326748['push']({'path':_0x4ed469,'action':'skipped','reason':'metadata-mismatch'});continue;}removeSync(_0x4ed469),_0x326748['push']({'path':_0x4ed469,'action':_0x3d370c(0x15d)});}}return _0x326748;}export function linkGlobalRuntimeSkills(_0xfffe31,_0x12b75e={}){const _0x30d679=a93_0x5f42,_0x142e3a=resolveSkillSyncPaths(_0x12b75e),_0x1e82dc=[];for(const _0x4a98c0 of _0xfffe31){if(_0x4a98c0['scope']!==_0x30d679(0x160))throw CliErrors[_0x30d679(0x157)](_0x30d679(0x130)+_0x4a98c0['scope']);const _0xe93007=requireSkillCode(_0x4a98c0[_0x30d679(0x156)]),_0x558f67=copyManagedSkillDirectory(_0x4a98c0[_0x30d679(0x154)],resolve(_0x142e3a['agentsSkillsDir'],_0xe93007));_0x1e82dc[_0x30d679(0x14f)]({..._0x558f67,'contentHash':_0x4a98c0[_0x30d679(0x15a)]});}return _0x1e82dc;}function ensureManagedSymlink(_0x201ccd,_0x4cab84,_0x41174f){const _0x2c343f=a93_0x5f42;mkdirSync(dirname(_0x201ccd),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x201ccd)||isDanglingSymlink(_0x201ccd)){const _0x49325e=lstatSync(_0x201ccd);if(!_0x49325e[_0x2c343f(0x14b)]())throw CliErrors[_0x2c343f(0x157)](_0x2c343f(0x13b)+_0x201ccd);const _0x41ee54=resolveSymlinkTarget(_0x201ccd);if(!isPathInside(realOrResolved(_0x41ee54),realOrResolved(_0x41174f)))throw CliErrors[_0x2c343f(0x157)](_0x2c343f(0x15e)+_0x201ccd);if(realOrResolved(_0x41ee54)===realOrResolved(_0x4cab84))return{'path':_0x201ccd,'target':_0x4cab84,'action':_0x2c343f(0x14c)};return unlinkSync(_0x201ccd),symlinkSync(_0x4cab84,_0x201ccd,'dir'),{'path':_0x201ccd,'target':_0x4cab84,'action':_0x2c343f(0x14e)};}return symlinkSync(_0x4cab84,_0x201ccd,'dir'),{'path':_0x201ccd,'target':_0x4cab84,'action':_0x2c343f(0x155)};}function managedAppSkillLinkPaths(_0x3690ef,_0x135a7c){const _0x47e41a=a93_0x5f42;if(!existsSync(_0x3690ef))return[];const _0x20ecc0=_0x135a7c+'--';return readdirSync(_0x3690ef,{'withFileTypes':!![]})[_0x47e41a(0x143)](_0x2356eb=>_0x2356eb[_0x47e41a(0x12f)][_0x47e41a(0x149)](_0x20ecc0))[_0x47e41a(0x135)](_0x23ef35=>resolve(_0x3690ef,_0x23ef35['name']));}function a93_0x2b5c(){const _0x3f41f5=['builtin','pruneSkillCodes','name','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','accessKey','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','company','610nuAUuS','map','has','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','5zYpEZZ','slice','personal','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','skillCode','scopes','scope','external-symlink','trim','filter','2878plNgkP','agentsSkillsDir','set','claudeSkillsDir','activeSkillCodes','startsWith','3930856MOdBMJ','isSymbolicLink','unchanged','12074823KVOaZx','updated','push','3890324UhSQeN','1319109LODdLh','env','skipped','dir','created','skill','validation','isDirectory','appCode','contentHash','7073934cAaFZy','9918377aLEisp','removed','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','managedRoot'];a93_0x2b5c=function(){return _0x3f41f5;};return a93_0x2b5c();}function removeManagedSkillLink(_0x529818,_0x50f3a2){const _0x24aafa=a93_0x5f42,_0x2fc8df=lstatIfPresent(_0x529818);if(!_0x2fc8df?.[_0x24aafa(0x14b)]())return{'path':_0x529818,'action':_0x24aafa(0x153),'reason':'not-managed-symlink'};const _0x4b9e6c=resolveSymlinkTarget(_0x529818);if(!isPathInside(realOrResolved(_0x4b9e6c),realOrResolved(_0x50f3a2)))return{'path':_0x529818,'action':_0x24aafa(0x153),'reason':_0x24aafa(0x141)};return unlinkSync(_0x529818),{'path':_0x529818,'action':_0x24aafa(0x15d)};}export function copyManagedSkillDirectory(_0x365b8d,_0x1611ae){const _0x1dbb85=a93_0x5f42,_0x2e137a=resolve(_0x1611ae,METADATA_FILE),_0x2b69b5=existsSync(_0x1611ae);if(_0x2b69b5){const _0x53878a=lstatSync(_0x1611ae);if(_0x53878a[_0x1dbb85(0x14b)]())throw CliErrors[_0x1dbb85(0x157)](_0x1dbb85(0x13c)+_0x1611ae);if(!_0x53878a[_0x1dbb85(0x158)]())throw CliErrors[_0x1dbb85(0x157)](_0x1dbb85(0x137)+_0x1611ae);const _0x4ee0ac=readMetadataIfPresent(_0x2e137a);if(_0x4ee0ac?.[_0x1dbb85(0x140)]!=='builtin')throw CliErrors[_0x1dbb85(0x157)](_0x1dbb85(0x13d)+_0x1611ae);}ensureDirSync(dirname(_0x1611ae));const _0x2960e0=_0x2b69b5?readMetadataIfPresent(_0x2e137a)?.[_0x1dbb85(0x15a)]:undefined,_0x263716=readMetadataIfPresent(resolve(_0x365b8d,METADATA_FILE))?.[_0x1dbb85(0x15a)];return _0x2b69b5&&removeSync(_0x1611ae),copySkillDirectory(_0x365b8d,_0x1611ae),{'path':_0x1611ae,'target':_0x365b8d,'action':!_0x2b69b5?_0x1dbb85(0x155):_0x2960e0===_0x263716?'unchanged':'updated'};}function copySkillDirectory(_0x520121,_0x12d6ea){copySync(_0x520121,_0x12d6ea,{'dereference':![],'overwrite':!![],'filter'(_0x3b38db){const _0x2efed5=a93_0x5f42;if(lstatSync(_0x3b38db)[_0x2efed5(0x14b)]())throw CliErrors[_0x2efed5(0x157)](_0x2efed5(0x132)+_0x3b38db);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x51dda0,_0xd9fde2){const _0x6ba0e5=a94_0x4a15,_0x2a71a3=_0x51dda0();while(!![]){try{const _0x51a7ae=parseInt(_0x6ba0e5(0x18c))/0x1*(parseInt(_0x6ba0e5(0x193))/0x2)+-parseInt(_0x6ba0e5(0x18d))/0x3+-parseInt(_0x6ba0e5(0x1a3))/0x4+-parseInt(_0x6ba0e5(0x194))/0x5*(parseInt(_0x6ba0e5(0x18f))/0x6)+-parseInt(_0x6ba0e5(0x1a2))/0x7*(-parseInt(_0x6ba0e5(0x19b))/0x8)+-parseInt(_0x6ba0e5(0x192))/0x9+-parseInt(_0x6ba0e5(0x197))/0xa*(-parseInt(_0x6ba0e5(0x18a))/0xb);if(_0x51a7ae===_0xd9fde2)break;else _0x2a71a3['push'](_0x2a71a3['shift']());}catch(_0xb77cdb){_0x2a71a3['push'](_0x2a71a3['shift']());}}}(a94_0x232f,0x3f262));function a94_0x4a15(_0x3a695f,_0x498ddb){_0x3a695f=_0x3a695f-0x189;const _0x232fae=a94_0x232f();let _0x4a1521=_0x232fae[_0x3a695f];return _0x4a1521;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a94_0x232f(){const _0x256922=['364420MZQTCu','linkedPaths','cache','trim','get','tags','accessKey','dir','isDirectory','isSymbolicLink','name','values','startsWith','claudeSkillsDir','code','filter','local','env','push','set','map','11HtumSl','appCode','262vQrOLt','334923rDWGXg','cacheDir','30npcNhL','scopes','skillCode','3472290ypbQuA','758AgRmpj','298545hATJzZ','scope','metadataPath','7098610Ykrexz','link','agentsSkillsDir','builtin','144HbUmVf','source','has','sort','localeCompare','linkedPath','isArray','130900cNRvex'];a94_0x232f=function(){return _0x256922;};return a94_0x232f();}import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x1efa65,_0x1f0dfd={}){const _0x3c9c7d=a94_0x4a15,_0x2d0297=safePathSegment(_0x1efa65[_0x3c9c7d(0x18b)],_0x3c9c7d(0x18b)),_0x338b45=normalizeRuntimeSkillScopes(_0x1efa65[_0x3c9c7d(0x190)]),_0x5360c4=new Set(_0x338b45),_0x4211f9=_0x1efa65['code']?.[_0x3c9c7d(0x1a6)](),_0x26554f=new Map(),_0x3349cc=resolve(getRuntimeSkillCacheRoot(_0x1efa65[_0x3c9c7d(0x1b4)],_0x1efa65[_0x3c9c7d(0x1a9)],_0x1f0dfd),_0x2d0297);for(const _0x3bbc03 of _0x338b45){for(const _0x280102 of localSkillEntryDirs(resolve(_0x3349cc,_0x3bbc03))){collectLocalRuntimeSkill(_0x26554f,_0x280102,{'appCode':_0x2d0297,'scopes':_0x5360c4,'code':_0x4211f9,'source':'cache'});}}const _0x53e9fc=resolveSkillSyncPaths(_0x1f0dfd);for(const _0x3ceeb9 of[_0x53e9fc[_0x3c9c7d(0x199)],_0x53e9fc[_0x3c9c7d(0x1b0)]]){for(const _0x541e00 of localSkillLinkCandidates(_0x3ceeb9,_0x2d0297,_0x5360c4)){collectLocalRuntimeSkill(_0x26554f,_0x541e00,{'appCode':_0x2d0297,'scopes':_0x5360c4,'code':_0x4211f9,'source':_0x3c9c7d(0x198),'linkedPath':_0x541e00});}}return Array['from'](_0x26554f[_0x3c9c7d(0x1ae)]())[_0x3c9c7d(0x19e)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x551904){const _0x3bb1c8=a94_0x4a15;if(!existsSync(_0x551904))return[];return readdirSync(_0x551904,{'withFileTypes':!![]})[_0x3bb1c8(0x1b2)](_0x5e7891=>_0x5e7891[_0x3bb1c8(0x1ab)]()||_0x5e7891[_0x3bb1c8(0x1ac)]())['map'](_0x4d02d2=>resolve(_0x551904,_0x4d02d2[_0x3bb1c8(0x1ad)]));}function localSkillLinkCandidates(_0x14454b,_0xe18aca,_0x288220){const _0x1bcb1e=a94_0x4a15;if(!existsSync(_0x14454b))return[];const _0x4feca0=_0xe18aca+'--';return readdirSync(_0x14454b,{'withFileTypes':!![]})[_0x1bcb1e(0x1b2)](_0x1ca3eb=>_0x1ca3eb[_0x1bcb1e(0x1ab)]()||_0x1ca3eb[_0x1bcb1e(0x1ac)]())['filter'](_0x26dc27=>_0x26dc27[_0x1bcb1e(0x1ad)][_0x1bcb1e(0x1af)](_0x4feca0)||_0x288220[_0x1bcb1e(0x19d)](_0x1bcb1e(0x19a)))[_0x1bcb1e(0x189)](_0xeb5bf2=>resolve(_0x14454b,_0xeb5bf2[_0x1bcb1e(0x1ad)]));}function collectLocalRuntimeSkill(_0x85b395,_0xf92cff,_0x2dbc8e){const _0x32c580=a94_0x4a15,_0x33a9bd=resolve(_0xf92cff,METADATA_FILE),_0x384566=readMetadataIfPresent(_0x33a9bd);if(!_0x384566)return;if(_0x384566[_0x32c580(0x18b)]!==_0x2dbc8e[_0x32c580(0x18b)])return;if(!isRuntimeSkillScope(_0x384566['scope'])||!_0x2dbc8e[_0x32c580(0x190)]['has'](_0x384566[_0x32c580(0x195)]))return;const _0x55f7a4=_0x384566[_0x32c580(0x191)]?.[_0x32c580(0x1a6)]();if(!_0x55f7a4)return;if(_0x2dbc8e[_0x32c580(0x1b1)]&&_0x55f7a4!==_0x2dbc8e['code'])return;const _0x4bea78=_0x384566[_0x32c580(0x195)]+':'+_0x55f7a4,_0x1e5cce=_0x2dbc8e[_0x32c580(0x1a0)]?[_0x2dbc8e['linkedPath']]:[],_0x458df8=_0x85b395[_0x32c580(0x1a7)](_0x4bea78);if(_0x458df8){_0x2dbc8e[_0x32c580(0x19c)]===_0x32c580(0x1a5)&&(_0x458df8[_0x32c580(0x1aa)]=_0xf92cff,_0x458df8[_0x32c580(0x18e)]=_0xf92cff,_0x458df8['skillMdPath']=resolve(_0xf92cff,SKILL_FILE),_0x458df8[_0x32c580(0x196)]=_0x33a9bd);for(const _0x2b868a of _0x1e5cce){!_0x458df8['linkedPaths']['includes'](_0x2b868a)&&_0x458df8[_0x32c580(0x1a4)][_0x32c580(0x1b5)](_0x2b868a);}_0x458df8[_0x32c580(0x1a4)]['sort']();return;}_0x85b395[_0x32c580(0x1b6)](_0x4bea78,{..._0x384566,'tags':Array[_0x32c580(0x1a1)](_0x384566['tags'])?_0x384566[_0x32c580(0x1a8)]:[],'scope':_0x384566[_0x32c580(0x195)],'source':_0x32c580(0x1b3),'dir':_0xf92cff,'cacheDir':_0x2dbc8e[_0x32c580(0x19c)]===_0x32c580(0x1a5)?_0xf92cff:undefined,'skillMdPath':resolve(_0xf92cff,SKILL_FILE),'metadataPath':_0x33a9bd,'linkedPaths':_0x1e5cce});}function compareLocalRuntimeSkills(_0x2fddff,_0xed66dc){const _0x112974=a94_0x4a15,_0x5af0ba={'personal':0x0,'company':0x1,'builtin':0x2};return _0x5af0ba[_0x2fddff['scope']]-_0x5af0ba[_0xed66dc[_0x112974(0x195)]]||_0x2fddff[_0x112974(0x191)][_0x112974(0x19f)](_0xed66dc[_0x112974(0x191)])||_0x2fddff[_0x112974(0x1aa)][_0x112974(0x19f)](_0xed66dc[_0x112974(0x1aa)]);}
|