@lovrabet/lovrabet-cli 2.1.21 → 2.1.22-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -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/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/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/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x40d2(){const _0x1376bd=['generateCommandHelp','1MEelmb','5204066fmaUAL','8RUPjIz','\x20or\x20--appcode).','4IZGcYU','290qNJiBS','1366059LbIDIs','3876255NInxNZ','1651345UyNHtb','filter','1234222WMMpSZ','6sCDQNP','service','newConfigFileName','454586wzEdNK','generateServiceHelp','Requires\x20appcode\x20(set\x20via\x20','2172ZGDLUe','15353mWirvK'];a83_0x40d2=function(){return _0x1376bd;};return a83_0x40d2();}function a83_0x18db(_0x3066b3,_0x40c095){_0x3066b3=_0x3066b3-0x133;const _0x40d29d=a83_0x40d2();let _0x18dbb2=_0x40d29d[_0x3066b3];return _0x18dbb2;}(function(_0x5a1214,_0x114437){const _0x18648f=a83_0x18db,_0x39d4e4=_0x5a1214();while(!![]){try{const _0x107485=-parseInt(_0x18648f(0x13d))/0x1*(-parseInt(_0x18648f(0x133))/0x2)+-parseInt(_0x18648f(0x143))/0x3*(parseInt(_0x18648f(0x141))/0x4)+parseInt(_0x18648f(0x145))/0x5*(parseInt(_0x18648f(0x134))/0x6)+-parseInt(_0x18648f(0x13e))/0x7*(-parseInt(_0x18648f(0x13f))/0x8)+parseInt(_0x18648f(0x144))/0x9+-parseInt(_0x18648f(0x142))/0xa*(parseInt(_0x18648f(0x137))/0xb)+-parseInt(_0x18648f(0x13a))/0xc*(-parseInt(_0x18648f(0x13b))/0xd);if(_0x107485===_0x114437)break;else _0x39d4e4['push'](_0x39d4e4['shift']());}catch(_0x2644db){_0x39d4e4['push'](_0x39d4e4['shift']());}}}(a83_0x40d2,0xa65fb));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x41ac96=a83_0x18db;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x41ac96(0x139)+PRODUCT_CONFIG[_0x41ac96(0x136)]+_0x41ac96(0x140)});}export function generateCommandHelp(_0x38f66d){const _0x3c5990=a83_0x18db;return createGenerators()[_0x3c5990(0x13c)](_0x38f66d);}export function generateServiceHelp(_0x1525a5){const _0x2b6a26=a83_0x18db;return createGenerators()[_0x2b6a26(0x138)](_0x1525a5);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x41898b){const _0x588d9c=getServiceEntry(_0x41898b);if(_0x588d9c)return _0x588d9c;try{return getDynamicServiceEntry(_0x41898b);}catch{return undefined;}}function getAnyServiceDefinitions(_0x454628){const _0x295f4f=serviceGroups['get'](_0x454628);if(_0x295f4f)return _0x295f4f;try{return getDynamicServiceDefinitions(_0x454628);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3235ab=a83_0x18db,_0x55a496=new Set(serviceRegistry['map'](_0x40747e=>_0x40747e[_0x3235ab(0x135)]));try{return listDynamicServiceEntries()[_0x3235ab(0x146)](_0x52a6b5=>!_0x55a496['has'](_0x52a6b5[_0x3235ab(0x135)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a84_0x4bec(_0x49ff18,_0xfa5a1){_0x49ff18=_0x49ff18-0x171;var _0x4faa3f=a84_0x4faa();var _0x4bec48=_0x4faa3f[_0x49ff18];return _0x4bec48;}(function(_0x1c9932,_0x2ae291){var _0x788c12=a84_0x4bec,_0x222122=_0x1c9932();while(!![]){try{var _0xad4f5f=-parseInt(_0x788c12(0x175))/0x1*(-parseInt(_0x788c12(0x174))/0x2)+parseInt(_0x788c12(0x179))/0x3+-parseInt(_0x788c12(0x171))/0x4+parseInt(_0x788c12(0x17a))/0x5+-parseInt(_0x788c12(0x178))/0x6*(-parseInt(_0x788c12(0x173))/0x7)+-parseInt(_0x788c12(0x176))/0x8+parseInt(_0x788c12(0x172))/0x9*(-parseInt(_0x788c12(0x177))/0xa);if(_0xad4f5f===_0x2ae291)break;else _0x222122['push'](_0x222122['shift']());}catch(_0x174f38){_0x222122['push'](_0x222122['shift']());}}}(a84_0x4faa,0x40cba));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a84_0x4faa(){var _0x48ef30=['10ZaPPbd','451448AQwbNf','10hhWQrf','6KQcLti','1044621bogkPA','1302845azVZmc','886280AVmsBt','7804161SvAxdZ','2261882KILgBz','95726QPvbQy'];a84_0x4faa=function(){return _0x48ef30;};return a84_0x4faa();}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(_0xd826a,_0x45c002){const _0x46305f=a85_0xfb7d,_0x5bb462=_0xd826a();while(!![]){try{const _0x3c2223=parseInt(_0x46305f(0x71))/0x1+parseInt(_0x46305f(0x77))/0x2+-parseInt(_0x46305f(0x75))/0x3*(parseInt(_0x46305f(0x6f))/0x4)+parseInt(_0x46305f(0x78))/0x5*(parseInt(_0x46305f(0x74))/0x6)+-parseInt(_0x46305f(0x76))/0x7+-parseInt(_0x46305f(0x6d))/0x8+parseInt(_0x46305f(0x72))/0x9;if(_0x3c2223===_0x45c002)break;else _0x5bb462['push'](_0x5bb462['shift']());}catch(_0x3834d1){_0x5bb462['push'](_0x5bb462['shift']());}}}(a85_0x4de5,0x93d24));function a85_0xfb7d(_0x2becb1,_0x312fd0){_0x2becb1=_0x2becb1-0x6d;const _0x4de58c=a85_0x4de5();let _0xfb7d6e=_0x4de58c[_0x2becb1];return _0xfb7d6e;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a85_0x4de5(){const _0x5b3b1e=['7832258QovHRF','2165956YaocCJ','4732495dXmODw','pretty','url','6949792yytOCh','message','18332WtXjOY','_notice','315637xCvpvv','2355561wMhnbc','update','6HDlwrA','9ayjeHu'];a85_0x4de5=function(){return _0x5b3b1e;};return a85_0x4de5();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x29669e,_0x546843){const _0x1bfb54=a85_0xfb7d,_0x9c8eef=_0x29669e[_0x1bfb54(0x70)],{_notice:_0x5932e9,..._0xe3f5e8}=_0x29669e;void _0x5932e9,baseFormatOutput(_0xe3f5e8,_0x546843),_0x546843['format']===_0x1bfb54(0x79)&&printPrettyNotice(_0x9c8eef);}function printPrettyNotice(_0xef318f){const _0x2cf938=a85_0xfb7d;if(!_0xef318f?.['update'])return;console['error'](_0xef318f[_0x2cf938(0x73)][_0x2cf938(0x6e)]+'\x20('+_0xef318f[_0x2cf938(0x73)][_0x2cf938(0x7a)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x28ad40,_0x2d5b66){const _0x1f057c=a86_0x2e5b,_0x53732b=_0x28ad40();while(!![]){try{const _0x2a4b70=parseInt(_0x1f057c(0x153))/0x1+parseInt(_0x1f057c(0x13c))/0x2*(-parseInt(_0x1f057c(0x13f))/0x3)+parseInt(_0x1f057c(0x152))/0x4*(parseInt(_0x1f057c(0x150))/0x5)+parseInt(_0x1f057c(0x136))/0x6*(-parseInt(_0x1f057c(0x151))/0x7)+-parseInt(_0x1f057c(0x155))/0x8*(parseInt(_0x1f057c(0x140))/0x9)+-parseInt(_0x1f057c(0x139))/0xa*(parseInt(_0x1f057c(0x132))/0xb)+parseInt(_0x1f057c(0x12f))/0xc;if(_0x2a4b70===_0x2d5b66)break;else _0x53732b['push'](_0x53732b['shift']());}catch(_0x4499ca){_0x53732b['push'](_0x53732b['shift']());}}}(a86_0x524a,0x3ae55));function a86_0x524a(){const _0xc9968a=['type','dryRun','yes','corrected','toLowerCase','1030GxsqmH','7EpwOmF','1292RnGbPj','397889ZVgDyK','push','8kaELFt','boolean','get','non-interactive','has','4744908GCNRac','alias','toUpperCase','1223651aFzNPC','length','keys','nonInteractive','940080IcMYBW','entries','help','30HpbeVV','appcode','number','1130UKapga','indexOf','global','663DsAIZW','29979uNdQLN','add','set','app','name','version','original','replace','slice','string','format'];a86_0x524a=function(){return _0xc9968a;};return a86_0x524a();}export function toKebab(_0xfc5c9c){const _0x50bc97=a86_0x2e5b;return _0xfc5c9c[_0x50bc97(0x147)](/_/g,'-')[_0x50bc97(0x147)](/-([A-Z]+)/g,(_0x351522,_0x47103e)=>'-'+_0x47103e[_0x50bc97(0x14f)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x1c9c00,_0x5e15a1,_0x58059b)=>_0x5e15a1+'-'+_0x58059b)[_0x50bc97(0x14f)]();}function buildKnownFlags(_0x2b6853){const _0x3d4d9c=a86_0x2e5b,_0x186f66=new Set();for(const _0x2c9af1 of _0x2b6853){_0x186f66[_0x3d4d9c(0x141)](_0x2c9af1[_0x3d4d9c(0x144)]),_0x186f66[_0x3d4d9c(0x141)](toCamelCase(_0x2c9af1[_0x3d4d9c(0x144)]));}for(const _0x538836 of['dry-run',_0x3d4d9c(0x14c),_0x3d4d9c(0x14d),_0x3d4d9c(0x14a)]){_0x186f66[_0x3d4d9c(0x141)](_0x538836);}for(const _0xa2e216 of[_0x3d4d9c(0x138),'env',_0x3d4d9c(0x13a),_0x3d4d9c(0x143),_0x3d4d9c(0x135),_0x3d4d9c(0x158),'ci',_0x3d4d9c(0x13e),_0x3d4d9c(0x145)]){_0x186f66['add'](_0xa2e216);}return _0x186f66;}function buildFlagTypeMap(_0x2282f9){const _0x18a131=a86_0x2e5b,_0x57f1ed=new Map();for(const _0xd2470b of _0x2282f9){_0x57f1ed[_0x18a131(0x142)](_0xd2470b[_0x18a131(0x144)],_0xd2470b[_0x18a131(0x14b)]),_0x57f1ed[_0x18a131(0x142)](toCamelCase(_0xd2470b[_0x18a131(0x144)]),_0xd2470b['type']);}return _0x57f1ed;}function toCamelCase(_0x5b7af9){const _0x43f1af=a86_0x2e5b;return _0x5b7af9[_0x43f1af(0x147)](/-([a-z])/g,(_0x2ef6cb,_0x192af2)=>_0x192af2[_0x43f1af(0x131)]());}function a86_0x2e5b(_0x4253e8,_0x5a9e44){_0x4253e8=_0x4253e8-0x12f;const _0x524a86=a86_0x524a();let _0x2e5b96=_0x524a86[_0x4253e8];return _0x2e5b96;}function aliasHandler(_0x5b6c7a,_0x4a1003){const _0x16703f=a86_0x2e5b,_0x2c1f9a=[];for(const _0x7b4490 of Object[_0x16703f(0x134)](_0x5b6c7a)){if(_0x4a1003[_0x16703f(0x159)](_0x7b4490))continue;const _0x5eb25e=toKebab(_0x7b4490);_0x5eb25e!==_0x7b4490&&_0x4a1003['has'](_0x5eb25e)&&_0x2c1f9a[_0x16703f(0x154)]({'original':_0x7b4490,'corrected':_0x5eb25e,'handler':_0x16703f(0x130)});}return _0x2c1f9a;}function stickyHandler(_0x530594,_0x14e0d2,_0x4d20b0){const _0x528950=a86_0x2e5b,_0x3b844c=[];for(const [_0x22c79f,_0x2d87e6]of Object[_0x528950(0x137)](_0x530594)){if(_0x2d87e6!==!![])continue;for(let _0x327e62=_0x22c79f[_0x528950(0x133)]-0x1;_0x327e62>0x0;_0x327e62--){const _0x6be315=_0x22c79f['slice'](0x0,_0x327e62),_0x4cfbce=_0x22c79f[_0x528950(0x148)](_0x327e62),_0x234599=toKebab(_0x6be315),_0x3a0050=toCamelCase(_0x6be315),_0x406901=_0x14e0d2[_0x528950(0x159)](_0x6be315)?_0x6be315:_0x14e0d2[_0x528950(0x159)](_0x234599)?_0x234599:_0x14e0d2[_0x528950(0x159)](_0x3a0050)?_0x3a0050:null;if(!_0x406901)continue;const _0x5196a7=_0x4d20b0[_0x528950(0x157)](_0x406901)??_0x528950(0x149);let _0x41eae4;if(_0x5196a7===_0x528950(0x13b)){const _0xcc5942=Number(_0x4cfbce);if(isNaN(_0xcc5942)||_0x4cfbce==='')continue;_0x41eae4=_0xcc5942;}else{if(_0x5196a7===_0x528950(0x156))continue;else{if(_0x4cfbce==='')continue;_0x41eae4=_0x4cfbce;}}_0x3b844c[_0x528950(0x154)]({'original':_0x22c79f,'corrected':_0x406901+'='+_0x41eae4,'handler':'sticky'});break;}}return _0x3b844c;}export function correctFlags(_0x40d5fb,_0x59bdee){const _0x34194a=a86_0x2e5b,_0x1071eb=buildKnownFlags(_0x59bdee),_0x50e0dc=buildFlagTypeMap(_0x59bdee),_0x5a63ee=aliasHandler(_0x40d5fb,_0x1071eb),_0x2620b8=stickyHandler(_0x40d5fb,_0x1071eb,_0x50e0dc),_0x685c16=[..._0x5a63ee,..._0x2620b8];if(_0x685c16[_0x34194a(0x133)]===0x0)return{'flags':_0x40d5fb,'corrections':[]};const _0x5c84be={..._0x40d5fb},_0x53a11f=new Set();for(const _0x437ee6 of _0x5a63ee){_0x5c84be[_0x437ee6[_0x34194a(0x14e)]]=_0x40d5fb[_0x437ee6[_0x34194a(0x146)]],_0x53a11f['add'](_0x437ee6[_0x34194a(0x146)]);}for(const _0x2ff6af of _0x2620b8){const _0x501ac2=_0x2ff6af[_0x34194a(0x14e)][_0x34194a(0x13d)]('='),_0x19303c=_0x2ff6af['corrected'][_0x34194a(0x148)](0x0,_0x501ac2),_0x4c951e=_0x2ff6af[_0x34194a(0x14e)][_0x34194a(0x148)](_0x501ac2+0x1),_0x3f408d=_0x50e0dc[_0x34194a(0x157)](_0x19303c)??_0x34194a(0x149);_0x3f408d===_0x34194a(0x13b)?_0x5c84be[_0x19303c]=Number(_0x4c951e):_0x5c84be[_0x19303c]=_0x4c951e,_0x53a11f[_0x34194a(0x141)](_0x2ff6af[_0x34194a(0x146)]);}for(const _0x4c4460 of _0x53a11f){delete _0x5c84be[_0x4c4460];}return{'flags':_0x5c84be,'corrections':_0x685c16};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x5d94ae=a87_0x134b;(function(_0x352b59,_0x5ea92d){const _0x4bfb5f=a87_0x134b,_0x244042=_0x352b59();while(!![]){try{const _0x58e5a4=-parseInt(_0x4bfb5f(0x18d))/0x1+-parseInt(_0x4bfb5f(0x17e))/0x2+-parseInt(_0x4bfb5f(0x18a))/0x3+parseInt(_0x4bfb5f(0x198))/0x4+parseInt(_0x4bfb5f(0x195))/0x5+-parseInt(_0x4bfb5f(0x179))/0x6*(parseInt(_0x4bfb5f(0x17c))/0x7)+parseInt(_0x4bfb5f(0x181))/0x8;if(_0x58e5a4===_0x5ea92d)break;else _0x244042['push'](_0x244042['shift']());}catch(_0x2eb1c6){_0x244042['push'](_0x244042['shift']());}}}(a87_0x3bdf,0xe5db4));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a87_0x5d94ae(0x193),a87_0x5d94ae(0x17a),a87_0x5d94ae(0x194)]);function nonEmptyString(_0x2a5d08){const _0x53bc8f=a87_0x5d94ae;if(typeof _0x2a5d08!==_0x53bc8f(0x185))return undefined;const _0x22c2e0=_0x2a5d08['trim']();return _0x22c2e0||undefined;}function buildRetryHint(_0x87d1df){const _0x211072=a87_0x5d94ae,_0x5c07f9=nonEmptyString(_0x87d1df),_0x382357=_0x5c07f9?/^\d+$/[_0x211072(0x182)](_0x5c07f9)?_0x211072(0x191)+_0x5c07f9+_0x211072(0x183):_0x211072(0x188)+_0x5c07f9+'.':_0x211072(0x176);return _0x382357+_0x211072(0x196);}export function createRateLimitError(_0x42a9fe){const _0x3cebac=a87_0x5d94ae,_0x33c71c=nonEmptyString(_0x42a9fe[_0x3cebac(0x17b)])?.[_0x3cebac(0x197)](),_0x1f5ea7=Number(_0x42a9fe[_0x3cebac(0x18f)])===0x1ad||_0x33c71c!==undefined&&RATE_LIMIT_ERROR_CODES[_0x3cebac(0x17f)](_0x33c71c);if(!_0x1f5ea7)return undefined;return CliErrors[_0x3cebac(0x186)](nonEmptyString(_0x42a9fe['message'])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x42a9fe[_0x3cebac(0x180)]));}function a87_0x134b(_0x44631d,_0x25dc3e){_0x44631d=_0x44631d-0x176;const _0x3bdf6a=a87_0x3bdf();let _0x134b37=_0x3bdf6a[_0x44631d];return _0x134b37;}export function readRetryAfter(_0x23d989){const _0x1c34bc=a87_0x5d94ae;if(!_0x23d989||typeof _0x23d989!=='object')return undefined;const _0x5d6980=_0x23d989[_0x1c34bc(0x18b)];if(typeof _0x5d6980===_0x1c34bc(0x189)){const _0x3a178d=_0x5d6980[_0x1c34bc(0x190)](_0x23d989,'Retry-After')??_0x5d6980[_0x1c34bc(0x190)](_0x23d989,_0x1c34bc(0x18c));return nonEmptyString(_0x3a178d);}for(const [_0x469ebf,_0x1def01]of Object[_0x1c34bc(0x18e)](_0x23d989)){if(_0x469ebf[_0x1c34bc(0x178)]()==='retry-after')return nonEmptyString(_0x1def01)??(typeof _0x1def01===_0x1c34bc(0x17d)?String(_0x1def01):undefined);}return undefined;}export function readRetryAfterSeconds(_0x3d851b){const _0x496826=a87_0x5d94ae;if(!_0x3d851b||typeof _0x3d851b!==_0x496826(0x187)||Array[_0x496826(0x177)](_0x3d851b))return undefined;const _0x57e8b6=_0x3d851b[_0x496826(0x184)];if(typeof _0x57e8b6===_0x496826(0x17d))return Number[_0x496826(0x192)](_0x57e8b6)&&_0x57e8b6>=0x0?String(_0x57e8b6):undefined;const _0xb04be1=nonEmptyString(_0x57e8b6);return _0xb04be1&&/^\d+$/[_0x496826(0x182)](_0xb04be1)?_0xb04be1:undefined;}function a87_0x3bdf(){const _0x96bdd=['entries','status','call','Wait\x20','isInteger','EXCEED_MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED','7425535hjeZsJ','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','toUpperCase','6655404ZfSpvy','Retry\x20after\x20a\x20short\x20delay.','isArray','toLowerCase','1866GmkDhW','MAX_QPS_LIMIT','errorCode','26621rTNtCW','number','2803650AaniLT','has','retryAfter','7458672cjYiMB','test','\x20seconds\x20before\x20retrying.','retryAfterSeconds','string','rateLimited','object','Retry\x20after\x20','function','1274853vIDqxO','get','retry-after','130291NUWJiv'];a87_0x3bdf=function(){return _0x96bdd;};return a87_0x3bdf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a88_0x2e42(){const _0x546993=['command','12uACWCW','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','no-','Example:\x20','14iODbnV','Unknown\x20flag\x20--','asc','current-page','entries','380844CDesuL','pagesize','3638495boSFKV','2457425uaOBEo','12xFmPAj','name','flags','order-by','1146423kvutHk','active','\x20--help`\x20to\x20see\x20accepted\x20flags.','service','validation','29132805YAEldp','40woHgbM','data','page','orderby','18xbrPuX','16FgybxQ','10268588PYOwCx','Run\x20`','\x20data\x20filter`.','188437QgQVYi','has','add','currentpage','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','filter'];a88_0x2e42=function(){return _0x546993;};return a88_0x2e42();}const a88_0x17b6dd=a88_0x4b80;(function(_0x5b53ae,_0x16e166){const _0x39c261=a88_0x4b80,_0x475dfb=_0x5b53ae();while(!![]){try{const _0x7e75ae=-parseInt(_0x39c261(0x16f))/0x1*(parseInt(_0x39c261(0x153))/0x2)+-parseInt(_0x39c261(0x160))/0x3*(-parseInt(_0x39c261(0x15c))/0x4)+-parseInt(_0x39c261(0x15b))/0x5*(parseInt(_0x39c261(0x16a))/0x6)+parseInt(_0x39c261(0x15a))/0x7*(parseInt(_0x39c261(0x16b))/0x8)+-parseInt(_0x39c261(0x158))/0x9*(-parseInt(_0x39c261(0x166))/0xa)+-parseInt(_0x39c261(0x16c))/0xb*(parseInt(_0x39c261(0x176))/0xc)+parseInt(_0x39c261(0x165))/0xd;if(_0x7e75ae===_0x16e166)break;else _0x475dfb['push'](_0x475dfb['shift']());}catch(_0x4632fd){_0x475dfb['push'](_0x475dfb['shift']());}}}(a88_0x2e42,0xd4364));function a88_0x4b80(_0x74be00,_0x42bd20){_0x74be00=_0x74be00-0x151;const _0x2e4231=a88_0x2e42();let _0x4b8040=_0x2e4231[_0x74be00];return _0x4b8040;}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where','select',a88_0x17b6dd(0x15f),a88_0x17b6dd(0x169),a88_0x17b6dd(0x156),a88_0x17b6dd(0x172),a88_0x17b6dd(0x168),'page-size',a88_0x17b6dd(0x159)]);export function assertKnownCommandFlags(_0x2ed5c7,_0xadbe5){const _0xc25805=a88_0x17b6dd,_0x1c306d=new Set(['version']);for(const _0x450c1d of GLOBAL_FLAGS){_0x1c306d[_0xc25805(0x171)](_0x450c1d['name']),_0x1c306d[_0xc25805(0x171)](toKebab(_0x450c1d['meowKey']));}for(const _0x37167b of _0x2ed5c7[_0xc25805(0x15e)]??[]){_0x1c306d['add'](_0x37167b[_0xc25805(0x15d)]);}for(const [_0x56b986,_0x43bb5c]of Object[_0xc25805(0x157)](_0xadbe5)){const _0x5e1a18=toKebab(_0x56b986);if(_0x1c306d[_0xc25805(0x170)](_0x5e1a18))continue;if(_0x43bb5c===![]&&_0x1c306d['has'](_0xc25805(0x151)+_0x5e1a18))continue;if(_0x2ed5c7[_0xc25805(0x163)]===_0xc25805(0x167)&&_0x2ed5c7['command']===_0xc25805(0x174)&&FILTER_BODY_FIELDS['has'](_0x5e1a18))throw CliErrors['validation']('--'+_0x5e1a18+_0xc25805(0x173)+CLI_BIN_NAME+_0xc25805(0x16e),_0xc25805(0x178)+(_0xc25805(0x152)+CLI_BIN_NAME+_0xc25805(0x177))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':_0xc25805(0x161)}},'orderBy':[{'id':_0xc25805(0x155)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0xc25805(0x164)](_0xc25805(0x154)+_0x5e1a18+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x2ed5c7[_0xc25805(0x163)]+'\x20'+_0x2ed5c7['command']+'`.',_0xc25805(0x16d)+CLI_BIN_NAME+'\x20'+_0x2ed5c7['service']+'\x20'+_0x2ed5c7[_0xc25805(0x175)]+_0xc25805(0x162));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4786f7,_0x5b31ab){var _0x5dece7=a89_0x9884,_0x5c40a2=_0x4786f7();while(!![]){try{var _0xf63ea4=-parseInt(_0x5dece7(0x17b))/0x1+parseInt(_0x5dece7(0x178))/0x2*(parseInt(_0x5dece7(0x177))/0x3)+parseInt(_0x5dece7(0x17d))/0x4*(-parseInt(_0x5dece7(0x17f))/0x5)+parseInt(_0x5dece7(0x17c))/0x6+parseInt(_0x5dece7(0x176))/0x7+-parseInt(_0x5dece7(0x179))/0x8+-parseInt(_0x5dece7(0x17a))/0x9*(-parseInt(_0x5dece7(0x17e))/0xa);if(_0xf63ea4===_0x5b31ab)break;else _0x5c40a2['push'](_0x5c40a2['shift']());}catch(_0x163b9d){_0x5c40a2['push'](_0x5c40a2['shift']());}}}(a89_0x5be2,0x322d8));function a89_0x9884(_0x54153f,_0x19e33a){_0x54153f=_0x54153f-0x176;var _0x5be269=a89_0x5be2();var _0x988426=_0x5be269[_0x54153f];return _0x988426;}function a89_0x5be2(){var _0x2a8792=['651627GsDAdB','208142GcwPws','1006296gnlpAT','7252MJAAFF','30bIdqmi','1130OyxSqO','1089641ZiImqX','58449wZQggC','34gAHTLW','387128QNrQOp'];a89_0x5be2=function(){return _0x2a8792;};return a89_0x5be2();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a90_0x23d4(_0x9ec239,_0x18a866){_0x9ec239=_0x9ec239-0x16b;const _0x4c7d5c=a90_0x4c7d();let _0x23d493=_0x4c7d5c[_0x9ec239];return _0x23d493;}function a90_0x4c7d(){const _0x20018d=['push','code','3519488eRHwmE','name=','entries','length','2786098eZrNoh','params','\x20\x20\x20','join','48885GxPrWH','8942904BgrxFn','kind=','id=','⚠\x20\x20High-risk\x20operation:\x20','18KsXTvT','service','5rOKolA','channel','stringify','\x20\x20\x20Affected:\x20','code=','\x20\x20\x20Continue?\x20[y/N]\x20','498003LENHjV','commandLabel','scheduled-at','cron','channel=','schedule-id','title','schedule-id=','1564578JTIhwl','name','affectedRecords','kind','cron=','description','15004ZFKHCk'];a90_0x4c7d=function(){return _0x20018d;};return a90_0x4c7d();}(function(_0x2f4fb2,_0x2af783){const _0x4c29f5=a90_0x23d4,_0x18d77e=_0x2f4fb2();while(!![]){try{const _0x2c5636=parseInt(_0x4c29f5(0x183))/0x1+-parseInt(_0x4c29f5(0x17b))/0x2*(parseInt(_0x4c29f5(0x176))/0x3)+parseInt(_0x4c29f5(0x16b))/0x4*(parseInt(_0x4c29f5(0x17d))/0x5)+-parseInt(_0x4c29f5(0x18b))/0x6+-parseInt(_0x4c29f5(0x172))/0x7+-parseInt(_0x4c29f5(0x16e))/0x8+parseInt(_0x4c29f5(0x177))/0x9;if(_0x2c5636===_0x2af783)break;else _0x18d77e['push'](_0x18d77e['shift']());}catch(_0xbf230){_0x18d77e['push'](_0x18d77e['shift']());}}}(a90_0x4c7d,0x3d0ba));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x23e6e8,_0x5b3126,_0x4f0010){const _0x362b22=a90_0x23d4,_0x244f6c=buildConfirmationContext(_0x23e6e8,_0x5b3126,_0x4f0010),_0x115ff2=[_0x362b22(0x17a)+_0x244f6c[_0x362b22(0x184)]];return _0x244f6c[_0x362b22(0x190)]&&_0x115ff2[_0x362b22(0x16c)](_0x362b22(0x174)+_0x244f6c[_0x362b22(0x190)]),_0x244f6c[_0x362b22(0x18d)]&&_0x115ff2['push'](_0x362b22(0x180)+_0x244f6c[_0x362b22(0x18d)]),_0x115ff2[_0x362b22(0x16c)](_0x362b22(0x182)),_0x115ff2;}export function reconstructCommandArgv(_0x2ff57f,_0x4f4371){const _0x10727f=a90_0x23d4,_0xdb4859=[CLI_BIN_NAME,_0x2ff57f[_0x10727f(0x17c)],_0x2ff57f['command']];for(const [_0x4d8619,_0x20e306]of Object[_0x10727f(0x170)](_0x4f4371)){if(_0x20e306===!![])_0xdb4859[_0x10727f(0x16c)]('--'+_0x4d8619);else _0x20e306!==![]&&_0x20e306!==undefined&&_0x20e306!==''&&_0xdb4859[_0x10727f(0x16c)]('--'+_0x4d8619+'\x20'+JSON[_0x10727f(0x17f)](_0x20e306));}return _0xdb4859['push']('--yes'),_0xdb4859['join']('\x20');}function buildConfirmationContext(_0x56ac6f,_0x457e50,_0x2d6e3f){const _0x1e6ef3=a90_0x23d4,_0xe503ac=extractAffectedRecords(_0x2d6e3f);return{'commandLabel':_0x457e50,'description':_0x56ac6f[_0x1e6ef3(0x190)],'affectedRecords':_0xe503ac};}function extractAffectedRecords(_0x374a56){const _0x179f45=a90_0x23d4,_0x213485=[];if(_0x374a56[_0x179f45(0x16d)])_0x213485[_0x179f45(0x16c)](_0x179f45(0x181)+_0x374a56['code']);if(_0x374a56['id'])_0x213485[_0x179f45(0x16c)](_0x179f45(0x179)+_0x374a56['id']);if(_0x374a56[_0x179f45(0x188)])_0x213485[_0x179f45(0x16c)](_0x179f45(0x18a)+_0x374a56[_0x179f45(0x188)]);if(_0x374a56[_0x179f45(0x18c)])_0x213485[_0x179f45(0x16c)](_0x179f45(0x16f)+_0x374a56[_0x179f45(0x18c)]);if(_0x374a56['title'])_0x213485['push']('title='+_0x374a56[_0x179f45(0x189)]);if(_0x374a56[_0x179f45(0x18e)])_0x213485['push'](_0x179f45(0x178)+_0x374a56[_0x179f45(0x18e)]);if(_0x374a56[_0x179f45(0x186)])_0x213485[_0x179f45(0x16c)](_0x179f45(0x18f)+_0x374a56[_0x179f45(0x186)]);if(_0x374a56[_0x179f45(0x185)])_0x213485[_0x179f45(0x16c)]('scheduled-at='+_0x374a56[_0x179f45(0x185)]);if(_0x374a56[_0x179f45(0x17e)])_0x213485[_0x179f45(0x16c)](_0x179f45(0x187)+_0x374a56[_0x179f45(0x17e)]);if(_0x374a56[_0x179f45(0x173)])_0x213485['push']('params='+_0x374a56[_0x179f45(0x173)]);return _0x213485[_0x179f45(0x171)]>0x0?_0x213485[_0x179f45(0x175)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55b123,_0x456649){const _0x4cacad=a91_0x4cff,_0x351fb5=_0x55b123();while(!![]){try{const _0x1ce1fd=parseInt(_0x4cacad(0x149))/0x1+-parseInt(_0x4cacad(0x14f))/0x2+-parseInt(_0x4cacad(0x145))/0x3+parseInt(_0x4cacad(0x14b))/0x4*(parseInt(_0x4cacad(0x147))/0x5)+parseInt(_0x4cacad(0x14a))/0x6*(-parseInt(_0x4cacad(0x146))/0x7)+parseInt(_0x4cacad(0x14e))/0x8*(-parseInt(_0x4cacad(0x14d))/0x9)+-parseInt(_0x4cacad(0x140))/0xa*(-parseInt(_0x4cacad(0x14c))/0xb);if(_0x1ce1fd===_0x456649)break;else _0x351fb5['push'](_0x351fb5['shift']());}catch(_0x488c32){_0x351fb5['push'](_0x351fb5['shift']());}}}(a91_0x2a8d,0xbf578));function a91_0x4cff(_0x57f456,_0x17f474){_0x57f456=_0x57f456-0x13e;const _0x2a8d29=a91_0x2a8d();let _0x4cff7a=_0x2a8d29[_0x57f456];return _0x4cff7a;}import{LovrabetError}from'@lovrabet/sdk';function a91_0x2a8d(){const _0x3b2cfd=['34738yAVvPU','9QZTMBC','10696496IeUPed','3036374CsSVhD','response','code','10270weNZmU','description','string','validation','headers','681831KruEJB','5579yMwTnG','60oriFoa','trim','1552986elcTca','7116nBBxax','5084dHytAv'];a91_0x2a8d=function(){return _0x3b2cfd;};return a91_0x2a8d();}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x3e8bef){const _0x2753c1=a91_0x4cff;if(_0x3e8bef instanceof LovrabetError){const _0x546967=userFacingLovrabetMessage(_0x3e8bef),_0x2fdbf9=_0x3e8bef,_0x3da189=createRateLimitError({'status':_0x2fdbf9['status'],'errorCode':_0x2fdbf9[_0x2753c1(0x13f)],'message':_0x546967,'retryAfter':readRetryAfter(_0x2fdbf9[_0x2753c1(0x13e)]?.[_0x2753c1(0x144)])??readRetryAfterSeconds(_0x2fdbf9['response'])});return _0x3da189??CliErrors[_0x2753c1(0x143)](_0x546967);}return _0x3e8bef;}function userFacingLovrabetMessage(_0x19c320){const _0x540a37=a91_0x4cff,_0x5e07db=_0x19c320[_0x540a37(0x141)];if(_0x5e07db!==undefined&&_0x5e07db!==null){if(typeof _0x5e07db===_0x540a37(0x142)&&_0x5e07db['trim']())return _0x5e07db[_0x540a37(0x148)]();try{return JSON['stringify'](_0x5e07db);}catch{}}return _0x19c320['message'];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x43a065,_0x4693b7){const _0x1a0603=a92_0x561e,_0x329db1=_0x43a065();while(!![]){try{const _0x2b6d8a=-parseInt(_0x1a0603(0x159))/0x1*(-parseInt(_0x1a0603(0x150))/0x2)+-parseInt(_0x1a0603(0x15a))/0x3+-parseInt(_0x1a0603(0x15d))/0x4+parseInt(_0x1a0603(0x18a))/0x5+parseInt(_0x1a0603(0x182))/0x6*(parseInt(_0x1a0603(0x14c))/0x7)+-parseInt(_0x1a0603(0x189))/0x8+parseInt(_0x1a0603(0x168))/0x9*(parseInt(_0x1a0603(0x188))/0xa);if(_0x2b6d8a===_0x4693b7)break;else _0x329db1['push'](_0x329db1['shift']());}catch(_0x1fb88f){_0x329db1['push'](_0x329db1['shift']());}}}(a92_0x1552,0x83177));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{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x35cb02){const _0x2764dd=a92_0x561e;return void _0x35cb02,AUTH_MODE[_0x2764dd(0x177)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2bffc1,_0x5dc3b3){const _0x39529f=a92_0x561e,_0x4a53b9=typeof _0x5dc3b3[_0x39529f(0x16e)]==='string'&&_0x5dc3b3[_0x39529f(0x16e)][_0x39529f(0x165)]();return{'rawFlags':_0x5dc3b3,'appCode':_0x2bffc1[_0x39529f(0x15c)]||productEnv(_0x39529f(0x152))||(_0x4a53b9?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2bffc1[_0x39529f(0x151)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x5dc3b3),'defaultFormat':_0x2bffc1[_0x39529f(0x171)],'defaultPageSize':_0x2bffc1[_0x39529f(0x156)],'defaultVerbose':_0x2bffc1[_0x39529f(0x181)],'riskLevel':_0x2bffc1[_0x39529f(0x172)],'accessKey':_0x2bffc1[_0x39529f(0x16a)],'env':_0x2bffc1[_0x39529f(0x176)],'mergedCli':{'defaultApp':_0x2bffc1[_0x39529f(0x163)],'currentApp':_0x2bffc1[_0x39529f(0x16f)],'appCode':_0x2bffc1[_0x39529f(0x15c)]}};}export function createLovrabetRunnerAdapter(_0x278789={}){const _0x4ebec2=a92_0x561e,_0x2e3aa4={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4ebec2(0x18b)](_0x1ac239=>PIPELINE_FLAG_NAMES['has'](_0x1ac239[_0x4ebec2(0x170)]))[_0x4ebec2(0x17c)](({name:_0x279e76,type:_0x3bd618,description:_0x4105c5})=>({'name':_0x279e76,'type':_0x3bd618,'description':_0x4105c5})),'formatOutput':_0x278789[_0x4ebec2(0x15e)]??formatOutput,'getCommandLabel'(_0x19e584){const _0x9a808e=_0x4ebec2;return CLI_BIN_NAME+'\x20'+_0x19e584[_0x9a808e(0x16c)]+'\x20'+_0x19e584['command'];},'riskPolicy':{'onViolation'(_0x3959e3){console['error'](_0x3959e3);},'createError'(_0x4b8aef){return CliErrors['cancelled'](_0x4b8aef);}},async 'prepare'(_0x46af50,_0x2c3616){const _0xdd35dd=_0x4ebec2,_0x18fc60=resolveAuthMode(_0x2c3616);if(_0x46af50[_0xdd35dd(0x185)]!==![]){if(!_0x2c3616['accessKey'])throw CliErrors['authRequired'](_0xdd35dd(0x173)+PRODUCT_CONFIG[_0xdd35dd(0x158)]+_0xdd35dd(0x167)+productEnvName(_0xdd35dd(0x18e))+'.');const {setActiveAK:_0x3c10df}=await import('../core/api-client.js');_0x3c10df(_0x2c3616['accessKey']);}let _0x5c7490='';if(_0x46af50[_0xdd35dd(0x153)]!==![]){_0x5c7490=_0x2c3616[_0xdd35dd(0x15c)]??'',_0x5c7490=await resolveExplicitAppName(_0x46af50,_0x2c3616,_0x5c7490);if(!_0x5c7490){await assertSelectedAppNameIsRuntimeAccessible(_0x46af50,_0x2c3616);throw CliErrors[_0xdd35dd(0x17d)](_0xdd35dd(0x18d)+PRODUCT_CONFIG[_0xdd35dd(0x158)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x46af50,_0x2c3616,_0x5c7490);}if(_0x5c7490){const {initSdkClient:_0x126070}=await import('../core/sdk-client.js');_0x126070({'appCode':_0x5c7490,'env':_0x2c3616[_0xdd35dd(0x176)]??_0xdd35dd(0x178),'accessKey':_0x2c3616[_0xdd35dd(0x16a)],'authMode':_0x18fc60}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2c3616[_0xdd35dd(0x166)]},'numbers':{'pagesize':_0x2c3616[_0xdd35dd(0x162)]}},'extras':{'appCode':_0x5c7490,'cookie':'','apiDomain':_0x2c3616[_0xdd35dd(0x184)],'apiDir':'','accessKey':_0x2c3616[_0xdd35dd(0x16a)],'envName':_0x2c3616[_0xdd35dd(0x176)],'mergedCli':_0x2c3616[_0xdd35dd(0x180)]}};},'confirmHighRisk':_0x278789['confirmHighRisk']??(async({def:_0x183251,env:_0x58e355,flags:_0x55d454,commandLabel:_0x5a7ef4})=>{const _0x83edbd=_0x4ebec2;if(_0x58e355[_0x83edbd(0x14e)]){const _0x1b459b=reconstructCommandArgv(_0x183251,_0x55d454);throw CliErrors[_0x83edbd(0x169)](_0x83edbd(0x186)+_0x5a7ef4+_0x83edbd(0x157)+(_0x83edbd(0x164)+_0x1b459b));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x183251,_0x5a7ef4,_0x55d454),'createCancelledError':_0xc8e2a3=>CliErrors['cancelled'](_0xc8e2a3)});}),'mapDryRunError'(_0x561971){return mapUserFacingExecuteError(_0x561971);},'mapExecuteError'(_0x260f4e){return mapUserFacingExecuteError(_0x260f4e);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x2e3aa4;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2f131f=a92_0x561e;try{if(sdkClientInitialized){const {clearSdkClient:_0x28f3f5}=await import('../core/sdk-client.js');_0x28f3f5();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x176734}=await import(_0x2f131f(0x179));_0x176734();}}async function resolveExplicitAppName(_0x468e8d,_0x2130e6,_0x1483ab){const _0x330c15=a92_0x561e;if(_0x468e8d[_0x330c15(0x153)]===![])return _0x1483ab;const _0x54bd78=typeof _0x2130e6[_0x330c15(0x15f)][_0x330c15(0x16e)]==='string'?_0x2130e6[_0x330c15(0x15f)][_0x330c15(0x16e)][_0x330c15(0x165)]():'';if(!_0x54bd78)return _0x1483ab;const _0x476d9c=typeof _0x2130e6[_0x330c15(0x15f)][_0x330c15(0x160)]==='string'&&_0x2130e6[_0x330c15(0x15f)]['appcode'][_0x330c15(0x165)]()||productEnv('APPCODE');if(_0x476d9c||_0x2130e6['appCodeSource']===_0x330c15(0x155))return _0x1483ab;const {getRemoteAppList:_0x2b3ed0}=await import(_0x330c15(0x17f)),_0x2c1aec=await _0x2b3ed0({'env':_0x2130e6[_0x330c15(0x176)]??_0x330c15(0x178),'accessKey':_0x2130e6[_0x330c15(0x16a)]}),_0x6397a5=findAppByName(_0x2c1aec['items'],_0x54bd78);if(_0x6397a5&&!isRuntimeAccessibleApp(_0x6397a5))throw runtimeInaccessibleAppError(_0x6397a5,'\x22'+_0x54bd78+'\x22');const _0x85b56b=_0x6397a5?.['appCode']?.[_0x330c15(0x165)]();if(_0x85b56b)return _0x85b56b;throw CliErrors[_0x330c15(0x169)](_0x330c15(0x17b)+_0x54bd78,_0x330c15(0x16b)+CLI_BIN_NAME+_0x330c15(0x183)+_0x54bd78+_0x330c15(0x18c)+PRODUCT_CONFIG[_0x330c15(0x158)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x4c6445,_0x20541f){const _0x522218=a92_0x561e;if(_0x4c6445[_0x522218(0x153)]===![]||!_0x20541f[_0x522218(0x16a)])return;const _0x74d51a=(typeof _0x20541f[_0x522218(0x15f)][_0x522218(0x16e)]===_0x522218(0x14f)&&_0x20541f[_0x522218(0x15f)][_0x522218(0x16e)][_0x522218(0x165)]()?_0x20541f[_0x522218(0x15f)][_0x522218(0x16e)]:_0x20541f[_0x522218(0x180)]?.[_0x522218(0x16f)]??_0x20541f[_0x522218(0x180)]?.[_0x522218(0x163)])?.[_0x522218(0x165)]();if(!_0x74d51a)return;const {getRemoteAppList:_0x47b963}=await import('../commands/app/remote-source.js'),_0x5d8311=await _0x47b963({'env':_0x20541f[_0x522218(0x176)]??'production','accessKey':_0x20541f[_0x522218(0x16a)]}),_0x22e785=findAppByName(_0x5d8311[_0x522218(0x175)],_0x74d51a);if(_0x22e785&&!isRuntimeAccessibleApp(_0x22e785))throw runtimeInaccessibleAppError(_0x22e785,'\x22'+_0x74d51a+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x36c213,_0x262e9a,_0x3d8014){const _0x52ac1d=a92_0x561e;if(_0x36c213[_0x52ac1d(0x153)]===![]||!_0x262e9a[_0x52ac1d(0x16a)])return;const {getRemoteAppList:_0x317d71}=await import('../commands/app/remote-source.js'),_0x1f0cfa=await _0x317d71({'env':_0x262e9a['env']??_0x52ac1d(0x178),'accessKey':_0x262e9a[_0x52ac1d(0x16a)]}),_0x512899=findAppByCode(_0x1f0cfa[_0x52ac1d(0x175)],_0x3d8014);if(_0x512899&&!isRuntimeAccessibleApp(_0x512899))throw runtimeInaccessibleAppError(_0x512899,_0x52ac1d(0x16d)+_0x3d8014+'\x22');}function a92_0x561e(_0x53189f,_0x4bf555){_0x53189f=_0x53189f-0x14c;const _0x155235=a92_0x1552();let _0x561e0e=_0x155235[_0x53189f];return _0x561e0e;}function a92_0x1552(){const _0x4a9258=['\x20or\x20pass\x20','2693583pryoUU','validation','accessKey','Run\x20`','service','appcode\x20\x22','app','currentApp','name','format','riskLevel','Set\x20accessKey\x20in\x20','execute','items','env','ClientAk','production','../core/api-client.js','_notice','Unknown\x20app:\x20','map','configMissing','nonInteractive','../commands/app/remote-source.js','mergedCli','verbose','114ssMlvI','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','apiDomain','requiresAuth','High-risk\x20operation\x20`','schema','20TindzS','7568848nNuoGG','1125455vMesMN','filter','.appcode\x20to\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','ACCESS_KEY','object','catch','290395fADfwk','update','isNonInteractive','string','17028scWBid','appCodeSource','APPCODE','requiresAppCode','pretty','local-alias','pageSize','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','newConfigFileName','36DOqBtA','474339NshexB','resolve','appCode','1108856eqohQC','formatOutput','rawFlags','appcode','doctor','defaultPageSize','defaultApp','\x20\x20To\x20proceed:\x20','trim','defaultVerbose'];a92_0x1552=function(){return _0x4a9258;};return a92_0x1552();}export async function runCommand(_0x3c06e6,_0x934204,_0x5b8e10=terminalRunnerAdapter){assertKnownCommandFlags(_0x3c06e6,_0x934204['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3c06e6)?withUpdateNotice(_0x3c06e6):_0x3c06e6,_0x934204,_0x5b8e10);}function shouldAttachUpdateNotice(_0x2ceb8f){const _0x13c8b6=a92_0x561e;return![_0x13c8b6(0x14d),_0x13c8b6(0x187),_0x13c8b6(0x161)]['includes'](_0x2ceb8f['service']);}function withUpdateNotice(_0x322ee9){return{..._0x322ee9,async 'execute'(_0x57b0ab){const _0x3e9794=a92_0x561e,_0x5b4dbf=shouldResolveUpdateNotice(_0x57b0ab)?resolveLatestUpdateNotice()[_0x3e9794(0x190)](()=>null):Promise[_0x3e9794(0x15b)](null),_0x2cbb37=await _0x322ee9[_0x3e9794(0x174)](_0x57b0ab);return attachUpdateNotice(_0x2cbb37,await _0x5b4dbf);}};}function shouldResolveUpdateNotice(_0x48b9da){const _0x57ce9a=a92_0x561e;return _0x48b9da[_0x57ce9a(0x171)]===_0x57ce9a(0x154)&&!_0x48b9da[_0x57ce9a(0x17e)];}function attachUpdateNotice(_0x13e07d,_0x555e7a){const _0x6003d7=a92_0x561e;if(!_0x555e7a||!_0x13e07d||typeof _0x13e07d!==_0x6003d7(0x18f))return _0x13e07d;const _0x66c980=_0x13e07d,_0x3be42c=typeof _0x66c980[_0x6003d7(0x17a)]==='object'&&_0x66c980[_0x6003d7(0x17a)]!==null?_0x66c980[_0x6003d7(0x17a)]:{};return{..._0x66c980,'_notice':{..._0x3be42c,'update':_0x555e7a}};}
|
|
1
|
+
(function(_0x32cb40,_0x11bbdc){const _0x265c51=a92_0x524a,_0xbc7ccc=_0x32cb40();while(!![]){try{const _0x3f8ea9=parseInt(_0x265c51(0x148))/0x1*(parseInt(_0x265c51(0x14a))/0x2)+-parseInt(_0x265c51(0x15a))/0x3+-parseInt(_0x265c51(0x169))/0x4*(parseInt(_0x265c51(0x155))/0x5)+-parseInt(_0x265c51(0x136))/0x6+parseInt(_0x265c51(0x168))/0x7*(-parseInt(_0x265c51(0x171))/0x8)+parseInt(_0x265c51(0x13a))/0x9*(-parseInt(_0x265c51(0x141))/0xa)+-parseInt(_0x265c51(0x16d))/0xb*(-parseInt(_0x265c51(0x153))/0xc);if(_0x3f8ea9===_0x11bbdc)break;else _0xbc7ccc['push'](_0xbc7ccc['shift']());}catch(_0x4fc916){_0xbc7ccc['push'](_0xbc7ccc['shift']());}}}(a92_0x4a64,0xc80a4));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a92_0x524a(_0xe16d4d,_0x1f37b3){_0xe16d4d=_0xe16d4d-0x136;const _0x4a640b=a92_0x4a64();let _0x524aa0=_0x4a640b[_0xe16d4d];return _0x524aa0;}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{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x239d62){const _0x417808=a92_0x524a;return void _0x239d62,AUTH_MODE[_0x417808(0x14d)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x33c411,_0xb42f79){const _0x3253be=a92_0x524a,_0x161cb7=typeof _0xb42f79[_0x3253be(0x14b)]===_0x3253be(0x162)&&_0xb42f79['app'][_0x3253be(0x163)]();return{'rawFlags':_0xb42f79,'appCode':_0x33c411['appCode']||productEnv(_0x3253be(0x151))||(_0x161cb7?undefined:readAppCodeFromConfig()),'appCodeSource':_0x33c411[_0x3253be(0x158)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xb42f79),'defaultFormat':_0x33c411[_0x3253be(0x174)],'defaultPageSize':_0x33c411[_0x3253be(0x16a)],'defaultVerbose':_0x33c411[_0x3253be(0x165)],'riskLevel':_0x33c411[_0x3253be(0x154)],'accessKey':_0x33c411[_0x3253be(0x13c)],'env':_0x33c411['env'],'mergedCli':{'defaultApp':_0x33c411[_0x3253be(0x15b)],'currentApp':_0x33c411[_0x3253be(0x15e)],'appCode':_0x33c411[_0x3253be(0x14f)]}};}export function createLovrabetRunnerAdapter(_0x4597be={}){const _0x1ed83d=a92_0x524a,_0x4a6244={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1ed83d(0x139)](_0x2e8e10=>PIPELINE_FLAG_NAMES['has'](_0x2e8e10[_0x1ed83d(0x15f)]))['map'](({name:_0x5a13b1,type:_0x27d0cd,description:_0xf56c6c})=>({'name':_0x5a13b1,'type':_0x27d0cd,'description':_0xf56c6c})),'formatOutput':_0x4597be[_0x1ed83d(0x137)]??formatOutput,'getCommandLabel'(_0x247104){const _0x16f7aa=_0x1ed83d;return CLI_BIN_NAME+'\x20'+_0x247104[_0x16f7aa(0x146)]+'\x20'+_0x247104[_0x16f7aa(0x159)];},'riskPolicy':{'onViolation'(_0x4fcccb){const _0x49033d=_0x1ed83d;console[_0x49033d(0x13e)](_0x4fcccb);},'createError'(_0x643490){const _0x489c57=_0x1ed83d;return CliErrors[_0x489c57(0x164)](_0x643490);}},async 'prepare'(_0xbd2852,_0x5e5cc3){const _0x3075b7=_0x1ed83d,_0x487010=resolveAuthMode(_0x5e5cc3);if(_0xbd2852[_0x3075b7(0x160)]!==![]){if(!_0x5e5cc3[_0x3075b7(0x13c)])throw CliErrors[_0x3075b7(0x145)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x3075b7(0x161))+'.');const {setActiveAK:_0x43c448}=await import(_0x3075b7(0x176));_0x43c448(_0x5e5cc3[_0x3075b7(0x13c)]);}let _0x4cae14='';if(_0xbd2852[_0x3075b7(0x13d)]!==![]){_0x4cae14=_0x5e5cc3[_0x3075b7(0x14f)]??'',_0x4cae14=await resolveExplicitAppName(_0xbd2852,_0x5e5cc3,_0x4cae14);if(!_0x4cae14){await assertSelectedAppNameIsRuntimeAccessible(_0xbd2852,_0x5e5cc3);throw CliErrors[_0x3075b7(0x142)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xbd2852,_0x5e5cc3,_0x4cae14);}if(_0x4cae14){const {initSdkClient:_0x37f96c}=await import(_0x3075b7(0x16f));_0x37f96c({'appCode':_0x4cae14,'env':_0x5e5cc3['env']??'production','accessKey':_0x5e5cc3[_0x3075b7(0x13c)],'authMode':_0x487010}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5e5cc3['defaultVerbose']},'numbers':{'pagesize':_0x5e5cc3['defaultPageSize']}},'extras':{'appCode':_0x4cae14,'cookie':'','apiDomain':_0x5e5cc3[_0x3075b7(0x15c)],'apiDir':'','accessKey':_0x5e5cc3[_0x3075b7(0x13c)],'envName':_0x5e5cc3[_0x3075b7(0x138)],'mergedCli':_0x5e5cc3[_0x3075b7(0x173)]}};},'confirmHighRisk':_0x4597be[_0x1ed83d(0x14e)]??(async({def:_0x5f83fa,env:_0x64b352,flags:_0x1f6788,commandLabel:_0xa5ccc1})=>{const _0x311f07=_0x1ed83d;if(_0x64b352[_0x311f07(0x157)]){const _0x22537d=reconstructCommandArgv(_0x5f83fa,_0x1f6788);throw CliErrors[_0x311f07(0x150)]('High-risk\x20operation\x20`'+_0xa5ccc1+_0x311f07(0x170)+('\x20\x20To\x20proceed:\x20'+_0x22537d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5f83fa,_0xa5ccc1,_0x1f6788),'createCancelledError':_0xeef591=>CliErrors[_0x311f07(0x164)](_0xeef591)});}),'mapDryRunError'(_0x5bc769){return mapUserFacingExecuteError(_0x5bc769);},'mapExecuteError'(_0x4435e8){return mapUserFacingExecuteError(_0x4435e8);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4a6244;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0xf83b1a}=await import('../core/sdk-client.js');_0xf83b1a();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x557ef8}=await import('../core/api-client.js');_0x557ef8();}}async function resolveExplicitAppName(_0x46f6bf,_0x2b1a4d,_0x2cf157){const _0x134315=a92_0x524a;if(_0x46f6bf[_0x134315(0x13d)]===![])return _0x2cf157;const _0x58ec5c=typeof _0x2b1a4d['rawFlags'][_0x134315(0x14b)]===_0x134315(0x162)?_0x2b1a4d[_0x134315(0x13b)][_0x134315(0x14b)][_0x134315(0x163)]():'';if(!_0x58ec5c)return _0x2cf157;const _0x378f37=typeof _0x2b1a4d[_0x134315(0x13b)][_0x134315(0x143)]===_0x134315(0x162)&&_0x2b1a4d[_0x134315(0x13b)][_0x134315(0x143)]['trim']()||productEnv('APPCODE');if(_0x378f37||_0x2b1a4d[_0x134315(0x158)]===_0x134315(0x175))return _0x2cf157;const {getRemoteAppList:_0x217679}=await import(_0x134315(0x16c)),_0x1ed91e=await _0x217679({'env':_0x2b1a4d[_0x134315(0x138)]??_0x134315(0x140),'accessKey':_0x2b1a4d[_0x134315(0x13c)]}),_0x14d61f=findAppByName(_0x1ed91e[_0x134315(0x16b)],_0x58ec5c);if(_0x14d61f&&!isRuntimeAccessibleApp(_0x14d61f))throw runtimeInaccessibleAppError(_0x14d61f,'\x22'+_0x58ec5c+'\x22');const _0x82f858=_0x14d61f?.[_0x134315(0x14f)]?.[_0x134315(0x163)]();if(_0x82f858)return _0x82f858;throw CliErrors[_0x134315(0x150)](_0x134315(0x16e)+_0x58ec5c,_0x134315(0x13f)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x58ec5c+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x134315(0x14c)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5a765,_0x3d55dc){const _0x45ea2c=a92_0x524a;if(_0x5a765[_0x45ea2c(0x13d)]===![]||!_0x3d55dc['accessKey'])return;const _0x5a980f=(typeof _0x3d55dc[_0x45ea2c(0x13b)]['app']==='string'&&_0x3d55dc[_0x45ea2c(0x13b)][_0x45ea2c(0x14b)][_0x45ea2c(0x163)]()?_0x3d55dc[_0x45ea2c(0x13b)][_0x45ea2c(0x14b)]:_0x3d55dc['mergedCli']?.[_0x45ea2c(0x15e)]??_0x3d55dc['mergedCli']?.[_0x45ea2c(0x15b)])?.[_0x45ea2c(0x163)]();if(!_0x5a980f)return;const {getRemoteAppList:_0x4f3ebd}=await import('../commands/app/remote-source.js'),_0x5e20dd=await _0x4f3ebd({'env':_0x3d55dc['env']??_0x45ea2c(0x140),'accessKey':_0x3d55dc['accessKey']}),_0x5b2df7=findAppByName(_0x5e20dd[_0x45ea2c(0x16b)],_0x5a980f);if(_0x5b2df7&&!isRuntimeAccessibleApp(_0x5b2df7))throw runtimeInaccessibleAppError(_0x5b2df7,'\x22'+_0x5a980f+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x252b3d,_0x4e3138,_0x2d1895){const _0x35599e=a92_0x524a;if(_0x252b3d['requiresAppCode']===![]||!_0x4e3138['accessKey'])return;const {getRemoteAppList:_0x4964b0}=await import(_0x35599e(0x16c)),_0x55be82=await _0x4964b0({'env':_0x4e3138['env']??_0x35599e(0x140),'accessKey':_0x4e3138[_0x35599e(0x13c)]}),_0x4bf04b=findAppByCode(_0x55be82[_0x35599e(0x16b)],_0x2d1895);if(_0x4bf04b&&!isRuntimeAccessibleApp(_0x4bf04b))throw runtimeInaccessibleAppError(_0x4bf04b,_0x35599e(0x152)+_0x2d1895+'\x22');}export async function runCommand(_0x63ae38,_0x5aa52d,_0x118cda=terminalRunnerAdapter){const _0x33063a=a92_0x524a;assertKnownCommandFlags(_0x63ae38,_0x5aa52d[_0x33063a(0x13b)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x63ae38)?withUpdateNotice(_0x63ae38):_0x63ae38,_0x5aa52d,_0x118cda);}function shouldAttachUpdateNotice(_0x2dff9a){const _0x47f4ff=a92_0x524a;return![_0x47f4ff(0x172),_0x47f4ff(0x156),_0x47f4ff(0x147)][_0x47f4ff(0x167)](_0x2dff9a[_0x47f4ff(0x146)]);}function withUpdateNotice(_0x19bb94){return{..._0x19bb94,async 'execute'(_0x26bb5b){const _0x18793c=a92_0x524a,_0x3e0fdd=shouldResolveUpdateNotice(_0x26bb5b)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x18793c(0x166)](null),_0x4ac689=await _0x19bb94[_0x18793c(0x144)](_0x26bb5b);return attachUpdateNotice(_0x4ac689,await _0x3e0fdd);}};}function a92_0x4a64(){const _0xa2e026=['168EyoZJE','riskLevel','180XBRmFF','schema','isNonInteractive','appCodeSource','command','2590803ReZYYt','defaultApp','apiDomain','object','currentApp','name','requiresAuth','ACCESS_KEY','string','trim','cancelled','verbose','resolve','includes','14xZxpNb','108432yWGtKO','pageSize','items','../commands/app/remote-source.js','3284677COsSQQ','Unknown\x20app:\x20','../core/sdk-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','2579320mUzmci','update','mergedCli','format','local-alias','../core/api-client.js','4506504IiJaUl','formatOutput','env','filter','99zSMeZP','rawFlags','accessKey','requiresAppCode','error','Run\x20`','production','722120SmxVPn','configMissing','appcode','execute','authRequired','service','doctor','1wMkrXP','_notice','1337202gPxlVn','app','newConfigFileName','ClientAk','confirmHighRisk','appCode','validation','APPCODE','appcode\x20\x22'];a92_0x4a64=function(){return _0xa2e026;};return a92_0x4a64();}function shouldResolveUpdateNotice(_0x1477ae){const _0x7ded50=a92_0x524a;return _0x1477ae[_0x7ded50(0x174)]==='pretty'&&!_0x1477ae['nonInteractive'];}function attachUpdateNotice(_0x202544,_0x46fd21){const _0x49cbb7=a92_0x524a;if(!_0x46fd21||!_0x202544||typeof _0x202544!==_0x49cbb7(0x15d))return _0x202544;const _0x49412d=_0x202544,_0x169390=typeof _0x49412d[_0x49cbb7(0x149)]===_0x49cbb7(0x15d)&&_0x49412d[_0x49cbb7(0x149)]!==null?_0x49412d[_0x49cbb7(0x149)]:{};return{..._0x49412d,'_notice':{..._0x169390,'update':_0x46fd21}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c7d78,_0x3b786b){const _0x2bdb1a=a93_0x3a2d,_0x1607dd=_0x1c7d78();while(!![]){try{const _0x5d1b7d=-parseInt(_0x2bdb1a(0x199))/0x1+parseInt(_0x2bdb1a(0x1a2))/0x2*(parseInt(_0x2bdb1a(0x193))/0x3)+parseInt(_0x2bdb1a(0x19a))/0x4+parseInt(_0x2bdb1a(0x19c))/0x5*(parseInt(_0x2bdb1a(0x197))/0x6)+parseInt(_0x2bdb1a(0x19e))/0x7+parseInt(_0x2bdb1a(0x192))/0x8+-parseInt(_0x2bdb1a(0x19f))/0x9;if(_0x5d1b7d===_0x3b786b)break;else _0x1607dd['push'](_0x1607dd['shift']());}catch(_0x453b91){_0x1607dd['push'](_0x1607dd['shift']());}}}(a93_0x296c,0xb6c69));function a93_0x296c(){const _0xa4edc6=['11732160bqkKsz','3HUbRZa','has','filter','requiresAuth','40938ciFUtu','auth','840895tCzuGF','2861020GqIEjn','services','285nFCwCx','required','8186423YkRwtw','24008850OYiOdH','none','commands','1034038pyncDX','map','service','../commands/registry.js'];a93_0x296c=function(){return _0xa4edc6;};return a93_0x296c();}import{buildSchemaPayload as a93_0x3cdd8a}from'@lovrabet/cli-framework';function a93_0x3a2d(_0x24edf4,_0x550dce){_0x24edf4=_0x24edf4-0x191;const _0x296c7a=a93_0x296c();let _0x3a2d95=_0x296c7a[_0x24edf4];return _0x3a2d95;}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 _0x4bc9a6=a93_0x3a2d,{serviceRegistry:_0x38b82f,findDefinition:_0x3756ff}=await import(_0x4bc9a6(0x191)),_0x165423=new Set(_0x38b82f[_0x4bc9a6(0x1a3)](_0x501ebc=>_0x501ebc[_0x4bc9a6(0x1a4)])),_0x3211e8=listDynamicServiceEntries()[_0x4bc9a6(0x195)](_0x143bcc=>!_0x165423[_0x4bc9a6(0x194)](_0x143bcc[_0x4bc9a6(0x1a4)])),_0x25aaf5=a93_0x3cdd8a({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x38b82f,_0x3211e8),'buildAllFlags':buildAllFlags,'findDefinition':(_0x26cdb3,_0x3ba3bc)=>_0x3756ff(_0x26cdb3,_0x3ba3bc)??findDynamicServiceDefinition(_0x26cdb3,_0x3ba3bc)});return normalizeSchemaPayload(_0x25aaf5);}function normalizeSchemaPayload(_0x511d2f){const _0x2d58ab=a93_0x3a2d;return{..._0x511d2f,'schemaVersion':0x2,'services':_0x511d2f[_0x2d58ab(0x19b)][_0x2d58ab(0x1a3)](_0x385b71=>({..._0x385b71,'commands':_0x385b71[_0x2d58ab(0x1a1)][_0x2d58ab(0x1a3)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x21712d){const _0x296ed=a93_0x3a2d,_0x129d36=_0x21712d;return{..._0x21712d,'auth':_0x129d36[_0x296ed(0x198)]??(_0x21712d[_0x296ed(0x196)]?_0x296ed(0x19d):_0x296ed(0x1a0))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a94_0x4bd8(_0x4f7761,_0x1213fc){_0x4f7761=_0x4f7761-0x9d;const _0x59eec4=a94_0x59ee();let _0x4bd8f7=_0x59eec4[_0x4f7761];return _0x4bd8f7;}function a94_0x59ee(){const _0x1eb068=['3271800rcHRsZ','2209616WIxCyv','length','12TZDLNy','99570QzLloh','7GWHPyv','findIndex','1031405oFtlzd','service','slice','1016047BogxpH','4902516ExhatI','12RpKPQn','1559540fwVfcy','1342ChcQLn'];a94_0x59ee=function(){return _0x1eb068;};return a94_0x59ee();}(function(_0x38132a,_0x4f191c){const _0xa81fe2=a94_0x4bd8,_0x21ad3a=_0x38132a();while(!![]){try{const _0x2a8af1=parseInt(_0xa81fe2(0xa5))/0x1+-parseInt(_0xa81fe2(0xaa))/0x2+-parseInt(_0xa81fe2(0xa7))/0x3*(-parseInt(_0xa81fe2(0xa8))/0x4)+-parseInt(_0xa81fe2(0xa2))/0x5*(-parseInt(_0xa81fe2(0x9e))/0x6)+parseInt(_0xa81fe2(0xa0))/0x7*(parseInt(_0xa81fe2(0xab))/0x8)+parseInt(_0xa81fe2(0xa6))/0x9+-parseInt(_0xa81fe2(0x9f))/0xa*(parseInt(_0xa81fe2(0xa9))/0xb);if(_0x2a8af1===_0x4f191c)break;else _0x21ad3a['push'](_0x21ad3a['shift']());}catch(_0x3f7a9e){_0x21ad3a['push'](_0x21ad3a['shift']());}}}(a94_0x59ee,0xe9fd5));export function insertDynamicServicesAfterServiceTree(_0x4433e8,_0x4a6242){const _0x41ab82=a94_0x4bd8;if(_0x4a6242[_0x41ab82(0x9d)]===0x0)return[..._0x4433e8];const _0x1d10e4=_0x4433e8[_0x41ab82(0xa1)](_0x43f0ea=>_0x43f0ea[_0x41ab82(0xa3)]===_0x41ab82(0xa3));if(_0x1d10e4<0x0)return[..._0x4433e8,..._0x4a6242];return[..._0x4433e8['slice'](0x0,_0x1d10e4+0x1),..._0x4a6242,..._0x4433e8[_0x41ab82(0xa4)](_0x1d10e4+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b4fd1,_0x1432fa){var _0x5775a7=a95_0x1fb8,_0x22edad=_0x2b4fd1();while(!![]){try{var _0x4d722a=parseInt(_0x5775a7(0x107))/0x1*(-parseInt(_0x5775a7(0x102))/0x2)+parseInt(_0x5775a7(0x101))/0x3*(parseInt(_0x5775a7(0x10a))/0x4)+parseInt(_0x5775a7(0x109))/0x5+parseInt(_0x5775a7(0x103))/0x6*(-parseInt(_0x5775a7(0x105))/0x7)+parseInt(_0x5775a7(0x104))/0x8+parseInt(_0x5775a7(0x108))/0x9*(parseInt(_0x5775a7(0x106))/0xa)+-parseInt(_0x5775a7(0x100))/0xb;if(_0x4d722a===_0x1432fa)break;else _0x22edad['push'](_0x22edad['shift']());}catch(_0x3978ac){_0x22edad['push'](_0x22edad['shift']());}}}(a95_0x41f7,0x4b829));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a95_0x1fb8(_0x36c7e2,_0x21d7ca){_0x36c7e2=_0x36c7e2-0x100;var _0x41f718=a95_0x41f7();var _0x1fb8ec=_0x41f718[_0x36c7e2];return _0x1fb8ec;}function a95_0x41f7(){var _0x3aaeee=['2103405ACqBrG','20396OeRUwQ','5454801xboaGY','165KCQhXq','2npPtQq','611502sggTtF','3015904yBhpgl','7KOrDJJ','3481430NOwlnU','519160KhvfSt','9rWejJZ'];a95_0x41f7=function(){return _0x3aaeee;};return a95_0x41f7();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.
|
|
2
|
-
export declare const GIT_TAG = "v2.1.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.1.22-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.1.22-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "9ef4ccc";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-04T09:38:36.532Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x892fa1=a96_0x503e;(function(_0x5803e4,_0x99d702){const _0x371477=a96_0x503e,_0x48402c=_0x5803e4();while(!![]){try{const _0x46d12e=parseInt(_0x371477(0x15c))/0x1+-parseInt(_0x371477(0x15a))/0x2+parseInt(_0x371477(0x15e))/0x3+parseInt(_0x371477(0x15f))/0x4+-parseInt(_0x371477(0x164))/0x5+parseInt(_0x371477(0x15d))/0x6*(-parseInt(_0x371477(0x162))/0x7)+parseInt(_0x371477(0x15b))/0x8;if(_0x46d12e===_0x99d702)break;else _0x48402c['push'](_0x48402c['shift']());}catch(_0x6e3785){_0x48402c['push'](_0x48402c['shift']());}}}(a96_0x4143,0x67f1a));export const VERSION=a96_0x892fa1(0x160);function a96_0x4143(){const _0x22d7cc=['9ef4ccc','1320529cyntVX','v2.1.22-beta.1','3553530BndhHO','778654AGqxQm','5360496dkwhxJ','397492HJpvzh','6zfBwcZ','1897110LFqzHK','58040YduAaO','2.1.22-beta.1'];a96_0x4143=function(){return _0x22d7cc;};return a96_0x4143();}function a96_0x503e(_0x65c36f,_0x47fd2f){_0x65c36f=_0x65c36f-0x15a;const _0x414331=a96_0x4143();let _0x503eaf=_0x414331[_0x65c36f];return _0x503eaf;}export const GIT_TAG=a96_0x892fa1(0x163);export const GIT_COMMIT=a96_0x892fa1(0x161);export const BUILD_TIME='2026-08-04T09:38:36.532Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a97_0x44a5(){const _0x42a8b5=['6368NmkkzF','140LmRuqb','4515oIgkvU','3EdwZta','green','1456569udOOtO','50838bcwGns','20vEUUVK','1475368mZEbFu','838923ewWxiW','\x20--help','\x20\x20Use\x20','2435964oebsAm','7658101jgpMnd'];a97_0x44a5=function(){return _0x42a8b5;};return a97_0x44a5();}(function(_0x106f9b,_0x3f48cc){const _0x1b70a9=a97_0x331a,_0x451224=_0x106f9b();while(!![]){try{const _0x35d912=-parseInt(_0x1b70a9(0x196))/0x1+-parseInt(_0x1b70a9(0x195))/0x2*(-parseInt(_0x1b70a9(0x19e))/0x3)+-parseInt(_0x1b70a9(0x199))/0x4+parseInt(_0x1b70a9(0x19c))/0x5*(parseInt(_0x1b70a9(0x1a1))/0x6)+parseInt(_0x1b70a9(0x19d))/0x7*(-parseInt(_0x1b70a9(0x19b))/0x8)+parseInt(_0x1b70a9(0x1a0))/0x9+parseInt(_0x1b70a9(0x194))/0xa*(parseInt(_0x1b70a9(0x19a))/0xb);if(_0x35d912===_0x3f48cc)break;else _0x451224['push'](_0x451224['shift']());}catch(_0x48a74e){_0x451224['push'](_0x451224['shift']());}}}(a97_0x44a5,0x8aa09));import{jsx as a97_0x6f333e,jsxs as a97_0x273036}from'react/jsx-runtime';function a97_0x331a(_0x52e03a,_0x4b93da){_0x52e03a=_0x52e03a-0x194;const _0x44a500=a97_0x44a5();let _0x331aa1=_0x44a500[_0x52e03a];return _0x331aa1;}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 _0x496096=a97_0x331a,{exit:_0x577cce}=useApp();return useEffect(()=>{_0x577cce();},[_0x577cce]),a97_0x273036(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a97_0x6f333e(Box,{'children':a97_0x6f333e(Text,{'bold':!![],'color':_0x496096(0x19f),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a97_0x273036(Box,{'marginTop':0x1,'children':[a97_0x6f333e(Text,{'dimColor':!![],'children':_0x496096(0x198)}),a97_0x6f333e(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x496096(0x197)}),a97_0x6f333e(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a98_0x2f71(){const _0x37165d=['trim','39824iluymf','service','filter','2786268dssZRd','join','529491xsuhqi','lovrabet.write.completed','553YYbEdf','writeEventSubject','46261koyvME','split','write','command','20yPKxwE','40yFQXPB','2530035ZcCPHI','999160vKSdCH','114188rEQRJr','risk'];a98_0x2f71=function(){return _0x37165d;};return a98_0x2f71();}(function(_0x4294dd,_0xf30a2f){const _0x1d0271=a98_0x30e4,_0x35e18f=_0x4294dd();while(!![]){try{const _0x364fce=parseInt(_0x1d0271(0x135))/0x1+-parseInt(_0x1d0271(0x128))/0x2+-parseInt(_0x1d0271(0x131))/0x3+-parseInt(_0x1d0271(0x129))/0x4*(parseInt(_0x1d0271(0x125))/0x5)+-parseInt(_0x1d0271(0x12f))/0x6+parseInt(_0x1d0271(0x133))/0x7*(parseInt(_0x1d0271(0x12c))/0x8)+parseInt(_0x1d0271(0x127))/0x9*(parseInt(_0x1d0271(0x126))/0xa);if(_0x364fce===_0xf30a2f)break;else _0x35e18f['push'](_0x35e18f['shift']());}catch(_0x155a81){_0x35e18f['push'](_0x35e18f['shift']());}}}(a98_0x2f71,0x4b85c));export function canonicalLovrabetOperation(_0x31b4ce){const _0x1d6462=a98_0x30e4;return[_0x31b4ce[_0x1d6462(0x12d)],..._0x31b4ce[_0x1d6462(0x124)][_0x1d6462(0x12b)]()[_0x1d6462(0x122)](/\s+/)][_0x1d6462(0x12e)](Boolean)[_0x1d6462(0x130)]('.');}function a98_0x30e4(_0x399c09,_0xa7c31d){_0x399c09=_0x399c09-0x122;const _0x2f719e=a98_0x2f71();let _0x30e411=_0x2f719e[_0x399c09];return _0x30e411;}export function createLovrabetWriteMetadata(_0x47a4e6,_0x4e11e8,_0x56a687,_0x34eebb){const _0x1bed57=a98_0x30e4;if(_0x34eebb||_0x56a687['ok']!==!![]||_0x47a4e6[_0x1bed57(0x12a)]!==_0x1bed57(0x123)&&_0x47a4e6[_0x1bed57(0x12a)]!=='high-risk-write')return undefined;const _0x58a3d4=_0x47a4e6[_0x1bed57(0x134)]?.(_0x56a687),_0x2e86c3={'type':_0x1bed57(0x132),'operation':_0x4e11e8,'risk':_0x47a4e6['risk'],..._0x58a3d4?{'subject':_0x58a3d4}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x2e86c3}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1232d9,_0x133b19){const _0x53b53f=a99_0x45a1,_0xc72019=_0x1232d9();while(!![]){try{const _0x2df252=parseInt(_0x53b53f(0x1b5))/0x1*(parseInt(_0x53b53f(0x1ba))/0x2)+-parseInt(_0x53b53f(0x1bd))/0x3*(-parseInt(_0x53b53f(0x1c7))/0x4)+parseInt(_0x53b53f(0x1b2))/0x5+parseInt(_0x53b53f(0x1be))/0x6*(-parseInt(_0x53b53f(0x1c8))/0x7)+-parseInt(_0x53b53f(0x1d0))/0x8+-parseInt(_0x53b53f(0x1cc))/0x9+parseInt(_0x53b53f(0x1b8))/0xa;if(_0x2df252===_0x133b19)break;else _0xc72019['push'](_0xc72019['shift']());}catch(_0x41a315){_0xc72019['push'](_0xc72019['shift']());}}}(a99_0x1368,0xab004));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a99_0x45a1(_0x5aeab8,_0x1721bf){_0x5aeab8=_0x5aeab8-0x1b1;const _0x13683c=a99_0x1368();let _0x45a11e=_0x13683c[_0x5aeab8];return _0x45a11e;}import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x339570,command:_0x349af3,risk:_0x3632bb,dryRun:_0x3fee37}){const _0x222218=a99_0x45a1;return JSON['stringify']({'ok':_0x339570['ok'],'command':_0x349af3,'risk':_0x3632bb,..._0x3fee37?{'dryRun':!![]}:{},..._0x339570[_0x222218(0x1c3)]!==undefined?{'data':_0x339570[_0x222218(0x1c3)]}:{},..._0x339570[_0x222218(0x1ca)]?{'message':_0x339570['message']}:{}});}};export async function invokeLovrabet(_0x1bee5f,_0x39d159){return runSerialized(async()=>{const _0x23d4a2=a99_0x45a1;throwIfAborted(_0x39d159[_0x23d4a2(0x1b9)]);const _0x21d243=await resolveLovrabetInvocation(_0x1bee5f),_0x4b1b32=canonicalLovrabetOperation(_0x21d243[_0x23d4a2(0x1b7)]),_0x85c1e0={},_0x42a334=buildConfigFromFlags(_0x21d243[_0x23d4a2(0x1c5)]);await initGlobalEnvironment(_0x42a334);const _0xaaa2a8=createPipelineEnv(_0x42a334,{..._0x21d243[_0x23d4a2(0x1c5)],'yes':_0x21d243[_0x23d4a2(0x1b7)][_0x23d4a2(0x1b1)]===_0x23d4a2(0x1bb)?!![]:_0x21d243[_0x23d4a2(0x1c5)][_0x23d4a2(0x1b4)],'nonInteractive':!![]});_0xaaa2a8[_0x23d4a2(0x1b3)]=_0x21d243[_0x23d4a2(0x1b3)],_0xaaa2a8[_0x23d4a2(0x1cf)]=!![],_0xaaa2a8['riskLevel']='high-risk-write';const _0x206408=withEmbeddedLifecycle(_0x21d243[_0x23d4a2(0x1b7)],_0x4b1b32,_0x39d159),_0x55456c=createLovrabetRunnerAdapter({'formatOutput'(_0x3f4b9d,_0x1a0843){const _0x1cf720=_0x23d4a2;_0x85c1e0[_0x1cf720(0x1cb)]=_0x3f4b9d,_0x85c1e0[_0x1cf720(0x1c4)]=_0x1a0843[_0x1cf720(0x1c4)],_0x85c1e0[_0x1cf720(0x1b1)]=_0x1a0843['risk'],_0x85c1e0[_0x1cf720(0x1c9)]=_0x1a0843[_0x1cf720(0x1c9)],_0x85c1e0[_0x1cf720(0x1b6)]=_0x1a0843[_0x1cf720(0x1b6)]===!![];},async 'confirmHighRisk'(){const _0x4a6bf3=_0x23d4a2;throw new Error(_0x4a6bf3(0x1cd));}});try{await runCommand(_0x206408,_0xaaa2a8,_0x55456c);if(!_0x85c1e0[_0x23d4a2(0x1cb)]||!_0x85c1e0[_0x23d4a2(0x1c4)]||!_0x85c1e0[_0x23d4a2(0x1b1)]||!_0x85c1e0['format'])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3139e9=_0x39d159[_0x23d4a2(0x1c2)]??defaultPresentation,_0x1168e4=_0x85c1e0['dryRun']===!![],_0x4c5716={'result':_0x85c1e0['result'],'command':_0x85c1e0[_0x23d4a2(0x1c4)],'operation':_0x4b1b32,'risk':_0x85c1e0[_0x23d4a2(0x1b1)],'format':_0x85c1e0[_0x23d4a2(0x1c9)],'dryRun':_0x1168e4},_0x231eae=createLovrabetWriteMetadata(_0x21d243['definition'],_0x4b1b32,_0x85c1e0[_0x23d4a2(0x1cb)],_0x1168e4);let _0x35197c;try{_0x35197c=await _0x3139e9['present'](_0x4c5716);}catch(_0x2d5f03){if(!_0x231eae||_0x3139e9===defaultPresentation)throw _0x2d5f03;_0x35197c=await defaultPresentation[_0x23d4a2(0x1bf)](_0x4c5716);}return{'operation':_0x4b1b32,'risk':_0x85c1e0[_0x23d4a2(0x1b1)],'mode':_0x1168e4?_0x23d4a2(0x1c0):'execute','result':_0x85c1e0[_0x23d4a2(0x1cb)],'output':_0x35197c,..._0x231eae?{'metadata':_0x231eae}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a99_0x1368(){const _0x22a20b=['description','2199GfMRbQ','11550xHsJHW','present','dry-run','confirmation','presentation','data','command','rawFlags','Lovrabet\x20invocation\x20aborted.','276cLXduw','203gWxTKz','format','message','result','6775974jKOAgS','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','reason','isNonInteractive','3076024ugYgUT','aborted','risk','2478235XvOGOf','args','yes','1WCSEJy','dryRun','definition','1184890yFGjgX','signal','2457842XgXOaU','high-risk-write'];a99_0x1368=function(){return _0x22a20b;};return a99_0x1368();}function withEmbeddedLifecycle(_0x3d30a4,_0x59b670,_0x1ffb18){return{..._0x3d30a4,async 'execute'(_0x500840){const _0x3b6eb2=a99_0x45a1;return throwIfAborted(_0x1ffb18['signal']),(_0x3d30a4[_0x3b6eb2(0x1b1)]==='write'||_0x3d30a4[_0x3b6eb2(0x1b1)]===_0x3b6eb2(0x1bb))&&await _0x1ffb18[_0x3b6eb2(0x1c1)]['confirm']({'operation':_0x59b670,'risk':_0x3d30a4['risk'],'description':_0x3d30a4[_0x3b6eb2(0x1bc)],..._0x1ffb18['signal']?{'signal':_0x1ffb18[_0x3b6eb2(0x1b9)]}:{}}),throwIfAborted(_0x1ffb18[_0x3b6eb2(0x1b9)]),_0x3d30a4['execute'](_0x500840);}};}function throwIfAborted(_0x32736c){const _0x56fe82=a99_0x45a1;if(_0x32736c?.[_0x56fe82(0x1d1)])throw _0x32736c[_0x56fe82(0x1ce)]instanceof Error?_0x32736c['reason']:new DOMException(_0x56fe82(0x1c6),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x4fb331=a100_0x3bf6;(function(_0x451b6d,_0x26be11){const _0x1638fd=a100_0x3bf6,_0x187737=_0x451b6d();while(!![]){try{const _0x593c8a=-parseInt(_0x1638fd(0x13b))/0x1+-parseInt(_0x1638fd(0x143))/0x2*(-parseInt(_0x1638fd(0x142))/0x3)+parseInt(_0x1638fd(0x144))/0x4+-parseInt(_0x1638fd(0x13e))/0x5+-parseInt(_0x1638fd(0x141))/0x6+-parseInt(_0x1638fd(0x145))/0x7+-parseInt(_0x1638fd(0x13c))/0x8*(-parseInt(_0x1638fd(0x13f))/0x9);if(_0x593c8a===_0x26be11)break;else _0x187737['push'](_0x187737['shift']());}catch(_0x142cc1){_0x187737['push'](_0x187737['shift']());}}}(a100_0x1cf1,0xc5128));function a100_0x1cf1(){const _0x4ad44a=['8939574bxFGVd','576015xmVHTd','24SjFXhj','catch','4741455IofxaW','6880428QftzOr','resolve','3372768aAZHQG','1122513VWelkp','2nDNeva','6012308NHHJXs'];a100_0x1cf1=function(){return _0x4ad44a;};return a100_0x1cf1();}function a100_0x3bf6(_0x135b68,_0x36ddc5){_0x135b68=_0x135b68-0x13b;const _0x1cf1ed=a100_0x1cf1();let _0x3bf68e=_0x1cf1ed[_0x135b68];return _0x3bf68e;}let tail=Promise[a100_0x4fb331(0x140)]();export async function runSerialized(_0x2fe814){const _0x524a85=a100_0x4fb331,_0x5b7a2d=tail;let _0x4145e8;tail=new Promise(_0x1892f4=>{_0x4145e8=_0x1892f4;}),await _0x5b7a2d[_0x524a85(0x13d)](()=>undefined);try{return await _0x2fe814();}finally{_0x4145e8();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a101_0x2227(_0x2b4047,_0x44f7cf){_0x2b4047=_0x2b4047-0x8c;const _0x1e600b=a101_0x1e60();let _0x2227b6=_0x1e600b[_0x2b4047];return _0x2227b6;}(function(_0x2d7a4f,_0xc245e3){const _0x2953a1=a101_0x2227,_0xd89c21=_0x2d7a4f();while(!![]){try{const _0xb141b6=parseInt(_0x2953a1(0x9d))/0x1+parseInt(_0x2953a1(0x9f))/0x2+parseInt(_0x2953a1(0x96))/0x3*(-parseInt(_0x2953a1(0x9e))/0x4)+-parseInt(_0x2953a1(0xa0))/0x5+parseInt(_0x2953a1(0x8e))/0x6+-parseInt(_0x2953a1(0xa1))/0x7*(parseInt(_0x2953a1(0x90))/0x8)+-parseInt(_0x2953a1(0x94))/0x9;if(_0xb141b6===_0xc245e3)break;else _0xd89c21['push'](_0xd89c21['shift']());}catch(_0x1d9aa0){_0xd89c21['push'](_0xd89c21['shift']());}}}(a101_0x1e60,0x34f10));import a101_0x20260a from'meow';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';function a101_0x1e60(){const _0x5dae51=['input','2056386oroMZz','slice','8RPOlQO','validation','join','unknownCommand','513108owKLmG','../framework/preparse.js','9753HDyLIG','assign','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','flatMap','args','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','75983UpDzlW','36RDZyTm','771044bHURqb','2064140RBtfWh','618023DfLCOS','../commands/registry.js','flags'];a101_0x1e60=function(){return _0x5dae51;};return a101_0x1e60();}export async function resolveLovrabetInvocation(_0x3d3725){const _0x473d5a=a101_0x2227,_0x35fa57=a101_0x20260a('',{'importMeta':import.meta,'argv':_0x3d3725,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x370b73=[..._0x35fa57[_0x473d5a(0x8d)]],_0x42fcff=_0x35fa57[_0x473d5a(0x8c)];await correctFlags(_0x42fcff);const _0x7a7441=_0x370b73[0x0];if(!_0x7a7441)throw CliErrors[_0x473d5a(0x91)](_0x473d5a(0x99));if(!isKnownService(_0x7a7441)){const _0x137a25=resolveDynamicServiceCommand(_0x370b73,_0x42fcff);if(!_0x137a25)throw CliErrors[_0x473d5a(0x93)](_0x370b73[_0x473d5a(0x92)]('\x20'));return Object[_0x473d5a(0x97)](_0x42fcff,_0x137a25[_0x473d5a(0x8c)]),{'definition':_0x137a25[_0x473d5a(0x98)],'rawFlags':_0x42fcff,'args':_0x137a25[_0x473d5a(0x9b)]};}const _0x2bd2f0=getServiceEntry(_0x7a7441),_0x2a8256=_0x370b73[0x1]||_0x2bd2f0['defaultCommand'];if(!_0x2a8256)throw CliErrors[_0x473d5a(0x91)](_0x473d5a(0x9c)+_0x7a7441+'\x22.');const _0x176f02=findDefinition(_0x7a7441,_0x2a8256);if(!_0x176f02)throw CliErrors[_0x473d5a(0x93)](_0x7a7441+'\x20'+_0x2a8256);return{'definition':_0x176f02,'rawFlags':_0x42fcff,'args':_0x370b73[_0x473d5a(0x8f)](0x2)};}async function correctFlags(_0x449b30){const _0x5491bb=a101_0x2227;try{const {correctFlags:_0x4f5622}=await import(_0x5491bb(0x95)),{getAllDefinitions:_0x76bd69}=await import(_0x5491bb(0xa2)),_0x367aa0=_0x76bd69()[_0x5491bb(0x9a)](_0x2778d3=>_0x2778d3['flags']??[]),_0x453fb4=_0x4f5622(_0x449b30,_0x367aa0);Object['assign'](_0x449b30,_0x453fb4[_0x5491bb(0x8c)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5416e1,_0x6df514){const _0x26e3ba=a103_0x5e4b,_0x25a198=_0x5416e1();while(!![]){try{const _0x356115=parseInt(_0x26e3ba(0x1db))/0x1+-parseInt(_0x26e3ba(0x1dc))/0x2+parseInt(_0x26e3ba(0x1de))/0x3+-parseInt(_0x26e3ba(0x1e9))/0x4*(parseInt(_0x26e3ba(0x1da))/0x5)+-parseInt(_0x26e3ba(0x1d5))/0x6*(-parseInt(_0x26e3ba(0x1e4))/0x7)+parseInt(_0x26e3ba(0x1e0))/0x8*(-parseInt(_0x26e3ba(0x1e3))/0x9)+-parseInt(_0x26e3ba(0x1e6))/0xa*(-parseInt(_0x26e3ba(0x1ea))/0xb);if(_0x356115===_0x6df514)break;else _0x25a198['push'](_0x25a198['shift']());}catch(_0x766c55){_0x25a198['push'](_0x25a198['shift']());}}}(a103_0x4098,0x31740));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a103_0x4d56a7}from'../constant/distribution.js';function a103_0x4098(){const _0x4f9d99=['11EETSZh','stdio','2862LOBWqR','toString','npx','log','stderr','10lUdeYA','217441KxnFlY','726688idWzLL','trim','98460IyMKBo','skills','326296KddOVv','status','stdout','9FFUMiU','1925CVGUxj','join','4931410ZzrxOB','inherit','add','535772gFKaci'];a103_0x4098=function(){return _0x4f9d99;};return a103_0x4098();}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a103_0x4d56a7;function a103_0x5e4b(_0x2edf00,_0x13aa3c){_0x2edf00=_0x2edf00-0x1d4;const _0x409853=a103_0x4098();let _0x5e4b7e=_0x409853[_0x2edf00];return _0x5e4b7e;}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x596b2e,_0x194e41=LOVRABET_SKILL_SOURCE,_0x59d265){const _0x555722=a103_0x5e4b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x267d6b=_0x59d265?.[_0x555722(0x1d4)]??_0x555722(0x1e7),_0x29e571=resolveNpmBin(_0x555722(0x1d7)),_0x57ee0b=[_0x555722(0x1df),_0x555722(0x1e8),_0x194e41,'-g','-y'],_0x2611db=[_0x29e571,..._0x57ee0b][_0x555722(0x1e5)]('\x20');console[_0x555722(0x1d8)]('*\x20'+_0x2611db);const _0x3fb433=spawnSync(_0x29e571,_0x57ee0b,{'cwd':_0x596b2e,'stdio':_0x267d6b,'env':process.env,'shell':![]});if(_0x3fb433[_0x555722(0x1e1)]===0x0)return{'ok':!![],'status':0x0};let _0x69db06='exit\x20'+(_0x3fb433[_0x555722(0x1e1)]??'unknown');if(_0x267d6b==='pipe'){const _0x44aa12=_0x3fb433[_0x555722(0x1d9)]?_0x3fb433[_0x555722(0x1d9)][_0x555722(0x1d6)]()['trim']():'',_0x1aeb7b=_0x3fb433[_0x555722(0x1e2)]?_0x3fb433[_0x555722(0x1e2)][_0x555722(0x1d6)]()[_0x555722(0x1dd)]():'';if(_0x44aa12)_0x69db06=_0x44aa12;else{if(_0x1aeb7b)_0x69db06=_0x1aeb7b;}}return{'ok':![],'status':_0x3fb433[_0x555722(0x1e1)]??null,'error':_0x69db06};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104_0x2654e0=a104_0x20d8;function a104_0x5bf7(){const _0x12af0e=['.hg','dist','27970AVmVqy','.DS_Store','6498054LDdNei','5478435ajahOi','8ynMHgI','6lpkPLA','.cache','8GqjShF','12420Vewyrv','2858005GnDvmF','node_modules','.svn','6479EzaBRF','coverage','.next','SKILL.md','.turbo','build','lovrabet.skill.json','316104SOXwGL','4169291CUlJlF'];a104_0x5bf7=function(){return _0x12af0e;};return a104_0x5bf7();}(function(_0x52433c,_0x5a0027){const _0x1f8aa5=a104_0x20d8,_0xb5bad9=_0x52433c();while(!![]){try{const _0x5c34e9=-parseInt(_0x1f8aa5(0x12c))/0x1+-parseInt(_0x1f8aa5(0x120))/0x2*(-parseInt(_0x1f8aa5(0x129))/0x3)+-parseInt(_0x1f8aa5(0x128))/0x4*(-parseInt(_0x1f8aa5(0x12d))/0x5)+-parseInt(_0x1f8aa5(0x126))/0x6+-parseInt(_0x1f8aa5(0x121))/0x7*(parseInt(_0x1f8aa5(0x12b))/0x8)+-parseInt(_0x1f8aa5(0x127))/0x9+-parseInt(_0x1f8aa5(0x124))/0xa*(-parseInt(_0x1f8aa5(0x130))/0xb);if(_0x5c34e9===_0x5a0027)break;else _0xb5bad9['push'](_0xb5bad9['shift']());}catch(_0x3cc852){_0xb5bad9['push'](_0xb5bad9['shift']());}}}(a104_0x5bf7,0xc5046));export const METADATA_FILE=a104_0x2654e0(0x11f);export const SKILL_FILE=a104_0x2654e0(0x133);function a104_0x20d8(_0x1bfdbd,_0x14ed47){_0x1bfdbd=_0x1bfdbd-0x11d;const _0x5bf748=a104_0x5bf7();let _0x20d8aa=_0x5bf748[_0x1bfdbd];return _0x20d8aa;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a104_0x2654e0(0x125)]);export const IGNORED_DIR_NAMES=new Set(['.git',a104_0x2654e0(0x122),a104_0x2654e0(0x12f),a104_0x2654e0(0x12e),a104_0x2654e0(0x132),a104_0x2654e0(0x123),a104_0x2654e0(0x11e),a104_0x2654e0(0x131),a104_0x2654e0(0x11d),a104_0x2654e0(0x12a)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a105_0x4ad9(){const _0xbb36b6=['15cHMYnQ','isSymbolicLink','utf8','4111764wTZEZI','9RoJwoX','2251291VHAdgo','26dvnziY','startsWith','4940712pPFUet','2217570YtUwwe','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','endsWith','49640AjcqpW','20155710YvnPpP','stringify','from','validation','81321hUfCau','split'];a105_0x4ad9=function(){return _0xbb36b6;};return a105_0x4ad9();}(function(_0x19b025,_0x170527){const _0x4939ef=a105_0x5780,_0xf91ed2=_0x19b025();while(!![]){try{const _0x1795e5=-parseInt(_0x4939ef(0x1ae))/0x1+-parseInt(_0x4939ef(0x1a8))/0x2*(parseInt(_0x4939ef(0x1b3))/0x3)+parseInt(_0x4939ef(0x1a5))/0x4+-parseInt(_0x4939ef(0x1b5))/0x5*(-parseInt(_0x4939ef(0x1ab))/0x6)+parseInt(_0x4939ef(0x1a7))/0x7+parseInt(_0x4939ef(0x1aa))/0x8*(parseInt(_0x4939ef(0x1a6))/0x9)+-parseInt(_0x4939ef(0x1af))/0xa;if(_0x1795e5===_0x170527)break;else _0xf91ed2['push'](_0xf91ed2['shift']());}catch(_0x56486e){_0xf91ed2['push'](_0xf91ed2['shift']());}}}(a105_0x4ad9,0xa0b96));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(_0x1022f3,_0x2bb0a6){const _0x48021f=a105_0x5780,_0x337dd0=normalizeSkillRelativePath(_0x2bb0a6),_0x19cb42=realOrResolved(_0x1022f3),_0x4e90f9=resolve(_0x19cb42,..._0x337dd0['split']('/'));if(!isPathInside(_0x4e90f9,_0x19cb42))throw CliErrors[_0x48021f(0x1b2)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x2bb0a6);return ensureNoSymlinkInManagedPath(_0x19cb42,_0x337dd0),_0x4e90f9;}export function ensureNoSymlinkInManagedPath(_0x12a230,_0x2ef9aa){const _0x23db7a=a105_0x5780;let _0x1a309d=_0x12a230;for(const _0x97c285 of _0x2ef9aa[_0x23db7a(0x1b4)]('/')){_0x1a309d=resolve(_0x1a309d,_0x97c285);const _0x1cc918=lstatIfPresent(_0x1a309d);if(_0x1cc918?.[_0x23db7a(0x1b6)]())throw CliErrors[_0x23db7a(0x1b2)](_0x23db7a(0x1ac)+_0x2ef9aa);}}export function isDanglingSymlink(_0x263d03){try{return lstatSync(_0x263d03)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x3df4fc){const _0x20c7e8=readlinkSync(_0x3df4fc);return isAbsolute(_0x20c7e8)?_0x20c7e8:resolve(dirname(_0x3df4fc),_0x20c7e8);}export function isPathInside(_0x1e93d7,_0x5b792f){const _0x2eb56e=a105_0x5780,_0x4a3469=_0x1e93d7[_0x2eb56e(0x1ad)](sep)?_0x1e93d7:''+_0x1e93d7+sep,_0x2ad8bb=_0x5b792f[_0x2eb56e(0x1ad)](sep)?_0x5b792f:''+_0x5b792f+sep;return _0x1e93d7===_0x5b792f||_0x4a3469[_0x2eb56e(0x1a9)](_0x2ad8bb);}export function realOrResolved(_0x20d8f0){try{return realpathSync(_0x20d8f0);}catch{return resolve(_0x20d8f0);}}export function lstatIfPresent(_0xfb17a9){try{return lstatSync(_0xfb17a9);}catch{return undefined;}}function a105_0x5780(_0x421da1,_0x45a246){_0x421da1=_0x421da1-0x1a4;const _0x4ad9f8=a105_0x4ad9();let _0x5780f9=_0x4ad9f8[_0x421da1];return _0x5780f9;}export function writeTextAtomic(_0x3e5269,_0x1168bf,_0x115067){const _0xb0f6cc=a105_0x5780;writeBytesAtomic(_0x3e5269,Buffer[_0xb0f6cc(0x1b1)](_0x1168bf,_0xb0f6cc(0x1a4)),_0x115067);}export function writeBytesAtomic(_0xddb977,_0x399efd,_0x46a5d1){const _0x4381e1=_0xddb977+'.tmp';try{writeFileSync(_0x4381e1,_0x399efd,{'mode':_0x46a5d1}),renameSync(_0x4381e1,_0xddb977);}catch(_0x46cb76){try{rmSync(_0x4381e1,{'force':!![]});}catch{}throw _0x46cb76;}}export function writeJsonAtomic(_0x19a8f0,_0x14c06d){const _0x3a19ce=a105_0x5780;writeTextAtomic(_0x19a8f0,JSON[_0x3a19ce(0x1b0)](_0x14c06d,null,0x2)+'\x0a',0x180);}
|