@lovrabet/lovrabet-cli 2.3.4-beta.2 → 2.3.4
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/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e2f92,_0x259a0e){const _0x188a03=a114_0x4700,_0x13d7cd=_0x1e2f92();while(!![]){try{const _0x2c1bae=-parseInt(_0x188a03(0x6c))/0x1*(-parseInt(_0x188a03(0x71))/0x2)+-parseInt(_0x188a03(0x79))/0x3*(-parseInt(_0x188a03(0x75))/0x4)+-parseInt(_0x188a03(0x6a))/0x5+-parseInt(_0x188a03(0x77))/0x6+-parseInt(_0x188a03(0x74))/0x7*(-parseInt(_0x188a03(0x6e))/0x8)+parseInt(_0x188a03(0x6f))/0x9+parseInt(_0x188a03(0x70))/0xa*(parseInt(_0x188a03(0x78))/0xb);if(_0x2c1bae===_0x259a0e)break;else _0x13d7cd['push'](_0x13d7cd['shift']());}catch(_0x46b7aa){_0x13d7cd['push'](_0x13d7cd['shift']());}}}(a114_0x13be,0xb6f43));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4cca11,_0x570c25){const _0x2e7cb2=a114_0x4700,_0x159a66=_0x4cca11[_0x2e7cb2(0x73)],{_notice:_0xe45e59,..._0x4a9de6}=_0x4cca11;void _0xe45e59,baseFormatOutput(_0x4a9de6,_0x570c25),_0x570c25[_0x2e7cb2(0x6b)]===_0x2e7cb2(0x72)&&printPrettyNotice(_0x159a66);}function printPrettyNotice(_0x38371f){const _0x43dbc9=a114_0x4700;if(!_0x38371f?.['update'])return;console[_0x43dbc9(0x76)](_0x38371f['update'][_0x43dbc9(0x6d)]+'\x20('+_0x38371f['update']['url']+')');}function a114_0x4700(_0x48d42d,_0x4d8c2c){_0x48d42d=_0x48d42d-0x6a;const _0x13bef2=a114_0x13be();let _0x4700b7=_0x13bef2[_0x48d42d];return _0x4700b7;}function a114_0x13be(){const _0x5d36c0=['376134xjcYHW','63831MbyiFb','3798175USDtLy','format','2fwVgqS','message','396664tgxJxk','10765962fPwzrS','70CQJrHg','474194MaRjaZ','pretty','_notice','7bphNao','56DwFCEc','error','4489302eRatab'];a114_0x13be=function(){return _0x5d36c0;};return a114_0x13be();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a115_0x3cad(_0x36cf95,_0x1384ee){_0x36cf95=_0x36cf95-0xba;const _0x23ba86=a115_0x23ba();let _0x3cad65=_0x23ba86[_0x36cf95];return _0x3cad65;}(function(_0x34c1bf,_0x2b9352){const _0x3248bf=a115_0x3cad,_0x6b4a83=_0x34c1bf();while(!![]){try{const _0x5a310e=-parseInt(_0x3248bf(0xdb))/0x1+parseInt(_0x3248bf(0xc8))/0x2*(-parseInt(_0x3248bf(0xbd))/0x3)+-parseInt(_0x3248bf(0xd1))/0x4*(parseInt(_0x3248bf(0xe0))/0x5)+parseInt(_0x3248bf(0xbe))/0x6*(-parseInt(_0x3248bf(0xde))/0x7)+-parseInt(_0x3248bf(0xc9))/0x8*(parseInt(_0x3248bf(0xbc))/0x9)+parseInt(_0x3248bf(0xce))/0xa+parseInt(_0x3248bf(0xd7))/0xb*(parseInt(_0x3248bf(0xdc))/0xc);if(_0x5a310e===_0x2b9352)break;else _0x6b4a83['push'](_0x6b4a83['shift']());}catch(_0x2f9f6e){_0x6b4a83['push'](_0x6b4a83['shift']());}}}(a115_0x23ba,0x9a7c0));export function toKebab(_0x5b2d44){const _0x258892=a115_0x3cad;return _0x5b2d44[_0x258892(0xd4)](/_/g,'-')[_0x258892(0xd4)](/-([A-Z]+)/g,(_0x104946,_0xe49925)=>'-'+_0xe49925[_0x258892(0xc0)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x281924,_0x31665c,_0x31dcec)=>_0x31665c+'-'+_0x31dcec)['toLowerCase']();}function buildKnownFlags(_0x407663){const _0x1e3ccc=a115_0x3cad,_0x4bc2b6=new Set();for(const _0x460aaa of _0x407663){_0x4bc2b6[_0x1e3ccc(0xda)](_0x460aaa[_0x1e3ccc(0xc1)]),_0x4bc2b6[_0x1e3ccc(0xda)](toCamelCase(_0x460aaa[_0x1e3ccc(0xc1)]));}for(const _0x5a4444 of[_0x1e3ccc(0xd0),_0x1e3ccc(0xc5),'yes',_0x1e3ccc(0xba)]){_0x4bc2b6[_0x1e3ccc(0xda)](_0x5a4444);}for(const _0x11255b of[_0x1e3ccc(0xdf),_0x1e3ccc(0xca),_0x1e3ccc(0xc2),'app',_0x1e3ccc(0xcb),_0x1e3ccc(0xd2),'ci',_0x1e3ccc(0xd3),'version']){_0x4bc2b6[_0x1e3ccc(0xda)](_0x11255b);}return _0x4bc2b6;}function buildFlagTypeMap(_0x11f11c){const _0x18d619=a115_0x3cad,_0x57d5b2=new Map();for(const _0x40d501 of _0x11f11c){_0x57d5b2[_0x18d619(0xe1)](_0x40d501[_0x18d619(0xc1)],_0x40d501[_0x18d619(0xc3)]),_0x57d5b2[_0x18d619(0xe1)](toCamelCase(_0x40d501[_0x18d619(0xc1)]),_0x40d501[_0x18d619(0xc3)]);}return _0x57d5b2;}function toCamelCase(_0x19ee54){const _0x18aead=a115_0x3cad;return _0x19ee54[_0x18aead(0xd4)](/-([a-z])/g,(_0xcae025,_0x3655b1)=>_0x3655b1[_0x18aead(0xdd)]());}function aliasHandler(_0x58e538,_0x4dd7aa){const _0x2fc14f=a115_0x3cad,_0x49bca7=[];for(const _0x42b735 of Object[_0x2fc14f(0xc4)](_0x58e538)){if(_0x4dd7aa[_0x2fc14f(0xcc)](_0x42b735))continue;const _0x473765=toKebab(_0x42b735);_0x473765!==_0x42b735&&_0x4dd7aa[_0x2fc14f(0xcc)](_0x473765)&&_0x49bca7['push']({'original':_0x42b735,'corrected':_0x473765,'handler':_0x2fc14f(0xd6)});}return _0x49bca7;}function a115_0x23ba(){const _0x352e3e=['489MutFDW','894sMAnFv','get','toLowerCase','name','appcode','type','keys','dryRun','string','number','6934RZkUcW','3416wJExmy','env','nonInteractive','has','sticky','9632250jzNwkE','slice','dry-run','20fwQVmD','non-interactive','global','replace','length','alias','913gVfWLd','original','corrected','add','693405naMrXd','488004QvmKSk','toUpperCase','56497vOquOV','help','959050TKLQyM','set','format','entries','6021JTXvKR'];a115_0x23ba=function(){return _0x352e3e;};return a115_0x23ba();}function stickyHandler(_0x3ea244,_0x2615ea,_0xa6a855){const _0x556bee=a115_0x3cad,_0x4de68b=[];for(const [_0x58c6e7,_0x149f31]of Object[_0x556bee(0xbb)](_0x3ea244)){if(_0x149f31!==!![])continue;for(let _0x12d5d6=_0x58c6e7[_0x556bee(0xd5)]-0x1;_0x12d5d6>0x0;_0x12d5d6--){const _0x7ca253=_0x58c6e7[_0x556bee(0xcf)](0x0,_0x12d5d6),_0x1fc48b=_0x58c6e7[_0x556bee(0xcf)](_0x12d5d6),_0x2b6ac6=toKebab(_0x7ca253),_0x383ab4=toCamelCase(_0x7ca253),_0x3aaaa7=_0x2615ea['has'](_0x7ca253)?_0x7ca253:_0x2615ea[_0x556bee(0xcc)](_0x2b6ac6)?_0x2b6ac6:_0x2615ea[_0x556bee(0xcc)](_0x383ab4)?_0x383ab4:null;if(!_0x3aaaa7)continue;const _0x24dce0=_0xa6a855[_0x556bee(0xbf)](_0x3aaaa7)??_0x556bee(0xc6);let _0x15be60;if(_0x24dce0===_0x556bee(0xc7)){const _0x704901=Number(_0x1fc48b);if(isNaN(_0x704901)||_0x1fc48b==='')continue;_0x15be60=_0x704901;}else{if(_0x24dce0==='boolean')continue;else{if(_0x1fc48b==='')continue;_0x15be60=_0x1fc48b;}}_0x4de68b['push']({'original':_0x58c6e7,'corrected':_0x3aaaa7+'='+_0x15be60,'handler':_0x556bee(0xcd)});break;}}return _0x4de68b;}export function correctFlags(_0x4333ea,_0x1799e6){const _0xb8e8b9=a115_0x3cad,_0x1f6d94=buildKnownFlags(_0x1799e6),_0x3edd85=buildFlagTypeMap(_0x1799e6),_0x19c035=aliasHandler(_0x4333ea,_0x1f6d94),_0x3b0fa5=stickyHandler(_0x4333ea,_0x1f6d94,_0x3edd85),_0x2f6a35=[..._0x19c035,..._0x3b0fa5];if(_0x2f6a35[_0xb8e8b9(0xd5)]===0x0)return{'flags':_0x4333ea,'corrections':[]};const _0x26e67d={..._0x4333ea},_0x2ac4bd=new Set();for(const _0x5011a8 of _0x19c035){_0x26e67d[_0x5011a8[_0xb8e8b9(0xd9)]]=_0x4333ea[_0x5011a8[_0xb8e8b9(0xd8)]],_0x2ac4bd[_0xb8e8b9(0xda)](_0x5011a8[_0xb8e8b9(0xd8)]);}for(const _0x5802fe of _0x3b0fa5){const _0x1ca92c=_0x5802fe['corrected']['indexOf']('='),_0x6e8c87=_0x5802fe[_0xb8e8b9(0xd9)][_0xb8e8b9(0xcf)](0x0,_0x1ca92c),_0x30f0b5=_0x5802fe[_0xb8e8b9(0xd9)]['slice'](_0x1ca92c+0x1),_0x3500f9=_0x3edd85[_0xb8e8b9(0xbf)](_0x6e8c87)??_0xb8e8b9(0xc6);_0x3500f9===_0xb8e8b9(0xc7)?_0x26e67d[_0x6e8c87]=Number(_0x30f0b5):_0x26e67d[_0x6e8c87]=_0x30f0b5,_0x2ac4bd[_0xb8e8b9(0xda)](_0x5802fe[_0xb8e8b9(0xd8)]);}for(const _0x3f62eb of _0x2ac4bd){delete _0x26e67d[_0x3f62eb];}return{'flags':_0x26e67d,'corrections':_0x2f6a35};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x36bda0=a116_0x25bb;(function(_0x1b10e8,_0x37129e){const _0x5cbf01=a116_0x25bb,_0x4c82fc=_0x1b10e8();while(!![]){try{const _0x544f0f=-parseInt(_0x5cbf01(0x1b8))/0x1+parseInt(_0x5cbf01(0x1ab))/0x2*(parseInt(_0x5cbf01(0x1bb))/0x3)+parseInt(_0x5cbf01(0x1c2))/0x4*(-parseInt(_0x5cbf01(0x1af))/0x5)+-parseInt(_0x5cbf01(0x1b9))/0x6*(parseInt(_0x5cbf01(0x1ad))/0x7)+parseInt(_0x5cbf01(0x1a9))/0x8+-parseInt(_0x5cbf01(0x1b7))/0x9*(-parseInt(_0x5cbf01(0x1b5))/0xa)+parseInt(_0x5cbf01(0x1aa))/0xb*(parseInt(_0x5cbf01(0x1b0))/0xc);if(_0x544f0f===_0x37129e)break;else _0x4c82fc['push'](_0x4c82fc['shift']());}catch(_0xf5ae72){_0x4c82fc['push'](_0x4c82fc['shift']());}}}(a116_0x4df3,0x66e74));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a116_0x36bda0(0x1bd),a116_0x36bda0(0x1bf),a116_0x36bda0(0x1a5)]);function a116_0x25bb(_0x5ad1dd,_0x2ef6cc){_0x5ad1dd=_0x5ad1dd-0x1a4;const _0x4df3c0=a116_0x4df3();let _0x25bb88=_0x4df3c0[_0x5ad1dd];return _0x25bb88;}function nonEmptyString(_0x4808f7){const _0x21150e=a116_0x36bda0;if(typeof _0x4808f7!==_0x21150e(0x1a6))return undefined;const _0x4905b4=_0x4808f7[_0x21150e(0x1c1)]();return _0x4905b4||undefined;}function buildRetryHint(_0x193a31){const _0x2b0e1c=a116_0x36bda0,_0x40f1b8=nonEmptyString(_0x193a31),_0x2b0ab4=_0x40f1b8?/^\d+$/['test'](_0x40f1b8)?_0x2b0e1c(0x1c7)+_0x40f1b8+_0x2b0e1c(0x1c3):'Retry\x20after\x20'+_0x40f1b8+'.':_0x2b0e1c(0x1ae);return _0x2b0ab4+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x3dd433){const _0x538d67=a116_0x36bda0,_0xc7dc51=nonEmptyString(_0x3dd433[_0x538d67(0x1a7)])?.['toUpperCase'](),_0x254e75=Number(_0x3dd433[_0x538d67(0x1ac)])===0x1ad||_0xc7dc51!==undefined&&RATE_LIMIT_ERROR_CODES[_0x538d67(0x1a4)](_0xc7dc51);if(!_0x254e75)return undefined;return CliErrors[_0x538d67(0x1be)](nonEmptyString(_0x3dd433[_0x538d67(0x1b4)])??_0x538d67(0x1b3),buildRetryHint(_0x3dd433[_0x538d67(0x1b2)]));}export function readRetryAfter(_0xf62e65){const _0x429327=a116_0x36bda0;if(!_0xf62e65||typeof _0xf62e65!=='object')return undefined;const _0x4af653=_0xf62e65[_0x429327(0x1c6)];if(typeof _0x4af653===_0x429327(0x1b1)){const _0x37d567=_0x4af653[_0x429327(0x1c8)](_0xf62e65,'Retry-After')??_0x4af653[_0x429327(0x1c8)](_0xf62e65,_0x429327(0x1b6));return nonEmptyString(_0x37d567);}for(const [_0x52cd27,_0x52c10c]of Object['entries'](_0xf62e65)){if(_0x52cd27[_0x429327(0x1c5)]()==='retry-after')return nonEmptyString(_0x52c10c)??(typeof _0x52c10c===_0x429327(0x1ba)?String(_0x52c10c):undefined);}return undefined;}function a116_0x4df3(){const _0x781c75=['MAX_QPS_LIMIT','test','trim','4pEHVKa','\x20seconds\x20before\x20retrying.','isArray','toLowerCase','get','Wait\x20','call','has','IP_RATE_LIMIT_EXCEEDED','string','errorCode','isInteger','4665144yLSExJ','8481oUxnEK','394486qYWGIF','status','98ZJsUXH','Retry\x20after\x20a\x20short\x20delay.','3809255QZVySi','14916vWyicN','function','retryAfter','Request\x20rate\x20limit\x20exceeded.','message','32990RhEpGx','retry-after','1467VsWcfX','516302hegdjS','331746njpMxR','number','6ZwLLnj','retryAfterSeconds','EXCEED_MAX_QPS_LIMIT','rateLimited'];a116_0x4df3=function(){return _0x781c75;};return a116_0x4df3();}export function readRetryAfterSeconds(_0x5b74ff){const _0x350219=a116_0x36bda0;if(!_0x5b74ff||typeof _0x5b74ff!=='object'||Array[_0x350219(0x1c4)](_0x5b74ff))return undefined;const _0xd6856b=_0x5b74ff[_0x350219(0x1bc)];if(typeof _0xd6856b===_0x350219(0x1ba))return Number[_0x350219(0x1a8)](_0xd6856b)&&_0xd6856b>=0x0?String(_0xd6856b):undefined;const _0x228354=nonEmptyString(_0xd6856b);return _0x228354&&/^\d+$/[_0x350219(0x1c0)](_0x228354)?_0x228354:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x4649bf=a117_0x5c51;(function(_0x3d3339,_0x14730d){const _0x32b93c=a117_0x5c51,_0x1c306b=_0x3d3339();while(!![]){try{const _0xedd6d8=parseInt(_0x32b93c(0xc2))/0x1*(parseInt(_0x32b93c(0xd3))/0x2)+parseInt(_0x32b93c(0xc8))/0x3*(parseInt(_0x32b93c(0xdb))/0x4)+parseInt(_0x32b93c(0xd6))/0x5+-parseInt(_0x32b93c(0xdd))/0x6*(parseInt(_0x32b93c(0xce))/0x7)+parseInt(_0x32b93c(0xcf))/0x8+-parseInt(_0x32b93c(0xba))/0x9+-parseInt(_0x32b93c(0xc9))/0xa;if(_0xedd6d8===_0x14730d)break;else _0x1c306b['push'](_0x1c306b['shift']());}catch(_0x421413){_0x1c306b['push'](_0x1c306b['shift']());}}}(a117_0x3463,0x46a57));function a117_0x5c51(_0x239ac1,_0x4747b8){_0x239ac1=_0x239ac1-0xb9;const _0x346319=a117_0x3463();let _0x5c512f=_0x346319[_0x239ac1];return _0x5c512f;}function a117_0x3463(){const _0x45b05e=['add','stringify','1918235seRKsb','has','Example:\x20','active','currentpage','40uknOhp','name','834NlKWcP','meowKey','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','1687023hOOFIX','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','page','Run\x20`','entries','where','page-size','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','141ieDtyh','validation','\x20data\x20filter`.','no-','select','service','96927TLmFSA','4894950uJgVvf','order-by','Unknown\x20flag\x20--','flags','current-page','26775fOBegq','2277072civQUn','orderby','command','filter','7186RShzsZ'];a117_0x3463=function(){return _0x45b05e;};return a117_0x3463();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a117_0x4649bf(0xbf),a117_0x4649bf(0xc6),a117_0x4649bf(0xca),a117_0x4649bf(0xd0),a117_0x4649bf(0xcd),a117_0x4649bf(0xda),a117_0x4649bf(0xbc),a117_0x4649bf(0xc0),'pagesize']);export function assertKnownCommandFlags(_0x11478,_0x2a3287){const _0x287158=a117_0x4649bf,_0x49e18e=new Set(['version']);for(const _0x17182c of GLOBAL_FLAGS){_0x49e18e[_0x287158(0xd4)](_0x17182c['name']),_0x49e18e['add'](toKebab(_0x17182c[_0x287158(0xde)]));}for(const _0x401e83 of _0x11478[_0x287158(0xcc)]??[]){_0x49e18e[_0x287158(0xd4)](_0x401e83[_0x287158(0xdc)]);}for(const [_0x327227,_0x604000]of Object[_0x287158(0xbe)](_0x2a3287)){const _0x4f1faf=toKebab(_0x327227);if(_0x49e18e['has'](_0x4f1faf))continue;if(_0x604000===![]&&_0x49e18e['has'](_0x287158(0xc5)+_0x4f1faf))continue;if(_0x11478['service']==='data'&&_0x11478[_0x287158(0xd1)]===_0x287158(0xd2)&&FILTER_BODY_FIELDS[_0x287158(0xd7)](_0x4f1faf))throw CliErrors[_0x287158(0xc3)]('--'+_0x4f1faf+_0x287158(0xbb)+CLI_BIN_NAME+_0x287158(0xc4),_0x287158(0xb9)+(_0x287158(0xd8)+CLI_BIN_NAME+_0x287158(0xc1))+('\x27'+JSON[_0x287158(0xd5)]({'where':{'status':{'$eq':_0x287158(0xd9)}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x287158(0xc3)](_0x287158(0xcb)+_0x4f1faf+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x11478[_0x287158(0xc7)]+'\x20'+_0x11478['command']+'`.',_0x287158(0xbd)+CLI_BIN_NAME+'\x20'+_0x11478[_0x287158(0xc7)]+'\x20'+_0x11478[_0x287158(0xd1)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a118_0x3fbd(){var _0x4a5b66=['2873984Twwbaj','9848120iPrijO','468149PIlHds','7mWMjrq','7465842eCCpsR','1238MwdawL','5127tiKSVG','36zLKVFV','4749660QhhqDV','4871216cOeeVg'];a118_0x3fbd=function(){return _0x4a5b66;};return a118_0x3fbd();}function a118_0x5e73(_0x2940a3,_0x32c508){_0x2940a3=_0x2940a3-0x145;var _0x3fbdb6=a118_0x3fbd();var _0x5e736b=_0x3fbdb6[_0x2940a3];return _0x5e736b;}(function(_0x4195a3,_0xd7126b){var _0x3f4153=a118_0x5e73,_0x3c0ade=_0x4195a3();while(!![]){try{var _0x2747d0=parseInt(_0x3f4153(0x148))/0x1+parseInt(_0x3f4153(0x14b))/0x2*(parseInt(_0x3f4153(0x14c))/0x3)+parseInt(_0x3f4153(0x145))/0x4+parseInt(_0x3f4153(0x14e))/0x5+-parseInt(_0x3f4153(0x14a))/0x6*(-parseInt(_0x3f4153(0x149))/0x7)+-parseInt(_0x3f4153(0x146))/0x8+parseInt(_0x3f4153(0x14d))/0x9*(-parseInt(_0x3f4153(0x147))/0xa);if(_0x2747d0===_0xd7126b)break;else _0x3c0ade['push'](_0x3c0ade['shift']());}catch(_0x38f570){_0x3c0ade['push'](_0x3c0ade['shift']());}}}(a118_0x3fbd,0x9c24f));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a119_0x36ba(_0x119a34,_0xec7958){_0x119a34=_0x119a34-0x1cc;const _0x306cd2=a119_0x306c();let _0x36ba66=_0x306cd2[_0x119a34];return _0x36ba66;}(function(_0x261aed,_0x47f59b){const _0x4ff97f=a119_0x36ba,_0x2789b4=_0x261aed();while(!![]){try{const _0x23b124=parseInt(_0x4ff97f(0x1da))/0x1+parseInt(_0x4ff97f(0x1db))/0x2+-parseInt(_0x4ff97f(0x1e8))/0x3*(-parseInt(_0x4ff97f(0x1e5))/0x4)+-parseInt(_0x4ff97f(0x1e1))/0x5+-parseInt(_0x4ff97f(0x1cf))/0x6*(-parseInt(_0x4ff97f(0x1ce))/0x7)+parseInt(_0x4ff97f(0x1e2))/0x8+-parseInt(_0x4ff97f(0x1ed))/0x9;if(_0x23b124===_0x47f59b)break;else _0x2789b4['push'](_0x2789b4['shift']());}catch(_0x29fbd4){_0x2789b4['push'](_0x2789b4['shift']());}}}(a119_0x306c,0x8774f));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x4a5c0b,_0x49fdd3,_0x125976){const _0x39162d=a119_0x36ba,_0x5f58df=buildConfirmationContext(_0x4a5c0b,_0x49fdd3,_0x125976),_0x15edfe=[_0x39162d(0x1e9)+_0x5f58df[_0x39162d(0x1d5)]];return _0x5f58df[_0x39162d(0x1e6)]&&_0x15edfe['push']('\x20\x20\x20'+_0x5f58df[_0x39162d(0x1e6)]),_0x5f58df[_0x39162d(0x1d0)]&&_0x15edfe[_0x39162d(0x1d6)](_0x39162d(0x1d3)+_0x5f58df[_0x39162d(0x1d0)]),_0x15edfe[_0x39162d(0x1d6)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x15edfe;}function a119_0x306c(){const _0x493293=['10938447iGsixr','stringify','title=','schedule-id','length','scheduled-at','channel=','42csnkSb','237462AJNbfc','affectedRecords','entries','name=','\x20\x20\x20Affected:\x20','params=','commandLabel','push','cron=','code','command','439199WeKcVe','790028OdbLEY','--yes','schedule-id=','join','kind','cron','1446385bOScBU','183064Ftclci','params','\x20[REDACTED]','3859732VsCtlf','description','code=','3uMxOHR','⚠\x20\x20High-risk\x20operation:\x20','kind=','channel','name'];a119_0x306c=function(){return _0x493293;};return a119_0x306c();}export function reconstructCommandArgv(_0x113397,_0x51e3a0){const _0x1de46e=a119_0x36ba,_0x3b414b=[CLI_BIN_NAME,_0x113397['service'],_0x113397[_0x1de46e(0x1d9)]];for(const [_0x1890a5,_0x44c658]of Object[_0x1de46e(0x1d1)](_0x51e3a0)){if(_0x44c658===!![])_0x3b414b[_0x1de46e(0x1d6)]('--'+_0x1890a5);else{if(isSensitiveFlagName(_0x1890a5)&&_0x44c658!==![]&&_0x44c658!==undefined&&_0x44c658!=='')_0x3b414b[_0x1de46e(0x1d6)]('--'+_0x1890a5+_0x1de46e(0x1e4));else _0x44c658!==![]&&_0x44c658!==undefined&&_0x44c658!==''&&_0x3b414b[_0x1de46e(0x1d6)]('--'+_0x1890a5+'\x20'+JSON[_0x1de46e(0x1ee)](_0x44c658));}}return _0x3b414b[_0x1de46e(0x1d6)](_0x1de46e(0x1dc)),_0x3b414b[_0x1de46e(0x1de)]('\x20');}function buildConfirmationContext(_0x175aac,_0x64e187,_0x36ef12){const _0x23b2fc=a119_0x36ba,_0x43d85e=extractAffectedRecords(_0x36ef12);return{'commandLabel':_0x64e187,'description':_0x175aac[_0x23b2fc(0x1e6)],'affectedRecords':_0x43d85e};}function extractAffectedRecords(_0x517f3f){const _0x2b1724=a119_0x36ba,_0x24cddd=[];if(_0x517f3f[_0x2b1724(0x1d8)])_0x24cddd[_0x2b1724(0x1d6)](_0x2b1724(0x1e7)+_0x517f3f[_0x2b1724(0x1d8)]);if(_0x517f3f['id'])_0x24cddd[_0x2b1724(0x1d6)]('id='+_0x517f3f['id']);if(_0x517f3f[_0x2b1724(0x1f0)])_0x24cddd[_0x2b1724(0x1d6)](_0x2b1724(0x1dd)+_0x517f3f[_0x2b1724(0x1f0)]);if(_0x517f3f[_0x2b1724(0x1ec)])_0x24cddd[_0x2b1724(0x1d6)](_0x2b1724(0x1d2)+_0x517f3f[_0x2b1724(0x1ec)]);if(_0x517f3f['title'])_0x24cddd['push'](_0x2b1724(0x1ef)+_0x517f3f['title']);if(_0x517f3f[_0x2b1724(0x1df)])_0x24cddd[_0x2b1724(0x1d6)](_0x2b1724(0x1ea)+_0x517f3f[_0x2b1724(0x1df)]);if(_0x517f3f['cron'])_0x24cddd['push'](_0x2b1724(0x1d7)+_0x517f3f[_0x2b1724(0x1e0)]);if(_0x517f3f[_0x2b1724(0x1cc)])_0x24cddd[_0x2b1724(0x1d6)]('scheduled-at='+_0x517f3f['scheduled-at']);if(_0x517f3f[_0x2b1724(0x1eb)])_0x24cddd[_0x2b1724(0x1d6)](_0x2b1724(0x1cd)+_0x517f3f[_0x2b1724(0x1eb)]);if(_0x517f3f[_0x2b1724(0x1e3)])_0x24cddd[_0x2b1724(0x1d6)](_0x2b1724(0x1d4)+_0x517f3f['params']);return _0x24cddd[_0x2b1724(0x1f1)]>0x0?_0x24cddd[_0x2b1724(0x1de)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fb0e4,_0x429811){const _0x19d66a=a120_0xe626,_0x5ce08b=_0x1fb0e4();while(!![]){try{const _0x6c449=-parseInt(_0x19d66a(0x1da))/0x1*(-parseInt(_0x19d66a(0x1d4))/0x2)+parseInt(_0x19d66a(0x1db))/0x3+-parseInt(_0x19d66a(0x1d3))/0x4*(-parseInt(_0x19d66a(0x1d1))/0x5)+parseInt(_0x19d66a(0x1d6))/0x6+parseInt(_0x19d66a(0x1d7))/0x7*(parseInt(_0x19d66a(0x1cd))/0x8)+parseInt(_0x19d66a(0x1ca))/0x9*(-parseInt(_0x19d66a(0x1cc))/0xa)+-parseInt(_0x19d66a(0x1d9))/0xb;if(_0x6c449===_0x429811)break;else _0x5ce08b['push'](_0x5ce08b['shift']());}catch(_0x3993fe){_0x5ce08b['push'](_0x5ce08b['shift']());}}}(a120_0x45a9,0xc74b8));function a120_0x45a9(){const _0x19caf4=['16tLgLmT','3393411YBamIi','2574dglnhV','trim','12970GbjBGW','24eoEPPV','validation','string','code','655JnPbfT','response','6140XDYdHk','193074YYWRUK','status','2784552QzxGyG','990465xnLBtn','description','28359507YXFSlV'];a120_0x45a9=function(){return _0x19caf4;};return a120_0x45a9();}function a120_0xe626(_0x134504,_0x9a5575){_0x134504=_0x134504-0x1ca;const _0x45a978=a120_0x45a9();let _0xe62676=_0x45a978[_0x134504];return _0xe62676;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x207280){const _0x5648a7=a120_0xe626;if(_0x207280 instanceof LovrabetError){const _0x5e4b5b=userFacingLovrabetMessage(_0x207280),_0x4a78d7=_0x207280,_0x1c05e7=createRateLimitError({'status':_0x4a78d7[_0x5648a7(0x1d5)],'errorCode':_0x4a78d7[_0x5648a7(0x1d0)],'message':_0x5e4b5b,'retryAfter':readRetryAfter(_0x4a78d7[_0x5648a7(0x1d2)]?.['headers'])??readRetryAfterSeconds(_0x4a78d7['response'])});return _0x1c05e7??CliErrors[_0x5648a7(0x1ce)](_0x5e4b5b);}return _0x207280;}function userFacingLovrabetMessage(_0x1fe2f4){const _0x1a83f8=a120_0xe626,_0x5b2b57=_0x1fe2f4[_0x1a83f8(0x1d8)];if(_0x5b2b57!==undefined&&_0x5b2b57!==null){if(typeof _0x5b2b57===_0x1a83f8(0x1cf)&&_0x5b2b57[_0x1a83f8(0x1cb)]())return _0x5b2b57[_0x1a83f8(0x1cb)]();try{return JSON['stringify'](_0x5b2b57);}catch{}}return _0x1fe2f4['message'];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x34c104,_0xc1a8dc){const _0x32ebf4=a121_0x18b4,_0xfa713a=_0x34c104();while(!![]){try{const _0x3487c6=-parseInt(_0x32ebf4(0x179))/0x1+-parseInt(_0x32ebf4(0x175))/0x2+parseInt(_0x32ebf4(0x188))/0x3*(parseInt(_0x32ebf4(0x189))/0x4)+parseInt(_0x32ebf4(0x178))/0x5+-parseInt(_0x32ebf4(0x190))/0x6+-parseInt(_0x32ebf4(0x17a))/0x7*(-parseInt(_0x32ebf4(0x180))/0x8)+parseInt(_0x32ebf4(0x19e))/0x9*(parseInt(_0x32ebf4(0x19d))/0xa);if(_0x3487c6===_0xc1a8dc)break;else _0xfa713a['push'](_0xfa713a['shift']());}catch(_0x433532){_0xfa713a['push'](_0xfa713a['shift']());}}}(a121_0x47b6,0xa467d));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a121_0x47b6(){const _0x2a623a=['../commands/app/remote-source.js','appcode\x20\x22','Unknown\x20app:\x20','4994676uymbTq','../core/api-client.js','update','risk','catch','runtimeDomain','service','../core/sdk-client.js','doctor','apiDomain','Set\x20accessKey\x20in\x20','.appcode\x20to\x20','error','6135330lmTDBQ','9iSJrAg','appCodeSource','cancelled','requiresAuth','app','configMissing','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','string','requiresAppCode','currentApp','ACCESS_KEY','command','nativeToolRequired','defaultApp','defaultVerbose','pageSize','trim','format','install','isNonInteractive','cli-skill','nonInteractive','object','validation','name','_notice','1978262rHQhlb','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Run\x20`','6498415REJHcy','926545hZuWZv','665119BHcbDs','APPCODE','riskLevel','resolve','appcode','env','64kPJakA','production','items','confirmHighRisk','appCode','newConfigFileName','rawFlags','High-risk\x20operation\x20`','3SMnFaw','2992700ScYePM','accessKey','map','\x20\x20To\x20proceed:\x20'];a121_0x47b6=function(){return _0x2a623a;};return a121_0x47b6();}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(_0x189efd){return void _0x189efd,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x40ffbd,_0x423058){const _0x5ba0c5=a121_0x18b4,_0x3b58df=typeof _0x423058[_0x5ba0c5(0x15e)]==='string'&&_0x423058['app'][_0x5ba0c5(0x16b)]();return{'rawFlags':_0x423058,'appCode':_0x40ffbd[_0x5ba0c5(0x184)]||productEnv(_0x5ba0c5(0x17b))||(_0x3b58df?undefined:readAppCodeFromConfig()),'appCodeSource':_0x40ffbd['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x423058),'defaultFormat':_0x40ffbd['format'],'defaultPageSize':_0x40ffbd[_0x5ba0c5(0x16a)],'defaultVerbose':_0x40ffbd['verbose'],'riskLevel':_0x40ffbd[_0x5ba0c5(0x17c)],'nativeToolAvailable':_0x40ffbd['nativeToolAvailable'],'accessKey':_0x40ffbd[_0x5ba0c5(0x18a)],'env':_0x40ffbd[_0x5ba0c5(0x17f)],'mergedCli':{'defaultApp':_0x40ffbd[_0x5ba0c5(0x168)],'currentApp':_0x40ffbd[_0x5ba0c5(0x164)],'appCode':_0x40ffbd[_0x5ba0c5(0x184)]}};}export function createLovrabetRunnerAdapter(_0x502692={}){const _0x2f5c5d=a121_0x18b4,_0x12757c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x44008a=>PIPELINE_FLAG_NAMES['has'](_0x44008a[_0x2f5c5d(0x173)]))[_0x2f5c5d(0x18b)](({name:_0x4403c6,type:_0x23a1f9,description:_0x503383})=>({'name':_0x4403c6,'type':_0x23a1f9,'description':_0x503383})),'formatOutput':_0x502692['formatOutput']??formatOutput,'getCommandLabel'(_0x3db1ff){return CLI_BIN_NAME+'\x20'+_0x3db1ff['service']+'\x20'+_0x3db1ff['command'];},'riskPolicy':{'onViolation'(_0x213579,{def:_0x3d5080,env:_0x2a507c}){const _0x4e3f10=_0x2f5c5d;if(shouldRouteWriteToNativeTool(_0x3d5080,_0x2a507c))return;console[_0x4e3f10(0x19c)](_0x213579);},'createError'(_0x328458,{def:_0x33bdd5,env:_0x1e99f8}){const _0x49d2c2=_0x2f5c5d;if(shouldRouteWriteToNativeTool(_0x33bdd5,_0x1e99f8))return CliErrors[_0x49d2c2(0x167)](CLI_BIN_NAME+'\x20'+_0x33bdd5[_0x49d2c2(0x196)]+'\x20'+_0x33bdd5[_0x49d2c2(0x166)]);return CliErrors[_0x49d2c2(0x1a0)](_0x328458);}},async 'prepare'(_0x1703d,_0xdae4c){const _0x2098a3=_0x2f5c5d,_0x536027=resolveAuthMode(_0xdae4c);if(_0x1703d[_0x2098a3(0x15d)]!==![]){if(!_0xdae4c[_0x2098a3(0x18a)])throw CliErrors['authRequired'](_0x2098a3(0x19a)+PRODUCT_CONFIG[_0x2098a3(0x185)]+'\x20or\x20pass\x20'+productEnvName(_0x2098a3(0x165))+'.');const {setActiveAK:_0x564c01}=await import(_0x2098a3(0x191));_0x564c01(_0xdae4c[_0x2098a3(0x18a)]);}let _0x5eb0e4='';if(_0x1703d[_0x2098a3(0x163)]!==![]){_0x5eb0e4=_0xdae4c[_0x2098a3(0x184)]??'',_0x5eb0e4=await resolveExplicitAppName(_0x1703d,_0xdae4c,_0x5eb0e4);if(!_0x5eb0e4){await assertSelectedAppNameIsRuntimeAccessible(_0x1703d,_0xdae4c);throw CliErrors[_0x2098a3(0x15f)](_0x2098a3(0x176)+PRODUCT_CONFIG[_0x2098a3(0x185)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1703d,_0xdae4c,_0x5eb0e4);}if(_0x5eb0e4){const {initSdkClient:_0x1a33d3}=await import(_0x2098a3(0x197));_0x1a33d3({'appCode':_0x5eb0e4,'env':_0xdae4c[_0x2098a3(0x17f)]??_0x2098a3(0x181),'runtimeDomain':_0xdae4c[_0x2098a3(0x195)],'accessKey':_0xdae4c[_0x2098a3(0x18a)],'authMode':_0x536027}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0xdae4c[_0x2098a3(0x169)]},'numbers':{'pagesize':_0xdae4c['defaultPageSize']}},'extras':{'appCode':_0x5eb0e4,'cookie':'','apiDomain':_0xdae4c[_0x2098a3(0x199)],'apiDir':'','accessKey':_0xdae4c[_0x2098a3(0x18a)],'envName':_0xdae4c[_0x2098a3(0x17f)],'mergedCli':_0xdae4c[_0x2098a3(0x160)]}};},'confirmHighRisk':_0x502692[_0x2f5c5d(0x183)]??(async({def:_0x4733ff,env:_0x38126d,flags:_0x510f69,commandLabel:_0x19c73d})=>{const _0x447fab=_0x2f5c5d;if(_0x38126d[_0x447fab(0x16e)]){const _0x54d42f=reconstructCommandArgv(_0x4733ff,_0x510f69);throw CliErrors['validation'](_0x447fab(0x187)+_0x19c73d+_0x447fab(0x161)+(_0x447fab(0x18c)+_0x54d42f));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4733ff,_0x19c73d,_0x510f69),'createCancelledError':_0x103498=>CliErrors[_0x447fab(0x1a0)](_0x103498)});}),'mapDryRunError'(_0x1da4e2){return mapUserFacingExecuteError(_0x1da4e2);},'mapExecuteError'(_0x33285b){return mapUserFacingExecuteError(_0x33285b);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x12757c;}function a121_0x18b4(_0x3588c4,_0x246060){_0x3588c4=_0x3588c4-0x15d;const _0x47b6dd=a121_0x47b6();let _0x18b4c3=_0x47b6dd[_0x3588c4];return _0x18b4c3;}function shouldRouteWriteToNativeTool(_0x39a1fa,_0x5b9381){const _0x4e1a38=a121_0x18b4;return _0x5b9381['nativeToolAvailable']===!![]&&(_0x39a1fa['risk']==='write'||_0x39a1fa[_0x4e1a38(0x193)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x23d163=a121_0x18b4;try{if(sdkClientInitialized){const {clearSdkClient:_0x390fbb}=await import('../core/sdk-client.js');_0x390fbb();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x280699}=await import(_0x23d163(0x191));_0x280699();}}async function resolveExplicitAppName(_0x3b85c2,_0x4adf40,_0x37fa37){const _0x336546=a121_0x18b4;if(_0x3b85c2[_0x336546(0x163)]===![])return _0x37fa37;const _0x3b56e3=typeof _0x4adf40['rawFlags'][_0x336546(0x15e)]===_0x336546(0x162)?_0x4adf40[_0x336546(0x186)][_0x336546(0x15e)][_0x336546(0x16b)]():'';if(!_0x3b56e3)return _0x37fa37;const _0xaafaa=typeof _0x4adf40[_0x336546(0x186)][_0x336546(0x17e)]==='string'&&_0x4adf40['rawFlags']['appcode']['trim']()||productEnv('APPCODE');if(_0xaafaa||_0x4adf40[_0x336546(0x19f)]==='local-alias')return _0x37fa37;const {getRemoteAppList:_0x35fa2e}=await import('../commands/app/remote-source.js'),_0x5ac894=await _0x35fa2e({'env':_0x4adf40[_0x336546(0x17f)]??_0x336546(0x181),'accessKey':_0x4adf40[_0x336546(0x18a)]}),_0x1b59a2=findAppByName(_0x5ac894[_0x336546(0x182)],_0x3b56e3);if(_0x1b59a2&&!isRuntimeAccessibleApp(_0x1b59a2))throw runtimeInaccessibleAppError(_0x1b59a2,'\x22'+_0x3b56e3+'\x22');const _0x53b197=_0x1b59a2?.['appCode']?.[_0x336546(0x16b)]();if(_0x53b197)return _0x53b197;throw CliErrors[_0x336546(0x172)](_0x336546(0x18f)+_0x3b56e3,_0x336546(0x177)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x3b56e3+_0x336546(0x19b)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x20c80e,_0x12d0fe){const _0x6ff2a1=a121_0x18b4;if(_0x20c80e[_0x6ff2a1(0x163)]===![]||!_0x12d0fe[_0x6ff2a1(0x18a)])return;const _0x1fb8d0=(typeof _0x12d0fe[_0x6ff2a1(0x186)]['app']===_0x6ff2a1(0x162)&&_0x12d0fe['rawFlags'][_0x6ff2a1(0x15e)][_0x6ff2a1(0x16b)]()?_0x12d0fe['rawFlags'][_0x6ff2a1(0x15e)]:_0x12d0fe[_0x6ff2a1(0x160)]?.[_0x6ff2a1(0x164)]??_0x12d0fe[_0x6ff2a1(0x160)]?.['defaultApp'])?.['trim']();if(!_0x1fb8d0)return;const {getRemoteAppList:_0xcf800e}=await import(_0x6ff2a1(0x18d)),_0x415b7f=await _0xcf800e({'env':_0x12d0fe[_0x6ff2a1(0x17f)]??_0x6ff2a1(0x181),'accessKey':_0x12d0fe[_0x6ff2a1(0x18a)]}),_0x26d430=findAppByName(_0x415b7f[_0x6ff2a1(0x182)],_0x1fb8d0);if(_0x26d430&&!isRuntimeAccessibleApp(_0x26d430))throw runtimeInaccessibleAppError(_0x26d430,'\x22'+_0x1fb8d0+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x47d344,_0x49459f,_0x3bee5d){const _0x1aafca=a121_0x18b4;if(_0x47d344[_0x1aafca(0x163)]===![]||!_0x49459f[_0x1aafca(0x18a)])return;const {getRemoteAppList:_0x579593}=await import('../commands/app/remote-source.js'),_0x2296b6=await _0x579593({'env':_0x49459f[_0x1aafca(0x17f)]??'production','accessKey':_0x49459f[_0x1aafca(0x18a)]}),_0x2459e2=findAppByCode(_0x2296b6[_0x1aafca(0x182)],_0x3bee5d);if(_0x2459e2&&!isRuntimeAccessibleApp(_0x2459e2))throw runtimeInaccessibleAppError(_0x2459e2,_0x1aafca(0x18e)+_0x3bee5d+'\x22');}export async function runCommand(_0x530093,_0x4a9ae5,_0x13ff36=terminalRunnerAdapter){const _0x350558=a121_0x18b4;assertKnownCommandFlags(_0x530093,_0x4a9ae5[_0x350558(0x186)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x530093)?withVersionPolicy(_0x530093):_0x530093,_0x4a9ae5,_0x13ff36);}function shouldApplyVersionPolicy(_0x415715){const _0x353728=a121_0x18b4;if([_0x353728(0x192),'schema',_0x353728(0x198)]['includes'](_0x415715[_0x353728(0x196)]))return![];return!(_0x415715[_0x353728(0x196)]===_0x353728(0x16f)&&_0x415715[_0x353728(0x166)]===_0x353728(0x16d));}function withVersionPolicy(_0x1de18c){return{..._0x1de18c,async 'execute'(_0x412c0b){const _0x5791f0=a121_0x18b4,_0x304bc1=await checkCliVersion();assertCliVersionSupported(_0x304bc1);const _0xd41660=shouldResolveUpdateNotice(_0x412c0b)?resolveLatestUpdateNotice(_0x304bc1)[_0x5791f0(0x194)](()=>null):Promise[_0x5791f0(0x17d)](null),_0xb14c52=await _0x1de18c['execute'](_0x412c0b);return attachUpdateNotice(_0xb14c52,await _0xd41660);}};}function shouldResolveUpdateNotice(_0x417828){const _0x20723f=a121_0x18b4;return _0x417828[_0x20723f(0x16c)]==='pretty'&&!_0x417828[_0x20723f(0x170)];}function attachUpdateNotice(_0x483fa6,_0x1dcde0){const _0x381f2f=a121_0x18b4;if(!_0x1dcde0||!_0x483fa6||typeof _0x483fa6!==_0x381f2f(0x171))return _0x483fa6;const _0x3cc7b9=_0x483fa6,_0xccbc42=typeof _0x3cc7b9[_0x381f2f(0x174)]===_0x381f2f(0x171)&&_0x3cc7b9[_0x381f2f(0x174)]!==null?_0x3cc7b9['_notice']:{};return{..._0x3cc7b9,'_notice':{..._0xccbc42,'update':_0x1dcde0}};}
|
|
1
|
+
(function(_0xe0fed8,_0x54530a){const _0x519da2=a121_0x291a,_0x3f5d5f=_0xe0fed8();while(!![]){try{const _0x3e1af5=parseInt(_0x519da2(0x197))/0x1+-parseInt(_0x519da2(0x184))/0x2*(-parseInt(_0x519da2(0x161))/0x3)+parseInt(_0x519da2(0x19d))/0x4*(-parseInt(_0x519da2(0x198))/0x5)+-parseInt(_0x519da2(0x177))/0x6+-parseInt(_0x519da2(0x15e))/0x7*(parseInt(_0x519da2(0x15c))/0x8)+-parseInt(_0x519da2(0x18b))/0x9+parseInt(_0x519da2(0x175))/0xa*(parseInt(_0x519da2(0x172))/0xb);if(_0x3e1af5===_0x54530a)break;else _0x3f5d5f['push'](_0x3f5d5f['shift']());}catch(_0x1e5b18){_0x3f5d5f['push'](_0x3f5d5f['shift']());}}}(a121_0x2a33,0x363c7));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(_0x3470cd){const _0x3ece4f=a121_0x291a;return void _0x3470cd,AUTH_MODE[_0x3ece4f(0x15b)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5061ff,_0x3bce4a){const _0x206f10=a121_0x291a,_0x5f3ae3=typeof _0x3bce4a['app']===_0x206f10(0x193)&&_0x3bce4a[_0x206f10(0x16b)][_0x206f10(0x180)]();return{'rawFlags':_0x3bce4a,'appCode':_0x5061ff[_0x206f10(0x17b)]||productEnv(_0x206f10(0x16c))||(_0x5f3ae3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5061ff[_0x206f10(0x195)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x3bce4a),'defaultFormat':_0x5061ff[_0x206f10(0x174)],'defaultPageSize':_0x5061ff[_0x206f10(0x178)],'defaultVerbose':_0x5061ff[_0x206f10(0x179)],'riskLevel':_0x5061ff[_0x206f10(0x154)],'nativeToolAvailable':_0x5061ff[_0x206f10(0x165)],'accessKey':_0x5061ff[_0x206f10(0x189)],'env':_0x5061ff['env'],'mergedCli':{'defaultApp':_0x5061ff['defaultApp'],'currentApp':_0x5061ff[_0x206f10(0x15a)],'appCode':_0x5061ff['appCode']}};}export function createLovrabetRunnerAdapter(_0x27fcb6={}){const _0x59906f=a121_0x291a,_0x4bc93e={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x59906f(0x16a)](_0x267ae7=>PIPELINE_FLAG_NAMES[_0x59906f(0x181)](_0x267ae7[_0x59906f(0x156)]))['map'](({name:_0x109a5b,type:_0x42f618,description:_0x42d3d2})=>({'name':_0x109a5b,'type':_0x42f618,'description':_0x42d3d2})),'formatOutput':_0x27fcb6['formatOutput']??formatOutput,'getCommandLabel'(_0x1a111c){const _0x52bed7=_0x59906f;return CLI_BIN_NAME+'\x20'+_0x1a111c[_0x52bed7(0x19a)]+'\x20'+_0x1a111c[_0x52bed7(0x185)];},'riskPolicy':{'onViolation'(_0x139489,{def:_0x24c997,env:_0x437e32}){const _0x4cef53=_0x59906f;if(shouldRouteWriteToNativeTool(_0x24c997,_0x437e32))return;console[_0x4cef53(0x192)](_0x139489);},'createError'(_0x17e146,{def:_0x3db7c7,env:_0x3c173e}){const _0x29cec1=_0x59906f;if(shouldRouteWriteToNativeTool(_0x3db7c7,_0x3c173e))return CliErrors[_0x29cec1(0x199)](CLI_BIN_NAME+'\x20'+_0x3db7c7[_0x29cec1(0x19a)]+'\x20'+_0x3db7c7[_0x29cec1(0x185)]);return CliErrors[_0x29cec1(0x188)](_0x17e146);}},async 'prepare'(_0x5671c1,_0x1bbb10){const _0x28c6d8=_0x59906f,_0x4ba15a=resolveAuthMode(_0x1bbb10);if(_0x5671c1[_0x28c6d8(0x183)]!==![]){if(!_0x1bbb10[_0x28c6d8(0x189)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x28c6d8(0x191)]+'\x20or\x20pass\x20'+productEnvName(_0x28c6d8(0x17e))+'.');const {setActiveAK:_0x360c84}=await import(_0x28c6d8(0x186));_0x360c84(_0x1bbb10[_0x28c6d8(0x189)]);}let _0x412b8c='';if(_0x5671c1['requiresAppCode']!==![]){_0x412b8c=_0x1bbb10[_0x28c6d8(0x17b)]??'',_0x412b8c=await resolveExplicitAppName(_0x5671c1,_0x1bbb10,_0x412b8c);if(!_0x412b8c){await assertSelectedAppNameIsRuntimeAccessible(_0x5671c1,_0x1bbb10);throw CliErrors[_0x28c6d8(0x166)](_0x28c6d8(0x157)+PRODUCT_CONFIG[_0x28c6d8(0x191)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5671c1,_0x1bbb10,_0x412b8c);}if(_0x412b8c){const {initSdkClient:_0x527e7d}=await import(_0x28c6d8(0x18c));_0x527e7d({'appCode':_0x412b8c,'env':_0x1bbb10[_0x28c6d8(0x194)]??'production','runtimeDomain':_0x1bbb10[_0x28c6d8(0x173)],'accessKey':_0x1bbb10[_0x28c6d8(0x189)],'authMode':_0x4ba15a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1bbb10['defaultVerbose']},'numbers':{'pagesize':_0x1bbb10[_0x28c6d8(0x170)]}},'extras':{'appCode':_0x412b8c,'cookie':'','apiDomain':_0x1bbb10[_0x28c6d8(0x155)],'apiDir':'','accessKey':_0x1bbb10['accessKey'],'envName':_0x1bbb10[_0x28c6d8(0x194)],'mergedCli':_0x1bbb10[_0x28c6d8(0x17c)]}};},'confirmHighRisk':_0x27fcb6[_0x59906f(0x15d)]??(async({def:_0x2396e2,env:_0x51ab88,flags:_0x569950,commandLabel:_0x2a53b7})=>{const _0x3d487c=_0x59906f;if(_0x51ab88[_0x3d487c(0x164)]){const _0x10989b=reconstructCommandArgv(_0x2396e2,_0x569950);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2a53b7+_0x3d487c(0x163)+(_0x3d487c(0x190)+_0x10989b));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2396e2,_0x2a53b7,_0x569950),'createCancelledError':_0x2b3b3f=>CliErrors[_0x3d487c(0x188)](_0x2b3b3f)});}),'mapDryRunError'(_0x1704a5){return mapUserFacingExecuteError(_0x1704a5);},'mapExecuteError'(_0x3bd465){return mapUserFacingExecuteError(_0x3bd465);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4bc93e;}function shouldRouteWriteToNativeTool(_0x5875d1,_0x2e0999){const _0x12f29e=a121_0x291a;return _0x2e0999[_0x12f29e(0x165)]===!![]&&(_0x5875d1[_0x12f29e(0x19c)]===_0x12f29e(0x18d)||_0x5875d1['risk']===_0x12f29e(0x159));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x111bfd=a121_0x291a;try{if(sdkClientInitialized){const {clearSdkClient:_0x280361}=await import(_0x111bfd(0x18c));_0x280361();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x259729}=await import(_0x111bfd(0x186));_0x259729();}}async function resolveExplicitAppName(_0x1bb0c0,_0x1cc74a,_0x594eaa){const _0x3a8d9a=a121_0x291a;if(_0x1bb0c0[_0x3a8d9a(0x18f)]===![])return _0x594eaa;const _0x29b0cf=typeof _0x1cc74a['rawFlags'][_0x3a8d9a(0x16b)]===_0x3a8d9a(0x193)?_0x1cc74a[_0x3a8d9a(0x17d)][_0x3a8d9a(0x16b)]['trim']():'';if(!_0x29b0cf)return _0x594eaa;const _0x39d0d9=typeof _0x1cc74a[_0x3a8d9a(0x17d)][_0x3a8d9a(0x158)]===_0x3a8d9a(0x193)&&_0x1cc74a['rawFlags']['appcode']['trim']()||productEnv(_0x3a8d9a(0x16c));if(_0x39d0d9||_0x1cc74a[_0x3a8d9a(0x195)]==='local-alias')return _0x594eaa;const {getRemoteAppList:_0x4a16d9}=await import('../commands/app/remote-source.js'),_0x2cefc8=await _0x4a16d9({'env':_0x1cc74a[_0x3a8d9a(0x194)]??_0x3a8d9a(0x17f),'accessKey':_0x1cc74a['accessKey']}),_0x2e07bd=findAppByName(_0x2cefc8[_0x3a8d9a(0x171)],_0x29b0cf);if(_0x2e07bd&&!isRuntimeAccessibleApp(_0x2e07bd))throw runtimeInaccessibleAppError(_0x2e07bd,'\x22'+_0x29b0cf+'\x22');const _0x54e5b8=_0x2e07bd?.[_0x3a8d9a(0x17b)]?.[_0x3a8d9a(0x180)]();if(_0x54e5b8)return _0x54e5b8;throw CliErrors[_0x3a8d9a(0x182)]('Unknown\x20app:\x20'+_0x29b0cf,_0x3a8d9a(0x176)+CLI_BIN_NAME+_0x3a8d9a(0x168)+_0x29b0cf+_0x3a8d9a(0x19b)+PRODUCT_CONFIG[_0x3a8d9a(0x191)]+'.');}function a121_0x2a33(){const _0xd8bf32=['_notice','../commands/app/remote-source.js','update','defaultPageSize','items','72809PDFKav','runtimeDomain','format','940jhejgp','Run\x20`','963684mybSxE','pageSize','verbose','schema','appCode','mergedCli','rawFlags','ACCESS_KEY','production','trim','has','validation','requiresAuth','6jJagQY','command','../core/api-client.js','execute','cancelled','accessKey','includes','1546236CiZtHV','../core/sdk-client.js','write','appcode\x20\x22','requiresAppCode','\x20\x20To\x20proceed:\x20','newConfigFileName','error','string','env','appCodeSource','defaultApp','178874bGqAjx','7565PhuPoW','nativeToolRequired','service','.appcode\x20to\x20','risk','364xqwssg','riskLevel','apiDomain','name','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','high-risk-write','currentApp','ClientAk','54304LGFgyw','confirmHighRisk','329gduUmR','object','doctor','210228IUPmUJ','nonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','isNonInteractive','nativeToolAvailable','configMissing','pretty','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','cli-skill','filter','app','APPCODE'];a121_0x2a33=function(){return _0xd8bf32;};return a121_0x2a33();}async function assertSelectedAppNameIsRuntimeAccessible(_0x2f5943,_0x5184ea){const _0x261d60=a121_0x291a;if(_0x2f5943[_0x261d60(0x18f)]===![]||!_0x5184ea['accessKey'])return;const _0x1310e1=(typeof _0x5184ea['rawFlags'][_0x261d60(0x16b)]===_0x261d60(0x193)&&_0x5184ea[_0x261d60(0x17d)]['app'][_0x261d60(0x180)]()?_0x5184ea['rawFlags'][_0x261d60(0x16b)]:_0x5184ea[_0x261d60(0x17c)]?.[_0x261d60(0x15a)]??_0x5184ea[_0x261d60(0x17c)]?.[_0x261d60(0x196)])?.[_0x261d60(0x180)]();if(!_0x1310e1)return;const {getRemoteAppList:_0x39aa3d}=await import(_0x261d60(0x16e)),_0x5c4259=await _0x39aa3d({'env':_0x5184ea[_0x261d60(0x194)]??_0x261d60(0x17f),'accessKey':_0x5184ea[_0x261d60(0x189)]}),_0x4a82a0=findAppByName(_0x5c4259[_0x261d60(0x171)],_0x1310e1);if(_0x4a82a0&&!isRuntimeAccessibleApp(_0x4a82a0))throw runtimeInaccessibleAppError(_0x4a82a0,'\x22'+_0x1310e1+'\x22');}function a121_0x291a(_0xc0b541,_0x16afdb){_0xc0b541=_0xc0b541-0x154;const _0x2a33bc=a121_0x2a33();let _0x291a75=_0x2a33bc[_0xc0b541];return _0x291a75;}async function assertAppCodeIsRuntimeAccessible(_0x242441,_0x4aed12,_0x2ef0b4){const _0x5ccfe6=a121_0x291a;if(_0x242441['requiresAppCode']===![]||!_0x4aed12[_0x5ccfe6(0x189)])return;const {getRemoteAppList:_0x3df398}=await import(_0x5ccfe6(0x16e)),_0x5263d3=await _0x3df398({'env':_0x4aed12[_0x5ccfe6(0x194)]??_0x5ccfe6(0x17f),'accessKey':_0x4aed12[_0x5ccfe6(0x189)]}),_0x445a58=findAppByCode(_0x5263d3[_0x5ccfe6(0x171)],_0x2ef0b4);if(_0x445a58&&!isRuntimeAccessibleApp(_0x445a58))throw runtimeInaccessibleAppError(_0x445a58,_0x5ccfe6(0x18e)+_0x2ef0b4+'\x22');}export async function runCommand(_0x9ecd83,_0x2f1d21,_0x2538af=terminalRunnerAdapter){assertKnownCommandFlags(_0x9ecd83,_0x2f1d21['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x9ecd83)?withVersionPolicy(_0x9ecd83):_0x9ecd83,_0x2f1d21,_0x2538af);}function shouldApplyVersionPolicy(_0x3d50a6){const _0x3ae26d=a121_0x291a;if([_0x3ae26d(0x16f),_0x3ae26d(0x17a),_0x3ae26d(0x160)][_0x3ae26d(0x18a)](_0x3d50a6[_0x3ae26d(0x19a)]))return![];return!(_0x3d50a6['service']===_0x3ae26d(0x169)&&_0x3d50a6[_0x3ae26d(0x185)]==='install');}function withVersionPolicy(_0x5428bc){return{..._0x5428bc,async 'execute'(_0x2f5a96){const _0x8530d4=a121_0x291a,_0xa57245=await checkCliVersion();assertCliVersionSupported(_0xa57245);const _0x22fe0b=shouldResolveUpdateNotice(_0x2f5a96)?resolveLatestUpdateNotice(_0xa57245)['catch'](()=>null):Promise['resolve'](null),_0x3d90c6=await _0x5428bc[_0x8530d4(0x187)](_0x2f5a96);return attachUpdateNotice(_0x3d90c6,await _0x22fe0b);}};}function shouldResolveUpdateNotice(_0x18ddf2){const _0x2b8b42=a121_0x291a;return _0x18ddf2[_0x2b8b42(0x174)]===_0x2b8b42(0x167)&&!_0x18ddf2[_0x2b8b42(0x162)];}function attachUpdateNotice(_0x38f66d,_0x162b09){const _0x278ddb=a121_0x291a;if(!_0x162b09||!_0x38f66d||typeof _0x38f66d!==_0x278ddb(0x15f))return _0x38f66d;const _0x33e01c=_0x38f66d,_0xc1a303=typeof _0x33e01c['_notice']===_0x278ddb(0x15f)&&_0x33e01c[_0x278ddb(0x16d)]!==null?_0x33e01c[_0x278ddb(0x16d)]:{};return{..._0x33e01c,'_notice':{..._0xc1a303,'update':_0x162b09}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b3b53,_0x4bf547){const _0x4191c6=a122_0x4def,_0x48163f=_0x4b3b53();while(!![]){try{const _0xd1c224=parseInt(_0x4191c6(0x7e))/0x1+-parseInt(_0x4191c6(0x71))/0x2+-parseInt(_0x4191c6(0x7b))/0x3+-parseInt(_0x4191c6(0x7a))/0x4+parseInt(_0x4191c6(0x7c))/0x5*(-parseInt(_0x4191c6(0x72))/0x6)+-parseInt(_0x4191c6(0x6e))/0x7+-parseInt(_0x4191c6(0x78))/0x8*(-parseInt(_0x4191c6(0x74))/0x9);if(_0xd1c224===_0x4bf547)break;else _0x48163f['push'](_0x48163f['shift']());}catch(_0x1c2af5){_0x48163f['push'](_0x48163f['shift']());}}}(a122_0x24a0,0x5f8e2));function a122_0x4def(_0x10c8bb,_0x462f58){_0x10c8bb=_0x10c8bb-0x6d;const _0x24a021=a122_0x24a0();let _0x4def3b=_0x24a021[_0x10c8bb];return _0x4def3b;}import{buildSchemaPayload as a122_0xc7d16b}from'@lovrabet/cli-framework';function a122_0x24a0(){const _0x4fcf1f=['requiresAuth','315098vyYixS','auth','3817716uKSgNG','has','service','996022SVlBBm','1811070WaSrtQ','none','207eStEBH','services','map','required','775976zpLIVq','../commands/registry.js','1354764UPVbnU','1412100nqABow','5IZuIGU'];a122_0x24a0=function(){return _0x4fcf1f;};return a122_0x24a0();}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x482e20=a122_0x4def,{serviceRegistry:_0x3af450,findDefinition:_0x45b6bb}=await import(_0x482e20(0x79)),_0x32fa7a=new Set(_0x3af450['map'](_0x3106bf=>_0x3106bf[_0x482e20(0x70)])),_0x587171=listDynamicServiceEntries()['filter'](_0x50c9ab=>!_0x32fa7a[_0x482e20(0x6f)](_0x50c9ab[_0x482e20(0x70)])),_0x56030f=a122_0xc7d16b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3af450,_0x587171),'buildAllFlags':buildAllFlags,'findDefinition':(_0x22e11c,_0xc4031c)=>_0x45b6bb(_0x22e11c,_0xc4031c)??findDynamicServiceDefinition(_0x22e11c,_0xc4031c)});return normalizeSchemaPayload(_0x56030f);}function normalizeSchemaPayload(_0x26618d){const _0x1ff696=a122_0x4def;return{..._0x26618d,'schemaVersion':0x2,'services':_0x26618d[_0x1ff696(0x75)][_0x1ff696(0x76)](_0x4abbf7=>({..._0x4abbf7,'commands':_0x4abbf7['commands'][_0x1ff696(0x76)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x1fd7c7){const _0x52e8fd=a122_0x4def,_0x5ba89f=_0x1fd7c7;return{..._0x1fd7c7,'auth':_0x5ba89f[_0x52e8fd(0x6d)]??(_0x1fd7c7[_0x52e8fd(0x7d)]?_0x52e8fd(0x77):_0x52e8fd(0x73))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x1980(){const _0x54c1a2=['1098336LyUFfN','findIndex','service','8fWqNGv','1822740PzQfOB','1648899ufKlsA','length','438141CqsXNY','slice','3971106NfhCsU','767001BrdOlL','22910427GfwYrY','8eKeLds'];a123_0x1980=function(){return _0x54c1a2;};return a123_0x1980();}(function(_0x51c661,_0x21a208){const _0x1f5cd3=a123_0x746b,_0x1241c7=_0x51c661();while(!![]){try{const _0xd2b14e=-parseInt(_0x1f5cd3(0x1d4))/0x1+-parseInt(_0x1f5cd3(0x1d7))/0x2+parseInt(_0x1f5cd3(0x1d1))/0x3*(-parseInt(_0x1f5cd3(0x1d6))/0x4)+parseInt(_0x1f5cd3(0x1db))/0x5+-parseInt(_0x1f5cd3(0x1d3))/0x6+-parseInt(_0x1f5cd3(0x1cf))/0x7+-parseInt(_0x1f5cd3(0x1da))/0x8*(-parseInt(_0x1f5cd3(0x1d5))/0x9);if(_0xd2b14e===_0x21a208)break;else _0x1241c7['push'](_0x1241c7['shift']());}catch(_0x131e6b){_0x1241c7['push'](_0x1241c7['shift']());}}}(a123_0x1980,0x62c00));function a123_0x746b(_0x5718fe,_0x49f878){_0x5718fe=_0x5718fe-0x1cf;const _0x198066=a123_0x1980();let _0x746b4d=_0x198066[_0x5718fe];return _0x746b4d;}export function insertDynamicServicesAfterServiceTree(_0x5082dd,_0x5d7994){const _0x5105c1=a123_0x746b;if(_0x5d7994[_0x5105c1(0x1d0)]===0x0)return[..._0x5082dd];const _0x5e3e5c=_0x5082dd[_0x5105c1(0x1d8)](_0x599808=>_0x599808[_0x5105c1(0x1d9)]==='service');if(_0x5e3e5c<0x0)return[..._0x5082dd,..._0x5d7994];return[..._0x5082dd[_0x5105c1(0x1d2)](0x0,_0x5e3e5c+0x1),..._0x5d7994,..._0x5082dd[_0x5105c1(0x1d2)](_0x5e3e5c+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a124_0x4674(){var _0x17007b=['21989IHghUu','8eeNOtT','11850WjhiCJ','843HoAAPw','586238DNlzTB','19376tBnchu','196265gkSfaB','46669IHIdyx','726OhSUaG','11371338ZHatIF','2683YbGuBG'];a124_0x4674=function(){return _0x17007b;};return a124_0x4674();}(function(_0x4be729,_0x4d2195){var _0x9bc6fc=a124_0x1599,_0x33e44a=_0x4be729();while(!![]){try{var _0x25c3ef=-parseInt(_0x9bc6fc(0x1cf))/0x1+-parseInt(_0x9bc6fc(0x1d4))/0x2+parseInt(_0x9bc6fc(0x1d3))/0x3*(parseInt(_0x9bc6fc(0x1d5))/0x4)+-parseInt(_0x9bc6fc(0x1d6))/0x5+parseInt(_0x9bc6fc(0x1cd))/0x6*(parseInt(_0x9bc6fc(0x1d7))/0x7)+parseInt(_0x9bc6fc(0x1d1))/0x8*(parseInt(_0x9bc6fc(0x1ce))/0x9)+parseInt(_0x9bc6fc(0x1d2))/0xa*(-parseInt(_0x9bc6fc(0x1d0))/0xb);if(_0x25c3ef===_0x4d2195)break;else _0x33e44a['push'](_0x33e44a['shift']());}catch(_0x5cbe3e){_0x33e44a['push'](_0x33e44a['shift']());}}}(a124_0x4674,0xb19bb));function a124_0x1599(_0x2acec8,_0x3f2edc){_0x2acec8=_0x2acec8-0x1cd;var _0x4674c7=a124_0x4674();var _0x159959=_0x4674c7[_0x2acec8];return _0x159959;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.4
|
|
2
|
-
export declare const GIT_TAG = "v2.3.4
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.4";
|
|
3
|
+
export declare const GIT_COMMIT = "af9f584";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-24T05:33:29.338Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x5970ad=a125_0x5452;(function(_0x58fb04,_0x3cc43d){const _0x51624d=a125_0x5452,_0x5e8193=_0x58fb04();while(!![]){try{const _0x19ebf9=-parseInt(_0x51624d(0x106))/0x1*(parseInt(_0x51624d(0x107))/0x2)+parseInt(_0x51624d(0xff))/0x3*(parseInt(_0x51624d(0x10a))/0x4)+parseInt(_0x51624d(0x108))/0x5*(-parseInt(_0x51624d(0xfc))/0x6)+parseInt(_0x51624d(0xfe))/0x7+parseInt(_0x51624d(0x100))/0x8+parseInt(_0x51624d(0x101))/0x9*(parseInt(_0x51624d(0x104))/0xa)+-parseInt(_0x51624d(0x109))/0xb;if(_0x19ebf9===_0x3cc43d)break;else _0x5e8193['push'](_0x5e8193['shift']());}catch(_0x5ec299){_0x5e8193['push'](_0x5e8193['shift']());}}}(a125_0x2ea1,0xe2e3d));function a125_0x2ea1(){const _0x1d8d77=['5622RxDwuq','af9f584','5956517ISWBxD','147flfawq','13662560ACWkLo','50013ZjojdS','v2.3.4','2.3.4','820XFqIJL','2026-09-24T05:33:29.338Z','277741wDLMhm','4dEkkzL','4215LjYFoH','9290820jJdFHL','8564mnQQBp'];a125_0x2ea1=function(){return _0x1d8d77;};return a125_0x2ea1();}export const VERSION=a125_0x5970ad(0x103);export const GIT_TAG=a125_0x5970ad(0x102);function a125_0x5452(_0x4cef48,_0x4ced47){_0x4cef48=_0x4cef48-0xfc;const _0x2ea13b=a125_0x2ea1();let _0x545289=_0x2ea13b[_0x4cef48];return _0x545289;}export const GIT_COMMIT=a125_0x5970ad(0xfd);export const BUILD_TIME=a125_0x5970ad(0x105);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x51f30d=a126_0x4986;(function(_0x480c1,_0x1f41c4){const _0x27c5da=a126_0x4986,_0x32d357=_0x480c1();while(!![]){try{const _0x2498ba=parseInt(_0x27c5da(0xf5))/0x1+parseInt(_0x27c5da(0xe2))/0x2*(parseInt(_0x27c5da(0xeb))/0x3)+parseInt(_0x27c5da(0xe8))/0x4+-parseInt(_0x27c5da(0xea))/0x5+-parseInt(_0x27c5da(0xee))/0x6*(parseInt(_0x27c5da(0xe6))/0x7)+-parseInt(_0x27c5da(0xf8))/0x8+parseInt(_0x27c5da(0xed))/0x9;if(_0x2498ba===_0x1f41c4)break;else _0x32d357['push'](_0x32d357['shift']());}catch(_0x5438c8){_0x32d357['push'](_0x32d357['shift']());}}}(a126_0x2527,0x7506b));function a126_0x2527(){const _0x1116b2=['6572304uqGAsu','https://user-daily.lovrabet.ai','https://daily-api.lovrabet.com','https://user.lovrabet.id','https://user.lovrabet.ai','https://kb-service-daily.lovrabet.com','china','https://api.lovrabet.com','https://api.lovrabet.id','https://api.lovrabet.ai','https://kb-service.lovrabet.id','https://daily-api.lovrabet.ai','140938JKmedK','indonesia','https://skills.lovrabet.ai','https://user.lovrabet.com','243026GYoPNv','Global','3020916Jaorsi','https://daily-runtime.lovrabet.ai','4467965TMODLn','21QclitA','https://user-daily.lovrabet.com','12569031TCCGiZ','150HgvMrW','https://skills.lovrabet.com','https://kb-service.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.com','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','global','417349npRtrp','Indonesia','https://runtime.lovrabet.ai'];a126_0x2527=function(){return _0x1116b2;};return a126_0x2527();}export const ROUTING_CATALOG_DIGEST=a126_0x51f30d(0xf3);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a126_0x51f30d(0xf4)];export const ENABLED_REGION_VALUES=['cn','id',a126_0x51f30d(0xf4)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a126_0x51f30d(0xdc)],'serviceDomains':{'production':{'user':a126_0x51f30d(0xe5),'api':a126_0x51f30d(0xdd),'runtime':'https://runtime.lovrabet.com','skill':a126_0x51f30d(0xef),'kbService':a126_0x51f30d(0xf0)},'daily':{'user':a126_0x51f30d(0xec),'api':a126_0x51f30d(0xd8),'runtime':a126_0x51f30d(0xf2),'skill':a126_0x51f30d(0xf1),'kbService':a126_0x51f30d(0xdb)}}},'id':{'enabled':!![],'label':a126_0x51f30d(0xf6),'aliases':[a126_0x51f30d(0xe3)],'serviceDomains':{'production':{'user':a126_0x51f30d(0xd9),'api':a126_0x51f30d(0xde),'runtime':'https://runtime.lovrabet.id','skill':'https://skills.lovrabet.id','kbService':a126_0x51f30d(0xe0)}}},'global':{'enabled':!![],'label':a126_0x51f30d(0xe7),'aliases':[],'serviceDomains':{'production':{'user':a126_0x51f30d(0xda),'api':a126_0x51f30d(0xdf),'runtime':a126_0x51f30d(0xf7),'skill':a126_0x51f30d(0xe4)},'daily':{'user':a126_0x51f30d(0xd7),'api':a126_0x51f30d(0xe1),'runtime':a126_0x51f30d(0xe9),'skill':'https://skills-daily.lovrabet.ai'}}}};function a126_0x4986(_0x507e1a,_0xff972e){_0x507e1a=_0x507e1a-0xd7;const _0x2527f2=a126_0x2527();let _0x4986a1=_0x2527f2[_0x507e1a];return _0x4986a1;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x5a4a1b=a127_0x7a27;(function(_0xdb94ca,_0x4214c2){const _0x1deda1=a127_0x7a27,_0x2647b3=_0xdb94ca();while(!![]){try{const _0x555d63=-parseInt(_0x1deda1(0x184))/0x1*(parseInt(_0x1deda1(0x175))/0x2)+-parseInt(_0x1deda1(0x181))/0x3+-parseInt(_0x1deda1(0x17c))/0x4*(parseInt(_0x1deda1(0x17f))/0x5)+parseInt(_0x1deda1(0x183))/0x6*(parseInt(_0x1deda1(0x179))/0x7)+parseInt(_0x1deda1(0x172))/0x8*(-parseInt(_0x1deda1(0x173))/0x9)+parseInt(_0x1deda1(0x182))/0xa+parseInt(_0x1deda1(0x178))/0xb;if(_0x555d63===_0x4214c2)break;else _0x2647b3['push'](_0x2647b3['shift']());}catch(_0x248fd2){_0x2647b3['push'](_0x2647b3['shift']());}}}(a127_0x1353,0xa1e65));function a127_0x1353(){const _0x34e45d=['skillDomain','38169483iEBfQh','552587HQWwsr','userDomain','lovrabet-routing/v1','2492asdVSK','runtimeDomain','apiDomain','9655GFOpQM','enterprise','3900990KYCwVW','2056280hzMMrz','12kKTZhR','2321wqXlfJ','32wFCeWX','962811YkPubo','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','206FesHvM','kbServiceDomain'];a127_0x1353=function(){return _0x34e45d;};return a127_0x1353();}function a127_0x7a27(_0x36438c,_0x111c3e){_0x36438c=_0x36438c-0x172;const _0x1353be=a127_0x1353();let _0x7a27e7=_0x1353be[_0x36438c];return _0x7a27e7;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a127_0x5a4a1b(0x174);export const ENTERPRISE_ROUTING_PROTOCOL=a127_0x5a4a1b(0x17b);export const ENTERPRISE_ROUTING_KIND=a127_0x5a4a1b(0x180);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x5a4a1b(0x17a),a127_0x5a4a1b(0x17e),a127_0x5a4a1b(0x17d),a127_0x5a4a1b(0x177),a127_0x5a4a1b(0x176)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a127_0x5a4a1b(0x17e),a127_0x5a4a1b(0x17d),a127_0x5a4a1b(0x177)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbfd089,_0x46946c){const _0x5e159b=a128_0x5f25,_0x41bc00=_0xbfd089();while(!![]){try{const _0x24419c=-parseInt(_0x5e159b(0x1a5))/0x1+parseInt(_0x5e159b(0x1a4))/0x2*(-parseInt(_0x5e159b(0x19f))/0x3)+parseInt(_0x5e159b(0x1a7))/0x4+parseInt(_0x5e159b(0x1a6))/0x5*(-parseInt(_0x5e159b(0x1a8))/0x6)+parseInt(_0x5e159b(0x1a1))/0x7*(parseInt(_0x5e159b(0x1ab))/0x8)+-parseInt(_0x5e159b(0x1a9))/0x9+parseInt(_0x5e159b(0x1a2))/0xa;if(_0x24419c===_0x46946c)break;else _0x41bc00['push'](_0x41bc00['shift']());}catch(_0x431f47){_0x41bc00['push'](_0x41bc00['shift']());}}}(a128_0x2a73,0x798f8));import{jsx as a128_0x3276cd,jsxs as a128_0x5b07fb}from'react/jsx-runtime';function a128_0x5f25(_0x80c1da,_0x133f56){_0x80c1da=_0x80c1da-0x19e;const _0x2a7321=a128_0x2a73();let _0x5f256c=_0x2a7321[_0x80c1da];return _0x5f256c;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a128_0x2a73(){const _0x1fcc3f=['column','2786UNTjDM','20409940YXwhCe','\x20\x20Use\x20','92dlnFsQ','422525irhlnZ','1490385HTSRay','246080RUJnBF','18atBCKp','3405438tEQTER','green','5424rTYoYs','\x20to\x20view\x20available\x20commands.','11694DLwIdL'];a128_0x2a73=function(){return _0x1fcc3f;};return a128_0x2a73();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x40f1e6=a128_0x5f25,{exit:_0x587930}=useApp();return useEffect(()=>{_0x587930();},[_0x587930]),a128_0x5b07fb(Box,{'flexDirection':_0x40f1e6(0x1a0),'marginTop':0x1,'marginBottom':0x1,'children':[a128_0x3276cd(Box,{'children':a128_0x3276cd(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a128_0x5b07fb(Box,{'marginTop':0x1,'children':[a128_0x3276cd(Text,{'dimColor':!![],'children':_0x40f1e6(0x1a3)}),a128_0x3276cd(Text,{'bold':!![],'color':_0x40f1e6(0x1aa),'children':CLI_BIN_NAME+'\x20--help'}),a128_0x3276cd(Text,{'dimColor':!![],'children':_0x40f1e6(0x19e)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a129_0x222e(_0x690de2,_0x321d07){_0x690de2=_0x690de2-0x104;const _0x2cf0ea=a129_0x2cf0();let _0x222e37=_0x2cf0ea[_0x690de2];return _0x222e37;}(function(_0xde2643,_0x16d006){const _0xce8b12=a129_0x222e,_0x5bf0c2=_0xde2643();while(!![]){try{const _0x99dbe0=parseInt(_0xce8b12(0x107))/0x1*(parseInt(_0xce8b12(0x112))/0x2)+parseInt(_0xce8b12(0x116))/0x3*(parseInt(_0xce8b12(0x114))/0x4)+parseInt(_0xce8b12(0x113))/0x5+-parseInt(_0xce8b12(0x10e))/0x6+-parseInt(_0xce8b12(0x110))/0x7+parseInt(_0xce8b12(0x108))/0x8+parseInt(_0xce8b12(0x117))/0x9*(parseInt(_0xce8b12(0x105))/0xa);if(_0x99dbe0===_0x16d006)break;else _0x5bf0c2['push'](_0x5bf0c2['shift']());}catch(_0x5f3ae5){_0x5bf0c2['push'](_0x5bf0c2['shift']());}}}(a129_0x2cf0,0xc45b4));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a129_0x2cf0(){const _0x24e016=['\x20via\x20skills@latest','7749858MWqutd','[BUILTIN_SKILL_INSTALL_','979405GcIJiE','\x20at\x20','254HutzUv','6876285iBvjKS','80528SvBLSg','already\x20current','63YDkidb','3296583GzAUHY','Repair\x20with:\x20','error','installedPath','10qOxDem','warn','233ScmPOd','335416ylPKdI','Lovrabet\x20Built-in\x20Skill\x20','log','Installation\x20failed','code'];a129_0x2cf0=function(){return _0x24e016;};return a129_0x2cf0();}export async function runPostinstall(_0x4e2cc2={}){const _0x4b59e1=a129_0x222e,_0x418e74=installBuiltinSkill(_0x4e2cc2);if(_0x418e74['ok']){const _0x367a6c=_0x418e74['changed']?'installed':_0x4b59e1(0x115),_0x2adcfd=_0x418e74[_0x4b59e1(0x104)]?_0x4b59e1(0x111)+_0x418e74['installedPath']:_0x4b59e1(0x10d);return console[_0x4b59e1(0x10a)](_0x4b59e1(0x109)+_0x418e74['skillVersion']+'\x20'+_0x367a6c+_0x2adcfd),_0x418e74;}const _0x336ed5=_0x4b59e1(0x10f)+(_0x418e74[_0x4b59e1(0x10c)]??'FAILED')+']\x20'+(_0x418e74[_0x4b59e1(0x119)]??_0x4b59e1(0x10b))+'.\x20'+(_0x4b59e1(0x118)+_0x418e74['repairCommand']);if(_0x418e74[_0x4b59e1(0x10c)]==='SOURCE_INVALID')throw new Error(_0x336ed5);return console[_0x4b59e1(0x106)](_0x336ed5),_0x418e74;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32be39,_0x117300){const _0x4550f1=a130_0x549c,_0x22cc3d=_0x32be39();while(!![]){try{const _0x50515c=parseInt(_0x4550f1(0x130))/0x1+-parseInt(_0x4550f1(0x13f))/0x2*(-parseInt(_0x4550f1(0x13a))/0x3)+parseInt(_0x4550f1(0x135))/0x4*(-parseInt(_0x4550f1(0x13c))/0x5)+-parseInt(_0x4550f1(0x141))/0x6*(-parseInt(_0x4550f1(0x133))/0x7)+parseInt(_0x4550f1(0x132))/0x8+-parseInt(_0x4550f1(0x13e))/0x9*(parseInt(_0x4550f1(0x138))/0xa)+-parseInt(_0x4550f1(0x134))/0xb;if(_0x50515c===_0x117300)break;else _0x22cc3d['push'](_0x22cc3d['shift']());}catch(_0x2b58d8){_0x22cc3d['push'](_0x22cc3d['shift']());}}}(a130_0x1665,0x27ba5));function a130_0x1665(){const _0x3f2fad=['slice','274624lYYBdS','string','931896XhOgLU','184793xBhvUd','3499012YojCtA','44eonLGy','write','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','3580dfpdXA','Run\x20this\x20write\x20operation','252irHDxt','replace','15955vycwDC','description','6102HcGCpI','5608RvriCl','high-risk-write','30qtGYbs','risk'];a130_0x1665=function(){return _0x3f2fad;};return a130_0x1665();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x5998a3,_0x1db5de,_0x38af3d){const _0x535837=a130_0x549c,_0x43b34c=normalizeText(_0x5998a3['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x35fb2c=normalizeText(_0x5998a3[_0x535837(0x13d)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x1db5de,'risk':requireWriteRisk(_0x5998a3),'description':_0x43b34c||_0x35fb2c||_0x535837(0x139),..._0x38af3d?{'signal':_0x38af3d}:{}};}function a130_0x549c(_0x4f2c38,_0x411d0c){_0x4f2c38=_0x4f2c38-0x130;const _0x166579=a130_0x1665();let _0x549cee=_0x166579[_0x4f2c38];return _0x549cee;}function requireWriteRisk(_0x1eb2fc){const _0x1c4223=a130_0x549c;if(_0x1eb2fc[_0x1c4223(0x142)]===_0x1c4223(0x136)||_0x1eb2fc['risk']===_0x1c4223(0x140))return _0x1eb2fc[_0x1c4223(0x142)];throw new Error(_0x1c4223(0x137));}function normalizeText(_0x12b658,_0x2105d3){const _0x2edd8d=a130_0x549c;if(typeof _0x12b658!==_0x2edd8d(0x131))return'';return _0x12b658[_0x2edd8d(0x13b)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2edd8d(0x13b)](/\s+/g,'\x20')['trim']()[_0x2edd8d(0x143)](0x0,_0x2105d3);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23450b,_0x33e7f2){const _0x5cf2e3=a131_0x2037,_0x504825=_0x23450b();while(!![]){try{const _0x3ac1cf=parseInt(_0x5cf2e3(0x1d5))/0x1+-parseInt(_0x5cf2e3(0x1d6))/0x2*(-parseInt(_0x5cf2e3(0x1df))/0x3)+-parseInt(_0x5cf2e3(0x1db))/0x4+parseInt(_0x5cf2e3(0x1d4))/0x5+parseInt(_0x5cf2e3(0x1e1))/0x6+parseInt(_0x5cf2e3(0x1d8))/0x7+-parseInt(_0x5cf2e3(0x1d9))/0x8*(parseInt(_0x5cf2e3(0x1dc))/0x9);if(_0x3ac1cf===_0x33e7f2)break;else _0x504825['push'](_0x504825['shift']());}catch(_0x5438ba){_0x504825['push'](_0x504825['shift']());}}}(a131_0x26f1,0x6aa34));export function canonicalLovrabetOperation(_0x5389a4){const _0x592f8d=a131_0x2037;return[_0x5389a4['service'],..._0x5389a4[_0x592f8d(0x1e0)]['trim']()[_0x592f8d(0x1d2)](/\s+/)][_0x592f8d(0x1da)](Boolean)['join']('.');}function a131_0x26f1(){const _0xa291f4=['split','risk','757665AhtmmC','83559bVOYeZ','46hZapIC','lovrabet.write.completed','3296111NYuhCb','66552nUrUSz','filter','2756544CYJECJ','396MyRLAg','write','high-risk-write','3906kdYzem','command','4536294IIhELs'];a131_0x26f1=function(){return _0xa291f4;};return a131_0x26f1();}function a131_0x2037(_0x538d50,_0x1905d9){_0x538d50=_0x538d50-0x1d2;const _0x26f1fe=a131_0x26f1();let _0x2037c3=_0x26f1fe[_0x538d50];return _0x2037c3;}export function createLovrabetWriteMetadata(_0x27460c,_0x41f2b0,_0x489f42,_0x3ba880){const _0x40cfff=a131_0x2037;if(_0x3ba880||_0x489f42['ok']!==!![]||_0x27460c[_0x40cfff(0x1d3)]!==_0x40cfff(0x1dd)&&_0x27460c['risk']!==_0x40cfff(0x1de))return undefined;const _0x2f49aa=_0x27460c['writeEventSubject']?.(_0x489f42),_0x43820e={'type':_0x40cfff(0x1d7),'operation':_0x41f2b0,'risk':_0x27460c[_0x40cfff(0x1d3)],..._0x2f49aa?{'subject':_0x2f49aa}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x43820e}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a132_0x50c4(){const _0x45d6d2=['23219QzFANw','write','command','high-risk-write','Lovrabet\x20invocation\x20aborted.','data','1986498jssFaV','dryRun','riskLevel','44582zWHiXj','args','message','signal','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','definition','856WbTuZA','aborted','1823005fBdUwd','risk','3AgvAVk','284655QCwIyF','dry-run','rawFlags','247024jobDFp','presentation','result','confirmation','yes','format','execute','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','7949592qJrYfJ','present'];a132_0x50c4=function(){return _0x45d6d2;};return a132_0x50c4();}function a132_0x2c4c(_0x2d4e54,_0x573acc){_0x2d4e54=_0x2d4e54-0x155;const _0x50c488=a132_0x50c4();let _0x2c4c6e=_0x50c488[_0x2d4e54];return _0x2c4c6e;}(function(_0x4a1511,_0x3686b1){const _0x320837=a132_0x2c4c,_0x4550cc=_0x4a1511();while(!![]){try{const _0x4ae919=-parseInt(_0x320837(0x175))/0x1+-parseInt(_0x320837(0x16a))/0x2*(parseInt(_0x320837(0x174))/0x3)+-parseInt(_0x320837(0x157))/0x4+parseInt(_0x320837(0x172))/0x5+-parseInt(_0x320837(0x167))/0x6+parseInt(_0x320837(0x161))/0x7*(-parseInt(_0x320837(0x170))/0x8)+parseInt(_0x320837(0x15f))/0x9;if(_0x4ae919===_0x3686b1)break;else _0x4550cc['push'](_0x4550cc['shift']());}catch(_0x1b3dac){_0x4550cc['push'](_0x4550cc['shift']());}}}(a132_0x50c4,0x2f2a1));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:_0x51aafb,command:_0x374c83,risk:_0x1e08cd,dryRun:_0x4519f2}){const _0x3e1379=a132_0x2c4c;return JSON['stringify']({'ok':_0x51aafb['ok'],'command':_0x374c83,'risk':_0x1e08cd,..._0x4519f2?{'dryRun':!![]}:{},..._0x51aafb['data']!==undefined?{'data':_0x51aafb[_0x3e1379(0x166)]}:{},..._0x51aafb[_0x3e1379(0x16c)]?{'message':_0x51aafb[_0x3e1379(0x16c)]}:{}});}};export async function invokeLovrabet(_0x4e9be1,_0x470fb1){const _0x500604=a132_0x2c4c;throwIfAborted(_0x470fb1[_0x500604(0x16d)]);const _0x2460df=await resolveLovrabetInvocation(_0x4e9be1),_0x500f6b=canonicalLovrabetOperation(_0x2460df[_0x500604(0x16f)]);return await confirmWriteBeforeQueue(_0x2460df[_0x500604(0x16f)],_0x2460df[_0x500604(0x156)],_0x500f6b,_0x470fb1),runSerialized(async()=>{const _0x39e26d=_0x500604;throwIfAborted(_0x470fb1['signal']);const _0x33353e={},_0x1f68f7=buildConfigFromFlags(_0x2460df['rawFlags']);await initGlobalEnvironment(_0x1f68f7);const _0x5afbcd=createPipelineEnv(_0x1f68f7,{..._0x2460df[_0x39e26d(0x156)],'yes':_0x2460df['definition']['risk']===_0x39e26d(0x164)?!![]:_0x2460df['rawFlags'][_0x39e26d(0x15b)],'nonInteractive':!![]});_0x5afbcd[_0x39e26d(0x16b)]=_0x2460df[_0x39e26d(0x16b)],_0x5afbcd['isNonInteractive']=!![],_0x5afbcd[_0x39e26d(0x169)]=_0x39e26d(0x164);const _0x5072f8=withAbortSignal(_0x2460df[_0x39e26d(0x16f)],_0x470fb1[_0x39e26d(0x16d)]),_0x3baf41=createLovrabetRunnerAdapter({'formatOutput'(_0x4eeffc,_0x1786e2){const _0x4a6b1e=_0x39e26d;_0x33353e[_0x4a6b1e(0x159)]=_0x4eeffc,_0x33353e['command']=_0x1786e2['command'],_0x33353e[_0x4a6b1e(0x173)]=_0x1786e2['risk'],_0x33353e['format']=_0x1786e2[_0x4a6b1e(0x15c)],_0x33353e[_0x4a6b1e(0x168)]=_0x1786e2[_0x4a6b1e(0x168)]===!![];},async 'confirmHighRisk'(){const _0x195a4c=_0x39e26d;throw new Error(_0x195a4c(0x16e));}});try{await runCommand(_0x5072f8,_0x5afbcd,_0x3baf41);if(!_0x33353e[_0x39e26d(0x159)]||!_0x33353e[_0x39e26d(0x163)]||!_0x33353e['risk']||!_0x33353e[_0x39e26d(0x15c)])throw new Error(_0x39e26d(0x15e));const _0x2a9f3a=_0x470fb1[_0x39e26d(0x158)]??defaultPresentation,_0x24e231=_0x33353e['dryRun']===!![],_0x286853={'result':_0x33353e['result'],'command':_0x33353e['command'],'operation':_0x500f6b,'risk':_0x33353e['risk'],'format':_0x33353e[_0x39e26d(0x15c)],'dryRun':_0x24e231},_0x1d3538=createLovrabetWriteMetadata(_0x2460df[_0x39e26d(0x16f)],_0x500f6b,_0x33353e[_0x39e26d(0x159)],_0x24e231);let _0x802886;try{_0x802886=await _0x2a9f3a['present'](_0x286853);}catch(_0x1a99d9){if(!_0x1d3538||_0x2a9f3a===defaultPresentation)throw _0x1a99d9;_0x802886=await defaultPresentation[_0x39e26d(0x160)](_0x286853);}return{'operation':_0x500f6b,'risk':_0x33353e[_0x39e26d(0x173)],'mode':_0x24e231?_0x39e26d(0x155):_0x39e26d(0x15d),'result':_0x33353e[_0x39e26d(0x159)],'output':_0x802886,..._0x1d3538?{'metadata':_0x1d3538}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x564c3a,_0x593185,_0x5a36af,_0x52ab85){const _0x3bf1db=a132_0x2c4c;if(_0x593185[_0x3bf1db(0x168)]===!![]||_0x564c3a['risk']!==_0x3bf1db(0x162)&&_0x564c3a[_0x3bf1db(0x173)]!==_0x3bf1db(0x164))return;await _0x52ab85[_0x3bf1db(0x15a)]['confirm'](buildLovrabetConfirmationRequest(_0x564c3a,_0x5a36af,_0x52ab85[_0x3bf1db(0x16d)]));}function withAbortSignal(_0x18877e,_0x4a89b){return{..._0x18877e,async 'execute'(_0xe314d3){const _0x3001df=a132_0x2c4c;return throwIfAborted(_0x4a89b),_0x18877e[_0x3001df(0x15d)]({..._0xe314d3,'signal':_0x4a89b});}};}function throwIfAborted(_0x34a2c5){const _0x2cc583=a132_0x2c4c;if(_0x34a2c5?.[_0x2cc583(0x171)])throw _0x34a2c5['reason']instanceof Error?_0x34a2c5['reason']:new DOMException(_0x2cc583(0x165),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a133_0x8bf7(_0x48516d,_0x24cd81){_0x48516d=_0x48516d-0x97;const _0x16ef25=a133_0x16ef();let _0x8bf7c2=_0x16ef25[_0x48516d];return _0x8bf7c2;}function a133_0x16ef(){const _0x30bc53=['3039831SWETav','10ZFmyJr','132ZJVelT','1155702hcNCrY','2774264jXsiwY','2409468qavtws','98330VhyeEv','1358091jFsVZa','catch','resolve','209377bVOUML','2nuXFxQ'];a133_0x16ef=function(){return _0x30bc53;};return a133_0x16ef();}const a133_0x2c455f=a133_0x8bf7;(function(_0x46b9de,_0x9a1a99){const _0x78cf8d=a133_0x8bf7,_0x356384=_0x46b9de();while(!![]){try{const _0x278354=-parseInt(_0x78cf8d(0x9c))/0x1+-parseInt(_0x78cf8d(0x9d))/0x2*(-parseInt(_0x78cf8d(0xa1))/0x3)+-parseInt(_0x78cf8d(0x97))/0x4+-parseInt(_0x78cf8d(0x98))/0x5*(-parseInt(_0x78cf8d(0xa0))/0x6)+-parseInt(_0x78cf8d(0x99))/0x7+parseInt(_0x78cf8d(0xa2))/0x8+-parseInt(_0x78cf8d(0x9e))/0x9*(-parseInt(_0x78cf8d(0x9f))/0xa);if(_0x278354===_0x9a1a99)break;else _0x356384['push'](_0x356384['shift']());}catch(_0x3604b2){_0x356384['push'](_0x356384['shift']());}}}(a133_0x16ef,0x7941f));let tail=Promise[a133_0x2c455f(0x9b)]();export async function runSerialized(_0x5cff14){const _0x6d8fa9=a133_0x2c455f,_0x67b371=tail;let _0x1d2c1e;tail=new Promise(_0x2de225=>{_0x1d2c1e=_0x2de225;}),await _0x67b371[_0x6d8fa9(0x9a)](()=>undefined);try{return await _0x5cff14();}finally{_0x1d2c1e();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d126a,_0x1fa120){const _0x1862a7=a134_0x1e8b,_0x4e0b16=_0x4d126a();while(!![]){try{const _0x387b8c=-parseInt(_0x1862a7(0x92))/0x1*(-parseInt(_0x1862a7(0x8d))/0x2)+-parseInt(_0x1862a7(0x9b))/0x3*(-parseInt(_0x1862a7(0x8c))/0x4)+parseInt(_0x1862a7(0x85))/0x5+-parseInt(_0x1862a7(0x91))/0x6+-parseInt(_0x1862a7(0x9d))/0x7*(-parseInt(_0x1862a7(0x9a))/0x8)+-parseInt(_0x1862a7(0x84))/0x9*(parseInt(_0x1862a7(0x8a))/0xa)+-parseInt(_0x1862a7(0x95))/0xb;if(_0x387b8c===_0x1fa120)break;else _0x4e0b16['push'](_0x4e0b16['shift']());}catch(_0x49fc18){_0x4e0b16['push'](_0x4e0b16['shift']());}}}(a134_0x54de,0x7aca7));function a134_0x54de(){const _0x41a49f=['../framework/preparse.js','721tkpDYT','90mwWODV','1182250zcmarx','input','assign','slice','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','24390JwOQAd','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','95908mhnqqf','10AcVugj','message','defaultCommand','args','3139662WgoDQd','110455wJBQEU','flags','join','2100736aUjMer','validation','../commands/registry.js','definition','unknownCommand','33312rJgaKZ','3XlIRwC'];a134_0x54de=function(){return _0x41a49f;};return a134_0x54de();}import a134_0x4d4d66 from'meow';function a134_0x1e8b(_0x33eb57,_0x3648d3){_0x33eb57=_0x33eb57-0x84;const _0x54de1f=a134_0x54de();let _0x1e8bfc=_0x54de1f[_0x33eb57];return _0x1e8bfc;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x5c5880){const _0x8f8c30=a134_0x1e8b,_0x6fc3c9=a134_0x4d4d66('',{'importMeta':import.meta,'argv':_0x5c5880,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x55eccb=[..._0x6fc3c9[_0x8f8c30(0x86)]],_0x2d60e9=_0x6fc3c9[_0x8f8c30(0x93)];await correctFlags(_0x2d60e9);const _0x2c56ec=_0x55eccb[0x0];if(!_0x2c56ec)throw CliErrors[_0x8f8c30(0x96)](_0x8f8c30(0x89));const _0x140bdf=resolveRemovedCommand(_0x2c56ec,_0x55eccb[0x1]);if(_0x140bdf)throw CliErrors[_0x8f8c30(0x96)](_0x140bdf[_0x8f8c30(0x8e)],_0x140bdf['hint']);if(!isKnownService(_0x2c56ec)){const _0x33d093=resolveDynamicServiceCommand(_0x55eccb,_0x2d60e9);if(!_0x33d093)throw CliErrors[_0x8f8c30(0x99)](_0x55eccb[_0x8f8c30(0x94)]('\x20'));return Object[_0x8f8c30(0x87)](_0x2d60e9,_0x33d093[_0x8f8c30(0x93)]),{'definition':_0x33d093[_0x8f8c30(0x98)],'rawFlags':_0x2d60e9,'args':_0x33d093[_0x8f8c30(0x90)]};}const _0x2b6e23=getServiceEntry(_0x2c56ec),_0x290ae6=_0x55eccb[0x1]||_0x2b6e23[_0x8f8c30(0x8f)];if(!_0x290ae6)throw CliErrors[_0x8f8c30(0x96)](_0x8f8c30(0x8b)+_0x2c56ec+'\x22.');const _0x425d2b=findDefinition(_0x2c56ec,_0x290ae6);if(!_0x425d2b)throw CliErrors[_0x8f8c30(0x99)](_0x2c56ec+'\x20'+_0x290ae6);return{'definition':_0x425d2b,'rawFlags':_0x2d60e9,'args':_0x55eccb[_0x8f8c30(0x88)](0x2)};}async function correctFlags(_0x361a2d){const _0x18df7c=a134_0x1e8b;try{const {correctFlags:_0x5d9f66}=await import(_0x18df7c(0x9c)),{getAllDefinitions:_0x17fd56}=await import(_0x18df7c(0x97)),_0x6538d=_0x17fd56()['flatMap'](_0x234102=>_0x234102[_0x18df7c(0x93)]??[]),_0x11e78d=_0x5d9f66(_0x361a2d,_0x6538d);Object[_0x18df7c(0x87)](_0x361a2d,_0x11e78d[_0x18df7c(0x93)]);}catch{}}
|