@lovrabet/lovrabet-cli 2.1.7-beta.2 → 2.1.7-beta.4
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 -0
- package/lib/commands/app-config/index.js +1 -0
- package/lib/commands/app-config/shared.js +1 -0
- 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 -0
- 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/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(_0x2d52b5,_0x1d4878){const _0x1d5550=a74_0x590d,_0x20f91b=_0x2d52b5();while(!![]){try{const _0x3eed50=-parseInt(_0x1d5550(0x12a))/0x1+-parseInt(_0x1d5550(0x120))/0x2*(-parseInt(_0x1d5550(0x123))/0x3)+-parseInt(_0x1d5550(0x128))/0x4*(-parseInt(_0x1d5550(0x126))/0x5)+parseInt(_0x1d5550(0x127))/0x6+-parseInt(_0x1d5550(0x124))/0x7+-parseInt(_0x1d5550(0x122))/0x8+-parseInt(_0x1d5550(0x125))/0x9*(-parseInt(_0x1d5550(0x121))/0xa);if(_0x3eed50===_0x1d4878)break;else _0x20f91b['push'](_0x20f91b['shift']());}catch(_0x2c33fa){_0x20f91b['push'](_0x20f91b['shift']());}}}(a74_0x1ea6,0x9d3ba));function a74_0x1ea6(){const _0x1875ad=['4EXSpaS','description','907782iDYoOj','495182Wejwng','4613530Jzmmrt','9351400lUiNmX','3RKyGVC','4208330kzuYwU','27NRLKYO','5880775EzNYuq','3084708jmKNAQ'];a74_0x1ea6=function(){return _0x1875ad;};return a74_0x1ea6();}function a74_0x590d(_0x3cb9cc,_0x4da2c7){_0x3cb9cc=_0x3cb9cc-0x120;const _0x1ea637=a74_0x1ea6();let _0x590d78=_0x1ea637[_0x3cb9cc];return _0x590d78;}export function dryRun(_0x1c6c47,_0x54c459){const _0x5b7296={'method':_0x1c6c47,'url':_0x54c459},_0x15c7f8={'body'(_0x403010){return _0x5b7296['body']=_0x403010,_0x15c7f8;},'description'(_0x252167){const _0x16cb13=a74_0x590d;return _0x5b7296[_0x16cb13(0x129)]=_0x252167,_0x15c7f8;},'build'(){return{..._0x5b7296};}};return _0x15c7f8;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x1a2c95=a75_0x20c9;(function(_0x506d0e,_0x4ce668){const _0x51abde=a75_0x20c9,_0x4d66cf=_0x506d0e();while(!![]){try{const _0x207fed=-parseInt(_0x51abde(0x143))/0x1*(-parseInt(_0x51abde(0x13e))/0x2)+parseInt(_0x51abde(0x146))/0x3+parseInt(_0x51abde(0x140))/0x4+parseInt(_0x51abde(0x145))/0x5+parseInt(_0x51abde(0x142))/0x6+-parseInt(_0x51abde(0x144))/0x7+-parseInt(_0x51abde(0x13f))/0x8;if(_0x207fed===_0x4ce668)break;else _0x4d66cf['push'](_0x4d66cf['shift']());}catch(_0x1b883b){_0x4d66cf['push'](_0x4d66cf['shift']());}}}(a75_0x361d,0x7863c));function a75_0x20c9(_0x4329b6,_0x3aea74){_0x4329b6=_0x4329b6-0x13d;const _0x361d5e=a75_0x361d();let _0x20c9c8=_0x361d5e[_0x4329b6];return _0x20c9c8;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a75_0x361d(){const _0x157d96=['764003jHUIWO','2347541fGpdka','4685210uqBqEy','1479288YvNOEg','parseFlags','2cgMoAe','23449480Zoucra','2567188TzYUHg','validateFlags','5542356hjlnRC'];a75_0x361d=function(){return _0x157d96;};return a75_0x361d();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a75_0x1a2c95(0x13d)];export const validateFlags=helpers[a75_0x1a2c95(0x141)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a76_0x58f5(_0x595358,_0xfbb8c){_0x595358=_0x595358-0x1c9;const _0x4553a0=a76_0x4553();let _0x58f5fd=_0x4553a0[_0x595358];return _0x58f5fd;}(function(_0x198c6d,_0x288810){const _0x48e761=a76_0x58f5,_0x30465a=_0x198c6d();while(!![]){try{const _0x389d61=-parseInt(_0x48e761(0x1c9))/0x1+parseInt(_0x48e761(0x1d6))/0x2+parseInt(_0x48e761(0x1d2))/0x3*(-parseInt(_0x48e761(0x1cc))/0x4)+-parseInt(_0x48e761(0x1ca))/0x5+parseInt(_0x48e761(0x1d0))/0x6+-parseInt(_0x48e761(0x1cb))/0x7+-parseInt(_0x48e761(0x1d3))/0x8*(-parseInt(_0x48e761(0x1d5))/0x9);if(_0x389d61===_0x288810)break;else _0x30465a['push'](_0x30465a['shift']());}catch(_0x493110){_0x30465a['push'](_0x30465a['shift']());}}}(a76_0x4553,0x22152));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a76_0x4553(){const _0x1cbcf6=['151832DhOjEm','service','generateFullHelp','generateCommandHelp','1574664PmeipZ','newConfigFileName','6PrPzaM','8896xROQwk','has','3501hwTRsl','92758lFSMQJ','159305tttHKO','873420FRWhBv','1343188xfJFMU'];a76_0x4553=function(){return _0x1cbcf6;};return a76_0x4553();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x5b686a=a76_0x58f5;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[_0x5b686a(0x1d1)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x3bf495){const _0x31f38f=a76_0x58f5;return createGenerators()[_0x31f38f(0x1cf)](_0x3bf495);}export function generateServiceHelp(_0x2bae0a){return createGenerators()['generateServiceHelp'](_0x2bae0a);}export function generateFullHelp(){const _0x216af2=a76_0x58f5;return createGenerators()[_0x216af2(0x1ce)]();}function getAnyServiceEntry(_0x23c52c){const _0x8a3a0f=getServiceEntry(_0x23c52c);if(_0x8a3a0f)return _0x8a3a0f;try{return getDynamicServiceEntry(_0x23c52c);}catch{return undefined;}}function getAnyServiceDefinitions(_0xac138e){const _0x46640e=serviceGroups['get'](_0xac138e);if(_0x46640e)return _0x46640e;try{return getDynamicServiceDefinitions(_0xac138e);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3b23dd=a76_0x58f5,_0x5b2a4f=new Set(serviceRegistry['map'](_0x3ccd33=>_0x3ccd33[_0x3b23dd(0x1cd)]));try{return listDynamicServiceEntries()['filter'](_0x2d73e5=>!_0x5b2a4f[_0x3b23dd(0x1d4)](_0x2d73e5[_0x3b23dd(0x1cd)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e397c,_0x5609c8){var _0x37d70c=a77_0xdf2f,_0x4678a2=_0x3e397c();while(!![]){try{var _0x4373d8=parseInt(_0x37d70c(0x7b))/0x1*(parseInt(_0x37d70c(0x77))/0x2)+parseInt(_0x37d70c(0x7e))/0x3+-parseInt(_0x37d70c(0x78))/0x4*(parseInt(_0x37d70c(0x7d))/0x5)+parseInt(_0x37d70c(0x7c))/0x6+parseInt(_0x37d70c(0x79))/0x7*(-parseInt(_0x37d70c(0x7f))/0x8)+-parseInt(_0x37d70c(0x80))/0x9+parseInt(_0x37d70c(0x7a))/0xa;if(_0x4373d8===_0x5609c8)break;else _0x4678a2['push'](_0x4678a2['shift']());}catch(_0x4d1d57){_0x4678a2['push'](_0x4678a2['shift']());}}}(a77_0x4f82,0x8c11f));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a77_0xdf2f(_0x32efd0,_0x11be49){_0x32efd0=_0x32efd0-0x77;var _0x4f8292=a77_0x4f82();var _0xdf2fe2=_0x4f8292[_0x32efd0];return _0xdf2fe2;}function a77_0x4f82(){var _0x1b85fd=['54010dyPwCD','2902458YGihyD','5903728UFgfrH','5110173crKulu','1594FYWXQq','100PEOWWk','7MTgFFR','8074010IfNRNz','242JErEYN','1090674XNhlRu'];a77_0x4f82=function(){return _0x1b85fd;};return a77_0x4f82();}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 a78_0x28a0(){const _0x45ec6e=['12008736lxqjcV','message','1588504pPMtAC','update','error','1280QgyTLU','6564KpuLGn','172029zkguQf','369350VfpYEw','format','275207NIBGHr','712242jjcNaC','7NRTFIS','pretty'];a78_0x28a0=function(){return _0x45ec6e;};return a78_0x28a0();}(function(_0x2bf6ac,_0x218043){const _0x2f3dac=a78_0x17d9,_0x3bb00c=_0x2bf6ac();while(!![]){try{const _0x173bf4=-parseInt(_0x2f3dac(0x1c3))/0x1+-parseInt(_0x2f3dac(0x1c1))/0x2+-parseInt(_0x2f3dac(0x1c0))/0x3+parseInt(_0x2f3dac(0x1bf))/0x4*(-parseInt(_0x2f3dac(0x1be))/0x5)+parseInt(_0x2f3dac(0x1c4))/0x6+parseInt(_0x2f3dac(0x1c5))/0x7*(-parseInt(_0x2f3dac(0x1bb))/0x8)+parseInt(_0x2f3dac(0x1c7))/0x9;if(_0x173bf4===_0x218043)break;else _0x3bb00c['push'](_0x3bb00c['shift']());}catch(_0xb63669){_0x3bb00c['push'](_0x3bb00c['shift']());}}}(a78_0x28a0,0x4d6c7));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a78_0x17d9(_0x55e1df,_0x426912){_0x55e1df=_0x55e1df-0x1ba;const _0x28a001=a78_0x28a0();let _0x17d90a=_0x28a001[_0x55e1df];return _0x17d90a;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xe87659,_0x49188a){const _0x530a84=a78_0x17d9,_0x144666=_0xe87659['_notice'],{_notice:_0xc671d9,..._0x2a13fd}=_0xe87659;void _0xc671d9,baseFormatOutput(_0x2a13fd,_0x49188a),_0x49188a[_0x530a84(0x1c2)]===_0x530a84(0x1c6)&&printPrettyNotice(_0x144666);}function printPrettyNotice(_0xf65400){const _0x4a24df=a78_0x17d9;if(!_0xf65400?.[_0x4a24df(0x1bc)])return;console[_0x4a24df(0x1bd)](_0xf65400[_0x4a24df(0x1bc)][_0x4a24df(0x1ba)]+'\x20('+_0xf65400[_0x4a24df(0x1bc)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fa7ae,_0x14b623){const _0x174233=a79_0x5c34,_0x944cd3=_0x2fa7ae();while(!![]){try{const _0x57ce52=parseInt(_0x174233(0x7f))/0x1+parseInt(_0x174233(0x95))/0x2*(parseInt(_0x174233(0x90))/0x3)+parseInt(_0x174233(0x92))/0x4+parseInt(_0x174233(0x97))/0x5+-parseInt(_0x174233(0x81))/0x6*(-parseInt(_0x174233(0x7e))/0x7)+parseInt(_0x174233(0x78))/0x8*(parseInt(_0x174233(0x8b))/0x9)+-parseInt(_0x174233(0x86))/0xa;if(_0x57ce52===_0x14b623)break;else _0x944cd3['push'](_0x944cd3['shift']());}catch(_0x2bffa3){_0x944cd3['push'](_0x944cd3['shift']());}}}(a79_0x572e,0x69660));function toKebab(_0x139cbe){const _0x52b90d=a79_0x5c34;return _0x139cbe[_0x52b90d(0x7a)](/_/g,'-')[_0x52b90d(0x7a)](/-([A-Z]+)/g,(_0x24d201,_0x4cf73f)=>'-'+_0x4cf73f[_0x52b90d(0x96)]())[_0x52b90d(0x7a)](/([a-z0-9])([A-Z])/g,(_0x3733fb,_0x579525,_0x45a998)=>_0x579525+'-'+_0x45a998)[_0x52b90d(0x96)]();}function buildKnownFlags(_0x81daf4){const _0x58e23c=a79_0x5c34,_0x8935d=new Set();for(const _0x50f8d2 of _0x81daf4){_0x8935d[_0x58e23c(0x8f)](_0x50f8d2[_0x58e23c(0x98)]),_0x8935d['add'](toCamelCase(_0x50f8d2[_0x58e23c(0x98)]));}for(const _0x538567 of[_0x58e23c(0x9c),'dryRun',_0x58e23c(0x9b),_0x58e23c(0x99)]){_0x8935d[_0x58e23c(0x8f)](_0x538567);}for(const _0x4170ef of[_0x58e23c(0x77),'env',_0x58e23c(0x8d),_0x58e23c(0x88),'nonInteractive',_0x58e23c(0x87),'ci',_0x58e23c(0x85),_0x58e23c(0x7b)]){_0x8935d[_0x58e23c(0x8f)](_0x4170ef);}return _0x8935d;}function buildFlagTypeMap(_0x2647b4){const _0x2e38d0=a79_0x5c34,_0x3def17=new Map();for(const _0x40c083 of _0x2647b4){_0x3def17['set'](_0x40c083['name'],_0x40c083[_0x2e38d0(0x80)]),_0x3def17['set'](toCamelCase(_0x40c083[_0x2e38d0(0x98)]),_0x40c083[_0x2e38d0(0x80)]);}return _0x3def17;}function toCamelCase(_0x49c036){const _0x4d6281=a79_0x5c34;return _0x49c036[_0x4d6281(0x7a)](/-([a-z])/g,(_0x5ed7b8,_0x88ffa)=>_0x88ffa[_0x4d6281(0x76)]());}function aliasHandler(_0x1041ea,_0x9801f2){const _0x4df842=a79_0x5c34,_0x1cd5a7=[];for(const _0x196a83 of Object[_0x4df842(0x7d)](_0x1041ea)){if(_0x9801f2[_0x4df842(0x79)](_0x196a83))continue;const _0xca5e57=toKebab(_0x196a83);_0xca5e57!==_0x196a83&&_0x9801f2['has'](_0xca5e57)&&_0x1cd5a7[_0x4df842(0x89)]({'original':_0x196a83,'corrected':_0xca5e57,'handler':_0x4df842(0x7c)});}return _0x1cd5a7;}function stickyHandler(_0x232767,_0x47c07f,_0x3be8d9){const _0x4dca3a=a79_0x5c34,_0x18c672=[];for(const [_0x57a947,_0x219faa]of Object[_0x4dca3a(0x8c)](_0x232767)){if(_0x219faa!==!![])continue;for(let _0x2b8dbd=_0x57a947[_0x4dca3a(0x91)]-0x1;_0x2b8dbd>0x0;_0x2b8dbd--){const _0x6a1e7b=_0x57a947[_0x4dca3a(0x8e)](0x0,_0x2b8dbd),_0x1c0e48=_0x57a947[_0x4dca3a(0x8e)](_0x2b8dbd),_0x4bfea=toKebab(_0x6a1e7b),_0x449601=toCamelCase(_0x6a1e7b),_0x1a25ac=_0x47c07f['has'](_0x6a1e7b)?_0x6a1e7b:_0x47c07f[_0x4dca3a(0x79)](_0x4bfea)?_0x4bfea:_0x47c07f[_0x4dca3a(0x79)](_0x449601)?_0x449601:null;if(!_0x1a25ac)continue;const _0x59d9c9=_0x3be8d9[_0x4dca3a(0x84)](_0x1a25ac)??_0x4dca3a(0x94);let _0x2fd597;if(_0x59d9c9===_0x4dca3a(0x82)){const _0xc14e2c=Number(_0x1c0e48);if(isNaN(_0xc14e2c)||_0x1c0e48==='')continue;_0x2fd597=_0xc14e2c;}else{if(_0x59d9c9===_0x4dca3a(0x83))continue;else{if(_0x1c0e48==='')continue;_0x2fd597=_0x1c0e48;}}_0x18c672[_0x4dca3a(0x89)]({'original':_0x57a947,'corrected':_0x1a25ac+'='+_0x2fd597,'handler':_0x4dca3a(0x8a)});break;}}return _0x18c672;}function a79_0x5c34(_0x4ab2f6,_0x6d9f0d){_0x4ab2f6=_0x4ab2f6-0x76;const _0x572e3b=a79_0x572e();let _0x5c34fb=_0x572e3b[_0x4ab2f6];return _0x5c34fb;}function a79_0x572e(){const _0x188519=['366625yzoLMd','480077duFZJS','type','84JuzxkI','number','boolean','get','global','27437470hxTwUl','non-interactive','app','push','sticky','3119634reXdaM','entries','appcode','slice','add','2397453eLeHXu','length','837816nWJkHx','original','string','2CTjPKr','toLowerCase','1301375KDfKEh','name','format','corrected','yes','dry-run','toUpperCase','help','16GOFvsu','has','replace','version','alias','keys'];a79_0x572e=function(){return _0x188519;};return a79_0x572e();}export function correctFlags(_0x318210,_0x4ba9df){const _0x254277=a79_0x5c34,_0x45f728=buildKnownFlags(_0x4ba9df),_0x36015a=buildFlagTypeMap(_0x4ba9df),_0x51f9d1=aliasHandler(_0x318210,_0x45f728),_0x4410ab=stickyHandler(_0x318210,_0x45f728,_0x36015a),_0x4f266c=[..._0x51f9d1,..._0x4410ab];if(_0x4f266c['length']===0x0)return{'flags':_0x318210,'corrections':[]};const _0xe3f928={..._0x318210},_0x5dd8c1=new Set();for(const _0x4f3dbd of _0x51f9d1){_0xe3f928[_0x4f3dbd[_0x254277(0x9a)]]=_0x318210[_0x4f3dbd[_0x254277(0x93)]],_0x5dd8c1[_0x254277(0x8f)](_0x4f3dbd[_0x254277(0x93)]);}for(const _0x4fc1c4 of _0x4410ab){const _0x4b2550=_0x4fc1c4[_0x254277(0x9a)]['indexOf']('='),_0x277383=_0x4fc1c4['corrected'][_0x254277(0x8e)](0x0,_0x4b2550),_0x278c6d=_0x4fc1c4[_0x254277(0x9a)][_0x254277(0x8e)](_0x4b2550+0x1),_0x7391d8=_0x36015a[_0x254277(0x84)](_0x277383)??_0x254277(0x94);_0x7391d8===_0x254277(0x82)?_0xe3f928[_0x277383]=Number(_0x278c6d):_0xe3f928[_0x277383]=_0x278c6d,_0x5dd8c1[_0x254277(0x8f)](_0x4fc1c4['original']);}for(const _0x397e58 of _0x5dd8c1){delete _0xe3f928[_0x397e58];}return{'flags':_0xe3f928,'corrections':_0x4f266c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2e5b9a,_0x206a43){var _0x1cc628=a80_0x49c8,_0x4f59b2=_0x2e5b9a();while(!![]){try{var _0x3300de=parseInt(_0x1cc628(0xf4))/0x1+parseInt(_0x1cc628(0xf6))/0x2*(parseInt(_0x1cc628(0xfc))/0x3)+parseInt(_0x1cc628(0xf9))/0x4+parseInt(_0x1cc628(0xf7))/0x5*(parseInt(_0x1cc628(0xf3))/0x6)+parseInt(_0x1cc628(0xf8))/0x7*(parseInt(_0x1cc628(0xfa))/0x8)+parseInt(_0x1cc628(0xfb))/0x9+-parseInt(_0x1cc628(0xf5))/0xa;if(_0x3300de===_0x206a43)break;else _0x4f59b2['push'](_0x4f59b2['shift']());}catch(_0x2f39dc){_0x4f59b2['push'](_0x4f59b2['shift']());}}}(a80_0x5c2e,0x4a0be));function a80_0x49c8(_0x37e39d,_0x45559d){_0x37e39d=_0x37e39d-0xf3;var _0x5c2e2d=a80_0x5c2e();var _0x49c8b8=_0x5c2e2d[_0x37e39d];return _0x49c8b8;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a80_0x5c2e(){var _0x4fa991=['91xtSZaV','1611872XKgMGI','136688esMTDi','3526110ApnEjq','597RtSpVq','1204278cvtWFF','147089tLwAKy','18188210Dfcejv','3578ViUtlK','15lglHiv'];a80_0x5c2e=function(){return _0x4fa991;};return a80_0x5c2e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36b209,_0x3ada6e){const _0xf8251f=a81_0xc515,_0x236787=_0x36b209();while(!![]){try{const _0x5d128a=-parseInt(_0xf8251f(0xa6))/0x1*(-parseInt(_0xf8251f(0xae))/0x2)+parseInt(_0xf8251f(0xa4))/0x3+-parseInt(_0xf8251f(0xbb))/0x4*(parseInt(_0xf8251f(0xa9))/0x5)+-parseInt(_0xf8251f(0xb7))/0x6*(parseInt(_0xf8251f(0xb3))/0x7)+parseInt(_0xf8251f(0xb2))/0x8*(-parseInt(_0xf8251f(0xbd))/0x9)+parseInt(_0xf8251f(0xb1))/0xa*(parseInt(_0xf8251f(0xb0))/0xb)+parseInt(_0xf8251f(0xb9))/0xc*(-parseInt(_0xf8251f(0xc2))/0xd);if(_0x5d128a===_0x3ada6e)break;else _0x236787['push'](_0x236787['shift']());}catch(_0x246be2){_0x236787['push'](_0x236787['shift']());}}}(a81_0x37a3,0x1b56b));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x3bc87a,_0x1e077b,_0x3f43e4){const _0x426d95=a81_0xc515,_0x3acde8=buildConfirmationContext(_0x3bc87a,_0x1e077b,_0x3f43e4),_0x327e45=[_0x426d95(0xb4)+_0x3acde8[_0x426d95(0xba)]];return _0x3acde8[_0x426d95(0xaa)]&&_0x327e45['push'](_0x426d95(0xc1)+_0x3acde8['description']),_0x3acde8[_0x426d95(0xa7)]&&_0x327e45[_0x426d95(0xbe)](_0x426d95(0xa8)+_0x3acde8[_0x426d95(0xa7)]),_0x327e45[_0x426d95(0xbe)](_0x426d95(0xb6)),_0x327e45;}function a81_0xc515(_0x332f09,_0x5b37d6){_0x332f09=_0x332f09-0xa2;const _0x37a32c=a81_0x37a3();let _0xc515a=_0x37a32c[_0x332f09];return _0xc515a;}function a81_0x37a3(){const _0x4fe618=['24sRclLq','commandLabel','212rIHsTe','entries','27mGkexe','push','name','code=','\x20\x20\x20','1823263uALEDO','stringify','id=','613848akesjE','service','1UASjwy','affectedRecords','\x20\x20\x20Affected:\x20','1625HfnIfd','description','params','length','join','237830cNDAKH','--yes','118866uZnCEa','160BWAhhv','85240zObbry','1134uTiinV','⚠\x20\x20High-risk\x20operation:\x20','command','\x20\x20\x20Continue?\x20[y/N]\x20','2028bBQdSB','code'];a81_0x37a3=function(){return _0x4fe618;};return a81_0x37a3();}export function reconstructCommandArgv(_0x36cf4c,_0x30aaee){const _0x3ca431=a81_0xc515,_0x56a2bb=[CLI_BIN_NAME,_0x36cf4c[_0x3ca431(0xa5)],_0x36cf4c[_0x3ca431(0xb5)]];for(const [_0xd0035f,_0x2995e3]of Object[_0x3ca431(0xbc)](_0x30aaee)){if(_0x2995e3===!![])_0x56a2bb[_0x3ca431(0xbe)]('--'+_0xd0035f);else _0x2995e3!==![]&&_0x2995e3!==undefined&&_0x2995e3!==''&&_0x56a2bb[_0x3ca431(0xbe)]('--'+_0xd0035f+'\x20'+JSON[_0x3ca431(0xa2)](_0x2995e3));}return _0x56a2bb['push'](_0x3ca431(0xaf)),_0x56a2bb[_0x3ca431(0xad)]('\x20');}function buildConfirmationContext(_0x310661,_0x55c50c,_0x10ce34){const _0x2dcff3=extractAffectedRecords(_0x10ce34);return{'commandLabel':_0x55c50c,'description':_0x310661['description'],'affectedRecords':_0x2dcff3};}function extractAffectedRecords(_0x9b724d){const _0xb3552=a81_0xc515,_0x599a40=[];if(_0x9b724d[_0xb3552(0xb8)])_0x599a40[_0xb3552(0xbe)](_0xb3552(0xc0)+_0x9b724d[_0xb3552(0xb8)]);if(_0x9b724d['id'])_0x599a40[_0xb3552(0xbe)](_0xb3552(0xa3)+_0x9b724d['id']);if(_0x9b724d[_0xb3552(0xbf)])_0x599a40['push']('name='+_0x9b724d[_0xb3552(0xbf)]);if(_0x9b724d['params'])_0x599a40[_0xb3552(0xbe)]('params='+_0x9b724d[_0xb3552(0xab)]);return _0x599a40[_0xb3552(0xac)]>0x0?_0x599a40['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a82_0x3e46(_0x5adc63,_0x1f26ea){_0x5adc63=_0x5adc63-0x7d;const _0x4f833d=a82_0x4f83();let _0x3e46ef=_0x4f833d[_0x5adc63];return _0x3e46ef;}(function(_0xea9b46,_0x4ab233){const _0x522dcc=a82_0x3e46,_0x302ea9=_0xea9b46();while(!![]){try{const _0x4f9f96=parseInt(_0x522dcc(0x8c))/0x1*(parseInt(_0x522dcc(0x8b))/0x2)+parseInt(_0x522dcc(0x82))/0x3+-parseInt(_0x522dcc(0x89))/0x4*(parseInt(_0x522dcc(0x85))/0x5)+-parseInt(_0x522dcc(0x8a))/0x6*(parseInt(_0x522dcc(0x84))/0x7)+parseInt(_0x522dcc(0x7f))/0x8*(parseInt(_0x522dcc(0x83))/0x9)+-parseInt(_0x522dcc(0x7e))/0xa+parseInt(_0x522dcc(0x88))/0xb;if(_0x4f9f96===_0x4ab233)break;else _0x302ea9['push'](_0x302ea9['shift']());}catch(_0x2da417){_0x302ea9['push'](_0x302ea9['shift']());}}}(a82_0x4f83,0xf20e7));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x5ef3b7){const _0x1cd901=a82_0x3e46;if(_0x5ef3b7 instanceof LovrabetError)return CliErrors[_0x1cd901(0x86)](userFacingLovrabetMessage(_0x5ef3b7));return _0x5ef3b7;}function a82_0x4f83(){const _0x9ef5bb=['7117SNcDsJ','string','5033040IjdLoq','8RjnFPS','description','trim','1763910zqTEoJ','14354181SSQcEJ','13756841qbUWqU','3356345EKYvBC','validation','message','15247947unnsNX','4TUUimS','6LHYHcS','158YGFhNP'];a82_0x4f83=function(){return _0x9ef5bb;};return a82_0x4f83();}function userFacingLovrabetMessage(_0x2e0820){const _0x548d5d=a82_0x3e46,_0x4ec638=_0x2e0820[_0x548d5d(0x80)];if(_0x4ec638!==undefined&&_0x4ec638!==null){if(typeof _0x4ec638===_0x548d5d(0x7d)&&_0x4ec638[_0x548d5d(0x81)]())return _0x4ec638['trim']();try{return JSON['stringify'](_0x4ec638);}catch{}}return _0x2e0820[_0x548d5d(0x87)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a79_0x23cab7=a79_0x4163;(function(_0x18e6e2,_0x4da4d1){const _0x605447=a79_0x4163,_0x347582=_0x18e6e2();while(!![]){try{const _0x1b604a=parseInt(_0x605447(0x81))/0x1*(-parseInt(_0x605447(0xa3))/0x2)+parseInt(_0x605447(0x91))/0x3+-parseInt(_0x605447(0x8d))/0x4*(-parseInt(_0x605447(0xac))/0x5)+-parseInt(_0x605447(0x9a))/0x6+parseInt(_0x605447(0xb1))/0x7*(parseInt(_0x605447(0x99))/0x8)+-parseInt(_0x605447(0xa8))/0x9+parseInt(_0x605447(0xa9))/0xa;if(_0x1b604a===_0x4da4d1)break;else _0x347582['push'](_0x347582['shift']());}catch(_0x429857){_0x347582['push'](_0x347582['shift']());}}}(a79_0x85ff,0xa6a8b));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(_0x15b25e){const _0x704d6=a79_0x4163;return void _0x15b25e,AUTH_MODE[_0x704d6(0x79)];}export function createPipelineEnv(_0x25ef88,_0xd5e4a6){const _0x8700e1=a79_0x4163,_0x57e877=typeof _0xd5e4a6['app']===_0x8700e1(0x86)&&_0xd5e4a6['app'][_0x8700e1(0x7e)]();return{'rawFlags':_0xd5e4a6,'appCode':_0x25ef88[_0x8700e1(0xa4)]||productEnv(_0x8700e1(0x95))||(_0x57e877?undefined:readAppCodeFromConfig()),'appCodeSource':_0x25ef88[_0x8700e1(0x9b)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xd5e4a6),'defaultFormat':_0x25ef88[_0x8700e1(0xab)],'defaultPageSize':_0x25ef88[_0x8700e1(0x82)],'defaultVerbose':_0x25ef88[_0x8700e1(0x7f)],'riskLevel':_0x25ef88['riskLevel'],'accessKey':_0x25ef88['accessKey'],'env':_0x25ef88[_0x8700e1(0xad)],'mergedCli':{'defaultApp':_0x25ef88[_0x8700e1(0x77)],'currentApp':_0x25ef88[_0x8700e1(0x8c)],'appCode':_0x25ef88[_0x8700e1(0xa4)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x23cab7(0xa0)](_0x4eaed8=>PIPELINE_FLAG_NAMES[a79_0x23cab7(0xa2)](_0x4eaed8[a79_0x23cab7(0x83)]))[a79_0x23cab7(0x98)](({name:_0x1a179a,type:_0x22572d,description:_0x5992a4})=>({'name':_0x1a179a,'type':_0x22572d,'description':_0x5992a4})),'formatOutput':formatOutput,'getCommandLabel'(_0x20e2bd){const _0x1c336d=a79_0x23cab7;return CLI_BIN_NAME+'\x20'+_0x20e2bd[_0x1c336d(0x84)]+'\x20'+_0x20e2bd[_0x1c336d(0xb3)];},'riskPolicy':{'onViolation'(_0x1a0ba7){const _0x39f858=a79_0x23cab7;console[_0x39f858(0x7a)](_0x1a0ba7);},'createError'(_0x1ba394){const _0x360229=a79_0x23cab7;return CliErrors[_0x360229(0x8a)](_0x1ba394);}},async 'prepare'(_0x1431de,_0x5ad0cf){const _0x5bd893=a79_0x23cab7,_0x2aae7f=resolveAuthMode(_0x5ad0cf);if(_0x1431de['requiresAuth']!==![]){if(!_0x5ad0cf[_0x5bd893(0xb2)])throw CliErrors[_0x5bd893(0x87)](_0x5bd893(0x85)+PRODUCT_CONFIG[_0x5bd893(0xa6)]+_0x5bd893(0x78)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x128fc3}=await import(_0x5bd893(0x9f));_0x128fc3(_0x5ad0cf['accessKey']);}let _0x2d5aad='';if(_0x1431de[_0x5bd893(0x8f)]!==![]){_0x2d5aad=_0x5ad0cf[_0x5bd893(0xa4)]??'',_0x2d5aad=await resolveExplicitAppName(_0x1431de,_0x5ad0cf,_0x2d5aad);if(!_0x2d5aad){await assertSelectedAppNameIsRuntimeAccessible(_0x1431de,_0x5ad0cf);throw CliErrors[_0x5bd893(0x7c)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1431de,_0x5ad0cf,_0x2d5aad);}if(_0x2d5aad){const {initSdkClient:_0x4fb5ba}=await import(_0x5bd893(0x8e));_0x4fb5ba({'appCode':_0x2d5aad,'env':_0x5ad0cf[_0x5bd893(0xad)]??_0x5bd893(0x80),'accessKey':_0x5ad0cf['accessKey'],'authMode':_0x2aae7f});}return{'defaults':{'booleans':{'verbose':_0x5ad0cf[_0x5bd893(0x75)]},'numbers':{'pagesize':_0x5ad0cf[_0x5bd893(0xaa)]}},'extras':{'appCode':_0x2d5aad,'cookie':'','apiDomain':_0x5ad0cf[_0x5bd893(0xb7)],'apiDir':'','accessKey':_0x5ad0cf[_0x5bd893(0xb2)],'envName':_0x5ad0cf[_0x5bd893(0xad)],'mergedCli':_0x5ad0cf[_0x5bd893(0x97)]}};},async 'confirmHighRisk'({def:_0x3693f7,env:_0x532248,flags:_0x46d177,commandLabel:_0x183c5f}){const _0x1088c6=a79_0x23cab7;if(_0x532248[_0x1088c6(0x74)]){const _0x475b09=reconstructCommandArgv(_0x3693f7,_0x46d177);throw CliErrors[_0x1088c6(0xa7)](_0x1088c6(0xb4)+_0x183c5f+_0x1088c6(0xa1)+(_0x1088c6(0x7b)+_0x475b09));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3693f7,_0x183c5f,_0x46d177),'createCancelledError':_0x5e7a5e=>CliErrors['cancelled'](_0x5e7a5e)});},'mapDryRunError'(_0x283de9){return mapUserFacingExecuteError(_0x283de9);},'mapExecuteError'(_0x4d89d7){return mapUserFacingExecuteError(_0x4d89d7);},async 'finalize'(){const _0x53560d=a79_0x23cab7,{clearActiveAK:_0x3cd6ea}=await import(_0x53560d(0x9f));_0x3cd6ea();}};function a79_0x85ff(){const _0x12e620=['command','High-risk\x20operation\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','items','apiDomain','isNonInteractive','defaultVerbose','.appcode\x20to\x20','defaultApp','\x20or\x20pass\x20','ClientAk','error','\x20\x20To\x20proceed:\x20','configMissing','_notice','trim','verbose','production','11IyLlHr','pageSize','name','service','Set\x20accessKey\x20in\x20','string','authRequired','app','catch','cancelled','../commands/app/remote-source.js','currentApp','1124DjztwU','../core/sdk-client.js','requiresAppCode','includes','923736vdIpKy','object','schema','local-alias','APPCODE','appcode\x20\x22','mergedCli','map','160MHQALZ','1126686TYKQbx','appCodeSource','appcode','rawFlags','execute','../core/api-client.js','filter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','has','188476SGsUix','appCode','update','newConfigFileName','validation','9832527RxaXdz','5789120CemHWf','defaultPageSize','format','14065gNoxUY','env','Unknown\x20app:\x20','Run\x20`','nonInteractive','462791MrKeeH','accessKey'];a79_0x85ff=function(){return _0x12e620;};return a79_0x85ff();}async function resolveExplicitAppName(_0x48266d,_0x267587,_0x2d3099){const _0x43193a=a79_0x23cab7;if(_0x48266d['requiresAppCode']===![])return _0x2d3099;const _0x523802=typeof _0x267587['rawFlags'][_0x43193a(0x88)]==='string'?_0x267587[_0x43193a(0x9d)][_0x43193a(0x88)][_0x43193a(0x7e)]():'';if(!_0x523802)return _0x2d3099;const _0x99258c=typeof _0x267587[_0x43193a(0x9d)]['appcode']===_0x43193a(0x86)&&_0x267587['rawFlags'][_0x43193a(0x9c)][_0x43193a(0x7e)]()||productEnv(_0x43193a(0x95));if(_0x99258c||_0x267587['appCodeSource']===_0x43193a(0x94))return _0x2d3099;const {getRemoteAppList:_0x467bab}=await import('../commands/app/remote-source.js'),_0x3f9284=await _0x467bab({'env':_0x267587[_0x43193a(0xad)]??_0x43193a(0x80),'accessKey':_0x267587[_0x43193a(0xb2)]}),_0x447b9a=findAppByName(_0x3f9284[_0x43193a(0xb6)],_0x523802);if(_0x447b9a&&!isRuntimeAccessibleApp(_0x447b9a))throw runtimeInaccessibleAppError(_0x447b9a,'\x22'+_0x523802+'\x22');const _0x437488=_0x447b9a?.[_0x43193a(0xa4)]?.[_0x43193a(0x7e)]();if(_0x437488)return _0x437488;throw CliErrors[_0x43193a(0xa7)](_0x43193a(0xae)+_0x523802,_0x43193a(0xaf)+CLI_BIN_NAME+_0x43193a(0xb5)+_0x523802+_0x43193a(0x76)+PRODUCT_CONFIG[_0x43193a(0xa6)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1b5cbf,_0x43ea04){const _0x49addc=a79_0x23cab7;if(_0x1b5cbf[_0x49addc(0x8f)]===![]||!_0x43ea04[_0x49addc(0xb2)])return;const _0x7ca759=(typeof _0x43ea04[_0x49addc(0x9d)][_0x49addc(0x88)]===_0x49addc(0x86)&&_0x43ea04['rawFlags'][_0x49addc(0x88)]['trim']()?_0x43ea04['rawFlags'][_0x49addc(0x88)]:_0x43ea04[_0x49addc(0x97)]?.[_0x49addc(0x8c)]??_0x43ea04[_0x49addc(0x97)]?.['defaultApp'])?.[_0x49addc(0x7e)]();if(!_0x7ca759)return;const {getRemoteAppList:_0x486be0}=await import(_0x49addc(0x8b)),_0x45ecc8=await _0x486be0({'env':_0x43ea04[_0x49addc(0xad)]??_0x49addc(0x80),'accessKey':_0x43ea04[_0x49addc(0xb2)]}),_0x446306=findAppByName(_0x45ecc8[_0x49addc(0xb6)],_0x7ca759);if(_0x446306&&!isRuntimeAccessibleApp(_0x446306))throw runtimeInaccessibleAppError(_0x446306,'\x22'+_0x7ca759+'\x22');}function a79_0x4163(_0x2a7944,_0x3f640f){_0x2a7944=_0x2a7944-0x74;const _0x85ffc1=a79_0x85ff();let _0x416342=_0x85ffc1[_0x2a7944];return _0x416342;}async function assertAppCodeIsRuntimeAccessible(_0x34415b,_0x4aa884,_0x4f3ce6){const _0x314d9c=a79_0x23cab7;if(_0x34415b[_0x314d9c(0x8f)]===![]||!_0x4aa884[_0x314d9c(0xb2)])return;const {getRemoteAppList:_0x2c02e8}=await import(_0x314d9c(0x8b)),_0x3550c9=await _0x2c02e8({'env':_0x4aa884['env']??_0x314d9c(0x80),'accessKey':_0x4aa884[_0x314d9c(0xb2)]}),_0x51f26d=findAppByCode(_0x3550c9['items'],_0x4f3ce6);if(_0x51f26d&&!isRuntimeAccessibleApp(_0x51f26d))throw runtimeInaccessibleAppError(_0x51f26d,_0x314d9c(0x96)+_0x4f3ce6+'\x22');}export async function runCommand(_0x3edb2b,_0x383472){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3edb2b)?withUpdateNotice(_0x3edb2b):_0x3edb2b,_0x383472,runnerAdapter);}function shouldAttachUpdateNotice(_0x4ee333){const _0x314fb3=a79_0x23cab7;return![_0x314fb3(0xa5),_0x314fb3(0x93),'doctor'][_0x314fb3(0x90)](_0x4ee333[_0x314fb3(0x84)]);}function withUpdateNotice(_0x4eb1bf){return{..._0x4eb1bf,async 'execute'(_0x12bc71){const _0x4fe47e=a79_0x4163,_0x281735=shouldResolveUpdateNotice(_0x12bc71)?resolveLatestUpdateNotice()[_0x4fe47e(0x89)](()=>null):Promise['resolve'](null),_0xda8972=await _0x4eb1bf[_0x4fe47e(0x9e)](_0x12bc71);return attachUpdateNotice(_0xda8972,await _0x281735);}};}function shouldResolveUpdateNotice(_0x5b6fa2){const _0x4bcf58=a79_0x23cab7;return _0x5b6fa2[_0x4bcf58(0xab)]==='pretty'&&!_0x5b6fa2[_0x4bcf58(0xb0)];}function attachUpdateNotice(_0x2468ed,_0x19932a){const _0x23a494=a79_0x23cab7;if(!_0x19932a||!_0x2468ed||typeof _0x2468ed!==_0x23a494(0x92))return _0x2468ed;const _0x37929a=_0x2468ed,_0xb8b4c7=typeof _0x37929a['_notice']==='object'&&_0x37929a[_0x23a494(0x7d)]!==null?_0x37929a['_notice']:{};return{..._0x37929a,'_notice':{..._0xb8b4c7,'update':_0x19932a}};}
|
|
1
|
+
const a83_0x2b5207=a83_0x3db5;(function(_0x11a4fe,_0x221133){const _0x3e883f=a83_0x3db5,_0x367e7=_0x11a4fe();while(!![]){try{const _0x338cad=parseInt(_0x3e883f(0x179))/0x1*(-parseInt(_0x3e883f(0x1a4))/0x2)+parseInt(_0x3e883f(0x1a5))/0x3*(parseInt(_0x3e883f(0x178))/0x4)+parseInt(_0x3e883f(0x19e))/0x5+parseInt(_0x3e883f(0x19d))/0x6*(-parseInt(_0x3e883f(0x1a3))/0x7)+parseInt(_0x3e883f(0x1b1))/0x8*(-parseInt(_0x3e883f(0x18c))/0x9)+parseInt(_0x3e883f(0x1b3))/0xa+parseInt(_0x3e883f(0x197))/0xb;if(_0x338cad===_0x221133)break;else _0x367e7['push'](_0x367e7['shift']());}catch(_0x2fe97b){_0x367e7['push'](_0x367e7['shift']());}}}(a83_0x1125,0xcfe40));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a83_0x1125(){const _0x17e0cd=['has','nonInteractive','Run\x20`','configMissing','Unknown\x20app:\x20','service','defaultPageSize','filter','env','error','9TEHdcy','../core/api-client.js','schema','name','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','string','requiresAuth','newConfigFileName','format','object','10131957DEtPlZ','../core/sdk-client.js','_notice','execute','appCodeSource','ClientAk','73734QWDOJk','8066960AqJKpD','defaultVerbose','\x20\x20To\x20proceed:\x20','accessKey','requiresAppCode','7pDNLRN','56516jjKZBi','59370IaaiBi','pageSize','pretty','\x20or\x20pass\x20','currentApp','map','verbose','rawFlags','validation','Set\x20accessKey\x20in\x20','app','items','5372792rEVFtp','includes','2893810rtBvub','APPCODE','doctor','isNonInteractive','apiDomain','command','48CxSJUt','54dEwWaB','mergedCli','trim','defaultApp','High-risk\x20operation\x20`','local-alias','production','../commands/app/remote-source.js','resolve'];a83_0x1125=function(){return _0x17e0cd;};return a83_0x1125();}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';function a83_0x3db5(_0x1ff2c2,_0x2571f7){_0x1ff2c2=_0x1ff2c2-0x176;const _0x1125c1=a83_0x1125();let _0x3db5ff=_0x1125c1[_0x1ff2c2];return _0x3db5ff;}import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x1ae4ca){const _0x5aafb5=a83_0x3db5;return void _0x1ae4ca,AUTH_MODE[_0x5aafb5(0x19c)];}export function createPipelineEnv(_0x79498,_0x1761c4){const _0x5083f9=a83_0x3db5,_0x5d63e2=typeof _0x1761c4[_0x5083f9(0x1af)]===_0x5083f9(0x192)&&_0x1761c4[_0x5083f9(0x1af)]['trim']();return{'rawFlags':_0x1761c4,'appCode':_0x79498['appCode']||productEnv(_0x5083f9(0x1b4))||(_0x5d63e2?undefined:readAppCodeFromConfig()),'appCodeSource':_0x79498[_0x5083f9(0x19b)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1761c4),'defaultFormat':_0x79498['format'],'defaultPageSize':_0x79498[_0x5083f9(0x1a6)],'defaultVerbose':_0x79498[_0x5083f9(0x1ab)],'riskLevel':_0x79498['riskLevel'],'accessKey':_0x79498[_0x5083f9(0x1a1)],'env':_0x79498[_0x5083f9(0x18a)],'mergedCli':{'defaultApp':_0x79498[_0x5083f9(0x17c)],'currentApp':_0x79498[_0x5083f9(0x1a9)],'appCode':_0x79498['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a83_0x2b5207(0x189)](_0x21e21c=>PIPELINE_FLAG_NAMES[a83_0x2b5207(0x182)](_0x21e21c[a83_0x2b5207(0x18f)]))[a83_0x2b5207(0x1aa)](({name:_0x524d77,type:_0x5175c1,description:_0x5a22d2})=>({'name':_0x524d77,'type':_0x5175c1,'description':_0x5a22d2})),'formatOutput':formatOutput,'getCommandLabel'(_0x3b0b82){const _0x56b9a7=a83_0x2b5207;return CLI_BIN_NAME+'\x20'+_0x3b0b82[_0x56b9a7(0x187)]+'\x20'+_0x3b0b82[_0x56b9a7(0x177)];},'riskPolicy':{'onViolation'(_0x5d4a2c){const _0xbf6e20=a83_0x2b5207;console[_0xbf6e20(0x18b)](_0x5d4a2c);},'createError'(_0x18f565){return CliErrors['cancelled'](_0x18f565);}},async 'prepare'(_0x30c3f9,_0x1c06bc){const _0x4d5dca=a83_0x2b5207,_0x4e24c8=resolveAuthMode(_0x1c06bc);if(_0x30c3f9[_0x4d5dca(0x193)]!==![]){if(!_0x1c06bc['accessKey'])throw CliErrors['authRequired'](_0x4d5dca(0x1ae)+PRODUCT_CONFIG['newConfigFileName']+_0x4d5dca(0x1a8)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x2a9c47}=await import(_0x4d5dca(0x18d));_0x2a9c47(_0x1c06bc['accessKey']);}let _0x5ba8b2='';if(_0x30c3f9[_0x4d5dca(0x1a2)]!==![]){_0x5ba8b2=_0x1c06bc['appCode']??'',_0x5ba8b2=await resolveExplicitAppName(_0x30c3f9,_0x1c06bc,_0x5ba8b2);if(!_0x5ba8b2){await assertSelectedAppNameIsRuntimeAccessible(_0x30c3f9,_0x1c06bc);throw CliErrors[_0x4d5dca(0x185)](_0x4d5dca(0x190)+PRODUCT_CONFIG[_0x4d5dca(0x194)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x30c3f9,_0x1c06bc,_0x5ba8b2);}if(_0x5ba8b2){const {initSdkClient:_0x40dd83}=await import(_0x4d5dca(0x198));_0x40dd83({'appCode':_0x5ba8b2,'env':_0x1c06bc[_0x4d5dca(0x18a)]??_0x4d5dca(0x17f),'accessKey':_0x1c06bc['accessKey'],'authMode':_0x4e24c8});}return{'defaults':{'booleans':{'verbose':_0x1c06bc[_0x4d5dca(0x19f)]},'numbers':{'pagesize':_0x1c06bc[_0x4d5dca(0x188)]}},'extras':{'appCode':_0x5ba8b2,'cookie':'','apiDomain':_0x1c06bc[_0x4d5dca(0x176)],'apiDir':'','accessKey':_0x1c06bc[_0x4d5dca(0x1a1)],'envName':_0x1c06bc[_0x4d5dca(0x18a)],'mergedCli':_0x1c06bc['mergedCli']}};},async 'confirmHighRisk'({def:_0x415edf,env:_0x39eb71,flags:_0x427626,commandLabel:_0x90b722}){const _0x184bfc=a83_0x2b5207;if(_0x39eb71[_0x184bfc(0x1b6)]){const _0xaa5745=reconstructCommandArgv(_0x415edf,_0x427626);throw CliErrors[_0x184bfc(0x1ad)](_0x184bfc(0x17d)+_0x90b722+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x184bfc(0x1a0)+_0xaa5745));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x415edf,_0x90b722,_0x427626),'createCancelledError':_0x2f0c50=>CliErrors['cancelled'](_0x2f0c50)});},'mapDryRunError'(_0x4a024f){return mapUserFacingExecuteError(_0x4a024f);},'mapExecuteError'(_0x1a5eff){return mapUserFacingExecuteError(_0x1a5eff);},async 'finalize'(){const _0x3cb792=a83_0x2b5207,{clearActiveAK:_0x4cb399}=await import(_0x3cb792(0x18d));_0x4cb399();}};async function resolveExplicitAppName(_0x3070b3,_0xc68a15,_0x43cb6d){const _0x558190=a83_0x2b5207;if(_0x3070b3[_0x558190(0x1a2)]===![])return _0x43cb6d;const _0x2a66ad=typeof _0xc68a15[_0x558190(0x1ac)][_0x558190(0x1af)]===_0x558190(0x192)?_0xc68a15[_0x558190(0x1ac)]['app'][_0x558190(0x17b)]():'';if(!_0x2a66ad)return _0x43cb6d;const _0x320510=typeof _0xc68a15['rawFlags'][_0x558190(0x191)]==='string'&&_0xc68a15[_0x558190(0x1ac)][_0x558190(0x191)][_0x558190(0x17b)]()||productEnv(_0x558190(0x1b4));if(_0x320510||_0xc68a15[_0x558190(0x19b)]===_0x558190(0x17e))return _0x43cb6d;const {getRemoteAppList:_0x3fad03}=await import(_0x558190(0x180)),_0x2b3553=await _0x3fad03({'env':_0xc68a15[_0x558190(0x18a)]??_0x558190(0x17f),'accessKey':_0xc68a15['accessKey']}),_0x69b750=findAppByName(_0x2b3553[_0x558190(0x1b0)],_0x2a66ad);if(_0x69b750&&!isRuntimeAccessibleApp(_0x69b750))throw runtimeInaccessibleAppError(_0x69b750,'\x22'+_0x2a66ad+'\x22');const _0x43c9af=_0x69b750?.['appCode']?.[_0x558190(0x17b)]();if(_0x43c9af)return _0x43c9af;throw CliErrors[_0x558190(0x1ad)](_0x558190(0x186)+_0x2a66ad,_0x558190(0x184)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2a66ad+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x558190(0x194)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5afbe0,_0x16e2a6){const _0x5760bf=a83_0x2b5207;if(_0x5afbe0[_0x5760bf(0x1a2)]===![]||!_0x16e2a6[_0x5760bf(0x1a1)])return;const _0x2fa89d=(typeof _0x16e2a6[_0x5760bf(0x1ac)][_0x5760bf(0x1af)]===_0x5760bf(0x192)&&_0x16e2a6[_0x5760bf(0x1ac)][_0x5760bf(0x1af)][_0x5760bf(0x17b)]()?_0x16e2a6['rawFlags'][_0x5760bf(0x1af)]:_0x16e2a6[_0x5760bf(0x17a)]?.[_0x5760bf(0x1a9)]??_0x16e2a6[_0x5760bf(0x17a)]?.['defaultApp'])?.[_0x5760bf(0x17b)]();if(!_0x2fa89d)return;const {getRemoteAppList:_0xc75aa7}=await import('../commands/app/remote-source.js'),_0x4d8b3f=await _0xc75aa7({'env':_0x16e2a6[_0x5760bf(0x18a)]??_0x5760bf(0x17f),'accessKey':_0x16e2a6[_0x5760bf(0x1a1)]}),_0x544345=findAppByName(_0x4d8b3f[_0x5760bf(0x1b0)],_0x2fa89d);if(_0x544345&&!isRuntimeAccessibleApp(_0x544345))throw runtimeInaccessibleAppError(_0x544345,'\x22'+_0x2fa89d+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x35de33,_0x283a71,_0x23c0e9){const _0x1214a2=a83_0x2b5207;if(_0x35de33['requiresAppCode']===![]||!_0x283a71[_0x1214a2(0x1a1)])return;const {getRemoteAppList:_0x260908}=await import(_0x1214a2(0x180)),_0xdb0291=await _0x260908({'env':_0x283a71[_0x1214a2(0x18a)]??_0x1214a2(0x17f),'accessKey':_0x283a71[_0x1214a2(0x1a1)]}),_0x3c3075=findAppByCode(_0xdb0291['items'],_0x23c0e9);if(_0x3c3075&&!isRuntimeAccessibleApp(_0x3c3075))throw runtimeInaccessibleAppError(_0x3c3075,'appcode\x20\x22'+_0x23c0e9+'\x22');}export async function runCommand(_0x1ac7df,_0x4bbacc){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1ac7df)?withUpdateNotice(_0x1ac7df):_0x1ac7df,_0x4bbacc,runnerAdapter);}function shouldAttachUpdateNotice(_0x3d2176){const _0x52635f=a83_0x2b5207;return!['update',_0x52635f(0x18e),_0x52635f(0x1b5)][_0x52635f(0x1b2)](_0x3d2176['service']);}function withUpdateNotice(_0x1bf2a0){return{..._0x1bf2a0,async 'execute'(_0x266851){const _0x6ef534=a83_0x3db5,_0x8504cb=shouldResolveUpdateNotice(_0x266851)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x6ef534(0x181)](null),_0x475360=await _0x1bf2a0[_0x6ef534(0x19a)](_0x266851);return attachUpdateNotice(_0x475360,await _0x8504cb);}};}function shouldResolveUpdateNotice(_0x147f8f){const _0x150bf9=a83_0x2b5207;return _0x147f8f[_0x150bf9(0x195)]===_0x150bf9(0x1a7)&&!_0x147f8f[_0x150bf9(0x183)];}function attachUpdateNotice(_0x9a5325,_0x1002cd){const _0x10abe9=a83_0x2b5207;if(!_0x1002cd||!_0x9a5325||typeof _0x9a5325!==_0x10abe9(0x196))return _0x9a5325;const _0x1b101e=_0x9a5325,_0x158be6=typeof _0x1b101e[_0x10abe9(0x199)]===_0x10abe9(0x196)&&_0x1b101e[_0x10abe9(0x199)]!==null?_0x1b101e[_0x10abe9(0x199)]:{};return{..._0x1b101e,'_notice':{..._0x158be6,'update':_0x1002cd}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x257bc4,_0x1a96ba){const _0x1669ad=a84_0x283a,_0x4999e2=_0x257bc4();while(!![]){try{const _0xccba8f=-parseInt(_0x1669ad(0xcb))/0x1*(parseInt(_0x1669ad(0xcc))/0x2)+-parseInt(_0x1669ad(0xce))/0x3+parseInt(_0x1669ad(0xc9))/0x4+parseInt(_0x1669ad(0xc5))/0x5+parseInt(_0x1669ad(0xc3))/0x6*(parseInt(_0x1669ad(0xc7))/0x7)+-parseInt(_0x1669ad(0xc6))/0x8+parseInt(_0x1669ad(0xd0))/0x9;if(_0xccba8f===_0x1a96ba)break;else _0x4999e2['push'](_0x4999e2['shift']());}catch(_0x5501e7){_0x4999e2['push'](_0x4999e2['shift']());}}}(a84_0x36ab,0x4e4a1));import{buildSchemaPayload as a84_0x30cc72}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a84_0x283a(_0x39efa6,_0x208722){_0x39efa6=_0x39efa6-0xc1;const _0x36ab0f=a84_0x36ab();let _0x283a53=_0x36ab0f[_0x39efa6];return _0x283a53;}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 _0x4f0181=a84_0x283a,{serviceRegistry:_0x55cb42,findDefinition:_0x472093}=await import('../commands/registry.js'),_0x4decfe=new Set(_0x55cb42[_0x4f0181(0xc2)](_0x3a4052=>_0x3a4052[_0x4f0181(0xca)])),_0x271b4c=listDynamicServiceEntries()[_0x4f0181(0xc4)](_0x5f0289=>!_0x4decfe[_0x4f0181(0xc8)](_0x5f0289[_0x4f0181(0xca)])),_0x484f12=a84_0x30cc72({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x55cb42,..._0x271b4c],'buildAllFlags':buildAllFlags,'findDefinition':(_0x49df30,_0x1ebbd5)=>_0x472093(_0x49df30,_0x1ebbd5)??findDynamicServiceDefinition(_0x49df30,_0x1ebbd5)});return normalizeSchemaPayload(_0x484f12);}function a84_0x36ab(){const _0x226e49=['606778diaQps','2XyFbqU','requiresAuth','33816zePJhS','services','9176490WAdwVc','auth','required','map','144zreUKO','filter','593610rPwEwL','3973016wdzWCd','17647vAxrUw','has','946056PKbiah','service'];a84_0x36ab=function(){return _0x226e49;};return a84_0x36ab();}function normalizeSchemaPayload(_0x240fc5){const _0x1e079d=a84_0x283a;return{..._0x240fc5,'schemaVersion':0x2,'services':_0x240fc5[_0x1e079d(0xcf)][_0x1e079d(0xc2)](_0x2f412a=>({..._0x2f412a,'commands':_0x2f412a['commands']['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4a4dfe){const _0x2f80cb=a84_0x283a,_0xde1c6a=_0x4a4dfe;return{..._0x4a4dfe,'auth':_0xde1c6a[_0x2f80cb(0xd1)]??(_0x4a4dfe[_0x2f80cb(0xcd)]?_0x2f80cb(0xc1):'none')};}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a85_0x33f2(){var _0x574b1d=['5819976rQIPRZ','2768tsVnxb','1360024EmFAYB','2EXObjN','639671QTzYvQ','12682197TsrHTh','6jromIh','3525DxBQId','1709491uvFNMX','10TKReeJ','569337VYiZhI'];a85_0x33f2=function(){return _0x574b1d;};return a85_0x33f2();}(function(_0x37123d,_0x4147fa){var _0x488ae9=a85_0x1ed6,_0x57d2f7=_0x37123d();while(!![]){try{var _0x3ebcef=parseInt(_0x488ae9(0xe2))/0x1*(parseInt(_0x488ae9(0xe1))/0x2)+parseInt(_0x488ae9(0xe8))/0x3+-parseInt(_0x488ae9(0xdf))/0x4*(parseInt(_0x488ae9(0xe5))/0x5)+-parseInt(_0x488ae9(0xe4))/0x6*(parseInt(_0x488ae9(0xe6))/0x7)+-parseInt(_0x488ae9(0xe0))/0x8+-parseInt(_0x488ae9(0xe9))/0x9+parseInt(_0x488ae9(0xe7))/0xa*(parseInt(_0x488ae9(0xe3))/0xb);if(_0x3ebcef===_0x4147fa)break;else _0x57d2f7['push'](_0x57d2f7['shift']());}catch(_0x4cffce){_0x57d2f7['push'](_0x57d2f7['shift']());}}}(a85_0x33f2,0x69de5));function a85_0x1ed6(_0x27d482,_0x559f5b){_0x27d482=_0x27d482-0xdf;var _0x33f2fb=a85_0x33f2();var _0x1ed6ed=_0x33f2fb[_0x27d482];return _0x1ed6ed;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x443152=a86_0x105b;function a86_0x105b(_0x5591e1,_0x464576){_0x5591e1=_0x5591e1-0x6f;const _0x2e4c97=a86_0x2e4c();let _0x105b23=_0x2e4c97[_0x5591e1];return _0x105b23;}(function(_0x32950d,_0x4a8a72){const _0xd226b=a86_0x105b,_0x4257ee=_0x32950d();while(!![]){try{const _0x364f5e=parseInt(_0xd226b(0x7b))/0x1+parseInt(_0xd226b(0x73))/0x2+-parseInt(_0xd226b(0x74))/0x3*(-parseInt(_0xd226b(0x72))/0x4)+parseInt(_0xd226b(0x77))/0x5*(parseInt(_0xd226b(0x70))/0x6)+-parseInt(_0xd226b(0x76))/0x7+parseInt(_0xd226b(0x75))/0x8*(-parseInt(_0xd226b(0x7a))/0x9)+-parseInt(_0xd226b(0x79))/0xa*(parseInt(_0xd226b(0x71))/0xb);if(_0x364f5e===_0x4a8a72)break;else _0x4257ee['push'](_0x4257ee['shift']());}catch(_0x8dbc7f){_0x4257ee['push'](_0x4257ee['shift']());}}}(a86_0x2e4c,0xee07e));export const VERSION=a86_0x443152(0x6f);export const GIT_TAG=a86_0x443152(0x78);function a86_0x2e4c(){const _0x2d432c=['5DfAbDN','v2.1.7-beta.4','10490YQZfKY','974439OQTkgK','1911932HmXpoe','2.1.7-beta.4','5699796NeqdDy','8613FXWQgp','44JRWgIa','295790zReUYt','261144moQKhJ','112TkYnzB','4586302LzZiJw'];a86_0x2e4c=function(){return _0x2d432c;};return a86_0x2e4c();}export const GIT_COMMIT='a6ef79c';export const BUILD_TIME='2026-07-06T15:38:11.814Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a87_0x401a(_0x1dc597,_0x2d2ee2){_0x1dc597=_0x1dc597-0xc8;const _0x31f6b0=a87_0x31f6();let _0x401a18=_0x31f6b0[_0x1dc597];return _0x401a18;}function a87_0x31f6(){const _0x34e812=['\x20\x20Use\x20','290794MqIOzg','12HkxlLP','28704kBcGfX','4070xorRjI','10SRsZNf','24SEXios','616494kbzHgn','137520PQrzQm','233570GozsIw','green','72269kTlRvn','column','140RdgNRE','4435576pcLTQp','\x20to\x20view\x20available\x20commands.'];a87_0x31f6=function(){return _0x34e812;};return a87_0x31f6();}(function(_0xe0b0b3,_0x3c140a){const _0x3ea1e7=a87_0x401a,_0x3f90cb=_0xe0b0b3();while(!![]){try{const _0x1cb9ca=parseInt(_0x3ea1e7(0xce))/0x1*(-parseInt(_0x3ea1e7(0xc8))/0x2)+-parseInt(_0x3ea1e7(0xca))/0x3+-parseInt(_0x3ea1e7(0xc9))/0x4*(parseInt(_0x3ea1e7(0xcc))/0x5)+-parseInt(_0x3ea1e7(0xd5))/0x6*(parseInt(_0x3ea1e7(0xd4))/0x7)+parseInt(_0x3ea1e7(0xd1))/0x8+parseInt(_0x3ea1e7(0xcb))/0x9*(-parseInt(_0x3ea1e7(0xd0))/0xa)+-parseInt(_0x3ea1e7(0xd7))/0xb*(-parseInt(_0x3ea1e7(0xd6))/0xc);if(_0x1cb9ca===_0x3c140a)break;else _0x3f90cb['push'](_0x3f90cb['shift']());}catch(_0x13e448){_0x3f90cb['push'](_0x3f90cb['shift']());}}}(a87_0x31f6,0x481bc));import{jsx as a87_0x46108a,jsxs as a87_0xf5e845}from'react/jsx-runtime';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 _0x3e551f=a87_0x401a,{exit:_0x1dec4f}=useApp();return useEffect(()=>{_0x1dec4f();},[_0x1dec4f]),a87_0xf5e845(Box,{'flexDirection':_0x3e551f(0xcf),'marginTop':0x1,'marginBottom':0x1,'children':[a87_0x46108a(Box,{'children':a87_0x46108a(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a87_0xf5e845(Box,{'marginTop':0x1,'children':[a87_0x46108a(Text,{'dimColor':!![],'children':_0x3e551f(0xd3)}),a87_0x46108a(Text,{'bold':!![],'color':_0x3e551f(0xcd),'children':CLI_BIN_NAME+'\x20--help'}),a87_0x46108a(Text,{'dimColor':!![],'children':_0x3e551f(0xd2)})]})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a88_0x170e(_0x4451aa,_0x1cd774){_0x4451aa=_0x4451aa-0x7d;const _0x12d8fd=a88_0x12d8();let _0x170e08=_0x12d8fd[_0x4451aa];return _0x170e08;}const a88_0x58cb45=a88_0x170e;(function(_0x2a1d94,_0xf7b0de){const _0x300391=a88_0x170e,_0xba4c30=_0x2a1d94();while(!![]){try{const _0x350c29=parseInt(_0x300391(0x89))/0x1*(-parseInt(_0x300391(0x7d))/0x2)+parseInt(_0x300391(0x91))/0x3*(-parseInt(_0x300391(0x8d))/0x4)+parseInt(_0x300391(0x86))/0x5*(parseInt(_0x300391(0x8c))/0x6)+-parseInt(_0x300391(0x8e))/0x7+parseInt(_0x300391(0x92))/0x8+-parseInt(_0x300391(0x8f))/0x9*(-parseInt(_0x300391(0x82))/0xa)+parseInt(_0x300391(0x7f))/0xb;if(_0x350c29===_0xf7b0de)break;else _0xba4c30['push'](_0xba4c30['shift']());}catch(_0x182e54){_0xba4c30['push'](_0xba4c30['shift']());}}}(a88_0x12d8,0x2ed19));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a88_0x12d8(){const _0x4437a4=['add','381efKcnR','1209272VIYeBA','stderr','88cFayAp','inherit','780065UiDVXc','npx','skipNpxSkillsEnvSuffix','2141480yPtYVq','status','join','trim','96680iDbYLY','unknown','stdout','4409sJfeut','log','toString','90KihtlT','3084hTmvlw','1698060GGmhkY','9BaCnQN'];a88_0x12d8=function(){return _0x4437a4;};return a88_0x12d8();}import{LOVRABET_SKILL_SOURCE as a88_0x26778c}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a88_0x26778c;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a88_0x58cb45(0x81)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3b9092,_0x4c8e20=LOVRABET_SKILL_SOURCE,_0x520ae6){const _0x72855e=a88_0x58cb45;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22ae86=_0x520ae6?.['stdio']??_0x72855e(0x7e),_0x1362dc=resolveNpmBin(_0x72855e(0x80)),_0x7ae6e0=['skills',_0x72855e(0x90),_0x4c8e20,'-g','-y'],_0x3b2e70=[_0x1362dc,..._0x7ae6e0][_0x72855e(0x84)]('\x20');console[_0x72855e(0x8a)]('*\x20'+_0x3b2e70);const _0x4d7bea=spawnSync(_0x1362dc,_0x7ae6e0,{'cwd':_0x3b9092,'stdio':_0x22ae86,'env':process.env,'shell':![]});if(_0x4d7bea[_0x72855e(0x83)]===0x0)return{'ok':!![],'status':0x0};let _0x29fe76='exit\x20'+(_0x4d7bea['status']??_0x72855e(0x87));if(_0x22ae86==='pipe'){const _0x174b27=_0x4d7bea[_0x72855e(0x93)]?_0x4d7bea[_0x72855e(0x93)][_0x72855e(0x8b)]()[_0x72855e(0x85)]():'',_0x5983f0=_0x4d7bea[_0x72855e(0x88)]?_0x4d7bea['stdout']['toString']()['trim']():'';if(_0x174b27)_0x29fe76=_0x174b27;else{if(_0x5983f0)_0x29fe76=_0x5983f0;}}return{'ok':![],'status':_0x4d7bea[_0x72855e(0x83)]??null,'error':_0x29fe76};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x50f374=a89_0x300c;(function(_0x3d2e21,_0x3b199d){const _0x55cfb8=a89_0x300c,_0x1be20b=_0x3d2e21();while(!![]){try{const _0x16fb4d=parseInt(_0x55cfb8(0xcc))/0x1*(-parseInt(_0x55cfb8(0xd5))/0x2)+parseInt(_0x55cfb8(0xc7))/0x3+-parseInt(_0x55cfb8(0xc3))/0x4*(-parseInt(_0x55cfb8(0xd1))/0x5)+-parseInt(_0x55cfb8(0xc4))/0x6*(-parseInt(_0x55cfb8(0xc2))/0x7)+parseInt(_0x55cfb8(0xcf))/0x8+parseInt(_0x55cfb8(0xc5))/0x9*(parseInt(_0x55cfb8(0xcd))/0xa)+-parseInt(_0x55cfb8(0xca))/0xb;if(_0x16fb4d===_0x3b199d)break;else _0x1be20b['push'](_0x1be20b['shift']());}catch(_0x7bb07f){_0x1be20b['push'](_0x1be20b['shift']());}}}(a89_0xb339,0xf321a));export const METADATA_FILE=a89_0x50f374(0xd2);export const SKILL_FILE='SKILL.md';export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a89_0x50f374(0xd0)]);function a89_0x300c(_0x7a3511,_0x4c34d9){_0x7a3511=_0x7a3511-0xc2;const _0xb33950=a89_0xb339();let _0x300cf5=_0xb33950[_0x7a3511];return _0x300cf5;}function a89_0xb339(){const _0x575d7d=['lovrabet.skill.json','.svn','dist','4gzonrZ','7KfJrnK','8fSRfOc','2522910tOOtTC','4869AbHRvH','node_modules','882597elejMw','.hg','coverage','14319173jpsBMc','.turbo','637202Mmlqdj','6500bXnfMt','.git','14960200mYXnbz','.DS_Store','1589135svjxGI'];a89_0xb339=function(){return _0x575d7d;};return a89_0xb339();}export const IGNORED_DIR_NAMES=new Set([a89_0x50f374(0xce),a89_0x50f374(0xc8),a89_0x50f374(0xd3),a89_0x50f374(0xc6),'.next',a89_0x50f374(0xd4),'build',a89_0x50f374(0xc9),a89_0x50f374(0xcb),'.cache']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37cdc2,_0x35f620){const _0x33c32f=a90_0x5612,_0x7c6745=_0x37cdc2();while(!![]){try{const _0x527e7e=-parseInt(_0x33c32f(0x18f))/0x1+-parseInt(_0x33c32f(0x18e))/0x2+-parseInt(_0x33c32f(0x196))/0x3*(parseInt(_0x33c32f(0x18c))/0x4)+-parseInt(_0x33c32f(0x193))/0x5+-parseInt(_0x33c32f(0x195))/0x6+parseInt(_0x33c32f(0x189))/0x7+parseInt(_0x33c32f(0x192))/0x8;if(_0x527e7e===_0x35f620)break;else _0x7c6745['push'](_0x7c6745['shift']());}catch(_0x353a7f){_0x7c6745['push'](_0x7c6745['shift']());}}}(a90_0x1b01,0x91cd6));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';function a90_0x5612(_0x3df9c5,_0x1b3ebe){_0x3df9c5=_0x3df9c5-0x187;const _0x1b0192=a90_0x1b01();let _0x5612b4=_0x1b0192[_0x3df9c5];return _0x5612b4;}import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x31284b,_0x22f007){const _0x538265=a90_0x5612,_0x71e961=normalizeSkillRelativePath(_0x22f007),_0x58d843=realOrResolved(_0x31284b),_0x249f6b=resolve(_0x58d843,..._0x71e961['split']('/'));if(!isPathInside(_0x249f6b,_0x58d843))throw CliErrors[_0x538265(0x18a)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x22f007);return ensureNoSymlinkInManagedPath(_0x58d843,_0x71e961),_0x249f6b;}export function ensureNoSymlinkInManagedPath(_0x37977b,_0x2c63ac){const _0x395e63=a90_0x5612;let _0x52885e=_0x37977b;for(const _0x452e39 of _0x2c63ac[_0x395e63(0x18b)]('/')){_0x52885e=resolve(_0x52885e,_0x452e39);const _0x4d2d5e=lstatIfPresent(_0x52885e);if(_0x4d2d5e?.[_0x395e63(0x190)]())throw CliErrors['validation'](_0x395e63(0x187)+_0x2c63ac);}}export function isDanglingSymlink(_0xd25a66){const _0x3736b0=a90_0x5612;try{return lstatSync(_0xd25a66)[_0x3736b0(0x190)]();}catch{return![];}}export function resolveSymlinkTarget(_0x2d5dea){const _0x23f067=readlinkSync(_0x2d5dea);return isAbsolute(_0x23f067)?_0x23f067:resolve(dirname(_0x2d5dea),_0x23f067);}export function isPathInside(_0x18b111,_0x5b8804){const _0x23e0b9=a90_0x5612,_0xdd941b=_0x18b111[_0x23e0b9(0x191)](sep)?_0x18b111:''+_0x18b111+sep,_0x391899=_0x5b8804[_0x23e0b9(0x191)](sep)?_0x5b8804:''+_0x5b8804+sep;return _0x18b111===_0x5b8804||_0xdd941b[_0x23e0b9(0x194)](_0x391899);}export function realOrResolved(_0x2569dd){try{return realpathSync(_0x2569dd);}catch{return resolve(_0x2569dd);}}export function lstatIfPresent(_0x19f7ef){try{return lstatSync(_0x19f7ef);}catch{return undefined;}}export function writeTextAtomic(_0x8c9c53,_0x4fe545,_0x195ab9){writeBytesAtomic(_0x8c9c53,Buffer['from'](_0x4fe545,'utf8'),_0x195ab9);}export function writeBytesAtomic(_0x40e8b4,_0xd290ff,_0x6ada56){const _0x3d954c=a90_0x5612,_0x1ae362=_0x40e8b4+_0x3d954c(0x188);try{writeFileSync(_0x1ae362,_0xd290ff,{'mode':_0x6ada56}),renameSync(_0x1ae362,_0x40e8b4);}catch(_0x527287){try{rmSync(_0x1ae362,{'force':!![]});}catch{}throw _0x527287;}}function a90_0x1b01(){const _0x48d7a8=['startsWith','3260688zJFAaO','1725474hZHXHl','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','.tmp','1611729hLdIFx','validation','split','4XigjWK','stringify','2140006XcrwxC','708795Eqnima','isSymbolicLink','endsWith','32750528WoqxtH','4147265qqjhtq'];a90_0x1b01=function(){return _0x48d7a8;};return a90_0x1b01();}export function writeJsonAtomic(_0xe3b861,_0x93b4e0){const _0x5c9b11=a90_0x5612;writeTextAtomic(_0xe3b861,JSON[_0x5c9b11(0x18d)](_0x93b4e0,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a0008,_0x26d653){const _0x2a8390=a91_0x119e,_0x4b03e0=_0x3a0008();while(!![]){try{const _0xa613f8=parseInt(_0x2a8390(0x161))/0x1*(-parseInt(_0x2a8390(0x15f))/0x2)+parseInt(_0x2a8390(0x16d))/0x3*(-parseInt(_0x2a8390(0x16c))/0x4)+parseInt(_0x2a8390(0x165))/0x5+-parseInt(_0x2a8390(0x164))/0x6*(parseInt(_0x2a8390(0x16b))/0x7)+-parseInt(_0x2a8390(0x162))/0x8*(-parseInt(_0x2a8390(0x163))/0x9)+parseInt(_0x2a8390(0x160))/0xa+-parseInt(_0x2a8390(0x15c))/0xb*(-parseInt(_0x2a8390(0x167))/0xc);if(_0xa613f8===_0x26d653)break;else _0x4b03e0['push'](_0x4b03e0['shift']());}catch(_0x40a10b){_0x4b03e0['push'](_0x4b03e0['shift']());}}}(a91_0x29e5,0x48a90));function a91_0x29e5(){const _0x1ee84c=['512SjxCQm','47646cJjfby','1727574wqVAXQ','755275JCKPlf','update','10944rFtwox','sha256','size','path','7KyDMTl','8gAjseI','113910gPaODI','5577LpnKYe','digest','hex','2CKWxdz','2604270ItnyBS','551197hnUuPn'];a91_0x29e5=function(){return _0x1ee84c;};return a91_0x29e5();}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4a09f4){const _0x15e8c2=a91_0x119e;return createHash(_0x15e8c2(0x168))[_0x15e8c2(0x166)](_0x4a09f4)['digest'](_0x15e8c2(0x15e));}function a91_0x119e(_0x16a31d,_0x471c6b){_0x16a31d=_0x16a31d-0x15c;const _0x29e525=a91_0x29e5();let _0x119e03=_0x29e525[_0x16a31d];return _0x119e03;}export function fileHash(_0x3e575e){return bufferSha256(fileContent(_0x3e575e));}export function bufferSha256(_0x459dc1){const _0x35d6c1=a91_0x119e;return createHash(_0x35d6c1(0x168))[_0x35d6c1(0x166)](_0x459dc1)[_0x35d6c1(0x15d)](_0x35d6c1(0x15e));}export function fileTreeHash(_0x2cb846){const _0x1573b2=a91_0x119e,_0x526191=createHash(_0x1573b2(0x168));for(const _0x3c9eeb of normalizeManifestFiles(_0x2cb846)){_0x526191['update'](_0x3c9eeb[_0x1573b2(0x16a)]),_0x526191[_0x1573b2(0x166)]('\x00'),_0x526191['update'](_0x3c9eeb[_0x1573b2(0x168)]),_0x526191[_0x1573b2(0x166)]('\x00'),_0x526191[_0x1573b2(0x166)](String(_0x3c9eeb[_0x1573b2(0x169)])),_0x526191['update']('\x00');}return _0x526191['digest'](_0x1573b2(0x15e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f1b6d,_0x404d23){const _0x4dbcdb=a92_0x2b1f,_0x310c26=_0x1f1b6d();while(!![]){try{const _0x4f0e57=-parseInt(_0x4dbcdb(0x1ad))/0x1+-parseInt(_0x4dbcdb(0x1cd))/0x2+-parseInt(_0x4dbcdb(0x1d1))/0x3+parseInt(_0x4dbcdb(0x1d3))/0x4+parseInt(_0x4dbcdb(0x1da))/0x5+-parseInt(_0x4dbcdb(0x1c2))/0x6*(parseInt(_0x4dbcdb(0x1c1))/0x7)+parseInt(_0x4dbcdb(0x1bf))/0x8*(parseInt(_0x4dbcdb(0x1d9))/0x9);if(_0x4f0e57===_0x404d23)break;else _0x310c26['push'](_0x310c26['shift']());}catch(_0x153602){_0x310c26['push'](_0x310c26['shift']());}}}(a92_0x5037,0xd86fe));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a92_0x27fdea 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}=a92_0x27fdea;export function linkEffectiveRuntimeSkills(_0x51d928,_0xea4b32,_0x15d2f2={}){const _0x1f855a=a92_0x2b1f,_0x21ebbb=new Map();for(const _0x486921 of _0x51d928){const _0x5aa224=_0x486921['skill'][_0x1f855a(0x1bc)];if(!_0x5aa224)continue;const _0x138eaf=_0x21ebbb[_0x1f855a(0x1c6)](_0x5aa224);(!_0x138eaf||_0x486921[_0x1f855a(0x1d2)]===_0x1f855a(0x1d5))&&_0x21ebbb[_0x1f855a(0x1b9)](_0x5aa224,_0x486921);}const _0x12b3fa=[],_0x289faf=resolveSkillSyncPaths(_0x15d2f2);for(const _0x13153c of _0x21ebbb[_0x1f855a(0x1b1)]()){const _0x18fcf2=requireSkillCode(_0x13153c['skill']),_0x9b8882=_0xea4b32+'--'+_0x18fcf2;for(const _0x6dabb9 of[_0x289faf['agentsSkillsDir'],_0x289faf[_0x1f855a(0x1be)]]){_0x12b3fa[_0x1f855a(0x1d0)](ensureManagedSymlink(resolve(_0x6dabb9,_0x9b8882),_0x13153c['dir'],_0x289faf[_0x1f855a(0x1b4)]));}}return _0x12b3fa;}function a92_0x5037(){const _0x6f2ce2=['6621528mztMsT','length','111643bPuYef','186smQZUR','updated','unchanged','contentHash','get','name','isSymbolicLink','trim','skipped','isDirectory','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','127654hCznUt','filter','env','push','5276529TiqUOA','scope','379424AMuUFx','created','personal','validation','appCode','agentsSkillsDir','27vdXFBH','5290175ZpcqwQ','builtin','has','432349rEGNjb','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','not-managed-symlink','scopes','values','metadata-mismatch','startsWith','managedRoot','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','activeSkillCodes','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','skill','set','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','pruneSkillCodes','skillCode','map','claudeSkillsDir'];a92_0x5037=function(){return _0x6f2ce2;};return a92_0x5037();}export function pruneStaleRuntimeSkillLinks(_0x196b27,_0x1fbd60,_0x235a67={},_0x5d78b5){const _0x81becd=a92_0x2b1f,_0x4a7112=resolveSkillSyncPaths(_0x235a67),_0x3a0209=new Set([..._0x1fbd60][_0x81becd(0x1bd)](_0x386c65=>_0x386c65[_0x81becd(0x1c9)]())['filter'](Boolean)),_0x348c18=_0x5d78b5?new Set([..._0x5d78b5][_0x81becd(0x1bd)](_0x2ac1dc=>_0x2ac1dc[_0x81becd(0x1c9)]())[_0x81becd(0x1ce)](Boolean)):undefined,_0x4b0c72=[];for(const _0x5e6815 of[_0x4a7112[_0x81becd(0x1d8)],_0x4a7112[_0x81becd(0x1be)]]){for(const _0x4bb036 of managedAppSkillLinkPaths(_0x5e6815,_0x196b27)){const _0x2f053d=basename(_0x4bb036)['slice']((_0x196b27+'--')[_0x81becd(0x1c0)]);if(_0x348c18&&!_0x348c18[_0x81becd(0x1ac)](_0x2f053d))continue;if(_0x3a0209['has'](_0x2f053d))continue;_0x4b0c72[_0x81becd(0x1d0)](removeManagedSkillLink(_0x4bb036,_0x4a7112['managedRoot']));}}return _0x4b0c72;}function a92_0x2b1f(_0x358fc8,_0x47e3c2){_0x358fc8=_0x358fc8-0x1ab;const _0x5037d1=a92_0x5037();let _0x2b1f83=_0x5037d1[_0x358fc8];return _0x2b1f83;}export function pruneStaleRuntimeSkillCache(_0x2fd9cd,_0x67bc10={}){const _0x321679=a92_0x2b1f,_0x2668e9=new Set([..._0x2fd9cd[_0x321679(0x1b6)]][_0x321679(0x1bd)](_0x3fe507=>_0x3fe507[_0x321679(0x1c9)]())[_0x321679(0x1ce)](Boolean)),_0x1e308a=_0x2fd9cd[_0x321679(0x1bb)]?new Set([..._0x2fd9cd['pruneSkillCodes']][_0x321679(0x1bd)](_0x229e7f=>_0x229e7f['trim']())[_0x321679(0x1ce)](Boolean)):undefined,_0xa6955b=_0x2fd9cd[_0x321679(0x1b0)]??[_0x321679(0x1d5),'company'],_0x18adc8=resolve(getRuntimeSkillCacheRoot(_0x2fd9cd[_0x321679(0x1cf)],_0x2fd9cd['accessKey'],_0x67bc10),safePathSegment(_0x2fd9cd['appCode'],'appCode')),_0x332c05=[];for(const _0x1c9083 of _0xa6955b){const _0x1ee5e9=resolve(_0x18adc8,_0x1c9083);if(!existsSync(_0x1ee5e9))continue;for(const _0x45bfcb of readdirSync(_0x1ee5e9,{'withFileTypes':!![]})){if(!_0x45bfcb[_0x321679(0x1cb)]())continue;const _0x15ec3c=_0x45bfcb[_0x321679(0x1c7)];if(_0x1e308a&&!_0x1e308a[_0x321679(0x1ac)](_0x15ec3c))continue;if(_0x2668e9['has'](_0x15ec3c))continue;const _0x4473c8=resolve(_0x1ee5e9,_0x15ec3c),_0x1a7bbd=readMetadataIfPresent(resolve(_0x4473c8,METADATA_FILE));if(_0x1a7bbd?.[_0x321679(0x1d7)]!==_0x2fd9cd[_0x321679(0x1d7)]||_0x1a7bbd[_0x321679(0x1d2)]!==_0x1c9083||_0x1a7bbd[_0x321679(0x1bc)]!==_0x15ec3c){_0x332c05[_0x321679(0x1d0)]({'path':_0x4473c8,'action':_0x321679(0x1ca),'reason':_0x321679(0x1b2)});continue;}removeSync(_0x4473c8),_0x332c05['push']({'path':_0x4473c8,'action':'removed'});}}return _0x332c05;}export function linkGlobalRuntimeSkills(_0x37b186,_0x55f40a={}){const _0x260286=a92_0x2b1f,_0x553edc=resolveSkillSyncPaths(_0x55f40a),_0x14d4ef=[];for(const _0xad2104 of _0x37b186){if(_0xad2104[_0x260286(0x1d2)]!=='builtin')throw CliErrors[_0x260286(0x1d6)](_0x260286(0x1ba)+_0xad2104['scope']);const _0x44ccc3=requireSkillCode(_0xad2104[_0x260286(0x1b8)]),_0x4ee2f9=copyManagedSkillDirectory(_0xad2104['dir'],resolve(_0x553edc[_0x260286(0x1d8)],_0x44ccc3));_0x14d4ef[_0x260286(0x1d0)]({..._0x4ee2f9,'contentHash':_0xad2104[_0x260286(0x1c5)]});}return _0x14d4ef;}function ensureManagedSymlink(_0x36c1c4,_0x350d12,_0x55c94f){const _0x5a3d3d=a92_0x2b1f;mkdirSync(dirname(_0x36c1c4),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x36c1c4)||isDanglingSymlink(_0x36c1c4)){const _0x553e2c=lstatSync(_0x36c1c4);if(!_0x553e2c[_0x5a3d3d(0x1c8)]())throw CliErrors[_0x5a3d3d(0x1d6)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x36c1c4);const _0x28ffe5=resolveSymlinkTarget(_0x36c1c4);if(!isPathInside(realOrResolved(_0x28ffe5),realOrResolved(_0x55c94f)))throw CliErrors[_0x5a3d3d(0x1d6)](_0x5a3d3d(0x1ae)+_0x36c1c4);if(realOrResolved(_0x28ffe5)===realOrResolved(_0x350d12))return{'path':_0x36c1c4,'target':_0x350d12,'action':_0x5a3d3d(0x1c4)};return unlinkSync(_0x36c1c4),symlinkSync(_0x350d12,_0x36c1c4,'dir'),{'path':_0x36c1c4,'target':_0x350d12,'action':_0x5a3d3d(0x1c3)};}return symlinkSync(_0x350d12,_0x36c1c4,'dir'),{'path':_0x36c1c4,'target':_0x350d12,'action':_0x5a3d3d(0x1d4)};}function managedAppSkillLinkPaths(_0x39dba6,_0x1f0204){const _0x28bbd3=a92_0x2b1f;if(!existsSync(_0x39dba6))return[];const _0x2526c7=_0x1f0204+'--';return readdirSync(_0x39dba6,{'withFileTypes':!![]})[_0x28bbd3(0x1ce)](_0x1ae08f=>_0x1ae08f[_0x28bbd3(0x1c7)][_0x28bbd3(0x1b3)](_0x2526c7))[_0x28bbd3(0x1bd)](_0xdaa5da=>resolve(_0x39dba6,_0xdaa5da['name']));}function removeManagedSkillLink(_0x2de120,_0x426e4d){const _0x5cdc51=a92_0x2b1f,_0x3d406b=lstatIfPresent(_0x2de120);if(!_0x3d406b?.[_0x5cdc51(0x1c8)]())return{'path':_0x2de120,'action':_0x5cdc51(0x1ca),'reason':_0x5cdc51(0x1af)};const _0x19fbe9=resolveSymlinkTarget(_0x2de120);if(!isPathInside(realOrResolved(_0x19fbe9),realOrResolved(_0x426e4d)))return{'path':_0x2de120,'action':_0x5cdc51(0x1ca),'reason':'external-symlink'};return unlinkSync(_0x2de120),{'path':_0x2de120,'action':'removed'};}export function copyManagedSkillDirectory(_0x513487,_0x3f81b6){const _0x4f5a6c=a92_0x2b1f,_0x516b9d=resolve(_0x3f81b6,METADATA_FILE),_0x9344e6=existsSync(_0x3f81b6);if(_0x9344e6){const _0xcc3bf4=lstatSync(_0x3f81b6);if(_0xcc3bf4['isSymbolicLink']())throw CliErrors[_0x4f5a6c(0x1d6)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x3f81b6);if(!_0xcc3bf4[_0x4f5a6c(0x1cb)]())throw CliErrors[_0x4f5a6c(0x1d6)](_0x4f5a6c(0x1b5)+_0x3f81b6);const _0xdee1c6=readMetadataIfPresent(_0x516b9d);if(_0xdee1c6?.['scope']!==_0x4f5a6c(0x1ab))throw CliErrors[_0x4f5a6c(0x1d6)](_0x4f5a6c(0x1cc)+_0x3f81b6);}ensureDirSync(dirname(_0x3f81b6));const _0x409fe9=_0x9344e6?readMetadataIfPresent(_0x516b9d)?.['contentHash']:undefined,_0x448885=readMetadataIfPresent(resolve(_0x513487,METADATA_FILE))?.[_0x4f5a6c(0x1c5)];return _0x9344e6&&removeSync(_0x3f81b6),copySkillDirectory(_0x513487,_0x3f81b6),{'path':_0x3f81b6,'target':_0x513487,'action':!_0x9344e6?_0x4f5a6c(0x1d4):_0x409fe9===_0x448885?_0x4f5a6c(0x1c4):_0x4f5a6c(0x1c3)};}function copySkillDirectory(_0x382da0,_0x22a728){copySync(_0x382da0,_0x22a728,{'dereference':![],'overwrite':!![],'filter'(_0x5a9000){const _0x234257=a92_0x2b1f;if(lstatSync(_0x5a9000)[_0x234257(0x1c8)]())throw CliErrors[_0x234257(0x1d6)](_0x234257(0x1b7)+_0x5a9000);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39fa8b,_0x464196){const _0x152244=a93_0x4739,_0xb5da8d=_0x39fa8b();while(!![]){try{const _0x211015=parseInt(_0x152244(0x1b0))/0x1*(-parseInt(_0x152244(0x18c))/0x2)+-parseInt(_0x152244(0x1ad))/0x3+-parseInt(_0x152244(0x18a))/0x4*(parseInt(_0x152244(0x18e))/0x5)+-parseInt(_0x152244(0x19e))/0x6+parseInt(_0x152244(0x190))/0x7*(parseInt(_0x152244(0x19b))/0x8)+parseInt(_0x152244(0x196))/0x9+parseInt(_0x152244(0x1a6))/0xa*(parseInt(_0x152244(0x195))/0xb);if(_0x211015===_0x464196)break;else _0xb5da8d['push'](_0xb5da8d['shift']());}catch(_0x3b06b9){_0xb5da8d['push'](_0xb5da8d['shift']());}}}(a93_0x668a,0xc8e07));function a93_0x4739(_0x44f960,_0x773b89){_0x44f960=_0x44f960-0x186;const _0x668a2d=a93_0x668a();let _0x47394f=_0x668a2d[_0x44f960];return _0x47394f;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';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(_0x4088d2,_0x16bd59={}){const _0x2d7bd4=a93_0x4739,_0x5b94bd=safePathSegment(_0x4088d2[_0x2d7bd4(0x1a5)],_0x2d7bd4(0x1a5)),_0x572a0f=normalizeRuntimeSkillScopes(_0x4088d2[_0x2d7bd4(0x1af)]),_0x4fecd9=new Set(_0x572a0f),_0xf33dfe=_0x4088d2[_0x2d7bd4(0x1a4)]?.[_0x2d7bd4(0x186)](),_0x3bf9d0=new Map(),_0x3d3eb4=resolve(getRuntimeSkillCacheRoot(_0x4088d2[_0x2d7bd4(0x19c)],_0x4088d2[_0x2d7bd4(0x1a7)],_0x16bd59),_0x5b94bd);for(const _0x2bfc34 of _0x572a0f){for(const _0x4cfe28 of localSkillEntryDirs(resolve(_0x3d3eb4,_0x2bfc34))){collectLocalRuntimeSkill(_0x3bf9d0,_0x4cfe28,{'appCode':_0x5b94bd,'scopes':_0x4fecd9,'code':_0xf33dfe,'source':_0x2d7bd4(0x198)});}}const _0x1db9ad=resolveSkillSyncPaths(_0x16bd59);for(const _0xaa5d1e of[_0x1db9ad[_0x2d7bd4(0x1ac)],_0x1db9ad[_0x2d7bd4(0x1a9)]]){for(const _0x15c943 of localSkillLinkCandidates(_0xaa5d1e,_0x5b94bd,_0x4fecd9)){collectLocalRuntimeSkill(_0x3bf9d0,_0x15c943,{'appCode':_0x5b94bd,'scopes':_0x4fecd9,'code':_0xf33dfe,'source':_0x2d7bd4(0x199),'linkedPath':_0x15c943});}}return Array['from'](_0x3bf9d0[_0x2d7bd4(0x1a8)]())[_0x2d7bd4(0x1ae)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x246540){const _0x3e6dcc=a93_0x4739;if(!existsSync(_0x246540))return[];return readdirSync(_0x246540,{'withFileTypes':!![]})[_0x3e6dcc(0x187)](_0x36106=>_0x36106['isDirectory']()||_0x36106['isSymbolicLink']())[_0x3e6dcc(0x192)](_0x352ac7=>resolve(_0x246540,_0x352ac7['name']));}function localSkillLinkCandidates(_0x24a0f5,_0x52bab6,_0x43c626){const _0x2fc49c=a93_0x4739;if(!existsSync(_0x24a0f5))return[];const _0x25f5b2=_0x52bab6+'--';return readdirSync(_0x24a0f5,{'withFileTypes':!![]})[_0x2fc49c(0x187)](_0x1b9dd1=>_0x1b9dd1[_0x2fc49c(0x1a1)]()||_0x1b9dd1[_0x2fc49c(0x19a)]())['filter'](_0x38b5f9=>_0x38b5f9['name'][_0x2fc49c(0x193)](_0x25f5b2)||_0x43c626[_0x2fc49c(0x194)](_0x2fc49c(0x1aa)))['map'](_0x40a2c8=>resolve(_0x24a0f5,_0x40a2c8[_0x2fc49c(0x188)]));}function collectLocalRuntimeSkill(_0x6056d1,_0x58a894,_0x500e45){const _0x1e6d60=a93_0x4739,_0x37024c=resolve(_0x58a894,METADATA_FILE),_0x17a159=readMetadataIfPresent(_0x37024c);if(!_0x17a159)return;if(_0x17a159['appCode']!==_0x500e45[_0x1e6d60(0x1a5)])return;if(!isRuntimeSkillScope(_0x17a159[_0x1e6d60(0x19d)])||!_0x500e45[_0x1e6d60(0x1af)][_0x1e6d60(0x194)](_0x17a159[_0x1e6d60(0x19d)]))return;const _0x44c88c=_0x17a159['skillCode']?.[_0x1e6d60(0x186)]();if(!_0x44c88c)return;if(_0x500e45['code']&&_0x44c88c!==_0x500e45[_0x1e6d60(0x1a4)])return;const _0xaea9d5=_0x17a159[_0x1e6d60(0x19d)]+':'+_0x44c88c,_0x1b36ff=_0x500e45[_0x1e6d60(0x191)]?[_0x500e45[_0x1e6d60(0x191)]]:[],_0xdb2501=_0x6056d1['get'](_0xaea9d5);if(_0xdb2501){_0x500e45[_0x1e6d60(0x189)]===_0x1e6d60(0x198)&&(_0xdb2501[_0x1e6d60(0x18d)]=_0x58a894,_0xdb2501[_0x1e6d60(0x1a0)]=_0x58a894,_0xdb2501['skillMdPath']=resolve(_0x58a894,SKILL_FILE),_0xdb2501['metadataPath']=_0x37024c);for(const _0xd2ca4 of _0x1b36ff){!_0xdb2501[_0x1e6d60(0x18b)]['includes'](_0xd2ca4)&&_0xdb2501[_0x1e6d60(0x18b)]['push'](_0xd2ca4);}_0xdb2501[_0x1e6d60(0x18b)][_0x1e6d60(0x1ae)]();return;}_0x6056d1[_0x1e6d60(0x1a3)](_0xaea9d5,{..._0x17a159,'tags':Array[_0x1e6d60(0x1a2)](_0x17a159[_0x1e6d60(0x197)])?_0x17a159[_0x1e6d60(0x197)]:[],'scope':_0x17a159[_0x1e6d60(0x19d)],'source':_0x1e6d60(0x19f),'dir':_0x58a894,'cacheDir':_0x500e45[_0x1e6d60(0x189)]===_0x1e6d60(0x198)?_0x58a894:undefined,'skillMdPath':resolve(_0x58a894,SKILL_FILE),'metadataPath':_0x37024c,'linkedPaths':_0x1b36ff});}function compareLocalRuntimeSkills(_0x2002bb,_0x50b589){const _0x758fee=a93_0x4739,_0xce51a2={'personal':0x0,'company':0x1,'builtin':0x2};return _0xce51a2[_0x2002bb[_0x758fee(0x19d)]]-_0xce51a2[_0x50b589['scope']]||_0x2002bb[_0x758fee(0x1ab)]['localeCompare'](_0x50b589[_0x758fee(0x1ab)])||_0x2002bb[_0x758fee(0x18d)][_0x758fee(0x18f)](_0x50b589['dir']);}function a93_0x668a(){const _0x1117f6=['scopes','20901PWPCXj','trim','filter','name','source','36BbMVzf','linkedPaths','142sWjYOJ','dir','143730tWhvIB','localeCompare','24199KIngrB','linkedPath','map','startsWith','has','5408194vFmztC','2114190IhVwZl','tags','cache','link','isSymbolicLink','632BIMWxX','env','scope','8215152aGBxDG','local','cacheDir','isDirectory','isArray','set','code','appCode','90Jowoki','accessKey','values','claudeSkillsDir','builtin','skillCode','agentsSkillsDir','2994693mXRNzd','sort'];a93_0x668a=function(){return _0x1117f6;};return a93_0x668a();}
|