@lovrabet/lovrabet-cli 2.1.18 → 2.1.19-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/README.md +7 -0
- 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.d.ts +1 -0
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.d.ts +9 -0
- package/lib/skills/runtime-skill-sync/install-target.js +1 -0
- package/lib/skills/runtime-skill-sync/links.d.ts +5 -4
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.d.ts +2 -2
- 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/types.d.ts +17 -0
- 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.d.ts +2 -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
|
-
|
|
1
|
+
(function(_0x398df0,_0x3277ed){const _0x2ea66a=a83_0x1c50,_0x19b8b8=_0x398df0();while(!![]){try{const _0x4bdcf9=parseInt(_0x2ea66a(0x185))/0x1*(-parseInt(_0x2ea66a(0x191))/0x2)+-parseInt(_0x2ea66a(0x190))/0x3+-parseInt(_0x2ea66a(0x182))/0x4+parseInt(_0x2ea66a(0x18c))/0x5*(parseInt(_0x2ea66a(0x192))/0x6)+parseInt(_0x2ea66a(0x18d))/0x7+-parseInt(_0x2ea66a(0x187))/0x8+parseInt(_0x2ea66a(0x181))/0x9;if(_0x4bdcf9===_0x3277ed)break;else _0x19b8b8['push'](_0x19b8b8['shift']());}catch(_0x95f066){_0x19b8b8['push'](_0x19b8b8['shift']());}}}(a83_0x2d6b,0x90916));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 _0x17d7c0=a83_0x1c50;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x17d7c0(0x183)+PRODUCT_CONFIG[_0x17d7c0(0x188)]+_0x17d7c0(0x18f)});}export function generateCommandHelp(_0x539223){const _0x3f1ca3=a83_0x1c50;return createGenerators()[_0x3f1ca3(0x186)](_0x539223);}function a83_0x1c50(_0xec11d5,_0x1aa4ea){_0xec11d5=_0xec11d5-0x181;const _0x2d6bf2=a83_0x2d6b();let _0x1c50d2=_0x2d6bf2[_0xec11d5];return _0x1c50d2;}export function generateServiceHelp(_0x175e05){return createGenerators()['generateServiceHelp'](_0x175e05);}export function generateFullHelp(){const _0x1033ee=a83_0x1c50;return createGenerators()[_0x1033ee(0x18e)]();}function a83_0x2d6b(){const _0x103571=['150RYOseF','21157353TSciGg','4587992UdflME','Requires\x20appcode\x20(set\x20via\x20','filter','117877bBidAV','generateCommandHelp','1650056xxgdZn','newConfigFileName','map','get','service','201965OOSNKw','3440276cesoDN','generateFullHelp','\x20or\x20--appcode).','2183805WYPEcT','20ArqMte'];a83_0x2d6b=function(){return _0x103571;};return a83_0x2d6b();}function getAnyServiceEntry(_0x5527b4){const _0x765f38=getServiceEntry(_0x5527b4);if(_0x765f38)return _0x765f38;try{return getDynamicServiceEntry(_0x5527b4);}catch{return undefined;}}function getAnyServiceDefinitions(_0xb57ade){const _0x19184d=a83_0x1c50,_0x4cb06e=serviceGroups[_0x19184d(0x18a)](_0xb57ade);if(_0x4cb06e)return _0x4cb06e;try{return getDynamicServiceDefinitions(_0xb57ade);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x26301d=a83_0x1c50,_0x3856b1=new Set(serviceRegistry[_0x26301d(0x189)](_0x1e296f=>_0x1e296f[_0x26301d(0x18b)]));try{return listDynamicServiceEntries()[_0x26301d(0x184)](_0x5bf7eb=>!_0x3856b1['has'](_0x5bf7eb['service']));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51da0c,_0x2bf1ff){var _0x7148a4=a84_0x384e,_0x1f450a=_0x51da0c();while(!![]){try{var _0x1311c9=parseInt(_0x7148a4(0x144))/0x1+parseInt(_0x7148a4(0x143))/0x2*(-parseInt(_0x7148a4(0x142))/0x3)+parseInt(_0x7148a4(0x145))/0x4+-parseInt(_0x7148a4(0x148))/0x5*(parseInt(_0x7148a4(0x141))/0x6)+parseInt(_0x7148a4(0x146))/0x7+-parseInt(_0x7148a4(0x13f))/0x8*(-parseInt(_0x7148a4(0x147))/0x9)+-parseInt(_0x7148a4(0x140))/0xa;if(_0x1311c9===_0x2bf1ff)break;else _0x1f450a['push'](_0x1f450a['shift']());}catch(_0xc98a1d){_0x1f450a['push'](_0x1f450a['shift']());}}}(a84_0x1f85,0xe8d54));function a84_0x1f85(){var _0x390f23=['829875cjUQHp','6211868lMtNiV','2387315tytWyb','3732993YArekw','4075290pYWLTG','16guOmXA','4310520aNYXTv','12yZQEfj','1615767tsZhnk','2zNweCX'];a84_0x1f85=function(){return _0x390f23;};return a84_0x1f85();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a84_0x384e(_0x2f14d0,_0x46d976){_0x2f14d0=_0x2f14d0-0x13f;var _0x1f856d=a84_0x1f85();var _0x384e54=_0x1f856d[_0x2f14d0];return _0x384e54;}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 a85_0x2a79(_0x1a9e91,_0x2a31af){_0x1a9e91=_0x1a9e91-0x109;const _0x2b66fe=a85_0x2b66();let _0x2a7968=_0x2b66fe[_0x1a9e91];return _0x2a7968;}(function(_0x3bf8e1,_0x31c02e){const _0x4d8139=a85_0x2a79,_0x335504=_0x3bf8e1();while(!![]){try{const _0x2d3cf8=-parseInt(_0x4d8139(0x10c))/0x1*(parseInt(_0x4d8139(0x10a))/0x2)+parseInt(_0x4d8139(0x117))/0x3*(-parseInt(_0x4d8139(0x115))/0x4)+parseInt(_0x4d8139(0x10f))/0x5*(-parseInt(_0x4d8139(0x116))/0x6)+parseInt(_0x4d8139(0x111))/0x7+-parseInt(_0x4d8139(0x112))/0x8*(parseInt(_0x4d8139(0x113))/0x9)+-parseInt(_0x4d8139(0x110))/0xa+parseInt(_0x4d8139(0x109))/0xb*(parseInt(_0x4d8139(0x10d))/0xc);if(_0x2d3cf8===_0x31c02e)break;else _0x335504['push'](_0x335504['shift']());}catch(_0x3c0b0f){_0x335504['push'](_0x335504['shift']());}}}(a85_0x2b66,0x7f03a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a85_0x2b66(){const _0x53a5fc=['264eMMEPF','245025wTdjEx','url','8UFBaaT','139140JFRlED','363876eXnTSj','pretty','format','98296ASWQFx','4806UQnvZe','update','38VLKunJ','3648MwjVdV','message','30gYUpWw','8475160fNOHni','158795hQwUuf'];a85_0x2b66=function(){return _0x53a5fc;};return a85_0x2b66();}export function formatOutput(_0x28a8d3,_0x4fd205){const _0x301082=a85_0x2a79,_0x3916da=_0x28a8d3['_notice'],{_notice:_0x401087,..._0x51f696}=_0x28a8d3;void _0x401087,baseFormatOutput(_0x51f696,_0x4fd205),_0x4fd205[_0x301082(0x119)]===_0x301082(0x118)&&printPrettyNotice(_0x3916da);}function printPrettyNotice(_0x4d75cc){const _0x52c682=a85_0x2a79;if(!_0x4d75cc?.['update'])return;console['error'](_0x4d75cc[_0x52c682(0x10b)][_0x52c682(0x10e)]+'\x20('+_0x4d75cc[_0x52c682(0x10b)][_0x52c682(0x114)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d7352,_0xf469be){const _0x61846=a86_0x1dbd,_0x28dd8e=_0x1d7352();while(!![]){try{const _0x544f8d=parseInt(_0x61846(0x105))/0x1+-parseInt(_0x61846(0xea))/0x2+-parseInt(_0x61846(0x10c))/0x3*(-parseInt(_0x61846(0xf1))/0x4)+-parseInt(_0x61846(0x10d))/0x5*(-parseInt(_0x61846(0xee))/0x6)+parseInt(_0x61846(0xed))/0x7*(-parseInt(_0x61846(0x112))/0x8)+parseInt(_0x61846(0xf7))/0x9*(parseInt(_0x61846(0xec))/0xa)+parseInt(_0x61846(0x101))/0xb*(-parseInt(_0x61846(0xf6))/0xc);if(_0x544f8d===_0xf469be)break;else _0x28dd8e['push'](_0x28dd8e['shift']());}catch(_0x15cf84){_0x28dd8e['push'](_0x28dd8e['shift']());}}}(a86_0x57da,0x281b0));function toKebab(_0x225851){const _0x37d1a5=a86_0x1dbd;return _0x225851[_0x37d1a5(0xff)](/_/g,'-')[_0x37d1a5(0xff)](/-([A-Z]+)/g,(_0x5e3116,_0x10900)=>'-'+_0x10900[_0x37d1a5(0x108)]())[_0x37d1a5(0xff)](/([a-z0-9])([A-Z])/g,(_0x36573f,_0x1c8da4,_0x3adbbc)=>_0x1c8da4+'-'+_0x3adbbc)[_0x37d1a5(0x108)]();}function a86_0x1dbd(_0x396c7f,_0x173229){_0x396c7f=_0x396c7f-0xe9;const _0x57dab8=a86_0x57da();let _0x1dbda9=_0x57dab8[_0x396c7f];return _0x1dbda9;}function a86_0x57da(){const _0x2ef7f8=['keys','1262140cLnlai','7vJfJtg','54pmFZdg','non-interactive','type','27596jyHiVn','dry-run','get','appcode','sticky','12CPDBjO','9lvpqpI','push','has','string','format','length','original','slice','replace','yes','624899Hxbcnh','env','dryRun','name','170255RBzppT','nonInteractive','entries','toLowerCase','number','version','app','57VeTUdt','31805zlOEAX','add','help','corrected','set','928968yvzBto','global','alias','295194BrbbfU'];a86_0x57da=function(){return _0x2ef7f8;};return a86_0x57da();}function buildKnownFlags(_0x5bd78b){const _0x205aa5=a86_0x1dbd,_0x190f58=new Set();for(const _0x445879 of _0x5bd78b){_0x190f58[_0x205aa5(0x10e)](_0x445879['name']),_0x190f58[_0x205aa5(0x10e)](toCamelCase(_0x445879['name']));}for(const _0x34e526 of[_0x205aa5(0xf2),_0x205aa5(0x103),_0x205aa5(0x100),_0x205aa5(0xfb)]){_0x190f58[_0x205aa5(0x10e)](_0x34e526);}for(const _0x5407a5 of[_0x205aa5(0x10f),_0x205aa5(0x102),_0x205aa5(0xf4),_0x205aa5(0x10b),_0x205aa5(0x106),_0x205aa5(0xef),'ci',_0x205aa5(0x113),_0x205aa5(0x10a)]){_0x190f58['add'](_0x5407a5);}return _0x190f58;}function buildFlagTypeMap(_0x5dcf72){const _0x44ee18=a86_0x1dbd,_0x5a16f2=new Map();for(const _0xc16900 of _0x5dcf72){_0x5a16f2[_0x44ee18(0x111)](_0xc16900[_0x44ee18(0x104)],_0xc16900[_0x44ee18(0xf0)]),_0x5a16f2[_0x44ee18(0x111)](toCamelCase(_0xc16900[_0x44ee18(0x104)]),_0xc16900[_0x44ee18(0xf0)]);}return _0x5a16f2;}function toCamelCase(_0x5394f4){return _0x5394f4['replace'](/-([a-z])/g,(_0x3b9ed0,_0x33d352)=>_0x33d352['toUpperCase']());}function aliasHandler(_0x11a8d0,_0x20167b){const _0x34aac4=a86_0x1dbd,_0x1a7f85=[];for(const _0x37287c of Object[_0x34aac4(0xeb)](_0x11a8d0)){if(_0x20167b[_0x34aac4(0xf9)](_0x37287c))continue;const _0x1a14f5=toKebab(_0x37287c);_0x1a14f5!==_0x37287c&&_0x20167b[_0x34aac4(0xf9)](_0x1a14f5)&&_0x1a7f85['push']({'original':_0x37287c,'corrected':_0x1a14f5,'handler':_0x34aac4(0xe9)});}return _0x1a7f85;}function stickyHandler(_0x5ecbb9,_0x291b58,_0x18aa92){const _0x554c20=a86_0x1dbd,_0x122981=[];for(const [_0x3ca5a2,_0x1a6138]of Object[_0x554c20(0x107)](_0x5ecbb9)){if(_0x1a6138!==!![])continue;for(let _0x48d0d6=_0x3ca5a2['length']-0x1;_0x48d0d6>0x0;_0x48d0d6--){const _0xc1b5c4=_0x3ca5a2[_0x554c20(0xfe)](0x0,_0x48d0d6),_0x497966=_0x3ca5a2[_0x554c20(0xfe)](_0x48d0d6),_0x40b183=toKebab(_0xc1b5c4),_0x8dc519=toCamelCase(_0xc1b5c4),_0x3de438=_0x291b58[_0x554c20(0xf9)](_0xc1b5c4)?_0xc1b5c4:_0x291b58['has'](_0x40b183)?_0x40b183:_0x291b58[_0x554c20(0xf9)](_0x8dc519)?_0x8dc519:null;if(!_0x3de438)continue;const _0x325e0b=_0x18aa92[_0x554c20(0xf3)](_0x3de438)??_0x554c20(0xfa);let _0x48087d;if(_0x325e0b===_0x554c20(0x109)){const _0x3f6432=Number(_0x497966);if(isNaN(_0x3f6432)||_0x497966==='')continue;_0x48087d=_0x3f6432;}else{if(_0x325e0b==='boolean')continue;else{if(_0x497966==='')continue;_0x48087d=_0x497966;}}_0x122981[_0x554c20(0xf8)]({'original':_0x3ca5a2,'corrected':_0x3de438+'='+_0x48087d,'handler':_0x554c20(0xf5)});break;}}return _0x122981;}export function correctFlags(_0x167a97,_0x458916){const _0x193bdd=a86_0x1dbd,_0x21729b=buildKnownFlags(_0x458916),_0x5f0c1c=buildFlagTypeMap(_0x458916),_0x4a3347=aliasHandler(_0x167a97,_0x21729b),_0x131f81=stickyHandler(_0x167a97,_0x21729b,_0x5f0c1c),_0x468d8a=[..._0x4a3347,..._0x131f81];if(_0x468d8a[_0x193bdd(0xfc)]===0x0)return{'flags':_0x167a97,'corrections':[]};const _0x2a1f7b={..._0x167a97},_0x57d254=new Set();for(const _0x304543 of _0x4a3347){_0x2a1f7b[_0x304543[_0x193bdd(0x110)]]=_0x167a97[_0x304543[_0x193bdd(0xfd)]],_0x57d254[_0x193bdd(0x10e)](_0x304543[_0x193bdd(0xfd)]);}for(const _0x1e9d52 of _0x131f81){const _0x4d0fb9=_0x1e9d52['corrected']['indexOf']('='),_0x3ea331=_0x1e9d52['corrected']['slice'](0x0,_0x4d0fb9),_0x3764d6=_0x1e9d52[_0x193bdd(0x110)][_0x193bdd(0xfe)](_0x4d0fb9+0x1),_0x8905b5=_0x5f0c1c[_0x193bdd(0xf3)](_0x3ea331)??_0x193bdd(0xfa);_0x8905b5===_0x193bdd(0x109)?_0x2a1f7b[_0x3ea331]=Number(_0x3764d6):_0x2a1f7b[_0x3ea331]=_0x3764d6,_0x57d254[_0x193bdd(0x10e)](_0x1e9d52[_0x193bdd(0xfd)]);}for(const _0x214c2d of _0x57d254){delete _0x2a1f7b[_0x214c2d];}return{'flags':_0x2a1f7b,'corrections':_0x468d8a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x2531a9=a87_0x341c;(function(_0x413efb,_0xf64852){const _0x1aff9e=a87_0x341c,_0x5b346e=_0x413efb();while(!![]){try{const _0x115693=-parseInt(_0x1aff9e(0x17a))/0x1+parseInt(_0x1aff9e(0x17b))/0x2*(parseInt(_0x1aff9e(0x199))/0x3)+parseInt(_0x1aff9e(0x181))/0x4*(-parseInt(_0x1aff9e(0x188))/0x5)+-parseInt(_0x1aff9e(0x183))/0x6+parseInt(_0x1aff9e(0x19c))/0x7*(-parseInt(_0x1aff9e(0x19a))/0x8)+parseInt(_0x1aff9e(0x191))/0x9*(-parseInt(_0x1aff9e(0x197))/0xa)+-parseInt(_0x1aff9e(0x18d))/0xb*(-parseInt(_0x1aff9e(0x182))/0xc);if(_0x115693===_0xf64852)break;else _0x5b346e['push'](_0x5b346e['shift']());}catch(_0x15a989){_0x5b346e['push'](_0x5b346e['shift']());}}}(a87_0x2901,0x5c8e6));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a87_0x2531a9(0x18c),a87_0x2531a9(0x17f)]);function a87_0x341c(_0x341ea4,_0x5366b4){_0x341ea4=_0x341ea4-0x179;const _0x2901f6=a87_0x2901();let _0x341c50=_0x2901f6[_0x341ea4];return _0x341c50;}function nonEmptyString(_0x5c083d){const _0x4bbb14=a87_0x2531a9;if(typeof _0x5c083d!==_0x4bbb14(0x195))return undefined;const _0x3e3d4b=_0x5c083d[_0x4bbb14(0x189)]();return _0x3e3d4b||undefined;}function buildRetryHint(_0xd85452){const _0x1f516d=a87_0x2531a9,_0x38eee4=nonEmptyString(_0xd85452),_0x3cd668=_0x38eee4?/^\d+$/[_0x1f516d(0x179)](_0x38eee4)?_0x1f516d(0x186)+_0x38eee4+_0x1f516d(0x19d):_0x1f516d(0x17c)+_0x38eee4+'.':_0x1f516d(0x18a);return _0x3cd668+_0x1f516d(0x17d);}export function createRateLimitError(_0x211a5a){const _0x4d3a13=a87_0x2531a9,_0x14fbd4=nonEmptyString(_0x211a5a[_0x4d3a13(0x18b)])?.['toUpperCase'](),_0x5d8d75=Number(_0x211a5a[_0x4d3a13(0x17e)])===0x1ad||_0x14fbd4!==undefined&&RATE_LIMIT_ERROR_CODES[_0x4d3a13(0x184)](_0x14fbd4);if(!_0x5d8d75)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x211a5a[_0x4d3a13(0x198)])??_0x4d3a13(0x18e),buildRetryHint(_0x211a5a[_0x4d3a13(0x190)]));}export function readRetryAfter(_0x43dfe0){const _0x2a2cca=a87_0x2531a9;if(!_0x43dfe0||typeof _0x43dfe0!==_0x2a2cca(0x19b))return undefined;const _0x3555d6=_0x43dfe0[_0x2a2cca(0x194)];if(typeof _0x3555d6==='function'){const _0x48b26a=_0x3555d6[_0x2a2cca(0x185)](_0x43dfe0,'Retry-After')??_0x3555d6[_0x2a2cca(0x185)](_0x43dfe0,'retry-after');return nonEmptyString(_0x48b26a);}for(const [_0x540ac5,_0x16ba48]of Object['entries'](_0x43dfe0)){if(_0x540ac5[_0x2a2cca(0x193)]()===_0x2a2cca(0x192))return nonEmptyString(_0x16ba48)??(typeof _0x16ba48===_0x2a2cca(0x187)?String(_0x16ba48):undefined);}return undefined;}function a87_0x2901(){const _0x13ca12=['40VDXWvF','trim','Retry\x20after\x20a\x20short\x20delay.','errorCode','MAX_QPS_LIMIT','7769773dbMVTy','Request\x20rate\x20limit\x20exceeded.','isInteger','retryAfter','81PDWmnG','retry-after','toLowerCase','get','string','retryAfterSeconds','575370aUQbKI','message','371343ldtuDo','184960zYadvA','object','203siIitn','\x20seconds\x20before\x20retrying.','test','59089xbDyTS','4WQIRLH','Retry\x20after\x20','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','status','IP_RATE_LIMIT_EXCEEDED','isArray','281044ytFkHG','36AwEIbu','1067946TNiwkH','has','call','Wait\x20','number'];a87_0x2901=function(){return _0x13ca12;};return a87_0x2901();}export function readRetryAfterSeconds(_0x1d2b68){const _0x25652f=a87_0x2531a9;if(!_0x1d2b68||typeof _0x1d2b68!==_0x25652f(0x19b)||Array[_0x25652f(0x180)](_0x1d2b68))return undefined;const _0x121ba2=_0x1d2b68[_0x25652f(0x196)];if(typeof _0x121ba2===_0x25652f(0x187))return Number[_0x25652f(0x18f)](_0x121ba2)&&_0x121ba2>=0x0?String(_0x121ba2):undefined;const _0x4aa32d=nonEmptyString(_0x121ba2);return _0x4aa32d&&/^\d+$/['test'](_0x4aa32d)?_0x4aa32d:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1bc054,_0x5169b1){var _0x3f92f1=a88_0x4b2a,_0x3a28fc=_0x1bc054();while(!![]){try{var _0x4a7a75=-parseInt(_0x3f92f1(0x1bd))/0x1+parseInt(_0x3f92f1(0x1b7))/0x2+parseInt(_0x3f92f1(0x1b9))/0x3+parseInt(_0x3f92f1(0x1bc))/0x4*(-parseInt(_0x3f92f1(0x1b5))/0x5)+-parseInt(_0x3f92f1(0x1bb))/0x6*(-parseInt(_0x3f92f1(0x1ba))/0x7)+-parseInt(_0x3f92f1(0x1b6))/0x8*(parseInt(_0x3f92f1(0x1b8))/0x9)+-parseInt(_0x3f92f1(0x1b4))/0xa;if(_0x4a7a75===_0x5169b1)break;else _0x3a28fc['push'](_0x3a28fc['shift']());}catch(_0x12ee77){_0x3a28fc['push'](_0x3a28fc['shift']());}}}(a88_0x2a9f,0x57665));function a88_0x4b2a(_0x838817,_0x3e8a06){_0x838817=_0x838817-0x1b4;var _0x2a9fd4=a88_0x2a9f();var _0x4b2a54=_0x2a9fd4[_0x838817];return _0x4b2a54;}function a88_0x2a9f(){var _0x1eb7ec=['246493lWEOuf','1340650rRazmV','5snkvbg','8hbmCGO','992272iiEJxh','1478700ztfYoE','1577475QZUkVK','230699LbxcEW','72iYWmig','2058392zkdNTl'];a88_0x2a9f=function(){return _0x1eb7ec;};return a88_0x2a9f();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xee9d29,_0x5b32e4){const _0x315026=a89_0x384d,_0x505441=_0xee9d29();while(!![]){try{const _0x4e5735=-parseInt(_0x315026(0x1d8))/0x1+-parseInt(_0x315026(0x1c2))/0x2+-parseInt(_0x315026(0x1c7))/0x3+-parseInt(_0x315026(0x1cc))/0x4*(-parseInt(_0x315026(0x1e5))/0x5)+-parseInt(_0x315026(0x1d3))/0x6*(-parseInt(_0x315026(0x1df))/0x7)+parseInt(_0x315026(0x1d4))/0x8*(-parseInt(_0x315026(0x1cf))/0x9)+parseInt(_0x315026(0x1d5))/0xa;if(_0x4e5735===_0x5b32e4)break;else _0x505441['push'](_0x505441['shift']());}catch(_0x1b0521){_0x505441['push'](_0x505441['shift']());}}}(a89_0xf0eb,0xaf85c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x457fac,_0x44d3e9,_0x4f0a01){const _0x38eeb0=a89_0x384d,_0x4c4f99=buildConfirmationContext(_0x457fac,_0x44d3e9,_0x4f0a01),_0x187549=[_0x38eeb0(0x1d7)+_0x4c4f99[_0x38eeb0(0x1c8)]];return _0x4c4f99['description']&&_0x187549[_0x38eeb0(0x1d6)](_0x38eeb0(0x1e7)+_0x4c4f99[_0x38eeb0(0x1e6)]),_0x4c4f99[_0x38eeb0(0x1cd)]&&_0x187549[_0x38eeb0(0x1d6)](_0x38eeb0(0x1e4)+_0x4c4f99[_0x38eeb0(0x1cd)]),_0x187549[_0x38eeb0(0x1d6)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x187549;}export function reconstructCommandArgv(_0x37704c,_0x5d6575){const _0x1ec714=a89_0x384d,_0x420fd9=[CLI_BIN_NAME,_0x37704c[_0x1ec714(0x1bf)],_0x37704c[_0x1ec714(0x1c1)]];for(const [_0xb6f257,_0x13baa3]of Object[_0x1ec714(0x1dd)](_0x5d6575)){if(_0x13baa3===!![])_0x420fd9['push']('--'+_0xb6f257);else _0x13baa3!==![]&&_0x13baa3!==undefined&&_0x13baa3!==''&&_0x420fd9[_0x1ec714(0x1d6)]('--'+_0xb6f257+'\x20'+JSON[_0x1ec714(0x1e1)](_0x13baa3));}return _0x420fd9['push'](_0x1ec714(0x1c4)),_0x420fd9[_0x1ec714(0x1ca)]('\x20');}function a89_0xf0eb(){const _0x24d880=['77098uWyMhG','channel','stringify','title','cron=','\x20\x20\x20Affected:\x20','610855NHNlVi','description','\x20\x20\x20','service','kind','command','1778160LUhyfk','kind=','--yes','params','scheduled-at','3841629KnLHRy','commandLabel','code=','join','name','20sgRfjw','affectedRecords','title=','9ESiyzq','length','schedule-id=','schedule-id','588CdNBXW','4726616ReNUgj','27795990RPHqHX','push','⚠\x20\x20High-risk\x20operation:\x20','990436mPGirE','params=','cron','name=','code','entries','scheduled-at='];a89_0xf0eb=function(){return _0x24d880;};return a89_0xf0eb();}function a89_0x384d(_0x4ea485,_0x2540a0){_0x4ea485=_0x4ea485-0x1bf;const _0xf0eb53=a89_0xf0eb();let _0x384df5=_0xf0eb53[_0x4ea485];return _0x384df5;}function buildConfirmationContext(_0x5c5919,_0x347e03,_0x5047df){const _0xecee6a=a89_0x384d,_0x23339e=extractAffectedRecords(_0x5047df);return{'commandLabel':_0x347e03,'description':_0x5c5919[_0xecee6a(0x1e6)],'affectedRecords':_0x23339e};}function extractAffectedRecords(_0xa99e56){const _0x3a1deb=a89_0x384d,_0x364c7f=[];if(_0xa99e56[_0x3a1deb(0x1dc)])_0x364c7f['push'](_0x3a1deb(0x1c9)+_0xa99e56[_0x3a1deb(0x1dc)]);if(_0xa99e56['id'])_0x364c7f[_0x3a1deb(0x1d6)]('id='+_0xa99e56['id']);if(_0xa99e56[_0x3a1deb(0x1d2)])_0x364c7f[_0x3a1deb(0x1d6)](_0x3a1deb(0x1d1)+_0xa99e56[_0x3a1deb(0x1d2)]);if(_0xa99e56[_0x3a1deb(0x1cb)])_0x364c7f[_0x3a1deb(0x1d6)](_0x3a1deb(0x1db)+_0xa99e56[_0x3a1deb(0x1cb)]);if(_0xa99e56[_0x3a1deb(0x1e2)])_0x364c7f['push'](_0x3a1deb(0x1ce)+_0xa99e56[_0x3a1deb(0x1e2)]);if(_0xa99e56['kind'])_0x364c7f[_0x3a1deb(0x1d6)](_0x3a1deb(0x1c3)+_0xa99e56[_0x3a1deb(0x1c0)]);if(_0xa99e56[_0x3a1deb(0x1da)])_0x364c7f['push'](_0x3a1deb(0x1e3)+_0xa99e56[_0x3a1deb(0x1da)]);if(_0xa99e56[_0x3a1deb(0x1c6)])_0x364c7f['push'](_0x3a1deb(0x1de)+_0xa99e56[_0x3a1deb(0x1c6)]);if(_0xa99e56[_0x3a1deb(0x1e0)])_0x364c7f[_0x3a1deb(0x1d6)]('channel='+_0xa99e56[_0x3a1deb(0x1e0)]);if(_0xa99e56['params'])_0x364c7f[_0x3a1deb(0x1d6)](_0x3a1deb(0x1d9)+_0xa99e56[_0x3a1deb(0x1c5)]);return _0x364c7f[_0x3a1deb(0x1d0)]>0x0?_0x364c7f[_0x3a1deb(0x1ca)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x189f4c,_0x20b1a4){const _0x140d34=a90_0x3ebd,_0x381df4=_0x189f4c();while(!![]){try{const _0x2fcaad=parseInt(_0x140d34(0x1dc))/0x1+parseInt(_0x140d34(0x1e2))/0x2*(-parseInt(_0x140d34(0x1d7))/0x3)+parseInt(_0x140d34(0x1d5))/0x4+parseInt(_0x140d34(0x1de))/0x5*(-parseInt(_0x140d34(0x1dd))/0x6)+parseInt(_0x140d34(0x1d8))/0x7+-parseInt(_0x140d34(0x1e0))/0x8*(parseInt(_0x140d34(0x1e1))/0x9)+-parseInt(_0x140d34(0x1d2))/0xa*(parseInt(_0x140d34(0x1da))/0xb);if(_0x2fcaad===_0x20b1a4)break;else _0x381df4['push'](_0x381df4['shift']());}catch(_0x11cbda){_0x381df4['push'](_0x381df4['shift']());}}}(a90_0x4e52,0x7baa2));function a90_0x4e52(){const _0x56953a=['260mvxlGE','message','stringify','3420388jgaPxO','trim','1233fzSumm','5386171aDiBEi','code','294646nUcPQd','response','771129bKPfAM','25566cqcxhH','270whhnUh','validation','488AGfZIO','4617ucQIoh','4532qoUJOu','description'];a90_0x4e52=function(){return _0x56953a;};return a90_0x4e52();}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a90_0x3ebd(_0x4d67d0,_0x2167d0){_0x4d67d0=_0x4d67d0-0x1d1;const _0x4e52be=a90_0x4e52();let _0x3ebd91=_0x4e52be[_0x4d67d0];return _0x3ebd91;}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x3fc2c1){const _0x1a9917=a90_0x3ebd;if(_0x3fc2c1 instanceof LovrabetError){const _0x4724aa=userFacingLovrabetMessage(_0x3fc2c1),_0x1c5abb=_0x3fc2c1,_0x521002=createRateLimitError({'status':_0x1c5abb['status'],'errorCode':_0x1c5abb[_0x1a9917(0x1d9)],'message':_0x4724aa,'retryAfter':readRetryAfter(_0x1c5abb['response']?.['headers'])??readRetryAfterSeconds(_0x1c5abb[_0x1a9917(0x1db)])});return _0x521002??CliErrors[_0x1a9917(0x1df)](_0x4724aa);}return _0x3fc2c1;}function userFacingLovrabetMessage(_0x3b1735){const _0x21d30f=a90_0x3ebd,_0x1001ce=_0x3b1735[_0x21d30f(0x1d1)];if(_0x1001ce!==undefined&&_0x1001ce!==null){if(typeof _0x1001ce==='string'&&_0x1001ce[_0x21d30f(0x1d6)]())return _0x1001ce[_0x21d30f(0x1d6)]();try{return JSON[_0x21d30f(0x1d4)](_0x1001ce);}catch{}}return _0x3b1735[_0x21d30f(0x1d3)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x266676,_0x4cf53f){const _0x370853=a91_0x179b,_0x4f5bb1=_0x266676();while(!![]){try{const _0x222584=parseInt(_0x370853(0x106))/0x1*(-parseInt(_0x370853(0xce))/0x2)+-parseInt(_0x370853(0xd4))/0x3+-parseInt(_0x370853(0xf9))/0x4*(parseInt(_0x370853(0xeb))/0x5)+parseInt(_0x370853(0xda))/0x6*(-parseInt(_0x370853(0xdb))/0x7)+-parseInt(_0x370853(0x103))/0x8*(parseInt(_0x370853(0xf5))/0x9)+-parseInt(_0x370853(0x109))/0xa*(parseInt(_0x370853(0xd1))/0xb)+parseInt(_0x370853(0xf4))/0xc*(parseInt(_0x370853(0xe2))/0xd);if(_0x222584===_0x4cf53f)break;else _0x4f5bb1['push'](_0x4f5bb1['shift']());}catch(_0x52fcb3){_0x4f5bb1['push'](_0x4f5bb1['shift']());}}}(a91_0x1638,0x5ae5e));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(_0x3df0cd){const _0x23bc17=a91_0x179b;return void _0x3df0cd,AUTH_MODE[_0x23bc17(0xe1)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x27f501,_0x346a28){const _0x2fc883=a91_0x179b,_0x26b6d7=typeof _0x346a28[_0x2fc883(0xfc)]===_0x2fc883(0xc9)&&_0x346a28[_0x2fc883(0xfc)][_0x2fc883(0x105)]();return{'rawFlags':_0x346a28,'appCode':_0x27f501[_0x2fc883(0xfb)]||productEnv('APPCODE')||(_0x26b6d7?undefined:readAppCodeFromConfig()),'appCodeSource':_0x27f501['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x346a28),'defaultFormat':_0x27f501[_0x2fc883(0xfd)],'defaultPageSize':_0x27f501[_0x2fc883(0x101)],'defaultVerbose':_0x27f501[_0x2fc883(0xf0)],'riskLevel':_0x27f501[_0x2fc883(0xf2)],'accessKey':_0x27f501[_0x2fc883(0xe4)],'env':_0x27f501[_0x2fc883(0xe0)],'mergedCli':{'defaultApp':_0x27f501['defaultApp'],'currentApp':_0x27f501[_0x2fc883(0xff)],'appCode':_0x27f501['appCode']}};}export function createLovrabetRunnerAdapter(_0x3a5766={}){const _0x1a2103=a91_0x179b,_0x23d21f={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4fc15e=>PIPELINE_FLAG_NAMES['has'](_0x4fc15e[_0x1a2103(0xd3)]))[_0x1a2103(0xe5)](({name:_0x145c66,type:_0x3dde55,description:_0x242c24})=>({'name':_0x145c66,'type':_0x3dde55,'description':_0x242c24})),'formatOutput':_0x3a5766[_0x1a2103(0xd8)]??formatOutput,'getCommandLabel'(_0x4c1c50){const _0x2e875c=_0x1a2103;return CLI_BIN_NAME+'\x20'+_0x4c1c50[_0x2e875c(0xf7)]+'\x20'+_0x4c1c50['command'];},'riskPolicy':{'onViolation'(_0x53c905){const _0x18f160=_0x1a2103;console[_0x18f160(0xe9)](_0x53c905);},'createError'(_0x56d45c){const _0x1f0861=_0x1a2103;return CliErrors[_0x1f0861(0xca)](_0x56d45c);}},async 'prepare'(_0x51db35,_0x4be5f9){const _0x3246ca=_0x1a2103,_0x81fc0c=resolveAuthMode(_0x4be5f9);if(_0x51db35[_0x3246ca(0xed)]!==![]){if(!_0x4be5f9[_0x3246ca(0xe4)])throw CliErrors[_0x3246ca(0xe7)](_0x3246ca(0xd0)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x2cde4d}=await import('../core/api-client.js');_0x2cde4d(_0x4be5f9[_0x3246ca(0xe4)]);}let _0xece4db='';if(_0x51db35['requiresAppCode']!==![]){_0xece4db=_0x4be5f9[_0x3246ca(0xfb)]??'',_0xece4db=await resolveExplicitAppName(_0x51db35,_0x4be5f9,_0xece4db);if(!_0xece4db){await assertSelectedAppNameIsRuntimeAccessible(_0x51db35,_0x4be5f9);throw CliErrors['configMissing'](_0x3246ca(0xde)+PRODUCT_CONFIG[_0x3246ca(0xcc)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x51db35,_0x4be5f9,_0xece4db);}if(_0xece4db){const {initSdkClient:_0x2297aa}=await import('../core/sdk-client.js');_0x2297aa({'appCode':_0xece4db,'env':_0x4be5f9['env']??_0x3246ca(0x100),'accessKey':_0x4be5f9[_0x3246ca(0xe4)],'authMode':_0x81fc0c}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4be5f9[_0x3246ca(0xd9)]},'numbers':{'pagesize':_0x4be5f9[_0x3246ca(0xdd)]}},'extras':{'appCode':_0xece4db,'cookie':'','apiDomain':_0x4be5f9[_0x3246ca(0xef)],'apiDir':'','accessKey':_0x4be5f9[_0x3246ca(0xe4)],'envName':_0x4be5f9['env'],'mergedCli':_0x4be5f9['mergedCli']}};},'confirmHighRisk':_0x3a5766[_0x1a2103(0xe6)]??(async({def:_0x4c4773,env:_0x3ebe32,flags:_0x3c3197,commandLabel:_0x34aede})=>{const _0x2fa99d=_0x1a2103;if(_0x3ebe32[_0x2fa99d(0xd7)]){const _0x340a87=reconstructCommandArgv(_0x4c4773,_0x3c3197);throw CliErrors[_0x2fa99d(0xcb)](_0x2fa99d(0xfe)+_0x34aede+_0x2fa99d(0xd2)+(_0x2fa99d(0xf3)+_0x340a87));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4c4773,_0x34aede,_0x3c3197),'createCancelledError':_0xa71bd1=>CliErrors[_0x2fa99d(0xca)](_0xa71bd1)});}),'mapDryRunError'(_0x374008){return mapUserFacingExecuteError(_0x374008);},'mapExecuteError'(_0x3fdab2){return mapUserFacingExecuteError(_0x3fdab2);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x23d21f;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x57b81c=a91_0x179b;try{if(sdkClientInitialized){const {clearSdkClient:_0x53569a}=await import(_0x57b81c(0xcd));_0x53569a();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x5a6eea}=await import(_0x57b81c(0xdf));_0x5a6eea();}}async function resolveExplicitAppName(_0xa72e47,_0x124371,_0x375d25){const _0x2e9164=a91_0x179b;if(_0xa72e47['requiresAppCode']===![])return _0x375d25;const _0x44c1e0=typeof _0x124371[_0x2e9164(0xea)][_0x2e9164(0xfc)]==='string'?_0x124371[_0x2e9164(0xea)][_0x2e9164(0xfc)][_0x2e9164(0x105)]():'';if(!_0x44c1e0)return _0x375d25;const _0x2a73f2=typeof _0x124371[_0x2e9164(0xea)][_0x2e9164(0xd6)]===_0x2e9164(0xc9)&&_0x124371[_0x2e9164(0xea)][_0x2e9164(0xd6)]['trim']()||productEnv(_0x2e9164(0x104));if(_0x2a73f2||_0x124371[_0x2e9164(0xd5)]==='local-alias')return _0x375d25;const {getRemoteAppList:_0x3e8a1c}=await import(_0x2e9164(0xec)),_0x214d78=await _0x3e8a1c({'env':_0x124371[_0x2e9164(0xe0)]??_0x2e9164(0x100),'accessKey':_0x124371['accessKey']}),_0x48a9da=findAppByName(_0x214d78[_0x2e9164(0xcf)],_0x44c1e0);if(_0x48a9da&&!isRuntimeAccessibleApp(_0x48a9da))throw runtimeInaccessibleAppError(_0x48a9da,'\x22'+_0x44c1e0+'\x22');const _0x29cab8=_0x48a9da?.[_0x2e9164(0xfb)]?.[_0x2e9164(0x105)]();if(_0x29cab8)return _0x29cab8;throw CliErrors[_0x2e9164(0xcb)](_0x2e9164(0xf1)+_0x44c1e0,_0x2e9164(0xee)+CLI_BIN_NAME+_0x2e9164(0xf8)+_0x44c1e0+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x2e9164(0xcc)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xe5fc45,_0x6ed38){const _0x4425bd=a91_0x179b;if(_0xe5fc45[_0x4425bd(0xe8)]===![]||!_0x6ed38[_0x4425bd(0xe4)])return;const _0x19b679=(typeof _0x6ed38[_0x4425bd(0xea)]['app']==='string'&&_0x6ed38[_0x4425bd(0xea)]['app'][_0x4425bd(0x105)]()?_0x6ed38[_0x4425bd(0xea)][_0x4425bd(0xfc)]:_0x6ed38[_0x4425bd(0x102)]?.[_0x4425bd(0xff)]??_0x6ed38[_0x4425bd(0x102)]?.[_0x4425bd(0xdc)])?.[_0x4425bd(0x105)]();if(!_0x19b679)return;const {getRemoteAppList:_0x33c1d1}=await import(_0x4425bd(0xec)),_0x1be357=await _0x33c1d1({'env':_0x6ed38[_0x4425bd(0xe0)]??_0x4425bd(0x100),'accessKey':_0x6ed38[_0x4425bd(0xe4)]}),_0x37258d=findAppByName(_0x1be357[_0x4425bd(0xcf)],_0x19b679);if(_0x37258d&&!isRuntimeAccessibleApp(_0x37258d))throw runtimeInaccessibleAppError(_0x37258d,'\x22'+_0x19b679+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x503302,_0x150ebc,_0x48aaac){const _0x2eb7d0=a91_0x179b;if(_0x503302[_0x2eb7d0(0xe8)]===![]||!_0x150ebc[_0x2eb7d0(0xe4)])return;const {getRemoteAppList:_0x5e48dd}=await import(_0x2eb7d0(0xec)),_0x5ee35f=await _0x5e48dd({'env':_0x150ebc['env']??_0x2eb7d0(0x100),'accessKey':_0x150ebc[_0x2eb7d0(0xe4)]}),_0x3c14d3=findAppByCode(_0x5ee35f[_0x2eb7d0(0xcf)],_0x48aaac);if(_0x3c14d3&&!isRuntimeAccessibleApp(_0x3c14d3))throw runtimeInaccessibleAppError(_0x3c14d3,_0x2eb7d0(0xf6)+_0x48aaac+'\x22');}function a91_0x179b(_0x39b598,_0x24cb5b){_0x39b598=_0x39b598-0xc8;const _0x163897=a91_0x1638();let _0x179b03=_0x163897[_0x39b598];return _0x179b03;}export async function runCommand(_0x9fcbe8,_0x37d8f6,_0x3a6d1d=terminalRunnerAdapter){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x9fcbe8)?withUpdateNotice(_0x9fcbe8):_0x9fcbe8,_0x37d8f6,_0x3a6d1d);}function a91_0x1638(){const _0x177f1d=['env','ClientAk','1781JXkqsz','update','accessKey','map','confirmHighRisk','authRequired','requiresAppCode','error','rawFlags','395330tRebvd','../commands/app/remote-source.js','requiresAuth','Run\x20`','apiDomain','verbose','Unknown\x20app:\x20','riskLevel','\x20\x20To\x20proceed:\x20','189156kUzFgp','603wkGEBt','appcode\x20\x22','service','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','12cScgas','_notice','appCode','app','format','High-risk\x20operation\x20`','currentApp','production','pageSize','mergedCli','40984llFzaM','APPCODE','trim','2PxuTla','object','resolve','176520kNKOpA','nonInteractive','string','cancelled','validation','newConfigFileName','../core/sdk-client.js','705836nPBWja','items','Set\x20accessKey\x20in\x20','55MsYIPs','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','name','907800YdNZhH','appCodeSource','appcode','isNonInteractive','formatOutput','defaultVerbose','28716NjmIGu','161Lsmlcq','defaultApp','defaultPageSize','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','../core/api-client.js'];a91_0x1638=function(){return _0x177f1d;};return a91_0x1638();}function shouldAttachUpdateNotice(_0x3e3e6e){const _0x20756a=a91_0x179b;return![_0x20756a(0xe3),'schema','doctor']['includes'](_0x3e3e6e[_0x20756a(0xf7)]);}function withUpdateNotice(_0xd41bd1){return{..._0xd41bd1,async 'execute'(_0x3d129d){const _0x5879e8=a91_0x179b,_0xbb0f16=shouldResolveUpdateNotice(_0x3d129d)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x5879e8(0x108)](null),_0x17a15d=await _0xd41bd1['execute'](_0x3d129d);return attachUpdateNotice(_0x17a15d,await _0xbb0f16);}};}function shouldResolveUpdateNotice(_0x4c2a87){const _0x3d38f8=a91_0x179b;return _0x4c2a87['format']==='pretty'&&!_0x4c2a87[_0x3d38f8(0xc8)];}function attachUpdateNotice(_0xc27cc0,_0x2a5192){const _0x219661=a91_0x179b;if(!_0x2a5192||!_0xc27cc0||typeof _0xc27cc0!==_0x219661(0x107))return _0xc27cc0;const _0x14fca8=_0xc27cc0,_0x3c9b5a=typeof _0x14fca8[_0x219661(0xfa)]===_0x219661(0x107)&&_0x14fca8[_0x219661(0xfa)]!==null?_0x14fca8[_0x219661(0xfa)]:{};return{..._0x14fca8,'_notice':{..._0x3c9b5a,'update':_0x2a5192}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x972e7c,_0x290eef){const _0x34a2de=a92_0x8aab,_0x5c5d6b=_0x972e7c();while(!![]){try{const _0x526392=parseInt(_0x34a2de(0x7f))/0x1*(-parseInt(_0x34a2de(0x76))/0x2)+-parseInt(_0x34a2de(0x6e))/0x3+-parseInt(_0x34a2de(0x70))/0x4+-parseInt(_0x34a2de(0x71))/0x5+-parseInt(_0x34a2de(0x7d))/0x6*(-parseInt(_0x34a2de(0x7b))/0x7)+parseInt(_0x34a2de(0x73))/0x8+-parseInt(_0x34a2de(0x80))/0x9*(-parseInt(_0x34a2de(0x77))/0xa);if(_0x526392===_0x290eef)break;else _0x5c5d6b['push'](_0x5c5d6b['shift']());}catch(_0x34e148){_0x5c5d6b['push'](_0x5c5d6b['shift']());}}}(a92_0x1fe4,0xb76bc));import{buildSchemaPayload as a92_0x30c0ff}from'@lovrabet/cli-framework';function a92_0x8aab(_0x41080d,_0x4d8f02){_0x41080d=_0x41080d-0x6e;const _0x1fe4bc=a92_0x1fe4();let _0x8aab18=_0x1fe4bc[_0x41080d];return _0x8aab18;}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 _0x2470a3=a92_0x8aab,{serviceRegistry:_0x10f299,findDefinition:_0x29ad87}=await import(_0x2470a3(0x75)),_0x36a73e=new Set(_0x10f299[_0x2470a3(0x74)](_0x5108f9=>_0x5108f9[_0x2470a3(0x81)])),_0x1e0c13=listDynamicServiceEntries()[_0x2470a3(0x72)](_0x1d8c4c=>!_0x36a73e[_0x2470a3(0x78)](_0x1d8c4c[_0x2470a3(0x81)])),_0x20ae0c=a92_0x30c0ff({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x10f299,_0x1e0c13),'buildAllFlags':buildAllFlags,'findDefinition':(_0x8ff6b3,_0x3287)=>_0x29ad87(_0x8ff6b3,_0x3287)??findDynamicServiceDefinition(_0x8ff6b3,_0x3287)});return normalizeSchemaPayload(_0x20ae0c);}function normalizeSchemaPayload(_0x4a8b22){const _0x3a1095=a92_0x8aab;return{..._0x4a8b22,'schemaVersion':0x2,'services':_0x4a8b22['services'][_0x3a1095(0x74)](_0x56d0f3=>({..._0x56d0f3,'commands':_0x56d0f3[_0x3a1095(0x79)]['map'](normalizeSchemaCommand)}))};}function a92_0x1fe4(){const _0x33fdd5=['4113176rcwxQk','5034535PfXcDw','filter','6254864oSPpZg','map','../commands/registry.js','2Vlurpq','10NgBQmg','has','commands','required','259UEmQtA','requiresAuth','227514smXmgo','auth','799139uQHgpB','21886947LgzWzw','service','3093336ZEPMKO','none'];a92_0x1fe4=function(){return _0x33fdd5;};return a92_0x1fe4();}function normalizeSchemaCommand(_0x20b12e){const _0x43a626=a92_0x8aab,_0x34dfe2=_0x20b12e;return{..._0x20b12e,'auth':_0x34dfe2[_0x43a626(0x7e)]??(_0x20b12e[_0x43a626(0x7c)]?_0x43a626(0x7a):_0x43a626(0x6f))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49b4de,_0x357618){const _0x5500c3=a93_0x49d5,_0x122924=_0x49b4de();while(!![]){try{const _0x4fa1ab=-parseInt(_0x5500c3(0xf0))/0x1*(-parseInt(_0x5500c3(0xef))/0x2)+parseInt(_0x5500c3(0xf9))/0x3*(-parseInt(_0x5500c3(0xf5))/0x4)+-parseInt(_0x5500c3(0xf3))/0x5*(parseInt(_0x5500c3(0xee))/0x6)+parseInt(_0x5500c3(0xfa))/0x7+parseInt(_0x5500c3(0xf2))/0x8*(-parseInt(_0x5500c3(0xf7))/0x9)+parseInt(_0x5500c3(0xf6))/0xa+-parseInt(_0x5500c3(0xf8))/0xb;if(_0x4fa1ab===_0x357618)break;else _0x122924['push'](_0x122924['shift']());}catch(_0x4e1090){_0x122924['push'](_0x122924['shift']());}}}(a93_0x7b7d,0x5bca3));function a93_0x7b7d(){const _0x5b9162=['280494wCzYSg','1179586oufVNF','1uQtJlS','slice','8CRyZdv','55Hclhfm','findIndex','4hKilIe','4676990mhiSvQ','1202697MJwyzs','1694297PHUkon','138651ELWVKP','1166165TVRgtR','length'];a93_0x7b7d=function(){return _0x5b9162;};return a93_0x7b7d();}function a93_0x49d5(_0x27b7cf,_0x388569){_0x27b7cf=_0x27b7cf-0xed;const _0x7b7d41=a93_0x7b7d();let _0x49d5b9=_0x7b7d41[_0x27b7cf];return _0x49d5b9;}export function insertDynamicServicesAfterServiceTree(_0x25883b,_0x1c7202){const _0x235a60=a93_0x49d5;if(_0x1c7202[_0x235a60(0xed)]===0x0)return[..._0x25883b];const _0x453243=_0x25883b[_0x235a60(0xf4)](_0x3fddb4=>_0x3fddb4['service']==='service');if(_0x453243<0x0)return[..._0x25883b,..._0x1c7202];return[..._0x25883b['slice'](0x0,_0x453243+0x1),..._0x1c7202,..._0x25883b[_0x235a60(0xf1)](_0x453243+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a94_0x5e9a(_0x3487d7,_0x5f90f9){_0x3487d7=_0x3487d7-0x86;var _0xcbef08=a94_0xcbef();var _0x5e9ad4=_0xcbef08[_0x3487d7];return _0x5e9ad4;}function a94_0xcbef(){var _0x5f4883=['956417OpCieD','3907010BEDsGX','693798TynVtZ','1083696TfNLsL','13730906tDkdcF','5543904hfTulr','245070MNzMxF'];a94_0xcbef=function(){return _0x5f4883;};return a94_0xcbef();}(function(_0x54bde5,_0x498018){var _0x32f08f=a94_0x5e9a,_0x13ffb6=_0x54bde5();while(!![]){try{var _0x190634=-parseInt(_0x32f08f(0x8c))/0x1+-parseInt(_0x32f08f(0x8b))/0x2+-parseInt(_0x32f08f(0x87))/0x3+-parseInt(_0x32f08f(0x88))/0x4+-parseInt(_0x32f08f(0x86))/0x5+parseInt(_0x32f08f(0x8a))/0x6+parseInt(_0x32f08f(0x89))/0x7;if(_0x190634===_0x498018)break;else _0x13ffb6['push'](_0x13ffb6['shift']());}catch(_0x4726ba){_0x13ffb6['push'](_0x13ffb6['shift']());}}}(a94_0xcbef,0x7faf6));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -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-
|
|
1
|
+
export declare const VERSION = "2.1.19-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.1.19-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "3f0223f";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-01T07:09:25.269Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x1e88f5=a95_0x4285;(function(_0x54813a,_0x1936e0){const _0x498311=a95_0x4285,_0x1f932a=_0x54813a();while(!![]){try{const _0x40b651=-parseInt(_0x498311(0x8f))/0x1+parseInt(_0x498311(0x8e))/0x2*(-parseInt(_0x498311(0x97))/0x3)+-parseInt(_0x498311(0x98))/0x4*(parseInt(_0x498311(0x90))/0x5)+parseInt(_0x498311(0x94))/0x6*(-parseInt(_0x498311(0x93))/0x7)+-parseInt(_0x498311(0x92))/0x8*(parseInt(_0x498311(0x96))/0x9)+-parseInt(_0x498311(0x8d))/0xa+parseInt(_0x498311(0x99))/0xb;if(_0x40b651===_0x1936e0)break;else _0x1f932a['push'](_0x1f932a['shift']());}catch(_0x20dc44){_0x1f932a['push'](_0x1f932a['shift']());}}}(a95_0x465f,0x4a3e4));export const VERSION='2.1.19-beta.1';export const GIT_TAG=a95_0x1e88f5(0x95);export const GIT_COMMIT=a95_0x1e88f5(0x91);function a95_0x4285(_0x4cd41a,_0x4b51d7){_0x4cd41a=_0x4cd41a-0x8d;const _0x465f3b=a95_0x465f();let _0x4285e2=_0x465f3b[_0x4cd41a];return _0x4285e2;}export const BUILD_TIME='2026-08-01T07:09:25.269Z';function a95_0x465f(){const _0x473fb4=['6yokXJO','v2.1.19-beta.1','36NFbHOu','5613zYXeNj','2120924XylOpu','26003923YkjfFx','1389490zXEdsO','18pnENhL','491543ShWZLn','5hPElyV','3f0223f','949384BnLKkh','2853473IgbaGj'];a95_0x465f=function(){return _0x473fb4;};return a95_0x465f();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x4482(_0x34c6f8,_0x1a83b1){_0x34c6f8=_0x34c6f8-0x127;const _0x3b338f=a96_0x3b33();let _0x4482ac=_0x3b338f[_0x34c6f8];return _0x4482ac;}(function(_0x3695d8,_0x2c5432){const _0x10b24f=a96_0x4482,_0x3318a7=_0x3695d8();while(!![]){try{const _0x338436=parseInt(_0x10b24f(0x135))/0x1*(parseInt(_0x10b24f(0x127))/0x2)+-parseInt(_0x10b24f(0x12a))/0x3+-parseInt(_0x10b24f(0x12e))/0x4*(parseInt(_0x10b24f(0x134))/0x5)+parseInt(_0x10b24f(0x129))/0x6*(parseInt(_0x10b24f(0x131))/0x7)+-parseInt(_0x10b24f(0x132))/0x8*(parseInt(_0x10b24f(0x12d))/0x9)+parseInt(_0x10b24f(0x12c))/0xa*(-parseInt(_0x10b24f(0x133))/0xb)+parseInt(_0x10b24f(0x12f))/0xc;if(_0x338436===_0x2c5432)break;else _0x3318a7['push'](_0x3318a7['shift']());}catch(_0x353d36){_0x3318a7['push'](_0x3318a7['shift']());}}}(a96_0x3b33,0xe736b));import{jsx as a96_0x543c08,jsxs as a96_0x4c0670}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a96_0x3b33(){const _0x18ae69=['55360cENbGe','\x20--help','40CDnYKQ','green','3576648nrmnJa','3530226OKacPb','\x20to\x20view\x20available\x20commands.','540QxXIrE','90NWbuAp','68nZjXXp','11344728FzhDBy','column','14yOzXqF','440632lzAcJf','79211CLGmGG','53345QpDBnb'];a96_0x3b33=function(){return _0x18ae69;};return a96_0x3b33();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x52aac2=a96_0x4482,{exit:_0x33722b}=useApp();return useEffect(()=>{_0x33722b();},[_0x33722b]),a96_0x4c0670(Box,{'flexDirection':_0x52aac2(0x130),'marginTop':0x1,'marginBottom':0x1,'children':[a96_0x543c08(Box,{'children':a96_0x543c08(Text,{'bold':!![],'color':_0x52aac2(0x128),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a96_0x4c0670(Box,{'marginTop':0x1,'children':[a96_0x543c08(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a96_0x543c08(Text,{'bold':!![],'color':_0x52aac2(0x128),'children':CLI_BIN_NAME+_0x52aac2(0x136)}),a96_0x543c08(Text,{'dimColor':!![],'children':_0x52aac2(0x12b)})]})]});}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xdfc3d8,_0x52ac57){const _0x36d372=a97_0x9e9d,_0x893be9=_0xdfc3d8();while(!![]){try{const _0x39255c=parseInt(_0x36d372(0xbd))/0x1+parseInt(_0x36d372(0xb7))/0x2+parseInt(_0x36d372(0xbe))/0x3*(-parseInt(_0x36d372(0xbc))/0x4)+-parseInt(_0x36d372(0xbf))/0x5*(-parseInt(_0x36d372(0xba))/0x6)+-parseInt(_0x36d372(0xb6))/0x7*(parseInt(_0x36d372(0xb2))/0x8)+parseInt(_0x36d372(0xb4))/0x9+parseInt(_0x36d372(0xad))/0xa*(-parseInt(_0x36d372(0xc0))/0xb);if(_0x39255c===_0x52ac57)break;else _0x893be9['push'](_0x893be9['shift']());}catch(_0x344e3d){_0x893be9['push'](_0x893be9['shift']());}}}(a97_0x4d27,0x55b3e));function a97_0x9e9d(_0x380c43,_0x20b15d){_0x380c43=_0x380c43-0xad;const _0x4d273c=a97_0x4d27();let _0x9e9d3b=_0x4d273c[_0x380c43];return _0x9e9d3b;}export function canonicalLovrabetOperation(_0x3a202b){const _0x5e0a7f=a97_0x9e9d;return[_0x3a202b[_0x5e0a7f(0xb0)],..._0x3a202b['command'][_0x5e0a7f(0xb3)]()[_0x5e0a7f(0xb9)](/\s+/)][_0x5e0a7f(0xb8)](Boolean)[_0x5e0a7f(0xbb)]('.');}function a97_0x4d27(){const _0x38927a=['join','96964mPluTB','287030iRnvKZ','48ROmxjJ','70630LLFmvp','41074ukaxJL','1880hTOiYH','risk','writeEventSubject','service','lovrabet.write.completed','24HgviYs','trim','4423914rBoLYp','high-risk-write','359394NMDKqs','1293648wrZHJC','filter','split','72NzYjZi'];a97_0x4d27=function(){return _0x38927a;};return a97_0x4d27();}export function createLovrabetWriteMetadata(_0x52659c,_0x3ad7d7,_0x4763da,_0x5624cc){const _0x51a711=a97_0x9e9d;if(_0x5624cc||_0x4763da['ok']!==!![]||_0x52659c[_0x51a711(0xae)]!=='write'&&_0x52659c[_0x51a711(0xae)]!==_0x51a711(0xb5))return undefined;const _0x12fe67=_0x52659c[_0x51a711(0xaf)]?.(_0x4763da),_0x395360={'type':_0x51a711(0xb1),'operation':_0x3ad7d7,'risk':_0x52659c[_0x51a711(0xae)],..._0x12fe67?{'subject':_0x12fe67}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x395360}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34b87a,_0x4a806a){const _0x1ef8a3=a98_0x8207,_0x28229e=_0x34b87a();while(!![]){try{const _0x195645=-parseInt(_0x1ef8a3(0x1a0))/0x1*(-parseInt(_0x1ef8a3(0x19e))/0x2)+-parseInt(_0x1ef8a3(0x1a9))/0x3*(parseInt(_0x1ef8a3(0x1ab))/0x4)+-parseInt(_0x1ef8a3(0x19b))/0x5*(-parseInt(_0x1ef8a3(0x1ac))/0x6)+-parseInt(_0x1ef8a3(0x18e))/0x7*(-parseInt(_0x1ef8a3(0x199))/0x8)+-parseInt(_0x1ef8a3(0x1a2))/0x9+-parseInt(_0x1ef8a3(0x197))/0xa+parseInt(_0x1ef8a3(0x18d))/0xb*(-parseInt(_0x1ef8a3(0x1a8))/0xc);if(_0x195645===_0x4a806a)break;else _0x28229e['push'](_0x28229e['shift']());}catch(_0x1906bc){_0x28229e['push'](_0x28229e['shift']());}}}(a98_0x520e,0xa1220));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';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';function a98_0x520e(){const _0x31286e=['291641egTJGk','format','isNonInteractive','data','present','dryRun','confirm','high-risk-write','args','2645710mENZUb','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','72clTYGj','rawFlags','5MmpdDZ','reason','result','4ENmUhj','AbortError','256609svMiVJ','signal','1272348IQvoEd','presentation','message','execute','risk','yes','1356GLmrGK','3HzyFau','dry-run','865516SZCoDT','6912168GcyjoP','command','stringify','definition','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','73777fqVCSG'];a98_0x520e=function(){return _0x31286e;};return a98_0x520e();}const defaultPresentation={'present'({result:_0xc9ca6d,command:_0x28cecd,risk:_0x4420ca,dryRun:_0x4c66ec}){const _0x1abc26=a98_0x8207;return JSON[_0x1abc26(0x18a)]({'ok':_0xc9ca6d['ok'],'command':_0x28cecd,'risk':_0x4420ca,..._0x4c66ec?{'dryRun':!![]}:{},..._0xc9ca6d[_0x1abc26(0x191)]!==undefined?{'data':_0xc9ca6d[_0x1abc26(0x191)]}:{},..._0xc9ca6d[_0x1abc26(0x1a4)]?{'message':_0xc9ca6d[_0x1abc26(0x1a4)]}:{}});}};function a98_0x8207(_0x218e79,_0x8ad550){_0x218e79=_0x218e79-0x18a;const _0x520eec=a98_0x520e();let _0x8207ce=_0x520eec[_0x218e79];return _0x8207ce;}export async function invokeLovrabet(_0x442963,_0x56f70e){return runSerialized(async()=>{const _0x1999ec=a98_0x8207;throwIfAborted(_0x56f70e[_0x1999ec(0x1a1)]);const _0x6ccfbd=await resolveLovrabetInvocation(_0x442963),_0x36bf46=canonicalLovrabetOperation(_0x6ccfbd[_0x1999ec(0x18b)]),_0x32ec03={},_0x4cefba=buildConfigFromFlags(_0x6ccfbd[_0x1999ec(0x19a)]);await initGlobalEnvironment(_0x4cefba);const _0x290bb3=createPipelineEnv(_0x4cefba,{..._0x6ccfbd['rawFlags'],'yes':_0x6ccfbd['definition'][_0x1999ec(0x1a6)]===_0x1999ec(0x195)?!![]:_0x6ccfbd['rawFlags'][_0x1999ec(0x1a7)],'nonInteractive':!![]});_0x290bb3[_0x1999ec(0x196)]=_0x6ccfbd[_0x1999ec(0x196)],_0x290bb3[_0x1999ec(0x190)]=!![],_0x290bb3['riskLevel']=_0x1999ec(0x195);const _0x5b1f99=withEmbeddedLifecycle(_0x6ccfbd[_0x1999ec(0x18b)],_0x36bf46,_0x56f70e),_0x5c15df=createLovrabetRunnerAdapter({'formatOutput'(_0x567d69,_0x199f8f){const _0x3891fe=_0x1999ec;_0x32ec03['result']=_0x567d69,_0x32ec03[_0x3891fe(0x1ad)]=_0x199f8f['command'],_0x32ec03[_0x3891fe(0x1a6)]=_0x199f8f[_0x3891fe(0x1a6)],_0x32ec03[_0x3891fe(0x18f)]=_0x199f8f[_0x3891fe(0x18f)],_0x32ec03[_0x3891fe(0x193)]=_0x199f8f[_0x3891fe(0x193)]===!![];},async 'confirmHighRisk'(){const _0x142448=_0x1999ec;throw new Error(_0x142448(0x18c));}});try{await runCommand(_0x5b1f99,_0x290bb3,_0x5c15df);if(!_0x32ec03['result']||!_0x32ec03['command']||!_0x32ec03['risk']||!_0x32ec03['format'])throw new Error(_0x1999ec(0x198));const _0x59de91=_0x56f70e[_0x1999ec(0x1a3)]??defaultPresentation,_0x223cbe=_0x32ec03[_0x1999ec(0x193)]===!![],_0x1afdcc={'result':_0x32ec03[_0x1999ec(0x19d)],'command':_0x32ec03[_0x1999ec(0x1ad)],'operation':_0x36bf46,'risk':_0x32ec03[_0x1999ec(0x1a6)],'format':_0x32ec03[_0x1999ec(0x18f)],'dryRun':_0x223cbe},_0x5af816=createLovrabetWriteMetadata(_0x6ccfbd[_0x1999ec(0x18b)],_0x36bf46,_0x32ec03[_0x1999ec(0x19d)],_0x223cbe);let _0xe2f7a2;try{_0xe2f7a2=await _0x59de91[_0x1999ec(0x192)](_0x1afdcc);}catch(_0x1aa158){if(!_0x5af816||_0x59de91===defaultPresentation)throw _0x1aa158;_0xe2f7a2=await defaultPresentation[_0x1999ec(0x192)](_0x1afdcc);}return{'operation':_0x36bf46,'risk':_0x32ec03[_0x1999ec(0x1a6)],'mode':_0x223cbe?_0x1999ec(0x1aa):_0x1999ec(0x1a5),'result':_0x32ec03[_0x1999ec(0x19d)],'output':_0xe2f7a2,..._0x5af816?{'metadata':_0x5af816}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x2c4cc8,_0x5b0a23,_0x9d6dee){return{..._0x2c4cc8,async 'execute'(_0x5b8bfb){const _0x55028e=a98_0x8207;return throwIfAborted(_0x9d6dee[_0x55028e(0x1a1)]),(_0x2c4cc8['risk']==='write'||_0x2c4cc8[_0x55028e(0x1a6)]==='high-risk-write')&&await _0x9d6dee['confirmation'][_0x55028e(0x194)]({'operation':_0x5b0a23,'risk':_0x2c4cc8[_0x55028e(0x1a6)],'description':_0x2c4cc8['description'],..._0x9d6dee[_0x55028e(0x1a1)]?{'signal':_0x9d6dee[_0x55028e(0x1a1)]}:{}}),throwIfAborted(_0x9d6dee['signal']),_0x2c4cc8[_0x55028e(0x1a5)](_0x5b8bfb);}};}function throwIfAborted(_0x507be1){const _0x3a8027=a98_0x8207;if(_0x507be1?.['aborted'])throw _0x507be1[_0x3a8027(0x19c)]instanceof Error?_0x507be1[_0x3a8027(0x19c)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x3a8027(0x19f));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a99_0x4682(_0x16d437,_0x5f1da9){_0x16d437=_0x16d437-0x1cd;const _0x553f30=a99_0x553f();let _0x46826c=_0x553f30[_0x16d437];return _0x46826c;}(function(_0x55d6f9,_0x3e3c23){const _0x65c2d5=a99_0x4682,_0x1092e4=_0x55d6f9();while(!![]){try{const _0x568b85=parseInt(_0x65c2d5(0x1cf))/0x1+-parseInt(_0x65c2d5(0x1d3))/0x2+parseInt(_0x65c2d5(0x1d2))/0x3+parseInt(_0x65c2d5(0x1d6))/0x4+parseInt(_0x65c2d5(0x1ce))/0x5*(parseInt(_0x65c2d5(0x1d1))/0x6)+-parseInt(_0x65c2d5(0x1d5))/0x7*(-parseInt(_0x65c2d5(0x1d4))/0x8)+-parseInt(_0x65c2d5(0x1d0))/0x9;if(_0x568b85===_0x3e3c23)break;else _0x1092e4['push'](_0x1092e4['shift']());}catch(_0x4781f9){_0x1092e4['push'](_0x1092e4['shift']());}}}(a99_0x553f,0xbf05b));function a99_0x553f(){const _0x4b6b51=['2154976PAJeYm','catch','335sOrgfj','1402288BuuFCq','21282138ZOffGm','22284yYocVO','1890159RBUsva','1994718RXYFJC','120DvMiqr','618121gkSXTB'];a99_0x553f=function(){return _0x4b6b51;};return a99_0x553f();}let tail=Promise['resolve']();export async function runSerialized(_0x36aa55){const _0x4e27a7=a99_0x4682,_0x24fcd2=tail;let _0x417d0f;tail=new Promise(_0x2222a9=>{_0x417d0f=_0x2222a9;}),await _0x24fcd2[_0x4e27a7(0x1cd)](()=>undefined);try{return await _0x36aa55();}finally{_0x417d0f();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x534e69,_0x150f2d){const _0x400347=a100_0xa473,_0x3e9827=_0x534e69();while(!![]){try{const _0x4a144f=-parseInt(_0x400347(0x131))/0x1*(-parseInt(_0x400347(0x12a))/0x2)+-parseInt(_0x400347(0x124))/0x3+parseInt(_0x400347(0x130))/0x4*(-parseInt(_0x400347(0x126))/0x5)+-parseInt(_0x400347(0x12b))/0x6+-parseInt(_0x400347(0x12d))/0x7*(parseInt(_0x400347(0x11b))/0x8)+-parseInt(_0x400347(0x11e))/0x9+-parseInt(_0x400347(0x120))/0xa*(-parseInt(_0x400347(0x12e))/0xb);if(_0x4a144f===_0x150f2d)break;else _0x3e9827['push'](_0x3e9827['shift']());}catch(_0x7d3b1a){_0x3e9827['push'](_0x3e9827['shift']());}}}(a100_0x4bec,0x9c606));function a100_0xa473(_0x576ae1,_0x5d421a){_0x576ae1=_0x576ae1-0x11b;const _0x4bec0a=a100_0x4bec();let _0xa473c0=_0x4bec0a[_0x576ae1];return _0xa473c0;}import a100_0x323f8e 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';export async function resolveLovrabetInvocation(_0x3d5296){const _0x27ce58=a100_0xa473,_0x35ef7f=a100_0x323f8e('',{'importMeta':import.meta,'argv':_0x3d5296,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x276022=[..._0x35ef7f[_0x27ce58(0x125)]],_0x1f413d=_0x35ef7f[_0x27ce58(0x129)];await correctFlags(_0x1f413d);const _0x4601fe=_0x276022[0x0];if(!_0x4601fe)throw CliErrors[_0x27ce58(0x127)](_0x27ce58(0x12c));if(!isKnownService(_0x4601fe)){const _0x54465a=resolveDynamicServiceCommand(_0x276022,_0x1f413d);if(!_0x54465a)throw CliErrors['unknownCommand'](_0x276022[_0x27ce58(0x123)]('\x20'));return Object[_0x27ce58(0x122)](_0x1f413d,_0x54465a[_0x27ce58(0x129)]),{'definition':_0x54465a[_0x27ce58(0x11d)],'rawFlags':_0x1f413d,'args':_0x54465a['args']};}const _0x25fd18=getServiceEntry(_0x4601fe),_0x4298dc=_0x276022[0x1]||_0x25fd18[_0x27ce58(0x128)];if(!_0x4298dc)throw CliErrors['validation'](_0x27ce58(0x121)+_0x4601fe+'\x22.');const _0x25c77c=findDefinition(_0x4601fe,_0x4298dc);if(!_0x25c77c)throw CliErrors[_0x27ce58(0x11c)](_0x4601fe+'\x20'+_0x4298dc);return{'definition':_0x25c77c,'rawFlags':_0x1f413d,'args':_0x276022[_0x27ce58(0x12f)](0x2)};}function a100_0x4bec(){const _0x113f6e=['input','35PIPSvs','validation','defaultCommand','flags','468NiHnov','5920806wsNtEZ','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','14iuuTeL','209AGkXYw','slice','575628gEhwke','2505Syrnnj','../framework/preparse.js','4275624smdEMI','unknownCommand','definition','8716239aoJAbQ','../commands/registry.js','2363050PvyLSf','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','assign','join','1211760qLmBar'];a100_0x4bec=function(){return _0x113f6e;};return a100_0x4bec();}async function correctFlags(_0x2dd4b7){const _0x5227e5=a100_0xa473;try{const {correctFlags:_0x144ce7}=await import(_0x5227e5(0x132)),{getAllDefinitions:_0x116547}=await import(_0x5227e5(0x11f)),_0x5be290=_0x116547()['flatMap'](_0x180c1c=>_0x180c1c['flags']??[]),_0x40eca4=_0x144ce7(_0x2dd4b7,_0x5be290);Object[_0x5227e5(0x122)](_0x2dd4b7,_0x40eca4[_0x5227e5(0x129)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x11d559=a102_0x3ffe;(function(_0x54f131,_0x1bb20b){const _0x2159c9=a102_0x3ffe,_0x21205b=_0x54f131();while(!![]){try{const _0x4615c2=parseInt(_0x2159c9(0x1cd))/0x1+-parseInt(_0x2159c9(0x1cb))/0x2*(-parseInt(_0x2159c9(0x1d1))/0x3)+parseInt(_0x2159c9(0x1d3))/0x4*(-parseInt(_0x2159c9(0x1d8))/0x5)+parseInt(_0x2159c9(0x1d0))/0x6+-parseInt(_0x2159c9(0x1da))/0x7*(-parseInt(_0x2159c9(0x1d9))/0x8)+parseInt(_0x2159c9(0x1d4))/0x9*(parseInt(_0x2159c9(0x1df))/0xa)+-parseInt(_0x2159c9(0x1dc))/0xb*(parseInt(_0x2159c9(0x1ce))/0xc);if(_0x4615c2===_0x1bb20b)break;else _0x21205b['push'](_0x21205b['shift']());}catch(_0x21cb4f){_0x21205b['push'](_0x21205b['shift']());}}}(a102_0x4164,0x85534));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a102_0x4164(){const _0x4288e1=['3637216CTARhV','14XHweIO','unknown','66407kmjDjw','inherit','npx','730KujvuE','stderr','join','2wxoqZJ','status','936248JGxmef','3840ySGVSA','skipNpxSkillsEnvSuffix','5572170MWSuJs','744843DXmfEv','stdout','380sgkFGo','20151mwfwcR','trim','log','add','37265hIgCvA'];a102_0x4164=function(){return _0x4288e1;};return a102_0x4164();}import{LOVRABET_SKILL_SOURCE as a102_0x888c19}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a102_0x888c19;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a102_0x11d559(0x1cf)]);function a102_0x3ffe(_0x55fc73,_0x3ce46d){_0x55fc73=_0x55fc73-0x1cb;const _0x4164e2=a102_0x4164();let _0x3ffe55=_0x4164e2[_0x55fc73];return _0x3ffe55;}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x20cb5f,_0x2b4b98=LOVRABET_SKILL_SOURCE,_0x1cf590){const _0x4ccd4c=a102_0x11d559;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3c94cc=_0x1cf590?.['stdio']??_0x4ccd4c(0x1dd),_0x20f37b=resolveNpmBin(_0x4ccd4c(0x1de)),_0x37db67=['skills',_0x4ccd4c(0x1d7),_0x2b4b98,'-g','-y'],_0x2a7e96=[_0x20f37b,..._0x37db67][_0x4ccd4c(0x1e1)]('\x20');console[_0x4ccd4c(0x1d6)]('*\x20'+_0x2a7e96);const _0xcdc7d=spawnSync(_0x20f37b,_0x37db67,{'cwd':_0x20cb5f,'stdio':_0x3c94cc,'env':process.env,'shell':![]});if(_0xcdc7d[_0x4ccd4c(0x1cc)]===0x0)return{'ok':!![],'status':0x0};let _0x40ea82='exit\x20'+(_0xcdc7d[_0x4ccd4c(0x1cc)]??_0x4ccd4c(0x1db));if(_0x3c94cc==='pipe'){const _0x397d14=_0xcdc7d[_0x4ccd4c(0x1e0)]?_0xcdc7d[_0x4ccd4c(0x1e0)]['toString']()[_0x4ccd4c(0x1d5)]():'',_0x533e69=_0xcdc7d[_0x4ccd4c(0x1d2)]?_0xcdc7d[_0x4ccd4c(0x1d2)]['toString']()[_0x4ccd4c(0x1d5)]():'';if(_0x397d14)_0x40ea82=_0x397d14;else{if(_0x533e69)_0x40ea82=_0x533e69;}}return{'ok':![],'status':_0xcdc7d[_0x4ccd4c(0x1cc)]??null,'error':_0x40ea82};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a103_0x2650(_0x4af7ff,_0x3360ae){_0x4af7ff=_0x4af7ff-0x175;const _0x483e62=a103_0x483e();let _0x265042=_0x483e62[_0x4af7ff];return _0x265042;}const a103_0x4712f0=a103_0x2650;(function(_0x35c696,_0x275ee8){const _0x35b974=a103_0x2650,_0x249ab0=_0x35c696();while(!![]){try{const _0x5de13e=parseInt(_0x35b974(0x17d))/0x1+parseInt(_0x35b974(0x180))/0x2+parseInt(_0x35b974(0x17f))/0x3*(parseInt(_0x35b974(0x17b))/0x4)+parseInt(_0x35b974(0x17c))/0x5+parseInt(_0x35b974(0x177))/0x6+-parseInt(_0x35b974(0x17a))/0x7*(-parseInt(_0x35b974(0x183))/0x8)+parseInt(_0x35b974(0x185))/0x9*(-parseInt(_0x35b974(0x187))/0xa);if(_0x5de13e===_0x275ee8)break;else _0x249ab0['push'](_0x249ab0['shift']());}catch(_0x4fe965){_0x249ab0['push'](_0x249ab0['shift']());}}}(a103_0x483e,0xef899));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a103_0x4712f0(0x175);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a103_0x4712f0(0x17e)]);export const IGNORED_DIR_NAMES=new Set([a103_0x4712f0(0x178),a103_0x4712f0(0x188),'.svn',a103_0x4712f0(0x176),'.next',a103_0x4712f0(0x181),a103_0x4712f0(0x186),a103_0x4712f0(0x184),a103_0x4712f0(0x182),a103_0x4712f0(0x179)]);function a103_0x483e(){const _0x1194c5=['1202040DbrNUs','dist','.turbo','368aojVtE','coverage','10359dyMiHN','build','40520eywinZ','.hg','SKILL.md','node_modules','2791260rJKwaO','.git','.cache','134813fCrnBr','236836mWVSED','6407005njymdf','1523317ZvFrue','.DS_Store','45XgXKZd'];a103_0x483e=function(){return _0x1194c5;};return a103_0x483e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1cbb92,_0x1363ba){const _0x4d2f83=a104_0x3cc4,_0x45f963=_0x1cbb92();while(!![]){try{const _0xf49b1e=parseInt(_0x4d2f83(0x13d))/0x1*(-parseInt(_0x4d2f83(0x12d))/0x2)+parseInt(_0x4d2f83(0x137))/0x3+-parseInt(_0x4d2f83(0x133))/0x4+-parseInt(_0x4d2f83(0x139))/0x5*(parseInt(_0x4d2f83(0x130))/0x6)+parseInt(_0x4d2f83(0x131))/0x7+parseInt(_0x4d2f83(0x132))/0x8+parseInt(_0x4d2f83(0x138))/0x9;if(_0xf49b1e===_0x1363ba)break;else _0x45f963['push'](_0x45f963['shift']());}catch(_0x17f26f){_0x45f963['push'](_0x45f963['shift']());}}}(a104_0x2a9a,0xcd83d));function a104_0x3cc4(_0x848d33,_0x527286){_0x848d33=_0x848d33-0x12d;const _0x2a9af4=a104_0x2a9a();let _0x3cc458=_0x2a9af4[_0x848d33];return _0x3cc458;}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(_0x2afdc1,_0x4b1ad5){const _0x46d067=a104_0x3cc4,_0x1dbf46=normalizeSkillRelativePath(_0x4b1ad5),_0x1b934f=realOrResolved(_0x2afdc1),_0x11a8c0=resolve(_0x1b934f,..._0x1dbf46[_0x46d067(0x13a)]('/'));if(!isPathInside(_0x11a8c0,_0x1b934f))throw CliErrors[_0x46d067(0x134)](_0x46d067(0x136)+_0x4b1ad5);return ensureNoSymlinkInManagedPath(_0x1b934f,_0x1dbf46),_0x11a8c0;}export function ensureNoSymlinkInManagedPath(_0x529de8,_0x5bee3e){const _0x57a262=a104_0x3cc4;let _0x317f77=_0x529de8;for(const _0x2aa486 of _0x5bee3e[_0x57a262(0x13a)]('/')){_0x317f77=resolve(_0x317f77,_0x2aa486);const _0x71fdb2=lstatIfPresent(_0x317f77);if(_0x71fdb2?.[_0x57a262(0x13b)]())throw CliErrors[_0x57a262(0x134)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x5bee3e);}}export function isDanglingSymlink(_0xb638e9){const _0x2e48e3=a104_0x3cc4;try{return lstatSync(_0xb638e9)[_0x2e48e3(0x13b)]();}catch{return![];}}export function resolveSymlinkTarget(_0x1c5faf){const _0x1ef561=readlinkSync(_0x1c5faf);return isAbsolute(_0x1ef561)?_0x1ef561:resolve(dirname(_0x1c5faf),_0x1ef561);}function a104_0x2a9a(){const _0x481742=['validation','endsWith','Unsafe\x20Skill\x20file\x20path:\x20','51093DLmoOc','9457848mIPCHn','5773195JhKrOH','split','isSymbolicLink','utf8','1297397qSeZUK','from','2wrwpKl','.tmp','startsWith','6SYGPPp','9016700fFOIKI','11139040FtsmEt','1818232Zzohfs'];a104_0x2a9a=function(){return _0x481742;};return a104_0x2a9a();}export function isPathInside(_0x20b8c3,_0x2d5c76){const _0x4beb84=a104_0x3cc4,_0x25f28b=_0x20b8c3['endsWith'](sep)?_0x20b8c3:''+_0x20b8c3+sep,_0x1563d7=_0x2d5c76[_0x4beb84(0x135)](sep)?_0x2d5c76:''+_0x2d5c76+sep;return _0x20b8c3===_0x2d5c76||_0x25f28b[_0x4beb84(0x12f)](_0x1563d7);}export function realOrResolved(_0x10c911){try{return realpathSync(_0x10c911);}catch{return resolve(_0x10c911);}}export function lstatIfPresent(_0x2d8326){try{return lstatSync(_0x2d8326);}catch{return undefined;}}export function writeTextAtomic(_0x2d843c,_0x2e0cee,_0x2810f1){const _0x424501=a104_0x3cc4;writeBytesAtomic(_0x2d843c,Buffer[_0x424501(0x13e)](_0x2e0cee,_0x424501(0x13c)),_0x2810f1);}export function writeBytesAtomic(_0x450e49,_0x13613b,_0x3efdc0){const _0x47c213=a104_0x3cc4,_0xed8419=_0x450e49+_0x47c213(0x12e);try{writeFileSync(_0xed8419,_0x13613b,{'mode':_0x3efdc0}),renameSync(_0xed8419,_0x450e49);}catch(_0x59d93d){try{rmSync(_0xed8419,{'force':!![]});}catch{}throw _0x59d93d;}}export function writeJsonAtomic(_0x1317bd,_0x4ceeb9){writeTextAtomic(_0x1317bd,JSON['stringify'](_0x4ceeb9,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40414d,_0x2917bf){const _0x2f7126=a105_0x5a5d,_0x4869f7=_0x40414d();while(!![]){try{const _0x33af9e=parseInt(_0x2f7126(0x1a3))/0x1*(parseInt(_0x2f7126(0x19c))/0x2)+-parseInt(_0x2f7126(0x19b))/0x3*(parseInt(_0x2f7126(0x19d))/0x4)+parseInt(_0x2f7126(0x1a4))/0x5*(-parseInt(_0x2f7126(0x19f))/0x6)+-parseInt(_0x2f7126(0x1a7))/0x7+-parseInt(_0x2f7126(0x1aa))/0x8+-parseInt(_0x2f7126(0x1a8))/0x9*(-parseInt(_0x2f7126(0x1a2))/0xa)+parseInt(_0x2f7126(0x1a9))/0xb;if(_0x33af9e===_0x2917bf)break;else _0x4869f7['push'](_0x4869f7['shift']());}catch(_0x15d45e){_0x4869f7['push'](_0x4869f7['shift']());}}}(a105_0x1092,0x75edf));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x2d96c3){const _0x2366e4=a105_0x5a5d;return createHash(_0x2366e4(0x1a0))[_0x2366e4(0x19e)](_0x2d96c3)['digest'](_0x2366e4(0x1a5));}export function fileHash(_0x175af3){return bufferSha256(fileContent(_0x175af3));}function a105_0x5a5d(_0x51669e,_0x46b150){_0x51669e=_0x51669e-0x19b;const _0x10924d=a105_0x1092();let _0x5a5db6=_0x10924d[_0x51669e];return _0x5a5db6;}export function bufferSha256(_0x519108){const _0x185170=a105_0x5a5d;return createHash(_0x185170(0x1a0))['update'](_0x519108)[_0x185170(0x1a1)](_0x185170(0x1a5));}export function fileTreeHash(_0x26df3c){const _0x446b6f=a105_0x5a5d,_0x551ea3=createHash(_0x446b6f(0x1a0));for(const _0x5f5302 of normalizeManifestFiles(_0x26df3c)){_0x551ea3[_0x446b6f(0x19e)](_0x5f5302[_0x446b6f(0x1a6)]),_0x551ea3[_0x446b6f(0x19e)]('\x00'),_0x551ea3[_0x446b6f(0x19e)](_0x5f5302[_0x446b6f(0x1a0)]),_0x551ea3[_0x446b6f(0x19e)]('\x00'),_0x551ea3[_0x446b6f(0x19e)](String(_0x5f5302['size'])),_0x551ea3[_0x446b6f(0x19e)]('\x00');}return _0x551ea3[_0x446b6f(0x1a1)](_0x446b6f(0x1a5));}function a105_0x1092(){const _0x17089f=['digest','30wOxeuS','1StlXUZ','5ivabbh','hex','path','6559357bNxwdf','2305899vsaIKY','6564899rEWoHz','401552aGSgYl','12tmLwCq','1871530BEHmVB','734960OtPubo','update','575778Arpbnr','sha256'];a105_0x1092=function(){return _0x17089f;};return a105_0x1092();}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeSkillInstallScope, RuntimeSkillInstallTarget, RuntimeSkillInstallTargetOptions } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves where effective runtime Skill links belong.
|
|
4
|
+
*
|
|
5
|
+
* User-level installation remains the default and retains all Agent roots plus
|
|
6
|
+
* app-prefixed link names. Explicit project installs expose unprefixed Skill
|
|
7
|
+
* codes beneath the current project's `.agents/skills`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveRuntimeSkillInstallTarget(appCode: string, scope?: RuntimeSkillInstallScope, options?: RuntimeSkillInstallTargetOptions): RuntimeSkillInstallTarget;
|