@lovrabet/lovrabet-cli 2.3.3-beta.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/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.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 +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a113_0x1d74(_0x2aaffc,_0x368336){_0x2aaffc=_0x2aaffc-0x104;var _0x3c4b25=a113_0x3c4b();var _0x1d74f5=_0x3c4b25[_0x2aaffc];return _0x1d74f5;}(function(_0xe254e4,_0x1dbcac){var _0x3ea8f9=a113_0x1d74,_0x425fa6=_0xe254e4();while(!![]){try{var _0x5a9662=-parseInt(_0x3ea8f9(0x10b))/0x1*(parseInt(_0x3ea8f9(0x105))/0x2)+parseInt(_0x3ea8f9(0x10a))/0x3*(-parseInt(_0x3ea8f9(0x106))/0x4)+-parseInt(_0x3ea8f9(0x108))/0x5*(parseInt(_0x3ea8f9(0x10f))/0x6)+-parseInt(_0x3ea8f9(0x109))/0x7*(-parseInt(_0x3ea8f9(0x110))/0x8)+-parseInt(_0x3ea8f9(0x104))/0x9+parseInt(_0x3ea8f9(0x10c))/0xa*(parseInt(_0x3ea8f9(0x107))/0xb)+parseInt(_0x3ea8f9(0x10e))/0xc*(parseInt(_0x3ea8f9(0x10d))/0xd);if(_0x5a9662===_0x1dbcac)break;else _0x425fa6['push'](_0x425fa6['shift']());}catch(_0x3d80b9){_0x425fa6['push'](_0x425fa6['shift']());}}}(a113_0x3c4b,0x9cfca));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a113_0x3c4b(){var _0x295ad8=['8dqpuTl','2370078eiTDWX','2Llbqau','4iJyQGW','6226781HqvfjK','71765yiDoHa','8084153PvZUgw','1237857mOsoGP','312074WzZcvT','10rqrSis','6854666LkCYiR','12ibdDcz','258lcnUbq'];a113_0x3c4b=function(){return _0x295ad8;};return a113_0x3c4b();}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(_0x301ab7,_0x2f1397){const _0x2c228f=a114_0x4b05,_0x1df1ae=_0x301ab7();while(!![]){try{const _0x4443b9=parseInt(_0x2c228f(0x1b3))/0x1*(parseInt(_0x2c228f(0x1b0))/0x2)+-parseInt(_0x2c228f(0x1b8))/0x3+parseInt(_0x2c228f(0x1b2))/0x4+-parseInt(_0x2c228f(0x1ba))/0x5*(-parseInt(_0x2c228f(0x1b7))/0x6)+-parseInt(_0x2c228f(0x1bc))/0x7*(parseInt(_0x2c228f(0x1b1))/0x8)+parseInt(_0x2c228f(0x1be))/0x9+-parseInt(_0x2c228f(0x1bb))/0xa;if(_0x4443b9===_0x2f1397)break;else _0x1df1ae['push'](_0x1df1ae['shift']());}catch(_0x42d3e0){_0x1df1ae['push'](_0x1df1ae['shift']());}}}(a114_0x4136,0x5e0d7));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4fc52f,_0x3d8e25){const _0xa09ae0=a114_0x4b05,_0xf44d94=_0x4fc52f[_0xa09ae0(0x1bf)],{_notice:_0xa92e92,..._0x4d01a2}=_0x4fc52f;void _0xa92e92,baseFormatOutput(_0x4d01a2,_0x3d8e25),_0x3d8e25[_0xa09ae0(0x1bd)]==='pretty'&&printPrettyNotice(_0xf44d94);}function a114_0x4b05(_0x4230a5,_0x266d6e){_0x4230a5=_0x4230a5-0x1b0;const _0x41363a=a114_0x4136();let _0x4b05aa=_0x41363a[_0x4230a5];return _0x4b05aa;}function printPrettyNotice(_0x47d2e8){const _0x3863ba=a114_0x4b05;if(!_0x47d2e8?.['update'])return;console[_0x3863ba(0x1b4)](_0x47d2e8[_0x3863ba(0x1b6)][_0x3863ba(0x1b5)]+'\x20('+_0x47d2e8[_0x3863ba(0x1b6)][_0x3863ba(0x1b9)]+')');}function a114_0x4136(){const _0x3c6535=['error','message','update','2224602spBOBp','370911JHeCrf','url','5GLKqNx','2338350hDCRtL','7dkAiuQ','format','3967848VEJHHC','_notice','10DnUbMD','4985472jERBdz','1232884mGzfjc','49207WNmRds'];a114_0x4136=function(){return _0x3c6535;};return a114_0x4136();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1665a8,_0x2552bd){const _0x5d4a75=a115_0x53a5,_0x28223d=_0x1665a8();while(!![]){try{const _0x3034f4=parseInt(_0x5d4a75(0x10d))/0x1+-parseInt(_0x5d4a75(0x10c))/0x2+-parseInt(_0x5d4a75(0x109))/0x3*(parseInt(_0x5d4a75(0xf8))/0x4)+parseInt(_0x5d4a75(0x107))/0x5*(-parseInt(_0x5d4a75(0x104))/0x6)+parseInt(_0x5d4a75(0x112))/0x7*(-parseInt(_0x5d4a75(0xfc))/0x8)+parseInt(_0x5d4a75(0x10f))/0x9+-parseInt(_0x5d4a75(0x106))/0xa*(-parseInt(_0x5d4a75(0x110))/0xb);if(_0x3034f4===_0x2552bd)break;else _0x28223d['push'](_0x28223d['shift']());}catch(_0x1899cb){_0x28223d['push'](_0x28223d['shift']());}}}(a115_0x186d,0x636b4));export function toKebab(_0x533110){const _0x48fcb2=a115_0x53a5;return _0x533110[_0x48fcb2(0x111)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x1ced2f,_0x214c31)=>'-'+_0x214c31[_0x48fcb2(0x11c)]())[_0x48fcb2(0x111)](/([a-z0-9])([A-Z])/g,(_0x143a26,_0x537b1d,_0x25d39f)=>_0x537b1d+'-'+_0x25d39f)[_0x48fcb2(0x11c)]();}function a115_0x53a5(_0x39d371,_0x4c688e){_0x39d371=_0x39d371-0xf7;const _0x186d3=a115_0x186d();let _0x53a53c=_0x186d3[_0x39d371];return _0x53a53c;}function buildKnownFlags(_0x4da897){const _0x231dea=a115_0x53a5,_0x4c4837=new Set();for(const _0x5e1a04 of _0x4da897){_0x4c4837['add'](_0x5e1a04[_0x231dea(0x11d)]),_0x4c4837[_0x231dea(0x119)](toCamelCase(_0x5e1a04[_0x231dea(0x11d)]));}for(const _0x194410 of[_0x231dea(0xf7),_0x231dea(0x101),_0x231dea(0x10e),_0x231dea(0x11a)]){_0x4c4837['add'](_0x194410);}for(const _0x24e1a3 of['help','env',_0x231dea(0x103),_0x231dea(0x11b),_0x231dea(0xfb),_0x231dea(0x113),'ci',_0x231dea(0x108),_0x231dea(0xff)]){_0x4c4837['add'](_0x24e1a3);}return _0x4c4837;}function buildFlagTypeMap(_0x432b57){const _0x5558b6=a115_0x53a5,_0xff3842=new Map();for(const _0x2d961e of _0x432b57){_0xff3842[_0x5558b6(0xfe)](_0x2d961e[_0x5558b6(0x11d)],_0x2d961e['type']),_0xff3842['set'](toCamelCase(_0x2d961e[_0x5558b6(0x11d)]),_0x2d961e[_0x5558b6(0x116)]);}return _0xff3842;}function toCamelCase(_0x1a2d10){const _0x460a28=a115_0x53a5;return _0x1a2d10[_0x460a28(0x111)](/-([a-z])/g,(_0x3ecf98,_0xe129ce)=>_0xe129ce['toUpperCase']());}function a115_0x186d(){const _0x3afb34=['length','alias','nonInteractive','232120WtjAnU','entries','set','version','original','dryRun','has','appcode','6epSJeL','number','15970sgcbbU','2626060Tcmfvj','global','705njlLUj','push','indexOf','149590cLmhCt','169929ohuyVq','yes','975996DSWhyA','6787uqnufS','replace','7MNzgOD','non-interactive','boolean','slice','type','get','corrected','add','format','app','toLowerCase','name','string','dry-run','3872JmHBhF'];a115_0x186d=function(){return _0x3afb34;};return a115_0x186d();}function aliasHandler(_0x5931d3,_0x35bbd9){const _0x32091b=a115_0x53a5,_0x413afe=[];for(const _0x3b4788 of Object['keys'](_0x5931d3)){if(_0x35bbd9[_0x32091b(0x102)](_0x3b4788))continue;const _0x55ed72=toKebab(_0x3b4788);_0x55ed72!==_0x3b4788&&_0x35bbd9['has'](_0x55ed72)&&_0x413afe[_0x32091b(0x10a)]({'original':_0x3b4788,'corrected':_0x55ed72,'handler':_0x32091b(0xfa)});}return _0x413afe;}function stickyHandler(_0x29ffe3,_0xc7d8da,_0x2045b3){const _0xd86d8c=a115_0x53a5,_0xb0a4b6=[];for(const [_0x2bd6de,_0x433973]of Object[_0xd86d8c(0xfd)](_0x29ffe3)){if(_0x433973!==!![])continue;for(let _0x2d8ef9=_0x2bd6de[_0xd86d8c(0xf9)]-0x1;_0x2d8ef9>0x0;_0x2d8ef9--){const _0x4f7851=_0x2bd6de[_0xd86d8c(0x115)](0x0,_0x2d8ef9),_0x1f59f2=_0x2bd6de[_0xd86d8c(0x115)](_0x2d8ef9),_0x3a8d8b=toKebab(_0x4f7851),_0x2d3a21=toCamelCase(_0x4f7851),_0x43a274=_0xc7d8da[_0xd86d8c(0x102)](_0x4f7851)?_0x4f7851:_0xc7d8da[_0xd86d8c(0x102)](_0x3a8d8b)?_0x3a8d8b:_0xc7d8da['has'](_0x2d3a21)?_0x2d3a21:null;if(!_0x43a274)continue;const _0x1949fa=_0x2045b3[_0xd86d8c(0x117)](_0x43a274)??_0xd86d8c(0x11e);let _0x58bbeb;if(_0x1949fa===_0xd86d8c(0x105)){const _0x43a5f9=Number(_0x1f59f2);if(isNaN(_0x43a5f9)||_0x1f59f2==='')continue;_0x58bbeb=_0x43a5f9;}else{if(_0x1949fa===_0xd86d8c(0x114))continue;else{if(_0x1f59f2==='')continue;_0x58bbeb=_0x1f59f2;}}_0xb0a4b6[_0xd86d8c(0x10a)]({'original':_0x2bd6de,'corrected':_0x43a274+'='+_0x58bbeb,'handler':'sticky'});break;}}return _0xb0a4b6;}export function correctFlags(_0xbf202c,_0x52ec40){const _0x443d4d=a115_0x53a5,_0x45678b=buildKnownFlags(_0x52ec40),_0xd4b696=buildFlagTypeMap(_0x52ec40),_0x5a3aff=aliasHandler(_0xbf202c,_0x45678b),_0x4538b3=stickyHandler(_0xbf202c,_0x45678b,_0xd4b696),_0x379294=[..._0x5a3aff,..._0x4538b3];if(_0x379294[_0x443d4d(0xf9)]===0x0)return{'flags':_0xbf202c,'corrections':[]};const _0x5c90bc={..._0xbf202c},_0xdd8368=new Set();for(const _0x5789b0 of _0x5a3aff){_0x5c90bc[_0x5789b0[_0x443d4d(0x118)]]=_0xbf202c[_0x5789b0[_0x443d4d(0x100)]],_0xdd8368[_0x443d4d(0x119)](_0x5789b0[_0x443d4d(0x100)]);}for(const _0xf170ff of _0x4538b3){const _0x3b8386=_0xf170ff['corrected'][_0x443d4d(0x10b)]('='),_0xfdd9a5=_0xf170ff[_0x443d4d(0x118)]['slice'](0x0,_0x3b8386),_0x35f8c9=_0xf170ff[_0x443d4d(0x118)][_0x443d4d(0x115)](_0x3b8386+0x1),_0x23cfab=_0xd4b696[_0x443d4d(0x117)](_0xfdd9a5)??_0x443d4d(0x11e);_0x23cfab===_0x443d4d(0x105)?_0x5c90bc[_0xfdd9a5]=Number(_0x35f8c9):_0x5c90bc[_0xfdd9a5]=_0x35f8c9,_0xdd8368[_0x443d4d(0x119)](_0xf170ff[_0x443d4d(0x100)]);}for(const _0x2e9ed7 of _0xdd8368){delete _0x5c90bc[_0x2e9ed7];}return{'flags':_0x5c90bc,'corrections':_0x379294};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a116_0x28081b=a116_0x1cf6;(function(_0x2be177,_0x316551){const _0x49ae6d=a116_0x1cf6,_0x6c0936=_0x2be177();while(!![]){try{const _0x4e6020=parseInt(_0x49ae6d(0x70))/0x1+-parseInt(_0x49ae6d(0x79))/0x2*(-parseInt(_0x49ae6d(0x83))/0x3)+-parseInt(_0x49ae6d(0x6c))/0x4+-parseInt(_0x49ae6d(0x73))/0x5+parseInt(_0x49ae6d(0x66))/0x6*(-parseInt(_0x49ae6d(0x80))/0x7)+parseInt(_0x49ae6d(0x7c))/0x8*(parseInt(_0x49ae6d(0x6b))/0x9)+parseInt(_0x49ae6d(0x76))/0xa;if(_0x4e6020===_0x316551)break;else _0x6c0936['push'](_0x6c0936['shift']());}catch(_0x1b7e5d){_0x6c0936['push'](_0x6c0936['shift']());}}}(a116_0x5e62,0xb4334));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a116_0x28081b(0x6d),a116_0x28081b(0x86)]);function a116_0x1cf6(_0x27b509,_0xa6e5b0){_0x27b509=_0x27b509-0x66;const _0x5e6254=a116_0x5e62();let _0x1cf616=_0x5e6254[_0x27b509];return _0x1cf616;}function nonEmptyString(_0xe793d){const _0x3f1b71=a116_0x28081b;if(typeof _0xe793d!==_0x3f1b71(0x74))return undefined;const _0x149f3a=_0xe793d[_0x3f1b71(0x69)]();return _0x149f3a||undefined;}function buildRetryHint(_0x5605dd){const _0x52636d=a116_0x28081b,_0x40cabd=nonEmptyString(_0x5605dd),_0x31153b=_0x40cabd?/^\d+$/[_0x52636d(0x67)](_0x40cabd)?_0x52636d(0x81)+_0x40cabd+_0x52636d(0x72):'Retry\x20after\x20'+_0x40cabd+'.':_0x52636d(0x6f);return _0x31153b+_0x52636d(0x7a);}export function createRateLimitError(_0x2cb226){const _0x87851e=a116_0x28081b,_0x2e0f5b=nonEmptyString(_0x2cb226['errorCode'])?.['toUpperCase'](),_0x55e18c=Number(_0x2cb226[_0x87851e(0x85)])===0x1ad||_0x2e0f5b!==undefined&&RATE_LIMIT_ERROR_CODES[_0x87851e(0x82)](_0x2e0f5b);if(!_0x55e18c)return undefined;return CliErrors[_0x87851e(0x68)](nonEmptyString(_0x2cb226[_0x87851e(0x84)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x2cb226[_0x87851e(0x77)]));}function a116_0x5e62(){const _0x2b3ee6=['Retry\x20after\x20a\x20short\x20delay.','561322CkpeRR','retry-after','\x20seconds\x20before\x20retrying.','6069665WWpeZn','string','call','27964740HxPZtp','retryAfter','retryAfterSeconds','432lTrwGx','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','entries','14408PBcbBD','object','number','isInteger','4702992aHKrTH','Wait\x20','has','7479cXUHSA','message','status','IP_RATE_LIMIT_EXCEEDED','isArray','12gMMAhM','test','rateLimited','trim','toLowerCase','1089PHPijf','3273840hNrolF','MAX_QPS_LIMIT','Retry-After'];a116_0x5e62=function(){return _0x2b3ee6;};return a116_0x5e62();}export function readRetryAfter(_0x4630c9){const _0x810f9c=a116_0x28081b;if(!_0x4630c9||typeof _0x4630c9!==_0x810f9c(0x7d))return undefined;const _0x305277=_0x4630c9['get'];if(typeof _0x305277==='function'){const _0x43cde0=_0x305277[_0x810f9c(0x75)](_0x4630c9,_0x810f9c(0x6e))??_0x305277[_0x810f9c(0x75)](_0x4630c9,_0x810f9c(0x71));return nonEmptyString(_0x43cde0);}for(const [_0xa937aa,_0x230c6b]of Object[_0x810f9c(0x7b)](_0x4630c9)){if(_0xa937aa[_0x810f9c(0x6a)]()==='retry-after')return nonEmptyString(_0x230c6b)??(typeof _0x230c6b===_0x810f9c(0x7e)?String(_0x230c6b):undefined);}return undefined;}export function readRetryAfterSeconds(_0x1eba27){const _0x128ff5=a116_0x28081b;if(!_0x1eba27||typeof _0x1eba27!==_0x128ff5(0x7d)||Array[_0x128ff5(0x87)](_0x1eba27))return undefined;const _0xa3912c=_0x1eba27[_0x128ff5(0x78)];if(typeof _0xa3912c==='number')return Number[_0x128ff5(0x7f)](_0xa3912c)&&_0xa3912c>=0x0?String(_0xa3912c):undefined;const _0x461efb=nonEmptyString(_0xa3912c);return _0x461efb&&/^\d+$/['test'](_0x461efb)?_0x461efb:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x40c6b5=a117_0x352b;(function(_0x522c50,_0x27dca2){const _0x2f0e6b=a117_0x352b,_0x18b0d4=_0x522c50();while(!![]){try{const _0x20279f=-parseInt(_0x2f0e6b(0xf7))/0x1+-parseInt(_0x2f0e6b(0x109))/0x2+-parseInt(_0x2f0e6b(0xef))/0x3+parseInt(_0x2f0e6b(0xf8))/0x4+-parseInt(_0x2f0e6b(0xe8))/0x5*(parseInt(_0x2f0e6b(0x100))/0x6)+-parseInt(_0x2f0e6b(0xea))/0x7*(parseInt(_0x2f0e6b(0xf4))/0x8)+parseInt(_0x2f0e6b(0x102))/0x9*(parseInt(_0x2f0e6b(0x104))/0xa);if(_0x20279f===_0x27dca2)break;else _0x18b0d4['push'](_0x18b0d4['shift']());}catch(_0x963384){_0x18b0d4['push'](_0x18b0d4['shift']());}}}(a117_0x206a,0xa2277));import{CliErrors}from'../errors.js';function a117_0x206a(){const _0x416bba=['current-page','4522IlivdT','active','Unknown\x20flag\x20--','asc','meowKey','2249934PqSpXy','filter','data','command','currentpage','7120ornXik','Example:\x20','\x20data\x20filter`.','87724CiFhsP','5204472QTznwH','\x20for\x20`','validation','version','name','has','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','stringify','30fMPVIc','Run\x20`','19137285apGCRj','select','10CgTNux','where','service','page','page-size','1870216vhrdyJ','pagesize','415550WrCDOd'];a117_0x206a=function(){return _0x416bba;};return a117_0x206a();}function a117_0x352b(_0x5ce6f1,_0x4122c6){_0x5ce6f1=_0x5ce6f1-0xe8;const _0x206a7a=a117_0x206a();let _0x352b86=_0x206a7a[_0x5ce6f1];return _0x352b86;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a117_0x40c6b5(0x105),a117_0x40c6b5(0x103),'order-by','orderby',a117_0x40c6b5(0xe9),a117_0x40c6b5(0xf3),a117_0x40c6b5(0x107),a117_0x40c6b5(0x108),a117_0x40c6b5(0x10a)]);export function assertKnownCommandFlags(_0x489923,_0x1e2215){const _0x31b31c=a117_0x40c6b5,_0xce16dc=new Set([_0x31b31c(0xfb)]);for(const _0x58b62b of GLOBAL_FLAGS){_0xce16dc['add'](_0x58b62b['name']),_0xce16dc['add'](toKebab(_0x58b62b[_0x31b31c(0xee)]));}for(const _0x28ada9 of _0x489923['flags']??[]){_0xce16dc['add'](_0x28ada9[_0x31b31c(0xfc)]);}for(const [_0x1751e3,_0x1e78cf]of Object['entries'](_0x1e2215)){const _0x49be24=toKebab(_0x1751e3);if(_0xce16dc[_0x31b31c(0xfd)](_0x49be24))continue;if(_0x1e78cf===![]&&_0xce16dc[_0x31b31c(0xfd)]('no-'+_0x49be24))continue;if(_0x489923[_0x31b31c(0x106)]===_0x31b31c(0xf1)&&_0x489923['command']===_0x31b31c(0xf0)&&FILTER_BODY_FIELDS[_0x31b31c(0xfd)](_0x49be24))throw CliErrors[_0x31b31c(0xfa)]('--'+_0x49be24+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0x31b31c(0xf6),_0x31b31c(0xfe)+(_0x31b31c(0xf5)+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON[_0x31b31c(0xff)]({'where':{'status':{'$eq':_0x31b31c(0xeb)}},'orderBy':[{'id':_0x31b31c(0xed)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors['validation'](_0x31b31c(0xec)+_0x49be24+_0x31b31c(0xf9)+CLI_BIN_NAME+'\x20'+_0x489923[_0x31b31c(0x106)]+'\x20'+_0x489923[_0x31b31c(0xf2)]+'`.',_0x31b31c(0x101)+CLI_BIN_NAME+'\x20'+_0x489923[_0x31b31c(0x106)]+'\x20'+_0x489923['command']+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a118_0x53d7(_0x4b6010,_0x24bbbc){_0x4b6010=_0x4b6010-0x1ac;var _0x1a045f=a118_0x1a04();var _0x53d72e=_0x1a045f[_0x4b6010];return _0x53d72e;}(function(_0x53ddf9,_0x5aaf26){var _0x452503=a118_0x53d7,_0x419412=_0x53ddf9();while(!![]){try{var _0x58a918=parseInt(_0x452503(0x1b2))/0x1+-parseInt(_0x452503(0x1af))/0x2+parseInt(_0x452503(0x1ae))/0x3+parseInt(_0x452503(0x1ad))/0x4+parseInt(_0x452503(0x1b3))/0x5+-parseInt(_0x452503(0x1ac))/0x6+-parseInt(_0x452503(0x1b1))/0x7*(-parseInt(_0x452503(0x1b0))/0x8);if(_0x58a918===_0x5aaf26)break;else _0x419412['push'](_0x419412['shift']());}catch(_0x449997){_0x419412['push'](_0x419412['shift']());}}}(a118_0x1a04,0xc867a));function a118_0x1a04(){var _0x5b8589=['8825844QKtsPf','3814044imRErY','907785HYJbsz','3283020txPfql','32wFhMnr','2578548iOAaWb','992343Cpewkn','1057185claXve'];a118_0x1a04=function(){return _0x5b8589;};return a118_0x1a04();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd4d0f6,_0x54e5ee){const _0x6a647e=a119_0x320b,_0x41715f=_0xd4d0f6();while(!![]){try{const _0x4ba69f=-parseInt(_0x6a647e(0x1ec))/0x1*(-parseInt(_0x6a647e(0x1ed))/0x2)+parseInt(_0x6a647e(0x1f4))/0x3+-parseInt(_0x6a647e(0x1e2))/0x4+-parseInt(_0x6a647e(0x1e8))/0x5*(parseInt(_0x6a647e(0x1e6))/0x6)+parseInt(_0x6a647e(0x1f7))/0x7*(-parseInt(_0x6a647e(0x1dc))/0x8)+parseInt(_0x6a647e(0x1ef))/0x9*(parseInt(_0x6a647e(0x1d2))/0xa)+-parseInt(_0x6a647e(0x1e9))/0xb*(-parseInt(_0x6a647e(0x1f6))/0xc);if(_0x4ba69f===_0x54e5ee)break;else _0x41715f['push'](_0x41715f['shift']());}catch(_0x41cf99){_0x41715f['push'](_0x41715f['shift']());}}}(a119_0x2fc0,0x6dcf0));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x565214,_0x575354,_0x17dd79){const _0xbffc11=a119_0x320b,_0x5cceee=buildConfirmationContext(_0x565214,_0x575354,_0x17dd79),_0x28879b=[_0xbffc11(0x1d1)+_0x5cceee[_0xbffc11(0x1e3)]];return _0x5cceee[_0xbffc11(0x1f1)]&&_0x28879b[_0xbffc11(0x1e4)](_0xbffc11(0x1f2)+_0x5cceee[_0xbffc11(0x1f1)]),_0x5cceee[_0xbffc11(0x1eb)]&&_0x28879b['push'](_0xbffc11(0x1e5)+_0x5cceee['affectedRecords']),_0x28879b[_0xbffc11(0x1e4)](_0xbffc11(0x1d6)),_0x28879b;}export function reconstructCommandArgv(_0x60aa85,_0x1d348f){const _0x1c4c62=a119_0x320b,_0x13c558=[CLI_BIN_NAME,_0x60aa85[_0x1c4c62(0x1de)],_0x60aa85[_0x1c4c62(0x1d7)]];for(const [_0x548923,_0x406e61]of Object[_0x1c4c62(0x1dd)](_0x1d348f)){if(_0x406e61===!![])_0x13c558[_0x1c4c62(0x1e4)]('--'+_0x548923);else{if(isSensitiveFlagName(_0x548923)&&_0x406e61!==![]&&_0x406e61!==undefined&&_0x406e61!=='')_0x13c558[_0x1c4c62(0x1e4)]('--'+_0x548923+_0x1c4c62(0x1db));else _0x406e61!==![]&&_0x406e61!==undefined&&_0x406e61!==''&&_0x13c558[_0x1c4c62(0x1e4)]('--'+_0x548923+'\x20'+JSON[_0x1c4c62(0x1f3)](_0x406e61));}}return _0x13c558[_0x1c4c62(0x1e4)]('--yes'),_0x13c558['join']('\x20');}function a119_0x320b(_0x557a63,_0x384107){_0x557a63=_0x557a63-0x1d1;const _0x2fc022=a119_0x2fc0();let _0x320b99=_0x2fc022[_0x557a63];return _0x320b99;}function a119_0x2fc0(){const _0x1a6a43=['params','kind','title','\x20[REDACTED]','730168kgOuLQ','entries','service','title=','length','schedule-id=','1828988CWDOug','commandLabel','push','\x20\x20\x20Affected:\x20','6PYfRwe','params=','1971655ENlpoC','1067UKfOmo','cron','affectedRecords','23PyhNnw','23194EGvmER','channel','216taYVGm','cron=','description','\x20\x20\x20','stringify','482523aUXUYu','kind=','154728IAVkOO','56hWKKDw','scheduled-at','⚠\x20\x20High-risk\x20operation:\x20','147180KdQWie','id=','schedule-id','scheduled-at=','\x20\x20\x20Continue?\x20[y/N]\x20','command'];a119_0x2fc0=function(){return _0x1a6a43;};return a119_0x2fc0();}function buildConfirmationContext(_0x474183,_0x53f985,_0x4355f4){const _0x2a3672=a119_0x320b,_0x2edafb=extractAffectedRecords(_0x4355f4);return{'commandLabel':_0x53f985,'description':_0x474183[_0x2a3672(0x1f1)],'affectedRecords':_0x2edafb};}function extractAffectedRecords(_0x4c7d51){const _0x269a40=a119_0x320b,_0x537782=[];if(_0x4c7d51['code'])_0x537782[_0x269a40(0x1e4)]('code='+_0x4c7d51['code']);if(_0x4c7d51['id'])_0x537782[_0x269a40(0x1e4)](_0x269a40(0x1d3)+_0x4c7d51['id']);if(_0x4c7d51[_0x269a40(0x1d4)])_0x537782['push'](_0x269a40(0x1e1)+_0x4c7d51[_0x269a40(0x1d4)]);if(_0x4c7d51['name'])_0x537782[_0x269a40(0x1e4)]('name='+_0x4c7d51['name']);if(_0x4c7d51['title'])_0x537782[_0x269a40(0x1e4)](_0x269a40(0x1df)+_0x4c7d51[_0x269a40(0x1da)]);if(_0x4c7d51[_0x269a40(0x1d9)])_0x537782[_0x269a40(0x1e4)](_0x269a40(0x1f5)+_0x4c7d51['kind']);if(_0x4c7d51['cron'])_0x537782[_0x269a40(0x1e4)](_0x269a40(0x1f0)+_0x4c7d51[_0x269a40(0x1ea)]);if(_0x4c7d51[_0x269a40(0x1f8)])_0x537782[_0x269a40(0x1e4)](_0x269a40(0x1d5)+_0x4c7d51[_0x269a40(0x1f8)]);if(_0x4c7d51[_0x269a40(0x1ee)])_0x537782['push']('channel='+_0x4c7d51[_0x269a40(0x1ee)]);if(_0x4c7d51[_0x269a40(0x1d8)])_0x537782[_0x269a40(0x1e4)](_0x269a40(0x1e7)+_0x4c7d51[_0x269a40(0x1d8)]);return _0x537782[_0x269a40(0x1e0)]>0x0?_0x537782['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a120_0x30ee(_0x69d912,_0x2fa09b){_0x69d912=_0x69d912-0x123;const _0x516483=a120_0x5164();let _0x30eeb3=_0x516483[_0x69d912];return _0x30eeb3;}(function(_0x32408d,_0x3b9eba){const _0x591a55=a120_0x30ee,_0x15a615=_0x32408d();while(!![]){try{const _0x3b2e1a=-parseInt(_0x591a55(0x12b))/0x1*(parseInt(_0x591a55(0x125))/0x2)+parseInt(_0x591a55(0x135))/0x3*(-parseInt(_0x591a55(0x12e))/0x4)+-parseInt(_0x591a55(0x131))/0x5+parseInt(_0x591a55(0x124))/0x6*(parseInt(_0x591a55(0x123))/0x7)+-parseInt(_0x591a55(0x130))/0x8+parseInt(_0x591a55(0x132))/0x9*(parseInt(_0x591a55(0x127))/0xa)+parseInt(_0x591a55(0x134))/0xb;if(_0x3b2e1a===_0x3b9eba)break;else _0x15a615['push'](_0x15a615['shift']());}catch(_0x2abb02){_0x15a615['push'](_0x15a615['shift']());}}}(a120_0x5164,0x3cda6));import{LovrabetError}from'@lovrabet/sdk';function a120_0x5164(){const _0x19109c=['description','string','363651HSQujJ','trim','stringify','1184PROKKb','headers','2161008PzridW','462835vUospb','2504943aMVDPn','validation','6945037eKgMgn','2958feHtVQ','4816zjebMO','3120ZJiiWE','2KMcjfn','message','10rKqlye','code'];a120_0x5164=function(){return _0x19109c;};return a120_0x5164();}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x50c5e7){const _0x1621db=a120_0x30ee;if(_0x50c5e7 instanceof LovrabetError){const _0x210028=userFacingLovrabetMessage(_0x50c5e7),_0x3e24a9=_0x50c5e7,_0x28a67d=createRateLimitError({'status':_0x3e24a9['status'],'errorCode':_0x3e24a9[_0x1621db(0x128)],'message':_0x210028,'retryAfter':readRetryAfter(_0x3e24a9['response']?.[_0x1621db(0x12f)])??readRetryAfterSeconds(_0x3e24a9['response'])});return _0x28a67d??CliErrors[_0x1621db(0x133)](_0x210028);}return _0x50c5e7;}function userFacingLovrabetMessage(_0x44be43){const _0x5897f3=a120_0x30ee,_0xef6b6a=_0x44be43[_0x5897f3(0x129)];if(_0xef6b6a!==undefined&&_0xef6b6a!==null){if(typeof _0xef6b6a===_0x5897f3(0x12a)&&_0xef6b6a[_0x5897f3(0x12c)]())return _0xef6b6a[_0x5897f3(0x12c)]();try{return JSON[_0x5897f3(0x12d)](_0xef6b6a);}catch{}}return _0x44be43[_0x5897f3(0x126)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x21a99a,_0x335939){const _0x25ee95=a121_0x4410,_0x4e6fbb=_0x21a99a();while(!![]){try{const _0x303324=parseInt(_0x25ee95(0x134))/0x1*(-parseInt(_0x25ee95(0x11d))/0x2)+parseInt(_0x25ee95(0x121))/0x3+-parseInt(_0x25ee95(0x125))/0x4+-parseInt(_0x25ee95(0x144))/0x5*(parseInt(_0x25ee95(0x11f))/0x6)+parseInt(_0x25ee95(0x13e))/0x7*(parseInt(_0x25ee95(0x12b))/0x8)+-parseInt(_0x25ee95(0x143))/0x9*(-parseInt(_0x25ee95(0x114))/0xa)+parseInt(_0x25ee95(0x135))/0xb;if(_0x303324===_0x335939)break;else _0x4e6fbb['push'](_0x4e6fbb['shift']());}catch(_0x3761b8){_0x4e6fbb['push'](_0x4e6fbb['shift']());}}}(a121_0x2b24,0x8d8e7));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';function a121_0x2b24(){const _0x457786=['`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','APPCODE','verbose','riskLevel','ClientAk','mergedCli','Run\x20`','27130EQAOZh','defaultPageSize','env','Set\x20accessKey\x20in\x20','items','update','command','execute','../core/sdk-client.js','639602ezVtxa','runtimeDomain','6873198QCPyyP','authRequired','708633kQotxH','error','write','map','1335984smgMvc','newConfigFileName','has','defaultVerbose','high-risk-write','formatOutput','7399976KQGokF','nativeToolAvailable','appCodeSource','.appcode\x20to\x20','Unknown\x20app:\x20','pretty','appCode','service','accessKey','1ylAaDu','5757499BnOINk','resolve','currentApp','configMissing','../core/api-client.js','requiresAuth','High-risk\x20operation\x20`','ACCESS_KEY','../commands/app/remote-source.js','7LAiyIa','requiresAppCode','name','trim','defaultApp','2304sZlaOn','5VnebWS','nonInteractive','object','local-alias','\x20or\x20pass\x20','install','cancelled','string','rawFlags','app','production','format','includes','validation','doctor','risk','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','_notice','catch','appcode'];a121_0x2b24=function(){return _0x457786;};return a121_0x2b24();}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';function a121_0x4410(_0x208649,_0x40c16f){_0x208649=_0x208649-0x111;const _0x2b243c=a121_0x2b24();let _0x4410d6=_0x2b243c[_0x208649];return _0x4410d6;}export function resolveAuthMode(_0x59d813){const _0x4d5275=a121_0x4410;return void _0x59d813,AUTH_MODE[_0x4d5275(0x111)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1aa7c4,_0x32b458){const _0x586d42=a121_0x4410,_0x2c20f7=typeof _0x32b458[_0x586d42(0x14d)]===_0x586d42(0x14b)&&_0x32b458['app'][_0x586d42(0x141)]();return{'rawFlags':_0x32b458,'appCode':_0x1aa7c4[_0x586d42(0x131)]||productEnv(_0x586d42(0x159))||(_0x2c20f7?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1aa7c4[_0x586d42(0x12d)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x32b458),'defaultFormat':_0x1aa7c4[_0x586d42(0x14f)],'defaultPageSize':_0x1aa7c4['pageSize'],'defaultVerbose':_0x1aa7c4[_0x586d42(0x15a)],'riskLevel':_0x1aa7c4[_0x586d42(0x15b)],'nativeToolAvailable':_0x1aa7c4[_0x586d42(0x12c)],'accessKey':_0x1aa7c4[_0x586d42(0x133)],'env':_0x1aa7c4[_0x586d42(0x116)],'mergedCli':{'defaultApp':_0x1aa7c4[_0x586d42(0x142)],'currentApp':_0x1aa7c4[_0x586d42(0x137)],'appCode':_0x1aa7c4['appCode']}};}export function createLovrabetRunnerAdapter(_0x35895d={}){const _0x378957=a121_0x4410,_0x470ee9={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2bb289=>PIPELINE_FLAG_NAMES[_0x378957(0x127)](_0x2bb289[_0x378957(0x140)]))[_0x378957(0x124)](({name:_0x3d2362,type:_0x43136c,description:_0x5e3342})=>({'name':_0x3d2362,'type':_0x43136c,'description':_0x5e3342})),'formatOutput':_0x35895d[_0x378957(0x12a)]??formatOutput,'getCommandLabel'(_0x5383d8){const _0x27156d=_0x378957;return CLI_BIN_NAME+'\x20'+_0x5383d8['service']+'\x20'+_0x5383d8[_0x27156d(0x11a)];},'riskPolicy':{'onViolation'(_0x39f6d7,{def:_0x54e1c6,env:_0x365b3e}){const _0x5c44ca=_0x378957;if(shouldRouteWriteToNativeTool(_0x54e1c6,_0x365b3e))return;console[_0x5c44ca(0x122)](_0x39f6d7);},'createError'(_0x4c8cd9,{def:_0x2fe3ed,env:_0x20e146}){const _0x510143=_0x378957;if(shouldRouteWriteToNativeTool(_0x2fe3ed,_0x20e146))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x2fe3ed['service']+'\x20'+_0x2fe3ed['command']);return CliErrors[_0x510143(0x14a)](_0x4c8cd9);}},async 'prepare'(_0x555134,_0x3ab963){const _0x384e34=_0x378957,_0x181635=resolveAuthMode(_0x3ab963);if(_0x555134[_0x384e34(0x13a)]!==![]){if(!_0x3ab963[_0x384e34(0x133)])throw CliErrors[_0x384e34(0x120)](_0x384e34(0x117)+PRODUCT_CONFIG[_0x384e34(0x126)]+_0x384e34(0x148)+productEnvName(_0x384e34(0x13c))+'.');const {setActiveAK:_0x1b73a2}=await import(_0x384e34(0x139));_0x1b73a2(_0x3ab963['accessKey']);}let _0x384804='';if(_0x555134[_0x384e34(0x13f)]!==![]){_0x384804=_0x3ab963[_0x384e34(0x131)]??'',_0x384804=await resolveExplicitAppName(_0x555134,_0x3ab963,_0x384804);if(!_0x384804){await assertSelectedAppNameIsRuntimeAccessible(_0x555134,_0x3ab963);throw CliErrors[_0x384e34(0x138)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x384e34(0x126)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x555134,_0x3ab963,_0x384804);}if(_0x384804){const {initSdkClient:_0x270e0f}=await import('../core/sdk-client.js');_0x270e0f({'appCode':_0x384804,'env':_0x3ab963[_0x384e34(0x116)]??_0x384e34(0x14e),'runtimeDomain':_0x3ab963[_0x384e34(0x11e)],'accessKey':_0x3ab963[_0x384e34(0x133)],'authMode':_0x181635}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x3ab963[_0x384e34(0x128)]},'numbers':{'pagesize':_0x3ab963[_0x384e34(0x115)]}},'extras':{'appCode':_0x384804,'cookie':'','apiDomain':_0x3ab963['apiDomain'],'apiDir':'','accessKey':_0x3ab963[_0x384e34(0x133)],'envName':_0x3ab963[_0x384e34(0x116)],'mergedCli':_0x3ab963[_0x384e34(0x112)]}};},'confirmHighRisk':_0x35895d['confirmHighRisk']??(async({def:_0x894a91,env:_0x1b45cc,flags:_0x2cd88b,commandLabel:_0x2fd64c})=>{const _0x2d1b7a=_0x378957;if(_0x1b45cc['isNonInteractive']){const _0x1bf059=reconstructCommandArgv(_0x894a91,_0x2cd88b);throw CliErrors[_0x2d1b7a(0x151)](_0x2d1b7a(0x13b)+_0x2fd64c+_0x2d1b7a(0x158)+('\x20\x20To\x20proceed:\x20'+_0x1bf059));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x894a91,_0x2fd64c,_0x2cd88b),'createCancelledError':_0x30aa45=>CliErrors[_0x2d1b7a(0x14a)](_0x30aa45)});}),'mapDryRunError'(_0xc83690){return mapUserFacingExecuteError(_0xc83690);},'mapExecuteError'(_0x4d0877){return mapUserFacingExecuteError(_0x4d0877);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x470ee9;}function shouldRouteWriteToNativeTool(_0x5bee25,_0x45b691){const _0x44ea45=a121_0x4410;return _0x45b691['nativeToolAvailable']===!![]&&(_0x5bee25[_0x44ea45(0x153)]===_0x44ea45(0x123)||_0x5bee25[_0x44ea45(0x153)]===_0x44ea45(0x129));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x986b6b=a121_0x4410;try{if(sdkClientInitialized){const {clearSdkClient:_0x27e4c2}=await import(_0x986b6b(0x11c));_0x27e4c2();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1294a3}=await import('../core/api-client.js');_0x1294a3();}}async function resolveExplicitAppName(_0x21e3fa,_0x2d0bc0,_0xa410c){const _0x3fb0b0=a121_0x4410;if(_0x21e3fa[_0x3fb0b0(0x13f)]===![])return _0xa410c;const _0xce8212=typeof _0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x14d)]===_0x3fb0b0(0x14b)?_0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x14d)][_0x3fb0b0(0x141)]():'';if(!_0xce8212)return _0xa410c;const _0x1fd64e=typeof _0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x157)]===_0x3fb0b0(0x14b)&&_0x2d0bc0[_0x3fb0b0(0x14c)][_0x3fb0b0(0x157)][_0x3fb0b0(0x141)]()||productEnv(_0x3fb0b0(0x159));if(_0x1fd64e||_0x2d0bc0[_0x3fb0b0(0x12d)]===_0x3fb0b0(0x147))return _0xa410c;const {getRemoteAppList:_0x13f5b9}=await import(_0x3fb0b0(0x13d)),_0x11f48f=await _0x13f5b9({'env':_0x2d0bc0[_0x3fb0b0(0x116)]??_0x3fb0b0(0x14e),'accessKey':_0x2d0bc0[_0x3fb0b0(0x133)]}),_0x50e76e=findAppByName(_0x11f48f[_0x3fb0b0(0x118)],_0xce8212);if(_0x50e76e&&!isRuntimeAccessibleApp(_0x50e76e))throw runtimeInaccessibleAppError(_0x50e76e,'\x22'+_0xce8212+'\x22');const _0x3c8415=_0x50e76e?.['appCode']?.[_0x3fb0b0(0x141)]();if(_0x3c8415)return _0x3c8415;throw CliErrors[_0x3fb0b0(0x151)](_0x3fb0b0(0x12f)+_0xce8212,_0x3fb0b0(0x113)+CLI_BIN_NAME+_0x3fb0b0(0x154)+_0xce8212+_0x3fb0b0(0x12e)+PRODUCT_CONFIG[_0x3fb0b0(0x126)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x18aaa7,_0x34ccc1){const _0x5e3def=a121_0x4410;if(_0x18aaa7[_0x5e3def(0x13f)]===![]||!_0x34ccc1[_0x5e3def(0x133)])return;const _0x51aa3b=(typeof _0x34ccc1[_0x5e3def(0x14c)][_0x5e3def(0x14d)]==='string'&&_0x34ccc1['rawFlags']['app'][_0x5e3def(0x141)]()?_0x34ccc1[_0x5e3def(0x14c)][_0x5e3def(0x14d)]:_0x34ccc1[_0x5e3def(0x112)]?.[_0x5e3def(0x137)]??_0x34ccc1[_0x5e3def(0x112)]?.[_0x5e3def(0x142)])?.[_0x5e3def(0x141)]();if(!_0x51aa3b)return;const {getRemoteAppList:_0x522f34}=await import('../commands/app/remote-source.js'),_0x543e7f=await _0x522f34({'env':_0x34ccc1[_0x5e3def(0x116)]??_0x5e3def(0x14e),'accessKey':_0x34ccc1['accessKey']}),_0x54cda6=findAppByName(_0x543e7f[_0x5e3def(0x118)],_0x51aa3b);if(_0x54cda6&&!isRuntimeAccessibleApp(_0x54cda6))throw runtimeInaccessibleAppError(_0x54cda6,'\x22'+_0x51aa3b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1c7310,_0x26a77c,_0x186f40){const _0x58bebd=a121_0x4410;if(_0x1c7310['requiresAppCode']===![]||!_0x26a77c[_0x58bebd(0x133)])return;const {getRemoteAppList:_0x27d6a3}=await import(_0x58bebd(0x13d)),_0x27a4fc=await _0x27d6a3({'env':_0x26a77c[_0x58bebd(0x116)]??'production','accessKey':_0x26a77c[_0x58bebd(0x133)]}),_0x8d8dec=findAppByCode(_0x27a4fc[_0x58bebd(0x118)],_0x186f40);if(_0x8d8dec&&!isRuntimeAccessibleApp(_0x8d8dec))throw runtimeInaccessibleAppError(_0x8d8dec,'appcode\x20\x22'+_0x186f40+'\x22');}export async function runCommand(_0x468215,_0x49e739,_0x1f53c6=terminalRunnerAdapter){const _0x18c44d=a121_0x4410;assertKnownCommandFlags(_0x468215,_0x49e739[_0x18c44d(0x14c)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x468215)?withVersionPolicy(_0x468215):_0x468215,_0x49e739,_0x1f53c6);}function shouldApplyVersionPolicy(_0x12344b){const _0x3a2960=a121_0x4410;if([_0x3a2960(0x119),'schema',_0x3a2960(0x152)][_0x3a2960(0x150)](_0x12344b['service']))return![];return!(_0x12344b[_0x3a2960(0x132)]==='cli-skill'&&_0x12344b[_0x3a2960(0x11a)]===_0x3a2960(0x149));}function withVersionPolicy(_0x259358){return{..._0x259358,async 'execute'(_0x3471b6){const _0x483c3c=a121_0x4410,_0x3405c8=await checkCliVersion();assertCliVersionSupported(_0x3405c8);const _0x5caa29=shouldResolveUpdateNotice(_0x3471b6)?resolveLatestUpdateNotice(_0x3405c8)[_0x483c3c(0x156)](()=>null):Promise[_0x483c3c(0x136)](null),_0x5eb24b=await _0x259358[_0x483c3c(0x11b)](_0x3471b6);return attachUpdateNotice(_0x5eb24b,await _0x5caa29);}};}function shouldResolveUpdateNotice(_0x3ec800){const _0x5944df=a121_0x4410;return _0x3ec800[_0x5944df(0x14f)]===_0x5944df(0x130)&&!_0x3ec800[_0x5944df(0x145)];}function attachUpdateNotice(_0x12bfff,_0x1cd55a){const _0x371669=a121_0x4410;if(!_0x1cd55a||!_0x12bfff||typeof _0x12bfff!=='object')return _0x12bfff;const _0x43dd87=_0x12bfff,_0x3e8142=typeof _0x43dd87[_0x371669(0x155)]===_0x371669(0x146)&&_0x43dd87[_0x371669(0x155)]!==null?_0x43dd87[_0x371669(0x155)]:{};return{..._0x43dd87,'_notice':{..._0x3e8142,'update':_0x1cd55a}};}
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc0ddad,_0x56dd24){const _0x170a9b=a122_0x499e,_0x2d3918=_0xc0ddad();while(!![]){try{const _0x56b4f0=-parseInt(_0x170a9b(0x184))/0x1*(-parseInt(_0x170a9b(0x190))/0x2)+-parseInt(_0x170a9b(0x181))/0x3*(parseInt(_0x170a9b(0x17f))/0x4)+parseInt(_0x170a9b(0x180))/0x5+parseInt(_0x170a9b(0x18b))/0x6+parseInt(_0x170a9b(0x191))/0x7+parseInt(_0x170a9b(0x188))/0x8*(parseInt(_0x170a9b(0x187))/0x9)+-parseInt(_0x170a9b(0x18c))/0xa*(parseInt(_0x170a9b(0x186))/0xb);if(_0x56b4f0===_0x56dd24)break;else _0x2d3918['push'](_0x2d3918['shift']());}catch(_0x548f45){_0x2d3918['push'](_0x2d3918['shift']());}}}(a122_0x31c7,0x2c1ff));import{buildSchemaPayload as a122_0xf1280b}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';function a122_0x499e(_0x3a45f8,_0x332714){_0x3a45f8=_0x3a45f8-0x17f;const _0x31c768=a122_0x31c7();let _0x499e4d=_0x31c768[_0x3a45f8];return _0x499e4d;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a122_0x31c7(){const _0x24eb8f=['446265haDzrO','3mTgTvG','services','has','306673mULMgL','service','11ArfJXe','45TNBVsI','230424SMPWwo','none','auth','1771878ZbeZva','6932310RtywNt','map','commands','filter','2SYeNZa','2018093XUrSyV','998348oNEACm'];a122_0x31c7=function(){return _0x24eb8f;};return a122_0x31c7();}export async function buildSchemaPayload(){const _0x2319d6=a122_0x499e,{serviceRegistry:_0x301caa,findDefinition:_0x2ea38c}=await import('../commands/registry.js'),_0x4a8583=new Set(_0x301caa[_0x2319d6(0x18d)](_0x156991=>_0x156991[_0x2319d6(0x185)])),_0x2fb641=listDynamicServiceEntries()[_0x2319d6(0x18f)](_0x44fb82=>!_0x4a8583[_0x2319d6(0x183)](_0x44fb82[_0x2319d6(0x185)])),_0x747f0f=a122_0xf1280b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x301caa,_0x2fb641),'buildAllFlags':buildAllFlags,'findDefinition':(_0x544998,_0x1d6b05)=>_0x2ea38c(_0x544998,_0x1d6b05)??findDynamicServiceDefinition(_0x544998,_0x1d6b05)});return normalizeSchemaPayload(_0x747f0f);}function normalizeSchemaPayload(_0x5bbc95){const _0x412872=a122_0x499e;return{..._0x5bbc95,'schemaVersion':0x2,'services':_0x5bbc95[_0x412872(0x182)][_0x412872(0x18d)](_0x154669=>({..._0x154669,'commands':_0x154669[_0x412872(0x18e)][_0x412872(0x18d)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x28f3c5){const _0x393fb7=a122_0x499e,_0x59844b=_0x28f3c5;return{..._0x28f3c5,'auth':_0x59844b[_0x393fb7(0x18a)]??(_0x28f3c5['requiresAuth']?'required':_0x393fb7(0x189))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x2ff3(_0xf59809,_0x49fd75){_0xf59809=_0xf59809-0x159;const _0x5f2dc6=a123_0x5f2d();let _0x2ff399=_0x5f2dc6[_0xf59809];return _0x2ff399;}(function(_0x5939b8,_0x428cb0){const _0x42441b=a123_0x2ff3,_0x1bcd39=_0x5939b8();while(!![]){try{const _0x1d93e6=-parseInt(_0x42441b(0x15b))/0x1*(-parseInt(_0x42441b(0x165))/0x2)+-parseInt(_0x42441b(0x162))/0x3*(parseInt(_0x42441b(0x159))/0x4)+parseInt(_0x42441b(0x163))/0x5*(parseInt(_0x42441b(0x15d))/0x6)+parseInt(_0x42441b(0x15c))/0x7*(-parseInt(_0x42441b(0x164))/0x8)+parseInt(_0x42441b(0x166))/0x9+parseInt(_0x42441b(0x15e))/0xa+parseInt(_0x42441b(0x161))/0xb;if(_0x1d93e6===_0x428cb0)break;else _0x1bcd39['push'](_0x1bcd39['shift']());}catch(_0x273e0d){_0x1bcd39['push'](_0x1bcd39['shift']());}}}(a123_0x5f2d,0xecd8b));export function insertDynamicServicesAfterServiceTree(_0xe8fd95,_0x2a4bed){const _0x501971=a123_0x2ff3;if(_0x2a4bed[_0x501971(0x160)]===0x0)return[..._0xe8fd95];const _0x4e9f15=_0xe8fd95['findIndex'](_0x41f40c=>_0x41f40c[_0x501971(0x15a)]==='service');if(_0x4e9f15<0x0)return[..._0xe8fd95,..._0x2a4bed];return[..._0xe8fd95[_0x501971(0x15f)](0x0,_0x4e9f15+0x1),..._0x2a4bed,..._0xe8fd95[_0x501971(0x15f)](_0x4e9f15+0x1)];}function a123_0x5f2d(){const _0x18c41e=['4441599IjSIUl','2508yfmiZh','service','478801zyuAqk','2499231xclUaR','1596tsdiWk','16329470vqVnos','slice','length','9537143GSvPQy','3750ZXiscW','1255elGUyy','40fwJqoV','2ScSvlk'];a123_0x5f2d=function(){return _0x18c41e;};return a123_0x5f2d();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a124_0x133f(_0xad4a92,_0x599caa){_0xad4a92=_0xad4a92-0x1bd;var _0x23e3ca=a124_0x23e3();var _0x133f18=_0x23e3ca[_0xad4a92];return _0x133f18;}(function(_0x2c9610,_0x58418d){var _0x421caf=a124_0x133f,_0x5af69f=_0x2c9610();while(!![]){try{var _0x5a3031=parseInt(_0x421caf(0x1c0))/0x1*(-parseInt(_0x421caf(0x1c3))/0x2)+parseInt(_0x421caf(0x1bd))/0x3+-parseInt(_0x421caf(0x1c6))/0x4+-parseInt(_0x421caf(0x1c2))/0x5*(parseInt(_0x421caf(0x1c1))/0x6)+-parseInt(_0x421caf(0x1be))/0x7+parseInt(_0x421caf(0x1bf))/0x8+parseInt(_0x421caf(0x1c4))/0x9*(-parseInt(_0x421caf(0x1c5))/0xa);if(_0x5a3031===_0x58418d)break;else _0x5af69f['push'](_0x5af69f['shift']());}catch(_0x23e11f){_0x5af69f['push'](_0x5af69f['shift']());}}}(a124_0x23e3,0x90feb));function a124_0x23e3(){var _0x487f32=['110HYcxlQ','914340xzBVnC','225lzbumx','6800pVZqyh','259232tAHiZD','2593650DzMxpw','491372kSPcgo','7873336KkglCx','2ZooFEz','51402Olookp'];a124_0x23e3=function(){return _0x487f32;};return a124_0x23e3();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.3
|
|
2
|
-
export declare const GIT_TAG = "v2.3.3
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.3";
|
|
3
|
+
export declare const GIT_COMMIT = "a61e1fd";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-14T03:42:18.675Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x3dcdd1=a125_0x428a;(function(_0x7d559e,_0x45ea9d){const _0x5d3862=a125_0x428a,_0x1d6bf6=_0x7d559e();while(!![]){try{const _0x5dc0e8=-parseInt(_0x5d3862(0xb8))/0x1+parseInt(_0x5d3862(0xb4))/0x2+parseInt(_0x5d3862(0xaf))/0x3*(parseInt(_0x5d3862(0xb1))/0x4)+parseInt(_0x5d3862(0xb6))/0x5*(-parseInt(_0x5d3862(0xb0))/0x6)+-parseInt(_0x5d3862(0xb3))/0x7+parseInt(_0x5d3862(0xad))/0x8*(-parseInt(_0x5d3862(0xac))/0x9)+parseInt(_0x5d3862(0xb2))/0xa*(parseInt(_0x5d3862(0xb5))/0xb);if(_0x5dc0e8===_0x45ea9d)break;else _0x1d6bf6['push'](_0x1d6bf6['shift']());}catch(_0x385015){_0x1d6bf6['push'](_0x1d6bf6['shift']());}}}(a125_0xe21b,0xe0824));function a125_0x428a(_0x5a17ca,_0x5263cf){_0x5a17ca=_0x5a17ca-0xac;const _0xe21b18=a125_0xe21b();let _0x428a36=_0xe21b18[_0x5a17ca];return _0x428a36;}function a125_0xe21b(){const _0xe785af=['40shhzxz','a61e1fd','914073lptAXV','2361324pHBqBV','12tvUlnY','244750jcziNX','5828928pMhJSY','3041834gqQFNx','638sOipWN','5HkTRuE','2.3.3','582704qMeBQN','2026782MHPobN'];a125_0xe21b=function(){return _0xe785af;};return a125_0xe21b();}export const VERSION=a125_0x3dcdd1(0xb7);export const GIT_TAG='v2.3.3';export const GIT_COMMIT=a125_0x3dcdd1(0xae);export const BUILD_TIME='2026-09-14T03:42:18.675Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x1a0fb1=a126_0x7506;(function(_0x61192e,_0x1054e0){const _0x468e75=a126_0x7506,_0x28dbff=_0x61192e();while(!![]){try{const _0x34feb6=parseInt(_0x468e75(0x95))/0x1+parseInt(_0x468e75(0x99))/0x2+-parseInt(_0x468e75(0xa4))/0x3+-parseInt(_0x468e75(0x9b))/0x4*(parseInt(_0x468e75(0x94))/0x5)+-parseInt(_0x468e75(0x92))/0x6+-parseInt(_0x468e75(0x91))/0x7*(parseInt(_0x468e75(0x93))/0x8)+parseInt(_0x468e75(0x9a))/0x9*(parseInt(_0x468e75(0x96))/0xa);if(_0x34feb6===_0x1054e0)break;else _0x28dbff['push'](_0x28dbff['shift']());}catch(_0x24d4e1){_0x28dbff['push'](_0x28dbff['shift']());}}}(a126_0x1c55,0x58017));export const ROUTING_CATALOG_DIGEST=a126_0x1a0fb1(0xa1);export const DEFAULT_REGION='cn';function a126_0x1c55(){const _0x36a515=['https://user.lovrabet.id','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','Indonesia','https://api.lovrabet.ai','1659318wrWoLh','global','https://user-daily.lovrabet.com','china','https://user.lovrabet.ai','https://runtime.lovrabet.ai','https://skills.lovrabet.com','Global','https://skills-daily.lovrabet.com','238PfznjF','2176980YKPvlX','104136ygTGQr','1436165JkXmGs','619664hktodj','70bxAsBl','https://api.lovrabet.id','indonesia','1304666imTAQY','1313298PMrYSl','8qabvkA','https://skills.lovrabet.ai','https://skills.lovrabet.id','Mainland\x20China','https://runtime.lovrabet.id'];a126_0x1c55=function(){return _0x36a515;};return a126_0x1c55();}function a126_0x7506(_0x52b8b1,_0x17e48f){_0x52b8b1=_0x52b8b1-0x90;const _0x1c5515=a126_0x1c55();let _0x7506ed=_0x1c5515[_0x52b8b1];return _0x7506ed;}export const REGION_VALUES=['cn','id',a126_0x1a0fb1(0xa5)];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a126_0x1a0fb1(0x9e),'aliases':[a126_0x1a0fb1(0xa7)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a126_0x1a0fb1(0xaa)},'daily':{'user':a126_0x1a0fb1(0xa6),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a126_0x1a0fb1(0x90)}}},'id':{'enabled':!![],'label':a126_0x1a0fb1(0xa2),'aliases':[a126_0x1a0fb1(0x98)],'serviceDomains':{'production':{'user':a126_0x1a0fb1(0xa0),'api':a126_0x1a0fb1(0x97),'runtime':a126_0x1a0fb1(0x9f),'skill':a126_0x1a0fb1(0x9d)}}},'global':{'enabled':![],'label':a126_0x1a0fb1(0xab),'aliases':[],'serviceDomains':{'production':{'user':a126_0x1a0fb1(0xa8),'api':a126_0x1a0fb1(0xa3),'runtime':a126_0x1a0fb1(0xa9),'skill':a126_0x1a0fb1(0x9c)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x37a7c2=a127_0x1da7;(function(_0x22fe6a,_0x4a26cb){const _0xd54981=a127_0x1da7,_0x57e569=_0x22fe6a();while(!![]){try{const _0x5b40e4=-parseInt(_0xd54981(0x1f4))/0x1+-parseInt(_0xd54981(0x1f3))/0x2*(parseInt(_0xd54981(0x201))/0x3)+-parseInt(_0xd54981(0x1f2))/0x4+-parseInt(_0xd54981(0x1fd))/0x5*(parseInt(_0xd54981(0x1fb))/0x6)+parseInt(_0xd54981(0x1f7))/0x7+parseInt(_0xd54981(0x1f6))/0x8*(parseInt(_0xd54981(0x1f1))/0x9)+-parseInt(_0xd54981(0x1f8))/0xa*(-parseInt(_0xd54981(0x1f9))/0xb);if(_0x5b40e4===_0x4a26cb)break;else _0x57e569['push'](_0x57e569['shift']());}catch(_0xdb3808){_0x57e569['push'](_0x57e569['shift']());}}}(a127_0x269f,0xc0251));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c';export const ENTERPRISE_ROUTING_PROTOCOL=a127_0x37a7c2(0x1f5);function a127_0x1da7(_0x24dd48,_0xb84ac7){_0x24dd48=_0x24dd48-0x1f1;const _0x269fdd=a127_0x269f();let _0x1da730=_0x269fdd[_0x24dd48];return _0x1da730;}export const ENTERPRISE_ROUTING_KIND=a127_0x37a7c2(0x1fc);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x37a7c2(0x1ff),a127_0x37a7c2(0x200),a127_0x37a7c2(0x1fa),a127_0x37a7c2(0x1fe)];function a127_0x269f(){const _0x32694d=['927230rRnEOE','121TiQbbo','runtimeDomain','4743222tMllFH','enterprise','5kNbTIR','skillDomain','userDomain','apiDomain','2440521iKYMmz','2722122XqnMQx','2672748QBtMKK','2jHoACT','258890qqTLYO','lovrabet-routing/v1','24rUUBjt','9735733ufwUOw'];a127_0x269f=function(){return _0x32694d;};return a127_0x269f();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x37a7c2(0x1ff),a127_0x37a7c2(0x200),a127_0x37a7c2(0x1fa),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d3ea0,_0x237e11){const _0x13668b=a128_0x2f59,_0xe52f26=_0x3d3ea0();while(!![]){try{const _0x1a5ebb=-parseInt(_0x13668b(0xa8))/0x1*(parseInt(_0x13668b(0x9b))/0x2)+-parseInt(_0x13668b(0xa3))/0x3*(parseInt(_0x13668b(0xa2))/0x4)+parseInt(_0x13668b(0x9c))/0x5*(parseInt(_0x13668b(0xa5))/0x6)+parseInt(_0x13668b(0x9a))/0x7+-parseInt(_0x13668b(0x9e))/0x8+parseInt(_0x13668b(0x9d))/0x9*(-parseInt(_0x13668b(0xa7))/0xa)+parseInt(_0x13668b(0xa9))/0xb;if(_0x1a5ebb===_0x237e11)break;else _0xe52f26['push'](_0xe52f26['shift']());}catch(_0x3641a4){_0xe52f26['push'](_0xe52f26['shift']());}}}(a128_0x5415,0x4042b));function a128_0x5415(){const _0x318ec7=['green','\x20--help','212284HEonvz','3FNSvld','\x20to\x20view\x20available\x20commands.','175722gReNUa','\x20\x20Use\x20','410MpLtAQ','1vcdxET','4935205bnxbnx','778624aJflKS','674538WmuVeV','80ONZTQr','441YlTIFD','2983352UnYUOO','column'];a128_0x5415=function(){return _0x318ec7;};return a128_0x5415();}import{jsx as a128_0x1bb543,jsxs as a128_0x131ec8}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a128_0x2f59(_0x460948,_0x22f18){_0x460948=_0x460948-0x9a;const _0x54150c=a128_0x5415();let _0x2f596a=_0x54150c[_0x460948];return _0x2f596a;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xe5a33c=a128_0x2f59,{exit:_0x38fe72}=useApp();return useEffect(()=>{_0x38fe72();},[_0x38fe72]),a128_0x131ec8(Box,{'flexDirection':_0xe5a33c(0x9f),'marginTop':0x1,'marginBottom':0x1,'children':[a128_0x1bb543(Box,{'children':a128_0x1bb543(Text,{'bold':!![],'color':_0xe5a33c(0xa0),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a128_0x131ec8(Box,{'marginTop':0x1,'children':[a128_0x1bb543(Text,{'dimColor':!![],'children':_0xe5a33c(0xa6)}),a128_0x1bb543(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0xe5a33c(0xa1)}),a128_0x1bb543(Text,{'dimColor':!![],'children':_0xe5a33c(0xa4)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x3807(){const _0x351486=['1993368iUsLmi','5214PIYift','33UAZPdC','log','35spxYnX','430472dFNLpu','92GNqnuJ','skillVersion','\x20at\x20','installed','45VZzOzf','changed','installedPath','792459MAmYIJ','code','already\x20current','Repair\x20with:\x20','694449EbBAXq','4145620DZAyxi','[BUILTIN_SKILL_INSTALL_','54505XSyqoM'];a129_0x3807=function(){return _0x351486;};return a129_0x3807();}function a129_0x424f(_0x9dd944,_0xd05861){_0x9dd944=_0x9dd944-0x18c;const _0x38075c=a129_0x3807();let _0x424f20=_0x38075c[_0x9dd944];return _0x424f20;}(function(_0x107ef2,_0x1e916a){const _0x23b5bc=a129_0x424f,_0x1377a7=_0x107ef2();while(!![]){try{const _0x2037db=parseInt(_0x23b5bc(0x18c))/0x1*(parseInt(_0x23b5bc(0x198))/0x2)+-parseInt(_0x23b5bc(0x18f))/0x3+parseInt(_0x23b5bc(0x19d))/0x4*(-parseInt(_0x23b5bc(0x196))/0x5)+-parseInt(_0x23b5bc(0x197))/0x6+-parseInt(_0x23b5bc(0x19b))/0x7*(parseInt(_0x23b5bc(0x19c))/0x8)+-parseInt(_0x23b5bc(0x193))/0x9+-parseInt(_0x23b5bc(0x194))/0xa*(-parseInt(_0x23b5bc(0x199))/0xb);if(_0x2037db===_0x1e916a)break;else _0x1377a7['push'](_0x1377a7['shift']());}catch(_0x272389){_0x1377a7['push'](_0x1377a7['shift']());}}}(a129_0x3807,0x28f0b));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x50eaf6={}){const _0x44b00a=a129_0x424f,_0x54b756=installBuiltinSkill(_0x50eaf6);if(_0x54b756['ok']){const _0x3d6e3d=_0x54b756[_0x44b00a(0x18d)]?_0x44b00a(0x1a0):_0x44b00a(0x191),_0x30ad1e=_0x54b756[_0x44b00a(0x18e)]?_0x44b00a(0x19f)+_0x54b756['installedPath']:'\x20via\x20skills@latest';return console[_0x44b00a(0x19a)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x54b756[_0x44b00a(0x19e)]+'\x20'+_0x3d6e3d+_0x30ad1e),_0x54b756;}const _0x59b533=_0x44b00a(0x195)+(_0x54b756[_0x44b00a(0x190)]??'FAILED')+']\x20'+(_0x54b756['error']??'Installation\x20failed')+'.\x20'+(_0x44b00a(0x192)+_0x54b756['repairCommand']);if(_0x54b756[_0x44b00a(0x190)]==='SOURCE_INVALID')throw new Error(_0x59b533);return console['warn'](_0x59b533),_0x54b756;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdb4e7f,_0x4dca2b){const _0x300684=a130_0x428b,_0x4ca399=_0xdb4e7f();while(!![]){try{const _0x158c4a=-parseInt(_0x300684(0xb7))/0x1*(parseInt(_0x300684(0xb1))/0x2)+parseInt(_0x300684(0xb4))/0x3+-parseInt(_0x300684(0xba))/0x4*(-parseInt(_0x300684(0xbb))/0x5)+-parseInt(_0x300684(0xb0))/0x6*(parseInt(_0x300684(0xb6))/0x7)+parseInt(_0x300684(0xb3))/0x8+parseInt(_0x300684(0xb8))/0x9+-parseInt(_0x300684(0xb2))/0xa;if(_0x158c4a===_0x4dca2b)break;else _0x4ca399['push'](_0x4ca399['shift']());}catch(_0x2e0482){_0x4ca399['push'](_0x4ca399['shift']());}}}(a130_0x2ecb,0xbf109));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x30249b,_0x1a86d9,_0x4e5e25){const _0x4c74ef=a130_0x428b,_0x16ea07=normalizeText(_0x30249b['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x3b4da5=normalizeText(_0x30249b['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x1a86d9,'risk':requireWriteRisk(_0x30249b),'description':_0x16ea07||_0x3b4da5||_0x4c74ef(0xaf),..._0x4e5e25?{'signal':_0x4e5e25}:{}};}function requireWriteRisk(_0x457a72){const _0x3ce562=a130_0x428b;if(_0x457a72[_0x3ce562(0xae)]==='write'||_0x457a72[_0x3ce562(0xae)]==='high-risk-write')return _0x457a72[_0x3ce562(0xae)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function a130_0x2ecb(){const _0x1b50ee=['612132KHryNt','170650LWXuee','14475530BgaIQQ','10909400LRYRJJ','3622218UsHDMy','trim','49dqWvhm','2ssrquQ','2805651LGcdiA','replace','464276HqOBLd','10AUgJmi','slice','risk','Run\x20this\x20write\x20operation'];a130_0x2ecb=function(){return _0x1b50ee;};return a130_0x2ecb();}function a130_0x428b(_0x407a08,_0x4d4ff8){_0x407a08=_0x407a08-0xad;const _0x2ecb35=a130_0x2ecb();let _0x428b49=_0x2ecb35[_0x407a08];return _0x428b49;}function normalizeText(_0x43fdd6,_0x5b4193){const _0x389b11=a130_0x428b;if(typeof _0x43fdd6!=='string')return'';return _0x43fdd6[_0x389b11(0xb9)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x389b11(0xb9)](/\s+/g,'\x20')[_0x389b11(0xb5)]()[_0x389b11(0xad)](0x0,_0x5b4193);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7cbd61,_0x57a89a){const _0x20a738=a131_0x4c60,_0x2e79f9=_0x7cbd61();while(!![]){try{const _0x5326bd=-parseInt(_0x20a738(0xd8))/0x1+-parseInt(_0x20a738(0xd9))/0x2*(-parseInt(_0x20a738(0xe4))/0x3)+-parseInt(_0x20a738(0xe1))/0x4+-parseInt(_0x20a738(0xd7))/0x5*(parseInt(_0x20a738(0xd4))/0x6)+-parseInt(_0x20a738(0xdd))/0x7*(-parseInt(_0x20a738(0xe5))/0x8)+parseInt(_0x20a738(0xdc))/0x9*(parseInt(_0x20a738(0xe0))/0xa)+parseInt(_0x20a738(0xd3))/0xb;if(_0x5326bd===_0x57a89a)break;else _0x2e79f9['push'](_0x2e79f9['shift']());}catch(_0xd4ccd0){_0x2e79f9['push'](_0x2e79f9['shift']());}}}(a131_0x17b3,0x77bbb));function a131_0x17b3(){const _0x2f4a2e=['trim','2349842jDvBHv','6oeuUDJ','join','filter','1184450DBIIew','284388RBJhAu','439682SCOkrN','split','command','261tuUZRH','2331098wdOdRm','write','risk','167290VzPagS','1839016xXrgcY','high-risk-write','lovrabet.write.completed','6tkeAea','8kmvggd','writeEventSubject'];a131_0x17b3=function(){return _0x2f4a2e;};return a131_0x17b3();}export function canonicalLovrabetOperation(_0x4e5d0c){const _0x4985cd=a131_0x4c60;return[_0x4e5d0c['service'],..._0x4e5d0c[_0x4985cd(0xdb)][_0x4985cd(0xd2)]()[_0x4985cd(0xda)](/\s+/)][_0x4985cd(0xd6)](Boolean)[_0x4985cd(0xd5)]('.');}function a131_0x4c60(_0x5180eb,_0x37a445){_0x5180eb=_0x5180eb-0xd1;const _0x17b356=a131_0x17b3();let _0x4c60c8=_0x17b356[_0x5180eb];return _0x4c60c8;}export function createLovrabetWriteMetadata(_0x94c7dd,_0x1be0c5,_0x1146a6,_0x128145){const _0x37e4d7=a131_0x4c60;if(_0x128145||_0x1146a6['ok']!==!![]||_0x94c7dd[_0x37e4d7(0xdf)]!==_0x37e4d7(0xde)&&_0x94c7dd[_0x37e4d7(0xdf)]!==_0x37e4d7(0xe2))return undefined;const _0x135686=_0x94c7dd[_0x37e4d7(0xd1)]?.(_0x1146a6),_0x503696={'type':_0x37e4d7(0xe3),'operation':_0x1be0c5,'risk':_0x94c7dd[_0x37e4d7(0xdf)],..._0x135686?{'subject':_0x135686}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x503696}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x951aea,_0x16ce41){const _0x54ffe1=a132_0x1129,_0x479421=_0x951aea();while(!![]){try{const _0x21987d=parseInt(_0x54ffe1(0x1aa))/0x1*(parseInt(_0x54ffe1(0x1a1))/0x2)+parseInt(_0x54ffe1(0x1ae))/0x3*(parseInt(_0x54ffe1(0x1b4))/0x4)+-parseInt(_0x54ffe1(0x1b0))/0x5+parseInt(_0x54ffe1(0x1b7))/0x6*(-parseInt(_0x54ffe1(0x1a5))/0x7)+-parseInt(_0x54ffe1(0x1a3))/0x8*(-parseInt(_0x54ffe1(0x1ac))/0x9)+-parseInt(_0x54ffe1(0x1a2))/0xa+parseInt(_0x54ffe1(0x19d))/0xb;if(_0x21987d===_0x16ce41)break;else _0x479421['push'](_0x479421['shift']());}catch(_0x57f354){_0x479421['push'](_0x479421['shift']());}}}(a132_0x2c04,0x8c9f0));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';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:_0x35c4a3,command:_0x395530,risk:_0x1e6d81,dryRun:_0x33238d}){const _0x3071bf=a132_0x1129;return JSON[_0x3071bf(0x1a7)]({'ok':_0x35c4a3['ok'],'command':_0x395530,'risk':_0x1e6d81,..._0x33238d?{'dryRun':!![]}:{},..._0x35c4a3['data']!==undefined?{'data':_0x35c4a3[_0x3071bf(0x1b6)]}:{},..._0x35c4a3[_0x3071bf(0x1b5)]?{'message':_0x35c4a3['message']}:{}});}};export async function invokeLovrabet(_0x19f57e,_0x54b722){const _0xf525b5=a132_0x1129;throwIfAborted(_0x54b722[_0xf525b5(0x1b2)]);const _0x162241=await resolveLovrabetInvocation(_0x19f57e),_0x29dd79=canonicalLovrabetOperation(_0x162241['definition']);return await confirmWriteBeforeQueue(_0x162241[_0xf525b5(0x199)],_0x162241[_0xf525b5(0x19c)],_0x29dd79,_0x54b722),runSerialized(async()=>{const _0xbd1664=_0xf525b5;throwIfAborted(_0x54b722[_0xbd1664(0x1b2)]);const _0x1910e9={},_0x46f5ce=buildConfigFromFlags(_0x162241[_0xbd1664(0x19c)]);await initGlobalEnvironment(_0x46f5ce);const _0x2dc4f6=createPipelineEnv(_0x46f5ce,{..._0x162241[_0xbd1664(0x19c)],'yes':_0x162241[_0xbd1664(0x199)][_0xbd1664(0x1a6)]==='high-risk-write'?!![]:_0x162241['rawFlags'][_0xbd1664(0x1a8)],'nonInteractive':!![]});_0x2dc4f6[_0xbd1664(0x19e)]=_0x162241[_0xbd1664(0x19e)],_0x2dc4f6[_0xbd1664(0x197)]=!![],_0x2dc4f6['riskLevel']=_0xbd1664(0x1ad);const _0x25f52a=withAbortSignal(_0x162241[_0xbd1664(0x199)],_0x54b722[_0xbd1664(0x1b2)]),_0x54feed=createLovrabetRunnerAdapter({'formatOutput'(_0x3c17be,_0x42c5f4){const _0x2fef54=_0xbd1664;_0x1910e9['result']=_0x3c17be,_0x1910e9[_0x2fef54(0x19b)]=_0x42c5f4[_0x2fef54(0x19b)],_0x1910e9[_0x2fef54(0x1a6)]=_0x42c5f4[_0x2fef54(0x1a6)],_0x1910e9[_0x2fef54(0x1a9)]=_0x42c5f4['format'],_0x1910e9[_0x2fef54(0x1b3)]=_0x42c5f4[_0x2fef54(0x1b3)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x25f52a,_0x2dc4f6,_0x54feed);if(!_0x1910e9[_0xbd1664(0x1a0)]||!_0x1910e9['command']||!_0x1910e9[_0xbd1664(0x1a6)]||!_0x1910e9['format'])throw new Error(_0xbd1664(0x19a));const _0x238798=_0x54b722[_0xbd1664(0x1ab)]??defaultPresentation,_0x29a9a1=_0x1910e9[_0xbd1664(0x1b3)]===!![],_0x1ab346={'result':_0x1910e9[_0xbd1664(0x1a0)],'command':_0x1910e9[_0xbd1664(0x19b)],'operation':_0x29dd79,'risk':_0x1910e9['risk'],'format':_0x1910e9['format'],'dryRun':_0x29a9a1},_0x139b3a=createLovrabetWriteMetadata(_0x162241[_0xbd1664(0x199)],_0x29dd79,_0x1910e9[_0xbd1664(0x1a0)],_0x29a9a1);let _0x4f93d0;try{_0x4f93d0=await _0x238798['present'](_0x1ab346);}catch(_0x5cd87c){if(!_0x139b3a||_0x238798===defaultPresentation)throw _0x5cd87c;_0x4f93d0=await defaultPresentation[_0xbd1664(0x198)](_0x1ab346);}return{'operation':_0x29dd79,'risk':_0x1910e9['risk'],'mode':_0x29a9a1?'dry-run':_0xbd1664(0x1af),'result':_0x1910e9[_0xbd1664(0x1a0)],'output':_0x4f93d0,..._0x139b3a?{'metadata':_0x139b3a}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a132_0x1129(_0xcf222d,_0x3513c9){_0xcf222d=_0xcf222d-0x197;const _0x2c04f3=a132_0x2c04();let _0x11291a=_0x2c04f3[_0xcf222d];return _0x11291a;}async function confirmWriteBeforeQueue(_0x28fba9,_0x5e6146,_0x3a684d,_0x18cb6d){const _0xbaa3bd=a132_0x1129;if(_0x5e6146['dryRun']===!![]||_0x28fba9[_0xbaa3bd(0x1a6)]!=='write'&&_0x28fba9[_0xbaa3bd(0x1a6)]!=='high-risk-write')return;await _0x18cb6d['confirmation']['confirm'](buildLovrabetConfirmationRequest(_0x28fba9,_0x3a684d,_0x18cb6d[_0xbaa3bd(0x1b2)]));}function withAbortSignal(_0x4371af,_0x34ce1e){return{..._0x4371af,async 'execute'(_0x263ecb){const _0x8dfa04=a132_0x1129;return throwIfAborted(_0x34ce1e),_0x4371af[_0x8dfa04(0x1af)]({..._0x263ecb,'signal':_0x34ce1e});}};}function throwIfAborted(_0x61df5){const _0x410347=a132_0x1129;if(_0x61df5?.['aborted'])throw _0x61df5[_0x410347(0x1b1)]instanceof Error?_0x61df5[_0x410347(0x1b1)]:new DOMException(_0x410347(0x1a4),_0x410347(0x19f));}function a132_0x2c04(){const _0x1a1e94=['isNonInteractive','present','definition','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','command','rawFlags','5154523lVZlPD','args','AbortError','result','3202BrniEr','2453270etREkz','824KFwbXd','Lovrabet\x20invocation\x20aborted.','3514462YqORcx','risk','stringify','yes','format','42fouYQq','presentation','41949aMWZRJ','high-risk-write','868089dYQvvW','execute','2803150fVImYF','reason','signal','dryRun','12OTplFj','message','data','6uUmsQI'];a132_0x2c04=function(){return _0x1a1e94;};return a132_0x2c04();}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a133_0x41bf(){const _0x1d4ab8=['591524QHVESB','3AdBzpP','2141FvMvby','12223002DzMNOC','680NcvjeE','catch','4528KEWviU','11160ogihrZ','resolve','6629slbHow','1696320JisfYi','1905258JnJaUs','4540aPsdHo','5eHiCgK'];a133_0x41bf=function(){return _0x1d4ab8;};return a133_0x41bf();}function a133_0xc9a3(_0x3a29f5,_0x1d1eea){_0x3a29f5=_0x3a29f5-0x189;const _0x41bf11=a133_0x41bf();let _0xc9a356=_0x41bf11[_0x3a29f5];return _0xc9a356;}const a133_0x4de4ce=a133_0xc9a3;(function(_0x2fc59b,_0x3fe3c7){const _0x1378f8=a133_0xc9a3,_0xf29ac8=_0x2fc59b();while(!![]){try{const _0x27a01c=parseInt(_0x1378f8(0x191))/0x1*(parseInt(_0x1378f8(0x193))/0x2)+-parseInt(_0x1378f8(0x190))/0x3*(parseInt(_0x1378f8(0x18f))/0x4)+parseInt(_0x1378f8(0x18e))/0x5*(parseInt(_0x1378f8(0x18c))/0x6)+-parseInt(_0x1378f8(0x18a))/0x7*(-parseInt(_0x1378f8(0x195))/0x8)+-parseInt(_0x1378f8(0x196))/0x9*(-parseInt(_0x1378f8(0x18d))/0xa)+-parseInt(_0x1378f8(0x192))/0xb+-parseInt(_0x1378f8(0x18b))/0xc;if(_0x27a01c===_0x3fe3c7)break;else _0xf29ac8['push'](_0xf29ac8['shift']());}catch(_0x486b99){_0xf29ac8['push'](_0xf29ac8['shift']());}}}(a133_0x41bf,0xb5a56));let tail=Promise[a133_0x4de4ce(0x189)]();export async function runSerialized(_0x597178){const _0x9768d1=a133_0x4de4ce,_0x15ebe2=tail;let _0x18b40f;tail=new Promise(_0x5bae4c=>{_0x18b40f=_0x5bae4c;}),await _0x15ebe2[_0x9768d1(0x194)](()=>undefined);try{return await _0x597178();}finally{_0x18b40f();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55d7eb,_0x5e2963){const _0xbc7df6=a134_0x3c34,_0x472844=_0x55d7eb();while(!![]){try{const _0x3d9218=-parseInt(_0xbc7df6(0x15a))/0x1*(parseInt(_0xbc7df6(0x152))/0x2)+-parseInt(_0xbc7df6(0x153))/0x3+parseInt(_0xbc7df6(0x159))/0x4+-parseInt(_0xbc7df6(0x163))/0x5*(-parseInt(_0xbc7df6(0x167))/0x6)+-parseInt(_0xbc7df6(0x15f))/0x7*(parseInt(_0xbc7df6(0x155))/0x8)+-parseInt(_0xbc7df6(0x169))/0x9+parseInt(_0xbc7df6(0x15c))/0xa;if(_0x3d9218===_0x5e2963)break;else _0x472844['push'](_0x472844['shift']());}catch(_0x1d1e73){_0x472844['push'](_0x472844['shift']());}}}(a134_0x4e43,0xba16e));import a134_0x18ef24 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a134_0x4e43(){const _0x2d3a55=['defaultCommand','7yMTAXE','validation','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','515pJPHeB','../commands/registry.js','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','hint','63006DKxEqN','assign','11480922CFQRVL','704762DIxUgw','2941437xoCAbG','flags','1512872vlExes','slice','../framework/preparse.js','args','616564HodaBi','3JuGSAN','unknownCommand','30288670ruBpRw','message'];a134_0x4e43=function(){return _0x2d3a55;};return a134_0x4e43();}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a134_0x3c34(_0x419506,_0x3f1318){_0x419506=_0x419506-0x152;const _0x4e436e=a134_0x4e43();let _0x3c34b4=_0x4e436e[_0x419506];return _0x3c34b4;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x51990b){const _0x126ad4=a134_0x3c34,_0x25a9ff=a134_0x18ef24('',{'importMeta':import.meta,'argv':_0x51990b,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x52d8d0=[..._0x25a9ff['input']],_0x53a70b=_0x25a9ff[_0x126ad4(0x154)];await correctFlags(_0x53a70b);const _0xbd38fc=_0x52d8d0[0x0];if(!_0xbd38fc)throw CliErrors[_0x126ad4(0x160)](_0x126ad4(0x161));const _0x3071ec=resolveRemovedCommand(_0xbd38fc,_0x52d8d0[0x1]);if(_0x3071ec)throw CliErrors[_0x126ad4(0x160)](_0x3071ec[_0x126ad4(0x15d)],_0x3071ec[_0x126ad4(0x166)]);if(!isKnownService(_0xbd38fc)){const _0x257aea=resolveDynamicServiceCommand(_0x52d8d0,_0x53a70b);if(!_0x257aea)throw CliErrors[_0x126ad4(0x15b)](_0x52d8d0[_0x126ad4(0x162)]('\x20'));return Object['assign'](_0x53a70b,_0x257aea['flags']),{'definition':_0x257aea['definition'],'rawFlags':_0x53a70b,'args':_0x257aea[_0x126ad4(0x158)]};}const _0x234d48=getServiceEntry(_0xbd38fc),_0x5a21a5=_0x52d8d0[0x1]||_0x234d48[_0x126ad4(0x15e)];if(!_0x5a21a5)throw CliErrors[_0x126ad4(0x160)](_0x126ad4(0x165)+_0xbd38fc+'\x22.');const _0x1f1ba4=findDefinition(_0xbd38fc,_0x5a21a5);if(!_0x1f1ba4)throw CliErrors['unknownCommand'](_0xbd38fc+'\x20'+_0x5a21a5);return{'definition':_0x1f1ba4,'rawFlags':_0x53a70b,'args':_0x52d8d0[_0x126ad4(0x156)](0x2)};}async function correctFlags(_0x4ec616){const _0x4d079b=a134_0x3c34;try{const {correctFlags:_0x47f9d6}=await import(_0x4d079b(0x157)),{getAllDefinitions:_0x524191}=await import(_0x4d079b(0x164)),_0x26be5e=_0x524191()['flatMap'](_0x1871ad=>_0x1871ad[_0x4d079b(0x154)]??[]),_0x350281=_0x47f9d6(_0x4ec616,_0x26be5e);Object[_0x4d079b(0x168)](_0x4ec616,_0x350281[_0x4d079b(0x154)]);}catch{}}
|