@lovrabet/lovrabet-cli 2.1.18 → 2.1.19
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(_0x78746e,_0x2a2dbe){const _0x4bfeba=a83_0x1999,_0x2c290b=_0x78746e();while(!![]){try{const _0x2b7310=-parseInt(_0x4bfeba(0xd2))/0x1+parseInt(_0x4bfeba(0xdb))/0x2*(-parseInt(_0x4bfeba(0xda))/0x3)+-parseInt(_0x4bfeba(0xd0))/0x4+-parseInt(_0x4bfeba(0xdd))/0x5*(-parseInt(_0x4bfeba(0xd8))/0x6)+parseInt(_0x4bfeba(0xde))/0x7*(parseInt(_0x4bfeba(0xd9))/0x8)+-parseInt(_0x4bfeba(0xdc))/0x9+parseInt(_0x4bfeba(0xd5))/0xa;if(_0x2b7310===_0x2a2dbe)break;else _0x2c290b['push'](_0x2c290b['shift']());}catch(_0xe89cd8){_0x2c290b['push'](_0x2c290b['shift']());}}}(a83_0x3fc0,0xd59ea));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a83_0x3fc0(){const _0x3afd62=['5351544SlvVVt','33115ygpPtc','18158RAROKd','map','generateServiceHelp','5457504iDUiej','has','300223LhRfVu','filter','generateFullHelp','16697180iiGkvT','service','\x20or\x20--appcode).','1254Wdwtsn','2384VMmjhW','47232iItKQy','88SVqNud'];a83_0x3fc0=function(){return _0x3afd62;};return a83_0x3fc0();}function a83_0x1999(_0x5d5896,_0x1d6c21){_0x5d5896=_0x5d5896-0xd0;const _0x3fc02f=a83_0x3fc0();let _0x199901=_0x3fc02f[_0x5d5896];return _0x199901;}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 _0xa926a0=a83_0x1999;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG['newConfigFileName']+_0xa926a0(0xd7)});}export function generateCommandHelp(_0x13d1e1){return createGenerators()['generateCommandHelp'](_0x13d1e1);}export function generateServiceHelp(_0x19ddb6){const _0x20c272=a83_0x1999;return createGenerators()[_0x20c272(0xe0)](_0x19ddb6);}export function generateFullHelp(){const _0x419247=a83_0x1999;return createGenerators()[_0x419247(0xd4)]();}function getAnyServiceEntry(_0x5f42a4){const _0x338293=getServiceEntry(_0x5f42a4);if(_0x338293)return _0x338293;try{return getDynamicServiceEntry(_0x5f42a4);}catch{return undefined;}}function getAnyServiceDefinitions(_0x433d08){const _0x40276d=serviceGroups['get'](_0x433d08);if(_0x40276d)return _0x40276d;try{return getDynamicServiceDefinitions(_0x433d08);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x11cfb2=a83_0x1999,_0x53aef3=new Set(serviceRegistry[_0x11cfb2(0xdf)](_0x4c1f46=>_0x4c1f46[_0x11cfb2(0xd6)]));try{return listDynamicServiceEntries()[_0x11cfb2(0xd3)](_0x1d3fe1=>!_0x53aef3[_0x11cfb2(0xd1)](_0x1d3fe1[_0x11cfb2(0xd6)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15e358,_0x4b8587){var _0x31f5fb=a84_0x3666,_0x5d376d=_0x15e358();while(!![]){try{var _0x2a595e=parseInt(_0x31f5fb(0xd6))/0x1*(parseInt(_0x31f5fb(0xe0))/0x2)+parseInt(_0x31f5fb(0xdd))/0x3*(parseInt(_0x31f5fb(0xde))/0x4)+parseInt(_0x31f5fb(0xdc))/0x5+parseInt(_0x31f5fb(0xdf))/0x6+parseInt(_0x31f5fb(0xda))/0x7*(parseInt(_0x31f5fb(0xd7))/0x8)+-parseInt(_0x31f5fb(0xd9))/0x9+-parseInt(_0x31f5fb(0xdb))/0xa*(parseInt(_0x31f5fb(0xd8))/0xb);if(_0x2a595e===_0x4b8587)break;else _0x5d376d['push'](_0x5d376d['shift']());}catch(_0x36c274){_0x5d376d['push'](_0x5d376d['shift']());}}}(a84_0x1e8f,0x1c27c));function a84_0x1e8f(){var _0x1ab2cd=['2nMItOB','71152UaEaIJ','3146XjKvtM','1905075oUGBQz','77RJVVNK','14080nFvjaq','830290SAKSiV','15OevDER','161736eRdKrD','1073202sEbzLf','84758aGaVlP'];a84_0x1e8f=function(){return _0x1ab2cd;};return a84_0x1e8f();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a84_0x3666(_0x1b244b,_0x591b5b){_0x1b244b=_0x1b244b-0xd6;var _0x1e8ffa=a84_0x1e8f();var _0x366645=_0x1e8ffa[_0x1b244b];return _0x366645;}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(_0x32159d,_0x2bef52){const _0x178aed=a85_0x2eef,_0x44ece2=_0x32159d();while(!![]){try{const _0x154e31=parseInt(_0x178aed(0x134))/0x1+parseInt(_0x178aed(0x13b))/0x2*(-parseInt(_0x178aed(0x139))/0x3)+parseInt(_0x178aed(0x133))/0x4+parseInt(_0x178aed(0x13d))/0x5+parseInt(_0x178aed(0x136))/0x6*(parseInt(_0x178aed(0x138))/0x7)+-parseInt(_0x178aed(0x13e))/0x8+-parseInt(_0x178aed(0x132))/0x9;if(_0x154e31===_0x2bef52)break;else _0x44ece2['push'](_0x44ece2['shift']());}catch(_0x351cf2){_0x44ece2['push'](_0x44ece2['shift']());}}}(a85_0x5d95,0x1e299));function a85_0x5d95(){const _0xba2079=['_notice','629209FGSTfY','516141UAVccZ','message','2HSDwZP','error','474850MOEmzg','990656rrHqML','update','217431dHwnfz','433652fDJkXJ','60426CLxshU','pretty','12sxxdDv'];a85_0x5d95=function(){return _0xba2079;};return a85_0x5d95();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a85_0x2eef(_0x3054ec,_0x4038b6){_0x3054ec=_0x3054ec-0x132;const _0x5d95b8=a85_0x5d95();let _0x2eef30=_0x5d95b8[_0x3054ec];return _0x2eef30;}export function formatOutput(_0x1fa850,_0x38101a){const _0x377796=a85_0x2eef,_0x184cf0=_0x1fa850[_0x377796(0x137)],{_notice:_0x127233,..._0x1780aa}=_0x1fa850;void _0x127233,baseFormatOutput(_0x1780aa,_0x38101a),_0x38101a['format']===_0x377796(0x135)&&printPrettyNotice(_0x184cf0);}function printPrettyNotice(_0x52e87a){const _0xc92cf8=a85_0x2eef;if(!_0x52e87a?.[_0xc92cf8(0x13f)])return;console[_0xc92cf8(0x13c)](_0x52e87a[_0xc92cf8(0x13f)][_0xc92cf8(0x13a)]+'\x20('+_0x52e87a[_0xc92cf8(0x13f)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38a830,_0x525380){const _0x911ec2=a86_0x3fd8,_0x3097a2=_0x38a830();while(!![]){try{const _0x2eaeb2=parseInt(_0x911ec2(0xe9))/0x1+parseInt(_0x911ec2(0xcd))/0x2*(parseInt(_0x911ec2(0xdf))/0x3)+-parseInt(_0x911ec2(0xd5))/0x4*(-parseInt(_0x911ec2(0xd2))/0x5)+parseInt(_0x911ec2(0xdc))/0x6+-parseInt(_0x911ec2(0xc6))/0x7+parseInt(_0x911ec2(0xc9))/0x8*(parseInt(_0x911ec2(0xca))/0x9)+-parseInt(_0x911ec2(0xd9))/0xa;if(_0x2eaeb2===_0x525380)break;else _0x3097a2['push'](_0x3097a2['shift']());}catch(_0x131767){_0x3097a2['push'](_0x3097a2['shift']());}}}(a86_0x1d2d,0x98f70));function a86_0x3fd8(_0x1a292a,_0x65d0f){_0x1a292a=_0x1a292a-0xc5;const _0x1d2ddc=a86_0x1d2d();let _0x3fd825=_0x1d2ddc[_0x1a292a];return _0x3fd825;}function toKebab(_0x439c16){const _0x376772=a86_0x3fd8;return _0x439c16[_0x376772(0xd8)](/_/g,'-')[_0x376772(0xd8)](/-([A-Z]+)/g,(_0x57518c,_0x9a23c1)=>'-'+_0x9a23c1['toLowerCase']())[_0x376772(0xd8)](/([a-z0-9])([A-Z])/g,(_0x18716c,_0x29580d,_0xd10b42)=>_0x29580d+'-'+_0xd10b42)[_0x376772(0xe3)]();}function a86_0x1d2d(){const _0x5d9cbc=['original','has','toLowerCase','corrected','dry-run','set','sticky','slice','686327fqYmvc','push','7251349PRoxWf','name','boolean','512Nbwetw','130563SFBGoF','alias','non-interactive','238xbXHUE','string','number','get','format','5mRGCZT','toUpperCase','help','1177124WskeLb','type','version','replace','13392490oVXFeJ','add','length','5127150pJWrqi','keys','global','6003IjbdqI','env'];a86_0x1d2d=function(){return _0x5d9cbc;};return a86_0x1d2d();}function buildKnownFlags(_0x3f9166){const _0x4c0994=a86_0x3fd8,_0x206549=new Set();for(const _0x3a15f0 of _0x3f9166){_0x206549[_0x4c0994(0xda)](_0x3a15f0[_0x4c0994(0xc7)]),_0x206549['add'](toCamelCase(_0x3a15f0['name']));}for(const _0x4598e8 of[_0x4c0994(0xe5),'dryRun','yes',_0x4c0994(0xd1)]){_0x206549[_0x4c0994(0xda)](_0x4598e8);}for(const _0x2df802 of[_0x4c0994(0xd4),_0x4c0994(0xe0),'appcode','app','nonInteractive',_0x4c0994(0xcc),'ci',_0x4c0994(0xde),_0x4c0994(0xd7)]){_0x206549[_0x4c0994(0xda)](_0x2df802);}return _0x206549;}function buildFlagTypeMap(_0x1e923d){const _0x20940d=a86_0x3fd8,_0x2c463f=new Map();for(const _0x3f0472 of _0x1e923d){_0x2c463f['set'](_0x3f0472[_0x20940d(0xc7)],_0x3f0472[_0x20940d(0xd6)]),_0x2c463f[_0x20940d(0xe6)](toCamelCase(_0x3f0472['name']),_0x3f0472['type']);}return _0x2c463f;}function toCamelCase(_0x4bc9ae){const _0x47d923=a86_0x3fd8;return _0x4bc9ae[_0x47d923(0xd8)](/-([a-z])/g,(_0xb6919d,_0x4dfafc)=>_0x4dfafc[_0x47d923(0xd3)]());}function aliasHandler(_0xdb3b8f,_0x132e16){const _0x2ddfe7=a86_0x3fd8,_0x445cbd=[];for(const _0x12cf11 of Object[_0x2ddfe7(0xdd)](_0xdb3b8f)){if(_0x132e16['has'](_0x12cf11))continue;const _0x3bdc0b=toKebab(_0x12cf11);_0x3bdc0b!==_0x12cf11&&_0x132e16[_0x2ddfe7(0xe2)](_0x3bdc0b)&&_0x445cbd['push']({'original':_0x12cf11,'corrected':_0x3bdc0b,'handler':_0x2ddfe7(0xcb)});}return _0x445cbd;}function stickyHandler(_0xe89970,_0x4b9667,_0x218b63){const _0x40b081=a86_0x3fd8,_0x304a47=[];for(const [_0x1968f6,_0x3da264]of Object['entries'](_0xe89970)){if(_0x3da264!==!![])continue;for(let _0x47f64c=_0x1968f6[_0x40b081(0xdb)]-0x1;_0x47f64c>0x0;_0x47f64c--){const _0x106a77=_0x1968f6['slice'](0x0,_0x47f64c),_0x4a9ba8=_0x1968f6[_0x40b081(0xe8)](_0x47f64c),_0xe27910=toKebab(_0x106a77),_0x57866b=toCamelCase(_0x106a77),_0x439adb=_0x4b9667[_0x40b081(0xe2)](_0x106a77)?_0x106a77:_0x4b9667[_0x40b081(0xe2)](_0xe27910)?_0xe27910:_0x4b9667[_0x40b081(0xe2)](_0x57866b)?_0x57866b:null;if(!_0x439adb)continue;const _0x915ad0=_0x218b63[_0x40b081(0xd0)](_0x439adb)??_0x40b081(0xce);let _0x4e0dda;if(_0x915ad0===_0x40b081(0xcf)){const _0x5292ef=Number(_0x4a9ba8);if(isNaN(_0x5292ef)||_0x4a9ba8==='')continue;_0x4e0dda=_0x5292ef;}else{if(_0x915ad0===_0x40b081(0xc8))continue;else{if(_0x4a9ba8==='')continue;_0x4e0dda=_0x4a9ba8;}}_0x304a47[_0x40b081(0xc5)]({'original':_0x1968f6,'corrected':_0x439adb+'='+_0x4e0dda,'handler':_0x40b081(0xe7)});break;}}return _0x304a47;}export function correctFlags(_0x34dd05,_0x220e80){const _0x13b8e0=a86_0x3fd8,_0x301ca3=buildKnownFlags(_0x220e80),_0x53e0e4=buildFlagTypeMap(_0x220e80),_0x401ac1=aliasHandler(_0x34dd05,_0x301ca3),_0x2bfc55=stickyHandler(_0x34dd05,_0x301ca3,_0x53e0e4),_0x1fa40b=[..._0x401ac1,..._0x2bfc55];if(_0x1fa40b[_0x13b8e0(0xdb)]===0x0)return{'flags':_0x34dd05,'corrections':[]};const _0x10508a={..._0x34dd05},_0x1aae6b=new Set();for(const _0x25ff8b of _0x401ac1){_0x10508a[_0x25ff8b['corrected']]=_0x34dd05[_0x25ff8b[_0x13b8e0(0xe1)]],_0x1aae6b[_0x13b8e0(0xda)](_0x25ff8b[_0x13b8e0(0xe1)]);}for(const _0x526024 of _0x2bfc55){const _0x4d0e57=_0x526024['corrected']['indexOf']('='),_0x3aa427=_0x526024[_0x13b8e0(0xe4)][_0x13b8e0(0xe8)](0x0,_0x4d0e57),_0x287db9=_0x526024[_0x13b8e0(0xe4)][_0x13b8e0(0xe8)](_0x4d0e57+0x1),_0x23fe77=_0x53e0e4[_0x13b8e0(0xd0)](_0x3aa427)??_0x13b8e0(0xce);_0x23fe77===_0x13b8e0(0xcf)?_0x10508a[_0x3aa427]=Number(_0x287db9):_0x10508a[_0x3aa427]=_0x287db9,_0x1aae6b[_0x13b8e0(0xda)](_0x526024[_0x13b8e0(0xe1)]);}for(const _0x5199d2 of _0x1aae6b){delete _0x10508a[_0x5199d2];}return{'flags':_0x10508a,'corrections':_0x1fa40b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x3077b4=a87_0x186c;(function(_0x970a70,_0x2bd3f3){const _0x1d9e7f=a87_0x186c,_0x4a0c77=_0x970a70();while(!![]){try{const _0x18ffa4=-parseInt(_0x1d9e7f(0x12b))/0x1+parseInt(_0x1d9e7f(0x114))/0x2*(parseInt(_0x1d9e7f(0x12d))/0x3)+parseInt(_0x1d9e7f(0x12a))/0x4+parseInt(_0x1d9e7f(0x12e))/0x5+parseInt(_0x1d9e7f(0x124))/0x6+-parseInt(_0x1d9e7f(0x122))/0x7+parseInt(_0x1d9e7f(0x116))/0x8*(-parseInt(_0x1d9e7f(0x12f))/0x9);if(_0x18ffa4===_0x2bd3f3)break;else _0x4a0c77['push'](_0x4a0c77['shift']());}catch(_0x3bd128){_0x4a0c77['push'](_0x4a0c77['shift']());}}}(a87_0x25c0,0xe6063));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a87_0x3077b4(0x129),'MAX_QPS_LIMIT',a87_0x3077b4(0x128)]);function nonEmptyString(_0x43b649){const _0x14f433=a87_0x3077b4;if(typeof _0x43b649!==_0x14f433(0x126))return undefined;const _0x491ffb=_0x43b649[_0x14f433(0x11a)]();return _0x491ffb||undefined;}function buildRetryHint(_0x5b12d1){const _0x5a1372=a87_0x3077b4,_0x5b0741=nonEmptyString(_0x5b12d1),_0x4d1200=_0x5b0741?/^\d+$/[_0x5a1372(0x118)](_0x5b0741)?'Wait\x20'+_0x5b0741+_0x5a1372(0x117):_0x5a1372(0x121)+_0x5b0741+'.':_0x5a1372(0x120);return _0x4d1200+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x1249c8){const _0x254c78=a87_0x3077b4,_0x12fa70=nonEmptyString(_0x1249c8['errorCode'])?.[_0x254c78(0x119)](),_0xc8ce13=Number(_0x1249c8[_0x254c78(0x11b)])===0x1ad||_0x12fa70!==undefined&&RATE_LIMIT_ERROR_CODES[_0x254c78(0x112)](_0x12fa70);if(!_0xc8ce13)return undefined;return CliErrors[_0x254c78(0x123)](nonEmptyString(_0x1249c8['message'])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x1249c8['retryAfter']));}function a87_0x25c0(){const _0x572a43=['1337947Ljyqve','function','3375279lJrxNJ','7208700iBwjBd','432MAaNcm','retryAfterSeconds','get','has','retry-after','2tmHnaW','call','301640wUDhyf','\x20seconds\x20before\x20retrying.','test','toUpperCase','trim','status','toLowerCase','isArray','Retry-After','entries','Retry\x20after\x20a\x20short\x20delay.','Retry\x20after\x20','3012303dKSQZs','rateLimited','4665984OFPQne','object','string','number','IP_RATE_LIMIT_EXCEEDED','EXCEED_MAX_QPS_LIMIT','4703192GjlatJ'];a87_0x25c0=function(){return _0x572a43;};return a87_0x25c0();}function a87_0x186c(_0x37c4b1,_0x557913){_0x37c4b1=_0x37c4b1-0x110;const _0x25c057=a87_0x25c0();let _0x186cc8=_0x25c057[_0x37c4b1];return _0x186cc8;}export function readRetryAfter(_0x1a58b2){const _0x5ac0f5=a87_0x3077b4;if(!_0x1a58b2||typeof _0x1a58b2!==_0x5ac0f5(0x125))return undefined;const _0x51b46b=_0x1a58b2[_0x5ac0f5(0x111)];if(typeof _0x51b46b===_0x5ac0f5(0x12c)){const _0x19ec9e=_0x51b46b[_0x5ac0f5(0x115)](_0x1a58b2,_0x5ac0f5(0x11e))??_0x51b46b[_0x5ac0f5(0x115)](_0x1a58b2,_0x5ac0f5(0x113));return nonEmptyString(_0x19ec9e);}for(const [_0x141d82,_0x3813fb]of Object[_0x5ac0f5(0x11f)](_0x1a58b2)){if(_0x141d82[_0x5ac0f5(0x11c)]()===_0x5ac0f5(0x113))return nonEmptyString(_0x3813fb)??(typeof _0x3813fb===_0x5ac0f5(0x127)?String(_0x3813fb):undefined);}return undefined;}export function readRetryAfterSeconds(_0x47512f){const _0x23337b=a87_0x3077b4;if(!_0x47512f||typeof _0x47512f!==_0x23337b(0x125)||Array[_0x23337b(0x11d)](_0x47512f))return undefined;const _0x141b34=_0x47512f[_0x23337b(0x110)];if(typeof _0x141b34===_0x23337b(0x127))return Number['isInteger'](_0x141b34)&&_0x141b34>=0x0?String(_0x141b34):undefined;const _0x4f05f2=nonEmptyString(_0x141b34);return _0x4f05f2&&/^\d+$/[_0x23337b(0x118)](_0x4f05f2)?_0x4f05f2:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a88_0x4045(_0x2d008b,_0x495654){_0x2d008b=_0x2d008b-0x15c;var _0x4ebdcd=a88_0x4ebd();var _0x40455f=_0x4ebdcd[_0x2d008b];return _0x40455f;}function a88_0x4ebd(){var _0x113602=['16xbJCHr','306711ZIMcXj','1244166GlQYdR','3xNbfUb','1728420niJEhB','2119025lBgkeQ','6PqVoQz','2117151xIPHIs','1241116Iiwilv','142334uqDoBO'];a88_0x4ebd=function(){return _0x113602;};return a88_0x4ebd();}(function(_0x54c561,_0x498963){var _0x3fe0ec=a88_0x4045,_0x4777ba=_0x54c561();while(!![]){try{var _0x3ace9f=-parseInt(_0x3fe0ec(0x161))/0x1+-parseInt(_0x3fe0ec(0x15f))/0x2*(parseInt(_0x3fe0ec(0x163))/0x3)+parseInt(_0x3fe0ec(0x15e))/0x4+-parseInt(_0x3fe0ec(0x165))/0x5*(parseInt(_0x3fe0ec(0x15c))/0x6)+parseInt(_0x3fe0ec(0x162))/0x7+-parseInt(_0x3fe0ec(0x160))/0x8*(-parseInt(_0x3fe0ec(0x15d))/0x9)+parseInt(_0x3fe0ec(0x164))/0xa;if(_0x3ace9f===_0x498963)break;else _0x4777ba['push'](_0x4777ba['shift']());}catch(_0x33a2e5){_0x4777ba['push'](_0x4777ba['shift']());}}}(a88_0x4ebd,0x507b6));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a87f0,_0x118153){const _0x2d113b=a89_0x4d56,_0x5e325c=_0x1a87f0();while(!![]){try{const _0x3d8508=parseInt(_0x2d113b(0x102))/0x1+-parseInt(_0x2d113b(0x101))/0x2+-parseInt(_0x2d113b(0x104))/0x3*(-parseInt(_0x2d113b(0xf7))/0x4)+parseInt(_0x2d113b(0x103))/0x5*(-parseInt(_0x2d113b(0x109))/0x6)+-parseInt(_0x2d113b(0x106))/0x7*(parseInt(_0x2d113b(0xf8))/0x8)+parseInt(_0x2d113b(0xe7))/0x9+-parseInt(_0x2d113b(0xf3))/0xa*(-parseInt(_0x2d113b(0x105))/0xb);if(_0x3d8508===_0x118153)break;else _0x5e325c['push'](_0x5e325c['shift']());}catch(_0xcb1f3d){_0x5e325c['push'](_0x5e325c['shift']());}}}(a89_0x3ed8,0xb82e3));import{CLI_BIN_NAME}from'../constant/cli.js';function a89_0x3ed8(){const _0x472c99=['length','description','entries','1797212WNCscS','5181560OuCavP','scheduled-at','commandLabel','name=','kind','command','affectedRecords','params','code','2210970XlwISX','741847StiopL','5kjfkrX','3HBLzyu','6946929fzxkoq','14kQmXsA','\x20\x20\x20Continue?\x20[y/N]\x20','--yes','3454092njdOqM','kind=','channel','schedule-id=','\x20\x20\x20Affected:\x20','11490588vqZeee','⚠\x20\x20High-risk\x20operation:\x20','push','join','scheduled-at=','cron=','params=','title','\x20\x20\x20','name','cron','title=','20zWDSXh'];a89_0x3ed8=function(){return _0x472c99;};return a89_0x3ed8();}export function buildConfirmationLines(_0xe2e0b6,_0x45dcb0,_0x588dfc){const _0x199404=a89_0x4d56,_0x579b5d=buildConfirmationContext(_0xe2e0b6,_0x45dcb0,_0x588dfc),_0x27b887=[_0x199404(0xe8)+_0x579b5d[_0x199404(0xfa)]];return _0x579b5d['description']&&_0x27b887[_0x199404(0xe9)](_0x199404(0xef)+_0x579b5d['description']),_0x579b5d[_0x199404(0xfe)]&&_0x27b887[_0x199404(0xe9)](_0x199404(0xe6)+_0x579b5d[_0x199404(0xfe)]),_0x27b887[_0x199404(0xe9)](_0x199404(0x107)),_0x27b887;}export function reconstructCommandArgv(_0x2e1ed2,_0x3ef636){const _0x5aa682=a89_0x4d56,_0x3e575d=[CLI_BIN_NAME,_0x2e1ed2['service'],_0x2e1ed2[_0x5aa682(0xfd)]];for(const [_0x14a1ab,_0x364022]of Object[_0x5aa682(0xf6)](_0x3ef636)){if(_0x364022===!![])_0x3e575d[_0x5aa682(0xe9)]('--'+_0x14a1ab);else _0x364022!==![]&&_0x364022!==undefined&&_0x364022!==''&&_0x3e575d['push']('--'+_0x14a1ab+'\x20'+JSON['stringify'](_0x364022));}return _0x3e575d[_0x5aa682(0xe9)](_0x5aa682(0x108)),_0x3e575d[_0x5aa682(0xea)]('\x20');}function buildConfirmationContext(_0x2f6ef7,_0x2fd62d,_0x1b2a1b){const _0x1ed5d7=a89_0x4d56,_0x23e2e8=extractAffectedRecords(_0x1b2a1b);return{'commandLabel':_0x2fd62d,'description':_0x2f6ef7[_0x1ed5d7(0xf5)],'affectedRecords':_0x23e2e8};}function a89_0x4d56(_0x1811d6,_0x174739){_0x1811d6=_0x1811d6-0xe5;const _0x3ed8d1=a89_0x3ed8();let _0x4d56a5=_0x3ed8d1[_0x1811d6];return _0x4d56a5;}function extractAffectedRecords(_0x5e92d5){const _0x37eae7=a89_0x4d56,_0x418fb5=[];if(_0x5e92d5[_0x37eae7(0x100)])_0x418fb5['push']('code='+_0x5e92d5['code']);if(_0x5e92d5['id'])_0x418fb5[_0x37eae7(0xe9)]('id='+_0x5e92d5['id']);if(_0x5e92d5['schedule-id'])_0x418fb5[_0x37eae7(0xe9)](_0x37eae7(0xe5)+_0x5e92d5['schedule-id']);if(_0x5e92d5[_0x37eae7(0xf0)])_0x418fb5[_0x37eae7(0xe9)](_0x37eae7(0xfb)+_0x5e92d5['name']);if(_0x5e92d5[_0x37eae7(0xee)])_0x418fb5[_0x37eae7(0xe9)](_0x37eae7(0xf2)+_0x5e92d5[_0x37eae7(0xee)]);if(_0x5e92d5[_0x37eae7(0xfc)])_0x418fb5[_0x37eae7(0xe9)](_0x37eae7(0x10a)+_0x5e92d5[_0x37eae7(0xfc)]);if(_0x5e92d5[_0x37eae7(0xf1)])_0x418fb5['push'](_0x37eae7(0xec)+_0x5e92d5['cron']);if(_0x5e92d5[_0x37eae7(0xf9)])_0x418fb5[_0x37eae7(0xe9)](_0x37eae7(0xeb)+_0x5e92d5[_0x37eae7(0xf9)]);if(_0x5e92d5[_0x37eae7(0x10b)])_0x418fb5[_0x37eae7(0xe9)]('channel='+_0x5e92d5[_0x37eae7(0x10b)]);if(_0x5e92d5[_0x37eae7(0xff)])_0x418fb5[_0x37eae7(0xe9)](_0x37eae7(0xed)+_0x5e92d5['params']);return _0x418fb5[_0x37eae7(0xf4)]>0x0?_0x418fb5[_0x37eae7(0xea)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a90_0x1a19(){const _0x18ff07=['message','12ENScBL','2322878YZvrLK','145SnIjzY','code','3213882obFjCa','description','277668AedNOa','9IiocKK','stringify','174744bioBnj','1243QhGAyG','trim','5495560SzqAEH','validation','response','status','12621304HsOIOg','string','headers','1qKImQp','1633617wAMLCI'];a90_0x1a19=function(){return _0x18ff07;};return a90_0x1a19();}(function(_0xfaeec4,_0x3e4a2f){const _0x10bd35=a90_0x59d6,_0x431a59=_0xfaeec4();while(!![]){try{const _0x2d7751=parseInt(_0x10bd35(0xbb))/0x1*(parseInt(_0x10bd35(0xbf))/0x2)+-parseInt(_0x10bd35(0xbc))/0x3*(-parseInt(_0x10bd35(0xbe))/0x4)+parseInt(_0x10bd35(0xc0))/0x5*(-parseInt(_0x10bd35(0xb1))/0x6)+parseInt(_0x10bd35(0xac))/0x7+-parseInt(_0x10bd35(0xb8))/0x8*(-parseInt(_0x10bd35(0xaf))/0x9)+-parseInt(_0x10bd35(0xb4))/0xa+parseInt(_0x10bd35(0xb2))/0xb*(-parseInt(_0x10bd35(0xae))/0xc);if(_0x2d7751===_0x3e4a2f)break;else _0x431a59['push'](_0x431a59['shift']());}catch(_0x54775f){_0x431a59['push'](_0x431a59['shift']());}}}(a90_0x1a19,0xc8eca));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x55fce8){const _0xa9811f=a90_0x59d6;if(_0x55fce8 instanceof LovrabetError){const _0x4b4012=userFacingLovrabetMessage(_0x55fce8),_0x4f53a0=_0x55fce8,_0x33bfee=createRateLimitError({'status':_0x4f53a0[_0xa9811f(0xb7)],'errorCode':_0x4f53a0[_0xa9811f(0xab)],'message':_0x4b4012,'retryAfter':readRetryAfter(_0x4f53a0[_0xa9811f(0xb6)]?.[_0xa9811f(0xba)])??readRetryAfterSeconds(_0x4f53a0['response'])});return _0x33bfee??CliErrors[_0xa9811f(0xb5)](_0x4b4012);}return _0x55fce8;}function a90_0x59d6(_0x17e3a7,_0x4dbf7c){_0x17e3a7=_0x17e3a7-0xab;const _0x1a19b5=a90_0x1a19();let _0x59d69b=_0x1a19b5[_0x17e3a7];return _0x59d69b;}function userFacingLovrabetMessage(_0xb4b0e1){const _0x1e3e04=a90_0x59d6,_0x4ae9e3=_0xb4b0e1[_0x1e3e04(0xad)];if(_0x4ae9e3!==undefined&&_0x4ae9e3!==null){if(typeof _0x4ae9e3===_0x1e3e04(0xb9)&&_0x4ae9e3[_0x1e3e04(0xb3)]())return _0x4ae9e3[_0x1e3e04(0xb3)]();try{return JSON[_0x1e3e04(0xb0)](_0x4ae9e3);}catch{}}return _0xb4b0e1[_0x1e3e04(0xbd)];}
|
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(_0x4a5226,_0x2918a7){const _0x537369=a91_0x445e,_0x278634=_0x4a5226();while(!![]){try{const _0x2f8f71=-parseInt(_0x537369(0x1d1))/0x1*(-parseInt(_0x537369(0x1e0))/0x2)+-parseInt(_0x537369(0x1f5))/0x3*(-parseInt(_0x537369(0x1e7))/0x4)+-parseInt(_0x537369(0x1ca))/0x5*(parseInt(_0x537369(0x1cb))/0x6)+parseInt(_0x537369(0x1d7))/0x7+-parseInt(_0x537369(0x1f3))/0x8*(-parseInt(_0x537369(0x1e2))/0x9)+-parseInt(_0x537369(0x1eb))/0xa+-parseInt(_0x537369(0x200))/0xb;if(_0x2f8f71===_0x2918a7)break;else _0x278634['push'](_0x278634['shift']());}catch(_0x285097){_0x278634['push'](_0x278634['shift']());}}}(a91_0x17cc,0x1f64e));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a91_0x445e(_0x42c6b2,_0x4619e8){_0x42c6b2=_0x42c6b2-0x1c2;const _0x17cc6b=a91_0x17cc();let _0x445e11=_0x17cc6b[_0x42c6b2];return _0x445e11;}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(_0x2deab0){const _0xb3a6e4=a91_0x445e;return void _0x2deab0,AUTH_MODE[_0xb3a6e4(0x1c2)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1b8656,_0x4ae398){const _0x402843=a91_0x445e,_0x17a49a=typeof _0x4ae398[_0x402843(0x1f0)]===_0x402843(0x1c6)&&_0x4ae398['app']['trim']();return{'rawFlags':_0x4ae398,'appCode':_0x1b8656[_0x402843(0x1f2)]||productEnv(_0x402843(0x1e3))||(_0x17a49a?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1b8656[_0x402843(0x1f8)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x4ae398),'defaultFormat':_0x1b8656[_0x402843(0x1cc)],'defaultPageSize':_0x1b8656['pageSize'],'defaultVerbose':_0x1b8656[_0x402843(0x1d8)],'riskLevel':_0x1b8656[_0x402843(0x1ff)],'accessKey':_0x1b8656[_0x402843(0x1c9)],'env':_0x1b8656['env'],'mergedCli':{'defaultApp':_0x1b8656[_0x402843(0x1fe)],'currentApp':_0x1b8656[_0x402843(0x203)],'appCode':_0x1b8656[_0x402843(0x1f2)]}};}export function createLovrabetRunnerAdapter(_0x25bb64={}){const _0x580374=a91_0x445e,_0x455395={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x580374(0x1c8)](_0x43a2d9=>PIPELINE_FLAG_NAMES['has'](_0x43a2d9[_0x580374(0x1ce)]))['map'](({name:_0x42c7bd,type:_0x3eb194,description:_0x37a3b4})=>({'name':_0x42c7bd,'type':_0x3eb194,'description':_0x37a3b4})),'formatOutput':_0x25bb64[_0x580374(0x1fb)]??formatOutput,'getCommandLabel'(_0x4e0ae6){const _0x37b559=_0x580374;return CLI_BIN_NAME+'\x20'+_0x4e0ae6[_0x37b559(0x202)]+'\x20'+_0x4e0ae6['command'];},'riskPolicy':{'onViolation'(_0x31d628){console['error'](_0x31d628);},'createError'(_0x303a60){const _0x42bc8a=_0x580374;return CliErrors[_0x42bc8a(0x1e4)](_0x303a60);}},async 'prepare'(_0x4325dc,_0x5b6479){const _0x8f5976=_0x580374,_0x3bd884=resolveAuthMode(_0x5b6479);if(_0x4325dc[_0x8f5976(0x1f9)]!==![]){if(!_0x5b6479[_0x8f5976(0x1c9)])throw CliErrors[_0x8f5976(0x1ea)](_0x8f5976(0x1db)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x8f5976(0x1c4))+'.');const {setActiveAK:_0x15c8f4}=await import(_0x8f5976(0x1c3));_0x15c8f4(_0x5b6479['accessKey']);}let _0x560cc0='';if(_0x4325dc['requiresAppCode']!==![]){_0x560cc0=_0x5b6479['appCode']??'',_0x560cc0=await resolveExplicitAppName(_0x4325dc,_0x5b6479,_0x560cc0);if(!_0x560cc0){await assertSelectedAppNameIsRuntimeAccessible(_0x4325dc,_0x5b6479);throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x8f5976(0x1dc)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x4325dc,_0x5b6479,_0x560cc0);}if(_0x560cc0){const {initSdkClient:_0x152d1b}=await import('../core/sdk-client.js');_0x152d1b({'appCode':_0x560cc0,'env':_0x5b6479[_0x8f5976(0x1d4)]??_0x8f5976(0x1d3),'accessKey':_0x5b6479[_0x8f5976(0x1c9)],'authMode':_0x3bd884}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5b6479['defaultVerbose']},'numbers':{'pagesize':_0x5b6479[_0x8f5976(0x1fc)]}},'extras':{'appCode':_0x560cc0,'cookie':'','apiDomain':_0x5b6479[_0x8f5976(0x1ec)],'apiDir':'','accessKey':_0x5b6479['accessKey'],'envName':_0x5b6479[_0x8f5976(0x1d4)],'mergedCli':_0x5b6479['mergedCli']}};},'confirmHighRisk':_0x25bb64[_0x580374(0x1c5)]??(async({def:_0x43f4d7,env:_0x41c028,flags:_0x56ebd6,commandLabel:_0x15b04b})=>{const _0x2cd050=_0x580374;if(_0x41c028[_0x2cd050(0x1ee)]){const _0x45297d=reconstructCommandArgv(_0x43f4d7,_0x56ebd6);throw CliErrors[_0x2cd050(0x1d9)](_0x2cd050(0x1c7)+_0x15b04b+_0x2cd050(0x1dd)+(_0x2cd050(0x1ef)+_0x45297d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x43f4d7,_0x15b04b,_0x56ebd6),'createCancelledError':_0x465763=>CliErrors[_0x2cd050(0x1e4)](_0x465763)});}),'mapDryRunError'(_0x57e11b){return mapUserFacingExecuteError(_0x57e11b);},'mapExecuteError'(_0x4968c9){return mapUserFacingExecuteError(_0x4968c9);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x455395;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2763fa=a91_0x445e;try{if(sdkClientInitialized){const {clearSdkClient:_0x1c1708}=await import(_0x2763fa(0x1fa));_0x1c1708();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x280df6}=await import(_0x2763fa(0x1c3));_0x280df6();}}async function resolveExplicitAppName(_0x36a868,_0x42cdfe,_0x9d26ae){const _0x21036e=a91_0x445e;if(_0x36a868[_0x21036e(0x1ed)]===![])return _0x9d26ae;const _0x4b9297=typeof _0x42cdfe[_0x21036e(0x1fd)][_0x21036e(0x1f0)]===_0x21036e(0x1c6)?_0x42cdfe[_0x21036e(0x1fd)]['app'][_0x21036e(0x1d5)]():'';if(!_0x4b9297)return _0x9d26ae;const _0x513f4e=typeof _0x42cdfe[_0x21036e(0x1fd)][_0x21036e(0x1d6)]==='string'&&_0x42cdfe[_0x21036e(0x1fd)][_0x21036e(0x1d6)][_0x21036e(0x1d5)]()||productEnv(_0x21036e(0x1e3));if(_0x513f4e||_0x42cdfe[_0x21036e(0x1f8)]==='local-alias')return _0x9d26ae;const {getRemoteAppList:_0x34c9dd}=await import(_0x21036e(0x1e6)),_0x4f2d03=await _0x34c9dd({'env':_0x42cdfe[_0x21036e(0x1d4)]??'production','accessKey':_0x42cdfe[_0x21036e(0x1c9)]}),_0x39398b=findAppByName(_0x4f2d03['items'],_0x4b9297);if(_0x39398b&&!isRuntimeAccessibleApp(_0x39398b))throw runtimeInaccessibleAppError(_0x39398b,'\x22'+_0x4b9297+'\x22');const _0xfad608=_0x39398b?.[_0x21036e(0x1f2)]?.[_0x21036e(0x1d5)]();if(_0xfad608)return _0xfad608;throw CliErrors[_0x21036e(0x1d9)](_0x21036e(0x1e9)+_0x4b9297,_0x21036e(0x201)+CLI_BIN_NAME+_0x21036e(0x1f4)+_0x4b9297+_0x21036e(0x1da)+PRODUCT_CONFIG[_0x21036e(0x1dc)]+'.');}function a91_0x17cc(){const _0x49572b=['confirmHighRisk','string','High-risk\x20operation\x20`','filter','accessKey','80JHKPNT','72246aEUzLV','format','update','name','doctor','nonInteractive','8934kXEJFb','schema','production','env','trim','appcode','413861IFqlgN','verbose','validation','.appcode\x20to\x20','Set\x20accessKey\x20in\x20','newConfigFileName','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','mergedCli','appcode\x20\x22','14zhhZxY','_notice','1755423CWEUzh','APPCODE','cancelled','items','../commands/app/remote-source.js','515344eanOHC','resolve','Unknown\x20app:\x20','authRequired','663020WrHMmz','apiDomain','requiresAppCode','isNonInteractive','\x20\x20To\x20proceed:\x20','app','includes','appCode','8BBnyte','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','3ikdsHF','execute','pretty','appCodeSource','requiresAuth','../core/sdk-client.js','formatOutput','defaultPageSize','rawFlags','defaultApp','riskLevel','637956QPZfYC','Run\x20`','service','currentApp','ClientAk','../core/api-client.js','ACCESS_KEY'];a91_0x17cc=function(){return _0x49572b;};return a91_0x17cc();}async function assertSelectedAppNameIsRuntimeAccessible(_0x3b260f,_0x3c87c9){const _0x1c4c7e=a91_0x445e;if(_0x3b260f['requiresAppCode']===![]||!_0x3c87c9[_0x1c4c7e(0x1c9)])return;const _0x471d3f=(typeof _0x3c87c9[_0x1c4c7e(0x1fd)][_0x1c4c7e(0x1f0)]===_0x1c4c7e(0x1c6)&&_0x3c87c9['rawFlags'][_0x1c4c7e(0x1f0)][_0x1c4c7e(0x1d5)]()?_0x3c87c9['rawFlags'][_0x1c4c7e(0x1f0)]:_0x3c87c9['mergedCli']?.[_0x1c4c7e(0x203)]??_0x3c87c9[_0x1c4c7e(0x1de)]?.[_0x1c4c7e(0x1fe)])?.[_0x1c4c7e(0x1d5)]();if(!_0x471d3f)return;const {getRemoteAppList:_0x491c81}=await import(_0x1c4c7e(0x1e6)),_0x72b3c7=await _0x491c81({'env':_0x3c87c9[_0x1c4c7e(0x1d4)]??'production','accessKey':_0x3c87c9[_0x1c4c7e(0x1c9)]}),_0x45499e=findAppByName(_0x72b3c7[_0x1c4c7e(0x1e5)],_0x471d3f);if(_0x45499e&&!isRuntimeAccessibleApp(_0x45499e))throw runtimeInaccessibleAppError(_0x45499e,'\x22'+_0x471d3f+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x41afaf,_0x269baf,_0x359306){const _0x4217b2=a91_0x445e;if(_0x41afaf[_0x4217b2(0x1ed)]===![]||!_0x269baf['accessKey'])return;const {getRemoteAppList:_0x587bfc}=await import(_0x4217b2(0x1e6)),_0x1bb767=await _0x587bfc({'env':_0x269baf[_0x4217b2(0x1d4)]??_0x4217b2(0x1d3),'accessKey':_0x269baf['accessKey']}),_0x390328=findAppByCode(_0x1bb767['items'],_0x359306);if(_0x390328&&!isRuntimeAccessibleApp(_0x390328))throw runtimeInaccessibleAppError(_0x390328,_0x4217b2(0x1df)+_0x359306+'\x22');}export async function runCommand(_0x32518d,_0x234df4,_0x3166ef=terminalRunnerAdapter){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x32518d)?withUpdateNotice(_0x32518d):_0x32518d,_0x234df4,_0x3166ef);}function shouldAttachUpdateNotice(_0x21f136){const _0x53d1e6=a91_0x445e;return![_0x53d1e6(0x1cd),_0x53d1e6(0x1d2),_0x53d1e6(0x1cf)][_0x53d1e6(0x1f1)](_0x21f136[_0x53d1e6(0x202)]);}function withUpdateNotice(_0x419cf4){return{..._0x419cf4,async 'execute'(_0x5b895c){const _0x49619e=a91_0x445e,_0x2a8402=shouldResolveUpdateNotice(_0x5b895c)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x49619e(0x1e8)](null),_0x20fe39=await _0x419cf4[_0x49619e(0x1f6)](_0x5b895c);return attachUpdateNotice(_0x20fe39,await _0x2a8402);}};}function shouldResolveUpdateNotice(_0x5a9832){const _0x4aa630=a91_0x445e;return _0x5a9832[_0x4aa630(0x1cc)]===_0x4aa630(0x1f7)&&!_0x5a9832[_0x4aa630(0x1d0)];}function attachUpdateNotice(_0x22eff4,_0x822711){const _0x43031e=a91_0x445e;if(!_0x822711||!_0x22eff4||typeof _0x22eff4!=='object')return _0x22eff4;const _0x363072=_0x22eff4,_0x28a31b=typeof _0x363072[_0x43031e(0x1e1)]==='object'&&_0x363072[_0x43031e(0x1e1)]!==null?_0x363072[_0x43031e(0x1e1)]:{};return{..._0x363072,'_notice':{..._0x28a31b,'update':_0x822711}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32c628,_0x3661a9){const _0x37f37a=a92_0x46f9,_0xe5d0c9=_0x32c628();while(!![]){try{const _0x405c7f=-parseInt(_0x37f37a(0x114))/0x1*(parseInt(_0x37f37a(0x11f))/0x2)+parseInt(_0x37f37a(0x112))/0x3+parseInt(_0x37f37a(0x11c))/0x4*(parseInt(_0x37f37a(0x10f))/0x5)+parseInt(_0x37f37a(0x113))/0x6+parseInt(_0x37f37a(0x110))/0x7+-parseInt(_0x37f37a(0x117))/0x8*(parseInt(_0x37f37a(0x118))/0x9)+-parseInt(_0x37f37a(0x111))/0xa;if(_0x405c7f===_0x3661a9)break;else _0xe5d0c9['push'](_0xe5d0c9['shift']());}catch(_0x2d17c7){_0xe5d0c9['push'](_0xe5d0c9['shift']());}}}(a92_0x1628,0x2089f));import{buildSchemaPayload as a92_0x3cb955}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a92_0x46f9(_0x4688e8,_0x1087ed){_0x4688e8=_0x4688e8-0x10f;const _0x162811=a92_0x1628();let _0x46f923=_0x162811[_0x4688e8];return _0x46f923;}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 _0x2fa43b=a92_0x46f9,{serviceRegistry:_0x9c1174,findDefinition:_0x7a4ab5}=await import(_0x2fa43b(0x115)),_0x43d574=new Set(_0x9c1174[_0x2fa43b(0x11a)](_0xb5a4af=>_0xb5a4af[_0x2fa43b(0x11e)])),_0x506c5f=listDynamicServiceEntries()['filter'](_0x1d97d3=>!_0x43d574['has'](_0x1d97d3[_0x2fa43b(0x11e)])),_0x3b6fb8=a92_0x3cb955({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x9c1174,_0x506c5f),'buildAllFlags':buildAllFlags,'findDefinition':(_0x2b79da,_0x470c50)=>_0x7a4ab5(_0x2b79da,_0x470c50)??findDynamicServiceDefinition(_0x2b79da,_0x470c50)});return normalizeSchemaPayload(_0x3b6fb8);}function normalizeSchemaPayload(_0x1f9c75){const _0x4f924d=a92_0x46f9;return{..._0x1f9c75,'schemaVersion':0x2,'services':_0x1f9c75[_0x4f924d(0x11b)][_0x4f924d(0x11a)](_0x3bf67b=>({..._0x3bf67b,'commands':_0x3bf67b[_0x4f924d(0x11d)][_0x4f924d(0x11a)](normalizeSchemaCommand)}))};}function a92_0x1628(){const _0x183de6=['6474810ARExTA','798399tBMgOq','1223310vrEbLw','16631Yhurnw','../commands/registry.js','auth','8btBboe','809181yJfRBd','requiresAuth','map','services','92OeiaCE','commands','service','10KfsvCI','53920nrDBfq','1650418NaLAwS'];a92_0x1628=function(){return _0x183de6;};return a92_0x1628();}function normalizeSchemaCommand(_0xf095d7){const _0x12591c=a92_0x46f9,_0x406b32=_0xf095d7;return{..._0xf095d7,'auth':_0x406b32[_0x12591c(0x116)]??(_0xf095d7[_0x12591c(0x119)]?'required':'none')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a93_0xd0e4(_0x1697db,_0x353b79){_0x1697db=_0x1697db-0x1eb;const _0x2ca0bf=a93_0x2ca0();let _0xd0e4d2=_0x2ca0bf[_0x1697db];return _0xd0e4d2;}(function(_0x44a7a1,_0x4ab2be){const _0x4e4b4d=a93_0xd0e4,_0x388166=_0x44a7a1();while(!![]){try{const _0x57fa11=-parseInt(_0x4e4b4d(0x1f4))/0x1*(-parseInt(_0x4e4b4d(0x1f7))/0x2)+parseInt(_0x4e4b4d(0x1ef))/0x3+parseInt(_0x4e4b4d(0x1eb))/0x4+parseInt(_0x4e4b4d(0x1f3))/0x5+parseInt(_0x4e4b4d(0x1f5))/0x6+-parseInt(_0x4e4b4d(0x1ec))/0x7+-parseInt(_0x4e4b4d(0x1f0))/0x8*(parseInt(_0x4e4b4d(0x1f1))/0x9);if(_0x57fa11===_0x4ab2be)break;else _0x388166['push'](_0x388166['shift']());}catch(_0x939989){_0x388166['push'](_0x388166['shift']());}}}(a93_0x2ca0,0x7c379));function a93_0x2ca0(){const _0x4f8dfa=['4649780VLFErH','14eHAAQy','1459458iWIszC','service','85646gHXbuB','2095308RqnybY','5967416ohbQMZ','length','slice','2107338ffQRuU','616iYUZWg','191421RVuJRA','findIndex'];a93_0x2ca0=function(){return _0x4f8dfa;};return a93_0x2ca0();}export function insertDynamicServicesAfterServiceTree(_0x58cc7a,_0x43060a){const _0x13c365=a93_0xd0e4;if(_0x43060a[_0x13c365(0x1ed)]===0x0)return[..._0x58cc7a];const _0x2dca77=_0x58cc7a[_0x13c365(0x1f2)](_0x4ce5fd=>_0x4ce5fd[_0x13c365(0x1f6)]===_0x13c365(0x1f6));if(_0x2dca77<0x0)return[..._0x58cc7a,..._0x43060a];return[..._0x58cc7a[_0x13c365(0x1ee)](0x0,_0x2dca77+0x1),..._0x43060a,..._0x58cc7a[_0x13c365(0x1ee)](_0x2dca77+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a94_0x424a(){var _0x13f156=['17140plsJnp','770YFzDbL','1796guoUyZ','1611QNHoXD','2183864NTxlJU','996232jfbmno','270508cfyYsd','1jTfcbV','5748Acjzhs','2061RNJKKm','825144LmnuaY','11sFgWqd'];a94_0x424a=function(){return _0x13f156;};return a94_0x424a();}(function(_0x5a989f,_0x34a4e4){var _0x4a5d2a=a94_0x5735,_0x209ca4=_0x5a989f();while(!![]){try{var _0x2b4b32=-parseInt(_0x4a5d2a(0xb7))/0x1*(-parseInt(_0x4a5d2a(0xb5))/0x2)+-parseInt(_0x4a5d2a(0xbf))/0x3*(parseInt(_0x4a5d2a(0xbe))/0x4)+-parseInt(_0x4a5d2a(0xbd))/0x5*(-parseInt(_0x4a5d2a(0xb8))/0x6)+parseInt(_0x4a5d2a(0xb6))/0x7+parseInt(_0x4a5d2a(0xb4))/0x8+parseInt(_0x4a5d2a(0xb9))/0x9*(-parseInt(_0x4a5d2a(0xbc))/0xa)+parseInt(_0x4a5d2a(0xbb))/0xb*(-parseInt(_0x4a5d2a(0xba))/0xc);if(_0x2b4b32===_0x34a4e4)break;else _0x209ca4['push'](_0x209ca4['shift']());}catch(_0x301a86){_0x209ca4['push'](_0x209ca4['shift']());}}}(a94_0x424a,0x3e3ae));function a94_0x5735(_0x598af1,_0x3476a3){_0x598af1=_0x598af1-0xb4;var _0x424a7f=a94_0x424a();var _0x5735fa=_0x424a7f[_0x598af1];return _0x5735fa;}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";
|
|
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:26:18.903Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x1c02cc=a95_0x8e9c;(function(_0x4e84ca,_0x550837){const _0xd31660=a95_0x8e9c,_0x440abc=_0x4e84ca();while(!![]){try{const _0xf58a51=-parseInt(_0xd31660(0x15e))/0x1*(-parseInt(_0xd31660(0x15a))/0x2)+parseInt(_0xd31660(0x15d))/0x3*(-parseInt(_0xd31660(0x155))/0x4)+parseInt(_0xd31660(0x15f))/0x5+parseInt(_0xd31660(0x15b))/0x6+parseInt(_0xd31660(0x157))/0x7+-parseInt(_0xd31660(0x158))/0x8+-parseInt(_0xd31660(0x15c))/0x9;if(_0xf58a51===_0x550837)break;else _0x440abc['push'](_0x440abc['shift']());}catch(_0x5ce62f){_0x440abc['push'](_0x440abc['shift']());}}}(a95_0x4d55,0x8d79b));export const VERSION=a95_0x1c02cc(0x159);export const GIT_TAG=a95_0x1c02cc(0x156);function a95_0x4d55(){const _0x3a9e79=['178023PmhYjA','34fZUZTr','1330330jaVLSL','3f0223f','4uppTqb','v2.1.19-beta.1','3441235iKIzRL','1196560mNSnme','2.1.19','44014vFamFz','1129176wzhQYD','8151399LpCoos'];a95_0x4d55=function(){return _0x3a9e79;};return a95_0x4d55();}export const GIT_COMMIT=a95_0x1c02cc(0x154);function a95_0x8e9c(_0x144d45,_0x33ee6a){_0x144d45=_0x144d45-0x154;const _0x4d559b=a95_0x4d55();let _0x8e9c51=_0x4d559b[_0x144d45];return _0x8e9c51;}export const BUILD_TIME='2026-08-01T07:26:18.903Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x2d86(){const _0x348c26=['3812430lBbelF','248767HZaUZa','529244wuASYF','green','600464mKKRZR','\x20\x20Use\x20','1409049IhHxUS','111272BuWIvo','1904934zMduOx','6vWcqGF','column','\x20--help','5hWmsbI','42QwlCsm'];a96_0x2d86=function(){return _0x348c26;};return a96_0x2d86();}function a96_0x1edd(_0xe1feb9,_0x386e31){_0xe1feb9=_0xe1feb9-0x11f;const _0x2d868e=a96_0x2d86();let _0x1edd3a=_0x2d868e[_0xe1feb9];return _0x1edd3a;}(function(_0x451634,_0x319e41){const _0x5672d6=a96_0x1edd,_0x277288=_0x451634();while(!![]){try{const _0x459571=parseInt(_0x5672d6(0x122))/0x1+-parseInt(_0x5672d6(0x123))/0x2+-parseInt(_0x5672d6(0x12a))/0x3*(-parseInt(_0x5672d6(0x128))/0x4)+-parseInt(_0x5672d6(0x11f))/0x5*(parseInt(_0x5672d6(0x129))/0x6)+-parseInt(_0x5672d6(0x120))/0x7*(-parseInt(_0x5672d6(0x125))/0x8)+-parseInt(_0x5672d6(0x127))/0x9+parseInt(_0x5672d6(0x121))/0xa;if(_0x459571===_0x319e41)break;else _0x277288['push'](_0x277288['shift']());}catch(_0x26b637){_0x277288['push'](_0x277288['shift']());}}}(a96_0x2d86,0x6100a));import{jsx as a96_0x129088,jsxs as a96_0x4ecbe2}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 _0x68198a=a96_0x1edd,{exit:_0x3c4d16}=useApp();return useEffect(()=>{_0x3c4d16();},[_0x3c4d16]),a96_0x4ecbe2(Box,{'flexDirection':_0x68198a(0x12b),'marginTop':0x1,'marginBottom':0x1,'children':[a96_0x129088(Box,{'children':a96_0x129088(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a96_0x4ecbe2(Box,{'marginTop':0x1,'children':[a96_0x129088(Text,{'dimColor':!![],'children':_0x68198a(0x126)}),a96_0x129088(Text,{'bold':!![],'color':_0x68198a(0x124),'children':CLI_BIN_NAME+_0x68198a(0x12c)}),a96_0x129088(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe35804,_0x544efa){const _0x39ae45=a97_0x1d9e,_0x13d01=_0xe35804();while(!![]){try{const _0x5e7f24=parseInt(_0x39ae45(0xc6))/0x1+parseInt(_0x39ae45(0xc7))/0x2+-parseInt(_0x39ae45(0xb8))/0x3*(-parseInt(_0x39ae45(0xc8))/0x4)+-parseInt(_0x39ae45(0xc5))/0x5*(-parseInt(_0x39ae45(0xb4))/0x6)+-parseInt(_0x39ae45(0xbd))/0x7*(parseInt(_0x39ae45(0xba))/0x8)+-parseInt(_0x39ae45(0xc1))/0x9*(parseInt(_0x39ae45(0xbe))/0xa)+-parseInt(_0x39ae45(0xc0))/0xb*(-parseInt(_0x39ae45(0xb3))/0xc);if(_0x5e7f24===_0x544efa)break;else _0x13d01['push'](_0x13d01['shift']());}catch(_0x4981c8){_0x13d01['push'](_0x13d01['shift']());}}}(a97_0x1c9b,0x7429c));function a97_0x1d9e(_0x23c53d,_0x2faf98){_0x23c53d=_0x23c53d-0xb2;const _0x1c9bb4=a97_0x1c9b();let _0x1d9ecc=_0x1c9bb4[_0x23c53d];return _0x1d9ecc;}export function canonicalLovrabetOperation(_0x165421){const _0xd244de=a97_0x1d9e;return[_0x165421[_0xd244de(0xc4)],..._0x165421[_0xd244de(0xb2)][_0xd244de(0xb5)]()[_0xd244de(0xb6)](/\s+/)][_0xd244de(0xb7)](Boolean)[_0xd244de(0xbc)]('.');}function a97_0x1c9b(){const _0x4b0fa6=['split','filter','2061060SXbcmJ','writeEventSubject','4880984lxeOSP','write','join','7IOJzFx','260750efVeOc','high-risk-write','11tFCtsJ','252hZAnhg','risk','lovrabet.write.completed','service','11365QAiEuv','830889idnHUO','453064xpljgl','4DLFErO','command','777204gtoNsG','18SCfpHj','trim'];a97_0x1c9b=function(){return _0x4b0fa6;};return a97_0x1c9b();}export function createLovrabetWriteMetadata(_0x117f20,_0x37a12a,_0xf6542f,_0x33ca15){const _0x58c459=a97_0x1d9e;if(_0x33ca15||_0xf6542f['ok']!==!![]||_0x117f20['risk']!==_0x58c459(0xbb)&&_0x117f20['risk']!==_0x58c459(0xbf))return undefined;const _0x45424e=_0x117f20[_0x58c459(0xb9)]?.(_0xf6542f),_0x477e8b={'type':_0x58c459(0xc3),'operation':_0x37a12a,'risk':_0x117f20[_0x58c459(0xc2)],..._0x45424e?{'subject':_0x45424e}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x477e8b}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x422150,_0x41aa50){const _0x195694=a98_0x31ee,_0x43e18d=_0x422150();while(!![]){try{const _0x5dee77=parseInt(_0x195694(0x73))/0x1*(parseInt(_0x195694(0x87))/0x2)+parseInt(_0x195694(0x6d))/0x3+-parseInt(_0x195694(0x83))/0x4+-parseInt(_0x195694(0x70))/0x5*(-parseInt(_0x195694(0x81))/0x6)+-parseInt(_0x195694(0x72))/0x7*(parseInt(_0x195694(0x71))/0x8)+-parseInt(_0x195694(0x7c))/0x9*(-parseInt(_0x195694(0x7f))/0xa)+parseInt(_0x195694(0x6f))/0xb*(-parseInt(_0x195694(0x80))/0xc);if(_0x5dee77===_0x41aa50)break;else _0x43e18d['push'](_0x43e18d['shift']());}catch(_0x1d0e64){_0x43e18d['push'](_0x43e18d['shift']());}}}(a98_0x16c8,0xa36b4));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a98_0x31ee(_0x3601e4,_0x44efca){_0x3601e4=_0x3601e4-0x6b;const _0x16c850=a98_0x16c8();let _0x31ee72=_0x16c850[_0x3601e4];return _0x31ee72;}function a98_0x16c8(){const _0xfe089e=['definition','presentation','format','write','yes','isNonInteractive','105903LdxyDe','riskLevel','869bhOwZE','5515LVzgqF','8vLQVXX','595063fXflOM','2VGuXqD','execute','rawFlags','dry-run','reason','result','command','present','message','5596515JMzrhD','aborted','data','20bmREOy','128364aoxYVg','4710MzBqQd','description','3998736XixWsS','confirm','stringify','risk','454294nFlsEG','dryRun','high-risk-write','signal','args','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.'];a98_0x16c8=function(){return _0xfe089e;};return a98_0x16c8();}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x3e74d9,command:_0x21979e,risk:_0x3c171b,dryRun:_0x3a2e32}){const _0x288a66=a98_0x31ee;return JSON[_0x288a66(0x85)]({'ok':_0x3e74d9['ok'],'command':_0x21979e,'risk':_0x3c171b,..._0x3a2e32?{'dryRun':!![]}:{},..._0x3e74d9['data']!==undefined?{'data':_0x3e74d9[_0x288a66(0x7e)]}:{},..._0x3e74d9[_0x288a66(0x7b)]?{'message':_0x3e74d9[_0x288a66(0x7b)]}:{}});}};export async function invokeLovrabet(_0x31fed2,_0x240693){return runSerialized(async()=>{const _0x34a397=a98_0x31ee;throwIfAborted(_0x240693[_0x34a397(0x8a)]);const _0x1731a3=await resolveLovrabetInvocation(_0x31fed2),_0x212802=canonicalLovrabetOperation(_0x1731a3[_0x34a397(0x8d)]),_0x55ee6b={},_0x414539=buildConfigFromFlags(_0x1731a3[_0x34a397(0x75)]);await initGlobalEnvironment(_0x414539);const _0x435d1a=createPipelineEnv(_0x414539,{..._0x1731a3[_0x34a397(0x75)],'yes':_0x1731a3[_0x34a397(0x8d)][_0x34a397(0x86)]===_0x34a397(0x89)?!![]:_0x1731a3['rawFlags'][_0x34a397(0x6b)],'nonInteractive':!![]});_0x435d1a[_0x34a397(0x8b)]=_0x1731a3[_0x34a397(0x8b)],_0x435d1a[_0x34a397(0x6c)]=!![],_0x435d1a[_0x34a397(0x6e)]='high-risk-write';const _0x2ee4b5=withEmbeddedLifecycle(_0x1731a3[_0x34a397(0x8d)],_0x212802,_0x240693),_0x150874=createLovrabetRunnerAdapter({'formatOutput'(_0x110fb7,_0x5104d){const _0xb2945f=_0x34a397;_0x55ee6b[_0xb2945f(0x78)]=_0x110fb7,_0x55ee6b['command']=_0x5104d[_0xb2945f(0x79)],_0x55ee6b[_0xb2945f(0x86)]=_0x5104d['risk'],_0x55ee6b['format']=_0x5104d[_0xb2945f(0x8f)],_0x55ee6b[_0xb2945f(0x88)]=_0x5104d[_0xb2945f(0x88)]===!![];},async 'confirmHighRisk'(){const _0x4f097a=_0x34a397;throw new Error(_0x4f097a(0x8c));}});try{await runCommand(_0x2ee4b5,_0x435d1a,_0x150874);if(!_0x55ee6b[_0x34a397(0x78)]||!_0x55ee6b[_0x34a397(0x79)]||!_0x55ee6b[_0x34a397(0x86)]||!_0x55ee6b[_0x34a397(0x8f)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x52f418=_0x240693[_0x34a397(0x8e)]??defaultPresentation,_0x5ec0e8=_0x55ee6b[_0x34a397(0x88)]===!![],_0x1bb186={'result':_0x55ee6b[_0x34a397(0x78)],'command':_0x55ee6b[_0x34a397(0x79)],'operation':_0x212802,'risk':_0x55ee6b[_0x34a397(0x86)],'format':_0x55ee6b[_0x34a397(0x8f)],'dryRun':_0x5ec0e8},_0x174662=createLovrabetWriteMetadata(_0x1731a3[_0x34a397(0x8d)],_0x212802,_0x55ee6b[_0x34a397(0x78)],_0x5ec0e8);let _0x1612d9;try{_0x1612d9=await _0x52f418[_0x34a397(0x7a)](_0x1bb186);}catch(_0x21ab11){if(!_0x174662||_0x52f418===defaultPresentation)throw _0x21ab11;_0x1612d9=await defaultPresentation['present'](_0x1bb186);}return{'operation':_0x212802,'risk':_0x55ee6b[_0x34a397(0x86)],'mode':_0x5ec0e8?_0x34a397(0x76):_0x34a397(0x74),'result':_0x55ee6b[_0x34a397(0x78)],'output':_0x1612d9,..._0x174662?{'metadata':_0x174662}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function withEmbeddedLifecycle(_0x50284f,_0x151abb,_0x377b1f){return{..._0x50284f,async 'execute'(_0x38b84a){const _0x2395c7=a98_0x31ee;return throwIfAborted(_0x377b1f[_0x2395c7(0x8a)]),(_0x50284f[_0x2395c7(0x86)]===_0x2395c7(0x90)||_0x50284f[_0x2395c7(0x86)]==='high-risk-write')&&await _0x377b1f['confirmation'][_0x2395c7(0x84)]({'operation':_0x151abb,'risk':_0x50284f[_0x2395c7(0x86)],'description':_0x50284f[_0x2395c7(0x82)],..._0x377b1f[_0x2395c7(0x8a)]?{'signal':_0x377b1f[_0x2395c7(0x8a)]}:{}}),throwIfAborted(_0x377b1f[_0x2395c7(0x8a)]),_0x50284f[_0x2395c7(0x74)](_0x38b84a);}};}function throwIfAborted(_0x2b02ec){const _0x438232=a98_0x31ee;if(_0x2b02ec?.[_0x438232(0x7d)])throw _0x2b02ec[_0x438232(0x77)]instanceof Error?_0x2b02ec[_0x438232(0x77)]:new DOMException('Lovrabet\x20invocation\x20aborted.','AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x377f45=a99_0x395c;(function(_0x197a88,_0x464bae){const _0x423787=a99_0x395c,_0x2d513d=_0x197a88();while(!![]){try{const _0x2f864f=-parseInt(_0x423787(0xf3))/0x1*(parseInt(_0x423787(0xeb))/0x2)+parseInt(_0x423787(0xed))/0x3*(parseInt(_0x423787(0xf0))/0x4)+-parseInt(_0x423787(0xf4))/0x5*(parseInt(_0x423787(0xf6))/0x6)+-parseInt(_0x423787(0xf5))/0x7*(-parseInt(_0x423787(0xe9))/0x8)+parseInt(_0x423787(0xf2))/0x9+parseInt(_0x423787(0xec))/0xa+-parseInt(_0x423787(0xef))/0xb*(-parseInt(_0x423787(0xee))/0xc);if(_0x2f864f===_0x464bae)break;else _0x2d513d['push'](_0x2d513d['shift']());}catch(_0x4d9e4b){_0x2d513d['push'](_0x2d513d['shift']());}}}(a99_0x5250,0xd41fa));function a99_0x395c(_0x4c40d4,_0x47a894){_0x4c40d4=_0x4c40d4-0xe9;const _0x52505a=a99_0x5250();let _0x395c62=_0x52505a[_0x4c40d4];return _0x395c62;}function a99_0x5250(){const _0x3bdb34=['1348840GPdIry','resolve','3796461lSKlwx','1WWeKEN','155sqEjXY','3536099nghDXW','33678VguMZQ','8bKqBCM','catch','1768040yZJoyC','2087290taTDtn','3CMqljn','5447472hRiLRa','11PYZKVJ'];a99_0x5250=function(){return _0x3bdb34;};return a99_0x5250();}let tail=Promise[a99_0x377f45(0xf1)]();export async function runSerialized(_0x3bfd1f){const _0xf4d09f=a99_0x377f45,_0xead87b=tail;let _0x5c3cb3;tail=new Promise(_0x31bcd9=>{_0x5c3cb3=_0x31bcd9;}),await _0xead87b[_0xf4d09f(0xea)](()=>undefined);try{return await _0x3bfd1f();}finally{_0x5c3cb3();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a100_0x3621(_0x4955af,_0x3f7d85){_0x4955af=_0x4955af-0xd7;const _0x27e350=a100_0x27e3();let _0x362155=_0x27e350[_0x4955af];return _0x362155;}function a100_0x27e3(){const _0x44f53f=['assign','../framework/preparse.js','unknownCommand','1564013FuBBzt','args','slice','validation','defaultCommand','92VvnpDj','flags','32447iLZtNc','910317SIzICz','2277300Dywxja','7713HpIHTY','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','../commands/registry.js','definition','22ucZKxA','222HsduqT','18949EhsRtb','2144MyPtjS','22520zYbeSb'];a100_0x27e3=function(){return _0x44f53f;};return a100_0x27e3();}(function(_0x4026a5,_0x3db1d3){const _0x3489ba=a100_0x3621,_0x47d82e=_0x4026a5();while(!![]){try{const _0x4e3cd1=parseInt(_0x3489ba(0xdb))/0x1*(parseInt(_0x3489ba(0xe2))/0x2)+-parseInt(_0x3489ba(0xdc))/0x3+-parseInt(_0x3489ba(0xd9))/0x4*(-parseInt(_0x3489ba(0xe6))/0x5)+-parseInt(_0x3489ba(0xe3))/0x6*(parseInt(_0x3489ba(0xe4))/0x7)+-parseInt(_0x3489ba(0xe5))/0x8*(-parseInt(_0x3489ba(0xde))/0x9)+-parseInt(_0x3489ba(0xdd))/0xa+parseInt(_0x3489ba(0xea))/0xb;if(_0x4e3cd1===_0x3db1d3)break;else _0x47d82e['push'](_0x47d82e['shift']());}catch(_0x3075d7){_0x47d82e['push'](_0x47d82e['shift']());}}}(a100_0x27e3,0x31150));import a100_0x5565d1 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(_0x451660){const _0x382f60=a100_0x3621,_0x1602c5=a100_0x5565d1('',{'importMeta':import.meta,'argv':_0x451660,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4d9318=[..._0x1602c5['input']],_0x1894bd=_0x1602c5[_0x382f60(0xda)];await correctFlags(_0x1894bd);const _0xdb11ed=_0x4d9318[0x0];if(!_0xdb11ed)throw CliErrors[_0x382f60(0xd7)](_0x382f60(0xdf));if(!isKnownService(_0xdb11ed)){const _0x3731b1=resolveDynamicServiceCommand(_0x4d9318,_0x1894bd);if(!_0x3731b1)throw CliErrors[_0x382f60(0xe9)](_0x4d9318['join']('\x20'));return Object['assign'](_0x1894bd,_0x3731b1['flags']),{'definition':_0x3731b1[_0x382f60(0xe1)],'rawFlags':_0x1894bd,'args':_0x3731b1[_0x382f60(0xeb)]};}const _0x3881d3=getServiceEntry(_0xdb11ed),_0x38da8a=_0x4d9318[0x1]||_0x3881d3[_0x382f60(0xd8)];if(!_0x38da8a)throw CliErrors['validation']('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0xdb11ed+'\x22.');const _0x28b24e=findDefinition(_0xdb11ed,_0x38da8a);if(!_0x28b24e)throw CliErrors[_0x382f60(0xe9)](_0xdb11ed+'\x20'+_0x38da8a);return{'definition':_0x28b24e,'rawFlags':_0x1894bd,'args':_0x4d9318[_0x382f60(0xec)](0x2)};}async function correctFlags(_0x28b83c){const _0x5d5c30=a100_0x3621;try{const {correctFlags:_0x153408}=await import(_0x5d5c30(0xe8)),{getAllDefinitions:_0x4615e7}=await import(_0x5d5c30(0xe0)),_0x313a9b=_0x4615e7()['flatMap'](_0x221c27=>_0x221c27[_0x5d5c30(0xda)]??[]),_0x226b3c=_0x153408(_0x28b83c,_0x313a9b);Object[_0x5d5c30(0xe7)](_0x28b83c,_0x226b3c['flags']);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x319fbf=a102_0x18c1;(function(_0x1905b1,_0x45286){const _0x2ef90f=a102_0x18c1,_0x1f05d5=_0x1905b1();while(!![]){try{const _0x11b9ca=parseInt(_0x2ef90f(0x96))/0x1+parseInt(_0x2ef90f(0xa2))/0x2+-parseInt(_0x2ef90f(0x9b))/0x3+parseInt(_0x2ef90f(0x9d))/0x4*(-parseInt(_0x2ef90f(0x90))/0x5)+-parseInt(_0x2ef90f(0xa1))/0x6+-parseInt(_0x2ef90f(0x92))/0x7+parseInt(_0x2ef90f(0x9f))/0x8*(parseInt(_0x2ef90f(0x94))/0x9);if(_0x11b9ca===_0x45286)break;else _0x1f05d5['push'](_0x1f05d5['shift']());}catch(_0x580575){_0x1f05d5['push'](_0x1f05d5['shift']());}}}(a102_0x22a5,0xe1473));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a102_0x15b679}from'../constant/distribution.js';function a102_0x22a5(){const _0x4edbb0=['422106erXiiw','3234050dJvSeI','status','skills','inherit','15SGNBPf','exit\x20','1240694ueZxHm','trim','36hDBwyh','skipNpxSkillsEnvSuffix','575804EwVOTg','pipe','stdout','stderr','stdio','4383564kdwziR','add','2220364BpGNGW','toString','4207928lGYVKp','unknown'];a102_0x22a5=function(){return _0x4edbb0;};return a102_0x22a5();}import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a102_0x18c1(_0x2646e8,_0xebc72e){_0x2646e8=_0x2646e8-0x8e;const _0x22a5a1=a102_0x22a5();let _0x18c1d6=_0x22a5a1[_0x2646e8];return _0x18c1d6;}export const LOVRABET_SKILL_SOURCE=a102_0x15b679;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a102_0x319fbf(0x95)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x38ea16,_0x31558a=LOVRABET_SKILL_SOURCE,_0x4611e9){const _0x1177cb=a102_0x319fbf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x38b640=_0x4611e9?.[_0x1177cb(0x9a)]??_0x1177cb(0x8f),_0x234999=resolveNpmBin('npx'),_0x386c4d=[_0x1177cb(0x8e),_0x1177cb(0x9c),_0x31558a,'-g','-y'],_0x18b634=[_0x234999,..._0x386c4d]['join']('\x20');console['log']('*\x20'+_0x18b634);const _0x536251=spawnSync(_0x234999,_0x386c4d,{'cwd':_0x38ea16,'stdio':_0x38b640,'env':process.env,'shell':![]});if(_0x536251[_0x1177cb(0xa3)]===0x0)return{'ok':!![],'status':0x0};let _0x4f7161=_0x1177cb(0x91)+(_0x536251[_0x1177cb(0xa3)]??_0x1177cb(0xa0));if(_0x38b640===_0x1177cb(0x97)){const _0x53e186=_0x536251[_0x1177cb(0x99)]?_0x536251[_0x1177cb(0x99)]['toString']()[_0x1177cb(0x93)]():'',_0x5afb22=_0x536251[_0x1177cb(0x98)]?_0x536251[_0x1177cb(0x98)][_0x1177cb(0x9e)]()['trim']():'';if(_0x53e186)_0x4f7161=_0x53e186;else{if(_0x5afb22)_0x4f7161=_0x5afb22;}}return{'ok':![],'status':_0x536251[_0x1177cb(0xa3)]??null,'error':_0x4f7161};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103_0x5aa039=a103_0x31c9;(function(_0x34253d,_0x59404c){const _0xf7b168=a103_0x31c9,_0x4503dd=_0x34253d();while(!![]){try{const _0x3092d1=parseInt(_0xf7b168(0x205))/0x1+parseInt(_0xf7b168(0x1f3))/0x2*(-parseInt(_0xf7b168(0x1f4))/0x3)+-parseInt(_0xf7b168(0x1f8))/0x4+-parseInt(_0xf7b168(0x200))/0x5*(-parseInt(_0xf7b168(0x1fd))/0x6)+parseInt(_0xf7b168(0x1f7))/0x7*(parseInt(_0xf7b168(0x208))/0x8)+-parseInt(_0xf7b168(0x1f9))/0x9*(-parseInt(_0xf7b168(0x206))/0xa)+-parseInt(_0xf7b168(0x202))/0xb*(parseInt(_0xf7b168(0x1fb))/0xc);if(_0x3092d1===_0x59404c)break;else _0x4503dd['push'](_0x4503dd['shift']());}catch(_0x302b29){_0x4503dd['push'](_0x4503dd['shift']());}}}(a103_0xa2d3,0x95442));export const METADATA_FILE=a103_0x5aa039(0x1ff);function a103_0x31c9(_0xc85b6a,_0x508859){_0xc85b6a=_0xc85b6a-0x1f2;const _0xa2d3c8=a103_0xa2d3();let _0x31c97f=_0xa2d3c8[_0xc85b6a];return _0x31c97f;}export const SKILL_FILE=a103_0x5aa039(0x1f2);function a103_0xa2d3(){const _0x2c997b=['.cache','17412CwLClY','.DS_Store','lovrabet.skill.json','1090JkvyHo','coverage','143bOkmST','.turbo','dist','1109503yHQKGX','436120Ldbnci','.svn','1220088EkjBgg','SKILL.md','2ldccjp','986571kLqMGX','.hg','.git','35JgrjHy','4723240ubQgJC','126pEafBX','node_modules','917724vWVSVy'];a103_0xa2d3=function(){return _0x2c997b;};return a103_0xa2d3();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a103_0x5aa039(0x1fe)]);export const IGNORED_DIR_NAMES=new Set([a103_0x5aa039(0x1f6),a103_0x5aa039(0x1f5),a103_0x5aa039(0x207),a103_0x5aa039(0x1fa),'.next',a103_0x5aa039(0x204),'build',a103_0x5aa039(0x201),a103_0x5aa039(0x203),a103_0x5aa039(0x1fc)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a104_0x5565(){const _0x2fb6d6=['159920ibpStk','utf8','31713nssWvw','startsWith','247499FjJtaO','122125bPUtpL','isSymbolicLink','validation','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','99gehwwh','20pNSpEU','208epMsFg','split','254835pqvcBV','13fBGgWT','41184HqioYJ','.tmp','2ROwLgE','1134204SDadYf','30GQToFO','endsWith','Unsafe\x20Skill\x20file\x20path:\x20'];a104_0x5565=function(){return _0x2fb6d6;};return a104_0x5565();}(function(_0x35ab3a,_0x52b29d){const _0x2b0814=a104_0x5290,_0x3a021f=_0x35ab3a();while(!![]){try{const _0x196b9c=parseInt(_0x2b0814(0x84))/0x1*(parseInt(_0x2b0814(0x7d))/0x2)+-parseInt(_0x2b0814(0x79))/0x3+parseInt(_0x2b0814(0x8c))/0x4*(parseInt(_0x2b0814(0x87))/0x5)+-parseInt(_0x2b0814(0x7f))/0x6*(-parseInt(_0x2b0814(0x86))/0x7)+-parseInt(_0x2b0814(0x8d))/0x8*(-parseInt(_0x2b0814(0x7b))/0x9)+-parseInt(_0x2b0814(0x82))/0xa*(parseInt(_0x2b0814(0x8b))/0xb)+parseInt(_0x2b0814(0x7e))/0xc*(-parseInt(_0x2b0814(0x7a))/0xd);if(_0x196b9c===_0x52b29d)break;else _0x3a021f['push'](_0x3a021f['shift']());}catch(_0x1c1dcd){_0x3a021f['push'](_0x3a021f['shift']());}}}(a104_0x5565,0x1ed01));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';function a104_0x5290(_0x41c458,_0x5d71b0){_0x41c458=_0x41c458-0x79;const _0x556595=a104_0x5565();let _0x5290dc=_0x556595[_0x41c458];return _0x5290dc;}export function resolveManagedFilePath(_0x17548e,_0x1c99f6){const _0x4b9d4b=a104_0x5290,_0x39d5e8=normalizeSkillRelativePath(_0x1c99f6),_0x15bf0a=realOrResolved(_0x17548e),_0x2e646c=resolve(_0x15bf0a,..._0x39d5e8[_0x4b9d4b(0x8e)]('/'));if(!isPathInside(_0x2e646c,_0x15bf0a))throw CliErrors['validation'](_0x4b9d4b(0x81)+_0x1c99f6);return ensureNoSymlinkInManagedPath(_0x15bf0a,_0x39d5e8),_0x2e646c;}export function ensureNoSymlinkInManagedPath(_0x32b707,_0x37cf82){const _0x206a85=a104_0x5290;let _0x2fbbd3=_0x32b707;for(const _0x33b4b9 of _0x37cf82['split']('/')){_0x2fbbd3=resolve(_0x2fbbd3,_0x33b4b9);const _0x4e1dfe=lstatIfPresent(_0x2fbbd3);if(_0x4e1dfe?.[_0x206a85(0x88)]())throw CliErrors[_0x206a85(0x89)](_0x206a85(0x8a)+_0x37cf82);}}export function isDanglingSymlink(_0x2e0252){try{return lstatSync(_0x2e0252)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x15e372){const _0x1ebbda=readlinkSync(_0x15e372);return isAbsolute(_0x1ebbda)?_0x1ebbda:resolve(dirname(_0x15e372),_0x1ebbda);}export function isPathInside(_0x47d987,_0x16fd40){const _0x5e408c=a104_0x5290,_0x25f7d9=_0x47d987[_0x5e408c(0x80)](sep)?_0x47d987:''+_0x47d987+sep,_0x2efdf8=_0x16fd40['endsWith'](sep)?_0x16fd40:''+_0x16fd40+sep;return _0x47d987===_0x16fd40||_0x25f7d9[_0x5e408c(0x85)](_0x2efdf8);}export function realOrResolved(_0x4fa507){try{return realpathSync(_0x4fa507);}catch{return resolve(_0x4fa507);}}export function lstatIfPresent(_0x989f5f){try{return lstatSync(_0x989f5f);}catch{return undefined;}}export function writeTextAtomic(_0x4949d7,_0x4181f1,_0x28f7fa){const _0xfd2d92=a104_0x5290;writeBytesAtomic(_0x4949d7,Buffer['from'](_0x4181f1,_0xfd2d92(0x83)),_0x28f7fa);}export function writeBytesAtomic(_0x100451,_0x1844fa,_0x4c2777){const _0x16d2f2=a104_0x5290,_0x5334c3=_0x100451+_0x16d2f2(0x7c);try{writeFileSync(_0x5334c3,_0x1844fa,{'mode':_0x4c2777}),renameSync(_0x5334c3,_0x100451);}catch(_0x225379){try{rmSync(_0x5334c3,{'force':!![]});}catch{}throw _0x225379;}}export function writeJsonAtomic(_0x5f3bac,_0x140f7d){writeTextAtomic(_0x5f3bac,JSON['stringify'](_0x140f7d,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe06416,_0x463130){const _0x3aab31=a105_0x1428,_0x41da74=_0xe06416();while(!![]){try{const _0x49c476=-parseInt(_0x3aab31(0x1ec))/0x1*(parseInt(_0x3aab31(0x1e6))/0x2)+parseInt(_0x3aab31(0x1f1))/0x3+parseInt(_0x3aab31(0x1ea))/0x4+-parseInt(_0x3aab31(0x1e8))/0x5+-parseInt(_0x3aab31(0x1ee))/0x6+parseInt(_0x3aab31(0x1e9))/0x7+parseInt(_0x3aab31(0x1f0))/0x8*(-parseInt(_0x3aab31(0x1f2))/0x9);if(_0x49c476===_0x463130)break;else _0x41da74['push'](_0x41da74['shift']());}catch(_0x461f07){_0x41da74['push'](_0x41da74['shift']());}}}(a105_0x5a14,0x4db80));function a105_0x5a14(){const _0xf1415e=['digest','2cWKubU','path','66318cevvEy','update','8qMQXKx','717963WsdUAl','4071735DKBCiQ','hex','sha256','82778blzkdU','size','2394520zdtlDp','4384002ADfbLf','1911516jnImKB'];a105_0x5a14=function(){return _0xf1415e;};return a105_0x5a14();}function a105_0x1428(_0x160845,_0x34dd6a){_0x160845=_0x160845-0x1e5;const _0x5a1404=a105_0x5a14();let _0x1428dc=_0x5a1404[_0x160845];return _0x1428dc;}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x230989){const _0x33cfca=a105_0x1428;return createHash('sha256')[_0x33cfca(0x1ef)](_0x230989)[_0x33cfca(0x1eb)](_0x33cfca(0x1f3));}export function fileHash(_0x5dfbff){return bufferSha256(fileContent(_0x5dfbff));}export function bufferSha256(_0x3c874c){const _0x1a5b5=a105_0x1428;return createHash(_0x1a5b5(0x1e5))[_0x1a5b5(0x1ef)](_0x3c874c)['digest']('hex');}export function fileTreeHash(_0x599674){const _0x5a0912=a105_0x1428,_0x501c52=createHash(_0x5a0912(0x1e5));for(const _0x86185d of normalizeManifestFiles(_0x599674)){_0x501c52[_0x5a0912(0x1ef)](_0x86185d[_0x5a0912(0x1ed)]),_0x501c52[_0x5a0912(0x1ef)]('\x00'),_0x501c52[_0x5a0912(0x1ef)](_0x86185d[_0x5a0912(0x1e5)]),_0x501c52['update']('\x00'),_0x501c52[_0x5a0912(0x1ef)](String(_0x86185d[_0x5a0912(0x1e7)])),_0x501c52[_0x5a0912(0x1ef)]('\x00');}return _0x501c52[_0x5a0912(0x1eb)](_0x5a0912(0x1f3));}
|
|
@@ -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;
|