@lovrabet/lovrabet-cli 2.3.3 → 2.3.4-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 +11 -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/approval/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/init.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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.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/diagram.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/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.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/region.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/kb-search-client.d.ts +7 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.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/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.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/skills/lovrabet/SKILL.md +4 -2
- package/skills/lovrabet/references/lovrabet-config-commands.md +1 -1
- package/skills/lovrabet/references/lovrabet-config.md +2 -2
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +16 -6
- package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ddc2c,_0xa7ae53){var _0x1252f9=a113_0x3b3e,_0x33a392=_0x5ddc2c();while(!![]){try{var _0x518e95=-parseInt(_0x1252f9(0x182))/0x1*(parseInt(_0x1252f9(0x183))/0x2)+-parseInt(_0x1252f9(0x186))/0x3*(-parseInt(_0x1252f9(0x17f))/0x4)+parseInt(_0x1252f9(0x181))/0x5+-parseInt(_0x1252f9(0x187))/0x6+-parseInt(_0x1252f9(0x180))/0x7+parseInt(_0x1252f9(0x184))/0x8*(-parseInt(_0x1252f9(0x188))/0x9)+parseInt(_0x1252f9(0x185))/0xa;if(_0x518e95===_0xa7ae53)break;else _0x33a392['push'](_0x33a392['shift']());}catch(_0x573cfe){_0x33a392['push'](_0x33a392['shift']());}}}(a113_0x5621,0x835dc));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a113_0x3b3e(_0x58e660,_0x57f62d){_0x58e660=_0x58e660-0x17f;var _0x562117=a113_0x5621();var _0x3b3ed0=_0x562117[_0x58e660];return _0x3b3ed0;}export{formatOutput}from'../framework/output.js';function a113_0x5621(){var _0x2c7ce9=['1YucRTR','123436ayScal','1437016rHLMuX','18638250vYOCAr','2542446CrVNWv','5941224lLnNES','45nJRnOB','4lGLhHb','3354645JLheUJ','1280305UFCEqm'];a113_0x5621=function(){return _0x2c7ce9;};return a113_0x5621();}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 a114_0x246f(){const _0x4ce9f6=['421069KaIRdo','240335qGpWUG','8EwTgWR','2056692YZqvGa','1088802pOhBKw','url','2896912hLCTPP','format','pretty','909251bESiVu','3RNeARN','58252zpPaRA','message','update'];a114_0x246f=function(){return _0x4ce9f6;};return a114_0x246f();}(function(_0x1c7966,_0x16350b){const _0x14bfdd=a114_0x1beb,_0x3dbcf6=_0x1c7966();while(!![]){try{const _0xa4100c=-parseInt(_0x14bfdd(0xea))/0x1+-parseInt(_0x14bfdd(0xe7))/0x2*(-parseInt(_0x14bfdd(0xe6))/0x3)+parseInt(_0x14bfdd(0xe2))/0x4+-parseInt(_0x14bfdd(0xeb))/0x5+parseInt(_0x14bfdd(0xed))/0x6+parseInt(_0x14bfdd(0xe5))/0x7*(-parseInt(_0x14bfdd(0xec))/0x8)+-parseInt(_0x14bfdd(0xee))/0x9;if(_0xa4100c===_0x16350b)break;else _0x3dbcf6['push'](_0x3dbcf6['shift']());}catch(_0x44fa0b){_0x3dbcf6['push'](_0x3dbcf6['shift']());}}}(a114_0x246f,0x5bd41));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a114_0x1beb(_0x2f7716,_0x6dbc3b){_0x2f7716=_0x2f7716-0xe2;const _0x246fc5=a114_0x246f();let _0x1bebb1=_0x246fc5[_0x2f7716];return _0x1bebb1;}export function formatOutput(_0x34eba5,_0x12a56f){const _0x6581f3=a114_0x1beb,_0x45d9a3=_0x34eba5['_notice'],{_notice:_0x2ce8f6,..._0x12fa18}=_0x34eba5;void _0x2ce8f6,baseFormatOutput(_0x12fa18,_0x12a56f),_0x12a56f[_0x6581f3(0xe3)]===_0x6581f3(0xe4)&&printPrettyNotice(_0x45d9a3);}function printPrettyNotice(_0xce3ef5){const _0x56aa70=a114_0x1beb;if(!_0xce3ef5?.[_0x56aa70(0xe9)])return;console['error'](_0xce3ef5[_0x56aa70(0xe9)][_0x56aa70(0xe8)]+'\x20('+_0xce3ef5['update'][_0x56aa70(0xef)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44c91c,_0x2dce6f){const _0x18de91=a115_0x575c,_0x58186d=_0x44c91c();while(!![]){try{const _0xaa79ae=parseInt(_0x18de91(0x15a))/0x1*(parseInt(_0x18de91(0x162))/0x2)+-parseInt(_0x18de91(0x170))/0x3*(-parseInt(_0x18de91(0x151))/0x4)+parseInt(_0x18de91(0x179))/0x5*(parseInt(_0x18de91(0x169))/0x6)+-parseInt(_0x18de91(0x167))/0x7+-parseInt(_0x18de91(0x16e))/0x8*(parseInt(_0x18de91(0x165))/0x9)+parseInt(_0x18de91(0x15b))/0xa*(-parseInt(_0x18de91(0x159))/0xb)+parseInt(_0x18de91(0x14e))/0xc;if(_0xaa79ae===_0x2dce6f)break;else _0x58186d['push'](_0x58186d['shift']());}catch(_0x1b460b){_0x58186d['push'](_0x58186d['shift']());}}}(a115_0xecb5,0x700b1));export function toKebab(_0x8931c){const _0x58be95=a115_0x575c;return _0x8931c['replace'](/_/g,'-')[_0x58be95(0x176)](/-([A-Z]+)/g,(_0x34776d,_0xab15ca)=>'-'+_0xab15ca[_0x58be95(0x15f)]())[_0x58be95(0x176)](/([a-z0-9])([A-Z])/g,(_0x3364fd,_0x280b49,_0x20ab3f)=>_0x280b49+'-'+_0x20ab3f)['toLowerCase']();}function buildKnownFlags(_0x2ce85a){const _0x5cda16=a115_0x575c,_0xb8446=new Set();for(const _0xf1dd1b of _0x2ce85a){_0xb8446[_0x5cda16(0x155)](_0xf1dd1b[_0x5cda16(0x154)]),_0xb8446[_0x5cda16(0x155)](toCamelCase(_0xf1dd1b['name']));}for(const _0x4ef03a of[_0x5cda16(0x152),_0x5cda16(0x161),_0x5cda16(0x168),_0x5cda16(0x16c)]){_0xb8446[_0x5cda16(0x155)](_0x4ef03a);}for(const _0x50566e of[_0x5cda16(0x174),_0x5cda16(0x163),_0x5cda16(0x15e),'app',_0x5cda16(0x160),_0x5cda16(0x177),'ci',_0x5cda16(0x15c),_0x5cda16(0x166)]){_0xb8446[_0x5cda16(0x155)](_0x50566e);}return _0xb8446;}function buildFlagTypeMap(_0x4e0073){const _0x39f4e7=a115_0x575c,_0x15ae69=new Map();for(const _0x4b9ab4 of _0x4e0073){_0x15ae69['set'](_0x4b9ab4['name'],_0x4b9ab4[_0x39f4e7(0x157)]),_0x15ae69[_0x39f4e7(0x171)](toCamelCase(_0x4b9ab4[_0x39f4e7(0x154)]),_0x4b9ab4[_0x39f4e7(0x157)]);}return _0x15ae69;}function toCamelCase(_0x157ead){const _0x10d69b=a115_0x575c;return _0x157ead['replace'](/-([a-z])/g,(_0x22d7c0,_0x2e3239)=>_0x2e3239[_0x10d69b(0x172)]());}function a115_0xecb5(){const _0x107ee4=['indexOf','19077YXYQbF','set','toUpperCase','push','help','original','replace','non-interactive','corrected','6735IjKTks','6226632HIfJVO','entries','number','424rnQeLZ','dry-run','keys','name','add','boolean','type','slice','9945353FAzRod','139ycfspB','10ECRHDF','global','get','appcode','toLowerCase','nonInteractive','dryRun','9586cRXFGM','env','string','36FIlBLB','version','1046269gNcCDD','yes','2400oCJjyD','sticky','length','format','has','1770896EUKDOu'];a115_0xecb5=function(){return _0x107ee4;};return a115_0xecb5();}function aliasHandler(_0x3e8d8b,_0x458b1e){const _0x30aa14=a115_0x575c,_0x3d59f7=[];for(const _0x21203e of Object[_0x30aa14(0x153)](_0x3e8d8b)){if(_0x458b1e[_0x30aa14(0x16d)](_0x21203e))continue;const _0x59937f=toKebab(_0x21203e);_0x59937f!==_0x21203e&&_0x458b1e['has'](_0x59937f)&&_0x3d59f7[_0x30aa14(0x173)]({'original':_0x21203e,'corrected':_0x59937f,'handler':'alias'});}return _0x3d59f7;}function stickyHandler(_0xa17461,_0x32a6a3,_0x31089a){const _0x45ff26=a115_0x575c,_0x54bb3b=[];for(const [_0x4390fc,_0x31f7e3]of Object[_0x45ff26(0x14f)](_0xa17461)){if(_0x31f7e3!==!![])continue;for(let _0x18037d=_0x4390fc[_0x45ff26(0x16b)]-0x1;_0x18037d>0x0;_0x18037d--){const _0x534951=_0x4390fc[_0x45ff26(0x158)](0x0,_0x18037d),_0x4029cc=_0x4390fc[_0x45ff26(0x158)](_0x18037d),_0x53f9ab=toKebab(_0x534951),_0x2e043b=toCamelCase(_0x534951),_0x4f459b=_0x32a6a3[_0x45ff26(0x16d)](_0x534951)?_0x534951:_0x32a6a3[_0x45ff26(0x16d)](_0x53f9ab)?_0x53f9ab:_0x32a6a3[_0x45ff26(0x16d)](_0x2e043b)?_0x2e043b:null;if(!_0x4f459b)continue;const _0x3b63ae=_0x31089a[_0x45ff26(0x15d)](_0x4f459b)??'string';let _0xa3f991;if(_0x3b63ae===_0x45ff26(0x150)){const _0x207cb0=Number(_0x4029cc);if(isNaN(_0x207cb0)||_0x4029cc==='')continue;_0xa3f991=_0x207cb0;}else{if(_0x3b63ae===_0x45ff26(0x156))continue;else{if(_0x4029cc==='')continue;_0xa3f991=_0x4029cc;}}_0x54bb3b['push']({'original':_0x4390fc,'corrected':_0x4f459b+'='+_0xa3f991,'handler':_0x45ff26(0x16a)});break;}}return _0x54bb3b;}function a115_0x575c(_0xcfb972,_0x11b90b){_0xcfb972=_0xcfb972-0x14e;const _0xecb5c=a115_0xecb5();let _0x575c89=_0xecb5c[_0xcfb972];return _0x575c89;}export function correctFlags(_0x2e7ae5,_0x18454b){const _0x1407ae=a115_0x575c,_0xe0ade1=buildKnownFlags(_0x18454b),_0x14ee15=buildFlagTypeMap(_0x18454b),_0x162314=aliasHandler(_0x2e7ae5,_0xe0ade1),_0x191236=stickyHandler(_0x2e7ae5,_0xe0ade1,_0x14ee15),_0x10ab56=[..._0x162314,..._0x191236];if(_0x10ab56['length']===0x0)return{'flags':_0x2e7ae5,'corrections':[]};const _0x1e8bd7={..._0x2e7ae5},_0x400f55=new Set();for(const _0x32e61d of _0x162314){_0x1e8bd7[_0x32e61d[_0x1407ae(0x178)]]=_0x2e7ae5[_0x32e61d[_0x1407ae(0x175)]],_0x400f55[_0x1407ae(0x155)](_0x32e61d[_0x1407ae(0x175)]);}for(const _0x13385b of _0x191236){const _0x5a00d6=_0x13385b['corrected'][_0x1407ae(0x16f)]('='),_0x54b6cc=_0x13385b[_0x1407ae(0x178)]['slice'](0x0,_0x5a00d6),_0x35303c=_0x13385b[_0x1407ae(0x178)][_0x1407ae(0x158)](_0x5a00d6+0x1),_0x157fd6=_0x14ee15[_0x1407ae(0x15d)](_0x54b6cc)??_0x1407ae(0x164);_0x157fd6==='number'?_0x1e8bd7[_0x54b6cc]=Number(_0x35303c):_0x1e8bd7[_0x54b6cc]=_0x35303c,_0x400f55[_0x1407ae(0x155)](_0x13385b[_0x1407ae(0x175)]);}for(const _0x200ba6 of _0x400f55){delete _0x1e8bd7[_0x200ba6];}return{'flags':_0x1e8bd7,'corrections':_0x10ab56};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x172ae2=a116_0x3f07;(function(_0x3e2ae2,_0x851424){const _0x467f24=a116_0x3f07,_0x9f5a02=_0x3e2ae2();while(!![]){try{const _0x255b67=parseInt(_0x467f24(0x1ba))/0x1*(-parseInt(_0x467f24(0x1b5))/0x2)+parseInt(_0x467f24(0x1ad))/0x3+-parseInt(_0x467f24(0x1bb))/0x4+parseInt(_0x467f24(0x1b6))/0x5*(parseInt(_0x467f24(0x1bc))/0x6)+parseInt(_0x467f24(0x1c7))/0x7+parseInt(_0x467f24(0x1bd))/0x8*(-parseInt(_0x467f24(0x1c3))/0x9)+parseInt(_0x467f24(0x1b8))/0xa;if(_0x255b67===_0x851424)break;else _0x9f5a02['push'](_0x9f5a02['shift']());}catch(_0x4f7a8e){_0x9f5a02['push'](_0x9f5a02['shift']());}}}(a116_0xa908,0x5a28f));function a116_0x3f07(_0x2242a4,_0x5c52aa){_0x2242a4=_0x2242a4-0x1a9;const _0xa9080f=a116_0xa908();let _0x3f0734=_0xa9080f[_0x2242a4];return _0x3f0734;}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a116_0x172ae2(0x1c6),'IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x43fcf7){const _0x4bf8f5=a116_0x172ae2;if(typeof _0x43fcf7!=='string')return undefined;const _0x2a86c3=_0x43fcf7[_0x4bf8f5(0x1b0)]();return _0x2a86c3||undefined;}function a116_0xa908(){const _0x2181be=['get','entries','2218uwRJtO','70LHgEVL','rateLimited','2199960YKgLtn','Retry\x20after\x20a\x20short\x20delay.','97UMtvnA','137452RrIGEY','48234hYqsIR','664rkuYHM','retryAfter','has','status','toLowerCase','\x20seconds\x20before\x20retrying.','62442CevEAU','test','retryAfterSeconds','MAX_QPS_LIMIT','1241184ZRDfTw','message','Request\x20rate\x20limit\x20exceeded.','number','Retry-After','call','1731693cDhZKc','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','errorCode','trim','isArray','object'];a116_0xa908=function(){return _0x2181be;};return a116_0xa908();}function buildRetryHint(_0x542f7b){const _0x2bf637=a116_0x172ae2,_0xe3a2ce=nonEmptyString(_0x542f7b),_0x54cba4=_0xe3a2ce?/^\d+$/[_0x2bf637(0x1c4)](_0xe3a2ce)?'Wait\x20'+_0xe3a2ce+_0x2bf637(0x1c2):'Retry\x20after\x20'+_0xe3a2ce+'.':_0x2bf637(0x1b9);return _0x54cba4+_0x2bf637(0x1ae);}export function createRateLimitError(_0x5ef4c8){const _0x37df9d=a116_0x172ae2,_0x30b071=nonEmptyString(_0x5ef4c8[_0x37df9d(0x1af)])?.['toUpperCase'](),_0x31e174=Number(_0x5ef4c8[_0x37df9d(0x1c0)])===0x1ad||_0x30b071!==undefined&&RATE_LIMIT_ERROR_CODES[_0x37df9d(0x1bf)](_0x30b071);if(!_0x31e174)return undefined;return CliErrors[_0x37df9d(0x1b7)](nonEmptyString(_0x5ef4c8[_0x37df9d(0x1c8)])??_0x37df9d(0x1a9),buildRetryHint(_0x5ef4c8[_0x37df9d(0x1be)]));}export function readRetryAfter(_0x24fc1e){const _0x24daa2=a116_0x172ae2;if(!_0x24fc1e||typeof _0x24fc1e!==_0x24daa2(0x1b2))return undefined;const _0x437393=_0x24fc1e[_0x24daa2(0x1b3)];if(typeof _0x437393==='function'){const _0x478406=_0x437393[_0x24daa2(0x1ac)](_0x24fc1e,_0x24daa2(0x1ab))??_0x437393[_0x24daa2(0x1ac)](_0x24fc1e,'retry-after');return nonEmptyString(_0x478406);}for(const [_0x522e02,_0x2d678a]of Object[_0x24daa2(0x1b4)](_0x24fc1e)){if(_0x522e02[_0x24daa2(0x1c1)]()==='retry-after')return nonEmptyString(_0x2d678a)??(typeof _0x2d678a==='number'?String(_0x2d678a):undefined);}return undefined;}export function readRetryAfterSeconds(_0x5de4d3){const _0x4f6780=a116_0x172ae2;if(!_0x5de4d3||typeof _0x5de4d3!==_0x4f6780(0x1b2)||Array[_0x4f6780(0x1b1)](_0x5de4d3))return undefined;const _0x31956c=_0x5de4d3[_0x4f6780(0x1c5)];if(typeof _0x31956c===_0x4f6780(0x1aa))return Number['isInteger'](_0x31956c)&&_0x31956c>=0x0?String(_0x31956c):undefined;const _0x705001=nonEmptyString(_0x31956c);return _0x705001&&/^\d+$/[_0x4f6780(0x1c4)](_0x705001)?_0x705001:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x1b3d8d=a117_0x3975;(function(_0x4b1467,_0x40c0ee){const _0xee7a74=a117_0x3975,_0x588e6a=_0x4b1467();while(!![]){try{const _0x4bb6bd=-parseInt(_0xee7a74(0x84))/0x1*(-parseInt(_0xee7a74(0x83))/0x2)+parseInt(_0xee7a74(0x82))/0x3*(parseInt(_0xee7a74(0x78))/0x4)+-parseInt(_0xee7a74(0x7f))/0x5*(parseInt(_0xee7a74(0x7c))/0x6)+parseInt(_0xee7a74(0x80))/0x7+-parseInt(_0xee7a74(0x94))/0x8*(parseInt(_0xee7a74(0x7e))/0x9)+-parseInt(_0xee7a74(0x8f))/0xa*(parseInt(_0xee7a74(0x95))/0xb)+-parseInt(_0xee7a74(0x91))/0xc*(-parseInt(_0xee7a74(0x96))/0xd);if(_0x4bb6bd===_0x40c0ee)break;else _0x588e6a['push'](_0x588e6a['shift']());}catch(_0x413714){_0x588e6a['push'](_0x588e6a['shift']());}}}(a117_0x506d,0x90a84));function a117_0x3975(_0xdab200,_0x222d54){_0xdab200=_0xdab200-0x75;const _0x506d3c=a117_0x506d();let _0x397593=_0x506d3c[_0xdab200];return _0x397593;}import{CliErrors}from'../errors.js';function a117_0x506d(){const _0x4afc04=['orderby','4uYJpVJ','filter','entries','no-','36954gLtXfF','has','1407492mXaZXZ','290NozDiY','4592112RFpnCY','page-size','1041081UXTKzE','57292pNEoXk','8nPIxnY','asc','\x20for\x20`','order-by','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','currentpage','version','\x20--help`\x20to\x20see\x20accepted\x20flags.','name','command','flags','7445020uadLEN','pagesize','12060APwDfW','page','add','56pLjaqV','11VjrVss','20137mlCNli','select','where','Run\x20`','service','validation','meowKey'];a117_0x506d=function(){return _0x4afc04;};return a117_0x506d();}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a117_0x1b3d8d(0x98),a117_0x1b3d8d(0x97),a117_0x1b3d8d(0x87),a117_0x1b3d8d(0x77),'current-page',a117_0x1b3d8d(0x89),a117_0x1b3d8d(0x92),a117_0x1b3d8d(0x81),a117_0x1b3d8d(0x90)]);export function assertKnownCommandFlags(_0x2ed8eb,_0x426444){const _0xbe4fe3=a117_0x1b3d8d,_0x34f144=new Set([_0xbe4fe3(0x8a)]);for(const _0x351cf6 of GLOBAL_FLAGS){_0x34f144[_0xbe4fe3(0x93)](_0x351cf6[_0xbe4fe3(0x8c)]),_0x34f144[_0xbe4fe3(0x93)](toKebab(_0x351cf6[_0xbe4fe3(0x76)]));}for(const _0xbd757b of _0x2ed8eb[_0xbe4fe3(0x8e)]??[]){_0x34f144[_0xbe4fe3(0x93)](_0xbd757b[_0xbe4fe3(0x8c)]);}for(const [_0x445917,_0x5d1998]of Object[_0xbe4fe3(0x7a)](_0x426444)){const _0x5ae476=toKebab(_0x445917);if(_0x34f144[_0xbe4fe3(0x7d)](_0x5ae476))continue;if(_0x5d1998===![]&&_0x34f144['has'](_0xbe4fe3(0x7b)+_0x5ae476))continue;if(_0x2ed8eb[_0xbe4fe3(0x9a)]==='data'&&_0x2ed8eb[_0xbe4fe3(0x8d)]===_0xbe4fe3(0x79)&&FILTER_BODY_FIELDS[_0xbe4fe3(0x7d)](_0x5ae476))throw CliErrors[_0xbe4fe3(0x75)]('--'+_0x5ae476+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+'\x20data\x20filter`.',_0xbe4fe3(0x88)+('Example:\x20'+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON['stringify']({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0xbe4fe3(0x85)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0xbe4fe3(0x75)]('Unknown\x20flag\x20--'+_0x5ae476+_0xbe4fe3(0x86)+CLI_BIN_NAME+'\x20'+_0x2ed8eb['service']+'\x20'+_0x2ed8eb[_0xbe4fe3(0x8d)]+'`.',_0xbe4fe3(0x99)+CLI_BIN_NAME+'\x20'+_0x2ed8eb['service']+'\x20'+_0x2ed8eb[_0xbe4fe3(0x8d)]+_0xbe4fe3(0x8b));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a118_0xa25c(_0x5cf4cf,_0x4c6cff){_0x5cf4cf=_0x5cf4cf-0x152;var _0x3f0ddb=a118_0x3f0d();var _0xa25c08=_0x3f0ddb[_0x5cf4cf];return _0xa25c08;}(function(_0x4dc235,_0x5f4f76){var _0x308f6b=a118_0xa25c,_0x494ca8=_0x4dc235();while(!![]){try{var _0x220d78=-parseInt(_0x308f6b(0x154))/0x1+parseInt(_0x308f6b(0x158))/0x2*(parseInt(_0x308f6b(0x153))/0x3)+parseInt(_0x308f6b(0x156))/0x4*(parseInt(_0x308f6b(0x159))/0x5)+-parseInt(_0x308f6b(0x15a))/0x6+parseInt(_0x308f6b(0x155))/0x7+-parseInt(_0x308f6b(0x157))/0x8+parseInt(_0x308f6b(0x152))/0x9;if(_0x220d78===_0x5f4f76)break;else _0x494ca8['push'](_0x494ca8['shift']());}catch(_0x20b0aa){_0x494ca8['push'](_0x494ca8['shift']());}}}(a118_0x3f0d,0xb8d2c));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a118_0x3f0d(){var _0x3ec89b=['8016816QIPckl','206928IEoXcU','1754058IuvohO','611218PNuiRu','4799760lzREWO','2094480MEUrag','1767152wKzHAi','4bNDkgB','10HCfzuz'];a118_0x3f0d=function(){return _0x3ec89b;};return a118_0x3f0d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10877f,_0x123be2){const _0x564dbe=a119_0x1a3f,_0x5aecf9=_0x10877f();while(!![]){try{const _0x4429d2=-parseInt(_0x564dbe(0xa8))/0x1*(-parseInt(_0x564dbe(0xb5))/0x2)+parseInt(_0x564dbe(0xc5))/0x3*(-parseInt(_0x564dbe(0xcb))/0x4)+-parseInt(_0x564dbe(0xb0))/0x5*(parseInt(_0x564dbe(0xc0))/0x6)+parseInt(_0x564dbe(0xbf))/0x7*(parseInt(_0x564dbe(0xcd))/0x8)+parseInt(_0x564dbe(0xcc))/0x9*(-parseInt(_0x564dbe(0xb8))/0xa)+-parseInt(_0x564dbe(0xb6))/0xb+-parseInt(_0x564dbe(0xbc))/0xc*(-parseInt(_0x564dbe(0xc2))/0xd);if(_0x4429d2===_0x123be2)break;else _0x5aecf9['push'](_0x5aecf9['shift']());}catch(_0x594a97){_0x5aecf9['push'](_0x5aecf9['shift']());}}}(a119_0x3e1f,0x76002));import{CLI_BIN_NAME}from'../constant/cli.js';function a119_0x1a3f(_0x33169e,_0x118ff7){_0x33169e=_0x33169e-0xa4;const _0x3e1f34=a119_0x3e1f();let _0x1a3fa9=_0x3e1f34[_0x33169e];return _0x1a3fa9;}function a119_0x3e1f(){const _0x3f1350=['903216DCRyMh','title','264056dIMPkv','\x20\x20\x20Continue?\x20[y/N]\x20','\x20\x20\x20Affected:\x20','2495703ueYPAT','\x20\x20\x20','name=','service','description','join','4cbZqdh','59562CuJMJK','258704ObuNHQ','title=','params','name','--yes','cron=','87rRMwbX','push','affectedRecords','stringify','entries','\x20[REDACTED]','kind','command','15vhygbD','schedule-id=','params=','channel','cron','18266Axpmwl','4288020AmWTwo','⚠\x20\x20High-risk\x20operation:\x20','1030eqUhHD','code=','scheduled-at','code','768MheFvN','schedule-id','kind=','161EBYoTy'];a119_0x3e1f=function(){return _0x3f1350;};return a119_0x3e1f();}import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x18baa4,_0x1b97fd,_0x4954b1){const _0x18f445=a119_0x1a3f,_0x1ed617=buildConfirmationContext(_0x18baa4,_0x1b97fd,_0x4954b1),_0x8f6a66=[_0x18f445(0xb7)+_0x1ed617['commandLabel']];return _0x1ed617[_0x18f445(0xc9)]&&_0x8f6a66[_0x18f445(0xa9)](_0x18f445(0xc6)+_0x1ed617[_0x18f445(0xc9)]),_0x1ed617['affectedRecords']&&_0x8f6a66[_0x18f445(0xa9)](_0x18f445(0xc4)+_0x1ed617[_0x18f445(0xaa)]),_0x8f6a66['push'](_0x18f445(0xc3)),_0x8f6a66;}export function reconstructCommandArgv(_0x920f02,_0x417761){const _0x3b0c41=a119_0x1a3f,_0xdeb075=[CLI_BIN_NAME,_0x920f02[_0x3b0c41(0xc8)],_0x920f02[_0x3b0c41(0xaf)]];for(const [_0x162b50,_0x455b51]of Object[_0x3b0c41(0xac)](_0x417761)){if(_0x455b51===!![])_0xdeb075['push']('--'+_0x162b50);else{if(isSensitiveFlagName(_0x162b50)&&_0x455b51!==![]&&_0x455b51!==undefined&&_0x455b51!=='')_0xdeb075[_0x3b0c41(0xa9)]('--'+_0x162b50+_0x3b0c41(0xad));else _0x455b51!==![]&&_0x455b51!==undefined&&_0x455b51!==''&&_0xdeb075[_0x3b0c41(0xa9)]('--'+_0x162b50+'\x20'+JSON[_0x3b0c41(0xab)](_0x455b51));}}return _0xdeb075[_0x3b0c41(0xa9)](_0x3b0c41(0xa6)),_0xdeb075[_0x3b0c41(0xca)]('\x20');}function buildConfirmationContext(_0x1f8b1d,_0x4930f8,_0x3766c7){const _0x4948ca=a119_0x1a3f,_0x4fedb5=extractAffectedRecords(_0x3766c7);return{'commandLabel':_0x4930f8,'description':_0x1f8b1d[_0x4948ca(0xc9)],'affectedRecords':_0x4fedb5};}function extractAffectedRecords(_0x2b4191){const _0x5f2f8d=a119_0x1a3f,_0x1fdb05=[];if(_0x2b4191[_0x5f2f8d(0xbb)])_0x1fdb05[_0x5f2f8d(0xa9)](_0x5f2f8d(0xb9)+_0x2b4191['code']);if(_0x2b4191['id'])_0x1fdb05[_0x5f2f8d(0xa9)]('id='+_0x2b4191['id']);if(_0x2b4191[_0x5f2f8d(0xbd)])_0x1fdb05[_0x5f2f8d(0xa9)](_0x5f2f8d(0xb1)+_0x2b4191[_0x5f2f8d(0xbd)]);if(_0x2b4191[_0x5f2f8d(0xa5)])_0x1fdb05[_0x5f2f8d(0xa9)](_0x5f2f8d(0xc7)+_0x2b4191['name']);if(_0x2b4191[_0x5f2f8d(0xc1)])_0x1fdb05['push'](_0x5f2f8d(0xce)+_0x2b4191['title']);if(_0x2b4191[_0x5f2f8d(0xae)])_0x1fdb05[_0x5f2f8d(0xa9)](_0x5f2f8d(0xbe)+_0x2b4191[_0x5f2f8d(0xae)]);if(_0x2b4191[_0x5f2f8d(0xb4)])_0x1fdb05[_0x5f2f8d(0xa9)](_0x5f2f8d(0xa7)+_0x2b4191['cron']);if(_0x2b4191[_0x5f2f8d(0xba)])_0x1fdb05[_0x5f2f8d(0xa9)]('scheduled-at='+_0x2b4191[_0x5f2f8d(0xba)]);if(_0x2b4191[_0x5f2f8d(0xb3)])_0x1fdb05[_0x5f2f8d(0xa9)]('channel='+_0x2b4191[_0x5f2f8d(0xb3)]);if(_0x2b4191[_0x5f2f8d(0xa4)])_0x1fdb05[_0x5f2f8d(0xa9)](_0x5f2f8d(0xb2)+_0x2b4191['params']);return _0x1fdb05['length']>0x0?_0x1fdb05[_0x5f2f8d(0xca)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2fc913,_0xa0f1c4){const _0x405707=a120_0x3709,_0x31f023=_0x2fc913();while(!![]){try{const _0x253762=parseInt(_0x405707(0x1b6))/0x1*(-parseInt(_0x405707(0x1bb))/0x2)+parseInt(_0x405707(0x1b4))/0x3+-parseInt(_0x405707(0x1ac))/0x4+parseInt(_0x405707(0x1ad))/0x5*(parseInt(_0x405707(0x1ba))/0x6)+-parseInt(_0x405707(0x1af))/0x7*(-parseInt(_0x405707(0x1ae))/0x8)+-parseInt(_0x405707(0x1b7))/0x9+parseInt(_0x405707(0x1b5))/0xa;if(_0x253762===_0xa0f1c4)break;else _0x31f023['push'](_0x31f023['shift']());}catch(_0x25030c){_0x31f023['push'](_0x31f023['shift']());}}}(a120_0x59b4,0x601a0));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a120_0x59b4(){const _0x486e86=['6wKSPdV','trim','2582504vTdtkw','8215JbgHyO','196464KunjNq','42bZLQyM','headers','code','validation','message','2233818LOnArf','9820180AyGqOj','219799Lnmwoy','2450286zesiwB','status','description','354ubxAhK'];a120_0x59b4=function(){return _0x486e86;};return a120_0x59b4();}function a120_0x3709(_0x1a9c8c,_0x22d985){_0x1a9c8c=_0x1a9c8c-0x1ac;const _0x59b43a=a120_0x59b4();let _0x370910=_0x59b43a[_0x1a9c8c];return _0x370910;}export function mapUserFacingExecuteError(_0x4deb0f){const _0x340018=a120_0x3709;if(_0x4deb0f instanceof LovrabetError){const _0x809443=userFacingLovrabetMessage(_0x4deb0f),_0x567548=_0x4deb0f,_0x241bf9=createRateLimitError({'status':_0x567548[_0x340018(0x1b8)],'errorCode':_0x567548[_0x340018(0x1b1)],'message':_0x809443,'retryAfter':readRetryAfter(_0x567548['response']?.[_0x340018(0x1b0)])??readRetryAfterSeconds(_0x567548['response'])});return _0x241bf9??CliErrors[_0x340018(0x1b2)](_0x809443);}return _0x4deb0f;}function userFacingLovrabetMessage(_0x56f6fc){const _0x282dc5=a120_0x3709,_0x427908=_0x56f6fc[_0x282dc5(0x1b9)];if(_0x427908!==undefined&&_0x427908!==null){if(typeof _0x427908==='string'&&_0x427908[_0x282dc5(0x1bc)]())return _0x427908['trim']();try{return JSON['stringify'](_0x427908);}catch{}}return _0x56f6fc[_0x282dc5(0x1b3)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x29c173,_0x3fcc78){const _0xb3f441=a121_0x4cf3,_0x2787d9=_0x29c173();while(!![]){try{const _0x62c9aa=-parseInt(_0xb3f441(0xb9))/0x1*(parseInt(_0xb3f441(0x93))/0x2)+-parseInt(_0xb3f441(0x97))/0x3*(parseInt(_0xb3f441(0xa0))/0x4)+-parseInt(_0xb3f441(0x89))/0x5*(parseInt(_0xb3f441(0xb3))/0x6)+parseInt(_0xb3f441(0xc8))/0x7+parseInt(_0xb3f441(0xb8))/0x8+-parseInt(_0xb3f441(0x8d))/0x9*(-parseInt(_0xb3f441(0xa1))/0xa)+-parseInt(_0xb3f441(0xa2))/0xb*(-parseInt(_0xb3f441(0x8b))/0xc);if(_0x62c9aa===_0x3fcc78)break;else _0x2787d9['push'](_0x2787d9['shift']());}catch(_0x4db997){_0x2787d9['push'](_0x2787d9['shift']());}}}(a121_0x23d9,0x3f60c));function a121_0x23d9(){const _0xac12ba=['doctor','trim','pretty','schema','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','69676hreGMW','10qtjKQE','33PDKGKl','_notice','newConfigFileName','nativeToolAvailable','requiresAuth','nativeToolRequired','appCode','items','command','execute','cli-skill','cancelled','resolve','../core/api-client.js','mergedCli','appcode\x20\x22','\x20or\x20pass\x20','413844zKadpk','install','defaultApp','has','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','1287240atrnoj','1EpDSby','ClientAk','appcode','verbose','Unknown\x20app:\x20','name','apiDomain','string','\x20\x20To\x20proceed:\x20','high-risk-write','../commands/app/remote-source.js','write','runtimeDomain','defaultPageSize','formatOutput','1968694RKUjsZ','map','app','defaultVerbose','.appcode\x20to\x20','appCodeSource','format','APPCODE','authRequired','risk','currentApp','service','includes','production','requiresAppCode','35BijceL','configMissing','1206948ghmqQZ','env','1758357RKnCjN','error','accessKey','update','nonInteractive','local-alias','114982ZGsDXa','object','isNonInteractive','rawFlags','24rnqHQQ','pageSize'];a121_0x23d9=function(){return _0xac12ba;};return a121_0x23d9();}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,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x515998){const _0x4483e6=a121_0x4cf3;return void _0x515998,AUTH_MODE[_0x4483e6(0xba)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2eff64,_0x52a9dd){const _0x21358e=a121_0x4cf3,_0x3502fe=typeof _0x52a9dd[_0x21358e(0xca)]===_0x21358e(0xc0)&&_0x52a9dd['app']['trim']();return{'rawFlags':_0x52a9dd,'appCode':_0x2eff64[_0x21358e(0xa8)]||productEnv(_0x21358e(0xcf))||(_0x3502fe?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2eff64[_0x21358e(0xcd)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x52a9dd),'defaultFormat':_0x2eff64[_0x21358e(0xce)],'defaultPageSize':_0x2eff64[_0x21358e(0x98)],'defaultVerbose':_0x2eff64[_0x21358e(0xbc)],'riskLevel':_0x2eff64['riskLevel'],'nativeToolAvailable':_0x2eff64['nativeToolAvailable'],'accessKey':_0x2eff64['accessKey'],'env':_0x2eff64[_0x21358e(0x8c)],'mergedCli':{'defaultApp':_0x2eff64[_0x21358e(0xb5)],'currentApp':_0x2eff64[_0x21358e(0xd2)],'appCode':_0x2eff64[_0x21358e(0xa8)]}};}export function createLovrabetRunnerAdapter(_0x58ef7c={}){const _0x59f3fc=a121_0x4cf3,_0xdbc405={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4e1d21=>PIPELINE_FLAG_NAMES[_0x59f3fc(0xb6)](_0x4e1d21[_0x59f3fc(0xbe)]))[_0x59f3fc(0xc9)](({name:_0x585697,type:_0x24aa52,description:_0x4571dc})=>({'name':_0x585697,'type':_0x24aa52,'description':_0x4571dc})),'formatOutput':_0x58ef7c[_0x59f3fc(0xc7)]??formatOutput,'getCommandLabel'(_0x306253){const _0x5e8f25=_0x59f3fc;return CLI_BIN_NAME+'\x20'+_0x306253[_0x5e8f25(0x85)]+'\x20'+_0x306253[_0x5e8f25(0xaa)];},'riskPolicy':{'onViolation'(_0x331759,{def:_0x43166f,env:_0xc58328}){const _0x18cde9=_0x59f3fc;if(shouldRouteWriteToNativeTool(_0x43166f,_0xc58328))return;console[_0x18cde9(0x8e)](_0x331759);},'createError'(_0x54e544,{def:_0x114c31,env:_0x5d8ce8}){const _0x4f94a3=_0x59f3fc;if(shouldRouteWriteToNativeTool(_0x114c31,_0x5d8ce8))return CliErrors[_0x4f94a3(0xa7)](CLI_BIN_NAME+'\x20'+_0x114c31['service']+'\x20'+_0x114c31[_0x4f94a3(0xaa)]);return CliErrors['cancelled'](_0x54e544);}},async 'prepare'(_0x2e4b27,_0x24c740){const _0x4d8a76=_0x59f3fc,_0x15f1d9=resolveAuthMode(_0x24c740);if(_0x2e4b27[_0x4d8a76(0xa6)]!==![]){if(!_0x24c740[_0x4d8a76(0x8f)])throw CliErrors[_0x4d8a76(0xd0)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4d8a76(0xa4)]+_0x4d8a76(0xb2)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x271a4b}=await import(_0x4d8a76(0xaf));_0x271a4b(_0x24c740[_0x4d8a76(0x8f)]);}let _0x436be6='';if(_0x2e4b27['requiresAppCode']!==![]){_0x436be6=_0x24c740[_0x4d8a76(0xa8)]??'',_0x436be6=await resolveExplicitAppName(_0x2e4b27,_0x24c740,_0x436be6);if(!_0x436be6){await assertSelectedAppNameIsRuntimeAccessible(_0x2e4b27,_0x24c740);throw CliErrors[_0x4d8a76(0x8a)](_0x4d8a76(0x9d)+PRODUCT_CONFIG[_0x4d8a76(0xa4)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x2e4b27,_0x24c740,_0x436be6);}if(_0x436be6){const {initSdkClient:_0x727774}=await import('../core/sdk-client.js');_0x727774({'appCode':_0x436be6,'env':_0x24c740[_0x4d8a76(0x8c)]??'production','runtimeDomain':_0x24c740[_0x4d8a76(0xc5)],'accessKey':_0x24c740[_0x4d8a76(0x8f)],'authMode':_0x15f1d9}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x24c740[_0x4d8a76(0xcb)]},'numbers':{'pagesize':_0x24c740[_0x4d8a76(0xc6)]}},'extras':{'appCode':_0x436be6,'cookie':'','apiDomain':_0x24c740[_0x4d8a76(0xbf)],'apiDir':'','accessKey':_0x24c740[_0x4d8a76(0x8f)],'envName':_0x24c740[_0x4d8a76(0x8c)],'mergedCli':_0x24c740[_0x4d8a76(0xb0)]}};},'confirmHighRisk':_0x58ef7c['confirmHighRisk']??(async({def:_0x3a33f4,env:_0x129482,flags:_0x49a100,commandLabel:_0x4af068})=>{const _0x2c612f=_0x59f3fc;if(_0x129482[_0x2c612f(0x95)]){const _0x190587=reconstructCommandArgv(_0x3a33f4,_0x49a100);throw CliErrors[_0x2c612f(0x9e)]('High-risk\x20operation\x20`'+_0x4af068+_0x2c612f(0xb7)+(_0x2c612f(0xc1)+_0x190587));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3a33f4,_0x4af068,_0x49a100),'createCancelledError':_0x1deb7b=>CliErrors[_0x2c612f(0xad)](_0x1deb7b)});}),'mapDryRunError'(_0x22f877){return mapUserFacingExecuteError(_0x22f877);},'mapExecuteError'(_0xecdcfc){return mapUserFacingExecuteError(_0xecdcfc);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xdbc405;}function shouldRouteWriteToNativeTool(_0x232216,_0x199157){const _0x4940e6=a121_0x4cf3;return _0x199157[_0x4940e6(0xa5)]===!![]&&(_0x232216['risk']===_0x4940e6(0xc4)||_0x232216[_0x4940e6(0xd1)]===_0x4940e6(0xc2));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x490622=a121_0x4cf3;try{if(sdkClientInitialized){const {clearSdkClient:_0x2ac920}=await import('../core/sdk-client.js');_0x2ac920();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x184c85}=await import(_0x490622(0xaf));_0x184c85();}}async function resolveExplicitAppName(_0x9a39ca,_0x28abf0,_0x37613d){const _0x58df96=a121_0x4cf3;if(_0x9a39ca[_0x58df96(0x88)]===![])return _0x37613d;const _0x348104=typeof _0x28abf0[_0x58df96(0x96)][_0x58df96(0xca)]===_0x58df96(0xc0)?_0x28abf0['rawFlags'][_0x58df96(0xca)][_0x58df96(0x9a)]():'';if(!_0x348104)return _0x37613d;const _0x1488c7=typeof _0x28abf0['rawFlags'][_0x58df96(0xbb)]===_0x58df96(0xc0)&&_0x28abf0['rawFlags'][_0x58df96(0xbb)][_0x58df96(0x9a)]()||productEnv(_0x58df96(0xcf));if(_0x1488c7||_0x28abf0['appCodeSource']===_0x58df96(0x92))return _0x37613d;const {getRemoteAppList:_0x3fdc38}=await import(_0x58df96(0xc3)),_0x2c73db=await _0x3fdc38({'env':_0x28abf0['env']??_0x58df96(0x87),'accessKey':_0x28abf0[_0x58df96(0x8f)]}),_0x403ed7=findAppByName(_0x2c73db[_0x58df96(0xa9)],_0x348104);if(_0x403ed7&&!isRuntimeAccessibleApp(_0x403ed7))throw runtimeInaccessibleAppError(_0x403ed7,'\x22'+_0x348104+'\x22');const _0x10f924=_0x403ed7?.['appCode']?.[_0x58df96(0x9a)]();if(_0x10f924)return _0x10f924;throw CliErrors[_0x58df96(0x9e)](_0x58df96(0xbd)+_0x348104,'Run\x20`'+CLI_BIN_NAME+_0x58df96(0x9f)+_0x348104+_0x58df96(0xcc)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x14df5a,_0x9fb640){const _0x3d9418=a121_0x4cf3;if(_0x14df5a[_0x3d9418(0x88)]===![]||!_0x9fb640[_0x3d9418(0x8f)])return;const _0x3069c0=(typeof _0x9fb640[_0x3d9418(0x96)][_0x3d9418(0xca)]===_0x3d9418(0xc0)&&_0x9fb640[_0x3d9418(0x96)]['app'][_0x3d9418(0x9a)]()?_0x9fb640[_0x3d9418(0x96)][_0x3d9418(0xca)]:_0x9fb640['mergedCli']?.[_0x3d9418(0xd2)]??_0x9fb640['mergedCli']?.[_0x3d9418(0xb5)])?.['trim']();if(!_0x3069c0)return;const {getRemoteAppList:_0x2a0e08}=await import(_0x3d9418(0xc3)),_0x393aa2=await _0x2a0e08({'env':_0x9fb640[_0x3d9418(0x8c)]??'production','accessKey':_0x9fb640[_0x3d9418(0x8f)]}),_0x2e3725=findAppByName(_0x393aa2[_0x3d9418(0xa9)],_0x3069c0);if(_0x2e3725&&!isRuntimeAccessibleApp(_0x2e3725))throw runtimeInaccessibleAppError(_0x2e3725,'\x22'+_0x3069c0+'\x22');}function a121_0x4cf3(_0x2b649e,_0x1482a8){_0x2b649e=_0x2b649e-0x85;const _0x23d930=a121_0x23d9();let _0x4cf3ad=_0x23d930[_0x2b649e];return _0x4cf3ad;}async function assertAppCodeIsRuntimeAccessible(_0x32efed,_0x181165,_0x172cac){const _0x483da9=a121_0x4cf3;if(_0x32efed['requiresAppCode']===![]||!_0x181165['accessKey'])return;const {getRemoteAppList:_0x380d4f}=await import(_0x483da9(0xc3)),_0x515997=await _0x380d4f({'env':_0x181165[_0x483da9(0x8c)]??_0x483da9(0x87),'accessKey':_0x181165[_0x483da9(0x8f)]}),_0xc6211c=findAppByCode(_0x515997[_0x483da9(0xa9)],_0x172cac);if(_0xc6211c&&!isRuntimeAccessibleApp(_0xc6211c))throw runtimeInaccessibleAppError(_0xc6211c,_0x483da9(0xb1)+_0x172cac+'\x22');}export async function runCommand(_0x49e93b,_0x324111,_0x23c8be=terminalRunnerAdapter){const _0x3c9225=a121_0x4cf3;assertKnownCommandFlags(_0x49e93b,_0x324111[_0x3c9225(0x96)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x49e93b)?withVersionPolicy(_0x49e93b):_0x49e93b,_0x324111,_0x23c8be);}function shouldApplyVersionPolicy(_0x2e46e6){const _0x1718ef=a121_0x4cf3;if([_0x1718ef(0x90),_0x1718ef(0x9c),_0x1718ef(0x99)][_0x1718ef(0x86)](_0x2e46e6['service']))return![];return!(_0x2e46e6['service']===_0x1718ef(0xac)&&_0x2e46e6[_0x1718ef(0xaa)]===_0x1718ef(0xb4));}function withVersionPolicy(_0x1c4504){return{..._0x1c4504,async 'execute'(_0x184c73){const _0x1bc31c=a121_0x4cf3,_0x4b858f=await checkCliVersion();assertCliVersionSupported(_0x4b858f);const _0x43cd31=shouldResolveUpdateNotice(_0x184c73)?resolveLatestUpdateNotice(_0x4b858f)['catch'](()=>null):Promise[_0x1bc31c(0xae)](null),_0x398c0b=await _0x1c4504[_0x1bc31c(0xab)](_0x184c73);return attachUpdateNotice(_0x398c0b,await _0x43cd31);}};}function shouldResolveUpdateNotice(_0x5790db){const _0x5149ac=a121_0x4cf3;return _0x5790db[_0x5149ac(0xce)]===_0x5149ac(0x9b)&&!_0x5790db[_0x5149ac(0x91)];}function attachUpdateNotice(_0x7a9b37,_0x3a55d7){const _0x3f4e1e=a121_0x4cf3;if(!_0x3a55d7||!_0x7a9b37||typeof _0x7a9b37!==_0x3f4e1e(0x94))return _0x7a9b37;const _0x4e097d=_0x7a9b37,_0x373e2e=typeof _0x4e097d[_0x3f4e1e(0xa3)]===_0x3f4e1e(0x94)&&_0x4e097d[_0x3f4e1e(0xa3)]!==null?_0x4e097d['_notice']:{};return{..._0x4e097d,'_notice':{..._0x373e2e,'update':_0x3a55d7}};}
|
|
1
|
+
(function(_0x3b45c0,_0x424dd2){const _0x19ca62=a121_0x1294,_0xbbecf8=_0x3b45c0();while(!![]){try{const _0x1979fd=-parseInt(_0x19ca62(0x183))/0x1+parseInt(_0x19ca62(0x16b))/0x2+parseInt(_0x19ca62(0x149))/0x3+-parseInt(_0x19ca62(0x179))/0x4+-parseInt(_0x19ca62(0x186))/0x5+parseInt(_0x19ca62(0x14b))/0x6*(parseInt(_0x19ca62(0x18b))/0x7)+-parseInt(_0x19ca62(0x17e))/0x8;if(_0x1979fd===_0x424dd2)break;else _0xbbecf8['push'](_0xbbecf8['shift']());}catch(_0x1da36c){_0xbbecf8['push'](_0xbbecf8['shift']());}}}(a121_0x2d69,0xceac2));function a121_0x1294(_0x533333,_0x2388b6){_0x533333=_0x533333-0x147;const _0x2d6989=a121_0x2d69();let _0x1294b1=_0x2d6989[_0x533333];return _0x1294b1;}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,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x33efb9){const _0x166f64=a121_0x1294;return void _0x33efb9,AUTH_MODE[_0x166f64(0x178)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x261f48,_0xa2b7da){const _0x1ee78d=a121_0x1294,_0x5d64e5=typeof _0xa2b7da['app']===_0x1ee78d(0x172)&&_0xa2b7da[_0x1ee78d(0x181)][_0x1ee78d(0x184)]();return{'rawFlags':_0xa2b7da,'appCode':_0x261f48['appCode']||productEnv('APPCODE')||(_0x5d64e5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x261f48['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0xa2b7da),'defaultFormat':_0x261f48[_0x1ee78d(0x180)],'defaultPageSize':_0x261f48[_0x1ee78d(0x176)],'defaultVerbose':_0x261f48['verbose'],'riskLevel':_0x261f48[_0x1ee78d(0x14a)],'nativeToolAvailable':_0x261f48[_0x1ee78d(0x185)],'accessKey':_0x261f48[_0x1ee78d(0x17a)],'env':_0x261f48[_0x1ee78d(0x17b)],'mergedCli':{'defaultApp':_0x261f48['defaultApp'],'currentApp':_0x261f48[_0x1ee78d(0x175)],'appCode':_0x261f48[_0x1ee78d(0x161)]}};}export function createLovrabetRunnerAdapter(_0x20e5ed={}){const _0x450719=a121_0x1294,_0x31ce={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x49454=>PIPELINE_FLAG_NAMES[_0x450719(0x15f)](_0x49454[_0x450719(0x14c)]))['map'](({name:_0x496f02,type:_0x41e1ee,description:_0x9d00a4})=>({'name':_0x496f02,'type':_0x41e1ee,'description':_0x9d00a4})),'formatOutput':_0x20e5ed[_0x450719(0x16e)]??formatOutput,'getCommandLabel'(_0x3ce81b){const _0x4973d1=_0x450719;return CLI_BIN_NAME+'\x20'+_0x3ce81b[_0x4973d1(0x174)]+'\x20'+_0x3ce81b[_0x4973d1(0x169)];},'riskPolicy':{'onViolation'(_0x5e578d,{def:_0x3b023f,env:_0xa12633}){const _0x34caa6=_0x450719;if(shouldRouteWriteToNativeTool(_0x3b023f,_0xa12633))return;console[_0x34caa6(0x152)](_0x5e578d);},'createError'(_0x139954,{def:_0x130c69,env:_0x365477}){const _0x27b257=_0x450719;if(shouldRouteWriteToNativeTool(_0x130c69,_0x365477))return CliErrors[_0x27b257(0x15e)](CLI_BIN_NAME+'\x20'+_0x130c69[_0x27b257(0x174)]+'\x20'+_0x130c69[_0x27b257(0x169)]);return CliErrors[_0x27b257(0x150)](_0x139954);}},async 'prepare'(_0x398576,_0x3df72c){const _0x2b867a=_0x450719,_0x3caeb3=resolveAuthMode(_0x3df72c);if(_0x398576['requiresAuth']!==![]){if(!_0x3df72c[_0x2b867a(0x17a)])throw CliErrors[_0x2b867a(0x160)](_0x2b867a(0x14e)+PRODUCT_CONFIG['newConfigFileName']+_0x2b867a(0x189)+productEnvName(_0x2b867a(0x16f))+'.');const {setActiveAK:_0x22fb99}=await import(_0x2b867a(0x188));_0x22fb99(_0x3df72c[_0x2b867a(0x17a)]);}let _0x293b50='';if(_0x398576['requiresAppCode']!==![]){_0x293b50=_0x3df72c[_0x2b867a(0x161)]??'',_0x293b50=await resolveExplicitAppName(_0x398576,_0x3df72c,_0x293b50);if(!_0x293b50){await assertSelectedAppNameIsRuntimeAccessible(_0x398576,_0x3df72c);throw CliErrors[_0x2b867a(0x15c)](_0x2b867a(0x151)+PRODUCT_CONFIG[_0x2b867a(0x14d)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x398576,_0x3df72c,_0x293b50);}if(_0x293b50){const {initSdkClient:_0x5cdc09}=await import('../core/sdk-client.js');_0x5cdc09({'appCode':_0x293b50,'env':_0x3df72c[_0x2b867a(0x17b)]??_0x2b867a(0x158),'runtimeDomain':_0x3df72c[_0x2b867a(0x17c)],'accessKey':_0x3df72c[_0x2b867a(0x17a)],'authMode':_0x3caeb3}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x3df72c[_0x2b867a(0x164)]},'numbers':{'pagesize':_0x3df72c[_0x2b867a(0x157)]}},'extras':{'appCode':_0x293b50,'cookie':'','apiDomain':_0x3df72c['apiDomain'],'apiDir':'','accessKey':_0x3df72c[_0x2b867a(0x17a)],'envName':_0x3df72c[_0x2b867a(0x17b)],'mergedCli':_0x3df72c[_0x2b867a(0x147)]}};},'confirmHighRisk':_0x20e5ed[_0x450719(0x18a)]??(async({def:_0x170566,env:_0x444015,flags:_0x312045,commandLabel:_0x55e4e3})=>{const _0x2d7ceb=_0x450719;if(_0x444015[_0x2d7ceb(0x173)]){const _0x41de0e=reconstructCommandArgv(_0x170566,_0x312045);throw CliErrors[_0x2d7ceb(0x18e)](_0x2d7ceb(0x153)+_0x55e4e3+_0x2d7ceb(0x166)+(_0x2d7ceb(0x148)+_0x41de0e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x170566,_0x55e4e3,_0x312045),'createCancelledError':_0x50d928=>CliErrors['cancelled'](_0x50d928)});}),'mapDryRunError'(_0x56784e){return mapUserFacingExecuteError(_0x56784e);},'mapExecuteError'(_0x17668c){return mapUserFacingExecuteError(_0x17668c);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x31ce;}function shouldRouteWriteToNativeTool(_0x2c4725,_0x3963b9){const _0x334401=a121_0x1294;return _0x3963b9[_0x334401(0x185)]===!![]&&(_0x2c4725[_0x334401(0x18d)]===_0x334401(0x182)||_0x2c4725[_0x334401(0x18d)]===_0x334401(0x156));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x1ea742}=await import('../core/sdk-client.js');_0x1ea742();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1670d7}=await import('../core/api-client.js');_0x1670d7();}}async function resolveExplicitAppName(_0x1195f6,_0x467c77,_0x3432fb){const _0x5d2be3=a121_0x1294;if(_0x1195f6[_0x5d2be3(0x159)]===![])return _0x3432fb;const _0xda91a7=typeof _0x467c77['rawFlags'][_0x5d2be3(0x181)]===_0x5d2be3(0x172)?_0x467c77['rawFlags'][_0x5d2be3(0x181)][_0x5d2be3(0x184)]():'';if(!_0xda91a7)return _0x3432fb;const _0x482d23=typeof _0x467c77[_0x5d2be3(0x14f)]['appcode']===_0x5d2be3(0x172)&&_0x467c77[_0x5d2be3(0x14f)][_0x5d2be3(0x187)]['trim']()||productEnv(_0x5d2be3(0x15d));if(_0x482d23||_0x467c77[_0x5d2be3(0x163)]==='local-alias')return _0x3432fb;const {getRemoteAppList:_0x512125}=await import(_0x5d2be3(0x16d)),_0x5242b6=await _0x512125({'env':_0x467c77[_0x5d2be3(0x17b)]??'production','accessKey':_0x467c77[_0x5d2be3(0x17a)]}),_0x4000f3=findAppByName(_0x5242b6[_0x5d2be3(0x168)],_0xda91a7);if(_0x4000f3&&!isRuntimeAccessibleApp(_0x4000f3))throw runtimeInaccessibleAppError(_0x4000f3,'\x22'+_0xda91a7+'\x22');const _0x11986f=_0x4000f3?.[_0x5d2be3(0x161)]?.[_0x5d2be3(0x184)]();if(_0x11986f)return _0x11986f;throw CliErrors[_0x5d2be3(0x18e)](_0x5d2be3(0x162)+_0xda91a7,_0x5d2be3(0x170)+CLI_BIN_NAME+_0x5d2be3(0x154)+_0xda91a7+_0x5d2be3(0x16a)+PRODUCT_CONFIG[_0x5d2be3(0x14d)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x8dab6b,_0x363b39){const _0x594499=a121_0x1294;if(_0x8dab6b['requiresAppCode']===![]||!_0x363b39[_0x594499(0x17a)])return;const _0x46a70a=(typeof _0x363b39['rawFlags'][_0x594499(0x181)]===_0x594499(0x172)&&_0x363b39['rawFlags'][_0x594499(0x181)][_0x594499(0x184)]()?_0x363b39[_0x594499(0x14f)][_0x594499(0x181)]:_0x363b39[_0x594499(0x147)]?.[_0x594499(0x175)]??_0x363b39[_0x594499(0x147)]?.[_0x594499(0x17d)])?.[_0x594499(0x184)]();if(!_0x46a70a)return;const {getRemoteAppList:_0x192dfb}=await import(_0x594499(0x16d)),_0x2496f2=await _0x192dfb({'env':_0x363b39[_0x594499(0x17b)]??_0x594499(0x158),'accessKey':_0x363b39[_0x594499(0x17a)]}),_0x4ebb79=findAppByName(_0x2496f2[_0x594499(0x168)],_0x46a70a);if(_0x4ebb79&&!isRuntimeAccessibleApp(_0x4ebb79))throw runtimeInaccessibleAppError(_0x4ebb79,'\x22'+_0x46a70a+'\x22');}function a121_0x2d69(){const _0x2b1ef0=['cli-skill','high-risk-write','defaultPageSize','production','requiresAppCode','resolve','_notice','configMissing','APPCODE','nativeToolRequired','has','authRequired','appCode','Unknown\x20app:\x20','appCodeSource','defaultVerbose','catch','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','schema','items','command','.appcode\x20to\x20','2548452pjtJAg','includes','../commands/app/remote-source.js','formatOutput','ACCESS_KEY','Run\x20`','nonInteractive','string','isNonInteractive','service','currentApp','pageSize','pretty','ClientAk','5960844RyQSTt','accessKey','env','runtimeDomain','defaultApp','3725960pNbjIF','appcode\x20\x22','format','app','write','878762eqSLaY','trim','nativeToolAvailable','2214350CuGeAm','appcode','../core/api-client.js','\x20or\x20pass\x20','confirmHighRisk','14rOxxot','execute','risk','validation','mergedCli','\x20\x20To\x20proceed:\x20','3785922ynJYVe','riskLevel','4763754RbOCrE','name','newConfigFileName','Set\x20accessKey\x20in\x20','rawFlags','cancelled','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','error','High-risk\x20operation\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'];a121_0x2d69=function(){return _0x2b1ef0;};return a121_0x2d69();}async function assertAppCodeIsRuntimeAccessible(_0x5edc69,_0x220165,_0xf0ea25){const _0x1de8e3=a121_0x1294;if(_0x5edc69['requiresAppCode']===![]||!_0x220165[_0x1de8e3(0x17a)])return;const {getRemoteAppList:_0x1fd12c}=await import(_0x1de8e3(0x16d)),_0xa715f6=await _0x1fd12c({'env':_0x220165['env']??_0x1de8e3(0x158),'accessKey':_0x220165['accessKey']}),_0x332b02=findAppByCode(_0xa715f6['items'],_0xf0ea25);if(_0x332b02&&!isRuntimeAccessibleApp(_0x332b02))throw runtimeInaccessibleAppError(_0x332b02,_0x1de8e3(0x17f)+_0xf0ea25+'\x22');}export async function runCommand(_0x1d2507,_0x22c8f6,_0x1b242f=terminalRunnerAdapter){const _0x309751=a121_0x1294;assertKnownCommandFlags(_0x1d2507,_0x22c8f6[_0x309751(0x14f)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x1d2507)?withVersionPolicy(_0x1d2507):_0x1d2507,_0x22c8f6,_0x1b242f);}function shouldApplyVersionPolicy(_0x31fc4f){const _0x2cbf6c=a121_0x1294;if(['update',_0x2cbf6c(0x167),'doctor'][_0x2cbf6c(0x16c)](_0x31fc4f[_0x2cbf6c(0x174)]))return![];return!(_0x31fc4f[_0x2cbf6c(0x174)]===_0x2cbf6c(0x155)&&_0x31fc4f['command']==='install');}function withVersionPolicy(_0x492d2f){return{..._0x492d2f,async 'execute'(_0x1c2d9a){const _0x4deebf=a121_0x1294,_0x173422=await checkCliVersion();assertCliVersionSupported(_0x173422);const _0x4cf323=shouldResolveUpdateNotice(_0x1c2d9a)?resolveLatestUpdateNotice(_0x173422)[_0x4deebf(0x165)](()=>null):Promise[_0x4deebf(0x15a)](null),_0x5079eb=await _0x492d2f[_0x4deebf(0x18c)](_0x1c2d9a);return attachUpdateNotice(_0x5079eb,await _0x4cf323);}};}function shouldResolveUpdateNotice(_0x52bf87){const _0x171a8c=a121_0x1294;return _0x52bf87[_0x171a8c(0x180)]===_0x171a8c(0x177)&&!_0x52bf87[_0x171a8c(0x171)];}function attachUpdateNotice(_0x123bd6,_0x252142){const _0x2e74d6=a121_0x1294;if(!_0x252142||!_0x123bd6||typeof _0x123bd6!=='object')return _0x123bd6;const _0x1cd65c=_0x123bd6,_0x3d4a2e=typeof _0x1cd65c[_0x2e74d6(0x15b)]==='object'&&_0x1cd65c[_0x2e74d6(0x15b)]!==null?_0x1cd65c[_0x2e74d6(0x15b)]:{};return{..._0x1cd65c,'_notice':{..._0x3d4a2e,'update':_0x252142}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28f065,_0x370af7){const _0x49b026=a122_0x7449,_0xc60dba=_0x28f065();while(!![]){try{const _0x2f84e3=parseInt(_0x49b026(0x96))/0x1+parseInt(_0x49b026(0x94))/0x2+parseInt(_0x49b026(0x87))/0x3+-parseInt(_0x49b026(0x89))/0x4+-parseInt(_0x49b026(0x8b))/0x5+-parseInt(_0x49b026(0x8d))/0x6+parseInt(_0x49b026(0x91))/0x7;if(_0x2f84e3===_0x370af7)break;else _0xc60dba['push'](_0xc60dba['shift']());}catch(_0x3f693e){_0xc60dba['push'](_0xc60dba['shift']());}}}(a122_0x499f,0x2d35b));import{buildSchemaPayload as a122_0x371491}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a122_0x7449(_0x4c077b,_0x49c7a7){_0x4c077b=_0x4c077b-0x87;const _0x499f3d=a122_0x499f();let _0x74494f=_0x499f3d[_0x4c077b];return _0x74494f;}export async function buildSchemaPayload(){const _0x3b22a4=a122_0x7449,{serviceRegistry:_0x530759,findDefinition:_0x2cb800}=await import('../commands/registry.js'),_0x30a308=new Set(_0x530759['map'](_0x1bc47c=>_0x1bc47c[_0x3b22a4(0x8e)])),_0x5c8c77=listDynamicServiceEntries()[_0x3b22a4(0x90)](_0x486968=>!_0x30a308[_0x3b22a4(0x8f)](_0x486968[_0x3b22a4(0x8e)])),_0x1af6fb=a122_0x371491({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x530759,_0x5c8c77),'buildAllFlags':buildAllFlags,'findDefinition':(_0x4fb221,_0x1bb43a)=>_0x2cb800(_0x4fb221,_0x1bb43a)??findDynamicServiceDefinition(_0x4fb221,_0x1bb43a)});return normalizeSchemaPayload(_0x1af6fb);}function normalizeSchemaPayload(_0x8084a6){const _0x5dcf0b=a122_0x7449;return{..._0x8084a6,'schemaVersion':0x2,'services':_0x8084a6['services'][_0x5dcf0b(0x93)](_0x14862c=>({..._0x14862c,'commands':_0x14862c[_0x5dcf0b(0x92)][_0x5dcf0b(0x93)](normalizeSchemaCommand)}))};}function a122_0x499f(){const _0x5b7f6d=['service','has','filter','731850HAzhuk','commands','map','700660OCJfbg','required','44095QuCeMV','318801SjoenE','requiresAuth','1210120BdAdAY','auth','211465jNWZjC','none','451440uuOfIh'];a122_0x499f=function(){return _0x5b7f6d;};return a122_0x499f();}function normalizeSchemaCommand(_0xe908e7){const _0x26985b=a122_0x7449,_0x48acd6=_0xe908e7;return{..._0xe908e7,'auth':_0x48acd6[_0x26985b(0x8a)]??(_0xe908e7[_0x26985b(0x88)]?_0x26985b(0x95):_0x26985b(0x8c))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x143f(){const _0x5a41c2=['slice','length','service','1525270LmCcXM','89BbUjnq','2610243VOWXvm','200KFQaQX','8884146OkTANT','16hXUozd','88AjjaTR','37150yXxBYt','47007IHkMbk','findIndex','26120RFbAnf','7847637KKFXSA'];a123_0x143f=function(){return _0x5a41c2;};return a123_0x143f();}(function(_0x334f3e,_0x44ebc3){const _0x116e27=a123_0x11d2,_0x31a227=_0x334f3e();while(!![]){try{const _0x5fe8b8=parseInt(_0x116e27(0x1e5))/0x1*(parseInt(_0x116e27(0x1ee))/0x2)+parseInt(_0x116e27(0x1e6))/0x3+parseInt(_0x116e27(0x1e7))/0x4*(parseInt(_0x116e27(0x1eb))/0x5)+-parseInt(_0x116e27(0x1e8))/0x6+parseInt(_0x116e27(0x1e0))/0x7+parseInt(_0x116e27(0x1e9))/0x8*(-parseInt(_0x116e27(0x1ec))/0x9)+parseInt(_0x116e27(0x1e4))/0xa*(-parseInt(_0x116e27(0x1ea))/0xb);if(_0x5fe8b8===_0x44ebc3)break;else _0x31a227['push'](_0x31a227['shift']());}catch(_0x5c2782){_0x31a227['push'](_0x31a227['shift']());}}}(a123_0x143f,0xc6a5b));function a123_0x11d2(_0x4eb75a,_0xbe63b){_0x4eb75a=_0x4eb75a-0x1e0;const _0x143f6=a123_0x143f();let _0x11d206=_0x143f6[_0x4eb75a];return _0x11d206;}export function insertDynamicServicesAfterServiceTree(_0x1d8110,_0x1f4fb7){const _0x26f9c3=a123_0x11d2;if(_0x1f4fb7[_0x26f9c3(0x1e2)]===0x0)return[..._0x1d8110];const _0x520eab=_0x1d8110[_0x26f9c3(0x1ed)](_0x4e7e0e=>_0x4e7e0e[_0x26f9c3(0x1e3)]===_0x26f9c3(0x1e3));if(_0x520eab<0x0)return[..._0x1d8110,..._0x1f4fb7];return[..._0x1d8110[_0x26f9c3(0x1e1)](0x0,_0x520eab+0x1),..._0x1f4fb7,..._0x1d8110[_0x26f9c3(0x1e1)](_0x520eab+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4522ad,_0x1ef315){var _0x49a525=a124_0x2f20,_0x2cdfe5=_0x4522ad();while(!![]){try{var _0x33cb7a=parseInt(_0x49a525(0x84))/0x1*(-parseInt(_0x49a525(0x85))/0x2)+parseInt(_0x49a525(0x81))/0x3+parseInt(_0x49a525(0x83))/0x4+-parseInt(_0x49a525(0x82))/0x5*(parseInt(_0x49a525(0x87))/0x6)+-parseInt(_0x49a525(0x89))/0x7*(parseInt(_0x49a525(0x86))/0x8)+-parseInt(_0x49a525(0x88))/0x9+parseInt(_0x49a525(0x80))/0xa;if(_0x33cb7a===_0x1ef315)break;else _0x2cdfe5['push'](_0x2cdfe5['shift']());}catch(_0x489ae5){_0x2cdfe5['push'](_0x2cdfe5['shift']());}}}(a124_0x1957,0x22bd0));function a124_0x2f20(_0x2f5fc2,_0x2fc6aa){_0x2f5fc2=_0x2f5fc2-0x80;var _0x19578f=a124_0x1957();var _0x2f205f=_0x19578f[_0x2f5fc2];return _0x2f205f;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a124_0x1957(){var _0x444f94=['352xCHbYS','606ecPBUv','672102YWlBgj','33677qLwsEq','1748180lQmvmd','763503wKpwSw','7665zzqKhL','1131668moGsoe','1CILowq','257506ecRiyZ'];a124_0x1957=function(){return _0x444f94;};return a124_0x1957();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.4-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.4-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "66c9248";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-20T10:07:03.243Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0xfbfcf7=a125_0x2867;(function(_0x4316ab,_0x1dded7){const _0x55a7fc=a125_0x2867,_0x37783b=_0x4316ab();while(!![]){try{const _0x1d1bbf=-parseInt(_0x55a7fc(0xbc))/0x1*(parseInt(_0x55a7fc(0xc3))/0x2)+parseInt(_0x55a7fc(0xbf))/0x3*(parseInt(_0x55a7fc(0xbb))/0x4)+-parseInt(_0x55a7fc(0xba))/0x5+-parseInt(_0x55a7fc(0xbd))/0x6+parseInt(_0x55a7fc(0xb8))/0x7*(-parseInt(_0x55a7fc(0xc5))/0x8)+-parseInt(_0x55a7fc(0xc2))/0x9*(-parseInt(_0x55a7fc(0xb7))/0xa)+-parseInt(_0x55a7fc(0xc0))/0xb*(-parseInt(_0x55a7fc(0xc1))/0xc);if(_0x1d1bbf===_0x1dded7)break;else _0x37783b['push'](_0x37783b['shift']());}catch(_0x2c8726){_0x37783b['push'](_0x37783b['shift']());}}}(a125_0x4e86,0xe5632));export const VERSION='2.3.4-beta.1';export const GIT_TAG=a125_0xfbfcf7(0xc4);function a125_0x4e86(){const _0x39f71d=['66c9248','2562155DdTFLH','49652jSqWsW','14642sdWeKW','5366532WrwyaL','2026-09-20T10:07:03.243Z','87FcUuJS','38984297QtqAxc','12vzBiAo','36litmQD','68ovVtOn','v2.3.4-beta.1','40TdlhpS','1226380wNBgGS','2170427RIPSLJ'];a125_0x4e86=function(){return _0x39f71d;};return a125_0x4e86();}function a125_0x2867(_0x11b3c5,_0x55c8b7){_0x11b3c5=_0x11b3c5-0xb7;const _0x4e86e8=a125_0x4e86();let _0x2867a7=_0x4e86e8[_0x11b3c5];return _0x2867a7;}export const GIT_COMMIT=a125_0xfbfcf7(0xb9);export const BUILD_TIME=a125_0xfbfcf7(0xbe);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x525d3d=a126_0x447f;function a126_0x3f31(){const _0x32e2ce=['24hpkatm','https://skills.lovrabet.id','https://user.lovrabet.com','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','https://skills.lovrabet.ai','2977146rmqWlp','Global','Mainland\x20China','https://user.lovrabet.ai','96641jPnKZo','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','308vidlLD','2028864BoVYIy','https://api.lovrabet.id','https://runtime.lovrabet.id','8342060CdjuOC','980NPHOgm','https://daily-runtime.lovrabet.com','Indonesia','7893TKgxjZ','535311eZtuQE','3528igLIAK','global'];a126_0x3f31=function(){return _0x32e2ce;};return a126_0x3f31();}(function(_0xc582dd,_0x414e1d){const _0x3094ac=a126_0x447f,_0xd3038c=_0xc582dd();while(!![]){try{const _0x2becc2=parseInt(_0x3094ac(0x88))/0x1+-parseInt(_0x3094ac(0x8a))/0x2*(parseInt(_0x3094ac(0x7a))/0x3)+-parseInt(_0x3094ac(0x7c))/0x4*(-parseInt(_0x3094ac(0x77))/0x5)+parseInt(_0x3094ac(0x7e))/0x6*(-parseInt(_0x3094ac(0x7b))/0x7)+parseInt(_0x3094ac(0x8b))/0x8+-parseInt(_0x3094ac(0x84))/0x9+parseInt(_0x3094ac(0x8e))/0xa;if(_0x2becc2===_0x414e1d)break;else _0xd3038c['push'](_0xd3038c['shift']());}catch(_0x1e4a4d){_0xd3038c['push'](_0xd3038c['shift']());}}}(a126_0x3f31,0x4d04b));function a126_0x447f(_0x304c9e,_0x547234){_0x304c9e=_0x304c9e-0x77;const _0x3f3165=a126_0x3f31();let _0x447fbd=_0x3f3165[_0x304c9e];return _0x447fbd;}export const ROUTING_CATALOG_DIGEST=a126_0x525d3d(0x89);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a126_0x525d3d(0x7d)];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a126_0x525d3d(0x86),'aliases':['china'],'serviceDomains':{'production':{'user':a126_0x525d3d(0x80),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com'},'daily':{'user':a126_0x525d3d(0x82),'api':'https://daily-api.lovrabet.com','runtime':a126_0x525d3d(0x78),'skill':a126_0x525d3d(0x81)}}},'id':{'enabled':!![],'label':a126_0x525d3d(0x79),'aliases':['indonesia'],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a126_0x525d3d(0x8c),'runtime':a126_0x525d3d(0x8d),'skill':a126_0x525d3d(0x7f)}}},'global':{'enabled':![],'label':a126_0x525d3d(0x85),'aliases':[],'serviceDomains':{'production':{'user':a126_0x525d3d(0x87),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':a126_0x525d3d(0x83)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x3d2ec0=a127_0x2454;(function(_0x5b6982,_0xb2a2a4){const _0x169988=a127_0x2454,_0x1d8877=_0x5b6982();while(!![]){try{const _0x5ba195=parseInt(_0x169988(0x114))/0x1+parseInt(_0x169988(0x118))/0x2*(parseInt(_0x169988(0x10f))/0x3)+-parseInt(_0x169988(0x113))/0x4+-parseInt(_0x169988(0x119))/0x5+-parseInt(_0x169988(0x112))/0x6*(-parseInt(_0x169988(0x11b))/0x7)+parseInt(_0x169988(0x111))/0x8+parseInt(_0x169988(0x11a))/0x9;if(_0x5ba195===_0xb2a2a4)break;else _0x1d8877['push'](_0x1d8877['shift']());}catch(_0xcb1067){_0x1d8877['push'](_0x1d8877['shift']());}}}(a127_0x3fd7,0xa0715));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a127_0x3d2ec0(0x11c);function a127_0x2454(_0x5e85fb,_0x127bf7){_0x5e85fb=_0x5e85fb-0x10e;const _0x3fd7c8=a127_0x3fd7();let _0x2454f2=_0x3fd7c8[_0x5e85fb];return _0x2454f2;}export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a127_0x3d2ec0(0x115);function a127_0x3fd7(){const _0x16afb8=['462041GnXkIr','enterprise','apiDomain','skillDomain','23726oOUude','5778635xtysbB','2896704WiaWol','21mZlQUt','51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c','userDomain','222dQGuoh','runtimeDomain','2941256AJCdqI','709326pDuYNC','2284716OvFcPz'];a127_0x3fd7=function(){return _0x16afb8;};return a127_0x3fd7();}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x3d2ec0(0x10e),'apiDomain','runtimeDomain',a127_0x3d2ec0(0x117)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x3d2ec0(0x10e),a127_0x3d2ec0(0x116),a127_0x3d2ec0(0x110),a127_0x3d2ec0(0x117)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2be39e,_0x218d13){const _0x241821=a128_0x5620,_0x3ce3ca=_0x2be39e();while(!![]){try{const _0x417246=parseInt(_0x241821(0x16b))/0x1+parseInt(_0x241821(0x174))/0x2*(parseInt(_0x241821(0x16e))/0x3)+-parseInt(_0x241821(0x171))/0x4+parseInt(_0x241821(0x175))/0x5+parseInt(_0x241821(0x16d))/0x6+parseInt(_0x241821(0x172))/0x7*(parseInt(_0x241821(0x170))/0x8)+parseInt(_0x241821(0x173))/0x9*(-parseInt(_0x241821(0x16f))/0xa);if(_0x417246===_0x218d13)break;else _0x3ce3ca['push'](_0x3ce3ca['shift']());}catch(_0x52cc35){_0x3ce3ca['push'](_0x3ce3ca['shift']());}}}(a128_0x38a9,0x48c65));import{jsx as a128_0x1c6dd1,jsxs as a128_0x56c4ee}from'react/jsx-runtime';function a128_0x5620(_0x52c4fc,_0x10f3ca){_0x52c4fc=_0x52c4fc-0x16b;const _0x38a9cc=a128_0x38a9();let _0x56209a=_0x38a9cc[_0x52c4fc];return _0x56209a;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a128_0x38a9(){const _0x1eb958=['2381515PBSSws','\x20\x20Use\x20','494717HoUqLQ','\x20to\x20view\x20available\x20commands.','3503856YKxyRb','66078ouOmFM','20XaVWbY','152FMFGho','1629720FMAqeJ','114667YcKEnP','5520591sZrDHm','6MUUhfD'];a128_0x38a9=function(){return _0x1eb958;};return a128_0x38a9();}export function Help(){const _0x3d6295=a128_0x5620,{exit:_0x2207a5}=useApp();return useEffect(()=>{_0x2207a5();},[_0x2207a5]),a128_0x56c4ee(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a128_0x1c6dd1(Box,{'children':a128_0x1c6dd1(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a128_0x56c4ee(Box,{'marginTop':0x1,'children':[a128_0x1c6dd1(Text,{'dimColor':!![],'children':_0x3d6295(0x176)}),a128_0x1c6dd1(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+'\x20--help'}),a128_0x1c6dd1(Text,{'dimColor':!![],'children':_0x3d6295(0x16c)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x298b87,_0x41f974){const _0x2a050f=a129_0x3384,_0x4b1c73=_0x298b87();while(!![]){try{const _0x8efed1=parseInt(_0x2a050f(0xcd))/0x1+parseInt(_0x2a050f(0xd1))/0x2+parseInt(_0x2a050f(0xc0))/0x3*(-parseInt(_0x2a050f(0xc5))/0x4)+parseInt(_0x2a050f(0xc2))/0x5*(parseInt(_0x2a050f(0xcf))/0x6)+parseInt(_0x2a050f(0xd3))/0x7+-parseInt(_0x2a050f(0xc1))/0x8*(parseInt(_0x2a050f(0xca))/0x9)+parseInt(_0x2a050f(0xc4))/0xa*(-parseInt(_0x2a050f(0xc9))/0xb);if(_0x8efed1===_0x41f974)break;else _0x4b1c73['push'](_0x4b1c73['shift']());}catch(_0xd39e33){_0x4b1c73['push'](_0x4b1c73['shift']());}}}(a129_0x3b4a,0xdf205));function a129_0x3b4a(){const _0x537c7d=['changed','installed','44187484uuZXfF','5742VJilaw','Repair\x20with:\x20','Installation\x20failed','1208852RnahDP','log','10249614mcKkvj','\x20at\x20','2322860OEPumj','code','10086181puCllL','already\x20current','1428531QCBeXQ','1408QvHwks','5JTuHtl','warn','10fDfpuB','4VIhibD','error'];a129_0x3b4a=function(){return _0x537c7d;};return a129_0x3b4a();}function a129_0x3384(_0xeb1c44,_0x328915){_0xeb1c44=_0xeb1c44-0xc0;const _0x3b4ab0=a129_0x3b4a();let _0x338483=_0x3b4ab0[_0xeb1c44];return _0x338483;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x1792f4={}){const _0x4c3158=a129_0x3384,_0x4f6761=installBuiltinSkill(_0x1792f4);if(_0x4f6761['ok']){const _0x3aecea=_0x4f6761[_0x4c3158(0xc7)]?_0x4c3158(0xc8):_0x4c3158(0xd4),_0x5103fd=_0x4f6761['installedPath']?_0x4c3158(0xd0)+_0x4f6761['installedPath']:'\x20via\x20skills@latest';return console[_0x4c3158(0xce)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x4f6761['skillVersion']+'\x20'+_0x3aecea+_0x5103fd),_0x4f6761;}const _0x458538='[BUILTIN_SKILL_INSTALL_'+(_0x4f6761[_0x4c3158(0xd2)]??'FAILED')+']\x20'+(_0x4f6761[_0x4c3158(0xc6)]??_0x4c3158(0xcc))+'.\x20'+(_0x4c3158(0xcb)+_0x4f6761['repairCommand']);if(_0x4f6761[_0x4c3158(0xd2)]==='SOURCE_INVALID')throw new Error(_0x458538);return console[_0x4c3158(0xc3)](_0x458538),_0x4f6761;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a130_0x35f8(){const _0x2d1ed6=['9545embBLb','1062nnYGRV','string','trim','slice','risk','high-risk-write','10832AfeGty','write','1207820VYjtjp','description','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','185440bILjmB','2296qyDNXQ','689589DbGBTx','3038BcLQkN','confirmationDescription','11252889DGqVGZ','replace'];a130_0x35f8=function(){return _0x2d1ed6;};return a130_0x35f8();}(function(_0x496560,_0x6939d5){const _0x5e84c5=a130_0x4aec,_0x52ec00=_0x496560();while(!![]){try{const _0x30badd=parseInt(_0x5e84c5(0xfe))/0x1+parseInt(_0x5e84c5(0x101))/0x2+parseInt(_0x5e84c5(0x100))/0x3+parseInt(_0x5e84c5(0xfb))/0x4+parseInt(_0x5e84c5(0x105))/0x5*(parseInt(_0x5e84c5(0x106))/0x6)+parseInt(_0x5e84c5(0xff))/0x7*(parseInt(_0x5e84c5(0x10c))/0x8)+-parseInt(_0x5e84c5(0x103))/0x9;if(_0x30badd===_0x6939d5)break;else _0x52ec00['push'](_0x52ec00['shift']());}catch(_0x590080){_0x52ec00['push'](_0x52ec00['shift']());}}}(a130_0x35f8,0x3d25d));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xd05d90,_0x45950d,_0x3e2b61){const _0x4cdd58=a130_0x4aec,_0x214241=normalizeText(_0xd05d90[_0x4cdd58(0x102)],DESCRIPTION_MAX_LENGTH),_0x7e823d=normalizeText(_0xd05d90[_0x4cdd58(0xfc)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x45950d,'risk':requireWriteRisk(_0xd05d90),'description':_0x214241||_0x7e823d||'Run\x20this\x20write\x20operation',..._0x3e2b61?{'signal':_0x3e2b61}:{}};}function requireWriteRisk(_0x218824){const _0x261c7e=a130_0x4aec;if(_0x218824[_0x261c7e(0x10a)]===_0x261c7e(0x10d)||_0x218824[_0x261c7e(0x10a)]===_0x261c7e(0x10b))return _0x218824[_0x261c7e(0x10a)];throw new Error(_0x261c7e(0xfd));}function a130_0x4aec(_0x4a2d7d,_0x1ea226){_0x4a2d7d=_0x4a2d7d-0xfb;const _0x35f8da=a130_0x35f8();let _0x4aec88=_0x35f8da[_0x4a2d7d];return _0x4aec88;}function normalizeText(_0x1a4aad,_0x42010d){const _0x235ab6=a130_0x4aec;if(typeof _0x1a4aad!==_0x235ab6(0x107))return'';return _0x1a4aad['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x235ab6(0x104)](/\s+/g,'\x20')[_0x235ab6(0x108)]()[_0x235ab6(0x109)](0x0,_0x42010d);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a131_0x4d8f(){const _0x416288=['write','812470dbqEwB','8075vzCsaH','3099894AsJTkL','500SUjbLS','split','command','3302982Jjdjoq','lovrabet.write.completed','filter','trim','risk','536309evkDTx','4311520ptTbar','2291274CYVmRz','writeEventSubject','high-risk-write'];a131_0x4d8f=function(){return _0x416288;};return a131_0x4d8f();}(function(_0xf9c32,_0x213322){const _0x2e757c=a131_0xab22,_0x3b06d4=_0xf9c32();while(!![]){try{const _0x30fa77=-parseInt(_0x2e757c(0x1de))/0x1+parseInt(_0x2e757c(0x1e4))/0x2+-parseInt(_0x2e757c(0x1e0))/0x3+parseInt(_0x2e757c(0x1e7))/0x4*(-parseInt(_0x2e757c(0x1e5))/0x5)+parseInt(_0x2e757c(0x1d9))/0x6+parseInt(_0x2e757c(0x1e6))/0x7+parseInt(_0x2e757c(0x1df))/0x8;if(_0x30fa77===_0x213322)break;else _0x3b06d4['push'](_0x3b06d4['shift']());}catch(_0x1a728b){_0x3b06d4['push'](_0x3b06d4['shift']());}}}(a131_0x4d8f,0x6a95c));function a131_0xab22(_0x3bc013,_0x44ea4b){_0x3bc013=_0x3bc013-0x1d7;const _0x4d8fb2=a131_0x4d8f();let _0xab2200=_0x4d8fb2[_0x3bc013];return _0xab2200;}export function canonicalLovrabetOperation(_0x2860e4){const _0x50eb4f=a131_0xab22;return[_0x2860e4['service'],..._0x2860e4[_0x50eb4f(0x1d8)][_0x50eb4f(0x1dc)]()[_0x50eb4f(0x1d7)](/\s+/)][_0x50eb4f(0x1db)](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0x5de6ae,_0x59b391,_0x18d011,_0x1df9e0){const _0x54d8b1=a131_0xab22;if(_0x1df9e0||_0x18d011['ok']!==!![]||_0x5de6ae[_0x54d8b1(0x1dd)]!==_0x54d8b1(0x1e3)&&_0x5de6ae[_0x54d8b1(0x1dd)]!==_0x54d8b1(0x1e2))return undefined;const _0x4cfdf2=_0x5de6ae[_0x54d8b1(0x1e1)]?.(_0x18d011),_0x5c8e9f={'type':_0x54d8b1(0x1da),'operation':_0x59b391,'risk':_0x5de6ae[_0x54d8b1(0x1dd)],..._0x4cfdf2?{'subject':_0x4cfdf2}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x5c8e9f}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58aba7,_0x182e56){const _0x2771d9=a132_0x520f,_0xfcf0ce=_0x58aba7();while(!![]){try{const _0x27f588=parseInt(_0x2771d9(0x1bf))/0x1*(parseInt(_0x2771d9(0x1be))/0x2)+-parseInt(_0x2771d9(0x1d4))/0x3+parseInt(_0x2771d9(0x1b5))/0x4*(-parseInt(_0x2771d9(0x1c2))/0x5)+parseInt(_0x2771d9(0x1b4))/0x6*(parseInt(_0x2771d9(0x1cb))/0x7)+parseInt(_0x2771d9(0x1b9))/0x8*(-parseInt(_0x2771d9(0x1c1))/0x9)+-parseInt(_0x2771d9(0x1c4))/0xa*(-parseInt(_0x2771d9(0x1d6))/0xb)+parseInt(_0x2771d9(0x1d0))/0xc;if(_0x27f588===_0x182e56)break;else _0xfcf0ce['push'](_0xfcf0ce['shift']());}catch(_0x5a54d2){_0xfcf0ce['push'](_0xfcf0ce['shift']());}}}(a132_0x1e77,0x51090));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a132_0x520f(_0x18a2b0,_0x31d4fd){_0x18a2b0=_0x18a2b0-0x1b3;const _0x1e777a=a132_0x1e77();let _0x520f89=_0x1e777a[_0x18a2b0];return _0x520f89;}import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x42f161,command:_0x186da2,risk:_0x4684c2,dryRun:_0x3ef280}){const _0x46e1e8=a132_0x520f;return JSON[_0x46e1e8(0x1b3)]({'ok':_0x42f161['ok'],'command':_0x186da2,'risk':_0x4684c2,..._0x3ef280?{'dryRun':!![]}:{},..._0x42f161[_0x46e1e8(0x1ce)]!==undefined?{'data':_0x42f161[_0x46e1e8(0x1ce)]}:{},..._0x42f161['message']?{'message':_0x42f161[_0x46e1e8(0x1bc)]}:{}});}};export async function invokeLovrabet(_0x55313c,_0x293119){const _0x284c47=a132_0x520f;throwIfAborted(_0x293119[_0x284c47(0x1c9)]);const _0x549f11=await resolveLovrabetInvocation(_0x55313c),_0x4700d5=canonicalLovrabetOperation(_0x549f11[_0x284c47(0x1ca)]);return await confirmWriteBeforeQueue(_0x549f11['definition'],_0x549f11[_0x284c47(0x1b7)],_0x4700d5,_0x293119),runSerialized(async()=>{const _0x362af5=_0x284c47;throwIfAborted(_0x293119[_0x362af5(0x1c9)]);const _0x2b1cb8={},_0x10e4ff=buildConfigFromFlags(_0x549f11[_0x362af5(0x1b7)]);await initGlobalEnvironment(_0x10e4ff);const _0x3c9386=createPipelineEnv(_0x10e4ff,{..._0x549f11[_0x362af5(0x1b7)],'yes':_0x549f11[_0x362af5(0x1ca)][_0x362af5(0x1d7)]===_0x362af5(0x1d2)?!![]:_0x549f11[_0x362af5(0x1b7)][_0x362af5(0x1c8)],'nonInteractive':!![]});_0x3c9386['args']=_0x549f11['args'],_0x3c9386[_0x362af5(0x1c7)]=!![],_0x3c9386[_0x362af5(0x1d3)]=_0x362af5(0x1d2);const _0x58adfb=withAbortSignal(_0x549f11[_0x362af5(0x1ca)],_0x293119[_0x362af5(0x1c9)]),_0x4f629f=createLovrabetRunnerAdapter({'formatOutput'(_0x22542e,_0xf11ece){const _0x2e5128=_0x362af5;_0x2b1cb8[_0x2e5128(0x1d5)]=_0x22542e,_0x2b1cb8[_0x2e5128(0x1ba)]=_0xf11ece['command'],_0x2b1cb8[_0x2e5128(0x1d7)]=_0xf11ece['risk'],_0x2b1cb8[_0x2e5128(0x1cc)]=_0xf11ece['format'],_0x2b1cb8[_0x2e5128(0x1b6)]=_0xf11ece[_0x2e5128(0x1b6)]===!![];},async 'confirmHighRisk'(){const _0x43894d=_0x362af5;throw new Error(_0x43894d(0x1cf));}});try{await runCommand(_0x58adfb,_0x3c9386,_0x4f629f);if(!_0x2b1cb8[_0x362af5(0x1d5)]||!_0x2b1cb8[_0x362af5(0x1ba)]||!_0x2b1cb8[_0x362af5(0x1d7)]||!_0x2b1cb8[_0x362af5(0x1cc)])throw new Error(_0x362af5(0x1c0));const _0x307b3c=_0x293119['presentation']??defaultPresentation,_0x148c79=_0x2b1cb8['dryRun']===!![],_0x4678d8={'result':_0x2b1cb8[_0x362af5(0x1d5)],'command':_0x2b1cb8['command'],'operation':_0x4700d5,'risk':_0x2b1cb8[_0x362af5(0x1d7)],'format':_0x2b1cb8[_0x362af5(0x1cc)],'dryRun':_0x148c79},_0x4f5712=createLovrabetWriteMetadata(_0x549f11[_0x362af5(0x1ca)],_0x4700d5,_0x2b1cb8[_0x362af5(0x1d5)],_0x148c79);let _0x2ba41a;try{_0x2ba41a=await _0x307b3c[_0x362af5(0x1c3)](_0x4678d8);}catch(_0x317f4b){if(!_0x4f5712||_0x307b3c===defaultPresentation)throw _0x317f4b;_0x2ba41a=await defaultPresentation['present'](_0x4678d8);}return{'operation':_0x4700d5,'risk':_0x2b1cb8[_0x362af5(0x1d7)],'mode':_0x148c79?_0x362af5(0x1cd):'execute','result':_0x2b1cb8[_0x362af5(0x1d5)],'output':_0x2ba41a,..._0x4f5712?{'metadata':_0x4f5712}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a132_0x1e77(){const _0x28df4a=['aborted','isNonInteractive','yes','signal','definition','820764iFOZzK','format','dry-run','data','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','3602964WTpVEV','AbortError','high-risk-write','riskLevel','1230798eUbRMI','result','2145gyiJUc','risk','stringify','18hAexIF','28ckhHoI','dryRun','rawFlags','confirmation','523344LmlZqK','command','reason','message','execute','82qdffkk','2044OhMKWg','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','9obkytM','191770YJXDTn','present','17450xXEiZU','write'];a132_0x1e77=function(){return _0x28df4a;};return a132_0x1e77();}async function confirmWriteBeforeQueue(_0x2f581e,_0x4c7854,_0x2743ed,_0x390b89){const _0x219928=a132_0x520f;if(_0x4c7854[_0x219928(0x1b6)]===!![]||_0x2f581e[_0x219928(0x1d7)]!==_0x219928(0x1c5)&&_0x2f581e[_0x219928(0x1d7)]!==_0x219928(0x1d2))return;await _0x390b89[_0x219928(0x1b8)]['confirm'](buildLovrabetConfirmationRequest(_0x2f581e,_0x2743ed,_0x390b89[_0x219928(0x1c9)]));}function withAbortSignal(_0x55b576,_0x2bd1d3){return{..._0x55b576,async 'execute'(_0x2bbe03){const _0x5d8129=a132_0x520f;return throwIfAborted(_0x2bd1d3),_0x55b576[_0x5d8129(0x1bd)]({..._0x2bbe03,'signal':_0x2bd1d3});}};}function throwIfAborted(_0x312a3a){const _0x24b97a=a132_0x520f;if(_0x312a3a?.[_0x24b97a(0x1c6)])throw _0x312a3a[_0x24b97a(0x1bb)]instanceof Error?_0x312a3a[_0x24b97a(0x1bb)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x24b97a(0x1d1));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a133_0x526564=a133_0x14d3;(function(_0x901962,_0x4e3f0e){const _0x124d1c=a133_0x14d3,_0x181f68=_0x901962();while(!![]){try{const _0x5884bf=parseInt(_0x124d1c(0x171))/0x1*(parseInt(_0x124d1c(0x16e))/0x2)+-parseInt(_0x124d1c(0x16d))/0x3+parseInt(_0x124d1c(0x170))/0x4*(-parseInt(_0x124d1c(0x172))/0x5)+parseInt(_0x124d1c(0x16f))/0x6*(-parseInt(_0x124d1c(0x167))/0x7)+parseInt(_0x124d1c(0x16b))/0x8*(-parseInt(_0x124d1c(0x173))/0x9)+parseInt(_0x124d1c(0x169))/0xa*(-parseInt(_0x124d1c(0x166))/0xb)+parseInt(_0x124d1c(0x168))/0xc;if(_0x5884bf===_0x4e3f0e)break;else _0x181f68['push'](_0x181f68['shift']());}catch(_0x3d40c6){_0x181f68['push'](_0x181f68['shift']());}}}(a133_0x153c,0x760ff));let tail=Promise[a133_0x526564(0x16c)]();function a133_0x14d3(_0x400cc5,_0x4d2205){_0x400cc5=_0x400cc5-0x166;const _0x153c2c=a133_0x153c();let _0x14d37a=_0x153c2c[_0x400cc5];return _0x14d37a;}export async function runSerialized(_0x3c3709){const _0x3ed4d3=a133_0x526564,_0x4ac7e5=tail;let _0x4570d0;tail=new Promise(_0x2b83c8=>{_0x4570d0=_0x2b83c8;}),await _0x4ac7e5[_0x3ed4d3(0x16a)](()=>undefined);try{return await _0x3c3709();}finally{_0x4570d0();}}function a133_0x153c(){const _0xb47cd5=['1412285IoggNM','3620097kQPFuI','5489VEpBqA','1643957zkqfSg','29006700ienpqx','730TqKbJr','catch','8VBSnAu','resolve','2747496jzRquC','20354ryBnQI','12sdxzXR','4fBvpMx','17Lcmnbs'];a133_0x153c=function(){return _0xb47cd5;};return a133_0x153c();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6a30f2,_0x2ae69e){const _0x1798d3=a134_0x8cd3,_0x37cb08=_0x6a30f2();while(!![]){try{const _0x116fb7=parseInt(_0x1798d3(0x1f4))/0x1*(parseInt(_0x1798d3(0x1ec))/0x2)+-parseInt(_0x1798d3(0x1e2))/0x3+-parseInt(_0x1798d3(0x1e3))/0x4*(-parseInt(_0x1798d3(0x1e8))/0x5)+parseInt(_0x1798d3(0x1e9))/0x6+-parseInt(_0x1798d3(0x1eb))/0x7+-parseInt(_0x1798d3(0x1f0))/0x8+-parseInt(_0x1798d3(0x1f5))/0x9*(-parseInt(_0x1798d3(0x1ee))/0xa);if(_0x116fb7===_0x2ae69e)break;else _0x37cb08['push'](_0x37cb08['shift']());}catch(_0x277949){_0x37cb08['push'](_0x37cb08['shift']());}}}(a134_0x532f,0x75e83));import a134_0x1bd0ba from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a134_0x8cd3(_0x59f7a9,_0x4aa43b){_0x59f7a9=_0x59f7a9-0x1e2;const _0x532f45=a134_0x532f();let _0x8cd32f=_0x532f45[_0x59f7a9];return _0x8cd32f;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x36f529){const _0x34ffa8=a134_0x8cd3,_0x5000dd=a134_0x1bd0ba('',{'importMeta':import.meta,'argv':_0x36f529,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x146664=[..._0x5000dd['input']],_0x435366=_0x5000dd['flags'];await correctFlags(_0x435366);const _0x1cdcee=_0x146664[0x0];if(!_0x1cdcee)throw CliErrors[_0x34ffa8(0x1e7)](_0x34ffa8(0x1e5));const _0x236aea=resolveRemovedCommand(_0x1cdcee,_0x146664[0x1]);if(_0x236aea)throw CliErrors['validation'](_0x236aea['message'],_0x236aea[_0x34ffa8(0x1ef)]);if(!isKnownService(_0x1cdcee)){const _0x188500=resolveDynamicServiceCommand(_0x146664,_0x435366);if(!_0x188500)throw CliErrors[_0x34ffa8(0x1f3)](_0x146664[_0x34ffa8(0x1f1)]('\x20'));return Object[_0x34ffa8(0x1f6)](_0x435366,_0x188500['flags']),{'definition':_0x188500[_0x34ffa8(0x1e6)],'rawFlags':_0x435366,'args':_0x188500[_0x34ffa8(0x1ed)]};}const _0x354b12=getServiceEntry(_0x1cdcee),_0x1b42df=_0x146664[0x1]||_0x354b12['defaultCommand'];if(!_0x1b42df)throw CliErrors['validation'](_0x34ffa8(0x1ea)+_0x1cdcee+'\x22.');const _0x1aa2a7=findDefinition(_0x1cdcee,_0x1b42df);if(!_0x1aa2a7)throw CliErrors[_0x34ffa8(0x1f3)](_0x1cdcee+'\x20'+_0x1b42df);return{'definition':_0x1aa2a7,'rawFlags':_0x435366,'args':_0x146664[_0x34ffa8(0x1f2)](0x2)};}async function correctFlags(_0x3220f4){const _0x12a6b5=a134_0x8cd3;try{const {correctFlags:_0x43dc8a}=await import('../framework/preparse.js'),{getAllDefinitions:_0x6bebaf}=await import(_0x12a6b5(0x1e4)),_0x2eaf91=_0x6bebaf()['flatMap'](_0x3db3db=>_0x3db3db['flags']??[]),_0x2f5b41=_0x43dc8a(_0x3220f4,_0x2eaf91);Object[_0x12a6b5(0x1f6)](_0x3220f4,_0x2f5b41['flags']);}catch{}}function a134_0x532f(){const _0x590e47=['join','slice','unknownCommand','6200JzpxNR','1026711ZautxF','assign','1639533gUfZNa','2504ztAhWd','../commands/registry.js','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','definition','validation','3560oygyur','2355984nuFmwd','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','4264533LjpHOp','262nyrZja','args','10UwfTYy','hint','1007824asWXTR'];a134_0x532f=function(){return _0x590e47;};return a134_0x532f();}
|