@lovrabet/lovrabet-cli 2.1.18-beta.2 → 2.1.18-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.d.ts +7 -14
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5dbcb9,_0x5e5134){const _0x272cb3=a83_0x2fc5,_0x1f6eb0=_0x5dbcb9();while(!![]){try{const _0x4d4f08=parseInt(_0x272cb3(0xb5))/0x1+-parseInt(_0x272cb3(0xae))/0x2*(parseInt(_0x272cb3(0xba))/0x3)+parseInt(_0x272cb3(0xbb))/0x4*(parseInt(_0x272cb3(0xbd))/0x5)+-parseInt(_0x272cb3(0xb1))/0x6*(parseInt(_0x272cb3(0xbf))/0x7)+-parseInt(_0x272cb3(0xaa))/0x8*(-parseInt(_0x272cb3(0xb6))/0x9)+-parseInt(_0x272cb3(0xb3))/0xa*(-parseInt(_0x272cb3(0xb0))/0xb)+parseInt(_0x272cb3(0xac))/0xc*(-parseInt(_0x272cb3(0xaf))/0xd);if(_0x4d4f08===_0x5e5134)break;else _0x1f6eb0['push'](_0x1f6eb0['shift']());}catch(_0x46ab09){_0x1f6eb0['push'](_0x1f6eb0['shift']());}}}(a83_0x5f5d,0x58761));function a83_0x5f5d(){const _0x4488f3=['33Cinxwb','4134THLcAe','map','1378630vfnTrO','newConfigFileName','353632jykXAZ','222228kTlNHd','service','Requires\x20appcode\x20(set\x20via\x20','filter','3sUMeIG','2148ShTBBx','generateCommandHelp','2705QVECvI','get','1813mqLTuG','generateFullHelp','160gTKotd','has','12vVyDZU','generateServiceHelp','1262914TDTgeU','4931329mnDWZZ'];a83_0x5f5d=function(){return _0x4488f3;};return a83_0x5f5d();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a83_0x2fc5(_0x5c239a,_0x303879){_0x5c239a=_0x5c239a-0xaa;const _0x5f5da1=a83_0x5f5d();let _0x2fc593=_0x5f5da1[_0x5c239a];return _0x2fc593;}import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x14513b=a83_0x2fc5;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x14513b(0xb8)+PRODUCT_CONFIG[_0x14513b(0xb4)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x46d4c5){const _0x49099e=a83_0x2fc5;return createGenerators()[_0x49099e(0xbc)](_0x46d4c5);}export function generateServiceHelp(_0x4a71ad){const _0x461b3f=a83_0x2fc5;return createGenerators()[_0x461b3f(0xad)](_0x4a71ad);}export function generateFullHelp(){const _0x38120d=a83_0x2fc5;return createGenerators()[_0x38120d(0xc0)]();}function getAnyServiceEntry(_0x2f6cd6){const _0x5b1f6d=getServiceEntry(_0x2f6cd6);if(_0x5b1f6d)return _0x5b1f6d;try{return getDynamicServiceEntry(_0x2f6cd6);}catch{return undefined;}}function getAnyServiceDefinitions(_0x55837e){const _0x13aba4=a83_0x2fc5,_0x1a3bc8=serviceGroups[_0x13aba4(0xbe)](_0x55837e);if(_0x1a3bc8)return _0x1a3bc8;try{return getDynamicServiceDefinitions(_0x55837e);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x4da4dc=a83_0x2fc5,_0x3c1764=new Set(serviceRegistry[_0x4da4dc(0xb2)](_0x58a0c5=>_0x58a0c5[_0x4da4dc(0xb7)]));try{return listDynamicServiceEntries()[_0x4da4dc(0xb9)](_0xa788c2=>!_0x3c1764[_0x4da4dc(0xab)](_0xa788c2[_0x4da4dc(0xb7)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x49f321,_0x3baa7c){var _0x4edd54=a84_0x1e7d,_0x4fe376=_0x49f321();while(!![]){try{var _0x31f26e=parseInt(_0x4edd54(0x90))/0x1*(parseInt(_0x4edd54(0x8c))/0x2)+parseInt(_0x4edd54(0x91))/0x3*(-parseInt(_0x4edd54(0x8b))/0x4)+parseInt(_0x4edd54(0x8f))/0x5*(parseInt(_0x4edd54(0x8a))/0x6)+parseInt(_0x4edd54(0x89))/0x7+-parseInt(_0x4edd54(0x92))/0x8*(-parseInt(_0x4edd54(0x87))/0x9)+parseInt(_0x4edd54(0x8e))/0xa+parseInt(_0x4edd54(0x8d))/0xb*(-parseInt(_0x4edd54(0x88))/0xc);if(_0x31f26e===_0x3baa7c)break;else _0x4fe376['push'](_0x4fe376['shift']());}catch(_0x1f06b5){_0x4fe376['push'](_0x4fe376['shift']());}}}(a84_0x35e2,0xa2786));export{runCommand}from'../framework/runner.js';function a84_0x1e7d(_0xf45c1c,_0x4c38a0){_0xf45c1c=_0xf45c1c-0x87;var _0x35e2fa=a84_0x35e2();var _0x1e7d20=_0x35e2fa[_0xf45c1c];return _0x1e7d20;}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';function a84_0x35e2(){var _0x499692=['9SLpfpM','300ftXHdN','340529GZYBIn','210QOuUyb','25372pQzwsw','664pDNWfm','926255uejnAp','12970760KpzpNn','155355pzLCYd','564PfCIsl','498YXWklk','9624680XYyCxQ'];a84_0x35e2=function(){return _0x499692;};return a84_0x35e2();}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(_0x3871e0,_0x572c06){const _0x28c8df=a85_0x3999,_0x439d88=_0x3871e0();while(!![]){try{const _0x456331=-parseInt(_0x28c8df(0x1d8))/0x1+-parseInt(_0x28c8df(0x1d3))/0x2*(-parseInt(_0x28c8df(0x1cc))/0x3)+-parseInt(_0x28c8df(0x1d7))/0x4+-parseInt(_0x28c8df(0x1d4))/0x5+-parseInt(_0x28c8df(0x1d0))/0x6+-parseInt(_0x28c8df(0x1d5))/0x7+-parseInt(_0x28c8df(0x1ce))/0x8*(-parseInt(_0x28c8df(0x1d6))/0x9);if(_0x456331===_0x572c06)break;else _0x439d88['push'](_0x439d88['shift']());}catch(_0x27d27f){_0x439d88['push'](_0x439d88['shift']());}}}(a85_0x171a,0x631a4));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x44694c,_0x5685f9){const _0x29430c=a85_0x3999,_0x345e86=_0x44694c['_notice'],{_notice:_0x16ae37,..._0x5f5c38}=_0x44694c;void _0x16ae37,baseFormatOutput(_0x5f5c38,_0x5685f9),_0x5685f9[_0x29430c(0x1cd)]==='pretty'&&printPrettyNotice(_0x345e86);}function a85_0x3999(_0x4902ad,_0x7a41e6){_0x4902ad=_0x4902ad-0x1cc;const _0x171a57=a85_0x171a();let _0x3999f7=_0x171a57[_0x4902ad];return _0x3999f7;}function a85_0x171a(){const _0x29135d=['9232WelSeT','message','2148318MJpcah','update','error','396534DcqkZu','3788300nZMeBF','2151695vjJeIk','15192SjIphg','2024804xVVJvV','207530PrHVow','9tehgqw','format'];a85_0x171a=function(){return _0x29135d;};return a85_0x171a();}function printPrettyNotice(_0x248690){const _0x3cc37b=a85_0x3999;if(!_0x248690?.['update'])return;console[_0x3cc37b(0x1d2)](_0x248690[_0x3cc37b(0x1d1)][_0x3cc37b(0x1cf)]+'\x20('+_0x248690[_0x3cc37b(0x1d1)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2617d8,_0x25dabd){const _0x1b296e=a86_0x18a8,_0x4753b5=_0x2617d8();while(!![]){try{const _0x313a6d=-parseInt(_0x1b296e(0xc0))/0x1*(-parseInt(_0x1b296e(0xba))/0x2)+parseInt(_0x1b296e(0xa3))/0x3+-parseInt(_0x1b296e(0xac))/0x4+-parseInt(_0x1b296e(0xa5))/0x5+parseInt(_0x1b296e(0xbd))/0x6*(-parseInt(_0x1b296e(0xb7))/0x7)+-parseInt(_0x1b296e(0xbf))/0x8*(-parseInt(_0x1b296e(0xae))/0x9)+parseInt(_0x1b296e(0xa9))/0xa*(parseInt(_0x1b296e(0xb3))/0xb);if(_0x313a6d===_0x25dabd)break;else _0x4753b5['push'](_0x4753b5['shift']());}catch(_0x41bb84){_0x4753b5['push'](_0x4753b5['shift']());}}}(a86_0x5d5e,0xcd163));function toKebab(_0x4f1d37){const _0x1c0c97=a86_0x18a8;return _0x4f1d37[_0x1c0c97(0xa2)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x301fc8,_0x20b044)=>'-'+_0x20b044['toLowerCase']())[_0x1c0c97(0xa2)](/([a-z0-9])([A-Z])/g,(_0x50dd6a,_0x491784,_0x385208)=>_0x491784+'-'+_0x385208)['toLowerCase']();}function buildKnownFlags(_0x51c215){const _0x593b87=a86_0x18a8,_0x314f42=new Set();for(const _0x4941b7 of _0x51c215){_0x314f42[_0x593b87(0xa0)](_0x4941b7[_0x593b87(0xab)]),_0x314f42[_0x593b87(0xa0)](toCamelCase(_0x4941b7[_0x593b87(0xab)]));}for(const _0x15e946 of[_0x593b87(0xb2),'dryRun',_0x593b87(0xb8),'format']){_0x314f42[_0x593b87(0xa0)](_0x15e946);}for(const _0x496270 of[_0x593b87(0xb6),_0x593b87(0xbe),_0x593b87(0xbc),_0x593b87(0xaa),_0x593b87(0xb1),_0x593b87(0xb0),'ci','global','version']){_0x314f42[_0x593b87(0xa0)](_0x496270);}return _0x314f42;}function a86_0x5d5e(){const _0x4fc741=['3218247MMUpLK','corrected','non-interactive','nonInteractive','dry-run','11eNdXjp','length','has','help','7wGdeZl','yes','number','26ruXsxD','get','appcode','4506126NKTZHp','env','24PbMHmG','27609bjLMXz','type','slice','keys','alias','add','set','replace','978414DlYxht','string','6425150wTRYLM','boolean','push','indexOf','25864630OlHrGA','app','name','5872724zMVaHU','original'];a86_0x5d5e=function(){return _0x4fc741;};return a86_0x5d5e();}function buildFlagTypeMap(_0x199f86){const _0x23e583=a86_0x18a8,_0x5bd3e2=new Map();for(const _0x1b7639 of _0x199f86){_0x5bd3e2[_0x23e583(0xa1)](_0x1b7639[_0x23e583(0xab)],_0x1b7639['type']),_0x5bd3e2['set'](toCamelCase(_0x1b7639[_0x23e583(0xab)]),_0x1b7639[_0x23e583(0x9c)]);}return _0x5bd3e2;}function toCamelCase(_0x10faf8){const _0x5367ca=a86_0x18a8;return _0x10faf8[_0x5367ca(0xa2)](/-([a-z])/g,(_0x391913,_0x3e5a4e)=>_0x3e5a4e['toUpperCase']());}function a86_0x18a8(_0x2dc087,_0x14eb0d){_0x2dc087=_0x2dc087-0x9c;const _0x5d5e20=a86_0x5d5e();let _0x18a870=_0x5d5e20[_0x2dc087];return _0x18a870;}function aliasHandler(_0x4ad0d9,_0x397b49){const _0x129e2a=a86_0x18a8,_0x53a205=[];for(const _0x4fbffc of Object[_0x129e2a(0x9e)](_0x4ad0d9)){if(_0x397b49[_0x129e2a(0xb5)](_0x4fbffc))continue;const _0x16c877=toKebab(_0x4fbffc);_0x16c877!==_0x4fbffc&&_0x397b49[_0x129e2a(0xb5)](_0x16c877)&&_0x53a205[_0x129e2a(0xa7)]({'original':_0x4fbffc,'corrected':_0x16c877,'handler':_0x129e2a(0x9f)});}return _0x53a205;}function stickyHandler(_0x5355a8,_0x4dd27c,_0xa04446){const _0x1a22ac=a86_0x18a8,_0x1346f9=[];for(const [_0x4d1fd2,_0x531804]of Object['entries'](_0x5355a8)){if(_0x531804!==!![])continue;for(let _0x202ccd=_0x4d1fd2[_0x1a22ac(0xb4)]-0x1;_0x202ccd>0x0;_0x202ccd--){const _0x940779=_0x4d1fd2[_0x1a22ac(0x9d)](0x0,_0x202ccd),_0x58fbc8=_0x4d1fd2['slice'](_0x202ccd),_0x54a44b=toKebab(_0x940779),_0xfed992=toCamelCase(_0x940779),_0x30b859=_0x4dd27c[_0x1a22ac(0xb5)](_0x940779)?_0x940779:_0x4dd27c[_0x1a22ac(0xb5)](_0x54a44b)?_0x54a44b:_0x4dd27c[_0x1a22ac(0xb5)](_0xfed992)?_0xfed992:null;if(!_0x30b859)continue;const _0x49f871=_0xa04446[_0x1a22ac(0xbb)](_0x30b859)??_0x1a22ac(0xa4);let _0x4361ff;if(_0x49f871===_0x1a22ac(0xb9)){const _0x5b2eea=Number(_0x58fbc8);if(isNaN(_0x5b2eea)||_0x58fbc8==='')continue;_0x4361ff=_0x5b2eea;}else{if(_0x49f871===_0x1a22ac(0xa6))continue;else{if(_0x58fbc8==='')continue;_0x4361ff=_0x58fbc8;}}_0x1346f9[_0x1a22ac(0xa7)]({'original':_0x4d1fd2,'corrected':_0x30b859+'='+_0x4361ff,'handler':'sticky'});break;}}return _0x1346f9;}export function correctFlags(_0x1fcc37,_0x37c0a4){const _0x4e5402=a86_0x18a8,_0x19375e=buildKnownFlags(_0x37c0a4),_0x425e16=buildFlagTypeMap(_0x37c0a4),_0x3f2577=aliasHandler(_0x1fcc37,_0x19375e),_0x252815=stickyHandler(_0x1fcc37,_0x19375e,_0x425e16),_0x822640=[..._0x3f2577,..._0x252815];if(_0x822640['length']===0x0)return{'flags':_0x1fcc37,'corrections':[]};const _0x53d85c={..._0x1fcc37},_0x17c0b4=new Set();for(const _0x377128 of _0x3f2577){_0x53d85c[_0x377128[_0x4e5402(0xaf)]]=_0x1fcc37[_0x377128['original']],_0x17c0b4['add'](_0x377128['original']);}for(const _0x4ffcab of _0x252815){const _0x5d58a3=_0x4ffcab[_0x4e5402(0xaf)][_0x4e5402(0xa8)]('='),_0x5aef73=_0x4ffcab['corrected'][_0x4e5402(0x9d)](0x0,_0x5d58a3),_0x4098ab=_0x4ffcab['corrected'][_0x4e5402(0x9d)](_0x5d58a3+0x1),_0x53d4a9=_0x425e16[_0x4e5402(0xbb)](_0x5aef73)??_0x4e5402(0xa4);_0x53d4a9===_0x4e5402(0xb9)?_0x53d85c[_0x5aef73]=Number(_0x4098ab):_0x53d85c[_0x5aef73]=_0x4098ab,_0x17c0b4[_0x4e5402(0xa0)](_0x4ffcab[_0x4e5402(0xad)]);}for(const _0x5b9571 of _0x17c0b4){delete _0x53d85c[_0x5b9571];}return{'flags':_0x53d85c,'corrections':_0x822640};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x51bf(_0x572260,_0x2ac60d){_0x572260=_0x572260-0xe0;const _0x5554ab=a87_0x5554();let _0x51bf3f=_0x5554ab[_0x572260];return _0x51bf3f;}const a87_0x1f79f1=a87_0x51bf;(function(_0x50f1ab,_0xeac63e){const _0x2f0b81=a87_0x51bf,_0x5c0de2=_0x50f1ab();while(!![]){try{const _0x1aef7b=parseInt(_0x2f0b81(0xef))/0x1*(-parseInt(_0x2f0b81(0xe5))/0x2)+-parseInt(_0x2f0b81(0xf2))/0x3*(-parseInt(_0x2f0b81(0xfd))/0x4)+-parseInt(_0x2f0b81(0xed))/0x5*(parseInt(_0x2f0b81(0xf8))/0x6)+parseInt(_0x2f0b81(0xe3))/0x7+parseInt(_0x2f0b81(0xec))/0x8*(-parseInt(_0x2f0b81(0xfa))/0x9)+parseInt(_0x2f0b81(0xfe))/0xa*(parseInt(_0x2f0b81(0xf3))/0xb)+-parseInt(_0x2f0b81(0xe4))/0xc;if(_0x1aef7b===_0xeac63e)break;else _0x5c0de2['push'](_0x5c0de2['shift']());}catch(_0x1cf4ae){_0x5c0de2['push'](_0x5c0de2['shift']());}}}(a87_0x5554,0xab144));import{CliErrors}from'../errors.js';function a87_0x5554(){const _0x5617c5=['2352570ZKnRKu','isInteger','2ZmXcDU','has','EXCEED_MAX_QPS_LIMIT','2779638WVDUTq','2250809YjrUFU','Retry\x20after\x20a\x20short\x20delay.','entries','call','MAX_QPS_LIMIT','6zuQTPe','number','719091iDdZSL','Request\x20rate\x20limit\x20exceeded.','retryAfter','4eXOJya','10YgUcJB','Retry\x20after\x20','isArray','string','retryAfterSeconds','toLowerCase','Retry-After','retry-after','get','test','function','7230069hDunDr','1871184sONIzk','677048EcwBES','Wait\x20','IP_RATE_LIMIT_EXCEEDED','trim','object','errorCode','status','16IYqmEw'];a87_0x5554=function(){return _0x5617c5;};return a87_0x5554();}const RATE_LIMIT_ERROR_CODES=new Set([a87_0x1f79f1(0xf1),a87_0x1f79f1(0xf7),a87_0x1f79f1(0xe7)]);function nonEmptyString(_0x8de2ee){const _0x3b5a86=a87_0x1f79f1;if(typeof _0x8de2ee!==_0x3b5a86(0x101))return undefined;const _0x542e92=_0x8de2ee[_0x3b5a86(0xe8)]();return _0x542e92||undefined;}function buildRetryHint(_0x724b6a){const _0x4431f7=a87_0x1f79f1,_0x50c9b3=nonEmptyString(_0x724b6a),_0x257bf0=_0x50c9b3?/^\d+$/[_0x4431f7(0xe1)](_0x50c9b3)?_0x4431f7(0xe6)+_0x50c9b3+'\x20seconds\x20before\x20retrying.':_0x4431f7(0xff)+_0x50c9b3+'.':_0x4431f7(0xf4);return _0x257bf0+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x235006){const _0xc860cf=a87_0x1f79f1,_0x1ed715=nonEmptyString(_0x235006[_0xc860cf(0xea)])?.['toUpperCase'](),_0xfa306a=Number(_0x235006[_0xc860cf(0xeb)])===0x1ad||_0x1ed715!==undefined&&RATE_LIMIT_ERROR_CODES[_0xc860cf(0xf0)](_0x1ed715);if(!_0xfa306a)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x235006['message'])??_0xc860cf(0xfb),buildRetryHint(_0x235006[_0xc860cf(0xfc)]));}export function readRetryAfter(_0x1d6749){const _0x39a788=a87_0x1f79f1;if(!_0x1d6749||typeof _0x1d6749!==_0x39a788(0xe9))return undefined;const _0x18b880=_0x1d6749[_0x39a788(0xe0)];if(typeof _0x18b880===_0x39a788(0xe2)){const _0x26a680=_0x18b880['call'](_0x1d6749,_0x39a788(0x104))??_0x18b880[_0x39a788(0xf6)](_0x1d6749,'retry-after');return nonEmptyString(_0x26a680);}for(const [_0x5836b9,_0x2dfdeb]of Object[_0x39a788(0xf5)](_0x1d6749)){if(_0x5836b9[_0x39a788(0x103)]()===_0x39a788(0x105))return nonEmptyString(_0x2dfdeb)??(typeof _0x2dfdeb===_0x39a788(0xf9)?String(_0x2dfdeb):undefined);}return undefined;}export function readRetryAfterSeconds(_0x276cc5){const _0xbdbcdc=a87_0x1f79f1;if(!_0x276cc5||typeof _0x276cc5!==_0xbdbcdc(0xe9)||Array[_0xbdbcdc(0x100)](_0x276cc5))return undefined;const _0x1c946b=_0x276cc5[_0xbdbcdc(0x102)];if(typeof _0x1c946b===_0xbdbcdc(0xf9))return Number[_0xbdbcdc(0xee)](_0x1c946b)&&_0x1c946b>=0x0?String(_0x1c946b):undefined;const _0xe963d7=nonEmptyString(_0x1c946b);return _0xe963d7&&/^\d+$/[_0xbdbcdc(0xe1)](_0xe963d7)?_0xe963d7:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3c61df,_0x473fd9){var _0x121921=a88_0x5971,_0x4897e6=_0x3c61df();while(!![]){try{var _0x213038=-parseInt(_0x121921(0x15e))/0x1+parseInt(_0x121921(0x15b))/0x2*(parseInt(_0x121921(0x15d))/0x3)+parseInt(_0x121921(0x164))/0x4*(-parseInt(_0x121921(0x163))/0x5)+parseInt(_0x121921(0x15c))/0x6+-parseInt(_0x121921(0x162))/0x7+parseInt(_0x121921(0x160))/0x8+-parseInt(_0x121921(0x15f))/0x9*(-parseInt(_0x121921(0x161))/0xa);if(_0x213038===_0x473fd9)break;else _0x4897e6['push'](_0x4897e6['shift']());}catch(_0xf6e9b4){_0x4897e6['push'](_0x4897e6['shift']());}}}(a88_0x19e8,0xa5d43));function a88_0x5971(_0x1c4377,_0x132d54){_0x1c4377=_0x1c4377-0x15b;var _0x19e8ed=a88_0x19e8();var _0x597187=_0x19e8ed[_0x1c4377];return _0x597187;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a88_0x19e8(){var _0x4c6f89=['126OBtLep','3912208rLFdnp','1152740yULwge','551271PjdYEc','105SnCQxG','204104oPyiev','250HmaLUo','4216116FtBBEQ','2994qlRXZM','1100764kgAOeV'];a88_0x19e8=function(){return _0x4c6f89;};return a88_0x19e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6d31e5,_0x419bdf){const _0x5326bf=a89_0x49c7,_0x15aa5c=_0x6d31e5();while(!![]){try{const _0x391121=-parseInt(_0x5326bf(0x103))/0x1*(-parseInt(_0x5326bf(0x101))/0x2)+parseInt(_0x5326bf(0xf5))/0x3+-parseInt(_0x5326bf(0xf9))/0x4+parseInt(_0x5326bf(0x10e))/0x5*(-parseInt(_0x5326bf(0x113))/0x6)+parseInt(_0x5326bf(0x116))/0x7*(-parseInt(_0x5326bf(0x100))/0x8)+-parseInt(_0x5326bf(0x104))/0x9+parseInt(_0x5326bf(0x119))/0xa;if(_0x391121===_0x419bdf)break;else _0x15aa5c['push'](_0x15aa5c['shift']());}catch(_0x5dc558){_0x15aa5c['push'](_0x15aa5c['shift']());}}}(a89_0x2858,0xc614f));function a89_0x2858(){const _0x360581=['--yes','channel=','kind=','affectedRecords','30920xGZUwx','kind','entries','join','name','1458WkWtwU','schedule-id','id=','21NiIzpY','push','\x20\x20\x20Affected:\x20','30096270ytQQim','stringify','commandLabel','params=','833250wdIuCx','channel','cron','scheduled-at=','4531092uRjcUY','cron=','length','params','description','⚠\x20\x20High-risk\x20operation:\x20','command','2003608TErnfZ','82MRgppI','title','26479YcNzWz','1573515ztzfBT','title=','service','code','scheduled-at','code='];a89_0x2858=function(){return _0x360581;};return a89_0x2858();}import{CLI_BIN_NAME}from'../constant/cli.js';function a89_0x49c7(_0x464ac3,_0x272539){_0x464ac3=_0x464ac3-0xf5;const _0x28581e=a89_0x2858();let _0x49c7ec=_0x28581e[_0x464ac3];return _0x49c7ec;}export function buildConfirmationLines(_0x20c2a8,_0x930076,_0x48d761){const _0x13a995=a89_0x49c7,_0x47824b=buildConfirmationContext(_0x20c2a8,_0x930076,_0x48d761),_0x340dd3=[_0x13a995(0xfe)+_0x47824b[_0x13a995(0x11b)]];return _0x47824b[_0x13a995(0xfd)]&&_0x340dd3[_0x13a995(0x117)]('\x20\x20\x20'+_0x47824b['description']),_0x47824b[_0x13a995(0x10d)]&&_0x340dd3[_0x13a995(0x117)](_0x13a995(0x118)+_0x47824b[_0x13a995(0x10d)]),_0x340dd3['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x340dd3;}export function reconstructCommandArgv(_0x3213da,_0x56bdf8){const _0x5c3677=a89_0x49c7,_0x37eed8=[CLI_BIN_NAME,_0x3213da[_0x5c3677(0x106)],_0x3213da[_0x5c3677(0xff)]];for(const [_0x244219,_0x1a772f]of Object[_0x5c3677(0x110)](_0x56bdf8)){if(_0x1a772f===!![])_0x37eed8[_0x5c3677(0x117)]('--'+_0x244219);else _0x1a772f!==![]&&_0x1a772f!==undefined&&_0x1a772f!==''&&_0x37eed8[_0x5c3677(0x117)]('--'+_0x244219+'\x20'+JSON[_0x5c3677(0x11a)](_0x1a772f));}return _0x37eed8[_0x5c3677(0x117)](_0x5c3677(0x10a)),_0x37eed8['join']('\x20');}function buildConfirmationContext(_0x3f3080,_0x231cc8,_0x377603){const _0x142f8e=extractAffectedRecords(_0x377603);return{'commandLabel':_0x231cc8,'description':_0x3f3080['description'],'affectedRecords':_0x142f8e};}function extractAffectedRecords(_0x2458c1){const _0x3c9f64=a89_0x49c7,_0x326012=[];if(_0x2458c1[_0x3c9f64(0x107)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0x109)+_0x2458c1[_0x3c9f64(0x107)]);if(_0x2458c1['id'])_0x326012['push'](_0x3c9f64(0x115)+_0x2458c1['id']);if(_0x2458c1[_0x3c9f64(0x114)])_0x326012[_0x3c9f64(0x117)]('schedule-id='+_0x2458c1[_0x3c9f64(0x114)]);if(_0x2458c1[_0x3c9f64(0x112)])_0x326012[_0x3c9f64(0x117)]('name='+_0x2458c1['name']);if(_0x2458c1[_0x3c9f64(0x102)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0x105)+_0x2458c1[_0x3c9f64(0x102)]);if(_0x2458c1[_0x3c9f64(0x10f)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0x10c)+_0x2458c1['kind']);if(_0x2458c1[_0x3c9f64(0xf7)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0xfa)+_0x2458c1[_0x3c9f64(0xf7)]);if(_0x2458c1[_0x3c9f64(0x108)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0xf8)+_0x2458c1['scheduled-at']);if(_0x2458c1[_0x3c9f64(0xf6)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0x10b)+_0x2458c1[_0x3c9f64(0xf6)]);if(_0x2458c1[_0x3c9f64(0xfc)])_0x326012[_0x3c9f64(0x117)](_0x3c9f64(0x11c)+_0x2458c1['params']);return _0x326012[_0x3c9f64(0xfb)]>0x0?_0x326012[_0x3c9f64(0x111)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a90_0x2271(){const _0x323d19=['response','3253943obpwXq','601436nqjACP','24nBqyVQ','4083hldVJA','38310bzzKGX','189iebncS','trim','headers','3040212vXzReY','5879934ePUlru','status','66lOHInp','41792fEivxT','message','string','stringify','code','10clfHrq','590JvpZLt'];a90_0x2271=function(){return _0x323d19;};return a90_0x2271();}(function(_0x3c0984,_0x4e4602){const _0x51d6be=a90_0x55f8,_0x1f3260=_0x3c0984();while(!![]){try{const _0x5d0d5a=parseInt(_0x51d6be(0xcd))/0x1+-parseInt(_0x51d6be(0xde))/0x2*(-parseInt(_0x51d6be(0xcf))/0x3)+-parseInt(_0x51d6be(0xd4))/0x4+-parseInt(_0x51d6be(0xd0))/0x5*(-parseInt(_0x51d6be(0xd7))/0x6)+parseInt(_0x51d6be(0xd1))/0x7*(parseInt(_0x51d6be(0xd8))/0x8)+parseInt(_0x51d6be(0xd5))/0x9*(-parseInt(_0x51d6be(0xdd))/0xa)+parseInt(_0x51d6be(0xcc))/0xb*(parseInt(_0x51d6be(0xce))/0xc);if(_0x5d0d5a===_0x4e4602)break;else _0x1f3260['push'](_0x1f3260['shift']());}catch(_0x340ac7){_0x1f3260['push'](_0x1f3260['shift']());}}}(a90_0x2271,0x633ec));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a90_0x55f8(_0x23ea0d,_0x213b42){_0x23ea0d=_0x23ea0d-0xcb;const _0x227162=a90_0x2271();let _0x55f80e=_0x227162[_0x23ea0d];return _0x55f80e;}export function mapUserFacingExecuteError(_0x31bdbf){const _0x57f6ae=a90_0x55f8;if(_0x31bdbf instanceof LovrabetError){const _0x168d4a=userFacingLovrabetMessage(_0x31bdbf),_0x5f42eb=_0x31bdbf,_0x4a0a0c=createRateLimitError({'status':_0x5f42eb[_0x57f6ae(0xd6)],'errorCode':_0x5f42eb[_0x57f6ae(0xdc)],'message':_0x168d4a,'retryAfter':readRetryAfter(_0x5f42eb[_0x57f6ae(0xcb)]?.[_0x57f6ae(0xd3)])??readRetryAfterSeconds(_0x5f42eb[_0x57f6ae(0xcb)])});return _0x4a0a0c??CliErrors['validation'](_0x168d4a);}return _0x31bdbf;}function userFacingLovrabetMessage(_0xd487ac){const _0x20d5fe=a90_0x55f8,_0x33d62c=_0xd487ac['description'];if(_0x33d62c!==undefined&&_0x33d62c!==null){if(typeof _0x33d62c===_0x20d5fe(0xda)&&_0x33d62c[_0x20d5fe(0xd2)]())return _0x33d62c['trim']();try{return JSON[_0x20d5fe(0xdb)](_0x33d62c);}catch{}}return _0xd487ac[_0x20d5fe(0xd9)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xa4da33,_0x57d131){const _0x132398=a91_0x1576,_0x1d226e=_0xa4da33();while(!![]){try{const _0x5e153f=-parseInt(_0x132398(0x12d))/0x1+-parseInt(_0x132398(0x113))/0x2+parseInt(_0x132398(0x10f))/0x3*(parseInt(_0x132398(0x109))/0x4)+parseInt(_0x132398(0x128))/0x5+parseInt(_0x132398(0x102))/0x6*(parseInt(_0x132398(0x10a))/0x7)+parseInt(_0x132398(0x117))/0x8+-parseInt(_0x132398(0x11b))/0x9*(-parseInt(_0x132398(0x100))/0xa);if(_0x5e153f===_0x57d131)break;else _0x1d226e['push'](_0x1d226e['shift']());}catch(_0x355f7d){_0x1d226e['push'](_0x1d226e['shift']());}}}(a91_0x4786,0x2d8ef));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';function a91_0x1576(_0x5c5ee1,_0x5e0c3a){_0x5c5ee1=_0x5c5ee1-0xed;const _0x478619=a91_0x4786();let _0x1576e3=_0x478619[_0x5c5ee1];return _0x1576e3;}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(_0x14755f){const _0x1e3fb7=a91_0x1576;return void _0x14755f,AUTH_MODE[_0x1e3fb7(0x11c)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x560720,_0x4c70cb){const _0xe16907=a91_0x1576,_0x2ff13d=typeof _0x4c70cb[_0xe16907(0x12c)]==='string'&&_0x4c70cb[_0xe16907(0x12c)][_0xe16907(0x126)]();return{'rawFlags':_0x4c70cb,'appCode':_0x560720[_0xe16907(0x12b)]||productEnv('APPCODE')||(_0x2ff13d?undefined:readAppCodeFromConfig()),'appCodeSource':_0x560720[_0xe16907(0x10b)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x4c70cb),'defaultFormat':_0x560720[_0xe16907(0x108)],'defaultPageSize':_0x560720['pageSize'],'defaultVerbose':_0x560720[_0xe16907(0xfc)],'riskLevel':_0x560720[_0xe16907(0x104)],'accessKey':_0x560720[_0xe16907(0x115)],'env':_0x560720[_0xe16907(0x10c)],'mergedCli':{'defaultApp':_0x560720[_0xe16907(0xf7)],'currentApp':_0x560720[_0xe16907(0x121)],'appCode':_0x560720[_0xe16907(0x12b)]}};}export function createLovrabetRunnerAdapter(_0x3b421f={}){const _0x60189=a91_0x1576,_0x48241f={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x60189(0x10d)](_0x2b0933=>PIPELINE_FLAG_NAMES[_0x60189(0x116)](_0x2b0933[_0x60189(0xf0)]))['map'](({name:_0x3d78be,type:_0x4b0344,description:_0x24a67c})=>({'name':_0x3d78be,'type':_0x4b0344,'description':_0x24a67c})),'formatOutput':_0x3b421f['formatOutput']??formatOutput,'getCommandLabel'(_0x3c45fd){const _0x850860=_0x60189;return CLI_BIN_NAME+'\x20'+_0x3c45fd[_0x850860(0xf5)]+'\x20'+_0x3c45fd['command'];},'riskPolicy':{'onViolation'(_0x3760da){const _0x363df6=_0x60189;console[_0x363df6(0x127)](_0x3760da);},'createError'(_0x91fcda){return CliErrors['cancelled'](_0x91fcda);}},async 'prepare'(_0x1e304e,_0x499ee0){const _0x359788=_0x60189,_0x562800=resolveAuthMode(_0x499ee0);if(_0x1e304e[_0x359788(0x123)]!==![]){if(!_0x499ee0['accessKey'])throw CliErrors['authRequired'](_0x359788(0xfa)+PRODUCT_CONFIG['newConfigFileName']+_0x359788(0xf1)+productEnvName(_0x359788(0x106))+'.');const {setActiveAK:_0x29a805}=await import('../core/api-client.js');_0x29a805(_0x499ee0[_0x359788(0x115)]);}let _0x2c5158='';if(_0x1e304e[_0x359788(0x101)]!==![]){_0x2c5158=_0x499ee0['appCode']??'',_0x2c5158=await resolveExplicitAppName(_0x1e304e,_0x499ee0,_0x2c5158);if(!_0x2c5158){await assertSelectedAppNameIsRuntimeAccessible(_0x1e304e,_0x499ee0);throw CliErrors[_0x359788(0xef)](_0x359788(0x12a)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1e304e,_0x499ee0,_0x2c5158);}if(_0x2c5158){const {initSdkClient:_0x8637c9}=await import(_0x359788(0x10e));_0x8637c9({'appCode':_0x2c5158,'env':_0x499ee0[_0x359788(0x10c)]??_0x359788(0x122),'accessKey':_0x499ee0['accessKey'],'authMode':_0x562800}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x499ee0[_0x359788(0x11d)]},'numbers':{'pagesize':_0x499ee0[_0x359788(0xf6)]}},'extras':{'appCode':_0x2c5158,'cookie':'','apiDomain':_0x499ee0[_0x359788(0x125)],'apiDir':'','accessKey':_0x499ee0[_0x359788(0x115)],'envName':_0x499ee0[_0x359788(0x10c)],'mergedCli':_0x499ee0[_0x359788(0x118)]}};},'confirmHighRisk':_0x3b421f[_0x60189(0x119)]??(async({def:_0x50af29,env:_0x13e9eb,flags:_0x3df348,commandLabel:_0x4a3a9d})=>{const _0x48a5a4=_0x60189;if(_0x13e9eb[_0x48a5a4(0x114)]){const _0x3dd895=reconstructCommandArgv(_0x50af29,_0x3df348);throw CliErrors[_0x48a5a4(0x112)](_0x48a5a4(0x111)+_0x4a3a9d+_0x48a5a4(0x120)+(_0x48a5a4(0x11e)+_0x3dd895));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x50af29,_0x4a3a9d,_0x3df348),'createCancelledError':_0x53bdad=>CliErrors[_0x48a5a4(0xff)](_0x53bdad)});}),'mapDryRunError'(_0x2fad6d){return mapUserFacingExecuteError(_0x2fad6d);},'mapExecuteError'(_0x549862){return mapUserFacingExecuteError(_0x549862);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x48241f;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x368f3f=a91_0x1576;try{if(sdkClientInitialized){const {clearSdkClient:_0x512752}=await import(_0x368f3f(0x10e));_0x512752();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xcd568b}=await import('../core/api-client.js');_0xcd568b();}}async function resolveExplicitAppName(_0x581622,_0x2c355d,_0x135dda){const _0x587f25=a91_0x1576;if(_0x581622[_0x587f25(0x101)]===![])return _0x135dda;const _0x6a4bfb=typeof _0x2c355d[_0x587f25(0xf4)][_0x587f25(0x12c)]===_0x587f25(0x110)?_0x2c355d['rawFlags']['app'][_0x587f25(0x126)]():'';if(!_0x6a4bfb)return _0x135dda;const _0xbc2192=typeof _0x2c355d[_0x587f25(0xf4)][_0x587f25(0x103)]==='string'&&_0x2c355d[_0x587f25(0xf4)][_0x587f25(0x103)]['trim']()||productEnv(_0x587f25(0x129));if(_0xbc2192||_0x2c355d['appCodeSource']===_0x587f25(0x12e))return _0x135dda;const {getRemoteAppList:_0x20400d}=await import(_0x587f25(0xed)),_0x6137aa=await _0x20400d({'env':_0x2c355d[_0x587f25(0x10c)]??_0x587f25(0x122),'accessKey':_0x2c355d['accessKey']}),_0x2334a2=findAppByName(_0x6137aa[_0x587f25(0x107)],_0x6a4bfb);if(_0x2334a2&&!isRuntimeAccessibleApp(_0x2334a2))throw runtimeInaccessibleAppError(_0x2334a2,'\x22'+_0x6a4bfb+'\x22');const _0x2436b5=_0x2334a2?.['appCode']?.[_0x587f25(0x126)]();if(_0x2436b5)return _0x2436b5;throw CliErrors[_0x587f25(0x112)]('Unknown\x20app:\x20'+_0x6a4bfb,'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x6a4bfb+_0x587f25(0x124)+PRODUCT_CONFIG[_0x587f25(0xfd)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x18aad7,_0xeaff96){const _0x4e2a25=a91_0x1576;if(_0x18aad7[_0x4e2a25(0x101)]===![]||!_0xeaff96[_0x4e2a25(0x115)])return;const _0x36df0c=(typeof _0xeaff96['rawFlags']['app']===_0x4e2a25(0x110)&&_0xeaff96[_0x4e2a25(0xf4)]['app'][_0x4e2a25(0x126)]()?_0xeaff96[_0x4e2a25(0xf4)]['app']:_0xeaff96['mergedCli']?.[_0x4e2a25(0x121)]??_0xeaff96['mergedCli']?.[_0x4e2a25(0xf7)])?.[_0x4e2a25(0x126)]();if(!_0x36df0c)return;const {getRemoteAppList:_0x43c855}=await import(_0x4e2a25(0xed)),_0x6031fd=await _0x43c855({'env':_0xeaff96['env']??_0x4e2a25(0x122),'accessKey':_0xeaff96['accessKey']}),_0x3e18b3=findAppByName(_0x6031fd[_0x4e2a25(0x107)],_0x36df0c);if(_0x3e18b3&&!isRuntimeAccessibleApp(_0x3e18b3))throw runtimeInaccessibleAppError(_0x3e18b3,'\x22'+_0x36df0c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x6a6bee,_0x336bf3,_0x285d64){const _0x5327df=a91_0x1576;if(_0x6a6bee[_0x5327df(0x101)]===![]||!_0x336bf3[_0x5327df(0x115)])return;const {getRemoteAppList:_0x1b806f}=await import(_0x5327df(0xed)),_0x3aa495=await _0x1b806f({'env':_0x336bf3['env']??_0x5327df(0x122),'accessKey':_0x336bf3['accessKey']}),_0x2549d1=findAppByCode(_0x3aa495['items'],_0x285d64);if(_0x2549d1&&!isRuntimeAccessibleApp(_0x2549d1))throw runtimeInaccessibleAppError(_0x2549d1,_0x5327df(0xee)+_0x285d64+'\x22');}function a91_0x4786(){const _0xfa0377=['has','789336pbWfKI','mergedCli','confirmHighRisk','nonInteractive','72423QzUlrx','ClientAk','defaultVerbose','\x20\x20To\x20proceed:\x20','execute','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','currentApp','production','requiresAuth','.appcode\x20to\x20','apiDomain','trim','error','1079980UbbyOh','APPCODE','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appCode','app','359631hTzvML','local-alias','../commands/app/remote-source.js','appcode\x20\x22','configMissing','name','\x20or\x20pass\x20','_notice','update','rawFlags','service','defaultPageSize','defaultApp','doctor','resolve','Set\x20accessKey\x20in\x20','schema','verbose','newConfigFileName','pretty','cancelled','110QjBFkb','requiresAppCode','66KggMgL','appcode','riskLevel','object','ACCESS_KEY','items','format','4PBmfVD','131985wLzgpJ','appCodeSource','env','filter','../core/sdk-client.js','861453SgoYLT','string','High-risk\x20operation\x20`','validation','702996ujkrwm','isNonInteractive','accessKey'];a91_0x4786=function(){return _0xfa0377;};return a91_0x4786();}export async function runCommand(_0x216c4a,_0x2ee5c4,_0x54b0e4=terminalRunnerAdapter){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x216c4a)?withUpdateNotice(_0x216c4a):_0x216c4a,_0x2ee5c4,_0x54b0e4);}function shouldAttachUpdateNotice(_0x1b0598){const _0x38026d=a91_0x1576;return![_0x38026d(0xf3),_0x38026d(0xfb),_0x38026d(0xf8)]['includes'](_0x1b0598[_0x38026d(0xf5)]);}function withUpdateNotice(_0x59c1bb){return{..._0x59c1bb,async 'execute'(_0x49a22d){const _0x3826fc=a91_0x1576,_0x46eba6=shouldResolveUpdateNotice(_0x49a22d)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3826fc(0xf9)](null),_0xdbedc=await _0x59c1bb[_0x3826fc(0x11f)](_0x49a22d);return attachUpdateNotice(_0xdbedc,await _0x46eba6);}};}function shouldResolveUpdateNotice(_0x34bc80){const _0xaee6d7=a91_0x1576;return _0x34bc80[_0xaee6d7(0x108)]===_0xaee6d7(0xfe)&&!_0x34bc80[_0xaee6d7(0x11a)];}function attachUpdateNotice(_0x499258,_0x2f752d){const _0x2b9f54=a91_0x1576;if(!_0x2f752d||!_0x499258||typeof _0x499258!==_0x2b9f54(0x105))return _0x499258;const _0x3a98b8=_0x499258,_0x2453de=typeof _0x3a98b8['_notice']===_0x2b9f54(0x105)&&_0x3a98b8[_0x2b9f54(0xf2)]!==null?_0x3a98b8[_0x2b9f54(0xf2)]:{};return{..._0x3a98b8,'_notice':{..._0x2453de,'update':_0x2f752d}};}
|
|
1
|
+
(function(_0x576672,_0x4c3fcc){const _0x255315=a91_0x129f,_0x5bc2c6=_0x576672();while(!![]){try{const _0x1c00cf=-parseInt(_0x255315(0x7a))/0x1*(-parseInt(_0x255315(0x8f))/0x2)+-parseInt(_0x255315(0xa1))/0x3+-parseInt(_0x255315(0x83))/0x4+parseInt(_0x255315(0x93))/0x5*(-parseInt(_0x255315(0x72))/0x6)+parseInt(_0x255315(0x77))/0x7+parseInt(_0x255315(0x8b))/0x8*(-parseInt(_0x255315(0xa0))/0x9)+-parseInt(_0x255315(0x95))/0xa*(-parseInt(_0x255315(0x6f))/0xb);if(_0x1c00cf===_0x4c3fcc)break;else _0x5bc2c6['push'](_0x5bc2c6['shift']());}catch(_0x3b720b){_0x5bc2c6['push'](_0x5bc2c6['shift']());}}}(a91_0x2965,0x870ad));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(_0x1d32ac){return void _0x1d32ac,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];function a91_0x2965(){const _0x2378b0=['string','appCodeSource','9tIOElW','1106841SRHGmn','../commands/app/remote-source.js','configMissing','catch','name','object','../core/sdk-client.js','\x20\x20To\x20proceed:\x20','authRequired','defaultVerbose','appCode','has','rawFlags','cancelled','10558493XUJMEg','appcode','_notice','504798Ygtvlv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','format','accessKey','confirmHighRisk','192136KlcBgE','error','appcode\x20\x22','19927HTnvNE','doctor','APPCODE','app','requiresAppCode','verbose','service','../core/api-client.js','.appcode\x20to\x20','1043768GAIkjK','local-alias','Set\x20accessKey\x20in\x20','trim','newConfigFileName','ACCESS_KEY','map','currentApp','3421192LYqaXc','\x20or\x20pass\x20','filter','pretty','76PxzZaL','mergedCli','items','includes','65UQaVBL','command','20uLvRbg','env','formatOutput','production','validation','pageSize','High-risk\x20operation\x20`','defaultApp','schema'];a91_0x2965=function(){return _0x2378b0;};return a91_0x2965();}export function createPipelineEnv(_0x4964a6,_0x547e84){const _0x3eaa2d=a91_0x129f,_0x13adcd=typeof _0x547e84['app']===_0x3eaa2d(0x9e)&&_0x547e84[_0x3eaa2d(0x7d)][_0x3eaa2d(0x86)]();return{'rawFlags':_0x547e84,'appCode':_0x4964a6[_0x3eaa2d(0x6b)]||productEnv(_0x3eaa2d(0x7c))||(_0x13adcd?undefined:readAppCodeFromConfig()),'appCodeSource':_0x4964a6[_0x3eaa2d(0x9f)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x547e84),'defaultFormat':_0x4964a6[_0x3eaa2d(0x74)],'defaultPageSize':_0x4964a6[_0x3eaa2d(0x9a)],'defaultVerbose':_0x4964a6[_0x3eaa2d(0x7f)],'riskLevel':_0x4964a6['riskLevel'],'accessKey':_0x4964a6['accessKey'],'env':_0x4964a6['env'],'mergedCli':{'defaultApp':_0x4964a6[_0x3eaa2d(0x9c)],'currentApp':_0x4964a6[_0x3eaa2d(0x8a)],'appCode':_0x4964a6[_0x3eaa2d(0x6b)]}};}export function createLovrabetRunnerAdapter(_0x7cbced={}){const _0x1f3c46=a91_0x129f,_0x231e3e={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1f3c46(0x8d)](_0x412cfb=>PIPELINE_FLAG_NAMES[_0x1f3c46(0x6c)](_0x412cfb[_0x1f3c46(0xa5)]))[_0x1f3c46(0x89)](({name:_0xa94482,type:_0x43b0c5,description:_0x44b362})=>({'name':_0xa94482,'type':_0x43b0c5,'description':_0x44b362})),'formatOutput':_0x7cbced[_0x1f3c46(0x97)]??formatOutput,'getCommandLabel'(_0x2e6475){const _0x36b6b9=_0x1f3c46;return CLI_BIN_NAME+'\x20'+_0x2e6475[_0x36b6b9(0x80)]+'\x20'+_0x2e6475[_0x36b6b9(0x94)];},'riskPolicy':{'onViolation'(_0x121642){const _0x3c9cce=_0x1f3c46;console[_0x3c9cce(0x78)](_0x121642);},'createError'(_0x198122){return CliErrors['cancelled'](_0x198122);}},async 'prepare'(_0x395814,_0x3ae7bb){const _0x55e10c=_0x1f3c46,_0x461051=resolveAuthMode(_0x3ae7bb);if(_0x395814['requiresAuth']!==![]){if(!_0x3ae7bb['accessKey'])throw CliErrors[_0x55e10c(0x69)](_0x55e10c(0x85)+PRODUCT_CONFIG[_0x55e10c(0x87)]+_0x55e10c(0x8c)+productEnvName(_0x55e10c(0x88))+'.');const {setActiveAK:_0x30a4ff}=await import('../core/api-client.js');_0x30a4ff(_0x3ae7bb['accessKey']);}let _0x2035c5='';if(_0x395814[_0x55e10c(0x7e)]!==![]){_0x2035c5=_0x3ae7bb[_0x55e10c(0x6b)]??'',_0x2035c5=await resolveExplicitAppName(_0x395814,_0x3ae7bb,_0x2035c5);if(!_0x2035c5){await assertSelectedAppNameIsRuntimeAccessible(_0x395814,_0x3ae7bb);throw CliErrors[_0x55e10c(0xa3)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x55e10c(0x87)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x395814,_0x3ae7bb,_0x2035c5);}if(_0x2035c5){const {initSdkClient:_0x5a8c5f}=await import('../core/sdk-client.js');_0x5a8c5f({'appCode':_0x2035c5,'env':_0x3ae7bb['env']??'production','accessKey':_0x3ae7bb[_0x55e10c(0x75)],'authMode':_0x461051}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x3ae7bb[_0x55e10c(0x6a)]},'numbers':{'pagesize':_0x3ae7bb['defaultPageSize']}},'extras':{'appCode':_0x2035c5,'cookie':'','apiDomain':_0x3ae7bb['apiDomain'],'apiDir':'','accessKey':_0x3ae7bb[_0x55e10c(0x75)],'envName':_0x3ae7bb[_0x55e10c(0x96)],'mergedCli':_0x3ae7bb[_0x55e10c(0x90)]}};},'confirmHighRisk':_0x7cbced[_0x1f3c46(0x76)]??(async({def:_0x316a3b,env:_0xb7d244,flags:_0x2c7687,commandLabel:_0x40ee1f})=>{const _0x273290=_0x1f3c46;if(_0xb7d244['isNonInteractive']){const _0x5833ac=reconstructCommandArgv(_0x316a3b,_0x2c7687);throw CliErrors[_0x273290(0x99)](_0x273290(0x9b)+_0x40ee1f+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x273290(0x68)+_0x5833ac));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x316a3b,_0x40ee1f,_0x2c7687),'createCancelledError':_0x224768=>CliErrors[_0x273290(0x6e)](_0x224768)});}),'mapDryRunError'(_0x392783){return mapUserFacingExecuteError(_0x392783);},'mapExecuteError'(_0x439c56){return mapUserFacingExecuteError(_0x439c56);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x231e3e;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x45a27b=a91_0x129f;try{if(sdkClientInitialized){const {clearSdkClient:_0x2f0faa}=await import(_0x45a27b(0x67));_0x2f0faa();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x2b5636}=await import(_0x45a27b(0x81));_0x2b5636();}}async function resolveExplicitAppName(_0xbd429b,_0x7068bc,_0x935db8){const _0x224c41=a91_0x129f;if(_0xbd429b[_0x224c41(0x7e)]===![])return _0x935db8;const _0x1d8659=typeof _0x7068bc['rawFlags']['app']===_0x224c41(0x9e)?_0x7068bc['rawFlags'][_0x224c41(0x7d)]['trim']():'';if(!_0x1d8659)return _0x935db8;const _0x22038e=typeof _0x7068bc[_0x224c41(0x6d)][_0x224c41(0x70)]===_0x224c41(0x9e)&&_0x7068bc[_0x224c41(0x6d)]['appcode'][_0x224c41(0x86)]()||productEnv('APPCODE');if(_0x22038e||_0x7068bc[_0x224c41(0x9f)]===_0x224c41(0x84))return _0x935db8;const {getRemoteAppList:_0x9a2212}=await import(_0x224c41(0xa2)),_0x36777c=await _0x9a2212({'env':_0x7068bc[_0x224c41(0x96)]??'production','accessKey':_0x7068bc[_0x224c41(0x75)]}),_0x47f62b=findAppByName(_0x36777c[_0x224c41(0x91)],_0x1d8659);if(_0x47f62b&&!isRuntimeAccessibleApp(_0x47f62b))throw runtimeInaccessibleAppError(_0x47f62b,'\x22'+_0x1d8659+'\x22');const _0xcb64c1=_0x47f62b?.[_0x224c41(0x6b)]?.[_0x224c41(0x86)]();if(_0xcb64c1)return _0xcb64c1;throw CliErrors[_0x224c41(0x99)]('Unknown\x20app:\x20'+_0x1d8659,'Run\x20`'+CLI_BIN_NAME+_0x224c41(0x73)+_0x1d8659+_0x224c41(0x82)+PRODUCT_CONFIG[_0x224c41(0x87)]+'.');}function a91_0x129f(_0x392fd6,_0x490a95){_0x392fd6=_0x392fd6-0x66;const _0x2965e0=a91_0x2965();let _0x129f5c=_0x2965e0[_0x392fd6];return _0x129f5c;}async function assertSelectedAppNameIsRuntimeAccessible(_0x466b53,_0xbef285){const _0x1a0f69=a91_0x129f;if(_0x466b53['requiresAppCode']===![]||!_0xbef285[_0x1a0f69(0x75)])return;const _0x11b2a0=(typeof _0xbef285[_0x1a0f69(0x6d)][_0x1a0f69(0x7d)]===_0x1a0f69(0x9e)&&_0xbef285[_0x1a0f69(0x6d)][_0x1a0f69(0x7d)]['trim']()?_0xbef285[_0x1a0f69(0x6d)]['app']:_0xbef285['mergedCli']?.[_0x1a0f69(0x8a)]??_0xbef285[_0x1a0f69(0x90)]?.[_0x1a0f69(0x9c)])?.[_0x1a0f69(0x86)]();if(!_0x11b2a0)return;const {getRemoteAppList:_0x4c7588}=await import('../commands/app/remote-source.js'),_0x52f498=await _0x4c7588({'env':_0xbef285[_0x1a0f69(0x96)]??_0x1a0f69(0x98),'accessKey':_0xbef285[_0x1a0f69(0x75)]}),_0x1102ab=findAppByName(_0x52f498['items'],_0x11b2a0);if(_0x1102ab&&!isRuntimeAccessibleApp(_0x1102ab))throw runtimeInaccessibleAppError(_0x1102ab,'\x22'+_0x11b2a0+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4115c7,_0x4e5065,_0x22a298){const _0x3d4237=a91_0x129f;if(_0x4115c7[_0x3d4237(0x7e)]===![]||!_0x4e5065[_0x3d4237(0x75)])return;const {getRemoteAppList:_0x158ae2}=await import('../commands/app/remote-source.js'),_0x52b2ff=await _0x158ae2({'env':_0x4e5065[_0x3d4237(0x96)]??_0x3d4237(0x98),'accessKey':_0x4e5065[_0x3d4237(0x75)]}),_0x36a52a=findAppByCode(_0x52b2ff[_0x3d4237(0x91)],_0x22a298);if(_0x36a52a&&!isRuntimeAccessibleApp(_0x36a52a))throw runtimeInaccessibleAppError(_0x36a52a,_0x3d4237(0x79)+_0x22a298+'\x22');}export async function runCommand(_0xaea4c6,_0x53b310,_0x36f87=terminalRunnerAdapter){await runCommandWithAdapter(shouldAttachUpdateNotice(_0xaea4c6)?withUpdateNotice(_0xaea4c6):_0xaea4c6,_0x53b310,_0x36f87);}function shouldAttachUpdateNotice(_0x309433){const _0x53cf75=a91_0x129f;return!['update',_0x53cf75(0x9d),_0x53cf75(0x7b)][_0x53cf75(0x92)](_0x309433['service']);}function withUpdateNotice(_0x318b3f){return{..._0x318b3f,async 'execute'(_0x1f53e7){const _0x3d1221=a91_0x129f,_0x499e55=shouldResolveUpdateNotice(_0x1f53e7)?resolveLatestUpdateNotice()[_0x3d1221(0xa4)](()=>null):Promise['resolve'](null),_0x315d89=await _0x318b3f['execute'](_0x1f53e7);return attachUpdateNotice(_0x315d89,await _0x499e55);}};}function shouldResolveUpdateNotice(_0x12f4c8){const _0x53e2d5=a91_0x129f;return _0x12f4c8[_0x53e2d5(0x74)]===_0x53e2d5(0x8e)&&!_0x12f4c8['nonInteractive'];}function attachUpdateNotice(_0x3b5ee6,_0x1cac13){const _0x2b3ca7=a91_0x129f;if(!_0x1cac13||!_0x3b5ee6||typeof _0x3b5ee6!==_0x2b3ca7(0x66))return _0x3b5ee6;const _0x490bfe=_0x3b5ee6,_0x2a69eb=typeof _0x490bfe[_0x2b3ca7(0x71)]==='object'&&_0x490bfe[_0x2b3ca7(0x71)]!==null?_0x490bfe['_notice']:{};return{..._0x490bfe,'_notice':{..._0x2a69eb,'update':_0x1cac13}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8b8e79,_0x23897a){const _0x39f19c=a92_0x198f,_0x32475b=_0x8b8e79();while(!![]){try{const _0x1c21d8=parseInt(_0x39f19c(0xac))/0x1+parseInt(_0x39f19c(0xb4))/0x2+parseInt(_0x39f19c(0xb2))/0x3+parseInt(_0x39f19c(0xb5))/0x4*(-parseInt(_0x39f19c(0xa4))/0x5)+-parseInt(_0x39f19c(0xaf))/0x6*(parseInt(_0x39f19c(0xae))/0x7)+parseInt(_0x39f19c(0xb3))/0x8*(parseInt(_0x39f19c(0xa5))/0x9)+-parseInt(_0x39f19c(0xb1))/0xa*(parseInt(_0x39f19c(0xa9))/0xb);if(_0x1c21d8===_0x23897a)break;else _0x32475b['push'](_0x32475b['shift']());}catch(_0x440f8a){_0x32475b['push'](_0x32475b['shift']());}}}(a92_0xa88a,0x1ff88));function a92_0x198f(_0x328c65,_0x25bb0b){_0x328c65=_0x328c65-0xa4;const _0xa88a89=a92_0xa88a();let _0x198fea=_0xa88a89[_0x328c65];return _0x198fea;}import{buildSchemaPayload as a92_0x5a7d51}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 _0xa0bef3=a92_0x198f,{serviceRegistry:_0x18ae5b,findDefinition:_0x11cc23}=await import(_0xa0bef3(0xaa)),_0x51c66d=new Set(_0x18ae5b[_0xa0bef3(0xb6)](_0x1ae275=>_0x1ae275[_0xa0bef3(0xa6)])),_0x537d45=listDynamicServiceEntries()['filter'](_0x56d4f0=>!_0x51c66d[_0xa0bef3(0xa8)](_0x56d4f0['service'])),_0x596833=a92_0x5a7d51({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x18ae5b,_0x537d45),'buildAllFlags':buildAllFlags,'findDefinition':(_0xecb25,_0x39e9ac)=>_0x11cc23(_0xecb25,_0x39e9ac)??findDynamicServiceDefinition(_0xecb25,_0x39e9ac)});return normalizeSchemaPayload(_0x596833);}function a92_0xa88a(){const _0x310fe7=['required','337505eMigCE','6iruAij','services','299290NjHBkR','370056jMhRTl','48408YiBDAf','390782vAIdFF','930532jTMbEm','map','none','requiresAuth','5pUcSiM','18ClBLFk','service','commands','has','22YWjgJk','../commands/registry.js','auth','140813dggacx'];a92_0xa88a=function(){return _0x310fe7;};return a92_0xa88a();}function normalizeSchemaPayload(_0x56ab49){const _0x184ead=a92_0x198f;return{..._0x56ab49,'schemaVersion':0x2,'services':_0x56ab49[_0x184ead(0xb0)][_0x184ead(0xb6)](_0x13cc57=>({..._0x13cc57,'commands':_0x13cc57[_0x184ead(0xa7)][_0x184ead(0xb6)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3b6b25){const _0x2eb104=a92_0x198f,_0x4a3790=_0x3b6b25;return{..._0x3b6b25,'auth':_0x4a3790[_0x2eb104(0xab)]??(_0x3b6b25[_0x2eb104(0xb8)]?_0x2eb104(0xad):_0x2eb104(0xb7))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a93_0x4899(_0x3c0589,_0x344df0){_0x3c0589=_0x3c0589-0xb2;const _0x31d741=a93_0x31d7();let _0x48990b=_0x31d741[_0x3c0589];return _0x48990b;}(function(_0x3b7ae8,_0x35945a){const _0x10936d=a93_0x4899,_0x2435ae=_0x3b7ae8();while(!![]){try{const _0x52bad9=parseInt(_0x10936d(0xbd))/0x1*(parseInt(_0x10936d(0xb5))/0x2)+parseInt(_0x10936d(0xb2))/0x3*(parseInt(_0x10936d(0xbe))/0x4)+-parseInt(_0x10936d(0xba))/0x5+-parseInt(_0x10936d(0xc0))/0x6*(-parseInt(_0x10936d(0xbb))/0x7)+parseInt(_0x10936d(0xc1))/0x8*(parseInt(_0x10936d(0xb3))/0x9)+-parseInt(_0x10936d(0xbc))/0xa*(parseInt(_0x10936d(0xb4))/0xb)+-parseInt(_0x10936d(0xbf))/0xc*(parseInt(_0x10936d(0xb9))/0xd);if(_0x52bad9===_0x35945a)break;else _0x2435ae['push'](_0x2435ae['shift']());}catch(_0x5ce1f6){_0x2435ae['push'](_0x2435ae['shift']());}}}(a93_0x31d7,0x83dae));export function insertDynamicServicesAfterServiceTree(_0x489b61,_0x4a9fc5){const _0x9fd63d=a93_0x4899;if(_0x4a9fc5['length']===0x0)return[..._0x489b61];const _0x183383=_0x489b61[_0x9fd63d(0xb6)](_0x18bee1=>_0x18bee1[_0x9fd63d(0xb8)]===_0x9fd63d(0xb8));if(_0x183383<0x0)return[..._0x489b61,..._0x4a9fc5];return[..._0x489b61[_0x9fd63d(0xb7)](0x0,_0x183383+0x1),..._0x4a9fc5,..._0x489b61['slice'](_0x183383+0x1)];}function a93_0x31d7(){const _0x4f82c7=['77TOmFbR','65456cGMXCo','findIndex','slice','service','882089rmdxtJ','1395885MLCVoZ','100926jroKGG','231690jEjzwW','14ugCMBq','421060gnYxYH','120WgROuG','114DOFSuG','8VvVkGh','12drZjUx','4560966BDIBLq'];a93_0x31d7=function(){return _0x4f82c7;};return a93_0x31d7();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x233f6e,_0x9ba1ec){var _0x405865=a94_0x22a9,_0x41afde=_0x233f6e();while(!![]){try{var _0x456dcb=-parseInt(_0x405865(0x160))/0x1+-parseInt(_0x405865(0x164))/0x2+parseInt(_0x405865(0x162))/0x3*(-parseInt(_0x405865(0x163))/0x4)+parseInt(_0x405865(0x166))/0x5+-parseInt(_0x405865(0x15f))/0x6*(-parseInt(_0x405865(0x165))/0x7)+-parseInt(_0x405865(0x168))/0x8*(parseInt(_0x405865(0x169))/0x9)+parseInt(_0x405865(0x161))/0xa*(parseInt(_0x405865(0x167))/0xb);if(_0x456dcb===_0x9ba1ec)break;else _0x41afde['push'](_0x41afde['shift']());}catch(_0x271f1e){_0x41afde['push'](_0x41afde['shift']());}}}(a94_0x2154,0x72751));function a94_0x2154(){var _0x5a8b20=['7KqXPBX','4159120ntxePm','121bpuIUj','8SBDBtl','8163387ZWMtIe','5330586SEPTZq','152466LbcesT','989180vCNHep','66dGUhPS','117932qNIqiR','1262802wwKPGs'];a94_0x2154=function(){return _0x5a8b20;};return a94_0x2154();}function a94_0x22a9(_0x38250f,_0x24a942){_0x38250f=_0x38250f-0x15f;var _0x2154d4=a94_0x2154();var _0x22a971=_0x2154d4[_0x38250f];return _0x22a971;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.18-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.1.18-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-07-
|
|
1
|
+
export declare const VERSION = "2.1.18-beta.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.1.18-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "25e5132";
|
|
4
|
+
export declare const BUILD_TIME = "2026-07-29T12:17:37.409Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a95_0x5b8053=a95_0x29bd;(function(_0x2dd870,_0x4fec0d){const _0x25c488=a95_0x29bd,_0x5dfdc5=_0x2dd870();while(!![]){try{const _0x436cf2=parseInt(_0x25c488(0x1c5))/0x1*(parseInt(_0x25c488(0x1c8))/0x2)+-parseInt(_0x25c488(0x1c9))/0x3+-parseInt(_0x25c488(0x1c6))/0x4+-parseInt(_0x25c488(0x1cb))/0x5+parseInt(_0x25c488(0x1cf))/0x6+-parseInt(_0x25c488(0x1ce))/0x7*(parseInt(_0x25c488(0x1c4))/0x8)+parseInt(_0x25c488(0x1cc))/0x9*(parseInt(_0x25c488(0x1c3))/0xa);if(_0x436cf2===_0x4fec0d)break;else _0x5dfdc5['push'](_0x5dfdc5['shift']());}catch(_0x45daf9){_0x5dfdc5['push'](_0x5dfdc5['shift']());}}}(a95_0x122f,0x214bc));function a95_0x29bd(_0x27297c,_0x4740d6){_0x27297c=_0x27297c-0x1c3;const _0x122fbc=a95_0x122f();let _0x29bdd0=_0x122fbc[_0x27297c];return _0x29bdd0;}function a95_0x122f(){const _0x52c829=['528328KiQmju','1499TQHWYo','214752MUVjFS','25e5132','146kIYRjd','1899aMYYFv','2026-07-29T12:17:37.409Z','1199265TEEdov','36QXFwrC','2.1.18-beta.3','21MHOIkZ','782940tlenej','971900MVvnnO'];a95_0x122f=function(){return _0x52c829;};return a95_0x122f();}export const VERSION=a95_0x5b8053(0x1cd);export const GIT_TAG='v2.1.18-beta.3';export const GIT_COMMIT=a95_0x5b8053(0x1c7);export const BUILD_TIME=a95_0x5b8053(0x1ca);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a96_0x24c8(){const _0x4a221e=['1470978PZJiEC','\x20--help','green','1279597jNejAC','24842712OTgLGD','42KAqXNe','1335332cdcPgo','\x20to\x20view\x20available\x20commands.','939AvaIMb','column','126xMcsoa','433760FMOSPb','7894QeKHog','1240fInqol','30GOTYYl','\x20\x20Use\x20','15824NNcaUm'];a96_0x24c8=function(){return _0x4a221e;};return a96_0x24c8();}(function(_0x2f5c77,_0x3f6e4c){const _0x845a2e=a96_0x2ab3,_0x61db33=_0x2f5c77();while(!![]){try{const _0x184307=-parseInt(_0x845a2e(0x1e8))/0x1+-parseInt(_0x845a2e(0x1ee))/0x2*(parseInt(_0x845a2e(0x1ea))/0x3)+parseInt(_0x845a2e(0x1e1))/0x4*(parseInt(_0x845a2e(0x1ef))/0x5)+-parseInt(_0x845a2e(0x1e2))/0x6*(-parseInt(_0x845a2e(0x1e7))/0x7)+-parseInt(_0x845a2e(0x1ed))/0x8*(parseInt(_0x845a2e(0x1ec))/0x9)+parseInt(_0x845a2e(0x1f0))/0xa*(-parseInt(_0x845a2e(0x1e5))/0xb)+parseInt(_0x845a2e(0x1e6))/0xc;if(_0x184307===_0x3f6e4c)break;else _0x61db33['push'](_0x61db33['shift']());}catch(_0x34f0e2){_0x61db33['push'](_0x61db33['shift']());}}}(a96_0x24c8,0xcdee0));import{jsx as a96_0x1ac151,jsxs as a96_0x56979f}from'react/jsx-runtime';function a96_0x2ab3(_0x2dacc6,_0x4118d2){_0x2dacc6=_0x2dacc6-0x1e0;const _0x24c832=a96_0x24c8();let _0x2ab3ce=_0x24c832[_0x2dacc6];return _0x2ab3ce;}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 _0x80de0d=a96_0x2ab3,{exit:_0x5b3863}=useApp();return useEffect(()=>{_0x5b3863();},[_0x5b3863]),a96_0x56979f(Box,{'flexDirection':_0x80de0d(0x1eb),'marginTop':0x1,'marginBottom':0x1,'children':[a96_0x1ac151(Box,{'children':a96_0x1ac151(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a96_0x56979f(Box,{'marginTop':0x1,'children':[a96_0x1ac151(Text,{'dimColor':!![],'children':_0x80de0d(0x1e0)}),a96_0x1ac151(Text,{'bold':!![],'color':_0x80de0d(0x1e4),'children':CLI_BIN_NAME+_0x80de0d(0x1e3)}),a96_0x1ac151(Text,{'dimColor':!![],'children':_0x80de0d(0x1e9)})]})]});}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4accc7,_0x235214){const _0x430fb4=a97_0x3a4a,_0x5e0abf=_0x4accc7();while(!![]){try{const _0x53be7b=parseInt(_0x430fb4(0x74))/0x1+-parseInt(_0x430fb4(0x81))/0x2*(parseInt(_0x430fb4(0x7a))/0x3)+parseInt(_0x430fb4(0x77))/0x4+parseInt(_0x430fb4(0x72))/0x5+-parseInt(_0x430fb4(0x7f))/0x6*(-parseInt(_0x430fb4(0x79))/0x7)+-parseInt(_0x430fb4(0x7d))/0x8*(-parseInt(_0x430fb4(0x78))/0x9)+-parseInt(_0x430fb4(0x80))/0xa;if(_0x53be7b===_0x235214)break;else _0x5e0abf['push'](_0x5e0abf['shift']());}catch(_0x1fd779){_0x5e0abf['push'](_0x5e0abf['shift']());}}}(a97_0x1d47,0x87947));export function canonicalLovrabetOperation(_0x369463){const _0x484322=a97_0x3a4a;return[_0x369463[_0x484322(0x73)],..._0x369463[_0x484322(0x7b)][_0x484322(0x82)]()[_0x484322(0x7e)](/\s+/)]['filter'](Boolean)[_0x484322(0x76)]('.');}function a97_0x1d47(){const _0x2816c5=['service','1076604eyAHqk','writeEventSubject','join','1642424mXGjEP','963747Urgtdv','1617847CPiUoK','3132rehyLs','command','write','16MSlSye','split','18hxwXEw','15855150vLGpRP','926zgWyiP','trim','lovrabet.write.completed','risk','1147415ymYvXC'];a97_0x1d47=function(){return _0x2816c5;};return a97_0x1d47();}function a97_0x3a4a(_0x12043d,_0x292e1b){_0x12043d=_0x12043d-0x72;const _0x1d4731=a97_0x1d47();let _0x3a4ab9=_0x1d4731[_0x12043d];return _0x3a4ab9;}export function createLovrabetWriteMetadata(_0xe715e5,_0x10e3c7,_0x28a479,_0x1da170){const _0x4b83e1=a97_0x3a4a;if(_0x1da170||_0x28a479['ok']!==!![]||_0xe715e5['risk']!==_0x4b83e1(0x7c)&&_0xe715e5[_0x4b83e1(0x84)]!=='high-risk-write')return undefined;const _0x255103=_0xe715e5[_0x4b83e1(0x75)]?.(_0x28a479),_0x50e797={'type':_0x4b83e1(0x83),'operation':_0x10e3c7,'risk':_0xe715e5['risk'],..._0x255103?{'subject':_0x255103}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x50e797}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x308e7b,_0x42d6f0){const _0x57e8a1=a98_0x1c81,_0x4979a8=_0x308e7b();while(!![]){try{const _0x262286=parseInt(_0x57e8a1(0xad))/0x1+parseInt(_0x57e8a1(0x98))/0x2*(parseInt(_0x57e8a1(0xa4))/0x3)+-parseInt(_0x57e8a1(0x9b))/0x4+parseInt(_0x57e8a1(0xae))/0x5+parseInt(_0x57e8a1(0xa2))/0x6+parseInt(_0x57e8a1(0x9e))/0x7+parseInt(_0x57e8a1(0x96))/0x8;if(_0x262286===_0x42d6f0)break;else _0x4979a8['push'](_0x4979a8['shift']());}catch(_0x192f85){_0x4979a8['push'](_0x4979a8['shift']());}}}(a98_0x4cd0,0x725f1));function a98_0x4cd0(){const _0xfff37a=['present','execute','presentation','riskLevel','high-risk-write','risk','1339896xgXjLg','Lovrabet\x20invocation\x20aborted.','15080xPPrWI','command','write','3417216qVxreh','rawFlags','dryRun','603253eBgMyg','description','definition','stringify','304440RffSKg','args','297HGXYAK','signal','format','message','aborted','reason','yes','result','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','62929lBcUvy','1044870icAgiB','data','isNonInteractive'];a98_0x4cd0=function(){return _0xfff37a;};return a98_0x4cd0();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a98_0x1c81(_0x49480d,_0x31603d){_0x49480d=_0x49480d-0x90;const _0x4cd028=a98_0x4cd0();let _0x1c8129=_0x4cd028[_0x49480d];return _0x1c8129;}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x4fe7fb,command:_0xb15d00,risk:_0x2500f0,dryRun:_0x382241}){const _0x1e1c31=a98_0x1c81;return JSON[_0x1e1c31(0xa1)]({'ok':_0x4fe7fb['ok'],'command':_0xb15d00,'risk':_0x2500f0,..._0x382241?{'dryRun':!![]}:{},..._0x4fe7fb[_0x1e1c31(0xaf)]!==undefined?{'data':_0x4fe7fb[_0x1e1c31(0xaf)]}:{},..._0x4fe7fb['message']?{'message':_0x4fe7fb[_0x1e1c31(0xa7)]}:{}});}};export async function invokeLovrabet(_0x9e4d86,_0x408f17){return runSerialized(async()=>{const _0x58f05e=a98_0x1c81;throwIfAborted(_0x408f17[_0x58f05e(0xa5)]);const _0x335835=await resolveLovrabetInvocation(_0x9e4d86),_0x546c91=canonicalLovrabetOperation(_0x335835[_0x58f05e(0xa0)]),_0x4ecf29={},_0x39000e=buildConfigFromFlags(_0x335835['rawFlags']);await initGlobalEnvironment(_0x39000e);const _0x421da6=createPipelineEnv(_0x39000e,{..._0x335835[_0x58f05e(0x9c)],'yes':_0x335835['definition'][_0x58f05e(0x95)]===_0x58f05e(0x94)?!![]:_0x335835[_0x58f05e(0x9c)][_0x58f05e(0xaa)],'nonInteractive':!![]});_0x421da6[_0x58f05e(0xa3)]=_0x335835[_0x58f05e(0xa3)],_0x421da6[_0x58f05e(0xb0)]=!![],_0x421da6[_0x58f05e(0x93)]=_0x58f05e(0x94);const _0x3350fe=withEmbeddedLifecycle(_0x335835[_0x58f05e(0xa0)],_0x546c91,_0x408f17),_0x10d85c=createLovrabetRunnerAdapter({'formatOutput'(_0x46919a,_0x5b619f){const _0x5cd6cd=_0x58f05e;_0x4ecf29[_0x5cd6cd(0xab)]=_0x46919a,_0x4ecf29[_0x5cd6cd(0x99)]=_0x5b619f[_0x5cd6cd(0x99)],_0x4ecf29[_0x5cd6cd(0x95)]=_0x5b619f[_0x5cd6cd(0x95)],_0x4ecf29['format']=_0x5b619f[_0x5cd6cd(0xa6)],_0x4ecf29[_0x5cd6cd(0x9d)]=_0x5b619f[_0x5cd6cd(0x9d)]===!![];},async 'confirmHighRisk'(){const _0x417ed3=_0x58f05e;throw new Error(_0x417ed3(0xac));}});try{await runCommand(_0x3350fe,_0x421da6,_0x10d85c);if(!_0x4ecf29[_0x58f05e(0xab)]||!_0x4ecf29[_0x58f05e(0x99)]||!_0x4ecf29[_0x58f05e(0x95)]||!_0x4ecf29[_0x58f05e(0xa6)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x2e9055=_0x408f17[_0x58f05e(0x92)]??defaultPresentation,_0x2d968b=_0x4ecf29[_0x58f05e(0x9d)]===!![],_0x113e39={'result':_0x4ecf29[_0x58f05e(0xab)],'command':_0x4ecf29[_0x58f05e(0x99)],'operation':_0x546c91,'risk':_0x4ecf29['risk'],'format':_0x4ecf29[_0x58f05e(0xa6)],'dryRun':_0x2d968b},_0x6dac5a=createLovrabetWriteMetadata(_0x335835['definition'],_0x546c91,_0x4ecf29[_0x58f05e(0xab)],_0x2d968b);let _0x3071a5;try{_0x3071a5=await _0x2e9055[_0x58f05e(0x90)](_0x113e39);}catch(_0x5a0113){if(!_0x6dac5a||_0x2e9055===defaultPresentation)throw _0x5a0113;_0x3071a5=await defaultPresentation[_0x58f05e(0x90)](_0x113e39);}return{'operation':_0x546c91,'risk':_0x4ecf29[_0x58f05e(0x95)],'mode':_0x2d968b?'dry-run':_0x58f05e(0x91),'result':_0x4ecf29[_0x58f05e(0xab)],'output':_0x3071a5,..._0x6dac5a?{'metadata':_0x6dac5a}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x265c7e,_0x354046,_0x5cd325){return{..._0x265c7e,async 'execute'(_0x44b7c0){const _0x6339e1=a98_0x1c81;return throwIfAborted(_0x5cd325[_0x6339e1(0xa5)]),(_0x265c7e[_0x6339e1(0x95)]===_0x6339e1(0x9a)||_0x265c7e[_0x6339e1(0x95)]==='high-risk-write')&&await _0x5cd325['confirmation']['confirm']({'operation':_0x354046,'risk':_0x265c7e['risk'],'description':_0x265c7e[_0x6339e1(0x9f)],..._0x5cd325[_0x6339e1(0xa5)]?{'signal':_0x5cd325[_0x6339e1(0xa5)]}:{}}),throwIfAborted(_0x5cd325[_0x6339e1(0xa5)]),_0x265c7e[_0x6339e1(0x91)](_0x44b7c0);}};}function throwIfAborted(_0x213a11){const _0x549d5e=a98_0x1c81;if(_0x213a11?.[_0x549d5e(0xa8)])throw _0x213a11[_0x549d5e(0xa9)]instanceof Error?_0x213a11[_0x549d5e(0xa9)]:new DOMException(_0x549d5e(0x97),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x1e43ce=a99_0x5211;function a99_0x5211(_0x2488e0,_0x427ad5){_0x2488e0=_0x2488e0-0x1c6;const _0x14e83e=a99_0x14e8();let _0x521148=_0x14e83e[_0x2488e0];return _0x521148;}(function(_0x265806,_0x5c57d4){const _0x462dff=a99_0x5211,_0x5876ee=_0x265806();while(!![]){try{const _0x12ec05=-parseInt(_0x462dff(0x1c9))/0x1*(-parseInt(_0x462dff(0x1d0))/0x2)+parseInt(_0x462dff(0x1cb))/0x3+parseInt(_0x462dff(0x1cd))/0x4+parseInt(_0x462dff(0x1ce))/0x5*(parseInt(_0x462dff(0x1cf))/0x6)+parseInt(_0x462dff(0x1d1))/0x7*(parseInt(_0x462dff(0x1c7))/0x8)+-parseInt(_0x462dff(0x1c8))/0x9+-parseInt(_0x462dff(0x1c6))/0xa;if(_0x12ec05===_0x5c57d4)break;else _0x5876ee['push'](_0x5876ee['shift']());}catch(_0x657f80){_0x5876ee['push'](_0x5876ee['shift']());}}}(a99_0x14e8,0x32588));let tail=Promise[a99_0x1e43ce(0x1cc)]();function a99_0x14e8(){const _0x1e0b0f=['321654TaGTvM','98qsZDxY','1379KsJoKQ','5413500QEjtVL','856COZmny','198072lbvliW','6675bfftKa','catch','239967weLrwt','resolve','507980GoLFvg','20EmFiXA'];a99_0x14e8=function(){return _0x1e0b0f;};return a99_0x14e8();}export async function runSerialized(_0x41c863){const _0x74208a=a99_0x1e43ce,_0x1a5bd9=tail;let _0x3c0aef;tail=new Promise(_0x260600=>{_0x3c0aef=_0x260600;}),await _0x1a5bd9[_0x74208a(0x1ca)](()=>undefined);try{return await _0x41c863();}finally{_0x3c0aef();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ad7e0,_0x379763){const _0x27fb87=a100_0x3006,_0x266dbb=_0x4ad7e0();while(!![]){try{const _0x459684=-parseInt(_0x27fb87(0x17e))/0x1+-parseInt(_0x27fb87(0x183))/0x2+-parseInt(_0x27fb87(0x17c))/0x3*(-parseInt(_0x27fb87(0x181))/0x4)+parseInt(_0x27fb87(0x18c))/0x5+-parseInt(_0x27fb87(0x188))/0x6*(parseInt(_0x27fb87(0x18b))/0x7)+-parseInt(_0x27fb87(0x182))/0x8*(-parseInt(_0x27fb87(0x184))/0x9)+parseInt(_0x27fb87(0x17f))/0xa;if(_0x459684===_0x379763)break;else _0x266dbb['push'](_0x266dbb['shift']());}catch(_0x455e1d){_0x266dbb['push'](_0x266dbb['shift']());}}}(a100_0x32c0,0x74bea));import a100_0x188897 from'meow';function a100_0x32c0(){const _0x5c62b5=['9557990xyixVR','join','3813548YUTecg','16bWlABa','1845690TStJVe','421749lEQYcN','defaultCommand','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','args','582Ofxmew','flags','../commands/registry.js','9807oOQuFN','1510995KAlfTT','../framework/preparse.js','flatMap','validation','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','unknownCommand','slice','3BmDZde','assign','768179zqvtQV'];a100_0x32c0=function(){return _0x5c62b5;};return a100_0x32c0();}import{findDefinition,getServiceEntry,isKnownService}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x50c419){const _0x49e466=a100_0x3006,_0xeabda7=a100_0x188897('',{'importMeta':import.meta,'argv':_0x50c419,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x57e1c5=[..._0xeabda7['input']],_0x10e198=_0xeabda7[_0x49e466(0x189)];await correctFlags(_0x10e198);const _0x1eac27=_0x57e1c5[0x0];if(!_0x1eac27)throw CliErrors[_0x49e466(0x18f)](_0x49e466(0x186));if(!isKnownService(_0x1eac27)){const _0x28bb06=resolveDynamicServiceCommand(_0x57e1c5,_0x10e198);if(!_0x28bb06)throw CliErrors[_0x49e466(0x191)](_0x57e1c5[_0x49e466(0x180)]('\x20'));return Object[_0x49e466(0x17d)](_0x10e198,_0x28bb06['flags']),{'definition':_0x28bb06['definition'],'rawFlags':_0x10e198,'args':_0x28bb06[_0x49e466(0x187)]};}const _0x6f6d5a=getServiceEntry(_0x1eac27),_0x5b8901=_0x57e1c5[0x1]||_0x6f6d5a[_0x49e466(0x185)];if(!_0x5b8901)throw CliErrors[_0x49e466(0x18f)](_0x49e466(0x190)+_0x1eac27+'\x22.');const _0x3354da=findDefinition(_0x1eac27,_0x5b8901);if(!_0x3354da)throw CliErrors[_0x49e466(0x191)](_0x1eac27+'\x20'+_0x5b8901);return{'definition':_0x3354da,'rawFlags':_0x10e198,'args':_0x57e1c5[_0x49e466(0x17b)](0x2)};}function a100_0x3006(_0x1df71f,_0x426e4a){_0x1df71f=_0x1df71f-0x17b;const _0x32c03a=a100_0x32c0();let _0x3006dd=_0x32c03a[_0x1df71f];return _0x3006dd;}async function correctFlags(_0x20d409){const _0x3fb94f=a100_0x3006;try{const {correctFlags:_0x36549c}=await import(_0x3fb94f(0x18d)),{getAllDefinitions:_0x53c72d}=await import(_0x3fb94f(0x18a)),_0x3df4bc=_0x53c72d()[_0x3fb94f(0x18e)](_0x1d3272=>_0x1d3272[_0x3fb94f(0x189)]??[]),_0x48583d=_0x36549c(_0x20d409,_0x3df4bc);Object[_0x3fb94f(0x17d)](_0x20d409,_0x48583d[_0x3fb94f(0x189)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a102_0x4deb(){const _0x4ea16d=['stderr','5onHoKz','541492nQHfGq','2020530bXPuLQ','toString','inherit','trim','status','log','join','stdio','231806kRWzdb','90hHXAGf','stdout','pipe','4285494VfpTCe','skipNpxSkillsEnvSuffix','skills','8VHzqgG','5402257bswFgw','2669478PCrbXg','exit\x20','npx','558918erXcGJ'];a102_0x4deb=function(){return _0x4ea16d;};return a102_0x4deb();}const a102_0x167099=a102_0x5518;(function(_0x397e87,_0x192d77){const _0x4d90a6=a102_0x5518,_0x39fa8c=_0x397e87();while(!![]){try{const _0x291c61=parseInt(_0x4d90a6(0x1d9))/0x1+-parseInt(_0x4d90a6(0x1d1))/0x2+parseInt(_0x4d90a6(0x1ca))/0x3+-parseInt(_0x4d90a6(0x1d0))/0x4+-parseInt(_0x4d90a6(0x1cf))/0x5*(parseInt(_0x4d90a6(0x1dd))/0x6)+-parseInt(_0x4d90a6(0x1c9))/0x7*(-parseInt(_0x4d90a6(0x1c8))/0x8)+-parseInt(_0x4d90a6(0x1cd))/0x9*(-parseInt(_0x4d90a6(0x1da))/0xa);if(_0x291c61===_0x192d77)break;else _0x39fa8c['push'](_0x39fa8c['shift']());}catch(_0x1449b2){_0x39fa8c['push'](_0x39fa8c['shift']());}}}(a102_0x4deb,0x90a1e));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a102_0x39f83a}from'../constant/distribution.js';function a102_0x5518(_0x473c59,_0x503a9e){_0x473c59=_0x473c59-0x1c7;const _0x4deb71=a102_0x4deb();let _0x551899=_0x4deb71[_0x473c59];return _0x551899;}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a102_0x39f83a;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a102_0x167099(0x1de)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3a23da,_0x4a3193=LOVRABET_SKILL_SOURCE,_0x31a1de){const _0x9ad9c=a102_0x167099;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x128aaa=_0x31a1de?.[_0x9ad9c(0x1d8)]??_0x9ad9c(0x1d3),_0x901d25=resolveNpmBin(_0x9ad9c(0x1cc)),_0x537c3c=[_0x9ad9c(0x1c7),'add',_0x4a3193,'-g','-y'],_0x3f8d41=[_0x901d25,..._0x537c3c][_0x9ad9c(0x1d7)]('\x20');console[_0x9ad9c(0x1d6)]('*\x20'+_0x3f8d41);const _0x1024f7=spawnSync(_0x901d25,_0x537c3c,{'cwd':_0x3a23da,'stdio':_0x128aaa,'env':process.env,'shell':![]});if(_0x1024f7[_0x9ad9c(0x1d5)]===0x0)return{'ok':!![],'status':0x0};let _0x2a2492=_0x9ad9c(0x1cb)+(_0x1024f7[_0x9ad9c(0x1d5)]??'unknown');if(_0x128aaa===_0x9ad9c(0x1dc)){const _0x4a934d=_0x1024f7[_0x9ad9c(0x1ce)]?_0x1024f7[_0x9ad9c(0x1ce)][_0x9ad9c(0x1d2)]()[_0x9ad9c(0x1d4)]():'',_0xe47cff=_0x1024f7[_0x9ad9c(0x1db)]?_0x1024f7[_0x9ad9c(0x1db)][_0x9ad9c(0x1d2)]()[_0x9ad9c(0x1d4)]():'';if(_0x4a934d)_0x2a2492=_0x4a934d;else{if(_0xe47cff)_0x2a2492=_0xe47cff;}}return{'ok':![],'status':_0x1024f7['status']??null,'error':_0x2a2492};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a103_0x4aa4(_0x2e8bce,_0xa6f156){_0x2e8bce=_0x2e8bce-0x1c7;const _0x3a4440=a103_0x3a44();let _0x4aa46c=_0x3a4440[_0x2e8bce];return _0x4aa46c;}const a103_0x17e1e4=a103_0x4aa4;(function(_0x1befa9,_0x2acd69){const _0x23e27c=a103_0x4aa4,_0x1257b4=_0x1befa9();while(!![]){try{const _0x187b56=parseInt(_0x23e27c(0x1d0))/0x1*(-parseInt(_0x23e27c(0x1cf))/0x2)+parseInt(_0x23e27c(0x1c9))/0x3*(-parseInt(_0x23e27c(0x1d1))/0x4)+-parseInt(_0x23e27c(0x1ce))/0x5*(-parseInt(_0x23e27c(0x1dc))/0x6)+-parseInt(_0x23e27c(0x1c8))/0x7*(-parseInt(_0x23e27c(0x1da))/0x8)+parseInt(_0x23e27c(0x1cd))/0x9*(-parseInt(_0x23e27c(0x1d8))/0xa)+parseInt(_0x23e27c(0x1c7))/0xb+-parseInt(_0x23e27c(0x1d7))/0xc;if(_0x187b56===_0x2acd69)break;else _0x1257b4['push'](_0x1257b4['shift']());}catch(_0x3161c6){_0x1257b4['push'](_0x1257b4['shift']());}}}(a103_0x3a44,0xdc04c));function a103_0x3a44(){const _0x3134e9=['.turbo','lovrabet.skill.json','dist','.DS_Store','5109852bHTEiG','20zyjcgN','.svn','12359208kEMrGA','.next','6edEdKQ','10172503mlqKzI','7sbZivU','10173qyCUkO','coverage','build','.git','2686725PYleWG','5489565cbVzwc','559902WCSfXR','3EtwVSt','948COSHMk','.cache'];a103_0x3a44=function(){return _0x3134e9;};return a103_0x3a44();}export const METADATA_FILE=a103_0x17e1e4(0x1d4);export const SKILL_FILE='SKILL.md';export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a103_0x17e1e4(0x1d6)]);export const IGNORED_DIR_NAMES=new Set([a103_0x17e1e4(0x1cc),'.hg',a103_0x17e1e4(0x1d9),'node_modules',a103_0x17e1e4(0x1db),a103_0x17e1e4(0x1d5),a103_0x17e1e4(0x1cb),a103_0x17e1e4(0x1ca),a103_0x17e1e4(0x1d3),a103_0x17e1e4(0x1d2)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5da74f,_0x3d90fb){const _0x524e48=a104_0x2717,_0x3b3998=_0x5da74f();while(!![]){try{const _0x6fa1b2=parseInt(_0x524e48(0x1af))/0x1*(parseInt(_0x524e48(0x1b2))/0x2)+-parseInt(_0x524e48(0x1bf))/0x3*(-parseInt(_0x524e48(0x1b6))/0x4)+-parseInt(_0x524e48(0x1b0))/0x5+-parseInt(_0x524e48(0x1ad))/0x6+-parseInt(_0x524e48(0x1b4))/0x7*(-parseInt(_0x524e48(0x1b9))/0x8)+-parseInt(_0x524e48(0x1ae))/0x9+-parseInt(_0x524e48(0x1bc))/0xa;if(_0x6fa1b2===_0x3d90fb)break;else _0x3b3998['push'](_0x3b3998['shift']());}catch(_0x56266f){_0x3b3998['push'](_0x3b3998['shift']());}}}(a104_0x2b2f,0x9c38a));function a104_0x2717(_0x2537a3,_0x3cdb0a){_0x2537a3=_0x2537a3-0x1ab;const _0x2b2f9b=a104_0x2b2f();let _0x2717d4=_0x2b2f9b[_0x2537a3];return _0x2717d4;}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(_0xe0f68a,_0x5009b6){const _0x122fa5=a104_0x2717,_0x36d129=normalizeSkillRelativePath(_0x5009b6),_0xa2f8=realOrResolved(_0xe0f68a),_0x3a5f74=resolve(_0xa2f8,..._0x36d129[_0x122fa5(0x1b5)]('/'));if(!isPathInside(_0x3a5f74,_0xa2f8))throw CliErrors[_0x122fa5(0x1be)](_0x122fa5(0x1b3)+_0x5009b6);return ensureNoSymlinkInManagedPath(_0xa2f8,_0x36d129),_0x3a5f74;}export function ensureNoSymlinkInManagedPath(_0xf1677d,_0x505271){const _0x206c7f=a104_0x2717;let _0x427763=_0xf1677d;for(const _0xb856a of _0x505271[_0x206c7f(0x1b5)]('/')){_0x427763=resolve(_0x427763,_0xb856a);const _0x6de464=lstatIfPresent(_0x427763);if(_0x6de464?.[_0x206c7f(0x1bb)]())throw CliErrors[_0x206c7f(0x1be)](_0x206c7f(0x1b7)+_0x505271);}}export function isDanglingSymlink(_0x5ce413){const _0x37805f=a104_0x2717;try{return lstatSync(_0x5ce413)[_0x37805f(0x1bb)]();}catch{return![];}}export function resolveSymlinkTarget(_0x890bf9){const _0x3ba72f=readlinkSync(_0x890bf9);return isAbsolute(_0x3ba72f)?_0x3ba72f:resolve(dirname(_0x890bf9),_0x3ba72f);}export function isPathInside(_0x59f362,_0x5abba0){const _0x3dc287=a104_0x2717,_0x328e2d=_0x59f362[_0x3dc287(0x1b8)](sep)?_0x59f362:''+_0x59f362+sep,_0x5ea65b=_0x5abba0[_0x3dc287(0x1b8)](sep)?_0x5abba0:''+_0x5abba0+sep;return _0x59f362===_0x5abba0||_0x328e2d[_0x3dc287(0x1bd)](_0x5ea65b);}export function realOrResolved(_0x325993){try{return realpathSync(_0x325993);}catch{return resolve(_0x325993);}}export function lstatIfPresent(_0x5611fd){try{return lstatSync(_0x5611fd);}catch{return undefined;}}export function writeTextAtomic(_0x2be211,_0x2ecd90,_0xd8709f){const _0x103c82=a104_0x2717;writeBytesAtomic(_0x2be211,Buffer[_0x103c82(0x1b1)](_0x2ecd90,_0x103c82(0x1ab)),_0xd8709f);}export function writeBytesAtomic(_0x512ac7,_0x45d750,_0x3167a0){const _0x5230d6=a104_0x2717,_0x4ba35c=_0x512ac7+_0x5230d6(0x1ba);try{writeFileSync(_0x4ba35c,_0x45d750,{'mode':_0x3167a0}),renameSync(_0x4ba35c,_0x512ac7);}catch(_0x525bac){try{rmSync(_0x4ba35c,{'force':!![]});}catch{}throw _0x525bac;}}function a104_0x2b2f(){const _0x449c21=['52817qtJZnB','4946565RcUOza','from','46aDcffR','Unsafe\x20Skill\x20file\x20path:\x20','2475809JWYzCy','split','2324iOxgOS','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','endsWith','8KPmrlw','.tmp','isSymbolicLink','839820StFlcz','startsWith','validation','2961fWLlWO','utf8','stringify','237396CuOsyB','3502638pryDMr'];a104_0x2b2f=function(){return _0x449c21;};return a104_0x2b2f();}export function writeJsonAtomic(_0x5e6b59,_0x4a4383){const _0x2f4e5e=a104_0x2717;writeTextAtomic(_0x5e6b59,JSON[_0x2f4e5e(0x1ac)](_0x4a4383,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a105_0x4457(){const _0x2189ef=['15787790KWmCGV','698255vlnSbQ','6zwWVDS','digest','867052YjWPhO','634038WVbyNz','sha256','size','11CmRGTb','update','10eKSwpg','1547WiInGC','276020KJGmyo','4475574MPfuPY','272CDGvPk','hex'];a105_0x4457=function(){return _0x2189ef;};return a105_0x4457();}(function(_0x4ef727,_0x3399fc){const _0x530150=a105_0x57eb,_0x1c6e59=_0x4ef727();while(!![]){try{const _0xcb3659=-parseInt(_0x530150(0x1c1))/0x1+-parseInt(_0x530150(0x1bc))/0x2+parseInt(_0x530150(0x1c2))/0x3*(parseInt(_0x530150(0x1c4))/0x4)+parseInt(_0x530150(0x1ca))/0x5*(-parseInt(_0x530150(0x1c5))/0x6)+-parseInt(_0x530150(0x1cb))/0x7*(-parseInt(_0x530150(0x1be))/0x8)+-parseInt(_0x530150(0x1bd))/0x9+-parseInt(_0x530150(0x1c0))/0xa*(-parseInt(_0x530150(0x1c8))/0xb);if(_0xcb3659===_0x3399fc)break;else _0x1c6e59['push'](_0x1c6e59['shift']());}catch(_0x55784e){_0x1c6e59['push'](_0x1c6e59['shift']());}}}(a105_0x4457,0x73f2a));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a105_0x57eb(_0x750f27,_0x4f1431){_0x750f27=_0x750f27-0x1bc;const _0x4457c6=a105_0x4457();let _0x57eb35=_0x4457c6[_0x750f27];return _0x57eb35;}export function contentHash(_0x2caefe){const _0x321ea5=a105_0x57eb;return createHash(_0x321ea5(0x1c6))[_0x321ea5(0x1c9)](_0x2caefe)['digest'](_0x321ea5(0x1bf));}export function fileHash(_0x591157){return bufferSha256(fileContent(_0x591157));}export function bufferSha256(_0xb467f7){const _0x107654=a105_0x57eb;return createHash('sha256')[_0x107654(0x1c9)](_0xb467f7)[_0x107654(0x1c3)](_0x107654(0x1bf));}export function fileTreeHash(_0x146af5){const _0x8e2636=a105_0x57eb,_0x5ea1d0=createHash('sha256');for(const _0x257a0c of normalizeManifestFiles(_0x146af5)){_0x5ea1d0[_0x8e2636(0x1c9)](_0x257a0c['path']),_0x5ea1d0[_0x8e2636(0x1c9)]('\x00'),_0x5ea1d0['update'](_0x257a0c['sha256']),_0x5ea1d0['update']('\x00'),_0x5ea1d0[_0x8e2636(0x1c9)](String(_0x257a0c[_0x8e2636(0x1c7)])),_0x5ea1d0['update']('\x00');}return _0x5ea1d0['digest'](_0x8e2636(0x1bf));}
|