@lovrabet/lovrabet-cli 2.1.18-beta.3 → 2.1.18
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 +3 -3
- 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.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_0x43b9(_0x55bc7f,_0x54d188){_0x55bc7f=_0x55bc7f-0x186;const _0x5a11a1=a83_0x5a11();let _0x43b9b1=_0x5a11a1[_0x55bc7f];return _0x43b9b1;}(function(_0x17a7d2,_0x1d2119){const _0x473fd9=a83_0x43b9,_0x5ea50e=_0x17a7d2();while(!![]){try{const _0x5078ea=-parseInt(_0x473fd9(0x18a))/0x1+-parseInt(_0x473fd9(0x187))/0x2+parseInt(_0x473fd9(0x194))/0x3+-parseInt(_0x473fd9(0x195))/0x4*(-parseInt(_0x473fd9(0x18f))/0x5)+-parseInt(_0x473fd9(0x18c))/0x6*(parseInt(_0x473fd9(0x188))/0x7)+parseInt(_0x473fd9(0x18b))/0x8+parseInt(_0x473fd9(0x192))/0x9;if(_0x5078ea===_0x1d2119)break;else _0x5ea50e['push'](_0x5ea50e['shift']());}catch(_0x2e0465){_0x5ea50e['push'](_0x5ea50e['shift']());}}}(a83_0x5a11,0x774bd));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';function a83_0x5a11(){const _0x4f0090=['1521195nXzVOR','3147252YKhDlj','get','has','generateCommandHelp','1856984XTQNiZ','6244VboTRL','generateServiceHelp','554868qmAEhh','2124176NncxDe','6006RurkXX','map','service','5kKsbrm','filter','Requires\x20appcode\x20(set\x20via\x20','11749401CHxIkH','newConfigFileName'];a83_0x5a11=function(){return _0x4f0090;};return a83_0x5a11();}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 _0x56dd34=a83_0x43b9;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x56dd34(0x191)+PRODUCT_CONFIG[_0x56dd34(0x193)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x1a5f9d){const _0xad45e9=a83_0x43b9;return createGenerators()[_0xad45e9(0x186)](_0x1a5f9d);}export function generateServiceHelp(_0x301304){const _0x377bfc=a83_0x43b9;return createGenerators()[_0x377bfc(0x189)](_0x301304);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x28c766){const _0x1bdb58=getServiceEntry(_0x28c766);if(_0x1bdb58)return _0x1bdb58;try{return getDynamicServiceEntry(_0x28c766);}catch{return undefined;}}function getAnyServiceDefinitions(_0x175a9a){const _0x22ea89=a83_0x43b9,_0x40b26b=serviceGroups[_0x22ea89(0x196)](_0x175a9a);if(_0x40b26b)return _0x40b26b;try{return getDynamicServiceDefinitions(_0x175a9a);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3cabfd=a83_0x43b9,_0x38848a=new Set(serviceRegistry[_0x3cabfd(0x18d)](_0x429f6b=>_0x429f6b['service']));try{return listDynamicServiceEntries()[_0x3cabfd(0x190)](_0x1f6b53=>!_0x38848a[_0x3cabfd(0x197)](_0x1f6b53[_0x3cabfd(0x18e)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d3ae3,_0x39c787){var _0x1c8d7f=a84_0x3c47,_0x5dac26=_0x1d3ae3();while(!![]){try{var _0x22a99=parseInt(_0x1c8d7f(0xe5))/0x1+-parseInt(_0x1c8d7f(0xe2))/0x2*(-parseInt(_0x1c8d7f(0xe3))/0x3)+parseInt(_0x1c8d7f(0xdf))/0x4*(-parseInt(_0x1c8d7f(0xde))/0x5)+-parseInt(_0x1c8d7f(0xe1))/0x6*(parseInt(_0x1c8d7f(0xdb))/0x7)+parseInt(_0x1c8d7f(0xdc))/0x8+parseInt(_0x1c8d7f(0xdd))/0x9+parseInt(_0x1c8d7f(0xe4))/0xa*(parseInt(_0x1c8d7f(0xe0))/0xb);if(_0x22a99===_0x39c787)break;else _0x5dac26['push'](_0x5dac26['shift']());}catch(_0x3e9a35){_0x5dac26['push'](_0x5dac26['shift']());}}}(a84_0x1160,0xb8ef6));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a84_0x3c47(_0x241aff,_0x45d0d4){_0x241aff=_0x241aff-0xdb;var _0x11602b=a84_0x1160();var _0x3c4759=_0x11602b[_0x241aff];return _0x3c4759;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a84_0x1160(){var _0x254eab=['26uHNtDd','59205CnKWqg','3366790RnMgtO','661496vCBxQN','49CbZKWn','864600hXsNri','8456895BGizto','7120205IiLtHL','4LXQNZy','33fjaAcH','680814ejRLoV'];a84_0x1160=function(){return _0x254eab;};return a84_0x1160();}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(_0x7f1503,_0x2f24a5){const _0x97dea2=a85_0x563b,_0x15dd6b=_0x7f1503();while(!![]){try{const _0x34c155=-parseInt(_0x97dea2(0xa2))/0x1*(-parseInt(_0x97dea2(0x9f))/0x2)+-parseInt(_0x97dea2(0x9b))/0x3+-parseInt(_0x97dea2(0xa8))/0x4*(parseInt(_0x97dea2(0xad))/0x5)+parseInt(_0x97dea2(0xa9))/0x6*(-parseInt(_0x97dea2(0xa1))/0x7)+parseInt(_0x97dea2(0xa5))/0x8*(parseInt(_0x97dea2(0xa4))/0x9)+-parseInt(_0x97dea2(0xab))/0xa*(-parseInt(_0x97dea2(0xa0))/0xb)+parseInt(_0x97dea2(0xa7))/0xc*(parseInt(_0x97dea2(0x9c))/0xd);if(_0x34c155===_0x2f24a5)break;else _0x15dd6b['push'](_0x15dd6b['shift']());}catch(_0x2867d5){_0x15dd6b['push'](_0x15dd6b['shift']());}}}(a85_0x53c2,0xb5a7d));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a85_0x53c2(){const _0x450851=['error','3156924AghXPe','644sBkAMa','566658SXmBNP','format','20bFRYpk','update','31975cpMrXj','4245420NODqLy','13NPyypH','_notice','url','37208mQSnZA','4121293CwSrpT','14Bmcpeo','58qzgGHg','pretty','2889SxleqN','32056FPNOsL'];a85_0x53c2=function(){return _0x450851;};return a85_0x53c2();}function a85_0x563b(_0x15852a,_0x10bcef){_0x15852a=_0x15852a-0x9b;const _0x53c28a=a85_0x53c2();let _0x563be9=_0x53c28a[_0x15852a];return _0x563be9;}export function formatOutput(_0x53f9d4,_0x419c22){const _0x5b43ec=a85_0x563b,_0xab926d=_0x53f9d4[_0x5b43ec(0x9d)],{_notice:_0x1fb54e,..._0x5e938c}=_0x53f9d4;void _0x1fb54e,baseFormatOutput(_0x5e938c,_0x419c22),_0x419c22[_0x5b43ec(0xaa)]===_0x5b43ec(0xa3)&&printPrettyNotice(_0xab926d);}function printPrettyNotice(_0x5aff56){const _0x244dd4=a85_0x563b;if(!_0x5aff56?.[_0x244dd4(0xac)])return;console[_0x244dd4(0xa6)](_0x5aff56[_0x244dd4(0xac)]['message']+'\x20('+_0x5aff56['update'][_0x244dd4(0x9e)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5508e3,_0xd23bfa){const _0x1ee128=a86_0x30eb,_0x553cc9=_0x5508e3();while(!![]){try{const _0x33a050=-parseInt(_0x1ee128(0x18c))/0x1*(parseInt(_0x1ee128(0x189))/0x2)+-parseInt(_0x1ee128(0x179))/0x3*(-parseInt(_0x1ee128(0x17f))/0x4)+-parseInt(_0x1ee128(0x187))/0x5*(parseInt(_0x1ee128(0x18f))/0x6)+parseInt(_0x1ee128(0x197))/0x7*(parseInt(_0x1ee128(0x177))/0x8)+parseInt(_0x1ee128(0x190))/0x9*(parseInt(_0x1ee128(0x193))/0xa)+-parseInt(_0x1ee128(0x198))/0xb*(-parseInt(_0x1ee128(0x180))/0xc)+-parseInt(_0x1ee128(0x195))/0xd;if(_0x33a050===_0xd23bfa)break;else _0x553cc9['push'](_0x553cc9['shift']());}catch(_0xfa1999){_0x553cc9['push'](_0x553cc9['shift']());}}}(a86_0x1386,0xc0ef7));function toKebab(_0x13e294){const _0x3662e2=a86_0x30eb;return _0x13e294['replace'](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x4ccb13,_0x18277b)=>'-'+_0x18277b[_0x3662e2(0x181)]())[_0x3662e2(0x192)](/([a-z0-9])([A-Z])/g,(_0x482f17,_0x1363ae,_0x378ec5)=>_0x1363ae+'-'+_0x378ec5)[_0x3662e2(0x181)]();}function a86_0x30eb(_0x29c2d9,_0x2ef6aa){_0x29c2d9=_0x29c2d9-0x175;const _0x1386c9=a86_0x1386();let _0x30eb10=_0x1386c9[_0x29c2d9];return _0x30eb10;}function buildKnownFlags(_0x143322){const _0xdfc50b=a86_0x30eb,_0x15bf00=new Set();for(const _0x1fab3f of _0x143322){_0x15bf00[_0xdfc50b(0x18a)](_0x1fab3f[_0xdfc50b(0x19a)]),_0x15bf00[_0xdfc50b(0x18a)](toCamelCase(_0x1fab3f[_0xdfc50b(0x19a)]));}for(const _0xd87916 of[_0xdfc50b(0x178),_0xdfc50b(0x199),_0xdfc50b(0x185),'format']){_0x15bf00[_0xdfc50b(0x18a)](_0xd87916);}for(const _0x2708ae of['help','env',_0xdfc50b(0x17c),'app',_0xdfc50b(0x18e),_0xdfc50b(0x183),'ci',_0xdfc50b(0x19b),_0xdfc50b(0x176)]){_0x15bf00[_0xdfc50b(0x18a)](_0x2708ae);}return _0x15bf00;}function buildFlagTypeMap(_0x29c569){const _0x189d28=a86_0x30eb,_0x4490ff=new Map();for(const _0xb50abc of _0x29c569){_0x4490ff[_0x189d28(0x175)](_0xb50abc[_0x189d28(0x19a)],_0xb50abc[_0x189d28(0x188)]),_0x4490ff['set'](toCamelCase(_0xb50abc['name']),_0xb50abc[_0x189d28(0x188)]);}return _0x4490ff;}function toCamelCase(_0xe57d58){const _0x52c95e=a86_0x30eb;return _0xe57d58[_0x52c95e(0x192)](/-([a-z])/g,(_0x328327,_0x339a49)=>_0x339a49['toUpperCase']());}function aliasHandler(_0x1c63d5,_0x183937){const _0x525381=a86_0x30eb,_0x680e33=[];for(const _0x52df48 of Object['keys'](_0x1c63d5)){if(_0x183937[_0x525381(0x186)](_0x52df48))continue;const _0x189e69=toKebab(_0x52df48);_0x189e69!==_0x52df48&&_0x183937[_0x525381(0x186)](_0x189e69)&&_0x680e33[_0x525381(0x18b)]({'original':_0x52df48,'corrected':_0x189e69,'handler':_0x525381(0x18d)});}return _0x680e33;}function stickyHandler(_0x2618ee,_0x1b73f3,_0x5c291f){const _0x41d9d0=a86_0x30eb,_0x40f025=[];for(const [_0x5a2318,_0x2437a4]of Object['entries'](_0x2618ee)){if(_0x2437a4!==!![])continue;for(let _0x397871=_0x5a2318['length']-0x1;_0x397871>0x0;_0x397871--){const _0x4f1aa7=_0x5a2318[_0x41d9d0(0x17e)](0x0,_0x397871),_0x5e0c3f=_0x5a2318[_0x41d9d0(0x17e)](_0x397871),_0x1dc1aa=toKebab(_0x4f1aa7),_0x26c73d=toCamelCase(_0x4f1aa7),_0x1a3488=_0x1b73f3['has'](_0x4f1aa7)?_0x4f1aa7:_0x1b73f3[_0x41d9d0(0x186)](_0x1dc1aa)?_0x1dc1aa:_0x1b73f3[_0x41d9d0(0x186)](_0x26c73d)?_0x26c73d:null;if(!_0x1a3488)continue;const _0x350af1=_0x5c291f[_0x41d9d0(0x196)](_0x1a3488)??_0x41d9d0(0x184);let _0x516837;if(_0x350af1==='number'){const _0x22e718=Number(_0x5e0c3f);if(isNaN(_0x22e718)||_0x5e0c3f==='')continue;_0x516837=_0x22e718;}else{if(_0x350af1===_0x41d9d0(0x191))continue;else{if(_0x5e0c3f==='')continue;_0x516837=_0x5e0c3f;}}_0x40f025[_0x41d9d0(0x18b)]({'original':_0x5a2318,'corrected':_0x1a3488+'='+_0x516837,'handler':'sticky'});break;}}return _0x40f025;}export function correctFlags(_0x20039a,_0x125297){const _0x6debee=a86_0x30eb,_0x18cc02=buildKnownFlags(_0x125297),_0x53552d=buildFlagTypeMap(_0x125297),_0x29467c=aliasHandler(_0x20039a,_0x18cc02),_0x56f64f=stickyHandler(_0x20039a,_0x18cc02,_0x53552d),_0xf9fb58=[..._0x29467c,..._0x56f64f];if(_0xf9fb58[_0x6debee(0x194)]===0x0)return{'flags':_0x20039a,'corrections':[]};const _0x378ef8={..._0x20039a},_0x4fcdce=new Set();for(const _0x3d2403 of _0x29467c){_0x378ef8[_0x3d2403['corrected']]=_0x20039a[_0x3d2403['original']],_0x4fcdce['add'](_0x3d2403[_0x6debee(0x17b)]);}for(const _0x3ec9f5 of _0x56f64f){const _0x530d67=_0x3ec9f5[_0x6debee(0x17d)][_0x6debee(0x182)]('='),_0x23e7e2=_0x3ec9f5[_0x6debee(0x17d)][_0x6debee(0x17e)](0x0,_0x530d67),_0x5e8888=_0x3ec9f5['corrected'][_0x6debee(0x17e)](_0x530d67+0x1),_0x27012c=_0x53552d[_0x6debee(0x196)](_0x23e7e2)??_0x6debee(0x184);_0x27012c===_0x6debee(0x17a)?_0x378ef8[_0x23e7e2]=Number(_0x5e8888):_0x378ef8[_0x23e7e2]=_0x5e8888,_0x4fcdce['add'](_0x3ec9f5['original']);}for(const _0x47dc83 of _0x4fcdce){delete _0x378ef8[_0x47dc83];}return{'flags':_0x378ef8,'corrections':_0xf9fb58};}function a86_0x1386(){const _0x5ae661=['3459604auFfbU','16378140XnKtdd','toLowerCase','indexOf','non-interactive','string','yes','has','1545jdpGlC','type','4ikchLx','add','push','737227kQlPwQ','alias','nonInteractive','9198jmnPld','11912652bvTjkI','boolean','replace','10cEnbAr','length','25390599NfnZoA','get','612857JRzbSk','11QrIlnF','dryRun','name','global','set','version','104KKwWlR','dry-run','3DryHjD','number','original','appcode','corrected','slice'];a86_0x1386=function(){return _0x5ae661;};return a86_0x1386();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a87_0x41f0f7=a87_0x500b;(function(_0x395af0,_0x3aea9f){const _0x4025d9=a87_0x500b,_0x4f15f2=_0x395af0();while(!![]){try{const _0xe1f417=-parseInt(_0x4025d9(0x16b))/0x1+parseInt(_0x4025d9(0x15f))/0x2+-parseInt(_0x4025d9(0x162))/0x3+-parseInt(_0x4025d9(0x165))/0x4*(-parseInt(_0x4025d9(0x172))/0x5)+parseInt(_0x4025d9(0x169))/0x6+parseInt(_0x4025d9(0x15c))/0x7*(parseInt(_0x4025d9(0x176))/0x8)+-parseInt(_0x4025d9(0x168))/0x9*(-parseInt(_0x4025d9(0x15e))/0xa);if(_0xe1f417===_0x3aea9f)break;else _0x4f15f2['push'](_0x4f15f2['shift']());}catch(_0x67689e){_0x4f15f2['push'](_0x4f15f2['shift']());}}}(a87_0x1b94,0xb5b15));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT','MAX_QPS_LIMIT',a87_0x41f0f7(0x177)]);function nonEmptyString(_0x62c6b2){const _0x3d22ca=a87_0x41f0f7;if(typeof _0x62c6b2!=='string')return undefined;const _0x4f389b=_0x62c6b2[_0x3d22ca(0x170)]();return _0x4f389b||undefined;}function a87_0x500b(_0x294df7,_0x1b10b1){_0x294df7=_0x294df7-0x157;const _0x1b94ec=a87_0x1b94();let _0x500b19=_0x1b94ec[_0x294df7];return _0x500b19;}function buildRetryHint(_0x25bc17){const _0x36d852=a87_0x41f0f7,_0x662147=nonEmptyString(_0x25bc17),_0x22c37a=_0x662147?/^\d+$/[_0x36d852(0x15d)](_0x662147)?'Wait\x20'+_0x662147+_0x36d852(0x16c):_0x36d852(0x15b)+_0x662147+'.':_0x36d852(0x16a);return _0x22c37a+_0x36d852(0x171);}export function createRateLimitError(_0x53fde6){const _0x4861cd=a87_0x41f0f7,_0x37aa62=nonEmptyString(_0x53fde6[_0x4861cd(0x166)])?.[_0x4861cd(0x160)](),_0x2f3cbc=Number(_0x53fde6['status'])===0x1ad||_0x37aa62!==undefined&&RATE_LIMIT_ERROR_CODES[_0x4861cd(0x159)](_0x37aa62);if(!_0x2f3cbc)return undefined;return CliErrors[_0x4861cd(0x16d)](nonEmptyString(_0x53fde6[_0x4861cd(0x158)])??_0x4861cd(0x174),buildRetryHint(_0x53fde6[_0x4861cd(0x16e)]));}function a87_0x1b94(){const _0x2dfdd7=['\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','5155EmmoAt','call','Request\x20rate\x20limit\x20exceeded.','get','232040tmyGJK','IP_RATE_LIMIT_EXCEEDED','function','message','has','toLowerCase','Retry\x20after\x20','14mRfGcn','test','4284250HBXndV','657084LDuMfL','toUpperCase','number','3367722xRWrDE','entries','isArray','2804kZcZzr','errorCode','retry-after','9rahlnu','3271800TSORtH','Retry\x20after\x20a\x20short\x20delay.','216221QiyHQd','\x20seconds\x20before\x20retrying.','rateLimited','retryAfter','isInteger','trim'];a87_0x1b94=function(){return _0x2dfdd7;};return a87_0x1b94();}export function readRetryAfter(_0x5775c8){const _0x4bdce7=a87_0x41f0f7;if(!_0x5775c8||typeof _0x5775c8!=='object')return undefined;const _0x4e5d56=_0x5775c8[_0x4bdce7(0x175)];if(typeof _0x4e5d56===_0x4bdce7(0x157)){const _0x377f91=_0x4e5d56['call'](_0x5775c8,'Retry-After')??_0x4e5d56[_0x4bdce7(0x173)](_0x5775c8,'retry-after');return nonEmptyString(_0x377f91);}for(const [_0x1dc5a0,_0x17dbd1]of Object[_0x4bdce7(0x163)](_0x5775c8)){if(_0x1dc5a0[_0x4bdce7(0x15a)]()===_0x4bdce7(0x167))return nonEmptyString(_0x17dbd1)??(typeof _0x17dbd1==='number'?String(_0x17dbd1):undefined);}return undefined;}export function readRetryAfterSeconds(_0x1d6df4){const _0x25e685=a87_0x41f0f7;if(!_0x1d6df4||typeof _0x1d6df4!=='object'||Array[_0x25e685(0x164)](_0x1d6df4))return undefined;const _0x5d530e=_0x1d6df4['retryAfterSeconds'];if(typeof _0x5d530e===_0x25e685(0x161))return Number[_0x25e685(0x16f)](_0x5d530e)&&_0x5d530e>=0x0?String(_0x5d530e):undefined;const _0x5ae26c=nonEmptyString(_0x5d530e);return _0x5ae26c&&/^\d+$/[_0x25e685(0x15d)](_0x5ae26c)?_0x5ae26c:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a88_0x1810(){var _0x447b55=['11398530AADuqb','1076409PVLgTu','1711005PYUNGE','1969216USAHtf','1101070fxGdTi','337748GBbbfk','55734dWwDSV','8pRobrV','162XYardK','1JghUur'];a88_0x1810=function(){return _0x447b55;};return a88_0x1810();}function a88_0x27ef(_0x53bc02,_0x15582a){_0x53bc02=_0x53bc02-0xf9;var _0x1810eb=a88_0x1810();var _0x27ef90=_0x1810eb[_0x53bc02];return _0x27ef90;}(function(_0x34715c,_0x1df064){var _0x410598=a88_0x27ef,_0x17a7b7=_0x34715c();while(!![]){try{var _0x298089=-parseInt(_0x410598(0x101))/0x1*(parseInt(_0x410598(0xfd))/0x2)+-parseInt(_0x410598(0xfa))/0x3+-parseInt(_0x410598(0xff))/0x4*(parseInt(_0x410598(0xfc))/0x5)+-parseInt(_0x410598(0x100))/0x6*(-parseInt(_0x410598(0xfe))/0x7)+parseInt(_0x410598(0xfb))/0x8+-parseInt(_0x410598(0xf9))/0x9+parseInt(_0x410598(0x102))/0xa;if(_0x298089===_0x1df064)break;else _0x17a7b7['push'](_0x17a7b7['shift']());}catch(_0x5e4255){_0x17a7b7['push'](_0x17a7b7['shift']());}}}(a88_0x1810,0x49aad));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c6cda,_0xcd8bd6){const _0x4ef82f=a89_0x4420,_0x59f146=_0x4c6cda();while(!![]){try{const _0x4bdafe=-parseInt(_0x4ef82f(0xe0))/0x1*(parseInt(_0x4ef82f(0xf4))/0x2)+parseInt(_0x4ef82f(0xef))/0x3+parseInt(_0x4ef82f(0xe9))/0x4*(-parseInt(_0x4ef82f(0xea))/0x5)+-parseInt(_0x4ef82f(0xf9))/0x6*(-parseInt(_0x4ef82f(0xfc))/0x7)+parseInt(_0x4ef82f(0xd9))/0x8*(parseInt(_0x4ef82f(0xf3))/0x9)+-parseInt(_0x4ef82f(0xe6))/0xa*(parseInt(_0x4ef82f(0xf8))/0xb)+-parseInt(_0x4ef82f(0xd6))/0xc*(-parseInt(_0x4ef82f(0xe3))/0xd);if(_0x4bdafe===_0xcd8bd6)break;else _0x59f146['push'](_0x59f146['shift']());}catch(_0x300546){_0x59f146['push'](_0x59f146['shift']());}}}(a89_0x1965,0x62913));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4c5c3,_0x252466,_0x362df4){const _0x4be8cb=a89_0x4420,_0x2a7825=buildConfirmationContext(_0x4c5c3,_0x252466,_0x362df4),_0x4c6942=['⚠\x20\x20High-risk\x20operation:\x20'+_0x2a7825[_0x4be8cb(0xd8)]];return _0x2a7825['description']&&_0x4c6942[_0x4be8cb(0xf2)]('\x20\x20\x20'+_0x2a7825['description']),_0x2a7825[_0x4be8cb(0xde)]&&_0x4c6942[_0x4be8cb(0xf2)](_0x4be8cb(0xfa)+_0x2a7825[_0x4be8cb(0xde)]),_0x4c6942[_0x4be8cb(0xf2)](_0x4be8cb(0xe8)),_0x4c6942;}export function reconstructCommandArgv(_0x470c20,_0x4807f6){const _0x7ef2fe=a89_0x4420,_0x33f229=[CLI_BIN_NAME,_0x470c20[_0x7ef2fe(0xe5)],_0x470c20[_0x7ef2fe(0xfb)]];for(const [_0x1b335a,_0x567526]of Object[_0x7ef2fe(0xe1)](_0x4807f6)){if(_0x567526===!![])_0x33f229[_0x7ef2fe(0xf2)]('--'+_0x1b335a);else _0x567526!==![]&&_0x567526!==undefined&&_0x567526!==''&&_0x33f229[_0x7ef2fe(0xf2)]('--'+_0x1b335a+'\x20'+JSON[_0x7ef2fe(0xe7)](_0x567526));}return _0x33f229['push'](_0x7ef2fe(0xed)),_0x33f229['join']('\x20');}function buildConfirmationContext(_0x21b4ba,_0x1bee32,_0xe0b491){const _0x3433cc=a89_0x4420,_0x2cc5c1=extractAffectedRecords(_0xe0b491);return{'commandLabel':_0x1bee32,'description':_0x21b4ba[_0x3433cc(0xec)],'affectedRecords':_0x2cc5c1};}function a89_0x4420(_0x4267cb,_0x41bfd9){_0x4267cb=_0x4267cb-0xd6;const _0x19655c=a89_0x1965();let _0x4420fe=_0x19655c[_0x4267cb];return _0x4420fe;}function a89_0x1965(){const _0x29c7fa=['channel=','params=','kind=','scheduled-at','affectedRecords','kind','2WNwBHR','entries','name','13wTgxbC','schedule-id=','service','6640dPfJmH','stringify','\x20\x20\x20Continue?\x20[y/N]\x20','529768cUztys','20MSescW','params','description','--yes','channel','735459lCujKc','schedule-id','title','push','17748QtjQQA','144228QnsZgk','cron','length','join','11264BkhYyf','54VlEqKe','\x20\x20\x20Affected:\x20','command','361333NGfFxr','12504276gTBtIq','title=','commandLabel','24bjxVwS'];a89_0x1965=function(){return _0x29c7fa;};return a89_0x1965();}function extractAffectedRecords(_0x2e9e99){const _0x18a262=a89_0x4420,_0x32252e=[];if(_0x2e9e99['code'])_0x32252e['push']('code='+_0x2e9e99['code']);if(_0x2e9e99['id'])_0x32252e[_0x18a262(0xf2)]('id='+_0x2e9e99['id']);if(_0x2e9e99[_0x18a262(0xf0)])_0x32252e['push'](_0x18a262(0xe4)+_0x2e9e99[_0x18a262(0xf0)]);if(_0x2e9e99[_0x18a262(0xe2)])_0x32252e[_0x18a262(0xf2)]('name='+_0x2e9e99[_0x18a262(0xe2)]);if(_0x2e9e99[_0x18a262(0xf1)])_0x32252e[_0x18a262(0xf2)](_0x18a262(0xd7)+_0x2e9e99['title']);if(_0x2e9e99[_0x18a262(0xdf)])_0x32252e[_0x18a262(0xf2)](_0x18a262(0xdc)+_0x2e9e99[_0x18a262(0xdf)]);if(_0x2e9e99[_0x18a262(0xf5)])_0x32252e[_0x18a262(0xf2)]('cron='+_0x2e9e99['cron']);if(_0x2e9e99[_0x18a262(0xdd)])_0x32252e[_0x18a262(0xf2)]('scheduled-at='+_0x2e9e99[_0x18a262(0xdd)]);if(_0x2e9e99[_0x18a262(0xee)])_0x32252e[_0x18a262(0xf2)](_0x18a262(0xda)+_0x2e9e99[_0x18a262(0xee)]);if(_0x2e9e99['params'])_0x32252e['push'](_0x18a262(0xdb)+_0x2e9e99[_0x18a262(0xeb)]);return _0x32252e[_0x18a262(0xf6)]>0x0?_0x32252e[_0x18a262(0xf7)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32cbc0,_0x3e179f){const _0x338999=a90_0x3bda,_0x5f5a05=_0x32cbc0();while(!![]){try{const _0x58d50f=-parseInt(_0x338999(0x11e))/0x1*(parseInt(_0x338999(0x12c))/0x2)+parseInt(_0x338999(0x129))/0x3+parseInt(_0x338999(0x123))/0x4+parseInt(_0x338999(0x11d))/0x5*(-parseInt(_0x338999(0x125))/0x6)+parseInt(_0x338999(0x122))/0x7*(parseInt(_0x338999(0x126))/0x8)+-parseInt(_0x338999(0x127))/0x9*(-parseInt(_0x338999(0x120))/0xa)+-parseInt(_0x338999(0x124))/0xb*(-parseInt(_0x338999(0x128))/0xc);if(_0x58d50f===_0x3e179f)break;else _0x5f5a05['push'](_0x5f5a05['shift']());}catch(_0x319426){_0x5f5a05['push'](_0x5f5a05['shift']());}}}(a90_0x3e9a,0x816f2));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a90_0x3e9a(){const _0x4c52ad=['65IiXNsl','1FWdmNY','code','73930UpWaYL','message','497AEjdMB','404228XUnKIk','44ALLQXp','475458ieJfZq','80744zbPdjO','639yrZvBK','1146276bNaJYz','2092569lmwBlQ','string','response','1723714nNuwwW','stringify','description','trim','status'];a90_0x3e9a=function(){return _0x4c52ad;};return a90_0x3e9a();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a90_0x3bda(_0x572a87,_0x11e3ff){_0x572a87=_0x572a87-0x11d;const _0x3e9a81=a90_0x3e9a();let _0x3bdaf8=_0x3e9a81[_0x572a87];return _0x3bdaf8;}export function mapUserFacingExecuteError(_0x25a0ed){const _0x445343=a90_0x3bda;if(_0x25a0ed instanceof LovrabetError){const _0x11d277=userFacingLovrabetMessage(_0x25a0ed),_0x2a10e4=_0x25a0ed,_0x438aea=createRateLimitError({'status':_0x2a10e4[_0x445343(0x130)],'errorCode':_0x2a10e4[_0x445343(0x11f)],'message':_0x11d277,'retryAfter':readRetryAfter(_0x2a10e4[_0x445343(0x12b)]?.['headers'])??readRetryAfterSeconds(_0x2a10e4[_0x445343(0x12b)])});return _0x438aea??CliErrors['validation'](_0x11d277);}return _0x25a0ed;}function userFacingLovrabetMessage(_0x53d41d){const _0x5326f4=a90_0x3bda,_0x35e512=_0x53d41d[_0x5326f4(0x12e)];if(_0x35e512!==undefined&&_0x35e512!==null){if(typeof _0x35e512===_0x5326f4(0x12a)&&_0x35e512[_0x5326f4(0x12f)]())return _0x35e512[_0x5326f4(0x12f)]();try{return JSON[_0x5326f4(0x12d)](_0x35e512);}catch{}}return _0x53d41d[_0x5326f4(0x121)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x489fb1,_0x56cab2){const _0x540c7a=a91_0x1c6d,_0x2b12a0=_0x489fb1();while(!![]){try{const _0x599674=parseInt(_0x540c7a(0xb4))/0x1*(parseInt(_0x540c7a(0xb2))/0x2)+parseInt(_0x540c7a(0xa2))/0x3+-parseInt(_0x540c7a(0xcc))/0x4*(-parseInt(_0x540c7a(0xcb))/0x5)+parseInt(_0x540c7a(0x86))/0x6+parseInt(_0x540c7a(0x9d))/0x7*(parseInt(_0x540c7a(0xbe))/0x8)+parseInt(_0x540c7a(0x96))/0x9*(parseInt(_0x540c7a(0xc0))/0xa)+-parseInt(_0x540c7a(0xc5))/0xb;if(_0x599674===_0x56cab2)break;else _0x2b12a0['push'](_0x2b12a0['shift']());}catch(_0x525df0){_0x2b12a0['push'](_0x2b12a0['shift']());}}}(a91_0x15c4,0xb9ea4));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(_0x54da1d){const _0x56da42=a91_0x1c6d;return void _0x54da1d,AUTH_MODE[_0x56da42(0x9c)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2169ee,_0x47ce21){const _0x1664e8=a91_0x1c6d,_0x33e7ae=typeof _0x47ce21[_0x1664e8(0x94)]===_0x1664e8(0x92)&&_0x47ce21['app']['trim']();return{'rawFlags':_0x47ce21,'appCode':_0x2169ee[_0x1664e8(0xbb)]||productEnv('APPCODE')||(_0x33e7ae?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2169ee['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x47ce21),'defaultFormat':_0x2169ee[_0x1664e8(0xab)],'defaultPageSize':_0x2169ee['pageSize'],'defaultVerbose':_0x2169ee[_0x1664e8(0xb1)],'riskLevel':_0x2169ee[_0x1664e8(0xaf)],'accessKey':_0x2169ee['accessKey'],'env':_0x2169ee[_0x1664e8(0xa1)],'mergedCli':{'defaultApp':_0x2169ee[_0x1664e8(0x9b)],'currentApp':_0x2169ee[_0x1664e8(0xaa)],'appCode':_0x2169ee['appCode']}};}export function createLovrabetRunnerAdapter(_0x106b47={}){const _0xe7880c=a91_0x1c6d,_0x4f428a={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xe7880c(0x91)](_0x112b0c=>PIPELINE_FLAG_NAMES[_0xe7880c(0xa8)](_0x112b0c[_0xe7880c(0xc8)]))['map'](({name:_0x2994b8,type:_0x5de9b5,description:_0x5939e9})=>({'name':_0x2994b8,'type':_0x5de9b5,'description':_0x5939e9})),'formatOutput':_0x106b47[_0xe7880c(0xad)]??formatOutput,'getCommandLabel'(_0x239a3c){const _0x562ee4=_0xe7880c;return CLI_BIN_NAME+'\x20'+_0x239a3c[_0x562ee4(0xbd)]+'\x20'+_0x239a3c[_0x562ee4(0xac)];},'riskPolicy':{'onViolation'(_0x1c516a){const _0x5524dc=_0xe7880c;console[_0x5524dc(0x8d)](_0x1c516a);},'createError'(_0x1d1acb){return CliErrors['cancelled'](_0x1d1acb);}},async 'prepare'(_0x2ae35a,_0x456aa6){const _0x4ff289=_0xe7880c,_0x116f15=resolveAuthMode(_0x456aa6);if(_0x2ae35a[_0x4ff289(0xa7)]!==![]){if(!_0x456aa6[_0x4ff289(0x8b)])throw CliErrors[_0x4ff289(0xbf)](_0x4ff289(0xb9)+PRODUCT_CONFIG[_0x4ff289(0xb0)]+_0x4ff289(0x9f)+productEnvName(_0x4ff289(0x8a))+'.');const {setActiveAK:_0x1e6725}=await import('../core/api-client.js');_0x1e6725(_0x456aa6[_0x4ff289(0x8b)]);}let _0x535f50='';if(_0x2ae35a[_0x4ff289(0xc4)]!==![]){_0x535f50=_0x456aa6['appCode']??'',_0x535f50=await resolveExplicitAppName(_0x2ae35a,_0x456aa6,_0x535f50);if(!_0x535f50){await assertSelectedAppNameIsRuntimeAccessible(_0x2ae35a,_0x456aa6);throw CliErrors[_0x4ff289(0xa6)](_0x4ff289(0xc2)+PRODUCT_CONFIG[_0x4ff289(0xb0)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x2ae35a,_0x456aa6,_0x535f50);}if(_0x535f50){const {initSdkClient:_0x371d29}=await import(_0x4ff289(0x89));_0x371d29({'appCode':_0x535f50,'env':_0x456aa6[_0x4ff289(0xa1)]??'production','accessKey':_0x456aa6['accessKey'],'authMode':_0x116f15}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x456aa6[_0x4ff289(0xba)]},'numbers':{'pagesize':_0x456aa6[_0x4ff289(0xc9)]}},'extras':{'appCode':_0x535f50,'cookie':'','apiDomain':_0x456aa6[_0x4ff289(0x87)],'apiDir':'','accessKey':_0x456aa6[_0x4ff289(0x8b)],'envName':_0x456aa6[_0x4ff289(0xa1)],'mergedCli':_0x456aa6['mergedCli']}};},'confirmHighRisk':_0x106b47[_0xe7880c(0x8e)]??(async({def:_0x24e33c,env:_0x5db239,flags:_0x2a0975,commandLabel:_0x105a2a})=>{const _0x4904dd=_0xe7880c;if(_0x5db239[_0x4904dd(0xb6)]){const _0x375a5b=reconstructCommandArgv(_0x24e33c,_0x2a0975);throw CliErrors[_0x4904dd(0xb3)](_0x4904dd(0x93)+_0x105a2a+_0x4904dd(0x9e)+(_0x4904dd(0xca)+_0x375a5b));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x24e33c,_0x105a2a,_0x2a0975),'createCancelledError':_0x634a9=>CliErrors['cancelled'](_0x634a9)});}),'mapDryRunError'(_0x258ef4){return mapUserFacingExecuteError(_0x258ef4);},'mapExecuteError'(_0x3decb8){return mapUserFacingExecuteError(_0x3decb8);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4f428a;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0xca9e1f=a91_0x1c6d;try{if(sdkClientInitialized){const {clearSdkClient:_0x4a13d1}=await import(_0xca9e1f(0x89));_0x4a13d1();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1ce151}=await import(_0xca9e1f(0xc6));_0x1ce151();}}async function resolveExplicitAppName(_0x315eb7,_0x4aba6f,_0x4971f9){const _0x421dab=a91_0x1c6d;if(_0x315eb7[_0x421dab(0xc4)]===![])return _0x4971f9;const _0x4916f1=typeof _0x4aba6f[_0x421dab(0x8f)][_0x421dab(0x94)]===_0x421dab(0x92)?_0x4aba6f[_0x421dab(0x8f)]['app']['trim']():'';if(!_0x4916f1)return _0x4971f9;const _0x14c937=typeof _0x4aba6f[_0x421dab(0x8f)]['appcode']==='string'&&_0x4aba6f[_0x421dab(0x8f)]['appcode'][_0x421dab(0xa5)]()||productEnv(_0x421dab(0xbc));if(_0x14c937||_0x4aba6f[_0x421dab(0xa0)]===_0x421dab(0xc7))return _0x4971f9;const {getRemoteAppList:_0x2f35a3}=await import(_0x421dab(0xc1)),_0x5c1f6b=await _0x2f35a3({'env':_0x4aba6f[_0x421dab(0xa1)]??_0x421dab(0xae),'accessKey':_0x4aba6f[_0x421dab(0x8b)]}),_0x50767e=findAppByName(_0x5c1f6b['items'],_0x4916f1);if(_0x50767e&&!isRuntimeAccessibleApp(_0x50767e))throw runtimeInaccessibleAppError(_0x50767e,'\x22'+_0x4916f1+'\x22');const _0x2c26d3=_0x50767e?.[_0x421dab(0xbb)]?.[_0x421dab(0xa5)]();if(_0x2c26d3)return _0x2c26d3;throw CliErrors['validation'](_0x421dab(0xb8)+_0x4916f1,_0x421dab(0x88)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x4916f1+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1b6c32,_0x183a10){const _0x2d76cc=a91_0x1c6d;if(_0x1b6c32[_0x2d76cc(0xc4)]===![]||!_0x183a10[_0x2d76cc(0x8b)])return;const _0x4a2a4b=(typeof _0x183a10[_0x2d76cc(0x8f)]['app']===_0x2d76cc(0x92)&&_0x183a10[_0x2d76cc(0x8f)][_0x2d76cc(0x94)][_0x2d76cc(0xa5)]()?_0x183a10['rawFlags']['app']:_0x183a10['mergedCli']?.['currentApp']??_0x183a10[_0x2d76cc(0xa3)]?.[_0x2d76cc(0x9b)])?.[_0x2d76cc(0xa5)]();if(!_0x4a2a4b)return;const {getRemoteAppList:_0x1ffbac}=await import(_0x2d76cc(0xc1)),_0x1ab042=await _0x1ffbac({'env':_0x183a10[_0x2d76cc(0xa1)]??'production','accessKey':_0x183a10['accessKey']}),_0x5f4970=findAppByName(_0x1ab042[_0x2d76cc(0x9a)],_0x4a2a4b);if(_0x5f4970&&!isRuntimeAccessibleApp(_0x5f4970))throw runtimeInaccessibleAppError(_0x5f4970,'\x22'+_0x4a2a4b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xe8c69f,_0x45801f,_0xb34a3){const _0x460fb0=a91_0x1c6d;if(_0xe8c69f[_0x460fb0(0xc4)]===![]||!_0x45801f['accessKey'])return;const {getRemoteAppList:_0x2ebcc9}=await import('../commands/app/remote-source.js'),_0x5fc7ba=await _0x2ebcc9({'env':_0x45801f[_0x460fb0(0xa1)]??_0x460fb0(0xae),'accessKey':_0x45801f[_0x460fb0(0x8b)]}),_0x48b911=findAppByCode(_0x5fc7ba[_0x460fb0(0x9a)],_0xb34a3);if(_0x48b911&&!isRuntimeAccessibleApp(_0x48b911))throw runtimeInaccessibleAppError(_0x48b911,_0x460fb0(0x85)+_0xb34a3+'\x22');}export async function runCommand(_0xb64d2a,_0x23acb5,_0x153def=terminalRunnerAdapter){await runCommandWithAdapter(shouldAttachUpdateNotice(_0xb64d2a)?withUpdateNotice(_0xb64d2a):_0xb64d2a,_0x23acb5,_0x153def);}function shouldAttachUpdateNotice(_0x253f8a){const _0xeef279=a91_0x1c6d;return![_0xeef279(0xb7),_0xeef279(0x8c),_0xeef279(0xc3)][_0xeef279(0x97)](_0x253f8a[_0xeef279(0xbd)]);}function a91_0x1c6d(_0x151518,_0x591b51){_0x151518=_0x151518-0x85;const _0x15c448=a91_0x15c4();let _0x1c6da9=_0x15c448[_0x151518];return _0x1c6da9;}function withUpdateNotice(_0x5b015d){return{..._0x5b015d,async 'execute'(_0x567994){const _0x54b3a6=a91_0x1c6d,_0x3b3e76=shouldResolveUpdateNotice(_0x567994)?resolveLatestUpdateNotice()[_0x54b3a6(0xa9)](()=>null):Promise[_0x54b3a6(0x98)](null),_0x240019=await _0x5b015d[_0x54b3a6(0x95)](_0x567994);return attachUpdateNotice(_0x240019,await _0x3b3e76);}};}function a91_0x15c4(){const _0x9a2fbb=['requiresAppCode','22847176nutLvI','../core/api-client.js','local-alias','name','defaultPageSize','\x20\x20To\x20proceed:\x20','368550gTaATu','12goHdbi','appcode\x20\x22','248088GyVJga','apiDomain','Run\x20`','../core/sdk-client.js','ACCESS_KEY','accessKey','schema','error','confirmHighRisk','rawFlags','object','filter','string','High-risk\x20operation\x20`','app','execute','88407rtPXtk','includes','resolve','nonInteractive','items','defaultApp','ClientAk','7WtWMAz','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','\x20or\x20pass\x20','appCodeSource','env','1176306pixlKm','mergedCli','_notice','trim','configMissing','requiresAuth','has','catch','currentApp','format','command','formatOutput','production','riskLevel','newConfigFileName','verbose','120wgRorf','validation','16794WFETrD','pretty','isNonInteractive','update','Unknown\x20app:\x20','Set\x20accessKey\x20in\x20','defaultVerbose','appCode','APPCODE','service','8860344KLEnXk','authRequired','70OiNkwZ','../commands/app/remote-source.js','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','doctor'];a91_0x15c4=function(){return _0x9a2fbb;};return a91_0x15c4();}function shouldResolveUpdateNotice(_0x110f11){const _0xc18b2e=a91_0x1c6d;return _0x110f11[_0xc18b2e(0xab)]===_0xc18b2e(0xb5)&&!_0x110f11[_0xc18b2e(0x99)];}function attachUpdateNotice(_0xe96ce3,_0x4a9911){const _0x32a6ea=a91_0x1c6d;if(!_0x4a9911||!_0xe96ce3||typeof _0xe96ce3!=='object')return _0xe96ce3;const _0x487e36=_0xe96ce3,_0x33af63=typeof _0x487e36[_0x32a6ea(0xa4)]===_0x32a6ea(0x90)&&_0x487e36[_0x32a6ea(0xa4)]!==null?_0x487e36[_0x32a6ea(0xa4)]:{};return{..._0x487e36,'_notice':{..._0x33af63,'update':_0x4a9911}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1edf14,_0x2e9008){const _0x43826b=a92_0x1a0b,_0x3e11a6=_0x1edf14();while(!![]){try{const _0x1a8383=-parseInt(_0x43826b(0xc7))/0x1+-parseInt(_0x43826b(0xcd))/0x2+parseInt(_0x43826b(0xc4))/0x3+parseInt(_0x43826b(0xc0))/0x4+parseInt(_0x43826b(0xc1))/0x5*(-parseInt(_0x43826b(0xce))/0x6)+parseInt(_0x43826b(0xc9))/0x7*(-parseInt(_0x43826b(0xc8))/0x8)+parseInt(_0x43826b(0xd0))/0x9*(parseInt(_0x43826b(0xc6))/0xa);if(_0x1a8383===_0x2e9008)break;else _0x3e11a6['push'](_0x3e11a6['shift']());}catch(_0x475a4e){_0x3e11a6['push'](_0x3e11a6['shift']());}}}(a92_0x10a8,0x40d31));import{buildSchemaPayload as a92_0x101b58}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';function a92_0x10a8(){const _0x2240a3=['none','1278270VkJrqd','../commands/registry.js','10PGvQRR','378507LEnbyA','520ASBmzD','38528ZpXAZF','commands','auth','services','785820WERbiS','120EfDdBd','map','8852706EMWpRx','has','required','1712616afFuYc','110795MZgYAw','service'];a92_0x10a8=function(){return _0x2240a3;};return a92_0x10a8();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1f6e9d=a92_0x1a0b,{serviceRegistry:_0x2e683f,findDefinition:_0x28a620}=await import(_0x1f6e9d(0xc5)),_0x4ddceb=new Set(_0x2e683f[_0x1f6e9d(0xcf)](_0x29e22e=>_0x29e22e[_0x1f6e9d(0xc2)])),_0x27fd1e=listDynamicServiceEntries()['filter'](_0xa03f44=>!_0x4ddceb[_0x1f6e9d(0xd1)](_0xa03f44['service'])),_0x51a7f1=a92_0x101b58({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x2e683f,_0x27fd1e),'buildAllFlags':buildAllFlags,'findDefinition':(_0x39c999,_0x19e92f)=>_0x28a620(_0x39c999,_0x19e92f)??findDynamicServiceDefinition(_0x39c999,_0x19e92f)});return normalizeSchemaPayload(_0x51a7f1);}function a92_0x1a0b(_0x5ebef9,_0x2e1f4f){_0x5ebef9=_0x5ebef9-0xbf;const _0x10a8f0=a92_0x10a8();let _0x1a0b4d=_0x10a8f0[_0x5ebef9];return _0x1a0b4d;}function normalizeSchemaPayload(_0x1bdfe8){const _0x3e3030=a92_0x1a0b;return{..._0x1bdfe8,'schemaVersion':0x2,'services':_0x1bdfe8[_0x3e3030(0xcc)][_0x3e3030(0xcf)](_0x5f133d=>({..._0x5f133d,'commands':_0x5f133d[_0x3e3030(0xca)][_0x3e3030(0xcf)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x377071){const _0x3b5497=a92_0x1a0b,_0x23ebae=_0x377071;return{..._0x377071,'auth':_0x23ebae[_0x3b5497(0xcb)]??(_0x377071['requiresAuth']?_0x3b5497(0xbf):_0x3b5497(0xc3))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b0054,_0x54b013){const _0x46f8bc=a93_0x4256,_0x27ca35=_0x2b0054();while(!![]){try{const _0x557824=parseInt(_0x46f8bc(0x6f))/0x1+-parseInt(_0x46f8bc(0x70))/0x2+parseInt(_0x46f8bc(0x73))/0x3+parseInt(_0x46f8bc(0x72))/0x4+parseInt(_0x46f8bc(0x6e))/0x5+-parseInt(_0x46f8bc(0x6c))/0x6+-parseInt(_0x46f8bc(0x6d))/0x7;if(_0x557824===_0x54b013)break;else _0x27ca35['push'](_0x27ca35['shift']());}catch(_0x4d0104){_0x27ca35['push'](_0x27ca35['shift']());}}}(a93_0x338f,0x40598));export function insertDynamicServicesAfterServiceTree(_0x10bfff,_0x5b0599){const _0x5342db=a93_0x4256;if(_0x5b0599['length']===0x0)return[..._0x10bfff];const _0x143a33=_0x10bfff[_0x5342db(0x71)](_0x6c9d4c=>_0x6c9d4c['service']===_0x5342db(0x74));if(_0x143a33<0x0)return[..._0x10bfff,..._0x5b0599];return[..._0x10bfff[_0x5342db(0x6b)](0x0,_0x143a33+0x1),..._0x5b0599,..._0x10bfff[_0x5342db(0x6b)](_0x143a33+0x1)];}function a93_0x4256(_0x17d63f,_0x5a213e){_0x17d63f=_0x17d63f-0x6b;const _0x338f22=a93_0x338f();let _0x4256c1=_0x338f22[_0x17d63f];return _0x4256c1;}function a93_0x338f(){const _0x20cf7a=['1035524DqdSNz','findIndex','324832LDSnIb','1481457lXTSzX','service','slice','1700148QhHeRv','1787877exuRFl','1616370GbCOch','421806FObqGm'];a93_0x338f=function(){return _0x20cf7a;};return a93_0x338f();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a94_0x3318(_0x1dc5e7,_0x57b3f3){_0x1dc5e7=_0x1dc5e7-0x9d;var _0x595486=a94_0x5954();var _0x3318a6=_0x595486[_0x1dc5e7];return _0x3318a6;}(function(_0x2732cb,_0x5b0d79){var _0x311a2a=a94_0x3318,_0x30b776=_0x2732cb();while(!![]){try{var _0x181478=-parseInt(_0x311a2a(0x9d))/0x1*(parseInt(_0x311a2a(0xa3))/0x2)+parseInt(_0x311a2a(0x9f))/0x3*(-parseInt(_0x311a2a(0xa4))/0x4)+parseInt(_0x311a2a(0xa6))/0x5+-parseInt(_0x311a2a(0xa1))/0x6+parseInt(_0x311a2a(0xa0))/0x7+parseInt(_0x311a2a(0xa2))/0x8*(-parseInt(_0x311a2a(0x9e))/0x9)+parseInt(_0x311a2a(0xa5))/0xa;if(_0x181478===_0x5b0d79)break;else _0x30b776['push'](_0x30b776['shift']());}catch(_0x262697){_0x30b776['push'](_0x30b776['shift']());}}}(a94_0x5954,0xf1055));function a94_0x5954(){var _0x2ef82a=['328542gGkdwa','4320916FRBjdP','17962040NdmKSQ','7887765GjaROF','7Dwshpk','52848usedXo','3rKptqN','7631001BCNUTi','6704214ZdCLph','176xmWSHM'];a94_0x5954=function(){return _0x2ef82a;};return a94_0x5954();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.18
|
|
1
|
+
export declare const VERSION = "2.1.18";
|
|
2
2
|
export declare const GIT_TAG = "v2.1.18-beta.3";
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-07-
|
|
3
|
+
export declare const GIT_COMMIT = "835e653";
|
|
4
|
+
export declare const BUILD_TIME = "2026-07-30T11:21:19.193Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x44f9ec=a95_0x4418;(function(_0xeb906b,_0x592252){const _0x566ba2=a95_0x4418,_0x4009d3=_0xeb906b();while(!![]){try{const _0x29ebbb=parseInt(_0x566ba2(0x167))/0x1*(-parseInt(_0x566ba2(0x174))/0x2)+parseInt(_0x566ba2(0x168))/0x3+parseInt(_0x566ba2(0x172))/0x4+parseInt(_0x566ba2(0x16f))/0x5*(-parseInt(_0x566ba2(0x16c))/0x6)+-parseInt(_0x566ba2(0x16e))/0x7*(-parseInt(_0x566ba2(0x169))/0x8)+parseInt(_0x566ba2(0x170))/0x9*(-parseInt(_0x566ba2(0x16d))/0xa)+parseInt(_0x566ba2(0x171))/0xb;if(_0x29ebbb===_0x592252)break;else _0x4009d3['push'](_0x4009d3['shift']());}catch(_0x1e8621){_0x4009d3['push'](_0x4009d3['shift']());}}}(a95_0x41f7,0xc75f3));export const VERSION=a95_0x44f9ec(0x173);export const GIT_TAG=a95_0x44f9ec(0x166);function a95_0x41f7(){const _0x1fa976=['3062545MRuYVK','3303pGojSO','23365969MtsLyz','1272840hzRqRz','2.1.18','2RLuidE','v2.1.18-beta.3','1061569PcNsQp','404652fIXXUv','8zUwkho','835e653','2026-07-30T11:21:19.193Z','6NthMQr','17180wuPkGZ','3807566nCTctf'];a95_0x41f7=function(){return _0x1fa976;};return a95_0x41f7();}export const GIT_COMMIT=a95_0x44f9ec(0x16a);function a95_0x4418(_0x1584b0,_0x47f3ca){_0x1584b0=_0x1584b0-0x166;const _0x41f711=a95_0x41f7();let _0x4418de=_0x41f711[_0x1584b0];return _0x4418de;}export const BUILD_TIME=a95_0x44f9ec(0x16b);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x104c(_0xc0ae78,_0x374ad5){_0xc0ae78=_0xc0ae78-0x1b3;const _0x3fca2e=a96_0x3fca();let _0x104c87=_0x3fca2e[_0xc0ae78];return _0x104c87;}function a96_0x3fca(){const _0x4e37d7=['7fBIhfO','180DgBocv','\x20--help','\x20to\x20view\x20available\x20commands.','8469744pVKVIA','47905kGxlWu','1703256ejRALA','42579wFCCtx','215BQzUnb','\x20\x20Use\x20','265204NyZhDU','column','7HRNlNN','3489567XJgvSG','57534SjXnzs','4JdJfvc','green'];a96_0x3fca=function(){return _0x4e37d7;};return a96_0x3fca();}(function(_0x495536,_0x1c0077){const _0x3d3f05=a96_0x104c,_0x4446d3=_0x495536();while(!![]){try{const _0xdcbdf9=-parseInt(_0x3d3f05(0x1b4))/0x1*(-parseInt(_0x3d3f05(0x1c3))/0x2)+-parseInt(_0x3d3f05(0x1b5))/0x3*(parseInt(_0x3d3f05(0x1b7))/0x4)+-parseInt(_0x3d3f05(0x1c1))/0x5*(-parseInt(_0x3d3f05(0x1b6))/0x6)+parseInt(_0x3d3f05(0x1b9))/0x7*(-parseInt(_0x3d3f05(0x1bf))/0x8)+-parseInt(_0x3d3f05(0x1c0))/0x9+-parseInt(_0x3d3f05(0x1ba))/0xa*(parseInt(_0x3d3f05(0x1be))/0xb)+parseInt(_0x3d3f05(0x1bd))/0xc;if(_0xdcbdf9===_0x1c0077)break;else _0x4446d3['push'](_0x4446d3['shift']());}catch(_0x3882c6){_0x4446d3['push'](_0x4446d3['shift']());}}}(a96_0x3fca,0x8f580));import{jsx as a96_0x43d1ee,jsxs as a96_0x4f4330}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x37f702=a96_0x104c,{exit:_0x2b16dd}=useApp();return useEffect(()=>{_0x2b16dd();},[_0x2b16dd]),a96_0x4f4330(Box,{'flexDirection':_0x37f702(0x1b3),'marginTop':0x1,'marginBottom':0x1,'children':[a96_0x43d1ee(Box,{'children':a96_0x43d1ee(Text,{'bold':!![],'color':_0x37f702(0x1b8),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a96_0x4f4330(Box,{'marginTop':0x1,'children':[a96_0x43d1ee(Text,{'dimColor':!![],'children':_0x37f702(0x1c2)}),a96_0x43d1ee(Text,{'bold':!![],'color':_0x37f702(0x1b8),'children':CLI_BIN_NAME+_0x37f702(0x1bb)}),a96_0x43d1ee(Text,{'dimColor':!![],'children':_0x37f702(0x1bc)})]})]});}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a97_0x3a09(){const _0x39266e=['write','33XlFaoM','1338560VIyJLX','command','487034aZtKMz','1867776AeGTyy','739022rRMLeN','9sVwMue','risk','service','filter','91kwPrSE','split','217254wtftTM','6fosUOa','writeEventSubject','2162624xKAhji','4077740bVcqhj','lovrabet.write.completed'];a97_0x3a09=function(){return _0x39266e;};return a97_0x3a09();}function a97_0x4f9e(_0x5a0725,_0x5bedd6){_0x5a0725=_0x5a0725-0x18a;const _0x3a09b6=a97_0x3a09();let _0x4f9e5f=_0x3a09b6[_0x5a0725];return _0x4f9e5f;}(function(_0x29c266,_0x52092d){const _0x4f81f9=a97_0x4f9e,_0x1385a2=_0x29c266();while(!![]){try{const _0x5a1529=parseInt(_0x4f81f9(0x18d))/0x1+-parseInt(_0x4f81f9(0x18b))/0x2*(-parseInt(_0x4f81f9(0x195))/0x3)+-parseInt(_0x4f81f9(0x197))/0x4+parseInt(_0x4f81f9(0x19c))/0x5+-parseInt(_0x4f81f9(0x194))/0x6*(-parseInt(_0x4f81f9(0x192))/0x7)+-parseInt(_0x4f81f9(0x18c))/0x8*(-parseInt(_0x4f81f9(0x18e))/0x9)+-parseInt(_0x4f81f9(0x198))/0xa*(parseInt(_0x4f81f9(0x19b))/0xb);if(_0x5a1529===_0x52092d)break;else _0x1385a2['push'](_0x1385a2['shift']());}catch(_0x205830){_0x1385a2['push'](_0x1385a2['shift']());}}}(a97_0x3a09,0x69f3b));export function canonicalLovrabetOperation(_0xcdd859){const _0x38dfa3=a97_0x4f9e;return[_0xcdd859[_0x38dfa3(0x190)],..._0xcdd859[_0x38dfa3(0x18a)]['trim']()[_0x38dfa3(0x193)](/\s+/)][_0x38dfa3(0x191)](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0xf29489,_0xdaee7c,_0x1997e8,_0x19682a){const _0x479017=a97_0x4f9e;if(_0x19682a||_0x1997e8['ok']!==!![]||_0xf29489[_0x479017(0x18f)]!==_0x479017(0x19a)&&_0xf29489[_0x479017(0x18f)]!=='high-risk-write')return undefined;const _0x2a3c6=_0xf29489[_0x479017(0x196)]?.(_0x1997e8),_0x50b38c={'type':_0x479017(0x199),'operation':_0xdaee7c,'risk':_0xf29489['risk'],..._0x2a3c6?{'subject':_0x2a3c6}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x50b38c}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41a925,_0x26cbb4){const _0x2d3d13=a98_0x4094,_0x5e55c5=_0x41a925();while(!![]){try{const _0x25c5b2=parseInt(_0x2d3d13(0x1aa))/0x1*(-parseInt(_0x2d3d13(0x198))/0x2)+-parseInt(_0x2d3d13(0x1ab))/0x3+parseInt(_0x2d3d13(0x18a))/0x4+parseInt(_0x2d3d13(0x18b))/0x5+parseInt(_0x2d3d13(0x19b))/0x6*(-parseInt(_0x2d3d13(0x199))/0x7)+parseInt(_0x2d3d13(0x189))/0x8+parseInt(_0x2d3d13(0x1a1))/0x9*(parseInt(_0x2d3d13(0x19e))/0xa);if(_0x25c5b2===_0x26cbb4)break;else _0x5e55c5['push'](_0x5e55c5['shift']());}catch(_0x3598b7){_0x5e55c5['push'](_0x5e55c5['shift']());}}}(a98_0x8e29,0xd5048));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a98_0x4094(_0x31fac6,_0x378ae7){_0x31fac6=_0x31fac6-0x188;const _0x8e2977=a98_0x8e29();let _0x409419=_0x8e2977[_0x31fac6];return _0x409419;}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:_0x590f90,command:_0x93cec5,risk:_0x218435,dryRun:_0x15b9fd}){const _0x453a7b=a98_0x4094;return JSON[_0x453a7b(0x1a4)]({'ok':_0x590f90['ok'],'command':_0x93cec5,'risk':_0x218435,..._0x15b9fd?{'dryRun':!![]}:{},..._0x590f90['data']!==undefined?{'data':_0x590f90[_0x453a7b(0x19f)]}:{},..._0x590f90[_0x453a7b(0x1a5)]?{'message':_0x590f90['message']}:{}});}};export async function invokeLovrabet(_0x291699,_0x34f272){return runSerialized(async()=>{const _0x5edbbf=a98_0x4094;throwIfAborted(_0x34f272['signal']);const _0x44b188=await resolveLovrabetInvocation(_0x291699),_0x2f171d=canonicalLovrabetOperation(_0x44b188[_0x5edbbf(0x192)]),_0x1caa64={},_0x241e68=buildConfigFromFlags(_0x44b188['rawFlags']);await initGlobalEnvironment(_0x241e68);const _0x2eb31a=createPipelineEnv(_0x241e68,{..._0x44b188['rawFlags'],'yes':_0x44b188['definition'][_0x5edbbf(0x191)]===_0x5edbbf(0x18c)?!![]:_0x44b188[_0x5edbbf(0x18f)][_0x5edbbf(0x19a)],'nonInteractive':!![]});_0x2eb31a[_0x5edbbf(0x188)]=_0x44b188['args'],_0x2eb31a['isNonInteractive']=!![],_0x2eb31a[_0x5edbbf(0x196)]=_0x5edbbf(0x18c);const _0x4ff390=withEmbeddedLifecycle(_0x44b188[_0x5edbbf(0x192)],_0x2f171d,_0x34f272),_0xf4e154=createLovrabetRunnerAdapter({'formatOutput'(_0x51f0fc,_0x37f0a0){const _0x3033b9=_0x5edbbf;_0x1caa64[_0x3033b9(0x1a0)]=_0x51f0fc,_0x1caa64[_0x3033b9(0x190)]=_0x37f0a0[_0x3033b9(0x190)],_0x1caa64[_0x3033b9(0x191)]=_0x37f0a0['risk'],_0x1caa64['format']=_0x37f0a0[_0x3033b9(0x1a3)],_0x1caa64[_0x3033b9(0x1a9)]=_0x37f0a0[_0x3033b9(0x1a9)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x4ff390,_0x2eb31a,_0xf4e154);if(!_0x1caa64[_0x5edbbf(0x1a0)]||!_0x1caa64[_0x5edbbf(0x190)]||!_0x1caa64[_0x5edbbf(0x191)]||!_0x1caa64[_0x5edbbf(0x1a3)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x2eb524=_0x34f272[_0x5edbbf(0x18e)]??defaultPresentation,_0x1c7b3c=_0x1caa64['dryRun']===!![],_0xccc70c={'result':_0x1caa64[_0x5edbbf(0x1a0)],'command':_0x1caa64[_0x5edbbf(0x190)],'operation':_0x2f171d,'risk':_0x1caa64[_0x5edbbf(0x191)],'format':_0x1caa64[_0x5edbbf(0x1a3)],'dryRun':_0x1c7b3c},_0x2cb594=createLovrabetWriteMetadata(_0x44b188[_0x5edbbf(0x192)],_0x2f171d,_0x1caa64['result'],_0x1c7b3c);let _0x1892f5;try{_0x1892f5=await _0x2eb524[_0x5edbbf(0x18d)](_0xccc70c);}catch(_0x3aea84){if(!_0x2cb594||_0x2eb524===defaultPresentation)throw _0x3aea84;_0x1892f5=await defaultPresentation[_0x5edbbf(0x18d)](_0xccc70c);}return{'operation':_0x2f171d,'risk':_0x1caa64[_0x5edbbf(0x191)],'mode':_0x1c7b3c?_0x5edbbf(0x1a7):'execute','result':_0x1caa64[_0x5edbbf(0x1a0)],'output':_0x1892f5,..._0x2cb594?{'metadata':_0x2cb594}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x689b3a,_0x5619fe,_0x10f684){return{..._0x689b3a,async 'execute'(_0x4f2d23){const _0x250e2c=a98_0x4094;return throwIfAborted(_0x10f684[_0x250e2c(0x1a6)]),(_0x689b3a[_0x250e2c(0x191)]===_0x250e2c(0x197)||_0x689b3a[_0x250e2c(0x191)]===_0x250e2c(0x18c))&&await _0x10f684[_0x250e2c(0x195)][_0x250e2c(0x194)]({'operation':_0x5619fe,'risk':_0x689b3a[_0x250e2c(0x191)],'description':_0x689b3a['description'],..._0x10f684['signal']?{'signal':_0x10f684[_0x250e2c(0x1a6)]}:{}}),throwIfAborted(_0x10f684[_0x250e2c(0x1a6)]),_0x689b3a[_0x250e2c(0x1a2)](_0x4f2d23);}};}function a98_0x8e29(){const _0x5877b6=['confirm','confirmation','riskLevel','write','9354SytKwx','91427qHRBBL','yes','588OvYBaW','aborted','Lovrabet\x20invocation\x20aborted.','7948190OPTOdJ','data','result','27OrBMsz','execute','format','stringify','message','signal','dry-run','reason','dryRun','373RLBhJM','2019567EQaevK','args','4251888mXxjrb','2089420GNRrCB','5659550uDFXaA','high-risk-write','present','presentation','rawFlags','command','risk','definition','AbortError'];a98_0x8e29=function(){return _0x5877b6;};return a98_0x8e29();}function throwIfAborted(_0x1bbb72){const _0x1fddb4=a98_0x4094;if(_0x1bbb72?.[_0x1fddb4(0x19c)])throw _0x1bbb72[_0x1fddb4(0x1a8)]instanceof Error?_0x1bbb72[_0x1fddb4(0x1a8)]:new DOMException(_0x1fddb4(0x19d),_0x1fddb4(0x193));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x232f98=a99_0x505a;function a99_0x505a(_0x28779d,_0x228b29){_0x28779d=_0x28779d-0x176;const _0x3b954e=a99_0x3b95();let _0x505add=_0x3b954e[_0x28779d];return _0x505add;}function a99_0x3b95(){const _0x5f16ca=['4zCnipe','438wiGLgt','78948YYEdlh','322fIGslM','resolve','192112HgpKZp','4987656DgoCXF','370QPTbkr','1849453YTRTtd','1557708pndNrj','72090FxktJR','16683777ijpyFh','catch'];a99_0x3b95=function(){return _0x5f16ca;};return a99_0x3b95();}(function(_0x158495,_0x359890){const _0x11325b=a99_0x505a,_0x7bde49=_0x158495();while(!![]){try{const _0x4b4192=parseInt(_0x11325b(0x178))/0x1+parseInt(_0x11325b(0x179))/0x2+-parseInt(_0x11325b(0x176))/0x3*(-parseInt(_0x11325b(0x17d))/0x4)+parseInt(_0x11325b(0x17a))/0x5*(-parseInt(_0x11325b(0x17e))/0x6)+-parseInt(_0x11325b(0x180))/0x7*(parseInt(_0x11325b(0x182))/0x8)+-parseInt(_0x11325b(0x17f))/0x9*(-parseInt(_0x11325b(0x177))/0xa)+-parseInt(_0x11325b(0x17b))/0xb;if(_0x4b4192===_0x359890)break;else _0x7bde49['push'](_0x7bde49['shift']());}catch(_0x196746){_0x7bde49['push'](_0x7bde49['shift']());}}}(a99_0x3b95,0xe5df6));let tail=Promise[a99_0x232f98(0x181)]();export async function runSerialized(_0x55bc1b){const _0x218aa4=a99_0x232f98,_0xab736=tail;let _0x1f9bc9;tail=new Promise(_0x23dc19=>{_0x1f9bc9=_0x23dc19;}),await _0xab736[_0x218aa4(0x17c)](()=>undefined);try{return await _0x55bc1b();}finally{_0x1f9bc9();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5502d6,_0x3498db){const _0x56667e=a100_0x13c0,_0x79db93=_0x5502d6();while(!![]){try{const _0x27a81c=parseInt(_0x56667e(0x1a5))/0x1*(parseInt(_0x56667e(0x199))/0x2)+-parseInt(_0x56667e(0x1a1))/0x3+parseInt(_0x56667e(0x192))/0x4*(parseInt(_0x56667e(0x196))/0x5)+parseInt(_0x56667e(0x1a6))/0x6+-parseInt(_0x56667e(0x19f))/0x7+-parseInt(_0x56667e(0x197))/0x8+parseInt(_0x56667e(0x19c))/0x9;if(_0x27a81c===_0x3498db)break;else _0x79db93['push'](_0x79db93['shift']());}catch(_0x22f7be){_0x79db93['push'](_0x79db93['shift']());}}}(a100_0x4f2e,0x6d89d));import a100_0x58fae0 from'meow';function a100_0x13c0(_0xc0f698,_0x7214fc){_0xc0f698=_0xc0f698-0x192;const _0x4f2eed=a100_0x4f2e();let _0x13c07c=_0x4f2eed[_0xc0f698];return _0x13c07c;}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 a100_0x4f2e(){const _0x5ba433=['defaultCommand','validation','assign','26935FUJbLT','4198504cgusIC','../commands/registry.js','163376NeCXcO','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','10474776vXzxZl','join','../framework/preparse.js','4006597SKlQyQ','flags','2639883JfURLi','definition','args','unknownCommand','8GonsPb','2551728nTQqzM','slice','136FTNrVu'];a100_0x4f2e=function(){return _0x5ba433;};return a100_0x4f2e();}export async function resolveLovrabetInvocation(_0x53c032){const _0x1b944e=a100_0x13c0,_0xa7e3e2=a100_0x58fae0('',{'importMeta':import.meta,'argv':_0x53c032,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xfe5e6=[..._0xa7e3e2['input']],_0x227c37=_0xa7e3e2[_0x1b944e(0x1a0)];await correctFlags(_0x227c37);const _0x4554cf=_0xfe5e6[0x0];if(!_0x4554cf)throw CliErrors[_0x1b944e(0x194)](_0x1b944e(0x19b));if(!isKnownService(_0x4554cf)){const _0x4b81c7=resolveDynamicServiceCommand(_0xfe5e6,_0x227c37);if(!_0x4b81c7)throw CliErrors['unknownCommand'](_0xfe5e6[_0x1b944e(0x19d)]('\x20'));return Object[_0x1b944e(0x195)](_0x227c37,_0x4b81c7[_0x1b944e(0x1a0)]),{'definition':_0x4b81c7[_0x1b944e(0x1a2)],'rawFlags':_0x227c37,'args':_0x4b81c7[_0x1b944e(0x1a3)]};}const _0x4db157=getServiceEntry(_0x4554cf),_0x1b102e=_0xfe5e6[0x1]||_0x4db157[_0x1b944e(0x193)];if(!_0x1b102e)throw CliErrors['validation'](_0x1b944e(0x19a)+_0x4554cf+'\x22.');const _0x32fa41=findDefinition(_0x4554cf,_0x1b102e);if(!_0x32fa41)throw CliErrors[_0x1b944e(0x1a4)](_0x4554cf+'\x20'+_0x1b102e);return{'definition':_0x32fa41,'rawFlags':_0x227c37,'args':_0xfe5e6[_0x1b944e(0x1a7)](0x2)};}async function correctFlags(_0x2c31cd){const _0x18e8f9=a100_0x13c0;try{const {correctFlags:_0x25d3f4}=await import(_0x18e8f9(0x19e)),{getAllDefinitions:_0x3849c4}=await import(_0x18e8f9(0x198)),_0x2a957d=_0x3849c4()['flatMap'](_0x9a646b=>_0x9a646b[_0x18e8f9(0x1a0)]??[]),_0x3400ec=_0x25d3f4(_0x2c31cd,_0x2a957d);Object[_0x18e8f9(0x195)](_0x2c31cd,_0x3400ec['flags']);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a102_0x1c4748=a102_0x2bc6;(function(_0x2ef3cd,_0x5bbb70){const _0x35e460=a102_0x2bc6,_0x1f796e=_0x2ef3cd();while(!![]){try{const _0x3d7cfc=parseInt(_0x35e460(0x87))/0x1*(-parseInt(_0x35e460(0x8a))/0x2)+parseInt(_0x35e460(0x80))/0x3+-parseInt(_0x35e460(0x94))/0x4*(-parseInt(_0x35e460(0x90))/0x5)+-parseInt(_0x35e460(0x88))/0x6+-parseInt(_0x35e460(0x8f))/0x7*(-parseInt(_0x35e460(0x89))/0x8)+parseInt(_0x35e460(0x85))/0x9+-parseInt(_0x35e460(0x8c))/0xa;if(_0x3d7cfc===_0x5bbb70)break;else _0x1f796e['push'](_0x1f796e['shift']());}catch(_0x3753d1){_0x1f796e['push'](_0x1f796e['shift']());}}}(a102_0x2030,0x5ce80));import{spawnSync}from'node:child_process';function a102_0x2bc6(_0x3df053,_0x5d8bfd){_0x3df053=_0x3df053-0x80;const _0x20300c=a102_0x2030();let _0x2bc6a5=_0x20300c[_0x3df053];return _0x2bc6a5;}import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a102_0x3df62c}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a102_0x2030(){const _0x42779e=['1329258bZMAbp','exit\x20','skipNpxSkillsEnvSuffix','inherit','npx','6197805KfMVtx','add','16GZWTQi','3267774oRePZJ','8nBmrQs','65092WVZjWh','pipe','7396760IEjlEV','join','stderr','4500349zOkFra','5rWWGDa','unknown','toString','log','1643788rxSSAh','trim'];a102_0x2030=function(){return _0x42779e;};return a102_0x2030();}export const LOVRABET_SKILL_SOURCE=a102_0x3df62c;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a102_0x1c4748(0x82)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x40128c,_0x44863d=LOVRABET_SKILL_SOURCE,_0x503800){const _0x2be98f=a102_0x1c4748;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x320be0=_0x503800?.['stdio']??_0x2be98f(0x83),_0x124ebd=resolveNpmBin(_0x2be98f(0x84)),_0x99b2b6=['skills',_0x2be98f(0x86),_0x44863d,'-g','-y'],_0x4fee0a=[_0x124ebd,..._0x99b2b6][_0x2be98f(0x8d)]('\x20');console[_0x2be98f(0x93)]('*\x20'+_0x4fee0a);const _0xe3d772=spawnSync(_0x124ebd,_0x99b2b6,{'cwd':_0x40128c,'stdio':_0x320be0,'env':process.env,'shell':![]});if(_0xe3d772['status']===0x0)return{'ok':!![],'status':0x0};let _0x2f9904=_0x2be98f(0x81)+(_0xe3d772['status']??_0x2be98f(0x91));if(_0x320be0===_0x2be98f(0x8b)){const _0x49d87e=_0xe3d772[_0x2be98f(0x8e)]?_0xe3d772['stderr'][_0x2be98f(0x92)]()[_0x2be98f(0x95)]():'',_0x478098=_0xe3d772['stdout']?_0xe3d772['stdout'][_0x2be98f(0x92)]()[_0x2be98f(0x95)]():'';if(_0x49d87e)_0x2f9904=_0x49d87e;else{if(_0x478098)_0x2f9904=_0x478098;}}return{'ok':![],'status':_0xe3d772['status']??null,'error':_0x2f9904};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103_0x6ec822=a103_0x4938;(function(_0xe35546,_0x493d3d){const _0x5654a9=a103_0x4938,_0x39abb7=_0xe35546();while(!![]){try{const _0x28ae74=parseInt(_0x5654a9(0x85))/0x1+-parseInt(_0x5654a9(0x81))/0x2*(parseInt(_0x5654a9(0x93))/0x3)+parseInt(_0x5654a9(0x82))/0x4*(-parseInt(_0x5654a9(0x8f))/0x5)+-parseInt(_0x5654a9(0x80))/0x6*(parseInt(_0x5654a9(0x87))/0x7)+-parseInt(_0x5654a9(0x8a))/0x8+parseInt(_0x5654a9(0x8b))/0x9+parseInt(_0x5654a9(0x92))/0xa;if(_0x28ae74===_0x493d3d)break;else _0x39abb7['push'](_0x39abb7['shift']());}catch(_0x53084f){_0x39abb7['push'](_0x39abb7['shift']());}}}(a103_0x28d7,0x43ab1));export const METADATA_FILE=a103_0x6ec822(0x8c);function a103_0x4938(_0x260edb,_0x52c265){_0x260edb=_0x260edb-0x80;const _0x28d723=a103_0x28d7();let _0x49386f=_0x28d723[_0x260edb];return _0x49386f;}function a103_0x28d7(){const _0x34f842=['.cache','2554792IDaQTB','1356777gwHYiA','lovrabet.skill.json','coverage','SKILL.md','5XXmwzg','.DS_Store','.git','12170100oXKvqY','249WQwAFl','.turbo','6zZFQuJ','10174IpEuQn','507784xlDHps','build','.hg','171971tKXBlb','node_modules','2758343HyyiZK','dist'];a103_0x28d7=function(){return _0x34f842;};return a103_0x28d7();}export const SKILL_FILE=a103_0x6ec822(0x8e);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a103_0x6ec822(0x90)]);export const IGNORED_DIR_NAMES=new Set([a103_0x6ec822(0x91),a103_0x6ec822(0x84),'.svn',a103_0x6ec822(0x86),'.next',a103_0x6ec822(0x88),a103_0x6ec822(0x83),a103_0x6ec822(0x8d),a103_0x6ec822(0x94),a103_0x6ec822(0x89)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x524c13,_0xaac526){const _0x15fff4=a104_0x4b7f,_0x568072=_0x524c13();while(!![]){try{const _0x36a133=-parseInt(_0x15fff4(0x1e0))/0x1+-parseInt(_0x15fff4(0x1de))/0x2+parseInt(_0x15fff4(0x1dc))/0x3+-parseInt(_0x15fff4(0x1d3))/0x4+parseInt(_0x15fff4(0x1d5))/0x5+parseInt(_0x15fff4(0x1d6))/0x6+parseInt(_0x15fff4(0x1da))/0x7*(parseInt(_0x15fff4(0x1db))/0x8);if(_0x36a133===_0xaac526)break;else _0x568072['push'](_0x568072['shift']());}catch(_0x101ef3){_0x568072['push'](_0x568072['shift']());}}}(a104_0x7577,0xaeff1));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(_0x161fd3,_0x5b4419){const _0x488d47=a104_0x4b7f,_0x1e3140=normalizeSkillRelativePath(_0x5b4419),_0x562208=realOrResolved(_0x161fd3),_0x1ee659=resolve(_0x562208,..._0x1e3140[_0x488d47(0x1d2)]('/'));if(!isPathInside(_0x1ee659,_0x562208))throw CliErrors[_0x488d47(0x1d9)](_0x488d47(0x1d7)+_0x5b4419);return ensureNoSymlinkInManagedPath(_0x562208,_0x1e3140),_0x1ee659;}export function ensureNoSymlinkInManagedPath(_0xa7d1e7,_0x49b752){const _0x28555c=a104_0x4b7f;let _0x3ac55f=_0xa7d1e7;for(const _0x50ec7d of _0x49b752['split']('/')){_0x3ac55f=resolve(_0x3ac55f,_0x50ec7d);const _0x487c3c=lstatIfPresent(_0x3ac55f);if(_0x487c3c?.[_0x28555c(0x1d8)]())throw CliErrors[_0x28555c(0x1d9)](_0x28555c(0x1df)+_0x49b752);}}export function isDanglingSymlink(_0x18cd49){const _0x4844b1=a104_0x4b7f;try{return lstatSync(_0x18cd49)[_0x4844b1(0x1d8)]();}catch{return![];}}export function resolveSymlinkTarget(_0x423519){const _0x59972b=readlinkSync(_0x423519);return isAbsolute(_0x59972b)?_0x59972b:resolve(dirname(_0x423519),_0x59972b);}export function isPathInside(_0x1e9a74,_0x58c43c){const _0x550382=_0x1e9a74['endsWith'](sep)?_0x1e9a74:''+_0x1e9a74+sep,_0x28d8be=_0x58c43c['endsWith'](sep)?_0x58c43c:''+_0x58c43c+sep;return _0x1e9a74===_0x58c43c||_0x550382['startsWith'](_0x28d8be);}function a104_0x7577(){const _0x299d96=['Unsafe\x20Skill\x20file\x20path:\x20','isSymbolicLink','validation','14yOqOio','4830392CSUWmh','4071786tJPAzC','.tmp','2771732FcXqnw','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','1147204qenPqR','split','3769780NQEdBa','utf8','2303615nUnDXr','7000302cyIJFx'];a104_0x7577=function(){return _0x299d96;};return a104_0x7577();}function a104_0x4b7f(_0x29f7b4,_0x28d493){_0x29f7b4=_0x29f7b4-0x1d2;const _0x75772b=a104_0x7577();let _0x4b7f41=_0x75772b[_0x29f7b4];return _0x4b7f41;}export function realOrResolved(_0x2c9317){try{return realpathSync(_0x2c9317);}catch{return resolve(_0x2c9317);}}export function lstatIfPresent(_0xa78e90){try{return lstatSync(_0xa78e90);}catch{return undefined;}}export function writeTextAtomic(_0x3f4c5f,_0x5de3c7,_0x397dcb){const _0x324065=a104_0x4b7f;writeBytesAtomic(_0x3f4c5f,Buffer['from'](_0x5de3c7,_0x324065(0x1d4)),_0x397dcb);}export function writeBytesAtomic(_0x2ccd32,_0x3cd8b7,_0x5e46ef){const _0x497e29=a104_0x4b7f,_0x51f2f0=_0x2ccd32+_0x497e29(0x1dd);try{writeFileSync(_0x51f2f0,_0x3cd8b7,{'mode':_0x5e46ef}),renameSync(_0x51f2f0,_0x2ccd32);}catch(_0x1ec2a5){try{rmSync(_0x51f2f0,{'force':!![]});}catch{}throw _0x1ec2a5;}}export function writeJsonAtomic(_0x564cc5,_0x1f2430){writeTextAtomic(_0x564cc5,JSON['stringify'](_0x1f2430,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x247348,_0x23e48e){const _0x3aee19=a105_0x2b4d,_0xa3366b=_0x247348();while(!![]){try{const _0x36db7f=parseInt(_0x3aee19(0x12b))/0x1*(parseInt(_0x3aee19(0x123))/0x2)+parseInt(_0x3aee19(0x12a))/0x3*(-parseInt(_0x3aee19(0x130))/0x4)+-parseInt(_0x3aee19(0x12e))/0x5+parseInt(_0x3aee19(0x125))/0x6+parseInt(_0x3aee19(0x127))/0x7*(parseInt(_0x3aee19(0x124))/0x8)+parseInt(_0x3aee19(0x131))/0x9+-parseInt(_0x3aee19(0x12f))/0xa;if(_0x36db7f===_0x23e48e)break;else _0xa3366b['push'](_0xa3366b['shift']());}catch(_0x10f3ff){_0xa3366b['push'](_0xa3366b['shift']());}}}(a105_0x1537,0x47434));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a105_0x2b4d(_0x124237,_0x1e9b8e){_0x124237=_0x124237-0x123;const _0x1537f2=a105_0x1537();let _0x2b4d75=_0x1537f2[_0x124237];return _0x2b4d75;}export function contentHash(_0x43134b){const _0x21e173=a105_0x2b4d;return createHash(_0x21e173(0x126))['update'](_0x43134b)[_0x21e173(0x128)](_0x21e173(0x12c));}function a105_0x1537(){const _0x37acb0=['path','780846lpBqpY','1dieZwk','hex','update','2754060PkRFIq','2443560GFlZQd','8lOhJHa','4829742YwOeSb','575332vzfeAW','5136aCobCw','1691508BIcyOA','sha256','5467DFEpwL','digest'];a105_0x1537=function(){return _0x37acb0;};return a105_0x1537();}export function fileHash(_0x4c8a52){return bufferSha256(fileContent(_0x4c8a52));}export function bufferSha256(_0xa2e759){const _0x4b864c=a105_0x2b4d;return createHash(_0x4b864c(0x126))[_0x4b864c(0x12d)](_0xa2e759)[_0x4b864c(0x128)](_0x4b864c(0x12c));}export function fileTreeHash(_0x53b7c0){const _0x1215c7=a105_0x2b4d,_0xfe9f68=createHash(_0x1215c7(0x126));for(const _0x3fcd23 of normalizeManifestFiles(_0x53b7c0)){_0xfe9f68[_0x1215c7(0x12d)](_0x3fcd23[_0x1215c7(0x129)]),_0xfe9f68['update']('\x00'),_0xfe9f68['update'](_0x3fcd23[_0x1215c7(0x126)]),_0xfe9f68[_0x1215c7(0x12d)]('\x00'),_0xfe9f68[_0x1215c7(0x12d)](String(_0x3fcd23['size'])),_0xfe9f68[_0x1215c7(0x12d)]('\x00');}return _0xfe9f68['digest']('hex');}
|